@hopper-ui/components 1.3.8 → 1.3.10

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 (213) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/Avatar/src/AnonymousAvatar.css +237 -10
  3. package/dist/Avatar/src/AnonymousAvatar.js +2 -2
  4. package/dist/Avatar/src/Avatar.css +184 -37
  5. package/dist/Avatar/src/Avatar.js +3 -3
  6. package/dist/Avatar/src/DeletedAvatar.css +237 -10
  7. package/dist/Avatar/src/DeletedAvatar.js +2 -2
  8. package/dist/Avatar/src/RichIconAvatarImage.css +237 -10
  9. package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
  10. package/dist/Avatar/src/index.css +184 -37
  11. package/dist/Avatar/src/index.js +5 -5
  12. package/dist/Badge/src/Badge.css +205 -21
  13. package/dist/Badge/src/Badge.js +2 -2
  14. package/dist/Badge/src/FloatingBadge.css +237 -10
  15. package/dist/Badge/src/FloatingBadge.js +1 -1
  16. package/dist/Badge/src/index.css +215 -31
  17. package/dist/Badge/src/index.js +3 -3
  18. package/dist/ComboBox/src/ComboBox.css +5135 -0
  19. package/dist/ComboBox/src/ComboBox.d.ts +94 -0
  20. package/dist/ComboBox/src/ComboBox.js +123 -0
  21. package/dist/ComboBox/src/ComboBoxContext.d.ts +16 -0
  22. package/dist/ComboBox/src/ComboBoxContext.js +2 -0
  23. package/dist/ComboBox/src/index.css +5135 -0
  24. package/dist/ComboBox/src/index.d.ts +12 -0
  25. package/dist/ComboBox/src/index.js +123 -0
  26. package/dist/Divider/src/Divider.css +229 -2
  27. package/dist/Divider/src/Divider.js +1 -1
  28. package/dist/Divider/src/index.css +229 -2
  29. package/dist/Divider/src/index.js +1 -1
  30. package/dist/ErrorMessage/src/ErrorMessage.css +158 -11
  31. package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
  32. package/dist/ErrorMessage/src/index.css +158 -11
  33. package/dist/ErrorMessage/src/index.js +2 -2
  34. package/dist/Form/src/Form.css +1994 -1821
  35. package/dist/Form/src/Form.d.ts +4 -0
  36. package/dist/Form/src/Form.js +69 -67
  37. package/dist/Form/src/index.css +1994 -1821
  38. package/dist/Form/src/index.js +69 -67
  39. package/dist/HelperMessage/src/HelperMessage.css +158 -11
  40. package/dist/HelperMessage/src/HelperMessage.js +2 -2
  41. package/dist/HelperMessage/src/index.css +158 -11
  42. package/dist/HelperMessage/src/index.js +2 -2
  43. package/dist/IconList/src/IconList.css +228 -1
  44. package/dist/IconList/src/IconList.js +1 -1
  45. package/dist/IconList/src/index.css +228 -1
  46. package/dist/IconList/src/index.js +1 -1
  47. package/dist/Link/src/Link.css +184 -37
  48. package/dist/Link/src/Link.js +3 -3
  49. package/dist/Link/src/index.css +184 -37
  50. package/dist/Link/src/index.js +3 -3
  51. package/dist/ListBox/src/ListBox.css +398 -346
  52. package/dist/ListBox/src/ListBox.js +7 -8
  53. package/dist/ListBox/src/ListBoxItem.css +391 -306
  54. package/dist/ListBox/src/ListBoxItem.js +5 -5
  55. package/dist/ListBox/src/ListBoxItemSkeleton.css +234 -7
  56. package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
  57. package/dist/ListBox/src/index.css +398 -346
  58. package/dist/ListBox/src/index.js +7 -8
  59. package/dist/Select/src/Select.css +1063 -890
  60. package/dist/Select/src/Select.d.ts +4 -0
  61. package/dist/Select/src/Select.js +69 -67
  62. package/dist/Select/src/SelectValue.css +197 -191
  63. package/dist/Select/src/SelectValue.js +5 -5
  64. package/dist/Select/src/index.css +1063 -890
  65. package/dist/Select/src/index.js +69 -67
  66. package/dist/Spinner/src/Spinner.css +166 -19
  67. package/dist/Spinner/src/Spinner.js +2 -2
  68. package/dist/Spinner/src/index.css +166 -19
  69. package/dist/Spinner/src/index.js +2 -2
  70. package/dist/buttons/src/Button.css +247 -100
  71. package/dist/buttons/src/Button.js +4 -4
  72. package/dist/buttons/src/ButtonGroup.css +238 -11
  73. package/dist/buttons/src/ButtonGroup.js +2 -2
  74. package/dist/buttons/src/ClearButton.css +298 -71
  75. package/dist/buttons/src/ClearButton.js +2 -2
  76. package/dist/buttons/src/EmbeddedButton.css +298 -71
  77. package/dist/buttons/src/EmbeddedButton.js +1 -1
  78. package/dist/buttons/src/index.css +329 -182
  79. package/dist/buttons/src/index.js +8 -8
  80. package/dist/checkbox/src/Checkbox.css +181 -34
  81. package/dist/checkbox/src/Checkbox.js +2 -2
  82. package/dist/checkbox/src/CheckboxField.css +162 -15
  83. package/dist/checkbox/src/CheckboxField.js +1 -1
  84. package/dist/checkbox/src/CheckboxGroup.css +233 -105
  85. package/dist/checkbox/src/CheckboxGroup.d.ts +4 -0
  86. package/dist/checkbox/src/CheckboxGroup.js +2 -2
  87. package/dist/checkbox/src/DecorativeCheckbox.css +189 -42
  88. package/dist/checkbox/src/DecorativeCheckbox.js +2 -2
  89. package/dist/checkbox/src/index.css +233 -105
  90. package/dist/checkbox/src/index.js +8 -8
  91. package/dist/{chunk-AJMHHWRN.js → chunk-2BYOZEHS.js} +1 -1
  92. package/dist/{chunk-4ARX267G.js → chunk-45BUVEOG.js} +8 -3
  93. package/dist/{chunk-BPFMTXRF.js → chunk-46Y3BNK6.js} +2 -2
  94. package/dist/{chunk-GMMQYERH.js → chunk-4KKT3O2S.js} +2 -2
  95. package/dist/chunk-4XHTP4GX.js +7 -0
  96. package/dist/{chunk-H2L3SQIO.js → chunk-6J3RVKV4.js} +509 -216
  97. package/dist/{chunk-6FDLX77I.js → chunk-7P6QVHCU.js} +2 -2
  98. package/dist/{chunk-KZWQ57ZJ.js → chunk-AH3LBZUR.js} +2 -2
  99. package/dist/{chunk-PWOFOTJR.js → chunk-ARURHRKE.js} +1 -1
  100. package/dist/{chunk-BFVCZF4H.js → chunk-B44HANDX.js} +2 -2
  101. package/dist/{chunk-E4PIETAY.js → chunk-BJNXUNAB.js} +2 -2
  102. package/dist/{chunk-MBFMR455.js → chunk-CIKHW47C.js} +1 -1
  103. package/dist/{chunk-NLQW4MJR.js → chunk-DCAA2AVQ.js} +1 -1
  104. package/dist/{chunk-J2OCA4O2.js → chunk-DV7LZMDA.js} +1 -1
  105. package/dist/{chunk-AC6JVAVX.js → chunk-FF6KAPPN.js} +5 -4
  106. package/dist/{chunk-YHH5TXPG.js → chunk-FI74MGJH.js} +3 -3
  107. package/dist/{chunk-THMKXCNG.js → chunk-GLFAZQ25.js} +3 -3
  108. package/dist/{chunk-Z2VOM3C3.js → chunk-GU6D6RQL.js} +5 -4
  109. package/dist/{chunk-Z54LX6IU.js → chunk-IBHSGV7Y.js} +3 -3
  110. package/dist/{chunk-JVDDMMRS.js → chunk-IJS2OFE5.js} +2 -2
  111. package/dist/{chunk-3LUQ6A2L.js → chunk-JCD37WMK.js} +2 -2
  112. package/dist/{chunk-CURG4YI3.js → chunk-JMQTEJC4.js} +4 -8
  113. package/dist/{chunk-7H4MZKSZ.js → chunk-JRL2S56W.js} +4 -4
  114. package/dist/{chunk-XEZVEXWO.js → chunk-KKL5HHYL.js} +5 -3
  115. package/dist/{chunk-KQ735GKE.js → chunk-LU7KOIOH.js} +5 -5
  116. package/dist/{chunk-AGRLOZWN.js → chunk-MMROXMQV.js} +4 -4
  117. package/dist/{chunk-DRG2376D.js → chunk-OBLOV2RN.js} +5 -4
  118. package/dist/{chunk-7CIKPH4J.js → chunk-OOY56G7Y.js} +2 -2
  119. package/dist/{chunk-QLLCRVCV.js → chunk-P5YCVNZM.js} +7 -4
  120. package/dist/{chunk-FIJ3CLQB.js → chunk-QX6MTYPY.js} +1 -1
  121. package/dist/{chunk-JNDKNURH.js → chunk-RKX7GGGY.js} +1 -1
  122. package/dist/{chunk-XJAHZJVO.js → chunk-RZ4K42NA.js} +1 -1
  123. package/dist/{chunk-XHMXUELC.js → chunk-TNXKWBYE.js} +8 -7
  124. package/dist/{chunk-MVBXZQAH.js → chunk-TTECXSWO.js} +2 -2
  125. package/dist/{chunk-CTTRBWBT.js → chunk-UBMAVA4B.js} +8 -3
  126. package/dist/{chunk-VMCZQTOI.js → chunk-VM6LLJYR.js} +2 -2
  127. package/dist/{chunk-IP4N5EBH.js → chunk-VRMZDHNL.js} +1 -1
  128. package/dist/{chunk-JURJ6BXP.js → chunk-X7ZM3VW6.js} +1 -1
  129. package/dist/{chunk-KXUA2JOW.js → chunk-XBVS62J3.js} +1 -1
  130. package/dist/{chunk-RR6N2GZX.js → chunk-XDRKVTAI.js} +2 -2
  131. package/dist/{chunk-PEB7PBUB.js → chunk-XFQJ7HYB.js} +1 -1
  132. package/dist/{chunk-UR26A74E.js → chunk-XNOILDPJ.js} +1 -1
  133. package/dist/{chunk-TQZKBOSP.js → chunk-XT3AM5KT.js} +1 -1
  134. package/dist/{chunk-R4LPKOSF.js → chunk-XT4MALWA.js} +2 -2
  135. package/dist/{chunk-2J5HM77N.js → chunk-Y7G6PIDC.js} +1 -1
  136. package/dist/chunk-ZRGWYBTI.js +9 -0
  137. package/dist/index.css +1997 -1824
  138. package/dist/index.d.ts +10 -7
  139. package/dist/index.js +69 -67
  140. package/dist/inputs/src/InputGroup.css +344 -197
  141. package/dist/inputs/src/InputGroup.js +1 -1
  142. package/dist/inputs/src/NumberField.css +336 -336
  143. package/dist/inputs/src/NumberField.d.ts +4 -0
  144. package/dist/inputs/src/NumberField.js +6 -6
  145. package/dist/inputs/src/PasswordField.css +354 -354
  146. package/dist/inputs/src/PasswordField.d.ts +4 -0
  147. package/dist/inputs/src/PasswordField.js +7 -7
  148. package/dist/inputs/src/RemainingCharacterCount.css +30 -30
  149. package/dist/inputs/src/RemainingCharacterCount.js +5 -5
  150. package/dist/inputs/src/SearchField.css +360 -360
  151. package/dist/inputs/src/SearchField.d.ts +4 -0
  152. package/dist/inputs/src/SearchField.js +8 -8
  153. package/dist/inputs/src/TextArea.css +331 -331
  154. package/dist/inputs/src/TextArea.d.ts +4 -0
  155. package/dist/inputs/src/TextArea.js +7 -7
  156. package/dist/inputs/src/TextField.css +358 -358
  157. package/dist/inputs/src/TextField.d.ts +4 -0
  158. package/dist/inputs/src/TextField.js +10 -10
  159. package/dist/inputs/src/index.css +404 -404
  160. package/dist/inputs/src/index.js +17 -17
  161. package/dist/overlays/Popover/src/Popover.css +2115 -1942
  162. package/dist/overlays/Popover/src/Popover.js +69 -67
  163. package/dist/overlays/Popover/src/index.css +2115 -1942
  164. package/dist/overlays/Popover/src/index.js +69 -67
  165. package/dist/radio/src/DecorativeRadio.css +189 -42
  166. package/dist/radio/src/DecorativeRadio.js +2 -2
  167. package/dist/radio/src/Radio.css +181 -34
  168. package/dist/radio/src/Radio.js +2 -2
  169. package/dist/radio/src/RadioField.css +162 -15
  170. package/dist/radio/src/RadioField.js +1 -1
  171. package/dist/radio/src/RadioGroup.css +227 -99
  172. package/dist/radio/src/RadioGroup.d.ts +4 -0
  173. package/dist/radio/src/RadioGroup.js +2 -2
  174. package/dist/radio/src/index.css +233 -105
  175. package/dist/radio/src/index.js +8 -8
  176. package/dist/switch/src/Switch.css +178 -31
  177. package/dist/switch/src/Switch.js +2 -2
  178. package/dist/switch/src/SwitchField.css +162 -15
  179. package/dist/switch/src/SwitchField.js +2 -2
  180. package/dist/switch/src/index.css +184 -37
  181. package/dist/switch/src/index.js +4 -4
  182. package/dist/tag/src/Tag.css +464 -360
  183. package/dist/tag/src/Tag.js +5 -5
  184. package/dist/tag/src/TagGroup.css +166 -38
  185. package/dist/tag/src/TagGroup.d.ts +4 -0
  186. package/dist/tag/src/TagGroup.js +2 -2
  187. package/dist/tag/src/TagList.css +226 -0
  188. package/dist/tag/src/index.css +474 -389
  189. package/dist/tag/src/index.js +9 -9
  190. package/dist/typography/Heading/src/Heading.css +151 -9
  191. package/dist/typography/Heading/src/Heading.js +1 -1
  192. package/dist/typography/Heading/src/index.css +151 -9
  193. package/dist/typography/Heading/src/index.js +1 -1
  194. package/dist/typography/Label/src/Label.css +211 -3
  195. package/dist/typography/Label/src/Label.d.ts +2 -2
  196. package/dist/typography/Label/src/Label.js +1 -1
  197. package/dist/typography/Label/src/index.css +211 -3
  198. package/dist/typography/Label/src/index.js +1 -1
  199. package/dist/typography/OverlineText/src/OverlineText.css +190 -6
  200. package/dist/typography/OverlineText/src/OverlineText.js +1 -1
  201. package/dist/typography/OverlineText/src/index.css +190 -6
  202. package/dist/typography/OverlineText/src/index.js +1 -1
  203. package/dist/typography/Text/src/Text.css +156 -9
  204. package/dist/typography/Text/src/Text.js +1 -1
  205. package/dist/typography/Text/src/index.css +156 -9
  206. package/dist/typography/Text/src/index.js +1 -1
  207. package/dist/utils/src/EnsureTextWrapper.css +226 -0
  208. package/dist/utils/src/EnsureTextWrapper.d.ts +9 -0
  209. package/dist/utils/src/EnsureTextWrapper.js +16 -0
  210. package/dist/utils/src/index.css +226 -0
  211. package/dist/utils/src/index.d.ts +11 -10
  212. package/dist/utils/src/index.js +14 -3
  213. package/package.json +1 -1
