@unizap/uniui 1.0.6 → 1.0.7
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/components/Accordion/Accordion.d.ts +3 -2
- package/dist/components/Accordion/Accordion.types.d.ts +13 -12
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts +2 -1
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -13
- package/dist/components/ActionMenu/index.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +3 -2
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/{SearchBar/SearchBar.d.ts → Autocomplete/Autocomplete.d.ts} +4 -3
- package/dist/components/{SearchBar/SearchBar.types.d.ts → Autocomplete/Autocomplete.types.d.ts} +24 -24
- package/dist/components/Autocomplete/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -2
- package/dist/components/Avatar/Avatar.types.d.ts +10 -9
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -2
- package/dist/components/Badge/Badge.types.d.ts +9 -8
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +3 -2
- 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 +3 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -9
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Button/Button.types.d.ts +17 -16
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +3 -2
- package/dist/components/Card/Card.types.d.ts +17 -16
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/CardWrapper/CardWrapper.d.ts +8 -7
- 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 +3 -2
- package/dist/components/Carousel/Carousel.types.d.ts +21 -21
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -9
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +3 -2
- 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 +3 -2
- package/dist/components/DatePicker/DatePicker.types.d.ts +16 -16
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -2
- package/dist/components/Dialog/Dialog.types.d.ts +17 -16
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +3 -2
- 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 +3 -2
- package/dist/components/Drawer/Drawer.types.d.ts +12 -11
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -2
- 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 +3 -2
- 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 +3 -2
- package/dist/components/EmptyState/EmptyState.types.d.ts +18 -17
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -2
- package/dist/components/IconButton/IconButton.types.d.ts +11 -10
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/List/List.types.d.ts +10 -9
- package/dist/components/List/ListItem.d.ts +3 -2
- package/dist/components/List/index.d.ts +2 -2
- 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/Pagination/Pagination.d.ts +3 -2
- package/dist/components/Pagination/Pagination.types.d.ts +8 -8
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +3 -2
- package/dist/components/PasswordInput/index.d.ts +1 -1
- package/dist/components/Pill/Pill.d.ts +3 -2
- package/dist/components/Pill/Pill.type.d.ts +8 -7
- package/dist/components/Pill/index.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -9
- 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 +3 -2
- package/dist/components/Progress/Progress.types.d.ts +48 -47
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -15
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -2
- package/dist/components/Select/Select.types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +10 -10
- package/dist/components/Sidebar/Sidebar.types.d.ts +16 -15
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +3 -2
- 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 +3 -2
- package/dist/components/Slider/Slider.types.d.ts +21 -20
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +3 -2
- package/dist/components/Snackbar/Snackbar.types.d.ts +41 -40
- package/dist/components/Snackbar/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.d.ts +12 -11
- 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 +5 -4
- package/dist/components/Table/Table.types.d.ts +15 -14
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -2
- package/dist/components/Tabs/Tabs.types.d.ts +17 -16
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +3 -2
- package/dist/components/TextArea/TextArea.types.d.ts +7 -7
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +3 -2
- package/dist/components/TextInput/TextInput.types.d.ts +15 -15
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -7
- package/dist/components/ToggleSwitch/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -2
- 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 +3 -2
- package/dist/components/Typography/Typography.types.d.ts +8 -7
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/index.d.ts +42 -42
- package/dist/components/otpInput/OtpInput.d.ts +3 -2
- package/dist/components/otpInput/OtpInput.type.d.ts +13 -12
- package/dist/components/otpInput/index.d.ts +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/uniui.css +1 -2209
- package/dist/uniui.js +2025 -2092
- package/dist/uniui.umd.cjs +74 -71
- package/dist/utils/ColorMap.d.ts +29 -156
- package/dist/utils/constants.d.ts +1 -1
- package/package.json +80 -48
- package/dist/components/SearchBar/index.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './RadioGroup';
|
|
1
|
+
export { default } from './RadioGroup';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export interface ISelectOption {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ISelectProps {
|
|
6
|
-
label?: string;
|
|
7
|
-
value: string;
|
|
8
|
-
onChange: (value: string) => void;
|
|
9
|
-
options: ISelectOption[];
|
|
10
|
-
className?: string;
|
|
11
|
-
labelClass?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
shadow?: boolean;
|
|
14
|
-
size?: "small" | "medium" | "large";
|
|
15
|
-
rounded?: "small" | "medium" | "full";
|
|
16
|
-
variant?: "filled" | "outlined";
|
|
17
|
-
}
|
|
1
|
+
export interface ISelectOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ISelectProps {
|
|
6
|
+
label?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
options: ISelectOption[];
|
|
10
|
+
className?: string;
|
|
11
|
+
labelClass?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
shadow?: boolean;
|
|
14
|
+
size?: "small" | "medium" | "large";
|
|
15
|
+
rounded?: "small" | "medium" | "full";
|
|
16
|
+
variant?: "filled" | "outlined";
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Select';
|
|
1
|
+
export { default } from './Select';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare function Sidebar({ items, logoJSX, position, defaultActive, open, onClose, onItemSelect, }: {
|
|
2
|
-
items?: any[];
|
|
3
|
-
logoJSX: any;
|
|
4
|
-
position: any;
|
|
5
|
-
defaultActive: any;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
onClose: any;
|
|
8
|
-
onItemSelect: any;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Sidebar;
|
|
1
|
+
declare function Sidebar({ items, logoJSX, position, defaultActive, open, onClose, onItemSelect, }: {
|
|
2
|
+
items?: any[];
|
|
3
|
+
logoJSX: any;
|
|
4
|
+
position: any;
|
|
5
|
+
defaultActive: any;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onClose: any;
|
|
8
|
+
onItemSelect: any;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Sidebar;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
|
|
3
|
+
export type SidebarItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
href?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type SidebarProps = {
|
|
10
|
+
items: SidebarItem[];
|
|
11
|
+
closeSidebar?: () => void;
|
|
12
|
+
logoJSX?: React.ReactNode;
|
|
13
|
+
position?: "left" | "right" | "top" | "bottom";
|
|
14
|
+
defaultActive?: SidebarItem;
|
|
15
|
+
open?: boolean;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Sidebar';
|
|
1
|
+
export { default } from './Sidebar';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export type SkeletonAnimation = 'pulse' | 'wave';
|
|
2
|
-
export type SkeletonVariant = 'circular' | 'rectangular' | 'rounded' | 'text';
|
|
3
|
-
export interface SkeletonProps {
|
|
4
|
-
/**
|
|
5
|
-
* The type of animation to display
|
|
6
|
-
* @default 'pulse'
|
|
7
|
-
*/
|
|
8
|
-
animation?: SkeletonAnimation;
|
|
9
|
-
/**
|
|
10
|
-
* The variant of skeleton to display
|
|
11
|
-
* @default 'rectangular'
|
|
12
|
-
*/
|
|
13
|
-
variant?: SkeletonVariant;
|
|
14
|
-
/**
|
|
15
|
-
* The width of the skeleton in pixels
|
|
16
|
-
* @default undefined (full width for text, auto for others)
|
|
17
|
-
*/
|
|
18
|
-
width?: number;
|
|
19
|
-
/**
|
|
20
|
-
* The height of the skeleton in pixels
|
|
21
|
-
* @default undefined (auto height based on variant)
|
|
22
|
-
*/
|
|
23
|
-
height?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Additional CSS classes to apply to the component
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
1
|
+
export type SkeletonAnimation = 'pulse' | 'wave';
|
|
2
|
+
export type SkeletonVariant = 'circular' | 'rectangular' | 'rounded' | 'text';
|
|
3
|
+
export interface SkeletonProps {
|
|
4
|
+
/**
|
|
5
|
+
* The type of animation to display
|
|
6
|
+
* @default 'pulse'
|
|
7
|
+
*/
|
|
8
|
+
animation?: SkeletonAnimation;
|
|
9
|
+
/**
|
|
10
|
+
* The variant of skeleton to display
|
|
11
|
+
* @default 'rectangular'
|
|
12
|
+
*/
|
|
13
|
+
variant?: SkeletonVariant;
|
|
14
|
+
/**
|
|
15
|
+
* The width of the skeleton in pixels
|
|
16
|
+
* @default undefined (full width for text, auto for others)
|
|
17
|
+
*/
|
|
18
|
+
width?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The height of the skeleton in pixels
|
|
21
|
+
* @default undefined (auto height based on variant)
|
|
22
|
+
*/
|
|
23
|
+
height?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Additional CSS classes to apply to the component
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Skeleton';
|
|
1
|
+
export { default } from './Skeleton';
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
|
|
3
|
+
export interface SliderMark {
|
|
4
|
+
value: number;
|
|
5
|
+
label?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface SliderProps {
|
|
8
|
+
value: number | [number, number];
|
|
9
|
+
onChange: (value: number | [number, number]) => void;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
step?: number;
|
|
13
|
+
color?: CompColor;
|
|
14
|
+
size?: 'small' | 'medium' | 'large';
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
showValue?: boolean;
|
|
18
|
+
showMarks?: boolean;
|
|
19
|
+
marks?: SliderMark[];
|
|
20
|
+
range?: boolean;
|
|
21
|
+
minDistance?: number;
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Slider';
|
|
1
|
+
export { default } from './Slider';
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
export
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
2
|
+
|
|
3
|
+
export type SnackbarPosition = 'top-center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
4
|
+
export interface SnackbarProps {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the snackbar is open/visible
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The message to display in the snackbar
|
|
12
|
+
*/
|
|
13
|
+
message: string;
|
|
14
|
+
/**
|
|
15
|
+
* Duration in milliseconds to auto hide the snackbar
|
|
16
|
+
* Set to 0 to disable auto hide
|
|
17
|
+
* @default 4000
|
|
18
|
+
*/
|
|
19
|
+
autoHideDuration?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Position of the snackbar on screen
|
|
22
|
+
* @default 'bottom-center'
|
|
23
|
+
*/
|
|
24
|
+
position?: SnackbarPosition;
|
|
25
|
+
/**
|
|
26
|
+
* Color theme from the ColorMap
|
|
27
|
+
* @default 'dark'
|
|
28
|
+
*/
|
|
29
|
+
color?: CompColor;
|
|
30
|
+
/**
|
|
31
|
+
* Callback fired when the snackbar should close
|
|
32
|
+
*/
|
|
33
|
+
onClose?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Custom action element (button, link, etc.)
|
|
36
|
+
*/
|
|
37
|
+
action?: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Additional CSS classes to apply to the component
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Snackbar';
|
|
1
|
+
export { default } from './Snackbar';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export
|
|
2
|
+
|
|
3
|
+
export type Step = {
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export type StepperProps = {
|
|
7
|
+
steps: Step[];
|
|
8
|
+
currentStep: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
onChange?: (stepIndex: number) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const Stepper: React.FC<StepperProps>;
|
|
13
|
+
export default Stepper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Stepper';
|
|
1
|
+
export { default } from './Stepper';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TableProps } from './Table.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
|
|
3
|
+
declare const Table: <T>({ data, columns, pageSize, pageIndex, onPageSizeChange, onPageChange, rowOptionArray, totalRecords, className, paginationClassName, tdClassName, thClassName, }: TableProps<T> & {
|
|
4
|
+
totalRecords?: number;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Table;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
|
|
3
|
+
export interface TableProps<T> {
|
|
4
|
+
data: T[];
|
|
5
|
+
columns: ColumnDef<T>[];
|
|
6
|
+
pageSize: number;
|
|
7
|
+
pageIndex: number;
|
|
8
|
+
onPageSizeChange: (newSize: number) => void;
|
|
9
|
+
onPageChange: (newPageIndex: number) => void;
|
|
10
|
+
rowOptionArray?: number[];
|
|
11
|
+
totalRecords?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
paginationClassName?: string;
|
|
14
|
+
tdClassName?: string;
|
|
15
|
+
thClassName?: string;
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Table';
|
|
1
|
+
export { default } from './Table';
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
|
|
3
|
+
export type Tab = {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
content: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export interface TabsProps {
|
|
10
|
+
tabs: Tab[];
|
|
11
|
+
activeKey: string;
|
|
12
|
+
onChange: (key: string) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
tabsClass?: string;
|
|
15
|
+
tabItemClass?: string;
|
|
16
|
+
tabContentClass?: string;
|
|
17
|
+
variant?: "horizontal" | "vertical";
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tabs';
|
|
1
|
+
export { default } from './Tabs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
-
label?: string;
|
|
3
|
-
error?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
inputClass?: string;
|
|
6
|
-
labelClass?: string;
|
|
7
|
-
}
|
|
1
|
+
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
+
label?: string;
|
|
3
|
+
error?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
inputClass?: string;
|
|
6
|
+
labelClass?: string;
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './TextArea';
|
|
1
|
+
export { default } from './TextArea';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ITextInputProps } from './TextInput.types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
declare const TextInput: import('react').ForwardRefExoticComponent<ITextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export default TextInput;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface ITextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
-
placeholder?: string;
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
type?: string;
|
|
6
|
-
labelClassName?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
inputClass?: string;
|
|
9
|
-
iconStyle?: string;
|
|
10
|
-
startIcon?: React.ReactNode;
|
|
11
|
-
endIcon?: React.ReactNode;
|
|
12
|
-
error?: string;
|
|
13
|
-
maxLength?: number;
|
|
14
|
-
label?: string;
|
|
15
|
-
}
|
|
1
|
+
export interface ITextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
type?: string;
|
|
6
|
+
labelClassName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
inputClass?: string;
|
|
9
|
+
iconStyle?: string;
|
|
10
|
+
startIcon?: React.ReactNode;
|
|
11
|
+
endIcon?: React.ReactNode;
|
|
12
|
+
error?: string;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './TextInput';
|
|
1
|
+
export { default } from './TextInput';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
|
|
3
|
+
export interface ToggleSwitchProps {
|
|
4
|
+
initialState?: boolean;
|
|
5
|
+
onToggle?: (state: boolean) => Promise<void> | void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
color: CompColor;
|
|
8
|
+
type?: "submit" | "reset" | "button";
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ToggleSwitch';
|
|
1
|
+
export { default } from './ToggleSwitch';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface TooltipProps {
|
|
2
|
-
content: string;
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
5
|
-
}
|
|
1
|
+
export interface TooltipProps {
|
|
2
|
+
content: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
5
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tooltip';
|
|
1
|
+
export { default } from './Tooltip';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ITypographyProps } from './Typography.types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
4
|
+
declare const Typography: React.FC<ITypographyProps>;
|
|
5
|
+
export default Typography;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
|
|
3
|
+
export interface ITypographyProps {
|
|
4
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
|
|
5
|
+
component?: React.ElementType;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
color?: 'default' | 'primary' | 'secondary' | 'accent' | 'muted' | 'error' | 'success';
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Typography';
|
|
1
|
+
export { default } from './Typography';
|