@hopper-ui/components 1.3.16 → 1.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/Avatar/src/AnonymousAvatar.css +37 -37
  3. package/dist/Avatar/src/AnonymousAvatar.js +2 -2
  4. package/dist/Avatar/src/Avatar.css +55 -55
  5. package/dist/Avatar/src/Avatar.js +4 -4
  6. package/dist/Avatar/src/DeletedAvatar.css +37 -37
  7. package/dist/Avatar/src/DeletedAvatar.js +2 -2
  8. package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
  9. package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
  10. package/dist/Avatar/src/index.css +55 -55
  11. package/dist/Avatar/src/index.js +6 -6
  12. package/dist/Badge/src/Badge.css +42 -42
  13. package/dist/Badge/src/Badge.js +3 -3
  14. package/dist/Badge/src/FloatingBadge.css +37 -37
  15. package/dist/Badge/src/FloatingBadge.js +1 -1
  16. package/dist/Badge/src/index.css +52 -52
  17. package/dist/Badge/src/index.js +4 -4
  18. package/dist/ComboBox/src/ComboBox.css +948 -948
  19. package/dist/ComboBox/src/ComboBox.d.ts +6 -56
  20. package/dist/ComboBox/src/ComboBox.js +6 -106
  21. package/dist/ComboBox/src/ComboBoxContext.d.ts +1 -10
  22. package/dist/ComboBox/src/ComboBoxOptions.css +5140 -0
  23. package/dist/ComboBox/src/ComboBoxOptions.d.ts +51 -0
  24. package/dist/ComboBox/src/ComboBoxOptions.js +127 -0
  25. package/dist/ComboBox/src/ComboBoxOptionsContext.d.ts +21 -0
  26. package/dist/ComboBox/src/ComboBoxOptionsContext.js +2 -0
  27. package/dist/ComboBox/src/index.css +948 -948
  28. package/dist/ComboBox/src/index.d.ts +8 -6
  29. package/dist/ComboBox/src/index.js +83 -79
  30. package/dist/Divider/src/Divider.css +29 -29
  31. package/dist/Divider/src/Divider.js +1 -1
  32. package/dist/Divider/src/index.css +29 -29
  33. package/dist/Divider/src/index.js +1 -1
  34. package/dist/ErrorMessage/src/ErrorMessage.css +29 -29
  35. package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
  36. package/dist/ErrorMessage/src/index.css +29 -29
  37. package/dist/ErrorMessage/src/index.js +2 -2
  38. package/dist/Form/src/Form.css +715 -715
  39. package/dist/Form/src/Form.js +83 -79
  40. package/dist/Form/src/index.css +715 -715
  41. package/dist/Form/src/index.js +83 -79
  42. package/dist/HelperMessage/src/HelperMessage.css +29 -29
  43. package/dist/HelperMessage/src/HelperMessage.js +2 -2
  44. package/dist/HelperMessage/src/index.css +29 -29
  45. package/dist/HelperMessage/src/index.js +2 -2
  46. package/dist/IconList/src/IconList.css +28 -28
  47. package/dist/IconList/src/IconList.js +1 -1
  48. package/dist/IconList/src/index.css +28 -28
  49. package/dist/IconList/src/index.js +1 -1
  50. package/dist/Link/src/Link.css +49 -49
  51. package/dist/Link/src/Link.js +8 -8
  52. package/dist/Link/src/index.css +49 -49
  53. package/dist/Link/src/index.js +8 -8
  54. package/dist/ListBox/src/ListBox.css +274 -274
  55. package/dist/ListBox/src/ListBox.js +15 -15
  56. package/dist/ListBox/src/ListBoxItem.css +262 -262
  57. package/dist/ListBox/src/ListBoxItem.js +11 -11
  58. package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
  59. package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
  60. package/dist/ListBox/src/index.css +274 -274
  61. package/dist/ListBox/src/index.js +15 -15
  62. package/dist/Select/src/Select.css +648 -3434
  63. package/dist/Select/src/Select.d.ts +6 -52
  64. package/dist/Select/src/Select.js +8 -105
  65. package/dist/Select/src/SelectContext.d.ts +0 -9
  66. package/dist/Select/src/SelectOptions.css +5140 -0
  67. package/dist/Select/src/SelectOptions.d.ts +50 -0
  68. package/dist/Select/src/SelectOptions.js +127 -0
  69. package/dist/Select/src/SelectOptionsContext.d.ts +21 -0
  70. package/dist/Select/src/SelectOptionsContext.js +2 -0
  71. package/dist/Select/src/SelectValue.css +61 -61
  72. package/dist/Select/src/SelectValue.js +5 -5
  73. package/dist/Select/src/index.css +1160 -1160
  74. package/dist/Select/src/index.d.ts +8 -6
  75. package/dist/Select/src/index.js +83 -79
  76. package/dist/Spinner/src/Spinner.css +37 -37
  77. package/dist/Spinner/src/Spinner.js +2 -2
  78. package/dist/Spinner/src/index.css +37 -37
  79. package/dist/Spinner/src/index.js +2 -2
  80. package/dist/buttons/src/Button.css +112 -112
  81. package/dist/buttons/src/Button.js +9 -9
  82. package/dist/buttons/src/ButtonGroup.css +38 -38
  83. package/dist/buttons/src/ButtonGroup.js +2 -2
  84. package/dist/buttons/src/ClearButton.css +98 -98
  85. package/dist/buttons/src/ClearButton.js +2 -2
  86. package/dist/buttons/src/EmbeddedButton.css +98 -98
  87. package/dist/buttons/src/EmbeddedButton.js +1 -1
  88. package/dist/buttons/src/index.css +194 -194
  89. package/dist/buttons/src/index.js +14 -14
  90. package/dist/checkbox/src/Checkbox.css +46 -46
  91. package/dist/checkbox/src/Checkbox.js +7 -7
  92. package/dist/checkbox/src/CheckboxField.css +33 -33
  93. package/dist/checkbox/src/CheckboxField.js +1 -1
  94. package/dist/checkbox/src/CheckboxGroup.css +98 -98
  95. package/dist/checkbox/src/CheckboxGroup.js +2 -2
  96. package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
  97. package/dist/checkbox/src/DecorativeCheckbox.js +7 -7
  98. package/dist/checkbox/src/index.css +98 -98
  99. package/dist/checkbox/src/index.js +12 -12
  100. package/dist/{chunk-2HFFANGL.js → chunk-33YTZ3QA.js} +2 -2
  101. package/dist/{chunk-LNMXRJGJ.js → chunk-5DZSNBY4.js} +1 -1
  102. package/dist/{chunk-43D3MCMN.js → chunk-6NM7WUL4.js} +2 -2
  103. package/dist/{chunk-LZNVIB4Q.js → chunk-6YQY6Z2V.js} +2 -2
  104. package/dist/{chunk-AAMYSAT4.js → chunk-ABNZDBZP.js} +3 -3
  105. package/dist/{chunk-JMBLHNVE.js → chunk-AED25SMX.js} +1 -1
  106. package/dist/{chunk-GFAHOC2Y.js → chunk-AK267453.js} +5 -5
  107. package/dist/{chunk-5TLUX4FA.js → chunk-ALFEQ7WW.js} +2 -2
  108. package/dist/{chunk-CKPFSDF5.js → chunk-AMBRBOIQ.js} +1 -1
  109. package/dist/{chunk-D3ATZADP.js → chunk-ATCE62U5.js} +2 -2
  110. package/dist/{chunk-RERNNMNX.js → chunk-B3LVKBHM.js} +2 -2
  111. package/dist/{chunk-PBFGUMTY.js → chunk-BRBEVRVF.js} +1 -1
  112. package/dist/{chunk-ZCP2AXPD.js → chunk-CIJ3WPZ7.js} +1 -1
  113. package/dist/chunk-CQFXGAJK.js +7 -0
  114. package/dist/{chunk-RLNCYCEL.js → chunk-D3533FNR.js} +1 -1
  115. package/dist/{chunk-7A6CYDDX.js → chunk-EWAN3WSB.js} +2 -2
  116. package/dist/{chunk-T2DMBK3U.js → chunk-FWP67SDV.js} +1 -1
  117. package/dist/{chunk-MGHBK4XX.js → chunk-H6HGDEW4.js} +2 -2
  118. package/dist/{chunk-CQQWAC7P.js → chunk-IBHETMJB.js} +2 -2
  119. package/dist/{chunk-AUEHFPNX.js → chunk-IPM7WRBC.js} +1 -1
  120. package/dist/{chunk-ZJND7BQD.js → chunk-JL3K5IXR.js} +4 -4
  121. package/dist/{chunk-532EGRYD.js → chunk-K6BLKKG3.js} +3 -3
  122. package/dist/{chunk-PXMJ2JSP.js → chunk-MPJYOQU5.js} +1 -1
  123. package/dist/{chunk-V2Z4BWEP.js → chunk-N3LRCSUZ.js} +96 -352
  124. package/dist/{chunk-KBDTTZPD.js → chunk-NVDHY6W4.js} +2 -2
  125. package/dist/{chunk-BK4B5TOE.js → chunk-O25LM3KC.js} +1 -1
  126. package/dist/{chunk-3RRF33G3.js → chunk-OK4ANEAT.js} +6 -6
  127. package/dist/{chunk-BOFZY7AG.js → chunk-OZKEVEPI.js} +2 -2
  128. package/dist/{chunk-BMNXD345.js → chunk-PYN3T726.js} +3 -3
  129. package/dist/{chunk-3HPUMEF6.js → chunk-QYVXEOFZ.js} +1 -1
  130. package/dist/{chunk-GLAJGJ5L.js → chunk-SDVRNCLY.js} +2 -2
  131. package/dist/{chunk-BWBS4H3T.js → chunk-TGQPH7A3.js} +5 -5
  132. package/dist/{chunk-TIT2RZMI.js → chunk-TIP427IG.js} +1 -1
  133. package/dist/{chunk-E3ZVVZI2.js → chunk-TOOEBZKT.js} +3 -3
  134. package/dist/{chunk-TU4QEQE4.js → chunk-UDPW7R42.js} +1 -1
  135. package/dist/{chunk-KGMX2K4Z.js → chunk-URE5PFMU.js} +1 -1
  136. package/dist/{chunk-NCOVEXXO.js → chunk-VP46GULO.js} +1 -1
  137. package/dist/chunk-WHGDC7T4.js +210 -0
  138. package/dist/{chunk-2PPQY3B2.js → chunk-WJZ2OTC5.js} +2 -2
  139. package/dist/{chunk-YGEQT76S.js → chunk-WX6CCUCW.js} +3 -3
  140. package/dist/{chunk-XH5AZHD6.js → chunk-XBN3O7RO.js} +3 -3
  141. package/dist/chunk-XGOJ7VOE.js +7 -0
  142. package/dist/{chunk-HG4WPVDQ.js → chunk-XPPRHRLO.js} +6 -6
  143. package/dist/{chunk-ARZVBUNR.js → chunk-YSIZ6OV3.js} +2 -2
  144. package/dist/chunk-YVCELBU7.js +149 -0
  145. package/dist/{chunk-4YPVPNN3.js → chunk-Z5CODJIW.js} +1 -1
  146. package/dist/{chunk-SOS2KEKX.js → chunk-ZDIKM45I.js} +2 -2
  147. package/dist/{chunk-BZZ3R77M.js → chunk-ZPDZFICA.js} +1 -1
  148. package/dist/{chunk-7C76VW2S.js → chunk-ZQOVNUKV.js} +2 -2
  149. package/dist/index.css +715 -715
  150. package/dist/index.d.ts +5 -1
  151. package/dist/index.js +83 -79
  152. package/dist/inputs/src/InputGroup.css +209 -209
  153. package/dist/inputs/src/InputGroup.js +1 -1
  154. package/dist/inputs/src/NumberField.css +231 -231
  155. package/dist/inputs/src/NumberField.js +7 -7
  156. package/dist/inputs/src/PasswordField.css +219 -219
  157. package/dist/inputs/src/PasswordField.js +8 -8
  158. package/dist/inputs/src/RemainingCharacterCount.css +30 -30
  159. package/dist/inputs/src/RemainingCharacterCount.js +5 -5
  160. package/dist/inputs/src/SearchField.css +225 -225
  161. package/dist/inputs/src/SearchField.js +8 -8
  162. package/dist/inputs/src/TextArea.css +226 -226
  163. package/dist/inputs/src/TextArea.js +7 -7
  164. package/dist/inputs/src/TextField.css +223 -223
  165. package/dist/inputs/src/TextField.js +11 -11
  166. package/dist/inputs/src/index.css +269 -269
  167. package/dist/inputs/src/index.js +18 -18
  168. package/dist/overlays/Popover/src/Popover.css +715 -715
  169. package/dist/overlays/Popover/src/Popover.d.ts +1 -1
  170. package/dist/overlays/Popover/src/Popover.js +83 -79
  171. package/dist/overlays/Popover/src/index.css +715 -715
  172. package/dist/overlays/Popover/src/index.js +83 -79
  173. package/dist/radio/src/DecorativeRadio.css +54 -54
  174. package/dist/radio/src/DecorativeRadio.js +7 -7
  175. package/dist/radio/src/Radio.css +46 -46
  176. package/dist/radio/src/Radio.js +7 -7
  177. package/dist/radio/src/RadioField.css +33 -33
  178. package/dist/radio/src/RadioField.js +1 -1
  179. package/dist/radio/src/RadioGroup.css +98 -98
  180. package/dist/radio/src/RadioGroup.js +2 -2
  181. package/dist/radio/src/index.css +98 -98
  182. package/dist/radio/src/index.js +12 -12
  183. package/dist/switch/src/Switch.css +43 -43
  184. package/dist/switch/src/Switch.js +7 -7
  185. package/dist/switch/src/SwitchField.css +33 -33
  186. package/dist/switch/src/SwitchField.js +2 -2
  187. package/dist/switch/src/index.css +49 -49
  188. package/dist/switch/src/index.js +9 -9
  189. package/dist/tag/src/Tag.css +335 -335
  190. package/dist/tag/src/Tag.js +11 -11
  191. package/dist/tag/src/TagGroup.css +37 -37
  192. package/dist/tag/src/TagGroup.js +2 -2
  193. package/dist/tag/src/TagList.css +27 -27
  194. package/dist/tag/src/index.css +345 -345
  195. package/dist/tag/src/index.js +14 -14
  196. package/dist/typography/Heading/src/Heading.css +27 -27
  197. package/dist/typography/Heading/src/Heading.js +1 -1
  198. package/dist/typography/Heading/src/index.css +27 -27
  199. package/dist/typography/Heading/src/index.js +1 -1
  200. package/dist/typography/Label/src/Label.css +27 -27
  201. package/dist/typography/Label/src/Label.js +1 -1
  202. package/dist/typography/Label/src/index.css +27 -27
  203. package/dist/typography/Label/src/index.js +1 -1
  204. package/dist/typography/OverlineText/src/OverlineText.css +27 -27
  205. package/dist/typography/OverlineText/src/OverlineText.js +1 -1
  206. package/dist/typography/OverlineText/src/index.css +27 -27
  207. package/dist/typography/OverlineText/src/index.js +1 -1
  208. package/dist/typography/Text/src/Text.css +27 -27
  209. package/dist/typography/Text/src/Text.js +1 -1
  210. package/dist/typography/Text/src/index.css +27 -27
  211. package/dist/typography/Text/src/index.js +1 -1
  212. package/dist/utils/src/EnsureTextWrapper.css +27 -27
  213. package/dist/utils/src/EnsureTextWrapper.js +5 -5
  214. package/dist/utils/src/index.css +27 -27
  215. package/dist/utils/src/index.js +7 -7
  216. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { useScale } from './chunk-MTDFS4CZ.js';
