"use client" import { Box, Center, SimpleGrid, Stack, Text, VStack, defaultSystem, } from "@chakra-ui/react" import { TokenDoc } from "./token-doc" const { _config: config, tokens } = defaultSystem const allKeyframes = Object.keys(config.theme?.keyframes || {}).filter( (keyframe) => !keyframe.match(/expand|collapse|bg-|position|circular/), ) export const KeyframeDoc = () => { return ( {allKeyframes.map((animationName) => { return ( {animationName} ) })} ) } const allDurations = Array.from(tokens.categoryMap.get("durations")!.entries()) .sort( ([, a], [, b]) => parseFloat(b.originalValue) - parseFloat(a.originalValue), ) .map(([key]) => key) export const DurationTokenDoc = () => { return ( {allDurations.map((durationName) => { return (
{durationName}
) })}
) }