@hopper-ui/components 1.3.7 → 1.3.9
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 +13 -0
- package/dist/Avatar/src/AnonymousAvatar.css +237 -10
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +184 -37
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +237 -10
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +237 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +184 -37
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +205 -21
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +237 -10
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +215 -31
- package/dist/Badge/src/index.js +3 -3
- package/dist/ComboBox/src/ComboBox.css +5135 -0
- package/dist/ComboBox/src/ComboBox.d.ts +90 -0
- package/dist/ComboBox/src/ComboBox.js +124 -0
- package/dist/ComboBox/src/ComboBoxContext.d.ts +16 -0
- package/dist/ComboBox/src/ComboBoxContext.js +2 -0
- package/dist/ComboBox/src/index.css +5135 -0
- package/dist/ComboBox/src/index.d.ts +12 -0
- package/dist/ComboBox/src/index.js +124 -0
- package/dist/Divider/src/Divider.css +229 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +229 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +158 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +158 -11
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +896 -894
- package/dist/Form/src/Form.js +70 -68
- package/dist/Form/src/index.css +896 -894
- package/dist/Form/src/index.js +70 -68
- package/dist/HelperMessage/src/HelperMessage.css +158 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +158 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +228 -1
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +228 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +184 -37
- package/dist/Link/src/Link.js +3 -3
- package/dist/Link/src/index.css +184 -37
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +398 -346
- package/dist/ListBox/src/ListBox.js +7 -8
- package/dist/ListBox/src/ListBoxItem.css +391 -306
- package/dist/ListBox/src/ListBoxItem.js +5 -5
- package/dist/ListBox/src/ListBoxItemSkeleton.css +234 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +398 -346
- package/dist/ListBox/src/index.js +7 -8
- package/dist/Select/src/Select.css +961 -959
- package/dist/Select/src/Select.js +70 -68
- package/dist/Select/src/SelectValue.css +197 -191
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +961 -959
- package/dist/Select/src/index.js +70 -68
- package/dist/Spinner/src/Spinner.css +166 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +166 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +247 -100
- package/dist/buttons/src/Button.js +4 -4
- package/dist/buttons/src/ButtonGroup.css +238 -11
- package/dist/buttons/src/ButtonGroup.js +2 -2
- package/dist/buttons/src/ClearButton.css +298 -71
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +298 -71
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +329 -182
- package/dist/buttons/src/index.js +8 -8
- package/dist/checkbox/src/Checkbox.css +181 -34
- package/dist/checkbox/src/Checkbox.js +2 -2
- package/dist/checkbox/src/CheckboxField.css +162 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +233 -105
- package/dist/checkbox/src/CheckboxGroup.js +2 -2
- package/dist/checkbox/src/DecorativeCheckbox.css +189 -42
- package/dist/checkbox/src/DecorativeCheckbox.js +2 -2
- package/dist/checkbox/src/index.css +233 -105
- package/dist/checkbox/src/index.js +8 -8
- package/dist/{chunk-IZUZUN6Z.js → chunk-2GYC6ADT.js} +5 -5
- package/dist/{chunk-MJ24AAEX.js → chunk-2SF7BBJT.js} +1 -1
- package/dist/{chunk-ZVOVNXPJ.js → chunk-2WK465I4.js} +1 -1
- package/dist/chunk-2ZXF62AA.js +52 -0
- package/dist/{chunk-DSUR3NPA.js → chunk-3O74ORYF.js} +3 -3
- package/dist/{chunk-LULNSRRY.js → chunk-4EUVVRTY.js} +1 -1
- package/dist/{chunk-BZC3DOXC.js → chunk-4FVIH73F.js} +2 -2
- package/dist/{chunk-SRT6TJ7K.js → chunk-4PBFVO5S.js} +1 -1
- package/dist/chunk-4XHTP4GX.js +7 -0
- package/dist/{chunk-PGYHBNCP.js → chunk-54U727IV.js} +2 -2
- package/dist/{chunk-IA343FCT.js → chunk-5TH7VHRH.js} +3 -3
- package/dist/{chunk-FKFP4LFR.js → chunk-6KHTQTRF.js} +1 -1
- package/dist/{chunk-2LS24P2S.js → chunk-6U6JI3L3.js} +1 -1
- package/dist/{chunk-VZAUDQPW.js → chunk-7LTA4KPO.js} +3 -3
- package/dist/chunk-A3E76SDY.js +9 -0
- package/dist/{chunk-WD3GLWJA.js → chunk-ANO4F3LJ.js} +2 -2
- package/dist/{chunk-JZGG67JQ.js → chunk-B2O3ZCYC.js} +1 -1
- package/dist/{chunk-SZIBBFKI.js → chunk-BGOYDN4M.js} +2 -2
- package/dist/{chunk-MDI3RFZS.js → chunk-CZRCXQFS.js} +1 -1
- package/dist/{chunk-PVLUQZAG.js → chunk-E4JB7I3F.js} +2 -2
- package/dist/{chunk-4PCMNJTD.js → chunk-ENHK4K3U.js} +2 -2
- package/dist/{chunk-5LGDXMKZ.js → chunk-FBABNQTM.js} +3 -3
- package/dist/{chunk-BUI76FPU.js → chunk-GDVP2QEZ.js} +1 -1
- package/dist/{chunk-DNFIKL5N.js → chunk-GIMOHY5C.js} +2 -2
- package/dist/{chunk-FSRORCX7.js → chunk-HCJLAF2O.js} +4 -4
- package/dist/{chunk-T2DEFREG.js → chunk-HI2SHIGG.js} +1 -1
- package/dist/{chunk-PJLVJG4E.js → chunk-I55EPFTM.js} +2 -2
- package/dist/{chunk-JKE2GH2D.js → chunk-JX5YYFB3.js} +2 -2
- package/dist/{chunk-VMSIQERT.js → chunk-KOT3ULJY.js} +2 -2
- package/dist/{chunk-F4XYXAPX.js → chunk-KQQCELPA.js} +1 -1
- package/dist/chunk-KSKIQSYM.js +260 -0
- package/dist/{chunk-5CR5V44E.js → chunk-MLHAFFJQ.js} +1 -1
- package/dist/{chunk-DCTC6KDW.js → chunk-N66DZLL6.js} +2 -2
- package/dist/{chunk-HIF2U66B.js → chunk-NQD2OQEG.js} +1 -1
- package/dist/{chunk-MTQURD2G.js → chunk-PAW7CB3K.js} +2 -2
- package/dist/{chunk-CWP3RDUT.js → chunk-Q6SYCTJD.js} +2 -2
- package/dist/{chunk-BNBUTFBN.js → chunk-RDLI353P.js} +1 -1
- package/dist/{chunk-DMAM2GFN.js → chunk-S6AH3YTH.js} +14 -22
- package/dist/{chunk-C4W3WI5F.js → chunk-TMGUYWTR.js} +2 -2
- package/dist/{chunk-JGOXWGEG.js → chunk-TRDXTYZD.js} +3 -3
- package/dist/{chunk-LXWDXMVL.js → chunk-UJXKUNEW.js} +42 -33
- package/dist/{chunk-AWYN6573.js → chunk-UR3NK3LV.js} +1 -1
- package/dist/{chunk-AHMI7DHJ.js → chunk-VC3HSOGC.js} +3 -3
- package/dist/{chunk-Z63VLZM2.js → chunk-VQKJXEPU.js} +2 -2
- package/dist/{chunk-YFJWAPT5.js → chunk-XHW2Z6AX.js} +1 -1
- package/dist/{chunk-YUMDUDZX.js → chunk-XQFICAVB.js} +4 -8
- package/dist/{chunk-PQTB3F7K.js → chunk-YQDRT547.js} +12 -21
- package/dist/index.css +896 -894
- package/dist/index.d.ts +13 -11
- package/dist/index.js +70 -68
- package/dist/inputs/src/InputGroup.css +344 -197
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +336 -336
- package/dist/inputs/src/NumberField.js +6 -6
- package/dist/inputs/src/PasswordField.css +354 -354
- package/dist/inputs/src/PasswordField.js +7 -7
- package/dist/inputs/src/RemainingCharacterCount.css +241 -0
- package/dist/inputs/src/RemainingCharacterCount.d.ts +25 -0
- package/dist/inputs/src/RemainingCharacterCount.js +17 -0
- package/dist/inputs/src/SearchField.css +360 -360
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/TextArea.css +346 -342
- package/dist/inputs/src/TextArea.js +8 -6
- package/dist/inputs/src/TextField.css +370 -368
- package/dist/inputs/src/TextField.js +11 -9
- package/dist/inputs/src/index.css +464 -473
- package/dist/inputs/src/index.d.ts +8 -4
- package/dist/inputs/src/index.js +18 -16
- package/dist/overlays/Popover/src/Popover.css +896 -894
- package/dist/overlays/Popover/src/Popover.js +70 -68
- package/dist/overlays/Popover/src/index.css +896 -894
- package/dist/overlays/Popover/src/index.js +70 -68
- package/dist/radio/src/DecorativeRadio.css +189 -42
- package/dist/radio/src/DecorativeRadio.js +2 -2
- package/dist/radio/src/Radio.css +181 -34
- package/dist/radio/src/Radio.js +2 -2
- package/dist/radio/src/RadioField.css +162 -15
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +227 -99
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +233 -105
- package/dist/radio/src/index.js +8 -8
- package/dist/switch/src/Switch.css +178 -31
- package/dist/switch/src/Switch.js +2 -2
- package/dist/switch/src/SwitchField.css +162 -15
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +184 -37
- package/dist/switch/src/index.js +4 -4
- package/dist/tag/src/Tag.css +464 -360
- package/dist/tag/src/Tag.js +5 -5
- package/dist/tag/src/TagGroup.css +166 -38
- package/dist/tag/src/TagGroup.js +2 -2
- package/dist/tag/src/TagList.css +226 -0
- package/dist/tag/src/index.css +474 -389
- package/dist/tag/src/index.js +9 -9
- package/dist/typography/Heading/src/Heading.css +151 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +151 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +211 -3
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +211 -3
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +190 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +190 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +156 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +156 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +226 -0
- package/dist/utils/src/EnsureTextWrapper.d.ts +9 -0
- package/dist/utils/src/EnsureTextWrapper.js +16 -0
- package/dist/utils/src/index.css +226 -0
- package/dist/utils/src/index.d.ts +11 -10
- package/dist/utils/src/index.js +13 -2
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useScale } from './chunk-MTDFS4CZ.js';
|
|
2
2
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
3
|
+
import { _InputGroup } from './chunk-GDVP2QEZ.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-KQQCELPA.js';
|
|
9
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
11
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -21,7 +21,7 @@ import { useContextProps, composeRenderProps, Input, NumberField as NumberField$
|
|
|
21
21
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
22
|
|
|
23
23
|
// css-module:./NumberField.module.css#css-module
|
|
24
|
-
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-
|
|
24
|
+
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___VWgJv", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___D4KuH", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___JdtJi", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___DpcSp", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___baTwE", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___f4BCh", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___iTVwp", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___JGOeo", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___h67o-", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___bcKtE", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___qY0Q-", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___DrHY1", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___ogLPx", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___7YBOI" };
|
|
25
25
|
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
26
26
|
var StepperButton = ({ direction }) => {
|
|
27
27
|
const scale = useScale();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import { _Text } from './chunk-
|
|
4
|
+
import { _Text } from './chunk-KQQCELPA.js';
|
|
5
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
6
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Switch as Switch$1 } from 'react-a
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Switch.module.css#css-module
|
|
17
|
-
var Switch_module_default = { "hop-Switch": "Switch-module__hop-
|
|
17
|
+
var Switch_module_default = { "hop-Switch": "Switch-module__hop-Switch___ZiKpN", "hop-Switch--sm": "Switch-module__hop-Switch--sm___UnrZ2", "hop-Switch--md": "Switch-module__hop-Switch--md___FWbwB", "hop-Switch__indicator": "Switch-module__hop-Switch__indicator___lxvxY", "hop-Switch__text": "Switch-module__hop-Switch__text___jt3yM", "hop-Switch__icon-list": "Switch-module__hop-Switch__icon-list___5ELG6", "hop-Switch__icon": "Switch-module__hop-Switch__icon___U8pPq" };
|
|
18
18
|
var GlobalSwitchCssSelector = "hop-Switch";
|
|
19
19
|
function Switch(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -7,7 +7,7 @@ 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___qL-Ga", "hop-Heading--xs": "Heading-module__hop-Heading--xs___emC4g", "hop-Heading--sm": "Heading-module__hop-Heading--sm___0rHcs", "hop-Heading--md": "Heading-module__hop-Heading--md___lrBIc", "hop-Heading--lg": "Heading-module__hop-Heading--lg___9cuPI", "hop-Heading--xl": "Heading-module__hop-Heading--xl___WkYun", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___RaYLz", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___e1oE9" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
|
-
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-2GYC6ADT.js';
|
|
6
5
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
6
|
+
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
7
7
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
8
|
-
import {
|
|
9
|
-
import { _Text } from './chunk-F4XYXAPX.js';
|
|
8
|
+
import { _Text } from './chunk-KQQCELPA.js';
|
|
10
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
11
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -18,7 +17,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
18
|
|
|
20
19
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
20
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___emfw7", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___KXcZO", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___lzB6a", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___n6eiW", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___PK5X3" };
|
|
22
21
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
22
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
23
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -102,9 +101,6 @@ function ListBox(props, ref) {
|
|
|
102
101
|
[SectionContext, {
|
|
103
102
|
className: ListBox_module_default["hop-ListBox__section"]
|
|
104
103
|
}],
|
|
105
|
-
[DividerContext, {
|
|
106
|
-
className: ListBox_module_default["hop-ListBox__divider"]
|
|
107
|
-
}],
|
|
108
104
|
[ListBoxItemContext, {
|
|
109
105
|
className: ListBox_module_default["hop-ListBox__item"],
|
|
110
106
|
size,
|
|
@@ -1,12 +1,11 @@
|
|
|
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 {
|
|
4
|
+
import { _RemainingCharacterCount } from './chunk-2ZXF62AA.js';
|
|
5
|
+
import { _InputGroup } from './chunk-GDVP2QEZ.js';
|
|
5
6
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
|
-
import { _Text } from './chunk-F4XYXAPX.js';
|
|
10
9
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
12
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -79,7 +78,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
// css-module:./TextArea.module.css#css-module
|
|
82
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
81
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___-k51c", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___Aw2zq", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___DTyVx", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___BNJmg", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___fUwiC", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___U-RJM", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___X66az", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___QhLqC", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___Lp3qg" };
|
|
83
82
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
83
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
84
|
var pxToInt = (value) => {
|
|
@@ -217,7 +216,15 @@ function TextArea(props, ref) {
|
|
|
217
216
|
inputType: "textarea",
|
|
218
217
|
children: [
|
|
219
218
|
/* @__PURE__ */ jsx(TextArea$1, { ref: mergedTextAreaRef, placeholder, cols, rows }),
|
|
220
|
-
showCharacterCount && maxLength && /* @__PURE__ */ jsx(
|
|
219
|
+
showCharacterCount && maxLength && /* @__PURE__ */ jsx(
|
|
220
|
+
_RemainingCharacterCount,
|
|
221
|
+
{
|
|
222
|
+
className: TextArea_module_default["hop-TextArea__RemainingCharacterCount"],
|
|
223
|
+
count: maxLength - characterCount,
|
|
224
|
+
isInvalid: overMaxLength,
|
|
225
|
+
isDisabled
|
|
226
|
+
}
|
|
227
|
+
)
|
|
221
228
|
]
|
|
222
229
|
}
|
|
223
230
|
) });
|
|
@@ -249,27 +256,11 @@ function TextArea(props, ref) {
|
|
|
249
256
|
isDisabled,
|
|
250
257
|
isInvalid,
|
|
251
258
|
"data-resize-mode": resizeMode,
|
|
252
|
-
"data-over-max-length": overMaxLength || void 0,
|
|
253
259
|
...otherProps,
|
|
254
260
|
children: childrenMarkup
|
|
255
261
|
}
|
|
256
262
|
);
|
|
257
263
|
}
|
|
258
|
-
function CharacterCount({ charactersLeft, isInvalid }) {
|
|
259
|
-
const stringFormatter = useLocalizedString();
|
|
260
|
-
const accessibilityString = stringFormatter.format("Input.charactersLeft", { charLeft: charactersLeft });
|
|
261
|
-
return /* @__PURE__ */ jsx(
|
|
262
|
-
_Text,
|
|
263
|
-
{
|
|
264
|
-
"aria-label": accessibilityString,
|
|
265
|
-
role: "status",
|
|
266
|
-
size: "xs",
|
|
267
|
-
className: TextArea_module_default["hop-TextArea__char-count"],
|
|
268
|
-
"data-invalid": isInvalid || void 0,
|
|
269
|
-
children: charactersLeft
|
|
270
|
-
}
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
264
|
var _TextArea = forwardRef(TextArea);
|
|
274
265
|
_TextArea.displayName = "TextArea";
|
|
275
266
|
|