@pitchfork-ui/react 0.1.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/README.md +60 -0
- package/dist/index.cjs +9010 -0
- package/dist/index.js +63 -0
- package/dist/index10.js +36 -0
- package/dist/index100.js +26 -0
- package/dist/index102.js +190 -0
- package/dist/index104.js +93 -0
- package/dist/index106.js +27 -0
- package/dist/index108.js +88 -0
- package/dist/index110.js +96 -0
- package/dist/index112.js +38 -0
- package/dist/index114.js +155 -0
- package/dist/index116.js +193 -0
- package/dist/index118.js +24 -0
- package/dist/index12.js +38 -0
- package/dist/index120.js +69 -0
- package/dist/index14.js +24 -0
- package/dist/index16.js +64 -0
- package/dist/index18.js +39 -0
- package/dist/index19.js +35 -0
- package/dist/index21.js +37 -0
- package/dist/index23.js +13 -0
- package/dist/index25.js +38 -0
- package/dist/index27.js +68 -0
- package/dist/index29.js +25 -0
- package/dist/index3.js +32 -0
- package/dist/index30.js +49 -0
- package/dist/index31.js +15 -0
- package/dist/index32.js +22 -0
- package/dist/index33.js +25 -0
- package/dist/index34.js +55 -0
- package/dist/index35.js +36 -0
- package/dist/index36.js +22 -0
- package/dist/index38.js +149 -0
- package/dist/index4.js +6 -0
- package/dist/index40.js +255 -0
- package/dist/index42.js +134 -0
- package/dist/index43.js +16 -0
- package/dist/index44.js +4232 -0
- package/dist/index46.js +123 -0
- package/dist/index48.js +41 -0
- package/dist/index50.js +135 -0
- package/dist/index52.js +39 -0
- package/dist/index54.js +186 -0
- package/dist/index56.js +63 -0
- package/dist/index58.js +45 -0
- package/dist/index6.js +182 -0
- package/dist/index60.js +264 -0
- package/dist/index62.js +68 -0
- package/dist/index64.js +69 -0
- package/dist/index66.js +95 -0
- package/dist/index68.js +202 -0
- package/dist/index70.js +68 -0
- package/dist/index72.js +50 -0
- package/dist/index74.js +88 -0
- package/dist/index76.js +92 -0
- package/dist/index78.js +76 -0
- package/dist/index8.js +61 -0
- package/dist/index80.js +44 -0
- package/dist/index82.js +116 -0
- package/dist/index84.js +25 -0
- package/dist/index86.js +56 -0
- package/dist/index88.js +88 -0
- package/dist/index90.js +167 -0
- package/dist/index92.js +32 -0
- package/dist/index94.js +40 -0
- package/dist/index96.js +87 -0
- package/dist/index98.js +185 -0
- package/dist/src/a11y/index.d.ts +15 -0
- package/dist/src/components/Alert/Alert.d.ts +10 -0
- package/dist/src/components/Alert/Alert.test.d.ts +1 -0
- package/dist/src/components/Alert/index.d.ts +1 -0
- package/dist/src/components/Avatar/Avatar.d.ts +10 -0
- package/dist/src/components/Avatar/Avatar.test.d.ts +1 -0
- package/dist/src/components/Avatar/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.d.ts +5 -0
- package/dist/src/components/Badge/Badge.test.d.ts +1 -0
- package/dist/src/components/Badge/index.d.ts +1 -0
- package/dist/src/components/BadgeGroup/BadgeGroup.d.ts +11 -0
- package/dist/src/components/BadgeGroup/BadgeGroup.test.d.ts +1 -0
- package/dist/src/components/BadgeGroup/index.d.ts +1 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/dist/src/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/src/components/Button/Button.d.ts +9 -0
- package/dist/src/components/Button/Button.test.d.ts +1 -0
- package/dist/src/components/Button/index.d.ts +1 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +16 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.test.d.ts +1 -0
- package/dist/src/components/ButtonGroup/index.d.ts +1 -0
- package/dist/src/components/Calendar/Calendar.d.ts +14 -0
- package/dist/src/components/Calendar/Calendar.test.d.ts +1 -0
- package/dist/src/components/Calendar/index.d.ts +1 -0
- package/dist/src/components/Card/Card.d.ts +20 -0
- package/dist/src/components/Card/Card.test.d.ts +1 -0
- package/dist/src/components/Card/index.d.ts +1 -0
- package/dist/src/components/Carousel/Carousel.d.ts +10 -0
- package/dist/src/components/Carousel/Carousel.test.d.ts +1 -0
- package/dist/src/components/Carousel/index.d.ts +1 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/src/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/src/components/Checkbox/index.d.ts +1 -0
- package/dist/src/components/CodeSnippet/CodeSnippet.d.ts +11 -0
- package/dist/src/components/CodeSnippet/CodeSnippet.test.d.ts +1 -0
- package/dist/src/components/CodeSnippet/index.d.ts +1 -0
- package/dist/src/components/ContentDivider/ContentDivider.d.ts +7 -0
- package/dist/src/components/ContentDivider/ContentDivider.test.d.ts +1 -0
- package/dist/src/components/ContentDivider/index.d.ts +1 -0
- package/dist/src/components/CreditCard/CreditCard.d.ts +10 -0
- package/dist/src/components/CreditCard/CreditCard.test.d.ts +1 -0
- package/dist/src/components/CreditCard/index.d.ts +1 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +17 -0
- package/dist/src/components/DatePicker/DatePicker.test.d.ts +1 -0
- package/dist/src/components/DatePicker/index.d.ts +1 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +20 -0
- package/dist/src/components/Dropdown/Dropdown.test.d.ts +1 -0
- package/dist/src/components/Dropdown/index.d.ts +1 -0
- package/dist/src/components/EmptyState/EmptyState.d.ts +11 -0
- package/dist/src/components/EmptyState/EmptyState.test.d.ts +1 -0
- package/dist/src/components/EmptyState/index.d.ts +1 -0
- package/dist/src/components/FileUploader/FileUploader.d.ts +15 -0
- package/dist/src/components/FileUploader/FileUploader.test.d.ts +1 -0
- package/dist/src/components/FileUploader/index.d.ts +1 -0
- package/dist/src/components/HeaderNavigation/HeaderNavigation.d.ts +12 -0
- package/dist/src/components/HeaderNavigation/HeaderNavigation.test.d.ts +1 -0
- package/dist/src/components/HeaderNavigation/index.d.ts +1 -0
- package/dist/src/components/Icon/Icon.d.ts +12 -0
- package/dist/src/components/Icon/Icon.test.d.ts +1 -0
- package/dist/src/components/Icon/index.d.ts +1 -0
- package/dist/src/components/InlineCTA/InlineCTA.d.ts +11 -0
- package/dist/src/components/InlineCTA/InlineCTA.test.d.ts +1 -0
- package/dist/src/components/InlineCTA/index.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +6 -0
- package/dist/src/components/Input/Input.test.d.ts +1 -0
- package/dist/src/components/Input/index.d.ts +1 -0
- package/dist/src/components/LineBarCharts/LineBarChart.d.ts +29 -0
- package/dist/src/components/LineBarCharts/LineBarChart.test.d.ts +1 -0
- package/dist/src/components/LineBarCharts/index.d.ts +1 -0
- package/dist/src/components/LoadingIndicators/LoadingIndicators.d.ts +17 -0
- package/dist/src/components/LoadingIndicators/LoadingIndicators.test.d.ts +1 -0
- package/dist/src/components/LoadingIndicators/index.d.ts +1 -0
- package/dist/src/components/Metrics/Metrics.d.ts +15 -0
- package/dist/src/components/Metrics/Metrics.test.d.ts +1 -0
- package/dist/src/components/Metrics/index.d.ts +1 -0
- package/dist/src/components/Modal/Modal.d.ts +16 -0
- package/dist/src/components/Modal/Modal.test.d.ts +1 -0
- package/dist/src/components/Modal/index.d.ts +1 -0
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +18 -0
- package/dist/src/components/MultiSelect/MultiSelect.test.d.ts +1 -0
- package/dist/src/components/MultiSelect/index.d.ts +1 -0
- package/dist/src/components/Notification/Notification.d.ts +16 -0
- package/dist/src/components/Notification/Notification.test.d.ts +1 -0
- package/dist/src/components/Notification/index.d.ts +1 -0
- package/dist/src/components/PageHeader/PageHeader.d.ts +12 -0
- package/dist/src/components/PageHeader/PageHeader.test.d.ts +1 -0
- package/dist/src/components/PageHeader/index.d.ts +1 -0
- package/dist/src/components/Pagination/Pagination.d.ts +14 -0
- package/dist/src/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/src/components/Pagination/index.d.ts +1 -0
- package/dist/src/components/PieChart/PieChart.d.ts +14 -0
- package/dist/src/components/PieChart/PieChart.test.d.ts +1 -0
- package/dist/src/components/PieChart/index.d.ts +1 -0
- package/dist/src/components/ProgressIndicators/ProgressIndicators.d.ts +16 -0
- package/dist/src/components/ProgressIndicators/ProgressIndicators.test.d.ts +1 -0
- package/dist/src/components/ProgressIndicators/index.d.ts +1 -0
- package/dist/src/components/ProgressSteps/ProgressSteps.d.ts +12 -0
- package/dist/src/components/ProgressSteps/ProgressSteps.test.d.ts +1 -0
- package/dist/src/components/ProgressSteps/index.d.ts +1 -0
- package/dist/src/components/RadarChart/RadarChart.d.ts +15 -0
- package/dist/src/components/RadarChart/RadarChart.test.d.ts +1 -0
- package/dist/src/components/RadarChart/index.d.ts +1 -0
- package/dist/src/components/RadioButton/RadioButton.d.ts +4 -0
- package/dist/src/components/RadioButton/RadioButton.test.d.ts +1 -0
- package/dist/src/components/RadioButton/index.d.ts +1 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +17 -0
- package/dist/src/components/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/src/components/RadioGroup/index.d.ts +1 -0
- package/dist/src/components/Rating/Rating.d.ts +15 -0
- package/dist/src/components/Rating/Rating.test.d.ts +1 -0
- package/dist/src/components/Rating/index.d.ts +1 -0
- package/dist/src/components/RichTextEditor/RichTextEditor.d.ts +14 -0
- package/dist/src/components/RichTextEditor/RichTextEditor.test.d.ts +1 -0
- package/dist/src/components/RichTextEditor/index.d.ts +1 -0
- package/dist/src/components/SectionFooter/SectionFooter.d.ts +8 -0
- package/dist/src/components/SectionFooter/SectionFooter.test.d.ts +1 -0
- package/dist/src/components/SectionFooter/index.d.ts +1 -0
- package/dist/src/components/SectionHeader/SectionHeader.d.ts +10 -0
- package/dist/src/components/SectionHeader/SectionHeader.test.d.ts +1 -0
- package/dist/src/components/SectionHeader/index.d.ts +1 -0
- package/dist/src/components/Select/Select.d.ts +22 -0
- package/dist/src/components/Select/Select.test.d.ts +1 -0
- package/dist/src/components/Select/index.d.ts +1 -0
- package/dist/src/components/SidebarNavigation/SidebarNavigation.d.ts +19 -0
- package/dist/src/components/SidebarNavigation/SidebarNavigation.test.d.ts +1 -0
- package/dist/src/components/SidebarNavigation/index.d.ts +1 -0
- package/dist/src/components/SlideoutMenu/SlideoutMenu.d.ts +17 -0
- package/dist/src/components/SlideoutMenu/SlideoutMenu.test.d.ts +1 -0
- package/dist/src/components/SlideoutMenu/index.d.ts +1 -0
- package/dist/src/components/Slider/Slider.d.ts +10 -0
- package/dist/src/components/Slider/Slider.test.d.ts +1 -0
- package/dist/src/components/Slider/index.d.ts +1 -0
- package/dist/src/components/Switch/Switch.d.ts +4 -0
- package/dist/src/components/Switch/Switch.test.d.ts +1 -0
- package/dist/src/components/Switch/index.d.ts +1 -0
- package/dist/src/components/Table/Table.d.ts +34 -0
- package/dist/src/components/Table/Table.test.d.ts +1 -0
- package/dist/src/components/Table/index.d.ts +1 -0
- package/dist/src/components/Tabs/Tabs.d.ts +18 -0
- package/dist/src/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/src/components/Tabs/index.d.ts +1 -0
- package/dist/src/components/Tag/Tag.d.ts +7 -0
- package/dist/src/components/Tag/Tag.test.d.ts +1 -0
- package/dist/src/components/Tag/index.d.ts +1 -0
- package/dist/src/components/Textarea/Textarea.d.ts +6 -0
- package/dist/src/components/Textarea/Textarea.test.d.ts +1 -0
- package/dist/src/components/Textarea/index.d.ts +1 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/src/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/src/components/Tooltip/index.d.ts +1 -0
- package/dist/src/components/TreeView/TreeView.d.ts +22 -0
- package/dist/src/components/TreeView/TreeView.test.d.ts +1 -0
- package/dist/src/components/TreeView/index.d.ts +1 -0
- package/dist/src/components/UtilityButton/UtilityButton.d.ts +9 -0
- package/dist/src/components/UtilityButton/UtilityButton.test.d.ts +1 -0
- package/dist/src/components/UtilityButton/index.d.ts +1 -0
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +20 -0
- package/dist/src/components/VideoPlayer/VideoPlayer.test.d.ts +1 -0
- package/dist/src/components/VideoPlayer/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +7 -0
- package/dist/src/hooks/useAnchoredPosition.d.ts +12 -0
- package/dist/src/hooks/useComposedRefs.d.ts +1 -0
- package/dist/src/hooks/useControllableState.d.ts +6 -0
- package/dist/src/hooks/useDisclosure.d.ts +13 -0
- package/dist/src/hooks/useFocusTrap.d.ts +7 -0
- package/dist/src/hooks/useListNavigation.d.ts +15 -0
- package/dist/src/hooks/useOutsideInteraction.d.ts +7 -0
- package/dist/src/index.d.ts +55 -0
- package/dist/src/test/setup.d.ts +0 -0
- package/dist/src/utils/FieldWrapper.d.ts +15 -0
- package/dist/src/utils/cx.d.ts +1 -0
- package/dist/styles.css +5676 -0
- package/package.json +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Textarea';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
placement?: TooltipPlacement;
|
|
7
|
+
delay?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface TreeViewNode {
|
|
2
|
+
value: string;
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
children?: TreeViewNode[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
badge?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface TreeViewProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
10
|
+
nodes: TreeViewNode[];
|
|
11
|
+
selectedValue?: string;
|
|
12
|
+
defaultSelectedValue?: string;
|
|
13
|
+
onSelectedValueChange?: (value: string) => void;
|
|
14
|
+
expandedValues?: string[];
|
|
15
|
+
defaultExpandedValues?: string[];
|
|
16
|
+
onExpandedValuesChange?: (values: string[]) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface TreeViewHandle {
|
|
19
|
+
expandAll: () => void;
|
|
20
|
+
collapseAll: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const TreeView: import('react').ForwardRefExoticComponent<TreeViewProps & import('react').RefAttributes<TreeViewHandle>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TreeView';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UtilityButtonVariant = 'neutral' | 'brand' | 'danger';
|
|
2
|
+
export type UtilityButtonSize = 'sm' | 'md';
|
|
3
|
+
export interface UtilityButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant?: UtilityButtonVariant;
|
|
5
|
+
size?: UtilityButtonSize;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const UtilityButton: import('react').ForwardRefExoticComponent<UtilityButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UtilityButton';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface VideoSource {
|
|
2
|
+
src: string;
|
|
3
|
+
type?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface VideoTrack {
|
|
6
|
+
src: string;
|
|
7
|
+
kind: 'captions' | 'chapters' | 'descriptions' | 'metadata' | 'subtitles';
|
|
8
|
+
srcLang: string;
|
|
9
|
+
label: string;
|
|
10
|
+
default?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface VideoPlayerProps extends Omit<React.VideoHTMLAttributes<HTMLVideoElement>, 'children'> {
|
|
13
|
+
label?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
aspectRatio?: '16/9' | '4/3' | '1/1';
|
|
17
|
+
sources?: VideoSource[];
|
|
18
|
+
tracks?: VideoTrack[];
|
|
19
|
+
}
|
|
20
|
+
export declare const VideoPlayer: import('react').ForwardRefExoticComponent<VideoPlayerProps & import('react').RefAttributes<HTMLVideoElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './VideoPlayer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './useAnchoredPosition';
|
|
2
|
+
export * from './useComposedRefs';
|
|
3
|
+
export * from './useControllableState';
|
|
4
|
+
export * from './useDisclosure';
|
|
5
|
+
export * from './useFocusTrap';
|
|
6
|
+
export * from './useListNavigation';
|
|
7
|
+
export * from './useOutsideInteraction';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface UseAnchoredPositionOptions {
|
|
2
|
+
anchorRef: React.RefObject<HTMLElement | null>;
|
|
3
|
+
floatingRef?: React.RefObject<HTMLElement | null>;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
align?: 'start' | 'end';
|
|
6
|
+
offset?: number;
|
|
7
|
+
viewportPadding?: number;
|
|
8
|
+
minWidth?: number;
|
|
9
|
+
matchAnchorWidth?: boolean;
|
|
10
|
+
flip?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function useAnchoredPosition({ anchorRef, floatingRef, enabled, align, offset, viewportPadding, minWidth, matchAnchorWidth, flip, }: UseAnchoredPositionOptions): import('react').CSSProperties;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useComposedRefs<T>(...refs: Array<React.Ref<T> | undefined>): (node: T | null) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface UseControllableStateOptions<T> {
|
|
2
|
+
value?: T;
|
|
3
|
+
defaultValue?: T;
|
|
4
|
+
onChange?: (value: T) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useControllableState<T>({ value, defaultValue, onChange, }: UseControllableStateOptions<T>): readonly [T | undefined, (nextValue: T | ((currentValue: T | undefined) => T)) => void, boolean];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface UseDisclosureOptions {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
defaultOpen?: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useDisclosure({ open, defaultOpen, onOpenChange, disabled, }?: UseDisclosureOptions): {
|
|
8
|
+
isOpen: boolean | undefined;
|
|
9
|
+
setIsOpen: (nextValue: boolean | ((currentValue: boolean | undefined) => boolean)) => void;
|
|
10
|
+
open: () => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
toggle: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface UseFocusTrapOptions {
|
|
2
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
onEscape?: () => void;
|
|
5
|
+
restoreFocus?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useFocusTrap({ containerRef, enabled, onEscape, restoreFocus, }: UseFocusTrapOptions): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ListNavigationAction = 'first' | 'last' | 'next' | 'previous';
|
|
2
|
+
export interface UseListNavigationOptions<T> {
|
|
3
|
+
items: T[];
|
|
4
|
+
isDisabled?: (item: T, index: number) => boolean;
|
|
5
|
+
initialIndex?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function useListNavigation<T>({ items, isDisabled, initialIndex, }: UseListNavigationOptions<T>): {
|
|
8
|
+
activeIndex: number;
|
|
9
|
+
enabledIndexes: number[];
|
|
10
|
+
firstEnabledIndex: number;
|
|
11
|
+
lastEnabledIndex: number;
|
|
12
|
+
getNextEnabledIndex: (startIndex: number, direction: 1 | -1) => number;
|
|
13
|
+
move: (action: ListNavigationAction, currentIndex?: number) => number;
|
|
14
|
+
setActiveIndex: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface UseOutsideInteractionOptions {
|
|
2
|
+
refs: Array<React.RefObject<HTMLElement | null>>;
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
onInteractOutside: (event: PointerEvent | MouseEvent) => void;
|
|
5
|
+
eventName?: 'mousedown' | 'pointerdown';
|
|
6
|
+
}
|
|
7
|
+
export declare function useOutsideInteraction({ refs, enabled, onInteractOutside, eventName, }: UseOutsideInteractionOptions): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export * from './a11y';
|
|
2
|
+
export * from './components/Alert';
|
|
3
|
+
export * from './components/Avatar';
|
|
4
|
+
export * from './components/Button';
|
|
5
|
+
export * from './components/BadgeGroup';
|
|
6
|
+
export * from './components/ButtonGroup';
|
|
7
|
+
export * from './components/Breadcrumbs';
|
|
8
|
+
export * from './components/Input';
|
|
9
|
+
export * from './components/Badge';
|
|
10
|
+
export * from './components/Card';
|
|
11
|
+
export * from './components/CreditCard';
|
|
12
|
+
export * from './components/Checkbox';
|
|
13
|
+
export * from './components/Calendar';
|
|
14
|
+
export * from './components/Carousel';
|
|
15
|
+
export * from './components/CodeSnippet';
|
|
16
|
+
export * from './components/ContentDivider';
|
|
17
|
+
export * from './components/DatePicker';
|
|
18
|
+
export * from './components/Dropdown';
|
|
19
|
+
export * from './components/EmptyState';
|
|
20
|
+
export * from './components/FileUploader';
|
|
21
|
+
export * from './components/HeaderNavigation';
|
|
22
|
+
export * from './components/Icon';
|
|
23
|
+
export * from './components/InlineCTA';
|
|
24
|
+
export * from './components/LineBarCharts';
|
|
25
|
+
export * from './components/LoadingIndicators';
|
|
26
|
+
export * from './components/Metrics';
|
|
27
|
+
export * from './components/Modal';
|
|
28
|
+
export * from './components/MultiSelect';
|
|
29
|
+
export * from './components/Notification';
|
|
30
|
+
export * from './components/PageHeader';
|
|
31
|
+
export * from './components/Pagination';
|
|
32
|
+
export * from './components/PieChart';
|
|
33
|
+
export * from './components/ProgressIndicators';
|
|
34
|
+
export * from './components/ProgressSteps';
|
|
35
|
+
export * from './components/RadarChart';
|
|
36
|
+
export * from './components/RadioButton';
|
|
37
|
+
export * from './components/RadioGroup';
|
|
38
|
+
export * from './components/Rating';
|
|
39
|
+
export * from './components/RichTextEditor';
|
|
40
|
+
export * from './components/SectionFooter';
|
|
41
|
+
export * from './components/SectionHeader';
|
|
42
|
+
export * from './components/SidebarNavigation';
|
|
43
|
+
export * from './components/SlideoutMenu';
|
|
44
|
+
export * from './components/Switch';
|
|
45
|
+
export * from './components/Select';
|
|
46
|
+
export * from './components/Slider';
|
|
47
|
+
export * from './components/Tag';
|
|
48
|
+
export * from './components/Table';
|
|
49
|
+
export * from './components/Tabs';
|
|
50
|
+
export * from './components/Textarea';
|
|
51
|
+
export * from './components/Tooltip';
|
|
52
|
+
export * from './components/TreeView';
|
|
53
|
+
export * from './components/UtilityButton';
|
|
54
|
+
export * from './components/VideoPlayer';
|
|
55
|
+
export * from './hooks';
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface FieldWrapperProps {
|
|
2
|
+
labelFor: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
descriptionId?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
errorId?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Rendered after the error message — for component-specific trailing content. */
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const FieldWrapper: import('react').ForwardRefExoticComponent<FieldWrapperProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cx(...classes: Array<string | false | null | undefined>): string;
|