@expcat/tigercat-core 2.0.19 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{data-export-CJTP3rIi.d.ts → data-export-BtjseC7G.d.ts} +1 -1
  2. package/dist/index.d.ts +5152 -2046
  3. package/dist/index.js +3489 -437
  4. package/dist/{locale-CaxkEHEG.d.ts → locale-CGl5S1-B.d.ts} +70 -1
  5. package/dist/locales/ar-SA.d.ts +1 -1
  6. package/dist/locales/ar-SA.js +98 -0
  7. package/dist/locales/de-DE.d.ts +1 -1
  8. package/dist/locales/de-DE.js +98 -0
  9. package/dist/locales/en-US.d.ts +1 -1
  10. package/dist/locales/en-US.js +49 -0
  11. package/dist/locales/es-ES.d.ts +1 -1
  12. package/dist/locales/es-ES.js +98 -0
  13. package/dist/locales/fr-FR.d.ts +1 -1
  14. package/dist/locales/fr-FR.js +98 -0
  15. package/dist/locales/id-ID.d.ts +1 -1
  16. package/dist/locales/id-ID.js +98 -0
  17. package/dist/locales/ja-JP.d.ts +1 -1
  18. package/dist/locales/ja-JP.js +98 -0
  19. package/dist/locales/ko-KR.d.ts +1 -1
  20. package/dist/locales/ko-KR.js +98 -0
  21. package/dist/locales/pt-BR.d.ts +1 -1
  22. package/dist/locales/pt-BR.js +98 -0
  23. package/dist/locales/th-TH.d.ts +1 -1
  24. package/dist/locales/th-TH.js +98 -0
  25. package/dist/locales/vi-VN.d.ts +1 -1
  26. package/dist/locales/vi-VN.js +98 -0
  27. package/dist/locales/zh-CN.d.ts +1 -1
  28. package/dist/locales/zh-CN.js +49 -0
  29. package/dist/locales/zh-TW.d.ts +1 -1
  30. package/dist/locales/zh-TW.js +98 -0
  31. package/dist/{table-DtmPxL6W.d.ts → table-D_1D4Euk.d.ts} +1 -1
  32. package/dist/tailwind/modern.js +25 -14
  33. package/dist/{tailwind-entry-CNBAH7iv.d.ts → tailwind-entry-nnuviNxx.d.ts} +1 -1
  34. package/dist/tailwind.d.ts +1 -1
  35. package/dist/tailwind.js +23 -12
  36. package/dist/utils/data-export.d.ts +3 -3
  37. package/dist/utils/table-export.d.ts +2 -2
  38. package/package.json +1 -1
  39. package/tokens/tailwind-tokens.js +3 -6
  40. package/tokens/tokens.css +4 -8
@@ -203,6 +203,47 @@ var enUS = {
203
203
  dragHintText: "Drag to move",
204
204
  boardAriaLabel: "Task Board"
205
205
  },
206
+ chatWindow: {
207
+ emptyText: "No messages",
208
+ sendText: "Send",
209
+ placeholder: "Type a message",
210
+ sendingText: "Sending",
211
+ sentText: "Delivered",
212
+ failedText: "Failed to send"
213
+ },
214
+ code: {
215
+ copyLabel: "Copy",
216
+ copiedLabel: "Copied",
217
+ copyFailedLabel: "Copy failed"
218
+ },
219
+ commentThread: {
220
+ emptyText: "No comments",
221
+ replyPlaceholder: "Write a reply...",
222
+ replyButtonText: "Reply",
223
+ cancelReplyText: "Cancel",
224
+ likeText: "Like",
225
+ likedText: "Liked",
226
+ replyText: "Reply",
227
+ moreText: "More",
228
+ loadMoreText: "Load more",
229
+ collapseRepliesText: "\u25BE Collapse replies",
230
+ expandRepliesText: "\u25B8 Expand {count} replies"
231
+ },
232
+ activityFeed: {
233
+ emptyText: "No activity",
234
+ loadingText: "Loading..."
235
+ },
236
+ notificationCenter: {
237
+ title: "Notifications",
238
+ emptyText: "No notifications",
239
+ loadingText: "Loading...",
240
+ allLabel: "All",
241
+ unreadLabel: "Unread",
242
+ readLabel: "Read",
243
+ markAllReadText: "Mark all as read",
244
+ markReadText: "Mark as read",
245
+ markUnreadText: "Mark as unread"
246
+ },
206
247
  select: {
207
248
  doneText: "Done"
208
249
  },
