mango-ui-kit 1.0.0
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 +63 -0
- package/dist/components/accordion/accordion.d.ts +3 -0
- package/dist/components/accordion/accordion.stories.d.ts +8 -0
- package/dist/components/accordion/accordion.types.d.ts +13 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/app-bar/app-bar.d.ts +3 -0
- package/dist/components/app-bar/app-bar.stories.d.ts +9 -0
- package/dist/components/app-bar/app-bar.types.d.ts +20 -0
- package/dist/components/app-bar/index.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts +3 -0
- package/dist/components/avatar/avatar.stories.d.ts +8 -0
- package/dist/components/avatar/avatar.styles.d.ts +3 -0
- package/dist/components/avatar/avatar.types.d.ts +8 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar-group/avatar-group.d.ts +3 -0
- package/dist/components/avatar-group/avatar-group.stories.d.ts +8 -0
- package/dist/components/avatar-group/avatar-group.types.d.ts +10 -0
- package/dist/components/avatar-group/index.d.ts +2 -0
- package/dist/components/badge/badge.d.ts +4 -0
- package/dist/components/badge/badge.stories.d.ts +9 -0
- package/dist/components/badge/badge.types.d.ts +7 -0
- package/dist/components/badge/index.d.ts +2 -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 +11 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/button/button.stories.d.ts +9 -0
- package/dist/components/button/button.styles.d.ts +4 -0
- package/dist/components/button/button.test.d.ts +0 -0
- package/dist/components/button/button.types.d.ts +11 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/calendar-date-picker/calendar-date-picker.d.ts +3 -0
- package/dist/components/calendar-date-picker/calendar-date-picker.stories.d.ts +7 -0
- package/dist/components/calendar-date-picker/calendar-date-picker.types.d.ts +6 -0
- package/dist/components/calendar-date-picker/index.d.ts +2 -0
- package/dist/components/card/card.d.ts +8 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/confirmation-modal/confirmation-modal.d.ts +3 -0
- package/dist/components/confirmation-modal/confirmation-modal.stories.d.ts +7 -0
- package/dist/components/confirmation-modal/confirmation-modal.types.d.ts +11 -0
- package/dist/components/confirmation-modal/index.d.ts +2 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +3 -0
- package/dist/components/date-range-picker/date-range-picker.stories.d.ts +7 -0
- package/dist/components/date-range-picker/date-range-picker.types.d.ts +10 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +3 -0
- package/dist/components/drawer/drawer.stories.d.ts +7 -0
- package/dist/components/drawer/drawer.types.d.ts +11 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/dropdown/dropdown.d.ts +3 -0
- package/dist/components/dropdown/dropdown.stories.d.ts +9 -0
- package/dist/components/dropdown/dropdown.types.d.ts +22 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/file-dropzone/file-dropzone.d.ts +3 -0
- package/dist/components/file-dropzone/file-dropzone.stories.d.ts +8 -0
- package/dist/components/file-dropzone/file-dropzone.types.d.ts +7 -0
- package/dist/components/file-dropzone/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/input.d.ts +6 -0
- package/dist/components/input/input.stories.d.ts +9 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +9 -0
- package/dist/components/multi-select/index.d.ts +2 -0
- package/dist/components/multi-select/multi-select.d.ts +3 -0
- package/dist/components/multi-select/multi-select.stories.d.ts +7 -0
- package/dist/components/multi-select/multi-select.types.d.ts +12 -0
- package/dist/components/progress-bar/index.d.ts +2 -0
- package/dist/components/progress-bar/progress-bar.d.ts +3 -0
- package/dist/components/progress-bar/progress-bar.stories.d.ts +9 -0
- package/dist/components/progress-bar/progress-bar.types.d.ts +9 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/rating.d.ts +3 -0
- package/dist/components/rating/rating.stories.d.ts +9 -0
- package/dist/components/rating/rating.types.d.ts +10 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/sidebar.d.ts +3 -0
- package/dist/components/sidebar/sidebar.stories.d.ts +7 -0
- package/dist/components/sidebar/sidebar.types.d.ts +21 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.d.ts +3 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +11 -0
- package/dist/components/skeleton/skeleton.types.d.ts +11 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/spinner.d.ts +3 -0
- package/dist/components/spinner/spinner.stories.d.ts +9 -0
- package/dist/components/spinner/spinner.types.d.ts +6 -0
- package/dist/components/stat-card/index.d.ts +2 -0
- package/dist/components/stat-card/stat-card.d.ts +3 -0
- package/dist/components/stat-card/stat-card.stories.d.ts +9 -0
- package/dist/components/stat-card/stat-card.types.d.ts +10 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +5 -0
- package/dist/components/table/table.stories.d.ts +8 -0
- package/dist/components/table/table.types.d.ts +14 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs.d.ts +3 -0
- package/dist/components/tabs/tabs.stories.d.ts +7 -0
- package/dist/components/tabs/tabs.types.d.ts +13 -0
- package/dist/components/theme-provider/index.d.ts +1 -0
- package/dist/components/theme-provider/theme-provider.d.ts +14 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/time-picker.d.ts +3 -0
- package/dist/components/time-picker/time-picker.stories.d.ts +7 -0
- package/dist/components/time-picker/time-picker.types.d.ts +6 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +3 -0
- package/dist/components/toggle/toggle.stories.d.ts +10 -0
- package/dist/components/toggle/toggle.types.d.ts +8 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useToggle.d.ts +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/mango-ui-kit.css +1 -0
- package/dist/mango-ui-kit.js +4793 -0
- package/dist/mango-ui-kit.umd.cjs +6 -0
- package/dist/theme/colors.d.ts +27 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/spacing.d.ts +8 -0
- package/dist/theme/typography.d.ts +26 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/format.d.ts +12 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +83 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Mango UI Kit 🥭
|
|
2
|
+
|
|
3
|
+
A premium, modern React UI component library built with TypeScript, Lucide Icons, and Tailwind CSS.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
- ✨ **Premium Aesthetics**: Carefully crafted components with a focus on modern design.
|
|
7
|
+
- 🎨 **Theme Support**: Built-in support for light and dark modes via CSS variables.
|
|
8
|
+
- 🛡️ **Type Safe**: Written in TypeScript for excellent developer experience.
|
|
9
|
+
- 🧩 **Modular**: Use only the components you need.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install mango-ui-kit
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
First, import the styles in your main entry file (e.g., `main.ts` or `App.tsx`):
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import 'mango-ui-kit/dist/style.css';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then, you can start using components:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import { Button, Card, AppBar } from 'mango-ui-kit';
|
|
29
|
+
|
|
30
|
+
function App() {
|
|
31
|
+
return (
|
|
32
|
+
<div>
|
|
33
|
+
<AppBar
|
|
34
|
+
user={{ fullName: "John Doe" }}
|
|
35
|
+
subscriptionPlan="Pro"
|
|
36
|
+
/>
|
|
37
|
+
<Card hoverable className="m-4">
|
|
38
|
+
<h1>Welcome to Mango UI</h1>
|
|
39
|
+
<Button variant="primary">Get Started</Button>
|
|
40
|
+
</Card>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Available Components
|
|
47
|
+
|
|
48
|
+
- **Navigation**: AppBar, Sidebar, Breadcrumbs
|
|
49
|
+
- **Inputs**: Button, Input, Dropdown, MultiSelect, FileDropzone, Toggle, TimePicker
|
|
50
|
+
- **Feedback**: Spinner, ProgressBar, Skeleton, ConfirmationModal, Rating
|
|
51
|
+
- **Data Display**: Table, Card, StatCard, Badge, Avatar, AvatarGroup, Accordion, Tabs
|
|
52
|
+
- **Date/Time**: CalendarDatePicker, DateRangePicker
|
|
53
|
+
- **Layout**: Drawer
|
|
54
|
+
|
|
55
|
+
## Peer Dependencies
|
|
56
|
+
|
|
57
|
+
Ensure you have the following installed:
|
|
58
|
+
- `react` >= 18.0.0
|
|
59
|
+
- `react-dom` >= 18.0.0
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT © Mango UI Team
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Accordion } from './accordion';
|
|
3
|
+
declare const meta: Meta<typeof Accordion>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AllowMultiple: Story;
|
|
8
|
+
export declare const AllClosed: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface AccordionItem {
|
|
4
|
+
title: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
icon?: LucideIcon;
|
|
7
|
+
}
|
|
8
|
+
export interface AccordionProps {
|
|
9
|
+
items?: AccordionItem[];
|
|
10
|
+
allowMultiple?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
defaultOpen?: number[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { AppBar } from './app-bar';
|
|
3
|
+
declare const meta: Meta<typeof AppBar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithSubscription: Story;
|
|
8
|
+
export declare const FreeWithUpgrade: Story;
|
|
9
|
+
export declare const DarkTheme: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AppBarUser {
|
|
3
|
+
fullName?: string;
|
|
4
|
+
avatarUrl?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AppBarProps {
|
|
8
|
+
theme?: 'light' | 'dark';
|
|
9
|
+
onToggleTheme?: () => void;
|
|
10
|
+
onToggleSidebar?: () => void;
|
|
11
|
+
user?: AppBarUser;
|
|
12
|
+
onLogout?: () => void;
|
|
13
|
+
onUpgrade?: () => void;
|
|
14
|
+
subscriptionPlan?: string;
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
onSearch?: (query: string) => void;
|
|
17
|
+
notificationCount?: number;
|
|
18
|
+
className?: string;
|
|
19
|
+
logo?: ReactNode;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Avatar } from './avatar';
|
|
3
|
+
declare const meta: Meta<typeof Avatar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Avatar>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Image: Story;
|
|
8
|
+
export declare const Large: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { avatarStyles } from './avatar.styles';
|
|
4
|
+
export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarStyles> {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
fallback?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { AvatarGroup } from './avatar-group';
|
|
3
|
+
declare const meta: Meta<typeof AvatarGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ShowMore: Story;
|
|
8
|
+
export declare const Initials: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Badge } from './badge';
|
|
3
|
+
declare const meta: Meta<typeof Badge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Badge>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Success: Story;
|
|
8
|
+
export declare const Large: Story;
|
|
9
|
+
export declare const Pill: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success' | 'warning' | 'info';
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
pill?: boolean;
|
|
6
|
+
icon?: React.ElementType;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Breadcrumbs } from './breadcrumbs';
|
|
3
|
+
declare const meta: Meta<typeof Breadcrumbs>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const TwoLevels: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode, ComponentType } from 'react';
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
icon?: ComponentType<any>;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbsProps {
|
|
8
|
+
items: BreadcrumbItem[];
|
|
9
|
+
separator?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Button } from './button';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
8
|
+
export declare const Outline: Story;
|
|
9
|
+
export declare const Loading: Story;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
|
|
3
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
leftIcon?: ReactNode;
|
|
9
|
+
rightIcon?: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { CalendarDatePicker } from './calendar-date-picker';
|
|
3
|
+
declare const meta: Meta<typeof CalendarDatePicker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithValue: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
hoverable?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const Card: ({ className, hoverable, children, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const CardHeader: ({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const CardTitle: ({ className, children, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const CardContent: ({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './card';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ConfirmationModal } from './confirmation-modal';
|
|
3
|
+
declare const meta: Meta<typeof ConfirmationModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Danger: Story;
|
|
7
|
+
export declare const Warning: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ConfirmationModalProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onConfirm: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
confirmLabel?: string;
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
type?: 'danger' | 'warning' | 'primary';
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { DateRangePicker } from './date-range-picker';
|
|
3
|
+
declare const meta: Meta<typeof DateRangePicker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Preselected: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Drawer } from './drawer';
|
|
3
|
+
declare const meta: Meta<typeof Drawer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithFooter: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Dropdown } from './dropdown';
|
|
3
|
+
declare const meta: Meta<typeof Dropdown>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Searchable: Story;
|
|
8
|
+
export declare const WithIcon: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode, ComponentType } from 'react';
|
|
2
|
+
export interface DropdownOption {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
details?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DropdownProps {
|
|
9
|
+
options?: DropdownOption[];
|
|
10
|
+
value?: string;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
icon?: ComponentType<{
|
|
15
|
+
size?: number;
|
|
16
|
+
className?: string;
|
|
17
|
+
}>;
|
|
18
|
+
className?: string;
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
searchable?: boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FileDropzone } from './file-dropzone';
|
|
3
|
+
declare const meta: Meta<typeof FileDropzone>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ImagesOnly: Story;
|
|
8
|
+
export declare const SingleFile: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Input } from './input';
|
|
3
|
+
declare const meta: Meta<typeof Input>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Input>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLabel: Story;
|
|
8
|
+
export declare const WithError: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modal';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Modal: ({ isOpen, onClose, title, children, className }: ModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { MultiSelect } from './multi-select';
|
|
3
|
+
declare const meta: Meta<typeof MultiSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const PreSelected: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface MultiSelectOption {
|
|
2
|
+
id: string | number;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MultiSelectProps {
|
|
6
|
+
options: MultiSelectOption[];
|
|
7
|
+
value?: (string | number)[];
|
|
8
|
+
onChange: (value: (string | number)[]) => void;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ProgressBar } from './progress-bar';
|
|
3
|
+
declare const meta: Meta<typeof ProgressBar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const NoLabel: Story;
|
|
8
|
+
export declare const CustomColor: Story;
|
|
9
|
+
export declare const Multiple: Story;
|