@hopper-ui/components 1.0.13 → 1.2.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 +17 -0
- package/README.md +1 -1
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/AvatarContext.d.ts +1 -1
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +10 -10
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/index.css +10 -10
- package/dist/Badge/src/index.js +2 -2
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +4111 -0
- package/dist/Form/src/Form.d.ts +28 -0
- package/dist/Form/src/Form.js +114 -0
- package/dist/Form/src/FormContext.d.ts +8 -0
- package/dist/Form/src/FormContext.js +2 -0
- package/dist/Form/src/index.css +4111 -0
- package/dist/Form/src/index.d.ts +5 -0
- package/dist/Form/src/index.js +114 -0
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +3 -3
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +369 -169
- package/dist/ListBox/src/ListBox.js +15 -14
- package/dist/ListBox/src/ListBoxItem.css +425 -225
- package/dist/ListBox/src/ListBoxItem.js +14 -13
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +369 -169
- package/dist/ListBox/src/index.js +15 -14
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +6 -6
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +375 -28
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +375 -28
- package/dist/buttons/src/EmbeddedButton.d.ts +9 -0
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +480 -133
- package/dist/buttons/src/index.js +9 -9
- package/dist/checkbox/src/Checkbox.css +31 -31
- package/dist/checkbox/src/Checkbox.js +3 -3
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +62 -59
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/index.css +62 -59
- package/dist/checkbox/src/index.js +6 -6
- package/dist/{chunk-KARK64JC.js → chunk-2XO5CZBO.js} +2 -2
- package/dist/{chunk-DZHRELLA.js → chunk-354H4FNA.js} +1 -1
- package/dist/{chunk-ZXDN2IRM.js → chunk-5IB23E3O.js} +6 -2
- package/dist/{chunk-WCLGYVXV.js → chunk-BKCMCC7V.js} +1 -1
- package/dist/{chunk-5WWMVQI4.js → chunk-CEUQHDEQ.js} +1 -1
- package/dist/{chunk-AMXRADUV.js → chunk-CKKLDA5J.js} +2 -2
- package/dist/{chunk-UGHMX7QX.js → chunk-COIGQP33.js} +3 -3
- package/dist/{chunk-NHM3MQI3.js → chunk-EJUIYBAC.js} +3 -3
- package/dist/chunk-EURJK4ZT.js +7 -0
- package/dist/{chunk-YEYNRBMQ.js → chunk-F4H76S4H.js} +6 -2
- package/dist/{chunk-44KY7MFF.js → chunk-FA4IXLWZ.js} +19 -8
- package/dist/chunk-FOD7XUSJ.js +150 -0
- package/dist/{chunk-W34MMJ2L.js → chunk-FOKTHCFK.js} +3 -3
- package/dist/chunk-HCRWIU7V.js +276 -0
- package/dist/chunk-IU6XMS2X.js +21 -0
- package/dist/{chunk-JN2FF2IX.js → chunk-IUOLKHYQ.js} +1 -1
- package/dist/{chunk-2MUGMKNO.js → chunk-IXWYHDGU.js} +1 -1
- package/dist/{chunk-SSMGKQ27.js → chunk-J44DIB5J.js} +3 -3
- package/dist/{chunk-GH5LAOQU.js → chunk-JJ4EFTES.js} +1 -1
- package/dist/{chunk-RGGVZKNN.js → chunk-L5KI4ZCL.js} +2 -2
- package/dist/{chunk-AYPCLDGU.js → chunk-M3K4IYX6.js} +1 -1
- package/dist/chunk-MHQZXLKW.js +7 -0
- package/dist/{chunk-IEE2HHGR.js → chunk-MJHMFANK.js} +1 -1
- package/dist/{chunk-CXIH6I5X.js → chunk-PFABSIDM.js} +1 -1
- package/dist/{chunk-ERE2XRQA.js → chunk-PQXVL3YJ.js} +1 -1
- package/dist/{chunk-CCIVRIKG.js → chunk-Q63YLWI6.js} +16 -3
- package/dist/{chunk-JLUFMLGV.js → chunk-RQKU3XDG.js} +1 -1
- package/dist/chunk-RWAVMW7T.js +70 -0
- package/dist/{chunk-TNVYVDLF.js → chunk-S5CK32KM.js} +6 -4
- package/dist/{chunk-LDORNYHF.js → chunk-SZSQZ4C7.js} +3 -3
- package/dist/{chunk-UPR32DV5.js → chunk-T6MAOVLH.js} +2 -2
- package/dist/{chunk-B42AJF74.js → chunk-TCOZUCPD.js} +142 -159
- package/dist/{chunk-M4IVTAHY.js → chunk-TG623HPA.js} +7 -5
- package/dist/{chunk-723W7LGB.js → chunk-U56LEEEA.js} +6 -6
- package/dist/{chunk-THQZBL4T.js → chunk-UT4CSUUM.js} +1 -1
- package/dist/{chunk-MVWQVBTK.js → chunk-V5Q245NH.js} +4 -2
- package/dist/chunk-VISBUD2K.js +172 -0
- package/dist/{chunk-QTV45NTY.js → chunk-VYKPDMP3.js} +3 -3
- package/dist/{chunk-CS2RAWQB.js → chunk-W2BQZEW6.js} +4 -4
- package/dist/{chunk-SW7LHIQ2.js → chunk-W474WFOP.js} +21 -9
- package/dist/{chunk-ESRYOELK.js → chunk-X253QCYD.js} +3 -2
- package/dist/{chunk-PAYZGXTT.js → chunk-XT2MZWEV.js} +1 -1
- package/dist/{chunk-SNWJJ3FF.js → chunk-XUJNQNB3.js} +1 -1
- package/dist/chunk-Z57VHYOF.js +22 -0
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +1625 -707
- package/dist/index.d.ts +9 -3
- package/dist/index.js +56 -50
- package/dist/inputs/src/InputGroup.css +78 -39
- package/dist/inputs/src/InputGroup.d.ts +10 -1
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +129 -90
- package/dist/inputs/src/NumberField.d.ts +1 -0
- package/dist/inputs/src/NumberField.js +18 -172
- package/dist/inputs/src/PasswordField.css +588 -199
- package/dist/inputs/src/PasswordField.d.ts +1 -0
- package/dist/inputs/src/PasswordField.js +9 -9
- package/dist/inputs/src/SearchField.css +594 -205
- package/dist/inputs/src/SearchField.d.ts +1 -0
- package/dist/inputs/src/SearchField.js +10 -10
- package/dist/inputs/src/TextArea.css +469 -0
- package/dist/inputs/src/TextArea.d.ts +62 -0
- package/dist/inputs/src/TextArea.js +23 -0
- package/dist/inputs/src/TextAreaContext.d.ts +8 -0
- package/dist/inputs/src/TextAreaContext.js +2 -0
- package/dist/inputs/src/TextField.css +589 -200
- package/dist/inputs/src/TextField.d.ts +2 -0
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +948 -368
- package/dist/inputs/src/index.d.ts +4 -0
- package/dist/inputs/src/index.js +20 -13
- package/dist/overlays/Popover/src/Popover.css +1625 -707
- package/dist/overlays/Popover/src/Popover.js +56 -50
- package/dist/overlays/Popover/src/index.css +1625 -707
- package/dist/overlays/Popover/src/index.js +56 -50
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +62 -59
- package/dist/radio/src/RadioGroup.js +3 -3
- package/dist/radio/src/index.css +62 -59
- package/dist/radio/src/index.js +9 -9
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +4 -4
- package/dist/tag/src/Tag.css +1041 -2241
- package/dist/tag/src/Tag.d.ts +6 -1
- package/dist/tag/src/Tag.js +8 -96
- package/dist/tag/src/TagGroup.css +24 -21
- package/dist/tag/src/TagGroup.d.ts +7 -2
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +1104 -2205
- package/dist/tag/src/index.js +10 -91
- package/dist/typography/Heading/src/Heading.css +9 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +5 -2
- package/dist/typography/Label/src/Label.d.ts +8 -0
- package/dist/typography/Label/src/Label.js +2 -1
- package/dist/typography/Label/src/index.css +5 -2
- package/dist/typography/Label/src/index.js +2 -1
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.d.ts +2 -0
- package/dist/utils/src/index.js +4 -2
- package/dist/utils/src/useFontFaceReady.d.ts +3 -0
- package/dist/utils/src/useFontFaceReady.js +2 -0
- package/dist/utils/src/useTruncatedText.d.ts +3 -0
- package/dist/utils/src/useTruncatedText.js +2 -0
- package/package.json +3 -3
- package/dist/Chip/src/Chip.css +0 -261
- package/dist/Chip/src/Chip.d.ts +0 -27
- package/dist/Chip/src/Chip.js +0 -10
- package/dist/Chip/src/ChipContext.d.ts +0 -10
- package/dist/Chip/src/ChipContext.js +0 -2
- package/dist/Chip/src/index.css +0 -261
- package/dist/Chip/src/index.d.ts +0 -7
- package/dist/Chip/src/index.js +0 -10
- package/dist/chunk-632B5YBQ.js +0 -7
- package/dist/chunk-I2YZLGRE.js +0 -43
- package/dist/chunk-RXZQB35O.js +0 -105
|
@@ -1,177 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
export { GlobalNumberFieldCssSelector, _NumberField as NumberField } from '../../chunk-VISBUD2K.js';
|
|
2
|
+
import '../../chunk-MTDFS4CZ.js';
|
|
3
|
+
import '../../chunk-ZQ3AWYRR.js';
|
|
3
4
|
import '../../chunk-LJXTJRSB.js';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-ERE2XRQA.js';
|
|
5
|
+
import '../../chunk-PQXVL3YJ.js';
|
|
6
6
|
import '../../chunk-TXZ6BMFR.js';
|
|
7
|
-
import
|
|
7
|
+
import '../../chunk-RWAVMW7T.js';
|
|
8
|
+
import '../../chunk-Q63YLWI6.js';
|
|
8
9
|
import '../../chunk-6BFSSZCY.js';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-QCA3ZR56.js';
|
|
11
|
+
import '../../chunk-F4H76S4H.js';
|
|
12
|
+
import '../../chunk-ZWU6DRRZ.js';
|
|
13
|
+
import '../../chunk-65JPI4FL.js';
|
|
14
|
+
import '../../chunk-HZKFQ33E.js';
|
|
15
|
+
import '../../chunk-CEUQHDEQ.js';
|
|
14
16
|
import '../../chunk-WPNVVGFW.js';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
17
|
+
import '../../chunk-FAE27DLF.js';
|
|
18
|
+
import '../../chunk-XT2MZWEV.js';
|
|
19
|
+
import '../../chunk-X6SER3TZ.js';
|
|
20
|
+
import '../../chunk-HXI3MEEK.js';
|
|
21
|
+
import '../../chunk-M36KANKC.js';
|
|
22
|
+
import '../../chunk-KVDXQMWI.js';
|
|
21
23
|
import '../../chunk-JSBRDJBE.js';
|
|
22
|
-
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
23
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
24
|
-
import { mergeRefs } from '@react-aria/utils';
|
|
25
|
-
import { useControlledState } from '@react-stately/utils';
|
|
26
|
-
import { forwardRef, useCallback } from 'react';
|
|
27
|
-
import { useObjectRef } from 'react-aria';
|
|
28
|
-
import { useContextProps, composeRenderProps, Input, NumberField as NumberField$1, Button } from 'react-aria-components';
|
|
29
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
30
|
-
|
|
31
|
-
// css-module:./NumberField.module.css#css-module
|
|
32
|
-
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___AAaVN", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___rVrvC", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___T-kUj", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___5I8jv", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___Q0Gr1", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___3zR9a", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___EM5fn", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___vnwQj", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___OL7-O", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___W5YHN", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___i-Kmo", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___V4omC", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___ZCqO6", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___GSHPf" };
|
|
33
|
-
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
34
|
-
var StepperButton = ({ direction }) => {
|
|
35
|
-
const scale = useScale();
|
|
36
|
-
const isMobile = scale === "large";
|
|
37
|
-
const StepperIcon = direction === "increment" ? AngleUpIcon : AngleDownIcon;
|
|
38
|
-
const stepperClasses = cssModule(
|
|
39
|
-
NumberField_module_default,
|
|
40
|
-
"hop-NumberField__stepper-button",
|
|
41
|
-
direction,
|
|
42
|
-
isMobile && "mobile"
|
|
43
|
-
);
|
|
44
|
-
return /* @__PURE__ */ jsx(
|
|
45
|
-
Button,
|
|
46
|
-
{
|
|
47
|
-
className: stepperClasses,
|
|
48
|
-
slot: direction,
|
|
49
|
-
children: /* @__PURE__ */ jsx(
|
|
50
|
-
StepperIcon,
|
|
51
|
-
{
|
|
52
|
-
className: NumberField_module_default["hop-NumberField__stepper-button__icon"],
|
|
53
|
-
size: {
|
|
54
|
-
base: "md",
|
|
55
|
-
xs: "sm"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
function NumberField(props, ref) {
|
|
63
|
-
var _a;
|
|
64
|
-
const {
|
|
65
|
-
inputRef: userProvidedInputRef = null,
|
|
66
|
-
...propsWithoutRef
|
|
67
|
-
} = props;
|
|
68
|
-
[props, ref] = useContextProps(propsWithoutRef, ref, NumberFieldContext);
|
|
69
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
70
|
-
const {
|
|
71
|
-
className,
|
|
72
|
-
style: styleProp,
|
|
73
|
-
size,
|
|
74
|
-
prefix,
|
|
75
|
-
placeholder,
|
|
76
|
-
onChange: onChangeProp,
|
|
77
|
-
children,
|
|
78
|
-
defaultValue,
|
|
79
|
-
value: valueProp,
|
|
80
|
-
isFluid: isFluidProp,
|
|
81
|
-
isDisabled,
|
|
82
|
-
isInvalid,
|
|
83
|
-
...otherProps
|
|
84
|
-
} = ownProps;
|
|
85
|
-
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
86
|
-
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
87
|
-
const scale = useScale();
|
|
88
|
-
const isMobile = scale === "large";
|
|
89
|
-
const classNames = composeClassnameRenderProps(
|
|
90
|
-
className,
|
|
91
|
-
GlobalNumberFieldCssSelector,
|
|
92
|
-
cssModule(
|
|
93
|
-
NumberField_module_default,
|
|
94
|
-
"hop-NumberField",
|
|
95
|
-
isFluid && "fluid",
|
|
96
|
-
isMobile && "mobile"
|
|
97
|
-
),
|
|
98
|
-
stylingProps.className
|
|
99
|
-
);
|
|
100
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
101
|
-
return {
|
|
102
|
-
...stylingProps.style,
|
|
103
|
-
...prev
|
|
104
|
-
};
|
|
105
|
-
});
|
|
106
|
-
const handleTextChanged = useCallback((value2) => {
|
|
107
|
-
onChangeProp == null ? void 0 : onChangeProp(value2);
|
|
108
|
-
}, [onChangeProp]);
|
|
109
|
-
const [value, onChange] = useControlledState(valueProp, defaultValue || 0, handleTextChanged);
|
|
110
|
-
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
111
|
-
SlotProvider,
|
|
112
|
-
{
|
|
113
|
-
values: [
|
|
114
|
-
[TextContext, { size, className: NumberField_module_default["hop-NumberField__prefix"] }],
|
|
115
|
-
[IconContext, { size, className: NumberField_module_default["hop-NumberField__prefix"] }]
|
|
116
|
-
],
|
|
117
|
-
children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix
|
|
118
|
-
}
|
|
119
|
-
) : null;
|
|
120
|
-
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
121
|
-
_InputGroup,
|
|
122
|
-
{
|
|
123
|
-
isFluid,
|
|
124
|
-
size,
|
|
125
|
-
className: NumberField_module_default["hop-NumberField__InputGroup"],
|
|
126
|
-
isDisabled,
|
|
127
|
-
isInvalid,
|
|
128
|
-
inputClassName: NumberField_module_default["hop-NumberField__input"],
|
|
129
|
-
children: [
|
|
130
|
-
prefixMarkup,
|
|
131
|
-
/* @__PURE__ */ jsx(
|
|
132
|
-
Input,
|
|
133
|
-
{
|
|
134
|
-
ref: inputRef,
|
|
135
|
-
placeholder
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
/* @__PURE__ */ jsx(StepperButton, { direction: "increment" }),
|
|
139
|
-
/* @__PURE__ */ jsx(StepperButton, { direction: "decrement" })
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
) });
|
|
143
|
-
const childrenMarkup = composeRenderProps(children, (prev) => {
|
|
144
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
145
|
-
/* @__PURE__ */ jsx(
|
|
146
|
-
SlotProvider,
|
|
147
|
-
{
|
|
148
|
-
values: [
|
|
149
|
-
[LabelContext, { className: NumberField_module_default["hop-NumberField__Label"] }],
|
|
150
|
-
[HelperMessageContext, { className: NumberField_module_default["hop-NumberField__HelperMessage"] }],
|
|
151
|
-
[ErrorMessageContext, { className: NumberField_module_default["hop-NumberField__ErrorMessage"] }]
|
|
152
|
-
],
|
|
153
|
-
children: prev
|
|
154
|
-
}
|
|
155
|
-
),
|
|
156
|
-
inputMarkup
|
|
157
|
-
] });
|
|
158
|
-
});
|
|
159
|
-
return /* @__PURE__ */ jsx(
|
|
160
|
-
NumberField$1,
|
|
161
|
-
{
|
|
162
|
-
ref,
|
|
163
|
-
value,
|
|
164
|
-
style,
|
|
165
|
-
className: classNames,
|
|
166
|
-
onChange,
|
|
167
|
-
isDisabled,
|
|
168
|
-
isInvalid,
|
|
169
|
-
...otherProps,
|
|
170
|
-
children: childrenMarkup
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
var _NumberField = forwardRef(NumberField);
|
|
175
|
-
_NumberField.displayName = "NumberField";
|
|
176
|
-
|
|
177
|
-
export { GlobalNumberFieldCssSelector, _NumberField as NumberField };
|