@contentstudio/ui 0.2.25-rc.25 → 0.2.26-rc.26

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.
Files changed (164) hide show
  1. package/dist/index.d.ts +7520 -47
  2. package/package.json +1 -1
  3. package/dist/App.vue.d.ts +0 -2
  4. package/dist/components/Accordion/Accordion.vue.d.ts +0 -58
  5. package/dist/components/Accordion/AccordionItem.vue.d.ts +0 -63
  6. package/dist/components/Accordion/index.d.ts +0 -3
  7. package/dist/components/Accordion/types.d.ts +0 -15
  8. package/dist/components/ActionIcon/ActionIcon.vue.d.ts +0 -105
  9. package/dist/components/ActionIcon/index.d.ts +0 -2
  10. package/dist/components/ActionIcon/types.d.ts +0 -53
  11. package/dist/components/Alert/Alert.vue.d.ts +0 -94
  12. package/dist/components/Alert/index.d.ts +0 -4
  13. package/dist/components/Alert/types.d.ts +0 -30
  14. package/dist/components/Avatar/Avatar.vue.d.ts +0 -106
  15. package/dist/components/Avatar/AvatarGroup.vue.d.ts +0 -76
  16. package/dist/components/Avatar/index.d.ts +0 -5
  17. package/dist/components/Avatar/types.d.ts +0 -58
  18. package/dist/components/Avatar/utils.d.ts +0 -9
  19. package/dist/components/Badge/Badge.vue.d.ts +0 -109
  20. package/dist/components/Badge/index.d.ts +0 -2
  21. package/dist/components/Badge/types.d.ts +0 -35
  22. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +0 -80
  23. package/dist/components/Breadcrumbs/index.d.ts +0 -3
  24. package/dist/components/Breadcrumbs/types.d.ts +0 -23
  25. package/dist/components/Button/Button.vue.d.ts +0 -85
  26. package/dist/components/Button/index.d.ts +0 -2
  27. package/dist/components/Button/types.d.ts +0 -40
  28. package/dist/components/Card/Card.vue.d.ts +0 -202
  29. package/dist/components/Card/CardSection.vue.d.ts +0 -57
  30. package/dist/components/Card/index.d.ts +0 -4
  31. package/dist/components/Card/types.d.ts +0 -31
  32. package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -94
  33. package/dist/components/Checkbox/index.d.ts +0 -4
  34. package/dist/components/Checkbox/types.d.ts +0 -20
  35. package/dist/components/Chip/Chip.vue.d.ts +0 -108
  36. package/dist/components/Chip/index.d.ts +0 -4
  37. package/dist/components/Chip/types.d.ts +0 -48
  38. package/dist/components/ClientExtensionDemo/index.d.ts +0 -1
  39. package/dist/components/ClientExtensionDemo.vue.d.ts +0 -2
  40. package/dist/components/Collapsible/Collapsible.vue.d.ts +0 -77
  41. package/dist/components/Collapsible/index.d.ts +0 -4
  42. package/dist/components/Collapsible/types.d.ts +0 -9
  43. package/dist/components/Dialog/Dialog.vue.d.ts +0 -151
  44. package/dist/components/Dialog/index.d.ts +0 -4
  45. package/dist/components/Dialog/types.d.ts +0 -28
  46. package/dist/components/Drawer/Drawer.vue.d.ts +0 -134
  47. package/dist/components/Drawer/index.d.ts +0 -4
  48. package/dist/components/Drawer/types.d.ts +0 -61
  49. package/dist/components/Dropdown/Dropdown.vue.d.ts +0 -131
  50. package/dist/components/Dropdown/DropdownItem.vue.d.ts +0 -64
  51. package/dist/components/Dropdown/index.d.ts +0 -7
  52. package/dist/components/Dropdown/types.d.ts +0 -41
  53. package/dist/components/DropdownMenu/DropdownMenu.vue.d.ts +0 -109
  54. package/dist/components/DropdownMenu/index.d.ts +0 -3
  55. package/dist/components/HoverCard/HoverCard.vue.d.ts +0 -104
  56. package/dist/components/HoverCard/HoverCardTarget.vue.d.ts +0 -49
  57. package/dist/components/HoverCard/index.d.ts +0 -384
  58. package/dist/components/HoverCard/types.d.ts +0 -40
  59. package/dist/components/HoverCard/useHoverCard.d.ts +0 -20
  60. package/dist/components/Icon/Icon.vue.d.ts +0 -15
  61. package/dist/components/Icon/index.d.ts +0 -4
  62. package/dist/components/Icon/types.d.ts +0 -12
  63. package/dist/components/Indicator/Indicator.vue.d.ts +0 -129
  64. package/dist/components/Indicator/index.d.ts +0 -2
  65. package/dist/components/Indicator/types.d.ts +0 -29
  66. package/dist/components/ListItem/ListItem.vue.d.ts +0 -64
  67. package/dist/components/ListItem/index.d.ts +0 -6
  68. package/dist/components/ListItem/types.d.ts +0 -7
  69. package/dist/components/Loader/Loader.vue.d.ts +0 -65
  70. package/dist/components/Loader/index.d.ts +0 -2
  71. package/dist/components/Loader/types.d.ts +0 -16
  72. package/dist/components/Loader/variants/BarsLoader.vue.d.ts +0 -35
  73. package/dist/components/Loader/variants/DotsLoader.vue.d.ts +0 -35
  74. package/dist/components/Loader/variants/OvalLoader.vue.d.ts +0 -39
  75. package/dist/components/Modal/MessageBoxConfirm.vue.d.ts +0 -275
  76. package/dist/components/Modal/MessageBoxOk.vue.d.ts +0 -207
  77. package/dist/components/Modal/Modal.vue.d.ts +0 -494
  78. package/dist/components/Modal/directive.d.ts +0 -14
  79. package/dist/components/Modal/index.d.ts +0 -7
  80. package/dist/components/Modal/plugin.d.ts +0 -59
  81. package/dist/components/Modal/types.d.ts +0 -79
  82. package/dist/components/Pagination/Pagination.vue.d.ts +0 -84
  83. package/dist/components/Pagination/index.d.ts +0 -3
  84. package/dist/components/Pagination/types.d.ts +0 -32
  85. package/dist/components/Pill/Pill.vue.d.ts +0 -84
  86. package/dist/components/Pill/index.d.ts +0 -2
  87. package/dist/components/Pill/types.d.ts +0 -21
  88. package/dist/components/Popover/Popover.vue.d.ts +0 -197
  89. package/dist/components/Popover/index.d.ts +0 -4
  90. package/dist/components/Popover/types.d.ts +0 -67
  91. package/dist/components/Progress/Progress.vue.d.ts +0 -138
  92. package/dist/components/Progress/index.d.ts +0 -4
  93. package/dist/components/Progress/types.d.ts +0 -44
  94. package/dist/components/Radio/Radio.vue.d.ts +0 -99
  95. package/dist/components/Radio/index.d.ts +0 -2
  96. package/dist/components/Radio/types.d.ts +0 -53
  97. package/dist/components/RangeSlider/RangeSlider.vue.d.ts +0 -175
  98. package/dist/components/RangeSlider/index.d.ts +0 -2
  99. package/dist/components/RangeSlider/types.d.ts +0 -115
  100. package/dist/components/SearchInput/index.d.ts +0 -2
  101. package/dist/components/SearchInput/types.d.ts +0 -52
  102. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +0 -97
  103. package/dist/components/SegmentedControl/index.d.ts +0 -4
  104. package/dist/components/SegmentedControl/types.d.ts +0 -55
  105. package/dist/components/Select/Select.vue.d.ts +0 -123
  106. package/dist/components/Select/index.d.ts +0 -2
  107. package/dist/components/Select/types.d.ts +0 -22
  108. package/dist/components/Slider/Slider.vue.d.ts +0 -164
  109. package/dist/components/Slider/index.d.ts +0 -3
  110. package/dist/components/Slider/types.d.ts +0 -145
  111. package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -105
  112. package/dist/components/SplitButton/index.d.ts +0 -2
  113. package/dist/components/SplitButton/types.d.ts +0 -22
  114. package/dist/components/Stepper/Stepper.vue.d.ts +0 -65
  115. package/dist/components/Stepper/StepperItem.vue.d.ts +0 -79
  116. package/dist/components/Stepper/index.d.ts +0 -3
  117. package/dist/components/Stepper/types.d.ts +0 -14
  118. package/dist/components/Switch/Switch.vue.d.ts +0 -117
  119. package/dist/components/Switch/index.d.ts +0 -4
  120. package/dist/components/Switch/types.d.ts +0 -55
  121. package/dist/components/Table/Table.vue.d.ts +0 -78
  122. package/dist/components/Table/index.d.ts +0 -2
  123. package/dist/components/Table/types.d.ts +0 -25
  124. package/dist/components/Tabs/Tabs.vue.d.ts +0 -78
  125. package/dist/components/Tabs/TabsList.vue.d.ts +0 -52
  126. package/dist/components/Tabs/TabsPanel.vue.d.ts +0 -38
  127. package/dist/components/Tabs/TabsTab.vue.d.ts +0 -108
  128. package/dist/components/Tabs/index.d.ts +0 -5
  129. package/dist/components/Tabs/types.d.ts +0 -69
  130. package/dist/components/TextInput/index.d.ts +0 -2
  131. package/dist/components/TextInput/types.d.ts +0 -47
  132. package/dist/components/Textarea/index.d.ts +0 -2
  133. package/dist/components/Textarea/types.d.ts +0 -54
  134. package/dist/components/ThemeProvider/ThemeProvider.vue.d.ts +0 -88
  135. package/dist/components/ThemeProvider/index.d.ts +0 -1
  136. package/dist/components/ThemeToggle/ThemeToggle.vue.d.ts +0 -46
  137. package/dist/components/ThemeToggle/index.d.ts +0 -1
  138. package/dist/components/Toast/CustomToast.vue.d.ts +0 -50
  139. package/dist/components/Toast/Toast.vue.d.ts +0 -154
  140. package/dist/components/Toast/index.d.ts +0 -7
  141. package/dist/components/Toast/plugin.d.ts +0 -70
  142. package/dist/components/Toast/types.d.ts +0 -93
  143. package/dist/components/index.d.ts +0 -35
  144. package/dist/composables/index.d.ts +0 -1
  145. package/dist/composables/useDropdown.d.ts +0 -23
  146. package/dist/composables/useTheme.d.ts +0 -189
  147. package/dist/composables/useThemeContext.d.ts +0 -193
  148. package/dist/composables/useThemeMode.d.ts +0 -21
  149. package/dist/directives/click-away/index.d.ts +0 -2
  150. package/dist/main.d.ts +0 -0
  151. package/dist/theme/darkMode.d.ts +0 -17
  152. package/dist/theme/extensions.d.ts +0 -50
  153. package/dist/theme/generator.d.ts +0 -31
  154. package/dist/theme/tailwind.d.ts +0 -10
  155. package/dist/theme/types.d.ts +0 -47
  156. package/dist/types/common.d.ts +0 -14
  157. package/dist/types/index.d.ts +0 -70
  158. package/dist/utils/colors.d.ts +0 -89
  159. package/dist/utils/forms.d.ts +0 -35
  160. package/dist/utils/position.d.ts +0 -11
  161. package/dist/utils/radius.d.ts +0 -2
  162. package/dist/utils/shadows.d.ts +0 -9
  163. package/dist/utils/sizes.d.ts +0 -7
  164. package/dist/utils/states.d.ts +0 -28
