@yahoo/uds 3.132.2 → 3.133.0-beta.2

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 (287) 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/{client/Avatar → Avatar}/Avatar.cjs +21 -6
  8. package/dist/components/{client/Avatar → Avatar}/Avatar.d.cts +3 -3
  9. package/dist/components/{client/Avatar → Avatar}/Avatar.d.ts +3 -4
  10. package/dist/components/{client/Avatar → Avatar}/Avatar.js +20 -5
  11. package/dist/components/{client/Avatar → Avatar}/AvatarIcon.cjs +11 -12
  12. package/dist/components/{client/Avatar → Avatar}/AvatarIcon.d.cts +5 -4
  13. package/dist/components/{client/Avatar → Avatar}/AvatarIcon.d.ts +5 -5
  14. package/dist/components/{client/Avatar → Avatar}/AvatarIcon.js +6 -7
  15. package/dist/components/Avatar/AvatarImage.types.cjs +1 -0
  16. package/dist/components/Avatar/AvatarImage.types.d.cts +19 -0
  17. package/dist/components/Avatar/AvatarImage.types.d.ts +19 -0
  18. package/dist/components/Avatar/AvatarImage.types.js +1 -0
  19. package/dist/components/Avatar/AvatarImageNoFallback.cjs +53 -0
  20. package/dist/components/Avatar/AvatarImageNoFallback.d.cts +18 -0
  21. package/dist/components/Avatar/AvatarImageNoFallback.d.ts +18 -0
  22. package/dist/components/Avatar/AvatarImageNoFallback.js +51 -0
  23. package/dist/components/{client/Avatar → Avatar}/AvatarText.cjs +11 -11
  24. package/dist/components/{client/Avatar → Avatar}/AvatarText.d.cts +5 -4
  25. package/dist/components/{client/Avatar → Avatar}/AvatarText.d.ts +5 -5
  26. package/dist/components/{client/Avatar → Avatar}/AvatarText.js +5 -5
  27. package/dist/components/Avatar/index.cjs +11 -0
  28. package/dist/components/Avatar/index.d.cts +6 -0
  29. package/dist/components/Avatar/index.d.ts +6 -0
  30. package/dist/components/Avatar/index.js +7 -0
  31. package/dist/components/{client/Avatar → Avatar}/utils.cjs +3 -4
  32. package/dist/components/{client/Avatar → Avatar}/utils.d.cts +4 -4
  33. package/dist/components/{client/Avatar → Avatar}/utils.d.ts +4 -5
  34. package/dist/components/{client/Avatar → Avatar}/utils.js +2 -3
  35. package/dist/components/Banner/Banner.cjs +2 -2
  36. package/dist/components/Banner/Banner.d.cts +1 -1
  37. package/dist/components/Banner/Banner.d.ts +1 -1
  38. package/dist/components/Banner/Banner.js +2 -2
  39. package/dist/components/Banner/utils.d.cts +1 -1
  40. package/dist/components/Banner/utils.d.ts +1 -1
  41. package/dist/components/Box.d.cts +1 -1
  42. package/dist/components/Box.d.ts +1 -1
  43. package/dist/components/Divider/DividerCore.cjs +1 -1
  44. package/dist/components/Divider/DividerCore.d.cts +2 -2
  45. package/dist/components/Divider/DividerCore.d.ts +2 -2
  46. package/dist/components/Divider/DividerCore.js +1 -1
  47. package/dist/components/Divider/DividerInternal.d.cts +1 -1
  48. package/dist/components/Divider/DividerInternal.d.ts +1 -1
  49. package/dist/components/FormLabel.d.cts +1 -1
  50. package/dist/components/FormLabel.d.ts +1 -1
  51. package/dist/components/HStack.d.cts +1 -1
  52. package/dist/components/HStack.d.ts +1 -1
  53. package/dist/components/Icon.cjs +15 -6
  54. package/dist/components/Icon.d.cts +0 -1
  55. package/dist/components/Icon.d.ts +0 -1
  56. package/dist/components/Icon.js +16 -7
  57. package/dist/components/IconSlot.cjs +25 -6
  58. package/dist/components/IconSlot.d.cts +3 -2
  59. package/dist/components/IconSlot.d.ts +3 -2
  60. package/dist/components/IconSlot.js +25 -5
  61. package/dist/components/Image.d.cts +1 -1
  62. package/dist/components/Image.d.ts +1 -1
  63. package/dist/components/Link.d.cts +1 -1
  64. package/dist/components/Link.d.ts +1 -1
  65. package/dist/components/Text.d.cts +1 -1
  66. package/dist/components/Text.d.ts +1 -1
  67. package/dist/components/VStack.d.cts +1 -1
  68. package/dist/components/VStack.d.ts +1 -1
  69. package/dist/components/client/Avatar/AvatarImage.cjs +37 -58
  70. package/dist/components/client/Avatar/AvatarImage.d.cts +2 -16
  71. package/dist/components/client/Avatar/AvatarImage.d.ts +2 -16
  72. package/dist/components/client/Avatar/AvatarImage.js +36 -57
  73. package/dist/components/client/Avatar/index.cjs +1 -7
  74. package/dist/components/client/Avatar/index.d.cts +3 -5
  75. package/dist/components/client/Avatar/index.d.ts +3 -5
  76. package/dist/components/client/Avatar/index.js +1 -4
  77. package/dist/components/client/Badge.d.cts +1 -1
  78. package/dist/components/client/Badge.d.ts +1 -1
  79. package/dist/components/client/BottomSheet/BottomSheet.d.cts +1 -1
  80. package/dist/components/client/BottomSheet/BottomSheet.d.ts +1 -1
  81. package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +1 -1
  82. package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +1 -1
  83. package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +1 -1
  84. package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +1 -1
  85. package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +1 -1
  86. package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +1 -1
  87. package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +1 -1
  88. package/dist/components/client/BottomSheet/BottomSheetHeader.js +1 -1
  89. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +1 -1
  90. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +1 -1
  91. package/dist/components/client/BottomSheet/utils.d.cts +1 -1
  92. package/dist/components/client/BottomSheet/utils.d.ts +1 -1
  93. package/dist/components/client/Button.cjs +1 -1
  94. package/dist/components/client/Button.d.cts +1 -1
  95. package/dist/components/client/Button.d.ts +1 -1
  96. package/dist/components/client/Button.js +1 -1
  97. package/dist/components/client/Checkbox.cjs +2 -2
  98. package/dist/components/client/Checkbox.d.cts +1 -1
  99. package/dist/components/client/Checkbox.d.ts +1 -1
  100. package/dist/components/client/Checkbox.js +2 -2
  101. package/dist/components/client/Chip/ChipBase.d.cts +1 -1
  102. package/dist/components/client/Chip/ChipBase.d.ts +1 -1
  103. package/dist/components/client/Chip/ChipButton.d.cts +1 -1
  104. package/dist/components/client/Chip/ChipButton.d.ts +1 -1
  105. package/dist/components/client/Chip/ChipDismissible.cjs +2 -2
  106. package/dist/components/client/Chip/ChipDismissible.d.cts +1 -1
  107. package/dist/components/client/Chip/ChipDismissible.d.ts +1 -1
  108. package/dist/components/client/Chip/ChipDismissible.js +2 -2
  109. package/dist/components/client/Chip/ChipLink.d.cts +1 -1
  110. package/dist/components/client/Chip/ChipLink.d.ts +1 -1
  111. package/dist/components/client/Chip/ChipToggle.d.cts +1 -1
  112. package/dist/components/client/Chip/ChipToggle.d.ts +1 -1
  113. package/dist/components/client/IconButton.cjs +7 -2
  114. package/dist/components/client/IconButton.js +7 -2
  115. package/dist/components/client/Input/Input.cjs +5 -9
  116. package/dist/components/client/Input/Input.d.cts +1 -1
  117. package/dist/components/client/Input/Input.d.ts +1 -1
  118. package/dist/components/client/Input/Input.js +6 -10
  119. package/dist/components/client/Input/InputHelpTextInternal.d.cts +1 -1
  120. package/dist/components/client/Input/InputHelpTextInternal.d.ts +1 -1
  121. package/dist/components/client/Menu/Menu.Content.d.cts +1 -1
  122. package/dist/components/client/Menu/Menu.Content.d.ts +1 -1
  123. package/dist/components/client/Menu/Menu.Item.d.cts +1 -1
  124. package/dist/components/client/Menu/Menu.Item.d.ts +1 -1
  125. package/dist/components/client/Menu/Menu.ItemBase.cjs +1 -1
  126. package/dist/components/client/Menu/Menu.ItemBase.d.cts +1 -1
  127. package/dist/components/client/Menu/Menu.ItemBase.d.ts +1 -1
  128. package/dist/components/client/Menu/Menu.ItemBase.js +1 -1
  129. package/dist/components/client/Menu/Menu.ItemCheckbox.cjs +1 -1
  130. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +2 -2
  131. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +2 -2
  132. package/dist/components/client/Menu/Menu.ItemCheckbox.js +1 -1
  133. package/dist/components/client/Popover/Popover.d.cts +1 -1
  134. package/dist/components/client/Popover/Popover.d.ts +1 -1
  135. package/dist/components/client/Popover/PopoverContent.cjs +3 -3
  136. package/dist/components/client/Popover/PopoverContent.d.cts +1 -1
  137. package/dist/components/client/Popover/PopoverContent.d.ts +1 -1
  138. package/dist/components/client/Popover/PopoverContent.js +3 -3
  139. package/dist/components/client/Popover/PopoverTrigger.d.cts +1 -1
  140. package/dist/components/client/Popover/PopoverTrigger.d.ts +1 -1
  141. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
  142. package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
  143. package/dist/components/client/Popover/index.d.cts +1 -1
  144. package/dist/components/client/Popover/index.d.ts +1 -1
  145. package/dist/components/client/Pressable.d.cts +1 -1
  146. package/dist/components/client/Pressable.d.ts +1 -1
  147. package/dist/components/client/Radio/Radio.d.cts +1 -1
  148. package/dist/components/client/Radio/Radio.d.ts +1 -1
  149. package/dist/components/client/Radio/RadioGroupProvider.d.cts +1 -1
  150. package/dist/components/client/Radio/RadioGroupProvider.d.ts +1 -1
  151. package/dist/components/client/SpringMotionConfig.d.cts +1 -1
  152. package/dist/components/client/SpringMotionConfig.d.ts +1 -1
  153. package/dist/components/client/Switch.cjs +1 -1
  154. package/dist/components/client/Switch.d.cts +1 -1
  155. package/dist/components/client/Switch.d.ts +1 -1
  156. package/dist/components/client/Switch.js +1 -1
  157. package/dist/components/client/Tabs/Tab.d.cts +1 -1
  158. package/dist/components/client/Tabs/Tab.d.ts +1 -1
  159. package/dist/components/client/Tabs/TabList.d.cts +1 -1
  160. package/dist/components/client/Tabs/TabList.d.ts +1 -1
  161. package/dist/components/client/Tabs/TabPanel.d.cts +1 -1
  162. package/dist/components/client/Tabs/TabPanel.d.ts +1 -1
  163. package/dist/components/client/Tabs/Tabs.d.cts +1 -1
  164. package/dist/components/client/Tabs/Tabs.d.ts +1 -1
  165. package/dist/components/client/Tabs/tabsContext.d.cts +1 -1
  166. package/dist/components/client/Tabs/tabsContext.d.ts +1 -1
  167. package/dist/components/client/Toast/Toast.cjs +1 -1
  168. package/dist/components/client/Toast/Toast.d.cts +1 -1
  169. package/dist/components/client/Toast/Toast.d.ts +1 -1
  170. package/dist/components/client/Toast/Toast.js +1 -1
  171. package/dist/components/client/Toast/ToastContainer.d.cts +1 -1
  172. package/dist/components/client/Toast/ToastContainer.d.ts +1 -1
  173. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +1 -1
  174. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +1 -1
  175. package/dist/components/client/Toast/createToast.d.cts +1 -1
  176. package/dist/components/client/Toast/createToast.d.ts +1 -1
  177. package/dist/components/client/Tooltip/Tooltip.d.cts +1 -1
  178. package/dist/components/client/Tooltip/Tooltip.d.ts +1 -1
  179. package/dist/components/client/Tooltip/TooltipContent.cjs +1 -1
  180. package/dist/components/client/Tooltip/TooltipContent.d.cts +2 -2
  181. package/dist/components/client/Tooltip/TooltipContent.d.ts +2 -2
  182. package/dist/components/client/Tooltip/TooltipContent.js +1 -1
  183. package/dist/components/client/Tooltip/TooltipTrigger.d.cts +1 -1
  184. package/dist/components/client/Tooltip/TooltipTrigger.d.ts +1 -1
  185. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +1 -1
  186. package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +1 -1
  187. package/dist/components/client/Tooltip/index.d.cts +1 -1
  188. package/dist/components/client/Tooltip/index.d.ts +1 -1
  189. package/dist/components/client/buttonConstants.d.cts +1 -1
  190. package/dist/components/client/buttonConstants.d.ts +1 -1
  191. package/dist/components/client/index.cjs +1 -7
  192. package/dist/components/client/index.d.cts +4 -6
  193. package/dist/components/client/index.d.ts +4 -6
  194. package/dist/components/client/index.js +2 -5
  195. package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.cts +1 -1
  196. package/dist/components/client/providers/UDSBreakpointsConfigProvider.d.ts +1 -1
  197. package/dist/components/experimental/Table.cjs +1 -1
  198. package/dist/components/experimental/Table.d.cts +2 -2
  199. package/dist/components/experimental/Table.d.ts +2 -2
  200. package/dist/components/experimental/Table.js +1 -1
  201. package/dist/components/experimental/client/Accordion.cjs +1 -1
  202. package/dist/components/experimental/client/Accordion.js +1 -1
  203. package/dist/components/experimental/client/SegmentedControl.cjs +1 -1
  204. package/dist/components/experimental/client/SegmentedControl.js +1 -1
  205. package/dist/components/experimental/client/SwitchV2.cjs +1 -1
  206. package/dist/components/experimental/client/SwitchV2.d.cts +1 -1
  207. package/dist/components/experimental/client/SwitchV2.d.ts +1 -1
  208. package/dist/components/experimental/client/SwitchV2.js +1 -1
  209. package/dist/components/index.cjs +16 -13
  210. package/dist/components/index.d.cts +10 -7
  211. package/dist/components/index.d.ts +10 -7
  212. package/dist/components/index.js +10 -8
  213. package/dist/config/dist/index.d.cts +1 -1
  214. package/dist/config/dist/index.d.ts +1 -1
  215. package/dist/css-tokens/dist/index.d.cts +1 -1
  216. package/dist/css-tokens/dist/index.d.ts +1 -1
  217. package/dist/fixtures/dist/index.d.cts +1 -1
  218. package/dist/fixtures/dist/index.d.ts +1 -1
  219. package/dist/fixtures/index.d.cts +1 -1
  220. package/dist/fixtures/index.d.ts +1 -1
  221. package/dist/fonts/dist/index.d.cts +1 -1
  222. package/dist/fonts/dist/index.d.ts +1 -1
  223. package/dist/index.cjs +12 -10
  224. package/dist/index.d.cts +10 -8
  225. package/dist/index.d.ts +10 -8
  226. package/dist/index.js +9 -8
  227. package/dist/modes/dist/index.d.cts +1 -1
  228. package/dist/modes/dist/index.d.ts +1 -1
  229. package/dist/motion-tokens/dist/index.d.cts +1 -1
  230. package/dist/motion-tokens/dist/index.d.ts +1 -1
  231. package/dist/providers/ColorModeProvider.d.cts +1 -1
  232. package/dist/providers/ColorModeProvider.d.ts +1 -1
  233. package/dist/providers/ScaleModeProvider.d.cts +1 -1
  234. package/dist/providers/ScaleModeProvider.d.ts +1 -1
  235. package/dist/providers/ThemeProvider.d.cts +1 -1
  236. package/dist/providers/ThemeProvider.d.ts +1 -1
  237. package/dist/runtime/bottomSheetConfig.d.cts +1 -1
  238. package/dist/runtime/bottomSheetConfig.d.ts +1 -1
  239. package/dist/runtime/breakpointsConfig.d.cts +1 -1
  240. package/dist/runtime/breakpointsConfig.d.ts +1 -1
  241. package/dist/runtime/popoverConfig.d.cts +1 -1
  242. package/dist/runtime/popoverConfig.d.ts +1 -1
  243. package/dist/runtime/toastConfig.d.cts +1 -1
  244. package/dist/runtime/toastConfig.d.ts +1 -1
  245. package/dist/runtime/tooltipConfig.d.cts +1 -1
  246. package/dist/runtime/tooltipConfig.d.ts +1 -1
  247. package/dist/styles/styler.d.cts +38 -38
  248. package/dist/styles/styler.d.ts +38 -38
  249. package/dist/styles/stylerTypes.d.cts +1 -1
  250. package/dist/styles/stylerTypes.d.ts +1 -1
  251. package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
  252. package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
  253. package/dist/tokens/configs/borderRadius.d.cts +1 -1
  254. package/dist/tokens/configs/borderRadius.d.ts +1 -1
  255. package/dist/tokens/configs/borderWidth.d.cts +1 -1
  256. package/dist/tokens/configs/borderWidth.d.ts +1 -1
  257. package/dist/tokens/configs/font.d.cts +1 -1
  258. package/dist/tokens/configs/font.d.ts +1 -1
  259. package/dist/tokens/configs/scaleMode.d.cts +1 -1
  260. package/dist/tokens/configs/scaleMode.d.ts +1 -1
  261. package/dist/tokens/configs/shadow.d.cts +1 -1
  262. package/dist/tokens/configs/shadow.d.ts +1 -1
  263. package/dist/tokens/configs/sizes.d.cts +1 -1
  264. package/dist/tokens/configs/sizes.d.ts +1 -1
  265. package/dist/tokens/configs/typography.d.cts +1 -1
  266. package/dist/tokens/configs/typography.d.ts +1 -1
  267. package/dist/tokens/index.d.cts +2 -2
  268. package/dist/tokens/index.d.ts +2 -2
  269. package/dist/tokens/parseButtonVariants.d.cts +1 -1
  270. package/dist/tokens/parseButtonVariants.d.ts +1 -1
  271. package/dist/tokens/types.d.cts +7 -7
  272. package/dist/tokens/types.d.ts +7 -7
  273. package/dist/tokens/utils/spectrum.d.cts +1 -1
  274. package/dist/tokens/utils/spectrum.d.ts +1 -1
  275. package/dist/types/{dist → src}/index.d.cts +35 -23
  276. package/dist/types/{dist → src}/index.d.ts +35 -23
  277. package/dist/uds/generated/componentData.cjs +515 -495
  278. package/dist/uds/generated/componentData.js +511 -497
  279. package/dist/uds/generated/tailwindPurge.cjs +128 -104
  280. package/dist/uds/generated/tailwindPurge.js +128 -104
  281. package/dist/utils/isElevationAlias.d.cts +1 -1
  282. package/dist/utils/isElevationAlias.d.ts +1 -1
  283. package/generated/componentData.json +1095 -1087
  284. package/generated/tailwindPurge.ts +3 -3
  285. package/package.json +1 -1
  286. package/dist/icons/dist/types.d.cts +0 -30
  287. package/dist/icons/dist/types.d.ts +0 -30
