@expcat/tigercat-core 1.4.0 → 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 (105) 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/index.cjs +1523 -480
  30. package/dist/index.d.cts +422 -28
  31. package/dist/index.d.ts +422 -28
  32. package/dist/index.js +1471 -479
  33. package/dist/{locale-DxwhmqfF.d.cts → locale-BTAo7XO1.d.cts} +94 -2
  34. package/dist/{locale-9tTj1QdZ.d.ts → locale-hhhI2kH6.d.ts} +94 -2
  35. package/dist/locales/ar-SA.cjs +296 -2
  36. package/dist/locales/ar-SA.d.cts +2 -2
  37. package/dist/locales/ar-SA.d.ts +2 -2
  38. package/dist/locales/ar-SA.js +296 -2
  39. package/dist/locales/de-DE.cjs +296 -2
  40. package/dist/locales/de-DE.d.cts +2 -2
  41. package/dist/locales/de-DE.d.ts +2 -2
  42. package/dist/locales/de-DE.js +296 -2
  43. package/dist/locales/en-US.cjs +98 -1
  44. package/dist/locales/en-US.d.cts +2 -2
  45. package/dist/locales/en-US.d.ts +2 -2
  46. package/dist/locales/en-US.js +98 -1
  47. package/dist/locales/es-ES.cjs +296 -2
  48. package/dist/locales/es-ES.d.cts +2 -2
  49. package/dist/locales/es-ES.d.ts +2 -2
  50. package/dist/locales/es-ES.js +296 -2
  51. package/dist/locales/fr-FR.cjs +296 -2
  52. package/dist/locales/fr-FR.d.cts +2 -2
  53. package/dist/locales/fr-FR.d.ts +2 -2
  54. package/dist/locales/fr-FR.js +296 -2
  55. package/dist/locales/id-ID.cjs +443 -2
  56. package/dist/locales/id-ID.d.cts +2 -2
  57. package/dist/locales/id-ID.d.ts +2 -2
  58. package/dist/locales/id-ID.js +441 -2
  59. package/dist/locales/ja-JP.cjs +443 -2
  60. package/dist/locales/ja-JP.d.cts +2 -2
  61. package/dist/locales/ja-JP.d.ts +2 -2
  62. package/dist/locales/ja-JP.js +441 -2
  63. package/dist/locales/ko-KR.cjs +443 -2
  64. package/dist/locales/ko-KR.d.cts +2 -2
  65. package/dist/locales/ko-KR.d.ts +2 -2
  66. package/dist/locales/ko-KR.js +441 -2
  67. package/dist/locales/pt-BR.cjs +296 -2
  68. package/dist/locales/pt-BR.d.cts +2 -2
  69. package/dist/locales/pt-BR.d.ts +2 -2
  70. package/dist/locales/pt-BR.js +296 -2
  71. package/dist/locales/th-TH.cjs +443 -2
  72. package/dist/locales/th-TH.d.cts +2 -2
  73. package/dist/locales/th-TH.d.ts +2 -2
  74. package/dist/locales/th-TH.js +441 -2
  75. package/dist/locales/vi-VN.cjs +443 -2
  76. package/dist/locales/vi-VN.d.cts +2 -2
  77. package/dist/locales/vi-VN.d.ts +2 -2
  78. package/dist/locales/vi-VN.js +441 -2
  79. package/dist/locales/zh-CN.cjs +98 -1
  80. package/dist/locales/zh-CN.d.cts +2 -2
  81. package/dist/locales/zh-CN.d.ts +2 -2
  82. package/dist/locales/zh-CN.js +98 -1
  83. package/dist/locales/zh-TW.cjs +443 -2
  84. package/dist/locales/zh-TW.d.cts +2 -2
  85. package/dist/locales/zh-TW.d.ts +2 -2
  86. package/dist/locales/zh-TW.js +441 -2
  87. package/dist/{table-export-GRimhvlM.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
  88. package/dist/{table-export-BMBH75rj.d.cts → table-export-vfyBzKui.d.cts} +2 -2
  89. package/dist/tailwind/modern.cjs +75 -80
  90. package/dist/tailwind/modern.d.cts +2 -3
  91. package/dist/tailwind/modern.d.ts +2 -3
  92. package/dist/tailwind/modern.js +75 -80
  93. package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.cts} +7 -41
  94. package/dist/{tailwind-entry-DUchHtjs.d.cts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
  95. package/dist/tailwind.cjs +123 -70
  96. package/dist/tailwind.d.cts +2 -3
  97. package/dist/tailwind.d.ts +2 -3
  98. package/dist/tailwind.js +123 -70
  99. package/dist/utils/table-export.d.cts +3 -3
  100. package/dist/utils/table-export.d.ts +3 -3
  101. package/package.json +4 -3
  102. package/tokens/tailwind-tokens.js +6 -3
  103. package/tokens/tokens.css +30 -15
  104. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
  105. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
package/dist/tailwind.js CHANGED
@@ -1,6 +1,54 @@
1
1
  // src/tailwind-plugin.ts
2
2
  import plugin from "tailwindcss/plugin";
3
3
 
4
+ // src/theme-runtime/index.ts
5
+ var THEME_CSS_VARS = {
6
+ // Primary colors
7
+ primary: "--tiger-primary",
8
+ primaryHover: "--tiger-primary-hover",
9
+ primaryActive: "--tiger-primary-active",
10
+ primaryDisabled: "--tiger-primary-disabled",
11
+ // Secondary colors
12
+ secondary: "--tiger-secondary",
13
+ secondaryHover: "--tiger-secondary-hover",
14
+ secondaryActive: "--tiger-secondary-active",
15
+ secondaryDisabled: "--tiger-secondary-disabled",
16
+ // Background hover states
17
+ outlineBgHover: "--tiger-outline-bg-hover",
18
+ ghostBgHover: "--tiger-ghost-bg-hover",
19
+ // Interaction states
20
+ focusRing: "--tiger-focus-ring",
21
+ // Surface & background
22
+ surface: "--tiger-surface",
23
+ surfaceMuted: "--tiger-surface-muted",
24
+ surfaceRaised: "--tiger-surface-raised",
25
+ // Text
26
+ text: "--tiger-text",
27
+ textSecondary: "--tiger-text-secondary",
28
+ textDisabled: "--tiger-text-disabled",
29
+ // Border
30
+ border: "--tiger-border",
31
+ borderStrong: "--tiger-border-strong",
32
+ // Status colors
33
+ success: "--tiger-success",
34
+ warning: "--tiger-warning",
35
+ error: "--tiger-error",
36
+ info: "--tiger-info",
37
+ // Chart palette
38
+ chart1: "--tiger-chart-1",
39
+ chart2: "--tiger-chart-2",
40
+ chart3: "--tiger-chart-3",
41
+ chart4: "--tiger-chart-4",
42
+ chart5: "--tiger-chart-5",
43
+ chart6: "--tiger-chart-6",
44
+ // Breakpoints
45
+ breakpointXs: "--tiger-breakpoint-xs",
46
+ breakpointSm: "--tiger-breakpoint-sm",
47
+ breakpointMd: "--tiger-breakpoint-md",
48
+ breakpointLg: "--tiger-breakpoint-lg",
49
+ breakpointXl: "--tiger-breakpoint-xl"
50
+ };
51
+
4
52
  // src/themes/modern/tokens.ts
5
53
  var MODERN_BASE_TOKENS_LIGHT = {
6
54
  // Radius (matches existing rounded-md/lg/xl)
@@ -73,78 +121,83 @@ var MODERN_REDUCED_MOTION_TOKENS = {
73
121
  "--tiger-transition-emphasized": "transform 0ms linear"
74
122
  };
75
123
 
76
- // src/tailwind-plugin.ts
77
- var tigercatTheme = {
78
- // Primary
79
- "--tiger-primary": "#2563eb",
80
- "--tiger-primary-hover": "#1d4ed8",
81
- "--tiger-primary-active": "#1e40af",
82
- "--tiger-primary-disabled": "#93c5fd",
83
- // Secondary
84
- "--tiger-secondary": "#4b5563",
85
- "--tiger-secondary-hover": "#374151",
86
- "--tiger-secondary-active": "#1f2937",
87
- "--tiger-secondary-disabled": "#9ca3af",
88
- // Background hover states
89
- "--tiger-outline-bg-hover": "#eff6ff",
90
- "--tiger-ghost-bg-hover": "#eff6ff",
91
- // Interaction
92
- "--tiger-focus-ring": "#2563eb",
93
- // Surface & background
94
- "--tiger-surface": "#ffffff",
95
- "--tiger-surface-muted": "#f9fafb",
96
- "--tiger-surface-raised": "#ffffff",
97
- // Text
98
- "--tiger-text": "#111827",
99
- "--tiger-text-secondary": "#6b7280",
100
- "--tiger-text-disabled": "#d1d5db",
101
- // Border
102
- "--tiger-border": "#e5e7eb",
103
- "--tiger-border-strong": "#9ca3af",
104
- // Status
105
- "--tiger-success": "#16a34a",
106
- "--tiger-warning": "#d97706",
107
- "--tiger-error": "#dc2626",
108
- "--tiger-info": "#3b82f6",
109
- // Chart palette
110
- "--tiger-chart-1": "#2563eb",
111
- "--tiger-chart-2": "#16a34a",
112
- "--tiger-chart-3": "#d97706",
113
- "--tiger-chart-4": "#a855f7",
114
- "--tiger-chart-5": "#0ea5e9",
115
- "--tiger-chart-6": "#ef4444"
124
+ // src/themes/default/theme.ts
125
+ var defaultThemeLightColors = {
126
+ primary: "#2563eb",
127
+ primaryHover: "#1d4ed8",
128
+ primaryActive: "#1e40af",
129
+ primaryDisabled: "#93c5fd",
130
+ secondary: "#4b5563",
131
+ secondaryHover: "#374151",
132
+ secondaryActive: "#1f2937",
133
+ secondaryDisabled: "#9ca3af",
134
+ outlineBgHover: "#eff6ff",
135
+ ghostBgHover: "#eff6ff",
136
+ focusRing: "#2563eb",
137
+ surface: "#ffffff",
138
+ surfaceMuted: "#f9fafb",
139
+ surfaceRaised: "#ffffff",
140
+ text: "#111827",
141
+ textSecondary: "#6b7280",
142
+ textDisabled: "#d1d5db",
143
+ border: "#e5e7eb",
144
+ borderStrong: "#9ca3af",
145
+ success: "#16a34a",
146
+ warning: "#d97706",
147
+ error: "#dc2626",
148
+ info: "#3b82f6",
149
+ chart1: "#2563eb",
150
+ chart2: "#16a34a",
151
+ chart3: "#d97706",
152
+ chart4: "#a855f7",
153
+ chart5: "#0ea5e9",
154
+ chart6: "#ef4444"
116
155
  };
117
- var tigercatDarkTheme = {
118
- "--tiger-primary": "#60a5fa",
119
- "--tiger-primary-hover": "#93c5fd",
120
- "--tiger-primary-active": "#bfdbfe",
121
- "--tiger-primary-disabled": "#1e40af",
122
- "--tiger-secondary": "#9ca3af",
123
- "--tiger-secondary-hover": "#d1d5db",
124
- "--tiger-secondary-active": "#e5e7eb",
125
- "--tiger-secondary-disabled": "#4b5563",
126
- "--tiger-outline-bg-hover": "#1e3a5f",
127
- "--tiger-ghost-bg-hover": "#1e3a5f",
128
- "--tiger-focus-ring": "#60a5fa",
129
- "--tiger-surface": "#111827",
130
- "--tiger-surface-muted": "#1f2937",
131
- "--tiger-surface-raised": "#1f2937",
132
- "--tiger-text": "#f9fafb",
133
- "--tiger-text-secondary": "#d1d5db",
134
- "--tiger-text-disabled": "#4b5563",
135
- "--tiger-border": "#374151",
136
- "--tiger-border-strong": "#6b7280",
137
- "--tiger-success": "#4ade80",
138
- "--tiger-warning": "#fbbf24",
139
- "--tiger-error": "#f87171",
140
- "--tiger-info": "#60a5fa",
141
- "--tiger-chart-1": "#60a5fa",
142
- "--tiger-chart-2": "#4ade80",
143
- "--tiger-chart-3": "#fbbf24",
144
- "--tiger-chart-4": "#c084fc",
145
- "--tiger-chart-5": "#38bdf8",
146
- "--tiger-chart-6": "#f87171"
156
+ var defaultThemeDarkColors = {
157
+ primary: "#60a5fa",
158
+ primaryHover: "#93c5fd",
159
+ primaryActive: "#bfdbfe",
160
+ primaryDisabled: "#1e40af",
161
+ secondary: "#9ca3af",
162
+ secondaryHover: "#d1d5db",
163
+ secondaryActive: "#e5e7eb",
164
+ secondaryDisabled: "#4b5563",
165
+ outlineBgHover: "#1e3a5f",
166
+ ghostBgHover: "#1e3a5f",
167
+ focusRing: "#60a5fa",
168
+ surface: "#111827",
169
+ surfaceMuted: "#1f2937",
170
+ surfaceRaised: "#1f2937",
171
+ text: "#f9fafb",
172
+ textSecondary: "#d1d5db",
173
+ textDisabled: "#4b5563",
174
+ border: "#374151",
175
+ borderStrong: "#6b7280",
176
+ success: "#4ade80",
177
+ warning: "#fbbf24",
178
+ error: "#f87171",
179
+ info: "#60a5fa",
180
+ chart1: "#60a5fa",
181
+ chart2: "#4ade80",
182
+ chart3: "#fbbf24",
183
+ chart4: "#c084fc",
184
+ chart5: "#38bdf8",
185
+ chart6: "#f87171"
147
186
  };
187
+
188
+ // 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);
148
201
  var tigercatDirectionBase = {
149
202
  '[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
150
203
  transform: "scaleX(-1)"
@@ -1,3 +1,3 @@
1
- export { o as downloadCsv, p as downloadExcel, r as downloadTableExport, q as exportTableData, m as exportTableToCsv, n as exportTableToExcel, t as tableExportButtonClasses } from '../table-export-BMBH75rj.cjs';
2
- import '../locale-DxwhmqfF.cjs';
3
- import '../datepicker-DXzS_8l8.cjs';
1
+ export { D as downloadCsv, G as downloadExcel, H as downloadTableExport, I as exportTableData, J as exportTableToCsv, K as exportTableToExcel, L as tableExportButtonClasses } from '../table-export-vfyBzKui.cjs';
2
+ import '../locale-BTAo7XO1.cjs';
3
+ import '../datepicker-gSOJN_pQ.cjs';
@@ -1,3 +1,3 @@
1
- export { o as downloadCsv, p as downloadExcel, r as downloadTableExport, q as exportTableData, m as exportTableToCsv, n as exportTableToExcel, t as tableExportButtonClasses } from '../table-export-GRimhvlM.js';
2
- import '../locale-9tTj1QdZ.js';
3
- import '../datepicker-DXzS_8l8.js';
1
+ export { D as downloadCsv, G as downloadExcel, H as downloadTableExport, I as exportTableData, J as exportTableToCsv, K as exportTableToExcel, L as tableExportButtonClasses } from '../table-export-CfdzU6Y5.js';
2
+ import '../locale-hhhI2kH6.js';
3
+ import '../datepicker-gSOJN_pQ.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expcat/tigercat-core",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "Core utilities for Tigercat UI library",
6
6
  "license": "MIT",
@@ -221,7 +221,7 @@
221
221
  }
222
222
  },
223
223
  "devDependencies": {
224
- "tailwindcss": "^4.2.4",
224
+ "tailwindcss": "^4.3.1",
225
225
  "tsup": "^8.5.1",
226
226
  "typescript": "^6.0.3"
227
227
  },
@@ -229,6 +229,7 @@
229
229
  "build": "tsup",
230
230
  "dev": "tsup --watch",
231
231
  "clean": "node ../../scripts/rimraf.mjs dist",
232
- "tokens": "node ./scripts/generate-tokens.mjs"
232
+ "tokens": "node ./scripts/generate-tokens.mjs",
233
+ "tokens:check": "node ./scripts/generate-tokens.mjs --check"
233
234
  }
234
235
  }
@@ -109,9 +109,12 @@ 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': '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)'
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)'
115
118
  },
