@hopper-ui/components 1.3.24 → 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 +14 -0
- package/dist/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +3 -3
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +5 -5
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +7 -7
- 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 +2 -2
- package/dist/Badge/src/index.css +52 -52
- package/dist/Badge/src/index.js +6 -6
- package/dist/ComboBox/src/ComboBox.css +1251 -1251
- 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 +1251 -1251
- package/dist/ComboBox/src/index.d.ts +5 -8
- package/dist/ComboBox/src/index.js +71 -79
- 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 +3 -3
- package/dist/ErrorMessage/src/index.css +29 -29
- package/dist/ErrorMessage/src/index.js +3 -3
- package/dist/Form/src/Form.css +900 -900
- package/dist/Form/src/Form.js +71 -79
- package/dist/Form/src/index.css +900 -900
- package/dist/Form/src/index.js +71 -79
- 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 +9 -9
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +9 -9
- package/dist/ListBox/src/ListBox.css +406 -406
- package/dist/ListBox/src/ListBox.d.ts +1 -1
- package/dist/ListBox/src/ListBox.js +16 -16
- package/dist/ListBox/src/ListBoxItem.css +394 -394
- package/dist/ListBox/src/ListBoxItem.js +12 -12
- package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +406 -406
- package/dist/ListBox/src/index.js +16 -16
- package/dist/Select/src/Select.css +3863 -764
- package/dist/Select/src/Select.d.ts +55 -7
- package/dist/Select/src/Select.js +104 -9
- package/dist/Select/src/SelectContext.d.ts +8 -0
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +6 -6
- package/dist/Select/src/index.css +1506 -1506
- package/dist/Select/src/index.d.ts +3 -6
- package/dist/Select/src/index.js +71 -79
- package/dist/Spinner/src/Spinner.css +37 -37
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +37 -37
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +93 -93
- package/dist/buttons/src/Button.js +10 -10
- 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 +3 -3
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/LinkButton.css +102 -102
- package/dist/buttons/src/LinkButton.js +9 -9
- 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 +8 -8
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.js +3 -3
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.d.ts +7 -11
- package/dist/checkbox/src/CheckboxGroup.js +11 -4
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.d.ts +1 -1
- package/dist/checkbox/src/DecorativeCheckbox.js +8 -8
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.d.ts +1 -3
- package/dist/checkbox/src/index.js +14 -14
- package/dist/{chunk-UAWJCHI5.js → chunk-2EV3YY6O.js} +5 -5
- package/dist/{chunk-34OD6B77.js → chunk-34ER3Q3E.js} +3 -3
- package/dist/{chunk-4GUVWQIQ.js → chunk-3O7BL2KX.js} +3 -3
- package/dist/{chunk-AACT6TYJ.js → chunk-3UP24VEW.js} +7 -7
- package/dist/{chunk-VYR2FNOF.js → chunk-3W66UTRH.js} +4 -4
- package/dist/{chunk-GIUE6E7O.js → chunk-4T564HJ6.js} +2 -2
- package/dist/{chunk-ZNAUIA3P.js → chunk-5U74TYYM.js} +4 -4
- package/dist/{chunk-EY63OJGU.js → chunk-5VMRSEZJ.js} +2 -2
- package/dist/{chunk-FDA3Z2MW.js → chunk-7YCHVZAY.js} +2 -2
- package/dist/{chunk-A3DFIXR7.js → chunk-AN67K6WK.js} +1 -1
- package/dist/{chunk-DVFD3SO5.js → chunk-AQSTIWVL.js} +3 -3
- package/dist/{chunk-5HOGOWWF.js → chunk-BBBCM4UD.js} +4 -4
- package/dist/{chunk-23GSURJM.js → chunk-BCCHOOJ6.js} +6 -6
- package/dist/{chunk-DKU4ERF3.js → chunk-BX43IOO4.js} +2 -2
- package/dist/chunk-CPMQVH6E.js +133 -0
- package/dist/{chunk-ICG7GXKL.js → chunk-D356AG3Y.js} +6 -6
- package/dist/{chunk-RFDMUGAC.js → chunk-D423VDJZ.js} +2 -2
- package/dist/{chunk-JEJIGHGA.js → chunk-DTY2IJJ4.js} +4 -4
- package/dist/{chunk-P5CTWFXU.js → chunk-E5B2HDJG.js} +1 -1
- package/dist/{chunk-YZXA24RK.js → chunk-ESWWZ7W6.js} +4 -4
- package/dist/{chunk-6ZY5OMDT.js → chunk-EXL4IHCP.js} +3 -3
- package/dist/{chunk-YSSICOAX.js → chunk-GKELD2X2.js} +3 -3
- package/dist/{chunk-DQM72KTX.js → chunk-IFHFCK4B.js} +1 -1
- package/dist/{chunk-D2LTMEJM.js → chunk-KZQDYFSO.js} +5 -5
- package/dist/{chunk-GX67ZE24.js → chunk-O4UTOFYE.js} +3 -3
- package/dist/{chunk-TKHSOAVB.js → chunk-OH47EJDL.js} +2 -2
- package/dist/{chunk-2MA4Z3CM.js → chunk-ON7MQIOJ.js} +1 -1
- package/dist/{chunk-JDMEQ2PT.js → chunk-P46AXP47.js} +3 -3
- package/dist/{chunk-3MNBXLNA.js → chunk-PLJGFTQE.js} +1 -1
- package/dist/chunk-Q6YABMDY.js +133 -0
- package/dist/{chunk-ZYU53CSB.js → chunk-QHS7OPTX.js} +2 -2
- package/dist/{chunk-QEP5RLDI.js → chunk-QLFK4TDW.js} +1 -1
- package/dist/{chunk-I54ZVSE7.js → chunk-RH56CRXC.js} +2 -2
- package/dist/{chunk-XDS75LCS.js → chunk-SEMHS2HM.js} +7 -7
- package/dist/{chunk-DXJTN6KL.js → chunk-SHLXCNCB.js} +1 -1
- package/dist/{chunk-DPM63OEM.js → chunk-TUAAD5PI.js} +1 -1
- package/dist/{chunk-4QKGKTD5.js → chunk-UIVMBUPT.js} +2 -2
- package/dist/{chunk-3WWTLVIH.js → chunk-UNIVA5T3.js} +1 -1
- package/dist/{chunk-KYTJMKI3.js → chunk-UV3CWRCS.js} +2 -2
- package/dist/{chunk-FN2RCELD.js → chunk-VAAXBSBQ.js} +2 -2
- package/dist/{chunk-WU6G2EFE.js → chunk-X5UWK5RL.js} +1 -1
- package/dist/{chunk-FTU5D3IQ.js → chunk-XF3Q4TNE.js} +3 -3
- package/dist/{chunk-V2ME5CNG.js → chunk-Y4ZE6KY7.js} +369 -92
- package/dist/{chunk-QU5EBSOI.js → chunk-YO2QYRC2.js} +3 -3
- package/dist/{chunk-US7TSPOE.js → chunk-Z2LOHKRH.js} +1 -1
- package/dist/{chunk-7UIRCOSZ.js → chunk-ZZPW6TQD.js} +1 -1
- package/dist/index.css +900 -900
- package/dist/index.d.ts +6 -14
- package/dist/index.js +71 -79
- package/dist/inputs/src/InputGroup.css +264 -264
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/NumberField.css +286 -286
- package/dist/inputs/src/NumberField.js +8 -8
- 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 +6 -6
- package/dist/inputs/src/SearchField.css +280 -280
- package/dist/inputs/src/SearchField.js +9 -9
- package/dist/inputs/src/TextArea.css +281 -281
- package/dist/inputs/src/TextArea.js +9 -9
- 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 +900 -900
- package/dist/overlays/Popover/src/Popover.js +71 -79
- package/dist/overlays/Popover/src/index.css +900 -900
- package/dist/overlays/Popover/src/index.js +71 -79
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.d.ts +1 -1
- package/dist/radio/src/DecorativeRadio.js +8 -8
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +8 -8
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.js +3 -3
- package/dist/radio/src/RadioGroup.css +129 -129
- package/dist/radio/src/RadioGroup.d.ts +7 -11
- package/dist/radio/src/RadioGroup.js +11 -4
- package/dist/radio/src/index.css +264 -264
- package/dist/radio/src/index.d.ts +4 -6
- package/dist/radio/src/index.js +14 -14
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +8 -8
- 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 +12 -12
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +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 +7 -7
- package/dist/utils/src/types.d.ts +28 -2
- package/dist/utils/src/useRenderProps.d.ts +1 -0
- package/package.json +1 -1
- package/dist/Avatar/src/AnonymousAvatar.temp.css +0 -296
- package/dist/Avatar/src/AnonymousAvatar.temp.d.ts +0 -31
- package/dist/Avatar/src/AnonymousAvatar.temp.js +0 -60
- package/dist/ComboBox/src/ComboBoxOptions.css +0 -5453
- package/dist/ComboBox/src/ComboBoxOptions.d.ts +0 -51
- package/dist/ComboBox/src/ComboBoxOptions.js +0 -129
- 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 -129
- package/dist/Select/src/SelectOptionsContext.d.ts +0 -21
- package/dist/Select/src/SelectOptionsContext.js +0 -2
- package/dist/checkbox/src/CheckboxList.d.ts +0 -17
- package/dist/checkbox/src/CheckboxList.js +0 -3
- package/dist/checkbox/src/CheckboxListContext.d.ts +0 -10
- package/dist/checkbox/src/CheckboxListContext.js +0 -2
- package/dist/chunk-3LRBUQC2.js +0 -43
- package/dist/chunk-A7TZHALP.js +0 -7
- package/dist/chunk-BI5IK57A.js +0 -105
- package/dist/chunk-CQFXGAJK.js +0 -7
- package/dist/chunk-D7F5AAM5.js +0 -149
- package/dist/chunk-DTPOFTKE.js +0 -105
- package/dist/chunk-FAM5QSGP.js +0 -210
- package/dist/chunk-NKHMUPAP.js +0 -43
- package/dist/chunk-WDUQUPTE.js +0 -7
- package/dist/chunk-XGOJ7VOE.js +0 -7
- package/dist/radio/src/RadioList.d.ts +0 -17
- package/dist/radio/src/RadioList.js +0 -3
- package/dist/radio/src/RadioListContext.d.ts +0 -10
- package/dist/radio/src/RadioListContext.js +0 -2
|
@@ -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';
|
|
3
4
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
4
5
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
5
6
|
import { _Footer } from './chunk-GTM56LGX.js';
|
|
6
7
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
8
|
+
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
7
9
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
8
10
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
9
11
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
10
|
-
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
11
|
-
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.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
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
16
|
+
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
17
17
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
18
|
-
import {
|
|
18
|
+
import { _SelectValue } from './chunk-EXL4IHCP.js';
|
|
19
|
+
import { _ListBox } from './chunk-SEMHS2HM.js';
|
|
19
20
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
21
|
+
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
20
22
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
21
|
-
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
22
23
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
23
|
-
import {
|
|
24
|
-
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
25
|
-
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
26
|
-
import { EnsureTextWrapper } from './chunk-7UIRCOSZ.js';
|
|
24
|
+
import { EnsureTextWrapper } from './chunk-ZZPW6TQD.js';
|
|
27
25
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
26
|
+
import { _Label } from './chunk-X5UWK5RL.js';
|
|
28
27
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
28
|
+
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
29
|
+
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
30
|
+
import { _HelperMessage } from './chunk-D423VDJZ.js';
|
|
31
|
+
import { _ErrorMessage } from './chunk-OH47EJDL.js';
|
|
29
32
|
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
30
|
-
import { ComboBoxOptionsContext } from './chunk-XGOJ7VOE.js';
|
|
31
33
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
32
34
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
33
|
-
import { ClearProviders } from './chunk-HXI3MEEK.js';
|
|
34
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
35
|
+
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
35
36
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
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,
|
|
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, ComboBox as ComboBox$1, Group, Input, Button, Form as Form$1, Select as Select$1, Popover as Popover$1, Dialog, TextContext as TextContext$1, ButtonContext as ButtonContext$1 } 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___stBMp", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___UVruy", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___E7Bwd", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___xwMLR", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___ZF9mb", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___YS3X-", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___RKp7-", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___LvYrU", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___D9Xm1", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___8RpfS", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___MWgg6", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___GFMWn" };
|
|
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
169
|
TextContext$1,
|
|
80
170
|
TextContext,
|
|
81
|
-
ButtonContext
|
|
171
|
+
ButtonContext$1
|
|
82
172
|
],
|
|
83
173
|
children: /* @__PURE__ */ jsx(
|
|
84
174
|
SlotProvider,
|
|
85
175
|
{
|
|
86
176
|
values: [
|
|
87
|
-
[TextContext, {
|
|
177
|
+
[TextContext, {
|
|
178
|
+
size
|
|
179
|
+
}]
|
|
88
180
|
],
|
|
89
|
-
children: /* @__PURE__ */ jsx(_Footer, {
|
|
181
|
+
children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: 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, { 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: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: 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
|
+
errorMessage && /* @__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___7Ih3W" };
|
|
127
299
|
var GlobalFormCssSelector = "hop-Form";
|
|
128
300
|
function Form(props, ref) {
|
|
129
301
|
var _a;
|
|
@@ -208,7 +380,7 @@ function Form(props, ref) {
|
|
|
208
380
|
necessityIndicator,
|
|
209
381
|
size
|
|
210
382
|
}],
|
|
211
|
-
[ButtonContext
|
|
383
|
+
[ButtonContext, { isDisabled, size }]
|
|
212
384
|
],
|
|
213
385
|
children: /* @__PURE__ */ jsx(
|
|
214
386
|
SlotProvider,
|
|
@@ -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___CEupd", "hop-Select--fluid": "Select-module__hop-Select--fluid___2Ff4-", "hop-Select__label": "Select-module__hop-Select__label___45mIw", "hop-Select__button": "Select-module__hop-Select__button___OaOcH", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___d2JgJ", "hop-Select__button--md": "Select-module__hop-Select__button--md___9ff1l", "hop-Select__prefix": "Select-module__hop-Select__prefix___B-ImY", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___PNv2M", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___SPMRg", "hop-Select__error-message": "Select-module__hop-Select__error-message___FUnBp" };
|
|
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, { 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: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
|
|
510
|
+
}
|
|
511
|
+
) : null;
|
|
281
512
|
const footerMarkup = footer ? /* @__PURE__ */ jsx(
|
|
282
513
|
ClearProviders,
|
|
283
514
|
{
|
|
284
515
|
values: [
|
|
285
516
|
TextContext$1,
|
|
286
517
|
TextContext,
|
|
287
|
-
ButtonContext
|
|
518
|
+
ButtonContext$1
|
|
288
519
|
],
|
|
289
520
|
children: /* @__PURE__ */ jsx(
|
|
290
521
|
SlotProvider,
|
|
291
522
|
{
|
|
292
523
|
values: [
|
|
293
|
-
[TextContext, {
|
|
524
|
+
[TextContext, {
|
|
525
|
+
size
|
|
526
|
+
}]
|
|
294
527
|
],
|
|
295
|
-
children: /* @__PURE__ */ jsx(_Footer, {
|
|
528
|
+
children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: 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
|
+
errorMessage && /* @__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___LlJrz", "fade": "Popover-module__fade___wmmBQ", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___k-xc9", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___pCip4", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___fSFP5", "hop-Popover__title": "Popover-module__hop-Popover__title___i7L5z", "hop-Popover__content": "Popover-module__hop-Popover__content___LJVXi", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___9VWT7", "hop-Popover__footer": "Popover-module__hop-Popover__footer___9fxG6", "hop-Popover__actions": "Popover-module__hop-Popover__actions___o8Lav", "hop-Popover__action": "Popover-module__hop-Popover__action___ZXRJA" };
|
|
742
1019
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
743
1020
|
function Popover(props, ref) {
|
|
744
1021
|
var _a;
|
|
@@ -840,7 +1117,7 @@ function Popover(props, ref) {
|
|
|
840
1117
|
className: Popover_module_default["hop-Popover__title"],
|
|
841
1118
|
size: "xs"
|
|
842
1119
|
}],
|
|
843
|
-
[ButtonContext
|
|
1120
|
+
[ButtonContext, {
|
|
844
1121
|
size: "sm",
|
|
845
1122
|
className: Popover_module_default["hop-Popover__action"]
|
|
846
1123
|
}],
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
2
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-QLFK4TDW.js';
|
|
4
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
5
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
6
5
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
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';
|
|
10
10
|
import { useSlotId } from '@react-aria/utils';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
14
14
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./CheckboxField.module.css#css-module
|
|
17
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
17
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___1Tp3u", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___C1fj-", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___CgeGk", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___LSXL-", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___-jOgZ" };
|
|
18
18
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
19
19
|
var CheckboxToDescriptionSizeAdapter = {
|
|
20
20
|
sm: "xs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-UIVMBUPT.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { DeletedUserRichIcon } from '@hopper-ui/icons';
|