@hopper-ui/components 1.0.5 → 1.0.7

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 (300) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -0
  3. package/dist/Avatar/src/AnonymousAvatar.css +10 -10
  4. package/dist/Avatar/src/AnonymousAvatar.js +4 -4
  5. package/dist/Avatar/src/Avatar.css +37 -37
  6. package/dist/Avatar/src/Avatar.js +7 -7
  7. package/dist/Avatar/src/AvatarContext.js +1 -1
  8. package/dist/Avatar/src/DeletedAvatar.css +10 -10
  9. package/dist/Avatar/src/DeletedAvatar.js +4 -4
  10. package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
  11. package/dist/Avatar/src/RichIconAvatarImage.js +3 -3
  12. package/dist/Avatar/src/RichIconAvatarImageContext.js +1 -1
  13. package/dist/Avatar/src/index.css +37 -37
  14. package/dist/Avatar/src/index.js +9 -9
  15. package/dist/Avatar/src/useImageFallback.js +1 -1
  16. package/dist/{badge → Badge}/src/Badge.css +11 -11
  17. package/dist/{badge → Badge}/src/Badge.d.ts +1 -1
  18. package/dist/Badge/src/Badge.js +7 -0
  19. package/dist/Badge/src/BadgeContext.js +2 -0
  20. package/dist/{badge → Badge}/src/index.css +11 -11
  21. package/dist/Badge/src/index.js +7 -0
  22. package/dist/{chip → Chip}/src/Chip.css +34 -34
  23. package/dist/{chip → Chip}/src/Chip.js +6 -6
  24. package/dist/Chip/src/ChipContext.js +2 -0
  25. package/dist/{chip → Chip}/src/index.css +34 -34
  26. package/dist/{chip → Chip}/src/index.js +6 -6
  27. package/dist/Divider/src/Divider.css +32 -0
  28. package/dist/Divider/src/Divider.d.ts +15 -0
  29. package/dist/Divider/src/Divider.js +4 -0
  30. package/dist/Divider/src/DividerContext.d.ts +8 -0
  31. package/dist/Divider/src/DividerContext.js +2 -0
  32. package/dist/Divider/src/index.css +32 -0
  33. package/dist/Divider/src/index.d.ts +5 -0
  34. package/dist/Divider/src/index.js +4 -0
  35. package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.css +12 -12
  36. package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.js +6 -6
  37. package/dist/ErrorMessage/src/ErrorMessageContext.js +2 -0
  38. package/dist/{errorMessage → ErrorMessage}/src/index.css +12 -12
  39. package/dist/{errorMessage → ErrorMessage}/src/index.js +6 -6
  40. package/dist/Header/src/Header.d.ts +17 -0
  41. package/dist/Header/src/Header.js +3 -0
  42. package/dist/Header/src/HeaderContext.d.ts +10 -0
  43. package/dist/Header/src/HeaderContext.js +2 -0
  44. package/dist/Header/src/index.d.ts +7 -0
  45. package/dist/Header/src/index.js +3 -0
  46. package/dist/{helperMessage → HelperMessage}/src/HelperMessage.css +12 -12
  47. package/dist/{helperMessage → HelperMessage}/src/HelperMessage.js +6 -6
  48. package/dist/HelperMessage/src/HelperMessageContext.js +2 -0
  49. package/dist/{helperMessage → HelperMessage}/src/index.css +12 -12
  50. package/dist/{helperMessage → HelperMessage}/src/index.js +6 -6
  51. package/dist/HopperProvider/src/HopperProvider.d.ts +1 -1
  52. package/dist/HopperProvider/src/HopperProvider.js +2 -2
  53. package/dist/HopperProvider/src/index.js +2 -2
  54. package/dist/IconList/src/IconList.css +1 -1
  55. package/dist/IconList/src/IconList.js +2 -2
  56. package/dist/IconList/src/IconListContext.js +1 -1
  57. package/dist/IconList/src/index.css +1 -1
  58. package/dist/IconList/src/index.js +2 -2
  59. package/dist/Link/src/Link.css +31 -31
  60. package/dist/Link/src/Link.js +7 -7
  61. package/dist/Link/src/LinkContext.js +1 -1
  62. package/dist/Link/src/index.css +31 -31
  63. package/dist/Link/src/index.js +7 -7
  64. package/dist/ListBox/src/ListBox.css +1434 -0
  65. package/dist/ListBox/src/ListBox.d.ts +48 -0
  66. package/dist/ListBox/src/ListBox.js +34 -0
  67. package/dist/ListBox/src/ListBoxContext.d.ts +10 -0
  68. package/dist/ListBox/src/ListBoxContext.js +2 -0
  69. package/dist/ListBox/src/ListBoxItem.css +1297 -0
  70. package/dist/ListBox/src/ListBoxItem.d.ts +39 -0
  71. package/dist/ListBox/src/ListBoxItem.js +27 -0
  72. package/dist/ListBox/src/ListBoxItemContext.d.ts +9 -0
  73. package/dist/ListBox/src/ListBoxItemContext.js +2 -0
  74. package/dist/ListBox/src/ListBoxItemSkeleton.css +56 -0
  75. package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +23 -0
  76. package/dist/ListBox/src/ListBoxItemSkeleton.js +4 -0
  77. package/dist/ListBox/src/ListBoxItemSkeletonContext.d.ts +10 -0
  78. package/dist/ListBox/src/ListBoxItemSkeletonContext.js +2 -0
  79. package/dist/ListBox/src/index.css +1434 -0
  80. package/dist/ListBox/src/index.d.ts +8 -0
  81. package/dist/ListBox/src/index.js +34 -0
  82. package/dist/ListBox/src/useLoadOnScroll.d.ts +16 -0
  83. package/dist/ListBox/src/useLoadOnScroll.js +2 -0
  84. package/dist/Section/src/Section.d.ts +19 -0
  85. package/dist/Section/src/Section.js +3 -0
  86. package/dist/Section/src/SectionContext.d.ts +9 -0
  87. package/dist/Section/src/SectionContext.js +2 -0
  88. package/dist/Section/src/index.d.ts +6 -0
  89. package/dist/Section/src/index.js +3 -0
  90. package/dist/Spinner/src/Spinner.css +19 -19
  91. package/dist/Spinner/src/Spinner.js +4 -4
  92. package/dist/Spinner/src/SpinnerContext.js +1 -1
  93. package/dist/Spinner/src/index.css +19 -19
  94. package/dist/Spinner/src/index.js +4 -4
  95. package/dist/buttons/src/Button.css +103 -103
  96. package/dist/buttons/src/Button.js +12 -12
  97. package/dist/buttons/src/ButtonContext.js +1 -1
  98. package/dist/buttons/src/ButtonGroup.css +11 -11
  99. package/dist/buttons/src/ButtonGroup.js +4 -4
  100. package/dist/buttons/src/ButtonGroupContext.js +1 -1
  101. package/dist/buttons/src/ClearButton.css +12 -12
  102. package/dist/buttons/src/ClearButton.js +5 -5
  103. package/dist/buttons/src/ClearButtonContext.js +1 -1
  104. package/dist/buttons/src/EmbeddedButton.css +12 -12
  105. package/dist/buttons/src/EmbeddedButton.js +3 -3
  106. package/dist/buttons/src/EmbeddedButtonContext.js +1 -1
  107. package/dist/buttons/src/index.css +126 -126
  108. package/dist/buttons/src/index.js +16 -16
  109. package/dist/checkbox/src/Checkbox.css +79 -94
  110. package/dist/checkbox/src/Checkbox.d.ts +3 -1
  111. package/dist/checkbox/src/Checkbox.js +6 -6
  112. package/dist/checkbox/src/CheckboxContext.d.ts +2 -0
  113. package/dist/checkbox/src/CheckboxContext.js +1 -1
  114. package/dist/checkbox/src/CheckboxField.css +15 -15
  115. package/dist/checkbox/src/CheckboxField.js +3 -3
  116. package/dist/checkbox/src/CheckboxFieldContext.js +1 -1
  117. package/dist/checkbox/src/CheckboxGroup.css +116 -131
  118. package/dist/checkbox/src/CheckboxGroup.js +6 -6
  119. package/dist/checkbox/src/CheckboxGroupContext.js +1 -1
  120. package/dist/checkbox/src/CheckboxList.js +1 -1
  121. package/dist/checkbox/src/CheckboxListContext.js +1 -1
  122. package/dist/checkbox/src/index.css +116 -131
  123. package/dist/checkbox/src/index.js +12 -12
  124. package/dist/{chunk-GELM73MQ.js → chunk-2NJ3RDMJ.js} +12 -6
  125. package/dist/chunk-3LGP5T4C.js +625 -0
  126. package/dist/{chunk-W2SKBBWE.js → chunk-3WUDQLLR.js} +5 -5
  127. package/dist/{chunk-F7S2I43Y.js → chunk-4TJUYXYN.js} +2 -2
  128. package/dist/{chunk-22YUFCHD.js → chunk-4V75RYJN.js} +3 -3
  129. package/dist/{chunk-KOA2CREJ.js → chunk-5CIADHZR.js} +5 -5
  130. package/dist/chunk-5H5AZJPQ.js +7 -0
  131. package/dist/{chunk-WTKIUAHI.js → chunk-632B5YBQ.js} +1 -1
  132. package/dist/{chunk-WFPCHFJI.js → chunk-666H6UTL.js} +2 -2
  133. package/dist/chunk-7JOGKC3W.js +7 -0
  134. package/dist/chunk-AE24HPDG.js +49 -0
  135. package/dist/{chunk-UOBWYTW7.js → chunk-CK5HMGDC.js} +11 -11
  136. package/dist/{chunk-5F5CWOM4.js → chunk-COBPJHIY.js} +1 -1
  137. package/dist/{chunk-ZSFJVMJN.js → chunk-CQDLZ42T.js} +1 -1
  138. package/dist/{chunk-THCG3QCD.js → chunk-CXIMLIUB.js} +3 -3
  139. package/dist/chunk-DESANYPD.js +142 -0
  140. package/dist/{chunk-7Q7VIED2.js → chunk-E7Y25WJE.js} +3 -3
  141. package/dist/{chunk-3IEED7AY.js → chunk-EBXHYPDU.js} +1 -1
  142. package/dist/{chunk-ACVMW6YD.js → chunk-FAE27DLF.js} +1 -1
  143. package/dist/{chunk-TM6742MU.js → chunk-FMSIW5AX.js} +3 -3
  144. package/dist/chunk-FYIHMKHI.js +7 -0
  145. package/dist/{chunk-P7JRKXBD.js → chunk-HVUX7ZQ3.js} +2 -2
  146. package/dist/{chunk-ESVVLTEN.js → chunk-HZKFQ33E.js} +1 -1
  147. package/dist/chunk-I4VPBQI7.js +7 -0
  148. package/dist/{chunk-6WWYES56.js → chunk-IUQNDY3E.js} +5 -5
  149. package/dist/{chunk-2P3A4VVY.js → chunk-JSBRDJBE.js} +1 -6
  150. package/dist/chunk-JTNMFPM4.js +41 -0
  151. package/dist/chunk-L5A2UTQV.js +43 -0
  152. package/dist/{chunk-Z33QZKRG.js → chunk-LIUW56HE.js} +1 -1
  153. package/dist/{chunk-WNVTTHBK.js → chunk-LM4HMPSD.js} +6 -5
  154. package/dist/{chunk-ANVMQBBG.js → chunk-NMKBUGSO.js} +12 -1
  155. package/dist/{chunk-BD53A2LL.js → chunk-NQOLP5NY.js} +12 -6
  156. package/dist/chunk-O5PTD6IN.js +41 -0
  157. package/dist/{chunk-LUAIMTPE.js → chunk-OKAYIZ45.js} +7 -7
  158. package/dist/chunk-OKZYR4RF.js +7 -0
  159. package/dist/{chunk-CP4AWOFU.js → chunk-QACERXDV.js} +2 -2
  160. package/dist/{chunk-FYDLV5BM.js → chunk-R2UVMOIP.js} +1 -1
  161. package/dist/chunk-RW4GDPRX.js +52 -0
  162. package/dist/{chunk-OPFRM3JC.js → chunk-SHVSB6MD.js} +4 -4
  163. package/dist/{chunk-KQPY2D3P.js → chunk-SSCPXYN6.js} +5 -5
  164. package/dist/chunk-SXPMPVDJ.js +250 -0
  165. package/dist/chunk-U4NXU44C.js +118 -0
  166. package/dist/chunk-UIEP5BA5.js +7 -0
  167. package/dist/{chunk-KOJGCQ3F.js → chunk-UUUU6SUW.js} +4 -4
  168. package/dist/chunk-W2ZCHVKP.js +119 -0
  169. package/dist/{chunk-3OWQHIJ6.js → chunk-WSNJNUUA.js} +1 -1
  170. package/dist/{chunk-IIZECZAH.js → chunk-WXJ3U2DV.js} +3 -3
  171. package/dist/{chunk-UYVKDU2W.js → chunk-XC7OT325.js} +3 -3
  172. package/dist/{chunk-BVGKXCQH.js → chunk-XVKZ3Q3B.js} +2 -2
  173. package/dist/chunk-Y2POLIXK.js +7 -0
  174. package/dist/{chunk-H6CDFWVR.js → chunk-YEYNRBMQ.js} +7 -3
  175. package/dist/{chunk-T6VFQSII.js → chunk-YTPFSLHU.js} +5 -5
  176. package/dist/{chunk-GWEUWPLT.js → chunk-YZRL7TXT.js} +2 -2
  177. package/dist/chunk-ZMDHYGEP.js +57 -0
  178. package/dist/i18n/src/index.js +2 -2
  179. package/dist/i18n/src/useLocalizedString.js +2 -2
  180. package/dist/index.css +3297 -0
  181. package/dist/index.d.ts +113 -0
  182. package/dist/index.js +107 -0
  183. package/dist/inputs/src/InputGroup.css +12 -12
  184. package/dist/inputs/src/InputGroup.js +3 -3
  185. package/dist/inputs/src/InputGroupContext.js +1 -1
  186. package/dist/inputs/src/PasswordField.css +202 -1793
  187. package/dist/inputs/src/PasswordField.js +17 -188
  188. package/dist/inputs/src/PasswordFieldContext.js +1 -1
  189. package/dist/inputs/src/SearchField.css +208 -1799
  190. package/dist/inputs/src/SearchField.js +18 -187
  191. package/dist/inputs/src/SearchFieldContext.js +1 -1
  192. package/dist/inputs/src/TextField.css +203 -1794
  193. package/dist/inputs/src/TextField.js +16 -77
  194. package/dist/inputs/src/TextFieldContext.js +1 -1
  195. package/dist/inputs/src/index.css +292 -1794
  196. package/dist/inputs/src/index.d.ts +4 -0
  197. package/dist/inputs/src/index.js +20 -77
  198. package/dist/layout/src/Content.js +1 -1
  199. package/dist/layout/src/ContentContext.js +1 -1
  200. package/dist/layout/src/Flex.js +1 -1
  201. package/dist/layout/src/Footer.js +1 -1
  202. package/dist/layout/src/FooterContext.js +1 -1
  203. package/dist/layout/src/Grid.js +1 -1
  204. package/dist/layout/src/Inline.js +1 -1
  205. package/dist/layout/src/Stack.js +1 -1
  206. package/dist/layout/src/grid-helpers.js +1 -1
  207. package/dist/overlays/Popover/src/Popover.css +1211 -555
  208. package/dist/overlays/Popover/src/Popover.d.ts +5 -6
  209. package/dist/overlays/Popover/src/Popover.js +84 -61
  210. package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -2
  211. package/dist/overlays/Popover/src/PopoverContext.js +1 -1
  212. package/dist/overlays/Popover/src/PopoverTrigger.d.ts +8 -0
  213. package/dist/overlays/Popover/src/PopoverTrigger.js +2 -0
  214. package/dist/overlays/Popover/src/index.css +1211 -555
  215. package/dist/overlays/Popover/src/index.d.ts +3 -2
  216. package/dist/overlays/Popover/src/index.js +84 -61
  217. package/dist/radio/src/Radio.css +67 -79
  218. package/dist/radio/src/Radio.d.ts +3 -1
  219. package/dist/radio/src/Radio.js +6 -6
  220. package/dist/radio/src/RadioContext.d.ts +2 -0
  221. package/dist/radio/src/RadioContext.js +1 -1
  222. package/dist/radio/src/RadioField.css +15 -15
  223. package/dist/radio/src/RadioField.js +4 -4
  224. package/dist/radio/src/RadioFieldContext.js +1 -1
  225. package/dist/radio/src/RadioGroup.css +104 -116
  226. package/dist/radio/src/RadioGroup.js +6 -6
  227. package/dist/radio/src/RadioGroupContext.js +1 -1
  228. package/dist/radio/src/RadioList.js +1 -1
  229. package/dist/radio/src/RadioListContext.js +1 -1
  230. package/dist/radio/src/index.css +104 -116
  231. package/dist/radio/src/index.js +11 -11
  232. package/dist/switch/src/Switch.css +25 -25
  233. package/dist/switch/src/Switch.js +6 -6
  234. package/dist/switch/src/SwitchContext.js +1 -1
  235. package/dist/switch/src/SwitchField.css +15 -15
  236. package/dist/switch/src/SwitchField.js +4 -4
  237. package/dist/switch/src/SwitchFieldContext.js +1 -1
  238. package/dist/switch/src/index.css +31 -31
  239. package/dist/switch/src/index.js +8 -8
  240. package/dist/tag/src/Tag.css +1280 -548
  241. package/dist/tag/src/Tag.js +85 -60
  242. package/dist/tag/src/TagContext.js +1 -1
  243. package/dist/tag/src/TagGroup.css +30 -30
  244. package/dist/tag/src/TagGroup.js +6 -6
  245. package/dist/tag/src/TagGroupContext.js +1 -1
  246. package/dist/tag/src/TagList.js +1 -1
  247. package/dist/tag/src/TagListContext.js +1 -1
  248. package/dist/tag/src/index.css +1280 -548
  249. package/dist/tag/src/index.js +85 -60
  250. package/dist/typography/Heading/src/Heading.css +9 -2490
  251. package/dist/typography/Heading/src/Heading.js +2 -80
  252. package/dist/typography/Heading/src/HeadingContext.js +1 -1
  253. package/dist/typography/Heading/src/index.css +9 -2490
  254. package/dist/typography/Heading/src/index.js +2 -80
  255. package/dist/typography/Label/src/Label.css +9 -9
  256. package/dist/typography/Label/src/Label.js +2 -2
  257. package/dist/typography/Label/src/LabelContext.js +1 -1
  258. package/dist/typography/Label/src/index.css +9 -9
  259. package/dist/typography/Label/src/index.js +2 -2
  260. package/dist/typography/OverlineText/src/OverlineText.css +6 -6
  261. package/dist/typography/OverlineText/src/OverlineText.js +2 -2
  262. package/dist/typography/OverlineText/src/OverlineTextContext.js +1 -1
  263. package/dist/typography/OverlineText/src/index.css +6 -6
  264. package/dist/typography/OverlineText/src/index.js +2 -2
  265. package/dist/typography/Text/src/Text.css +9 -9
  266. package/dist/typography/Text/src/Text.js +4 -4
  267. package/dist/typography/Text/src/TextContext.js +1 -1
  268. package/dist/typography/Text/src/index.css +9 -9
  269. package/dist/typography/Text/src/index.js +4 -4
  270. package/dist/utils/src/ClearSlots.js +1 -1
  271. package/dist/utils/src/SlotProvider.js +1 -1
  272. package/dist/utils/src/assertion.js +1 -1
  273. package/dist/utils/src/composeClassnameRenderProps.js +1 -1
  274. package/dist/utils/src/cssModule.js +1 -1
  275. package/dist/utils/src/index.d.ts +1 -1
  276. package/dist/utils/src/index.js +4 -4
  277. package/dist/utils/src/isTextOnlyChildren.js +1 -1
  278. package/dist/utils/src/types.d.ts +16 -1
  279. package/dist/utils/src/useRenderProps.js +1 -1
  280. package/dist/utils/src/useSlot.js +1 -1
  281. package/package.json +2 -2
  282. package/dist/badge/src/Badge.js +0 -6
  283. package/dist/badge/src/BadgeContext.js +0 -2
  284. package/dist/badge/src/index.js +0 -6
  285. package/dist/chip/src/ChipContext.js +0 -2
  286. package/dist/chunk-NXNV5JDN.js +0 -392
  287. package/dist/chunk-ZCEVY7LM.js +0 -96
  288. package/dist/errorMessage/src/ErrorMessageContext.js +0 -2
  289. package/dist/helperMessage/src/HelperMessageContext.js +0 -2
  290. /package/dist/{badge → Badge}/src/BadgeContext.d.ts +0 -0
  291. /package/dist/{badge → Badge}/src/index.d.ts +0 -0
  292. /package/dist/{chip → Chip}/src/Chip.d.ts +0 -0
  293. /package/dist/{chip → Chip}/src/ChipContext.d.ts +0 -0
  294. /package/dist/{chip → Chip}/src/index.d.ts +0 -0
  295. /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.d.ts +0 -0
  296. /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessageContext.d.ts +0 -0
  297. /package/dist/{errorMessage → ErrorMessage}/src/index.d.ts +0 -0
  298. /package/dist/{helperMessage → HelperMessage}/src/HelperMessage.d.ts +0 -0
  299. /package/dist/{helperMessage → HelperMessage}/src/HelperMessageContext.d.ts +0 -0
  300. /package/dist/{helperMessage → HelperMessage}/src/index.d.ts +0 -0