116
119
  fontFamily: {
117
120
  'tiger-base': [
package/tokens/tokens.css CHANGED
@@ -89,14 +89,17 @@
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: 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);
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);
94
96
  --tiger-primitive-shadow-lg:
95
97
  0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
96
98
  --tiger-primitive-shadow-xl:
97
99
  0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
98
100
  --tiger-primitive-font-family-base:
99
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
101
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
102
+ Arial, sans-serif;
100
103
  --tiger-primitive-font-family-mono:
101
104
  'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
102
105
  --tiger-primitive-font-size-xs: 12px;
@@ -221,7 +224,8 @@
221
224
  --tiger-component-drawer-width-xl: 680px;
222
225
  --tiger-component-card-border-radius: 12px;
223
226
  --tiger-component-card-padding: 24px;
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);
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);
225
229
  --tiger-component-card-border-color: #e5e5e5;
226
230
  --tiger-component-badge-font-size: 12px;
227
231
  --tiger-component-badge-font-weight: 500;
@@ -404,12 +408,17 @@
404
408
  --tiger-radius-xl: 12px;
405
409
  --tiger-radius-full: 9999px;
406
410
  --tiger-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
407
- --tiger-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
408
- --tiger-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
409
- --tiger-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
410
- --tiger-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
411
+ --tiger-shadow-sm:
412
+ 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
413
+ --tiger-shadow-md:
414
+ 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
415
+ --tiger-shadow-lg:
416
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
417
+ --tiger-shadow-xl:
418
+ 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
411
419
  --tiger-font-family-base:
