@yahoo/uds 3.129.0 → 3.131.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/automated-config/dist/properties.d.cts +1 -1
  2. package/dist/automated-config/dist/properties.d.ts +1 -1
  3. package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +1 -1
  4. package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +1 -1
  5. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  6. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  7. package/dist/components/Banner/Banner.d.cts +1 -1
  8. package/dist/components/Banner/Banner.d.ts +1 -1
  9. package/dist/components/Banner/utils.d.cts +1 -1
  10. package/dist/components/Banner/utils.d.ts +1 -1
  11. package/dist/components/Box.d.cts +1 -1
  12. package/dist/components/Box.d.ts +1 -1
  13. package/dist/components/Divider/DividerCore.d.cts +1 -1
  14. package/dist/components/Divider/DividerCore.d.ts +1 -1
  15. package/dist/components/Divider/DividerInternal.d.cts +1 -1
  16. package/dist/components/Divider/DividerInternal.d.ts +1 -1
  17. package/dist/components/FormLabel.d.cts +1 -1
  18. package/dist/components/FormLabel.d.ts +1 -1
  19. package/dist/components/HStack.d.cts +1 -1
  20. package/dist/components/HStack.d.ts +1 -1
  21. package/dist/components/Icon.cjs +15 -6
  22. package/dist/components/Icon.d.cts +0 -1
  23. package/dist/components/Icon.d.ts +0 -1
  24. package/dist/components/Icon.js +16 -7
  25. package/dist/components/IconSlot.cjs +25 -6
  26. package/dist/components/IconSlot.d.cts +3 -2
  27. package/dist/components/IconSlot.d.ts +3 -2
  28. package/dist/components/IconSlot.js +25 -5
  29. package/dist/components/Image.d.cts +1 -1
  30. package/dist/components/Image.d.ts +1 -1
  31. package/dist/components/Link.d.cts +1 -1
  32. package/dist/components/Link.d.ts +1 -1
  33. package/dist/components/Text.d.cts +1 -1
  34. package/dist/components/Text.d.ts +1 -1
  35. package/dist/components/VStack.d.cts +1 -1
  36. package/dist/components/VStack.d.ts +1 -1
  37. package/dist/components/client/Avatar/AvatarIcon.d.cts +1 -1
  38. package/dist/components/client/Avatar/AvatarIcon.d.ts +1 -1
  39. package/dist/components/client/Avatar/AvatarImage.d.cts +1 -1
  40. package/dist/components/client/Avatar/AvatarImage.d.ts +1 -1
  41. package/dist/components/client/Avatar/AvatarText.d.cts +1 -1
  42. package/dist/components/client/Avatar/AvatarText.d.ts +1 -1
  43. package/dist/components/client/Avatar/utils.d.cts +1 -1
  44. package/dist/components/client/Avatar/utils.d.ts +1 -1
  45. package/dist/components/client/Badge.d.cts +1 -1
  46. package/dist/components/client/Badge.d.ts +1 -1
  47. package/dist/components/client/BottomSheet/BottomSheet.d.cts +1 -1
  48. package/dist/components/client/BottomSheet/BottomSheet.d.ts +1 -1
  49. package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +1 -1
  50. package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +1 -1
  51. package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +1 -1
  52. package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +1 -1
  53. package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +1 -1
  54. package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +1 -1
  55. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +1 -1
  56. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +1 -1
  57. package/dist/components/client/BottomSheet/utils.d.cts +1 -1
  58. package/dist/components/client/BottomSheet/utils.d.ts +1 -1
  59. package/dist/components/client/Button.d.cts +1 -1
  60. package/dist/components/client/Button.d.ts +1 -1
  61. package/dist/components/client/Checkbox.d.cts +1 -1
  62. package/dist/components/client/Checkbox.d.ts +1 -1
  63. package/dist/components/client/Chip/ChipBase.d.cts +1 -1
  64. package/dist/components/client/Chip/ChipBase.d.ts +1 -1
  65. package/dist/components/client/Chip/ChipButton.d.cts +1 -1
  66. package/dist/components/client/Chip/ChipButton.d.ts +1 -1
  67. package/dist/components/client/Chip/ChipDismissible.d.cts +1 -1
  68. package/dist/components/client/Chip/ChipDismissible.d.ts +1 -1
  69. package/dist/components/client/Chip/ChipLink.d.cts +1 -1
  70. package/dist/components/client/Chip/ChipLink.d.ts +1 -1
  71. package/dist/components/client/Chip/ChipToggle.d.cts +1 -1
  72. package/dist/components/client/Chip/ChipToggle.d.ts +1 -1
  73. package/dist/components/client/IconButton.cjs +6 -1
  74. package/dist/components/client/IconButton.js +6 -1
  75. package/dist/components/client/Input/Input.d.cts +1 -1
  76. package/dist/components/client/Input/Input.d.ts +1 -1
  77. package/dist/components/client/Input/InputHelpTextInternal.d.cts +1 -1
  78. package/dist/components/client/Input/InputHelpTextInternal.d.ts +1 -1
  79. package/dist/components/client/Menu/Menu.Content.d.cts +1 -1
  80. package/dist/components/client/Menu/Menu.Content.d.ts +1 -1
  81. package/dist/components/client/Menu/Menu.Item.d.cts +1 -1
  82. package/dist/components/client/Menu/Menu.Item.d.ts +1 -1
  83. package/dist/components/client/Menu/Menu.ItemBase.d.cts +1 -1
  84. package/dist/components/client/Menu/Menu.ItemBase.d.ts +1 -1
  85. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +2 -2
  86. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +2 -2
  87. package/dist/components/client/Popover/Popover.d.cts +1 -1
  88. package/dist/components/client/Popover/Popover.d.ts +1 -1
  89. package/dist/components/client/Popover/PopoverContent.d.cts +1 -1
  90. package/dist/components/client/Popover/PopoverContent.d.ts +1 -1
  91. package/dist/components/client/Popover/PopoverTrigger.d.cts +1 -1
  92. package/dist/components/client/Popover/PopoverTrigger.d.ts +1 -1
  93. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
  94. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
  95. package/dist/components/client/Popover/index.d.cts +1 -1
  96. package/dist/components/client/Popover/index.d.ts +1 -1
  97. package/dist/components/client/Pressable.d.cts +1 -1
  98. package/dist/components/client/Pressable.d.ts +1 -1
  99. package/dist/components/client/Radio/Radio.d.cts +1 -1
  100. package/dist/components/client/Radio/Radio.d.ts +1 -1
  101. package/dist/components/client/Radio/RadioGroupProvider.d.cts +1 -1
  102. package/dist/components/client/Radio/RadioGroupProvider.d.ts +1 -1
  103. package/dist/components/client/SpringMotionConfig.d.cts +1 -1
  104. package/dist/components/client/SpringMotionConfig.d.ts +1 -1
  105. package/dist/components/client/Switch.d.cts +1 -1
  106. package/dist/components/client/Switch.d.ts +1 -1
  107. package/dist/components/client/Tabs/Tab.d.cts +1 -1
  108. package/dist/components/client/Tabs/Tab.d.ts +1 -1
  109. package/dist/components/client/Tabs/TabList.d.cts +1 -1
  110. package/dist/components/client/Tabs/TabList.d.ts +1 -1
  111. package/dist/components/client/Tabs/TabPanel.d.cts +1 -1
  112. package/dist/components/client/Tabs/TabPanel.d.ts +1 -1
  113. package/dist/components/client/Tabs/Tabs.d.cts +1 -1
  114. package/dist/components/client/Tabs/Tabs.d.ts +1 -1
  115. package/dist/components/client/Tabs/tabsContext.d.cts +1 -1
  116. package/dist/components/client/Tabs/tabsContext.d.ts +1 -1
  117. package/dist/components/client/Toast/Toast.d.cts +1 -1
  118. package/dist/components/client/Toast/Toast.d.ts +1 -1
  119. package/dist/components/client/Toast/ToastContainer.d.cts +1 -1
  120. package/dist/components/client/Toast/ToastContainer.d.ts +1 -1
  121. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +2 -2
  122. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +2 -2
  123. package/dist/components/client/Toast/createToast.d.cts +1 -1
  124. package/dist/components/client/Toast/createToast.d.ts +1 -1
  125. package/dist/components/client/Tooltip/Tooltip.d.cts +1 -1
  126. package/dist/components/client/Tooltip/Tooltip.d.ts +1 -1
  127. package/dist/components/client/Tooltip/TooltipContent.d.cts +3 -2
  128. package/dist/components/client/Tooltip/TooltipContent.d.ts +3 -2
  129. package/dist/components/client/Tooltip/TooltipTrigger.d.cts +1 -1
  130. package/dist/components/client/Tooltip/TooltipTrigger.d.ts +1 -1
  131. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +1 -1
  132. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +1 -1
  133. package/dist/components/client/Tooltip/index.d.cts +1 -1
  134. package/dist/components/client/Tooltip/index.d.ts +1 -1
  135. package/dist/components/client/buttonConstants.d.cts +1 -1
  136. package/dist/components/client/buttonConstants.d.ts +1 -1
  137. package/dist/components/client/index.d.cts +1 -1
  138. package/dist/components/client/index.d.ts +1 -1
  139. package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +1 -1
  140. package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.ts +1 -1
  141. package/dist/components/experimental/Table.d.cts +1 -1
  142. package/dist/components/experimental/Table.d.ts +1 -1
  143. package/dist/components/experimental/client/SwitchV2.d.cts +1 -1
  144. package/dist/components/experimental/client/SwitchV2.d.ts +1 -1
  145. package/dist/components/index.d.cts +1 -1
  146. package/dist/components/index.d.ts +1 -1
  147. package/dist/config/dist/index.d.cts +1 -1
  148. package/dist/config/dist/index.d.ts +1 -1
  149. package/dist/css-tokens/dist/index.d.cts +1 -1
  150. package/dist/css-tokens/dist/index.d.ts +1 -1
  151. package/dist/fixtures/dist/index.d.cts +1 -1
  152. package/dist/fixtures/dist/index.d.ts +1 -1
  153. package/dist/fixtures/index.d.cts +1 -1
  154. package/dist/fixtures/index.d.ts +1 -1
  155. package/dist/fonts/dist/index.d.cts +1 -1
  156. package/dist/fonts/dist/index.d.ts +1 -1
  157. package/dist/index.d.cts +2 -2
  158. package/dist/index.d.ts +2 -2
  159. package/dist/modes/dist/index.d.cts +1 -1
  160. package/dist/modes/dist/index.d.ts +1 -1
  161. package/dist/motion-tokens/dist/index.d.cts +1 -1
  162. package/dist/motion-tokens/dist/index.d.ts +1 -1
  163. package/dist/providers/ColorModeProvider.d.cts +1 -1
  164. package/dist/providers/ColorModeProvider.d.ts +1 -1
  165. package/dist/providers/ScaleModeProvider.d.cts +1 -1
  166. package/dist/providers/ScaleModeProvider.d.ts +1 -1
  167. package/dist/providers/ThemeProvider.d.cts +1 -1
  168. package/dist/providers/ThemeProvider.d.ts +1 -1
  169. package/dist/runtime/bottomSheetConfig.d.cts +1 -1
  170. package/dist/runtime/bottomSheetConfig.d.ts +1 -1
  171. package/dist/runtime/breakpointsConfig.d.cts +1 -1
  172. package/dist/runtime/breakpointsConfig.d.ts +1 -1
  173. package/dist/runtime/popoverConfig.d.cts +1 -1
  174. package/dist/runtime/popoverConfig.d.ts +1 -1
  175. package/dist/runtime/toastConfig.d.cts +1 -1
  176. package/dist/runtime/toastConfig.d.ts +1 -1
  177. package/dist/runtime/tooltipConfig.d.cts +1 -1
  178. package/dist/runtime/tooltipConfig.d.ts +1 -1
  179. package/dist/styles/styler.d.cts +31 -31
  180. package/dist/styles/styler.d.ts +31 -31
  181. package/dist/styles/stylerTypes.d.cts +1 -1
  182. package/dist/styles/stylerTypes.d.ts +1 -1
  183. package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
  184. package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
  185. package/dist/tokens/configs/borderRadius.d.cts +1 -1
  186. package/dist/tokens/configs/borderRadius.d.ts +1 -1
  187. package/dist/tokens/configs/borderWidth.d.cts +1 -1
  188. package/dist/tokens/configs/borderWidth.d.ts +1 -1
  189. package/dist/tokens/configs/font.d.cts +1 -1
  190. package/dist/tokens/configs/font.d.ts +1 -1
  191. package/dist/tokens/configs/scaleMode.d.cts +1 -1
  192. package/dist/tokens/configs/scaleMode.d.ts +1 -1
  193. package/dist/tokens/configs/shadow.d.cts +1 -1
  194. package/dist/tokens/configs/shadow.d.ts +1 -1
  195. package/dist/tokens/configs/sizes.d.cts +1 -1
  196. package/dist/tokens/configs/sizes.d.ts +1 -1
  197. package/dist/tokens/configs/typography.d.cts +1 -1
  198. package/dist/tokens/configs/typography.d.ts +1 -1
  199. package/dist/tokens/index.d.cts +2 -2
  200. package/dist/tokens/index.d.ts +2 -2
  201. package/dist/tokens/parseButtonVariants.d.cts +1 -1
  202. package/dist/tokens/parseButtonVariants.d.ts +1 -1
  203. package/dist/tokens/types.d.cts +7 -7
  204. package/dist/tokens/types.d.ts +7 -7
  205. package/dist/tokens/utils/spectrum.d.cts +1 -1
  206. package/dist/tokens/utils/spectrum.d.ts +1 -1
  207. package/dist/types/{dist → src}/index.d.cts +35 -23
  208. package/dist/types/{dist → src}/index.d.ts +35 -23
  209. package/dist/uds/generated/componentData.cjs +1357 -1357
  210. package/dist/uds/generated/componentData.js +1357 -1357
  211. package/dist/utils/isElevationAlias.d.cts +1 -1
  212. package/dist/utils/isElevationAlias.d.ts +1 -1
  213. package/generated/componentData.json +1624 -1626
  214. package/package.json +1 -1
  215. package/dist/icons/dist/types.d.cts +0 -18
  216. package/dist/icons/dist/types.d.ts +0 -18
