@andreagiugni/tailwind-dashboard-ui 0.1.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 +22 -0
- package/README.md +282 -0
- package/dist/Editor-uOYxR3HX.d.cts +53 -0
- package/dist/Editor-uOYxR3HX.d.ts +53 -0
- package/dist/chunk-4OETC46A.js +353 -0
- package/dist/chunk-4OETC46A.js.map +1 -0
- package/dist/chunk-7OWZKV75.js +420 -0
- package/dist/chunk-7OWZKV75.js.map +1 -0
- package/dist/chunk-BGA7AECV.cjs +152 -0
- package/dist/chunk-BGA7AECV.cjs.map +1 -0
- package/dist/chunk-HT7SQXRF.cjs +85 -0
- package/dist/chunk-HT7SQXRF.cjs.map +1 -0
- package/dist/chunk-HZQZC5CK.js +124 -0
- package/dist/chunk-HZQZC5CK.js.map +1 -0
- package/dist/chunk-MEU4PMP5.js +146 -0
- package/dist/chunk-MEU4PMP5.js.map +1 -0
- package/dist/chunk-MYOOZFHK.cjs +430 -0
- package/dist/chunk-MYOOZFHK.cjs.map +1 -0
- package/dist/chunk-OSIOO5AE.cjs +130 -0
- package/dist/chunk-OSIOO5AE.cjs.map +1 -0
- package/dist/chunk-R66LONPQ.js +83 -0
- package/dist/chunk-R66LONPQ.js.map +1 -0
- package/dist/chunk-W7SNEBD7.cjs +362 -0
- package/dist/chunk-W7SNEBD7.cjs.map +1 -0
- package/dist/chunk-YERNSNT4.cjs +13 -0
- package/dist/chunk-YERNSNT4.cjs.map +1 -0
- package/dist/chunk-ZLIYUUA4.js +11 -0
- package/dist/chunk-ZLIYUUA4.js.map +1 -0
- package/dist/components/Calendar/Calendar.cjs +14 -0
- package/dist/components/Calendar/Calendar.cjs.map +1 -0
- package/dist/components/Calendar/Calendar.d.cts +12 -0
- package/dist/components/Calendar/Calendar.d.ts +12 -0
- package/dist/components/Calendar/Calendar.js +5 -0
- package/dist/components/Calendar/Calendar.js.map +1 -0
- package/dist/components/Charts/BarChart.cjs +13 -0
- package/dist/components/Charts/BarChart.cjs.map +1 -0
- package/dist/components/Charts/BarChart.d.cts +13 -0
- package/dist/components/Charts/BarChart.d.ts +13 -0
- package/dist/components/Charts/BarChart.js +4 -0
- package/dist/components/Charts/BarChart.js.map +1 -0
- package/dist/components/Charts/LineChart.cjs +13 -0
- package/dist/components/Charts/LineChart.cjs.map +1 -0
- package/dist/components/Charts/LineChart.d.cts +13 -0
- package/dist/components/Charts/LineChart.d.ts +13 -0
- package/dist/components/Charts/LineChart.js +4 -0
- package/dist/components/Charts/LineChart.js.map +1 -0
- package/dist/components/Editor/Editor.cjs +14 -0
- package/dist/components/Editor/Editor.cjs.map +1 -0
- package/dist/components/Editor/Editor.d.cts +3 -0
- package/dist/components/Editor/Editor.d.ts +3 -0
- package/dist/components/Editor/Editor.js +5 -0
- package/dist/components/Editor/Editor.js.map +1 -0
- package/dist/components/Map/CountryMap.cjs +13 -0
- package/dist/components/Map/CountryMap.cjs.map +1 -0
- package/dist/components/Map/CountryMap.d.cts +13 -0
- package/dist/components/Map/CountryMap.d.ts +13 -0
- package/dist/components/Map/CountryMap.js +4 -0
- package/dist/components/Map/CountryMap.js.map +1 -0
- package/dist/index.cjs +2896 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +573 -0
- package/dist/index.d.ts +573 -0
- package/dist/index.js +2816 -0
- package/dist/index.js.map +1 -0
- package/package.json +134 -0
- package/src/theme.css +784 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { C as ColorOverrideProps } from './Editor-uOYxR3HX.cjs';
|
|
3
|
+
export { E as Editor, a as EditorProps, b as EditorToolItem, s as styleOverride } from './Editor-uOYxR3HX.cjs';
|
|
4
|
+
import React, { FormEvent } from 'react';
|
|
5
|
+
import flatpickr from 'flatpickr';
|
|
6
|
+
export { BarChart, BarChartProps } from './components/Charts/BarChart.cjs';
|
|
7
|
+
export { LineChart, LineChartProps } from './components/Charts/LineChart.cjs';
|
|
8
|
+
export { Calendar, CalendarProps } from './components/Calendar/Calendar.cjs';
|
|
9
|
+
export { CountryMap, CountryMapProps } from './components/Map/CountryMap.cjs';
|
|
10
|
+
import '@tiptap/react';
|
|
11
|
+
import 'apexcharts';
|
|
12
|
+
import '@fullcalendar/core';
|
|
13
|
+
|
|
14
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
15
|
+
|
|
16
|
+
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color">, ColorOverrideProps {
|
|
17
|
+
size?: "sm" | "md";
|
|
18
|
+
variant?: "primary" | "outline";
|
|
19
|
+
startIcon?: React.ReactNode;
|
|
20
|
+
endIcon?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const Button: React.FC<ButtonProps>;
|
|
23
|
+
|
|
24
|
+
type BadgeVariant = "light" | "solid";
|
|
25
|
+
type BadgeSize = "sm" | "md";
|
|
26
|
+
type BadgeColor = "primary" | "success" | "error" | "warning" | "info" | "light" | "dark";
|
|
27
|
+
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, ColorOverrideProps {
|
|
28
|
+
variant?: BadgeVariant;
|
|
29
|
+
size?: BadgeSize;
|
|
30
|
+
color?: BadgeColor;
|
|
31
|
+
startIcon?: React.ReactNode;
|
|
32
|
+
endIcon?: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
35
|
+
|
|
36
|
+
type RibbonVariant = "corner" | "rounded" | "flag";
|
|
37
|
+
type RibbonColor = "primary" | "success" | "error" | "warning" | "info" | "dark";
|
|
38
|
+
type RibbonPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
39
|
+
interface RibbonProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, ColorOverrideProps {
|
|
40
|
+
/** Visual style of the ribbon. */
|
|
41
|
+
variant?: RibbonVariant;
|
|
42
|
+
/** Brand color. Defaults to `primary`. */
|
|
43
|
+
color?: RibbonColor;
|
|
44
|
+
/** Which corner/side the ribbon attaches to. Defaults to `top-right`. */
|
|
45
|
+
position?: RibbonPosition;
|
|
46
|
+
}
|
|
47
|
+
declare const Ribbon: React.FC<RibbonProps>;
|
|
48
|
+
|
|
49
|
+
type AlertVariant = "success" | "error" | "warning" | "info";
|
|
50
|
+
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
51
|
+
variant: AlertVariant;
|
|
52
|
+
title: string;
|
|
53
|
+
message: string;
|
|
54
|
+
showLink?: boolean;
|
|
55
|
+
linkHref?: string;
|
|
56
|
+
linkText?: string;
|
|
57
|
+
/** Override the default variant icon. */
|
|
58
|
+
icon?: React.ReactNode;
|
|
59
|
+
}
|
|
60
|
+
declare const Alert: React.FC<AlertProps>;
|
|
61
|
+
|
|
62
|
+
type AvatarSize = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
63
|
+
type AvatarStatus = "online" | "offline" | "busy" | "none";
|
|
64
|
+
interface AvatarProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "size"> {
|
|
65
|
+
src: string;
|
|
66
|
+
alt?: string;
|
|
67
|
+
size?: AvatarSize;
|
|
68
|
+
status?: AvatarStatus;
|
|
69
|
+
/** Override the status indicator color. */
|
|
70
|
+
statusColor?: string;
|
|
71
|
+
}
|
|
72
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
73
|
+
|
|
74
|
+
interface AvatarTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
name: string;
|
|
76
|
+
}
|
|
77
|
+
declare const AvatarText: React.FC<AvatarTextProps>;
|
|
78
|
+
|
|
79
|
+
interface DropdownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
80
|
+
isOpen: boolean;
|
|
81
|
+
onClose: () => void;
|
|
82
|
+
}
|
|
83
|
+
declare const Dropdown: React.FC<DropdownProps>;
|
|
84
|
+
|
|
85
|
+
type DropdownItemVariant = "default" | "primary" | "outline";
|
|
86
|
+
interface DropdownItemProps extends ColorOverrideProps {
|
|
87
|
+
tag?: "a" | "button";
|
|
88
|
+
href?: string;
|
|
89
|
+
onClick?: () => void;
|
|
90
|
+
onItemClick?: () => void;
|
|
91
|
+
/** Visual style, mirroring Button: a plain menu row, a filled brand item, or an outlined one. */
|
|
92
|
+
variant?: DropdownItemVariant;
|
|
93
|
+
/** Full class override (escape hatch). When set, it replaces the variant styling. */
|
|
94
|
+
baseClassName?: string;
|
|
95
|
+
className?: string;
|
|
96
|
+
children: React.ReactNode;
|
|
97
|
+
}
|
|
98
|
+
declare const DropdownItem: React.FC<DropdownItemProps>;
|
|
99
|
+
|
|
100
|
+
type ModalVariant = "success" | "info" | "warning" | "danger";
|
|
101
|
+
interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
102
|
+
isOpen: boolean;
|
|
103
|
+
onClose: () => void;
|
|
104
|
+
showCloseButton?: boolean;
|
|
105
|
+
isFullscreen?: boolean;
|
|
106
|
+
closeOnBackdrop?: boolean;
|
|
107
|
+
closeOnEsc?: boolean;
|
|
108
|
+
/** Render a preset alert layout (decorative icon + title + message + action button). */
|
|
109
|
+
variant?: ModalVariant;
|
|
110
|
+
/** Alert title — used when `variant` is set. */
|
|
111
|
+
title?: string;
|
|
112
|
+
/** Alert body text — used when `variant` is set. */
|
|
113
|
+
description?: string;
|
|
114
|
+
/** Action button label. Default: "Okay, Got It". */
|
|
115
|
+
actionText?: string;
|
|
116
|
+
/** Action button handler. Defaults to `onClose`. */
|
|
117
|
+
onAction?: () => void;
|
|
118
|
+
}
|
|
119
|
+
declare const Modal: React.FC<ModalProps>;
|
|
120
|
+
|
|
121
|
+
interface DropzoneProps {
|
|
122
|
+
/** Called with the dropped/selected files. */
|
|
123
|
+
onDrop?: (files: File[]) => void;
|
|
124
|
+
/** Accepted file types, e.g. "image/png,image/jpeg" (native input `accept`). */
|
|
125
|
+
accept?: string;
|
|
126
|
+
/** Allow selecting multiple files. Default: true. */
|
|
127
|
+
multiple?: boolean;
|
|
128
|
+
/** Heading text. Default: "Drag & Drop Files Here". */
|
|
129
|
+
title?: string;
|
|
130
|
+
/** Helper text under the heading. */
|
|
131
|
+
description?: string;
|
|
132
|
+
/** "Browse" call-to-action label. Default: "Browse File". */
|
|
133
|
+
browseLabel?: string;
|
|
134
|
+
/** Extra classes for the outer wrapper. */
|
|
135
|
+
className?: string;
|
|
136
|
+
}
|
|
137
|
+
/** Drag-and-drop file upload area — dependency-free (native HTML5 drag/drop). */
|
|
138
|
+
declare const Dropzone: React.FC<DropzoneProps>;
|
|
139
|
+
|
|
140
|
+
interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
141
|
+
}
|
|
142
|
+
declare const Table: React.FC<TableProps>;
|
|
143
|
+
interface TableSectionProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
144
|
+
}
|
|
145
|
+
declare const TableHeader: React.FC<TableSectionProps>;
|
|
146
|
+
declare const TableBody: React.FC<TableSectionProps>;
|
|
147
|
+
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
148
|
+
}
|
|
149
|
+
declare const TableRow: React.FC<TableRowProps>;
|
|
150
|
+
interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
151
|
+
isHeader?: boolean;
|
|
152
|
+
}
|
|
153
|
+
declare const TableCell: React.FC<TableCellProps>;
|
|
154
|
+
|
|
155
|
+
interface PaginationProps {
|
|
156
|
+
currentPage: number;
|
|
157
|
+
totalPages: number;
|
|
158
|
+
onPageChange: (page: number) => void;
|
|
159
|
+
}
|
|
160
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
161
|
+
|
|
162
|
+
type SortDirection = "asc" | "desc";
|
|
163
|
+
interface DataTableColumn<T> {
|
|
164
|
+
/** Key into the row object — also the value used for sorting/searching. */
|
|
165
|
+
key: Extract<keyof T, string>;
|
|
166
|
+
/** Column header label. */
|
|
167
|
+
header: React.ReactNode;
|
|
168
|
+
/** Allow click-to-sort on this column. Default: false. */
|
|
169
|
+
sortable?: boolean;
|
|
170
|
+
/** Cell + header text alignment. Default: "left". */
|
|
171
|
+
align?: "left" | "center" | "right";
|
|
172
|
+
/** Custom cell renderer. Falls back to `String(row[key])`. */
|
|
173
|
+
render?: (row: T, rowIndex: number) => React.ReactNode;
|
|
174
|
+
/** Extra classes applied to this column's header and body cells. */
|
|
175
|
+
className?: string;
|
|
176
|
+
}
|
|
177
|
+
interface DataTableProps<T> {
|
|
178
|
+
/** The array of row objects to display. */
|
|
179
|
+
data: T[];
|
|
180
|
+
/** Column definitions (label, sortable, custom render, …). */
|
|
181
|
+
columns: DataTableColumn<T>[];
|
|
182
|
+
/** Rows shown per page. Default: 10. */
|
|
183
|
+
rowsPerPage?: number;
|
|
184
|
+
/** Options for the "Show N entries" selector. Default: [5, 10, 25, 50]. Pass [] to hide it. */
|
|
185
|
+
rowsPerPageOptions?: number[];
|
|
186
|
+
/** Render pagination controls + the entry counter. Default: true. */
|
|
187
|
+
pagination?: boolean;
|
|
188
|
+
/** Render the "Show N entries" selector (only when pagination is on). Default: true. */
|
|
189
|
+
showSizeSelector?: boolean;
|
|
190
|
+
/** Render the search field. Default: true. */
|
|
191
|
+
searchable?: boolean;
|
|
192
|
+
/** Placeholder for the search field. Default: "Search...". */
|
|
193
|
+
searchPlaceholder?: string;
|
|
194
|
+
/** Keys matched when searching. Defaults to every column key. */
|
|
195
|
+
searchKeys?: Extract<keyof T, string>[];
|
|
196
|
+
/** Column sorted on first render. */
|
|
197
|
+
defaultSortKey?: Extract<keyof T, string>;
|
|
198
|
+
/** Initial sort direction. Default: "asc". */
|
|
199
|
+
defaultSortDirection?: SortDirection;
|
|
200
|
+
/** Stable key for a row. Defaults to the row index. */
|
|
201
|
+
getRowId?: (row: T, index: number) => string | number;
|
|
202
|
+
/** Fires when a row is clicked (also makes rows hoverable/clickable). */
|
|
203
|
+
onRowClick?: (row: T, index: number) => void;
|
|
204
|
+
/** Shown when no rows match. Default: "No matching records". */
|
|
205
|
+
emptyContent?: React.ReactNode;
|
|
206
|
+
/** Extra classes for the outer wrapper. */
|
|
207
|
+
className?: string;
|
|
208
|
+
}
|
|
209
|
+
declare function DataTable<T extends Record<string, unknown>>({ data, columns, rowsPerPage, rowsPerPageOptions, pagination, showSizeSelector, searchable, searchPlaceholder, searchKeys, defaultSortKey, defaultSortDirection, getRowId, onRowClick, emptyContent, className, }: DataTableProps<T>): React.JSX.Element;
|
|
210
|
+
|
|
211
|
+
interface BreadcrumbItem {
|
|
212
|
+
label: string;
|
|
213
|
+
href?: string;
|
|
214
|
+
}
|
|
215
|
+
interface BreadcrumbProps {
|
|
216
|
+
pageTitle: string;
|
|
217
|
+
items?: BreadcrumbItem[];
|
|
218
|
+
}
|
|
219
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
220
|
+
|
|
221
|
+
interface ThemeToggleButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
222
|
+
theme?: "light" | "dark";
|
|
223
|
+
onToggle?: () => void;
|
|
224
|
+
}
|
|
225
|
+
declare const ThemeToggleButton: React.FC<ThemeToggleButtonProps>;
|
|
226
|
+
|
|
227
|
+
type AccordionSelectionMode = "single" | "multiple";
|
|
228
|
+
interface AccordionItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
229
|
+
/** Unique key identifying this item. */
|
|
230
|
+
itemKey: string;
|
|
231
|
+
/** Header content. */
|
|
232
|
+
title: React.ReactNode;
|
|
233
|
+
/** Optional content rendered before the title (e.g. an icon). */
|
|
234
|
+
startContent?: React.ReactNode;
|
|
235
|
+
/** Disable expand/collapse for this item. */
|
|
236
|
+
disabled?: boolean;
|
|
237
|
+
}
|
|
238
|
+
declare const AccordionItem: React.FC<AccordionItemProps>;
|
|
239
|
+
interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
240
|
+
/** "single" allows one open item, "multiple" allows many. */
|
|
241
|
+
selectionMode?: AccordionSelectionMode;
|
|
242
|
+
/** Uncontrolled initial expanded keys. */
|
|
243
|
+
defaultExpandedKeys?: string[];
|
|
244
|
+
/** Controlled expanded keys. */
|
|
245
|
+
expandedKeys?: string[];
|
|
246
|
+
/** Called with the new set of expanded keys when it changes. */
|
|
247
|
+
onExpandedChange?: (keys: string[]) => void;
|
|
248
|
+
}
|
|
249
|
+
declare const Accordion: React.FC<AccordionProps>;
|
|
250
|
+
|
|
251
|
+
type TabsVariant = "underline" | "solid" | "pill";
|
|
252
|
+
interface TabProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
253
|
+
/** Unique key identifying this tab. */
|
|
254
|
+
tabKey: string;
|
|
255
|
+
/** Tab label (may include an icon). */
|
|
256
|
+
title: React.ReactNode;
|
|
257
|
+
/** Disable selection of this tab. */
|
|
258
|
+
disabled?: boolean;
|
|
259
|
+
}
|
|
260
|
+
/** Tab is a configuration element consumed by Tabs; it renders its children as the panel. */
|
|
261
|
+
declare const Tab: React.FC<TabProps>;
|
|
262
|
+
interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
263
|
+
variant?: TabsVariant;
|
|
264
|
+
/** Controlled selected key. */
|
|
265
|
+
selectedKey?: string;
|
|
266
|
+
/** Uncontrolled initial selected key. */
|
|
267
|
+
defaultSelectedKey?: string;
|
|
268
|
+
/** Called with the newly selected key. */
|
|
269
|
+
onSelectionChange?: (key: string) => void;
|
|
270
|
+
/** Accent color for the active tab (any CSS color). Defaults to the brand color. */
|
|
271
|
+
color?: string;
|
|
272
|
+
children?: React.ReactNode;
|
|
273
|
+
}
|
|
274
|
+
declare const Tabs: React.FC<TabsProps>;
|
|
275
|
+
|
|
276
|
+
type TooltipPlacement = "top" | "right" | "bottom" | "left";
|
|
277
|
+
interface TooltipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color" | "content">, ColorOverrideProps {
|
|
278
|
+
/** The content rendered inside the tooltip bubble. */
|
|
279
|
+
content: React.ReactNode;
|
|
280
|
+
/** Which side of the trigger the tooltip appears on. */
|
|
281
|
+
placement?: TooltipPlacement;
|
|
282
|
+
/** Delay in milliseconds before showing the tooltip. */
|
|
283
|
+
delay?: number;
|
|
284
|
+
/** When true the tooltip never opens. */
|
|
285
|
+
disabled?: boolean;
|
|
286
|
+
/** The trigger element. */
|
|
287
|
+
children: React.ReactNode;
|
|
288
|
+
}
|
|
289
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
290
|
+
|
|
291
|
+
type PopoverPlacement = "top" | "right" | "bottom" | "left";
|
|
292
|
+
interface PopoverProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
|
|
293
|
+
/** The clickable trigger element. */
|
|
294
|
+
trigger: React.ReactNode;
|
|
295
|
+
/** Which side of the trigger the panel appears on. */
|
|
296
|
+
placement?: PopoverPlacement;
|
|
297
|
+
/** Controlled open state. Omit for uncontrolled behavior. */
|
|
298
|
+
isOpen?: boolean;
|
|
299
|
+
/** Called when the open state should change (controlled or uncontrolled). */
|
|
300
|
+
onOpenChange?: (open: boolean) => void;
|
|
301
|
+
/** Initial open state when uncontrolled. */
|
|
302
|
+
defaultOpen?: boolean;
|
|
303
|
+
/** Close when clicking outside the popover. */
|
|
304
|
+
closeOnOutsideClick?: boolean;
|
|
305
|
+
/** Close when pressing Escape. */
|
|
306
|
+
closeOnEsc?: boolean;
|
|
307
|
+
/** Panel content. */
|
|
308
|
+
children: React.ReactNode;
|
|
309
|
+
}
|
|
310
|
+
declare const Popover: React.FC<PopoverProps>;
|
|
311
|
+
|
|
312
|
+
type DrawerPlacement = "left" | "right" | "top" | "bottom";
|
|
313
|
+
interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
314
|
+
isOpen: boolean;
|
|
315
|
+
onClose: () => void;
|
|
316
|
+
/** Side the drawer slides in from. */
|
|
317
|
+
placement?: DrawerPlacement;
|
|
318
|
+
showCloseButton?: boolean;
|
|
319
|
+
closeOnBackdrop?: boolean;
|
|
320
|
+
closeOnEsc?: boolean;
|
|
321
|
+
/** Tailwind size class for the panel (width for left/right, height for top/bottom). */
|
|
322
|
+
size?: string;
|
|
323
|
+
}
|
|
324
|
+
declare const Drawer: React.FC<DrawerProps>;
|
|
325
|
+
|
|
326
|
+
type ChipVariant = "light" | "solid";
|
|
327
|
+
type ChipSize = "sm" | "md";
|
|
328
|
+
type ChipColor = "primary" | "success" | "error" | "warning" | "info" | "light" | "dark";
|
|
329
|
+
interface ChipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, ColorOverrideProps {
|
|
330
|
+
variant?: ChipVariant;
|
|
331
|
+
size?: ChipSize;
|
|
332
|
+
color?: ChipColor;
|
|
333
|
+
startIcon?: React.ReactNode;
|
|
334
|
+
endIcon?: React.ReactNode;
|
|
335
|
+
/** Rendered at the start of the chip, e.g. a small Avatar. */
|
|
336
|
+
avatar?: React.ReactNode;
|
|
337
|
+
/** When provided, renders a small close button that fires this callback. */
|
|
338
|
+
onClose?: () => void;
|
|
339
|
+
}
|
|
340
|
+
declare const Chip: React.FC<ChipProps>;
|
|
341
|
+
|
|
342
|
+
type ProgressColor = "primary" | "success" | "error" | "warning" | "info" | "light" | "dark";
|
|
343
|
+
type ProgressSize = "sm" | "md" | "lg";
|
|
344
|
+
interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color">, ColorOverrideProps {
|
|
345
|
+
/** Current value (clamped between 0 and maxValue). */
|
|
346
|
+
value?: number;
|
|
347
|
+
/** Maximum value. Defaults to 100. */
|
|
348
|
+
maxValue?: number;
|
|
349
|
+
color?: ProgressColor;
|
|
350
|
+
size?: ProgressSize;
|
|
351
|
+
/** Optional label shown above the track. */
|
|
352
|
+
label?: React.ReactNode;
|
|
353
|
+
/** When true, shows the percentage (e.g. "75%") next to the label. */
|
|
354
|
+
showValueLabel?: boolean;
|
|
355
|
+
/** Animated, value-less progress. */
|
|
356
|
+
isIndeterminate?: boolean;
|
|
357
|
+
}
|
|
358
|
+
declare const Progress: React.FC<ProgressProps>;
|
|
359
|
+
|
|
360
|
+
type SpinnerColor = "primary" | "success" | "error" | "warning" | "info" | "light" | "dark";
|
|
361
|
+
type SpinnerSize = "sm" | "md" | "lg";
|
|
362
|
+
interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, ColorOverrideProps {
|
|
363
|
+
size?: SpinnerSize;
|
|
364
|
+
color?: SpinnerColor;
|
|
365
|
+
/** Optional text rendered beside the spinner (also used as aria-label). */
|
|
366
|
+
label?: React.ReactNode;
|
|
367
|
+
}
|
|
368
|
+
declare const Spinner: React.FC<SpinnerProps>;
|
|
369
|
+
|
|
370
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
371
|
+
/** When true, renders children normally with no shimmer. */
|
|
372
|
+
isLoaded?: boolean;
|
|
373
|
+
/** Convenience sizing (any CSS length). Falls back to className. */
|
|
374
|
+
width?: string | number;
|
|
375
|
+
height?: string | number;
|
|
376
|
+
}
|
|
377
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
378
|
+
|
|
379
|
+
type CodeColor = "primary" | "success" | "error" | "warning" | "info" | "default";
|
|
380
|
+
type CodeSize = "sm" | "md";
|
|
381
|
+
interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, ColorOverrideProps {
|
|
382
|
+
color?: CodeColor;
|
|
383
|
+
size?: CodeSize;
|
|
384
|
+
}
|
|
385
|
+
declare const Code: React.FC<CodeProps>;
|
|
386
|
+
|
|
387
|
+
type SnippetSize = "sm" | "md";
|
|
388
|
+
interface SnippetProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color" | "children">, ColorOverrideProps {
|
|
389
|
+
/** Code content as a string (supports "\n") or an array of lines. */
|
|
390
|
+
code?: string | string[];
|
|
391
|
+
/** Alternative to `code`. */
|
|
392
|
+
children?: string | string[];
|
|
393
|
+
/** Prefix rendered before each line (e.g. "$ "). */
|
|
394
|
+
symbol?: string;
|
|
395
|
+
/** Hide the copy-to-clipboard button. */
|
|
396
|
+
hideCopyButton?: boolean;
|
|
397
|
+
/** Hide the line prefix symbol. */
|
|
398
|
+
hideSymbol?: boolean;
|
|
399
|
+
size?: SnippetSize;
|
|
400
|
+
}
|
|
401
|
+
declare const Snippet: React.FC<SnippetProps>;
|
|
402
|
+
|
|
403
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "color">, ColorOverrideProps {
|
|
404
|
+
success?: boolean;
|
|
405
|
+
error?: boolean;
|
|
406
|
+
hint?: string;
|
|
407
|
+
}
|
|
408
|
+
declare const Input: React.FC<InputProps>;
|
|
409
|
+
|
|
410
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
411
|
+
}
|
|
412
|
+
declare const Label: React.FC<LabelProps>;
|
|
413
|
+
|
|
414
|
+
interface TextAreaProps {
|
|
415
|
+
placeholder?: string;
|
|
416
|
+
rows?: number;
|
|
417
|
+
value?: string;
|
|
418
|
+
onChange?: (value: string) => void;
|
|
419
|
+
className?: string;
|
|
420
|
+
disabled?: boolean;
|
|
421
|
+
error?: boolean;
|
|
422
|
+
hint?: string;
|
|
423
|
+
}
|
|
424
|
+
declare const TextArea: React.FC<TextAreaProps>;
|
|
425
|
+
|
|
426
|
+
interface CheckboxProps {
|
|
427
|
+
label?: string;
|
|
428
|
+
checked: boolean;
|
|
429
|
+
className?: string;
|
|
430
|
+
id?: string;
|
|
431
|
+
onChange: (checked: boolean) => void;
|
|
432
|
+
disabled?: boolean;
|
|
433
|
+
/** Override the checked accent color (maps to inline accentColor). */
|
|
434
|
+
checkedColor?: string;
|
|
435
|
+
}
|
|
436
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
437
|
+
|
|
438
|
+
interface RadioProps {
|
|
439
|
+
id: string;
|
|
440
|
+
name: string;
|
|
441
|
+
value: string;
|
|
442
|
+
checked: boolean;
|
|
443
|
+
label: string;
|
|
444
|
+
onChange: (value: string) => void;
|
|
445
|
+
className?: string;
|
|
446
|
+
disabled?: boolean;
|
|
447
|
+
}
|
|
448
|
+
declare const Radio: React.FC<RadioProps>;
|
|
449
|
+
|
|
450
|
+
interface RadioSmProps {
|
|
451
|
+
id: string;
|
|
452
|
+
name: string;
|
|
453
|
+
value: string;
|
|
454
|
+
checked: boolean;
|
|
455
|
+
label: string;
|
|
456
|
+
onChange: (value: string) => void;
|
|
457
|
+
className?: string;
|
|
458
|
+
}
|
|
459
|
+
declare const RadioSm: React.FC<RadioSmProps>;
|
|
460
|
+
|
|
461
|
+
interface SwitchProps {
|
|
462
|
+
label: string;
|
|
463
|
+
checked?: boolean;
|
|
464
|
+
defaultChecked?: boolean;
|
|
465
|
+
disabled?: boolean;
|
|
466
|
+
onChange?: (checked: boolean) => void;
|
|
467
|
+
color?: "blue" | "gray";
|
|
468
|
+
}
|
|
469
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
470
|
+
|
|
471
|
+
interface Option$1 {
|
|
472
|
+
value: string;
|
|
473
|
+
label: string;
|
|
474
|
+
}
|
|
475
|
+
interface SelectProps {
|
|
476
|
+
options: Option$1[];
|
|
477
|
+
placeholder?: string;
|
|
478
|
+
onChange: (value: string) => void;
|
|
479
|
+
className?: string;
|
|
480
|
+
defaultValue?: string;
|
|
481
|
+
disabled?: boolean;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* A custom single-select dropdown (no native `<select>`), so the menu is fully
|
|
485
|
+
* styleable and theme-aware. The selected option shows a check mark.
|
|
486
|
+
*/
|
|
487
|
+
declare const Select: React.FC<SelectProps>;
|
|
488
|
+
|
|
489
|
+
interface Option {
|
|
490
|
+
value: string;
|
|
491
|
+
text: string;
|
|
492
|
+
selected: boolean;
|
|
493
|
+
}
|
|
494
|
+
interface MultiSelectProps {
|
|
495
|
+
label: string;
|
|
496
|
+
options: Option[];
|
|
497
|
+
defaultSelected?: string[];
|
|
498
|
+
onChange?: (selected: string[]) => void;
|
|
499
|
+
disabled?: boolean;
|
|
500
|
+
}
|
|
501
|
+
declare const MultiSelect: React.FC<MultiSelectProps>;
|
|
502
|
+
|
|
503
|
+
interface FileInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
504
|
+
}
|
|
505
|
+
declare const FileInput: React.FC<FileInputProps>;
|
|
506
|
+
|
|
507
|
+
type Hook = flatpickr.Options.Hook;
|
|
508
|
+
type DateOption$1 = flatpickr.Options.DateOption;
|
|
509
|
+
interface DatePickerProps {
|
|
510
|
+
id: string;
|
|
511
|
+
mode?: "single" | "multiple" | "range" | "time";
|
|
512
|
+
onChange?: Hook | Hook[];
|
|
513
|
+
defaultDate?: DateOption$1;
|
|
514
|
+
label?: string;
|
|
515
|
+
placeholder?: string;
|
|
516
|
+
}
|
|
517
|
+
declare const DatePicker: React.FC<DatePickerProps>;
|
|
518
|
+
|
|
519
|
+
type DateOption = flatpickr.Options.DateOption;
|
|
520
|
+
interface DateTimePickerProps {
|
|
521
|
+
id: string;
|
|
522
|
+
/** Optional field label rendered above the controls. */
|
|
523
|
+
label?: string;
|
|
524
|
+
/** Placeholder for the date input. */
|
|
525
|
+
placeholder?: string;
|
|
526
|
+
/** Initial date for the calendar. */
|
|
527
|
+
defaultDate?: DateOption;
|
|
528
|
+
/** Initial time as "HH:MM". */
|
|
529
|
+
defaultTime?: string;
|
|
530
|
+
/** Fires whenever the date or time changes. */
|
|
531
|
+
onChange?: (value: {
|
|
532
|
+
date: Date | undefined;
|
|
533
|
+
time: string;
|
|
534
|
+
}) => void;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Date + time field: a flatpickr calendar for the date (same look as DatePicker)
|
|
538
|
+
* paired with a compact HH:MM time input (two fields separated by a ":").
|
|
539
|
+
*/
|
|
540
|
+
declare const DateTimePicker: React.FC<DateTimePickerProps>;
|
|
541
|
+
|
|
542
|
+
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
543
|
+
}
|
|
544
|
+
/** Password field with a show/hide toggle (eye icon), matching the template's "Password Input". */
|
|
545
|
+
declare const PasswordInput: React.FC<PasswordInputProps>;
|
|
546
|
+
|
|
547
|
+
interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
|
|
548
|
+
onSubmit?: (event: FormEvent<HTMLFormElement>) => void;
|
|
549
|
+
}
|
|
550
|
+
declare const Form: React.FC<FormProps>;
|
|
551
|
+
|
|
552
|
+
type SliderColor = "brand" | "primary" | "success" | "error" | "warning" | "info";
|
|
553
|
+
interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "value" | "defaultValue" | "onChange" | "type">, ColorOverrideProps {
|
|
554
|
+
/** Controlled value. */
|
|
555
|
+
value?: number;
|
|
556
|
+
/** Uncontrolled initial value. */
|
|
557
|
+
defaultValue?: number;
|
|
558
|
+
/** Fires with the new numeric value on change. */
|
|
559
|
+
onChange?: (value: number) => void;
|
|
560
|
+
min?: number;
|
|
561
|
+
max?: number;
|
|
562
|
+
step?: number;
|
|
563
|
+
disabled?: boolean;
|
|
564
|
+
/** Accent color of the track + thumb. */
|
|
565
|
+
color?: SliderColor;
|
|
566
|
+
/** Optional label rendered above the slider. */
|
|
567
|
+
label?: React.ReactNode;
|
|
568
|
+
/** Show the current value next to the label. */
|
|
569
|
+
showValue?: boolean;
|
|
570
|
+
}
|
|
571
|
+
declare const Slider: React.FC<SliderProps>;
|
|
572
|
+
|
|
573
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSelectionMode, Alert, type AlertProps, type AlertVariant, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, AvatarText, type AvatarTextProps, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, Code, type CodeColor, type CodeProps, type CodeSize, ColorOverrideProps, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownItemVariant, type DropdownProps, Dropzone, type DropzoneProps, FileInput, type FileInputProps, Form, type FormProps, Input, type InputProps, Label, type LabelProps, Modal, type ModalProps, type ModalVariant, MultiSelect, type MultiSelectProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, Popover, type PopoverPlacement, type PopoverProps, Progress, type ProgressColor, type ProgressProps, type ProgressSize, Radio, type RadioProps, RadioSm, type RadioSmProps, Ribbon, type RibbonColor, type RibbonPosition, type RibbonProps, type RibbonVariant, Select, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderColor, type SliderProps, Snippet, type SnippetProps, type SnippetSize, type SortDirection, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, TableCell, type TableCellProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSectionProps, Tabs, type TabsProps, type TabsVariant, TextArea, type TextAreaProps, ThemeToggleButton, type ThemeToggleButtonProps, Tooltip, type TooltipPlacement, type TooltipProps, cn };
|