412
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
420
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
421
+ Arial, sans-serif;
413
422
  --tiger-font-family-mono:
414
423
  'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
415
424
  --tiger-font-size-xs: 12px;
@@ -509,7 +518,8 @@
509
518
  --tiger-select-option-padding-x: 16px;
510
519
  --tiger-modal-border-radius: 12px;
511
520
  --tiger-modal-padding: 24px;
512
- --tiger-modal-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
521
+ --tiger-modal-shadow:
522
+ 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
513
523
  --tiger-modal-header-font-size: 18px;
514
524
  --tiger-modal-header-font-weight: 600;
515
525
  --tiger-modal-overlay-bg: rgba(0, 0, 0, 0.45);
@@ -518,7 +528,8 @@
518
528
  --tiger-modal-width-lg: 680px;
519
529
  --tiger-modal-width-xl: 860px;
520
530
  --tiger-drawer-padding: 24px;
521
- --tiger-drawer-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
531
+ --tiger-drawer-shadow:
532
+ 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
522
533
  --tiger-drawer-header-font-size: 18px;
523
534
  --tiger-drawer-header-font-weight: 600;
524
535
  --tiger-drawer-overlay-bg: rgba(0, 0, 0, 0.45);
@@ -528,7 +539,8 @@
528
539
  --tiger-drawer-width-xl: 680px;