@@ -1,5 +1,5 @@
1
1
 
2
- import { ShadowPreset } from "../../types/dist/index.cjs";
2
+ import { ShadowPreset } from "../../types/src/index.cjs";
3
3
  import { ArbitraryFixtures, InferArbitraryType } from "../../fixtures/dist/index.cjs";
4
4
  import { AllPossibleProperties, PossibleStates } from "./types/ComponentConfig.cjs";
5
5
  import { SchemaStateValue } from "./types/ConfigSchema.cjs";
@@ -1,5 +1,5 @@
1
1
 
2
- import { ShadowPreset } from "../../types/dist/index.js";
2
+ import { ShadowPreset } from "../../types/src/index.js";
3
3
  import { ArbitraryFixtures, InferArbitraryType } from "../../fixtures/dist/index.js";
4
4
  import { AllPossibleProperties, PossibleStates } from "./types/ComponentConfig.js";
5
5
  import { SchemaStateValue } from "./types/ConfigSchema.js";
@@ -1,5 +1,5 @@
1
1
 
2
- import { BannerInnerShadowOption, ElevationAlias, ShadowVariant, ShadowVariantConfig, ShadowVariantWithInvert } from "../../../types/dist/index.cjs";
2
+ import { BannerInnerShadowOption, ElevationAlias, ShadowVariant, ShadowVariantConfig, ShadowVariantWithInvert } from "../../../types/src/index.cjs";
3
3
  import { ArbitraryFixtures, InferArbitraryType } from "../../../fixtures/dist/index.cjs";
