@hopper-ui/components 1.3.4 → 1.3.6

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 (212) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/Avatar/src/AnonymousAvatar.css +10 -10
  3. package/dist/Avatar/src/AnonymousAvatar.d.ts +8 -2
  4. package/dist/Avatar/src/AnonymousAvatar.js +4 -2
  5. package/dist/Avatar/src/Avatar.css +37 -37
  6. package/dist/Avatar/src/Avatar.d.ts +8 -2
  7. package/dist/Avatar/src/Avatar.js +5 -3
  8. package/dist/Avatar/src/DeletedAvatar.css +10 -10
  9. package/dist/Avatar/src/DeletedAvatar.d.ts +8 -2
  10. package/dist/Avatar/src/DeletedAvatar.js +4 -2
  11. package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
  12. package/dist/Avatar/src/RichIconAvatarImage.d.ts +9 -2
  13. package/dist/Avatar/src/RichIconAvatarImage.js +3 -1
  14. package/dist/Avatar/src/index.css +37 -37
  15. package/dist/Avatar/src/index.js +7 -5
  16. package/dist/Badge/src/Badge.css +21 -21
  17. package/dist/Badge/src/Badge.d.ts +24 -2
  18. package/dist/Badge/src/Badge.js +4 -2
  19. package/dist/Badge/src/FloatingBadge.css +10 -10
  20. package/dist/Badge/src/FloatingBadge.d.ts +2 -2
  21. package/dist/Badge/src/FloatingBadge.js +1 -1
  22. package/dist/Badge/src/index.css +31 -31
  23. package/dist/Badge/src/index.js +5 -3
  24. package/dist/Divider/src/Divider.css +2 -2
  25. package/dist/Divider/src/Divider.js +1 -1
  26. package/dist/Divider/src/index.css +2 -2
  27. package/dist/Divider/src/index.js +1 -1
  28. package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
  29. package/dist/ErrorMessage/src/ErrorMessage.js +4 -3
  30. package/dist/ErrorMessage/src/index.css +11 -11
  31. package/dist/ErrorMessage/src/index.js +4 -3
  32. package/dist/Form/src/Form.css +1069 -650
  33. package/dist/Form/src/Form.js +57 -55
  34. package/dist/Form/src/index.css +1069 -650
  35. package/dist/Form/src/index.js +57 -55
  36. package/dist/Header/src/Header.d.ts +2 -2
  37. package/dist/HelperMessage/src/HelperMessage.css +11 -11
  38. package/dist/HelperMessage/src/HelperMessage.js +2 -2
  39. package/dist/HelperMessage/src/index.css +11 -11
  40. package/dist/HelperMessage/src/index.js +2 -2
  41. package/dist/IconList/src/IconList.css +1 -1
  42. package/dist/IconList/src/IconList.d.ts +2 -2
  43. package/dist/IconList/src/IconList.js +1 -1
  44. package/dist/IconList/src/index.css +1 -1
  45. package/dist/IconList/src/index.js +1 -1
  46. package/dist/Link/src/Link.css +31 -31
  47. package/dist/Link/src/Link.js +3 -3
  48. package/dist/Link/src/index.css +31 -31
  49. package/dist/Link/src/index.js +3 -3
  50. package/dist/ListBox/src/ListBox.css +613 -222
  51. package/dist/ListBox/src/ListBox.js +9 -16
  52. package/dist/ListBox/src/ListBoxItem.css +598 -207
  53. package/dist/ListBox/src/ListBoxItem.js +7 -15
  54. package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
  55. package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +2 -2
  56. package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
  57. package/dist/ListBox/src/index.css +613 -222
  58. package/dist/ListBox/src/index.js +9 -16
  59. package/dist/Select/src/Select.css +1069 -650
  60. package/dist/Select/src/Select.js +57 -55
  61. package/dist/Select/src/SelectValue.css +60 -60
  62. package/dist/Select/src/SelectValue.js +7 -7
  63. package/dist/Select/src/index.css +1069 -650
  64. package/dist/Select/src/index.js +57 -55
  65. package/dist/Spinner/src/Spinner.css +19 -19
  66. package/dist/Spinner/src/Spinner.d.ts +2 -2
  67. package/dist/Spinner/src/Spinner.js +3 -3
  68. package/dist/Spinner/src/index.css +19 -19
  69. package/dist/Spinner/src/index.js +3 -3
  70. package/dist/buttons/src/Button.css +94 -94
  71. package/dist/buttons/src/Button.js +5 -5
  72. package/dist/buttons/src/ButtonGroup.css +11 -11
  73. package/dist/buttons/src/ButtonGroup.js +1 -1
  74. package/dist/buttons/src/ClearButton.css +71 -71
  75. package/dist/buttons/src/ClearButton.js +2 -2
  76. package/dist/buttons/src/EmbeddedButton.css +71 -71
  77. package/dist/buttons/src/EmbeddedButton.js +1 -1
  78. package/dist/buttons/src/index.css +176 -176
  79. package/dist/buttons/src/index.js +8 -8
  80. package/dist/checkbox/src/Checkbox.css +28 -31
  81. package/dist/checkbox/src/Checkbox.d.ts +1 -3
  82. package/dist/checkbox/src/Checkbox.js +3 -3
  83. package/dist/checkbox/src/CheckboxContext.d.ts +0 -2
  84. package/dist/checkbox/src/CheckboxField.css +15 -15
  85. package/dist/checkbox/src/CheckboxField.d.ts +8 -2
  86. package/dist/checkbox/src/CheckboxField.js +3 -1
  87. package/dist/checkbox/src/CheckboxGroup.css +256 -60
  88. package/dist/checkbox/src/CheckboxGroup.js +3 -3
  89. package/dist/checkbox/src/CheckboxList.d.ts +2 -2
  90. package/dist/checkbox/src/DecorativeCheckbox.css +287 -0
  91. package/dist/checkbox/src/DecorativeCheckbox.d.ts +18 -0
  92. package/dist/checkbox/src/DecorativeCheckbox.js +12 -0
  93. package/dist/checkbox/src/index.css +256 -60
  94. package/dist/checkbox/src/index.d.ts +1 -0
  95. package/dist/checkbox/src/index.js +8 -6
  96. package/dist/{chunk-K7RMLEFM.js → chunk-23GXMA5L.js} +3 -3
  97. package/dist/{chunk-C4X5PI6E.js → chunk-32QBNIEM.js} +1 -1
  98. package/dist/{chunk-M5XA2PEG.js → chunk-3K2JRC5Y.js} +1 -1
  99. package/dist/{chunk-7CT2IBNY.js → chunk-46GSYJ4O.js} +5 -5
  100. package/dist/{chunk-UWR4QQYY.js → chunk-4RSRAAPW.js} +15 -13
  101. package/dist/{chunk-3HABKGTW.js → chunk-4U7DCAUG.js} +23 -15
  102. package/dist/{chunk-YYU3DZW3.js → chunk-56UB7UOG.js} +1 -1
  103. package/dist/{chunk-BYEORLMA.js → chunk-5RHMPFIJ.js} +4 -4
  104. package/dist/chunk-6W5XVFIS.js +127 -0
  105. package/dist/{chunk-QYKLMSBR.js → chunk-6XHZ6XI2.js} +5 -12
  106. package/dist/chunk-7L5HTRIH.js +130 -0
  107. package/dist/{chunk-43LD4A2H.js → chunk-7MB63YNF.js} +24 -16
  108. package/dist/{chunk-OZQT5F42.js → chunk-AAV7H2PI.js} +4 -4
  109. package/dist/{chunk-RMTA4M7X.js → chunk-C2IFIGEU.js} +4 -10
  110. package/dist/{chunk-CJU6B2CE.js → chunk-CGL75FSH.js} +17 -28
  111. package/dist/{chunk-LLQHZY4A.js → chunk-CVYYW7J4.js} +2 -2
  112. package/dist/{chunk-LUE3SWJ2.js → chunk-D7KHPU3U.js} +1 -1
  113. package/dist/{chunk-C77ZSLQG.js → chunk-DZZ4WWRN.js} +2 -2
  114. package/dist/{chunk-MDUON6B4.js → chunk-EUXXCRBZ.js} +1 -1
  115. package/dist/{chunk-NJD5XPQF.js → chunk-FE6YBJMN.js} +4 -4
  116. package/dist/{chunk-IZJI5MOD.js → chunk-FU2IY2JF.js} +25 -18
  117. package/dist/{chunk-MB52JXEM.js → chunk-G6W6FNEX.js} +3 -3
  118. package/dist/{chunk-KPHI7JZW.js → chunk-HXMMNMFV.js} +4 -4
  119. package/dist/{chunk-2L4JHF4B.js → chunk-ICGQUOUM.js} +1 -1
  120. package/dist/{chunk-746OLQYL.js → chunk-KIZSSIMT.js} +3 -3
  121. package/dist/{chunk-GLSPSFBC.js → chunk-LDWNFZXA.js} +1 -1
  122. package/dist/{chunk-V7RSOERT.js → chunk-LEPWFS5L.js} +4 -10
  123. package/dist/{chunk-NLLH6YL3.js → chunk-MYAC6TLH.js} +1 -1
  124. package/dist/{chunk-Q2VOGHVA.js → chunk-NKZRZZMH.js} +1 -1
  125. package/dist/{chunk-7HQIQPIT.js → chunk-NQYHB7S3.js} +5 -5
  126. package/dist/{chunk-24TFXRVQ.js → chunk-NUB4BYRF.js} +22 -12
  127. package/dist/{chunk-TXW35G4W.js → chunk-NZKS5OKD.js} +22 -13
  128. package/dist/{chunk-LEG7NAKL.js → chunk-ODXA2UZN.js} +28 -15
  129. package/dist/{chunk-XTQ3H3SE.js → chunk-OGIBVQFW.js} +22 -14
  130. package/dist/{chunk-L7K2RI3N.js → chunk-OMF56Z2Y.js} +2 -2
  131. package/dist/{chunk-F2UGOH5F.js → chunk-PNWMICY7.js} +1 -1
  132. package/dist/{chunk-OZRPGA34.js → chunk-QLR77TGC.js} +1 -1
  133. package/dist/{chunk-AGLZTGGC.js → chunk-R4LJYEOV.js} +5 -5
  134. package/dist/{chunk-BITEHGS4.js → chunk-RDPNKPZ3.js} +23 -11
  135. package/dist/{chunk-5BCWNYYC.js → chunk-SSCVAJ2H.js} +4 -4
  136. package/dist/{chunk-37572JO3.js → chunk-UJVTDWNG.js} +11 -11
  137. package/dist/{chunk-36KWPNRH.js → chunk-YZ676IC2.js} +5 -5
  138. package/dist/{chunk-ZGJENXEU.js → chunk-ZSOGDKV5.js} +1 -1
  139. package/dist/index.css +1069 -650
  140. package/dist/index.d.ts +3 -1
  141. package/dist/index.js +57 -55
  142. package/dist/inputs/src/InputGroup.css +191 -191
  143. package/dist/inputs/src/InputGroup.js +1 -1
  144. package/dist/inputs/src/NumberField.css +231 -231
  145. package/dist/inputs/src/NumberField.d.ts +0 -4
  146. package/dist/inputs/src/NumberField.js +7 -7
  147. package/dist/inputs/src/PasswordField.css +219 -219
  148. package/dist/inputs/src/PasswordField.js +9 -9
  149. package/dist/inputs/src/SearchField.css +225 -225
  150. package/dist/inputs/src/SearchField.js +9 -9
  151. package/dist/inputs/src/TextArea.css +225 -225
  152. package/dist/inputs/src/TextArea.js +7 -7
  153. package/dist/inputs/src/TextField.css +223 -223
  154. package/dist/inputs/src/TextField.js +9 -9
  155. package/dist/inputs/src/index.css +271 -271
  156. package/dist/inputs/src/index.js +14 -14
  157. package/dist/layout/src/Content.d.ts +2 -2
  158. package/dist/layout/src/Footer.d.ts +2 -2
  159. package/dist/overlays/Popover/src/Popover.css +1069 -650
  160. package/dist/overlays/Popover/src/Popover.d.ts +2 -2
  161. package/dist/overlays/Popover/src/Popover.js +57 -55
  162. package/dist/overlays/Popover/src/index.css +1069 -650
  163. package/dist/overlays/Popover/src/index.js +57 -55
  164. package/dist/radio/src/DecorativeRadio.css +286 -0
  165. package/dist/radio/src/DecorativeRadio.d.ts +18 -0
  166. package/dist/radio/src/DecorativeRadio.js +12 -0
  167. package/dist/radio/src/Radio.css +28 -31
  168. package/dist/radio/src/Radio.d.ts +1 -3
  169. package/dist/radio/src/Radio.js +3 -3
  170. package/dist/radio/src/RadioContext.d.ts +0 -2
  171. package/dist/radio/src/RadioField.css +15 -15
  172. package/dist/radio/src/RadioField.d.ts +8 -2
  173. package/dist/radio/src/RadioField.js +4 -2
  174. package/dist/radio/src/RadioGroup.css +255 -60
  175. package/dist/radio/src/RadioGroup.js +4 -4
  176. package/dist/radio/src/RadioList.d.ts +2 -2
  177. package/dist/radio/src/index.css +255 -60
  178. package/dist/radio/src/index.d.ts +1 -0
  179. package/dist/radio/src/index.js +10 -8
  180. package/dist/switch/src/Switch.css +25 -25
  181. package/dist/switch/src/Switch.js +3 -3
  182. package/dist/switch/src/SwitchField.css +15 -15
  183. package/dist/switch/src/SwitchField.d.ts +8 -2
  184. package/dist/switch/src/SwitchField.js +3 -1
  185. package/dist/switch/src/index.css +31 -31
  186. package/dist/switch/src/index.js +5 -4
  187. package/dist/tag/src/Tag.css +323 -323
  188. package/dist/tag/src/Tag.js +6 -6
  189. package/dist/tag/src/TagGroup.css +22 -22
  190. package/dist/tag/src/TagGroup.js +2 -2
  191. package/dist/tag/src/index.css +336 -336
  192. package/dist/tag/src/index.js +9 -9
  193. package/dist/typography/Heading/src/Heading.css +9 -9
  194. package/dist/typography/Heading/src/Heading.js +1 -1
  195. package/dist/typography/Heading/src/index.css +9 -9
  196. package/dist/typography/Heading/src/index.js +1 -1
  197. package/dist/typography/Label/src/Label.css +3 -3
  198. package/dist/typography/Label/src/Label.js +1 -1
  199. package/dist/typography/Label/src/index.css +3 -3
  200. package/dist/typography/Label/src/index.js +1 -1
  201. package/dist/typography/OverlineText/src/OverlineText.css +6 -6
  202. package/dist/typography/OverlineText/src/OverlineText.js +1 -1
  203. package/dist/typography/OverlineText/src/index.css +6 -6
  204. package/dist/typography/OverlineText/src/index.js +1 -1
  205. package/dist/typography/Text/src/Text.css +9 -9
  206. package/dist/typography/Text/src/Text.js +1 -1
  207. package/dist/typography/Text/src/index.css +9 -9
  208. package/dist/typography/Text/src/index.js +1 -1
  209. package/dist/utils/src/index.d.ts +1 -1
  210. package/dist/utils/src/index.js +2 -2
  211. package/dist/utils/src/types.d.ts +30 -6
  212. package/package.json +4 -4
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
7
7
  import { jsx } from 'react/jsx-runtime';
