@contentstudio/ui 0.1.57 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/index.d.ts +840 -12
- package/dist/index.js +11457 -10966
- package/dist/index.umd.cjs +1633 -1618
- package/dist/style.css +1 -1
- package/dist/tailwind-6a119e86.cjs +66 -0
- package/dist/tailwind-9ac4bb2b.js +2010 -0
- package/dist/tailwind.d.ts +107 -0
- package/dist/tailwind.js +12 -0
- package/dist/tailwind.umd.cjs +1 -0
- package/package.json +11 -2
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { default as Checkbox } from './Checkbox.vue';
|
|
|
12
12
|
import { default as Chip } from './Chip.vue';
|
|
13
13
|
import { default as Collapsible } from './Collapsible.vue';
|
|
14
14
|
import { Component } from 'vue';
|
|
15
|
+
import { ComputedRef } from 'vue';
|
|
15
16
|
import { default as CustomToast } from './CustomToast.vue';
|
|
16
17
|
import { default as Dialog } from './Dialog.vue';
|
|
17
18
|
import { default as Drawer } from './Drawer.vue';
|
|
@@ -42,6 +43,8 @@ import { default as TabsPanel } from './TabsPanel.vue';
|
|
|
42
43
|
import { default as TabsTab } from './TabsTab.vue';
|
|
43
44
|
import { default as Textarea } from './Textarea.vue';
|
|
44
45
|
import { default as TextInput } from './TextInput.vue';
|
|
46
|
+
import { default as ThemeProvider } from './ThemeProvider.vue';
|
|
47
|
+
import { default as ThemeToggle } from './ThemeToggle.vue';
|
|
45
48
|
import { default as Toast } from './Toast.vue';
|
|
46
49
|
import { toast } from 'vue3-toastify';
|
|
47
50
|
import { ToastContainerOptions } from 'vue3-toastify';
|
|
@@ -105,7 +108,7 @@ export declare interface AlertProps {
|
|
|
105
108
|
/** Alert variant */
|
|
106
109
|
variant?: VariantType;
|
|
107
110
|
/** Color of the alert */
|
|
108
|
-
color?:
|
|
111
|
+
color?: ColorVariant_2;
|
|
109
112
|
/** Size of the alert */
|
|
110
113
|
size?: ComponentSize;
|
|
111
114
|
/** Whether to show close button */
|
|
@@ -124,6 +127,14 @@ export declare interface AlertProps {
|
|
|
124
127
|
class?: string;
|
|
125
128
|
}
|
|
126
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Writes CSS variables to :root based on the palette returned by `generatePalette`.
|
|
132
|
+
*/
|
|
133
|
+
/**
|
|
134
|
+
* Writes CSS variables to :root based on the palette returned by `generatePalette`.
|
|
135
|
+
*/
|
|
136
|
+
export declare function applyTheme(palette: Palette): void;
|
|
137
|
+
|
|
127
138
|
export { Avatar }
|
|
128
139
|
|
|
129
140
|
export { AvatarGroup }
|
|
@@ -136,7 +147,7 @@ export declare interface AvatarGroupProps {
|
|
|
136
147
|
/** Outline width for avatars in the group */
|
|
137
148
|
outlineWidth?: 'none' | 'thin' | 'normal' | 'medium' | 'thick' | string | number;
|
|
138
149
|
/** Outline color for avatars in the group */
|
|
139
|
-
outlineColor?:
|
|
150
|
+
outlineColor?: ColorVariant_2 | string;
|
|
140
151
|
/** Outline offset for avatars in the group */
|
|
141
152
|
outlineOffset?: 'none' | 'inset' | 'small' | 'medium' | 'large' | string | number;
|
|
142
153
|
/** Custom CSS classes to apply to the avatar group */
|
|
@@ -153,11 +164,11 @@ export declare interface AvatarProps {
|
|
|
153
164
|
/** Border radius of the avatar */
|
|
154
165
|
radius?: Radius;
|
|
155
166
|
/** Color of the avatar */
|
|
156
|
-
color?:
|
|
167
|
+
color?: ColorVariant_2 | 'initials';
|
|
157
168
|
/** Gradient configuration when variant is gradient */
|
|
158
169
|
gradient?: {
|
|
159
|
-
from:
|
|
160
|
-
to:
|
|
170
|
+
from: ColorVariant_2;
|
|
171
|
+
to: ColorVariant_2;
|
|
161
172
|
deg?: number;
|
|
162
173
|
};
|
|
163
174
|
/** Image source URL */
|
|
@@ -173,7 +184,7 @@ export declare interface AvatarProps {
|
|
|
173
184
|
/** User name for generating initials when src is not available */
|
|
174
185
|
name?: string;
|
|
175
186
|
/** Colors used for autogenerated initials */
|
|
176
|
-
allowedInitialsColors?:
|
|
187
|
+
allowedInitialsColors?: ColorVariant_2[];
|
|
177
188
|
/** Component variant */
|
|
178
189
|
variant?: AvatarVariant;
|
|
179
190
|
/** HTML element or component to render as */
|
|
@@ -278,7 +289,7 @@ export declare interface CheckboxProps {
|
|
|
278
289
|
value?: string | number;
|
|
279
290
|
id?: string;
|
|
280
291
|
label?: string;
|
|
281
|
-
color?:
|
|
292
|
+
color?: ColorVariant_2;
|
|
282
293
|
size?: Size;
|
|
283
294
|
radius?: 'sm' | 'md' | 'lg' | 'full';
|
|
284
295
|
labelPosition?: 'left' | 'right';
|
|
@@ -286,7 +297,7 @@ export declare interface CheckboxProps {
|
|
|
286
297
|
error?: string;
|
|
287
298
|
disabled?: boolean;
|
|
288
299
|
indeterminate?: boolean;
|
|
289
|
-
iconColor?:
|
|
300
|
+
iconColor?: ColorVariant_2;
|
|
290
301
|
autoContrast?: boolean;
|
|
291
302
|
variant?: CheckboxVariant;
|
|
292
303
|
}
|
|
@@ -359,7 +370,14 @@ export declare interface CollapsibleProps {
|
|
|
359
370
|
modelValue?: boolean;
|
|
360
371
|
}
|
|
361
372
|
|
|
362
|
-
declare type
|
|
373
|
+
export declare type ColorName = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'green' | 'yellow' | 'orange' | 'red';
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* All available color variants (core + semantic + legacy)
|
|
377
|
+
*/
|
|
378
|
+
export declare type ColorVariant = 'primary' | 'secondary' | SemanticColorVariant | 'green' | 'yellow' | 'orange' | 'red';
|
|
379
|
+
|
|
380
|
+
declare type ColorVariant_2 = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
363
381
|
|
|
364
382
|
declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
365
383
|
|
|
@@ -367,6 +385,11 @@ declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
367
385
|
|
|
368
386
|
export declare const composables: {};
|
|
369
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Create a theme preset - a predefined theme configuration
|
|
390
|
+
*/
|
|
391
|
+
export declare function createThemePreset(name: string, theme: Partial<ThemeOptions>): ThemePreset;
|
|
392
|
+
|
|
370
393
|
export declare const cstuToast: {
|
|
371
394
|
show(content: string, options?: Partial<ToastOptions>): Id;
|
|
372
395
|
success(content: string, options?: Partial<ToastOptions>): Id;
|
|
@@ -413,6 +436,23 @@ export { CustomToast }
|
|
|
413
436
|
|
|
414
437
|
export declare type CustomToastType = 'info' | 'warning' | 'success' | 'error' | 'loading' | 'dark' | 'default';
|
|
415
438
|
|
|
439
|
+
/**
|
|
440
|
+
* Default theme configuration with semantic colors
|
|
441
|
+
*/
|
|
442
|
+
export declare interface DefaultTheme {
|
|
443
|
+
primary: string;
|
|
444
|
+
secondary: string;
|
|
445
|
+
success: string;
|
|
446
|
+
warning: string;
|
|
447
|
+
danger: string;
|
|
448
|
+
info: string;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Default theme configuration with semantic colors
|
|
453
|
+
*/
|
|
454
|
+
export declare const defaultTheme: DefaultTheme;
|
|
455
|
+
|
|
416
456
|
export { Dialog }
|
|
417
457
|
|
|
418
458
|
export declare interface DialogProps {
|
|
@@ -550,6 +590,78 @@ export declare interface DropdownProps {
|
|
|
550
590
|
matchWidth?: boolean;
|
|
551
591
|
}
|
|
552
592
|
|
|
593
|
+
/**
|
|
594
|
+
* Export configuration as a string that can be written to tailwind.config.js
|
|
595
|
+
*/
|
|
596
|
+
export declare function exportTailwindConfig(theme: ThemeOptions, options?: TailwindConfigOptions): string;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Extend the default theme with custom colors
|
|
600
|
+
*/
|
|
601
|
+
export declare function extendTheme(customTheme: Partial<ThemeOptions>): ThemeOptions;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Generate CSS custom properties from theme
|
|
605
|
+
*/
|
|
606
|
+
export declare function generateCSSCustomProperties(theme: ThemeOptions): string;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Generate complete CSTU color configuration for client-side usage
|
|
610
|
+
* Returns static color config matching tailwind.config.js with cstu- prefix
|
|
611
|
+
* Usage: cstu-bg-primary-500, cstu-text-danger-600, etc.
|
|
612
|
+
*/
|
|
613
|
+
export declare function generateCstuColorConfig(): Record<string, Record<string, string>>;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Generate dark mode palette from light mode palette
|
|
617
|
+
*/
|
|
618
|
+
export declare function generateDarkModePalette(lightPalette: Palette): Palette;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Generate complete Tailwind configuration object
|
|
622
|
+
*/
|
|
623
|
+
export declare function generateFullTailwindConfig(theme: ThemeOptions, options?: TailwindConfigOptions): TailwindConfigObject;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Generate theme integration code for consumer projects
|
|
627
|
+
*/
|
|
628
|
+
export declare function generateIntegrationCode(theme: ThemeOptions): string;
|
|
629
|
+
|
|
630
|
+
export declare function generatePalette(options: ThemeOptions): Palette;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Generate Tailwind plugins for custom utilities
|
|
634
|
+
*/
|
|
635
|
+
export declare function generatePlugins(palette: Palette): string[];
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Generate Tailwind safelist patterns for dynamic classes
|
|
639
|
+
*/
|
|
640
|
+
export declare function generateSafelist(palette: Palette): string[];
|
|
641
|
+
|
|
642
|
+
export declare function generateShades(seed: string): Record<Shade, string>;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Generate Tailwind color configuration from palette using direct RGB values
|
|
646
|
+
*/
|
|
647
|
+
export declare function generateTailwindColors(palette: Palette): Record<string, Record<string, string>>;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Generate Tailwind CSS configuration from a theme
|
|
651
|
+
*/
|
|
652
|
+
export declare function generateTailwindConfig(theme: ThemeOptions): TailwindThemeConfig;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Get current theme mode without reactivity
|
|
656
|
+
* Useful for server-side rendering or static contexts
|
|
657
|
+
*/
|
|
658
|
+
export declare function getCurrentThemeMode(): 'light' | 'dark';
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Get optimal text color for dark mode backgrounds
|
|
662
|
+
*/
|
|
663
|
+
export declare function getDarkModeTextColor(backgroundColor: string): string;
|
|
664
|
+
|
|
553
665
|
/**
|
|
554
666
|
* Extracts initials from a name string
|
|
555
667
|
*/
|
|
@@ -558,7 +670,17 @@ export declare function getInitials(name: string): string;
|
|
|
558
670
|
/**
|
|
559
671
|
* Generates a color from a string (name) using a simple hash function
|
|
560
672
|
*/
|
|
561
|
-
export declare function getInitialsColor(name: string, allowedColors?:
|
|
673
|
+
export declare function getInitialsColor(name: string, allowedColors?: ColorVariant_2[]): ColorVariant_2;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Get a theme preset by name
|
|
677
|
+
*/
|
|
678
|
+
export declare function getThemePreset(name: string): ThemePreset | null;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Get all available theme presets
|
|
682
|
+
*/
|
|
683
|
+
export declare function getThemePresets(): ThemePreset[];
|
|
562
684
|
|
|
563
685
|
export { HoverCard }
|
|
564
686
|
|
|
@@ -659,6 +781,11 @@ export declare interface IndicatorProps {
|
|
|
659
781
|
zIndex?: number;
|
|
660
782
|
}
|
|
661
783
|
|
|
784
|
+
/**
|
|
785
|
+
* Validates a hex color string
|
|
786
|
+
*/
|
|
787
|
+
export declare function isValidHexColor(hex: string): boolean;
|
|
788
|
+
|
|
662
789
|
export declare type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
|
|
663
790
|
|
|
664
791
|
export { ListItem }
|
|
@@ -702,6 +829,11 @@ export declare type MantineRadius = 'none' | 'sm' | 'md' | 'lg' | 'full' | numbe
|
|
|
702
829
|
|
|
703
830
|
export declare type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
704
831
|
|
|
832
|
+
/**
|
|
833
|
+
* Deep merge two theme objects, with the second theme taking precedence
|
|
834
|
+
*/
|
|
835
|
+
export declare function mergeThemes(baseTheme: ThemeOptions, extendTheme: Partial<ThemeOptions>): ThemeOptions;
|
|
836
|
+
|
|
705
837
|
export { Modal }
|
|
706
838
|
|
|
707
839
|
export declare const ModalDirective: {
|
|
@@ -824,6 +956,11 @@ export declare interface ModalProps {
|
|
|
824
956
|
ariaLabel?: string;
|
|
825
957
|
}
|
|
826
958
|
|
|
959
|
+
/**
|
|
960
|
+
* Auto-adjust colors for better dark mode compatibility
|
|
961
|
+
*/
|
|
962
|
+
export declare function optimizeForDarkMode(palette: Palette): Palette;
|
|
963
|
+
|
|
827
964
|
export { Pagination }
|
|
828
965
|
|
|
829
966
|
export declare interface PaginationProps {
|
|
@@ -859,6 +996,11 @@ export declare interface PaginationProps {
|
|
|
859
996
|
|
|
860
997
|
export declare type PaginationVariant = 'filled' | 'outline';
|
|
861
998
|
|
|
999
|
+
/**
|
|
1000
|
+
* A mapping of color -> shade -> hex string
|
|
1001
|
+
*/
|
|
1002
|
+
export declare type Palette = Record<ColorName, Record<Shade, string>>;
|
|
1003
|
+
|
|
862
1004
|
export { Pill }
|
|
863
1005
|
|
|
864
1006
|
export declare interface PillEmits {
|
|
@@ -875,7 +1017,7 @@ export declare interface PillProps {
|
|
|
875
1017
|
/** If pill is disabled it has higher contrast and remove button is hidden */
|
|
876
1018
|
disabled?: boolean;
|
|
877
1019
|
/** Color variant of the pill */
|
|
878
|
-
color:
|
|
1020
|
+
color: ColorVariant_2;
|
|
879
1021
|
/** Style variant of the pill */
|
|
880
1022
|
variant?: PillVariant;
|
|
881
1023
|
}
|
|
@@ -1151,6 +1293,13 @@ export declare interface SelectProps {
|
|
|
1151
1293
|
nothingFoundMessage?: string;
|
|
1152
1294
|
}
|
|
1153
1295
|
|
|
1296
|
+
/**
|
|
1297
|
+
* Semantic color variants for components
|
|
1298
|
+
*/
|
|
1299
|
+
export declare type SemanticColorVariant = 'success' | 'warning' | 'danger' | 'info';
|
|
1300
|
+
|
|
1301
|
+
export declare type Shade = 50 | 100 | 200 | 250 | 300 | 400 | 450 | 500 | 550 | 575 | 600 | 700 | 800 | 900;
|
|
1302
|
+
|
|
1154
1303
|
declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1155
1304
|
|
|
1156
1305
|
export { SplitButton }
|
|
@@ -1241,6 +1390,32 @@ export { TabsPanel }
|
|
|
1241
1390
|
|
|
1242
1391
|
export { TabsTab }
|
|
1243
1392
|
|
|
1393
|
+
export declare interface TailwindConfigObject {
|
|
1394
|
+
content: string[];
|
|
1395
|
+
darkMode: 'media' | 'class';
|
|
1396
|
+
theme: {
|
|
1397
|
+
extend: Record<string, any>;
|
|
1398
|
+
};
|
|
1399
|
+
plugins: any[];
|
|
1400
|
+
safelist: string[];
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
export declare interface TailwindConfigOptions {
|
|
1404
|
+
content?: string[];
|
|
1405
|
+
darkMode?: 'media' | 'class';
|
|
1406
|
+
extendTheme?: Record<string, any>;
|
|
1407
|
+
plugins?: any[];
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* TypeScript interfaces
|
|
1412
|
+
*/
|
|
1413
|
+
export declare interface TailwindThemeConfig {
|
|
1414
|
+
colors: Record<string, Record<string, string>>;
|
|
1415
|
+
safelist: string[];
|
|
1416
|
+
plugins: string[];
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1244
1419
|
export { Textarea }
|
|
1245
1420
|
|
|
1246
1421
|
export declare interface TextareaProps {
|
|
@@ -1289,7 +1464,7 @@ export declare interface TextareaProps {
|
|
|
1289
1464
|
/** Take full width of container */
|
|
1290
1465
|
fullWidth?: boolean;
|
|
1291
1466
|
/** Component color */
|
|
1292
|
-
color?:
|
|
1467
|
+
color?: ColorVariant_2;
|
|
1293
1468
|
/** Custom class for the component */
|
|
1294
1469
|
class?: string;
|
|
1295
1470
|
/** Custom class for the input */
|
|
@@ -1345,8 +1520,248 @@ export declare interface TextInputProps {
|
|
|
1345
1520
|
leftSectionProps?: SectionProps;
|
|
1346
1521
|
}
|
|
1347
1522
|
|
|
1523
|
+
export declare const THEME_INJECTION_KEY: InjectionKey<{
|
|
1524
|
+
theme: ComputedRef< {
|
|
1525
|
+
primary?: string | undefined;
|
|
1526
|
+
secondary?: string | undefined;
|
|
1527
|
+
success?: string | undefined;
|
|
1528
|
+
warning?: string | undefined;
|
|
1529
|
+
danger?: string | undefined;
|
|
1530
|
+
info?: string | undefined;
|
|
1531
|
+
green?: string | undefined;
|
|
1532
|
+
yellow?: string | undefined;
|
|
1533
|
+
orange?: string | undefined;
|
|
1534
|
+
red?: string | undefined;
|
|
1535
|
+
}>;
|
|
1536
|
+
palette: ComputedRef< {
|
|
1537
|
+
primary: {
|
|
1538
|
+
300: string;
|
|
1539
|
+
50: string;
|
|
1540
|
+
100: string;
|
|
1541
|
+
200: string;
|
|
1542
|
+
250: string;
|
|
1543
|
+
400: string;
|
|
1544
|
+
450: string;
|
|
1545
|
+
500: string;
|
|
1546
|
+
550: string;
|
|
1547
|
+
575: string;
|
|
1548
|
+
600: string;
|
|
1549
|
+
700: string;
|
|
1550
|
+
800: string;
|
|
1551
|
+
900: string;
|
|
1552
|
+
};
|
|
1553
|
+
secondary: {
|
|
1554
|
+
300: string;
|
|
1555
|
+
50: string;
|
|
1556
|
+
100: string;
|
|
1557
|
+
200: string;
|
|
1558
|
+
250: string;
|
|
1559
|
+
400: string;
|
|
1560
|
+
450: string;
|
|
1561
|
+
500: string;
|
|
1562
|
+
550: string;
|
|
1563
|
+
575: string;
|
|
1564
|
+
600: string;
|
|
1565
|
+
700: string;
|
|
1566
|
+
800: string;
|
|
1567
|
+
900: string;
|
|
1568
|
+
};
|
|
1569
|
+
success: {
|
|
1570
|
+
300: string;
|
|
1571
|
+
50: string;
|
|
1572
|
+
100: string;
|
|
1573
|
+
200: string;
|
|
1574
|
+
250: string;
|
|
1575
|
+
400: string;
|
|
1576
|
+
450: string;
|
|
1577
|
+
500: string;
|
|
1578
|
+
550: string;
|
|
1579
|
+
575: string;
|
|
1580
|
+
600: string;
|
|
1581
|
+
700: string;
|
|
1582
|
+
800: string;
|
|
1583
|
+
900: string;
|
|
1584
|
+
};
|
|
1585
|
+
warning: {
|
|
1586
|
+
300: string;
|
|
1587
|
+
50: string;
|
|
1588
|
+
100: string;
|
|
1589
|
+
200: string;
|
|
1590
|
+
250: string;
|
|
1591
|
+
400: string;
|
|
1592
|
+
450: string;
|
|
1593
|
+
500: string;
|
|
1594
|
+
550: string;
|
|
1595
|
+
575: string;
|
|
1596
|
+
600: string;
|
|
1597
|
+
700: string;
|
|
1598
|
+
800: string;
|
|
1599
|
+
900: string;
|
|
1600
|
+
};
|
|
1601
|
+
danger: {
|
|
1602
|
+
300: string;
|
|
1603
|
+
50: string;
|
|
1604
|
+
100: string;
|
|
1605
|
+
200: string;
|
|
1606
|
+
250: string;
|
|
1607
|
+
400: string;
|
|
1608
|
+
450: string;
|
|
1609
|
+
500: string;
|
|
1610
|
+
550: string;
|
|
1611
|
+
575: string;
|
|
1612
|
+
600: string;
|
|
1613
|
+
700: string;
|
|
1614
|
+
800: string;
|
|
1615
|
+
900: string;
|
|
1616
|
+
};
|
|
1617
|
+
info: {
|
|
1618
|
+
300: string;
|
|
1619
|
+
50: string;
|
|
1620
|
+
100: string;
|
|
1621
|
+
200: string;
|
|
1622
|
+
250: string;
|
|
1623
|
+
400: string;
|
|
1624
|
+
450: string;
|
|
1625
|
+
500: string;
|
|
1626
|
+
550: string;
|
|
1627
|
+
575: string;
|
|
1628
|
+
600: string;
|
|
1629
|
+
700: string;
|
|
1630
|
+
800: string;
|
|
1631
|
+
900: string;
|
|
1632
|
+
};
|
|
1633
|
+
green: {
|
|
1634
|
+
300: string;
|
|
1635
|
+
50: string;
|
|
1636
|
+
100: string;
|
|
1637
|
+
200: string;
|
|
1638
|
+
250: string;
|
|
1639
|
+
400: string;
|
|
1640
|
+
450: string;
|
|
1641
|
+
500: string;
|
|
1642
|
+
550: string;
|
|
1643
|
+
575: string;
|
|
1644
|
+
600: string;
|
|
1645
|
+
700: string;
|
|
1646
|
+
800: string;
|
|
1647
|
+
900: string;
|
|
1648
|
+
};
|
|
1649
|
+
yellow: {
|
|
1650
|
+
300: string;
|
|
1651
|
+
50: string;
|
|
1652
|
+
100: string;
|
|
1653
|
+
200: string;
|
|
1654
|
+
250: string;
|
|
1655
|
+
400: string;
|
|
1656
|
+
450: string;
|
|
1657
|
+
500: string;
|
|
1658
|
+
550: string;
|
|
1659
|
+
575: string;
|
|
1660
|
+
600: string;
|
|
1661
|
+
700: string;
|
|
1662
|
+
800: string;
|
|
1663
|
+
900: string;
|
|
1664
|
+
};
|
|
1665
|
+
red: {
|
|
1666
|
+
300: string;
|
|
1667
|
+
50: string;
|
|
1668
|
+
100: string;
|
|
1669
|
+
200: string;
|
|
1670
|
+
250: string;
|
|
1671
|
+
400: string;
|
|
1672
|
+
450: string;
|
|
1673
|
+
500: string;
|
|
1674
|
+
550: string;
|
|
1675
|
+
575: string;
|
|
1676
|
+
600: string;
|
|
1677
|
+
700: string;
|
|
1678
|
+
800: string;
|
|
1679
|
+
900: string;
|
|
1680
|
+
};
|
|
1681
|
+
orange: {
|
|
1682
|
+
300: string;
|
|
1683
|
+
50: string;
|
|
1684
|
+
100: string;
|
|
1685
|
+
200: string;
|
|
1686
|
+
250: string;
|
|
1687
|
+
400: string;
|
|
1688
|
+
450: string;
|
|
1689
|
+
500: string;
|
|
1690
|
+
550: string;
|
|
1691
|
+
575: string;
|
|
1692
|
+
600: string;
|
|
1693
|
+
700: string;
|
|
1694
|
+
800: string;
|
|
1695
|
+
900: string;
|
|
1696
|
+
};
|
|
1697
|
+
}>;
|
|
1698
|
+
setColors: (colors: Partial<Record<ColorName, string>>) => void;
|
|
1699
|
+
setTheme: (theme: Partial<ThemeOptions>) => void;
|
|
1700
|
+
resetTheme: () => void;
|
|
1701
|
+
getColor: (color: ColorName) => string;
|
|
1702
|
+
getPalette: () => Palette;
|
|
1703
|
+
isInitialized: ComputedRef<boolean>;
|
|
1704
|
+
}>;
|
|
1705
|
+
|
|
1348
1706
|
declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
1349
1707
|
|
|
1708
|
+
export declare type ThemeMode = 'light' | 'dark' | 'auto';
|
|
1709
|
+
|
|
1710
|
+
export declare interface ThemeOptions {
|
|
1711
|
+
/** Seed color to generate primary palette. Hex string */
|
|
1712
|
+
primary?: string;
|
|
1713
|
+
/** Seed color to generate secondary/gray palette */
|
|
1714
|
+
secondary?: string;
|
|
1715
|
+
/** Seed color to generate success palette */
|
|
1716
|
+
success?: string;
|
|
1717
|
+
/** Seed color to generate warning palette */
|
|
1718
|
+
warning?: string;
|
|
1719
|
+
/** Seed color to generate danger palette */
|
|
1720
|
+
danger?: string;
|
|
1721
|
+
/** Seed color to generate info palette */
|
|
1722
|
+
info?: string;
|
|
1723
|
+
/** Seed color to generate green palette (legacy) */
|
|
1724
|
+
green?: string;
|
|
1725
|
+
/** Seed color to generate yellow palette (legacy) */
|
|
1726
|
+
yellow?: string;
|
|
1727
|
+
/** Seed color to generate orange palette (legacy) */
|
|
1728
|
+
orange?: string;
|
|
1729
|
+
/** Seed color to generate red palette (legacy) */
|
|
1730
|
+
red?: string;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Theme preset interface
|
|
1735
|
+
*/
|
|
1736
|
+
export declare interface ThemePreset {
|
|
1737
|
+
name: string;
|
|
1738
|
+
theme: ThemeOptions;
|
|
1739
|
+
metadata: {
|
|
1740
|
+
created: string;
|
|
1741
|
+
version: string;
|
|
1742
|
+
description?: string;
|
|
1743
|
+
author?: string;
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Built-in theme presets
|
|
1749
|
+
*/
|
|
1750
|
+
export declare const themePresets: Record<string, ThemePreset>;
|
|
1751
|
+
|
|
1752
|
+
export { ThemeProvider }
|
|
1753
|
+
|
|
1754
|
+
export { ThemeToggle }
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Theme validation result
|
|
1758
|
+
*/
|
|
1759
|
+
export declare interface ThemeValidationResult {
|
|
1760
|
+
isValid: boolean;
|
|
1761
|
+
errors: string[];
|
|
1762
|
+
warnings: string[];
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1350
1765
|
export { Toast }
|
|
1351
1766
|
|
|
1352
1767
|
export { toast }
|
|
@@ -1482,6 +1897,419 @@ declare interface UseHoverCardOptions {
|
|
|
1482
1897
|
|
|
1483
1898
|
export declare function useModal(): ModalInstance;
|
|
1484
1899
|
|
|
1900
|
+
/**
|
|
1901
|
+
* Theme management composable
|
|
1902
|
+
* Provides reactive theme state and methods for theme manipulation
|
|
1903
|
+
*/
|
|
1904
|
+
export declare function useTheme(): {
|
|
1905
|
+
theme: ComputedRef< {
|
|
1906
|
+
primary?: string | undefined;
|
|
1907
|
+
secondary?: string | undefined;
|
|
1908
|
+
success?: string | undefined;
|
|
1909
|
+
warning?: string | undefined;
|
|
1910
|
+
danger?: string | undefined;
|
|
1911
|
+
info?: string | undefined;
|
|
1912
|
+
green?: string | undefined;
|
|
1913
|
+
yellow?: string | undefined;
|
|
1914
|
+
orange?: string | undefined;
|
|
1915
|
+
red?: string | undefined;
|
|
1916
|
+
}>;
|
|
1917
|
+
palette: ComputedRef< {
|
|
1918
|
+
primary: {
|
|
1919
|
+
300: string;
|
|
1920
|
+
50: string;
|
|
1921
|
+
100: string;
|
|
1922
|
+
200: string;
|
|
1923
|
+
250: string;
|
|
1924
|
+
400: string;
|
|
1925
|
+
450: string;
|
|
1926
|
+
500: string;
|
|
1927
|
+
550: string;
|
|
1928
|
+
575: string;
|
|
1929
|
+
600: string;
|
|
1930
|
+
700: string;
|
|
1931
|
+
800: string;
|
|
1932
|
+
900: string;
|
|
1933
|
+
};
|
|
1934
|
+
secondary: {
|
|
1935
|
+
300: string;
|
|
1936
|
+
50: string;
|
|
1937
|
+
100: string;
|
|
1938
|
+
200: string;
|
|
1939
|
+
250: string;
|
|
1940
|
+
400: string;
|
|
1941
|
+
450: string;
|
|
1942
|
+
500: string;
|
|
1943
|
+
550: string;
|
|
1944
|
+
575: string;
|
|
1945
|
+
600: string;
|
|
1946
|
+
700: string;
|
|
1947
|
+
800: string;
|
|
1948
|
+
900: string;
|
|
1949
|
+
};
|
|
1950
|
+
success: {
|
|
1951
|
+
300: string;
|
|
1952
|
+
50: string;
|
|
1953
|
+
100: string;
|
|
1954
|
+
200: string;
|
|
1955
|
+
250: string;
|
|
1956
|
+
400: string;
|
|
1957
|
+
450: string;
|
|
1958
|
+
500: string;
|
|
1959
|
+
550: string;
|
|
1960
|
+
575: string;
|
|
1961
|
+
600: string;
|
|
1962
|
+
700: string;
|
|
1963
|
+
800: string;
|
|
1964
|
+
900: string;
|
|
1965
|
+
};
|
|
1966
|
+
warning: {
|
|
1967
|
+
300: string;
|
|
1968
|
+
50: string;
|
|
1969
|
+
100: string;
|
|
1970
|
+
200: string;
|
|
1971
|
+
250: string;
|
|
1972
|
+
400: string;
|
|
1973
|
+
450: string;
|
|
1974
|
+
500: string;
|
|
1975
|
+
550: string;
|
|
1976
|
+
575: string;
|
|
1977
|
+
600: string;
|
|
1978
|
+
700: string;
|
|
1979
|
+
800: string;
|
|
1980
|
+
900: string;
|
|
1981
|
+
};
|
|
1982
|
+
danger: {
|
|
1983
|
+
300: string;
|
|
1984
|
+
50: string;
|
|
1985
|
+
100: string;
|
|
1986
|
+
200: string;
|
|
1987
|
+
250: string;
|
|
1988
|
+
400: string;
|
|
1989
|
+
450: string;
|
|
1990
|
+
500: string;
|
|
1991
|
+
550: string;
|
|
1992
|
+
575: string;
|
|
1993
|
+
600: string;
|
|
1994
|
+
700: string;
|
|
1995
|
+
800: string;
|
|
1996
|
+
900: string;
|
|
1997
|
+
};
|
|
1998
|
+
info: {
|
|
1999
|
+
300: string;
|
|
2000
|
+
50: string;
|
|
2001
|
+
100: string;
|
|
2002
|
+
200: string;
|
|
2003
|
+
250: string;
|
|
2004
|
+
400: string;
|
|
2005
|
+
450: string;
|
|
2006
|
+
500: string;
|
|
2007
|
+
550: string;
|
|
2008
|
+
575: string;
|
|
2009
|
+
600: string;
|
|
2010
|
+
700: string;
|
|
2011
|
+
800: string;
|
|
2012
|
+
900: string;
|
|
2013
|
+
};
|
|
2014
|
+
green: {
|
|
2015
|
+
300: string;
|
|
2016
|
+
50: string;
|
|
2017
|
+
100: string;
|
|
2018
|
+
200: string;
|
|
2019
|
+
250: string;
|
|
2020
|
+
400: string;
|
|
2021
|
+
450: string;
|
|
2022
|
+
500: string;
|
|
2023
|
+
550: string;
|
|
2024
|
+
575: string;
|
|
2025
|
+
600: string;
|
|
2026
|
+
700: string;
|
|
2027
|
+
800: string;
|
|
2028
|
+
900: string;
|
|
2029
|
+
};
|
|
2030
|
+
yellow: {
|
|
2031
|
+
300: string;
|
|
2032
|
+
50: string;
|
|
2033
|
+
100: string;
|
|
2034
|
+
200: string;
|
|
2035
|
+
250: string;
|
|
2036
|
+
400: string;
|
|
2037
|
+
450: string;
|
|
2038
|
+
500: string;
|
|
2039
|
+
550: string;
|
|
2040
|
+
575: string;
|
|
2041
|
+
600: string;
|
|
2042
|
+
700: string;
|
|
2043
|
+
800: string;
|
|
2044
|
+
900: string;
|
|
2045
|
+
};
|
|
2046
|
+
red: {
|
|
2047
|
+
300: string;
|
|
2048
|
+
50: string;
|
|
2049
|
+
100: string;
|
|
2050
|
+
200: string;
|
|
2051
|
+
250: string;
|
|
2052
|
+
400: string;
|
|
2053
|
+
450: string;
|
|
2054
|
+
500: string;
|
|
2055
|
+
550: string;
|
|
2056
|
+
575: string;
|
|
2057
|
+
600: string;
|
|
2058
|
+
700: string;
|
|
2059
|
+
800: string;
|
|
2060
|
+
900: string;
|
|
2061
|
+
};
|
|
2062
|
+
orange: {
|
|
2063
|
+
300: string;
|
|
2064
|
+
50: string;
|
|
2065
|
+
100: string;
|
|
2066
|
+
200: string;
|
|
2067
|
+
250: string;
|
|
2068
|
+
400: string;
|
|
2069
|
+
450: string;
|
|
2070
|
+
500: string;
|
|
2071
|
+
550: string;
|
|
2072
|
+
575: string;
|
|
2073
|
+
600: string;
|
|
2074
|
+
700: string;
|
|
2075
|
+
800: string;
|
|
2076
|
+
900: string;
|
|
2077
|
+
};
|
|
2078
|
+
}>;
|
|
2079
|
+
setColors: (colors: Partial<Record<ColorName, string>>) => void;
|
|
2080
|
+
setTheme: (theme: Partial<ThemeOptions>) => void;
|
|
2081
|
+
resetTheme: () => void;
|
|
2082
|
+
getColor: (color: ColorName) => string;
|
|
2083
|
+
getPalette: () => Palette;
|
|
2084
|
+
isInitialized: ComputedRef<boolean>;
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* Access theme context from ThemeProvider
|
|
2089
|
+
* Falls back to standalone useTheme if no provider is found
|
|
2090
|
+
*/
|
|
2091
|
+
export declare function useThemeContext(): {
|
|
2092
|
+
theme: ComputedRef< {
|
|
2093
|
+
primary?: string | undefined;
|
|
2094
|
+
secondary?: string | undefined;
|
|
2095
|
+
success?: string | undefined;
|
|
2096
|
+
warning?: string | undefined;
|
|
2097
|
+
danger?: string | undefined;
|
|
2098
|
+
info?: string | undefined;
|
|
2099
|
+
green?: string | undefined;
|
|
2100
|
+
yellow?: string | undefined;
|
|
2101
|
+
orange?: string | undefined;
|
|
2102
|
+
red?: string | undefined;
|
|
2103
|
+
}>;
|
|
2104
|
+
palette: ComputedRef< {
|
|
2105
|
+
primary: {
|
|
2106
|
+
300: string;
|
|
2107
|
+
50: string;
|
|
2108
|
+
100: string;
|
|
2109
|
+
200: string;
|
|
2110
|
+
250: string;
|
|
2111
|
+
400: string;
|
|
2112
|
+
450: string;
|
|
2113
|
+
500: string;
|
|
2114
|
+
550: string;
|
|
2115
|
+
575: string;
|
|
2116
|
+
600: string;
|
|
2117
|
+
700: string;
|
|
2118
|
+
800: string;
|
|
2119
|
+
900: string;
|
|
2120
|
+
};
|
|
2121
|
+
secondary: {
|
|
2122
|
+
300: string;
|
|
2123
|
+
50: string;
|
|
2124
|
+
100: string;
|
|
2125
|
+
200: string;
|
|
2126
|
+
250: string;
|
|
2127
|
+
400: string;
|
|
2128
|
+
450: string;
|
|
2129
|
+
500: string;
|
|
2130
|
+
550: string;
|
|
2131
|
+
575: string;
|
|
2132
|
+
600: string;
|
|
2133
|
+
700: string;
|
|
2134
|
+
800: string;
|
|
2135
|
+
900: string;
|
|
2136
|
+
};
|
|
2137
|
+
success: {
|
|
2138
|
+
300: string;
|
|
2139
|
+
50: string;
|
|
2140
|
+
100: string;
|
|
2141
|
+
200: string;
|
|
2142
|
+
250: string;
|
|
2143
|
+
400: string;
|
|
2144
|
+
450: string;
|
|
2145
|
+
500: string;
|
|
2146
|
+
550: string;
|
|
2147
|
+
575: string;
|
|
2148
|
+
600: string;
|
|
2149
|
+
700: string;
|
|
2150
|
+
800: string;
|
|
2151
|
+
900: string;
|
|
2152
|
+
};
|
|
2153
|
+
warning: {
|
|
2154
|
+
300: string;
|
|
2155
|
+
50: string;
|
|
2156
|
+
100: string;
|
|
2157
|
+
200: string;
|
|
2158
|
+
250: string;
|
|
2159
|
+
400: string;
|
|
2160
|
+
450: string;
|
|
2161
|
+
500: string;
|
|
2162
|
+
550: string;
|
|
2163
|
+
575: string;
|
|
2164
|
+
600: string;
|
|
2165
|
+
700: string;
|
|
2166
|
+
800: string;
|
|
2167
|
+
900: string;
|
|
2168
|
+
};
|
|
2169
|
+
danger: {
|
|
2170
|
+
300: string;
|
|
2171
|
+
50: string;
|
|
2172
|
+
100: string;
|
|
2173
|
+
200: string;
|
|
2174
|
+
250: string;
|
|
2175
|
+
400: string;
|
|
2176
|
+
450: string;
|
|
2177
|
+
500: string;
|
|
2178
|
+
550: string;
|
|
2179
|
+
575: string;
|
|
2180
|
+
600: string;
|
|
2181
|
+
700: string;
|
|
2182
|
+
800: string;
|
|
2183
|
+
900: string;
|
|
2184
|
+
};
|
|
2185
|
+
info: {
|
|
2186
|
+
300: string;
|
|
2187
|
+
50: string;
|
|
2188
|
+
100: string;
|
|
2189
|
+
200: string;
|
|
2190
|
+
250: string;
|
|
2191
|
+
400: string;
|
|
2192
|
+
450: string;
|
|
2193
|
+
500: string;
|
|
2194
|
+
550: string;
|
|
2195
|
+
575: string;
|
|
2196
|
+
600: string;
|
|
2197
|
+
700: string;
|
|
2198
|
+
800: string;
|
|
2199
|
+
900: string;
|
|
2200
|
+
};
|
|
2201
|
+
green: {
|
|
2202
|
+
300: string;
|
|
2203
|
+
50: string;
|
|
2204
|
+
100: string;
|
|
2205
|
+
200: string;
|
|
2206
|
+
250: string;
|
|
2207
|
+
400: string;
|
|
2208
|
+
450: string;
|
|
2209
|
+
500: string;
|
|
2210
|
+
550: string;
|
|
2211
|
+
575: string;
|
|
2212
|
+
600: string;
|
|
2213
|
+
700: string;
|
|
2214
|
+
800: string;
|
|
2215
|
+
900: string;
|
|
2216
|
+
};
|
|
2217
|
+
yellow: {
|
|
2218
|
+
300: string;
|
|
2219
|
+
50: string;
|
|
2220
|
+
100: string;
|
|
2221
|
+
200: string;
|
|
2222
|
+
250: string;
|
|
2223
|
+
400: string;
|
|
2224
|
+
450: string;
|
|
2225
|
+
500: string;
|
|
2226
|
+
550: string;
|
|
2227
|
+
575: string;
|
|
2228
|
+
600: string;
|
|
2229
|
+
700: string;
|
|
2230
|
+
800: string;
|
|
2231
|
+
900: string;
|
|
2232
|
+
};
|
|
2233
|
+
red: {
|
|
2234
|
+
300: string;
|
|
2235
|
+
50: string;
|
|
2236
|
+
100: string;
|
|
2237
|
+
200: string;
|
|
2238
|
+
250: string;
|
|
2239
|
+
400: string;
|
|
2240
|
+
450: string;
|
|
2241
|
+
500: string;
|
|
2242
|
+
550: string;
|
|
2243
|
+
575: string;
|
|
2244
|
+
600: string;
|
|
2245
|
+
700: string;
|
|
2246
|
+
800: string;
|
|
2247
|
+
900: string;
|
|
2248
|
+
};
|
|
2249
|
+
orange: {
|
|
2250
|
+
300: string;
|
|
2251
|
+
50: string;
|
|
2252
|
+
100: string;
|
|
2253
|
+
200: string;
|
|
2254
|
+
250: string;
|
|
2255
|
+
400: string;
|
|
2256
|
+
450: string;
|
|
2257
|
+
500: string;
|
|
2258
|
+
550: string;
|
|
2259
|
+
575: string;
|
|
2260
|
+
600: string;
|
|
2261
|
+
700: string;
|
|
2262
|
+
800: string;
|
|
2263
|
+
900: string;
|
|
2264
|
+
};
|
|
2265
|
+
}>;
|
|
2266
|
+
setColors: (colors: Partial<Record<ColorName, string>>) => void;
|
|
2267
|
+
setTheme: (theme: Partial<ThemeOptions>) => void;
|
|
2268
|
+
resetTheme: () => void;
|
|
2269
|
+
getColor: (color: ColorName) => string;
|
|
2270
|
+
getPalette: () => Palette;
|
|
2271
|
+
isInitialized: ComputedRef<boolean>;
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* Theme mode management composable
|
|
2276
|
+
* Handles light/dark mode detection, switching, and persistence
|
|
2277
|
+
*/
|
|
2278
|
+
export declare function useThemeMode(): {
|
|
2279
|
+
mode: ComputedRef<ThemeMode>;
|
|
2280
|
+
effectiveMode: ComputedRef<"light" | "dark">;
|
|
2281
|
+
systemPreference: ComputedRef<"light" | "dark">;
|
|
2282
|
+
isInitialized: ComputedRef<boolean>;
|
|
2283
|
+
setMode: (mode: ThemeMode) => void;
|
|
2284
|
+
toggleMode: () => void;
|
|
2285
|
+
isLight: ComputedRef<boolean>;
|
|
2286
|
+
isDark: ComputedRef<boolean>;
|
|
2287
|
+
isAuto: ComputedRef<boolean>;
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Shorthand for useThemeContext
|
|
2292
|
+
*/
|
|
2293
|
+
export declare const useThemeProvider: typeof useThemeContext;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Validate dark mode color contrast
|
|
2297
|
+
*/
|
|
2298
|
+
export declare function validateDarkModeContrast(foreground: string, background: string): boolean;
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Validate a theme configuration
|
|
2302
|
+
*/
|
|
2303
|
+
export declare function validateTheme(theme: Partial<ThemeOptions>): ThemeValidationResult;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* Validates theme options
|
|
2307
|
+
*/
|
|
2308
|
+
export declare function validateThemeOptions(options: ThemeOptions): {
|
|
2309
|
+
valid: boolean;
|
|
2310
|
+
errors: string[];
|
|
2311
|
+
};
|
|
2312
|
+
|
|
1485
2313
|
declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text' | 'gradient';
|
|
1486
2314
|
|
|
1487
2315
|
export { }
|