4
4
  import { AllPossibleProperties, ComponentConfig, LayerConfig, PossibleStates, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties } from "../types/ComponentConfig.cjs";
5
5
  import { SchemaStateValue } from "../types/ConfigSchema.cjs";
@@ -1,5 +1,5 @@
1
1
 
2
- import { BannerInnerShadowOption, ElevationAlias, ShadowVariant, ShadowVariantConfig, ShadowVariantWithInvert } from "../../../types/dist/index.js";
2
+ import { BannerInnerShadowOption, ElevationAlias, ShadowVariant, ShadowVariantConfig, ShadowVariantWithInvert } from "../../../types/src/index.js";
3
3
  import { ArbitraryFixtures, InferArbitraryType } from "../../../fixtures/dist/index.js";
4
4
  import { AllPossibleProperties, ComponentConfig, LayerConfig, PossibleStates, VariantConfig, VariantConfigWithComponentStates, VariantConfigWithProperties } from "../types/ComponentConfig.js";
5
5
  import { SchemaStateValue } from "../types/ConfigSchema.js";
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.cjs";
11
11
  * @returns A Record of layer names to their properties, or null if no properties are found
12
12
  */
13
13
  declare function getConfigVariantProperties(variant?: VariantConfig): {
14
- [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
- root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
14
+ [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
+ root: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
16
16
  } | null; //#endregion
17
17
  //#endregion
18
18
  export { getConfigVariantProperties };
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.js";
11
11
  * @returns A Record of layer names to their properties, or null if no properties are found
12
12
  */
13
13
  declare function getConfigVariantProperties(variant?: VariantConfig): {
14
- [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
- root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
14
+ [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
+ root: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "underlineWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "underlineColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "bannerInnerShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "bannerInnerShadowOptions"[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
16
16
  } | null; //#endregion
17
17
  //#endregion
18
18
  export { getConfigVariantProperties };
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalBannerProps } from "../../types/dist/index.cjs";
2
+ import { UniversalBannerProps } from "../../types/src/index.cjs";
3
3
  import "../../tokens/index.cjs";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalBannerProps } from "../../types/dist/index.js";
2
+ import { UniversalBannerProps } from "../../types/src/index.js";
3
3
  import "../../tokens/index.js";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { BannerVariant } from "../../types/dist/index.cjs";
2
+ import { BannerVariant } from "../../types/src/index.cjs";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/components/Banner/utils.d.ts
@@ -1,5 +1,5 @@
1
1
 
2
- import { BannerVariant } from "../../types/dist/index.js";
2
+ import { BannerVariant } from "../../types/src/index.js";
3
3
  import { ReactNode } from "react";
4
4
 
5
5
  //#region src/components/Banner/utils.d.ts
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalBoxProps } from "../types/dist/index.cjs";
2
+ import { UniversalBoxProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalBoxProps } from "../types/dist/index.js";
2
+ import { UniversalBoxProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalDividerProps, UniversalStackProps } from "../../types/dist/index.cjs";
2
+ import { UniversalDividerProps, UniversalStackProps } from "../../types/src/index.cjs";
3
3
  import "../../tokens/types.cjs";
4
4
  import { BoxProps } from "../Box.cjs";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalDividerProps, UniversalStackProps } from "../../types/dist/index.js";
