@expcat/tigercat-core 1.3.4 → 1.5.0

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 (109) hide show
  1. package/dist/{datepicker-DXzS_8l8.d.cts → datepicker-gSOJN_pQ.d.cts} +1 -1
  2. package/dist/{datepicker-DXzS_8l8.d.ts → datepicker-gSOJN_pQ.d.ts} +1 -1
  3. package/dist/datepicker-locales/ar-SA.d.cts +1 -1
  4. package/dist/datepicker-locales/ar-SA.d.ts +1 -1
  5. package/dist/datepicker-locales/de-DE.d.cts +1 -1
  6. package/dist/datepicker-locales/de-DE.d.ts +1 -1
  7. package/dist/datepicker-locales/en-US.d.cts +1 -1
  8. package/dist/datepicker-locales/en-US.d.ts +1 -1
  9. package/dist/datepicker-locales/es-ES.d.cts +1 -1
  10. package/dist/datepicker-locales/es-ES.d.ts +1 -1
  11. package/dist/datepicker-locales/fr-FR.d.cts +1 -1
  12. package/dist/datepicker-locales/fr-FR.d.ts +1 -1
  13. package/dist/datepicker-locales/id-ID.d.cts +1 -1
  14. package/dist/datepicker-locales/id-ID.d.ts +1 -1
  15. package/dist/datepicker-locales/ja-JP.d.cts +1 -1
  16. package/dist/datepicker-locales/ja-JP.d.ts +1 -1
  17. package/dist/datepicker-locales/ko-KR.d.cts +1 -1
  18. package/dist/datepicker-locales/ko-KR.d.ts +1 -1
  19. package/dist/datepicker-locales/pt-BR.d.cts +1 -1
  20. package/dist/datepicker-locales/pt-BR.d.ts +1 -1
  21. package/dist/datepicker-locales/th-TH.d.cts +1 -1
  22. package/dist/datepicker-locales/th-TH.d.ts +1 -1
  23. package/dist/datepicker-locales/vi-VN.d.cts +1 -1
  24. package/dist/datepicker-locales/vi-VN.d.ts +1 -1
  25. package/dist/datepicker-locales/zh-CN.d.cts +1 -1
  26. package/dist/datepicker-locales/zh-CN.d.ts +1 -1
  27. package/dist/datepicker-locales/zh-TW.d.cts +1 -1
  28. package/dist/datepicker-locales/zh-TW.d.ts +1 -1
  29. package/dist/icons/registry.cjs +1 -3
  30. package/dist/icons/registry.js +1 -3
  31. package/dist/index.cjs +2094 -715
  32. package/dist/index.d.cts +811 -319
  33. package/dist/index.d.ts +811 -319
  34. package/dist/index.js +2023 -712
  35. package/dist/locale-BTAo7XO1.d.cts +392 -0
  36. package/dist/locale-hhhI2kH6.d.ts +392 -0
  37. package/dist/locales/ar-SA.cjs +357 -4
  38. package/dist/locales/ar-SA.d.cts +2 -2
  39. package/dist/locales/ar-SA.d.ts +2 -2
  40. package/dist/locales/ar-SA.js +357 -4
  41. package/dist/locales/de-DE.cjs +357 -4
  42. package/dist/locales/de-DE.d.cts +2 -2
  43. package/dist/locales/de-DE.d.ts +2 -2
  44. package/dist/locales/de-DE.js +357 -4
  45. package/dist/locales/en-US.cjs +159 -2
  46. package/dist/locales/en-US.d.cts +2 -2
  47. package/dist/locales/en-US.d.ts +2 -2
  48. package/dist/locales/en-US.js +157 -2
  49. package/dist/locales/es-ES.cjs +357 -4
  50. package/dist/locales/es-ES.d.cts +2 -2
  51. package/dist/locales/es-ES.d.ts +2 -2
  52. package/dist/locales/es-ES.js +357 -4
  53. package/dist/locales/fr-FR.cjs +357 -4
  54. package/dist/locales/fr-FR.d.cts +2 -2
  55. package/dist/locales/fr-FR.d.ts +2 -2
  56. package/dist/locales/fr-FR.js +357 -4
  57. package/dist/locales/id-ID.cjs +445 -3
  58. package/dist/locales/id-ID.d.cts +2 -2
  59. package/dist/locales/id-ID.d.ts +2 -2
  60. package/dist/locales/id-ID.js +443 -3
  61. package/dist/locales/ja-JP.cjs +445 -3
  62. package/dist/locales/ja-JP.d.cts +2 -2
  63. package/dist/locales/ja-JP.d.ts +2 -2
  64. package/dist/locales/ja-JP.js +443 -3
  65. package/dist/locales/ko-KR.cjs +445 -3
  66. package/dist/locales/ko-KR.d.cts +2 -2
  67. package/dist/locales/ko-KR.d.ts +2 -2
  68. package/dist/locales/ko-KR.js +443 -3
  69. package/dist/locales/pt-BR.cjs +357 -4
  70. package/dist/locales/pt-BR.d.cts +2 -2
  71. package/dist/locales/pt-BR.d.ts +2 -2
  72. package/dist/locales/pt-BR.js +357 -4
  73. package/dist/locales/th-TH.cjs +445 -3
  74. package/dist/locales/th-TH.d.cts +2 -2
  75. package/dist/locales/th-TH.d.ts +2 -2
  76. package/dist/locales/th-TH.js +443 -3
  77. package/dist/locales/vi-VN.cjs +445 -3
  78. package/dist/locales/vi-VN.d.cts +2 -2
  79. package/dist/locales/vi-VN.d.ts +2 -2
  80. package/dist/locales/vi-VN.js +443 -3
  81. package/dist/locales/zh-CN.cjs +159 -2
  82. package/dist/locales/zh-CN.d.cts +2 -2
  83. package/dist/locales/zh-CN.d.ts +2 -2
  84. package/dist/locales/zh-CN.js +157 -2
  85. package/dist/locales/zh-TW.cjs +445 -3
  86. package/dist/locales/zh-TW.d.cts +2 -2
  87. package/dist/locales/zh-TW.d.ts +2 -2
  88. package/dist/locales/zh-TW.js +443 -3
  89. package/dist/{table-export-CZ7wtGf4.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
  90. package/dist/{table-export-DOqFkseW.d.cts → table-export-vfyBzKui.d.cts} +2 -2
  91. package/dist/tailwind/modern.cjs +76 -81
  92. package/dist/tailwind/modern.d.cts +2 -3
  93. package/dist/tailwind/modern.d.ts +2 -3
  94. package/dist/tailwind/modern.js +76 -81
  95. package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.cts} +7 -41
  96. package/dist/{tailwind-entry-DUchHtjs.d.cts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
  97. package/dist/tailwind.cjs +123 -70
  98. package/dist/tailwind.d.cts +2 -3
  99. package/dist/tailwind.d.ts +2 -3
  100. package/dist/tailwind.js +123 -70
  101. package/dist/utils/table-export.cjs +7 -0
  102. package/dist/utils/table-export.d.cts +3 -3
  103. package/dist/utils/table-export.d.ts +3 -3
  104. package/dist/utils/table-export.js +7 -0
  105. package/package.json +5 -12
  106. package/dist/locale-BuZwW3Ok.d.ts +0 -135
  107. package/dist/locale-DDFn0b6z.d.cts +0 -135
  108. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
  109. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
@@ -1,6 +1,5 @@
1
- import { P as PluginWithConfig } from '../types-CJYAW1ql.d-DDBFn6KB.cjs';
2
- import './resolve-config-QUZ9b-Gn.mjs';
1
+ import * as tailwindcss_plugin from 'tailwindcss/plugin';
3
2
 
4
- declare const modernPlugin: PluginWithConfig;
3
+ declare const modernPlugin: tailwindcss_plugin.PluginWithConfig;
5
4
 
6
5
  export { modernPlugin as default };
@@ -1,6 +1,5 @@
1
- import { P as PluginWithConfig } from '../types-CJYAW1ql.d-DDBFn6KB.js';
2
- import './resolve-config-QUZ9b-Gn.mjs';
1
+ import * as tailwindcss_plugin from 'tailwindcss/plugin';
3
2
 
4
- declare const modernPlugin: PluginWithConfig;
3
+ declare const modernPlugin: tailwindcss_plugin.PluginWithConfig;
5
4
 
6
5
  export { modernPlugin as default };
@@ -1,7 +1,7 @@
1
1
  // src/tailwind-plugin.ts
2
2
  import plugin from "tailwindcss/plugin";
3
3
 
4
- // src/theme/index.ts
4
+ // src/theme-runtime/index.ts
5
5
  var THEME_CSS_VARS = {
6
6
  // Primary colors
7
7
  primary: "--tiger-primary",
@@ -184,78 +184,83 @@ var MODERN_REDUCED_MOTION_TOKENS = {
184
184
  "--tiger-transition-emphasized": "transform 0ms linear"
185
185
  };
186
186
 
187
- // src/tailwind-plugin.ts
188
- var tigercatTheme = {
189
- // Primary
190
- "--tiger-primary": "#2563eb",
191
- "--tiger-primary-hover": "#1d4ed8",
192
- "--tiger-primary-active": "#1e40af",
193
- "--tiger-primary-disabled": "#93c5fd",
194
- // Secondary
195
- "--tiger-secondary": "#4b5563",
196
- "--tiger-secondary-hover": "#374151",
197
- "--tiger-secondary-active": "#1f2937",
198
- "--tiger-secondary-disabled": "#9ca3af",
199
- // Background hover states
200
- "--tiger-outline-bg-hover": "#eff6ff",
201
- "--tiger-ghost-bg-hover": "#eff6ff",
202
- // Interaction
203
- "--tiger-focus-ring": "#2563eb",
204
- // Surface & background
205
- "--tiger-surface": "#ffffff",
206
- "--tiger-surface-muted": "#f9fafb",
207
- "--tiger-surface-raised": "#ffffff",
208
- // Text
209
- "--tiger-text": "#111827",
210
- "--tiger-text-secondary": "#6b7280",
211
- "--tiger-text-disabled": "#d1d5db",
212
- // Border
213
- "--tiger-border": "#e5e7eb",
214
- "--tiger-border-strong": "#9ca3af",
215
- // Status
216
- "--tiger-success": "#16a34a",
217
- "--tiger-warning": "#d97706",
218
- "--tiger-error": "#dc2626",
219
- "--tiger-info": "#3b82f6",
220
- // Chart palette
221
- "--tiger-chart-1": "#2563eb",
222
- "--tiger-chart-2": "#16a34a",
223
- "--tiger-chart-3": "#d97706",
224
- "--tiger-chart-4": "#a855f7",
225
- "--tiger-chart-5": "#0ea5e9",
226
- "--tiger-chart-6": "#ef4444"
187
+ // src/themes/default/theme.ts
188
+ var defaultThemeLightColors = {
189
+ primary: "#2563eb",
190
+ primaryHover: "#1d4ed8",
191
+ primaryActive: "#1e40af",
192
+ primaryDisabled: "#93c5fd",
193
+ secondary: "#4b5563",
194
+ secondaryHover: "#374151",
195
+ secondaryActive: "#1f2937",
196
+ secondaryDisabled: "#9ca3af",
197
+ outlineBgHover: "#eff6ff",
198
+ ghostBgHover: "#eff6ff",
199
+ focusRing: "#2563eb",
200
+ surface: "#ffffff",
201
+ surfaceMuted: "#f9fafb",
202
+ surfaceRaised: "#ffffff",
203
+ text: "#111827",
204
+ textSecondary: "#6b7280",
205
+ textDisabled: "#d1d5db",
206
+ border: "#e5e7eb",
207
+ borderStrong: "#9ca3af",
208
+ success: "#16a34a",
209
+ warning: "#d97706",
210
+ error: "#dc2626",
211
+ info: "#3b82f6",
212
+ chart1: "#2563eb",
213
+ chart2: "#16a34a",
214
+ chart3: "#d97706",
215
+ chart4: "#a855f7",
216
+ chart5: "#0ea5e9",
217
+ chart6: "#ef4444"
227
218
  };
228
- var tigercatDarkTheme = {
229
- "--tiger-primary": "#60a5fa",
230
- "--tiger-primary-hover": "#93c5fd",
231
- "--tiger-primary-active": "#bfdbfe",
232
- "--tiger-primary-disabled": "#1e40af",
233
- "--tiger-secondary": "#9ca3af",
234
- "--tiger-secondary-hover": "#d1d5db",
235
- "--tiger-secondary-active": "#e5e7eb",
236
- "--tiger-secondary-disabled": "#4b5563",
237
- "--tiger-outline-bg-hover": "#1e3a5f",
238
- "--tiger-ghost-bg-hover": "#1e3a5f",
239
- "--tiger-focus-ring": "#60a5fa",
240
- "--tiger-surface": "#111827",
241
- "--tiger-surface-muted": "#1f2937",
242
- "--tiger-surface-raised": "#1f2937",
243
- "--tiger-text": "#f9fafb",
244
- "--tiger-text-secondary": "#d1d5db",
245
- "--tiger-text-disabled": "#4b5563",
246
- "--tiger-border": "#374151",
247
- "--tiger-border-strong": "#6b7280",
248
- "--tiger-success": "#4ade80",
249
- "--tiger-warning": "#fbbf24",
250
- "--tiger-error": "#f87171",
251
- "--tiger-info": "#60a5fa",
252
- "--tiger-chart-1": "#60a5fa",
253
- "--tiger-chart-2": "#4ade80",
254
- "--tiger-chart-3": "#fbbf24",
255
- "--tiger-chart-4": "#c084fc",
256
- "--tiger-chart-5": "#38bdf8",
257
- "--tiger-chart-6": "#f87171"
219
+ var defaultThemeDarkColors = {
220
+ primary: "#60a5fa",
221
+ primaryHover: "#93c5fd",
222
+ primaryActive: "#bfdbfe",
223
+ primaryDisabled: "#1e40af",
224
+ secondary: "#9ca3af",
225
+ secondaryHover: "#d1d5db",
226
+ secondaryActive: "#e5e7eb",
227
+ secondaryDisabled: "#4b5563",
228
+ outlineBgHover: "#1e3a5f",
229
+ ghostBgHover: "#1e3a5f",
230
+ focusRing: "#60a5fa",
231
+ surface: "#111827",
232
+ surfaceMuted: "#1f2937",
233
+ surfaceRaised: "#1f2937",
234
+ text: "#f9fafb",
235
+ textSecondary: "#d1d5db",
236
+ textDisabled: "#4b5563",
237
+ border: "#374151",
238
+ borderStrong: "#6b7280",
239
+ success: "#4ade80",
240
+ warning: "#fbbf24",
241
+ error: "#f87171",
242
+ info: "#60a5fa",
243
+ chart1: "#60a5fa",
244
+ chart2: "#4ade80",
245
+ chart3: "#fbbf24",
246
+ chart4: "#c084fc",
247
+ chart5: "#38bdf8",
248
+ chart6: "#f87171"
258
249
  };
250
+
251
+ // src/tailwind-plugin.ts
252
+ function presetToVars(colors) {
253
+ const vars = {};
254
+ for (const [key, value] of Object.entries(colors)) {
255
+ const varName = THEME_CSS_VARS[key];
256
+ if (varName && value) {
257
+ vars[varName] = value;
258
+ }
259
+ }
260
+ return vars;
261
+ }
262
+ var tigercatTheme = presetToVars(defaultThemeLightColors);
263
+ var tigercatDarkTheme = presetToVars(defaultThemeDarkColors);
259
264
  var tigercatDirectionBase = {
260
265
  '[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
261
266
  transform: "scaleX(-1)"
@@ -294,16 +299,6 @@ var tigercatPlugin = plugin(function({ addBase }) {
294
299
  ...tigercatReducedMotionBase
295
300
  });
296
301
  });
297
- function presetToVars(colors) {
298
- const vars = {};
299
- for (const [key, value] of Object.entries(colors)) {
300
- const varName = THEME_CSS_VARS[key];
301
- if (varName && value) {
302
- vars[varName] = value;
303
- }
304
- }
305
- return vars;
306
- }
307
302
  function createTigercatPlugin(options = {}) {
308
303
  return plugin(function({ addBase }) {
309
304
  const preset = options.preset;
@@ -1,4 +1,4 @@
1
- import { P as PluginWithConfig } from './types-CJYAW1ql.d-DDBFn6KB.js';
1
+ import * as tailwindcss_plugin from 'tailwindcss/plugin';
2
2
 
3
3
  /**
4
4
  * Theme configuration types for Tigercat Design System
@@ -136,49 +136,15 @@ interface ThemePreset {
136
136
  /** Controls which colour scheme the ThemeManager applies */
137
137
  type ColorScheme = 'light' | 'dark' | 'auto';
138
138
 
139
- /**
140
- * Default theme colors for Tigercat
141
- */
142
- declare const tigercatTheme: {
143
- '--tiger-primary': string;
144
- '--tiger-primary-hover': string;
145
- '--tiger-primary-active': string;
146
- '--tiger-primary-disabled': string;
147
- '--tiger-secondary': string;
148
- '--tiger-secondary-hover': string;
149
- '--tiger-secondary-active': string;
150
- '--tiger-secondary-disabled': string;
151
- '--tiger-outline-bg-hover': string;
152
- '--tiger-ghost-bg-hover': string;
153
- '--tiger-focus-ring': string;
154
- '--tiger-surface': string;
155
- '--tiger-surface-muted': string;
156
- '--tiger-surface-raised': string;
157
- '--tiger-text': string;
158
- '--tiger-text-secondary': string;
159
- '--tiger-text-disabled': string;
160
- '--tiger-border': string;
161
- '--tiger-border-strong': string;
162
- '--tiger-success': string;
163
- '--tiger-warning': string;
164
- '--tiger-error': string;
165
- '--tiger-info': string;
166
- '--tiger-chart-1': string;
167
- '--tiger-chart-2': string;
168
- '--tiger-chart-3': string;
169
- '--tiger-chart-4': string;
170
- '--tiger-chart-5': string;
171
- '--tiger-chart-6': string;
172
- };
173
- /**
174
- * Dark mode theme overrides
175
- */
139
+ /** Default theme colors for Tigercat. */
140
+ declare const tigercatTheme: Record<string, string>;
141
+ /** Dark mode theme overrides. */
176
142
  declare const tigercatDarkTheme: Record<string, string>;
177
143
  /**
178
144
  * Tailwind CSS plugin for Tigercat
179
145
  * Injects the default CSS variables into the root scope
180
146
  */
181
- declare const tigercatPlugin: PluginWithConfig;
147
+ declare const tigercatPlugin: tailwindcss_plugin.PluginWithConfig;
182
148
  interface TigercatPluginOptions {
183
149
  /** A ThemePreset object to use instead of the built-in default */
184
150
  preset?: ThemePreset;
@@ -213,6 +179,6 @@ interface TigercatPluginOptions {
213
179
  * }
214
180
  * ```
215
181
  */
216
- declare function createTigercatPlugin(options?: TigercatPluginOptions): PluginWithConfig;
182
+ declare function createTigercatPlugin(options?: TigercatPluginOptions): tailwindcss_plugin.PluginWithConfig;
217
183
 
218
- export { type ColorScheme as C, type ThemePreset as T, type ThemeColorScale as a, type ThemeSemanticColors as b, type ThemeTypography as c, type ThemeRadius as d, type ThemeShadows as e, type ThemeSpacing as f, type ThemeMotion as g, type ThemeConfig as h, type ThemePresetName as i, tigercatDarkTheme as j, tigercatPlugin as k, type TigercatPluginOptions as l, createTigercatPlugin as m, tigercatTheme as t };
184
+ export { type ColorScheme as C, type ThemePreset as T, type ThemeConfig as a, type ThemeColorScale as b, type ThemeMotion as c, type ThemePresetName as d, type ThemeRadius as e, type ThemeSemanticColors as f, type ThemeShadows as g, type ThemeSpacing as h, type ThemeTypography as i, type TigercatPluginOptions as j, createTigercatPlugin as k, tigercatPlugin as l, tigercatTheme as m, tigercatDarkTheme as t };
@@ -1,4 +1,4 @@
1
- import { P as PluginWithConfig } from './types-CJYAW1ql.d-DDBFn6KB.cjs';
1
+ import * as tailwindcss_plugin from 'tailwindcss/plugin';
2
2
 
3
3
  /**
4
4
  * Theme configuration types for Tigercat Design System
@@ -136,49 +136,15 @@ interface ThemePreset {
136
136
  /** Controls which colour scheme the ThemeManager applies */
137
137
  type ColorScheme = 'light' | 'dark' | 'auto';
138
138
 
139
- /**
140
- * Default theme colors for Tigercat
141
- */
142
- declare const tigercatTheme: {
143
- '--tiger-primary': string;
144
- '--tiger-primary-hover': string;
145
- '--tiger-primary-active': string;
146
- '--tiger-primary-disabled': string;
147
- '--tiger-secondary': string;
148
- '--tiger-secondary-hover': string;
149
- '--tiger-secondary-active': string;
150
- '--tiger-secondary-disabled': string;
151
- '--tiger-outline-bg-hover': string;
152
- '--tiger-ghost-bg-hover': string;
153
- '--tiger-focus-ring': string;
154
- '--tiger-surface': string;
155
- '--tiger-surface-muted': string;
156
- '--tiger-surface-raised': string;
157
- '--tiger-text': string;
158
- '--tiger-text-secondary': string;
159
- '--tiger-text-disabled': string;
160
- '--tiger-border': string;
161
- '--tiger-border-strong': string;
162
- '--tiger-success': string;
163
- '--tiger-warning': string;
164
- '--tiger-error': string;
165
- '--tiger-info': string;
166
- '--tiger-chart-1': string;
167
- '--tiger-chart-2': string;
168
- '--tiger-chart-3': string;
169
- '--tiger-chart-4': string;
170
- '--tiger-chart-5': string;
171
- '--tiger-chart-6': string;
172
- };
173
- /**
174
- * Dark mode theme overrides
175
- */
139
+ /** Default theme colors for Tigercat. */
140
+ declare const tigercatTheme: Record<string, string>;
141
+ /** Dark mode theme overrides. */
176
142
  declare const tigercatDarkTheme: Record<string, string>;
177
143
  /**
178
144
  * Tailwind CSS plugin for Tigercat
179
145
  * Injects the default CSS variables into the root scope
180
146
  */
181
- declare const tigercatPlugin: PluginWithConfig;
147
+ declare const tigercatPlugin: tailwindcss_plugin.PluginWithConfig;
182
148
  interface TigercatPluginOptions {
183
149
  /** A ThemePreset object to use instead of the built-in default */
184
150
  preset?: ThemePreset;
@@ -213,6 +179,6 @@ interface TigercatPluginOptions {
213
179
  * }
214
180
  * ```
215
181
  */
216
- declare function createTigercatPlugin(options?: TigercatPluginOptions): PluginWithConfig;
182
+ declare function createTigercatPlugin(options?: TigercatPluginOptions): tailwindcss_plugin.PluginWithConfig;
217
183
 
218
- export { type ColorScheme as C, type ThemePreset as T, type ThemeColorScale as a, type ThemeSemanticColors as b, type ThemeTypography as c, type ThemeRadius as d, type ThemeShadows as e, type ThemeSpacing as f, type ThemeMotion as g, type ThemeConfig as h, type ThemePresetName as i, tigercatDarkTheme as j, tigercatPlugin as k, type TigercatPluginOptions as l, createTigercatPlugin as m, tigercatTheme as t };
184
+ export { type ColorScheme as C, type ThemePreset as T, type ThemeConfig as a, type ThemeColorScale as b, type ThemeMotion as c, type ThemePresetName as d, type ThemeRadius as e, type ThemeSemanticColors as f, type ThemeShadows as g, type ThemeSpacing as h, type ThemeTypography as i, type TigercatPluginOptions as j, createTigercatPlugin as k, tigercatPlugin as l, tigercatTheme as m, tigercatDarkTheme as t };
package/dist/tailwind.cjs CHANGED
@@ -37,6 +37,54 @@ module.exports = __toCommonJS(tailwind_entry_exports);
37
37
  // src/tailwind-plugin.ts
38
38
  var import_plugin = __toESM(require("tailwindcss/plugin"), 1);
39
39
 
40
+ // src/theme-runtime/index.ts
41
+ var THEME_CSS_VARS = {
42
+ // Primary colors
43
+ primary: "--tiger-primary",
44
+ primaryHover: "--tiger-primary-hover",
45
+ primaryActive: "--tiger-primary-active",
46
+ primaryDisabled: "--tiger-primary-disabled",
47
+ // Secondary colors
48
+ secondary: "--tiger-secondary",
49
+ secondaryHover: "--tiger-secondary-hover",
50
+ secondaryActive: "--tiger-secondary-active",
51
+ secondaryDisabled: "--tiger-secondary-disabled",
52
+ // Background hover states
53
+ outlineBgHover: "--tiger-outline-bg-hover",
54
+ ghostBgHover: "--tiger-ghost-bg-hover",
55
+ // Interaction states
56
+ focusRing: "--tiger-focus-ring",
57
+ // Surface & background
58
+ surface: "--tiger-surface",
59
+ surfaceMuted: "--tiger-surface-muted",
60
+ surfaceRaised: "--tiger-surface-raised",
61
+ // Text
62
+ text: "--tiger-text",
63
+ textSecondary: "--tiger-text-secondary",
64
+ textDisabled: "--tiger-text-disabled",
65
+ // Border
66
+ border: "--tiger-border",
67
+ borderStrong: "--tiger-border-strong",
68
+ // Status colors
69
+ success: "--tiger-success",
70
+ warning: "--tiger-warning",
71
+ error: "--tiger-error",
72
+ info: "--tiger-info",
73
+ // Chart palette
74
+ chart1: "--tiger-chart-1",
75
+ chart2: "--tiger-chart-2",
76
+ chart3: "--tiger-chart-3",
77
+ chart4: "--tiger-chart-4",
78
+ chart5: "--tiger-chart-5",
79
+ chart6: "--tiger-chart-6",
80
+ // Breakpoints
81
+ breakpointXs: "--tiger-breakpoint-xs",
82
+ breakpointSm: "--tiger-breakpoint-sm",
83
+ breakpointMd: "--tiger-breakpoint-md",
84
+ breakpointLg: "--tiger-breakpoint-lg",
85
+ breakpointXl: "--tiger-breakpoint-xl"
86
+ };
87
+
40
88
  // src/themes/modern/tokens.ts
41
89
  var MODERN_BASE_TOKENS_LIGHT = {
42
90
  // Radius (matches existing rounded-md/lg/xl)
@@ -109,78 +157,83 @@ var MODERN_REDUCED_MOTION_TOKENS = {
109
157
  "--tiger-transition-emphasized": "transform 0ms linear"
110
158
  };
111
159
 
112
- // src/tailwind-plugin.ts
113
- var tigercatTheme = {
114
- // Primary
115
- "--tiger-primary": "#2563eb",
116
- "--tiger-primary-hover": "#1d4ed8",
117
- "--tiger-primary-active": "#1e40af",
118
- "--tiger-primary-disabled": "#93c5fd",
119
- // Secondary
120
- "--tiger-secondary": "#4b5563",
121
- "--tiger-secondary-hover": "#374151",
122
- "--tiger-secondary-active": "#1f2937",
123
- "--tiger-secondary-disabled": "#9ca3af",
124
- // Background hover states
125
- "--tiger-outline-bg-hover": "#eff6ff",
126
- "--tiger-ghost-bg-hover": "#eff6ff",
127
- // Interaction
128
- "--tiger-focus-ring": "#2563eb",
129
- // Surface & background
130
- "--tiger-surface": "#ffffff",
131
- "--tiger-surface-muted": "#f9fafb",
132
- "--tiger-surface-raised": "#ffffff",
133
- // Text
134
- "--tiger-text": "#111827",
135
- "--tiger-text-secondary": "#6b7280",
136
- "--tiger-text-disabled": "#d1d5db",
137
- // Border
138
- "--tiger-border": "#e5e7eb",
139
- "--tiger-border-strong": "#9ca3af",
140
- // Status
141
- "--tiger-success": "#16a34a",
142
- "--tiger-warning": "#d97706",
143
- "--tiger-error": "#dc2626",
144
- "--tiger-info": "#3b82f6",
145
- // Chart palette
146
- "--tiger-chart-1": "#2563eb",
147
- "--tiger-chart-2": "#16a34a",
148
- "--tiger-chart-3": "#d97706",
149
- "--tiger-chart-4": "#a855f7",
150
- "--tiger-chart-5": "#0ea5e9",
151
- "--tiger-chart-6": "#ef4444"
160
+ // src/themes/default/theme.ts
161
+ var defaultThemeLightColors = {
162
+ primary: "#2563eb",
163
+ primaryHover: "#1d4ed8",
164
+ primaryActive: "#1e40af",
165
+ primaryDisabled: "#93c5fd",
166
+ secondary: "#4b5563",
167
+ secondaryHover: "#374151",
168
+ secondaryActive: "#1f2937",
169
+ secondaryDisabled: "#9ca3af",
170
+ outlineBgHover: "#eff6ff",
171
+ ghostBgHover: "#eff6ff",
172
+ focusRing: "#2563eb",
173
+ surface: "#ffffff",
174
+ surfaceMuted: "#f9fafb",
175
+ surfaceRaised: "#ffffff",
176
+ text: "#111827",
177
+ textSecondary: "#6b7280",
178
+ textDisabled: "#d1d5db",
179
+ border: "#e5e7eb",
180
+ borderStrong: "#9ca3af",
181
+ success: "#16a34a",
182
+ warning: "#d97706",
183
+ error: "#dc2626",
184
+ info: "#3b82f6",
185
+ chart1: "#2563eb",
186
+ chart2: "#16a34a",
187
+ chart3: "#d97706",
188
+ chart4: "#a855f7",
189
+ chart5: "#0ea5e9",
190
+ chart6: "#ef4444"
152
191
  };
153
- var tigercatDarkTheme = {
154
- "--tiger-primary": "#60a5fa",
155
- "--tiger-primary-hover": "#93c5fd",
156
- "--tiger-primary-active": "#bfdbfe",
157
- "--tiger-primary-disabled": "#1e40af",
158
- "--tiger-secondary": "#9ca3af",
159
- "--tiger-secondary-hover": "#d1d5db",
160
- "--tiger-secondary-active": "#e5e7eb",
161
- "--tiger-secondary-disabled": "#4b5563",
162
- "--tiger-outline-bg-hover": "#1e3a5f",
163
- "--tiger-ghost-bg-hover": "#1e3a5f",
164
- "--tiger-focus-ring": "#60a5fa",
165
- "--tiger-surface": "#111827",
166
- "--tiger-surface-muted": "#1f2937",
167
- "--tiger-surface-raised": "#1f2937",
168
- "--tiger-text": "#f9fafb",
169
- "--tiger-text-secondary": "#d1d5db",
170
- "--tiger-text-disabled": "#4b5563",
171
- "--tiger-border": "#374151",
172
- "--tiger-border-strong": "#6b7280",
173
- "--tiger-success": "#4ade80",
174
- "--tiger-warning": "#fbbf24",
175
- "--tiger-error": "#f87171",
176
- "--tiger-info": "#60a5fa",
177
- "--tiger-chart-1": "#60a5fa",
178
- "--tiger-chart-2": "#4ade80",
179
- "--tiger-chart-3": "#fbbf24",
180
- "--tiger-chart-4": "#c084fc",
181
- "--tiger-chart-5": "#38bdf8",
182
- "--tiger-chart-6": "#f87171"
192
+ var defaultThemeDarkColors = {
193
+ primary: "#60a5fa",
194
+ primaryHover: "#93c5fd",
195
+ primaryActive: "#bfdbfe",
196
+ primaryDisabled: "#1e40af",
197
+ secondary: "#9ca3af",
198
+ secondaryHover: "#d1d5db",
199
+ secondaryActive: "#e5e7eb",
200
+ secondaryDisabled: "#4b5563",
201
+ outlineBgHover: "#1e3a5f",
202
+ ghostBgHover: "#1e3a5f",
203
+ focusRing: "#60a5fa",
204
+ surface: "#111827",
205
+ surfaceMuted: "#1f2937",
206
+ surfaceRaised: "#1f2937",
207
+ text: "#f9fafb",
208
+ textSecondary: "#d1d5db",
209
+ textDisabled: "#4b5563",
210
+ border: "#374151",
211
+ borderStrong: "#6b7280",
212
+ success: "#4ade80",
213
+ warning: "#fbbf24",
214
+ error: "#f87171",
215
+ info: "#60a5fa",
216
+ chart1: "#60a5fa",
217
+ chart2: "#4ade80",
218
+ chart3: "#fbbf24",
219
+ chart4: "#c084fc",
220
+ chart5: "#38bdf8",
221
+ chart6: "#f87171"
183
222
  };
223
+
224
+ // src/tailwind-plugin.ts
225
+ function presetToVars(colors) {
226
+ const vars = {};
227
+ for (const [key, value] of Object.entries(colors)) {
228
+ const varName = THEME_CSS_VARS[key];
229
+ if (varName && value) {
230
+ vars[varName] = value;
231
+ }
232
+ }
233
+ return vars;
234
+ }
235
+ var tigercatTheme = presetToVars(defaultThemeLightColors);
236
+ var tigercatDarkTheme = presetToVars(defaultThemeDarkColors);
184
237
  var tigercatDirectionBase = {
185
238
  '[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
186
239
  transform: "scaleX(-1)"
@@ -1,3 +1,2 @@
1
- export { k as default } from './tailwind-entry-DUchHtjs.cjs';
2
- import './types-CJYAW1ql.d-DDBFn6KB.cjs';
3
- import './resolve-config-QUZ9b-Gn.mjs';
1
+ export { l as default } from './tailwind-entry-CNBAH7iv.cjs';
2
+ import 'tailwindcss/plugin';
@@ -1,3 +1,2 @@
1
- export { k as default } from './tailwind-entry-D4_sseNi.js';
2
- import './types-CJYAW1ql.d-DDBFn6KB.js';
3
- import './resolve-config-QUZ9b-Gn.mjs';
1
+ export { l as default } from './tailwind-entry-CNBAH7iv.js';
2
+ import 'tailwindcss/plugin';