@hopper-ui/components 1.3.12 → 1.3.13
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 +6 -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 +42 -42
- 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 +52 -52
- package/dist/Badge/src/index.js +3 -3
- package/dist/ComboBox/src/ComboBox.css +713 -713
- 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 +713 -713
- 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 +713 -713
- package/dist/Form/src/Form.js +50 -50
- package/dist/Form/src/index.css +713 -713
- 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 +274 -274
- 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 +262 -262
- 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 +274 -274
- package/dist/ListBox/src/index.d.ts +6 -0
- package/dist/ListBox/src/index.js +15 -7
- package/dist/Select/src/Select.css +713 -713
- 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 +713 -713
- 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-LTN5Q7MF.js → chunk-2FPPOLXY.js} +2 -2
- package/dist/{chunk-DUDTPN7M.js → chunk-2T4YF6YA.js} +15 -9
- package/dist/{chunk-6LJPMEHX.js → chunk-2YCQ3HR4.js} +1 -1
- package/dist/{chunk-P244CSQK.js → chunk-4LGBWVIU.js} +1 -1
- package/dist/{chunk-AZBXRRMZ.js → chunk-4SAYVVYL.js} +13 -5
- package/dist/{chunk-RUASAI7F.js → chunk-525E7GQA.js} +1 -1
- package/dist/{chunk-42W5GW3R.js → chunk-5C4FZTGZ.js} +13 -5
- package/dist/{chunk-IZ273MDI.js → chunk-5NLYTU3H.js} +2 -2
- package/dist/{chunk-2T2P33DB.js → chunk-6CMYDEZX.js} +21 -19
- package/dist/{chunk-3H4QDM4L.js → chunk-7NUKUYR2.js} +1 -1
- package/dist/{chunk-F3Y5D5LH.js → chunk-AG6PENAS.js} +3 -7
- package/dist/{chunk-TYCTG7I2.js → chunk-AHYLFUTN.js} +12 -7
- package/dist/{chunk-M5T2Y2RB.js → chunk-AXOHWQ3F.js} +1 -1
- package/dist/{chunk-2GDRIOUE.js → chunk-BNRFZJH2.js} +1 -1
- package/dist/{chunk-2Q7KTNJK.js → chunk-BRXIL2PF.js} +1 -1
- package/dist/{chunk-2XOZMJQO.js → chunk-D7DJDRJ3.js} +1 -1
- package/dist/{chunk-W5TXSSFB.js → chunk-GP6BKXPT.js} +1 -1
- package/dist/{chunk-6ZAKQWYM.js → chunk-JE3XX2SJ.js} +2 -2
- package/dist/{chunk-OARY66QV.js → chunk-KEFMYHZ7.js} +3 -7
- package/dist/{chunk-EZTWUACB.js → chunk-L4P3WZD5.js} +2 -2
- package/dist/{chunk-FJL3ZS2H.js → chunk-N2LF4W2F.js} +2 -2
- package/dist/{chunk-K2OUU76F.js → chunk-N4W5OGVT.js} +3 -3
- package/dist/{chunk-2XTLP4NP.js → chunk-NCSZH3BX.js} +2 -2
- package/dist/{chunk-PL5Q7GF2.js → chunk-NDNG5JZM.js} +1 -1
- package/dist/{chunk-RZR3PQB7.js → chunk-NMVERJN3.js} +17 -7
- package/dist/{chunk-ZQARUJYZ.js → chunk-PC57XZVV.js} +17 -6
- package/dist/{chunk-5NGAA35D.js → chunk-PIPM74ZR.js} +1 -1
- package/dist/{chunk-CPRGKGB6.js → chunk-POYJ4HSP.js} +2 -2
- package/dist/{chunk-EY4ZTKS4.js → chunk-QOJVYB3C.js} +1 -1
- package/dist/{chunk-33FEE3VD.js → chunk-QZK76BU7.js} +1 -1
- package/dist/{chunk-PHMYUFQP.js → chunk-RWV3WC6S.js} +10 -9
- package/dist/{chunk-O2QKRLQW.js → chunk-SED3IAG6.js} +2 -2
- package/dist/{chunk-DIRREIZN.js → chunk-TAKV5UAB.js} +1 -1
- package/dist/{chunk-TVRQWVE2.js → chunk-TWDVOXVB.js} +1 -1
- package/dist/{chunk-WYBSUDRI.js → chunk-VGVPCTWN.js} +3 -7
- package/dist/{chunk-24KHRRRV.js → chunk-VNC3T7SU.js} +1 -1
- package/dist/{chunk-AG67ICXW.js → chunk-WGK36YRB.js} +1 -1
- package/dist/{chunk-JSDCGGLX.js → chunk-WHESXP63.js} +25 -26
- package/dist/{chunk-BSEAFZPE.js → chunk-WXDO7NVW.js} +1 -1
- package/dist/{chunk-2FQE5VSB.js → chunk-XA4GSKHM.js} +1 -1
- package/dist/{chunk-FM77LXOA.js → chunk-Y4DX32HX.js} +3 -7
- package/dist/{chunk-3MA53PNO.js → chunk-YEFNZ7AV.js} +17 -12
- package/dist/{chunk-6GEVQCBK.js → chunk-YJR4NQEV.js} +3 -7
- package/dist/{chunk-WH4BAEX4.js → chunk-ZVEICADL.js} +2 -2
- package/dist/{chunk-LTCSPHF7.js → chunk-ZXLXPVHG.js} +3 -7
- package/dist/index.css +713 -713
- 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 +12 -0
- 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 +12 -0
- 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 +713 -713
- package/dist/overlays/Popover/src/Popover.js +50 -50
- package/dist/overlays/Popover/src/index.css +713 -713
- 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 +335 -335
- 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 +345 -345
- 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
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./RadioField.module.css#css-module
|
|
16
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
16
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___ZI9k0", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___-zm-N", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___-fX4Z", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___19LwK", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___Vjtn5" };
|
|
17
17
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
18
18
|
var RadioToDescriptionSizeAdapter = {
|
|
19
19
|
sm: "xs",
|
|
@@ -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___c5ofI", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___JrzoK", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___dckw6", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___hF0sa", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___Q5-O5" };
|
|
16
16
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
17
17
|
var SwitchToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-GP6BKXPT.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
@@ -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___9l37C", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___e8Xw-", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___mV3fv", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___AiA4d", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___Dwlyi", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___gbHJE", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___l8YHz", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___P118h" };
|
|
15
15
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
16
16
|
var AvatarToIconSizeAdapter = {
|
|
17
17
|
xs: "md",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
2
2
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
3
3
|
import { RadioListContext } from './chunk-A7TZHALP.js';
|
|
4
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
4
|
import { RadioContext } from './chunk-FU5CCPLP.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, RadioGroup as RadioGroup$1 } from
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./RadioGroup.module.css#css-module
|
|
17
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
17
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___QI09G", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___i24vA", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___98axS", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___mZ8Ht", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___6Kt4G", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___M7MKM", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___XX0Xd", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___EgnG4", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___ROesZ" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnsureTextWrapper } from './chunk-ZVEICADL.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
3
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
4
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
5
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -13,7 +12,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
13
12
|
import { jsx } from 'react/jsx-runtime';
|
|
14
13
|
|
|
15
14
|
// css-module:./Link.module.css#css-module
|
|
16
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
15
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___dhn5M", "hop-Link--quiet": "Link-module__hop-Link--quiet___ohT0D", "hop-Link--primary": "Link-module__hop-Link--primary___N0MHV", "hop-Link--secondary": "Link-module__hop-Link--secondary___kP8vD", "hop-Link__icon": "Link-module__hop-Link__icon___3qadZ", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___edfqL", "hop-Link__text": "Link-module__hop-Link__text___B3I5i", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___C5Hed", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___U0B9o" };
|
|
17
16
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
17
|
var LinkToIconSizeAdapter = {
|
|
19
18
|
inherit: void 0,
|
|
@@ -60,10 +59,7 @@ function Link(props, ref) {
|
|
|
60
59
|
};
|
|
61
60
|
});
|
|
62
61
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
63
|
-
|
|
64
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
65
|
-
}
|
|
66
|
-
return prev;
|
|
62
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
67
63
|
});
|
|
68
64
|
const iconSize = LinkToIconSizeAdapter[size];
|
|
69
65
|
return /* @__PURE__ */ jsx(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-QOJVYB3C.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { InfoIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, FieldErrorContext } from 'react-aria-components';
|
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./HelperMessage.module.css#css-module
|
|
12
|
-
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-
|
|
12
|
+
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-HelperMessage___FAlev", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___WtVwR" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -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___CbCRg", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___i1Q0r", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___-ejm7", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___p3kzM", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___qAPoz", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___3sxTu", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___6h2BD", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___5Zixx", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___GLmKT" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-QOJVYB3C.js';
|
|
2
2
|
import { useImageFallback } from './chunk-LI5HSYF7.js';
|
|
3
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-GP6BKXPT.js';
|
|
5
5
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Avatar.module.css#css-module
|
|
16
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___Yc6vO", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___Tkd7E", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___fqdjh", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___E1bso", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___HZUAk", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___U-TLI", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___mI2-1", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___iBOvf", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___lKkRb", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___kDnKX", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___ZofDJ", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___V594a", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___JK4e6", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___7b-oN", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___1rWWQ", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___1-X2K", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___Ae1Lh" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-QOJVYB3C.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -10,7 +10,7 @@ import { composeRenderProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./RemainingCharacterCount.module.css#css-module
|
|
13
|
-
var RemainingCharacterCount_module_default = { "hop-RemainingCharacterCount": "RemainingCharacterCount-module__hop-
|
|
13
|
+
var RemainingCharacterCount_module_default = { "hop-RemainingCharacterCount": "RemainingCharacterCount-module__hop-RemainingCharacterCount___a85EF" };
|
|
14
14
|
var GlobalRemainingCharacterCountCssSelector = "hop-RemainingCharacterCount";
|
|
15
15
|
function RemainingCharacterCount(props, ref) {
|
|
16
16
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
@@ -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___muJkJ", "hop-FloatingBadge__badge": "FloatingBadge-module__hop-FloatingBadge__badge___Zim62" };
|
|
14
14
|
var GlobalFloatingBadgeCssSelector = "hop-FloatingBadge";
|
|
15
15
|
function FloatingBadge(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, FloatingBadgeContext);
|
|
@@ -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-NCSZH3BX.js';
|
|
5
|
+
import { _InputGroup } from './chunk-VNC3T7SU.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___QcGug", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___-l-YB", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___uZP7m", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___VNHdl", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___pdZBI", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___q8R-Q", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___60X9R", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___0juKS", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___Y7OKI" };
|
|
82
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
83
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
84
85
|
var pxToInt = (value) => {
|
|
@@ -143,6 +144,8 @@ function TextArea(props, ref) {
|
|
|
143
144
|
isRequired,
|
|
144
145
|
restrictMaxLength = true,
|
|
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));
|
|
@@ -206,25 +209,32 @@ function TextArea(props, ref) {
|
|
|
206
209
|
}
|
|
207
210
|
adjustRows();
|
|
208
211
|
}, [value, adjustRows]);
|
|
212
|
+
const { className: inputGroupClassName, inputClassName: inputGroupInputClassName, ...otherInputGroupProps } = inputGroupProps || {};
|
|
213
|
+
const inputGroupClassNames = clsx(TextArea_module_default["hop-TextArea__InputGroup"], inputGroupClassName);
|
|
214
|
+
const inputGroupInputClassNames = clsx(TextArea_module_default["hop-TextArea__textarea"], inputGroupInputClassName);
|
|
215
|
+
const { className: remainingCharacterCountClassName, ...otherRemainingCharacterCountProps } = remainingCharacterCountProps != null ? remainingCharacterCountProps : {};
|
|
216
|
+
const remainingCharacterCountClassNames = clsx(TextArea_module_default["hop-TextArea__RemainingCharacterCount"], remainingCharacterCountClassName);
|
|
209
217
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
210
218
|
_InputGroup,
|
|
211
219
|
{
|
|
212
220
|
isFluid: true,
|
|
213
221
|
size,
|
|
214
|
-
className:
|
|
222
|
+
className: inputGroupClassNames,
|
|
215
223
|
isDisabled,
|
|
216
224
|
isInvalid,
|
|
217
|
-
inputClassName:
|
|
225
|
+
inputClassName: inputGroupInputClassNames,
|
|
218
226
|
inputType: "textarea",
|
|
227
|
+
...otherInputGroupProps,
|
|
219
228
|
children: [
|
|
220
229
|
/* @__PURE__ */ jsx(TextArea$1, { ref: mergedTextAreaRef, placeholder, cols, rows }),
|
|
221
230
|
showCharacterCount && maxLength && /* @__PURE__ */ jsx(
|
|
222
231
|
_RemainingCharacterCount,
|
|
223
232
|
{
|
|
224
|
-
className:
|
|
233
|
+
className: remainingCharacterCountClassNames,
|
|
225
234
|
count: maxLength - characterCount,
|
|
226
235
|
isInvalid: overMaxLength,
|
|
227
|
-
isDisabled
|
|
236
|
+
isDisabled,
|
|
237
|
+
...otherRemainingCharacterCountProps
|
|
228
238
|
}
|
|
229
239
|
)
|
|
230
240
|
]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
|
-
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
2
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { _ListBoxItem } from './chunk-
|
|
3
|
+
import { _ListBoxItem } from './chunk-WHESXP63.js';
|
|
5
4
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
6
5
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
7
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
8
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-QOJVYB3C.js';
|
|
9
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
11
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./ListBox.module.css#css-module
|
|
20
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
20
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___ed8yq", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___pgD-z", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___9Ssmp", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___Yi0L-", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___SkeXc" };
|
|
21
21
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
22
22
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
23
23
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -43,6 +43,7 @@ function ListBox(props, ref) {
|
|
|
43
43
|
style: styleProp,
|
|
44
44
|
selectionIndicator = "check",
|
|
45
45
|
selectionMode,
|
|
46
|
+
loadingListBoxItemProps,
|
|
46
47
|
...otherProps
|
|
47
48
|
} = ownProps;
|
|
48
49
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
|
|
@@ -111,7 +112,6 @@ function ListBox(props, ref) {
|
|
|
111
112
|
children: /* @__PURE__ */ jsxs(
|
|
112
113
|
ListBox$1,
|
|
113
114
|
{
|
|
114
|
-
...otherProps,
|
|
115
115
|
ref,
|
|
116
116
|
className: classNames,
|
|
117
117
|
disallowEmptySelection,
|
|
@@ -120,10 +120,21 @@ function ListBox(props, ref) {
|
|
|
120
120
|
style,
|
|
121
121
|
"data-loading": isLoading,
|
|
122
122
|
shouldSelectOnPressUp: true,
|
|
123
|
+
...otherProps,
|
|
123
124
|
children: [
|
|
124
125
|
renderChildren(),
|
|
125
126
|
isLoading && Array.from({ length: 5 }).map((_, index) => {
|
|
126
|
-
return /* @__PURE__ */ jsx(
|
|
127
|
+
return /* @__PURE__ */ jsx(
|
|
128
|
+
_ListBoxItem,
|
|
129
|
+
{
|
|
130
|
+
id: `loadingListItem_${index.toString()}`,
|
|
131
|
+
isLoading,
|
|
132
|
+
size,
|
|
133
|
+
textValue: stringFormatter.format("ListBoxItem.loadingTextValue"),
|
|
134
|
+
...loadingListBoxItemProps
|
|
135
|
+
},
|
|
136
|
+
`loadingListItem_${index.toString()}`
|
|
137
|
+
);
|
|
127
138
|
})
|
|
128
139
|
]
|
|
129
140
|
}
|
|
@@ -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___YUuwf", "hop-Heading--xs": "Heading-module__hop-Heading--xs___uvxgB", "hop-Heading--sm": "Heading-module__hop-Heading--sm___Xs8cr", "hop-Heading--md": "Heading-module__hop-Heading--md___e8tdM", "hop-Heading--lg": "Heading-module__hop-Heading--lg___FiBKn", "hop-Heading--xl": "Heading-module__hop-Heading--xl___bbG2-", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___pd2tf", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___cLA-I" };
|
|
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 { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-QOJVYB3C.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___TZPaH", "spin": "Spinner-module__spin___tCLnQ", "hop-Spinner--sm": "Spinner-module__hop-Spinner--sm___I16vC", "hop-Spinner--md": "Spinner-module__hop-Spinner--md___tjp2J", "hop-Spinner--lg": "Spinner-module__hop-Spinner--lg___-Qtep", "hop-Spinner__track": "Spinner-module__hop-Spinner__track___xICWV", "hop-Spinner__fill": "Spinner-module__hop-Spinner__fill___FwZrV", "hop-Spinner__label": "Spinner-module__hop-Spinner__label___-84-I" };
|
|
13
13
|
var GlobalSpinnerCssSelector = "hop-Spinner";
|
|
14
14
|
var SpinnerToTextSizeAdapter = {
|
|
15
15
|
sm: "xs",
|
|
@@ -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___RW6Sr", "hop-Text--xs": "Text-module__hop-Text--xs___nBrVF", "hop-Text--sm": "Text-module__hop-Text--sm___3smGU", "hop-Text--md": "Text-module__hop-Text--md___jb936", "hop-Text--lg": "Text-module__hop-Text--lg___1p4tJ", "hop-Text--xl": "Text-module__hop-Text--xl___rgoZY", "hop-Text--2xl": "Text-module__hop-Text--2xl___I2NjN", "hop-Text--inherit": "Text-module__hop-Text--inherit___HsySj" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-7NUKUYR2.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -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-POYJ4HSP.js';
|
|
4
|
+
import { EnsureTextWrapper } from './chunk-ZVEICADL.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___pV-vV", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___nT1QO", "hop-Button--fluid": "Button-module__hop-Button--fluid___Vxepu", "hop-Button--sm": "Button-module__hop-Button--sm___L7Urr", "hop-Button--primary": "Button-module__hop-Button--primary___e2DsU", "hop-Button--md": "Button-module__hop-Button--md___hm99o", "hop-Button--secondary": "Button-module__hop-Button--secondary___xHI3j", "hop-Button--upsell": "Button-module__hop-Button--upsell___ccS--", "hop-Button--danger": "Button-module__hop-Button--danger___k5-Zu", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___A2y4s", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___MTwxD", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___oUfTu", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___eFMM7", "hop-Button__icon": "Button-module__hop-Button__icon___8dmMQ", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___BrG-0", "hop-Button__text": "Button-module__hop-Button__text___GBFxc", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___7EMCM", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___donaT" };
|
|
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
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-QOJVYB3C.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -10,7 +10,7 @@ import { FieldErrorContext, useContextProps, composeRenderProps } from 'react-ar
|
|
|
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-
|
|
13
|
+
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___Tu-SP", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___zBe0j" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -8,7 +8,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./IconList.module.css#css-module
|
|
11
|
-
var IconList_module_default = { "hop-IconList": "IconList-module__hop-
|
|
11
|
+
var IconList_module_default = { "hop-IconList": "IconList-module__hop-IconList___UFbqi" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
13
|
function IconList(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
@@ -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___KOQR6", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___4qyZB" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
|
-
import {
|
|
2
|
+
import { EnsureTextWrapper } from './chunk-ZVEICADL.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___5Q0b4", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___i08HL", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___MRm3h", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___2oN70", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___BJk6e", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___wVCC6", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___KadVp", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___QmHWY" };
|
|
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,
|
|
@@ -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___vGNcX", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___Mm-FD", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___sH7Yq", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___880na", "hop-InputGroup__textarea": "InputGroup-module__hop-InputGroup__textarea___WQqGF", "hop-InputGroup__embedded-button": "InputGroup-module__hop-InputGroup__embedded-button___7EoQJ" };
|
|
14
14
|
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
15
15
|
function InputGroup(props, ref) {
|
|
16
16
|
var _a, _b;
|
|
@@ -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:./CheckboxField.module.css#css-module
|
|
15
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
15
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___xo5uZ", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___rytlQ", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___7elfD", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___zp4DS", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___huy2N" };
|
|
16
16
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
17
17
|
var CheckboxToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|