2
2
  import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
3
- import { _InputGroup } from './chunk-RLNCYCEL.js';
4
- import { EnsureTextWrapper } from './chunk-TU4QEQE4.js';
3
+ import { _InputGroup } from './chunk-D3533FNR.js';
4
+ import { EnsureTextWrapper } from './chunk-UDPW7R42.js';
5
5
  import { LabelContext } from './chunk-QCA3ZR56.js';
6
6
  import { HelperMessageContext } from './chunk-HZKFQ33E.js';
7
7
  import { ErrorMessageContext } from './chunk-FAE27DLF.js';
@@ -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___Fxq8s", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___IPNox", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___Zk-YG", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___be--P", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___-b6fD", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___9VUZL", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___wiLQJ", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___9Lmrh", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___3NKh2", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___-ZxIm", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___qD-ya", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___RxraD", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___YbM4p", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___uG2xy" };
24
+ var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___F8fj-", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___cMV2j", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___dP6nn", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___1qM7e", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___Qm0Kr", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___Q2TQq", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___syjXe", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___sqwJz", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___vY6bE", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___kvgmz", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___Awbhm", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___n-Qgy", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___epKfX", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___hFjgh" };
25
25
  var GlobalNumberFieldCssSelector = "hop-NumberField";
26
26
  var StepperButton = ({ direction }) => {
27
27
  const scale = useScale();
@@ -1,5 +1,5 @@
1
1
  import { AvatarContext } from './chunk-AES7QBQE.js';
2
- import { _RichIconAvatarImage } from './chunk-PBFGUMTY.js';
2
+ import { _RichIconAvatarImage } from './chunk-BRBEVRVF.js';
3
3
  import { useRenderProps } from './chunk-NH3IVMXB.js';
4
4
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
5
5
  import { AnonymousRichIcon } from '@hopper-ui/icons';
@@ -1,6 +1,6 @@
1
1
  import { RadioContext } from './chunk-FU5CCPLP.js';
2
- import { EnsureTextWrapper } from './chunk-TU4QEQE4.js';
3
2
  import { IconListContext } from './chunk-DHVVYSLB.js';
3
+ import { EnsureTextWrapper } from './chunk-UDPW7R42.js';
4
4
  import { TextContext } from './chunk-X6SER3TZ.js';
5
5
  import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
6
6
  import { useRenderProps } from './chunk-NH3IVMXB.js';
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
15
15
  import { jsx, jsxs } from 'react/jsx-runtime';
16
16
 
17
17
  // css-module:./DecorativeRadio.module.css#css-module
18
- var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-DecorativeRadio___Wjxn- Radio-module__hop-Radio___Mve6d", "hop-DecorativeRadio--sm": "DecorativeRadio-module__hop-DecorativeRadio--sm___NWuO- Radio-module__hop-Radio--sm___2bpSq", "hop-DecorativeRadio--md": "DecorativeRadio-module__hop-DecorativeRadio--md___slbX1 Radio-module__hop-Radio--md___8FGP5", "hop-DecorativeRadio__icon": "DecorativeRadio-module__hop-DecorativeRadio__icon___DgziD Radio-module__hop-Radio__icon___u8vYi", "hop-DecorativeRadio__icon-list": "DecorativeRadio-module__hop-DecorativeRadio__icon-list___6xsW7 Radio-module__hop-Radio__icon___u8vYi", "hop-DecorativeRadio__box": "DecorativeRadio-module__hop-DecorativeRadio__box___q2qM2 Radio-module__hop-Radio__box___wPjxC", "hop-DecorativeRadio__bullet": "DecorativeRadio-module__hop-DecorativeRadio__bullet___Cit4u Radio-module__hop-Radio__bullet___IaqWB", "hop-DecorativeRadio__text": "DecorativeRadio-module__hop-DecorativeRadio__text___5E6vS Radio-module__hop-Radio__text___ommSg" };
18
+ var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-DecorativeRadio___hs-Ks Radio-module__hop-Radio___faJuK", "hop-DecorativeRadio--sm": "DecorativeRadio-module__hop-DecorativeRadio--sm___Kzr39 Radio-module__hop-Radio--sm___W--x6", "hop-DecorativeRadio--md": "DecorativeRadio-module__hop-DecorativeRadio--md___xj03W Radio-module__hop-Radio--md___1vAWK", "hop-DecorativeRadio__icon": "DecorativeRadio-module__hop-DecorativeRadio__icon___YIjhj Radio-module__hop-Radio__icon___ic6xU", "hop-DecorativeRadio__icon-list": "DecorativeRadio-module__hop-DecorativeRadio__icon-list___6X1Oq Radio-module__hop-Radio__icon___ic6xU", "hop-DecorativeRadio__box": "DecorativeRadio-module__hop-DecorativeRadio__box___-789w Radio-module__hop-Radio__box___98f-A", "hop-DecorativeRadio__bullet": "DecorativeRadio-module__hop-DecorativeRadio__bullet___1e3RX Radio-module__hop-Radio__bullet___Xd-hd", "hop-DecorativeRadio__text": "DecorativeRadio-module__hop-DecorativeRadio__text___WhBDA Radio-module__hop-Radio__text___BcX3d" };
19
19
  var GlobalDecorativeRadioCssSelector = "hop-DecorativeRadio";
20
20
  function DecorativeRadio(props, ref) {
21
21
  var _a;
@@ -1,10 +1,10 @@
1
- import { _DecorativeRadio } from './chunk-GLAJGJ5L.js';
2
- import { _DecorativeCheckbox } from './chunk-7C76VW2S.js';
1
+ import { _DecorativeRadio } from './chunk-SDVRNCLY.js';
2
+ import { _DecorativeCheckbox } from './chunk-ZQOVNUKV.js';
3
3
  import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
4
- import { _ListBoxItemSkeleton } from './chunk-JMBLHNVE.js';
5
- import { EnsureTextWrapper } from './chunk-TU4QEQE4.js';
4
+ import { _ListBoxItemSkeleton } from './chunk-AED25SMX.js';
6
5
  import { IconListContext } from './chunk-DHVVYSLB.js';
7
6
  import { BadgeContext } from './chunk-CQDLZ42T.js';
7
+ import { EnsureTextWrapper } from './chunk-UDPW7R42.js';
8
8
  import { TextContext } from './chunk-X6SER3TZ.js';
9
9
  import { AvatarContext } from './chunk-AES7QBQE.js';
10
10
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBoxItem as ListBoxItem$1, List
18
18
  import { jsx, jsxs } from 'react/jsx-runtime';
19
19
 
20
20
  // css-module:./ListBoxItem.module.css#css-module
21
- var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-ListBoxItem___epY3q", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___oJC7W", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___krCGo", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___knyCC", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___vXHV7", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___we6Sk", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___TJU1i", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___NVnf-", "hop-ListBoxItem__radio": "ListBoxItem-module__hop-ListBoxItem__radio___0tLqf", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___pH-3h", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___fe-OF", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___2CeRZ", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___aLcys", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___oxEUk", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___DURWI", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___fSQhf", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___fY-zy" };
21
+ var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-ListBoxItem___fj8nQ", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___KlTQC", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___dmfcS", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___SxV7V", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___KtZA4", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___AsM6w", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___nhbAA", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___UzVBx", "hop-ListBoxItem__radio": "ListBoxItem-module__hop-ListBoxItem__radio___tJP6r", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___hFfCy", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___eEHKq", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___k9zQL", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___XtHlS", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___jWmGz", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___rjrO7", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___GEkIQ", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___2cTQL" };
22
22
  var GlobalListBoxItemCssSelector = "hop-ListBoxItem";
