feat(SW-3644): Storybook v10 * Auto update to Storybook v10 * Add scandic theme and logo * Update yarn.lock * Update formatting of package.json * Update vitest config and playwright plugin * Remove vitest 4 update * Re-added comment * Update the Typography component to explicitly return React.ReactNode * Add an explicit type assertion to the export * Add an explicit type assertion to the export for Checkbox * Explicit return type assertion * Add an explicit type assertion to the export * Update @types/react and fix ts warnings * Updated typings Approved-by: Linus Flood Approved-by: Matilda Landström
24 lines
480 B
TypeScript
24 lines
480 B
TypeScript
export const fade = {
|
|
hidden: {
|
|
opacity: 0,
|
|
transition: { duration: 0.4, ease: 'easeInOut' as const },
|
|
},
|
|
visible: {
|
|
opacity: 1,
|
|
transition: { duration: 0.4, ease: 'easeInOut' as const },
|
|
},
|
|
} as const
|
|
|
|
export const slideInOut = {
|
|
hidden: {
|
|
opacity: 0,
|
|
y: 32,
|
|
transition: { duration: 0.4, ease: 'easeInOut' as const },
|
|
},
|
|
visible: {
|
|
opacity: 1,
|
|
y: 0,
|
|
transition: { duration: 0.4, ease: 'easeInOut' as const },
|
|
},
|
|
} as const
|