@@ -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,12 +1,13 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
5
- const require_components_client_Avatar_AvatarImage = require('./AvatarImage.cjs');
3
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
4
+ const require_components_Avatar_AvatarIcon = require('./AvatarIcon.cjs');
5
+ const require_components_Avatar_AvatarText = require('./AvatarText.cjs');
6
+ const require_components_client_Avatar_AvatarImage = require('../client/Avatar/AvatarImage.cjs');
6
7
  let react = require("react");
7
8
  let react_jsx_runtime = require("react/jsx-runtime");
8
9
 
9
- //#region src/components/client/Avatar/Avatar.tsx
10
+ //#region src/components/Avatar/Avatar.tsx
10
11
  /**
11
12
  * **👤 Avatar Component**
12
13
  *
@@ -14,7 +15,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
14
15
  * @usage The Avatar component should be used whenever you need to visually represent a user's identity in your application. This includes places like profile headers, user lists, chat messages, and comment sections. It's ideal for providing a consistent visual cue for users, whether by displaying a profile image, generating initials from a name, or falling back to a default icon when no image is available.
15
16
  * @param props - Combined Avatar props.
16
17
  * @returns The Avatar element.
17
- * @componentType Client component
18
+ * @componentType Server component
18
19
  * @example ```tsx
19
20
  * import { Avatar } from '@yahoo/uds';
20
21
  *
@@ -27,10 +28,24 @@ let react_jsx_runtime = require("react/jsx-runtime");
27
28
  *
28
29
  */
