@acyui/components 0.1.0
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/dist/acyui.cjs.js +208 -0
- package/dist/acyui.cjs.js.map +1 -0
- package/dist/acyui.css +1 -0
- package/dist/acyui.es.js +4239 -0
- package/dist/acyui.es.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +5 -0
- package/dist/components/Accordion/types.d.ts +16 -0
- package/dist/components/Alert/Alert.d.ts +4 -0
- package/dist/components/Alert/types.d.ts +8 -0
- package/dist/components/Avatar/Avatar.d.ts +4 -0
- package/dist/components/Avatar/types.d.ts +9 -0
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/Badge/types.d.ts +10 -0
- package/dist/components/Box/Box.d.ts +6 -0
- package/dist/components/Box/types.d.ts +14 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/components/Breadcrumb/types.d.ts +11 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/types.d.ts +14 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/types.d.ts +17 -0
- package/dist/components/Carousel/Carousel.d.ts +4 -0
- package/dist/components/Carousel/types.d.ts +20 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/types.d.ts +8 -0
- package/dist/components/Code/Code.d.ts +4 -0
- package/dist/components/Code/types.d.ts +9 -0
- package/dist/components/Container/Container.d.ts +4 -0
- package/dist/components/Container/types.d.ts +8 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/types.d.ts +7 -0
- package/dist/components/Divider/Divider.d.ts +3 -0
- package/dist/components/Divider/types.d.ts +6 -0
- package/dist/components/Drawer/Drawer.d.ts +4 -0
- package/dist/components/Drawer/types.d.ts +14 -0
- package/dist/components/Dropdown/Dropdown.d.ts +7 -0
- package/dist/components/Dropdown/types.d.ts +22 -0
- package/dist/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/components/EmptyState/types.d.ts +7 -0
- package/dist/components/FileUpload/FileUpload.d.ts +4 -0
- package/dist/components/FileUpload/types.d.ts +10 -0
- package/dist/components/Flex/Flex.d.ts +4 -0
- package/dist/components/Flex/types.d.ts +16 -0
- package/dist/components/FormField/FormField.d.ts +4 -0
- package/dist/components/FormField/types.d.ts +10 -0
- package/dist/components/Grid/Grid.d.ts +4 -0
- package/dist/components/Grid/types.d.ts +10 -0
- package/dist/components/Heading/Heading.d.ts +9 -0
- package/dist/components/Heading/types.d.ts +7 -0
- package/dist/components/IconButton/IconButton.d.ts +4 -0
- package/dist/components/IconButton/types.d.ts +11 -0
- package/dist/components/Image/Image.d.ts +4 -0
- package/dist/components/Image/types.d.ts +10 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/types.d.ts +12 -0
- package/dist/components/Link/Link.d.ts +7 -0
- package/dist/components/Link/types.d.ts +10 -0
- package/dist/components/List/List.d.ts +7 -0
- package/dist/components/List/types.d.ts +12 -0
- package/dist/components/Loader/Loader.d.ts +3 -0
- package/dist/components/Loader/types.d.ts +8 -0
- package/dist/components/Modal/Modal.d.ts +4 -0
- package/dist/components/Modal/types.d.ts +13 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +4 -0
- package/dist/components/MultiSelect/types.d.ts +18 -0
- package/dist/components/NumberInput/NumberInput.d.ts +4 -0
- package/dist/components/NumberInput/types.d.ts +19 -0
- package/dist/components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/components/PageHeader/types.d.ts +10 -0
- package/dist/components/Pagination/Pagination.d.ts +4 -0
- package/dist/components/Pagination/types.d.ts +7 -0
- package/dist/components/Progress/Progress.d.ts +4 -0
- package/dist/components/Progress/types.d.ts +12 -0
- package/dist/components/Radio/Radio.d.ts +4 -0
- package/dist/components/Radio/types.d.ts +8 -0
- package/dist/components/Search/Search.d.ts +4 -0
- package/dist/components/Search/types.d.ts +5 -0
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/types.d.ts +23 -0
- package/dist/components/Sidebar/Sidebar.d.ts +14 -0
- package/dist/components/Sidebar/types.d.ts +34 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/Skeleton/types.d.ts +6 -0
- package/dist/components/Slider/Slider.d.ts +4 -0
- package/dist/components/Slider/types.d.ts +5 -0
- package/dist/components/Spacer/Spacer.d.ts +4 -0
- package/dist/components/Spacer/types.d.ts +7 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/types.d.ts +6 -0
- package/dist/components/Table/Table.d.ts +9 -0
- package/dist/components/Table/types.d.ts +8 -0
- package/dist/components/Tabs/Tabs.d.ts +4 -0
- package/dist/components/Tabs/types.d.ts +19 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/types.d.ts +13 -0
- package/dist/components/Text/Text.d.ts +4 -0
- package/dist/components/Text/types.d.ts +13 -0
- package/dist/components/TextArea/TextArea.d.ts +4 -0
- package/dist/components/TextArea/types.d.ts +9 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +5 -0
- package/dist/components/ThemeProvider/types.d.ts +15 -0
- package/dist/components/Timeline/Timeline.d.ts +5 -0
- package/dist/components/Timeline/types.d.ts +12 -0
- package/dist/components/Toast/Toast.d.ts +5 -0
- package/dist/components/Toast/types.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts +8 -0
- package/dist/components/TopBar/TopBar.d.ts +4 -0
- package/dist/components/TopBar/types.d.ts +17 -0
- package/dist/components/index.d.ts +53 -0
- package/dist/components/types.d.ts +7 -0
- package/dist/hooks/useOverlay.d.ts +9 -0
- package/dist/icons/IconBase.d.ts +5 -0
- package/dist/icons/generated.d.ts +1279 -0
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/types.d.ts +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/utils/classNames.d.ts +7 -0
- package/dist/utils/formater.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/styleTokens.d.ts +14 -0
- package/dist/utils/variants.d.ts +25 -0
- package/package.json +58 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type NumberInputVariant = 'default' | 'stepper';
|
|
3
|
+
export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'onChange'> {
|
|
4
|
+
value?: number | undefined;
|
|
5
|
+
defaultValue?: number | undefined;
|
|
6
|
+
onChange?: (value: number | undefined) => void;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step?: number;
|
|
10
|
+
variant?: NumberInputVariant;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
hint?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
inputClassName?: string;
|
|
18
|
+
containerClassName?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
showBack?: boolean;
|
|
6
|
+
onBack?: () => void;
|
|
7
|
+
action?: React.ReactNode;
|
|
8
|
+
width?: string;
|
|
9
|
+
mb?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColorValue } from '../../utils/styleTokens';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export type ProgressSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
value: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
size?: ProgressSize;
|
|
8
|
+
color?: ColorValue;
|
|
9
|
+
animated?: boolean;
|
|
10
|
+
showValue?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorValue } from '../../utils/styleTokens';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
color?: ColorValue;
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
searchValue?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type SelectSize = 'small' | 'medium' | 'large';
|
|
9
|
+
export interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
10
|
+
options: SelectOption[];
|
|
11
|
+
value?: string;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
label?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
supportText?: string;
|
|
17
|
+
size?: SelectSize;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
full?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
searchable?: boolean;
|
|
22
|
+
searchPlaceholder?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SidebarFooterProps, SidebarGroupProps, SidebarHeaderProps, SidebarItemProps, SidebarProps } from './types';
|
|
3
|
+
export type { SidebarFooterProps, SidebarGroupProps, SidebarHeaderProps, SidebarItemOwnProps, SidebarItemProps, SidebarProps } from './types';
|
|
4
|
+
declare function SidebarRoot({ collapsed: controlledCollapsed, defaultCollapsed, onToggle, className, children, searchThreshold, searchPlaceholder, ...props }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SidebarHeader({ icon, logo, collapsible, className, children, onClick, ...props }: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SidebarItem<TElement extends React.ElementType = 'button'>({ icon, active, as, className, children, searchText, ...props }: SidebarItemProps<TElement>): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
declare function SidebarGroup({ title, leftIcon, defaultOpen, open: controlledOpen, onOpenChange, collapsible, className, children, ...props }: SidebarGroupProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
declare function SidebarFooter({ className, children, ...props }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Sidebar: typeof SidebarRoot & {
|
|
10
|
+
Header: typeof SidebarHeader;
|
|
11
|
+
Item: typeof SidebarItem;
|
|
12
|
+
Group: typeof SidebarGroup;
|
|
13
|
+
Footer: typeof SidebarFooter;
|
|
14
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PolymorphicComponentProps } from '../types';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
defaultCollapsed?: boolean;
|
|
6
|
+
onToggle?: (collapsed: boolean) => void;
|
|
7
|
+
searchThreshold?: number;
|
|
8
|
+
searchPlaceholder?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
logo?: React.ReactNode;
|
|
14
|
+
collapsible?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface SidebarItemOwnProps {
|
|
17
|
+
icon?: React.ReactNode | JSX.Element;
|
|
18
|
+
active?: boolean;
|
|
19
|
+
searchText?: string;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export type SidebarItemProps<TElement extends React.ElementType = 'button'> = PolymorphicComponentProps<TElement, SidebarItemOwnProps>;
|
|
23
|
+
export interface SidebarGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
24
|
+
title: React.ReactNode;
|
|
25
|
+
leftIcon?: React.ReactNode;
|
|
26
|
+
defaultOpen?: boolean;
|
|
27
|
+
open?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
collapsible?: boolean;
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export interface SidebarFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TableProps } from './types';
|
|
3
|
+
export type { TableProps } from './types';
|
|
4
|
+
export declare const Table: React.FC<TableProps>;
|
|
5
|
+
export declare const Thead: React.NamedExoticComponent<React.HTMLAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
export declare const Tbody: React.NamedExoticComponent<React.HTMLAttributes<HTMLTableSectionElement>>;
|
|
7
|
+
export declare const Tr: React.NamedExoticComponent<React.HTMLAttributes<HTMLTableRowElement>>;
|
|
8
|
+
export declare const Th: React.NamedExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement>>;
|
|
9
|
+
export declare const Td: React.NamedExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface TabItem {
|
|
3
|
+
value: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
href?: string;
|
|
8
|
+
}
|
|
9
|
+
export type TabsVariant = 'default' | 'pills';
|
|
10
|
+
export type TabsSize = 'small' | 'medium' | 'large';
|
|
11
|
+
export interface TabsProps {
|
|
12
|
+
tabs: TabItem[];
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
variant?: TabsVariant;
|
|
18
|
+
size?: TabsSize;
|
|
19
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TagProps } from './types';
|
|
2
|
+
export type { TagProps, TagSize, TagVariant } from './types';
|
|
3
|
+
export declare function Tag({ children, variant, size, color, leftIcon, rightIcon, closable, onRemove, className, style, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColorValue, TokenSize } from '../../utils/styleTokens';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export type TagVariant = 'soft' | 'outline';
|
|
4
|
+
export type TagSize = Extract<TokenSize, 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge'>;
|
|
5
|
+
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
6
|
+
variant?: TagVariant;
|
|
7
|
+
size?: TagSize;
|
|
8
|
+
color?: ColorValue;
|
|
9
|
+
leftIcon?: React.ReactNode;
|
|
10
|
+
rightIcon?: React.ReactNode;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
onRemove?: () => void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextProps } from './types';
|
|
3
|
+
export type { TextColor, TextOwnProps, TextProps, TextSize, TextWeight } from './types';
|
|
4
|
+
export declare const Text: <TElement extends React.ElementType = "p">({ size, color, weight, as, className, children, style, ...props }: TextProps<TElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PolymorphicComponentProps } from '../types';
|
|
2
|
+
import { TokenTextColor, TokenWeight, TokenSize } from '../../utils/styleTokens';
|
|
3
|
+
import type * as React from 'react';
|
|
4
|
+
export type TextSize = TokenSize;
|
|
5
|
+
export type TextColor = TokenTextColor;
|
|
6
|
+
export type TextWeight = TokenWeight;
|
|
7
|
+
export interface TextOwnProps {
|
|
8
|
+
size?: TextSize;
|
|
9
|
+
color?: TextColor;
|
|
10
|
+
weight?: TextWeight;
|
|
11
|
+
htmlFor?: string;
|
|
12
|
+
}
|
|
13
|
+
export type TextProps<TElement extends React.ElementType = 'p'> = PolymorphicComponentProps<TElement, TextOwnProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type TextAreaResize = 'none' | 'vertical' | 'horizontal' | 'both';
|
|
3
|
+
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
full?: boolean;
|
|
8
|
+
resize?: TextAreaResize;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ThemeContextValue, ThemeProviderProps } from './types';
|
|
3
|
+
export type { Theme, ThemeContextValue, ThemeProviderProps } from './types';
|
|
4
|
+
export declare const useTheme: () => ThemeContextValue;
|
|
5
|
+
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ToastPosition } from '../Toast/types';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export type Theme = 'light' | 'dark';
|
|
4
|
+
export interface ThemeContextValue {
|
|
5
|
+
theme: Theme;
|
|
6
|
+
toggleTheme: () => void;
|
|
7
|
+
setTheme: (theme: Theme) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ThemeProviderProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
defaultTheme?: Theme;
|
|
12
|
+
storageKey?: string;
|
|
13
|
+
toastPosition?: ToastPosition;
|
|
14
|
+
toastMaxToasts?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TimelineItemProps, TimelineProps } from './types';
|
|
3
|
+
export type { TimelineItemProps, TimelineProps } from './types';
|
|
4
|
+
export declare const TimelineItem: React.FC<TimelineItemProps>;
|
|
5
|
+
export declare const Timeline: React.FC<TimelineProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface TimelineItemProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
date?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
src?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TimelineProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToastContextValue, ToastProviderProps } from './types';
|
|
3
|
+
export type { ToastColor, ToastContextValue, ToastData, ToastPosition, ToastProviderProps, ToastVariant } from './types';
|
|
4
|
+
export declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
5
|
+
export declare function useToast(): ToastContextValue;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ColorValue } from '../../utils/styleTokens';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export type ToastPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
4
|
+
export type ToastColor = Extract<ColorValue, string>;
|
|
5
|
+
export type ToastVariant = 'default' | 'snackbar';
|
|
6
|
+
export interface ToastData {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
color?: ToastColor;
|
|
11
|
+
variant?: ToastVariant;
|
|
12
|
+
duration?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ToastContextValue {
|
|
15
|
+
toast: (data: Omit<ToastData, 'id'>) => void;
|
|
16
|
+
dismiss: (id: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface ToastProviderProps {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
position?: ToastPosition;
|
|
21
|
+
maxToasts?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface TopBarNavItem {
|
|
3
|
+
label?: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
href?: string;
|
|
7
|
+
to?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TopBarProps extends React.HTMLAttributes<HTMLElement> {
|
|
10
|
+
logo?: React.ReactNode;
|
|
11
|
+
navItems?: TopBarNavItem[];
|
|
12
|
+
navPosition?: 'center' | 'right';
|
|
13
|
+
extraContent?: React.ReactNode;
|
|
14
|
+
themeToggle?: React.ReactNode | boolean;
|
|
15
|
+
sticky?: boolean;
|
|
16
|
+
contentInside?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from './Button/Button';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './IconButton/IconButton';
|
|
4
|
+
export * from './Input/Input';
|
|
5
|
+
export * from './TextArea/TextArea';
|
|
6
|
+
export * from './Search/Search';
|
|
7
|
+
export * from './DatePicker/DatePicker';
|
|
8
|
+
export * from './Select/Select';
|
|
9
|
+
export * from './MultiSelect/MultiSelect';
|
|
10
|
+
export * from './Dropdown/Dropdown';
|
|
11
|
+
export * from './Checkbox/Checkbox';
|
|
12
|
+
export * from './Radio/Radio';
|
|
13
|
+
export * from './Slider/Slider';
|
|
14
|
+
export * from './NumberInput/NumberInput';
|
|
15
|
+
export * from './Carousel/Carousel';
|
|
16
|
+
export * from './FileUpload/FileUpload';
|
|
17
|
+
export * from './Card/Card';
|
|
18
|
+
export * from './Box/Box';
|
|
19
|
+
export * from './Flex/Flex';
|
|
20
|
+
export * from './Grid/Grid';
|
|
21
|
+
export * from './Container/Container';
|
|
22
|
+
export * from './Spacer/Spacer';
|
|
23
|
+
export * from './Divider/Divider';
|
|
24
|
+
export * from './List/List';
|
|
25
|
+
export * from './Accordion/Accordion';
|
|
26
|
+
export * from './Text/Text';
|
|
27
|
+
export * from './Heading/Heading';
|
|
28
|
+
export * from './Code/Code';
|
|
29
|
+
export * from './Link/Link';
|
|
30
|
+
export * from './Badge/Badge';
|
|
31
|
+
export * from './Alert/Alert';
|
|
32
|
+
export * from './Tag/Tag';
|
|
33
|
+
export * from './Avatar/Avatar';
|
|
34
|
+
export * from './Image/Image';
|
|
35
|
+
export * from './Loader/Loader';
|
|
36
|
+
export * from './Skeleton/Skeleton';
|
|
37
|
+
export * from './Switch/Switch';
|
|
38
|
+
export * from './Pagination/Pagination';
|
|
39
|
+
export * from './EmptyState/EmptyState';
|
|
40
|
+
export * from './Modal/Modal';
|
|
41
|
+
export * from './Drawer/Drawer';
|
|
42
|
+
export * from './Tooltip/Tooltip';
|
|
43
|
+
export * from './Toast/Toast';
|
|
44
|
+
export * from './Table/Table';
|
|
45
|
+
export * from './Sidebar/Sidebar';
|
|
46
|
+
export * from './TopBar/TopBar';
|
|
47
|
+
export * from './PageHeader/PageHeader';
|
|
48
|
+
export * from './Breadcrumb/Breadcrumb';
|
|
49
|
+
export * from './Progress/Progress';
|
|
50
|
+
export * from './Tabs/Tabs';
|
|
51
|
+
export * from './Timeline/Timeline';
|
|
52
|
+
export * from './FormField/FormField';
|
|
53
|
+
export * from './ThemeProvider/ThemeProvider';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type LooseStringUnion<T extends string> = T | (string & object);
|
|
3
|
+
export type PropsOf<TElement extends React.ElementType> = React.ComponentPropsWithoutRef<TElement>;
|
|
4
|
+
export type PolymorphicRef<TElement extends React.ElementType> = React.ComponentPropsWithRef<TElement>['ref'];
|
|
5
|
+
export type PolymorphicComponentProps<TElement extends React.ElementType, TOwnProps = object> = TOwnProps & {
|
|
6
|
+
as?: TElement;
|
|
7
|
+
} & Omit<PropsOf<TElement>, keyof TOwnProps | 'as'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface UseOverlayOptions {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
closeOnEscape?: boolean;
|
|
5
|
+
lockScroll?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useOverlay({ isOpen, onClose, closeOnEscape, lockScroll }: UseOverlayOptions): {
|
|
8
|
+
overlayRef: import('react').RefObject<HTMLDivElement>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'name'> {
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconBase({ size, width, height, viewBox, fill, stroke, strokeWidth, strokeLinecap, strokeLinejoin, children, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|