@@ -1,184 +1,421 @@
1
1
  import { PopoverContext } from './chunk-SC6ZK5ON.js';
2
+ import { EnsureTextWrapper } from './chunk-ZRGWYBTI.js';
3
+ import { TagGroupContext } from './chunk-LCAS3YQV.js';
2
4
  import { RadioGroupContext } from './chunk-5MBJWRZD.js';
5
+ import { TextFieldContext } from './chunk-O4XPUINW.js';
3
6
  import { ContentContext } from './chunk-IXB2WK56.js';
4
7
  import { _Footer } from './chunk-AQITZWYM.js';
5
8
  import { FooterContext } from './chunk-I67NHYK4.js';
6
- import { SearchFieldContext } from './chunk-3NKF5TPD.js';
7
- import { TextAreaContext } from './chunk-MHQZXLKW.js';
8
- import { TextFieldContext } from './chunk-O4XPUINW.js';
9
9
  import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
10
10
  import { PasswordFieldContext } from './chunk-QW45G6K4.js';
11
+ import { SearchFieldContext } from './chunk-3NKF5TPD.js';
12
+ import { TextAreaContext } from './chunk-MHQZXLKW.js';
11
13
  import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
12
14
  import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
15
+ import { ButtonContext as ButtonContext$1 } from './chunk-WMTWFKKP.js';
13
16
  import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
