@unizap/uniui 1.0.0 → 1.0.1

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.
Files changed (182) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +4 -0
  2. package/dist/components/Accordion/Accordion.stories.d.ts +7 -0
  3. package/dist/components/Accordion/Accordion.types.d.ts +13 -0
  4. package/dist/components/Accordion/index.d.ts +1 -0
  5. package/dist/components/ActionMenu/ActionMenu.d.ts +2 -0
  6. package/dist/components/ActionMenu/ActionMenu.stories.d.ts +6 -0
  7. package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -0
  8. package/dist/components/ActionMenu/index.d.ts +1 -0
  9. package/dist/components/Alert/Alert.d.ts +4 -0
  10. package/dist/components/Alert/Alert.stories.d.ts +7 -0
  11. package/dist/components/Alert/Alert.types.d.ts +8 -0
  12. package/dist/components/Alert/index.d.ts +1 -0
  13. package/dist/components/Avatar/Avatar.d.ts +3 -0
  14. package/dist/components/Avatar/Avatar.stories.d.ts +10 -0
  15. package/dist/components/Avatar/Avatar.types.d.ts +10 -0
  16. package/dist/components/Avatar/index.d.ts +1 -0
  17. package/dist/components/Badge/Badge.d.ts +4 -0
  18. package/dist/components/Badge/Badge.stories.d.ts +8 -0
  19. package/dist/components/Badge/Badge.types.d.ts +9 -0
  20. package/dist/components/Badge/index.d.ts +1 -0
  21. package/dist/components/BottomNavigation/BottomNavigation.d.ts +4 -0
  22. package/dist/components/BottomNavigation/BottomNavigation.stories.d.ts +9 -0
  23. package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -0
  24. package/dist/components/BottomNavigation/index.d.ts +1 -0
  25. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  26. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
  27. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -0
  28. package/dist/components/Breadcrumbs/index.d.ts +1 -0
  29. package/dist/components/Button/Button.d.ts +4 -0
  30. package/dist/components/Button/Button.stories.d.ts +12 -0
  31. package/dist/components/Button/Button.types.d.ts +18 -0
  32. package/dist/components/Button/index.d.ts +1 -0
  33. package/dist/components/Card/Card.d.ts +4 -0
  34. package/dist/components/Card/Card.stories.d.ts +8 -0
  35. package/dist/components/Card/Card.types.d.ts +17 -0
  36. package/dist/components/Card/index.d.ts +1 -0
  37. package/dist/components/CardWrapper/CardWrapper.d.ts +8 -0
  38. package/dist/components/CardWrapper/CardWrapper.stories.d.ts +6 -0
  39. package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -0
  40. package/dist/components/CardWrapper/index.d.ts +1 -0
  41. package/dist/components/Carousel/Carousel.d.ts +4 -0
  42. package/dist/components/Carousel/Carousel.stories.d.ts +23 -0
  43. package/dist/components/Carousel/Carousel.types.d.ts +21 -0
  44. package/dist/components/Carousel/index.d.ts +1 -0
  45. package/dist/components/Checkbox/Checkbox.d.ts +4 -0
  46. package/dist/components/Checkbox/Checkbox.stories.d.ts +9 -0
  47. package/dist/components/Checkbox/Checkbox.types.d.ts +9 -0
  48. package/dist/components/Checkbox/index.d.ts +1 -0
  49. package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +3 -0
  50. package/dist/components/DashboardStatBoxes/DashboardStatBoxes.stories.d.ts +6 -0
  51. package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -0
  52. package/dist/components/DashboardStatBoxes/index.d.ts +1 -0
  53. package/dist/components/DatePicker/DatePicker.d.ts +3 -0
  54. package/dist/components/DatePicker/DatePicker.stories.d.ts +10 -0
  55. package/dist/components/DatePicker/DatePicker.types.d.ts +16 -0
  56. package/dist/components/DatePicker/index.d.ts +1 -0
  57. package/dist/components/Dialog/Dialog.d.ts +3 -0
  58. package/dist/components/Dialog/Dialog.stories.d.ts +9 -0
  59. package/dist/components/Dialog/Dialog.types.d.ts +17 -0
  60. package/dist/components/Dialog/index.d.ts +1 -0
  61. package/dist/components/Divider/Divider.d.ts +4 -0
  62. package/dist/components/Divider/Divider.stories.d.ts +9 -0
  63. package/dist/components/Divider/Divider.types.d.ts +6 -0
  64. package/dist/components/Divider/index.d.ts +1 -0
  65. package/dist/components/Drawer/Drawer.d.ts +4 -0
  66. package/dist/components/Drawer/Drawer.stories.d.ts +9 -0
  67. package/dist/components/Drawer/Drawer.types.d.ts +12 -0
  68. package/dist/components/Drawer/index.d.ts +1 -0
  69. package/dist/components/Dropdown/Dropdown.d.ts +4 -0
  70. package/dist/components/Dropdown/Dropdown.stories.d.ts +11 -0
  71. package/dist/components/Dropdown/Dropdown.types.d.ts +11 -0
  72. package/dist/components/Dropdown/index.d.ts +1 -0
  73. package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +4 -0
  74. package/dist/components/DropzoneUploader/DropzoneUploader.stories.d.ts +9 -0
  75. package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -0
  76. package/dist/components/DropzoneUploader/index.d.ts +1 -0
  77. package/dist/components/EmptyState/EmptyState.d.ts +4 -0
  78. package/dist/components/EmptyState/EmptyState.stories.d.ts +8 -0
  79. package/dist/components/EmptyState/EmptyState.types.d.ts +18 -0
  80. package/dist/components/EmptyState/index.d.ts +1 -0
  81. package/dist/components/IconButton/Icon.stories.d.ts +10 -0
  82. package/dist/components/IconButton/IconButton.d.ts +4 -0
  83. package/dist/components/IconButton/IconButton.types.d.ts +12 -0
  84. package/dist/components/IconButton/index.d.ts +1 -0
  85. package/dist/components/List/List.d.ts +3 -0
  86. package/dist/components/List/List.stories.d.ts +6 -0
  87. package/dist/components/List/List.types.d.ts +10 -0
  88. package/dist/components/List/ListItem.d.ts +3 -0
  89. package/dist/components/List/index.d.ts +2 -0
  90. package/dist/components/Menu/Menu.d.ts +8 -0
  91. package/dist/components/Menu/Menu.types.d.ts +1 -0
  92. package/dist/components/Menu/Select.stories.d.ts +6 -0
  93. package/dist/components/Menu/index.d.ts +1 -0
  94. package/dist/components/Pagination/Pagination.d.ts +4 -0
  95. package/dist/components/Pagination/Pagination.stories.d.ts +6 -0
  96. package/dist/components/Pagination/Pagination.types.d.ts +8 -0
  97. package/dist/components/Pagination/index.d.ts +1 -0
  98. package/dist/components/PasswordInput/PasswordInput.d.ts +3 -0
  99. package/dist/components/PasswordInput/PasswordInput.stories.d.ts +8 -0
  100. package/dist/components/PasswordInput/index.d.ts +1 -0
  101. package/dist/components/Pill/Pill.d.ts +4 -0
  102. package/dist/components/Pill/Pill.stories.d.ts +9 -0
  103. package/dist/components/Pill/Pill.type.d.ts +8 -0
  104. package/dist/components/Pill/index.d.ts +1 -0
  105. package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -0
  106. package/dist/components/ProfileImageShowcase/ProfileShowcase.stories.d.ts +6 -0
  107. package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -0
  108. package/dist/components/ProfileImageShowcase/index.d.ts +1 -0
  109. package/dist/components/Progress/Progress.d.ts +4 -0
  110. package/dist/components/Progress/Progress.stories.d.ts +16 -0
  111. package/dist/components/Progress/Progress.types.d.ts +48 -0
  112. package/dist/components/Progress/index.d.ts +1 -0
  113. package/dist/components/RadioGroup/RadioGroup.d.ts +4 -0
  114. package/dist/components/RadioGroup/RadioGroup.stories.d.ts +7 -0
  115. package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -0
  116. package/dist/components/RadioGroup/index.d.ts +1 -0
  117. package/dist/components/SearchBar/SearchBar.d.ts +4 -0
  118. package/dist/components/SearchBar/SearchBar.stories.d.ts +6 -0
  119. package/dist/components/SearchBar/SearchBar.types.d.ts +24 -0
  120. package/dist/components/SearchBar/index.d.ts +1 -0
  121. package/dist/components/Select/Select.d.ts +4 -0
  122. package/dist/components/Select/Select.stories.d.ts +7 -0
  123. package/dist/components/Select/Select.types.d.ts +17 -0
  124. package/dist/components/Select/index.d.ts +1 -0
  125. package/dist/components/Sidebar/Sidebar.d.ts +10 -0
  126. package/dist/components/Sidebar/Sidebar.stories.d.ts +6 -0
  127. package/dist/components/Sidebar/Sidebar.types.d.ts +16 -0
  128. package/dist/components/Sidebar/index.d.ts +1 -0
  129. package/dist/components/Skeleton/Skeleton.d.ts +4 -0
  130. package/dist/components/Skeleton/Skeleton.stories.d.ts +16 -0
  131. package/dist/components/Skeleton/Skeleton.types.d.ts +28 -0
  132. package/dist/components/Skeleton/index.d.ts +1 -0
  133. package/dist/components/Slider/Slider.d.ts +4 -0
  134. package/dist/components/Slider/Slider.stories.d.ts +14 -0
  135. package/dist/components/Slider/Slider.types.d.ts +21 -0
  136. package/dist/components/Slider/index.d.ts +1 -0
  137. package/dist/components/Snackbar/Snackbar.d.ts +4 -0
  138. package/dist/components/Snackbar/Snackbar.stories.d.ts +11 -0
  139. package/dist/components/Snackbar/Snackbar.types.d.ts +41 -0
  140. package/dist/components/Snackbar/index.d.ts +1 -0
  141. package/dist/components/Stepper/Stepper.d.ts +12 -0
  142. package/dist/components/Stepper/Stepper.stories.d.ts +9 -0
  143. package/dist/components/Stepper/Stepper.type.d.ts +1 -0
  144. package/dist/components/Stepper/index.d.ts +1 -0
  145. package/dist/components/Table/Table.d.ts +5 -0
  146. package/dist/components/Table/Table.stories.d.ts +17 -0
  147. package/dist/components/Table/Table.types.d.ts +15 -0
  148. package/dist/components/Table/index.d.ts +1 -0
  149. package/dist/components/Tabs/Tabs.d.ts +4 -0
  150. package/dist/components/Tabs/Tabs.stories.d.ts +7 -0
  151. package/dist/components/Tabs/Tabs.types.d.ts +17 -0
  152. package/dist/components/Tabs/index.d.ts +1 -0
  153. package/dist/components/TextArea/TextArea.d.ts +4 -0
  154. package/dist/components/TextArea/TextArea.stories.d.ts +9 -0
  155. package/dist/components/TextArea/TextArea.types.d.ts +7 -0
  156. package/dist/components/TextArea/index.d.ts +1 -0
  157. package/dist/components/TextInput/TextInput.d.ts +3 -0
  158. package/dist/components/TextInput/TextInput.stories.d.ts +10 -0
  159. package/dist/components/TextInput/TextInput.types.d.ts +15 -0
  160. package/dist/components/TextInput/index.d.ts +1 -0
  161. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -0
  162. package/dist/components/ToggleSwitch/ToggleSwitch.stories.d.ts +8 -0
  163. package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -0
  164. package/dist/components/ToggleSwitch/index.d.ts +1 -0
  165. package/dist/components/Tooltip/Tooltip.d.ts +4 -0
  166. package/dist/components/Tooltip/Tooltip.stories.d.ts +10 -0
  167. package/dist/components/Tooltip/Tooltip.type.d.ts +5 -0
  168. package/dist/components/Tooltip/index.d.ts +1 -0
  169. package/dist/components/Typography/Typography.d.ts +4 -0
  170. package/dist/components/Typography/Typography.stories.d.ts +17 -0
  171. package/dist/components/Typography/Typography.types.d.ts +8 -0
  172. package/dist/components/Typography/index.d.ts +1 -0
  173. package/dist/components/index.d.ts +42 -0
  174. package/dist/components/otpInput/OtpInput.d.ts +4 -0
  175. package/dist/components/otpInput/OtpInput.stories.d.ts +7 -0
  176. package/dist/components/otpInput/OtpInput.type.d.ts +13 -0
  177. package/dist/components/otpInput/index.d.ts +1 -0
  178. package/dist/index.d.ts +2 -0
  179. package/dist/tsconfig.app.tsbuildinfo +1 -0
  180. package/dist/utils/ColorMap.d.ts +156 -0
  181. package/dist/utils/constants.d.ts +1 -0
  182. package/package.json +9 -9
