@hopper-ui/components 1.0.6 → 1.0.7
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 +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +3 -3
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +5 -5
- package/dist/Avatar/src/AvatarContext.js +1 -1
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImageContext.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +7 -7
- package/dist/Avatar/src/useImageFallback.js +1 -1
- package/dist/Badge/src/Badge.css +10 -10
- package/dist/Badge/src/Badge.js +3 -3
- package/dist/Badge/src/BadgeContext.js +1 -1
- package/dist/Badge/src/index.css +10 -10
- package/dist/Badge/src/index.js +3 -3
- package/dist/Chip/src/Chip.css +33 -33
- package/dist/Chip/src/Chip.js +3 -3
- package/dist/Chip/src/ChipContext.js +1 -1
- package/dist/Chip/src/index.css +33 -33
- package/dist/Chip/src/index.js +3 -3
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +2 -2
- package/dist/Divider/src/DividerContext.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +2 -2
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +3 -3
- package/dist/ErrorMessage/src/ErrorMessageContext.js +1 -1
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +3 -3
- package/dist/Header/src/Header.js +1 -1
- package/dist/Header/src/HeaderContext.js +1 -1
- package/dist/Header/src/index.js +1 -1
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +3 -3
- package/dist/HelperMessage/src/HelperMessageContext.js +1 -1
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +3 -3
- package/dist/HopperProvider/src/HopperProvider.js +1 -1
- package/dist/HopperProvider/src/index.js +1 -1
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- package/dist/IconList/src/IconListContext.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +2 -2
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +3 -3
- package/dist/Link/src/LinkContext.js +1 -1
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +175 -175
- package/dist/ListBox/src/ListBox.js +11 -11
- package/dist/ListBox/src/ListBoxContext.js +1 -1
- package/dist/ListBox/src/ListBoxItem.css +160 -160
- package/dist/ListBox/src/ListBoxItem.js +10 -10
- package/dist/ListBox/src/ListBoxItemContext.js +1 -1
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +2 -2
- package/dist/ListBox/src/ListBoxItemSkeletonContext.js +1 -1
- package/dist/ListBox/src/index.css +175 -175
- package/dist/ListBox/src/index.js +11 -11
- package/dist/ListBox/src/useLoadOnScroll.js +1 -1
- package/dist/Section/src/Section.js +1 -1
- package/dist/Section/src/SectionContext.js +1 -1
- package/dist/Section/src/index.js +1 -1
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/SpinnerContext.js +1 -1
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.js +6 -6
- package/dist/buttons/src/ButtonContext.js +1 -1
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +2 -2
- package/dist/buttons/src/ButtonGroupContext.js +1 -1
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +4 -4
- package/dist/buttons/src/ClearButtonContext.js +1 -1
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/EmbeddedButtonContext.js +1 -1
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +9 -9
- package/dist/checkbox/src/Checkbox.css +31 -31
- package/dist/checkbox/src/Checkbox.js +3 -3
- package/dist/checkbox/src/CheckboxContext.js +1 -1
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +2 -2
- package/dist/checkbox/src/CheckboxFieldContext.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +66 -66
- package/dist/checkbox/src/CheckboxGroup.js +4 -4
- package/dist/checkbox/src/CheckboxGroupContext.js +1 -1
- package/dist/checkbox/src/CheckboxList.js +1 -1
- package/dist/checkbox/src/CheckboxListContext.js +1 -1
- package/dist/checkbox/src/index.css +66 -66
- package/dist/checkbox/src/index.js +8 -8
- package/dist/{chunk-53FHDOG7.js → chunk-2NJ3RDMJ.js} +2 -2
- package/dist/chunk-3LGP5T4C.js +625 -0
- package/dist/{chunk-JRDN364E.js → chunk-3WUDQLLR.js} +2 -2
- package/dist/{chunk-MED2BIDV.js → chunk-4TJUYXYN.js} +1 -1
- package/dist/{chunk-MVRI6GLQ.js → chunk-4V75RYJN.js} +2 -2
- package/dist/{chunk-QBCCF2C2.js → chunk-5CIADHZR.js} +2 -2
- package/dist/{chunk-6QMIRVLY.js → chunk-666H6UTL.js} +1 -1
- package/dist/{chunk-J53HGLCT.js → chunk-AE24HPDG.js} +1 -1
- package/dist/chunk-CK5HMGDC.js +156 -0
- package/dist/{chunk-HR25MLRP.js → chunk-COBPJHIY.js} +1 -1
- package/dist/{chunk-XRC7XE6B.js → chunk-CXIMLIUB.js} +2 -2
- package/dist/{chunk-RA7PM75O.js → chunk-DESANYPD.js} +5 -5
- package/dist/{chunk-RG4JKE4N.js → chunk-E7Y25WJE.js} +1 -1
- package/dist/{chunk-K4ZGI7DJ.js → chunk-EBXHYPDU.js} +1 -1
- package/dist/{chunk-BKC74M6Y.js → chunk-FMSIW5AX.js} +1 -1
- package/dist/{chunk-OHB5QR5P.js → chunk-HVUX7ZQ3.js} +2 -2
- package/dist/{chunk-37NW34QM.js → chunk-IUQNDY3E.js} +3 -3
- package/dist/{chunk-2P3A4VVY.js → chunk-JSBRDJBE.js} +1 -6
- package/dist/{chunk-J33IFG4U.js → chunk-LIUW56HE.js} +1 -1
- package/dist/chunk-LJXTJRSB.js +1 -0
- package/dist/{chunk-SOSHKMNI.js → chunk-LM4HMPSD.js} +2 -2
- package/dist/{chunk-2XUHTPCX.js → chunk-NQOLP5NY.js} +2 -2
- package/dist/{chunk-XGKPMLYD.js → chunk-OKAYIZ45.js} +4 -4
- package/dist/{chunk-ITQK6JTD.js → chunk-QACERXDV.js} +1 -1
- package/dist/{chunk-JUMJ6A3K.js → chunk-R2UVMOIP.js} +1 -1
- package/dist/{chunk-4TXFHYHL.js → chunk-RW4GDPRX.js} +1 -1
- package/dist/{chunk-E4WFKXW4.js → chunk-SHVSB6MD.js} +4 -4
- package/dist/{chunk-3LH2JHUO.js → chunk-SSCPXYN6.js} +3 -3
- package/dist/{chunk-E4ALW4MZ.js → chunk-SXPMPVDJ.js} +8 -8
- package/dist/chunk-U4NXU44C.js +118 -0
- package/dist/{chunk-F2URSFJA.js → chunk-UUUU6SUW.js} +2 -2
- package/dist/chunk-W2ZCHVKP.js +119 -0
- package/dist/{chunk-3A6TTZAA.js → chunk-WSNJNUUA.js} +1 -1
- package/dist/{chunk-P5CWOV3L.js → chunk-WXJ3U2DV.js} +2 -2
- package/dist/{chunk-RCX5B3S3.js → chunk-XC7OT325.js} +1 -1
- package/dist/{chunk-G242LPQE.js → chunk-XVKZ3Q3B.js} +2 -2
- package/dist/{chunk-ZOTVZM6F.js → chunk-YEYNRBMQ.js} +1 -1
- package/dist/{chunk-4JAV3FIH.js → chunk-YTPFSLHU.js} +2 -2
- package/dist/{chunk-V5GOY6TV.js → chunk-YZRL7TXT.js} +1 -1
- package/dist/chunk-ZMDHYGEP.js +57 -0
- package/dist/i18n/src/index.js +2 -2
- package/dist/i18n/src/useLocalizedString.js +2 -2
- package/dist/index.css +3297 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +107 -0
- package/dist/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/InputGroupContext.js +1 -1
- package/dist/inputs/src/PasswordField.css +229 -2405
- package/dist/inputs/src/PasswordField.js +12 -91
- package/dist/inputs/src/PasswordFieldContext.js +1 -1
- package/dist/inputs/src/SearchField.css +235 -2390
- package/dist/inputs/src/SearchField.js +13 -90
- package/dist/inputs/src/SearchFieldContext.js +1 -1
- package/dist/inputs/src/TextField.css +230 -2402
- package/dist/inputs/src/TextField.js +13 -89
- package/dist/inputs/src/TextFieldContext.js +1 -1
- package/dist/inputs/src/index.css +219 -2302
- package/dist/inputs/src/index.js +16 -88
- package/dist/layout/src/Content.js +1 -1
- package/dist/layout/src/ContentContext.js +1 -1
- package/dist/layout/src/Flex.js +1 -1
- package/dist/layout/src/Footer.js +1 -1
- package/dist/layout/src/FooterContext.js +1 -1
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/Inline.js +1 -1
- package/dist/layout/src/Stack.js +1 -1
- package/dist/layout/src/grid-helpers.js +1 -1
- package/dist/overlays/Popover/src/Popover.css +457 -457
- package/dist/overlays/Popover/src/Popover.js +52 -47
- package/dist/overlays/Popover/src/PopoverContext.js +1 -1
- package/dist/overlays/Popover/src/PopoverTrigger.js +1 -1
- package/dist/overlays/Popover/src/index.css +457 -457
- package/dist/overlays/Popover/src/index.js +52 -47
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioContext.js +1 -1
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioFieldContext.js +1 -1
- package/dist/radio/src/RadioGroup.css +66 -66
- package/dist/radio/src/RadioGroup.js +3 -3
- package/dist/radio/src/RadioGroupContext.js +1 -1
- package/dist/radio/src/RadioList.js +1 -1
- package/dist/radio/src/RadioListContext.js +1 -1
- package/dist/radio/src/index.css +66 -66
- package/dist/radio/src/index.js +6 -6
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchContext.js +1 -1
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +3 -3
- package/dist/switch/src/SwitchFieldContext.js +1 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +5 -5
- package/dist/tag/src/Tag.css +457 -457
- package/dist/tag/src/Tag.js +52 -47
- package/dist/tag/src/TagContext.js +1 -1
- package/dist/tag/src/TagGroup.css +28 -28
- package/dist/tag/src/TagGroup.js +4 -4
- package/dist/tag/src/TagGroupContext.js +1 -1
- package/dist/tag/src/TagList.js +1 -1
- package/dist/tag/src/TagListContext.js +1 -1
- package/dist/tag/src/index.css +457 -457
- package/dist/tag/src/index.js +52 -47
- package/dist/typography/Heading/src/Heading.css +9 -3222
- package/dist/typography/Heading/src/Heading.js +2 -100
- package/dist/typography/Heading/src/HeadingContext.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -3222
- package/dist/typography/Heading/src/index.js +2 -100
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/LabelContext.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +2 -2
- package/dist/typography/OverlineText/src/OverlineTextContext.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +2 -2
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +2 -2
- package/dist/typography/Text/src/TextContext.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +2 -2
- package/dist/utils/src/ClearSlots.js +1 -1
- package/dist/utils/src/SlotProvider.js +1 -1
- package/dist/utils/src/assertion.js +1 -1
- package/dist/utils/src/composeClassnameRenderProps.js +1 -1
- package/dist/utils/src/cssModule.js +1 -1
- package/dist/utils/src/index.js +1 -1
- package/dist/utils/src/isTextOnlyChildren.js +1 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/dist/utils/src/useSlot.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BC5A7RHI.js +0 -1260
|
@@ -2,7 +2,7 @@ import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
|
2
2
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
3
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
4
4
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Link.module.css#css-module
|
|
16
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
16
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___A7403", "hop-Link--quiet": "Link-module__hop-Link--quiet___ZckQe", "hop-Link--primary": "Link-module__hop-Link--primary___7RcG1", "hop-Link--secondary": "Link-module__hop-Link--secondary___HiMOh", "hop-Link__icon": "Link-module__hop-Link__icon___D-D9r", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___RDI-L", "hop-Link__text": "Link-module__hop-Link__text___Vnxs6", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___pwaHz", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___74vmY" };
|
|
17
17
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
18
|
var LinkToIconSizeAdapter = {
|
|
19
19
|
inherit: void 0,
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./CheckboxField.module.css#css-module
|
|
14
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
14
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___lRXrF", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___QyS56", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___FDfFW", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___5z4Zy", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___wUKGl" };
|
|
15
15
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
16
16
|
var CheckboxToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -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___7TzJN", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___9DyxE" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
|
+
import { _InputGroup } from './chunk-YZRL7TXT.js';
|
|
3
|
+
import { _ClearButton } from './chunk-HVUX7ZQ3.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
5
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
|
+
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
10
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
11
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
16
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
17
|
+
import { mergeRefs } from '@react-aria/utils';
|
|
18
|
+
import { useControlledState } from '@react-stately/utils';
|
|
19
|
+
import { forwardRef, useState, useCallback } from 'react';
|
|
20
|
+
import { useObjectRef } from 'react-aria';
|
|
21
|
+
import { useContextProps, composeRenderProps, Input, TextField as TextField$1 } from 'react-aria-components';
|
|
22
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
|
+
|
|
24
|
+
// css-module:./TextField.module.css#css-module
|
|
25
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___LZ2cj", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___mVkPz", "hop-TextField__Label": "TextField-module__hop-TextField__Label___0R9nA", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___mOaIR", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___OWSvz", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___-nvCK", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___J31YD" };
|
|
26
|
+
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
27
|
+
function TextField(props, ref) {
|
|
28
|
+
var _a;
|
|
29
|
+
const {
|
|
30
|
+
inputRef: userProvidedInputRef = null,
|
|
31
|
+
...propsWithoutRef
|
|
32
|
+
} = props;
|
|
33
|
+
[props, ref] = useContextProps(propsWithoutRef, ref, TextFieldContext);
|
|
34
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
35
|
+
const [characterCount, setCharacterCount] = useState(() => {
|
|
36
|
+
var _a2, _b, _c, _d;
|
|
37
|
+
return (_d = (_c = (_a2 = props.value) == null ? void 0 : _a2.length) != null ? _c : (_b = props.defaultValue) == null ? void 0 : _b.length) != null ? _d : 0;
|
|
38
|
+
});
|
|
39
|
+
const {
|
|
40
|
+
className,
|
|
41
|
+
style: styleProp,
|
|
42
|
+
size,
|
|
43
|
+
prefix,
|
|
44
|
+
showCharacterCount,
|
|
45
|
+
maxLength,
|
|
46
|
+
placeholder,
|
|
47
|
+
isClearable,
|
|
48
|
+
onChange: onChangeProp,
|
|
49
|
+
children,
|
|
50
|
+
onClear,
|
|
51
|
+
defaultValue,
|
|
52
|
+
value: valueProp,
|
|
53
|
+
isFluid: isFluidProp,
|
|
54
|
+
isDisabled,
|
|
55
|
+
isInvalid,
|
|
56
|
+
...otherProps
|
|
57
|
+
} = ownProps;
|
|
58
|
+
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
59
|
+
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
60
|
+
const classNames = composeClassnameRenderProps(
|
|
61
|
+
className,
|
|
62
|
+
GlobalTextFieldCssSelector,
|
|
63
|
+
cssModule(
|
|
64
|
+
TextField_module_default,
|
|
65
|
+
"hop-TextField",
|
|
66
|
+
isClearable && "clearable",
|
|
67
|
+
isFluid && "fluid"
|
|
68
|
+
),
|
|
69
|
+
stylingProps.className
|
|
70
|
+
);
|
|
71
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
72
|
+
return {
|
|
73
|
+
...stylingProps.style,
|
|
74
|
+
...prev
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
const handleTextChanged = useCallback((value2) => {
|
|
78
|
+
setCharacterCount(value2.length);
|
|
79
|
+
onChangeProp == null ? void 0 : onChangeProp(value2);
|
|
80
|
+
}, [onChangeProp]);
|
|
81
|
+
const [value, onChange] = useControlledState(valueProp, defaultValue || "", handleTextChanged);
|
|
82
|
+
const handleClear = useCallback(() => {
|
|
83
|
+
onChange("");
|
|
84
|
+
onClear == null ? void 0 : onClear();
|
|
85
|
+
}, [onChange, onClear]);
|
|
86
|
+
const showClearButton = isClearable && characterCount !== 0;
|
|
87
|
+
if (showCharacterCount && !maxLength) {
|
|
88
|
+
console.warn("If showCharacterCount is true, maxLength must be set to the maximum number of characters allowed in the TextField.");
|
|
89
|
+
}
|
|
90
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
91
|
+
SlotProvider,
|
|
92
|
+
{
|
|
93
|
+
values: [
|
|
94
|
+
[TextContext, { size, className: TextField_module_default["hop-TextField__prefix"] }],
|
|
95
|
+
[IconContext, { size, className: TextField_module_default["hop-TextField__prefix"] }]
|
|
96
|
+
],
|
|
97
|
+
children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix
|
|
98
|
+
}
|
|
99
|
+
) : null;
|
|
100
|
+
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
101
|
+
_InputGroup,
|
|
102
|
+
{
|
|
103
|
+
isFluid: true,
|
|
104
|
+
size,
|
|
105
|
+
className: TextField_module_default["hop-TextField__InputGroup"],
|
|
106
|
+
isDisabled,
|
|
107
|
+
isInvalid,
|
|
108
|
+
children: [
|
|
109
|
+
prefixMarkup,
|
|
110
|
+
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder }),
|
|
111
|
+
showCharacterCount && maxLength && /* @__PURE__ */ jsx(CharacterCount, { characterLeft: maxLength - characterCount }),
|
|
112
|
+
showClearButton && /* @__PURE__ */ jsx(_ClearButton, { isDisabled, size: "lg", onPress: handleClear })
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
) });
|
|
116
|
+
const childrenMarkup = composeRenderProps(children, (prev) => {
|
|
117
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
118
|
+
/* @__PURE__ */ jsx(
|
|
119
|
+
SlotProvider,
|
|
120
|
+
{
|
|
121
|
+
values: [
|
|
122
|
+
[LabelContext, { className: TextField_module_default["hop-TextField__Label"] }],
|
|
123
|
+
[HelperMessageContext, { className: TextField_module_default["hop-TextField__HelperMessage"] }],
|
|
124
|
+
[ErrorMessageContext, { className: TextField_module_default["hop-TextField__ErrorMessage"] }]
|
|
125
|
+
],
|
|
126
|
+
children: prev
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
inputMarkup
|
|
130
|
+
] });
|
|
131
|
+
});
|
|
132
|
+
return /* @__PURE__ */ jsx(
|
|
133
|
+
TextField$1,
|
|
134
|
+
{
|
|
135
|
+
ref,
|
|
136
|
+
value,
|
|
137
|
+
style,
|
|
138
|
+
className: classNames,
|
|
139
|
+
maxLength,
|
|
140
|
+
onChange,
|
|
141
|
+
isDisabled,
|
|
142
|
+
isInvalid,
|
|
143
|
+
...otherProps,
|
|
144
|
+
children: childrenMarkup
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function CharacterCount({ characterLeft }) {
|
|
149
|
+
const stringFormatter = useLocalizedString();
|
|
150
|
+
const accessibilityString = stringFormatter.format("Input.charactersLeft", { charLeft: characterLeft });
|
|
151
|
+
return /* @__PURE__ */ jsx(_Text, { "aria-label": accessibilityString, color: "neutral-weakest", size: "xs", children: characterLeft });
|
|
152
|
+
}
|
|
153
|
+
var _TextField = forwardRef(TextField);
|
|
154
|
+
_TextField.displayName = "TextField";
|
|
155
|
+
|
|
156
|
+
export { GlobalTextFieldCssSelector, _TextField };
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Label.module.css#css-module
|
|
10
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
10
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___1Q95u", "hop-Label--xs": "Label-module__hop-Label--xs___26au1", "hop-Label--sm": "Label-module__hop-Label--sm___yXnaV", "hop-Label--md": "Label-module__hop-Label--md___KkrL-", "hop-Label--lg": "Label-module__hop-Label--lg___t1zeQ", "hop-Label--xl": "Label-module__hop-Label--xl___FWD2K", "hop-Label--2xl": "Label-module__hop-Label--2xl___nw4yX", "hop-Label--inherit": "Label-module__hop-Label--inherit___1xo-7" };
|
|
11
11
|
var GlobalLabelCssSelector = "hop-Label";
|
|
12
12
|
function Label(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
2
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
|
+
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
4
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./SwitchField.module.css#css-module
|
|
14
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
14
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___cXB1T", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___6MUUx", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___-JFZO", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___GRPT3", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___qRL1p" };
|
|
15
15
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
16
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -2,13 +2,13 @@ import { isFunction } from './chunk-TIPN4VYD.js';
|
|
|
2
2
|
import { useLoadOnScroll } from './chunk-JTNMFPM4.js';
|
|
3
3
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
4
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
6
|
-
import { useLocalizedString } from './chunk-
|
|
7
|
-
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
5
|
+
import { _ListBoxItem } from './chunk-SXPMPVDJ.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
8
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
|
+
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
9
9
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
10
10
|
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
11
|
-
import { _Text } from './chunk-
|
|
11
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
12
12
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
13
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
14
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___QXVwa", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___Bk46B", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___L6k5l", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___n2kTc", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___-2AbX", "hop-ListBox__divider": "ListBox-module__hop-ListBox__divider___nHChF" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -9,7 +9,7 @@ import { useContextProps, Text as Text$1 } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Text.module.css#css-module
|
|
12
|
-
var Text_module_default = { "hop-Text": "Text-module__hop-
|
|
12
|
+
var Text_module_default = { "hop-Text": "Text-module__hop-Text___QAKDh", "hop-Text--xs": "Text-module__hop-Text--xs___q7OkS", "hop-Text--sm": "Text-module__hop-Text--sm___5RyDW", "hop-Text--md": "Text-module__hop-Text--md___qmqwg", "hop-Text--lg": "Text-module__hop-Text--lg___BZX0m", "hop-Text--xl": "Text-module__hop-Text--xl___3Zi7y", "hop-Text--2xl": "Text-module__hop-Text--2xl___RbrDM", "hop-Text--inherit": "Text-module__hop-Text--inherit___G5g04" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___ENkOl", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___NnNns" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ButtonGroup.module.css#css-module
|
|
13
|
-
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-
|
|
13
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___Puvx-", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___69pSm", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___pbI9w", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___kjLfN", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___-WZys", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___NaHco", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___XuRNe", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___lKp5V" };
|
|
14
14
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
15
|
function ButtonGroup(props, ref) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
3
|
-
import { useLocalizedString } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-4TJUYXYN.js';
|
|
3
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import { useContextProps } from 'react-aria-components';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
1
2
|
import { TagListContext } from './chunk-XLKYXKWE.js';
|
|
2
3
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
3
|
-
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
6
5
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
6
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
9
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -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___56WQ3", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___f0j9J", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___aSjzB", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___PLqFO", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___DQNXE" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -7,10 +7,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
9
|
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
10
|
var __copyProps = (to, from, except, desc) => {
|
|
15
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -19,7 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
15
|
}
|
|
20
16
|
return to;
|
|
21
17
|
};
|
|
22
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
18
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
19
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
20
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -29,4 +24,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
24
|
mod
|
|
30
25
|
));
|
|
31
26
|
|
|
32
|
-
export { __commonJS,
|
|
27
|
+
export { __commonJS, __toESM };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-QACERXDV.js';
|
|
3
3
|
import { DeletedUserRichIcon } from '@hopper-ui/icons';
|
|
4
4
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-EBXHYPDU.js';
|
|
2
2
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
3
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -9,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Badge.module.css#css-module
|
|
12
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
12
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___gejg5", "hop-Badge--primary": "Badge-module__hop-Badge--primary___-DIFS", "hop-Badge--secondary": "Badge-module__hop-Badge--secondary___aTpzY" };
|
|
13
13
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
14
14
|
function Badge(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -2,7 +2,7 @@ import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
|
2
2
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
3
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
4
4
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
7
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Radio.module.css#css-module
|
|
17
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
17
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___tvFFT", "hop-Radio--focused": "Radio-module__hop-Radio--focused___qmLB6", "hop-Radio--hovered": "Radio-module__hop-Radio--hovered___vZ50W", "hop-Radio--pressed": "Radio-module__hop-Radio--pressed___wBVf6", "hop-Radio--sm": "Radio-module__hop-Radio--sm___5kxPW", "hop-Radio--md": "Radio-module__hop-Radio--md___4M0c-", "hop-Radio__icon": "Radio-module__hop-Radio__icon___Fgjja", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___bQRXR", "hop-Radio__box": "Radio-module__hop-Radio__box___FserC", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___k73mE", "hop-Radio__text": "Radio-module__hop-Radio__text___qi3fJ" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
2
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
-
import { _Spinner } from './chunk-
|
|
4
|
-
import { useLocalizedString } from './chunk-
|
|
3
|
+
import { _Spinner } from './chunk-XVKZ3Q3B.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
7
7
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
8
8
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
9
|
-
import { _Text } from './chunk-
|
|
9
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
10
10
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps,
|
|
|
19
19
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Button.module.css#css-module
|
|
22
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
22
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___UAzFm", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___05dkO", "hop-Button--fluid": "Button-module__hop-Button--fluid___YVpDX", "hop-Button--sm": "Button-module__hop-Button--sm___gvwId", "hop-Button--primary": "Button-module__hop-Button--primary___A28Rq", "hop-Button--md": "Button-module__hop-Button--md___M3MyD", "hop-Button--secondary": "Button-module__hop-Button--secondary___u0ZGt", "hop-Button--upsell": "Button-module__hop-Button--upsell___arFHv", "hop-Button--danger": "Button-module__hop-Button--danger___lL8-r", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___X4kNh", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___aN7yP", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___vBKjd", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___kL-1-", "hop-Button__icon": "Button-module__hop-Button__icon___iMiLP", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___zInte", "hop-Button__text": "Button-module__hop-Button__text___OyaRf", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___noDbN", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___mFNXl" };
|
|
23
23
|
var GlobalButtonCssSelector = "hop-Button";
|
|
24
24
|
var additionalButtonHTMLAttributes = /* @__PURE__ */ new Set(["form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "name", "value"]);
|
|
25
25
|
function useSimulatedRACButton(props, ref) {
|
|
@@ -9,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
12
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
12
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___r1-2L", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___exS4L", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___tjY3E", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___7bEZJ", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___IXng-", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___8tAP7", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___2PYru", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___aE4RN" };
|
|
13
13
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
14
|
var AvatarToIconSizeAdapter = {
|
|
15
15
|
xs: "md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-QACERXDV.js';
|
|
3
3
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
4
4
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -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___j-yVV", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___-EhAf", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___vJ3Zw", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___0NFkM", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___Q1wFA", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___EOBf9" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useImageFallback } from './chunk-NS3XVOQ7.js';
|
|
2
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
2
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
3
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-QACERXDV.js';
|
|
4
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
|
-
import { useImageFallback } from './chunk-NS3XVOQ7.js';
|
|
6
6
|
import { BrokenImageRichIcon } from '@hopper-ui/icons';
|
|
7
7
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
8
8
|
import { filterDOMProps } from '@react-aria/utils';
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Avatar.module.css#css-module
|
|
15
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
15
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___xgLGn", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___71MWt", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___-VT24", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___DhOit", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___LhUBE", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___nRU6l", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___EvIhQ", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___tJoic", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___J6Alx", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___PFZAI", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___eUcwp", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___ICYLl", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___R0WGe", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___iAAz0", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___p03Dg", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___DkcTO", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___EMxQb" };
|
|
16
16
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
17
17
|
var AvatarToTextSizeAdapter = {
|
|
18
18
|
xs: "xs",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
1
2
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
3
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
3
|
-
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
4
4
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
11
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 }
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./CheckboxGroup.module.css#css-module
|
|
17
|
-
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-
|
|
17
|
+
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___IJEPv", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___xnlV3", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___kPe9U", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___AGdL-", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___GHPL-", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___n1ORj", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___3H5YY", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___OgYjL", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___dbWhu" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _RadioGroup } from './chunk-
|
|
1
|
+
import { _RadioGroup } from './chunk-3WUDQLLR.js';
|
|
2
2
|
import { _RadioList } from './chunk-NKHMUPAP.js';
|
|
3
|
-
import { _Radio } from './chunk-
|
|
4
|
-
import { _Checkbox } from './chunk-
|
|
5
|
-
import { useLocalizedString } from './chunk-
|
|
6
|
-
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
7
|
-
import { _ListBoxItemSkeleton } from './chunk-4TXFHYHL.js';
|
|
3
|
+
import { _Radio } from './chunk-NQOLP5NY.js';
|
|
4
|
+
import { _Checkbox } from './chunk-2NJ3RDMJ.js';
|
|
5
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
8
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
|
+
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
8
|
+
import { _ListBoxItemSkeleton } from './chunk-RW4GDPRX.js';
|
|
9
9
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
10
10
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
11
11
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
12
|
-
import { _Text } from './chunk-
|
|
12
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
13
13
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
14
14
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
15
15
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -20,7 +20,7 @@ import { useContextProps, composeRenderProps, ListBoxItem as ListBoxItem$1, List
|
|
|
20
20
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
21
21
|
|
|
22
22
|
// css-module:./ListBoxItem.module.css#css-module
|
|
23
|
-
var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-
|
|
23
|
+
var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-ListBoxItem___yV2lV", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___zojZL", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___pgMdo", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___scZYZ", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___RGvvE", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___wPFzb", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___ojOFi", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___wOYyA", "hop-ListBoxItem__radio-group": "ListBoxItem-module__hop-ListBoxItem__radio-group___neL2N", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___K1mdm", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___u30th", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___XfSik", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___NYKSZ", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___csfbD", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___nhfer", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___P9SLM", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___f9Zb9" };
|
|
24
24
|
var GlobalListBoxItemCssSelector = "hop-ListBoxItem";
|
|
25
25
|
var ListBoxItemToIconSizeAdapter = {
|
|
26
26
|
xs: "sm",
|