@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,10 +1,12 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-ZVOVNXPJ.js';
|
|
3
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
5
|
import { DeletedUserRichIcon } 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 GlobalDeletedAvatarCssSelector = "hop-DeletedAvatar";
|
|
@@ -16,26 +18,36 @@ function DeletedAvatar(props, ref) {
|
|
|
16
18
|
className,
|
|
17
19
|
size: sizeValue,
|
|
18
20
|
style,
|
|
21
|
+
isDisabled,
|
|
19
22
|
...otherProps
|
|
20
23
|
} = ownProps;
|
|
21
24
|
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
22
|
-
const classNames =
|
|
25
|
+
const classNames = composeClassnameRenderProps(
|
|
23
26
|
className,
|
|
24
27
|
GlobalDeletedAvatarCssSelector,
|
|
25
28
|
stylingProps.className
|
|
26
29
|
);
|
|
27
|
-
const mergedStyles = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
31
|
+
return {
|
|
32
|
+
...stylingProps.style,
|
|
33
|
+
...prev
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const renderProps = useRenderProps({
|
|
37
|
+
...props,
|
|
38
|
+
className: classNames,
|
|
39
|
+
style: mergedStyles,
|
|
40
|
+
values: {
|
|
41
|
+
isDisabled: isDisabled || false
|
|
42
|
+
}
|
|
43
|
+
});
|
|
31
44
|
return /* @__PURE__ */ jsx(
|
|
32
45
|
_RichIconAvatarImage,
|
|
33
46
|
{
|
|
34
|
-
...otherProps,
|
|
35
|
-
|
|
47
|
+
...mergeProps(otherProps, renderProps),
|
|
48
|
+
isDisabled,
|
|
36
49
|
ref,
|
|
37
50
|
size,
|
|
38
|
-
style: mergedStyles,
|
|
39
51
|
children: /* @__PURE__ */ jsx(DeletedUserRichIcon, {})
|
|
40
52
|
}
|
|
41
53
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-BUI76FPU.js';
|
|
3
|
+
import { _EmbeddedButton } from './chunk-SRT6TJ7K.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
8
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
9
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
11
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
12
12
|
import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, Input, TextField } from 'react-ari
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./PasswordField.module.css#css-module
|
|
21
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-
|
|
21
|
+
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___I0UHA", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___T093p", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___SFE1N", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___z0KM7", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___St921", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___Vsrgm" };
|
|
22
22
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
23
23
|
function PasswordField(props, ref) {
|
|
24
24
|
var _a;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useScale } from './chunk-MTDFS4CZ.js';
|
|
2
2
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
3
|
+
import { _InputGroup } from './chunk-BUI76FPU.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
10
9
|
import { TextContext } from './chunk-X6SER3TZ.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 { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
@@ -21,7 +21,7 @@ import { useContextProps, composeRenderProps, Input, NumberField as NumberField$
|
|
|
21
21
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
22
|
|
|
23
23
|
// css-module:./NumberField.module.css#css-module
|
|
24
|
-
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-
|
|
24
|
+
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___-spFY", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___HuQeh", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___jiJLy", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___kcHPU", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___kC1mi", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___GmvOU", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___tIjYw", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___hYZXB", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___hfKPt", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___pUp8-", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___-0RGO", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___oNcII", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___l7rJE", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___JmJl4" };
|
|
25
25
|
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
26
26
|
var StepperButton = ({ direction }) => {
|
|
27
27
|
const scale = useScale();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-SRT6TJ7K.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___Arx5F", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___NWsRs", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___qpzvW", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___5I3kP", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___z1uMe", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___7mR52" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -10,7 +10,7 @@ import { useContextProps, useSlottedContext, InputContext, TextAreaContext, Fiel
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./InputGroup.module.css#css-module
|
|
13
|
-
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-
|
|
13
|
+
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___IeLq4", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___bBTdC", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___rt-ic", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___pobIV", "hop-InputGroup__textarea": "InputGroup-module__hop-InputGroup__textarea___h-ACH", "hop-InputGroup__embedded-button": "InputGroup-module__hop-InputGroup__embedded-button___tggVm" };
|
|
14
14
|
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
15
15
|
function InputGroup(props, ref) {
|
|
16
16
|
var _a, _b;
|
|
@@ -1,11 +1,11 @@
|
|
|
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 {
|
|
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 { BulletIcon, IconContext } 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:./DecorativeRadio.module.css#css-module
|
|
19
|
-
var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-
|
|
19
|
+
var DecorativeRadio_module_default = { "hop-DecorativeRadio": "DecorativeRadio-module__hop-DecorativeRadio___xR3qR Radio-module__hop-Radio___5q4dw", "hop-DecorativeRadio--sm": "DecorativeRadio-module__hop-DecorativeRadio--sm___IYfZ4 Radio-module__hop-Radio--sm___4LYS8", "hop-DecorativeRadio--md": "DecorativeRadio-module__hop-DecorativeRadio--md___dT1bE Radio-module__hop-Radio--md___As58o", "hop-DecorativeRadio__icon": "DecorativeRadio-module__hop-DecorativeRadio__icon___-h3p5 Radio-module__hop-Radio__icon___KdTxL", "hop-DecorativeRadio__icon-list": "DecorativeRadio-module__hop-DecorativeRadio__icon-list___MZItP Radio-module__hop-Radio__icon___KdTxL", "hop-DecorativeRadio__box": "DecorativeRadio-module__hop-DecorativeRadio__box___t1G2C Radio-module__hop-Radio__box___RRBuh", "hop-DecorativeRadio__bullet": "DecorativeRadio-module__hop-DecorativeRadio__bullet___vV0nA Radio-module__hop-Radio__bullet___BZw7q", "hop-DecorativeRadio__text": "DecorativeRadio-module__hop-DecorativeRadio__text___guri5 Radio-module__hop-Radio__text___Q7Ytg" };
|
|
20
20
|
var GlobalDecorativeRadioCssSelector = "hop-DecorativeRadio";
|
|
21
21
|
function DecorativeRadio(props, ref) {
|
|
22
22
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { InfoIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, FieldErrorContext } from 'react-aria-components';
|
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./HelperMessage.module.css#css-module
|
|
12
|
-
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-
|
|
12
|
+
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-HelperMessage___l3cUu", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___1Lei9" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -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___Ah-Aa", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___5kFP2", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___6apIw", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___5vb0-", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___rB3-j", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___cG-5O", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___El7jL", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___7I6oj", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___5xw7d" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -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___bQxw7", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___cVWgA", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___luCe0", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___35gef", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___QBlgC" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
2
2
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
4
|
-
import { _ClearButton } from './chunk-
|
|
3
|
+
import { _InputGroup } from './chunk-BUI76FPU.js';
|
|
4
|
+
import { _ClearButton } from './chunk-AWYN6573.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
7
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
8
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
8
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
10
9
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
11
|
-
import { _Text } from './chunk-
|
|
10
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
12
11
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
13
12
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
14
14
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
15
15
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
16
16
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -23,7 +23,7 @@ import { useContextProps, composeRenderProps, Input, TextField as TextField$1 }
|
|
|
23
23
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
24
24
|
|
|
25
25
|
// css-module:./TextField.module.css#css-module
|
|
26
|
-
var TextField_module_default = { "hop-TextField": "TextField-module__hop-
|
|
26
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___h9LPC", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___Vhft-", "hop-TextField__Label": "TextField-module__hop-TextField__Label___vjdjj", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___y4SIt", "hop-TextField__char-count": "TextField-module__hop-TextField__char-count___w-Y38", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___crbeu", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___m-vG9", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___ahKEe" };
|
|
27
27
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
28
28
|
function TextField(props, ref) {
|
|
29
29
|
var _a;
|
|
@@ -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-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 { 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___5q4dw", "hop-Radio--sm": "Radio-module__hop-Radio--sm___4LYS8", "hop-Radio--md": "Radio-module__hop-Radio--md___As58o", "hop-Radio__icon": "Radio-module__hop-Radio__icon___KdTxL", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___4rAJh", "hop-Radio__box": "Radio-module__hop-Radio__box___RRBuh", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___BZw7q", "hop-Radio__text": "Radio-module__hop-Radio__text___Q7Ytg" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -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-F4XYXAPX.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___hx42L", "hop-Link--quiet": "Link-module__hop-Link--quiet___Sdez0", "hop-Link--primary": "Link-module__hop-Link--primary___pd6jh", "hop-Link--secondary": "Link-module__hop-Link--secondary___ZmHJ9", "hop-Link__icon": "Link-module__hop-Link__icon___EzbcC", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___kDa2B", "hop-Link__text": "Link-module__hop-Link__text___4wQpK", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___REGAG", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___lhZ1C" };
|
|
17
17
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
18
|
var LinkToIconSizeAdapter = {
|
|
19
19
|
inherit: void 0,
|
|
@@ -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___R8UuG", "hop-Text--xs": "Text-module__hop-Text--xs___N8buF", "hop-Text--sm": "Text-module__hop-Text--sm___ZTn2L", "hop-Text--md": "Text-module__hop-Text--md___PaS1r", "hop-Text--lg": "Text-module__hop-Text--lg___Wi5qN", "hop-Text--xl": "Text-module__hop-Text--xl___zM1uq", "hop-Text--2xl": "Text-module__hop-Text--2xl___OWNYz", "hop-Text--inherit": "Text-module__hop-Text--inherit___r9ZJy" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-ZVOVNXPJ.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,15 @@
|
|
|
1
1
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
|
-
import { _ClearButton } from './chunk-
|
|
3
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _ClearButton } from './chunk-AWYN6573.js';
|
|
3
|
+
import { _Spinner } from './chunk-PGYHBNCP.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
7
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
9
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
10
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
11
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
12
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
13
13
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
14
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
15
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, composeRenderProps, Tag as Tag$1 } from 'react-aria-co
|
|
|
19
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Tag.module.css#css-module
|
|
22
|
-
var Tag_module_default = { "hop-Tag": "Tag-module__hop-
|
|
22
|
+
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___Yy8k4", "hop-Tag--sm": "Tag-module__hop-Tag--sm___P8TCA", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___G2Agr", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___mraiV", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___CSU4h", "hop-Tag--md": "Tag-module__hop-Tag--md___2CaEV", "hop-Tag--lg": "Tag-module__hop-Tag--lg___8Dk2T", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___yOJvu", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___IqCd5", "hop-Tag--progress": "Tag-module__hop-Tag--progress___cH-Ng", "hop-Tag--positive": "Tag-module__hop-Tag--positive___2EKCj", "hop-Tag--caution": "Tag-module__hop-Tag--caution___ph-FI", "hop-Tag--negative": "Tag-module__hop-Tag--negative___CvM-K", "hop-Tag--option1": "Tag-module__hop-Tag--option1___ZQJIo", "hop-Tag--option2": "Tag-module__hop-Tag--option2___mQBU7", "hop-Tag--option3": "Tag-module__hop-Tag--option3___AQSPe", "hop-Tag--option4": "Tag-module__hop-Tag--option4___JVMM0", "hop-Tag--option5": "Tag-module__hop-Tag--option5___uMkwG", "hop-Tag--option6": "Tag-module__hop-Tag--option6___1Vk-2", "hop-Tag__icon": "Tag-module__hop-Tag__icon___-1ejX", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___xKNVa", "hop-Tag__text": "Tag-module__hop-Tag__text___sSfKQ", "hop-Tag__badge": "Tag-module__hop-Tag__badge___2wkBC" };
|
|
23
23
|
var GlobalTagCssSelector = "hop-Tag";
|
|
24
24
|
var TagToTextSizeAdapter = {
|
|
25
25
|
sm: "xs",
|
|
@@ -8,7 +8,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./Label.module.css#css-module
|
|
11
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
11
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___EE-2i", "hop-Label__indicator": "Label-module__hop-Label__indicator___QZV-x" };
|
|
12
12
|
var GlobalLabelCssSelector = "hop-Label";
|
|
13
13
|
function Label(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-F4XYXAPX.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-ZVOVNXPJ.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___wvVPM", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___xWSLM", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___aYlLW", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___kS3ss", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___gjqxK", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___Pyynt", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___L9LKX", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___G27ag", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___nRYtl", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___YIsiX", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___6LeoD", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___B92oN", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___xfeoB", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___XIlFt", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___v9I39", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___thark", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___W02lq" };
|
|
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,14 +1,14 @@
|
|
|
1
|
-
import { _DecorativeRadio } from './chunk-
|
|
2
|
-
import { _DecorativeCheckbox } from './chunk-
|
|
1
|
+
import { _DecorativeRadio } from './chunk-BZC3DOXC.js';
|
|
2
|
+
import { _DecorativeCheckbox } from './chunk-MTQURD2G.js';
|
|
3
3
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
4
|
-
import { _ListBoxItemSkeleton } from './chunk-
|
|
4
|
+
import { _ListBoxItemSkeleton } from './chunk-BNBUTFBN.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
7
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
9
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
10
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
10
|
import { AvatarContext } from './chunk-AES7QBQE.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 { CheckmarkIcon, IconContext } from '@hopper-ui/icons';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBoxItem as ListBoxItem$1, List
|
|
|
18
18
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBoxItem.module.css#css-module
|
|
21
|
-
var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-
|
|
21
|
+
var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-ListBoxItem___EKD3-", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___QDUaN", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___MkxrY", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___Sh68L", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___mYIg-", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___UCV4p", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___J2oC8", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___6SsEU", "hop-ListBoxItem__radio": "ListBoxItem-module__hop-ListBoxItem__radio___L0Jyk", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___-3EFw", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___K3ccZ", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___BlnB-", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___gRpdF", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___46Wdm", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___BW6ws", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___5EhSc", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___3pjXI" };
|
|
22
22
|
var GlobalListBoxItemCssSelector = "hop-ListBoxItem";
|
|
23
23
|
var ListBoxItemToIconSizeAdapter = {
|
|
24
24
|
xs: "sm",
|
|
@@ -214,6 +214,8 @@ function ListBoxItem(props, ref) {
|
|
|
214
214
|
isDisabled: isLoading || isDisabled,
|
|
215
215
|
"data-invalid": isInvalid || void 0,
|
|
216
216
|
"data-loading": isLoading || void 0,
|
|
217
|
+
"aria-label": isLoading ? "Loading" : void 0,
|
|
218
|
+
"aria-live": isLoading ? "polite" : void 0,
|
|
217
219
|
children: (listBoxItemProps) => {
|
|
218
220
|
if (isLoading) {
|
|
219
221
|
return /* @__PURE__ */ jsx(
|