@yahoo/uds 3.175.2-beta.1 → 3.175.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/automated-config/dist/generated/autoVariants.d.cts +1 -1
- package/dist/automated-config/dist/generated/autoVariants.d.ts +1 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +1 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +1 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +4 -5
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +4 -5
- package/dist/automated-config/dist/properties.d.cts +3 -4
- package/dist/automated-config/dist/properties.d.ts +3 -4
- package/dist/automated-config/dist/types/ComponentConfig.d.cts +2 -3
- package/dist/automated-config/dist/types/ComponentConfig.d.ts +2 -3
- package/dist/automated-config/dist/types/ComponentStyles.d.cts +2 -3
- package/dist/automated-config/dist/types/ComponentStyles.d.ts +2 -3
- package/dist/automated-config/dist/types/ConfigSchema.d.cts +2 -4
- package/dist/automated-config/dist/types/ConfigSchema.d.ts +2 -4
- package/dist/automated-config/dist/types/StateAxis.cjs +25 -2
- package/dist/automated-config/dist/types/StateAxis.d.cts +0 -21
- package/dist/automated-config/dist/types/StateAxis.d.ts +0 -21
- package/dist/automated-config/dist/types/StateAxis.js +25 -3
- package/dist/automated-config/dist/utils/buildConfigSchema.cjs +1 -0
- package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +15 -15
- package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +15 -15
- package/dist/automated-config/dist/utils/buildConfigSchema.js +1 -1
- package/dist/automated-config/dist/utils/canonicalizeStateKey.d.cts +1 -2
- package/dist/automated-config/dist/utils/canonicalizeStateKey.d.ts +1 -2
- package/dist/automated-config/dist/utils/cartesianProduct.d.cts +1 -1
- package/dist/automated-config/dist/utils/cartesianProduct.d.ts +1 -1
- package/dist/automated-config/dist/utils/coalesceConfigVariant.d.cts +1 -2
- package/dist/automated-config/dist/utils/coalesceConfigVariant.d.ts +1 -2
- package/dist/automated-config/dist/utils/defaults.d.cts +1 -2
- package/dist/automated-config/dist/utils/defaults.d.ts +1 -2
- package/dist/automated-config/dist/utils/generateDefaultClassName.d.cts +1 -1
- package/dist/automated-config/dist/utils/generateDefaultClassName.d.ts +1 -1
- package/dist/automated-config/dist/utils/generateKeyFromFlatConfigPath.d.cts +1 -1
- package/dist/automated-config/dist/utils/generateKeyFromFlatConfigPath.d.ts +1 -1
- package/dist/automated-config/dist/utils/generateSchemaKey.d.cts +2 -9
- package/dist/automated-config/dist/utils/generateSchemaKey.d.ts +2 -9
- package/dist/automated-config/dist/utils/getButtonControlHeight.cjs +1 -1
- package/dist/automated-config/dist/utils/getButtonControlHeight.d.cts +8 -56
- package/dist/automated-config/dist/utils/getButtonControlHeight.d.ts +8 -56
- package/dist/automated-config/dist/utils/getButtonControlHeight.js +1 -1
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.cjs +4 -4
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.d.cts +1 -2
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.d.ts +1 -2
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.js +4 -3
- package/dist/automated-config/dist/utils/getConfigComponentVariant.d.cts +1 -2
- package/dist/automated-config/dist/utils/getConfigComponentVariant.d.ts +1 -2
- package/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.cjs +0 -1
- package/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.cts +1 -2
- package/dist/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.ts +1 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.cjs +0 -1
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +3 -4
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +3 -4
- package/dist/automated-config/dist/utils/getConfigVariantPseudoStates.d.cts +1 -2
- package/dist/automated-config/dist/utils/getConfigVariantPseudoStates.d.ts +1 -2
- package/dist/automated-config/dist/utils/getConfigVariants.cjs +0 -1
- package/dist/automated-config/dist/utils/getConfigVariants.d.cts +1 -2
- package/dist/automated-config/dist/utils/getConfigVariants.d.ts +1 -2
- package/dist/automated-config/dist/utils/getPaginationControlWidthPx.cjs +3 -3
- package/dist/automated-config/dist/utils/getPaginationControlWidthPx.d.cts +1 -1
- package/dist/automated-config/dist/utils/getPaginationControlWidthPx.d.ts +1 -1
- package/dist/automated-config/dist/utils/getPaginationControlWidthPx.js +3 -2
- package/dist/automated-config/dist/utils/iconButtonMatchButtonHeight.d.cts +1 -2
- package/dist/automated-config/dist/utils/iconButtonMatchButtonHeight.d.ts +1 -2
- package/dist/automated-config/dist/utils/index.cjs +130 -66
- package/dist/automated-config/dist/utils/index.d.cts +7 -39
- package/dist/automated-config/dist/utils/index.d.ts +7 -39
- package/dist/automated-config/dist/utils/index.js +83 -71
- package/dist/automated-config/dist/utils/isConfiguratorPropertyVisible.d.cts +2 -3
- package/dist/automated-config/dist/utils/isConfiguratorPropertyVisible.d.ts +2 -3
- package/dist/automated-config/dist/utils/pseudoStateSelectors.cjs +3 -1
- package/dist/automated-config/dist/utils/pseudoStateSelectors.d.cts +1 -43
- package/dist/automated-config/dist/utils/pseudoStateSelectors.d.ts +1 -43
- package/dist/automated-config/dist/utils/pseudoStateSelectors.js +2 -2
- package/dist/automated-config/dist/utils/resolvePropertyStates.cjs +1 -0
- package/dist/automated-config/dist/utils/resolvePropertyStates.d.cts +2 -12
- package/dist/automated-config/dist/utils/resolvePropertyStates.d.ts +2 -12
- package/dist/automated-config/dist/utils/resolvePropertyStates.js +1 -1
- package/dist/automated-config/dist/utils/resolveSlotByCascade.d.cts +1 -1
- package/dist/automated-config/dist/utils/resolveSlotByCascade.d.ts +1 -1
- package/dist/automated-config/dist/utils/subcomponents.d.cts +1 -2
- package/dist/automated-config/dist/utils/subcomponents.d.ts +1 -2
- package/dist/automated-config/dist/utils/variantConfigGuards.d.cts +1 -2
- package/dist/automated-config/dist/utils/variantConfigGuards.d.ts +1 -2
- package/dist/cli/commands/purge.d.cts +1 -1
- package/dist/cli/commands/purge.d.ts +1 -1
- package/dist/cli/commands/sync.cjs +4 -1
- package/dist/cli/commands/sync.d.cts +1 -6
- package/dist/cli/commands/sync.d.ts +1 -6
- package/dist/cli/commands/sync.js +4 -1
- package/dist/cli/commands/version.d.cts +0 -1
- package/dist/cli/commands/version.d.ts +0 -1
- package/dist/cli/dist/cli.cjs +10 -5
- package/dist/cli/dist/cli.js +10 -5
- package/dist/cli/dist/commands/codemod/codemod.cjs +1 -1
- package/dist/cli/dist/commands/codemod/codemod.js +1 -1
- package/dist/cli/dist/commands/editor-rules.cjs +1 -2
- package/dist/cli/dist/commands/editor-rules.js +1 -1
- package/dist/cli/dist/lib/box.cjs +1 -1
- package/dist/cli/dist/lib/box.js +1 -1
- package/dist/cli/dist/utils/analytics.cjs +0 -1
- package/dist/cli/dist/utils/getCommandHelp.cjs +4 -1
- package/dist/cli/dist/utils/getCommandHelp.js +4 -1
- package/dist/cli/dist/utils/rules/config.cjs +10 -5
- package/dist/cli/dist/utils/rules/config.js +10 -4
- package/dist/cli/runner.cjs +5 -3
- package/dist/cli/runner.d.cts +1 -1
- package/dist/cli/runner.d.ts +1 -1
- package/dist/cli/runner.js +5 -3
- package/dist/components/Banner/Banner.cjs +0 -1
- package/dist/components/Banner/Banner.d.cts +2 -3
- package/dist/components/Banner/Banner.d.ts +2 -3
- package/dist/components/Banner/BannerContent.cjs +0 -1
- package/dist/components/Banner/BannerContent.d.cts +1 -3
- package/dist/components/Banner/BannerContent.d.ts +1 -3
- package/dist/components/Banner/BannerDescription.cjs +5 -5
- package/dist/components/Banner/BannerDescription.d.cts +1 -3
- package/dist/components/Banner/BannerDescription.d.ts +1 -3
- package/dist/components/Banner/BannerDescription.js +5 -4
- package/dist/components/Banner/BannerTitle.cjs +2 -2
- package/dist/components/Banner/BannerTitle.d.cts +1 -3
- package/dist/components/Banner/BannerTitle.d.ts +1 -3
- package/dist/components/Banner/BannerTitle.js +2 -1
- package/dist/components/Banner/utils.cjs +0 -1
- package/dist/components/Banner/utils.d.cts +0 -1
- package/dist/components/Banner/utils.d.ts +0 -1
- package/dist/components/Box.cjs +0 -1
- package/dist/components/Box.d.cts +2 -3
- package/dist/components/Box.d.ts +2 -3
- package/dist/components/Divider/Divider.cjs +0 -1
- package/dist/components/Divider/Divider.d.cts +1 -3
- package/dist/components/Divider/Divider.d.ts +1 -3
- package/dist/components/Divider/DividerLabel.cjs +2 -2
- package/dist/components/Divider/DividerLabel.d.cts +1 -3
- package/dist/components/Divider/DividerLabel.d.ts +1 -3
- package/dist/components/Divider/DividerLabel.js +2 -1
- package/dist/components/Divider/DividerLine.cjs +14 -13
- package/dist/components/Divider/DividerLine.d.cts +1 -3
- package/dist/components/Divider/DividerLine.d.ts +1 -3
- package/dist/components/Divider/DividerLine.js +14 -12
- package/dist/components/Divider/types.d.cts +2 -2
- package/dist/components/Divider/types.d.ts +2 -2
- package/dist/components/Divider/utils.cjs +0 -1
- package/dist/components/Divider/utils.d.cts +1 -3
- package/dist/components/Divider/utils.d.ts +1 -3
- package/dist/components/FormLabel.cjs +1 -1
- package/dist/components/FormLabel.d.cts +2 -3
- package/dist/components/FormLabel.d.ts +2 -3
- package/dist/components/HStack.cjs +0 -1
- package/dist/components/HStack.d.cts +2 -4
- package/dist/components/HStack.d.ts +2 -4
- package/dist/components/Icon.cjs +0 -1
- package/dist/components/Icon.d.cts +2 -3
- package/dist/components/Icon.d.ts +2 -3
- package/dist/components/IconSlot.cjs +2 -2
- package/dist/components/IconSlot.d.cts +1 -1
- package/dist/components/IconSlot.d.ts +1 -1
- package/dist/components/Image.cjs +54 -54
- package/dist/components/Image.d.cts +2 -3
- package/dist/components/Image.d.ts +2 -3
- package/dist/components/Image.js +54 -53
- package/dist/components/Link.cjs +9 -9
- package/dist/components/Link.d.cts +2 -3
- package/dist/components/Link.d.ts +2 -3
- package/dist/components/Link.js +9 -8
- package/dist/components/Scrim.cjs +0 -1
- package/dist/components/Scrim.d.cts +1 -3
- package/dist/components/Scrim.d.ts +1 -3
- package/dist/components/SvgFloatingOverlay.cjs +0 -1
- package/dist/components/SvgFloatingOverlay.d.cts +1 -20
- package/dist/components/SvgFloatingOverlay.d.ts +1 -20
- package/dist/components/Text.cjs +6 -4
- package/dist/components/Text.d.cts +5 -4
- package/dist/components/Text.d.ts +5 -4
- package/dist/components/Text.js +6 -3
- package/dist/components/VStack.cjs +0 -1
- package/dist/components/VStack.d.cts +2 -3
- package/dist/components/VStack.d.ts +2 -3
- package/dist/components/client/AnimateHeightChange.cjs +0 -1
- package/dist/components/client/AnimateHeightChange.d.cts +1 -7
- package/dist/components/client/AnimateHeightChange.d.ts +1 -7
- package/dist/components/client/Avatar/Avatar.cjs +0 -1
- package/dist/components/client/Avatar/Avatar.d.cts +1 -3
- package/dist/components/client/Avatar/Avatar.d.ts +1 -3
- package/dist/components/client/Avatar/AvatarIcon.cjs +0 -1
- package/dist/components/client/Avatar/AvatarIcon.d.cts +2 -3
- package/dist/components/client/Avatar/AvatarIcon.d.ts +2 -3
- package/dist/components/client/Avatar/AvatarImage.cjs +0 -1
- package/dist/components/client/Avatar/AvatarImage.d.cts +2 -3
- package/dist/components/client/Avatar/AvatarImage.d.ts +2 -3
- package/dist/components/client/Avatar/AvatarText.cjs +0 -1
- package/dist/components/client/Avatar/AvatarText.d.cts +2 -3
- package/dist/components/client/Avatar/AvatarText.d.ts +2 -3
- package/dist/components/client/Avatar/UDSAvatarConfigProvider.d.cts +2 -6
- package/dist/components/client/Avatar/UDSAvatarConfigProvider.d.ts +2 -6
- package/dist/components/client/Avatar/utils.d.cts +1 -1
- package/dist/components/client/Avatar/utils.d.ts +1 -1
- package/dist/components/client/Badge.cjs +1 -1
- package/dist/components/client/Badge.d.cts +1 -1
- package/dist/components/client/Badge.d.ts +1 -1
- package/dist/components/client/BottomSheet/BottomSheet.cjs +46 -39
- package/dist/components/client/BottomSheet/BottomSheet.d.cts +5 -31
- package/dist/components/client/BottomSheet/BottomSheet.d.ts +5 -31
- package/dist/components/client/BottomSheet/BottomSheet.js +46 -38
- package/dist/components/client/BottomSheet/BottomSheetContent.cjs +0 -1
- package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +1 -6
- package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +1 -6
- package/dist/components/client/BottomSheet/BottomSheetDismiss.cjs +0 -1
- package/dist/components/client/BottomSheet/BottomSheetDismiss.d.cts +1 -3
- package/dist/components/client/BottomSheet/BottomSheetDismiss.d.ts +1 -3
- package/dist/components/client/BottomSheet/BottomSheetHandle.cjs +0 -1
- package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +1 -8
- package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +1 -8
- package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +0 -1
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +1 -9
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +1 -9
- package/dist/components/client/BottomSheet/BottomSheetInternalContext.cjs +0 -1
- package/dist/components/client/BottomSheet/BottomSheetInternalContext.d.cts +1 -3
- package/dist/components/client/BottomSheet/BottomSheetInternalContext.d.ts +1 -3
- package/dist/components/client/BottomSheet/BottomSheetProvider.cjs +2 -2
- package/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +1 -6
- package/dist/components/client/BottomSheet/BottomSheetProvider.d.ts +1 -6
- package/dist/components/client/BottomSheet/BottomSheetProvider.js +2 -1
- package/dist/components/client/BottomSheet/BottomSheetTrigger.cjs +0 -1
- package/dist/components/client/BottomSheet/BottomSheetTrigger.d.cts +1 -3
- package/dist/components/client/BottomSheet/BottomSheetTrigger.d.ts +1 -3
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.cjs +0 -1
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +1 -6
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.ts +1 -6
- package/dist/components/client/BottomSheet/getBottomSheetSnapTransition.d.cts +1 -4
- package/dist/components/client/BottomSheet/getBottomSheetSnapTransition.d.ts +1 -4
- package/dist/components/client/BottomSheet/index.d.cts +1 -1
- package/dist/components/client/BottomSheet/index.d.ts +1 -1
- package/dist/components/client/BottomSheet/useBottomSheetDrag.d.cts +1 -17
- package/dist/components/client/BottomSheet/useBottomSheetDrag.d.ts +1 -17
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +2 -13
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +2 -13
- package/dist/components/client/BottomSheet/useBottomSheetStore.cjs +0 -1
- package/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +2 -8
- package/dist/components/client/BottomSheet/useBottomSheetStore.d.ts +2 -8
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.cjs +0 -1
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.cts +1 -7
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.ts +1 -7
- package/dist/components/client/BottomSheet/useExpansionMargins.cjs +0 -1
- package/dist/components/client/BottomSheet/useExpansionMargins.d.cts +1 -9
- package/dist/components/client/BottomSheet/useExpansionMargins.d.ts +1 -9
- package/dist/components/client/BottomSheet/useViewportHeight.cjs +0 -1
- package/dist/components/client/BottomSheet/useVirtualKeyboard.cjs +0 -1
- package/dist/components/client/BottomSheet/utils.d.cts +0 -1
- package/dist/components/client/BottomSheet/utils.d.ts +0 -1
- package/dist/components/client/Button/Button.cjs +1 -1
- package/dist/components/client/Button/Button.d.cts +0 -1
- package/dist/components/client/Button/Button.d.ts +0 -1
- package/dist/components/client/Button/ButtonBase.cjs +1 -1
- package/dist/components/client/Button/ButtonBase.d.cts +1 -1
- package/dist/components/client/Button/ButtonBase.d.ts +1 -1
- package/dist/components/client/Button/UDSButtonConfigProvider.cjs +0 -1
- package/dist/components/client/Button/UDSButtonConfigProvider.d.cts +2 -6
- package/dist/components/client/Button/UDSButtonConfigProvider.d.ts +2 -6
- package/dist/components/client/Button/buttonConstants.d.cts +1 -0
- package/dist/components/client/Button/buttonConstants.d.ts +1 -0
- package/dist/components/client/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/client/Checkbox/Checkbox.d.cts +0 -1
- package/dist/components/client/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/client/Checkbox/CheckboxBase.cjs +1 -1
- package/dist/components/client/Checkbox/CheckboxBase.d.cts +1 -1
- package/dist/components/client/Checkbox/CheckboxBase.d.ts +1 -1
- package/dist/components/client/Checkbox/checkboxConstants.cjs +0 -1
- package/dist/components/client/Checkbox/checkboxConstants.d.cts +2 -6
- package/dist/components/client/Checkbox/checkboxConstants.d.ts +2 -6
- package/dist/components/client/Checkbox/types.d.cts +2 -2
- package/dist/components/client/Checkbox/types.d.ts +2 -2
- package/dist/components/client/Chip/Chip.cjs +1 -1
- package/dist/components/client/Chip/Chip.d.cts +1 -1
- package/dist/components/client/Chip/Chip.d.ts +1 -1
- package/dist/components/client/Chip/ChipBase.cjs +1 -1
- package/dist/components/client/Chip/ChipBase.d.cts +1 -1
- package/dist/components/client/Chip/ChipBase.d.ts +1 -1
- package/dist/components/client/Chip/ChipButton.cjs +1 -1
- package/dist/components/client/Chip/ChipButton.d.cts +1 -1
- package/dist/components/client/Chip/ChipButton.d.ts +1 -1
- package/dist/components/client/Chip/ChipDismissible.cjs +1 -1
- package/dist/components/client/Chip/ChipDismissible.d.cts +1 -1
- package/dist/components/client/Chip/ChipDismissible.d.ts +1 -1
- package/dist/components/client/Chip/ChipLink.cjs +1 -1
- package/dist/components/client/Chip/ChipLink.d.cts +1 -1
- package/dist/components/client/Chip/ChipLink.d.ts +1 -1
- package/dist/components/client/Chip/ChipToggle.cjs +1 -1
- package/dist/components/client/Chip/ChipToggle.d.cts +1 -1
- package/dist/components/client/Chip/ChipToggle.d.ts +1 -1
- package/dist/components/client/Chip/UDSChipConfigProvider.d.cts +2 -6
- package/dist/components/client/Chip/UDSChipConfigProvider.d.ts +2 -6
- package/dist/components/client/IconButton/IconButton.cjs +0 -1
- package/dist/components/client/IconButton/IconButton.d.cts +1 -3
- package/dist/components/client/IconButton/IconButton.d.ts +1 -3
- package/dist/components/client/IconButton/IconButtonBase.cjs +0 -1
- package/dist/components/client/IconButton/IconButtonBase.d.cts +3 -4
- package/dist/components/client/IconButton/IconButtonBase.d.ts +3 -4
- package/dist/components/client/IconButton/UDSIconButtonConfigProvider.cjs +0 -1
- package/dist/components/client/IconButton/UDSIconButtonConfigProvider.d.cts +2 -6
- package/dist/components/client/IconButton/UDSIconButtonConfigProvider.d.ts +2 -6
- package/dist/components/client/Input/Input.cjs +1 -1
- package/dist/components/client/Input/Input.d.cts +2 -3
- package/dist/components/client/Input/Input.d.ts +2 -3
- package/dist/components/client/Input/InputHelpText.cjs +6 -6
- package/dist/components/client/Input/InputHelpText.d.cts +1 -7
- package/dist/components/client/Input/InputHelpText.d.ts +1 -7
- package/dist/components/client/Input/InputHelpText.js +6 -5
- package/dist/components/client/Input/InputHelpTextInternal.cjs +0 -1
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +2 -3
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +2 -3
- package/dist/components/client/Input/UDSInputConfigProvider.d.cts +2 -6
- package/dist/components/client/Input/UDSInputConfigProvider.d.ts +2 -6
- package/dist/components/client/Menu/Menu.Content.cjs +6 -1
- package/dist/components/client/Menu/Menu.Content.d.cts +2 -3
- package/dist/components/client/Menu/Menu.Content.d.ts +2 -3
- package/dist/components/client/Menu/Menu.Content.js +6 -0
- package/dist/components/client/Menu/Menu.Divider.cjs +9 -9
- package/dist/components/client/Menu/Menu.Divider.d.cts +2 -3
- package/dist/components/client/Menu/Menu.Divider.d.ts +2 -3
- package/dist/components/client/Menu/Menu.Divider.js +9 -8
- package/dist/components/client/Menu/Menu.Item.cjs +25 -25
- package/dist/components/client/Menu/Menu.Item.d.cts +2 -3
- package/dist/components/client/Menu/Menu.Item.d.ts +2 -3
- package/dist/components/client/Menu/Menu.Item.js +25 -24
- package/dist/components/client/Menu/Menu.ItemBase.cjs +0 -1
- package/dist/components/client/Menu/Menu.ItemBase.d.cts +2 -3
- package/dist/components/client/Menu/Menu.ItemBase.d.ts +2 -3
- package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +0 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +2 -3
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +2 -3
- package/dist/components/client/Menu/Menu.Provider.cjs +2 -2
- package/dist/components/client/Menu/Menu.Provider.d.cts +1 -7
- package/dist/components/client/Menu/Menu.Provider.d.ts +1 -7
- package/dist/components/client/Menu/Menu.Provider.js +2 -1
- package/dist/components/client/Menu/Menu.Trigger.cjs +0 -1
- package/dist/components/client/Menu/Menu.Trigger.d.cts +1 -3
- package/dist/components/client/Menu/Menu.Trigger.d.ts +1 -3
- package/dist/components/client/Menu/Menu.index.d.cts +0 -2
- package/dist/components/client/Menu/Menu.index.d.ts +0 -2
- package/dist/components/client/Menu/UDSMenuItemConfigProvider.d.cts +2 -6
- package/dist/components/client/Menu/UDSMenuItemConfigProvider.d.ts +2 -6
- package/dist/components/client/Menu/index.d.cts +1 -0
- package/dist/components/client/Menu/index.d.ts +1 -0
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.cts +7 -3
- package/dist/components/client/Menu/utils/transformAriakitPlacement.d.ts +7 -3
- package/dist/components/client/Modal/ManagedModal.cjs +0 -1
- package/dist/components/client/Modal/ManagedModal.d.cts +1 -5
- package/dist/components/client/Modal/ManagedModal.d.ts +1 -5
- package/dist/components/client/Modal/Modal.cjs +6 -1
- package/dist/components/client/Modal/Modal.d.cts +2 -28
- package/dist/components/client/Modal/Modal.d.ts +2 -28
- package/dist/components/client/Modal/Modal.js +6 -0
- package/dist/components/client/Modal/ModalActions.cjs +0 -1
- package/dist/components/client/Modal/ModalActions.d.cts +1 -8
- package/dist/components/client/Modal/ModalActions.d.ts +1 -8
- package/dist/components/client/Modal/ModalContent.cjs +0 -1
- package/dist/components/client/Modal/ModalContent.d.cts +1 -7
- package/dist/components/client/Modal/ModalContent.d.ts +1 -7
- package/dist/components/client/Modal/ModalContext.cjs +0 -1
- package/dist/components/client/Modal/ModalContext.d.cts +1 -3
- package/dist/components/client/Modal/ModalContext.d.ts +1 -3
- package/dist/components/client/Modal/ModalDescription.cjs +0 -1
- package/dist/components/client/Modal/ModalDescription.d.cts +1 -6
- package/dist/components/client/Modal/ModalDescription.d.ts +1 -6
- package/dist/components/client/Modal/ModalPortal.cjs +0 -1
- package/dist/components/client/Modal/ModalPortal.d.cts +1 -3
- package/dist/components/client/Modal/ModalPortal.d.ts +1 -3
- package/dist/components/client/Modal/ModalTitle.cjs +0 -1
- package/dist/components/client/Modal/ModalTitle.d.cts +1 -6
- package/dist/components/client/Modal/ModalTitle.d.ts +1 -6
- package/dist/components/client/Modal/UDSModalConfigProvider.cjs +0 -1
- package/dist/components/client/Modal/UDSModalConfigProvider.d.cts +1 -6
- package/dist/components/client/Modal/UDSModalConfigProvider.d.ts +1 -6
- package/dist/components/client/Modal/createModal.d.cts +0 -1
- package/dist/components/client/Modal/createModal.d.ts +0 -1
- package/dist/components/client/Modal/modalStore.d.cts +0 -1
- package/dist/components/client/Modal/modalStore.d.ts +0 -1
- package/dist/components/client/Modal/useScrollFade.cjs +0 -1
- package/dist/components/client/Modal/utils.cjs +0 -1
- package/dist/components/client/Modal/utils.d.cts +0 -1
- package/dist/components/client/Modal/utils.d.ts +0 -1
- package/dist/components/client/PaddleNav/PaddleButton.cjs +0 -1
- package/dist/components/client/PaddleNav/PaddleButton.d.cts +7 -6
- package/dist/components/client/PaddleNav/PaddleButton.d.ts +7 -6
- package/dist/components/client/PaddleNav/PaddleButtonNext.cjs +0 -1
- package/dist/components/client/PaddleNav/PaddleButtonNext.d.cts +2 -3
- package/dist/components/client/PaddleNav/PaddleButtonNext.d.ts +2 -3
- package/dist/components/client/PaddleNav/PaddleButtonPrevious.cjs +0 -1
- package/dist/components/client/PaddleNav/PaddleButtonPrevious.d.cts +2 -3
- package/dist/components/client/PaddleNav/PaddleButtonPrevious.d.ts +2 -3
- package/dist/components/client/PaddleNav/PaddleNav.cjs +0 -1
- package/dist/components/client/PaddleNav/PaddleNav.d.cts +1 -3
- package/dist/components/client/PaddleNav/PaddleNav.d.ts +1 -3
- package/dist/components/client/PaddleNav/PaddleNavContent.cjs +0 -1
- package/dist/components/client/PaddleNav/PaddleNavContent.d.cts +1 -3
- package/dist/components/client/PaddleNav/PaddleNavContent.d.ts +1 -3
- package/dist/components/client/PaddleNav/UDSPaddleNavConfigProvider.d.cts +2 -6
- package/dist/components/client/PaddleNav/UDSPaddleNavConfigProvider.d.ts +2 -6
- package/dist/components/client/PaddleNav/index.d.cts +1 -1
- package/dist/components/client/PaddleNav/index.d.ts +1 -1
- package/dist/components/client/PaddleNav/paddleButtonIcons.cjs +0 -1
- package/dist/components/client/PaddleNav/paddleButtonIcons.d.cts +1 -6
- package/dist/components/client/PaddleNav/paddleButtonIcons.d.ts +1 -6
- package/dist/components/client/PaddleNav/paddleNavContext.cjs +0 -1
- package/dist/components/client/PaddleNav/paddleNavContext.d.cts +1 -3
- package/dist/components/client/PaddleNav/paddleNavContext.d.ts +1 -3
- package/dist/components/client/PaddleNav/utils/resolvePaddleNavCornerOrientation.d.cts +0 -1
- package/dist/components/client/PaddleNav/utils/resolvePaddleNavCornerOrientation.d.ts +0 -1
- package/dist/components/client/Pagination/Pagination.cjs +22 -22
- package/dist/components/client/Pagination/Pagination.d.cts +1 -3
- package/dist/components/client/Pagination/Pagination.d.ts +1 -3
- package/dist/components/client/Pagination/Pagination.js +22 -21
- package/dist/components/client/Pagination/PaginationEllipsis.cjs +4 -3
- package/dist/components/client/Pagination/PaginationEllipsis.d.cts +1 -3
- package/dist/components/client/Pagination/PaginationEllipsis.d.ts +1 -3
- package/dist/components/client/Pagination/PaginationEllipsis.js +4 -2
- package/dist/components/client/Pagination/PaginationItem.cjs +0 -1
- package/dist/components/client/Pagination/PaginationItem.d.cts +1 -3
- package/dist/components/client/Pagination/PaginationItem.d.ts +1 -3
- package/dist/components/client/Pagination/PaginationLink.cjs +0 -1
- package/dist/components/client/Pagination/PaginationLink.d.cts +1 -3
- package/dist/components/client/Pagination/PaginationLink.d.ts +1 -3
- package/dist/components/client/Pagination/PaginationNext.cjs +0 -1
- package/dist/components/client/Pagination/PaginationNext.d.cts +1 -3
- package/dist/components/client/Pagination/PaginationNext.d.ts +1 -3
- package/dist/components/client/Pagination/PaginationNumbers.cjs +2 -2
- package/dist/components/client/Pagination/PaginationNumbers.d.cts +1 -3
- package/dist/components/client/Pagination/PaginationNumbers.d.ts +1 -3
- package/dist/components/client/Pagination/PaginationNumbers.js +2 -1
- package/dist/components/client/Pagination/PaginationPrev.cjs +0 -1
- package/dist/components/client/Pagination/PaginationPrev.d.cts +1 -3
- package/dist/components/client/Pagination/PaginationPrev.d.ts +1 -3
- package/dist/components/client/Pagination/UDSPaginationConfigProvider.d.cts +2 -6
- package/dist/components/client/Pagination/UDSPaginationConfigProvider.d.ts +2 -6
- package/dist/components/client/Pagination/computeVisiblePages.d.cts +1 -7
- package/dist/components/client/Pagination/computeVisiblePages.d.ts +1 -7
- package/dist/components/client/Pagination/ellipsisDefault.cjs +1 -1
- package/dist/components/client/Pagination/ellipsisDefault.d.cts +0 -1
- package/dist/components/client/Pagination/ellipsisDefault.d.ts +0 -1
- package/dist/components/client/Pagination/ellipsisDefault.js +1 -1
- package/dist/components/client/Pagination/ellipsisNone.d.cts +0 -1
- package/dist/components/client/Pagination/ellipsisNone.d.ts +0 -1
- package/dist/components/client/Pagination/paginationContext.cjs +0 -1
- package/dist/components/client/Pagination/paginationContext.d.cts +2 -8
- package/dist/components/client/Pagination/paginationContext.d.ts +2 -8
- package/dist/components/client/Pagination/paginationStyles.cjs +0 -1
- package/dist/components/client/Pagination/paginationStyles.d.cts +0 -1
- package/dist/components/client/Pagination/paginationStyles.d.ts +0 -1
- package/dist/components/client/Popover/Popover.cjs +0 -1
- package/dist/components/client/Popover/Popover.d.cts +1 -20
- package/dist/components/client/Popover/Popover.d.ts +1 -20
- package/dist/components/client/Popover/PopoverContent.cjs +2 -1
- package/dist/components/client/Popover/PopoverContent.d.cts +2 -3
- package/dist/components/client/Popover/PopoverContent.d.ts +2 -3
- package/dist/components/client/Popover/PopoverContent.js +2 -0
- package/dist/components/client/Popover/PopoverContext.cjs +0 -1
- package/dist/components/client/Popover/PopoverContext.d.cts +1 -3
- package/dist/components/client/Popover/PopoverContext.d.ts +1 -3
- package/dist/components/client/Popover/PopoverTrigger.cjs +2 -2
- package/dist/components/client/Popover/PopoverTrigger.d.cts +1 -5
- package/dist/components/client/Popover/PopoverTrigger.d.ts +1 -5
- package/dist/components/client/Popover/PopoverTrigger.js +2 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.cjs +0 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -6
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -6
- package/dist/components/client/Pressable.cjs +0 -1
- package/dist/components/client/Pressable.d.cts +2 -3
- package/dist/components/client/Pressable.d.ts +2 -3
- package/dist/components/client/Radio/Radio.cjs +1 -1
- package/dist/components/client/Radio/Radio.d.cts +0 -1
- package/dist/components/client/Radio/Radio.d.ts +0 -1
- package/dist/components/client/Radio/RadioBase.cjs +1 -1
- package/dist/components/client/Radio/RadioBase.d.cts +1 -1
- package/dist/components/client/Radio/RadioBase.d.ts +1 -1
- package/dist/components/client/Radio/RadioGroupProvider.cjs +1 -1
- package/dist/components/client/Radio/RadioGroupProvider.d.cts +1 -1
- package/dist/components/client/Radio/RadioGroupProvider.d.ts +1 -1
- package/dist/components/client/Radio/RadioGroupStore.cjs +0 -1
- package/dist/components/client/Radio/RadioGroupStore.d.cts +1 -3
- package/dist/components/client/Radio/RadioGroupStore.d.ts +1 -3
- package/dist/components/client/Radio/radioConstants.d.cts +1 -0
- package/dist/components/client/Radio/radioConstants.d.ts +1 -0
- package/dist/components/client/Radio/types.d.cts +2 -2
- package/dist/components/client/Radio/types.d.ts +2 -2
- package/dist/components/client/Radio/useRadioGroup.cjs +0 -1
- package/dist/components/client/Radio/useRadioGroup.d.cts +1 -6
- package/dist/components/client/Radio/useRadioGroup.d.ts +1 -6
- package/dist/components/client/Select/Select.cjs +16 -14
- package/dist/components/client/Select/Select.d.cts +2 -3
- package/dist/components/client/Select/Select.d.ts +2 -3
- package/dist/components/client/Select/Select.js +15 -13
- package/dist/components/client/Select/SelectContent.cjs +0 -1
- package/dist/components/client/Select/SelectContent.d.cts +1 -3
- package/dist/components/client/Select/SelectContent.d.ts +1 -3
- package/dist/components/client/Select/SelectDivider.cjs +9 -9
- package/dist/components/client/Select/SelectDivider.d.cts +2 -3
- package/dist/components/client/Select/SelectDivider.d.ts +2 -3
- package/dist/components/client/Select/SelectDivider.js +9 -8
- package/dist/components/client/Select/SelectHelpText.cjs +3 -2
- package/dist/components/client/Select/SelectHelpText.d.cts +2 -8
- package/dist/components/client/Select/SelectHelpText.d.ts +2 -8
- package/dist/components/client/Select/SelectHelpText.js +2 -1
- package/dist/components/client/Select/SelectItem.cjs +2 -2
- package/dist/components/client/Select/SelectItem.d.cts +2 -3
- package/dist/components/client/Select/SelectItem.d.ts +2 -3
- package/dist/components/client/Select/SelectItem.js +2 -1
- package/dist/components/client/Select/SelectTrigger.cjs +0 -1
- package/dist/components/client/Select/SelectTrigger.d.cts +2 -3
- package/dist/components/client/Select/SelectTrigger.d.ts +2 -3
- package/dist/components/client/Select/SelectValue.cjs +0 -1
- package/dist/components/client/Select/SelectValue.d.cts +1 -6
- package/dist/components/client/Select/SelectValue.d.ts +1 -6
- package/dist/components/client/Select/UDSSelectItemConfigProvider.d.cts +2 -6
- package/dist/components/client/Select/UDSSelectItemConfigProvider.d.ts +2 -6
- package/dist/components/client/Select/index.d.cts +1 -1
- package/dist/components/client/Select/index.d.ts +1 -1
- package/dist/components/client/Select/selectContext.cjs +0 -1
- package/dist/components/client/Select/selectContext.d.cts +4 -4
- package/dist/components/client/Select/selectContext.d.ts +4 -4
- package/dist/components/client/Select/selectFieldStyles.d.cts +3 -12
- package/dist/components/client/Select/selectFieldStyles.d.ts +3 -12
- package/dist/components/client/SpringMotionConfig.cjs +11 -11
- package/dist/components/client/SpringMotionConfig.d.cts +2 -10
- package/dist/components/client/SpringMotionConfig.d.ts +2 -10
- package/dist/components/client/SpringMotionConfig.js +11 -10
- package/dist/components/client/Switch/Switch.cjs +2 -2
- package/dist/components/client/Switch/Switch.d.cts +0 -1
- package/dist/components/client/Switch/Switch.d.ts +0 -1
- package/dist/components/client/Switch/SwitchBase.cjs +1 -1
- package/dist/components/client/Switch/SwitchBase.d.cts +0 -1
- package/dist/components/client/Switch/SwitchBase.d.ts +0 -1
- package/dist/components/client/Switch/switchStyles.d.cts +1 -0
- package/dist/components/client/Switch/switchStyles.d.ts +1 -0
- package/dist/components/client/Switch/types.d.cts +2 -2
- package/dist/components/client/Switch/types.d.ts +2 -2
- package/dist/components/client/Tabs/Tab.cjs +0 -1
- package/dist/components/client/Tabs/Tab.d.cts +1 -12
- package/dist/components/client/Tabs/Tab.d.ts +1 -12
- package/dist/components/client/Tabs/TabList.cjs +2 -2
- package/dist/components/client/Tabs/TabList.d.cts +1 -3
- package/dist/components/client/Tabs/TabList.d.ts +1 -3
- package/dist/components/client/Tabs/TabList.js +2 -1
- package/dist/components/client/Tabs/TabPanel.cjs +0 -1
- package/dist/components/client/Tabs/TabPanel.d.cts +1 -3
- package/dist/components/client/Tabs/TabPanel.d.ts +1 -3
- package/dist/components/client/Tabs/Tabs.cjs +0 -1
- package/dist/components/client/Tabs/Tabs.d.cts +1 -10
- package/dist/components/client/Tabs/Tabs.d.ts +1 -10
- package/dist/components/client/Tabs/UDSTabConfigProvider.d.cts +2 -6
- package/dist/components/client/Tabs/UDSTabConfigProvider.d.ts +2 -6
- package/dist/components/client/Tabs/index.d.cts +1 -1
- package/dist/components/client/Tabs/index.d.ts +1 -1
- package/dist/components/client/Tabs/tabsContext.cjs +0 -1
- package/dist/components/client/Tabs/tabsContext.d.cts +1 -3
- package/dist/components/client/Tabs/tabsContext.d.ts +1 -3
- package/dist/components/client/Toast/Toast.cjs +0 -1
- package/dist/components/client/Toast/Toast.d.cts +3 -17
- package/dist/components/client/Toast/Toast.d.ts +3 -17
- package/dist/components/client/Toast/ToastContainer.cjs +10 -8
- package/dist/components/client/Toast/ToastContainer.d.cts +2 -9
- package/dist/components/client/Toast/ToastContainer.d.ts +2 -9
- package/dist/components/client/Toast/ToastContainer.js +9 -7
- package/dist/components/client/Toast/ToastPortal.cjs +0 -1
- package/dist/components/client/Toast/ToastPortal.d.cts +1 -6
- package/dist/components/client/Toast/ToastPortal.d.ts +1 -6
- package/dist/components/client/Toast/UDSToastConfigProvider.cjs +0 -1
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +7 -11
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +7 -11
- package/dist/components/client/Toast/createToast.cjs +2 -2
- package/dist/components/client/Toast/createToast.d.cts +1 -1
- package/dist/components/client/Toast/createToast.d.ts +1 -1
- package/dist/components/client/Tooltip/Tooltip.cjs +0 -1
- package/dist/components/client/Tooltip/Tooltip.d.cts +1 -13
- package/dist/components/client/Tooltip/Tooltip.d.ts +1 -13
- package/dist/components/client/Tooltip/TooltipContent.cjs +0 -1
- package/dist/components/client/Tooltip/TooltipContent.d.cts +2 -4
- package/dist/components/client/Tooltip/TooltipContent.d.ts +2 -4
- package/dist/components/client/Tooltip/TooltipTrigger.cjs +0 -1
- package/dist/components/client/Tooltip/TooltipTrigger.d.cts +1 -5
- package/dist/components/client/Tooltip/TooltipTrigger.d.ts +1 -5
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.cjs +0 -1
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +1 -6
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +1 -6
- package/dist/components/client/Tooltip/tooltipContext.cjs +0 -1
- package/dist/components/client/Tooltip/tooltipContext.d.cts +1 -3
- package/dist/components/client/Tooltip/tooltipContext.d.ts +1 -3
- package/dist/components/client/UDSBadgeConfigProvider.d.cts +2 -6
- package/dist/components/client/UDSBadgeConfigProvider.d.ts +2 -6
- package/dist/components/client/index.d.cts +18 -0
- package/dist/components/client/index.d.ts +18 -0
- package/dist/components/client/motionFeatures/domAnimation.cjs +0 -1
- package/dist/components/client/motionFeatures/domMax.cjs +0 -1
- package/dist/components/client/providers/UDSBreakpointsConfigProvider.cjs +0 -1
- package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +2 -7
- package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.ts +2 -7
- package/dist/components/client/providers/UDSConfigProvider.cjs +0 -1
- package/dist/components/client/providers/UDSConfigProvider.d.cts +1 -24
- package/dist/components/client/providers/UDSConfigProvider.d.ts +1 -24
- package/dist/components/client/providers/createUDSConfigProvider.cjs +0 -1
- package/dist/components/client/providers/createUDSConfigProvider.d.cts +1 -6
- package/dist/components/client/providers/createUDSConfigProvider.d.ts +1 -6
- package/dist/components/experimental/Spinner.cjs +0 -1
- package/dist/components/experimental/Spinner.d.cts +1 -8
- package/dist/components/experimental/Spinner.d.ts +1 -8
- package/dist/components/experimental/Table.cjs +1 -1
- package/dist/components/experimental/Table.d.cts +3 -7
- package/dist/components/experimental/Table.d.ts +3 -7
- package/dist/components/experimental/Table.mocks.cjs +0 -1
- package/dist/components/experimental/Table.mocks.d.cts +0 -1
- package/dist/components/experimental/Table.mocks.d.ts +0 -1
- package/dist/components/experimental/client/Accordion.cjs +0 -1
- package/dist/components/experimental/client/Accordion.d.cts +2 -15
- package/dist/components/experimental/client/Accordion.d.ts +2 -15
- package/dist/components/experimental/client/SegmentedControl.cjs +1 -1
- package/dist/components/experimental/client/SegmentedControl.d.cts +2 -9
- package/dist/components/experimental/client/SegmentedControl.d.ts +2 -9
- package/dist/components/experimental/client/index.d.cts +1 -1
- package/dist/components/experimental/client/index.d.ts +1 -1
- package/dist/components/experimental/index.d.cts +2 -1
- package/dist/components/experimental/index.d.ts +2 -1
- package/dist/components/index.d.cts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/config/dist/index.d.cts +3 -12
- package/dist/config/dist/index.d.ts +3 -12
- package/dist/css/dist/commands/css.cjs +2 -1
- package/dist/css/dist/commands/css.helpers.cjs +3 -0
- package/dist/css/dist/commands/css.helpers.js +1 -1
- package/dist/css/dist/commands/css.js +2 -1
- package/dist/css/dist/commands/generateComponentData.d.cts +2 -2
- package/dist/css/dist/commands/generateComponentData.d.ts +2 -2
- package/dist/css/dist/css/generate.cjs +15 -12
- package/dist/css/dist/css/generate.d.cts +4 -5
- package/dist/css/dist/css/generate.d.ts +4 -5
- package/dist/css/dist/css/generate.helpers.cjs +3 -0
- package/dist/css/dist/css/generate.helpers.d.cts +3 -0
- package/dist/css/dist/css/generate.helpers.d.ts +2 -1
- package/dist/css/dist/css/generate.helpers.js +1 -1
- package/dist/css/dist/css/generate.js +15 -12
- package/dist/css/dist/css/nodeUtils.cjs +11 -5
- package/dist/css/dist/css/nodeUtils.js +11 -5
- package/dist/css/dist/css/perf.cjs +6 -1
- package/dist/css/dist/css/perf.js +1 -1
- package/dist/css/dist/css/postcss.helpers.cjs +1 -0
- package/dist/css/dist/css/postcss.helpers.js +1 -1
- package/dist/css/dist/css/runner.cjs +12 -5
- package/dist/css/dist/css/runner.helpers.cjs +1 -0
- package/dist/css/dist/css/runner.helpers.js +1 -1
- package/dist/css/dist/css/runner.js +12 -5
- package/dist/css/dist/css/theme.d.cts +2 -3
- package/dist/css/dist/css/theme.d.ts +2 -3
- package/dist/css/dist/css/utils.cjs +1 -1
- package/dist/css/dist/css/utils.js +1 -1
- package/dist/css/dist/css/workerPool.cjs +1 -0
- package/dist/css/dist/css/workerPool.js +1 -1
- package/dist/css/dist/index.d.cts +2 -1
- package/dist/css/dist/index.d.ts +2 -1
- package/dist/css/dist/packages/automated-config/dist/utils/index.d.cts +1 -1
- package/dist/css/dist/packages/automated-config/dist/utils/index.d.ts +1 -1
- package/dist/css/dist/packages/config/dist/index.d.cts +1 -1
- package/dist/css/dist/packages/config/dist/index.d.ts +1 -1
- package/dist/css/dist/packages/fixtures/dist/index.cjs +19 -4
- package/dist/css/dist/packages/fixtures/dist/index.js +7 -5
- package/dist/css/dist/packages/palette/dist/index.cjs +1 -0
- package/dist/css/dist/packages/palette/dist/index.js +1 -1
- package/dist/css/dist/postcss/filterUnusedVariantRules.d.cts +3 -0
- package/dist/css/dist/postcss/filterUnusedVariantRules.d.ts +3 -0
- package/dist/css/dist/postcss/pruneVars.d.cts +1 -2
- package/dist/css/dist/postcss/pruneVars.d.ts +1 -2
- package/dist/css/dist/postcss.d.cts +2 -1
- package/dist/css/dist/postcss.d.ts +2 -1
- package/dist/css/dist/purger/optimized/ast/expressions.cjs +4 -2
- package/dist/css/dist/purger/optimized/ast/expressions.js +4 -3
- package/dist/css/dist/purger/optimized/ast/jsx.cjs +3 -0
- package/dist/css/dist/purger/optimized/ast/jsx.js +1 -1
- package/dist/css/dist/purger/optimized/ast/oxc.cjs +4 -6
- package/dist/css/dist/purger/optimized/ast/oxc.js +4 -6
- package/dist/css/dist/purger/optimized/ast/props.cjs +1 -0
- package/dist/css/dist/purger/optimized/ast/props.js +1 -1
- package/dist/css/dist/purger/optimized/ast/spread.cjs +1 -0
- package/dist/css/dist/purger/optimized/ast/spread.js +1 -1
- package/dist/css/dist/purger/optimized/purge.cjs +6 -2
- package/dist/css/dist/purger/optimized/purge.js +6 -3
- package/dist/css/dist/purger/optimized/purgeFromCode.cjs +6 -3
- package/dist/css/dist/purger/optimized/purgeFromCode.js +5 -4
- package/dist/css/dist/purger/optimized/utils/files.cjs +1 -0
- package/dist/css/dist/purger/optimized/utils/files.js +1 -1
- package/dist/css/dist/runtimeConfig/hookMetadata.cjs +4 -1
- package/dist/css/dist/runtimeConfig/hookMetadata.js +3 -2
- package/dist/css/dist/utils/optimizeCSS.cjs +5 -0
- package/dist/css/dist/utils/optimizeCSS.js +1 -1
- package/dist/css-animation/Button/Button.cjs +1 -1
- package/dist/css-animation/Button/Button.d.cts +1 -1
- package/dist/css-animation/Button/Button.d.ts +1 -1
- package/dist/css-animation/Checkbox/Checkbox.cjs +1 -1
- package/dist/css-animation/Checkbox/Checkbox.d.cts +0 -1
- package/dist/css-animation/Checkbox/Checkbox.d.ts +0 -1
- package/dist/css-animation/IconButton/IconButton.cjs +0 -1
- package/dist/css-animation/IconButton/IconButton.d.cts +2 -3
- package/dist/css-animation/IconButton/IconButton.d.ts +2 -3
- package/dist/css-animation/Radio/Radio.cjs +1 -1
- package/dist/css-animation/Radio/Radio.d.cts +0 -1
- package/dist/css-animation/Radio/Radio.d.ts +0 -1
- package/dist/css-animation/Switch/Switch.cjs +1 -1
- package/dist/css-animation/Switch/Switch.d.cts +0 -1
- package/dist/css-animation/Switch/Switch.d.ts +0 -1
- package/dist/css-animation/Switch/SwitchStaticHandle.cjs +0 -1
- package/dist/css-animation/Switch/SwitchStaticHandle.d.cts +2 -12
- package/dist/css-animation/Switch/SwitchStaticHandle.d.ts +2 -12
- package/dist/css-animation/index.d.cts +5 -0
- package/dist/css-animation/index.d.ts +5 -0
- package/dist/css-tokens/dist/index.d.cts +2 -12
- package/dist/css-tokens/dist/index.d.ts +2 -12
- package/dist/defaultTokensConfig.d.cts +1 -0
- package/dist/defaultTokensConfig.d.ts +1 -0
- package/dist/fixtures/dist/arbitrary.d.cts +1 -1
- package/dist/fixtures/dist/arbitrary.d.ts +1 -1
- package/dist/fixtures/dist/index.d.cts +1 -3
- package/dist/fixtures/dist/index.d.ts +1 -3
- package/dist/fixtures/index.d.cts +0 -1
- package/dist/fixtures/index.d.ts +0 -1
- package/dist/fixtures/src/arbitrary.cjs +1 -0
- package/dist/fixtures/src/arbitrary.d.cts +1 -2
- package/dist/fixtures/src/arbitrary.d.ts +1 -2
- package/dist/fixtures/src/arbitrary.js +1 -1
- package/dist/fixtures/src/util.d.cts +0 -1
- package/dist/fixtures/src/util.d.ts +0 -1
- package/dist/fonts/dist/index.d.cts +20 -12
- package/dist/fonts/dist/index.d.ts +20 -12
- package/dist/hooks/useForkRef.cjs +0 -1
- package/dist/hooks/useForkRef.d.cts +0 -1
- package/dist/hooks/useForkRef.d.ts +0 -1
- package/dist/hooks/usePrefersReducedMotion.cjs +0 -1
- package/dist/hooks/useRtl.cjs +0 -1
- package/dist/hooks/useSvgFloatingContent.cjs +1 -4
- package/dist/hooks/useSvgFloatingContent.d.cts +1 -12
- package/dist/hooks/useSvgFloatingContent.d.ts +1 -12
- package/dist/hooks/useSvgFloatingContent.js +1 -3
- package/dist/icons/dist/types.d.cts +7 -4
- package/dist/icons/dist/types.d.ts +7 -4
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/modes/dist/index.d.cts +1 -2
- package/dist/modes/dist/index.d.ts +1 -2
- package/dist/motion-tokens/dist/index.d.cts +0 -5
- package/dist/motion-tokens/dist/index.d.ts +0 -5
- package/dist/palette/dist/index.d.cts +1 -1
- package/dist/palette/dist/index.d.ts +1 -1
- package/dist/postcss.d.cts +1 -0
- package/dist/postcss.d.ts +1 -0
- package/dist/providers/ColorModeProvider.cjs +0 -1
- package/dist/providers/ColorModeProvider.d.cts +3 -8
- package/dist/providers/ColorModeProvider.d.ts +3 -8
- package/dist/providers/ScaleModeProvider.cjs +0 -1
- package/dist/providers/ScaleModeProvider.d.cts +3 -8
- package/dist/providers/ScaleModeProvider.d.ts +3 -8
- package/dist/providers/ThemeProvider.cjs +0 -1
- package/dist/providers/ThemeProvider.d.cts +2 -7
- package/dist/providers/ThemeProvider.d.ts +2 -7
- package/dist/runtime/avatarConfig.d.cts +2 -3
- package/dist/runtime/avatarConfig.d.ts +2 -3
- package/dist/runtime/badgeConfig.d.cts +2 -3
- package/dist/runtime/badgeConfig.d.ts +2 -3
- package/dist/runtime/bottomSheetConfig.d.cts +1 -4
- package/dist/runtime/bottomSheetConfig.d.ts +1 -4
- package/dist/runtime/breakpointsConfig.d.cts +3 -4
- package/dist/runtime/breakpointsConfig.d.ts +3 -4
- package/dist/runtime/buttonConfig.d.cts +2 -3
- package/dist/runtime/buttonConfig.d.ts +2 -3
- package/dist/runtime/chipConfig.d.cts +2 -3
- package/dist/runtime/chipConfig.d.ts +2 -3
- package/dist/runtime/iconButtonConfig.d.cts +2 -3
- package/dist/runtime/iconButtonConfig.d.ts +2 -3
- package/dist/runtime/index.d.cts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/inputConfig.d.cts +2 -3
- package/dist/runtime/inputConfig.d.ts +2 -3
- package/dist/runtime/menuItemConfig.d.cts +2 -3
- package/dist/runtime/menuItemConfig.d.ts +2 -3
- package/dist/runtime/modalConfig.d.cts +2 -3
- package/dist/runtime/modalConfig.d.ts +2 -3
- package/dist/runtime/paddleNavConfig.d.cts +2 -3
- package/dist/runtime/paddleNavConfig.d.ts +2 -3
- package/dist/runtime/paginationConfig.d.cts +2 -3
- package/dist/runtime/paginationConfig.d.ts +2 -3
- package/dist/runtime/popoverConfig.cjs +12 -6
- package/dist/runtime/popoverConfig.d.cts +2 -5
- package/dist/runtime/popoverConfig.d.ts +2 -5
- package/dist/runtime/popoverConfig.js +12 -6
- package/dist/runtime/selectItemConfig.d.cts +2 -3
- package/dist/runtime/selectItemConfig.d.ts +2 -3
- package/dist/runtime/tabConfig.d.cts +2 -3
- package/dist/runtime/tabConfig.d.ts +2 -3
- package/dist/runtime/toastConfig.d.cts +2 -3
- package/dist/runtime/toastConfig.d.ts +2 -3
- package/dist/runtime/tooltipConfig.d.cts +2 -5
- package/dist/runtime/tooltipConfig.d.ts +2 -5
- package/dist/runtime/udsConfig.d.cts +1 -1
- package/dist/runtime/udsConfig.d.ts +1 -1
- package/dist/styles/styler.cjs +0 -1
- package/dist/styles/styler.d.cts +0 -1
- package/dist/styles/styler.d.ts +0 -1
- package/dist/styles/stylerTypes.d.cts +5 -5
- package/dist/styles/stylerTypes.d.ts +5 -5
- package/dist/styles/udsTailwindMerge.cjs +0 -1
- package/dist/styles/udsTailwindMerge.d.cts +1 -3
- package/dist/styles/udsTailwindMerge.d.ts +1 -3
- package/dist/tailwind/plugin.d.cts +1 -0
- package/dist/tailwind/plugin.d.ts +1 -0
- package/dist/tailwind/utils/index.d.cts +1 -0
- package/dist/tailwind/utils/index.d.ts +1 -0
- package/dist/tailwind/utils/node.d.cts +1 -0
- package/dist/tailwind/utils/node.d.ts +1 -0
- package/dist/tailwind-internal/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/tailwind-internal/dist/_virtual/_rolldown/runtime.js +1 -1
- package/dist/tailwind-internal/dist/base/addColorModeVars.cjs +0 -1
- package/dist/tailwind-internal/dist/base/addColorModeVarsV2.cjs +0 -1
- package/dist/tailwind-internal/dist/components/getFocusRingStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/components/getFocusRingStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/components/getHitTargetStyles.cjs +1 -0
- package/dist/tailwind-internal/dist/components/getHitTargetStyles.js +1 -1
- package/dist/tailwind-internal/dist/components/getIconStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/components/getIconStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/components/getInputStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/components/getInputStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.cjs +1 -1
- package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.d.cts +2 -2
- package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.d.ts +2 -2
- package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.js +1 -1
- package/dist/tailwind-internal/dist/components/types.d.cts +2 -3
- package/dist/tailwind-internal/dist/components/types.d.ts +2 -3
- package/dist/tailwind-internal/dist/defaultTailwindThemeAsUdsConfig.d.cts +2 -3
- package/dist/tailwind-internal/dist/defaultTailwindThemeAsUdsConfig.d.ts +2 -3
- package/dist/tailwind-internal/dist/index.d.cts +2 -1
- package/dist/tailwind-internal/dist/index.d.ts +2 -1
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/defaultTheme.d.cts +2 -4
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/defaultTheme.d.ts +2 -3
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/lib/public/create-plugin.cjs +1 -1
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/lib/public/create-plugin.js +1 -1
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/plugin.d.cts +2 -4
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/plugin.d.ts +2 -3
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/config.d.cts +70 -38
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/config.d.ts +70 -38
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/generated/colors.d.cts +6 -11
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/generated/colors.d.ts +6 -11
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/generated/corePluginList.d.cts +1 -1
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/generated/corePluginList.d.ts +1 -1
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/generated/default-theme.d.cts +1 -1
- package/dist/tailwind-internal/dist/node_modules/.bun/tailwindcss@3.4.19_028b7be3b865fa1a/node_modules/tailwindcss/types/generated/default-theme.d.ts +1 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/universalTokensConfigAuto.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/universalTokensConfigAuto.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/properties.d.cts +5 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/properties.d.ts +5 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/types/ComponentConfig.d.cts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/types/ComponentConfig.d.ts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/types/ConfigSchema.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/types/ConfigSchema.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/types/StateAxis.cjs +25 -2
- package/dist/tailwind-internal/dist/packages/automated-config/dist/types/StateAxis.js +25 -3
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/buildConfigSchema.d.cts +7 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/buildConfigSchema.d.ts +7 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/canonicalizeStateKey.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/canonicalizeStateKey.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/coalesceConfigVariant.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/coalesceConfigVariant.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/defaults.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/defaults.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeight.cjs +5 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeight.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeight.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeight.js +2 -2
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeightPx.d.cts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeightPx.d.ts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigComponentVariant.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigComponentVariant.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariantComponentStatesMatrix.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariantProperties.d.cts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariantProperties.d.ts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariantPseudoStates.d.cts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariantPseudoStates.d.ts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariants.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getConfigVariants.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/iconButtonMatchButtonHeight.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/iconButtonMatchButtonHeight.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.cjs +81 -51
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.d.cts +21 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.d.ts +21 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.js +63 -51
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/isConfiguratorPropertyVisible.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/isConfiguratorPropertyVisible.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/pseudoStateSelectors.cjs +4 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/pseudoStateSelectors.js +2 -2
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/resolvePropertyStates.cjs +1 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/resolvePropertyStates.d.cts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/resolvePropertyStates.d.ts +3 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/resolvePropertyStates.js +1 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/subcomponents.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/subcomponents.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/variantConfigGuards.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/variantConfigGuards.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/config/dist/index.d.cts +3 -3
- package/dist/tailwind-internal/dist/packages/config/dist/index.d.ts +3 -3
- package/dist/tailwind-internal/dist/packages/css-tokens/dist/index.cjs +1 -0
- package/dist/tailwind-internal/dist/packages/css-tokens/dist/index.js +1 -1
- package/dist/tailwind-internal/dist/packages/fixtures/dist/index.cjs +19 -4
- package/dist/tailwind-internal/dist/packages/fixtures/dist/index.d.cts +2 -0
- package/dist/tailwind-internal/dist/packages/fixtures/dist/index.d.ts +2 -0
- package/dist/tailwind-internal/dist/packages/fixtures/dist/index.js +7 -5
- package/dist/tailwind-internal/dist/packages/fonts/dist/index.d.cts +17 -9
- package/dist/tailwind-internal/dist/packages/fonts/dist/index.d.ts +17 -9
- package/dist/tailwind-internal/dist/packages/types/dist/index.d.cts +3 -8
- package/dist/tailwind-internal/dist/packages/types/dist/index.d.ts +3 -8
- package/dist/tailwind-internal/dist/plugins/borderRadius.cjs +2 -0
- package/dist/tailwind-internal/dist/plugins/borderRadius.js +1 -1
- package/dist/tailwind-internal/dist/plugins/borderWidth.cjs +1 -0
- package/dist/tailwind-internal/dist/plugins/borderWidth.js +1 -1
- package/dist/tailwind-internal/dist/plugins/breakpoints.cjs +2 -0
- package/dist/tailwind-internal/dist/plugins/breakpoints.js +1 -1
- package/dist/tailwind-internal/dist/plugins/colors.cjs +2 -3
- package/dist/tailwind-internal/dist/plugins/scaleMode.cjs +2 -1
- package/dist/tailwind-internal/dist/plugins/scaleMode.js +2 -1
- package/dist/tailwind-internal/dist/plugins/typography.cjs +7 -0
- package/dist/tailwind-internal/dist/plugins/typography.js +1 -1
- package/dist/tailwind-internal/dist/tailwindPlugin.cjs +2 -0
- package/dist/tailwind-internal/dist/tailwindPlugin.d.cts +4 -2
- package/dist/tailwind-internal/dist/tailwindPlugin.d.ts +4 -2
- package/dist/tailwind-internal/dist/tailwindPlugin.js +2 -0
- package/dist/tailwind-internal/dist/utils/addFontsPlugin.d.cts +2 -3
- package/dist/tailwind-internal/dist/utils/addFontsPlugin.d.ts +2 -3
- package/dist/tailwind-internal/dist/utils/composeTailwindPlugins.cjs +3 -4
- package/dist/tailwind-internal/dist/utils/composeTailwindPlugins.d.cts +2 -3
- package/dist/tailwind-internal/dist/utils/composeTailwindPlugins.d.ts +2 -3
- package/dist/tailwind-internal/dist/utils/composeTailwindPlugins.js +1 -1
- package/dist/tailwind-internal/dist/utils/entryPoints.d.cts +1 -1
- package/dist/tailwind-internal/dist/utils/entryPoints.d.ts +1 -1
- package/dist/tailwind-internal/dist/utils/getColorModeStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/getColorModeStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/getElevationStyles.d.cts +2 -5
- package/dist/tailwind-internal/dist/utils/getElevationStyles.d.ts +2 -5
- package/dist/tailwind-internal/dist/utils/getFontFaceDeclarations.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/getFontFaceDeclarations.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/getFontStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/getFontStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/getMotionStyles.cjs +3 -2
- package/dist/tailwind-internal/dist/utils/getMotionStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/getMotionStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/getMotionStyles.js +3 -2
- package/dist/tailwind-internal/dist/utils/getScaleModeStyles.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/getScaleModeStyles.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/getShadowPresetValues.d.cts +2 -6
- package/dist/tailwind-internal/dist/utils/getShadowPresetValues.d.ts +2 -6
- package/dist/tailwind-internal/dist/utils/getShadowStyles.cjs +2 -1
- package/dist/tailwind-internal/dist/utils/getShadowStyles.d.cts +4 -8
- package/dist/tailwind-internal/dist/utils/getShadowStyles.d.ts +4 -8
- package/dist/tailwind-internal/dist/utils/getShadowStyles.js +2 -1
- package/dist/tailwind-internal/dist/utils/getShadowVars.cjs +3 -2
- package/dist/tailwind-internal/dist/utils/getShadowVars.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/getShadowVars.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/getShadowVars.js +3 -2
- package/dist/tailwind-internal/dist/utils/opacity.cjs +0 -1
- package/dist/tailwind-internal/dist/utils/opacity.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/opacity.d.ts +1 -2
- package/dist/tailwind-internal/dist/utils/parseTokens.cjs +2 -1
- package/dist/tailwind-internal/dist/utils/parseTokens.d.cts +2 -3
- package/dist/tailwind-internal/dist/utils/parseTokens.d.ts +2 -3
- package/dist/tailwind-internal/dist/utils/parseTokens.js +2 -1
- package/dist/tailwind-internal/dist/utils/postcssPreserveVars.d.cts +1 -2
- package/dist/tailwind-internal/dist/utils/postcssPreserveVars.d.ts +1 -2
- package/dist/tailwind-v3/dist/packages/css-tokens/dist/index.cjs +1 -0
- package/dist/tailwind-v3/dist/packages/css-tokens/dist/index.js +1 -1
- package/dist/tailwind-v3/dist/packages/palette/dist/index.cjs +1 -0
- package/dist/tailwind-v3/dist/packages/palette/dist/index.js +1 -1
- package/dist/tailwind-v3/dist/purger/legacy/index.d.cts +2 -0
- package/dist/tailwind-v3/dist/purger/legacy/index.d.ts +2 -0
- package/dist/tailwind-v3/dist/purger/legacy/purgeCSS.cjs +11 -1
- package/dist/tailwind-v3/dist/purger/legacy/purgeCSS.d.cts +2 -1
- package/dist/tailwind-v3/dist/purger/legacy/purgeCSS.d.ts +1 -2
- package/dist/tailwind-v3/dist/purger/legacy/purgeCSS.js +3 -2
- package/dist/tailwind-v3/dist/purger/legacy/purgeFromCode.d.cts +1 -1
- package/dist/tailwind-v3/dist/purger/legacy/purgeFromCode.d.ts +1 -1
- package/dist/tailwind-v3/dist/purger.d.cts +4 -1
- package/dist/tailwind-v3/dist/purger.d.ts +4 -1
- package/dist/tailwind-v3/dist/utils/tsMorph.cjs +6 -2
- package/dist/tailwind-v3/dist/utils/tsMorph.js +3 -2
- package/dist/tailwind-v4/dist/cli.cjs +3 -3
- package/dist/tailwind-v4/dist/cli.js +2 -2
- package/dist/tailwind-v4/dist/{generateTheme-DkTgUwTM.cjs → generateTheme-CybuHI3b.cjs} +3 -3
- package/dist/tailwind-v4/dist/{generateTheme-DkTgUwTM.js → generateTheme-CybuHI3b.js} +3 -3
- package/dist/tokens/automation/index.d.cts +1 -1
- package/dist/tokens/automation/index.d.ts +1 -1
- package/dist/tokens/automation/properties.d.cts +1 -1
- package/dist/tokens/automation/properties.d.ts +1 -1
- package/dist/tokens/configs/borderRadius.d.cts +1 -0
- package/dist/tokens/configs/borderRadius.d.ts +1 -0
- package/dist/tokens/configs/borderWidth.d.cts +1 -0
- package/dist/tokens/configs/borderWidth.d.ts +1 -0
- package/dist/tokens/configs/font.d.cts +1 -0
- package/dist/tokens/configs/font.d.ts +1 -0
- package/dist/tokens/configs/scaleMode.d.cts +1 -0
- package/dist/tokens/configs/scaleMode.d.ts +1 -0
- package/dist/tokens/configs/shadow.d.cts +1 -0
- package/dist/tokens/configs/shadow.d.ts +1 -0
- package/dist/tokens/configs/sizes.cjs +0 -1
- package/dist/tokens/configs/sizes.d.cts +1 -0
- package/dist/tokens/configs/sizes.d.ts +1 -0
- package/dist/tokens/configs/typography.d.cts +1 -0
- package/dist/tokens/configs/typography.d.ts +1 -0
- package/dist/tokens/index.d.cts +5 -1
- package/dist/tokens/index.d.ts +5 -1
- package/dist/tokens/parseButtonVariants.d.cts +2 -4
- package/dist/tokens/parseButtonVariants.d.ts +2 -4
- package/dist/tokens/parseTokens.d.cts +1 -0
- package/dist/tokens/parseTokens.d.ts +1 -0
- package/dist/tokens/types.d.cts +1 -2
- package/dist/tokens/types.d.ts +1 -2
- package/dist/tokens/utils/getFontUrls.d.cts +3 -1
- package/dist/tokens/utils/getFontUrls.d.ts +3 -1
- package/dist/tokens/utils/spectrum.d.cts +1 -0
- package/dist/tokens/utils/spectrum.d.ts +1 -0
- package/dist/types/dist/index.d.cts +4 -5
- package/dist/types/dist/index.d.ts +4 -5
- package/dist/types.d.cts +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/uds/generated/componentData.cjs +2707 -2707
- package/dist/uds/generated/componentData.js +2707 -2707
- package/dist/uds/package.cjs +4 -4
- package/dist/uds/package.js +4 -4
- package/dist/utils/createSlot.cjs +0 -1
- package/dist/utils/dist/entries.d.cts +1 -1
- package/dist/utils/dist/entries.d.ts +1 -1
- package/dist/utils/dist/fromEntries.d.cts +1 -1
- package/dist/utils/dist/fromEntries.d.ts +1 -1
- package/dist/utils/dist/mapValues.d.cts +1 -1
- package/dist/utils/dist/mapValues.d.ts +1 -1
- package/dist/utils/hasDisplayName.cjs +0 -1
- package/dist/utils/hasDisplayName.d.cts +0 -1
- package/dist/utils/hasDisplayName.d.ts +0 -1
- package/dist/utils/intersperse.d.cts +1 -3
- package/dist/utils/intersperse.d.ts +1 -3
- package/dist/utils/isElevationAlias.d.cts +0 -1
- package/dist/utils/isElevationAlias.d.ts +0 -1
- package/dist/utils/isFocusEnteringOwnFrame.cjs +52 -0
- package/dist/utils/isFocusEnteringOwnFrame.d.cts +33 -0
- package/dist/utils/isFocusEnteringOwnFrame.d.ts +33 -0
- package/dist/utils/isFocusEnteringOwnFrame.js +50 -0
- package/dist/utils/mergeSlotProps.cjs +2 -2
- package/dist/utils/mergeSlotProps.d.cts +1 -1
- package/dist/utils/mergeSlotProps.d.ts +1 -1
- package/dist/utils/mergeSlotProps.js +2 -2
- package/dist/utils/svgFloatingContentUtils.d.cts +2 -20
- package/dist/utils/svgFloatingContentUtils.d.ts +2 -20
- package/generated/componentData.json +3392 -3392
- package/package.json +5 -5
|
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
25
|
}
|
|
26
26
|
return to;
|
|
27
27
|
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
29
|
value: mod,
|
|
30
30
|
enumerable: true
|
|
31
31
|
}) : target, mod));
|
|
@@ -5530,6 +5530,6 @@ declare const TooltipConfig: {
|
|
|
5530
5530
|
readonly options: readonly ["default"];
|
|
5531
5531
|
};
|
|
5532
5532
|
};
|
|
5533
|
-
};
|
|
5533
|
+
};
|
|
5534
5534
|
//#endregion
|
|
5535
5535
|
export { AvatarConfig, BadgeConfig, BannerConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, ModalConfig, PaddleNavConfig, PaginationConfig, PopoverConfig, RadioConfig, ScrimConfig, SelectConfig, SelectContentConfig, SelectItemConfig, SwitchConfig, TabConfig, TabsConfig, ToastConfig, TooltipConfig };
|
|
@@ -5530,6 +5530,6 @@ declare const TooltipConfig: {
|
|
|
5530
5530
|
readonly options: readonly ["default"];
|
|
5531
5531
|
};
|
|
5532
5532
|
};
|
|
5533
|
-
};
|
|
5533
|
+
};
|
|
5534
5534
|
//#endregion
|
|
5535
5535
|
export { AvatarConfig, BadgeConfig, BannerConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, ModalConfig, PaddleNavConfig, PaginationConfig, PopoverConfig, RadioConfig, ScrimConfig, SelectConfig, SelectContentConfig, SelectItemConfig, SwitchConfig, TabConfig, TabsConfig, ToastConfig, TooltipConfig };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { AvatarConfig, BadgeConfig, BannerConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, ModalConfig, PaddleNavConfig, PaginationConfig, PopoverConfig, RadioConfig, ScrimConfig, SelectConfig, SelectContentConfig, SelectItemConfig, SwitchConfig, TabConfig, TabsConfig, ToastConfig, TooltipConfig } from "./generatedConfigs.cjs";
|
|
3
3
|
import { ComponentSchema } from "../utils/buildConfigSchema.cjs";
|
|
4
|
-
|
|
5
4
|
//#region ../automated-config/dist/generated/universalTokensConfigAuto.d.ts
|
|
6
5
|
//#region src/generated/universalTokensConfigAuto.d.ts
|
|
7
6
|
interface UniversalTokensConfigAuto {
|
|
@@ -43,15 +42,15 @@ type AutoComponentName = keyof AutoComponents;
|
|
|
43
42
|
/** Components that have a defaults property */
|
|
44
43
|
type ComponentsWithDefaults = { [K in keyof AutoComponents]: AutoComponents[K] extends {
|
|
45
44
|
defaults: object;
|
|
46
|
-
} ? K : never }[keyof AutoComponents];
|
|
45
|
+
} ? K : never; }[keyof AutoComponents];
|
|
47
46
|
/** Union of all variant keys across all auto-configurable components */
|
|
48
47
|
type AllVariantKeys = { [K in ComponentsWithDefaults]: AutoComponents[K] extends {
|
|
49
48
|
defaults: infer D;
|
|
50
|
-
} ? keyof D : never }[ComponentsWithDefaults];
|
|
49
|
+
} ? keyof D : never; }[ComponentsWithDefaults];
|
|
51
50
|
/**
|
|
52
51
|
* This assertion is where minor and major deviations between ComponentSchema type inference
|
|
53
52
|
* and the actual runtime output from buildConfigSchema() are captured.
|
|
54
53
|
*/
|
|
55
|
-
declare const defaultUniversalTokensConfigAuto: UniversalTokensConfigAuto;
|
|
54
|
+
declare const defaultUniversalTokensConfigAuto: UniversalTokensConfigAuto;
|
|
56
55
|
//#endregion
|
|
57
|
-
export { AllVariantKeys, AutoComponentName, UniversalTokensConfigAuto, defaultUniversalTokensConfigAuto };
|
|
56
|
+
export { AllVariantKeys, AutoComponentName, AutoComponents, UniversalTokensConfigAuto, defaultUniversalTokensConfigAuto };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { AvatarConfig, BadgeConfig, BannerConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, ModalConfig, PaddleNavConfig, PaginationConfig, PopoverConfig, RadioConfig, ScrimConfig, SelectConfig, SelectContentConfig, SelectItemConfig, SwitchConfig, TabConfig, TabsConfig, ToastConfig, TooltipConfig } from "./generatedConfigs.js";
|
|
3
3
|
import { ComponentSchema } from "../utils/buildConfigSchema.js";
|
|
4
|
-
|
|
5
4
|
//#region ../automated-config/dist/generated/universalTokensConfigAuto.d.ts
|
|
6
5
|
//#region src/generated/universalTokensConfigAuto.d.ts
|
|
7
6
|
interface UniversalTokensConfigAuto {
|
|
@@ -43,15 +42,15 @@ type AutoComponentName = keyof AutoComponents;
|
|
|
43
42
|
/** Components that have a defaults property */
|
|
44
43
|
type ComponentsWithDefaults = { [K in keyof AutoComponents]: AutoComponents[K] extends {
|
|
45
44
|
defaults: object;
|
|
46
|
-
} ? K : never }[keyof AutoComponents];
|
|
45
|
+
} ? K : never; }[keyof AutoComponents];
|
|
47
46
|
/** Union of all variant keys across all auto-configurable components */
|
|
48
47
|
type AllVariantKeys = { [K in ComponentsWithDefaults]: AutoComponents[K] extends {
|
|
49
48
|
defaults: infer D;
|
|
50
|
-
} ? keyof D : never }[ComponentsWithDefaults];
|
|
49
|
+
} ? keyof D : never; }[ComponentsWithDefaults];
|
|
51
50
|
/**
|
|
52
51
|
* This assertion is where minor and major deviations between ComponentSchema type inference
|
|
53
52
|
* and the actual runtime output from buildConfigSchema() are captured.
|
|
54
53
|
*/
|
|
55
|
-
declare const defaultUniversalTokensConfigAuto: UniversalTokensConfigAuto;
|
|
54
|
+
declare const defaultUniversalTokensConfigAuto: UniversalTokensConfigAuto;
|
|
56
55
|
//#endregion
|
|
57
|
-
export { AllVariantKeys, AutoComponentName, UniversalTokensConfigAuto, defaultUniversalTokensConfigAuto };
|
|
56
|
+
export { AllVariantKeys, AutoComponentName, AutoComponents, UniversalTokensConfigAuto, defaultUniversalTokensConfigAuto };
|
|
@@ -4,7 +4,6 @@ import { ShadowPreset } from "../../types/dist/index.cjs";
|
|
|
4
4
|
import { ArbitraryFixtures, InferArbitraryType } from "../../fixtures/dist/index.cjs";
|
|
5
5
|
import { AllPossibleProperties, PossibleStates } from "./types/ComponentConfig.cjs";
|
|
6
6
|
import { SchemaStateValue } from "./types/ConfigSchema.cjs";
|
|
7
|
-
|
|
8
7
|
//#region ../automated-config/dist/properties.d.ts
|
|
9
8
|
//#region src/properties.d.ts
|
|
10
9
|
type ComponentConfigContext = {
|
|
@@ -159,7 +158,7 @@ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O e
|
|
|
159
158
|
variablePath: string;
|
|
160
159
|
propertyName: string;
|
|
161
160
|
};
|
|
162
|
-
defaults: { [K in O]: V[number][number] | (Extract<T[number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<T[number], ArbitraryFixtures>>) };
|
|
163
|
-
}
|
|
161
|
+
defaults: { [K in O]: V[number][number] | (Extract<T[number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<T[number], ArbitraryFixtures>>); };
|
|
162
|
+
}
|
|
164
163
|
//#endregion
|
|
165
|
-
export { type ComponentConfigContext, type ConfigurablePropertiesName, type ConfigurableProperty, type ExtendablePropertiesName, type SelectedConfigurableProperty, configurableProperties };
|
|
164
|
+
export { type ComponentConfigContext, type ComponentConfigContext as DispatchContext, type ConfigurablePropertiesName, type ConfigurableProperty, type ExtendablePropertiesName, type SelectedConfigurableProperty, configurableProperties };
|
|
@@ -4,7 +4,6 @@ import { ShadowPreset } from "../../types/dist/index.js";
|
|
|
4
4
|
import { ArbitraryFixtures, InferArbitraryType } from "../../fixtures/dist/index.js";
|
|
5
5
|
import { AllPossibleProperties, PossibleStates } from "./types/ComponentConfig.js";
|
|
6
6
|
import { SchemaStateValue } from "./types/ConfigSchema.js";
|
|
7
|
-
|
|
8
7
|
//#region ../automated-config/dist/properties.d.ts
|
|
9
8
|
//#region src/properties.d.ts
|
|
10
9
|
type ComponentConfigContext = {
|
|
@@ -159,7 +158,7 @@ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O e
|
|
|
159
158
|
variablePath: string;
|
|
160
159
|
propertyName: string;
|
|
161
160
|
};
|
|
162
|
-
defaults: { [K in O]: V[number][number] | (Extract<T[number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<T[number], ArbitraryFixtures>>) };
|
|
163
|
-
}
|
|
161
|
+
defaults: { [K in O]: V[number][number] | (Extract<T[number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<T[number], ArbitraryFixtures>>); };
|
|
162
|
+
}
|
|
164
163
|
//#endregion
|
|
165
|
-
export { type ComponentConfigContext, type ConfigurablePropertiesName, type ConfigurableProperty, type ExtendablePropertiesName, type SelectedConfigurableProperty, configurableProperties };
|
|
164
|
+
export { type ComponentConfigContext, type ComponentConfigContext as DispatchContext, type ConfigurablePropertiesName, type ConfigurableProperty, type ExtendablePropertiesName, type SelectedConfigurableProperty, configurableProperties };
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { AtomicState, InteractiveAtomic, ModifierAtomic } from "./StateAxis.cjs";
|
|
3
3
|
import { index_d_exports } from "../../../fixtures/dist/index.cjs";
|
|
4
4
|
import { ConfigurablePropertiesName, SelectedConfigurableProperty } from "../properties.cjs";
|
|
5
|
-
|
|
6
5
|
//#region ../automated-config/dist/types/ComponentConfig.d.ts
|
|
7
6
|
//#region src/types/ComponentConfig.d.ts
|
|
8
7
|
/** All configurable property names, excluding button-specific and elevation properties */
|
|
@@ -155,6 +154,6 @@ interface ComponentConfig {
|
|
|
155
154
|
description: string;
|
|
156
155
|
subComponents?: Record<string, SubComponentConfig>;
|
|
157
156
|
variants?: Record<string, VariantConfigWithComponentStates | VariantConfigWithProperties | VariantConfig>;
|
|
158
|
-
}
|
|
157
|
+
}
|
|
159
158
|
//#endregion
|
|
160
|
-
export {
|
|
159
|
+
export type { AllPossibleProperties, ComponentConfig, ComponentStateConfig, LayerConfig, PossibleStates, PossibleStatesWithRest, SubComponentConfig, UserOverridableProperty, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties };
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { AtomicState, InteractiveAtomic, ModifierAtomic } from "./StateAxis.js";
|
|
3
3
|
import { index_d_exports } from "../../../fixtures/dist/index.js";
|
|
4
4
|
import { ConfigurablePropertiesName, SelectedConfigurableProperty } from "../properties.js";
|
|
5
|
-
|
|
6
5
|
//#region ../automated-config/dist/types/ComponentConfig.d.ts
|
|
7
6
|
//#region src/types/ComponentConfig.d.ts
|
|
8
7
|
/** All configurable property names, excluding button-specific and elevation properties */
|
|
@@ -155,6 +154,6 @@ interface ComponentConfig {
|
|
|
155
154
|
description: string;
|
|
156
155
|
subComponents?: Record<string, SubComponentConfig>;
|
|
157
156
|
variants?: Record<string, VariantConfigWithComponentStates | VariantConfigWithProperties | VariantConfig>;
|
|
158
|
-
}
|
|
157
|
+
}
|
|
159
158
|
//#endregion
|
|
160
|
-
export {
|
|
159
|
+
export type { AllPossibleProperties, ComponentConfig, ComponentStateConfig, LayerConfig, PossibleStates, PossibleStatesWithRest, SubComponentConfig, UserOverridableProperty, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { ComponentConfig } from "./ComponentConfig.cjs";
|
|
3
|
-
|
|
4
3
|
//#region ../automated-config/dist/types/ComponentStyles.d.ts
|
|
5
4
|
//#region src/types/ComponentStyles.d.ts
|
|
6
5
|
/**
|
|
@@ -20,7 +19,7 @@ type AllSelectors<C extends ComponentConfig> = BaseSelector<C>;
|
|
|
20
19
|
* You can refine these Declarations to be more typed if you want
|
|
21
20
|
* (e.g. only allow certain var names, only allow CSS property keys, etc.).
|
|
22
21
|
*/
|
|
23
|
-
type CssStyleObject<C extends ComponentConfig> = { [Selector in AllSelectors<C>]?: Record<string, string
|
|
22
|
+
type CssStyleObject<C extends ComponentConfig> = { [Selector in AllSelectors<C>]?: Record<string, string>; };
|
|
24
23
|
/**
|
|
25
24
|
* Base class is just `.uds-{label}`
|
|
26
25
|
*/
|
|
@@ -30,6 +29,6 @@ type BaseSelector<C extends ComponentConfig> = `uds-${Lowercase<C['label']>}`;
|
|
|
30
29
|
* For each variant in `config.variants`, it produces a string in the format:
|
|
31
30
|
* `.uds-{lowercase(label)}-{variantKey}`.
|
|
32
31
|
*/
|
|
33
|
-
type ParentVariantSelector<C extends ComponentConfig> = { [K in keyof C['variants']]: `uds-${Lowercase<C['label']>}-${string & K}
|
|
32
|
+
type ParentVariantSelector<C extends ComponentConfig> = { [K in keyof C['variants']]: `uds-${Lowercase<C['label']>}-${string & K}`; }[keyof C['variants']];
|
|
34
33
|
//#endregion
|
|
35
34
|
export { AllSelectors, BaseSelector, CssStyleObject, ParentVariantSelector };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { ComponentConfig } from "./ComponentConfig.js";
|
|
3
|
-
|
|
4
3
|
//#region ../automated-config/dist/types/ComponentStyles.d.ts
|
|
5
4
|
//#region src/types/ComponentStyles.d.ts
|
|
6
5
|
/**
|
|
@@ -20,7 +19,7 @@ type AllSelectors<C extends ComponentConfig> = BaseSelector<C>;
|
|
|
20
19
|
* You can refine these Declarations to be more typed if you want
|
|
21
20
|
* (e.g. only allow certain var names, only allow CSS property keys, etc.).
|
|
22
21
|
*/
|
|
23
|
-
type CssStyleObject<C extends ComponentConfig> = { [Selector in AllSelectors<C>]?: Record<string, string
|
|
22
|
+
type CssStyleObject<C extends ComponentConfig> = { [Selector in AllSelectors<C>]?: Record<string, string>; };
|
|
24
23
|
/**
|
|
25
24
|
* Base class is just `.uds-{label}`
|
|
26
25
|
*/
|
|
@@ -30,6 +29,6 @@ type BaseSelector<C extends ComponentConfig> = `uds-${Lowercase<C['label']>}`;
|
|
|
30
29
|
* For each variant in `config.variants`, it produces a string in the format:
|
|
31
30
|
* `.uds-{lowercase(label)}-{variantKey}`.
|
|
32
31
|
*/
|
|
33
|
-
type ParentVariantSelector<C extends ComponentConfig> = { [K in keyof C['variants']]: `uds-${Lowercase<C['label']>}-${string & K}
|
|
32
|
+
type ParentVariantSelector<C extends ComponentConfig> = { [K in keyof C['variants']]: `uds-${Lowercase<C['label']>}-${string & K}`; }[keyof C['variants']];
|
|
34
33
|
//#endregion
|
|
35
34
|
export { AllSelectors, BaseSelector, CssStyleObject, ParentVariantSelector };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { AllPossibleProperties, PossibleStates } from "./ComponentConfig.cjs";
|
|
3
|
-
|
|
4
3
|
//#region ../automated-config/dist/types/ConfigSchema.d.ts
|
|
5
4
|
//#region src/types/ConfigSchema.d.ts
|
|
6
5
|
/** Schema for a single state value with its property type, value source, and actual value */
|
|
@@ -20,7 +19,6 @@ type SchemaStateValue<T = unknown> = {
|
|
|
20
19
|
/** Map of component states to schema values. Requires 'rest', optional interactive states */
|
|
21
20
|
type VariableState = {
|
|
22
21
|
rest: SchemaStateValue;
|
|
23
|
-
} & { [K in PossibleStates]?: SchemaStateValue };
|
|
24
|
-
/** Configuration object mapping property keys to their state-based values */
|
|
22
|
+
} & { [K in PossibleStates]?: SchemaStateValue; };
|
|
25
23
|
//#endregion
|
|
26
|
-
export {
|
|
24
|
+
export type { SchemaStateValue, VariableState };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { AllPossibleProperties, PossibleStates } from "./ComponentConfig.js";
|
|
3
|
-
|
|
4
3
|
//#region ../automated-config/dist/types/ConfigSchema.d.ts
|
|
5
4
|
//#region src/types/ConfigSchema.d.ts
|
|
6
5
|
/** Schema for a single state value with its property type, value source, and actual value */
|
|
@@ -20,7 +19,6 @@ type SchemaStateValue<T = unknown> = {
|
|
|
20
19
|
/** Map of component states to schema values. Requires 'rest', optional interactive states */
|
|
21
20
|
type VariableState = {
|
|
22
21
|
rest: SchemaStateValue;
|
|
23
|
-
} & { [K in PossibleStates]?: SchemaStateValue };
|
|
24
|
-
/** Configuration object mapping property keys to their state-based values */
|
|
22
|
+
} & { [K in PossibleStates]?: SchemaStateValue; };
|
|
25
23
|
//#endregion
|
|
26
|
-
export {
|
|
24
|
+
export type { SchemaStateValue, VariableState };
|
|
@@ -61,7 +61,28 @@ function isAtomicState(state) {
|
|
|
61
61
|
* exactly one compound depth supported end-to-end.
|
|
62
62
|
*/
|
|
63
63
|
const MAX_MODIFIERS_PER_COMPOUND = 3;
|
|
64
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Global emission priority for the atomic taxonomy.
|
|
66
|
+
*
|
|
67
|
+
* Every atom selector contributes a uniform (0,1,0) of specificity (see
|
|
68
|
+
* `pseudoStateSelectors`), so a 2-atom compound at (0,3,0) strictly beats a
|
|
69
|
+
* 1-atom rule at (0,2,0) — cross-rank cascade is encoded in class-count
|
|
70
|
+
* specificity. Within a rank (e.g. two atoms simultaneously matching the
|
|
71
|
+
* same element) source order arbitrates: the resolver sorts a layer's
|
|
72
|
+
* `atomicStates` by index in this array, then emits in that order — meaning
|
|
73
|
+
* **later in the array = emits later = wins when multiple atoms match the
|
|
74
|
+
* same element**.
|
|
75
|
+
*
|
|
76
|
+
* The ordering is weakest → strongest. To bump an atom's priority, move it
|
|
77
|
+
* later in this array. Compound-state emission order is derived from this
|
|
78
|
+
* priority too (subset enumeration follows the modifier ordering here), so
|
|
79
|
+
* compound winners follow the same intuition.
|
|
80
|
+
*
|
|
81
|
+
* Legacy atoms (`focused`, `focused-keyboard`, `disabled`) are not in this
|
|
82
|
+
* list because they aren't part of `AtomicState`; their emission order is
|
|
83
|
+
* whatever a config's per-property `pseudoStates` array specifies.
|
|
84
|
+
*/
|
|
85
|
+
const STATE_PRIORITY = [
|
|
65
86
|
"visited",
|
|
66
87
|
"placeholder-shown",
|
|
67
88
|
"autofill",
|
|
@@ -71,7 +92,8 @@ const STATE_PRIORITY_INDEX = new Map([
|
|
|
71
92
|
"pressed",
|
|
72
93
|
"invalid",
|
|
73
94
|
"readonly"
|
|
74
|
-
]
|
|
95
|
+
];
|
|
96
|
+
const STATE_PRIORITY_INDEX = new Map(STATE_PRIORITY.map((atom, i) => [atom, i]));
|
|
75
97
|
/**
|
|
76
98
|
* Comparator usable with `Array.prototype.sort`. Atoms not in `STATE_PRIORITY`
|
|
77
99
|
* sort to the front (weakest) — this only triggers for unknown strings; every
|
|
@@ -84,6 +106,7 @@ function comparePriority(a, b) {
|
|
|
84
106
|
exports.INTERACTIVE_ATOMICS = INTERACTIVE_ATOMICS;
|
|
85
107
|
exports.MAX_MODIFIERS_PER_COMPOUND = MAX_MODIFIERS_PER_COMPOUND;
|
|
86
108
|
exports.MODIFIER_ATOMICS = MODIFIER_ATOMICS;
|
|
109
|
+
exports.STATE_PRIORITY = STATE_PRIORITY;
|
|
87
110
|
exports.comparePriority = comparePriority;
|
|
88
111
|
exports.isAtomicState = isAtomicState;
|
|
89
112
|
exports.isInteractiveAtomic = isInteractiveAtomic;
|
|
@@ -45,26 +45,5 @@ declare function isAtomicState(state: string): state is AtomicState;
|
|
|
45
45
|
* exactly one compound depth supported end-to-end.
|
|
46
46
|
*/
|
|
47
47
|
declare const MAX_MODIFIERS_PER_COMPOUND = 3;
|
|
48
|
-
/**
|
|
49
|
-
* Global emission priority for the atomic taxonomy.
|
|
50
|
-
*
|
|
51
|
-
* Every atom selector contributes a uniform (0,1,0) of specificity (see
|
|
52
|
-
* `pseudoStateSelectors`), so a 2-atom compound at (0,3,0) strictly beats a
|
|
53
|
-
* 1-atom rule at (0,2,0) — cross-rank cascade is encoded in class-count
|
|
54
|
-
* specificity. Within a rank (e.g. two atoms simultaneously matching the
|
|
55
|
-
* same element) source order arbitrates: the resolver sorts a layer's
|
|
56
|
-
* `atomicStates` by index in this array, then emits in that order — meaning
|
|
57
|
-
* **later in the array = emits later = wins when multiple atoms match the
|
|
58
|
-
* same element**.
|
|
59
|
-
*
|
|
60
|
-
* The ordering is weakest → strongest. To bump an atom's priority, move it
|
|
61
|
-
* later in this array. Compound-state emission order is derived from this
|
|
62
|
-
* priority too (subset enumeration follows the modifier ordering here), so
|
|
63
|
-
* compound winners follow the same intuition.
|
|
64
|
-
*
|
|
65
|
-
* Legacy atoms (`focused`, `focused-keyboard`, `disabled`) are not in this
|
|
66
|
-
* list because they aren't part of `AtomicState`; their emission order is
|
|
67
|
-
* whatever a config's per-property `pseudoStates` array specifies.
|
|
68
|
-
*/
|
|
69
48
|
//#endregion
|
|
70
49
|
export { type AtomicState, INTERACTIVE_ATOMICS, type InteractiveAtomic, MAX_MODIFIERS_PER_COMPOUND, MODIFIER_ATOMICS, type ModifierAtomic, isAtomicState, isInteractiveAtomic, isModifierAtomic };
|
|
@@ -45,26 +45,5 @@ declare function isAtomicState(state: string): state is AtomicState;
|
|
|
45
45
|
* exactly one compound depth supported end-to-end.
|
|
46
46
|
*/
|
|
47
47
|
declare const MAX_MODIFIERS_PER_COMPOUND = 3;
|
|
48
|
-
/**
|
|
49
|
-
* Global emission priority for the atomic taxonomy.
|
|
50
|
-
*
|
|
51
|
-
* Every atom selector contributes a uniform (0,1,0) of specificity (see
|
|
52
|
-
* `pseudoStateSelectors`), so a 2-atom compound at (0,3,0) strictly beats a
|
|
53
|
-
* 1-atom rule at (0,2,0) — cross-rank cascade is encoded in class-count
|
|
54
|
-
* specificity. Within a rank (e.g. two atoms simultaneously matching the
|
|
55
|
-
* same element) source order arbitrates: the resolver sorts a layer's
|
|
56
|
-
* `atomicStates` by index in this array, then emits in that order — meaning
|
|
57
|
-
* **later in the array = emits later = wins when multiple atoms match the
|
|
58
|
-
* same element**.
|
|
59
|
-
*
|
|
60
|
-
* The ordering is weakest → strongest. To bump an atom's priority, move it
|
|
61
|
-
* later in this array. Compound-state emission order is derived from this
|
|
62
|
-
* priority too (subset enumeration follows the modifier ordering here), so
|
|
63
|
-
* compound winners follow the same intuition.
|
|
64
|
-
*
|
|
65
|
-
* Legacy atoms (`focused`, `focused-keyboard`, `disabled`) are not in this
|
|
66
|
-
* list because they aren't part of `AtomicState`; their emission order is
|
|
67
|
-
* whatever a config's per-property `pseudoStates` array specifies.
|
|
68
|
-
*/
|
|
69
48
|
//#endregion
|
|
70
49
|
export { type AtomicState, INTERACTIVE_ATOMICS, type InteractiveAtomic, MAX_MODIFIERS_PER_COMPOUND, MODIFIER_ATOMICS, type ModifierAtomic, isAtomicState, isInteractiveAtomic, isModifierAtomic };
|
|
@@ -61,7 +61,28 @@ function isAtomicState(state) {
|
|
|
61
61
|
* exactly one compound depth supported end-to-end.
|
|
62
62
|
*/
|
|
63
63
|
const MAX_MODIFIERS_PER_COMPOUND = 3;
|
|
64
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Global emission priority for the atomic taxonomy.
|
|
66
|
+
*
|
|
67
|
+
* Every atom selector contributes a uniform (0,1,0) of specificity (see
|
|
68
|
+
* `pseudoStateSelectors`), so a 2-atom compound at (0,3,0) strictly beats a
|
|
69
|
+
* 1-atom rule at (0,2,0) — cross-rank cascade is encoded in class-count
|
|
70
|
+
* specificity. Within a rank (e.g. two atoms simultaneously matching the
|
|
71
|
+
* same element) source order arbitrates: the resolver sorts a layer's
|
|
72
|
+
* `atomicStates` by index in this array, then emits in that order — meaning
|
|
73
|
+
* **later in the array = emits later = wins when multiple atoms match the
|
|
74
|
+
* same element**.
|
|
75
|
+
*
|
|
76
|
+
* The ordering is weakest → strongest. To bump an atom's priority, move it
|
|
77
|
+
* later in this array. Compound-state emission order is derived from this
|
|
78
|
+
* priority too (subset enumeration follows the modifier ordering here), so
|
|
79
|
+
* compound winners follow the same intuition.
|
|
80
|
+
*
|
|
81
|
+
* Legacy atoms (`focused`, `focused-keyboard`, `disabled`) are not in this
|
|
82
|
+
* list because they aren't part of `AtomicState`; their emission order is
|
|
83
|
+
* whatever a config's per-property `pseudoStates` array specifies.
|
|
84
|
+
*/
|
|
85
|
+
const STATE_PRIORITY = [
|
|
65
86
|
"visited",
|
|
66
87
|
"placeholder-shown",
|
|
67
88
|
"autofill",
|
|
@@ -71,7 +92,8 @@ const STATE_PRIORITY_INDEX = new Map([
|
|
|
71
92
|
"pressed",
|
|
72
93
|
"invalid",
|
|
73
94
|
"readonly"
|
|
74
|
-
]
|
|
95
|
+
];
|
|
96
|
+
const STATE_PRIORITY_INDEX = new Map(STATE_PRIORITY.map((atom, i) => [atom, i]));
|
|
75
97
|
/**
|
|
76
98
|
* Comparator usable with `Array.prototype.sort`. Atoms not in `STATE_PRIORITY`
|
|
77
99
|
* sort to the front (weakest) — this only triggers for unknown strings; every
|
|
@@ -81,4 +103,4 @@ function comparePriority(a, b) {
|
|
|
81
103
|
return (STATE_PRIORITY_INDEX.get(a) ?? -1) - (STATE_PRIORITY_INDEX.get(b) ?? -1);
|
|
82
104
|
}
|
|
83
105
|
//#endregion
|
|
84
|
-
export { INTERACTIVE_ATOMICS, MAX_MODIFIERS_PER_COMPOUND, MODIFIER_ATOMICS, comparePriority, isAtomicState, isInteractiveAtomic, isModifierAtomic };
|
|
106
|
+
export { INTERACTIVE_ATOMICS, MAX_MODIFIERS_PER_COMPOUND, MODIFIER_ATOMICS, STATE_PRIORITY, comparePriority, isAtomicState, isInteractiveAtomic, isModifierAtomic };
|
|
@@ -6,21 +6,21 @@ import { ConfigurablePropertiesName, SelectedConfigurableProperty } from "../pro
|
|
|
6
6
|
import { AllPossibleProperties, ComponentConfig, ComponentStateConfig, LayerConfig, PossibleStates, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties } from "../types/ComponentConfig.cjs";
|
|
7
7
|
import { SchemaStateValue } from "../types/ConfigSchema.cjs";
|
|
8
8
|
import { OmitIndexSignature, SimplifyDeep, UnionToIntersection, WritableDeep } from "type-fest";
|
|
9
|
-
|
|
10
9
|
//#region ../automated-config/dist/utils/buildConfigSchema.d.ts
|
|
11
10
|
type OptionalInDefaultSchemaPropKeys<Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>> = { [K in keyof Props]: Props[K] extends {
|
|
12
11
|
optionalInDefaultSchema: true;
|
|
13
|
-
} ? K : never }[keyof Props];
|
|
12
|
+
} ? K : never; }[keyof Props];
|
|
14
13
|
type RequiredInDefaultSchemaPropKeys<Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>> = { [K in keyof Props]: Props[K] extends {
|
|
15
14
|
optionalInDefaultSchema: true;
|
|
16
|
-
} ? never : K }[keyof Props];
|
|
17
|
-
type InferredLayerPropertyMap<Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>, Layer> = { [PropKey in RequiredInDefaultSchemaPropKeys<Props>]: InferredPropertyStates<Props[PropKey], Layer
|
|
15
|
+
} ? never : K; }[keyof Props];
|
|
16
|
+
type InferredLayerPropertyMap<Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>, Layer> = { [PropKey in RequiredInDefaultSchemaPropKeys<Props>]: InferredPropertyStates<Props[PropKey], Layer>; } & { [PropKey in OptionalInDefaultSchemaPropKeys<Props>]?: InferredPropertyStates<Props[PropKey], Layer>; };
|
|
18
17
|
/** Infers default option values from all component variants */
|
|
19
|
-
type InferredDefaults<C extends ComponentConfig> = (C['variants'] extends NonNullable<ComponentConfig['variants']> ? { [VarKey in keyof C['variants']]: C['variants'][VarKey]['options'][number] } : {}) & (C['subComponents'] extends NonNullable<ComponentConfig['subComponents']> ? UnionToIntersection<{ [SubCompKey in keyof C['subComponents']]: { [VarKey in keyof C['subComponents'][SubCompKey]['variants']]: C['subComponents'][SubCompKey]['variants'][VarKey]['options'][number] } }[keyof C['subComponents']]> : {});
|
|
18
|
+
type InferredDefaults<C extends ComponentConfig> = (C['variants'] extends NonNullable<ComponentConfig['variants']> ? { [VarKey in keyof C['variants']]: C['variants'][VarKey]['options'][number]; } : {}) & (C['subComponents'] extends NonNullable<ComponentConfig['subComponents']> ? UnionToIntersection<{ [SubCompKey in keyof C['subComponents']]: { [VarKey in keyof C['subComponents'][SubCompKey]['variants']]: C['subComponents'][SubCompKey]['variants'][VarKey]['options'][number]; }; }[keyof C['subComponents']]> : {});
|
|
20
19
|
/** Infers type-safe schema value structure for a configurable property */
|
|
21
20
|
type InferredPropertySchema<Prop extends SelectedConfigurableProperty<ConfigurablePropertiesName, string>> = {
|
|
22
21
|
type: Prop['typeOfFixture'][number];
|
|
23
|
-
valueType: 'alias' | 'custom';
|
|
22
|
+
valueType: 'alias' | 'custom';
|
|
23
|
+
/** See SchemaStateValue.isEnabled — opt-in flag for non-rest CSS emission. */
|
|
24
24
|
isEnabled?: boolean;
|
|
25
25
|
value: Prop['name'] extends 'shadow' ? ShadowVariant | ShadowVariantConfig | ElevationAlias : Prop['name'] extends 'insetShadow' ? ShadowVariantWithInvert | ShadowVariantConfig : Prop['name'] extends 'bannerInnerShadow' ? BannerInnerShadowOption : Prop['values'][number][number] | (Extract<Prop['typeOfFixture'][number], ArbitraryFixtures> extends never ? never : InferArbitraryType<Extract<Prop['typeOfFixture'][number], ArbitraryFixtures>>);
|
|
26
26
|
};
|
|
@@ -46,9 +46,9 @@ type InferredPropertyStates<Prop extends SelectedConfigurableProperty<Configurab
|
|
|
46
46
|
rest: InferredPropertySchema<Prop>;
|
|
47
47
|
}) & (Layer extends {
|
|
48
48
|
atomicStates: infer AS extends readonly AtomicState[];
|
|
49
|
-
} ? { [K in AS[number]]?: InferredPropertySchema<Prop
|
|
49
|
+
} ? { [K in AS[number]]?: InferredPropertySchema<Prop>; } & { [K in `${string}&${string}`]?: InferredPropertySchema<Prop>; } : Prop extends {
|
|
50
50
|
pseudoStates: infer PS extends PossibleStates[];
|
|
51
|
-
} ? Prop['name'] extends 'textVariant' ? { [K in PS[number]]?: InferredPropertySchema<Prop
|
|
51
|
+
} ? Prop['name'] extends 'textVariant' ? { [K in PS[number]]?: InferredPropertySchema<Prop>; } : { [K in PS[number]]: InferredPropertySchema<Prop>; } : {});
|
|
52
52
|
type GetExcludedPseudoStatesForOption<StateConfig extends ComponentStateConfig, StateOption extends string> = StateConfig extends {
|
|
53
53
|
excludePseudoStatesForOptions?: infer Exclusions extends Partial<Record<string, readonly PossibleStates[]>>;
|
|
54
54
|
} ? StateOption extends keyof Exclusions ? Exclusions[StateOption] : undefined : undefined;
|
|
@@ -60,26 +60,26 @@ type InferredPropertyStatesForOption<Prop extends SelectedConfigurableProperty<C
|
|
|
60
60
|
rest: InferredPropertySchema<Prop>;
|
|
61
61
|
}) & (Prop extends {
|
|
62
62
|
pseudoStates: infer PS extends PossibleStates[];
|
|
63
|
-
} ? Prop['name'] extends 'textVariant' ? { [K in Exclude<PS[number], ExcludedPseudoStates extends readonly PossibleStates[] ? ExcludedPseudoStates[number] : never>]?: InferredPropertySchema<Prop
|
|
63
|
+
} ? Prop['name'] extends 'textVariant' ? { [K in Exclude<PS[number], ExcludedPseudoStates extends readonly PossibleStates[] ? ExcludedPseudoStates[number] : never>]?: InferredPropertySchema<Prop>; } : { [K in Exclude<PS[number], ExcludedPseudoStates extends readonly PossibleStates[] ? ExcludedPseudoStates[number] : never>]: InferredPropertySchema<Prop>; } : {});
|
|
64
64
|
/** Infers property-to-states mappings for a layer's properties */
|
|
65
65
|
type InferredLayerProperties<Layer> = Layer extends LayerConfig ? Layer extends {
|
|
66
66
|
properties: infer Props extends LayerConfig['properties'];
|
|
67
67
|
} ? InferredLayerPropertyMap<Props, Layer> : {} : {};
|
|
68
68
|
type InferredLayerPropertiesForOption<Layer, ExcludedPseudoStates extends readonly PossibleStates[] | undefined> = Layer extends LayerConfig ? Layer extends {
|
|
69
69
|
properties: infer Props extends LayerConfig['properties'];
|
|
70
|
-
} ? { [PropKey in RequiredInDefaultSchemaPropKeys<Props>]: InferredPropertyStatesForOption<Props[PropKey], ExcludedPseudoStates
|
|
70
|
+
} ? { [PropKey in RequiredInDefaultSchemaPropKeys<Props>]: InferredPropertyStatesForOption<Props[PropKey], ExcludedPseudoStates>; } & { [PropKey in OptionalInDefaultSchemaPropKeys<Props>]?: InferredPropertyStatesForOption<Props[PropKey], ExcludedPseudoStates>; } : {} : {};
|
|
71
71
|
/** Generates schema key → properties mappings for a variant's layers or component states */
|
|
72
|
-
type InferredSchemaMap<VarKey extends string, VarConfig extends VariantConfig, LayersOrStates extends NonNullable<VariantConfigWithComponentStates['componentStates']> | NonNullable<VariantConfigWithProperties['layers']>, Prefix extends string = ''> = LayersOrStates extends NonNullable<VariantConfigWithComponentStates['componentStates']> ? UnionToIntersection<{ [StateKey in keyof OmitIndexSignature<LayersOrStates>]: UnionToIntersection<{ [StateOption in LayersOrStates[StateKey]['options'][number]]: { [LayerKey in Exclude<keyof OmitIndexSignature<LayersOrStates[StateKey]['layers']>, GetExcludedLayersForOption<LayersOrStates[StateKey], StateOption>> as `${Prefix}${VarKey}/${VarConfig['options'][number]}/${StateKey & string}/${StateOption}/${LayerKey & string}`]: InferredLayerPropertiesForOption<LayersOrStates[StateKey]['layers'][LayerKey], GetExcludedPseudoStatesForOption<LayersOrStates[StateKey], StateOption
|
|
73
|
-
type InferredVariantLevelProperties<Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>> = { [PropKey in RequiredInDefaultSchemaPropKeys<Props>]: InferredPropertyStates<Props[PropKey]
|
|
72
|
+
type InferredSchemaMap<VarKey extends string, VarConfig extends VariantConfig, LayersOrStates extends NonNullable<VariantConfigWithComponentStates['componentStates']> | NonNullable<VariantConfigWithProperties['layers']>, Prefix extends string = ''> = LayersOrStates extends NonNullable<VariantConfigWithComponentStates['componentStates']> ? UnionToIntersection<{ [StateKey in keyof OmitIndexSignature<LayersOrStates>]: UnionToIntersection<{ [StateOption in LayersOrStates[StateKey]['options'][number]]: { [LayerKey in Exclude<keyof OmitIndexSignature<LayersOrStates[StateKey]['layers']>, GetExcludedLayersForOption<LayersOrStates[StateKey], StateOption>> as `${Prefix}${VarKey}/${VarConfig['options'][number]}/${StateKey & string}/${StateOption}/${LayerKey & string}`]: InferredLayerPropertiesForOption<LayersOrStates[StateKey]['layers'][LayerKey], GetExcludedPseudoStatesForOption<LayersOrStates[StateKey], StateOption>>; }; }[LayersOrStates[StateKey]['options'][number]]>; }[keyof OmitIndexSignature<LayersOrStates>]> : { [LayerKey in keyof OmitIndexSignature<LayersOrStates> as `${Prefix}${VarKey}/${VarConfig['options'][number]}/${LayerKey & string}`]: InferredLayerProperties<LayersOrStates[LayerKey]>; };
|
|
73
|
+
type InferredVariantLevelProperties<Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>> = { [PropKey in RequiredInDefaultSchemaPropKeys<Props>]: InferredPropertyStates<Props[PropKey]>; } & { [PropKey in OptionalInDefaultSchemaPropKeys<Props>]?: InferredPropertyStates<Props[PropKey]>; };
|
|
74
74
|
type InferredVariantPropertiesMap<VarKey extends string, VarConfig extends VariantConfigWithProperties, Prefix extends string = ''> = VarConfig extends {
|
|
75
75
|
variantProperties: infer Props extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>;
|
|
76
|
-
} ? { [Option in VarConfig['options'][number] as `${Prefix}${VarKey}/${Option}`]: InferredVariantLevelProperties<Props
|
|
76
|
+
} ? { [Option in VarConfig['options'][number] as `${Prefix}${VarKey}/${Option}`]: InferredVariantLevelProperties<Props>; } : {};
|
|
77
77
|
/** Routes to appropriate schema map generator based on variant configuration type */
|
|
78
78
|
type InferredVariablesFilter<VarKey extends string, VarConfig extends VariantConfig, Prefix extends string = ''> = VarConfig extends VariantConfigWithComponentStates ? InferredSchemaMap<VarKey, VarConfig, VarConfig['componentStates'], Prefix> & (VarConfig extends {
|
|
79
79
|
layers: infer L;
|
|
80
80
|
} ? L extends NonNullable<VariantConfigWithProperties['layers']> ? InferredSchemaMap<VarKey, VarConfig, L, Prefix> : {} : {}) : VarConfig extends VariantConfigWithProperties ? InferredSchemaMap<VarKey, VarConfig, VarConfig['layers'], Prefix> & InferredVariantPropertiesMap<VarKey, VarConfig, Prefix> : {};
|
|
81
81
|
/** Collects all schema mappings from component variants and subComponents */
|
|
82
|
-
type InferredVariables<C extends ComponentConfig> = (C['variants'] extends NonNullable<ComponentConfig['variants']> ? UnionToIntersection<{ [VarKey in keyof C['variants']]: InferredVariablesFilter<VarKey & string, C['variants'][VarKey]
|
|
82
|
+
type InferredVariables<C extends ComponentConfig> = (C['variants'] extends NonNullable<ComponentConfig['variants']> ? UnionToIntersection<{ [VarKey in keyof C['variants']]: InferredVariablesFilter<VarKey & string, C['variants'][VarKey]>; }[keyof C['variants']]> : {}) & (C['subComponents'] extends NonNullable<ComponentConfig['subComponents']> ? UnionToIntersection<{ [SubCompKey in keyof C['subComponents']]: UnionToIntersection<{ [VarKey in keyof C['subComponents'][SubCompKey]['variants']]: InferredVariablesFilter<VarKey & string, C['subComponents'][SubCompKey]['variants'][VarKey], `${SubCompKey & string}/`>; }[keyof C['subComponents'][SubCompKey]['variants']]>; }[keyof C['subComponents']]> : {});
|
|
83
83
|
/** Component schema with inferred defaults and variable schema mappings */
|
|
84
84
|
type ComponentSchema<C extends ComponentConfig> = SimplifyDeep<WritableDeep<{
|
|
85
85
|
defaults: InferredDefaults<C>;
|
|
@@ -90,6 +90,6 @@ declare function findFixtureTypeForValue(property: SelectedConfigurableProperty<
|
|
|
90
90
|
/** Resolves the fixture type for a property's variant by finding which value set contains the default value */
|
|
91
91
|
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): AllPossibleProperties;
|
|
92
92
|
/** Builds component schema from ComponentConfig at runtime */
|
|
93
|
-
declare function buildConfigSchema<C extends ComponentConfig>(config: C): ComponentSchema<C>;
|
|
93
|
+
declare function buildConfigSchema<C extends ComponentConfig>(config: C): ComponentSchema<C>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { type ComponentSchema, buildConfigSchema, findFixtureType, findFixtureTypeForValue };
|