@hopper-ui/components 1.3.23 → 1.3.25
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 +15 -0
- package/dist/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +3 -3
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +4 -4
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +6 -6
- package/dist/Badge/src/Badge.css +42 -42
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +37 -37
- package/dist/Badge/src/FloatingBadge.js +2 -2
- package/dist/Badge/src/index.css +52 -52
- package/dist/Badge/src/index.js +5 -5
- package/dist/ComboBox/src/ComboBox.css +900 -900
- package/dist/ComboBox/src/ComboBox.js +8 -8
- package/dist/ComboBox/src/ComboBoxOptions.css +900 -900
- package/dist/ComboBox/src/ComboBoxOptions.js +67 -71
- package/dist/ComboBox/src/index.css +900 -900
- package/dist/ComboBox/src/index.js +67 -71
- package/dist/Divider/src/Divider.css +29 -29
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +29 -29
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +29 -29
- package/dist/ErrorMessage/src/ErrorMessage.js +3 -3
- package/dist/ErrorMessage/src/index.css +29 -29
- package/dist/ErrorMessage/src/index.js +3 -3
- package/dist/Form/src/Form.css +900 -900
- package/dist/Form/src/Form.js +67 -71
- package/dist/Form/src/index.css +900 -900
- package/dist/Form/src/index.js +67 -71
- package/dist/HelperMessage/src/HelperMessage.css +29 -29
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +29 -29
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +28 -28
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +28 -28
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +49 -49
- package/dist/Link/src/Link.js +7 -7
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +406 -406
- package/dist/ListBox/src/ListBox.js +12 -12
- package/dist/ListBox/src/ListBoxItem.css +394 -394
- package/dist/ListBox/src/ListBoxItem.d.ts +1 -1
- package/dist/ListBox/src/ListBoxItem.js +11 -11
- package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +406 -406
- package/dist/ListBox/src/index.js +12 -12
- package/dist/Select/src/Select.css +428 -428
- package/dist/Select/src/Select.js +8 -8
- package/dist/Select/src/SelectOptions.css +900 -900
- package/dist/Select/src/SelectOptions.js +67 -71
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +6 -6
- package/dist/Select/src/index.css +900 -900
- package/dist/Select/src/index.js +67 -71
- package/dist/Spinner/src/Spinner.css +37 -37
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +37 -37
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +93 -93
- package/dist/buttons/src/Button.js +8 -8
- package/dist/buttons/src/ButtonGroup.css +38 -38
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +98 -98
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/LinkButton.css +102 -102
- package/dist/buttons/src/LinkButton.js +8 -8
- package/dist/buttons/src/index.css +249 -249
- package/dist/buttons/src/index.js +14 -14
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +7 -7
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.d.ts +5 -0
- package/dist/checkbox/src/CheckboxField.js +4 -2
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.d.ts +7 -11
- package/dist/checkbox/src/CheckboxGroup.js +10 -3
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.d.ts +1 -1
- package/dist/checkbox/src/DecorativeCheckbox.js +7 -7
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.d.ts +1 -3
- package/dist/checkbox/src/index.js +12 -12
- package/dist/{chunk-4PL7X7KE.js → chunk-2ETSJJL5.js} +2 -2
- package/dist/{chunk-LDNIFXIK.js → chunk-2KG3OHKZ.js} +3 -3
- package/dist/{chunk-MMTH7I32.js → chunk-3JTKO6GT.js} +1 -1
- package/dist/{chunk-S3HUD5FR.js → chunk-4TP6C4G2.js} +6 -6
- package/dist/{chunk-SH7Y7ZAK.js → chunk-53JGRJCV.js} +2 -2
- package/dist/{chunk-OJWMKFCM.js → chunk-5HPWSPMG.js} +1 -1
- package/dist/{chunk-VGEDX2KH.js → chunk-62HFZTN3.js} +1 -1
- package/dist/{chunk-Q5ITMJW2.js → chunk-6FGO2GDP.js} +4 -4
- package/dist/{chunk-XFPH3PDB.js → chunk-7F5TKAIG.js} +4 -4
- package/dist/{chunk-ME25LLJQ.js → chunk-A2EH4QHT.js} +2 -2
- package/dist/{chunk-T3RZI4I7.js → chunk-AAMEZDS5.js} +1 -1
- package/dist/{chunk-ZAOJLOO4.js → chunk-AGPDWIJB.js} +1 -1
- package/dist/{chunk-VD3VD7FT.js → chunk-BTHGQBNC.js} +4 -4
- package/dist/{chunk-W5COIO2O.js → chunk-CB2SODXY.js} +2 -2
- package/dist/{chunk-C4MZAXMT.js → chunk-CCZOA5KO.js} +2 -2
- package/dist/{chunk-JM577F4Y.js → chunk-FR7CLIF6.js} +1 -1
- package/dist/{chunk-GS3BOLCC.js → chunk-G5AT4DUS.js} +25 -15
- package/dist/{chunk-5RWK5FRS.js → chunk-HL6KUV6M.js} +4 -4
- package/dist/{chunk-22R324WS.js → chunk-IH3RR5MG.js} +4 -4
- package/dist/{chunk-HC5CLOX3.js → chunk-KAYNG6FW.js} +1 -1
- package/dist/{chunk-GL7Z5DMW.js → chunk-KJIGRQNG.js} +7 -7
- package/dist/{chunk-E5X75YOL.js → chunk-L37Y7HGN.js} +2 -2
- package/dist/{chunk-GUB5P3EE.js → chunk-L7RJGOCA.js} +2 -2
- package/dist/{chunk-V7VLONEF.js → chunk-LVMXSXUU.js} +7 -7
- package/dist/{chunk-JZQ5ECZR.js → chunk-M6YJFDSQ.js} +4 -4
- package/dist/{chunk-YSPOLHL3.js → chunk-MMOO3PA2.js} +22 -13
- package/dist/chunk-N3ZSOPEG.js +133 -0
- package/dist/{chunk-QNC5YD7L.js → chunk-NGK3TCDT.js} +3 -3
- package/dist/{chunk-Q4IWTQWW.js → chunk-NSMUWG64.js} +1 -1
- package/dist/{chunk-274FJB5O.js → chunk-P5EJKG65.js} +2 -2
- package/dist/{chunk-ZSCI4FHZ.js → chunk-P6DGNPLB.js} +1 -1
- package/dist/{chunk-HJZRGFXZ.js → chunk-PAYW2NOQ.js} +3 -3
- package/dist/{chunk-J2ZYJILQ.js → chunk-PM3R4HC6.js} +5 -5
- package/dist/{chunk-HCU4ACIU.js → chunk-QCEUL6I6.js} +2 -2
- package/dist/{chunk-2ASLFWR3.js → chunk-QH5LWKA7.js} +1 -1
- package/dist/{chunk-LJ5XIABY.js → chunk-QIFW365G.js} +3 -3
- package/dist/{chunk-4ICFPMB2.js → chunk-RFDRCPQ7.js} +4 -4
- package/dist/{chunk-7TOEC4BY.js → chunk-SLF2NM3M.js} +3 -3
- package/dist/{chunk-6IOI5J2G.js → chunk-TLQ7IGJK.js} +3 -3
- package/dist/{chunk-EKO72ADZ.js → chunk-VG4DSVZN.js} +3 -3
- package/dist/{chunk-W6PNTZPC.js → chunk-VNW2HMOF.js} +2 -2
- package/dist/{chunk-N5DC4UFP.js → chunk-WABC2ZXX.js} +3 -3
- package/dist/{chunk-QN4JO3ZF.js → chunk-WQT2547E.js} +1 -1
- package/dist/{chunk-2E3YA5WL.js → chunk-WYWHOSC6.js} +3 -3
- package/dist/{chunk-H3MVVKNK.js → chunk-X7WNB6WS.js} +1 -1
- package/dist/{chunk-CFRCUHQZ.js → chunk-XSKVQY7T.js} +11 -11
- package/dist/{chunk-FJJGUPQ2.js → chunk-XVOHLDT7.js} +3 -3
- package/dist/chunk-YSI55QTD.js +133 -0
- package/dist/index.css +900 -900
- package/dist/index.d.ts +4 -8
- package/dist/index.js +67 -71
- package/dist/inputs/src/InputGroup.css +264 -264
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/NumberField.css +286 -286
- package/dist/inputs/src/NumberField.js +8 -8
- package/dist/inputs/src/PasswordField.css +274 -274
- package/dist/inputs/src/PasswordField.js +9 -9
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.js +6 -6
- package/dist/inputs/src/SearchField.css +280 -280
- package/dist/inputs/src/SearchField.js +9 -9
- package/dist/inputs/src/TextArea.css +281 -281
- package/dist/inputs/src/TextArea.js +9 -9
- package/dist/inputs/src/TextField.css +278 -278
- package/dist/inputs/src/TextField.js +12 -12
- package/dist/inputs/src/index.css +324 -324
- package/dist/inputs/src/index.js +18 -18
- package/dist/overlays/Popover/src/Popover.css +900 -900
- package/dist/overlays/Popover/src/Popover.js +67 -71
- package/dist/overlays/Popover/src/index.css +900 -900
- package/dist/overlays/Popover/src/index.js +67 -71
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.d.ts +1 -1
- package/dist/radio/src/DecorativeRadio.js +7 -7
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +7 -7
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.d.ts +5 -0
- package/dist/radio/src/RadioField.js +3 -2
- package/dist/radio/src/RadioGroup.css +129 -129
- package/dist/radio/src/RadioGroup.d.ts +7 -11
- package/dist/radio/src/RadioGroup.js +11 -4
- package/dist/radio/src/index.css +264 -264
- package/dist/radio/src/index.d.ts +4 -6
- package/dist/radio/src/index.js +13 -13
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +7 -7
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +3 -3
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +9 -9
- package/dist/tag/src/Tag.css +390 -390
- package/dist/tag/src/Tag.js +11 -11
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.js +2 -2
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +400 -400
- package/dist/tag/src/index.js +13 -13
- package/dist/typography/Heading/src/Heading.css +27 -27
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +27 -27
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +27 -27
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +27 -27
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +27 -27
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +27 -27
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +27 -27
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +27 -27
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +27 -27
- package/dist/utils/src/EnsureTextWrapper.js +5 -5
- package/dist/utils/src/index.css +27 -27
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +6 -6
- package/dist/utils/src/types.d.ts +25 -1
- package/dist/utils/src/useRenderProps.d.ts +2 -1
- package/package.json +19 -18
- package/dist/Avatar/src/AnonymousAvatar.temp.css +0 -296
- package/dist/Avatar/src/AnonymousAvatar.temp.d.ts +0 -31
- package/dist/Avatar/src/AnonymousAvatar.temp.js +0 -60
- package/dist/checkbox/src/CheckboxList.d.ts +0 -17
- package/dist/checkbox/src/CheckboxList.js +0 -3
- package/dist/checkbox/src/CheckboxListContext.d.ts +0 -10
- package/dist/checkbox/src/CheckboxListContext.js +0 -2
- package/dist/chunk-3HAFXWC7.js +0 -105
- package/dist/chunk-3LRBUQC2.js +0 -43
- package/dist/chunk-A7TZHALP.js +0 -7
- package/dist/chunk-CXPA2XU3.js +0 -105
- package/dist/chunk-NKHMUPAP.js +0 -43
- package/dist/chunk-WDUQUPTE.js +0 -7
- package/dist/radio/src/RadioList.d.ts +0 -17
- package/dist/radio/src/RadioList.js +0 -3
- package/dist/radio/src/RadioListContext.d.ts +0 -10
- package/dist/radio/src/RadioListContext.js +0 -2
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
-
import { ForwardedRef } from 'react';
|
|
4
|
-
import { AccessibleSlotProps, RenderProps } from '../../utils/src/types.js';
|
|
5
|
-
import { AvatarSize } from './Avatar.js';
|
|
6
|
-
import '@react-types/shared';
|
|
7
|
-
import 'react-aria-components';
|
|
8
|
-
import '../../typography/Text/src/Text.js';
|
|
9
|
-
import '../../utils/src/sizeAdapter.js';
|
|
10
|
-
|
|
11
|
-
declare const GlobalAnonymousAvatarCssSelector = "hop-AnonymousAvatar";
|
|
12
|
-
interface AnonymousAvatarRenderProps {
|
|
13
|
-
/**
|
|
14
|
-
* Whether or not the avatar is disabled.
|
|
15
|
-
*/
|
|
16
|
-
isDisabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface AnonymousAvatarProps extends StyledSystemProps, AccessibleSlotProps, Omit<RenderProps<AnonymousAvatarRenderProps>, "children"> {
|
|
19
|
-
/**
|
|
20
|
-
* Whether or not the avatar is disabled.
|
|
21
|
-
*/
|
|
22
|
-
isDisabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The size of the avatar.
|
|
25
|
-
* * @default "md"
|
|
26
|
-
*/
|
|
27
|
-
size?: ResponsiveProp<AvatarSize>;
|
|
28
|
-
}
|
|
29
|
-
declare function AnonymousAvatar(props: AnonymousAvatarProps, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
export { AnonymousAvatar, type AnonymousAvatarProps, GlobalAnonymousAvatarCssSelector };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { AvatarContext } from '../../chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from '../../chunk-W6PNTZPC.js';
|
|
3
|
-
import '../../chunk-M36KANKC.js';
|
|
4
|
-
import { useRenderProps } from '../../chunk-NH3IVMXB.js';
|
|
5
|
-
import { composeClassnameRenderProps } from '../../chunk-65JPI4FL.js';
|
|
6
|
-
import '../../chunk-KVDXQMWI.js';
|
|
7
|
-
import '../../chunk-JWW56J7M.js';
|
|
8
|
-
import '../../chunk-JSBRDJBE.js';
|
|
9
|
-
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
10
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
|
-
import { forwardRef } from 'react';
|
|
12
|
-
import { mergeProps } from 'react-aria';
|
|
13
|
-
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
14
|
-
import { jsx } from 'react/jsx-runtime';
|
|
15
|
-
|
|
16
|
-
var GlobalAnonymousAvatarCssSelector = "hop-AnonymousAvatar";
|
|
17
|
-
function AnonymousAvatar(props, ref) {
|
|
18
|
-
var _a;
|
|
19
|
-
[props, ref] = useContextProps(props, ref, AvatarContext);
|
|
20
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
21
|
-
const {
|
|
22
|
-
className,
|
|
23
|
-
style,
|
|
24
|
-
size: sizeValue,
|
|
25
|
-
...otherProps
|
|
26
|
-
} = ownProps;
|
|
27
|
-
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
28
|
-
const classNames = composeClassnameRenderProps(
|
|
29
|
-
className,
|
|
30
|
-
GlobalAnonymousAvatarCssSelector,
|
|
31
|
-
stylingProps.className
|
|
32
|
-
);
|
|
33
|
-
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
34
|
-
return {
|
|
35
|
-
...stylingProps.style,
|
|
36
|
-
...prev
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
const renderProps = useRenderProps({
|
|
40
|
-
...otherProps,
|
|
41
|
-
className: classNames,
|
|
42
|
-
style: mergedStyles,
|
|
43
|
-
values: {
|
|
44
|
-
isDisabled: props.isDisabled || false
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return /* @__PURE__ */ jsx(
|
|
48
|
-
_RichIconAvatarImage,
|
|
49
|
-
{
|
|
50
|
-
...mergeProps(otherProps, renderProps),
|
|
51
|
-
ref,
|
|
52
|
-
size,
|
|
53
|
-
children: /* @__PURE__ */ jsx(AnonymousRichIcon, {})
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
var _AnonymousAvatar = forwardRef(AnonymousAvatar);
|
|
58
|
-
_AnonymousAvatar.displayName = "AnonymousAvatar";
|
|
59
|
-
|
|
60
|
-
export { AnonymousAvatar, GlobalAnonymousAvatarCssSelector };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { StyledSystemProps } from '@hopper-ui/styled-system';
|
|
3
|
-
import { BaseComponentDOMProps } from '../../utils/src/types.js';
|
|
4
|
-
import '@react-types/shared';
|
|
5
|
-
import 'react-aria-components';
|
|
6
|
-
|
|
7
|
-
declare const GlobalCheckboxListCssSelector = "hop-CheckboxList";
|
|
8
|
-
interface CheckboxListProps extends StyledSystemProps, BaseComponentDOMProps {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The Checkbox List component is a container for a group of checkboxes.
|
|
12
|
-
*
|
|
13
|
-
* [View Documentation](TODO)
|
|
14
|
-
*/
|
|
15
|
-
declare const _CheckboxList: react.ForwardRefExoticComponent<CheckboxListProps & react.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
|
|
17
|
-
export { _CheckboxList as CheckboxList, type CheckboxListProps, GlobalCheckboxListCssSelector };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ContextValue } from 'react-aria-components';
|
|
3
|
-
import { CheckboxListProps } from './CheckboxList.js';
|
|
4
|
-
import '@hopper-ui/styled-system';
|
|
5
|
-
import '../../utils/src/types.js';
|
|
6
|
-
import '@react-types/shared';
|
|
7
|
-
|
|
8
|
-
declare const CheckboxListContext: react.Context<ContextValue<CheckboxListProps, HTMLDivElement>>;
|
|
9
|
-
|
|
10
|
-
export { CheckboxListContext };
|
package/dist/chunk-3HAFXWC7.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
2
|
-
import { RadioListContext } from './chunk-A7TZHALP.js';
|
|
3
|
-
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
4
|
-
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
5
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
12
|
-
import { forwardRef } from 'react';
|
|
13
|
-
import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from 'react-aria-components';
|
|
14
|
-
import { jsx } from 'react/jsx-runtime';
|
|
15
|
-
|
|
16
|
-
// css-module:./RadioGroup.module.css#css-module
|
|
17
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___M4nxU", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___nHkTy", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___rghH4", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___oherm", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___LMtH-", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___fhOj3", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___xTCm2", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___IAkIi", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___2C-Pi" };
|
|
18
|
-
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
|
-
function RadioGroup(props, ref) {
|
|
20
|
-
var _a, _b;
|
|
21
|
-
[props, ref] = useContextProps(props, ref, RadioGroupContext);
|
|
22
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
|
-
const {
|
|
24
|
-
className,
|
|
25
|
-
children,
|
|
26
|
-
isDisabled,
|
|
27
|
-
isInvalid,
|
|
28
|
-
isRequired,
|
|
29
|
-
orientation: orientationProp = "vertical",
|
|
30
|
-
size: sizeProp = "md",
|
|
31
|
-
style: styleProp,
|
|
32
|
-
variant = "borderless",
|
|
33
|
-
necessityIndicator,
|
|
34
|
-
...otherProps
|
|
35
|
-
} = ownProps;
|
|
36
|
-
const orientation = (_a = useResponsiveValue(orientationProp)) != null ? _a : "vertical";
|
|
37
|
-
const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "md";
|
|
38
|
-
const classNames = composeClassnameRenderProps(
|
|
39
|
-
className,
|
|
40
|
-
GlobalRadioGroupCssSelector,
|
|
41
|
-
cssModule(
|
|
42
|
-
RadioGroup_module_default,
|
|
43
|
-
"hop-RadioGroup",
|
|
44
|
-
size,
|
|
45
|
-
variant
|
|
46
|
-
),
|
|
47
|
-
stylingProps.className
|
|
48
|
-
);
|
|
49
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
50
|
-
return {
|
|
51
|
-
...stylingProps.style,
|
|
52
|
-
...prev
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
return /* @__PURE__ */ jsx(
|
|
56
|
-
SlotProvider,
|
|
57
|
-
{
|
|
58
|
-
values: [
|
|
59
|
-
[LabelContext, {
|
|
60
|
-
className: RadioGroup_module_default["hop-RadioGroup__label"],
|
|
61
|
-
isRequired,
|
|
62
|
-
necessityIndicator
|
|
63
|
-
}],
|
|
64
|
-
[RadioContext, {
|
|
65
|
-
className: RadioGroup_module_default["hop-RadioGroup__radio"],
|
|
66
|
-
size
|
|
67
|
-
}],
|
|
68
|
-
[RadioFieldContext, {
|
|
69
|
-
className: RadioGroup_module_default["hop-RadioGroup__radio"],
|
|
70
|
-
size,
|
|
71
|
-
isDisabled
|
|
72
|
-
}],
|
|
73
|
-
[RadioListContext, {
|
|
74
|
-
className: RadioGroup_module_default["hop-RadioGroup__list"]
|
|
75
|
-
}],
|
|
76
|
-
[ErrorMessageContext, {
|
|
77
|
-
className: RadioGroup_module_default["hop-RadioGroup__error-message"],
|
|
78
|
-
hideIcon: true
|
|
79
|
-
}],
|
|
80
|
-
[HelperMessageContext, {
|
|
81
|
-
className: RadioGroup_module_default["hop-RadioGroup__helper-message"],
|
|
82
|
-
hideIcon: true
|
|
83
|
-
}]
|
|
84
|
-
],
|
|
85
|
-
children: /* @__PURE__ */ jsx(
|
|
86
|
-
RadioGroup$1,
|
|
87
|
-
{
|
|
88
|
-
ref,
|
|
89
|
-
className: classNames,
|
|
90
|
-
style,
|
|
91
|
-
isInvalid,
|
|
92
|
-
isDisabled,
|
|
93
|
-
isRequired,
|
|
94
|
-
orientation,
|
|
95
|
-
...otherProps,
|
|
96
|
-
children
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
var _RadioGroup = forwardRef(RadioGroup);
|
|
103
|
-
_RadioGroup.displayName = "RadioGroup";
|
|
104
|
-
|
|
105
|
-
export { GlobalRadioGroupCssSelector, _RadioGroup };
|
package/dist/chunk-3LRBUQC2.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CheckboxListContext } from './chunk-WDUQUPTE.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 GlobalCheckboxListCssSelector = "hop-CheckboxList";
|
|
9
|
-
function CheckboxList(props, ref) {
|
|
10
|
-
[props, ref] = useContextProps(props, ref, CheckboxListContext);
|
|
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
|
-
GlobalCheckboxListCssSelector,
|
|
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 _CheckboxList = forwardRef(CheckboxList);
|
|
41
|
-
_CheckboxList.displayName = "CheckboxList";
|
|
42
|
-
|
|
43
|
-
export { GlobalCheckboxListCssSelector, _CheckboxList };
|
package/dist/chunk-A7TZHALP.js
DELETED
package/dist/chunk-CXPA2XU3.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
|
-
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
3
|
-
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
4
|
-
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
5
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
12
|
-
import { forwardRef } from 'react';
|
|
13
|
-
import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 } from 'react-aria-components';
|
|
14
|
-
import { jsx } from 'react/jsx-runtime';
|
|
15
|
-
|
|
16
|
-
// css-module:./CheckboxGroup.module.css#css-module
|
|
17
|
-
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___NcO6p", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___a3G2P", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___Vm2Wf", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___QXcfd", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___-3h2I", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___TUYIp", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___gpEbz", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___KFiW8", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___71EIV" };
|
|
18
|
-
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
|
-
function CheckboxGroup(props, ref) {
|
|
20
|
-
var _a, _b;
|
|
21
|
-
[props, ref] = useContextProps(props, ref, CheckboxGroupContext);
|
|
22
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
|
-
const {
|
|
24
|
-
className,
|
|
25
|
-
children,
|
|
26
|
-
isDisabled,
|
|
27
|
-
isInvalid,
|
|
28
|
-
isRequired,
|
|
29
|
-
necessityIndicator,
|
|
30
|
-
orientation: orientationProp = "vertical",
|
|
31
|
-
size: sizeProp = "md",
|
|
32
|
-
style: styleProp,
|
|
33
|
-
variant = "borderless",
|
|
34
|
-
...otherProps
|
|
35
|
-
} = ownProps;
|
|
36
|
-
const orientation = (_a = useResponsiveValue(orientationProp)) != null ? _a : "vertical";
|
|
37
|
-
const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "md";
|
|
38
|
-
const classNames = composeClassnameRenderProps(
|
|
39
|
-
className,
|
|
40
|
-
GlobalCheckboxGroupCssSelector,
|
|
41
|
-
cssModule(
|
|
42
|
-
CheckboxGroup_module_default,
|
|
43
|
-
"hop-CheckboxGroup",
|
|
44
|
-
size,
|
|
45
|
-
variant
|
|
46
|
-
),
|
|
47
|
-
stylingProps.className
|
|
48
|
-
);
|
|
49
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
50
|
-
return {
|
|
51
|
-
...stylingProps.style,
|
|
52
|
-
...prev
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
return /* @__PURE__ */ jsx(
|
|
56
|
-
SlotProvider,
|
|
57
|
-
{
|
|
58
|
-
values: [
|
|
59
|
-
[LabelContext, {
|
|
60
|
-
className: CheckboxGroup_module_default["hop-CheckboxGroup__label"],
|
|
61
|
-
isRequired,
|
|
62
|
-
necessityIndicator
|
|
63
|
-
}],
|
|
64
|
-
[CheckboxContext, {
|
|
65
|
-
className: CheckboxGroup_module_default["hop-CheckboxGroup__checkbox"],
|
|
66
|
-
size
|
|
67
|
-
}],
|
|
68
|
-
[CheckboxFieldContext, {
|
|
69
|
-
className: CheckboxGroup_module_default["hop-CheckboxGroup__checkbox"],
|
|
70
|
-
size,
|
|
71
|
-
isDisabled
|
|
72
|
-
}],
|
|
73
|
-
[CheckboxListContext, {
|
|
74
|
-
className: CheckboxGroup_module_default["hop-CheckboxGroup__list"]
|
|
75
|
-
}],
|
|
76
|
-
[ErrorMessageContext, {
|
|
77
|
-
className: CheckboxGroup_module_default["hop-CheckboxGroup__error-message"],
|
|
78
|
-
hideIcon: true
|
|
79
|
-
}],
|
|
80
|
-
[HelperMessageContext, {
|
|
81
|
-
className: CheckboxGroup_module_default["hop-CheckboxGroup__helper-message"],
|
|
82
|
-
hideIcon: true
|
|
83
|
-
}]
|
|
84
|
-
],
|
|
85
|
-
children: /* @__PURE__ */ jsx(
|
|
86
|
-
CheckboxGroup$1,
|
|
87
|
-
{
|
|
88
|
-
ref,
|
|
89
|
-
className: classNames,
|
|
90
|
-
style,
|
|
91
|
-
isInvalid,
|
|
92
|
-
isDisabled,
|
|
93
|
-
isRequired,
|
|
94
|
-
"data-orientation": orientation,
|
|
95
|
-
...otherProps,
|
|
96
|
-
children
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
var _CheckboxGroup = forwardRef(CheckboxGroup);
|
|
103
|
-
_CheckboxGroup.displayName = "CheckboxGroup";
|
|
104
|
-
|
|
105
|
-
export { GlobalCheckboxGroupCssSelector, _CheckboxGroup };
|
package/dist/chunk-NKHMUPAP.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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 };
|
package/dist/chunk-WDUQUPTE.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { StyledSystemProps } from '@hopper-ui/styled-system';
|
|
3
|
-
import { BaseComponentDOMProps } from '../../utils/src/types.js';
|
|
4
|
-
import '@react-types/shared';
|
|
5
|
-
import 'react-aria-components';
|
|
6
|
-
|
|
7
|
-
declare const GlobalRadioListCssSelector = "hop-RadioList";
|
|
8
|
-
interface RadioListProps extends StyledSystemProps, BaseComponentDOMProps {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The Radio List component is a container for a group of radioes.
|
|
12
|
-
*
|
|
13
|
-
* [View Documentation](TODO)
|
|
14
|
-
*/
|
|
15
|
-
declare const _RadioList: react.ForwardRefExoticComponent<RadioListProps & react.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
|
|
17
|
-
export { GlobalRadioListCssSelector, _RadioList as RadioList, type RadioListProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ContextValue } from 'react-aria-components';
|
|
3
|
-
import { RadioListProps } from './RadioList.js';
|
|
4
|
-
import '@hopper-ui/styled-system';
|
|
5
|
-
import '../../utils/src/types.js';
|
|
6
|
-
import '@react-types/shared';
|
|
7
|
-
|
|
8
|
-
declare const RadioListContext: react.Context<ContextValue<RadioListProps, HTMLDivElement>>;
|
|
9
|
-
|
|
10
|
-
export { RadioListContext };
|