@hopper-ui/components 1.0.13 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/Avatar/src/AnonymousAvatar.css +10 -10
  4. package/dist/Avatar/src/AnonymousAvatar.js +2 -2
  5. package/dist/Avatar/src/Avatar.css +37 -37
  6. package/dist/Avatar/src/Avatar.js +3 -3
  7. package/dist/Avatar/src/AvatarContext.d.ts +1 -1
  8. package/dist/Avatar/src/DeletedAvatar.css +10 -10
  9. package/dist/Avatar/src/DeletedAvatar.js +2 -2
  10. package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
  11. package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
  12. package/dist/Avatar/src/index.css +37 -37
  13. package/dist/Avatar/src/index.js +5 -5
  14. package/dist/Badge/src/Badge.css +10 -10
  15. package/dist/Badge/src/Badge.js +2 -2
  16. package/dist/Badge/src/index.css +10 -10
  17. package/dist/Badge/src/index.js +2 -2
  18. package/dist/Divider/src/Divider.css +2 -2
  19. package/dist/Divider/src/Divider.js +1 -1
  20. package/dist/Divider/src/index.css +2 -2
  21. package/dist/Divider/src/index.js +1 -1
  22. package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
  23. package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
  24. package/dist/ErrorMessage/src/index.css +11 -11
  25. package/dist/ErrorMessage/src/index.js +2 -2
  26. package/dist/Form/src/Form.css +4111 -0
  27. package/dist/Form/src/Form.d.ts +28 -0
  28. package/dist/Form/src/Form.js +114 -0
  29. package/dist/Form/src/FormContext.d.ts +8 -0
  30. package/dist/Form/src/FormContext.js +2 -0
  31. package/dist/Form/src/index.css +4111 -0
  32. package/dist/Form/src/index.d.ts +5 -0
  33. package/dist/Form/src/index.js +114 -0
  34. package/dist/HelperMessage/src/HelperMessage.css +11 -11
  35. package/dist/HelperMessage/src/HelperMessage.js +2 -2
  36. package/dist/HelperMessage/src/index.css +11 -11
  37. package/dist/HelperMessage/src/index.js +2 -2
  38. package/dist/IconList/src/IconList.css +1 -1
  39. package/dist/IconList/src/IconList.js +1 -1
  40. package/dist/IconList/src/index.css +1 -1
  41. package/dist/IconList/src/index.js +1 -1
  42. package/dist/Link/src/Link.css +31 -31
  43. package/dist/Link/src/Link.js +3 -3
  44. package/dist/Link/src/index.css +31 -31
  45. package/dist/Link/src/index.js +3 -3
  46. package/dist/ListBox/src/ListBox.css +369 -169
  47. package/dist/ListBox/src/ListBox.js +15 -14
  48. package/dist/ListBox/src/ListBoxItem.css +425 -225
  49. package/dist/ListBox/src/ListBoxItem.js +14 -13
  50. package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
  51. package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
  52. package/dist/ListBox/src/index.css +369 -169
  53. package/dist/ListBox/src/index.js +15 -14
  54. package/dist/Spinner/src/Spinner.css +19 -19
  55. package/dist/Spinner/src/Spinner.js +2 -2
  56. package/dist/Spinner/src/index.css +19 -19
  57. package/dist/Spinner/src/index.js +2 -2
  58. package/dist/buttons/src/Button.css +94 -94
  59. package/dist/buttons/src/Button.js +6 -6
  60. package/dist/buttons/src/ButtonGroup.css +11 -11
  61. package/dist/buttons/src/ButtonGroup.js +1 -1
  62. package/dist/buttons/src/ClearButton.css +375 -28
  63. package/dist/buttons/src/ClearButton.js +3 -3
  64. package/dist/buttons/src/EmbeddedButton.css +375 -28
  65. package/dist/buttons/src/EmbeddedButton.d.ts +9 -0
  66. package/dist/buttons/src/EmbeddedButton.js +1 -1
  67. package/dist/buttons/src/index.css +480 -133
  68. package/dist/buttons/src/index.js +9 -9
  69. package/dist/checkbox/src/Checkbox.css +31 -31
  70. package/dist/checkbox/src/Checkbox.js +3 -3
  71. package/dist/checkbox/src/CheckboxField.css +15 -15
  72. package/dist/checkbox/src/CheckboxField.js +1 -1
  73. package/dist/checkbox/src/CheckboxGroup.css +62 -59
  74. package/dist/checkbox/src/CheckboxGroup.js +1 -1
  75. package/dist/checkbox/src/index.css +62 -59
  76. package/dist/checkbox/src/index.js +6 -6
  77. package/dist/{chunk-KARK64JC.js → chunk-2XO5CZBO.js} +2 -2
  78. package/dist/{chunk-DZHRELLA.js → chunk-354H4FNA.js} +1 -1
  79. package/dist/{chunk-ZXDN2IRM.js → chunk-5IB23E3O.js} +6 -2
  80. package/dist/{chunk-WCLGYVXV.js → chunk-BKCMCC7V.js} +1 -1
  81. package/dist/{chunk-5WWMVQI4.js → chunk-CEUQHDEQ.js} +1 -1
  82. package/dist/{chunk-AMXRADUV.js → chunk-CKKLDA5J.js} +2 -2
  83. package/dist/{chunk-UGHMX7QX.js → chunk-COIGQP33.js} +3 -3
  84. package/dist/{chunk-NHM3MQI3.js → chunk-EJUIYBAC.js} +3 -3
  85. package/dist/chunk-EURJK4ZT.js +7 -0
  86. package/dist/{chunk-YEYNRBMQ.js → chunk-F4H76S4H.js} +6 -2
  87. package/dist/{chunk-44KY7MFF.js → chunk-FA4IXLWZ.js} +19 -8
  88. package/dist/chunk-FOD7XUSJ.js +150 -0
  89. package/dist/{chunk-W34MMJ2L.js → chunk-FOKTHCFK.js} +3 -3
  90. package/dist/chunk-HCRWIU7V.js +276 -0
  91. package/dist/chunk-IU6XMS2X.js +21 -0
  92. package/dist/{chunk-JN2FF2IX.js → chunk-IUOLKHYQ.js} +1 -1
  93. package/dist/{chunk-2MUGMKNO.js → chunk-IXWYHDGU.js} +1 -1
  94. package/dist/{chunk-SSMGKQ27.js → chunk-J44DIB5J.js} +3 -3
  95. package/dist/{chunk-GH5LAOQU.js → chunk-JJ4EFTES.js} +1 -1
  96. package/dist/{chunk-RGGVZKNN.js → chunk-L5KI4ZCL.js} +2 -2
  97. package/dist/{chunk-AYPCLDGU.js → chunk-M3K4IYX6.js} +1 -1
  98. package/dist/chunk-MHQZXLKW.js +7 -0
  99. package/dist/{chunk-IEE2HHGR.js → chunk-MJHMFANK.js} +1 -1
  100. package/dist/{chunk-CXIH6I5X.js → chunk-PFABSIDM.js} +1 -1
  101. package/dist/{chunk-ERE2XRQA.js → chunk-PQXVL3YJ.js} +1 -1
  102. package/dist/{chunk-CCIVRIKG.js → chunk-Q63YLWI6.js} +16 -3
  103. package/dist/{chunk-JLUFMLGV.js → chunk-RQKU3XDG.js} +1 -1
  104. package/dist/chunk-RWAVMW7T.js +70 -0
  105. package/dist/{chunk-TNVYVDLF.js → chunk-S5CK32KM.js} +6 -4
  106. package/dist/{chunk-LDORNYHF.js → chunk-SZSQZ4C7.js} +3 -3
  107. package/dist/{chunk-UPR32DV5.js → chunk-T6MAOVLH.js} +2 -2
  108. package/dist/{chunk-B42AJF74.js → chunk-TCOZUCPD.js} +142 -159
  109. package/dist/{chunk-M4IVTAHY.js → chunk-TG623HPA.js} +7 -5
  110. package/dist/{chunk-723W7LGB.js → chunk-U56LEEEA.js} +6 -6
  111. package/dist/{chunk-THQZBL4T.js → chunk-UT4CSUUM.js} +1 -1
  112. package/dist/{chunk-MVWQVBTK.js → chunk-V5Q245NH.js} +4 -2
  113. package/dist/chunk-VISBUD2K.js +172 -0
  114. package/dist/{chunk-QTV45NTY.js → chunk-VYKPDMP3.js} +3 -3
  115. package/dist/{chunk-CS2RAWQB.js → chunk-W2BQZEW6.js} +4 -4
  116. package/dist/{chunk-SW7LHIQ2.js → chunk-W474WFOP.js} +21 -9
  117. package/dist/{chunk-ESRYOELK.js → chunk-X253QCYD.js} +3 -2
  118. package/dist/{chunk-PAYZGXTT.js → chunk-XT2MZWEV.js} +1 -1
  119. package/dist/{chunk-SNWJJ3FF.js → chunk-XUJNQNB3.js} +1 -1
  120. package/dist/chunk-Z57VHYOF.js +22 -0
  121. package/dist/i18n/src/index.js +1 -1
  122. package/dist/i18n/src/useLocalizedString.js +1 -1
  123. package/dist/index.css +1625 -707
  124. package/dist/index.d.ts +9 -3
  125. package/dist/index.js +56 -50
  126. package/dist/inputs/src/InputGroup.css +78 -39
  127. package/dist/inputs/src/InputGroup.d.ts +10 -1
  128. package/dist/inputs/src/InputGroup.js +1 -1
  129. package/dist/inputs/src/NumberField.css +129 -90
  130. package/dist/inputs/src/NumberField.d.ts +1 -0
  131. package/dist/inputs/src/NumberField.js +18 -172
  132. package/dist/inputs/src/PasswordField.css +588 -199
  133. package/dist/inputs/src/PasswordField.d.ts +1 -0
  134. package/dist/inputs/src/PasswordField.js +9 -9
  135. package/dist/inputs/src/SearchField.css +594 -205
  136. package/dist/inputs/src/SearchField.d.ts +1 -0
  137. package/dist/inputs/src/SearchField.js +10 -10
  138. package/dist/inputs/src/TextArea.css +469 -0
  139. package/dist/inputs/src/TextArea.d.ts +62 -0
  140. package/dist/inputs/src/TextArea.js +23 -0
  141. package/dist/inputs/src/TextAreaContext.d.ts +8 -0
  142. package/dist/inputs/src/TextAreaContext.js +2 -0
  143. package/dist/inputs/src/TextField.css +589 -200
  144. package/dist/inputs/src/TextField.d.ts +2 -0
  145. package/dist/inputs/src/TextField.js +11 -11
  146. package/dist/inputs/src/index.css +948 -368
  147. package/dist/inputs/src/index.d.ts +4 -0
  148. package/dist/inputs/src/index.js +20 -13
  149. package/dist/overlays/Popover/src/Popover.css +1625 -707
  150. package/dist/overlays/Popover/src/Popover.js +56 -50
  151. package/dist/overlays/Popover/src/index.css +1625 -707
  152. package/dist/overlays/Popover/src/index.js +56 -50
  153. package/dist/radio/src/Radio.css +31 -31
  154. package/dist/radio/src/Radio.js +3 -3
  155. package/dist/radio/src/RadioField.css +15 -15
  156. package/dist/radio/src/RadioField.js +1 -1
  157. package/dist/radio/src/RadioGroup.css +62 -59
  158. package/dist/radio/src/RadioGroup.js +3 -3
  159. package/dist/radio/src/index.css +62 -59
  160. package/dist/radio/src/index.js +9 -9
  161. package/dist/switch/src/Switch.css +25 -25
  162. package/dist/switch/src/Switch.js +3 -3
  163. package/dist/switch/src/SwitchField.css +15 -15
  164. package/dist/switch/src/SwitchField.js +1 -1
  165. package/dist/switch/src/index.css +31 -31
  166. package/dist/switch/src/index.js +4 -4
  167. package/dist/tag/src/Tag.css +1041 -2241
  168. package/dist/tag/src/Tag.d.ts +6 -1
  169. package/dist/tag/src/Tag.js +8 -96
  170. package/dist/tag/src/TagGroup.css +24 -21
  171. package/dist/tag/src/TagGroup.d.ts +7 -2
  172. package/dist/tag/src/TagGroup.js +1 -1
  173. package/dist/tag/src/index.css +1104 -2205
  174. package/dist/tag/src/index.js +10 -91
  175. package/dist/typography/Heading/src/Heading.css +9 -9
  176. package/dist/typography/Heading/src/Heading.js +1 -1
  177. package/dist/typography/Heading/src/index.css +9 -9
  178. package/dist/typography/Heading/src/index.js +1 -1
  179. package/dist/typography/Label/src/Label.css +5 -2
  180. package/dist/typography/Label/src/Label.d.ts +8 -0
  181. package/dist/typography/Label/src/Label.js +2 -1
  182. package/dist/typography/Label/src/index.css +5 -2
  183. package/dist/typography/Label/src/index.js +2 -1
  184. package/dist/typography/OverlineText/src/OverlineText.css +6 -6
  185. package/dist/typography/OverlineText/src/OverlineText.js +1 -1
  186. package/dist/typography/OverlineText/src/index.css +6 -6
  187. package/dist/typography/OverlineText/src/index.js +1 -1
  188. package/dist/typography/Text/src/Text.css +9 -9
  189. package/dist/typography/Text/src/Text.js +1 -1
  190. package/dist/typography/Text/src/index.css +9 -9
  191. package/dist/typography/Text/src/index.js +1 -1
  192. package/dist/utils/src/index.d.ts +2 -0
  193. package/dist/utils/src/index.js +4 -2
  194. package/dist/utils/src/useFontFaceReady.d.ts +3 -0
  195. package/dist/utils/src/useFontFaceReady.js +2 -0
  196. package/dist/utils/src/useTruncatedText.d.ts +3 -0
  197. package/dist/utils/src/useTruncatedText.js +2 -0
  198. package/package.json +3 -3
  199. package/dist/Chip/src/Chip.css +0 -261
  200. package/dist/Chip/src/Chip.d.ts +0 -27
  201. package/dist/Chip/src/Chip.js +0 -10
  202. package/dist/Chip/src/ChipContext.d.ts +0 -10
  203. package/dist/Chip/src/ChipContext.js +0 -2
  204. package/dist/Chip/src/index.css +0 -261
  205. package/dist/Chip/src/index.d.ts +0 -7
  206. package/dist/Chip/src/index.js +0 -10
  207. package/dist/chunk-632B5YBQ.js +0 -7
  208. package/dist/chunk-I2YZLGRE.js +0 -43
  209. package/dist/chunk-RXZQB35O.js +0 -105
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
14
14
  // css-module:./RadioField.module.css#css-module
