@hopper-ui/components 1.3.12 → 1.3.14
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.
- package/CHANGELOG.md +12 -0
- package/dist/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +44 -44
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +37 -37
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +54 -54
- package/dist/Badge/src/index.js +3 -3
- package/dist/ComboBox/src/ComboBox.css +715 -715
- package/dist/ComboBox/src/ComboBox.d.ts +9 -0
- package/dist/ComboBox/src/ComboBox.js +50 -50
- package/dist/ComboBox/src/ComboBoxContext.d.ts +6 -1
- package/dist/ComboBox/src/index.css +715 -715
- package/dist/ComboBox/src/index.d.ts +6 -1
- package/dist/ComboBox/src/index.js +50 -50
- package/dist/Divider/src/Divider.css +29 -29
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +29 -29
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +29 -29
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +29 -29
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +715 -715
- package/dist/Form/src/Form.js +50 -50
- package/dist/Form/src/index.css +715 -715
- package/dist/Form/src/index.js +50 -50
- package/dist/HelperMessage/src/HelperMessage.css +29 -29
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +29 -29
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +28 -28
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +28 -28
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +49 -49
- package/dist/Link/src/Link.js +11 -2
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +11 -2
- package/dist/ListBox/src/ListBox.css +276 -276
- package/dist/ListBox/src/ListBox.d.ts +11 -1
- package/dist/ListBox/src/ListBox.js +15 -7
- package/dist/ListBox/src/ListBoxContext.d.ts +6 -0
- package/dist/ListBox/src/ListBoxItem.css +264 -264
- package/dist/ListBox/src/ListBoxItem.d.ts +21 -5
- package/dist/ListBox/src/ListBoxItem.js +14 -5
- package/dist/ListBox/src/ListBoxItemContext.d.ts +6 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +276 -276
- package/dist/ListBox/src/index.d.ts +6 -0
- package/dist/ListBox/src/index.js +15 -7
- package/dist/Select/src/Select.css +715 -715
- package/dist/Select/src/Select.d.ts +9 -0
- package/dist/Select/src/Select.js +50 -50
- package/dist/Select/src/SelectContext.d.ts +6 -1
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.d.ts +6 -1
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +715 -715
- package/dist/Select/src/index.d.ts +6 -1
- package/dist/Select/src/index.js +50 -50
- package/dist/Spinner/src/Spinner.css +37 -37
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +37 -37
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +112 -112
- package/dist/buttons/src/Button.d.ts +4 -0
- package/dist/buttons/src/Button.js +12 -4
- package/dist/buttons/src/ButtonContext.d.ts +2 -0
- package/dist/buttons/src/ButtonGroup.css +38 -38
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +98 -98
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +194 -194
- package/dist/buttons/src/index.d.ts +2 -0
- package/dist/buttons/src/index.js +15 -7
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +11 -2
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.js +2 -2
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +11 -2
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +14 -6
- package/dist/{chunk-O2QKRLQW.js → chunk-26L2JI5Z.js} +2 -2
- package/dist/{chunk-K2OUU76F.js → chunk-2D2QW2TN.js} +3 -3
- package/dist/{chunk-2GDRIOUE.js → chunk-4DLUFECD.js} +1 -1
- package/dist/{chunk-6ZAKQWYM.js → chunk-4W7GPP6I.js} +2 -2
- package/dist/{chunk-2T2P33DB.js → chunk-5C2HFY65.js} +21 -19
- package/dist/{chunk-IZ273MDI.js → chunk-5TL2U37O.js} +2 -2
- package/dist/{chunk-42W5GW3R.js → chunk-6DYXXDY4.js} +13 -5
- package/dist/{chunk-2FQE5VSB.js → chunk-6XBPJOFU.js} +1 -1
- package/dist/{chunk-2XTLP4NP.js → chunk-A265GCLA.js} +2 -2
- package/dist/{chunk-AG67ICXW.js → chunk-A4UHNZBX.js} +1 -1
- package/dist/{chunk-AZBXRRMZ.js → chunk-AA6XHAZJ.js} +13 -5
- package/dist/{chunk-3MA53PNO.js → chunk-BA265NQT.js} +17 -12
- package/dist/{chunk-RZR3PQB7.js → chunk-BWMRLYXD.js} +23 -10
- package/dist/{chunk-2Q7KTNJK.js → chunk-CUPCOAXZ.js} +1 -1
- package/dist/{chunk-P244CSQK.js → chunk-DFKPVOQ4.js} +1 -1
- package/dist/{chunk-FJL3ZS2H.js → chunk-DN63JAPT.js} +2 -2
- package/dist/{chunk-WYBSUDRI.js → chunk-DWVXSSVC.js} +3 -7
- package/dist/{chunk-6GEVQCBK.js → chunk-F6P4WIKS.js} +3 -7
- package/dist/{chunk-24KHRRRV.js → chunk-FRVE3N27.js} +1 -1
- package/dist/{chunk-LTCSPHF7.js → chunk-FXHZXIPR.js} +3 -7
- package/dist/{chunk-3H4QDM4L.js → chunk-GUHMGBDJ.js} +1 -1
- package/dist/{chunk-5NGAA35D.js → chunk-I3B3G6N4.js} +1 -1
- package/dist/{chunk-M5T2Y2RB.js → chunk-JB3N2PYV.js} +1 -1
- package/dist/{chunk-33FEE3VD.js → chunk-JHP7LA2B.js} +1 -1
- package/dist/{chunk-TVRQWVE2.js → chunk-JZAWRJFA.js} +1 -1
- package/dist/{chunk-RUASAI7F.js → chunk-K2DSUPKO.js} +1 -1
- package/dist/{chunk-LTN5Q7MF.js → chunk-KFXDFFLE.js} +2 -2
- package/dist/{chunk-F3Y5D5LH.js → chunk-LFFRDNDM.js} +3 -7
- package/dist/{chunk-PL5Q7GF2.js → chunk-MDIVABWE.js} +1 -1
- package/dist/{chunk-EY4ZTKS4.js → chunk-MLLUZ55T.js} +1 -1
- package/dist/{chunk-WH4BAEX4.js → chunk-P2OSN32C.js} +2 -2
- package/dist/{chunk-FM77LXOA.js → chunk-PCOOOVLE.js} +3 -7
- package/dist/{chunk-W5TXSSFB.js → chunk-PQR2DVBK.js} +1 -1
- package/dist/{chunk-6LJPMEHX.js → chunk-PWJCO32L.js} +1 -1
- package/dist/{chunk-CPRGKGB6.js → chunk-R2EN2OFJ.js} +2 -2
- package/dist/{chunk-BSEAFZPE.js → chunk-RUZ3J43X.js} +1 -1
- package/dist/{chunk-PHMYUFQP.js → chunk-RXMCGKWB.js} +10 -9
- package/dist/{chunk-JSDCGGLX.js → chunk-SG2POHLX.js} +25 -26
- package/dist/{chunk-OARY66QV.js → chunk-TH46DMKQ.js} +3 -7
- package/dist/{chunk-DIRREIZN.js → chunk-USP2ITRL.js} +1 -1
- package/dist/{chunk-TYCTG7I2.js → chunk-VVVDQWQ3.js} +12 -7
- package/dist/{chunk-EZTWUACB.js → chunk-X57PKGPX.js} +2 -2
- package/dist/{chunk-ZQARUJYZ.js → chunk-XGS34BBU.js} +17 -6
- package/dist/{chunk-2XOZMJQO.js → chunk-YYFZDZXJ.js} +1 -1
- package/dist/{chunk-DUDTPN7M.js → chunk-ZPLEEUPC.js} +21 -12
- package/dist/index.css +715 -715
- package/dist/index.js +50 -50
- package/dist/inputs/src/InputGroup.css +209 -209
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +231 -231
- package/dist/inputs/src/NumberField.d.ts +5 -0
- package/dist/inputs/src/NumberField.js +8 -7
- package/dist/inputs/src/NumberFieldContext.d.ts +1 -0
- package/dist/inputs/src/PasswordField.css +219 -219
- package/dist/inputs/src/PasswordField.d.ts +15 -1
- package/dist/inputs/src/PasswordField.js +7 -7
- package/dist/inputs/src/PasswordFieldContext.d.ts +2 -0
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.js +5 -5
- package/dist/inputs/src/SearchField.css +225 -225
- package/dist/inputs/src/SearchField.d.ts +11 -0
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/SearchFieldContext.d.ts +3 -0
- package/dist/inputs/src/TextArea.css +226 -226
- package/dist/inputs/src/TextArea.d.ts +14 -4
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextAreaContext.d.ts +4 -0
- package/dist/inputs/src/TextField.css +223 -223
- package/dist/inputs/src/TextField.d.ts +14 -4
- package/dist/inputs/src/TextField.js +11 -10
- package/dist/inputs/src/TextFieldContext.d.ts +4 -0
- package/dist/inputs/src/index.css +269 -269
- package/dist/inputs/src/index.d.ts +2 -0
- package/dist/inputs/src/index.js +15 -14
- package/dist/overlays/Popover/src/Popover.css +715 -715
- package/dist/overlays/Popover/src/Popover.js +50 -50
- package/dist/overlays/Popover/src/index.css +715 -715
- package/dist/overlays/Popover/src/index.js +50 -50
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.js +11 -2
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +11 -2
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +98 -98
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +98 -98
- package/dist/radio/src/index.js +14 -6
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +11 -2
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +12 -3
- package/dist/tag/src/Tag.css +337 -337
- package/dist/tag/src/Tag.d.ts +13 -0
- package/dist/tag/src/Tag.js +14 -6
- package/dist/tag/src/TagContext.d.ts +5 -0
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +347 -347
- package/dist/tag/src/index.d.ts +5 -0
- package/dist/tag/src/index.js +15 -8
- package/dist/typography/Heading/src/Heading.css +27 -27
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +27 -27
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +27 -27
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +27 -27
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +27 -27
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +27 -27
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +27 -27
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +27 -27
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +27 -27
- package/dist/utils/src/EnsureTextWrapper.js +6 -6
- package/dist/utils/src/index.css +27 -27
- package/dist/utils/src/index.js +7 -7
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
3
3
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
-
import { _RemainingCharacterCount } from './chunk-
|
|
5
|
-
import { _InputGroup } from './chunk-
|
|
4
|
+
import { _RemainingCharacterCount } from './chunk-A265GCLA.js';
|
|
5
|
+
import { _InputGroup } from './chunk-FRVE3N27.js';
|
|
6
6
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
@@ -14,6 +14,7 @@ import { useStyledSystem, useResponsiveValue, useIsomorphicLayoutEffect } from '
|
|
|
14
14
|
import $670gB$react, { forwardRef, useContext, useState, useCallback, useRef, useMemo } from 'react';
|
|
15
15
|
import { mergeRefs } from '@react-aria/utils';
|
|
16
16
|
import { useControlledState } from '@react-stately/utils';
|
|
17
|
+
import clsx from 'clsx';
|
|
17
18
|
import { useObjectRef } from 'react-aria';
|
|
18
19
|
import { useContextProps, composeRenderProps, TextArea as TextArea$1, TextField } from 'react-aria-components';
|
|
19
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -78,7 +79,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
// css-module:./TextArea.module.css#css-module
|
|
81
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
82
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___Nv0cJ", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___a-Muo", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___gyhYv", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___arWbA", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___0-sOf", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___wL5-Y", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___34PBI", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___zLVyK", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___aKpFP" };
|
|
82
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
83
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
84
85
|
var pxToInt = (value) => {
|
|
@@ -141,8 +142,10 @@ function TextArea(props, ref) {
|
|
|
141
142
|
isDisabled,
|
|
142
143
|
isInvalid,
|
|
143
144
|
isRequired,
|
|
144
|
-
|
|
145
|
+
allowExceedingMaxLength,
|
|
145
146
|
necessityIndicator,
|
|
147
|
+
inputGroupProps,
|
|
148
|
+
remainingCharacterCountProps,
|
|
146
149
|
...otherProps
|
|
147
150
|
} = ownProps;
|
|
148
151
|
const mergedTextAreaRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -172,6 +175,9 @@ function TextArea(props, ref) {
|
|
|
172
175
|
if (showCharacterCount && !maxLength) {
|
|
173
176
|
console.warn("If showCharacterCount is true, maxLength must be set to the maximum number of characters allowed in the TextArea.");
|
|
174
177
|
}
|
|
178
|
+
if (allowExceedingMaxLength && !showCharacterCount) {
|
|
179
|
+
console.warn("If allowExceedingMaxLength is true, showCharacterCount must also be true.");
|
|
180
|
+
}
|
|
175
181
|
const rowHeight = useCalculateRowHeight(mergedTextAreaRef.current);
|
|
176
182
|
const defaultNumberOfRows = maxRows && maxRows < DefaultMinimumTextAreaRows ? maxRows : DefaultMinimumTextAreaRows;
|
|
177
183
|
const [rows, setRows] = useState(rowsProp != null ? rowsProp : defaultNumberOfRows);
|
|
@@ -200,31 +206,38 @@ function TextArea(props, ref) {
|
|
|
200
206
|
}
|
|
201
207
|
}, [mergedTextAreaRef, rowHeight, maxRows, rowsProp]);
|
|
202
208
|
useIsomorphicLayoutEffect(() => {
|
|
203
|
-
if (
|
|
209
|
+
if (!allowExceedingMaxLength) {
|
|
204
210
|
const newValue = truncateText(value, maxLength);
|
|
205
211
|
onChange(newValue);
|
|
206
212
|
}
|
|
207
213
|
adjustRows();
|
|
208
214
|
}, [value, adjustRows]);
|
|
215
|
+
const { className: inputGroupClassName, inputClassName: inputGroupInputClassName, ...otherInputGroupProps } = inputGroupProps || {};
|
|
216
|
+
const inputGroupClassNames = clsx(TextArea_module_default["hop-TextArea__InputGroup"], inputGroupClassName);
|
|
217
|
+
const inputGroupInputClassNames = clsx(TextArea_module_default["hop-TextArea__textarea"], inputGroupInputClassName);
|
|
218
|
+
const { className: remainingCharacterCountClassName, ...otherRemainingCharacterCountProps } = remainingCharacterCountProps != null ? remainingCharacterCountProps : {};
|
|
219
|
+
const remainingCharacterCountClassNames = clsx(TextArea_module_default["hop-TextArea__RemainingCharacterCount"], remainingCharacterCountClassName);
|
|
209
220
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
210
221
|
_InputGroup,
|
|
211
222
|
{
|
|
212
223
|
isFluid: true,
|
|
213
224
|
size,
|
|
214
|
-
className:
|
|
225
|
+
className: inputGroupClassNames,
|
|
215
226
|
isDisabled,
|
|
216
227
|
isInvalid,
|
|
217
|
-
inputClassName:
|
|
228
|
+
inputClassName: inputGroupInputClassNames,
|
|
218
229
|
inputType: "textarea",
|
|
230
|
+
...otherInputGroupProps,
|
|
219
231
|
children: [
|
|
220
232
|
/* @__PURE__ */ jsx(TextArea$1, { ref: mergedTextAreaRef, placeholder, cols, rows }),
|
|
221
233
|
showCharacterCount && maxLength && /* @__PURE__ */ jsx(
|
|
222
234
|
_RemainingCharacterCount,
|
|
223
235
|
{
|
|
224
|
-
className:
|
|
236
|
+
className: remainingCharacterCountClassNames,
|
|
225
237
|
count: maxLength - characterCount,
|
|
226
238
|
isInvalid: overMaxLength,
|
|
227
|
-
isDisabled
|
|
239
|
+
isDisabled,
|
|
240
|
+
...otherRemainingCharacterCountProps
|
|
228
241
|
}
|
|
229
242
|
)
|
|
230
243
|
]
|
|
@@ -253,7 +266,7 @@ function TextArea(props, ref) {
|
|
|
253
266
|
value,
|
|
254
267
|
style,
|
|
255
268
|
className: classNames,
|
|
256
|
-
maxLength:
|
|
269
|
+
maxLength: !allowExceedingMaxLength ? maxLength : void 0,
|
|
257
270
|
onChange,
|
|
258
271
|
isDisabled,
|
|
259
272
|
isInvalid,
|
|
@@ -12,7 +12,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./SwitchField.module.css#css-module
|
|
15
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
15
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___77-hh", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___qFY6C", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___Sp3dP", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___rozcD", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___yr5-e" };
|
|
16
16
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
17
17
|
var SwitchToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|
|
@@ -13,7 +13,7 @@ import { useContextProps, FieldErrorContext, TagGroup as TagGroup$1 } from 'reac
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./TagGroup.module.css#css-module
|
|
16
|
-
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-
|
|
16
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___b2U4K", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___jcWIq", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___RqET-", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___PKveI", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___X0jv7" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
2
2
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
3
3
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
4
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
4
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
5
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 }
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./CheckboxGroup.module.css#css-module
|
|
17
|
-
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-
|
|
17
|
+
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___JkiZK", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___XZ9JV", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___yGScf", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___Ia-xn", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___Y9vkt", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___PQSh3", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___Gpc--", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___TxKWS", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___SNa1u" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
5
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +13,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
14
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
14
|
|
|
16
15
|
// css-module:./Checkbox.module.css#css-module
|
|
17
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
16
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___7Ns4s", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___mP-yl", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___OEHBC", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___0lP7W", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___o33sg", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___8dThw", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___I1wc9", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___RxDut" };
|
|
18
17
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
18
|
function Checkbox(props, ref) {
|
|
20
19
|
var _a;
|
|
@@ -45,10 +44,7 @@ function Checkbox(props, ref) {
|
|
|
45
44
|
};
|
|
46
45
|
});
|
|
47
46
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
48
|
-
|
|
49
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
50
|
-
}
|
|
51
|
-
return prev;
|
|
47
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
52
48
|
});
|
|
53
49
|
return /* @__PURE__ */ jsx(
|
|
54
50
|
Checkbox$1,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
5
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +13,7 @@ import { useContextProps, composeRenderProps, Switch as Switch$1 } from 'react-a
|
|
|
14
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
14
|
|
|
16
15
|
// css-module:./Switch.module.css#css-module
|
|
17
|
-
var Switch_module_default = { "hop-Switch": "Switch-module__hop-
|
|
16
|
+
var Switch_module_default = { "hop-Switch": "Switch-module__hop-Switch___Ts2LD", "hop-Switch--sm": "Switch-module__hop-Switch--sm___56Dzf", "hop-Switch--md": "Switch-module__hop-Switch--md___iw0R9", "hop-Switch__indicator": "Switch-module__hop-Switch__indicator___fSOGw", "hop-Switch__text": "Switch-module__hop-Switch__text___o6ANo", "hop-Switch__icon-list": "Switch-module__hop-Switch__icon-list___t8LAH", "hop-Switch__icon": "Switch-module__hop-Switch__icon___C1x4u" };
|
|
18
17
|
var GlobalSwitchCssSelector = "hop-Switch";
|
|
19
18
|
function Switch(props, ref) {
|
|
20
19
|
var _a;
|
|
@@ -45,10 +44,7 @@ function Switch(props, ref) {
|
|
|
45
44
|
};
|
|
46
45
|
});
|
|
47
46
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
48
|
-
|
|
49
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
50
|
-
}
|
|
51
|
-
return prev;
|
|
47
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
52
48
|
});
|
|
53
49
|
return /* @__PURE__ */ jsx(
|
|
54
50
|
Switch$1,
|
|
@@ -10,7 +10,7 @@ import { useContextProps, useSlottedContext, InputContext, TextAreaContext, Fiel
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./InputGroup.module.css#css-module
|
|
13
|
-
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-
|
|
13
|
+
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___qmxak", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___NioBN", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___r1XTu", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___At-9s", "hop-InputGroup__textarea": "InputGroup-module__hop-InputGroup__textarea___iPd7T", "hop-InputGroup__embedded-button": "InputGroup-module__hop-InputGroup__embedded-button___w2n7T" };
|
|
14
14
|
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
15
15
|
function InputGroup(props, ref) {
|
|
16
16
|
var _a, _b;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
5
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
6
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
@@ -16,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
16
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
16
|
|
|
18
17
|
// css-module:./DecorativeRadio.module.css#css-module
|
|
19
|
-
var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-
|
|
18
|
+
var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-DecorativeRadio___fJhes Radio-module__hop-Radio___ADBqu", "hop-DecorativeRadio--sm": "DecorativeRadio-module__hop-DecorativeRadio--sm___JKosJ Radio-module__hop-Radio--sm___9m9cw", "hop-DecorativeRadio--md": "DecorativeRadio-module__hop-DecorativeRadio--md___Zdjah Radio-module__hop-Radio--md___-OHVc", "hop-DecorativeRadio__icon": "DecorativeRadio-module__hop-DecorativeRadio__icon___QRMqB Radio-module__hop-Radio__icon___x2am6", "hop-DecorativeRadio__icon-list": "DecorativeRadio-module__hop-DecorativeRadio__icon-list___8qrAn Radio-module__hop-Radio__icon___x2am6", "hop-DecorativeRadio__box": "DecorativeRadio-module__hop-DecorativeRadio__box___3Zzuu Radio-module__hop-Radio__box___pNZ3P", "hop-DecorativeRadio__bullet": "DecorativeRadio-module__hop-DecorativeRadio__bullet___CTKgf Radio-module__hop-Radio__bullet___FT3MX", "hop-DecorativeRadio__text": "DecorativeRadio-module__hop-DecorativeRadio__text___xcRj2 Radio-module__hop-Radio__text___oqR0C" };
|
|
20
19
|
var GlobalDecorativeRadioCssSelector = "hop-DecorativeRadio";
|
|
21
20
|
function DecorativeRadio(props, ref) {
|
|
22
21
|
var _a;
|
|
@@ -41,10 +40,7 @@ function DecorativeRadio(props, ref) {
|
|
|
41
40
|
} = ownProps;
|
|
42
41
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
43
42
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
44
|
-
|
|
45
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
46
|
-
}
|
|
47
|
-
return prev;
|
|
43
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
48
44
|
});
|
|
49
45
|
const classNames = composeClassnameRenderProps(
|
|
50
46
|
className,
|
|
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Button } from 'react-aria-componen
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
12
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
12
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___rZktt", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___6sJJ-", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___gLoE7", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___1Vru8", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___G-mI8", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___aeJ18", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___pGdKu", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___pECii", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___GP62L", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___4rb44", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___M8iTo", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___X6EXA", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___OxtUZ", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___BAv-j", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___awDFw", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___QHfa9" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -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-
|
|
10
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___iSo-j", "hop-Heading--xs": "Heading-module__hop-Heading--xs___r0VNm", "hop-Heading--sm": "Heading-module__hop-Heading--sm___BCYRe", "hop-Heading--md": "Heading-module__hop-Heading--md___6mXux", "hop-Heading--lg": "Heading-module__hop-Heading--lg___NXe4q", "hop-Heading--xl": "Heading-module__hop-Heading--xl___GzsDF", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___t6dqU", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___fPAPT" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-PQR2DVBK.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { DeletedUserRichIcon } from '@hopper-ui/icons';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-GUHMGBDJ.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___PKcfo", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___gzZg6" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___qyDoG", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___DLZPk", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___4pBEd", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___klgXj", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___uoA5E", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___pJBDl" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsOverflow } from './chunk-EHXOXTDN.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-MLLUZ55T.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -16,7 +16,7 @@ import { useContextProps, SelectValueContext, SelectStateContext, useSlottedCont
|
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
// css-module:./SelectValue.module.css#css-module
|
|
19
|
-
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-
|
|
19
|
+
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-SelectValue___4myBK", "hop-SelectValue__text": "SelectValue-module__hop-SelectValue__text___1aolb", "hop-SelectValue__avatar": "SelectValue-module__hop-SelectValue__avatar___AvF-y", "hop-SelectValue__icon": "SelectValue-module__hop-SelectValue__icon___azo19", "hop-SelectValue__end-icon": "SelectValue-module__hop-SelectValue__end-icon___WbEvN" };
|
|
20
20
|
var GlobalSelectValueCssSelector = "hop-SelectValue";
|
|
21
21
|
var SelectValueToAvatarSizeAdapter = {
|
|
22
22
|
sm: "xs",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
5
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
6
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
@@ -16,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
16
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
16
|
|
|
18
17
|
// css-module:./DecorativeCheckbox.module.css#css-module
|
|
19
|
-
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-
|
|
18
|
+
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-DecorativeCheckbox___1nTc- Checkbox-module__hop-Checkbox___7Ns4s", "hop-DecorativeCheckbox--sm": "DecorativeCheckbox-module__hop-DecorativeCheckbox--sm___2dUDT Checkbox-module__hop-Checkbox--sm___mP-yl", "hop-DecorativeCheckbox--md": "DecorativeCheckbox-module__hop-DecorativeCheckbox--md___BkBys Checkbox-module__hop-Checkbox--md___OEHBC", "hop-DecorativeCheckbox__icon": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon___KXHdq Checkbox-module__hop-Checkbox__icon___0lP7W", "hop-DecorativeCheckbox__icon-list": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon-list___3H1A7 Checkbox-module__hop-Checkbox__icon___0lP7W", "hop-DecorativeCheckbox__box": "DecorativeCheckbox-module__hop-DecorativeCheckbox__box___Hl9pB Checkbox-module__hop-Checkbox__box___8dThw", "hop-DecorativeCheckbox__check": "DecorativeCheckbox-module__hop-DecorativeCheckbox__check___v6Nq6 Checkbox-module__hop-Checkbox__check___I1wc9", "hop-DecorativeCheckbox__text": "DecorativeCheckbox-module__hop-DecorativeCheckbox__text___G55ai Checkbox-module__hop-Checkbox__text___RxDut" };
|
|
20
19
|
var GlobalDecorativeCheckboxCssSelector = "hop-DecorativeCheckbox";
|
|
21
20
|
function DecorativeCheckbox(props, ref) {
|
|
22
21
|
var _a;
|
|
@@ -42,10 +41,7 @@ function DecorativeCheckbox(props, ref) {
|
|
|
42
41
|
} = ownProps;
|
|
43
42
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
44
43
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
45
|
-
|
|
46
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
47
|
-
}
|
|
48
|
-
return prev;
|
|
44
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
49
45
|
});
|
|
50
46
|
const classNames = composeClassnameRenderProps(
|
|
51
47
|
className,
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./FloatingBadge.module.css#css-module
|
|
13
|
-
var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-
|
|
13
|
+
var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-FloatingBadge___J7RCP", "hop-FloatingBadge__badge": "FloatingBadge-module__hop-FloatingBadge__badge___zFoJJ" };
|
|
14
14
|
var GlobalFloatingBadgeCssSelector = "hop-FloatingBadge";
|
|
15
15
|
function FloatingBadge(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, FloatingBadgeContext);
|
|
@@ -9,7 +9,7 @@ import { useContextProps, Text as Text$1 } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Text.module.css#css-module
|
|
12
|
-
var Text_module_default = { "hop-Text": "Text-module__hop-
|
|
12
|
+
var Text_module_default = { "hop-Text": "Text-module__hop-Text___YWQie", "hop-Text--xs": "Text-module__hop-Text--xs___pfyH6", "hop-Text--sm": "Text-module__hop-Text--sm___oH8pv", "hop-Text--md": "Text-module__hop-Text--md___6SESF", "hop-Text--lg": "Text-module__hop-Text--lg___KUuZc", "hop-Text--xl": "Text-module__hop-Text--xl___Yhkcp", "hop-Text--2xl": "Text-module__hop-Text--2xl___fCHd1", "hop-Text--inherit": "Text-module__hop-Text--inherit___pumuo" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-MLLUZ55T.js';
|
|
3
3
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var EnsureTextWrapper = ({ children }) => {
|
|
6
|
-
return isTextOnlyChildren(children) ? /* @__PURE__ */ jsx(_Text, { children }) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
6
|
+
return children && isTextOnlyChildren(children) ? /* @__PURE__ */ jsx(_Text, { children }) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { EnsureTextWrapper };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
5
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +13,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
14
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
14
|
|
|
16
15
|
// css-module:./Radio.module.css#css-module
|
|
17
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
16
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___ADBqu", "hop-Radio--sm": "Radio-module__hop-Radio--sm___9m9cw", "hop-Radio--md": "Radio-module__hop-Radio--md___-OHVc", "hop-Radio__icon": "Radio-module__hop-Radio__icon___x2am6", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___YyC19", "hop-Radio__box": "Radio-module__hop-Radio__box___pNZ3P", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___FT3MX", "hop-Radio__text": "Radio-module__hop-Radio__text___oqR0C" };
|
|
18
17
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
18
|
function Radio(props, ref) {
|
|
20
19
|
var _a;
|
|
@@ -45,10 +44,7 @@ function Radio(props, ref) {
|
|
|
45
44
|
};
|
|
46
45
|
});
|
|
47
46
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
48
|
-
|
|
49
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
50
|
-
}
|
|
51
|
-
return prev;
|
|
47
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
52
48
|
});
|
|
53
49
|
return /* @__PURE__ */ jsx(
|
|
54
50
|
Radio$1,
|
|
@@ -11,7 +11,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
14
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
14
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___vA3Vg", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___WLlcB", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___VpKAX", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___-NY6t", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___I-ePb", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___WCoHY", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___adUlB", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___K8rIa" };
|
|
15
15
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
16
16
|
var AvatarToIconSizeAdapter = {
|
|
17
17
|
xs: "md",
|
|
@@ -8,7 +8,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./Label.module.css#css-module
|
|
11
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
11
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___-0l1I", "hop-Label__indicator": "Label-module__hop-Label__indicator___Qu17i" };
|
|
12
12
|
var GlobalLabelCssSelector = "hop-Label";
|
|
13
13
|
function Label(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-MLLUZ55T.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, ProgressBar } from 'react-aria-components';
|
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Spinner.module.css#css-module
|
|
12
|
-
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-
|
|
12
|
+
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-Spinner___yvH65", "spin": "Spinner-module__spin___VldM7", "hop-Spinner--sm": "Spinner-module__hop-Spinner--sm___CoKhT", "hop-Spinner--md": "Spinner-module__hop-Spinner--md___mSE4C", "hop-Spinner--lg": "Spinner-module__hop-Spinner--lg___XpNq0", "hop-Spinner__track": "Spinner-module__hop-Spinner__track___oxcw-", "hop-Spinner__fill": "Spinner-module__hop-Spinner__fill___T4J87", "hop-Spinner__label": "Spinner-module__hop-Spinner__label___rFqvf" };
|
|
13
13
|
var GlobalSpinnerCssSelector = "hop-Spinner";
|
|
14
14
|
var SpinnerToTextSizeAdapter = {
|
|
15
15
|
sm: "xs",
|
|
@@ -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-
|
|
13
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___GbwhW", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___SxiWc", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___D2s4m", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___0sFu1", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___uIRfN", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___ZvYya", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___KBa-5", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___Pemuq" };
|
|
14
14
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
15
|
function ButtonGroup(props, ref) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
2
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
-
import { _Spinner } from './chunk-
|
|
3
|
+
import { _Spinner } from './chunk-R2EN2OFJ.js';
|
|
4
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
4
5
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
5
|
-
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
6
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
7
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
8
7
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
8
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
10
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -13,13 +12,14 @@ import { cssModule } from './chunk-KVDXQMWI.js';
|
|
|
13
12
|
import { IconContext } from '@hopper-ui/icons';
|
|
14
13
|
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
15
14
|
import { chain, filterDOMProps, useRouter, shouldClientNavigate } from '@react-aria/utils';
|
|
15
|
+
import clsx from 'clsx';
|
|
16
16
|
import { forwardRef } from 'react';
|
|
17
17
|
import { useFocusRing, useHover, useButton, mergeProps } from 'react-aria';
|
|
18
18
|
import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps, DEFAULT_SLOT } from 'react-aria-components';
|
|
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-
|
|
22
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___-Rm3G", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___l-Haj", "hop-Button--fluid": "Button-module__hop-Button--fluid___jlRQS", "hop-Button--sm": "Button-module__hop-Button--sm___74-Mx", "hop-Button--primary": "Button-module__hop-Button--primary___XUljl", "hop-Button--md": "Button-module__hop-Button--md___izdgU", "hop-Button--secondary": "Button-module__hop-Button--secondary___OWMwI", "hop-Button--upsell": "Button-module__hop-Button--upsell___x-O-W", "hop-Button--danger": "Button-module__hop-Button--danger___-lSHt", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___xQuqA", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___7v-pT", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___zLOwK", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___dsODg", "hop-Button__icon": "Button-module__hop-Button__icon___7y0vR", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___FI-zR", "hop-Button__text": "Button-module__hop-Button__text___oueOv", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___5dsV8", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___r-ZQD" };
|
|
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) {
|
|
@@ -74,6 +74,7 @@ function Button(props, ref) {
|
|
|
74
74
|
variant = "primary",
|
|
75
75
|
isLoading,
|
|
76
76
|
style: styleProp,
|
|
77
|
+
spinnerProps,
|
|
77
78
|
...otherProps
|
|
78
79
|
} = ownProps;
|
|
79
80
|
const [textRef, hasText] = useSlot();
|
|
@@ -100,10 +101,7 @@ function Button(props, ref) {
|
|
|
100
101
|
};
|
|
101
102
|
});
|
|
102
103
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
103
|
-
|
|
104
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
105
|
-
}
|
|
106
|
-
return prev;
|
|
104
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
107
105
|
});
|
|
108
106
|
const renderProps = useRenderProps({
|
|
109
107
|
className: classNames,
|
|
@@ -120,6 +118,8 @@ function Button(props, ref) {
|
|
|
120
118
|
useCreateRouterLinkClickEventHandler(props)
|
|
121
119
|
);
|
|
122
120
|
const As = props.href ? "a" : "button";
|
|
121
|
+
const { className: spinnerClassName, ...otherSpinnerProps } = spinnerProps || {};
|
|
122
|
+
const spinnerClassNames = clsx(Button_module_default["hop-Button__Spinner"], spinnerClassName);
|
|
123
123
|
return /* @__PURE__ */ jsx(
|
|
124
124
|
SlotProvider,
|
|
125
125
|
{
|
|
@@ -171,7 +171,8 @@ function Button(props, ref) {
|
|
|
171
171
|
{
|
|
172
172
|
"aria-label": stringFormatter.format("Button.spinnerAriaLabel"),
|
|
173
173
|
size,
|
|
174
|
-
className:
|
|
174
|
+
className: spinnerClassNames,
|
|
175
|
+
...otherSpinnerProps
|
|
175
176
|
}
|
|
176
177
|
)
|
|
177
178
|
]
|