@@ -26,7 +26,18 @@ var HopperProvider = (props, ref) => {
26
26
  if (navigate) {
27
27
  content = /* @__PURE__ */ jsx(RouterProvider, { navigate, useHref, children });
28
28
  }
29
- return /* @__PURE__ */ jsx(StyledSystemProvider, { ref, withBodyStyle, colorScheme, withCssVariables, className: classNames, ...rest, children: /* @__PURE__ */ jsx(I18nProvider, { locale, children: content }) });
29
+ return /* @__PURE__ */ jsx(
30
+ StyledSystemProvider,
31
+ {
32
+ ref,
33
+ withBodyStyle,
34
+ colorScheme,
35
+ withCssVariables,
36
+ className: classNames,
37
+ ...rest,
38
+ children: /* @__PURE__ */ jsx(I18nProvider, { locale, children: content })
39
+ }
40
+ );
30
41
  };
31
42
  var _HopperProvider = forwardRef(HopperProvider);
32
43
  _HopperProvider.displayName = "HopperProvider";
@@ -1,12 +1,12 @@
1
1
  import { RadioContext } from './chunk-FU5CCPLP.js';
2
- import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
3
2
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
3
+ import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
4
4
  import { IconListContext } from './chunk-DHVVYSLB.js';
5
- import { _Text } from './chunk-7Q7VIED2.js';
6
- import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
5
+ import { _Text } from './chunk-E7Y25WJE.js';
7
6
  import { TextContext } from './chunk-X6SER3TZ.js';