23
23
  var ListBoxItemToIconSizeAdapter = {
24
24
  xs: "sm",
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Button } from 'react-aria-componen
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
 
11
11
  // css-module:./EmbeddedButton.module.css#css-module
12
- var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___cVU7f", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___W6mfA", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___K8iSg", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___1B70z", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___mQ4nT", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___L1j0y", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___pQnno", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___IKvLq", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___sY27A", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___ei-UB", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___1G9qo", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___ZWekq", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___k-3Sy", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___CGigF", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___tHEjz", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___YcRHk" };
12
+ var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___iwUbk", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___9o4jg", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___Fe1cd", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___abTkL", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___-pOYQ", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___yBqab", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___yfj04", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___fZHc1", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___e14cL", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___KJblg", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___AhAcB", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___U8dd-", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___g4eDj", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___iDMw9", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___TKJsj", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___hLfsV" };
13
13
  var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
14
14
  function EmbeddedButton(props, ref) {
15
15
  var _a;
@@ -1,7 +1,7 @@
1
- import { _Text } from './chunk-KGMX2K4Z.js';
2
1
  import { useImageFallback } from './chunk-LI5HSYF7.js';
2
+ import { _Text } from './chunk-URE5PFMU.js';
3
3
  import { AvatarContext } from './chunk-AES7QBQE.js';
4
- import { _RichIconAvatarImage } from './chunk-PBFGUMTY.js';
4
+ import { _RichIconAvatarImage } from './chunk-BRBEVRVF.js';
5
5
  import { useRenderProps } from './chunk-NH3IVMXB.js';
6
6
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
7
7
  import { cssModule } from './chunk-KVDXQMWI.js';
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
13
13
  import { jsx } from 'react/jsx-runtime';
14
14
 
15
15
  // css-module:./Avatar.module.css#css-module
16
- var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___3RhY8", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___-k-Cv", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___erV1W", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___mr3v3", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___-EZy-", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___j7VB6", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___P6BDO", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___g3S-J", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___XhYOS", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___SlVUq", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___oBoZa", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___CrJ71", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___9-o2B", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___j-pwp", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___RnJsT", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___8TF89", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___f2uWo" };
16
+ var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___fxBL7", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___8XdUp", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___sqfax", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___WtYqC", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___DfGif", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___K-hue", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___82azH", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___Qy8YI", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___c3bDj", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___wEgVE", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___2PAKL", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___bKwKh", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___l3Pze", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___jNrrq", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___Ep6Ep", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___LImod", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___P8G6x" };
17
17
  var GlobalAvatarCssSelector = "hop-Avatar";
18
18
  var AvatarToTextSizeAdapter = {
19
19
  xs: "xs",
@@ -1,5 +1,5 @@
1
1
  import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
2
- import { _Text } from './chunk-KGMX2K4Z.js';
2
+ import { _Text } from './chunk-URE5PFMU.js';
3
3
  import { jsx, Fragment } from 'react/jsx-runtime';
4
4
 
5
5
  var EnsureTextWrapper = ({ children }) => {
@@ -9,7 +9,7 @@ import { useContextProps, Text as Text$1 } from 'react-aria-components';
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
 
11
11
  // css-module:./Text.module.css#css-module
12
- var Text_module_default = { "hop-Text": "Text-module__hop-Text___7-tYM", "hop-Text--xs": "Text-module__hop-Text--xs___HbFAZ", "hop-Text--sm": "Text-module__hop-Text--sm___tYwpG", "hop-Text--md": "Text-module__hop-Text--md___kRzjz", "hop-Text--lg": "Text-module__hop-Text--lg___-9lHi", "hop-Text--xl": "Text-module__hop-Text--xl___7-Sot", "hop-Text--2xl": "Text-module__hop-Text--2xl___9rIz6", "hop-Text--inherit": "Text-module__hop-Text--inherit___MTfwM" };
12
+ var Text_module_default = { "hop-Text": "Text-module__hop-Text___zRx4Z", "hop-Text--xs": "Text-module__hop-Text--xs___H302l", "hop-Text--sm": "Text-module__hop-Text--sm___JiMa9", "hop-Text--md": "Text-module__hop-Text--md___upVxp", "hop-Text--lg": "Text-module__hop-Text--lg___tdTqc", "hop-Text--xl": "Text-module__hop-Text--xl___U0c28", "hop-Text--2xl": "Text-module__hop-Text--2xl___0L-DS", "hop-Text--inherit": "Text-module__hop-Text--inherit___EGsBb" };
13
13
  var GlobalTextCssSelector = "hop-Text";
14
14
  function Text(props, ref) {
15
15
  [props, ref] = useContextProps(props, ref, TextContext);
@@ -7,7 +7,7 @@ import { useContextProps, Heading as Heading$1 } from 'react-aria-components';
7
7
  import { jsx } from 'react/jsx-runtime';
8
8
 
9
9
  // css-module:./Heading.module.css#css-module
10
- var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___xZw9W", "hop-Heading--xs": "Heading-module__hop-Heading--xs___0mH4P", "hop-Heading--sm": "Heading-module__hop-Heading--sm___zuPx1", "hop-Heading--md": "Heading-module__hop-Heading--md___dMnqg", "hop-Heading--lg": "Heading-module__hop-Heading--lg___VBwKM", "hop-Heading--xl": "Heading-module__hop-Heading--xl___rNXkV", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___R1-Y8", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___gmnf3" };
10
+ var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___04U2s", "hop-Heading--xs": "Heading-module__hop-Heading--xs___LvoD2", "hop-Heading--sm": "Heading-module__hop-Heading--sm___H1hMf", "hop-Heading--md": "Heading-module__hop-Heading--md___bh8Sh", "hop-Heading--lg": "Heading-module__hop-Heading--lg___q4-RB", "hop-Heading--xl": "Heading-module__hop-Heading--xl___adZIL", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___GwWF4", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___j79uI" };
11
11
  var GlobalHeadingCssSelector = "hop-Heading";
12
12
  function Heading(props, ref) {
13
13
  [props, ref] = useContextProps(props, ref, HeadingContext);
@@ -0,0 +1,210 @@
1
+ import { PopoverContext } from './chunk-SC6ZK5ON.js';
2
+ import { ListBoxContext } from './chunk-UIEP5BA5.js';
3
+ import { EnsureTextWrapper } from './chunk-UDPW7R42.js';
4
+ import { LabelContext } from './chunk-QCA3ZR56.js';
5
+ import { HelperMessageContext } from './chunk-HZKFQ33E.js';
6
+ import { ErrorMessageContext } from './chunk-FAE27DLF.js';
7
+ import { ComboBoxContext } from './chunk-4XHTP4GX.js';
8
+ import { TextContext } from './chunk-X6SER3TZ.js';
9
+ import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
10
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
11
+ import { SlotProvider } from './chunk-M36KANKC.js';
12
+ import { cssModule } from './chunk-KVDXQMWI.js';
13
+ import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
14
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
15
+ import { useObjectRef, mergeRefs, useResizeObserver } from '@react-aria/utils';
16
+ import { forwardRef, useRef, useState, useCallback } from 'react';
17
+ import { useContextProps, useSlottedContext, InputContext, composeRenderProps, ComboBox as ComboBox$1, Group, Input, Button } from 'react-aria-components';
18
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
+
20
+ // css-module:./ComboBox.module.css#css-module
21
+ var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___aowzP", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___qaVX-", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___sWfdw", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___7riqy", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___wi2cF", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___q6VZ1", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___Zq7X8", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___vtoz8", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___wJs1C", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___x5kHF", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___IU7Cm", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___JktEE" };
22
+ var GlobalComboBoxCssSelector = "hop-ComboBox";
23
+ function ComboBox(props, ref) {
24
+ var _a, _b, _c;
25
+ const {
26
+ inputRef: userProvidedInputRef = null,
27
+ ...propsWithoutRef
28
+ } = props;
29
+ [props, ref] = useContextProps(propsWithoutRef, ref, ComboBoxContext);
30
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
31
+ const {
32
+ className,
33
+ children: childrenProp,
34
+ isFluid: isFluidProp,
35
+ isInvalid,
36
+ isRequired,
37
+ items,
38
+ menuTrigger = "focus",
39
+ necessityIndicator,
40
+ placeholder,
41
+ prefix,
42
+ size: sizeProp,
43
+ style: styleProp,
44
+ triggerProps,
45
+ ...otherProps
46
+ } = ownProps;
47
+ const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, (_a = props.inputRef) != null ? _a : null));
48
+ const inputContext = useSlottedContext(InputContext);
49
+ const mergedInputRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext.ref) : inputRef;
50
+ const triggerRef = useRef(null);
51
+ const buttonRef = useRef(null);
52
+ const [triggerWidth, setTriggerWidth] = useState(null);
53
+ const onResize = useCallback(() => {
54
+ if (triggerRef.current) {
55
+ setTriggerWidth(triggerRef.current.offsetWidth + "px");
56
+ }
57
+ }, [triggerRef]);
58
+ useResizeObserver({
59
+ ref: triggerRef,
60
+ onResize
61
+ });
62
+ const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
63
+ const {
64
+ className: triggerClassName,
65
+ style: triggerStyleProp,
66
+ ...otherTriggerProps
67
+ } = triggerOwnProps;
68
+ const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "sm";
69
+ const isFluid = (_c = useResponsiveValue(isFluidProp)) != null ? _c : false;
70
+ const classNames = composeClassnameRenderProps(
71
+ className,
72
+ GlobalComboBoxCssSelector,
73
+ cssModule(
74
+ ComboBox_module_default,
75
+ "hop-ComboBox",
76
+ isFluid && "fluid",
77
+ size
78
+ ),
79
+ stylingProps.className
80
+ );
81
+ const triggerClassNames = composeClassnameRenderProps(
82
+ triggerClassName,
83
+ cssModule(
84
+ ComboBox_module_default,
85
+ "hop-ComboBox__trigger",
86
+ size
87
+ ),
88
+ triggerStylingProps.className
89
+ );
90
+ const buttonClassNames = composeClassnameRenderProps(
91
+ cssModule(
92
+ ComboBox_module_default,
93
+ "hop-ComboBox__button"
94
+ )
95
+ );
96
+ const inputClassNames = composeClassnameRenderProps(
97
+ inputContext == null ? void 0 : inputContext.className,
98
+ ComboBox_module_default["hop-ComboBox__input"]
99
+ );
100
+ const style = composeRenderProps(styleProp, (prev) => {
101
+ return {
102
+ ...stylingProps.style,
103
+ ...prev
104
+ };
105
+ });
106
+ const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
107
+ return {
108
+ ...triggerStylingProps.style,
109
+ ...prev
110
+ };
111
+ });
112
+ const children = composeRenderProps(childrenProp, (prev) => {
113
+ return prev;
114
+ });
115
+ const handleMouseDown = useCallback((e) => {
116
+ if (inputRef.current && e.target !== inputRef.current && buttonRef.current && e.target !== buttonRef.current) {
117
+ inputRef.current.focus();
118
+ e.preventDefault();
119
+ }
120
+ }, [inputRef]);
121
+ const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
122
+ SlotProvider,
123
+ {
124
+ values: [
125
+ [TextContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }],
126
+ [IconContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }]
127
+ ],
128
+ children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
129
+ }
130
+ ) : null;
131
+ return /* @__PURE__ */ jsx(
132
+ ComboBox$1,
133
+ {
134
+ ref,
135
+ className: classNames,
136
+ style,
137
+ isInvalid,
138
+ isRequired,
139
+ items,
140
+ menuTrigger,
141
+ ...otherProps,
142
+ children: (comboBoxRenderProps) => {
143
+ const { isOpen } = comboBoxRenderProps;
144
+ const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
145
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
146
+ /* @__PURE__ */ jsx(
147
+ SlotProvider,
148
+ {
149
+ values: [
150
+ [LabelContext, {
151
+ className: ComboBox_module_default["hop-ComboBox__label"],
152
+ isRequired,
153
+ necessityIndicator
154
+ }],
155
+ [HelperMessageContext, {
156
+ className: ComboBox_module_default["hop-ComboBox__helper-message"]
157
+ }],
158
+ [ErrorMessageContext, {
159
+ className: ComboBox_module_default["hop-ComboBox__error-message"]
160
+ }],
161
+ [TextContext, {
162
+ size
163
+ }],
164
+ [ListBoxContext, {
165
+ size,
166
+ isInvalid,
167
+ items
168
+ }],
169
+ [PopoverContext, {
170
+ triggerRef,
171
+ style: {
172
+ "--custom-trigger-width": triggerWidth
173
+ }
174
+ }]
175
+ ],
176
+ children: children(comboBoxRenderProps)
177
+ }
178
+ ),
179
+ /* @__PURE__ */ jsxs(
180
+ Group,
181
+ {
182
+ ref: triggerRef,
183
+ className: triggerClassNames,
184
+ style: triggerStyle,
185
+ onMouseDown: handleMouseDown,
186
+ "data-selected": isOpen || void 0,
187
+ ...otherTriggerProps,
188
+ children: [
189
+ prefixMarkup,
190
+ /* @__PURE__ */ jsx(
191
+ Input,
192
+ {
193
+ ref: mergedInputRefs,
194
+ className: inputClassNames,
195
+ placeholder
196
+ }
197
+ ),
198
+ /* @__PURE__ */ jsx(Button, { className: buttonClassNames, ref: buttonRef, children: /* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: ComboBox_module_default["hop-ComboBox__button-icon"] }) })
199
+ ]
200
+ }
201
+ )
202
+ ] });
203
+ }
204
+ }
205
+ );
206
+ }
207
+ var _ComboBox = forwardRef(ComboBox);
208
+ _ComboBox.displayName = "ComboBox";
209
+
210
+ export { GlobalComboBoxCssSelector, _ComboBox };
@@ -1,5 +1,5 @@
1
- import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
2
1
  import { SwitchContext } from './chunk-YHBJAXUY.js';
2
+ import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
3
3
  import { TextContext } from './chunk-X6SER3TZ.js';
4
4
  import { useRenderProps } from './chunk-NH3IVMXB.js';
5
5
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
@@ -12,7 +12,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
14
14
  // css-module:./SwitchField.module.css#css-module
15
- var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___0Xbsj", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___-i7uM", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___iQnKa", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___WfnUq", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___i6jkB" };
15
+ var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___BQ0Yx", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___-LFo1", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___B4GYX", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___ef-FW", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___AHaKO" };
16
16
  var GlobalSwitchFieldCssSelector = "hop-SwitchField";
17
17
  var SwitchToDescriptionSizeAdapter = {
18
18
  sm: "xs",
@@ -1,6 +1,6 @@
1
- import { EnsureTextWrapper } from './chunk-TU4QEQE4.js';
2
- import { IconListContext } from './chunk-DHVVYSLB.js';
3
1
  import { LinkContext } from './chunk-4VVNSXIB.js';
2
+ import { IconListContext } from './chunk-DHVVYSLB.js';
3
+ import { EnsureTextWrapper } from './chunk-UDPW7R42.js';
4
4
  import { TextContext } from './chunk-X6SER3TZ.js';
5
5
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
6
6
  import { SlotProvider } from './chunk-M36KANKC.js';
@@ -12,7 +12,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
14
14
  // css-module:./Link.module.css#css-module
15
- var Link_module_default = { "hop-Link": "Link-module__hop-Link___GPGNz", "hop-Link--quiet": "Link-module__hop-Link--quiet___veeq8", "hop-Link--primary": "Link-module__hop-Link--primary___cS288", "hop-Link--secondary": "Link-module__hop-Link--secondary___RHl4C", "hop-Link__icon": "Link-module__hop-Link__icon___IBq4K", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___BmMQm", "hop-Link__text": "Link-module__hop-Link__text___-czUy", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___2yiGs", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___-osL0" };
15
+ var Link_module_default = { "hop-Link": "Link-module__hop-Link___T8Vfg", "hop-Link--quiet": "Link-module__hop-Link--quiet___fXOWN", "hop-Link--primary": "Link-module__hop-Link--primary___BE1KM", "hop-Link--secondary": "Link-module__hop-Link--secondary___HYlPg", "hop-Link__icon": "Link-module__hop-Link__icon___qQaus", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___0FxUH", "hop-Link__text": "Link-module__hop-Link__text___9lmP7", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___VACkA", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___NcaQ3" };
16
16
  var GlobalLinkCssSelector = "hop-Link";
17
17
  var LinkToIconSizeAdapter = {
18
18
  inherit: void 0,
@@ -1,6 +1,6 @@
1
1
  import { SearchFieldContext } from './chunk-3NKF5TPD.js';
2
- import { _InputGroup } from './chunk-RLNCYCEL.js';
3
- import { _ClearButton } from './chunk-PXMJ2JSP.js';
2
+ import { _InputGroup } from './chunk-D3533FNR.js';
3
+ import { _ClearButton } from './chunk-MPJYOQU5.js';
4
4
  import { LabelContext } from './chunk-QCA3ZR56.js';
5
5
  import { HelperMessageContext } from './chunk-HZKFQ33E.js';
6
6
  import { ErrorMessageContext } from './chunk-FAE27DLF.js';
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, Input, SearchField as SearchField$
18
18
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
19
 
20
20
  // css-module:./SearchField.module.css#css-module
21
- var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___-oKzq", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___hL8CS", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___3vXz-", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___0IuvB", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___QXjwl", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___IiyAS", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___rZDr5", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___clr1y", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___1WlQ3" };
21
+ var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___YEbmk", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___kZBaL", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___DBduC", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___6sfNz", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___1GbHB", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___aSzAa", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___ZezZF", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___uKxaA", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___-oVAi" };
22
22
  var GlobalSearchFieldCssSelector = "hop-SearchField";
23
23
  function SearchField(props, ref) {
24
24
  var _a;
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+
3
+ // src/ComboBox/src/ComboBoxOptionsContext.ts
4
+ var ComboBoxOptionsContext = createContext({});
5
+ ComboBoxOptionsContext.displayName = "ComboBoxOptionsContext";
6
+
7
+ export { ComboBoxOptionsContext };
@@ -1,11 +1,11 @@
1
1
  import { isFunction } from './chunk-TIPN4VYD.js';
2
- import { ListBoxContext } from './chunk-UIEP5BA5.js';
3
- import { _ListBoxItem } from './chunk-BWBS4H3T.js';
4
- import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
5
2
  import { SectionContext } from './chunk-5H5AZJPQ.js';
6
- import { useLocalizedString } from './chunk-TFVDF4YH.js';
3
+ import { _ListBoxItem } from './chunk-TGQPH7A3.js';
4
+ import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
7
5
  import { HeaderContext } from './chunk-7JOGKC3W.js';
8
- import { _Text } from './chunk-KGMX2K4Z.js';
6
+ import { ListBoxContext } from './chunk-UIEP5BA5.js';
7
+ import { useLocalizedString } from './chunk-TFVDF4YH.js';
8
+ import { _Text } from './chunk-URE5PFMU.js';
9
9
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
10
10
  import { SlotProvider } from './chunk-M36KANKC.js';
11
11
  import { cssModule } from './chunk-KVDXQMWI.js';
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
17
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
18
 
19
19
  // css-module:./ListBox.module.css#css-module
20
- var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___k6PX-", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___3WtF1", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___WrH-C", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___qmszt", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___ijCs4" };
20
+ var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___3wEVd", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___aRQyL", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___vJxNf", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___Z6xzS", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___6-1TJ" };
21
21
  var GlobalListBoxCssSelector = "hop-ListBox";
22
22
  var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
23
23
  var ListBoxToTextSizeAdapter = {
@@ -1,6 +1,6 @@
1
- import { CheckboxListContext } from './chunk-WDUQUPTE.js';
2
1
  import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
3
2
  import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
3
+ import { CheckboxListContext } from './chunk-WDUQUPTE.js';
4
4
  import { CheckboxContext } from './chunk-2EAZPH3M.js';
5
5
  import { LabelContext } from './chunk-QCA3ZR56.js';
6
6
  import { HelperMessageContext } from './chunk-HZKFQ33E.js';
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 }
14
14
  import { jsx } from 'react/jsx-runtime';
15
15
 
16
16
  // css-module:./CheckboxGroup.module.css#css-module
17
- var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___34ufW", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___nXpts", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___gLrei", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___AHFhp", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___-JXiT", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___yyUGg", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___mvFCJ", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___h246U", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___SECb6" };
17
+ var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___qY1jC", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___n2cbg", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___NdHhk", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___2BgG6", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___D4w-6", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___D-qWa", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___cFvPl", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___hVDN3", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___fy2OR" };
18
18
  var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
19
19
  function CheckboxGroup(props, ref) {
20
20
  var _a, _b;
@@ -0,0 +1,149 @@
1
+ import { _SelectValue } from './chunk-ZDIKM45I.js';
2
+ import { SelectContext } from './chunk-T24MBA34.js';
3
+ import { ListBoxContext } from './chunk-UIEP5BA5.js';
4
+ import { EnsureTextWrapper } from './chunk-UDPW7R42.js';
5
+ import { LabelContext } from './chunk-QCA3ZR56.js';
6
+ import { HelperMessageContext } from './chunk-HZKFQ33E.js';
7
+ import { ErrorMessageContext } from './chunk-FAE27DLF.js';
8
+ import { TextContext } from './chunk-X6SER3TZ.js';
9
+ import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
10
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
11
+ import { SlotProvider } from './chunk-M36KANKC.js';
12
+ import { cssModule } from './chunk-KVDXQMWI.js';
13
+ import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
14
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
15
+ import { forwardRef } from 'react';
16
+ import { useContextProps, composeRenderProps, Select as Select$1, Button } from 'react-aria-components';
17
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
+
19
+ // css-module:./Select.module.css#css-module
20
+ var Select_module_default = { "hop-Select": "Select-module__hop-Select___rjYIm", "hop-Select--fluid": "Select-module__hop-Select--fluid___fDrod", "hop-Select__label": "Select-module__hop-Select__label___GoGEE", "hop-Select__button": "Select-module__hop-Select__button___-YCvi", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___THAh2", "hop-Select__button--md": "Select-module__hop-Select__button--md___H7yJg", "hop-Select__prefix": "Select-module__hop-Select__prefix___M-Bk-", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___JqiS8", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___Up8MC", "hop-Select__error-message": "Select-module__hop-Select__error-message___zmkoZ" };
21
+ var GlobalSelectCssSelector = "hop-Select";
22
+ function Select(props, ref) {
23
+ var _a, _b;
24
+ [props, ref] = useContextProps(props, ref, SelectContext);
25
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
26
+ const {
27
+ className,
28
+ children: childrenProp,
29
+ isFluid: isFluidProp,
30
+ isInvalid,
31
+ isRequired,
32
+ items,
33
+ necessityIndicator,
34
+ prefix,
35
+ renderValue,
36
+ size: sizeProp,
37
+ style: styleProp,
38
+ triggerProps,
39
+ ...otherProps
40
+ } = ownProps;
41
+ const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
42
+ const {
43
+ className: triggerClassName,
44
+ style: triggerStyleProp,
45
+ ...otherTriggerProps
46
+ } = triggerOwnProps;
47
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
48
+ const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
49
+ const classNames = composeClassnameRenderProps(
50
+ className,
51
+ GlobalSelectCssSelector,
52
+ cssModule(
53
+ Select_module_default,
54
+ "hop-Select",
55
+ isFluid && "fluid",
56
+ size
57
+ ),
58
+ stylingProps.className
59
+ );
60
+ const buttonClassNames = composeClassnameRenderProps(
61
+ triggerClassName,
62
+ cssModule(
63
+ Select_module_default,
64
+ "hop-Select__button",
65
+ size
66
+ ),
67
+ triggerStylingProps.className
68
+ );
69
+ const style = composeRenderProps(styleProp, (prev) => {
70
+ return {
71
+ ...stylingProps.style,
72
+ ...prev
73
+ };
74
+ });
75
+ const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
76
+ return {
77
+ ...triggerStylingProps.style,
78
+ ...prev
79
+ };
80
+ });
81
+ const children = composeRenderProps(childrenProp, (prev) => {
82
+ return prev;
83
+ });
84
+ const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
85
+ SlotProvider,
86
+ {
87
+ values: [
88
+ [TextContext, { size, className: Select_module_default["hop-Select__prefix"] }],
89
+ [IconContext, { size, className: Select_module_default["hop-Select__prefix"] }]
90
+ ],
91
+ children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
92
+ }
93
+ ) : null;
94
+ return /* @__PURE__ */ jsx(
95
+ Select$1,
96
+ {
97
+ ...otherProps,
98
+ ref,
99
+ className: classNames,
100
+ style,
101
+ isInvalid,
102
+ isRequired,
103
+ children: (selectRenderProps) => {
104
+ const { isOpen } = selectRenderProps;
105
+ const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
106
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
107
+ /* @__PURE__ */ jsx(
108
+ SlotProvider,
109
+ {
110
+ values: [
111
+ [LabelContext, {
112
+ className: Select_module_default["hop-Select__label"],
113
+ isRequired,
114
+ necessityIndicator
115
+ }],
116
+ [HelperMessageContext, {
117
+ className: Select_module_default["hop-Select__helper-message"]
118
+ }],
119
+ [ErrorMessageContext, {
120
+ className: Select_module_default["hop-Select__error-message"]
121
+ }],
122
+ [TextContext, {
123
+ size
124
+ }],
125
+ [ListBoxContext, {
126
+ size,
127
+ isInvalid,
128
+ items
129
+ }]
130
+ ],
131
+ children: children(selectRenderProps)
132
+ }
133
+ ),
134
+ /* @__PURE__ */ jsxs(Button, { className: buttonClassNames, style: triggerStyle, "data-invalid": isInvalid || void 0, ...otherTriggerProps, children: [
135
+ prefixMarkup,
136
+ /* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
137
+ return renderValue == null ? void 0 : renderValue(valueRenderProps);
138
+ } }),
139
+ /* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: Select_module_default["hop-Select__button-icon"] })
140
+ ] })
141
+ ] });
142
+ }
143
+ }
144
+ );
145
+ }
146
+ var _Select = forwardRef(Select);
147
+ _Select.displayName = "Select";
148
+
149
+ export { GlobalSelectCssSelector, _Select };