@nation-a/ui 0.16.28 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ark-ui-D--_sKY0.js +7066 -0
- package/dist/ark-ui-D--_sKY0.js.map +1 -0
- package/dist/ark-ui-e4-hVrsF.cjs +2 -0
- package/dist/ark-ui-e4-hVrsF.cjs.map +1 -0
- package/dist/{index-BroabscA.cjs → index-B5IKaL0m.cjs} +2 -2
- package/dist/index-B5IKaL0m.cjs.map +1 -0
- package/dist/{index-B4n-XEbJ.js → index-FC3cETza.js} +2 -2
- package/dist/index-FC3cETza.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5010 -4958
- package/dist/index.js.map +1 -1
- package/dist/react-hot-toast-BCKriZQY.js +404 -0
- package/dist/react-hot-toast-BCKriZQY.js.map +1 -0
- package/dist/react-hot-toast-CvGdrsnM.cjs +178 -0
- package/dist/react-hot-toast-CvGdrsnM.cjs.map +1 -0
- package/dist/{react-lottie-DygynGMG.js → react-lottie-BoWlnUa4.js} +257 -257
- package/dist/react-lottie-BoWlnUa4.js.map +1 -0
- package/dist/react-lottie-D3xAW5ky.cjs +29 -0
- package/dist/react-lottie-D3xAW5ky.cjs.map +1 -0
- package/dist/stats.html +1 -1
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +1 -1
- package/dist/styled-system/css/sva.mjs +9 -4
- package/dist/styled-system/helpers.mjs +12 -20
- package/dist/styled-system/jsx/create-style-context.d.ts +54 -0
- package/dist/styled-system/jsx/create-style-context.mjs +98 -0
- package/dist/styled-system/jsx/factory.mjs +14 -5
- package/dist/styled-system/jsx/index.d.ts +1 -0
- package/dist/styled-system/jsx/index.mjs +1 -0
- package/dist/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/dist/styled-system/patterns/bleed.d.ts +0 -1
- package/dist/styled-system/patterns/box.d.ts +0 -1
- package/dist/styled-system/patterns/center.d.ts +0 -1
- package/dist/styled-system/patterns/circle.d.ts +0 -1
- package/dist/styled-system/patterns/container.d.ts +0 -1
- package/dist/styled-system/patterns/cq.d.ts +0 -1
- package/dist/styled-system/patterns/divider.d.ts +0 -1
- package/dist/styled-system/patterns/flex.d.ts +0 -1
- package/dist/styled-system/patterns/float.d.ts +0 -1
- package/dist/styled-system/patterns/grid-item.d.ts +0 -1
- package/dist/styled-system/patterns/grid.d.ts +0 -1
- package/dist/styled-system/patterns/grid.mjs +1 -1
- package/dist/styled-system/patterns/hstack.d.ts +0 -1
- package/dist/styled-system/patterns/hstack.mjs +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +0 -1
- package/dist/styled-system/patterns/spacer.d.ts +0 -1
- package/dist/styled-system/patterns/square.d.ts +0 -1
- package/dist/styled-system/patterns/stack.d.ts +0 -1
- package/dist/styled-system/patterns/stack.mjs +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/dist/styled-system/patterns/vstack.d.ts +0 -1
- package/dist/styled-system/patterns/vstack.mjs +1 -1
- package/dist/styled-system/patterns/wrap.d.ts +0 -1
- package/dist/styled-system/patterns/wrap.mjs +1 -1
- package/dist/styled-system/styles.css +1003 -993
- package/dist/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/styled-system/types/composition.d.ts +83 -23
- package/dist/styled-system/types/conditions.d.ts +13 -9
- package/dist/styled-system/types/jsx.d.ts +25 -10
- package/dist/styled-system/types/prop-type.d.ts +12 -1
- package/dist/styled-system/types/style-props.d.ts +17 -5
- package/dist/styled-system/types/system-types.d.ts +76 -0
- package/dist/types/components/BottomSheet/BottomSheet.stories.d.ts +322 -4
- package/dist/types/components/BottomSheet/index.d.ts +23 -21
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetBackdrop.d.ts +6 -1
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetContainer.d.ts +7 -5
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetContent.d.ts +7 -6
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetHeader.d.ts +7 -6
- package/dist/types/components/BottomSheet/react-modal-sheet/SheetScroller.d.ts +7 -3
- package/dist/types/components/BottomSheet/react-modal-sheet/constants.d.ts +3 -8
- package/dist/types/components/BottomSheet/react-modal-sheet/hooks.d.ts +1 -1
- package/dist/types/components/BottomSheet/react-modal-sheet/index.d.ts +1 -1
- package/dist/types/components/BottomSheet/react-modal-sheet/sheet.d.ts +7 -16
- package/dist/types/components/BottomSheet/react-modal-sheet/types.d.ts +5 -5
- package/dist/types/components/Button/Button.stories.d.ts +10 -3
- package/dist/types/components/Button/index.d.ts +8 -298
- package/dist/types/components/Checkbox/checkbox.stories.d.ts +15 -3
- package/dist/types/components/Checkbox/checkbox.styled.d.ts +29 -12
- package/dist/types/components/Checkbox/index.d.ts +4 -1
- package/dist/types/components/Dialog/Dialog.stories.d.ts +9 -3
- package/dist/types/components/Dialog/index.d.ts +15 -25
- package/dist/types/components/Fab/Fab.stories.d.ts +25 -3
- package/dist/types/components/Fab/index.d.ts +301 -2
- package/dist/types/components/IconButton/IconButton.stories.d.ts +43 -3
- package/dist/types/components/IconButton/index.d.ts +5 -6
- package/dist/types/components/Input/Input.stories.d.ts +1 -1
- package/dist/types/components/Input/index.d.ts +4 -1
- package/dist/types/components/Layout/index.d.ts +16 -16
- package/dist/types/components/List/List.stories.d.ts +64 -4
- package/dist/types/components/List/index.d.ts +82 -13
- package/dist/types/components/Navigation/Navigation.stories.d.ts +9 -4
- package/dist/types/components/Navigation/index.d.ts +6 -9
- package/dist/types/components/RadioGroup/Radio.stories.d.ts +8 -3
- package/dist/types/components/RadioGroup/index.d.ts +10 -9
- package/dist/types/components/RadioGroup/radio.recipe.d.ts +1 -1
- package/dist/types/components/Select/Select.stories.d.ts +1 -9
- package/dist/types/components/Select/index.d.ts +75 -28
- package/dist/types/components/Select/select.recipe.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.stories.d.ts +1 -1
- package/dist/types/components/Spinner/index.d.ts +4 -1
- package/dist/types/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/types/components/Switch/index.d.ts +5 -2
- package/dist/types/components/Switch/switch.styled.d.ts +89 -15
- package/dist/types/components/Tabs/Tabs.stories.d.ts +8 -4
- package/dist/types/components/Tabs/index.d.ts +208 -29
- package/dist/types/components/Tag/Tag.stories.d.ts +9 -4
- package/dist/types/components/Tag/index.d.ts +5 -2
- package/dist/types/components/Text/Text.stories.d.ts +25 -3
- package/dist/types/components/Text/index.d.ts +4 -276
- package/dist/types/components/TextArea/TextArea.stories.d.ts +9 -4
- package/dist/types/components/TextArea/index.d.ts +4 -1
- package/dist/types/components/Toast/Toast.stories.d.ts +9 -4
- package/dist/types/components/Toast/index.d.ts +47 -24
- package/dist/types/index.d.ts +0 -1
- package/dist/types/utils/with-polymorphic-component.d.ts +5 -4
- package/package.json +35 -40
- package/dist/ark-ui-BakX7_HR.cjs +0 -2
- package/dist/ark-ui-BakX7_HR.cjs.map +0 -1
- package/dist/ark-ui-BitYUtmQ.js +0 -6713
- package/dist/ark-ui-BitYUtmQ.js.map +0 -1
- package/dist/index-B4n-XEbJ.js.map +0 -1
- package/dist/index-BroabscA.cjs.map +0 -1
- package/dist/react-hot-toast-BQTk3w2h.cjs +0 -178
- package/dist/react-hot-toast-BQTk3w2h.cjs.map +0 -1
- package/dist/react-hot-toast-CPO7pUT3.js +0 -389
- package/dist/react-hot-toast-CPO7pUT3.js.map +0 -1
- package/dist/react-lottie-DTf3gNPc.cjs +0 -29
- package/dist/react-lottie-DTf3gNPc.cjs.map +0 -1
- package/dist/react-lottie-DygynGMG.js.map +0 -1
- package/dist/types/utils/create-style-context.d.ts +0 -20
- package/dist/types/utils/index.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token = "animations.backdrop-in" | "animations.backdrop-out" | "animations.dialog-in" | "animations.dialog-out" | "animations.drawer-in-left" | "animations.drawer-out-left" | "animations.drawer-in-right" | "animations.drawer-out-right" | "animations.skeleton-pulse" | "animations.fade-in" | "animations.fade-out" | "animations.collapse-in" | "animations.collapse-out" | "animations.spin" | "blurs.sm" | "blurs.base" | "blurs.md" | "blurs.lg" | "blurs.xl" | "blurs.2xl" | "blurs.3xl" | "borders.none" | "durations.fastest" | "durations.faster" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.slower" | "durations.slowest" | "easings.pulse" | "easings.default" | "easings.emphasized-in" | "easings.emphasized-out" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.14" | "sizes.16" | "sizes.20" | "sizes.24" | "sizes.28" | "sizes.32" | "sizes.36" | "sizes.40" | "sizes.44" | "sizes.48" | "sizes.52" | "sizes.56" | "sizes.60" | "sizes.64" | "sizes.72" | "sizes.80" | "sizes.96" | "sizes.0.5" | "sizes.1.5" | "sizes.2.5" | "sizes.3.5" | "sizes.4.5" | "sizes.2xs" | "sizes.xs" | "sizes.sm" | "sizes.md" | "sizes.lg" | "sizes.xl" | "sizes.2xl" | "sizes.3xl" | "sizes.4xl" | "sizes.5xl" | "sizes.6xl" | "sizes.7xl" | "sizes.8xl" | "sizes.full" | "sizes.min" | "sizes.max" | "sizes.fit" | "sizes.breakpoint-xs" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "sizes.breakpoint-2xl" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.dropdown" | "zIndex.sticky" | "zIndex.banner" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.skipLink" | "zIndex.toast" | "zIndex.tooltip" | "colors.neutral.0" | "colors.neutral.100" | "colors.neutral.200" | "colors.neutral.300" | "colors.neutral.400" | "colors.neutral.500" | "colors.neutral.600" | "colors.neutral.700" | "colors.neutral.800" | "colors.neutral.900" | "colors.neutral.1000" | "colors.neutral.1050" | "colors.neutral.1100" | "colors.neutral.1200" | "colors.black.700A" | "colors.black.600A" | "colors.black.500A" | "colors.black.400A" | "colors.black.300A" | "colors.black.200A" | "colors.black.100A" | "colors.white.1000A" | "colors.white.900A" | "colors.white.800A" | "colors.white.700A" | "colors.white.600A" | "colors.white.500A" | "colors.white.400A" | "colors.white.300A" | "colors.white.200A" | "colors.white.100A" | "colors.red.100" | "colors.red.200" | "colors.red.300" | "colors.red.400" | "colors.red.500" | "colors.red.600" | "colors.red.700" | "colors.red.800" | "colors.red.900" | "colors.red.1000" | "colors.orange.100" | "colors.orange.200" | "colors.orange.300" | "colors.orange.400" | "colors.orange.500" | "colors.orange.600" | "colors.orange.700" | "colors.orange.800" | "colors.orange.900" | "colors.orange.1000" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.blue.1000" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.green.1000" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.purple.1000" | "colors.ohre.100" | "colors.ohre.200" | "colors.ohre.300" | "colors.ohre.400" | "colors.ohre.500" | "colors.ohre.600" | "colors.ohre.700" | "colors.ohre.800" | "colors.ohre.900" | "colors.ohre.1000" | "colors.cyan.100" | "colors.cyan.200" | "colors.cyan.300" | "colors.cyan.400" | "colors.cyan.500" | "colors.cyan.600" | "colors.cyan.700" | "colors.cyan.800" | "colors.cyan.900" | "colors.cyan.1000" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "colors.yellow.1000" | "colors.v3.blue" | "borderWidths.none" | "borderWidths.sm" | "borderWidths.md" | "borderWidths.lg" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.7" | "spacing.8" | "spacing.9" | "spacing.10" | "spacing.11" | "spacing.12" | "spacing.14" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.28" | "spacing.30" | "spacing.32" | "spacing.36" | "spacing.40" | "spacing.44" | "spacing.48" | "spacing.52" | "spacing.56" | "spacing.60" | "spacing.64" | "spacing.72" | "spacing.80" | "spacing.96" | "spacing.98" | "spacing.128" | "spacing.160" | "spacing.0.5" | "spacing.1.5" | "spacing.2.5" | "spacing.3.5" | "spacing.4.5" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.full" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontSizes.3xl" | "fontSizes.4xl" | "letterSpacings.xs" | "letterSpacings.sm" | "letterSpacings.md" | "letterSpacings.lg" | "letterSpacings.xl" | "letterSpacings.2xl" | "letterSpacings.3xl" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "lineHeights.4xl" | "lineHeights.5xl" | "fontWeights.regular" | "fontWeights.medium" | "fontWeights.semibold" | "fontWeights.bold" | "fonts.freeman" | "fonts.dmSans" | "fonts.pretendard" | "fonts.notoSans" | "fonts.inter" | "breakpoints.xs" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "breakpoints.2xl" | "colors.content.neutral.bold" | "colors.content.neutral.default" | "colors.content.neutral.subtle" | "colors.content.neutral.subtlest" | "colors.content.neutral.disabled" | "colors.content.neutral.default_inverse" | "colors.content.neuroidPrimary.default" | "colors.content.neuroidPrimary.default_inverse" | "colors.content.danger.default" | "colors.content.warning.default" | "colors.content.success.default" | "colors.content.informative.default" | "colors.content.zoltarinaPrimary.default" | "colors.content.zoltarinaPrimary.default_inverse" | "colors.content.heydPrimary.default" | "colors.content.heydPrimary.default_inverse" | "colors.content.static.white.bold" | "colors.content.static.white.default" | "colors.content.static.white.subtle" | "colors.content.static.white.subtlest" | "colors.content.static.white.disabled" | "colors.content.static.black.bold" | "colors.content.static.black.default" | "colors.content.static.black.subtle" | "colors.content.static.black.subtlest" | "colors.content.static.black.disabled" | "colors.content.heybeePrimary.default" | "colors.content.heybeePrimary.default_inverse" | "colors.content.neutralInverse.bold" | "colors.content.neutralInverse.default" | "colors.content.neutralInverse.subtle" | "colors.content.neutralInverse.subtlest" | "colors.content.neutralInverse.disabled" | "colors.content.neutralInverse.default_inverse" | "colors.background.neutral.default" | "colors.background.neutral.selected" | "colors.background.neutral.disabled" | "colors.background.neuroidPrimary.default" | "colors.background.neuroidPrimary.selected" | "colors.background.neuroidSecondary.default" | "colors.background.neuroidSecondary.selected" | "colors.background.danger.default" | "colors.background.danger.selected" | "colors.background.warning.default" | "colors.background.warning.selected" | "colors.background.success.default" | "colors.background.success.selected" | "colors.background.informative.default" | "colors.background.informative.selected" | "colors.background.zoltarinaPrimary.default" | "colors.background.zoltarinaPrimary.selected" | "colors.background.zoltarinaSecondary.default" | "colors.background.zoltarinaSecondary.selected" | "colors.background.heydPrimary.default" | "colors.background.heydPrimary.selected" | "colors.background.heydSecondary.default" | "colors.background.heydSecondary.selected" | "colors.background.static.whiteAlpha.bold" | "colors.background.static.whiteAlpha.default" | "colors.background.static.whiteAlpha.selected" | "colors.background.static.whiteAlpha.disabled" | "colors.background.static.blackAlpha.bold" | "colors.background.static.blackAlpha.default" | "colors.background.static.blackAlpha.selected" | "colors.background.static.blackAlpha.disabled" | "colors.background.heybeePrimary.default" | "colors.background.heybeePrimary.selected" | "colors.background.neutralInverse.default" | "colors.background.neutralInverse.selected" | "colors.background.neutralInverse.disabled" | "colors.background.v3.default" | "colors.surface.base" | "colors.surface.layer_1" | "colors.surface.layer_2" | "colors.shadow.overlay" | "colors.shadow.raised" | "colors.scrim.default" | "colors.skeleton.default" | "colors.skeleton.subtle" | "colors.border.neutral.default" | "colors.border.neutral.subtle" | "colors.border.neutral.disabled" | "colors.border.neuroidPrimary.default" | "colors.border.danger.default" | "colors.border.warning.default" | "colors.border.success.default" | "colors.border.informative.default" | "colors.border.zoltarinaPrimary.default" | "colors.border.heydPrimary.default" | "colors.border.heybeePrimary.default" | "shadows.raised" | "shadows.overlay" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-7" | "spacing.-8" | "spacing.-9" | "spacing.-10" | "spacing.-11" | "spacing.-12" | "spacing.-14" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-28" | "spacing.-30" | "spacing.-32" | "spacing.-36" | "spacing.-40" | "spacing.-44" | "spacing.-48" | "spacing.-52" | "spacing.-56" | "spacing.-60" | "spacing.-64" | "spacing.-72" | "spacing.-80" | "spacing.-96" | "spacing.-98" | "spacing.-128" | "spacing.-160" | "spacing.-0.5" | "spacing.-1.5" | "spacing.-2.5" | "spacing.-3.5" | "spacing.-4.5" | "colors.colorPalette.0" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.1000" | "colors.colorPalette.1050" | "colors.colorPalette.1100" | "colors.colorPalette.1200" | "colors.colorPalette.700A" | "colors.colorPalette.600A" | "colors.colorPalette.500A" | "colors.colorPalette.400A" | "colors.colorPalette.300A" | "colors.colorPalette.200A" | "colors.colorPalette.100A" | "colors.colorPalette.1000A" | "colors.colorPalette.900A" | "colors.colorPalette.800A" | "colors.colorPalette.blue" | "colors.colorPalette.neutral.bold" | "colors.colorPalette.bold" | "colors.colorPalette.neutral.default" | "colors.colorPalette.default" | "colors.colorPalette.neutral.subtle" | "colors.colorPalette.subtle" | "colors.colorPalette.neutral.subtlest" | "colors.colorPalette.subtlest" | "colors.colorPalette.neutral.disabled" | "colors.colorPalette.disabled" | "colors.colorPalette.neutral.default_inverse" | "colors.colorPalette.default_inverse" | "colors.colorPalette.neuroidPrimary.default" | "colors.colorPalette.neuroidPrimary.default_inverse" | "colors.colorPalette.danger.default" | "colors.colorPalette.warning.default" | "colors.colorPalette.success.default" | "colors.colorPalette.informative.default" | "colors.colorPalette.zoltarinaPrimary.default" | "colors.colorPalette.zoltarinaPrimary.default_inverse" | "colors.colorPalette.heydPrimary.default" | "colors.colorPalette.heydPrimary.default_inverse" | "colors.colorPalette.static.white.bold" | "colors.colorPalette.white.bold" | "colors.colorPalette.static.white.default" | "colors.colorPalette.white.default" | "colors.colorPalette.static.white.subtle" | "colors.colorPalette.white.subtle" | "colors.colorPalette.static.white.subtlest" | "colors.colorPalette.white.subtlest" | "colors.colorPalette.static.white.disabled" | "colors.colorPalette.white.disabled" | "colors.colorPalette.static.black.bold" | "colors.colorPalette.black.bold" | "colors.colorPalette.static.black.default" | "colors.colorPalette.black.default" | "colors.colorPalette.static.black.subtle" | "colors.colorPalette.black.subtle" | "colors.colorPalette.static.black.subtlest" | "colors.colorPalette.black.subtlest" | "colors.colorPalette.static.black.disabled" | "colors.colorPalette.black.disabled" | "colors.colorPalette.heybeePrimary.default" | "colors.colorPalette.heybeePrimary.default_inverse" | "colors.colorPalette.neutralInverse.bold" | "colors.colorPalette.neutralInverse.default" | "colors.colorPalette.neutralInverse.subtle" | "colors.colorPalette.neutralInverse.subtlest" | "colors.colorPalette.neutralInverse.disabled" | "colors.colorPalette.neutralInverse.default_inverse" | "colors.colorPalette.neutral.selected" | "colors.colorPalette.selected" | "colors.colorPalette.neuroidPrimary.selected" | "colors.colorPalette.neuroidSecondary.default" | "colors.colorPalette.neuroidSecondary.selected" | "colors.colorPalette.danger.selected" | "colors.colorPalette.warning.selected" | "colors.colorPalette.success.selected" | "colors.colorPalette.informative.selected" | "colors.colorPalette.zoltarinaPrimary.selected" | "colors.colorPalette.zoltarinaSecondary.default" | "colors.colorPalette.zoltarinaSecondary.selected" | "colors.colorPalette.heydPrimary.selected" | "colors.colorPalette.heydSecondary.default" | "colors.colorPalette.heydSecondary.selected" | "colors.colorPalette.static.whiteAlpha.bold" | "colors.colorPalette.whiteAlpha.bold" | "colors.colorPalette.static.whiteAlpha.default" | "colors.colorPalette.whiteAlpha.default" | "colors.colorPalette.static.whiteAlpha.selected" | "colors.colorPalette.whiteAlpha.selected" | "colors.colorPalette.static.whiteAlpha.disabled" | "colors.colorPalette.whiteAlpha.disabled" | "colors.colorPalette.static.blackAlpha.bold" | "colors.colorPalette.blackAlpha.bold" | "colors.colorPalette.static.blackAlpha.default" | "colors.colorPalette.blackAlpha.default" | "colors.colorPalette.static.blackAlpha.selected" | "colors.colorPalette.blackAlpha.selected" | "colors.colorPalette.static.blackAlpha.disabled" | "colors.colorPalette.blackAlpha.disabled" | "colors.colorPalette.heybeePrimary.selected" | "colors.colorPalette.neutralInverse.selected" | "colors.colorPalette.v3.default" | "colors.colorPalette.base" | "colors.colorPalette.layer_1" | "colors.colorPalette.layer_2" | "colors.colorPalette.overlay" | "colors.colorPalette.raised"
|
|
2
|
+
export type Token = `animations.${AnimationToken}` | `blurs.${BlurToken}` | `borders.${BorderToken}` | `durations.${DurationToken}` | `easings.${EasingToken}` | `sizes.${SizeToken}` | `zIndex.${ZIndexToken}` | `colors.${ColorToken}` | `borderWidths.${BorderWidthToken}` | `spacing.${SpacingToken}` | `radii.${RadiusToken}` | `fontSizes.${FontSizeToken}` | `letterSpacings.${LetterSpacingToken}` | `lineHeights.${LineHeightToken}` | `fontWeights.${FontWeightToken}` | `fonts.${FontToken}` | `breakpoints.${BreakpointToken}` | `shadows.${ShadowToken}`
|
|
3
3
|
|
|
4
4
|
export type ColorPalette = "neutral" | "black" | "white" | "red" | "orange" | "blue" | "green" | "purple" | "ohre" | "cyan" | "yellow" | "v3" | "content" | "content.neutral" | "content.neuroidPrimary" | "content.danger" | "content.warning" | "content.success" | "content.informative" | "content.zoltarinaPrimary" | "content.heydPrimary" | "content.static" | "content.static.white" | "content.static.black" | "content.heybeePrimary" | "content.neutralInverse" | "background" | "background.neutral" | "background.neuroidPrimary" | "background.neuroidSecondary" | "background.danger" | "background.warning" | "background.success" | "background.informative" | "background.zoltarinaPrimary" | "background.zoltarinaSecondary" | "background.heydPrimary" | "background.heydSecondary" | "background.static" | "background.static.whiteAlpha" | "background.static.blackAlpha" | "background.heybeePrimary" | "background.neutralInverse" | "background.v3" | "surface" | "shadow" | "scrim" | "skeleton" | "border" | "border.neutral" | "border.neuroidPrimary" | "border.danger" | "border.warning" | "border.success" | "border.informative" | "border.zoltarinaPrimary" | "border.heydPrimary" | "border.heybeePrimary"
|
|
5
5
|
|
|
@@ -15,6 +15,8 @@ interface Recursive<T> {
|
|
|
15
15
|
* -----------------------------------------------------------------------------*/
|
|
16
16
|
|
|
17
17
|
type TextStyleProperty =
|
|
18
|
+
| 'color'
|
|
19
|
+
| 'direction'
|
|
18
20
|
| 'font'
|
|
19
21
|
| 'fontFamily'
|
|
20
22
|
| 'fontFeatureSettings'
|
|
@@ -35,6 +37,7 @@ type TextStyleProperty =
|
|
|
35
37
|
| 'fontVariantPosition'
|
|
36
38
|
| 'fontVariationSettings'
|
|
37
39
|
| 'fontWeight'
|
|
40
|
+
| 'hangingPunctuation'
|
|
38
41
|
| 'hypens'
|
|
39
42
|
| 'hyphenateCharacter'
|
|
40
43
|
| 'hyphenateLimitChars'
|
|
@@ -43,11 +46,17 @@ type TextStyleProperty =
|
|
|
43
46
|
| 'lineHeight'
|
|
44
47
|
| 'quotes'
|
|
45
48
|
| 'overflowWrap'
|
|
49
|
+
| 'tabSize'
|
|
50
|
+
| 'textAlign'
|
|
51
|
+
| 'textAlignLast'
|
|
46
52
|
| 'textCombineUpright'
|
|
47
53
|
| 'textDecoration'
|
|
48
54
|
| 'textDecorationColor'
|
|
49
55
|
| 'textDecorationLine'
|
|
56
|
+
| 'textDecorationSkip'
|
|
57
|
+
| 'textDecorationSkipBox'
|
|
50
58
|
| 'textDecorationSkipInk'
|
|
59
|
+
| 'textDecorationSkipInset'
|
|
51
60
|
| 'textDecorationStyle'
|
|
52
61
|
| 'textDecorationThickness'
|
|
53
62
|
| 'textEmphasis'
|
|
@@ -60,16 +69,21 @@ type TextStyleProperty =
|
|
|
60
69
|
| 'textOverflow'
|
|
61
70
|
| 'textRendering'
|
|
62
71
|
| 'textShadow'
|
|
72
|
+
| 'textStroke'
|
|
73
|
+
| 'textStrokeColor'
|
|
74
|
+
| 'textStrokeWidth'
|
|
63
75
|
| 'textTransform'
|
|
64
76
|
| 'textUnderlineOffset'
|
|
65
77
|
| 'textUnderlinePosition'
|
|
66
78
|
| 'textWrap'
|
|
67
79
|
| 'textWrapMode'
|
|
68
80
|
| 'textWrapStyle'
|
|
81
|
+
| 'unicodeBidi'
|
|
69
82
|
| 'verticalAlign'
|
|
70
83
|
| 'whiteSpace'
|
|
71
84
|
| 'wordBreak'
|
|
72
85
|
| 'wordSpacing'
|
|
86
|
+
| 'writingMode'
|
|
73
87
|
|
|
74
88
|
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
75
89
|
|
|
@@ -79,17 +93,11 @@ export type TextStyles = Recursive<Token<TextStyle>>
|
|
|
79
93
|
* Layer styles
|
|
80
94
|
* -----------------------------------------------------------------------------*/
|
|
81
95
|
|
|
82
|
-
type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
| 'Inline'
|
|
88
|
-
| 'Block'
|
|
89
|
-
| 'InlineStart'
|
|
90
|
-
| 'InlineEnd'
|
|
91
|
-
| 'BlockStart'
|
|
92
|
-
| 'BlockEnd'
|
|
96
|
+
type LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'
|
|
97
|
+
|
|
98
|
+
type PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'
|
|
99
|
+
|
|
100
|
+
type Placement = PhysicalPlacement | LogicalPlacement
|
|
93
101
|
|
|
94
102
|
type Radius =
|
|
95
103
|
| `Top${'Right' | 'Left'}`
|
|
@@ -98,20 +106,80 @@ type Radius =
|
|
|
98
106
|
| `End${'Start' | 'End'}`
|
|
99
107
|
|
|
100
108
|
type LayerStyleProperty =
|
|
109
|
+
| 'aspectRatio'
|
|
101
110
|
| 'background'
|
|
102
111
|
| 'backgroundColor'
|
|
103
112
|
| 'backgroundImage'
|
|
104
|
-
| 'borderRadius'
|
|
105
113
|
| 'border'
|
|
106
|
-
| 'borderWidth'
|
|
107
114
|
| 'borderColor'
|
|
115
|
+
| 'borderImage'
|
|
116
|
+
| 'borderImageOutset'
|
|
117
|
+
| 'borderImageRepeat'
|
|
118
|
+
| 'borderImageSlice'
|
|
119
|
+
| 'borderImageSource'
|
|
120
|
+
| 'borderImageWidth'
|
|
121
|
+
| 'borderRadius'
|
|
108
122
|
| 'borderStyle'
|
|
123
|
+
| 'borderWidth'
|
|
124
|
+
| `border${Placement}`
|
|
125
|
+
| `border${Placement}Color`
|
|
126
|
+
| `border${Placement}Style`
|
|
127
|
+
| `border${Placement}Width`
|
|
128
|
+
| 'borderRadius'
|
|
129
|
+
| `border${Radius}Radius`
|
|
109
130
|
| 'boxShadow'
|
|
131
|
+
| 'boxShadowColor'
|
|
132
|
+
| 'clipPath'
|
|
133
|
+
| 'color'
|
|
134
|
+
| 'contain'
|
|
135
|
+
| 'content'
|
|
136
|
+
| 'contentVisibility'
|
|
137
|
+
| 'cursor'
|
|
138
|
+
| 'display'
|
|
110
139
|
| 'filter'
|
|
111
140
|
| 'backdropFilter'
|
|
112
|
-
| '
|
|
113
|
-
| '
|
|
141
|
+
| 'height'
|
|
142
|
+
| 'width'
|
|
143
|
+
| 'minHeight'
|
|
144
|
+
| 'minWidth'
|
|
145
|
+
| 'maxHeight'
|
|
146
|
+
| 'maxWidth'
|
|
147
|
+
| `margin${Placement}`
|
|
148
|
+
| 'inset'
|
|
149
|
+
| `inset${LogicalPlacement}`
|
|
150
|
+
| Lowercase<PhysicalPlacement>
|
|
151
|
+
| 'isolation'
|
|
152
|
+
| 'mask'
|
|
153
|
+
| 'maskClip'
|
|
154
|
+
| 'maskComposite'
|
|
155
|
+
| 'maskImage'
|
|
156
|
+
| 'maskMode'
|
|
157
|
+
| 'maskOrigin'
|
|
158
|
+
| 'maskPosition'
|
|
159
|
+
| 'maskRepeat'
|
|
160
|
+
| 'maskSize'
|
|
161
|
+
| 'mixBlendMode'
|
|
162
|
+
| 'objectFit'
|
|
163
|
+
| 'objectPosition'
|
|
114
164
|
| 'opacity'
|
|
165
|
+
| 'outline'
|
|
166
|
+
| 'outlineColor'
|
|
167
|
+
| 'outlineOffset'
|
|
168
|
+
| 'outlineStyle'
|
|
169
|
+
| 'outlineWidth'
|
|
170
|
+
| 'overflow'
|
|
171
|
+
| 'overflowX'
|
|
172
|
+
| 'overflowY'
|
|
173
|
+
| 'padding'
|
|
174
|
+
| `padding${Placement}`
|
|
175
|
+
| 'pointerEvents'
|
|
176
|
+
| 'position'
|
|
177
|
+
| 'resize'
|
|
178
|
+
| 'transform'
|
|
179
|
+
| 'transition'
|
|
180
|
+
| 'visibility'
|
|
181
|
+
| 'willChange'
|
|
182
|
+
| 'zIndex'
|
|
115
183
|
| 'backgroundBlendMode'
|
|
116
184
|
| 'backgroundAttachment'
|
|
117
185
|
| 'backgroundClip'
|
|
@@ -119,14 +187,6 @@ type LayerStyleProperty =
|
|
|
119
187
|
| 'backgroundPosition'
|
|
120
188
|
| 'backgroundRepeat'
|
|
121
189
|
| 'backgroundSize'
|
|
122
|
-
| `border${Placement}`
|
|
123
|
-
| `border${Placement}Width`
|
|
124
|
-
| 'borderRadius'
|
|
125
|
-
| `border${Radius}Radius`
|
|
126
|
-
| `border${Placement}Color`
|
|
127
|
-
| `border${Placement}Style`
|
|
128
|
-
| 'padding'
|
|
129
|
-
| `padding${Placement}`
|
|
130
190
|
|
|
131
191
|
export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
|
|
132
192
|
|
|
@@ -10,7 +10,7 @@ export interface Conditions {
|
|
|
10
10
|
"_focusWithin": string
|
|
11
11
|
/** `&:is(:focus-visible, [data-focus-visible])` */
|
|
12
12
|
"_focusVisible": string
|
|
13
|
-
/** `&:is(:disabled, [disabled], [data-disabled])` */
|
|
13
|
+
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
14
14
|
"_disabled": string
|
|
15
15
|
/** `&:is(:active, [data-active])` */
|
|
16
16
|
"_active": string
|
|
@@ -18,7 +18,7 @@ export interface Conditions {
|
|
|
18
18
|
"_visited": string
|
|
19
19
|
/** `&:target` */
|
|
20
20
|
"_target": string
|
|
21
|
-
/** `&:is(:read-only, [data-read-only])` */
|
|
21
|
+
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
22
22
|
"_readOnly": string
|
|
23
23
|
/** `&:read-write` */
|
|
24
24
|
"_readWrite": string
|
|
@@ -46,7 +46,7 @@ export interface Conditions {
|
|
|
46
46
|
"_firstLetter": string
|
|
47
47
|
/** `&::first-line` */
|
|
48
48
|
"_firstLine": string
|
|
49
|
-
/** `&::marker` */
|
|
49
|
+
/** `&::marker, &::-webkit-details-marker` */
|
|
50
50
|
"_marker": string
|
|
51
51
|
/** `&::selection` */
|
|
52
52
|
"_selection": string
|
|
@@ -80,7 +80,7 @@ export interface Conditions {
|
|
|
80
80
|
"_peerFocusWithin": string
|
|
81
81
|
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
82
82
|
"_peerFocusVisible": string
|
|
83
|
-
/** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
|
|
83
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
84
84
|
"_peerDisabled": string
|
|
85
85
|
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
86
86
|
"_peerChecked": string
|
|
@@ -100,13 +100,13 @@ export interface Conditions {
|
|
|
100
100
|
"_groupFocusWithin": string
|
|
101
101
|
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
102
102
|
"_groupFocusVisible": string
|
|
103
|
-
/** `.group:is(:disabled, [disabled], [data-disabled]) &` */
|
|
103
|
+
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
104
104
|
"_groupDisabled": string
|
|
105
105
|
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
106
106
|
"_groupChecked": string
|
|
107
107
|
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
108
108
|
"_groupExpanded": string
|
|
109
|
-
/** `.group:is(:invalid, [data-invalid]) &` */
|
|
109
|
+
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
110
110
|
"_groupInvalid": string
|
|
111
111
|
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])` */
|
|
112
112
|
"_indeterminate": string
|
|
@@ -142,7 +142,7 @@ export interface Conditions {
|
|
|
142
142
|
"_default": string
|
|
143
143
|
/** `&:optional` */
|
|
144
144
|
"_optional": string
|
|
145
|
-
/** `&:is([open], [data-open], [data-state="open"])` */
|
|
145
|
+
/** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
|
|
146
146
|
"_open": string
|
|
147
147
|
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
148
148
|
"_closed": string
|
|
@@ -194,9 +194,9 @@ export interface Conditions {
|
|
|
194
194
|
"_lessContrast": string
|
|
195
195
|
/** `@media (prefers-contrast: more)` */
|
|
196
196
|
"_moreContrast": string
|
|
197
|
-
/**
|
|
197
|
+
/** `:where([dir=ltr], :dir(ltr)) &` */
|
|
198
198
|
"_ltr": string
|
|
199
|
-
/**
|
|
199
|
+
/** `:where([dir=rtl], :dir(rtl)) &` */
|
|
200
200
|
"_rtl": string
|
|
201
201
|
/** `&::-webkit-scrollbar` */
|
|
202
202
|
"_scrollbar": string
|
|
@@ -212,6 +212,10 @@ export interface Conditions {
|
|
|
212
212
|
"_icon": string
|
|
213
213
|
/** `@starting-style` */
|
|
214
214
|
"_starting": string
|
|
215
|
+
/** `@media (scripting: none)` */
|
|
216
|
+
"_noscript": string
|
|
217
|
+
/** `@media (inverted-colors: inverted)` */
|
|
218
|
+
"_invertedColors": string
|
|
215
219
|
/** `&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])` */
|
|
216
220
|
"_collapsed": string
|
|
217
221
|
/** `&:is([data-state="off"])` */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type {
|
|
2
|
+
import type { ElementType, JSX, ComponentPropsWithRef, ComponentType, Component } from 'react'
|
|
3
3
|
import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe';
|
|
4
4
|
import type { Assign, DistributiveOmit, DistributiveUnion, JsxHTMLProps, JsxStyleProps, Pretty } from './system-types';
|
|
5
5
|
|
|
@@ -7,26 +7,41 @@ interface Dict {
|
|
|
7
7
|
[k: string]: unknown
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export
|
|
11
|
-
|
|
10
|
+
export interface UnstyledProps {
|
|
11
|
+
/**
|
|
12
|
+
* Whether to remove recipe styles
|
|
13
|
+
*/
|
|
14
|
+
unstyled?: boolean | undefined
|
|
12
15
|
}
|
|
13
16
|
|
|
17
|
+
export interface AsProps {
|
|
18
|
+
/**
|
|
19
|
+
* The element to render as
|
|
20
|
+
*/
|
|
21
|
+
as?: ElementType | undefined
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
25
|
+
? JSX.LibraryManagedAttributes<T, P>
|
|
26
|
+
: ComponentPropsWithRef<T>
|
|
27
|
+
|
|
14
28
|
export interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
15
|
-
(props: JsxHTMLProps<ComponentProps<T
|
|
16
|
-
displayName?: string
|
|
29
|
+
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
30
|
+
displayName?: string | undefined
|
|
17
31
|
}
|
|
18
32
|
|
|
19
33
|
interface RecipeFn {
|
|
20
34
|
__type: any
|
|
21
35
|
}
|
|
22
36
|
|
|
23
|
-
interface JsxFactoryOptions<TProps extends Dict> {
|
|
37
|
+
export interface JsxFactoryOptions<TProps extends Dict> {
|
|
24
38
|
dataAttr?: boolean
|
|
25
|
-
defaultProps?: TProps
|
|
26
|
-
shouldForwardProp
|
|
39
|
+
defaultProps?: Partial<TProps>
|
|
40
|
+
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
|
|
41
|
+
forwardProps?: string[]
|
|
27
42
|
}
|
|
28
43
|
|
|
29
|
-
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T
|
|
44
|
+
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
|
|
30
45
|
|
|
31
46
|
export type JsxElement<T extends ElementType, P extends Dict> = T extends StyledComponent<infer A, infer B>
|
|
32
47
|
? StyledComponent<A, Pretty<DistributiveUnion<P, B>>>
|
|
@@ -47,6 +62,6 @@ export type JsxElements = {
|
|
|
47
62
|
|
|
48
63
|
export type Styled = JsxFactory & JsxElements
|
|
49
64
|
|
|
50
|
-
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T
|
|
65
|
+
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
51
66
|
|
|
52
67
|
export type StyledVariantProps<T extends StyledComponent<any, any>> = T extends StyledComponent<any, infer Props> ? Props : never
|
|
@@ -57,6 +57,12 @@ export interface UtilityValues {
|
|
|
57
57
|
outlineColor: Tokens["colors"];
|
|
58
58
|
outline: Tokens["borders"];
|
|
59
59
|
outlineOffset: Tokens["spacing"];
|
|
60
|
+
focusRing: "outside" | "inside" | "mixed" | "none";
|
|
61
|
+
focusVisibleRing: "outside" | "inside" | "mixed" | "none";
|
|
62
|
+
focusRingColor: Tokens["colors"];
|
|
63
|
+
focusRingOffset: Tokens["spacing"];
|
|
64
|
+
focusRingWidth: Tokens["borderWidths"] | CssProperties["outlineWidth"];
|
|
65
|
+
focusRingStyle: CssProperties["outlineStyle"];
|
|
60
66
|
divideX: Tokens["borderWidths"];
|
|
61
67
|
divideY: Tokens["borderWidths"];
|
|
62
68
|
divideColor: Tokens["colors"];
|
|
@@ -73,6 +79,7 @@ export interface UtilityValues {
|
|
|
73
79
|
minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
74
80
|
maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
75
81
|
maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
|
|
82
|
+
boxSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
|
|
76
83
|
color: Tokens["colors"];
|
|
77
84
|
fontFamily: Tokens["fonts"];
|
|
78
85
|
fontSize: Tokens["fontSizes"];
|
|
@@ -90,6 +97,7 @@ export interface UtilityValues {
|
|
|
90
97
|
background: Tokens["colors"];
|
|
91
98
|
backgroundColor: Tokens["colors"];
|
|
92
99
|
backgroundGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
100
|
+
backgroundLinear: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
93
101
|
textGradient: "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
94
102
|
gradientFrom: Tokens["colors"];
|
|
95
103
|
gradientTo: Tokens["colors"];
|
|
@@ -115,6 +123,8 @@ export interface UtilityValues {
|
|
|
115
123
|
borderLeftWidth: Tokens["borderWidths"];
|
|
116
124
|
borderRightWidth: Tokens["borderWidths"];
|
|
117
125
|
borderBottomWidth: Tokens["borderWidths"];
|
|
126
|
+
borderBlockStartWidth: Tokens["borderWidths"];
|
|
127
|
+
borderBlockEndWidth: Tokens["borderWidths"];
|
|
118
128
|
borderColor: Tokens["colors"];
|
|
119
129
|
borderInline: Tokens["borders"];
|
|
120
130
|
borderInlineWidth: Tokens["borderWidths"];
|
|
@@ -152,7 +162,8 @@ export interface UtilityValues {
|
|
|
152
162
|
transitionTimingFunction: Tokens["easings"];
|
|
153
163
|
transitionDelay: Tokens["durations"];
|
|
154
164
|
transitionDuration: Tokens["durations"];
|
|
155
|
-
|
|
165
|
+
transitionProperty: "common" | "colors" | "size" | "position" | "background";
|
|
166
|
+
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
156
167
|
animation: Tokens["animations"];
|
|
157
168
|
animationName: "fade-in" | "fade-out" | "slide-in" | "slide-out" | "slide-in-left" | "slide-out-left" | "slide-in-right" | "slide-out-right" | "collapse-in" | "collapse-out" | "fadeIn" | "fadeOut" | "skeleton-pulse" | "spin";
|
|
158
169
|
animationTimingFunction: Tokens["easings"];
|
|
@@ -8,8 +8,7 @@ type AnyString = (string & {})
|
|
|
8
8
|
type CssVars = `var(--${string})`
|
|
9
9
|
type CssVarValue = ConditionalValue<Token | AnyString | (number & {})>
|
|
10
10
|
|
|
11
|
-
type
|
|
12
|
-
type CssVarKeys = `--${CssVarName}`
|
|
11
|
+
type CssVarKeys = `--${string}` & {}
|
|
13
12
|
|
|
14
13
|
export type CssVarProperties = {
|
|
15
14
|
[key in CssVarKeys]?: CssVarValue
|
|
@@ -855,7 +854,7 @@ borderBlockEndStyle?: ConditionalValue<CssVars | CssProperties["borderBlockEndSt
|
|
|
855
854
|
*
|
|
856
855
|
* @see https://developer.mozilla.org/docs/Web/CSS/border-block-end-width
|
|
857
856
|
*/
|
|
858
|
-
borderBlockEndWidth?: ConditionalValue<CssProperties["borderBlockEndWidth"] | AnyString>
|
|
857
|
+
borderBlockEndWidth?: ConditionalValue<UtilityValues["borderBlockEndWidth"] | CssVars | CssProperties["borderBlockEndWidth"] | AnyString>
|
|
859
858
|
/**
|
|
860
859
|
* The **`border-block-start`** CSS property is a shorthand property for setting the individual logical block-start border property values in a single place in the style sheet.
|
|
861
860
|
*
|
|
@@ -909,7 +908,7 @@ borderBlockStartStyle?: ConditionalValue<CssVars | CssProperties["borderBlockSta
|
|
|
909
908
|
*
|
|
910
909
|
* @see https://developer.mozilla.org/docs/Web/CSS/border-block-start-width
|
|
911
910
|
*/
|
|
912
|
-
borderBlockStartWidth?: ConditionalValue<CssProperties["borderBlockStartWidth"] | AnyString>
|
|
911
|
+
borderBlockStartWidth?: ConditionalValue<UtilityValues["borderBlockStartWidth"] | CssVars | CssProperties["borderBlockStartWidth"] | AnyString>
|
|
913
912
|
/**
|
|
914
913
|
* The **`border-block-style`** CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the `border-top-style` and `border-bottom-style`, or `border-left-style` and `border-right-style` properties depending on the values defined for `writing-mode`, `direction`, and `text-orientation`.
|
|
915
914
|
*
|
|
@@ -5908,7 +5907,7 @@ transitionDuration?: ConditionalValue<UtilityValues["transitionDuration"] | CssV
|
|
|
5908
5907
|
*
|
|
5909
5908
|
* @see https://developer.mozilla.org/docs/Web/CSS/transition-property
|
|
5910
5909
|
*/
|
|
5911
|
-
transitionProperty?: ConditionalValue<CssProperties["transitionProperty"] | AnyString>
|
|
5910
|
+
transitionProperty?: ConditionalValue<UtilityValues["transitionProperty"] | CssVars | CssProperties["transitionProperty"] | AnyString>
|
|
5912
5911
|
/**
|
|
5913
5912
|
* The **`transition-timing-function`** CSS property sets how intermediate values are calculated for CSS properties being affected by a transition effect.
|
|
5914
5913
|
*
|
|
@@ -6993,6 +6992,9 @@ bgBlendMode?: ConditionalValue<CssProperties["backgroundBlendMode"] | AnyString>
|
|
|
6993
6992
|
*/
|
|
6994
6993
|
bgSize?: ConditionalValue<CssProperties["backgroundSize"] | AnyString>
|
|
6995
6994
|
bgGradient?: ConditionalValue<UtilityValues["backgroundGradient"] | CssVars | AnyString>
|
|
6995
|
+
bgLinear?: ConditionalValue<UtilityValues["backgroundLinear"] | CssVars | AnyString>
|
|
6996
|
+
bgRadial?: ConditionalValue<string | number | AnyString>
|
|
6997
|
+
bgConic?: ConditionalValue<string | number | AnyString>
|
|
6996
6998
|
/**
|
|
6997
6999
|
* The **`border-radius`** CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.
|
|
6998
7000
|
*
|
|
@@ -7360,13 +7362,23 @@ scrollPaddingX?: ConditionalValue<UtilityValues["scrollPaddingInline"] | CssVars
|
|
|
7360
7362
|
hideBelow?: ConditionalValue<UtilityValues["hideBelow"] | CssVars | AnyString>
|
|
7361
7363
|
spaceX?: ConditionalValue<UtilityValues["spaceX"] | CssVars | AnyString>
|
|
7362
7364
|
spaceY?: ConditionalValue<UtilityValues["spaceY"] | CssVars | AnyString>
|
|
7365
|
+
focusRing?: ConditionalValue<UtilityValues["focusRing"] | CssVars | AnyString>
|
|
7366
|
+
focusVisibleRing?: ConditionalValue<UtilityValues["focusVisibleRing"] | CssVars | AnyString>
|
|
7367
|
+
focusRingColor?: ConditionalValue<UtilityValues["focusRingColor"] | CssVars | AnyString>
|
|
7368
|
+
focusRingOffset?: ConditionalValue<UtilityValues["focusRingOffset"] | CssVars | AnyString>
|
|
7369
|
+
focusRingWidth?: ConditionalValue<UtilityValues["focusRingWidth"] | CssVars | AnyString>
|
|
7370
|
+
focusRingStyle?: ConditionalValue<UtilityValues["focusRingStyle"] | CssVars | AnyString>
|
|
7363
7371
|
divideX?: ConditionalValue<UtilityValues["divideX"] | CssVars | AnyString>
|
|
7364
7372
|
divideY?: ConditionalValue<UtilityValues["divideY"] | CssVars | AnyString>
|
|
7365
7373
|
divideColor?: ConditionalValue<UtilityValues["divideColor"] | CssVars | AnyString>
|
|
7366
7374
|
divideStyle?: ConditionalValue<UtilityValues["divideStyle"] | CssVars | AnyString>
|
|
7375
|
+
boxSize?: ConditionalValue<UtilityValues["boxSize"] | CssVars | AnyString>
|
|
7367
7376
|
fontSmoothing?: ConditionalValue<UtilityValues["fontSmoothing"] | CssVars | AnyString>
|
|
7368
7377
|
truncate?: ConditionalValue<UtilityValues["truncate"] | CssVars | AnyString>
|
|
7369
7378
|
backgroundGradient?: ConditionalValue<UtilityValues["backgroundGradient"] | CssVars | AnyString>
|
|
7379
|
+
backgroundLinear?: ConditionalValue<UtilityValues["backgroundLinear"] | CssVars | AnyString>
|
|
7380
|
+
backgroundRadial?: ConditionalValue<string | number | AnyString>
|
|
7381
|
+
backgroundConic?: ConditionalValue<string | number | AnyString>
|
|
7370
7382
|
textGradient?: ConditionalValue<UtilityValues["textGradient"] | CssVars | AnyString>
|
|
7371
7383
|
gradientFromPosition?: ConditionalValue<string | number | AnyString>
|
|
7372
7384
|
gradientToPosition?: ConditionalValue<string | number | AnyString>
|
|
@@ -91,19 +91,95 @@ type PositionTry =
|
|
|
91
91
|
| DashedIdent
|
|
92
92
|
|
|
93
93
|
export interface ModernCssProperties {
|
|
94
|
+
/**
|
|
95
|
+
* Defines a name for the anchor element that can be referenced by positioned elements.
|
|
96
|
+
*/
|
|
94
97
|
anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Defines the scope of anchor names within the element.
|
|
101
|
+
*/
|
|
95
102
|
anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Controls how form elements size themselves.
|
|
106
|
+
*/
|
|
96
107
|
fieldSizing?: Globals | 'fixed' | 'content'
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Controls whether interpolation of size values should allow keywords.
|
|
111
|
+
*/
|
|
97
112
|
interpolateSize?: Globals | 'allow-keywords' | 'numeric-only'
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Specifies the anchor element that this positioned element should be positioned relative to.
|
|
116
|
+
*/
|
|
98
117
|
positionAnchor?: Globals | 'auto' | DashedIdent
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Specifies the area within the anchor element where this positioned element should be placed.
|
|
121
|
+
*/
|
|
99
122
|
positionArea?: Globals | 'auto' | PositionAreaAxis | `${PositionAreaAxis} ${PositionAreaAxis}` | String
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Specifies the position try options for the element.
|
|
126
|
+
*/
|
|
100
127
|
positionTry?: Globals | StringToMultiple<PositionTry> | String
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Specifies fallback position try options when the primary position fails.
|
|
131
|
+
*/
|
|
101
132
|
positionTryFallback?: Globals | 'none' | StringToMultiple<PositionTry> | String
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Specifies the order in which position try options should be attempted.
|
|
136
|
+
*/
|
|
102
137
|
positionTryOrder?: Globals | 'normal' | 'most-width' | 'most-height' | 'most-block-size' | 'most-inline-size'
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Controls when the positioned element should be visible.
|
|
141
|
+
*/
|
|
103
142
|
positionVisibility?: Globals | 'always' | 'anchors-visible' | 'no-overflow'
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Controls whether text should wrap or not.
|
|
146
|
+
*/
|
|
104
147
|
textWrapMode?: Globals | 'wrap' | 'nowrap'
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Controls trimming of spacing in text.
|
|
151
|
+
*/
|
|
105
152
|
textSpacingTrim?: Globals | 'normal' | 'space-all' | 'space-first' | 'trim-start'
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Controls the style of text wrapping.
|
|
156
|
+
*/
|
|
106
157
|
textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Controls whether the entire element should be draggable instead of its contents.
|
|
161
|
+
*/
|
|
162
|
+
WebkitUserDrag?: Globals | 'auto' | 'element' | 'none'
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Specifies whether an element can be used to drag the entire app window (Electron).
|
|
166
|
+
*/
|
|
167
|
+
WebkitAppRegion?: Globals | 'drag' | 'no-drag'
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Sets the horizontal spacing between table borders.
|
|
171
|
+
*/
|
|
172
|
+
WebkitBorderHorizontalSpacing?: Globals | String | Number
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Sets the vertical spacing between table borders.
|
|
176
|
+
*/
|
|
177
|
+
WebkitBorderVerticalSpacing?: Globals | String | Number
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Controls the display of text content for security purposes (e.g., password fields).
|
|
181
|
+
*/
|
|
182
|
+
WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
|
|
107
183
|
}
|
|
108
184
|
|
|
109
185
|
export type CssProperty = keyof PropertiesFallback
|