@@ -0,0 +1,41 @@
1
+ import { CompColor } from "../../utils/ColorMap";
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
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Snackbar';
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export type Step = {
3
+ label: string;
4
+ };
5
+ export type StepperProps = {
6
+ steps: Step[];
7
+ currentStep: number;
8
+ className?: string;
9
+ onChange?: (stepIndex: number) => void;
10
+ };
11
+ export declare const Stepper: React.FC<StepperProps>;
12
+ export default Stepper;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Stepper } from './Stepper';
3
+ declare const meta: Meta<typeof Stepper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Stepper>;
6
+ export declare const Default: Story;
7
+ export declare const InitialStep: Story;
8
+ export declare const FinalStep: Story;
9
+ export declare const CustomStyle: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './Stepper';
@@ -0,0 +1,5 @@
1
+ import { TableProps } from './Table.types';
2
+ declare const Table: <T>({ data, columns, pageSize, pageIndex, onPageSizeChange, onPageChange, rowOptionArray, totalRecords, className, paginationClassName, tdClassName, thClassName, }: TableProps<T> & {
3
+ totalRecords?: number;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default Table;
@@ -0,0 +1,17 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { TableProps } from './Table.types';
3
+ declare const meta: Meta<TableProps<Customer>>;
4
+ export default meta;
5
+ type Story = StoryObj<TableProps<Customer>>;
6
+ type Customer = {
7
+ avatarUrl: string;
8
+ name: string;
9
+ phone: string | null;
10
+ lastActiveDate: Date;
11
+ lastActiveTime: string;
12
+ email: string | null;
13
+ totalEnquiry: number;
14
+ status: 'Active' | 'Inactive' | 'Pending';
15
+ };
16
+ export declare const Default: Story;
17
+ export declare const MoreJsx: Story;
@@ -0,0 +1,15 @@
1
+ import { ColumnDef } from "@tanstack/react-table";
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
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Table';
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TabsProps } from "./Tabs.types";
3
+ declare const Tabs: React.FC<TabsProps>;
4
+ export default Tabs;
@@ -0,0 +1,7 @@
1
+ import Tabs from "./Tabs";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta<typeof Tabs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tabs>;
6
+ export declare const Default: Story;
7
+ export declare const Vertical: Story;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from "react";
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
+ tabContentClass?: string;
16
+ variant?: "horizontal" | "vertical";
17
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Tabs';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextAreaProps } from './TextArea.types';
3
+ declare const TextArea: React.FC<TextAreaProps>;
4
+ export default TextArea;
@@ -0,0 +1,9 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ component: import("react").FC<import("./TextArea.types").TextAreaProps>;
4
+ title: string;
5
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
@@ -0,0 +1,7 @@
1
+ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
2
+ label?: string;
3
+ error?: string;
4
+ className?: string;
5
+ inputClass?: string;
6
+ labelClass?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export { default } from './TextArea';
@@ -0,0 +1,3 @@
1
+ import { ITextInputProps } from './TextInput.types';
2
+ declare const TextInput: import("react").ForwardRefExoticComponent<ITextInputProps & import("react").RefAttributes<HTMLInputElement>>;
3
+ export default TextInput;
@@ -0,0 +1,10 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ component: import("react").ForwardRefExoticComponent<import("./TextInput.types").ITextInputProps & import("react").RefAttributes<HTMLInputElement>>;
4
+ title: string;
5
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
10
+ export declare const Fill: Story;
@@ -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,3 @@
1
+ import { ToggleSwitchProps } from './ToggleSwitch.types';
2
+ declare const ToggleSwitch: React.FC<ToggleSwitchProps>;
3
+ export default ToggleSwitch;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ToggleSwitch from './ToggleSwitch';
3
+ declare const meta: Meta<typeof ToggleSwitch>;
4
+ export default meta;
5
+ export declare const Synchronous: StoryObj<typeof ToggleSwitch>;
6
+ export declare const AllColors: StoryObj<typeof ToggleSwitch>;
7
+ export declare const Asynchronous: StoryObj<typeof ToggleSwitch>;
8
+ export declare const Disabled: StoryObj<typeof ToggleSwitch>;
@@ -0,0 +1,8 @@
1
+ import { CompColor } from "../../utils/ColorMap";
2
+ export interface ToggleSwitchProps {
3
+ initialState?: boolean;
4
+ onToggle?: (state: boolean) => Promise<void> | void;
5
+ disabled?: boolean;
6
+ color: CompColor;
7
+ type?: "submit" | "reset" | "button";
8
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ToggleSwitch';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TooltipProps } from './Tooltip.type';
3
+ declare const Tooltip: React.FC<TooltipProps>;
4
+ export default Tooltip;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: import("react").FC<import("./Tooltip.type").TooltipProps>;
4
+ tags: string[];
5
+ };
6
+ export default _default;
7
+ export declare const Top: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Right: () => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Bottom: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const Left: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface TooltipProps {
2
+ content: string;
3
+ children: React.ReactNode;
4
+ position?: 'top' | 'right' | 'bottom' | 'left';
5
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Tooltip';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ITypographyProps } from './Typography.types';
3
+ declare const Typography: React.FC<ITypographyProps>;
4
+ export default Typography;
@@ -0,0 +1,17 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Typography from './Typography';
3
+ declare const meta: Meta<typeof Typography>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Typography>;
6
+ export declare const h1: Story;
7
+ export declare const h2: Story;
8
+ export declare const h3: Story;
9
+ export declare const h4: Story;
10
+ export declare const h5: Story;
11
+ export declare const h6: Story;
12
+ export declare const subtitle1: Story;
13
+ export declare const subtitle2: Story;
14
+ export declare const body1: Story;
15
+ export declare const body2: Story;
16
+ export declare const caption: Story;
17
+ export declare const overline: Story;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export interface ITypographyProps {
3
+ variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
4
+ component?: React.ElementType;
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ color?: 'default' | 'primary' | 'secondary' | 'accent' | 'muted' | 'error' | 'success';
8
+ }
@@ -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,4 @@
1
+ import React from 'react';
2
+ import { IPinInputProps } from './OtpInput.type';
3
+ declare const OtpInput: React.ForwardRefExoticComponent<IPinInputProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default OtpInput;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import OtpInput from '.';
3
+ declare const meta: Meta<typeof OtpInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const SixDigit: Story;
@@ -0,0 +1,13 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export interface IPinInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'endIcon' | 'size'> {
3
+ value?: string;
4
+ onChange?: (pin: string) => void;
5
+ onComplete?: (pin: string) => void;
6
+ length?: number;
7
+ inputClass?: string;
8
+ className?: string;
9
+ disabled?: boolean;
10
+ size?: 'small' | 'medium' | 'large';
11
+ variant?: 'outlined' | 'filled';
12
+ rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
13
+ }
@@ -0,0 +1 @@
1
+ export { default } from './OtpInput';
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ export * from './components';
@@ -0,0 +1 @@
1
+ {"root":["../src/index.tsx","../src/components/index.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/accordion.types.ts","../src/components/accordion/index.ts","../src/components/actionmenu/actionmenu.stories.tsx","../src/components/actionmenu/actionmenu.tsx","../src/components/actionmenu/actionmenu.types.ts","../src/components/actionmenu/index.ts","../src/components/alert/alert.stories.tsx","../src/components/alert/alert.tsx","../src/components/alert/alert.types.ts","../src/components/alert/index.ts","../src/components/avatar/avatar.stories.tsx","../src/components/avatar/avatar.tsx","../src/components/avatar/avatar.types.ts","../src/components/avatar/index.ts","../src/components/badge/badge.stories.tsx","../src/components/badge/badge.tsx","../src/components/badge/badge.types.ts","../src/components/badge/index.ts","../src/components/bottomnavigation/bottomnavigation.stories.tsx","../src/components/bottomnavigation/bottomnavigation.tsx","../src/components/bottomnavigation/bottomnavigation.types.ts","../src/components/bottomnavigation/index.ts","../src/components/breadcrumbs/breadcrumbs.stories.tsx","../src/components/breadcrumbs/breadcrumbs.tsx","../src/components/breadcrumbs/breadcrumbs.types.ts","../src/components/breadcrumbs/index.ts","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/button.types.ts","../src/components/button/index.ts","../src/components/card/card.stories.tsx","../src/components/card/card.tsx","../src/components/card/card.types.ts","../src/components/card/index.ts","../src/components/cardwrapper/cardwrapper.stories.tsx","../src/components/cardwrapper/cardwrapper.tsx","../src/components/cardwrapper/cardwrapper.types.ts","../src/components/cardwrapper/index.ts","../src/components/carousel/carousel.stories.tsx","../src/components/carousel/carousel.tsx","../src/components/carousel/carousel.types.ts","../src/components/carousel/index.tsx","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/checkbox.types.ts","../src/components/checkbox/index.ts","../src/components/dashboardstatboxes/dashboardstatboxes.stories.tsx","../src/components/dashboardstatboxes/dashboardstatboxes.tsx","../src/components/dashboardstatboxes/dashboardstatboxes.types.ts","../src/components/dashboardstatboxes/index.ts","../src/components/datepicker/datepicker.stories.tsx","../src/components/datepicker/datepicker.tsx","../src/components/datepicker/datepicker.types.ts","../src/components/datepicker/index.ts","../src/components/dialog/dialog.stories.tsx","../src/components/dialog/dialog.tsx","../src/components/dialog/dialog.types.ts","../src/components/dialog/index.ts","../src/components/divider/divider.stories.tsx","../src/components/divider/divider.tsx","../src/components/divider/divider.types.ts","../src/components/divider/index.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/drawer.types.ts","../src/components/drawer/index.ts","../src/components/dropdown/dropdown.stories.tsx","../src/components/dropdown/dropdown.tsx","../src/components/dropdown/dropdown.types.ts","../src/components/dropdown/index.ts","../src/components/dropzoneuploader/dropzoneuploader.stories.tsx","../src/components/dropzoneuploader/dropzoneuploader.tsx","../src/components/dropzoneuploader/dropzoneuploader.types.ts","../src/components/dropzoneuploader/index.ts","../src/components/emptystate/emptystate.stories.tsx","../src/components/emptystate/emptystate.tsx","../src/components/emptystate/emptystate.types.ts","../src/components/emptystate/index.tsx","../src/components/iconbutton/icon.stories.tsx","../src/components/iconbutton/iconbutton.tsx","../src/components/iconbutton/iconbutton.types.ts","../src/components/iconbutton/index.ts","../src/components/list/list.stories.tsx","../src/components/list/list.tsx","../src/components/list/list.types.ts","../src/components/list/listitem.tsx","../src/components/list/index.ts","../src/components/menu/menu.tsx","../src/components/menu/menu.types.ts","../src/components/menu/select.stories.tsx","../src/components/menu/index.ts","../src/components/pagination/pagination.stories.tsx","../src/components/pagination/pagination.tsx","../src/components/pagination/pagination.types.ts","../src/components/pagination/index.ts","../src/components/passwordinput/passwordinput.stories.tsx","../src/components/passwordinput/passwordinput.tsx","../src/components/passwordinput/index.tsx","../src/components/pill/pill.stories.tsx","../src/components/pill/pill.tsx","../src/components/pill/pill.type.ts","../src/components/pill/index.ts","../src/components/profileimageshowcase/profileshowcase.stories.tsx","../src/components/profileimageshowcase/profileshowcase.tsx","../src/components/profileimageshowcase/profileshowcase.type.tsx","../src/components/profileimageshowcase/index.ts","../src/components/progress/progress.stories.tsx","../src/components/progress/progress.tsx","../src/components/progress/progress.types.ts","../src/components/progress/index.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/radiogroup.types.ts","../src/components/radiogroup/index.ts","../src/components/searchbar/searchbar.stories.tsx","../src/components/searchbar/searchbar.tsx","../src/components/searchbar/searchbar.types.ts","../src/components/searchbar/index.tsx","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/select.types.ts","../src/components/select/index.ts","../src/components/sidebar/sidebar.stories.tsx","../src/components/sidebar/sidebar.tsx","../src/components/sidebar/sidebar.types.ts","../src/components/sidebar/index.ts","../src/components/skeleton/skeleton.stories.tsx","../src/components/skeleton/skeleton.tsx","../src/components/skeleton/skeleton.types.ts","../src/components/skeleton/index.tsx","../src/components/slider/slider.stories.tsx","../src/components/slider/slider.tsx","../src/components/slider/slider.types.ts","../src/components/slider/index.tsx","../src/components/snackbar/snackbar.stories.tsx","../src/components/snackbar/snackbar.tsx","../src/components/snackbar/snackbar.types.ts","../src/components/snackbar/index.tsx","../src/components/stepper/stepper.stories.tsx","../src/components/stepper/stepper.tsx","../src/components/stepper/stepper.type.ts","../src/components/stepper/index.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/table.types.ts","../src/components/table/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/tabs.types.ts","../src/components/tabs/index.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/textarea.types.ts","../src/components/textarea/index.tsx","../src/components/textinput/textinput.stories.tsx","../src/components/textinput/textinput.tsx","../src/components/textinput/textinput.types.ts","../src/components/textinput/index.tsx","../src/components/toggleswitch/toggleswitch.stories.tsx","../src/components/toggleswitch/toggleswitch.tsx","../src/components/toggleswitch/toggleswitch.types.ts","../src/components/toggleswitch/index.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/tooltip.type.ts","../src/components/tooltip/index.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/typography.types.ts","../src/components/typography/index.ts","../src/components/otpinput/otpinput.stories.tsx","../src/components/otpinput/otpinput.tsx","../src/components/otpinput/otpinput.type.tsx","../src/components/otpinput/index.tsx","../src/utils/colormap.ts","../src/utils/constants.ts"],"version":"5.7.3"}
@@ -0,0 +1,156 @@
1
+ export type CompColor = 'dark' | 'gray' | 'light' | 'pearl' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
2
+ export declare const COLOR_MAP: Record<CompColor, string>;
3
+ export declare const ACCENT_COLOR_MAP: Record<CompColor, string>;
4
+ export declare const BORDER_COLOR_MAP: Record<CompColor, string>;
5
+ export declare const PEER_BORDER_COLOR_MAP: Record<CompColor, string>;
6
+ export declare const TEXT_COLOR_MAP: Record<CompColor, string>;
7
+ export declare const BG_COLOR_MAP: Record<CompColor, string>;
8
+ export declare const RANGE_COLOR_MAP: {
9
+ dark: {
10
+ track: string;
11
+ progress: string;
12
+ thumb: string;
13
+ thumbHover: string;
14
+ thumbActive: string;
15
+ };
16
+ gray: {
17
+ track: string;
18
+ progress: string;
19
+ thumb: string;
20
+ thumbHover: string;
21
+ thumbActive: string;
22
+ };
23
+ light: {
24
+ track: string;
25
+ progress: string;
26
+ thumb: string;
27
+ thumbHover: string;
28
+ thumbActive: string;
29
+ };
30
+ pearl: {
31
+ track: string;
32
+ progress: string;
33
+ thumb: string;
34
+ thumbHover: string;
35
+ thumbActive: string;
36
+ };
37
+ red: {
38
+ track: string;
39
+ progress: string;
40
+ thumb: string;
41
+ thumbHover: string;
42
+ thumbActive: string;
43
+ };
44
+ orange: {
45
+ track: string;
46
+ progress: string;
47
+ thumb: string;
48
+ thumbHover: string;
49
+ thumbActive: string;
50
+ };
51
+ amber: {
52
+ track: string;
53
+ progress: string;
54
+ thumb: string;
55
+ thumbHover: string;
56
+ thumbActive: string;
57
+ };
58
+ yellow: {
59
+ track: string;
60
+ progress: string;
61
+ thumb: string;
62
+ thumbHover: string;
63
+ thumbActive: string;
64
+ };
65
+ lime: {
66
+ track: string;
67
+ progress: string;
68
+ thumb: string;
69
+ thumbHover: string;
70
+ thumbActive: string;
71
+ };
72
+ green: {
73
+ track: string;
74
+ progress: string;
75
+ thumb: string;
76
+ thumbHover: string;
77
+ thumbActive: string;
78
+ };
79
+ emerald: {
80
+ track: string;
81
+ progress: string;
82
+ thumb: string;
83
+ thumbHover: string;
84
+ thumbActive: string;
85
+ };
86
+ teal: {
87
+ track: string;
88
+ progress: string;
89
+ thumb: string;
90
+ thumbHover: string;
91
+ thumbActive: string;
92
+ };
93
+ cyan: {
94
+ track: string;
95
+ progress: string;
96
+ thumb: string;
97
+ thumbHover: string;
98
+ thumbActive: string;
99
+ };
100
+ sky: {
101
+ track: string;
102
+ progress: string;
103
+ thumb: string;
104
+ thumbHover: string;
105
+ thumbActive: string;
106
+ };
107
+ blue: {
108
+ track: string;
109
+ progress: string;
110
+ thumb: string;
111
+ thumbHover: string;
112
+ thumbActive: string;
113
+ };
114
+ indigo: {
115
+ track: string;
116
+ progress: string;
117
+ thumb: string;
118
+ thumbHover: string;
119
+ thumbActive: string;
120
+ };
121
+ violet: {
122
+ track: string;
123
+ progress: string;
124
+ thumb: string;
125
+ thumbHover: string;
126
+ thumbActive: string;
127
+ };
128
+ purple: {
129
+ track: string;
130
+ progress: string;
131
+ thumb: string;
132
+ thumbHover: string;
133
+ thumbActive: string;
134
+ };
135
+ fuchsia: {
136
+ track: string;
137
+ progress: string;
138
+ thumb: string;
139
+ thumbHover: string;
140
+ thumbActive: string;
141
+ };
142
+ pink: {
143
+ track: string;
144
+ progress: string;
145
+ thumb: string;
146
+ thumbHover: string;
147
+ thumbActive: string;
148
+ };
149
+ rose: {
150
+ track: string;
151
+ progress: string;
152
+ thumb: string;
153
+ thumbHover: string;
154
+ thumbActive: string;
155
+ };
156
+ };
@@ -0,0 +1 @@
1
+ export declare const dummyImageUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizap/uniui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A UI component library for React",
5
5
  "type": "module",
6
6
  "files": [
@@ -19,10 +19,6 @@
19
19
  "build-storybook": "storybook build",
20
20
  "prepare": "husky"
21
21
  },
22
- "peerDependencies": {
23
- "react": "^19.0.0",
24
- "react-dom": "^19.0.0"
25
- },
26
22
  "lint-staged": {
27
23
  "*.{ts,html,tsx}": [
28
24
  "eslint --fix",
@@ -48,6 +44,7 @@
48
44
  "@vitejs/plugin-react": "^4.3.4",
49
45
  "@vitest/browser": "^3.0.9",
50
46
  "@vitest/coverage-v8": "^3.0.9",
47
+ "@babel/runtime": "^7.28.2",
51
48
  "daisyui": "^5.0.11",
52
49
  "eslint": "^9.21.0",
53
50
  "eslint-plugin-react-hooks": "^5.1.0",
@@ -63,7 +60,12 @@
63
60
  "typescript-eslint": "^8.24.1",
64
61
  "vite": "^6.2.0",
65
62
  "vite-plugin-dts": "^4.5.3",
66
- "vitest": "^3.0.9"
63
+ "vitest": "^3.0.9",
64
+ "react-router-dom": "^7.5.0"
65
+ },
66
+ "peerDependencies": {
67
+ "react": ">=16.8.0",
68
+ "react-dom": ">=16.8.0"
67
69
  },
68
70
  "eslintConfig": {
69
71
  "extends": [
@@ -71,10 +73,8 @@
71
73
  ]
72
74
  },
73
75
  "dependencies": {
74
- "@babel/runtime": "^7.28.2",
75
76
  "@tanstack/react-table": "^8.21.2",
76
77
  "@unizap/unicss": "^1.1.27",
77
- "react-dropzone": "^14.3.8",
78
- "react-router-dom": "^7.5.0"
78
+ "react-dropzone": "^14.3.8"
79
79
  }
80
80
  }