@hopper-ui/components 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -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 +10 -10
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/index.css +10 -10
- package/dist/Badge/src/index.js +2 -2
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +862 -605
- package/dist/Form/src/Form.js +66 -64
- package/dist/Form/src/index.css +862 -605
- package/dist/Form/src/index.js +66 -64
- 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 +226 -198
- package/dist/ListBox/src/ListBox.js +11 -12
- package/dist/ListBox/src/ListBoxItem.css +208 -182
- package/dist/ListBox/src/ListBoxItem.js +10 -10
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +226 -198
- package/dist/ListBox/src/index.js +11 -12
- package/dist/Select/src/Select.css +4368 -0
- package/dist/Select/src/Select.d.ts +93 -0
- package/dist/Select/src/Select.js +116 -0
- package/dist/Select/src/SelectContext.d.ts +16 -0
- package/dist/Select/src/SelectContext.js +2 -0
- package/dist/Select/src/SelectValue.css +443 -0
- package/dist/Select/src/SelectValue.d.ts +31 -0
- package/dist/Select/src/SelectValue.js +19 -0
- package/dist/Select/src/index.css +4368 -0
- package/dist/Select/src/index.d.ts +13 -0
- package/dist/Select/src/index.js +116 -0
- 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 +5 -5
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +70 -70
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +70 -70
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +175 -175
- package/dist/buttons/src/index.js +10 -10
- 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 +3 -3
- package/dist/checkbox/src/index.css +60 -60
- package/dist/checkbox/src/index.js +6 -6
- package/dist/{chunk-AGRQ7UGN.js → chunk-3573Q6QG.js} +2 -2
- package/dist/{chunk-C7XRB2J6.js → chunk-3ZRCYKIV.js} +2 -2
- package/dist/{chunk-J7BXE7WN.js → chunk-4RMADICI.js} +4 -4
- package/dist/{chunk-4H7PKEMJ.js → chunk-6C5RI4RT.js} +9 -11
- package/dist/{chunk-TM4R5NO7.js → chunk-6H5DRQZH.js} +2 -2
- package/dist/{chunk-4APVXEPA.js → chunk-7L5MCX2A.js} +2 -2
- package/dist/{chunk-SPFANCCV.js → chunk-AZJME7JV.js} +3 -3
- package/dist/{chunk-F47GZGT7.js → chunk-BODCT27J.js} +1 -1
- package/dist/{chunk-CXWMHWSS.js → chunk-BQITTESM.js} +1 -1
- package/dist/{chunk-BN32T6QQ.js → chunk-BRU54ERL.js} +2 -2
- package/dist/{chunk-WYBQCRQB.js → chunk-BTHPJL3A.js} +2 -2
- package/dist/{chunk-MX5BW5VE.js → chunk-C72PRNOP.js} +1 -1
- package/dist/{chunk-55AWCUQF.js → chunk-CAHZCRTK.js} +1 -1
- package/dist/{chunk-RLDQEH6F.js → chunk-CU36N5JQ.js} +4 -4
- package/dist/{chunk-VQC5F6I7.js → chunk-CWX45XWS.js} +3 -3
- package/dist/{chunk-K7DU4YR4.js → chunk-D5PBETXF.js} +1 -1
- package/dist/{chunk-DZKJZSTQ.js → chunk-D7DIUGRI.js} +1 -1
- package/dist/{chunk-YWIDJ55Q.js → chunk-DFVORYEU.js} +2 -2
- package/dist/{chunk-IUFABTFZ.js → chunk-DLZGJBL7.js} +1 -1
- package/dist/{chunk-6WKRP4MN.js → chunk-DXEWBV4C.js} +2 -2
- package/dist/chunk-EHXOXTDN.js +29 -0
- package/dist/{chunk-J6YYPRGY.js → chunk-FOXOPL2E.js} +5 -5
- package/dist/{chunk-XI3BX2TP.js → chunk-GRJ3VKHY.js} +5 -5
- package/dist/{chunk-XUCH26RT.js → chunk-HIDHDS2L.js} +2 -2
- package/dist/{chunk-CSE22YXO.js → chunk-JIRLWUDP.js} +3 -3
- package/dist/{chunk-THUFFPGX.js → chunk-JQMXGSAE.js} +1 -1
- package/dist/{chunk-QGC3OX7W.js → chunk-LFN43ROH.js} +2 -2
- package/dist/{chunk-ZEXXNE5U.js → chunk-LYPR2YMY.js} +5 -5
- package/dist/{chunk-RYZNMKWB.js → chunk-O2ZMTKCT.js} +1 -1
- package/dist/{chunk-T7QJEHL7.js → chunk-OLS7K6PO.js} +2 -2
- package/dist/{chunk-LXCCS4SA.js → chunk-QQI3KNHZ.js} +6 -7
- package/dist/{chunk-PUNJWQAN.js → chunk-SCXYAGZI.js} +271 -46
- package/dist/{chunk-462UBJV3.js → chunk-SKEMSZ63.js} +2 -2
- package/dist/{chunk-F4KQUFXI.js → chunk-SSDFINDD.js} +2 -2
- package/dist/chunk-T24MBA34.js +7 -0
- package/dist/{chunk-YXD3IR3T.js → chunk-T37HTUEU.js} +1 -1
- package/dist/{chunk-WQSVNGFJ.js → chunk-T3CLGQI6.js} +1 -1
- package/dist/{chunk-2DPE3H3G.js → chunk-T742LIIS.js} +1 -1
- package/dist/{chunk-F4H76S4H.js → chunk-TFVDF4YH.js} +4 -2
- package/dist/{chunk-MFFXNI66.js → chunk-TOWSC7FO.js} +4 -4
- package/dist/{chunk-ZPPQJKHC.js → chunk-TTY5HDLL.js} +2 -2
- package/dist/chunk-YB7IYQW4.js +118 -0
- package/dist/{chunk-TFELIWJO.js → chunk-ZHOQYYHY.js} +1 -1
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +862 -605
- package/dist/index.d.ts +6 -2
- package/dist/index.js +66 -64
- package/dist/inputs/src/InputGroup.css +14 -16
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +64 -65
- package/dist/inputs/src/NumberField.js +8 -8
- package/dist/inputs/src/PasswordField.css +218 -219
- package/dist/inputs/src/PasswordField.js +10 -10
- package/dist/inputs/src/SearchField.css +224 -225
- package/dist/inputs/src/SearchField.js +12 -12
- package/dist/inputs/src/TextArea.css +58 -59
- package/dist/inputs/src/TextArea.js +9 -9
- package/dist/inputs/src/TextField.css +219 -220
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +271 -268
- package/dist/inputs/src/index.js +18 -18
- package/dist/overlays/Popover/src/Popover.css +862 -605
- package/dist/overlays/Popover/src/Popover.d.ts +26 -3
- package/dist/overlays/Popover/src/Popover.js +66 -64
- package/dist/overlays/Popover/src/PopoverContext.d.ts +3 -0
- package/dist/overlays/Popover/src/index.css +862 -605
- package/dist/overlays/Popover/src/index.d.ts +4 -1
- package/dist/overlays/Popover/src/index.js +66 -64
- 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 +2 -2
- package/dist/radio/src/RadioGroup.css +60 -60
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +60 -60
- package/dist/radio/src/index.js +6 -6
- 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 +2 -2
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +4 -4
- package/dist/tag/src/Tag.css +301 -301
- package/dist/tag/src/Tag.js +6 -6
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +2 -2
- package/dist/tag/src/index.css +314 -314
- package/dist/tag/src/index.js +9 -9
- 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 +2 -2
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.d.ts +1 -0
- package/dist/utils/src/index.js +3 -2
- package/dist/utils/src/useIsOverflow.d.ts +5 -0
- package/dist/utils/src/useIsOverflow.js +2 -0
- package/package.json +6 -6
- package/dist/ListBox/src/useLoadOnScroll.d.ts +0 -16
- package/dist/ListBox/src/useLoadOnScroll.js +0 -2
- package/dist/chunk-JTNMFPM4.js +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-JQMXGSAE.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,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-D5PBETXF.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___i9yn3", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___zmOVR" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
3
|
-
import { useLocalizedString } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-D7DIUGRI.js';
|
|
3
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import { useContextProps } from 'react-aria-components';
|
|
@@ -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___SbFVm", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___Cb3CN" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -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___ACGld" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
13
|
function IconList(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-ZHOQYYHY.js';
|
|
3
|
+
import { _EmbeddedButton } from './chunk-D7DIUGRI.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.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___thQxm", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___aWRUj", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___-GInu", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___sETiV", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___1qMsk", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___148Z6" };
|
|
22
22
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
23
23
|
function PasswordField(props, ref) {
|
|
24
24
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { _InputGroup } from './chunk-ZHOQYYHY.js';
|
|
1
2
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
2
|
-
import {
|
|
3
|
-
import { _ClearButton } from './chunk-WYBQCRQB.js';
|
|
3
|
+
import { _ClearButton } from './chunk-BTHPJL3A.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___XTMBu", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___vrM5S", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___vq1vb", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___IL75f", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___lG0Ig", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___FWBj0", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___USGKz", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___wN32w", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___baj2F" };
|
|
21
21
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
22
22
|
function SearchField(props, ref) {
|
|
23
23
|
var _a;
|
|
@@ -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___TrcWf", "hop-Text--xs": "Text-module__hop-Text--xs___rF5yE", "hop-Text--sm": "Text-module__hop-Text--sm___tPgW7", "hop-Text--md": "Text-module__hop-Text--md___g9Wf2", "hop-Text--lg": "Text-module__hop-Text--lg___gXea2", "hop-Text--xl": "Text-module__hop-Text--xl___iGie8", "hop-Text--2xl": "Text-module__hop-Text--2xl___p5vcB", "hop-Text--inherit": "Text-module__hop-Text--inherit___Jg8ZC" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -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___1GbQx", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___FCTYh", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___D0xsi", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___Zm-js", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___WBkWw", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___-hN3z", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___l6LUR", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___cRFs6", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___IpUMs", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___OljFH", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___esb4r", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___hqADK", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___aZ9UG", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___hBLgP", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___dkgz3", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___-XQ2i" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TagListContext } from './chunk-XLKYXKWE.js';
|
|
1
2
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
3
|
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
3
|
-
import { TagListContext } from './chunk-XLKYXKWE.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
6
6
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
@@ -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___1JF88", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___ktkn2", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___KfOWe", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___biZ4y", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___qcq0h" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Divider.module.css#css-module
|
|
10
|
-
var Divider_module_default = { "hop-Divider": "Divider-module__hop-
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___ZVlCI", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___n1uBJ" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-C72PRNOP.js';
|
|
2
2
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
3
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -9,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Badge.module.css#css-module
|
|
12
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
12
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___tJTtf", "hop-Badge--primary": "Badge-module__hop-Badge--primary___3WZ9y", "hop-Badge--secondary": "Badge-module__hop-Badge--secondary___OpnYy" };
|
|
13
13
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
14
14
|
function Badge(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// src/utils/src/useIsOverflow.ts
|
|
5
|
+
var useIsOverflow = (ref, callback) => {
|
|
6
|
+
const [isOverflow, setIsOverflow] = useState(false);
|
|
7
|
+
useIsomorphicLayoutEffect(() => {
|
|
8
|
+
if (!ref || !(ref == null ? void 0 : ref.current)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const { current } = ref;
|
|
12
|
+
const trigger = () => {
|
|
13
|
+
const hasOverflow = current.scrollHeight > current.clientHeight || current.scrollWidth > current.clientWidth;
|
|
14
|
+
setIsOverflow(hasOverflow);
|
|
15
|
+
if (callback) {
|
|
16
|
+
callback(hasOverflow);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
if (current) {
|
|
20
|
+
if ("ResizeObserver" in window) {
|
|
21
|
+
new ResizeObserver(trigger).observe(current);
|
|
22
|
+
}
|
|
23
|
+
trigger();
|
|
24
|
+
}
|
|
25
|
+
}, [callback, ref, ref == null ? void 0 : ref.current]);
|
|
26
|
+
return isOverflow;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { useIsOverflow };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
|
-
import { _ClearButton } from './chunk-
|
|
3
|
-
import { _Spinner } from './chunk-
|
|
4
|
-
import { useLocalizedString } from './chunk-
|
|
2
|
+
import { _ClearButton } from './chunk-BTHPJL3A.js';
|
|
3
|
+
import { _Spinner } from './chunk-3573Q6QG.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
5
5
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
8
8
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
9
|
-
import { _Text } from './chunk-
|
|
9
|
+
import { _Text } from './chunk-D5PBETXF.js';
|
|
10
10
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
11
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
12
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, composeRenderProps, Tag as Tag$1 } from 'react-aria-co
|
|
|
19
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Tag.module.css#css-module
|
|
22
|
-
var Tag_module_default = { "hop-Tag": "Tag-module__hop-
|
|
22
|
+
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___KGnAq", "hop-Tag--sm": "Tag-module__hop-Tag--sm___e6uUD", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___N4NWZ", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___bw0F4", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___8sp7f", "hop-Tag--md": "Tag-module__hop-Tag--md___1SLjD", "hop-Tag--lg": "Tag-module__hop-Tag--lg___h-7c-", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___-Ebyx", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___v1Xes", "hop-Tag--progress": "Tag-module__hop-Tag--progress___MqG2E", "hop-Tag--positive": "Tag-module__hop-Tag--positive___HTRyK", "hop-Tag--caution": "Tag-module__hop-Tag--caution___zWO7H", "hop-Tag--negative": "Tag-module__hop-Tag--negative___ir4C0", "hop-Tag--option1": "Tag-module__hop-Tag--option1___2wfCi", "hop-Tag--option2": "Tag-module__hop-Tag--option2___yrzab", "hop-Tag--option3": "Tag-module__hop-Tag--option3___GrKyt", "hop-Tag--option4": "Tag-module__hop-Tag--option4___QNrtm", "hop-Tag--option5": "Tag-module__hop-Tag--option5___aiY5h", "hop-Tag--option6": "Tag-module__hop-Tag--option6___a6LqR", "hop-Tag__icon": "Tag-module__hop-Tag__icon___Ry8kN", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___lkO5j", "hop-Tag__text": "Tag-module__hop-Tag__text___wdgyp", "hop-Tag__badge": "Tag-module__hop-Tag__badge___qJRsU" };
|
|
23
23
|
var GlobalTagCssSelector = "hop-Tag";
|
|
24
24
|
var TagToTextSizeAdapter = {
|
|
25
25
|
sm: "xs",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
1
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
2
|
+
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
3
3
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
4
|
-
import { _InputGroup } from './chunk-
|
|
4
|
+
import { _InputGroup } from './chunk-ZHOQYYHY.js';
|
|
5
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { useLocalizedString } from './chunk-
|
|
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-D5PBETXF.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___J0kzu", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___l8sl5", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___8erAW", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___CrM8H", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___P-hh6", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___4XbjQ", "hop-TextArea__char-count": "TextArea-module__hop-TextArea__char-count___KoGsg", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___uMu4X", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___Y5jyT" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
2
|
-
import { useLocalizedString } from './chunk-
|
|
2
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -8,7 +8,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./Label.module.css#css-module
|
|
11
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
11
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___mvHHn", "hop-Label__indicator": "Label-module__hop-Label__indicator___eN8aZ" };
|
|
12
12
|
var GlobalLabelCssSelector = "hop-Label";
|
|
13
13
|
function Label(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
1
2
|
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
2
3
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
3
|
-
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
4
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
4
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
5
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
@@ -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___Q0dnE", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___xETdz", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___x1qGa", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___Ss8IQ", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___Th6rN", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___KbICS", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___gdKoC", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___K7vVY", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___Ra9RG" };
|
|
18
18
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
19
|
function CheckboxGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -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___1OlI2", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___XGaUz", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___-Olod", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___FlqqG", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___zXLMo", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___sYtIR", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___tNx7t", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___lycqV" };
|
|
13
13
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
14
|
var AvatarToIconSizeAdapter = {
|
|
15
15
|
xs: "md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
1
|
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
2
|
+
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
4
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -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___8-YvL", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___YL31L", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___tmG-f", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___-Hhcq", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___syGui" };
|
|
15
15
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
16
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-ZHOQYYHY.js';
|
|
3
|
+
import { _ClearButton } from './chunk-BTHPJL3A.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
6
6
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.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-D5PBETXF.js';
|
|
11
11
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
12
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
13
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -22,7 +22,7 @@ import { useContextProps, composeRenderProps, Input, TextField as TextField$1 }
|
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
|
|
24
24
|
// css-module:./TextField.module.css#css-module
|
|
25
|
-
var TextField_module_default = { "hop-TextField": "TextField-module__hop-
|
|
25
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___RJoLH", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___Hm8BC", "hop-TextField__Label": "TextField-module__hop-TextField__Label___2WysA", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___BNLea", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___hKpqa", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___TjS1F", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___F5toa" };
|
|
26
26
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
27
27
|
function TextField(props, ref) {
|
|
28
28
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-JQMXGSAE.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';
|
|
@@ -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-D5PBETXF.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___FyPRg", "hop-Checkbox--focused": "Checkbox-module__hop-Checkbox--focused___i2l8S", "hop-Checkbox--hovered": "Checkbox-module__hop-Checkbox--hovered___RUE8m", "hop-Checkbox--pressed": "Checkbox-module__hop-Checkbox--pressed___2Prja", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___DgkQg", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___8uKCT", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___yslf0", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___uo0bB", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___FPnJ8", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___PCbF6", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___pdshj" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
|
-
import { useLoadOnScroll } from './chunk-JTNMFPM4.js';
|
|
3
2
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
6
|
-
import { useLocalizedString } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-6C5RI4RT.js';
|
|
5
|
+
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
9
8
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
10
9
|
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
11
|
-
import { _Text } from './chunk-
|
|
10
|
+
import { _Text } from './chunk-D5PBETXF.js';
|
|
12
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
13
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
14
|
+
import { useLoadMore } from '@react-aria/utils';
|
|
15
15
|
import clsx from 'clsx';
|
|
16
16
|
import { forwardRef } from 'react';
|
|
17
17
|
import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection } from 'react-aria-components';
|
|
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___FMNx2", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___GbXKG", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___BDi3P", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___mh8wf", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___zF1td", "hop-ListBox__divider": "ListBox-module__hop-ListBox__divider___RLZsm" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -75,7 +75,7 @@ function ListBox(props, ref) {
|
|
|
75
75
|
...prev
|
|
76
76
|
};
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
useLoadMore({ isLoading, onLoadMore }, ref);
|
|
79
79
|
const renderChildren = () => {
|
|
80
80
|
if (props.items) {
|
|
81
81
|
return /* @__PURE__ */ jsx(Collection, { items: props.items, children: (item) => isFunction(children) ? children(item) : children });
|
|
@@ -122,7 +122,6 @@ function ListBox(props, ref) {
|
|
|
122
122
|
renderEmptyState: handleRenderEmptyState,
|
|
123
123
|
selectionMode,
|
|
124
124
|
style,
|
|
125
|
-
onScroll,
|
|
126
125
|
"data-loading": isLoading,
|
|
127
126
|
shouldSelectOnPressUp: true,
|
|
128
127
|
children: [
|