29
30
  const Avatar = (0, react.forwardRef)((props, ref) => {
30
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Avatar_AvatarImage.AvatarImage, {
31
+ const { src, srcSet, alt, fallback, abbreviationStrategy, slotProps, ...restProps } = props;
32
+ if (src || srcSet) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Avatar_AvatarImage.AvatarImage, {
31
33
  ref,
32
34
  ...props
33
35
  });
36
+ if (fallback || alt) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Avatar_AvatarText.AvatarText, {
37
+ ref,
38
+ name: alt,
39
+ initials: fallback,
40
+ abbreviationStrategy,
41
+ slotProps: { text: slotProps?.text },
42
+ ...restProps
43
+ });
44
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Avatar_AvatarIcon.AvatarIcon, {
45
+ ref,
46
+ slotProps: { icon: slotProps?.icon },
47
+ ...restProps
48
+ });
34
49
  });
35
50
  Avatar.displayName = "Avatar";
36
51
 
@@ -1,8 +1,8 @@
1
1
 
2
- import { AvatarImageProps } from "./AvatarImage.cjs";
2
+ import { AvatarImageProps } from "./AvatarImage.types.cjs";
3
3
  import * as react from "react";
4
4
 
5
- //#region src/components/client/Avatar/Avatar.d.ts
5
+ //#region src/components/Avatar/Avatar.d.ts
6
6
  type AvatarProps = AvatarImageProps;
