@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
|
@@ -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-VGVPCTWN.js';
|
|
3
|
+
export { _CheckboxField as CheckboxField, GlobalCheckboxFieldCssSelector } from '../../chunk-WGK36YRB.js';
|
|
4
|
+
export { _CheckboxGroup as CheckboxGroup, GlobalCheckboxGroupCssSelector } from '../../chunk-N2LF4W2F.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-AG6PENAS.js';
|
|
10
9
|
export { CheckboxContext } from '../../chunk-2EAZPH3M.js';
|
|
10
|
+
import '../../chunk-ZVEICADL.js';
|
|
11
11
|
import '../../chunk-ZWU6DRRZ.js';
|
|
12
|
+
import '../../chunk-LJXTJRSB.js';
|
|
13
|
+
import '../../chunk-2YCQ3HR4.js';
|
|
14
|
+
import '../../chunk-PIPM74ZR.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-TWDVOXVB.js';
|
|
22
|
+
import '../../chunk-WPNVVGFW.js';
|
|
23
|
+
import '../../chunk-QOJVYB3C.js';
|
|
16
24
|
import '../../chunk-X6SER3TZ.js';
|
|
17
25
|
import '../../chunk-HXI3MEEK.js';
|
|
18
26
|
import '../../chunk-NH3IVMXB.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsOverflow } from './chunk-EHXOXTDN.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-QOJVYB3C.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -16,7 +16,7 @@ import { useContextProps, SelectValueContext, SelectStateContext, useSlottedCont
|
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
// css-module:./SelectValue.module.css#css-module
|
|
19
|
-
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-
|
|
19
|
+
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-SelectValue___POG5F", "hop-SelectValue__text": "SelectValue-module__hop-SelectValue__text___Oy3-U", "hop-SelectValue__avatar": "SelectValue-module__hop-SelectValue__avatar___wZecw", "hop-SelectValue__icon": "SelectValue-module__hop-SelectValue__icon___-fq2b", "hop-SelectValue__end-icon": "SelectValue-module__hop-SelectValue__end-icon___WPD-U" };
|
|
20
20
|
var GlobalSelectValueCssSelector = "hop-SelectValue";
|
|
21
21
|
var SelectValueToAvatarSizeAdapter = {
|
|
22
22
|
sm: "xs",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
2
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
3
|
-
import { _RemainingCharacterCount } from './chunk-
|
|
4
|
-
import { _InputGroup } from './chunk-
|
|
5
|
-
import { _ClearButton } from './chunk-
|
|
3
|
+
import { _RemainingCharacterCount } from './chunk-NCSZH3BX.js';
|
|
4
|
+
import { _InputGroup } from './chunk-VNC3T7SU.js';
|
|
5
|
+
import { _ClearButton } from './chunk-QZK76BU7.js';
|
|
6
|
+
import { EnsureTextWrapper } from './chunk-ZVEICADL.js';
|
|
6
7
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
7
|
-
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
8
8
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
9
9
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
10
|
-
import { _Text } from './chunk-EY4ZTKS4.js';
|
|
11
10
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
11
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
12
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -17,13 +16,14 @@ import { IconContext } from '@hopper-ui/icons';
|
|
|
17
16
|
import { useStyledSystem, useResponsiveValue, useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
18
17
|
import { mergeRefs } from '@react-aria/utils';
|
|
19
18
|
import { useControlledState } from '@react-stately/utils';
|
|
19
|
+
import clsx from 'clsx';
|
|
20
20
|
import { forwardRef, useState, useCallback } from 'react';
|
|
21
21
|
import { useObjectRef } from 'react-aria';
|
|
22
22
|
import { useContextProps, composeRenderProps, Input, TextField as TextField$1 } from 'react-aria-components';
|
|
23
23
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
24
24
|
|
|
25
25
|
// css-module:./TextField.module.css#css-module
|
|
26
|
-
var TextField_module_default = { "hop-TextField": "TextField-module__hop-
|
|
26
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___y22Y7", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___FPkg6", "hop-TextField__Label": "TextField-module__hop-TextField__Label___aNClZ", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___cJ1R9", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___Socxx", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___L55Kl", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___ILsiP" };
|
|
27
27
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
28
28
|
function TextField(props, ref) {
|
|
29
29
|
var _a;
|
|
@@ -57,6 +57,8 @@ function TextField(props, ref) {
|
|
|
57
57
|
isRequired,
|
|
58
58
|
restrictMaxLength = true,
|
|
59
59
|
necessityIndicator,
|
|
60
|
+
inputGroupProps,
|
|
61
|
+
remainingCharacterCountProps,
|
|
60
62
|
...otherProps
|
|
61
63
|
} = ownProps;
|
|
62
64
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -100,7 +102,7 @@ function TextField(props, ref) {
|
|
|
100
102
|
[TextContext, { size, className: TextField_module_default["hop-TextField__prefix"] }],
|
|
101
103
|
[IconContext, { size, className: TextField_module_default["hop-TextField__prefix"] }]
|
|
102
104
|
],
|
|
103
|
-
children:
|
|
105
|
+
children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix })
|
|
104
106
|
}
|
|
105
107
|
) : null;
|
|
106
108
|
useIsomorphicLayoutEffect(() => {
|
|
@@ -109,14 +111,17 @@ function TextField(props, ref) {
|
|
|
109
111
|
onChange(newValue);
|
|
110
112
|
}
|
|
111
113
|
}, [value]);
|
|
114
|
+
const { className: inputGroupClassName, ...otherInputGroupProps } = inputGroupProps || {};
|
|
115
|
+
const inputGroupClassNames = clsx(TextField_module_default["hop-TextField__InputGroup"], inputGroupClassName);
|
|
112
116
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
113
117
|
_InputGroup,
|
|
114
118
|
{
|
|
115
119
|
isFluid: true,
|
|
116
120
|
size,
|
|
117
|
-
className:
|
|
121
|
+
className: inputGroupClassNames,
|
|
118
122
|
isDisabled,
|
|
119
123
|
isInvalid,
|
|
124
|
+
...otherInputGroupProps,
|
|
120
125
|
children: [
|
|
121
126
|
prefixMarkup,
|
|
122
127
|
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder }),
|
|
@@ -125,7 +130,8 @@ function TextField(props, ref) {
|
|
|
125
130
|
{
|
|
126
131
|
count: maxLength - characterCount,
|
|
127
132
|
isInvalid: overMaxLength,
|
|
128
|
-
isDisabled
|
|
133
|
+
isDisabled,
|
|
134
|
+
...remainingCharacterCountProps
|
|
129
135
|
}
|
|
130
136
|
),
|
|
131
137
|
showClearButton && /* @__PURE__ */ jsx(_ClearButton, { isDisabled, size: "lg", onPress: handleClear })
|
|
@@ -8,7 +8,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./Label.module.css#css-module
|
|
11
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
11
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___xkdTr", "hop-Label__indicator": "Label-module__hop-Label__indicator___JELb6" };
|
|
12
12
|
var GlobalLabelCssSelector = "hop-Label";
|
|
13
13
|
function Label(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -13,7 +13,7 @@ import { useContextProps, FieldErrorContext, TagGroup as TagGroup$1 } from 'reac
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./TagGroup.module.css#css-module
|
|
16
|
-
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-
|
|
16
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___FQi-D", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___Dl5-y", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___eLcgm", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___TEJdq", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___HXB7j" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -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-VNC3T7SU.js';
|
|
3
|
+
import { _ClearButton } from './chunk-QZK76BU7.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___ZbJJm", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___LWdo3", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___76fAa", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___9g9t1", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___0LuCE", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___gUgyC", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___n-iDh", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___UnNo0", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___plEXG" };
|
|
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
|
) });
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___q-hNf", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___gSiaw", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___jSji0", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___uo35q", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___mYkCa", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___8QsdD" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -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-VNC3T7SU.js';
|
|
3
|
+
import { _EmbeddedButton } from './chunk-7NUKUYR2.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___dta3M", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___WxgI1", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___cqm1S", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___ENgqR", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___gtfVk", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___IURZH" };
|
|
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
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-TWDVOXVB.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___JWQbO" };
|
|
16
16
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
17
17
|
function Badge(props, ref) {
|
|
18
18
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -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-2FPPOLXY.js';
|
|
18
|
+
import { _ListBox } from './chunk-PC57XZVV.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-WHESXP63.js';
|
|
25
22
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
26
23
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
24
|
+
import { EnsureTextWrapper } from './chunk-ZVEICADL.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___LXbjG", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___FswoQ", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___qMKn4", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___7hSaz", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___CZJr6", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___3hL-n", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___7eFVx", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___f1Mg4", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___B3wz4", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___TqkUD", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___MJTOB", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___6s8eS" };
|
|
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___V0jnS" };
|
|
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___fLA3P", "hop-Select--fluid": "Select-module__hop-Select--fluid___JGyi-", "hop-Select__label": "Select-module__hop-Select__label___omOj-", "hop-Select__button": "Select-module__hop-Select__button___FM7cF", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___fUFl1", "hop-Select__button--md": "Select-module__hop-Select__button--md___qucwY", "hop-Select__prefix": "Select-module__hop-Select__prefix___a3QN6", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___UiT-s", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___lTFis", "hop-Select__error-message": "Select-module__hop-Select__error-message___ZmcdD" };
|
|
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___FR9LN", "fade": "Popover-module__fade___WrDBm", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___T0m2R", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___Xn6RR", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___e6f6Z", "hop-Popover__title": "Popover-module__hop-Popover__title___majU8", "hop-Popover__content": "Popover-module__hop-Popover__content___UxPkD", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___1ZMbM", "hop-Popover__footer": "Popover-module__hop-Popover__footer___IRzt1", "hop-Popover__actions": "Popover-module__hop-Popover__actions___CMR2O", "hop-Popover__action": "Popover-module__hop-Popover__action___qbbCE" };
|
|
994
996
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
995
997
|
function Popover(props, ref) {
|
|
996
998
|
var _a;
|
|
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Button } from 'react-aria-componen
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
12
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
12
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___ON1n7", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___BI63J", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___Qhp1t", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___c7PkA", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___iGEsd", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___aF-1D", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___haMaB", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___mUjt4", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___PVt6n", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___R6Zb7", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___WF5JG", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___kBoA-", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___DZYUB", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___bjVbP", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___dAuny", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___5xITO" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -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 { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
@@ -16,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
16
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
16
|
|
|
18
17
|
// css-module:./DecorativeCheckbox.module.css#css-module
|
|
19
|
-
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-
|
|
18
|
+
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-DecorativeCheckbox___zl85i Checkbox-module__hop-Checkbox___5Q0b4", "hop-DecorativeCheckbox--sm": "DecorativeCheckbox-module__hop-DecorativeCheckbox--sm___EdL7K Checkbox-module__hop-Checkbox--sm___i08HL", "hop-DecorativeCheckbox--md": "DecorativeCheckbox-module__hop-DecorativeCheckbox--md___aSXCP Checkbox-module__hop-Checkbox--md___MRm3h", "hop-DecorativeCheckbox__icon": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon___uNu4k Checkbox-module__hop-Checkbox__icon___2oN70", "hop-DecorativeCheckbox__icon-list": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon-list___k6ewW Checkbox-module__hop-Checkbox__icon___2oN70", "hop-DecorativeCheckbox__box": "DecorativeCheckbox-module__hop-DecorativeCheckbox__box___VMsJh Checkbox-module__hop-Checkbox__box___wVCC6", "hop-DecorativeCheckbox__check": "DecorativeCheckbox-module__hop-DecorativeCheckbox__check___UCPQs Checkbox-module__hop-Checkbox__check___KadVp", "hop-DecorativeCheckbox__text": "DecorativeCheckbox-module__hop-DecorativeCheckbox__text___1cIOX Checkbox-module__hop-Checkbox__text___QmHWY" };
|
|
20
19
|
var GlobalDecorativeCheckboxCssSelector = "hop-DecorativeCheckbox";
|
|
21
20
|
function DecorativeCheckbox(props, ref) {
|
|
22
21
|
var _a;
|
|
@@ -42,10 +41,7 @@ function DecorativeCheckbox(props, ref) {
|
|
|
42
41
|
} = ownProps;
|
|
43
42
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
44
43
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
45
|
-
|
|
46
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
47
|
-
}
|
|
48
|
-
return prev;
|
|
44
|
+
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
49
45
|
});
|
|
50
46
|
const classNames = composeClassnameRenderProps(
|
|
51
47
|
className,
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useScale } from './chunk-MTDFS4CZ.js';
|
|
2
2
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
3
|
+
import { _InputGroup } from './chunk-VNC3T7SU.js';
|
|
4
|
+
import { EnsureTextWrapper } from './chunk-ZVEICADL.js';
|
|
4
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.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 { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -15,13 +14,14 @@ import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
|
15
14
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
16
15
|
import { mergeRefs } from '@react-aria/utils';
|
|
17
16
|
import { useControlledState } from '@react-stately/utils';
|
|
17
|
+
import clsx from 'clsx';
|
|
18
18
|
import { forwardRef, useCallback } from 'react';
|
|
19
19
|
import { useObjectRef } from 'react-aria';
|
|
20
20
|
import { useContextProps, composeRenderProps, Input, NumberField as NumberField$1, Button } from 'react-aria-components';
|
|
21
21
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
22
|
|
|
23
23
|
// css-module:./NumberField.module.css#css-module
|
|
24
|
-
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-
|
|
24
|
+
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___qYKdU", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___ZxbmG", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___59a2v", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___KrPFA", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___3DCzl", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___-xjSK", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___C8Yhu", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___bpZff", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___UN1D5", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___rIJae", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___hVbzk", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___60vNq", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___3oAWu", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___aZT1m" };
|
|
25
25
|
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
26
26
|
var StepperButton = ({ direction }) => {
|
|
27
27
|
const scale = useScale();
|
|
@@ -73,6 +73,7 @@ function NumberField(props, ref) {
|
|
|
73
73
|
isInvalid,
|
|
74
74
|
isRequired,
|
|
75
75
|
necessityIndicator,
|
|
76
|
+
inputGroupProps,
|
|
76
77
|
...otherProps
|
|
77
78
|
} = ownProps;
|
|
78
79
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -107,19 +108,23 @@ function NumberField(props, ref) {
|
|
|
107
108
|
[TextContext, { size, className: NumberField_module_default["hop-NumberField__prefix"] }],
|
|
108
109
|
[IconContext, { size, className: NumberField_module_default["hop-NumberField__prefix"] }]
|
|
109
110
|
],
|
|
110
|
-
children:
|
|
111
|
+
children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix })
|
|
111
112
|
}
|
|
112
113
|
) : null;
|
|
114
|
+
const { className: inputGroupClassName, inputClassName: inputGroupInputClassName, ...otherInputGroupProps } = inputGroupProps || {};
|
|
115
|
+
const inputGroupClassNames = clsx(NumberField_module_default["hop-NumberField__InputGroup"], inputGroupClassName);
|
|
116
|
+
const inputGroupInputClassNames = clsx(NumberField_module_default["hop-NumberField__input"], inputGroupInputClassName);
|
|
113
117
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
114
118
|
_InputGroup,
|
|
115
119
|
{
|
|
116
120
|
isFluid: true,
|
|
117
121
|
size,
|
|
118
|
-
className:
|
|
122
|
+
className: inputGroupClassNames,
|
|
119
123
|
isDisabled,
|
|
120
124
|
isInvalid,
|
|
121
|
-
inputClassName:
|
|
125
|
+
inputClassName: inputGroupInputClassNames,
|
|
122
126
|
inputType: "number",
|
|
127
|
+
...otherInputGroupProps,
|
|
123
128
|
children: [
|
|
124
129
|
prefixMarkup,
|
|
125
130
|
/* @__PURE__ */ jsx(Input, { ref: inputRef }),
|
|
@@ -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 { DeletedUserRichIcon } from '@hopper-ui/icons';
|