@hopper-ui/components 1.3.5 → 1.3.6
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 +7 -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 +724 -696
- package/dist/Form/src/Form.js +46 -46
- package/dist/Form/src/index.css +724 -696
- package/dist/Form/src/index.js +46 -46
- 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 +268 -268
- package/dist/ListBox/src/ListBox.js +9 -9
- 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 +268 -268
- package/dist/ListBox/src/index.js +9 -9
- package/dist/Select/src/Select.css +724 -696
- package/dist/Select/src/Select.js +46 -46
- package/dist/Select/src/SelectValue.css +60 -60
- package/dist/Select/src/SelectValue.js +7 -7
- package/dist/Select/src/index.css +724 -696
- package/dist/Select/src/index.js +46 -46
- 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-LIGWTMRQ.js → chunk-23GXMA5L.js} +3 -3
- package/dist/{chunk-GEYJZ3VZ.js → chunk-32QBNIEM.js} +1 -1
- package/dist/{chunk-D6CIA7NA.js → chunk-3K2JRC5Y.js} +1 -1
- package/dist/{chunk-52A7OS5J.js → chunk-46GSYJ4O.js} +5 -5
- package/dist/{chunk-GR4ZXUOX.js → chunk-4RSRAAPW.js} +15 -13
- package/dist/{chunk-LSTGTYUX.js → chunk-4U7DCAUG.js} +22 -14
- package/dist/{chunk-5PSDYTOT.js → chunk-56UB7UOG.js} +1 -1
- package/dist/{chunk-3SMTAPEK.js → chunk-5RHMPFIJ.js} +4 -4
- package/dist/{chunk-6AFXZYF5.js → chunk-6W5XVFIS.js} +4 -4
- package/dist/{chunk-2RFHHVN3.js → chunk-6XHZ6XI2.js} +4 -4
- package/dist/{chunk-3OVZI77M.js → chunk-7L5HTRIH.js} +4 -4
- package/dist/{chunk-SUXNDVNP.js → chunk-7MB63YNF.js} +24 -16
- package/dist/{chunk-S4LXTCFZ.js → chunk-AAV7H2PI.js} +4 -4
- package/dist/{chunk-QBGX4KU2.js → chunk-C2IFIGEU.js} +3 -3
- package/dist/{chunk-RMXL2PC5.js → chunk-CGL75FSH.js} +8 -6
- package/dist/{chunk-HABA5CYG.js → chunk-CVYYW7J4.js} +2 -2
- package/dist/{chunk-LI2RM2EK.js → chunk-D7KHPU3U.js} +1 -1
- package/dist/{chunk-T6MMAU6N.js → chunk-DZZ4WWRN.js} +2 -2
- package/dist/{chunk-XXFIU5GK.js → chunk-EUXXCRBZ.js} +1 -1
- package/dist/{chunk-FMNUFTYZ.js → chunk-FE6YBJMN.js} +4 -4
- package/dist/{chunk-7XEWB4YU.js → chunk-FU2IY2JF.js} +25 -18
- package/dist/{chunk-QUEZJSCY.js → chunk-G6W6FNEX.js} +3 -3
- package/dist/{chunk-RPYDBKIG.js → chunk-HXMMNMFV.js} +2 -2
- package/dist/{chunk-5IRT2QDF.js → chunk-ICGQUOUM.js} +1 -1
- package/dist/{chunk-LYTJ7OUI.js → chunk-KIZSSIMT.js} +2 -2
- package/dist/{chunk-RYROB3P6.js → chunk-LDWNFZXA.js} +1 -1
- package/dist/{chunk-CH44JMHK.js → chunk-LEPWFS5L.js} +3 -3
- package/dist/{chunk-EOXY566V.js → chunk-MYAC6TLH.js} +1 -1
- package/dist/{chunk-4UOBMEPP.js → chunk-NKZRZZMH.js} +1 -1
- package/dist/{chunk-6UW2BF2Z.js → chunk-NQYHB7S3.js} +4 -4
- package/dist/{chunk-7MCVN25U.js → chunk-NUB4BYRF.js} +22 -12
- package/dist/{chunk-Y3VCNKJB.js → chunk-NZKS5OKD.js} +22 -13
- package/dist/{chunk-NT6XKRT2.js → chunk-ODXA2UZN.js} +28 -15
- package/dist/{chunk-5IRH7LBK.js → chunk-OGIBVQFW.js} +22 -14
- package/dist/{chunk-PSGKAJML.js → chunk-OMF56Z2Y.js} +1 -1
- package/dist/{chunk-UQY26ITM.js → chunk-PNWMICY7.js} +1 -1
- package/dist/{chunk-YZEDTLPG.js → chunk-QLR77TGC.js} +1 -1
- package/dist/{chunk-EBDEMWL7.js → chunk-R4LJYEOV.js} +5 -5
- package/dist/{chunk-UEHE2IY5.js → chunk-RDPNKPZ3.js} +23 -11
- package/dist/{chunk-AIO2PFOS.js → chunk-SSCVAJ2H.js} +4 -4
- package/dist/{chunk-3KW6ENLR.js → chunk-UJVTDWNG.js} +8 -8
- package/dist/{chunk-SAHIPNPF.js → chunk-YZ676IC2.js} +5 -5
- package/dist/{chunk-24JZVLAU.js → chunk-ZSOGDKV5.js} +1 -1
- package/dist/index.css +724 -696
- package/dist/index.d.ts +1 -1
- package/dist/index.js +46 -46
- 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 +724 -696
- package/dist/overlays/Popover/src/Popover.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.js +46 -46
- package/dist/overlays/Popover/src/index.css +724 -696
- package/dist/overlays/Popover/src/index.js +46 -46
- 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,18 +1,19 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-MYAC6TLH.js';
|
|
2
2
|
import { useImageFallback } from './chunk-NS3XVOQ7.js';
|
|
3
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-NZKS5OKD.js';
|
|
5
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
8
|
import { BrokenImageRichIcon } from '@hopper-ui/icons';
|
|
7
9
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
8
|
-
import { filterDOMProps } from '@react-aria/utils';
|
|
9
|
-
import clsx from 'clsx';
|
|
10
|
+
import { filterDOMProps, mergeProps } from '@react-aria/utils';
|
|
10
11
|
import { forwardRef, useMemo } from 'react';
|
|
11
|
-
import { useContextProps } from 'react-aria-components';
|
|
12
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
12
13
|
import { jsx } from 'react/jsx-runtime';
|
|
13
14
|
|
|
14
15
|
// css-module:./Avatar.module.css#css-module
|
|
15
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___zMUBx", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___fwYJ0", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___RSYai", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___K6lSB", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___mwFIB", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___KMY1q", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___6SVrF", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___npU1o", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___F-pzz", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___2NVPh", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___3II-Z", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___0Gn--", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___Vs2U2", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___fD-81", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___UPSl5", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___b9s4c", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___bE5J8" };
|
|
16
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
17
18
|
var AvatarToTextSizeAdapter = {
|
|
18
19
|
xs: "xs",
|
|
@@ -63,7 +64,6 @@ function Avatar(props, ref) {
|
|
|
63
64
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
64
65
|
const {
|
|
65
66
|
"aria-label": ariaLabel,
|
|
66
|
-
className,
|
|
67
67
|
fallbackSrc,
|
|
68
68
|
imageProps,
|
|
69
69
|
isDisabled,
|
|
@@ -71,6 +71,7 @@ function Avatar(props, ref) {
|
|
|
71
71
|
size: sizeValue,
|
|
72
72
|
slot,
|
|
73
73
|
src,
|
|
74
|
+
className,
|
|
74
75
|
style,
|
|
75
76
|
...otherProps
|
|
76
77
|
} = ownProps;
|
|
@@ -83,7 +84,7 @@ function Avatar(props, ref) {
|
|
|
83
84
|
const isBrokenImage = src && imageFailed && fallbackSrc !== null;
|
|
84
85
|
const isImage = src && !imageFailed;
|
|
85
86
|
const isInitials = !src || src && imageFailed && fallbackSrc === null;
|
|
86
|
-
const classNames =
|
|
87
|
+
const classNames = composeClassnameRenderProps(
|
|
87
88
|
className,
|
|
88
89
|
GlobalAvatarCssSelector,
|
|
89
90
|
cssModule(
|
|
@@ -96,22 +97,30 @@ function Avatar(props, ref) {
|
|
|
96
97
|
),
|
|
97
98
|
stylingProps.className
|
|
98
99
|
);
|
|
99
|
-
const mergedStyles = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
101
|
+
return {
|
|
102
|
+
...stylingProps.style,
|
|
103
|
+
...prev
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
const renderProps = useRenderProps({
|
|
107
|
+
...props,
|
|
108
|
+
className: classNames,
|
|
109
|
+
style: mergedStyles,
|
|
110
|
+
values: {
|
|
111
|
+
isDisabled: isDisabled || false
|
|
112
|
+
}
|
|
113
|
+
});
|
|
103
114
|
if (imageFailed && fallbackSrc !== null) {
|
|
104
115
|
return /* @__PURE__ */ jsx(
|
|
105
116
|
_RichIconAvatarImage,
|
|
106
117
|
{
|
|
107
|
-
...domProps,
|
|
118
|
+
...mergeProps(domProps, renderProps),
|
|
108
119
|
"aria-label": ariaLabel != null ? ariaLabel : name,
|
|
109
|
-
className: classNames,
|
|
110
120
|
isDisabled,
|
|
111
121
|
ref,
|
|
112
122
|
size,
|
|
113
123
|
slot,
|
|
114
|
-
style: mergedStyles,
|
|
115
124
|
children: /* @__PURE__ */ jsx(BrokenImageRichIcon, {})
|
|
116
125
|
}
|
|
117
126
|
);
|
|
@@ -143,14 +152,12 @@ function Avatar(props, ref) {
|
|
|
143
152
|
return /* @__PURE__ */ jsx(
|
|
144
153
|
"div",
|
|
145
154
|
{
|
|
146
|
-
...domProps,
|
|
155
|
+
...mergeProps(domProps, renderProps),
|
|
147
156
|
"aria-label": ariaLabel != null ? ariaLabel : name,
|
|
148
|
-
className: classNames,
|
|
149
157
|
"data-disabled": isDisabled || void 0,
|
|
150
158
|
role: "img",
|
|
151
159
|
slot: slot != null ? slot : void 0,
|
|
152
160
|
ref,
|
|
153
|
-
style: mergedStyles,
|
|
154
161
|
children: content
|
|
155
162
|
}
|
|
156
163
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LinkContext } from './chunk-4VVNSXIB.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-MYAC6TLH.js';
|
|
6
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
9
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Link.module.css#css-module
|
|
16
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
16
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___ZyB-W", "hop-Link--quiet": "Link-module__hop-Link--quiet___xw3UQ", "hop-Link--primary": "Link-module__hop-Link--primary___LRFPM", "hop-Link--secondary": "Link-module__hop-Link--secondary___PS6RE", "hop-Link__icon": "Link-module__hop-Link__icon___tqMgy", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___zA3TQ", "hop-Link__text": "Link-module__hop-Link__text___X-M4s", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___Ri7ek", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___dzQhC" };
|
|
17
17
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
18
|
var LinkToIconSizeAdapter = {
|
|
19
19
|
inherit: void 0,
|
|
@@ -3,9 +3,9 @@ import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
|
3
3
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.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 { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -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___MiSJ7", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___Nriql", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___IrP-E", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___FFXm3", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___sryAv", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___U5NgA", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___T2EAn", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___-vNmu", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___ykY3T" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -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___zgPHG", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___gcDLf", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___nMqoM", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___rSb-I", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___tlBUR", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___c8Y4L" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -3,9 +3,9 @@ import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
|
3
3
|
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.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 { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 }
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./CheckboxGroup.module.css#css-module
|
|
17
|
-
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-
|
|
17
|
+
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___izA5I", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___6Gomr", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___Ja9UA", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___1e57F", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___Ytl-9", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___c9BqI", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___QLISY", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___gWeGt", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___10PiB" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Heading as Heading$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Heading.module.css#css-module
|
|
10
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-
|
|
10
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___xok42", "hop-Heading--xs": "Heading-module__hop-Heading--xs___yyvuF", "hop-Heading--sm": "Heading-module__hop-Heading--sm___KCcNN", "hop-Heading--md": "Heading-module__hop-Heading--md___IwpUP", "hop-Heading--lg": "Heading-module__hop-Heading--lg___GELZH", "hop-Heading--xl": "Heading-module__hop-Heading--xl___ixPVU", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___b7nfx", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___efLin" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.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-MYAC6TLH.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 { BulletIcon, IconContext } from '@hopper-ui/icons';
|
|
@@ -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___3GVjM", "hop-Radio--sm": "Radio-module__hop-Radio--sm___qIsKs", "hop-Radio--md": "Radio-module__hop-Radio--md___Eszb9", "hop-Radio__icon": "Radio-module__hop-Radio__icon___ChXsk", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___Xk7yf", "hop-Radio__box": "Radio-module__hop-Radio__box___wgOZS", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___f0qvY", "hop-Radio__text": "Radio-module__hop-Radio__text___2EXJv" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -9,7 +9,7 @@ import { useContextProps, Text as Text$1 } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Text.module.css#css-module
|
|
12
|
-
var Text_module_default = { "hop-Text": "Text-module__hop-
|
|
12
|
+
var Text_module_default = { "hop-Text": "Text-module__hop-Text___STL8w", "hop-Text--xs": "Text-module__hop-Text--xs___VMB69", "hop-Text--sm": "Text-module__hop-Text--sm___qeScp", "hop-Text--md": "Text-module__hop-Text--md___2mgs7", "hop-Text--lg": "Text-module__hop-Text--lg___0EFPU", "hop-Text--xl": "Text-module__hop-Text--xl___w3euL", "hop-Text--2xl": "Text-module__hop-Text--2xl___n8Xzj", "hop-Text--inherit": "Text-module__hop-Text--inherit___GpaJO" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -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___JYrVb", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___FXQRH", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___KbeNf", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___3tbZp", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___wg93y", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___kfy-2", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___fln30", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___uHxYx", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___Rq7v7", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___N7auw", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___DSgZO", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___F9UhK", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___sS9kT", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___ZlJli", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___UZEwb", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___rRXsh" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -2,12 +2,12 @@ import { isFunction } from './chunk-TIPN4VYD.js';
|
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
3
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
4
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
5
|
+
import { _ListBoxItem } from './chunk-CGL75FSH.js';
|
|
6
6
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
7
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
9
8
|
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
10
|
-
import { _Text } from './chunk-
|
|
9
|
+
import { _Text } from './chunk-MYAC6TLH.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 { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___e4j-o", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___GMtww", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___FTXLR", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___M8ZWz", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___qkK-O", "hop-ListBox__divider": "ListBox-module__hop-ListBox__divider___RwdwS" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-NZKS5OKD.js';
|
|
3
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
5
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
4
6
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
7
|
import { forwardRef } from 'react';
|
|
7
|
-
import {
|
|
8
|
+
import { mergeProps } from 'react-aria';
|
|
9
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
8
10
|
import { jsx } from 'react/jsx-runtime';
|
|
9
11
|
|
|
10
12
|
var GlobalAnonymousAvatarCssSelector = "hop-AnonymousAvatar";
|
|
@@ -14,28 +16,36 @@ function AnonymousAvatar(props, ref) {
|
|
|
14
16
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
15
17
|
const {
|
|
16
18
|
className,
|
|
17
|
-
size: sizeValue,
|
|
18
19
|
style,
|
|
20
|
+
size: sizeValue,
|
|
19
21
|
...otherProps
|
|
20
22
|
} = ownProps;
|
|
21
23
|
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
22
|
-
const classNames =
|
|
24
|
+
const classNames = composeClassnameRenderProps(
|
|
23
25
|
className,
|
|
24
26
|
GlobalAnonymousAvatarCssSelector,
|
|
25
27
|
stylingProps.className
|
|
26
28
|
);
|
|
27
|
-
const mergedStyles = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
30
|
+
return {
|
|
31
|
+
...stylingProps.style,
|
|
32
|
+
...prev
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
const renderProps = useRenderProps({
|
|
36
|
+
...otherProps,
|
|
37
|
+
className: classNames,
|
|
38
|
+
style: mergedStyles,
|
|
39
|
+
values: {
|
|
40
|
+
isDisabled: props.isDisabled || false
|
|
41
|
+
}
|
|
42
|
+
});
|
|
31
43
|
return /* @__PURE__ */ jsx(
|
|
32
44
|
_RichIconAvatarImage,
|
|
33
45
|
{
|
|
34
|
-
...otherProps,
|
|
35
|
-
className: classNames,
|
|
46
|
+
...mergeProps(otherProps, renderProps),
|
|
36
47
|
ref,
|
|
37
48
|
size,
|
|
38
|
-
style: mergedStyles,
|
|
39
49
|
children: /* @__PURE__ */ jsx(AnonymousRichIcon, {})
|
|
40
50
|
}
|
|
41
51
|
);
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
2
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
1
3
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
2
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
5
|
import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
|
|
4
6
|
import { RichIconContext } from '@hopper-ui/icons';
|
|
5
7
|
import { useStyledSystem, useResponsiveValue } 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:./RichIconAvatarImage.module.css#css-module
|
|
12
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
14
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___3-4v6", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___bQsOe", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___XA19V", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___xr-lR", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___Xtfzn", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___fUQr1", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___Qkwlw", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___-LdB5" };
|
|
13
15
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
16
|
var AvatarToIconSizeAdapter = {
|
|
15
17
|
xs: "md",
|
|
@@ -24,7 +26,6 @@ function RichIconAvatarImage(props, ref) {
|
|
|
24
26
|
[props, ref] = useContextProps(props, ref, RichIconAvatarImageContext);
|
|
25
27
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
26
28
|
const {
|
|
27
|
-
children,
|
|
28
29
|
className,
|
|
29
30
|
isDisabled,
|
|
30
31
|
style,
|
|
@@ -33,7 +34,7 @@ function RichIconAvatarImage(props, ref) {
|
|
|
33
34
|
...otherProps
|
|
34
35
|
} = ownProps;
|
|
35
36
|
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
36
|
-
const classNames =
|
|
37
|
+
const classNames = composeClassnameRenderProps(
|
|
37
38
|
className,
|
|
38
39
|
GlobalRichIconAvatarImageCssSelector,
|
|
39
40
|
cssModule(
|
|
@@ -43,20 +44,28 @@ function RichIconAvatarImage(props, ref) {
|
|
|
43
44
|
),
|
|
44
45
|
stylingProps.className
|
|
45
46
|
);
|
|
46
|
-
const mergedStyles = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
48
|
+
return {
|
|
49
|
+
...stylingProps.style,
|
|
50
|
+
...prev
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
const renderProps = useRenderProps({
|
|
54
|
+
...props,
|
|
55
|
+
className: classNames,
|
|
56
|
+
style: mergedStyles,
|
|
57
|
+
values: {
|
|
58
|
+
isDisabled: isDisabled || false
|
|
59
|
+
}
|
|
60
|
+
});
|
|
50
61
|
if (!props["aria-label"] && !props["aria-labelledby"]) {
|
|
51
62
|
console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
52
63
|
}
|
|
53
64
|
return /* @__PURE__ */ jsx(
|
|
54
65
|
"div",
|
|
55
66
|
{
|
|
56
|
-
...otherProps,
|
|
67
|
+
...mergeProps(otherProps, renderProps),
|
|
57
68
|
ref,
|
|
58
|
-
className: classNames,
|
|
59
|
-
style: mergedStyles,
|
|
60
69
|
slot: slot != null ? slot : void 0,
|
|
61
70
|
role: "img",
|
|
62
71
|
"data-disabled": isDisabled || void 0,
|
|
@@ -69,7 +78,7 @@ function RichIconAvatarImage(props, ref) {
|
|
|
69
78
|
size: AvatarToIconSizeAdapter[size]
|
|
70
79
|
}]
|
|
71
80
|
],
|
|
72
|
-
children
|
|
81
|
+
children: renderProps.children
|
|
73
82
|
}
|
|
74
83
|
)
|
|
75
84
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-EUXXCRBZ.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___RGKDc" };
|
|
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
|
}
|
|
@@ -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___vf1MO", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___g7W5A", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___4kKpo", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___nhfiF", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___6R77t" };
|
|
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
|
}
|
|
@@ -13,7 +13,7 @@ import { useContextProps, FieldErrorContext, TagGroup as TagGroup$1 } from 'reac
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./TagGroup.module.css#css-module
|
|
16
|
-
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-
|
|
16
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___41aHV", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___wHna0", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___CGwly", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___Lhj6I", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___5mwOJ" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -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___Q3MT-" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
13
|
function IconList(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-NKZRZZMH.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|