@ttianqii/takaui 0.1.2 → 0.1.4
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/dist/index.d.ts +451 -1
- package/dist/takaui.cjs +2 -50
- package/dist/takaui.cjs.map +1 -0
- package/dist/takaui.js +2130 -12108
- package/dist/takaui.js.map +1 -0
- package/package.json +15 -10
- package/src/cli/setup.js +0 -123
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,451 @@
|
|
|
1
|
-
|
|
1
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
2
|
+
import { ClassValue } from 'clsx';
|
|
3
|
+
import { Column } from '@tanstack/react-table';
|
|
4
|
+
import { default as default_2 } from 'react';
|
|
5
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
|
+
import { JSX } from 'react/jsx-runtime';
|
|
8
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
9
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
10
|
+
import * as React_2 from 'react';
|
|
11
|
+
import { ReactNode } from 'react';
|
|
12
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
13
|
+
import { Table as Table_2 } from '@tanstack/react-table';
|
|
14
|
+
|
|
15
|
+
export declare const Button: React_2.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
|
|
17
|
+
declare interface ButtonProps extends React_2.ComponentProps<"button"> {
|
|
18
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
19
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
|
|
20
|
+
asChild?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export declare function Calendar({ selected, onSelect, events, holidays, className, ...props }: CalendarProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare interface CalendarEvent {
|
|
26
|
+
date: Date;
|
|
27
|
+
title: string;
|
|
28
|
+
type?: string;
|
|
29
|
+
time?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
location?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare interface CalendarProps {
|
|
35
|
+
selected?: Date;
|
|
36
|
+
onSelect?: (date: Date) => void;
|
|
37
|
+
events?: CalendarEvent[];
|
|
38
|
+
holidays?: Holiday[];
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
|
|
46
|
+
export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
47
|
+
|
|
48
|
+
export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
|
|
50
|
+
export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
|
|
52
|
+
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
53
|
+
|
|
54
|
+
export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
|
|
56
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
57
|
+
|
|
58
|
+
export declare const convertTimezone: (date: Date, fromTz: string, toTz: string) => Date;
|
|
59
|
+
|
|
60
|
+
export declare interface CustomField {
|
|
61
|
+
key: string;
|
|
62
|
+
label: string;
|
|
63
|
+
type: "text" | "number" | "select";
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
options?: {
|
|
66
|
+
label: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}[];
|
|
69
|
+
icon?: React_2.ReactNode;
|
|
70
|
+
showInCard?: boolean;
|
|
71
|
+
required?: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export declare function DataGrid<T extends Record<string, unknown>>({ columns, data, getRowId, onRowClick, children, recordCount, }: DataGridProps<T>): JSX.Element;
|
|
75
|
+
|
|
76
|
+
export declare interface DataGridColumn<T = Record<string, unknown>> {
|
|
77
|
+
id: string;
|
|
78
|
+
accessorKey?: keyof T;
|
|
79
|
+
header: string | default_2.ReactNode;
|
|
80
|
+
cell?: (row: T, index: number) => default_2.ReactNode;
|
|
81
|
+
size?: number;
|
|
82
|
+
enableSorting?: boolean;
|
|
83
|
+
enableHiding?: boolean;
|
|
84
|
+
align?: 'left' | 'center' | 'right';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare function DataGridColumnHeader({ id, title }: DataGridColumnHeaderProps): JSX.Element;
|
|
88
|
+
|
|
89
|
+
declare interface DataGridColumnHeaderProps {
|
|
90
|
+
id: string;
|
|
91
|
+
title: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
declare interface DataGridContextValue<T = Record<string, unknown>> {
|
|
95
|
+
columns: DataGridColumn<T>[];
|
|
96
|
+
data: T[];
|
|
97
|
+
getRowId: (row: T) => string;
|
|
98
|
+
onRowClick?: (row: T) => void;
|
|
99
|
+
pagination: {
|
|
100
|
+
pageIndex: number;
|
|
101
|
+
pageSize: number;
|
|
102
|
+
};
|
|
103
|
+
setPagination: default_2.Dispatch<default_2.SetStateAction<{
|
|
104
|
+
pageIndex: number;
|
|
105
|
+
pageSize: number;
|
|
106
|
+
}>>;
|
|
107
|
+
canPreviousPage: boolean;
|
|
108
|
+
canNextPage: boolean;
|
|
109
|
+
previousPage: () => void;
|
|
110
|
+
nextPage: () => void;
|
|
111
|
+
setPageSize: (size: number) => void;
|
|
112
|
+
goToPage: (page: number) => void;
|
|
113
|
+
pageCount: number;
|
|
114
|
+
sorting: {
|
|
115
|
+
id: string;
|
|
116
|
+
desc: boolean;
|
|
117
|
+
}[];
|
|
118
|
+
setSorting: default_2.Dispatch<default_2.SetStateAction<{
|
|
119
|
+
id: string;
|
|
120
|
+
desc: boolean;
|
|
121
|
+
}[]>>;
|
|
122
|
+
selectedRows: Set<string>;
|
|
123
|
+
toggleRow: (id: string) => void;
|
|
124
|
+
toggleAllRows: () => void;
|
|
125
|
+
isAllRowsSelected: boolean;
|
|
126
|
+
paginatedData: T[];
|
|
127
|
+
sortedData: T[];
|
|
128
|
+
totalPages: number;
|
|
129
|
+
recordCount: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export declare function DataGridPagination({ mode, pageSizeOptions }: DataGridPaginationProps): JSX.Element;
|
|
133
|
+
|
|
134
|
+
declare interface DataGridPaginationProps {
|
|
135
|
+
mode?: 'simple' | 'advanced';
|
|
136
|
+
pageSizeOptions?: number[];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export declare interface DataGridProps<T = Record<string, unknown>> {
|
|
140
|
+
columns: DataGridColumn<T>[];
|
|
141
|
+
data: T[];
|
|
142
|
+
getRowId?: (row: T) => string;
|
|
143
|
+
onRowClick?: (row: T) => void;
|
|
144
|
+
children: ReactNode;
|
|
145
|
+
recordCount?: number;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export declare function DataGridTable(): JSX.Element;
|
|
149
|
+
|
|
150
|
+
export declare function DataGridTableRowSelect<T = Record<string, unknown>>({ row, }: DataGridTableRowSelectProps<T>): JSX.Element;
|
|
151
|
+
|
|
152
|
+
export declare function DataGridTableRowSelectAll(): JSX.Element;
|
|
153
|
+
|
|
154
|
+
declare interface DataGridTableRowSelectProps<T = Record<string, unknown>> {
|
|
155
|
+
row: T;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare function DataTable<T = Record<string, unknown>>({ data, columns, searchPlaceholder, onRowClick, className, showPagination, showSearch, pageSize: initialPageSize, renderToolbar, variant, }: DataTableProps<T>): JSX.Element;
|
|
159
|
+
|
|
160
|
+
export declare interface DataTableColumn<T = Record<string, unknown>> {
|
|
161
|
+
key: string;
|
|
162
|
+
header: string | default_2.ReactNode;
|
|
163
|
+
accessor?: (row: T) => unknown;
|
|
164
|
+
cell?: (value: unknown, row: T, index: number) => default_2.ReactNode;
|
|
165
|
+
sortable?: boolean;
|
|
166
|
+
width?: string;
|
|
167
|
+
align?: 'left' | 'center' | 'right';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
171
|
+
data: T[];
|
|
172
|
+
columns: DataTableColumn<T>[];
|
|
173
|
+
searchPlaceholder?: string;
|
|
174
|
+
onRowClick?: (row: T) => void;
|
|
175
|
+
className?: string;
|
|
176
|
+
showPagination?: boolean;
|
|
177
|
+
showSearch?: boolean;
|
|
178
|
+
pageSize?: number;
|
|
179
|
+
renderToolbar?: () => default_2.ReactNode;
|
|
180
|
+
variant?: 'default' | 'clean';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare function DatePicker({ date, onDateChange, mode, dateRange, onDateRangeChange, placeholder, dateFormat, disabled, className, variant, size, align, showIcon, icon, minDate, maxDate, disabledDates, isDateDisabled, fullWidth, customTrigger, numberOfMonths, holidays, }: DatePickerProps): JSX.Element;
|
|
184
|
+
|
|
185
|
+
export declare interface DatePickerProps {
|
|
186
|
+
/** The selected date */
|
|
187
|
+
date?: Date;
|
|
188
|
+
/** Callback when date changes */
|
|
189
|
+
onDateChange?: (date: Date | undefined) => void;
|
|
190
|
+
/** Mode: single date or range */
|
|
191
|
+
mode?: 'single' | 'range';
|
|
192
|
+
/** Selected date range (for range mode) */
|
|
193
|
+
dateRange?: {
|
|
194
|
+
from?: Date;
|
|
195
|
+
to?: Date;
|
|
196
|
+
};
|
|
197
|
+
/** Callback when date range changes (for range mode) */
|
|
198
|
+
onDateRangeChange?: (range: {
|
|
199
|
+
from?: Date;
|
|
200
|
+
to?: Date;
|
|
201
|
+
} | undefined) => void;
|
|
202
|
+
/** Placeholder text when no date is selected */
|
|
203
|
+
placeholder?: string;
|
|
204
|
+
/** Date format string (default: "PPP") */
|
|
205
|
+
dateFormat?: string;
|
|
206
|
+
/** Disabled state */
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
/** Custom className for the trigger button */
|
|
209
|
+
className?: string;
|
|
210
|
+
/** Button variant */
|
|
211
|
+
variant?: "default" | "outline" | "ghost";
|
|
212
|
+
/** Button size */
|
|
213
|
+
size?: "default" | "sm" | "lg";
|
|
214
|
+
/** Alignment of the popover */
|
|
215
|
+
align?: "start" | "center" | "end";
|
|
216
|
+
/** Show icon in button */
|
|
217
|
+
showIcon?: boolean;
|
|
218
|
+
/** Custom icon */
|
|
219
|
+
icon?: React_2.ReactNode;
|
|
220
|
+
/** Minimum selectable date */
|
|
221
|
+
minDate?: Date;
|
|
222
|
+
/** Maximum selectable date */
|
|
223
|
+
maxDate?: Date;
|
|
224
|
+
/** Array of disabled dates */
|
|
225
|
+
disabledDates?: Date[];
|
|
226
|
+
/** Function to determine if a date should be disabled */
|
|
227
|
+
isDateDisabled?: (date: Date) => boolean;
|
|
228
|
+
/** Full width button */
|
|
229
|
+
fullWidth?: boolean;
|
|
230
|
+
/** Custom trigger element */
|
|
231
|
+
customTrigger?: React_2.ReactNode;
|
|
232
|
+
/** Number of months to display (1 or 2) */
|
|
233
|
+
numberOfMonths?: 1 | 2;
|
|
234
|
+
/** Array of holidays to display */
|
|
235
|
+
holidays?: Holiday[];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export declare function DropdownMenu({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Root>): JSX.Element;
|
|
239
|
+
|
|
240
|
+
export declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): JSX.Element;
|
|
241
|
+
|
|
242
|
+
export declare function DropdownMenuContent({ className, sideOffset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Content>): JSX.Element;
|
|
243
|
+
|
|
244
|
+
export declare function DropdownMenuGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Group>): JSX.Element;
|
|
245
|
+
|
|
246
|
+
export declare function DropdownMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
247
|
+
inset?: boolean;
|
|
248
|
+
variant?: "default" | "destructive";
|
|
249
|
+
}): JSX.Element;
|
|
250
|
+
|
|
251
|
+
export declare function DropdownMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
252
|
+
inset?: boolean;
|
|
253
|
+
}): JSX.Element;
|
|
254
|
+
|
|
255
|
+
export declare function DropdownMenuPortal({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Portal>): JSX.Element;
|
|
256
|
+
|
|
257
|
+
export declare function DropdownMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): JSX.Element;
|
|
258
|
+
|
|
259
|
+
export declare function DropdownMenuRadioItem({ className, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): JSX.Element;
|
|
260
|
+
|
|
261
|
+
export declare function DropdownMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Separator>): JSX.Element;
|
|
262
|
+
|
|
263
|
+
export declare function DropdownMenuShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
|
|
264
|
+
|
|
265
|
+
export declare function DropdownMenuSub({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Sub>): JSX.Element;
|
|
266
|
+
|
|
267
|
+
export declare function DropdownMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): JSX.Element;
|
|
268
|
+
|
|
269
|
+
export declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
270
|
+
inset?: boolean;
|
|
271
|
+
}): JSX.Element;
|
|
272
|
+
|
|
273
|
+
export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): JSX.Element;
|
|
274
|
+
|
|
275
|
+
export declare const formatTimeWithTimezone: (date: Date, timezone: string, format?: "12h" | "24h", showSeconds?: boolean) => string;
|
|
276
|
+
|
|
277
|
+
export declare interface Holiday {
|
|
278
|
+
date: Date;
|
|
279
|
+
name: string;
|
|
280
|
+
country?: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export declare const Input: React_2.ForwardRefExoticComponent<React_2.InputHTMLAttributes<HTMLInputElement> & React_2.RefAttributes<HTMLInputElement>>;
|
|
284
|
+
|
|
285
|
+
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
286
|
+
|
|
287
|
+
export declare const Modal: React_2.FC<DialogPrimitive.DialogProps>;
|
|
288
|
+
|
|
289
|
+
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
290
|
+
|
|
291
|
+
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
292
|
+
|
|
293
|
+
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
294
|
+
|
|
295
|
+
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
296
|
+
|
|
297
|
+
export declare function Schedule({ title, subtitle, events, onEventAdd, onEventUpdate, onEventDelete, className, timeSlots, daysOfWeek, showAddButton, eventColors, customFields, showWeekNavigation, showHalfHourLines, showCurrentTimeIndicator, slotHeight, }: ScheduleProps): JSX.Element;
|
|
298
|
+
|
|
299
|
+
export declare interface ScheduleEvent {
|
|
300
|
+
id: string;
|
|
301
|
+
title: string;
|
|
302
|
+
day: string;
|
|
303
|
+
startTime: string;
|
|
304
|
+
endTime: string;
|
|
305
|
+
color: string;
|
|
306
|
+
description?: string;
|
|
307
|
+
recurrenceType?: 'none' | 'weekly' | 'monthly' | 'yearly';
|
|
308
|
+
specificDate?: string;
|
|
309
|
+
[key: string]: string | number | boolean | Date | undefined;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export declare interface ScheduleProps {
|
|
313
|
+
title?: string;
|
|
314
|
+
subtitle?: string;
|
|
315
|
+
events: ScheduleEvent[];
|
|
316
|
+
onEventAdd?: (event: Omit<ScheduleEvent, "id">) => void;
|
|
317
|
+
onEventUpdate?: (event: ScheduleEvent) => void;
|
|
318
|
+
onEventDelete?: (eventId: string) => void;
|
|
319
|
+
className?: string;
|
|
320
|
+
timeSlots?: string[];
|
|
321
|
+
daysOfWeek?: string[];
|
|
322
|
+
showAddButton?: boolean;
|
|
323
|
+
eventColors?: {
|
|
324
|
+
name: string;
|
|
325
|
+
value: string;
|
|
326
|
+
}[];
|
|
327
|
+
customFields?: CustomField[];
|
|
328
|
+
showWeekNavigation?: boolean;
|
|
329
|
+
showHalfHourLines?: boolean;
|
|
330
|
+
showCurrentTimeIndicator?: boolean;
|
|
331
|
+
slotHeight?: number;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
335
|
+
|
|
336
|
+
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
337
|
+
|
|
338
|
+
export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
339
|
+
|
|
340
|
+
export declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
341
|
+
|
|
342
|
+
export declare const SelectLabel: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
343
|
+
|
|
344
|
+
export declare const SelectSeparator: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
345
|
+
|
|
346
|
+
export declare const SelectTrigger: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
347
|
+
|
|
348
|
+
export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
349
|
+
|
|
350
|
+
export declare const Separator: React_2.ForwardRefExoticComponent<SeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
351
|
+
|
|
352
|
+
declare interface SeparatorProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
353
|
+
orientation?: "horizontal" | "vertical";
|
|
354
|
+
decorative?: boolean;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export declare function SortableHeader<TData, TValue>({ column, title, align, className, }: SortableHeaderProps<TData, TValue>): JSX.Element;
|
|
358
|
+
|
|
359
|
+
export declare interface SortableHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
|
|
360
|
+
column: Column<TData, TValue>;
|
|
361
|
+
title: string;
|
|
362
|
+
align?: "left" | "center" | "right";
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export declare function Table({ className, variant, ...props }: React_2.ComponentProps<"table"> & {
|
|
366
|
+
variant?: TableVariant;
|
|
367
|
+
}): JSX.Element;
|
|
368
|
+
|
|
369
|
+
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
370
|
+
|
|
371
|
+
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
|
|
372
|
+
|
|
373
|
+
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
374
|
+
|
|
375
|
+
export declare function TableContent(): JSX.Element;
|
|
376
|
+
|
|
377
|
+
export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
|
|
378
|
+
|
|
379
|
+
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
|
|
380
|
+
|
|
381
|
+
export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
|
|
382
|
+
|
|
383
|
+
export declare function TableNavigator({ rowsPerPageOptions, showPageSelector, showRecordInfo, showControls, }?: TableNavigatorProps): JSX.Element;
|
|
384
|
+
|
|
385
|
+
export declare interface TableNavigatorProps {
|
|
386
|
+
rowsPerPageOptions?: number[];
|
|
387
|
+
showPageSelector?: boolean;
|
|
388
|
+
showRecordInfo?: boolean;
|
|
389
|
+
showControls?: boolean;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export declare function TableRoot<TData>({ table, totalRecords, children }: TableRootProps<TData>): JSX.Element;
|
|
393
|
+
|
|
394
|
+
declare interface TableRootProps<TData> {
|
|
395
|
+
table: Table_2<TData>;
|
|
396
|
+
totalRecords: number;
|
|
397
|
+
children: React_2.ReactNode;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
401
|
+
|
|
402
|
+
declare type TableVariant = "default" | "clean";
|
|
403
|
+
|
|
404
|
+
export declare function TableWrapper({ children, className }: TableWrapperProps): JSX.Element;
|
|
405
|
+
|
|
406
|
+
declare interface TableWrapperProps {
|
|
407
|
+
children: React_2.ReactNode;
|
|
408
|
+
className?: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export declare const TimePicker: default_2.FC<TimePickerProps>;
|
|
412
|
+
|
|
413
|
+
declare interface TimePickerProps {
|
|
414
|
+
time: Date | undefined;
|
|
415
|
+
onTimeChange: (date: Date | undefined) => void;
|
|
416
|
+
timezone?: string;
|
|
417
|
+
onTimezoneChange?: (timezone: string) => void;
|
|
418
|
+
format?: '12h' | '24h';
|
|
419
|
+
showTimezone?: boolean;
|
|
420
|
+
minuteStep?: 1 | 5 | 10 | 15 | 30;
|
|
421
|
+
showSeconds?: boolean;
|
|
422
|
+
placeholder?: string;
|
|
423
|
+
variant?: 'default' | 'outline' | 'ghost';
|
|
424
|
+
size?: 'sm' | 'default' | 'lg';
|
|
425
|
+
showClockFace?: boolean;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export declare const TIMEZONES: {
|
|
429
|
+
label: string;
|
|
430
|
+
offset: number;
|
|
431
|
+
}[];
|
|
432
|
+
|
|
433
|
+
export declare function useDataGrid<T = Record<string, unknown>>(): DataGridContextValue<T>;
|
|
434
|
+
|
|
435
|
+
export declare function WeekNavigator({ onWeekChange, initialDate, className, compact }: WeekNavigatorProps): JSX.Element;
|
|
436
|
+
|
|
437
|
+
export declare interface WeekNavigatorProps {
|
|
438
|
+
onWeekChange?: (weekStart: Date) => void;
|
|
439
|
+
initialDate?: Date;
|
|
440
|
+
className?: string;
|
|
441
|
+
compact?: boolean;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export declare const weekNavigatorUtils: {
|
|
445
|
+
calculateWeekDates: (startDate: Date) => Date[];
|
|
446
|
+
formatDateDisplay: (date: Date) => string;
|
|
447
|
+
getWeekNumber: (date: Date) => number;
|
|
448
|
+
getWeekOfMonth: (date: Date) => number;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
export { }
|