@hopper-ui/components 1.3.5 → 1.3.7
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 +13 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.d.ts +8 -2
- package/dist/Avatar/src/AnonymousAvatar.js +4 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.d.ts +8 -2
- package/dist/Avatar/src/Avatar.js +5 -3
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.d.ts +8 -2
- package/dist/Avatar/src/DeletedAvatar.js +4 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +9 -2
- package/dist/Avatar/src/RichIconAvatarImage.js +3 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +7 -5
- package/dist/Badge/src/Badge.css +21 -21
- package/dist/Badge/src/Badge.d.ts +24 -2
- package/dist/Badge/src/Badge.js +4 -2
- package/dist/Badge/src/FloatingBadge.css +10 -10
- package/dist/Badge/src/FloatingBadge.d.ts +2 -2
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +31 -31
- package/dist/Badge/src/index.js +5 -3
- 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 +4 -3
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +4 -3
- package/dist/Form/src/Form.css +723 -701
- package/dist/Form/src/Form.js +45 -45
- package/dist/Form/src/index.css +723 -701
- package/dist/Form/src/index.js +45 -45
- package/dist/Header/src/Header.d.ts +2 -2
- 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.d.ts +2 -2
- 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 +3 -3
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +267 -273
- package/dist/ListBox/src/ListBox.js +8 -8
- package/dist/ListBox/src/ListBoxItem.css +253 -253
- package/dist/ListBox/src/ListBoxItem.js +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +2 -2
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +267 -273
- package/dist/ListBox/src/index.js +8 -8
- package/dist/Select/src/Select.css +723 -701
- package/dist/Select/src/Select.js +45 -45
- package/dist/Select/src/SelectValue.css +60 -60
- package/dist/Select/src/SelectValue.js +7 -7
- package/dist/Select/src/index.css +723 -701
- package/dist/Select/src/index.js +45 -45
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.d.ts +2 -2
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +3 -3
- 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 +71 -71
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +71 -71
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +176 -176
- package/dist/buttons/src/index.js +8 -8
- package/dist/checkbox/src/Checkbox.css +28 -28
- package/dist/checkbox/src/Checkbox.js +3 -3
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.d.ts +8 -2
- package/dist/checkbox/src/CheckboxField.js +3 -1
- package/dist/checkbox/src/CheckboxGroup.css +83 -83
- package/dist/checkbox/src/CheckboxGroup.js +2 -2
- package/dist/checkbox/src/CheckboxList.d.ts +2 -2
- package/dist/checkbox/src/DecorativeCheckbox.css +36 -36
- package/dist/checkbox/src/DecorativeCheckbox.js +4 -4
- package/dist/checkbox/src/index.css +83 -83
- package/dist/checkbox/src/index.js +7 -7
- package/dist/{chunk-5PSDYTOT.js → chunk-2LS24P2S.js} +1 -1
- package/dist/{chunk-GR4ZXUOX.js → chunk-4PCMNJTD.js} +15 -13
- package/dist/{chunk-UEHE2IY5.js → chunk-5CR5V44E.js} +23 -11
- package/dist/{chunk-3SMTAPEK.js → chunk-5LGDXMKZ.js} +4 -4
- package/dist/{chunk-2RFHHVN3.js → chunk-AHMI7DHJ.js} +4 -4
- package/dist/{chunk-YZEDTLPG.js → chunk-AWYN6573.js} +1 -1
- package/dist/{chunk-5IRT2QDF.js → chunk-BNBUTFBN.js} +1 -1
- package/dist/{chunk-24JZVLAU.js → chunk-BUI76FPU.js} +1 -1
- package/dist/{chunk-6AFXZYF5.js → chunk-BZC3DOXC.js} +4 -4
- package/dist/{chunk-T6MMAU6N.js → chunk-C4W3WI5F.js} +2 -2
- package/dist/{chunk-LYTJ7OUI.js → chunk-CWP3RDUT.js} +2 -2
- package/dist/{chunk-PSGKAJML.js → chunk-DCTC6KDW.js} +1 -1
- package/dist/{chunk-EBDEMWL7.js → chunk-DMAM2GFN.js} +5 -5
- package/dist/{chunk-CH44JMHK.js → chunk-DNFIKL5N.js} +3 -3
- package/dist/{chunk-QUEZJSCY.js → chunk-DSUR3NPA.js} +3 -3
- package/dist/{chunk-EOXY566V.js → chunk-F4XYXAPX.js} +1 -1
- package/dist/{chunk-7MCVN25U.js → chunk-FKFP4LFR.js} +22 -12
- package/dist/{chunk-52A7OS5J.js → chunk-FSRORCX7.js} +5 -5
- package/dist/{chunk-LI2RM2EK.js → chunk-HIF2U66B.js} +1 -1
- package/dist/{chunk-7XEWB4YU.js → chunk-IA343FCT.js} +25 -18
- package/dist/{chunk-RMXL2PC5.js → chunk-IZUZUN6Z.js} +8 -6
- package/dist/{chunk-SAHIPNPF.js → chunk-JGOXWGEG.js} +5 -5
- package/dist/{chunk-NT6XKRT2.js → chunk-JKE2GH2D.js} +28 -15
- package/dist/{chunk-GEYJZ3VZ.js → chunk-JZGG67JQ.js} +1 -1
- package/dist/{chunk-UQY26ITM.js → chunk-LULNSRRY.js} +1 -1
- package/dist/{chunk-3KW6ENLR.js → chunk-LXWDXMVL.js} +8 -8
- package/dist/{chunk-LSTGTYUX.js → chunk-MDI3RFZS.js} +22 -14
- package/dist/{chunk-XXFIU5GK.js → chunk-MJ24AAEX.js} +1 -1
- package/dist/{chunk-3OVZI77M.js → chunk-MTQURD2G.js} +4 -4
- package/dist/{chunk-HABA5CYG.js → chunk-PGYHBNCP.js} +2 -2
- package/dist/{chunk-D6CIA7NA.js → chunk-PJLVJG4E.js} +1 -1
- package/dist/{chunk-AIO2PFOS.js → chunk-PQTB3F7K.js} +4 -4
- package/dist/{chunk-SUXNDVNP.js → chunk-PVLUQZAG.js} +24 -16
- package/dist/{chunk-4UOBMEPP.js → chunk-SRT6TJ7K.js} +1 -1
- package/dist/{chunk-S4LXTCFZ.js → chunk-SZIBBFKI.js} +4 -4
- package/dist/{chunk-5IRH7LBK.js → chunk-T2DEFREG.js} +22 -14
- package/dist/{chunk-QBGX4KU2.js → chunk-VMSIQERT.js} +3 -3
- package/dist/{chunk-FMNUFTYZ.js → chunk-VZAUDQPW.js} +4 -4
- package/dist/{chunk-RPYDBKIG.js → chunk-WD3GLWJA.js} +2 -2
- package/dist/{chunk-RYROB3P6.js → chunk-YFJWAPT5.js} +1 -1
- package/dist/{chunk-6UW2BF2Z.js → chunk-YUMDUDZX.js} +4 -4
- package/dist/{chunk-LIGWTMRQ.js → chunk-Z63VLZM2.js} +3 -3
- package/dist/{chunk-Y3VCNKJB.js → chunk-ZVOVNXPJ.js} +22 -13
- package/dist/index.css +723 -701
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -45
- package/dist/inputs/src/InputGroup.css +191 -191
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +231 -231
- package/dist/inputs/src/NumberField.js +7 -7
- package/dist/inputs/src/PasswordField.css +219 -219
- package/dist/inputs/src/PasswordField.js +8 -8
- package/dist/inputs/src/SearchField.css +225 -225
- package/dist/inputs/src/SearchField.js +9 -9
- package/dist/inputs/src/TextArea.css +225 -225
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +223 -223
- package/dist/inputs/src/TextField.js +9 -9
- package/dist/inputs/src/index.css +271 -271
- package/dist/inputs/src/index.js +13 -13
- package/dist/layout/src/Content.d.ts +2 -2
- package/dist/layout/src/Footer.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.css +723 -701
- package/dist/overlays/Popover/src/Popover.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.js +45 -45
- package/dist/overlays/Popover/src/index.css +723 -701
- package/dist/overlays/Popover/src/index.js +45 -45
- package/dist/radio/src/DecorativeRadio.css +36 -36
- package/dist/radio/src/DecorativeRadio.js +4 -4
- package/dist/radio/src/Radio.css +28 -28
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.d.ts +8 -2
- package/dist/radio/src/RadioField.js +3 -1
- package/dist/radio/src/RadioGroup.css +83 -83
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/RadioList.d.ts +2 -2
- package/dist/radio/src/index.css +83 -83
- package/dist/radio/src/index.js +7 -7
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.d.ts +8 -2
- package/dist/switch/src/SwitchField.js +3 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +5 -4
- package/dist/tag/src/Tag.css +323 -323
- package/dist/tag/src/Tag.js +6 -6
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +336 -336
- package/dist/tag/src/index.js +7 -7
- 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 +1 -1
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +1 -1
- 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 -1
- package/dist/utils/src/index.js +2 -2
- package/dist/utils/src/types.d.ts +3 -3
- package/package.json +4 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _Spinner } from './chunk-PGYHBNCP.js';
|
|
3
3
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
4
4
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
5
5
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
8
|
-
import {
|
|
9
|
-
import { _Text } from './chunk-EOXY566V.js';
|
|
7
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
10
8
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
10
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -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___2Nqnv", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___b6HX4", "hop-Button--fluid": "Button-module__hop-Button--fluid___xvmay", "hop-Button--sm": "Button-module__hop-Button--sm___WquC-", "hop-Button--primary": "Button-module__hop-Button--primary___sY6d0", "hop-Button--md": "Button-module__hop-Button--md___egvlb", "hop-Button--secondary": "Button-module__hop-Button--secondary___pINK9", "hop-Button--upsell": "Button-module__hop-Button--upsell___ZE5jO", "hop-Button--danger": "Button-module__hop-Button--danger___dSyM9", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___c-aho", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___B0vtI", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___LmWvy", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___HfWc0", "hop-Button__icon": "Button-module__hop-Button__icon___AeZaO", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___c9t8P", "hop-Button__text": "Button-module__hop-Button__text___vtdcY", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___T9fi-", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___QlLz-" };
|
|
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) {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-MJ24AAEX.js';
|
|
2
2
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
3
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
5
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
6
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
7
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
8
|
import { forwardRef } from 'react';
|
|
8
|
-
import {
|
|
9
|
+
import { mergeProps } from 'react-aria';
|
|
10
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
9
11
|
import { jsx } from 'react/jsx-runtime';
|
|
10
12
|
|
|
11
13
|
// css-module:./Badge.module.css#css-module
|
|
12
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
14
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___-9bND" };
|
|
13
15
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
14
16
|
function Badge(props, ref) {
|
|
15
17
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
16
18
|
const { isHovered, isPressed, isSelected } = props;
|
|
17
19
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
18
20
|
const {
|
|
19
|
-
children,
|
|
20
21
|
className,
|
|
21
22
|
isDisabled,
|
|
22
23
|
isIndeterminate,
|
|
@@ -25,8 +26,7 @@ function Badge(props, ref) {
|
|
|
25
26
|
variant = "primary",
|
|
26
27
|
...otherProps
|
|
27
28
|
} = ownProps;
|
|
28
|
-
const
|
|
29
|
-
const classNames = clsx(
|
|
29
|
+
const classNames = composeClassnameRenderProps(
|
|
30
30
|
className,
|
|
31
31
|
GlobalBadgeCssSelector,
|
|
32
32
|
cssModule(
|
|
@@ -35,17 +35,30 @@ function Badge(props, ref) {
|
|
|
35
35
|
),
|
|
36
36
|
stylingProps.className
|
|
37
37
|
);
|
|
38
|
-
const mergedStyles = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
39
|
+
return {
|
|
40
|
+
...stylingProps.style,
|
|
41
|
+
...prev
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
const renderProps = useRenderProps({
|
|
45
|
+
...props,
|
|
46
|
+
className: classNames,
|
|
47
|
+
style: mergedStyles,
|
|
48
|
+
values: {
|
|
49
|
+
isDisabled: isDisabled || false,
|
|
50
|
+
isIndeterminate: isIndeterminate || false,
|
|
51
|
+
isHovered: isHovered || false,
|
|
52
|
+
isPressed: isPressed || false,
|
|
53
|
+
isSelected: isSelected || false
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const isDot = isIndeterminate || !renderProps.children;
|
|
42
57
|
return /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
43
58
|
_OverlineText,
|
|
44
59
|
{
|
|
45
|
-
...otherProps,
|
|
60
|
+
...mergeProps(otherProps, renderProps),
|
|
46
61
|
ref,
|
|
47
|
-
className: classNames,
|
|
48
|
-
style: mergedStyles,
|
|
49
62
|
slot: slot != null ? slot : void 0,
|
|
50
63
|
"data-disabled": isDisabled || void 0,
|
|
51
64
|
"aria-disabled": isDisabled || void 0,
|
|
@@ -54,7 +67,7 @@ function Badge(props, ref) {
|
|
|
54
67
|
"data-pressed": isPressed || void 0,
|
|
55
68
|
"data-selected": isSelected || void 0,
|
|
56
69
|
"data-variant": variant,
|
|
57
|
-
children: !isDot && children
|
|
70
|
+
children: !isDot && renderProps.children
|
|
58
71
|
}
|
|
59
72
|
) });
|
|
60
73
|
}
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Divider.module.css#css-module
|
|
10
|
-
var Divider_module_default = { "hop-Divider": "Divider-module__hop-
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___g7ps6", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___a25V7" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -8,7 +8,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./IconList.module.css#css-module
|
|
11
|
-
var IconList_module_default = { "hop-IconList": "IconList-module__hop-
|
|
11
|
+
var IconList_module_default = { "hop-IconList": "IconList-module__hop-IconList___j6yB2" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
13
|
function IconList(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
@@ -12,26 +12,26 @@ import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
|
12
12
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
13
13
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
14
14
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
15
|
-
import { _SelectValue } from './chunk-
|
|
15
|
+
import { _SelectValue } from './chunk-SZIBBFKI.js';
|
|
16
16
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
17
17
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
18
18
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
19
19
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
20
|
-
import { _ListBox } from './chunk-
|
|
20
|
+
import { _ListBox } from './chunk-YUMDUDZX.js';
|
|
21
21
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
22
22
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
23
|
-
import { _ListBoxItem } from './chunk-
|
|
23
|
+
import { _ListBoxItem } from './chunk-IZUZUN6Z.js';
|
|
24
24
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
25
25
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
26
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
27
26
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
28
27
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
29
28
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
30
29
|
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
31
30
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
32
|
-
import { _Text } from './chunk-
|
|
31
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
33
32
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
34
33
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
34
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
35
35
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
36
36
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
37
37
|
import { useStyledSystem, useResponsiveValue, useColorSchemeContext } from '@hopper-ui/styled-system';
|
|
@@ -44,7 +44,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
44
44
|
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
45
45
|
|
|
46
46
|
// css-module:./Popover.module.css#css-module
|
|
47
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
47
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___wpqmA", "fade": "Popover-module__fade___fLu22", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___-2GXF", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___wOPF-", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___hF0Ba", "hop-Popover__title": "Popover-module__hop-Popover__title___tULvQ", "hop-Popover__content": "Popover-module__hop-Popover__content___xfAwJ", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___dtFam", "hop-Popover__footer": "Popover-module__hop-Popover__footer___nRrpk", "hop-Popover__actions": "Popover-module__hop-Popover__actions___9XiAv", "hop-Popover__action": "Popover-module__hop-Popover__action___Gk0oe" };
|
|
48
48
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
49
49
|
function Popover(props, ref) {
|
|
50
50
|
var _a;
|
|
@@ -178,7 +178,7 @@ var _Popover = forwardRef(Popover);
|
|
|
178
178
|
_Popover.displayName = "Popover";
|
|
179
179
|
|
|
180
180
|
// css-module:./Select.module.css#css-module
|
|
181
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
181
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___018w5", "hop-Select--fluid": "Select-module__hop-Select--fluid___8FKqZ", "hop-Select__label": "Select-module__hop-Select__label___h0QJ-", "hop-Select__button": "Select-module__hop-Select__button___csI9f", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___7Bkjy", "hop-Select__button--md": "Select-module__hop-Select__button--md___N5Huq", "hop-Select__prefix": "Select-module__hop-Select__prefix___glfPq", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___ADJTr", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___pubjR", "hop-Select__error-message": "Select-module__hop-Select__error-message___LLkqe" };
|
|
182
182
|
var GlobalSelectCssSelector = "hop-Select";
|
|
183
183
|
function Select(props, ref) {
|
|
184
184
|
var _a, _b;
|
|
@@ -738,7 +738,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
// css-module:./Form.module.css#css-module
|
|
741
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
741
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___t89dJ" };
|
|
742
742
|
var GlobalFormCssSelector = "hop-Form";
|
|
743
743
|
function Form(props, ref) {
|
|
744
744
|
var _a;
|
|
@@ -2,17 +2,18 @@ import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
|
2
2
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
5
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
6
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
7
9
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
8
|
-
import clsx from 'clsx';
|
|
9
10
|
import { forwardRef } from 'react';
|
|
10
|
-
import { useId } from 'react-aria';
|
|
11
|
-
import { useContextProps } from 'react-aria-components';
|
|
11
|
+
import { useId, mergeProps } from 'react-aria';
|
|
12
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
12
13
|
import { jsx } from 'react/jsx-runtime';
|
|
13
14
|
|
|
14
15
|
// css-module:./RadioField.module.css#css-module
|
|
15
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
16
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___A5OEY", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___08VGE", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___-4aoZ", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___5EvIt", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___lMDuc" };
|
|
16
17
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
17
18
|
var RadioToDescriptionSizeAdapter = {
|
|
18
19
|
sm: "xs",
|
|
@@ -24,7 +25,6 @@ function RadioField(props, ref) {
|
|
|
24
25
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
25
26
|
const {
|
|
26
27
|
className,
|
|
27
|
-
children,
|
|
28
28
|
isDisabled,
|
|
29
29
|
size: sizeProp = "md",
|
|
30
30
|
style,
|
|
@@ -32,7 +32,7 @@ function RadioField(props, ref) {
|
|
|
32
32
|
...otherProps
|
|
33
33
|
} = ownProps;
|
|
34
34
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
35
|
-
const classNames =
|
|
35
|
+
const classNames = composeClassnameRenderProps(
|
|
36
36
|
className,
|
|
37
37
|
GlobalRadioFieldCssSelector,
|
|
38
38
|
cssModule(
|
|
@@ -42,10 +42,20 @@ function RadioField(props, ref) {
|
|
|
42
42
|
),
|
|
43
43
|
stylingProps.className
|
|
44
44
|
);
|
|
45
|
-
const mergedStyles = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
46
|
+
return {
|
|
47
|
+
...stylingProps.style,
|
|
48
|
+
...prev
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const renderProps = useRenderProps({
|
|
52
|
+
...props,
|
|
53
|
+
className: classNames,
|
|
54
|
+
style: mergedStyles,
|
|
55
|
+
values: {
|
|
56
|
+
isDisabled: isDisabled || false
|
|
57
|
+
}
|
|
58
|
+
});
|
|
49
59
|
const descriptionId = useId();
|
|
50
60
|
return /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
51
61
|
SlotProvider,
|
|
@@ -66,13 +76,11 @@ function RadioField(props, ref) {
|
|
|
66
76
|
children: /* @__PURE__ */ jsx(
|
|
67
77
|
"div",
|
|
68
78
|
{
|
|
69
|
-
...otherProps,
|
|
79
|
+
...mergeProps(otherProps, renderProps),
|
|
70
80
|
ref,
|
|
71
|
-
className: classNames,
|
|
72
|
-
style: mergedStyles,
|
|
73
81
|
slot: slot != null ? slot : void 0,
|
|
74
82
|
"data-disabled": isDisabled,
|
|
75
|
-
children
|
|
83
|
+
children: renderProps.children
|
|
76
84
|
}
|
|
77
85
|
)
|
|
78
86
|
}
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___MNaoU", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___nkwdC" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import {
|
|
6
|
-
import { _Text } from './chunk-EOXY566V.js';
|
|
4
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
7
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
8
6
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
8
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
11
|
import { IconContext, MinusIcon, CheckmarkIcon } from '@hopper-ui/icons';
|
|
@@ -16,7 +16,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
// css-module:./DecorativeCheckbox.module.css#css-module
|
|
19
|
-
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-
|
|
19
|
+
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-DecorativeCheckbox___ISCAP Checkbox-module__hop-Checkbox___mAL3I", "hop-DecorativeCheckbox--sm": "DecorativeCheckbox-module__hop-DecorativeCheckbox--sm___puKjz Checkbox-module__hop-Checkbox--sm___Wmzry", "hop-DecorativeCheckbox--md": "DecorativeCheckbox-module__hop-DecorativeCheckbox--md___F1gDS Checkbox-module__hop-Checkbox--md___jhSti", "hop-DecorativeCheckbox__icon": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon___f2gLT Checkbox-module__hop-Checkbox__icon___9PFwj", "hop-DecorativeCheckbox__icon-list": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon-list___N8U0V Checkbox-module__hop-Checkbox__icon___9PFwj", "hop-DecorativeCheckbox__box": "DecorativeCheckbox-module__hop-DecorativeCheckbox__box___ZwQUS Checkbox-module__hop-Checkbox__box___S46JE", "hop-DecorativeCheckbox__check": "DecorativeCheckbox-module__hop-DecorativeCheckbox__check___btixW Checkbox-module__hop-Checkbox__check___UJ3Eo", "hop-DecorativeCheckbox__text": "DecorativeCheckbox-module__hop-DecorativeCheckbox__text___-4O3N Checkbox-module__hop-Checkbox__text___qP2jS" };
|
|
20
20
|
var GlobalDecorativeCheckboxCssSelector = "hop-DecorativeCheckbox";
|
|
21
21
|
function DecorativeCheckbox(props, ref) {
|
|
22
22
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
2
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
2
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
|
-
import { _Text } from './chunk-EOXY566V.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, ProgressBar } from 'react-aria-components';
|
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Spinner.module.css#css-module
|
|
12
|
-
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-
|
|
12
|
+
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-Spinner___-a1aU", "spin": "Spinner-module__spin___-668d", "hop-Spinner--sm": "Spinner-module__hop-Spinner--sm___6be61", "hop-Spinner--md": "Spinner-module__hop-Spinner--md___VLODL", "hop-Spinner--lg": "Spinner-module__hop-Spinner--lg___40ZqO", "hop-Spinner__track": "Spinner-module__hop-Spinner__track___plsYt", "hop-Spinner__fill": "Spinner-module__hop-Spinner__fill___S9ATX", "hop-Spinner__label": "Spinner-module__hop-Spinner__label___WoiYr" };
|
|
13
13
|
var GlobalSpinnerCssSelector = "hop-Spinner";
|
|
14
14
|
var SpinnerToTextSizeAdapter = {
|
|
15
15
|
sm: "xs",
|
|
@@ -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___ZhoR9", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___WJq8O", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___XZ36W", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___5lCSu", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___vzyUz", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___ZaeNQ", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___tqM4Y", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___LrQw1" };
|
|
14
14
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
15
|
function ButtonGroup(props, ref) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
3
3
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
-
import { _InputGroup } from './chunk-
|
|
4
|
+
import { _InputGroup } from './chunk-BUI76FPU.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
9
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
10
|
-
import { _Text } from './chunk-
|
|
9
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
11
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
12
12
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
13
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
14
|
import { useStyledSystem, useResponsiveValue, useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
@@ -79,7 +79,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// css-module:./TextArea.module.css#css-module
|
|
82
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
82
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___CigfE", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___RHFdR", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___IesgB", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___CKsl5", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___Dy8Ya", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___TaknV", "hop-TextArea__char-count": "TextArea-module__hop-TextArea__char-count___L5-B2", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___px1UJ", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___rzEEf" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
2
|
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
5
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
8
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
|
-
import clsx from 'clsx';
|
|
8
9
|
import { forwardRef } from 'react';
|
|
9
|
-
import { useId } from 'react-aria';
|
|
10
|
-
import { useContextProps } from 'react-aria-components';
|
|
10
|
+
import { useId, mergeProps } from 'react-aria';
|
|
11
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
11
12
|
import { jsx } from 'react/jsx-runtime';
|
|
12
13
|
|
|
13
14
|
// css-module:./SwitchField.module.css#css-module
|
|
14
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
15
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___dDQmA", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___2O96R", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___YDST1", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___0EsGA", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___phA6m" };
|
|
15
16
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
17
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
18
|
sm: "xs",
|
|
@@ -23,15 +24,15 @@ function SwitchField(props, ref) {
|
|
|
23
24
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
24
25
|
const {
|
|
25
26
|
className,
|
|
26
|
-
|
|
27
|
+
style,
|
|
27
28
|
isDisabled,
|
|
28
29
|
size: sizeProp = "md",
|
|
29
|
-
style,
|
|
30
30
|
slot,
|
|
31
31
|
...otherProps
|
|
32
32
|
} = ownProps;
|
|
33
33
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
34
|
-
const
|
|
34
|
+
const descriptionId = useId();
|
|
35
|
+
const classNames = composeClassnameRenderProps(
|
|
35
36
|
className,
|
|
36
37
|
GlobalSwitchFieldCssSelector,
|
|
37
38
|
cssModule(
|
|
@@ -41,11 +42,20 @@ function SwitchField(props, ref) {
|
|
|
41
42
|
),
|
|
42
43
|
stylingProps.className
|
|
43
44
|
);
|
|
44
|
-
const mergedStyles = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
46
|
+
return {
|
|
47
|
+
...stylingProps.style,
|
|
48
|
+
...prev
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const renderProps = useRenderProps({
|
|
52
|
+
...otherProps,
|
|
53
|
+
className: classNames,
|
|
54
|
+
style: mergedStyles,
|
|
55
|
+
values: {
|
|
56
|
+
isDisabled: isDisabled || false
|
|
57
|
+
}
|
|
58
|
+
});
|
|
49
59
|
return /* @__PURE__ */ jsx(
|
|
50
60
|
SlotProvider,
|
|
51
61
|
{
|
|
@@ -65,13 +75,11 @@ function SwitchField(props, ref) {
|
|
|
65
75
|
children: /* @__PURE__ */ jsx(
|
|
66
76
|
"div",
|
|
67
77
|
{
|
|
68
|
-
...otherProps,
|
|
78
|
+
...mergeProps(otherProps, renderProps),
|
|
69
79
|
ref,
|
|
70
|
-
className: classNames,
|
|
71
|
-
style: mergedStyles,
|
|
72
80
|
slot: slot != null ? slot : void 0,
|
|
73
81
|
"data-disabled": isDisabled,
|
|
74
|
-
children
|
|
82
|
+
children: renderProps.children
|
|
75
83
|
}
|
|
76
84
|
)
|
|
77
85
|
}
|
|
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Button } from 'react-aria-componen
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
12
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
12
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___w2T0j", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___SKxAz", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___crDTH", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___5zayu", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___Vo8rS", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___XU-ks", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___vLeiV", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___SZuzR", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___Wl8DS", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___dF07c", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___LdqNI", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___sjPf2", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___FNbxF", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___dduQI", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___lOexY", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___ojr14" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useIsOverflow } from './chunk-EHXOXTDN.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
|
-
import {
|
|
4
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
5
|
-
import { _Text } from './chunk-EOXY566V.js';
|
|
3
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
6
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
6
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
7
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
8
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
11
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -16,7 +16,7 @@ import { useContextProps, SelectValueContext, SelectStateContext, useSlottedCont
|
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
// css-module:./SelectValue.module.css#css-module
|
|
19
|
-
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-
|
|
19
|
+
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-SelectValue___fVOPa", "hop-SelectValue__avatar": "SelectValue-module__hop-SelectValue__avatar___7yyBy", "hop-SelectValue__icon": "SelectValue-module__hop-SelectValue__icon___s-Isr", "hop-SelectValue__text": "SelectValue-module__hop-SelectValue__text___MuSju", "hop-SelectValue__end-icon": "SelectValue-module__hop-SelectValue__end-icon___nrWhM" };
|
|
20
20
|
var GlobalSelectValueCssSelector = "hop-SelectValue";
|
|
21
21
|
var SelectValueToAvatarSizeAdapter = {
|
|
22
22
|
sm: "xs",
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
2
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
5
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
8
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
|
-
import clsx from 'clsx';
|
|
8
9
|
import { forwardRef } from 'react';
|
|
9
|
-
import { useId } from 'react-aria';
|
|
10
|
-
import { useContextProps } from 'react-aria-components';
|
|
10
|
+
import { useId, mergeProps } from 'react-aria';
|
|
11
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
11
12
|
import { jsx } from 'react/jsx-runtime';
|
|
12
13
|
|
|
13
14
|
// css-module:./CheckboxField.module.css#css-module
|
|
14
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
15
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___dJieE", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___1EbWC", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___vR14U", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___P-5jZ", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___fIXTk" };
|
|
15
16
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
16
17
|
var CheckboxToDescriptionSizeAdapter = {
|
|
17
18
|
sm: "xs",
|
|
@@ -23,7 +24,6 @@ function CheckboxField(props, ref) {
|
|
|
23
24
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
24
25
|
const {
|
|
25
26
|
className,
|
|
26
|
-
children,
|
|
27
27
|
isDisabled,
|
|
28
28
|
size: sizeProp = "md",
|
|
29
29
|
style,
|
|
@@ -31,7 +31,7 @@ function CheckboxField(props, ref) {
|
|
|
31
31
|
...otherProps
|
|
32
32
|
} = ownProps;
|
|
33
33
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
34
|
-
const classNames =
|
|
34
|
+
const classNames = composeClassnameRenderProps(
|
|
35
35
|
className,
|
|
36
36
|
GlobalCheckboxFieldCssSelector,
|
|
37
37
|
cssModule(
|
|
@@ -41,10 +41,20 @@ function CheckboxField(props, ref) {
|
|
|
41
41
|
),
|
|
42
42
|
stylingProps.className
|
|
43
43
|
);
|
|
44
|
-
const mergedStyles = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
45
|
+
return {
|
|
46
|
+
...stylingProps.style,
|
|
47
|
+
...prev
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
const renderProps = useRenderProps({
|
|
51
|
+
...props,
|
|
52
|
+
className: classNames,
|
|
53
|
+
style: mergedStyles,
|
|
54
|
+
values: {
|
|
55
|
+
isDisabled: isDisabled || false
|
|
56
|
+
}
|
|
57
|
+
});
|
|
48
58
|
const descriptionId = useId();
|
|
49
59
|
return /* @__PURE__ */ jsx(
|
|
50
60
|
SlotProvider,
|
|
@@ -65,13 +75,11 @@ function CheckboxField(props, ref) {
|
|
|
65
75
|
children: /* @__PURE__ */ jsx(
|
|
66
76
|
"div",
|
|
67
77
|
{
|
|
68
|
-
...otherProps,
|
|
78
|
+
...mergeProps(otherProps, renderProps),
|
|
69
79
|
ref,
|
|
70
|
-
className: classNames,
|
|
71
|
-
style: mergedStyles,
|
|
72
80
|
slot: slot != null ? slot : void 0,
|
|
73
81
|
"data-disabled": isDisabled,
|
|
74
|
-
children
|
|
82
|
+
children: renderProps.children
|
|
75
83
|
}
|
|
76
84
|
)
|
|
77
85
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
4
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
6
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
6
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
10
|
import { MinusIcon, CheckmarkIcon, IconContext } from '@hopper-ui/icons';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Checkbox.module.css#css-module
|
|
17
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
17
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___mAL3I", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___Wmzry", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___jhSti", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___9PFwj", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___xhUID", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___S46JE", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___UJ3Eo", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___qP2jS" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|