@hopper-ui/components 1.3.25 → 1.3.27
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 +14 -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 +4 -4
- 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 +6 -6
- package/dist/Badge/src/Badge.css +42 -42
- package/dist/Badge/src/Badge.js +3 -3
- 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 +4 -4
- package/dist/ComboBox/src/ComboBox.css +1001 -1001
- package/dist/ComboBox/src/ComboBox.d.ts +56 -8
- package/dist/ComboBox/src/ComboBox.js +105 -7
- package/dist/ComboBox/src/ComboBoxContext.d.ts +9 -1
- package/dist/ComboBox/src/index.css +1001 -1001
- package/dist/ComboBox/src/index.d.ts +5 -8
- package/dist/ComboBox/src/index.js +79 -83
- 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 +768 -768
- package/dist/Form/src/Form.js +79 -83
- package/dist/Form/src/index.css +768 -768
- package/dist/Form/src/index.js +79 -83
- 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 +8 -8
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +8 -8
- package/dist/ListBox/src/ListBox.css +274 -274
- package/dist/ListBox/src/ListBox.d.ts +1 -1
- package/dist/ListBox/src/ListBox.js +15 -15
- package/dist/ListBox/src/ListBoxItem.css +262 -262
- package/dist/ListBox/src/ListBoxItem.js +11 -11
- 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.js +15 -15
- package/dist/Select/src/Select.css +3726 -627
- package/dist/Select/src/Select.d.ts +55 -7
- package/dist/Select/src/Select.js +103 -8
- package/dist/Select/src/SelectContext.d.ts +8 -0
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +1256 -1256
- package/dist/Select/src/index.d.ts +3 -6
- package/dist/Select/src/index.js +79 -83
- 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 +93 -93
- package/dist/buttons/src/Button.js +9 -9
- package/dist/buttons/src/ButtonGroup.css +38 -38
- package/dist/buttons/src/ButtonGroup.js +2 -2
- 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/LinkButton.css +102 -102
- package/dist/buttons/src/LinkButton.js +7 -7
- package/dist/buttons/src/index.css +249 -249
- package/dist/buttons/src/index.js +16 -16
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +7 -7
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.js +2 -2
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.js +6 -6
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +7 -7
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +13 -13
- package/dist/{chunk-G5AT4DUS.js → chunk-262RJIGA.js} +2 -2
- package/dist/{chunk-3JTKO6GT.js → chunk-26JRG5P2.js} +2 -2
- package/dist/{chunk-53JGRJCV.js → chunk-3A5Q37MM.js} +1 -1
- package/dist/{chunk-BTHGQBNC.js → chunk-3DSI4A25.js} +4 -4
- package/dist/{chunk-IH3RR5MG.js → chunk-3FABBS5K.js} +5 -5
- package/dist/{chunk-2ETSJJL5.js → chunk-4ESIATYX.js} +26 -12
- package/dist/{chunk-NGK3TCDT.js → chunk-4LY3QUF7.js} +3 -3
- package/dist/{chunk-62HFZTN3.js → chunk-4R4VJYXW.js} +1 -1
- package/dist/{chunk-PAYW2NOQ.js → chunk-5ZDKZVQM.js} +4 -4
- package/dist/{chunk-5HPWSPMG.js → chunk-72NKF2AB.js} +1 -1
- package/dist/{chunk-L37Y7HGN.js → chunk-7366VQMH.js} +2 -2
- package/dist/{chunk-2KG3OHKZ.js → chunk-7NSEHOZW.js} +2 -2
- package/dist/{chunk-FR7CLIF6.js → chunk-7OSLSIHA.js} +1 -1
- package/dist/{chunk-CCZOA5KO.js → chunk-7QNILDAK.js} +1 -1
- package/dist/{chunk-L7RJGOCA.js → chunk-AAJGLUXC.js} +2 -2
- package/dist/{chunk-NSMUWG64.js → chunk-AOUWGLHZ.js} +1 -1
- package/dist/chunk-BMOOWAAW.js +12 -0
- package/dist/{chunk-MMOO3PA2.js → chunk-CEFWC6OK.js} +2 -2
- package/dist/{chunk-P5EJKG65.js → chunk-CSLPKYB6.js} +1 -1
- package/dist/{chunk-WYWHOSC6.js → chunk-D4N5ORWO.js} +4 -4
- package/dist/{chunk-VG4DSVZN.js → chunk-DLYK2J7R.js} +4 -4
- package/dist/{chunk-WABC2ZXX.js → chunk-EDAWPFOP.js} +2 -2
- package/dist/{chunk-XSKVQY7T.js → chunk-FHKWROAK.js} +370 -93
- package/dist/{chunk-LVMXSXUU.js → chunk-FYCSOMNM.js} +7 -7
- package/dist/{chunk-4TP6C4G2.js → chunk-IF6FFKJB.js} +6 -6
- package/dist/{chunk-WQT2547E.js → chunk-JGCL3ROE.js} +1 -1
- package/dist/{chunk-N3ZSOPEG.js → chunk-JUEWDQTT.js} +6 -6
- package/dist/{chunk-QIFW365G.js → chunk-L346WC7U.js} +3 -3
- package/dist/{chunk-HL6KUV6M.js → chunk-L4ONWVF5.js} +3 -3
- package/dist/{chunk-QCEUL6I6.js → chunk-LU2S4CPY.js} +2 -2
- package/dist/{chunk-SLF2NM3M.js → chunk-PTH2WMQB.js} +3 -3
- package/dist/{chunk-7F5TKAIG.js → chunk-PUUCFEQG.js} +3 -3
- package/dist/{chunk-M6YJFDSQ.js → chunk-QQ4G5H73.js} +3 -3
- package/dist/{chunk-KJIGRQNG.js → chunk-R4H626CF.js} +19 -27
- package/dist/{chunk-X7WNB6WS.js → chunk-R4PZKRHK.js} +1 -1
- package/dist/{chunk-YSI55QTD.js → chunk-RMCIJTZ3.js} +5 -5
- package/dist/{chunk-KAYNG6FW.js → chunk-RQKPEW74.js} +1 -1
- package/dist/{chunk-VNW2HMOF.js → chunk-S7MY54LO.js} +1 -1
- package/dist/{chunk-A2EH4QHT.js → chunk-SI6ESKQ7.js} +2 -2
- package/dist/{chunk-P6DGNPLB.js → chunk-SUPINNZT.js} +1 -1
- package/dist/{chunk-PM3R4HC6.js → chunk-U3TSBX2D.js} +3 -3
- package/dist/{chunk-TLQ7IGJK.js → chunk-V6PEW5FQ.js} +3 -3
- package/dist/{chunk-CB2SODXY.js → chunk-VQCVSSSJ.js} +2 -2
- package/dist/{chunk-AAMEZDS5.js → chunk-WH2HH7QB.js} +1 -1
- package/dist/{chunk-AGPDWIJB.js → chunk-XULV7YVB.js} +1 -1
- package/dist/{chunk-6FGO2GDP.js → chunk-YNSPLMBA.js} +6 -6
- package/dist/index.css +768 -768
- package/dist/index.d.ts +4 -8
- package/dist/index.js +79 -83
- package/dist/inputs/src/InputGroup.css +264 -264
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +286 -286
- package/dist/inputs/src/NumberField.js +7 -7
- package/dist/inputs/src/PasswordField.css +274 -274
- package/dist/inputs/src/PasswordField.js +8 -8
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.js +5 -5
- package/dist/inputs/src/SearchField.css +280 -280
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/TextArea.css +281 -281
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +278 -278
- package/dist/inputs/src/TextField.d.ts +2 -11
- package/dist/inputs/src/TextField.js +13 -11
- package/dist/inputs/src/index.css +324 -324
- package/dist/inputs/src/index.js +20 -18
- package/dist/overlays/Popover/src/Popover.css +768 -768
- package/dist/overlays/Popover/src/Popover.js +79 -83
- package/dist/overlays/Popover/src/index.css +768 -768
- package/dist/overlays/Popover/src/index.js +79 -83
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.js +7 -7
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +7 -7
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +98 -98
- package/dist/radio/src/RadioGroup.js +5 -5
- package/dist/radio/src/index.css +98 -98
- package/dist/radio/src/index.js +12 -12
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +7 -7
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +9 -9
- package/dist/tag/src/Tag.css +390 -390
- package/dist/tag/src/Tag.js +11 -11
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.js +2 -2
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +400 -400
- package/dist/tag/src/index.js +13 -13
- 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.d.ts +2 -6
- package/dist/utils/src/EnsureTextWrapper.js +5 -5
- package/dist/utils/src/index.css +27 -27
- package/dist/utils/src/index.d.ts +2 -2
- package/dist/utils/src/index.js +6 -6
- package/dist/utils/src/types.d.ts +5 -3
- package/package.json +1 -1
- package/dist/ComboBox/src/ComboBoxOptions.css +0 -5453
- package/dist/ComboBox/src/ComboBoxOptions.d.ts +0 -51
- package/dist/ComboBox/src/ComboBoxOptions.js +0 -125
- package/dist/ComboBox/src/ComboBoxOptionsContext.d.ts +0 -21
- package/dist/ComboBox/src/ComboBoxOptionsContext.js +0 -2
- package/dist/Select/src/SelectOptions.css +0 -5453
- package/dist/Select/src/SelectOptions.d.ts +0 -50
- package/dist/Select/src/SelectOptions.js +0 -125
- package/dist/Select/src/SelectOptionsContext.d.ts +0 -21
- package/dist/Select/src/SelectOptionsContext.js +0 -2
- package/dist/chunk-CQFXGAJK.js +0 -7
- package/dist/chunk-QH5LWKA7.js +0 -9
- package/dist/chunk-RFDRCPQ7.js +0 -149
- package/dist/chunk-XGOJ7VOE.js +0 -7
- package/dist/chunk-XVOHLDT7.js +0 -210
|
@@ -1,129 +1,301 @@
|
|
|
1
|
+
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
1
2
|
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
2
3
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
4
|
+
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
3
5
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
4
6
|
import { _Footer } from './chunk-GTM56LGX.js';
|
|
5
7
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
6
|
-
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
7
|
-
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
8
|
-
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
9
8
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
10
9
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
11
|
-
import {
|
|
10
|
+
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
11
|
+
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
12
12
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
13
|
-
import {
|
|
13
|
+
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
14
14
|
import { LinkButtonContext } from './chunk-3UQFC2NQ.js';
|
|
15
15
|
import { ButtonContext as ButtonContext$1 } from './chunk-WMTWFKKP.js';
|
|
16
|
+
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
16
17
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
17
|
-
import {
|
|
18
|
-
import { _ListBox } from './chunk-
|
|
18
|
+
import { _SelectValue } from './chunk-EDAWPFOP.js';
|
|
19
|
+
import { _ListBox } from './chunk-YNSPLMBA.js';
|
|
19
20
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
20
|
-
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
21
|
-
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
22
|
-
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
23
|
-
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
24
|
-
import { ComboBoxOptionsContext } from './chunk-XGOJ7VOE.js';
|
|
25
|
-
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
26
|
-
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
27
21
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
28
|
-
import {
|
|
22
|
+
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
23
|
+
import { ensureTextWrapper } from './chunk-BMOOWAAW.js';
|
|
29
24
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
25
|
+
import { _Label } from './chunk-WH2HH7QB.js';
|
|
30
26
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
27
|
+
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
28
|
+
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
29
|
+
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
30
|
+
import { _HelperMessage } from './chunk-7366VQMH.js';
|
|
31
|
+
import { _ErrorMessage } from './chunk-4ESIATYX.js';
|
|
31
32
|
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
33
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
34
|
+
import { TextContext as TextContext$1 } from './chunk-X6SER3TZ.js';
|
|
35
|
+
import { ClearProviders, ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
34
36
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
35
37
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
36
38
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
39
|
+
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
37
40
|
import { useStyledSystem, useResponsiveValue, useColorSchemeContext } from '@hopper-ui/styled-system';
|
|
38
41
|
export * from '@hopper-ui/styled-system';
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { useContextProps, useSlottedContext, composeRenderProps, TextContext as
|
|
42
|
+
import { useObjectRef, mergeRefs, useResizeObserver } from '@react-aria/utils';
|
|
43
|
+
import { forwardRef, useRef, useState, useCallback, useReducer, useEffect } from 'react';
|
|
44
|
+
import { useContextProps, useSlottedContext, InputContext, composeRenderProps, TextContext, ButtonContext, ComboBox as ComboBox$1, Group, Input, Button, Form as Form$1, Select as Select$1, Popover as Popover$1, Dialog } from 'react-aria-components';
|
|
42
45
|
export { Collection } from 'react-aria-components';
|
|
43
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
46
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
44
47
|
import clsx2 from 'clsx';
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
// css-module:./ComboBox.module.css#css-module
|
|
50
|
+
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___OaKqP", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___ajjpt", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___BOogz", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___Z4Nv6", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___TR6sU", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___deR4I", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___4MzWJ", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___QeIin", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___o9aUo", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___2mr8R", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___mRM9k", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___KRTMT" };
|
|
51
|
+
var GlobalComboBoxCssSelector = "hop-ComboBox";
|
|
52
|
+
function ComboBox(props, ref) {
|
|
53
|
+
var _a, _b, _c, _d, _e;
|
|
54
|
+
const {
|
|
55
|
+
inputRef: userProvidedInputRef = null,
|
|
56
|
+
...propsWithoutRef
|
|
57
|
+
} = props;
|
|
58
|
+
[props, ref] = useContextProps(propsWithoutRef, ref, ComboBoxContext);
|
|
49
59
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
50
60
|
const {
|
|
61
|
+
align: alignProp,
|
|
51
62
|
className,
|
|
52
63
|
children,
|
|
64
|
+
description,
|
|
65
|
+
direction: directionProp,
|
|
66
|
+
errorMessage,
|
|
53
67
|
footer,
|
|
54
68
|
isAutoMenuWidth,
|
|
69
|
+
isFluid: isFluidProp,
|
|
70
|
+
isInvalid,
|
|
71
|
+
isLoading,
|
|
72
|
+
isRequired,
|
|
73
|
+
items,
|
|
74
|
+
label,
|
|
55
75
|
listBoxProps,
|
|
56
|
-
|
|
57
|
-
|
|
76
|
+
menuTrigger = "focus",
|
|
77
|
+
necessityIndicator,
|
|
78
|
+
onLoadMore,
|
|
79
|
+
popoverProps,
|
|
80
|
+
placeholder,
|
|
81
|
+
prefix,
|
|
82
|
+
selectionIndicator,
|
|
83
|
+
shouldFlip,
|
|
84
|
+
size: sizeProp,
|
|
58
85
|
style: styleProp,
|
|
59
|
-
|
|
86
|
+
triggerProps,
|
|
60
87
|
...otherProps
|
|
61
88
|
} = ownProps;
|
|
62
|
-
const
|
|
63
|
-
const
|
|
89
|
+
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, (_a = props.inputRef) != null ? _a : null));
|
|
90
|
+
const inputContext = useSlottedContext(InputContext);
|
|
91
|
+
const mergedInputRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext.ref) : inputRef;
|
|
92
|
+
const triggerRef = useRef(null);
|
|
93
|
+
const buttonRef = useRef(null);
|
|
94
|
+
const [triggerWidth, setTriggerWidth] = useState(null);
|
|
95
|
+
const onResize = useCallback(() => {
|
|
96
|
+
if (triggerRef.current) {
|
|
97
|
+
setTriggerWidth(triggerRef.current.offsetWidth + "px");
|
|
98
|
+
}
|
|
99
|
+
}, [triggerRef]);
|
|
100
|
+
useResizeObserver({
|
|
101
|
+
ref: triggerRef,
|
|
102
|
+
onResize
|
|
103
|
+
});
|
|
104
|
+
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
105
|
+
const {
|
|
106
|
+
className: triggerClassName,
|
|
107
|
+
style: triggerStyleProp,
|
|
108
|
+
...otherTriggerProps
|
|
109
|
+
} = triggerOwnProps;
|
|
110
|
+
const {
|
|
111
|
+
style: popoverStyleProp
|
|
112
|
+
} = popoverProps != null ? popoverProps : {};
|
|
113
|
+
const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "sm";
|
|
114
|
+
const isFluid = (_c = useResponsiveValue(isFluidProp)) != null ? _c : false;
|
|
115
|
+
const align = (_d = useResponsiveValue(alignProp)) != null ? _d : "start";
|
|
116
|
+
const direction = (_e = useResponsiveValue(directionProp)) != null ? _e : "bottom";
|
|
64
117
|
const classNames = composeClassnameRenderProps(
|
|
65
118
|
className,
|
|
66
|
-
|
|
119
|
+
GlobalComboBoxCssSelector,
|
|
120
|
+
cssModule(
|
|
121
|
+
ComboBox_module_default,
|
|
122
|
+
"hop-ComboBox",
|
|
123
|
+
isFluid && "fluid",
|
|
124
|
+
size
|
|
125
|
+
),
|
|
67
126
|
stylingProps.className
|
|
68
127
|
);
|
|
128
|
+
const triggerClassNames = composeClassnameRenderProps(
|
|
129
|
+
triggerClassName,
|
|
130
|
+
cssModule(
|
|
131
|
+
ComboBox_module_default,
|
|
132
|
+
"hop-ComboBox__trigger",
|
|
133
|
+
size
|
|
134
|
+
),
|
|
135
|
+
triggerStylingProps.className
|
|
136
|
+
);
|
|
137
|
+
const buttonClassNames = composeClassnameRenderProps(
|
|
138
|
+
cssModule(
|
|
139
|
+
ComboBox_module_default,
|
|
140
|
+
"hop-ComboBox__button"
|
|
141
|
+
)
|
|
142
|
+
);
|
|
143
|
+
const inputClassNames = composeClassnameRenderProps(
|
|
144
|
+
inputContext == null ? void 0 : inputContext.className,
|
|
145
|
+
ComboBox_module_default["hop-ComboBox__input"]
|
|
146
|
+
);
|
|
69
147
|
const style = composeRenderProps(styleProp, (prev) => {
|
|
70
148
|
return {
|
|
71
149
|
...stylingProps.style,
|
|
72
150
|
...prev
|
|
73
151
|
};
|
|
74
152
|
});
|
|
153
|
+
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
154
|
+
return {
|
|
155
|
+
...triggerStylingProps.style,
|
|
156
|
+
...prev
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
const popoverStyle = composeRenderProps(popoverStyleProp, (prev) => {
|
|
160
|
+
return {
|
|
161
|
+
...prev,
|
|
162
|
+
"--custom-trigger-width": triggerWidth
|
|
163
|
+
};
|
|
164
|
+
});
|
|
75
165
|
const footerMarkup = footer ? /* @__PURE__ */ jsx(
|
|
76
166
|
ClearProviders,
|
|
77
167
|
{
|
|
78
168
|
values: [
|
|
79
|
-
TextContext$1,
|
|
80
169
|
TextContext,
|
|
170
|
+
TextContext$1,
|
|
81
171
|
ButtonContext
|
|
82
172
|
],
|
|
83
173
|
children: /* @__PURE__ */ jsx(
|
|
84
174
|
SlotProvider,
|
|
85
175
|
{
|
|
86
176
|
values: [
|
|
87
|
-
[TextContext, {
|
|
177
|
+
[TextContext$1, {
|
|
178
|
+
size
|
|
179
|
+
}]
|
|
88
180
|
],
|
|
89
|
-
children: /* @__PURE__ */ jsx(_Footer, {
|
|
181
|
+
children: /* @__PURE__ */ jsx(_Footer, { children: ensureTextWrapper(footer) })
|
|
90
182
|
}
|
|
91
183
|
)
|
|
92
184
|
}
|
|
93
185
|
) : null;
|
|
94
|
-
|
|
95
|
-
|
|
186
|
+
const handleMouseDown = useCallback((e) => {
|
|
187
|
+
if (inputRef.current && e.target !== inputRef.current && buttonRef.current && e.target !== buttonRef.current) {
|
|
188
|
+
inputRef.current.focus();
|
|
189
|
+
e.preventDefault();
|
|
190
|
+
}
|
|
191
|
+
}, [inputRef]);
|
|
192
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
193
|
+
SlotProvider,
|
|
194
|
+
{
|
|
195
|
+
values: [
|
|
196
|
+
[TextContext$1, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }],
|
|
197
|
+
[IconContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }]
|
|
198
|
+
],
|
|
199
|
+
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: ensureTextWrapper(prefix) })
|
|
200
|
+
}
|
|
201
|
+
) : null;
|
|
202
|
+
return /* @__PURE__ */ jsx(
|
|
203
|
+
ComboBox$1,
|
|
96
204
|
{
|
|
97
|
-
...otherProps,
|
|
98
205
|
ref,
|
|
99
206
|
className: classNames,
|
|
100
|
-
isAutoWidth: isAutoMenuWidth,
|
|
101
|
-
isNonDialog: true,
|
|
102
|
-
placement,
|
|
103
207
|
style,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
208
|
+
isInvalid,
|
|
209
|
+
isRequired,
|
|
210
|
+
items,
|
|
211
|
+
menuTrigger,
|
|
212
|
+
...otherProps,
|
|
213
|
+
children: (comboBoxRenderProps) => {
|
|
214
|
+
const { isOpen } = comboBoxRenderProps;
|
|
215
|
+
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
216
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
217
|
+
label && /* @__PURE__ */ jsx(
|
|
218
|
+
_Label,
|
|
219
|
+
{
|
|
220
|
+
className: ComboBox_module_default["hop-ComboBox__label"],
|
|
221
|
+
isRequired,
|
|
222
|
+
necessityIndicator,
|
|
223
|
+
children: label
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
/* @__PURE__ */ jsxs(
|
|
227
|
+
_Popover,
|
|
228
|
+
{
|
|
229
|
+
isAutoWidth: isAutoMenuWidth,
|
|
230
|
+
isNonDialog: true,
|
|
231
|
+
placement: `${direction} ${align}`,
|
|
232
|
+
shouldFlip,
|
|
233
|
+
style: popoverStyle,
|
|
234
|
+
triggerRef,
|
|
235
|
+
...popoverProps,
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ jsx(
|
|
238
|
+
SlotProvider,
|
|
239
|
+
{
|
|
240
|
+
values: [
|
|
241
|
+
[BadgeContext, {
|
|
242
|
+
variant: "secondary"
|
|
243
|
+
}]
|
|
244
|
+
],
|
|
245
|
+
children: /* @__PURE__ */ jsx(
|
|
246
|
+
_ListBox,
|
|
247
|
+
{
|
|
248
|
+
size,
|
|
249
|
+
isInvalid,
|
|
250
|
+
items,
|
|
251
|
+
isLoading,
|
|
252
|
+
onLoadMore,
|
|
253
|
+
selectionIndicator,
|
|
254
|
+
...listBoxProps,
|
|
255
|
+
children
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
footerMarkup
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ jsxs(
|
|
265
|
+
Group,
|
|
266
|
+
{
|
|
267
|
+
ref: triggerRef,
|
|
268
|
+
className: triggerClassNames,
|
|
269
|
+
style: triggerStyle,
|
|
270
|
+
onMouseDown: handleMouseDown,
|
|
271
|
+
"data-selected": isOpen || void 0,
|
|
272
|
+
...otherTriggerProps,
|
|
273
|
+
children: [
|
|
274
|
+
prefixMarkup,
|
|
275
|
+
/* @__PURE__ */ jsx(
|
|
276
|
+
Input,
|
|
277
|
+
{
|
|
278
|
+
ref: mergedInputRefs,
|
|
279
|
+
className: inputClassNames,
|
|
280
|
+
placeholder
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
/* @__PURE__ */ jsx(Button, { className: buttonClassNames, ref: buttonRef, children: /* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: ComboBox_module_default["hop-ComboBox__button-icon"] }) })
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
),
|
|
287
|
+
description && /* @__PURE__ */ jsx(_HelperMessage, { className: ComboBox_module_default["hop-ComboBox__helper-message"], children: description }),
|
|
288
|
+
/* @__PURE__ */ jsx(_ErrorMessage, { className: ComboBox_module_default["hop-ComboBox__error-message"], children: errorMessage })
|
|
289
|
+
] });
|
|
290
|
+
}
|
|
119
291
|
}
|
|
120
292
|
);
|
|
121
293
|
}
|
|
122
|
-
var
|
|
123
|
-
|
|
294
|
+
var _ComboBox = forwardRef(ComboBox);
|
|
295
|
+
_ComboBox.displayName = "ComboBox";
|
|
124
296
|
|
|
125
297
|
// css-module:./Form.module.css#css-module
|
|
126
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
298
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___KwOEC" };
|
|
127
299
|
var GlobalFormCssSelector = "hop-Form";
|
|
128
300
|
function Form(props, ref) {
|
|
129
301
|
var _a;
|
|
@@ -249,84 +421,189 @@ function Form(props, ref) {
|
|
|
249
421
|
}
|
|
250
422
|
var _Form = forwardRef(Form);
|
|
251
423
|
_Form.displayName = "Form";
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
424
|
+
|
|
425
|
+
// css-module:./Select.module.css#css-module
|
|
426
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___l3w-F", "hop-Select--fluid": "Select-module__hop-Select--fluid___ZlaHW", "hop-Select__label": "Select-module__hop-Select__label___tgzIH", "hop-Select__button": "Select-module__hop-Select__button___KJCTE", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___jxgZm", "hop-Select__button--md": "Select-module__hop-Select__button--md___tY-17", "hop-Select__prefix": "Select-module__hop-Select__prefix___oJXW1", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___E0cDg", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___-P0Y4", "hop-Select__error-message": "Select-module__hop-Select__error-message___V7ujB" };
|
|
427
|
+
var GlobalSelectCssSelector = "hop-Select";
|
|
428
|
+
function Select(props, ref) {
|
|
429
|
+
var _a, _b, _c, _d;
|
|
430
|
+
[props, ref] = useContextProps(props, ref, SelectContext);
|
|
255
431
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
256
432
|
const {
|
|
433
|
+
align: alignProp,
|
|
257
434
|
className,
|
|
258
435
|
children,
|
|
436
|
+
description,
|
|
437
|
+
direction: directionProp,
|
|
438
|
+
errorMessage,
|
|
259
439
|
footer,
|
|
260
|
-
footerProps,
|
|
261
440
|
isAutoMenuWidth,
|
|
441
|
+
isFluid: isFluidProp,
|
|
442
|
+
isInvalid,
|
|
443
|
+
isLoading,
|
|
444
|
+
isRequired,
|
|
445
|
+
items,
|
|
446
|
+
label,
|
|
262
447
|
listBoxProps,
|
|
263
|
-
|
|
264
|
-
|
|
448
|
+
necessityIndicator,
|
|
449
|
+
onLoadMore,
|
|
450
|
+
popoverProps,
|
|
451
|
+
prefix,
|
|
452
|
+
renderValue,
|
|
453
|
+
selectionIndicator,
|
|
454
|
+
shouldFlip,
|
|
455
|
+
size: sizeProp,
|
|
265
456
|
style: styleProp,
|
|
457
|
+
triggerProps,
|
|
266
458
|
...otherProps
|
|
267
459
|
} = ownProps;
|
|
268
|
-
const
|
|
269
|
-
const
|
|
460
|
+
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
461
|
+
const {
|
|
462
|
+
className: triggerClassName,
|
|
463
|
+
style: triggerStyleProp,
|
|
464
|
+
...otherTriggerProps
|
|
465
|
+
} = triggerOwnProps;
|
|
466
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
|
|
467
|
+
const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
|
|
468
|
+
const align = (_c = useResponsiveValue(alignProp)) != null ? _c : "start";
|
|
469
|
+
const direction = (_d = useResponsiveValue(directionProp)) != null ? _d : "bottom";
|
|
270
470
|
const classNames = composeClassnameRenderProps(
|
|
271
471
|
className,
|
|
272
|
-
|
|
472
|
+
GlobalSelectCssSelector,
|
|
473
|
+
cssModule(
|
|
474
|
+
Select_module_default,
|
|
475
|
+
"hop-Select",
|
|
476
|
+
isFluid && "fluid",
|
|
477
|
+
size
|
|
478
|
+
),
|
|
273
479
|
stylingProps.className
|
|
274
480
|
);
|
|
481
|
+
const buttonClassNames = composeClassnameRenderProps(
|
|
482
|
+
triggerClassName,
|
|
483
|
+
cssModule(
|
|
484
|
+
Select_module_default,
|
|
485
|
+
"hop-Select__button",
|
|
486
|
+
size
|
|
487
|
+
),
|
|
488
|
+
triggerStylingProps.className
|
|
489
|
+
);
|
|
275
490
|
const style = composeRenderProps(styleProp, (prev) => {
|
|
276
491
|
return {
|
|
277
492
|
...stylingProps.style,
|
|
278
493
|
...prev
|
|
279
494
|
};
|
|
280
495
|
});
|
|
496
|
+
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
497
|
+
return {
|
|
498
|
+
...triggerStylingProps.style,
|
|
499
|
+
...prev
|
|
500
|
+
};
|
|
501
|
+
});
|
|
502
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
503
|
+
SlotProvider,
|
|
504
|
+
{
|
|
505
|
+
values: [
|
|
506
|
+
[TextContext$1, { size, className: Select_module_default["hop-Select__prefix"] }],
|
|
507
|
+
[IconContext, { size, className: Select_module_default["hop-Select__prefix"] }]
|
|
508
|
+
],
|
|
509
|
+
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: ensureTextWrapper(prefix) })
|
|
510
|
+
}
|
|
511
|
+
) : null;
|
|
281
512
|
const footerMarkup = footer ? /* @__PURE__ */ jsx(
|
|
282
513
|
ClearProviders,
|
|
283
514
|
{
|
|
284
515
|
values: [
|
|
285
|
-
TextContext$1,
|
|
286
516
|
TextContext,
|
|
517
|
+
TextContext$1,
|
|
287
518
|
ButtonContext
|
|
288
519
|
],
|
|
289
520
|
children: /* @__PURE__ */ jsx(
|
|
290
521
|
SlotProvider,
|
|
291
522
|
{
|
|
292
523
|
values: [
|
|
293
|
-
[TextContext, {
|
|
524
|
+
[TextContext$1, {
|
|
525
|
+
size
|
|
526
|
+
}]
|
|
294
527
|
],
|
|
295
|
-
children: /* @__PURE__ */ jsx(_Footer, {
|
|
528
|
+
children: /* @__PURE__ */ jsx(_Footer, { children: ensureTextWrapper(footer) })
|
|
296
529
|
}
|
|
297
530
|
)
|
|
298
531
|
}
|
|
299
532
|
) : null;
|
|
300
|
-
return /* @__PURE__ */
|
|
301
|
-
|
|
533
|
+
return /* @__PURE__ */ jsx(
|
|
534
|
+
Select$1,
|
|
302
535
|
{
|
|
303
536
|
...otherProps,
|
|
304
537
|
ref,
|
|
305
538
|
className: classNames,
|
|
306
|
-
isAutoWidth: isAutoMenuWidth,
|
|
307
|
-
isNonDialog: true,
|
|
308
|
-
placement,
|
|
309
539
|
style,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
540
|
+
isInvalid,
|
|
541
|
+
isRequired,
|
|
542
|
+
children: (selectRenderProps) => {
|
|
543
|
+
const { isOpen } = selectRenderProps;
|
|
544
|
+
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
545
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
546
|
+
label && /* @__PURE__ */ jsx(
|
|
547
|
+
_Label,
|
|
548
|
+
{
|
|
549
|
+
className: Select_module_default["hop-Select__label"],
|
|
550
|
+
isRequired,
|
|
551
|
+
necessityIndicator,
|
|
552
|
+
children: label
|
|
553
|
+
}
|
|
554
|
+
),
|
|
555
|
+
/* @__PURE__ */ jsxs(
|
|
556
|
+
_Popover,
|
|
557
|
+
{
|
|
558
|
+
isAutoWidth: isAutoMenuWidth,
|
|
559
|
+
isNonDialog: true,
|
|
560
|
+
placement: `${direction} ${align}`,
|
|
561
|
+
shouldFlip,
|
|
562
|
+
...popoverProps,
|
|
563
|
+
children: [
|
|
564
|
+
/* @__PURE__ */ jsx(
|
|
565
|
+
SlotProvider,
|
|
566
|
+
{
|
|
567
|
+
values: [
|
|
568
|
+
[BadgeContext, {
|
|
569
|
+
variant: "secondary"
|
|
570
|
+
}]
|
|
571
|
+
],
|
|
572
|
+
children: /* @__PURE__ */ jsx(
|
|
573
|
+
_ListBox,
|
|
574
|
+
{
|
|
575
|
+
size,
|
|
576
|
+
isInvalid,
|
|
577
|
+
items,
|
|
578
|
+
isLoading,
|
|
579
|
+
onLoadMore,
|
|
580
|
+
selectionIndicator,
|
|
581
|
+
...listBoxProps,
|
|
582
|
+
children
|
|
583
|
+
}
|
|
584
|
+
)
|
|
585
|
+
}
|
|
586
|
+
),
|
|
587
|
+
footerMarkup
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
),
|
|
591
|
+
/* @__PURE__ */ jsxs(Button, { className: buttonClassNames, style: triggerStyle, "data-invalid": isInvalid || void 0, ...otherTriggerProps, children: [
|
|
592
|
+
prefixMarkup,
|
|
593
|
+
/* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
|
|
594
|
+
return renderValue == null ? void 0 : renderValue(valueRenderProps);
|
|
595
|
+
} }),
|
|
596
|
+
/* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: Select_module_default["hop-Select__button-icon"] })
|
|
597
|
+
] }),
|
|
598
|
+
description && /* @__PURE__ */ jsx(_HelperMessage, { className: Select_module_default["hop-Select__helper-message"], children: description }),
|
|
599
|
+
/* @__PURE__ */ jsx(_ErrorMessage, { className: Select_module_default["hop-Select__error-message"], children: errorMessage })
|
|
600
|
+
] });
|
|
601
|
+
}
|
|
325
602
|
}
|
|
326
603
|
);
|
|
327
604
|
}
|
|
328
|
-
var
|
|
329
|
-
|
|
605
|
+
var _Select = forwardRef(Select);
|
|
606
|
+
_Select.displayName = "Select";
|
|
330
607
|
function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
|
|
331
608
|
let { cursor, getKey } = opts;
|
|
332
609
|
return {
|
|
@@ -738,7 +1015,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
738
1015
|
}
|
|
739
1016
|
|
|
740
1017
|
// css-module:./Popover.module.css#css-module
|
|
741
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
1018
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___YFGFE", "fade": "Popover-module__fade___pXgrM", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___546KR", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___j0EGd", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___uzaP1", "hop-Popover__title": "Popover-module__hop-Popover__title___sAqss", "hop-Popover__content": "Popover-module__hop-Popover__content___cobZm", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___uG0vO", "hop-Popover__footer": "Popover-module__hop-Popover__footer___xb9sY", "hop-Popover__actions": "Popover-module__hop-Popover__actions___qAjP0", "hop-Popover__action": "Popover-module__hop-Popover__action___DXe9U" };
|
|
742
1019
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
743
1020
|
function Popover(props, ref) {
|
|
744
1021
|
var _a;
|
|
@@ -875,4 +1152,4 @@ function Popover(props, ref) {
|
|
|
875
1152
|
var _Popover = forwardRef(Popover);
|
|
876
1153
|
_Popover.displayName = "Popover";
|
|
877
1154
|
|
|
878
|
-
export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66,
|
|
1155
|
+
export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, GlobalComboBoxCssSelector, GlobalFormCssSelector, GlobalPopoverCssSelector, GlobalSelectCssSelector, _ComboBox, _Form, _Popover, _Select };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
|
-
import { _ClearButton } from './chunk-
|
|
3
|
-
import { mapOrbiterToHopperVariants } from './chunk-
|
|
4
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _ClearButton } from './chunk-JGCL3ROE.js';
|
|
3
|
+
import { mapOrbiterToHopperVariants } from './chunk-CSLPKYB6.js';
|
|
4
|
+
import { _Spinner } from './chunk-VQCVSSSJ.js';
|
|
5
|
+
import { ensureTextWrapper } from './chunk-BMOOWAAW.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
5
7
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
6
8
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
7
|
-
import { EnsureTextWrapper } from './chunk-QH5LWKA7.js';
|
|
8
|
-
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
9
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
11
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -20,7 +20,7 @@ import { useContextProps, composeRenderProps, Tag as Tag$1 } from 'react-aria-co
|
|
|
20
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
21
|
|
|
22
22
|
// css-module:./Tag.module.css#css-module
|
|
23
|
-
var Tag_module_default = { "hop-Tag": "Tag-module__hop-
|
|
23
|
+
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___E-WG0", "hop-Tag--sm": "Tag-module__hop-Tag--sm___yaFC8", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___Yycee", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___qKDUi", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___-BeLj", "hop-Tag--md": "Tag-module__hop-Tag--md___aJWrV", "hop-Tag--lg": "Tag-module__hop-Tag--lg___lDmHN", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___VLY8C", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___KZsVS", "hop-Tag--progress": "Tag-module__hop-Tag--progress___2uA7k", "hop-Tag--positive": "Tag-module__hop-Tag--positive___l4Vrx", "hop-Tag--caution": "Tag-module__hop-Tag--caution___vE8tQ", "hop-Tag--negative": "Tag-module__hop-Tag--negative___zA7DO", "hop-Tag--option1": "Tag-module__hop-Tag--option1___BZfW4", "hop-Tag--option2": "Tag-module__hop-Tag--option2___RmqY2", "hop-Tag--option3": "Tag-module__hop-Tag--option3___vKdh8", "hop-Tag--option4": "Tag-module__hop-Tag--option4___M2U4e", "hop-Tag--option5": "Tag-module__hop-Tag--option5___acrEd", "hop-Tag--option6": "Tag-module__hop-Tag--option6___XDjTs", "hop-Tag__icon": "Tag-module__hop-Tag__icon___I05Gl", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___QuSRB", "hop-Tag__text": "Tag-module__hop-Tag__text___b-C2p", "hop-Tag__badge": "Tag-module__hop-Tag__badge___nQ7Sv", "hop-Tag__badge--subdued": "Tag-module__hop-Tag__badge--subdued___OKCER" };
|
|
24
24
|
var GlobalTagCssSelector = "hop-Tag";
|
|
25
25
|
var TagToTextSizeAdapter = {
|
|
26
26
|
sm: "xs",
|
|
@@ -75,7 +75,7 @@ function Tag(props, ref) {
|
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
77
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
78
|
-
return
|
|
78
|
+
return ensureTextWrapper(prev);
|
|
79
79
|
});
|
|
80
80
|
const { className: spinnerClassName, ...otherSpinnerProps } = spinnerProps || {};
|
|
81
81
|
const spinnerClassNames = clsx(Tag_module_default["hop-Tag__Spinner"], spinnerClassName);
|