@unizap/uniui 1.0.59 → 1.0.61
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 +44 -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 +21 -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.css +1 -1
- package/dist/uniui.js +2951 -2475
- package/dist/uniui.umd.cjs +94 -94
- package/dist/utils/ColorMap.d.ts +31 -31
- package/dist/utils/constants.d.ts +1 -1
- package/package.json +94 -91
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface DropdownItemTypes {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
onClick: (val: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface IDropdownProps {
|
|
7
|
+
selected?: DropdownItemTypes;
|
|
8
|
+
items: DropdownItemTypes[];
|
|
9
|
+
className?: string;
|
|
10
|
+
menuClassName?: string;
|
|
11
|
+
stayOpenOnSelect?: boolean;
|
|
12
|
+
highlightedIndex?: number;
|
|
13
|
+
onSelect?: (item: DropdownItemTypes) => void;
|
|
14
|
+
open?: boolean;
|
|
15
|
+
onToggle?: (open: boolean) => void;
|
|
16
|
+
maxHeight?: number;
|
|
17
|
+
position?: 'auto' | 'top' | 'bottom';
|
|
18
|
+
searchable?: boolean;
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
searchClassName?: string;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Dropdown';
|
|
1
|
+
export { default } from './Dropdown';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IDropzoneUploaderProps } from './DropzoneUploader.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default DropzoneUploader;
|
|
3
|
+
declare const DropzoneUploader: React.FC<IDropzoneUploaderProps>;
|
|
4
|
+
export default DropzoneUploader;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export interface IDropzoneUploaderProps {
|
|
2
|
-
onFilesAccepted: (files: File[]) => void;
|
|
3
|
-
onError?: (errorMessages: string[]) => void;
|
|
4
|
-
accept?: {
|
|
5
|
-
[mimeType: string]: string[];
|
|
6
|
-
};
|
|
7
|
-
multiple?: boolean;
|
|
8
|
-
maxSizeInBytes?: number;
|
|
9
|
-
maxFiles?: number;
|
|
10
|
-
label?: string;
|
|
11
|
-
subLabel?: string;
|
|
12
|
-
icon?: React.ReactNode;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
wrapperClass?: string;
|
|
15
|
-
iconClass?: string;
|
|
16
|
-
labelClass?: string;
|
|
17
|
-
subLabelClass?: string;
|
|
18
|
-
showList?: boolean;
|
|
19
|
-
listView?: boolean;
|
|
20
|
-
showListImage?: boolean;
|
|
21
|
-
uploadedFiles?: File[];
|
|
22
|
-
onDeleteCallback?: (remainingFiles: File[]) => void;
|
|
23
|
-
}
|
|
1
|
+
export interface IDropzoneUploaderProps {
|
|
2
|
+
onFilesAccepted: (files: File[]) => void;
|
|
3
|
+
onError?: (errorMessages: string[]) => void;
|
|
4
|
+
accept?: {
|
|
5
|
+
[mimeType: string]: string[];
|
|
6
|
+
};
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
maxSizeInBytes?: number;
|
|
9
|
+
maxFiles?: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
subLabel?: string;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
wrapperClass?: string;
|
|
15
|
+
iconClass?: string;
|
|
16
|
+
labelClass?: string;
|
|
17
|
+
subLabelClass?: string;
|
|
18
|
+
showList?: boolean;
|
|
19
|
+
listView?: boolean;
|
|
20
|
+
showListImage?: boolean;
|
|
21
|
+
uploadedFiles?: File[];
|
|
22
|
+
onDeleteCallback?: (remainingFiles: File[]) => void;
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DropzoneUploader';
|
|
1
|
+
export { default } from './DropzoneUploader';
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
illustration
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
2
|
+
export interface EmptyStateProps {
|
|
3
|
+
/** Heading shown above the description */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional explanatory text */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Optional primary action (e.g., “Add item”) */
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
titleClass?: string;
|
|
10
|
+
descriptionClass?: string;
|
|
11
|
+
color?: CompColor;
|
|
12
|
+
/** Callback executed when primary button is clicked */
|
|
13
|
+
onAction?: () => void;
|
|
14
|
+
/** Optional illustration (SVG, img url, or React node) */
|
|
15
|
+
illustration?: React.ReactNode;
|
|
16
|
+
/** Width of the illustration (defaults 120px) */
|
|
17
|
+
illustrationWidth?: number | string;
|
|
18
|
+
/** Render children under the call-to-action area (links, tips, etc.) */
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './EmptyState';
|
|
1
|
+
export { default } from './EmptyState';
|
|
@@ -1,14 +1,13 @@
|
|
|
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
|
-
}
|
|
3
|
+
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant?: 'filled' | 'outlined' | 'transparent';
|
|
5
|
+
color?: CompColor;
|
|
6
|
+
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
className?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
roundedFull?: boolean;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
id?: string;
|
|
12
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './IconButton';
|
|
1
|
+
export { default } from './IconButton';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ListProps } from './List.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default List;
|
|
2
|
+
declare const List: ({ children, className }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default List;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
2
|
+
export interface ListProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ListItemProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
secondaryAction?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ListItemProps } from '../List.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default ListItem;
|
|
2
|
+
declare const ListItem: ({ children, secondaryAction, className }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ListItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ListItem';
|
|
1
|
+
export { default } from './ListItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './List';
|
|
1
|
+
export { default } from './List';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type MenuProps<T extends React.ReactNode> = {
|
|
2
|
-
options?: T[];
|
|
3
|
-
selectedValue?: T;
|
|
4
|
-
onChange?: (value: T) => void;
|
|
5
|
-
placementTop?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export default function Menu<T extends React.ReactNode>({ options, selectedValue, onChange, placementTop, }: MenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
1
|
+
type MenuProps<T extends React.ReactNode> = {
|
|
2
|
+
options?: T[];
|
|
3
|
+
selectedValue?: T;
|
|
4
|
+
onChange?: (value: T) => void;
|
|
5
|
+
placementTop?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function Menu<T extends React.ReactNode>({ options, selectedValue, onChange, placementTop, }: MenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Menu';
|
|
1
|
+
export { default } from './Menu';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { INumberInputProps } from './NumberInput.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default NumberInput;
|
|
2
|
+
declare const NumberInput: import('react').ForwardRefExoticComponent<INumberInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default NumberInput;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface INumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
2
|
-
placeholder?: string;
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
labelClass?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
inputClass?: string;
|
|
8
|
-
iconStyle?: string;
|
|
9
|
-
startIcon?: React.ReactNode;
|
|
10
|
-
endIcon?: React.ReactNode;
|
|
11
|
-
error?: string;
|
|
12
|
-
maxLength?: number;
|
|
13
|
-
label?: string;
|
|
14
|
-
variant?: 'outlined' | 'filled';
|
|
15
|
-
size?: 'small' | 'medium' | 'large';
|
|
16
|
-
}
|
|
1
|
+
export interface INumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
labelClass?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
inputClass?: string;
|
|
8
|
+
iconStyle?: string;
|
|
9
|
+
startIcon?: React.ReactNode;
|
|
10
|
+
endIcon?: React.ReactNode;
|
|
11
|
+
error?: string;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
label?: string;
|
|
14
|
+
variant?: 'outlined' | 'filled';
|
|
15
|
+
size?: 'small' | 'medium' | 'large';
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './NumberInput';
|
|
1
|
+
export { default } from './NumberInput';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface PaginationProps {
|
|
2
|
-
total: number;
|
|
3
|
-
currentPage: number;
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
onPageChange: (page: number) => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
iconClass?: string;
|
|
8
|
-
pageClass?: string;
|
|
9
|
-
hideEdgeButtons?: boolean;
|
|
10
|
-
}
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
total: number;
|
|
3
|
+
currentPage: number;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
onPageChange: (page: number) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
iconClass?: string;
|
|
8
|
+
pageClass?: string;
|
|
9
|
+
hideEdgeButtons?: boolean;
|
|
10
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Pagination';
|
|
1
|
+
export { default } from './Pagination';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ITextInputProps } from '../TextInput/TextInput.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default PasswordInput;
|
|
2
|
+
declare const PasswordInput: import('react').ForwardRefExoticComponent<Omit<ITextInputProps, "endIcon" | "type"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default PasswordInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './PasswordInput';
|
|
1
|
+
export { default } from './PasswordInput';
|
|
@@ -1,20 +1,19 @@
|
|
|
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
|
-
};
|
|
2
|
+
export type PillAvatar = {
|
|
3
|
+
src?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
};
|
|
6
|
+
export type PillProps = {
|
|
7
|
+
label: string;
|
|
8
|
+
color?: CompColor;
|
|
9
|
+
variant?: "filled" | "outlined";
|
|
10
|
+
size?: "small" | "medium" | "large";
|
|
11
|
+
className?: string;
|
|
12
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement | HTMLAnchorElement>;
|
|
13
|
+
onDelete?: React.MouseEventHandler<HTMLButtonElement>;
|
|
14
|
+
deleteIcon?: React.ReactNode;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
17
|
+
avatar?: PillAvatar;
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Pill';
|
|
1
|
+
export { default } from './Pill';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export default ProfileShowcase;
|
|
2
|
+
export interface ProfileShowcaseProps {
|
|
3
|
+
size?: "small" | "medium" | "large" | "extra-large";
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
name: string;
|
|
6
|
+
number: string;
|
|
7
|
+
className: string;
|
|
8
|
+
nameClass?: string;
|
|
9
|
+
numberClass?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const ProfileShowcase: React.FC<ProfileShowcaseProps>;
|
|
12
|
+
export default ProfileShowcase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ProfileShowcase';
|
|
1
|
+
export { default } from './ProfileShowcase';
|
|
@@ -1,49 +1,48 @@
|
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
2
|
+
export type ProgressVariant = 'linear' | 'circular';
|
|
3
|
+
export interface BaseProgressProps {
|
|
4
|
+
/**
|
|
5
|
+
* The variant of progress indicator to display
|
|
6
|
+
* @default 'linear'
|
|
7
|
+
*/
|
|
8
|
+
variant?: ProgressVariant;
|
|
9
|
+
/**
|
|
10
|
+
* The progress value between 0 and 100
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
value?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The color theme of the progress indicator
|
|
16
|
+
* @default 'blue'
|
|
17
|
+
*/
|
|
18
|
+
color?: CompColor;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the progress is determinate (shows specific progress) or indeterminate (loading animation)
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
determinate?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Additional CSS classes to apply to the component
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface LinearProgressProps extends BaseProgressProps {
|
|
30
|
+
variant?: 'linear';
|
|
31
|
+
}
|
|
32
|
+
export interface CircularProgressProps extends BaseProgressProps {
|
|
33
|
+
variant: 'circular';
|
|
34
|
+
/**
|
|
35
|
+
* The size of the circular progress indicator in pixels
|
|
36
|
+
* @default 40
|
|
37
|
+
*/
|
|
38
|
+
size?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The thickness of the circular progress stroke
|
|
41
|
+
* @default 3.6
|
|
42
|
+
*/
|
|
43
|
+
thickness?: number;
|
|
44
|
+
}
|
|
45
|
+
export type ProgressProps = LinearProgressProps | CircularProgressProps;
|
|
46
|
+
export interface ProgressColorClasses {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Progress';
|
|
1
|
+
export { default } from './Progress';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IRadioGroupProps } from './RadioGroup.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default RadioGroup;
|
|
3
|
+
declare const RadioGroup: React.FC<IRadioGroupProps>;
|
|
4
|
+
export default RadioGroup;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
export interface IRadioGroupProps {
|
|
3
|
+
name: string;
|
|
4
|
+
options: {
|
|
5
|
+
label: string | React.ReactNode;
|
|
6
|
+
value: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
id?: string;
|
|
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
|
+
size?: 'small' | 'medium' | 'large';
|
|
18
|
+
helperText?: string;
|
|
19
|
+
error?: boolean;
|
|
20
|
+
errorMessage?: string;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
'aria-label'?: string;
|
|
23
|
+
'aria-labelledby'?: string;
|
|
24
|
+
value?: string;
|
|
25
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
26
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
27
|
+
ref?: React.RefObject<HTMLInputElement[]>;
|
|
28
|
+
variant?: 'radio' | 'card';
|
|
29
|
+
cardClassName?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
selectedBorderColor?: string;
|
|
32
|
+
selectedBgColor?: string;
|
|
33
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './RadioGroup';
|
|
1
|
+
export { default } from './RadioGroup';
|