@murabei-data-science/pumpwood-ui 1.3.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/LICENSE +21 -0
- package/README.md +145 -0
- package/dist/components.d.ts +1227 -0
- package/dist/components.esm.js +39 -0
- package/dist/components.js +40 -0
- package/dist/design-system.d.ts +391 -0
- package/dist/design-system.esm.js +26 -0
- package/dist/design-system.js +27 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1599 -0
- package/dist/index.esm.js +39 -0
- package/dist/index.js +40 -0
- package/dist/types/components/AlertWithIcon/index.d.ts +12 -0
- package/dist/types/components/Auth/AuthenticatedView.d.ts +18 -0
- package/dist/types/components/Auth/LoginCard.d.ts +33 -0
- package/dist/types/components/Auth/LoginCardSSO.d.ts +31 -0
- package/dist/types/components/Auth/NotAuthenticatedView.d.ts +21 -0
- package/dist/types/components/Auth/index.d.ts +4 -0
- package/dist/types/components/AutoFormContent/index.d.ts +46 -0
- package/dist/types/components/Badge/index.d.ts +17 -0
- package/dist/types/components/Card/index.d.ts +23 -0
- package/dist/types/components/ClearButton/index.d.ts +3 -0
- package/dist/types/components/CombinedFilterTable/index.d.ts +9 -0
- package/dist/types/components/ConfirmationDialog/index.d.ts +71 -0
- package/dist/types/components/CustomBreadcrumb/index.d.ts +6 -0
- package/dist/types/components/DatePicker/index.d.ts +35 -0
- package/dist/types/components/DeleteDialog/index.d.ts +9 -0
- package/dist/types/components/DetailPage/AutoDetailContent.d.ts +27 -0
- package/dist/types/components/DetailPage/DetailPage.d.ts +24 -0
- package/dist/types/components/DetailPage/detail-utils.d.ts +24 -0
- package/dist/types/components/DetailPage/index.d.ts +3 -0
- package/dist/types/components/DownloadButton/index.d.ts +20 -0
- package/dist/types/components/Dropzone/index.d.ts +21 -0
- package/dist/types/components/EmptyContainer/index.d.ts +16 -0
- package/dist/types/components/ErrorBoundary/index.d.ts +10 -0
- package/dist/types/components/ErrorMessage/index.d.ts +4 -0
- package/dist/types/components/ErrorToast/index.d.ts +4 -0
- package/dist/types/components/FKSelect/index.d.ts +63 -0
- package/dist/types/components/FileDropzone/index.d.ts +22 -0
- package/dist/types/components/FilePreview/index.d.ts +13 -0
- package/dist/types/components/Filters/CreatedByUserFilter.d.ts +24 -0
- package/dist/types/components/Filters/DateRangeFilter.d.ts +23 -0
- package/dist/types/components/KeyValueContent/index.d.ts +3 -0
- package/dist/types/components/Loading/index.d.ts +2 -0
- package/dist/types/components/M2MTable/index.d.ts +35 -0
- package/dist/types/components/MarkdownEditor/index.d.ts +12 -0
- package/dist/types/components/MultiSelectDropdown/index.d.ts +14 -0
- package/dist/types/components/NoResult/index.d.ts +15 -0
- package/dist/types/components/Pagination/index.d.ts +12 -0
- package/dist/types/components/Select/FKSelectVariant.d.ts +52 -0
- package/dist/types/components/Select/index.d.ts +70 -0
- package/dist/types/components/Sidebar/NavigationSidebar.d.ts +45 -0
- package/dist/types/components/Sidebar/index.d.ts +157 -0
- package/dist/types/components/Sidebar/useSidebarCollapse.d.ts +18 -0
- package/dist/types/components/Stack/index.d.ts +28 -0
- package/dist/types/components/Table/index.d.ts +92 -0
- package/dist/types/components/TableSkeleton/index.d.ts +23 -0
- package/dist/types/components/TagInput/index.d.ts +13 -0
- package/dist/types/components/Text/index.d.ts +21 -0
- package/dist/types/components/TooltipComponent/index.d.ts +8 -0
- package/dist/types/components/index.d.ts +56 -0
- package/dist/types/components/ui/accordion.d.ts +7 -0
- package/dist/types/components/ui/alert-dialog.d.ts +33 -0
- package/dist/types/components/ui/alert.d.ts +8 -0
- package/dist/types/components/ui/badge.d.ts +18 -0
- package/dist/types/components/ui/breadcrumb.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts +32 -0
- package/dist/types/components/ui/calendar.d.ts +21 -0
- package/dist/types/components/ui/card.d.ts +21 -0
- package/dist/types/components/ui/checkbox.d.ts +4 -0
- package/dist/types/components/ui/combobox.d.ts +33 -0
- package/dist/types/components/ui/command.d.ts +31 -0
- package/dist/types/components/ui/dialog.d.ts +32 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/types/components/ui/empty.d.ts +23 -0
- package/dist/types/components/ui/input.d.ts +15 -0
- package/dist/types/components/ui/label.d.ts +5 -0
- package/dist/types/components/ui/popover.d.ts +18 -0
- package/dist/types/components/ui/radio.d.ts +3 -0
- package/dist/types/components/ui/select.d.ts +13 -0
- package/dist/types/components/ui/skeleton.d.ts +11 -0
- package/dist/types/components/ui/spinner.d.ts +8 -0
- package/dist/types/components/ui/table.d.ts +29 -0
- package/dist/types/components/ui/tabs.d.ts +20 -0
- package/dist/types/components/ui/textarea.d.ts +3 -0
- package/dist/types/components/ui/tooltip.d.ts +7 -0
- package/dist/types/design-system/Auth/AuthenticatedView.d.ts +18 -0
- package/dist/types/design-system/Auth/LoginCard.d.ts +33 -0
- package/dist/types/design-system/Auth/LoginCardSSO.d.ts +31 -0
- package/dist/types/design-system/Auth/NotAuthenticatedView.d.ts +21 -0
- package/dist/types/design-system/Auth/index.d.ts +4 -0
- package/dist/types/design-system/AutoFormContent/index.d.ts +46 -0
- package/dist/types/design-system/CombinedFilterTable/index.d.ts +9 -0
- package/dist/types/design-system/CustomBreadcrumb/index.d.ts +6 -0
- package/dist/types/design-system/DetailPage/AutoDetailContent.d.ts +27 -0
- package/dist/types/design-system/DetailPage/DetailPage.d.ts +24 -0
- package/dist/types/design-system/DetailPage/detail-utils.d.ts +24 -0
- package/dist/types/design-system/DetailPage/index.d.ts +3 -0
- package/dist/types/design-system/FilePreview/index.d.ts +13 -0
- package/dist/types/design-system/Filters/CreatedByUserFilter.d.ts +24 -0
- package/dist/types/design-system/Filters/DateRangeFilter.d.ts +23 -0
- package/dist/types/design-system/KeyValueContent/index.d.ts +3 -0
- package/dist/types/design-system/M2MTable/index.d.ts +35 -0
- package/dist/types/design-system/NavigationSidebar/index.d.ts +47 -0
- package/dist/types/design-system/index.d.ts +11 -0
- package/dist/types/index.d.ts +67 -0
- package/dist/types/lib/field-trigger.d.ts +5 -0
- package/dist/types/lib/fk-select-fetcher.d.ts +26 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/src/components/Badge/index.d.ts +17 -0
- package/dist/types/src/components/Card/index.d.ts +23 -0
- package/dist/types/src/components/CombinedFilterTable/index.d.ts +9 -0
- package/dist/types/src/components/ConfirmationDialog/index.d.ts +71 -0
- package/dist/types/src/components/Dropzone/index.d.ts +21 -0
- package/dist/types/src/components/EmptyContainer/index.d.ts +16 -0
- package/dist/types/src/components/FKSelect/index.d.ts +45 -0
- package/dist/types/src/components/FileDropzone/index.d.ts +22 -0
- package/dist/types/src/components/Filters/CreatedByUserFilter.d.ts +24 -0
- package/dist/types/src/components/Filters/DateRangeFilter.d.ts +23 -0
- package/dist/types/src/components/Sidebar/index.d.ts +115 -0
- package/dist/types/src/components/Stack/index.d.ts +22 -0
- package/dist/types/src/components/Table/index.d.ts +29 -0
- package/dist/types/src/components/Text/index.d.ts +21 -0
- package/dist/types/src/components/ui/alert-dialog.d.ts +33 -0
- package/dist/types/src/components/ui/badge.d.ts +18 -0
- package/dist/types/src/components/ui/button.d.ts +22 -0
- package/dist/types/src/components/ui/calendar.d.ts +21 -0
- package/dist/types/src/components/ui/card.d.ts +21 -0
- package/dist/types/src/components/ui/combobox.d.ts +28 -0
- package/dist/types/src/components/ui/command.d.ts +31 -0
- package/dist/types/src/components/ui/dialog.d.ts +32 -0
- package/dist/types/src/components/ui/empty.d.ts +23 -0
- package/dist/types/src/components/ui/popover.d.ts +18 -0
- package/dist/types/src/components/ui/table.d.ts +29 -0
- package/dist/types/src/components/ui/tabs.d.ts +20 -0
- package/dist/types/src/index.d.ts +21 -0
- package/dist/types/src/lib/utils.d.ts +2 -0
- package/dist/types/src/stories/Components/CombinedFilterTable.stories.d.ts +8 -0
- package/dist/types/src/stories/Components/ConfirmationDialog.stories.d.ts +8 -0
- package/dist/types/src/stories/Components/CreatedByUserFilter.stories.d.ts +8 -0
- package/dist/types/src/stories/Components/DateRangeFilter.stories.d.ts +8 -0
- package/dist/types/src/stories/Components/EmptyContainer.stories.d.ts +24 -0
- package/dist/types/src/stories/Components/FKSelect.stories.d.ts +8 -0
- package/dist/types/src/stories/Components/FileDropZone.stories.d.ts +9 -0
- package/dist/types/src/stories/Components/Sidebar.stories.d.ts +18 -0
- package/dist/types/src/stories/Components/Table.stories.d.ts +11 -0
- package/dist/types/src/stories/Components/Tabs.stories.d.ts +13 -0
- package/dist/types/src/stories/Elements/Badge.stories.d.ts +13 -0
- package/dist/types/src/stories/Elements/Button.stories.d.ts +13 -0
- package/dist/types/src/stories/Elements/Stack.stories.d.ts +9 -0
- package/dist/types/src/stories/Elements/Text.stories.d.ts +8 -0
- package/dist/types/stories/Components/CombinedFilterTable.stories.d.ts +8 -0
- package/dist/types/stories/Components/ConfirmationDialog.stories.d.ts +8 -0
- package/dist/types/stories/Components/CreatedByUserFilter.stories.d.ts +8 -0
- package/dist/types/stories/Components/DateRangeFilter.stories.d.ts +8 -0
- package/dist/types/stories/Components/EmptyContainer.stories.d.ts +24 -0
- package/dist/types/stories/Components/FKSelect.stories.d.ts +8 -0
- package/dist/types/stories/Components/FileDropZone.stories.d.ts +9 -0
- package/dist/types/stories/Components/Sidebar.stories.d.ts +18 -0
- package/dist/types/stories/Components/Table.stories.d.ts +11 -0
- package/dist/types/stories/Components/Tabs.stories.d.ts +13 -0
- package/dist/types/stories/Elements/Badge.stories.d.ts +13 -0
- package/dist/types/stories/Elements/Button.stories.d.ts +13 -0
- package/dist/types/stories/Elements/Stack.stories.d.ts +9 -0
- package/dist/types/stories/Elements/Text.stories.d.ts +8 -0
- package/package.json +119 -0
- package/tailwind.config.ts +91 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ open, onOpenChange, children }: import("@/components/ConfirmationDialog").RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ value, onChange, fetcher, className, }: import("../../components/Filters/CreatedByUserFilter").CreatedByUserFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ startDate, endDate, onStartDateChange, onEndDateChange, startLabel, endLabel, className, }: import("../../components/Filters/DateRangeFilter").DateRangeFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { EmptyContainer } from "@/components/EmptyContainer";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof EmptyContainer;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
title: {
|
|
12
|
+
control: "text";
|
|
13
|
+
};
|
|
14
|
+
description: {
|
|
15
|
+
control: "text";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
export declare const NoResults: Story;
|
|
23
|
+
export declare const EmptyDashboard: Story;
|
|
24
|
+
export declare const InContainer: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ fetcher, modelClass, labelName, valueField, placeholder, emptyMessage, value, onChange, className, debounceWait, }: import("../../components/FKSelect").IFKSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import FileDropzone from '@/components/FileDropzone';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof FileDropzone;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const UploadCSV: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, isCollapsed, onToggleCollapse, className, }: import("../../components/Sidebar").SidebarRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
isCollapsed: {
|
|
11
|
+
control: "boolean";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Collapsed: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableElement> & import("react").RefAttributes<HTMLTableElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const TwoTabs: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { PumpwoodBadge } from '@/components/Badge';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof PumpwoodBadge;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Primary: Story;
|
|
10
|
+
export declare const Secondary: Story;
|
|
11
|
+
export declare const Warning: Story;
|
|
12
|
+
export declare const Destructive: Story;
|
|
13
|
+
export declare const Muted: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
|
|
5
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
6
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import Stack from '@/components/Stack';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Stack;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ open, onOpenChange, children }: import("@/components/ConfirmationDialog").RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ value, onChange, fetcher, className, }: import("../../components/Filters/CreatedByUserFilter").CreatedByUserFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ startDate, endDate, onStartDateChange, onEndDateChange, startLabel, endLabel, className, }: import("../../components/Filters/DateRangeFilter").DateRangeFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import { EmptyContainer } from "@/components/EmptyContainer";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof EmptyContainer;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
title: {
|
|
12
|
+
control: "text";
|
|
13
|
+
};
|
|
14
|
+
description: {
|
|
15
|
+
control: "text";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
export declare const NoResults: Story;
|
|
23
|
+
export declare const EmptyDashboard: Story;
|
|
24
|
+
export declare const InContainer: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ fetcher, modelClass, labelName, valueField, placeholder, emptyMessage, value, onChange, className, debounceWait, }: import("../../components/FKSelect").IFKSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import FileDropzone from '@/components/FileDropzone';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof FileDropzone;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const UploadCSV: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, isCollapsed, onToggleCollapse, className, }: import("../../components/Sidebar").SidebarRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
isCollapsed: {
|
|
11
|
+
control: "boolean";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Collapsed: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableElement> & import("react").RefAttributes<HTMLTableElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const TwoTabs: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { PumpwoodBadge } from '@/components/Badge';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof PumpwoodBadge;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Primary: Story;
|
|
10
|
+
export declare const Secondary: Story;
|
|
11
|
+
export declare const Warning: Story;
|
|
12
|
+
export declare const Destructive: Story;
|
|
13
|
+
export declare const Muted: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
|
|
5
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import Stack from '@/components/Stack';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Stack;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Primary: Story;
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@murabei-data-science/pumpwood-ui",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "1.3.0",
|
|
7
|
+
"description": "",
|
|
8
|
+
"main": "dist/components.js",
|
|
9
|
+
"module": "dist/components.esm.js",
|
|
10
|
+
"style": "dist/index.css",
|
|
11
|
+
"types": "dist/components.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
"./components": {
|
|
14
|
+
"types": "./dist/components.d.ts",
|
|
15
|
+
"import": "./dist/components.esm.js",
|
|
16
|
+
"require": "./dist/components.js"
|
|
17
|
+
},
|
|
18
|
+
"./design-system": {
|
|
19
|
+
"types": "./dist/design-system.d.ts",
|
|
20
|
+
"import": "./dist/design-system.esm.js",
|
|
21
|
+
"require": "./dist/design-system.js"
|
|
22
|
+
},
|
|
23
|
+
"./tailwind.config": {
|
|
24
|
+
"import": "./tailwind.config.ts",
|
|
25
|
+
"require": "./tailwind.config.ts",
|
|
26
|
+
"default": "./tailwind.config.js"
|
|
27
|
+
},
|
|
28
|
+
"./dist/index.css": "./dist/index.css"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [],
|
|
31
|
+
"author": "Murabei",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"tailwind.config.js",
|
|
36
|
+
"tailwind.config.ts",
|
|
37
|
+
"tailwind.config.cjs"
|
|
38
|
+
],
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@toast-ui/editor": "^3.2.0",
|
|
41
|
+
"@toast-ui/react-editor": "^3.2.0",
|
|
42
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
43
|
+
"react-dom": "^17.0.0 || ^18.0.0",
|
|
44
|
+
"react-hook-form": "^7.62.0",
|
|
45
|
+
"swr": "^2.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@babel/core": "^7.28.5",
|
|
49
|
+
"@babel/preset-react": "^7.28.5",
|
|
50
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
51
|
+
"@chromatic-com/storybook": "^5.1.2",
|
|
52
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
53
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
54
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
55
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
56
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
57
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
58
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
60
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
61
|
+
"@storybook/addon-a11y": "^10.3.5",
|
|
62
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
63
|
+
"@storybook/addon-vitest": "^10.3.5",
|
|
64
|
+
"@storybook/react-vite": "^10.3.5",
|
|
65
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
66
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
67
|
+
"@toast-ui/editor": "^3.2.2",
|
|
68
|
+
"@toast-ui/react-editor": "^3.2.3",
|
|
69
|
+
"@types/react": "^19.2.14",
|
|
70
|
+
"@types/react-dom": "^19.2.3",
|
|
71
|
+
"@vitest/browser-playwright": "^4.0.14",
|
|
72
|
+
"@vitest/coverage-v8": "^4.0.14",
|
|
73
|
+
"autoprefixer": "^10.4.23",
|
|
74
|
+
"class-variance-authority": "^0.7.1",
|
|
75
|
+
"clsx": "^2.1.1",
|
|
76
|
+
"create-storybook": "^10.3.5",
|
|
77
|
+
"gh-pages": "^6.3.0",
|
|
78
|
+
"playwright": "^1.57.0",
|
|
79
|
+
"postcss": "^8.5.6",
|
|
80
|
+
"react-dropzone": "^14.3.8",
|
|
81
|
+
"rollup": "^4.54.0",
|
|
82
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
83
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
84
|
+
"storybook": "^10.3.5",
|
|
85
|
+
"swr": "^2.3.3",
|
|
86
|
+
"tailwind-merge": "^3.4.0",
|
|
87
|
+
"tailwindcss": "^4.0.0",
|
|
88
|
+
"tailwindcss-animate": "^1.0.7",
|
|
89
|
+
"tw-animate-css": "^1.4.0",
|
|
90
|
+
"typescript": "^6.0.3",
|
|
91
|
+
"vite": "^6.0.0",
|
|
92
|
+
"vitest": "^4.0.14"
|
|
93
|
+
},
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"@radix-ui/react-accordion": "^1.2.14",
|
|
96
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
97
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
98
|
+
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
99
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
100
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
101
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
102
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
103
|
+
"cmdk": "^1.1.1",
|
|
104
|
+
"date-fns": "^4.1.0",
|
|
105
|
+
"lucide-react": "^0.562.0",
|
|
106
|
+
"react-day-picker": "^9.13.0",
|
|
107
|
+
"react-toastify": "^11.0.5"
|
|
108
|
+
},
|
|
109
|
+
"scripts": {
|
|
110
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
111
|
+
"build": "rollup -c",
|
|
112
|
+
"lint": "biome check .",
|
|
113
|
+
"lint:fix": "biome check --write .",
|
|
114
|
+
"storybook": "node node_modules/storybook/dist/bin/dispatcher.js dev -p 6006",
|
|
115
|
+
"build-storybook": "node node_modules/storybook/dist/bin/dispatcher.js build",
|
|
116
|
+
"storybook:build": "storybook build",
|
|
117
|
+
"storybook:deploy": "npm run storybook:build && gh-pages -d storybook-static"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import tailwindAnimate from "tailwindcss-animate";
|
|
2
|
+
import type { Config } from "tailwindcss";
|
|
3
|
+
|
|
4
|
+
const config: Config = {
|
|
5
|
+
darkMode: "class",
|
|
6
|
+
content: [
|
|
7
|
+
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
8
|
+
"./src/stories/**/*.{js,ts,jsx,tsx,mdx}",
|
|
9
|
+
"./src/lib/**/*.{js,ts,jsx,tsx,mdx}",
|
|
10
|
+
],
|
|
11
|
+
theme: {
|
|
12
|
+
extend: {
|
|
13
|
+
colors: {
|
|
14
|
+
warning: {
|
|
15
|
+
DEFAULT: 'hsl(var(--warning))',
|
|
16
|
+
foreground: 'hsl(var(--warning-foreground))'
|
|
17
|
+
},
|
|
18
|
+
background: 'hsl(var(--background))',
|
|
19
|
+
foreground: 'hsl(var(--foreground))',
|
|
20
|
+
card: {
|
|
21
|
+
DEFAULT: 'hsl(var(--card))',
|
|
22
|
+
foreground: 'hsl(var(--card-foreground))'
|
|
23
|
+
},
|
|
24
|
+
popover: {
|
|
25
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
26
|
+
foreground: 'hsl(var(--popover-foreground))'
|
|
27
|
+
},
|
|
28
|
+
primary: {
|
|
29
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
30
|
+
foreground: 'hsl(var(--primary-foreground))'
|
|
31
|
+
},
|
|
32
|
+
secondary: {
|
|
33
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
34
|
+
foreground: 'hsl(var(--secondary-foreground))'
|
|
35
|
+
},
|
|
36
|
+
muted: {
|
|
37
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
38
|
+
foreground: 'hsl(var(--muted-foreground))'
|
|
39
|
+
},
|
|
40
|
+
accent: {
|
|
41
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
42
|
+
foreground: 'hsl(var(--accent-foreground))'
|
|
43
|
+
},
|
|
44
|
+
destructive: {
|
|
45
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
46
|
+
foreground: 'hsl(var(--destructive-foreground))'
|
|
47
|
+
},
|
|
48
|
+
border: 'hsl(var(--border))',
|
|
49
|
+
input: 'hsl(var(--input))',
|
|
50
|
+
ring: 'hsl(var(--ring))',
|
|
51
|
+
chart: {
|
|
52
|
+
'1': 'hsl(var(--chart-1))',
|
|
53
|
+
'2': 'hsl(var(--chart-2))',
|
|
54
|
+
'3': 'hsl(var(--chart-3))',
|
|
55
|
+
'4': 'hsl(var(--chart-4))',
|
|
56
|
+
'5': 'hsl(var(--chart-5))'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
borderRadius: {
|
|
60
|
+
lg: 'var(--radius)',
|
|
61
|
+
md: 'calc(var(--radius) - 2px)',
|
|
62
|
+
sm: 'calc(var(--radius) - 4px)'
|
|
63
|
+
},
|
|
64
|
+
keyframes: {
|
|
65
|
+
'accordion-down': {
|
|
66
|
+
from: {
|
|
67
|
+
height: '0'
|
|
68
|
+
},
|
|
69
|
+
to: {
|
|
70
|
+
height: 'var(--radix-accordion-content-height)'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
'accordion-up': {
|
|
74
|
+
from: {
|
|
75
|
+
height: 'var(--radix-accordion-content-height)'
|
|
76
|
+
},
|
|
77
|
+
to: {
|
|
78
|
+
height: '0'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
animation: {
|
|
83
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
84
|
+
'accordion-up': 'accordion-up 0.2s ease-out'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
plugins: [tailwindAnimate],
|
|
89
|
+
|
|
90
|
+
};
|
|
91
|
+
export default config;
|