14
17
  import { SelectContext } from './chunk-T24MBA34.js';
15
- import { _SelectValue } from './chunk-VMCZQTOI.js';
18
+ import { _SelectValue } from './chunk-VM6LLJYR.js';
16
19
  import { HeadingContext } from './chunk-TXZ6BMFR.js';
17
20
  import { LabelContext } from './chunk-QCA3ZR56.js';
18
- import { ButtonContext } from './chunk-WMTWFKKP.js';
19
- import { LinkContext } from './chunk-4VVNSXIB.js';
20
- import { _ListBox } from './chunk-CURG4YI3.js';
21
+ import { _ListBox } from './chunk-JMQTEJC4.js';
21
22
  import { isFunction, isNil } from './chunk-TIPN4VYD.js';
22
23
  import { ListBoxContext } from './chunk-UIEP5BA5.js';
23
- import { _ListBoxItem } from './chunk-KQ735GKE.js';
24
+ import { _ListBoxItem } from './chunk-LU7KOIOH.js';
24
25
  import { CheckboxContext } from './chunk-2EAZPH3M.js';
25
- import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
26
- import { HelperMessageContext } from './chunk-HZKFQ33E.js';
27
26
  import { _HopperProvider } from './chunk-NMKBUGSO.js';
28
- import { ErrorMessageContext } from './chunk-FAE27DLF.js';
27
+ import { LinkContext } from './chunk-4VVNSXIB.js';
29
28
  import { FormContext } from './chunk-EURJK4ZT.js';
