@expcat/tigercat-core 2.1.2 → 2.1.4

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 (77) hide show
  1. package/README.md +10 -0
  2. package/dist/{data-export-CLWdsrRn.d.ts → data-export-D01yjggE.d.ts} +18 -7
  3. package/dist/datepicker-locales/ar-SA.d.ts +2 -1
  4. package/dist/datepicker-locales/ar-SA.js +8 -1
  5. package/dist/datepicker-locales/de-DE.d.ts +2 -1
  6. package/dist/datepicker-locales/de-DE.js +8 -1
  7. package/dist/datepicker-locales/en-US.d.ts +2 -1
  8. package/dist/datepicker-locales/en-US.js +3 -1
  9. package/dist/datepicker-locales/es-ES.d.ts +2 -1
  10. package/dist/datepicker-locales/es-ES.js +8 -1
  11. package/dist/datepicker-locales/fr-FR.d.ts +2 -1
  12. package/dist/datepicker-locales/fr-FR.js +8 -1
  13. package/dist/datepicker-locales/id-ID.d.ts +2 -1
  14. package/dist/datepicker-locales/id-ID.js +8 -1
  15. package/dist/datepicker-locales/ja-JP.d.ts +2 -1
  16. package/dist/datepicker-locales/ja-JP.js +8 -1
  17. package/dist/datepicker-locales/ko-KR.d.ts +2 -1
  18. package/dist/datepicker-locales/ko-KR.js +8 -1
  19. package/dist/datepicker-locales/pt-BR.d.ts +2 -1
  20. package/dist/datepicker-locales/pt-BR.js +8 -1
  21. package/dist/datepicker-locales/registry.d.ts +2 -1
  22. package/dist/datepicker-locales/registry.js +94 -13
  23. package/dist/datepicker-locales/th-TH.d.ts +2 -1
  24. package/dist/datepicker-locales/th-TH.js +8 -1
  25. package/dist/datepicker-locales/vi-VN.d.ts +2 -1
  26. package/dist/datepicker-locales/vi-VN.js +8 -1
  27. package/dist/datepicker-locales/zh-CN.d.ts +2 -1
  28. package/dist/datepicker-locales/zh-CN.js +3 -1
  29. package/dist/datepicker-locales/zh-TW.d.ts +2 -1
  30. package/dist/datepicker-locales/zh-TW.js +8 -1
  31. package/dist/icons/common.d.ts +2 -2
  32. package/dist/icons/common.js +14 -8
  33. package/dist/index.d.ts +10303 -5381
  34. package/dist/index.js +30994 -16436
  35. package/dist/locale-qoiGEqe_.d.ts +1507 -0
  36. package/dist/locales/ar-SA.d.ts +2 -2
  37. package/dist/locales/ar-SA.js +448 -442
  38. package/dist/locales/de-DE.d.ts +2 -2
  39. package/dist/locales/de-DE.js +456 -450
  40. package/dist/locales/en-US.d.ts +2 -2
  41. package/dist/locales/en-US.js +259 -62
  42. package/dist/locales/es-ES.d.ts +2 -2
  43. package/dist/locales/es-ES.js +450 -444
  44. package/dist/locales/fr-FR.d.ts +2 -2
  45. package/dist/locales/fr-FR.js +453 -447
  46. package/dist/locales/id-ID.d.ts +3 -3
  47. package/dist/locales/id-ID.js +471 -448
  48. package/dist/locales/ja-JP.d.ts +3 -3
  49. package/dist/locales/ja-JP.js +465 -442
  50. package/dist/locales/ko-KR.d.ts +3 -3
  51. package/dist/locales/ko-KR.js +465 -442
  52. package/dist/locales/pt-BR.d.ts +2 -2
  53. package/dist/locales/pt-BR.js +452 -446
  54. package/dist/locales/th-TH.d.ts +3 -3
  55. package/dist/locales/th-TH.js +467 -444
  56. package/dist/locales/vi-VN.d.ts +3 -3
  57. package/dist/locales/vi-VN.js +467 -444
  58. package/dist/locales/zh-CN.d.ts +2 -2
  59. package/dist/locales/zh-CN.js +257 -60
  60. package/dist/locales/zh-TW.d.ts +3 -3
  61. package/dist/locales/zh-TW.js +467 -444
  62. package/dist/{table-CHeBgM_2.d.ts → table-R9Yp1aVa.d.ts} +77 -54
  63. package/dist/tailwind/modern.js +1364 -150
  64. package/dist/{tailwind-entry-nnuviNxx.d.ts → tailwind-entry-C26Y3TZG.d.ts} +13 -10
  65. package/dist/tailwind.d.ts +1 -1
  66. package/dist/tailwind.js +1406 -136
  67. package/dist/utils/data-export.d.ts +19 -5
  68. package/dist/utils/data-export.js +138 -13
  69. package/dist/utils/table-export.d.ts +21 -12
  70. package/dist/utils/table-export.js +75 -46
  71. package/package.json +1 -1
  72. package/tokens/figma-variables.json +223 -147
  73. package/tokens/tokens.css +224 -57
  74. package/tokens/tokens.json +205 -31
  75. package/dist/datepicker-Digy7Stt.d.ts +0 -201
  76. package/dist/locale-KMGxL6bT.d.ts +0 -625
  77. package/tokens/tailwind-tokens.js +0 -145
