@hopper-ui/components 1.3.25 → 1.3.26
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 +8 -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 +78 -82
- 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 +78 -82
- package/dist/Form/src/index.css +768 -768
- package/dist/Form/src/index.js +78 -82
- 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 +78 -82
- 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-IH3RR5MG.js → chunk-2EV3YY6O.js} +4 -4
- package/dist/{chunk-NGK3TCDT.js → chunk-34ER3Q3E.js} +2 -2
- package/dist/{chunk-PAYW2NOQ.js → chunk-3O7BL2KX.js} +2 -2
- package/dist/{chunk-LVMXSXUU.js → chunk-3UP24VEW.js} +6 -6
- package/dist/{chunk-7F5TKAIG.js → chunk-3W66UTRH.js} +2 -2
- package/dist/{chunk-53JGRJCV.js → chunk-4T564HJ6.js} +1 -1
- package/dist/{chunk-BTHGQBNC.js → chunk-5U74TYYM.js} +3 -3
- package/dist/{chunk-A2EH4QHT.js → chunk-5VMRSEZJ.js} +2 -2
- package/dist/{chunk-L7RJGOCA.js → chunk-7YCHVZAY.js} +2 -2
- package/dist/{chunk-5HPWSPMG.js → chunk-AN67K6WK.js} +1 -1
- package/dist/{chunk-MMOO3PA2.js → chunk-AQSTIWVL.js} +2 -2
- package/dist/{chunk-M6YJFDSQ.js → chunk-BBBCM4UD.js} +3 -3
- package/dist/{chunk-KJIGRQNG.js → chunk-BCCHOOJ6.js} +6 -6
- package/dist/{chunk-P5EJKG65.js → chunk-BX43IOO4.js} +1 -1
- package/dist/{chunk-N3ZSOPEG.js → chunk-CPMQVH6E.js} +5 -5
- package/dist/{chunk-4TP6C4G2.js → chunk-D356AG3Y.js} +5 -5
- package/dist/{chunk-L37Y7HGN.js → chunk-D423VDJZ.js} +2 -2
- package/dist/{chunk-HL6KUV6M.js → chunk-DTY2IJJ4.js} +3 -3
- package/dist/{chunk-QCEUL6I6.js → chunk-E5B2HDJG.js} +2 -2
- package/dist/{chunk-VG4DSVZN.js → chunk-ESWWZ7W6.js} +3 -3
- package/dist/{chunk-WABC2ZXX.js → chunk-EXL4IHCP.js} +2 -2
- package/dist/{chunk-WYWHOSC6.js → chunk-GKELD2X2.js} +2 -2
- package/dist/{chunk-P6DGNPLB.js → chunk-IFHFCK4B.js} +1 -1
- package/dist/{chunk-PM3R4HC6.js → chunk-KZQDYFSO.js} +3 -3
- package/dist/{chunk-TLQ7IGJK.js → chunk-O4UTOFYE.js} +2 -2
- package/dist/{chunk-2ETSJJL5.js → chunk-OH47EJDL.js} +2 -2
- package/dist/{chunk-KAYNG6FW.js → chunk-ON7MQIOJ.js} +1 -1
- package/dist/{chunk-SLF2NM3M.js → chunk-P46AXP47.js} +2 -2
- package/dist/{chunk-AGPDWIJB.js → chunk-PLJGFTQE.js} +1 -1
- package/dist/{chunk-YSI55QTD.js → chunk-Q6YABMDY.js} +4 -4
- package/dist/{chunk-CB2SODXY.js → chunk-QHS7OPTX.js} +2 -2
- package/dist/{chunk-FR7CLIF6.js → chunk-QLFK4TDW.js} +1 -1
- package/dist/{chunk-3JTKO6GT.js → chunk-RH56CRXC.js} +2 -2
- package/dist/{chunk-6FGO2GDP.js → chunk-SEMHS2HM.js} +6 -6
- package/dist/{chunk-WQT2547E.js → chunk-SHLXCNCB.js} +1 -1
- package/dist/{chunk-X7WNB6WS.js → chunk-TUAAD5PI.js} +1 -1
- package/dist/{chunk-VNW2HMOF.js → chunk-UIVMBUPT.js} +1 -1
- package/dist/{chunk-NSMUWG64.js → chunk-UNIVA5T3.js} +1 -1
- package/dist/{chunk-2KG3OHKZ.js → chunk-UV3CWRCS.js} +2 -2
- package/dist/{chunk-CCZOA5KO.js → chunk-VAAXBSBQ.js} +1 -1
- package/dist/{chunk-AAMEZDS5.js → chunk-X5UWK5RL.js} +1 -1
- package/dist/{chunk-QIFW365G.js → chunk-XF3Q4TNE.js} +3 -3
- package/dist/{chunk-XSKVQY7T.js → chunk-Y4ZE6KY7.js} +371 -94
- package/dist/{chunk-G5AT4DUS.js → chunk-YO2QYRC2.js} +2 -2
- package/dist/{chunk-62HFZTN3.js → chunk-Z2LOHKRH.js} +1 -1
- package/dist/{chunk-QH5LWKA7.js → chunk-ZZPW6TQD.js} +1 -1
- package/dist/index.css +768 -768
- package/dist/index.d.ts +3 -7
- package/dist/index.js +78 -82
- 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.js +11 -11
- package/dist/inputs/src/index.css +324 -324
- package/dist/inputs/src/index.js +18 -18
- package/dist/overlays/Popover/src/Popover.css +768 -768
- package/dist/overlays/Popover/src/Popover.js +78 -82
- package/dist/overlays/Popover/src/index.css +768 -768
- package/dist/overlays/Popover/src/index.js +78 -82
- 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.js +5 -5
- package/dist/utils/src/index.css +27 -27
- package/dist/utils/src/index.d.ts +1 -1
- 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-RFDRCPQ7.js +0 -149
- package/dist/chunk-XGOJ7VOE.js +0 -7
- package/dist/chunk-XVOHLDT7.js +0 -210
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, ForwardedRef } from 'react';
|
|
3
|
-
import { FooterProps } from '../../layout/src/Footer.js';
|
|
4
|
-
import { ListBoxProps } from '../../ListBox/src/ListBox.js';
|
|
5
|
-
export { ListBoxItem as SelectOption } from '../../ListBox/src/ListBoxItem.js';
|
|
6
|
-
import { PopoverProps } from '../../overlays/Popover/src/Popover.js';
|
|
7
|
-
import '@hopper-ui/styled-system';
|
|
8
|
-
import '../../utils/src/types.js';
|
|
9
|
-
import '@react-types/shared';
|
|
10
|
-
import 'react-aria-components';
|
|
11
|
-
import '../../checkbox/src/DecorativeCheckbox.js';
|
|
12
|
-
import '../../checkbox/src/Checkbox.js';
|
|
13
|
-
import '../../radio/src/DecorativeRadio.js';
|
|
14
|
-
import '../../radio/src/Radio.js';
|
|
15
|
-
import 'react-aria';
|
|
16
|
-
|
|
17
|
-
declare const GlobalSelectOptionsCssSelector = "hop-SelectOptions";
|
|
18
|
-
interface SelectOptionsProps<T extends object> extends Omit<PopoverProps, "children"> {
|
|
19
|
-
/**
|
|
20
|
-
* The items of the SelectOptions.
|
|
21
|
-
*/
|
|
22
|
-
children: ReactNode | ((item: T) => ReactNode);
|
|
23
|
-
/**
|
|
24
|
-
* The footer of the select.
|
|
25
|
-
*/
|
|
26
|
-
footer?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* The props for the Footer
|
|
29
|
-
*/
|
|
30
|
-
footerProps?: FooterProps;
|
|
31
|
-
/**
|
|
32
|
-
* If `true`, the select menu will not be the width of the trigger and instead be the width of its contents.
|
|
33
|
-
*/
|
|
34
|
-
isAutoMenuWidth?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The list box props.
|
|
37
|
-
*/
|
|
38
|
-
listBoxProps?: ListBoxProps<T>;
|
|
39
|
-
}
|
|
40
|
-
declare function SelectOptions<T extends object>(props: SelectOptionsProps<T>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
41
|
-
/**
|
|
42
|
-
* SelectOptions is a component that displays a list of options in a popover.
|
|
43
|
-
*
|
|
44
|
-
* [View Documentation](TODO)
|
|
45
|
-
*/
|
|
46
|
-
declare const _SelectOptions: <T extends object>(props: SelectOptionsProps<T> & {
|
|
47
|
-
ref?: ForwardedRef<HTMLDivElement>;
|
|
48
|
-
}) => ReturnType<typeof SelectOptions>;
|
|
49
|
-
|
|
50
|
-
export { GlobalSelectOptionsCssSelector, _SelectOptions as SelectOptions, type SelectOptionsProps };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
export { GlobalSelectOptionsCssSelector, _SelectOptions as SelectOptions } from '../../chunk-XSKVQY7T.js';
|
|
2
|
-
import '../../chunk-I4VPBQI7.js';
|
|
3
|
-
import '../../chunk-QCEUL6I6.js';
|
|
4
|
-
import '../../chunk-LCAS3YQV.js';
|
|
5
|
-
import '../../chunk-WWRB4K4M.js';
|
|
6
|
-
import '../../chunk-XLKYXKWE.js';
|
|
7
|
-
import '../../chunk-TLQ7IGJK.js';
|
|
8
|
-
import '../../chunk-2KG3OHKZ.js';
|
|
9
|
-
import '../../chunk-YHBJAXUY.js';
|
|
10
|
-
import '../../chunk-H7VJS4MX.js';
|
|
11
|
-
import '../../chunk-LVMXSXUU.js';
|
|
12
|
-
import '../../chunk-EWMWQ2MC.js';
|
|
13
|
-
import '../../chunk-GFHBDUJD.js';
|
|
14
|
-
import '../../chunk-SLF2NM3M.js';
|
|
15
|
-
import '../../chunk-MMOO3PA2.js';
|
|
16
|
-
import '../../chunk-YSI55QTD.js';
|
|
17
|
-
import '../../chunk-DGLAGYBD.js';
|
|
18
|
-
import '../../chunk-5MBJWRZD.js';
|
|
19
|
-
import '../../chunk-DPC3Y6Y2.js';
|
|
20
|
-
import '../../chunk-IXB2WK56.js';
|
|
21
|
-
import '../../chunk-GTM56LGX.js';
|
|
22
|
-
import '../../chunk-I67NHYK4.js';
|
|
23
|
-
import '../../chunk-N77LTZ4U.js';
|
|
24
|
-
import '../../chunk-Y7HUXUHX.js';
|
|
25
|
-
import '../../chunk-D6UTDI2K.js';
|
|
26
|
-
import '../../chunk-TVFC2MJ4.js';
|
|
27
|
-
import '../../chunk-HL6KUV6M.js';
|
|
28
|
-
import '../../chunk-3NKF5TPD.js';
|
|
29
|
-
import '../../chunk-PM3R4HC6.js';
|
|
30
|
-
import '../../chunk-IU6XMS2X.js';
|
|
31
|
-
import '../../chunk-MHQZXLKW.js';
|
|
32
|
-
import '../../chunk-KJIGRQNG.js';
|
|
33
|
-
import '../../chunk-Z57VHYOF.js';
|
|
34
|
-
import '../../chunk-L7RJGOCA.js';
|
|
35
|
-
import '../../chunk-O4XPUINW.js';
|
|
36
|
-
import '../../chunk-BTHGQBNC.js';
|
|
37
|
-
import '../../chunk-MTDFS4CZ.js';
|
|
38
|
-
import '../../chunk-ZQ3AWYRR.js';
|
|
39
|
-
import '../../chunk-M6YJFDSQ.js';
|
|
40
|
-
import '../../chunk-53JGRJCV.js';
|
|
41
|
-
import '../../chunk-6BFSSZCY.js';
|
|
42
|
-
import '../../chunk-QW45G6K4.js';
|
|
43
|
-
import '../../chunk-NGK3TCDT.js';
|
|
44
|
-
import '../../chunk-G5AT4DUS.js';
|
|
45
|
-
import '../../chunk-N3ZSOPEG.js';
|
|
46
|
-
import '../../chunk-ZGNK4GWA.js';
|
|
47
|
-
import '../../chunk-N7YDPVZL.js';
|
|
48
|
-
import '../../chunk-WQT2547E.js';
|
|
49
|
-
import '../../chunk-DXVKHP4V.js';
|
|
50
|
-
import '../../chunk-P5EJKG65.js';
|
|
51
|
-
import '../../chunk-O7IJYNVQ.js';
|
|
52
|
-
import '../../chunk-7F5TKAIG.js';
|
|
53
|
-
import '../../chunk-IH3RR5MG.js';
|
|
54
|
-
import '../../chunk-H5YTU3U7.js';
|
|
55
|
-
import '../../chunk-CB2SODXY.js';
|
|
56
|
-
import '../../chunk-4ZYV2XLW.js';
|
|
57
|
-
import '../../chunk-3JTKO6GT.js';
|
|
58
|
-
import '../../chunk-VJQ7M2BK.js';
|
|
59
|
-
import '../../chunk-3UQFC2NQ.js';
|
|
60
|
-
import '../../chunk-WMTWFKKP.js';
|
|
61
|
-
import '../../chunk-O5PTD6IN.js';
|
|
62
|
-
import '../../chunk-RFDRCPQ7.js';
|
|
63
|
-
import '../../chunk-WABC2ZXX.js';
|
|
64
|
-
import '../../chunk-EHXOXTDN.js';
|
|
65
|
-
import '../../chunk-T24MBA34.js';
|
|
66
|
-
import '../../chunk-CQFXGAJK.js';
|
|
67
|
-
import '../../chunk-6FGO2GDP.js';
|
|
68
|
-
import '../../chunk-TIPN4VYD.js';
|
|
69
|
-
import '../../chunk-5H5AZJPQ.js';
|
|
70
|
-
export { _ListBoxItem as SelectOption } from '../../chunk-4TP6C4G2.js';
|
|
71
|
-
import '../../chunk-PAYW2NOQ.js';
|
|
72
|
-
import '../../chunk-FU5CCPLP.js';
|
|
73
|
-
import '../../chunk-WYWHOSC6.js';
|
|
74
|
-
import '../../chunk-2EAZPH3M.js';
|
|
75
|
-
import '../../chunk-Y2POLIXK.js';
|
|
76
|
-
import '../../chunk-X7WNB6WS.js';
|
|
77
|
-
import '../../chunk-OKZYR4RF.js';
|
|
78
|
-
import '../../chunk-NMKBUGSO.js';
|
|
79
|
-
import '../../chunk-KAYNG6FW.js';
|
|
80
|
-
import '../../chunk-VG4DSVZN.js';
|
|
81
|
-
import '../../chunk-4VVNSXIB.js';
|
|
82
|
-
import '../../chunk-DHVVYSLB.js';
|
|
83
|
-
import '../../chunk-EURJK4ZT.js';
|
|
84
|
-
import '../../chunk-N5UT7MST.js';
|
|
85
|
-
import '../../chunk-7JOGKC3W.js';
|
|
86
|
-
import '../../chunk-L37Y7HGN.js';
|
|
87
|
-
import '../../chunk-XGOJ7VOE.js';
|
|
88
|
-
import '../../chunk-NSMUWG64.js';
|
|
89
|
-
import '../../chunk-FYIHMKHI.js';
|
|
90
|
-
import '../../chunk-2ETSJJL5.js';
|
|
91
|
-
import '../../chunk-A2EH4QHT.js';
|
|
92
|
-
import '../../chunk-CCZOA5KO.js';
|
|
93
|
-
import '../../chunk-CQDLZ42T.js';
|
|
94
|
-
import '../../chunk-CIGS4QGT.js';
|
|
95
|
-
import '../../chunk-XVOHLDT7.js';
|
|
96
|
-
import '../../chunk-SC6ZK5ON.js';
|
|
97
|
-
import '../../chunk-UIEP5BA5.js';
|
|
98
|
-
import '../../chunk-QH5LWKA7.js';
|
|
99
|
-
import '../../chunk-ZWU6DRRZ.js';
|
|
100
|
-
import '../../chunk-LJXTJRSB.js';
|
|
101
|
-
import '../../chunk-P6DGNPLB.js';
|
|
102
|
-
import '../../chunk-TXZ6BMFR.js';
|
|
103
|
-
import '../../chunk-AAMEZDS5.js';
|
|
104
|
-
import '../../chunk-QCA3ZR56.js';
|
|
105
|
-
import '../../chunk-TFVDF4YH.js';
|
|
106
|
-
import '../../chunk-HZKFQ33E.js';
|
|
107
|
-
import '../../chunk-FAE27DLF.js';
|
|
108
|
-
import '../../chunk-5HPWSPMG.js';
|
|
109
|
-
import '../../chunk-WPNVVGFW.js';
|
|
110
|
-
import '../../chunk-4XHTP4GX.js';
|
|
111
|
-
import '../../chunk-AGPDWIJB.js';
|
|
112
|
-
import '../../chunk-QIFW365G.js';
|
|
113
|
-
import '../../chunk-LI5HSYF7.js';
|
|
114
|
-
import '../../chunk-FR7CLIF6.js';
|
|
115
|
-
import '../../chunk-X6SER3TZ.js';
|
|
116
|
-
import '../../chunk-HXI3MEEK.js';
|
|
117
|
-
import '../../chunk-62HFZTN3.js';
|
|
118
|
-
import '../../chunk-AES7QBQE.js';
|
|
119
|
-
import '../../chunk-VNW2HMOF.js';
|
|
120
|
-
import '../../chunk-NH3IVMXB.js';
|
|
121
|
-
import '../../chunk-65JPI4FL.js';
|
|
122
|
-
import '../../chunk-M36KANKC.js';
|
|
123
|
-
import '../../chunk-KVDXQMWI.js';
|
|
124
|
-
import '../../chunk-JWW56J7M.js';
|
|
125
|
-
import '../../chunk-JSBRDJBE.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ContextValue } from 'react-aria-components';
|
|
3
|
-
import { SelectOptionsProps } from './SelectOptions.js';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import '../../layout/src/Footer.js';
|
|
6
|
-
import '@hopper-ui/styled-system';
|
|
7
|
-
import '../../utils/src/types.js';
|
|
8
|
-
import '@react-types/shared';
|
|
9
|
-
import '../../ListBox/src/ListBox.js';
|
|
10
|
-
import '../../ListBox/src/ListBoxItem.js';
|
|
11
|
-
import '../../checkbox/src/DecorativeCheckbox.js';
|
|
12
|
-
import '../../checkbox/src/Checkbox.js';
|
|
13
|
-
import '../../radio/src/DecorativeRadio.js';
|
|
14
|
-
import '../../radio/src/Radio.js';
|
|
15
|
-
import '../../overlays/Popover/src/Popover.js';
|
|
16
|
-
import 'react-aria';
|
|
17
|
-
|
|
18
|
-
type SelectContextProps = SelectOptionsProps<any>;
|
|
19
|
-
declare const SelectOptionsContext: react.Context<ContextValue<Partial<SelectContextProps>, HTMLDivElement>>;
|
|
20
|
-
|
|
21
|
-
export { SelectOptionsContext };
|
package/dist/chunk-CQFXGAJK.js
DELETED
package/dist/chunk-RFDRCPQ7.js
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { _SelectValue } from './chunk-WABC2ZXX.js';
|
|
2
|
-
import { SelectContext } from './chunk-T24MBA34.js';
|
|
3
|
-
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { EnsureTextWrapper } from './chunk-QH5LWKA7.js';
|
|
5
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
10
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
|
-
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
14
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
15
|
-
import { forwardRef } from 'react';
|
|
16
|
-
import { useContextProps, composeRenderProps, Select as Select$1, Button } from 'react-aria-components';
|
|
17
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
|
-
|
|
19
|
-
// css-module:./Select.module.css#css-module
|
|
20
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-Select___u5d3m", "hop-Select--fluid": "Select-module__hop-Select--fluid___YkEzs", "hop-Select__label": "Select-module__hop-Select__label___lj87n", "hop-Select__button": "Select-module__hop-Select__button___V3fKN", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___cGJzt", "hop-Select__button--md": "Select-module__hop-Select__button--md___GgxAQ", "hop-Select__prefix": "Select-module__hop-Select__prefix___iC8wF", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___WEzTG", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___aopAP", "hop-Select__error-message": "Select-module__hop-Select__error-message___xF2H9" };
|
|
21
|
-
var GlobalSelectCssSelector = "hop-Select";
|
|
22
|
-
function Select(props, ref) {
|
|
23
|
-
var _a, _b;
|
|
24
|
-
[props, ref] = useContextProps(props, ref, SelectContext);
|
|
25
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
26
|
-
const {
|
|
27
|
-
className,
|
|
28
|
-
children: childrenProp,
|
|
29
|
-
isFluid: isFluidProp,
|
|
30
|
-
isInvalid,
|
|
31
|
-
isRequired,
|
|
32
|
-
items,
|
|
33
|
-
necessityIndicator,
|
|
34
|
-
prefix,
|
|
35
|
-
renderValue,
|
|
36
|
-
size: sizeProp,
|
|
37
|
-
style: styleProp,
|
|
38
|
-
triggerProps,
|
|
39
|
-
...otherProps
|
|
40
|
-
} = ownProps;
|
|
41
|
-
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
42
|
-
const {
|
|
43
|
-
className: triggerClassName,
|
|
44
|
-
style: triggerStyleProp,
|
|
45
|
-
...otherTriggerProps
|
|
46
|
-
} = triggerOwnProps;
|
|
47
|
-
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
|
|
48
|
-
const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
|
|
49
|
-
const classNames = composeClassnameRenderProps(
|
|
50
|
-
className,
|
|
51
|
-
GlobalSelectCssSelector,
|
|
52
|
-
cssModule(
|
|
53
|
-
Select_module_default,
|
|
54
|
-
"hop-Select",
|
|
55
|
-
isFluid && "fluid",
|
|
56
|
-
size
|
|
57
|
-
),
|
|
58
|
-
stylingProps.className
|
|
59
|
-
);
|
|
60
|
-
const buttonClassNames = composeClassnameRenderProps(
|
|
61
|
-
triggerClassName,
|
|
62
|
-
cssModule(
|
|
63
|
-
Select_module_default,
|
|
64
|
-
"hop-Select__button",
|
|
65
|
-
size
|
|
66
|
-
),
|
|
67
|
-
triggerStylingProps.className
|
|
68
|
-
);
|
|
69
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
70
|
-
return {
|
|
71
|
-
...stylingProps.style,
|
|
72
|
-
...prev
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
76
|
-
return {
|
|
77
|
-
...triggerStylingProps.style,
|
|
78
|
-
...prev
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
const children = composeRenderProps(childrenProp, (prev) => {
|
|
82
|
-
return prev;
|
|
83
|
-
});
|
|
84
|
-
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
85
|
-
SlotProvider,
|
|
86
|
-
{
|
|
87
|
-
values: [
|
|
88
|
-
[TextContext, { size, className: Select_module_default["hop-Select__prefix"] }],
|
|
89
|
-
[IconContext, { size, className: Select_module_default["hop-Select__prefix"] }]
|
|
90
|
-
],
|
|
91
|
-
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
|
|
92
|
-
}
|
|
93
|
-
) : null;
|
|
94
|
-
return /* @__PURE__ */ jsx(
|
|
95
|
-
Select$1,
|
|
96
|
-
{
|
|
97
|
-
...otherProps,
|
|
98
|
-
ref,
|
|
99
|
-
className: classNames,
|
|
100
|
-
style,
|
|
101
|
-
isInvalid,
|
|
102
|
-
isRequired,
|
|
103
|
-
children: (selectRenderProps) => {
|
|
104
|
-
const { isOpen } = selectRenderProps;
|
|
105
|
-
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
106
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
-
SlotProvider,
|
|
109
|
-
{
|
|
110
|
-
values: [
|
|
111
|
-
[LabelContext, {
|
|
112
|
-
className: Select_module_default["hop-Select__label"],
|
|
113
|
-
isRequired,
|
|
114
|
-
necessityIndicator
|
|
115
|
-
}],
|
|
116
|
-
[HelperMessageContext, {
|
|
117
|
-
className: Select_module_default["hop-Select__helper-message"]
|
|
118
|
-
}],
|
|
119
|
-
[ErrorMessageContext, {
|
|
120
|
-
className: Select_module_default["hop-Select__error-message"]
|
|
121
|
-
}],
|
|
122
|
-
[TextContext, {
|
|
123
|
-
size
|
|
124
|
-
}],
|
|
125
|
-
[ListBoxContext, {
|
|
126
|
-
size,
|
|
127
|
-
isInvalid,
|
|
128
|
-
items
|
|
129
|
-
}]
|
|
130
|
-
],
|
|
131
|
-
children: children(selectRenderProps)
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ jsxs(Button, { className: buttonClassNames, style: triggerStyle, "data-invalid": isInvalid || void 0, ...otherTriggerProps, children: [
|
|
135
|
-
prefixMarkup,
|
|
136
|
-
/* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
|
|
137
|
-
return renderValue == null ? void 0 : renderValue(valueRenderProps);
|
|
138
|
-
} }),
|
|
139
|
-
/* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: Select_module_default["hop-Select__button-icon"] })
|
|
140
|
-
] })
|
|
141
|
-
] });
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
var _Select = forwardRef(Select);
|
|
147
|
-
_Select.displayName = "Select";
|
|
148
|
-
|
|
149
|
-
export { GlobalSelectCssSelector, _Select };
|
package/dist/chunk-XGOJ7VOE.js
DELETED
package/dist/chunk-XVOHLDT7.js
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
|
-
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
3
|
-
import { EnsureTextWrapper } from './chunk-QH5LWKA7.js';
|
|
4
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
6
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
7
|
-
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
8
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
10
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
|
-
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
14
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
15
|
-
import { useObjectRef, mergeRefs, useResizeObserver } from '@react-aria/utils';
|
|
16
|
-
import { forwardRef, useRef, useState, useCallback } from 'react';
|
|
17
|
-
import { useContextProps, useSlottedContext, InputContext, composeRenderProps, ComboBox as ComboBox$1, Group, Input, Button } from 'react-aria-components';
|
|
18
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
|
-
|
|
20
|
-
// css-module:./ComboBox.module.css#css-module
|
|
21
|
-
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___a9LpO", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___d-xQt", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___1Pmp0", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___Y0udS", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___iATng", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___4-gUx", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___uEoSl", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___-e9b-", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___omevd", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___LTpHS", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___avOXN", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___QGgiZ" };
|
|
22
|
-
var GlobalComboBoxCssSelector = "hop-ComboBox";
|
|
23
|
-
function ComboBox(props, ref) {
|
|
24
|
-
var _a, _b, _c;
|
|
25
|
-
const {
|
|
26
|
-
inputRef: userProvidedInputRef = null,
|
|
27
|
-
...propsWithoutRef
|
|
28
|
-
} = props;
|
|
29
|
-
[props, ref] = useContextProps(propsWithoutRef, ref, ComboBoxContext);
|
|
30
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
31
|
-
const {
|
|
32
|
-
className,
|
|
33
|
-
children: childrenProp,
|
|
34
|
-
isFluid: isFluidProp,
|
|
35
|
-
isInvalid,
|
|
36
|
-
isRequired,
|
|
37
|
-
items,
|
|
38
|
-
menuTrigger = "focus",
|
|
39
|
-
necessityIndicator,
|
|
40
|
-
placeholder,
|
|
41
|
-
prefix,
|
|
42
|
-
size: sizeProp,
|
|
43
|
-
style: styleProp,
|
|
44
|
-
triggerProps,
|
|
45
|
-
...otherProps
|
|
46
|
-
} = ownProps;
|
|
47
|
-
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, (_a = props.inputRef) != null ? _a : null));
|
|
48
|
-
const inputContext = useSlottedContext(InputContext);
|
|
49
|
-
const mergedInputRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext.ref) : inputRef;
|
|
50
|
-
const triggerRef = useRef(null);
|
|
51
|
-
const buttonRef = useRef(null);
|
|
52
|
-
const [triggerWidth, setTriggerWidth] = useState(null);
|
|
53
|
-
const onResize = useCallback(() => {
|
|
54
|
-
if (triggerRef.current) {
|
|
55
|
-
setTriggerWidth(triggerRef.current.offsetWidth + "px");
|
|
56
|
-
}
|
|
57
|
-
}, [triggerRef]);
|
|
58
|
-
useResizeObserver({
|
|
59
|
-
ref: triggerRef,
|
|
60
|
-
onResize
|
|
61
|
-
});
|
|
62
|
-
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
63
|
-
const {
|
|
64
|
-
className: triggerClassName,
|
|
65
|
-
style: triggerStyleProp,
|
|
66
|
-
...otherTriggerProps
|
|
67
|
-
} = triggerOwnProps;
|
|
68
|
-
const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "sm";
|
|
69
|
-
const isFluid = (_c = useResponsiveValue(isFluidProp)) != null ? _c : false;
|
|
70
|
-
const classNames = composeClassnameRenderProps(
|
|
71
|
-
className,
|
|
72
|
-
GlobalComboBoxCssSelector,
|
|
73
|
-
cssModule(
|
|
74
|
-
ComboBox_module_default,
|
|
75
|
-
"hop-ComboBox",
|
|
76
|
-
isFluid && "fluid",
|
|
77
|
-
size
|
|
78
|
-
),
|
|
79
|
-
stylingProps.className
|
|
80
|
-
);
|
|
81
|
-
const triggerClassNames = composeClassnameRenderProps(
|
|
82
|
-
triggerClassName,
|
|
83
|
-
cssModule(
|
|
84
|
-
ComboBox_module_default,
|
|
85
|
-
"hop-ComboBox__trigger",
|
|
86
|
-
size
|
|
87
|
-
),
|
|
88
|
-
triggerStylingProps.className
|
|
89
|
-
);
|
|
90
|
-
const buttonClassNames = composeClassnameRenderProps(
|
|
91
|
-
cssModule(
|
|
92
|
-
ComboBox_module_default,
|
|
93
|
-
"hop-ComboBox__button"
|
|
94
|
-
)
|
|
95
|
-
);
|
|
96
|
-
const inputClassNames = composeClassnameRenderProps(
|
|
97
|
-
inputContext == null ? void 0 : inputContext.className,
|
|
98
|
-
ComboBox_module_default["hop-ComboBox__input"]
|
|
99
|
-
);
|
|
100
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
101
|
-
return {
|
|
102
|
-
...stylingProps.style,
|
|
103
|
-
...prev
|
|
104
|
-
};
|
|
105
|
-
});
|
|
106
|
-
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
107
|
-
return {
|
|
108
|
-
...triggerStylingProps.style,
|
|
109
|
-
...prev
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
-
const children = composeRenderProps(childrenProp, (prev) => {
|
|
113
|
-
return prev;
|
|
114
|
-
});
|
|
115
|
-
const handleMouseDown = useCallback((e) => {
|
|
116
|
-
if (inputRef.current && e.target !== inputRef.current && buttonRef.current && e.target !== buttonRef.current) {
|
|
117
|
-
inputRef.current.focus();
|
|
118
|
-
e.preventDefault();
|
|
119
|
-
}
|
|
120
|
-
}, [inputRef]);
|
|
121
|
-
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
122
|
-
SlotProvider,
|
|
123
|
-
{
|
|
124
|
-
values: [
|
|
125
|
-
[TextContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }],
|
|
126
|
-
[IconContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }]
|
|
127
|
-
],
|
|
128
|
-
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
|
|
129
|
-
}
|
|
130
|
-
) : null;
|
|
131
|
-
return /* @__PURE__ */ jsx(
|
|
132
|
-
ComboBox$1,
|
|
133
|
-
{
|
|
134
|
-
ref,
|
|
135
|
-
className: classNames,
|
|
136
|
-
style,
|
|
137
|
-
isInvalid,
|
|
138
|
-
isRequired,
|
|
139
|
-
items,
|
|
140
|
-
menuTrigger,
|
|
141
|
-
...otherProps,
|
|
142
|
-
children: (comboBoxRenderProps) => {
|
|
143
|
-
const { isOpen } = comboBoxRenderProps;
|
|
144
|
-
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
145
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
146
|
-
/* @__PURE__ */ jsx(
|
|
147
|
-
SlotProvider,
|
|
148
|
-
{
|
|
149
|
-
values: [
|
|
150
|
-
[LabelContext, {
|
|
151
|
-
className: ComboBox_module_default["hop-ComboBox__label"],
|
|
152
|
-
isRequired,
|
|
153
|
-
necessityIndicator
|
|
154
|
-
}],
|
|
155
|
-
[HelperMessageContext, {
|
|
156
|
-
className: ComboBox_module_default["hop-ComboBox__helper-message"]
|
|
157
|
-
}],
|
|
158
|
-
[ErrorMessageContext, {
|
|
159
|
-
className: ComboBox_module_default["hop-ComboBox__error-message"]
|
|
160
|
-
}],
|
|
161
|
-
[TextContext, {
|
|
162
|
-
size
|
|
163
|
-
}],
|
|
164
|
-
[ListBoxContext, {
|
|
165
|
-
size,
|
|
166
|
-
isInvalid,
|
|
167
|
-
items
|
|
168
|
-
}],
|
|
169
|
-
[PopoverContext, {
|
|
170
|
-
triggerRef,
|
|
171
|
-
style: {
|
|
172
|
-
"--custom-trigger-width": triggerWidth
|
|
173
|
-
}
|
|
174
|
-
}]
|
|
175
|
-
],
|
|
176
|
-
children: children(comboBoxRenderProps)
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ jsxs(
|
|
180
|
-
Group,
|
|
181
|
-
{
|
|
182
|
-
ref: triggerRef,
|
|
183
|
-
className: triggerClassNames,
|
|
184
|
-
style: triggerStyle,
|
|
185
|
-
onMouseDown: handleMouseDown,
|
|
186
|
-
"data-selected": isOpen || void 0,
|
|
187
|
-
...otherTriggerProps,
|
|
188
|
-
children: [
|
|
189
|
-
prefixMarkup,
|
|
190
|
-
/* @__PURE__ */ jsx(
|
|
191
|
-
Input,
|
|
192
|
-
{
|
|
193
|
-
ref: mergedInputRefs,
|
|
194
|
-
className: inputClassNames,
|
|
195
|
-
placeholder
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
/* @__PURE__ */ jsx(Button, { className: buttonClassNames, ref: buttonRef, children: /* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: ComboBox_module_default["hop-ComboBox__button-icon"] }) })
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
)
|
|
202
|
-
] });
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
var _ComboBox = forwardRef(ComboBox);
|
|
208
|
-
_ComboBox.displayName = "ComboBox";
|
|
209
|
-
|
|
210
|
-
export { GlobalComboBoxCssSelector, _ComboBox };
|