@yahoo/uds 3.159.2 → 3.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/automated-config/dist/properties.cjs +1 -1
  2. package/dist/automated-config/dist/properties.js +1 -1
  3. package/dist/components/client/Button/Button.cjs +213 -0
  4. package/dist/components/client/Button/Button.d.cts +50 -0
  5. package/dist/components/client/Button/Button.d.ts +51 -0
  6. package/dist/components/client/Button/Button.js +208 -0
  7. package/dist/components/client/Button/ButtonBase.cjs +120 -0
  8. package/dist/components/client/Button/ButtonBase.d.cts +52 -0
  9. package/dist/components/client/Button/ButtonBase.d.ts +53 -0
  10. package/dist/components/client/Button/ButtonBase.js +116 -0
  11. package/dist/components/client/{buttonConstants.cjs → Button/buttonConstants.cjs} +1 -1
  12. package/dist/components/client/Button/buttonConstants.d.cts +7 -0
  13. package/dist/components/client/Button/buttonConstants.d.ts +8 -0
  14. package/dist/components/client/{buttonConstants.js → Button/buttonConstants.js} +1 -1
  15. package/dist/components/client/Button/index.cjs +10 -0
  16. package/dist/components/client/Button/index.d.cts +4 -0
  17. package/dist/components/client/Button/index.d.ts +5 -0
  18. package/dist/components/client/Button/index.js +5 -0
  19. package/dist/components/client/IconButton/IconButton.cjs +104 -0
  20. package/dist/components/client/IconButton/IconButton.d.cts +17 -0
  21. package/dist/components/client/IconButton/IconButton.d.ts +18 -0
  22. package/dist/components/client/IconButton/IconButton.js +102 -0
  23. package/dist/components/client/IconButton/IconButtonBase.cjs +68 -0
  24. package/dist/components/client/IconButton/IconButtonBase.d.cts +45 -0
  25. package/dist/components/client/IconButton/IconButtonBase.d.ts +46 -0
  26. package/dist/components/client/IconButton/IconButtonBase.js +65 -0
  27. package/dist/components/client/IconButton/index.cjs +8 -0
  28. package/dist/components/client/IconButton/index.d.cts +4 -0
  29. package/dist/components/client/IconButton/index.d.ts +5 -0
  30. package/dist/components/client/IconButton/index.js +5 -0
  31. package/dist/components/client/SpringMotionConfig.cjs +10 -13
  32. package/dist/components/client/SpringMotionConfig.js +10 -13
  33. package/dist/components/client/Switch/Switch.cjs +119 -0
  34. package/dist/components/client/{Switch.d.cts → Switch/Switch.d.cts} +4 -16
  35. package/dist/components/client/{Switch.d.ts → Switch/Switch.d.ts} +4 -16
  36. package/dist/components/client/Switch/Switch.js +115 -0
  37. package/dist/components/client/Switch/SwitchBase.cjs +129 -0
  38. package/dist/components/client/Switch/SwitchBase.d.cts +29 -0
  39. package/dist/components/client/Switch/SwitchBase.d.ts +30 -0
  40. package/dist/components/client/Switch/SwitchBase.js +126 -0
  41. package/dist/components/client/Switch/index.cjs +5 -0
  42. package/dist/components/client/Switch/index.d.cts +3 -0
  43. package/dist/components/client/Switch/index.d.ts +4 -0
  44. package/dist/components/client/Switch/index.js +4 -0
  45. package/dist/components/client/Switch/switchStyles.cjs +17 -0
  46. package/dist/components/client/Switch/switchStyles.d.cts +9 -0
  47. package/dist/components/client/Switch/switchStyles.d.ts +10 -0
  48. package/dist/components/client/Switch/switchStyles.js +16 -0
  49. package/dist/components/client/Switch/types.cjs +2 -0
  50. package/dist/components/client/Switch/types.d.cts +33 -0
  51. package/dist/components/client/Switch/types.d.ts +34 -0
  52. package/dist/components/client/Switch/types.js +2 -0
  53. package/dist/components/client/Toast/Toast.cjs +2 -2
  54. package/dist/components/client/Toast/Toast.d.cts +1 -1
  55. package/dist/components/client/Toast/Toast.d.ts +1 -1
  56. package/dist/components/client/Toast/Toast.js +1 -1
  57. package/dist/components/client/index.cjs +6 -6
  58. package/dist/components/client/index.d.cts +3 -3
  59. package/dist/components/client/index.d.ts +3 -3
  60. package/dist/components/client/index.js +3 -3
  61. package/dist/components/experimental/client/index.cjs +0 -6
  62. package/dist/components/experimental/client/index.d.cts +1 -3
  63. package/dist/components/experimental/client/index.d.ts +1 -3
  64. package/dist/components/experimental/client/index.js +1 -3
  65. package/dist/components/experimental/index.cjs +0 -5
  66. package/dist/components/experimental/index.d.cts +1 -3
  67. package/dist/components/experimental/index.d.ts +1 -3
  68. package/dist/components/experimental/index.js +1 -3
  69. package/dist/components/index.cjs +6 -6
  70. package/dist/components/index.d.cts +3 -3
  71. package/dist/components/index.d.ts +3 -3
  72. package/dist/components/index.js +3 -3
  73. package/dist/css-animation/Button/Button.cjs +85 -0
  74. package/dist/css-animation/Button/Button.d.cts +13 -0
  75. package/dist/css-animation/Button/Button.d.ts +14 -0
  76. package/dist/css-animation/Button/Button.js +82 -0
  77. package/dist/css-animation/Button/index.cjs +5 -0
  78. package/dist/css-animation/Button/index.d.cts +4 -0
  79. package/dist/css-animation/Button/index.d.ts +5 -0
  80. package/dist/css-animation/Button/index.js +4 -0
  81. package/dist/css-animation/IconButton/IconButton.cjs +55 -0
  82. package/dist/css-animation/IconButton/IconButton.d.cts +13 -0
  83. package/dist/css-animation/IconButton/IconButton.d.ts +14 -0
  84. package/dist/css-animation/IconButton/IconButton.js +53 -0
  85. package/dist/css-animation/IconButton/index.cjs +5 -0
  86. package/dist/css-animation/IconButton/index.d.cts +4 -0
  87. package/dist/css-animation/IconButton/index.d.ts +5 -0
  88. package/dist/css-animation/IconButton/index.js +4 -0
  89. package/dist/css-animation/Switch/Switch.cjs +44 -0
  90. package/dist/css-animation/Switch/Switch.d.cts +22 -0
  91. package/dist/css-animation/Switch/Switch.d.ts +23 -0
  92. package/dist/css-animation/Switch/Switch.js +41 -0
  93. package/dist/css-animation/Switch/SwitchStaticHandle.cjs +56 -0
  94. package/dist/css-animation/Switch/SwitchStaticHandle.d.cts +31 -0
  95. package/dist/css-animation/Switch/SwitchStaticHandle.d.ts +32 -0
  96. package/dist/css-animation/Switch/SwitchStaticHandle.js +54 -0
  97. package/dist/css-animation/Switch/index.cjs +5 -0
  98. package/dist/css-animation/Switch/index.d.cts +3 -0
  99. package/dist/css-animation/Switch/index.d.ts +4 -0
  100. package/dist/css-animation/Switch/index.js +4 -0
  101. package/dist/css-animation/index.cjs +9 -0
  102. package/dist/css-animation/index.d.cts +7 -0
  103. package/dist/css-animation/index.d.ts +8 -0
  104. package/dist/css-animation/index.js +6 -0
  105. package/dist/hooks/usePrefersReducedMotion.cjs +24 -0
  106. package/dist/hooks/usePrefersReducedMotion.d.cts +5 -0
  107. package/dist/hooks/usePrefersReducedMotion.d.ts +5 -0
  108. package/dist/hooks/usePrefersReducedMotion.js +22 -0
  109. package/dist/index.cjs +7 -7
  110. package/dist/index.d.cts +3 -3
  111. package/dist/index.d.ts +3 -3
  112. package/dist/index.js +4 -4
  113. package/dist/styles/styler.d.cts +4 -4
  114. package/dist/styles/styler.d.ts +4 -4
  115. package/dist/tailwind-internal/dist/utils/getShadowStyles.d.cts +2 -2
  116. package/dist/tailwind-internal/dist/utils/getShadowStyles.d.ts +2 -2
  117. package/dist/uds/generated/componentData.cjs +308 -317
  118. package/dist/uds/generated/componentData.js +308 -317
  119. package/dist/uds/generated/tailwindPurge.cjs +8 -21
  120. package/dist/uds/generated/tailwindPurge.js +8 -21
  121. package/dist/uds/package.cjs +12 -2
  122. package/dist/uds/package.js +12 -2
  123. package/generated/componentData.json +458 -489
  124. package/generated/tailwindPurge.ts +3 -3
  125. package/package.json +13 -3
  126. package/dist/components/client/Button.cjs +0 -326
  127. package/dist/components/client/Button.d.cts +0 -86
  128. package/dist/components/client/Button.d.ts +0 -87
  129. package/dist/components/client/Button.js +0 -321
  130. package/dist/components/client/IconButton.cjs +0 -161
  131. package/dist/components/client/IconButton.d.cts +0 -46
  132. package/dist/components/client/IconButton.d.ts +0 -47
  133. package/dist/components/client/IconButton.js +0 -159
  134. package/dist/components/client/Switch.cjs +0 -225
  135. package/dist/components/client/Switch.js +0 -222
  136. package/dist/components/client/buttonConstants.d.cts +0 -7
  137. package/dist/components/client/buttonConstants.d.ts +0 -8
  138. package/dist/components/experimental/client/AvoidMotionLibraryProvider.cjs +0 -14
  139. package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.cts +0 -8
  140. package/dist/components/experimental/client/AvoidMotionLibraryProvider.d.ts +0 -9
  141. package/dist/components/experimental/client/AvoidMotionLibraryProvider.js +0 -11
  142. package/dist/components/experimental/client/SwitchV2.cjs +0 -190
  143. package/dist/components/experimental/client/SwitchV2.d.cts +0 -46
  144. package/dist/components/experimental/client/SwitchV2.d.ts +0 -47
  145. package/dist/components/experimental/client/SwitchV2.js +0 -185
