@expcat/tigercat-core 1.4.0 → 2.0.0-preview.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 (133) hide show
  1. package/dist/{datepicker-DXzS_8l8.d.cts → datepicker-ZdzYUqm5.d.ts} +77 -11
  2. package/dist/datepicker-locales/ar-SA.d.ts +1 -1
  3. package/dist/datepicker-locales/de-DE.d.ts +1 -1
  4. package/dist/datepicker-locales/en-US.d.ts +1 -1
  5. package/dist/datepicker-locales/es-ES.d.ts +1 -1
  6. package/dist/datepicker-locales/fr-FR.d.ts +1 -1
  7. package/dist/datepicker-locales/id-ID.d.ts +1 -1
  8. package/dist/datepicker-locales/ja-JP.d.ts +1 -1
  9. package/dist/datepicker-locales/ko-KR.d.ts +1 -1
  10. package/dist/datepicker-locales/pt-BR.d.ts +1 -1
  11. package/dist/datepicker-locales/registry.d.ts +7 -0
  12. package/dist/datepicker-locales/registry.js +224 -0
  13. package/dist/datepicker-locales/th-TH.d.ts +1 -1
  14. package/dist/datepicker-locales/vi-VN.d.ts +1 -1
  15. package/dist/datepicker-locales/zh-CN.d.ts +1 -1
  16. package/dist/datepicker-locales/zh-TW.d.ts +1 -1
  17. package/dist/icons/picker.d.ts +1 -13
  18. package/dist/icons/picker.js +0 -12
  19. package/dist/index.d.ts +12341 -12244
  20. package/dist/index.js +1482 -659
  21. package/dist/{locale-9tTj1QdZ.d.ts → locale-44p_QYnH.d.ts} +96 -7
  22. package/dist/locales/ar-SA.d.ts +2 -2
  23. package/dist/locales/ar-SA.js +122 -1
  24. package/dist/locales/de-DE.d.ts +2 -2
  25. package/dist/locales/de-DE.js +122 -1
  26. package/dist/locales/en-US.d.ts +2 -2
  27. package/dist/locales/en-US.js +98 -1
  28. package/dist/locales/es-ES.d.ts +2 -2
  29. package/dist/locales/es-ES.js +122 -1
  30. package/dist/locales/fr-FR.d.ts +2 -2
  31. package/dist/locales/fr-FR.js +122 -1
  32. package/dist/locales/id-ID.d.ts +2 -2
  33. package/dist/locales/id-ID.js +268 -2
  34. package/dist/locales/ja-JP.d.ts +2 -2
  35. package/dist/locales/ja-JP.js +268 -2
  36. package/dist/locales/ko-KR.d.ts +2 -2
  37. package/dist/locales/ko-KR.js +268 -2
  38. package/dist/locales/pt-BR.d.ts +2 -2
  39. package/dist/locales/pt-BR.js +122 -1
  40. package/dist/locales/th-TH.d.ts +2 -2
  41. package/dist/locales/th-TH.js +268 -2
  42. package/dist/locales/vi-VN.d.ts +2 -2
  43. package/dist/locales/vi-VN.js +268 -2
  44. package/dist/locales/zh-CN.d.ts +2 -2
  45. package/dist/locales/zh-CN.js +98 -1
  46. package/dist/locales/zh-TW.d.ts +2 -2
  47. package/dist/locales/zh-TW.js +268 -2
  48. package/dist/{table-export-GRimhvlM.d.ts → table-export-CzPmX1b6.d.ts} +3 -9
  49. package/dist/tailwind/modern.d.ts +2 -3
  50. package/dist/tailwind/modern.js +75 -80
  51. package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
  52. package/dist/tailwind.d.ts +2 -3
  53. package/dist/tailwind.js +123 -70
  54. package/dist/utils/table-export.d.ts +3 -3
  55. package/package.json +43 -73
  56. package/tokens/tailwind-tokens.js +6 -3
  57. package/tokens/tokens.css +8 -322
  58. package/dist/datepicker-DXzS_8l8.d.ts +0 -130
  59. package/dist/datepicker-locales/ar-SA.cjs +0 -46
  60. package/dist/datepicker-locales/ar-SA.d.cts +0 -6
  61. package/dist/datepicker-locales/de-DE.cjs +0 -46
  62. package/dist/datepicker-locales/de-DE.d.cts +0 -6
  63. package/dist/datepicker-locales/en-US.cjs +0 -46
  64. package/dist/datepicker-locales/en-US.d.cts +0 -6
  65. package/dist/datepicker-locales/es-ES.cjs +0 -46
  66. package/dist/datepicker-locales/es-ES.d.cts +0 -6
  67. package/dist/datepicker-locales/fr-FR.cjs +0 -46
  68. package/dist/datepicker-locales/fr-FR.d.cts +0 -6
  69. package/dist/datepicker-locales/id-ID.cjs +0 -46
  70. package/dist/datepicker-locales/id-ID.d.cts +0 -6
  71. package/dist/datepicker-locales/ja-JP.cjs +0 -46
  72. package/dist/datepicker-locales/ja-JP.d.cts +0 -6
  73. package/dist/datepicker-locales/ko-KR.cjs +0 -46
  74. package/dist/datepicker-locales/ko-KR.d.cts +0 -6
  75. package/dist/datepicker-locales/pt-BR.cjs +0 -46
  76. package/dist/datepicker-locales/pt-BR.d.cts +0 -6
  77. package/dist/datepicker-locales/th-TH.cjs +0 -46
  78. package/dist/datepicker-locales/th-TH.d.cts +0 -6
  79. package/dist/datepicker-locales/vi-VN.cjs +0 -46
  80. package/dist/datepicker-locales/vi-VN.d.cts +0 -6
  81. package/dist/datepicker-locales/zh-CN.cjs +0 -46
  82. package/dist/datepicker-locales/zh-CN.d.cts +0 -6
  83. package/dist/datepicker-locales/zh-TW.cjs +0 -46
  84. package/dist/datepicker-locales/zh-TW.d.cts +0 -6
  85. package/dist/icons/common.cjs +0 -54
  86. package/dist/icons/common.d.cts +0 -20
  87. package/dist/icons/picker.cjs +0 -75
  88. package/dist/icons/picker.d.cts +0 -53
  89. package/dist/icons/registry.cjs +0 -172
  90. package/dist/icons/registry.d.cts +0 -102
  91. package/dist/icons/status.cjs +0 -47
  92. package/dist/icons/status.d.cts +0 -13
  93. package/dist/icons/table.cjs +0 -48
  94. package/dist/icons/table.d.cts +0 -25
  95. package/dist/index.cjs +0 -21268
  96. package/dist/index.d.cts +0 -20129
  97. package/dist/locale-DxwhmqfF.d.cts +0 -300
  98. package/dist/locales/ar-SA.cjs +0 -254
  99. package/dist/locales/ar-SA.d.cts +0 -10
  100. package/dist/locales/de-DE.cjs +0 -254
  101. package/dist/locales/de-DE.d.cts +0 -10
  102. package/dist/locales/en-US.cjs +0 -149
  103. package/dist/locales/en-US.d.cts +0 -10
  104. package/dist/locales/es-ES.cjs +0 -254
  105. package/dist/locales/es-ES.d.cts +0 -10
  106. package/dist/locales/fr-FR.cjs +0 -254
  107. package/dist/locales/fr-FR.d.cts +0 -10
  108. package/dist/locales/id-ID.cjs +0 -90
  109. package/dist/locales/id-ID.d.cts +0 -10
  110. package/dist/locales/ja-JP.cjs +0 -90
  111. package/dist/locales/ja-JP.d.cts +0 -10
  112. package/dist/locales/ko-KR.cjs +0 -90
  113. package/dist/locales/ko-KR.d.cts +0 -10
  114. package/dist/locales/pt-BR.cjs +0 -254
  115. package/dist/locales/pt-BR.d.cts +0 -10
  116. package/dist/locales/th-TH.cjs +0 -90
  117. package/dist/locales/th-TH.d.cts +0 -10
  118. package/dist/locales/vi-VN.cjs +0 -90
  119. package/dist/locales/vi-VN.d.cts +0 -10
  120. package/dist/locales/zh-CN.cjs +0 -149
  121. package/dist/locales/zh-CN.d.cts +0 -10
  122. package/dist/locales/zh-TW.cjs +0 -90
  123. package/dist/locales/zh-TW.d.cts +0 -10
  124. package/dist/table-export-BMBH75rj.d.cts +0 -882
  125. package/dist/tailwind/modern.cjs +0 -368
  126. package/dist/tailwind/modern.d.cts +0 -6
  127. package/dist/tailwind-entry-DUchHtjs.d.cts +0 -218
  128. package/dist/tailwind.cjs +0 -221
  129. package/dist/tailwind.d.cts +0 -3
  130. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
  131. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
  132. package/dist/utils/table-export.cjs +0 -119
  133. package/dist/utils/table-export.d.cts +0 -3