29
+ import { HelperMessageContext } from './chunk-HZKFQ33E.js';
30
+ import { ErrorMessageContext } from './chunk-FAE27DLF.js';
30
31
  import { BadgeContext } from './chunk-CQDLZ42T.js';
31
- import { _Text } from './chunk-2J5HM77N.js';
32
+ import { ComboBoxContext } from './chunk-4XHTP4GX.js';
32
33
  import { TextContext } from './chunk-X6SER3TZ.js';
33
34
  import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
34
35
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
35
36
  import { SlotProvider } from './chunk-M36KANKC.js';
36
37
  import { cssModule } from './chunk-KVDXQMWI.js';
38
+ import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
37
39
  import { useStyledSystem, useResponsiveValue, useColorSchemeContext } from '@hopper-ui/styled-system';
38
40
  export * from '@hopper-ui/styled-system';
39
- import clsx from 'clsx';
40
- import { forwardRef, useReducer, useRef, useEffect } from 'react';
41
- import { useContextProps, composeRenderProps, Popover as Popover$1, Dialog, Select as Select$1, Button, TextContext as TextContext$1, ButtonContext as ButtonContext$1, Form as Form$1 } from 'react-aria-components';
41
+ import { useObjectRef, mergeRefs, useResizeObserver } from '@react-aria/utils';
42
+ import { forwardRef, useRef, useState, useCallback, useReducer, useEffect } from 'react';
43
+ import { useContextProps, useSlottedContext, InputContext, composeRenderProps, TextContext as TextContext$1, ButtonContext, ComboBox as ComboBox$1, Group, Input, Button, Form as Form$1, Select as Select$1, Popover as Popover$1, Dialog } from 'react-aria-components';
42
44
  export { Collection } from 'react-aria-components';
43
45
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
44
- import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
46
+ import clsx2 from 'clsx';
45
47
 
46
- // css-module:./Popover.module.css#css-module
47
- var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___gIFrM", "fade": "Popover-module__fade___ph4u3", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___HAIbd", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___UFZee", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___H-yZY", "hop-Popover__title": "Popover-module__hop-Popover__title___7iBNB", "hop-Popover__content": "Popover-module__hop-Popover__content___9qGsS", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___4ZJko", "hop-Popover__footer": "Popover-module__hop-Popover__footer___GUjGi", "hop-Popover__actions": "Popover-module__hop-Popover__actions___8dlIL", "hop-Popover__action": "Popover-module__hop-Popover__action___PdeSV" };
48
- var GlobalPopoverCssSelector = "hop-Popover";
49
- function Popover(props, ref) {
50
- var _a;
51
- [props, ref] = useContextProps(props, ref, PopoverContext);
48
+ // css-module:./ComboBox.module.css#css-module
49
+ var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___vHTc3", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___Sygs6", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___dU65M", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___DA5cO", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___QAEmr", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___BawZW", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___5vadV", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___7xDiN", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___cX4Ec", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___pmSsc", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___JplVw", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___VIuZj" };
50
+ var GlobalComboBoxCssSelector = "hop-ComboBox";
51
+ function ComboBox(props, ref) {
52
+ var _a, _b, _c;
53
+ const {
54
+ inputRef: userProvidedInputRef = null,
55
+ ...propsWithoutRef
56
+ } = props;
57
+ [props, ref] = useContextProps(propsWithoutRef, ref, ComboBoxContext);
52
58
  const { stylingProps, ...ownProps } = useStyledSystem(props);
53
59
  const {
54
- autoWidth,
55
- children,
56
60
  className,
57
- offset = 4,
58
- boundaryOffset,
59
- isNonDialog,
60
- containerPadding = 16,
61
- containerProps,
62
- placement: placementProp,
61
+ children,
62
+ fieldChildren,
63
+ footer,
64
+ isAutoMenuWidth,
65
+ isFluid: isFluidProp,
66
+ isInvalid,
67
+ isRequired,
68
+ items,
69
+ menuTrigger = "focus",
70
+ listBoxProps,
71
+ necessityIndicator,
72
+ placeholder,
73
+ popoverProps,
74
+ prefix,
75
+ size: sizeProp,
63
76
  style: styleProp,
77
+ triggerProps,
64
78
  ...otherProps
65
79
  } = ownProps;
66
- const placement = (_a = useResponsiveValue(placementProp)) != null ? _a : "bottom";
67
- const { stylingProps: containerStylingProps, ...containerOwnProps } = useStyledSystem(containerProps != null ? containerProps : {});
80
+ const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, (_a = props.inputRef) != null ? _a : null));
81
+ const inputContext = useSlottedContext(InputContext);
82
+ const mergedInputRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext.ref) : inputRef;
83
+ const triggerRef = useRef(null);
84
+ const buttonRef = useRef(null);
85
+ const [triggerWidth, setTriggerWidth] = useState(null);
86
+ const onResize = useCallback(() => {
87
+ if (triggerRef.current) {
88
+ setTriggerWidth(triggerRef.current.offsetWidth + "px");
89
+ }
90
+ }, [triggerRef]);
91
+ useResizeObserver({
92
+ ref: triggerRef,
93
+ onResize
94
+ });
95
+ const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
68
96
  const {
69
- className: containerClassName,
70
- style: containerStyleProp,
71
- slot,
72
- ...containerOtherProps
73
- } = containerOwnProps;
74
- const { colorScheme } = useColorSchemeContext();
75
- const popoverClassNames = composeClassnameRenderProps(
97
+ className: triggerClassName,
98
+ style: triggerStyleProp,
99
+ ...otherTriggerProps
100
+ } = triggerOwnProps;
101
+ const { stylingProps: popoverStylingProps, ...popoverOwnProps } = useStyledSystem(popoverProps != null ? popoverProps : {});
102
+ const {
103
+ placement = "bottom start",
104
+ style: popoverStyleProp,
105
+ ...otherPopoverProps
106
+ } = popoverOwnProps;
107
+ const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "sm";
108
+ const isFluid = (_c = useResponsiveValue(isFluidProp)) != null ? _c : false;
109
+ const classNames = composeClassnameRenderProps(
76
110
  className,
77
- GlobalPopoverCssSelector,
111
+ GlobalComboBoxCssSelector,
78
112
  cssModule(
79
- Popover_module_default,
80
- "hop-Popover",
81
- isNonDialog && "non-dialog"
113
+ ComboBox_module_default,
114
+ "hop-ComboBox",
115
+ isFluid && "fluid",
116
+ size
82
117
  ),
83
118
  stylingProps.className
84
119
  );