@@ -306,6 +347,14 @@ var enUS = {
306
347
  patternMismatch: "Value does not match the required pattern",
307
348
  validatorFailed: "Validation failed",
308
349
  validatorError: "Validation error occurred"
350
+ },
351
+ inputOtp: {
352
+ groupLabel: "One-time password",
353
+ slotLabel: "Character {index} of {total}"
354
+ },
355
+ tagsInput: {
356
+ removeTagLabel: "Remove {tag}",
357
+ clearAllLabel: "Clear all tags"
309
358
  }
310
359
  };
311
360
 
@@ -419,8 +468,57 @@ var viVN = defineLocale({
419
468
  dragHintText: "K\xE9o \u0111\u1EC3 di chuy\u1EC3n",
420
469
  boardAriaLabel: "B\u1EA3ng nhi\u1EC7m v\u1EE5"
421
470
  },
471
+ chatWindow: {
472
+ emptyText: "Kh\xF4ng c\xF3 tin nh\u1EAFn",
473
+ sendText: "G\u1EEDi",
474
+ placeholder: "Nh\u1EADp tin nh\u1EAFn",
475
+ sendingText: "\u0110ang g\u1EEDi",
476
+ sentText: "\u0110\xE3 g\u1EEDi",
477
+ failedText: "G\u1EEDi th\u1EA5t b\u1EA1i"
478
+ },
479
+ code: {
480
+ copyLabel: "Sao ch\xE9p",
481
+ copiedLabel: "\u0110\xE3 sao ch\xE9p",
482
+ copyFailedLabel: "Sao ch\xE9p th\u1EA5t b\u1EA1i"
483
+ },
484
+ commentThread: {
485
+ emptyText: "Kh\xF4ng c\xF3 b\xECnh lu\u1EADn",
486
+ replyPlaceholder: "Vi\u1EBFt ph\u1EA3n h\u1ED3i...",
487
+ replyButtonText: "Tr\u1EA3 l\u1EDDi",
488
+ cancelReplyText: "H\u1EE7y",
489
+ likeText: "Th\xEDch",
490
+ likedText: "\u0110\xE3 th\xEDch",
491
+ replyText: "Tr\u1EA3 l\u1EDDi",
492
+ moreText: "Th\xEAm",
493
+ loadMoreText: "T\u1EA3i th\xEAm",
494
+ collapseRepliesText: "\u25BE Thu g\u1ECDn ph\u1EA3n h\u1ED3i",
495
+ expandRepliesText: "\u25B8 M\u1EDF r\u1ED9ng {count} ph\u1EA3n h\u1ED3i"
496
+ },
497
+ activityFeed: {
498
+ emptyText: "Kh\xF4ng c\xF3 ho\u1EA1t \u0111\u1ED9ng",
499
+ loadingText: "\u0110ang t\u1EA3i..."
500
+ },
501
+ notificationCenter: {
502
+ title: "Th\xF4ng b\xE1o",
503
+ emptyText: "Kh\xF4ng c\xF3 th\xF4ng b\xE1o",
504
+ loadingText: "\u0110ang t\u1EA3i...",
505
+ allLabel: "T\u1EA5t c\u1EA3",
506
+ unreadLabel: "Ch\u01B0a \u0111\u1ECDc",
507
+ readLabel: "\u0110\xE3 \u0111\u1ECDc",
508
+ markAllReadText: "\u0110\xE1nh d\u1EA5u t\u1EA5t c\u1EA3 l\xE0 \u0111\xE3 \u0111\u1ECDc",
509
+ markReadText: "\u0110\xE1nh d\u1EA5u \u0111\xE3 \u0111\u1ECDc",
510
+ markUnreadText: "\u0110\xE1nh d\u1EA5u ch\u01B0a \u0111\u1ECDc"
511
+ },
422
512
  select: {
423
513
  doneText: "Ho\xE0n th\xE0nh"
514
+ },
515
+ inputOtp: {
516
+ groupLabel: "M\u1EADt kh\u1EA9u d\xF9ng m\u1ED9t l\u1EA7n",
517
+ slotLabel: "K\xFD t\u1EF1 {index} trong {total}"
518
+ },
519
+ tagsInput: {
520
+ removeTagLabel: "X\xF3a {tag}",
521
+ clearAllLabel: "X\xF3a t\u1EA5t c\u1EA3 th\u1EBB"
424
522
  }
425
523
  });
