@hopper-ui/components 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +117 -0
- package/dist/HopperProvider/src/HopperProvider.d.ts +33 -1
- package/dist/HopperProvider/src/HopperProvider.js +2 -1
- package/dist/HopperProvider/src/index.d.ts +1 -0
- package/dist/HopperProvider/src/index.js +2 -1
- package/dist/IconList/src/IconList.css +6 -6
- package/dist/IconList/src/IconList.js +2 -1
- package/dist/IconList/src/IconListContext.js +1 -0
- package/dist/IconList/src/index.css +6 -6
- package/dist/IconList/src/index.js +2 -1
- package/dist/Label/src/Label.css +70 -70
- package/dist/Label/src/Label.js +3 -2
- package/dist/Label/src/LabelContext.js +1 -0
- package/dist/Label/src/index.css +70 -70
- package/dist/Label/src/index.js +3 -2
- package/dist/Link/src/Link.css +165 -0
- package/dist/Link/src/Link.d.ts +33 -0
- package/dist/Link/src/Link.js +11 -0
- package/dist/Link/src/LinkContext.d.ts +8 -0
- package/dist/Link/src/LinkContext.js +2 -0
- package/dist/Link/src/index.css +165 -0
- package/dist/Link/src/index.d.ts +5 -0
- package/dist/Link/src/index.js +11 -0
- package/dist/Spinner/src/Spinner.css +124 -124
- package/dist/Spinner/src/Spinner.d.ts +1 -0
- package/dist/Spinner/src/Spinner.js +5 -4
- package/dist/Spinner/src/SpinnerContext.js +1 -0
- package/dist/Spinner/src/index.css +124 -124
- package/dist/Spinner/src/index.js +5 -4
- package/dist/Text/src/Text.css +67 -67
- package/dist/Text/src/Text.d.ts +2 -3
- package/dist/Text/src/Text.js +5 -2
- package/dist/Text/src/TextContext.js +1 -0
- package/dist/Text/src/index.css +67 -67
- package/dist/Text/src/index.d.ts +1 -1
- package/dist/Text/src/index.js +5 -2
- package/dist/buttons/src/Button.css +634 -435
- package/dist/buttons/src/Button.d.ts +15 -10
- package/dist/buttons/src/Button.js +13 -9
- package/dist/buttons/src/ButtonContext.d.ts +6 -2
- package/dist/buttons/src/ButtonContext.js +1 -0
- package/dist/buttons/src/ButtonGroup.css +38 -0
- package/dist/buttons/src/ButtonGroup.d.ts +40 -0
- package/dist/buttons/src/ButtonGroup.js +83 -0
- package/dist/buttons/src/ButtonGroupContext.d.ts +9 -0
- package/dist/buttons/src/ButtonGroupContext.js +2 -0
- package/dist/buttons/src/index.css +634 -435
- package/dist/buttons/src/index.d.ts +2 -1
- package/dist/buttons/src/index.js +13 -9
- package/dist/checkbox/src/Checkbox.css +292 -0
- package/dist/checkbox/src/Checkbox.d.ts +20 -0
- package/dist/checkbox/src/Checkbox.js +11 -0
- package/dist/checkbox/src/CheckboxContext.d.ts +8 -0
- package/dist/checkbox/src/CheckboxContext.js +2 -0
- package/dist/checkbox/src/CheckboxField.css +119 -0
- package/dist/checkbox/src/CheckboxField.d.ts +26 -0
- package/dist/checkbox/src/CheckboxField.js +7 -0
- package/dist/checkbox/src/CheckboxFieldContext.d.ts +10 -0
- package/dist/checkbox/src/CheckboxFieldContext.js +2 -0
- package/dist/checkbox/src/CheckboxGroup.css +568 -0
- package/dist/checkbox/src/CheckboxGroup.d.ts +30 -0
- package/dist/checkbox/src/CheckboxGroup.js +12 -0
- package/dist/checkbox/src/CheckboxGroupContext.d.ts +8 -0
- package/dist/checkbox/src/CheckboxGroupContext.js +2 -0
- package/dist/checkbox/src/CheckboxList.d.ts +17 -0
- package/dist/checkbox/src/CheckboxList.js +3 -0
- package/dist/checkbox/src/CheckboxListContext.d.ts +10 -0
- package/dist/checkbox/src/CheckboxListContext.js +2 -0
- package/dist/checkbox/src/index.css +568 -0
- package/dist/checkbox/src/index.d.ts +13 -0
- package/dist/checkbox/src/index.js +20 -0
- package/dist/chip/src/Chip.css +261 -0
- package/dist/chip/src/Chip.d.ts +27 -0
- package/dist/chip/src/Chip.js +10 -0
- package/dist/chip/src/ChipContext.d.ts +10 -0
- package/dist/chip/src/ChipContext.js +2 -0
- package/dist/chip/src/index.css +261 -0
- package/dist/chip/src/index.d.ts +7 -0
- package/dist/chip/src/index.js +10 -0
- package/dist/chunk-2EAZPH3M.js +7 -0
- package/dist/chunk-3LRBUQC2.js +43 -0
- package/dist/chunk-4AARNXWE.js +101 -0
- package/dist/chunk-4VVNSXIB.js +7 -0
- package/dist/chunk-5KJ5IKUE.js +69 -0
- package/dist/chunk-5MBJWRZD.js +7 -0
- package/dist/{chunk-SEU4CGZD.js → chunk-65JPI4FL.js} +1 -1
- package/dist/chunk-7ELZ57E5.js +93 -0
- package/dist/chunk-A7TZHALP.js +7 -0
- package/dist/chunk-ACVMW6YD.js +7 -0
- package/dist/{chunk-YLDA2M2E.js → chunk-ANVMQBBG.js} +2 -1
- package/dist/chunk-B7WS4DBA.js +83 -0
- package/dist/chunk-BPM4ETTB.js +35 -0
- package/dist/{chunk-QIOYM2XJ.js → chunk-DFUQTSEV.js} +13 -13
- package/dist/chunk-DGLAGYBD.js +7 -0
- package/dist/chunk-ESVVLTEN.js +7 -0
- package/dist/chunk-FU5CCPLP.js +7 -0
- package/dist/chunk-GXKSX5N5.js +104 -0
- package/dist/chunk-H5YTU3U7.js +20 -0
- package/dist/chunk-H7VJS4MX.js +7 -0
- package/dist/chunk-HVRSS5RT.js +186 -0
- package/dist/chunk-HXI3MEEK.js +27 -0
- package/dist/chunk-I7AMDVGG.js +124 -0
- package/dist/{chunk-XCKF6EU7.js → chunk-IYITZANI.js} +9 -9
- package/dist/chunk-JHY3TXL4.js +101 -0
- package/dist/{chunk-6BEVZRUL.js → chunk-KVDXQMWI.js} +1 -1
- package/dist/chunk-M6UHXS6K.js +58 -0
- package/dist/chunk-MD6IFXLG.js +57 -0
- package/dist/chunk-ME3RBGOT.js +91 -0
- package/dist/chunk-N7YDPVZL.js +7 -0
- package/dist/chunk-NH3IVMXB.js +43 -0
- package/dist/chunk-NKHMUPAP.js +43 -0
- package/dist/chunk-OHPGEHL3.js +83 -0
- package/dist/chunk-VIHBOZVN.js +92 -0
- package/dist/chunk-VJQ7M2BK.js +7 -0
- package/dist/chunk-WDUQUPTE.js +7 -0
- package/dist/chunk-WTKIUAHI.js +7 -0
- package/dist/chunk-YHBJAXUY.js +7 -0
- package/dist/chunk-YSQDPG26.js +27 -0
- package/dist/chunk-YWUIJ6ZQ.js +83 -0
- package/dist/chunk-ZGNK4GWA.js +7 -0
- package/dist/{chunk-XQ3GUEBN.js → chunk-ZQEB3Y3X.js} +8 -9
- package/dist/{chunk-7QUHQYCR.js → chunk-ZWU6DRRZ.js} +1 -1
- package/dist/errorMessage/src/ErrorMessage.css +102 -0
- package/dist/errorMessage/src/ErrorMessage.d.ts +20 -0
- package/dist/errorMessage/src/ErrorMessage.js +9 -0
- package/dist/errorMessage/src/ErrorMessageContext.d.ts +9 -0
- package/dist/errorMessage/src/ErrorMessageContext.js +2 -0
- package/dist/errorMessage/src/index.css +102 -0
- package/dist/errorMessage/src/index.d.ts +6 -0
- package/dist/errorMessage/src/index.js +9 -0
- package/dist/helperMessage/src/HelperMessage.css +94 -0
- package/dist/helperMessage/src/HelperMessage.d.ts +20 -0
- package/dist/helperMessage/src/HelperMessage.js +8 -0
- package/dist/helperMessage/src/HelperMessageContext.d.ts +9 -0
- package/dist/helperMessage/src/HelperMessageContext.js +2 -0
- package/dist/helperMessage/src/index.css +94 -0
- package/dist/helperMessage/src/index.d.ts +6 -0
- package/dist/helperMessage/src/index.js +8 -0
- package/dist/{intl → i18n}/src/index.d.ts +1 -0
- package/dist/i18n/src/index.js +2 -0
- package/dist/i18n/src/useLocalizedString.d.ts +9 -0
- package/dist/i18n/src/useLocalizedString.js +2 -0
- package/dist/layout/src/Flex.js +1 -0
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/Inline.js +1 -0
- package/dist/layout/src/Stack.js +1 -0
- package/dist/radio/src/Radio.css +293 -0
- package/dist/radio/src/Radio.d.ts +20 -0
- package/dist/radio/src/Radio.js +11 -0
- package/dist/radio/src/RadioContext.d.ts +8 -0
- package/dist/radio/src/RadioContext.js +2 -0
- package/dist/radio/src/RadioField.css +119 -0
- package/dist/radio/src/RadioField.d.ts +26 -0
- package/dist/radio/src/RadioField.js +7 -0
- package/dist/radio/src/RadioFieldContext.d.ts +10 -0
- package/dist/radio/src/RadioFieldContext.js +2 -0
- package/dist/radio/src/RadioGroup.css +570 -0
- package/dist/radio/src/RadioGroup.d.ts +30 -0
- package/dist/radio/src/RadioGroup.js +12 -0
- package/dist/radio/src/RadioGroupContext.d.ts +8 -0
- package/dist/radio/src/RadioGroupContext.js +2 -0
- package/dist/radio/src/RadioList.d.ts +17 -0
- package/dist/radio/src/RadioList.js +3 -0
- package/dist/radio/src/RadioListContext.d.ts +10 -0
- package/dist/radio/src/RadioListContext.js +2 -0
- package/dist/radio/src/index.css +570 -0
- package/dist/radio/src/index.d.ts +13 -0
- package/dist/radio/src/index.js +20 -0
- package/dist/switch/src/Switch.css +236 -0
- package/dist/switch/src/Switch.d.ts +20 -0
- package/dist/switch/src/Switch.js +11 -0
- package/dist/switch/src/SwitchContext.d.ts +8 -0
- package/dist/switch/src/SwitchContext.js +2 -0
- package/dist/switch/src/SwitchField.css +119 -0
- package/dist/switch/src/SwitchField.d.ts +26 -0
- package/dist/switch/src/SwitchField.js +7 -0
- package/dist/switch/src/SwitchFieldContext.d.ts +10 -0
- package/dist/switch/src/SwitchFieldContext.js +2 -0
- package/dist/switch/src/index.css +276 -0
- package/dist/switch/src/index.d.ts +9 -0
- package/dist/switch/src/index.js +13 -0
- package/dist/utils/src/ClearSlots.d.ts +28 -0
- package/dist/utils/src/ClearSlots.js +2 -0
- package/dist/utils/src/SlotProvider.js +1 -0
- package/dist/utils/src/composeClassnameRenderProps.js +2 -0
- package/dist/utils/src/cssModule.js +2 -0
- package/dist/utils/src/index.d.ts +11 -6
- package/dist/utils/src/index.js +8 -4
- package/dist/utils/src/isTextOnlyChildren.js +2 -0
- package/dist/utils/src/{size-adapter.d.ts → sizeAdapter.d.ts} +1 -1
- package/dist/utils/src/sizeAdapter.js +1 -0
- package/dist/utils/src/types.d.ts +17 -5
- package/dist/utils/src/useRenderProps.d.ts +843 -0
- package/dist/utils/src/useRenderProps.js +2 -0
- package/dist/utils/src/useSlot.d.ts +8 -0
- package/dist/utils/src/useSlot.js +2 -0
- package/package.json +32 -27
- package/dist/chunk-GXUPEV64.js +0 -24
- package/dist/chunk-WROQHGG5.js +0 -141
- package/dist/chunk-WRWNRVTG.js +0 -47
- package/dist/intl/src/index.js +0 -1
- package/dist/intl/src/useLocalizedString.d.ts +0 -26
- package/dist/intl/src/useLocalizedString.js +0 -1
- package/dist/utils/src/compose-classname-render-props.js +0 -1
- package/dist/utils/src/css-module.js +0 -1
- package/dist/utils/src/is-text-only-children.js +0 -1
- package/dist/utils/src/size-adapter.js +0 -1
- /package/dist/{chunk-D57ZIX5W.js → chunk-LQICWONC.js} +0 -0
- /package/dist/utils/src/{compose-classname-render-props.d.ts → composeClassnameRenderProps.d.ts} +0 -0
- /package/dist/utils/src/{css-module.d.ts → cssModule.d.ts} +0 -0
- /package/dist/utils/src/{is-text-only-children.d.ts → isTextOnlyChildren.d.ts} +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
|
+
import { _Text } from './chunk-M6UHXS6K.js';
|
|
5
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
|
+
import { TextContext } from './chunk-OE5BLFZI.js';
|
|
7
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
9
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
11
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
12
|
+
import { forwardRef } from 'react';
|
|
13
|
+
import { useContextProps, composeRenderProps, Switch as Switch$1 } from 'react-aria-components';
|
|
14
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
// css-module:./Switch.module.css#css-module
|
|
17
|
+
var Switch_module_default = { "hop-Switch": "Switch-module__hop-Switch___A9t3N", "hop-Switch--sm": "Switch-module__hop-Switch--sm___zmqQy", "hop-Switch--md": "Switch-module__hop-Switch--md___wJ5dn", "hop-Switch__indicator": "Switch-module__hop-Switch__indicator___TkQTl", "hop-Switch__text": "Switch-module__hop-Switch__text___PidAG", "hop-Switch__icon-list": "Switch-module__hop-Switch__icon-list___tkie7", "hop-Switch__icon": "Switch-module__hop-Switch__icon___kOrAo" };
|
|
18
|
+
var GlobalSwitchCssSelector = "hop-Switch";
|
|
19
|
+
function Switch(props, ref) {
|
|
20
|
+
var _a;
|
|
21
|
+
[props, ref] = useContextProps(props, ref, SwitchContext);
|
|
22
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
children: childrenProp,
|
|
26
|
+
size: sizeProp = "md",
|
|
27
|
+
style: styleProp,
|
|
28
|
+
...otherProps
|
|
29
|
+
} = ownProps;
|
|
30
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
31
|
+
const classNames = composeClassnameRenderProps(
|
|
32
|
+
className,
|
|
33
|
+
GlobalSwitchCssSelector,
|
|
34
|
+
cssModule(
|
|
35
|
+
Switch_module_default,
|
|
36
|
+
"hop-Switch",
|
|
37
|
+
size
|
|
38
|
+
),
|
|
39
|
+
stylingProps.className
|
|
40
|
+
);
|
|
41
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
42
|
+
return {
|
|
43
|
+
...stylingProps.style,
|
|
44
|
+
...prev
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
48
|
+
if (prev && isTextOnlyChildren(prev)) {
|
|
49
|
+
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
50
|
+
}
|
|
51
|
+
return prev;
|
|
52
|
+
});
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
Switch$1,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: classNames,
|
|
58
|
+
style,
|
|
59
|
+
...otherProps,
|
|
60
|
+
children: (switchProps) => {
|
|
61
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
|
+
/* @__PURE__ */ jsx("div", { className: Switch_module_default["hop-Switch__indicator"] }),
|
|
63
|
+
/* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
64
|
+
SlotProvider,
|
|
65
|
+
{
|
|
66
|
+
values: [
|
|
67
|
+
[TextContext, {
|
|
68
|
+
className: Switch_module_default["hop-Switch__text"],
|
|
69
|
+
size
|
|
70
|
+
}],
|
|
71
|
+
[IconListContext, {
|
|
72
|
+
className: Switch_module_default["hop-Switch__icon-list"],
|
|
73
|
+
size
|
|
74
|
+
}],
|
|
75
|
+
[IconContext, {
|
|
76
|
+
className: Switch_module_default["hop-Switch__icon"],
|
|
77
|
+
size
|
|
78
|
+
}]
|
|
79
|
+
],
|
|
80
|
+
children: children(switchProps)
|
|
81
|
+
}
|
|
82
|
+
) })
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
var _Switch = forwardRef(Switch);
|
|
89
|
+
_Switch.displayName = "Switch";
|
|
90
|
+
|
|
91
|
+
export { GlobalSwitchCssSelector, _Switch };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/utils/src/useRenderProps.ts
|
|
4
|
+
function useRenderProps(props) {
|
|
5
|
+
const {
|
|
6
|
+
className,
|
|
7
|
+
style,
|
|
8
|
+
children,
|
|
9
|
+
defaultClassName = void 0,
|
|
10
|
+
defaultChildren = void 0,
|
|
11
|
+
defaultStyle,
|
|
12
|
+
values
|
|
13
|
+
} = props;
|
|
14
|
+
return useMemo(() => {
|
|
15
|
+
let computedClassName;
|
|
16
|
+
let computedStyle;
|
|
17
|
+
let computedChildren;
|
|
18
|
+
if (typeof className === "function") {
|
|
19
|
+
computedClassName = className({ ...values, defaultClassName });
|
|
20
|
+
} else {
|
|
21
|
+
computedClassName = className;
|
|
22
|
+
}
|
|
23
|
+
if (typeof style === "function") {
|
|
24
|
+
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
25
|
+
} else {
|
|
26
|
+
computedStyle = style;
|
|
27
|
+
}
|
|
28
|
+
if (typeof children === "function") {
|
|
29
|
+
computedChildren = children({ ...values, defaultChildren });
|
|
30
|
+
} else if (children == null) {
|
|
31
|
+
computedChildren = defaultChildren;
|
|
32
|
+
} else {
|
|
33
|
+
computedChildren = children;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
37
|
+
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
38
|
+
children: computedChildren != null ? computedChildren : defaultChildren
|
|
39
|
+
};
|
|
40
|
+
}, [className, style, children, defaultClassName, defaultChildren, defaultStyle, values]);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { useRenderProps };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RadioListContext } from './chunk-A7TZHALP.js';
|
|
2
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { useContextProps } from 'react-aria-components';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var GlobalRadioListCssSelector = "hop-RadioList";
|
|
9
|
+
function RadioList(props, ref) {
|
|
10
|
+
[props, ref] = useContextProps(props, ref, RadioListContext);
|
|
11
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
12
|
+
const {
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
style,
|
|
16
|
+
slot,
|
|
17
|
+
...otherProps
|
|
18
|
+
} = ownProps;
|
|
19
|
+
const classNames = clsx(
|
|
20
|
+
className,
|
|
21
|
+
GlobalRadioListCssSelector,
|
|
22
|
+
stylingProps.className
|
|
23
|
+
);
|
|
24
|
+
const mergedStyles = {
|
|
25
|
+
...stylingProps.style,
|
|
26
|
+
...style
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
...otherProps,
|
|
32
|
+
ref,
|
|
33
|
+
className: classNames,
|
|
34
|
+
style: mergedStyles,
|
|
35
|
+
slot: slot != null ? slot : void 0,
|
|
36
|
+
children
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
var _RadioList = forwardRef(RadioList);
|
|
41
|
+
_RadioList.displayName = "RadioList";
|
|
42
|
+
|
|
43
|
+
export { GlobalRadioListCssSelector, _RadioList };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
|
+
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
3
|
+
import { TextContext } from './chunk-OE5BLFZI.js';
|
|
4
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { forwardRef } from 'react';
|
|
9
|
+
import { useId } from 'react-aria';
|
|
10
|
+
import { useContextProps } from 'react-aria-components';
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
// css-module:./CheckboxField.module.css#css-module
|
|
14
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___f3NFL", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___Oar3u", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___-64p5", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___e59nn", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___5zJo3" };
|
|
15
|
+
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
16
|
+
var CheckboxToDescriptionSizeAdapter = {
|
|
17
|
+
sm: "xs",
|
|
18
|
+
md: "sm"
|
|
19
|
+
};
|
|
20
|
+
function CheckboxField(props, ref) {
|
|
21
|
+
var _a;
|
|
22
|
+
[props, ref] = useContextProps(props, ref, CheckboxFieldContext);
|
|
23
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
children,
|
|
27
|
+
isDisabled,
|
|
28
|
+
size: sizeProp = "md",
|
|
29
|
+
style,
|
|
30
|
+
slot,
|
|
31
|
+
...otherProps
|
|
32
|
+
} = ownProps;
|
|
33
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
34
|
+
const classNames = clsx(
|
|
35
|
+
className,
|
|
36
|
+
GlobalCheckboxFieldCssSelector,
|
|
37
|
+
cssModule(
|
|
38
|
+
CheckboxField_module_default,
|
|
39
|
+
"hop-CheckboxField",
|
|
40
|
+
size
|
|
41
|
+
),
|
|
42
|
+
stylingProps.className
|
|
43
|
+
);
|
|
44
|
+
const mergedStyles = {
|
|
45
|
+
...stylingProps.style,
|
|
46
|
+
...style
|
|
47
|
+
};
|
|
48
|
+
const descriptionId = useId();
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
SlotProvider,
|
|
51
|
+
{
|
|
52
|
+
values: [
|
|
53
|
+
[TextContext, {
|
|
54
|
+
id: descriptionId,
|
|
55
|
+
className: CheckboxField_module_default["hop-CheckboxField__description"],
|
|
56
|
+
size: CheckboxToDescriptionSizeAdapter[size]
|
|
57
|
+
}],
|
|
58
|
+
[CheckboxContext, {
|
|
59
|
+
className: CheckboxField_module_default["hop-CheckboxField__checkbox"],
|
|
60
|
+
size,
|
|
61
|
+
isDisabled,
|
|
62
|
+
"aria-describedby": descriptionId
|
|
63
|
+
}]
|
|
64
|
+
],
|
|
65
|
+
children: /* @__PURE__ */ jsx(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
...otherProps,
|
|
69
|
+
ref,
|
|
70
|
+
className: classNames,
|
|
71
|
+
style: mergedStyles,
|
|
72
|
+
slot: slot != null ? slot : void 0,
|
|
73
|
+
"data-disabled": isDisabled,
|
|
74
|
+
children
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
var _CheckboxField = forwardRef(CheckboxField);
|
|
81
|
+
_CheckboxField.displayName = "CheckboxField";
|
|
82
|
+
|
|
83
|
+
export { GlobalCheckboxFieldCssSelector, _CheckboxField };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
|
+
import { _Text } from './chunk-M6UHXS6K.js';
|
|
5
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
|
+
import { TextContext } from './chunk-OE5BLFZI.js';
|
|
7
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
9
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
|
+
import { BulletIcon, IconContext } from '@hopper-ui/icons';
|
|
11
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
12
|
+
import { forwardRef } from 'react';
|
|
13
|
+
import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-aria-components';
|
|
14
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
// css-module:./Radio.module.css#css-module
|
|
17
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___ixqBm", "hop-Radio--sm": "Radio-module__hop-Radio--sm___G0-gW", "hop-Radio--md": "Radio-module__hop-Radio--md___xRFTQ", "hop-Radio__icon": "Radio-module__hop-Radio__icon___wXYjp", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___VqAkj", "hop-Radio__box": "Radio-module__hop-Radio__box___LvVYK", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___7Sv97", "hop-Radio__text": "Radio-module__hop-Radio__text___FcEZE" };
|
|
18
|
+
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
|
+
function Radio(props, ref) {
|
|
20
|
+
var _a;
|
|
21
|
+
[props, ref] = useContextProps(props, ref, RadioContext);
|
|
22
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
children: childrenProp,
|
|
26
|
+
size: sizeProp = "md",
|
|
27
|
+
style: styleProp,
|
|
28
|
+
...otherProps
|
|
29
|
+
} = ownProps;
|
|
30
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
31
|
+
const classNames = composeClassnameRenderProps(
|
|
32
|
+
className,
|
|
33
|
+
GlobalRadioCssSelector,
|
|
34
|
+
cssModule(
|
|
35
|
+
Radio_module_default,
|
|
36
|
+
"hop-Radio",
|
|
37
|
+
size
|
|
38
|
+
),
|
|
39
|
+
stylingProps.className
|
|
40
|
+
);
|
|
41
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
42
|
+
return {
|
|
43
|
+
...stylingProps.style,
|
|
44
|
+
...prev
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
48
|
+
if (prev && isTextOnlyChildren(prev)) {
|
|
49
|
+
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
50
|
+
}
|
|
51
|
+
return prev;
|
|
52
|
+
});
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
Radio$1,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: classNames,
|
|
58
|
+
style,
|
|
59
|
+
...otherProps,
|
|
60
|
+
children: (radioProps) => {
|
|
61
|
+
const radioIconClassName = Radio_module_default["hop-Radio__bullet"];
|
|
62
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63
|
+
/* @__PURE__ */ jsx("div", { className: Radio_module_default["hop-Radio__box"], children: /* @__PURE__ */ jsx(BulletIcon, { size, className: radioIconClassName }) }),
|
|
64
|
+
/* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
65
|
+
SlotProvider,
|
|
66
|
+
{
|
|
67
|
+
values: [
|
|
68
|
+
[TextContext, {
|
|
69
|
+
className: Radio_module_default["hop-Radio__text"],
|
|
70
|
+
size
|
|
71
|
+
}],
|
|
72
|
+
[IconListContext, {
|
|
73
|
+
className: Radio_module_default["hop-Radio__icon-list"],
|
|
74
|
+
size
|
|
75
|
+
}],
|
|
76
|
+
[IconContext, {
|
|
77
|
+
className: Radio_module_default["hop-Radio__icon"],
|
|
78
|
+
size
|
|
79
|
+
}]
|
|
80
|
+
],
|
|
81
|
+
children: children(radioProps)
|
|
82
|
+
}
|
|
83
|
+
) })
|
|
84
|
+
] });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
var _Radio = forwardRef(Radio);
|
|
90
|
+
_Radio.displayName = "Radio";
|
|
91
|
+
|
|
92
|
+
export { GlobalRadioCssSelector, _Radio };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
26
|
+
|
|
27
|
+
export { __commonJS, __toESM };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
2
|
+
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
3
|
+
import { TextContext } from './chunk-OE5BLFZI.js';
|
|
4
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { forwardRef } from 'react';
|
|
9
|
+
import { useId } from 'react-aria';
|
|
10
|
+
import { useContextProps } from 'react-aria-components';
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
// css-module:./SwitchField.module.css#css-module
|
|
14
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___REZnn", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___zhYuQ", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___rcmWy", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___N9E47", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___znvte" };
|
|
15
|
+
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
|
+
var SwitchToDescriptionSizeAdapter = {
|
|
17
|
+
sm: "xs",
|
|
18
|
+
md: "sm"
|
|
19
|
+
};
|
|
20
|
+
function SwitchField(props, ref) {
|
|
21
|
+
var _a;
|
|
22
|
+
[props, ref] = useContextProps(props, ref, SwitchFieldContext);
|
|
23
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
children,
|
|
27
|
+
isDisabled,
|
|
28
|
+
size: sizeProp = "md",
|
|
29
|
+
style,
|
|
30
|
+
slot,
|
|
31
|
+
...otherProps
|
|
32
|
+
} = ownProps;
|
|
33
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
34
|
+
const classNames = clsx(
|
|
35
|
+
className,
|
|
36
|
+
GlobalSwitchFieldCssSelector,
|
|
37
|
+
cssModule(
|
|
38
|
+
SwitchField_module_default,
|
|
39
|
+
"hop-SwitchField",
|
|
40
|
+
size
|
|
41
|
+
),
|
|
42
|
+
stylingProps.className
|
|
43
|
+
);
|
|
44
|
+
const mergedStyles = {
|
|
45
|
+
...stylingProps.style,
|
|
46
|
+
...style
|
|
47
|
+
};
|
|
48
|
+
const descriptionId = useId();
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
SlotProvider,
|
|
51
|
+
{
|
|
52
|
+
values: [
|
|
53
|
+
[TextContext, {
|
|
54
|
+
id: descriptionId,
|
|
55
|
+
className: SwitchField_module_default["hop-SwitchField__description"],
|
|
56
|
+
size: SwitchToDescriptionSizeAdapter[size]
|
|
57
|
+
}],
|
|
58
|
+
[SwitchContext, {
|
|
59
|
+
className: SwitchField_module_default["hop-SwitchField__switch"],
|
|
60
|
+
size,
|
|
61
|
+
isDisabled,
|
|
62
|
+
"aria-describedby": descriptionId
|
|
63
|
+
}]
|
|
64
|
+
],
|
|
65
|
+
children: /* @__PURE__ */ jsx(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
...otherProps,
|
|
69
|
+
ref,
|
|
70
|
+
className: classNames,
|
|
71
|
+
style: mergedStyles,
|
|
72
|
+
slot: slot != null ? slot : void 0,
|
|
73
|
+
"data-disabled": isDisabled,
|
|
74
|
+
children
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
var _SwitchField = forwardRef(SwitchField);
|
|
81
|
+
_SwitchField.displayName = "SwitchField";
|
|
82
|
+
|
|
83
|
+
export { GlobalSwitchFieldCssSelector, _SwitchField };
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { useContextProps } from 'react-aria-components';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
|
-
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
7
3
|
import { IconContext } from '@hopper-ui/icons';
|
|
4
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps } from 'react-aria-components';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
|
-
//
|
|
11
|
-
var
|
|
10
|
+
// css-module:./IconList.module.css#css-module
|
|
11
|
+
var IconList_module_default = { "hop-IconList": "IconList-module__hop-IconList___eJ4Sl" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
|
-
var DefaultIconListSlot = "icon";
|
|
14
13
|
function IconList(props, ref) {
|
|
15
|
-
[props, ref] = useContextProps(
|
|
14
|
+
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
16
15
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
17
16
|
const { children, style, className, slot, size, ...otherProps } = ownProps;
|
|
18
17
|
const classNames = clsx(
|
|
19
18
|
className,
|
|
20
19
|
GlobalIconListCssSelector,
|
|
21
|
-
|
|
20
|
+
IconList_module_default["hop-IconList"],
|
|
22
21
|
stylingProps.className
|
|
23
22
|
);
|
|
24
23
|
const mergedStyles = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children, isValidElement, Fragment } from 'react';
|
|
2
2
|
|
|
3
|
-
// src/utils/src/
|
|
3
|
+
// src/utils/src/isTextOnlyChildren.ts
|
|
4
4
|
function isTextOnlyChildren(children) {
|
|
5
5
|
const resolvedChildren = resolveChildren(children);
|
|
6
6
|
return typeof resolvedChildren === "string" || Children.toArray(resolvedChildren).every((c) => !isValidElement(c));
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/Text/src/Text.module.css/#css-module-data */
|
|
2
|
+
.Text-module__hop-Text___-u1e- {
|
|
3
|
+
--hop-Text-xs-font-size: var(--hop-body-xs-font-size);
|
|
4
|
+
--hop-Text-xs-font-family: var(--hop-body-xs-font-family);
|
|
5
|
+
--hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
|
|
6
|
+
--hop-Text-xs-line-height: var(--hop-body-xs-line-height);
|
|
7
|
+
--hop-Text-sm-font-size: var(--hop-body-sm-font-size);
|
|
8
|
+
--hop-Text-sm-font-family: var(--hop-body-sm-font-family);
|
|
9
|
+
--hop-Text-sm-font-weight: var(--hop-body-sm-font-weight);
|
|
10
|
+
--hop-Text-sm-line-height: var(--hop-body-sm-line-height);
|
|
11
|
+
--hop-Text-md-font-size: var(--hop-body-md-font-size);
|
|
12
|
+
--hop-Text-md-font-family: var(--hop-body-md-font-family);
|
|
13
|
+
--hop-Text-md-font-weight: var(--hop-body-md-font-weight);
|
|
14
|
+
--hop-Text-md-line-height: var(--hop-body-md-line-height);
|
|
15
|
+
--hop-Text-lg-font-size: var(--hop-body-lg-font-size);
|
|
16
|
+
--hop-Text-lg-font-family: var(--hop-body-lg-font-family);
|
|
17
|
+
--hop-Text-lg-font-weight: var(--hop-body-lg-font-weight);
|
|
18
|
+
--hop-Text-lg-line-height: var(--hop-body-lg-line-height);
|
|
19
|
+
--hop-Text-xl-font-size: var(--hop-body-xl-font-size);
|
|
20
|
+
--hop-Text-xl-font-family: var(--hop-body-xl-font-family);
|
|
21
|
+
--hop-Text-xl-font-weight: var(--hop-body-xl-font-weight);
|
|
22
|
+
--hop-Text-xl-line-height: var(--hop-body-xl-line-height);
|
|
23
|
+
--hop-Text-2xl-font-size: var(--hop-body-2xl-font-size);
|
|
24
|
+
--hop-Text-2xl-font-family: var(--hop-body-2xl-font-family);
|
|
25
|
+
--hop-Text-2xl-font-weight: var(--hop-body-2xl-font-weight);
|
|
26
|
+
--hop-Text-2xl-line-height: var(--hop-body-2xl-line-height);
|
|
27
|
+
--hop-Text-inherit-size-font-size: inherit;
|
|
28
|
+
--hop-Text-inherit-size-font-family: inherit;
|
|
29
|
+
--hop-Text-inherit-size-font-weight: inherit;
|
|
30
|
+
--hop-Text-inherit-size-line-height: inherit;
|
|
31
|
+
}
|
|
32
|
+
:where(.Text-module__hop-Text___-u1e-) {
|
|
33
|
+
font-family: var(--font-family);
|
|
34
|
+
font-size: var(--font-size);
|
|
35
|
+
font-weight: var(--font-weight);
|
|
36
|
+
line-height: var(--line-height);
|
|
37
|
+
}
|
|
38
|
+
:where(.Text-module__hop-Text--xs___P2Mlk) {
|
|
39
|
+
--font-size: var(--hop-Text-xs-font-size);
|
|
40
|
+
--font-family: var(--hop-Text-xs-font-family);
|
|
41
|
+
--font-weight: var(--hop-Text-xs-font-weight);
|
|
42
|
+
--line-height: var(--hop-Text-xs-line-height);
|
|
43
|
+
}
|
|
44
|
+
:where(.Text-module__hop-Text--sm___DIgJn) {
|
|
45
|
+
--font-size: var(--hop-Text-sm-font-size);
|
|
46
|
+
--font-family: var(--hop-Text-sm-font-family);
|
|
47
|
+
--font-weight: var(--hop-Text-sm-font-weight);
|
|
48
|
+
--line-height: var(--hop-Text-sm-line-height);
|
|
49
|
+
}
|
|
50
|
+
:where(.Text-module__hop-Text--md___EBUtj) {
|
|
51
|
+
--font-size: var(--hop-Text-md-font-size);
|
|
52
|
+
--font-family: var(--hop-Text-md-font-family);
|
|
53
|
+
--font-weight: var(--hop-Text-md-font-weight);
|
|
54
|
+
--line-height: var(--hop-Text-md-line-height);
|
|
55
|
+
}
|
|
56
|
+
:where(.Text-module__hop-Text--lg___Au1wj) {
|
|
57
|
+
--font-size: var(--hop-Text-lg-font-size);
|
|
58
|
+
--font-family: var(--hop-Text-lg-font-family);
|
|
59
|
+
--font-weight: var(--hop-Text-lg-font-weight);
|
|
60
|
+
--line-height: var(--hop-Text-lg-line-height);
|
|
61
|
+
}
|
|
62
|
+
:where(.Text-module__hop-Text--xl___UoQSa) {
|
|
63
|
+
--font-size: var(--hop-Text-xl-font-size);
|
|
64
|
+
--font-family: var(--hop-Text-xl-font-family);
|
|
65
|
+
--font-weight: var(--hop-Text-xl-font-weight);
|
|
66
|
+
--line-height: var(--hop-Text-xl-line-height);
|
|
67
|
+
}
|
|
68
|
+
:where(.Text-module__hop-Text--2xl___Nxjf-) {
|
|
69
|
+
--font-size: var(--hop-Text-2xl-font-size);
|
|
70
|
+
--font-family: var(--hop-Text-2xl-font-family);
|
|
71
|
+
--font-weight: var(--hop-Text-2xl-font-weight);
|
|
72
|
+
--line-height: var(--hop-Text-2xl-line-height);
|
|
73
|
+
}
|
|
74
|
+
:where(.Text-module__hop-Text--inherit___WPX1D) {
|
|
75
|
+
--font-size: var(--hop-Text-inherit-size-font-size);
|
|
76
|
+
--font-family: var(--hop-Text-inherit-size-font-family);
|
|
77
|
+
--font-weight: var(--hop-Text-inherit-size-font-weight);
|
|
78
|
+
--line-height: var(--hop-Text-inherit-size-line-height);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/errorMessage/src/ErrorMessage.module.css/#css-module-data */
|
|
82
|
+
.ErrorMessage-module__hop-ErrorMessage___ByQ5V {
|
|
83
|
+
--hop-ErrorMessage-color: var(--hop-danger-text-weak);
|
|
84
|
+
--hop-ErrorMessage-font-family: var(--hop-body-xs-font-family);
|
|
85
|
+
--hop-ErrorMessage-font-size: var(--hop-body-xs-font-size);
|
|
86
|
+
--hop-ErrorMessage-font-weight: var(--hop-body-xs-font-weight);
|
|
87
|
+
--hop-ErrorMessage-line-height: var(--hop-body-xs-line-height);
|
|
88
|
+
--hop-ErrorMessage-column-gap: var(--hop-space-inline-xs);
|
|
89
|
+
display: flex;
|
|
90
|
+
column-gap: var(--hop-ErrorMessage-column-gap);
|
|
91
|
+
align-items: center;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
font-family: var(--hop-ErrorMessage-font-family);
|
|
94
|
+
font-size: var(--hop-ErrorMessage-font-size);
|
|
95
|
+
font-weight: var(--hop-ErrorMessage-font-weight);
|
|
96
|
+
line-height: var(--hop-ErrorMessage-line-height);
|
|
97
|
+
color: var(--hop-ErrorMessage-color);
|
|
98
|
+
}
|
|
99
|
+
.ErrorMessage-module__hop-ErrorMessage__icon___Z0oW9 {
|
|
100
|
+
flex: 0 0 auto;
|
|
101
|
+
align-self: flex-start;
|
|
102
|
+
}
|