529
540
  --tiger-card-border-radius: 12px;
530
541
  --tiger-card-padding: 24px;
531
- --tiger-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
542
+ --tiger-card-shadow:
543
+ 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
532
544
  --tiger-card-border-color: #e5e5e5;
533
545
  --tiger-badge-font-size: 12px;
534
546
  --tiger-badge-font-weight: 500;
@@ -558,7 +570,8 @@
558
570
  --tiger-tooltip-padding-x: 8px;
559
571
  --tiger-tooltip-padding-y: 4px;
560
572
  --tiger-tooltip-border-radius: 8px;
561
- --tiger-tooltip-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
573
+ --tiger-tooltip-shadow:
574
+ 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
562
575
  --tiger-tooltip-max-width: 280px;
563
576
  --tiger-alert-border-radius: 8px;
564
577
  --tiger-alert-padding-x: 16px;
@@ -604,7 +617,8 @@
604
617
  --tiger-dropdown-item-height: 36px;
605
618
  --tiger-dropdown-item-padding-x: 16px;
606
619
  --tiger-dropdown-border-radius: 12px;
607
- --tiger-dropdown-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
620
+ --tiger-dropdown-shadow:
621
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
608
622
  --tiger-menu-item-height: 40px;
609
623
  --tiger-menu-item-padding-x: 16px;
