@yahoo/uds 3.100.0-beta.2 → 3.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/automated-config/dist/generated/autoVariants.cjs +1 -10
- package/dist/automated-config/dist/generated/autoVariants.d.cts +0 -9
- package/dist/automated-config/dist/generated/autoVariants.d.ts +0 -9
- package/dist/automated-config/dist/generated/autoVariants.js +1 -10
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +1 -1640
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +189 -405
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +189 -405
- package/dist/automated-config/dist/generated/generatedConfigs.js +1 -1639
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +0 -94
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +1 -2
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +1 -2
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +0 -94
- package/dist/automated-config/dist/properties.cjs +89 -147
- package/dist/automated-config/dist/properties.d.cts +3 -24
- package/dist/automated-config/dist/properties.d.ts +3 -24
- package/dist/automated-config/dist/properties.js +90 -148
- package/dist/automated-config/dist/utils/buildConfigSchema.cjs +1 -5
- package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +1 -2
- package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +1 -2
- package/dist/automated-config/dist/utils/buildConfigSchema.js +1 -5
- package/dist/automated-config/dist/utils/coalesceConfigVariant.cjs +2 -4
- package/dist/automated-config/dist/utils/coalesceConfigVariant.js +1 -1
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/automated-config/dist/utils/index.d.cts +1 -6
- package/dist/automated-config/dist/utils/index.d.ts +1 -6
- package/dist/automated-config/dist/utils/mapValues.cjs +13 -0
- package/dist/automated-config/dist/utils/mapValues.js +12 -0
- package/dist/cli/commands/sync.cjs +2 -6
- package/dist/cli/commands/sync.js +2 -6
- package/dist/cli/dist/commands/editor-rules.cjs +1 -1
- package/dist/cli/dist/commands/editor-rules.js +1 -1
- package/dist/cli/dist/utils/rules/config.cjs +1 -1
- package/dist/cli/dist/utils/rules/config.js +1 -1
- package/dist/cli/runner.cjs +23 -3
- package/dist/cli/runner.js +22 -3
- package/dist/components/client/Button.js +2 -2
- package/dist/components/client/SpringMotionConfig.cjs +8 -8
- package/dist/components/client/SpringMotionConfig.js +1 -1
- package/dist/components/client/index.cjs +0 -8
- package/dist/components/client/index.d.cts +1 -7
- package/dist/components/client/index.d.ts +1 -7
- package/dist/components/client/index.js +1 -5
- package/dist/components/client/providers/UDSConfigProvider.cjs +2 -6
- package/dist/components/client/providers/UDSConfigProvider.d.cts +1 -2
- package/dist/components/client/providers/UDSConfigProvider.d.ts +1 -2
- package/dist/components/client/providers/UDSConfigProvider.js +2 -6
- package/dist/components/experimental/index.cjs +36 -0
- package/dist/components/experimental/index.js +32 -1
- package/dist/components/index.cjs +51 -8
- package/dist/components/index.d.cts +1 -6
- package/dist/components/index.d.ts +1 -6
- package/dist/components/index.js +46 -5
- package/dist/config/dist/index.cjs +1 -95
- package/dist/config/dist/index.d.cts +1 -139
- package/dist/config/dist/index.d.ts +1 -139
- package/dist/config/dist/index.js +1 -95
- package/dist/css-tokens/dist/index.cjs +9 -2
- package/dist/css-tokens/dist/index.d.cts +13 -4
- package/dist/css-tokens/dist/index.d.ts +13 -4
- package/dist/css-tokens/dist/index.js +9 -2
- package/dist/fixtures/dist/index.cjs +1 -27
- package/dist/fixtures/dist/index.d.cts +3 -17
- package/dist/fixtures/dist/index.d.ts +3 -17
- package/dist/fixtures/dist/index.js +2 -26
- package/dist/fixtures/index.cjs +1 -6
- package/dist/fixtures/index.d.cts +2 -4
- package/dist/fixtures/index.d.ts +2 -4
- package/dist/fixtures/index.js +2 -3
- package/dist/index.cjs +10 -25
- package/dist/index.d.cts +4 -11
- package/dist/index.d.ts +4 -11
- package/dist/index.js +11 -18
- package/dist/runtime/index.cjs +0 -2
- package/dist/runtime/index.d.cts +1 -2
- package/dist/runtime/index.d.ts +1 -2
- package/dist/runtime/index.js +1 -2
- package/dist/runtime/udsConfig.cjs +1 -3
- package/dist/runtime/udsConfig.d.cts +0 -2
- package/dist/runtime/udsConfig.d.ts +0 -2
- package/dist/runtime/udsConfig.js +1 -3
- package/dist/styles/styler.d.cts +10 -19
- package/dist/styles/styler.d.ts +10 -19
- package/dist/styles/variants.d.cts +0 -27
- package/dist/styles/variants.d.ts +0 -27
- package/dist/tailwind/dist/.prettierrc.cjs +13 -0
- package/dist/tailwind/dist/.prettierrc.js +12 -0
- package/dist/tailwind/dist/_virtual/_rolldown/runtime.cjs +11 -0
- package/dist/tailwind/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/tailwind/dist/commands/generatePurgeCSSData.cjs +52 -0
- package/dist/tailwind/dist/commands/generatePurgeCSSData.d.ts +3 -0
- package/dist/tailwind/dist/commands/generatePurgeCSSData.js +50 -0
- package/dist/tailwind/dist/commands/purge.cjs +27 -0
- package/dist/tailwind/dist/commands/purge.d.ts +3 -0
- package/dist/tailwind/dist/commands/purge.js +27 -0
- package/dist/tailwind/dist/index.d.cts +3 -0
- package/dist/tailwind/dist/index.d.ts +5 -0
- package/dist/tailwind/dist/plugin.cjs +38 -0
- package/dist/tailwind/{tailwindPlugin.d.ts → dist/plugin.d.cts} +6 -5
- package/dist/tailwind/{tailwindPlugin.d.cts → dist/plugin.d.ts} +6 -5
- package/dist/tailwind/dist/plugin.js +37 -0
- package/dist/tailwind/dist/tailwind/base/addColorModeVars.cjs +21 -0
- package/dist/tailwind/{base → dist/tailwind/base}/addColorModeVars.js +4 -3
- package/dist/tailwind/{base → dist/tailwind/base}/addColorModeVarsV2.cjs +9 -10
- package/dist/tailwind/{base → dist/tailwind/base}/addColorModeVarsV2.js +4 -3
- package/dist/tailwind/dist/tailwind/base/addFontFaceDeclarations.cjs +12 -0
- package/dist/tailwind/{base → dist/tailwind/base}/addFontFaceDeclarations.js +2 -1
- package/dist/tailwind/dist/tailwind/base/addFontVars.cjs +11 -0
- package/dist/tailwind/{base → dist/tailwind/base}/addFontVars.js +2 -1
- package/dist/tailwind/dist/tailwind/base/addMotionVars.cjs +11 -0
- package/dist/tailwind/{base → dist/tailwind/base}/addMotionVars.js +2 -1
- package/dist/tailwind/{base → dist/tailwind/base}/addScaleModeVars.cjs +6 -6
- package/dist/tailwind/{base → dist/tailwind/base}/addScaleModeVars.js +4 -3
- package/dist/tailwind/{components → dist/tailwind/components}/getFocusRingStyles.cjs +3 -3
- package/dist/tailwind/{components → dist/tailwind/components}/getFocusRingStyles.js +3 -2
- package/dist/tailwind/dist/tailwind/components/getGroupedTextStyles.cjs +20 -0
- package/dist/tailwind/{components → dist/tailwind/components}/getGroupedTextStyles.js +4 -3
- package/dist/tailwind/{components → dist/tailwind/components}/getHitTargetStyles.cjs +2 -3
- package/dist/tailwind/{components → dist/tailwind/components}/getHitTargetStyles.js +3 -2
- package/dist/tailwind/{components → dist/tailwind/components}/getIconStyles.cjs +2 -2
- package/dist/tailwind/{components → dist/tailwind/components}/getIconStyles.js +2 -1
- package/dist/tailwind/{components → dist/tailwind/components}/getInputStyles.cjs +2 -2
- package/dist/tailwind/dist/tailwind/components/getInputStyles.d.cts +11 -0
- package/dist/tailwind/dist/tailwind/components/getInputStyles.d.ts +11 -0
- package/dist/tailwind/{components → dist/tailwind/components}/getInputStyles.js +2 -1
- package/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.cjs +72 -0
- package/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.d.cts +9 -0
- package/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.d.ts +9 -0
- package/dist/tailwind/{components → dist/tailwind/components}/getResponsiveTextStyles.js +5 -4
- package/dist/tailwind/{components → dist/tailwind/components}/types.d.cts +3 -4
- package/dist/tailwind/{components → dist/tailwind/components}/types.d.ts +3 -4
- package/dist/tailwind/{defaultTailwindThemeAsUdsConfig.cjs → dist/tailwind/defaultTailwindThemeAsUdsConfig.cjs} +2 -2
- package/dist/tailwind/{defaultTailwindThemeAsUdsConfig.d.cts → dist/tailwind/defaultTailwindThemeAsUdsConfig.d.cts} +3 -2
- package/dist/tailwind/{defaultTailwindThemeAsUdsConfig.d.ts → dist/tailwind/defaultTailwindThemeAsUdsConfig.d.ts} +3 -2
- package/dist/tailwind/{defaultTailwindThemeAsUdsConfig.js → dist/tailwind/defaultTailwindThemeAsUdsConfig.js} +2 -1
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/a11y.cjs +7 -7
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/a11y.js +2 -1
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/borderRadius.cjs +10 -12
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/borderRadius.js +6 -5
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/borderWidth.cjs +10 -11
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/borderWidth.js +6 -5
- package/dist/tailwind/dist/tailwind/plugins/breakpoints.cjs +35 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/breakpoints.js +5 -4
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/colors.cjs +19 -20
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/colors.js +8 -7
- package/dist/tailwind/dist/tailwind/plugins/components.cjs +31 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/components.js +5 -5
- package/dist/tailwind/dist/tailwind/plugins/elevation.cjs +38 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/elevation.js +5 -4
- package/dist/tailwind/{utils → dist/tailwind/plugins}/getTailwindAsUdsColors.cjs +11 -11
- package/dist/tailwind/{utils → dist/tailwind/plugins}/getTailwindAsUdsColors.js +4 -3
- package/dist/tailwind/dist/tailwind/plugins/icons.cjs +14 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/icons.js +2 -1
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/input.cjs +5 -5
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/input.js +2 -1
- package/dist/tailwind/dist/tailwind/plugins/motion.cjs +15 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/motion.js +2 -1
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/nestedBorderRadius.cjs +9 -9
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/nestedBorderRadius.js +2 -1
- package/dist/tailwind/dist/tailwind/plugins/scaleMode.cjs +18 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/scaleMode.js +3 -2
- package/dist/tailwind/dist/tailwind/plugins/shadows.cjs +46 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/shadows.js +3 -2
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/sizing.cjs +6 -6
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/sizing.js +4 -3
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/spacing.cjs +3 -3
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/spacing.js +2 -1
- package/dist/tailwind/dist/tailwind/plugins/typography.cjs +86 -0
- package/dist/tailwind/{plugins → dist/tailwind/plugins}/typography.js +21 -7
- package/dist/tailwind/dist/tailwind/theme/getFontFamilyTheme.cjs +24 -0
- package/dist/tailwind/{theme → dist/tailwind/theme}/getFontFamilyTheme.js +4 -3
- package/dist/tailwind/dist/tailwind/utils/addFontsPlugin.cjs +16 -0
- package/dist/tailwind/{utils → dist/tailwind/utils}/addFontsPlugin.d.cts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/addFontsPlugin.d.ts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/addFontsPlugin.js +2 -1
- package/dist/tailwind/{utils → dist/tailwind/utils}/composeTailwindPlugins.cjs +10 -17
- package/dist/tailwind/{utils → dist/tailwind/utils}/composeTailwindPlugins.d.cts +4 -16
- package/dist/tailwind/{utils → dist/tailwind/utils}/composeTailwindPlugins.d.ts +4 -15
- package/dist/tailwind/{utils → dist/tailwind/utils}/composeTailwindPlugins.js +2 -1
- package/dist/tailwind/{utils → dist/tailwind/utils}/flattenColorPalette.cjs +2 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/flattenColorPalette.js +2 -1
- package/dist/tailwind/{utils → dist/tailwind/utils}/getColorModeStyles.cjs +2 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getColorModeStyles.d.cts +3 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getColorModeStyles.d.ts +3 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getColorModeStyles.js +2 -1
- package/dist/tailwind/dist/tailwind/utils/getElevationStyles.cjs +33 -0
- package/dist/tailwind/{utils → dist/tailwind/utils}/getElevationStyles.d.cts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getElevationStyles.d.ts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getElevationStyles.js +5 -4
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontFaceDeclarations.cjs +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontFaceDeclarations.d.cts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontFaceDeclarations.d.ts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontFaceDeclarations.js +3 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontStyles.cjs +7 -7
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontStyles.d.cts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontStyles.d.ts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getFontStyles.js +6 -5
- package/dist/tailwind/dist/tailwind/utils/getMotionStyles.cjs +38 -0
- package/dist/tailwind/{utils → dist/tailwind/utils}/getMotionStyles.d.cts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getMotionStyles.d.ts +3 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getMotionStyles.js +6 -5
- package/dist/tailwind/{utils → dist/tailwind/utils}/getNestedBorderRadiusUtilities.cjs +2 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getNestedBorderRadiusUtilities.js +2 -1
- package/dist/tailwind/{utils → dist/tailwind/utils}/getScaleModeStyles.cjs +2 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getScaleModeStyles.d.cts +3 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getScaleModeStyles.d.ts +3 -2
- package/dist/tailwind/{utils → dist/tailwind/utils}/getScaleModeStyles.js +2 -1
- package/dist/tailwind/{utils → dist/tailwind/utils}/getShadowPresetValues.cjs +5 -5
- package/dist/tailwind/{utils → dist/tailwind/utils}/getShadowPresetValues.d.cts +4 -4
- package/dist/tailwind/{utils → dist/tailwind/utils}/getShadowPresetValues.d.ts +4 -4
- package/dist/tailwind/{utils → dist/tailwind/utils}/getShadowPresetValues.js +4 -3
- package/dist/tailwind/{utils → dist/tailwind/utils}/getShadowStyles.cjs +6 -6
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.cts +22 -0
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.ts +22 -0
- package/dist/tailwind/{utils → dist/tailwind/utils}/getShadowStyles.js +5 -4
- package/dist/tailwind/dist/utils/assertUnreachable.cjs +10 -0
- package/dist/tailwind/dist/utils/assertUnreachable.js +9 -0
- package/dist/tailwind/dist/utils/entries.cjs +10 -0
- package/dist/tailwind/dist/utils/entries.js +9 -0
- package/dist/tailwind/dist/utils/fromEntries.cjs +18 -0
- package/dist/tailwind/dist/utils/fromEntries.js +17 -0
- package/dist/tailwind/dist/utils/generatePurgeCSSData.cjs +190 -0
- package/dist/tailwind/dist/utils/generatePurgeCSSData.js +181 -0
- package/dist/tailwind/dist/utils/mapValues.cjs +13 -0
- package/dist/tailwind/dist/utils/mapValues.js +12 -0
- package/dist/{tokens → tailwind/dist}/utils/opacity.cjs +5 -6
- package/dist/{tokens → tailwind/dist}/utils/opacity.js +2 -1
- package/dist/tailwind/dist/utils/parseTokens.cjs +136 -0
- package/dist/tailwind/dist/utils/parseTokens.d.cts +32 -0
- package/dist/tailwind/dist/utils/parseTokens.d.ts +32 -0
- package/dist/tailwind/dist/utils/parseTokens.js +136 -0
- package/dist/{cli/commands → tailwind/dist}/utils/purgeCSS.cjs +35 -46
- package/dist/tailwind/dist/utils/purgeCSS.d.ts +2 -0
- package/dist/{cli/commands → tailwind/dist}/utils/purgeCSS.js +26 -26
- package/dist/{uds/scripts → tailwind/dist}/utils/tsMorph.cjs +11 -27
- package/dist/{uds/scripts → tailwind/dist}/utils/tsMorph.js +4 -12
- package/dist/tailwind/dist/utils.d.cts +11 -0
- package/dist/tailwind/dist/utils.d.ts +11 -0
- package/dist/tailwind/plugin.cjs +10 -0
- package/dist/tailwind/plugin.d.cts +5 -0
- package/dist/tailwind/plugin.d.ts +5 -0
- package/dist/tailwind/plugin.js +6 -0
- package/dist/tailwind/{purger/index.cjs → purger.cjs} +1 -1
- package/dist/tailwind/{purger/index.d.ts → purger.d.cts} +1 -1
- package/dist/tailwind/{purger/index.d.cts → purger.d.ts} +1 -1
- package/dist/tailwind/{purger/index.js → purger.js} +1 -1
- package/dist/tailwind/utils.cjs +25 -0
- package/dist/tailwind/utils.d.cts +13 -0
- package/dist/tailwind/utils.d.ts +13 -0
- package/dist/tailwind/utils.js +13 -0
- package/dist/tokens/automation/configs/index.cjs +1 -2
- package/dist/tokens/automation/configs/index.d.cts +2 -2
- package/dist/tokens/automation/configs/index.d.ts +2 -2
- package/dist/tokens/automation/configs/index.js +2 -2
- package/dist/tokens/automation/index.cjs +0 -1
- package/dist/tokens/automation/index.d.cts +2 -2
- package/dist/tokens/automation/index.d.ts +2 -2
- package/dist/tokens/automation/index.js +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/configs/typography.cjs +0 -15
- package/dist/tokens/configs/typography.d.cts +2 -6
- package/dist/tokens/configs/typography.d.ts +2 -6
- package/dist/tokens/configs/typography.js +1 -15
- package/dist/tokens/consts/cssTokens.cjs +1 -1
- package/dist/tokens/consts/cssTokens.d.cts +2 -2
- package/dist/tokens/consts/cssTokens.d.ts +2 -2
- package/dist/tokens/consts/cssTokens.js +2 -2
- package/dist/tokens/index.cjs +2 -7
- package/dist/tokens/index.d.cts +4 -6
- package/dist/tokens/index.d.ts +4 -6
- package/dist/tokens/index.js +4 -6
- package/dist/tokens/parseTokens.cjs +2 -133
- package/dist/tokens/parseTokens.d.cts +2 -30
- package/dist/tokens/parseTokens.d.ts +2 -30
- package/dist/tokens/parseTokens.js +1 -132
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +2 -25
- package/dist/types/dist/index.d.ts +2 -25
- package/dist/uds/generated/tailwindPurge.cjs +2 -31
- package/dist/uds/generated/tailwindPurge.js +2 -31
- package/dist/uds/package.cjs +284 -0
- package/dist/uds/package.js +278 -0
- package/dist/utils/fromEntries.cjs +18 -0
- package/dist/utils/fromEntries.d.cts +13 -0
- package/dist/utils/fromEntries.d.ts +13 -0
- package/dist/utils/fromEntries.js +16 -0
- package/package.json +15 -28
- package/dist/cli/commands/purge.cjs +0 -26
- package/dist/cli/commands/purge.d.cts +0 -15
- package/dist/cli/commands/purge.d.ts +0 -15
- package/dist/cli/commands/purge.js +0 -25
- package/dist/cli/commands/utils/purgeCSS.d.cts +0 -59
- package/dist/cli/commands/utils/purgeCSS.d.ts +0 -59
- package/dist/components/client/Tooltip/Tooltip.cjs +0 -37
- package/dist/components/client/Tooltip/Tooltip.d.cts +0 -16
- package/dist/components/client/Tooltip/Tooltip.d.ts +0 -16
- package/dist/components/client/Tooltip/Tooltip.js +0 -35
- package/dist/components/client/Tooltip/TooltipContent.cjs +0 -174
- package/dist/components/client/Tooltip/TooltipContent.d.cts +0 -8
- package/dist/components/client/Tooltip/TooltipContent.d.ts +0 -8
- package/dist/components/client/Tooltip/TooltipContent.js +0 -172
- package/dist/components/client/Tooltip/TooltipTrigger.cjs +0 -20
- package/dist/components/client/Tooltip/TooltipTrigger.d.cts +0 -13
- package/dist/components/client/Tooltip/TooltipTrigger.d.ts +0 -13
- package/dist/components/client/Tooltip/TooltipTrigger.js +0 -18
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.cjs +0 -41
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +0 -29
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +0 -29
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.js +0 -38
- package/dist/components/client/Tooltip/index.cjs +0 -12
- package/dist/components/client/Tooltip/index.d.cts +0 -7
- package/dist/components/client/Tooltip/index.d.ts +0 -7
- package/dist/components/client/Tooltip/index.js +0 -8
- package/dist/components/client/Tooltip/tooltipContext.cjs +0 -12
- package/dist/components/client/Tooltip/tooltipContext.d.cts +0 -12
- package/dist/components/client/Tooltip/tooltipContext.d.ts +0 -12
- package/dist/components/client/Tooltip/tooltipContext.js +0 -10
- package/dist/components/client/Tooltip/useTooltipContent.cjs +0 -199
- package/dist/components/client/Tooltip/useTooltipContent.d.cts +0 -65
- package/dist/components/client/Tooltip/useTooltipContent.d.ts +0 -65
- package/dist/components/client/Tooltip/useTooltipContent.js +0 -197
- package/dist/components/client/Tooltip/util.cjs +0 -248
- package/dist/components/client/Tooltip/util.d.cts +0 -118
- package/dist/components/client/Tooltip/util.d.ts +0 -118
- package/dist/components/client/Tooltip/util.js +0 -240
- package/dist/fixtures/dist/arbitrary.d.cts +0 -11
- package/dist/fixtures/dist/arbitrary.d.ts +0 -11
- package/dist/fixtures/src/arbitrary.cjs +0 -23
- package/dist/fixtures/src/arbitrary.d.cts +0 -15
- package/dist/fixtures/src/arbitrary.d.ts +0 -15
- package/dist/fixtures/src/arbitrary.js +0 -18
- package/dist/fixtures/src/util.cjs +0 -26
- package/dist/fixtures/src/util.d.cts +0 -9
- package/dist/fixtures/src/util.d.ts +0 -9
- package/dist/fixtures/src/util.js +0 -25
- package/dist/runtime/tooltipConfig.cjs +0 -50
- package/dist/runtime/tooltipConfig.d.cts +0 -21
- package/dist/runtime/tooltipConfig.d.ts +0 -21
- package/dist/runtime/tooltipConfig.js +0 -49
- package/dist/tailwind/base/addColorModeVars.cjs +0 -22
- package/dist/tailwind/base/addColorModeVars.d.cts +0 -11
- package/dist/tailwind/base/addColorModeVars.d.ts +0 -11
- package/dist/tailwind/base/addColorModeVarsV2.d.cts +0 -11
- package/dist/tailwind/base/addColorModeVarsV2.d.ts +0 -11
- package/dist/tailwind/base/addFontFaceDeclarations.cjs +0 -12
- package/dist/tailwind/base/addFontFaceDeclarations.d.cts +0 -11
- package/dist/tailwind/base/addFontFaceDeclarations.d.ts +0 -11
- package/dist/tailwind/base/addFontVars.cjs +0 -11
- package/dist/tailwind/base/addFontVars.d.cts +0 -11
- package/dist/tailwind/base/addFontVars.d.ts +0 -11
- package/dist/tailwind/base/addMotionVars.cjs +0 -11
- package/dist/tailwind/base/addMotionVars.d.cts +0 -11
- package/dist/tailwind/base/addMotionVars.d.ts +0 -11
- package/dist/tailwind/base/addScaleModeVars.d.cts +0 -10
- package/dist/tailwind/base/addScaleModeVars.d.ts +0 -10
- package/dist/tailwind/components/getFocusRingStyles.d.cts +0 -14
- package/dist/tailwind/components/getFocusRingStyles.d.ts +0 -14
- package/dist/tailwind/components/getGroupedTextStyles.cjs +0 -21
- package/dist/tailwind/components/getGroupedTextStyles.d.cts +0 -26
- package/dist/tailwind/components/getGroupedTextStyles.d.ts +0 -26
- package/dist/tailwind/components/getHitTargetStyles.d.cts +0 -8
- package/dist/tailwind/components/getHitTargetStyles.d.ts +0 -8
- package/dist/tailwind/components/getIconStyles.d.cts +0 -10
- package/dist/tailwind/components/getIconStyles.d.ts +0 -10
- package/dist/tailwind/components/getInputStyles.d.cts +0 -10
- package/dist/tailwind/components/getInputStyles.d.ts +0 -10
- package/dist/tailwind/components/getResponsiveTextStyles.cjs +0 -74
- package/dist/tailwind/components/getResponsiveTextStyles.d.cts +0 -39
- package/dist/tailwind/components/getResponsiveTextStyles.d.ts +0 -39
- package/dist/tailwind/components/types.cjs +0 -1
- package/dist/tailwind/components/types.js +0 -1
- package/dist/tailwind/plugins/a11y.d.cts +0 -14
- package/dist/tailwind/plugins/a11y.d.ts +0 -14
- package/dist/tailwind/plugins/blurBgFallback.cjs +0 -30
- package/dist/tailwind/plugins/blurBgFallback.d.cts +0 -14
- package/dist/tailwind/plugins/blurBgFallback.d.ts +0 -14
- package/dist/tailwind/plugins/blurBgFallback.js +0 -27
- package/dist/tailwind/plugins/borderRadius.d.cts +0 -28
- package/dist/tailwind/plugins/borderRadius.d.ts +0 -28
- package/dist/tailwind/plugins/borderWidth.d.cts +0 -16
- package/dist/tailwind/plugins/borderWidth.d.ts +0 -16
- package/dist/tailwind/plugins/breakpoints.cjs +0 -37
- package/dist/tailwind/plugins/breakpoints.d.cts +0 -42
- package/dist/tailwind/plugins/breakpoints.d.ts +0 -42
- package/dist/tailwind/plugins/colors.d.cts +0 -14
- package/dist/tailwind/plugins/colors.d.ts +0 -14
- package/dist/tailwind/plugins/components.cjs +0 -32
- package/dist/tailwind/plugins/components.d.cts +0 -14
- package/dist/tailwind/plugins/components.d.ts +0 -14
- package/dist/tailwind/plugins/elevation.cjs +0 -38
- package/dist/tailwind/plugins/elevation.d.cts +0 -14
- package/dist/tailwind/plugins/elevation.d.ts +0 -14
- package/dist/tailwind/plugins/icons.cjs +0 -14
- package/dist/tailwind/plugins/icons.d.cts +0 -14
- package/dist/tailwind/plugins/icons.d.ts +0 -14
- package/dist/tailwind/plugins/input.d.cts +0 -17
- package/dist/tailwind/plugins/input.d.ts +0 -17
- package/dist/tailwind/plugins/motion.cjs +0 -15
- package/dist/tailwind/plugins/motion.d.cts +0 -14
- package/dist/tailwind/plugins/motion.d.ts +0 -14
- package/dist/tailwind/plugins/nestedBorderRadius.d.cts +0 -14
- package/dist/tailwind/plugins/nestedBorderRadius.d.ts +0 -14
- package/dist/tailwind/plugins/scaleMode.cjs +0 -18
- package/dist/tailwind/plugins/scaleMode.d.cts +0 -17
- package/dist/tailwind/plugins/scaleMode.d.ts +0 -17
- package/dist/tailwind/plugins/shadows.cjs +0 -46
- package/dist/tailwind/plugins/shadows.d.cts +0 -14
- package/dist/tailwind/plugins/shadows.d.ts +0 -14
- package/dist/tailwind/plugins/sizing.d.cts +0 -17
- package/dist/tailwind/plugins/sizing.d.ts +0 -17
- package/dist/tailwind/plugins/spacing.d.cts +0 -14
- package/dist/tailwind/plugins/spacing.d.ts +0 -14
- package/dist/tailwind/plugins/typography.cjs +0 -73
- package/dist/tailwind/plugins/typography.d.cts +0 -14
- package/dist/tailwind/plugins/typography.d.ts +0 -14
- package/dist/tailwind/postcss.config.cjs +0 -9
- package/dist/tailwind/postcss.config.d.cts +0 -2
- package/dist/tailwind/postcss.config.d.ts +0 -2
- package/dist/tailwind/postcss.config.js +0 -13
- package/dist/tailwind/tailwind.config.cjs +0 -30
- package/dist/tailwind/tailwind.config.d.cts +0 -19
- package/dist/tailwind/tailwind.config.d.ts +0 -20
- package/dist/tailwind/tailwind.config.js +0 -30
- package/dist/tailwind/tailwindPlugin.cjs +0 -40
- package/dist/tailwind/tailwindPlugin.js +0 -37
- package/dist/tailwind/theme/getFontFamilyTheme.cjs +0 -25
- package/dist/tailwind/theme/getFontFamilyTheme.d.cts +0 -7
- package/dist/tailwind/theme/getFontFamilyTheme.d.ts +0 -7
- package/dist/tailwind/tsMorph.cjs +0 -12
- package/dist/tailwind/tsMorph.d.cts +0 -3
- package/dist/tailwind/tsMorph.d.ts +0 -3
- package/dist/tailwind/tsMorph.js +0 -4
- package/dist/tailwind/utils/addFontsPlugin.cjs +0 -16
- package/dist/tailwind/utils/flattenColorPalette.d.cts +0 -5
- package/dist/tailwind/utils/flattenColorPalette.d.ts +0 -5
- package/dist/tailwind/utils/getElevationStyles.cjs +0 -33
- package/dist/tailwind/utils/getMotionStyles.cjs +0 -39
- package/dist/tailwind/utils/getNestedBorderRadiusUtilities.d.cts +0 -27
- package/dist/tailwind/utils/getNestedBorderRadiusUtilities.d.ts +0 -27
- package/dist/tailwind/utils/getShadowStyles.d.cts +0 -22
- package/dist/tailwind/utils/getShadowStyles.d.ts +0 -22
- package/dist/tailwind/utils/getShadowVars.cjs +0 -27
- package/dist/tailwind/utils/getShadowVars.d.cts +0 -8
- package/dist/tailwind/utils/getShadowVars.d.ts +0 -8
- package/dist/tailwind/utils/getShadowVars.js +0 -26
- package/dist/tailwind/utils/getTailwindAsUdsColors.d.cts +0 -9
- package/dist/tailwind/utils/getTailwindAsUdsColors.d.ts +0 -9
- package/dist/tailwind/utils/index.cjs +0 -25
- package/dist/tailwind/utils/index.d.cts +0 -12
- package/dist/tailwind/utils/index.d.ts +0 -12
- package/dist/tailwind/utils/index.js +0 -13
- package/dist/tokens/utils/opacity.d.cts +0 -20
- package/dist/tokens/utils/opacity.d.ts +0 -20
- package/dist/uds/scripts/utils/tsMorph.d.cts +0 -33
- package/dist/uds/scripts/utils/tsMorph.d.ts +0 -33
- package/dist/utils/getMotionVar.cjs +0 -16
- package/dist/utils/getMotionVar.d.cts +0 -17
- package/dist/utils/getMotionVar.d.ts +0 -17
- package/dist/utils/getMotionVar.js +0 -15
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
-
//#region src/components/client/Tooltip/util.ts
|
|
4
|
-
/**
|
|
5
|
-
* Splits a CSS value on whitespace, but keeps parenthesized groups
|
|
6
|
-
* (e.g. `rgb(0, 0, 0)`) together as single tokens.
|
|
7
|
-
*/
|
|
8
|
-
function tokenizeCSSValue(value) {
|
|
9
|
-
const tokens = [];
|
|
10
|
-
let current = "";
|
|
11
|
-
let depth = 0;
|
|
12
|
-
for (const char of value) {
|
|
13
|
-
if (char === "(") depth++;
|
|
14
|
-
if (char === ")") depth--;
|
|
15
|
-
if (char === " " && depth === 0) {
|
|
16
|
-
if (current) tokens.push(current);
|
|
17
|
-
current = "";
|
|
18
|
-
} else current += char;
|
|
19
|
-
}
|
|
20
|
-
if (current) tokens.push(current);
|
|
21
|
-
return tokens;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Returns `true` if the token is a CSS color value.
|
|
25
|
-
*
|
|
26
|
-
* In a box-shadow context (after filtering `inset`), every token is either a
|
|
27
|
-
* length or a color. Colors always start with `#` (hex), a letter (named
|
|
28
|
-
* colors like `red`, `transparent`, `currentcolor`), or are a CSS function
|
|
29
|
-
* containing `(` (e.g. `rgb(…)`, `hsl(…)`, `oklch(…)`).
|
|
30
|
-
*/
|
|
31
|
-
function isColorToken(token) {
|
|
32
|
-
const ch = token[0];
|
|
33
|
-
return ch !== "-" && ch !== "." && (ch < "0" || ch > "9");
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Splits a CSS multi-shadow value (comma-separated) into individual
|
|
37
|
-
* shadow strings, correctly handling commas nested inside color functions
|
|
38
|
-
* like `rgb()`, `rgba()`, `hsl()`, etc.
|
|
39
|
-
*/
|
|
40
|
-
function splitShadows(value) {
|
|
41
|
-
const shadows = [];
|
|
42
|
-
let current = "";
|
|
43
|
-
let depth = 0;
|
|
44
|
-
for (let i = 0; i < value.length; i++) {
|
|
45
|
-
const char = value[i];
|
|
46
|
-
if (char === "(") {
|
|
47
|
-
depth++;
|
|
48
|
-
current += char;
|
|
49
|
-
} else if (char === ")") {
|
|
50
|
-
depth--;
|
|
51
|
-
current += char;
|
|
52
|
-
} else if (char === "," && depth === 0) {
|
|
53
|
-
if (current.trim()) shadows.push(current.trim());
|
|
54
|
-
current = "";
|
|
55
|
-
} else current += char;
|
|
56
|
-
}
|
|
57
|
-
if (current.trim()) shadows.push(current.trim());
|
|
58
|
-
return shadows;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Parses a single CSS shadow value string into its constituent parts.
|
|
62
|
-
*
|
|
63
|
-
* Handles all standard CSS box-shadow / drop-shadow permutations:
|
|
64
|
-
* - Color before or after length values (`red 0 4px 8px` or `0 4px 8px red`)
|
|
65
|
-
* - Optional blur and spread radii (defaults to 0)
|
|
66
|
-
* - `inset` keyword at any position (silently ignored)
|
|
67
|
-
* - All color formats: named, hex (3/4/6/8-digit), rgb/rgba, hsl/hsla, oklch,
|
|
68
|
-
* oklab, lab, lch, color(), color-mix(), light-dark(), etc.
|
|
69
|
-
* - `none` / empty values → zeroed-out result with `transparent` color
|
|
70
|
-
*/
|
|
71
|
-
function parseSingleShadow(shadow) {
|
|
72
|
-
const value = shadow.trim();
|
|
73
|
-
if (!value || value.toLowerCase() === "none") return {
|
|
74
|
-
x: 0,
|
|
75
|
-
y: 0,
|
|
76
|
-
blur: 0,
|
|
77
|
-
spread: 0,
|
|
78
|
-
color: "transparent"
|
|
79
|
-
};
|
|
80
|
-
const tokens = tokenizeCSSValue(value);
|
|
81
|
-
const lengths = [];
|
|
82
|
-
const colorParts = [];
|
|
83
|
-
for (const token of tokens) {
|
|
84
|
-
if (token.toLowerCase() === "inset") continue;
|
|
85
|
-
if (isColorToken(token)) colorParts.push(token);
|
|
86
|
-
else lengths.push(token);
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
x: lengths.length > 0 ? parseFloat(lengths[0]) : 0,
|
|
90
|
-
y: lengths.length > 1 ? parseFloat(lengths[1]) : 0,
|
|
91
|
-
blur: lengths.length > 2 ? parseFloat(lengths[2]) : 0,
|
|
92
|
-
spread: lengths.length > 3 ? parseFloat(lengths[3]) : 0,
|
|
93
|
-
color: colorParts.length > 0 ? colorParts.join(" ") : "rgb(0 0 0 / 1)"
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Parses a CSS shadow value — which may contain multiple comma-separated
|
|
98
|
-
* layers — into an array of {@link ParsedShadow} objects.
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```ts
|
|
102
|
-
* parseShadow('0px 4px 8px 0px rgb(0 0 0 / 0.12)')
|
|
103
|
-
* // → [{ x: 0, y: 4, blur: 8, spread: 0, color: 'rgb(0 0 0 / 0.12)' }]
|
|
104
|
-
*
|
|
105
|
-
* parseShadow('0px 4px 8px rgb(0 0 0 / 0.12), 0px 1px 2px rgba(0, 0, 0, 0.08)')
|
|
106
|
-
* // → [
|
|
107
|
-
* // { x: 0, y: 4, blur: 8, spread: 0, color: 'rgb(0 0 0 / 0.12)' },
|
|
108
|
-
* // { x: 0, y: 1, blur: 2, spread: 0, color: 'rgba(0, 0, 0, 0.08)' },
|
|
109
|
-
* // ]
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
function parseShadow(shadowValue) {
|
|
113
|
-
const trimmed = shadowValue.trim();
|
|
114
|
-
if (!trimmed || trimmed.toLowerCase() === "none") return [];
|
|
115
|
-
return splitShadows(trimmed).map(parseSingleShadow);
|
|
116
|
-
}
|
|
117
|
-
/** Base width of the arrow triangle (px). */
|
|
118
|
-
const ARROW_WIDTH = 12;
|
|
119
|
-
/** Height (protrusion) of the arrow triangle from the edge (px). */
|
|
120
|
-
const ARROW_HEIGHT = 8;
|
|
121
|
-
/**
|
|
122
|
-
* Fraction of the container border-radius applied to round the arrow tip
|
|
123
|
-
* (0 = sharp point, 1 = same radius as the container corners).
|
|
124
|
-
*/
|
|
125
|
-
const ARROW_TIP_RADIUS_FRACTION = .5;
|
|
126
|
-
/**
|
|
127
|
-
* Returns the side of the tooltip where the arrow should appear.
|
|
128
|
-
* The arrow points *toward* the trigger, so it lives on the opposite
|
|
129
|
-
* side of the placement direction.
|
|
130
|
-
*/
|
|
131
|
-
function getArrowSide(placement) {
|
|
132
|
-
switch (placement.split("-")[0]) {
|
|
133
|
-
case "bottom": return "top";
|
|
134
|
-
case "top": return "bottom";
|
|
135
|
-
case "left": return "right";
|
|
136
|
-
case "right": return "left";
|
|
137
|
-
default: return "top";
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Generates an SVG `<path>` string for a rounded rectangle with an arrow
|
|
142
|
-
* pointing toward the trigger element.
|
|
143
|
-
*
|
|
144
|
-
* The path is traced clockwise, inserting the arrow triangle on the
|
|
145
|
-
* appropriate edge. The arrow extends *outside* the 0,0 → width,height
|
|
146
|
-
* rectangle so the host `<svg>` must use `overflow: visible`.
|
|
147
|
-
*/
|
|
148
|
-
function generateTooltipPath({ width, height, placement, borderRadius, arrowWidth = ARROW_WIDTH, arrowHeight = ARROW_HEIGHT, arrowCenter, offsetX: ox = 0, offsetY: oy = 0 }) {
|
|
149
|
-
const aw = arrowWidth / 2;
|
|
150
|
-
const ah = arrowHeight;
|
|
151
|
-
const arrowSide = getArrowSide(placement);
|
|
152
|
-
const arrowEdge = arrowSide === "top" || arrowSide === "bottom" ? width : height;
|
|
153
|
-
const otherEdge = arrowSide === "top" || arrowSide === "bottom" ? height : width;
|
|
154
|
-
const maxRadius = Math.min(otherEdge / 2, (arrowEdge - arrowWidth) / 2);
|
|
155
|
-
const r = Math.max(0, Math.min(borderRadius, maxRadius));
|
|
156
|
-
const minAc = r + aw;
|
|
157
|
-
const edgeLength = arrowSide === "top" || arrowSide === "bottom" ? width : height;
|
|
158
|
-
let ac = arrowCenter ?? edgeLength / 2;
|
|
159
|
-
ac = Math.max(minAc, Math.min(edgeLength - minAc, ac));
|
|
160
|
-
const edgeLen = Math.sqrt(aw * aw + ah * ah);
|
|
161
|
-
const tipR = r > 0 && edgeLen > 0 ? Math.min(r * ARROW_TIP_RADIUS_FRACTION, edgeLen / 2) : 0;
|
|
162
|
-
const daw = edgeLen > 0 ? aw / edgeLen : 0;
|
|
163
|
-
const dah = edgeLen > 0 ? ah / edgeLen : 0;
|
|
164
|
-
const d = [];
|
|
165
|
-
d.push(`M ${r + ox} ${oy}`);
|
|
166
|
-
if (arrowSide === "top") {
|
|
167
|
-
d.push(`L ${ac - aw + ox} ${oy}`);
|
|
168
|
-
if (tipR > 0) {
|
|
169
|
-
d.push(`L ${ac - tipR * daw + ox} ${-ah + tipR * dah + oy}`);
|
|
170
|
-
d.push(`Q ${ac + ox} ${-ah + oy} ${ac + tipR * daw + ox} ${-ah + tipR * dah + oy}`);
|
|
171
|
-
} else d.push(`L ${ac + ox} ${-ah + oy}`);
|
|
172
|
-
d.push(`L ${ac + aw + ox} ${oy}`);
|
|
173
|
-
}
|
|
174
|
-
d.push(`L ${width - r + ox} ${oy}`);
|
|
175
|
-
d.push(`A ${r} ${r} 0 0 1 ${width + ox} ${r + oy}`);
|
|
176
|
-
if (arrowSide === "right") {
|
|
177
|
-
d.push(`L ${width + ox} ${ac - aw + oy}`);
|
|
178
|
-
if (tipR > 0) {
|
|
179
|
-
d.push(`L ${width + ah - tipR * dah + ox} ${ac - tipR * daw + oy}`);
|
|
180
|
-
d.push(`Q ${width + ah + ox} ${ac + oy} ${width + ah - tipR * dah + ox} ${ac + tipR * daw + oy}`);
|
|
181
|
-
} else d.push(`L ${width + ah + ox} ${ac + oy}`);
|
|
182
|
-
d.push(`L ${width + ox} ${ac + aw + oy}`);
|
|
183
|
-
}
|
|
184
|
-
d.push(`L ${width + ox} ${height - r + oy}`);
|
|
185
|
-
d.push(`A ${r} ${r} 0 0 1 ${width - r + ox} ${height + oy}`);
|
|
186
|
-
if (arrowSide === "bottom") {
|
|
187
|
-
d.push(`L ${ac + aw + ox} ${height + oy}`);
|
|
188
|
-
if (tipR > 0) {
|
|
189
|
-
d.push(`L ${ac + tipR * daw + ox} ${height + ah - tipR * dah + oy}`);
|
|
190
|
-
d.push(`Q ${ac + ox} ${height + ah + oy} ${ac - tipR * daw + ox} ${height + ah - tipR * dah + oy}`);
|
|
191
|
-
} else d.push(`L ${ac + ox} ${height + ah + oy}`);
|
|
192
|
-
d.push(`L ${ac - aw + ox} ${height + oy}`);
|
|
193
|
-
}
|
|
194
|
-
d.push(`L ${r + ox} ${height + oy}`);
|
|
195
|
-
d.push(`A ${r} ${r} 0 0 1 ${ox} ${height - r + oy}`);
|
|
196
|
-
if (arrowSide === "left") {
|
|
197
|
-
d.push(`L ${ox} ${ac + aw + oy}`);
|
|
198
|
-
if (tipR > 0) {
|
|
199
|
-
d.push(`L ${-ah + tipR * dah + ox} ${ac + tipR * daw + oy}`);
|
|
200
|
-
d.push(`Q ${-ah + ox} ${ac + oy} ${-ah + tipR * dah + ox} ${ac - tipR * daw + oy}`);
|
|
201
|
-
} else d.push(`L ${-ah + ox} ${ac + oy}`);
|
|
202
|
-
d.push(`L ${ox} ${ac - aw + oy}`);
|
|
203
|
-
}
|
|
204
|
-
d.push(`L ${ox} ${r + oy}`);
|
|
205
|
-
d.push(`A ${r} ${r} 0 0 1 ${r + ox} ${oy}`);
|
|
206
|
-
d.push("Z");
|
|
207
|
-
return d.join(" ");
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Computes the pixel offset the tooltip must shift so that the SVG arrow
|
|
211
|
-
* (after clamping) visually aligns with the Ariakit arrow's actual position.
|
|
212
|
-
*
|
|
213
|
-
* When the desired `arrowCenter` falls inside the safe zone the delta is 0.
|
|
214
|
-
* When it falls outside (e.g. a tiny trigger near a rounded corner), the
|
|
215
|
-
* returned delta tells the caller how far to translate the tooltip element
|
|
216
|
-
* so the clamped arrow ends up over the trigger center.
|
|
217
|
-
*/
|
|
218
|
-
function getArrowClampDelta({ width, height, placement, borderRadius, arrowCenter, arrowWidth = ARROW_WIDTH }) {
|
|
219
|
-
const aw = arrowWidth / 2;
|
|
220
|
-
const side = getArrowSide(placement);
|
|
221
|
-
const arrowEdge = side === "top" || side === "bottom" ? width : height;
|
|
222
|
-
const otherEdge = side === "top" || side === "bottom" ? height : width;
|
|
223
|
-
const maxRadius = Math.min(otherEdge / 2, (arrowEdge - arrowWidth) / 2);
|
|
224
|
-
const minAc = Math.max(0, Math.min(borderRadius, maxRadius)) + aw;
|
|
225
|
-
const maxAc = arrowEdge - minAc;
|
|
226
|
-
let delta = 0;
|
|
227
|
-
if (arrowCenter < minAc) delta = arrowCenter - minAc;
|
|
228
|
-
else if (arrowCenter > maxAc) delta = arrowCenter - maxAc;
|
|
229
|
-
if (side === "top" || side === "bottom") return {
|
|
230
|
-
x: delta,
|
|
231
|
-
y: 0
|
|
232
|
-
};
|
|
233
|
-
return {
|
|
234
|
-
x: 0,
|
|
235
|
-
y: delta
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
//#endregion
|
|
240
|
-
export { ARROW_HEIGHT, ARROW_TIP_RADIUS_FRACTION, ARROW_WIDTH, generateTooltipPath, getArrowClampDelta, getArrowSide, parseShadow };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../fixtures/dist/arbitrary.d.mts
|
|
3
|
-
/** Integer >= 0 (e.g., blur radius) */
|
|
4
|
-
declare const positiveIntegers: {
|
|
5
|
-
type: "arbitraryFixture";
|
|
6
|
-
valueType: "integer";
|
|
7
|
-
min: number;
|
|
8
|
-
step: number;
|
|
9
|
-
}; //#endregion
|
|
10
|
-
//#endregion
|
|
11
|
-
export { positiveIntegers };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../fixtures/dist/arbitrary.d.mts
|
|
3
|
-
/** Integer >= 0 (e.g., blur radius) */
|
|
4
|
-
declare const positiveIntegers: {
|
|
5
|
-
type: "arbitraryFixture";
|
|
6
|
-
valueType: "integer";
|
|
7
|
-
min: number;
|
|
8
|
-
step: number;
|
|
9
|
-
}; //#endregion
|
|
10
|
-
//#endregion
|
|
11
|
-
export { positiveIntegers };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../fixtures/src/arbitrary.ts
|
|
5
|
-
var arbitrary_exports = /* @__PURE__ */ require_runtime.__exportAll({ positiveIntegers: () => positiveIntegers });
|
|
6
|
-
function createArbitraryFixture(fixture) {
|
|
7
|
-
return fixture;
|
|
8
|
-
}
|
|
9
|
-
/** Integer >= 0 (e.g., blur radius) */
|
|
10
|
-
const positiveIntegers = createArbitraryFixture({
|
|
11
|
-
type: "arbitraryFixture",
|
|
12
|
-
valueType: "integer",
|
|
13
|
-
min: 0,
|
|
14
|
-
step: 1
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
Object.defineProperty(exports, 'arbitrary_exports', {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return arbitrary_exports;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../fixtures/src/arbitrary.d.ts
|
|
3
|
-
interface ArbitraryFixtureBase {
|
|
4
|
-
type: 'arbitraryFixture';
|
|
5
|
-
}
|
|
6
|
-
/** Accepts integer values with optional min/max bounds */
|
|
7
|
-
interface IntegerArbitraryFixture extends ArbitraryFixtureBase {
|
|
8
|
-
valueType: 'integer';
|
|
9
|
-
min?: number;
|
|
10
|
-
max?: number;
|
|
11
|
-
}
|
|
12
|
-
type ArbitraryFixture = IntegerArbitraryFixture;
|
|
13
|
-
/** Integer >= 0 (e.g., blur radius) */
|
|
14
|
-
//#endregion
|
|
15
|
-
export { type ArbitraryFixture };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../fixtures/src/arbitrary.d.ts
|
|
3
|
-
interface ArbitraryFixtureBase {
|
|
4
|
-
type: 'arbitraryFixture';
|
|
5
|
-
}
|
|
6
|
-
/** Accepts integer values with optional min/max bounds */
|
|
7
|
-
interface IntegerArbitraryFixture extends ArbitraryFixtureBase {
|
|
8
|
-
valueType: 'integer';
|
|
9
|
-
min?: number;
|
|
10
|
-
max?: number;
|
|
11
|
-
}
|
|
12
|
-
type ArbitraryFixture = IntegerArbitraryFixture;
|
|
13
|
-
/** Integer >= 0 (e.g., blur radius) */
|
|
14
|
-
//#endregion
|
|
15
|
-
export { type ArbitraryFixture };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
|
|
4
|
-
//#region ../fixtures/src/arbitrary.ts
|
|
5
|
-
var arbitrary_exports = /* @__PURE__ */ __exportAll({ positiveIntegers: () => positiveIntegers });
|
|
6
|
-
function createArbitraryFixture(fixture) {
|
|
7
|
-
return fixture;
|
|
8
|
-
}
|
|
9
|
-
/** Integer >= 0 (e.g., blur radius) */
|
|
10
|
-
const positiveIntegers = createArbitraryFixture({
|
|
11
|
-
type: "arbitraryFixture",
|
|
12
|
-
valueType: "integer",
|
|
13
|
-
min: 0,
|
|
14
|
-
step: 1
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { arbitrary_exports };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
const require_arbitrary = require('./arbitrary.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../fixtures/src/util.ts
|
|
5
|
-
const assertUnreachable = (_x) => {
|
|
6
|
-
throw new Error("Didn't expect to get here");
|
|
7
|
-
};
|
|
8
|
-
function isArbitraryFixture(value) {
|
|
9
|
-
return typeof value === "object" && value !== null && "type" in value && value.type === "arbitraryFixture";
|
|
10
|
-
}
|
|
11
|
-
/** Registry of all arbitrary fixtures, auto-constructed from exports of arbitrary.ts */
|
|
12
|
-
const arbitraryFixtureMap = Object.fromEntries(Object.entries(require_arbitrary.arbitrary_exports).filter(([, value]) => isArbitraryFixture(value)));
|
|
13
|
-
/** Returns the ArbitraryFixture for the given fixture type name, or undefined if it's not an arbitrary fixture */
|
|
14
|
-
function getArbitraryFixture(fixtureType) {
|
|
15
|
-
return arbitraryFixtureMap[fixtureType];
|
|
16
|
-
}
|
|
17
|
-
function validateArbitraryValue(fixture, value) {
|
|
18
|
-
switch (fixture.valueType) {
|
|
19
|
-
case "integer": return typeof value === "number" && Number.isInteger(value) && (fixture.min == null || value >= fixture.min) && (fixture.max == null || value <= fixture.max);
|
|
20
|
-
}
|
|
21
|
-
return assertUnreachable(fixture.valueType);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
exports.getArbitraryFixture = getArbitraryFixture;
|
|
26
|
-
exports.validateArbitraryValue = validateArbitraryValue;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ArbitraryFixture } from "./arbitrary.cjs";
|
|
3
|
-
|
|
4
|
-
//#region ../fixtures/src/util.d.ts
|
|
5
|
-
/** Returns the ArbitraryFixture for the given fixture type name, or undefined if it's not an arbitrary fixture */
|
|
6
|
-
declare function getArbitraryFixture(fixtureType: string): ArbitraryFixture | undefined;
|
|
7
|
-
declare function validateArbitraryValue(fixture: ArbitraryFixture, value: unknown): boolean;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getArbitraryFixture, validateArbitraryValue };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ArbitraryFixture } from "./arbitrary.js";
|
|
3
|
-
|
|
4
|
-
//#region ../fixtures/src/util.d.ts
|
|
5
|
-
/** Returns the ArbitraryFixture for the given fixture type name, or undefined if it's not an arbitrary fixture */
|
|
6
|
-
declare function getArbitraryFixture(fixtureType: string): ArbitraryFixture | undefined;
|
|
7
|
-
declare function validateArbitraryValue(fixture: ArbitraryFixture, value: unknown): boolean;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getArbitraryFixture, validateArbitraryValue };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
import { arbitrary_exports } from "./arbitrary.js";
|
|
3
|
-
|
|
4
|
-
//#region ../fixtures/src/util.ts
|
|
5
|
-
const assertUnreachable = (_x) => {
|
|
6
|
-
throw new Error("Didn't expect to get here");
|
|
7
|
-
};
|
|
8
|
-
function isArbitraryFixture(value) {
|
|
9
|
-
return typeof value === "object" && value !== null && "type" in value && value.type === "arbitraryFixture";
|
|
10
|
-
}
|
|
11
|
-
/** Registry of all arbitrary fixtures, auto-constructed from exports of arbitrary.ts */
|
|
12
|
-
const arbitraryFixtureMap = Object.fromEntries(Object.entries(arbitrary_exports).filter(([, value]) => isArbitraryFixture(value)));
|
|
13
|
-
/** Returns the ArbitraryFixture for the given fixture type name, or undefined if it's not an arbitrary fixture */
|
|
14
|
-
function getArbitraryFixture(fixtureType) {
|
|
15
|
-
return arbitraryFixtureMap[fixtureType];
|
|
16
|
-
}
|
|
17
|
-
function validateArbitraryValue(fixture, value) {
|
|
18
|
-
switch (fixture.valueType) {
|
|
19
|
-
case "integer": return typeof value === "number" && Number.isInteger(value) && (fixture.min == null || value >= fixture.min) && (fixture.max == null || value <= fixture.max);
|
|
20
|
-
}
|
|
21
|
-
return assertUnreachable(fixture.valueType);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
export { getArbitraryFixture, validateArbitraryValue };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
-
const require_tokens_utils_fromEntries = require('../tokens/utils/fromEntries.cjs');
|
|
4
|
-
|
|
5
|
-
//#region src/runtime/tooltipConfig.ts
|
|
6
|
-
const tooltipSizes = ["default"];
|
|
7
|
-
const tooltipVariants = ["default"];
|
|
8
|
-
const placementMap = {
|
|
9
|
-
top: "top",
|
|
10
|
-
bottom: "bottom",
|
|
11
|
-
start: "left",
|
|
12
|
-
end: "right",
|
|
13
|
-
"top-start": "top-start",
|
|
14
|
-
"top-end": "top-end",
|
|
15
|
-
"bottom-start": "bottom-start",
|
|
16
|
-
"bottom-end": "bottom-end",
|
|
17
|
-
"start-top": "left-start",
|
|
18
|
-
"start-bottom": "left-end",
|
|
19
|
-
"end-top": "right-start",
|
|
20
|
-
"end-bottom": "right-end"
|
|
21
|
-
};
|
|
22
|
-
const configToTooltipConfigContext = ({ tooltip, scaleMode, elevation }) => {
|
|
23
|
-
const backdropBlur = require_tokens_utils_fromEntries.fromEntries(tooltipVariants.map((v) => {
|
|
24
|
-
const bgColor = tooltip.variables[`variant/${v}/svg`].backgroundColor.rest;
|
|
25
|
-
if (bgColor.type === "elevationAliases") {
|
|
26
|
-
const level = bgColor.value.replace("elevation-", "");
|
|
27
|
-
return [v, {
|
|
28
|
-
light: elevation[level].light.backgroundBlurRadius,
|
|
29
|
-
dark: elevation[level].dark.backgroundBlurRadius
|
|
30
|
-
}];
|
|
31
|
-
}
|
|
32
|
-
const value = tooltip.variables[`variant/${v}/blur`].backdropBlur.rest.value;
|
|
33
|
-
return [v, {
|
|
34
|
-
light: value,
|
|
35
|
-
dark: value
|
|
36
|
-
}];
|
|
37
|
-
}));
|
|
38
|
-
const borderRadius = require_tokens_utils_fromEntries.fromEntries(tooltipSizes.map((s) => [s, scaleMode.medium.borderRadius[tooltip.variables[`size/${s}/svg`].borderRadius.rest.value]]));
|
|
39
|
-
if (Object.values(backdropBlur).some((b) => typeof b.light !== "number" || typeof b.dark !== "number")) throw new Error("backdropBlur is not a number");
|
|
40
|
-
if (Object.values(borderRadius).some((b) => typeof b !== "number")) throw new Error("borderRadius is not a number");
|
|
41
|
-
return {
|
|
42
|
-
animationDuration: 200,
|
|
43
|
-
backdropBlur,
|
|
44
|
-
borderRadius,
|
|
45
|
-
placementMap
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
exports.configToTooltipConfigContext = configToTooltipConfigContext;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ColorMode, TooltipPlacement, TooltipSize, TooltipVariant } from "../types/dist/index.cjs";
|
|
3
|
-
import { UniversalTokensConfig } from "../config/dist/index.cjs";
|
|
4
|
-
import "../tokens/index.cjs";
|
|
5
|
-
import { TooltipProviderProps } from "@ariakit/react";
|
|
6
|
-
|
|
7
|
-
//#region src/runtime/tooltipConfig.d.ts
|
|
8
|
-
type TooltipPlacementMap = Record<TooltipPlacement, TooltipProviderProps['placement']>;
|
|
9
|
-
interface UDSTooltipConfigContextType {
|
|
10
|
-
animationDuration: number;
|
|
11
|
-
backdropBlur: Record<TooltipVariant, Record<ColorMode, number>>;
|
|
12
|
-
borderRadius: Record<TooltipSize, number>;
|
|
13
|
-
placementMap: TooltipPlacementMap;
|
|
14
|
-
}
|
|
15
|
-
declare const configToTooltipConfigContext: ({
|
|
16
|
-
tooltip,
|
|
17
|
-
scaleMode,
|
|
18
|
-
elevation
|
|
19
|
-
}: UniversalTokensConfig) => UDSTooltipConfigContextType;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { type UDSTooltipConfigContextType, configToTooltipConfigContext };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ColorMode, TooltipPlacement, TooltipSize, TooltipVariant } from "../types/dist/index.js";
|
|
3
|
-
import { UniversalTokensConfig } from "../config/dist/index.js";
|
|
4
|
-
import "../tokens/index.js";
|
|
5
|
-
import { TooltipProviderProps } from "@ariakit/react";
|
|
6
|
-
|
|
7
|
-
//#region src/runtime/tooltipConfig.d.ts
|
|
8
|
-
type TooltipPlacementMap = Record<TooltipPlacement, TooltipProviderProps['placement']>;
|
|
9
|
-
interface UDSTooltipConfigContextType {
|
|
10
|
-
animationDuration: number;
|
|
11
|
-
backdropBlur: Record<TooltipVariant, Record<ColorMode, number>>;
|
|
12
|
-
borderRadius: Record<TooltipSize, number>;
|
|
13
|
-
placementMap: TooltipPlacementMap;
|
|
14
|
-
}
|
|
15
|
-
declare const configToTooltipConfigContext: ({
|
|
16
|
-
tooltip,
|
|
17
|
-
scaleMode,
|
|
18
|
-
elevation
|
|
19
|
-
}: UniversalTokensConfig) => UDSTooltipConfigContextType;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { type UDSTooltipConfigContextType, configToTooltipConfigContext };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
import { fromEntries } from "../tokens/utils/fromEntries.js";
|
|
3
|
-
|
|
4
|
-
//#region src/runtime/tooltipConfig.ts
|
|
5
|
-
const tooltipSizes = ["default"];
|
|
6
|
-
const tooltipVariants = ["default"];
|
|
7
|
-
const placementMap = {
|
|
8
|
-
top: "top",
|
|
9
|
-
bottom: "bottom",
|
|
10
|
-
start: "left",
|
|
11
|
-
end: "right",
|
|
12
|
-
"top-start": "top-start",
|
|
13
|
-
"top-end": "top-end",
|
|
14
|
-
"bottom-start": "bottom-start",
|
|
15
|
-
"bottom-end": "bottom-end",
|
|
16
|
-
"start-top": "left-start",
|
|
17
|
-
"start-bottom": "left-end",
|
|
18
|
-
"end-top": "right-start",
|
|
19
|
-
"end-bottom": "right-end"
|
|
20
|
-
};
|
|
21
|
-
const configToTooltipConfigContext = ({ tooltip, scaleMode, elevation }) => {
|
|
22
|
-
const backdropBlur = fromEntries(tooltipVariants.map((v) => {
|
|
23
|
-
const bgColor = tooltip.variables[`variant/${v}/svg`].backgroundColor.rest;
|
|
24
|
-
if (bgColor.type === "elevationAliases") {
|
|
25
|
-
const level = bgColor.value.replace("elevation-", "");
|
|
26
|
-
return [v, {
|
|
27
|
-
light: elevation[level].light.backgroundBlurRadius,
|
|
28
|
-
dark: elevation[level].dark.backgroundBlurRadius
|
|
29
|
-
}];
|
|
30
|
-
}
|
|
31
|
-
const value = tooltip.variables[`variant/${v}/blur`].backdropBlur.rest.value;
|
|
32
|
-
return [v, {
|
|
33
|
-
light: value,
|
|
34
|
-
dark: value
|
|
35
|
-
}];
|
|
36
|
-
}));
|
|
37
|
-
const borderRadius = fromEntries(tooltipSizes.map((s) => [s, scaleMode.medium.borderRadius[tooltip.variables[`size/${s}/svg`].borderRadius.rest.value]]));
|
|
38
|
-
if (Object.values(backdropBlur).some((b) => typeof b.light !== "number" || typeof b.dark !== "number")) throw new Error("backdropBlur is not a number");
|
|
39
|
-
if (Object.values(borderRadius).some((b) => typeof b !== "number")) throw new Error("borderRadius is not a number");
|
|
40
|
-
return {
|
|
41
|
-
animationDuration: 200,
|
|
42
|
-
backdropBlur,
|
|
43
|
-
borderRadius,
|
|
44
|
-
placementMap
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export { configToTooltipConfigContext };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
-
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
4
|
-
const require_index = require('../../css-tokens/dist/index.cjs');
|
|
5
|
-
const require_index$1 = require('../../modes/dist/index.cjs');
|
|
6
|
-
const require_tailwind_utils_getColorModeStyles = require('../utils/getColorModeStyles.cjs');
|
|
7
|
-
let lodash_isString_js = require("lodash/isString.js");
|
|
8
|
-
lodash_isString_js = require_runtime.__toESM(lodash_isString_js);
|
|
9
|
-
|
|
10
|
-
//#region src/tailwind/base/addColorModeVars.ts
|
|
11
|
-
function addColorModeVars(tokens, { addBase, config }) {
|
|
12
|
-
const styles = require_tailwind_utils_getColorModeStyles.getColorModeStyles(tokens);
|
|
13
|
-
const parentConfigImportant = config().important;
|
|
14
|
-
addBase({
|
|
15
|
-
[(0, lodash_isString_js.default)(parentConfigImportant) ? parentConfigImportant : ":root"]: styles[require_index$1.DEFAULT_COLOR_MODE],
|
|
16
|
-
[`.${require_index.LIGHT_COLOR_MODE_CLASSNAME}`]: styles.light,
|
|
17
|
-
[`.${require_index.DARK_COLOR_MODE_CLASSNAME}`]: styles.dark
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
exports.addColorModeVars = addColorModeVars;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { WebTokens } from "../../tokens/parseTokens.cjs";
|
|
3
|
-
import { PluginAPI } from "tailwindcss/types/config";
|
|
4
|
-
|
|
5
|
-
//#region src/tailwind/base/addColorModeVars.d.ts
|
|
6
|
-
declare function addColorModeVars(tokens: WebTokens, {
|
|
7
|
-
addBase,
|
|
8
|
-
config
|
|
9
|
-
}: PluginAPI): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { addColorModeVars };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { WebTokens } from "../../tokens/parseTokens.js";
|
|
3
|
-
import { PluginAPI } from "tailwindcss/types/config";
|
|
4
|
-
|
|
5
|
-
//#region src/tailwind/base/addColorModeVars.d.ts
|
|
6
|
-
declare function addColorModeVars(tokens: WebTokens, {
|
|
7
|
-
addBase,
|
|
8
|
-
config
|
|
9
|
-
}: PluginAPI): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { addColorModeVars };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { WebTokens } from "../../tokens/parseTokens.cjs";
|
|
3
|
-
import { PluginAPI } from "tailwindcss/types/config";
|
|
4
|
-
|
|
5
|
-
//#region src/tailwind/base/addColorModeVarsV2.d.ts
|
|
6
|
-
declare function addColorModeVarsV2(tokens: WebTokens, {
|
|
7
|
-
addBase,
|
|
8
|
-
config
|
|
9
|
-
}: PluginAPI): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { addColorModeVarsV2 };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { WebTokens } from "../../tokens/parseTokens.js";
|
|
3
|
-
import { PluginAPI } from "tailwindcss/types/config";
|
|
4
|
-
|
|
5
|
-
//#region src/tailwind/base/addColorModeVarsV2.d.ts
|
|
6
|
-
declare function addColorModeVarsV2(tokens: WebTokens, {
|
|
7
|
-
addBase,
|
|
8
|
-
config
|
|
9
|
-
}: PluginAPI): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { addColorModeVarsV2 };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
-
const require_tailwind_utils_getFontFaceDeclarations = require('../utils/getFontFaceDeclarations.cjs');
|
|
4
|
-
|
|
5
|
-
//#region src/tailwind/base/addFontFaceDeclarations.ts
|
|
6
|
-
function addFontFaceDeclarations(fontIds, { addBase }) {
|
|
7
|
-
const declarations = require_tailwind_utils_getFontFaceDeclarations.getFontFaceDeclarations(fontIds);
|
|
8
|
-
for (const declaration of declarations) addBase({ "@font-face": declaration });
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.addFontFaceDeclarations = addFontFaceDeclarations;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { FontID } from "../../fonts/dist/index.cjs";
|
|
3
|
-
import "../../tokens/index.cjs";
|
|
4
|
-
import { PluginAPI } from "tailwindcss/types/config";
|
|
5
|
-
|
|
6
|
-
//#region src/tailwind/base/addFontFaceDeclarations.d.ts
|
|
7
|
-
declare function addFontFaceDeclarations(fontIds: FontID[], {
|
|
8
|
-
addBase
|
|
9
|
-
}: PluginAPI): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { addFontFaceDeclarations };
|