@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,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the FKSelect component
|
|
3
|
+
*/
|
|
4
|
+
export interface IFKSelectProps {
|
|
5
|
+
/** FUNCTION to fetch data. Should return a promise resolving to an array of items */
|
|
6
|
+
fetcher: (params: {
|
|
7
|
+
search: string;
|
|
8
|
+
modelClass: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
}) => Promise<any[]>;
|
|
12
|
+
/** The model class name to identify the resource */
|
|
13
|
+
modelClass: string;
|
|
14
|
+
/** The field name to use as the display label from the fetched items */
|
|
15
|
+
labelName: string;
|
|
16
|
+
/** The field name to use as the value (ID) from the fetched items. Defaults to 'pk' or 'id' */
|
|
17
|
+
valueField?: string;
|
|
18
|
+
/** Placeholder text for the search input */
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/** Message to show when no items are found */
|
|
21
|
+
emptyMessage?: string;
|
|
22
|
+
/** The currently selected value */
|
|
23
|
+
value: string | number | null;
|
|
24
|
+
/** Callback function called when an item is selected */
|
|
25
|
+
onChange: (value: string | number, item?: any) => void;
|
|
26
|
+
/** Additional className */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Debounce time in ms. Defaults to 300 */
|
|
29
|
+
debounceWait?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A foreign key select component (async combobox).
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* <FKSelect
|
|
37
|
+
* fetcher={fetchData}
|
|
38
|
+
* modelClass="User"
|
|
39
|
+
* labelName="username"
|
|
40
|
+
* value={userId}
|
|
41
|
+
* onChange={setUserId}
|
|
42
|
+
* />
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare const FKSelect: ({ fetcher, modelClass, labelName, valueField, placeholder, emptyMessage, value, onChange, className, debounceWait, }: IFKSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Accept } from "react-dropzone";
|
|
2
|
+
interface FileDropzoneProps {
|
|
3
|
+
onFileSelected: (file: File) => void;
|
|
4
|
+
onFileDeleted?: () => void;
|
|
5
|
+
acceptExtensions?: string[];
|
|
6
|
+
accept?: Accept;
|
|
7
|
+
maxSizeMB?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A specialized file dropzone with built-in preview and validation.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <FileDropzone
|
|
15
|
+
* onFileSelected={(file) => console.log(file)}
|
|
16
|
+
* maxSizeMB={5}
|
|
17
|
+
* acceptExtensions={['.pdf', '.docx']}
|
|
18
|
+
* />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export default function FileDropzone({ onFileSelected, onFileDeleted, acceptExtensions, accept, maxSizeMB, }: FileDropzoneProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface CreatedByUserFilterProps {
|
|
2
|
+
value: string | number | null;
|
|
3
|
+
onChange: (value: string | number, item?: any) => void;
|
|
4
|
+
fetcher: (params: {
|
|
5
|
+
search: string;
|
|
6
|
+
modelClass: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
}) => Promise<any[]>;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A filter component to select a user who created a resource.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <CreatedByUserFilter
|
|
18
|
+
* fetcher={fetchUsers}
|
|
19
|
+
* value={selectedUser}
|
|
20
|
+
* onChange={setSelectedUser}
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const CreatedByUserFilter: ({ value, onChange, fetcher, className, }: CreatedByUserFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface DateRangeFilterProps {
|
|
2
|
+
startDate?: Date;
|
|
3
|
+
endDate?: Date;
|
|
4
|
+
onStartDateChange: (date: Date | undefined) => void;
|
|
5
|
+
onEndDateChange: (date: Date | undefined) => void;
|
|
6
|
+
startLabel?: string;
|
|
7
|
+
endLabel?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A date range picker filter component.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <DateRangeFilter
|
|
16
|
+
* startDate={startDate}
|
|
17
|
+
* endDate={endDate}
|
|
18
|
+
* onStartDateChange={setStartDate}
|
|
19
|
+
* onEndDateChange={setEndDate}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const DateRangeFilter: ({ startDate, endDate, onStartDateChange, onEndDateChange, startLabel, endLabel, className, }: DateRangeFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { type LucideIcon } from "lucide-react";
|
|
2
|
+
import { type ComponentType, type ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Sidebar Root component.
|
|
5
|
+
*/
|
|
6
|
+
export interface SidebarRootProps {
|
|
7
|
+
/** The content of the sidebar. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Whether the sidebar is currently collapsed. */
|
|
10
|
+
isCollapsed: boolean;
|
|
11
|
+
/** Callback to toggle the collapsed state. */
|
|
12
|
+
onToggleCollapse: () => void;
|
|
13
|
+
/** Additional CSS classes. */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function Root({ children, isCollapsed, onToggleCollapse, className, }: SidebarRootProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* Props for the Sidebar Header component.
|
|
19
|
+
*/
|
|
20
|
+
export interface SidebarHeaderProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
declare function Header({ children, className }: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/**
|
|
26
|
+
* Props for the Sidebar Content component.
|
|
27
|
+
*/
|
|
28
|
+
export interface SidebarContentProps {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
declare function Content({ children, className }: SidebarContentProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Props for the Sidebar Footer component.
|
|
35
|
+
*/
|
|
36
|
+
export interface SidebarFooterProps {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
declare function Footer({ children, className }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Props for the Sidebar Toggle component.
|
|
43
|
+
*/
|
|
44
|
+
export interface SidebarToggleProps {
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
declare function Toggle({ className }: SidebarToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* Props for the Sidebar Logo component.
|
|
50
|
+
*/
|
|
51
|
+
export interface SidebarLogoProps {
|
|
52
|
+
src: string;
|
|
53
|
+
alt: string;
|
|
54
|
+
width?: number;
|
|
55
|
+
height?: number;
|
|
56
|
+
className?: string;
|
|
57
|
+
ImageComponent?: ComponentType<{
|
|
58
|
+
src: string;
|
|
59
|
+
alt: string;
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
className?: string;
|
|
63
|
+
}>;
|
|
64
|
+
}
|
|
65
|
+
declare function Logo({ src, alt, width, height, className, ImageComponent, }: SidebarLogoProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* Props for the Sidebar Link component.
|
|
68
|
+
*/
|
|
69
|
+
export interface SidebarLinkProps {
|
|
70
|
+
icon: LucideIcon;
|
|
71
|
+
children: ReactNode;
|
|
72
|
+
href: string;
|
|
73
|
+
active?: boolean;
|
|
74
|
+
className?: string;
|
|
75
|
+
LinkComponent?: ComponentType<{
|
|
76
|
+
href: any;
|
|
77
|
+
className?: string;
|
|
78
|
+
children: ReactNode;
|
|
79
|
+
title?: string;
|
|
80
|
+
}>;
|
|
81
|
+
}
|
|
82
|
+
declare function Link({ icon: Icon, children, href, active, className, LinkComponent, }: SidebarLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
/**
|
|
84
|
+
* A composable Sidebar component.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* const [collapsed, setCollapsed] = useState(false);
|
|
89
|
+
*
|
|
90
|
+
* return (
|
|
91
|
+
* <Sidebar.Root isCollapsed={collapsed} onToggleCollapse={() => setCollapsed(!collapsed)}>
|
|
92
|
+
* <Sidebar.Header>
|
|
93
|
+
* <Sidebar.Logo src="/logo.png" alt="Logo" />
|
|
94
|
+
* <Sidebar.Toggle />
|
|
95
|
+
* </Sidebar.Header>
|
|
96
|
+
* <Sidebar.Content>
|
|
97
|
+
* <Sidebar.Link icon={HomeIcon} href="/">Home</Sidebar.Link>
|
|
98
|
+
* </Sidebar.Content>
|
|
99
|
+
* <Sidebar.Footer>
|
|
100
|
+
* User Info
|
|
101
|
+
* </Sidebar.Footer>
|
|
102
|
+
* </Sidebar.Root>
|
|
103
|
+
* )
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export declare const Sidebar: {
|
|
107
|
+
Root: typeof Root;
|
|
108
|
+
Header: typeof Header;
|
|
109
|
+
Content: typeof Content;
|
|
110
|
+
Footer: typeof Footer;
|
|
111
|
+
Toggle: typeof Toggle;
|
|
112
|
+
Logo: typeof Logo;
|
|
113
|
+
Link: typeof Link;
|
|
114
|
+
};
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
type StackProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/** The direction of the stack. Defaults to 'col'. */
|
|
5
|
+
direction?: "row" | "col";
|
|
6
|
+
/** The gap between elements. Maps to Tailwind gap utility (e.g. 4 -> gap-4). */
|
|
7
|
+
gap?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A layout component that arranges children in a stack (vertical or horizontal).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <Stack direction="row" gap={4}>
|
|
16
|
+
* <Button>Btn 1</Button>
|
|
17
|
+
* <Button>Btn 2</Button>
|
|
18
|
+
* </Stack>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function Stack({ children, direction, gap, className, ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default Stack;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A comprehensive Table component system.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <Table.Root>
|
|
7
|
+
* <Table.Header>
|
|
8
|
+
* <Table.Row>
|
|
9
|
+
* <Table.Head>ID</Table.Head>
|
|
10
|
+
* <Table.Head>Name</Table.Head>
|
|
11
|
+
* </Table.Row>
|
|
12
|
+
* </Table.Header>
|
|
13
|
+
* <Table.Body>
|
|
14
|
+
* <Table.Row>
|
|
15
|
+
* <Table.Cell>1</Table.Cell>
|
|
16
|
+
* <Table.Cell>John Doe</Table.Cell>
|
|
17
|
+
* </Table.Row>
|
|
18
|
+
* </Table.Body>
|
|
19
|
+
* </Table.Root>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const PumpwoodTable: {
|
|
23
|
+
Root: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableElement> & import("react").RefAttributes<HTMLTableElement>>;
|
|
24
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
25
|
+
Cell: import("react").ForwardRefExoticComponent<import("react").TdHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
26
|
+
Head: import("react").ForwardRefExoticComponent<import("react").ThHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
27
|
+
Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableSectionElement> & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
28
|
+
Row: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableRowElement> & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
type TypographyProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function H1({ children, className, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function Muted({ children, className, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Typography components for consistent text styling.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Typography.H1>Main Title</Typography.H1>
|
|
14
|
+
* <Typography.Muted>Subtitle text</Typography.Muted>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const Typography: {
|
|
18
|
+
H1: typeof H1;
|
|
19
|
+
Muted: typeof Muted;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
/**
|
|
4
|
+
* A modal dialog that interrupts the user with important content and expects a response.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <AlertDialog>
|
|
9
|
+
* <AlertDialogTrigger>Open</AlertDialogTrigger>
|
|
10
|
+
* <AlertDialogContent>
|
|
11
|
+
* <AlertDialogHeader>
|
|
12
|
+
* <AlertDialogTitle>Are you sure?</AlertDialogTitle>
|
|
13
|
+
* </AlertDialogHeader>
|
|
14
|
+
* <AlertDialogFooter>
|
|
15
|
+
* <AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
16
|
+
* <AlertDialogAction>Continue</AlertDialogAction>
|
|
17
|
+
* </AlertDialogFooter>
|
|
18
|
+
* </AlertDialogContent>
|
|
19
|
+
* </AlertDialog>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "info" | "outline" | "warning" | "success" | "destructive" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Displays a badge or a component that looks like a badge.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Badge>Default</Badge>
|
|
14
|
+
* <Badge variant="secondary">Secondary</Badge>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Displays a button or a component that looks like a button.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Button variant="default">Click me</Button>
|
|
13
|
+
* <Button variant="outline" size="sm">Action</Button>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
17
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
18
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
19
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
20
|
+
asChild?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type DayButton, DayPicker } from "react-day-picker";
|
|
3
|
+
import { Button } from "pumpwood-ui-components";
|
|
4
|
+
/**
|
|
5
|
+
* A calendar component for date selection.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Calendar
|
|
10
|
+
* mode="single"
|
|
11
|
+
* selected={date}
|
|
12
|
+
* onSelect={setDate}
|
|
13
|
+
* className="rounded-md border"
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
18
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A container for grouping related content.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <Card>
|
|
8
|
+
* <CardHeader>
|
|
9
|
+
* <CardTitle>Title</CardTitle>
|
|
10
|
+
* </CardHeader>
|
|
11
|
+
* <CardContent>Content</CardContent>
|
|
12
|
+
* </Card>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface ComboboxItem {
|
|
3
|
+
value: any;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface GenericComboboxProps extends Omit<React.ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
7
|
+
items: ComboboxItem[];
|
|
8
|
+
value: string | null;
|
|
9
|
+
onChange: (value: string, item: ComboboxItem | null) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
emptyMessage?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
searchPlaceholder?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A searchable select component (Combobox).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Combobox
|
|
21
|
+
* items={[{ value: '1', label: 'Option 1' }]}
|
|
22
|
+
* value={selectedValue}
|
|
23
|
+
* onChange={setSelectedValue}
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function Combobox({ items, value, onChange, placeholder, emptyMessage, className, searchPlaceholder, }: GenericComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Dialog } from "@/components/ui/dialog";
|
|
4
|
+
/**
|
|
5
|
+
* A command palette component.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Command>
|
|
10
|
+
* <CommandInput placeholder="Type a command..." />
|
|
11
|
+
* <CommandList>
|
|
12
|
+
* <CommandItem>Action</CommandItem>
|
|
13
|
+
* </CommandList>
|
|
14
|
+
* </Command>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
19
|
+
title?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
showCloseButton?: boolean;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A modal dialog component.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Dialog>
|
|
9
|
+
* <DialogTrigger>Open</DialogTrigger>
|
|
10
|
+
* <DialogContent>
|
|
11
|
+
* <DialogTitle>Title</DialogTitle>
|
|
12
|
+
* <DialogDescription>Desc</DialogDescription>
|
|
13
|
+
* </DialogContent>
|
|
14
|
+
* </Dialog>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
18
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
showCloseButton?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DialogHeader: {
|
|
23
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
declare const DialogFooter: {
|
|
27
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
31
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
32
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
/**
|
|
3
|
+
* A placeholder component for empty states.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <Empty>
|
|
8
|
+
* <EmptyHeader>
|
|
9
|
+
* <EmptyTitle>No data</EmptyTitle>
|
|
10
|
+
* </EmptyHeader>
|
|
11
|
+
* </Empty>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare function Empty({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const emptyMediaVariants: (props?: ({
|
|
17
|
+
variant?: "default" | "icon" | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
|
+
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A popover component for displaying rich content in a portal.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Popover>
|
|
9
|
+
* <PopoverTrigger>Open</PopoverTrigger>
|
|
10
|
+
* <PopoverContent>Content</PopoverContent>
|
|
11
|
+
* </Popover>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
15
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A responsive table component.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* <Table>
|
|
8
|
+
* <TableHeader>
|
|
9
|
+
* <TableRow>
|
|
10
|
+
* <TableHead>Header</TableHead>
|
|
11
|
+
* </TableRow>
|
|
12
|
+
* </TableHeader>
|
|
13
|
+
* <TableBody>
|
|
14
|
+
* <TableRow>
|
|
15
|
+
* <TableCell>Cell</TableCell>
|
|
16
|
+
* </TableRow>
|
|
17
|
+
* </TableBody>
|
|
18
|
+
* </Table>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
22
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
23
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
24
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
25
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
26
|
+
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
27
|
+
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
28
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
29
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
/**
|
|
4
|
+
* A set of layered sections of content—known as tab panels—that are displayed one at a time.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Tabs defaultValue="account">
|
|
9
|
+
* <TabsList>
|
|
10
|
+
* <TabsTrigger value="account">Account</TabsTrigger>
|
|
11
|
+
* </TabsList>
|
|
12
|
+
* <TabsContent value="account">Content</TabsContent>
|
|
13
|
+
* </Tabs>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./styles/globals.css";
|
|
2
|
+
export { Button } from "./components/ui/button";
|
|
3
|
+
export { default as Stack } from "./components/Stack";
|
|
4
|
+
export { default as Dropzone } from "./components/Dropzone";
|
|
5
|
+
export { ConfirmationDialog } from "./components/ConfirmationDialog";
|
|
6
|
+
export { Typography } from "./components/Text";
|
|
7
|
+
export { PumpwoodCard as Card } from "./components/Card";
|
|
8
|
+
export { PumpwoodTable as Table } from "./components/Table";
|
|
9
|
+
export { PumpwoodBadge as Badge } from "./components/Badge";
|
|
10
|
+
export { default as FileDropzone } from "./components/FileDropzone";
|
|
11
|
+
export { Sidebar } from "./components/Sidebar";
|
|
12
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/ui/tabs";
|
|
13
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia } from "./components/ui/empty";
|
|
14
|
+
export { EmptyContainer } from "./components/EmptyContainer";
|
|
15
|
+
export { DateRangeFilter } from "./components/Filters/DateRangeFilter";
|
|
16
|
+
export { CreatedByUserFilter } from "./components/Filters/CreatedByUserFilter";
|
|
17
|
+
export { FKSelect } from "./components/FKSelect";
|
|
18
|
+
export { Calendar } from "./components/ui/calendar";
|
|
19
|
+
export { Popover, PopoverContent, PopoverTrigger } from "./components/ui/popover";
|
|
20
|
+
export { Combobox, type ComboboxItem } from "./components/ui/combobox";
|
|
21
|
+
export { CombinedFilterTable } from "./components/CombinedFilterTable";
|