@hopper-ui/components 1.3.9 → 1.3.11
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/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +5 -5
- 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 +1 -1
- package/dist/Badge/src/index.css +52 -52
- package/dist/Badge/src/index.js +3 -3
- package/dist/ComboBox/src/ComboBox.css +713 -713
- package/dist/ComboBox/src/ComboBox.d.ts +4 -0
- package/dist/ComboBox/src/ComboBox.js +49 -50
- package/dist/ComboBox/src/index.css +713 -713
- package/dist/ComboBox/src/index.js +49 -50
- 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 +2 -2
- package/dist/ErrorMessage/src/index.css +29 -29
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +1833 -1671
- package/dist/Form/src/Form.d.ts +4 -0
- package/dist/Form/src/Form.js +49 -48
- package/dist/Form/src/index.css +1833 -1671
- package/dist/Form/src/index.js +49 -48
- package/dist/Header/src/Header.js +1 -1
- package/dist/Header/src/index.js +1 -1
- 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 +2 -2
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +2 -2
- package/dist/ListBox/src/ListBox.css +274 -274
- package/dist/ListBox/src/ListBox.js +6 -6
- package/dist/ListBox/src/ListBoxItem.css +262 -262
- package/dist/ListBox/src/ListBoxItem.js +5 -5
- package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +274 -274
- package/dist/ListBox/src/index.js +6 -6
- package/dist/Select/src/Select.css +857 -695
- package/dist/Select/src/Select.d.ts +4 -0
- package/dist/Select/src/Select.js +49 -48
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +857 -695
- package/dist/Select/src/index.js +49 -48
- package/dist/Spinner/src/Spinner.css +37 -37
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +37 -37
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +112 -112
- package/dist/buttons/src/Button.js +3 -3
- 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 +2 -2
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +194 -194
- package/dist/buttons/src/index.js +6 -6
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +2 -2
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.d.ts +4 -0
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +2 -2
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +5 -5
- package/dist/{chunk-B2O3ZCYC.js → chunk-47AZN77D.js} +1 -1
- package/dist/{chunk-5TH7VHRH.js → chunk-4D5OKVKB.js} +5 -5
- package/dist/{chunk-54U727IV.js → chunk-4PLO6M5P.js} +2 -2
- package/dist/{chunk-BGOYDN4M.js → chunk-4ZCY2KEA.js} +2 -2
- package/dist/{chunk-ANO4F3LJ.js → chunk-4ZUCHCV2.js} +7 -2
- package/dist/{chunk-UR3NK3LV.js → chunk-5ORMXIMY.js} +1 -1
- package/dist/{chunk-4FVIH73F.js → chunk-5RQ3FMMG.js} +2 -2
- package/dist/{chunk-GDVP2QEZ.js → chunk-64O3N7JE.js} +1 -1
- package/dist/{chunk-JX5YYFB3.js → chunk-6HV7YSW5.js} +7 -5
- package/dist/{chunk-7LTA4KPO.js → chunk-6NS4AQDI.js} +5 -4
- package/dist/{chunk-4EUVVRTY.js → chunk-7B6XUT4A.js} +3 -3
- package/dist/{chunk-HCJLAF2O.js → chunk-BJNIT3X3.js} +6 -6
- package/dist/{chunk-TRDXTYZD.js → chunk-BPFYQL3X.js} +3 -3
- package/dist/{chunk-2SF7BBJT.js → chunk-BUP6LEQX.js} +1 -1
- package/dist/{chunk-2WK465I4.js → chunk-BXBMRBPB.js} +3 -3
- package/dist/{chunk-KOT3ULJY.js → chunk-D7WXRB6L.js} +2 -2
- package/dist/{chunk-GXBVNCVP.js → chunk-DPC3Y6Y2.js} +2 -2
- package/dist/{chunk-UJXKUNEW.js → chunk-F2BSC3KH.js} +478 -194
- package/dist/{chunk-AQITZWYM.js → chunk-GTM56LGX.js} +2 -2
- package/dist/{chunk-ENHK4K3U.js → chunk-GTNBBI2S.js} +2 -2
- package/dist/{chunk-TMGUYWTR.js → chunk-HPPNJVV6.js} +2 -2
- package/dist/{chunk-CZRCXQFS.js → chunk-I7C4D6SO.js} +1 -1
- package/dist/{chunk-HI2SHIGG.js → chunk-JOIYDL4E.js} +1 -1
- package/dist/{chunk-6U6JI3L3.js → chunk-KKCIN6AH.js} +1 -1
- package/dist/{chunk-VQKJXEPU.js → chunk-KS255M2B.js} +2 -2
- package/dist/{chunk-E4JB7I3F.js → chunk-L3DEPUAF.js} +1 -1
- package/dist/{chunk-A3E76SDY.js → chunk-M64YZ3V3.js} +1 -1
- package/dist/{chunk-S6AH3YTH.js → chunk-MOEKGI3Q.js} +7 -6
- package/dist/{chunk-NQD2OQEG.js → chunk-MZTFEGDM.js} +4 -4
- package/dist/{chunk-L5A2UTQV.js → chunk-N5UT7MST.js} +2 -2
- package/dist/{chunk-2GYC6ADT.js → chunk-NTFJHBUN.js} +5 -5
- package/dist/{chunk-VC3HSOGC.js → chunk-O6I523D7.js} +5 -4
- package/dist/{chunk-3O74ORYF.js → chunk-P7OXW6SX.js} +2 -2
- package/dist/{chunk-PAW7CB3K.js → chunk-QAUIUFHM.js} +2 -2
- package/dist/{chunk-N66DZLL6.js → chunk-QEVF4GU6.js} +4 -2
- package/dist/{chunk-KQQCELPA.js → chunk-R5YV23ZF.js} +3 -3
- package/dist/{chunk-4PBFVO5S.js → chunk-S4JSEGNU.js} +3 -3
- package/dist/{chunk-I55EPFTM.js → chunk-SCDADO4Y.js} +3 -3
- package/dist/{chunk-6KHTQTRF.js → chunk-TELARNV2.js} +1 -1
- package/dist/{chunk-Q6SYCTJD.js → chunk-TQLIL4FK.js} +7 -2
- package/dist/{chunk-FBABNQTM.js → chunk-UXI6MVF4.js} +5 -4
- package/dist/{chunk-MLHAFFJQ.js → chunk-VFI4XPBU.js} +1 -1
- package/dist/{chunk-RDLI353P.js → chunk-VJWTYDCA.js} +1 -1
- package/dist/{chunk-GIMOHY5C.js → chunk-W6DTEUHF.js} +2 -2
- package/dist/{chunk-2ZXF62AA.js → chunk-WSHJXUF4.js} +9 -4
- package/dist/{chunk-XQFICAVB.js → chunk-Y4V25PX4.js} +3 -3
- package/dist/{chunk-XHW2Z6AX.js → chunk-YV4BUYJN.js} +3 -3
- package/dist/{chunk-YQDRT547.js → chunk-ZJKTV2QB.js} +7 -4
- package/dist/index.css +1839 -1677
- package/dist/index.d.ts +3 -1
- package/dist/index.js +49 -48
- package/dist/inputs/src/InputGroup.css +209 -209
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +231 -231
- package/dist/inputs/src/NumberField.d.ts +4 -0
- package/dist/inputs/src/NumberField.js +6 -6
- package/dist/inputs/src/PasswordField.css +219 -219
- package/dist/inputs/src/PasswordField.d.ts +4 -0
- package/dist/inputs/src/PasswordField.js +7 -7
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.d.ts +2 -1
- package/dist/inputs/src/RemainingCharacterCount.js +5 -5
- package/dist/inputs/src/SearchField.css +225 -225
- package/dist/inputs/src/SearchField.d.ts +4 -0
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/TextArea.css +226 -226
- package/dist/inputs/src/TextArea.d.ts +4 -0
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +223 -223
- package/dist/inputs/src/TextField.d.ts +4 -0
- package/dist/inputs/src/TextField.js +9 -9
- package/dist/inputs/src/index.css +269 -269
- package/dist/inputs/src/index.d.ts +1 -1
- package/dist/inputs/src/index.js +13 -13
- package/dist/layout/src/Content.js +1 -1
- package/dist/layout/src/Footer.js +1 -1
- package/dist/overlays/Popover/src/Popover.css +1975 -1813
- package/dist/overlays/Popover/src/Popover.js +49 -48
- package/dist/overlays/Popover/src/index.css +1975 -1813
- package/dist/overlays/Popover/src/index.js +49 -48
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.js +2 -2
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +2 -2
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +98 -98
- package/dist/radio/src/RadioGroup.d.ts +4 -0
- package/dist/radio/src/RadioGroup.js +1 -1
- package/dist/radio/src/index.css +98 -98
- package/dist/radio/src/index.js +5 -5
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +2 -2
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +3 -3
- package/dist/tag/src/Tag.css +335 -335
- package/dist/tag/src/Tag.js +5 -5
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.d.ts +4 -0
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +345 -345
- package/dist/tag/src/index.js +6 -6
- 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.d.ts +2 -2
- 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.js +5 -5
- package/package.json +3 -3
- package/dist/chunk-KSKIQSYM.js +0 -260
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-R5YV23ZF.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -10,13 +10,18 @@ import { composeRenderProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./RemainingCharacterCount.module.css#css-module
|
|
13
|
-
var RemainingCharacterCount_module_default = { "hop-RemainingCharacterCount": "RemainingCharacterCount-module__hop-
|
|
13
|
+
var RemainingCharacterCount_module_default = { "hop-RemainingCharacterCount": "RemainingCharacterCount-module__hop-RemainingCharacterCount___fByXf" };
|
|
14
|
+
var GlobalRemainingCharacterCountCssSelector = "hop-RemainingCharacterCount";
|
|
14
15
|
function RemainingCharacterCount(props, ref) {
|
|
15
16
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
17
|
const { className, style, count, isDisabled, isInvalid, ...textProps } = ownProps;
|
|
17
18
|
const stringFormatter = useLocalizedString();
|
|
18
19
|
const accessibilityString = stringFormatter.format("Input.charactersLeft", { charLeft: count });
|
|
19
|
-
const classNames = composeClassnameRenderProps(
|
|
20
|
+
const classNames = composeClassnameRenderProps(
|
|
21
|
+
className,
|
|
22
|
+
GlobalRemainingCharacterCountCssSelector,
|
|
23
|
+
cssModule(RemainingCharacterCount_module_default, "hop-RemainingCharacterCount")
|
|
24
|
+
);
|
|
20
25
|
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
21
26
|
return {
|
|
22
27
|
...stylingProps.style,
|
|
@@ -49,4 +54,4 @@ function RemainingCharacterCount(props, ref) {
|
|
|
49
54
|
var _RemainingCharacterCount = forwardRef(RemainingCharacterCount);
|
|
50
55
|
_RemainingCharacterCount.displayName = "Footer";
|
|
51
56
|
|
|
52
|
-
export { _RemainingCharacterCount };
|
|
57
|
+
export { GlobalRemainingCharacterCountCssSelector, _RemainingCharacterCount };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { _ListBoxItem } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-NTFJHBUN.js';
|
|
5
5
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
6
6
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
7
7
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
8
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-R5YV23ZF.js';
|
|
9
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
11
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./ListBox.module.css#css-module
|
|
20
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
20
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___ZBeiG", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___9EfEB", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___mn5-E", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___j1lF6", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___VpdYg" };
|
|
21
21
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
22
22
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
23
23
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
2
2
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
3
|
+
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import { useContextProps, Heading as Heading$1 } from 'react-aria-components';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Heading.module.css#css-module
|
|
10
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-
|
|
10
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___vu21Z", "hop-Heading--xs": "Heading-module__hop-Heading--xs___gjgUo", "hop-Heading--sm": "Heading-module__hop-Heading--sm___1fSAD", "hop-Heading--md": "Heading-module__hop-Heading--md___ddJPc", "hop-Heading--lg": "Heading-module__hop-Heading--lg___-HY-X", "hop-Heading--xl": "Heading-module__hop-Heading--xl___16E0u", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___j7Igk", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___xb45E" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -39,7 +39,7 @@ function Heading(props, ref) {
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
var _Heading = forwardRef(Heading);
|
|
42
|
+
var _Heading = slot("heading", forwardRef(Heading));
|
|
43
43
|
_Heading.displayName = "Heading";
|
|
44
44
|
function createHeading(as) {
|
|
45
45
|
const level = parseInt(as[1]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
3
3
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
-
import { _RemainingCharacterCount } from './chunk-
|
|
5
|
-
import { _InputGroup } from './chunk-
|
|
4
|
+
import { _RemainingCharacterCount } from './chunk-WSHJXUF4.js';
|
|
5
|
+
import { _InputGroup } from './chunk-64O3N7JE.js';
|
|
6
6
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
@@ -78,7 +78,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// css-module:./TextArea.module.css#css-module
|
|
81
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
81
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___emVb6", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___Q470-", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___xer9b", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___mx2JN", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___AwE8W", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___--ONv", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___39pLe", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___Cu34e", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___BV7wN" };
|
|
82
82
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
83
83
|
var DefaultMinimumTextAreaRows = 3;
|
|
84
84
|
var pxToInt = (value) => {
|
|
@@ -140,7 +140,9 @@ function TextArea(props, ref) {
|
|
|
140
140
|
isFluid: isFluidProp,
|
|
141
141
|
isDisabled,
|
|
142
142
|
isInvalid,
|
|
143
|
+
isRequired,
|
|
143
144
|
restrictMaxLength = true,
|
|
145
|
+
necessityIndicator,
|
|
144
146
|
...otherProps
|
|
145
147
|
} = ownProps;
|
|
146
148
|
const mergedTextAreaRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -234,7 +236,7 @@ function TextArea(props, ref) {
|
|
|
234
236
|
SlotProvider,
|
|
235
237
|
{
|
|
236
238
|
values: [
|
|
237
|
-
[LabelContext, { className: TextArea_module_default["hop-TextArea__Label"] }],
|
|
239
|
+
[LabelContext, { className: TextArea_module_default["hop-TextArea__Label"], isRequired, necessityIndicator }],
|
|
238
240
|
[HelperMessageContext, { className: TextArea_module_default["hop-TextArea__HelperMessage"] }],
|
|
239
241
|
[ErrorMessageContext, { className: TextArea_module_default["hop-TextArea__ErrorMessage"] }]
|
|
240
242
|
],
|
|
@@ -255,6 +257,7 @@ function TextArea(props, ref) {
|
|
|
255
257
|
onChange,
|
|
256
258
|
isDisabled,
|
|
257
259
|
isInvalid,
|
|
260
|
+
isRequired,
|
|
258
261
|
"data-resize-mode": resizeMode,
|
|
259
262
|
...otherProps,
|
|
260
263
|
children: childrenMarkup
|