@hopper-ui/components 1.1.0 → 1.2.1
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 +18 -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 +13 -12
- package/dist/ListBox/src/ListBoxItem.css +425 -225
- package/dist/ListBox/src/ListBoxItem.js +10 -9
- 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 +13 -12
- 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-UMD6RDUS.js → chunk-2DPE3H3G.js} +1 -1
- package/dist/{chunk-BLQ72S4U.js → chunk-462UBJV3.js} +1 -1
- package/dist/{chunk-KA6KVIVV.js → chunk-4APVXEPA.js} +3 -3
- package/dist/{chunk-RD6VCI72.js → chunk-4H7PKEMJ.js} +20 -8
- package/dist/{chunk-BGRKDTCG.js → chunk-55AWCUQF.js} +1 -1
- package/dist/{chunk-QY6U3R3W.js → chunk-6WKRP4MN.js} +3 -2
- package/dist/{chunk-WAUGFWZA.js → chunk-AGRQ7UGN.js} +2 -2
- package/dist/{chunk-Q52NUBN7.js → chunk-BN32T6QQ.js} +2 -2
- package/dist/{chunk-I6OII2RA.js → chunk-C7XRB2J6.js} +3 -3
- package/dist/{chunk-FQO2QRSC.js → chunk-CSE22YXO.js} +1 -1
- package/dist/{chunk-ICDMJUNE.js → chunk-CXWMHWSS.js} +1 -1
- package/dist/{chunk-TGXZJJJA.js → chunk-DZKJZSTQ.js} +6 -2
- package/dist/chunk-EURJK4ZT.js +7 -0
- package/dist/{chunk-GXFFLWNF.js → chunk-F47GZGT7.js} +1 -1
- package/dist/{chunk-YEYNRBMQ.js → chunk-F4H76S4H.js} +6 -2
- package/dist/{chunk-VVY3ONWS.js → chunk-F4KQUFXI.js} +1 -1
- package/dist/{chunk-VFYGHX3N.js → chunk-IUFABTFZ.js} +1 -1
- package/dist/chunk-J6YYPRGY.js +150 -0
- package/dist/chunk-J7BXE7WN.js +172 -0
- package/dist/{chunk-6MSRPPI6.js → chunk-K7DU4YR4.js} +1 -1
- package/dist/{chunk-XHZ4R2MB.js → chunk-LXCCS4SA.js} +4 -4
- package/dist/{chunk-6CDXS774.js → chunk-MFFXNI66.js} +6 -6
- package/dist/{chunk-YE7RARJB.js → chunk-MX5BW5VE.js} +1 -1
- package/dist/{chunk-BXPZ6HPC.js → chunk-PUNJWQAN.js} +142 -159
- package/dist/{chunk-TKB5Q2WX.js → chunk-QGC3OX7W.js} +1 -1
- package/dist/{chunk-GCJT5PQ4.js → chunk-RLDQEH6F.js} +7 -5
- package/dist/{chunk-TVV4RMFR.js → chunk-RYZNMKWB.js} +1 -1
- package/dist/{chunk-PQV24MM4.js → chunk-SPFANCCV.js} +3 -3
- package/dist/{chunk-ZNGSZW7M.js → chunk-T7QJEHL7.js} +3 -3
- package/dist/{chunk-YRUBXLBX.js → chunk-TFELIWJO.js} +6 -3
- package/dist/{chunk-6PH4IIEW.js → chunk-THUFFPGX.js} +1 -1
- package/dist/{chunk-P7UUQGGF.js → chunk-TM4R5NO7.js} +2 -2
- package/dist/{chunk-6K6W32Q7.js → chunk-VQC5F6I7.js} +6 -4
- package/dist/{chunk-AT7ZY6GA.js → chunk-WQSVNGFJ.js} +1 -1
- package/dist/{chunk-SR3GAXY5.js → chunk-WYBQCRQB.js} +2 -2
- package/dist/{chunk-XGI4LDIF.js → chunk-XI3BX2TP.js} +4 -4
- package/dist/chunk-XUCH26RT.js +70 -0
- package/dist/{chunk-CXCOSGTO.js → chunk-YWIDJ55Q.js} +4 -2
- package/dist/{chunk-BQZQTNI6.js → chunk-YXD3IR3T.js} +1 -1
- package/dist/{chunk-A7HLXFSP.js → chunk-ZEXXNE5U.js} +9 -7
- package/dist/{chunk-TMWNNF4J.js → chunk-ZPPQJKHC.js} +3 -3
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +1521 -694
- package/dist/index.d.ts +5 -3
- package/dist/index.js +47 -45
- package/dist/inputs/src/InputGroup.css +14 -14
- package/dist/inputs/src/InputGroup.d.ts +2 -1
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +65 -62
- package/dist/inputs/src/NumberField.d.ts +1 -0
- package/dist/inputs/src/NumberField.js +18 -173
- package/dist/inputs/src/PasswordField.css +524 -174
- package/dist/inputs/src/PasswordField.d.ts +1 -0
- package/dist/inputs/src/PasswordField.js +9 -9
- package/dist/inputs/src/SearchField.css +530 -180
- package/dist/inputs/src/SearchField.d.ts +1 -0
- package/dist/inputs/src/SearchField.js +10 -10
- package/dist/inputs/src/TextArea.css +59 -56
- package/dist/inputs/src/TextArea.js +8 -8
- package/dist/inputs/src/TextField.css +525 -175
- package/dist/inputs/src/TextField.d.ts +2 -0
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +694 -205
- package/dist/inputs/src/index.d.ts +2 -0
- package/dist/inputs/src/index.js +17 -14
- package/dist/overlays/Popover/src/Popover.css +1521 -694
- package/dist/overlays/Popover/src/Popover.js +47 -45
- package/dist/overlays/Popover/src/index.css +1521 -694
- package/dist/overlays/Popover/src/index.js +47 -45
- 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 +1 -1
- package/dist/radio/src/index.css +62 -59
- package/dist/radio/src/index.js +6 -6
- 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 -2332
- package/dist/tag/src/Tag.d.ts +6 -1
- package/dist/tag/src/Tag.js +7 -99
- 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 -2296
- package/dist/tag/src/index.js +9 -94
- 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.js +1 -1
- 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-7VS566A2.js +0 -43
- package/dist/chunk-OETAIO6N.js +0 -105
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
3
3
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
4
|
-
import { _InputGroup } from './chunk-
|
|
4
|
+
import { _InputGroup } from './chunk-TFELIWJO.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { useLocalizedString } from './chunk-
|
|
6
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
9
9
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
10
|
-
import { _Text } from './chunk-
|
|
10
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
11
11
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
12
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
13
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -79,7 +79,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// css-module:./TextArea.module.css#css-module
|
|
82
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
82
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___RQPX1", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___8Dtb-", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___up8f-", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___Goc9g", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___5CqUn", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___Hc7Ow", "hop-TextArea__char-count": "TextArea-module__hop-TextArea__char-count___U8NGM", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___QQhT-", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___JSKR5" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
2
|
+
import { useLocalizedString } from './chunk-F4H76S4H.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, Label as Label$1 } from 'react-aria-components';
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./Label.module.css#css-module
|
|
11
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___43PE1", "hop-Label__indicator": "Label-module__hop-Label__indicator___PXvS0" };
|
|
12
|
+
var GlobalLabelCssSelector = "hop-Label";
|
|
13
|
+
function Label(props, ref) {
|
|
14
|
+
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
15
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
|
+
const {
|
|
17
|
+
className,
|
|
18
|
+
children,
|
|
19
|
+
style,
|
|
20
|
+
isRequired,
|
|
21
|
+
necessityIndicator = isRequired != null ? "icon" : null,
|
|
22
|
+
...otherProps
|
|
23
|
+
} = ownProps;
|
|
24
|
+
const stringFormatter = useLocalizedString();
|
|
25
|
+
const classNames = clsx(
|
|
26
|
+
className,
|
|
27
|
+
GlobalLabelCssSelector,
|
|
28
|
+
cssModule(
|
|
29
|
+
Label_module_default,
|
|
30
|
+
"hop-Label"
|
|
31
|
+
),
|
|
32
|
+
stylingProps.className
|
|
33
|
+
);
|
|
34
|
+
const mergedStyles = {
|
|
35
|
+
...stylingProps.style,
|
|
36
|
+
...style
|
|
37
|
+
};
|
|
38
|
+
const necessityLabel = isRequired ? stringFormatter.format("Label.necessityLabel.required") : stringFormatter.format("Label.necessityLabel.optional");
|
|
39
|
+
const requiredIndicator = /* @__PURE__ */ jsx(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
"aria-label": necessityLabel,
|
|
44
|
+
className: Label_module_default["hop-Label__indicator"],
|
|
45
|
+
children: "*"
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
|
+
Label$1,
|
|
50
|
+
{
|
|
51
|
+
...otherProps,
|
|
52
|
+
ref,
|
|
53
|
+
className: classNames,
|
|
54
|
+
style: mergedStyles,
|
|
55
|
+
children: [
|
|
56
|
+
children,
|
|
57
|
+
necessityIndicator === "label" && /* @__PURE__ */ jsxs("span", { children: [
|
|
58
|
+
" (",
|
|
59
|
+
necessityLabel,
|
|
60
|
+
")"
|
|
61
|
+
] }),
|
|
62
|
+
necessityIndicator === "icon" && isRequired && requiredIndicator
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
var _Label = forwardRef(Label);
|
|
68
|
+
_Label.displayName = "Label";
|
|
69
|
+
|
|
70
|
+
export { GlobalLabelCssSelector, _Label };
|
|
@@ -13,7 +13,7 @@ import { useContextProps, FieldErrorContext, TagGroup as TagGroup$1 } from 'reac
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./TagGroup.module.css#css-module
|
|
16
|
-
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-
|
|
16
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___-qsWY", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___-6iVf", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___JxCmr", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___b3sVo", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___KFfUh" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -25,6 +25,7 @@ function TagGroup(props, ref) {
|
|
|
25
25
|
isInvalid = false,
|
|
26
26
|
style: styleProp,
|
|
27
27
|
size: sizeProp,
|
|
28
|
+
variant,
|
|
28
29
|
...otherProps
|
|
29
30
|
} = ownProps;
|
|
30
31
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
@@ -55,7 +56,8 @@ function TagGroup(props, ref) {
|
|
|
55
56
|
[TagContext, {
|
|
56
57
|
className: TagGroup_module_default["hop-TagGroup__tag"],
|
|
57
58
|
isInvalid,
|
|
58
|
-
size
|
|
59
|
+
size,
|
|
60
|
+
variant
|
|
59
61
|
}],
|
|
60
62
|
[ErrorMessageContext, {
|
|
61
63
|
className: TagGroup_module_default["hop-TagGroup__error-message"],
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ButtonGroup.module.css#css-module
|
|
13
|
-
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-
|
|
13
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___MX7aG", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___7TWF1", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___61uoU", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___QEKHx", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___ocgo8", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___2BNou", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___aW16k", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___FZLER" };
|
|
14
14
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
15
|
function ButtonGroup(props, ref) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-TFELIWJO.js';
|
|
3
|
+
import { _ClearButton } from './chunk-WYBQCRQB.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
6
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
8
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
9
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
|
-
import {
|
|
10
|
-
import { _Text } from './chunk-6MSRPPI6.js';
|
|
10
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
11
11
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
12
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
13
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -22,7 +22,7 @@ import { useContextProps, composeRenderProps, Input, TextField as TextField$1 }
|
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
|
|
24
24
|
// css-module:./TextField.module.css#css-module
|
|
25
|
-
var TextField_module_default = { "hop-TextField": "TextField-module__hop-
|
|
25
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___YVH8a", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___ZNRHZ", "hop-TextField__Label": "TextField-module__hop-TextField__Label___ztJuQ", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___Jjuy-", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___N7bZl", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___CUNme", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___FIu1i" };
|
|
26
26
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
27
27
|
function TextField(props, ref) {
|
|
28
28
|
var _a;
|
|
@@ -53,6 +53,7 @@ function TextField(props, ref) {
|
|
|
53
53
|
isFluid: isFluidProp,
|
|
54
54
|
isDisabled,
|
|
55
55
|
isInvalid,
|
|
56
|
+
isRequired,
|
|
56
57
|
...otherProps
|
|
57
58
|
} = ownProps;
|
|
58
59
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -119,7 +120,7 @@ function TextField(props, ref) {
|
|
|
119
120
|
SlotProvider,
|
|
120
121
|
{
|
|
121
122
|
values: [
|
|
122
|
-
[LabelContext, { className: TextField_module_default["hop-TextField__Label"] }],
|
|
123
|
+
[LabelContext, { className: TextField_module_default["hop-TextField__Label"], isRequired }],
|
|
123
124
|
[HelperMessageContext, { className: TextField_module_default["hop-TextField__HelperMessage"] }],
|
|
124
125
|
[ErrorMessageContext, { className: TextField_module_default["hop-TextField__ErrorMessage"] }]
|
|
125
126
|
],
|
|
@@ -140,6 +141,7 @@ function TextField(props, ref) {
|
|
|
140
141
|
onChange,
|
|
141
142
|
isDisabled,
|
|
142
143
|
isInvalid,
|
|
144
|
+
isRequired,
|
|
143
145
|
...otherProps,
|
|
144
146
|
children: childrenMarkup
|
|
145
147
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
7
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.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___W0NkE", "hop-Radio--focused": "Radio-module__hop-Radio--focused___37nBy", "hop-Radio--hovered": "Radio-module__hop-Radio--hovered___bnBdz", "hop-Radio--pressed": "Radio-module__hop-Radio--pressed___Idq0t", "hop-Radio--sm": "Radio-module__hop-Radio--sm___Xk9cY", "hop-Radio--md": "Radio-module__hop-Radio--md___Ookee", "hop-Radio__icon": "Radio-module__hop-Radio__icon___V-YEN", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___-ZAQI", "hop-Radio__box": "Radio-module__hop-Radio__box___o2-Za", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___c4d6u", "hop-Radio__text": "Radio-module__hop-Radio__text___3HhWA" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|
package/dist/i18n/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useLocalizedString } from '../../chunk-
|
|
1
|
+
export { useLocalizedString } from '../../chunk-F4H76S4H.js';
|
|
2
2
|
import '../../chunk-JSBRDJBE.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useLocalizedString } from '../../chunk-
|
|
1
|
+
export { useLocalizedString } from '../../chunk-F4H76S4H.js';
|
|
2
2
|
import '../../chunk-JSBRDJBE.js';
|