@@ -1,368 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/tailwind-entry-modern.ts
31
- var tailwind_entry_modern_exports = {};
32
- __export(tailwind_entry_modern_exports, {
33
- default: () => tailwind_entry_modern_default
34
- });
35
- module.exports = __toCommonJS(tailwind_entry_modern_exports);
36
-
37
- // src/tailwind-plugin.ts
38
- var import_plugin = __toESM(require("tailwindcss/plugin"), 1);
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
-
88
- // src/themes/modern/tokens.ts
89
- var MODERN_BASE_TOKENS_LIGHT = {
90
- // Radius (matches existing rounded-md/lg/xl)
91
- "--tiger-radius-sm": "0.375rem",
92
- "--tiger-radius-md": "0.5rem",
93
- "--tiger-radius-lg": "0.75rem",
94
- "--tiger-radius-xl": "1rem",
95
- "--tiger-radius-pill": "9999px",
96
- // Shadows (Tailwind defaults)
97
- "--tiger-shadow-sm": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
98
- "--tiger-shadow-md": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
99
- "--tiger-shadow-lg": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
100
- "--tiger-shadow-xl": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
101
- // Glass — inset highlights stay disabled by default (kept flat), but a
102
- // sensible backdrop blur is enabled out of the box so opt-in surfaces like
103
- // `Header variant="translucent"/"blur"` render glass without the consumer
104
- // having to set these tokens. Override to `0px` to fully disable blur.
105
- "--tiger-shadow-glass": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
106
- "--tiger-shadow-glass-strong": "0 4px 6px -1px rgb(0 0 0 / 0.1)",
107
- "--tiger-blur-glass": "16px",
108
- "--tiger-blur-glass-strong": "24px",
109
- // Header variant tuning — all overridable without `!important`. `saturate`
110
- // enriches the blurred backdrop; `--tiger-header-shadow` lets consumers
111
- // swap the `blur` variant's shadow; `--tiger-header-border` scopes the
112
- // header's border color (falls back to the global `--tiger-border`) so the
113
- // glass header border can be tuned without touching every other border.
114
- "--tiger-header-saturate": "1.8",
115
- "--tiger-header-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
116
- "--tiger-header-border": "var(--tiger-border, #e5e7eb)",
117
- // Gradients — fall back to solid color via a no-op linear-gradient
118
- "--tiger-gradient-primary": "linear-gradient(180deg, var(--tiger-primary), var(--tiger-primary))",
119
- "--tiger-gradient-surface": "linear-gradient(180deg, var(--tiger-surface), var(--tiger-surface))",
120
- "--tiger-gradient-danger": "linear-gradient(180deg, var(--tiger-error), var(--tiger-error))",
121
- // Motion — current durations / easings
122
- "--tiger-motion-duration-instant": "80ms",
123
- "--tiger-motion-duration-quick": "150ms",
124
- "--tiger-motion-duration-base": "200ms",
125
- "--tiger-motion-duration-relaxed": "300ms",
126
- "--tiger-motion-duration-slow": "450ms",
127
- "--tiger-motion-ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
128
- "--tiger-motion-ease-decelerate": "cubic-bezier(0, 0, 0.2, 1)",
129
- "--tiger-motion-ease-accelerate": "cubic-bezier(0.4, 0, 1, 1)",
130
- "--tiger-motion-ease-emphasized": "cubic-bezier(0.4, 0, 0.2, 1)",
131
- "--tiger-motion-ease-spring": "cubic-bezier(0.4, 0, 0.2, 1)",
132
- "--tiger-transition-base": "all 200ms cubic-bezier(0.4, 0, 0.2, 1)",
133
- "--tiger-transition-quick": "all 150ms cubic-bezier(0.4, 0, 0.2, 1)",
134
- "--tiger-transition-emphasized": "transform 300ms cubic-bezier(0.4, 0, 0.2, 1)"
135
- };
136
- var MODERN_BASE_TOKENS_DARK = {
137
- // Shadows tinted slightly to handle dark backgrounds
138
- "--tiger-shadow-sm": "0 1px 2px 0 rgb(0 0 0 / 0.2)",
139
- "--tiger-shadow-md": "0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.25)",
140
- "--tiger-shadow-lg": "0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.25)",
141
- "--tiger-shadow-xl": "0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.25)",
142
- "--tiger-shadow-glass": "0 1px 2px 0 rgb(0 0 0 / 0.2)",
143
- "--tiger-shadow-glass-strong": "0 4px 6px -1px rgb(0 0 0 / 0.3)",
144
- // Header `blur` variant shadow — slightly deeper for dark surfaces.
145
- "--tiger-header-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.3)",
146
- // Header border tracks the dark-mode global border by default.
147
- "--tiger-header-border": "var(--tiger-border)"
148
- };
149
- var MODERN_OVERRIDE_TOKENS_LIGHT = {
150
- // Rounder corners
151
- "--tiger-radius-sm": "8px",
152
- "--tiger-radius-md": "12px",
153
- "--tiger-radius-lg": "16px",
154
- "--tiger-radius-xl": "20px",
155
- "--tiger-radius-pill": "9999px",
156
- // Multi-layer shadows
157
- "--tiger-shadow-sm": "0 1px 2px 0 rgb(0 0 0 / 0.04), 0 1px 3px 0 rgb(0 0 0 / 0.06)",
158
- "--tiger-shadow-md": "0 4px 8px -2px rgb(0 0 0 / 0.06), 0 2px 4px -1px rgb(0 0 0 / 0.04)",
159
- "--tiger-shadow-lg": "0 12px 24px -4px rgb(0 0 0 / 0.08), 0 4px 8px -2px rgb(0 0 0 / 0.04)",
160
- "--tiger-shadow-xl": "0 24px 48px -8px rgb(0 0 0 / 0.1), 0 8px 16px -4px rgb(0 0 0 / 0.05)",
161
- // Glass: backdrop blur + inset highlights
162
- "--tiger-shadow-glass": "inset 0 1px 0 rgb(255 255 255 / 0.6), inset 0 -1px 0 rgb(0 0 0 / 0.04), 0 8px 24px -4px rgb(15 23 42 / 0.1)",
163
- "--tiger-shadow-glass-strong": "inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 16px 32px -8px rgb(15 23 42 / 0.16)",
164
- "--tiger-blur-glass": "16px",
165
- "--tiger-blur-glass-strong": "24px",
166
- // Chart axis softening (modern look uses fainter axis/grid strokes)
167
- "--tiger-chart-axis-line-opacity": "0.6",
168
- "--tiger-chart-axis-tick-opacity": "0.55",
169
- "--tiger-chart-grid-line-opacity": "0.4",
170
- // Chart legend marker + row hover (opt-in glassy look)
171
- "--tiger-chart-legend-marker-image": "linear-gradient(135deg, color-mix(in oklab, var(--tiger-chart-legend-marker-color) 100%, white 18%) 0%, var(--tiger-chart-legend-marker-color) 100%)",
172
- "--tiger-chart-legend-row-hover-bg": "rgb(15 23 42 / 0.04)",
173
- "--tiger-chart-legend-row-radius": "var(--tiger-radius-sm, 6px)",
174
- // Chart block (TreeMap / Sunburst / Heatmap rect & path) — softer corners + active highlight
175
- "--tiger-chart-block-radius": "var(--tiger-radius-sm, 2px)",
176
- "--tiger-chart-block-active-filter": "brightness(1.08) saturate(1.1)",
177
- // Chart bar (BarChart rect) — softer top corners (modern bumps to --tiger-radius-sm)
178
- "--tiger-chart-bar-radius": "var(--tiger-radius-sm, 4px)",
179
- // Chart scatter point — slightly stronger halo on hover under modern preset
180
- "--tiger-chart-scatter-halo-radius": "6px",
181
- // Chart donut center hole — opt-in glass panel behind centerValue / centerLabel
182
- "--tiger-chart-donut-center-padding": "10px 14px",
183
- "--tiger-chart-donut-center-bg": "color-mix(in oklab, var(--tiger-surface, #ffffff) 78%, transparent)",
184
- "--tiger-chart-donut-center-shadow": "var(--tiger-shadow-glass)",
185
- "--tiger-chart-donut-center-backdrop": "blur(var(--tiger-blur-glass, 16px)) saturate(1.05)",
186
- // Subtle gradients via OKLab color-mix
187
- "--tiger-gradient-primary": "linear-gradient(180deg, color-mix(in oklab, var(--tiger-primary) 100%, white 8%) 0%, var(--tiger-primary) 100%)",
188
- "--tiger-gradient-surface": "linear-gradient(180deg, color-mix(in oklab, var(--tiger-surface) 100%, white 4%) 0%, var(--tiger-surface) 100%)",
189
- "--tiger-gradient-danger": "linear-gradient(180deg, color-mix(in oklab, var(--tiger-error) 100%, white 6%) 0%, var(--tiger-error) 100%)",
190
- // Refined motion
191
- "--tiger-motion-ease-standard": "cubic-bezier(0.2, 0, 0, 1)",
192
- "--tiger-motion-ease-decelerate": "cubic-bezier(0, 0, 0, 1)",
193
- "--tiger-motion-ease-accelerate": "cubic-bezier(0.3, 0, 1, 1)",
194
- "--tiger-motion-ease-emphasized": "cubic-bezier(0.2, 0, 0, 1.2)",
195
- "--tiger-motion-ease-spring": "linear(0, 0.36 8%, 0.85 22%, 1.05 33%, 1.02 50%, 0.99 70%, 1)",
196
- "--tiger-transition-base": "all var(--tiger-motion-duration-base) var(--tiger-motion-ease-standard)",
197
- "--tiger-transition-quick": "all var(--tiger-motion-duration-quick) var(--tiger-motion-ease-standard)",
198
- "--tiger-transition-emphasized": "transform var(--tiger-motion-duration-relaxed) var(--tiger-motion-ease-emphasized)"
199
- };
200
- var MODERN_OVERRIDE_TOKENS_DARK = {
201
- "--tiger-shadow-sm": "0 1px 2px 0 rgb(2 6 23 / 0.5)",
202
- "--tiger-shadow-md": "0 4px 8px -2px rgb(2 6 23 / 0.55), 0 2px 4px -1px rgb(2 6 23 / 0.4)",
203
- "--tiger-shadow-lg": "0 12px 24px -4px rgb(2 6 23 / 0.55), 0 4px 8px -2px rgb(2 6 23 / 0.4)",
204
- "--tiger-shadow-xl": "0 24px 48px -8px rgb(2 6 23 / 0.6), 0 8px 16px -4px rgb(2 6 23 / 0.45)",
205
- "--tiger-shadow-glass": "inset 0 1px 0 rgb(255 255 255 / 0.06), inset 0 -1px 0 rgb(0 0 0 / 0.4), 0 8px 24px -4px rgb(0 0 0 / 0.4)",
206
- "--tiger-shadow-glass-strong": "inset 0 1px 0 rgb(255 255 255 / 0.08), inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 16px 32px -8px rgb(0 0 0 / 0.55)",
207
- // Chart legend row hover for dark surfaces (slightly brighter)
208
- "--tiger-chart-legend-row-hover-bg": "rgb(255 255 255 / 0.06)",
209
- // Donut center glass panel for dark surfaces (slightly more opaque to read on dark)
210
- "--tiger-chart-donut-center-bg": "color-mix(in oklab, var(--tiger-surface, #0f172a) 70%, transparent)"
211
- };
212
- var MODERN_REDUCED_MOTION_TOKENS = {
213
- "--tiger-motion-duration-instant": "0ms",
214
- "--tiger-motion-duration-quick": "0ms",
215
- "--tiger-motion-duration-base": "0ms",
216
- "--tiger-motion-duration-relaxed": "0ms",
217
- "--tiger-motion-duration-slow": "0ms",
218
- "--tiger-transition-base": "all 0ms linear",
219
- "--tiger-transition-quick": "all 0ms linear",
220
- "--tiger-transition-emphasized": "transform 0ms linear"
221
- };
222
-
223
- // src/tailwind-plugin.ts
224
- var tigercatTheme = {
225
- // Primary
226
- "--tiger-primary": "#2563eb",
227
- "--tiger-primary-hover": "#1d4ed8",
228
- "--tiger-primary-active": "#1e40af",
229
- "--tiger-primary-disabled": "#93c5fd",
230
- // Secondary
231
- "--tiger-secondary": "#4b5563",
232
- "--tiger-secondary-hover": "#374151",
233
- "--tiger-secondary-active": "#1f2937",
234
- "--tiger-secondary-disabled": "#9ca3af",
235
- // Background hover states
236
- "--tiger-outline-bg-hover": "#eff6ff",
237
- "--tiger-ghost-bg-hover": "#eff6ff",
238
- // Interaction
239
- "--tiger-focus-ring": "#2563eb",
240
- // Surface & background
241
- "--tiger-surface": "#ffffff",
242
- "--tiger-surface-muted": "#f9fafb",
243
- "--tiger-surface-raised": "#ffffff",
244
- // Text
245
- "--tiger-text": "#111827",
246
- "--tiger-text-secondary": "#6b7280",
247
- "--tiger-text-disabled": "#d1d5db",
248
- // Border
249
- "--tiger-border": "#e5e7eb",
250
- "--tiger-border-strong": "#9ca3af",
251
- // Status
252
- "--tiger-success": "#16a34a",
253
- "--tiger-warning": "#d97706",
254
- "--tiger-error": "#dc2626",
255
- "--tiger-info": "#3b82f6",
256
- // Chart palette
257
- "--tiger-chart-1": "#2563eb",
258
- "--tiger-chart-2": "#16a34a",
259
- "--tiger-chart-3": "#d97706",
260
- "--tiger-chart-4": "#a855f7",
261
- "--tiger-chart-5": "#0ea5e9",
262
- "--tiger-chart-6": "#ef4444"
263
- };
264
- var tigercatDarkTheme = {
265
- "--tiger-primary": "#60a5fa",
266
- "--tiger-primary-hover": "#93c5fd",
267
- "--tiger-primary-active": "#bfdbfe",
268
- "--tiger-primary-disabled": "#1e40af",
269
- "--tiger-secondary": "#9ca3af",
270
- "--tiger-secondary-hover": "#d1d5db",
271
- "--tiger-secondary-active": "#e5e7eb",
272
- "--tiger-secondary-disabled": "#4b5563",
273
- "--tiger-outline-bg-hover": "#1e3a5f",
274
- "--tiger-ghost-bg-hover": "#1e3a5f",
275
- "--tiger-focus-ring": "#60a5fa",
276
- "--tiger-surface": "#111827",
277
- "--tiger-surface-muted": "#1f2937",
278
- "--tiger-surface-raised": "#1f2937",
279
- "--tiger-text": "#f9fafb",
280
- "--tiger-text-secondary": "#d1d5db",
281
- "--tiger-text-disabled": "#4b5563",
282
- "--tiger-border": "#374151",
283
- "--tiger-border-strong": "#6b7280",
284
- "--tiger-success": "#4ade80",
285
- "--tiger-warning": "#fbbf24",
286
- "--tiger-error": "#f87171",
287
- "--tiger-info": "#60a5fa",
288
- "--tiger-chart-1": "#60a5fa",
289
- "--tiger-chart-2": "#4ade80",
290
- "--tiger-chart-3": "#fbbf24",
291
- "--tiger-chart-4": "#c084fc",
292
- "--tiger-chart-5": "#38bdf8",
293
- "--tiger-chart-6": "#f87171"
294
- };
295
- var tigercatDirectionBase = {
296
- '[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
297
- transform: "scaleX(-1)"
298
- },
299
- '[dir="rtl"] .tiger-text-start, [data-tiger-dir="rtl"] .tiger-text-start': {
300
- textAlign: "right"
301
- },
302
- '[dir="rtl"] .tiger-text-end, [data-tiger-dir="rtl"] .tiger-text-end': {
303
- textAlign: "left"
304
- },
305
- '[dir="rtl"] .tiger-flex-row, [data-tiger-dir="rtl"] .tiger-flex-row': {
306
- flexDirection: "row-reverse"
307
- }
308
- };
309
- var tigercatReducedMotionBase = {
310
- "@media (prefers-reduced-motion: reduce)": {
311
- ':root, [data-tiger-style="modern"]': MODERN_REDUCED_MOTION_TOKENS,
312
- ".tiger-motion-aware, .tiger-motion-aware::before, .tiger-motion-aware::after, [data-tiger-motion]": {
313
- animationDuration: "0ms",
314
- animationDelay: "0ms",
315
- transitionDuration: "0ms",
316
- transitionDelay: "0ms",
317
- scrollBehavior: "auto"
318
- }
319
- }
320
- };
321
- var tigercatPlugin = (0, import_plugin.default)(function({ addBase }) {
322
- addBase({
323
- ":root": { ...tigercatTheme, ...MODERN_BASE_TOKENS_LIGHT },
324
- ".dark": { ...tigercatDarkTheme, ...MODERN_BASE_TOKENS_DARK },
325
- // Remove browser default focus outline on interactive SVG elements
326
- 'svg [tabindex], svg [role="button"]': {
327
- outline: "none"
328
- },
329
- ...tigercatDirectionBase,
330
- ...tigercatReducedMotionBase
331
- });
332
- });
333
- function presetToVars(colors) {
334
- const vars = {};
335
- for (const [key, value] of Object.entries(colors)) {
336
- const varName = THEME_CSS_VARS[key];
337
- if (varName && value) {
338
- vars[varName] = value;
339
- }
340
- }
341
- return vars;
342
- }
343
- function createTigercatPlugin(options = {}) {
344
- return (0, import_plugin.default)(function({ addBase }) {
345
- const preset = options.preset;
346
- const lightVars = preset?.light?.colors ? presetToVars(preset.light.colors) : tigercatTheme;
347
- const darkVars = preset?.dark?.colors ? presetToVars(preset.dark.colors) : tigercatDarkTheme;
348
- addBase({
349
- ":root": { ...lightVars, ...MODERN_BASE_TOKENS_LIGHT },
350
- ".dark": { ...darkVars, ...MODERN_BASE_TOKENS_DARK },
351
- 'svg [tabindex], svg [role="button"]': {
352
- outline: "none"
353
- },
354
- ...tigercatDirectionBase,
355
- ...tigercatReducedMotionBase
356
- });
357
- if (options.modern) {
358
- addBase({
359
- '[data-tiger-style="modern"]': MODERN_OVERRIDE_TOKENS_LIGHT,
360
- '.dark[data-tiger-style="modern"], [data-tiger-style="modern"].dark': MODERN_OVERRIDE_TOKENS_DARK
361
- });
362
- }
363
- });
364
- }
365
-
366
- // src/tailwind-entry-modern.ts
367
- var modernPlugin = createTigercatPlugin({ modern: true });
368
- var tailwind_entry_modern_default = modernPlugin;
@@ -1,6 +0,0 @@
1
- import { P as PluginWithConfig } from '../types-CJYAW1ql.d-DDBFn6KB.cjs';
2
- import './resolve-config-QUZ9b-Gn.mjs';
3
-
4
- declare const modernPlugin: PluginWithConfig;
5
-
6
- export { modernPlugin as default };
@@ -1,218 +0,0 @@
1
- import { P as PluginWithConfig } from './types-CJYAW1ql.d-DDBFn6KB.cjs';
2
-
3
- /**
4
- * Theme configuration types for Tigercat Design System
5
- *
6
- * Three-level structure:
7
- * - ThemeColorScale: primitive color palette (50–950 shades)
8
- * - ThemeSemanticColors: semantic mappings (primary, surface, text, border, status)
9
- * - ThemeConfig: full configuration (colors + typography + radius + shadows + spacing)
10
- *
11
- * @module types/theme
12
- * @since 0.7.0
13
- */
14
- /**
15
- * A 10-step color shade scale (Tailwind-compatible).
16
- * Shade 900 is optional since tokens.json uses 950 only.
17
- */
18
- interface ThemeColorScale {
19
- 50: string;
20
- 100: string;
21
- 200: string;
22
- 300: string;
23
- 400: string;
24
- 500: string;
25
- 600: string;
26
- 700: string;
27
- 800: string;
28
- 900?: string;
29
- 950: string;
30
- }
31
- /** Colors for a single interactive/status hue (light **and** dark) */
32
- interface ThemeSemanticColors {
33
- /** Core interactive colors */
34
- primary: string;
35
- primaryHover: string;
36
- primaryActive: string;
37
- primaryDisabled: string;
38
- secondary: string;
39
- secondaryHover: string;
40
- secondaryActive: string;
41
- secondaryDisabled: string;
42
- /** Button-specific hover backgrounds */
43
- outlineBgHover: string;
44
- ghostBgHover: string;
45
- /** Focus ring color */
46
- focusRing: string;
47
- /** Surface / background */
48
- surface: string;
49
- surfaceMuted: string;
50
- surfaceRaised: string;
51
- /** Text */
52
- text: string;
53
- textSecondary: string;
54
- textDisabled: string;
55
- /** Border */
56
- border: string;
57
- borderStrong: string;
58
- /** Status (semantic) */
59
- success: string;
60
- warning: string;
61
- error: string;
62
- info: string;
63
- /** Chart palette (6 colors) */
64
- chart1: string;
65
- chart2: string;
66
- chart3: string;
67
- chart4: string;
68
- chart5: string;
69
- chart6: string;
70
- }
71
- interface ThemeTypography {
72
- fontFamily: string;
73
- fontFamilyMono: string;
74
- fontSizeBase: string;
75
- fontSizeSm: string;
76
- fontSizeLg: string;
77
- fontWeightNormal: string;
78
- fontWeightMedium: string;
79
- fontWeightSemibold: string;
80
- fontWeightBold: string;
81
- lineHeightNormal: string;
82
- lineHeightTight: string;
83
- }
84
- interface ThemeRadius {
85
- none: string;
86
- sm: string;
87
- md: string;
88
- lg: string;
89
- xl: string;
90
- full: string;
91
- }
92
- interface ThemeShadows {
93
- xs: string;
94
- sm: string;
95
- md: string;
96
- lg: string;
97
- xl: string;
98
- }
99
- interface ThemeSpacing {
100
- xs: string;
101
- sm: string;
102
- md: string;
103
- lg: string;
104
- xl: string;
105
- }
106
- interface ThemeMotion {
107
- durationFast: string;
108
- durationBase: string;
109
- durationSlow: string;
110
- easing: string;
111
- }
112
- /**
113
- * Complete theme configuration.
114
- * All sections are optional — missing values fall back to the default theme.
115
- */
116
- interface ThemeConfig {
117
- colors?: Partial<ThemeSemanticColors>;
118
- typography?: Partial<ThemeTypography>;
119
- radius?: Partial<ThemeRadius>;
120
- shadows?: Partial<ThemeShadows>;
121
- spacing?: Partial<ThemeSpacing>;
122
- motion?: Partial<ThemeMotion>;
123
- }
124
- /** Name of a built-in preset theme */
125
- type ThemePresetName = 'default' | 'vibrant' | 'professional' | 'minimal' | 'natural' | 'modern' | 'high-contrast';
126
- /**
127
- * A fully defined preset theme.
128
- * Both `light` and `dark` are required; they will be merged with defaults at runtime.
129
- */
130
- interface ThemePreset {
131
- name: ThemePresetName | string;
132
- label: string;
133
- light: ThemeConfig;
134
- dark: ThemeConfig;
135
- }
136
- /** Controls which colour scheme the ThemeManager applies */
137
- type ColorScheme = 'light' | 'dark' | 'auto';
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
- */
176
- declare const tigercatDarkTheme: Record<string, string>;
177
- /**
178
- * Tailwind CSS plugin for Tigercat
179
- * Injects the default CSS variables into the root scope
180
- */
181
- declare const tigercatPlugin: PluginWithConfig;
182
- interface TigercatPluginOptions {
183
- /** A ThemePreset object to use instead of the built-in default */
184
- preset?: ThemePreset;
185
- /**
186
- * Enable the opt-in "modern" token layer.
187
- *
188
- * When `true`, the plugin emits `[data-tiger-style="modern"]` (and the
189
- * dark counterpart) blocks that override radius / shadow / glass /
190
- * gradient / motion tokens with the modern values, plus a
191
- * `prefers-reduced-motion` rule that collapses motion durations.
192
- *
193
- * Activate it on a page by setting `data-tiger-style="modern"` on `<html>`
194
- * or any ancestor element of your Tigercat tree.
195
- *
196
- * @default false
197
- */
198
- modern?: boolean;
199
- }
200
- /**
201
- * Configurable Tailwind CSS plugin for Tigercat.
202
- *
203
- * @example
204
- * ```ts
205
- * import { createTigercatPlugin, vibrantTheme, modernTheme } from '@expcat/tigercat-core'
206
- *
207
- * export default {
208
- * plugins: [
209
- * createTigercatPlugin({ preset: vibrantTheme }),
210
- * // or enable the modern visual style:
211
- * createTigercatPlugin({ preset: modernTheme, modern: true })
212
- * ]
213
- * }
214
- * ```
215
- */
216
- declare function createTigercatPlugin(options?: TigercatPluginOptions): PluginWithConfig;
217
-
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 };