7
7
  /**
8
8
  * **👤 Avatar Component**
@@ -11,7 +11,7 @@ type AvatarProps = AvatarImageProps;
11
11
  * @usage The Avatar component should be used whenever you need to visually represent a user's identity in your application. This includes places like profile headers, user lists, chat messages, and comment sections. It's ideal for providing a consistent visual cue for users, whether by displaying a profile image, generating initials from a name, or falling back to a default icon when no image is available.
12
12
  * @param props - Combined Avatar props.
13
13
  * @returns The Avatar element.
14
- * @componentType Client component
14
+ * @componentType Server component
15
15
  * @example ```tsx
16
16
  * import { Avatar } from '@yahoo/uds';
17
17
  *
@@ -1,9 +1,8 @@
1
1
 
2
- "use client";
3
- import { AvatarImageProps } from "./AvatarImage.js";
2
+ import { AvatarImageProps } from "./AvatarImage.types.js";
4
3
  import * as react from "react";
5
4
 
6
- //#region src/components/client/Avatar/Avatar.d.ts
5
+ //#region src/components/Avatar/Avatar.d.ts
7
6
  type AvatarProps = AvatarImageProps;
8
7
  /**
9
8
  * **👤 Avatar Component**
@@ -12,7 +11,7 @@ type AvatarProps = AvatarImageProps;
12
11
  * @usage The Avatar component should be used whenever you need to visually represent a user's identity in your application. This includes places like profile headers, user lists, chat messages, and comment sections. It's ideal for providing a consistent visual cue for users, whether by displaying a profile image, generating initials from a name, or falling back to a default icon when no image is available.
13
12
  * @param props - Combined Avatar props.
14
13
  * @returns The Avatar element.
15
- * @componentType Client component
14
+ * @componentType Server component
16
15
  * @example ```tsx
17
16
  * import { Avatar } from '@yahoo/uds';
18
17
  *
@@ -1,10 +1,11 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
- import { AvatarImage } from "./AvatarImage.js";
2
+ import { AvatarIcon } from "./AvatarIcon.js";
3
+ import { AvatarText } from "./AvatarText.js";
4
+ import { AvatarImage } from "../client/Avatar/AvatarImage.js";
4
5
  import { forwardRef } from "react";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
 
7
- //#region src/components/client/Avatar/Avatar.tsx
8
+ //#region src/components/Avatar/Avatar.tsx
8
9
  /**
9
10
  * **👤 Avatar Component**
10
11
  *
@@ -12,7 +13,7 @@ import { jsx } from "react/jsx-runtime";
12
13
  * @usage The Avatar component should be used whenever you need to visually represent a user's identity in your application. This includes places like profile headers, user lists, chat messages, and comment sections. It's ideal for providing a consistent visual cue for users, whether by displaying a profile image, generating initials from a name, or falling back to a default icon when no image is available.
13
14
  * @param props - Combined Avatar props.
14
15
  * @returns The Avatar element.
15
- * @componentType Client component
16
+ * @componentType Server component
16
17
  * @example ```tsx
17
18
  * import { Avatar } from '@yahoo/uds';
18
19
  *
@@ -25,10 +26,24 @@ import { jsx } from "react/jsx-runtime";
25
26
  *
26
27
  */