@@ -30,14 +30,14 @@ const require_components_client_BottomSheet_BottomSheetHeader = require("./clien
30
30
  const require_components_client_BottomSheet_BottomSheetProvider = require("./client/BottomSheet/BottomSheetProvider.cjs");
31
31
  const require_components_client_BottomSheet_BottomSheetTrigger = require("./client/BottomSheet/BottomSheetTrigger.cjs");
32
32
  const require_components_client_SpringMotionConfig = require("./client/SpringMotionConfig.cjs");
33
- const require_components_client_Button = require("./client/Button.cjs");
33
+ const require_components_client_Button_Button = require("./client/Button/Button.cjs");
34
34
  const require_components_client_Checkbox = require("./client/Checkbox.cjs");
35
35
  const require_components_client_Chip_ChipButton = require("./client/Chip/ChipButton.cjs");
36
36
  const require_components_client_Chip_ChipDismissible = require("./client/Chip/ChipDismissible.cjs");
37
37
  const require_components_client_Chip_ChipLink = require("./client/Chip/ChipLink.cjs");
38
38
  const require_components_client_Chip_ChipToggle = require("./client/Chip/ChipToggle.cjs");
39
39
  const require_components_client_Chip_Chip = require("./client/Chip/Chip.cjs");
40
- const require_components_client_IconButton = require("./client/IconButton.cjs");
40
+ const require_components_client_IconButton_IconButton = require("./client/IconButton/IconButton.cjs");
41
41
  const require_components_client_Input_Input = require("./client/Input/Input.cjs");
42
42
  const require_components_client_Input_InputHelpText = require("./client/Input/InputHelpText.cjs");
43
43
  const require_components_client_Menu_Menu_index = require("./client/Menu/Menu.index.cjs");
@@ -74,7 +74,7 @@ const require_components_client_Select_Select = require("./client/Select/Select.
74
74
  const require_components_client_Select_SelectContent = require("./client/Select/SelectContent.cjs");
75
75
  const require_components_client_Select_SelectDivider = require("./client/Select/SelectDivider.cjs");
76
76
  const require_components_client_Select_SelectItem = require("./client/Select/SelectItem.cjs");
77
- const require_components_client_Switch = require("./client/Switch.cjs");
77
+ const require_components_client_Switch_Switch = require("./client/Switch/Switch.cjs");
78
78
  const require_components_client_Tabs_Tab = require("./client/Tabs/Tab.cjs");
79
79
  const require_components_client_Tabs_TabList = require("./client/Tabs/TabList.cjs");
80
80
  const require_components_client_Tabs_TabPanel = require("./client/Tabs/TabPanel.cjs");
@@ -102,7 +102,7 @@ exports.BottomSheetHeader = require_components_client_BottomSheet_BottomSheetHea
102
102
  exports.BottomSheetProvider = require_components_client_BottomSheet_BottomSheetProvider.BottomSheetProvider;
103
103
  exports.BottomSheetTrigger = require_components_client_BottomSheet_BottomSheetTrigger.BottomSheetTrigger;
104
104
  exports.Box = require_components_Box.Box;
105
- exports.Button = require_components_client_Button.Button;
105
+ exports.Button = require_components_client_Button_Button.Button;
106
106
  exports.Checkbox = require_components_client_Checkbox.Checkbox;
107
107
  exports.Chip = require_components_client_Chip_Chip.Chip;
108
108
  exports.ChipButton = require_components_client_Chip_ChipButton.ChipButton;
@@ -115,7 +115,7 @@ exports.DividerLine = require_components_Divider_DividerLine.DividerLine;
115
115
  exports.FormLabel = require_components_FormLabel.FormLabel;
116
116
  exports.HStack = require_components_HStack.HStack;
117
117
  exports.Icon = require_components_Icon.Icon;
118
- exports.IconButton = require_components_client_IconButton.IconButton;
118
+ exports.IconButton = require_components_client_IconButton_IconButton.IconButton;
119
119
  exports.Image = require_components_Image.Image;
120
120
  exports.Input = require_components_client_Input_Input.Input;
121
121
  exports.InputHelpText = require_components_client_Input_InputHelpText.InputHelpText;
@@ -155,7 +155,7 @@ exports.SelectContent = require_components_client_Select_SelectContent.SelectCon
155
155
  exports.SelectDivider = require_components_client_Select_SelectDivider.SelectDivider;
156
156
  exports.SelectItem = require_components_client_Select_SelectItem.SelectItem;
157
157
  exports.SpringMotionConfig = require_components_client_SpringMotionConfig.SpringMotionConfig;
158
- exports.Switch = require_components_client_Switch.Switch;
158
+ exports.Switch = require_components_client_Switch_Switch.Switch;
159
159
  exports.Tab = require_components_client_Tabs_Tab.Tab;
160
160
  exports.TabList = require_components_client_Tabs_TabList.TabList;
161
161
  exports.TabPanel = require_components_client_Tabs_TabPanel.TabPanel;
@@ -29,14 +29,14 @@ import { BottomSheetDismiss, BottomSheetDismissProps } from "./client/BottomShee
29
29
  import { BottomSheetHeader, BottomSheetHeaderProps } from "./client/BottomSheet/BottomSheetHeader.cjs";
30
30
  import { BottomSheetProvider, BottomSheetProviderProps } from "./client/BottomSheet/BottomSheetProvider.cjs";
31
31
  import { BottomSheetTrigger, BottomSheetTriggerProps } from "./client/BottomSheet/BottomSheetTrigger.cjs";
32
- import { Button, ButtonProps } from "./client/Button.cjs";
32
+ import { Button, ButtonProps } from "./client/Button/Button.cjs";
33
33
  import { Checkbox, CheckboxProps } from "./client/Checkbox.cjs";
34
34
  import { Chip, ChipProps } from "./client/Chip/Chip.cjs";
35
35
  import { ChipButton, ChipButtonProps } from "./client/Chip/ChipButton.cjs";
36
36
  import { ChipDismissible, ChipDismissibleProps } from "./client/Chip/ChipDismissible.cjs";
37
37
  import { ChipLink, ChipLinkProps } from "./client/Chip/ChipLink.cjs";
38
38
  import { ChipToggle, ChipToggleProps } from "./client/Chip/ChipToggle.cjs";
39
- import { IconButton, IconButtonProps } from "./client/IconButton.cjs";
39
+ import { IconButton, IconButtonProps } from "./client/IconButton/IconButton.cjs";
40
40
  import { Input, InputProps } from "./client/Input/Input.cjs";
41
41
  import { InputHelpText, InputHelpTextProps } from "./client/Input/InputHelpText.cjs";
42
42
  import { MenuContentProps } from "./client/Menu/Menu.Content.cjs";
@@ -77,7 +77,7 @@ import { Select, SelectProps } from "./client/Select/Select.cjs";
77
77
  import { SelectContent, SelectContentProps } from "./client/Select/SelectContent.cjs";
78
78
  import { SelectDivider, SelectDividerProps } from "./client/Select/SelectDivider.cjs";
79
79
  import { SelectItem, SelectItemProps } from "./client/Select/SelectItem.cjs";
80
- import { Switch, SwitchProps } from "./client/Switch.cjs";
80
+ import { Switch, SwitchProps } from "./client/Switch/Switch.cjs";
81
81
  import { Tab, TabProps } from "./client/Tabs/Tab.cjs";
82
82
  import { TabList, TabListProps } from "./client/Tabs/TabList.cjs";
83
83
  import { TabPanel, TabPanelProps } from "./client/Tabs/TabPanel.cjs";
@@ -29,14 +29,14 @@ import { BottomSheetDismiss, BottomSheetDismissProps } from "./client/BottomShee
29
29
  import { BottomSheetHeader, BottomSheetHeaderProps } from "./client/BottomSheet/BottomSheetHeader.js";
30
30
  import { BottomSheetProvider, BottomSheetProviderProps } from "./client/BottomSheet/BottomSheetProvider.js";
31
31
  import { BottomSheetTrigger, BottomSheetTriggerProps } from "./client/BottomSheet/BottomSheetTrigger.js";
32
- import { Button, ButtonProps } from "./client/Button.js";
32
+ import { Button, ButtonProps } from "./client/Button/Button.js";
33
33
  import { Checkbox, CheckboxProps } from "./client/Checkbox.js";
34
34
  import { Chip, ChipProps } from "./client/Chip/Chip.js";
35
35
  import { ChipButton, ChipButtonProps } from "./client/Chip/ChipButton.js";
36
36
  import { ChipDismissible, ChipDismissibleProps } from "./client/Chip/ChipDismissible.js";
37
37
  import { ChipLink, ChipLinkProps } from "./client/Chip/ChipLink.js";
38
38
  import { ChipToggle, ChipToggleProps } from "./client/Chip/ChipToggle.js";
39
- import { IconButton, IconButtonProps } from "./client/IconButton.js";
39
+ import { IconButton, IconButtonProps } from "./client/IconButton/IconButton.js";
40
40
  import { Input, InputProps } from "./client/Input/Input.js";
41
41
  import { InputHelpText, InputHelpTextProps } from "./client/Input/InputHelpText.js";
42
42
  import { MenuContentProps } from "./client/Menu/Menu.Content.js";
@@ -77,7 +77,7 @@ import { Select, SelectProps } from "./client/Select/Select.js";
77
77
  import { SelectContent, SelectContentProps } from "./client/Select/SelectContent.js";
78
78
  import { SelectDivider, SelectDividerProps } from "./client/Select/SelectDivider.js";
79
79
  import { SelectItem, SelectItemProps } from "./client/Select/SelectItem.js";
80
- import { Switch, SwitchProps } from "./client/Switch.js";
80
+ import { Switch, SwitchProps } from "./client/Switch/Switch.js";
81
81
  import { Tab, TabProps } from "./client/Tabs/Tab.js";
82
82
  import { TabList, TabListProps } from "./client/Tabs/TabList.js";
83
83
  import { TabPanel, TabPanelProps } from "./client/Tabs/TabPanel.js";
@@ -29,14 +29,14 @@ import { BottomSheetHeader } from "./client/BottomSheet/BottomSheetHeader.js";
29
29
  import { BottomSheetProvider } from "./client/BottomSheet/BottomSheetProvider.js";
30
30
  import { BottomSheetTrigger } from "./client/BottomSheet/BottomSheetTrigger.js";
31
31
  import { SpringMotionConfig } from "./client/SpringMotionConfig.js";
32
- import { Button } from "./client/Button.js";
32
+ import { Button } from "./client/Button/Button.js";
33
33
  import { Checkbox } from "./client/Checkbox.js";
34
34
  import { ChipButton } from "./client/Chip/ChipButton.js";
35
35
  import { ChipDismissible } from "./client/Chip/ChipDismissible.js";
36
36
  import { ChipLink } from "./client/Chip/ChipLink.js";
37
37
  import { ChipToggle } from "./client/Chip/ChipToggle.js";
38
38
  import { Chip } from "./client/Chip/Chip.js";
39
- import { IconButton } from "./client/IconButton.js";
39
+ import { IconButton } from "./client/IconButton/IconButton.js";
40
40
  import { Input } from "./client/Input/Input.js";
41
41
  import { InputHelpText } from "./client/Input/InputHelpText.js";
42
42
  import { Menu_index_exports } from "./client/Menu/Menu.index.js";
@@ -73,7 +73,7 @@ import { Select } from "./client/Select/Select.js";
73
73
  import { SelectContent } from "./client/Select/SelectContent.js";
74
74
  import { SelectDivider } from "./client/Select/SelectDivider.js";
75
75
  import { SelectItem } from "./client/Select/SelectItem.js";
76
- import { Switch } from "./client/Switch.js";
76
+ import { Switch } from "./client/Switch/Switch.js";
77
77
  import { Tab } from "./client/Tabs/Tab.js";
78
78
  import { TabList } from "./client/Tabs/TabList.js";
79
79
  import { TabPanel } from "./client/Tabs/TabPanel.js";
@@ -0,0 +1,85 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
5
+ const require_components_Icon = require("../../components/Icon.cjs");
6
+ const require_components_IconSlot = require("../../components/IconSlot.cjs");
7
+ const require_components_client_Button_ButtonBase = require("../../components/client/Button/ButtonBase.cjs");
8
+ require("../../components/client/Button/buttonConstants.cjs");
9
+ let _yahoo_uds_icons = require("@yahoo/uds-icons");
10
+ let react = require("react");
11
+ react = require_runtime.__toESM(react);
12
+ let react_jsx_runtime = require("react/jsx-runtime");
13
+ //#region src/css-animation/Button/Button.tsx
14
+ /**
15
+ * CSS-animation Button variant. This component intentionally never imports motion.
16
+ *
17
+ * @componentType Client component
18
+ */
19
+ const Button = (0, react.forwardRef)(function Button(props, forwardedRef) {
20
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Button_ButtonBase.ButtonBase, {
21
+ ...props,
22
+ ref: forwardedRef,
23
+ renderStartContent: ({ iconVariant, loading, startIcon, iconContainerClassName, loadingIconClassName, iconClassName, startIconClassName, startIconSlotProps }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
24
+ className: iconContainerClassName,
25
+ children: [loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
26
+ className: loadingIconClassName,
27
+ size: "sm",
28
+ name: _yahoo_uds_icons.Progress,
29
+ variant: iconVariant,
30
+ color: "current"
31
+ }) }), startIcon && !loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_IconSlot.IconSlot, {
32
+ className: [iconClassName, startIconClassName].filter(Boolean).join(" "),
33
+ icon: startIcon,
34
+ iconProps: {
35
+ size: "sm",
36
+ variant: iconVariant,
37
+ color: "current"
38
+ },
39
+ ...startIconSlotProps
40
+ }) })]
41
+ }),
42
+ renderEndContent: ({ endIcon, iconVariant, iconContainerClassName, iconClassName, endIconClassName, endIconSlotProps }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
43
+ className: iconContainerClassName,
44
+ children: endIcon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_IconSlot.IconSlot, {
45
+ className: [iconClassName, endIconClassName].filter(Boolean).join(" "),
46
+ icon: endIcon,
47
+ iconProps: {
48
+ size: "sm",
49
+ variant: iconVariant,
50
+ color: "current"
51
+ },
52
+ ...endIconSlotProps
53
+ }) })
54
+ }),
55
+ renderRoot: ({ asChild, Slot, children, buttonRef, type, rootClassName, rest, contentClassName, contentSlotProps, startContent, endContent }) => {
56
+ if (asChild && (0, react.isValidElement)(children)) {
57
+ const childProps = children.props;
58
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Slot, {
59
+ type,
60
+ className: rootClassName,
61
+ ...rest,
62
+ children: require_components_client_Button_ButtonBase.renderButtonChildren(children, childProps, startContent, contentClassName, contentSlotProps, endContent)
63
+ });
64
+ }
65
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
66
+ ref: buttonRef,
67
+ type,
68
+ className: rootClassName,
69
+ ...rest,
70
+ children: [
71
+ startContent,
72
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
73
+ className: contentClassName,
74
+ ...contentSlotProps,
75
+ children
76
+ }),
77
+ endContent
78
+ ]
79
+ });
80
+ }
81
+ });
82
+ });
83
+ Button.displayName = "Button";
84
+ //#endregion
85
+ exports.Button = Button;
@@ -0,0 +1,13 @@
1
+
2
+ import { ButtonProps } from "../../components/client/Button/Button.cjs";
3
+ import React from "react";
4
+
5
+ //#region src/css-animation/Button/Button.d.ts
6
+ /**
7
+ * CSS-animation Button variant. This component intentionally never imports motion.
8
+ *
9
+ * @componentType Client component
10
+ */
11
+ declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ //#endregion
13
+ export { Button, type ButtonProps };
@@ -0,0 +1,14 @@
1
+
2
+ "use client";
3
+ import { ButtonProps } from "../../components/client/Button/Button.js";
4
+ import React from "react";
5
+
6
+ //#region src/css-animation/Button/Button.d.ts
7
+ /**
8
+ * CSS-animation Button variant. This component intentionally never imports motion.
9
+ *
10
+ * @componentType Client component
11
+ */
12
+ declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
13
+ //#endregion
14
+ export { Button, type ButtonProps };
@@ -0,0 +1,82 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ import { Icon } from "../../components/Icon.js";
4
+ import { IconSlot } from "../../components/IconSlot.js";
5
+ import { ButtonBase, renderButtonChildren } from "../../components/client/Button/ButtonBase.js";
6
+ import "../../components/client/Button/buttonConstants.js";
7
+ import { Progress } from "@yahoo/uds-icons";
8
+ import { forwardRef, isValidElement } from "react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ //#region src/css-animation/Button/Button.tsx
11
+ /**
12
+ * CSS-animation Button variant. This component intentionally never imports motion.
13
+ *
14
+ * @componentType Client component
15
+ */
16
+ const Button = forwardRef(function Button(props, forwardedRef) {
17
+ return /* @__PURE__ */ jsx(ButtonBase, {
18
+ ...props,
19
+ ref: forwardedRef,
20
+ renderStartContent: ({ iconVariant, loading, startIcon, iconContainerClassName, loadingIconClassName, iconClassName, startIconClassName, startIconSlotProps }) => /* @__PURE__ */ jsxs("span", {
21
+ className: iconContainerClassName,
22
+ children: [loading && /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(Icon, {
23
+ className: loadingIconClassName,
24
+ size: "sm",
25
+ name: Progress,
26
+ variant: iconVariant,
27
+ color: "current"
28
+ }) }), startIcon && !loading && /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconSlot, {
29
+ className: [iconClassName, startIconClassName].filter(Boolean).join(" "),
30
+ icon: startIcon,
31
+ iconProps: {
32
+ size: "sm",
33
+ variant: iconVariant,
34
+ color: "current"
35
+ },
36
+ ...startIconSlotProps
37
+ }) })]
38
+ }),
39
+ renderEndContent: ({ endIcon, iconVariant, iconContainerClassName, iconClassName, endIconClassName, endIconSlotProps }) => /* @__PURE__ */ jsx("span", {
40
+ className: iconContainerClassName,
41
+ children: endIcon && /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconSlot, {
42
+ className: [iconClassName, endIconClassName].filter(Boolean).join(" "),
43
+ icon: endIcon,
44
+ iconProps: {
45
+ size: "sm",
46
+ variant: iconVariant,
47
+ color: "current"
48
+ },
49
+ ...endIconSlotProps
50
+ }) })
51
+ }),
52
+ renderRoot: ({ asChild, Slot, children, buttonRef, type, rootClassName, rest, contentClassName, contentSlotProps, startContent, endContent }) => {
53
+ if (asChild && isValidElement(children)) {
54
+ const childProps = children.props;
55
+ return /* @__PURE__ */ jsx(Slot, {
56
+ type,
57
+ className: rootClassName,
58
+ ...rest,
59
+ children: renderButtonChildren(children, childProps, startContent, contentClassName, contentSlotProps, endContent)
60
+ });
61
+ }
62
+ return /* @__PURE__ */ jsxs("button", {
63
+ ref: buttonRef,
64
+ type,
65
+ className: rootClassName,
66
+ ...rest,
67
+ children: [
68
+ startContent,
69
+ /* @__PURE__ */ jsx("span", {
70
+ className: contentClassName,
71
+ ...contentSlotProps,
72
+ children
73
+ }),
74
+ endContent
75
+ ]
76
+ });
77
+ }
78
+ });
79
+ });
80
+ Button.displayName = "Button";
81
+ //#endregion
82
+ export { Button };
@@ -0,0 +1,5 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const require_css_animation_Button_Button = require("./Button.cjs");
5
+ exports.Button = require_css_animation_Button_Button.Button;
@@ -0,0 +1,4 @@
1
+
2
+ import { ButtonProps } from "../../components/client/Button/Button.cjs";
3
+ import { Button } from "./Button.cjs";
4
+ export { Button, type ButtonProps };
@@ -0,0 +1,5 @@
1
+
2
+ "use client";
3
+ import { ButtonProps } from "../../components/client/Button/Button.js";
4
+ import { Button } from "./Button.js";
5
+ export { Button, type ButtonProps };
@@ -0,0 +1,4 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ import { Button } from "./Button.js";
4
+ export { Button };
@@ -0,0 +1,55 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ require("../../_virtual/_rolldown/runtime.cjs");
5
+ const require_components_Icon = require("../../components/Icon.cjs");
6
+ require("../../components/client/Button/buttonConstants.cjs");
7
+ const require_components_client_IconButton_IconButtonBase = require("../../components/client/IconButton/IconButtonBase.cjs");
8
+ let _yahoo_uds_icons = require("@yahoo/uds-icons");
9
+ let react = require("react");
10
+ let react_jsx_runtime = require("react/jsx-runtime");
11
+ //#region src/css-animation/IconButton/IconButton.tsx
12
+ /**
13
+ * CSS-animation IconButton variant. This component intentionally never imports motion.
14
+ *
15
+ * @componentType Client component
16
+ */
17
+ const IconButton = (0, react.forwardRef)(function IconButton(props, forwardedRef) {
18
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_IconButton_IconButtonBase.IconButtonBase, {
19
+ ...props,
20
+ ref: forwardedRef,
21
+ renderIconContent: ({ asChild, loading, name, iconVariant, children, iconClassName, loadingIconClassName, iconSlotClassName, iconSlotProps }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
22
+ size: "sm",
23
+ name: _yahoo_uds_icons.Progress,
24
+ variant: iconVariant,
25
+ color: "current",
26
+ className: loadingIconClassName
27
+ }) }), name && !loading && (!asChild && children || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Icon.Icon, {
28
+ size: "sm",
29
+ name,
30
+ variant: iconVariant,
31
+ color: "current",
32
+ className: [iconClassName, iconSlotClassName].filter(Boolean).join(" "),
33
+ ...iconSlotProps
34
+ }))] }),
35
+ renderRoot: ({ asChild, Slot, children, buttonRef, type, htmlName, rootClassName, rest, iconContent }) => {
36
+ if (asChild && (0, react.isValidElement)(children)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Slot, {
37
+ type,
38
+ className: rootClassName,
39
+ ...rest,
40
+ children: require_components_client_IconButton_IconButtonBase.renderIconButtonAsChild(children, iconContent)
41
+ });
42
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
43
+ ref: buttonRef,
44
+ type,
45
+ className: rootClassName,
46
+ name: htmlName,
47
+ ...rest,
48
+ children: iconContent
49
+ });
50
+ }
51
+ });
52
+ });
53
+ IconButton.displayName = "IconButton";
54
+ //#endregion
55
+ exports.IconButton = IconButton;
@@ -0,0 +1,13 @@
1
+
2
+ import { IconButtonProps } from "../../components/client/IconButton/IconButton.cjs";
3
+ import * as _$react from "react";
4
+
5
+ //#region src/css-animation/IconButton/IconButton.d.ts
6
+ /**
7
+ * CSS-animation IconButton variant. This component intentionally never imports motion.
8
+ *
9
+ * @componentType Client component
10
+ */
11
+ declare const IconButton: _$react.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
12
+ //#endregion
13
+ export { IconButton, type IconButtonProps };
@@ -0,0 +1,14 @@
1
+
2
+ "use client";
3
+ import { IconButtonProps } from "../../components/client/IconButton/IconButton.js";
4
+ import * as _$react from "react";
5
+
6
+ //#region src/css-animation/IconButton/IconButton.d.ts
7
+ /**
8
+ * CSS-animation IconButton variant. This component intentionally never imports motion.
9
+ *
10
+ * @componentType Client component
11
+ */
12
+ declare const IconButton: _$react.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
13
+ //#endregion
14
+ export { IconButton, type IconButtonProps };
@@ -0,0 +1,53 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ import { Icon } from "../../components/Icon.js";
4
+ import "../../components/client/Button/buttonConstants.js";
5
+ import { IconButtonBase, renderIconButtonAsChild } from "../../components/client/IconButton/IconButtonBase.js";
6
+ import { Progress } from "@yahoo/uds-icons";
7
+ import { forwardRef, isValidElement } from "react";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
+ //#region src/css-animation/IconButton/IconButton.tsx
10
+ /**
11
+ * CSS-animation IconButton variant. This component intentionally never imports motion.
12
+ *
13
+ * @componentType Client component
14
+ */
15
+ const IconButton = forwardRef(function IconButton(props, forwardedRef) {
16
+ return /* @__PURE__ */ jsx(IconButtonBase, {
17
+ ...props,
18
+ ref: forwardedRef,
19
+ renderIconContent: ({ asChild, loading, name, iconVariant, children, iconClassName, loadingIconClassName, iconSlotClassName, iconSlotProps }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [loading && /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(Icon, {
20
+ size: "sm",
21
+ name: Progress,
22
+ variant: iconVariant,
23
+ color: "current",
24
+ className: loadingIconClassName
25
+ }) }), name && !loading && (!asChild && children || /* @__PURE__ */ jsx(Icon, {
26
+ size: "sm",
27
+ name,
28
+ variant: iconVariant,
29
+ color: "current",
30
+ className: [iconClassName, iconSlotClassName].filter(Boolean).join(" "),
31
+ ...iconSlotProps
32
+ }))] }),
33
+ renderRoot: ({ asChild, Slot, children, buttonRef, type, htmlName, rootClassName, rest, iconContent }) => {
34
+ if (asChild && isValidElement(children)) return /* @__PURE__ */ jsx(Slot, {
35
+ type,
36
+ className: rootClassName,
37
+ ...rest,
38
+ children: renderIconButtonAsChild(children, iconContent)
39
+ });
40
+ return /* @__PURE__ */ jsx("button", {
41
+ ref: buttonRef,
42
+ type,
43
+ className: rootClassName,
44
+ name: htmlName,
45
+ ...rest,
46
+ children: iconContent
47
+ });
48
+ }
49
+ });
50
+ });
51
+ IconButton.displayName = "IconButton";
52
+ //#endregion
53
+ export { IconButton };
@@ -0,0 +1,5 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const require_css_animation_IconButton_IconButton = require("./IconButton.cjs");
5
+ exports.IconButton = require_css_animation_IconButton_IconButton.IconButton;
@@ -0,0 +1,4 @@
1
+
2
+ import { IconButtonProps } from "../../components/client/IconButton/IconButton.cjs";
3
+ import { IconButton } from "./IconButton.cjs";
4
+ export { IconButton, type IconButtonProps };
@@ -0,0 +1,5 @@
1
+
2
+ "use client";
3
+ import { IconButtonProps } from "../../components/client/IconButton/IconButton.js";
4
+ import { IconButton } from "./IconButton.js";
5
+ export { IconButton, type IconButtonProps };
@@ -0,0 +1,4 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ import { IconButton } from "./IconButton.js";
4
+ export { IconButton };
@@ -0,0 +1,44 @@
1
+ /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
5
+ const require_components_client_Switch_SwitchBase = require("../../components/client/Switch/SwitchBase.cjs");
6
+ const require_css_animation_Switch_SwitchStaticHandle = require("./SwitchStaticHandle.cjs");
7
+ let react = require("react");
8
+ react = require_runtime.__toESM(react);
9
+ let react_jsx_runtime = require("react/jsx-runtime");
10
+ //#region src/css-animation/Switch/Switch.tsx
11
+ /**
12
+ * CSS-animation Switch variant. This component intentionally never imports motion.
13
+ *
14
+ * @componentType Client component
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * 'use client';
19
+ * import { Switch } from '@yahoo/uds/css-animation';
20
+ *
21
+ * <Switch label="Name" required />
22
+ * ```
23
+ */
24
+ const Switch = (0, react.forwardRef)(function Switch(props, parentRef) {
25
+ const cssAnimationDuration = "duration-120";
26
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_Switch_SwitchBase.SwitchBase, {
27
+ ...props,
28
+ ref: parentRef,
29
+ cssAnimationDuration,
30
+ renderHandle: ({ size, isOn, isOnTranslateClass, disabled, onIcon, offIcon, cssAnimationDuration, handleSlotProps }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_css_animation_Switch_SwitchStaticHandle.SwitchStaticHandle, {
31
+ size,
32
+ isOn,
33
+ isOnTranslateClass,
34
+ cssAnimationDuration,
35
+ disabled,
36
+ onIcon,
37
+ offIcon,
38
+ handleSlotProps
39
+ })
40
+ });
41
+ });
42
+ Switch.displayName = "Switch";
43
+ //#endregion
44
+ exports.Switch = Switch;
@@ -0,0 +1,22 @@
1
+
2
+ import { SwitchProps as SwitchProps$1 } from "../../components/client/Switch/types.cjs";
3
+ import React from "react";
4
+
5
+ //#region src/css-animation/Switch/Switch.d.ts
6
+ type SwitchProps = SwitchProps$1;
7
+ /**
8
+ * CSS-animation Switch variant. This component intentionally never imports motion.
9
+ *
10
+ * @componentType Client component
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * 'use client';
15
+ * import { Switch } from '@yahoo/uds/css-animation';
16
+ *
17
+ * <Switch label="Name" required />
18
+ * ```
19
+ */
20
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps$1 & React.RefAttributes<HTMLInputElement>>;
21
+ //#endregion
22
+ export { Switch, type SwitchProps };
@@ -0,0 +1,23 @@
1
+
2
+ "use client";
3
+ import { SwitchProps as SwitchProps$1 } from "../../components/client/Switch/types.js";
4
+ import React from "react";
5
+
6
+ //#region src/css-animation/Switch/Switch.d.ts
7
+ type SwitchProps = SwitchProps$1;
8
+ /**
9
+ * CSS-animation Switch variant. This component intentionally never imports motion.
10
+ *
11
+ * @componentType Client component
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * 'use client';
16
+ * import { Switch } from '@yahoo/uds/css-animation';
17
+ *
18
+ * <Switch label="Name" required />
19
+ * ```
20
+ */
21
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps$1 & React.RefAttributes<HTMLInputElement>>;
22
+ //#endregion
23
+ export { Switch, type SwitchProps };