8
- import { cssModule } from './chunk-KVDXQMWI.js';
7
+ import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
9
8
  import { SlotProvider } from './chunk-M36KANKC.js';
9
+ import { cssModule } from './chunk-KVDXQMWI.js';
10
10
  import { BulletIcon, IconContext } from '@hopper-ui/icons';
11
11
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
12
12
  import { forwardRef } from 'react';
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
14
14
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
15
15
 
16
16
  // css-module:./Radio.module.css#css-module
17
- var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___U2zYL", "hop-Radio--sm": "Radio-module__hop-Radio--sm___ienBb", "hop-Radio--md": "Radio-module__hop-Radio--md___beRv8", "hop-Radio__icon": "Radio-module__hop-Radio__icon___SznKf", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___Hcdqe", "hop-Radio__box": "Radio-module__hop-Radio__box___b7BN6", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___Gh9LA", "hop-Radio__text": "Radio-module__hop-Radio__text___M4Ezd" };
17
+ var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___tvFFT", "hop-Radio--focused": "Radio-module__hop-Radio--focused___qmLB6", "hop-Radio--hovered": "Radio-module__hop-Radio--hovered___vZ50W", "hop-Radio--pressed": "Radio-module__hop-Radio--pressed___wBVf6", "hop-Radio--sm": "Radio-module__hop-Radio--sm___5kxPW", "hop-Radio--md": "Radio-module__hop-Radio--md___4M0c-", "hop-Radio__icon": "Radio-module__hop-Radio__icon___Fgjja", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___bQRXR", "hop-Radio__box": "Radio-module__hop-Radio__box___FserC", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___k73mE", "hop-Radio__text": "Radio-module__hop-Radio__text___qi3fJ" };
18
18
  var GlobalRadioCssSelector = "hop-Radio";
