@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,19 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
2
|
+
export interface RatingProps {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange?: (value: number) => void;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
precision?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
emptyIcon?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
showHoverValue?: boolean;
|
|
14
|
+
showValue?: boolean;
|
|
15
|
+
labels?: {
|
|
16
|
+
[index: string]: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Rating';
|
|
1
|
+
export { default } from './Rating';
|
|
@@ -1,18 +1,18 @@
|
|
|
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
|
-
inputClass?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
shadow?: boolean;
|
|
15
|
-
size?: "small" | "medium" | "large";
|
|
16
|
-
rounded?: "small" | "medium" | "full";
|
|
17
|
-
variant?: "filled" | "outlined";
|
|
18
|
-
}
|
|
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
|
+
inputClass?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
shadow?: boolean;
|
|
15
|
+
size?: "small" | "medium" | "large";
|
|
16
|
+
rounded?: "small" | "medium" | "full";
|
|
17
|
+
variant?: "filled" | "outlined";
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Select';
|
|
1
|
+
export { default } from './Select';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare function Sidebar({ items, logoJSX, position, defaultActive, open, onClose, onItemSelect, className }: {
|
|
2
|
-
items?: any[];
|
|
3
|
-
logoJSX: any;
|
|
4
|
-
position: any;
|
|
5
|
-
defaultActive: any;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
onClose: any;
|
|
8
|
-
onItemSelect: any;
|
|
9
|
-
className?: string;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default Sidebar;
|
|
1
|
+
declare function Sidebar({ items, logoJSX, position, defaultActive, open, onClose, onItemSelect, className }: {
|
|
2
|
+
items?: any[];
|
|
3
|
+
logoJSX: any;
|
|
4
|
+
position: any;
|
|
5
|
+
defaultActive: any;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onClose: any;
|
|
8
|
+
onItemSelect: any;
|
|
9
|
+
className?: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Sidebar;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
2
|
+
export type SidebarItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export type SidebarProps = {
|
|
9
|
+
items: SidebarItem[];
|
|
10
|
+
closeSidebar?: () => void;
|
|
11
|
+
logoJSX?: React.ReactNode;
|
|
12
|
+
position?: "left" | "right" | "top" | "bottom";
|
|
13
|
+
defaultActive?: SidebarItem;
|
|
14
|
+
open?: boolean;
|
|
15
|
+
className?: string;
|
|
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,39 +1,39 @@
|
|
|
1
|
-
export type SliderValue = number | [number, number];
|
|
2
|
-
export type SliderSize = 'small' | 'medium' | 'large';
|
|
3
|
-
export type SliderMark = {
|
|
4
|
-
value: number;
|
|
5
|
-
label?: string;
|
|
6
|
-
};
|
|
7
|
-
export interface SliderCommonProps {
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
step?: number;
|
|
11
|
-
/** Theme color token name (map resolves it) */
|
|
12
|
-
color?: string;
|
|
13
|
-
size?: SliderSize;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
className?: string;
|
|
16
|
-
showValue?: boolean;
|
|
17
|
-
showMarks?: boolean;
|
|
18
|
-
marks?: SliderMark[];
|
|
19
|
-
/** Range mode: when true, SliderValue can be a tuple [min, max] */
|
|
20
|
-
range?: boolean;
|
|
21
|
-
/** Minimum distance between thumbs in range mode (in value units) */
|
|
22
|
-
minDistance?: number;
|
|
23
|
-
/** Fires once when interaction ends (pointer up / keyboard commit) */
|
|
24
|
-
onChangeEnd?: (value: SliderValue) => void;
|
|
25
|
-
}
|
|
26
|
-
/** Controlled props: value + onChange required; defaultValue disallowed */
|
|
27
|
-
export type SliderControlledProps = SliderCommonProps & {
|
|
28
|
-
value: SliderValue;
|
|
29
|
-
onChange: (value: SliderValue) => void;
|
|
30
|
-
defaultValue?: never;
|
|
31
|
-
};
|
|
32
|
-
/** Uncontrolled props: defaultValue required; value disallowed; onChange optional */
|
|
33
|
-
export type SliderUncontrolledProps = SliderCommonProps & {
|
|
34
|
-
defaultValue: SliderValue;
|
|
35
|
-
onChange?: (value: SliderValue) => void;
|
|
36
|
-
value?: never;
|
|
37
|
-
};
|
|
38
|
-
/** Public props type */
|
|
39
|
-
export type SliderProps = SliderControlledProps | SliderUncontrolledProps;
|
|
1
|
+
export type SliderValue = number | [number, number];
|
|
2
|
+
export type SliderSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type SliderMark = {
|
|
4
|
+
value: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface SliderCommonProps {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
step?: number;
|
|
11
|
+
/** Theme color token name (map resolves it) */
|
|
12
|
+
color?: string;
|
|
13
|
+
size?: SliderSize;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
showValue?: boolean;
|
|
17
|
+
showMarks?: boolean;
|
|
18
|
+
marks?: SliderMark[];
|
|
19
|
+
/** Range mode: when true, SliderValue can be a tuple [min, max] */
|
|
20
|
+
range?: boolean;
|
|
21
|
+
/** Minimum distance between thumbs in range mode (in value units) */
|
|
22
|
+
minDistance?: number;
|
|
23
|
+
/** Fires once when interaction ends (pointer up / keyboard commit) */
|
|
24
|
+
onChangeEnd?: (value: SliderValue) => void;
|
|
25
|
+
}
|
|
26
|
+
/** Controlled props: value + onChange required; defaultValue disallowed */
|
|
27
|
+
export type SliderControlledProps = SliderCommonProps & {
|
|
28
|
+
value: SliderValue;
|
|
29
|
+
onChange: (value: SliderValue) => void;
|
|
30
|
+
defaultValue?: never;
|
|
31
|
+
};
|
|
32
|
+
/** Uncontrolled props: defaultValue required; value disallowed; onChange optional */
|
|
33
|
+
export type SliderUncontrolledProps = SliderCommonProps & {
|
|
34
|
+
defaultValue: SliderValue;
|
|
35
|
+
onChange?: (value: SliderValue) => void;
|
|
36
|
+
value?: never;
|
|
37
|
+
};
|
|
38
|
+
/** Public props type */
|
|
39
|
+
export type SliderProps = SliderControlledProps | SliderUncontrolledProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Slider';
|
|
1
|
+
export { default } from './Slider';
|
|
@@ -1,42 +1,41 @@
|
|
|
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
|
-
|
|
42
|
-
}
|
|
2
|
+
export type SnackbarPosition = 'top-center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
3
|
+
export interface SnackbarProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the snackbar is open/visible
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
open?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The message to display in the snackbar
|
|
11
|
+
*/
|
|
12
|
+
message: string;
|
|
13
|
+
/**
|
|
14
|
+
* Duration in milliseconds to auto hide the snackbar
|
|
15
|
+
* Set to 0 to disable auto hide
|
|
16
|
+
* @default 4000
|
|
17
|
+
*/
|
|
18
|
+
autoHideDuration?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Position of the snackbar on screen
|
|
21
|
+
* @default 'bottom-center'
|
|
22
|
+
*/
|
|
23
|
+
position?: SnackbarPosition;
|
|
24
|
+
/**
|
|
25
|
+
* Color theme from the ColorMap
|
|
26
|
+
* @default 'dark'
|
|
27
|
+
*/
|
|
28
|
+
color?: CompColor;
|
|
29
|
+
/**
|
|
30
|
+
* Callback fired when the snackbar should close
|
|
31
|
+
*/
|
|
32
|
+
onClose?: () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Custom action element (button, link, etc.)
|
|
35
|
+
*/
|
|
36
|
+
action?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Additional CSS classes to apply to the component
|
|
39
|
+
*/
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Snackbar';
|
|
1
|
+
export { default } from './Snackbar';
|
|
@@ -1,20 +1,19 @@
|
|
|
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
|
-
export
|
|
20
|
-
export default Stepper;
|
|
2
|
+
export type Step = {
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
export type StepperProps = {
|
|
6
|
+
steps: Step[];
|
|
7
|
+
currentStep: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
iconWrapperClass?: string;
|
|
10
|
+
iconClass?: string;
|
|
11
|
+
iconActiveClass?: string;
|
|
12
|
+
iconCompletedClass?: string;
|
|
13
|
+
labelClass?: string;
|
|
14
|
+
activeLabelClass?: string;
|
|
15
|
+
separatorClass?: string;
|
|
16
|
+
onChange?: (stepIndex: number) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const Stepper: React.FC<StepperProps>;
|
|
19
|
+
export default Stepper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Stepper';
|
|
1
|
+
export { default } from './Stepper';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TableProps } from './Table.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default Table;
|
|
2
|
+
declare const Table: <T>({ data, id, columns, pageSize, pageIndex, onPageSizeChange, onPageChange, rowOptionArray, totalRecords, className, paginationClassName, tdClassName, thClassName, responsive, }: TableProps<T> & {
|
|
3
|
+
totalRecords?: number;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default Table;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
2
|
+
export interface TableProps<T> {
|
|
3
|
+
data: T[];
|
|
4
|
+
columns: ColumnDef<T>[];
|
|
5
|
+
pageSize: number;
|
|
6
|
+
pageIndex: number;
|
|
7
|
+
onPageSizeChange: (newSize: number) => void;
|
|
8
|
+
onPageChange: (newPageIndex: number) => void;
|
|
9
|
+
rowOptionArray?: number[];
|
|
10
|
+
totalRecords?: number;
|
|
11
|
+
className?: string;
|
|
12
|
+
paginationClassName?: string;
|
|
13
|
+
tdClassName?: string;
|
|
14
|
+
thClassName?: string;
|
|
15
|
+
responsive?: boolean;
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Table';
|
|
1
|
+
export { default } from './Table';
|
|
@@ -1,20 +1,19 @@
|
|
|
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
|
-
}
|
|
2
|
+
export type Tab = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
content: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export interface TabsProps {
|
|
9
|
+
tabs: Tab[];
|
|
10
|
+
activeKey: string;
|
|
11
|
+
onChange: (key: string) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
tabsClass?: string;
|
|
14
|
+
tabItemClass?: string;
|
|
15
|
+
tabItemActiveClass?: string;
|
|
16
|
+
tabContentClass?: string;
|
|
17
|
+
indicatorClass?: string;
|
|
18
|
+
variant?: "horizontal" | "vertical";
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Tabs';
|
|
1
|
+
export { default } from './Tabs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
-
label?: string;
|
|
3
|
-
error?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
inputClass?: string;
|
|
6
|
-
labelClass?: string;
|
|
7
|
-
variant?: 'outlined' | 'filled';
|
|
8
|
-
size?: 'small' | 'medium' | 'large';
|
|
9
|
-
}
|
|
1
|
+
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
+
label?: string;
|
|
3
|
+
error?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
inputClass?: string;
|
|
6
|
+
labelClass?: string;
|
|
7
|
+
variant?: 'outlined' | 'filled';
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './TextArea';
|
|
1
|
+
export { default } from './TextArea';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ITextInputProps } from './TextInput.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TextInput;
|
|
2
|
+
declare const TextInput: import('react').ForwardRefExoticComponent<ITextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default TextInput;
|