@hopper-ui/components 1.3.30 → 1.3.32
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 +12 -0
- package/dist/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +42 -42
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +37 -37
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +52 -52
- package/dist/Badge/src/index.js +3 -3
- package/dist/Card/src/Card.css +247 -0
- package/dist/Card/src/Card.d.ts +22 -0
- package/dist/Card/src/Card.js +7 -0
- package/dist/Card/src/CardContext.d.ts +10 -0
- package/dist/Card/src/CardContext.js +2 -0
- package/dist/Card/src/index.css +247 -0
- package/dist/Card/src/index.d.ts +7 -0
- package/dist/Card/src/index.js +7 -0
- package/dist/ComboBox/src/ComboBox.css +562 -2120
- package/dist/ComboBox/src/ComboBox.js +25 -96
- package/dist/ComboBox/src/index.css +562 -2120
- package/dist/ComboBox/src/index.js +25 -96
- 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 +1593 -1836
- package/dist/Form/src/Form.js +11 -102
- package/dist/Form/src/index.css +1593 -1836
- package/dist/Form/src/index.js +11 -102
- 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.js +14 -14
- package/dist/ListBox/src/ListBoxItem.css +262 -262
- package/dist/ListBox/src/ListBoxItem.js +13 -13
- 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 +14 -14
- package/dist/Select/src/Select.css +597 -2154
- package/dist/Select/src/Select.js +27 -96
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +6 -6
- package/dist/Select/src/index.css +566 -2123
- package/dist/Select/src/index.d.ts +1 -1
- package/dist/Select/src/index.js +27 -96
- 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 +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 +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 +9 -9
- package/dist/buttons/src/index.css +249 -249
- package/dist/buttons/src/index.js +17 -17
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +9 -9
- 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 +7 -7
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +9 -9
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +16 -16
- package/dist/{chunk-T62GNS7A.js → chunk-2PIWQBQ7.js} +2 -2
- package/dist/{chunk-QXOFUM6L.js → chunk-2ZAWI3VO.js} +1 -1
- package/dist/chunk-425TRLX5.js +71 -0
- package/dist/{chunk-44XBQWFL.js → chunk-4XMDZ5QF.js} +1 -1
- package/dist/{chunk-6RCOGX6X.js → chunk-52EKMM7G.js} +3 -3
- package/dist/{chunk-SJTPZSVU.js → chunk-5TE4QKZ2.js} +2 -2
- package/dist/{chunk-FWIQZGWG.js → chunk-5YGTZWHS.js} +1 -1
- package/dist/{chunk-ZZVFZ7I7.js → chunk-6XSOF5IT.js} +3 -3
- package/dist/{chunk-NPJBY3QK.js → chunk-77K422AK.js} +1 -1
- package/dist/{chunk-4YZZWHBM.js → chunk-7ITDXJPN.js} +6 -6
- package/dist/{chunk-WR3P4XWE.js → chunk-7OZNJCXL.js} +6 -6
- package/dist/chunk-7RTEFFZS.js +159 -0
- package/dist/{chunk-J2GXT52N.js → chunk-B2PZHGGT.js} +2 -2
- package/dist/{chunk-J4ZUH2ZP.js → chunk-BAX352BZ.js} +1 -1
- package/dist/{chunk-LFCEYG5R.js → chunk-F3GTLFKR.js} +1 -1
- package/dist/{chunk-2JMXBZHI.js → chunk-FXB7BBJB.js} +2 -2
- package/dist/{chunk-VLVEXVWZ.js → chunk-HPEGBHAQ.js} +1 -1
- package/dist/{chunk-CVMHGZQE.js → chunk-JHZLRSJY.js} +1 -1
- package/dist/{chunk-5MYQ7W33.js → chunk-JZV3EU5P.js} +5 -5
- package/dist/{chunk-UO5QJHXD.js → chunk-KXZYWFM3.js} +5 -5
- package/dist/{chunk-TMVKRT2P.js → chunk-MCSPPEQN.js} +1 -1
- package/dist/{chunk-VAKUV6QI.js → chunk-MMCWVCOD.js} +2 -2
- package/dist/{chunk-2MYELF25.js → chunk-MOIFFJJ3.js} +1 -1
- package/dist/{chunk-SFMVHFVH.js → chunk-MY7R6ZMF.js} +2 -2
- package/dist/{chunk-NE3BRLPL.js → chunk-N7ORIARY.js} +2 -2
- package/dist/{chunk-FVH4W7VW.js → chunk-OAUTLKSG.js} +7 -7
- package/dist/{chunk-47FKFZ4S.js → chunk-OEMWDVBB.js} +3 -3
- package/dist/{chunk-2SXSYPWT.js → chunk-OFYHUD3N.js} +2 -2
- package/dist/{chunk-WUZ4LSNY.js → chunk-PME32XAH.js} +6 -6
- package/dist/chunk-PR6Q2XJD.js +270 -0
- package/dist/{chunk-DZHNBZQQ.js → chunk-QDIICTRS.js} +2 -2
- package/dist/{chunk-CY7GW4SB.js → chunk-SMNKMZIC.js} +9 -9
- package/dist/{chunk-YWNQJ4FB.js → chunk-SWQEWYNM.js} +1 -1
- package/dist/{chunk-KUEXWJCI.js → chunk-U7NERCPG.js} +6 -6
- package/dist/{chunk-GRQTYLL6.js → chunk-UEZ6JMBX.js} +2 -2
- package/dist/{chunk-7Q6MXAW6.js → chunk-UJAYZEVR.js} +2 -2
- package/dist/{chunk-L5FDVVDI.js → chunk-UOVCHVGX.js} +4 -4
- package/dist/chunk-UYDOZLJW.js +153 -0
- package/dist/{chunk-HQPE2NHR.js → chunk-UYXVO6TB.js} +1 -1
- package/dist/chunk-V2EQFVTJ.js +7 -0
- package/dist/{chunk-LXWLN4DS.js → chunk-VYFGV7LF.js} +3 -3
- package/dist/{chunk-DOKGX5N4.js → chunk-VYNPGUH2.js} +1 -1
- package/dist/{chunk-5TIGRW6E.js → chunk-WJ6YDFFC.js} +1 -1
- package/dist/{chunk-3SNUQFBZ.js → chunk-WXP3P4KY.js} +3 -3
- package/dist/{chunk-4I7NFPPR.js → chunk-X5SCISRD.js} +2 -2
- package/dist/{chunk-6S4ZOYNF.js → chunk-XDJMIWOT.js} +4 -4
- package/dist/{chunk-MBX35AGZ.js → chunk-XTY7LASB.js} +3 -3
- package/dist/{chunk-S5NKOTEO.js → chunk-Y75VH6OP.js} +1 -1
- package/dist/chunk-YTKE4ERV.js +205 -0
- package/dist/{chunk-PHGFB7Z7.js → chunk-ZTS67CFU.js} +23 -14
- package/dist/{chunk-64EU3M5O.js → chunk-ZUL2DWRU.js} +2 -2
- package/dist/index.css +1022 -996
- package/dist/index.d.ts +4 -2
- package/dist/index.js +88 -80
- 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 +12 -12
- package/dist/inputs/src/PasswordField.css +274 -274
- package/dist/inputs/src/PasswordField.js +12 -12
- 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 +13 -13
- package/dist/inputs/src/TextArea.css +281 -281
- package/dist/inputs/src/TextArea.js +12 -12
- package/dist/inputs/src/TextField.css +278 -278
- package/dist/inputs/src/TextField.js +15 -15
- package/dist/inputs/src/index.css +324 -324
- package/dist/inputs/src/index.js +24 -24
- package/dist/overlays/Popover/src/Popover.css +2150 -3870
- package/dist/overlays/Popover/src/Popover.d.ts +1 -1
- package/dist/overlays/Popover/src/Popover.js +11 -106
- package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -1
- package/dist/overlays/Popover/src/index.css +2150 -3870
- package/dist/overlays/Popover/src/index.d.ts +1 -1
- package/dist/overlays/Popover/src/index.js +12 -106
- package/dist/radio/src/DecorativeRadio.css +54 -54
- 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 +2 -2
- package/dist/radio/src/RadioGroup.css +98 -98
- package/dist/radio/src/RadioGroup.js +6 -6
- package/dist/radio/src/index.css +98 -98
- 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.d.ts +8 -3
- package/dist/switch/src/SwitchField.js +4 -2
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +10 -10
- 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 +3 -3
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +400 -400
- package/dist/tag/src/index.js +15 -15
- package/dist/typography/Heading/src/Heading.css +27 -27
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +27 -27
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +27 -27
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +27 -27
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +27 -27
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +27 -27
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +27 -27
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +27 -27
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +27 -27
- package/dist/utils/src/EnsureTextWrapper.js +6 -6
- package/dist/utils/src/index.css +27 -27
- package/dist/utils/src/index.js +7 -7
- package/package.json +2 -1
- package/dist/chunk-UCAG6OQL.js +0 -1155
- /package/dist/{chunk-LJXTJRSB.js → chunk-DBIN32YS.js} +0 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
2
|
+
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
3
|
+
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
4
|
+
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
5
|
+
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
6
|
+
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
7
|
+
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
8
|
+
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
9
|
+
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
10
|
+
import { SelectContext } from './chunk-T24MBA34.js';
|
|
11
|
+
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
12
|
+
import { LinkButtonContext } from './chunk-3UQFC2NQ.js';
|
|
13
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
14
|
+
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
15
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
16
|
+
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
17
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
18
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
19
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
20
|
+
import clsx from 'clsx';
|
|
21
|
+
import { forwardRef } from 'react';
|
|
22
|
+
import { useContextProps, Form as Form$1 } from 'react-aria-components';
|
|
23
|
+
import { jsx } from 'react/jsx-runtime';
|
|
24
|
+
|
|
25
|
+
// css-module:./Form.module.css#css-module
|
|
26
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___mabUT" };
|
|
27
|
+
var GlobalFormCssSelector = "hop-Form";
|
|
28
|
+
function Form(props, ref) {
|
|
29
|
+
var _a;
|
|
30
|
+
[props, ref] = useContextProps(props, ref, FormContext);
|
|
31
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
32
|
+
const {
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
style,
|
|
36
|
+
isFluid,
|
|
37
|
+
isDisabled,
|
|
38
|
+
necessityIndicator,
|
|
39
|
+
size: sizeProp,
|
|
40
|
+
...otherProps
|
|
41
|
+
} = ownProps;
|
|
42
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
43
|
+
const classNames = clsx(
|
|
44
|
+
GlobalFormCssSelector,
|
|
45
|
+
cssModule(
|
|
46
|
+
Form_module_default,
|
|
47
|
+
"hop-Form"
|
|
48
|
+
),
|
|
49
|
+
stylingProps.className,
|
|
50
|
+
className
|
|
51
|
+
);
|
|
52
|
+
const mergedStyles = {
|
|
53
|
+
...stylingProps.style,
|
|
54
|
+
...style
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
SlotProvider,
|
|
58
|
+
{
|
|
59
|
+
values: [
|
|
60
|
+
[LabelContext, {
|
|
61
|
+
necessityIndicator
|
|
62
|
+
}],
|
|
63
|
+
[TextFieldContext, {
|
|
64
|
+
isDisabled,
|
|
65
|
+
isFluid,
|
|
66
|
+
necessityIndicator,
|
|
67
|
+
size
|
|
68
|
+
}],
|
|
69
|
+
[PasswordFieldContext, {
|
|
70
|
+
isDisabled,
|
|
71
|
+
isFluid,
|
|
72
|
+
necessityIndicator,
|
|
73
|
+
size
|
|
74
|
+
}],
|
|
75
|
+
[SearchFieldContext, {
|
|
76
|
+
isDisabled,
|
|
77
|
+
isFluid,
|
|
78
|
+
necessityIndicator,
|
|
79
|
+
size
|
|
80
|
+
}],
|
|
81
|
+
[NumberFieldContext, {
|
|
82
|
+
isDisabled,
|
|
83
|
+
necessityIndicator,
|
|
84
|
+
size,
|
|
85
|
+
isFluid
|
|
86
|
+
}],
|
|
87
|
+
[TextAreaContext, {
|
|
88
|
+
isDisabled,
|
|
89
|
+
necessityIndicator,
|
|
90
|
+
size,
|
|
91
|
+
isFluid
|
|
92
|
+
}],
|
|
93
|
+
[RadioGroupContext, {
|
|
94
|
+
isDisabled,
|
|
95
|
+
necessityIndicator,
|
|
96
|
+
size
|
|
97
|
+
}],
|
|
98
|
+
[CheckboxContext, {
|
|
99
|
+
isDisabled,
|
|
100
|
+
size
|
|
101
|
+
}],
|
|
102
|
+
[CheckboxFieldContext, {
|
|
103
|
+
isDisabled,
|
|
104
|
+
size
|
|
105
|
+
}],
|
|
106
|
+
[CheckboxGroupContext, {
|
|
107
|
+
isDisabled,
|
|
108
|
+
necessityIndicator,
|
|
109
|
+
size
|
|
110
|
+
}],
|
|
111
|
+
[ButtonContext, { isDisabled, size }]
|
|
112
|
+
],
|
|
113
|
+
children: /* @__PURE__ */ jsx(
|
|
114
|
+
SlotProvider,
|
|
115
|
+
{
|
|
116
|
+
values: [
|
|
117
|
+
[SelectContext, {
|
|
118
|
+
isDisabled,
|
|
119
|
+
isFluid,
|
|
120
|
+
necessityIndicator,
|
|
121
|
+
size
|
|
122
|
+
}],
|
|
123
|
+
[ComboBoxContext, {
|
|
124
|
+
isDisabled,
|
|
125
|
+
isFluid,
|
|
126
|
+
necessityIndicator,
|
|
127
|
+
size
|
|
128
|
+
}],
|
|
129
|
+
[TagGroupContext, {
|
|
130
|
+
necessityIndicator,
|
|
131
|
+
size
|
|
132
|
+
}],
|
|
133
|
+
[LinkButtonContext, { isDisabled, size }]
|
|
134
|
+
],
|
|
135
|
+
children: /* @__PURE__ */ jsx(
|
|
136
|
+
Form$1,
|
|
137
|
+
{
|
|
138
|
+
ref,
|
|
139
|
+
className: classNames,
|
|
140
|
+
style: mergedStyles,
|
|
141
|
+
...otherProps,
|
|
142
|
+
children
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
var _Form = forwardRef(Form);
|
|
151
|
+
_Form.displayName = "Form";
|
|
152
|
+
|
|
153
|
+
export { GlobalFormCssSelector, _Form };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ensureTextWrapper } from './chunk-HQPE2NHR.js';
|
|
1
|
+
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
3
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
+
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Checkbox.module.css#css-module
|
|
16
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
16
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___Z-y0e", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___5J3HW", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___PZTMw", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___MY2sJ", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___jHQMo", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___nMgAo", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___4g1qS", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___QBE-c" };
|
|
17
17
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
18
18
|
function Checkbox(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-Y75VH6OP.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___nROIw", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___EbN08", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___-BDiH", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___mvEwS", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___mRknk", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___XvvDy" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
2
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
3
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { _ListBoxItem } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-JZV3EU5P.js';
|
|
5
5
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
7
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
8
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-2ZAWI3VO.js';
|
|
9
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
11
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./ListBox.module.css#css-module
|
|
20
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
20
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___o3TiT", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___9Jmrx", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___8-sHc", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___Y8r2l", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___qQVx7" };
|
|
21
21
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
22
22
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
23
23
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-2ZAWI3VO.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { InfoIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, FieldErrorContext } from 'react-aria-components';
|
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./HelperMessage.module.css#css-module
|
|
12
|
-
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-
|
|
12
|
+
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-HelperMessage___wwxDN", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___8k1Gi" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
+
import { _Spinner } from './chunk-FXB7BBJB.js';
|
|
3
|
+
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
4
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
2
5
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
-
import { _Spinner } from './chunk-2JMXBZHI.js';
|
|
4
|
-
import { ensureTextWrapper } from './chunk-HQPE2NHR.js';
|
|
5
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
7
7
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
8
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -16,7 +16,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Button as Button$1 }
|
|
|
16
16
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
// css-module:./Button.module.css#css-module
|
|
19
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
19
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___g0bsX", "hop-Button--fluid": "Button-module__hop-Button--fluid___U1pC7", "hop-Button--sm": "Button-module__hop-Button--sm___JkRfc", "hop-Button--md": "Button-module__hop-Button--md___UW7nU", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___9-rM-", "hop-Button--primary": "Button-module__hop-Button--primary___3Jpwh", "hop-Button--secondary": "Button-module__hop-Button--secondary___NU-Ve", "hop-Button--upsell": "Button-module__hop-Button--upsell___Zjxjx", "hop-Button--danger": "Button-module__hop-Button--danger___MoOv-", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___WC15g", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___kxQsj", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___kblVO", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___3NSsM", "hop-Button__icon": "Button-module__hop-Button__icon___znSPX", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___ufYMi", "hop-Button__text": "Button-module__hop-Button__text___ud1xn", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___05XHV", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___t5TiC" };
|
|
20
20
|
var GlobalButtonCssSelector = "hop-Button";
|
|
21
21
|
function Button(props, ref) {
|
|
22
22
|
var _a, _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-2ZAWI3VO.js';
|
|
2
2
|
import { useImageFallback } from './chunk-LI5HSYF7.js';
|
|
3
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-SWQEWYNM.js';
|
|
5
5
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Avatar.module.css#css-module
|
|
16
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___NRR7e", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___Lc954", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___xKab-", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___wzlmP", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___0tPMw", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___oDIyV", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___fReCL", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___M3KiH", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___xfUDh", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___ON6nk", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___tUQ0G", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___o6YrF", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___XGGWz", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___amRxm", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___zAr7I", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___IB7B3", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___3NxIP" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -20,7 +20,7 @@ function mapOrbiterToHopperVariants(variant) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
23
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
23
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___xmpEU", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___8D9OF", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___Fonmy", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___b6ANF", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___I4m06", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___HwECy", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___MxglL", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___kztV4", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___09JwR", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___Wpfvw", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___Sf66e", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___6LcW4", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___us6jw", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___AMUi6", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___9z2Y0", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___zDq1L" };
|
|
24
24
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
25
25
|
function EmbeddedButton(props, ref) {
|
|
26
26
|
var _a;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { _SelectValue } from './chunk-2PIWQBQ7.js';
|
|
2
|
+
import { SelectContext } from './chunk-T24MBA34.js';
|
|
3
|
+
import { _Popover } from './chunk-7RTEFFZS.js';
|
|
4
|
+
import { _Footer } from './chunk-VOZN65OL.js';
|
|
5
|
+
import { _ListBox } from './chunk-WXP3P4KY.js';
|
|
6
|
+
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
7
|
+
import { _HelperMessage } from './chunk-X5SCISRD.js';
|
|
8
|
+
import { _Label } from './chunk-BAX352BZ.js';
|
|
9
|
+
import { _ErrorMessage } from './chunk-N7ORIARY.js';
|
|
10
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
11
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
|
+
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
13
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
14
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
15
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
16
|
+
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
17
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
18
|
+
import { forwardRef } from 'react';
|
|
19
|
+
import { useContextProps, composeRenderProps, TextContext as TextContext$1, ButtonContext, Select as Select$1, Button } from 'react-aria-components';
|
|
20
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
|
+
|
|
22
|
+
// css-module:./Select.module.css#css-module
|
|
23
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___y2Mwz", "hop-Select--fluid": "Select-module__hop-Select--fluid___1-5pH", "hop-Select__label": "Select-module__hop-Select__label___p5cFG", "hop-Select__button": "Select-module__hop-Select__button___XDgRJ", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___UiljJ", "hop-Select__button--md": "Select-module__hop-Select__button--md___G0D4n", "hop-Select__prefix": "Select-module__hop-Select__prefix___swd37", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___Sq6Dh", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___UjIEu", "hop-Select__error-message": "Select-module__hop-Select__error-message___Ne-km" };
|
|
24
|
+
var GlobalSelectCssSelector = "hop-Select";
|
|
25
|
+
function Select(props, ref) {
|
|
26
|
+
var _a, _b, _c, _d;
|
|
27
|
+
[props, ref] = useContextProps(props, ref, SelectContext);
|
|
28
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
29
|
+
const {
|
|
30
|
+
align: alignProp,
|
|
31
|
+
className,
|
|
32
|
+
children,
|
|
33
|
+
description,
|
|
34
|
+
direction: directionProp,
|
|
35
|
+
errorMessage,
|
|
36
|
+
footer,
|
|
37
|
+
isAutoMenuWidth,
|
|
38
|
+
isFluid: isFluidProp,
|
|
39
|
+
isInvalid,
|
|
40
|
+
isLoading,
|
|
41
|
+
isRequired,
|
|
42
|
+
items,
|
|
43
|
+
label,
|
|
44
|
+
listBoxProps,
|
|
45
|
+
necessityIndicator,
|
|
46
|
+
onLoadMore,
|
|
47
|
+
popoverProps,
|
|
48
|
+
prefix,
|
|
49
|
+
renderValue,
|
|
50
|
+
selectionIndicator,
|
|
51
|
+
shouldFlip,
|
|
52
|
+
size: sizeProp,
|
|
53
|
+
style: styleProp,
|
|
54
|
+
triggerProps,
|
|
55
|
+
...otherProps
|
|
56
|
+
} = ownProps;
|
|
57
|
+
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
58
|
+
const {
|
|
59
|
+
className: triggerClassName,
|
|
60
|
+
style: triggerStyleProp,
|
|
61
|
+
...otherTriggerProps
|
|
62
|
+
} = triggerOwnProps;
|
|
63
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
64
|
+
const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
|
|
65
|
+
const align = (_c = useResponsiveValue(alignProp)) != null ? _c : "start";
|
|
66
|
+
const direction = (_d = useResponsiveValue(directionProp)) != null ? _d : "bottom";
|
|
67
|
+
const classNames = composeClassnameRenderProps(
|
|
68
|
+
className,
|
|
69
|
+
GlobalSelectCssSelector,
|
|
70
|
+
cssModule(
|
|
71
|
+
Select_module_default,
|
|
72
|
+
"hop-Select",
|
|
73
|
+
isFluid && "fluid",
|
|
74
|
+
size
|
|
75
|
+
),
|
|
76
|
+
stylingProps.className
|
|
77
|
+
);
|
|
78
|
+
const buttonClassNames = composeClassnameRenderProps(
|
|
79
|
+
triggerClassName,
|
|
80
|
+
cssModule(
|
|
81
|
+
Select_module_default,
|
|
82
|
+
"hop-Select__button",
|
|
83
|
+
size
|
|
84
|
+
),
|
|
85
|
+
triggerStylingProps.className
|
|
86
|
+
);
|
|
87
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
88
|
+
return {
|
|
89
|
+
...stylingProps.style,
|
|
90
|
+
...prev
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
94
|
+
return {
|
|
95
|
+
...triggerStylingProps.style,
|
|
96
|
+
...prev
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
100
|
+
SlotProvider,
|
|
101
|
+
{
|
|
102
|
+
values: [
|
|
103
|
+
[TextContext, { size, className: Select_module_default["hop-Select__prefix"] }],
|
|
104
|
+
[IconContext, { size, className: Select_module_default["hop-Select__prefix"] }]
|
|
105
|
+
],
|
|
106
|
+
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: ensureTextWrapper(prefix) })
|
|
107
|
+
}
|
|
108
|
+
) : null;
|
|
109
|
+
const footerMarkup = footer ? /* @__PURE__ */ jsx(
|
|
110
|
+
ClearProviders,
|
|
111
|
+
{
|
|
112
|
+
values: [
|
|
113
|
+
TextContext$1,
|
|
114
|
+
TextContext,
|
|
115
|
+
ButtonContext
|
|
116
|
+
],
|
|
117
|
+
children: /* @__PURE__ */ jsx(
|
|
118
|
+
SlotProvider,
|
|
119
|
+
{
|
|
120
|
+
values: [
|
|
121
|
+
[TextContext, {
|
|
122
|
+
size
|
|
123
|
+
}]
|
|
124
|
+
],
|
|
125
|
+
children: /* @__PURE__ */ jsx(_Footer, { children: ensureTextWrapper(footer) })
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
) : null;
|
|
130
|
+
return /* @__PURE__ */ jsx(
|
|
131
|
+
Select$1,
|
|
132
|
+
{
|
|
133
|
+
ref,
|
|
134
|
+
className: classNames,
|
|
135
|
+
style,
|
|
136
|
+
isInvalid,
|
|
137
|
+
isRequired,
|
|
138
|
+
...otherProps,
|
|
139
|
+
children: (selectRenderProps) => {
|
|
140
|
+
const { isOpen } = selectRenderProps;
|
|
141
|
+
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
142
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
143
|
+
label && /* @__PURE__ */ jsx(
|
|
144
|
+
_Label,
|
|
145
|
+
{
|
|
146
|
+
className: Select_module_default["hop-Select__label"],
|
|
147
|
+
isRequired,
|
|
148
|
+
necessityIndicator,
|
|
149
|
+
children: label
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ jsxs(
|
|
153
|
+
_Popover,
|
|
154
|
+
{
|
|
155
|
+
isAutoWidth: isAutoMenuWidth,
|
|
156
|
+
isNonDialog: true,
|
|
157
|
+
placement: `${direction} ${align}`,
|
|
158
|
+
shouldFlip,
|
|
159
|
+
...popoverProps,
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ jsx(
|
|
162
|
+
SlotProvider,
|
|
163
|
+
{
|
|
164
|
+
values: [
|
|
165
|
+
[BadgeContext, {
|
|
166
|
+
variant: "secondary"
|
|
167
|
+
}]
|
|
168
|
+
],
|
|
169
|
+
children: /* @__PURE__ */ jsx(
|
|
170
|
+
_ListBox,
|
|
171
|
+
{
|
|
172
|
+
size,
|
|
173
|
+
isInvalid,
|
|
174
|
+
items,
|
|
175
|
+
isLoading,
|
|
176
|
+
onLoadMore,
|
|
177
|
+
selectionIndicator,
|
|
178
|
+
...listBoxProps,
|
|
179
|
+
children
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
footerMarkup
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
/* @__PURE__ */ jsxs(Button, { className: buttonClassNames, style: triggerStyle, "data-invalid": isInvalid || void 0, ...otherTriggerProps, children: [
|
|
189
|
+
prefixMarkup,
|
|
190
|
+
/* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
|
|
191
|
+
return renderValue == null ? void 0 : renderValue(valueRenderProps);
|
|
192
|
+
} }),
|
|
193
|
+
/* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: Select_module_default["hop-Select__button-icon"] })
|
|
194
|
+
] }),
|
|
195
|
+
description && /* @__PURE__ */ jsx(_HelperMessage, { className: Select_module_default["hop-Select__helper-message"], children: description }),
|
|
196
|
+
/* @__PURE__ */ jsx(_ErrorMessage, { className: Select_module_default["hop-Select__error-message"], children: errorMessage })
|
|
197
|
+
] });
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
var _Select = forwardRef(Select);
|
|
203
|
+
_Select.displayName = "Select";
|
|
204
|
+
|
|
205
|
+
export { GlobalSelectCssSelector, _Select };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
2
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
3
|
-
import {
|
|
2
|
+
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
3
|
+
import { _Text } from './chunk-2ZAWI3VO.js';
|
|
4
4
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
8
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
9
|
+
import { useSlotId } from '@react-aria/utils';
|
|
9
10
|
import { forwardRef } from 'react';
|
|
10
|
-
import {
|
|
11
|
+
import { mergeProps } from 'react-aria';
|
|
11
12
|
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
12
|
-
import { jsx } from 'react/jsx-runtime';
|
|
13
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
14
|
|
|
14
15
|
// css-module:./SwitchField.module.css#css-module
|
|
15
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
16
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___RhshR", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___5jzM3", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___KCmFX", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___78I5-", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___NRAtt" };
|
|
16
17
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
17
18
|
var SwitchToDescriptionSizeAdapter = {
|
|
18
19
|
sm: "xs",
|
|
@@ -24,14 +25,15 @@ function SwitchField(props, ref) {
|
|
|
24
25
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
25
26
|
const {
|
|
26
27
|
className,
|
|
27
|
-
|
|
28
|
+
description,
|
|
28
29
|
isDisabled,
|
|
29
30
|
size: sizeProp = "md",
|
|
30
31
|
slot,
|
|
32
|
+
style,
|
|
31
33
|
...otherProps
|
|
32
34
|
} = ownProps;
|
|
33
35
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
34
|
-
const descriptionId =
|
|
36
|
+
const descriptionId = useSlotId([Boolean(description)]);
|
|
35
37
|
const classNames = composeClassnameRenderProps(
|
|
36
38
|
className,
|
|
37
39
|
GlobalSwitchFieldCssSelector,
|
|
@@ -60,11 +62,6 @@ function SwitchField(props, ref) {
|
|
|
60
62
|
SlotProvider,
|
|
61
63
|
{
|
|
62
64
|
values: [
|
|
63
|
-
[TextContext, {
|
|
64
|
-
id: descriptionId,
|
|
65
|
-
className: SwitchField_module_default["hop-SwitchField__description"],
|
|
66
|
-
size: SwitchToDescriptionSizeAdapter[size]
|
|
67
|
-
}],
|
|
68
65
|
[SwitchContext, {
|
|
69
66
|
className: SwitchField_module_default["hop-SwitchField__switch"],
|
|
70
67
|
size,
|
|
@@ -72,14 +69,26 @@ function SwitchField(props, ref) {
|
|
|
72
69
|
"aria-describedby": descriptionId
|
|
73
70
|
}]
|
|
74
71
|
],
|
|
75
|
-
children: /* @__PURE__ */
|
|
72
|
+
children: /* @__PURE__ */ jsxs(
|
|
76
73
|
"div",
|
|
77
74
|
{
|
|
78
75
|
ref,
|
|
79
76
|
slot: slot != null ? slot : void 0,
|
|
80
77
|
"data-disabled": isDisabled,
|
|
81
78
|
...mergeProps(renderProps, otherProps),
|
|
82
|
-
children:
|
|
79
|
+
children: [
|
|
80
|
+
renderProps.children,
|
|
81
|
+
description && /* @__PURE__ */ jsx(
|
|
82
|
+
_Text,
|
|
83
|
+
{
|
|
84
|
+
id: descriptionId,
|
|
85
|
+
className: SwitchField_module_default["hop-SwitchField__description"],
|
|
86
|
+
size: SwitchToDescriptionSizeAdapter[size],
|
|
87
|
+
slot: "description",
|
|
88
|
+
children: description
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
]
|
|
83
92
|
}
|
|
84
93
|
)
|
|
85
94
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
|
-
import { ensureTextWrapper } from './chunk-
|
|
2
|
+
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Radio.module.css#css-module
|
|
16
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
16
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___dqo1a", "hop-Radio--sm": "Radio-module__hop-Radio--sm___kXHtb", "hop-Radio--md": "Radio-module__hop-Radio--md___9-Uza", "hop-Radio__icon": "Radio-module__hop-Radio__icon___-IP5F", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___dGgr0", "hop-Radio__box": "Radio-module__hop-Radio__box___13G2q", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___G4ui2", "hop-Radio__text": "Radio-module__hop-Radio__text___h2OQE" };
|
|
17
17
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
18
18
|
function Radio(props, ref) {
|
|
19
19
|
var _a;
|