@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,18 +1,26 @@
|
|
|
1
1
|
export { _CheckboxList as CheckboxList, GlobalCheckboxListCssSelector } from '../../chunk-3LRBUQC2.js';
|
|
2
|
-
export { _Checkbox as Checkbox, GlobalCheckboxCssSelector } from '../../chunk-
|
|
3
|
-
export { _CheckboxField as CheckboxField, GlobalCheckboxFieldCssSelector } from '../../chunk-
|
|
4
|
-
export { _CheckboxGroup as CheckboxGroup, GlobalCheckboxGroupCssSelector } from '../../chunk-
|
|
2
|
+
export { _Checkbox as Checkbox, GlobalCheckboxCssSelector } from '../../chunk-DWVXSSVC.js';
|
|
3
|
+
export { _CheckboxField as CheckboxField, GlobalCheckboxFieldCssSelector } from '../../chunk-A4UHNZBX.js';
|
|
4
|
+
export { _CheckboxGroup as CheckboxGroup, GlobalCheckboxGroupCssSelector } from '../../chunk-DN63JAPT.js';
|
|
5
5
|
export { CheckboxListContext } from '../../chunk-WDUQUPTE.js';
|
|
6
6
|
export { CheckboxFieldContext } from '../../chunk-ZGNK4GWA.js';
|
|
7
7
|
export { CheckboxGroupContext } from '../../chunk-N7YDPVZL.js';
|
|
8
|
-
|
|
9
|
-
export { _DecorativeCheckbox as DecorativeCheckbox, GlobalDecorativeCheckboxCssSelector } from '../../chunk-F3Y5D5LH.js';
|
|
8
|
+
export { _DecorativeCheckbox as DecorativeCheckbox, GlobalDecorativeCheckboxCssSelector } from '../../chunk-LFFRDNDM.js';
|
|
10
9
|
export { CheckboxContext } from '../../chunk-2EAZPH3M.js';
|
|
10
|
+
import '../../chunk-P2OSN32C.js';
|
|
11
11
|
import '../../chunk-ZWU6DRRZ.js';
|
|
12
|
+
import '../../chunk-LJXTJRSB.js';
|
|
13
|
+
import '../../chunk-PWJCO32L.js';
|
|
14
|
+
import '../../chunk-I3B3G6N4.js';
|
|
15
|
+
import '../../chunk-TXZ6BMFR.js';
|
|
16
|
+
import '../../chunk-QCA3ZR56.js';
|
|
17
|
+
import '../../chunk-TFVDF4YH.js';
|
|
12
18
|
import '../../chunk-DHVVYSLB.js';
|
|
13
19
|
import '../../chunk-HZKFQ33E.js';
|
|
14
20
|
import '../../chunk-FAE27DLF.js';
|
|
15
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-JZAWRJFA.js';
|
|
22
|
+
import '../../chunk-WPNVVGFW.js';
|
|
23
|
+
import '../../chunk-MLLUZ55T.js';
|
|
16
24
|
import '../../chunk-X6SER3TZ.js';
|
|
17
25
|
import '../../chunk-HXI3MEEK.js';
|
|
18
26
|
import '../../chunk-NH3IVMXB.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-MLLUZ55T.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___Vd7mM", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___K5U-I" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-MLLUZ55T.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-PQR2DVBK.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___wpAuv", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___clJqT", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___VwTfw", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___GF4mZ", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___-0jQ0", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___nf4fI", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___iaxQ-", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___Tm0WE", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___8JEYv", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___1oYom", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___dX7mt", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___ww9OR", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___BDC7Y", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___92LEC", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___x8En7", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___ikdtq", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___FOaQe" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -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___AmJcI", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___szbuc", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___nMlKJ", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___Ecsab", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___vXNFl" };
|
|
17
17
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
18
18
|
var RadioToDescriptionSizeAdapter = {
|
|
19
19
|
sm: "xs",
|
|
@@ -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___PybWQ", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___9f6T3", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___R75VP", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___Qy-vn", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___-RIG9", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___hODuD", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___ACfL2", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___Kz9mY", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___voXl2" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
|
-
import { EnsureTextWrapper } from './chunk-WH4BAEX4.js';
|
|
3
2
|
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
4
3
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
5
4
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
@@ -15,21 +14,22 @@ import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
|
15
14
|
import { ButtonContext as ButtonContext$1 } from './chunk-WMTWFKKP.js';
|
|
16
15
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
17
16
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
18
|
-
import { _SelectValue } from './chunk-
|
|
19
|
-
import {
|
|
20
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
21
|
-
import { _ListBox } from './chunk-ZQARUJYZ.js';
|
|
17
|
+
import { _SelectValue } from './chunk-KFXDFFLE.js';
|
|
18
|
+
import { _ListBox } from './chunk-XGS34BBU.js';
|
|
22
19
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
23
20
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
24
|
-
import { _ListBoxItem } from './chunk-
|
|
21
|
+
import { _ListBoxItem } from './chunk-SG2POHLX.js';
|
|
25
22
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
26
23
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
24
|
+
import { EnsureTextWrapper } from './chunk-P2OSN32C.js';
|
|
25
|
+
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
26
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
27
27
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
28
28
|
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
29
29
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
30
30
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
31
|
-
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
32
31
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
32
|
+
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
33
33
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
34
34
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
35
35
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -46,7 +46,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
46
46
|
import clsx2 from 'clsx';
|
|
47
47
|
|
|
48
48
|
// css-module:./ComboBox.module.css#css-module
|
|
49
|
-
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-
|
|
49
|
+
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___835Et", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___hk2qO", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___xc8rV", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___8u7tA", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___3OjBy", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___6NX9h", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___-BhRc", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___hzZiE", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___23knp", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___Z88LJ", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___NcbYQ", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___heXGo" };
|
|
50
50
|
var GlobalComboBoxCssSelector = "hop-ComboBox";
|
|
51
51
|
function ComboBox(props, ref) {
|
|
52
52
|
var _a, _b, _c;
|
|
@@ -75,6 +75,7 @@ function ComboBox(props, ref) {
|
|
|
75
75
|
size: sizeProp,
|
|
76
76
|
style: styleProp,
|
|
77
77
|
triggerProps,
|
|
78
|
+
footerProps,
|
|
78
79
|
...otherProps
|
|
79
80
|
} = ownProps;
|
|
80
81
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, (_a = props.inputRef) != null ? _a : null));
|
|
@@ -185,7 +186,7 @@ function ComboBox(props, ref) {
|
|
|
185
186
|
TextContext,
|
|
186
187
|
ButtonContext
|
|
187
188
|
],
|
|
188
|
-
children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
|
|
189
|
+
children: /* @__PURE__ */ jsx(_Footer, { ...footerProps, children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
|
|
189
190
|
}
|
|
190
191
|
)
|
|
191
192
|
}
|
|
@@ -193,13 +194,13 @@ function ComboBox(props, ref) {
|
|
|
193
194
|
return /* @__PURE__ */ jsx(
|
|
194
195
|
ComboBox$1,
|
|
195
196
|
{
|
|
196
|
-
...otherProps,
|
|
197
197
|
ref,
|
|
198
198
|
className: classNames,
|
|
199
199
|
style,
|
|
200
200
|
isInvalid,
|
|
201
201
|
isRequired,
|
|
202
202
|
menuTrigger,
|
|
203
|
+
...otherProps,
|
|
203
204
|
children: (comboBoxRenderProps) => {
|
|
204
205
|
const { isOpen } = comboBoxRenderProps;
|
|
205
206
|
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
@@ -226,12 +227,12 @@ function ComboBox(props, ref) {
|
|
|
226
227
|
/* @__PURE__ */ jsxs(
|
|
227
228
|
Group,
|
|
228
229
|
{
|
|
229
|
-
...otherTriggerProps,
|
|
230
230
|
ref: triggerRef,
|
|
231
231
|
className: triggerClassNames,
|
|
232
232
|
style: triggerStyle,
|
|
233
233
|
onMouseDown: handleMouseDown,
|
|
234
234
|
"data-selected": isOpen || void 0,
|
|
235
|
+
...otherTriggerProps,
|
|
235
236
|
children: [
|
|
236
237
|
prefixMarkup,
|
|
237
238
|
/* @__PURE__ */ jsx(
|
|
@@ -249,12 +250,12 @@ function ComboBox(props, ref) {
|
|
|
249
250
|
/* @__PURE__ */ jsxs(
|
|
250
251
|
_Popover,
|
|
251
252
|
{
|
|
252
|
-
...otherPopoverProps,
|
|
253
253
|
placement,
|
|
254
254
|
isNonDialog: true,
|
|
255
255
|
autoWidth: isAutoMenuWidth,
|
|
256
256
|
style: popoverStyle,
|
|
257
257
|
triggerRef,
|
|
258
|
+
...otherPopoverProps,
|
|
258
259
|
children: [
|
|
259
260
|
/* @__PURE__ */ jsx(
|
|
260
261
|
SlotProvider,
|
|
@@ -264,7 +265,7 @@ function ComboBox(props, ref) {
|
|
|
264
265
|
variant: "secondary"
|
|
265
266
|
}]
|
|
266
267
|
],
|
|
267
|
-
children: /* @__PURE__ */ jsx(_ListBox, {
|
|
268
|
+
children: /* @__PURE__ */ jsx(_ListBox, { items, size, isInvalid, ...listBoxProps, children })
|
|
268
269
|
}
|
|
269
270
|
),
|
|
270
271
|
footerMarkup
|
|
@@ -288,7 +289,7 @@ var CompoundComboBox = Object.assign(_ComboBox, {
|
|
|
288
289
|
});
|
|
289
290
|
|
|
290
291
|
// css-module:./Form.module.css#css-module
|
|
291
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
292
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___ivzCo" };
|
|
292
293
|
var GlobalFormCssSelector = "hop-Form";
|
|
293
294
|
function Form(props, ref) {
|
|
294
295
|
var _a;
|
|
@@ -415,7 +416,7 @@ var _Form = forwardRef(Form);
|
|
|
415
416
|
_Form.displayName = "Form";
|
|
416
417
|
|
|
417
418
|
// css-module:./Select.module.css#css-module
|
|
418
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
419
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___iGe3X", "hop-Select--fluid": "Select-module__hop-Select--fluid___MRajt", "hop-Select__label": "Select-module__hop-Select__label___pcp6j", "hop-Select__button": "Select-module__hop-Select__button___YqM-Z", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___5Tjs-", "hop-Select__button--md": "Select-module__hop-Select__button--md___bnEbE", "hop-Select__prefix": "Select-module__hop-Select__prefix___916vN", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___SzaEd", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___NogEd", "hop-Select__error-message": "Select-module__hop-Select__error-message___k-T9W" };
|
|
419
420
|
var GlobalSelectCssSelector = "hop-Select";
|
|
420
421
|
function Select(props, ref) {
|
|
421
422
|
var _a, _b;
|
|
@@ -439,6 +440,7 @@ function Select(props, ref) {
|
|
|
439
440
|
size: sizeProp,
|
|
440
441
|
style: styleProp,
|
|
441
442
|
triggerProps,
|
|
443
|
+
footerProps,
|
|
442
444
|
...otherProps
|
|
443
445
|
} = ownProps;
|
|
444
446
|
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
@@ -506,7 +508,7 @@ function Select(props, ref) {
|
|
|
506
508
|
TextContext,
|
|
507
509
|
ButtonContext
|
|
508
510
|
],
|
|
509
|
-
children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
|
|
511
|
+
children: /* @__PURE__ */ jsx(_Footer, { ...footerProps, children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
|
|
510
512
|
}
|
|
511
513
|
)
|
|
512
514
|
}
|
|
@@ -543,7 +545,7 @@ function Select(props, ref) {
|
|
|
543
545
|
children: fieldChildren
|
|
544
546
|
}
|
|
545
547
|
),
|
|
546
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
548
|
+
/* @__PURE__ */ jsxs(Button, { className: buttonClassNames, style: triggerStyle, "data-invalid": isInvalid || void 0, ...otherTriggerProps, children: [
|
|
547
549
|
prefixMarkup,
|
|
548
550
|
/* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
|
|
549
551
|
return renderValue == null ? void 0 : renderValue(valueRenderProps);
|
|
@@ -559,7 +561,7 @@ function Select(props, ref) {
|
|
|
559
561
|
variant: "secondary"
|
|
560
562
|
}]
|
|
561
563
|
],
|
|
562
|
-
children: /* @__PURE__ */ jsx(_ListBox, {
|
|
564
|
+
children: /* @__PURE__ */ jsx(_ListBox, { items, size, isInvalid, ...listBoxProps, children })
|
|
563
565
|
}
|
|
564
566
|
),
|
|
565
567
|
footerMarkup
|
|
@@ -990,7 +992,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
990
992
|
}
|
|
991
993
|
|
|
992
994
|
// css-module:./Popover.module.css#css-module
|
|
993
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
995
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___uSCOt", "fade": "Popover-module__fade___xSKiJ", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___yQ93d", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___CKCUJ", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___M1SIk", "hop-Popover__title": "Popover-module__hop-Popover__title___q-f-y", "hop-Popover__content": "Popover-module__hop-Popover__content___Q-PXf", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___Fays-", "hop-Popover__footer": "Popover-module__hop-Popover__footer___WfENH", "hop-Popover__actions": "Popover-module__hop-Popover__actions___yzukr", "hop-Popover__action": "Popover-module__hop-Popover__action___kf1Ea" };
|
|
994
996
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
995
997
|
function Popover(props, ref) {
|
|
996
998
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-JZAWRJFA.js';
|
|
2
2
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
3
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
4
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
@@ -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:./Badge.module.css#css-module
|
|
15
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
15
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___jegv1" };
|
|
16
16
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
17
17
|
function Badge(props, ref) {
|
|
18
18
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-FRVE3N27.js';
|
|
3
|
+
import { _EmbeddedButton } from './chunk-GUHMGBDJ.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
@@ -12,13 +12,14 @@ import { cssModule } from './chunk-KVDXQMWI.js';
|
|
|
12
12
|
import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
|
|
13
13
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
14
14
|
import { mergeRefs } from '@react-aria/utils';
|
|
15
|
+
import clsx from 'clsx';
|
|
15
16
|
import { forwardRef, useState } from 'react';
|
|
16
17
|
import { useObjectRef } from 'react-aria';
|
|
17
18
|
import { useContextProps, composeRenderProps, Input, TextField } from 'react-aria-components';
|
|
18
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
20
|
|
|
20
21
|
// css-module:./PasswordField.module.css#css-module
|
|
21
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-
|
|
22
|
+
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___k10DH", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___kfzmr", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___uyGWG", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___CIFqT", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___wFBoh", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___4BXF-" };
|
|
22
23
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
23
24
|
function PasswordField(props, ref) {
|
|
24
25
|
var _a;
|
|
@@ -41,6 +42,9 @@ function PasswordField(props, ref) {
|
|
|
41
42
|
isInvalid,
|
|
42
43
|
isRequired,
|
|
43
44
|
necessityIndicator,
|
|
45
|
+
inputGroupProps,
|
|
46
|
+
inputProps,
|
|
47
|
+
embeddedButtonProps,
|
|
44
48
|
...otherProps
|
|
45
49
|
} = ownProps;
|
|
46
50
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -61,6 +65,8 @@ function PasswordField(props, ref) {
|
|
|
61
65
|
...prev
|
|
62
66
|
};
|
|
63
67
|
});
|
|
68
|
+
const { className: inputGroupClassName, ...otherInputGroupProps } = inputGroupProps != null ? inputGroupProps : {};
|
|
69
|
+
const inputGroupClassNames = clsx(PasswordField_module_default["hop-PasswordField__InputGroup"], inputGroupClassName);
|
|
64
70
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
65
71
|
_InputGroup,
|
|
66
72
|
{
|
|
@@ -68,9 +74,10 @@ function PasswordField(props, ref) {
|
|
|
68
74
|
isInvalid,
|
|
69
75
|
isFluid: true,
|
|
70
76
|
size,
|
|
71
|
-
className:
|
|
77
|
+
className: inputGroupClassNames,
|
|
78
|
+
...otherInputGroupProps,
|
|
72
79
|
children: [
|
|
73
|
-
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder, type: showPassword ? "text" : "password" }),
|
|
80
|
+
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder, type: showPassword ? "text" : "password", ...inputProps }),
|
|
74
81
|
/* @__PURE__ */ jsx(
|
|
75
82
|
_EmbeddedButton,
|
|
76
83
|
{
|
|
@@ -80,6 +87,7 @@ function PasswordField(props, ref) {
|
|
|
80
87
|
setShowPassword((x) => !x);
|
|
81
88
|
},
|
|
82
89
|
size: "lg",
|
|
90
|
+
...embeddedButtonProps,
|
|
83
91
|
children: showPassword ? /* @__PURE__ */ jsx(EyeVisibleIcon, {}) : /* @__PURE__ */ jsx(EyeHiddenIcon, {})
|
|
84
92
|
}
|
|
85
93
|
)
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Divider.module.css#css-module
|
|
10
|
-
var Divider_module_default = { "hop-Divider": "Divider-module__hop-
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___x37o8", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___xNSYD" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-MLLUZ55T.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___bKb5C" };
|
|
14
14
|
var GlobalRemainingCharacterCountCssSelector = "hop-RemainingCharacterCount";
|
|
15
15
|
function RemainingCharacterCount(props, ref) {
|
|
16
16
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
@@ -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___8hMui", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___U-2pK", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___yp9en", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___ajdc-", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___gS65H" };
|
|
16
16
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
17
17
|
var CheckboxToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-FRVE3N27.js';
|
|
3
|
+
import { _ClearButton } from './chunk-JHP7LA2B.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
6
6
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
@@ -11,13 +11,14 @@ import { cssModule } from './chunk-KVDXQMWI.js';
|
|
|
11
11
|
import { IconContext, SearchIcon } from '@hopper-ui/icons';
|
|
12
12
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
13
13
|
import { mergeRefs } from '@react-aria/utils';
|
|
14
|
+
import clsx from 'clsx';
|
|
14
15
|
import { forwardRef } from 'react';
|
|
15
16
|
import { useObjectRef } from 'react-aria';
|
|
16
17
|
import { useContextProps, composeRenderProps, Input, SearchField as SearchField$1 } from 'react-aria-components';
|
|
17
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
19
|
|
|
19
20
|
// css-module:./SearchField.module.css#css-module
|
|
20
|
-
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-
|
|
21
|
+
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___HYefK", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___8WZ1m", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___7pHmE", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___ihI5j", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___q9vpn", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___OGPSY", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___vQZyv", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___qQln4", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___zPokm" };
|
|
21
22
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
22
23
|
function SearchField(props, ref) {
|
|
23
24
|
var _a;
|
|
@@ -40,6 +41,8 @@ function SearchField(props, ref) {
|
|
|
40
41
|
isInvalid,
|
|
41
42
|
isRequired,
|
|
42
43
|
necessityIndicator,
|
|
44
|
+
inputGroupProps,
|
|
45
|
+
clearButtonProps,
|
|
43
46
|
...otherProps
|
|
44
47
|
} = ownProps;
|
|
45
48
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -60,6 +63,10 @@ function SearchField(props, ref) {
|
|
|
60
63
|
...prev
|
|
61
64
|
};
|
|
62
65
|
});
|
|
66
|
+
const { className: inputGroupClassName, ...otherInputGroupProps } = inputGroupProps != null ? inputGroupProps : {};
|
|
67
|
+
const inputGroupClassNames = clsx(SearchField_module_default["hop-SearchField__InputGroup"], inputGroupClassName);
|
|
68
|
+
const { className: clearButtonClassName, ...otherClearButtonProps } = clearButtonProps != null ? clearButtonProps : {};
|
|
69
|
+
const clearButtonClassNames = clsx(SearchField_module_default["hop-SearchField__ClearButton"], clearButtonClassName);
|
|
63
70
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
64
71
|
_InputGroup,
|
|
65
72
|
{
|
|
@@ -67,7 +74,8 @@ function SearchField(props, ref) {
|
|
|
67
74
|
isInvalid,
|
|
68
75
|
isFluid: true,
|
|
69
76
|
size,
|
|
70
|
-
className:
|
|
77
|
+
className: inputGroupClassNames,
|
|
78
|
+
...otherInputGroupProps,
|
|
71
79
|
children: [
|
|
72
80
|
/* @__PURE__ */ jsx(
|
|
73
81
|
SlotProvider,
|
|
@@ -81,7 +89,7 @@ function SearchField(props, ref) {
|
|
|
81
89
|
}
|
|
82
90
|
),
|
|
83
91
|
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder }),
|
|
84
|
-
isClearable && /* @__PURE__ */ jsx(_ClearButton, { size: "lg", isDisabled, className:
|
|
92
|
+
isClearable && /* @__PURE__ */ jsx(_ClearButton, { size: "lg", isDisabled, className: clearButtonClassNames, ...otherClearButtonProps })
|
|
85
93
|
]
|
|
86
94
|
}
|
|
87
95
|
) });
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
|
-
import { _ClearButton } from './chunk-
|
|
3
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _ClearButton } from './chunk-JHP7LA2B.js';
|
|
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
7
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
8
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
9
8
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
9
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
10
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -14,12 +13,13 @@ import { SlotProvider } from './chunk-M36KANKC.js';
|
|
|
14
13
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
14
|
import { IconContext } from '@hopper-ui/icons';
|
|
16
15
|
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
16
|
+
import clsx from 'clsx';
|
|
17
17
|
import { forwardRef } from 'react';
|
|
18
18
|
import { useContextProps, composeRenderProps, Tag as Tag$1 } from 'react-aria-components';
|
|
19
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Tag.module.css#css-module
|
|
22
|
-
var Tag_module_default = { "hop-Tag": "Tag-module__hop-
|
|
22
|
+
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___-rCVm", "hop-Tag--sm": "Tag-module__hop-Tag--sm___fr1jO", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___5FrpC", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___afafg", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___WasdR", "hop-Tag--md": "Tag-module__hop-Tag--md___6UWsk", "hop-Tag--lg": "Tag-module__hop-Tag--lg___ldXx1", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___J4w93", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___F4PzZ", "hop-Tag--progress": "Tag-module__hop-Tag--progress___-lfc3", "hop-Tag--positive": "Tag-module__hop-Tag--positive___5dsGv", "hop-Tag--caution": "Tag-module__hop-Tag--caution___YrHxA", "hop-Tag--negative": "Tag-module__hop-Tag--negative___Cov73", "hop-Tag--option1": "Tag-module__hop-Tag--option1___I2iXh", "hop-Tag--option2": "Tag-module__hop-Tag--option2___u8Mw-", "hop-Tag--option3": "Tag-module__hop-Tag--option3___t4ILa", "hop-Tag--option4": "Tag-module__hop-Tag--option4___Zec2L", "hop-Tag--option5": "Tag-module__hop-Tag--option5___39tDN", "hop-Tag--option6": "Tag-module__hop-Tag--option6___9-KlZ", "hop-Tag__icon": "Tag-module__hop-Tag__icon___TvuVB", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___FH3aW", "hop-Tag__text": "Tag-module__hop-Tag__text___C9IvT", "hop-Tag__badge": "Tag-module__hop-Tag__badge___yWNmg" };
|
|
23
23
|
var GlobalTagCssSelector = "hop-Tag";
|
|
24
24
|
var TagToTextSizeAdapter = {
|
|
25
25
|
sm: "xs",
|
|
@@ -49,6 +49,8 @@ function Tag(props, ref) {
|
|
|
49
49
|
style: styleProp,
|
|
50
50
|
textValue: textValueProp,
|
|
51
51
|
variant = "neutral",
|
|
52
|
+
clearButtonProps,
|
|
53
|
+
spinnerProps,
|
|
52
54
|
...otherProps
|
|
53
55
|
} = ownProps;
|
|
54
56
|
const stringFormatter = useLocalizedString();
|
|
@@ -72,11 +74,12 @@ function Tag(props, ref) {
|
|
|
72
74
|
};
|
|
73
75
|
});
|
|
74
76
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
75
|
-
|
|
76
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
77
|
-
}
|
|
78
|
-
return prev;
|
|
77
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
79
78
|
});
|
|
79
|
+
const { className: spinnerClassName, ...otherSpinnerProps } = spinnerProps || {};
|
|
80
|
+
const spinnerClassNames = clsx(Tag_module_default["hop-Tag__Spinner"], spinnerClassName);
|
|
81
|
+
const { className: clearButtonClassName, ...otherClearButtonProps } = clearButtonProps || {};
|
|
82
|
+
const clearButtonClassNames = clsx(Tag_module_default["hop-Tag__remove-btn"], clearButtonClassName);
|
|
80
83
|
return /* @__PURE__ */ jsx(
|
|
81
84
|
Tag$1,
|
|
82
85
|
{
|
|
@@ -127,11 +130,12 @@ function Tag(props, ref) {
|
|
|
127
130
|
{
|
|
128
131
|
slot: "remove",
|
|
129
132
|
isDisabled,
|
|
130
|
-
className:
|
|
133
|
+
className: clearButtonClassNames,
|
|
131
134
|
"aria-label": stringFormatter.format("Tag.removeAriaLabel"),
|
|
132
135
|
size: TagToButtonSizeAdapter[size],
|
|
133
136
|
variant,
|
|
134
|
-
isSelected
|
|
137
|
+
isSelected,
|
|
138
|
+
...otherClearButtonProps
|
|
135
139
|
}
|
|
136
140
|
),
|
|
137
141
|
isLoading && /* @__PURE__ */ jsx(
|
|
@@ -139,7 +143,8 @@ function Tag(props, ref) {
|
|
|
139
143
|
{
|
|
140
144
|
"aria-label": stringFormatter.format("Tag.spinnerAriaLabel"),
|
|
141
145
|
size: "sm",
|
|
142
|
-
className:
|
|
146
|
+
className: spinnerClassNames,
|
|
147
|
+
...otherSpinnerProps
|
|
143
148
|
}
|
|
144
149
|
)
|
|
145
150
|
] });
|