@unizap/uniui 1.0.58 → 1.0.60
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 +187 -187
- package/dist/components/Accordion/Accordion.d.ts +2 -3
- package/dist/components/Accordion/Accordion.types.d.ts +12 -13
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts +1 -2
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -15
- package/dist/components/ActionMenu/index.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +2 -3
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -3
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +24 -24
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +2 -3
- package/dist/components/Avatar/Avatar.types.d.ts +9 -10
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Backdrop/Backdrop.d.ts +2 -3
- package/dist/components/Backdrop/Backdrop.types.d.ts +6 -6
- package/dist/components/Backdrop/index.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -3
- package/dist/components/Badge/Badge.types.d.ts +8 -9
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +2 -3
- package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -14
- package/dist/components/BottomNavigation/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +12 -12
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Button/Button.types.d.ts +17 -18
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +2 -3
- package/dist/components/Card/Card.types.d.ts +16 -17
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/CardWrapper/CardWrapper.d.ts +7 -8
- package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -1
- package/dist/components/CardWrapper/index.d.ts +1 -1
- package/dist/components/Carousel/Carousel.d.ts +2 -3
- package/dist/components/Carousel/Carousel.types.d.ts +32 -33
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -3
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -9
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CollapsableCard/CollapsableCard.d.ts +2 -3
- package/dist/components/CollapsableCard/CollapsableCard.types.d.ts +17 -18
- package/dist/components/CollapsableCard/index.d.ts +1 -1
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +2 -3
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -12
- package/dist/components/DashboardStatBoxes/index.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -3
- package/dist/components/DatePicker/DatePicker.types.d.ts +32 -27
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +2 -3
- package/dist/components/Dialog/Dialog.types.d.ts +17 -18
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +2 -3
- package/dist/components/Divider/Divider.types.d.ts +6 -6
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +2 -3
- package/dist/components/Drawer/Drawer.types.d.ts +11 -12
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -3
- package/dist/components/Dropdown/Dropdown.types.d.ts +11 -11
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +2 -3
- package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -23
- package/dist/components/DropzoneUploader/index.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +2 -3
- package/dist/components/EmptyState/EmptyState.types.d.ts +19 -20
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -3
- package/dist/components/IconButton/IconButton.types.d.ts +11 -12
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/List/List.d.ts +2 -3
- package/dist/components/List/List.types.d.ts +9 -10
- package/dist/components/List/ListItem/ListItem.d.ts +2 -3
- package/dist/components/List/ListItem/index.d.ts +1 -1
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts +8 -8
- package/dist/components/Menu/Menu.types.d.ts +1 -1
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +2 -3
- package/dist/components/NumberInput/NumberInput.types.d.ts +16 -16
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -3
- package/dist/components/Pagination/Pagination.types.d.ts +10 -10
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +2 -3
- package/dist/components/PasswordInput/index.d.ts +1 -1
- package/dist/components/Pill/Pill.d.ts +2 -3
- package/dist/components/Pill/Pill.type.d.ts +18 -19
- package/dist/components/Pill/index.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +11 -12
- package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/index.d.ts +1 -1
- package/dist/components/Progress/Progress.d.ts +2 -3
- package/dist/components/Progress/Progress.types.d.ts +47 -48
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +32 -17
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/Rating/Rating.d.ts +2 -3
- package/dist/components/Rating/Rating.types.d.ts +17 -18
- package/dist/components/Rating/index.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +2 -3
- package/dist/components/Select/Select.types.d.ts +18 -18
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +11 -11
- package/dist/components/Sidebar/Sidebar.types.d.ts +16 -17
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +2 -3
- package/dist/components/Skeleton/Skeleton.types.d.ts +28 -28
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts +2 -3
- package/dist/components/Slider/Slider.types.d.ts +39 -39
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +2 -3
- package/dist/components/Snackbar/Snackbar.types.d.ts +40 -41
- package/dist/components/Snackbar/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.d.ts +18 -19
- package/dist/components/Stepper/Stepper.type.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +4 -5
- package/dist/components/Table/Table.types.d.ts +16 -17
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +2 -3
- package/dist/components/Tabs/Tabs.types.d.ts +18 -19
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +2 -3
- package/dist/components/TextArea/TextArea.types.d.ts +9 -9
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +2 -3
- package/dist/components/TextInput/TextInput.types.d.ts +18 -18
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -3
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.types.d.ts +18 -19
- package/dist/components/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +2 -3
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +9 -10
- package/dist/components/ToggleSwitch/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.type.d.ts +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +2 -3
- package/dist/components/Typography/Typography.types.d.ts +8 -9
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/index.d.ts +49 -49
- package/dist/components/otpInput/OtpInput.d.ts +2 -3
- package/dist/components/otpInput/OtpInput.type.d.ts +12 -13
- package/dist/components/otpInput/index.d.ts +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/uniui.js +2115 -1834
- package/dist/uniui.umd.cjs +73 -69
- package/dist/utils/ColorMap.d.ts +31 -31
- package/dist/utils/constants.d.ts +1 -1
- package/package.json +94 -91
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface NavItem {
|
|
2
|
-
label: string;
|
|
3
|
-
icon: React.ReactNode;
|
|
4
|
-
path: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BottomNavigationProps {
|
|
7
|
-
variant?: 'floating' | 'static' | 'fixed';
|
|
8
|
-
activeTab: string;
|
|
9
|
-
navItems: NavItem[];
|
|
10
|
-
onTabChange: (label: string) => void;
|
|
11
|
-
className?: string;
|
|
12
|
-
activeClass?: string;
|
|
13
|
-
buttonClass?: string;
|
|
14
|
-
}
|
|
1
|
+
export interface NavItem {
|
|
2
|
+
label: string;
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
path: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BottomNavigationProps {
|
|
7
|
+
variant?: 'floating' | 'static' | 'fixed';
|
|
8
|
+
activeTab: string;
|
|
9
|
+
navItems: NavItem[];
|
|
10
|
+
onTabChange: (label: string) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
activeClass?: string;
|
|
13
|
+
buttonClass?: string;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './BottomNavigation';
|
|
1
|
+
export { default } from './BottomNavigation';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { BreadcrumbsProps } from './Breadcrumbs.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default Breadcrumbs;
|
|
2
|
+
declare const Breadcrumbs: ({ items, separator, className, itemClass, spanClass, separatorClass }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Breadcrumbs;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface BreadcrumbItem {
|
|
2
|
-
label: string;
|
|
3
|
-
href?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface BreadcrumbsProps {
|
|
6
|
-
items: BreadcrumbItem[];
|
|
7
|
-
separator?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
itemClass?: string;
|
|
10
|
-
spanClass?: string;
|
|
11
|
-
separatorClass?: string;
|
|
12
|
-
}
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BreadcrumbsProps {
|
|
6
|
+
items: BreadcrumbItem[];
|
|
7
|
+
separator?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
itemClass?: string;
|
|
10
|
+
spanClass?: string;
|
|
11
|
+
separatorClass?: string;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Breadcrumbs';
|
|
1
|
+
export { default } from './Breadcrumbs';
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CompColor } from '../../utils/ColorMap';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
3
|
+
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
title?: string;
|
|
5
|
+
variant?: 'filled' | 'outlined' | 'transparent';
|
|
6
|
+
color?: CompColor;
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
roundedFull?: boolean;
|
|
13
|
+
startIcon?: React.ReactNode;
|
|
14
|
+
endIcon?: React.ReactNode;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
17
|
+
type?: 'submit' | 'reset' | 'button';
|
|
18
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Button';
|
|
1
|
+
export { default } from './Button';
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
2
|
+
export interface ICardProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
space?: 'none' | 'small' | 'medium' | 'large';
|
|
6
|
+
shadow?: 'default' | 'small' | 'medium' | 'large';
|
|
7
|
+
roundness?: 'small' | 'medium' | 'large';
|
|
8
|
+
image?: string;
|
|
9
|
+
divider?: boolean;
|
|
10
|
+
actionMenu?: React.ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
hoverable?: boolean;
|
|
14
|
+
bordered?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
loaderJsx?: boolean;
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Card';
|
|
1
|
+
export { default } from './Card';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default CardWrapper;
|
|
2
|
+
interface CardWrapperProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
border?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const CardWrapper: React.FC<CardWrapperProps>;
|
|
8
|
+
export default CardWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './CardWrapper';
|
|
1
|
+
export { default } from './CardWrapper';
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
2
|
+
export interface ResponsiveCarouselConfig {
|
|
3
|
+
perview?: number;
|
|
4
|
+
gap?: number;
|
|
5
|
+
showArrows?: boolean;
|
|
6
|
+
showIndicators?: boolean;
|
|
7
|
+
showThumbs?: boolean;
|
|
8
|
+
swipeable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CarouselProps {
|
|
11
|
+
children: ReactNode[];
|
|
12
|
+
width?: string | number;
|
|
13
|
+
height?: string | number;
|
|
14
|
+
showIndicators?: boolean;
|
|
15
|
+
showArrows?: boolean;
|
|
16
|
+
autoplay?: boolean;
|
|
17
|
+
interval?: number;
|
|
18
|
+
infiniteLoop?: boolean;
|
|
19
|
+
perview?: number;
|
|
20
|
+
gap?: number;
|
|
21
|
+
onClickItem?: (index: number) => void;
|
|
22
|
+
showThumbs?: boolean;
|
|
23
|
+
pauseOnHover?: boolean;
|
|
24
|
+
swipeable?: boolean;
|
|
25
|
+
thumbWidth?: number;
|
|
26
|
+
orientation?: 'horizontal' | 'vertical';
|
|
27
|
+
nextIcon?: ReactNode;
|
|
28
|
+
prevIcon?: ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
mobile?: ResponsiveCarouselConfig;
|
|
31
|
+
tablet?: ResponsiveCarouselConfig;
|
|
32
|
+
desktop?: ResponsiveCarouselConfig;
|
|
33
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Carousel';
|
|
1
|
+
export { default } from './Carousel';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface ICheckboxProps {
|
|
2
|
-
label?: string;
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
onChange?: (checked: boolean) => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
labelClass?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
}
|
|
1
|
+
export interface ICheckboxProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onChange?: (checked: boolean) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
labelClass?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Checkbox';
|
|
1
|
+
export { default } from './Checkbox';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ICardProps } from './CollapsableCard.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default CollapsableCard;
|
|
3
|
+
declare const CollapsableCard: React.FC<ICardProps>;
|
|
4
|
+
export default CollapsableCard;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
2
|
+
export interface ICardProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
space?: 'none' | 'small' | 'medium' | 'large';
|
|
6
|
+
shadow?: 'default' | 'small' | 'medium' | 'large';
|
|
7
|
+
roundness?: 'small' | 'medium' | 'large';
|
|
8
|
+
image?: string;
|
|
9
|
+
divider?: boolean;
|
|
10
|
+
actionMenu?: React.ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
hoverable?: boolean;
|
|
14
|
+
bordered?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
loaderJsx?: boolean;
|
|
17
|
+
collapsibleButton?: React.ReactNode;
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './CollapsableCard';
|
|
1
|
+
export { default } from './CollapsableCard';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { DashboardStatBoxesProps } from './DashboardStatBoxes.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default DashboardStatBoxes;
|
|
2
|
+
declare const DashboardStatBoxes: ({ stats, className, }: DashboardStatBoxesProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default DashboardStatBoxes;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type DashboardStatBox = {
|
|
2
|
-
icon: React.ReactNode;
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
accentColor?: string;
|
|
7
|
-
accentBackground?: string;
|
|
8
|
-
};
|
|
9
|
-
export type DashboardStatBoxesProps = {
|
|
10
|
-
stats: DashboardStatBox[];
|
|
11
|
-
className?: string;
|
|
12
|
-
};
|
|
1
|
+
export type DashboardStatBox = {
|
|
2
|
+
icon: React.ReactNode;
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
accentColor?: string;
|
|
7
|
+
accentBackground?: string;
|
|
8
|
+
};
|
|
9
|
+
export type DashboardStatBoxesProps = {
|
|
10
|
+
stats: DashboardStatBox[];
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DashboardStatBoxes';
|
|
1
|
+
export { default } from './DashboardStatBoxes';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { DatePickerProps } from './DatePicker.types';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export default DatePicker;
|
|
2
|
+
export declare const DatePicker: ({ mode, type, showTime, onlyTime, className, onChange, onConfirm, onCancel, placeholder, icon, disableBefore, disableAfter, selectedDate, hideFutureDates, defaultDate, fromDate, toDate, minimumDate, maxDate, defaultTime, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default DatePicker;
|
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
export interface DatePickerProps {
|
|
2
|
-
mode?: 'single' | 'range';
|
|
3
|
-
type?: 'inline' | 'dialog';
|
|
4
|
-
showTime?: boolean;
|
|
5
|
-
onlyTime?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
onChange?: (value: number | null | {
|
|
8
|
-
startDate: number | null;
|
|
9
|
-
endDate: number | null;
|
|
10
|
-
}) => void;
|
|
11
|
-
onConfirm?: (value: number | null | {
|
|
12
|
-
startDate: number | null;
|
|
13
|
-
endDate: number | null;
|
|
14
|
-
}) => void;
|
|
15
|
-
onCancel?: () => void;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
icon?: React.ReactNode;
|
|
18
|
-
disableBefore?: number;
|
|
19
|
-
disableAfter?: number;
|
|
20
|
-
selectedDate?: number | null;
|
|
21
|
-
hideFutureDates?: boolean;
|
|
22
|
-
defaultDate?: number | string;
|
|
23
|
-
fromDate?: number | null;
|
|
24
|
-
toDate?: number | null;
|
|
25
|
-
minimumDate?: number | string | Date;
|
|
26
|
-
maxDate?: number | string | Date;
|
|
27
|
-
|
|
1
|
+
export interface DatePickerProps {
|
|
2
|
+
mode?: 'single' | 'range';
|
|
3
|
+
type?: 'inline' | 'dialog';
|
|
4
|
+
showTime?: boolean;
|
|
5
|
+
onlyTime?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
onChange?: (value: number | null | {
|
|
8
|
+
startDate: number | null;
|
|
9
|
+
endDate: number | null;
|
|
10
|
+
}) => void;
|
|
11
|
+
onConfirm?: (value: number | null | {
|
|
12
|
+
startDate: number | null;
|
|
13
|
+
endDate: number | null;
|
|
14
|
+
}) => void;
|
|
15
|
+
onCancel?: () => void;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
icon?: React.ReactNode;
|
|
18
|
+
disableBefore?: number;
|
|
19
|
+
disableAfter?: number;
|
|
20
|
+
selectedDate?: number | null;
|
|
21
|
+
hideFutureDates?: boolean;
|
|
22
|
+
defaultDate?: number | string;
|
|
23
|
+
fromDate?: number | null;
|
|
24
|
+
toDate?: number | null;
|
|
25
|
+
minimumDate?: number | string | Date;
|
|
26
|
+
maxDate?: number | string | Date;
|
|
27
|
+
defaultTime?: string | {
|
|
28
|
+
hour: number;
|
|
29
|
+
minute: number;
|
|
30
|
+
ampm: 'AM' | 'PM';
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DatePicker';
|
|
1
|
+
export { default } from './DatePicker';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { DialogProps, DialogHandle } from './Dialog.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default Dialog;
|
|
2
|
+
declare const Dialog: import('react').ForwardRefExoticComponent<DialogProps & import('react').RefAttributes<DialogHandle>>;
|
|
3
|
+
export default Dialog;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
shouldClose?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
showCloseIcon?: boolean;
|
|
11
|
+
fullscreen?: boolean;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '4xl' | '6xl';
|
|
14
|
+
}
|
|
15
|
+
export interface DialogHandle {
|
|
16
|
+
open: () => void;
|
|
17
|
+
close: () => void;
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Dialog';
|
|
1
|
+
export { default } from './Dialog';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type DividerProps = {
|
|
2
|
-
orientation?: 'horizontal' | 'vertical';
|
|
3
|
-
variant?: 'fullWidth' | 'inset';
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
1
|
+
export type DividerProps = {
|
|
2
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3
|
+
variant?: 'fullWidth' | 'inset';
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Divider';
|
|
1
|
+
export { default } from './Divider';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DrawerProps } from './Drawer.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default Drawer;
|
|
3
|
+
declare const Drawer: ({ open, onClose, className, title, children, childrenClass, actions, showCloseIcon, anchor, }: DrawerProps) => React.ReactPortal;
|
|
4
|
+
export default Drawer;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
2
|
+
export interface DrawerProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
childrenClass?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
showCloseIcon?: boolean;
|
|
11
|
+
anchor?: 'left' | 'right' | 'top' | 'bottom';
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Drawer';
|
|
1
|
+
export { default } from './Drawer';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface DropdownItemTypes {
|
|
2
|
-
label: React.ReactNode;
|
|
3
|
-
onClick: (val: any) => void;
|
|
4
|
-
}
|
|
5
|
-
export interface IDropdownProps {
|
|
6
|
-
selected?: DropdownItemTypes;
|
|
7
|
-
items: DropdownItemTypes[];
|
|
8
|
-
className?: string;
|
|
9
|
-
menuClassName?: string;
|
|
10
|
-
stayOpenOnSelect?: boolean;
|
|
11
|
-
}
|
|
1
|
+
export interface DropdownItemTypes {
|
|
2
|
+
label: React.ReactNode;
|
|
3
|
+
onClick: (val: any) => void;
|
|
4
|
+
}
|
|
5
|
+
export interface IDropdownProps {
|
|
6
|
+
selected?: DropdownItemTypes;
|
|
7
|
+
items: DropdownItemTypes[];
|
|
8
|
+
className?: string;
|
|
9
|
+
menuClassName?: string;
|
|
10
|
+
stayOpenOnSelect?: boolean;
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Dropdown';
|
|
1
|
+
export { default } from './Dropdown';
|