@unizap/uniui 1.0.4 → 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 +5 -0
- package/dist/components/Accordion/Accordion.types.d.ts +14 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +3 -0
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +15 -0
- package/dist/components/ActionMenu/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +5 -0
- package/dist/components/Alert/Alert.types.d.ts +8 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +5 -0
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +24 -0
- package/dist/components/Autocomplete/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +4 -0
- package/dist/components/Avatar/Avatar.types.d.ts +11 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +5 -0
- package/dist/components/Badge/Badge.types.d.ts +10 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +5 -0
- package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -0
- package/dist/components/BottomNavigation/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.types.d.ts +19 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +5 -0
- package/dist/components/Card/Card.types.d.ts +18 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/CardWrapper/CardWrapper.d.ts +9 -0
- package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -0
- package/dist/components/CardWrapper/index.d.ts +1 -0
- package/dist/components/Carousel/Carousel.d.ts +5 -0
- package/dist/components/Carousel/Carousel.types.d.ts +21 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +4 -0
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -0
- package/dist/components/DashboardStatBoxes/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +16 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +4 -0
- package/dist/components/Dialog/Dialog.types.d.ts +18 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +5 -0
- package/dist/components/Divider/Divider.types.d.ts +6 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +5 -0
- package/dist/components/Drawer/Drawer.types.d.ts +13 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +5 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +11 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +5 -0
- package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -0
- package/dist/components/DropzoneUploader/index.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +5 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +19 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +5 -0
- package/dist/components/IconButton/IconButton.types.d.ts +13 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/List/List.d.ts +4 -0
- package/dist/components/List/List.types.d.ts +11 -0
- package/dist/components/List/ListItem.d.ts +4 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/Menu/Menu.d.ts +8 -0
- package/dist/components/Menu/Menu.types.d.ts +1 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +5 -0
- package/dist/components/Pagination/Pagination.types.d.ts +8 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +4 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/Pill/Pill.d.ts +5 -0
- package/dist/components/Pill/Pill.type.d.ts +9 -0
- package/dist/components/Pill/index.d.ts +1 -0
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +11 -0
- package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -0
- package/dist/components/ProfileImageShowcase/index.d.ts +1 -0
- package/dist/components/Progress/Progress.d.ts +5 -0
- package/dist/components/Progress/Progress.types.d.ts +49 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +5 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +17 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +5 -0
- package/dist/components/Select/Select.types.d.ts +17 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +10 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +17 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +5 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +28 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.d.ts +5 -0
- package/dist/components/Slider/Slider.types.d.ts +22 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Snackbar/Snackbar.d.ts +5 -0
- package/dist/components/Snackbar/Snackbar.types.d.ts +42 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +13 -0
- package/dist/components/Stepper/Stepper.type.d.ts +1 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +6 -0
- package/dist/components/Table/Table.types.d.ts +16 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.types.d.ts +18 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +5 -0
- package/dist/components/TextArea/TextArea.types.d.ts +7 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +4 -0
- package/dist/components/TextInput/TextInput.types.d.ts +15 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +4 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +9 -0
- package/dist/components/ToggleSwitch/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +5 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +5 -0
- package/dist/components/Typography/Typography.types.d.ts +9 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/index.d.ts +42 -0
- package/dist/components/otpInput/OtpInput.d.ts +5 -0
- package/dist/components/otpInput/OtpInput.type.d.ts +14 -0
- package/dist/components/otpInput/index.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/uniui.css +1 -0
- package/dist/uniui.js +9025 -0
- package/dist/uniui.umd.cjs +190 -0
- package/dist/utils/ColorMap.d.ts +29 -0
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +77 -94
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PasswordInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Pill';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ProfileShowcaseProps {
|
|
4
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
name: string;
|
|
7
|
+
number: string;
|
|
8
|
+
className: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ProfileShowcase: React.FC<ProfileShowcaseProps>;
|
|
11
|
+
export default ProfileShowcase;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProfileShowcase';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
+
|
|
3
|
+
export type ProgressVariant = 'linear' | 'circular';
|
|
4
|
+
export interface BaseProgressProps {
|
|
5
|
+
/**
|
|
6
|
+
* The variant of progress indicator to display
|
|
7
|
+
* @default 'linear'
|
|
8
|
+
*/
|
|
9
|
+
variant?: ProgressVariant;
|
|
10
|
+
/**
|
|
11
|
+
* The progress value between 0 and 100
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
value?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The color theme of the progress indicator
|
|
17
|
+
* @default 'blue'
|
|
18
|
+
*/
|
|
19
|
+
color?: CompColor;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the progress is determinate (shows specific progress) or indeterminate (loading animation)
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
determinate?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Additional CSS classes to apply to the component
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface LinearProgressProps extends BaseProgressProps {
|
|
31
|
+
variant?: 'linear';
|
|
32
|
+
}
|
|
33
|
+
export interface CircularProgressProps extends BaseProgressProps {
|
|
34
|
+
variant: 'circular';
|
|
35
|
+
/**
|
|
36
|
+
* The size of the circular progress indicator in pixels
|
|
37
|
+
* @default 40
|
|
38
|
+
*/
|
|
39
|
+
size?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The thickness of the circular progress stroke
|
|
42
|
+
* @default 3.6
|
|
43
|
+
*/
|
|
44
|
+
thickness?: number;
|
|
45
|
+
}
|
|
46
|
+
export type ProgressProps = LinearProgressProps | CircularProgressProps;
|
|
47
|
+
export interface ProgressColorClasses {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Progress';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
+
|
|
3
|
+
export interface IRadioGroupProps {
|
|
4
|
+
name: string;
|
|
5
|
+
options: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
selectedValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
direction?: 'row' | 'column';
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
color?: CompColor;
|
|
15
|
+
className?: string;
|
|
16
|
+
radioClass?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RadioGroup';
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Select';
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Sidebar';
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Skeleton';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CompColor } from '../../utils/ColorMap';
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Slider';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CompColor } from '../../utils/ColorMap';
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Snackbar';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Stepper';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TableProps } from './Table.types';
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Table';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TextArea';
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TextInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ToggleSwitch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tooltip';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Typography';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { default as Button } from './Button';
|
|
2
|
+
export { default as CardWrapper } from './CardWrapper';
|
|
3
|
+
export { default as Checkbox } from './Checkbox';
|
|
4
|
+
export { default as Dropdown } from './Dropdown';
|
|
5
|
+
export { default as DropzoneUploader } from './DropzoneUploader';
|
|
6
|
+
export { default as Menu } from './Menu';
|
|
7
|
+
export { default as OtpInput } from './otpInput';
|
|
8
|
+
export { default as PasswordInput } from './PasswordInput';
|
|
9
|
+
export { default as Pill } from './Pill';
|
|
10
|
+
export { default as ProfileImageShowcase } from './ProfileImageShowcase';
|
|
11
|
+
export { default as Stepper } from './Stepper';
|
|
12
|
+
export { default as Table } from './Table';
|
|
13
|
+
export { default as TextInput } from './TextInput';
|
|
14
|
+
export { default as Skeleton } from './Skeleton';
|
|
15
|
+
export { default as TextArea } from './TextArea';
|
|
16
|
+
export { default as Slider } from './Slider';
|
|
17
|
+
export { default as Snackbar } from './Snackbar';
|
|
18
|
+
export { default as Progress } from './Progress';
|
|
19
|
+
export { default as Carousel } from './Carousel';
|
|
20
|
+
export { default as EmptyState } from './EmptyState';
|
|
21
|
+
export { default as ToggleSwitch } from './ToggleSwitch';
|
|
22
|
+
export { default as Typography } from './Typography';
|
|
23
|
+
export { default as Card } from './Card';
|
|
24
|
+
export { default as Divider } from './Divider';
|
|
25
|
+
export { default as IconButton } from './IconButton';
|
|
26
|
+
export { default as RadioGroup } from './RadioGroup';
|
|
27
|
+
export { default as Select } from './Select';
|
|
28
|
+
export { default as Tooltip } from './Tooltip';
|
|
29
|
+
export { default as Dialog } from './Dialog';
|
|
30
|
+
export { default as ActionMenu } from './ActionMenu';
|
|
31
|
+
export { default as Drawer } from './Drawer';
|
|
32
|
+
export { default as Accordion } from './Accordion';
|
|
33
|
+
export { default as Pagination } from './Pagination';
|
|
34
|
+
export { default as Avatar } from './Avatar';
|
|
35
|
+
export { default as Alert } from './Alert';
|
|
36
|
+
export { default as Badge } from './Badge';
|
|
37
|
+
export { default as BottomNavigation } from './BottomNavigation';
|
|
38
|
+
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
39
|
+
export { default as DatePicker } from './DatePicker';
|
|
40
|
+
export { default as Tabs } from './Tabs';
|
|
41
|
+
export { default as DashboardStatBoxes } from './DashboardStatBoxes';
|
|
42
|
+
export { default as Sidebar } from './Sidebar';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IPinInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'endIcon' | 'size'> {
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (pin: string) => void;
|
|
6
|
+
onComplete?: (pin: string) => void;
|
|
7
|
+
length?: number;
|
|
8
|
+
inputClass?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
size?: 'small' | 'medium' | 'large';
|
|
12
|
+
variant?: 'outlined' | 'filled';
|
|
13
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './OtpInput';
|
package/dist/index.d.ts
ADDED