85
- const containerClassNames = isNonDialog ? clsx(containerClassName, Popover_module_default["hop-Popover__dropdown"], containerStylingProps.className) : clsx(containerClassName, Popover_module_default["hop-Popover__dialog"], containerStylingProps.className);
120
+ const triggerClassNames = composeClassnameRenderProps(
121
+ triggerClassName,
122
+ cssModule(
123
+ ComboBox_module_default,
124
+ "hop-ComboBox__trigger",
125
+ size
126
+ ),
127
+ triggerStylingProps.className
128
+ );
129
+ const buttonClassNames = composeClassnameRenderProps(
130
+ cssModule(
131
+ ComboBox_module_default,
132
+ "hop-ComboBox__button"
133
+ )
134
+ );
135
+ const inputClassNames = composeClassnameRenderProps(
136
+ inputContext == null ? void 0 : inputContext.className,
137
+ ComboBox_module_default["hop-ComboBox__input"]
138
+ );
86
139
  const style = composeRenderProps(styleProp, (prev) => {
87
140
  return {
88
141
  ...stylingProps.style,
89
- "--container-padding": `${containerPadding}px`,
90
142
  ...prev
91
143
  };
92
144
  });
93
- const containerStyle = {
94
- ...containerStylingProps.style,
95
- ...containerStyleProp
96
- };
145
+ const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
146
+ return {
147
+ ...triggerStylingProps.style,
148
+ ...prev
149
+ };
150
+ });
151
+ const popoverStyle = composeRenderProps(popoverStyleProp, (prev) => {
152
+ return {
153
+ ...popoverStylingProps.style,
154
+ ...prev,
155
+ "--custom-trigger-width": triggerWidth
156
+ };
157
+ });
158
+ const handleMouseDown = useCallback((e) => {
159
+ if (inputRef.current && e.target !== inputRef.current && buttonRef.current && e.target !== buttonRef.current) {
160
+ inputRef.current.focus();
161
+ e.preventDefault();
162
+ }
163
+ }, [inputRef]);
164
+ const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
165
+ SlotProvider,
166
+ {
167
+ values: [
168
+ [TextContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }],
169
+ [IconContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }]
170
+ ],
171
+ children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
172
+ }
173
+ ) : null;
174
+ const footerMarkup = footer ? /* @__PURE__ */ jsx(
175
+ SlotProvider,
176
+ {
177
+ values: [
178
+ [TextContext, { size, className: ComboBox_module_default["hop-ComboBox__footer-text"] }]
179
+ ],
180
+ children: /* @__PURE__ */ jsx(
181
+ ClearProviders,
182
+ {
183
+ values: [
184
+ TextContext$1,
185
+ TextContext,
186
+ ButtonContext
187
+ ],
188
+ children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
189
+ }
190
+ )
191
+ }
192
+ ) : null;
97
193
  return /* @__PURE__ */ jsx(
98
- Popover$1,
194
+ ComboBox$1,
99
195
  {
100
196
  ...otherProps,
101
- offset,
102
197
  ref,
103
- className: popoverClassNames,
104
- arrowBoundaryOffset: boundaryOffset,
105
- "data-auto-width": autoWidth || void 0,
106
- containerPadding,
198
+ className: classNames,
107
199
  style,
108
- placement,
109
- children: (state) => {
110
- const content = isFunction(children) && !isNil(children) ? children(state) : children;
111
- if (isNonDialog) {
112
- return /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, className: Popover_module_default["hop-Popover__wrapper"], children: /* @__PURE__ */ jsx(
113
- "div",
200
+ isInvalid,
201
+ isRequired,
202
+ menuTrigger,
203
+ children: (comboBoxRenderProps) => {
204
+ const { isOpen } = comboBoxRenderProps;
205
+ const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
206
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
207
+ /* @__PURE__ */ jsx(
208
+ SlotProvider,
114
209
  {
115
- ...containerOtherProps,
116
- className: containerClassNames,
117
- style: containerStyle,
118
- slot: slot || void 0,
119
- children: /* @__PURE__ */ jsx(
120
- SlotProvider,
121
- {
122
- values: [
123
- [ListBoxContext, {
124
- className: Popover_module_default["hop-Popover__list-box"]
125
- }],
126
- [FooterContext, {
127
- className: Popover_module_default["hop-Popover__footer"]
128
- }],
129
- [LinkContext, {
130
- size: "sm",
131
- variant: "primary",
132
- isQuiet: true
133
- }]
134
- ],
135
- children: content
136
- }
137
- )
210
+ values: [
211
+ [LabelContext, {
212
+ className: ComboBox_module_default["hop-ComboBox__label"],
213
+ isRequired,
214
+ necessityIndicator
215
+ }],
216
+ [HelperMessageContext, {
217
+ className: ComboBox_module_default["hop-ComboBox__helper-message"]
218
+ }],
219
+ [ErrorMessageContext, {
220
+ className: ComboBox_module_default["hop-ComboBox__error-message"]
221
+ }]
222
+ ],
223
+ children: fieldChildren
138
224
  }
139
- ) });
140
- }
141
- return /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(Dialog, { ...containerOtherProps, className: containerClassNames, style: containerStyle, children: /* @__PURE__ */ jsx(
142
- SlotProvider,
143
- {
144
- values: [
145
- [HeadingContext, {
146
- className: Popover_module_default["hop-Popover__title"],
147
- size: "xs"
148
- }],
149
- [ButtonContext, {
150
- size: "sm",
151
- className: Popover_module_default["hop-Popover__action"]
152
- }],
153
- [ButtonGroupContext, {
154
- size: "sm",
155
- align: "end",
156
- className: Popover_module_default["hop-Popover__actions"]
157
- }],
158
- [ContentContext, {
159
- className: Popover_module_default["hop-Popover__content"]
160
- }],
161
- [FooterContext, {
162
- className: Popover_module_default["hop-Popover__footer"]
163
- }],
164
- [LinkContext, {
165
- size: "sm",
166
- variant: "primary",
167
- isQuiet: true
168
- }]
169
- ],
170
- children: content
171
- }
172
- ) }) });
225
+ ),
226
+ /* @__PURE__ */ jsxs(
227
+ Group,
228
+ {
229
+ ...otherTriggerProps,
230
+ ref: triggerRef,
231
+ className: triggerClassNames,
232
+ style: triggerStyle,
233
+ onMouseDown: handleMouseDown,
234
+ "data-selected": isOpen || void 0,
235
+ children: [
236
+ prefixMarkup,
237
+ /* @__PURE__ */ jsx(
238
+ Input,
239
+ {
240
+ ref: mergedInputRefs,
241
+ className: inputClassNames,
242
+ placeholder
243
+ }
244
+ ),
245
+ /* @__PURE__ */ jsx(Button, { className: buttonClassNames, ref: buttonRef, children: /* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: ComboBox_module_default["hop-ComboBox__button-icon"] }) })
246
+ ]
247
+ }
248
+ ),
249
+ /* @__PURE__ */ jsxs(
250
+ _Popover,
251
+ {
252
+ ...otherPopoverProps,
253
+ placement,
254
+ isNonDialog: true,
255
+ autoWidth: isAutoMenuWidth,
256
+ style: popoverStyle,
257
+ triggerRef,
258
+ children: [
259
+ /* @__PURE__ */ jsx(
260
+ SlotProvider,
261
+ {
262
+ values: [
263
+ [BadgeContext, {
264
+ variant: "secondary"
265
+ }]
266
+ ],
267
+ children: /* @__PURE__ */ jsx(_ListBox, { ...listBoxProps, items, size, isInvalid, children })
268
+ }
269
+ ),
270
+ footerMarkup
271
+ ]
272
+ }
273
+ )
274
+ ] });
173
275
  }
174
276
  }