15
- var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___WTErz", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___CHfcV", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___g1iHe", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___LgMd1", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___SByLu" };
15
+ var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___uuirX", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___1lfkD", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___ytruf", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___waqNk", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___ySRK1" };
16
16
  var GlobalRadioFieldCssSelector = "hop-RadioField";
17
17
  var RadioToDescriptionSizeAdapter = {
18
18
  sm: "xs",
@@ -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___FB1PP", "hop-Heading--xs": "Heading-module__hop-Heading--xs___ZJL3P", "hop-Heading--sm": "Heading-module__hop-Heading--sm___fp3A6", "hop-Heading--md": "Heading-module__hop-Heading--md___rEF7K", "hop-Heading--lg": "Heading-module__hop-Heading--lg___kCSub", "hop-Heading--xl": "Heading-module__hop-Heading--xl___5VyFh", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___-qmiM", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___xDM3d" };
10
+ var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___FVhfN", "hop-Heading--xs": "Heading-module__hop-Heading--xs___t30s-", "hop-Heading--sm": "Heading-module__hop-Heading--sm___R6y6i", "hop-Heading--md": "Heading-module__hop-Heading--md___d6d9m", "hop-Heading--lg": "Heading-module__hop-Heading--lg___yqjzy", "hop-Heading--xl": "Heading-module__hop-Heading--xl___U0Gfz", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___B7lym", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___P65x-" };
11
11
  var GlobalHeadingCssSelector = "hop-Heading";
12
12
  function Heading(props, ref) {
13
13
  [props, ref] = useContextProps(props, ref, HeadingContext);
@@ -4,12 +4,12 @@ import { SlotProvider } from './chunk-M36KANKC.js';
4
4
  import { cssModule } from './chunk-KVDXQMWI.js';
5
5
  import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
6
6
  import { mergeRefs } from '@react-aria/utils';
7
- import { forwardRef, useRef, useCallback } from 'react';
8
- import { useContextProps, useSlottedContext, InputContext, composeRenderProps, Group } from 'react-aria-components';
7
+ import { forwardRef, useRef, useContext, useCallback } from 'react';
8
+ import { useContextProps, useSlottedContext, InputContext, TextAreaContext, FieldErrorContext, composeRenderProps, Group } from 'react-aria-components';
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
 
11
11
  // css-module:./InputGroup.module.css#css-module
12
- var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___yPMIO", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___SDrjN", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___uk-A0", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___aerYh" };
12
+ var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___PiLz0", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___Cp15-", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___ZeMr9", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___xLgn9", "hop-InputGroup__textarea": "InputGroup-module__hop-InputGroup__textarea___6Go7N" };
13
13
  var GlobalInputGroupCssSelector = "hop-InputGroup";
