@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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { StyledComponentProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
+
import { ForwardedRef } from 'react';
|
|
4
|
+
import { ListBoxItemProps as ListBoxItemProps$1 } from 'react-aria-components';
|
|
5
|
+
|
|
6
|
+
declare const GlobalListBoxItemCssSelector = "hop-ListBoxItem";
|
|
7
|
+
type ListBoxItemSize = "xs" | "sm" | "md" | "lg";
|
|
8
|
+
interface ListBoxItemProps<T> extends StyledComponentProps<Omit<ListBoxItemProps$1<T>, "orientation | layout">> {
|
|
9
|
+
/**
|
|
10
|
+
* Whether or not the ListBoxItem is in an invalid state.
|
|
11
|
+
*/
|
|
12
|
+
isInvalid?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the item is loading.
|
|
15
|
+
* */
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The selection indicator to use. Only available if the selection mode is not "none".
|
|
19
|
+
* When set to "input", the selection indicator will be an either a radio or checkbox based on the selection mode.
|
|
20
|
+
* @default "check"
|
|
21
|
+
*/
|
|
22
|
+
selectionIndicator?: "check" | "input";
|
|
23
|
+
/**
|
|
24
|
+
* A ListBoxItem can vary in size.
|
|
25
|
+
* @default "sm"
|
|
26
|
+
*/
|
|
27
|
+
size?: ResponsiveProp<ListBoxItemSize>;
|
|
28
|
+
}
|
|
29
|
+
declare function ListBoxItem<T extends object>(props: ListBoxItemProps<T>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* A ListBoxItem represents an item within a ListBox component.
|
|
32
|
+
*
|
|
33
|
+
* [View Documentation](TODO)
|
|
34
|
+
*/
|
|
35
|
+
declare const _ListBoxItem: <T>(props: ListBoxItemProps<T> & {
|
|
36
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
37
|
+
}) => ReturnType<typeof ListBoxItem>;
|
|
38
|
+
|
|
39
|
+
export { GlobalListBoxItemCssSelector, _ListBoxItem as ListBoxItem, type ListBoxItemProps, type ListBoxItemSize };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { GlobalListBoxItemCssSelector, _ListBoxItem as ListBoxItem } from '../../chunk-SXPMPVDJ.js';
|
|
2
|
+
import '../../chunk-3WUDQLLR.js';
|
|
3
|
+
import '../../chunk-DGLAGYBD.js';
|
|
4
|
+
import '../../chunk-5MBJWRZD.js';
|
|
5
|
+
import '../../chunk-NKHMUPAP.js';
|
|
6
|
+
import '../../chunk-A7TZHALP.js';
|
|
7
|
+
import '../../chunk-NQOLP5NY.js';
|
|
8
|
+
import '../../chunk-FU5CCPLP.js';
|
|
9
|
+
import '../../chunk-2NJ3RDMJ.js';
|
|
10
|
+
import '../../chunk-2EAZPH3M.js';
|
|
11
|
+
import '../../chunk-YEYNRBMQ.js';
|
|
12
|
+
import '../../chunk-QCA3ZR56.js';
|
|
13
|
+
import '../../chunk-65JPI4FL.js';
|
|
14
|
+
import '../../chunk-Y2POLIXK.js';
|
|
15
|
+
import '../../chunk-RW4GDPRX.js';
|
|
16
|
+
import '../../chunk-OKZYR4RF.js';
|
|
17
|
+
import '../../chunk-HZKFQ33E.js';
|
|
18
|
+
import '../../chunk-FAE27DLF.js';
|
|
19
|
+
import '../../chunk-CQDLZ42T.js';
|
|
20
|
+
import '../../chunk-ZWU6DRRZ.js';
|
|
21
|
+
import '../../chunk-DHVVYSLB.js';
|
|
22
|
+
import '../../chunk-E7Y25WJE.js';
|
|
23
|
+
import '../../chunk-X6SER3TZ.js';
|
|
24
|
+
import '../../chunk-HXI3MEEK.js';
|
|
25
|
+
import '../../chunk-M36KANKC.js';
|
|
26
|
+
import '../../chunk-KVDXQMWI.js';
|
|
27
|
+
import '../../chunk-JSBRDJBE.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ContextValue } from 'react-aria-components';
|
|
3
|
+
import { ListBoxItemProps } from './ListBoxItem.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import '@hopper-ui/styled-system';
|
|
6
|
+
|
|
7
|
+
declare const ListBoxItemContext: react.Context<ContextValue<ListBoxItemProps<object>, HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { ListBoxItemContext };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/ListBox/src/ListBoxItemSkeleton.module.css/#css-module-data */
|
|
2
|
+
.ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___j-yVV {
|
|
3
|
+
--hop-ListBoxItemSkeleton-background-color: var(--hop-rock-50);
|
|
4
|
+
--hop-ListBoxItemSkeleton-background-color-dark: var(--hop-rock-75);
|
|
5
|
+
--hop-ListBoxItemSkeleton-border-radius: var(--hop-shape-rounded-md);
|
|
6
|
+
--hop-ListBoxItemSkeleton-animation-duration: 1.4s;
|
|
7
|
+
--hop-ListBoxItemSkeleton-animation-reduced-motion-duration: 3.4s;
|
|
8
|
+
--hop-ListBoxItemSkeleton-linear-gradient:
|
|
9
|
+
linear-gradient(
|
|
10
|
+
|
|
11
|
+
90deg,
|
|
12
|
+
var(--hop-ListBoxItemSkeleton-background-color) 25%,
|
|
13
|
+
var(--hop-ListBoxItemSkeleton-background-color-dark) 37%,
|
|
14
|
+
var(--hop-ListBoxItemSkeleton-background-color-dark) 63%,
|
|
15
|
+
var(--hop-ListBoxItemSkeleton-background-color) 100% );
|
|
16
|
+
--hop-ListBoxItemSkeleton-xs-height: 1.25rem;
|
|
17
|
+
--hop-ListBoxItemSkeleton-sm-height: 1.25rem;
|
|
18
|
+
--hop-ListBoxItemSkeleton-md-height: 1.25rem;
|
|
19
|
+
--hop-ListBoxItemSkeleton-lg-height: 1.5rem;
|
|
20
|
+
--animation-duration: var(--hop-ListBoxItemSkeleton-animation-duration);
|
|
21
|
+
grid-area: label;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
block-size: var(--height);
|
|
24
|
+
background-color: var(--hop-ListBoxItemSkeleton-background-color);
|
|
25
|
+
background-image: var(--hop-ListBoxItemSkeleton-linear-gradient);
|
|
26
|
+
background-size: 400% 100%;
|
|
27
|
+
border-radius: var(--hop-ListBoxItemSkeleton-border-radius);
|
|
28
|
+
animation-name: ListBoxItemSkeleton-module__placeholder-shimmer___-EhAf;
|
|
29
|
+
animation-duration: var(--animation-duration);
|
|
30
|
+
animation-timing-function: ease-in-out;
|
|
31
|
+
animation-fill-mode: forwards;
|
|
32
|
+
animation-iteration-count: infinite;
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
--animation-duration: var(--hop-ListBoxItemSkeleton-animation-reduced-motion-duration);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___vJ3Zw {
|
|
38
|
+
--height: var(--hop-ListBoxItemSkeleton-xs-height);
|
|
39
|
+
}
|
|
40
|
+
.ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___0NFkM {
|
|
41
|
+
--height: var(--hop-ListBoxItemSkeleton-sm-height);
|
|
42
|
+
}
|
|
43
|
+
.ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___Q1wFA {
|
|
44
|
+
--height: var(--hop-ListBoxItemSkeleton-md-height);
|
|
45
|
+
}
|
|
46
|
+
.ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___EOBf9 {
|
|
47
|
+
--height: var(--hop-ListBoxItemSkeleton-lg-height);
|
|
48
|
+
}
|
|
49
|
+
@keyframes ListBoxItemSkeleton-module__placeholder-shimmer___-EhAf {
|
|
50
|
+
0% {
|
|
51
|
+
background-position: 125% 50%;
|
|
52
|
+
}
|
|
53
|
+
100% {
|
|
54
|
+
background-position: -25% 50%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { StyledSystemProps, ResponsiveProp } from '@hopper-ui/styled-system';
|
|
3
|
+
import { BaseComponentProps } from '../../utils/src/types.js';
|
|
4
|
+
import '@react-types/shared';
|
|
5
|
+
import 'react-aria-components';
|
|
6
|
+
|
|
7
|
+
declare const GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
8
|
+
type ListBoxItemSize = "xs" | "sm" | "md" | "lg";
|
|
9
|
+
interface ListBoxItemSkeletonProps extends StyledSystemProps, BaseComponentProps {
|
|
10
|
+
/**
|
|
11
|
+
* A ListBoxItem can vary in size.
|
|
12
|
+
* @default "sm"
|
|
13
|
+
*/
|
|
14
|
+
size?: ResponsiveProp<ListBoxItemSize>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A ListBoxItem represents an item within a ListBox component.
|
|
18
|
+
*
|
|
19
|
+
* [View Documentation](TODO)
|
|
20
|
+
*/
|
|
21
|
+
declare const _ListBoxItemSkeleton: react.ForwardRefExoticComponent<ListBoxItemSkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
|
|
23
|
+
export { GlobalListBoxItemSkeletonCssSelector, type ListBoxItemSize, _ListBoxItemSkeleton as ListBoxItemSkeleton, type ListBoxItemSkeletonProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ContextValue } from 'react-aria-components';
|
|
3
|
+
import { ListBoxItemSkeletonProps } from './ListBoxItemSkeleton.js';
|
|
4
|
+
import '@hopper-ui/styled-system';
|
|
5
|
+
import '../../utils/src/types.js';
|
|
6
|
+
import '@react-types/shared';
|
|
7
|
+
|
|
8
|
+
declare const ListBoxItemSkeletonContext: react.Context<ContextValue<ListBoxItemSkeletonProps, HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export { ListBoxItemSkeletonContext };
|