@hopper-ui/components 1.0.5 → 1.0.7
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/README.md +3 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +4 -4
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +7 -7
- package/dist/Avatar/src/AvatarContext.js +1 -1
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +4 -4
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImageContext.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +9 -9
- package/dist/Avatar/src/useImageFallback.js +1 -1
- package/dist/{badge → Badge}/src/Badge.css +11 -11
- package/dist/{badge → Badge}/src/Badge.d.ts +1 -1
- package/dist/Badge/src/Badge.js +7 -0
- package/dist/Badge/src/BadgeContext.js +2 -0
- package/dist/{badge → Badge}/src/index.css +11 -11
- package/dist/Badge/src/index.js +7 -0
- package/dist/{chip → Chip}/src/Chip.css +34 -34
- package/dist/{chip → Chip}/src/Chip.js +6 -6
- package/dist/Chip/src/ChipContext.js +2 -0
- package/dist/{chip → Chip}/src/index.css +34 -34
- package/dist/{chip → Chip}/src/index.js +6 -6
- package/dist/Divider/src/Divider.css +32 -0
- package/dist/Divider/src/Divider.d.ts +15 -0
- package/dist/Divider/src/Divider.js +4 -0
- package/dist/Divider/src/DividerContext.d.ts +8 -0
- package/dist/Divider/src/DividerContext.js +2 -0
- package/dist/Divider/src/index.css +32 -0
- package/dist/Divider/src/index.d.ts +5 -0
- package/dist/Divider/src/index.js +4 -0
- package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.js +6 -6
- package/dist/ErrorMessage/src/ErrorMessageContext.js +2 -0
- package/dist/{errorMessage → ErrorMessage}/src/index.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/index.js +6 -6
- package/dist/Header/src/Header.d.ts +17 -0
- package/dist/Header/src/Header.js +3 -0
- package/dist/Header/src/HeaderContext.d.ts +10 -0
- package/dist/Header/src/HeaderContext.js +2 -0
- package/dist/Header/src/index.d.ts +7 -0
- package/dist/Header/src/index.js +3 -0
- package/dist/{helperMessage → HelperMessage}/src/HelperMessage.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/HelperMessage.js +6 -6
- package/dist/HelperMessage/src/HelperMessageContext.js +2 -0
- package/dist/{helperMessage → HelperMessage}/src/index.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/index.js +6 -6
- package/dist/HopperProvider/src/HopperProvider.d.ts +1 -1
- package/dist/HopperProvider/src/HopperProvider.js +2 -2
- package/dist/HopperProvider/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- package/dist/IconList/src/IconListContext.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +2 -2
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +7 -7
- package/dist/Link/src/LinkContext.js +1 -1
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +1434 -0
- package/dist/ListBox/src/ListBox.d.ts +48 -0
- package/dist/ListBox/src/ListBox.js +34 -0
- package/dist/ListBox/src/ListBoxContext.d.ts +10 -0
- package/dist/ListBox/src/ListBoxContext.js +2 -0
- package/dist/ListBox/src/ListBoxItem.css +1297 -0
- package/dist/ListBox/src/ListBoxItem.d.ts +39 -0
- package/dist/ListBox/src/ListBoxItem.js +27 -0
- package/dist/ListBox/src/ListBoxItemContext.d.ts +9 -0
- package/dist/ListBox/src/ListBoxItemContext.js +2 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.css +56 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +23 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.js +4 -0
- package/dist/ListBox/src/ListBoxItemSkeletonContext.d.ts +10 -0
- package/dist/ListBox/src/ListBoxItemSkeletonContext.js +2 -0
- package/dist/ListBox/src/index.css +1434 -0
- package/dist/ListBox/src/index.d.ts +8 -0
- package/dist/ListBox/src/index.js +34 -0
- package/dist/ListBox/src/useLoadOnScroll.d.ts +16 -0
- package/dist/ListBox/src/useLoadOnScroll.js +2 -0
- package/dist/Section/src/Section.d.ts +19 -0
- package/dist/Section/src/Section.js +3 -0
- package/dist/Section/src/SectionContext.d.ts +9 -0
- package/dist/Section/src/SectionContext.js +2 -0
- package/dist/Section/src/index.d.ts +6 -0
- package/dist/Section/src/index.js +3 -0
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +4 -4
- package/dist/Spinner/src/SpinnerContext.js +1 -1
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +4 -4
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.js +12 -12
- package/dist/buttons/src/ButtonContext.js +1 -1
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +4 -4
- package/dist/buttons/src/ButtonGroupContext.js +1 -1
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +5 -5
- package/dist/buttons/src/ClearButtonContext.js +1 -1
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +3 -3
- package/dist/buttons/src/EmbeddedButtonContext.js +1 -1
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +16 -16
- package/dist/checkbox/src/Checkbox.css +79 -94
- package/dist/checkbox/src/Checkbox.d.ts +3 -1
- package/dist/checkbox/src/Checkbox.js +6 -6
- package/dist/checkbox/src/CheckboxContext.d.ts +2 -0
- package/dist/checkbox/src/CheckboxContext.js +1 -1
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +3 -3
- package/dist/checkbox/src/CheckboxFieldContext.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +116 -131
- package/dist/checkbox/src/CheckboxGroup.js +6 -6
- package/dist/checkbox/src/CheckboxGroupContext.js +1 -1
- package/dist/checkbox/src/CheckboxList.js +1 -1
- package/dist/checkbox/src/CheckboxListContext.js +1 -1
- package/dist/checkbox/src/index.css +116 -131
- package/dist/checkbox/src/index.js +12 -12
- package/dist/{chunk-GELM73MQ.js → chunk-2NJ3RDMJ.js} +12 -6
- package/dist/chunk-3LGP5T4C.js +625 -0
- package/dist/{chunk-W2SKBBWE.js → chunk-3WUDQLLR.js} +5 -5
- package/dist/{chunk-F7S2I43Y.js → chunk-4TJUYXYN.js} +2 -2
- package/dist/{chunk-22YUFCHD.js → chunk-4V75RYJN.js} +3 -3
- package/dist/{chunk-KOA2CREJ.js → chunk-5CIADHZR.js} +5 -5
- package/dist/chunk-5H5AZJPQ.js +7 -0
- package/dist/{chunk-WTKIUAHI.js → chunk-632B5YBQ.js} +1 -1
- package/dist/{chunk-WFPCHFJI.js → chunk-666H6UTL.js} +2 -2
- package/dist/chunk-7JOGKC3W.js +7 -0
- package/dist/chunk-AE24HPDG.js +49 -0
- package/dist/{chunk-UOBWYTW7.js → chunk-CK5HMGDC.js} +11 -11
- package/dist/{chunk-5F5CWOM4.js → chunk-COBPJHIY.js} +1 -1
- package/dist/{chunk-ZSFJVMJN.js → chunk-CQDLZ42T.js} +1 -1
- package/dist/{chunk-THCG3QCD.js → chunk-CXIMLIUB.js} +3 -3
- package/dist/chunk-DESANYPD.js +142 -0
- package/dist/{chunk-7Q7VIED2.js → chunk-E7Y25WJE.js} +3 -3
- package/dist/{chunk-3IEED7AY.js → chunk-EBXHYPDU.js} +1 -1
- package/dist/{chunk-ACVMW6YD.js → chunk-FAE27DLF.js} +1 -1
- package/dist/{chunk-TM6742MU.js → chunk-FMSIW5AX.js} +3 -3
- package/dist/chunk-FYIHMKHI.js +7 -0
- package/dist/{chunk-P7JRKXBD.js → chunk-HVUX7ZQ3.js} +2 -2
- package/dist/{chunk-ESVVLTEN.js → chunk-HZKFQ33E.js} +1 -1
- package/dist/chunk-I4VPBQI7.js +7 -0
- package/dist/{chunk-6WWYES56.js → chunk-IUQNDY3E.js} +5 -5
- package/dist/{chunk-2P3A4VVY.js → chunk-JSBRDJBE.js} +1 -6
- package/dist/chunk-JTNMFPM4.js +41 -0
- package/dist/chunk-L5A2UTQV.js +43 -0
- package/dist/{chunk-Z33QZKRG.js → chunk-LIUW56HE.js} +1 -1
- package/dist/{chunk-WNVTTHBK.js → chunk-LM4HMPSD.js} +6 -5
- package/dist/{chunk-ANVMQBBG.js → chunk-NMKBUGSO.js} +12 -1
- package/dist/{chunk-BD53A2LL.js → chunk-NQOLP5NY.js} +12 -6
- package/dist/chunk-O5PTD6IN.js +41 -0
- package/dist/{chunk-LUAIMTPE.js → chunk-OKAYIZ45.js} +7 -7
- package/dist/chunk-OKZYR4RF.js +7 -0
- package/dist/{chunk-CP4AWOFU.js → chunk-QACERXDV.js} +2 -2
- package/dist/{chunk-FYDLV5BM.js → chunk-R2UVMOIP.js} +1 -1
- package/dist/chunk-RW4GDPRX.js +52 -0
- package/dist/{chunk-OPFRM3JC.js → chunk-SHVSB6MD.js} +4 -4
- package/dist/{chunk-KQPY2D3P.js → chunk-SSCPXYN6.js} +5 -5
- package/dist/chunk-SXPMPVDJ.js +250 -0
- package/dist/chunk-U4NXU44C.js +118 -0
- package/dist/chunk-UIEP5BA5.js +7 -0
- package/dist/{chunk-KOJGCQ3F.js → chunk-UUUU6SUW.js} +4 -4
- package/dist/chunk-W2ZCHVKP.js +119 -0
- package/dist/{chunk-3OWQHIJ6.js → chunk-WSNJNUUA.js} +1 -1
- package/dist/{chunk-IIZECZAH.js → chunk-WXJ3U2DV.js} +3 -3
- package/dist/{chunk-UYVKDU2W.js → chunk-XC7OT325.js} +3 -3
- package/dist/{chunk-BVGKXCQH.js → chunk-XVKZ3Q3B.js} +2 -2
- package/dist/chunk-Y2POLIXK.js +7 -0
- package/dist/{chunk-H6CDFWVR.js → chunk-YEYNRBMQ.js} +7 -3
- package/dist/{chunk-T6VFQSII.js → chunk-YTPFSLHU.js} +5 -5
- package/dist/{chunk-GWEUWPLT.js → chunk-YZRL7TXT.js} +2 -2
- package/dist/chunk-ZMDHYGEP.js +57 -0
- package/dist/i18n/src/index.js +2 -2
- package/dist/i18n/src/useLocalizedString.js +2 -2
- package/dist/index.css +3297 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +107 -0
- package/dist/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +3 -3
- package/dist/inputs/src/InputGroupContext.js +1 -1
- package/dist/inputs/src/PasswordField.css +202 -1793
- package/dist/inputs/src/PasswordField.js +17 -188
- package/dist/inputs/src/PasswordFieldContext.js +1 -1
- package/dist/inputs/src/SearchField.css +208 -1799
- package/dist/inputs/src/SearchField.js +18 -187
- package/dist/inputs/src/SearchFieldContext.js +1 -1
- package/dist/inputs/src/TextField.css +203 -1794
- package/dist/inputs/src/TextField.js +16 -77
- package/dist/inputs/src/TextFieldContext.js +1 -1
- package/dist/inputs/src/index.css +292 -1794
- package/dist/inputs/src/index.d.ts +4 -0
- package/dist/inputs/src/index.js +20 -77
- package/dist/layout/src/Content.js +1 -1
- package/dist/layout/src/ContentContext.js +1 -1
- package/dist/layout/src/Flex.js +1 -1
- package/dist/layout/src/Footer.js +1 -1
- package/dist/layout/src/FooterContext.js +1 -1
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/Inline.js +1 -1
- package/dist/layout/src/Stack.js +1 -1
- package/dist/layout/src/grid-helpers.js +1 -1
- package/dist/overlays/Popover/src/Popover.css +1211 -555
- package/dist/overlays/Popover/src/Popover.d.ts +5 -6
- package/dist/overlays/Popover/src/Popover.js +84 -61
- package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -2
- package/dist/overlays/Popover/src/PopoverContext.js +1 -1
- package/dist/overlays/Popover/src/PopoverTrigger.d.ts +8 -0
- package/dist/overlays/Popover/src/PopoverTrigger.js +2 -0
- package/dist/overlays/Popover/src/index.css +1211 -555
- package/dist/overlays/Popover/src/index.d.ts +3 -2
- package/dist/overlays/Popover/src/index.js +84 -61
- package/dist/radio/src/Radio.css +67 -79
- package/dist/radio/src/Radio.d.ts +3 -1
- package/dist/radio/src/Radio.js +6 -6
- package/dist/radio/src/RadioContext.d.ts +2 -0
- package/dist/radio/src/RadioContext.js +1 -1
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +4 -4
- package/dist/radio/src/RadioFieldContext.js +1 -1
- package/dist/radio/src/RadioGroup.css +104 -116
- package/dist/radio/src/RadioGroup.js +6 -6
- package/dist/radio/src/RadioGroupContext.js +1 -1
- package/dist/radio/src/RadioList.js +1 -1
- package/dist/radio/src/RadioListContext.js +1 -1
- package/dist/radio/src/index.css +104 -116
- package/dist/radio/src/index.js +11 -11
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +6 -6
- package/dist/switch/src/SwitchContext.js +1 -1
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +4 -4
- package/dist/switch/src/SwitchFieldContext.js +1 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +8 -8
- package/dist/tag/src/Tag.css +1280 -548
- package/dist/tag/src/Tag.js +85 -60
- package/dist/tag/src/TagContext.js +1 -1
- package/dist/tag/src/TagGroup.css +30 -30
- package/dist/tag/src/TagGroup.js +6 -6
- package/dist/tag/src/TagGroupContext.js +1 -1
- package/dist/tag/src/TagList.js +1 -1
- package/dist/tag/src/TagListContext.js +1 -1
- package/dist/tag/src/index.css +1280 -548
- package/dist/tag/src/index.js +85 -60
- package/dist/typography/Heading/src/Heading.css +9 -2490
- package/dist/typography/Heading/src/Heading.js +2 -80
- package/dist/typography/Heading/src/HeadingContext.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -2490
- package/dist/typography/Heading/src/index.js +2 -80
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/LabelContext.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- 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 +2 -2
- package/dist/typography/OverlineText/src/OverlineTextContext.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +2 -2
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +4 -4
- package/dist/typography/Text/src/TextContext.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +4 -4
- package/dist/utils/src/ClearSlots.js +1 -1
- package/dist/utils/src/SlotProvider.js +1 -1
- package/dist/utils/src/assertion.js +1 -1
- package/dist/utils/src/composeClassnameRenderProps.js +1 -1
- package/dist/utils/src/cssModule.js +1 -1
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +4 -4
- package/dist/utils/src/isTextOnlyChildren.js +1 -1
- package/dist/utils/src/types.d.ts +16 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/dist/utils/src/useSlot.js +1 -1
- package/package.json +2 -2
- package/dist/badge/src/Badge.js +0 -6
- package/dist/badge/src/BadgeContext.js +0 -2
- package/dist/badge/src/index.js +0 -6
- package/dist/chip/src/ChipContext.js +0 -2
- package/dist/chunk-NXNV5JDN.js +0 -392
- package/dist/chunk-ZCEVY7LM.js +0 -96
- package/dist/errorMessage/src/ErrorMessageContext.js +0 -2
- package/dist/helperMessage/src/HelperMessageContext.js +0 -2
- /package/dist/{badge → Badge}/src/BadgeContext.d.ts +0 -0
- /package/dist/{badge → Badge}/src/index.d.ts +0 -0
- /package/dist/{chip → Chip}/src/Chip.d.ts +0 -0
- /package/dist/{chip → Chip}/src/ChipContext.d.ts +0 -0
- /package/dist/{chip → Chip}/src/index.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessageContext.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/index.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/HelperMessage.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/HelperMessageContext.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/index.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
2
2
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
4
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
|
-
import {
|
|
5
|
-
import { _Text } from './chunk-7Q7VIED2.js';
|
|
5
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
9
|
import { IconContext } from '@hopper-ui/icons';
|
|
10
10
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
11
|
import { forwardRef } from 'react';
|
|
@@ -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___A7403", "hop-Link--quiet": "Link-module__hop-Link--quiet___ZckQe", "hop-Link--primary": "Link-module__hop-Link--primary___7RcG1", "hop-Link--secondary": "Link-module__hop-Link--secondary___HiMOh", "hop-Link__icon": "Link-module__hop-Link__icon___D-D9r", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___RDI-L", "hop-Link__text": "Link-module__hop-Link__text___Vnxs6", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___pwaHz", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___74vmY" };
|
|
17
17
|
var GlobalLinkCssSelector = "hop-Link";
|
|
18
18
|
var LinkToIconSizeAdapter = {
|
|
19
19
|
inherit: void 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
2
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
4
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { forwardRef } from 'react';
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./CheckboxField.module.css#css-module
|
|
14
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
14
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___lRXrF", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___QyS56", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___FDfFW", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___5z4Zy", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___wUKGl" };
|
|
15
15
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
16
16
|
var CheckboxToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
2
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { useContextProps, Separator } from 'react-aria-components';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
// css-module:./Divider.module.css#css-module
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___7TzJN", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___9DyxE" };
|
|
11
|
+
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
|
+
function Divider(props, ref) {
|
|
13
|
+
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
14
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
15
|
+
const {
|
|
16
|
+
className,
|
|
17
|
+
style,
|
|
18
|
+
orientation,
|
|
19
|
+
...otherProps
|
|
20
|
+
} = ownProps;
|
|
21
|
+
const classNames = clsx(
|
|
22
|
+
GlobalDividerCssSelector,
|
|
23
|
+
cssModule(
|
|
24
|
+
Divider_module_default,
|
|
25
|
+
"hop-Divider",
|
|
26
|
+
orientation
|
|
27
|
+
),
|
|
28
|
+
stylingProps.className,
|
|
29
|
+
className
|
|
30
|
+
);
|
|
31
|
+
const mergedStyles = {
|
|
32
|
+
...stylingProps.style,
|
|
33
|
+
...style
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
|
+
Separator,
|
|
37
|
+
{
|
|
38
|
+
...otherProps,
|
|
39
|
+
ref,
|
|
40
|
+
className: classNames,
|
|
41
|
+
style: mergedStyles,
|
|
42
|
+
orientation
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
var _Divider = forwardRef(Divider);
|
|
47
|
+
_Divider.displayName = "Divider";
|
|
48
|
+
|
|
49
|
+
export { GlobalDividerCssSelector, _Divider };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { _ClearButton } from './chunk-P7JRKXBD.js';
|
|
6
|
-
import { useLocalizedString } from './chunk-H6CDFWVR.js';
|
|
2
|
+
import { _InputGroup } from './chunk-YZRL7TXT.js';
|
|
3
|
+
import { _ClearButton } from './chunk-HVUX7ZQ3.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
7
5
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
8
|
-
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
9
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
10
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
12
11
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
13
|
-
import {
|
|
12
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
14
13
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
15
|
import { IconContext } from '@hopper-ui/icons';
|
|
16
16
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
17
17
|
import { mergeRefs } from '@react-aria/utils';
|
|
@@ -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___LZ2cj", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___mVkPz", "hop-TextField__Label": "TextField-module__hop-TextField__Label___0R9nA", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___mOaIR", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___OWSvz", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___-nvCK", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___J31YD" };
|
|
26
26
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
27
27
|
function TextField(props, ref) {
|
|
28
28
|
var _a;
|
|
@@ -100,7 +100,7 @@ function TextField(props, ref) {
|
|
|
100
100
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
101
101
|
_InputGroup,
|
|
102
102
|
{
|
|
103
|
-
isFluid,
|
|
103
|
+
isFluid: true,
|
|
104
104
|
size,
|
|
105
105
|
className: TextField_module_default["hop-TextField__InputGroup"],
|
|
106
106
|
isDisabled,
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Label.module.css#css-module
|
|
10
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
10
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___1Q95u", "hop-Label--xs": "Label-module__hop-Label--xs___26au1", "hop-Label--sm": "Label-module__hop-Label--sm___yXnaV", "hop-Label--md": "Label-module__hop-Label--md___KkrL-", "hop-Label--lg": "Label-module__hop-Label--lg___t1zeQ", "hop-Label--xl": "Label-module__hop-Label--xl___FWD2K", "hop-Label--2xl": "Label-module__hop-Label--2xl___nw4yX", "hop-Label--inherit": "Label-module__hop-Label--inherit___1xo-7" };
|
|
11
11
|
var GlobalLabelCssSelector = "hop-Label";
|
|
12
12
|
function Label(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
2
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
|
+
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
4
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { forwardRef } from 'react';
|
|
@@ -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___cXB1T", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___6MUUx", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___-JFZO", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___GRPT3", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___qRL1p" };
|
|
15
15
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
16
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
|
+
import { useLoadOnScroll } from './chunk-JTNMFPM4.js';
|
|
3
|
+
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
|
+
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
+
import { _ListBoxItem } from './chunk-SXPMPVDJ.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
7
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
|
+
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
9
|
+
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
10
|
+
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
11
|
+
import { _Text } from './chunk-E7Y25WJE.js';
|
|
12
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
15
|
+
import clsx from 'clsx';
|
|
16
|
+
import { forwardRef } from 'react';
|
|
17
|
+
import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection } from 'react-aria-components';
|
|
18
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
|
+
|
|
20
|
+
// css-module:./ListBox.module.css#css-module
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___QXVwa", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___Bk46B", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___L6k5l", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___n2kTc", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___-2AbX", "hop-ListBox__divider": "ListBox-module__hop-ListBox__divider___nHChF" };
|
|
22
|
+
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
|
+
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
|
+
var ListBoxToTextSizeAdapter = {
|
|
25
|
+
xs: "sm",
|
|
26
|
+
sm: "sm",
|
|
27
|
+
md: "sm",
|
|
28
|
+
lg: "md"
|
|
29
|
+
};
|
|
30
|
+
function ListBox(props, ref) {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
[props, ref] = useContextProps(props, ref, ListBoxContext);
|
|
33
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
34
|
+
const {
|
|
35
|
+
className,
|
|
36
|
+
children,
|
|
37
|
+
disallowEmptySelection: disallowEmptySelectionProp,
|
|
38
|
+
isFluid: isFluidProp,
|
|
39
|
+
isInvalid,
|
|
40
|
+
isLoading,
|
|
41
|
+
onLoadMore,
|
|
42
|
+
renderEmptyState,
|
|
43
|
+
size: sizeProp,
|
|
44
|
+
style: styleProp,
|
|
45
|
+
selectionIndicator = "check",
|
|
46
|
+
selectionMode,
|
|
47
|
+
...otherProps
|
|
48
|
+
} = ownProps;
|
|
49
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
|
|
50
|
+
const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
|
|
51
|
+
const disallowEmptySelection = disallowEmptySelectionProp != null ? disallowEmptySelectionProp : selectionIndicator === "input" && selectionMode === "single";
|
|
52
|
+
const stringFormatter = useLocalizedString();
|
|
53
|
+
const classNames = composeClassnameRenderProps(
|
|
54
|
+
className,
|
|
55
|
+
GlobalListBoxCssSelector,
|
|
56
|
+
cssModule(
|
|
57
|
+
ListBox_module_default,
|
|
58
|
+
"hop-ListBox",
|
|
59
|
+
size,
|
|
60
|
+
isFluid && "fluid"
|
|
61
|
+
),
|
|
62
|
+
stylingProps.className
|
|
63
|
+
);
|
|
64
|
+
const emptyItemClassNames = clsx(
|
|
65
|
+
GlobalListBoxEmptyItemCssSelector,
|
|
66
|
+
cssModule(
|
|
67
|
+
ListBox_module_default,
|
|
68
|
+
"hop-ListBox__empty-item",
|
|
69
|
+
size
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
73
|
+
return {
|
|
74
|
+
...stylingProps.style,
|
|
75
|
+
...prev
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
const onScroll = useLoadOnScroll({ isLoading, onLoadMore }, ref);
|
|
79
|
+
const renderChildren = () => {
|
|
80
|
+
if (props.items) {
|
|
81
|
+
return /* @__PURE__ */ jsx(Collection, { items: props.items, children: (item) => isFunction(children) ? children(item) : children });
|
|
82
|
+
}
|
|
83
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
84
|
+
};
|
|
85
|
+
const handleRenderEmptyState = (renderProps) => {
|
|
86
|
+
let result = null;
|
|
87
|
+
if (renderEmptyState && isFunction(renderEmptyState)) {
|
|
88
|
+
result = renderEmptyState(renderProps);
|
|
89
|
+
if (result) {
|
|
90
|
+
return /* @__PURE__ */ jsx(_Text, { className: emptyItemClassNames, size: ListBoxToTextSizeAdapter[size], children: result });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
SlotProvider,
|
|
97
|
+
{
|
|
98
|
+
values: [
|
|
99
|
+
[HeaderContext, {
|
|
100
|
+
className: ListBox_module_default["hop-ListBox__section-header"]
|
|
101
|
+
}],
|
|
102
|
+
[SectionContext, {
|
|
103
|
+
className: ListBox_module_default["hop-ListBox__section"]
|
|
104
|
+
}],
|
|
105
|
+
[DividerContext, {
|
|
106
|
+
className: ListBox_module_default["hop-ListBox__divider"]
|
|
107
|
+
}],
|
|
108
|
+
[ListBoxItemContext, {
|
|
109
|
+
className: ListBox_module_default["hop-ListBox__item"],
|
|
110
|
+
size,
|
|
111
|
+
selectionIndicator,
|
|
112
|
+
isInvalid
|
|
113
|
+
}]
|
|
114
|
+
],
|
|
115
|
+
children: /* @__PURE__ */ jsxs(
|
|
116
|
+
ListBox$1,
|
|
117
|
+
{
|
|
118
|
+
...otherProps,
|
|
119
|
+
ref,
|
|
120
|
+
className: classNames,
|
|
121
|
+
disallowEmptySelection,
|
|
122
|
+
renderEmptyState: handleRenderEmptyState,
|
|
123
|
+
selectionMode,
|
|
124
|
+
style,
|
|
125
|
+
onScroll,
|
|
126
|
+
"data-loading": isLoading,
|
|
127
|
+
shouldSelectOnPressUp: true,
|
|
128
|
+
children: [
|
|
129
|
+
renderChildren(),
|
|
130
|
+
isLoading && Array.from({ length: 5 }).map((_, index) => {
|
|
131
|
+
return /* @__PURE__ */ jsx(_ListBoxItem, { id: `loadingListItem_${index.toString()}`, isLoading, size, textValue: stringFormatter.format("ListBoxItem.loadingTextValue") }, `loadingListItem_${index.toString()}`);
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
var _ListBox = forwardRef(ListBox);
|
|
140
|
+
_ListBox.displayName = "ListBox";
|
|
141
|
+
|
|
142
|
+
export { GlobalListBoxCssSelector, GlobalListBoxEmptyItemCssSelector, _ListBox };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
2
1
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
3
|
-
import {
|
|
2
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
3
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { forwardRef } from 'react';
|
|
@@ -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___QAKDh", "hop-Text--xs": "Text-module__hop-Text--xs___q7OkS", "hop-Text--sm": "Text-module__hop-Text--sm___5RyDW", "hop-Text--md": "Text-module__hop-Text--md___qmqwg", "hop-Text--lg": "Text-module__hop-Text--lg___BZX0m", "hop-Text--xl": "Text-module__hop-Text--xl___3Zi7y", "hop-Text--2xl": "Text-module__hop-Text--2xl___RbrDM", "hop-Text--inherit": "Text-module__hop-Text--inherit___G5g04" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -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___ENkOl", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___NnNns" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
2
1
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
-
import {
|
|
2
|
+
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
4
3
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import { filterDOMProps } from '@react-aria/utils';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ButtonGroup.module.css#css-module
|
|
13
|
-
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-
|
|
13
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___Puvx-", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___69pSm", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___pbI9w", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___kjLfN", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___-WZys", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___NaHco", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___XuRNe", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___lKp5V" };
|
|
14
14
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
15
15
|
function ButtonGroup(props, ref) {
|
|
16
16
|
var _a, _b, _c, _d, _e;
|
|
@@ -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-4TJUYXYN.js';
|
|
3
|
+
import { useLocalizedString } from './chunk-YEYNRBMQ.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import { useContextProps } from 'react-aria-components';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DialogTrigger } from 'react-aria-components';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/overlays/Popover/src/PopoverTrigger.tsx
|
|
5
|
+
var PopoverTrigger = (props) => /* @__PURE__ */ jsx(DialogTrigger, { ...props, children: props.children });
|
|
6
|
+
|
|
7
|
+
export { PopoverTrigger };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
1
|
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
3
2
|
import { TagListContext } from './chunk-XLKYXKWE.js';
|
|
4
|
-
import {
|
|
5
|
-
import { HelperMessageContext } from './chunk-ESVVLTEN.js';
|
|
3
|
+
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
6
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
7
|
-
import {
|
|
5
|
+
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
6
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
9
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import { forwardRef } from 'react';
|
|
@@ -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___56WQ3", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___f0j9J", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___aSjzB", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___PLqFO", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___DQNXE" };
|
|
17
17
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
18
18
|
function TagGroup(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -7,10 +7,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
9
|
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
10
|
var __copyProps = (to, from, except, desc) => {
|
|
15
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -19,7 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
15
|
}
|
|
20
16
|
return to;
|
|
21
17
|
};
|
|
22
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
18
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
19
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
20
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -29,4 +24,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
24
|
mod
|
|
30
25
|
));
|
|
31
26
|
|
|
32
|
-
export { __commonJS,
|
|
27
|
+
export { __commonJS, __toESM };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
2
|
+
import { useState, useRef, useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
// src/ListBox/src/useLoadOnScroll.ts
|
|
5
|
+
function useLoadOnScroll(props, ref) {
|
|
6
|
+
const { isLoading, onLoadMore, scrollOffset = 5 } = props;
|
|
7
|
+
const [hasLoaded, setHasLoaded] = useState(false);
|
|
8
|
+
const isLoadingRef = useRef(isLoading);
|
|
9
|
+
const prevProps = useRef(props);
|
|
10
|
+
const onScroll = useCallback(() => {
|
|
11
|
+
if (ref.current && !isLoadingRef.current && onLoadMore) {
|
|
12
|
+
const shouldLoadMore = ref.current.scrollHeight - ref.current.scrollTop - ref.current.clientHeight < scrollOffset;
|
|
13
|
+
if (shouldLoadMore) {
|
|
14
|
+
isLoadingRef.current = true;
|
|
15
|
+
onLoadMore();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, [onLoadMore, ref, scrollOffset]);
|
|
19
|
+
const lastContentSize = useRef(0);
|
|
20
|
+
useIsomorphicLayoutEffect(() => {
|
|
21
|
+
var _a;
|
|
22
|
+
const wasLoading = isLoadingRef.current;
|
|
23
|
+
if (props !== prevProps.current) {
|
|
24
|
+
isLoadingRef.current = isLoading;
|
|
25
|
+
prevProps.current = props;
|
|
26
|
+
}
|
|
27
|
+
const shouldLoadMore = !hasLoaded && (ref == null ? void 0 : ref.current) && !isLoadingRef.current && onLoadMore && ref.current.clientHeight === ref.current.scrollHeight && (wasLoading || ref.current.scrollHeight !== lastContentSize.current);
|
|
28
|
+
if (shouldLoadMore) {
|
|
29
|
+
isLoadingRef.current = true;
|
|
30
|
+
onLoadMore == null ? void 0 : onLoadMore();
|
|
31
|
+
setHasLoaded(true);
|
|
32
|
+
}
|
|
33
|
+
lastContentSize.current = ((_a = ref.current) == null ? void 0 : _a.scrollHeight) || 0;
|
|
34
|
+
return () => {
|
|
35
|
+
setHasLoaded(false);
|
|
36
|
+
};
|
|
37
|
+
}, [isLoading, onLoadMore, props, ref]);
|
|
38
|
+
return onScroll;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { useLoadOnScroll };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
2
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { useContextProps, Header as Header$1 } from 'react-aria-components';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var GlobalHeaderCssSelector = "hop-Header";
|
|
9
|
+
function Header(props, ref) {
|
|
10
|
+
[props, ref] = useContextProps(props, ref, HeaderContext);
|
|
11
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
12
|
+
const {
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
style,
|
|
16
|
+
slot,
|
|
17
|
+
...otherProps
|
|
18
|
+
} = ownProps;
|
|
19
|
+
const classNames = clsx(
|
|
20
|
+
GlobalHeaderCssSelector,
|
|
21
|
+
stylingProps.className,
|
|
22
|
+
className
|
|
23
|
+
);
|
|
24
|
+
const mergedStyles = {
|
|
25
|
+
...stylingProps.style,
|
|
26
|
+
...style
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
Header$1,
|
|
30
|
+
{
|
|
31
|
+
...otherProps,
|
|
32
|
+
ref,
|
|
33
|
+
className: classNames,
|
|
34
|
+
style: mergedStyles,
|
|
35
|
+
slot: slot || void 0,
|
|
36
|
+
children
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
var _Header = forwardRef(Header);
|
|
41
|
+
_Header.displayName = "Header";
|
|
42
|
+
|
|
43
|
+
export { GlobalHeaderCssSelector, _Header };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-QACERXDV.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,6 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
2
|
-
import { BadgeContext } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-EBXHYPDU.js';
|
|
2
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
3
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
5
6
|
import clsx from 'clsx';
|
|
@@ -8,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
9
|
import { jsx } from 'react/jsx-runtime';
|
|
9
10
|
|
|
10
11
|
// css-module:./Badge.module.css#css-module
|
|
11
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
12
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___gejg5", "hop-Badge--primary": "Badge-module__hop-Badge--primary___-DIFS", "hop-Badge--secondary": "Badge-module__hop-Badge--secondary___aTpzY" };
|
|
12
13
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
13
14
|
function Badge(props, ref) {
|
|
14
15
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -36,7 +37,7 @@ function Badge(props, ref) {
|
|
|
36
37
|
...stylingProps.style,
|
|
37
38
|
...style
|
|
38
39
|
};
|
|
39
|
-
return /* @__PURE__ */ jsx(
|
|
40
|
+
return /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
40
41
|
_OverlineText,
|
|
41
42
|
{
|
|
42
43
|
...otherProps,
|
|
@@ -48,7 +49,7 @@ function Badge(props, ref) {
|
|
|
48
49
|
"aria-disabled": isDisabled || void 0,
|
|
49
50
|
children
|
|
50
51
|
}
|
|
51
|
-
);
|
|
52
|
+
) });
|
|
52
53
|
}
|
|
53
54
|
var _Badge = forwardRef(Badge);
|
|
54
55
|
_Badge.displayName = "Badge";
|