@makolabs/ripple 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +575 -8
- package/dist/adapters/storage/BaseAdapter.d.ts +20 -0
- package/dist/adapters/storage/BaseAdapter.js +171 -0
- package/dist/adapters/storage/S3Adapter.d.ts +21 -0
- package/dist/adapters/storage/S3Adapter.js +194 -0
- package/dist/adapters/storage/index.d.ts +3 -0
- package/dist/adapters/storage/index.js +3 -0
- package/dist/adapters/storage/types.d.ts +102 -0
- package/dist/adapters/storage/types.js +4 -0
- package/dist/button/Button.svelte +48 -0
- package/dist/button/Button.svelte.d.ts +4 -0
- package/dist/button/button.d.ts +113 -0
- package/dist/button/button.js +168 -0
- package/dist/charts/Chart.svelte +545 -0
- package/dist/charts/Chart.svelte.d.ts +4 -0
- package/dist/drawer/Drawer.svelte +224 -0
- package/dist/drawer/Drawer.svelte.d.ts +4 -0
- package/dist/drawer/drawer.d.ts +160 -0
- package/dist/drawer/drawer.js +80 -0
- package/dist/elements/accordion/Accordion.svelte +98 -0
- package/dist/elements/accordion/Accordion.svelte.d.ts +4 -0
- package/dist/elements/accordion/accordion.d.ts +227 -0
- package/dist/elements/accordion/accordion.js +138 -0
- package/dist/elements/alert/Alert.svelte +57 -0
- package/dist/elements/alert/Alert.svelte.d.ts +4 -0
- package/dist/elements/badge/Badge.svelte +43 -0
- package/dist/elements/badge/Badge.svelte.d.ts +4 -0
- package/dist/elements/badge/badge.d.ts +181 -0
- package/dist/elements/badge/badge.js +65 -0
- package/dist/elements/dropdown/Dropdown.svelte +234 -0
- package/dist/elements/dropdown/Dropdown.svelte.d.ts +4 -0
- package/dist/elements/dropdown/Select.svelte +333 -0
- package/dist/elements/dropdown/Select.svelte.d.ts +4 -0
- package/dist/elements/dropdown/dropdown.d.ts +251 -0
- package/dist/elements/dropdown/dropdown.js +95 -0
- package/dist/elements/dropdown/select.d.ts +200 -0
- package/dist/elements/dropdown/select.js +82 -0
- package/dist/elements/file-upload/FileUpload.svelte +135 -0
- package/dist/elements/file-upload/FileUpload.svelte.d.ts +4 -0
- package/dist/elements/file-upload/FilesPreview.svelte +93 -0
- package/dist/elements/file-upload/FilesPreview.svelte.d.ts +4 -0
- package/dist/elements/progress/Progress.svelte +145 -0
- package/dist/elements/progress/Progress.svelte.d.ts +4 -0
- package/dist/elements/timeline/Timeline.svelte +92 -0
- package/dist/elements/timeline/Timeline.svelte.d.ts +7 -0
- package/dist/file-browser/FileBrowser.svelte +877 -0
- package/dist/file-browser/FileBrowser.svelte.d.ts +14 -0
- package/dist/file-browser/index.d.ts +1 -0
- package/dist/file-browser/index.js +1 -0
- package/dist/filters/CompactFilters.svelte +147 -0
- package/dist/filters/CompactFilters.svelte.d.ts +4 -0
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/index.js +1 -0
- package/dist/forms/Checkbox.svelte +54 -0
- package/dist/forms/Checkbox.svelte.d.ts +4 -0
- package/dist/forms/DateRange.svelte +493 -0
- package/dist/forms/DateRange.svelte.d.ts +4 -0
- package/dist/forms/Form.svelte +39 -0
- package/dist/forms/Form.svelte.d.ts +4 -0
- package/dist/forms/Input.svelte +86 -0
- package/dist/forms/Input.svelte.d.ts +4 -0
- package/dist/forms/NumberInput.svelte +159 -0
- package/dist/forms/NumberInput.svelte.d.ts +4 -0
- package/dist/forms/RadioInputs.svelte +64 -0
- package/dist/forms/RadioInputs.svelte.d.ts +4 -0
- package/dist/forms/RadioPill.svelte +66 -0
- package/dist/forms/RadioPill.svelte.d.ts +4 -0
- package/dist/forms/Slider.svelte +342 -0
- package/dist/forms/Slider.svelte.d.ts +4 -0
- package/dist/forms/Tags.svelte +181 -0
- package/dist/forms/Tags.svelte.d.ts +4 -0
- package/dist/forms/Toggle.svelte +132 -0
- package/dist/forms/Toggle.svelte.d.ts +4 -0
- package/dist/forms/slider.d.ts +143 -0
- package/dist/forms/slider.js +62 -0
- package/dist/header/Breadcrumbs.svelte +73 -0
- package/dist/header/Breadcrumbs.svelte.d.ts +4 -0
- package/dist/header/PageHeader.svelte +68 -0
- package/dist/header/PageHeader.svelte.d.ts +4 -0
- package/dist/header/breadcrumbs.d.ts +226 -0
- package/dist/header/breadcrumbs.js +87 -0
- package/dist/helper/cls.d.ts +1 -0
- package/dist/helper/cls.js +4 -0
- package/dist/helper/date.d.ts +7 -0
- package/dist/helper/date.js +15 -0
- package/dist/helper/nav.svelte.d.ts +6 -0
- package/dist/helper/nav.svelte.js +23 -0
- package/dist/index.d.ts +856 -1
- package/dist/index.js +78 -1
- package/dist/layout/card/Card.svelte +41 -0
- package/dist/layout/card/Card.svelte.d.ts +4 -0
- package/dist/layout/card/MetricCard.svelte +64 -0
- package/dist/layout/card/MetricCard.svelte.d.ts +4 -0
- package/dist/layout/card/StatsCard.svelte +266 -0
- package/dist/layout/card/StatsCard.svelte.d.ts +4 -0
- package/dist/layout/card/card.d.ts +128 -0
- package/dist/layout/card/card.js +51 -0
- package/dist/layout/card/metric-card.d.ts +49 -0
- package/dist/layout/card/metric-card.js +10 -0
- package/dist/layout/card/stats-card.d.ts +191 -0
- package/dist/layout/card/stats-card.js +73 -0
- package/dist/layout/navbar/Navbar.svelte +206 -0
- package/dist/layout/navbar/Navbar.svelte.d.ts +4 -0
- package/dist/layout/navbar/navbar.d.ts +205 -0
- package/dist/layout/navbar/navbar.js +98 -0
- package/dist/layout/sidebar/NavGroup.svelte +91 -0
- package/dist/layout/sidebar/NavGroup.svelte.d.ts +4 -0
- package/dist/layout/sidebar/NavItem.svelte +29 -0
- package/dist/layout/sidebar/NavItem.svelte.d.ts +4 -0
- package/dist/layout/sidebar/Sidebar.svelte +193 -0
- package/dist/layout/sidebar/Sidebar.svelte.d.ts +4 -0
- package/dist/layout/table/Cells.svelte +111 -0
- package/dist/layout/table/Cells.svelte.d.ts +27 -0
- package/dist/layout/table/Table.svelte +790 -0
- package/dist/layout/table/Table.svelte.d.ts +4 -0
- package/dist/layout/table/table.d.ts +256 -0
- package/dist/layout/table/table.js +141 -0
- package/dist/layout/tabs/Tab.svelte +60 -0
- package/dist/layout/tabs/Tab.svelte.d.ts +4 -0
- package/dist/layout/tabs/TabContent.svelte +30 -0
- package/dist/layout/tabs/TabContent.svelte.d.ts +4 -0
- package/dist/layout/tabs/TabGroup.svelte +62 -0
- package/dist/layout/tabs/TabGroup.svelte.d.ts +4 -0
- package/dist/layout/tabs/tabs.d.ts +140 -0
- package/dist/layout/tabs/tabs.js +298 -0
- package/dist/modal/Modal.svelte +207 -0
- package/dist/modal/Modal.svelte.d.ts +4 -0
- package/dist/modal/modal.d.ts +211 -0
- package/dist/modal/modal.js +81 -0
- package/dist/sonner/sonner.svelte +13 -0
- package/dist/sonner/sonner.svelte.d.ts +4 -0
- package/dist/types/variants.d.ts +1 -0
- package/dist/types/variants.js +1 -0
- package/dist/utils/Portal.svelte +108 -0
- package/dist/utils/Portal.svelte.d.ts +8 -0
- package/dist/utils/dateUtils.d.ts +7 -0
- package/dist/utils/dateUtils.js +26 -0
- package/dist/variants.d.ts +30 -0
- package/dist/variants.js +36 -0
- package/package.json +39 -6
- package/dist/layout/Card.svelte +0 -179
- package/dist/layout/Card.svelte.d.ts +0 -208
- package/dist/layout/index.d.ts +0 -1
- package/dist/layout/index.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,856 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartColor, Color, Size } from './variants.js';
|
|
2
|
+
/**
|
|
3
|
+
* Size System:
|
|
4
|
+
* - Size.*: Component dimensions (XS, SM, BASE, LG, XL, XXL)
|
|
5
|
+
*/
|
|
6
|
+
export type VariantSizes = (typeof Size)[keyof typeof Size];
|
|
7
|
+
export type VariantColors = (typeof Color)[keyof typeof Color];
|
|
8
|
+
/**
|
|
9
|
+
* Color System:
|
|
10
|
+
* - Color.*: UI component colors (buttons, text, backgrounds)
|
|
11
|
+
* Options: DEFAULT, PRIMARY, SECONDARY, INFO, SUCCESS, WARNING, DANGER
|
|
12
|
+
* - ChartColor.*: Chart-specific colors, only supported within series configurations (lines, areas, bars)
|
|
13
|
+
* Options: HEALTH, PROPERTY, AUTO, LIFE, OTHER, DEFAULT
|
|
14
|
+
* - ChartColors: Record type mapping ChartColor enum to string values
|
|
15
|
+
*/
|
|
16
|
+
export { Color, Size, ChartColor };
|
|
17
|
+
import type { ClassValue } from 'tailwind-variants';
|
|
18
|
+
import type { Snippet } from 'svelte';
|
|
19
|
+
import type { Component } from 'svelte';
|
|
20
|
+
import type { HTMLButtonAttributes, HTMLAttributeAnchorTarget } from 'svelte/elements';
|
|
21
|
+
import type { ECharts } from 'echarts/types/src/export/core.js';
|
|
22
|
+
import type { SuperForm } from 'sveltekit-superforms';
|
|
23
|
+
export type BadgeProps = {
|
|
24
|
+
size?: VariantSizes;
|
|
25
|
+
color?: VariantColors;
|
|
26
|
+
class?: ClassValue;
|
|
27
|
+
children: Snippet;
|
|
28
|
+
onclose?: (event: MouseEvent) => void;
|
|
29
|
+
};
|
|
30
|
+
export type BaseButtonProps = {
|
|
31
|
+
class?: ClassValue;
|
|
32
|
+
variant?: 'solid' | 'outline' | 'ghost' | 'link';
|
|
33
|
+
color?: VariantColors;
|
|
34
|
+
size?: VariantSizes;
|
|
35
|
+
rounded?: 'none' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | 'full';
|
|
36
|
+
disabled?: boolean | undefined | null;
|
|
37
|
+
isLoading?: boolean;
|
|
38
|
+
children?: Snippet;
|
|
39
|
+
};
|
|
40
|
+
export type ButtonHTMLProps = {
|
|
41
|
+
href?: never;
|
|
42
|
+
} & HTMLButtonAttributes;
|
|
43
|
+
export type AnchorHTMLProps = {
|
|
44
|
+
rel?: string | undefined | null;
|
|
45
|
+
target?: HTMLAttributeAnchorTarget | undefined | null;
|
|
46
|
+
referrerpolicy?: 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url' | undefined | null;
|
|
47
|
+
href: string;
|
|
48
|
+
} & Record<string, unknown>;
|
|
49
|
+
export type ButtonProps = BaseButtonProps & (ButtonHTMLProps | AnchorHTMLProps);
|
|
50
|
+
export type MakeModalProps = {
|
|
51
|
+
open?: boolean;
|
|
52
|
+
onclose?: () => void;
|
|
53
|
+
title?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
hideCloseButton?: boolean;
|
|
56
|
+
closeOnBackdropClick?: boolean;
|
|
57
|
+
closeOnEsc?: boolean;
|
|
58
|
+
position?: 'top' | 'center' | 'bottom';
|
|
59
|
+
class?: string;
|
|
60
|
+
backdropclass?: string;
|
|
61
|
+
contentclass?: string;
|
|
62
|
+
headerclass?: string;
|
|
63
|
+
bodyclass?: string;
|
|
64
|
+
titleclass?: string;
|
|
65
|
+
children?: Snippet;
|
|
66
|
+
header?: Snippet;
|
|
67
|
+
footer?: Snippet;
|
|
68
|
+
custom?: Snippet;
|
|
69
|
+
};
|
|
70
|
+
export type DrawerProps = {
|
|
71
|
+
open?: boolean;
|
|
72
|
+
onclose?: () => void;
|
|
73
|
+
title?: string;
|
|
74
|
+
position?: 'left' | 'right';
|
|
75
|
+
size?: VariantSizes;
|
|
76
|
+
class?: string;
|
|
77
|
+
backdropclass?: string;
|
|
78
|
+
contentclass?: string;
|
|
79
|
+
headerclass?: string;
|
|
80
|
+
bodyclass?: string;
|
|
81
|
+
titleclass?: string;
|
|
82
|
+
footerclass?: string;
|
|
83
|
+
children?: Snippet;
|
|
84
|
+
header?: Snippet;
|
|
85
|
+
footer?: Snippet;
|
|
86
|
+
};
|
|
87
|
+
export type DropdownItem = {
|
|
88
|
+
label: string;
|
|
89
|
+
href?: string;
|
|
90
|
+
icon?: Component;
|
|
91
|
+
onclick?: () => void;
|
|
92
|
+
active?: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type DropSection = {
|
|
95
|
+
items: DropdownItem[];
|
|
96
|
+
};
|
|
97
|
+
export type DropHeaderConfig = {
|
|
98
|
+
title?: string;
|
|
99
|
+
subtitle?: string;
|
|
100
|
+
content?: Snippet<[]>;
|
|
101
|
+
class?: ClassValue;
|
|
102
|
+
titleClass?: ClassValue;
|
|
103
|
+
subtitleClass?: ClassValue;
|
|
104
|
+
onclick?: () => void;
|
|
105
|
+
};
|
|
106
|
+
export type DropdownMenuProps = {
|
|
107
|
+
open?: boolean;
|
|
108
|
+
sections: DropSection[];
|
|
109
|
+
label?: string;
|
|
110
|
+
icon?: Component;
|
|
111
|
+
containerClass?: ClassValue;
|
|
112
|
+
itemClass?: ClassValue;
|
|
113
|
+
class?: ClassValue;
|
|
114
|
+
size?: VariantSizes;
|
|
115
|
+
disabled?: boolean;
|
|
116
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
117
|
+
width?: string;
|
|
118
|
+
header?: DropHeaderConfig;
|
|
119
|
+
};
|
|
120
|
+
export type SelectItem = {
|
|
121
|
+
label: string;
|
|
122
|
+
value: string;
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
icon?: Component;
|
|
125
|
+
};
|
|
126
|
+
export type SelectProps = {
|
|
127
|
+
items: SelectItem[];
|
|
128
|
+
value?: string | string[];
|
|
129
|
+
multiple?: boolean;
|
|
130
|
+
placeholder?: string;
|
|
131
|
+
searchable?: boolean;
|
|
132
|
+
disabled?: boolean;
|
|
133
|
+
size?: VariantSizes;
|
|
134
|
+
class?: ClassValue;
|
|
135
|
+
containerClass?: ClassValue;
|
|
136
|
+
listClass?: ClassValue;
|
|
137
|
+
itemClass?: ClassValue;
|
|
138
|
+
triggerClass?: ClassValue;
|
|
139
|
+
searchInputClass?: ClassValue;
|
|
140
|
+
clearable?: boolean;
|
|
141
|
+
icon?: Component;
|
|
142
|
+
iconClass?: ClassValue;
|
|
143
|
+
onselect?: ({ value }: {
|
|
144
|
+
value: string | string[];
|
|
145
|
+
}) => void;
|
|
146
|
+
onopen?: () => void;
|
|
147
|
+
onclose?: () => void;
|
|
148
|
+
};
|
|
149
|
+
export type CardProps = {
|
|
150
|
+
color?: VariantColors;
|
|
151
|
+
title?: string;
|
|
152
|
+
class?: ClassValue;
|
|
153
|
+
titleclass?: ClassValue;
|
|
154
|
+
bodyclass?: ClassValue;
|
|
155
|
+
children?: Snippet;
|
|
156
|
+
custom?: Snippet;
|
|
157
|
+
};
|
|
158
|
+
export type AlertProps = {
|
|
159
|
+
title?: string;
|
|
160
|
+
message: string;
|
|
161
|
+
color?: VariantColors;
|
|
162
|
+
class?: string;
|
|
163
|
+
onclose?: () => void;
|
|
164
|
+
footer?: Snippet;
|
|
165
|
+
icon?: Component;
|
|
166
|
+
};
|
|
167
|
+
export type StatsCardProps = {
|
|
168
|
+
label?: string;
|
|
169
|
+
value?: string | number;
|
|
170
|
+
previousValue?: string | number;
|
|
171
|
+
previousValuePrefix?: string;
|
|
172
|
+
trend?: number;
|
|
173
|
+
color?: VariantColors;
|
|
174
|
+
chartData?: number[];
|
|
175
|
+
children?: Snippet;
|
|
176
|
+
class?: ClassValue;
|
|
177
|
+
formatLargeNumbers?: boolean;
|
|
178
|
+
};
|
|
179
|
+
export type MetricDetail = {
|
|
180
|
+
label: string;
|
|
181
|
+
value: string | number;
|
|
182
|
+
color?: VariantColors;
|
|
183
|
+
};
|
|
184
|
+
export type MetricCardProps = {
|
|
185
|
+
title: string;
|
|
186
|
+
value: string | number;
|
|
187
|
+
details?: MetricDetail[];
|
|
188
|
+
percent?: number;
|
|
189
|
+
segments?: ProgressSegment[];
|
|
190
|
+
class?: ClassValue;
|
|
191
|
+
};
|
|
192
|
+
export type DataRow = Record<string, any>;
|
|
193
|
+
export type KeyType = keyof DataRow;
|
|
194
|
+
export type StatusType = 'active' | 'inactive' | 'pending' | 'error' | 'default';
|
|
195
|
+
export type TableColumn<T extends DataRow = any> = {
|
|
196
|
+
key: KeyType;
|
|
197
|
+
header: string;
|
|
198
|
+
cell?: Snippet<[row: T, key: KeyType, index?: number]>;
|
|
199
|
+
sortable?: boolean;
|
|
200
|
+
sortKey?: string;
|
|
201
|
+
align?: 'left' | 'center' | 'right';
|
|
202
|
+
width?: string;
|
|
203
|
+
class?: ClassValue;
|
|
204
|
+
};
|
|
205
|
+
export type SortDirection = 'asc' | 'desc' | null;
|
|
206
|
+
export type SortState = {
|
|
207
|
+
column: string | null;
|
|
208
|
+
direction: SortDirection;
|
|
209
|
+
};
|
|
210
|
+
export type TableProps<T extends DataRow = any> = {
|
|
211
|
+
data: T[];
|
|
212
|
+
columns: TableColumn<T>[];
|
|
213
|
+
bordered?: boolean;
|
|
214
|
+
striped?: boolean;
|
|
215
|
+
pageSize?: number;
|
|
216
|
+
currentPage?: number;
|
|
217
|
+
totalItems?: number;
|
|
218
|
+
selectable?: boolean;
|
|
219
|
+
selected?: T[];
|
|
220
|
+
class?: ClassValue;
|
|
221
|
+
wrapperclass?: ClassValue;
|
|
222
|
+
tableclass?: ClassValue;
|
|
223
|
+
theadclass?: ClassValue;
|
|
224
|
+
tbodyclass?: ClassValue;
|
|
225
|
+
trclass?: ClassValue;
|
|
226
|
+
thclass?: ClassValue;
|
|
227
|
+
tdclass?: ClassValue;
|
|
228
|
+
footerclass?: ClassValue;
|
|
229
|
+
paginationclass?: ClassValue;
|
|
230
|
+
onrowclick?: (row: T, index: number) => void;
|
|
231
|
+
onsort?: (sortState: SortState) => void;
|
|
232
|
+
onselect?: (selected: T[]) => void;
|
|
233
|
+
onpagechange?: (page: number) => void;
|
|
234
|
+
rowclass?: (row: T, index: number) => ClassValue;
|
|
235
|
+
loading?: boolean;
|
|
236
|
+
expandedContent?: Snippet<[T]>;
|
|
237
|
+
pagination?: boolean;
|
|
238
|
+
showPagination?: boolean;
|
|
239
|
+
showPageSize?: boolean;
|
|
240
|
+
pageSizeOptions?: number[];
|
|
241
|
+
onpagesizechange?: (pageSize: number) => void;
|
|
242
|
+
paginationPosition?: 'top' | 'bottom' | 'both';
|
|
243
|
+
paginationTemplate?: 'simple' | 'full';
|
|
244
|
+
};
|
|
245
|
+
export type BreadcrumbItem = {
|
|
246
|
+
label: string;
|
|
247
|
+
href: string;
|
|
248
|
+
current?: boolean;
|
|
249
|
+
};
|
|
250
|
+
export type BreadcrumbsProps = {
|
|
251
|
+
items: BreadcrumbItem[];
|
|
252
|
+
size?: 'xs' | 'sm' | 'base' | 'lg';
|
|
253
|
+
weight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
254
|
+
color?: VariantColors;
|
|
255
|
+
icon?: Component;
|
|
256
|
+
class?: string;
|
|
257
|
+
listclass?: string;
|
|
258
|
+
itemclass?: string;
|
|
259
|
+
separatorclass?: string;
|
|
260
|
+
wrapperclass?: string;
|
|
261
|
+
};
|
|
262
|
+
export type PageHeaderProps = {
|
|
263
|
+
title: string;
|
|
264
|
+
subtitle?: string;
|
|
265
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
266
|
+
children?: Snippet;
|
|
267
|
+
class?: ClassValue;
|
|
268
|
+
titleclass?: ClassValue;
|
|
269
|
+
layout?: 'vertical' | 'horizontal';
|
|
270
|
+
};
|
|
271
|
+
export type TabItem = {
|
|
272
|
+
value: string;
|
|
273
|
+
label: string;
|
|
274
|
+
icon?: Component;
|
|
275
|
+
disabled?: boolean;
|
|
276
|
+
};
|
|
277
|
+
export type TabsProps = {
|
|
278
|
+
tabs: TabItem[];
|
|
279
|
+
selected?: string;
|
|
280
|
+
color?: VariantColors;
|
|
281
|
+
size?: VariantSizes;
|
|
282
|
+
class?: ClassValue;
|
|
283
|
+
listClass?: ClassValue;
|
|
284
|
+
panelClass?: ClassValue;
|
|
285
|
+
onchange?: (value: string) => void;
|
|
286
|
+
children?: Snippet<[string]>;
|
|
287
|
+
};
|
|
288
|
+
export type NavbarLinkItem = {
|
|
289
|
+
label: string;
|
|
290
|
+
href: string;
|
|
291
|
+
icon?: Component;
|
|
292
|
+
active?: boolean;
|
|
293
|
+
children?: NavbarLinkItem[];
|
|
294
|
+
};
|
|
295
|
+
export type NavbarProps = {
|
|
296
|
+
logo?: string | Component;
|
|
297
|
+
links?: NavbarLinkItem[];
|
|
298
|
+
class?: ClassValue;
|
|
299
|
+
brand?: Snippet;
|
|
300
|
+
children?: Snippet;
|
|
301
|
+
actions?: Snippet;
|
|
302
|
+
};
|
|
303
|
+
export type MenuBar = {
|
|
304
|
+
collapsed: boolean;
|
|
305
|
+
};
|
|
306
|
+
export interface BaseNavigationItem {
|
|
307
|
+
label: string;
|
|
308
|
+
}
|
|
309
|
+
export interface WithIcon {
|
|
310
|
+
Icon?: Component;
|
|
311
|
+
}
|
|
312
|
+
export interface Activatable {
|
|
313
|
+
active?: boolean;
|
|
314
|
+
}
|
|
315
|
+
export interface LinkItem extends BaseNavigationItem, WithIcon, Activatable {
|
|
316
|
+
href: string;
|
|
317
|
+
meta?: string;
|
|
318
|
+
}
|
|
319
|
+
export interface ParentItem extends BaseNavigationItem, Activatable {
|
|
320
|
+
children: LinkItem[];
|
|
321
|
+
}
|
|
322
|
+
export interface DividerItem {
|
|
323
|
+
type: 'horizontal-divider';
|
|
324
|
+
}
|
|
325
|
+
export type NavigationItem = LinkItem | ParentItem | DividerItem;
|
|
326
|
+
export type LogoType = {
|
|
327
|
+
src?: string;
|
|
328
|
+
title: string;
|
|
329
|
+
};
|
|
330
|
+
export interface NavGroupProps {
|
|
331
|
+
labelArea: Snippet<[string, string]>;
|
|
332
|
+
active?: boolean;
|
|
333
|
+
children?: Snippet;
|
|
334
|
+
class?: ClassValue;
|
|
335
|
+
}
|
|
336
|
+
export interface NavItemProps {
|
|
337
|
+
href: string;
|
|
338
|
+
active?: boolean;
|
|
339
|
+
children: Snippet<[ClassValue]>;
|
|
340
|
+
class?: ClassValue;
|
|
341
|
+
}
|
|
342
|
+
export interface SidebarProps {
|
|
343
|
+
items?: NavigationItem[];
|
|
344
|
+
logo: LogoType;
|
|
345
|
+
}
|
|
346
|
+
export { tv, cn } from './helper/cls.js';
|
|
347
|
+
export { isRouteActive } from './helper/nav.svelte.js';
|
|
348
|
+
export { default as Button } from './button/Button.svelte';
|
|
349
|
+
export { default as Modal } from './modal/Modal.svelte';
|
|
350
|
+
export { default as Drawer } from './drawer/Drawer.svelte';
|
|
351
|
+
export { default as PageHeader } from './header/PageHeader.svelte';
|
|
352
|
+
export { default as Breadcrumbs } from './header/Breadcrumbs.svelte';
|
|
353
|
+
export { default as Badge } from './elements/badge/Badge.svelte';
|
|
354
|
+
export { default as Dropdown } from './elements/dropdown/Dropdown.svelte';
|
|
355
|
+
export { default as Select } from './elements/dropdown/Select.svelte';
|
|
356
|
+
export { default as Card } from './layout/card/Card.svelte';
|
|
357
|
+
export { default as StatsCard } from './layout/card/StatsCard.svelte';
|
|
358
|
+
export { default as MetricCard } from './layout/card/MetricCard.svelte';
|
|
359
|
+
export { default as Alert } from './elements/alert/Alert.svelte';
|
|
360
|
+
export type TabProps = {
|
|
361
|
+
value: string;
|
|
362
|
+
label: string;
|
|
363
|
+
icon?: Component;
|
|
364
|
+
selected?: boolean;
|
|
365
|
+
disabled?: boolean;
|
|
366
|
+
color?: VariantColors;
|
|
367
|
+
size?: VariantSizes;
|
|
368
|
+
variant?: 'line' | 'pill';
|
|
369
|
+
onclick?: (event: Event) => void;
|
|
370
|
+
};
|
|
371
|
+
export type TabsGroupProps = {
|
|
372
|
+
tabs: TabItem[];
|
|
373
|
+
selected?: string;
|
|
374
|
+
color?: VariantColors;
|
|
375
|
+
size?: VariantSizes;
|
|
376
|
+
variant?: 'line' | 'pill';
|
|
377
|
+
class?: ClassValue;
|
|
378
|
+
listClass?: ClassValue;
|
|
379
|
+
triggerClass?: ClassValue;
|
|
380
|
+
panelClass?: ClassValue;
|
|
381
|
+
children?: Snippet<[active: string]>;
|
|
382
|
+
onchange?: (value: string) => void;
|
|
383
|
+
};
|
|
384
|
+
export type TabContentProps = {
|
|
385
|
+
value: string;
|
|
386
|
+
persisted?: boolean;
|
|
387
|
+
panelClass?: ClassValue;
|
|
388
|
+
children?: Snippet<[value: string]>;
|
|
389
|
+
};
|
|
390
|
+
export { default as Tab } from './layout/tabs/Tab.svelte';
|
|
391
|
+
export { default as TabContent } from './layout/tabs/TabContent.svelte';
|
|
392
|
+
export { default as TabGroup } from './layout/tabs/TabGroup.svelte';
|
|
393
|
+
export { default as Table } from './layout/table/Table.svelte';
|
|
394
|
+
export { default as Cells } from './layout/table/Cells.svelte';
|
|
395
|
+
export { default as Navbar } from './layout/navbar/Navbar.svelte';
|
|
396
|
+
export { default as Sidebar } from './layout/sidebar/Sidebar.svelte';
|
|
397
|
+
export { default as NavItem } from './layout/sidebar/NavItem.svelte';
|
|
398
|
+
export { default as NavGroup } from './layout/sidebar/NavGroup.svelte';
|
|
399
|
+
export { dropdownMenu } from './elements/dropdown/dropdown.js';
|
|
400
|
+
export { badge } from './elements/badge/badge.js';
|
|
401
|
+
export { buttonVariants } from './button/button.js';
|
|
402
|
+
export { modal } from './modal/modal.js';
|
|
403
|
+
export { drawer } from './drawer/drawer.js';
|
|
404
|
+
export { selectTV } from './elements/dropdown/select.js';
|
|
405
|
+
export { breadcrumbs } from './header/breadcrumbs.js';
|
|
406
|
+
export { metricCard } from './layout/card/metric-card.js';
|
|
407
|
+
export type ChartColorKey = keyof typeof ChartColor;
|
|
408
|
+
export type ChartColorValue = (typeof ChartColor)[ChartColorKey];
|
|
409
|
+
export type ChartColors = {
|
|
410
|
+
[K in ChartColorValue]: string;
|
|
411
|
+
};
|
|
412
|
+
export type ChartType = 'line' | 'bar' | 'horizontal-bar' | 'pie' | 'stacked-bar';
|
|
413
|
+
export type ChartColorString = `#${string}` | keyof ChartColors;
|
|
414
|
+
export type XAxisConfig<T> = {
|
|
415
|
+
dataKey: keyof T;
|
|
416
|
+
label?: string;
|
|
417
|
+
format?: (value: any) => string;
|
|
418
|
+
tick?: {
|
|
419
|
+
fontSize?: number;
|
|
420
|
+
rotate?: number;
|
|
421
|
+
interval?: number | 'auto' | Function;
|
|
422
|
+
};
|
|
423
|
+
axisLine?: {
|
|
424
|
+
show?: boolean;
|
|
425
|
+
lineStyle?: {
|
|
426
|
+
color?: string;
|
|
427
|
+
width?: number;
|
|
428
|
+
type?: 'solid' | 'dashed' | 'dotted';
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
export type YAxisConfig<T> = {
|
|
433
|
+
dataKey: keyof T;
|
|
434
|
+
label?: string;
|
|
435
|
+
format?: (value: any) => string;
|
|
436
|
+
unit?: string;
|
|
437
|
+
position?: 'left' | 'right';
|
|
438
|
+
min?: number;
|
|
439
|
+
max?: number;
|
|
440
|
+
axisLine?: {
|
|
441
|
+
show?: boolean;
|
|
442
|
+
lineStyle?: {
|
|
443
|
+
color?: string;
|
|
444
|
+
width?: number;
|
|
445
|
+
type?: 'solid' | 'dashed' | 'dotted';
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
export interface SeriesConfig<T> {
|
|
450
|
+
dataKey: keyof T;
|
|
451
|
+
name?: string;
|
|
452
|
+
type?: ChartType;
|
|
453
|
+
color?: ChartColorString;
|
|
454
|
+
yAxisIndex?: number;
|
|
455
|
+
stack?: string;
|
|
456
|
+
barWidth?: string;
|
|
457
|
+
showArea?: boolean;
|
|
458
|
+
showSymbol?: boolean;
|
|
459
|
+
showLabel?: boolean;
|
|
460
|
+
smooth?: boolean;
|
|
461
|
+
areaOpacity?: number;
|
|
462
|
+
lineWidth?: number;
|
|
463
|
+
opacity?: number;
|
|
464
|
+
lineStyle?: {
|
|
465
|
+
type?: 'solid' | 'dashed' | 'dotted';
|
|
466
|
+
width?: number;
|
|
467
|
+
color?: string;
|
|
468
|
+
};
|
|
469
|
+
emphasis?: {
|
|
470
|
+
focus?: 'series' | 'self' | 'none';
|
|
471
|
+
};
|
|
472
|
+
radius?: [string, string];
|
|
473
|
+
centerText?: string;
|
|
474
|
+
}
|
|
475
|
+
export interface GridConfig {
|
|
476
|
+
horizontal?: boolean;
|
|
477
|
+
vertical?: boolean;
|
|
478
|
+
containLabel?: boolean;
|
|
479
|
+
top?: number | string;
|
|
480
|
+
right?: number | string;
|
|
481
|
+
bottom?: number | string;
|
|
482
|
+
left?: number | string;
|
|
483
|
+
}
|
|
484
|
+
export interface LegendConfig {
|
|
485
|
+
show?: boolean;
|
|
486
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
487
|
+
orient?: 'horizontal' | 'vertical';
|
|
488
|
+
}
|
|
489
|
+
export interface TooltipConfig {
|
|
490
|
+
show?: boolean;
|
|
491
|
+
trigger?: 'item' | 'axis' | 'none';
|
|
492
|
+
formatter?: string | ((params: any) => string);
|
|
493
|
+
}
|
|
494
|
+
export interface ToolboxConfig {
|
|
495
|
+
show?: boolean;
|
|
496
|
+
features?: {
|
|
497
|
+
saveAsImage?: boolean;
|
|
498
|
+
dataView?: boolean;
|
|
499
|
+
dataZoom?: boolean;
|
|
500
|
+
magicType?: boolean;
|
|
501
|
+
restore?: boolean;
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
export type ChartConfig<T> = {
|
|
505
|
+
xAxis: XAxisConfig<T>;
|
|
506
|
+
yAxis: YAxisConfig<T>[];
|
|
507
|
+
series: SeriesConfig<T>[];
|
|
508
|
+
grid?: GridConfig;
|
|
509
|
+
legend?: LegendConfig;
|
|
510
|
+
tooltip?: TooltipConfig;
|
|
511
|
+
toolbox?: ToolboxConfig;
|
|
512
|
+
showAxisLines?: boolean;
|
|
513
|
+
};
|
|
514
|
+
export interface PointClickType<T> {
|
|
515
|
+
detail: {
|
|
516
|
+
seriesIndex: number;
|
|
517
|
+
dataIndex: number;
|
|
518
|
+
seriesName: string;
|
|
519
|
+
name: string;
|
|
520
|
+
value?: number | string | null;
|
|
521
|
+
originalData: T;
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
export interface ChartRenderType<T> {
|
|
525
|
+
detail: {
|
|
526
|
+
chart: ECharts;
|
|
527
|
+
options: ChartConfig<T>;
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
export interface ChartProps<T> {
|
|
531
|
+
data: T[];
|
|
532
|
+
config: ChartConfig<T>;
|
|
533
|
+
colors?: Partial<ChartColors>;
|
|
534
|
+
height?: string;
|
|
535
|
+
width?: string;
|
|
536
|
+
class?: string;
|
|
537
|
+
onpointclick?: (event: PointClickType<T>) => void;
|
|
538
|
+
onchartrender?: (event: ChartRenderType<T>) => void;
|
|
539
|
+
}
|
|
540
|
+
export { default as Chart } from './charts/Chart.svelte';
|
|
541
|
+
export interface FileUploadProps {
|
|
542
|
+
/**
|
|
543
|
+
* Array of allowed file MIME types or extensions
|
|
544
|
+
* @example ['image/jpeg', 'image/png']
|
|
545
|
+
*/
|
|
546
|
+
allowedMimeTypes?: string[];
|
|
547
|
+
/**
|
|
548
|
+
* Maximum file size in bytes
|
|
549
|
+
*/
|
|
550
|
+
maxSize?: number;
|
|
551
|
+
/**
|
|
552
|
+
* Maximum number of files that can be uploaded; maxFiles<=0 is disabled, maxFiles=1 is singular, maxFiles>1 is multiple
|
|
553
|
+
* @default 10
|
|
554
|
+
*/
|
|
555
|
+
maxFiles?: number;
|
|
556
|
+
/**
|
|
557
|
+
* CSS class for the component container
|
|
558
|
+
*/
|
|
559
|
+
class?: string;
|
|
560
|
+
/**
|
|
561
|
+
* CSS class for the dropzone
|
|
562
|
+
*/
|
|
563
|
+
dropzoneClass?: string;
|
|
564
|
+
/**
|
|
565
|
+
* ID for the file input element
|
|
566
|
+
* @default 'file-upload'
|
|
567
|
+
*/
|
|
568
|
+
id?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Callback when files are selected or dropped
|
|
571
|
+
*/
|
|
572
|
+
onfiles?: (files: FileList | File[]) => void;
|
|
573
|
+
/**
|
|
574
|
+
* Content to display when no files are uploaded
|
|
575
|
+
*/
|
|
576
|
+
uploadContent?: Snippet;
|
|
577
|
+
}
|
|
578
|
+
export interface FilePreviewProps {
|
|
579
|
+
files: UploadedFile[];
|
|
580
|
+
ondelete?: (fileId: string, index: number) => void;
|
|
581
|
+
class?: string;
|
|
582
|
+
}
|
|
583
|
+
export interface UploadedFile {
|
|
584
|
+
FileID: string;
|
|
585
|
+
OriginalFilename: string;
|
|
586
|
+
Size: number;
|
|
587
|
+
ContentType: string;
|
|
588
|
+
MD5Hash: string;
|
|
589
|
+
UploadTimestamp: string;
|
|
590
|
+
Expiry?: string;
|
|
591
|
+
CustomMetadata?: Record<string, string>;
|
|
592
|
+
/**
|
|
593
|
+
* Current status of the file
|
|
594
|
+
*/
|
|
595
|
+
status: 'uploading' | 'success' | 'error';
|
|
596
|
+
/**
|
|
597
|
+
* Upload progress (0-100)
|
|
598
|
+
*/
|
|
599
|
+
progress?: number;
|
|
600
|
+
/**
|
|
601
|
+
* Error message if upload failed
|
|
602
|
+
*/
|
|
603
|
+
error?: string;
|
|
604
|
+
}
|
|
605
|
+
export { default as FileUpload } from './elements/file-upload/FileUpload.svelte';
|
|
606
|
+
export { default as FilesPreview } from './elements/file-upload/FilesPreview.svelte';
|
|
607
|
+
export { default as Toaster } from './sonner/sonner.svelte';
|
|
608
|
+
export interface FormProps<T extends Record<string, unknown>> {
|
|
609
|
+
form: SuperForm<any>;
|
|
610
|
+
class?: string;
|
|
611
|
+
method?: 'GET' | 'POST' | 'dialog' | 'get' | 'post' | 'DIALOG' | null | undefined;
|
|
612
|
+
action?: string;
|
|
613
|
+
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain' | null | undefined;
|
|
614
|
+
autocomplete?: 'on' | 'off';
|
|
615
|
+
novalidate?: boolean;
|
|
616
|
+
children?: Snippet;
|
|
617
|
+
}
|
|
618
|
+
export type BaseInputProps = {
|
|
619
|
+
name: string;
|
|
620
|
+
label?: string;
|
|
621
|
+
placeholder?: string;
|
|
622
|
+
required?: boolean;
|
|
623
|
+
disabled?: boolean;
|
|
624
|
+
class?: string;
|
|
625
|
+
size?: VariantSizes;
|
|
626
|
+
color?: VariantColors;
|
|
627
|
+
id?: string;
|
|
628
|
+
errors?: string[];
|
|
629
|
+
};
|
|
630
|
+
export type InputProps = {
|
|
631
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'date' | 'textarea';
|
|
632
|
+
value?: string | number;
|
|
633
|
+
} & BaseInputProps;
|
|
634
|
+
export type RadioOption = {
|
|
635
|
+
value: string;
|
|
636
|
+
label: string;
|
|
637
|
+
};
|
|
638
|
+
export type RadioInputsProps = {
|
|
639
|
+
name: string;
|
|
640
|
+
label?: string;
|
|
641
|
+
options: RadioOption[];
|
|
642
|
+
value?: string;
|
|
643
|
+
disabled?: boolean;
|
|
644
|
+
class?: string;
|
|
645
|
+
size?: VariantSizes;
|
|
646
|
+
color?: VariantColors;
|
|
647
|
+
errors?: string[];
|
|
648
|
+
required?: boolean;
|
|
649
|
+
};
|
|
650
|
+
export type CheckboxProps = {
|
|
651
|
+
name: string;
|
|
652
|
+
label?: string;
|
|
653
|
+
value?: boolean;
|
|
654
|
+
disabled?: boolean;
|
|
655
|
+
class?: string;
|
|
656
|
+
size?: VariantSizes;
|
|
657
|
+
color?: VariantColors;
|
|
658
|
+
errors?: string[];
|
|
659
|
+
required?: boolean;
|
|
660
|
+
};
|
|
661
|
+
export interface ToggleProps {
|
|
662
|
+
name: string;
|
|
663
|
+
label?: string;
|
|
664
|
+
disabled?: boolean;
|
|
665
|
+
class?: string;
|
|
666
|
+
value?: boolean;
|
|
667
|
+
size?: VariantSizes;
|
|
668
|
+
color?: VariantColors;
|
|
669
|
+
id?: string;
|
|
670
|
+
errors?: string[];
|
|
671
|
+
offColor?: string;
|
|
672
|
+
onColor?: string;
|
|
673
|
+
}
|
|
674
|
+
export type CurrencyOption = {
|
|
675
|
+
value: string;
|
|
676
|
+
icon?: any;
|
|
677
|
+
};
|
|
678
|
+
export type NumberInputProps = {
|
|
679
|
+
value?: number;
|
|
680
|
+
name?: string;
|
|
681
|
+
label?: string;
|
|
682
|
+
placeholder?: string;
|
|
683
|
+
size?: VariantSizes;
|
|
684
|
+
class?: string;
|
|
685
|
+
unit?: string;
|
|
686
|
+
units?: CurrencyOption[];
|
|
687
|
+
errors?: string[];
|
|
688
|
+
disabled?: boolean;
|
|
689
|
+
dropdownicon?: any;
|
|
690
|
+
onunitchange?: (prevUnit: string, newUnit: string) => void;
|
|
691
|
+
};
|
|
692
|
+
export interface DateRangeProps {
|
|
693
|
+
startDate?: Date;
|
|
694
|
+
endDate?: Date;
|
|
695
|
+
minDate?: Date;
|
|
696
|
+
maxDate?: Date;
|
|
697
|
+
disabled?: boolean;
|
|
698
|
+
class?: string;
|
|
699
|
+
placeholder?: string;
|
|
700
|
+
startLabel?: string;
|
|
701
|
+
endLabel?: string;
|
|
702
|
+
format?: string;
|
|
703
|
+
onselect?: ({ startDate, endDate }: {
|
|
704
|
+
startDate?: Date;
|
|
705
|
+
endDate?: Date;
|
|
706
|
+
}) => void;
|
|
707
|
+
id?: string;
|
|
708
|
+
name?: string;
|
|
709
|
+
}
|
|
710
|
+
export interface DateSelectEvent {
|
|
711
|
+
startDate: Date | null;
|
|
712
|
+
endDate: Date | null;
|
|
713
|
+
}
|
|
714
|
+
export type TagsProps = {
|
|
715
|
+
value?: string[];
|
|
716
|
+
name?: string;
|
|
717
|
+
label?: string;
|
|
718
|
+
errors?: string[];
|
|
719
|
+
placeholder?: string;
|
|
720
|
+
size?: VariantSizes;
|
|
721
|
+
class?: string;
|
|
722
|
+
suggestions?: string[];
|
|
723
|
+
onaddtag?: (tag: string) => void;
|
|
724
|
+
onremovetag?: (tag: string) => void;
|
|
725
|
+
};
|
|
726
|
+
export { default as Form } from './forms/Form.svelte';
|
|
727
|
+
export { default as Input } from './forms/Input.svelte';
|
|
728
|
+
export { default as RadioInputs } from './forms/RadioInputs.svelte';
|
|
729
|
+
export { default as Checkbox } from './forms/Checkbox.svelte';
|
|
730
|
+
export { default as Toggle } from './forms/Toggle.svelte';
|
|
731
|
+
export { default as Slider } from './forms/Slider.svelte';
|
|
732
|
+
export { default as NumberInput } from './forms/NumberInput.svelte';
|
|
733
|
+
export { default as DateRange } from './forms/DateRange.svelte';
|
|
734
|
+
export { default as Tags } from './forms/Tags.svelte';
|
|
735
|
+
export { default as RadioPill } from './forms/RadioPill.svelte';
|
|
736
|
+
export type SliderMode = 'single' | 'range' | 'enum';
|
|
737
|
+
export type NotationType = 'standard' | 'compact' | 'scientific' | 'engineering';
|
|
738
|
+
export type EnumOption = {
|
|
739
|
+
value: string | number;
|
|
740
|
+
label: string;
|
|
741
|
+
};
|
|
742
|
+
export interface SliderProps {
|
|
743
|
+
name: string;
|
|
744
|
+
label?: string;
|
|
745
|
+
mode?: SliderMode;
|
|
746
|
+
disabled?: boolean;
|
|
747
|
+
size?: VariantSizes;
|
|
748
|
+
errors?: string[];
|
|
749
|
+
class?: string;
|
|
750
|
+
min?: number;
|
|
751
|
+
max?: number;
|
|
752
|
+
step?: number;
|
|
753
|
+
value?: number | string;
|
|
754
|
+
valueStart?: number;
|
|
755
|
+
valueEnd?: number;
|
|
756
|
+
showValue?: boolean;
|
|
757
|
+
valuePrefix?: string;
|
|
758
|
+
valueSuffix?: string;
|
|
759
|
+
options?: EnumOption[];
|
|
760
|
+
formatOptions?: Intl.NumberFormatOptions & {
|
|
761
|
+
notation?: NotationType;
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
export type ProgressSegment = {
|
|
765
|
+
value: number;
|
|
766
|
+
color: VariantColors;
|
|
767
|
+
label?: string;
|
|
768
|
+
};
|
|
769
|
+
export type ProgressProps = {
|
|
770
|
+
value: number;
|
|
771
|
+
max?: number;
|
|
772
|
+
size?: VariantSizes;
|
|
773
|
+
color?: VariantColors;
|
|
774
|
+
showLabel?: boolean;
|
|
775
|
+
labelPosition?: 'top' | 'bottom' | 'right';
|
|
776
|
+
segments?: ProgressSegment[];
|
|
777
|
+
showLabels?: boolean;
|
|
778
|
+
showValues?: boolean;
|
|
779
|
+
class?: ClassValue;
|
|
780
|
+
labelClass?: string;
|
|
781
|
+
barClass?: string;
|
|
782
|
+
};
|
|
783
|
+
export { default as Progress } from './elements/progress/Progress.svelte';
|
|
784
|
+
export type AccordionProps = {
|
|
785
|
+
id?: string;
|
|
786
|
+
title?: string;
|
|
787
|
+
description?: string;
|
|
788
|
+
children?: Snippet;
|
|
789
|
+
summary?: Snippet;
|
|
790
|
+
open?: boolean;
|
|
791
|
+
color?: VariantColors;
|
|
792
|
+
class?: ClassValue;
|
|
793
|
+
titleclass?: ClassValue;
|
|
794
|
+
bodyclass?: ClassValue;
|
|
795
|
+
headerclass?: ClassValue;
|
|
796
|
+
icon?: Component;
|
|
797
|
+
iconPosition?: 'start' | 'end';
|
|
798
|
+
bordered?: boolean;
|
|
799
|
+
onexpand?: () => void;
|
|
800
|
+
oncollapse?: () => void;
|
|
801
|
+
};
|
|
802
|
+
export { default as Accordion } from './elements/accordion/Accordion.svelte';
|
|
803
|
+
export interface TimelineItem {
|
|
804
|
+
title: string;
|
|
805
|
+
time: Date | string;
|
|
806
|
+
link?: {
|
|
807
|
+
text: string;
|
|
808
|
+
url: string;
|
|
809
|
+
};
|
|
810
|
+
Icon?: Component;
|
|
811
|
+
details?: string;
|
|
812
|
+
}
|
|
813
|
+
export { default as Timeline } from './elements/timeline/Timeline.svelte';
|
|
814
|
+
export type RadioPillProps = {
|
|
815
|
+
name: string;
|
|
816
|
+
options: RadioOption[];
|
|
817
|
+
value?: string;
|
|
818
|
+
label?: string;
|
|
819
|
+
class?: string;
|
|
820
|
+
errors?: string[];
|
|
821
|
+
onchange?: (value: string) => void;
|
|
822
|
+
};
|
|
823
|
+
export type FilterTab = {
|
|
824
|
+
value: string;
|
|
825
|
+
label: string;
|
|
826
|
+
};
|
|
827
|
+
export type FilterGroup = {
|
|
828
|
+
key: string;
|
|
829
|
+
label: string;
|
|
830
|
+
tabs: FilterTab[];
|
|
831
|
+
selectedValue: string;
|
|
832
|
+
onChange: (value: string) => void;
|
|
833
|
+
minWidth?: string;
|
|
834
|
+
};
|
|
835
|
+
export type CompactFiltersProps = {
|
|
836
|
+
filterGroups: FilterGroup[];
|
|
837
|
+
isExpanded?: boolean;
|
|
838
|
+
title?: string;
|
|
839
|
+
class?: ClassValue;
|
|
840
|
+
summaryClass?: ClassValue;
|
|
841
|
+
expandedClass?: ClassValue;
|
|
842
|
+
FilterIcon?: Component;
|
|
843
|
+
};
|
|
844
|
+
export { CompactFilters } from './filters/index.js';
|
|
845
|
+
export * from './file-browser/index.js';
|
|
846
|
+
export * from './adapters/storage/index.js';
|
|
847
|
+
export interface FileBrowserProps {
|
|
848
|
+
adapter: any;
|
|
849
|
+
startPath?: string;
|
|
850
|
+
actions?: any[];
|
|
851
|
+
selectedFiles?: string[];
|
|
852
|
+
infoSection?: (props: {
|
|
853
|
+
selectedFiles: string[];
|
|
854
|
+
navToFileFolder: (fileKey: string) => void;
|
|
855
|
+
}) => any;
|
|
856
|
+
}
|