8
8
 
9
9
  // css-module:./Divider.module.css#css-module
10
- var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___usqfr", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___CiCMz" };
10
+ var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___-S8TZ", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___oAdE6" };
11
11
  var GlobalDividerCssSelector = "hop-Divider";
12
12
  function Divider(props, ref) {
13
13
  [props, ref] = useContextProps(props, ref, DividerContext);
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
10
10
  import { jsx } from 'react/jsx-runtime';
11
11
 
12
12
  // css-module:./ButtonGroup.module.css#css-module
13
- var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___kSLW4", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___U50CB", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___ciNua", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___Y4s0m", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___4hxxw", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___7aU6K", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___Vjmju", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___rp20-" };
13
+ var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___JA4jE", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___To8qm", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___EvODj", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___4FWyO", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___aMRwQ", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___OmblZ", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___IMwdh", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___wY5d-" };
14
14
  var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
15
15
  function ButtonGroup(props, ref) {
16
16
  var _a, _b, _c, _d, _e;
@@ -1,15 +1,15 @@
1
1
  import { TagContext } from './chunk-EWMWQ2MC.js';
2
- import { _ClearButton } from './chunk-OZRPGA34.js';
3
- import { _Spinner } from './chunk-LLQHZY4A.js';
2
+ import { _ClearButton } from './chunk-QLR77TGC.js';
3
+ import { _Spinner } from './chunk-CVYYW7J4.js';
4
4
  import { useLocalizedString } from './chunk-TFVDF4YH.js';
5
5
  import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
6
- import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
7
6
  import { IconListContext } from './chunk-DHVVYSLB.js';
8
7
  import { BadgeContext } from './chunk-CQDLZ42T.js';
9
- import { _Text } from './chunk-NLLH6YL3.js';
8
+ import { _Text } from './chunk-MYAC6TLH.js';
10
9
  import { TextContext } from './chunk-X6SER3TZ.js';
11
10
  import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
12
11
  import { AvatarContext } from './chunk-AES7QBQE.js';
12
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
13
13
  import { SlotProvider } from './chunk-M36KANKC.js';
14
14
  import { cssModule } from './chunk-KVDXQMWI.js';
15
15
  import { IconContext } from '@hopper-ui/icons';
@@ -19,7 +19,7 @@ import { useContextProps, composeRenderProps, Tag as Tag$1 } from 'react-aria-co
19
19
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
20
20
 
21
21
  // css-module:./Tag.module.css#css-module
22
- var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___FA-hF", "hop-Tag--sm": "Tag-module__hop-Tag--sm___wdoiY", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___-nFZL", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___bjUFw", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___J84Ob", "hop-Tag--md": "Tag-module__hop-Tag--md___-JJUY", "hop-Tag--lg": "Tag-module__hop-Tag--lg___FOQpI", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___W20ol", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___82nmZ", "hop-Tag--progress": "Tag-module__hop-Tag--progress___YRBfG", "hop-Tag--positive": "Tag-module__hop-Tag--positive___o5Li-", "hop-Tag--caution": "Tag-module__hop-Tag--caution___iRVUR", "hop-Tag--negative": "Tag-module__hop-Tag--negative___-qFKe", "hop-Tag--option1": "Tag-module__hop-Tag--option1___fVXwS", "hop-Tag--option2": "Tag-module__hop-Tag--option2___k7stP", "hop-Tag--option3": "Tag-module__hop-Tag--option3___em9d9", "hop-Tag--option4": "Tag-module__hop-Tag--option4___B0JOH", "hop-Tag--option5": "Tag-module__hop-Tag--option5___yWfHM", "hop-Tag--option6": "Tag-module__hop-Tag--option6___sY9ih", "hop-Tag__icon": "Tag-module__hop-Tag__icon___ewSNE", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___-PpIn", "hop-Tag__text": "Tag-module__hop-Tag__text___k7Otw", "hop-Tag__badge": "Tag-module__hop-Tag__badge___jgjVw" };
22
+ var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___wrsI2", "hop-Tag--sm": "Tag-module__hop-Tag--sm___EMjuF", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___glszt", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___uRNq3", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___UuAeT", "hop-Tag--md": "Tag-module__hop-Tag--md___HsCiJ", "hop-Tag--lg": "Tag-module__hop-Tag--lg___Vxt4s", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___J3qNi", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___apt4G", "hop-Tag--progress": "Tag-module__hop-Tag--progress___5cBAK", "hop-Tag--positive": "Tag-module__hop-Tag--positive___gutPg", "hop-Tag--caution": "Tag-module__hop-Tag--caution___6VCAy", "hop-Tag--negative": "Tag-module__hop-Tag--negative___c-4ot", "hop-Tag--option1": "Tag-module__hop-Tag--option1___fl99g", "hop-Tag--option2": "Tag-module__hop-Tag--option2___pv4-t", "hop-Tag--option3": "Tag-module__hop-Tag--option3___ST2tu", "hop-Tag--option4": "Tag-module__hop-Tag--option4___92Otc", "hop-Tag--option5": "Tag-module__hop-Tag--option5___o-9Gw", "hop-Tag--option6": "Tag-module__hop-Tag--option6___mjNo5", "hop-Tag__icon": "Tag-module__hop-Tag__icon___DKazH", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___O8SgH", "hop-Tag__text": "Tag-module__hop-Tag__text___OPnEh", "hop-Tag__badge": "Tag-module__hop-Tag__badge___dseHK" };
23
23
  var GlobalTagCssSelector = "hop-Tag";
24
24
  var TagToTextSizeAdapter = {
25
25
  sm: "xs",
@@ -1,16 +1,16 @@
1
- import { useRenderProps } from './chunk-NH3IVMXB.js';
2
1
  import { ErrorMessageContext } from './chunk-FAE27DLF.js';
3
- import { _Text } from './chunk-NLLH6YL3.js';
2
+ import { _Text } from './chunk-MYAC6TLH.js';
3
+ import { useRenderProps } from './chunk-NH3IVMXB.js';
4
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
4
5
  import { cssModule } from './chunk-KVDXQMWI.js';
5
6
  import { WarningIcon } from '@hopper-ui/icons';
6
7
  import { useStyledSystem } from '@hopper-ui/styled-system';
7
- import clsx from 'clsx';
8
8
  import { forwardRef, useContext } from 'react';
9
- import { FieldErrorContext, useContextProps } from 'react-aria-components';
9
+ import { FieldErrorContext, useContextProps, composeRenderProps } from 'react-aria-components';
10
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
11
 
12
12
  // css-module:./ErrorMessage.module.css#css-module
13
- var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___yc-uD", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___ntyEf" };
13
+ var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___QVgo9", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___kJa-q" };
14
14
  var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
