@unizap/uniui 1.0.0 → 1.0.2
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 +4 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +7 -0
- package/dist/components/Accordion/Accordion.types.d.ts +13 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +2 -0
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +6 -0
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -0
- package/dist/components/ActionMenu/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +4 -0
- package/dist/components/Alert/Alert.stories.d.ts +7 -0
- package/dist/components/Alert/Alert.types.d.ts +8 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +10 -0
- package/dist/components/Avatar/Avatar.types.d.ts +10 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/Badge/Badge.stories.d.ts +8 -0
- package/dist/components/Badge/Badge.types.d.ts +9 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +4 -0
- package/dist/components/BottomNavigation/BottomNavigation.stories.d.ts +9 -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 +3 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -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 +4 -0
- package/dist/components/Button/Button.stories.d.ts +12 -0
- package/dist/components/Button/Button.types.d.ts +18 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/Card.stories.d.ts +8 -0
- package/dist/components/Card/Card.types.d.ts +17 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/CardWrapper/CardWrapper.d.ts +8 -0
- package/dist/components/CardWrapper/CardWrapper.stories.d.ts +6 -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 +4 -0
- package/dist/components/Carousel/Carousel.stories.d.ts +23 -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 +4 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +9 -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 +3 -0
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.stories.d.ts +6 -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 +3 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +10 -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 +3 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +9 -0
- package/dist/components/Dialog/Dialog.types.d.ts +17 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +4 -0
- package/dist/components/Divider/Divider.stories.d.ts +9 -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 +4 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +9 -0
- package/dist/components/Drawer/Drawer.types.d.ts +12 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +4 -0
- package/dist/components/Dropdown/Dropdown.stories.d.ts +11 -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 +4 -0
- package/dist/components/DropzoneUploader/DropzoneUploader.stories.d.ts +9 -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 +4 -0
- package/dist/components/EmptyState/EmptyState.stories.d.ts +8 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +18 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/IconButton/Icon.stories.d.ts +10 -0
- package/dist/components/IconButton/IconButton.d.ts +4 -0
- package/dist/components/IconButton/IconButton.types.d.ts +12 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/List/List.d.ts +3 -0
- package/dist/components/List/List.stories.d.ts +6 -0
- package/dist/components/List/List.types.d.ts +10 -0
- package/dist/components/List/ListItem.d.ts +3 -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/Select.stories.d.ts +6 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +4 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +6 -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 +3 -0
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +8 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/Pill/Pill.d.ts +4 -0
- package/dist/components/Pill/Pill.stories.d.ts +9 -0
- package/dist/components/Pill/Pill.type.d.ts +8 -0
- package/dist/components/Pill/index.d.ts +1 -0
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -0
- package/dist/components/ProfileImageShowcase/ProfileShowcase.stories.d.ts +6 -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 +4 -0
- package/dist/components/Progress/Progress.stories.d.ts +16 -0
- package/dist/components/Progress/Progress.types.d.ts +48 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +7 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +4 -0
- package/dist/components/SearchBar/SearchBar.stories.d.ts +6 -0
- package/dist/components/SearchBar/SearchBar.types.d.ts +24 -0
- package/dist/components/SearchBar/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/Select.stories.d.ts +7 -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.stories.d.ts +6 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +16 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/Skeleton/Skeleton.stories.d.ts +16 -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 +4 -0
- package/dist/components/Slider/Slider.stories.d.ts +14 -0
- package/dist/components/Slider/Slider.types.d.ts +21 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Snackbar/Snackbar.d.ts +4 -0
- package/dist/components/Snackbar/Snackbar.stories.d.ts +11 -0
- package/dist/components/Snackbar/Snackbar.types.d.ts +41 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +12 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +9 -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 +5 -0
- package/dist/components/Table/Table.stories.d.ts +17 -0
- package/dist/components/Table/Table.types.d.ts +15 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +4 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +7 -0
- package/dist/components/Tabs/Tabs.types.d.ts +17 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +4 -0
- package/dist/components/TextArea/TextArea.stories.d.ts +9 -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 +3 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +10 -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 +3 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.d.ts +8 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -0
- package/dist/components/ToggleSwitch/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +10 -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 +4 -0
- package/dist/components/Typography/Typography.stories.d.ts +17 -0
- package/dist/components/Typography/Typography.types.d.ts +8 -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 +4 -0
- package/dist/components/otpInput/OtpInput.stories.d.ts +7 -0
- package/dist/components/otpInput/OtpInput.type.d.ts +13 -0
- package/dist/components/otpInput/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -0
- package/dist/utils/ColorMap.d.ts +156 -0
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +89 -78
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
component: import("react").FC<import("./DropzoneUploader.types").IDropzoneUploaderProps>;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
export declare const UploadedFile: Story;
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DropzoneUploader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import EmptyState from './EmptyState';
|
|
3
|
+
declare const meta: Meta<typeof EmptyState>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EmptyState>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithoutCTA: Story;
|
|
8
|
+
export declare const CustomIllustration: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompColor } from "../../utils/ColorMap";
|
|
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
|
+
color?: CompColor;
|
|
10
|
+
/** Callback executed when primary button is clicked */
|
|
11
|
+
onAction?: () => void;
|
|
12
|
+
/** Optional illustration (SVG, img url, or React node) */
|
|
13
|
+
illustration?: React.ReactNode;
|
|
14
|
+
/** Width of the illustration (defaults 120px) */
|
|
15
|
+
illustrationWidth?: number | string;
|
|
16
|
+
/** Render children under the call-to-action area (links, tips, etc.) */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './EmptyState';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import IconButton from './IconButton';
|
|
3
|
+
declare const meta: Meta<typeof IconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof IconButton>;
|
|
6
|
+
export declare const Filled: Story;
|
|
7
|
+
export declare const Outlined: Story;
|
|
8
|
+
export declare const Transparent: Story;
|
|
9
|
+
export declare const RoundedFull: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CompColor } from '../../utils/ColorMap';
|
|
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
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './IconButton';
|
|
@@ -0,0 +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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Menu';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Pagination from "./Pagination";
|
|
2
|
+
import { Meta } from "@storybook/react";
|
|
3
|
+
declare const meta: Meta<typeof Pagination>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const CustomPageSize: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Pagination';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("../TextInput/TextInput.types").ITextInputProps, "type" | "endIcon"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PasswordInput';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Pill } from './Pill';
|
|
3
|
+
declare const meta: Meta<typeof Pill>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Pill>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AllColors: Story;
|
|
8
|
+
export declare const AllSizes: Story;
|
|
9
|
+
export declare const AllVariants: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Pill';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ProfileShowcaseProps {
|
|
3
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
name: string;
|
|
6
|
+
number: string;
|
|
7
|
+
className: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ProfileShowcase: React.FC<ProfileShowcaseProps>;
|
|
10
|
+
export default ProfileShowcase;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProfileShowcase';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Progress from './Progress';
|
|
3
|
+
import { ProgressProps } from './Progress.types';
|
|
4
|
+
declare const meta: Meta<typeof Progress>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<ProgressProps>;
|
|
7
|
+
export declare const LinearDefault: Story;
|
|
8
|
+
export declare const CircularDefault: Story;
|
|
9
|
+
export declare const LinearIndeterminate: Story;
|
|
10
|
+
export declare const CircularIndeterminate: Story;
|
|
11
|
+
export declare const AnimatedProgress: Story;
|
|
12
|
+
export declare const AllColorsLinear: Story;
|
|
13
|
+
export declare const AllColorsCircular: Story;
|
|
14
|
+
export declare const CircularSizes: Story;
|
|
15
|
+
export declare const ProgressStates: Story;
|
|
16
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CompColor } from "../../utils/ColorMap";
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Progress';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import RadioGroup from './RadioGroup';
|
|
3
|
+
declare const meta: Meta<typeof RadioGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RadioGroup>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Row: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CompColor } from "../../utils/ColorMap";
|
|
2
|
+
export interface IRadioGroupProps {
|
|
3
|
+
name: string;
|
|
4
|
+
options: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
selectedValue?: string;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
direction?: 'row' | 'column';
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
color?: CompColor;
|
|
14
|
+
className?: string;
|
|
15
|
+
radioClass?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RadioGroup';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface SearchBarProps {
|
|
2
|
+
/** Current search value (controlled) */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Called on every keystroke */
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
|
+
/** Optional list shown under the field */
|
|
7
|
+
suggestions?: string[];
|
|
8
|
+
/** Fired when user picks a suggestion (click or Enter) */
|
|
9
|
+
onSelect?: (v: string) => void;
|
|
10
|
+
/** Placeholder text */
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** Debounce delay (ms) before firing onChange; 0 = none */
|
|
13
|
+
debounce?: number;
|
|
14
|
+
/** Width of the component (CSS size) */
|
|
15
|
+
width?: string | number;
|
|
16
|
+
/** If true, filter suggestions client-side */
|
|
17
|
+
filterLocal?: boolean;
|
|
18
|
+
/** Custom empty-state text when no suggestions */
|
|
19
|
+
emptyLabel?: string;
|
|
20
|
+
iconStyle?: string;
|
|
21
|
+
inputClass?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
startIcon?: React.ReactNode;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SearchBar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Select from './Select';
|
|
3
|
+
declare const meta: Meta<typeof Select>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Select>;
|
|
6
|
+
export declare const OutlinedMedium: Story;
|
|
7
|
+
export declare const FilledLarge: Story;
|
|
@@ -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,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
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
|
+
onClose?: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Sidebar';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Skeleton from './Skeleton';
|
|
3
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Rectangular: Story;
|
|
7
|
+
export declare const Rounded: Story;
|
|
8
|
+
export declare const Circular: Story;
|
|
9
|
+
export declare const Text: Story;
|
|
10
|
+
export declare const PulseAnimation: Story;
|
|
11
|
+
export declare const WaveAnimation: Story;
|
|
12
|
+
export declare const AllVariants: Story;
|
|
13
|
+
export declare const DifferentSizes: Story;
|
|
14
|
+
export declare const CardLoadingExample: Story;
|
|
15
|
+
export declare const ListLoadingExample: Story;
|
|
16
|
+
export declare const Playground: Story;
|
|
@@ -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,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Slider from './Slider';
|
|
3
|
+
declare const meta: Meta<typeof Slider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Sizes: Story;
|
|
8
|
+
export declare const Colors: Story;
|
|
9
|
+
export declare const WithMarks: Story;
|
|
10
|
+
export declare const TemperatureSlider: Story;
|
|
11
|
+
export declare const VolumeSlider: Story;
|
|
12
|
+
export declare const Disabled: Story;
|
|
13
|
+
export declare const RangeDefault: Story;
|
|
14
|
+
export declare const RangeSizes: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CompColor } from "../../utils/ColorMap";
|
|
2
|
+
export interface SliderMark {
|
|
3
|
+
value: number;
|
|
4
|
+
label?: string | number;
|
|
5
|
+
}
|
|
6
|
+
export interface SliderProps {
|
|
7
|
+
value: number | [number, number];
|
|
8
|
+
onChange: (value: number | [number, number]) => void;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
color?: CompColor;
|
|
13
|
+
size?: 'small' | 'medium' | 'large';
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
showValue?: boolean;
|
|
17
|
+
showMarks?: boolean;
|
|
18
|
+
marks?: SliderMark[];
|
|
19
|
+
range?: boolean;
|
|
20
|
+
minDistance?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Slider';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Snackbar from './Snackbar';
|
|
3
|
+
declare const meta: Meta<typeof Snackbar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Positions: Story;
|
|
8
|
+
export declare const Colors: Story;
|
|
9
|
+
export declare const WithActions: Story;
|
|
10
|
+
export declare const AutoHideDemo: Story;
|
|
11
|
+
export declare const Playground: Story;
|