27
28
  const Avatar = forwardRef((props, ref) => {
28
- return /* @__PURE__ */ jsx(AvatarImage, {
29
+ const { src, srcSet, alt, fallback, abbreviationStrategy, slotProps, ...restProps } = props;
30
+ if (src || srcSet) return /* @__PURE__ */ jsx(AvatarImage, {
29
31
  ref,
30
32
  ...props
31
33
  });
34
+ if (fallback || alt) return /* @__PURE__ */ jsx(AvatarText, {
35
+ ref,
36
+ name: alt,
37
+ initials: fallback,
38
+ abbreviationStrategy,
39
+ slotProps: { text: slotProps?.text },
40
+ ...restProps
41
+ });
42
+ return /* @__PURE__ */ jsx(AvatarIcon, {
43
+ ref,
44
+ slotProps: { icon: slotProps?.icon },
45
+ ...restProps
46
+ });
32
47
  });
33
48
  Avatar.displayName = "Avatar";
34
49
 
@@ -1,17 +1,15 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
5
- const require_styles_styler = require('../../../styles/styler.cjs');
6
- const require_components_IconSlot = require('../../IconSlot.cjs');
7
- const require_components_Box = require('../../Box.cjs');
8
- const require_components_client_Avatar_utils = require('./utils.cjs');
9
- let _yahoo_uds_icons = require("@yahoo/uds-icons");
3
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
4
+ const require_styles_styler = require('../../styles/styler.cjs');
5
+ const require_components_Box = require('../Box.cjs');
6
+ const require_components_IconSlot = require('../IconSlot.cjs');
7
+ const require_components_Avatar_utils = require('./utils.cjs');
10
8
  let react = require("react");
9
+ let _yahoo_uds_icons = require("@yahoo/uds-icons");
11
10
  let react_jsx_runtime = require("react/jsx-runtime");
12
11
 
13
- //#region src/components/client/Avatar/AvatarIcon.tsx
14
- /** Maps avatar variant to icon */
12
+ //#region src/components/Avatar/AvatarIcon.tsx
15
13
  const mapVariantToIcon = {
16
14
  primary: _yahoo_uds_icons.Person,
17
15
  secondary: _yahoo_uds_icons.Building
@@ -23,10 +21,11 @@ const mapVariantToIcon = {
23
21
  *
24
22
  * @param props - Props for icon variant.
25
23
  * @returns The AvatarIcon element.
24
+ * @componentType Server component
26
25
  */
27
- const AvatarIcon = (0, react.forwardRef)(({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }, ref) => {
26
+ const AvatarIcon = (0, react.forwardRef)(({ size = require_components_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_Avatar_utils.DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }, ref) => {
28
27
  const classNames = (0, react.useMemo)(() => ({
29
- root: require_components_client_Avatar_utils.buildAvatarRootClasses(size, {
28
+ root: require_components_Avatar_utils.buildAvatarRootClasses(size, {
30
29
  avatarIconVariantRoot: variant,
31
30
  overflow: "hidden",
32
31
  className: require_styles_styler.cx("overflow-hidden", className)
@@ -38,7 +37,7 @@ const AvatarIcon = (0, react.forwardRef)(({ size = require_components_client_Ava
38
37
  size,
39
38
  variant
40
39
  ]);
41
- const inlineStyles = (0, react.useMemo)(() => require_components_client_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
40
+ const inlineStyles = (0, react.useMemo)(() => require_components_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
42
41
  const iconSvg = icon ?? mapVariantToIcon[variant ?? "primary"];
43
42
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
44
43
  ref,
@@ -1,10 +1,10 @@
1
1
 
2
- import { UniversalAvatarIconProps } from "../../../types/dist/index.cjs";
3
- import { IconPropsWithSVGProps } from "../../../tokens/types.cjs";
4
- import "../../../tokens/index.cjs";
2
+ import { UniversalAvatarIconProps } from "../../types/src/index.cjs";
3
+ import { IconPropsWithSVGProps } from "../../tokens/types.cjs";
4
+ import "../../tokens/index.cjs";
5
5
  import * as react from "react";
6
6
 
7
- //#region src/components/client/Avatar/AvatarIcon.d.ts
7
+ //#region src/components/Avatar/AvatarIcon.d.ts
8
8
  type DataAttributes = {
9
9
  [name: `data-${string}`]: string;
10
10
  };
@@ -21,6 +21,7 @@ interface AvatarIconProps extends UniversalAvatarIconProps {
21
21
  *
22
22
  * @param props - Props for icon variant.
23
23
  * @returns The AvatarIcon element.
24
+ * @componentType Server component
24
25
  */
25
26
  declare const AvatarIcon: react.ForwardRefExoticComponent<AvatarIconProps & react.RefAttributes<HTMLDivElement>>;
26
27
  //#endregion
@@ -1,11 +1,10 @@
1
1
 
2
- "use client";
3
- import { UniversalAvatarIconProps } from "../../../types/dist/index.js";
4
- import { IconPropsWithSVGProps } from "../../../tokens/types.js";
5
- import "../../../tokens/index.js";
2
+ import { UniversalAvatarIconProps } from "../../types/src/index.js";
3
+ import { IconPropsWithSVGProps } from "../../tokens/types.js";
4
+ import "../../tokens/index.js";
6
5
  import * as react from "react";
7
6
 
8
- //#region src/components/client/Avatar/AvatarIcon.d.ts
7
+ //#region src/components/Avatar/AvatarIcon.d.ts
9
8
  type DataAttributes = {
10
9
  [name: `data-${string}`]: string;
11
10
  };
@@ -22,6 +21,7 @@ interface AvatarIconProps extends UniversalAvatarIconProps {
22
21
  *
23
22
  * @param props - Props for icon variant.
24
23
  * @returns The AvatarIcon element.
24
+ * @componentType Server component
25
25
  */
26
26
  declare const AvatarIcon: react.ForwardRefExoticComponent<AvatarIconProps & react.RefAttributes<HTMLDivElement>>;
27
27
  //#endregion
@@ -1,15 +1,13 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
- import { cx, getStyles } from "../../../styles/styler.js";
4
- import { IconSlot } from "../../IconSlot.js";
5
- import { Box } from "../../Box.js";
2
+ import { cx, getStyles } from "../../styles/styler.js";
3
+ import { Box } from "../Box.js";
4
+ import { IconSlot } from "../IconSlot.js";
6
5
  import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles } from "./utils.js";
7
- import { Building, Person } from "@yahoo/uds-icons";
8
6
  import { forwardRef, useMemo } from "react";
7
+ import { Building, Person } from "@yahoo/uds-icons";
9
8
  import { jsx } from "react/jsx-runtime";
10
9
 
11
- //#region src/components/client/Avatar/AvatarIcon.tsx
12
- /** Maps avatar variant to icon */
10
+ //#region src/components/Avatar/AvatarIcon.tsx
13
11
  const mapVariantToIcon = {
14
12
  primary: Person,
15
13
  secondary: Building
@@ -21,6 +19,7 @@ const mapVariantToIcon = {
21
19
  *
22
20
  * @param props - Props for icon variant.
23
21
  * @returns The AvatarIcon element.
22
+ * @componentType Server component
24
23
  */
25
24
  const AvatarIcon = forwardRef(({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, customSize, icon, slotProps, className, ...props }, ref) => {
26
25
  const classNames = useMemo(() => ({
@@ -0,0 +1 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
@@ -0,0 +1,19 @@
1
+
2
+ import { ImagePropsWithImgProps } from "../../types/src/index.cjs";
3
+ import { UniversalAvatarImageProps } from "../../tokens/types.cjs";
4
+ import "../../tokens/index.cjs";
5
+ import { AvatarIconProps } from "./AvatarIcon.cjs";
6
+ import { AvatarTextProps } from "./AvatarText.cjs";
7
+
8
+ //#region src/components/Avatar/AvatarImage.types.d.ts
9
+ type DataAttributes = {
10
+ [name: `data-${string}`]: string;
11
+ };
12
+ interface AvatarImageProps extends UniversalAvatarImageProps {
13
+ /** Props to be passed into various slots within the component. */
14
+ slotProps?: {
15
+ image?: Partial<Omit<ImagePropsWithImgProps, 'src' | 'srcSet' | 'alt' | 'className' | 'height' | 'width'> & DataAttributes>;
16
+ } & AvatarIconProps['slotProps'] & AvatarTextProps['slotProps'];
17
+ }
18
+ //#endregion
19
+ export { type AvatarImageProps };
@@ -0,0 +1,19 @@
1
+
2
+ import { ImagePropsWithImgProps } from "../../types/src/index.js";
3
+ import { UniversalAvatarImageProps } from "../../tokens/types.js";
4
+ import "../../tokens/index.js";
5
+ import { AvatarIconProps } from "./AvatarIcon.js";
6
+ import { AvatarTextProps } from "./AvatarText.js";
7
+
8
+ //#region src/components/Avatar/AvatarImage.types.d.ts
9
+ type DataAttributes = {
10
+ [name: `data-${string}`]: string;
11
+ };
12
+ interface AvatarImageProps extends UniversalAvatarImageProps {
13
+ /** Props to be passed into various slots within the component. */
14
+ slotProps?: {
15
+ image?: Partial<Omit<ImagePropsWithImgProps, 'src' | 'srcSet' | 'alt' | 'className' | 'height' | 'width'> & DataAttributes>;
16
+ } & AvatarIconProps['slotProps'] & AvatarTextProps['slotProps'];
17
+ }
18
+ //#endregion
19
+ export { type AvatarImageProps };
@@ -0,0 +1 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
@@ -0,0 +1,53 @@
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_styles_styler = require('../../styles/styler.cjs');
5
+ const require_components_Box = require('../Box.cjs');
6
+ const require_components_Avatar_utils = require('./utils.cjs');
7
+ const require_components_Image = require('../Image.cjs');
8
+ let react = require("react");
9
+ let react_jsx_runtime = require("react/jsx-runtime");
10
+
11
+ //#region src/components/Avatar/AvatarImageNoFallback.tsx
12
+ /**
13
+ * **AvatarImageNoFallback Component**
14
+ *
15
+ * Renders an Avatar image without client-side fallback dispatch.
16
+ *
17
+ * @param props - Props for image variant.
18
+ * @returns The AvatarImageNoFallback element.
19
+ * @componentType Server component
20
+ */
21
+ const AvatarImageNoFallback = (0, react.forwardRef)(({ size = require_components_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_Avatar_utils.DEFAULT_AVATAR_VARIANT, src, srcSet, customSize, alt, className, imageProps, slotProps, ...props }, ref) => {
22
+ const classNames = (0, react.useMemo)(() => ({
23
+ root: require_components_Avatar_utils.buildAvatarRootClasses(size, {
24
+ avatarImageVariantRoot: variant,
25
+ className: require_styles_styler.cx("overflow-hidden", className)
26
+ }),
27
+ contents: require_styles_styler.cx("w-full", "h-full", "shrink-0", "text-center", "inline-flex", "justify-center", "items-center", "object-cover")
28
+ }), [
29
+ className,
30
+ size,
31
+ variant
32
+ ]);
33
+ const inlineStyles = (0, react.useMemo)(() => require_components_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
34
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
35
+ ref,
36
+ className: classNames.root,
37
+ style: inlineStyles.root,
38
+ ...props,
39
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Image.Image, {
40
+ src,
41
+ srcSet,
42
+ alt,
43
+ className: classNames.contents,
44
+ style: inlineStyles.contents,
45
+ ...imageProps,
46
+ ...slotProps?.image
47
+ })
48
+ });
49
+ });
50
+ AvatarImageNoFallback.displayName = "AvatarImageNoFallback";
51
+
52
+ //#endregion
53
+ exports.AvatarImageNoFallback = AvatarImageNoFallback;
@@ -0,0 +1,18 @@
1
+
2
+ import { AvatarImageProps } from "./AvatarImage.types.cjs";
3
+ import * as react from "react";
4
+
5
+ //#region src/components/Avatar/AvatarImageNoFallback.d.ts
6
+ type AvatarImageNoFallbackProps = AvatarImageProps;
7
+ /**
8
+ * **AvatarImageNoFallback Component**
9
+ *
10
+ * Renders an Avatar image without client-side fallback dispatch.
11
+ *
12
+ * @param props - Props for image variant.
13
+ * @returns The AvatarImageNoFallback element.
14
+ * @componentType Server component
15
+ */
16
+ declare const AvatarImageNoFallback: react.ForwardRefExoticComponent<AvatarImageProps & react.RefAttributes<HTMLDivElement>>;
17
+ //#endregion
18
+ export { AvatarImageNoFallback, type AvatarImageNoFallbackProps };
@@ -0,0 +1,18 @@
1
+
2
+ import { AvatarImageProps } from "./AvatarImage.types.js";
3
+ import * as react from "react";
4
+
5
+ //#region src/components/Avatar/AvatarImageNoFallback.d.ts
6
+ type AvatarImageNoFallbackProps = AvatarImageProps;
7
+ /**
8
+ * **AvatarImageNoFallback Component**
9
+ *
10
+ * Renders an Avatar image without client-side fallback dispatch.
11
+ *
12
+ * @param props - Props for image variant.
13
+ * @returns The AvatarImageNoFallback element.
14
+ * @componentType Server component
15
+ */
16
+ declare const AvatarImageNoFallback: react.ForwardRefExoticComponent<AvatarImageProps & react.RefAttributes<HTMLDivElement>>;
17
+ //#endregion
18
+ export { AvatarImageNoFallback, type AvatarImageNoFallbackProps };
@@ -0,0 +1,51 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ import { cx } from "../../styles/styler.js";
3
+ import { Box } from "../Box.js";
4
+ import { DEFAULT_AVATAR_SIZE, DEFAULT_AVATAR_VARIANT, buildAvatarRootClasses, buildInlineSizeStyles } from "./utils.js";
5
+ import { Image } from "../Image.js";
6
+ import { forwardRef, useMemo } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+
9
+ //#region src/components/Avatar/AvatarImageNoFallback.tsx
10
+ /**
11
+ * **AvatarImageNoFallback Component**
12
+ *
13
+ * Renders an Avatar image without client-side fallback dispatch.
14
+ *
15
+ * @param props - Props for image variant.
16
+ * @returns The AvatarImageNoFallback element.
17
+ * @componentType Server component
18
+ */
19
+ const AvatarImageNoFallback = forwardRef(({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARIANT, src, srcSet, customSize, alt, className, imageProps, slotProps, ...props }, ref) => {
20
+ const classNames = useMemo(() => ({
21
+ root: buildAvatarRootClasses(size, {
22
+ avatarImageVariantRoot: variant,
23
+ className: cx("overflow-hidden", className)
24
+ }),
25
+ contents: cx("w-full", "h-full", "shrink-0", "text-center", "inline-flex", "justify-center", "items-center", "object-cover")
26
+ }), [
27
+ className,
28
+ size,
29
+ variant
30
+ ]);
31
+ const inlineStyles = useMemo(() => buildInlineSizeStyles(customSize), [customSize]);
32
+ return /* @__PURE__ */ jsx(Box, {
33
+ ref,
34
+ className: classNames.root,
35
+ style: inlineStyles.root,
36
+ ...props,
37
+ children: /* @__PURE__ */ jsx(Image, {
38
+ src,
39
+ srcSet,
40
+ alt,
41
+ className: classNames.contents,
42
+ style: inlineStyles.contents,
43
+ ...imageProps,
44
+ ...slotProps?.image
45
+ })
46
+ });
47
+ });
48
+ AvatarImageNoFallback.displayName = "AvatarImageNoFallback";
49
+
50
+ //#endregion
51
+ export { AvatarImageNoFallback };
@@ -1,15 +1,14 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
- "use client";
3
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
5
- const require_styles_styler = require('../../../styles/styler.cjs');
6
- const require_components_Text = require('../../Text.cjs');
7
- const require_components_Box = require('../../Box.cjs');
8
- const require_components_client_Avatar_utils = require('./utils.cjs');
3
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
4
+ const require_styles_styler = require('../../styles/styler.cjs');
5
+ const require_components_Box = require('../Box.cjs');
6
+ const require_components_Avatar_utils = require('./utils.cjs');
7
+ const require_components_Text = require('../Text.cjs');
9
8
  let react = require("react");
10
9
  let react_jsx_runtime = require("react/jsx-runtime");
11
10
 
12
- //#region src/components/client/Avatar/AvatarText.tsx
11
+ //#region src/components/Avatar/AvatarText.tsx
13
12
  /**
14
13
  * **AvatarText Component**
15
14
  *
@@ -17,10 +16,11 @@ let react_jsx_runtime = require("react/jsx-runtime");
17
16
  *
18
17
  * @param props - Props for text variant.
19
18
  * @returns The AvatarText element.
19
+ * @componentType Server component
20
20
  */
21
- const AvatarText = (0, react.forwardRef)(({ size = require_components_client_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_client_Avatar_utils.DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }, ref) => {
21
+ const AvatarText = (0, react.forwardRef)(({ size = require_components_Avatar_utils.DEFAULT_AVATAR_SIZE, variant = require_components_Avatar_utils.DEFAULT_AVATAR_VARIANT, name, initials, customSize, abbreviationStrategy, className, slotProps, ...props }, ref) => {
22
22
  const classNames = (0, react.useMemo)(() => ({
23
- root: require_components_client_Avatar_utils.buildAvatarRootClasses(size, {
23
+ root: require_components_Avatar_utils.buildAvatarRootClasses(size, {
24
24
  avatarTextVariantRoot: variant,
25
25
  className: require_styles_styler.cx("overflow-hidden", "truncate", className)
26
26
  }),
@@ -30,7 +30,7 @@ const AvatarText = (0, react.forwardRef)(({ size = require_components_client_Ava
30
30
  size,
31
31
  variant
32
32
  ]);
33
- const inlineStyles = (0, react.useMemo)(() => require_components_client_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
33
+ const inlineStyles = (0, react.useMemo)(() => require_components_Avatar_utils.buildInlineSizeStyles(customSize), [customSize]);
34
34
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
35
35
  ref,
36
36
  className: classNames.root,
@@ -42,7 +42,7 @@ const AvatarText = (0, react.forwardRef)(({ size = require_components_client_Ava
42
42
  className: classNames.text,
43
43
  style: inlineStyles.contents,
44
44
  ...slotProps?.text,
45
- children: initials || require_components_client_Avatar_utils.generateAvatarAbbreviation(name, abbreviationStrategy)
45
+ children: initials || require_components_Avatar_utils.generateAvatarAbbreviation(name, abbreviationStrategy)
46
46
  })
47
47
  });
48
48
  });