610
624
  --tiger-menu-group-title-padding: 8px;
@@ -619,7 +633,8 @@
619
633
  --tiger-notification-title-font-weight: 500;
620
634
  --tiger-popover-padding: 16px;
621
635
  --tiger-popover-border-radius: 12px;
622
- --tiger-popover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
636
+ --tiger-popover-shadow:
637
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
623
638
  --tiger-popover-max-width: 320px;
624
639
 
625
640
  /* Legacy variables (backward-compat with pre-0.5.0) */
@@ -1,126 +0,0 @@
1
- import { N, P } from './resolve-config-QUZ9b-Gn.mjs';
2
-
3
- /**
4
- * The source code for one or more nodes in the AST
5
- *
6
- * This generally corresponds to a stylesheet
7
- */
8
- interface Source {
9
- /**
10
- * The path to the file that contains the referenced source code
11
- *
12
- * If this references the *output* source code, this is `null`.
13
- */
14
- file: string | null;
15
- /**
16
- * The referenced source code
17
- */
18
- code: string;
19
- }
20
- /**
21
- * The file and offsets within it that this node covers
22
- *
23
- * This can represent either:
24
- * - A location in the original CSS which caused this node to be created
25
- * - A location in the output CSS where this node resides
26
- */
27
- type SourceLocation = [source: Source, start: number, end: number];
28
- type PluginFn = (api: PluginAPI) => void;
29
- type PluginWithConfig = {
30
- handler: PluginFn;
31
- config?: UserConfig;
32
- /** @internal */
33
- reference?: boolean;
34
- src?: SourceLocation | undefined;
35
- };
36
- type PluginWithOptions<T> = {
37
- (options?: T): PluginWithConfig;
38
- __isOptionsFunction: true;
39
- };
40
- type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
41
- type PluginAPI = {
42
- addBase(base: CssInJs): void;
43
- addVariant(name: string, variant: string | string[] | CssInJs): void;
44
- matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
45
- modifier: string | null;
46
- }) => string | string[], options?: {
47
- values?: Record<string, T>;
48
- sort?(a: {
49
- value: T | string;
50
- modifier: string | null;
51
- }, b: {
52
- value: T | string;
53
- modifier: string | null;
54
- }): number;
55
- }): void;
56
- addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
57
- matchUtilities(utilities: Record<string, (value: string, extra: {
58
- modifier: string | null;
59
- }) => CssInJs | CssInJs[]>, options?: Partial<{
60
- type: string | string[];
61
- supportsNegativeValues: boolean;
62
- values: Record<string, string> & {
63
- __BARE_VALUE__?: (value: N) => string | undefined;
64
- };
65
- modifiers: 'any' | Record<string, string>;
66
- }>): void;
67
- addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
68
- matchComponents(utilities: Record<string, (value: string, extra: {
69
- modifier: string | null;
70
- }) => CssInJs>, options?: Partial<{
71
- type: string | string[];
72
- supportsNegativeValues: boolean;
73
- values: Record<string, string> & {
74
- __BARE_VALUE__?: (value: N) => string | undefined;
75
- };
76
- modifiers: 'any' | Record<string, string>;
77
- }>): void;
78
- theme(path: string, defaultValue?: any): any;
79
- config(path?: string, defaultValue?: any): any;
80
- prefix(className: string): string;
81
- };
82
- type CssInJs = {
83
- [key: string]: string | string[] | CssInJs | CssInJs[];
84
- };
85
-
86
- type ResolvableTo<T> = T | ((utils: P) => T);
87
- type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
88
- type ThemeConfig = Record<string, ThemeValue> & {
89
- extend?: Record<string, ThemeValue>;
90
- };
91
- type ContentFile = string | {
92
- raw: string;
93
- extension?: string;
94
- };
95
- type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
96
- interface UserConfig {
97
- presets?: UserConfig[];
98
- theme?: ThemeConfig;
99
- plugins?: Plugin[];
100
- }
101
- interface UserConfig {
102
- content?: ContentFile[] | {
103
- relative?: boolean;
104
- files: ContentFile[];
105
- };
106
- }
107
- interface UserConfig {
108
- darkMode?: DarkModeStrategy;
109
- }
110
- interface UserConfig {
111
- prefix?: string;
112
- }
113
- interface UserConfig {
114
- blocklist?: string[];
115
- }
116
- interface UserConfig {
117
- important?: boolean | string;
118
- }
119
- interface UserConfig {
120
- future?: 'all' | Record<string, boolean>;
121
- }
122
- interface UserConfig {
123
- experimental?: 'all' | Record<string, boolean>;
124
- }
125
-
126
- export type { PluginWithConfig as P };
@@ -1,126 +0,0 @@
1
- import { N, P } from './resolve-config-QUZ9b-Gn.mjs';
2
-
3
- /**
4
- * The source code for one or more nodes in the AST
5
- *
6
- * This generally corresponds to a stylesheet
7
- */
8
- interface Source {
9
- /**
10
- * The path to the file that contains the referenced source code
11
- *
12
- * If this references the *output* source code, this is `null`.
13
- */
14
- file: string | null;
15
- /**
16
- * The referenced source code
17
- */
18
- code: string;
19
- }
20
- /**
21
- * The file and offsets within it that this node covers
22
- *
23
- * This can represent either:
24
- * - A location in the original CSS which caused this node to be created
25
- * - A location in the output CSS where this node resides
26
- */
27
- type SourceLocation = [source: Source, start: number, end: number];
28
- type PluginFn = (api: PluginAPI) => void;
29
- type PluginWithConfig = {
30
- handler: PluginFn;
31
- config?: UserConfig;
32
- /** @internal */
33
- reference?: boolean;
34
- src?: SourceLocation | undefined;
35
- };
36
- type PluginWithOptions<T> = {
37
- (options?: T): PluginWithConfig;
38
- __isOptionsFunction: true;
39
- };
40
- type Plugin = PluginFn | PluginWithConfig | PluginWithOptions<any>;
41
- type PluginAPI = {
42
- addBase(base: CssInJs): void;
43
- addVariant(name: string, variant: string | string[] | CssInJs): void;
44
- matchVariant<T = string>(name: string, cb: (value: T | string, extra: {
45
- modifier: string | null;
46
- }) => string | string[], options?: {
47
- values?: Record<string, T>;
48
- sort?(a: {
49
- value: T | string;
50
- modifier: string | null;
51
- }, b: {
52
- value: T | string;
53
- modifier: string | null;
54
- }): number;
55
- }): void;
56
- addUtilities(utilities: Record<string, CssInJs | CssInJs[]> | Record<string, CssInJs | CssInJs[]>[], options?: {}): void;
57
- matchUtilities(utilities: Record<string, (value: string, extra: {
58
- modifier: string | null;
59
- }) => CssInJs | CssInJs[]>, options?: Partial<{
60
- type: string | string[];
61
- supportsNegativeValues: boolean;
62
- values: Record<string, string> & {
63
- __BARE_VALUE__?: (value: N) => string | undefined;
64
- };
65
- modifiers: 'any' | Record<string, string>;
66
- }>): void;
67
- addComponents(utilities: Record<string, CssInJs> | Record<string, CssInJs>[], options?: {}): void;
68
- matchComponents(utilities: Record<string, (value: string, extra: {
69
- modifier: string | null;
70
- }) => CssInJs>, options?: Partial<{
71
- type: string | string[];
72
- supportsNegativeValues: boolean;
73
- values: Record<string, string> & {
74
- __BARE_VALUE__?: (value: N) => string | undefined;
75
- };
76
- modifiers: 'any' | Record<string, string>;
77
- }>): void;
78
- theme(path: string, defaultValue?: any): any;
79
- config(path?: string, defaultValue?: any): any;
80
- prefix(className: string): string;
81
- };
82
- type CssInJs = {
83
- [key: string]: string | string[] | CssInJs | CssInJs[];
84
- };
85
-
86
- type ResolvableTo<T> = T | ((utils: P) => T);
87
- type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
88
- type ThemeConfig = Record<string, ThemeValue> & {
89
- extend?: Record<string, ThemeValue>;
90
- };
91
- type ContentFile = string | {
92
- raw: string;
93
- extension?: string;
94
- };
95
- type DarkModeStrategy = false | 'media' | 'class' | ['class', string] | 'selector' | ['selector', string] | ['variant', string | string[]];
96
- interface UserConfig {
97
- presets?: UserConfig[];
98
- theme?: ThemeConfig;
99
- plugins?: Plugin[];
100
- }
101
- interface UserConfig {
102
- content?: ContentFile[] | {
103
- relative?: boolean;
104
- files: ContentFile[];
105
- };
106
- }
107
- interface UserConfig {
108
- darkMode?: DarkModeStrategy;
109
- }
110
- interface UserConfig {
111
- prefix?: string;
112
- }
113
- interface UserConfig {
114
- blocklist?: string[];
115
- }
116
- interface UserConfig {
117
- important?: boolean | string;
118
- }
119
- interface UserConfig {
120
- future?: 'all' | Record<string, boolean>;
121
- }
122
- interface UserConfig {
123
- experimental?: 'all' | Record<string, boolean>;
124
- }
125
-
126
- export type { PluginWithConfig as P };