@hopper-ui/components 1.0.4 → 1.0.5
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 +69 -0
- package/dist/Avatar/src/AnonymousAvatar.d.ts +29 -0
- package/dist/Avatar/src/AnonymousAvatar.js +7 -0
- package/dist/Avatar/src/Avatar.css +265 -0
- package/dist/Avatar/src/Avatar.d.ts +60 -0
- package/dist/Avatar/src/Avatar.js +11 -0
- package/dist/Avatar/src/AvatarContext.d.ts +12 -0
- package/dist/Avatar/src/AvatarContext.js +2 -0
- package/dist/Avatar/src/DeletedAvatar.css +69 -0
- package/dist/Avatar/src/DeletedAvatar.d.ts +29 -0
- package/dist/Avatar/src/DeletedAvatar.js +7 -0
- package/dist/Avatar/src/RichIconAvatarImage.css +69 -0
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +32 -0
- package/dist/Avatar/src/RichIconAvatarImage.js +5 -0
- package/dist/Avatar/src/RichIconAvatarImageContext.d.ts +14 -0
- package/dist/Avatar/src/RichIconAvatarImageContext.js +2 -0
- package/dist/Avatar/src/index.css +265 -0
- package/dist/Avatar/src/index.d.ts +14 -0
- package/dist/Avatar/src/index.js +13 -0
- package/dist/Avatar/src/useImageFallback.d.ts +34 -0
- package/dist/Avatar/src/useImageFallback.js +2 -0
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +2 -2
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +5 -5
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +5 -5
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/badge/src/Badge.css +10 -10
- package/dist/badge/src/Badge.js +2 -2
- package/dist/badge/src/index.css +10 -10
- package/dist/badge/src/index.js +2 -2
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.d.ts +2 -2
- package/dist/buttons/src/Button.js +6 -6
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +9 -9
- package/dist/checkbox/src/Checkbox.css +35 -35
- package/dist/checkbox/src/Checkbox.js +4 -4
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +70 -70
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/index.css +70 -70
- package/dist/checkbox/src/index.js +6 -6
- package/dist/chip/src/Chip.css +33 -33
- package/dist/chip/src/Chip.js +3 -3
- package/dist/chip/src/index.css +33 -33
- package/dist/chip/src/index.js +3 -3
- package/dist/{chunk-QJBQRYJS.js → chunk-22YUFCHD.js} +2 -2
- package/dist/{chunk-BCHUEONM.js → chunk-3IEED7AY.js} +1 -1
- package/dist/{chunk-F7HR3VI4.js → chunk-3OWQHIJ6.js} +2 -2
- package/dist/{chunk-2CKDJG6R.js → chunk-5F5CWOM4.js} +1 -1
- package/dist/{chunk-FGDSWA7S.js → chunk-6WWYES56.js} +1 -1
- package/dist/{chunk-WGDP4ECF.js → chunk-7Q7VIED2.js} +1 -1
- package/dist/chunk-AES7QBQE.js +7 -0
- package/dist/{chunk-BGESEKEN.js → chunk-BD53A2LL.js} +4 -4
- package/dist/{chunk-Y7XWWUMU.js → chunk-BVGKXCQH.js} +2 -2
- package/dist/chunk-CP4AWOFU.js +81 -0
- package/dist/{chunk-6MSYEF4W.js → chunk-F7S2I43Y.js} +1 -1
- package/dist/chunk-FYDLV5BM.js +46 -0
- package/dist/{chunk-OMBQ3J4O.js → chunk-GELM73MQ.js} +4 -4
- package/dist/chunk-GFHBDUJD.js +17 -0
- package/dist/{chunk-DZTMUFVC.js → chunk-GWEUWPLT.js} +1 -1
- package/dist/{chunk-GBABMUAI.js → chunk-IIZECZAH.js} +2 -2
- package/dist/chunk-JWW56J7M.js +7 -0
- package/dist/{chunk-RCFB4SN4.js → chunk-KOA2CREJ.js} +5 -5
- package/dist/{chunk-PEPKE5SW.js → chunk-KOJGCQ3F.js} +3 -3
- package/dist/{chunk-LSVXKVG4.js → chunk-KQPY2D3P.js} +1 -1
- package/dist/{chunk-Y3L6TPP3.js → chunk-LUAIMTPE.js} +5 -5
- package/dist/{chunk-Z3ID4UEE.js → chunk-N77LTZ4U.js} +3 -15
- package/dist/chunk-NS3XVOQ7.js +53 -0
- package/dist/{chunk-SWMFTL46.js → chunk-NXNV5JDN.js} +50 -31
- package/dist/chunk-OPFRM3JC.js +161 -0
- package/dist/{chunk-5GRWAXTT.js → chunk-P7JRKXBD.js} +1 -1
- package/dist/{chunk-ZAJJD5FY.js → chunk-T6VFQSII.js} +4 -4
- package/dist/{chunk-N745TDH5.js → chunk-THCG3QCD.js} +1 -1
- package/dist/{chunk-HDYG2F3D.js → chunk-TM6742MU.js} +1 -1
- package/dist/{chunk-CPWTHZGJ.js → chunk-UOBWYTW7.js} +5 -5
- package/dist/{chunk-TSXPLL55.js → chunk-UYVKDU2W.js} +2 -2
- package/dist/{chunk-PDYU6DNF.js → chunk-W2SKBBWE.js} +2 -2
- package/dist/{chunk-XSASR6CK.js → chunk-WFPCHFJI.js} +1 -1
- package/dist/{chunk-LRXYIR2A.js → chunk-WNVTTHBK.js} +2 -2
- package/dist/chunk-Z33QZKRG.js +46 -0
- package/dist/{chunk-TR7YX3IZ.js → chunk-ZCEVY7LM.js} +3 -3
- package/dist/errorMessage/src/ErrorMessage.css +11 -11
- package/dist/errorMessage/src/ErrorMessage.js +2 -2
- package/dist/errorMessage/src/index.css +11 -11
- package/dist/errorMessage/src/index.js +2 -2
- package/dist/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/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/PasswordField.css +540 -355
- package/dist/inputs/src/PasswordField.js +40 -32
- package/dist/inputs/src/SearchField.css +546 -361
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +40 -32
- package/dist/inputs/src/TextField.css +541 -356
- package/dist/inputs/src/TextField.js +40 -32
- package/dist/inputs/src/index.css +541 -356
- package/dist/inputs/src/index.js +40 -32
- package/dist/layout/src/Grid.d.ts +2 -22
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/grid-helpers.d.ts +24 -0
- package/dist/layout/src/grid-helpers.js +2 -0
- package/dist/overlays/Popover/src/Popover.css +600 -415
- package/dist/overlays/Popover/src/Popover.js +39 -31
- package/dist/overlays/Popover/src/index.css +600 -415
- package/dist/overlays/Popover/src/index.js +39 -31
- package/dist/radio/src/Radio.css +32 -32
- package/dist/radio/src/Radio.js +4 -4
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +67 -67
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +67 -67
- package/dist/radio/src/index.js +7 -7
- package/dist/switch/src/Switch.css +27 -28
- package/dist/switch/src/Switch.js +4 -4
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +33 -34
- package/dist/switch/src/index.js +5 -5
- package/dist/tag/src/Tag.css +593 -408
- package/dist/tag/src/Tag.js +38 -30
- package/dist/tag/src/TagGroup.css +28 -28
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +593 -408
- package/dist/tag/src/index.js +38 -30
- package/dist/typography/Heading/src/Heading.css +593 -408
- package/dist/typography/Heading/src/Heading.js +38 -30
- package/dist/typography/Heading/src/index.css +593 -408
- package/dist/typography/Heading/src/index.js +38 -30
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- 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.js +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
2
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
3
|
+
import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
|
|
4
|
+
import { RichIconContext } from '@hopper-ui/icons';
|
|
5
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import { forwardRef } from 'react';
|
|
8
|
+
import { useContextProps } from 'react-aria-components';
|
|
9
|
+
import { jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
12
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___oV9WF", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kdGVl", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___4WUqP", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___fsiew", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___BJtzS", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___MFhsm", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___jFtFa", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___9-bD3" };
|
|
13
|
+
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
|
+
var AvatarToIconSizeAdapter = {
|
|
15
|
+
xs: "md",
|
|
16
|
+
sm: "md",
|
|
17
|
+
md: "lg",
|
|
18
|
+
lg: "xl",
|
|
19
|
+
xl: "xl",
|
|
20
|
+
"2xl": "xl"
|
|
21
|
+
};
|
|
22
|
+
function RichIconAvatarImage(props, ref) {
|
|
23
|
+
var _a;
|
|
24
|
+
[props, ref] = useContextProps(props, ref, RichIconAvatarImageContext);
|
|
25
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
26
|
+
const {
|
|
27
|
+
children,
|
|
28
|
+
className,
|
|
29
|
+
isDisabled,
|
|
30
|
+
style,
|
|
31
|
+
slot,
|
|
32
|
+
size: sizeValue,
|
|
33
|
+
...otherProps
|
|
34
|
+
} = ownProps;
|
|
35
|
+
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
36
|
+
const classNames = clsx(
|
|
37
|
+
className,
|
|
38
|
+
GlobalRichIconAvatarImageCssSelector,
|
|
39
|
+
cssModule(
|
|
40
|
+
RichIconAvatarImage_module_default,
|
|
41
|
+
"hop-RichIconAvatarImage",
|
|
42
|
+
size
|
|
43
|
+
),
|
|
44
|
+
stylingProps.className
|
|
45
|
+
);
|
|
46
|
+
const mergedStyles = {
|
|
47
|
+
...stylingProps.style,
|
|
48
|
+
...style
|
|
49
|
+
};
|
|
50
|
+
if (!props["aria-label"] && !props["aria-labelledby"]) {
|
|
51
|
+
console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
...otherProps,
|
|
57
|
+
ref,
|
|
58
|
+
className: classNames,
|
|
59
|
+
style: mergedStyles,
|
|
60
|
+
slot: slot != null ? slot : void 0,
|
|
61
|
+
role: "img",
|
|
62
|
+
"data-disabled": isDisabled || void 0,
|
|
63
|
+
children: /* @__PURE__ */ jsx(
|
|
64
|
+
SlotProvider,
|
|
65
|
+
{
|
|
66
|
+
values: [
|
|
67
|
+
[RichIconContext, {
|
|
68
|
+
className: RichIconAvatarImage_module_default["hop-RichIconAvatarImage__icon"],
|
|
69
|
+
size: AvatarToIconSizeAdapter[size]
|
|
70
|
+
}]
|
|
71
|
+
],
|
|
72
|
+
children
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
var _RichIconAvatarImage = forwardRef(RichIconAvatarImage);
|
|
79
|
+
_RichIconAvatarImage.displayName = "RichIconAvatarImage";
|
|
80
|
+
|
|
81
|
+
export { AvatarToIconSizeAdapter, GlobalRichIconAvatarImageCssSelector, _RichIconAvatarImage };
|
|
@@ -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___aWxfX", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___MHkDZ", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___hXT2I", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___XoFBK" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-CP4AWOFU.js';
|
|
3
|
+
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
4
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps } from 'react-aria-components';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var GlobalAnonymousAvatarCssSelector = "hop-AnonymousAvatar";
|
|
11
|
+
function AnonymousAvatar(props, ref) {
|
|
12
|
+
var _a;
|
|
13
|
+
[props, ref] = useContextProps(props, ref, AvatarContext);
|
|
14
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
15
|
+
const {
|
|
16
|
+
className,
|
|
17
|
+
size: sizeValue,
|
|
18
|
+
style,
|
|
19
|
+
...otherProps
|
|
20
|
+
} = ownProps;
|
|
21
|
+
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
22
|
+
const classNames = clsx(
|
|
23
|
+
className,
|
|
24
|
+
GlobalAnonymousAvatarCssSelector,
|
|
25
|
+
stylingProps.className
|
|
26
|
+
);
|
|
27
|
+
const mergedStyles = {
|
|
28
|
+
...stylingProps.style,
|
|
29
|
+
...style
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
_RichIconAvatarImage,
|
|
33
|
+
{
|
|
34
|
+
...otherProps,
|
|
35
|
+
className: classNames,
|
|
36
|
+
ref,
|
|
37
|
+
size,
|
|
38
|
+
style: mergedStyles,
|
|
39
|
+
children: /* @__PURE__ */ jsx(AnonymousRichIcon, {})
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
var _AnonymousAvatar = forwardRef(AnonymousAvatar);
|
|
44
|
+
_AnonymousAvatar.displayName = "AnonymousAvatar";
|
|
45
|
+
|
|
46
|
+
export { GlobalAnonymousAvatarCssSelector, _AnonymousAvatar };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import {
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
+
import { _Text } from './chunk-7Q7VIED2.js';
|
|
4
6
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
5
7
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
10
10
|
import { MinusIcon, CheckmarkIcon, IconContext } from '@hopper-ui/icons';
|
|
11
11
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
12
12
|
import { forwardRef } from 'react';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Checkbox.module.css#css-module
|
|
17
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
17
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___UXMSX", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___reHt-", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___TaQ-X", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___7Azr1", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___dm1GP", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___TVJjj", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___32rNl", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___dsqyq" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getSizingValue } from '@hopper-ui/styled-system';
|
|
2
|
+
|
|
3
|
+
// src/layout/src/grid-helpers.ts
|
|
4
|
+
function repeat(count, repetition) {
|
|
5
|
+
return `repeat(${count}, ${Array.isArray(repetition) ? interpolateGridTemplateArray(repetition) : getSizingValue(repetition)})`;
|
|
6
|
+
}
|
|
7
|
+
function minmax(min, max) {
|
|
8
|
+
return `minmax(${getSizingValue(min)}, ${getSizingValue(max)})`;
|
|
9
|
+
}
|
|
10
|
+
function fitContent(dimension) {
|
|
11
|
+
return `fit-content(${getSizingValue(dimension)})`;
|
|
12
|
+
}
|
|
13
|
+
function interpolateGridTemplateArray(values) {
|
|
14
|
+
return values.map((x) => getSizingValue(x)).join(" ");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { fitContent, minmax, repeat };
|
|
@@ -9,7 +9,7 @@ import { useContextProps, useSlottedContext, InputContext, composeRenderProps, G
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./InputGroup.module.css#css-module
|
|
12
|
-
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-
|
|
12
|
+
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___e9z-X", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___8BiWy", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___fqMJ7", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___GP9M7" };
|
|
13
13
|
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
14
14
|
function InputGroup(props, ref) {
|
|
15
15
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-ESVVLTEN.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-7Q7VIED2.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___S3jpD", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___bbmtR" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
2
|
-
import { _Text } from './chunk-WGDP4ECF.js';
|
|
3
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
2
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
8
4
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
5
|
+
import { _Text } from './chunk-7Q7VIED2.js';
|
|
6
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { IconContext } from '@hopper-ui/icons';
|
|
10
10
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
11
|
import { forwardRef } from 'react';
|
|
@@ -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___UXQIE", "hop-Link--quiet": "Link-module__hop-Link--quiet___wGnRL", "hop-Link--primary": "Link-module__hop-Link--primary___ti1DR", "hop-Link--secondary": "Link-module__hop-Link--secondary___WUbS9", "hop-Link__icon": "Link-module__hop-Link__icon___4hTxA", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___4mwdq", "hop-Link__text": "Link-module__hop-Link__text___zwfdO", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___qb39L", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___2OqTa" };
|
|
17
17
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
18
|
var LinkToIconSizeAdapter = {
|
|
19
19
|
inherit: void 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChipContext } from './chunk-WTKIUAHI.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import {
|
|
3
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
+
import { _Text } from './chunk-7Q7VIED2.js';
|
|
4
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
6
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
8
8
|
import { IconContext } from '@hopper-ui/icons';
|
|
9
9
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
10
10
|
import clsx from 'clsx';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, DEFAULT_SLOT } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Chip.module.css#css-module
|
|
16
|
-
var Chip_module_default = { "hop-Chip": "Chip-module__hop-
|
|
16
|
+
var Chip_module_default = { "hop-Chip": "Chip-module__hop-Chip___cxU82", "hop-Chip--xs": "Chip-module__hop-Chip--xs___MPhiR", "hop-Chip--sm": "Chip-module__hop-Chip--sm___OYijB", "hop-Chip--md": "Chip-module__hop-Chip--md___-CMix", "hop-Chip--lg": "Chip-module__hop-Chip--lg___j1jM1", "hop-Chip--neutral": "Chip-module__hop-Chip--neutral___kLtLJ", "hop-Chip--progress": "Chip-module__hop-Chip--progress___5GBF8", "hop-Chip--positive": "Chip-module__hop-Chip--positive___F-3cU", "hop-Chip--caution": "Chip-module__hop-Chip--caution___ezAXo", "hop-Chip--negative": "Chip-module__hop-Chip--negative___SrEHc", "hop-Chip--option1": "Chip-module__hop-Chip--option1___TNAVL", "hop-Chip--option2": "Chip-module__hop-Chip--option2___WFy37", "hop-Chip--option3": "Chip-module__hop-Chip--option3___qYEVE", "hop-Chip--option4": "Chip-module__hop-Chip--option4___MHav7", "hop-Chip--option5": "Chip-module__hop-Chip--option5___Y-i-5", "hop-Chip--option6": "Chip-module__hop-Chip--option6___qTRX9", "hop-Chip--inactive": "Chip-module__hop-Chip--inactive___vSk80", "hop-Chip--disabled": "Chip-module__hop-Chip--disabled___175zy", "hop-Chip__icon": "Chip-module__hop-Chip__icon___yyVQ2", "hop-Chip__icon-list": "Chip-module__hop-Chip__icon-list___fSAV6", "hop-Chip__text": "Chip-module__hop-Chip__text___hO2-Q", "hop-Chip__end-icon": "Chip-module__hop-Chip__end-icon___thI6k", "hop-Chip__end-icon-list": "Chip-module__hop-Chip__end-icon-list___sNXbx" };
|
|
17
17
|
var GlobalChipCssSelector = "hop-Chip";
|
|
18
18
|
var ChipToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -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___RPSFN", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___JQ1vq", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___toUIA", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___WTdo9", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___03x3Q", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___Q9VIf", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___dEHSn", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___EKYu4", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___gDUBN" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
2
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-H6CDFWVR.js';
|
|
4
|
-
import { _Spinner } from './chunk-
|
|
4
|
+
import { _Spinner } from './chunk-BVGKXCQH.js';
|
|
5
5
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
6
6
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
7
|
-
import { _Text } from './chunk-WGDP4ECF.js';
|
|
8
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
9
|
+
import { _Text } from './chunk-7Q7VIED2.js';
|
|
10
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
11
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
12
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
13
13
|
import { IconContext } from '@hopper-ui/icons';
|
|
14
14
|
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
15
15
|
import { chain, filterDOMProps, useRouter, shouldClientNavigate } from '@react-aria/utils';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps,
|
|
|
19
19
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Button.module.css#css-module
|
|
22
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
22
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___omxTR", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___mAijh", "hop-Button--fluid": "Button-module__hop-Button--fluid___tJx6A", "hop-Button--sm": "Button-module__hop-Button--sm___jBmjK", "hop-Button--primary": "Button-module__hop-Button--primary___GiYHc", "hop-Button--md": "Button-module__hop-Button--md___azhbR", "hop-Button--secondary": "Button-module__hop-Button--secondary___W9BWc", "hop-Button--upsell": "Button-module__hop-Button--upsell___RGRcm", "hop-Button--danger": "Button-module__hop-Button--danger___yqtna", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___I3F3m", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___kosyt", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___fmoef", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___Ib9EV", "hop-Button__icon": "Button-module__hop-Button__icon___zdZvL", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___QHAI7", "hop-Button__text": "Button-module__hop-Button__text___NfHmc", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___exbfl", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___yyYdR" };
|
|
23
23
|
var GlobalButtonCssSelector = "hop-Button";
|
|
24
24
|
var additionalButtonHTMLAttributes = /* @__PURE__ */ new Set(["form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "name", "value"]);
|
|
25
25
|
function useSimulatedRACButton(props, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Div
|
|
1
|
+
import { Div } from '@hopper-ui/styled-system';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -37,19 +37,7 @@ function Grid(props, ref) {
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function repeat(count, repetition) {
|
|
41
|
-
return `repeat(${count}, ${Array.isArray(repetition) ? interpolateGridTemplateArray(repetition) : getSizingValue(repetition)})`;
|
|
42
|
-
}
|
|
43
|
-
function minmax(min, max) {
|
|
44
|
-
return `minmax(${getSizingValue(min)}, ${getSizingValue(max)})`;
|
|
45
|
-
}
|
|
46
|
-
function fitContent(dimension) {
|
|
47
|
-
return `fit-content(${getSizingValue(dimension)})`;
|
|
48
|
-
}
|
|
49
|
-
function interpolateGridTemplateArray(values) {
|
|
50
|
-
return values.map((x) => getSizingValue(x)).join(" ");
|
|
51
|
-
}
|
|
52
40
|
var _Grid = forwardRef(Grid);
|
|
53
|
-
_Grid.displayName = "
|
|
41
|
+
_Grid.displayName = "Grid";
|
|
54
42
|
|
|
55
|
-
export { _Grid
|
|
43
|
+
export { _Grid };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
2
|
+
import { useState, useRef, useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
// src/Avatar/src/useImageFallback.ts
|
|
5
|
+
function useImageFallback(props) {
|
|
6
|
+
const { src, fallbackSrc, onError, onLoad } = props;
|
|
7
|
+
const [status, setStatus] = useState(src ? "loading" : "pending");
|
|
8
|
+
const [imageUrl, setImageUrl] = useState(src != null ? src : "");
|
|
9
|
+
const imageRef = useRef();
|
|
10
|
+
const load = useCallback(() => {
|
|
11
|
+
if (!src) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
flush();
|
|
15
|
+
const image = new Image();
|
|
16
|
+
image.src = src;
|
|
17
|
+
setImageUrl(src);
|
|
18
|
+
image.onload = (event) => {
|
|
19
|
+
flush();
|
|
20
|
+
setStatus("loaded");
|
|
21
|
+
onLoad == null ? void 0 : onLoad(event);
|
|
22
|
+
};
|
|
23
|
+
image.onerror = (event) => {
|
|
24
|
+
if (src !== fallbackSrc && image.src === src && fallbackSrc) {
|
|
25
|
+
setImageUrl(fallbackSrc);
|
|
26
|
+
image.src = fallbackSrc;
|
|
27
|
+
} else {
|
|
28
|
+
setStatus("failed");
|
|
29
|
+
flush();
|
|
30
|
+
}
|
|
31
|
+
onError == null ? void 0 : onError(event);
|
|
32
|
+
};
|
|
33
|
+
imageRef.current = image;
|
|
34
|
+
}, [src, onLoad, fallbackSrc, onError]);
|
|
35
|
+
const flush = () => {
|
|
36
|
+
if (imageRef.current) {
|
|
37
|
+
imageRef.current.onload = null;
|
|
38
|
+
imageRef.current.onerror = null;
|
|
39
|
+
imageRef.current = null;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
useIsomorphicLayoutEffect(() => {
|
|
43
|
+
if (status === "loading") {
|
|
44
|
+
load();
|
|
45
|
+
}
|
|
46
|
+
return () => {
|
|
47
|
+
flush();
|
|
48
|
+
};
|
|
49
|
+
}, [status, load]);
|
|
50
|
+
return { imageUrl, status };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { useImageFallback };
|
|
@@ -1,75 +1,82 @@
|
|
|
1
1
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
2
2
|
import { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined } from './chunk-TIPN4VYD.js';
|
|
3
|
-
import {
|
|
3
|
+
import { GlobalSwitchFieldCssSelector, _SwitchField } from './chunk-THCG3QCD.js';
|
|
4
|
+
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
5
|
+
import { GlobalTagGroupCssSelector, _TagGroup } from './chunk-6WWYES56.js';
|
|
4
6
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
5
7
|
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
6
8
|
import { GlobalTagListCssSelector, _TagList } from './chunk-WWRB4K4M.js';
|
|
7
9
|
import { TagListContext } from './chunk-XLKYXKWE.js';
|
|
8
|
-
import { GlobalRadioGroupCssSelector, _RadioGroup } from './chunk-
|
|
10
|
+
import { GlobalRadioGroupCssSelector, _RadioGroup } from './chunk-W2SKBBWE.js';
|
|
9
11
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
10
12
|
import { GlobalRadioListCssSelector, _RadioList } from './chunk-NKHMUPAP.js';
|
|
11
13
|
import { RadioListContext } from './chunk-A7TZHALP.js';
|
|
12
|
-
import { GlobalSwitchCssSelector, _Switch } from './chunk-
|
|
13
|
-
import { GlobalSwitchFieldCssSelector, _SwitchField } from './chunk-N745TDH5.js';
|
|
14
|
-
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
14
|
+
import { GlobalSwitchCssSelector, _Switch } from './chunk-T6VFQSII.js';
|
|
15
15
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
16
|
-
import { _Grid
|
|
16
|
+
import { _Grid } from './chunk-N77LTZ4U.js';
|
|
17
17
|
import { _Inline } from './chunk-Y7HUXUHX.js';
|
|
18
18
|
import { _Stack } from './chunk-D6UTDI2K.js';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
19
|
+
import { fitContent, minmax, repeat } from './chunk-GFHBDUJD.js';
|
|
20
|
+
import { GlobalRadioCssSelector, _Radio } from './chunk-BD53A2LL.js';
|
|
21
|
+
import { GlobalRadioFieldCssSelector, _RadioField } from './chunk-UYVKDU2W.js';
|
|
22
22
|
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
23
|
+
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
23
24
|
import { _Content, GlobalContentCssSelector } from './chunk-GXBVNCVP.js';
|
|
24
25
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
25
26
|
import { _Flex } from './chunk-TVFC2MJ4.js';
|
|
26
27
|
import { _Footer, GlobalFooterCssSelector } from './chunk-AQITZWYM.js';
|
|
27
28
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
28
|
-
import { _Chip, GlobalChipCssSelector } from './chunk-
|
|
29
|
+
import { _Chip, GlobalChipCssSelector } from './chunk-KOJGCQ3F.js';
|
|
29
30
|
import { ChipContext } from './chunk-WTKIUAHI.js';
|
|
30
|
-
import { _ErrorMessage, GlobalErrorMessageCssSelector } from './chunk-
|
|
31
|
-
import { GlobalHelperMessageCssSelector, _HelperMessage } from './chunk-
|
|
32
|
-
import { _CheckboxField, GlobalCheckboxFieldCssSelector } from './chunk-
|
|
33
|
-
import { _CheckboxGroup, GlobalCheckboxGroupCssSelector } from './chunk-
|
|
31
|
+
import { _ErrorMessage, GlobalErrorMessageCssSelector } from './chunk-22YUFCHD.js';
|
|
32
|
+
import { GlobalHelperMessageCssSelector, _HelperMessage } from './chunk-IIZECZAH.js';
|
|
33
|
+
import { _CheckboxField, GlobalCheckboxFieldCssSelector } from './chunk-WFPCHFJI.js';
|
|
34
|
+
import { _CheckboxGroup, GlobalCheckboxGroupCssSelector } from './chunk-KQPY2D3P.js';
|
|
34
35
|
import { ErrorMessageContext } from './chunk-ACVMW6YD.js';
|
|
35
36
|
import { HelperMessageContext } from './chunk-ESVVLTEN.js';
|
|
36
37
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
37
38
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
38
39
|
import { _CheckboxList, GlobalCheckboxListCssSelector } from './chunk-3LRBUQC2.js';
|
|
39
40
|
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
40
|
-
import { _ButtonGroup, GlobalButtonGroupCssSelector } from './chunk-
|
|
41
|
+
import { _ButtonGroup, GlobalButtonGroupCssSelector } from './chunk-TM6742MU.js';
|
|
41
42
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
42
|
-
import { _ClearButton, GlobalClearButtonCssSelector } from './chunk-
|
|
43
|
+
import { _ClearButton, GlobalClearButtonCssSelector } from './chunk-P7JRKXBD.js';
|
|
43
44
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
44
|
-
import { _EmbeddedButton, GlobalEmbeddedButtonCssSelector } from './chunk-
|
|
45
|
+
import { _EmbeddedButton, GlobalEmbeddedButtonCssSelector } from './chunk-F7S2I43Y.js';
|
|
45
46
|
import { EmbeddedButtonContext } from './chunk-O7IJYNVQ.js';
|
|
46
|
-
import { _Checkbox, GlobalCheckboxCssSelector } from './chunk-
|
|
47
|
+
import { _Checkbox, GlobalCheckboxCssSelector } from './chunk-GELM73MQ.js';
|
|
47
48
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
48
|
-
import { _Badge, GlobalBadgeCssSelector } from './chunk-
|
|
49
|
-
import { GlobalOverlineTextCssSelector, _OverlineText } from './chunk-
|
|
49
|
+
import { _Badge, GlobalBadgeCssSelector } from './chunk-WNVTTHBK.js';
|
|
50
|
+
import { GlobalOverlineTextCssSelector, _OverlineText } from './chunk-3IEED7AY.js';
|
|
50
51
|
import { OverlineTextContext } from './chunk-WPNVVGFW.js';
|
|
51
52
|
import { BadgeContext } from './chunk-ZSFJVMJN.js';
|
|
52
|
-
import { _Button, GlobalButtonCssSelector } from './chunk-
|
|
53
|
+
import { _Button, GlobalButtonCssSelector } from './chunk-LUAIMTPE.js';
|
|
53
54
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
54
55
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
55
56
|
import { useLocalizedString } from './chunk-H6CDFWVR.js';
|
|
56
|
-
import { GlobalSpinnerCssSelector, _Spinner } from './chunk-
|
|
57
|
-
import { GlobalLabelCssSelector, _Label } from './chunk-
|
|
57
|
+
import { GlobalSpinnerCssSelector, _Spinner } from './chunk-BVGKXCQH.js';
|
|
58
|
+
import { GlobalLabelCssSelector, _Label } from './chunk-5F5CWOM4.js';
|
|
58
59
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
59
60
|
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
60
61
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
61
62
|
import { GlobalHopperProviderCssSelector, _HopperProvider } from './chunk-ANVMQBBG.js';
|
|
62
|
-
import { GlobalIconListCssSelector, _IconList } from './chunk-
|
|
63
|
-
import { GlobalLinkCssSelector, _Link } from './chunk-
|
|
63
|
+
import { GlobalIconListCssSelector, _IconList } from './chunk-3OWQHIJ6.js';
|
|
64
|
+
import { GlobalLinkCssSelector, _Link } from './chunk-KOA2CREJ.js';
|
|
64
65
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
65
|
-
import {
|
|
66
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
67
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
68
|
+
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
69
|
+
import { _AnonymousAvatar, GlobalAnonymousAvatarCssSelector } from './chunk-FYDLV5BM.js';
|
|
70
|
+
import { _Avatar, AvatarToTextSizeAdapter, GlobalAvatarCssSelector } from './chunk-OPFRM3JC.js';
|
|
71
|
+
import { GlobalTextCssSelector, _Text } from './chunk-7Q7VIED2.js';
|
|
66
72
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
67
73
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
68
|
-
import {
|
|
74
|
+
import { _DeletedAvatar, GlobalDeletedAvatarCssSelector } from './chunk-Z33QZKRG.js';
|
|
75
|
+
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
76
|
+
import { AvatarToIconSizeAdapter, GlobalRichIconAvatarImageCssSelector, _RichIconAvatarImage } from './chunk-CP4AWOFU.js';
|
|
69
77
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
70
78
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
71
|
-
import {
|
|
72
|
-
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
79
|
+
import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
|
|
73
80
|
import { __export, __reExport } from './chunk-2P3A4VVY.js';
|
|
74
81
|
import * as styled_system_star from '@hopper-ui/styled-system';
|
|
75
82
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -82,6 +89,11 @@ import { IconContext } from '@hopper-ui/icons';
|
|
|
82
89
|
// src/index.ts
|
|
83
90
|
var src_exports = {};
|
|
84
91
|
__export(src_exports, {
|
|
92
|
+
AnonymousAvatar: () => _AnonymousAvatar,
|
|
93
|
+
Avatar: () => _Avatar,
|
|
94
|
+
AvatarContext: () => AvatarContext,
|
|
95
|
+
AvatarToIconSizeAdapter: () => AvatarToIconSizeAdapter,
|
|
96
|
+
AvatarToTextSizeAdapter: () => AvatarToTextSizeAdapter,
|
|
85
97
|
Badge: () => _Badge,
|
|
86
98
|
BadgeContext: () => BadgeContext,
|
|
87
99
|
Button: () => _Button,
|
|
@@ -104,6 +116,7 @@ __export(src_exports, {
|
|
|
104
116
|
ClearProviders: () => ClearProviders,
|
|
105
117
|
Content: () => _Content,
|
|
106
118
|
ContentContext: () => ContentContext,
|
|
119
|
+
DeletedAvatar: () => _DeletedAvatar,
|
|
107
120
|
EmbeddedButton: () => _EmbeddedButton,
|
|
108
121
|
EmbeddedButtonContext: () => EmbeddedButtonContext,
|
|
109
122
|
ErrorMessage: () => _ErrorMessage,
|
|
@@ -111,6 +124,8 @@ __export(src_exports, {
|
|
|
111
124
|
Flex: () => _Flex,
|
|
112
125
|
Footer: () => _Footer,
|
|
113
126
|
FooterContext: () => FooterContext,
|
|
127
|
+
GlobalAnonymousAvatarCssSelector: () => GlobalAnonymousAvatarCssSelector,
|
|
128
|
+
GlobalAvatarCssSelector: () => GlobalAvatarCssSelector,
|
|
114
129
|
GlobalBadgeCssSelector: () => GlobalBadgeCssSelector,
|
|
115
130
|
GlobalButtonCssSelector: () => GlobalButtonCssSelector,
|
|
116
131
|
GlobalButtonGroupCssSelector: () => GlobalButtonGroupCssSelector,
|
|
@@ -121,6 +136,7 @@ __export(src_exports, {
|
|
|
121
136
|
GlobalChipCssSelector: () => GlobalChipCssSelector,
|
|
122
137
|
GlobalClearButtonCssSelector: () => GlobalClearButtonCssSelector,
|
|
123
138
|
GlobalContentCssSelector: () => GlobalContentCssSelector,
|
|
139
|
+
GlobalDeletedAvatarCssSelector: () => GlobalDeletedAvatarCssSelector,
|
|
124
140
|
GlobalEmbeddedButtonCssSelector: () => GlobalEmbeddedButtonCssSelector,
|
|
125
141
|
GlobalErrorMessageCssSelector: () => GlobalErrorMessageCssSelector,
|
|
126
142
|
GlobalFooterCssSelector: () => GlobalFooterCssSelector,
|
|
@@ -135,6 +151,7 @@ __export(src_exports, {
|
|
|
135
151
|
GlobalRadioFieldCssSelector: () => GlobalRadioFieldCssSelector,
|
|
136
152
|
GlobalRadioGroupCssSelector: () => GlobalRadioGroupCssSelector,
|
|
137
153
|
GlobalRadioListCssSelector: () => GlobalRadioListCssSelector,
|
|
154
|
+
GlobalRichIconAvatarImageCssSelector: () => GlobalRichIconAvatarImageCssSelector,
|
|
138
155
|
GlobalSpinnerCssSelector: () => GlobalSpinnerCssSelector,
|
|
139
156
|
GlobalSwitchCssSelector: () => GlobalSwitchCssSelector,
|
|
140
157
|
GlobalSwitchFieldCssSelector: () => GlobalSwitchFieldCssSelector,
|
|
@@ -171,6 +188,8 @@ __export(src_exports, {
|
|
|
171
188
|
RadioGroupContext: () => RadioGroupContext,
|
|
172
189
|
RadioList: () => _RadioList,
|
|
173
190
|
RadioListContext: () => RadioListContext,
|
|
191
|
+
RichIconAvatarImage: () => _RichIconAvatarImage,
|
|
192
|
+
RichIconAvatarImageContext: () => RichIconAvatarImageContext,
|
|
174
193
|
SlotProvider: () => SlotProvider,
|
|
175
194
|
Spinner: () => _Spinner,
|
|
176
195
|
SpinnerContext: () => SpinnerContext,
|
|
@@ -211,7 +230,7 @@ __export(src_exports, {
|
|
|
211
230
|
});
|
|
212
231
|
|
|
213
232
|
// css-module:./Heading.module.css#css-module
|
|
214
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-
|
|
233
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___N6RDM", "hop-Heading--xs": "Heading-module__hop-Heading--xs___PspSb", "hop-Heading--sm": "Heading-module__hop-Heading--sm___I-Ypn", "hop-Heading--md": "Heading-module__hop-Heading--md___bJB6G", "hop-Heading--lg": "Heading-module__hop-Heading--lg___NYsEb", "hop-Heading--xl": "Heading-module__hop-Heading--xl___K-lV8", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___Uxjjw", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___YLUEv" };
|
|
215
234
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
216
235
|
function Heading(props, ref) {
|
|
217
236
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -262,7 +281,7 @@ var H6 = createHeading("h6");
|
|
|
262
281
|
__reExport(src_exports, styled_system_star);
|
|
263
282
|
|
|
264
283
|
// css-module:./Tag.module.css#css-module
|
|
265
|
-
var Tag_module_default = { "hop-Tag": "Tag-module__hop-
|
|
284
|
+
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___qFqyh", "hop-Tag--md": "Tag-module__hop-Tag--md___yD2R0", "hop-Tag__icon": "Tag-module__hop-Tag__icon___BuZdB", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___XpdrM", "hop-Tag__badge": "Tag-module__hop-Tag__badge___KsNAZ", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___1-nqJ", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___4ylYp", "hop-Tag--lg": "Tag-module__hop-Tag--lg___QYYXG", "hop-Tag__text": "Tag-module__hop-Tag__text___JF8Qt", "hop-Badge--secondary": "Tag-module__hop-Badge--secondary___Hb-el" };
|
|
266
285
|
var GlobalTagCssSelector = "hop-Tag";
|
|
267
286
|
var TagToTextSizeAdapter = {
|
|
268
287
|
md: "xs",
|