(ctx: Context)
| 21 | } |
| 22 | |
| 23 | export const generateKeyframesSpec = (ctx: Context): KeyframeSpec => { |
| 24 | const jsxStyleProps = ctx.config.jsxStyleProps |
| 25 | |
| 26 | const keyframes = Object.keys(ctx.config.theme?.keyframes ?? {}).map((name) => ({ |
| 27 | name, |
| 28 | functionExamples: [`css({ animationName: '${name}' })`, `css({ animation: '${name} 1s ease-in-out infinite' })`], |
| 29 | jsxExamples: generateKeyframeJsxExamples(name, jsxStyleProps), |
| 30 | })) |
| 31 | |
| 32 | return { |
| 33 | type: 'keyframes', |
| 34 | data: keyframes, |
| 35 | } |
| 36 | } |
no test coverage detected