@hopper-ui/components 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +10 -10
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/index.css +10 -10
- package/dist/Badge/src/index.js +2 -2
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +862 -605
- package/dist/Form/src/Form.js +66 -64
- package/dist/Form/src/index.css +862 -605
- package/dist/Form/src/index.js +66 -64
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +2 -2
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +2 -2
- package/dist/ListBox/src/ListBox.css +226 -198
- package/dist/ListBox/src/ListBox.js +11 -12
- package/dist/ListBox/src/ListBoxItem.css +208 -182
- package/dist/ListBox/src/ListBoxItem.js +10 -10
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +226 -198
- package/dist/ListBox/src/index.js +11 -12
- package/dist/Select/src/Select.css +4368 -0
- package/dist/Select/src/Select.d.ts +93 -0
- package/dist/Select/src/Select.js +116 -0
- package/dist/Select/src/SelectContext.d.ts +16 -0
- package/dist/Select/src/SelectContext.js +2 -0
- package/dist/Select/src/SelectValue.css +443 -0
- package/dist/Select/src/SelectValue.d.ts +31 -0
- package/dist/Select/src/SelectValue.js +19 -0
- package/dist/Select/src/index.css +4368 -0
- package/dist/Select/src/index.d.ts +13 -0
- package/dist/Select/src/index.js +116 -0
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +5 -5
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +70 -70
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +70 -70
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +175 -175
- package/dist/buttons/src/index.js +10 -10
- package/dist/checkbox/src/Checkbox.css +31 -31
- package/dist/checkbox/src/Checkbox.js +2 -2
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +60 -60
- package/dist/checkbox/src/CheckboxGroup.js +3 -3
- package/dist/checkbox/src/index.css +60 -60
- package/dist/checkbox/src/index.js +6 -6
- package/dist/{chunk-AGRQ7UGN.js → chunk-3573Q6QG.js} +2 -2
- package/dist/{chunk-C7XRB2J6.js → chunk-3ZRCYKIV.js} +2 -2
- package/dist/{chunk-J7BXE7WN.js → chunk-4RMADICI.js} +4 -4
- package/dist/{chunk-4H7PKEMJ.js → chunk-6C5RI4RT.js} +9 -11
- package/dist/{chunk-TM4R5NO7.js → chunk-6H5DRQZH.js} +2 -2
- package/dist/{chunk-4APVXEPA.js → chunk-7L5MCX2A.js} +2 -2
- package/dist/{chunk-SPFANCCV.js → chunk-AZJME7JV.js} +3 -3
- package/dist/{chunk-F47GZGT7.js → chunk-BODCT27J.js} +1 -1
- package/dist/{chunk-CXWMHWSS.js → chunk-BQITTESM.js} +1 -1
- package/dist/{chunk-BN32T6QQ.js → chunk-BRU54ERL.js} +2 -2
- package/dist/{chunk-WYBQCRQB.js → chunk-BTHPJL3A.js} +2 -2
- package/dist/{chunk-MX5BW5VE.js → chunk-C72PRNOP.js} +1 -1
- package/dist/{chunk-55AWCUQF.js → chunk-CAHZCRTK.js} +1 -1
- package/dist/{chunk-RLDQEH6F.js → chunk-CU36N5JQ.js} +4 -4
- package/dist/{chunk-VQC5F6I7.js → chunk-CWX45XWS.js} +3 -3
- package/dist/{chunk-K7DU4YR4.js → chunk-D5PBETXF.js} +1 -1
- package/dist/{chunk-DZKJZSTQ.js → chunk-D7DIUGRI.js} +1 -1
- package/dist/{chunk-YWIDJ55Q.js → chunk-DFVORYEU.js} +2 -2
- package/dist/{chunk-IUFABTFZ.js → chunk-DLZGJBL7.js} +1 -1
- package/dist/{chunk-6WKRP4MN.js → chunk-DXEWBV4C.js} +2 -2
- package/dist/chunk-EHXOXTDN.js +29 -0
- package/dist/{chunk-J6YYPRGY.js → chunk-FOXOPL2E.js} +5 -5
- package/dist/{chunk-XI3BX2TP.js → chunk-GRJ3VKHY.js} +5 -5
- package/dist/{chunk-XUCH26RT.js → chunk-HIDHDS2L.js} +2 -2
- package/dist/{chunk-CSE22YXO.js → chunk-JIRLWUDP.js} +3 -3
- package/dist/{chunk-THUFFPGX.js → chunk-JQMXGSAE.js} +1 -1
- package/dist/{chunk-QGC3OX7W.js → chunk-LFN43ROH.js} +2 -2
- package/dist/{chunk-ZEXXNE5U.js → chunk-LYPR2YMY.js} +5 -5
- package/dist/{chunk-RYZNMKWB.js → chunk-O2ZMTKCT.js} +1 -1
- package/dist/{chunk-T7QJEHL7.js → chunk-OLS7K6PO.js} +2 -2
- package/dist/{chunk-LXCCS4SA.js → chunk-QQI3KNHZ.js} +6 -7
- package/dist/{chunk-PUNJWQAN.js → chunk-SCXYAGZI.js} +271 -46
- package/dist/{chunk-462UBJV3.js → chunk-SKEMSZ63.js} +2 -2
- package/dist/{chunk-F4KQUFXI.js → chunk-SSDFINDD.js} +2 -2
- package/dist/chunk-T24MBA34.js +7 -0
- package/dist/{chunk-YXD3IR3T.js → chunk-T37HTUEU.js} +1 -1
- package/dist/{chunk-WQSVNGFJ.js → chunk-T3CLGQI6.js} +1 -1
- package/dist/{chunk-2DPE3H3G.js → chunk-T742LIIS.js} +1 -1
- package/dist/{chunk-F4H76S4H.js → chunk-TFVDF4YH.js} +4 -2
- package/dist/{chunk-MFFXNI66.js → chunk-TOWSC7FO.js} +4 -4
- package/dist/{chunk-ZPPQJKHC.js → chunk-TTY5HDLL.js} +2 -2
- package/dist/chunk-YB7IYQW4.js +118 -0
- package/dist/{chunk-TFELIWJO.js → chunk-ZHOQYYHY.js} +1 -1
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +862 -605
- package/dist/index.d.ts +6 -2
- package/dist/index.js +66 -64
- package/dist/inputs/src/InputGroup.css +14 -16
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +64 -65
- package/dist/inputs/src/NumberField.js +8 -8
- package/dist/inputs/src/PasswordField.css +218 -219
- package/dist/inputs/src/PasswordField.js +10 -10
- package/dist/inputs/src/SearchField.css +224 -225
- package/dist/inputs/src/SearchField.js +12 -12
- package/dist/inputs/src/TextArea.css +58 -59
- package/dist/inputs/src/TextArea.js +9 -9
- package/dist/inputs/src/TextField.css +219 -220
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +271 -268
- package/dist/inputs/src/index.js +18 -18
- package/dist/overlays/Popover/src/Popover.css +862 -605
- package/dist/overlays/Popover/src/Popover.d.ts +26 -3
- package/dist/overlays/Popover/src/Popover.js +66 -64
- package/dist/overlays/Popover/src/PopoverContext.d.ts +3 -0
- package/dist/overlays/Popover/src/index.css +862 -605
- package/dist/overlays/Popover/src/index.d.ts +4 -1
- package/dist/overlays/Popover/src/index.js +66 -64
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +2 -2
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +60 -60
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +60 -60
- package/dist/radio/src/index.js +6 -6
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +2 -2
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +4 -4
- package/dist/tag/src/Tag.css +301 -301
- package/dist/tag/src/Tag.js +6 -6
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +2 -2
- package/dist/tag/src/index.css +314 -314
- package/dist/tag/src/index.js +9 -9
- package/dist/typography/Heading/src/Heading.css +9 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +3 -3
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.d.ts +1 -0
- package/dist/utils/src/index.js +3 -2
- package/dist/utils/src/useIsOverflow.d.ts +5 -0
- package/dist/utils/src/useIsOverflow.js +2 -0
- package/package.json +6 -6
- package/dist/ListBox/src/useLoadOnScroll.d.ts +0 -16
- package/dist/ListBox/src/useLoadOnScroll.js +0 -2
- package/dist/chunk-JTNMFPM4.js +0 -41
|
@@ -1,55 +1,99 @@
|
|
|
1
1
|
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
|
-
import {
|
|
2
|
+
import { _Footer } from './chunk-AQITZWYM.js';
|
|
3
3
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
4
|
-
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
5
|
-
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
6
4
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
7
5
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
6
|
+
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
8
7
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
9
|
+
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
11
10
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
11
|
+
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
12
12
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
13
13
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
14
|
+
import { SelectContext } from './chunk-T24MBA34.js';
|
|
15
|
+
import { _SelectValue } from './chunk-YB7IYQW4.js';
|
|
16
|
+
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
14
17
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
18
|
+
import { _ListBox } from './chunk-QQI3KNHZ.js';
|
|
15
19
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
20
|
+
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
21
|
+
import { _ListBoxItem } from './chunk-6C5RI4RT.js';
|
|
16
22
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
17
23
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
24
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
25
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
18
26
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
27
|
+
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
19
28
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
20
29
|
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
30
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
31
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
32
|
+
import { _Text } from './chunk-D5PBETXF.js';
|
|
33
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
34
|
+
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
21
35
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
22
36
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
23
|
-
import { useStyledSystem,
|
|
37
|
+
import { useStyledSystem, useResponsiveValue, useColorSchemeContext } from '@hopper-ui/styled-system';
|
|
24
38
|
export * from '@hopper-ui/styled-system';
|
|
25
39
|
import clsx from 'clsx';
|
|
26
40
|
import { forwardRef, useReducer, useRef, useEffect } from 'react';
|
|
27
|
-
import { useContextProps, Popover as Popover$1, Dialog, Form as Form$1 } from 'react-aria-components';
|
|
41
|
+
import { useContextProps, composeRenderProps, Popover as Popover$1, Dialog, Select as Select$1, Button, TextContext as TextContext$1, ButtonContext as ButtonContext$1, Form as Form$1 } from 'react-aria-components';
|
|
28
42
|
export { Collection } from 'react-aria-components';
|
|
29
|
-
import { jsx } from 'react/jsx-runtime';
|
|
43
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
44
|
+
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
30
45
|
|
|
31
46
|
// css-module:./Popover.module.css#css-module
|
|
32
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
47
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___VDTYB", "fade": "Popover-module__fade___uwIjr", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___rBazX", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___6ncUU", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___kjrcJ", "hop-Popover__title": "Popover-module__hop-Popover__title___qZBhF", "hop-Popover__content": "Popover-module__hop-Popover__content___e35rK", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___uD0ue", "hop-Popover__footer": "Popover-module__hop-Popover__footer___OyNk-", "hop-Popover__actions": "Popover-module__hop-Popover__actions___l8RIe", "hop-Popover__action": "Popover-module__hop-Popover__action___xdB8e" };
|
|
33
48
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
34
49
|
function Popover(props, ref) {
|
|
50
|
+
var _a;
|
|
35
51
|
[props, ref] = useContextProps(props, ref, PopoverContext);
|
|
36
52
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
37
53
|
const {
|
|
54
|
+
autoWidth,
|
|
38
55
|
children,
|
|
39
56
|
className,
|
|
40
57
|
offset = 4,
|
|
41
58
|
boundaryOffset,
|
|
59
|
+
isNonDialog,
|
|
60
|
+
containerPadding = 16,
|
|
61
|
+
containerProps,
|
|
62
|
+
placement: placementProp,
|
|
63
|
+
style: styleProp,
|
|
42
64
|
...otherProps
|
|
43
65
|
} = ownProps;
|
|
66
|
+
const placement = (_a = useResponsiveValue(placementProp)) != null ? _a : "bottom";
|
|
67
|
+
const { stylingProps: containerStylingProps, ...containerOwnProps } = useStyledSystem(containerProps != null ? containerProps : {});
|
|
68
|
+
const {
|
|
69
|
+
className: containerClassName,
|
|
70
|
+
style: containerStyleProp,
|
|
71
|
+
slot,
|
|
72
|
+
...containerOtherProps
|
|
73
|
+
} = containerOwnProps;
|
|
44
74
|
const { colorScheme } = useColorSchemeContext();
|
|
45
75
|
const popoverClassNames = composeClassnameRenderProps(
|
|
46
76
|
className,
|
|
47
77
|
GlobalPopoverCssSelector,
|
|
48
78
|
cssModule(
|
|
49
79
|
Popover_module_default,
|
|
50
|
-
"hop-Popover"
|
|
51
|
-
|
|
80
|
+
"hop-Popover",
|
|
81
|
+
isNonDialog && "non-dialog"
|
|
82
|
+
),
|
|
83
|
+
stylingProps.className
|
|
52
84
|
);
|
|
85
|
+
const containerClassNames = isNonDialog ? clsx(containerClassName, Popover_module_default["hop-Popover__dropdown"], containerStylingProps.className) : clsx(containerClassName, Popover_module_default["hop-Popover__dialog"], containerStylingProps.className);
|
|
86
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
87
|
+
return {
|
|
88
|
+
...stylingProps.style,
|
|
89
|
+
"--container-padding": `${containerPadding}px`,
|
|
90
|
+
...prev
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
const containerStyle = {
|
|
94
|
+
...containerStylingProps.style,
|
|
95
|
+
...containerStyleProp
|
|
96
|
+
};
|
|
53
97
|
return /* @__PURE__ */ jsx(
|
|
54
98
|
Popover$1,
|
|
55
99
|
{
|
|
@@ -58,50 +102,231 @@ function Popover(props, ref) {
|
|
|
58
102
|
ref,
|
|
59
103
|
className: popoverClassNames,
|
|
60
104
|
arrowBoundaryOffset: boundaryOffset,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
105
|
+
"data-auto-width": autoWidth || void 0,
|
|
106
|
+
containerPadding,
|
|
107
|
+
style,
|
|
108
|
+
placement,
|
|
109
|
+
children: (state) => {
|
|
110
|
+
const content = isFunction(children) && !isNil(children) ? children(state) : children;
|
|
111
|
+
if (isNonDialog) {
|
|
112
|
+
return /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, className: Popover_module_default["hop-Popover__wrapper"], children: /* @__PURE__ */ jsx(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
...containerOtherProps,
|
|
116
|
+
className: containerClassNames,
|
|
117
|
+
style: containerStyle,
|
|
118
|
+
slot: slot || void 0,
|
|
119
|
+
children: /* @__PURE__ */ jsx(
|
|
120
|
+
SlotProvider,
|
|
121
|
+
{
|
|
122
|
+
values: [
|
|
123
|
+
[ListBoxContext, {
|
|
124
|
+
className: Popover_module_default["hop-Popover__list-box"]
|
|
125
|
+
}],
|
|
126
|
+
[FooterContext, {
|
|
127
|
+
className: Popover_module_default["hop-Popover__footer"]
|
|
128
|
+
}],
|
|
129
|
+
[LinkContext, {
|
|
130
|
+
size: "sm",
|
|
131
|
+
variant: "primary",
|
|
132
|
+
isQuiet: true
|
|
133
|
+
}]
|
|
134
|
+
],
|
|
135
|
+
children: content
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
) });
|
|
140
|
+
}
|
|
141
|
+
return /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(Dialog, { ...containerOtherProps, className: containerClassNames, style: containerStyle, children: /* @__PURE__ */ jsx(
|
|
142
|
+
SlotProvider,
|
|
143
|
+
{
|
|
144
|
+
values: [
|
|
145
|
+
[HeadingContext, {
|
|
146
|
+
className: Popover_module_default["hop-Popover__title"],
|
|
147
|
+
size: "xs"
|
|
148
|
+
}],
|
|
149
|
+
[ButtonContext, {
|
|
150
|
+
size: "sm",
|
|
151
|
+
className: Popover_module_default["hop-Popover__action"]
|
|
152
|
+
}],
|
|
153
|
+
[ButtonGroupContext, {
|
|
154
|
+
size: "sm",
|
|
155
|
+
align: "end",
|
|
156
|
+
className: Popover_module_default["hop-Popover__actions"]
|
|
157
|
+
}],
|
|
158
|
+
[ContentContext, {
|
|
159
|
+
className: Popover_module_default["hop-Popover__content"]
|
|
160
|
+
}],
|
|
161
|
+
[FooterContext, {
|
|
162
|
+
className: Popover_module_default["hop-Popover__footer"]
|
|
163
|
+
}],
|
|
164
|
+
[LinkContext, {
|
|
165
|
+
size: "sm",
|
|
166
|
+
variant: "primary",
|
|
167
|
+
isQuiet: true
|
|
168
|
+
}]
|
|
169
|
+
],
|
|
170
|
+
children: content
|
|
171
|
+
}
|
|
172
|
+
) }) });
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
var _Popover = forwardRef(Popover);
|
|
178
|
+
_Popover.displayName = "Popover";
|
|
179
|
+
|
|
180
|
+
// css-module:./Select.module.css#css-module
|
|
181
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___-8SYI", "hop-Select--fluid": "Select-module__hop-Select--fluid___xc7Ku", "hop-Select__label": "Select-module__hop-Select__label___g3Dp1", "hop-Select__button": "Select-module__hop-Select__button___bVgEW", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___lAmUR", "hop-Select__button--md": "Select-module__hop-Select__button--md___imFfM", "hop-Select__prefix": "Select-module__hop-Select__prefix___IpM32", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___nOSOw", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___sMWir", "hop-Select__error-message": "Select-module__hop-Select__error-message___co23W" };
|
|
182
|
+
var GlobalSelectCssSelector = "hop-Select";
|
|
183
|
+
function Select(props, ref) {
|
|
184
|
+
var _a, _b;
|
|
185
|
+
[props, ref] = useContextProps(props, ref, SelectContext);
|
|
186
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
187
|
+
const {
|
|
188
|
+
className,
|
|
189
|
+
children,
|
|
190
|
+
fieldChildren,
|
|
191
|
+
footer,
|
|
192
|
+
isAutoMenuWidth,
|
|
193
|
+
isFluid: isFluidProp,
|
|
194
|
+
isInvalid,
|
|
195
|
+
items,
|
|
196
|
+
listBoxProps,
|
|
197
|
+
popoverProps,
|
|
198
|
+
prefix,
|
|
199
|
+
renderValue,
|
|
200
|
+
size: sizeProp,
|
|
201
|
+
style: styleProp,
|
|
202
|
+
triggerProps,
|
|
203
|
+
...otherProps
|
|
204
|
+
} = ownProps;
|
|
205
|
+
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
206
|
+
const {
|
|
207
|
+
className: triggerClassName,
|
|
208
|
+
style: triggerStyleProp,
|
|
209
|
+
...otherTriggerProps
|
|
210
|
+
} = triggerOwnProps;
|
|
211
|
+
const { placement = "bottom start", ...otherPopoverProps } = popoverProps != null ? popoverProps : {};
|
|
212
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
|
|
213
|
+
const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
|
|
214
|
+
const classNames = composeClassnameRenderProps(
|
|
215
|
+
className,
|
|
216
|
+
GlobalSelectCssSelector,
|
|
217
|
+
cssModule(
|
|
218
|
+
Select_module_default,
|
|
219
|
+
"hop-Select",
|
|
220
|
+
isFluid && "fluid",
|
|
221
|
+
size
|
|
222
|
+
),
|
|
223
|
+
stylingProps.className
|
|
224
|
+
);
|
|
225
|
+
const buttonClassNames = composeClassnameRenderProps(
|
|
226
|
+
triggerClassName,
|
|
227
|
+
cssModule(
|
|
228
|
+
Select_module_default,
|
|
229
|
+
"hop-Select__button",
|
|
230
|
+
size
|
|
231
|
+
),
|
|
232
|
+
triggerStylingProps.className
|
|
233
|
+
);
|
|
234
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
235
|
+
return {
|
|
236
|
+
...stylingProps.style,
|
|
237
|
+
...prev
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
const triggerStyle = {
|
|
241
|
+
...triggerStylingProps.style,
|
|
242
|
+
...triggerStyleProp
|
|
243
|
+
};
|
|
244
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
245
|
+
SlotProvider,
|
|
246
|
+
{
|
|
247
|
+
values: [
|
|
248
|
+
[TextContext, { size, className: Select_module_default["hop-Select__prefix"] }],
|
|
249
|
+
[IconContext, { size, className: Select_module_default["hop-Select__prefix"] }]
|
|
250
|
+
],
|
|
251
|
+
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix })
|
|
252
|
+
}
|
|
253
|
+
) : null;
|
|
254
|
+
const footerMarkup = footer ? /* @__PURE__ */ jsx(_Footer, { children: isTextOnlyChildren(footer) ? /* @__PURE__ */ jsx(_Text, { children: footer }) : footer }) : null;
|
|
255
|
+
return /* @__PURE__ */ jsx(
|
|
256
|
+
Select$1,
|
|
257
|
+
{
|
|
258
|
+
...otherProps,
|
|
259
|
+
ref,
|
|
260
|
+
className: classNames,
|
|
261
|
+
style,
|
|
262
|
+
isInvalid,
|
|
263
|
+
children: (selectRenderProps) => {
|
|
264
|
+
const { isOpen } = selectRenderProps;
|
|
265
|
+
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
266
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
267
|
+
/* @__PURE__ */ jsx(
|
|
67
268
|
SlotProvider,
|
|
68
269
|
{
|
|
69
270
|
values: [
|
|
70
|
-
[
|
|
71
|
-
className:
|
|
72
|
-
size: "xs"
|
|
271
|
+
[LabelContext, {
|
|
272
|
+
className: Select_module_default["hop-Select__label"]
|
|
73
273
|
}],
|
|
74
|
-
[
|
|
75
|
-
|
|
76
|
-
className: Popover_module_default["hop-Popover__action"]
|
|
274
|
+
[HelperMessageContext, {
|
|
275
|
+
className: Select_module_default["hop-Select__helper-message"]
|
|
77
276
|
}],
|
|
78
|
-
[
|
|
79
|
-
|
|
80
|
-
align: "end",
|
|
81
|
-
className: Popover_module_default["hop-Popover__actions"]
|
|
82
|
-
}],
|
|
83
|
-
[ContentContext, {
|
|
84
|
-
className: Popover_module_default["hop-Popover__content"]
|
|
85
|
-
}],
|
|
86
|
-
[FooterContext, {
|
|
87
|
-
className: Popover_module_default["hop-Popover__footer"]
|
|
88
|
-
}],
|
|
89
|
-
[LinkContext, {
|
|
90
|
-
size: "sm",
|
|
91
|
-
variant: "primary",
|
|
92
|
-
isQuiet: true
|
|
277
|
+
[ErrorMessageContext, {
|
|
278
|
+
className: Select_module_default["hop-Select__error-message"]
|
|
93
279
|
}]
|
|
94
280
|
],
|
|
95
|
-
children:
|
|
281
|
+
children: fieldChildren
|
|
96
282
|
}
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
|
|
283
|
+
),
|
|
284
|
+
/* @__PURE__ */ jsxs(Button, { ...otherTriggerProps, className: buttonClassNames, style: triggerStyle, "data-invalid": isInvalid || void 0, children: [
|
|
285
|
+
prefixMarkup,
|
|
286
|
+
/* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
|
|
287
|
+
return renderValue == null ? void 0 : renderValue(valueRenderProps);
|
|
288
|
+
} }),
|
|
289
|
+
/* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: Select_module_default["hop-Select__button-icon"] })
|
|
290
|
+
] }),
|
|
291
|
+
/* @__PURE__ */ jsxs(_Popover, { ...otherPopoverProps, placement, isNonDialog: true, autoWidth: isAutoMenuWidth, children: [
|
|
292
|
+
/* @__PURE__ */ jsx(
|
|
293
|
+
SlotProvider,
|
|
294
|
+
{
|
|
295
|
+
values: [
|
|
296
|
+
[BadgeContext, {
|
|
297
|
+
variant: "secondary"
|
|
298
|
+
}]
|
|
299
|
+
],
|
|
300
|
+
children: /* @__PURE__ */ jsx(_ListBox, { ...listBoxProps, items, size, isInvalid, children })
|
|
301
|
+
}
|
|
302
|
+
),
|
|
303
|
+
/* @__PURE__ */ jsx(
|
|
304
|
+
ClearProviders,
|
|
305
|
+
{
|
|
306
|
+
values: [
|
|
307
|
+
TextContext$1,
|
|
308
|
+
TextContext,
|
|
309
|
+
ButtonContext$1
|
|
310
|
+
],
|
|
311
|
+
children: footerMarkup
|
|
312
|
+
}
|
|
313
|
+
)
|
|
314
|
+
] })
|
|
315
|
+
] });
|
|
316
|
+
}
|
|
100
317
|
}
|
|
101
318
|
);
|
|
102
319
|
}
|
|
103
|
-
var
|
|
104
|
-
|
|
320
|
+
var _Select = forwardRef(Select);
|
|
321
|
+
_Select.displayName = "Select";
|
|
322
|
+
var CompoundSelect = Object.assign(_Select, {
|
|
323
|
+
/**
|
|
324
|
+
* A select option is an item that is displayed in a select.
|
|
325
|
+
*
|
|
326
|
+
* [View Documentation](TODO)
|
|
327
|
+
*/
|
|
328
|
+
Option: _ListBoxItem
|
|
329
|
+
});
|
|
105
330
|
function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
|
|
106
331
|
let { cursor, getKey } = opts;
|
|
107
332
|
return {
|
|
@@ -513,7 +738,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
513
738
|
}
|
|
514
739
|
|
|
515
740
|
// css-module:./Form.module.css#css-module
|
|
516
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
741
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___tKcK9" };
|
|
517
742
|
var GlobalFormCssSelector = "hop-Form";
|
|
518
743
|
function Form(props, ref) {
|
|
519
744
|
var _a;
|
|
@@ -605,4 +830,4 @@ function Form(props, ref) {
|
|
|
605
830
|
var _Form = forwardRef(Form);
|
|
606
831
|
_Form.displayName = "Form";
|
|
607
832
|
|
|
608
|
-
export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, GlobalFormCssSelector, GlobalPopoverCssSelector, _Form, _Popover };
|
|
833
|
+
export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, CompoundSelect, GlobalFormCssSelector, GlobalPopoverCssSelector, GlobalSelectCssSelector, _Form, _Popover };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
1
|
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
2
|
+
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
5
5
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./RadioField.module.css#css-module
|
|
15
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
15
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___7cWiA", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___Q6gn3", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___mzMoL", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___-wcF0", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___yCxtZ" };
|
|
16
16
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
17
17
|
var RadioToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
1
2
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
2
3
|
import { RadioListContext } from './chunk-A7TZHALP.js';
|
|
3
4
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
4
|
-
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./RadioGroup.module.css#css-module
|
|
17
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
17
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___3D-CQ", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___xUBDY", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___Wuezk", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___qDKnW", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___RPhTV", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___fsKD3", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___uu6mp", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___VVQJs", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___0axK9" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ButtonGroup.module.css#css-module
|
|
13
|
-
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-
|
|
13
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___V-GZD", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___ZRbG5", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___v3JGj", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___sc1iw", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___hfVSv", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___OwOEL", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___lgR5H", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___M4OVp" };
|
|
14
14
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
15
|
function ButtonGroup(props, ref) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
@@ -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___TYOGA", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___yey8v", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___DQWyN", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___dV4JT", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___RExw1", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___jni6f" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./CheckboxField.module.css#css-module
|
|
14
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
14
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___EeawF", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___QGCXc", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___Qm0Er", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___TlNzS", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___srYzU" };
|
|
15
15
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
16
16
|
var CheckboxToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -14,7 +14,8 @@ var require_en_US = __commonJS({
|
|
|
14
14
|
"ListBoxItem.loadingTextValue": `Loading Item`,
|
|
15
15
|
"ListBoxItem.indicatorAriaLabel": `List Item Selection Indicator`,
|
|
16
16
|
"Label.necessityLabel.required": `Required`,
|
|
17
|
-
"Label.necessityLabel.optional": `Optional
|
|
17
|
+
"Label.necessityLabel.optional": `Optional`,
|
|
18
|
+
"Select.placeholder": `Select an item`
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
});
|
|
@@ -32,7 +33,8 @@ var require_fr_CA = __commonJS({
|
|
|
32
33
|
"ListBoxItem.loadingTextValue": `\xC9l\xE9ment en cours de chargement`,
|
|
33
34
|
"ListBoxItem.indicatorAriaLabel": `Indicateur de s\xE9lection d'\xE9l\xE9ment de liste`,
|
|
34
35
|
"Label.necessityLabel.required": `Obligatoire`,
|
|
35
|
-
"Label.necessityLabel.optional": `Facultatif
|
|
36
|
+
"Label.necessityLabel.optional": `Facultatif`,
|
|
37
|
+
"Select.placeholder": `S\xE9lectionner un \xE9l\xE9ment`
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
+
import { _Spinner } from './chunk-3573Q6QG.js';
|
|
2
3
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
-
import {
|
|
4
|
-
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
5
5
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
8
8
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
9
|
-
import { _Text } from './chunk-
|
|
9
|
+
import { _Text } from './chunk-D5PBETXF.js';
|
|
10
10
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps,
|
|
|
19
19
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Button.module.css#css-module
|
|
22
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
22
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___mVpRP", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___xAh-6", "hop-Button--fluid": "Button-module__hop-Button--fluid___EFWA-", "hop-Button--sm": "Button-module__hop-Button--sm___-ue3C", "hop-Button--primary": "Button-module__hop-Button--primary___EKPMl", "hop-Button--md": "Button-module__hop-Button--md___BDVkz", "hop-Button--secondary": "Button-module__hop-Button--secondary___bcVUb", "hop-Button--upsell": "Button-module__hop-Button--upsell___6nknl", "hop-Button--danger": "Button-module__hop-Button--danger___MkovL", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___zlbPD", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___l-orO", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___F6-yL", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___1RnXX", "hop-Button__icon": "Button-module__hop-Button__icon___MFwf2", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___jC-21", "hop-Button__text": "Button-module__hop-Button__text___ebwCf", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___oyHTu", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___1U3mE" };
|
|
23
23
|
var GlobalButtonCssSelector = "hop-Button";
|
|
24
24
|
var additionalButtonHTMLAttributes = /* @__PURE__ */ new Set(["form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "name", "value"]);
|
|
25
25
|
function useSimulatedRACButton(props, ref) {
|
|
@@ -2,7 +2,7 @@ import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-D5PBETXF.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
7
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Radio.module.css#css-module
|
|
17
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
17
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___8KZXA", "hop-Radio--focused": "Radio-module__hop-Radio--focused___UOv6k", "hop-Radio--hovered": "Radio-module__hop-Radio--hovered___3648m", "hop-Radio--pressed": "Radio-module__hop-Radio--pressed___M5r4O", "hop-Radio--sm": "Radio-module__hop-Radio--sm___9nkSB", "hop-Radio--md": "Radio-module__hop-Radio--md___FD8ks", "hop-Radio__icon": "Radio-module__hop-Radio__icon___Axpaq", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___TH7pN", "hop-Radio__box": "Radio-module__hop-Radio__box___wDQH6", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___oXHWw", "hop-Radio__text": "Radio-module__hop-Radio__text___Kqa3G" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|