14
14
  function InputGroup(props, ref) {
15
15
  var _a, _b;
@@ -17,6 +17,9 @@ function InputGroup(props, ref) {
17
17
  const inputRef = useRef(null);
18
18
  const inputContext = useSlottedContext(InputContext);
19
19
  const mergedRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext == null ? void 0 : inputContext.ref) : inputRef;
20
+ const textAreaRef = useRef(null);
21
+ const textAreaContext = useSlottedContext(TextAreaContext);
22
+ const mergedTextAreaRefs = (textAreaContext == null ? void 0 : textAreaContext.ref) ? mergeRefs(textAreaRef, textAreaContext == null ? void 0 : textAreaContext.ref) : textAreaRef;
20
23
  const { stylingProps, ...ownProps } = useStyledSystem(props);
21
24
  const {
22
25
  className,
@@ -24,7 +27,9 @@ function InputGroup(props, ref) {
24
27
  children,
25
28
  size: sizeProp,
26
29
  isFluid: isFluidProp,
30
+ isInvalid,
27
31
  inputClassName,
32
+ inputType = "text",
28
33
  onMouseDown,
29
34
  ...otherProps
30
35
  } = ownProps;
@@ -41,6 +46,7 @@ function InputGroup(props, ref) {
41
46
  ),
42
47
  stylingProps.className
43
48
  );
49
+ const validation = useContext(FieldErrorContext);
44
50
  const style = composeRenderProps(styleProp, (prev) => {
45
51
  return {
46
52
  ...stylingProps.style,
@@ -62,16 +68,23 @@ function InputGroup(props, ref) {
62
68
  ...inputContext,
63
69
  ref: mergedRefs,
64
70
  className: composeClassnameRenderProps(inputContext == null ? void 0 : inputContext.className, inputClassName, InputGroup_module_default["hop-InputGroup__input"])
71
+ }],
72
+ [TextAreaContext, {
73
+ ...textAreaContext,
74
+ ref: mergedTextAreaRefs,
75
+ className: composeClassnameRenderProps(textAreaContext == null ? void 0 : textAreaContext.className, inputClassName, InputGroup_module_default["hop-InputGroup__textarea"])
65
76
  }]
66
77
  ],
67
78
  children: /* @__PURE__ */ jsx(
68
79
  Group,
69
80
  {
70
81
  ...otherProps,
82
+ isInvalid: (validation == null ? void 0 : validation.isInvalid) || isInvalid,
71
83
  onMouseDown: handleMouseDown,
72
84
  ref,
73
85
  className: classNames,
74
86
  style,
87
+ "data-input-type": inputType,
75
88
  children
76
89
  }
77
90
  )
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
10
10
  import { jsx } from 'react/jsx-runtime';
11
11
 
12
12
  // css-module:./ButtonGroup.module.css#css-module
13
- var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___0hm3B", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___EoJ-O", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___oZqn2", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___Jf3Eh", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___b2RH-", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___Cah50", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___l0jS3", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___8sZ-4" };
13
+ var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___pg9lD", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___IeYfB", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___20OwE", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___8cAOO", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___bXsRU", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___QRAcI", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___72Z7i", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___cVwde" };
14
14
  var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
