+
+
+
+
+
+ Easing curves
+
+ {
+ setSelectedDuration( value );
+ setAnimKey( ( k ) => k + 1 );
+ } }
+ style={ { minWidth: '180px' } }
+ />
+ { selectedDuration === 'custom' && (
+ {
+ setCustomDuration( value );
+ setAnimKey( ( k ) => k + 1 );
+ } }
+ style={ { width: '120px' } }
+ />
+ ) }
+
+
+ { EASING_TOKENS.map( ( token ) => (
+
+ ) ) }
+
+
+
+
+ Durations
+ All using easing-standard
+
+ { DURATION_TOKENS.map( ( token ) => (
+
+ ) ) }
+
+
+
+ );
+}
+
+const meta: Meta< typeof MotionDemo > = {
+ title: 'Design System/Tokens/Motion',
+ component: MotionDemo,
+ parameters: {
+ controls: { hideNoControlsWarning: true },
+ docs: { canvas: { sourceState: 'shown' } },
+ },
+};
+export default meta;
+
+export const Default: StoryObj< typeof MotionDemo > = {};
diff --git a/storybook/tsconfig.json b/storybook/tsconfig.json
index ff8022c0b75067..42233bea0c4622 100644
--- a/storybook/tsconfig.json
+++ b/storybook/tsconfig.json
@@ -4,7 +4,8 @@
"compilerOptions": {
"jsx": "react-jsx",
"rootDir": ".",
- "noEmit": true
+ "noEmit": true,
+ "types": [ "css-modules" ]
},
"include": [ "**/*.tsx", "**/*.ts" ]
}