19
19
  function Radio(props, ref) {
20
20
  var _a;
@@ -25,6 +25,9 @@ function Radio(props, ref) {
25
25
  children: childrenProp,
26
26
  size: sizeProp = "md",
27
27
  style: styleProp,
28
+ isPressed,
29
+ isHovered,
30
+ isFocused,
28
31
  ...otherProps
29
32
  } = ownProps;
30
33
  const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
@@ -34,7 +37,10 @@ function Radio(props, ref) {
34
37
  cssModule(
35
38
  Radio_module_default,
36
39
  "hop-Radio",
37
- size
40
+ size,
41
+ isPressed && "pressed",
42
+ isHovered && "hovered",
43
+ isFocused && "focused"
38
44
  ),
39
45
  stylingProps.className
40
46
  );
@@ -0,0 +1,41 @@
1
+ import { SectionContext } from './chunk-5H5AZJPQ.js';
2
+ import { useStyledSystem } from '@hopper-ui/styled-system';
3
+ import clsx from 'clsx';
4
+ import { forwardRef } from 'react';
5
+ import { useContextProps, Section as Section$1 } from 'react-aria-components';
6
+ import { jsx } from 'react/jsx-runtime';
7
+
8
+ var GlobalSectionCssSelector = "hop-Section";
9
+ function Section(props, ref) {
10
+ [props, ref] = useContextProps(props, ref, SectionContext);
11
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
12
+ const {
13
+ className,
14
+ children,
15
+ style,
16
+ ...otherProps
17
+ } = ownProps;
18
+ const classNames = clsx(
19
+ GlobalSectionCssSelector,
20
+ stylingProps.className,
21
+ className
22
+ );
23
+ const mergedStyles = {
24
+ ...stylingProps.style,
25
+ ...style
26
+ };
27
+ return /* @__PURE__ */ jsx(
28
+ Section$1,
29
+ {
30
+ ...otherProps,
31
+ ref,
32
+ className: classNames,
33
+ style: mergedStyles,
34
+ children
35
+ }
36
+ );
37
+ }
38
+ var _Section = forwardRef(Section);
39
+ _Section.displayName = "Section";
40
+
41
+ export { GlobalSectionCssSelector, _Section };
@@ -1,15 +1,15 @@
1
1
  import { useSlot } from './chunk-H5YTU3U7.js';
2
- import { useRenderProps } from './chunk-NH3IVMXB.js';
3
- import { useLocalizedString } from './chunk-H6CDFWVR.js';
4
- import { _Spinner } from './chunk-BVGKXCQH.js';
5
2
  import { ButtonContext } from './chunk-WMTWFKKP.js';
6
- import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
3
+ import { _Spinner } from './chunk-XVKZ3Q3B.js';
4
+ import { useLocalizedString } from './chunk-YEYNRBMQ.js';
7
5
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
6
+ import { useRenderProps } from './chunk-NH3IVMXB.js';
7
+ import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
8
8
  import { IconListContext } from './chunk-DHVVYSLB.js';
9
- import { _Text } from './chunk-7Q7VIED2.js';
9
+ import { _Text } from './chunk-E7Y25WJE.js';
10
10
  import { TextContext } from './chunk-X6SER3TZ.js';
11
- import { cssModule } from './chunk-KVDXQMWI.js';
12
11
  import { SlotProvider } from './chunk-M36KANKC.js';
12
+ import { cssModule } from './chunk-KVDXQMWI.js';
13
13
  import { IconContext } from '@hopper-ui/icons';
14
14
  import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
15
15
  import { chain, filterDOMProps, useRouter, shouldClientNavigate } from '@react-aria/utils';
@@ -19,7 +19,7 @@ import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps,
19
19
  import { jsx, jsxs } from 'react/jsx-runtime';
20
20
 
21
21
  // css-module:./Button.module.css#css-module
22
- var Button_module_default = { "hop-Button": "Button-module__hop-Button___omxTR", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___mAijh", "hop-Button--fluid": "Button-module__hop-Button--fluid___tJx6A", "hop-Button--sm": "Button-module__hop-Button--sm___jBmjK", "hop-Button--primary": "Button-module__hop-Button--primary___GiYHc", "hop-Button--md": "Button-module__hop-Button--md___azhbR", "hop-Button--secondary": "Button-module__hop-Button--secondary___W9BWc", "hop-Button--upsell": "Button-module__hop-Button--upsell___RGRcm", "hop-Button--danger": "Button-module__hop-Button--danger___yqtna", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___I3F3m", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___kosyt", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___fmoef", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___Ib9EV", "hop-Button__icon": "Button-module__hop-Button__icon___zdZvL", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___QHAI7", "hop-Button__text": "Button-module__hop-Button__text___NfHmc", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___exbfl", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___yyYdR" };
22
+ var Button_module_default = { "hop-Button": "Button-module__hop-Button___UAzFm", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___05dkO", "hop-Button--fluid": "Button-module__hop-Button--fluid___YVpDX", "hop-Button--sm": "Button-module__hop-Button--sm___gvwId", "hop-Button--primary": "Button-module__hop-Button--primary___A28Rq", "hop-Button--md": "Button-module__hop-Button--md___M3MyD", "hop-Button--secondary": "Button-module__hop-Button--secondary___u0ZGt", "hop-Button--upsell": "Button-module__hop-Button--upsell___arFHv", "hop-Button--danger": "Button-module__hop-Button--danger___lL8-r", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___X4kNh", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___aN7yP", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___vBKjd", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___kL-1-", "hop-Button__icon": "Button-module__hop-Button__icon___iMiLP", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___zInte", "hop-Button__text": "Button-module__hop-Button__text___OyaRf", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___noDbN", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___mFNXl" };
23
23
  var GlobalButtonCssSelector = "hop-Button";
24
24
  var additionalButtonHTMLAttributes = /* @__PURE__ */ new Set(["form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "name", "value"]);
25
25
  function useSimulatedRACButton(props, ref) {
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+
3
+ // src/ListBox/src/ListBoxItemSkeletonContext.ts
4
+ var ListBoxItemSkeletonContext = createContext({});
5
+ ListBoxItemSkeletonContext.displayName = "ListBoxItemSkeletonContext";
6
+
7
+ export { ListBoxItemSkeletonContext };
@@ -1,5 +1,5 @@
1
- import { cssModule } from './chunk-KVDXQMWI.js';
2
1
  import { SlotProvider } from './chunk-M36KANKC.js';
2
+ import { cssModule } from './chunk-KVDXQMWI.js';
3
3
  import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
4
4
  import { RichIconContext } from '@hopper-ui/icons';
5
5
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
@@ -9,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
 
11
11
  // css-module:./RichIconAvatarImage.module.css#css-module
12
- var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kdGVl", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___4WUqP", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___fsiew", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___BJtzS", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___MFhsm", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___jFtFa", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3" };
12
+ var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___r1-2L", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___exS4L", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___tjY3E", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___7bEZJ", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___IXng-", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___8tAP7", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___2PYru", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___aE4RN" };
13
13
  var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
14
14
  var AvatarToIconSizeAdapter = {
15
15
  xs: "md",
@@ -1,5 +1,5 @@
1
1
  import { AvatarContext } from './chunk-AES7QBQE.js';
2
- import { _RichIconAvatarImage } from './chunk-CP4AWOFU.js';
2
+ import { _RichIconAvatarImage } from './chunk-QACERXDV.js';
3
3
  import { AnonymousRichIcon } from '@hopper-ui/icons';
4
4
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
5
5
  import clsx from 'clsx';
@@ -0,0 +1,52 @@
1
+ import { ListBoxItemSkeletonContext } from './chunk-OKZYR4RF.js';
2
+ import { cssModule } from './chunk-KVDXQMWI.js';
3
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
4
+ import clsx from 'clsx';
5
+ import { forwardRef } from 'react';
6
+ import { useContextProps } from 'react-aria-components';
7
+ import { jsx } from 'react/jsx-runtime';
8
+
9
+ // css-module:./ListBoxItemSkeleton.module.css#css-module
10
+ var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___j-yVV", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___-EhAf", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___vJ3Zw", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___0NFkM", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___Q1wFA", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___EOBf9" };
11
+ var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
12
+ function ListBoxItemSkeleton(props, ref) {
13
+ var _a;
14
+ [props, ref] = useContextProps(props, ref, ListBoxItemSkeletonContext);
15
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
16
+ const {
17
+ className,
18
+ size: sizeProp,
19
+ style: styleProp,
20
+ slot,
21
+ ...otherProps
22
+ } = ownProps;
23
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
24
+ const classNames = clsx(
25
+ className,
26
+ GlobalListBoxItemSkeletonCssSelector,
27
+ cssModule(
28
+ ListBoxItemSkeleton_module_default,
29
+ "hop-ListBoxItemSkeleton",
30
+ size
31
+ ),
32
+ stylingProps.className
33
+ );
34
+ const style = {
35
+ ...stylingProps.style,
36
+ ...styleProp
37
+ };
38
+ return /* @__PURE__ */ jsx(
39
+ "div",
40
+ {
41
+ ...otherProps,
42
+ ref,
43
+ className: classNames,
44
+ style,
45
+ slot: slot != null ? slot : void 0
46
+ }
47
+ );
48
+ }
49
+ var _ListBoxItemSkeleton = forwardRef(ListBoxItemSkeleton);
50
+ _ListBoxItemSkeleton.displayName = "ListBoxItemSkeleton";
51
+
52
+ export { GlobalListBoxItemSkeletonCssSelector, _ListBoxItemSkeleton };
@@ -1,8 +1,8 @@
1
- import { _Text } from './chunk-7Q7VIED2.js';
1
+ import { useImageFallback } from './chunk-NS3XVOQ7.js';
2
+ import { _Text } from './chunk-E7Y25WJE.js';
2
3
  import { AvatarContext } from './chunk-AES7QBQE.js';
3
- import { _RichIconAvatarImage } from './chunk-CP4AWOFU.js';
4
+ import { _RichIconAvatarImage } from './chunk-QACERXDV.js';
4
5
  import { cssModule } from './chunk-KVDXQMWI.js';
5
- import { useImageFallback } from './chunk-NS3XVOQ7.js';
6
6
  import { BrokenImageRichIcon } from '@hopper-ui/icons';
7
7
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
8
8
  import { filterDOMProps } from '@react-aria/utils';
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
14
14
  // css-module:./Avatar.module.css#css-module
15
- var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___d9YZ9", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___BWHEr", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___fNWQO", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___-6GnY", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___f8yyT", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___r5PUt", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___CG0YD", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___OIRSj", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___-uwSb", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___xhe3G", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___e38Gs", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___-GQzw", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___CeiJh", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___nvuXB", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___Q4Z9Z", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___TsOBZ", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___6YUZZ" };
15
+ var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___xgLGn", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___71MWt", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___-VT24", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___DhOit", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___LhUBE", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___nRU6l", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___EvIhQ", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___tJoic", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___J6Alx", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___PFZAI", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___eUcwp", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___ICYLl", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___R0WGe", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___iAAz0", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___p03Dg", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___DkcTO", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___EMxQb" };
16
16
  var GlobalAvatarCssSelector = "hop-Avatar";
17
17
  var AvatarToTextSizeAdapter = {
18
18
  xs: "xs",
@@ -1,20 +1,20 @@
1
- import { ErrorMessageContext } from './chunk-ACVMW6YD.js';
2
- import { HelperMessageContext } from './chunk-ESVVLTEN.js';
1
+ import { CheckboxListContext } from './chunk-WDUQUPTE.js';
3
2
  import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
4
3
  import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
5
- import { CheckboxListContext } from './chunk-WDUQUPTE.js';
6
4
  import { CheckboxContext } from './chunk-2EAZPH3M.js';
7
5
  import { LabelContext } from './chunk-QCA3ZR56.js';
8
6
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
9
- import { cssModule } from './chunk-KVDXQMWI.js';
7
+ import { HelperMessageContext } from './chunk-HZKFQ33E.js';
8
+ import { ErrorMessageContext } from './chunk-FAE27DLF.js';
10
9
  import { SlotProvider } from './chunk-M36KANKC.js';
10
+ import { cssModule } from './chunk-KVDXQMWI.js';
11
11
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
12
12
  import { forwardRef } from 'react';
13
13
  import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 } from 'react-aria-components';
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___RPSFN", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___JQ1vq", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___toUIA", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___WTdo9", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___03x3Q", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___Q9VIf", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___dEHSn", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___EKYu4", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___gDUBN" };
17
+ var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___IJEPv", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___xnlV3", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___kPe9U", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___AGdL-", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___GHPL-", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___n1ORj", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___3H5YY", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___OgYjL", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___dbWhu" };
18
18
  var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
19
19
  function CheckboxGroup(props, ref) {
20
20
  var _a, _b;
@@ -0,0 +1,250 @@
1
+ import { _RadioGroup } from './chunk-3WUDQLLR.js';
2
+ import { _RadioList } from './chunk-NKHMUPAP.js';
3
+ import { _Radio } from './chunk-NQOLP5NY.js';
4
+ import { _Checkbox } from './chunk-2NJ3RDMJ.js';
5
+ import { useLocalizedString } from './chunk-YEYNRBMQ.js';
6
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
7
+ import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
8
+ import { _ListBoxItemSkeleton } from './chunk-RW4GDPRX.js';
9
+ import { BadgeContext } from './chunk-CQDLZ42T.js';
10
+ import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
11
+ import { IconListContext } from './chunk-DHVVYSLB.js';
12
+ import { _Text } from './chunk-E7Y25WJE.js';
13
+ import { TextContext } from './chunk-X6SER3TZ.js';
14
+ import { SlotProvider } from './chunk-M36KANKC.js';
15
+ import { cssModule } from './chunk-KVDXQMWI.js';
16
+ import { CheckmarkIcon, IconContext } from '@hopper-ui/icons';
17
+ import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
18
+ import { forwardRef, useContext, useState } from 'react';
19
+ import { useContextProps, composeRenderProps, ListBoxItem as ListBoxItem$1, ListStateContext, DEFAULT_SLOT } from 'react-aria-components';
20
+ import { jsx, jsxs } from 'react/jsx-runtime';
21
+
22
+ // css-module:./ListBoxItem.module.css#css-module
23
+ var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-ListBoxItem___yV2lV", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___zojZL", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___pgMdo", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___scZYZ", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___RGvvE", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___wPFzb", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___ojOFi", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___wOYyA", "hop-ListBoxItem__radio-group": "ListBoxItem-module__hop-ListBoxItem__radio-group___neL2N", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___K1mdm", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___u30th", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___XfSik", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___NYKSZ", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___csfbD", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___nhfer", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___P9SLM", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___f9Zb9" };
24
+ var GlobalListBoxItemCssSelector = "hop-ListBoxItem";
25
+ var ListBoxItemToIconSizeAdapter = {
26
+ xs: "sm",
27
+ sm: "sm",
28
+ md: "md",
29
+ lg: "md"
30
+ };
31
+ var ListBoxItemToTextSizeAdapter = {
32
+ xs: "sm",
33
+ sm: "sm",
34
+ md: "sm",
35
+ lg: "md"
36
+ };
37
+ function ListBoxItemInner(props) {
38
+ const stringFormatter = useLocalizedString();
39
+ const listStateContext = useContext(ListStateContext);
40
+ const {
41
+ selectionMode,
42
+ isDisabled,
43
+ isFocusVisible,
44
+ isPressed,
45
+ isHovered,
46
+ isSelected,
47
+ selectionIndicator,
48
+ isInvalid,
49
+ size,
50
+ children
51
+ } = props;
52
+ const isRadio = selectionIndicator === "input" && selectionMode === "single";
53
+ const isCheckbox = selectionIndicator === "input" && selectionMode === "multiple";
54
+ const isCheck = selectionIndicator === "check" && selectionMode !== "none";
55
+ const isListHasSelection = listStateContext.selectionManager.selectedKeys.size > 0;
56
+ const [isListHasSelectionEnd, setIsListHasSelectionEnd] = useState(isListHasSelection);
57
+ const handleTransitionEnd = (event) => {
58
+ if (event.propertyName === "grid-template-columns") {
59
+ setIsListHasSelectionEnd((prev) => isListHasSelection && !prev);
60
+ }
61
+ };
62
+ return /* @__PURE__ */ jsxs(
63
+ "div",
64
+ {
65
+ className: ListBoxItem_module_default["hop-ListBoxItem__inner"],
66
+ "data-list-has-selection": isListHasSelection || void 0,
67
+ "data-list-has-selection-end": isListHasSelectionEnd || void 0,
68
+ onTransitionEnd: handleTransitionEnd,
69
+ children: [
70
+ isRadio && /* @__PURE__ */ jsx(
71
+ _RadioGroup,
72
+ {
73
+ size: "sm",
74
+ "aria-hidden": "true",
75
+ "aria-label": stringFormatter.format("ListBoxItem.indicatorAriaLabel"),
76
+ value: isSelected ? "radio" : null,
77
+ className: ListBoxItem_module_default["hop-ListBoxItem__radio-group"],
78
+ isInvalid,
79
+ children: /* @__PURE__ */ jsx(_RadioList, { children: /* @__PURE__ */ jsx(
80
+ _Radio,
81
+ {
82
+ className: ListBoxItem_module_default["hop-ListBoxItem__radio"],
83
+ value: "radio",
84
+ isDisabled,
85
+ isFocused: isFocusVisible,
86
+ isHovered,
87
+ isPressed
88
+ }
89
+ ) })
90
+ }
91
+ ),
92
+ isCheckbox && /* @__PURE__ */ jsx(
93
+ _Checkbox,
94
+ {
95
+ size: "sm",
96
+ value: "checkbox",
97
+ "aria-hidden": "true",
98
+ className: ListBoxItem_module_default["hop-ListBoxItem__checkbox"],
99
+ isDisabled,
100
+ isFocused: isFocusVisible,
101
+ isHovered,
102
+ isPressed,
103
+ isSelected,
104
+ isInvalid
105
+ }
106
+ ),
107
+ isCheck && /* @__PURE__ */ jsx(CheckmarkIcon, { className: ListBoxItem_module_default["hop-ListBoxItem__checkmark"], size: "sm" }),
108
+ /* @__PURE__ */ jsx(
109
+ SlotProvider,
110
+ {
111
+ values: [
112
+ [TextContext, {
113
+ slots: {
114
+ [DEFAULT_SLOT]: {
115
+ slot: "label",
116
+ className: ListBoxItem_module_default["hop-ListBoxItem__label"],
117
+ size: ListBoxItemToTextSizeAdapter[size]
118
+ },
119
+ label: {
120
+ className: ListBoxItem_module_default["hop-ListBoxItem__label"],
121
+ size: ListBoxItemToTextSizeAdapter[size]
122
+ },
123
+ description: {
124
+ className: ListBoxItem_module_default["hop-ListBoxItem__description"],
125
+ size: "xs"
126
+ }
127
+ }
128
+ }],
129
+ [IconListContext, {
130
+ slots: {
131
+ [DEFAULT_SLOT]: {
132
+ className: ListBoxItem_module_default["hop-ListBoxItem__icon-list"],
133
+ size: ListBoxItemToIconSizeAdapter[size]
134
+ },
135
+ "end-icon": {
136
+ className: ListBoxItem_module_default["hop-ListBoxItem__end-icon-list"],
137
+ size: ListBoxItemToIconSizeAdapter[size]
138
+ }
139
+ }
140
+ }],
141
+ [IconContext, {
142
+ slots: {
143
+ [DEFAULT_SLOT]: {
144
+ className: ListBoxItem_module_default["hop-ListBoxItem__icon"],
145
+ size: ListBoxItemToIconSizeAdapter[size]
146
+ },
147
+ "end-icon": {
148
+ className: ListBoxItem_module_default["hop-ListBoxItem__end-icon"],
149
+ size: ListBoxItemToIconSizeAdapter[size]
150
+ }
151
+ }
152
+ }],
153
+ [BadgeContext, {
154
+ className: ListBoxItem_module_default["hop-ListBoxItem__badge"],
155
+ isDisabled
156
+ }]
157
+ ],
158
+ children
159
+ }
160
+ )
161
+ ]
162
+ }
163
+ );
164
+ }
165
+ function ListBoxItem(props, ref) {
166
+ var _a;
167
+ [props, ref] = useContextProps(props, ref, ListBoxItemContext);
168
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
169
+ const {
170
+ className,
171
+ children: childrenProp,
172
+ isDisabled,
173
+ isInvalid,
174
+ isLoading,
175
+ size: sizeProp,
176
+ style: styleProp,
177
+ textValue: textValueProp,
178
+ selectionIndicator,
179
+ ...otherProps
180
+ } = ownProps;
181
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
182
+ const textValue = textValueProp != null ? textValueProp : typeof childrenProp === "string" ? childrenProp : void 0;
183
+ const classNames = composeClassnameRenderProps(
184
+ className,
185
+ GlobalListBoxItemCssSelector,
186
+ cssModule(
187
+ ListBoxItem_module_default,
188
+ "hop-ListBoxItem",
189
+ size,
190
+ selectionIndicator
191
+ ),
192
+ stylingProps.className
193
+ );
194
+ const style = composeRenderProps(styleProp, (prev) => {
195
+ return {
196
+ ...stylingProps.style,
197
+ ...prev
198
+ };
199
+ });
200
+ const children = composeRenderProps(childrenProp, (prev) => {
201
+ if (prev && isTextOnlyChildren(prev)) {
202
+ return /* @__PURE__ */ jsx(_Text, { slot: "label", children: prev });
203
+ }
204
+ return prev;
205
+ });
206
+ return /* @__PURE__ */ jsx(
207
+ ListBoxItem$1,
208
+ {
209
+ ...otherProps,
210
+ ref,
211
+ className: classNames,
212
+ style,
213
+ textValue,
214
+ isDisabled: isLoading || isDisabled,
215
+ "data-invalid": isInvalid || void 0,
216
+ "data-loading": isLoading || void 0,
217
+ children: (listBoxItemProps) => {
218
+ if (isLoading) {
219
+ return /* @__PURE__ */ jsx(
220
+ "div",
221
+ {
222
+ className: ListBoxItem_module_default["hop-ListBoxItem__inner"],
223
+ children: /* @__PURE__ */ jsx(
224
+ _ListBoxItemSkeleton,
225
+ {
226
+ size,
227
+ slot: "label"
228
+ }
229
+ )
230
+ }
231
+ );
232
+ }
233
+ return /* @__PURE__ */ jsx(
234
+ ListBoxItemInner,
235
+ {
236
+ ...listBoxItemProps,
237
+ selectionIndicator,
238
+ isInvalid,
239
+ size,
240
+ children: children(listBoxItemProps)
241
+ }
242
+ );
243
+ }
244
+ }
245
+ );
246
+ }
247
+ var _ListBoxItem = forwardRef(ListBoxItem);
248
+ _ListBoxItem.displayName = "ListBoxItem";
249
+
250
+ export { GlobalListBoxItemCssSelector, _ListBoxItem };