@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.
- 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/index.cjs +1523 -480
- package/dist/index.d.cts +422 -28
- package/dist/index.d.ts +422 -28
- package/dist/index.js +1471 -479
- package/dist/{locale-DxwhmqfF.d.cts → locale-BTAo7XO1.d.cts} +94 -2
- package/dist/{locale-9tTj1QdZ.d.ts → locale-hhhI2kH6.d.ts} +94 -2
- package/dist/locales/ar-SA.cjs +296 -2
- package/dist/locales/ar-SA.d.cts +2 -2
- package/dist/locales/ar-SA.d.ts +2 -2
- package/dist/locales/ar-SA.js +296 -2
- package/dist/locales/de-DE.cjs +296 -2
- package/dist/locales/de-DE.d.cts +2 -2
- package/dist/locales/de-DE.d.ts +2 -2
- package/dist/locales/de-DE.js +296 -2
- package/dist/locales/en-US.cjs +98 -1
- package/dist/locales/en-US.d.cts +2 -2
- package/dist/locales/en-US.d.ts +2 -2
- package/dist/locales/en-US.js +98 -1
- package/dist/locales/es-ES.cjs +296 -2
- package/dist/locales/es-ES.d.cts +2 -2
- package/dist/locales/es-ES.d.ts +2 -2
- package/dist/locales/es-ES.js +296 -2
- package/dist/locales/fr-FR.cjs +296 -2
- package/dist/locales/fr-FR.d.cts +2 -2
- package/dist/locales/fr-FR.d.ts +2 -2
- package/dist/locales/fr-FR.js +296 -2
- package/dist/locales/id-ID.cjs +443 -2
- package/dist/locales/id-ID.d.cts +2 -2
- package/dist/locales/id-ID.d.ts +2 -2
- package/dist/locales/id-ID.js +441 -2
- package/dist/locales/ja-JP.cjs +443 -2
- package/dist/locales/ja-JP.d.cts +2 -2
- package/dist/locales/ja-JP.d.ts +2 -2
- package/dist/locales/ja-JP.js +441 -2
- package/dist/locales/ko-KR.cjs +443 -2
- package/dist/locales/ko-KR.d.cts +2 -2
- package/dist/locales/ko-KR.d.ts +2 -2
- package/dist/locales/ko-KR.js +441 -2
- package/dist/locales/pt-BR.cjs +296 -2
- package/dist/locales/pt-BR.d.cts +2 -2
- package/dist/locales/pt-BR.d.ts +2 -2
- package/dist/locales/pt-BR.js +296 -2
- package/dist/locales/th-TH.cjs +443 -2
- package/dist/locales/th-TH.d.cts +2 -2
- package/dist/locales/th-TH.d.ts +2 -2
- package/dist/locales/th-TH.js +441 -2
- package/dist/locales/vi-VN.cjs +443 -2
- package/dist/locales/vi-VN.d.cts +2 -2
- package/dist/locales/vi-VN.d.ts +2 -2
- package/dist/locales/vi-VN.js +441 -2
- package/dist/locales/zh-CN.cjs +98 -1
- package/dist/locales/zh-CN.d.cts +2 -2
- package/dist/locales/zh-CN.d.ts +2 -2
- package/dist/locales/zh-CN.js +98 -1
- package/dist/locales/zh-TW.cjs +443 -2
- package/dist/locales/zh-TW.d.cts +2 -2
- package/dist/locales/zh-TW.d.ts +2 -2
- package/dist/locales/zh-TW.js +441 -2
- package/dist/{table-export-GRimhvlM.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
- package/dist/{table-export-BMBH75rj.d.cts → table-export-vfyBzKui.d.cts} +2 -2
- package/dist/tailwind/modern.cjs +75 -80
- package/dist/tailwind/modern.d.cts +2 -3
- package/dist/tailwind/modern.d.ts +2 -3
- package/dist/tailwind/modern.js +75 -80
- 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.d.cts +3 -3
- package/dist/utils/table-export.d.ts +3 -3
- package/package.json +4 -3
- package/tokens/tailwind-tokens.js +6 -3
- package/tokens/tokens.css +30 -15
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
- 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/
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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 {
|
|
2
|
-
import '../locale-
|
|
3
|
-
import '../datepicker-
|
|
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 {
|
|
2
|
-
import '../locale-
|
|
3
|
-
import '../datepicker-
|
|
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.
|
|
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.
|
|
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':
|
|
113
|
-
|
|
114
|
-
'tiger-
|
|
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:
|
|
93
|
-
|
|
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',
|
|
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:
|
|
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:
|
|
408
|
-
|
|
409
|
-
--tiger-shadow-
|
|
410
|
-
|
|
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',
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 };
|