175
277
  );
176
278
  }
177
- var _Popover = forwardRef(Popover);
178
- _Popover.displayName = "Popover";
279
+ var _ComboBox = forwardRef(ComboBox);
280
+ _ComboBox.displayName = "ComboBox";
281
+ var CompoundComboBox = Object.assign(_ComboBox, {
282
+ /**
283
+ * A combo box option is an item that is displayed in a combo box.
284
+ *
285
+ * [View Documentation](TODO)
286
+ */
287
+ Option: _ListBoxItem
288
+ });
289
+
290
+ // css-module:./Form.module.css#css-module
291
+ var Form_module_default = { "hop-Form": "Form-module__hop-Form___3lIeF" };
292
+ var GlobalFormCssSelector = "hop-Form";
293
+ function Form(props, ref) {
294
+ var _a;
295
+ [props, ref] = useContextProps(props, ref, FormContext);
296
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
297
+ const {
298
+ className,
299
+ children,
300
+ style,
301
+ isFluid,
302
+ isDisabled,
303
+ necessityIndicator,
304
+ size: sizeProp,
305
+ ...otherProps
306
+ } = ownProps;
307
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
308
+ const classNames = clsx2(
309
+ GlobalFormCssSelector,
310
+ cssModule(
311
+ Form_module_default,
312
+ "hop-Form"
313
+ ),
314
+ stylingProps.className,
315
+ className
316
+ );
317
+ const mergedStyles = {
318
+ ...stylingProps.style,
319
+ ...style
320
+ };
321
+ return /* @__PURE__ */ jsx(
322
+ SlotProvider,
323
+ {
324
+ values: [
325
+ [LabelContext, {
326
+ necessityIndicator
327
+ }],
328
+ [TextFieldContext, {
329
+ isDisabled,
330
+ isFluid,
331
+ necessityIndicator,
332
+ size
333
+ }],
334
+ [PasswordFieldContext, {
335
+ isDisabled,
336
+ isFluid,
337
+ necessityIndicator,
338
+ size
339
+ }],
340
+ [SearchFieldContext, {
341
+ isDisabled,
342
+ isFluid,
343
+ necessityIndicator,
344
+ size
345
+ }],
346
+ [NumberFieldContext, {
347
+ isDisabled,
348
+ necessityIndicator,
349
+ size,
350
+ isFluid
351
+ }],
352
+ [TextAreaContext, {
353
+ isDisabled,
354
+ necessityIndicator,
355
+ size,
356
+ isFluid
357
+ }],
358
+ [RadioGroupContext, {
359
+ isDisabled,
360
+ necessityIndicator,
361
+ size
362
+ }],
363
+ [CheckboxContext, {
364
+ isDisabled,
365
+ size
366
+ }],
367
+ [CheckboxFieldContext, {
368
+ isDisabled,
369
+ size
370
+ }],
371
+ [CheckboxGroupContext, {
372
+ isDisabled,
373
+ necessityIndicator,
374
+ size
375
+ }],
376
+ [ButtonContext$1, { isDisabled, size }]
377
+ ],
378
+ children: /* @__PURE__ */ jsx(
379
+ SlotProvider,
380
+ {
381
+ values: [
382
+ [SelectContext, {
383
+ isDisabled,
384
+ isFluid,
385
+ necessityIndicator,
386
+ size
387
+ }],
388
+ [ComboBoxContext, {
389
+ isDisabled,
390
+ isFluid,
391
+ necessityIndicator,
392
+ size
393
+ }],
394
+ [TagGroupContext, {
395
+ necessityIndicator,
396
+ size
397
+ }]
398
+ ],
399
+ children: /* @__PURE__ */ jsx(
400
+ Form$1,
401
+ {
402
+ ...otherProps,
403
+ ref,
404
+ className: classNames,
405
+ style: mergedStyles,
406
+ children
407
+ }
408
+ )
409
+ }
410
+ )
411
+ }
412
+ );
413
+ }
414
+ var _Form = forwardRef(Form);
415
+ _Form.displayName = "Form";
179
416
 
180
417
  // css-module:./Select.module.css#css-module