@@ -1,193 +0,0 @@
1
- import { InjectionKey } from 'vue';
2
- import { useTheme } from './useTheme';
3
- export declare const THEME_INJECTION_KEY: InjectionKey<ReturnType<typeof useTheme>>;
4
- /**
5
- * Access theme context from ThemeProvider
6
- * Falls back to standalone useTheme if no provider is found
7
- */
8
- export declare function useThemeContext(): {
9
- theme: import('vue').ComputedRef<{
10
- primary?: string | undefined;
11
- secondary?: string | undefined;
12
- success?: string | undefined;
13
- warning?: string | undefined;
14
- danger?: string | undefined;
15
- info?: string | undefined;
16
- green?: string | undefined;
17
- yellow?: string | undefined;
18
- orange?: string | undefined;
19
- red?: string | undefined;
20
- }>;
21
- palette: import('vue').ComputedRef<{
22
- primary: {
23
- 200: string;
24
- 100: string;
25
- 300: string;
26
- 50: string;
27
- 250: string;
28
- 400: string;
29
- 450: string;
30
- 500: string;
31
- 550: string;
32
- 575: string;
33
- 600: string;
34
- 700: string;
35
- 800: string;
36
- 900: string;
37
- };
38
- secondary: {
39
- 200: string;
40
- 100: string;
41
- 300: string;
42
- 50: string;
43
- 250: string;
44
- 400: string;
45
- 450: string;
46
- 500: string;
47
- 550: string;
48
- 575: string;
49
- 600: string;
50
- 700: string;
51
- 800: string;
52
- 900: string;
53
- };
54
- success: {
55
- 200: string;
56
- 100: string;
57
- 300: string;
58
- 50: string;
59
- 250: string;
60
- 400: string;
61
- 450: string;
62
- 500: string;
63
- 550: string;
64
- 575: string;
65
- 600: string;
66
- 700: string;
67
- 800: string;
68
- 900: string;
69
- };
70
- warning: {
71
- 200: string;
72
- 100: string;
73
- 300: string;
74
- 50: string;
75
- 250: string;
76
- 400: string;
77
- 450: string;
78
- 500: string;
79
- 550: string;
80
- 575: string;
81
- 600: string;
82
- 700: string;
83
- 800: string;
84
- 900: string;
85
- };
86
- danger: {
87
- 200: string;
88
- 100: string;
89
- 300: string;
90
- 50: string;
91
- 250: string;
92
- 400: string;
93
- 450: string;
94
- 500: string;
95
- 550: string;
96
- 575: string;
97
- 600: string;
98
- 700: string;
99
- 800: string;
100
- 900: string;
101
- };
102
- info: {
103
- 200: string;
104
- 100: string;
105
- 300: string;
106
- 50: string;
107
- 250: string;
108
- 400: string;
109
- 450: string;
110
- 500: string;
111
- 550: string;
112
- 575: string;
113
- 600: string;
114
- 700: string;
115
- 800: string;
116
- 900: string;
117
- };
118
- green: {
119
- 200: string;
120
- 100: string;
121
- 300: string;
122
- 50: string;
123
- 250: string;
124
- 400: string;
125
- 450: string;
126
- 500: string;
127
- 550: string;
128
- 575: string;
129
- 600: string;
130
- 700: string;
131
- 800: string;
132
- 900: string;
133
- };
134
- orange: {
135
- 200: string;
136
- 100: string;
137
- 300: string;
138
- 50: string;
139
- 250: string;
140
- 400: string;
141
- 450: string;
142
- 500: string;
143
- 550: string;
144
- 575: string;
145
- 600: string;
146
- 700: string;
147
- 800: string;
148
- 900: string;
149
- };
150
- red: {
151
- 200: string;
152
- 100: string;
153
- 300: string;
154
- 50: string;
155
- 250: string;
156
- 400: string;
157
- 450: string;
158
- 500: string;
159
- 550: string;
160
- 575: string;
161
- 600: string;
162
- 700: string;
163
- 800: string;
164
- 900: string;
165
- };
166
- yellow: {
167
- 200: string;
168
- 100: string;
169
- 300: string;
170
- 50: string;
171
- 250: string;
172
- 400: string;
173
- 450: string;
174
- 500: string;
175
- 550: string;
176
- 575: string;
177
- 600: string;
178
- 700: string;
179
- 800: string;
180
- 900: string;
181
- };
182
- }>;
183
- setColors: (colors: Partial<Record<import('..').ColorName, string>>) => void;
184
- setTheme: (theme: Partial<import('..').ThemeOptions>) => void;
185
- resetTheme: () => void;
186
- getColor: (color: import('..').ColorName) => string;
187
- getPalette: () => import('..').Palette;
188
- isInitialized: import('vue').ComputedRef<boolean>;
189
- };
190
- /**
191
- * Shorthand for useThemeContext
192
- */
193
- export declare const useThemeProvider: typeof useThemeContext;
@@ -1,21 +0,0 @@
1
- export type ThemeMode = 'light' | 'dark' | 'auto';
2
- /**
3
- * Theme mode management composable
4
- * Handles light/dark mode detection, switching, and persistence
5
- */
6
- export declare function useThemeMode(): {
7
- mode: import('vue').ComputedRef<ThemeMode>;
8
- effectiveMode: import('vue').ComputedRef<"dark" | "light">;
9
- systemPreference: import('vue').ComputedRef<"dark" | "light">;
10
- isInitialized: import('vue').ComputedRef<boolean>;
11
- setMode: (mode: ThemeMode) => void;
12
- toggleMode: () => void;
13
- isLight: import('vue').ComputedRef<boolean>;
14
- isDark: import('vue').ComputedRef<boolean>;
15
- isAuto: import('vue').ComputedRef<boolean>;
16
- };
17
- /**
18
- * Get current theme mode without reactivity
19
- * Useful for server-side rendering or static contexts
20
- */
21
- export declare function getCurrentThemeMode(): 'light' | 'dark';
@@ -1,2 +0,0 @@
1
- import { Directive } from 'vue';
2
- export declare const vClickAway: Directive;
package/dist/main.d.ts DELETED
File without changes
@@ -1,17 +0,0 @@
1
- import { Palette } from './types';
2
- /**
3
- * Generate dark mode palette from light mode palette
4
- */
5
- export declare function generateDarkModePalette(lightPalette: Palette): Palette;
6
- /**
7
- * Get optimal text color for dark mode backgrounds
8
- */
9
- export declare function getDarkModeTextColor(backgroundColor: string): string;
10
- /**
11
- * Validate dark mode color contrast
12
- */
13
- export declare function validateDarkModeContrast(foreground: string, background: string): boolean;
14
- /**
15
- * Auto-adjust colors for better dark mode compatibility
16
- */
17
- export declare function optimizeForDarkMode(palette: Palette): Palette;
@@ -1,50 +0,0 @@
1
- import { ThemeOptions } from './types';
2
- /**
3
- * Deep merge two theme objects, with the second theme taking precedence
4
- */
5
- export declare function mergeThemes(baseTheme: ThemeOptions, extendTheme: Partial<ThemeOptions>): ThemeOptions;
6
- /**
7
- * Extend the default theme with custom colors
8
- */
9
- export declare function extendTheme(customTheme: Partial<ThemeOptions>): ThemeOptions;
10
- /**
11
- * Create a theme preset - a predefined theme configuration
12
- */
13
- export declare function createThemePreset(name: string, theme: Partial<ThemeOptions>): ThemePreset;
14
- /**
15
- * Theme preset interface
16
- */
17
- export interface ThemePreset {
18
- name: string;
19
- theme: ThemeOptions;
20
- metadata: {
21
- created: string;
22
- version: string;
23
- description?: string;
24
- author?: string;
25
- };
26
- }
27
- /**
28
- * Built-in theme presets
29
- */
30
- export declare const themePresets: Record<string, ThemePreset>;
31
- /**
32
- * Get a theme preset by name
33
- */
34
- export declare function getThemePreset(name: string): ThemePreset | null;
35
- /**
36
- * Get all available theme presets
37
- */
38
- export declare function getThemePresets(): ThemePreset[];
39
- /**
40
- * Validate a theme configuration
41
- */
42
- export declare function validateTheme(theme: Partial<ThemeOptions>): ThemeValidationResult;
43
- /**
44
- * Theme validation result
45
- */
46
- export interface ThemeValidationResult {
47
- isValid: boolean;
48
- errors: string[];
49
- warnings: string[];
50
- }
@@ -1,31 +0,0 @@
1
- import { Shade, Palette, ColorName, ThemeOptions, DefaultTheme } from './types';
2
- export type { ThemeOptions } from './types';
3
- export declare function generateShades(seed: string): Record<Shade, string>;
4
- /**
5
- * Default palette mapping from style.css CSS variables
6
- * These are the RGB triplet values that correspond to the CSS variables in style.css
7
- */
8
- export declare const defaultPalettes: Record<ColorName, Record<Shade, string>>;
9
- /**
10
- * Default theme configuration with semantic colors
11
- */
12
- export declare const defaultTheme: DefaultTheme;
13
- export declare function generatePalette(options: ThemeOptions): Palette;
14
- /**
15
- * Writes CSS variables to :root based on the palette returned by `generatePalette`.
16
- */
17
- /**
18
- * Writes CSS variables to :root based on the palette returned by `generatePalette`.
19
- */
20
- export declare function applyTheme(palette: Palette): void;
21
- /**
22
- * Validates a hex color string
23
- */
24
- export declare function isValidHexColor(hex: string): boolean;
25
- /**
26
- * Validates theme options
27
- */
28
- export declare function validateThemeOptions(options: ThemeOptions): {
29
- valid: boolean;
30
- errors: string[];
31
- };
@@ -1,10 +0,0 @@
1
- import { ThemeOptions } from './types';
2
- /**
3
- * Generate CSS custom properties from a theme so consumers can inspect or
4
- * export the runtime token layer that powers `theme.css`.
5
- */
6
- export declare function generateCSSCustomProperties(theme: ThemeOptions): string;
7
- /**
8
- * Generate a Tailwind v4-oriented integration example for Vue consumers.
9
- */
10
- export declare function generateIntegrationCode(theme: ThemeOptions): string;
@@ -1,47 +0,0 @@
1
- export type Shade = 50 | 100 | 200 | 250 | 300 | 400 | 450 | 500 | 550 | 575 | 600 | 700 | 800 | 900;
2
- export type ColorName = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'green' | 'yellow' | 'orange' | 'red';
3
- /**
4
- * A mapping of color -> shade -> hex string
5
- */
6
- export type Palette = Record<ColorName, Record<Shade, string>>;
7
- export interface ThemeOptions {
8
- /** Seed color to generate primary palette. Hex string */
9
- primary?: string;
10
- /** Seed color to generate secondary/gray palette */
11
- secondary?: string;
12
- /** Seed color to generate success palette */
13
- success?: string;
14
- /** Seed color to generate warning palette */
15
- warning?: string;
16
- /** Seed color to generate danger palette */
17
- danger?: string;
18
- /** Seed color to generate info palette */
19
- info?: string;
20
- /** Seed color to generate green palette (legacy) */
21
- green?: string;
22
- /** Seed color to generate yellow palette (legacy) */
23
- yellow?: string;
24
- /** Seed color to generate orange palette (legacy) */
25
- orange?: string;
26
- /** Seed color to generate red palette (legacy) */
27
- red?: string;
28
- }
29
- /**
30
- * Semantic color variants for components
31
- */
32
- export type SemanticColorVariant = 'success' | 'warning' | 'danger' | 'info';
33
- /**
34
- * All available color variants (core + semantic + legacy)
35
- */
36
- export type ColorVariant = 'primary' | 'secondary' | SemanticColorVariant | 'green' | 'yellow' | 'orange' | 'red';
37
- /**
38
- * Default theme configuration with semantic colors
39
- */
40
- export interface DefaultTheme {
41
- primary: string;
42
- secondary: string;
43
- success: string;
44
- warning: string;
45
- danger: string;
46
- info: string;
47
- }
@@ -1,14 +0,0 @@
1
- export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
- export type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
3
- export type ButtonVariant = 'filled' | 'light' | 'outline' | 'subtle' | 'gradient' | 'white' | 'default';
4
- export type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
5
- export type SectionProps = Record<string, any>;
6
- export declare const radiusClasses: {
7
- readonly none: "cstu:rounded-none";
8
- readonly xs: "cstu:rounded";
9
- readonly sm: "cstu:rounded-md";
10
- readonly md: "cstu:rounded-lg";
11
- readonly lg: "cstu:rounded-xl";
12
- readonly xl: "cstu:rounded-2xl";
13
- readonly full: "cstu:rounded-full";
14
- };
@@ -1,70 +0,0 @@
1
- export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
- export type ComponentRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- export type ButtonVariant = 'filled' | 'light' | 'outline' | 'subtle' | 'white' | 'default';
4
- export type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
5
- export type SectionProps = Record<string, any>;
6
- export declare const sizeClassesMap: {
7
- readonly xs: "cstu:text-xs";
8
- readonly sm: "cstu:text-sm";
9
- readonly md: "cstu:text-base";
10
- readonly lg: "cstu:text-lg";
11
- readonly xl: "cstu:text-xl";
12
- };
13
- export declare const radiusClassesMap: {
14
- readonly none: "cstu:rounded-none";
15
- readonly xs: "cstu:rounded";
16
- readonly sm: "cstu:rounded-md";
17
- readonly md: "cstu:rounded-md";
18
- readonly lg: "cstu:rounded-lg";
19
- readonly xl: "cstu:rounded-xl";
20
- };
21
- export declare const colorClassesMap: {
22
- readonly primary: {
23
- readonly base: "blue";
24
- readonly text: "cstu:text-blue-600";
25
- readonly bg: "cstu:bg-blue-600";
26
- readonly hover: "cstu:hover:bg-blue-700";
27
- readonly border: "cstu:border-blue-600";
28
- readonly ring: "cstu:ring-blue-500";
29
- };
30
- readonly secondary: {
31
- readonly base: "gray";
32
- readonly text: "cstu:text-gray-600";
33
- readonly bg: "cstu:bg-gray-600";
34
- readonly hover: "cstu:hover:bg-gray-700";
35
- readonly border: "cstu:border-gray-600";
36
- readonly ring: "cstu:ring-gray-500";
37
- };
38
- readonly success: {
39
- readonly base: "green";
40
- readonly text: "cstu:text-green-600";
41
- readonly bg: "cstu:bg-green-600";
42
- readonly hover: "cstu:hover:bg-green-700";
43
- readonly border: "cstu:border-green-600";
44
- readonly ring: "cstu:ring-green-500";
45
- };
46
- readonly warning: {
47
- readonly base: "yellow";
48
- readonly text: "cstu:text-yellow-600";
49
- readonly bg: "cstu:bg-yellow-600";
50
- readonly hover: "cstu:hover:bg-yellow-700";
51
- readonly border: "cstu:border-yellow-600";
52
- readonly ring: "cstu:ring-yellow-500";
53
- };
54
- readonly danger: {
55
- readonly base: "red";
56
- readonly text: "cstu:text-red-600";
57
- readonly bg: "cstu:bg-red-600";
58
- readonly hover: "cstu:hover:bg-red-700";
59
- readonly border: "cstu:border-red-600";
60
- readonly ring: "cstu:ring-red-500";
61
- };
62
- readonly info: {
63
- readonly base: "sky";
64
- readonly text: "cstu:text-sky-600";
65
- readonly bg: "cstu:bg-sky-600";
66
- readonly hover: "cstu:hover:bg-sky-700";
67
- readonly border: "cstu:border-sky-600";
68
- readonly ring: "cstu:ring-sky-500";
69
- };
70
- };
@@ -1,89 +0,0 @@
1
- export type ColorVariant = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
2
- export type VariantType = 'filled' | 'light' | 'outline' | 'subtle' | 'text' | 'gradient';
3
- interface ColorOptions {
4
- hover?: boolean;
5
- active?: boolean;
6
- focus?: boolean;
7
- disabled?: boolean;
8
- }
9
- export declare const colorMap: {
10
- readonly primary: {
11
- readonly base: "primary";
12
- readonly light: "50";
13
- readonly main: "500";
14
- readonly dark: "600";
15
- readonly hover: "550";
16
- readonly border: "600";
17
- readonly focus: "600";
18
- };
19
- readonly secondary: {
20
- readonly base: "secondary";
21
- readonly light: "200";
22
- readonly main: "575";
23
- readonly dark: "700";
24
- readonly hover: "600";
25
- readonly border: "600";
26
- readonly focus: "500";
27
- };
28
- readonly success: {
29
- readonly base: "success";
30
- readonly light: "50";
31
- readonly main: "500";
32
- readonly dark: "700";
33
- readonly hover: "600";
34
- readonly border: "200";
35
- readonly focus: "500";
36
- };
37
- readonly warning: {
38
- readonly base: "warning";
39
- readonly light: "50";
40
- readonly main: "500";
41
- readonly dark: "700";
42
- readonly hover: "600";
43
- readonly border: "200";
44
- readonly focus: "500";
45
- };
46
- readonly danger: {
47
- readonly base: "danger";
48
- readonly light: "50";
49
- readonly main: "500";
50
- readonly dark: "700";
51
- readonly hover: "600";
52
- readonly border: "200";
53
- readonly focus: "500";
54
- };
55
- readonly info: {
56
- readonly base: "info";
57
- readonly light: "50";
58
- readonly main: "450";
59
- readonly dark: "600";
60
- readonly hover: "500";
61
- readonly border: "200";
62
- readonly focus: "550";
63
- };
64
- readonly dark: {
65
- readonly base: "gray";
66
- readonly light: "100";
67
- readonly main: "900";
68
- readonly dark: "950";
69
- readonly hover: "800";
70
- readonly border: "300";
71
- readonly focus: "700";
72
- };
73
- readonly light: {
74
- readonly base: "gray";
75
- readonly light: "100";
76
- readonly main: "400";
77
- readonly dark: "500";
78
- readonly hover: "400";
79
- readonly border: "200";
80
- readonly focus: "300";
81
- };
82
- };
83
- export declare const getColorClasses: (color: ColorVariant, variant: VariantType, options?: ColorOptions) => string | (string | false)[];
84
- export declare const getIconColorClasses: (color: ColorVariant, variant: VariantType) => string;
85
- export declare const getTextColorClasses: (color: ColorVariant, variant: VariantType) => string;
86
- export declare const getVariantClasses: (variant: VariantType) => string;
87
- export declare const getFocusRingClasses: (color: ColorVariant) => string;
88
- export declare const isPredefinedColor: (color: string) => boolean;
89
- export {};
@@ -1,35 +0,0 @@
1
- import { Size } from './sizes';
2
- import { ColorVariant } from './colors';
3
- interface FormControlConfig {
4
- size?: Size;
5
- error?: string | boolean;
6
- disabled?: boolean;
7
- required?: boolean;
8
- withAsterisk?: boolean;
9
- fullWidth?: boolean;
10
- }
11
- export declare const getFormControlClasses: (config: FormControlConfig) => string;
12
- interface LabelConfig extends FormControlConfig {
13
- color?: ColorVariant;
14
- }
15
- export declare const getLabelClasses: (config: LabelConfig, ignoreMarginBottom?: boolean) => string;
16
- interface DescriptionConfig extends FormControlConfig {
17
- color?: ColorVariant;
18
- }
19
- export declare const getDescriptionClasses: (config: DescriptionConfig) => string;
20
- interface ErrorConfig {
21
- show: boolean;
22
- size?: Size;
23
- }
24
- export declare const getErrorClasses: (config: ErrorConfig) => string;
25
- interface InputWrapperConfig extends FormControlConfig {
26
- leftSection?: boolean;
27
- rightSection?: boolean;
28
- }
29
- export declare const getInputWrapperClasses: (config: InputWrapperConfig) => string;
30
- interface InputSectionConfig {
31
- position: 'left' | 'right';
32
- size?: Size;
33
- }
34
- export declare const getInputSectionClasses: (config: InputSectionConfig) => string;
35
- export {};
@@ -1,11 +0,0 @@
1
- export type Position = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center' | 'middle-start' | 'middle-end' | 'middle-center';
2
- interface PositionStyles {
3
- position: string;
4
- transform: string;
5
- top?: string;
6
- bottom?: string;
7
- left?: string;
8
- right?: string;
9
- }
10
- export declare const getPositionStyles: (position: Position, offset?: number) => PositionStyles;
11
- export {};
@@ -1,2 +0,0 @@
1
- export type Radius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
2
- export declare function getRadiusClasses(radius: Radius): string;
@@ -1,9 +0,0 @@
1
- /**
2
- * Utility functions for shadow styling
3
- */
4
- /**
5
- * Get Tailwind CSS classes for shadow
6
- * @param size Shadow size
7
- * @returns Tailwind CSS classes for shadow
8
- */
9
- export declare function getShadowClasses(size: 'none' | 'sm' | 'md' | 'lg' | 'xl'): string;
@@ -1,7 +0,0 @@
1
- export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
- export type ComponentType = 'button' | 'badge' | 'dropdown' | 'input' | 'notification' | 'switch' | 'chip' | 'checkbox' | 'indicator' | 'progress' | 'alert' | 'segmentedControl' | 'segmentedControlContainer';
3
- export declare const getSizeClasses: (size: Size, component: ComponentType | Record<Size, string>) => string;
4
- export declare const getIconSizeClasses: (size: Size, component: ComponentType) => string;
5
- export declare const getHeightClasses: (size: Size, component: ComponentType) => string;
6
- export declare const getTextSizeClasses: (size: Size) => "cstu:text-xs" | "cstu:text-sm" | "cstu:text-base" | "cstu:text-lg" | "cstu:text-xl";
7
- export declare const getSpacingClasses: (size: Size) => "cstu:space-x-1" | "cstu:space-x-2" | "cstu:space-x-3" | "cstu:space-x-4" | "cstu:space-x-5";
@@ -1,28 +0,0 @@
1
- import { ColorVariant } from './colors';
2
- interface StateConfig {
3
- disabled?: boolean;
4
- loading?: boolean;
5
- active?: boolean;
6
- error?: boolean | string;
7
- success?: boolean | string;
8
- required?: boolean;
9
- }
10
- export declare const getStateClasses: (config: StateConfig) => string;
11
- export declare const getDisabledClasses: (isDisabled: boolean) => "" | "cstu:opacity-50 cstu:cursor-not-allowed";
12
- export declare const getLoadingClasses: (isLoading: boolean) => "" | "cstu:cursor-wait";
13
- export declare const getErrorClasses: (hasError: boolean) => "" | "cstu:border-red-300 cstu:focus:ring-red-500/20 cstu:focus:border-red-500";
14
- export declare const getSuccessClasses: (hasSuccess: boolean) => "" | "cstu:border-green-300 cstu:focus:ring-green-500/20 cstu:focus:border-green-500";
15
- export declare const getRequiredClasses: (isRequired: boolean) => "" | "cstu:after:content-[\"*\"] cstu:after:ml-0.5 cstu:after:text-red-500";
16
- interface ValidationState {
17
- valid?: boolean;
18
- invalid?: boolean;
19
- pending?: boolean;
20
- }
21
- export declare const getValidationClasses: (state: ValidationState) => string;
22
- interface InteractionState {
23
- hover?: boolean;
24
- active?: boolean;
25
- focus?: boolean;
26
- }
27
- export declare const getInteractionClasses: (state: InteractionState, color?: ColorVariant) => string;
28
- export {};