@yahoo/uds 3.66.1 → 3.67.0-beta.1
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/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/codemods/flattenButtonVariant.ts +2 -2
- package/cli/preload.ts +1 -1
- package/cli/tsconfig.json +1 -10
- package/cli/utils/purgeCSS.ts +14 -24
- package/dist/_virtual/rolldown_runtime.cjs +44 -0
- package/dist/_virtual/rolldown_runtime.js +24 -0
- package/dist/components/Box.cjs +105 -0
- package/dist/{Box-Dw6erJKC.d.cts → components/Box.d.cts} +8 -7
- package/dist/{Box-BkZ2BCj8.d.ts → components/Box.d.ts} +8 -7
- package/dist/components/Box.js +104 -0
- package/dist/components/Divider/Divider.cjs +47 -0
- package/dist/components/Divider/Divider.d.cts +38 -0
- package/dist/components/Divider/Divider.d.ts +38 -0
- package/dist/components/Divider/Divider.js +46 -0
- package/dist/components/Divider/DividerCore.cjs +76 -0
- package/dist/components/Divider/DividerCore.d.cts +15 -0
- package/dist/components/Divider/DividerCore.d.ts +15 -0
- package/dist/components/Divider/DividerCore.js +75 -0
- package/dist/components/Divider/DividerInternal.cjs +28 -0
- package/dist/components/Divider/DividerInternal.d.cts +12 -0
- package/dist/components/Divider/DividerInternal.d.ts +12 -0
- package/dist/components/Divider/DividerInternal.js +27 -0
- package/dist/components/Divider/index.cjs +4 -0
- package/dist/components/Divider/index.d.cts +2 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/index.js +4 -0
- package/dist/components/FormLabel.cjs +33 -0
- package/dist/components/FormLabel.d.cts +26 -0
- package/dist/components/FormLabel.d.ts +26 -0
- package/dist/components/FormLabel.js +31 -0
- package/dist/components/HStack.cjs +51 -0
- package/dist/components/HStack.d.cts +39 -0
- package/dist/components/HStack.d.ts +39 -0
- package/dist/components/HStack.js +50 -0
- package/dist/components/Icon.cjs +67 -0
- package/dist/components/Icon.d.cts +38 -0
- package/dist/components/Icon.d.ts +38 -0
- package/dist/components/Icon.js +66 -0
- package/dist/components/IconSlot.cjs +57 -0
- package/dist/components/IconSlot.d.cts +31 -0
- package/dist/components/IconSlot.d.ts +31 -0
- package/dist/components/IconSlot.js +54 -0
- package/dist/components/Image.cjs +96 -0
- package/dist/components/Image.d.cts +91 -0
- package/dist/components/Image.d.ts +91 -0
- package/dist/components/Image.js +95 -0
- package/dist/components/Link.cjs +98 -0
- package/dist/components/Link.d.cts +45 -0
- package/dist/components/Link.d.ts +45 -0
- package/dist/components/Link.js +97 -0
- package/dist/components/Text.cjs +157 -0
- package/dist/components/Text.d.cts +90 -0
- package/dist/components/Text.d.ts +90 -0
- package/dist/components/Text.js +156 -0
- package/dist/components/VStack.cjs +51 -0
- package/dist/components/VStack.d.cts +39 -0
- package/dist/components/VStack.d.ts +39 -0
- package/dist/components/VStack.js +50 -0
- package/dist/components/client/AnimateHeightChange.cjs +48 -0
- package/dist/components/client/AnimateHeightChange.d.cts +20 -0
- package/dist/components/client/AnimateHeightChange.d.ts +20 -0
- package/dist/components/client/AnimateHeightChange.js +47 -0
- package/dist/components/client/Avatar/Avatar.cjs +33 -0
- package/dist/components/client/Avatar/Avatar.d.cts +30 -0
- package/dist/components/client/Avatar/Avatar.d.ts +30 -0
- package/dist/components/client/Avatar/Avatar.js +32 -0
- package/dist/components/client/Avatar/AvatarIcon.cjs +64 -0
- package/dist/components/client/Avatar/AvatarIcon.d.cts +36 -0
- package/dist/components/client/Avatar/AvatarIcon.d.ts +36 -0
- package/dist/components/client/Avatar/AvatarIcon.js +63 -0
- package/dist/components/client/Avatar/AvatarImage.cjs +88 -0
- package/dist/components/client/Avatar/AvatarImage.d.cts +44 -0
- package/dist/components/client/Avatar/AvatarImage.d.ts +44 -0
- package/dist/components/client/Avatar/AvatarImage.js +87 -0
- package/dist/components/client/Avatar/AvatarText.cjs +50 -0
- package/dist/components/client/Avatar/AvatarText.d.cts +39 -0
- package/dist/components/client/Avatar/AvatarText.d.ts +39 -0
- package/dist/components/client/Avatar/AvatarText.js +49 -0
- package/dist/components/client/Avatar/index.cjs +11 -0
- package/dist/components/client/Avatar/index.d.cts +5 -0
- package/dist/components/client/Avatar/index.d.ts +5 -0
- package/dist/components/client/Avatar/index.js +8 -0
- package/dist/components/client/Avatar/utils.cjs +66 -0
- package/dist/components/client/Avatar/utils.d.cts +43 -0
- package/dist/components/client/Avatar/utils.d.ts +43 -0
- package/dist/components/client/Avatar/utils.js +60 -0
- package/dist/components/client/Badge.cjs +106 -0
- package/dist/components/client/Badge.d.cts +34 -0
- package/dist/components/client/Badge.d.ts +34 -0
- package/dist/components/client/Badge.js +104 -0
- package/dist/components/client/Button.cjs +312 -0
- package/dist/components/client/Button.d.cts +74 -0
- package/dist/components/client/Button.d.ts +74 -0
- package/dist/components/client/Button.js +308 -0
- package/dist/components/client/Checkbox.cjs +215 -0
- package/dist/components/client/Checkbox.d.cts +42 -0
- package/dist/components/client/Checkbox.d.ts +42 -0
- package/dist/components/client/Checkbox.js +211 -0
- package/dist/components/client/Chip/Chip.cjs +67 -0
- package/dist/components/client/Chip/Chip.d.cts +36 -0
- package/dist/components/client/Chip/Chip.d.ts +36 -0
- package/dist/components/client/Chip/Chip.js +65 -0
- package/dist/components/client/Chip/ChipBase.cjs +88 -0
- package/dist/components/client/Chip/ChipBase.d.cts +22 -0
- package/dist/components/client/Chip/ChipBase.d.ts +22 -0
- package/dist/components/client/Chip/ChipBase.js +85 -0
- package/dist/components/client/Chip/ChipButton.cjs +36 -0
- package/dist/components/client/Chip/ChipButton.d.cts +13 -0
- package/dist/components/client/Chip/ChipButton.d.ts +13 -0
- package/dist/components/client/Chip/ChipButton.js +34 -0
- package/dist/components/client/Chip/ChipDismissible.cjs +57 -0
- package/dist/components/client/Chip/ChipDismissible.d.cts +13 -0
- package/dist/components/client/Chip/ChipDismissible.d.ts +13 -0
- package/dist/components/client/Chip/ChipDismissible.js +55 -0
- package/dist/components/client/Chip/ChipLink.cjs +38 -0
- package/dist/components/client/Chip/ChipLink.d.cts +13 -0
- package/dist/components/client/Chip/ChipLink.d.ts +13 -0
- package/dist/components/client/Chip/ChipLink.js +36 -0
- package/dist/components/client/Chip/ChipToggle.cjs +53 -0
- package/dist/components/client/Chip/ChipToggle.d.cts +13 -0
- package/dist/components/client/Chip/ChipToggle.d.ts +13 -0
- package/dist/components/client/Chip/ChipToggle.js +51 -0
- package/dist/components/client/Chip/index.cjs +13 -0
- package/dist/components/client/Chip/index.d.cts +6 -0
- package/dist/components/client/Chip/index.d.ts +6 -0
- package/dist/components/client/Chip/index.js +9 -0
- package/dist/components/client/IconButton.cjs +129 -0
- package/dist/components/client/IconButton.d.cts +37 -0
- package/dist/components/client/IconButton.d.ts +37 -0
- package/dist/components/client/IconButton.js +128 -0
- package/dist/components/client/Input/Input.cjs +209 -0
- package/dist/components/client/Input/Input.d.cts +56 -0
- package/dist/components/client/Input/Input.d.ts +56 -0
- package/dist/components/client/Input/Input.js +207 -0
- package/dist/components/client/Input/InputHelpText.cjs +55 -0
- package/dist/components/client/Input/InputHelpText.d.cts +41 -0
- package/dist/components/client/Input/InputHelpText.d.ts +41 -0
- package/dist/components/client/Input/InputHelpText.js +54 -0
- package/dist/components/client/Input/InputHelpTextInternal.cjs +57 -0
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +37 -0
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +37 -0
- package/dist/components/client/Input/InputHelpTextInternal.js +56 -0
- package/dist/components/client/Input/index.cjs +7 -0
- package/dist/components/client/Input/index.d.cts +3 -0
- package/dist/components/client/Input/index.d.ts +3 -0
- package/dist/components/client/Input/index.js +6 -0
- package/dist/components/client/Menu/Menu.Content.cjs +162 -0
- package/dist/components/client/Menu/Menu.Content.d.cts +214 -0
- package/dist/components/client/Menu/Menu.Content.d.ts +214 -0
- package/dist/components/client/Menu/Menu.Content.js +161 -0
- package/dist/components/client/Menu/Menu.Divider.cjs +74 -0
- package/dist/components/client/Menu/Menu.Divider.d.cts +53 -0
- package/dist/components/client/Menu/Menu.Divider.d.ts +53 -0
- package/dist/components/client/Menu/Menu.Divider.js +73 -0
- package/dist/components/client/Menu/Menu.Item.cjs +80 -0
- package/dist/components/client/Menu/Menu.Item.d.cts +78 -0
- package/dist/components/client/Menu/Menu.Item.d.ts +78 -0
- package/dist/components/client/Menu/Menu.Item.js +79 -0
- package/dist/components/client/Menu/Menu.ItemBase.cjs +163 -0
- package/dist/components/client/Menu/Menu.ItemBase.d.cts +31 -0
- package/dist/components/client/Menu/Menu.ItemBase.d.ts +31 -0
- package/dist/components/client/Menu/Menu.ItemBase.js +161 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +138 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +92 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +92 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.js +137 -0
- package/dist/components/client/Menu/Menu.Provider.cjs +63 -0
- package/dist/components/client/Menu/Menu.Provider.d.cts +137 -0
- package/dist/components/client/Menu/Menu.Provider.d.ts +137 -0
- package/dist/components/client/Menu/Menu.Provider.js +62 -0
- package/dist/components/client/Menu/Menu.Trigger.cjs +75 -0
- package/dist/components/client/Menu/Menu.Trigger.d.cts +78 -0
- package/dist/components/client/Menu/Menu.Trigger.d.ts +78 -0
- package/dist/components/client/Menu/Menu.Trigger.js +74 -0
- package/dist/components/client/Menu/Menu.cjs +10 -0
- package/dist/components/client/Menu/Menu.d.cts +2 -0
- package/dist/components/client/Menu/Menu.d.ts +2 -0
- package/dist/components/client/Menu/Menu.index.cjs +56 -0
- package/dist/components/client/Menu/Menu.index.d.cts +15 -0
- package/dist/components/client/Menu/Menu.index.d.ts +15 -0
- package/dist/components/client/Menu/Menu.index.js +27 -0
- package/dist/components/client/Menu/Menu.js +5 -0
- package/dist/components/client/Menu/index.cjs +10 -0
- package/dist/components/client/Menu/index.d.cts +9 -0
- package/dist/components/client/Menu/index.d.ts +9 -0
- package/dist/components/client/Menu/index.js +5 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.cjs +39 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.cts +31 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.ts +31 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.js +38 -0
- package/dist/components/client/Pressable.cjs +112 -0
- package/dist/{Pressable-DKUSyadp.d.cts → components/client/Pressable.d.cts} +8 -7
- package/dist/{Pressable-CTm_RY-u.d.ts → components/client/Pressable.d.ts} +8 -7
- package/dist/components/client/Pressable.js +111 -0
- package/dist/components/client/Radio/Radio.cjs +226 -0
- package/dist/components/client/Radio/Radio.d.cts +42 -0
- package/dist/components/client/Radio/Radio.d.ts +42 -0
- package/dist/components/client/Radio/Radio.js +222 -0
- package/dist/components/client/Radio/RadioGroupProvider.cjs +98 -0
- package/dist/components/client/Radio/RadioGroupProvider.d.cts +37 -0
- package/dist/components/client/Radio/RadioGroupProvider.d.ts +37 -0
- package/dist/components/client/Radio/RadioGroupProvider.js +96 -0
- package/dist/components/client/Radio/RadioGroupStore.cjs +41 -0
- package/dist/components/client/Radio/RadioGroupStore.d.cts +20 -0
- package/dist/components/client/Radio/RadioGroupStore.d.ts +20 -0
- package/dist/components/client/Radio/RadioGroupStore.js +39 -0
- package/dist/components/client/Radio/index.cjs +7 -0
- package/dist/components/client/Radio/index.d.cts +3 -0
- package/dist/components/client/Radio/index.d.ts +3 -0
- package/dist/components/client/Radio/index.js +6 -0
- package/dist/components/client/Radio/useRadioGroup.cjs +81 -0
- package/dist/components/client/Radio/useRadioGroup.d.cts +30 -0
- package/dist/components/client/Radio/useRadioGroup.d.ts +30 -0
- package/dist/components/client/Radio/useRadioGroup.js +79 -0
- package/dist/components/client/SpringMotionConfig.cjs +99 -0
- package/dist/components/client/SpringMotionConfig.d.cts +57 -0
- package/dist/components/client/SpringMotionConfig.d.ts +57 -0
- package/dist/components/client/SpringMotionConfig.js +98 -0
- package/dist/components/client/Switch.cjs +218 -0
- package/dist/components/client/Switch.d.cts +41 -0
- package/dist/components/client/Switch.d.ts +41 -0
- package/dist/components/client/Switch.js +216 -0
- package/dist/components/client/index.cjs +50 -0
- package/dist/components/client/index.d.cts +33 -0
- package/dist/components/client/index.d.ts +33 -0
- package/dist/components/client/index.js +25 -0
- package/dist/components/client/motionFeatures/domAnimation.cjs +11 -0
- package/dist/components/client/motionFeatures/domAnimation.d.cts +2 -0
- package/dist/components/client/motionFeatures/domAnimation.d.ts +2 -0
- package/dist/components/client/motionFeatures/domAnimation.js +5 -0
- package/dist/components/client/motionFeatures/domMax.cjs +11 -0
- package/dist/components/client/motionFeatures/domMax.d.cts +2 -0
- package/dist/components/client/motionFeatures/domMax.d.ts +2 -0
- package/dist/components/client/motionFeatures/domMax.js +5 -0
- package/dist/components/experimental/Spinner.cjs +30 -0
- package/dist/components/experimental/Spinner.d.cts +20 -0
- package/dist/components/experimental/Spinner.d.ts +20 -0
- package/dist/components/experimental/Spinner.js +29 -0
- package/dist/components/experimental/Table.cjs +110 -0
- package/dist/components/experimental/Table.d.cts +84 -0
- package/dist/components/experimental/Table.d.ts +84 -0
- package/dist/components/experimental/Table.js +108 -0
- package/dist/components/experimental/Table.mocks.cjs +58 -0
- package/dist/components/experimental/Table.mocks.d.cts +19 -0
- package/dist/components/experimental/Table.mocks.d.ts +19 -0
- package/dist/components/experimental/Table.mocks.js +55 -0
- package/dist/components/experimental/client/Accordion.cjs +79 -0
- package/dist/components/experimental/client/Accordion.d.cts +30 -0
- package/dist/components/experimental/client/Accordion.d.ts +30 -0
- package/dist/components/experimental/client/Accordion.js +78 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.cjs +15 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.cts +7 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.ts +7 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.js +13 -0
- package/dist/components/experimental/client/Modal.cjs +61 -0
- package/dist/components/experimental/client/Modal.d.cts +26 -0
- package/dist/components/experimental/client/Modal.d.ts +26 -0
- package/dist/components/experimental/client/Modal.js +57 -0
- package/dist/components/experimental/client/Popover.cjs +44 -0
- package/dist/components/experimental/client/Popover.d.cts +28 -0
- package/dist/components/experimental/client/Popover.d.ts +28 -0
- package/dist/components/experimental/client/Popover.js +33 -0
- package/dist/components/experimental/client/SwitchV2.cjs +183 -0
- package/dist/{experimental/client/SwitchV2.d.ts → components/experimental/client/SwitchV2.d.cts} +15 -16
- package/dist/{experimental/client/SwitchV2.d.cts → components/experimental/client/SwitchV2.d.ts} +15 -16
- package/dist/components/experimental/client/SwitchV2.js +179 -0
- package/dist/components/experimental/client/Tabs.cjs +75 -0
- package/dist/components/experimental/client/Tabs.d.cts +30 -0
- package/dist/components/experimental/client/Tabs.d.ts +30 -0
- package/dist/components/experimental/client/Tabs.js +71 -0
- package/dist/components/experimental/client/Toast.cjs +167 -0
- package/dist/components/experimental/client/Toast.d.cts +30 -0
- package/dist/components/experimental/client/Toast.d.ts +30 -0
- package/dist/components/experimental/client/Toast.js +163 -0
- package/dist/components/experimental/client/index.cjs +38 -0
- package/dist/components/experimental/client/index.d.cts +8 -0
- package/dist/components/experimental/client/index.d.ts +8 -0
- package/dist/components/experimental/client/index.js +11 -0
- package/dist/components/experimental/index.cjs +39 -0
- package/dist/components/experimental/index.d.cts +11 -0
- package/dist/components/experimental/index.d.ts +11 -0
- package/dist/components/experimental/index.js +12 -0
- package/dist/components/index.cjs +67 -0
- package/dist/components/index.d.cts +40 -0
- package/dist/components/index.d.ts +40 -0
- package/dist/components/index.js +33 -0
- package/dist/defaultTokensConfig.cjs +22 -1
- package/dist/defaultTokensConfig.d.cts +12691 -12694
- package/dist/defaultTokensConfig.d.ts +12691 -12694
- package/dist/defaultTokensConfig.js +20 -1
- package/dist/fixtures.cjs +1 -816
- package/dist/fixtures.js +1 -816
- package/dist/flags.cjs +26 -1
- package/dist/flags.d.cts +15 -14
- package/dist/flags.d.ts +15 -14
- package/dist/flags.js +23 -1
- package/dist/generated/autoVariants.cjs +512 -0
- package/dist/generated/autoVariants.d.cts +115 -0
- package/dist/generated/autoVariants.d.ts +115 -0
- package/dist/generated/autoVariants.js +511 -0
- package/dist/generated/generatedConfigs.cjs +27726 -0
- package/dist/generated/generatedConfigs.js +27714 -0
- package/dist/generated/tailwindPurge.cjs +3320 -0
- package/dist/{tailwind/purger.d.cts → generated/tailwindPurge.d.cts} +6 -5
- package/dist/{tailwind/purger.d.ts → generated/tailwindPurge.d.ts} +6 -5
- package/dist/generated/tailwindPurge.js +3316 -0
- package/dist/generated/universalTokensConfigAuto.cjs +11579 -0
- package/dist/generated/universalTokensConfigAuto.d.cts +12770 -0
- package/dist/generated/universalTokensConfigAuto.d.ts +12770 -0
- package/dist/generated/universalTokensConfigAuto.js +11578 -0
- package/dist/hooks/useForkRef.cjs +27 -0
- package/dist/hooks/useForkRef.d.cts +6 -0
- package/dist/hooks/useForkRef.d.ts +6 -0
- package/dist/hooks/useForkRef.js +26 -0
- package/dist/hooks/useRtl.cjs +48 -0
- package/dist/hooks/useRtl.d.cts +20 -0
- package/dist/hooks/useRtl.d.ts +20 -0
- package/dist/hooks/useRtl.js +45 -0
- package/dist/index.cjs +183 -1
- package/dist/index.d.cts +82 -383
- package/dist/index.d.ts +82 -383
- package/dist/index.js +59 -1
- package/dist/providers/ColorModeProvider.cjs +23 -0
- package/dist/providers/ColorModeProvider.d.cts +20 -0
- package/dist/providers/ColorModeProvider.d.ts +20 -0
- package/dist/providers/ColorModeProvider.js +20 -0
- package/dist/providers/ScaleModeProvider.cjs +26 -0
- package/dist/providers/ScaleModeProvider.d.cts +20 -0
- package/dist/providers/ScaleModeProvider.d.ts +20 -0
- package/dist/providers/ScaleModeProvider.js +23 -0
- package/dist/providers/ThemeProvider.cjs +21 -0
- package/dist/providers/ThemeProvider.d.cts +19 -0
- package/dist/providers/ThemeProvider.d.ts +19 -0
- package/dist/providers/ThemeProvider.js +20 -0
- package/dist/scripts/utils/tsMorph.cjs +140 -0
- package/dist/scripts/utils/tsMorph.d.cts +32 -0
- package/dist/scripts/utils/tsMorph.d.ts +32 -0
- package/dist/scripts/utils/tsMorph.js +129 -0
- package/dist/styles/styler.cjs +117 -0
- package/dist/styles/styler.d.cts +200 -0
- package/dist/styles/styler.d.ts +200 -0
- package/dist/styles/styler.js +112 -0
- package/dist/styles/stylerTypes.cjs +1 -0
- package/dist/styles/stylerTypes.d.cts +38 -0
- package/dist/styles/stylerTypes.d.ts +38 -0
- package/dist/styles/stylerTypes.js +1 -0
- package/dist/styles/variants.cjs +1513 -0
- package/dist/styles/variants.d.cts +2067 -0
- package/dist/styles/variants.d.ts +2067 -0
- package/dist/styles/variants.js +1513 -0
- package/dist/tailwind/base/addColorModeVars.cjs +21 -0
- package/dist/tailwind/base/addColorModeVars.d.cts +10 -0
- package/dist/tailwind/base/addColorModeVars.d.ts +10 -0
- package/dist/tailwind/base/addColorModeVars.js +19 -0
- package/dist/tailwind/base/addColorModeVarsV2.cjs +45 -0
- package/dist/tailwind/base/addColorModeVarsV2.d.cts +10 -0
- package/dist/tailwind/base/addColorModeVarsV2.d.ts +10 -0
- package/dist/tailwind/base/addColorModeVarsV2.js +43 -0
- package/dist/tailwind/base/addFontFaceDeclarations.cjs +11 -0
- package/dist/tailwind/base/addFontFaceDeclarations.d.cts +10 -0
- package/dist/tailwind/base/addFontFaceDeclarations.d.ts +10 -0
- package/dist/tailwind/base/addFontFaceDeclarations.js +11 -0
- package/dist/tailwind/base/addFontVars.cjs +10 -0
- package/dist/tailwind/base/addFontVars.d.cts +10 -0
- package/dist/tailwind/base/addFontVars.d.ts +10 -0
- package/dist/tailwind/base/addFontVars.js +10 -0
- package/dist/tailwind/base/addMotionVars.cjs +10 -0
- package/dist/tailwind/base/addMotionVars.d.cts +10 -0
- package/dist/tailwind/base/addMotionVars.d.ts +10 -0
- package/dist/tailwind/base/addMotionVars.js +10 -0
- package/dist/tailwind/base/addScaleModeVars.cjs +22 -0
- package/dist/tailwind/base/addScaleModeVars.d.cts +9 -0
- package/dist/tailwind/base/addScaleModeVars.d.ts +9 -0
- package/dist/tailwind/base/addScaleModeVars.js +22 -0
- package/dist/tailwind/components/getFocusRingStyles.cjs +29 -0
- package/dist/tailwind/components/getFocusRingStyles.d.cts +14 -0
- package/dist/tailwind/components/getFocusRingStyles.d.ts +14 -0
- package/dist/tailwind/components/getFocusRingStyles.js +29 -0
- package/dist/tailwind/components/getGroupedTextStyles.cjs +20 -0
- package/dist/tailwind/components/getGroupedTextStyles.d.cts +19 -0
- package/dist/tailwind/components/getGroupedTextStyles.d.ts +19 -0
- package/dist/tailwind/components/getGroupedTextStyles.js +19 -0
- package/dist/tailwind/components/getHitTargetStyles.cjs +22 -0
- package/dist/tailwind/components/getHitTargetStyles.d.cts +7 -0
- package/dist/tailwind/components/getHitTargetStyles.d.ts +7 -0
- package/dist/tailwind/components/getHitTargetStyles.js +20 -0
- package/dist/tailwind/components/getIconStyles.cjs +15 -0
- package/dist/tailwind/components/getIconStyles.d.cts +10 -0
- package/dist/tailwind/components/getIconStyles.d.ts +10 -0
- package/dist/tailwind/components/getIconStyles.js +14 -0
- package/dist/tailwind/components/getInputStyles.cjs +16 -0
- package/dist/tailwind/components/getInputStyles.d.cts +10 -0
- package/dist/tailwind/components/getInputStyles.d.ts +10 -0
- package/dist/tailwind/components/getInputStyles.js +15 -0
- package/dist/tailwind/components/getResponsiveTextStyles.cjs +73 -0
- package/dist/tailwind/components/getResponsiveTextStyles.d.cts +37 -0
- package/dist/tailwind/components/getResponsiveTextStyles.d.ts +37 -0
- package/dist/tailwind/components/getResponsiveTextStyles.js +67 -0
- package/dist/tailwind/components/types.cjs +1 -0
- package/dist/tailwind/components/types.d.cts +9 -0
- package/dist/tailwind/components/types.d.ts +9 -0
- package/dist/tailwind/components/types.js +1 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.cjs +68 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.d.cts +19 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.d.ts +19 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.js +67 -0
- package/dist/tailwind/plugins/a11y.cjs +34 -0
- package/dist/tailwind/plugins/a11y.d.cts +13 -0
- package/dist/tailwind/plugins/a11y.d.ts +13 -0
- package/dist/tailwind/plugins/a11y.js +32 -0
- package/dist/tailwind/plugins/borders.cjs +54 -0
- package/dist/tailwind/plugins/borders.d.cts +13 -0
- package/dist/tailwind/plugins/borders.d.ts +13 -0
- package/dist/tailwind/plugins/borders.js +52 -0
- package/dist/tailwind/plugins/colors.cjs +69 -0
- package/dist/tailwind/plugins/colors.d.cts +13 -0
- package/dist/tailwind/plugins/colors.d.ts +13 -0
- package/dist/tailwind/plugins/colors.js +67 -0
- package/dist/tailwind/plugins/components.cjs +28 -0
- package/dist/tailwind/plugins/components.d.cts +13 -0
- package/dist/tailwind/plugins/components.d.ts +13 -0
- package/dist/tailwind/plugins/components.js +26 -0
- package/dist/tailwind/plugins/elevation.cjs +30 -0
- package/dist/tailwind/plugins/elevation.d.cts +13 -0
- package/dist/tailwind/plugins/elevation.d.ts +13 -0
- package/dist/tailwind/plugins/elevation.js +28 -0
- package/dist/tailwind/plugins/icons.cjs +13 -0
- package/dist/tailwind/plugins/icons.d.cts +13 -0
- package/dist/tailwind/plugins/icons.d.ts +13 -0
- package/dist/tailwind/plugins/icons.js +11 -0
- package/dist/tailwind/plugins/input.cjs +20 -0
- package/dist/tailwind/plugins/input.d.cts +16 -0
- package/dist/tailwind/plugins/input.d.ts +16 -0
- package/dist/tailwind/plugins/input.js +18 -0
- package/dist/tailwind/plugins/motion.cjs +14 -0
- package/dist/tailwind/plugins/motion.d.cts +13 -0
- package/dist/tailwind/plugins/motion.d.ts +13 -0
- package/dist/tailwind/plugins/motion.js +12 -0
- package/dist/tailwind/plugins/nestedBorderRadius.cjs +19 -0
- package/dist/tailwind/plugins/nestedBorderRadius.d.cts +13 -0
- package/dist/tailwind/plugins/nestedBorderRadius.d.ts +13 -0
- package/dist/tailwind/plugins/nestedBorderRadius.js +17 -0
- package/dist/tailwind/plugins/scaleMode.cjs +17 -0
- package/dist/tailwind/plugins/scaleMode.d.cts +16 -0
- package/dist/tailwind/plugins/scaleMode.d.ts +16 -0
- package/dist/tailwind/plugins/scaleMode.js +15 -0
- package/dist/tailwind/plugins/shadows.cjs +45 -0
- package/dist/tailwind/plugins/shadows.d.cts +13 -0
- package/dist/tailwind/plugins/shadows.d.ts +13 -0
- package/dist/tailwind/plugins/shadows.js +43 -0
- package/dist/tailwind/plugins/sizing.cjs +32 -0
- package/dist/tailwind/plugins/sizing.d.cts +16 -0
- package/dist/tailwind/plugins/sizing.d.ts +16 -0
- package/dist/tailwind/plugins/sizing.js +30 -0
- package/dist/tailwind/plugins/spacing.cjs +13 -0
- package/dist/tailwind/plugins/spacing.d.cts +13 -0
- package/dist/tailwind/plugins/spacing.d.ts +13 -0
- package/dist/tailwind/plugins/spacing.js +11 -0
- package/dist/tailwind/plugins/typography.cjs +77 -0
- package/dist/tailwind/plugins/typography.d.cts +13 -0
- package/dist/tailwind/plugins/typography.d.ts +13 -0
- package/dist/tailwind/plugins/typography.js +75 -0
- package/dist/tailwind/postcss.config.cjs +9 -0
- package/dist/tailwind/postcss.config.d.cts +1 -0
- package/dist/tailwind/postcss.config.d.ts +1 -0
- package/dist/tailwind/postcss.config.js +13 -0
- package/dist/tailwind/purger/index.cjs +7 -0
- package/dist/tailwind/purger/index.d.cts +2 -0
- package/dist/tailwind/purger/index.d.ts +2 -0
- package/dist/tailwind/purger/index.js +4 -0
- package/dist/tailwind/tailwind.config.cjs +31 -0
- package/dist/tailwind/tailwind.config.d.cts +18 -0
- package/dist/tailwind/tailwind.config.d.ts +19 -0
- package/dist/tailwind/tailwind.config.js +31 -0
- package/dist/tailwind/tailwind.d.cjs +1 -0
- package/dist/tailwind/tailwind.d.cts +6 -0
- package/dist/tailwind/tailwind.d.ts +6 -0
- package/dist/tailwind/tailwindPlugin.cjs +36 -0
- package/dist/tailwind/tailwindPlugin.d.cts +22 -0
- package/dist/tailwind/tailwindPlugin.d.ts +22 -0
- package/dist/tailwind/tailwindPlugin.js +34 -0
- package/dist/tailwind/theme/getFontFamilyTheme.cjs +24 -0
- package/dist/tailwind/theme/getFontFamilyTheme.d.cts +6 -0
- package/dist/tailwind/theme/getFontFamilyTheme.d.ts +6 -0
- package/dist/tailwind/theme/getFontFamilyTheme.js +23 -0
- package/dist/tailwind/tsMorph.cjs +11 -1
- package/dist/tailwind/tsMorph.d.cts +2 -31
- package/dist/tailwind/tsMorph.d.ts +2 -31
- package/dist/tailwind/tsMorph.js +4 -2
- package/dist/tailwind/utils/addFontsPlugin.cjs +15 -0
- package/dist/tailwind/utils/addFontsPlugin.d.cts +17 -0
- package/dist/tailwind/utils/addFontsPlugin.d.ts +17 -0
- package/dist/tailwind/utils/addFontsPlugin.js +13 -0
- package/dist/tailwind/utils/composeTailwindPlugins.cjs +72 -0
- package/dist/tailwind/utils/composeTailwindPlugins.d.cts +59 -0
- package/dist/tailwind/utils/composeTailwindPlugins.d.ts +59 -0
- package/dist/tailwind/utils/composeTailwindPlugins.js +63 -0
- package/dist/tailwind/utils/getColorModeStyles.cjs +22 -0
- package/dist/tailwind/utils/getColorModeStyles.d.cts +17 -0
- package/dist/tailwind/utils/getColorModeStyles.d.ts +17 -0
- package/dist/tailwind/utils/getColorModeStyles.js +21 -0
- package/dist/tailwind/utils/getElevationStyles.cjs +12 -0
- package/dist/tailwind/utils/getElevationStyles.d.cts +14 -0
- package/dist/tailwind/utils/getElevationStyles.d.ts +14 -0
- package/dist/tailwind/utils/getElevationStyles.js +12 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.cjs +20 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.d.cts +11 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.d.ts +11 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.js +20 -0
- package/dist/tailwind/utils/getFontStyles.cjs +41 -0
- package/dist/tailwind/utils/getFontStyles.d.cts +24 -0
- package/dist/tailwind/utils/getFontStyles.d.ts +24 -0
- package/dist/tailwind/utils/getFontStyles.js +41 -0
- package/dist/tailwind/utils/getMotionStyles.cjs +38 -0
- package/dist/tailwind/utils/getMotionStyles.d.cts +24 -0
- package/dist/tailwind/utils/getMotionStyles.d.ts +24 -0
- package/dist/tailwind/utils/getMotionStyles.js +37 -0
- package/dist/tailwind/utils/getNestedBorderRadiusUtilities.cjs +52 -0
- package/dist/tailwind/utils/getNestedBorderRadiusUtilities.d.cts +27 -0
- package/dist/tailwind/utils/getNestedBorderRadiusUtilities.d.ts +27 -0
- package/dist/tailwind/utils/getNestedBorderRadiusUtilities.js +51 -0
- package/dist/tailwind/utils/getScaleModeStyles.cjs +25 -0
- package/dist/tailwind/utils/getScaleModeStyles.d.cts +28 -0
- package/dist/tailwind/utils/getScaleModeStyles.d.ts +28 -0
- package/dist/tailwind/utils/getScaleModeStyles.js +24 -0
- package/dist/tailwind/utils/getShadowPresetValues.cjs +81 -0
- package/dist/tailwind/utils/getShadowPresetValues.d.cts +56 -0
- package/dist/tailwind/utils/getShadowPresetValues.d.ts +56 -0
- package/dist/tailwind/utils/getShadowPresetValues.js +79 -0
- package/dist/tailwind/utils/getShadowStyles.cjs +20 -0
- package/dist/tailwind/utils/getShadowStyles.d.cts +20 -0
- package/dist/tailwind/utils/getShadowStyles.d.ts +20 -0
- package/dist/tailwind/utils/getShadowStyles.js +19 -0
- package/dist/tailwind/utils/getShadowVars.cjs +26 -0
- package/dist/tailwind/utils/getShadowVars.d.cts +7 -0
- package/dist/tailwind/utils/getShadowVars.d.ts +7 -0
- package/dist/tailwind/utils/getShadowVars.js +26 -0
- package/dist/tailwind/utils/index.cjs +25 -0
- package/dist/tailwind/utils/index.d.cts +11 -0
- package/dist/tailwind/utils/index.d.ts +11 -0
- package/dist/tailwind/utils/index.js +13 -0
- package/dist/tokens/automation/configs/avatar.cjs +310 -0
- package/dist/tokens/automation/configs/avatar.d.cts +18 -0
- package/dist/tokens/automation/configs/avatar.d.ts +18 -0
- package/dist/tokens/automation/configs/avatar.js +309 -0
- package/dist/tokens/automation/configs/badge.cjs +324 -0
- package/dist/tokens/automation/configs/badge.d.cts +14 -0
- package/dist/tokens/automation/configs/badge.d.ts +14 -0
- package/dist/tokens/automation/configs/badge.js +323 -0
- package/dist/tokens/automation/configs/button.cjs +447 -0
- package/dist/tokens/automation/configs/button.d.cts +14 -0
- package/dist/tokens/automation/configs/button.d.ts +14 -0
- package/dist/tokens/automation/configs/button.js +446 -0
- package/dist/tokens/automation/configs/checkbox.cjs +256 -0
- package/dist/tokens/automation/configs/checkbox.d.cts +14 -0
- package/dist/tokens/automation/configs/checkbox.d.ts +14 -0
- package/dist/tokens/automation/configs/checkbox.js +255 -0
- package/dist/tokens/automation/configs/chip.cjs +552 -0
- package/dist/tokens/automation/configs/chip.d.cts +18 -0
- package/dist/tokens/automation/configs/chip.d.ts +18 -0
- package/dist/tokens/automation/configs/chip.js +551 -0
- package/dist/tokens/automation/configs/divider.cjs +119 -0
- package/dist/tokens/automation/configs/divider.d.cts +13 -0
- package/dist/tokens/automation/configs/divider.d.ts +13 -0
- package/dist/tokens/automation/configs/divider.js +118 -0
- package/dist/tokens/automation/configs/iconButton.cjs +72 -0
- package/dist/tokens/automation/configs/iconButton.d.cts +14 -0
- package/dist/tokens/automation/configs/iconButton.d.ts +14 -0
- package/dist/tokens/automation/configs/iconButton.js +71 -0
- package/dist/tokens/automation/configs/index.cjs +26 -0
- package/dist/tokens/automation/configs/index.d.cts +13 -0
- package/dist/tokens/automation/configs/index.d.ts +13 -0
- package/dist/tokens/automation/configs/index.js +15 -0
- package/dist/tokens/automation/configs/input.cjs +473 -0
- package/dist/tokens/automation/configs/input.d.cts +14 -0
- package/dist/tokens/automation/configs/input.d.ts +14 -0
- package/dist/tokens/automation/configs/input.js +472 -0
- package/dist/tokens/automation/configs/link.cjs +194 -0
- package/dist/tokens/automation/configs/link.d.cts +14 -0
- package/dist/tokens/automation/configs/link.d.ts +14 -0
- package/dist/tokens/automation/configs/link.js +193 -0
- package/dist/tokens/automation/configs/menu.cjs +309 -0
- package/dist/tokens/automation/configs/menu.d.cts +18 -0
- package/dist/tokens/automation/configs/menu.d.ts +18 -0
- package/dist/tokens/automation/configs/menu.js +308 -0
- package/dist/tokens/automation/configs/radio.cjs +228 -0
- package/dist/tokens/automation/configs/radio.d.cts +14 -0
- package/dist/tokens/automation/configs/radio.d.ts +14 -0
- package/dist/tokens/automation/configs/radio.js +227 -0
- package/dist/tokens/automation/configs/switch.cjs +296 -0
- package/dist/tokens/automation/configs/switch.d.cts +14 -0
- package/dist/tokens/automation/configs/switch.d.ts +14 -0
- package/dist/tokens/automation/configs/switch.js +295 -0
- package/dist/tokens/automation/index.cjs +46 -0
- package/dist/tokens/automation/index.d.cts +30 -0
- package/dist/tokens/automation/index.d.ts +29 -0
- package/dist/tokens/automation/index.js +16 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.cjs +8 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.d.cts +4 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.d.ts +4 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.js +8 -0
- package/dist/tokens/automation/properties.cjs +316 -1
- package/dist/tokens/automation/properties.d.cts +94 -7
- package/dist/tokens/automation/properties.d.ts +94 -7
- package/dist/tokens/automation/properties.js +316 -1
- package/dist/tokens/automation/types/ComponentConfig.cjs +1 -0
- package/dist/tokens/automation/types/ComponentConfig.d.cts +54 -0
- package/dist/tokens/automation/types/ComponentConfig.d.ts +54 -0
- package/dist/tokens/automation/types/ComponentConfig.js +1 -0
- package/dist/tokens/automation/types/ComponentDB.cjs +1 -0
- package/dist/tokens/automation/types/ComponentDB.d.cts +1 -0
- package/dist/tokens/automation/types/ComponentDB.d.ts +1 -0
- package/dist/tokens/automation/types/ComponentDB.js +1 -0
- package/dist/tokens/automation/types/ComponentStyles.cjs +1 -0
- package/dist/tokens/automation/types/ComponentStyles.d.cts +35 -0
- package/dist/tokens/automation/types/ComponentStyles.d.ts +35 -0
- package/dist/tokens/automation/types/ComponentStyles.js +1 -0
- package/dist/tokens/automation/types/index.cjs +1 -0
- package/dist/tokens/automation/types/index.d.cts +3 -0
- package/dist/tokens/automation/types/index.d.ts +3 -0
- package/dist/tokens/automation/types/index.js +1 -0
- package/dist/tokens/automation/utils/cartesianProduct.cjs +7 -0
- package/dist/tokens/automation/utils/cartesianProduct.d.cts +7 -0
- package/dist/tokens/automation/utils/cartesianProduct.d.ts +7 -0
- package/dist/tokens/automation/utils/cartesianProduct.js +6 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.cjs +21 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.d.cts +16 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.d.ts +16 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.js +21 -0
- package/dist/tokens/automation/utils/defaults.cjs +15 -0
- package/dist/tokens/automation/utils/defaults.d.cts +8 -0
- package/dist/tokens/automation/utils/defaults.d.ts +8 -0
- package/dist/tokens/automation/utils/defaults.js +13 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.cjs +26 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.d.cts +10 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.d.ts +10 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.js +25 -0
- package/dist/tokens/automation/utils/generateSchemaKey.cjs +14 -0
- package/dist/tokens/automation/utils/generateSchemaKey.d.cts +18 -0
- package/dist/tokens/automation/utils/generateSchemaKey.d.ts +18 -0
- package/dist/tokens/automation/utils/generateSchemaKey.js +13 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.cjs +17 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.d.cts +8 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.d.ts +8 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.js +17 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.cjs +26 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.d.cts +9 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.d.ts +9 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.js +23 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.cjs +24 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts +19 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts +19 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.js +24 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.cjs +34 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.d.cts +11 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.d.ts +11 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.js +34 -0
- package/dist/tokens/automation/utils/getConfigVariants.cjs +39 -0
- package/dist/tokens/automation/utils/getConfigVariants.d.cts +19 -0
- package/dist/tokens/automation/utils/getConfigVariants.d.ts +19 -0
- package/dist/tokens/automation/utils/getConfigVariants.js +37 -0
- package/dist/tokens/automation/utils/index.cjs +681 -0
- package/dist/tokens/automation/utils/index.d.cts +146 -0
- package/dist/tokens/automation/utils/index.d.ts +146 -0
- package/dist/tokens/automation/utils/index.js +646 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.cjs +20 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.d.cts +4 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.d.ts +4 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.js +20 -0
- package/dist/tokens/automation/utils/subcomponents.cjs +11 -0
- package/dist/tokens/automation/utils/subcomponents.d.cts +8 -0
- package/dist/tokens/automation/utils/subcomponents.d.ts +8 -0
- package/dist/tokens/automation/utils/subcomponents.js +10 -0
- package/dist/tokens/automation/utils/variableData.cjs +32 -0
- package/dist/tokens/automation/utils/variableData.d.cts +18 -0
- package/dist/tokens/automation/utils/variableData.d.ts +18 -0
- package/dist/tokens/automation/utils/variableData.js +28 -0
- package/dist/tokens/automation/utils/variantConfigGuards.cjs +9 -0
- package/dist/tokens/automation/utils/variantConfigGuards.d.cts +12 -0
- package/dist/tokens/automation/utils/variantConfigGuards.d.ts +12 -0
- package/dist/tokens/automation/utils/variantConfigGuards.js +7 -0
- package/dist/tokens/configs/borderRadius.cjs +25 -0
- package/dist/tokens/configs/borderRadius.d.cts +7 -0
- package/dist/tokens/configs/borderRadius.d.ts +7 -0
- package/dist/tokens/configs/borderRadius.js +23 -0
- package/dist/tokens/configs/borderWidth.cjs +19 -0
- package/dist/tokens/configs/borderWidth.d.cts +7 -0
- package/dist/tokens/configs/borderWidth.d.ts +7 -0
- package/dist/tokens/configs/borderWidth.js +17 -0
- package/dist/tokens/configs/colorMode.cjs +18 -0
- package/dist/tokens/configs/colorMode.d.cts +6 -0
- package/dist/tokens/configs/colorMode.d.ts +6 -0
- package/dist/tokens/configs/colorMode.js +18 -0
- package/dist/tokens/configs/font.cjs +13 -0
- package/dist/tokens/configs/font.d.cts +6 -0
- package/dist/tokens/configs/font.d.ts +6 -0
- package/dist/tokens/configs/font.js +12 -0
- package/dist/tokens/configs/motion.cjs +137 -0
- package/dist/tokens/configs/motion.d.cts +42 -0
- package/dist/tokens/configs/motion.d.ts +42 -0
- package/dist/tokens/configs/motion.js +132 -0
- package/dist/tokens/configs/palette.cjs +402 -0
- package/dist/tokens/configs/palette.d.cts +13 -0
- package/dist/tokens/configs/palette.d.ts +13 -0
- package/dist/tokens/configs/palette.js +399 -0
- package/dist/tokens/configs/scaleMode.cjs +30 -0
- package/dist/tokens/configs/scaleMode.d.cts +6 -0
- package/dist/tokens/configs/scaleMode.d.ts +6 -0
- package/dist/tokens/configs/scaleMode.js +30 -0
- package/dist/tokens/configs/shadow.cjs +332 -0
- package/dist/tokens/configs/shadow.d.cts +6 -0
- package/dist/tokens/configs/shadow.d.ts +6 -0
- package/dist/tokens/configs/shadow.js +331 -0
- package/dist/tokens/configs/sizes.cjs +26 -0
- package/dist/tokens/configs/sizes.d.cts +10 -0
- package/dist/tokens/configs/sizes.d.ts +10 -0
- package/dist/tokens/configs/sizes.js +21 -0
- package/dist/tokens/configs/spectrum.cjs +731 -0
- package/dist/tokens/configs/spectrum.d.cts +7 -0
- package/dist/tokens/configs/spectrum.d.ts +7 -0
- package/dist/tokens/configs/spectrum.js +729 -0
- package/dist/tokens/configs/typography.cjs +411 -0
- package/dist/tokens/configs/typography.d.cts +364 -0
- package/dist/tokens/configs/typography.d.ts +364 -0
- package/dist/tokens/configs/typography.js +398 -0
- package/dist/tokens/configs/yosConfig.cjs +22037 -0
- package/dist/tokens/configs/yosConfig.d.cts +23036 -0
- package/dist/tokens/configs/yosConfig.d.ts +23036 -0
- package/dist/tokens/configs/yosConfig.js +22036 -0
- package/dist/tokens/consts/cssTokens.cjs +98 -0
- package/dist/tokens/consts/cssTokens.d.cts +51 -0
- package/dist/tokens/consts/cssTokens.d.ts +51 -0
- package/dist/tokens/consts/cssTokens.js +59 -0
- package/dist/tokens/consts/defaultModes.cjs +17 -0
- package/dist/tokens/consts/defaultModes.d.cts +11 -0
- package/dist/tokens/consts/defaultModes.d.ts +11 -0
- package/dist/tokens/consts/defaultModes.js +11 -0
- package/dist/tokens/consts/fontDeclarationsMap.cjs +652 -0
- package/dist/tokens/consts/fontDeclarationsMap.d.cts +537 -0
- package/dist/tokens/consts/fontDeclarationsMap.d.ts +537 -0
- package/dist/tokens/consts/fontDeclarationsMap.js +651 -0
- package/dist/tokens/index.cjs +113 -1
- package/dist/tokens/index.d.cts +43 -2257
- package/dist/tokens/index.d.ts +43 -2257
- package/dist/tokens/index.js +28 -1
- package/dist/tokens/parseButtonVariants.cjs +11 -0
- package/dist/tokens/parseButtonVariants.d.cts +13 -0
- package/dist/tokens/parseButtonVariants.d.ts +13 -0
- package/dist/tokens/parseButtonVariants.js +10 -0
- package/dist/tokens/parseTokens.cjs +121 -1
- package/dist/tokens/parseTokens.d.cts +20 -23
- package/dist/tokens/parseTokens.d.ts +20 -23
- package/dist/tokens/parseTokens.js +121 -1
- package/dist/tokens/types.cjs +1 -0
- package/dist/tokens/types.d.cts +1005 -0
- package/dist/tokens/types.d.ts +1005 -0
- package/dist/tokens/types.js +1 -0
- package/dist/tokens/utils/entries.cjs +17 -0
- package/dist/tokens/utils/entries.d.cts +12 -0
- package/dist/tokens/utils/entries.d.ts +12 -0
- package/dist/tokens/utils/entries.js +16 -0
- package/dist/tokens/utils/fromEntries.cjs +17 -0
- package/dist/tokens/utils/fromEntries.d.cts +12 -0
- package/dist/tokens/utils/fromEntries.d.ts +12 -0
- package/dist/tokens/utils/fromEntries.js +16 -0
- package/dist/tokens/utils/mapValues.cjs +12 -0
- package/dist/tokens/utils/mapValues.d.cts +5 -0
- package/dist/tokens/utils/mapValues.d.ts +5 -0
- package/dist/tokens/utils/mapValues.js +11 -0
- package/dist/tokens/utils/opacity.cjs +27 -0
- package/dist/tokens/utils/opacity.d.cts +19 -0
- package/dist/tokens/utils/opacity.d.ts +19 -0
- package/dist/tokens/utils/opacity.js +25 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.cts +6 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +1 -0
- package/dist/utils/assertUnreachable.cjs +9 -0
- package/dist/utils/assertUnreachable.d.cts +4 -0
- package/dist/utils/assertUnreachable.d.ts +4 -0
- package/dist/utils/assertUnreachable.js +8 -0
- package/dist/utils/composeRefs.cjs +21 -0
- package/dist/utils/composeRefs.d.cts +9 -0
- package/dist/utils/composeRefs.d.ts +9 -0
- package/dist/utils/composeRefs.js +20 -0
- package/dist/utils/createSlot.cjs +78 -0
- package/dist/utils/createSlot.d.cts +6 -0
- package/dist/utils/createSlot.d.ts +6 -0
- package/dist/utils/createSlot.js +77 -0
- package/dist/utils/entries.cjs +9 -0
- package/dist/utils/entries.d.cts +4 -0
- package/dist/utils/entries.d.ts +4 -0
- package/dist/utils/entries.js +8 -0
- package/dist/utils/falsyToString.cjs +9 -0
- package/dist/utils/falsyToString.d.cts +4 -0
- package/dist/utils/falsyToString.d.ts +4 -0
- package/dist/utils/falsyToString.js +8 -0
- package/dist/utils/getMotionVar.cjs +15 -0
- package/dist/utils/getMotionVar.d.cts +16 -0
- package/dist/utils/getMotionVar.d.ts +16 -0
- package/dist/utils/getMotionVar.js +15 -0
- package/dist/utils/intersperse.cjs +48 -0
- package/dist/utils/intersperse.d.cts +33 -0
- package/dist/utils/intersperse.d.ts +33 -0
- package/dist/utils/intersperse.js +45 -0
- package/dist/utils/mapValues.cjs +12 -0
- package/dist/utils/mapValues.d.cts +5 -0
- package/dist/utils/mapValues.d.ts +5 -0
- package/dist/utils/mapValues.js +11 -0
- package/dist/utils/mergeSlotProps.cjs +29 -0
- package/dist/utils/mergeSlotProps.d.cts +5 -0
- package/dist/utils/mergeSlotProps.d.ts +5 -0
- package/dist/utils/mergeSlotProps.js +28 -0
- package/package.json +51 -46
- package/dist/Box-DwoY1xsp.d.cts +0 -34
- package/dist/Box-ncdx_6JJ.d.ts +0 -34
- package/dist/Pressable-XywV25nD.d.ts +0 -44
- package/dist/Pressable-vZoRdY_i.d.cts +0 -44
- package/dist/Text-B7LaBovi.d.cts +0 -88
- package/dist/Text-D9E-Ivs4.d.cts +0 -324
- package/dist/Text-D9E-Ivs4.d.ts +0 -324
- package/dist/Text-DP7Wj9fr.d.ts +0 -88
- package/dist/Text-DRla3SiI.d.ts +0 -88
- package/dist/Text-PCg-YzOz.d.cts +0 -88
- package/dist/VStack-B89J1tAJ.d.cts +0 -83
- package/dist/VStack-BH_tBQAO.d.cts +0 -83
- package/dist/VStack-CwNak3GT.d.ts +0 -83
- package/dist/VStack-YuhJZCys.d.ts +0 -83
- package/dist/chunk-27DQUYOD.cjs +0 -1
- package/dist/chunk-3KGHFL34.cjs +0 -1
- package/dist/chunk-4DI4U2ZJ.js +0 -2
- package/dist/chunk-4NLPM4LX.js +0 -1
- package/dist/chunk-566E2KOV.cjs +0 -1
- package/dist/chunk-5PTFNIFE.js +0 -2
- package/dist/chunk-6PEIP4LR.cjs +0 -1
- package/dist/chunk-6V7QEDMR.js +0 -2
- package/dist/chunk-AJIPOPZP.js +0 -1
- package/dist/chunk-B2TS37PH.cjs +0 -1
- package/dist/chunk-BRD7KJ5B.cjs +0 -2
- package/dist/chunk-C67TSNYO.cjs +0 -2
- package/dist/chunk-DDL45GZJ.js +0 -2
- package/dist/chunk-EPEWMEHA.js +0 -3
- package/dist/chunk-FK3YMO3H.cjs +0 -1
- package/dist/chunk-FKDU4FOZ.js +0 -2
- package/dist/chunk-FP7OSHKI.cjs +0 -1
- package/dist/chunk-GF4A6TFM.js +0 -2
- package/dist/chunk-HKI5AZ7O.js +0 -1
- package/dist/chunk-HTZHSZZP.cjs +0 -1
- package/dist/chunk-IMKUVCCQ.cjs +0 -2
- package/dist/chunk-IOYNZUNZ.js +0 -2
- package/dist/chunk-IPJKEKXB.cjs +0 -2
- package/dist/chunk-K3SGTZBD.js +0 -2
- package/dist/chunk-KOMSMI5O.cjs +0 -1
- package/dist/chunk-LBWNL2O7.cjs +0 -1
- package/dist/chunk-LK3ZQP3J.cjs +0 -1
- package/dist/chunk-LYHJT3E5.js +0 -2
- package/dist/chunk-NJH5V24C.cjs +0 -1
- package/dist/chunk-NNSZGTMQ.js +0 -2
- package/dist/chunk-O4OSO3V4.cjs +0 -2
- package/dist/chunk-OCCSRSJM.js +0 -2
- package/dist/chunk-OPJ5SIFC.js +0 -2
- package/dist/chunk-ORB5CU37.cjs +0 -1
- package/dist/chunk-P4XYWMJE.cjs +0 -2
- package/dist/chunk-Q5LASIAY.js +0 -3
- package/dist/chunk-QIGG4KRS.js +0 -2
- package/dist/chunk-QLXJH36U.cjs +0 -1
- package/dist/chunk-QUNKTR5G.cjs +0 -1
- package/dist/chunk-R7SUOHEQ.js +0 -1
- package/dist/chunk-S5ISY44L.cjs +0 -1
- package/dist/chunk-SPP3MH4Z.js +0 -2
- package/dist/chunk-VX5NJRUI.js +0 -2
- package/dist/chunk-W6B4I24P.js +0 -1
- package/dist/chunk-WR3CRR6L.js +0 -2
- package/dist/chunk-XK6V5SIG.cjs +0 -1
- package/dist/chunk-XN3JP4KW.cjs +0 -1
- package/dist/chunk-YZE72XPR.js +0 -2
- package/dist/client/Menu.cjs +0 -2
- package/dist/client/Menu.d.cts +0 -624
- package/dist/client/Menu.d.ts +0 -624
- package/dist/client/Menu.js +0 -3
- package/dist/client/index.cjs +0 -2
- package/dist/client/index.d.cts +0 -534
- package/dist/client/index.d.ts +0 -534
- package/dist/client/index.js +0 -2
- package/dist/domAnimation-26D6WPCP.cjs +0 -1
- package/dist/domAnimation-FQC75V5T.js +0 -1
- package/dist/domMax-7KVFVNKB.cjs +0 -1
- package/dist/domMax-XRPNJ6D3.js +0 -1
- package/dist/experimental/client/SwitchV2.cjs +0 -1
- package/dist/experimental/client/SwitchV2.js +0 -1
- package/dist/experimental/client/index.cjs +0 -3
- package/dist/experimental/client/index.d.cts +0 -135
- package/dist/experimental/client/index.d.ts +0 -135
- package/dist/experimental/client/index.js +0 -3
- package/dist/experimental/index.cjs +0 -2
- package/dist/experimental/index.d.cts +0 -86
- package/dist/experimental/index.d.ts +0 -86
- package/dist/experimental/index.js +0 -2
- package/dist/index-Ba60jeat.d.cts +0 -251
- package/dist/index-BrIj1pmg.d.ts +0 -251
- package/dist/index-DUswrIxa.d.cts +0 -251
- package/dist/index-DVUIyCVF.d.ts +0 -251
- package/dist/metafile-cjs.json +0 -1
- package/dist/metafile-esm.json +0 -1
- package/dist/styles/toast.css +0 -1
- package/dist/styles/toast.d.cts +0 -2
- package/dist/styles/toast.d.ts +0 -2
- package/dist/tailwind/plugin.cjs +0 -1
- package/dist/tailwind/plugin.d.cts +0 -84
- package/dist/tailwind/plugin.d.ts +0 -84
- package/dist/tailwind/plugin.js +0 -2
- package/dist/tailwind/purger.cjs +0 -5
- package/dist/tailwind/purger.js +0 -6
- package/dist/tailwind/utils.cjs +0 -1
- package/dist/tailwind/utils.d.cts +0 -164
- package/dist/tailwind/utils.d.ts +0 -164
- package/dist/tailwind/utils.js +0 -1
- package/dist/tokens/automation/configs.cjs +0 -1
- package/dist/tokens/automation/configs.d.cts +0 -128
- package/dist/tokens/automation/configs.d.ts +0 -128
- package/dist/tokens/automation/configs.js +0 -1
- package/dist/types-fpiurdUk.d.cts +0 -6
- package/dist/types-fpiurdUk.d.ts +0 -6
- package/dist/universalTokensConfigAuto-BHqbAL0M.d.cts +0 -14360
- package/dist/universalTokensConfigAuto-BHqbAL0M.d.ts +0 -14360
- package/dist/universalTokensConfigAuto-D1z2ow2N.d.cts +0 -14360
- package/dist/universalTokensConfigAuto-D1z2ow2N.d.ts +0 -14360
|
Binary file
|
package/cli/bin/uds-darwin-x64
CHANGED
|
Binary file
|
package/cli/bin/uds-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Project } from 'ts-morph';
|
|
2
2
|
import { SyntaxKind } from 'ts-morph';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// eslint-disable-next-line n/no-unpublished-import
|
|
5
|
+
import type { ButtonPalette, ButtonVariant, ButtonVariantFlat } from '../../src/tokens';
|
|
6
6
|
import { getGlobPattern, getImportsFromPackage, getProject } from './utils';
|
|
7
7
|
|
|
8
8
|
const buttonFlatValMap: Record<ButtonVariantFlat, ButtonVariantFlat> = {
|
package/cli/preload.ts
CHANGED
|
@@ -5,7 +5,7 @@ spyOn(global.Bun.Glob.prototype, 'scan').mockImplementation(() => {
|
|
|
5
5
|
return ['/pages/PageA.tsx', '/pages/PageB.tsx'] as unknown as AsyncIterableIterator<string>;
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
mock.module('
|
|
8
|
+
mock.module('../dist/tailwind/purger', () => ({
|
|
9
9
|
componentsDependencies: {
|
|
10
10
|
Button: ['Icon', 'Pressable', 'Text'],
|
|
11
11
|
Spinner: [],
|
package/cli/tsconfig.json
CHANGED
|
@@ -30,23 +30,14 @@
|
|
|
30
30
|
"module": "esnext",
|
|
31
31
|
"moduleResolution": "bundler",
|
|
32
32
|
"paths": {
|
|
33
|
-
"~/*": [
|
|
34
|
-
"../src/*"
|
|
35
|
-
],
|
|
36
33
|
"@yahoo/uds/scripts/*": [
|
|
37
34
|
"../scripts/*"
|
|
38
35
|
],
|
|
39
|
-
// "@yahoo/uds/tokens": [
|
|
40
|
-
// "../src/tokens/index.ts"
|
|
41
|
-
// ],
|
|
42
36
|
"@yahoo/uds/tailwind/purger": [
|
|
43
37
|
"../src/tailwind/purger/index.ts"
|
|
44
38
|
],
|
|
45
39
|
"@yahoo/uds/tailwind/tsMorph": [
|
|
46
|
-
"../
|
|
47
|
-
],
|
|
48
|
-
"root/*": [
|
|
49
|
-
"../../*"
|
|
40
|
+
"../src/tailwind/tsMorph.ts"
|
|
50
41
|
]
|
|
51
42
|
}
|
|
52
43
|
}
|
package/cli/utils/purgeCSS.ts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
|
|
3
|
+
import { print, spinStart, spinStop } from 'bluebun';
|
|
4
|
+
import type { BunFile } from 'bun';
|
|
5
|
+
import type { CallExpression, JsxOpeningElement, JsxSelfClosingElement } from 'ts-morph';
|
|
6
|
+
import { Node, Project, SyntaxKind, ts } from 'ts-morph';
|
|
7
|
+
|
|
8
|
+
import { variants } from '../../dist/styles/variants';
|
|
3
9
|
import {
|
|
4
10
|
componentsDependencies,
|
|
5
11
|
componentToTwClasses,
|
|
6
12
|
componentToVariants,
|
|
7
13
|
variantsList,
|
|
8
|
-
} from '
|
|
9
|
-
import { findReferencesAsJsxElements, getUsedPropsInReference } from '
|
|
10
|
-
import
|
|
14
|
+
} from '../../dist/tailwind/purger';
|
|
15
|
+
import { findReferencesAsJsxElements, getUsedPropsInReference } from '../../dist/tailwind/tsMorph';
|
|
16
|
+
import packageJson from '../../package.json';
|
|
17
|
+
// eslint-disable-next-line n/no-unpublished-import
|
|
18
|
+
import type { ColorModeConfig, ScaleModeConfig, UniversalTokensConfig } from '../../src/tokens';
|
|
11
19
|
import {
|
|
12
20
|
DARK_COLOR_MODE_CLASSNAME,
|
|
13
21
|
LARGE_SCALE_MODE_CLASSNAME,
|
|
14
22
|
LIGHT_COLOR_MODE_CLASSNAME,
|
|
15
23
|
MEDIUM_SCALE_MODE_CLASSNAME,
|
|
16
24
|
SMALL_SCALE_MODE_CLASSNAME,
|
|
17
|
-
variants,
|
|
18
25
|
XLARGE_SCALE_MODE_CLASSNAME,
|
|
19
26
|
XSMALL_SCALE_MODE_CLASSNAME,
|
|
20
27
|
XXLARGE_SCALE_MODE_CLASSNAME,
|
|
21
28
|
XXXLARGE_SCALE_MODE_CLASSNAME,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import type { BunFile } from 'bun';
|
|
25
|
-
import uniq from 'lodash/uniq';
|
|
26
|
-
import type { CallExpression, JsxOpeningElement, JsxSelfClosingElement } from 'ts-morph';
|
|
27
|
-
import { Node, Project, SyntaxKind, ts } from 'ts-morph';
|
|
28
|
-
|
|
29
|
-
import packageJson from '../../package.json';
|
|
29
|
+
// eslint-disable-next-line n/no-unpublished-import
|
|
30
|
+
} from '../../src/tokens/consts/cssTokens';
|
|
30
31
|
|
|
31
32
|
const scaleModeToClass: { [key in keyof ScaleModeConfig]: string } = {
|
|
32
33
|
large: LARGE_SCALE_MODE_CLASSNAME,
|
|
@@ -197,7 +198,7 @@ export const getTailwindSafelist = (project: Project, componentList: string[]):
|
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
// Return a deduped list and strip out any empty strings
|
|
200
|
-
return
|
|
201
|
+
return Array.from(new Set(safeList)).filter(Boolean);
|
|
201
202
|
};
|
|
202
203
|
|
|
203
204
|
/**
|
|
@@ -380,18 +381,14 @@ async function purge({
|
|
|
380
381
|
entry: entry = '/src/',
|
|
381
382
|
}: PurgeOptions) {
|
|
382
383
|
const workspaceDir = Bun.env.PWD;
|
|
383
|
-
|
|
384
384
|
if (!workspaceDir) {
|
|
385
385
|
throw new Error('Workspace directory not found.');
|
|
386
386
|
}
|
|
387
|
-
|
|
388
387
|
const srcDir = path.join(workspaceDir, '/tsconfig.json');
|
|
389
388
|
const project = new Project({
|
|
390
389
|
tsConfigFilePath: srcDir,
|
|
391
390
|
});
|
|
392
|
-
|
|
393
391
|
const outputFile = Bun.file(path.join(`${Bun.env.PWD}`, output));
|
|
394
|
-
|
|
395
392
|
// // we need to load the UDS config
|
|
396
393
|
const configAbsolutePath = path.join(workspaceDir, configPath);
|
|
397
394
|
// The config is currently unused because we haven't implemented the feature to toggle the color and scale modes
|
|
@@ -405,29 +402,22 @@ async function purge({
|
|
|
405
402
|
"Couldn't load the UDS config. Make sure you have uds.config.ts in the root of your project.",
|
|
406
403
|
);
|
|
407
404
|
}
|
|
408
|
-
|
|
409
405
|
spinStart('Getting used UDS components...');
|
|
410
|
-
|
|
411
406
|
// 1. Get all files from the current dir
|
|
412
407
|
print('Loading the project...');
|
|
413
408
|
const files = await getFiles(entry);
|
|
414
|
-
|
|
415
409
|
// 2. For each file get the imports;
|
|
416
410
|
print('Going through the imports...');
|
|
417
411
|
const udsImports = parseFiles(project, files);
|
|
418
|
-
|
|
419
412
|
// 3. Now that we have the imported components
|
|
420
413
|
print('Finding all the components imported from UDS...');
|
|
421
414
|
const udsComponents = getComponentsToConvertToTW(udsImports);
|
|
422
|
-
|
|
423
415
|
// 4. Generate the CSS we need
|
|
424
416
|
print('🧑🍳 Cooking...');
|
|
425
417
|
const safeList = getTailwindSafelist(project, udsComponents);
|
|
426
418
|
const themesAndScalesClasses = getClassesForEnabledThemesAndScales();
|
|
427
|
-
|
|
428
419
|
// 5. Write the allowlist to a file
|
|
429
420
|
await saveToFile(safeList.concat(themesAndScalesClasses), outputFile);
|
|
430
|
-
|
|
431
421
|
spinStop('Generated your safelist!');
|
|
432
422
|
}
|
|
433
423
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (all, symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) {
|
|
12
|
+
__defProp(target, name, {
|
|
13
|
+
get: all[name],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
if (symbols) {
|
|
18
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
var __copyProps = (to, from, except, desc) => {
|
|
23
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
24
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
25
|
+
key = keys[i];
|
|
26
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
27
|
+
__defProp(to, key, {
|
|
28
|
+
get: ((k) => from[k]).bind(null, key),
|
|
29
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
37
|
+
value: mod,
|
|
38
|
+
enumerable: true
|
|
39
|
+
}) : target, mod));
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
|
|
43
|
+
exports.__export = __export;
|
|
44
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
5
|
+
var __export = (all, symbols) => {
|
|
6
|
+
let target = {};
|
|
7
|
+
for (var name in all) {
|
|
8
|
+
__defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
if (symbols) {
|
|
14
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
19
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
20
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { __commonJSMin, __export, __require };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_styles_styler = require('../styles/styler.cjs');
|
|
4
|
+
const require_utils_createSlot = require('../utils/createSlot.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/Box.tsx
|
|
9
|
+
const Slot = require_utils_createSlot.createSlot();
|
|
10
|
+
/**
|
|
11
|
+
* **📦 A layout component that can be used to compose other components**
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* The most simple component we ship - a div. But with all the power of the UDS design system.
|
|
15
|
+
* By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
|
|
16
|
+
* consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import { Box } from '@yahoo/uds';
|
|
21
|
+
*
|
|
22
|
+
* <Box backgroundColor="primary" spacing="6">
|
|
23
|
+
* Any kind of content can go here!
|
|
24
|
+
* </Box>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @usage
|
|
28
|
+
* - If you need to div-like container to apply padding, shapes, or other styling.
|
|
29
|
+
* - If you're creating card components.
|
|
30
|
+
*
|
|
31
|
+
* @see The {@link https://uds.build/docs/components/box Box Docs} for more info
|
|
32
|
+
*
|
|
33
|
+
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
34
|
+
*/
|
|
35
|
+
const Box = (0, react.forwardRef)(function Box$1({ asChild, as: As = "div", className, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display = "flex", overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, width, height, dropShadow, insetShadow, nestedBorderRadius, nestedBorderRadiusSize = nestedBorderRadius ? borderRadius : void 0, nestedBorderRadiusSpacing = nestedBorderRadius ? spacing : void 0, nestedBorderRadiusWidth = nestedBorderRadius ? borderWidth : void 0, ...props }, ref) {
|
|
36
|
+
const styles = require_styles_styler.getStyles({
|
|
37
|
+
backgroundColor,
|
|
38
|
+
borderRadius,
|
|
39
|
+
borderTopStartRadius,
|
|
40
|
+
borderTopEndRadius,
|
|
41
|
+
borderBottomStartRadius,
|
|
42
|
+
borderBottomEndRadius,
|
|
43
|
+
nestedBorderRadius,
|
|
44
|
+
nestedBorderRadiusSize,
|
|
45
|
+
nestedBorderRadiusSpacing,
|
|
46
|
+
nestedBorderRadiusWidth,
|
|
47
|
+
borderColor,
|
|
48
|
+
borderStartColor,
|
|
49
|
+
borderEndColor,
|
|
50
|
+
borderTopColor,
|
|
51
|
+
borderBottomColor,
|
|
52
|
+
borderWidth,
|
|
53
|
+
borderVerticalWidth,
|
|
54
|
+
borderHorizontalWidth,
|
|
55
|
+
borderStartWidth,
|
|
56
|
+
borderEndWidth,
|
|
57
|
+
borderTopWidth,
|
|
58
|
+
borderBottomWidth,
|
|
59
|
+
alignContent,
|
|
60
|
+
alignItems,
|
|
61
|
+
alignSelf,
|
|
62
|
+
flex,
|
|
63
|
+
flexDirection,
|
|
64
|
+
flexGrow,
|
|
65
|
+
flexShrink,
|
|
66
|
+
flexWrap,
|
|
67
|
+
justifyContent,
|
|
68
|
+
flexBasis,
|
|
69
|
+
display,
|
|
70
|
+
overflow,
|
|
71
|
+
overflowX,
|
|
72
|
+
overflowY,
|
|
73
|
+
position,
|
|
74
|
+
spacing,
|
|
75
|
+
spacingHorizontal,
|
|
76
|
+
spacingVertical,
|
|
77
|
+
spacingBottom,
|
|
78
|
+
spacingEnd,
|
|
79
|
+
spacingStart,
|
|
80
|
+
spacingTop,
|
|
81
|
+
offset,
|
|
82
|
+
offsetVertical,
|
|
83
|
+
offsetHorizontal,
|
|
84
|
+
offsetBottom,
|
|
85
|
+
offsetEnd,
|
|
86
|
+
offsetStart,
|
|
87
|
+
offsetTop,
|
|
88
|
+
columnGap,
|
|
89
|
+
rowGap,
|
|
90
|
+
width,
|
|
91
|
+
height,
|
|
92
|
+
dropShadow,
|
|
93
|
+
insetShadow,
|
|
94
|
+
className
|
|
95
|
+
});
|
|
96
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(asChild ? Slot : As, {
|
|
97
|
+
className: styles,
|
|
98
|
+
ref,
|
|
99
|
+
...props
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
Box.displayName = "Box";
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
exports.Box = Box;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { UniversalBoxProps } from "../tokens/types.cjs";
|
|
2
|
+
import "../tokens/index.cjs";
|
|
3
|
+
import * as react0 from "react";
|
|
3
4
|
|
|
5
|
+
//#region src/components/Box.d.ts
|
|
4
6
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
|
5
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
|
6
|
-
}
|
|
7
|
+
interface BoxProps extends UniversalBoxProps, DivProps {}
|
|
7
8
|
/**
|
|
8
9
|
* **📦 A layout component that can be used to compose other components**
|
|
9
10
|
*
|
|
@@ -29,6 +30,6 @@ interface BoxProps extends UniversalBoxProps, DivProps {
|
|
|
29
30
|
*
|
|
30
31
|
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
31
32
|
*/
|
|
32
|
-
declare const Box:
|
|
33
|
-
|
|
34
|
-
export { type BoxProps
|
|
33
|
+
declare const Box: react0.ForwardRefExoticComponent<BoxProps & react0.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Box, type BoxProps, type DivProps };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { UniversalBoxProps } from "../tokens/types.js";
|
|
2
|
+
import "../tokens/index.js";
|
|
3
|
+
import * as react5 from "react";
|
|
3
4
|
|
|
5
|
+
//#region src/components/Box.d.ts
|
|
4
6
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
|
5
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
|
6
|
-
}
|
|
7
|
+
interface BoxProps extends UniversalBoxProps, DivProps {}
|
|
7
8
|
/**
|
|
8
9
|
* **📦 A layout component that can be used to compose other components**
|
|
9
10
|
*
|
|
@@ -29,6 +30,6 @@ interface BoxProps extends UniversalBoxProps, DivProps {
|
|
|
29
30
|
*
|
|
30
31
|
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
31
32
|
*/
|
|
32
|
-
declare const Box:
|
|
33
|
-
|
|
34
|
-
export { type BoxProps
|
|
33
|
+
declare const Box: react5.ForwardRefExoticComponent<BoxProps & react5.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Box, type BoxProps, type DivProps };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
import { getStyles } from "../styles/styler.js";
|
|
3
|
+
import { createSlot } from "../utils/createSlot.js";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/Box.tsx
|
|
8
|
+
const Slot = createSlot();
|
|
9
|
+
/**
|
|
10
|
+
* **📦 A layout component that can be used to compose other components**
|
|
11
|
+
*
|
|
12
|
+
* @description
|
|
13
|
+
* The most simple component we ship - a div. But with all the power of the UDS design system.
|
|
14
|
+
* By default, `Box` is a flexbox container. When working with vertical or horizontal layouts,
|
|
15
|
+
* consider using [VStack](./v-stack) or [HStack](./h-stack) respectively.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { Box } from '@yahoo/uds';
|
|
20
|
+
*
|
|
21
|
+
* <Box backgroundColor="primary" spacing="6">
|
|
22
|
+
* Any kind of content can go here!
|
|
23
|
+
* </Box>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @usage
|
|
27
|
+
* - If you need to div-like container to apply padding, shapes, or other styling.
|
|
28
|
+
* - If you're creating card components.
|
|
29
|
+
*
|
|
30
|
+
* @see The {@link https://uds.build/docs/components/box Box Docs} for more info
|
|
31
|
+
*
|
|
32
|
+
* @related [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
33
|
+
*/
|
|
34
|
+
const Box = forwardRef(function Box$1({ asChild, as: As = "div", className, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display = "flex", overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, width, height, dropShadow, insetShadow, nestedBorderRadius, nestedBorderRadiusSize = nestedBorderRadius ? borderRadius : void 0, nestedBorderRadiusSpacing = nestedBorderRadius ? spacing : void 0, nestedBorderRadiusWidth = nestedBorderRadius ? borderWidth : void 0, ...props }, ref) {
|
|
35
|
+
const styles = getStyles({
|
|
36
|
+
backgroundColor,
|
|
37
|
+
borderRadius,
|
|
38
|
+
borderTopStartRadius,
|
|
39
|
+
borderTopEndRadius,
|
|
40
|
+
borderBottomStartRadius,
|
|
41
|
+
borderBottomEndRadius,
|
|
42
|
+
nestedBorderRadius,
|
|
43
|
+
nestedBorderRadiusSize,
|
|
44
|
+
nestedBorderRadiusSpacing,
|
|
45
|
+
nestedBorderRadiusWidth,
|
|
46
|
+
borderColor,
|
|
47
|
+
borderStartColor,
|
|
48
|
+
borderEndColor,
|
|
49
|
+
borderTopColor,
|
|
50
|
+
borderBottomColor,
|
|
51
|
+
borderWidth,
|
|
52
|
+
borderVerticalWidth,
|
|
53
|
+
borderHorizontalWidth,
|
|
54
|
+
borderStartWidth,
|
|
55
|
+
borderEndWidth,
|
|
56
|
+
borderTopWidth,
|
|
57
|
+
borderBottomWidth,
|
|
58
|
+
alignContent,
|
|
59
|
+
alignItems,
|
|
60
|
+
alignSelf,
|
|
61
|
+
flex,
|
|
62
|
+
flexDirection,
|
|
63
|
+
flexGrow,
|
|
64
|
+
flexShrink,
|
|
65
|
+
flexWrap,
|
|
66
|
+
justifyContent,
|
|
67
|
+
flexBasis,
|
|
68
|
+
display,
|
|
69
|
+
overflow,
|
|
70
|
+
overflowX,
|
|
71
|
+
overflowY,
|
|
72
|
+
position,
|
|
73
|
+
spacing,
|
|
74
|
+
spacingHorizontal,
|
|
75
|
+
spacingVertical,
|
|
76
|
+
spacingBottom,
|
|
77
|
+
spacingEnd,
|
|
78
|
+
spacingStart,
|
|
79
|
+
spacingTop,
|
|
80
|
+
offset,
|
|
81
|
+
offsetVertical,
|
|
82
|
+
offsetHorizontal,
|
|
83
|
+
offsetBottom,
|
|
84
|
+
offsetEnd,
|
|
85
|
+
offsetStart,
|
|
86
|
+
offsetTop,
|
|
87
|
+
columnGap,
|
|
88
|
+
rowGap,
|
|
89
|
+
width,
|
|
90
|
+
height,
|
|
91
|
+
dropShadow,
|
|
92
|
+
insetShadow,
|
|
93
|
+
className
|
|
94
|
+
});
|
|
95
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : As, {
|
|
96
|
+
className: styles,
|
|
97
|
+
ref,
|
|
98
|
+
...props
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
Box.displayName = "Box";
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
export { Box };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_components_Divider_DividerInternal = require('./DividerInternal.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
|
|
7
|
+
//#region src/components/Divider/Divider.tsx
|
|
8
|
+
/**
|
|
9
|
+
* **📦 A divider component that can be used to visually separate components**
|
|
10
|
+
*
|
|
11
|
+
* @description
|
|
12
|
+
* The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* import { Divider } from '@yahoo/uds';
|
|
17
|
+
*
|
|
18
|
+
* // Default primary horizontal divider. Similar to <hr />
|
|
19
|
+
* <Divider />
|
|
20
|
+
*
|
|
21
|
+
* // A vertical divider.
|
|
22
|
+
* <Divider vertical />
|
|
23
|
+
*
|
|
24
|
+
* // A horizontal divider with the secondary styling.
|
|
25
|
+
* <Divider variant="secondary" />
|
|
26
|
+
*
|
|
27
|
+
* // A vertical divider with the tertiary styling.
|
|
28
|
+
* <Divider vertical variant="tertiary" />
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @usage
|
|
32
|
+
* - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
|
|
33
|
+
*
|
|
34
|
+
* @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
|
|
35
|
+
*
|
|
36
|
+
* @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
37
|
+
*/
|
|
38
|
+
const Divider = (0, react.forwardRef)(function Divider$1(props, ref) {
|
|
39
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Divider_DividerInternal.DividerInternal, {
|
|
40
|
+
ref,
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
Divider.displayName = "Divider";
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.Divider = Divider;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DividerInternalProps } from "./DividerInternal.cjs";
|
|
2
|
+
import * as react30 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Divider/Divider.d.ts
|
|
5
|
+
type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
|
|
6
|
+
/**
|
|
7
|
+
* **📦 A divider component that can be used to visually separate components**
|
|
8
|
+
*
|
|
9
|
+
* @description
|
|
10
|
+
* The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* import { Divider } from '@yahoo/uds';
|
|
15
|
+
*
|
|
16
|
+
* // Default primary horizontal divider. Similar to <hr />
|
|
17
|
+
* <Divider />
|
|
18
|
+
*
|
|
19
|
+
* // A vertical divider.
|
|
20
|
+
* <Divider vertical />
|
|
21
|
+
*
|
|
22
|
+
* // A horizontal divider with the secondary styling.
|
|
23
|
+
* <Divider variant="secondary" />
|
|
24
|
+
*
|
|
25
|
+
* // A vertical divider with the tertiary styling.
|
|
26
|
+
* <Divider vertical variant="tertiary" />
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @usage
|
|
30
|
+
* - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
|
|
31
|
+
*
|
|
32
|
+
* @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
|
|
33
|
+
*
|
|
34
|
+
* @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
35
|
+
*/
|
|
36
|
+
declare const Divider: react30.ForwardRefExoticComponent<DividerProps & react30.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Divider, type DividerProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DividerInternalProps } from "./DividerInternal.js";
|
|
2
|
+
import * as react0 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Divider/Divider.d.ts
|
|
5
|
+
type DividerProps = Omit<DividerInternalProps, 'layerClassNames'>;
|
|
6
|
+
/**
|
|
7
|
+
* **📦 A divider component that can be used to visually separate components**
|
|
8
|
+
*
|
|
9
|
+
* @description
|
|
10
|
+
* The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* import { Divider } from '@yahoo/uds';
|
|
15
|
+
*
|
|
16
|
+
* // Default primary horizontal divider. Similar to <hr />
|
|
17
|
+
* <Divider />
|
|
18
|
+
*
|
|
19
|
+
* // A vertical divider.
|
|
20
|
+
* <Divider vertical />
|
|
21
|
+
*
|
|
22
|
+
* // A horizontal divider with the secondary styling.
|
|
23
|
+
* <Divider variant="secondary" />
|
|
24
|
+
*
|
|
25
|
+
* // A vertical divider with the tertiary styling.
|
|
26
|
+
* <Divider vertical variant="tertiary" />
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @usage
|
|
30
|
+
* - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
|
|
31
|
+
*
|
|
32
|
+
* @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
|
|
33
|
+
*
|
|
34
|
+
* @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
35
|
+
*/
|
|
36
|
+
declare const Divider: react0.ForwardRefExoticComponent<DividerProps & react0.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Divider, type DividerProps };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
import { DividerInternal } from "./DividerInternal.js";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Divider/Divider.tsx
|
|
7
|
+
/**
|
|
8
|
+
* **📦 A divider component that can be used to visually separate components**
|
|
9
|
+
*
|
|
10
|
+
* @description
|
|
11
|
+
* The Divider component is a visual element used to separate content and create clear groupings within a layout. It helps establish hierarchy, improve readability, and guide users through sections of an interface. Dividers can appear as horizontal or vertical lines and are commonly used between related content blocks, within menus, or in dense UI areas to reduce visual clutter.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { Divider } from '@yahoo/uds';
|
|
16
|
+
*
|
|
17
|
+
* // Default primary horizontal divider. Similar to <hr />
|
|
18
|
+
* <Divider />
|
|
19
|
+
*
|
|
20
|
+
* // A vertical divider.
|
|
21
|
+
* <Divider vertical />
|
|
22
|
+
*
|
|
23
|
+
* // A horizontal divider with the secondary styling.
|
|
24
|
+
* <Divider variant="secondary" />
|
|
25
|
+
*
|
|
26
|
+
* // A vertical divider with the tertiary styling.
|
|
27
|
+
* <Divider vertical variant="tertiary" />
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @usage
|
|
31
|
+
* - Visually separating parts of a page. Usually used in conjuction with [HStack](./h-stack) or [VStack](./v-stack).
|
|
32
|
+
*
|
|
33
|
+
* @see The {@link https://uds.build/docs/components/divider Divider Docs} for more info
|
|
34
|
+
*
|
|
35
|
+
* @related [Box](https://uds.build/docs/components/box), [HStack](https://uds.build/docs/components/h-stack), [VStack](https://uds.build/docs/components/v-stack)
|
|
36
|
+
*/
|
|
37
|
+
const Divider = forwardRef(function Divider$1(props, ref) {
|
|
38
|
+
return /* @__PURE__ */ jsx(DividerInternal, {
|
|
39
|
+
ref,
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
Divider.displayName = "Divider";
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Divider };
|