15
15
  function ErrorMessage(props, ref) {
16
16
  const validation = useContext(FieldErrorContext);
@@ -25,8 +25,8 @@ var ErrorMessageInner = forwardRef((props, ref) => {
25
25
  const validation = useContext(FieldErrorContext);
26
26
  [props, ref] = useContextProps(props, ref, ErrorMessageContext);
27
27
  const { stylingProps, ...ownProps } = useStyledSystem(props);
28
- const { className, children, hideIcon = false, style, slot = "errorMessage", ...otherProps } = ownProps;
29
- const classNames = clsx(
28
+ const { className, children, hideIcon = false, style: styleProp, slot = "errorMessage", ...otherProps } = ownProps;
29
+ const classNames = composeClassnameRenderProps(
30
30
  GlobalErrorMessageCssSelector,
31
31
  cssModule(
32
32
  ErrorMessage_module_default,
@@ -35,13 +35,16 @@ var ErrorMessageInner = forwardRef((props, ref) => {
35
35
  stylingProps.className,
36
36
  className
37
37
  );
38
- const mergedStyles = {
39
- ...stylingProps.style,
40
- ...style
41
- };
38
+ const style = composeRenderProps(styleProp, (prev) => {
39
+ return {
40
+ ...stylingProps.style,
41
+ ...prev
42
+ };
43
+ });
42
44
  const warningIcon = !hideIcon && /* @__PURE__ */ jsx(WarningIcon, { size: "sm", className: ErrorMessage_module_default["hop-ErrorMessage__icon"] });
43
45
  const renderProps = useRenderProps({
44
46
  className: classNames,
47
+ style,
45
48
  children: children ? /* @__PURE__ */ jsxs(Fragment, { children: [
46
49
  warningIcon,
47
50
  " ",
@@ -60,8 +63,7 @@ var ErrorMessageInner = forwardRef((props, ref) => {
60
63
  ...otherProps,
61
64
  ...renderProps,
62
65
  slot,
63
- ref,
64
- style: mergedStyles
66
+ ref
65
67
  }
66
68
  );
67
69
  });
@@ -1,18 +1,19 @@
1
- import { RadioContext } from './chunk-FU5CCPLP.js';
2
1
  import { RadioFieldContext } from './chunk-DGLAGYBD.js';
2
+ import { RadioContext } from './chunk-FU5CCPLP.js';
3
3
  import { TextContext } from './chunk-X6SER3TZ.js';
4
4
  import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
5
+ import { useRenderProps } from './chunk-NH3IVMXB.js';
6
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
5
7
  import { SlotProvider } from './chunk-M36KANKC.js';
6
8
  import { cssModule } from './chunk-KVDXQMWI.js';
7
9
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
8
- import clsx from 'clsx';
9
10
  import { forwardRef } from 'react';
10
- import { useId } from 'react-aria';
11
- import { useContextProps } from 'react-aria-components';
11
+ import { useId, mergeProps } from 'react-aria';
12
+ import { useContextProps, composeRenderProps } from 'react-aria-components';
12
13
  import { jsx } from 'react/jsx-runtime';
13
14
 
14
15
  // css-module:./RadioField.module.css#css-module
15
- var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___ZeVcr", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___-ToHL", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___PiqvX", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___fzcWP", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___JPWxW" };
16
+ var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___-vwTZ", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___7Rhoi", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___VY2am", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___E7zdg", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___B-ZON" };
16
17
  var GlobalRadioFieldCssSelector = "hop-RadioField";
17
18
  var RadioToDescriptionSizeAdapter = {
18
19
  sm: "xs",
@@ -24,7 +25,6 @@ function RadioField(props, ref) {
24
25
  const { stylingProps, ...ownProps } = useStyledSystem(props);
25
26
  const {
26
27
  className,
27
- children,
28
28
  isDisabled,
29
29
  size: sizeProp = "md",
30
30
  style,
@@ -32,7 +32,7 @@ function RadioField(props, ref) {
32
32
  ...otherProps
33
33
  } = ownProps;
34
34
  const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
35
- const classNames = clsx(
35
+ const classNames = composeClassnameRenderProps(
36
36
  className,
37
37
  GlobalRadioFieldCssSelector,
38
38
  cssModule(
@@ -42,10 +42,20 @@ function RadioField(props, ref) {
42
42
  ),
43
43
  stylingProps.className
44
44
  );
45
- const mergedStyles = {
46
- ...stylingProps.style,
47
- ...style
48
- };
45
+ const mergedStyles = composeRenderProps(style, (prev) => {
46
+ return {
47
+ ...stylingProps.style,
48
+ ...prev
49
+ };
50
+ });
51
+ const renderProps = useRenderProps({
52
+ ...props,
53
+ className: classNames,
54
+ style: mergedStyles,
55
+ values: {
56
+ isDisabled: isDisabled || false
57
+ }
58
+ });
49
59
  const descriptionId = useId();
50
60
  return /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
51
61
  SlotProvider,
@@ -66,13 +76,11 @@ function RadioField(props, ref) {
66
76
  children: /* @__PURE__ */ jsx(
67
77
  "div",
68
78
  {
69
- ...otherProps,
79
+ ...mergeProps(otherProps, renderProps),
70
80
  ref,
71
- className: classNames,
72
- style: mergedStyles,
73
81
  slot: slot != null ? slot : void 0,
74
82
  "data-disabled": isDisabled,
75
- children
83
+ children: renderProps.children
76
84
  }
77
85
  )
78
86
  }
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
10
10
  import { jsx } from 'react/jsx-runtime';
11
11
 
12
12
  // css-module:./FloatingBadge.module.css#css-module
13
- var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-FloatingBadge___NzvAY", "hop-FloatingBadge__badge": "FloatingBadge-module__hop-FloatingBadge__badge___SFYzq" };
13
+ var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-FloatingBadge___g-Sla", "hop-FloatingBadge__badge": "FloatingBadge-module__hop-FloatingBadge__badge___Vl-eq" };
14
14
  var GlobalFloatingBadgeCssSelector = "hop-FloatingBadge";
15
15
  function FloatingBadge(props, ref) {
16
16
  [props, ref] = useContextProps(props, ref, FloatingBadgeContext);
@@ -1,12 +1,12 @@
1
- import { _InputGroup } from './chunk-ZGJENXEU.js';
2
1
  import { PasswordFieldContext } from './chunk-QW45G6K4.js';
3
- import { _EmbeddedButton } from './chunk-Q2VOGHVA.js';
2
+ import { _InputGroup } from './chunk-ZSOGDKV5.js';
3
+ import { _EmbeddedButton } from './chunk-NKZRZZMH.js';
4
4
  import { LabelContext } from './chunk-QCA3ZR56.js';
5
5
  import { useLocalizedString } from './chunk-TFVDF4YH.js';
6
- import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
7
6
  import { HelperMessageContext } from './chunk-HZKFQ33E.js';
8
7
  import { ErrorMessageContext } from './chunk-FAE27DLF.js';
9
8
  import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
9
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
10
10
  import { SlotProvider } from './chunk-M36KANKC.js';
11
11
  import { cssModule } from './chunk-KVDXQMWI.js';
12
12
  import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, Input, TextField } from 'react-ari
18
18
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
19
 
20
20
  // css-module:./PasswordField.module.css#css-module
21
- var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___3teuP", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___8P8wR", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___Akvsj", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___-kQUA", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___SDr1s", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___9U4uf" };
21
+ var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___AhAOi", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___8FlTs", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___X7SFD", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___Dh8A7", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___lBDed", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___T4nZO" };
22
22
  var GlobalPasswordFieldCssSelector = "hop-PasswordField";
23
23
  function PasswordField(props, ref) {
24
24
  var _a;
@@ -0,0 +1,127 @@
1
+ import { RadioContext } from './chunk-FU5CCPLP.js';
2
+ import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
3
+ import { IconListContext } from './chunk-DHVVYSLB.js';
4
+ import { _Text } from './chunk-MYAC6TLH.js';
5
+ import { TextContext } from './chunk-X6SER3TZ.js';
6
+ import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
7
+ import { useRenderProps } from './chunk-NH3IVMXB.js';
8
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
9
+ import { SlotProvider } from './chunk-M36KANKC.js';
10
+ import { cssModule } from './chunk-KVDXQMWI.js';
11
+ import { BulletIcon, IconContext } from '@hopper-ui/icons';
12
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
13
+ import { forwardRef } from 'react';
14
+ import { mergeProps } from 'react-aria';
15
+ import { useContextProps, composeRenderProps } from 'react-aria-components';
16
+ import { jsx, jsxs } from 'react/jsx-runtime';
17
+
18
+ // css-module:./DecorativeRadio.module.css#css-module
19
+ var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-DecorativeRadio___oRMfZ Radio-module__hop-Radio___3GVjM", "hop-DecorativeRadio--sm": "DecorativeRadio-module__hop-DecorativeRadio--sm___AQchJ Radio-module__hop-Radio--sm___qIsKs", "hop-DecorativeRadio--md": "DecorativeRadio-module__hop-DecorativeRadio--md___DMoEl Radio-module__hop-Radio--md___Eszb9", "hop-DecorativeRadio__icon": "DecorativeRadio-module__hop-DecorativeRadio__icon___VUXMo Radio-module__hop-Radio__icon___ChXsk", "hop-DecorativeRadio__icon-list": "DecorativeRadio-module__hop-DecorativeRadio__icon-list___uTmFK Radio-module__hop-Radio__icon___ChXsk", "hop-DecorativeRadio__box": "DecorativeRadio-module__hop-DecorativeRadio__box___F6dfP Radio-module__hop-Radio__box___wgOZS", "hop-DecorativeRadio__bullet": "DecorativeRadio-module__hop-DecorativeRadio__bullet___-Mc90 Radio-module__hop-Radio__bullet___f0qvY", "hop-DecorativeRadio__text": "DecorativeRadio-module__hop-DecorativeRadio__text___-241H Radio-module__hop-Radio__text___2EXJv" };
20
+ var GlobalDecorativeRadioCssSelector = "hop-DecorativeRadio";
21
+ function DecorativeRadio(props, ref) {
22
+ var _a;
23
+ [props, ref] = useContextProps(props, ref, RadioContext);
24
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
25
+ const {
26
+ className,
27
+ children: childrenProp,
28
+ size: sizeProp = "md",
29
+ slot,
30
+ style: styleProp,
31
+ isSelected,
32
+ isPressed,
33
+ isHovered,
34
+ isFocused,
35
+ isFocusVisible,
36
+ isDisabled,
37
+ isReadOnly,
38
+ isInvalid,
39
+ isRequired,
40
+ ...otherProps
41
+ } = ownProps;
42
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
43
+ const children = composeRenderProps(childrenProp, (prev) => {
44
+ if (prev && isTextOnlyChildren(prev)) {
45
+ return /* @__PURE__ */ jsx(_Text, { children: prev });
46
+ }
47
+ return prev;
48
+ });
49
+ const classNames = composeClassnameRenderProps(
50
+ className,
51
+ GlobalDecorativeRadioCssSelector,
52
+ cssModule(
53
+ DecorativeRadio_module_default,
54
+ "hop-DecorativeRadio",
55
+ size
56
+ ),
57
+ stylingProps.className
58
+ );
59
+ const style = composeRenderProps(styleProp, (prev) => {
60
+ return {
61
+ ...stylingProps.style,
62
+ ...prev
63
+ };
64
+ });
65
+ const renderProps = useRenderProps({
66
+ ...props,
67
+ className: classNames,
68
+ style,
69
+ children,
70
+ values: {
71
+ isSelected: isSelected || false,
72
+ isPressed: isPressed || false,
73
+ isHovered: isHovered || false,
74
+ isFocused: isFocused || false,
75
+ isFocusVisible: isFocusVisible || false,
76
+ isDisabled: isDisabled || false,
77
+ isReadOnly: isReadOnly || false,
78
+ isInvalid: isInvalid || false,
79
+ isRequired: isRequired || false
80
+ }
81
+ });
82
+ const radioIconClassName = DecorativeRadio_module_default["hop-DecorativeRadio__bullet"];
83
+ return /* @__PURE__ */ jsxs(
84
+ "div",
85
+ {
86
+ ...mergeProps(otherProps, renderProps),
87
+ ref,
88
+ slot: slot || void 0,
89
+ "data-selected": isSelected || void 0,
90
+ "data-pressed": isPressed || void 0,
91
+ "data-hovered": isHovered || void 0,
92
+ "data-focused": isFocused || void 0,
93
+ "data-focus-visible": isFocusVisible || void 0,
94
+ "data-disabled": isDisabled || void 0,
95
+ "data-readonly": isReadOnly || void 0,
96
+ "data-invalid": isInvalid || void 0,
97
+ "data-required": isRequired || void 0,
98
+ children: [
99
+ /* @__PURE__ */ jsx("div", { className: DecorativeRadio_module_default["hop-DecorativeRadio__box"], children: /* @__PURE__ */ jsx(BulletIcon, { size, className: radioIconClassName }) }),
100
+ /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
101
+ SlotProvider,
102
+ {
103
+ values: [
104
+ [TextContext, {
105
+ className: DecorativeRadio_module_default["hop-DecorativeRadio__text"],
106
+ size
107
+ }],
108
+ [IconListContext, {
109
+ className: DecorativeRadio_module_default["hop-DecorativeRadio__icon-list"],
110
+ size
111
+ }],
112
+ [IconContext, {
113
+ className: DecorativeRadio_module_default["hop-DecorativeRadio__icon"],
114
+ size
115
+ }]
116
+ ],
117
+ children: renderProps.children
118
+ }
119
+ ) })
120
+ ]
121
+ }
122
+ );
123
+ }
124
+ var _DecorativeRadio = forwardRef(DecorativeRadio);
125
+ _DecorativeRadio.displayName = "DecorativeRadio";
126
+
127
+ export { GlobalDecorativeRadioCssSelector, _DecorativeRadio };
@@ -1,14 +1,14 @@
1
1
  import { useScale } from './chunk-MTDFS4CZ.js';
2
2
  import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
3
- import { _InputGroup } from './chunk-ZGJENXEU.js';
3
+ import { _InputGroup } from './chunk-ZSOGDKV5.js';
4
4
  import { LabelContext } from './chunk-QCA3ZR56.js';
5
5
  import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
6
- import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
7
6
  import { HelperMessageContext } from './chunk-HZKFQ33E.js';
8
7
  import { ErrorMessageContext } from './chunk-FAE27DLF.js';
9
- import { _Text } from './chunk-NLLH6YL3.js';
8
+ import { _Text } from './chunk-MYAC6TLH.js';
10
9
  import { TextContext } from './chunk-X6SER3TZ.js';
11
10
  import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
11
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
12
12
  import { SlotProvider } from './chunk-M36KANKC.js';
13
13
  import { cssModule } from './chunk-KVDXQMWI.js';
14
14
  import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
@@ -21,7 +21,7 @@ import { useContextProps, composeRenderProps, Input, NumberField as NumberField$
21
21
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
22
22
 
23
23
  // css-module:./NumberField.module.css#css-module
24
- var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___2gj-0", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___mQ4HT", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___-GMYk", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___ni5A0", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___FCb7f", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___sYywY", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___dARU3", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___vp10M", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___7J3-z", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___i05Fb", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___Ekehn", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___XqA19", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___1RtBB", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___W14tH" };
24
+ var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___ppFcj", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___XW6-Q", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___Ft7B3", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___jiGt-", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___eQqx3", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___PltmY", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___QeaaM", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___rj45x", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___LS5I7", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___L4-US", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___0V9pg", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___KcgBz", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___4aMo-", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___PXfly" };
25
25
  var GlobalNumberFieldCssSelector = "hop-NumberField";
26
26
  var StepperButton = ({ direction }) => {
27
27
  const scale = useScale();
@@ -64,7 +64,6 @@ function NumberField(props, ref) {
64
64
  style: styleProp,
65
65
  size,
66
66
  prefix,
67
- placeholder,
68
67
  onChange: onChangeProp,
69
68
  children,
70
69
  defaultValue,
@@ -122,13 +121,7 @@ function NumberField(props, ref) {
122
121
  inputType: "number",
123
122
  children: [
124
123
  prefixMarkup,
125
- /* @__PURE__ */ jsx(
126
- Input,
127
- {
128
- ref: inputRef,
129
- placeholder
130
- }
131
- ),
124
+ /* @__PURE__ */ jsx(Input, { ref: inputRef }),
132
125
  /* @__PURE__ */ jsx(StepperButton, { direction: "increment" }),
133
126
  /* @__PURE__ */ jsx(StepperButton, { direction: "decrement" })
134
127
  ]
@@ -0,0 +1,130 @@
1
+ import { CheckboxContext } from './chunk-2EAZPH3M.js';
2
+ import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
3
+ import { IconListContext } from './chunk-DHVVYSLB.js';
4
+ import { _Text } from './chunk-MYAC6TLH.js';
5
+ import { TextContext } from './chunk-X6SER3TZ.js';
6
+ import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
7
+ import { useRenderProps } from './chunk-NH3IVMXB.js';
8
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
9
+ import { SlotProvider } from './chunk-M36KANKC.js';
10
+ import { cssModule } from './chunk-KVDXQMWI.js';
11
+ import { IconContext, MinusIcon, CheckmarkIcon } from '@hopper-ui/icons';
12
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
13
+ import { forwardRef } from 'react';
14
+ import { mergeProps } from 'react-aria';
15
+ import { useContextProps, composeRenderProps } from 'react-aria-components';
16
+ import { jsx, jsxs } from 'react/jsx-runtime';
17
+
18
+ // css-module:./DecorativeCheckbox.module.css#css-module
19
+ var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-DecorativeCheckbox___q0SHV Checkbox-module__hop-Checkbox___wCCR3", "hop-DecorativeCheckbox--sm": "DecorativeCheckbox-module__hop-DecorativeCheckbox--sm___e-SXm Checkbox-module__hop-Checkbox--sm___d1GQZ", "hop-DecorativeCheckbox--md": "DecorativeCheckbox-module__hop-DecorativeCheckbox--md___BazG1 Checkbox-module__hop-Checkbox--md___FjgKo", "hop-DecorativeCheckbox__icon": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon___j0mxa Checkbox-module__hop-Checkbox__icon___Yv3pS", "hop-DecorativeCheckbox__icon-list": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon-list___p5qQy Checkbox-module__hop-Checkbox__icon___Yv3pS", "hop-DecorativeCheckbox__box": "DecorativeCheckbox-module__hop-DecorativeCheckbox__box___Lq5Di Checkbox-module__hop-Checkbox__box___PoPW7", "hop-DecorativeCheckbox__check": "DecorativeCheckbox-module__hop-DecorativeCheckbox__check___JwJtd Checkbox-module__hop-Checkbox__check___YUwMq", "hop-DecorativeCheckbox__text": "DecorativeCheckbox-module__hop-DecorativeCheckbox__text___N0rdG Checkbox-module__hop-Checkbox__text___FLKuq" };
20
+ var GlobalDecorativeCheckboxCssSelector = "hop-DecorativeCheckbox";
21
+ function DecorativeCheckbox(props, ref) {
22
+ var _a;
23
+ [props, ref] = useContextProps(props, ref, CheckboxContext);
24
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
25
+ const {
26
+ className,
27
+ children: childrenProp,
28
+ size: sizeProp = "md",
29
+ slot,
30
+ style: styleProp,
31
+ isSelected,
32
+ isPressed,
33
+ isHovered,
34
+ isFocused,
35
+ isFocusVisible,
36
+ isDisabled,
37
+ isReadOnly,
38
+ isInvalid,
39
+ isRequired,
40
+ isIndeterminate,
41
+ ...otherProps
42
+ } = ownProps;
43
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
44
+ const children = composeRenderProps(childrenProp, (prev) => {
45
+ if (prev && isTextOnlyChildren(prev)) {
46
+ return /* @__PURE__ */ jsx(_Text, { children: prev });
47
+ }
48
+ return prev;
49
+ });
50
+ const classNames = composeClassnameRenderProps(
51
+ className,
52
+ GlobalDecorativeCheckboxCssSelector,
53
+ cssModule(
54
+ DecorativeCheckbox_module_default,
55
+ "hop-DecorativeCheckbox",
56
+ size
57
+ ),
58
+ stylingProps.className
59
+ );
60
+ const style = composeRenderProps(styleProp, (prev) => {
61
+ return {
62
+ ...stylingProps.style,
63
+ ...prev
64
+ };
65
+ });
66
+ const renderProps = useRenderProps({
67
+ ...props,
68
+ className: classNames,
69
+ style,
70
+ children,
71
+ values: {
72
+ isSelected: isSelected || false,
73
+ isPressed: isPressed || false,
74
+ isHovered: isHovered || false,
75
+ isFocused: isFocused || false,
76
+ isFocusVisible: isFocusVisible || false,
77
+ isDisabled: isDisabled || false,
78
+ isReadOnly: isReadOnly || false,
79
+ isInvalid: isInvalid || false,
80
+ isRequired: isRequired || false,
81
+ isIndeterminate: isIndeterminate || false
82
+ }
83
+ });
84
+ const checkboxIconClassName = DecorativeCheckbox_module_default["hop-DecorativeCheckbox__check"];
85
+ const icon = isIndeterminate ? /* @__PURE__ */ jsx(MinusIcon, { size: "sm", className: checkboxIconClassName }) : /* @__PURE__ */ jsx(CheckmarkIcon, { size: "sm", className: checkboxIconClassName });
86
+ return /* @__PURE__ */ jsxs(
87
+ "div",
88
+ {
89
+ ...mergeProps(otherProps, renderProps),
90
+ ref,
91
+ slot: slot || void 0,
92
+ "data-selected": isSelected || void 0,
93
+ "data-pressed": isPressed || void 0,
94
+ "data-hovered": isHovered || void 0,
95
+ "data-focused": isFocused || void 0,
96
+ "data-focus-visible": isFocusVisible || void 0,
97
+ "data-disabled": isDisabled || void 0,
98
+ "data-readonly": isReadOnly || void 0,
99
+ "data-invalid": isInvalid || void 0,
100
+ "data-required": isRequired || void 0,
101
+ children: [
102
+ /* @__PURE__ */ jsx("div", { className: DecorativeCheckbox_module_default["hop-DecorativeCheckbox__box"], children: icon }),
103
+ /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
104
+ SlotProvider,
105
+ {
106
+ values: [
107
+ [TextContext, {
108
+ className: DecorativeCheckbox_module_default["hop-DecorativeCheckbox__text"],
109
+ size
110
+ }],
111
+ [IconListContext, {
112
+ className: DecorativeCheckbox_module_default["hop-DecorativeCheckbox__icon-list"],
113
+ size
114
+ }],
115
+ [IconContext, {
116
+ className: DecorativeCheckbox_module_default["hop-DecorativeCheckbox__icon"],
117
+ size
118
+ }]
119
+ ],
120
+ children: renderProps.children
121
+ }
122
+ ) })
123
+ ]
124
+ }
125
+ );
126
+ }
127
+ var _DecorativeCheckbox = forwardRef(DecorativeCheckbox);
128
+ _DecorativeCheckbox.displayName = "DecorativeCheckbox";
129
+
130
+ export { GlobalDecorativeCheckboxCssSelector, _DecorativeCheckbox };
@@ -1,17 +1,18 @@
1
1
  import { SwitchContext } from './chunk-YHBJAXUY.js';
2
2
  import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
3
3
  import { TextContext } from './chunk-X6SER3TZ.js';
4
+ import { useRenderProps } from './chunk-NH3IVMXB.js';
5
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
4
6
  import { SlotProvider } from './chunk-M36KANKC.js';
5
7
  import { cssModule } from './chunk-KVDXQMWI.js';
6
8
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
7
- import clsx from 'clsx';
8
9
  import { forwardRef } from 'react';
9
- import { useId } from 'react-aria';
10
- import { useContextProps } from 'react-aria-components';
10
+ import { useId, mergeProps } from 'react-aria';
11
+ import { useContextProps, composeRenderProps } from 'react-aria-components';
11
12
  import { jsx } from 'react/jsx-runtime';
12
13
 
13
14
  // css-module:./SwitchField.module.css#css-module
14
- var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___zcNpb", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___hlt9X", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___yH2uc", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___seT7R", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___oSHMP" };
15
+ var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___ZBWRj", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___3YQnj", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___JFKBn", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___GLk3C", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___1job6" };
15
16
  var GlobalSwitchFieldCssSelector = "hop-SwitchField";
16
17
  var SwitchToDescriptionSizeAdapter = {
17
18
  sm: "xs",
@@ -23,15 +24,15 @@ function SwitchField(props, ref) {
23
24
  const { stylingProps, ...ownProps } = useStyledSystem(props);
24
25
  const {
25
26
  className,
26
- children,
27
+ style,
27
28
  isDisabled,
28
29
  size: sizeProp = "md",
29
- style,
30
30
  slot,
31
31
  ...otherProps
32
32
  } = ownProps;
33
33
  const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
34
- const classNames = clsx(
34
+ const descriptionId = useId();
35
+ const classNames = composeClassnameRenderProps(
35
36
  className,
36
37
  GlobalSwitchFieldCssSelector,
37
38
  cssModule(
@@ -41,11 +42,20 @@ function SwitchField(props, ref) {
41
42
  ),
42
43
  stylingProps.className
43
44
  );
44
- const mergedStyles = {
45
- ...stylingProps.style,
46
- ...style
47
- };
48
- const descriptionId = useId();
45
+ const mergedStyles = composeRenderProps(style, (prev) => {
46
+ return {
47
+ ...stylingProps.style,
48
+ ...prev
49
+ };
50
+ });
51
+ const renderProps = useRenderProps({
52
+ ...otherProps,
53
+ className: classNames,
54
+ style: mergedStyles,
55
+ values: {
56
+ isDisabled: isDisabled || false
57
+ }
58
+ });
49
59
  return /* @__PURE__ */ jsx(
50
60
  SlotProvider,
51
61
  {
@@ -65,13 +75,11 @@ function SwitchField(props, ref) {
65
75
  children: /* @__PURE__ */ jsx(
66
76
  "div",
67
77
  {
68
- ...otherProps,
78
+ ...mergeProps(otherProps, renderProps),
69
79
  ref,
70
- className: classNames,
71
- style: mergedStyles,
72
80
  slot: slot != null ? slot : void 0,
73
81
  "data-disabled": isDisabled,
74
- children
82
+ children: renderProps.children
75
83
  }
76
84
  )
77
85
  }