@contentstudio/ui 0.2.14 → 0.2.15
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/package.json +1 -1
- package/dist/index.d.ts +0 -2542
- package/dist/index.js +0 -40860
- package/dist/index.umd.cjs +0 -8112
- package/dist/style.css +0 -1
- package/dist/tailwind-151a5d8c.js +0 -2261
- package/dist/tailwind-e7334431.cjs +0 -66
- package/dist/tailwind.d.ts +0 -107
- package/dist/tailwind.js +0 -12
- package/dist/tailwind.umd.cjs +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,2542 +0,0 @@
|
|
|
1
|
-
import { default as ActionIcon } from './ActionIcon.vue';
|
|
2
|
-
import { default as Alert } from './Alert.vue';
|
|
3
|
-
import { App } from 'vue';
|
|
4
|
-
import { default as Avatar } from './Avatar.vue';
|
|
5
|
-
import { default as AvatarGroup } from './AvatarGroup.vue';
|
|
6
|
-
import { default as Badge } from './Badge.vue';
|
|
7
|
-
import { default as Breadcrumbs } from './Breadcrumbs.vue';
|
|
8
|
-
import { default as Button } from './Button.vue';
|
|
9
|
-
import { default as Card } from './Card.vue';
|
|
10
|
-
import { default as CardSection } from './CardSection.vue';
|
|
11
|
-
import { default as Checkbox } from './Checkbox.vue';
|
|
12
|
-
import { default as Chip } from './Chip.vue';
|
|
13
|
-
import { default as Collapsible } from './Collapsible.vue';
|
|
14
|
-
import { Component } from 'vue';
|
|
15
|
-
import { ComputedRef } from 'vue';
|
|
16
|
-
import { default as CustomToast } from './CustomToast.vue';
|
|
17
|
-
import { default as Dialog } from './Dialog.vue';
|
|
18
|
-
import { default as Drawer } from './Drawer.vue';
|
|
19
|
-
import { default as Dropdown } from './Dropdown.vue';
|
|
20
|
-
import { default as DropdownItem } from './DropdownItem.vue';
|
|
21
|
-
import { default as HoverCard } from './HoverCard.vue';
|
|
22
|
-
import { default as HoverCardTarget } from './HoverCardTarget.vue';
|
|
23
|
-
import { default as Icon } from './Icon.vue';
|
|
24
|
-
import { Id } from 'vue3-toastify';
|
|
25
|
-
import { default as Indicator } from './Indicator.vue';
|
|
26
|
-
import { InjectionKey } from 'vue';
|
|
27
|
-
import { default as ListItem } from './ListItem.vue';
|
|
28
|
-
import { default as Loader } from './Loader.vue';
|
|
29
|
-
import { default as Modal } from './Modal.vue';
|
|
30
|
-
import { default as Pagination } from './Pagination.vue';
|
|
31
|
-
import { default as Pill } from './Pill.vue';
|
|
32
|
-
import { Placement } from '@floating-ui/vue';
|
|
33
|
-
import { default as Popover } from './Popover.vue';
|
|
34
|
-
import { default as Progress } from './Progress.vue';
|
|
35
|
-
import { default as Radio } from './Radio.vue';
|
|
36
|
-
import { default as RangeSlider } from '../RangeSlider/RangeSlider.vue';
|
|
37
|
-
import { Ref } from 'vue';
|
|
38
|
-
import { default as SearchInput } from './SearchInput.vue';
|
|
39
|
-
import { default as SegmentedControl } from './SegmentedControl.vue';
|
|
40
|
-
import { default as Slider } from './Slider.vue';
|
|
41
|
-
import { default as SplitButton } from './SplitButton.vue';
|
|
42
|
-
import { default as Switch } from './Switch.vue';
|
|
43
|
-
import { default as Tabs } from './Tabs.vue';
|
|
44
|
-
import { default as TabsList } from './TabsList.vue';
|
|
45
|
-
import { default as TabsPanel } from './TabsPanel.vue';
|
|
46
|
-
import { default as TabsTab } from './TabsTab.vue';
|
|
47
|
-
import { default as Textarea } from './Textarea.vue';
|
|
48
|
-
import { default as TextInput } from './TextInput.vue';
|
|
49
|
-
import { default as ThemeProvider } from './ThemeProvider.vue';
|
|
50
|
-
import { default as ThemeToggle } from './ThemeToggle.vue';
|
|
51
|
-
import { default as Toast } from './Toast.vue';
|
|
52
|
-
import { toast } from 'vue3-toastify';
|
|
53
|
-
import { ToastContainerOptions } from 'vue3-toastify';
|
|
54
|
-
import { ToastContent } from 'vue3-toastify';
|
|
55
|
-
import { ToastOptions } from 'vue3-toastify';
|
|
56
|
-
import { ToastPosition } from 'vue3-toastify';
|
|
57
|
-
import { ToastTheme } from 'vue3-toastify';
|
|
58
|
-
import { ToastTransition } from 'vue3-toastify';
|
|
59
|
-
import { ToastType } from 'vue3-toastify';
|
|
60
|
-
import { UpdateOptions } from 'vue3-toastify';
|
|
61
|
-
|
|
62
|
-
export { ActionIcon }
|
|
63
|
-
|
|
64
|
-
export declare interface ActionIconEmits {
|
|
65
|
-
/** Click event */
|
|
66
|
-
click: [event: MouseEvent];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export declare interface ActionIconProps {
|
|
70
|
-
/** Determines whether Loader component should be displayed instead of the children */
|
|
71
|
-
loading?: boolean;
|
|
72
|
-
/** Props added to the Loader component (only visible when loading prop is set) */
|
|
73
|
-
loaderProps?: LoaderProps;
|
|
74
|
-
/** Controls width and height of the button */
|
|
75
|
-
size?: ActionIconSize;
|
|
76
|
-
/** Color variant of the button */
|
|
77
|
-
color?: ThemeColor;
|
|
78
|
-
/** Border radius value */
|
|
79
|
-
radius?: ComponentRadius;
|
|
80
|
-
/** Gradient data used when variant="gradient" */
|
|
81
|
-
gradient?: {
|
|
82
|
-
from: string;
|
|
83
|
-
to: string;
|
|
84
|
-
deg?: number;
|
|
85
|
-
};
|
|
86
|
-
/** Sets disabled and data-disabled attributes on the button element */
|
|
87
|
-
disabled?: boolean;
|
|
88
|
-
/** Icon name from Lucide icons library */
|
|
89
|
-
iconName?: string;
|
|
90
|
-
/** Style variant */
|
|
91
|
-
variant?: ActionIconVariant;
|
|
92
|
-
/** Additional CSS class names */
|
|
93
|
-
class?: string;
|
|
94
|
-
/** Click event handler */
|
|
95
|
-
onClick?: (event: MouseEvent) => void;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export declare type ActionIconSize = ComponentSize;
|
|
99
|
-
|
|
100
|
-
export declare type ActionIconVariant = ButtonVariant;
|
|
101
|
-
|
|
102
|
-
export { Alert }
|
|
103
|
-
|
|
104
|
-
export declare interface AlertProps {
|
|
105
|
-
/** Title of the alert */
|
|
106
|
-
title?: string;
|
|
107
|
-
/** Main content of the alert */
|
|
108
|
-
message?: string;
|
|
109
|
-
/** Icon to display */
|
|
110
|
-
icon?: string;
|
|
111
|
-
/** Alert variant */
|
|
112
|
-
variant?: VariantType;
|
|
113
|
-
/** Color of the alert */
|
|
114
|
-
color?: ColorVariant_2;
|
|
115
|
-
/** Size of the alert */
|
|
116
|
-
size?: ComponentSize;
|
|
117
|
-
/** Whether to show close button */
|
|
118
|
-
closable?: boolean;
|
|
119
|
-
/** Callback when alert is closed */
|
|
120
|
-
onClose?: () => void;
|
|
121
|
-
/** Whether the alert is disabled */
|
|
122
|
-
disabled?: boolean;
|
|
123
|
-
/** Whether the alert is in loading state */
|
|
124
|
-
loading?: boolean;
|
|
125
|
-
/** Whether the alert is in valid state */
|
|
126
|
-
valid?: boolean;
|
|
127
|
-
/** Whether the alert is in invalid state */
|
|
128
|
-
invalid?: boolean;
|
|
129
|
-
/** Custom classes */
|
|
130
|
-
class?: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Writes CSS variables to :root based on the palette returned by `generatePalette`.
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* Writes CSS variables to :root based on the palette returned by `generatePalette`.
|
|
138
|
-
*/
|
|
139
|
-
export declare function applyTheme(palette: Palette): void;
|
|
140
|
-
|
|
141
|
-
export { Avatar }
|
|
142
|
-
|
|
143
|
-
export { AvatarGroup }
|
|
144
|
-
|
|
145
|
-
export declare interface AvatarGroupProps {
|
|
146
|
-
/** Spacing between avatars (sm, md, lg) */
|
|
147
|
-
spacing?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
148
|
-
/** Gap between avatars in the group */
|
|
149
|
-
gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | string | number;
|
|
150
|
-
/** Outline width for avatars in the group */
|
|
151
|
-
outlineWidth?: 'none' | 'thin' | 'normal' | 'medium' | 'thick' | string | number;
|
|
152
|
-
/** Outline color for avatars in the group */
|
|
153
|
-
outlineColor?: ColorVariant_2 | string;
|
|
154
|
-
/** Outline offset for avatars in the group */
|
|
155
|
-
outlineOffset?: 'none' | 'inset' | 'small' | 'medium' | 'large' | string | number;
|
|
156
|
-
/** Custom CSS classes to apply to the avatar group */
|
|
157
|
-
customClasses?: string | string[];
|
|
158
|
-
/** Maximum number of avatars to show before displaying a count */
|
|
159
|
-
max?: number;
|
|
160
|
-
/** Enable hover effect on avatars in the group */
|
|
161
|
-
hover?: boolean;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export declare interface AvatarProps {
|
|
165
|
-
/** Width and height of the avatar */
|
|
166
|
-
size?: AvatarSize | string | number;
|
|
167
|
-
/** Border radius of the avatar */
|
|
168
|
-
radius?: Radius;
|
|
169
|
-
/** Color of the avatar */
|
|
170
|
-
color?: ColorVariant_2 | 'initials';
|
|
171
|
-
/** Gradient configuration when variant is gradient */
|
|
172
|
-
gradient?: {
|
|
173
|
-
from: ColorVariant_2;
|
|
174
|
-
to: ColorVariant_2;
|
|
175
|
-
deg?: number;
|
|
176
|
-
};
|
|
177
|
-
/** Image source URL */
|
|
178
|
-
src?: string | null;
|
|
179
|
-
/** Image alt text and placeholder title */
|
|
180
|
-
alt?: string;
|
|
181
|
-
/** Additional image attributes */
|
|
182
|
-
imageProps?: Record<string, any>;
|
|
183
|
-
/** Avatar placeholder content */
|
|
184
|
-
children?: any;
|
|
185
|
-
/** Determines whether text color should depend on background-color */
|
|
186
|
-
autoContrast?: boolean;
|
|
187
|
-
/** User name for generating initials when src is not available */
|
|
188
|
-
name?: string;
|
|
189
|
-
/** Colors used for autogenerated initials */
|
|
190
|
-
allowedInitialsColors?: ColorVariant_2[];
|
|
191
|
-
/** Component variant */
|
|
192
|
-
variant?: AvatarVariant;
|
|
193
|
-
/** HTML element or component to render as */
|
|
194
|
-
component?: string | object;
|
|
195
|
-
/** Enable hover effect (scale and shadow) */
|
|
196
|
-
hover?: boolean;
|
|
197
|
-
/** Custom CSS classes to apply to the avatar */
|
|
198
|
-
customClasses?: string | string[];
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export declare type AvatarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
202
|
-
|
|
203
|
-
export declare type AvatarVariant = VariantType | 'transparent';
|
|
204
|
-
|
|
205
|
-
export { Badge }
|
|
206
|
-
|
|
207
|
-
export declare interface BadgeGradient {
|
|
208
|
-
/** First gradient color */
|
|
209
|
-
from: string;
|
|
210
|
-
/** Second gradient color */
|
|
211
|
-
to: string;
|
|
212
|
-
/** Gradient direction in degrees */
|
|
213
|
-
deg?: number;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export declare interface BadgeProps {
|
|
217
|
-
/** Controls font-size, height and horizontal padding */
|
|
218
|
-
size?: ComponentSize;
|
|
219
|
-
/** If set, badge min-width becomes equal to its height and horizontal padding is removed */
|
|
220
|
-
circle?: boolean;
|
|
221
|
-
/** Controls border-radius */
|
|
222
|
-
radius?: ComponentRadius;
|
|
223
|
-
/** Badge color */
|
|
224
|
-
color?: ThemeColor | string;
|
|
225
|
-
/** Gradient configuration used when variant="gradient" */
|
|
226
|
-
gradient?: BadgeGradient;
|
|
227
|
-
/** Content displayed on the left side of the badge label */
|
|
228
|
-
leftSection?: string | Component;
|
|
229
|
-
/** Content displayed on the right side of the badge label */
|
|
230
|
-
rightSection?: string | Component;
|
|
231
|
-
/** Determines whether Badge should take 100% of its parent width */
|
|
232
|
-
fullWidth?: boolean;
|
|
233
|
-
/** Badge variant */
|
|
234
|
-
variant?: BadgeVariant;
|
|
235
|
-
/** Polymorphic component prop - allows changing the root element */
|
|
236
|
-
component?: string | Component;
|
|
237
|
-
/** Automatically adjust text color for better contrast with background */
|
|
238
|
-
autoContrast?: boolean;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export declare type BadgeVariant = 'filled' | 'light' | 'outline' | 'gradient' | 'transparent';
|
|
242
|
-
|
|
243
|
-
export declare interface BaseSliderProps {
|
|
244
|
-
/** Component ID */
|
|
245
|
-
id?: string;
|
|
246
|
-
/** Minimum value */
|
|
247
|
-
min?: number;
|
|
248
|
-
/** Maximum value */
|
|
249
|
-
max?: number;
|
|
250
|
-
/** Step increment */
|
|
251
|
-
step?: number;
|
|
252
|
-
/** Precision for decimal values */
|
|
253
|
-
precision?: number;
|
|
254
|
-
/** Label text */
|
|
255
|
-
label?: string;
|
|
256
|
-
/** Description text */
|
|
257
|
-
description?: string;
|
|
258
|
-
/** Error message */
|
|
259
|
-
error?: string;
|
|
260
|
-
/** Whether the component has an error */
|
|
261
|
-
hasError?: boolean;
|
|
262
|
-
/** Whether the component is disabled */
|
|
263
|
-
disabled?: boolean;
|
|
264
|
-
/** Whether the component is readonly */
|
|
265
|
-
readonly?: boolean;
|
|
266
|
-
/** Whether the component is required */
|
|
267
|
-
required?: boolean;
|
|
268
|
-
/** Whether to show an asterisk for required field */
|
|
269
|
-
withAsterisk?: boolean;
|
|
270
|
-
/** Whether to show both error and description */
|
|
271
|
-
showBothErrorAndDescription?: boolean;
|
|
272
|
-
/** Component size */
|
|
273
|
-
size?: ComponentSize;
|
|
274
|
-
/** Component variant */
|
|
275
|
-
variant?: 'default' | 'filled' | 'unstyled';
|
|
276
|
-
/** Border radius */
|
|
277
|
-
radius?: ComponentRadius;
|
|
278
|
-
/** Theme color */
|
|
279
|
-
color?: ThemeColor;
|
|
280
|
-
/** Custom class for the component */
|
|
281
|
-
class?: string;
|
|
282
|
-
/** Marks to display on the slider */
|
|
283
|
-
marks?: SliderMark[];
|
|
284
|
-
/** Whether to restrict selection to marks only */
|
|
285
|
-
restrictToMarks?: boolean;
|
|
286
|
-
/** Label formatter function */
|
|
287
|
-
labelFormatter?: (value: number) => string;
|
|
288
|
-
/** Whether labels should always be visible */
|
|
289
|
-
labelAlwaysOn?: boolean;
|
|
290
|
-
/** Whether the slider is inverted */
|
|
291
|
-
inverted?: boolean;
|
|
292
|
-
/** Whether the slider is vertical */
|
|
293
|
-
vertical?: boolean;
|
|
294
|
-
/** Height for vertical slider */
|
|
295
|
-
height?: string | number;
|
|
296
|
-
/** Width for horizontal slider */
|
|
297
|
-
width?: string | number;
|
|
298
|
-
/** Custom thumb size */
|
|
299
|
-
thumbSize?: number;
|
|
300
|
-
/** Custom track size */
|
|
301
|
-
trackSize?: number;
|
|
302
|
-
/** Whether to show value labels */
|
|
303
|
-
showLabels?: boolean;
|
|
304
|
-
/** Whether to animate transitions */
|
|
305
|
-
animate?: boolean;
|
|
306
|
-
/** Custom styles for different parts */
|
|
307
|
-
styles?: {
|
|
308
|
-
root?: string;
|
|
309
|
-
track?: string;
|
|
310
|
-
range?: string;
|
|
311
|
-
thumb?: string;
|
|
312
|
-
label?: string;
|
|
313
|
-
mark?: string;
|
|
314
|
-
markLabel?: string;
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export { Breadcrumbs }
|
|
319
|
-
|
|
320
|
-
export { Button }
|
|
321
|
-
|
|
322
|
-
export declare type ButtonColor = NonNullable<ButtonProps['color']>;
|
|
323
|
-
|
|
324
|
-
export declare interface ButtonLoaderProps {
|
|
325
|
-
color?: MantineColor;
|
|
326
|
-
size?: MantineSize | number;
|
|
327
|
-
variant?: 'oval' | 'dots' | 'bars';
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export declare interface ButtonProps {
|
|
331
|
-
/** Button variant */
|
|
332
|
-
variant?: ButtonVariant;
|
|
333
|
-
/** Button color */
|
|
334
|
-
color?: ThemeColor;
|
|
335
|
-
/** Button size */
|
|
336
|
-
size?: ComponentSize;
|
|
337
|
-
/** Border radius */
|
|
338
|
-
radius?: ComponentRadius;
|
|
339
|
-
/** Disabled state */
|
|
340
|
-
disabled?: boolean;
|
|
341
|
-
/** Loading state */
|
|
342
|
-
loading?: boolean;
|
|
343
|
-
/** Full width button */
|
|
344
|
-
fullWidth?: boolean;
|
|
345
|
-
/** Custom class names */
|
|
346
|
-
class?: string;
|
|
347
|
-
/** Button type */
|
|
348
|
-
type?: 'button' | 'submit' | 'reset';
|
|
349
|
-
/** Left section content */
|
|
350
|
-
onClick?: (event: MouseEvent) => any;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export declare type ButtonRadius = NonNullable<ButtonProps['radius']>;
|
|
354
|
-
|
|
355
|
-
export declare type ButtonSize = NonNullable<ButtonProps['size']>;
|
|
356
|
-
|
|
357
|
-
declare type ButtonVariant = 'filled' | 'light' | 'outline' | 'subtle' | 'gradient' | 'white' | 'default';
|
|
358
|
-
|
|
359
|
-
export { Card }
|
|
360
|
-
|
|
361
|
-
export { CardSection }
|
|
362
|
-
|
|
363
|
-
export { Checkbox }
|
|
364
|
-
|
|
365
|
-
export declare interface CheckboxProps {
|
|
366
|
-
modelValue?: boolean | any[];
|
|
367
|
-
value?: string | number;
|
|
368
|
-
id?: string;
|
|
369
|
-
label?: string;
|
|
370
|
-
color?: ColorVariant_2;
|
|
371
|
-
size?: Size;
|
|
372
|
-
radius?: 'sm' | 'md' | 'lg' | 'full';
|
|
373
|
-
labelPosition?: 'left' | 'right';
|
|
374
|
-
description?: string;
|
|
375
|
-
error?: string;
|
|
376
|
-
disabled?: boolean;
|
|
377
|
-
indeterminate?: boolean;
|
|
378
|
-
iconColor?: ColorVariant_2;
|
|
379
|
-
autoContrast?: boolean;
|
|
380
|
-
variant?: CheckboxVariant;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export declare type CheckboxVariant = 'filled' | 'outlined';
|
|
384
|
-
|
|
385
|
-
export { Chip }
|
|
386
|
-
|
|
387
|
-
declare type ChipColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
388
|
-
|
|
389
|
-
export declare interface ChipProps {
|
|
390
|
-
/**
|
|
391
|
-
* Model value for v-model binding
|
|
392
|
-
*/
|
|
393
|
-
modelValue?: boolean;
|
|
394
|
-
/**
|
|
395
|
-
* The label text to display inside the chip
|
|
396
|
-
*/
|
|
397
|
-
label?: string;
|
|
398
|
-
/**
|
|
399
|
-
* The size of the chip
|
|
400
|
-
* @default 'md'
|
|
401
|
-
*/
|
|
402
|
-
size?: ChipSize;
|
|
403
|
-
/**
|
|
404
|
-
* The variant style of the chip
|
|
405
|
-
* @default 'filled'
|
|
406
|
-
*/
|
|
407
|
-
variant?: ChipVariant;
|
|
408
|
-
/**
|
|
409
|
-
* The color theme of the chip
|
|
410
|
-
* @default 'primary'
|
|
411
|
-
*/
|
|
412
|
-
color?: ChipColor;
|
|
413
|
-
/**
|
|
414
|
-
* Whether the chip is disabled
|
|
415
|
-
* @default false
|
|
416
|
-
*/
|
|
417
|
-
disabled?: boolean;
|
|
418
|
-
/**
|
|
419
|
-
* Whether to show the check icon
|
|
420
|
-
* @default true
|
|
421
|
-
*/
|
|
422
|
-
withCheckIcon?: boolean;
|
|
423
|
-
/**
|
|
424
|
-
* Whether the chip appears in a loading state
|
|
425
|
-
* @default false
|
|
426
|
-
*/
|
|
427
|
-
loading?: boolean;
|
|
428
|
-
/**
|
|
429
|
-
* Whether the chip can be unchecked after being checked
|
|
430
|
-
* @default true
|
|
431
|
-
*/
|
|
432
|
-
allowDeselect?: boolean;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
declare type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
436
|
-
|
|
437
|
-
declare type ChipVariant = 'filled' | 'outline' | 'light';
|
|
438
|
-
|
|
439
|
-
export { Collapsible }
|
|
440
|
-
|
|
441
|
-
export declare interface CollapsibleProps {
|
|
442
|
-
defaultOpen?: boolean;
|
|
443
|
-
disabled?: boolean;
|
|
444
|
-
class?: string;
|
|
445
|
-
hideArrow?: boolean;
|
|
446
|
-
buttonClass?: string;
|
|
447
|
-
selectedClass?: string;
|
|
448
|
-
modelValue?: boolean;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export declare type ColorName = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'green' | 'yellow' | 'orange' | 'red';
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* All available color variants (core + semantic + legacy)
|
|
455
|
-
*/
|
|
456
|
-
export declare type ColorVariant = 'primary' | 'secondary' | SemanticColorVariant | 'green' | 'yellow' | 'orange' | 'red';
|
|
457
|
-
|
|
458
|
-
declare type ColorVariant_2 = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
459
|
-
|
|
460
|
-
declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
461
|
-
|
|
462
|
-
declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
463
|
-
|
|
464
|
-
export declare const composables: {};
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Create a theme preset - a predefined theme configuration
|
|
468
|
-
*/
|
|
469
|
-
export declare function createThemePreset(name: string, theme: Partial<ThemeOptions>): ThemePreset;
|
|
470
|
-
|
|
471
|
-
export declare const cstuToast: {
|
|
472
|
-
show(content: string, options?: Partial<ToastOptions>): Id;
|
|
473
|
-
success(content: string, options?: Partial<ToastOptions>): Id;
|
|
474
|
-
info(content: string, options?: Partial<ToastOptions>): Id;
|
|
475
|
-
warning(content: string, options?: Partial<ToastOptions>): Id;
|
|
476
|
-
error(content: string, options?: Partial<ToastOptions>): Id;
|
|
477
|
-
loading(content: string, options?: Partial<ToastOptions>): Id;
|
|
478
|
-
dark(content: string, options?: Partial<ToastOptions>): Id;
|
|
479
|
-
showByType(content: string, type: string, options?: Partial<ToastOptions>): Id;
|
|
480
|
-
promise<T>(promise: Promise<T>, messages: {
|
|
481
|
-
pending?: string;
|
|
482
|
-
success?: string;
|
|
483
|
-
error?: string;
|
|
484
|
-
}, options?: Partial<ToastOptions>): Promise<T>;
|
|
485
|
-
update(toastId: Id, options: UpdateOptions): void;
|
|
486
|
-
remove(id?: Id): void;
|
|
487
|
-
clear(): void;
|
|
488
|
-
isActive(toastId: Id): boolean;
|
|
489
|
-
done(toastId: Id): void;
|
|
490
|
-
POSITION: {
|
|
491
|
-
TOP_LEFT: ToastPosition;
|
|
492
|
-
TOP_RIGHT: ToastPosition;
|
|
493
|
-
TOP_CENTER: ToastPosition;
|
|
494
|
-
BOTTOM_LEFT: ToastPosition;
|
|
495
|
-
BOTTOM_RIGHT: ToastPosition;
|
|
496
|
-
BOTTOM_CENTER: ToastPosition;
|
|
497
|
-
};
|
|
498
|
-
TYPE: {
|
|
499
|
-
INFO: ToastType;
|
|
500
|
-
SUCCESS: ToastType;
|
|
501
|
-
WARNING: ToastType;
|
|
502
|
-
ERROR: ToastType;
|
|
503
|
-
DEFAULT: ToastType;
|
|
504
|
-
};
|
|
505
|
-
TRANSITIONS: {
|
|
506
|
-
FLIP: ToastTransition;
|
|
507
|
-
SLIDE: ToastTransition;
|
|
508
|
-
ZOOM: ToastTransition;
|
|
509
|
-
BOUNCE: ToastTransition;
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
export { CustomToast }
|
|
514
|
-
|
|
515
|
-
export declare type CustomToastType = 'info' | 'warning' | 'success' | 'error' | 'loading' | 'dark' | 'default';
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* Default palette mapping from style.css CSS variables
|
|
519
|
-
* These are the RGB triplet values that correspond to the CSS variables in style.css
|
|
520
|
-
*/
|
|
521
|
-
export declare const defaultPalettes: Record<ColorName, Record<Shade, string>>;
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* Default theme configuration with semantic colors
|
|
525
|
-
*/
|
|
526
|
-
export declare interface DefaultTheme {
|
|
527
|
-
primary: string;
|
|
528
|
-
secondary: string;
|
|
529
|
-
success: string;
|
|
530
|
-
warning: string;
|
|
531
|
-
danger: string;
|
|
532
|
-
info: string;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Default theme configuration with semantic colors
|
|
537
|
-
*/
|
|
538
|
-
export declare const defaultTheme: DefaultTheme;
|
|
539
|
-
|
|
540
|
-
export { Dialog }
|
|
541
|
-
|
|
542
|
-
export declare interface DialogProps {
|
|
543
|
-
/** Dialog title */
|
|
544
|
-
title?: string;
|
|
545
|
-
/** Dialog content */
|
|
546
|
-
content?: string;
|
|
547
|
-
/** Whether the dialog is opened */
|
|
548
|
-
opened: boolean;
|
|
549
|
-
/** Dialog size */
|
|
550
|
-
size?: ComponentSize;
|
|
551
|
-
/** Whether to show close button */
|
|
552
|
-
withCloseButton?: boolean;
|
|
553
|
-
/** Called when close button is clicked */
|
|
554
|
-
onClose?: () => void;
|
|
555
|
-
/** Position of the dialog */
|
|
556
|
-
position?: {
|
|
557
|
-
top?: number | string;
|
|
558
|
-
right?: number | string;
|
|
559
|
-
bottom?: number | string;
|
|
560
|
-
left?: number | string;
|
|
561
|
-
};
|
|
562
|
-
/** Whether to keep the component mounted when hidden */
|
|
563
|
-
keepMounted?: boolean;
|
|
564
|
-
/** Color variant */
|
|
565
|
-
color?: ThemeColor;
|
|
566
|
-
/** z-index value */
|
|
567
|
-
zIndex?: number;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
export { Drawer }
|
|
571
|
-
|
|
572
|
-
declare type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
573
|
-
|
|
574
|
-
export declare interface DrawerProps {
|
|
575
|
-
/** Whether the drawer is opened */
|
|
576
|
-
opened: boolean;
|
|
577
|
-
/** Function called when drawer is closed */
|
|
578
|
-
onClose: () => void;
|
|
579
|
-
/** Drawer title */
|
|
580
|
-
title?: string;
|
|
581
|
-
/** Drawer position */
|
|
582
|
-
position?: DrawerPosition;
|
|
583
|
-
/** Drawer size (width for left/right, height for top/bottom) */
|
|
584
|
-
size?: ComponentSize | string | number;
|
|
585
|
-
/** Border radius */
|
|
586
|
-
radius?: ComponentRadius;
|
|
587
|
-
/** Drawer color */
|
|
588
|
-
color?: ThemeColor | string;
|
|
589
|
-
/** Drawer variant */
|
|
590
|
-
variant?: ButtonVariant;
|
|
591
|
-
/** Whether to show close button */
|
|
592
|
-
withCloseButton?: boolean;
|
|
593
|
-
/** Whether to close on escape key press */
|
|
594
|
-
closeOnEscape?: boolean;
|
|
595
|
-
/** Whether to close when clicking outside */
|
|
596
|
-
closeOnClickOutside?: boolean;
|
|
597
|
-
/** Whether to trap focus inside drawer */
|
|
598
|
-
trapFocus?: boolean;
|
|
599
|
-
/** Whether to return focus to the element that was focused before the drawer was opened */
|
|
600
|
-
returnFocus?: boolean;
|
|
601
|
-
/** Offset from the edge of the viewport */
|
|
602
|
-
offset?: number;
|
|
603
|
-
/** Overlay opacity */
|
|
604
|
-
overlayOpacity?: number;
|
|
605
|
-
/** Overlay blur */
|
|
606
|
-
overlayBlur?: number;
|
|
607
|
-
/** Whether to use ScrollArea component for content */
|
|
608
|
-
scrollAreaComponent?: any;
|
|
609
|
-
/** Props passed to the overlay */
|
|
610
|
-
overlayProps?: Record<string, any>;
|
|
611
|
-
/** Props passed to the close button */
|
|
612
|
-
closeButtonProps?: Record<string, any>;
|
|
613
|
-
/** Props passed to the transition */
|
|
614
|
-
transitionProps?: Record<string, any>;
|
|
615
|
-
/** Function called when exit transition ends */
|
|
616
|
-
onExitTransitionEnd?: () => void;
|
|
617
|
-
/** Function called when enter transition ends */
|
|
618
|
-
onEnterTransitionEnd?: () => void;
|
|
619
|
-
/** Custom class names */
|
|
620
|
-
class?: string;
|
|
621
|
-
/** Left section content */
|
|
622
|
-
leftSection?: any;
|
|
623
|
-
/** Left section props */
|
|
624
|
-
leftSectionProps?: SectionProps;
|
|
625
|
-
/** Right section content */
|
|
626
|
-
rightSection?: any;
|
|
627
|
-
/** Right section props */
|
|
628
|
-
rightSectionProps?: SectionProps;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
export { Dropdown }
|
|
632
|
-
|
|
633
|
-
export { DropdownItem }
|
|
634
|
-
|
|
635
|
-
export declare interface DropdownItemProps {
|
|
636
|
-
/** Size of the dropdown item */
|
|
637
|
-
size?: ComponentSize;
|
|
638
|
-
/** Whether the item is disabled */
|
|
639
|
-
disabled?: boolean;
|
|
640
|
-
/** Whether to close dropdown on click */
|
|
641
|
-
closeOnClick?: boolean;
|
|
642
|
-
/** Custom classes for the item */
|
|
643
|
-
class?: string;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
export declare interface DropdownProps {
|
|
647
|
-
/** Size of the dropdown */
|
|
648
|
-
size?: ComponentSize;
|
|
649
|
-
/** Border radius of the dropdown */
|
|
650
|
-
radius?: ComponentRadius;
|
|
651
|
-
/** Color theme of the dropdown */
|
|
652
|
-
color?: ThemeColor;
|
|
653
|
-
/** Whether the dropdown is open */
|
|
654
|
-
open?: boolean;
|
|
655
|
-
/** Whether the dropdown is disabled */
|
|
656
|
-
disabled?: boolean;
|
|
657
|
-
/** Text to show when dropdown is disabled */
|
|
658
|
-
disabledText?: string;
|
|
659
|
-
/** Custom classes for the dropdown button */
|
|
660
|
-
buttonClasses?: string;
|
|
661
|
-
/** Custom classes for the dropdown container */
|
|
662
|
-
dropdownClasses?: string;
|
|
663
|
-
/** Placement of the dropdown (top or bottom) */
|
|
664
|
-
placement?: 'top' | 'bottom';
|
|
665
|
-
/** Whether to show the dropdown arrow */
|
|
666
|
-
showArrow?: boolean;
|
|
667
|
-
/** Whether the parent should have relative positioning */
|
|
668
|
-
parentPositionRelative?: boolean;
|
|
669
|
-
/** Distance between the dropdown button and menu in pixels */
|
|
670
|
-
offsetDistance?: number;
|
|
671
|
-
/** Whether to unstyle the component */
|
|
672
|
-
unstyled?: boolean;
|
|
673
|
-
/** Whether to match the width of the button */
|
|
674
|
-
matchWidth?: boolean;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Export configuration as a string that can be written to tailwind.config.js
|
|
679
|
-
*/
|
|
680
|
-
export declare function exportTailwindConfig(theme: ThemeOptions, options?: TailwindConfigOptions): string;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Extend the default theme with custom colors
|
|
684
|
-
*/
|
|
685
|
-
export declare function extendTheme(customTheme: Partial<ThemeOptions>): ThemeOptions;
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* Generate CSS custom properties from theme
|
|
689
|
-
*/
|
|
690
|
-
export declare function generateCSSCustomProperties(theme: ThemeOptions): string;
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* Generate complete CSTU color configuration for client-side usage
|
|
694
|
-
* Returns static color config matching tailwind.config.js with cstu- prefix
|
|
695
|
-
* Usage: cstu-bg-primary-500, cstu-text-danger-600, etc.
|
|
696
|
-
*/
|
|
697
|
-
export declare function generateCstuColorConfig(): Record<string, Record<string, string>>;
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Generate dark mode palette from light mode palette
|
|
701
|
-
*/
|
|
702
|
-
export declare function generateDarkModePalette(lightPalette: Palette): Palette;
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* Generate complete Tailwind configuration object
|
|
706
|
-
*/
|
|
707
|
-
export declare function generateFullTailwindConfig(theme: ThemeOptions, options?: TailwindConfigOptions): TailwindConfigObject;
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* Generate theme integration code for consumer projects
|
|
711
|
-
*/
|
|
712
|
-
export declare function generateIntegrationCode(theme: ThemeOptions): string;
|
|
713
|
-
|
|
714
|
-
export declare function generatePalette(options: ThemeOptions): Palette;
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* Generate Tailwind plugins for custom utilities
|
|
718
|
-
*/
|
|
719
|
-
export declare function generatePlugins(palette: Palette): string[];
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* Generate Tailwind safelist patterns for dynamic classes
|
|
723
|
-
*/
|
|
724
|
-
export declare function generateSafelist(palette: Palette): string[];
|
|
725
|
-
|
|
726
|
-
export declare function generateShades(seed: string): Record<Shade, string>;
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* Generate Tailwind color configuration from palette using direct RGB values
|
|
730
|
-
*/
|
|
731
|
-
export declare function generateTailwindColors(palette: Palette): Record<string, Record<string, string>>;
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* Generate Tailwind CSS configuration from a theme
|
|
735
|
-
*/
|
|
736
|
-
export declare function generateTailwindConfig(theme: ThemeOptions): TailwindThemeConfig;
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Get current theme mode without reactivity
|
|
740
|
-
* Useful for server-side rendering or static contexts
|
|
741
|
-
*/
|
|
742
|
-
export declare function getCurrentThemeMode(): 'light' | 'dark';
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* Get optimal text color for dark mode backgrounds
|
|
746
|
-
*/
|
|
747
|
-
export declare function getDarkModeTextColor(backgroundColor: string): string;
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* Extracts initials from a name string
|
|
751
|
-
*/
|
|
752
|
-
export declare function getInitials(name: string): string;
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Generates a color from a string (name) using a simple hash function
|
|
756
|
-
*/
|
|
757
|
-
export declare function getInitialsColor(name: string, allowedColors?: ColorVariant_2[]): ColorVariant_2;
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* Get a theme preset by name
|
|
761
|
-
*/
|
|
762
|
-
export declare function getThemePreset(name: string): ThemePreset | null;
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* Get all available theme presets
|
|
766
|
-
*/
|
|
767
|
-
export declare function getThemePresets(): ThemePreset[];
|
|
768
|
-
|
|
769
|
-
export { HoverCard }
|
|
770
|
-
|
|
771
|
-
export declare interface HoverCardContext {
|
|
772
|
-
isOpen: Ref<boolean>;
|
|
773
|
-
open: () => void;
|
|
774
|
-
close: () => void;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
export declare interface HoverCardDropdownProps {
|
|
778
|
-
/** Additional classes for the dropdown */
|
|
779
|
-
class?: string;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export declare const hoverCardInjectionKey: InjectionKey<HoverCardContext>;
|
|
783
|
-
|
|
784
|
-
export declare interface HoverCardProps {
|
|
785
|
-
/** Initial opened state */
|
|
786
|
-
initiallyOpened?: boolean;
|
|
787
|
-
/** Open delay in ms */
|
|
788
|
-
openDelay?: number;
|
|
789
|
-
/** Close delay in ms */
|
|
790
|
-
closeDelay?: number;
|
|
791
|
-
/** Placement of the dropdown */
|
|
792
|
-
placement?: Placement;
|
|
793
|
-
/** Called when dropdown opens */
|
|
794
|
-
onOpen?: () => void;
|
|
795
|
-
/** Called when dropdown closes */
|
|
796
|
-
onClose?: () => void;
|
|
797
|
-
/** Offset from the target */
|
|
798
|
-
offset?: number;
|
|
799
|
-
/** Whether to disable the hover card */
|
|
800
|
-
disabled?: boolean;
|
|
801
|
-
/** Size of the hover card */
|
|
802
|
-
size?: ComponentSize;
|
|
803
|
-
/** Whether to show arrow */
|
|
804
|
-
withArrow?: boolean;
|
|
805
|
-
/** Arrow offset */
|
|
806
|
-
arrowOffset?: number;
|
|
807
|
-
/** Whether to trap focus inside dropdown */
|
|
808
|
-
trapFocus?: boolean;
|
|
809
|
-
/** z-index value */
|
|
810
|
-
zIndex?: number;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
export { HoverCardTarget }
|
|
814
|
-
|
|
815
|
-
export declare interface HoverCardTargetProps {
|
|
816
|
-
/** Whether to use the wrapper div */
|
|
817
|
-
withWrapper?: boolean;
|
|
818
|
-
/** Additional classes for the wrapper */
|
|
819
|
-
wrapperClass?: string;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
export { Icon }
|
|
823
|
-
|
|
824
|
-
export declare interface IconProps {
|
|
825
|
-
/** Name of the icon from lucide-vue-next library */
|
|
826
|
-
name: string;
|
|
827
|
-
/** Size of the icon in pixels */
|
|
828
|
-
size?: number;
|
|
829
|
-
/** Color of the icon */
|
|
830
|
-
color?: string;
|
|
831
|
-
/** Stroke width of the icon */
|
|
832
|
-
strokeWidth?: number;
|
|
833
|
-
/** Default class to apply to the icon */
|
|
834
|
-
defaultClass?: string;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
export { Id }
|
|
838
|
-
|
|
839
|
-
export { Indicator }
|
|
840
|
-
|
|
841
|
-
export declare interface IndicatorProps {
|
|
842
|
-
/** Position of the indicator relative to its container */
|
|
843
|
-
position?: Position;
|
|
844
|
-
/** Size of the indicator (predefined size or number in pixels) */
|
|
845
|
-
size?: ComponentSize | number;
|
|
846
|
-
/** Border radius of the indicator */
|
|
847
|
-
radius?: ComponentRadius | Radius;
|
|
848
|
-
/** Color variant of the indicator */
|
|
849
|
-
color?: ThemeColor;
|
|
850
|
-
/** Variant style of the indicator */
|
|
851
|
-
variant?: 'filled' | 'light' | 'outline' | 'default' | 'subtle';
|
|
852
|
-
/** Offset from the edge of the container */
|
|
853
|
-
offset?: number;
|
|
854
|
-
/** Whether the indicator should be inline */
|
|
855
|
-
inline?: boolean;
|
|
856
|
-
/** Content to be displayed inside the indicator */
|
|
857
|
-
label?: string | number;
|
|
858
|
-
/** Whether to show a border around the indicator */
|
|
859
|
-
withBorder?: boolean;
|
|
860
|
-
/** Whether the indicator is disabled */
|
|
861
|
-
disabled?: boolean;
|
|
862
|
-
/** Whether to show processing animation */
|
|
863
|
-
processing?: boolean;
|
|
864
|
-
/** Z-index of the indicator */
|
|
865
|
-
zIndex?: number;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Validates a hex color string
|
|
870
|
-
*/
|
|
871
|
-
export declare function isValidHexColor(hex: string): boolean;
|
|
872
|
-
|
|
873
|
-
export declare type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
|
|
874
|
-
|
|
875
|
-
export { ListItem }
|
|
876
|
-
|
|
877
|
-
export declare interface ListItemProps {
|
|
878
|
-
disabled?: boolean;
|
|
879
|
-
selected?: boolean;
|
|
880
|
-
class?: string;
|
|
881
|
-
selectedClass?: string;
|
|
882
|
-
noColorOnSelected?: boolean;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
export { Loader }
|
|
886
|
-
|
|
887
|
-
export declare interface LoaderProps {
|
|
888
|
-
/** Loader variant */
|
|
889
|
-
variant?: LoaderVariant;
|
|
890
|
-
/** Loader color */
|
|
891
|
-
color?: ThemeColor | string;
|
|
892
|
-
/** Loader size */
|
|
893
|
-
size?: ComponentSize;
|
|
894
|
-
/** Custom class names */
|
|
895
|
-
class?: string;
|
|
896
|
-
/** Whether the loader is visible */
|
|
897
|
-
loading?: boolean;
|
|
898
|
-
/** Border radius (for oval variant) */
|
|
899
|
-
radius?: string;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
export declare type LoaderVariant = 'oval' | 'dots' | 'bars';
|
|
903
|
-
|
|
904
|
-
export declare type MantineColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
905
|
-
|
|
906
|
-
export declare type MantineGradient = {
|
|
907
|
-
from: string;
|
|
908
|
-
to: string;
|
|
909
|
-
deg?: number;
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
export declare type MantineRadius = 'none' | 'sm' | 'md' | 'lg' | 'full' | number;
|
|
913
|
-
|
|
914
|
-
export declare type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* Deep merge two theme objects, with the second theme taking precedence
|
|
918
|
-
*/
|
|
919
|
-
export declare function mergeThemes(baseTheme: ThemeOptions, extendTheme: Partial<ThemeOptions>): ThemeOptions;
|
|
920
|
-
|
|
921
|
-
export { Modal }
|
|
922
|
-
|
|
923
|
-
export declare const ModalDirective: {
|
|
924
|
-
install: (app: any) => void;
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
declare interface ModalInstance {
|
|
928
|
-
show: (id: string) => void;
|
|
929
|
-
hide: (id: string) => void;
|
|
930
|
-
toggle: (id: string) => void;
|
|
931
|
-
msgBoxOk: (message: string | any, options?: ModalOptions) => Promise<boolean>;
|
|
932
|
-
msgBoxConfirm: (message: string | any, options?: ModalOptions) => Promise<boolean>;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
declare interface ModalOptions {
|
|
936
|
-
title?: string;
|
|
937
|
-
okTitle?: string;
|
|
938
|
-
okVariant?: string;
|
|
939
|
-
okColor?: string;
|
|
940
|
-
okDisabled?: boolean;
|
|
941
|
-
cancelTitle?: string;
|
|
942
|
-
cancelVariant?: string;
|
|
943
|
-
cancelColor?: string;
|
|
944
|
-
cancelDisabled?: boolean;
|
|
945
|
-
centered?: boolean;
|
|
946
|
-
size?: string;
|
|
947
|
-
noCloseOnBackdrop?: boolean;
|
|
948
|
-
noCloseOnEsc?: boolean;
|
|
949
|
-
zIndex?: number;
|
|
950
|
-
contentClass?: string;
|
|
951
|
-
fullscreen?: boolean;
|
|
952
|
-
scrollable?: boolean;
|
|
953
|
-
headerClass?: string;
|
|
954
|
-
titleClass?: string;
|
|
955
|
-
bodyClass?: string;
|
|
956
|
-
footerClass?: string;
|
|
957
|
-
dialogClass?: string;
|
|
958
|
-
modalClass?: string;
|
|
959
|
-
showHeaderDivider?: boolean;
|
|
960
|
-
showFooterDivider?: boolean;
|
|
961
|
-
showDividers?: boolean;
|
|
962
|
-
radius?: string;
|
|
963
|
-
busy?: boolean;
|
|
964
|
-
onConfirm?: () => Promise<unknown> | unknown;
|
|
965
|
-
onConfirmSuccess?: (result: unknown) => void;
|
|
966
|
-
onConfirmError?: (error: unknown) => void;
|
|
967
|
-
closeOnConfirmSuccess?: boolean;
|
|
968
|
-
closeOnConfirmError?: boolean;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
export declare interface ModalPlugin {
|
|
972
|
-
$cstuModal: ModalInstance;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
export declare const ModalPlugin: {
|
|
976
|
-
install: (app: App) => void;
|
|
977
|
-
};
|
|
978
|
-
|
|
979
|
-
export declare interface ModalProps {
|
|
980
|
-
/** Modal title */
|
|
981
|
-
title?: string;
|
|
982
|
-
/** Modal content */
|
|
983
|
-
content?: string;
|
|
984
|
-
/** Whether the modal is opened */
|
|
985
|
-
modelValue?: boolean;
|
|
986
|
-
/** Modal size */
|
|
987
|
-
size?: ComponentSize;
|
|
988
|
-
/** Border radius */
|
|
989
|
-
radius?: ComponentRadius;
|
|
990
|
-
/** Whether to show close button in header */
|
|
991
|
-
hideHeaderClose?: boolean;
|
|
992
|
-
/** Whether to show footer */
|
|
993
|
-
hideFooter?: boolean;
|
|
994
|
-
/** Whether to show header */
|
|
995
|
-
hideHeader?: boolean;
|
|
996
|
-
/** Whether to close on ESC key */
|
|
997
|
-
noCloseOnEsc?: boolean;
|
|
998
|
-
/** Whether to close on backdrop click */
|
|
999
|
-
noCloseOnBackdrop?: boolean;
|
|
1000
|
-
/** Whether to center modal vertically */
|
|
1001
|
-
centered?: boolean;
|
|
1002
|
-
/** Whether to make the modal scrollable */
|
|
1003
|
-
scrollable?: boolean;
|
|
1004
|
-
/** Whether to show modal in fullscreen */
|
|
1005
|
-
fullscreen?: boolean;
|
|
1006
|
-
/** Whether to keep the component mounted when hidden */
|
|
1007
|
-
static?: boolean;
|
|
1008
|
-
/** Whether the modal is busy (disables all buttons) */
|
|
1009
|
-
busy?: boolean;
|
|
1010
|
-
/** OK button text */
|
|
1011
|
-
okTitle?: string;
|
|
1012
|
-
/** Cancel button text */
|
|
1013
|
-
cancelTitle?: string;
|
|
1014
|
-
/** OK button variant */
|
|
1015
|
-
okVariant?: ButtonVariant;
|
|
1016
|
-
/** Cancel button variant */
|
|
1017
|
-
cancelVariant?: ButtonVariant;
|
|
1018
|
-
/** OK button color */
|
|
1019
|
-
okColor?: ThemeColor;
|
|
1020
|
-
/** Cancel button color */
|
|
1021
|
-
cancelColor?: ThemeColor;
|
|
1022
|
-
/** Whether to show only OK button */
|
|
1023
|
-
okOnly?: boolean;
|
|
1024
|
-
/** Whether to disable OK button */
|
|
1025
|
-
okDisabled?: boolean;
|
|
1026
|
-
/** Whether to disable Cancel button */
|
|
1027
|
-
cancelDisabled?: boolean;
|
|
1028
|
-
/** Whether to show backdrop */
|
|
1029
|
-
backdrop?: boolean | 'static';
|
|
1030
|
-
/** Modal z-index */
|
|
1031
|
-
zIndex?: number;
|
|
1032
|
-
/** Left section props */
|
|
1033
|
-
leftSectionProps?: SectionProps;
|
|
1034
|
-
/** Right section props */
|
|
1035
|
-
rightSectionProps?: SectionProps;
|
|
1036
|
-
/** Left section */
|
|
1037
|
-
leftSection?: any;
|
|
1038
|
-
/** Right section */
|
|
1039
|
-
rightSection?: any;
|
|
1040
|
-
/** Custom class names */
|
|
1041
|
-
class?: string;
|
|
1042
|
-
/** Whether to make the title visually hidden but accessible to screen readers */
|
|
1043
|
-
titleSrOnly?: boolean;
|
|
1044
|
-
/** Accessible label when no visible title is provided */
|
|
1045
|
-
ariaLabel?: string;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
/**
|
|
1049
|
-
* Auto-adjust colors for better dark mode compatibility
|
|
1050
|
-
*/
|
|
1051
|
-
export declare function optimizeForDarkMode(palette: Palette): Palette;
|
|
1052
|
-
|
|
1053
|
-
export { Pagination }
|
|
1054
|
-
|
|
1055
|
-
export declare interface PaginationProps {
|
|
1056
|
-
/** Total number of pages */
|
|
1057
|
-
total: number;
|
|
1058
|
-
/** Current active page */
|
|
1059
|
-
modelValue?: number;
|
|
1060
|
-
/** Number of siblings displayed on the left and right of the current page */
|
|
1061
|
-
siblings?: number;
|
|
1062
|
-
/** Number of elements visible at the beginning and end */
|
|
1063
|
-
boundaries?: number;
|
|
1064
|
-
/** Pagination variant */
|
|
1065
|
-
variant?: PaginationVariant;
|
|
1066
|
-
/** Pagination color */
|
|
1067
|
-
color?: ThemeColor | string;
|
|
1068
|
-
/** Pagination size */
|
|
1069
|
-
size?: ComponentSize;
|
|
1070
|
-
/** Whether to show the first/last controls */
|
|
1071
|
-
withEdges?: boolean;
|
|
1072
|
-
/** Whether to show the previous/next controls */
|
|
1073
|
-
withControls?: boolean;
|
|
1074
|
-
/** Whether to show the pages */
|
|
1075
|
-
withPages?: boolean;
|
|
1076
|
-
/** Whether the pagination is disabled */
|
|
1077
|
-
disabled?: boolean;
|
|
1078
|
-
/** Whether to automatically adjust text color based on background */
|
|
1079
|
-
autoContrast?: boolean;
|
|
1080
|
-
/** Custom class names */
|
|
1081
|
-
class?: string;
|
|
1082
|
-
/** Border radius */
|
|
1083
|
-
radius?: string;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
export declare type PaginationVariant = 'filled' | 'outline';
|
|
1087
|
-
|
|
1088
|
-
/**
|
|
1089
|
-
* A mapping of color -> shade -> hex string
|
|
1090
|
-
*/
|
|
1091
|
-
export declare type Palette = Record<ColorName, Record<Shade, string>>;
|
|
1092
|
-
|
|
1093
|
-
export { Pill }
|
|
1094
|
-
|
|
1095
|
-
export declare interface PillEmits {
|
|
1096
|
-
(e: 'remove'): void;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
export declare interface PillProps {
|
|
1100
|
-
/** Controls pill font-size and padding */
|
|
1101
|
-
size?: Size;
|
|
1102
|
-
/** Key of theme.radius or any valid CSS value to set border-radius */
|
|
1103
|
-
radius?: Radius;
|
|
1104
|
-
/** Determines whether the remove button should be displayed */
|
|
1105
|
-
withRemoveButton?: boolean;
|
|
1106
|
-
/** If pill is disabled it has higher contrast and remove button is hidden */
|
|
1107
|
-
disabled?: boolean;
|
|
1108
|
-
/** Color variant of the pill */
|
|
1109
|
-
color: ColorVariant_2;
|
|
1110
|
-
/** Style variant of the pill */
|
|
1111
|
-
variant?: PillVariant;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
export declare type PillVariant = Extract<VariantType, 'default' | 'contrast'>;
|
|
1115
|
-
|
|
1116
|
-
export { Popover }
|
|
1117
|
-
|
|
1118
|
-
export declare type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end' | 'left-start' | 'right-start';
|
|
1119
|
-
|
|
1120
|
-
export declare interface PopoverProps {
|
|
1121
|
-
/** Whether the popover is open */
|
|
1122
|
-
open?: boolean;
|
|
1123
|
-
/** The default open state when in uncontrolled mode */
|
|
1124
|
-
defaultOpen?: boolean;
|
|
1125
|
-
/** The placement of the popover */
|
|
1126
|
-
placement?: PopoverPlacement;
|
|
1127
|
-
/** The variant of the popover */
|
|
1128
|
-
variant?: PopoverVariant;
|
|
1129
|
-
/** The color of the popover (for color variant) */
|
|
1130
|
-
color?: ThemeColor | string;
|
|
1131
|
-
/** The size of the popover */
|
|
1132
|
-
size?: ComponentSize;
|
|
1133
|
-
/** The border radius of the popover */
|
|
1134
|
-
radius?: ComponentRadius;
|
|
1135
|
-
/** Whether to show a pin/arrow pointing to the target */
|
|
1136
|
-
showPin?: boolean;
|
|
1137
|
-
/** Whether to hide the header */
|
|
1138
|
-
hideHeader?: boolean;
|
|
1139
|
-
/** Whether to show a close icon in the header */
|
|
1140
|
-
showCloseIcon?: boolean;
|
|
1141
|
-
/** Whether to hide the footer */
|
|
1142
|
-
hideFooter?: boolean;
|
|
1143
|
-
/** Whether to close the popover when clicking outside */
|
|
1144
|
-
closeOnClickOutside?: boolean;
|
|
1145
|
-
/** Whether to close the popover when pressing escape */
|
|
1146
|
-
closeOnEscape?: boolean;
|
|
1147
|
-
/** Whether to close the popover when clicking inside */
|
|
1148
|
-
closeOnClick?: boolean;
|
|
1149
|
-
/** The title of the popover */
|
|
1150
|
-
title?: string;
|
|
1151
|
-
/** The content of the popover */
|
|
1152
|
-
content?: string;
|
|
1153
|
-
/** The z-index of the popover */
|
|
1154
|
-
zIndex?: number;
|
|
1155
|
-
/** The trigger mode for the popover */
|
|
1156
|
-
trigger?: PopoverTrigger;
|
|
1157
|
-
/** Whether to show a backdrop */
|
|
1158
|
-
backdrop?: boolean | 'transparent';
|
|
1159
|
-
/** The offset distance from the target */
|
|
1160
|
-
offsetDistance?: number;
|
|
1161
|
-
/** Whether the popover is disabled */
|
|
1162
|
-
disabled?: boolean;
|
|
1163
|
-
/** Custom classes for the popover */
|
|
1164
|
-
popoverClass?: string;
|
|
1165
|
-
/** Custom classes for the header */
|
|
1166
|
-
headerClass?: string;
|
|
1167
|
-
/** Custom classes for the body */
|
|
1168
|
-
bodyClass?: string;
|
|
1169
|
-
/** Custom classes for the footer */
|
|
1170
|
-
footerClass?: string;
|
|
1171
|
-
/** Whether to trap focus within the popover */
|
|
1172
|
-
trapFocus?: boolean;
|
|
1173
|
-
/** The ID of the popover */
|
|
1174
|
-
id?: string;
|
|
1175
|
-
/** The width of the popover */
|
|
1176
|
-
width?: number | string;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
export declare type PopoverTrigger = 'click' | 'hover' | 'manual';
|
|
1180
|
-
|
|
1181
|
-
export declare type PopoverVariant = 'outline' | 'shadow' | 'color';
|
|
1182
|
-
|
|
1183
|
-
export declare const POSITION: {
|
|
1184
|
-
TOP_LEFT: ToastPosition;
|
|
1185
|
-
TOP_RIGHT: ToastPosition;
|
|
1186
|
-
TOP_CENTER: ToastPosition;
|
|
1187
|
-
BOTTOM_LEFT: ToastPosition;
|
|
1188
|
-
BOTTOM_RIGHT: ToastPosition;
|
|
1189
|
-
BOTTOM_CENTER: ToastPosition;
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
declare type Position = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center' | 'middle-start' | 'middle-end' | 'middle-center';
|
|
1193
|
-
|
|
1194
|
-
export { Progress }
|
|
1195
|
-
|
|
1196
|
-
export declare interface ProgressProps {
|
|
1197
|
-
/** Value of the progress (0-100) */
|
|
1198
|
-
value: number;
|
|
1199
|
-
/** Size of the progress bar */
|
|
1200
|
-
size?: ComponentSize;
|
|
1201
|
-
/** Color of the progress bar */
|
|
1202
|
-
color?: ThemeColor | string;
|
|
1203
|
-
/** Whether to show stripes */
|
|
1204
|
-
striped?: boolean;
|
|
1205
|
-
/** Whether to animate the stripes */
|
|
1206
|
-
animated?: boolean;
|
|
1207
|
-
/** Label to show inside the progress bar */
|
|
1208
|
-
label?: string;
|
|
1209
|
-
/** Whether to show the value as a percentage */
|
|
1210
|
-
showValue?: boolean;
|
|
1211
|
-
/** Radius of the progress bar */
|
|
1212
|
-
radius?: ProgressRadius;
|
|
1213
|
-
/** Custom classes */
|
|
1214
|
-
class?: string;
|
|
1215
|
-
/** Multiple sections for segmented progress bar */
|
|
1216
|
-
sections?: ProgressSection[];
|
|
1217
|
-
/** Minimum value marker (stamp line) */
|
|
1218
|
-
minValue?: number;
|
|
1219
|
-
/** Whether to show the minimum value marker */
|
|
1220
|
-
showMinValue?: boolean;
|
|
1221
|
-
/** Color of the minimum value marker */
|
|
1222
|
-
minValueColor?: string;
|
|
1223
|
-
/** Position of the value label ('top' or 'right') */
|
|
1224
|
-
valuePosition?: 'top' | 'right';
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
export declare type ProgressRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
1228
|
-
|
|
1229
|
-
export declare interface ProgressSection {
|
|
1230
|
-
/** Value of this section (will be calculated as percentage of total) */
|
|
1231
|
-
value: number;
|
|
1232
|
-
/** Color of this section */
|
|
1233
|
-
color?: ThemeColor | string;
|
|
1234
|
-
/** Whether to show stripes for this section */
|
|
1235
|
-
striped?: boolean;
|
|
1236
|
-
/** Whether to animate the stripes for this section */
|
|
1237
|
-
animated?: boolean;
|
|
1238
|
-
/** Label to show inside this section (only visible if section is wide enough) */
|
|
1239
|
-
label?: string;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
export { Radio }
|
|
1243
|
-
|
|
1244
|
-
export declare interface RadioProps {
|
|
1245
|
-
/**
|
|
1246
|
-
* Value of the radio group (v-model)
|
|
1247
|
-
*/
|
|
1248
|
-
modelValue?: any;
|
|
1249
|
-
/**
|
|
1250
|
-
* Value of the radio button
|
|
1251
|
-
*/
|
|
1252
|
-
value?: any;
|
|
1253
|
-
/**
|
|
1254
|
-
* Label of the radio button
|
|
1255
|
-
*/
|
|
1256
|
-
label?: string;
|
|
1257
|
-
/**
|
|
1258
|
-
* Color variant of the radio button
|
|
1259
|
-
*/
|
|
1260
|
-
color?: ThemeColor;
|
|
1261
|
-
/**
|
|
1262
|
-
* Size of the radio button
|
|
1263
|
-
*/
|
|
1264
|
-
size?: ComponentSize;
|
|
1265
|
-
/**
|
|
1266
|
-
* Whether the radio button is disabled
|
|
1267
|
-
*/
|
|
1268
|
-
disabled?: boolean;
|
|
1269
|
-
/**
|
|
1270
|
-
* Description text
|
|
1271
|
-
*/
|
|
1272
|
-
description?: string;
|
|
1273
|
-
/**
|
|
1274
|
-
* Error message
|
|
1275
|
-
*/
|
|
1276
|
-
error?: string;
|
|
1277
|
-
/**
|
|
1278
|
-
* Position of the label
|
|
1279
|
-
*/
|
|
1280
|
-
labelPosition?: 'left' | 'right';
|
|
1281
|
-
/**
|
|
1282
|
-
* Visual variant of the radio button
|
|
1283
|
-
* @default 'filled'
|
|
1284
|
-
*/
|
|
1285
|
-
variant?: RadioVariant;
|
|
1286
|
-
/**
|
|
1287
|
-
* Custom color for the radio icon
|
|
1288
|
-
*/
|
|
1289
|
-
iconColor?: string;
|
|
1290
|
-
/**
|
|
1291
|
-
* Unique identifier
|
|
1292
|
-
*/
|
|
1293
|
-
id?: string;
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
export declare type RadioVariant = 'filled' | 'outlined';
|
|
1297
|
-
|
|
1298
|
-
declare type Radius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1299
|
-
|
|
1300
|
-
export { RangeSlider }
|
|
1301
|
-
|
|
1302
|
-
export declare interface RangeSliderEmits {
|
|
1303
|
-
/** Emitted when value changes */
|
|
1304
|
-
'update:modelValue': [value: [number, number]];
|
|
1305
|
-
/** Emitted when value changes (alias for update:modelValue) */
|
|
1306
|
-
'change': [value: [number, number]];
|
|
1307
|
-
/** Emitted when user stops dragging */
|
|
1308
|
-
'changeEnd': [value: [number, number]];
|
|
1309
|
-
/** Emitted when user starts dragging */
|
|
1310
|
-
'changeStart': [value: [number, number]];
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
export declare interface RangeSliderExposed {
|
|
1314
|
-
/** Focus the slider */
|
|
1315
|
-
focus: () => void;
|
|
1316
|
-
/** Blur the slider */
|
|
1317
|
-
blur: () => void;
|
|
1318
|
-
/** Get current value */
|
|
1319
|
-
getValue: () => [number, number];
|
|
1320
|
-
/** Set value programmatically */
|
|
1321
|
-
setValue: (value: [number, number]) => void;
|
|
1322
|
-
/** Reset to default value */
|
|
1323
|
-
reset: () => void;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
export declare interface RangeSliderProps extends BaseSliderProps {
|
|
1327
|
-
/** Model value for v-model binding - array of [min, max] values */
|
|
1328
|
-
modelValue?: [number, number];
|
|
1329
|
-
/** Default value if not controlled */
|
|
1330
|
-
defaultValue?: [number, number];
|
|
1331
|
-
/** Minimum range between thumbs */
|
|
1332
|
-
minRange?: number;
|
|
1333
|
-
/** Maximum range between thumbs */
|
|
1334
|
-
maxRange?: number;
|
|
1335
|
-
/** Whether thumbs can overlap */
|
|
1336
|
-
allowOverlap?: boolean;
|
|
1337
|
-
/** Whether to push thumbs when they overlap */
|
|
1338
|
-
pushOnOverlap?: boolean;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
export declare type SearchDisplayMode = 'icon-only' | 'icon-placeholder' | 'full-width';
|
|
1342
|
-
|
|
1343
|
-
export { SearchInput }
|
|
1344
|
-
|
|
1345
|
-
export declare interface SearchInputProps {
|
|
1346
|
-
/** Component ID */
|
|
1347
|
-
id?: string;
|
|
1348
|
-
/** Model value for v-model binding */
|
|
1349
|
-
modelValue?: string;
|
|
1350
|
-
/** Placeholder text */
|
|
1351
|
-
placeholder?: string;
|
|
1352
|
-
/** Label text */
|
|
1353
|
-
label?: string;
|
|
1354
|
-
/** Description text */
|
|
1355
|
-
description?: string;
|
|
1356
|
-
/** Error message */
|
|
1357
|
-
error?: string;
|
|
1358
|
-
/** Whether the component has an error */
|
|
1359
|
-
hasError?: boolean;
|
|
1360
|
-
/** Whether the component is disabled */
|
|
1361
|
-
disabled?: boolean;
|
|
1362
|
-
/** Whether the component is readonly */
|
|
1363
|
-
readonly?: boolean;
|
|
1364
|
-
/** Whether the component is required */
|
|
1365
|
-
required?: boolean;
|
|
1366
|
-
/** Whether to show an asterisk for required field */
|
|
1367
|
-
withAsterisk?: boolean;
|
|
1368
|
-
/** Whether to show both error and description */
|
|
1369
|
-
showBothErrorAndDescription?: boolean;
|
|
1370
|
-
/** Additional input props */
|
|
1371
|
-
inputProps?: Record<string, any>;
|
|
1372
|
-
/** Component size */
|
|
1373
|
-
size?: ComponentSize;
|
|
1374
|
-
/** Component variant */
|
|
1375
|
-
variant?: 'default' | 'filled' | 'unstyled';
|
|
1376
|
-
/** Border radius */
|
|
1377
|
-
radius?: ComponentRadius;
|
|
1378
|
-
/** Custom class for the component */
|
|
1379
|
-
class?: string;
|
|
1380
|
-
/** Initial display mode */
|
|
1381
|
-
displayMode?: SearchDisplayMode;
|
|
1382
|
-
/** Default width when not expanded */
|
|
1383
|
-
defaultWidth?: string;
|
|
1384
|
-
/** Expanded width when focused */
|
|
1385
|
-
expandedWidth?: string;
|
|
1386
|
-
/** Whether to show clear button when input has value */
|
|
1387
|
-
withClearButton?: boolean;
|
|
1388
|
-
/** Whether to expand on focus */
|
|
1389
|
-
expandOnFocus?: boolean;
|
|
1390
|
-
/** Whether to restore to default width on blur */
|
|
1391
|
-
collapseOnBlur?: boolean;
|
|
1392
|
-
/** Custom icon component */
|
|
1393
|
-
icon?: string;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
declare type SectionProps = Record<string, any>;
|
|
1397
|
-
|
|
1398
|
-
export { SegmentedControl }
|
|
1399
|
-
|
|
1400
|
-
export declare interface SegmentedControlOption {
|
|
1401
|
-
value: string;
|
|
1402
|
-
label: string | number;
|
|
1403
|
-
disabled?: boolean;
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
export declare interface SegmentedControlProps {
|
|
1407
|
-
/**
|
|
1408
|
-
* Model value for v-model binding
|
|
1409
|
-
*/
|
|
1410
|
-
modelValue?: string;
|
|
1411
|
-
/**
|
|
1412
|
-
* Array of options to display
|
|
1413
|
-
*/
|
|
1414
|
-
data: (string | SegmentedControlOption)[];
|
|
1415
|
-
/**
|
|
1416
|
-
* Size of the control
|
|
1417
|
-
* @default 'md'
|
|
1418
|
-
*/
|
|
1419
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1420
|
-
/**
|
|
1421
|
-
* Border radius
|
|
1422
|
-
* @default 'md'
|
|
1423
|
-
*/
|
|
1424
|
-
radius?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1425
|
-
/**
|
|
1426
|
-
* Color variant
|
|
1427
|
-
* @default 'primary'
|
|
1428
|
-
*/
|
|
1429
|
-
color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
1430
|
-
/**
|
|
1431
|
-
* Whether the control is disabled
|
|
1432
|
-
* @default false
|
|
1433
|
-
*/
|
|
1434
|
-
disabled?: boolean;
|
|
1435
|
-
/**
|
|
1436
|
-
* Whether the control should take full width
|
|
1437
|
-
* @default false
|
|
1438
|
-
*/
|
|
1439
|
-
fullWidth?: boolean;
|
|
1440
|
-
/**
|
|
1441
|
-
* Transition duration in milliseconds
|
|
1442
|
-
* @default 200
|
|
1443
|
-
*/
|
|
1444
|
-
transitionDuration?: number;
|
|
1445
|
-
/**
|
|
1446
|
-
* Whether to show borders between items
|
|
1447
|
-
* @default true
|
|
1448
|
-
*/
|
|
1449
|
-
withItemsBorders?: boolean;
|
|
1450
|
-
/**
|
|
1451
|
-
* Orientation of the control
|
|
1452
|
-
* @default 'horizontal'
|
|
1453
|
-
*/
|
|
1454
|
-
orientation?: 'horizontal' | 'vertical';
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
export declare interface SelectOption {
|
|
1458
|
-
value: string;
|
|
1459
|
-
label: string;
|
|
1460
|
-
disabled?: boolean;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
export declare interface SelectProps {
|
|
1464
|
-
modelValue?: string | null;
|
|
1465
|
-
options: SelectOption[];
|
|
1466
|
-
placeholder?: string;
|
|
1467
|
-
disabled?: boolean;
|
|
1468
|
-
searchable?: boolean;
|
|
1469
|
-
clearable?: boolean;
|
|
1470
|
-
loading?: boolean;
|
|
1471
|
-
error?: boolean;
|
|
1472
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1473
|
-
radius?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none';
|
|
1474
|
-
variant?: 'filled' | 'outline';
|
|
1475
|
-
color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
1476
|
-
withCheckIcon?: boolean;
|
|
1477
|
-
checkIconPosition?: 'left' | 'right';
|
|
1478
|
-
nothingFoundMessage?: string;
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
/**
|
|
1482
|
-
* Semantic color variants for components
|
|
1483
|
-
*/
|
|
1484
|
-
export declare type SemanticColorVariant = 'success' | 'warning' | 'danger' | 'info';
|
|
1485
|
-
|
|
1486
|
-
export declare type Shade = 50 | 100 | 200 | 250 | 300 | 400 | 450 | 500 | 550 | 575 | 600 | 700 | 800 | 900;
|
|
1487
|
-
|
|
1488
|
-
declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1489
|
-
|
|
1490
|
-
export { Slider }
|
|
1491
|
-
|
|
1492
|
-
export declare interface SliderEmits {
|
|
1493
|
-
/** Emitted when value changes */
|
|
1494
|
-
'update:modelValue': [value: number];
|
|
1495
|
-
/** Emitted when value changes (alias for update:modelValue) */
|
|
1496
|
-
'change': [value: number];
|
|
1497
|
-
/** Emitted when user stops dragging */
|
|
1498
|
-
'changeEnd': [value: number];
|
|
1499
|
-
/** Emitted when user starts dragging */
|
|
1500
|
-
'changeStart': [value: number];
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
export declare interface SliderExposed {
|
|
1504
|
-
/** Focus the slider */
|
|
1505
|
-
focus: () => void;
|
|
1506
|
-
/** Blur the slider */
|
|
1507
|
-
blur: () => void;
|
|
1508
|
-
/** Get current value */
|
|
1509
|
-
getValue: () => number;
|
|
1510
|
-
/** Set value programmatically */
|
|
1511
|
-
setValue: (value: number) => void;
|
|
1512
|
-
/** Reset to default value */
|
|
1513
|
-
reset: () => void;
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
export declare interface SliderMark {
|
|
1517
|
-
/** Value of the mark */
|
|
1518
|
-
value: number;
|
|
1519
|
-
/** Label to display for the mark */
|
|
1520
|
-
label?: string;
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
export declare interface SliderProps extends BaseSliderProps {
|
|
1524
|
-
/** Model value for v-model binding */
|
|
1525
|
-
modelValue?: number;
|
|
1526
|
-
/** Default value if not controlled */
|
|
1527
|
-
defaultValue?: number;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
export { SplitButton }
|
|
1531
|
-
|
|
1532
|
-
export declare interface SplitButtonProps {
|
|
1533
|
-
/** The variant style of the button */
|
|
1534
|
-
variant?: "filled" | "light" | "outline" | "subtle" | "text";
|
|
1535
|
-
/** The color theme of the button */
|
|
1536
|
-
color?: ThemeColor | string;
|
|
1537
|
-
/** The size of the button */
|
|
1538
|
-
size?: ComponentSize;
|
|
1539
|
-
/** The border radius of the button */
|
|
1540
|
-
radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
1541
|
-
/** Whether the button is disabled */
|
|
1542
|
-
disabled?: boolean;
|
|
1543
|
-
/** Whether the button is in loading state */
|
|
1544
|
-
loading?: boolean;
|
|
1545
|
-
/** The icon to show in the dropdown trigger */
|
|
1546
|
-
dropdownIcon?: Component;
|
|
1547
|
-
/** Whether to show the divider between main button and dropdown */
|
|
1548
|
-
showDivider?: boolean;
|
|
1549
|
-
/** Dropdown menu case*/
|
|
1550
|
-
dropdownMenuClass?: string;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
export { Switch }
|
|
1554
|
-
|
|
1555
|
-
export declare interface SwitchProps {
|
|
1556
|
-
/**
|
|
1557
|
-
* Value bound to the switch, used with v-model
|
|
1558
|
-
*/
|
|
1559
|
-
modelValue?: boolean;
|
|
1560
|
-
/**
|
|
1561
|
-
* Label for the switch
|
|
1562
|
-
*/
|
|
1563
|
-
label?: string;
|
|
1564
|
-
/**
|
|
1565
|
-
* Label when switch is in unchecked state
|
|
1566
|
-
*/
|
|
1567
|
-
offLabel?: string;
|
|
1568
|
-
/**
|
|
1569
|
-
* Label when switch is in checked state
|
|
1570
|
-
*/
|
|
1571
|
-
onLabel?: string;
|
|
1572
|
-
/**
|
|
1573
|
-
* Color of the switch when checked
|
|
1574
|
-
*/
|
|
1575
|
-
color?: ThemeColor;
|
|
1576
|
-
/**
|
|
1577
|
-
* Size of the switch
|
|
1578
|
-
*/
|
|
1579
|
-
size?: ComponentSize;
|
|
1580
|
-
/**
|
|
1581
|
-
* Border radius of the switch
|
|
1582
|
-
*/
|
|
1583
|
-
radius?: ComponentRadius;
|
|
1584
|
-
/**
|
|
1585
|
-
* Icon inside the thumb (string or slot)
|
|
1586
|
-
*/
|
|
1587
|
-
thumbIcon?: string;
|
|
1588
|
-
/**
|
|
1589
|
-
* Position of the label
|
|
1590
|
-
*/
|
|
1591
|
-
labelPosition?: 'left' | 'right';
|
|
1592
|
-
/**
|
|
1593
|
-
* Description text shown below the label
|
|
1594
|
-
*/
|
|
1595
|
-
description?: string;
|
|
1596
|
-
/**
|
|
1597
|
-
* Error message
|
|
1598
|
-
*/
|
|
1599
|
-
error?: string;
|
|
1600
|
-
/**
|
|
1601
|
-
* Whether the switch is disabled
|
|
1602
|
-
*/
|
|
1603
|
-
disabled?: boolean;
|
|
1604
|
-
/**
|
|
1605
|
-
* Name attribute of the input element
|
|
1606
|
-
*/
|
|
1607
|
-
name?: string;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
export { Tabs }
|
|
1611
|
-
|
|
1612
|
-
export { TabsList }
|
|
1613
|
-
|
|
1614
|
-
export { TabsPanel }
|
|
1615
|
-
|
|
1616
|
-
export { TabsTab }
|
|
1617
|
-
|
|
1618
|
-
export declare interface TailwindConfigObject {
|
|
1619
|
-
content: string[];
|
|
1620
|
-
darkMode: 'media' | 'class';
|
|
1621
|
-
theme: {
|
|
1622
|
-
extend: Record<string, any>;
|
|
1623
|
-
};
|
|
1624
|
-
plugins: any[];
|
|
1625
|
-
safelist: string[];
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
export declare interface TailwindConfigOptions {
|
|
1629
|
-
content?: string[];
|
|
1630
|
-
darkMode?: 'media' | 'class';
|
|
1631
|
-
extendTheme?: Record<string, any>;
|
|
1632
|
-
plugins?: any[];
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* TypeScript interfaces
|
|
1637
|
-
*/
|
|
1638
|
-
export declare interface TailwindThemeConfig {
|
|
1639
|
-
colors: Record<string, Record<string, string>>;
|
|
1640
|
-
safelist: string[];
|
|
1641
|
-
plugins: string[];
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
export { Textarea }
|
|
1645
|
-
|
|
1646
|
-
export declare interface TextareaProps {
|
|
1647
|
-
/** Textarea's id attribute */
|
|
1648
|
-
id?: string;
|
|
1649
|
-
/** Textarea's value */
|
|
1650
|
-
modelValue?: string;
|
|
1651
|
-
/** Textarea's placeholder */
|
|
1652
|
-
placeholder?: string;
|
|
1653
|
-
/** Disabled state */
|
|
1654
|
-
disabled?: boolean;
|
|
1655
|
-
/** Readonly state */
|
|
1656
|
-
readonly?: boolean;
|
|
1657
|
-
/** Textarea label */
|
|
1658
|
-
label?: string;
|
|
1659
|
-
/** Label props */
|
|
1660
|
-
labelProps?: SectionProps;
|
|
1661
|
-
/** Description text shown below the textarea */
|
|
1662
|
-
description?: string;
|
|
1663
|
-
/** Description props */
|
|
1664
|
-
descriptionProps?: SectionProps;
|
|
1665
|
-
/** Error message */
|
|
1666
|
-
error?: string;
|
|
1667
|
-
/** Error props */
|
|
1668
|
-
errorProps?: SectionProps;
|
|
1669
|
-
/** Display error state */
|
|
1670
|
-
hasError?: boolean;
|
|
1671
|
-
/** Show both error and description */
|
|
1672
|
-
showBothErrorAndDescription?: boolean;
|
|
1673
|
-
/** Props passed to textarea element */
|
|
1674
|
-
textareaProps?: SectionProps;
|
|
1675
|
-
/** Textarea size */
|
|
1676
|
-
size?: ComponentSize;
|
|
1677
|
-
/** Border-radius value */
|
|
1678
|
-
radius?: ComponentRadius;
|
|
1679
|
-
/** Textarea variant */
|
|
1680
|
-
variant?: 'default' | 'filled' | 'light' | 'outline' | 'subtle' | 'unstyled';
|
|
1681
|
-
/** Determines whether required asterisk should be rendered */
|
|
1682
|
-
required?: boolean;
|
|
1683
|
-
/** Show asterisk even if field is not required */
|
|
1684
|
-
withAsterisk?: boolean;
|
|
1685
|
-
/** Number of rows */
|
|
1686
|
-
rows?: number;
|
|
1687
|
-
/** Resize behavior */
|
|
1688
|
-
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
1689
|
-
/** Take full width of container */
|
|
1690
|
-
fullWidth?: boolean;
|
|
1691
|
-
/** Component color */
|
|
1692
|
-
color?: ColorVariant_2;
|
|
1693
|
-
/** Custom class for the component */
|
|
1694
|
-
class?: string;
|
|
1695
|
-
/** Custom class for the input */
|
|
1696
|
-
inputClass?: string;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
export { TextInput }
|
|
1700
|
-
|
|
1701
|
-
export declare interface TextInputProps {
|
|
1702
|
-
/** Input's id attribute */
|
|
1703
|
-
id?: string;
|
|
1704
|
-
/** Input's type attribute */
|
|
1705
|
-
type?: string;
|
|
1706
|
-
/** Input's value */
|
|
1707
|
-
modelValue?: string;
|
|
1708
|
-
/** Input's placeholder */
|
|
1709
|
-
placeholder?: string;
|
|
1710
|
-
/** Disabled state */
|
|
1711
|
-
disabled?: boolean;
|
|
1712
|
-
/** Input label */
|
|
1713
|
-
label?: string;
|
|
1714
|
-
/** Label props */
|
|
1715
|
-
labelProps?: SectionProps;
|
|
1716
|
-
/** Description text shown below the input */
|
|
1717
|
-
description?: string;
|
|
1718
|
-
/** Description props */
|
|
1719
|
-
descriptionProps?: SectionProps;
|
|
1720
|
-
/** Error message */
|
|
1721
|
-
error?: string;
|
|
1722
|
-
/** Error props */
|
|
1723
|
-
errorProps?: SectionProps;
|
|
1724
|
-
/** Props passed to root element */
|
|
1725
|
-
wrapperProps?: SectionProps;
|
|
1726
|
-
/** Props passed to input element */
|
|
1727
|
-
inputProps?: SectionProps;
|
|
1728
|
-
/** Input size */
|
|
1729
|
-
size?: ComponentSize;
|
|
1730
|
-
/** Border-radius value */
|
|
1731
|
-
radius?: ComponentRadius;
|
|
1732
|
-
/** Determines whether required asterisk should be rendered */
|
|
1733
|
-
required?: boolean;
|
|
1734
|
-
/** Show asterisk even if field is not required */
|
|
1735
|
-
withAsterisk?: boolean;
|
|
1736
|
-
/** Display error state */
|
|
1737
|
-
withError?: boolean;
|
|
1738
|
-
/** Right section content */
|
|
1739
|
-
rightSection?: any;
|
|
1740
|
-
/** Props passed to right section */
|
|
1741
|
-
rightSectionProps?: SectionProps;
|
|
1742
|
-
/** Left section content */
|
|
1743
|
-
leftSection?: any;
|
|
1744
|
-
/** Props passed to left section */
|
|
1745
|
-
leftSectionProps?: SectionProps;
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
export declare const THEME_INJECTION_KEY: InjectionKey<{
|
|
1749
|
-
theme: ComputedRef< {
|
|
1750
|
-
primary?: string | undefined;
|
|
1751
|
-
secondary?: string | undefined;
|
|
1752
|
-
success?: string | undefined;
|
|
1753
|
-
warning?: string | undefined;
|
|
1754
|
-
danger?: string | undefined;
|
|
1755
|
-
info?: string | undefined;
|
|
1756
|
-
green?: string | undefined;
|
|
1757
|
-
yellow?: string | undefined;
|
|
1758
|
-
orange?: string | undefined;
|
|
1759
|
-
red?: string | undefined;
|
|
1760
|
-
}>;
|
|
1761
|
-
palette: ComputedRef< {
|
|
1762
|
-
primary: {
|
|
1763
|
-
300: string;
|
|
1764
|
-
50: string;
|
|
1765
|
-
100: string;
|
|
1766
|
-
200: string;
|
|
1767
|
-
250: string;
|
|
1768
|
-
400: string;
|
|
1769
|
-
450: string;
|
|
1770
|
-
500: string;
|
|
1771
|
-
550: string;
|
|
1772
|
-
575: string;
|
|
1773
|
-
600: string;
|
|
1774
|
-
700: string;
|
|
1775
|
-
800: string;
|
|
1776
|
-
900: string;
|
|
1777
|
-
};
|
|
1778
|
-
secondary: {
|
|
1779
|
-
300: string;
|
|
1780
|
-
50: string;
|
|
1781
|
-
100: string;
|
|
1782
|
-
200: string;
|
|
1783
|
-
250: string;
|
|
1784
|
-
400: string;
|
|
1785
|
-
450: string;
|
|
1786
|
-
500: string;
|
|
1787
|
-
550: string;
|
|
1788
|
-
575: string;
|
|
1789
|
-
600: string;
|
|
1790
|
-
700: string;
|
|
1791
|
-
800: string;
|
|
1792
|
-
900: string;
|
|
1793
|
-
};
|
|
1794
|
-
success: {
|
|
1795
|
-
300: string;
|
|
1796
|
-
50: string;
|
|
1797
|
-
100: string;
|
|
1798
|
-
200: string;
|
|
1799
|
-
250: string;
|
|
1800
|
-
400: string;
|
|
1801
|
-
450: string;
|
|
1802
|
-
500: string;
|
|
1803
|
-
550: string;
|
|
1804
|
-
575: string;
|
|
1805
|
-
600: string;
|
|
1806
|
-
700: string;
|
|
1807
|
-
800: string;
|
|
1808
|
-
900: string;
|
|
1809
|
-
};
|
|
1810
|
-
warning: {
|
|
1811
|
-
300: string;
|
|
1812
|
-
50: string;
|
|
1813
|
-
100: string;
|
|
1814
|
-
200: string;
|
|
1815
|
-
250: string;
|
|
1816
|
-
400: string;
|
|
1817
|
-
450: string;
|
|
1818
|
-
500: string;
|
|
1819
|
-
550: string;
|
|
1820
|
-
575: string;
|
|
1821
|
-
600: string;
|
|
1822
|
-
700: string;
|
|
1823
|
-
800: string;
|
|
1824
|
-
900: string;
|
|
1825
|
-
};
|
|
1826
|
-
danger: {
|
|
1827
|
-
300: string;
|
|
1828
|
-
50: string;
|
|
1829
|
-
100: string;
|
|
1830
|
-
200: string;
|
|
1831
|
-
250: string;
|
|
1832
|
-
400: string;
|
|
1833
|
-
450: string;
|
|
1834
|
-
500: string;
|
|
1835
|
-
550: string;
|
|
1836
|
-
575: string;
|
|
1837
|
-
600: string;
|
|
1838
|
-
700: string;
|
|
1839
|
-
800: string;
|
|
1840
|
-
900: string;
|
|
1841
|
-
};
|
|
1842
|
-
info: {
|
|
1843
|
-
300: string;
|
|
1844
|
-
50: string;
|
|
1845
|
-
100: string;
|
|
1846
|
-
200: string;
|
|
1847
|
-
250: string;
|
|
1848
|
-
400: string;
|
|
1849
|
-
450: string;
|
|
1850
|
-
500: string;
|
|
1851
|
-
550: string;
|
|
1852
|
-
575: string;
|
|
1853
|
-
600: string;
|
|
1854
|
-
700: string;
|
|
1855
|
-
800: string;
|
|
1856
|
-
900: string;
|
|
1857
|
-
};
|
|
1858
|
-
green: {
|
|
1859
|
-
300: string;
|
|
1860
|
-
50: string;
|
|
1861
|
-
100: string;
|
|
1862
|
-
200: string;
|
|
1863
|
-
250: string;
|
|
1864
|
-
400: string;
|
|
1865
|
-
450: string;
|
|
1866
|
-
500: string;
|
|
1867
|
-
550: string;
|
|
1868
|
-
575: string;
|
|
1869
|
-
600: string;
|
|
1870
|
-
700: string;
|
|
1871
|
-
800: string;
|
|
1872
|
-
900: string;
|
|
1873
|
-
};
|
|
1874
|
-
yellow: {
|
|
1875
|
-
300: string;
|
|
1876
|
-
50: string;
|
|
1877
|
-
100: string;
|
|
1878
|
-
200: string;
|
|
1879
|
-
250: string;
|
|
1880
|
-
400: string;
|
|
1881
|
-
450: string;
|
|
1882
|
-
500: string;
|
|
1883
|
-
550: string;
|
|
1884
|
-
575: string;
|
|
1885
|
-
600: string;
|
|
1886
|
-
700: string;
|
|
1887
|
-
800: string;
|
|
1888
|
-
900: string;
|
|
1889
|
-
};
|
|
1890
|
-
red: {
|
|
1891
|
-
300: string;
|
|
1892
|
-
50: string;
|
|
1893
|
-
100: string;
|
|
1894
|
-
200: string;
|
|
1895
|
-
250: string;
|
|
1896
|
-
400: string;
|
|
1897
|
-
450: string;
|
|
1898
|
-
500: string;
|
|
1899
|
-
550: string;
|
|
1900
|
-
575: string;
|
|
1901
|
-
600: string;
|
|
1902
|
-
700: string;
|
|
1903
|
-
800: string;
|
|
1904
|
-
900: string;
|
|
1905
|
-
};
|
|
1906
|
-
orange: {
|
|
1907
|
-
300: string;
|
|
1908
|
-
50: string;
|
|
1909
|
-
100: string;
|
|
1910
|
-
200: string;
|
|
1911
|
-
250: string;
|
|
1912
|
-
400: string;
|
|
1913
|
-
450: string;
|
|
1914
|
-
500: string;
|
|
1915
|
-
550: string;
|
|
1916
|
-
575: string;
|
|
1917
|
-
600: string;
|
|
1918
|
-
700: string;
|
|
1919
|
-
800: string;
|
|
1920
|
-
900: string;
|
|
1921
|
-
};
|
|
1922
|
-
}>;
|
|
1923
|
-
setColors: (colors: Partial<Record<ColorName, string>>) => void;
|
|
1924
|
-
setTheme: (theme: Partial<ThemeOptions>) => void;
|
|
1925
|
-
resetTheme: () => void;
|
|
1926
|
-
getColor: (color: ColorName) => string;
|
|
1927
|
-
getPalette: () => Palette;
|
|
1928
|
-
isInitialized: ComputedRef<boolean>;
|
|
1929
|
-
}>;
|
|
1930
|
-
|
|
1931
|
-
declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
1932
|
-
|
|
1933
|
-
export declare type ThemeMode = 'light' | 'dark' | 'auto';
|
|
1934
|
-
|
|
1935
|
-
export declare interface ThemeOptions {
|
|
1936
|
-
/** Seed color to generate primary palette. Hex string */
|
|
1937
|
-
primary?: string;
|
|
1938
|
-
/** Seed color to generate secondary/gray palette */
|
|
1939
|
-
secondary?: string;
|
|
1940
|
-
/** Seed color to generate success palette */
|
|
1941
|
-
success?: string;
|
|
1942
|
-
/** Seed color to generate warning palette */
|
|
1943
|
-
warning?: string;
|
|
1944
|
-
/** Seed color to generate danger palette */
|
|
1945
|
-
danger?: string;
|
|
1946
|
-
/** Seed color to generate info palette */
|
|
1947
|
-
info?: string;
|
|
1948
|
-
/** Seed color to generate green palette (legacy) */
|
|
1949
|
-
green?: string;
|
|
1950
|
-
/** Seed color to generate yellow palette (legacy) */
|
|
1951
|
-
yellow?: string;
|
|
1952
|
-
/** Seed color to generate orange palette (legacy) */
|
|
1953
|
-
orange?: string;
|
|
1954
|
-
/** Seed color to generate red palette (legacy) */
|
|
1955
|
-
red?: string;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
/**
|
|
1959
|
-
* Theme preset interface
|
|
1960
|
-
*/
|
|
1961
|
-
export declare interface ThemePreset {
|
|
1962
|
-
name: string;
|
|
1963
|
-
theme: ThemeOptions;
|
|
1964
|
-
metadata: {
|
|
1965
|
-
created: string;
|
|
1966
|
-
version: string;
|
|
1967
|
-
description?: string;
|
|
1968
|
-
author?: string;
|
|
1969
|
-
};
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* Built-in theme presets
|
|
1974
|
-
*/
|
|
1975
|
-
export declare const themePresets: Record<string, ThemePreset>;
|
|
1976
|
-
|
|
1977
|
-
export { ThemeProvider }
|
|
1978
|
-
|
|
1979
|
-
export { ThemeToggle }
|
|
1980
|
-
|
|
1981
|
-
/**
|
|
1982
|
-
* Theme validation result
|
|
1983
|
-
*/
|
|
1984
|
-
export declare interface ThemeValidationResult {
|
|
1985
|
-
isValid: boolean;
|
|
1986
|
-
errors: string[];
|
|
1987
|
-
warnings: string[];
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
export { Toast }
|
|
1991
|
-
|
|
1992
|
-
export { toast }
|
|
1993
|
-
|
|
1994
|
-
export declare interface ToastContainerProps extends Partial<ToastContainerOptions> {
|
|
1995
|
-
/** Display multiple toasts at the same time */
|
|
1996
|
-
multiple?: boolean;
|
|
1997
|
-
/** Limit the number of toast displayed at the same time */
|
|
1998
|
-
limit?: number;
|
|
1999
|
-
/** Display newest toast on top */
|
|
2000
|
-
newestOnTop?: boolean;
|
|
2001
|
-
/** Add optional classes to the container */
|
|
2002
|
-
containerClassName?: string;
|
|
2003
|
-
/** Render unsafe string, like html tag */
|
|
2004
|
-
dangerouslyHTMLString?: boolean;
|
|
2005
|
-
/** Clear all toasts on url change */
|
|
2006
|
-
clearOnUrlChange?: boolean;
|
|
2007
|
-
/** Support right to left content */
|
|
2008
|
-
rtl?: boolean;
|
|
2009
|
-
/** Used to identify the Container when working with multiple container */
|
|
2010
|
-
containerId?: string | number;
|
|
2011
|
-
/** Position of the toast: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left */
|
|
2012
|
-
position?: ToastPosition;
|
|
2013
|
-
/** Delay in ms to close the toast. If set to false, the notification needs to be closed manually */
|
|
2014
|
-
autoClose?: number | boolean;
|
|
2015
|
-
/** Replace the default close button or false to hide the button */
|
|
2016
|
-
closeButton?: boolean;
|
|
2017
|
-
/** Transition animation */
|
|
2018
|
-
transition?: ToastTransition;
|
|
2019
|
-
/** Display or not the progress bar below the toast (remaining time) */
|
|
2020
|
-
hideProgressBar?: boolean;
|
|
2021
|
-
/** Keep the timer running or not on hover */
|
|
2022
|
-
pauseOnHover?: boolean;
|
|
2023
|
-
/** Pause the timer when the window loses focus */
|
|
2024
|
-
pauseOnFocusLoss?: boolean;
|
|
2025
|
-
/** Dismiss toast on click */
|
|
2026
|
-
closeOnClick?: boolean;
|
|
2027
|
-
/** Add optional classes to the toast */
|
|
2028
|
-
toastClassName?: string;
|
|
2029
|
-
/** Add optional classes to the toast body */
|
|
2030
|
-
bodyClassName?: string;
|
|
2031
|
-
/** Add optional inline style to the container */
|
|
2032
|
-
style?: Record<string, string>;
|
|
2033
|
-
/** Add optional classes to the progress bar */
|
|
2034
|
-
progressClassName?: string;
|
|
2035
|
-
/** Add optional inline style to the progress bar */
|
|
2036
|
-
progressStyle?: Record<string, string>;
|
|
2037
|
-
/** Define the ARIA role for the toasts */
|
|
2038
|
-
role?: string;
|
|
2039
|
-
/** Theme: auto, light, dark, colored */
|
|
2040
|
-
theme?: ToastTheme;
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
export { ToastContent }
|
|
2044
|
-
|
|
2045
|
-
export declare const ToastPlugin: {
|
|
2046
|
-
install: (app: App, options?: ToastContainerOptions) => void;
|
|
2047
|
-
};
|
|
2048
|
-
|
|
2049
|
-
export declare interface ToastProps extends Partial<ToastOptions> {
|
|
2050
|
-
/** Toast message content */
|
|
2051
|
-
message?: string;
|
|
2052
|
-
/** Toast type: default, info, success, warning, error */
|
|
2053
|
-
type?: ToastOptions['type'];
|
|
2054
|
-
/** Delay in ms to close the toast. If set to false, the notification needs to be closed manually */
|
|
2055
|
-
autoClose?: number | boolean;
|
|
2056
|
-
/** Position of the toast: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left */
|
|
2057
|
-
position?: ToastPosition;
|
|
2058
|
-
/** Display or not the progress bar below the toast (remaining time) */
|
|
2059
|
-
hideProgressBar?: boolean;
|
|
2060
|
-
/** Keep the timer running or not on hover */
|
|
2061
|
-
pauseOnHover?: boolean;
|
|
2062
|
-
/** Pause the timer when the window loses focus */
|
|
2063
|
-
pauseOnFocusLoss?: boolean;
|
|
2064
|
-
/** Dismiss toast on click */
|
|
2065
|
-
closeOnClick?: boolean;
|
|
2066
|
-
/** Add optional classes to the toast */
|
|
2067
|
-
toastClassName?: string;
|
|
2068
|
-
/** Add optional classes to the toast body */
|
|
2069
|
-
bodyClassName?: string;
|
|
2070
|
-
/** Add optional inline style to the container */
|
|
2071
|
-
style?: Record<string, string>;
|
|
2072
|
-
/** Add optional classes to the progress bar */
|
|
2073
|
-
progressClassName?: string;
|
|
2074
|
-
/** Add optional inline style to the progress bar */
|
|
2075
|
-
progressStyle?: Record<string, string>;
|
|
2076
|
-
/** Define the ARIA role for the toasts */
|
|
2077
|
-
role?: string;
|
|
2078
|
-
/** Theme: auto, light, dark, colored */
|
|
2079
|
-
theme?: ToastTheme;
|
|
2080
|
-
/** Transition animation */
|
|
2081
|
-
transition?: ToastTransition;
|
|
2082
|
-
/** Replace the default close button or false to hide the button */
|
|
2083
|
-
closeButton?: boolean;
|
|
2084
|
-
/** Render unsafe string, like html tag */
|
|
2085
|
-
dangerouslyHTMLString?: boolean;
|
|
2086
|
-
/** Support right to left content */
|
|
2087
|
-
rtl?: boolean;
|
|
2088
|
-
/** Used to identify the Container when working with multiple container */
|
|
2089
|
-
containerId?: string | number;
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
export declare type ToastVariant = 'solid' | 'outlined' | 'gradient';
|
|
2093
|
-
|
|
2094
|
-
export declare const TRANSITIONS: {
|
|
2095
|
-
FLIP: ToastTransition;
|
|
2096
|
-
SLIDE: ToastTransition;
|
|
2097
|
-
ZOOM: ToastTransition;
|
|
2098
|
-
BOUNCE: ToastTransition;
|
|
2099
|
-
};
|
|
2100
|
-
|
|
2101
|
-
export declare const TYPE: {
|
|
2102
|
-
INFO: ToastType;
|
|
2103
|
-
SUCCESS: ToastType;
|
|
2104
|
-
WARNING: ToastType;
|
|
2105
|
-
ERROR: ToastType;
|
|
2106
|
-
DEFAULT: ToastType;
|
|
2107
|
-
};
|
|
2108
|
-
|
|
2109
|
-
export declare function useHoverCard(options?: UseHoverCardOptions): {
|
|
2110
|
-
isOpen: Ref<boolean>;
|
|
2111
|
-
open: () => void;
|
|
2112
|
-
close: () => void;
|
|
2113
|
-
};
|
|
2114
|
-
|
|
2115
|
-
declare interface UseHoverCardOptions {
|
|
2116
|
-
openDelay?: number;
|
|
2117
|
-
closeDelay?: number;
|
|
2118
|
-
onOpen?: () => void;
|
|
2119
|
-
onClose?: () => void;
|
|
2120
|
-
initiallyOpened?: boolean;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
export declare function useModal(): ModalInstance;
|
|
2124
|
-
|
|
2125
|
-
/**
|
|
2126
|
-
* Theme management composable
|
|
2127
|
-
* Provides reactive theme state and methods for theme manipulation
|
|
2128
|
-
*/
|
|
2129
|
-
export declare function useTheme(options?: {
|
|
2130
|
-
skipInitialization?: boolean;
|
|
2131
|
-
}): {
|
|
2132
|
-
theme: ComputedRef< {
|
|
2133
|
-
primary?: string | undefined;
|
|
2134
|
-
secondary?: string | undefined;
|
|
2135
|
-
success?: string | undefined;
|
|
2136
|
-
warning?: string | undefined;
|
|
2137
|
-
danger?: string | undefined;
|
|
2138
|
-
info?: string | undefined;
|
|
2139
|
-
green?: string | undefined;
|
|
2140
|
-
yellow?: string | undefined;
|
|
2141
|
-
orange?: string | undefined;
|
|
2142
|
-
red?: string | undefined;
|
|
2143
|
-
}>;
|
|
2144
|
-
palette: ComputedRef< {
|
|
2145
|
-
primary: {
|
|
2146
|
-
300: string;
|
|
2147
|
-
50: string;
|
|
2148
|
-
100: string;
|
|
2149
|
-
200: string;
|
|
2150
|
-
250: string;
|
|
2151
|
-
400: string;
|
|
2152
|
-
450: string;
|
|
2153
|
-
500: string;
|
|
2154
|
-
550: string;
|
|
2155
|
-
575: string;
|
|
2156
|
-
600: string;
|
|
2157
|
-
700: string;
|
|
2158
|
-
800: string;
|
|
2159
|
-
900: string;
|
|
2160
|
-
};
|
|
2161
|
-
secondary: {
|
|
2162
|
-
300: string;
|
|
2163
|
-
50: string;
|
|
2164
|
-
100: string;
|
|
2165
|
-
200: string;
|
|
2166
|
-
250: string;
|
|
2167
|
-
400: string;
|
|
2168
|
-
450: string;
|
|
2169
|
-
500: string;
|
|
2170
|
-
550: string;
|
|
2171
|
-
575: string;
|
|
2172
|
-
600: string;
|
|
2173
|
-
700: string;
|
|
2174
|
-
800: string;
|
|
2175
|
-
900: string;
|
|
2176
|
-
};
|
|
2177
|
-
success: {
|
|
2178
|
-
300: string;
|
|
2179
|
-
50: string;
|
|
2180
|
-
100: string;
|
|
2181
|
-
200: string;
|
|
2182
|
-
250: string;
|
|
2183
|
-
400: string;
|
|
2184
|
-
450: string;
|
|
2185
|
-
500: string;
|
|
2186
|
-
550: string;
|
|
2187
|
-
575: string;
|
|
2188
|
-
600: string;
|
|
2189
|
-
700: string;
|
|
2190
|
-
800: string;
|
|
2191
|
-
900: string;
|
|
2192
|
-
};
|
|
2193
|
-
warning: {
|
|
2194
|
-
300: string;
|
|
2195
|
-
50: string;
|
|
2196
|
-
100: string;
|
|
2197
|
-
200: string;
|
|
2198
|
-
250: string;
|
|
2199
|
-
400: string;
|
|
2200
|
-
450: string;
|
|
2201
|
-
500: string;
|
|
2202
|
-
550: string;
|
|
2203
|
-
575: string;
|
|
2204
|
-
600: string;
|
|
2205
|
-
700: string;
|
|
2206
|
-
800: string;
|
|
2207
|
-
900: string;
|
|
2208
|
-
};
|
|
2209
|
-
danger: {
|
|
2210
|
-
300: string;
|
|
2211
|
-
50: string;
|
|
2212
|
-
100: string;
|
|
2213
|
-
200: string;
|
|
2214
|
-
250: string;
|
|
2215
|
-
400: string;
|
|
2216
|
-
450: string;
|
|
2217
|
-
500: string;
|
|
2218
|
-
550: string;
|
|
2219
|
-
575: string;
|
|
2220
|
-
600: string;
|
|
2221
|
-
700: string;
|
|
2222
|
-
800: string;
|
|
2223
|
-
900: string;
|
|
2224
|
-
};
|
|
2225
|
-
info: {
|
|
2226
|
-
300: string;
|
|
2227
|
-
50: string;
|
|
2228
|
-
100: string;
|
|
2229
|
-
200: string;
|
|
2230
|
-
250: string;
|
|
2231
|
-
400: string;
|
|
2232
|
-
450: string;
|
|
2233
|
-
500: string;
|
|
2234
|
-
550: string;
|
|
2235
|
-
575: string;
|
|
2236
|
-
600: string;
|
|
2237
|
-
700: string;
|
|
2238
|
-
800: string;
|
|
2239
|
-
900: string;
|
|
2240
|
-
};
|
|
2241
|
-
green: {
|
|
2242
|
-
300: string;
|
|
2243
|
-
50: string;
|
|
2244
|
-
100: string;
|
|
2245
|
-
200: string;
|
|
2246
|
-
250: string;
|
|
2247
|
-
400: string;
|
|
2248
|
-
450: string;
|
|
2249
|
-
500: string;
|
|
2250
|
-
550: string;
|
|
2251
|
-
575: string;
|
|
2252
|
-
600: string;
|
|
2253
|
-
700: string;
|
|
2254
|
-
800: string;
|
|
2255
|
-
900: string;
|
|
2256
|
-
};
|
|
2257
|
-
yellow: {
|
|
2258
|
-
300: string;
|
|
2259
|
-
50: string;
|
|
2260
|
-
100: string;
|
|
2261
|
-
200: string;
|
|
2262
|
-
250: string;
|
|
2263
|
-
400: string;
|
|
2264
|
-
450: string;
|
|
2265
|
-
500: string;
|
|
2266
|
-
550: string;
|
|
2267
|
-
575: string;
|
|
2268
|
-
600: string;
|
|
2269
|
-
700: string;
|
|
2270
|
-
800: string;
|
|
2271
|
-
900: string;
|
|
2272
|
-
};
|
|
2273
|
-
red: {
|
|
2274
|
-
300: string;
|
|
2275
|
-
50: string;
|
|
2276
|
-
100: string;
|
|
2277
|
-
200: string;
|
|
2278
|
-
250: string;
|
|
2279
|
-
400: string;
|
|
2280
|
-
450: string;
|
|
2281
|
-
500: string;
|
|
2282
|
-
550: string;
|
|
2283
|
-
575: string;
|
|
2284
|
-
600: string;
|
|
2285
|
-
700: string;
|
|
2286
|
-
800: string;
|
|
2287
|
-
900: string;
|
|
2288
|
-
};
|
|
2289
|
-
orange: {
|
|
2290
|
-
300: string;
|
|
2291
|
-
50: string;
|
|
2292
|
-
100: string;
|
|
2293
|
-
200: string;
|
|
2294
|
-
250: string;
|
|
2295
|
-
400: string;
|
|
2296
|
-
450: string;
|
|
2297
|
-
500: string;
|
|
2298
|
-
550: string;
|
|
2299
|
-
575: string;
|
|
2300
|
-
600: string;
|
|
2301
|
-
700: string;
|
|
2302
|
-
800: string;
|
|
2303
|
-
900: string;
|
|
2304
|
-
};
|
|
2305
|
-
}>;
|
|
2306
|
-
setColors: (colors: Partial<Record<ColorName, string>>) => void;
|
|
2307
|
-
setTheme: (theme: Partial<ThemeOptions>) => void;
|
|
2308
|
-
resetTheme: () => void;
|
|
2309
|
-
getColor: (color: ColorName) => string;
|
|
2310
|
-
getPalette: () => Palette;
|
|
2311
|
-
isInitialized: ComputedRef<boolean>;
|
|
2312
|
-
};
|
|
2313
|
-
|
|
2314
|
-
/**
|
|
2315
|
-
* Access theme context from ThemeProvider
|
|
2316
|
-
* Falls back to standalone useTheme if no provider is found
|
|
2317
|
-
*/
|
|
2318
|
-
export declare function useThemeContext(): {
|
|
2319
|
-
theme: ComputedRef< {
|
|
2320
|
-
primary?: string | undefined;
|
|
2321
|
-
secondary?: string | undefined;
|
|
2322
|
-
success?: string | undefined;
|
|
2323
|
-
warning?: string | undefined;
|
|
2324
|
-
danger?: string | undefined;
|
|
2325
|
-
info?: string | undefined;
|
|
2326
|
-
green?: string | undefined;
|
|
2327
|
-
yellow?: string | undefined;
|
|
2328
|
-
orange?: string | undefined;
|
|
2329
|
-
red?: string | undefined;
|
|
2330
|
-
}>;
|
|
2331
|
-
palette: ComputedRef< {
|
|
2332
|
-
primary: {
|
|
2333
|
-
300: string;
|
|
2334
|
-
50: string;
|
|
2335
|
-
100: string;
|
|
2336
|
-
200: string;
|
|
2337
|
-
250: string;
|
|
2338
|
-
400: string;
|
|
2339
|
-
450: string;
|
|
2340
|
-
500: string;
|
|
2341
|
-
550: string;
|
|
2342
|
-
575: string;
|
|
2343
|
-
600: string;
|
|
2344
|
-
700: string;
|
|
2345
|
-
800: string;
|
|
2346
|
-
900: string;
|
|
2347
|
-
};
|
|
2348
|
-
secondary: {
|
|
2349
|
-
300: string;
|
|
2350
|
-
50: string;
|
|
2351
|
-
100: string;
|
|
2352
|
-
200: string;
|
|
2353
|
-
250: string;
|
|
2354
|
-
400: string;
|
|
2355
|
-
450: string;
|
|
2356
|
-
500: string;
|
|
2357
|
-
550: string;
|
|
2358
|
-
575: string;
|
|
2359
|
-
600: string;
|
|
2360
|
-
700: string;
|
|
2361
|
-
800: string;
|
|
2362
|
-
900: string;
|
|
2363
|
-
};
|
|
2364
|
-
success: {
|
|
2365
|
-
300: string;
|
|
2366
|
-
50: string;
|
|
2367
|
-
100: string;
|
|
2368
|
-
200: string;
|
|
2369
|
-
250: string;
|
|
2370
|
-
400: string;
|
|
2371
|
-
450: string;
|
|
2372
|
-
500: string;
|
|
2373
|
-
550: string;
|
|
2374
|
-
575: string;
|
|
2375
|
-
600: string;
|
|
2376
|
-
700: string;
|
|
2377
|
-
800: string;
|
|
2378
|
-
900: string;
|
|
2379
|
-
};
|
|
2380
|
-
warning: {
|
|
2381
|
-
300: string;
|
|
2382
|
-
50: string;
|
|
2383
|
-
100: string;
|
|
2384
|
-
200: string;
|
|
2385
|
-
250: string;
|
|
2386
|
-
400: string;
|
|
2387
|
-
450: string;
|
|
2388
|
-
500: string;
|
|
2389
|
-
550: string;
|
|
2390
|
-
575: string;
|
|
2391
|
-
600: string;
|
|
2392
|
-
700: string;
|
|
2393
|
-
800: string;
|
|
2394
|
-
900: string;
|
|
2395
|
-
};
|
|
2396
|
-
danger: {
|
|
2397
|
-
300: string;
|
|
2398
|
-
50: string;
|
|
2399
|
-
100: string;
|
|
2400
|
-
200: string;
|
|
2401
|
-
250: string;
|
|
2402
|
-
400: string;
|
|
2403
|
-
450: string;
|
|
2404
|
-
500: string;
|
|
2405
|
-
550: string;
|
|
2406
|
-
575: string;
|
|
2407
|
-
600: string;
|
|
2408
|
-
700: string;
|
|
2409
|
-
800: string;
|
|
2410
|
-
900: string;
|
|
2411
|
-
};
|
|
2412
|
-
info: {
|
|
2413
|
-
300: string;
|
|
2414
|
-
50: string;
|
|
2415
|
-
100: string;
|
|
2416
|
-
200: string;
|
|
2417
|
-
250: string;
|
|
2418
|
-
400: string;
|
|
2419
|
-
450: string;
|
|
2420
|
-
500: string;
|
|
2421
|
-
550: string;
|
|
2422
|
-
575: string;
|
|
2423
|
-
600: string;
|
|
2424
|
-
700: string;
|
|
2425
|
-
800: string;
|
|
2426
|
-
900: string;
|
|
2427
|
-
};
|
|
2428
|
-
green: {
|
|
2429
|
-
300: string;
|
|
2430
|
-
50: string;
|
|
2431
|
-
100: string;
|
|
2432
|
-
200: string;
|
|
2433
|
-
250: string;
|
|
2434
|
-
400: string;
|
|
2435
|
-
450: string;
|
|
2436
|
-
500: string;
|
|
2437
|
-
550: string;
|
|
2438
|
-
575: string;
|
|
2439
|
-
600: string;
|
|
2440
|
-
700: string;
|
|
2441
|
-
800: string;
|
|
2442
|
-
900: string;
|
|
2443
|
-
};
|
|
2444
|
-
yellow: {
|
|
2445
|
-
300: string;
|
|
2446
|
-
50: string;
|
|
2447
|
-
100: string;
|
|
2448
|
-
200: string;
|
|
2449
|
-
250: string;
|
|
2450
|
-
400: string;
|
|
2451
|
-
450: string;
|
|
2452
|
-
500: string;
|
|
2453
|
-
550: string;
|
|
2454
|
-
575: string;
|
|
2455
|
-
600: string;
|
|
2456
|
-
700: string;
|
|
2457
|
-
800: string;
|
|
2458
|
-
900: string;
|
|
2459
|
-
};
|
|
2460
|
-
red: {
|
|
2461
|
-
300: string;
|
|
2462
|
-
50: string;
|
|
2463
|
-
100: string;
|
|
2464
|
-
200: string;
|
|
2465
|
-
250: string;
|
|
2466
|
-
400: string;
|
|
2467
|
-
450: string;
|
|
2468
|
-
500: string;
|
|
2469
|
-
550: string;
|
|
2470
|
-
575: string;
|
|
2471
|
-
600: string;
|
|
2472
|
-
700: string;
|
|
2473
|
-
800: string;
|
|
2474
|
-
900: string;
|
|
2475
|
-
};
|
|
2476
|
-
orange: {
|
|
2477
|
-
300: string;
|
|
2478
|
-
50: string;
|
|
2479
|
-
100: string;
|
|
2480
|
-
200: string;
|
|
2481
|
-
250: string;
|
|
2482
|
-
400: string;
|
|
2483
|
-
450: string;
|
|
2484
|
-
500: string;
|
|
2485
|
-
550: string;
|
|
2486
|
-
575: string;
|
|
2487
|
-
600: string;
|
|
2488
|
-
700: string;
|
|
2489
|
-
800: string;
|
|
2490
|
-
900: string;
|
|
2491
|
-
};
|
|
2492
|
-
}>;
|
|
2493
|
-
setColors: (colors: Partial<Record<ColorName, string>>) => void;
|
|
2494
|
-
setTheme: (theme: Partial<ThemeOptions>) => void;
|
|
2495
|
-
resetTheme: () => void;
|
|
2496
|
-
getColor: (color: ColorName) => string;
|
|
2497
|
-
getPalette: () => Palette;
|
|
2498
|
-
isInitialized: ComputedRef<boolean>;
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
|
-
/**
|
|
2502
|
-
* Theme mode management composable
|
|
2503
|
-
* Handles light/dark mode detection, switching, and persistence
|
|
2504
|
-
*/
|
|
2505
|
-
export declare function useThemeMode(): {
|
|
2506
|
-
mode: ComputedRef<ThemeMode>;
|
|
2507
|
-
effectiveMode: ComputedRef<"light" | "dark">;
|
|
2508
|
-
systemPreference: ComputedRef<"light" | "dark">;
|
|
2509
|
-
isInitialized: ComputedRef<boolean>;
|
|
2510
|
-
setMode: (mode: ThemeMode) => void;
|
|
2511
|
-
toggleMode: () => void;
|
|
2512
|
-
isLight: ComputedRef<boolean>;
|
|
2513
|
-
isDark: ComputedRef<boolean>;
|
|
2514
|
-
isAuto: ComputedRef<boolean>;
|
|
2515
|
-
};
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* Shorthand for useThemeContext
|
|
2519
|
-
*/
|
|
2520
|
-
export declare const useThemeProvider: typeof useThemeContext;
|
|
2521
|
-
|
|
2522
|
-
/**
|
|
2523
|
-
* Validate dark mode color contrast
|
|
2524
|
-
*/
|
|
2525
|
-
export declare function validateDarkModeContrast(foreground: string, background: string): boolean;
|
|
2526
|
-
|
|
2527
|
-
/**
|
|
2528
|
-
* Validate a theme configuration
|
|
2529
|
-
*/
|
|
2530
|
-
export declare function validateTheme(theme: Partial<ThemeOptions>): ThemeValidationResult;
|
|
2531
|
-
|
|
2532
|
-
/**
|
|
2533
|
-
* Validates theme options
|
|
2534
|
-
*/
|
|
2535
|
-
export declare function validateThemeOptions(options: ThemeOptions): {
|
|
2536
|
-
valid: boolean;
|
|
2537
|
-
errors: string[];
|
|
2538
|
-
};
|
|
2539
|
-
|
|
2540
|
-
declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text' | 'gradient';
|
|
2541
|
-
|
|
2542
|
-
export { }
|