@hopper-ui/components 1.0.5 → 1.0.6
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/README.md +3 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +3 -3
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +5 -5
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +7 -7
- package/dist/{badge → Badge}/src/Badge.css +11 -11
- package/dist/{badge → Badge}/src/Badge.d.ts +1 -1
- package/dist/{badge → Badge}/src/Badge.js +4 -3
- package/dist/Badge/src/BadgeContext.js +2 -0
- package/dist/{badge → Badge}/src/index.css +11 -11
- package/dist/{badge → Badge}/src/index.js +4 -3
- package/dist/{chip → Chip}/src/Chip.css +34 -34
- package/dist/{chip → Chip}/src/Chip.js +5 -5
- package/dist/Chip/src/ChipContext.js +2 -0
- package/dist/{chip → Chip}/src/index.css +34 -34
- package/dist/{chip → Chip}/src/index.js +5 -5
- 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 +5 -5
- package/dist/ErrorMessage/src/ErrorMessageContext.js +2 -0
- package/dist/{errorMessage → ErrorMessage}/src/index.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/index.js +5 -5
- 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 +5 -5
- package/dist/HelperMessage/src/HelperMessageContext.js +2 -0
- package/dist/{helperMessage → HelperMessage}/src/index.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/index.js +5 -5
- package/dist/HopperProvider/src/HopperProvider.d.ts +1 -1
- package/dist/HopperProvider/src/HopperProvider.js +1 -1
- package/dist/HopperProvider/src/index.js +1 -1
- 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 +6 -6
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +6 -6
- 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 +3 -3
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.js +11 -11
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +3 -3
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +4 -4
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +15 -15
- package/dist/checkbox/src/Checkbox.css +79 -94
- package/dist/checkbox/src/Checkbox.d.ts +3 -1
- package/dist/checkbox/src/Checkbox.js +5 -5
- package/dist/checkbox/src/CheckboxContext.d.ts +2 -0
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +2 -2
- package/dist/checkbox/src/CheckboxGroup.css +116 -131
- package/dist/checkbox/src/CheckboxGroup.js +4 -4
- package/dist/checkbox/src/index.css +116 -131
- package/dist/checkbox/src/index.js +9 -9
- package/dist/{chunk-BD53A2LL.js → chunk-2XUHTPCX.js} +12 -6
- package/dist/{chunk-6WWYES56.js → chunk-37NW34QM.js} +5 -5
- package/dist/{chunk-3OWQHIJ6.js → chunk-3A6TTZAA.js} +1 -1
- package/dist/{chunk-KQPY2D3P.js → chunk-3LH2JHUO.js} +4 -4
- package/dist/{chunk-T6VFQSII.js → chunk-4JAV3FIH.js} +5 -5
- package/dist/chunk-4TXFHYHL.js +52 -0
- package/dist/{chunk-GELM73MQ.js → chunk-53FHDOG7.js} +12 -6
- package/dist/chunk-5H5AZJPQ.js +7 -0
- package/dist/{chunk-WTKIUAHI.js → chunk-632B5YBQ.js} +1 -1
- package/dist/{chunk-WFPCHFJI.js → chunk-6QMIRVLY.js} +2 -2
- package/dist/chunk-7JOGKC3W.js +7 -0
- package/dist/chunk-BC5A7RHI.js +1260 -0
- package/dist/{chunk-TM6742MU.js → chunk-BKC74M6Y.js} +3 -3
- package/dist/{chunk-ZSFJVMJN.js → chunk-CQDLZ42T.js} +1 -1
- package/dist/chunk-E4ALW4MZ.js +250 -0
- package/dist/{chunk-OPFRM3JC.js → chunk-E4WFKXW4.js} +3 -3
- package/dist/{chunk-KOJGCQ3F.js → chunk-F2URSFJA.js} +4 -4
- package/dist/{chunk-ACVMW6YD.js → chunk-FAE27DLF.js} +1 -1
- package/dist/chunk-FYIHMKHI.js +7 -0
- package/dist/{chunk-BVGKXCQH.js → chunk-G242LPQE.js} +2 -2
- package/dist/{chunk-5F5CWOM4.js → chunk-HR25MLRP.js} +1 -1
- package/dist/{chunk-ESVVLTEN.js → chunk-HZKFQ33E.js} +1 -1
- package/dist/chunk-I4VPBQI7.js +7 -0
- package/dist/{chunk-CP4AWOFU.js → chunk-ITQK6JTD.js} +2 -2
- package/dist/{chunk-Z33QZKRG.js → chunk-J33IFG4U.js} +1 -1
- package/dist/chunk-J53HGLCT.js +49 -0
- package/dist/{chunk-W2SKBBWE.js → chunk-JRDN364E.js} +5 -5
- package/dist/chunk-JTNMFPM4.js +41 -0
- package/dist/{chunk-FYDLV5BM.js → chunk-JUMJ6A3K.js} +1 -1
- package/dist/{chunk-3IEED7AY.js → chunk-K4ZGI7DJ.js} +1 -1
- package/dist/chunk-L5A2UTQV.js +43 -0
- package/dist/{chunk-F7S2I43Y.js → chunk-MED2BIDV.js} +2 -2
- package/dist/{chunk-22YUFCHD.js → chunk-MVRI6GLQ.js} +3 -3
- package/dist/{chunk-ANVMQBBG.js → chunk-NMKBUGSO.js} +12 -1
- package/dist/chunk-O5PTD6IN.js +41 -0
- package/dist/{chunk-P7JRKXBD.js → chunk-OHB5QR5P.js} +2 -2
- package/dist/chunk-OKZYR4RF.js +7 -0
- package/dist/{chunk-IIZECZAH.js → chunk-P5CWOV3L.js} +3 -3
- package/dist/{chunk-KOA2CREJ.js → chunk-QBCCF2C2.js} +5 -5
- package/dist/chunk-RA7PM75O.js +142 -0
- package/dist/{chunk-UYVKDU2W.js → chunk-RCX5B3S3.js} +3 -3
- package/dist/{chunk-7Q7VIED2.js → chunk-RG4JKE4N.js} +3 -3
- package/dist/{chunk-WNVTTHBK.js → chunk-SOSHKMNI.js} +6 -5
- package/dist/chunk-UIEP5BA5.js +7 -0
- package/dist/{chunk-GWEUWPLT.js → chunk-V5GOY6TV.js} +2 -2
- package/dist/{chunk-LUAIMTPE.js → chunk-XGKPMLYD.js} +7 -7
- package/dist/{chunk-THCG3QCD.js → chunk-XRC7XE6B.js} +2 -2
- package/dist/chunk-Y2POLIXK.js +7 -0
- package/dist/{chunk-H6CDFWVR.js → chunk-ZOTVZM6F.js} +6 -2
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/PasswordField.css +1176 -591
- package/dist/inputs/src/PasswordField.js +73 -165
- package/dist/inputs/src/SearchField.css +1161 -597
- package/dist/inputs/src/SearchField.js +73 -165
- package/dist/inputs/src/TextField.css +1173 -592
- package/dist/inputs/src/TextField.js +72 -57
- package/dist/inputs/src/index.css +1073 -492
- package/dist/inputs/src/index.d.ts +4 -0
- package/dist/inputs/src/index.js +72 -57
- 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 +73 -55
- package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -2
- 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 +73 -55
- package/dist/radio/src/Radio.css +67 -79
- package/dist/radio/src/Radio.d.ts +3 -1
- package/dist/radio/src/Radio.js +5 -5
- package/dist/radio/src/RadioContext.d.ts +2 -0
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +3 -3
- package/dist/radio/src/RadioGroup.css +104 -116
- package/dist/radio/src/RadioGroup.js +5 -5
- package/dist/radio/src/index.css +104 -116
- package/dist/radio/src/index.js +10 -10
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +5 -5
- 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 +6 -6
- package/dist/tag/src/Tag.css +1280 -548
- package/dist/tag/src/Tag.js +73 -53
- package/dist/tag/src/TagGroup.css +30 -30
- package/dist/tag/src/TagGroup.js +5 -5
- package/dist/tag/src/index.css +1280 -548
- package/dist/tag/src/index.js +73 -53
- package/dist/typography/Heading/src/Heading.css +1204 -472
- package/dist/typography/Heading/src/Heading.js +73 -53
- package/dist/typography/Heading/src/index.css +1204 -472
- package/dist/typography/Heading/src/index.js +73 -53
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +3 -3
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +3 -3
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +3 -3
- package/dist/utils/src/types.d.ts +16 -1
- package/package.json +2 -2
- package/dist/badge/src/BadgeContext.js +0 -2
- package/dist/chip/src/ChipContext.js +0 -2
- package/dist/chunk-LJXTJRSB.js +0 -1
- package/dist/chunk-NXNV5JDN.js +0 -392
- package/dist/chunk-UOBWYTW7.js +0 -156
- 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,48 @@
|
|
|
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 { ListBoxProps as ListBoxProps$1 } from 'react-aria-components';
|
|
5
|
+
import { ListBoxItemSize } from './ListBoxItem.js';
|
|
6
|
+
|
|
7
|
+
declare const GlobalListBoxCssSelector = "hop-ListBox";
|
|
8
|
+
declare const GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
9
|
+
interface ListBoxProps<T> extends StyledComponentProps<Omit<ListBoxProps$1<T>, "orientation | layout">> {
|
|
10
|
+
/**
|
|
11
|
+
* Whether or not the ListBox is 100% of its container's width.
|
|
12
|
+
*/
|
|
13
|
+
isFluid?: ResponsiveProp<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the ListBox is in an invalid state.
|
|
16
|
+
*/
|
|
17
|
+
isInvalid?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether data is currently being loaded.
|
|
20
|
+
* */
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Handler that is called when more items should be loaded, e.g. while scrolling near the bottom.
|
|
24
|
+
* */
|
|
25
|
+
onLoadMore?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* The selection indicator to use. Only available if the selection mode is not "none".
|
|
28
|
+
* When set to "input", the selection indicator will be an either a radio or checkbox based on the selection mode.
|
|
29
|
+
* @default "check"
|
|
30
|
+
*/
|
|
31
|
+
selectionIndicator?: "check" | "input";
|
|
32
|
+
/**
|
|
33
|
+
* A ListBox can vary in size.
|
|
34
|
+
* @default "sm"
|
|
35
|
+
*/
|
|
36
|
+
size?: ResponsiveProp<ListBoxItemSize>;
|
|
37
|
+
}
|
|
38
|
+
declare function ListBox<T extends object>(props: ListBoxProps<T>, ref: ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
/**
|
|
40
|
+
* A listbox is a list of interactive options that appears when users interact with an element or perform a specific action.
|
|
41
|
+
*
|
|
42
|
+
* [View Documentation](TODO)
|
|
43
|
+
*/
|
|
44
|
+
declare const _ListBox: <T>(props: ListBoxProps<T> & {
|
|
45
|
+
ref?: ForwardedRef<HTMLDivElement>;
|
|
46
|
+
}) => ReturnType<typeof ListBox>;
|
|
47
|
+
|
|
48
|
+
export { GlobalListBoxCssSelector, GlobalListBoxEmptyItemCssSelector, _ListBox as ListBox, type ListBoxProps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { GlobalListBoxCssSelector, GlobalListBoxEmptyItemCssSelector, _ListBox as ListBox } from '../../chunk-RA7PM75O.js';
|
|
2
|
+
import '../../chunk-TIPN4VYD.js';
|
|
3
|
+
import '../../chunk-JTNMFPM4.js';
|
|
4
|
+
import '../../chunk-5H5AZJPQ.js';
|
|
5
|
+
import '../../chunk-UIEP5BA5.js';
|
|
6
|
+
import '../../chunk-E4ALW4MZ.js';
|
|
7
|
+
import '../../chunk-JRDN364E.js';
|
|
8
|
+
import '../../chunk-DGLAGYBD.js';
|
|
9
|
+
import '../../chunk-5MBJWRZD.js';
|
|
10
|
+
import '../../chunk-NKHMUPAP.js';
|
|
11
|
+
import '../../chunk-A7TZHALP.js';
|
|
12
|
+
import '../../chunk-2XUHTPCX.js';
|
|
13
|
+
import '../../chunk-FU5CCPLP.js';
|
|
14
|
+
import '../../chunk-53FHDOG7.js';
|
|
15
|
+
import '../../chunk-2EAZPH3M.js';
|
|
16
|
+
import '../../chunk-ZOTVZM6F.js';
|
|
17
|
+
import '../../chunk-QCA3ZR56.js';
|
|
18
|
+
import '../../chunk-Y2POLIXK.js';
|
|
19
|
+
import '../../chunk-4TXFHYHL.js';
|
|
20
|
+
import '../../chunk-OKZYR4RF.js';
|
|
21
|
+
import '../../chunk-65JPI4FL.js';
|
|
22
|
+
import '../../chunk-FAE27DLF.js';
|
|
23
|
+
import '../../chunk-7JOGKC3W.js';
|
|
24
|
+
import '../../chunk-HZKFQ33E.js';
|
|
25
|
+
import '../../chunk-CQDLZ42T.js';
|
|
26
|
+
import '../../chunk-ZWU6DRRZ.js';
|
|
27
|
+
import '../../chunk-DHVVYSLB.js';
|
|
28
|
+
import '../../chunk-FYIHMKHI.js';
|
|
29
|
+
import '../../chunk-RG4JKE4N.js';
|
|
30
|
+
import '../../chunk-X6SER3TZ.js';
|
|
31
|
+
import '../../chunk-HXI3MEEK.js';
|
|
32
|
+
import '../../chunk-M36KANKC.js';
|
|
33
|
+
import '../../chunk-KVDXQMWI.js';
|
|
34
|
+
import '../../chunk-2P3A4VVY.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ContextValue } from 'react-aria-components';
|
|
3
|
+
import { ListBoxProps } from './ListBox.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import '@hopper-ui/styled-system';
|
|
6
|
+
import './ListBoxItem.js';
|
|
7
|
+
|
|
8
|
+
declare const ListBoxContext: react.Context<ContextValue<ListBoxProps<any>, HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export { ListBoxContext };
|