@yahoo/uds 3.58.1 → 3.59.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 +1 -2
- package/cli/preload.ts +1 -1
- package/cli/tsconfig.json +1 -10
- package/cli/utils/purgeCSS.ts +12 -24
- package/dist/_virtual/rolldown_runtime.cjs +35 -0
- package/dist/_virtual/rolldown_runtime.js +22 -0
- package/dist/components/Box.cjs +101 -0
- package/dist/components/Box.d.cts +36 -0
- package/dist/components/Box.d.cts.map +1 -0
- package/dist/components/Box.d.ts +36 -0
- package/dist/components/Box.d.ts.map +1 -0
- package/dist/components/Box.js +101 -0
- package/dist/components/Box.js.map +1 -0
- package/dist/components/Divider/Divider.cjs +47 -0
- package/dist/components/Divider/Divider.d.cts +39 -0
- package/dist/components/Divider/Divider.d.cts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +39 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.js +47 -0
- package/dist/components/Divider/Divider.js.map +1 -0
- package/dist/components/Divider/DividerCore.cjs +76 -0
- package/dist/components/Divider/DividerCore.d.cts +16 -0
- package/dist/components/Divider/DividerCore.d.cts.map +1 -0
- package/dist/components/Divider/DividerCore.d.ts +16 -0
- package/dist/components/Divider/DividerCore.d.ts.map +1 -0
- package/dist/components/Divider/DividerCore.js +76 -0
- package/dist/components/Divider/DividerCore.js.map +1 -0
- package/dist/components/Divider/DividerInternal.cjs +28 -0
- package/dist/components/Divider/DividerInternal.d.cts +13 -0
- package/dist/components/Divider/DividerInternal.d.cts.map +1 -0
- package/dist/components/Divider/DividerInternal.d.ts +13 -0
- package/dist/components/Divider/DividerInternal.d.ts.map +1 -0
- package/dist/components/Divider/DividerInternal.js +28 -0
- package/dist/components/Divider/DividerInternal.js.map +1 -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 +27 -0
- package/dist/components/FormLabel.d.cts.map +1 -0
- package/dist/components/FormLabel.d.ts +27 -0
- package/dist/components/FormLabel.d.ts.map +1 -0
- package/dist/components/FormLabel.js +32 -0
- package/dist/components/FormLabel.js.map +1 -0
- package/dist/components/HStack.cjs +51 -0
- package/dist/components/HStack.d.cts +40 -0
- package/dist/components/HStack.d.cts.map +1 -0
- package/dist/components/HStack.d.ts +40 -0
- package/dist/components/HStack.d.ts.map +1 -0
- package/dist/components/HStack.js +51 -0
- package/dist/components/HStack.js.map +1 -0
- package/dist/components/Icon.cjs +67 -0
- package/dist/components/Icon.d.cts +39 -0
- package/dist/components/Icon.d.cts.map +1 -0
- package/dist/components/Icon.d.ts +39 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/Icon.js +67 -0
- package/dist/components/Icon.js.map +1 -0
- package/dist/components/IconSlot.cjs +57 -0
- package/dist/components/IconSlot.d.cts +32 -0
- package/dist/components/IconSlot.d.cts.map +1 -0
- package/dist/components/IconSlot.d.ts +32 -0
- package/dist/components/IconSlot.d.ts.map +1 -0
- package/dist/components/IconSlot.js +55 -0
- package/dist/components/IconSlot.js.map +1 -0
- package/dist/components/Image.cjs +96 -0
- package/dist/components/Image.d.cts +92 -0
- package/dist/components/Image.d.cts.map +1 -0
- package/dist/components/Image.d.ts +92 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/Image.js +96 -0
- package/dist/components/Image.js.map +1 -0
- package/dist/components/Link.cjs +98 -0
- package/dist/components/Link.d.cts +46 -0
- package/dist/components/Link.d.cts.map +1 -0
- package/dist/components/Link.d.ts +46 -0
- package/dist/components/Link.d.ts.map +1 -0
- package/dist/components/Link.js +98 -0
- package/dist/components/Link.js.map +1 -0
- package/dist/components/Text.cjs +156 -0
- package/dist/components/Text.d.cts +91 -0
- package/dist/components/Text.d.cts.map +1 -0
- package/dist/components/Text.d.ts +91 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Text.js +156 -0
- package/dist/components/Text.js.map +1 -0
- package/dist/components/VStack.cjs +51 -0
- package/dist/components/VStack.d.cts +40 -0
- package/dist/components/VStack.d.cts.map +1 -0
- package/dist/components/VStack.d.ts +40 -0
- package/dist/components/VStack.d.ts.map +1 -0
- package/dist/components/VStack.js +51 -0
- package/dist/components/VStack.js.map +1 -0
- package/dist/components/client/AnimateHeightChange.cjs +48 -0
- package/dist/components/client/AnimateHeightChange.d.cts +21 -0
- package/dist/components/client/AnimateHeightChange.d.cts.map +1 -0
- package/dist/components/client/AnimateHeightChange.d.ts +21 -0
- package/dist/components/client/AnimateHeightChange.d.ts.map +1 -0
- package/dist/components/client/AnimateHeightChange.js +48 -0
- package/dist/components/client/AnimateHeightChange.js.map +1 -0
- package/dist/components/client/Avatar/Avatar.cjs +33 -0
- package/dist/components/client/Avatar/Avatar.d.cts +31 -0
- package/dist/components/client/Avatar/Avatar.d.cts.map +1 -0
- package/dist/components/client/Avatar/Avatar.d.ts +31 -0
- package/dist/components/client/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/client/Avatar/Avatar.js +33 -0
- package/dist/components/client/Avatar/Avatar.js.map +1 -0
- package/dist/components/client/Avatar/AvatarIcon.cjs +64 -0
- package/dist/components/client/Avatar/AvatarIcon.d.cts +37 -0
- package/dist/components/client/Avatar/AvatarIcon.d.cts.map +1 -0
- package/dist/components/client/Avatar/AvatarIcon.d.ts +37 -0
- package/dist/components/client/Avatar/AvatarIcon.d.ts.map +1 -0
- package/dist/components/client/Avatar/AvatarIcon.js +64 -0
- package/dist/components/client/Avatar/AvatarIcon.js.map +1 -0
- package/dist/components/client/Avatar/AvatarImage.cjs +88 -0
- package/dist/components/client/Avatar/AvatarImage.d.cts +45 -0
- package/dist/components/client/Avatar/AvatarImage.d.cts.map +1 -0
- package/dist/components/client/Avatar/AvatarImage.d.ts +45 -0
- package/dist/components/client/Avatar/AvatarImage.d.ts.map +1 -0
- package/dist/components/client/Avatar/AvatarImage.js +88 -0
- package/dist/components/client/Avatar/AvatarImage.js.map +1 -0
- package/dist/components/client/Avatar/AvatarText.cjs +50 -0
- package/dist/components/client/Avatar/AvatarText.d.cts +40 -0
- package/dist/components/client/Avatar/AvatarText.d.cts.map +1 -0
- package/dist/components/client/Avatar/AvatarText.d.ts +40 -0
- package/dist/components/client/Avatar/AvatarText.d.ts.map +1 -0
- package/dist/components/client/Avatar/AvatarText.js +50 -0
- package/dist/components/client/Avatar/AvatarText.js.map +1 -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 +44 -0
- package/dist/components/client/Avatar/utils.d.cts.map +1 -0
- package/dist/components/client/Avatar/utils.d.ts +44 -0
- package/dist/components/client/Avatar/utils.d.ts.map +1 -0
- package/dist/components/client/Avatar/utils.js +61 -0
- package/dist/components/client/Avatar/utils.js.map +1 -0
- package/dist/components/client/Badge.cjs +106 -0
- package/dist/components/client/Badge.d.cts +35 -0
- package/dist/components/client/Badge.d.cts.map +1 -0
- package/dist/components/client/Badge.d.ts +35 -0
- package/dist/components/client/Badge.d.ts.map +1 -0
- package/dist/components/client/Badge.js +105 -0
- package/dist/components/client/Badge.js.map +1 -0
- package/dist/components/client/Button.cjs +226 -0
- package/dist/components/client/Button.d.cts +41 -0
- package/dist/components/client/Button.d.cts.map +1 -0
- package/dist/components/client/Button.d.ts +41 -0
- package/dist/components/client/Button.d.ts.map +1 -0
- package/dist/components/client/Button.js +225 -0
- package/dist/components/client/Button.js.map +1 -0
- package/dist/components/client/Checkbox.cjs +215 -0
- package/dist/components/client/Checkbox.d.cts +43 -0
- package/dist/components/client/Checkbox.d.cts.map +1 -0
- package/dist/components/client/Checkbox.d.ts +43 -0
- package/dist/components/client/Checkbox.d.ts.map +1 -0
- package/dist/components/client/Checkbox.js +212 -0
- package/dist/components/client/Checkbox.js.map +1 -0
- package/dist/components/client/Chip/Chip.cjs +67 -0
- package/dist/components/client/Chip/Chip.d.cts +37 -0
- package/dist/components/client/Chip/Chip.d.cts.map +1 -0
- package/dist/components/client/Chip/Chip.d.ts +37 -0
- package/dist/components/client/Chip/Chip.d.ts.map +1 -0
- package/dist/components/client/Chip/Chip.js +66 -0
- package/dist/components/client/Chip/Chip.js.map +1 -0
- package/dist/components/client/Chip/ChipBase.cjs +88 -0
- package/dist/components/client/Chip/ChipBase.d.cts +23 -0
- package/dist/components/client/Chip/ChipBase.d.cts.map +1 -0
- package/dist/components/client/Chip/ChipBase.d.ts +23 -0
- package/dist/components/client/Chip/ChipBase.d.ts.map +1 -0
- package/dist/components/client/Chip/ChipBase.js +86 -0
- package/dist/components/client/Chip/ChipBase.js.map +1 -0
- package/dist/components/client/Chip/ChipButton.cjs +36 -0
- package/dist/components/client/Chip/ChipButton.d.cts +14 -0
- package/dist/components/client/Chip/ChipButton.d.cts.map +1 -0
- package/dist/components/client/Chip/ChipButton.d.ts +14 -0
- package/dist/components/client/Chip/ChipButton.d.ts.map +1 -0
- package/dist/components/client/Chip/ChipButton.js +35 -0
- package/dist/components/client/Chip/ChipButton.js.map +1 -0
- package/dist/components/client/Chip/ChipDismissible.cjs +57 -0
- package/dist/components/client/Chip/ChipDismissible.d.cts +14 -0
- package/dist/components/client/Chip/ChipDismissible.d.cts.map +1 -0
- package/dist/components/client/Chip/ChipDismissible.d.ts +14 -0
- package/dist/components/client/Chip/ChipDismissible.d.ts.map +1 -0
- package/dist/components/client/Chip/ChipDismissible.js +56 -0
- package/dist/components/client/Chip/ChipDismissible.js.map +1 -0
- package/dist/components/client/Chip/ChipLink.cjs +38 -0
- package/dist/components/client/Chip/ChipLink.d.cts +14 -0
- package/dist/components/client/Chip/ChipLink.d.cts.map +1 -0
- package/dist/components/client/Chip/ChipLink.d.ts +14 -0
- package/dist/components/client/Chip/ChipLink.d.ts.map +1 -0
- package/dist/components/client/Chip/ChipLink.js +37 -0
- package/dist/components/client/Chip/ChipLink.js.map +1 -0
- package/dist/components/client/Chip/ChipToggle.cjs +53 -0
- package/dist/components/client/Chip/ChipToggle.d.cts +14 -0
- package/dist/components/client/Chip/ChipToggle.d.cts.map +1 -0
- package/dist/components/client/Chip/ChipToggle.d.ts +14 -0
- package/dist/components/client/Chip/ChipToggle.d.ts.map +1 -0
- package/dist/components/client/Chip/ChipToggle.js +52 -0
- package/dist/components/client/Chip/ChipToggle.js.map +1 -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 +127 -0
- package/dist/components/client/IconButton.d.cts +38 -0
- package/dist/components/client/IconButton.d.cts.map +1 -0
- package/dist/components/client/IconButton.d.ts +38 -0
- package/dist/components/client/IconButton.d.ts.map +1 -0
- package/dist/components/client/IconButton.js +127 -0
- package/dist/components/client/IconButton.js.map +1 -0
- package/dist/components/client/Input/Input.cjs +209 -0
- package/dist/components/client/Input/Input.d.cts +57 -0
- package/dist/components/client/Input/Input.d.cts.map +1 -0
- package/dist/components/client/Input/Input.d.ts +57 -0
- package/dist/components/client/Input/Input.d.ts.map +1 -0
- package/dist/components/client/Input/Input.js +208 -0
- package/dist/components/client/Input/Input.js.map +1 -0
- package/dist/components/client/Input/InputHelpText.cjs +55 -0
- package/dist/components/client/Input/InputHelpText.d.cts +42 -0
- package/dist/components/client/Input/InputHelpText.d.cts.map +1 -0
- package/dist/components/client/Input/InputHelpText.d.ts +42 -0
- package/dist/components/client/Input/InputHelpText.d.ts.map +1 -0
- package/dist/components/client/Input/InputHelpText.js +55 -0
- package/dist/components/client/Input/InputHelpText.js.map +1 -0
- package/dist/components/client/Input/InputHelpTextInternal.cjs +57 -0
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +38 -0
- package/dist/components/client/Input/InputHelpTextInternal.d.cts.map +1 -0
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +38 -0
- package/dist/components/client/Input/InputHelpTextInternal.d.ts.map +1 -0
- package/dist/components/client/Input/InputHelpTextInternal.js +57 -0
- package/dist/components/client/Input/InputHelpTextInternal.js.map +1 -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 +163 -0
- package/dist/components/client/Menu/Menu.Content.d.cts +215 -0
- package/dist/components/client/Menu/Menu.Content.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.Content.d.ts +215 -0
- package/dist/components/client/Menu/Menu.Content.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.Content.js +163 -0
- package/dist/components/client/Menu/Menu.Content.js.map +1 -0
- package/dist/components/client/Menu/Menu.Divider.cjs +74 -0
- package/dist/components/client/Menu/Menu.Divider.d.cts +54 -0
- package/dist/components/client/Menu/Menu.Divider.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.Divider.d.ts +54 -0
- package/dist/components/client/Menu/Menu.Divider.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.Divider.js +74 -0
- package/dist/components/client/Menu/Menu.Divider.js.map +1 -0
- package/dist/components/client/Menu/Menu.Item.cjs +80 -0
- package/dist/components/client/Menu/Menu.Item.d.cts +79 -0
- package/dist/components/client/Menu/Menu.Item.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.Item.d.ts +79 -0
- package/dist/components/client/Menu/Menu.Item.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.Item.js +80 -0
- package/dist/components/client/Menu/Menu.Item.js.map +1 -0
- package/dist/components/client/Menu/Menu.ItemBase.cjs +163 -0
- package/dist/components/client/Menu/Menu.ItemBase.d.cts +32 -0
- package/dist/components/client/Menu/Menu.ItemBase.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.ItemBase.d.ts +32 -0
- package/dist/components/client/Menu/Menu.ItemBase.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.ItemBase.js +162 -0
- package/dist/components/client/Menu/Menu.ItemBase.js.map +1 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +138 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +93 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +93 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.js +138 -0
- package/dist/components/client/Menu/Menu.ItemCheckbox.js.map +1 -0
- package/dist/components/client/Menu/Menu.Provider.cjs +63 -0
- package/dist/components/client/Menu/Menu.Provider.d.cts +138 -0
- package/dist/components/client/Menu/Menu.Provider.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.Provider.d.ts +138 -0
- package/dist/components/client/Menu/Menu.Provider.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.Provider.js +63 -0
- package/dist/components/client/Menu/Menu.Provider.js.map +1 -0
- package/dist/components/client/Menu/Menu.Trigger.cjs +75 -0
- package/dist/components/client/Menu/Menu.Trigger.d.cts +79 -0
- package/dist/components/client/Menu/Menu.Trigger.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.Trigger.d.ts +79 -0
- package/dist/components/client/Menu/Menu.Trigger.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.Trigger.js +75 -0
- package/dist/components/client/Menu/Menu.Trigger.js.map +1 -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 +16 -0
- package/dist/components/client/Menu/Menu.index.d.cts.map +1 -0
- package/dist/components/client/Menu/Menu.index.d.ts +16 -0
- package/dist/components/client/Menu/Menu.index.d.ts.map +1 -0
- package/dist/components/client/Menu/Menu.index.js +28 -0
- package/dist/components/client/Menu/Menu.index.js.map +1 -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 +32 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.cts.map +1 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.ts +32 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.ts.map +1 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.js +39 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.js.map +1 -0
- package/dist/components/client/Pressable.cjs +112 -0
- package/dist/components/client/Pressable.d.cts +46 -0
- package/dist/components/client/Pressable.d.cts.map +1 -0
- package/dist/components/client/Pressable.d.ts +46 -0
- package/dist/components/client/Pressable.d.ts.map +1 -0
- package/dist/components/client/Pressable.js +112 -0
- package/dist/components/client/Pressable.js.map +1 -0
- package/dist/components/client/Radio/Radio.cjs +226 -0
- package/dist/components/client/Radio/Radio.d.cts +43 -0
- package/dist/components/client/Radio/Radio.d.cts.map +1 -0
- package/dist/components/client/Radio/Radio.d.ts +43 -0
- package/dist/components/client/Radio/Radio.d.ts.map +1 -0
- package/dist/components/client/Radio/Radio.js +223 -0
- package/dist/components/client/Radio/Radio.js.map +1 -0
- package/dist/components/client/Radio/RadioGroupProvider.cjs +98 -0
- package/dist/components/client/Radio/RadioGroupProvider.d.cts +38 -0
- package/dist/components/client/Radio/RadioGroupProvider.d.cts.map +1 -0
- package/dist/components/client/Radio/RadioGroupProvider.d.ts +38 -0
- package/dist/components/client/Radio/RadioGroupProvider.d.ts.map +1 -0
- package/dist/components/client/Radio/RadioGroupProvider.js +97 -0
- package/dist/components/client/Radio/RadioGroupProvider.js.map +1 -0
- package/dist/components/client/Radio/RadioGroupStore.cjs +41 -0
- package/dist/components/client/Radio/RadioGroupStore.d.cts +21 -0
- package/dist/components/client/Radio/RadioGroupStore.d.cts.map +1 -0
- package/dist/components/client/Radio/RadioGroupStore.d.ts +21 -0
- package/dist/components/client/Radio/RadioGroupStore.d.ts.map +1 -0
- package/dist/components/client/Radio/RadioGroupStore.js +40 -0
- package/dist/components/client/Radio/RadioGroupStore.js.map +1 -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 +31 -0
- package/dist/components/client/Radio/useRadioGroup.d.cts.map +1 -0
- package/dist/components/client/Radio/useRadioGroup.d.ts +31 -0
- package/dist/components/client/Radio/useRadioGroup.d.ts.map +1 -0
- package/dist/components/client/Radio/useRadioGroup.js +80 -0
- package/dist/components/client/Radio/useRadioGroup.js.map +1 -0
- package/dist/components/client/SpringMotionConfig.cjs +99 -0
- package/dist/components/client/SpringMotionConfig.d.cts +58 -0
- package/dist/components/client/SpringMotionConfig.d.cts.map +1 -0
- package/dist/components/client/SpringMotionConfig.d.ts +58 -0
- package/dist/components/client/SpringMotionConfig.d.ts.map +1 -0
- package/dist/components/client/SpringMotionConfig.js +99 -0
- package/dist/components/client/SpringMotionConfig.js.map +1 -0
- package/dist/components/client/Switch.cjs +218 -0
- package/dist/components/client/Switch.d.cts +42 -0
- package/dist/components/client/Switch.d.cts.map +1 -0
- package/dist/components/client/Switch.d.ts +42 -0
- package/dist/components/client/Switch.d.ts.map +1 -0
- package/dist/components/client/Switch.js +217 -0
- package/dist/components/client/Switch.js.map +1 -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 +21 -0
- package/dist/components/experimental/Spinner.d.cts.map +1 -0
- package/dist/components/experimental/Spinner.d.ts +21 -0
- package/dist/components/experimental/Spinner.d.ts.map +1 -0
- package/dist/components/experimental/Spinner.js +30 -0
- package/dist/components/experimental/Spinner.js.map +1 -0
- package/dist/components/experimental/Table.cjs +110 -0
- package/dist/components/experimental/Table.d.cts +85 -0
- package/dist/components/experimental/Table.d.cts.map +1 -0
- package/dist/components/experimental/Table.d.ts +85 -0
- package/dist/components/experimental/Table.d.ts.map +1 -0
- package/dist/components/experimental/Table.js +109 -0
- package/dist/components/experimental/Table.js.map +1 -0
- package/dist/components/experimental/Table.mocks.cjs +58 -0
- package/dist/components/experimental/Table.mocks.d.cts +20 -0
- package/dist/components/experimental/Table.mocks.d.cts.map +1 -0
- package/dist/components/experimental/Table.mocks.d.ts +20 -0
- package/dist/components/experimental/Table.mocks.d.ts.map +1 -0
- package/dist/components/experimental/Table.mocks.js +56 -0
- package/dist/components/experimental/Table.mocks.js.map +1 -0
- package/dist/components/experimental/client/Accordion.cjs +79 -0
- package/dist/components/experimental/client/Accordion.d.cts +31 -0
- package/dist/components/experimental/client/Accordion.d.cts.map +1 -0
- package/dist/components/experimental/client/Accordion.d.ts +31 -0
- package/dist/components/experimental/client/Accordion.d.ts.map +1 -0
- package/dist/components/experimental/client/Accordion.js +79 -0
- package/dist/components/experimental/client/Accordion.js.map +1 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.cjs +15 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.cts +8 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.cts.map +1 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.ts +8 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.ts.map +1 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.js +14 -0
- package/dist/components/experimental/client/AvoidMotionLibraryProvider.js.map +1 -0
- package/dist/components/experimental/client/Modal.cjs +61 -0
- package/dist/components/experimental/client/Modal.d.cts +27 -0
- package/dist/components/experimental/client/Modal.d.cts.map +1 -0
- package/dist/components/experimental/client/Modal.d.ts +27 -0
- package/dist/components/experimental/client/Modal.d.ts.map +1 -0
- package/dist/components/experimental/client/Modal.js +58 -0
- package/dist/components/experimental/client/Modal.js.map +1 -0
- package/dist/components/experimental/client/Popover.cjs +44 -0
- package/dist/components/experimental/client/Popover.d.cts +29 -0
- package/dist/components/experimental/client/Popover.d.cts.map +1 -0
- package/dist/components/experimental/client/Popover.d.ts +29 -0
- package/dist/components/experimental/client/Popover.d.ts.map +1 -0
- package/dist/components/experimental/client/Popover.js +34 -0
- package/dist/components/experimental/client/Popover.js.map +1 -0
- package/dist/components/experimental/client/SwitchV2.cjs +183 -0
- package/dist/components/experimental/client/SwitchV2.d.cts +43 -0
- package/dist/components/experimental/client/SwitchV2.d.cts.map +1 -0
- package/dist/components/experimental/client/SwitchV2.d.ts +43 -0
- package/dist/components/experimental/client/SwitchV2.d.ts.map +1 -0
- package/dist/components/experimental/client/SwitchV2.js +180 -0
- package/dist/components/experimental/client/SwitchV2.js.map +1 -0
- package/dist/components/experimental/client/Tabs.cjs +75 -0
- package/dist/components/experimental/client/Tabs.d.cts +31 -0
- package/dist/components/experimental/client/Tabs.d.cts.map +1 -0
- package/dist/components/experimental/client/Tabs.d.ts +31 -0
- package/dist/components/experimental/client/Tabs.d.ts.map +1 -0
- package/dist/components/experimental/client/Tabs.js +72 -0
- package/dist/components/experimental/client/Tabs.js.map +1 -0
- package/dist/components/experimental/client/Toast.cjs +167 -0
- package/dist/components/experimental/client/Toast.d.cts +31 -0
- package/dist/components/experimental/client/Toast.d.cts.map +1 -0
- package/dist/components/experimental/client/Toast.d.ts +31 -0
- package/dist/components/experimental/client/Toast.d.ts.map +1 -0
- package/dist/components/experimental/client/Toast.js +164 -0
- package/dist/components/experimental/client/Toast.js.map +1 -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 +23 -1
- package/dist/defaultTokensConfig.d.cts +8890 -8892
- package/dist/defaultTokensConfig.d.cts.map +1 -0
- package/dist/defaultTokensConfig.d.ts +8890 -8892
- package/dist/defaultTokensConfig.d.ts.map +1 -0
- package/dist/defaultTokensConfig.js +22 -1
- package/dist/defaultTokensConfig.js.map +1 -0
- package/dist/fixtures/macros/typesToConstants.cjs +29 -0
- package/dist/fixtures/macros/typesToConstants.d.cts +5 -0
- package/dist/fixtures/macros/typesToConstants.d.cts.map +1 -0
- package/dist/fixtures/macros/typesToConstants.d.ts +5 -0
- package/dist/fixtures/macros/typesToConstants.d.ts.map +1 -0
- package/dist/fixtures/macros/typesToConstants.js +28 -0
- package/dist/fixtures/macros/typesToConstants.js.map +1 -0
- package/dist/fixtures/utils/getScaleModeRamp.cjs +43 -0
- package/dist/fixtures/utils/getScaleModeRamp.d.cts +9 -0
- package/dist/fixtures/utils/getScaleModeRamp.d.cts.map +1 -0
- package/dist/fixtures/utils/getScaleModeRamp.d.ts +9 -0
- package/dist/fixtures/utils/getScaleModeRamp.d.ts.map +1 -0
- package/dist/fixtures/utils/getScaleModeRamp.js +43 -0
- package/dist/fixtures/utils/getScaleModeRamp.js.map +1 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.cjs +69 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.d.cts +9 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.d.cts.map +1 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.d.ts +9 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.d.ts.map +1 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.js +68 -0
- package/dist/fixtures/utils/getTailwindAsUdsColors.js.map +1 -0
- package/dist/fixtures.cjs +1 -816
- package/dist/fixtures.js +1 -816
- package/dist/flags.cjs +26 -1
- package/dist/flags.d.cts +15 -13
- package/dist/flags.d.cts.map +1 -0
- package/dist/flags.d.ts +15 -13
- package/dist/flags.d.ts.map +1 -0
- package/dist/flags.js +24 -1
- package/dist/flags.js.map +1 -0
- package/dist/generated/autoVariants.cjs +448 -0
- package/dist/generated/autoVariants.d.cts +110 -0
- package/dist/generated/autoVariants.d.cts.map +1 -0
- package/dist/generated/autoVariants.d.ts +110 -0
- package/dist/generated/autoVariants.d.ts.map +1 -0
- package/dist/generated/autoVariants.js +448 -0
- package/dist/generated/autoVariants.js.map +1 -0
- package/dist/generated/generatedConfigs.cjs +25475 -0
- package/dist/generated/generatedConfigs.js +25466 -0
- package/dist/generated/generatedConfigs.js.map +1 -0
- package/dist/generated/tailwindPurge.cjs +2979 -0
- package/dist/generated/tailwindPurge.d.cts +19 -0
- package/dist/generated/tailwindPurge.d.cts.map +1 -0
- package/dist/generated/tailwindPurge.d.ts +19 -0
- package/dist/generated/tailwindPurge.d.ts.map +1 -0
- package/dist/generated/tailwindPurge.js +2976 -0
- package/dist/generated/tailwindPurge.js.map +1 -0
- package/dist/generated/universalTokensConfigAuto.cjs +7922 -0
- package/dist/generated/universalTokensConfigAuto.d.cts +8906 -0
- package/dist/generated/universalTokensConfigAuto.d.cts.map +1 -0
- package/dist/generated/universalTokensConfigAuto.d.ts +8906 -0
- package/dist/generated/universalTokensConfigAuto.d.ts.map +1 -0
- package/dist/generated/universalTokensConfigAuto.js +7922 -0
- package/dist/generated/universalTokensConfigAuto.js.map +1 -0
- package/dist/hooks/useForkRef.cjs +27 -0
- package/dist/hooks/useForkRef.d.cts +7 -0
- package/dist/hooks/useForkRef.d.cts.map +1 -0
- package/dist/hooks/useForkRef.d.ts +7 -0
- package/dist/hooks/useForkRef.d.ts.map +1 -0
- package/dist/hooks/useForkRef.js +27 -0
- package/dist/hooks/useForkRef.js.map +1 -0
- package/dist/hooks/useNestedBorderRadius.cjs +80 -0
- package/dist/hooks/useNestedBorderRadius.d.cts +38 -0
- package/dist/hooks/useNestedBorderRadius.d.cts.map +1 -0
- package/dist/hooks/useNestedBorderRadius.d.ts +38 -0
- package/dist/hooks/useNestedBorderRadius.d.ts.map +1 -0
- package/dist/hooks/useNestedBorderRadius.js +80 -0
- package/dist/hooks/useNestedBorderRadius.js.map +1 -0
- package/dist/hooks/useRtl.cjs +48 -0
- package/dist/hooks/useRtl.d.cts +21 -0
- package/dist/hooks/useRtl.d.cts.map +1 -0
- package/dist/hooks/useRtl.d.ts +21 -0
- package/dist/hooks/useRtl.d.ts.map +1 -0
- package/dist/hooks/useRtl.js +46 -0
- package/dist/hooks/useRtl.js.map +1 -0
- package/dist/index.cjs +177 -1
- package/dist/index.d.cts +80 -376
- package/dist/index.d.ts +80 -376
- package/dist/index.js +59 -1
- package/dist/providers/ColorModeProvider.cjs +23 -0
- package/dist/providers/ColorModeProvider.d.cts +21 -0
- package/dist/providers/ColorModeProvider.d.cts.map +1 -0
- package/dist/providers/ColorModeProvider.d.ts +21 -0
- package/dist/providers/ColorModeProvider.d.ts.map +1 -0
- package/dist/providers/ColorModeProvider.js +21 -0
- package/dist/providers/ColorModeProvider.js.map +1 -0
- package/dist/providers/ScaleModeProvider.cjs +26 -0
- package/dist/providers/ScaleModeProvider.d.cts +21 -0
- package/dist/providers/ScaleModeProvider.d.cts.map +1 -0
- package/dist/providers/ScaleModeProvider.d.ts +21 -0
- package/dist/providers/ScaleModeProvider.d.ts.map +1 -0
- package/dist/providers/ScaleModeProvider.js +24 -0
- package/dist/providers/ScaleModeProvider.js.map +1 -0
- package/dist/providers/ThemeProvider.cjs +21 -0
- package/dist/providers/ThemeProvider.d.cts +20 -0
- package/dist/providers/ThemeProvider.d.cts.map +1 -0
- package/dist/providers/ThemeProvider.d.ts +20 -0
- package/dist/providers/ThemeProvider.d.ts.map +1 -0
- package/dist/providers/ThemeProvider.js +21 -0
- package/dist/providers/ThemeProvider.js.map +1 -0
- package/dist/scripts/utils/tsMorph.cjs +140 -0
- package/dist/scripts/utils/tsMorph.d.cts +33 -0
- package/dist/scripts/utils/tsMorph.d.cts.map +1 -0
- package/dist/scripts/utils/tsMorph.d.ts +33 -0
- package/dist/scripts/utils/tsMorph.d.ts.map +1 -0
- package/dist/scripts/utils/tsMorph.js +130 -0
- package/dist/scripts/utils/tsMorph.js.map +1 -0
- package/dist/styles/styler.cjs +117 -0
- package/dist/styles/styler.d.cts +194 -0
- package/dist/styles/styler.d.cts.map +1 -0
- package/dist/styles/styler.d.ts +194 -0
- package/dist/styles/styler.d.ts.map +1 -0
- package/dist/styles/styler.js +113 -0
- package/dist/styles/styler.js.map +1 -0
- package/dist/styles/stylerTypes.cjs +1 -0
- package/dist/styles/stylerTypes.d.cts +43 -0
- package/dist/styles/stylerTypes.d.cts.map +1 -0
- package/dist/styles/stylerTypes.d.ts +43 -0
- package/dist/styles/stylerTypes.d.ts.map +1 -0
- package/dist/styles/stylerTypes.js +1 -0
- package/dist/styles/variants.cjs +1343 -0
- package/dist/styles/variants.d.cts +1834 -0
- package/dist/styles/variants.d.cts.map +1 -0
- package/dist/styles/variants.d.ts +1834 -0
- package/dist/styles/variants.d.ts.map +1 -0
- package/dist/styles/variants.js +1344 -0
- package/dist/styles/variants.js.map +1 -0
- package/dist/tailwind/base/addColorModeVars.cjs +17 -0
- package/dist/tailwind/base/addColorModeVars.d.cts +11 -0
- package/dist/tailwind/base/addColorModeVars.d.cts.map +1 -0
- package/dist/tailwind/base/addColorModeVars.d.ts +11 -0
- package/dist/tailwind/base/addColorModeVars.d.ts.map +1 -0
- package/dist/tailwind/base/addColorModeVars.js +18 -0
- package/dist/tailwind/base/addColorModeVars.js.map +1 -0
- package/dist/tailwind/base/addColorModeVarsV2.cjs +40 -0
- package/dist/tailwind/base/addColorModeVarsV2.d.cts +11 -0
- package/dist/tailwind/base/addColorModeVarsV2.d.cts.map +1 -0
- package/dist/tailwind/base/addColorModeVarsV2.d.ts +11 -0
- package/dist/tailwind/base/addColorModeVarsV2.d.ts.map +1 -0
- package/dist/tailwind/base/addColorModeVarsV2.js +41 -0
- package/dist/tailwind/base/addColorModeVarsV2.js.map +1 -0
- package/dist/tailwind/base/addFontFaceDeclarations.cjs +11 -0
- package/dist/tailwind/base/addFontFaceDeclarations.d.cts +11 -0
- package/dist/tailwind/base/addFontFaceDeclarations.d.cts.map +1 -0
- package/dist/tailwind/base/addFontFaceDeclarations.d.ts +11 -0
- package/dist/tailwind/base/addFontFaceDeclarations.d.ts.map +1 -0
- package/dist/tailwind/base/addFontFaceDeclarations.js +12 -0
- package/dist/tailwind/base/addFontFaceDeclarations.js.map +1 -0
- package/dist/tailwind/base/addFontVars.cjs +10 -0
- package/dist/tailwind/base/addFontVars.d.cts +11 -0
- package/dist/tailwind/base/addFontVars.d.cts.map +1 -0
- package/dist/tailwind/base/addFontVars.d.ts +11 -0
- package/dist/tailwind/base/addFontVars.d.ts.map +1 -0
- package/dist/tailwind/base/addFontVars.js +11 -0
- package/dist/tailwind/base/addFontVars.js.map +1 -0
- package/dist/tailwind/base/addMotionVars.cjs +10 -0
- package/dist/tailwind/base/addMotionVars.d.cts +11 -0
- package/dist/tailwind/base/addMotionVars.d.cts.map +1 -0
- package/dist/tailwind/base/addMotionVars.d.ts +11 -0
- package/dist/tailwind/base/addMotionVars.d.ts.map +1 -0
- package/dist/tailwind/base/addMotionVars.js +11 -0
- package/dist/tailwind/base/addMotionVars.js.map +1 -0
- package/dist/tailwind/base/addScaleModeVars.cjs +22 -0
- package/dist/tailwind/base/addScaleModeVars.d.cts +11 -0
- package/dist/tailwind/base/addScaleModeVars.d.cts.map +1 -0
- package/dist/tailwind/base/addScaleModeVars.d.ts +11 -0
- package/dist/tailwind/base/addScaleModeVars.d.ts.map +1 -0
- package/dist/tailwind/base/addScaleModeVars.js +23 -0
- package/dist/tailwind/base/addScaleModeVars.js.map +1 -0
- package/dist/tailwind/base/types.cjs +1 -0
- package/dist/tailwind/base/types.d.cts +12 -0
- package/dist/tailwind/base/types.d.cts.map +1 -0
- package/dist/tailwind/base/types.d.ts +12 -0
- package/dist/tailwind/base/types.d.ts.map +1 -0
- package/dist/tailwind/base/types.js +1 -0
- package/dist/tailwind/components/getButtonStyles.cjs +166 -0
- package/dist/tailwind/components/getButtonStyles.d.cts +10 -0
- package/dist/tailwind/components/getButtonStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getButtonStyles.d.ts +10 -0
- package/dist/tailwind/components/getButtonStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getButtonStyles.js +165 -0
- package/dist/tailwind/components/getButtonStyles.js.map +1 -0
- package/dist/tailwind/components/getFocusRingStyles.cjs +29 -0
- package/dist/tailwind/components/getFocusRingStyles.d.cts +15 -0
- package/dist/tailwind/components/getFocusRingStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getFocusRingStyles.d.ts +15 -0
- package/dist/tailwind/components/getFocusRingStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getFocusRingStyles.js +30 -0
- package/dist/tailwind/components/getFocusRingStyles.js.map +1 -0
- package/dist/tailwind/components/getGroupedTextStyles.cjs +18 -0
- package/dist/tailwind/components/getGroupedTextStyles.d.cts +14 -0
- package/dist/tailwind/components/getGroupedTextStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getGroupedTextStyles.d.ts +14 -0
- package/dist/tailwind/components/getGroupedTextStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getGroupedTextStyles.js +18 -0
- package/dist/tailwind/components/getGroupedTextStyles.js.map +1 -0
- package/dist/tailwind/components/getHitTargetStyles.cjs +22 -0
- package/dist/tailwind/components/getHitTargetStyles.d.cts +8 -0
- package/dist/tailwind/components/getHitTargetStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getHitTargetStyles.d.ts +8 -0
- package/dist/tailwind/components/getHitTargetStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getHitTargetStyles.js +21 -0
- package/dist/tailwind/components/getHitTargetStyles.js.map +1 -0
- package/dist/tailwind/components/getIconButtonStyles.cjs +39 -0
- package/dist/tailwind/components/getIconButtonStyles.d.cts +11 -0
- package/dist/tailwind/components/getIconButtonStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getIconButtonStyles.d.ts +11 -0
- package/dist/tailwind/components/getIconButtonStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getIconButtonStyles.js +39 -0
- package/dist/tailwind/components/getIconButtonStyles.js.map +1 -0
- package/dist/tailwind/components/getIconStyles.cjs +15 -0
- package/dist/tailwind/components/getIconStyles.d.cts +11 -0
- package/dist/tailwind/components/getIconStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getIconStyles.d.ts +11 -0
- package/dist/tailwind/components/getIconStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getIconStyles.js +15 -0
- package/dist/tailwind/components/getIconStyles.js.map +1 -0
- package/dist/tailwind/components/getInputStyles.cjs +16 -0
- package/dist/tailwind/components/getInputStyles.d.cts +11 -0
- package/dist/tailwind/components/getInputStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getInputStyles.d.ts +11 -0
- package/dist/tailwind/components/getInputStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getInputStyles.js +16 -0
- package/dist/tailwind/components/getInputStyles.js.map +1 -0
- package/dist/tailwind/components/getResponsiveTextStyles.cjs +71 -0
- package/dist/tailwind/components/getResponsiveTextStyles.d.cts +35 -0
- package/dist/tailwind/components/getResponsiveTextStyles.d.cts.map +1 -0
- package/dist/tailwind/components/getResponsiveTextStyles.d.ts +35 -0
- package/dist/tailwind/components/getResponsiveTextStyles.d.ts.map +1 -0
- package/dist/tailwind/components/getResponsiveTextStyles.js +66 -0
- package/dist/tailwind/components/getResponsiveTextStyles.js.map +1 -0
- package/dist/tailwind/components/types.cjs +1 -0
- package/dist/tailwind/components/types.d.cts +10 -0
- package/dist/tailwind/components/types.d.cts.map +1 -0
- package/dist/tailwind/components/types.d.ts +10 -0
- package/dist/tailwind/components/types.d.ts.map +1 -0
- package/dist/tailwind/components/types.js +1 -0
- package/dist/tailwind/components/utils.cjs +45 -0
- package/dist/tailwind/components/utils.d.cts +19 -0
- package/dist/tailwind/components/utils.d.cts.map +1 -0
- package/dist/tailwind/components/utils.d.ts +19 -0
- package/dist/tailwind/components/utils.d.ts.map +1 -0
- package/dist/tailwind/components/utils.js +41 -0
- package/dist/tailwind/components/utils.js.map +1 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.cjs +68 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.d.cts +20 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.d.cts.map +1 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.d.ts +20 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.d.ts.map +1 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.js +68 -0
- package/dist/tailwind/defaultTailwindThemeAsUdsConfig.js.map +1 -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 +15 -0
- package/dist/tailwind/postcss.config.js.map +1 -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 +19 -0
- package/dist/tailwind/tailwind.config.d.cts.map +1 -0
- package/dist/tailwind/tailwind.config.d.ts +20 -0
- package/dist/tailwind/tailwind.config.d.ts.map +1 -0
- package/dist/tailwind/tailwind.config.js +32 -0
- package/dist/tailwind/tailwind.config.js.map +1 -0
- package/dist/tailwind/tailwind.d.cjs +1 -0
- package/dist/tailwind/tailwind.d.cts +7 -0
- package/dist/tailwind/tailwind.d.cts.map +1 -0
- package/dist/tailwind/tailwind.d.ts +7 -0
- package/dist/tailwind/tailwind.d.ts.map +1 -0
- package/dist/tailwind/tailwindPlugin.cjs +303 -0
- package/dist/tailwind/tailwindPlugin.d.cts +62 -0
- package/dist/tailwind/tailwindPlugin.d.cts.map +1 -0
- package/dist/tailwind/tailwindPlugin.d.ts +62 -0
- package/dist/tailwind/tailwindPlugin.d.ts.map +1 -0
- package/dist/tailwind/tailwindPlugin.js +296 -0
- package/dist/tailwind/tailwindPlugin.js.map +1 -0
- package/dist/tailwind/theme/getFontFamilyTheme.cjs +24 -0
- package/dist/tailwind/theme/getFontFamilyTheme.d.cts +7 -0
- package/dist/tailwind/theme/getFontFamilyTheme.d.cts.map +1 -0
- package/dist/tailwind/theme/getFontFamilyTheme.d.ts +7 -0
- package/dist/tailwind/theme/getFontFamilyTheme.d.ts.map +1 -0
- package/dist/tailwind/theme/getFontFamilyTheme.js +24 -0
- package/dist/tailwind/theme/getFontFamilyTheme.js.map +1 -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 +18 -0
- package/dist/tailwind/utils/addFontsPlugin.d.cts.map +1 -0
- package/dist/tailwind/utils/addFontsPlugin.d.ts +18 -0
- package/dist/tailwind/utils/addFontsPlugin.d.ts.map +1 -0
- package/dist/tailwind/utils/addFontsPlugin.js +14 -0
- package/dist/tailwind/utils/addFontsPlugin.js.map +1 -0
- package/dist/tailwind/utils/getColorModeStyles.cjs +22 -0
- package/dist/tailwind/utils/getColorModeStyles.d.cts +18 -0
- package/dist/tailwind/utils/getColorModeStyles.d.cts.map +1 -0
- package/dist/tailwind/utils/getColorModeStyles.d.ts +18 -0
- package/dist/tailwind/utils/getColorModeStyles.d.ts.map +1 -0
- package/dist/tailwind/utils/getColorModeStyles.js +22 -0
- package/dist/tailwind/utils/getColorModeStyles.js.map +1 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.cjs +20 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.d.cts +12 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.d.cts.map +1 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.d.ts +12 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.d.ts.map +1 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.js +21 -0
- package/dist/tailwind/utils/getFontFaceDeclarations.js.map +1 -0
- package/dist/tailwind/utils/getFontStyles.cjs +41 -0
- package/dist/tailwind/utils/getFontStyles.d.cts +25 -0
- package/dist/tailwind/utils/getFontStyles.d.cts.map +1 -0
- package/dist/tailwind/utils/getFontStyles.d.ts +25 -0
- package/dist/tailwind/utils/getFontStyles.d.ts.map +1 -0
- package/dist/tailwind/utils/getFontStyles.js +42 -0
- package/dist/tailwind/utils/getFontStyles.js.map +1 -0
- package/dist/tailwind/utils/getMotionStyles.cjs +38 -0
- package/dist/tailwind/utils/getMotionStyles.d.cts +25 -0
- package/dist/tailwind/utils/getMotionStyles.d.cts.map +1 -0
- package/dist/tailwind/utils/getMotionStyles.d.ts +25 -0
- package/dist/tailwind/utils/getMotionStyles.d.ts.map +1 -0
- package/dist/tailwind/utils/getMotionStyles.js +38 -0
- package/dist/tailwind/utils/getMotionStyles.js.map +1 -0
- package/dist/tailwind/utils/getScaleModeStyles.cjs +25 -0
- package/dist/tailwind/utils/getScaleModeStyles.d.cts +29 -0
- package/dist/tailwind/utils/getScaleModeStyles.d.cts.map +1 -0
- package/dist/tailwind/utils/getScaleModeStyles.d.ts +29 -0
- package/dist/tailwind/utils/getScaleModeStyles.d.ts.map +1 -0
- package/dist/tailwind/utils/getScaleModeStyles.js +25 -0
- package/dist/tailwind/utils/getScaleModeStyles.js.map +1 -0
- package/dist/tailwind/utils/getShadowPresetValues.cjs +81 -0
- package/dist/tailwind/utils/getShadowPresetValues.d.cts +57 -0
- package/dist/tailwind/utils/getShadowPresetValues.d.cts.map +1 -0
- package/dist/tailwind/utils/getShadowPresetValues.d.ts +57 -0
- package/dist/tailwind/utils/getShadowPresetValues.d.ts.map +1 -0
- package/dist/tailwind/utils/getShadowPresetValues.js +80 -0
- package/dist/tailwind/utils/getShadowPresetValues.js.map +1 -0
- package/dist/tailwind/utils/getShadowStyles.cjs +18 -0
- package/dist/tailwind/utils/getShadowStyles.d.cts +17 -0
- package/dist/tailwind/utils/getShadowStyles.d.cts.map +1 -0
- package/dist/tailwind/utils/getShadowStyles.d.ts +17 -0
- package/dist/tailwind/utils/getShadowStyles.d.ts.map +1 -0
- package/dist/tailwind/utils/getShadowStyles.js +19 -0
- package/dist/tailwind/utils/getShadowStyles.js.map +1 -0
- package/dist/tailwind/utils/getShadowVars.cjs +26 -0
- package/dist/tailwind/utils/getShadowVars.d.cts +8 -0
- package/dist/tailwind/utils/getShadowVars.d.cts.map +1 -0
- package/dist/tailwind/utils/getShadowVars.d.ts +8 -0
- package/dist/tailwind/utils/getShadowVars.d.ts.map +1 -0
- package/dist/tailwind/utils/getShadowVars.js +27 -0
- package/dist/tailwind/utils/getShadowVars.js.map +1 -0
- package/dist/tailwind/utils/index.cjs +22 -0
- package/dist/tailwind/utils/index.d.cts +10 -0
- package/dist/tailwind/utils/index.d.ts +10 -0
- package/dist/tailwind/utils/index.js +12 -0
- package/dist/tokens/automation/configs/avatar.cjs +310 -0
- package/dist/tokens/automation/configs/avatar.d.cts +19 -0
- package/dist/tokens/automation/configs/avatar.d.cts.map +1 -0
- package/dist/tokens/automation/configs/avatar.d.ts +19 -0
- package/dist/tokens/automation/configs/avatar.d.ts.map +1 -0
- package/dist/tokens/automation/configs/avatar.js +310 -0
- package/dist/tokens/automation/configs/avatar.js.map +1 -0
- package/dist/tokens/automation/configs/badge.cjs +324 -0
- package/dist/tokens/automation/configs/badge.d.cts +15 -0
- package/dist/tokens/automation/configs/badge.d.cts.map +1 -0
- package/dist/tokens/automation/configs/badge.d.ts +15 -0
- package/dist/tokens/automation/configs/badge.d.ts.map +1 -0
- package/dist/tokens/automation/configs/badge.js +324 -0
- package/dist/tokens/automation/configs/badge.js.map +1 -0
- package/dist/tokens/automation/configs/checkbox.cjs +256 -0
- package/dist/tokens/automation/configs/checkbox.d.cts +15 -0
- package/dist/tokens/automation/configs/checkbox.d.cts.map +1 -0
- package/dist/tokens/automation/configs/checkbox.d.ts +15 -0
- package/dist/tokens/automation/configs/checkbox.d.ts.map +1 -0
- package/dist/tokens/automation/configs/checkbox.js +256 -0
- package/dist/tokens/automation/configs/checkbox.js.map +1 -0
- package/dist/tokens/automation/configs/chip.cjs +552 -0
- package/dist/tokens/automation/configs/chip.d.cts +19 -0
- package/dist/tokens/automation/configs/chip.d.cts.map +1 -0
- package/dist/tokens/automation/configs/chip.d.ts +19 -0
- package/dist/tokens/automation/configs/chip.d.ts.map +1 -0
- package/dist/tokens/automation/configs/chip.js +552 -0
- package/dist/tokens/automation/configs/chip.js.map +1 -0
- package/dist/tokens/automation/configs/divider.cjs +119 -0
- package/dist/tokens/automation/configs/divider.d.cts +14 -0
- package/dist/tokens/automation/configs/divider.d.cts.map +1 -0
- package/dist/tokens/automation/configs/divider.d.ts +14 -0
- package/dist/tokens/automation/configs/divider.d.ts.map +1 -0
- package/dist/tokens/automation/configs/divider.js +119 -0
- package/dist/tokens/automation/configs/divider.js.map +1 -0
- package/dist/tokens/automation/configs/index.cjs +22 -0
- package/dist/tokens/automation/configs/index.d.cts +11 -0
- package/dist/tokens/automation/configs/index.d.ts +11 -0
- package/dist/tokens/automation/configs/index.js +13 -0
- package/dist/tokens/automation/configs/input.cjs +473 -0
- package/dist/tokens/automation/configs/input.d.cts +15 -0
- package/dist/tokens/automation/configs/input.d.cts.map +1 -0
- package/dist/tokens/automation/configs/input.d.ts +15 -0
- package/dist/tokens/automation/configs/input.d.ts.map +1 -0
- package/dist/tokens/automation/configs/input.js +473 -0
- package/dist/tokens/automation/configs/input.js.map +1 -0
- package/dist/tokens/automation/configs/link.cjs +194 -0
- package/dist/tokens/automation/configs/link.d.cts +15 -0
- package/dist/tokens/automation/configs/link.d.cts.map +1 -0
- package/dist/tokens/automation/configs/link.d.ts +15 -0
- package/dist/tokens/automation/configs/link.d.ts.map +1 -0
- package/dist/tokens/automation/configs/link.js +194 -0
- package/dist/tokens/automation/configs/link.js.map +1 -0
- package/dist/tokens/automation/configs/menu.cjs +309 -0
- package/dist/tokens/automation/configs/menu.d.cts +19 -0
- package/dist/tokens/automation/configs/menu.d.cts.map +1 -0
- package/dist/tokens/automation/configs/menu.d.ts +19 -0
- package/dist/tokens/automation/configs/menu.d.ts.map +1 -0
- package/dist/tokens/automation/configs/menu.js +309 -0
- package/dist/tokens/automation/configs/menu.js.map +1 -0
- package/dist/tokens/automation/configs/radio.cjs +228 -0
- package/dist/tokens/automation/configs/radio.d.cts +15 -0
- package/dist/tokens/automation/configs/radio.d.cts.map +1 -0
- package/dist/tokens/automation/configs/radio.d.ts +15 -0
- package/dist/tokens/automation/configs/radio.d.ts.map +1 -0
- package/dist/tokens/automation/configs/radio.js +228 -0
- package/dist/tokens/automation/configs/radio.js.map +1 -0
- package/dist/tokens/automation/configs/switch.cjs +296 -0
- package/dist/tokens/automation/configs/switch.d.cts +15 -0
- package/dist/tokens/automation/configs/switch.d.cts.map +1 -0
- package/dist/tokens/automation/configs/switch.d.ts +15 -0
- package/dist/tokens/automation/configs/switch.d.ts.map +1 -0
- package/dist/tokens/automation/configs/switch.js +296 -0
- package/dist/tokens/automation/configs/switch.js.map +1 -0
- package/dist/tokens/automation/index.cjs +45 -0
- package/dist/tokens/automation/index.d.cts +27 -0
- package/dist/tokens/automation/index.d.ts +27 -0
- package/dist/tokens/automation/index.js +16 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.cjs +8 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.d.cts +5 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.d.cts.map +1 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.d.ts +5 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.d.ts.map +1 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.js +9 -0
- package/dist/tokens/automation/mapTextVariantFixtureToValue.js.map +1 -0
- package/dist/tokens/automation/properties.cjs +287 -1
- package/dist/tokens/automation/properties.d.cts +88 -7
- package/dist/tokens/automation/properties.d.cts.map +1 -0
- package/dist/tokens/automation/properties.d.ts +88 -7
- package/dist/tokens/automation/properties.d.ts.map +1 -0
- package/dist/tokens/automation/properties.js +288 -1
- package/dist/tokens/automation/properties.js.map +1 -0
- package/dist/tokens/automation/types/ComponentConfig.cjs +1 -0
- package/dist/tokens/automation/types/ComponentConfig.d.cts +55 -0
- package/dist/tokens/automation/types/ComponentConfig.d.cts.map +1 -0
- package/dist/tokens/automation/types/ComponentConfig.d.ts +55 -0
- package/dist/tokens/automation/types/ComponentConfig.d.ts.map +1 -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 +36 -0
- package/dist/tokens/automation/types/ComponentStyles.d.cts.map +1 -0
- package/dist/tokens/automation/types/ComponentStyles.d.ts +36 -0
- package/dist/tokens/automation/types/ComponentStyles.d.ts.map +1 -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 +8 -0
- package/dist/tokens/automation/utils/cartesianProduct.d.cts.map +1 -0
- package/dist/tokens/automation/utils/cartesianProduct.d.ts +8 -0
- package/dist/tokens/automation/utils/cartesianProduct.d.ts.map +1 -0
- package/dist/tokens/automation/utils/cartesianProduct.js +7 -0
- package/dist/tokens/automation/utils/cartesianProduct.js.map +1 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.cjs +21 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.d.cts +17 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.d.cts.map +1 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.d.ts +17 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.d.ts.map +1 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.js +22 -0
- package/dist/tokens/automation/utils/coalesceConfigVariant.js.map +1 -0
- package/dist/tokens/automation/utils/defaults.cjs +15 -0
- package/dist/tokens/automation/utils/defaults.d.cts +9 -0
- package/dist/tokens/automation/utils/defaults.d.cts.map +1 -0
- package/dist/tokens/automation/utils/defaults.d.ts +9 -0
- package/dist/tokens/automation/utils/defaults.d.ts.map +1 -0
- package/dist/tokens/automation/utils/defaults.js +14 -0
- package/dist/tokens/automation/utils/defaults.js.map +1 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.cjs +26 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.d.cts +11 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.d.cts.map +1 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.d.ts +11 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.d.ts.map +1 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.js +26 -0
- package/dist/tokens/automation/utils/generateKeyFromFlatConfigPath.js.map +1 -0
- package/dist/tokens/automation/utils/generateSchemaKey.cjs +14 -0
- package/dist/tokens/automation/utils/generateSchemaKey.d.cts +19 -0
- package/dist/tokens/automation/utils/generateSchemaKey.d.cts.map +1 -0
- package/dist/tokens/automation/utils/generateSchemaKey.d.ts +19 -0
- package/dist/tokens/automation/utils/generateSchemaKey.d.ts.map +1 -0
- package/dist/tokens/automation/utils/generateSchemaKey.js +14 -0
- package/dist/tokens/automation/utils/generateSchemaKey.js.map +1 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.cjs +17 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.d.cts +9 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.d.cts.map +1 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.d.ts +9 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.d.ts.map +1 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.js +18 -0
- package/dist/tokens/automation/utils/getConfigComponentVariant.js.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.cjs +26 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.d.cts +10 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.d.cts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.d.ts +10 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.d.ts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.js +24 -0
- package/dist/tokens/automation/utils/getConfigVariantComponentStatesMatrix.js.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.cjs +24 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts +20 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.cts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts +20 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.d.ts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.js +25 -0
- package/dist/tokens/automation/utils/getConfigVariantProperties.js.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.cjs +34 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.d.cts +12 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.d.cts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.d.ts +12 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.d.ts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.js +35 -0
- package/dist/tokens/automation/utils/getConfigVariantPseudoStates.js.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariants.cjs +39 -0
- package/dist/tokens/automation/utils/getConfigVariants.d.cts +20 -0
- package/dist/tokens/automation/utils/getConfigVariants.d.cts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariants.d.ts +20 -0
- package/dist/tokens/automation/utils/getConfigVariants.d.ts.map +1 -0
- package/dist/tokens/automation/utils/getConfigVariants.js +38 -0
- package/dist/tokens/automation/utils/getConfigVariants.js.map +1 -0
- package/dist/tokens/automation/utils/index.cjs +516 -0
- package/dist/tokens/automation/utils/index.d.cts +146 -0
- package/dist/tokens/automation/utils/index.d.cts.map +1 -0
- package/dist/tokens/automation/utils/index.d.ts +146 -0
- package/dist/tokens/automation/utils/index.d.ts.map +1 -0
- package/dist/tokens/automation/utils/index.js +483 -0
- package/dist/tokens/automation/utils/index.js.map +1 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.cjs +20 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.d.cts +5 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.d.cts.map +1 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.d.ts +5 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.d.ts.map +1 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.js +21 -0
- package/dist/tokens/automation/utils/mapColorFixtureToValue.js.map +1 -0
- package/dist/tokens/automation/utils/subcomponents.cjs +11 -0
- package/dist/tokens/automation/utils/subcomponents.d.cts +9 -0
- package/dist/tokens/automation/utils/subcomponents.d.cts.map +1 -0
- package/dist/tokens/automation/utils/subcomponents.d.ts +9 -0
- package/dist/tokens/automation/utils/subcomponents.d.ts.map +1 -0
- package/dist/tokens/automation/utils/subcomponents.js +11 -0
- package/dist/tokens/automation/utils/subcomponents.js.map +1 -0
- package/dist/tokens/automation/utils/variableData.cjs +32 -0
- package/dist/tokens/automation/utils/variableData.d.cts +19 -0
- package/dist/tokens/automation/utils/variableData.d.cts.map +1 -0
- package/dist/tokens/automation/utils/variableData.d.ts +19 -0
- package/dist/tokens/automation/utils/variableData.d.ts.map +1 -0
- package/dist/tokens/automation/utils/variableData.js +29 -0
- package/dist/tokens/automation/utils/variableData.js.map +1 -0
- package/dist/tokens/automation/utils/variantConfigGuards.cjs +9 -0
- package/dist/tokens/automation/utils/variantConfigGuards.d.cts +13 -0
- package/dist/tokens/automation/utils/variantConfigGuards.d.cts.map +1 -0
- package/dist/tokens/automation/utils/variantConfigGuards.d.ts +13 -0
- package/dist/tokens/automation/utils/variantConfigGuards.d.ts.map +1 -0
- package/dist/tokens/automation/utils/variantConfigGuards.js +8 -0
- package/dist/tokens/automation/utils/variantConfigGuards.js.map +1 -0
- package/dist/tokens/configs/borderRadius.cjs +25 -0
- package/dist/tokens/configs/borderRadius.d.cts +8 -0
- package/dist/tokens/configs/borderRadius.d.cts.map +1 -0
- package/dist/tokens/configs/borderRadius.d.ts +8 -0
- package/dist/tokens/configs/borderRadius.d.ts.map +1 -0
- package/dist/tokens/configs/borderRadius.js +24 -0
- package/dist/tokens/configs/borderRadius.js.map +1 -0
- package/dist/tokens/configs/borderWidth.cjs +19 -0
- package/dist/tokens/configs/borderWidth.d.cts +8 -0
- package/dist/tokens/configs/borderWidth.d.cts.map +1 -0
- package/dist/tokens/configs/borderWidth.d.ts +8 -0
- package/dist/tokens/configs/borderWidth.d.ts.map +1 -0
- package/dist/tokens/configs/borderWidth.js +18 -0
- package/dist/tokens/configs/borderWidth.js.map +1 -0
- package/dist/tokens/configs/button.cjs +948 -0
- package/dist/tokens/configs/button.d.cts +8 -0
- package/dist/tokens/configs/button.d.cts.map +1 -0
- package/dist/tokens/configs/button.d.ts +8 -0
- package/dist/tokens/configs/button.d.ts.map +1 -0
- package/dist/tokens/configs/button.js +947 -0
- package/dist/tokens/configs/button.js.map +1 -0
- package/dist/tokens/configs/colorMode.cjs +18 -0
- package/dist/tokens/configs/colorMode.d.cts +7 -0
- package/dist/tokens/configs/colorMode.d.cts.map +1 -0
- package/dist/tokens/configs/colorMode.d.ts +7 -0
- package/dist/tokens/configs/colorMode.d.ts.map +1 -0
- package/dist/tokens/configs/colorMode.js +19 -0
- package/dist/tokens/configs/colorMode.js.map +1 -0
- package/dist/tokens/configs/font.cjs +13 -0
- package/dist/tokens/configs/font.d.cts +7 -0
- package/dist/tokens/configs/font.d.cts.map +1 -0
- package/dist/tokens/configs/font.d.ts +7 -0
- package/dist/tokens/configs/font.d.ts.map +1 -0
- package/dist/tokens/configs/font.js +13 -0
- package/dist/tokens/configs/font.js.map +1 -0
- package/dist/tokens/configs/iconButton.cjs +32 -0
- package/dist/tokens/configs/iconButton.d.cts +7 -0
- package/dist/tokens/configs/iconButton.d.cts.map +1 -0
- package/dist/tokens/configs/iconButton.d.ts +7 -0
- package/dist/tokens/configs/iconButton.d.ts.map +1 -0
- package/dist/tokens/configs/iconButton.js +33 -0
- package/dist/tokens/configs/iconButton.js.map +1 -0
- package/dist/tokens/configs/motion.cjs +137 -0
- package/dist/tokens/configs/motion.d.cts +43 -0
- package/dist/tokens/configs/motion.d.cts.map +1 -0
- package/dist/tokens/configs/motion.d.ts +43 -0
- package/dist/tokens/configs/motion.d.ts.map +1 -0
- package/dist/tokens/configs/motion.js +133 -0
- package/dist/tokens/configs/motion.js.map +1 -0
- package/dist/tokens/configs/palette.cjs +402 -0
- package/dist/tokens/configs/palette.d.cts +14 -0
- package/dist/tokens/configs/palette.d.cts.map +1 -0
- package/dist/tokens/configs/palette.d.ts +14 -0
- package/dist/tokens/configs/palette.d.ts.map +1 -0
- package/dist/tokens/configs/palette.js +400 -0
- package/dist/tokens/configs/palette.js.map +1 -0
- package/dist/tokens/configs/scaleMode.cjs +30 -0
- package/dist/tokens/configs/scaleMode.d.cts +7 -0
- package/dist/tokens/configs/scaleMode.d.cts.map +1 -0
- package/dist/tokens/configs/scaleMode.d.ts +7 -0
- package/dist/tokens/configs/scaleMode.d.ts.map +1 -0
- package/dist/tokens/configs/scaleMode.js +31 -0
- package/dist/tokens/configs/scaleMode.js.map +1 -0
- package/dist/tokens/configs/shadow.cjs +332 -0
- package/dist/tokens/configs/shadow.d.cts +7 -0
- package/dist/tokens/configs/shadow.d.cts.map +1 -0
- package/dist/tokens/configs/shadow.d.ts +7 -0
- package/dist/tokens/configs/shadow.d.ts.map +1 -0
- package/dist/tokens/configs/shadow.js +332 -0
- package/dist/tokens/configs/shadow.js.map +1 -0
- package/dist/tokens/configs/sizes.cjs +26 -0
- package/dist/tokens/configs/sizes.d.cts +11 -0
- package/dist/tokens/configs/sizes.d.cts.map +1 -0
- package/dist/tokens/configs/sizes.d.ts +11 -0
- package/dist/tokens/configs/sizes.d.ts.map +1 -0
- package/dist/tokens/configs/sizes.js +22 -0
- package/dist/tokens/configs/sizes.js.map +1 -0
- package/dist/tokens/configs/spectrum.cjs +731 -0
- package/dist/tokens/configs/spectrum.d.cts +8 -0
- package/dist/tokens/configs/spectrum.d.cts.map +1 -0
- package/dist/tokens/configs/spectrum.d.ts +8 -0
- package/dist/tokens/configs/spectrum.d.ts.map +1 -0
- package/dist/tokens/configs/spectrum.js +730 -0
- package/dist/tokens/configs/spectrum.js.map +1 -0
- package/dist/tokens/configs/typography.cjs +411 -0
- package/dist/tokens/configs/typography.d.cts +365 -0
- package/dist/tokens/configs/typography.d.cts.map +1 -0
- package/dist/tokens/configs/typography.d.ts +365 -0
- package/dist/tokens/configs/typography.d.ts.map +1 -0
- package/dist/tokens/configs/typography.js +399 -0
- package/dist/tokens/configs/typography.js.map +1 -0
- package/dist/tokens/configs/yosConfig.cjs +19103 -0
- package/dist/tokens/configs/yosConfig.d.cts +19811 -0
- package/dist/tokens/configs/yosConfig.d.cts.map +1 -0
- package/dist/tokens/configs/yosConfig.d.ts +19811 -0
- package/dist/tokens/configs/yosConfig.d.ts.map +1 -0
- package/dist/tokens/configs/yosConfig.js +19103 -0
- package/dist/tokens/configs/yosConfig.js.map +1 -0
- package/dist/tokens/consts/buttonMotionTokens.cjs +82 -0
- package/dist/tokens/consts/buttonMotionTokens.d.cts +85 -0
- package/dist/tokens/consts/buttonMotionTokens.d.cts.map +1 -0
- package/dist/tokens/consts/buttonMotionTokens.d.ts +85 -0
- package/dist/tokens/consts/buttonMotionTokens.d.ts.map +1 -0
- package/dist/tokens/consts/buttonMotionTokens.js +78 -0
- package/dist/tokens/consts/buttonMotionTokens.js.map +1 -0
- package/dist/tokens/consts/cssTokens.cjs +110 -0
- package/dist/tokens/consts/cssTokens.d.cts +73 -0
- package/dist/tokens/consts/cssTokens.d.cts.map +1 -0
- package/dist/tokens/consts/cssTokens.d.ts +73 -0
- package/dist/tokens/consts/cssTokens.d.ts.map +1 -0
- package/dist/tokens/consts/cssTokens.js +79 -0
- package/dist/tokens/consts/cssTokens.js.map +1 -0
- package/dist/tokens/consts/defaultModes.cjs +17 -0
- package/dist/tokens/consts/defaultModes.d.cts +12 -0
- package/dist/tokens/consts/defaultModes.d.cts.map +1 -0
- package/dist/tokens/consts/defaultModes.d.ts +12 -0
- package/dist/tokens/consts/defaultModes.d.ts.map +1 -0
- package/dist/tokens/consts/defaultModes.js +12 -0
- package/dist/tokens/consts/defaultModes.js.map +1 -0
- package/dist/tokens/consts/fontDeclarationsMap.cjs +652 -0
- package/dist/tokens/consts/fontDeclarationsMap.d.cts +538 -0
- package/dist/tokens/consts/fontDeclarationsMap.d.cts.map +1 -0
- package/dist/tokens/consts/fontDeclarationsMap.d.ts +538 -0
- package/dist/tokens/consts/fontDeclarationsMap.d.ts.map +1 -0
- package/dist/tokens/consts/fontDeclarationsMap.js +652 -0
- package/dist/tokens/consts/fontDeclarationsMap.js.map +1 -0
- package/dist/tokens/index.cjs +107 -1
- package/dist/tokens/index.d.cts +41 -2020
- package/dist/tokens/index.d.ts +41 -2020
- package/dist/tokens/index.js +28 -1
- package/dist/tokens/parseButtonVariants.cjs +37 -0
- package/dist/tokens/parseButtonVariants.d.cts +24 -0
- package/dist/tokens/parseButtonVariants.d.cts.map +1 -0
- package/dist/tokens/parseButtonVariants.d.ts +24 -0
- package/dist/tokens/parseButtonVariants.d.ts.map +1 -0
- package/dist/tokens/parseButtonVariants.js +36 -0
- package/dist/tokens/parseButtonVariants.js.map +1 -0
- package/dist/tokens/parseTokens.cjs +73 -1
- package/dist/tokens/parseTokens.d.cts +20 -22
- package/dist/tokens/parseTokens.d.cts.map +1 -0
- package/dist/tokens/parseTokens.d.ts +20 -22
- package/dist/tokens/parseTokens.d.ts.map +1 -0
- package/dist/tokens/parseTokens.js +74 -1
- package/dist/tokens/parseTokens.js.map +1 -0
- package/dist/tokens/types.cjs +1 -0
- package/dist/tokens/types.d.cts +1076 -0
- package/dist/tokens/types.d.cts.map +1 -0
- package/dist/tokens/types.d.ts +1076 -0
- package/dist/tokens/types.d.ts.map +1 -0
- package/dist/tokens/types.js +1 -0
- package/dist/tokens/utils/entries.cjs +17 -0
- package/dist/tokens/utils/entries.d.cts +13 -0
- package/dist/tokens/utils/entries.d.cts.map +1 -0
- package/dist/tokens/utils/entries.d.ts +13 -0
- package/dist/tokens/utils/entries.d.ts.map +1 -0
- package/dist/tokens/utils/entries.js +17 -0
- package/dist/tokens/utils/entries.js.map +1 -0
- package/dist/tokens/utils/fromEntries.cjs +17 -0
- package/dist/tokens/utils/fromEntries.d.cts +13 -0
- package/dist/tokens/utils/fromEntries.d.cts.map +1 -0
- package/dist/tokens/utils/fromEntries.d.ts +13 -0
- package/dist/tokens/utils/fromEntries.d.ts.map +1 -0
- package/dist/tokens/utils/fromEntries.js +17 -0
- package/dist/tokens/utils/fromEntries.js.map +1 -0
- package/dist/tokens/utils/mapValues.cjs +12 -0
- package/dist/tokens/utils/mapValues.d.cts +6 -0
- package/dist/tokens/utils/mapValues.d.cts.map +1 -0
- package/dist/tokens/utils/mapValues.d.ts +6 -0
- package/dist/tokens/utils/mapValues.d.ts.map +1 -0
- package/dist/tokens/utils/mapValues.js +12 -0
- package/dist/tokens/utils/mapValues.js.map +1 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.cts +7 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/utils/assertUnreachable.cjs +9 -0
- package/dist/utils/assertUnreachable.d.cts +5 -0
- package/dist/utils/assertUnreachable.d.cts.map +1 -0
- package/dist/utils/assertUnreachable.d.ts +5 -0
- package/dist/utils/assertUnreachable.d.ts.map +1 -0
- package/dist/utils/assertUnreachable.js +9 -0
- package/dist/utils/assertUnreachable.js.map +1 -0
- package/dist/utils/composeRefs.cjs +21 -0
- package/dist/utils/composeRefs.d.cts +10 -0
- package/dist/utils/composeRefs.d.cts.map +1 -0
- package/dist/utils/composeRefs.d.ts +10 -0
- package/dist/utils/composeRefs.d.ts.map +1 -0
- package/dist/utils/composeRefs.js +21 -0
- package/dist/utils/composeRefs.js.map +1 -0
- package/dist/utils/createSlot.cjs +78 -0
- package/dist/utils/createSlot.d.cts +7 -0
- package/dist/utils/createSlot.d.cts.map +1 -0
- package/dist/utils/createSlot.d.ts +7 -0
- package/dist/utils/createSlot.d.ts.map +1 -0
- package/dist/utils/createSlot.js +78 -0
- package/dist/utils/createSlot.js.map +1 -0
- package/dist/utils/entries.cjs +9 -0
- package/dist/utils/entries.d.cts +5 -0
- package/dist/utils/entries.d.cts.map +1 -0
- package/dist/utils/entries.d.ts +5 -0
- package/dist/utils/entries.d.ts.map +1 -0
- package/dist/utils/entries.js +9 -0
- package/dist/utils/entries.js.map +1 -0
- package/dist/utils/falsyToString.cjs +9 -0
- package/dist/utils/falsyToString.d.cts +5 -0
- package/dist/utils/falsyToString.d.cts.map +1 -0
- package/dist/utils/falsyToString.d.ts +5 -0
- package/dist/utils/falsyToString.d.ts.map +1 -0
- package/dist/utils/falsyToString.js +9 -0
- package/dist/utils/falsyToString.js.map +1 -0
- package/dist/utils/getMotionVar.cjs +15 -0
- package/dist/utils/getMotionVar.d.cts +17 -0
- package/dist/utils/getMotionVar.d.cts.map +1 -0
- package/dist/utils/getMotionVar.d.ts +17 -0
- package/dist/utils/getMotionVar.d.ts.map +1 -0
- package/dist/utils/getMotionVar.js +16 -0
- package/dist/utils/getMotionVar.js.map +1 -0
- package/dist/utils/intersperse.cjs +48 -0
- package/dist/utils/intersperse.d.cts +34 -0
- package/dist/utils/intersperse.d.cts.map +1 -0
- package/dist/utils/intersperse.d.ts +34 -0
- package/dist/utils/intersperse.d.ts.map +1 -0
- package/dist/utils/intersperse.js +46 -0
- package/dist/utils/intersperse.js.map +1 -0
- package/dist/utils/mapValues.cjs +12 -0
- package/dist/utils/mapValues.d.cts +6 -0
- package/dist/utils/mapValues.d.cts.map +1 -0
- package/dist/utils/mapValues.d.ts +6 -0
- package/dist/utils/mapValues.d.ts.map +1 -0
- package/dist/utils/mapValues.js +12 -0
- package/dist/utils/mapValues.js.map +1 -0
- package/dist/utils/mergeSlotProps.cjs +29 -0
- package/dist/utils/mergeSlotProps.d.cts +6 -0
- package/dist/utils/mergeSlotProps.d.cts.map +1 -0
- package/dist/utils/mergeSlotProps.d.ts +6 -0
- package/dist/utils/mergeSlotProps.d.ts.map +1 -0
- package/dist/utils/mergeSlotProps.js +29 -0
- package/dist/utils/mergeSlotProps.js.map +1 -0
- package/package.json +80 -35
- package/src/components/Box.tsx +181 -0
- package/src/components/Divider/Divider.tsx +44 -0
- package/src/components/Divider/DividerCore.tsx +101 -0
- package/src/components/Divider/DividerInternal.tsx +56 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/FormLabel.tsx +66 -0
- package/src/components/HStack.tsx +53 -0
- package/src/components/Icon.tsx +82 -0
- package/src/components/IconSlot.tsx +82 -0
- package/src/components/Image.tsx +162 -0
- package/src/components/Link.tsx +134 -0
- package/src/components/Text.tsx +272 -0
- package/src/components/VStack.tsx +53 -0
- package/src/components/client/AnimateHeightChange.tsx +50 -0
- package/src/components/client/Avatar/Avatar.tsx +31 -0
- package/src/components/client/Avatar/AvatarIcon.tsx +103 -0
- package/src/components/client/Avatar/AvatarImage.tsx +147 -0
- package/src/components/client/Avatar/AvatarText.tsx +88 -0
- package/src/components/client/Avatar/index.ts +4 -0
- package/src/components/client/Avatar/utils.ts +105 -0
- package/src/components/client/Badge.tsx +133 -0
- package/src/components/client/Button.tsx +312 -0
- package/src/components/client/Checkbox.tsx +377 -0
- package/src/components/client/Chip/Chip.tsx +81 -0
- package/src/components/client/Chip/ChipBase.tsx +151 -0
- package/src/components/client/Chip/ChipButton.tsx +54 -0
- package/src/components/client/Chip/ChipDismissible.tsx +90 -0
- package/src/components/client/Chip/ChipLink.tsx +60 -0
- package/src/components/client/Chip/ChipToggle.tsx +79 -0
- package/src/components/client/Chip/index.ts +5 -0
- package/src/components/client/IconButton.tsx +198 -0
- package/src/components/client/Input/Input.tsx +323 -0
- package/src/components/client/Input/InputHelpText.tsx +52 -0
- package/src/components/client/Input/InputHelpTextInternal.tsx +81 -0
- package/src/components/client/Input/index.ts +2 -0
- package/src/components/client/Menu/Menu.Content.tsx +391 -0
- package/src/components/client/Menu/Menu.Divider.tsx +102 -0
- package/src/components/client/Menu/Menu.Item.tsx +114 -0
- package/src/components/client/Menu/Menu.ItemBase.tsx +265 -0
- package/src/components/client/Menu/Menu.ItemCheckbox.tsx +197 -0
- package/src/components/client/Menu/Menu.Provider.tsx +154 -0
- package/src/components/client/Menu/Menu.Trigger.tsx +119 -0
- package/src/components/client/Menu/Menu.index.tsx +9 -0
- package/src/components/client/Menu/Menu.tsx +2 -0
- package/src/components/client/Menu/index.ts +7 -0
- package/src/components/client/Menu/utils/transformAriakitPlacement.ts +66 -0
- package/src/components/client/Pressable.tsx +194 -0
- package/src/components/client/Radio/Radio.tsx +351 -0
- package/src/components/client/Radio/RadioGroupProvider.tsx +122 -0
- package/src/components/client/Radio/RadioGroupStore.tsx +56 -0
- package/src/components/client/Radio/index.ts +2 -0
- package/src/components/client/Radio/useRadioGroup.ts +149 -0
- package/src/components/client/SpringMotionConfig.tsx +151 -0
- package/src/components/client/Switch.tsx +377 -0
- package/src/components/client/index.ts +30 -0
- package/src/components/client/motionFeatures/domAnimation.ts +2 -0
- package/src/components/client/motionFeatures/domMax.ts +2 -0
- package/src/components/experimental/Spinner.tsx +30 -0
- package/src/components/experimental/Table.mocks.tsx +38 -0
- package/src/components/experimental/Table.tsx +239 -0
- package/src/components/experimental/client/Accordion.tsx +77 -0
- package/src/components/experimental/client/AvoidMotionLibraryProvider.tsx +10 -0
- package/src/components/experimental/client/Modal.tsx +68 -0
- package/src/components/experimental/client/Popover.tsx +63 -0
- package/src/components/experimental/client/SwitchV2.tsx +343 -0
- package/src/components/experimental/client/Tabs.tsx +106 -0
- package/src/components/experimental/client/Toast.tsx +186 -0
- package/src/components/experimental/client/index.ts +15 -0
- package/src/components/experimental/index.ts +48 -0
- package/src/components/index.ts +41 -0
- package/src/defaultTokensConfig.ts +31 -0
- package/src/fixtures/index.ts +638 -0
- package/src/fixtures/macros/typesToConstants.ts +42 -0
- package/src/fixtures/utils/getScaleModeRamp.ts +48 -0
- package/src/fixtures/utils/getTailwindAsUdsColors.ts +115 -0
- package/src/flags.ts +45 -0
- package/src/hooks/useForkRef.ts +34 -0
- package/src/hooks/useNestedBorderRadius.ts +138 -0
- package/src/hooks/useRtl.ts +64 -0
- package/src/index.ts +4 -0
- package/src/providers/ColorModeProvider.tsx +21 -0
- package/src/providers/ScaleModeProvider.tsx +29 -0
- package/src/providers/ThemeProvider.tsx +26 -0
- package/src/styles/styler.ts +194 -0
- package/src/styles/stylerTypes.ts +81 -0
- package/src/styles/toast.css +0 -0
- package/src/styles/variants.ts +1351 -0
- package/src/tailwind/base/addColorModeVars.ts +23 -0
- package/src/tailwind/base/addColorModeVarsV2.ts +57 -0
- package/src/tailwind/base/addFontFaceDeclarations.ts +13 -0
- package/src/tailwind/base/addFontVars.ts +9 -0
- package/src/tailwind/base/addMotionVars.ts +9 -0
- package/src/tailwind/base/addScaleModeVars.ts +33 -0
- package/src/tailwind/base/types.ts +8 -0
- package/src/tailwind/components/getButtonStyles.ts +240 -0
- package/src/tailwind/components/getFocusRingStyles.ts +32 -0
- package/src/tailwind/components/getGroupedTextStyles.ts +29 -0
- package/src/tailwind/components/getHitTargetStyles.ts +23 -0
- package/src/tailwind/components/getIconButtonStyles.ts +49 -0
- package/src/tailwind/components/getIconStyles.ts +13 -0
- package/src/tailwind/components/getInputStyles.ts +20 -0
- package/src/tailwind/components/getResponsiveTextStyles.ts +161 -0
- package/src/tailwind/components/types.ts +14 -0
- package/src/tailwind/components/utils.ts +73 -0
- package/src/tailwind/defaultTailwindThemeAsUdsConfig.ts +78 -0
- package/src/tailwind/postcss.config.ts +6 -0
- package/src/tailwind/purger/index.ts +1 -0
- package/src/tailwind/tailwind.config.ts +50 -0
- package/src/tailwind/tailwind.d.ts +5 -0
- package/src/tailwind/tailwindPlugin.ts +724 -0
- package/src/tailwind/theme/getFontFamilyTheme.ts +28 -0
- package/src/tailwind/tsMorph.ts +1 -0
- package/src/tailwind/uds.css +3 -0
- package/src/tailwind/utils/addFontsPlugin.ts +17 -0
- package/src/tailwind/utils/getColorModeStyles.ts +21 -0
- package/src/tailwind/utils/getFontFaceDeclarations.ts +12 -0
- package/src/tailwind/utils/getFontStyles.ts +38 -0
- package/src/tailwind/utils/getMotionStyles.ts +35 -0
- package/src/tailwind/utils/getScaleModeStyles.ts +23 -0
- package/src/tailwind/utils/getShadowPresetValues.ts +133 -0
- package/src/tailwind/utils/getShadowStyles.ts +26 -0
- package/src/tailwind/utils/getShadowVars.ts +40 -0
- package/src/tailwind/utils/index.ts +9 -0
- package/src/tokens/automation/configs/avatar.ts +297 -0
- package/src/tokens/automation/configs/badge.ts +306 -0
- package/src/tokens/automation/configs/checkbox.ts +226 -0
- package/src/tokens/automation/configs/chip.ts +521 -0
- package/src/tokens/automation/configs/divider.ts +112 -0
- package/src/tokens/automation/configs/index.ts +10 -0
- package/src/tokens/automation/configs/input.ts +496 -0
- package/src/tokens/automation/configs/link.ts +183 -0
- package/src/tokens/automation/configs/menu.ts +344 -0
- package/src/tokens/automation/configs/radio.ts +225 -0
- package/src/tokens/automation/configs/switch.ts +323 -0
- package/src/tokens/automation/index.ts +5 -0
- package/src/tokens/automation/mapTextVariantFixtureToValue.ts +8 -0
- package/src/tokens/automation/properties.ts +433 -0
- package/src/tokens/automation/types/ComponentConfig.ts +116 -0
- package/src/tokens/automation/types/ComponentDB.ts +1 -0
- package/src/tokens/automation/types/ComponentStyles.ts +47 -0
- package/src/tokens/automation/types/index.ts +2 -0
- package/src/tokens/automation/utils/cartesianProduct.ts +13 -0
- package/src/tokens/automation/utils/coalesceConfigVariant.ts +49 -0
- package/src/tokens/automation/utils/defaults.ts +29 -0
- package/src/tokens/automation/utils/generateKeyFromFlatConfigPath.ts +15 -0
- package/src/tokens/automation/utils/generateSchemaKey.ts +29 -0
- package/src/tokens/automation/utils/getConfigComponentVariant.ts +28 -0
- package/src/tokens/automation/utils/getConfigVariantComponentStatesMatrix.ts +40 -0
- package/src/tokens/automation/utils/getConfigVariantProperties.ts +32 -0
- package/src/tokens/automation/utils/getConfigVariantPseudoStates.ts +70 -0
- package/src/tokens/automation/utils/getConfigVariants.ts +73 -0
- package/src/tokens/automation/utils/index.ts +939 -0
- package/src/tokens/automation/utils/mapColorFixtureToValue.ts +34 -0
- package/src/tokens/automation/utils/subcomponents.ts +13 -0
- package/src/tokens/automation/utils/variableData.ts +79 -0
- package/src/tokens/automation/utils/variantConfigGuards.ts +17 -0
- package/src/tokens/configs/borderRadius.ts +23 -0
- package/src/tokens/configs/borderWidth.ts +17 -0
- package/src/tokens/configs/button.ts +888 -0
- package/src/tokens/configs/colorMode.ts +14 -0
- package/src/tokens/configs/font.ts +9 -0
- package/src/tokens/configs/iconButton.ts +28 -0
- package/src/tokens/configs/motion.ts +135 -0
- package/src/tokens/configs/palette.ts +124 -0
- package/src/tokens/configs/scaleMode.ts +28 -0
- package/src/tokens/configs/shadow.ts +286 -0
- package/src/tokens/configs/sizes.ts +23 -0
- package/src/tokens/configs/spectrum.ts +729 -0
- package/src/tokens/configs/typography.ts +417 -0
- package/src/tokens/configs/yosConfig.ts +7651 -0
- package/src/tokens/consts/buttonMotionTokens.ts +99 -0
- package/src/tokens/consts/cssTokens.ts +110 -0
- package/src/tokens/consts/defaultModes.ts +15 -0
- package/src/tokens/consts/fontDeclarationsMap.ts +509 -0
- package/src/tokens/index.ts +15 -0
- package/src/tokens/parseButtonVariants.ts +59 -0
- package/src/tokens/parseTokens.ts +122 -0
- package/src/tokens/types.ts +1882 -0
- package/src/tokens/utils/entries.ts +14 -0
- package/src/tokens/utils/fromEntries.ts +11 -0
- package/src/tokens/utils/mapValues.ts +15 -0
- package/src/types.ts +2 -0
- package/src/utils/assertUnreachable.ts +6 -0
- package/src/utils/composeRefs.ts +23 -0
- package/src/utils/createSlot.tsx +131 -0
- package/src/utils/entries.ts +6 -0
- package/src/utils/falsyToString.ts +3 -0
- package/src/utils/getMotionVar.ts +18 -0
- package/src/utils/intersperse.ts +45 -0
- package/src/utils/mapValues.ts +15 -0
- package/src/utils/mergeSlotProps.ts +70 -0
- package/dist/Box-BrCNYpJf.d.cts +0 -34
- package/dist/Box-CZiBJY-U.d.ts +0 -34
- package/dist/Box-DvNI3HDT.d.ts +0 -34
- package/dist/Box-L9TrtxY6.d.cts +0 -34
- package/dist/Pressable-Bzvs31vV.d.cts +0 -44
- package/dist/Pressable-C_cD8YqL.d.ts +0 -44
- package/dist/Pressable-CpTWnaJC.d.cts +0 -44
- package/dist/Pressable-CrGdyngS.d.ts +0 -44
- package/dist/Text-CTWa1DHn.d.cts +0 -88
- package/dist/Text-CpFNy7i9.d.cts +0 -88
- package/dist/Text-DPAGXQX_.d.cts +0 -295
- package/dist/Text-DPAGXQX_.d.ts +0 -295
- package/dist/Text-DxibXWon.d.ts +0 -88
- package/dist/Text-cfrk-aSz.d.ts +0 -88
- package/dist/VStack-APl_ya0J.d.ts +0 -83
- package/dist/VStack-BZA9jJeV.d.cts +0 -83
- package/dist/VStack-CITd7-eN.d.ts +0 -83
- package/dist/VStack-DasFpGHh.d.cts +0 -83
- package/dist/chunk-2IGX7K6U.cjs +0 -1
- package/dist/chunk-2XRSELDC.js +0 -2
- package/dist/chunk-36MV47H5.js +0 -2
- package/dist/chunk-3EP5NVND.js +0 -2
- package/dist/chunk-3GPOTVTU.cjs +0 -1
- package/dist/chunk-3L7M764C.cjs +0 -2
- package/dist/chunk-3PWGILBM.js +0 -2
- package/dist/chunk-57DYSXXI.js +0 -2
- package/dist/chunk-5OLE7Z4Z.cjs +0 -2
- package/dist/chunk-5V32DSCR.js +0 -2
- package/dist/chunk-6RFI4VVW.cjs +0 -1
- package/dist/chunk-6VT7WO2X.cjs +0 -1
- package/dist/chunk-DETLKOCI.js +0 -2
- package/dist/chunk-DTZUJFHH.cjs +0 -1
- package/dist/chunk-DVDXLKAY.js +0 -1
- package/dist/chunk-DVSFYT3E.cjs +0 -1
- package/dist/chunk-E6Q2IF33.js +0 -2
- package/dist/chunk-EEJ6UJIT.cjs +0 -1
- package/dist/chunk-EFMLB2DR.js +0 -2
- package/dist/chunk-EU3BY2KO.cjs +0 -1
- package/dist/chunk-EWJ3J526.js +0 -2
- package/dist/chunk-G2EVPCQY.cjs +0 -1
- package/dist/chunk-GF4A6TFM.js +0 -2
- package/dist/chunk-HCDOGKOT.cjs +0 -2
- package/dist/chunk-IEHKXVW5.js +0 -3
- package/dist/chunk-IUBD43EI.js +0 -3
- package/dist/chunk-J7PUOUXC.cjs +0 -1
- package/dist/chunk-JDWK7ZS7.cjs +0 -1
- package/dist/chunk-JSIXVRYN.js +0 -1
- package/dist/chunk-JYNMSSZO.js +0 -2
- package/dist/chunk-KGQBYCWG.js +0 -2
- package/dist/chunk-L4LZ2RES.cjs +0 -2
- package/dist/chunk-LNZSNDOV.cjs +0 -1
- package/dist/chunk-LU4S37C4.cjs +0 -2
- package/dist/chunk-LWCJEX2R.js +0 -2
- package/dist/chunk-NDIFKQVR.cjs +0 -1
- package/dist/chunk-NQL6ZOAM.js +0 -1
- package/dist/chunk-NXVOHNXW.cjs +0 -1
- package/dist/chunk-PM4TFP3I.js +0 -2
- package/dist/chunk-PPHA3ASA.cjs +0 -1
- package/dist/chunk-QGB63HSS.js +0 -2
- package/dist/chunk-QLXJH36U.cjs +0 -1
- package/dist/chunk-RKYTJ6XJ.js +0 -2
- package/dist/chunk-RRXNQVLV.cjs +0 -1
- package/dist/chunk-U7NZY7CY.js +0 -1
- package/dist/chunk-WJFHQKE4.js +0 -1
- package/dist/chunk-YHSLACUJ.cjs +0 -2
- package/dist/chunk-YZTC6645.cjs +0 -1
- 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.d.cts +0 -43
- package/dist/experimental/client/SwitchV2.d.ts +0 -43
- 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-Bj4zcQ8D.d.ts +0 -243
- package/dist/index-DvgJJnbq.d.ts +0 -243
- package/dist/index-fOaETFpl.d.cts +0 -243
- package/dist/index-jFh7u5rS.d.cts +0 -243
- 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 -85
- package/dist/tailwind/plugin.d.ts +0 -85
- package/dist/tailwind/plugin.js +0 -1
- package/dist/tailwind/purger.cjs +0 -5
- package/dist/tailwind/purger.d.cts +0 -17
- package/dist/tailwind/purger.d.ts +0 -17
- package/dist/tailwind/purger.js +0 -6
- package/dist/tailwind/utils.cjs +0 -1
- package/dist/tailwind/utils.d.cts +0 -153
- package/dist/tailwind/utils.d.ts +0 -153
- package/dist/tailwind/utils.js +0 -1
- package/dist/tokens/automation/configs.cjs +0 -1
- package/dist/tokens/automation/configs.d.cts +0 -110
- package/dist/tokens/automation/configs.d.ts +0 -110
- package/dist/tokens/automation/configs.js +0 -1
- package/dist/types-BAsHl1tU.d.cts +0 -10609
- package/dist/types-BAsHl1tU.d.ts +0 -10609
- package/dist/types-BvOFo15W.d.cts +0 -8
- package/dist/types-BvOFo15W.d.ts +0 -8
- package/dist/types-CRqbgWm9.d.cts +0 -10609
- package/dist/types-CRqbgWm9.d.ts +0 -10609
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/Radio/RadioGroupStore.tsx
|
|
7
|
+
/**
|
|
8
|
+
* A store for a single RadioGroup. This store is used to manage the state of all Radios within a group.
|
|
9
|
+
*/
|
|
10
|
+
var RadioGroupStore = class RadioGroupStore {
|
|
11
|
+
name;
|
|
12
|
+
value;
|
|
13
|
+
activeCount = 0;
|
|
14
|
+
#changeListeners = /* @__PURE__ */ new Set();
|
|
15
|
+
constructor(name) {
|
|
16
|
+
this.name = name;
|
|
17
|
+
}
|
|
18
|
+
onChange(cb) {
|
|
19
|
+
this.#changeListeners.add(cb);
|
|
20
|
+
return () => {
|
|
21
|
+
this.#changeListeners.delete(cb);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
setValue(value) {
|
|
25
|
+
this.value = value;
|
|
26
|
+
this.#changeListeners.forEach((cb) => cb(value));
|
|
27
|
+
}
|
|
28
|
+
static findOrCreate(radioGroupStores, name) {
|
|
29
|
+
let store = radioGroupStores.get(name);
|
|
30
|
+
if (!store) {
|
|
31
|
+
store = new RadioGroupStore(name);
|
|
32
|
+
radioGroupStores.set(name, store);
|
|
33
|
+
}
|
|
34
|
+
return store;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const RadioGroupContext = (0, react.createContext)(/* @__PURE__ */ new Map());
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.RadioGroupContext = RadioGroupContext;
|
|
41
|
+
exports.RadioGroupStore = RadioGroupStore;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react59 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/client/Radio/RadioGroupStore.d.ts
|
|
4
|
+
type RadioGroupStoreOnChange = (value: string | undefined) => void;
|
|
5
|
+
/**
|
|
6
|
+
* A store for a single RadioGroup. This store is used to manage the state of all Radios within a group.
|
|
7
|
+
*/
|
|
8
|
+
declare class RadioGroupStore {
|
|
9
|
+
#private;
|
|
10
|
+
name: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
activeCount: number;
|
|
13
|
+
constructor(name: string);
|
|
14
|
+
onChange(cb: RadioGroupStoreOnChange): () => void;
|
|
15
|
+
setValue(value: string | undefined): void;
|
|
16
|
+
static findOrCreate(radioGroupStores: Map<string, RadioGroupStore>, name: string): RadioGroupStore;
|
|
17
|
+
}
|
|
18
|
+
declare const RadioGroupContext: react59.Context<RadioGroupStore | Map<string, RadioGroupStore>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RadioGroupContext, RadioGroupStore };
|
|
21
|
+
//# sourceMappingURL=RadioGroupStore.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupStore.d.cts","names":[],"sources":["../../../../src/components/client/Radio/RadioGroupStore.tsx"],"sourcesContent":[],"mappings":";;;KAEK,uBAAA,CAAA,CAAA;;;AAmDkB,CAAA,CAAA;AAnDK,OAAA,CAAA,KAAA,CAKtB,eAAA,CAAe;EAkBN,CAAA,OAAA;EAgBqC,IAAA,CAAA,CAAA,MAAA;EAAZ,KAAA,CAAA,CAAA,CAAA,MAAA;EAA0C,WAAA,CAAA,CAAA,MAAA;EAAA,WAAA,CAAA,IAAA,CAAA,CAAA,MAAA,CAAA;EAY5E,QAAA,CAAA,EAAA,CAAA,CA5BS,uBA4BmF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA;EAA3E,QAAA,CAAA,KAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,IAAA;EAAA,MAAA,CAAA,YAAA,CAAA,gBAAA,CAAA,CAZiB,GAYjB,CAAA,MAAA,CAAA,CAZ6B,eAY7B,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAZ2D,eAY3D;;cAAjB,iBAAiB,CAAA,CAAA,OAAA,CAAA,OAAA,CAAA,eAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,CAAA,CAAA,eAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react43 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/client/Radio/RadioGroupStore.d.ts
|
|
4
|
+
type RadioGroupStoreOnChange = (value: string | undefined) => void;
|
|
5
|
+
/**
|
|
6
|
+
* A store for a single RadioGroup. This store is used to manage the state of all Radios within a group.
|
|
7
|
+
*/
|
|
8
|
+
declare class RadioGroupStore {
|
|
9
|
+
#private;
|
|
10
|
+
name: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
activeCount: number;
|
|
13
|
+
constructor(name: string);
|
|
14
|
+
onChange(cb: RadioGroupStoreOnChange): () => void;
|
|
15
|
+
setValue(value: string | undefined): void;
|
|
16
|
+
static findOrCreate(radioGroupStores: Map<string, RadioGroupStore>, name: string): RadioGroupStore;
|
|
17
|
+
}
|
|
18
|
+
declare const RadioGroupContext: react43.Context<RadioGroupStore | Map<string, RadioGroupStore>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { RadioGroupContext, RadioGroupStore };
|
|
21
|
+
//# sourceMappingURL=RadioGroupStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupStore.d.ts","names":[],"sources":["../../../../src/components/client/Radio/RadioGroupStore.tsx"],"sourcesContent":[],"mappings":";;;KAEK,uBAAA,CAAA,CAAA;;;AAmDkB,CAAA,CAAA;AAnDK,OAAA,CAAA,KAAA,CAKtB,eAAA,CAAe;EAkBN,CAAA,OAAA;EAgBqC,IAAA,CAAA,CAAA,MAAA;EAAZ,KAAA,CAAA,CAAA,CAAA,MAAA;EAA0C,WAAA,CAAA,CAAA,MAAA;EAAA,WAAA,CAAA,IAAA,CAAA,CAAA,MAAA,CAAA;EAY5E,QAAA,CAAA,EAAA,CAAA,CA5BS,uBA4BmF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA;EAA3E,QAAA,CAAA,KAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,IAAA;EAAA,MAAA,CAAA,YAAA,CAAA,gBAAA,CAAA,CAZiB,GAYjB,CAAA,MAAA,CAAA,CAZ6B,eAY7B,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAZ2D,eAY3D;;cAAjB,iBAAiB,CAAA,CAAA,OAAA,CAAA,OAAA,CAAA,eAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,CAAA,CAAA,eAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { createContext } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/Radio/RadioGroupStore.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A store for a single RadioGroup. This store is used to manage the state of all Radios within a group.
|
|
8
|
+
*/
|
|
9
|
+
var RadioGroupStore = class RadioGroupStore {
|
|
10
|
+
name;
|
|
11
|
+
value;
|
|
12
|
+
activeCount = 0;
|
|
13
|
+
#changeListeners = /* @__PURE__ */ new Set();
|
|
14
|
+
constructor(name) {
|
|
15
|
+
this.name = name;
|
|
16
|
+
}
|
|
17
|
+
onChange(cb) {
|
|
18
|
+
this.#changeListeners.add(cb);
|
|
19
|
+
return () => {
|
|
20
|
+
this.#changeListeners.delete(cb);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
setValue(value) {
|
|
24
|
+
this.value = value;
|
|
25
|
+
this.#changeListeners.forEach((cb) => cb(value));
|
|
26
|
+
}
|
|
27
|
+
static findOrCreate(radioGroupStores, name) {
|
|
28
|
+
let store = radioGroupStores.get(name);
|
|
29
|
+
if (!store) {
|
|
30
|
+
store = new RadioGroupStore(name);
|
|
31
|
+
radioGroupStores.set(name, store);
|
|
32
|
+
}
|
|
33
|
+
return store;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const RadioGroupContext = createContext(/* @__PURE__ */ new Map());
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { RadioGroupContext, RadioGroupStore };
|
|
40
|
+
//# sourceMappingURL=RadioGroupStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupStore.js","names":["#changeListeners"],"sources":["../../../../src/components/client/Radio/RadioGroupStore.tsx"],"sourcesContent":["import { createContext } from 'react';\n\ntype RadioGroupStoreOnChange = (value: string | undefined) => void;\n\n/**\n * A store for a single RadioGroup. This store is used to manage the state of all Radios within a group.\n */\nclass RadioGroupStore {\n // The html name attribute of the RadioGroup.\n name: string;\n\n // The current value of the RadioGroup.\n value?: string;\n\n // A count of the number of active Radios in the group. Used to cleanup stores when all Radios are unmounted.\n activeCount = 0;\n\n // A set of listeners to call when the value of the RadioGroup changes.\n #changeListeners = new Set<RadioGroupStoreOnChange>();\n\n constructor(name: string) {\n this.name = name;\n }\n\n // Register a listener to be called when the value of the RadioGroup changes.\n onChange(cb: RadioGroupStoreOnChange) {\n this.#changeListeners.add(cb);\n\n // Return a function to remove the listener (used as unmount handler in useEffect).\n return () => {\n this.#changeListeners.delete(cb);\n };\n }\n\n // Set the value of the RadioGroup and notify all listeners.\n setValue(value: string | undefined) {\n this.value = value;\n this.#changeListeners.forEach((cb) => cb(value));\n }\n\n // Create a new store when first encounting a new RadioGroup name.\n static findOrCreate(radioGroupStores: Map<string, RadioGroupStore>, name: string) {\n let store = radioGroupStores.get(name);\n\n if (!store) {\n store = new RadioGroupStore(name);\n radioGroupStores.set(name, store);\n }\n\n return store;\n }\n}\n\nconst RadioGroupContext = createContext<Map<string, RadioGroupStore> | RadioGroupStore>(new Map());\n\nexport { RadioGroupContext, RadioGroupStore };\n"],"mappings":";;;;;;;AAOA,IAAM,kBAAN,MAAM,gBAAgB;CAEpB;CAGA;CAGA,cAAc;CAGd,mCAAmB,IAAI,KAA8B;CAErD,YAAY,MAAc;AACxB,OAAK,OAAO;;CAId,SAAS,IAA6B;AACpC,QAAKA,gBAAiB,IAAI,GAAG;AAG7B,eAAa;AACX,SAAKA,gBAAiB,OAAO,GAAG;;;CAKpC,SAAS,OAA2B;AAClC,OAAK,QAAQ;AACb,QAAKA,gBAAiB,SAAS,OAAO,GAAG,MAAM,CAAC;;CAIlD,OAAO,aAAa,kBAAgD,MAAc;EAChF,IAAI,QAAQ,iBAAiB,IAAI,KAAK;AAEtC,MAAI,CAAC,OAAO;AACV,WAAQ,IAAI,gBAAgB,KAAK;AACjC,oBAAiB,IAAI,MAAM,MAAM;;AAGnC,SAAO;;;AAIX,MAAM,oBAAoB,8BAA8D,IAAI,KAAK,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
const require_components_client_Radio_Radio = require('./Radio.cjs');
|
|
4
|
+
const require_components_client_Radio_RadioGroupProvider = require('./RadioGroupProvider.cjs');
|
|
5
|
+
|
|
6
|
+
exports.Radio = require_components_client_Radio_Radio.Radio;
|
|
7
|
+
exports.RadioGroupProvider = require_components_client_Radio_RadioGroupProvider.RadioGroupProvider;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_components_client_Radio_RadioGroupStore = require('./RadioGroupStore.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
|
|
7
|
+
//#region src/components/client/Radio/useRadioGroup.ts
|
|
8
|
+
const useRadioGroupName = (name) => {
|
|
9
|
+
const uid = (0, react.useId)();
|
|
10
|
+
return name ?? `uds-radio-group-${uid}`;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A hook that connects a single Radio to its RadioGroupStore. If the Radio is used within a RadioGroupProvider,
|
|
14
|
+
* it will use the context store. Otherwise, it will use a shared global store across all un-grouped Radios by name.
|
|
15
|
+
*
|
|
16
|
+
* @param name The name of the Radio which should be shared across the group.
|
|
17
|
+
* @param value The value of the Radio.
|
|
18
|
+
* @param checked Whether the Radio is checked by its controlled prop.
|
|
19
|
+
* @param defaultChecked The uncontrolled default checked state of the Radio.
|
|
20
|
+
* @returns The name of the RadioGroup, whether the Radio is controlled, the checked state of the Radio, and a function to set the RadioGroup value.
|
|
21
|
+
*/
|
|
22
|
+
const useRadioGroup = ({ name: radioName, value: radioValue, checked: radioIsChecked, defaultChecked: radioDefaultIsChecked }) => {
|
|
23
|
+
const ctx = (0, react.useContext)(require_components_client_Radio_RadioGroupStore.RadioGroupContext);
|
|
24
|
+
const hasRadioGroupProvider = ctx instanceof require_components_client_Radio_RadioGroupStore.RadioGroupStore;
|
|
25
|
+
const isControlled = radioIsChecked !== void 0 || hasRadioGroupProvider;
|
|
26
|
+
const uniqueName = useRadioGroupName(radioName);
|
|
27
|
+
const store = (0, react.useMemo)(() => {
|
|
28
|
+
if (hasRadioGroupProvider) return ctx;
|
|
29
|
+
return require_components_client_Radio_RadioGroupStore.RadioGroupStore.findOrCreate(ctx, uniqueName);
|
|
30
|
+
}, [
|
|
31
|
+
ctx,
|
|
32
|
+
hasRadioGroupProvider,
|
|
33
|
+
uniqueName
|
|
34
|
+
]);
|
|
35
|
+
const [radioGroupValue, setInternalRadioGroupValue] = (0, react.useState)(store.value);
|
|
36
|
+
const name = store.name ?? uniqueName;
|
|
37
|
+
const setGroupValue = (0, react.useCallback)((value) => {
|
|
38
|
+
store.setValue(value);
|
|
39
|
+
if (isControlled) return;
|
|
40
|
+
setInternalRadioGroupValue(value);
|
|
41
|
+
}, [isControlled, store]);
|
|
42
|
+
(0, react.useEffect)(() => store.onChange(setInternalRadioGroupValue), [store]);
|
|
43
|
+
(0, react.useEffect)(() => {
|
|
44
|
+
if (radioIsChecked !== true) return;
|
|
45
|
+
setGroupValue(radioValue);
|
|
46
|
+
}, [
|
|
47
|
+
radioIsChecked,
|
|
48
|
+
radioValue,
|
|
49
|
+
setGroupValue
|
|
50
|
+
]);
|
|
51
|
+
(0, react.useEffect)(() => {
|
|
52
|
+
if (hasRadioGroupProvider) return;
|
|
53
|
+
const store$1 = require_components_client_Radio_RadioGroupStore.RadioGroupStore.findOrCreate(ctx, name);
|
|
54
|
+
store$1.activeCount += 1;
|
|
55
|
+
ctx.set(name, store$1);
|
|
56
|
+
return () => {
|
|
57
|
+
const entry = ctx.get(name);
|
|
58
|
+
if (!entry) return;
|
|
59
|
+
entry.activeCount -= 1;
|
|
60
|
+
if (entry.activeCount === 0) ctx.delete(name);
|
|
61
|
+
};
|
|
62
|
+
}, [
|
|
63
|
+
ctx,
|
|
64
|
+
hasRadioGroupProvider,
|
|
65
|
+
name
|
|
66
|
+
]);
|
|
67
|
+
return {
|
|
68
|
+
name,
|
|
69
|
+
isControlled,
|
|
70
|
+
checked: (() => {
|
|
71
|
+
if (isControlled && !hasRadioGroupProvider) return radioIsChecked;
|
|
72
|
+
if (radioGroupValue !== void 0) return radioValue === radioGroupValue;
|
|
73
|
+
return radioDefaultIsChecked ?? false;
|
|
74
|
+
})(),
|
|
75
|
+
setGroupValue
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
exports.useRadioGroup = useRadioGroup;
|
|
81
|
+
exports.useRadioGroupName = useRadioGroupName;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region src/components/client/Radio/useRadioGroup.d.ts
|
|
2
|
+
declare const useRadioGroupName: (name?: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* A hook that connects a single Radio to its RadioGroupStore. If the Radio is used within a RadioGroupProvider,
|
|
5
|
+
* it will use the context store. Otherwise, it will use a shared global store across all un-grouped Radios by name.
|
|
6
|
+
*
|
|
7
|
+
* @param name The name of the Radio which should be shared across the group.
|
|
8
|
+
* @param value The value of the Radio.
|
|
9
|
+
* @param checked Whether the Radio is checked by its controlled prop.
|
|
10
|
+
* @param defaultChecked The uncontrolled default checked state of the Radio.
|
|
11
|
+
* @returns The name of the RadioGroup, whether the Radio is controlled, the checked state of the Radio, and a function to set the RadioGroup value.
|
|
12
|
+
*/
|
|
13
|
+
declare const useRadioGroup: ({
|
|
14
|
+
name: radioName,
|
|
15
|
+
value: radioValue,
|
|
16
|
+
checked: radioIsChecked,
|
|
17
|
+
defaultChecked: radioDefaultIsChecked
|
|
18
|
+
}: {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
value: string;
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
defaultChecked?: boolean;
|
|
23
|
+
}) => {
|
|
24
|
+
name: string;
|
|
25
|
+
isControlled: boolean;
|
|
26
|
+
checked: boolean | undefined;
|
|
27
|
+
setGroupValue: (value: string) => void;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useRadioGroup, useRadioGroupName };
|
|
31
|
+
//# sourceMappingURL=useRadioGroup.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRadioGroup.d.cts","names":[],"sources":["../../../../src/components/client/Radio/useRadioGroup.ts"],"sourcesContent":[],"mappings":";cAIM;;AAGL,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA,QAAA,CAAA,CAAA,CAAA,MAAA,CAAA,KAAA,CAAA,EAAA,CAAA,GAAA,CAAA,eAAA,CAAA,CAAA,EAAA,CAAA,GAAA,CAAA,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAA,kBAAA;;;;;;;;;cAYK;QAAiB;SAAA;WAAA;kBAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region src/components/client/Radio/useRadioGroup.d.ts
|
|
2
|
+
declare const useRadioGroupName: (name?: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* A hook that connects a single Radio to its RadioGroupStore. If the Radio is used within a RadioGroupProvider,
|
|
5
|
+
* it will use the context store. Otherwise, it will use a shared global store across all un-grouped Radios by name.
|
|
6
|
+
*
|
|
7
|
+
* @param name The name of the Radio which should be shared across the group.
|
|
8
|
+
* @param value The value of the Radio.
|
|
9
|
+
* @param checked Whether the Radio is checked by its controlled prop.
|
|
10
|
+
* @param defaultChecked The uncontrolled default checked state of the Radio.
|
|
11
|
+
* @returns The name of the RadioGroup, whether the Radio is controlled, the checked state of the Radio, and a function to set the RadioGroup value.
|
|
12
|
+
*/
|
|
13
|
+
declare const useRadioGroup: ({
|
|
14
|
+
name: radioName,
|
|
15
|
+
value: radioValue,
|
|
16
|
+
checked: radioIsChecked,
|
|
17
|
+
defaultChecked: radioDefaultIsChecked
|
|
18
|
+
}: {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
value: string;
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
defaultChecked?: boolean;
|
|
23
|
+
}) => {
|
|
24
|
+
name: string;
|
|
25
|
+
isControlled: boolean;
|
|
26
|
+
checked: boolean | undefined;
|
|
27
|
+
setGroupValue: (value: string) => void;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useRadioGroup, useRadioGroupName };
|
|
31
|
+
//# sourceMappingURL=useRadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRadioGroup.d.ts","names":[],"sources":["../../../../src/components/client/Radio/useRadioGroup.ts"],"sourcesContent":[],"mappings":";cAIM;;AAGL,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA,QAAA,CAAA,CAAA,CAAA,MAAA,CAAA,KAAA,CAAA,EAAA,CAAA,GAAA,CAAA,eAAA,CAAA,CAAA,EAAA,CAAA,GAAA,CAAA,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAA,kBAAA;;;;;;;;;cAYK;QAAiB;SAAA;WAAA;kBAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { RadioGroupContext, RadioGroupStore } from "./RadioGroupStore.js";
|
|
4
|
+
import { useCallback, useContext, useEffect, useId, useMemo, useState } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/Radio/useRadioGroup.ts
|
|
7
|
+
const useRadioGroupName = (name) => {
|
|
8
|
+
const uid = useId();
|
|
9
|
+
return name ?? `uds-radio-group-${uid}`;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A hook that connects a single Radio to its RadioGroupStore. If the Radio is used within a RadioGroupProvider,
|
|
13
|
+
* it will use the context store. Otherwise, it will use a shared global store across all un-grouped Radios by name.
|
|
14
|
+
*
|
|
15
|
+
* @param name The name of the Radio which should be shared across the group.
|
|
16
|
+
* @param value The value of the Radio.
|
|
17
|
+
* @param checked Whether the Radio is checked by its controlled prop.
|
|
18
|
+
* @param defaultChecked The uncontrolled default checked state of the Radio.
|
|
19
|
+
* @returns The name of the RadioGroup, whether the Radio is controlled, the checked state of the Radio, and a function to set the RadioGroup value.
|
|
20
|
+
*/
|
|
21
|
+
const useRadioGroup = ({ name: radioName, value: radioValue, checked: radioIsChecked, defaultChecked: radioDefaultIsChecked }) => {
|
|
22
|
+
const ctx = useContext(RadioGroupContext);
|
|
23
|
+
const hasRadioGroupProvider = ctx instanceof RadioGroupStore;
|
|
24
|
+
const isControlled = radioIsChecked !== void 0 || hasRadioGroupProvider;
|
|
25
|
+
const uniqueName = useRadioGroupName(radioName);
|
|
26
|
+
const store = useMemo(() => {
|
|
27
|
+
if (hasRadioGroupProvider) return ctx;
|
|
28
|
+
return RadioGroupStore.findOrCreate(ctx, uniqueName);
|
|
29
|
+
}, [
|
|
30
|
+
ctx,
|
|
31
|
+
hasRadioGroupProvider,
|
|
32
|
+
uniqueName
|
|
33
|
+
]);
|
|
34
|
+
const [radioGroupValue, setInternalRadioGroupValue] = useState(store.value);
|
|
35
|
+
const name = store.name ?? uniqueName;
|
|
36
|
+
const setGroupValue = useCallback((value) => {
|
|
37
|
+
store.setValue(value);
|
|
38
|
+
if (isControlled) return;
|
|
39
|
+
setInternalRadioGroupValue(value);
|
|
40
|
+
}, [isControlled, store]);
|
|
41
|
+
useEffect(() => store.onChange(setInternalRadioGroupValue), [store]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (radioIsChecked !== true) return;
|
|
44
|
+
setGroupValue(radioValue);
|
|
45
|
+
}, [
|
|
46
|
+
radioIsChecked,
|
|
47
|
+
radioValue,
|
|
48
|
+
setGroupValue
|
|
49
|
+
]);
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (hasRadioGroupProvider) return;
|
|
52
|
+
const store$1 = RadioGroupStore.findOrCreate(ctx, name);
|
|
53
|
+
store$1.activeCount += 1;
|
|
54
|
+
ctx.set(name, store$1);
|
|
55
|
+
return () => {
|
|
56
|
+
const entry = ctx.get(name);
|
|
57
|
+
if (!entry) return;
|
|
58
|
+
entry.activeCount -= 1;
|
|
59
|
+
if (entry.activeCount === 0) ctx.delete(name);
|
|
60
|
+
};
|
|
61
|
+
}, [
|
|
62
|
+
ctx,
|
|
63
|
+
hasRadioGroupProvider,
|
|
64
|
+
name
|
|
65
|
+
]);
|
|
66
|
+
return {
|
|
67
|
+
name,
|
|
68
|
+
isControlled,
|
|
69
|
+
checked: (() => {
|
|
70
|
+
if (isControlled && !hasRadioGroupProvider) return radioIsChecked;
|
|
71
|
+
if (radioGroupValue !== void 0) return radioValue === radioGroupValue;
|
|
72
|
+
return radioDefaultIsChecked ?? false;
|
|
73
|
+
})(),
|
|
74
|
+
setGroupValue
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
export { useRadioGroup, useRadioGroupName };
|
|
80
|
+
//# sourceMappingURL=useRadioGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRadioGroup.js","names":["store"],"sources":["../../../../src/components/client/Radio/useRadioGroup.ts"],"sourcesContent":["import { useCallback, useContext, useEffect, useId, useMemo, useState } from 'react';\n\nimport { RadioGroupContext, RadioGroupStore } from './RadioGroupStore';\n\nconst useRadioGroupName = (name?: string) => {\n const uid = useId();\n return name ?? `uds-radio-group-${uid}`;\n};\n\n/**\n * A hook that connects a single Radio to its RadioGroupStore. If the Radio is used within a RadioGroupProvider,\n * it will use the context store. Otherwise, it will use a shared global store across all un-grouped Radios by name.\n *\n * @param name The name of the Radio which should be shared across the group.\n * @param value The value of the Radio.\n * @param checked Whether the Radio is checked by its controlled prop.\n * @param defaultChecked The uncontrolled default checked state of the Radio.\n * @returns The name of the RadioGroup, whether the Radio is controlled, the checked state of the Radio, and a function to set the RadioGroup value.\n */\nconst useRadioGroup = ({\n name: radioName,\n value: radioValue,\n checked: radioIsChecked,\n defaultChecked: radioDefaultIsChecked,\n}: {\n name?: string | undefined;\n value: string;\n checked?: boolean;\n defaultChecked?: boolean;\n}): {\n name: string;\n isControlled: boolean;\n checked: boolean | undefined;\n setGroupValue: (value: string) => void;\n} => {\n const ctx = useContext(RadioGroupContext);\n const hasRadioGroupProvider = ctx instanceof RadioGroupStore;\n const isControlled = radioIsChecked !== undefined || hasRadioGroupProvider;\n\n // Use either the name passed as a prop on Radio or generate a unique name.\n const uniqueName = useRadioGroupName(radioName);\n\n // Get the Store controlling this Radio.\n const store = useMemo(() => {\n // Either from RadioGroupProvider\n if (hasRadioGroupProvider) {\n return ctx;\n }\n\n // Or indexed by name in the global store.\n return RadioGroupStore.findOrCreate(ctx, uniqueName);\n }, [ctx, hasRadioGroupProvider, uniqueName]);\n\n // The internal value of the RadioGroup.\n const [radioGroupValue, setInternalRadioGroupValue] = useState<string | undefined>(store.value);\n\n // If the store has a name set, all Radios inside the group should use that name. Otherwise use the Radio's name.\n const name = store.name ?? uniqueName;\n\n // Set the value of the RadioGroup.\n const setGroupValue = useCallback(\n (value: string) => {\n // Notify the store.\n store.setValue(value);\n\n if (isControlled) {\n return;\n }\n\n // and optimistically update the internal value.\n setInternalRadioGroupValue(value);\n },\n [isControlled, store],\n );\n\n // Listen for store changes and update the internal value when it changes.\n useEffect(() => store.onChange(setInternalRadioGroupValue), [store]);\n\n useEffect(() => {\n // Only update the store if a new Radio in the group has become checked.\n if (radioIsChecked !== true) {\n return;\n }\n\n setGroupValue(radioValue);\n }, [radioIsChecked, radioValue, setGroupValue]);\n\n // Register with the global store for relating Radios without a RadioGroupProvider.\n useEffect(() => {\n // Don't need the global store if wrapped in a RadioGroupProvider.\n if (hasRadioGroupProvider) {\n return;\n }\n\n // Get a store given the RadioGroup name.\n const store = RadioGroupStore.findOrCreate(ctx, name);\n\n // Increment the number of Radios using this store.\n store.activeCount += 1;\n\n // Save the store in the context.\n ctx.set(name, store);\n\n // On unmount.\n return () => {\n // If this radio is in the store...\n const entry = ctx.get(name);\n\n if (!entry) {\n return;\n }\n\n // Decrement the number of Radios using this store.\n entry.activeCount -= 1;\n\n // If there are no more Radios using this store, delete it.\n if (entry.activeCount === 0) {\n ctx.delete(name);\n }\n };\n }, [ctx, hasRadioGroupProvider, name]);\n\n // Complicated boolean logic reads better as a IIFE than a ternary.\n const checked = (() => {\n // If the Radio is controlled by its checked prop AND it's not in a RadioGroupProvider, use the prop.\n if (isControlled && !hasRadioGroupProvider) {\n return radioIsChecked;\n }\n\n // If the RadioGroup is controlled by a value prop...\n if (radioGroupValue !== undefined) {\n // The Radio is checked if its value matches the current value of the group.\n return radioValue === radioGroupValue;\n }\n\n // Otherwise, we are in an uncontrolled state. If present, our internal value is the defaultChecked prop,\n // otherwise we are not checked.\n return radioDefaultIsChecked ?? false;\n })();\n\n return {\n name,\n isControlled,\n checked,\n setGroupValue,\n };\n};\n\nexport { useRadioGroup, useRadioGroupName };\n"],"mappings":";;;;;AAIA,MAAM,qBAAqB,SAAkB;CAC3C,MAAM,MAAM,OAAO;AACnB,QAAO,QAAQ,mBAAmB;;;;;;;;;;;;AAapC,MAAM,iBAAiB,EACrB,MAAM,WACN,OAAO,YACP,SAAS,gBACT,gBAAgB,4BAWb;CACH,MAAM,MAAM,WAAW,kBAAkB;CACzC,MAAM,wBAAwB,eAAe;CAC7C,MAAM,eAAe,mBAAmB,UAAa;CAGrD,MAAM,aAAa,kBAAkB,UAAU;CAG/C,MAAM,QAAQ,cAAc;AAE1B,MAAI,sBACF,QAAO;AAIT,SAAO,gBAAgB,aAAa,KAAK,WAAW;IACnD;EAAC;EAAK;EAAuB;EAAW,CAAC;CAG5C,MAAM,CAAC,iBAAiB,8BAA8B,SAA6B,MAAM,MAAM;CAG/F,MAAM,OAAO,MAAM,QAAQ;CAG3B,MAAM,gBAAgB,aACnB,UAAkB;AAEjB,QAAM,SAAS,MAAM;AAErB,MAAI,aACF;AAIF,6BAA2B,MAAM;IAEnC,CAAC,cAAc,MAAM,CACtB;AAGD,iBAAgB,MAAM,SAAS,2BAA2B,EAAE,CAAC,MAAM,CAAC;AAEpE,iBAAgB;AAEd,MAAI,mBAAmB,KACrB;AAGF,gBAAc,WAAW;IACxB;EAAC;EAAgB;EAAY;EAAc,CAAC;AAG/C,iBAAgB;AAEd,MAAI,sBACF;EAIF,MAAMA,UAAQ,gBAAgB,aAAa,KAAK,KAAK;AAGrD,UAAM,eAAe;AAGrB,MAAI,IAAI,MAAMA,QAAM;AAGpB,eAAa;GAEX,MAAM,QAAQ,IAAI,IAAI,KAAK;AAE3B,OAAI,CAAC,MACH;AAIF,SAAM,eAAe;AAGrB,OAAI,MAAM,gBAAgB,EACxB,KAAI,OAAO,KAAK;;IAGnB;EAAC;EAAK;EAAuB;EAAK,CAAC;AAoBtC,QAAO;EACL;EACA;EACA,gBApBqB;AAErB,OAAI,gBAAgB,CAAC,sBACnB,QAAO;AAIT,OAAI,oBAAoB,OAEtB,QAAO,eAAe;AAKxB,UAAO,yBAAyB;MAC9B;EAMF;EACD"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_tokens_configs_motion = require('../../tokens/configs/motion.cjs');
|
|
5
|
+
const require_utils_getMotionVar = require('../../utils/getMotionVar.cjs');
|
|
6
|
+
const require_components_experimental_client_AvoidMotionLibraryProvider = require('../experimental/client/AvoidMotionLibraryProvider.cjs');
|
|
7
|
+
let react = require("react");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let motion_react = require("motion/react");
|
|
10
|
+
|
|
11
|
+
//#region src/components/client/SpringMotionConfig.tsx
|
|
12
|
+
const LAYOUT_VARIANT = "subtle";
|
|
13
|
+
const LAYOUT_SPEED = "3";
|
|
14
|
+
const COLOR_VARIANT = "smooth";
|
|
15
|
+
const COLOR_SPEED = "3";
|
|
16
|
+
const defaultLoadFeatures = () => import("@yahoo/uds/__private/motionFeatures/domAnimation").then(({ domAnimation }) => domAnimation);
|
|
17
|
+
/**
|
|
18
|
+
* **🎬 Spring Motion Config to define motion animations for all UDS components**
|
|
19
|
+
*
|
|
20
|
+
* @componentType Client component
|
|
21
|
+
*
|
|
22
|
+
* @description
|
|
23
|
+
* The SpringConfig component provides a way to configure the spring animations for the entire application.
|
|
24
|
+
* This component provides a way to use uds motion configs with Framer Motion.
|
|
25
|
+
*/
|
|
26
|
+
function SpringMotionConfig({ children, reducedMotion = "user", loadFeatures = defaultLoadFeatures, layoutVariant = LAYOUT_VARIANT, layoutSpeed = LAYOUT_SPEED, colorVariant = COLOR_VARIANT, colorSpeed = COLOR_SPEED }) {
|
|
27
|
+
const initialLayoutConfig = require_tokens_configs_motion.motion[layoutVariant][layoutSpeed];
|
|
28
|
+
const initialColorConfig = require_tokens_configs_motion.motion[colorVariant][colorSpeed];
|
|
29
|
+
const [layoutConfig, setLayoutConfig] = (0, react.useState)(initialLayoutConfig);
|
|
30
|
+
const [colorConfig, setColorConfig] = (0, react.useState)(initialColorConfig);
|
|
31
|
+
const colorVarConfig = {
|
|
32
|
+
variant: colorVariant,
|
|
33
|
+
speed: colorSpeed
|
|
34
|
+
};
|
|
35
|
+
const colorStiffnessVar = require_utils_getMotionVar.getMotionVar({
|
|
36
|
+
...colorVarConfig,
|
|
37
|
+
control: "stiffness"
|
|
38
|
+
});
|
|
39
|
+
const colorDampingVar = require_utils_getMotionVar.getMotionVar({
|
|
40
|
+
...colorVarConfig,
|
|
41
|
+
control: "damping"
|
|
42
|
+
});
|
|
43
|
+
const layoutVarConfig = {
|
|
44
|
+
variant: layoutVariant,
|
|
45
|
+
speed: layoutSpeed
|
|
46
|
+
};
|
|
47
|
+
const layoutStiffnessVar = require_utils_getMotionVar.getMotionVar({
|
|
48
|
+
...layoutVarConfig,
|
|
49
|
+
control: "stiffness"
|
|
50
|
+
});
|
|
51
|
+
const layoutDampingVar = require_utils_getMotionVar.getMotionVar({
|
|
52
|
+
...layoutVarConfig,
|
|
53
|
+
control: "damping"
|
|
54
|
+
});
|
|
55
|
+
(0, react.useEffect)(() => {
|
|
56
|
+
const globalComputedStyles = getComputedStyle(document.documentElement);
|
|
57
|
+
const layoutValues = {
|
|
58
|
+
type: "spring",
|
|
59
|
+
damping: Number(globalComputedStyles.getPropertyValue(layoutDampingVar)),
|
|
60
|
+
stiffness: Number(globalComputedStyles.getPropertyValue(layoutStiffnessVar))
|
|
61
|
+
};
|
|
62
|
+
const colorValues = {
|
|
63
|
+
type: "spring",
|
|
64
|
+
damping: Number(globalComputedStyles.getPropertyValue(colorDampingVar)),
|
|
65
|
+
stiffness: Number(globalComputedStyles.getPropertyValue(colorStiffnessVar))
|
|
66
|
+
};
|
|
67
|
+
setLayoutConfig(layoutValues);
|
|
68
|
+
setColorConfig(colorValues);
|
|
69
|
+
}, [
|
|
70
|
+
colorDampingVar,
|
|
71
|
+
colorStiffnessVar,
|
|
72
|
+
layoutDampingVar,
|
|
73
|
+
layoutStiffnessVar
|
|
74
|
+
]);
|
|
75
|
+
const transition = (0, react.useMemo)(() => ({
|
|
76
|
+
type: "spring",
|
|
77
|
+
mass: 1,
|
|
78
|
+
...layoutConfig,
|
|
79
|
+
layout: layoutConfig,
|
|
80
|
+
opacity: colorConfig,
|
|
81
|
+
color: colorConfig,
|
|
82
|
+
borderColor: colorConfig,
|
|
83
|
+
backgroundColor: colorConfig
|
|
84
|
+
}), [colorConfig, layoutConfig]);
|
|
85
|
+
if (require_components_experimental_client_AvoidMotionLibraryProvider.useAvoidMotionLibrary()) return children;
|
|
86
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.LazyMotion, {
|
|
87
|
+
features: loadFeatures,
|
|
88
|
+
strict: true,
|
|
89
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.MotionConfig, {
|
|
90
|
+
transition,
|
|
91
|
+
reducedMotion,
|
|
92
|
+
children
|
|
93
|
+
})
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
SpringMotionConfig.displayName = "SpringMotionConfig";
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
exports.SpringMotionConfig = SpringMotionConfig;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { MotionVariant, MotionVariantSpeed } from "../../tokens/types.cjs";
|
|
2
|
+
import "../../tokens/index.cjs";
|
|
3
|
+
import * as react27 from "react";
|
|
4
|
+
import { LazyFeatureBundle, MotionConfigProps } from "motion/react";
|
|
5
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/client/SpringMotionConfig.d.ts
|
|
8
|
+
interface SpringMotionConfigProps extends Pick<MotionConfigProps, 'children' | 'reducedMotion'> {
|
|
9
|
+
/**
|
|
10
|
+
* The layout variant to use for the motion config.
|
|
11
|
+
* @default 'subtle'
|
|
12
|
+
*/
|
|
13
|
+
layoutVariant?: MotionVariant;
|
|
14
|
+
/**
|
|
15
|
+
* The layout speed to use for the motion config.
|
|
16
|
+
* @default '3'
|
|
17
|
+
*/
|
|
18
|
+
layoutSpeed?: MotionVariantSpeed;
|
|
19
|
+
/**
|
|
20
|
+
* The color variant to use for the motion config.
|
|
21
|
+
* @default 'smooth'
|
|
22
|
+
*/
|
|
23
|
+
colorVariant?: MotionVariant;
|
|
24
|
+
/**
|
|
25
|
+
* The color speed to use for the motion config.
|
|
26
|
+
* @default '3'
|
|
27
|
+
*/
|
|
28
|
+
colorSpeed?: MotionVariantSpeed;
|
|
29
|
+
/**
|
|
30
|
+
* A lazy feature bundle to load additional features.
|
|
31
|
+
* This is useful for reducing bundle size by loading only the necessary features.
|
|
32
|
+
*/
|
|
33
|
+
loadFeatures?: LazyFeatureBundle;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* **🎬 Spring Motion Config to define motion animations for all UDS components**
|
|
37
|
+
*
|
|
38
|
+
* @componentType Client component
|
|
39
|
+
*
|
|
40
|
+
* @description
|
|
41
|
+
* The SpringConfig component provides a way to configure the spring animations for the entire application.
|
|
42
|
+
* This component provides a way to use uds motion configs with Framer Motion.
|
|
43
|
+
*/
|
|
44
|
+
declare function SpringMotionConfig({
|
|
45
|
+
children,
|
|
46
|
+
reducedMotion,
|
|
47
|
+
loadFeatures,
|
|
48
|
+
layoutVariant,
|
|
49
|
+
layoutSpeed,
|
|
50
|
+
colorVariant,
|
|
51
|
+
colorSpeed
|
|
52
|
+
}: SpringMotionConfigProps): string | number | boolean | Iterable<react27.ReactNode> | react_jsx_runtime3.JSX.Element | null | undefined;
|
|
53
|
+
declare namespace SpringMotionConfig {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { SpringMotionConfig, type SpringMotionConfigProps };
|
|
58
|
+
//# sourceMappingURL=SpringMotionConfig.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpringMotionConfig.d.cts","names":[],"sources":["../../../src/components/client/SpringMotionConfig.tsx"],"sourcesContent":[],"mappings":";;;;;;;UA8BU,uBAAA,CAAA,OAAA,CAAgC,KAAK;;;;;EAArC,aAAA,CAAA,CAAA,CAKQ,aALgB;EAAa,CAAA,CAAA;;;;EAoBhC,WAAA,CAAA,CAAA,CAVC,kBAUD;EAKE,CAAA,CAAA;;;AAzB6B,CAAA,CAAA,CAAA,CAAA;EAsC5C,YAAA,CAAA,CAAA,CAvBe,aAuBf;EACA,CAAA,CAAA;;;;EAIA,UAAA,CAAA,CAAA,CAvBa,kBAuBb;EACA,CAAA,CAAA;;;;EACwB,YAAA,CAAA,CAAA,CApBT,iBAoBS;;AAAA,CAAA,CAAA;;;;;;;;;iBARjB,kBAAA;;;;;;;;GAQN,sDAAuB,SAAA,OAAA,CAAA,SAAA,IAAA,kBAAA,CAAA,GAAA,CAAA,OAAA,CAAA,CAAA;kBARjB,kBAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { MotionVariant, MotionVariantSpeed } from "../../tokens/types.js";
|
|
2
|
+
import "../../tokens/index.js";
|
|
3
|
+
import * as react3 from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
import { LazyFeatureBundle, MotionConfigProps } from "motion/react";
|
|
6
|
+
|
|
7
|
+
//#region src/components/client/SpringMotionConfig.d.ts
|
|
8
|
+
interface SpringMotionConfigProps extends Pick<MotionConfigProps, 'children' | 'reducedMotion'> {
|
|
9
|
+
/**
|
|
10
|
+
* The layout variant to use for the motion config.
|
|
11
|
+
* @default 'subtle'
|
|
12
|
+
*/
|
|
13
|
+
layoutVariant?: MotionVariant;
|
|
14
|
+
/**
|
|
15
|
+
* The layout speed to use for the motion config.
|
|
16
|
+
* @default '3'
|
|
17
|
+
*/
|
|
18
|
+
layoutSpeed?: MotionVariantSpeed;
|
|
19
|
+
/**
|
|
20
|
+
* The color variant to use for the motion config.
|
|
21
|
+
* @default 'smooth'
|
|
22
|
+
*/
|
|
23
|
+
colorVariant?: MotionVariant;
|
|
24
|
+
/**
|
|
25
|
+
* The color speed to use for the motion config.
|
|
26
|
+
* @default '3'
|
|
27
|
+
*/
|
|
28
|
+
colorSpeed?: MotionVariantSpeed;
|
|
29
|
+
/**
|
|
30
|
+
* A lazy feature bundle to load additional features.
|
|
31
|
+
* This is useful for reducing bundle size by loading only the necessary features.
|
|
32
|
+
*/
|
|
33
|
+
loadFeatures?: LazyFeatureBundle;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* **🎬 Spring Motion Config to define motion animations for all UDS components**
|
|
37
|
+
*
|
|
38
|
+
* @componentType Client component
|
|
39
|
+
*
|
|
40
|
+
* @description
|
|
41
|
+
* The SpringConfig component provides a way to configure the spring animations for the entire application.
|
|
42
|
+
* This component provides a way to use uds motion configs with Framer Motion.
|
|
43
|
+
*/
|
|
44
|
+
declare function SpringMotionConfig({
|
|
45
|
+
children,
|
|
46
|
+
reducedMotion,
|
|
47
|
+
loadFeatures,
|
|
48
|
+
layoutVariant,
|
|
49
|
+
layoutSpeed,
|
|
50
|
+
colorVariant,
|
|
51
|
+
colorSpeed
|
|
52
|
+
}: SpringMotionConfigProps): string | number | boolean | Iterable<react3.ReactNode> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
53
|
+
declare namespace SpringMotionConfig {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { SpringMotionConfig, type SpringMotionConfigProps };
|
|
58
|
+
//# sourceMappingURL=SpringMotionConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpringMotionConfig.d.ts","names":[],"sources":["../../../src/components/client/SpringMotionConfig.tsx"],"sourcesContent":[],"mappings":";;;;;;;UA8BU,uBAAA,CAAA,OAAA,CAAgC,KAAK;;;;;EAArC,aAAA,CAAA,CAAA,CAKQ,aALgB;EAAa,CAAA,CAAA;;;;EAoBhC,WAAA,CAAA,CAAA,CAVC,kBAUD;EAKE,CAAA,CAAA;;;AAzB6B,CAAA,CAAA,CAAA,CAAA;EAsC5C,YAAA,CAAA,CAAA,CAvBe,aAuBf;EACA,CAAA,CAAA;;;;EAIA,UAAA,CAAA,CAAA,CAvBa,kBAuBb;EACA,CAAA,CAAA;;;;EACwB,YAAA,CAAA,CAAA,CApBT,iBAoBS;;AAAA,CAAA,CAAA;;;;;;;;;iBARjB,kBAAA;;;;;;;;GAQN,sDAAuB,SAAA,MAAA,CAAA,SAAA,IAAA,kBAAA,CAAA,GAAA,CAAA,OAAA,CAAA,CAAA;kBARjB,kBAAA"}
|