@hopper-ui/components 1.0.1 → 1.0.3
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 +14 -0
- package/dist/HopperProvider/src/HopperProvider.js +1 -1
- package/dist/HopperProvider/src/index.js +1 -1
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- package/dist/IconList/src/IconListContext.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +2 -2
- package/dist/Link/src/Link.css +32 -32
- package/dist/Link/src/Link.js +6 -6
- package/dist/Link/src/LinkContext.js +1 -1
- package/dist/Link/src/index.css +32 -32
- package/dist/Link/src/index.js +6 -6
- package/dist/Spinner/src/Spinner.css +29 -29
- package/dist/Spinner/src/Spinner.js +5 -5
- package/dist/Spinner/src/SpinnerContext.js +1 -1
- package/dist/Spinner/src/index.css +29 -29
- package/dist/Spinner/src/index.js +5 -5
- package/dist/badge/src/Badge.css +80 -0
- package/dist/badge/src/Badge.d.ts +26 -0
- package/dist/badge/src/Badge.js +6 -0
- package/dist/badge/src/BadgeContext.d.ts +10 -0
- package/dist/badge/src/BadgeContext.js +2 -0
- package/dist/badge/src/index.css +80 -0
- package/dist/badge/src/index.d.ts +7 -0
- package/dist/badge/src/index.js +6 -0
- package/dist/buttons/src/Button.css +120 -120
- package/dist/buttons/src/Button.d.ts +1 -1
- package/dist/buttons/src/Button.js +10 -10
- package/dist/buttons/src/ButtonContext.d.ts +1 -1
- package/dist/buttons/src/ButtonContext.js +1 -1
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.d.ts +1 -1
- package/dist/buttons/src/ButtonGroup.js +6 -83
- package/dist/buttons/src/ButtonGroupContext.js +1 -1
- package/dist/buttons/src/ClearButton.css +102 -0
- package/dist/buttons/src/ClearButton.d.ts +16 -0
- package/dist/buttons/src/ClearButton.js +9 -0
- package/dist/buttons/src/ClearButtonContext.d.ts +9 -0
- package/dist/buttons/src/ClearButtonContext.js +2 -0
- package/dist/buttons/src/EmbeddedButton.css +102 -0
- package/dist/buttons/src/EmbeddedButton.d.ts +20 -0
- package/dist/buttons/src/EmbeddedButton.js +6 -0
- package/dist/buttons/src/EmbeddedButtonContext.d.ts +8 -0
- package/dist/buttons/src/EmbeddedButtonContext.js +2 -0
- package/dist/buttons/src/index.css +262 -120
- package/dist/buttons/src/index.d.ts +7 -0
- package/dist/buttons/src/index.js +16 -10
- package/dist/checkbox/src/Checkbox.css +39 -35
- package/dist/checkbox/src/Checkbox.js +5 -5
- package/dist/checkbox/src/CheckboxContext.js +1 -1
- package/dist/checkbox/src/CheckboxField.css +16 -16
- package/dist/checkbox/src/CheckboxField.js +3 -3
- package/dist/checkbox/src/CheckboxFieldContext.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +79 -75
- package/dist/checkbox/src/CheckboxGroup.js +3 -3
- package/dist/checkbox/src/CheckboxGroupContext.js +1 -1
- package/dist/checkbox/src/CheckboxList.js +1 -1
- package/dist/checkbox/src/CheckboxListContext.js +1 -1
- package/dist/checkbox/src/index.css +79 -75
- package/dist/checkbox/src/index.js +8 -8
- package/dist/chip/src/Chip.css +34 -34
- package/dist/chip/src/Chip.js +4 -4
- package/dist/chip/src/ChipContext.js +1 -1
- package/dist/chip/src/index.css +34 -34
- package/dist/chip/src/index.js +4 -4
- package/dist/{chunk-YSQDPG26.js → chunk-2P3A4VVY.js} +6 -1
- package/dist/{chunk-CJFCOPMQ.js → chunk-2VBOJKEP.js} +2 -2
- package/dist/{chunk-3KIUEBO3.js → chunk-3DWVMCIV.js} +2 -2
- package/dist/chunk-3NKF5TPD.js +7 -0
- package/dist/{chunk-H234F7HP.js → chunk-3XFTRBIC.js} +2 -2
- package/dist/{chunk-HUJ3PTM7.js → chunk-4RIAVSLK.js} +2 -2
- package/dist/chunk-5EPNXRCT.js +44 -0
- package/dist/chunk-6BFSSZCY.js +7 -0
- package/dist/{chunk-BIVAOAN2.js → chunk-7NT6M6KM.js} +3 -3
- package/dist/chunk-AQITZWYM.js +43 -0
- package/dist/chunk-BAKCRZAG.js +82 -0
- package/dist/{chunk-TRS7R4W3.js → chunk-CTK5YVBZ.js} +2 -2
- package/dist/chunk-CTOL6AVF.js +156 -0
- package/dist/chunk-D6UTDI2K.js +28 -0
- package/dist/{chunk-ZUMAL5WB.js → chunk-DJU2DUTQ.js} +4 -3
- package/dist/{chunk-EADFYPVX.js → chunk-DLTYFRKN.js} +4 -4
- package/dist/chunk-DXVKHP4V.js +7 -0
- package/dist/{chunk-VYNBJRJW.js → chunk-EE75ND6V.js} +2 -2
- package/dist/chunk-EWMWQ2MC.js +7 -0
- package/dist/chunk-GF2U6E4D.js +56 -0
- package/dist/chunk-GXBVNCVP.js +43 -0
- package/dist/{chunk-BPM4ETTB.js → chunk-H6CDFWVR.js} +11 -3
- package/dist/chunk-I67NHYK4.js +7 -0
- package/dist/{chunk-KKFX7YII.js → chunk-IOLNBXZM.js} +6 -5
- package/dist/chunk-IXB2WK56.js +7 -0
- package/dist/{chunk-CE3ABLD2.js → chunk-JLF7DSUY.js} +4 -4
- package/dist/{chunk-3FT5XSWV.js → chunk-JLFHTZUA.js} +4 -4
- package/dist/chunk-LCAS3YQV.js +7 -0
- package/dist/chunk-LJXTJRSB.js +1 -0
- package/dist/chunk-LYV2D5RZ.js +69 -0
- package/dist/chunk-O4XPUINW.js +7 -0
- package/dist/chunk-O7IJYNVQ.js +7 -0
- package/dist/chunk-OGMLQRES.js +91 -0
- package/dist/chunk-OQW6BT6B.js +373 -0
- package/dist/{chunk-6EMOC7TA.js → chunk-OUN5KSHD.js} +2 -2
- package/dist/{chunk-HVKOIMMW.js → chunk-QCA3ZR56.js} +1 -1
- package/dist/chunk-QW45G6K4.js +7 -0
- package/dist/chunk-RXBKOHT2.js +83 -0
- package/dist/chunk-SC6ZK5ON.js +7 -0
- package/dist/chunk-TIPN4VYD.js +46 -0
- package/dist/chunk-TXZ6BMFR.js +7 -0
- package/dist/chunk-UARL5M2W.js +32 -0
- package/dist/{chunk-SC4G54ML.js → chunk-UY7WQ7TC.js} +8 -8
- package/dist/{chunk-G7RKLBFT.js → chunk-WLSLSMK7.js} +3 -3
- package/dist/chunk-WPNVVGFW.js +7 -0
- package/dist/chunk-WWRB4K4M.js +44 -0
- package/dist/{chunk-OE5BLFZI.js → chunk-X6SER3TZ.js} +1 -1
- package/dist/{chunk-FD4HMY5A.js → chunk-XFKAXBB5.js} +4 -4
- package/dist/{chunk-YFTLWL74.js → chunk-XIOIAME2.js} +1 -1
- package/dist/chunk-XLKYXKWE.js +7 -0
- package/dist/chunk-Y7HUXUHX.js +30 -0
- package/dist/chunk-YQHNOQ3N.js +96 -0
- package/dist/chunk-Z3ID4UEE.js +55 -0
- package/dist/chunk-ZSFJVMJN.js +7 -0
- package/dist/errorMessage/src/ErrorMessage.css +12 -12
- package/dist/errorMessage/src/ErrorMessage.d.ts +1 -1
- package/dist/errorMessage/src/ErrorMessage.js +4 -4
- package/dist/errorMessage/src/ErrorMessageContext.d.ts +1 -1
- package/dist/errorMessage/src/ErrorMessageContext.js +1 -1
- package/dist/errorMessage/src/index.css +12 -12
- package/dist/errorMessage/src/index.d.ts +1 -1
- package/dist/errorMessage/src/index.js +4 -4
- package/dist/helperMessage/src/HelperMessage.css +12 -12
- package/dist/helperMessage/src/HelperMessage.d.ts +1 -1
- package/dist/helperMessage/src/HelperMessage.js +4 -4
- package/dist/helperMessage/src/HelperMessageContext.d.ts +1 -1
- package/dist/helperMessage/src/HelperMessageContext.js +1 -1
- package/dist/helperMessage/src/index.css +12 -12
- package/dist/helperMessage/src/index.d.ts +1 -1
- package/dist/helperMessage/src/index.js +4 -4
- package/dist/i18n/src/index.js +2 -2
- package/dist/i18n/src/useLocalizedString.js +2 -2
- package/dist/inputs/src/InputGroup.css +111 -0
- package/dist/inputs/src/InputGroup.d.ts +24 -0
- package/dist/inputs/src/InputGroup.js +6 -0
- package/dist/inputs/src/InputGroupContext.d.ts +8 -0
- package/dist/inputs/src/InputGroupContext.js +2 -0
- package/dist/inputs/src/PasswordField.css +2527 -0
- package/dist/inputs/src/PasswordField.d.ts +33 -0
- package/dist/inputs/src/PasswordField.js +186 -0
- package/dist/inputs/src/PasswordFieldContext.d.ts +8 -0
- package/dist/inputs/src/PasswordFieldContext.js +2 -0
- package/dist/inputs/src/SearchField.css +2548 -0
- package/dist/inputs/src/SearchField.d.ts +42 -0
- package/dist/inputs/src/SearchField.js +186 -0
- package/dist/inputs/src/SearchFieldContext.d.ts +8 -0
- package/dist/inputs/src/SearchFieldContext.js +2 -0
- package/dist/inputs/src/TextField.css +2531 -0
- package/dist/inputs/src/TextField.d.ts +49 -0
- package/dist/inputs/src/TextField.js +79 -0
- package/dist/inputs/src/TextFieldContext.d.ts +8 -0
- package/dist/inputs/src/TextFieldContext.js +2 -0
- package/dist/inputs/src/index.css +2531 -0
- package/dist/inputs/src/index.d.ts +7 -0
- package/dist/inputs/src/index.js +79 -0
- package/dist/layout/src/Content.d.ts +17 -0
- package/dist/layout/src/Content.js +3 -0
- package/dist/layout/src/ContentContext.d.ts +10 -0
- package/dist/layout/src/ContentContext.js +2 -0
- package/dist/layout/src/Flex.js +1 -1
- package/dist/layout/src/Footer.d.ts +17 -0
- package/dist/layout/src/Footer.js +3 -0
- package/dist/layout/src/FooterContext.d.ts +10 -0
- package/dist/layout/src/FooterContext.js +2 -0
- package/dist/layout/src/Grid.js +2 -55
- package/dist/layout/src/Inline.js +3 -31
- package/dist/layout/src/Stack.js +3 -29
- package/dist/overlays/Popover/src/Popover.css +2456 -0
- package/dist/overlays/Popover/src/Popover.d.ts +20 -0
- package/dist/overlays/Popover/src/Popover.js +76 -0
- package/dist/overlays/Popover/src/PopoverContext.d.ts +9 -0
- package/dist/overlays/Popover/src/PopoverContext.js +2 -0
- package/dist/overlays/Popover/src/index.css +2456 -0
- package/dist/overlays/Popover/src/index.d.ts +6 -0
- package/dist/overlays/Popover/src/index.js +76 -0
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +5 -5
- package/dist/radio/src/RadioContext.js +1 -1
- package/dist/radio/src/RadioField.css +16 -16
- package/dist/radio/src/RadioField.js +5 -4
- package/dist/radio/src/RadioFieldContext.js +1 -1
- package/dist/radio/src/RadioGroup.css +137 -137
- package/dist/radio/src/RadioGroup.js +4 -4
- package/dist/radio/src/RadioGroupContext.js +1 -1
- package/dist/radio/src/RadioList.js +1 -1
- package/dist/radio/src/RadioListContext.js +1 -1
- package/dist/radio/src/index.css +71 -71
- package/dist/radio/src/index.js +9 -9
- package/dist/switch/src/Switch.css +26 -26
- package/dist/switch/src/Switch.js +5 -5
- package/dist/switch/src/SwitchContext.js +1 -1
- package/dist/switch/src/SwitchField.css +16 -16
- package/dist/switch/src/SwitchField.js +3 -3
- package/dist/switch/src/SwitchFieldContext.js +1 -1
- package/dist/switch/src/index.css +32 -32
- package/dist/switch/src/index.js +6 -6
- package/dist/tag/src/Tag.css +2380 -0
- package/dist/tag/src/Tag.d.ts +28 -0
- package/dist/tag/src/Tag.js +74 -0
- package/dist/tag/src/TagContext.d.ts +8 -0
- package/dist/tag/src/TagContext.js +2 -0
- package/dist/tag/src/TagGroup.css +239 -0
- package/dist/tag/src/TagGroup.d.ts +24 -0
- package/dist/tag/src/TagGroup.js +10 -0
- package/dist/tag/src/TagGroupContext.d.ts +8 -0
- package/dist/tag/src/TagGroupContext.js +2 -0
- package/dist/tag/src/TagList.d.ts +15 -0
- package/dist/tag/src/TagList.js +4 -0
- package/dist/tag/src/TagListContext.d.ts +8 -0
- package/dist/tag/src/TagListContext.js +2 -0
- package/dist/tag/src/index.css +2380 -0
- package/dist/tag/src/index.d.ts +9 -0
- package/dist/tag/src/index.js +74 -0
- package/dist/typography/Heading/src/Heading.css +2380 -0
- package/dist/typography/Heading/src/Heading.d.ts +57 -0
- package/dist/typography/Heading/src/Heading.js +74 -0
- package/dist/typography/Heading/src/HeadingContext.d.ts +8 -0
- package/dist/typography/Heading/src/HeadingContext.js +2 -0
- package/dist/typography/Heading/src/index.css +2380 -0
- package/dist/typography/Heading/src/index.d.ts +5 -0
- package/dist/typography/Heading/src/index.js +74 -0
- package/dist/{Label → typography/Label}/src/Label.css +14 -14
- package/dist/{Label → typography/Label}/src/Label.d.ts +2 -3
- package/dist/typography/Label/src/Label.js +4 -0
- package/dist/typography/Label/src/LabelContext.js +2 -0
- package/dist/{Label → typography/Label}/src/index.css +14 -14
- package/dist/{Label → typography/Label}/src/index.d.ts +1 -1
- package/dist/typography/Label/src/index.js +4 -0
- package/dist/typography/OverlineText/src/OverlineText.css +42 -0
- package/dist/typography/OverlineText/src/OverlineText.d.ts +15 -0
- package/dist/typography/OverlineText/src/OverlineText.js +4 -0
- package/dist/typography/OverlineText/src/OverlineTextContext.d.ts +8 -0
- package/dist/typography/OverlineText/src/OverlineTextContext.js +2 -0
- package/dist/typography/OverlineText/src/index.css +42 -0
- package/dist/typography/OverlineText/src/index.d.ts +5 -0
- package/dist/typography/OverlineText/src/index.js +4 -0
- package/dist/{Text → typography/Text}/src/Text.css +10 -10
- package/dist/typography/Text/src/Text.js +6 -0
- package/dist/typography/Text/src/TextContext.js +2 -0
- package/dist/{Text → typography/Text}/src/index.css +10 -10
- package/dist/typography/Text/src/index.js +6 -0
- package/dist/utils/src/ClearSlots.js +1 -1
- package/dist/utils/src/SlotProvider.js +1 -1
- package/dist/utils/src/assertion.d.ts +15 -0
- package/dist/utils/src/assertion.js +2 -0
- package/dist/utils/src/composeClassnameRenderProps.js +1 -1
- package/dist/utils/src/cssModule.js +1 -1
- package/dist/utils/src/index.d.ts +1 -0
- package/dist/utils/src/index.js +3 -2
- package/dist/utils/src/isTextOnlyChildren.js +1 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/dist/utils/src/useSlot.js +1 -1
- package/package.json +13 -12
- package/dist/Label/src/Label.js +0 -4
- package/dist/Label/src/LabelContext.js +0 -2
- package/dist/Label/src/index.js +0 -4
- package/dist/Text/src/Text.js +0 -6
- package/dist/Text/src/TextContext.js +0 -2
- package/dist/Text/src/index.js +0 -6
- /package/dist/{Label → typography/Label}/src/LabelContext.d.ts +0 -0
- /package/dist/{Text → typography/Text}/src/Text.d.ts +0 -0
- /package/dist/{Text → typography/Text}/src/TextContext.d.ts +0 -0
- /package/dist/{Text → typography/Text}/src/index.d.ts +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FooterContext } from './chunk-I67NHYK4.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 GlobalFooterCssSelector = "hop-Footer";
|
|
9
|
+
function Footer(props, ref) {
|
|
10
|
+
[props, ref] = useContextProps(props, ref, FooterContext);
|
|
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
|
+
GlobalFooterCssSelector,
|
|
21
|
+
stylingProps.className,
|
|
22
|
+
className
|
|
23
|
+
);
|
|
24
|
+
const mergedStyles = {
|
|
25
|
+
...stylingProps.style,
|
|
26
|
+
...style
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
"footer",
|
|
30
|
+
{
|
|
31
|
+
...otherProps,
|
|
32
|
+
ref,
|
|
33
|
+
className: classNames,
|
|
34
|
+
style: mergedStyles,
|
|
35
|
+
slot: slot || void 0,
|
|
36
|
+
children
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
var _Footer = forwardRef(Footer);
|
|
41
|
+
_Footer.displayName = "Footer";
|
|
42
|
+
|
|
43
|
+
export { GlobalFooterCssSelector, _Footer };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
2
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
|
+
import { filterDOMProps } from '@react-aria/utils';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { forwardRef } from 'react';
|
|
9
|
+
import { useContextProps } from 'react-aria-components';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
// css-module:./ButtonGroup.module.css#css-module
|
|
13
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___J-bP3", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___5DrPu", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___6mZqj", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___OQ5-x", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___Wa8qq", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___Bnq-S", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___w7xGi", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___cYLTZ" };
|
|
14
|
+
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
|
+
function ButtonGroup(props, ref) {
|
|
16
|
+
var _a, _b, _c, _d, _e;
|
|
17
|
+
[props, ref] = useContextProps(props, ref, ButtonGroupContext);
|
|
18
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
19
|
+
const {
|
|
20
|
+
children,
|
|
21
|
+
size: sizeProp,
|
|
22
|
+
isFluid: isFluidProp,
|
|
23
|
+
isDisabled = false,
|
|
24
|
+
className,
|
|
25
|
+
align: alignProp,
|
|
26
|
+
style: styleProp,
|
|
27
|
+
orientation: orientationProp,
|
|
28
|
+
wrap: wrapProp,
|
|
29
|
+
...otherProps
|
|
30
|
+
} = ownProps;
|
|
31
|
+
const align = (_a = useResponsiveValue(alignProp)) != null ? _a : "start";
|
|
32
|
+
const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "md";
|
|
33
|
+
const isFluid = (_c = useResponsiveValue(isFluidProp)) != null ? _c : false;
|
|
34
|
+
const wrap = (_d = useResponsiveValue(wrapProp)) != null ? _d : true;
|
|
35
|
+
const orientation = (_e = useResponsiveValue(orientationProp)) != null ? _e : "horizontal";
|
|
36
|
+
const classNames = clsx(
|
|
37
|
+
className,
|
|
38
|
+
GlobalButtonGroupCssSelector,
|
|
39
|
+
cssModule(
|
|
40
|
+
ButtonGroup_module_default,
|
|
41
|
+
"hop-ButtonGroup",
|
|
42
|
+
size,
|
|
43
|
+
align,
|
|
44
|
+
isFluid && "fluid",
|
|
45
|
+
wrap && "wrap",
|
|
46
|
+
orientation
|
|
47
|
+
),
|
|
48
|
+
stylingProps.className
|
|
49
|
+
);
|
|
50
|
+
const style = {
|
|
51
|
+
...stylingProps.style,
|
|
52
|
+
...styleProp
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
...filterDOMProps(otherProps, { labelable: true }),
|
|
58
|
+
ref,
|
|
59
|
+
className: classNames,
|
|
60
|
+
style,
|
|
61
|
+
slot: props.slot || void 0,
|
|
62
|
+
children: /* @__PURE__ */ jsx(
|
|
63
|
+
SlotProvider,
|
|
64
|
+
{
|
|
65
|
+
values: [[
|
|
66
|
+
ButtonContext,
|
|
67
|
+
{
|
|
68
|
+
size,
|
|
69
|
+
isDisabled,
|
|
70
|
+
isFluid
|
|
71
|
+
}
|
|
72
|
+
]],
|
|
73
|
+
children
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
var _ButtonGroup = forwardRef(ButtonGroup);
|
|
80
|
+
_ButtonGroup.displayName = "ButtonGroup";
|
|
81
|
+
|
|
82
|
+
export { GlobalButtonGroupCssSelector, _ButtonGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
1
2
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
2
|
-
import { LabelContext } from './chunk-HVKOIMMW.js';
|
|
3
3
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Label.module.css#css-module
|
|
10
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
10
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___tg1n7", "hop-Label--xs": "Label-module__hop-Label--xs___4pWwc", "hop-Label--sm": "Label-module__hop-Label--sm___lRRVW", "hop-Label--md": "Label-module__hop-Label--md___2oL46", "hop-Label--lg": "Label-module__hop-Label--lg___GE3zR", "hop-Label--xl": "Label-module__hop-Label--xl___8-86h", "hop-Label--2xl": "Label-module__hop-Label--2xl___HSwTt", "hop-Label--inherit": "Label-module__hop-Label--inherit___h8Ebb" };
|
|
11
11
|
var GlobalLabelCssSelector = "hop-Label";
|
|
12
12
|
function Label(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
|
+
import { _InputGroup } from './chunk-RXBKOHT2.js';
|
|
3
|
+
import { ErrorMessageContext } from './chunk-ACVMW6YD.js';
|
|
4
|
+
import { HelperMessageContext } from './chunk-ESVVLTEN.js';
|
|
5
|
+
import { _ClearButton } from './chunk-UARL5M2W.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-H6CDFWVR.js';
|
|
7
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
8
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
9
|
+
import { _Text } from './chunk-4RIAVSLK.js';
|
|
10
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
13
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
15
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
16
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
17
|
+
import { mergeRefs } from '@react-aria/utils';
|
|
18
|
+
import { useControlledState } from '@react-stately/utils';
|
|
19
|
+
import { forwardRef, useState, useCallback } from 'react';
|
|
20
|
+
import { useObjectRef } from 'react-aria';
|
|
21
|
+
import { useContextProps, composeRenderProps, Input, TextField as TextField$1 } from 'react-aria-components';
|
|
22
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
|
+
|
|
24
|
+
// css-module:./TextField.module.css#css-module
|
|
25
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___LVxGo", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___Zxhx8", "hop-TextField__Label": "TextField-module__hop-TextField__Label___j-hHO", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___W7szZ", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___6TfYD", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___rDG7U", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___l-32U" };
|
|
26
|
+
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
27
|
+
function TextField(props, ref) {
|
|
28
|
+
var _a;
|
|
29
|
+
const {
|
|
30
|
+
inputRef: userProvidedInputRef = null,
|
|
31
|
+
...propsWithoutRef
|
|
32
|
+
} = props;
|
|
33
|
+
[props, ref] = useContextProps(propsWithoutRef, ref, TextFieldContext);
|
|
34
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
35
|
+
const [characterCount, setCharacterCount] = useState(() => {
|
|
36
|
+
var _a2, _b, _c, _d;
|
|
37
|
+
return (_d = (_c = (_a2 = props.value) == null ? void 0 : _a2.length) != null ? _c : (_b = props.defaultValue) == null ? void 0 : _b.length) != null ? _d : 0;
|
|
38
|
+
});
|
|
39
|
+
const {
|
|
40
|
+
className,
|
|
41
|
+
style: styleProp,
|
|
42
|
+
size,
|
|
43
|
+
prefix,
|
|
44
|
+
showCharacterCount,
|
|
45
|
+
maxLength,
|
|
46
|
+
placeholder,
|
|
47
|
+
isClearable,
|
|
48
|
+
onChange: onChangeProp,
|
|
49
|
+
children,
|
|
50
|
+
onClear,
|
|
51
|
+
defaultValue,
|
|
52
|
+
value: valueProp,
|
|
53
|
+
isFluid: isFluidProp,
|
|
54
|
+
isDisabled,
|
|
55
|
+
isInvalid,
|
|
56
|
+
...otherProps
|
|
57
|
+
} = ownProps;
|
|
58
|
+
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
59
|
+
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
60
|
+
const classNames = composeClassnameRenderProps(
|
|
61
|
+
className,
|
|
62
|
+
GlobalTextFieldCssSelector,
|
|
63
|
+
cssModule(
|
|
64
|
+
TextField_module_default,
|
|
65
|
+
"hop-TextField",
|
|
66
|
+
isClearable && "clearable",
|
|
67
|
+
isFluid && "fluid"
|
|
68
|
+
),
|
|
69
|
+
stylingProps.className
|
|
70
|
+
);
|
|
71
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
72
|
+
return {
|
|
73
|
+
...stylingProps.style,
|
|
74
|
+
...prev
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
const handleTextChanged = useCallback((value2) => {
|
|
78
|
+
setCharacterCount(value2.length);
|
|
79
|
+
onChangeProp == null ? void 0 : onChangeProp(value2);
|
|
80
|
+
}, [onChangeProp]);
|
|
81
|
+
const [value, onChange] = useControlledState(valueProp, defaultValue || "", handleTextChanged);
|
|
82
|
+
const handleClear = useCallback(() => {
|
|
83
|
+
onChange("");
|
|
84
|
+
onClear == null ? void 0 : onClear();
|
|
85
|
+
}, [onChange, onClear]);
|
|
86
|
+
const showClearButton = isClearable && characterCount !== 0;
|
|
87
|
+
if (showCharacterCount && !maxLength) {
|
|
88
|
+
console.warn("If showCharacterCount is true, maxLength must be set to the maximum number of characters allowed in the TextField.");
|
|
89
|
+
}
|
|
90
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
91
|
+
SlotProvider,
|
|
92
|
+
{
|
|
93
|
+
values: [
|
|
94
|
+
[TextContext, { size, className: TextField_module_default["hop-TextField__prefix"] }],
|
|
95
|
+
[IconContext, { size, className: TextField_module_default["hop-TextField__prefix"] }]
|
|
96
|
+
],
|
|
97
|
+
children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix
|
|
98
|
+
}
|
|
99
|
+
) : null;
|
|
100
|
+
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
101
|
+
_InputGroup,
|
|
102
|
+
{
|
|
103
|
+
isFluid,
|
|
104
|
+
size,
|
|
105
|
+
className: TextField_module_default["hop-TextField__InputGroup"],
|
|
106
|
+
isDisabled,
|
|
107
|
+
isInvalid,
|
|
108
|
+
children: [
|
|
109
|
+
prefixMarkup,
|
|
110
|
+
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder }),
|
|
111
|
+
showCharacterCount && maxLength && /* @__PURE__ */ jsx(CharacterCount, { characterLeft: maxLength - characterCount }),
|
|
112
|
+
showClearButton && /* @__PURE__ */ jsx(_ClearButton, { isDisabled, size: "lg", onPress: handleClear })
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
) });
|
|
116
|
+
const childrenMarkup = composeRenderProps(children, (prev) => {
|
|
117
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
118
|
+
/* @__PURE__ */ jsx(
|
|
119
|
+
SlotProvider,
|
|
120
|
+
{
|
|
121
|
+
values: [
|
|
122
|
+
[LabelContext, { className: TextField_module_default["hop-TextField__Label"] }],
|
|
123
|
+
[HelperMessageContext, { className: TextField_module_default["hop-TextField__HelperMessage"] }],
|
|
124
|
+
[ErrorMessageContext, { className: TextField_module_default["hop-TextField__ErrorMessage"] }]
|
|
125
|
+
],
|
|
126
|
+
children: prev
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
inputMarkup
|
|
130
|
+
] });
|
|
131
|
+
});
|
|
132
|
+
return /* @__PURE__ */ jsx(
|
|
133
|
+
TextField$1,
|
|
134
|
+
{
|
|
135
|
+
ref,
|
|
136
|
+
value,
|
|
137
|
+
style,
|
|
138
|
+
className: classNames,
|
|
139
|
+
maxLength,
|
|
140
|
+
onChange,
|
|
141
|
+
isDisabled,
|
|
142
|
+
isInvalid,
|
|
143
|
+
...otherProps,
|
|
144
|
+
children: childrenMarkup
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function CharacterCount({ characterLeft }) {
|
|
149
|
+
const stringFormatter = useLocalizedString();
|
|
150
|
+
const accessibilityString = stringFormatter.format("Input.charactersLeft", { charLeft: characterLeft });
|
|
151
|
+
return /* @__PURE__ */ jsx(_Text, { "aria-label": accessibilityString, color: "neutral-weakest", size: "xs", children: characterLeft });
|
|
152
|
+
}
|
|
153
|
+
var _TextField = forwardRef(TextField);
|
|
154
|
+
_TextField.displayName = "TextField";
|
|
155
|
+
|
|
156
|
+
export { GlobalTextFieldCssSelector, _TextField };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { _Flex } from './chunk-TVFC2MJ4.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Stack(props, ref) {
|
|
6
|
+
const {
|
|
7
|
+
reverse,
|
|
8
|
+
alignX,
|
|
9
|
+
alignY,
|
|
10
|
+
gap = "stack-md",
|
|
11
|
+
...rest
|
|
12
|
+
} = props;
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
_Flex,
|
|
15
|
+
{
|
|
16
|
+
ref,
|
|
17
|
+
alignItems: alignX,
|
|
18
|
+
justifyContent: alignY,
|
|
19
|
+
direction: reverse ? "column-reverse" : "column",
|
|
20
|
+
gap,
|
|
21
|
+
...rest
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
var _Stack = forwardRef(Stack);
|
|
26
|
+
_Stack.displayName = "Stack";
|
|
27
|
+
|
|
28
|
+
export { _Stack };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChipContext } from './chunk-WTKIUAHI.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
4
|
-
import { TextContext } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-4RIAVSLK.js';
|
|
4
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
7
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
@@ -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___KVUnP", "hop-Chip--xs": "Chip-module__hop-Chip--xs___K9blS", "hop-Chip--sm": "Chip-module__hop-Chip--sm___U8plm", "hop-Chip--md": "Chip-module__hop-Chip--md___oU8bV", "hop-Chip--lg": "Chip-module__hop-Chip--lg___T0jye", "hop-Chip--neutral": "Chip-module__hop-Chip--neutral___Hepkw", "hop-Chip--progress": "Chip-module__hop-Chip--progress___znAZi", "hop-Chip--positive": "Chip-module__hop-Chip--positive___tyQ-N", "hop-Chip--caution": "Chip-module__hop-Chip--caution___WMvPA", "hop-Chip--negative": "Chip-module__hop-Chip--negative___vev3J", "hop-Chip--option1": "Chip-module__hop-Chip--option1___WZaqu", "hop-Chip--option2": "Chip-module__hop-Chip--option2___GlsQ3", "hop-Chip--option3": "Chip-module__hop-Chip--option3___QURDu", "hop-Chip--option4": "Chip-module__hop-Chip--option4___2Qznz", "hop-Chip--option5": "Chip-module__hop-Chip--option5___yTIji", "hop-Chip--option6": "Chip-module__hop-Chip--option6___FyrNE", "hop-Chip--inactive": "Chip-module__hop-Chip--inactive___7y7LL", "hop-Chip--disabled": "Chip-module__hop-Chip--disabled___vO96s", "hop-Chip__icon": "Chip-module__hop-Chip__icon___0V0Yr", "hop-Chip__icon-list": "Chip-module__hop-Chip__icon-list___WP57P", "hop-Chip__text": "Chip-module__hop-Chip__text___m-KTB", "hop-Chip__end-icon": "Chip-module__hop-Chip__end-icon___QuyDr", "hop-Chip__end-icon-list": "Chip-module__hop-Chip__end-icon-list___Jso7r" };
|
|
17
17
|
var GlobalChipCssSelector = "hop-Chip";
|
|
18
18
|
var ChipToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -92,6 +92,7 @@ function Chip(props, ref) {
|
|
|
92
92
|
className: classNames,
|
|
93
93
|
style: mergedStyles,
|
|
94
94
|
slot: slot != null ? slot : void 0,
|
|
95
|
+
role: "presentation",
|
|
95
96
|
children: content
|
|
96
97
|
}
|
|
97
98
|
)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import {
|
|
4
|
-
import { _Text } from './chunk-HUJ3PTM7.js';
|
|
3
|
+
import { _Text } from './chunk-4RIAVSLK.js';
|
|
5
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
|
-
import { TextContext } from './chunk-
|
|
5
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
@@ -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___1DFt5", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___qVMQC", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___Foz8P", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___CuyIN", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___r0ow6", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___7fJ21", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___FNna9", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___C3jhg" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -4,9 +4,9 @@ import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
|
4
4
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
5
5
|
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
6
6
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
7
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
7
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
|
-
import { LabelContext } from './chunk-HVKOIMMW.js';
|
|
10
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
11
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
12
12
|
import { forwardRef } from 'react';
|
|
@@ -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___cbfu1", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___f-WNB", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___tbK-P", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___HAY-5", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___aI2C1", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___q1pNC", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___Tpw8k", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___-5h6Q", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___0EE6B" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { _OverlineText } from './chunk-5EPNXRCT.js';
|
|
2
|
+
import { BadgeContext } from './chunk-ZSFJVMJN.js';
|
|
3
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
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
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./Badge.module.css#css-module
|
|
11
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___HtEMK", "hop-Badge--primary": "Badge-module__hop-Badge--primary___-cwxH", "hop-Badge--secondary": "Badge-module__hop-Badge--secondary___FXeeD" };
|
|
12
|
+
var GlobalBadgeCssSelector = "hop-Badge";
|
|
13
|
+
function Badge(props, ref) {
|
|
14
|
+
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
15
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
|
+
const {
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
isDisabled,
|
|
20
|
+
style,
|
|
21
|
+
slot,
|
|
22
|
+
variant = "primary",
|
|
23
|
+
...otherProps
|
|
24
|
+
} = ownProps;
|
|
25
|
+
const classNames = clsx(
|
|
26
|
+
className,
|
|
27
|
+
GlobalBadgeCssSelector,
|
|
28
|
+
cssModule(
|
|
29
|
+
Badge_module_default,
|
|
30
|
+
"hop-Badge",
|
|
31
|
+
variant
|
|
32
|
+
),
|
|
33
|
+
stylingProps.className
|
|
34
|
+
);
|
|
35
|
+
const mergedStyles = {
|
|
36
|
+
...stylingProps.style,
|
|
37
|
+
...style
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
_OverlineText,
|
|
41
|
+
{
|
|
42
|
+
...otherProps,
|
|
43
|
+
ref,
|
|
44
|
+
className: classNames,
|
|
45
|
+
style: mergedStyles,
|
|
46
|
+
slot: slot != null ? slot : void 0,
|
|
47
|
+
"data-disabled": isDisabled || void 0,
|
|
48
|
+
"aria-disabled": isDisabled || void 0,
|
|
49
|
+
children
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
var _Badge = forwardRef(Badge);
|
|
54
|
+
_Badge.displayName = "Badge";
|
|
55
|
+
|
|
56
|
+
export { GlobalBadgeCssSelector, _Badge };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ContentContext } from './chunk-IXB2WK56.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 GlobalContentCssSelector = "hop-Content";
|
|
9
|
+
function Content(props, ref) {
|
|
10
|
+
[props, ref] = useContextProps(props, ref, ContentContext);
|
|
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
|
+
GlobalContentCssSelector,
|
|
21
|
+
stylingProps.className,
|
|
22
|
+
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 || void 0,
|
|
36
|
+
children
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
var _Content = forwardRef(Content);
|
|
41
|
+
_Content.displayName = "Content";
|
|
42
|
+
|
|
43
|
+
export { GlobalContentCssSelector, _Content };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS, __toESM } from './chunk-
|
|
1
|
+
import { __commonJS, __toESM } from './chunk-2P3A4VVY.js';
|
|
2
2
|
import { useLocalizedStringFormatter } from 'react-aria';
|
|
3
3
|
|
|
4
4
|
// src/i18n/intl/en-US.json
|
|
@@ -6,7 +6,11 @@ var require_en_US = __commonJS({
|
|
|
6
6
|
"src/i18n/intl/en-US.json"(exports, module) {
|
|
7
7
|
module.exports = {
|
|
8
8
|
"Button.spinnerAriaLabel": `Loading`,
|
|
9
|
-
"
|
|
9
|
+
"Tag.spinnerAriaLabel": `Loading`,
|
|
10
|
+
"ClearButton.clearAriaLabel": `Clear`,
|
|
11
|
+
"Input.charactersLeft": (args, formatter) => `${formatter.plural(args.charLeft, { "=0": `No characters left`, one: () => `${formatter.number(args.charLeft)} character left`, other: () => `${formatter.number(args.charLeft)} characters left` })}.`,
|
|
12
|
+
"PasswordField.toggleVisibility": `Toggle password visibility`,
|
|
13
|
+
"Tag.removeAriaLabel": `Remove`
|
|
10
14
|
};
|
|
11
15
|
}
|
|
12
16
|
});
|
|
@@ -16,7 +20,11 @@ var require_fr_CA = __commonJS({
|
|
|
16
20
|
"src/i18n/intl/fr-CA.json"(exports, module) {
|
|
17
21
|
module.exports = {
|
|
18
22
|
"Button.spinnerAriaLabel": `Chargement en cours`,
|
|
19
|
-
"
|
|
23
|
+
"Tag.spinnerAriaLabel": `Chargement en cours`,
|
|
24
|
+
"ClearButton.clearAriaLabel": `Effacer`,
|
|
25
|
+
"Input.charactersLeft": (args, formatter) => `${formatter.plural(args.charLeft, { "=0": `Aucun caract\xE8re restant`, one: () => `${formatter.number(args.charLeft)} caract\xE8re restant`, other: () => `${formatter.number(args.charLeft)} caract\xE8res restants` })}.`,
|
|
26
|
+
"PasswordField.toggleVisibility": `Basculer la visibilit\xE9 du mot de passe`,
|
|
27
|
+
"Tag.removeAriaLabel": `Supprimer`
|
|
20
28
|
};
|
|
21
29
|
}
|
|
22
30
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
2
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
3
|
-
import {
|
|
2
|
+
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
3
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
6
7
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -11,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
12
|
import { jsx } from 'react/jsx-runtime';
|
|
12
13
|
|
|
13
14
|
// css-module:./RadioField.module.css#css-module
|
|
14
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
15
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___ZaNAp", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___7g2-S", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___-5Row", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___5wJkd", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___exdNe" };
|
|
15
16
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
16
17
|
var RadioToDescriptionSizeAdapter = {
|
|
17
18
|
sm: "xs",
|
|
@@ -46,7 +47,7 @@ function RadioField(props, ref) {
|
|
|
46
47
|
...style
|
|
47
48
|
};
|
|
48
49
|
const descriptionId = useId();
|
|
49
|
-
return /* @__PURE__ */ jsx(
|
|
50
|
+
return /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
50
51
|
SlotProvider,
|
|
51
52
|
{
|
|
52
53
|
values: [
|
|
@@ -75,7 +76,7 @@ function RadioField(props, ref) {
|
|
|
75
76
|
}
|
|
76
77
|
)
|
|
77
78
|
}
|
|
78
|
-
);
|
|
79
|
+
) });
|
|
79
80
|
}
|
|
80
81
|
var _RadioField = forwardRef(RadioField);
|
|
81
82
|
_RadioField.displayName = "RadioField";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import {
|
|
4
|
-
import { _Text } from './chunk-HUJ3PTM7.js';
|
|
3
|
+
import { _Text } from './chunk-4RIAVSLK.js';
|
|
5
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
|
-
import { TextContext } from './chunk-
|
|
5
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Radio.module.css#css-module
|
|
17
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
17
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___EkCwX", "hop-Radio--sm": "Radio-module__hop-Radio--sm___-GEPO", "hop-Radio--md": "Radio-module__hop-Radio--md___ao9Hn", "hop-Radio__icon": "Radio-module__hop-Radio__icon___jA99I", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___mIXPB", "hop-Radio__box": "Radio-module__hop-Radio__box___8S6fY", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___ZOkCk", "hop-Radio__text": "Radio-module__hop-Radio__text___GmMaW" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|