15
15
  function ButtonGroup(props, ref) {
16
16
  var _a, _b, _c, _d, _e;
@@ -0,0 +1,70 @@
1
+ import { LabelContext } from './chunk-QCA3ZR56.js';
2
+ import { useLocalizedString } from './chunk-F4H76S4H.js';
3
+ import { cssModule } from './chunk-KVDXQMWI.js';
4
+ import { useStyledSystem } from '@hopper-ui/styled-system';
5
+ import clsx from 'clsx';
6
+ import { forwardRef } from 'react';
7
+ import { useContextProps, Label as Label$1 } from 'react-aria-components';
8
+ import { jsx, jsxs } from 'react/jsx-runtime';
9
+
10
+ // css-module:./Label.module.css#css-module
11
+ var Label_module_default = { "hop-Label": "Label-module__hop-Label___L4zrw", "hop-Label__indicator": "Label-module__hop-Label__indicator___mWy1n" };
12
+ var GlobalLabelCssSelector = "hop-Label";
13
+ function Label(props, ref) {
14
+ [props, ref] = useContextProps(props, ref, LabelContext);
15
+ const { stylingProps, ...ownProps } = useStyledSystem(props);
16
+ const {
17
+ className,
18
+ children,
19
+ style,
20
+ isRequired,
21
+ necessityIndicator = isRequired != null ? "icon" : null,
22
+ ...otherProps
23
+ } = ownProps;
24
+ const stringFormatter = useLocalizedString();
25
+ const classNames = clsx(
26
+ className,
27
+ GlobalLabelCssSelector,
28
+ cssModule(
29
+ Label_module_default,
30
+ "hop-Label"
31
+ ),
32
+ stylingProps.className
33
+ );
34
+ const mergedStyles = {
35
+ ...stylingProps.style,
36
+ ...style
37
+ };
38
+ const necessityLabel = isRequired ? stringFormatter.format("Label.necessityLabel.required") : stringFormatter.format("Label.necessityLabel.optional");
39
+ const requiredIndicator = /* @__PURE__ */ jsx(
40
+ "span",
41
+ {
42
+ "aria-hidden": "true",
43
+ "aria-label": necessityLabel,
44
+ className: Label_module_default["hop-Label__indicator"],
45
+ children: "*"
46
+ }
47
+ );
48
+ return /* @__PURE__ */ jsxs(
49
+ Label$1,
50
+ {
51
+ ...otherProps,
52
+ ref,
53
+ className: classNames,
54
+ style: mergedStyles,
55
+ children: [
56
+ children,
57
+ necessityIndicator === "label" && /* @__PURE__ */ jsxs("span", { children: [
58
+ " (",
59
+ necessityLabel,
60
+ ")"
61
+ ] }),
62
+ necessityIndicator === "icon" && isRequired && requiredIndicator
63
+ ]
64
+ }
65
+ );
66
+ }
67
+ var _Label = forwardRef(Label);
68
+ _Label.displayName = "Label";
69
+
70
+ export { GlobalLabelCssSelector, _Label };
@@ -1,6 +1,6 @@
1
1
  import { SearchFieldContext } from './chunk-3NKF5TPD.js';
2
- import { _InputGroup } from './chunk-CCIVRIKG.js';
3
- import { _ClearButton } from './chunk-KARK64JC.js';
2
+ import { _InputGroup } from './chunk-Q63YLWI6.js';
3
+ import { _ClearButton } from './chunk-2XO5CZBO.js';
4
4
  import { LabelContext } from './chunk-QCA3ZR56.js';
5
5
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
6
6
  import { HelperMessageContext } from './chunk-HZKFQ33E.js';
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, Input, SearchField as SearchField$
17
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
18
 
19
19
  // css-module:./SearchField.module.css#css-module
20
- var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___0Volv", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___LVKwh", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___mDMF5", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___Rw0TX", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___L69-q", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___22XQJ", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___JMZPT", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___DoWSS", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___sXW23" };
20
+ var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___eeVrI", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___tJI3Z", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___FHalK", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___051pF", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___4Vkaq", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___yge5P", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___TgcwI", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___ACElD", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___zKqjG" };
21
21
  var GlobalSearchFieldCssSelector = "hop-SearchField";
22
22
  function SearchField(props, ref) {
23
23
  var _a;
@@ -38,6 +38,7 @@ function SearchField(props, ref) {
38
38
  icon = /* @__PURE__ */ jsx(SearchIcon, {}),
39
39
  isDisabled,
40
40
  isInvalid,
41
+ isRequired,
41
42
  ...otherProps
42
43
  } = ownProps;
43
44
  const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
@@ -89,7 +90,7 @@ function SearchField(props, ref) {
89
90
  SlotProvider,
90
91
  {
91
92
  values: [
92
- [LabelContext, { className: SearchField_module_default["hop-SearchField__Label"] }],
93
+ [LabelContext, { className: SearchField_module_default["hop-SearchField__Label"], isRequired }],
93
94
  [HelperMessageContext, { className: SearchField_module_default["hop-SearchField__HelperMessage"] }],
94
95
  [ErrorMessageContext, { className: SearchField_module_default["hop-SearchField__ErrorMessage"] }]
95
96
  ],
@@ -107,6 +108,7 @@ function SearchField(props, ref) {
107
108
  className: classNames,
108
109
  isDisabled,
109
110
  isInvalid,
111
+ isRequired,
110
112
  ...otherProps,
111
113
  children: childrenMarkup
112
114
  }
@@ -1,8 +1,8 @@
1
1
  import { LinkContext } from './chunk-4VVNSXIB.js';
2
- import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
3
2
  import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
3
+ import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
4
4
  import { IconListContext } from './chunk-DHVVYSLB.js';
5
- import { _Text } from './chunk-PAYZGXTT.js';
5
+ import { _Text } from './chunk-XT2MZWEV.js';
6
6
  import { TextContext } from './chunk-X6SER3TZ.js';
7
7
  import { SlotProvider } from './chunk-M36KANKC.js';
8
8
  import { cssModule } from './chunk-KVDXQMWI.js';
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
13
13
  import { jsx } from 'react/jsx-runtime';
14
14
 
15
15
  // css-module:./Link.module.css#css-module
16
- var Link_module_default = { "hop-Link": "Link-module__hop-Link___Hq4l1", "hop-Link--quiet": "Link-module__hop-Link--quiet___ozYD8", "hop-Link--primary": "Link-module__hop-Link--primary___AKRce", "hop-Link--secondary": "Link-module__hop-Link--secondary___kYwz9", "hop-Link__icon": "Link-module__hop-Link__icon___mxuev", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___tQIDd", "hop-Link__text": "Link-module__hop-Link__text___-UVs-", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___OeHzX", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___zZt0A" };
16
+ var Link_module_default = { "hop-Link": "Link-module__hop-Link___7j4hs", "hop-Link--quiet": "Link-module__hop-Link--quiet___qnop0", "hop-Link--primary": "Link-module__hop-Link--primary___rpo9E", "hop-Link--secondary": "Link-module__hop-Link--secondary___SMBNe", "hop-Link__icon": "Link-module__hop-Link__icon___vyHs-", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___6SUHC", "hop-Link__text": "Link-module__hop-Link__text___y7rFF", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___tiWhC", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___kbqc7" };
17
17
  var GlobalLinkCssSelector = "hop-Link";
18
18
  var LinkToIconSizeAdapter = {
19
19
  inherit: void 0,
@@ -1,6 +1,6 @@
1
1
  import { useRenderProps } from './chunk-NH3IVMXB.js';
2
2
  import { ErrorMessageContext } from './chunk-FAE27DLF.js';
3
- import { _Text } from './chunk-PAYZGXTT.js';
3
+ import { _Text } from './chunk-XT2MZWEV.js';
4
4
  import { cssModule } from './chunk-KVDXQMWI.js';
5
5
  import { WarningIcon } from '@hopper-ui/icons';
6
6
  import { useStyledSystem } from '@hopper-ui/styled-system';
@@ -10,7 +10,7 @@ import { FieldErrorContext, useContextProps } from 'react-aria-components';
10
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
11
 
12
12
  // css-module:./ErrorMessage.module.css#css-module
13
- var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___hGjrh", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___wE1hg" };
13
+ var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___6qmlS", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___m4Mae" };
14
14
  var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
15
15
  function ErrorMessage(props, ref) {
16
16
  const validation = useContext(FieldErrorContext);
@@ -1,142 +1,107 @@
1
1
  import { PopoverContext } from './chunk-SC6ZK5ON.js';
2
- import { TagContext } from './chunk-EWMWQ2MC.js';
3
2
  import { ContentContext } from './chunk-IXB2WK56.js';
4
3
  import { FooterContext } from './chunk-I67NHYK4.js';
4
+ import { PasswordFieldContext } from './chunk-QW45G6K4.js';
5
+ import { SearchFieldContext } from './chunk-3NKF5TPD.js';
6
+ import { TextAreaContext } from './chunk-MHQZXLKW.js';
7
+ import { TextFieldContext } from './chunk-O4XPUINW.js';
8
+ import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
5
9
  import { HeadingContext } from './chunk-TXZ6BMFR.js';
10
+ import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
11
+ import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
6
12
  import { ButtonContext } from './chunk-WMTWFKKP.js';
7
13
  import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
8
- import { _ClearButton } from './chunk-KARK64JC.js';
9
- import { _Spinner } from './chunk-AMXRADUV.js';
10
14
  import { LinkContext } from './chunk-4VVNSXIB.js';
11
15
  import { isFunction, isNil } from './chunk-TIPN4VYD.js';
12
- import { useLocalizedString } from './chunk-YEYNRBMQ.js';
16
+ import { RadioGroupContext } from './chunk-5MBJWRZD.js';
17
+ import { CheckboxContext } from './chunk-2EAZPH3M.js';
13
18
  import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
14
19
  import { _HopperProvider } from './chunk-NMKBUGSO.js';
15
- import { BadgeContext } from './chunk-CQDLZ42T.js';
16
- import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
17
- import { IconListContext } from './chunk-DHVVYSLB.js';
18
- import { _Text } from './chunk-PAYZGXTT.js';
19
- import { TextContext } from './chunk-X6SER3TZ.js';
20
- import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
20
+ import { FormContext } from './chunk-EURJK4ZT.js';
21
21
  import { SlotProvider } from './chunk-M36KANKC.js';
22
22
  import { cssModule } from './chunk-KVDXQMWI.js';
23
- import { IconContext } from '@hopper-ui/icons';
24
- import { useStyledSystem, useResponsiveValue, useColorSchemeContext } from '@hopper-ui/styled-system';
23
+ import { useStyledSystem, useColorSchemeContext, useResponsiveValue } from '@hopper-ui/styled-system';
25
24
  export * from '@hopper-ui/styled-system';
25
+ import clsx from 'clsx';
26
26
  import { forwardRef, useReducer, useRef, useEffect } from 'react';
27
- import { useContextProps, composeRenderProps, Tag as Tag$1, Popover as Popover$1, Dialog } from 'react-aria-components';
27
+ import { useContextProps, Popover as Popover$1, Dialog, Form as Form$1 } from 'react-aria-components';
28
28
  export { Collection } from 'react-aria-components';
29
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
30
- import clsx from 'clsx';
29
+ import { jsx } from 'react/jsx-runtime';
31
30
 
32
- // css-module:./Tag.module.css#css-module
33
- var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___uLop7", "hop-Tag--md": "Tag-module__hop-Tag--md___zQef7", "hop-Tag__icon": "Tag-module__hop-Tag__icon___1WuBJ", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___VWSnJ", "hop-Tag__badge": "Tag-module__hop-Tag__badge___6wq28", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___ltB14", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___ASKZ9", "hop-Tag--lg": "Tag-module__hop-Tag--lg___bwIxr", "hop-Tag__text": "Tag-module__hop-Tag__text___vJciq", "hop-Badge--secondary": "Tag-module__hop-Badge--secondary___tSUkl" };
34
- var GlobalTagCssSelector = "hop-Tag";
35
- var TagToTextSizeAdapter = {
36
- md: "xs",
37
- lg: "sm"
38
- };
39
- function Tag(props, ref) {
40
- var _a;
41
- [props, ref] = useContextProps(props, ref, TagContext);
31
+ // css-module:./Popover.module.css#css-module
32
+ var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___nKZak", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___vnp7r", "hop-Popover__title": "Popover-module__hop-Popover__title___NazSs", "hop-Popover__actions": "Popover-module__hop-Popover__actions___VImV7", "hop-Popover__action": "Popover-module__hop-Popover__action___fsXDT", "hop-Popover__content": "Popover-module__hop-Popover__content___fZfhh", "hop-Popover__footer": "Popover-module__hop-Popover__footer___GPaEX" };
33
+ var GlobalPopoverCssSelector = "hop-Popover";
34
+ function Popover(props, ref) {
35
+ [props, ref] = useContextProps(props, ref, PopoverContext);
42
36
  const { stylingProps, ...ownProps } = useStyledSystem(props);
43
37
  const {
38
+ children,
44
39
  className,
45
- children: childrenProp,
46
- isInvalid,
47
- isLoading,
48
- size: sizeProp = "md",
49
- style: styleProp,
50
- textValue: textValueProp,
40
+ offset = 4,
41
+ boundaryOffset,
51
42
  ...otherProps
52
43
  } = ownProps;
53
- const stringFormatter = useLocalizedString();
54
- const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
55
- const textValue = textValueProp != null ? textValueProp : typeof childrenProp === "string" ? childrenProp : void 0;
56
- const classNames = composeClassnameRenderProps(
44
+ const { colorScheme } = useColorSchemeContext();
45
+ const popoverClassNames = composeClassnameRenderProps(
57
46
  className,
58
- GlobalTagCssSelector,
47
+ GlobalPopoverCssSelector,
59
48
  cssModule(
60
- Tag_module_default,
61
- "hop-Tag",
62
- size
63
- ),
64
- stylingProps.className
49
+ Popover_module_default,
50
+ "hop-Popover"
51
+ )
65
52
  );
66
- const style = composeRenderProps(styleProp, (prev) => {
67
- return {
68
- ...stylingProps.style,
69
- ...prev
70
- };
71
- });
72
- const children = composeRenderProps(childrenProp, (prev) => {
73
- if (prev && isTextOnlyChildren(prev)) {
74
- return /* @__PURE__ */ jsx(_Text, { children: prev });
75
- }
76
- return prev;
77
- });
78
53
  return /* @__PURE__ */ jsx(
79
- Tag$1,
54
+ Popover$1,
80
55
  {
81
56
  ...otherProps,
57
+ offset,
82
58
  ref,
83
- className: classNames,
84
- style,
85
- textValue,
86
- "data-invalid": isInvalid || void 0,
87
- "data-loading": isLoading || void 0,
88
- children: (tagProps) => {
89
- const { allowsRemoving, isDisabled } = tagProps;
90
- return /* @__PURE__ */ jsxs(Fragment, { children: [
91
- /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
59
+ className: popoverClassNames,
60
+ arrowBoundaryOffset: boundaryOffset,
61
+ children: (state) => /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(
62
+ Dialog,
63
+ {
64
+ className: clsx(stylingProps.className, Popover_module_default["hop-Popover__dialog"]),
65
+ style: stylingProps.style,
66
+ children: /* @__PURE__ */ jsx(
92
67
  SlotProvider,
93
68
  {
94
69
  values: [
95
- [TextContext, {
96
- className: Tag_module_default["hop-Tag__text"],
97
- size: TagToTextSizeAdapter[size]
70
+ [HeadingContext, {
71
+ className: Popover_module_default["hop-Popover__title"],
72
+ size: "xs"
73
+ }],
74
+ [ButtonContext, {
75
+ size: "sm",
76
+ className: Popover_module_default["hop-Popover__action"]
77
+ }],
78
+ [ButtonGroupContext, {
79
+ size: "sm",
80
+ align: "end",
81
+ className: Popover_module_default["hop-Popover__actions"]
98
82
  }],
99
- [IconListContext, {
100
- className: Tag_module_default["hop-Tag__icon-list"],
101
- size: "sm"
83
+ [ContentContext, {
84
+ className: Popover_module_default["hop-Popover__content"]
102
85
  }],
103
- [IconContext, {
104
- className: Tag_module_default["hop-Tag__icon"],
105
- size: "sm"
86
+ [FooterContext, {
87
+ className: Popover_module_default["hop-Popover__footer"]
106
88
  }],
107
- [BadgeContext, {
108
- className: Tag_module_default["hop-Tag__badge"],
109
- isDisabled
89
+ [LinkContext, {
90
+ size: "sm",
91
+ variant: "primary",
92
+ isQuiet: true
110
93
  }]
111
94
  ],
112
- children: children(tagProps)
113
- }
114
- ) }),
115
- allowsRemoving && !isLoading && /* @__PURE__ */ jsx(
116
- _ClearButton,
117
- {
118
- slot: "remove",
119
- isDisabled,
120
- className: Tag_module_default["hop-Tag__remove-btn"],
121
- "aria-label": stringFormatter.format("Tag.removeAriaLabel"),
122
- size
123
- }
124
- ),
125
- isLoading && /* @__PURE__ */ jsx(
126
- _Spinner,
127
- {
128
- "aria-label": stringFormatter.format("Tag.spinnerAriaLabel"),
129
- size: "sm",
130
- className: Tag_module_default["hop-Tag__Spinner"]
95
+ children: isFunction(children) && !isNil(children) ? children(state) : children
131
96
  }
132
97
  )
133
- ] });
134
- }
98
+ }
99
+ ) })
135
100
  }
136
101
  );
137
102
  }
138
- var _Tag = forwardRef(Tag);
139
- _Tag.displayName = "Tag";
103
+ var _Popover = forwardRef(Popover);
104
+ _Popover.displayName = "Popover";
140
105
  function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
141
106
  let { cursor, getKey } = opts;
142
107
  return {
@@ -547,79 +512,97 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
547
512
  };
548
513
  }
549
514
 
550
- // css-module:./Popover.module.css#css-module
551
- var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___NgSy-", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___7Vmsr", "hop-Popover__title": "Popover-module__hop-Popover__title___Ej7kd", "hop-Popover__actions": "Popover-module__hop-Popover__actions___KA---", "hop-Popover__action": "Popover-module__hop-Popover__action___fjhx-", "hop-Popover__content": "Popover-module__hop-Popover__content___-cu9Q", "hop-Popover__footer": "Popover-module__hop-Popover__footer___ri-Tk" };
552
- var GlobalPopoverCssSelector = "hop-Popover";
553
- function Popover(props, ref) {
554
- [props, ref] = useContextProps(props, ref, PopoverContext);
515
+ // css-module:./Form.module.css#css-module
516
+ var Form_module_default = { "hop-Form": "Form-module__hop-Form___WWA27" };
517
+ var GlobalFormCssSelector = "hop-Form";
518
+ function Form(props, ref) {
519
+ var _a;
520
+ [props, ref] = useContextProps(props, ref, FormContext);
555
521
  const { stylingProps, ...ownProps } = useStyledSystem(props);
556
522
  const {
557
- children,
558
523
  className,
559
- offset = 4,
560
- boundaryOffset,
524
+ children,
525
+ style,
526
+ isFluid,
527
+ isDisabled,
528
+ size: sizeProp,
561
529
  ...otherProps
562
530
  } = ownProps;
563
- const { colorScheme } = useColorSchemeContext();
564
- const popoverClassNames = composeClassnameRenderProps(
565
- className,
566
- GlobalPopoverCssSelector,
531
+ const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
532
+ const classNames = clsx(
533
+ GlobalFormCssSelector,
567
534
  cssModule(
568
- Popover_module_default,
569
- "hop-Popover"
570
- )
535
+ Form_module_default,
536
+ "hop-Form"
537
+ ),
538
+ stylingProps.className,
539
+ className
571
540
  );
541
+ const mergedStyles = {
542
+ ...stylingProps.style,
543
+ ...style
544
+ };
572
545
  return /* @__PURE__ */ jsx(
573
- Popover$1,
546
+ SlotProvider,
574
547
  {
575
- ...otherProps,
576
- offset,
577
- ref,
578
- className: popoverClassNames,
579
- arrowBoundaryOffset: boundaryOffset,
580
- children: (state) => /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(
581
- Dialog,
548
+ values: [
549
+ [TextFieldContext, {
550
+ isDisabled,
551
+ isFluid,
552
+ size
553
+ }],
554
+ [PasswordFieldContext, {
555
+ isDisabled,
556
+ isFluid,
557
+ size
558
+ }],
559
+ [SearchFieldContext, {
560
+ isDisabled,
561
+ isFluid,
562
+ size
563
+ }],
564
+ [NumberFieldContext, {
565
+ isDisabled,
566
+ size,
567
+ isFluid
568
+ }],
569
+ [TextAreaContext, {
570
+ isDisabled,
571
+ size,
572
+ isFluid
573
+ }],
574
+ [RadioGroupContext, {
575
+ isDisabled,
576
+ size
577
+ }],
578
+ [CheckboxContext, {
579
+ isDisabled,
580
+ size
581
+ }],
582
+ [CheckboxFieldContext, {
583
+ isDisabled,
584
+ size
585
+ }],
586
+ [CheckboxGroupContext, {
587
+ isDisabled,
588
+ size
589
+ }],
590
+ [ButtonContext, { isDisabled, size }]
591
+ ],
592
+ children: /* @__PURE__ */ jsx(
593
+ Form$1,
582
594
  {
583
- className: clsx(stylingProps.className, Popover_module_default["hop-Popover__dialog"]),
584
- style: stylingProps.style,
585
- children: /* @__PURE__ */ jsx(
586
- SlotProvider,
587
- {
588
- values: [
589
- [HeadingContext, {
590
- className: Popover_module_default["hop-Popover__title"],
591
- size: "xs"
592
- }],
593
- [ButtonContext, {
594
- size: "sm",
595
- className: Popover_module_default["hop-Popover__action"]
596
- }],
597
- [ButtonGroupContext, {
598
- size: "sm",
599
- align: "end",
600
- className: Popover_module_default["hop-Popover__actions"]
601
- }],
602
- [ContentContext, {
603
- className: Popover_module_default["hop-Popover__content"]
604
- }],
605
- [FooterContext, {
606
- className: Popover_module_default["hop-Popover__footer"]
607
- }],
608
- [LinkContext, {
609
- size: "sm",
610
- variant: "primary",
611
- isQuiet: true
612
- }]
613
- ],
614
- children: isFunction(children) && !isNil(children) ? children(state) : children
615
- }
616
- )
595
+ ...otherProps,
596
+ ref,
597
+ className: classNames,
598
+ style: mergedStyles,
599
+ children
617
600
  }
618
- ) })
601
+ )
619
602
  }
620
603
  );
621
604
  }
622
- var _Popover = forwardRef(Popover);
623
- _Popover.displayName = "Popover";
605
+ var _Form = forwardRef(Form);
606
+ _Form.displayName = "Form";
624
607
 
625
- export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, GlobalPopoverCssSelector, GlobalTagCssSelector, _Popover, _Tag };
608
+ export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, GlobalFormCssSelector, GlobalPopoverCssSelector, _Form, _Popover };