181
- var Select_module_default = { "hop-Select": "Select-module__hop-Select___-ffji", "hop-Select--fluid": "Select-module__hop-Select--fluid___a4kzj", "hop-Select__label": "Select-module__hop-Select__label___rG82d", "hop-Select__button": "Select-module__hop-Select__button___Ml5ar", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___z5rTo", "hop-Select__button--md": "Select-module__hop-Select__button--md___pRWBr", "hop-Select__prefix": "Select-module__hop-Select__prefix___ioXh1", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___hyZcO", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___uE0gS", "hop-Select__error-message": "Select-module__hop-Select__error-message___66saO" };
418
+ var Select_module_default = { "hop-Select": "Select-module__hop-Select___ZbNLm", "hop-Select--fluid": "Select-module__hop-Select--fluid___K6Mgi", "hop-Select__label": "Select-module__hop-Select__label___7seGi", "hop-Select__button": "Select-module__hop-Select__button___OGYCy", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___gCdBT", "hop-Select__button--md": "Select-module__hop-Select__button--md___iH8gX", "hop-Select__prefix": "Select-module__hop-Select__prefix___NxutE", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___b5ztr", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___zHxAN", "hop-Select__error-message": "Select-module__hop-Select__error-message___ob-XX" };
182
419
  var GlobalSelectCssSelector = "hop-Select";
183
420
  function Select(props, ref) {
184
421
  var _a, _b;
@@ -192,8 +429,10 @@ function Select(props, ref) {
192
429
  isAutoMenuWidth,
193
430
  isFluid: isFluidProp,
194
431
  isInvalid,
432
+ isRequired,
195
433
  items,
196
434
  listBoxProps,
435
+ necessityIndicator,
197
436
  popoverProps,
198
437
  prefix,
199
438
  renderValue,
@@ -237,10 +476,12 @@ function Select(props, ref) {
237
476
  ...prev
238
477
  };
239
478
  });
240
- const triggerStyle = {
241
- ...triggerStylingProps.style,
242
- ...triggerStyleProp
243
- };
479
+ const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
480
+ return {
481
+ ...triggerStylingProps.style,
482
+ ...prev
483
+ };
484
+ });
244
485
  const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
245
486
  SlotProvider,
246
487
  {
@@ -248,10 +489,28 @@ function Select(props, ref) {
248
489
  [TextContext, { size, className: Select_module_default["hop-Select__prefix"] }],
249
490
  [IconContext, { size, className: Select_module_default["hop-Select__prefix"] }]
250
491
  ],
251
- children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix })
492
+ children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
493
+ }
494
+ ) : null;
495
+ const footerMarkup = footer ? /* @__PURE__ */ jsx(
496
+ SlotProvider,
497
+ {
498
+ values: [
499
+ [TextContext, { size, className: Select_module_default["hop-Select__footer-text"] }]
500
+ ],
501
+ children: /* @__PURE__ */ jsx(
502
+ ClearProviders,
503
+ {
504
+ values: [
505
+ TextContext$1,
506
+ TextContext,
507
+ ButtonContext
508
+ ],
509
+ children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
510
+ }
511
+ )
252
512
  }
253
513
  ) : null;
254
- const footerMarkup = footer ? /* @__PURE__ */ jsx(_Footer, { children: isTextOnlyChildren(footer) ? /* @__PURE__ */ jsx(_Text, { children: footer }) : footer }) : null;
255
514
  return /* @__PURE__ */ jsx(
256
515
  Select$1,
257
516
  {
@@ -260,6 +519,7 @@ function Select(props, ref) {
260
519
  className: classNames,
261
520
  style,
262
521
  isInvalid,
522
+ isRequired,
263
523
  children: (selectRenderProps) => {
264
524
  const { isOpen } = selectRenderProps;
265
525
  const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
@@ -269,7 +529,9 @@ function Select(props, ref) {
269
529
  {
270
530
  values: [
271
531
  [LabelContext, {
272
- className: Select_module_default["hop-Select__label"]
532
+ className: Select_module_default["hop-Select__label"],
533
+ isRequired,
534
+ necessityIndicator
273
535
  }],
274
536
  [HelperMessageContext, {
275
537
  className: Select_module_default["hop-Select__helper-message"]
@@ -300,17 +562,7 @@ function Select(props, ref) {
300
562
  children: /* @__PURE__ */ jsx(_ListBox, { ...listBoxProps, items, size, isInvalid, children })
301
563
  }
302
564
  ),
303
- /* @__PURE__ */ jsx(
304
- ClearProviders,
305
- {
306
- values: [
307
- TextContext$1,
308
- TextContext,
309
- ButtonContext$1
310
- ],
311
- children: footerMarkup
312
- }
313
- )
565
+ footerMarkup
314
566
  ] })
315
567
  ] });
316
568
  }
@@ -737,97 +989,138 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
737
989
  };
738
990
  }
739
991
 
