@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.
- package/dist/{datepicker-DXzS_8l8.d.cts → datepicker-gSOJN_pQ.d.cts} +1 -1
- package/dist/{datepicker-DXzS_8l8.d.ts → datepicker-gSOJN_pQ.d.ts} +1 -1
- package/dist/datepicker-locales/ar-SA.d.cts +1 -1
- package/dist/datepicker-locales/ar-SA.d.ts +1 -1
- package/dist/datepicker-locales/de-DE.d.cts +1 -1
- package/dist/datepicker-locales/de-DE.d.ts +1 -1
- package/dist/datepicker-locales/en-US.d.cts +1 -1
- package/dist/datepicker-locales/en-US.d.ts +1 -1
- package/dist/datepicker-locales/es-ES.d.cts +1 -1
- package/dist/datepicker-locales/es-ES.d.ts +1 -1
- package/dist/datepicker-locales/fr-FR.d.cts +1 -1
- package/dist/datepicker-locales/fr-FR.d.ts +1 -1
- package/dist/datepicker-locales/id-ID.d.cts +1 -1
- package/dist/datepicker-locales/id-ID.d.ts +1 -1
- package/dist/datepicker-locales/ja-JP.d.cts +1 -1
- package/dist/datepicker-locales/ja-JP.d.ts +1 -1
- package/dist/datepicker-locales/ko-KR.d.cts +1 -1
- package/dist/datepicker-locales/ko-KR.d.ts +1 -1
- package/dist/datepicker-locales/pt-BR.d.cts +1 -1
- package/dist/datepicker-locales/pt-BR.d.ts +1 -1
- package/dist/datepicker-locales/th-TH.d.cts +1 -1
- package/dist/datepicker-locales/th-TH.d.ts +1 -1
- package/dist/datepicker-locales/vi-VN.d.cts +1 -1
- package/dist/datepicker-locales/vi-VN.d.ts +1 -1
- package/dist/datepicker-locales/zh-CN.d.cts +1 -1
- package/dist/datepicker-locales/zh-CN.d.ts +1 -1
- package/dist/datepicker-locales/zh-TW.d.cts +1 -1
- package/dist/datepicker-locales/zh-TW.d.ts +1 -1
- package/dist/icons/registry.cjs +1 -3
- package/dist/icons/registry.js +1 -3
- package/dist/index.cjs +2094 -715
- package/dist/index.d.cts +811 -319
- package/dist/index.d.ts +811 -319
- package/dist/index.js +2023 -712
- package/dist/locale-BTAo7XO1.d.cts +392 -0
- package/dist/locale-hhhI2kH6.d.ts +392 -0
- package/dist/locales/ar-SA.cjs +357 -4
- package/dist/locales/ar-SA.d.cts +2 -2
- package/dist/locales/ar-SA.d.ts +2 -2
- package/dist/locales/ar-SA.js +357 -4
- package/dist/locales/de-DE.cjs +357 -4
- package/dist/locales/de-DE.d.cts +2 -2
- package/dist/locales/de-DE.d.ts +2 -2
- package/dist/locales/de-DE.js +357 -4
- package/dist/locales/en-US.cjs +159 -2
- package/dist/locales/en-US.d.cts +2 -2
- package/dist/locales/en-US.d.ts +2 -2
- package/dist/locales/en-US.js +157 -2
- package/dist/locales/es-ES.cjs +357 -4
- package/dist/locales/es-ES.d.cts +2 -2
- package/dist/locales/es-ES.d.ts +2 -2
- package/dist/locales/es-ES.js +357 -4
- package/dist/locales/fr-FR.cjs +357 -4
- package/dist/locales/fr-FR.d.cts +2 -2
- package/dist/locales/fr-FR.d.ts +2 -2
- package/dist/locales/fr-FR.js +357 -4
- package/dist/locales/id-ID.cjs +445 -3
- package/dist/locales/id-ID.d.cts +2 -2
- package/dist/locales/id-ID.d.ts +2 -2
- package/dist/locales/id-ID.js +443 -3
- package/dist/locales/ja-JP.cjs +445 -3
- package/dist/locales/ja-JP.d.cts +2 -2
- package/dist/locales/ja-JP.d.ts +2 -2
- package/dist/locales/ja-JP.js +443 -3
- package/dist/locales/ko-KR.cjs +445 -3
- package/dist/locales/ko-KR.d.cts +2 -2
- package/dist/locales/ko-KR.d.ts +2 -2
- package/dist/locales/ko-KR.js +443 -3
- package/dist/locales/pt-BR.cjs +357 -4
- package/dist/locales/pt-BR.d.cts +2 -2
- package/dist/locales/pt-BR.d.ts +2 -2
- package/dist/locales/pt-BR.js +357 -4
- package/dist/locales/th-TH.cjs +445 -3
- package/dist/locales/th-TH.d.cts +2 -2
- package/dist/locales/th-TH.d.ts +2 -2
- package/dist/locales/th-TH.js +443 -3
- package/dist/locales/vi-VN.cjs +445 -3
- package/dist/locales/vi-VN.d.cts +2 -2
- package/dist/locales/vi-VN.d.ts +2 -2
- package/dist/locales/vi-VN.js +443 -3
- package/dist/locales/zh-CN.cjs +159 -2
- package/dist/locales/zh-CN.d.cts +2 -2
- package/dist/locales/zh-CN.d.ts +2 -2
- package/dist/locales/zh-CN.js +157 -2
- package/dist/locales/zh-TW.cjs +445 -3
- package/dist/locales/zh-TW.d.cts +2 -2
- package/dist/locales/zh-TW.d.ts +2 -2
- package/dist/locales/zh-TW.js +443 -3
- package/dist/{table-export-CZ7wtGf4.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
- package/dist/{table-export-DOqFkseW.d.cts → table-export-vfyBzKui.d.cts} +2 -2
- package/dist/tailwind/modern.cjs +76 -81
- package/dist/tailwind/modern.d.cts +2 -3
- package/dist/tailwind/modern.d.ts +2 -3
- package/dist/tailwind/modern.js +76 -81
- package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.cts} +7 -41
- package/dist/{tailwind-entry-DUchHtjs.d.cts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
- package/dist/tailwind.cjs +123 -70
- package/dist/tailwind.d.cts +2 -3
- package/dist/tailwind.d.ts +2 -3
- package/dist/tailwind.js +123 -70
- package/dist/utils/table-export.cjs +7 -0
- package/dist/utils/table-export.d.cts +3 -3
- package/dist/utils/table-export.d.ts +3 -3
- package/dist/utils/table-export.js +7 -0
- package/package.json +5 -12
- package/dist/locale-BuZwW3Ok.d.ts +0 -135
- package/dist/locale-DDFn0b6z.d.cts +0 -135
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
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
|
|
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 };
|
package/dist/tailwind/modern.js
CHANGED
|
@@ -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/
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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/
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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)"
|
package/dist/tailwind.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '
|
|
3
|
-
import './resolve-config-QUZ9b-Gn.mjs';
|
|
1
|
+
export { l as default } from './tailwind-entry-CNBAH7iv.cjs';
|
|
2
|
+
import 'tailwindcss/plugin';
|
package/dist/tailwind.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '
|
|
3
|
-
import './resolve-config-QUZ9b-Gn.mjs';
|
|
1
|
+
export { l as default } from './tailwind-entry-CNBAH7iv.js';
|
|
2
|
+
import 'tailwindcss/plugin';
|