2
+ import { UniversalDividerProps, UniversalStackProps } from "../../types/src/index.js";
3
3
  import "../../tokens/types.js";
4
4
  import { BoxProps } from "../Box.js";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalDividerProps } from "../../types/dist/index.cjs";
2
+ import { UniversalDividerProps } from "../../types/src/index.cjs";
3
3
  import "../../tokens/types.cjs";
4
4
  import { DividerCoreProps } from "./DividerCore.cjs";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalDividerProps } from "../../types/dist/index.js";
2
+ import { UniversalDividerProps } from "../../types/src/index.js";
3
3
  import "../../tokens/types.js";
4
4
  import { DividerCoreProps } from "./DividerCore.js";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalFormLabelProps } from "../types/dist/index.cjs";
2
+ import { UniversalFormLabelProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import * as react from "react";
5
5
  import { PropsWithChildren } from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalFormLabelProps } from "../types/dist/index.js";
2
+ import { UniversalFormLabelProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import * as react from "react";
5
5
  import { PropsWithChildren } from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalStackProps } from "../types/dist/index.cjs";
2
+ import { UniversalStackProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import { DivProps } from "./Box.cjs";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalStackProps } from "../types/dist/index.js";
2
+ import { UniversalStackProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import { DivProps } from "./Box.js";
5
5
  import * as react from "react";
@@ -5,6 +5,7 @@ const require_styles_styler = require('../styles/styler.cjs');
5
5
  const require_tokens_configs_sizes = require('../tokens/configs/sizes.cjs');
6
6
  let react = require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
+ let _yahoo_uds_icons_utils = require("@yahoo/uds-icons/utils");
8
9
 
9
10
  //#region src/components/Icon.tsx
10
11
  /**
@@ -36,8 +37,10 @@ let react_jsx_runtime = require("react/jsx-runtime");
36
37
  *
37
38
  * @related [IconButton](https://uds.build/docs/components/icon-button)
38
39
  */
39
- const Icon = (0, react.forwardRef)(function BaseIcon({ name: SVGIcon, size = "md", variant = "outline", color = "primary", className, ...props }, ref) {
40
- const availableVariants = SVGIcon.metadata?.variants ?? [];
40
+ const Icon = (0, react.forwardRef)(function BaseIcon({ name: iconName, size = "md", variant = "outline", color = "primary", className, ...props }, ref) {
41
+ const iconDefinition = (0, _yahoo_uds_icons_utils.isIconDefinition)(iconName) ? iconName : void 0;
42
+ const iconComponent = typeof iconName === "function" ? iconName : void 0;
43
+ const availableVariants = iconDefinition ? (0, _yahoo_uds_icons_utils.getIconVariants)(iconDefinition) : [];
41
44
  const effectiveVariant = availableVariants.includes(variant) ? variant : availableVariants[0] ?? "fill";
42
45
  const isMulticolor = effectiveVariant === "multicolor";
43
46
  const styles = require_styles_styler.getStyles({
@@ -46,6 +49,14 @@ const Icon = (0, react.forwardRef)(function BaseIcon({ name: SVGIcon, size = "md
46
49
  className: require_styles_styler.cx(className, !isMulticolor && "[&_path]:fill-current")
47
50
  });
48
51
  const sizePx = require_tokens_configs_sizes.normalIconSizes[size];
52
+ const renderedMarkup = iconDefinition ? (0, _yahoo_uds_icons_utils.getIconMarkup)(iconDefinition, size, effectiveVariant) : null;
53
+ const renderedIcon = renderedMarkup ? null : (0, react.isValidElement)(iconName) ? (0, react.cloneElement)(iconName, {
54
+ size,
55
+ variant: effectiveVariant
56
+ }) : iconComponent ? iconComponent({
57
+ size,
58
+ variant: effectiveVariant
59
+ }) : null;
49
60
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
50
61
  ref,
51
62
  xmlns: "http://www.w3.org/2000/svg",
@@ -55,11 +66,9 @@ const Icon = (0, react.forwardRef)(function BaseIcon({ name: SVGIcon, size = "md
55
66
  "aria-hidden": "true",
56
67
  focusable: "false",
57
68
  className: styles,
69
+ dangerouslySetInnerHTML: renderedMarkup ? { __html: renderedMarkup } : void 0,
58
70
  ...props,
59
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SVGIcon, {
60
- size,
61
- variant: effectiveVariant
62
- })
71
+ children: renderedIcon
63
72
  });
64
73
  });
65
74
  Icon.displayName = "Icon";
@@ -6,7 +6,6 @@ import * as react from "react";
6
6
  //#region src/components/Icon.d.ts
7
7
  /**
8
8
  * Props for the Icon component.
9
- * @see IconPropsWithSVGProps
10
9
  */
11
10
  type IconProps = IconPropsWithSVGProps;
12
11
  /**
@@ -6,7 +6,6 @@ import * as react from "react";
6
6
  //#region src/components/Icon.d.ts
7
7
  /**
8
8
  * Props for the Icon component.
9
- * @see IconPropsWithSVGProps
10
9
  */
11
10
  type IconProps = IconPropsWithSVGProps;
12
11
  /**
@@ -1,8 +1,9 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { cx, getStyles } from "../styles/styler.js";
3
3
  import { normalIconSizes } from "../tokens/configs/sizes.js";
4
- import { forwardRef } from "react";
4
+ import { cloneElement, forwardRef, isValidElement } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
+ import { getIconMarkup, getIconVariants, isIconDefinition } from "@yahoo/uds-icons/utils";
6
7
 
7
8
  //#region src/components/Icon.tsx
8
9
  /**
@@ -34,8 +35,10 @@ import { jsx } from "react/jsx-runtime";
34
35
  *
35
36
  * @related [IconButton](https://uds.build/docs/components/icon-button)
36
37
  */
37
- const Icon = forwardRef(function BaseIcon({ name: SVGIcon, size = "md", variant = "outline", color = "primary", className, ...props }, ref) {
38
- const availableVariants = SVGIcon.metadata?.variants ?? [];
38
+ const Icon = forwardRef(function BaseIcon({ name: iconName, size = "md", variant = "outline", color = "primary", className, ...props }, ref) {
39
+ const iconDefinition = isIconDefinition(iconName) ? iconName : void 0;
40
+ const iconComponent = typeof iconName === "function" ? iconName : void 0;
41
+ const availableVariants = iconDefinition ? getIconVariants(iconDefinition) : [];
39
42
  const effectiveVariant = availableVariants.includes(variant) ? variant : availableVariants[0] ?? "fill";
40
43
  const isMulticolor = effectiveVariant === "multicolor";
41
44
  const styles = getStyles({
@@ -44,6 +47,14 @@ const Icon = forwardRef(function BaseIcon({ name: SVGIcon, size = "md", variant
44
47
  className: cx(className, !isMulticolor && "[&_path]:fill-current")
45
48
  });
46
49
  const sizePx = normalIconSizes[size];
50
+ const renderedMarkup = iconDefinition ? getIconMarkup(iconDefinition, size, effectiveVariant) : null;
51
+ const renderedIcon = renderedMarkup ? null : isValidElement(iconName) ? cloneElement(iconName, {
52
+ size,
53
+ variant: effectiveVariant
54
+ }) : iconComponent ? iconComponent({
55
+ size,
56
+ variant: effectiveVariant
57
+ }) : null;
47
58
  return /* @__PURE__ */ jsx("svg", {
48
59
  ref,
49
60
  xmlns: "http://www.w3.org/2000/svg",
@@ -53,11 +64,9 @@ const Icon = forwardRef(function BaseIcon({ name: SVGIcon, size = "md", variant
53
64
  "aria-hidden": "true",
54
65
  focusable: "false",
55
66
  className: styles,
67
+ dangerouslySetInnerHTML: renderedMarkup ? { __html: renderedMarkup } : void 0,
56
68
  ...props,
57
- children: /* @__PURE__ */ jsx(SVGIcon, {
58
- size,
59
- variant: effectiveVariant
60
- })
69
+ children: renderedIcon
61
70
  });
62
71
  });
63
72
  Icon.displayName = "Icon";
@@ -6,10 +6,12 @@ const require_components_Icon = require('./Icon.cjs');
6
6
  let react = require("react");
7
7
  react = require_runtime.__toESM(react);
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
- let lodash_isFunction_js = require("lodash/isFunction.js");
10
- lodash_isFunction_js = require_runtime.__toESM(lodash_isFunction_js);
9
+ let _yahoo_uds_icons_utils = require("@yahoo/uds-icons/utils");
11
10
 
12
11
  //#region src/components/IconSlot.tsx
12
+ function isIconRenderOutput(icon) {
13
+ return (0, react.isValidElement)(icon) && (icon.type === react.default.Fragment || typeof icon.type === "string");
14
+ }
13
15
  /**
14
16
  * A helper container to render a SvgIcon, Icon component, or ReactNode.
15
17
  *
@@ -30,21 +32,38 @@ const IconSlot = (0, react.memo)(function IconSlot({ icon, iconProps, className:
30
32
  if (!icon) return null;
31
33
  const { className: iconPropsClassName, ...props } = iconProps || {};
32
34
  const mergedClassName = require_styles_styler.cx(slotClassName, iconPropsClassName);
33
- const svgIcon = icon;
34
- if (svgIcon.metadata?.isSvgIcon) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
35
- name: svgIcon,
35
+ if ((0, _yahoo_uds_icons_utils.isIconDefinition)(icon)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
36
+ name: icon,
36
37
  ...props,
37
38
  ...rest,
38
39
  className: mergedClassName
39
40
  });
40
- if ((0, lodash_isFunction_js.default)(icon)) {
41
+ if (typeof icon === "function") {
41
42
  const iconEl = icon(iconProps || {});
43
+ if ((0, _yahoo_uds_icons_utils.isIconDefinition)(iconEl)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
44
+ name: iconEl,
45
+ ...props,
46
+ ...rest,
47
+ className: mergedClassName
48
+ });
49
+ if (isIconRenderOutput(iconEl)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
50
+ name: icon,
51
+ ...props,
52
+ ...rest,
53
+ className: mergedClassName
54
+ });
42
55
  const elProps = iconEl?.props;
43
56
  return (0, react.isValidElement)(iconEl) && (0, react.cloneElement)(iconEl, {
44
57
  ...rest,
45
58
  className: require_styles_styler.cx(mergedClassName, elProps?.className)
46
59
  });
47
60
  }
61
+ if (isIconRenderOutput(icon)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
62
+ name: ((svgIconProps) => (0, react.cloneElement)(icon, svgIconProps)),
63
+ ...props,
64
+ ...rest,
65
+ className: mergedClassName
66
+ });
48
67
  const elProps = icon.props;
49
68
  return (0, react.isValidElement)(icon) && (0, react.cloneElement)(icon, {
50
69
  ...props,
@@ -1,13 +1,14 @@
1
1
 
2
- import { UniversalIconSlot } from "../types/dist/index.cjs";
2
+ import { UniversalIconSlot } from "../types/src/index.cjs";
3
3
  import { IconPropsWithSVGProps } from "../tokens/types.cjs";
4
4
  import "../tokens/index.cjs";
5
5
  import React from "react";
6
+ import { IconDefinition } from "@yahoo/uds-icons/types";
6
7
 
7
8
  //#region src/components/IconSlot.d.ts
8
9
  interface IconSlotProps {
9
10
  /** The icon to render. Can be a UDS icon, an Icon component, ReactNode, or a function that a ReactNode. */
10
- icon?: UniversalIconSlot;
11
+ icon?: UniversalIconSlot<IconDefinition>;
11
12
  /** Props to spread onto the icon. */
12
13
  iconProps?: Omit<IconPropsWithSVGProps, 'name'>;
13
14
  className?: string;
@@ -1,13 +1,14 @@
1
1
 
2
- import { UniversalIconSlot } from "../types/dist/index.js";
2
+ import { UniversalIconSlot } from "../types/src/index.js";
3
3
  import { IconPropsWithSVGProps } from "../tokens/types.js";
4
4
  import "../tokens/index.js";
5
5
  import React from "react";
6
+ import { IconDefinition } from "@yahoo/uds-icons/types";
6
7
 
7
8
  //#region src/components/IconSlot.d.ts
8
9
  interface IconSlotProps {
9
10
  /** The icon to render. Can be a UDS icon, an Icon component, ReactNode, or a function that a ReactNode. */
10
- icon?: UniversalIconSlot;
11
+ icon?: UniversalIconSlot<IconDefinition>;
11
12
  /** Props to spread onto the icon. */
12
13
  iconProps?: Omit<IconPropsWithSVGProps, 'name'>;
13
14
  className?: string;
@@ -3,9 +3,12 @@ import { cx } from "../styles/styler.js";
3
3
  import { Icon } from "./Icon.js";
4
4
  import React, { cloneElement, isValidElement, memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
- import { isFunction } from "lodash-es";
6
+ import { isIconDefinition } from "@yahoo/uds-icons/utils";
7
7
 
8
8
  //#region src/components/IconSlot.tsx
9
+ function isIconRenderOutput(icon) {
10
+ return isValidElement(icon) && (icon.type === React.Fragment || typeof icon.type === "string");
11
+ }
9
12
  /**
10
13
  * A helper container to render a SvgIcon, Icon component, or ReactNode.
11
14
  *
@@ -26,21 +29,38 @@ const IconSlot = memo(function IconSlot({ icon, iconProps, className: slotClassN
26
29
  if (!icon) return null;
27
30
  const { className: iconPropsClassName, ...props } = iconProps || {};
28
31
  const mergedClassName = cx(slotClassName, iconPropsClassName);
29
- const svgIcon = icon;
30
- if (svgIcon.metadata?.isSvgIcon) return /* @__PURE__ */ jsx(Icon, {
31
- name: svgIcon,
32
+ if (isIconDefinition(icon)) return /* @__PURE__ */ jsx(Icon, {
33
+ name: icon,
32
34
  ...props,
33
35
  ...rest,
34
36
  className: mergedClassName
35
37
  });
36
- if (isFunction(icon)) {
38
+ if (typeof icon === "function") {
37
39
  const iconEl = icon(iconProps || {});
40
+ if (isIconDefinition(iconEl)) return /* @__PURE__ */ jsx(Icon, {
41
+ name: iconEl,
42
+ ...props,
43
+ ...rest,
44
+ className: mergedClassName
45
+ });
46
+ if (isIconRenderOutput(iconEl)) return /* @__PURE__ */ jsx(Icon, {
47
+ name: icon,
48
+ ...props,
49
+ ...rest,
50
+ className: mergedClassName
51
+ });
38
52
  const elProps = iconEl?.props;
39
53
  return isValidElement(iconEl) && cloneElement(iconEl, {
40
54
  ...rest,
41
55
  className: cx(mergedClassName, elProps?.className)
42
56
  });
43
57
  }
58
+ if (isIconRenderOutput(icon)) return /* @__PURE__ */ jsx(Icon, {
59
+ name: ((svgIconProps) => cloneElement(icon, svgIconProps)),
60
+ ...props,
61
+ ...rest,
62
+ className: mergedClassName
63
+ });
44
64
  const elProps = icon.props;
45
65
  return isValidElement(icon) && cloneElement(icon, {
46
66
  ...props,
@@ -1,5 +1,5 @@
1
1
 
2
- import { ImagePropsWithImgProps } from "../types/dist/index.cjs";
2
+ import { ImagePropsWithImgProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { ImagePropsWithImgProps } from "../types/dist/index.js";
2
+ import { ImagePropsWithImgProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalLinkProps } from "../types/dist/index.cjs";
2
+ import { UniversalLinkProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalLinkProps } from "../types/dist/index.js";
2
+ import { UniversalLinkProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import * as react from "react";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalTextProps } from "../types/dist/index.cjs";
2
+ import { UniversalTextProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import * as react from "react";
5
5
  import { JSX, ReactNode, Ref } from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalTextProps } from "../types/dist/index.js";
2
+ import { UniversalTextProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import * as react from "react";
5
5
  import { JSX, ReactNode, Ref } from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalStackProps } from "../types/dist/index.cjs";
2
+ import { UniversalStackProps } from "../types/src/index.cjs";
3
3
  import "../tokens/index.cjs";
4
4
  import { DivProps } from "./Box.cjs";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalStackProps } from "../types/dist/index.js";
2
+ import { UniversalStackProps } from "../types/src/index.js";
3
3
  import "../tokens/index.js";
4
4
  import { DivProps } from "./Box.js";
5
5
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalAvatarIconProps } from "../../../types/dist/index.cjs";
2
+ import { UniversalAvatarIconProps } from "../../../types/src/index.cjs";
3
3
  import { IconPropsWithSVGProps } from "../../../tokens/types.cjs";
4
4
  import "../../../tokens/index.cjs";
5
5
  import * as react from "react";
@@ -1,6 +1,6 @@
1
1
 
2
2
  "use client";
3
- import { UniversalAvatarIconProps } from "../../../types/dist/index.js";
3
+ import { UniversalAvatarIconProps } from "../../../types/src/index.js";
4
4
  import { IconPropsWithSVGProps } from "../../../tokens/types.js";
5
5
  import "../../../tokens/index.js";
6
6
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { ImagePropsWithImgProps } from "../../../types/dist/index.cjs";
2
+ import { ImagePropsWithImgProps } from "../../../types/src/index.cjs";
3
3
  import { UniversalAvatarImageProps } from "../../../tokens/types.cjs";
4
4
  import "../../../tokens/index.cjs";
5
5
  import { AvatarIconProps } from "./AvatarIcon.cjs";
@@ -1,6 +1,6 @@
1
1
 
2
2
  "use client";
3
- import { ImagePropsWithImgProps } from "../../../types/dist/index.js";
3
+ import { ImagePropsWithImgProps } from "../../../types/src/index.js";
4
4
  import { UniversalAvatarImageProps } from "../../../tokens/types.js";
5
5
  import "../../../tokens/index.js";
6
6
  import { AvatarIconProps } from "./AvatarIcon.js";
@@ -1,5 +1,5 @@
1
1
 
2
- import { UniversalAvatarTextProps } from "../../../types/dist/index.cjs";
2
+ import { UniversalAvatarTextProps } from "../../../types/src/index.cjs";
3
3
  import "../../../tokens/index.cjs";
4
4
  import { TextProps } from "../../Text.cjs";
5
5
  import * as react from "react";
@@ -1,6 +1,6 @@
1
1
 
2
2
  "use client";
3
- import { UniversalAvatarTextProps } from "../../../types/dist/index.js";
3
+ import { UniversalAvatarTextProps } from "../../../types/src/index.js";
4
4
  import "../../../tokens/index.js";
5
5
  import { TextProps } from "../../Text.js";
6
6
  import * as react from "react";
@@ -1,5 +1,5 @@
1
1
 
2
- import { AvatarAbbreviationStrategy, AvatarSize, AvatarVariant, UniversalAvatarProps } from "../../../types/dist/index.cjs";
2
+ import { AvatarAbbreviationStrategy, AvatarSize, AvatarVariant, UniversalAvatarProps } from "../../../types/src/index.cjs";
3
3
  import "../../../tokens/index.cjs";
4
4
  import { getStyles } from "../../../styles/styler.cjs";
5
5