@contentstudio/ui 0.1.58 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts 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';
@@ -33,6 +34,7 @@ import { default as Popover } from './Popover.vue';
33
34
  import { default as Progress } from './Progress.vue';
34
35
  import { default as Radio } from './Radio.vue';
35
36
  import { Ref } from 'vue';
37
+ import { default as SearchInput } from './SearchInput.vue';
36
38
  import { default as SegmentedControl } from './SegmentedControl.vue';
37
39
  import { default as SplitButton } from './SplitButton.vue';
38
40
  import { default as Switch } from './Switch.vue';
@@ -42,6 +44,8 @@ import { default as TabsPanel } from './TabsPanel.vue';
42
44
  import { default as TabsTab } from './TabsTab.vue';
43
45
  import { default as Textarea } from './Textarea.vue';
44
46
  import { default as TextInput } from './TextInput.vue';
47
+ import { default as ThemeProvider } from './ThemeProvider.vue';
48
+ import { default as ThemeToggle } from './ThemeToggle.vue';
45
49
  import { default as Toast } from './Toast.vue';
46
50
  import { toast } from 'vue3-toastify';
47
51
  import { ToastContainerOptions } from 'vue3-toastify';
@@ -105,7 +109,7 @@ export declare interface AlertProps {
105
109
  /** Alert variant */
106
110
  variant?: VariantType;
107
111
  /** Color of the alert */
108
- color?: ColorVariant;
112
+ color?: ColorVariant_2;
109
113
  /** Size of the alert */
110
114
  size?: ComponentSize;
111
115
  /** Whether to show close button */
@@ -124,6 +128,14 @@ export declare interface AlertProps {
124
128
  class?: string;
125
129
  }
126
130
 
131
+ /**
132
+ * Writes CSS variables to :root based on the palette returned by `generatePalette`.
133
+ */
134
+ /**
135
+ * Writes CSS variables to :root based on the palette returned by `generatePalette`.
136
+ */
137
+ export declare function applyTheme(palette: Palette): void;
138
+
127
139
  export { Avatar }
128
140
 
129
141
  export { AvatarGroup }
@@ -136,7 +148,7 @@ export declare interface AvatarGroupProps {
136
148
  /** Outline width for avatars in the group */
137
149
  outlineWidth?: 'none' | 'thin' | 'normal' | 'medium' | 'thick' | string | number;
138
150
  /** Outline color for avatars in the group */
139
- outlineColor?: ColorVariant | string;
151
+ outlineColor?: ColorVariant_2 | string;
140
152
  /** Outline offset for avatars in the group */
141
153
  outlineOffset?: 'none' | 'inset' | 'small' | 'medium' | 'large' | string | number;
142
154
  /** Custom CSS classes to apply to the avatar group */
@@ -153,11 +165,11 @@ export declare interface AvatarProps {
153
165
  /** Border radius of the avatar */
154
166
  radius?: Radius;
155
167
  /** Color of the avatar */
156
- color?: ColorVariant | 'initials';
168
+ color?: ColorVariant_2 | 'initials';
157
169
  /** Gradient configuration when variant is gradient */
158
170
  gradient?: {
159
- from: ColorVariant;
160
- to: ColorVariant;
171
+ from: ColorVariant_2;
172
+ to: ColorVariant_2;
161
173
  deg?: number;
162
174
  };
163
175
  /** Image source URL */
@@ -173,7 +185,7 @@ export declare interface AvatarProps {
173
185
  /** User name for generating initials when src is not available */
174
186
  name?: string;
175
187
  /** Colors used for autogenerated initials */
176
- allowedInitialsColors?: ColorVariant[];
188
+ allowedInitialsColors?: ColorVariant_2[];
177
189
  /** Component variant */
178
190
  variant?: AvatarVariant;
179
191
  /** HTML element or component to render as */
@@ -278,7 +290,7 @@ export declare interface CheckboxProps {
278
290
  value?: string | number;
279
291
  id?: string;
280
292
  label?: string;
281
- color?: ColorVariant;
293
+ color?: ColorVariant_2;
282
294
  size?: Size;
283
295
  radius?: 'sm' | 'md' | 'lg' | 'full';
284
296
  labelPosition?: 'left' | 'right';
@@ -286,7 +298,7 @@ export declare interface CheckboxProps {
286
298
  error?: string;
287
299
  disabled?: boolean;
288
300
  indeterminate?: boolean;
289
- iconColor?: ColorVariant;
301
+ iconColor?: ColorVariant_2;
290
302
  autoContrast?: boolean;
291
303
  variant?: CheckboxVariant;
292
304
  }
@@ -359,7 +371,14 @@ export declare interface CollapsibleProps {
359
371
  modelValue?: boolean;
360
372
  }
361
373
 
362
- declare type ColorVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
374
+ export declare type ColorName = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'green' | 'yellow' | 'orange' | 'red';
375
+
376
+ /**
377
+ * All available color variants (core + semantic + legacy)
378
+ */
379
+ export declare type ColorVariant = 'primary' | 'secondary' | SemanticColorVariant | 'green' | 'yellow' | 'orange' | 'red';
380
+
381
+ declare type ColorVariant_2 = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
363
382
 
364
383
  declare type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
365
384
 
@@ -367,6 +386,11 @@ declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
367
386
 
368
387
  export declare const composables: {};
369
388
 
389
+ /**
390
+ * Create a theme preset - a predefined theme configuration
391
+ */
392
+ export declare function createThemePreset(name: string, theme: Partial<ThemeOptions>): ThemePreset;
393
+
370
394
  export declare const cstuToast: {
371
395
  show(content: string, options?: Partial<ToastOptions>): Id;
372
396
  success(content: string, options?: Partial<ToastOptions>): Id;
@@ -413,6 +437,23 @@ export { CustomToast }
413
437
 
414
438
  export declare type CustomToastType = 'info' | 'warning' | 'success' | 'error' | 'loading' | 'dark' | 'default';
415
439
 
440
+ /**
441
+ * Default theme configuration with semantic colors
442
+ */
443
+ export declare interface DefaultTheme {
444
+ primary: string;
445
+ secondary: string;
446
+ success: string;
447
+ warning: string;
448
+ danger: string;
449
+ info: string;
450
+ }
451
+
452
+ /**
453
+ * Default theme configuration with semantic colors
454
+ */
455
+ export declare const defaultTheme: DefaultTheme;
456
+
416
457
  export { Dialog }
417
458
 
418
459
  export declare interface DialogProps {
@@ -550,6 +591,78 @@ export declare interface DropdownProps {
550
591
  matchWidth?: boolean;
551
592
  }
552
593
 
594
+ /**
595
+ * Export configuration as a string that can be written to tailwind.config.js
596
+ */
597
+ export declare function exportTailwindConfig(theme: ThemeOptions, options?: TailwindConfigOptions): string;
598
+
599
+ /**
600
+ * Extend the default theme with custom colors
601
+ */
602
+ export declare function extendTheme(customTheme: Partial<ThemeOptions>): ThemeOptions;
603
+
604
+ /**
605
+ * Generate CSS custom properties from theme
606
+ */
607
+ export declare function generateCSSCustomProperties(theme: ThemeOptions): string;
608
+
609
+ /**
610
+ * Generate complete CSTU color configuration for client-side usage
611
+ * Returns static color config matching tailwind.config.js with cstu- prefix
612
+ * Usage: cstu-bg-primary-500, cstu-text-danger-600, etc.
613
+ */
614
+ export declare function generateCstuColorConfig(): Record<string, Record<string, string>>;
615
+
616
+ /**
617
+ * Generate dark mode palette from light mode palette
618
+ */
619
+ export declare function generateDarkModePalette(lightPalette: Palette): Palette;
620
+
621
+ /**
622
+ * Generate complete Tailwind configuration object
623
+ */
624
+ export declare function generateFullTailwindConfig(theme: ThemeOptions, options?: TailwindConfigOptions): TailwindConfigObject;
625
+
626
+ /**
627
+ * Generate theme integration code for consumer projects
628
+ */
629
+ export declare function generateIntegrationCode(theme: ThemeOptions): string;
630
+
631
+ export declare function generatePalette(options: ThemeOptions): Palette;
632
+
633
+ /**
634
+ * Generate Tailwind plugins for custom utilities
635
+ */
636
+ export declare function generatePlugins(palette: Palette): string[];
637
+
638
+ /**
639
+ * Generate Tailwind safelist patterns for dynamic classes
640
+ */
641
+ export declare function generateSafelist(palette: Palette): string[];
642
+
643
+ export declare function generateShades(seed: string): Record<Shade, string>;
644
+
645
+ /**
646
+ * Generate Tailwind color configuration from palette using direct RGB values
647
+ */
648
+ export declare function generateTailwindColors(palette: Palette): Record<string, Record<string, string>>;
649
+
650
+ /**
651
+ * Generate Tailwind CSS configuration from a theme
652
+ */
653
+ export declare function generateTailwindConfig(theme: ThemeOptions): TailwindThemeConfig;
654
+
655
+ /**
656
+ * Get current theme mode without reactivity
657
+ * Useful for server-side rendering or static contexts
658
+ */
659
+ export declare function getCurrentThemeMode(): 'light' | 'dark';
660
+
661
+ /**
662
+ * Get optimal text color for dark mode backgrounds
663
+ */
664
+ export declare function getDarkModeTextColor(backgroundColor: string): string;
665
+
553
666
  /**
554
667
  * Extracts initials from a name string
555
668
  */
@@ -558,7 +671,17 @@ export declare function getInitials(name: string): string;
558
671
  /**
559
672
  * Generates a color from a string (name) using a simple hash function
560
673
  */
561
- export declare function getInitialsColor(name: string, allowedColors?: ColorVariant[]): ColorVariant;
674
+ export declare function getInitialsColor(name: string, allowedColors?: ColorVariant_2[]): ColorVariant_2;
675
+
676
+ /**
677
+ * Get a theme preset by name
678
+ */
679
+ export declare function getThemePreset(name: string): ThemePreset | null;
680
+
681
+ /**
682
+ * Get all available theme presets
683
+ */
684
+ export declare function getThemePresets(): ThemePreset[];
562
685
 
563
686
  export { HoverCard }
564
687
 
@@ -659,6 +782,11 @@ export declare interface IndicatorProps {
659
782
  zIndex?: number;
660
783
  }
661
784
 
785
+ /**
786
+ * Validates a hex color string
787
+ */
788
+ export declare function isValidHexColor(hex: string): boolean;
789
+
662
790
  export declare type JustifyContent = 'start' | 'center' | 'end' | 'space-between';
663
791
 
664
792
  export { ListItem }
@@ -702,6 +830,11 @@ export declare type MantineRadius = 'none' | 'sm' | 'md' | 'lg' | 'full' | numbe
702
830
 
703
831
  export declare type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
704
832
 
833
+ /**
834
+ * Deep merge two theme objects, with the second theme taking precedence
835
+ */
836
+ export declare function mergeThemes(baseTheme: ThemeOptions, extendTheme: Partial<ThemeOptions>): ThemeOptions;
837
+
705
838
  export { Modal }
706
839
 
707
840
  export declare const ModalDirective: {
@@ -824,6 +957,11 @@ export declare interface ModalProps {
824
957
  ariaLabel?: string;
825
958
  }
826
959
 
960
+ /**
961
+ * Auto-adjust colors for better dark mode compatibility
962
+ */
963
+ export declare function optimizeForDarkMode(palette: Palette): Palette;
964
+
827
965
  export { Pagination }
828
966
 
829
967
  export declare interface PaginationProps {
@@ -859,6 +997,11 @@ export declare interface PaginationProps {
859
997
 
860
998
  export declare type PaginationVariant = 'filled' | 'outline';
861
999
 
1000
+ /**
1001
+ * A mapping of color -> shade -> hex string
1002
+ */
1003
+ export declare type Palette = Record<ColorName, Record<Shade, string>>;
1004
+
862
1005
  export { Pill }
863
1006
 
864
1007
  export declare interface PillEmits {
@@ -875,7 +1018,7 @@ export declare interface PillProps {
875
1018
  /** If pill is disabled it has higher contrast and remove button is hidden */
876
1019
  disabled?: boolean;
877
1020
  /** Color variant of the pill */
878
- color: ColorVariant;
1021
+ color: ColorVariant_2;
879
1022
  /** Style variant of the pill */
880
1023
  variant?: PillVariant;
881
1024
  }
@@ -1066,6 +1209,61 @@ export declare type RadioVariant = 'filled' | 'outlined';
1066
1209
 
1067
1210
  declare type Radius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
1068
1211
 
1212
+ export declare type SearchDisplayMode = 'icon-only' | 'icon-placeholder' | 'full-width';
1213
+
1214
+ export { SearchInput }
1215
+
1216
+ export declare interface SearchInputProps {
1217
+ /** Component ID */
1218
+ id?: string;
1219
+ /** Model value for v-model binding */
1220
+ modelValue?: string;
1221
+ /** Placeholder text */
1222
+ placeholder?: string;
1223
+ /** Label text */
1224
+ label?: string;
1225
+ /** Description text */
1226
+ description?: string;
1227
+ /** Error message */
1228
+ error?: string;
1229
+ /** Whether the component has an error */
1230
+ hasError?: boolean;
1231
+ /** Whether the component is disabled */
1232
+ disabled?: boolean;
1233
+ /** Whether the component is readonly */
1234
+ readonly?: boolean;
1235
+ /** Whether the component is required */
1236
+ required?: boolean;
1237
+ /** Whether to show an asterisk for required field */
1238
+ withAsterisk?: boolean;
1239
+ /** Whether to show both error and description */
1240
+ showBothErrorAndDescription?: boolean;
1241
+ /** Additional input props */
1242
+ inputProps?: Record<string, any>;
1243
+ /** Component size */
1244
+ size?: ComponentSize;
1245
+ /** Component variant */
1246
+ variant?: 'default' | 'filled' | 'unstyled';
1247
+ /** Border radius */
1248
+ radius?: ComponentRadius;
1249
+ /** Custom class for the component */
1250
+ class?: string;
1251
+ /** Initial display mode */
1252
+ displayMode?: SearchDisplayMode;
1253
+ /** Default width when not expanded */
1254
+ defaultWidth?: string;
1255
+ /** Expanded width when focused */
1256
+ expandedWidth?: string;
1257
+ /** Whether to show clear button when input has value */
1258
+ withClearButton?: boolean;
1259
+ /** Whether to expand on focus */
1260
+ expandOnFocus?: boolean;
1261
+ /** Whether to restore to default width on blur */
1262
+ collapseOnBlur?: boolean;
1263
+ /** Custom icon component */
1264
+ icon?: string;
1265
+ }
1266
+
1069
1267
  declare type SectionProps = Record<string, any>;
1070
1268
 
1071
1269
  export { SegmentedControl }
@@ -1151,6 +1349,13 @@ export declare interface SelectProps {
1151
1349
  nothingFoundMessage?: string;
1152
1350
  }
1153
1351
 
1352
+ /**
1353
+ * Semantic color variants for components
1354
+ */
1355
+ export declare type SemanticColorVariant = 'success' | 'warning' | 'danger' | 'info';
1356
+
1357
+ export declare type Shade = 50 | 100 | 200 | 250 | 300 | 400 | 450 | 500 | 550 | 575 | 600 | 700 | 800 | 900;
1358
+
1154
1359
  declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
1155
1360
 
1156
1361
  export { SplitButton }
@@ -1241,6 +1446,32 @@ export { TabsPanel }
1241
1446
 
1242
1447
  export { TabsTab }
1243
1448
 
1449
+ export declare interface TailwindConfigObject {
1450
+ content: string[];
1451
+ darkMode: 'media' | 'class';
1452
+ theme: {
1453
+ extend: Record<string, any>;
1454
+ };
1455
+ plugins: any[];
1456
+ safelist: string[];
1457
+ }
1458
+
1459
+ export declare interface TailwindConfigOptions {
1460
+ content?: string[];
1461
+ darkMode?: 'media' | 'class';
1462
+ extendTheme?: Record<string, any>;
1463
+ plugins?: any[];
1464
+ }
1465
+
1466
+ /**
1467
+ * TypeScript interfaces
1468
+ */
1469
+ export declare interface TailwindThemeConfig {
1470
+ colors: Record<string, Record<string, string>>;
1471
+ safelist: string[];
1472
+ plugins: string[];
1473
+ }
1474
+
1244
1475
  export { Textarea }
1245
1476
 
1246
1477
  export declare interface TextareaProps {
@@ -1289,7 +1520,7 @@ export declare interface TextareaProps {
1289
1520
  /** Take full width of container */
1290
1521
  fullWidth?: boolean;
1291
1522
  /** Component color */
1292
- color?: ColorVariant;
1523
+ color?: ColorVariant_2;
1293
1524
  /** Custom class for the component */
1294
1525
  class?: string;
1295
1526
  /** Custom class for the input */
@@ -1345,8 +1576,248 @@ export declare interface TextInputProps {
1345
1576
  leftSectionProps?: SectionProps;
1346
1577
  }
1347
1578
 
1579
+ export declare const THEME_INJECTION_KEY: InjectionKey<{
1580
+ theme: ComputedRef< {
1581
+ primary?: string | undefined;
1582
+ secondary?: string | undefined;
1583
+ success?: string | undefined;
1584
+ warning?: string | undefined;
1585
+ danger?: string | undefined;
1586
+ info?: string | undefined;
1587
+ green?: string | undefined;
1588
+ yellow?: string | undefined;
1589
+ orange?: string | undefined;
1590
+ red?: string | undefined;
1591
+ }>;
1592
+ palette: ComputedRef< {
1593
+ primary: {
1594
+ 300: string;
1595
+ 50: string;
1596
+ 100: string;
1597
+ 200: string;
1598
+ 250: string;
1599
+ 400: string;
1600
+ 450: string;
1601
+ 500: string;
1602
+ 550: string;
1603
+ 575: string;
1604
+ 600: string;
1605
+ 700: string;
1606
+ 800: string;
1607
+ 900: string;
1608
+ };
1609
+ secondary: {
1610
+ 300: string;
1611
+ 50: string;
1612
+ 100: string;
1613
+ 200: string;
1614
+ 250: string;
1615
+ 400: string;
1616
+ 450: string;
1617
+ 500: string;
1618
+ 550: string;
1619
+ 575: string;
1620
+ 600: string;
1621
+ 700: string;
1622
+ 800: string;
1623
+ 900: string;
1624
+ };
1625
+ success: {
1626
+ 300: string;
1627
+ 50: string;
1628
+ 100: string;
1629
+ 200: string;
1630
+ 250: string;
1631
+ 400: string;
1632
+ 450: string;
1633
+ 500: string;
1634
+ 550: string;
1635
+ 575: string;
1636
+ 600: string;
1637
+ 700: string;
1638
+ 800: string;
1639
+ 900: string;
1640
+ };
1641
+ warning: {
1642
+ 300: string;
1643
+ 50: string;
1644
+ 100: string;
1645
+ 200: string;
1646
+ 250: string;
1647
+ 400: string;
1648
+ 450: string;
1649
+ 500: string;
1650
+ 550: string;
1651
+ 575: string;
1652
+ 600: string;
1653
+ 700: string;
1654
+ 800: string;
1655
+ 900: string;
1656
+ };
1657
+ danger: {
1658
+ 300: string;
1659
+ 50: string;
1660
+ 100: string;
1661
+ 200: string;
1662
+ 250: string;
1663
+ 400: string;
1664
+ 450: string;
1665
+ 500: string;
1666
+ 550: string;
1667
+ 575: string;
1668
+ 600: string;
1669
+ 700: string;
1670
+ 800: string;
1671
+ 900: string;
1672
+ };
1673
+ info: {
1674
+ 300: string;
1675
+ 50: string;
1676
+ 100: string;
1677
+ 200: string;
1678
+ 250: string;
1679
+ 400: string;
1680
+ 450: string;
1681
+ 500: string;
1682
+ 550: string;
1683
+ 575: string;
1684
+ 600: string;
1685
+ 700: string;
1686
+ 800: string;
1687
+ 900: string;
1688
+ };
1689
+ green: {
1690
+ 300: string;
1691
+ 50: string;
1692
+ 100: string;
1693
+ 200: string;
1694
+ 250: string;
1695
+ 400: string;
1696
+ 450: string;
1697
+ 500: string;
1698
+ 550: string;
1699
+ 575: string;
1700
+ 600: string;
1701
+ 700: string;
1702
+ 800: string;
1703
+ 900: string;
1704
+ };
1705
+ yellow: {
1706
+ 300: string;
1707
+ 50: string;
1708
+ 100: string;
1709
+ 200: string;
1710
+ 250: string;
1711
+ 400: string;
1712
+ 450: string;
1713
+ 500: string;
1714
+ 550: string;
1715
+ 575: string;
1716
+ 600: string;
1717
+ 700: string;
1718
+ 800: string;
1719
+ 900: string;
1720
+ };
1721
+ red: {
1722
+ 300: string;
1723
+ 50: string;
1724
+ 100: string;
1725
+ 200: string;
1726
+ 250: string;
1727
+ 400: string;
1728
+ 450: string;
1729
+ 500: string;
1730
+ 550: string;
1731
+ 575: string;
1732
+ 600: string;
1733
+ 700: string;
1734
+ 800: string;
1735
+ 900: string;
1736
+ };
1737
+ orange: {
1738
+ 300: string;
1739
+ 50: string;
1740
+ 100: string;
1741
+ 200: string;
1742
+ 250: string;
1743
+ 400: string;
1744
+ 450: string;
1745
+ 500: string;
1746
+ 550: string;
1747
+ 575: string;
1748
+ 600: string;
1749
+ 700: string;
1750
+ 800: string;
1751
+ 900: string;
1752
+ };
1753
+ }>;
1754
+ setColors: (colors: Partial<Record<ColorName, string>>) => void;
1755
+ setTheme: (theme: Partial<ThemeOptions>) => void;
1756
+ resetTheme: () => void;
1757
+ getColor: (color: ColorName) => string;
1758
+ getPalette: () => Palette;
1759
+ isInitialized: ComputedRef<boolean>;
1760
+ }>;
1761
+
1348
1762
  declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
1349
1763
 
1764
+ export declare type ThemeMode = 'light' | 'dark' | 'auto';
1765
+
1766
+ export declare interface ThemeOptions {
1767
+ /** Seed color to generate primary palette. Hex string */
1768
+ primary?: string;
1769
+ /** Seed color to generate secondary/gray palette */
1770
+ secondary?: string;
1771
+ /** Seed color to generate success palette */
1772
+ success?: string;
1773
+ /** Seed color to generate warning palette */
1774
+ warning?: string;
1775
+ /** Seed color to generate danger palette */
1776
+ danger?: string;
1777
+ /** Seed color to generate info palette */
1778
+ info?: string;
1779
+ /** Seed color to generate green palette (legacy) */
1780
+ green?: string;
1781
+ /** Seed color to generate yellow palette (legacy) */
1782
+ yellow?: string;
1783
+ /** Seed color to generate orange palette (legacy) */
1784
+ orange?: string;
1785
+ /** Seed color to generate red palette (legacy) */
1786
+ red?: string;
1787
+ }
1788
+
1789
+ /**
1790
+ * Theme preset interface
1791
+ */
1792
+ export declare interface ThemePreset {
1793
+ name: string;
1794
+ theme: ThemeOptions;
1795
+ metadata: {
1796
+ created: string;
1797
+ version: string;
1798
+ description?: string;
1799
+ author?: string;
1800
+ };
1801
+ }
1802
+
1803
+ /**
1804
+ * Built-in theme presets
1805
+ */
1806
+ export declare const themePresets: Record<string, ThemePreset>;
1807
+
1808
+ export { ThemeProvider }
1809
+
1810
+ export { ThemeToggle }
1811
+
1812
+ /**
1813
+ * Theme validation result
1814
+ */
1815
+ export declare interface ThemeValidationResult {
1816
+ isValid: boolean;
1817
+ errors: string[];
1818
+ warnings: string[];
1819
+ }
1820
+
1350
1821
  export { Toast }
1351
1822
 
1352
1823
  export { toast }
@@ -1482,6 +1953,419 @@ declare interface UseHoverCardOptions {
1482
1953
 
1483
1954
  export declare function useModal(): ModalInstance;
1484
1955
 
1956
+ /**
1957
+ * Theme management composable
1958
+ * Provides reactive theme state and methods for theme manipulation
1959
+ */
1960
+ export declare function useTheme(): {
1961
+ theme: ComputedRef< {
1962
+ primary?: string | undefined;
1963
+ secondary?: string | undefined;
1964
+ success?: string | undefined;
1965
+ warning?: string | undefined;
1966
+ danger?: string | undefined;
1967
+ info?: string | undefined;
1968
+ green?: string | undefined;
1969
+ yellow?: string | undefined;
1970
+ orange?: string | undefined;
1971
+ red?: string | undefined;
1972
+ }>;
1973
+ palette: ComputedRef< {
1974
+ primary: {
1975
+ 300: string;
1976
+ 50: string;
1977
+ 100: string;
1978
+ 200: string;
1979
+ 250: string;
1980
+ 400: string;
1981
+ 450: string;
1982
+ 500: string;
1983
+ 550: string;
1984
+ 575: string;
1985
+ 600: string;
1986
+ 700: string;
1987
+ 800: string;
1988
+ 900: string;
1989
+ };
1990
+ secondary: {
1991
+ 300: string;
1992
+ 50: string;
1993
+ 100: string;
1994
+ 200: string;
1995
+ 250: string;
1996
+ 400: string;
1997
+ 450: string;
1998
+ 500: string;
1999
+ 550: string;
2000
+ 575: string;
2001
+ 600: string;
2002
+ 700: string;
2003
+ 800: string;
2004
+ 900: string;
2005
+ };
2006
+ success: {
2007
+ 300: string;
2008
+ 50: string;
2009
+ 100: string;
2010
+ 200: string;
2011
+ 250: string;
2012
+ 400: string;
2013
+ 450: string;
2014
+ 500: string;
2015
+ 550: string;
2016
+ 575: string;
2017
+ 600: string;
2018
+ 700: string;
2019
+ 800: string;
2020
+ 900: string;
2021
+ };
2022
+ warning: {
2023
+ 300: string;
2024
+ 50: string;
2025
+ 100: string;
2026
+ 200: string;
2027
+ 250: string;
2028
+ 400: string;
2029
+ 450: string;
2030
+ 500: string;
2031
+ 550: string;
2032
+ 575: string;
2033
+ 600: string;
2034
+ 700: string;
2035
+ 800: string;
2036
+ 900: string;
2037
+ };
2038
+ danger: {
2039
+ 300: string;
2040
+ 50: string;
2041
+ 100: string;
2042
+ 200: string;
2043
+ 250: string;
2044
+ 400: string;
2045
+ 450: string;
2046
+ 500: string;
2047
+ 550: string;
2048
+ 575: string;
2049
+ 600: string;
2050
+ 700: string;
2051
+ 800: string;
2052
+ 900: string;
2053
+ };
2054
+ info: {
2055
+ 300: string;
2056
+ 50: string;
2057
+ 100: string;
2058
+ 200: string;
2059
+ 250: string;
2060
+ 400: string;
2061
+ 450: string;
2062
+ 500: string;
2063
+ 550: string;
2064
+ 575: string;
2065
+ 600: string;
2066
+ 700: string;
2067
+ 800: string;
2068
+ 900: string;
2069
+ };
2070
+ green: {
2071
+ 300: string;
2072
+ 50: string;
2073
+ 100: string;
2074
+ 200: string;
2075
+ 250: string;
2076
+ 400: string;
2077
+ 450: string;
2078
+ 500: string;
2079
+ 550: string;
2080
+ 575: string;
2081
+ 600: string;
2082
+ 700: string;
2083
+ 800: string;
2084
+ 900: string;
2085
+ };
2086
+ yellow: {
2087
+ 300: string;
2088
+ 50: string;
2089
+ 100: string;
2090
+ 200: string;
2091
+ 250: string;
2092
+ 400: string;
2093
+ 450: string;
2094
+ 500: string;
2095
+ 550: string;
2096
+ 575: string;
2097
+ 600: string;
2098
+ 700: string;
2099
+ 800: string;
2100
+ 900: string;
2101
+ };
2102
+ red: {
2103
+ 300: string;
2104
+ 50: string;
2105
+ 100: string;
2106
+ 200: string;
2107
+ 250: string;
2108
+ 400: string;
2109
+ 450: string;
2110
+ 500: string;
2111
+ 550: string;
2112
+ 575: string;
2113
+ 600: string;
2114
+ 700: string;
2115
+ 800: string;
2116
+ 900: string;
2117
+ };
2118
+ orange: {
2119
+ 300: string;
2120
+ 50: string;
2121
+ 100: string;
2122
+ 200: string;
2123
+ 250: string;
2124
+ 400: string;
2125
+ 450: string;
2126
+ 500: string;
2127
+ 550: string;
2128
+ 575: string;
2129
+ 600: string;
2130
+ 700: string;
2131
+ 800: string;
2132
+ 900: string;
2133
+ };
2134
+ }>;
2135
+ setColors: (colors: Partial<Record<ColorName, string>>) => void;
2136
+ setTheme: (theme: Partial<ThemeOptions>) => void;
2137
+ resetTheme: () => void;
2138
+ getColor: (color: ColorName) => string;
2139
+ getPalette: () => Palette;
2140
+ isInitialized: ComputedRef<boolean>;
2141
+ };
2142
+
2143
+ /**
2144
+ * Access theme context from ThemeProvider
2145
+ * Falls back to standalone useTheme if no provider is found
2146
+ */
2147
+ export declare function useThemeContext(): {
2148
+ theme: ComputedRef< {
2149
+ primary?: string | undefined;
2150
+ secondary?: string | undefined;
2151
+ success?: string | undefined;
2152
+ warning?: string | undefined;
2153
+ danger?: string | undefined;
2154
+ info?: string | undefined;
2155
+ green?: string | undefined;
2156
+ yellow?: string | undefined;
2157
+ orange?: string | undefined;
2158
+ red?: string | undefined;
2159
+ }>;
2160
+ palette: ComputedRef< {
2161
+ primary: {
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
+ secondary: {
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
+ success: {
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
+ warning: {
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
+ danger: {
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
+ info: {
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
+ green: {
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
+ yellow: {
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
+ red: {
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
+ orange: {
2306
+ 300: string;
2307
+ 50: string;
2308
+ 100: string;
2309
+ 200: string;
2310
+ 250: string;
2311
+ 400: string;
2312
+ 450: string;
2313
+ 500: string;
2314
+ 550: string;
2315
+ 575: string;
2316
+ 600: string;
2317
+ 700: string;
2318
+ 800: string;
2319
+ 900: string;
2320
+ };
2321
+ }>;
2322
+ setColors: (colors: Partial<Record<ColorName, string>>) => void;
2323
+ setTheme: (theme: Partial<ThemeOptions>) => void;
2324
+ resetTheme: () => void;
2325
+ getColor: (color: ColorName) => string;
2326
+ getPalette: () => Palette;
2327
+ isInitialized: ComputedRef<boolean>;
2328
+ };
2329
+
2330
+ /**
2331
+ * Theme mode management composable
2332
+ * Handles light/dark mode detection, switching, and persistence
2333
+ */
2334
+ export declare function useThemeMode(): {
2335
+ mode: ComputedRef<ThemeMode>;
2336
+ effectiveMode: ComputedRef<"light" | "dark">;
2337
+ systemPreference: ComputedRef<"light" | "dark">;
2338
+ isInitialized: ComputedRef<boolean>;
2339
+ setMode: (mode: ThemeMode) => void;
2340
+ toggleMode: () => void;
2341
+ isLight: ComputedRef<boolean>;
2342
+ isDark: ComputedRef<boolean>;
2343
+ isAuto: ComputedRef<boolean>;
2344
+ };
2345
+
2346
+ /**
2347
+ * Shorthand for useThemeContext
2348
+ */
2349
+ export declare const useThemeProvider: typeof useThemeContext;
2350
+
2351
+ /**
2352
+ * Validate dark mode color contrast
2353
+ */
2354
+ export declare function validateDarkModeContrast(foreground: string, background: string): boolean;
2355
+
2356
+ /**
2357
+ * Validate a theme configuration
2358
+ */
2359
+ export declare function validateTheme(theme: Partial<ThemeOptions>): ThemeValidationResult;
2360
+
2361
+ /**
2362
+ * Validates theme options
2363
+ */
2364
+ export declare function validateThemeOptions(options: ThemeOptions): {
2365
+ valid: boolean;
2366
+ errors: string[];
2367
+ };
2368
+
1485
2369
  declare type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text' | 'gradient';
1486
2370
 
1487
2371
  export { }