426
524
  export {
@@ -1,4 +1,4 @@
1
- import { T as TigerLocale } from '../locale-CaxkEHEG.js';
1
+ import { T as TigerLocale } from '../locale-CGl5S1-B.js';
2
2
  import '../datepicker-Digy7Stt.js';
3
3
 
4
4
  /**
@@ -203,6 +203,47 @@ var zhCN = {
203
203
  dragHintText: "\u62D6\u62FD\u4EE5\u79FB\u52A8",
204
204
  boardAriaLabel: "\u4EFB\u52A1\u770B\u677F"
205
205
  },
206
+ chatWindow: {
207
+ emptyText: "\u6682\u65E0\u6D88\u606F",
208
+ sendText: "\u53D1\u9001",
209
+ placeholder: "\u8BF7\u8F93\u5165\u6D88\u606F",
210
+ sendingText: "\u53D1\u9001\u4E2D",
211
+ sentText: "\u5DF2\u9001\u8FBE",
212
+ failedText: "\u53D1\u9001\u5931\u8D25"
213
+ },
214
+ code: {
215
+ copyLabel: "\u590D\u5236",
216
+ copiedLabel: "\u5DF2\u590D\u5236",
217
+ copyFailedLabel: "\u590D\u5236\u5931\u8D25"
218
+ },
219
+ commentThread: {
220
+ emptyText: "\u6682\u65E0\u8BC4\u8BBA",
221
+ replyPlaceholder: "\u5199\u4E0B\u56DE\u590D...",
222
+ replyButtonText: "\u56DE\u590D",
223
+ cancelReplyText: "\u53D6\u6D88",
224
+ likeText: "\u70B9\u8D5E",
225
+ likedText: "\u5DF2\u8D5E",
226
+ replyText: "\u56DE\u590D",
227
+ moreText: "\u66F4\u591A",
228
+ loadMoreText: "\u52A0\u8F7D\u66F4\u591A",
229
+ collapseRepliesText: "\u25BE \u6536\u8D77\u56DE\u590D",
230
+ expandRepliesText: "\u25B8 \u5C55\u5F00 {count} \u6761\u56DE\u590D"
231
+ },
232
+ activityFeed: {
233
+ emptyText: "\u6682\u65E0\u52A8\u6001",
234
+ loadingText: "\u52A0\u8F7D\u4E2D..."
235
+ },
236
+ notificationCenter: {
237
+ title: "\u901A\u77E5\u4E2D\u5FC3",
238
+ emptyText: "\u6682\u65E0\u901A\u77E5",
239
+ loadingText: "\u52A0\u8F7D\u4E2D...",
240
+ allLabel: "\u5168\u90E8",
241
+ unreadLabel: "\u672A\u8BFB",
242
+ readLabel: "\u5DF2\u8BFB",
243
+ markAllReadText: "\u5168\u90E8\u6807\u8BB0\u5DF2\u8BFB",
244
+ markReadText: "\u6807\u8BB0\u5DF2\u8BFB",
245
+ markUnreadText: "\u6807\u8BB0\u672A\u8BFB"
246
+ },
206
247
  select: {
207
248
  doneText: "\u5B8C\u6210"
208
249
  },
@@ -306,6 +347,14 @@ var zhCN = {
306
347
  patternMismatch: "\u683C\u5F0F\u4E0D\u6B63\u786E",
307
348
  validatorFailed: "\u6821\u9A8C\u672A\u901A\u8FC7",
308
349
  validatorError: "\u6821\u9A8C\u65F6\u53D1\u751F\u9519\u8BEF"
350
+ },
351
+ inputOtp: {
352
+ groupLabel: "\u4E00\u6B21\u6027\u9A8C\u8BC1\u7801",
353
+ slotLabel: "\u7B2C {index} \u4F4D\uFF0C\u5171 {total} \u4F4D"
354
+ },
355
+ tagsInput: {
356
+ removeTagLabel: "\u79FB\u9664 {tag}",
357
+ clearAllLabel: "\u6E05\u7A7A\u5168\u90E8\u6807\u7B7E"
309
358
  }
310
359
  };
311
360
  export {
@@ -1,4 +1,4 @@
1
- import { T as TigerLocale } from '../locale-CaxkEHEG.js';
1
+ import { T as TigerLocale } from '../locale-CGl5S1-B.js';
2
2
  import '../datepicker-Digy7Stt.js';
3
3
 
4
4
  /**
@@ -203,6 +203,47 @@ var enUS = {
203
203
  dragHintText: "Drag to move",
204
204
  boardAriaLabel: "Task Board"
205
205
  },
206
+ chatWindow: {
207
+ emptyText: "No messages",
208
+ sendText: "Send",
209
+ placeholder: "Type a message",
210
+ sendingText: "Sending",
211
+ sentText: "Delivered",
212
+ failedText: "Failed to send"
213
+ },
214
+ code: {
215
+ copyLabel: "Copy",
216
+ copiedLabel: "Copied",
217
+ copyFailedLabel: "Copy failed"
218
+ },
219
+ commentThread: {
220
+ emptyText: "No comments",
221
+ replyPlaceholder: "Write a reply...",
222
+ replyButtonText: "Reply",
223
+ cancelReplyText: "Cancel",
224
+ likeText: "Like",
225
+ likedText: "Liked",
226
+ replyText: "Reply",
227
+ moreText: "More",
228
+ loadMoreText: "Load more",
229
+ collapseRepliesText: "\u25BE Collapse replies",
230
+ expandRepliesText: "\u25B8 Expand {count} replies"
231
+ },
232
+ activityFeed: {
233
+ emptyText: "No activity",
234
+ loadingText: "Loading..."
235
+ },
236
+ notificationCenter: {
237
+ title: "Notifications",
238
+ emptyText: "No notifications",
239
+ loadingText: "Loading...",
240
+ allLabel: "All",
241
+ unreadLabel: "Unread",
242
+ readLabel: "Read",
243
+ markAllReadText: "Mark all as read",
244
+ markReadText: "Mark as read",
245
+ markUnreadText: "Mark as unread"
246
+ },
206
247
  select: {
207
248
  doneText: "Done"
208
249
  },
@@ -306,6 +347,14 @@ var enUS = {
306
347
  patternMismatch: "Value does not match the required pattern",
307
348
  validatorFailed: "Validation failed",
308
349
  validatorError: "Validation error occurred"
350
+ },
351
+ inputOtp: {
352
+ groupLabel: "One-time password",
353
+ slotLabel: "Character {index} of {total}"
354
+ },
355
+ tagsInput: {
356
+ removeTagLabel: "Remove {tag}",
357
+ clearAllLabel: "Clear all tags"
309
358
  }
310
359
  };
311
360
 
@@ -419,8 +468,57 @@ var zhTW = defineLocale({
419
468
  dragHintText: "\u62D6\u66F3\u4EE5\u79FB\u52D5",
420
469
  boardAriaLabel: "\u4EFB\u52D9\u770B\u677F"
421
470
  },
471
+ chatWindow: {
472
+ emptyText: "\u66AB\u7121\u8A0A\u606F",
473
+ sendText: "\u50B3\u9001",
474
+ placeholder: "\u8ACB\u8F38\u5165\u8A0A\u606F",
475
+ sendingText: "\u50B3\u9001\u4E2D",
476
+ sentText: "\u5DF2\u9001\u9054",
477
+ failedText: "\u50B3\u9001\u5931\u6557"
478
+ },
479
+ code: {
480
+ copyLabel: "\u8907\u88FD",
481
+ copiedLabel: "\u5DF2\u8907\u88FD",
482
+ copyFailedLabel: "\u8907\u88FD\u5931\u6557"
483
+ },
484
+ commentThread: {
485
+ emptyText: "\u66AB\u7121\u8A55\u8AD6",
486
+ replyPlaceholder: "\u5BEB\u4E0B\u56DE\u8986...",
487
+ replyButtonText: "\u56DE\u8986",
488
+ cancelReplyText: "\u53D6\u6D88",
489
+ likeText: "\u9EDE\u8B9A",
490
+ likedText: "\u5DF2\u8B9A",
491
+ replyText: "\u56DE\u8986",
492
+ moreText: "\u66F4\u591A",
493
+ loadMoreText: "\u8F09\u5165\u66F4\u591A",
494
+ collapseRepliesText: "\u25BE \u6536\u5408\u56DE\u8986",
495
+ expandRepliesText: "\u25B8 \u5C55\u958B {count} \u5247\u56DE\u8986"
496
+ },
497
+ activityFeed: {
498
+ emptyText: "\u66AB\u7121\u52D5\u614B",
499
+ loadingText: "\u8F09\u5165\u4E2D..."
500
+ },
501
+ notificationCenter: {
502
+ title: "\u901A\u77E5\u4E2D\u5FC3",
503
+ emptyText: "\u66AB\u7121\u901A\u77E5",
504
+ loadingText: "\u8F09\u5165\u4E2D...",
505
+ allLabel: "\u5168\u90E8",
506
+ unreadLabel: "\u672A\u8B80",
507
+ readLabel: "\u5DF2\u8B80",
508
+ markAllReadText: "\u5168\u90E8\u6A19\u8A18\u5DF2\u8B80",
509
+ markReadText: "\u6A19\u8A18\u5DF2\u8B80",
510
+ markUnreadText: "\u6A19\u8A18\u672A\u8B80"
511
+ },
422
512
  select: {
423
513
  doneText: "\u5B8C\u6210"
514
+ },
515
+ inputOtp: {
516
+ groupLabel: "\u4E00\u6B21\u6027\u9A57\u8B49\u78BC",
517
+ slotLabel: "\u7B2C {index} \u4F4D\uFF0C\u5171 {total} \u4F4D"
518
+ },
519
+ tagsInput: {
520
+ removeTagLabel: "\u79FB\u9664 {tag}",
521
+ clearAllLabel: "\u6E05\u7A7A\u5168\u90E8\u6A19\u7C64"
424
522
  }
425
523
  });
426
524
  export {
@@ -1,4 +1,4 @@
1
- import { a as TigerLocaleInput, b as TigerLocalePagination, c as TigerLocaleTable } from './locale-CaxkEHEG.js';
1
+ import { a as TigerLocaleInput, b as TigerLocalePagination, c as TigerLocaleTable } from './locale-CGl5S1-B.js';
2
2
 
3
3
  /**
4
4
  * Pagination component types and interfaces
@@ -41,6 +41,10 @@ var THEME_CSS_VARS = {
41
41
  chart4: "--tiger-chart-4",
42
42
  chart5: "--tiger-chart-5",
43
43
  chart6: "--tiger-chart-6",
44
+ // Aliases of existing semantic tokens (not a third color system)
45
+ textMuted: "--tiger-text-muted",
46
+ fill: "--tiger-fill",
47
+ bg: "--tiger-bg",
44
48
  // Breakpoints
45
49
  breakpointXs: "--tiger-breakpoint-xs",
46
50
  breakpointSm: "--tiger-breakpoint-sm",
@@ -48,6 +52,23 @@ var THEME_CSS_VARS = {
48
52
  breakpointLg: "--tiger-breakpoint-lg",
49
53
  breakpointXl: "--tiger-breakpoint-xl"
50
54
  };
55
+ var THEME_CSS_VAR_ALIAS_SOURCES = {
56
+ textMuted: "textSecondary",
57
+ fill: "surfaceMuted",
58
+ bg: "surface"
59
+ };
60
+ function semanticColorsToCssVars(colors = {}) {
61
+ const vars = {};
62
+ for (const [key, value] of Object.entries(colors)) {
63
+ const varName = THEME_CSS_VARS[key];
64
+ if (varName && value) vars[varName] = value;
65
+ }
66
+ for (const aliasKey of Object.keys(THEME_CSS_VAR_ALIAS_SOURCES)) {
67
+ const sourceKey = THEME_CSS_VAR_ALIAS_SOURCES[aliasKey];
68
+ vars[THEME_CSS_VARS[aliasKey]] = `var(${THEME_CSS_VARS[sourceKey]})`;
69
+ }
70
+ return vars;
71
+ }
51
72
 
52
73
  // src/themes/modern/tokens.ts
53
74
  var MODERN_BASE_TOKENS_LIGHT = {
@@ -249,18 +270,8 @@ var defaultThemeDarkColors = {
249
270
  };
250
271
 
251
272
  // 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);
273
+ var tigercatTheme = semanticColorsToCssVars(defaultThemeLightColors);
274
+ var tigercatDarkTheme = semanticColorsToCssVars(defaultThemeDarkColors);
264
275
  var tigercatDirectionBase = {
265
276
  '[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
266
277
  transform: "scaleX(-1)"
@@ -302,8 +313,8 @@ var tigercatPlugin = plugin(function({ addBase }) {
302
313
  function createTigercatPlugin(options = {}) {
303
314
  return plugin(function({ addBase }) {
304
315
  const preset = options.preset;
305
- const lightVars = preset?.light?.colors ? presetToVars(preset.light.colors) : tigercatTheme;
306
- const darkVars = preset?.dark?.colors ? presetToVars(preset.dark.colors) : tigercatDarkTheme;
316
+ const lightVars = preset?.light?.colors ? semanticColorsToCssVars(preset.light.colors) : tigercatTheme;
317
+ const darkVars = preset?.dark?.colors ? semanticColorsToCssVars(preset.dark.colors) : tigercatDarkTheme;
307
318
  addBase({
308
319
  ":root": { ...lightVars, ...MODERN_BASE_TOKENS_LIGHT },
309
320
  ".dark": { ...darkVars, ...MODERN_BASE_TOKENS_DARK },
@@ -181,4 +181,4 @@ interface TigercatPluginOptions {
181
181
  */
182
182
  declare function createTigercatPlugin(options?: TigercatPluginOptions): tailwindcss_plugin.PluginWithConfig;
183
183
 
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 };
184
+ export { type ColorScheme as C, type ThemeSemanticColors as T, type ThemePreset as a, type ThemeConfig as b, type ThemeColorScale as c, type ThemeMotion as d, type ThemePresetName as e, type ThemeRadius 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,2 +1,2 @@
1
- export { l as default } from './tailwind-entry-CNBAH7iv.js';
1
+ export { l as default } from './tailwind-entry-nnuviNxx.js';
2
2
  import 'tailwindcss/plugin';
package/dist/tailwind.js CHANGED
@@ -41,6 +41,10 @@ var THEME_CSS_VARS = {
41
41
  chart4: "--tiger-chart-4",
42
42
  chart5: "--tiger-chart-5",
43
43
  chart6: "--tiger-chart-6",
44
+ // Aliases of existing semantic tokens (not a third color system)
45
+ textMuted: "--tiger-text-muted",
46
+ fill: "--tiger-fill",
47
+ bg: "--tiger-bg",
44
48
  // Breakpoints
45
49
  breakpointXs: "--tiger-breakpoint-xs",
46
50
  breakpointSm: "--tiger-breakpoint-sm",
@@ -48,6 +52,23 @@ var THEME_CSS_VARS = {
48
52
  breakpointLg: "--tiger-breakpoint-lg",
49
53
  breakpointXl: "--tiger-breakpoint-xl"
50
54
  };
55
+ var THEME_CSS_VAR_ALIAS_SOURCES = {
56
+ textMuted: "textSecondary",
57
+ fill: "surfaceMuted",
58
+ bg: "surface"
59
+ };
60
+ function semanticColorsToCssVars(colors = {}) {
61
+ const vars = {};
62
+ for (const [key, value] of Object.entries(colors)) {
63
+ const varName = THEME_CSS_VARS[key];
64
+ if (varName && value) vars[varName] = value;
65
+ }
66
+ for (const aliasKey of Object.keys(THEME_CSS_VAR_ALIAS_SOURCES)) {
67
+ const sourceKey = THEME_CSS_VAR_ALIAS_SOURCES[aliasKey];
68
+ vars[THEME_CSS_VARS[aliasKey]] = `var(${THEME_CSS_VARS[sourceKey]})`;
69
+ }
70
+ return vars;
71
+ }
51
72
 
52
73
  // src/themes/modern/tokens.ts
53
74
  var MODERN_BASE_TOKENS_LIGHT = {
@@ -186,18 +207,8 @@ var defaultThemeDarkColors = {
186
207
  };
187
208
 
188
209
  // src/tailwind-plugin.ts
189
- function presetToVars(colors) {
190
- const vars = {};
191
- for (const [key, value] of Object.entries(colors)) {
192
- const varName = THEME_CSS_VARS[key];
193
- if (varName && value) {
194
- vars[varName] = value;
195
- }
196
- }
197
- return vars;
198
- }
199
- var tigercatTheme = presetToVars(defaultThemeLightColors);
200
- var tigercatDarkTheme = presetToVars(defaultThemeDarkColors);
210
+ var tigercatTheme = semanticColorsToCssVars(defaultThemeLightColors);
211
+ var tigercatDarkTheme = semanticColorsToCssVars(defaultThemeDarkColors);
201
212
  var tigercatDirectionBase = {
202
213
  '[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
203
214
  transform: "scaleX(-1)"
@@ -1,6 +1,6 @@
1
- import { T as TableColumn } from '../table-DtmPxL6W.js';
2
- import { D as DataExportFormat, a as DataExportOptions } from '../data-export-CJTP3rIi.js';
3
- import '../locale-CaxkEHEG.js';
1
+ import { T as TableColumn } from '../table-D_1D4Euk.js';
2
+ import { D as DataExportFormat, a as DataExportOptions } from '../data-export-BtjseC7G.js';
3
+ import '../locale-CGl5S1-B.js';
4
4
  import '../datepicker-Digy7Stt.js';
5
5
 
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { x as TableExportFormat, T as TableColumn } from '../table-DtmPxL6W.js';
2
- import '../locale-CaxkEHEG.js';
1
+ import { x as TableExportFormat, T as TableColumn } from '../table-D_1D4Euk.js';
2
+ import '../locale-CGl5S1-B.js';
3
3
  import '../datepicker-Digy7Stt.js';
4
4
 
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expcat/tigercat-core",
3
- "version": "2.0.19",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "description": "Core utilities for Tigercat UI library",
6
6
  "license": "MIT",
@@ -109,12 +109,9 @@ module.exports = {
109
109
  boxShadow: {
110
110
  'tiger-xs': '0 1px 2px 0 rgba(0,0,0,0.05)',
111
111
  'tiger-sm': '0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)',
112
- 'tiger-md':
113
- '0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)',
114
- 'tiger-lg':
115
- '0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)',
116
- 'tiger-xl':
117
- '0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)'
112
+ 'tiger-md': '0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)',
113
+ 'tiger-lg': '0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)',
114
+ 'tiger-xl': '0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)'
118
115
  },
119
116
  fontFamily: {
120
117
  'tiger-base': [
package/tokens/tokens.css CHANGED
@@ -89,17 +89,14 @@
89
89
  --tiger-primitive-radius-xl: 12px;
90
90
  --tiger-primitive-radius-full: 9999px;
91
91
  --tiger-primitive-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
92
- --tiger-primitive-shadow-sm:
93
- 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
94
- --tiger-primitive-shadow-md:
95
- 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
92
+ --tiger-primitive-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
93
+ --tiger-primitive-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
96
94
  --tiger-primitive-shadow-lg:
97
95
  0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
98
96
  --tiger-primitive-shadow-xl:
99
97
  0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
100
98
  --tiger-primitive-font-family-base:
101
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
102
- Arial, sans-serif;
99
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
103
100
  --tiger-primitive-font-family-mono:
104
101
  'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
105
102
  --tiger-primitive-font-size-xs: 12px;
@@ -224,8 +221,7 @@
224
221
  --tiger-component-drawer-width-xl: 680px;
225
222
  --tiger-component-card-border-radius: 12px;
226
223
  --tiger-component-card-padding: 24px;
227
- --tiger-component-card-shadow:
228
- 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
224
+ --tiger-component-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
229
225
  --tiger-component-card-border-color: #e5e5e5;
230
226
  --tiger-component-badge-font-size: 12px;
231
227
  --tiger-component-badge-font-weight: 500;