@hopper-ui/components 1.3.1 → 1.3.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 +12 -0
- 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/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 +21 -21
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +10 -10
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +31 -31
- package/dist/Badge/src/index.js +3 -3
- 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 +666 -645
- package/dist/Form/src/Form.js +43 -43
- package/dist/Form/src/index.css +666 -645
- package/dist/Form/src/index.js +43 -43
- 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 +2 -2
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +2 -2
- package/dist/ListBox/src/ListBox.css +222 -222
- package/dist/ListBox/src/ListBox.js +8 -8
- package/dist/ListBox/src/ListBoxItem.css +207 -207
- package/dist/ListBox/src/ListBoxItem.js +6 -6
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +222 -222
- package/dist/ListBox/src/index.js +8 -8
- package/dist/Select/src/Select.css +666 -645
- package/dist/Select/src/Select.js +43 -43
- package/dist/Select/src/SelectValue.css +60 -60
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +666 -645
- package/dist/Select/src/index.js +43 -43
- 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 +3 -3
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +74 -70
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +74 -70
- package/dist/buttons/src/EmbeddedButton.d.ts +4 -0
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +179 -175
- package/dist/buttons/src/index.js +6 -6
- package/dist/checkbox/src/Checkbox.css +31 -31
- package/dist/checkbox/src/Checkbox.js +2 -2
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +60 -60
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/index.css +60 -60
- package/dist/checkbox/src/index.js +4 -4
- package/dist/{chunk-ANBOSYAL.js → chunk-2IM7L64G.js} +1 -1
- package/dist/{chunk-OLXX46IZ.js → chunk-2OHECU6B.js} +1 -1
- package/dist/{chunk-ESWRMGHR.js → chunk-6PQWQGCX.js} +3 -3
- package/dist/{chunk-NJHNYL6X.js → chunk-6QFZJMC3.js} +2 -2
- package/dist/{chunk-D2GZKHYD.js → chunk-75FA3TWT.js} +1 -1
- package/dist/{chunk-2ZOLM7VR.js → chunk-7ZNANBX5.js} +2 -2
- package/dist/{chunk-2WWHL3EF.js → chunk-APRULC6A.js} +3 -3
- package/dist/{chunk-5NMCOZOW.js → chunk-BOL3HK7H.js} +1 -1
- package/dist/{chunk-PUMWU6M4.js → chunk-DMVOYW6N.js} +6 -1
- package/dist/{chunk-7QUXYE3E.js → chunk-DOSVC2KD.js} +4 -4
- package/dist/{chunk-YD2TGFCB.js → chunk-E2A556FA.js} +3 -3
- package/dist/{chunk-HXPTWMD5.js → chunk-EBNKK7UG.js} +3 -3
- package/dist/{chunk-EUELVL2L.js → chunk-EC7OSNAK.js} +1 -1
- package/dist/{chunk-UNSJTDXN.js → chunk-ENP5QA57.js} +1 -1
- package/dist/{chunk-USVXH6MO.js → chunk-F35TAM7I.js} +2 -2
- package/dist/{chunk-X2T2UX2O.js → chunk-FNFLGAVD.js} +1 -1
- package/dist/{chunk-BO53NITW.js → chunk-FUZDBWJ3.js} +1 -1
- package/dist/{chunk-XF4SQ222.js → chunk-IAK7ZIAY.js} +1 -1
- package/dist/{chunk-JVZRUDLP.js → chunk-IEIBO5IZ.js} +4 -4
- package/dist/{chunk-47SFZCKK.js → chunk-JAN7XPAP.js} +1 -1
- package/dist/{chunk-BV7O26TY.js → chunk-K73GF67H.js} +3 -3
- package/dist/{chunk-GG6RHMJ7.js → chunk-KB5TOYUY.js} +7 -7
- package/dist/{chunk-TJMAMWRQ.js → chunk-LG55WC5T.js} +3 -1
- package/dist/{chunk-QSWSZUZM.js → chunk-N3Z3CYO7.js} +1 -1
- package/dist/{chunk-HLXQ6C2E.js → chunk-OVLJGCG7.js} +1 -1
- package/dist/{chunk-SFZBLVJN.js → chunk-OX2HJIUS.js} +2 -2
- package/dist/{chunk-EMD2K6B3.js → chunk-PWHVRELJ.js} +2 -2
- package/dist/{chunk-ZG5E36S3.js → chunk-Q7XNJJHM.js} +3 -3
- package/dist/{chunk-QCTIAKM6.js → chunk-QS5JV4ME.js} +1 -1
- package/dist/{chunk-L3Y67TUF.js → chunk-RYBVVQUA.js} +1 -1
- package/dist/{chunk-52LHX4PE.js → chunk-SLHMNCFU.js} +2 -2
- package/dist/{chunk-A2S2Q73W.js → chunk-TN3VIRQZ.js} +2 -2
- package/dist/{chunk-NEPRDVF7.js → chunk-TNKYUIG3.js} +1 -1
- package/dist/{chunk-JVDCU4PT.js → chunk-TRGOUUKL.js} +1 -1
- package/dist/{chunk-SD6DBWYC.js → chunk-U6IYZMNN.js} +1 -1
- package/dist/{chunk-QAIK237T.js → chunk-UM7DFJXF.js} +18 -7
- package/dist/{chunk-BF6YUKC2.js → chunk-V4SY4DCA.js} +1 -1
- package/dist/{chunk-XHQWDF7B.js → chunk-W52DLG34.js} +1 -1
- package/dist/{chunk-D7VVQIPM.js → chunk-YGOVG4X3.js} +2 -2
- package/dist/{chunk-ARD3LWL2.js → chunk-ZFMCRQ5C.js} +2 -2
- package/dist/{chunk-WDA6LWC4.js → chunk-ZWTMTEFG.js} +6 -6
- package/dist/index.css +666 -645
- package/dist/index.js +43 -43
- package/dist/inputs/src/InputGroup.css +1099 -14
- package/dist/inputs/src/InputGroup.js +2 -1
- package/dist/inputs/src/NumberField.css +1068 -63
- package/dist/inputs/src/NumberField.js +7 -6
- package/dist/inputs/src/PasswordField.css +225 -217
- package/dist/inputs/src/PasswordField.js +7 -7
- package/dist/inputs/src/SearchField.css +231 -223
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/TextArea.css +1062 -57
- package/dist/inputs/src/TextArea.js +8 -7
- package/dist/inputs/src/TextField.css +239 -218
- package/dist/inputs/src/TextField.d.ts +7 -0
- package/dist/inputs/src/TextField.js +9 -8
- package/dist/inputs/src/index.css +1280 -1259
- package/dist/inputs/src/index.js +13 -13
- package/dist/overlays/Popover/src/Popover.css +666 -645
- package/dist/overlays/Popover/src/Popover.js +43 -43
- package/dist/overlays/Popover/src/index.css +666 -645
- package/dist/overlays/Popover/src/index.js +43 -43
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +2 -2
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +60 -60
- package/dist/radio/src/RadioGroup.js +1 -1
- package/dist/radio/src/index.css +60 -60
- package/dist/radio/src/index.js +4 -4
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +2 -2
- 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 +3 -3
- package/dist/tag/src/Tag.css +326 -322
- package/dist/tag/src/Tag.js +5 -5
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +339 -335
- package/dist/tag/src/index.js +6 -6
- 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 +3 -3
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +1 -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 +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-DMVOYW6N.js';
|
|
3
|
+
import { _ClearButton } from './chunk-OVLJGCG7.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, Input, SearchField as SearchField$
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./SearchField.module.css#css-module
|
|
20
|
-
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-
|
|
20
|
+
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___d0thT", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___wa1FR", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___kYBDG", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___IFwmA", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___8XpuW", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___Szaco", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___WEpMs", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___5IdhS", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___lckjT" };
|
|
21
21
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
22
22
|
function SearchField(props, ref) {
|
|
23
23
|
var _a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
2
2
|
import { useImageFallback } from './chunk-NS3XVOQ7.js';
|
|
3
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-FUZDBWJ3.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { BrokenImageRichIcon } from '@hopper-ui/icons';
|
|
7
7
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Avatar.module.css#css-module
|
|
15
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
15
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___2iRIy", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___U6TaP", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___mVPqW", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___-HteB", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___6eRRX", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___XeULp", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___0w2Ni", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___x4wwr", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___VdIQd", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___T5HRP", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___quPmn", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___ifBXG", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___wDYJd", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___xgn2p", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___6RKzf", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___LMOth", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___L1lkB" };
|
|
16
16
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
17
17
|
var AvatarToTextSizeAdapter = {
|
|
18
18
|
xs: "xs",
|
|
@@ -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___THbpa", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___zuO92", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___WteEE", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___nNiRb", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___YaFOG", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___ktcWB", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___W2aOq", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___uPyiu", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___SPO-k" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-FUZDBWJ3.js';
|
|
3
3
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
4
4
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
2
2
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, ProgressBar } from 'react-aria-components';
|
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Spinner.module.css#css-module
|
|
12
|
-
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-
|
|
12
|
+
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-Spinner___xDrpF", "spin": "Spinner-module__spin___-Rkj1", "hop-Spinner--sm": "Spinner-module__hop-Spinner--sm___rvdH6", "hop-Spinner--md": "Spinner-module__hop-Spinner--md___z6QNv", "hop-Spinner--lg": "Spinner-module__hop-Spinner--lg___NI1Kx", "hop-Spinner__track": "Spinner-module__hop-Spinner__track___4C02S", "hop-Spinner__fill": "Spinner-module__hop-Spinner__fill___oPPSm", "hop-Spinner__label": "Spinner-module__hop-Spinner__label___AivV7" };
|
|
13
13
|
var GlobalSpinnerCssSelector = "hop-Spinner";
|
|
14
14
|
var SpinnerToTextSizeAdapter = {
|
|
15
15
|
sm: "xs",
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./FloatingBadge.module.css#css-module
|
|
13
|
-
var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-
|
|
13
|
+
var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-FloatingBadge___OCAvn", "hop-FloatingBadge__badge": "FloatingBadge-module__hop-FloatingBadge__badge___XidQN" };
|
|
14
14
|
var GlobalFloatingBadgeCssSelector = "hop-FloatingBadge";
|
|
15
15
|
function FloatingBadge(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, FloatingBadgeContext);
|
|
@@ -9,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
12
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
12
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___P6XFt", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___kM-j4", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___SKx-C", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___-ELGu", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___V0j8U", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___uv-1s", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___43YNN", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___IoXhR" };
|
|
13
13
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
14
|
var AvatarToIconSizeAdapter = {
|
|
15
15
|
xs: "md",
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___5-U5u", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___tROve", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___WF17x", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___yPJ4x", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___GDWcA", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___9hgUf" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
2
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
3
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
4
|
-
import {
|
|
3
|
+
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
+
import { _InputGroup } from './chunk-DMVOYW6N.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.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-QS5JV4ME.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___AZnsL", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___SeEFe", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___usIcu", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___SdyC9", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___AMYx9", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___qBFJK", "hop-TextArea__char-count": "TextArea-module__hop-TextArea__char-count___G2i49", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___kWsAn", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___yOGFC" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -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___bHXtt", "hop-Heading--xs": "Heading-module__hop-Heading--xs___rkqGG", "hop-Heading--sm": "Heading-module__hop-Heading--sm___auPVY", "hop-Heading--md": "Heading-module__hop-Heading--md___u5KdF", "hop-Heading--lg": "Heading-module__hop-Heading--lg___zzc1d", "hop-Heading--xl": "Heading-module__hop-Heading--xl___5SCUd", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___hnCq3", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___aCZIQ" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _InputGroup } from './chunk-
|
|
1
|
+
import { _InputGroup } from './chunk-DMVOYW6N.js';
|
|
2
2
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
3
|
-
import { _EmbeddedButton } from './chunk-
|
|
3
|
+
import { _EmbeddedButton } from './chunk-LG55WC5T.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, Input, TextField } from 'react-ari
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./PasswordField.module.css#css-module
|
|
21
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-
|
|
21
|
+
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___hLLh-", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___1S9mw", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___l5jiL", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___eNFZT", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___bV6Aq", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___vKbSD" };
|
|
22
22
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
23
23
|
function PasswordField(props, ref) {
|
|
24
24
|
var _a;
|
|
@@ -11,14 +11,14 @@ import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
|
11
11
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
12
12
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
13
13
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
14
|
-
import { _SelectValue } from './chunk-
|
|
14
|
+
import { _SelectValue } from './chunk-ZFMCRQ5C.js';
|
|
15
15
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
16
16
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
17
17
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
18
|
-
import { _ListBox } from './chunk-
|
|
18
|
+
import { _ListBox } from './chunk-Q7XNJJHM.js';
|
|
19
19
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
20
20
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
21
|
-
import { _ListBoxItem } from './chunk-
|
|
21
|
+
import { _ListBoxItem } from './chunk-ZWTMTEFG.js';
|
|
22
22
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
23
23
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
24
24
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
@@ -29,7 +29,7 @@ import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
|
29
29
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
30
30
|
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
31
31
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
32
|
-
import { _Text } from './chunk-
|
|
32
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
33
33
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
34
34
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
35
35
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -44,7 +44,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
44
44
|
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
45
45
|
|
|
46
46
|
// css-module:./Popover.module.css#css-module
|
|
47
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
47
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___i8se0", "fade": "Popover-module__fade___Y80OG", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___6wmmX", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___qWlym", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___Zh5mt", "hop-Popover__title": "Popover-module__hop-Popover__title___yIARl", "hop-Popover__content": "Popover-module__hop-Popover__content___ZaJ8T", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___mCGCz", "hop-Popover__footer": "Popover-module__hop-Popover__footer___Zan9L", "hop-Popover__actions": "Popover-module__hop-Popover__actions___ltRsy", "hop-Popover__action": "Popover-module__hop-Popover__action___srYuC" };
|
|
48
48
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
49
49
|
function Popover(props, ref) {
|
|
50
50
|
var _a;
|
|
@@ -178,7 +178,7 @@ var _Popover = forwardRef(Popover);
|
|
|
178
178
|
_Popover.displayName = "Popover";
|
|
179
179
|
|
|
180
180
|
// css-module:./Select.module.css#css-module
|
|
181
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
181
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___EO27h", "hop-Select--fluid": "Select-module__hop-Select--fluid___FzpaW", "hop-Select__label": "Select-module__hop-Select__label___c4deC", "hop-Select__button": "Select-module__hop-Select__button___fa76-", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___8MviV", "hop-Select__button--md": "Select-module__hop-Select__button--md___ITp9Y", "hop-Select__prefix": "Select-module__hop-Select__prefix___Co2es", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___-PN1H", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___96x9I", "hop-Select__error-message": "Select-module__hop-Select__error-message___U1kYE" };
|
|
182
182
|
var GlobalSelectCssSelector = "hop-Select";
|
|
183
183
|
function Select(props, ref) {
|
|
184
184
|
var _a, _b;
|
|
@@ -738,7 +738,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
// css-module:./Form.module.css#css-module
|
|
741
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
741
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___PGIZl" };
|
|
742
742
|
var GlobalFormCssSelector = "hop-Form";
|
|
743
743
|
function Form(props, ref) {
|
|
744
744
|
var _a;
|
|
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Button } from 'react-aria-componen
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
12
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
12
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___fQdPb", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___c-uxl", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___3w8cX", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___LH4l0", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___JqGBl", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___Ekpqs", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___mm1dS", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___lZEMl", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___-g2RB", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___6K9h-", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___GtSc9", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___t-CPy", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___J4cqN", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___3-TWn", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___KFswN", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___IfhUX" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -20,6 +20,7 @@ function EmbeddedButton(props, ref) {
|
|
|
20
20
|
size: sizeProp,
|
|
21
21
|
isDisabled,
|
|
22
22
|
isSelected = false,
|
|
23
|
+
isSquare,
|
|
23
24
|
style: styleProp,
|
|
24
25
|
children,
|
|
25
26
|
variant = "neutral",
|
|
@@ -60,6 +61,7 @@ function EmbeddedButton(props, ref) {
|
|
|
60
61
|
style,
|
|
61
62
|
isDisabled,
|
|
62
63
|
"data-selected": isSelected || void 0,
|
|
64
|
+
"data-square": isSquare || void 0,
|
|
63
65
|
...otherProps,
|
|
64
66
|
children
|
|
65
67
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-FUZDBWJ3.js';
|
|
3
3
|
import { DeletedUserRichIcon } from '@hopper-ui/icons';
|
|
4
4
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-LG55WC5T.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -2,7 +2,7 @@ import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
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-QS5JV4ME.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___f6Vgr", "hop-Radio--focused": "Radio-module__hop-Radio--focused___1rGHf", "hop-Radio--hovered": "Radio-module__hop-Radio--hovered___PK7aT", "hop-Radio--pressed": "Radio-module__hop-Radio--pressed___MLA7j", "hop-Radio--sm": "Radio-module__hop-Radio--sm___hJ83r", "hop-Radio--md": "Radio-module__hop-Radio--md___rigqc", "hop-Radio__icon": "Radio-module__hop-Radio__icon___qEuEv", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___aUQY-", "hop-Radio__box": "Radio-module__hop-Radio__box___Ma5Cl", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___UNMt2", "hop-Radio__text": "Radio-module__hop-Radio__text___bpSHA" };
|
|
18
18
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
19
19
|
function Radio(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { InfoIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, FieldErrorContext } from 'react-aria-components';
|
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./HelperMessage.module.css#css-module
|
|
12
|
-
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-
|
|
12
|
+
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-HelperMessage___g-VQU", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___cXfSo" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
2
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
3
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { _ListBoxItem } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-ZWTMTEFG.js';
|
|
5
5
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
6
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
9
9
|
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
10
|
-
import { _Text } from './chunk-
|
|
10
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___178zE", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___g5S3Y", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___-52aj", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___FbmGI", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___7gxdn", "hop-ListBox__divider": "ListBox-module__hop-ListBox__divider___yBQm-" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -9,7 +9,7 @@ import { useContextProps, Text as Text$1 } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Text.module.css#css-module
|
|
12
|
-
var Text_module_default = { "hop-Text": "Text-module__hop-
|
|
12
|
+
var Text_module_default = { "hop-Text": "Text-module__hop-Text___i-wip", "hop-Text--xs": "Text-module__hop-Text--xs___OgrlM", "hop-Text--sm": "Text-module__hop-Text--sm___VG8kM", "hop-Text--md": "Text-module__hop-Text--md___Y1jRC", "hop-Text--lg": "Text-module__hop-Text--lg___P2gHm", "hop-Text--xl": "Text-module__hop-Text--xl___uu4Y6", "hop-Text--2xl": "Text-module__hop-Text--2xl___kr5Vw", "hop-Text--inherit": "Text-module__hop-Text--inherit___enYNN" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./RadioGroup.module.css#css-module
|
|
17
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
17
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___fZzjX", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___B-TYS", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___SFGiN", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___DZiZf", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___XSmfS", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___70l9M", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___TBSqm", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___-gzSi", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___0rYBR" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -2,7 +2,7 @@ import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
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-QS5JV4ME.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Link.module.css#css-module
|
|
16
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
16
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___qHQQp", "hop-Link--quiet": "Link-module__hop-Link--quiet___R-N9E", "hop-Link--primary": "Link-module__hop-Link--primary___-Kizu", "hop-Link--secondary": "Link-module__hop-Link--secondary___V2FVF", "hop-Link__icon": "Link-module__hop-Link__icon___-5Hms", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___9c76z", "hop-Link__text": "Link-module__hop-Link__text___mskEH", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___P3X3d", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___M66uE" };
|
|
17
17
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
18
|
var LinkToIconSizeAdapter = {
|
|
19
19
|
inherit: void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
2
2
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { WarningIcon } from '@hopper-ui/icons';
|
|
6
6
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -10,7 +10,7 @@ import { FieldErrorContext, useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ErrorMessage.module.css#css-module
|
|
13
|
-
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-
|
|
13
|
+
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___lZhsu", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___Dnsoj" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./SwitchField.module.css#css-module
|
|
14
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
14
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___pVi8B", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___W7D8R", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___Dq1Rf", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___konhn", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___Gu96C" };
|
|
15
15
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
16
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___AJQ9B", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___2R69Q" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./RadioField.module.css#css-module
|
|
15
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
15
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___ygk-A", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___VOflW", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___vefQn", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___XFh3h", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___odwQg" };
|
|
16
16
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
17
17
|
var RadioToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
1
2
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
3
|
+
import { _InputGroup } from './chunk-DMVOYW6N.js';
|
|
4
|
+
import { _ClearButton } from './chunk-OVLJGCG7.js';
|
|
4
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
7
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
7
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
9
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
9
10
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
10
|
-
import { _Text } from './chunk-
|
|
11
|
+
import { _Text } from './chunk-QS5JV4ME.js';
|
|
11
12
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
13
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
14
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
15
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
16
|
import { IconContext } from '@hopper-ui/icons';
|
|
16
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
17
|
+
import { useStyledSystem, useResponsiveValue, useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
17
18
|
import { mergeRefs } from '@react-aria/utils';
|
|
18
19
|
import { useControlledState } from '@react-stately/utils';
|
|
19
20
|
import { forwardRef, useState, useCallback } from 'react';
|
|
@@ -22,7 +23,7 @@ import { useContextProps, composeRenderProps, Input, TextField as TextField$1 }
|
|
|
22
23
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
24
|
|
|
24
25
|
// css-module:./TextField.module.css#css-module
|
|
25
|
-
var TextField_module_default = { "hop-TextField": "TextField-module__hop-
|
|
26
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___PTKjj", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___EfbQz", "hop-TextField__Label": "TextField-module__hop-TextField__Label___Z8oeT", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___1YEp3", "hop-TextField__char-count": "TextField-module__hop-TextField__char-count___M-icC", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___v7uGH", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___bZdJX", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___XbbVr" };
|
|
26
27
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
27
28
|
function TextField(props, ref) {
|
|
28
29
|
var _a;
|
|
@@ -54,10 +55,12 @@ function TextField(props, ref) {
|
|
|
54
55
|
isDisabled,
|
|
55
56
|
isInvalid,
|
|
56
57
|
isRequired,
|
|
58
|
+
restrictMaxLength = true,
|
|
57
59
|
...otherProps
|
|
58
60
|
} = ownProps;
|
|
59
61
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
60
62
|
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
63
|
+
const overMaxLength = !!maxLength && characterCount > maxLength;
|
|
61
64
|
const classNames = composeClassnameRenderProps(
|
|
62
65
|
className,
|
|
63
66
|
GlobalTextFieldCssSelector,
|
|
@@ -79,6 +82,7 @@ function TextField(props, ref) {
|
|
|
79
82
|
setCharacterCount(value2.length);
|
|
80
83
|
onChangeProp == null ? void 0 : onChangeProp(value2);
|
|
81
84
|
}, [onChangeProp]);
|
|
85
|
+
const truncateText = useTruncatedText();
|
|
82
86
|
const [value, onChange] = useControlledState(valueProp, defaultValue || "", handleTextChanged);
|
|
83
87
|
const handleClear = useCallback(() => {
|
|
84
88
|
onChange("");
|
|
@@ -98,6 +102,12 @@ function TextField(props, ref) {
|
|
|
98
102
|
children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix
|
|
99
103
|
}
|
|
100
104
|
) : null;
|
|
105
|
+
useIsomorphicLayoutEffect(() => {
|
|
106
|
+
if (restrictMaxLength) {
|
|
107
|
+
const newValue = truncateText(value, maxLength);
|
|
108
|
+
onChange(newValue);
|
|
109
|
+
}
|
|
110
|
+
}, [value]);
|
|
101
111
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
102
112
|
_InputGroup,
|
|
103
113
|
{
|
|
@@ -137,11 +147,12 @@ function TextField(props, ref) {
|
|
|
137
147
|
value,
|
|
138
148
|
style,
|
|
139
149
|
className: classNames,
|
|
140
|
-
maxLength,
|
|
150
|
+
maxLength: restrictMaxLength ? maxLength : void 0,
|
|
141
151
|
onChange,
|
|
142
152
|
isDisabled,
|
|
143
153
|
isInvalid,
|
|
144
154
|
isRequired,
|
|
155
|
+
"data-over-max-length": overMaxLength || void 0,
|
|
145
156
|
...otherProps,
|
|
146
157
|
children: childrenMarkup
|
|
147
158
|
}
|
|
@@ -154,8 +165,8 @@ function CharacterCount({ characterLeft }) {
|
|
|
154
165
|
_Text,
|
|
155
166
|
{
|
|
156
167
|
"aria-label": accessibilityString,
|
|
168
|
+
className: TextField_module_default["hop-TextField__char-count"],
|
|
157
169
|
role: "status",
|
|
158
|
-
color: "neutral-weakest",
|
|
159
170
|
size: "xs",
|
|
160
171
|
children: characterLeft
|
|
161
172
|
}
|
|
@@ -8,7 +8,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./IconList.module.css#css-module
|
|
11
|
-
var IconList_module_default = { "hop-IconList": "IconList-module__hop-
|
|
11
|
+
var IconList_module_default = { "hop-IconList": "IconList-module__hop-IconList___LeCr-" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
13
|
function IconList(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
@@ -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___s6wSY", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___XG2gM", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___4Ffgb", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___Ts5SG", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___BWiwC" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -2,7 +2,7 @@ import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
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-QS5JV4ME.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, 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___LGvQv", "hop-Checkbox--focused": "Checkbox-module__hop-Checkbox--focused___vjDn-", "hop-Checkbox--hovered": "Checkbox-module__hop-Checkbox--hovered___rBo1O", "hop-Checkbox--pressed": "Checkbox-module__hop-Checkbox--pressed___A-Tzt", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___4oMPK", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___TcJBe", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___czSm3", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___657WD", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___hg4Mw", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___X5sEH", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___IAcx-" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|