740
- // css-module:./Form.module.css#css-module
741
- var Form_module_default = { "hop-Form": "Form-module__hop-Form___00trG" };
742
- var GlobalFormCssSelector = "hop-Form";
743
- function Form(props, ref) {
992
+ // css-module:./Popover.module.css#css-module
993
+ var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___ISCgW", "fade": "Popover-module__fade___DHO8c", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___03gFJ", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___qdizI", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___ZgB-c", "hop-Popover__title": "Popover-module__hop-Popover__title___L1FD1", "hop-Popover__content": "Popover-module__hop-Popover__content___jvZrr", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___99mrp", "hop-Popover__footer": "Popover-module__hop-Popover__footer___YL-9d", "hop-Popover__actions": "Popover-module__hop-Popover__actions___wWdTk", "hop-Popover__action": "Popover-module__hop-Popover__action___XBM2m" };
994
+ var GlobalPopoverCssSelector = "hop-Popover";
995
+ function Popover(props, ref) {
744
996
  var _a;
745
- [props, ref] = useContextProps(props, ref, FormContext);
997
+ [props, ref] = useContextProps(props, ref, PopoverContext);
746
998
  const { stylingProps, ...ownProps } = useStyledSystem(props);
747
999
  const {
748
- className,
1000
+ autoWidth,
749
1001
  children,
750
- style,
751
- isFluid,
752
- isDisabled,
753
- size: sizeProp,
1002
+ className,
1003
+ offset = 4,
1004
+ boundaryOffset,
1005
+ isNonDialog,
1006
+ containerPadding = 16,
1007
+ containerProps,
1008
+ placement: placementProp,
1009
+ style: styleProp,
754
1010
  ...otherProps
755
1011
  } = ownProps;
756
- const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
757
- const classNames = clsx(
758
- GlobalFormCssSelector,
1012
+ const placement = (_a = useResponsiveValue(placementProp)) != null ? _a : "bottom";
1013
+ const { stylingProps: containerStylingProps, ...containerOwnProps } = useStyledSystem(containerProps != null ? containerProps : {});
1014
+ const {
1015
+ className: containerClassName,
1016
+ style: containerStyleProp,
1017
+ slot,
1018
+ ...containerOtherProps
1019
+ } = containerOwnProps;
1020
+ const { colorScheme } = useColorSchemeContext();
1021
+ const popoverClassNames = composeClassnameRenderProps(
1022
+ className,
1023
+ GlobalPopoverCssSelector,
759
1024
  cssModule(
760
- Form_module_default,
761
- "hop-Form"
1025
+ Popover_module_default,
1026
+ "hop-Popover",
1027
+ isNonDialog && "non-dialog"
762
1028
  ),
763
- stylingProps.className,
764
- className
1029
+ stylingProps.className
765
1030
  );
766
- const mergedStyles = {
767
- ...stylingProps.style,
768
- ...style
1031
+ const containerClassNames = isNonDialog ? clsx2(containerClassName, Popover_module_default["hop-Popover__dropdown"], containerStylingProps.className) : clsx2(containerClassName, Popover_module_default["hop-Popover__dialog"], containerStylingProps.className);
1032
+ const style = composeRenderProps(styleProp, (prev) => {
1033
+ return {
1034
+ ...stylingProps.style,
1035
+ "--container-padding": `${containerPadding}px`,
1036
+ ...prev
1037
+ };
1038
+ });
1039
+ const containerStyle = {
1040
+ ...containerStylingProps.style,
1041
+ ...containerStyleProp
769
1042
  };
770
1043
  return /* @__PURE__ */ jsx(
771
- SlotProvider,
1044
+ Popover$1,
772
1045
  {
773
- values: [
774
- [TextFieldContext, {
775
- isDisabled,
776
- isFluid,
777
- size
778
- }],
779
- [PasswordFieldContext, {
780
- isDisabled,
781
- isFluid,
782
- size
783
- }],
784
- [SearchFieldContext, {
785
- isDisabled,
786
- isFluid,
787
- size
788
- }],
789
- [NumberFieldContext, {
790
- isDisabled,
791
- size,
792
- isFluid
793
- }],
794
- [TextAreaContext, {
795
- isDisabled,
796
- size,
797
- isFluid
798
- }],
799
- [RadioGroupContext, {
800
- isDisabled,
801
- size
802
- }],
803
- [CheckboxContext, {
804
- isDisabled,
805
- size
806
- }],
807
- [CheckboxFieldContext, {
808
- isDisabled,
809
- size
810
- }],
811
- [CheckboxGroupContext, {
812
- isDisabled,
813
- size
814
- }],
815
- [ButtonContext, { isDisabled, size }]
816
- ],
817
- children: /* @__PURE__ */ jsx(
818
- Form$1,
819
- {
820
- ...otherProps,
821
- ref,
822
- className: classNames,
823
- style: mergedStyles,
824
- children
1046
+ ...otherProps,
1047
+ offset,
1048
+ ref,
1049
+ className: popoverClassNames,
1050
+ arrowBoundaryOffset: boundaryOffset,
1051
+ "data-auto-width": autoWidth || void 0,
1052
+ containerPadding,
1053
+ style,
1054
+ placement,
1055
+ children: (state) => {
1056
+ const content = isFunction(children) && !isNil(children) ? children(state) : children;
1057
+ if (isNonDialog) {
1058
+ return /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, className: Popover_module_default["hop-Popover__wrapper"], children: /* @__PURE__ */ jsx(
1059
+ "div",
1060
+ {
1061
+ ...containerOtherProps,
1062
+ className: containerClassNames,
1063
+ style: containerStyle,
1064
+ slot: slot || void 0,
1065
+ children: /* @__PURE__ */ jsx(
1066
+ SlotProvider,
1067
+ {
1068
+ values: [
1069
+ [ListBoxContext, {
1070
+ className: Popover_module_default["hop-Popover__list-box"]
1071
+ }],
1072
+ [FooterContext, {
1073
+ className: Popover_module_default["hop-Popover__footer"]
1074
+ }],
1075
+ [LinkContext, {
1076
+ size: "sm",
1077
+ variant: "primary",
1078
+ isQuiet: true
1079
+ }]
1080
+ ],
1081
+ children: content
1082
+ }
1083
+ )
1084
+ }
1085
+ ) });
825
1086
  }
826
- )
1087
+ return /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(Dialog, { ...containerOtherProps, className: containerClassNames, style: containerStyle, children: /* @__PURE__ */ jsx(
1088
+ SlotProvider,
1089
+ {
1090
+ values: [
1091
+ [HeadingContext, {
1092
+ className: Popover_module_default["hop-Popover__title"],
1093
+ size: "xs"
1094
+ }],
1095
+ [ButtonContext$1, {
1096
+ size: "sm",
1097
+ className: Popover_module_default["hop-Popover__action"]
1098
+ }],
1099
+ [ButtonGroupContext, {
1100
+ size: "sm",
1101
+ align: "end",
1102
+ className: Popover_module_default["hop-Popover__actions"]
1103
+ }],
1104
+ [ContentContext, {
1105
+ className: Popover_module_default["hop-Popover__content"]
1106
+ }],
1107
+ [FooterContext, {
1108
+ className: Popover_module_default["hop-Popover__footer"]
1109
+ }],
1110
+ [LinkContext, {
1111
+ size: "sm",
1112
+ variant: "primary",
1113
+ isQuiet: true
1114
+ }]
1115
+ ],
1116
+ children: content
1117
+ }
1118
+ ) }) });
1119
+ }
827
1120
  }
828
1121
  );
829
1122
  }
830
- var _Form = forwardRef(Form);
831
- _Form.displayName = "Form";
1123
+ var _Popover = forwardRef(Popover);
1124
+ _Popover.displayName = "Popover";
832
1125
 
833
- export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, CompoundSelect, GlobalFormCssSelector, GlobalPopoverCssSelector, GlobalSelectCssSelector, _Form, _Popover };
1126
+ export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, CompoundComboBox, CompoundSelect, GlobalComboBoxCssSelector, GlobalFormCssSelector, GlobalPopoverCssSelector, GlobalSelectCssSelector, _Form, _Popover };