@gamecrafters/base-ui 0.0.7 → 0.0.9
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/build/components/aspect-ratio/AspectRatio.d.ts +1 -4
- package/build/components/aspect-ratio/AspectRatio.types.d.ts +1 -4
- package/build/components/bubble/Bubble.d.ts +10 -0
- package/build/components/bubble/Bubble.types.d.ts +29 -0
- package/build/components/bubble/BubbleContent.d.ts +7 -0
- package/build/components/bubble/BubbleContext.d.ts +2 -0
- package/build/components/bubble/BubbleGroup.d.ts +8 -0
- package/build/components/bubble/BubbleGroupContext.d.ts +2 -0
- package/build/components/bubble/BubbleReactions.d.ts +10 -0
- package/build/components/bubble/index.d.ts +33 -0
- package/build/components/chart/Chart.d.ts +3 -17
- package/build/components/chart/Chart.types.d.ts +107 -51
- package/build/components/chart/ChartContext.d.ts +3 -0
- package/build/components/chart/ChartGradient.d.ts +7 -0
- package/build/components/chart/ChartLegend.d.ts +6 -5
- package/build/components/chart/ChartRadialText.d.ts +7 -0
- package/build/components/chart/ChartTooltip.d.ts +6 -7
- package/build/components/chart/chartPalette.d.ts +13 -0
- package/build/components/chart/index.d.ts +14 -30
- package/build/components/chart/useChart.d.ts +3 -0
- package/build/components/checkbox-card/CheckboxCard.d.ts +14 -0
- package/build/components/checkbox-card/CheckboxCard.types.d.ts +26 -0
- package/build/components/checkbox-card/CheckboxCardContext.d.ts +2 -0
- package/build/components/checkbox-card/CheckboxCardLeadingVisual.d.ts +5 -0
- package/build/components/checkbox-card/index.d.ts +27 -0
- package/build/components/clipboard/Clipboard.d.ts +12 -0
- package/build/components/clipboard/Clipboard.types.d.ts +37 -0
- package/build/components/clipboard/ClipboardContext.d.ts +2 -0
- package/build/components/clipboard/ClipboardIndicator.d.ts +7 -0
- package/build/components/clipboard/ClipboardInput.d.ts +4 -0
- package/build/components/clipboard/ClipboardTrigger.d.ts +8 -0
- package/build/components/clipboard/copyText.d.ts +1 -0
- package/build/components/clipboard/index.d.ts +30 -0
- package/build/components/{upload/Upload.d.ts → file-upload/FileUpload.d.ts} +5 -5
- package/build/components/file-upload/FileUpload.types.d.ts +51 -0
- package/build/components/file-upload/FileUploadContext.d.ts +2 -0
- package/build/components/file-upload/FileUploadDescription.d.ts +5 -0
- package/build/components/{upload/UploadItem.d.ts → file-upload/FileUploadItem.d.ts} +1 -1
- package/build/components/file-upload/FileUploadLabel.d.ts +5 -0
- package/build/components/{upload → file-upload}/files.d.ts +2 -2
- package/build/components/{upload → file-upload}/index.d.ts +14 -14
- package/build/components/flow/Flow.d.ts +12 -0
- package/build/components/flow/Flow.types.d.ts +71 -0
- package/build/components/flow/FlowConnectors.d.ts +18 -0
- package/build/components/flow/FlowContext.d.ts +2 -0
- package/build/components/flow/FlowList.d.ts +5 -0
- package/build/components/flow/FlowNode.d.ts +7 -0
- package/build/components/flow/FlowParallel.d.ts +6 -0
- package/build/components/flow/flowLayout.d.ts +7 -0
- package/build/components/flow/flowPath.d.ts +2 -0
- package/build/components/flow/index.d.ts +31 -0
- package/build/components/hover-card/HoverCard.d.ts +7 -0
- package/build/components/hover-card/HoverCard.types.d.ts +33 -0
- package/build/components/hover-card/HoverCardContent.d.ts +5 -0
- package/build/components/hover-card/HoverCardContext.d.ts +2 -0
- package/build/components/hover-card/HoverCardTrigger.d.ts +15 -0
- package/build/components/hover-card/index.d.ts +12 -0
- package/build/components/index.d.ts +23 -2
- package/build/components/label-group/LabelGroup.d.ts +9 -0
- package/build/components/label-group/LabelGroup.types.d.ts +9 -0
- package/build/components/label-group/index.d.ts +3 -0
- package/build/components/label-group/useClippedChildren.d.ts +8 -0
- package/build/components/list/List.d.ts +10 -0
- package/build/components/list/List.types.d.ts +12 -0
- package/build/components/list/ListItem.d.ts +7 -0
- package/build/components/list/index.d.ts +16 -0
- package/build/components/marquee/Marquee.d.ts +11 -0
- package/build/components/marquee/Marquee.types.d.ts +26 -0
- package/build/components/marquee/index.d.ts +3 -0
- package/build/components/marquee/useMarquee.d.ts +14 -0
- package/build/components/message/Message.d.ts +9 -0
- package/build/components/message/Message.types.d.ts +29 -0
- package/build/components/message/MessageAvatar.d.ts +7 -0
- package/build/components/message/MessageContent.d.ts +7 -0
- package/build/components/message/MessageContext.d.ts +2 -0
- package/build/components/message/MessageFooter.d.ts +7 -0
- package/build/components/message/MessageGroup.d.ts +8 -0
- package/build/components/message/MessageGroupContext.d.ts +2 -0
- package/build/components/message/MessageHeader.d.ts +7 -0
- package/build/components/message/index.d.ts +42 -0
- package/build/components/meter/Meter.d.ts +15 -0
- package/build/components/meter/Meter.types.d.ts +41 -0
- package/build/components/meter/MeterContext.d.ts +2 -0
- package/build/components/meter/MeterIndicator.d.ts +7 -0
- package/build/components/meter/MeterLabel.d.ts +7 -0
- package/build/components/meter/MeterTrack.d.ts +7 -0
- package/build/components/meter/MeterValue.d.ts +6 -0
- package/build/components/meter/index.d.ts +40 -0
- package/build/components/meter/meterReading.d.ts +2 -0
- package/build/components/navigation-list/NavigationList.types.d.ts +53 -0
- package/build/components/navigation-list/NavigationListContext.d.ts +11 -0
- package/build/components/navigation-list/NavigationListGroup.d.ts +7 -0
- package/build/components/{nav-list/NavListGroupExpand.d.ts → navigation-list/NavigationListGroupExpand.d.ts} +3 -3
- package/build/components/navigation-list/NavigationListGroupHeading.d.ts +4 -0
- package/build/components/navigation-list/NavigationListHeading.d.ts +6 -0
- package/build/components/{nav-list/NavListItem.d.ts → navigation-list/NavigationListItem.d.ts} +1 -1
- package/build/components/navigation-list/NavigationListItemWithSubNavigation.d.ts +15 -0
- package/build/components/navigation-list/headingLevel.d.ts +3 -0
- package/build/components/{nav-list → navigation-list}/index.d.ts +15 -15
- package/build/components/navigation-menu/NavigationMenu.d.ts +13 -0
- package/build/components/navigation-menu/NavigationMenu.types.d.ts +90 -0
- package/build/components/navigation-menu/NavigationMenuContent.d.ts +10 -0
- package/build/components/navigation-menu/NavigationMenuContext.d.ts +8 -0
- package/build/components/navigation-menu/NavigationMenuDescription.d.ts +7 -0
- package/build/components/navigation-menu/NavigationMenuDivider.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuGroup.d.ts +7 -0
- package/build/components/navigation-menu/NavigationMenuGroupHeading.d.ts +7 -0
- package/build/components/navigation-menu/NavigationMenuHeading.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuItem.d.ts +7 -0
- package/build/components/navigation-menu/NavigationMenuLeadingVisual.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuLink.d.ts +9 -0
- package/build/components/navigation-menu/NavigationMenuList.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuSubNavigation.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuTrailingVisual.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuTrigger.d.ts +6 -0
- package/build/components/navigation-menu/NavigationMenuVisual.d.ts +2 -0
- package/build/components/navigation-menu/headingLevel.d.ts +3 -0
- package/build/components/navigation-menu/index.d.ts +66 -0
- package/build/components/number-input/NumberInput.d.ts +14 -0
- package/build/components/number-input/NumberInput.types.d.ts +14 -0
- package/build/components/number-input/index.d.ts +3 -0
- package/build/components/number-input/numberValue.d.ts +7 -0
- package/build/components/password-input/PasswordInput.d.ts +11 -0
- package/build/components/password-input/PasswordInput.types.d.ts +10 -0
- package/build/components/password-input/index.d.ts +2 -0
- package/build/components/pin-input/PINInput.d.ts +22 -0
- package/build/components/pin-input/PINInput.types.d.ts +21 -0
- package/build/components/pin-input/index.d.ts +2 -0
- package/build/components/popover/Popover.d.ts +10 -0
- package/build/components/popover/Popover.types.d.ts +25 -0
- package/build/components/popover/PopoverContent.d.ts +14 -0
- package/build/components/popover/PopoverContext.d.ts +2 -0
- package/build/components/popover/index.d.ts +24 -0
- package/build/components/qr-code/QRCode.d.ts +21 -0
- package/build/components/qr-code/QRCode.types.d.ts +35 -0
- package/build/components/qr-code/index.d.ts +2 -0
- package/build/components/radio-card/RadioCard.d.ts +14 -0
- package/build/components/radio-card/RadioCard.types.d.ts +26 -0
- package/build/components/radio-card/RadioCardContext.d.ts +2 -0
- package/build/components/radio-card/RadioCardDescription.d.ts +5 -0
- package/build/components/radio-card/RadioCardLabel.d.ts +5 -0
- package/build/components/radio-card/RadioCardLeadingVisual.d.ts +5 -0
- package/build/components/radio-card/index.d.ts +27 -0
- package/build/components/splitter/Splitter.d.ts +7 -0
- package/build/components/splitter/Splitter.types.d.ts +23 -0
- package/build/components/splitter/SplitterPanel.d.ts +5 -0
- package/build/components/splitter/SplitterResizeTrigger.d.ts +5 -0
- package/build/components/splitter/SplitterResizeTriggerIndicator.d.ts +5 -0
- package/build/components/splitter/SplitterResizeTriggerSeparator.d.ts +5 -0
- package/build/components/splitter/index.d.ts +24 -0
- package/build/components/statistic-card/StatisticCard.d.ts +5 -0
- package/build/components/statistic-card/StatisticCard.types.d.ts +26 -0
- package/build/components/statistic-card/StatisticCardContext.d.ts +2 -0
- package/build/components/statistic-card/StatisticCardDescription.d.ts +5 -0
- package/build/components/statistic-card/StatisticCardLabel.d.ts +5 -0
- package/build/components/statistic-card/StatisticCardTrailingVisual.d.ts +5 -0
- package/build/components/statistic-card/StatisticCardTrend.d.ts +8 -0
- package/build/components/statistic-card/StatisticCardValue.d.ts +5 -0
- package/build/components/statistic-card/index.d.ts +29 -0
- package/build/components/steps/Steps.d.ts +10 -0
- package/build/components/steps/Steps.types.d.ts +31 -0
- package/build/components/steps/StepsBody.d.ts +5 -0
- package/build/components/steps/StepsDescription.d.ts +5 -0
- package/build/components/steps/StepsIndicator.d.ts +5 -0
- package/build/components/steps/StepsItem.d.ts +8 -0
- package/build/components/steps/StepsItemContext.d.ts +2 -0
- package/build/components/steps/StepsTitle.d.ts +5 -0
- package/build/components/steps/index.d.ts +35 -0
- package/build/components/steps/useStepsItem.d.ts +2 -0
- package/build/components/table-of-contents/TableOfContents.d.ts +7 -0
- package/build/components/table-of-contents/TableOfContents.types.d.ts +32 -0
- package/build/components/table-of-contents/TableOfContentsGroup.d.ts +9 -0
- package/build/components/table-of-contents/TableOfContentsItem.d.ts +8 -0
- package/build/components/table-of-contents/TableOfContentsList.d.ts +5 -0
- package/build/components/table-of-contents/TableOfContentsTitle.d.ts +7 -0
- package/build/components/table-of-contents/index.d.ts +32 -0
- package/build/components/table-of-contents/useTableOfContentsActiveId.d.ts +2 -0
- package/build/main.cjs.js +2 -2
- package/build/main.d.ts +1 -1
- package/build/main.esm.js +2 -2
- package/build/providers/direction/Direction.types.d.ts +11 -0
- package/build/providers/direction/DirectionContext.d.ts +3 -0
- package/build/providers/direction/DirectionProvider.d.ts +7 -0
- package/build/providers/direction/index.d.ts +4 -0
- package/build/providers/direction/useDirection.d.ts +2 -0
- package/build/providers/index.d.ts +2 -0
- package/build/styles/main.css +3 -1
- package/package.json +3 -6
- package/build/components/chart/chartScales.d.ts +0 -36
- package/build/components/chart/useChartWidth.d.ts +0 -2
- package/build/components/nav-list/NavList.types.d.ts +0 -53
- package/build/components/nav-list/NavListContext.d.ts +0 -11
- package/build/components/nav-list/NavListGroup.d.ts +0 -7
- package/build/components/nav-list/NavListGroupHeading.d.ts +0 -4
- package/build/components/nav-list/NavListHeading.d.ts +0 -6
- package/build/components/nav-list/NavListItemWithSubNav.d.ts +0 -15
- package/build/components/nav-list/headingLevel.d.ts +0 -3
- package/build/components/upload/Upload.types.d.ts +0 -51
- package/build/components/upload/UploadContext.d.ts +0 -2
- /package/build/components/{upload/UploadDescription.d.ts → checkbox-card/CheckboxCardDescription.d.ts} +0 -0
- /package/build/components/{upload/UploadLabel.d.ts → checkbox-card/CheckboxCardLabel.d.ts} +0 -0
- /package/build/components/{upload/UploadIcon.d.ts → file-upload/FileUploadIcon.d.ts} +0 -0
- /package/build/components/{upload/UploadList.d.ts → file-upload/FileUploadList.d.ts} +0 -0
- /package/build/components/{nav-list/NavList.d.ts → navigation-list/NavigationList.d.ts} +0 -0
- /package/build/components/{nav-list/NavListSubNav.d.ts → navigation-list/NavigationListSubNavigation.d.ts} +0 -0
- /package/build/{theme → providers/theme}/Theme.types.d.ts +0 -0
- /package/build/{theme → providers/theme}/ThemeContext.d.ts +0 -0
- /package/build/{theme → providers/theme}/ThemeProvider.d.ts +0 -0
- /package/build/{theme → providers/theme}/index.d.ts +0 -0
- /package/build/{theme → providers/theme}/useTheme.d.ts +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import ClipboardIndicator from "./ClipboardIndicator";
|
|
2
|
+
import ClipboardInput from "./ClipboardInput";
|
|
3
|
+
import ClipboardTrigger from "./ClipboardTrigger";
|
|
4
|
+
export declare const Clipboard: (<As extends React.ElementType = "div">(props: Omit<import("../../utilities/polymorphic").PolymorphicProps<As, "div", {
|
|
5
|
+
value: string;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
copiedAnnouncement?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>, "onCopy"> & {
|
|
11
|
+
onCopy?: (value: string) => void;
|
|
12
|
+
onCopyError?: (error: unknown) => void;
|
|
13
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
14
|
+
Input: (props: import("./Clipboard.types").ClipboardInputProps & import("react").RefAttributes<any>) => React.ReactNode;
|
|
15
|
+
Trigger: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "type" | "aria-label" | "aria-labelledby"> & {
|
|
16
|
+
variant?: import("..").ButtonVariant;
|
|
17
|
+
size?: import("..").ButtonSize;
|
|
18
|
+
label?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
21
|
+
Indicator: (props: import("react").SVGAttributes<SVGSVGElement> & {
|
|
22
|
+
copyIcon?: React.ElementType;
|
|
23
|
+
copiedIcon?: React.ElementType;
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
export { ClipboardInput, ClipboardTrigger, ClipboardIndicator };
|
|
28
|
+
export { ClipboardContext } from "./ClipboardContext";
|
|
29
|
+
export { copyText } from "./copyText";
|
|
30
|
+
export * from "./Clipboard.types";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { FileUploadSize, FileUploadSource, FileUploadValidationStatus } from "./FileUpload.types";
|
|
3
3
|
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onSelect"> & {
|
|
4
|
-
size?:
|
|
4
|
+
size?: FileUploadSize;
|
|
5
5
|
accept?: string;
|
|
6
6
|
multiple?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
required?: boolean;
|
|
9
9
|
name?: string;
|
|
10
10
|
maxSize?: number;
|
|
11
|
-
validationStatus?:
|
|
12
|
-
onSelect?: (files: File[], source:
|
|
13
|
-
onReject?: (rejections: import("./
|
|
11
|
+
validationStatus?: FileUploadValidationStatus;
|
|
12
|
+
onSelect?: (files: File[], source: FileUploadSource) => void;
|
|
13
|
+
onReject?: (rejections: import("./FileUpload.types").FileUploadRejection[], source: FileUploadSource) => void;
|
|
14
14
|
className?: string;
|
|
15
15
|
} & React.RefAttributes<any>) => React.ReactNode;
|
|
16
16
|
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type FileUploadSize = "small" | "medium" | "large";
|
|
3
|
+
export type FileUploadValidationStatus = "error" | "success";
|
|
4
|
+
export type FileUploadSource = "input" | "drop";
|
|
5
|
+
export type FileUploadRejectionReason = "type" | "size" | "count";
|
|
6
|
+
export type FileUploadRejection = {
|
|
7
|
+
file: File;
|
|
8
|
+
reason: FileUploadRejectionReason;
|
|
9
|
+
};
|
|
10
|
+
export type FileUploadItemStatus = "pending" | "uploading" | "success" | "error";
|
|
11
|
+
export type FileUploadProps = Omit<React.ComponentPropsWithoutRef<"div">, "onSelect"> & {
|
|
12
|
+
size?: FileUploadSize;
|
|
13
|
+
accept?: string;
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
name?: string;
|
|
18
|
+
maxSize?: number;
|
|
19
|
+
validationStatus?: FileUploadValidationStatus;
|
|
20
|
+
onSelect?: (files: File[], source: FileUploadSource) => void;
|
|
21
|
+
onReject?: (rejections: FileUploadRejection[], source: FileUploadSource) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export type FileUploadIconProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
25
|
+
icon?: React.ElementType;
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export type FileUploadLabelProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
export type FileUploadDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
export type FileUploadListProps = React.ComponentPropsWithoutRef<"ul"> & {
|
|
35
|
+
className?: string;
|
|
36
|
+
};
|
|
37
|
+
export type FileUploadItemProps = React.ComponentPropsWithoutRef<"li"> & {
|
|
38
|
+
name: string;
|
|
39
|
+
fileSize?: number;
|
|
40
|
+
status?: FileUploadItemStatus;
|
|
41
|
+
progress?: number;
|
|
42
|
+
description?: React.ReactNode;
|
|
43
|
+
icon?: React.ElementType;
|
|
44
|
+
onRemove?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
45
|
+
removeLabel?: string;
|
|
46
|
+
className?: string;
|
|
47
|
+
};
|
|
48
|
+
export type FileUploadContextValue = {
|
|
49
|
+
labelId?: string;
|
|
50
|
+
descriptionId?: string;
|
|
51
|
+
};
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
declare const _default: (props: Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
3
3
|
name: string;
|
|
4
4
|
fileSize?: number;
|
|
5
|
-
status?: import("./
|
|
5
|
+
status?: import("./FileUpload.types").FileUploadItemStatus;
|
|
6
6
|
progress?: number;
|
|
7
7
|
description?: React.ReactNode;
|
|
8
8
|
icon?: React.ElementType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FileUploadRejection } from "./FileUpload.types";
|
|
2
2
|
export declare const formatFileSize: (bytes: number) => string;
|
|
3
3
|
export declare const isFileAccepted: (file: File, accept?: string) => boolean;
|
|
4
4
|
export type FileTriage = {
|
|
5
5
|
accepted: File[];
|
|
6
|
-
rejected:
|
|
6
|
+
rejected: FileUploadRejection[];
|
|
7
7
|
};
|
|
8
8
|
export type FileTriageOptions = {
|
|
9
9
|
accept?: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
export declare const
|
|
7
|
-
size?: import("./
|
|
1
|
+
import FileUploadDescription from "./FileUploadDescription";
|
|
2
|
+
import FileUploadIcon from "./FileUploadIcon";
|
|
3
|
+
import FileUploadItem from "./FileUploadItem";
|
|
4
|
+
import FileUploadLabel from "./FileUploadLabel";
|
|
5
|
+
import FileUploadList from "./FileUploadList";
|
|
6
|
+
export declare const FileUpload: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onSelect"> & {
|
|
7
|
+
size?: import("./FileUpload.types").FileUploadSize;
|
|
8
8
|
accept?: string;
|
|
9
9
|
multiple?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
name?: string;
|
|
13
13
|
maxSize?: number;
|
|
14
|
-
validationStatus?: import("./
|
|
15
|
-
onSelect?: (files: File[], source: import("./
|
|
16
|
-
onReject?: (rejections: import("./
|
|
14
|
+
validationStatus?: import("./FileUpload.types").FileUploadValidationStatus;
|
|
15
|
+
onSelect?: (files: File[], source: import("./FileUpload.types").FileUploadSource) => void;
|
|
16
|
+
onReject?: (rejections: import("./FileUpload.types").FileUploadRejection[], source: import("./FileUpload.types").FileUploadSource) => void;
|
|
17
17
|
className?: string;
|
|
18
18
|
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
19
19
|
Icon: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
@@ -32,7 +32,7 @@ export declare const Upload: ((props: Omit<Omit<import("react").DetailedHTMLProp
|
|
|
32
32
|
Item: (props: Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
33
33
|
name: string;
|
|
34
34
|
fileSize?: number;
|
|
35
|
-
status?: import("./
|
|
35
|
+
status?: import("./FileUpload.types").FileUploadItemStatus;
|
|
36
36
|
progress?: number;
|
|
37
37
|
description?: React.ReactNode;
|
|
38
38
|
icon?: React.ElementType;
|
|
@@ -41,8 +41,8 @@ export declare const Upload: ((props: Omit<Omit<import("react").DetailedHTMLProp
|
|
|
41
41
|
className?: string;
|
|
42
42
|
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
43
43
|
};
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
44
|
+
export { FileUploadIcon, FileUploadLabel, FileUploadDescription, FileUploadList, FileUploadItem };
|
|
45
|
+
export { FileUploadContext } from "./FileUploadContext";
|
|
46
46
|
export { formatFileSize, isFileAccepted, triageFiles } from "./files";
|
|
47
47
|
export type { FileTriage, FileTriageOptions } from "./files";
|
|
48
|
-
export * from "./
|
|
48
|
+
export * from "./FileUpload.types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
|
|
3
|
+
orientation?: import("./Flow.types").FlowOrientation;
|
|
4
|
+
align?: import("./Flow.types").FlowAlign;
|
|
5
|
+
columnGap?: number;
|
|
6
|
+
rowGap?: number;
|
|
7
|
+
cornerRadius?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}, "as"> & {
|
|
10
|
+
as?: As | undefined;
|
|
11
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type FlowOrientation = "horizontal" | "vertical";
|
|
4
|
+
export type FlowAlign = "start" | "center";
|
|
5
|
+
export type FlowBranchAlign = "start" | "end";
|
|
6
|
+
export type FlowTreeNode = {
|
|
7
|
+
kind: "node";
|
|
8
|
+
id: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "list";
|
|
12
|
+
children: FlowTreeNode[];
|
|
13
|
+
} | {
|
|
14
|
+
kind: "parallel";
|
|
15
|
+
align?: FlowBranchAlign;
|
|
16
|
+
children: FlowTreeNode[];
|
|
17
|
+
};
|
|
18
|
+
export type FlowSize = {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
export type FlowPoint = {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
};
|
|
26
|
+
export type FlowRect = FlowPoint & FlowSize;
|
|
27
|
+
export type FlowSizes = Record<string, FlowSize>;
|
|
28
|
+
export type FlowPositions = Record<string, FlowPoint>;
|
|
29
|
+
export type FlowEdge = {
|
|
30
|
+
from: string;
|
|
31
|
+
to: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type FlowLayoutOptions = {
|
|
35
|
+
sizes: FlowSizes;
|
|
36
|
+
orientation: FlowOrientation;
|
|
37
|
+
align: FlowAlign;
|
|
38
|
+
columnGap: number;
|
|
39
|
+
rowGap: number;
|
|
40
|
+
};
|
|
41
|
+
type FlowOwnProps = {
|
|
42
|
+
orientation?: FlowOrientation;
|
|
43
|
+
align?: FlowAlign;
|
|
44
|
+
columnGap?: number;
|
|
45
|
+
rowGap?: number;
|
|
46
|
+
cornerRadius?: number;
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
49
|
+
export type FlowProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", FlowOwnProps>;
|
|
50
|
+
export type FlowNodeProps = Omit<React.ComponentPropsWithoutRef<"li">, "id"> & {
|
|
51
|
+
id?: string;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
className?: string;
|
|
54
|
+
};
|
|
55
|
+
export type FlowListProps = React.ComponentPropsWithoutRef<"li"> & {
|
|
56
|
+
className?: string;
|
|
57
|
+
};
|
|
58
|
+
export type FlowParallelProps = React.ComponentPropsWithoutRef<"li"> & {
|
|
59
|
+
align?: FlowBranchAlign;
|
|
60
|
+
className?: string;
|
|
61
|
+
};
|
|
62
|
+
export type FlowConnectorsProps = Omit<React.ComponentPropsWithoutRef<"svg">, "children"> & {
|
|
63
|
+
className?: string;
|
|
64
|
+
};
|
|
65
|
+
export type FlowContextValue = {
|
|
66
|
+
orientation?: FlowOrientation;
|
|
67
|
+
positions?: FlowPositions;
|
|
68
|
+
measured?: boolean;
|
|
69
|
+
reportSize?: (id: string, size: FlowSize | null) => void;
|
|
70
|
+
};
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { FlowEdge, FlowOrientation, FlowPositions, FlowSizes } from "./Flow.types";
|
|
3
|
+
export type FlowConnectorsRenderProps = {
|
|
4
|
+
edges: FlowEdge[];
|
|
5
|
+
positions: FlowPositions;
|
|
6
|
+
sizes: FlowSizes;
|
|
7
|
+
orientation: FlowOrientation;
|
|
8
|
+
cornerRadius: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
markerId: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const FlowConnectors: {
|
|
15
|
+
({ edges, positions, sizes, orientation, cornerRadius, width, height, markerId, className, }: FlowConnectorsRenderProps): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export default FlowConnectors;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">, "id"> & {
|
|
3
|
+
id?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: (props: Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
3
|
+
align?: import("./Flow.types").FlowBranchAlign;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlowEdge, FlowLayoutOptions, FlowPositions, FlowSize, FlowSizes, FlowTreeNode } from "./Flow.types";
|
|
2
|
+
export declare const computePositions: (tree: FlowTreeNode, options: FlowLayoutOptions) => FlowPositions;
|
|
3
|
+
export declare const entryIds: (tree: FlowTreeNode) => string[];
|
|
4
|
+
export declare const exitIds: (tree: FlowTreeNode) => string[];
|
|
5
|
+
export declare const nodeIds: (tree: FlowTreeNode) => string[];
|
|
6
|
+
export declare const computeEdges: (tree: FlowTreeNode) => FlowEdge[];
|
|
7
|
+
export declare const computeFlowRect: (positions: FlowPositions, sizes: FlowSizes) => FlowSize;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import FlowList from "./FlowList";
|
|
2
|
+
import FlowNode from "./FlowNode";
|
|
3
|
+
import FlowParallel from "./FlowParallel";
|
|
4
|
+
export declare const Flow: (<As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
|
|
5
|
+
orientation?: import("./Flow.types").FlowOrientation;
|
|
6
|
+
align?: import("./Flow.types").FlowAlign;
|
|
7
|
+
columnGap?: number;
|
|
8
|
+
rowGap?: number;
|
|
9
|
+
cornerRadius?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}, "as"> & {
|
|
12
|
+
as?: As | undefined;
|
|
13
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
14
|
+
Node: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">, "id"> & {
|
|
15
|
+
id?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
19
|
+
List: (props: Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
22
|
+
Parallel: (props: Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
23
|
+
align?: import("./Flow.types").FlowBranchAlign;
|
|
24
|
+
className?: string;
|
|
25
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
export { FlowNode, FlowList, FlowParallel };
|
|
28
|
+
export { FlowContext } from "./FlowContext";
|
|
29
|
+
export { connectorPath } from "./flowPath";
|
|
30
|
+
export { computeEdges, computeFlowRect, computePositions, entryIds, exitIds, nodeIds, } from "./flowLayout";
|
|
31
|
+
export * from "./Flow.types";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { AnchorAlignment, AnchorSide } from "../tooltip/anchoredPosition";
|
|
3
|
+
export type HoverCardProps = {
|
|
4
|
+
side?: AnchorSide;
|
|
5
|
+
align?: AnchorAlignment;
|
|
6
|
+
anchorOffset?: number;
|
|
7
|
+
alignmentOffset?: number;
|
|
8
|
+
openDelay?: number;
|
|
9
|
+
closeDelay?: number;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
portalContainerName?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export type HoverCardTriggerProps = {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
export type HoverCardContentProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export type HoverCardTriggerHandlers = {
|
|
24
|
+
ref: React.Ref<HTMLElement>;
|
|
25
|
+
"aria-describedby"?: string;
|
|
26
|
+
onPointerEnter: React.PointerEventHandler;
|
|
27
|
+
onPointerLeave: React.PointerEventHandler;
|
|
28
|
+
onFocus: React.FocusEventHandler;
|
|
29
|
+
onBlur: React.FocusEventHandler;
|
|
30
|
+
};
|
|
31
|
+
export type HoverCardContextValue = {
|
|
32
|
+
triggerHandlers?: HoverCardTriggerHandlers;
|
|
33
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { HoverCardTriggerProps } from "./HoverCard.types";
|
|
3
|
+
type TriggerElementProps = {
|
|
4
|
+
ref?: React.Ref<HTMLElement>;
|
|
5
|
+
"aria-describedby"?: string;
|
|
6
|
+
onPointerEnter?: React.PointerEventHandler;
|
|
7
|
+
onPointerLeave?: React.PointerEventHandler;
|
|
8
|
+
onFocus?: React.FocusEventHandler;
|
|
9
|
+
onBlur?: React.FocusEventHandler;
|
|
10
|
+
};
|
|
11
|
+
declare function HoverCardTrigger(props: HoverCardTriggerProps): React.ReactElement<TriggerElementProps, string | React.JSXElementConstructor<any>> | null;
|
|
12
|
+
declare namespace HoverCardTrigger {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export default HoverCardTrigger;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HoverCardBase from "./HoverCard";
|
|
2
|
+
import HoverCardContent from "./HoverCardContent";
|
|
3
|
+
import HoverCardTrigger from "./HoverCardTrigger";
|
|
4
|
+
export declare const HoverCard: typeof HoverCardBase & {
|
|
5
|
+
Trigger: typeof HoverCardTrigger;
|
|
6
|
+
Content: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
className?: string;
|
|
8
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export { HoverCardTrigger, HoverCardContent };
|
|
11
|
+
export { HoverCardContext } from "./HoverCardContext";
|
|
12
|
+
export * from "./HoverCard.types";
|
|
@@ -12,6 +12,7 @@ export * from "./banner";
|
|
|
12
12
|
export * from "./blankslate";
|
|
13
13
|
export * from "./blockquote";
|
|
14
14
|
export * from "./breadcrumbs";
|
|
15
|
+
export * from "./bubble";
|
|
15
16
|
export * from "./button";
|
|
16
17
|
export * from "./button-group";
|
|
17
18
|
export * from "./calendar";
|
|
@@ -19,7 +20,9 @@ export * from "./card";
|
|
|
19
20
|
export * from "./carousel";
|
|
20
21
|
export * from "./chart";
|
|
21
22
|
export * from "./checkbox";
|
|
23
|
+
export * from "./checkbox-card";
|
|
22
24
|
export * from "./checkbox-group";
|
|
25
|
+
export * from "./clipboard";
|
|
23
26
|
export * from "./code";
|
|
24
27
|
export * from "./code-block";
|
|
25
28
|
export * from "./collapsible";
|
|
@@ -33,32 +36,47 @@ export * from "./dialog";
|
|
|
33
36
|
export * from "./drawer";
|
|
34
37
|
export * from "./em";
|
|
35
38
|
export * from "./empty-state";
|
|
39
|
+
export * from "./file-upload";
|
|
36
40
|
export * from "./filtered-action-list";
|
|
41
|
+
export * from "./flow";
|
|
37
42
|
export * from "./form-control";
|
|
38
43
|
export * from "./heading";
|
|
39
44
|
export * from "./hidden";
|
|
40
45
|
export * from "./highlight";
|
|
46
|
+
export * from "./hover-card";
|
|
41
47
|
export * from "./icon-button";
|
|
42
48
|
export * from "./image";
|
|
43
49
|
export * from "./inline-message";
|
|
44
50
|
export * from "./keybinding-hint";
|
|
45
51
|
export * from "./label";
|
|
52
|
+
export * from "./label-group";
|
|
46
53
|
export * from "./link";
|
|
47
54
|
export * from "./link-button";
|
|
55
|
+
export * from "./list";
|
|
48
56
|
export * from "./mark";
|
|
49
57
|
export * from "./markdown";
|
|
50
|
-
export * from "./
|
|
58
|
+
export * from "./marquee";
|
|
59
|
+
export * from "./message";
|
|
60
|
+
export * from "./meter";
|
|
61
|
+
export * from "./navigation-list";
|
|
62
|
+
export * from "./navigation-menu";
|
|
63
|
+
export * from "./number-input";
|
|
51
64
|
export * from "./page-content";
|
|
52
65
|
export * from "./page-footer";
|
|
53
66
|
export * from "./page-header";
|
|
54
67
|
export * from "./page-layout";
|
|
55
68
|
export * from "./page-sidebar";
|
|
56
69
|
export * from "./pagination";
|
|
70
|
+
export * from "./password-input";
|
|
71
|
+
export * from "./pin-input";
|
|
57
72
|
export * from "./placeholder";
|
|
73
|
+
export * from "./popover";
|
|
58
74
|
export * from "./portal";
|
|
59
75
|
export * from "./progress-bar";
|
|
60
76
|
export * from "./progress-circle";
|
|
77
|
+
export * from "./qr-code";
|
|
61
78
|
export * from "./radio";
|
|
79
|
+
export * from "./radio-card";
|
|
62
80
|
export * from "./radio-group";
|
|
63
81
|
export * from "./rating";
|
|
64
82
|
export * from "./relative-time";
|
|
@@ -73,9 +91,13 @@ export * from "./skeleton-box";
|
|
|
73
91
|
export * from "./skeleton-text";
|
|
74
92
|
export * from "./slider";
|
|
75
93
|
export * from "./spinner";
|
|
94
|
+
export * from "./splitter";
|
|
76
95
|
export * from "./stack";
|
|
77
96
|
export * from "./state-label";
|
|
97
|
+
export * from "./statistic-card";
|
|
78
98
|
export * from "./status";
|
|
99
|
+
export * from "./steps";
|
|
100
|
+
export * from "./table-of-contents";
|
|
79
101
|
export * from "./tabs";
|
|
80
102
|
export * from "./text";
|
|
81
103
|
export * from "./text-input";
|
|
@@ -88,4 +110,3 @@ export * from "./tooltip";
|
|
|
88
110
|
export * from "./topic-tag";
|
|
89
111
|
export * from "./tree-view";
|
|
90
112
|
export * from "./truncate";
|
|
91
|
-
export * from "./upload";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "ul">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "ul" : As> & {
|
|
3
|
+
overflowStyle?: import("./LabelGroup.types").LabelGroupOverflowStyle;
|
|
4
|
+
visibleChildCount?: import("./LabelGroup.types").LabelGroupVisibleChildCount;
|
|
5
|
+
className?: string;
|
|
6
|
+
}, "as"> & {
|
|
7
|
+
as?: As | undefined;
|
|
8
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type LabelGroupOverflowStyle = "inline" | "overlay";
|
|
4
|
+
export type LabelGroupVisibleChildCount = "auto" | number;
|
|
5
|
+
export type LabelGroupProps<As extends React.ElementType = "ul"> = PolymorphicProps<As, "ul", {
|
|
6
|
+
overflowStyle?: LabelGroupOverflowStyle;
|
|
7
|
+
visibleChildCount?: LabelGroupVisibleChildCount;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type ClippedChildrenOptions = {
|
|
3
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
4
|
+
childCount: number;
|
|
5
|
+
reservedWidth: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const useClippedChildren: ({ containerRef, childCount, reservedWidth, disabled, }: ClippedChildrenOptions) => ReadonlySet<number>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ListSpacing, ListVariant } from "./List.types";
|
|
3
|
+
declare const _default: <As extends React.ElementType = "ul">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "ul" : As> & {
|
|
4
|
+
variant?: ListVariant;
|
|
5
|
+
spacing?: ListSpacing;
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "as"> & {
|
|
8
|
+
as?: As | undefined;
|
|
9
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { PolymorphicProps } from "../../utilities/polymorphic";
|
|
3
|
+
export type ListVariant = "bullet" | "number" | "plain";
|
|
4
|
+
export type ListSpacing = "condensed" | "normal" | "spacious";
|
|
5
|
+
export type ListProps<As extends React.ElementType = "ul"> = PolymorphicProps<As, "ul", {
|
|
6
|
+
variant?: ListVariant;
|
|
7
|
+
spacing?: ListSpacing;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type ListItemProps<As extends React.ElementType = "li"> = PolymorphicProps<As, "li", {
|
|
11
|
+
className?: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: <As extends React.ElementType = "li">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "li" : As> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
}, "as"> & {
|
|
5
|
+
as?: As | undefined;
|
|
6
|
+
} & React.RefAttributes<any>) => React.ReactNode;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ListItem from "./ListItem";
|
|
2
|
+
export declare const List: (<As extends React.ElementType = "ul">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "ul" : As> & {
|
|
3
|
+
variant?: import("./List.types").ListVariant;
|
|
4
|
+
spacing?: import("./List.types").ListSpacing;
|
|
5
|
+
className?: string;
|
|
6
|
+
}, "as"> & {
|
|
7
|
+
as?: As | undefined;
|
|
8
|
+
} & import("react").RefAttributes<any>) => React.ReactNode) & {
|
|
9
|
+
Item: <As extends React.ElementType = "li">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "li" : As> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
}, "as"> & {
|
|
12
|
+
as?: As | undefined;
|
|
13
|
+
} & import("react").RefAttributes<any>) => React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export { ListItem };
|
|
16
|
+
export * from "./List.types";
|