@@ -35,10 +35,14 @@ interface ThemeSemanticColors {
35
35
  primaryHover: string;
36
36
  primaryActive: string;
37
37
  primaryDisabled: string;
38
+ /** Text / icon color that sits on `primary` fills */
39
+ primaryForeground: string;
38
40
  secondary: string;
39
41
  secondaryHover: string;
40
42
  secondaryActive: string;
41
43
  secondaryDisabled: string;
44
+ /** Text / icon color that sits on `secondary` fills */
45
+ secondaryForeground: string;
42
46
  /** Button-specific hover backgrounds */
43
47
  outlineBgHover: string;
44
48
  ghostBgHover: string;
@@ -59,6 +63,11 @@ interface ThemeSemanticColors {
59
63
  success: string;
60
64
  warning: string;
61
65
  error: string;
66
+ /** Text / icon color that sits on `error` fills */
67
+ errorForeground: string;
68
+ errorHover: string;
69
+ errorDisabled: string;
70
+ errorBgHover: string;
62
71
  info: string;
63
72
  /** Chart palette (6 colors) */
64
73
  chart1: string;
@@ -136,7 +145,7 @@ interface ThemePreset {
136
145
  /** Controls which colour scheme the ThemeManager applies */
137
146
  type ColorScheme = 'light' | 'dark' | 'auto';
138
147
 
139
- /** Default theme colors for Tigercat. */
148
+ /** Default theme CSS variables for Tigercat (colors + radius/type/motion). */
140
149
  declare const tigercatTheme: Record<string, string>;
141
150
  /** Dark mode theme overrides. */
142
151
  declare const tigercatDarkTheme: Record<string, string>;
@@ -149,15 +158,9 @@ interface TigercatPluginOptions {
149
158
  /** A ThemePreset object to use instead of the built-in default */
150
159
  preset?: ThemePreset;
151
160
  /**
152
- * Enable the opt-in "modern" token layer.
153
- *
154
- * When `true`, the plugin emits `[data-tiger-style="modern"]` (and the
155
- * dark counterpart) blocks that override radius / shadow / glass /
156
- * gradient / motion tokens with the modern values, plus a
157
- * `prefers-reduced-motion` rule that collapses motion durations.
158
- *
159
- * Activate it on a page by setting `data-tiger-style="modern"` on `<html>`
160
- * or any ancestor element of your Tigercat tree.
161
+ * Use the modern preset at `:root` (same as `{ preset: modernTheme }`).
162
+ * `ThemeManager.setTheme('modern')` is the runtime equivalent and also
163
+ * sets `data-tiger-style="modern"`.
161
164
  *
162
165
  * @default false
163
166
  */
@@ -1,2 +1,2 @@
1
- export { l as default } from './tailwind-entry-nnuviNxx.js';
1
+ export { l as default } from './tailwind-entry-C26Y3TZG.js';
2
2
  import 'tailwindcss/plugin';