@expcat/tigercat-core 1.3.4 → 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/icons/registry.cjs +1 -3
- package/dist/icons/registry.js +1 -3
- package/dist/index.cjs +2094 -715
- package/dist/index.d.cts +811 -319
- package/dist/index.d.ts +811 -319
- package/dist/index.js +2023 -712
- package/dist/locale-BTAo7XO1.d.cts +392 -0
- package/dist/locale-hhhI2kH6.d.ts +392 -0
- package/dist/locales/ar-SA.cjs +357 -4
- package/dist/locales/ar-SA.d.cts +2 -2
- package/dist/locales/ar-SA.d.ts +2 -2
- package/dist/locales/ar-SA.js +357 -4
- package/dist/locales/de-DE.cjs +357 -4
- package/dist/locales/de-DE.d.cts +2 -2
- package/dist/locales/de-DE.d.ts +2 -2
- package/dist/locales/de-DE.js +357 -4
- package/dist/locales/en-US.cjs +159 -2
- package/dist/locales/en-US.d.cts +2 -2
- package/dist/locales/en-US.d.ts +2 -2
- package/dist/locales/en-US.js +157 -2
- package/dist/locales/es-ES.cjs +357 -4
- package/dist/locales/es-ES.d.cts +2 -2
- package/dist/locales/es-ES.d.ts +2 -2
- package/dist/locales/es-ES.js +357 -4
- package/dist/locales/fr-FR.cjs +357 -4
- package/dist/locales/fr-FR.d.cts +2 -2
- package/dist/locales/fr-FR.d.ts +2 -2
- package/dist/locales/fr-FR.js +357 -4
- package/dist/locales/id-ID.cjs +445 -3
- package/dist/locales/id-ID.d.cts +2 -2
- package/dist/locales/id-ID.d.ts +2 -2
- package/dist/locales/id-ID.js +443 -3
- package/dist/locales/ja-JP.cjs +445 -3
- package/dist/locales/ja-JP.d.cts +2 -2
- package/dist/locales/ja-JP.d.ts +2 -2
- package/dist/locales/ja-JP.js +443 -3
- package/dist/locales/ko-KR.cjs +445 -3
- package/dist/locales/ko-KR.d.cts +2 -2
- package/dist/locales/ko-KR.d.ts +2 -2
- package/dist/locales/ko-KR.js +443 -3
- package/dist/locales/pt-BR.cjs +357 -4
- package/dist/locales/pt-BR.d.cts +2 -2
- package/dist/locales/pt-BR.d.ts +2 -2
- package/dist/locales/pt-BR.js +357 -4
- package/dist/locales/th-TH.cjs +445 -3
- package/dist/locales/th-TH.d.cts +2 -2
- package/dist/locales/th-TH.d.ts +2 -2
- package/dist/locales/th-TH.js +443 -3
- package/dist/locales/vi-VN.cjs +445 -3
- package/dist/locales/vi-VN.d.cts +2 -2
- package/dist/locales/vi-VN.d.ts +2 -2
- package/dist/locales/vi-VN.js +443 -3
- package/dist/locales/zh-CN.cjs +159 -2
- package/dist/locales/zh-CN.d.cts +2 -2
- package/dist/locales/zh-CN.d.ts +2 -2
- package/dist/locales/zh-CN.js +157 -2
- package/dist/locales/zh-TW.cjs +445 -3
- package/dist/locales/zh-TW.d.cts +2 -2
- package/dist/locales/zh-TW.d.ts +2 -2
- package/dist/locales/zh-TW.js +443 -3
- package/dist/{table-export-CZ7wtGf4.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
- package/dist/{table-export-DOqFkseW.d.cts → table-export-vfyBzKui.d.cts} +2 -2
- package/dist/tailwind/modern.cjs +76 -81
- package/dist/tailwind/modern.d.cts +2 -3
- package/dist/tailwind/modern.d.ts +2 -3
- package/dist/tailwind/modern.js +76 -81
- 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.cjs +7 -0
- package/dist/utils/table-export.d.cts +3 -3
- package/dist/utils/table-export.d.ts +3 -3
- package/dist/utils/table-export.js +7 -0
- package/package.json +5 -12
- package/dist/locale-BuZwW3Ok.d.ts +0 -135
- package/dist/locale-DDFn0b6z.d.cts +0 -135
- 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)"
|
|
@@ -30,6 +30,11 @@ __export(table_export_exports, {
|
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(table_export_exports);
|
|
32
32
|
|
|
33
|
+
// src/utils/env.ts
|
|
34
|
+
function isBrowser() {
|
|
35
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
// src/utils/table-export-utils.ts
|
|
34
39
|
function escapeCsvValue(value) {
|
|
35
40
|
const str = value === null || value === void 0 ? "" : String(value);
|
|
@@ -66,6 +71,7 @@ function exportTableToExcel(columns, data) {
|
|
|
66
71
|
return `<!doctype html><html><head><meta charset="utf-8"></head><body><table><thead><tr>${headerCells}</tr></thead><tbody>${bodyRows}</tbody></table></body></html>`;
|
|
67
72
|
}
|
|
68
73
|
function downloadCsv(csvContent, filename = "export") {
|
|
74
|
+
if (!isBrowser()) return;
|
|
69
75
|
const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8;" });
|
|
70
76
|
const url = URL.createObjectURL(blob);
|
|
71
77
|
const link = document.createElement("a");
|
|
@@ -78,6 +84,7 @@ function downloadCsv(csvContent, filename = "export") {
|
|
|
78
84
|
URL.revokeObjectURL(url);
|
|
79
85
|
}
|
|
80
86
|
function downloadExcel(excelContent, filename = "export") {
|
|
87
|
+
if (!isBrowser()) return;
|
|
81
88
|
const blob = new Blob([excelContent], { type: "application/vnd.ms-excel;charset=utf-8;" });
|
|
82
89
|
const url = URL.createObjectURL(blob);
|
|
83
90
|
const link = document.createElement("a");
|
|
@@ -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';
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
// src/utils/env.ts
|
|
2
|
+
function isBrowser() {
|
|
3
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
// src/utils/table-export-utils.ts
|
|
2
7
|
function escapeCsvValue(value) {
|
|
3
8
|
const str = value === null || value === void 0 ? "" : String(value);
|
|
@@ -34,6 +39,7 @@ function exportTableToExcel(columns, data) {
|
|
|
34
39
|
return `<!doctype html><html><head><meta charset="utf-8"></head><body><table><thead><tr>${headerCells}</tr></thead><tbody>${bodyRows}</tbody></table></body></html>`;
|
|
35
40
|
}
|
|
36
41
|
function downloadCsv(csvContent, filename = "export") {
|
|
42
|
+
if (!isBrowser()) return;
|
|
37
43
|
const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8;" });
|
|
38
44
|
const url = URL.createObjectURL(blob);
|
|
39
45
|
const link = document.createElement("a");
|
|
@@ -46,6 +52,7 @@ function downloadCsv(csvContent, filename = "export") {
|
|
|
46
52
|
URL.revokeObjectURL(url);
|
|
47
53
|
}
|
|
48
54
|
function downloadExcel(excelContent, filename = "export") {
|
|
55
|
+
if (!isBrowser()) return;
|
|
49
56
|
const blob = new Blob([excelContent], { type: "application/vnd.ms-excel;charset=utf-8;" });
|
|
50
57
|
const url = URL.createObjectURL(blob);
|
|
51
58
|
const link = document.createElement("a");
|
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",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"utilities"
|
|
21
21
|
],
|
|
22
22
|
"main": "./dist/index.js",
|
|
23
|
-
"module": "./dist/index.
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"exports": {
|
|
@@ -29,14 +29,6 @@
|
|
|
29
29
|
"import": "./dist/index.js",
|
|
30
30
|
"require": "./dist/index.cjs"
|
|
31
31
|
},
|
|
32
|
-
"./types": {
|
|
33
|
-
"types": "./dist/types/index.d.ts",
|
|
34
|
-
"import": "./dist/types/index.js"
|
|
35
|
-
},
|
|
36
|
-
"./theme": {
|
|
37
|
-
"types": "./dist/theme/index.d.ts",
|
|
38
|
-
"import": "./dist/theme/index.js"
|
|
39
|
-
},
|
|
40
32
|
"./tailwind": {
|
|
41
33
|
"types": "./dist/tailwind.d.ts",
|
|
42
34
|
"import": "./dist/tailwind.js",
|
|
@@ -229,7 +221,7 @@
|
|
|
229
221
|
}
|
|
230
222
|
},
|
|
231
223
|
"devDependencies": {
|
|
232
|
-
"tailwindcss": "^4.
|
|
224
|
+
"tailwindcss": "^4.3.1",
|
|
233
225
|
"tsup": "^8.5.1",
|
|
234
226
|
"typescript": "^6.0.3"
|
|
235
227
|
},
|
|
@@ -237,6 +229,7 @@
|
|
|
237
229
|
"build": "tsup",
|
|
238
230
|
"dev": "tsup --watch",
|
|
239
231
|
"clean": "node ../../scripts/rimraf.mjs dist",
|
|
240
|
-
"tokens": "node ./scripts/generate-tokens.mjs"
|
|
232
|
+
"tokens": "node ./scripts/generate-tokens.mjs",
|
|
233
|
+
"tokens:check": "node ./scripts/generate-tokens.mjs --check"
|
|
241
234
|
}
|
|
242
235
|
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { D as DatePickerLocalePreset } from './datepicker-DXzS_8l8.js';
|
|
2
|
-
|
|
3
|
-
type TigerLocaleDirection = 'ltr' | 'rtl';
|
|
4
|
-
interface TigerLocaleCommon {
|
|
5
|
-
okText?: string;
|
|
6
|
-
cancelText?: string;
|
|
7
|
-
closeText?: string;
|
|
8
|
-
loadingText?: string;
|
|
9
|
-
emptyText?: string;
|
|
10
|
-
}
|
|
11
|
-
interface TigerLocaleModal {
|
|
12
|
-
closeAriaLabel?: string;
|
|
13
|
-
okText?: string;
|
|
14
|
-
cancelText?: string;
|
|
15
|
-
}
|
|
16
|
-
interface TigerLocaleDrawer {
|
|
17
|
-
closeAriaLabel?: string;
|
|
18
|
-
}
|
|
19
|
-
interface TigerLocaleUpload {
|
|
20
|
-
/** Drag area aria-label */
|
|
21
|
-
dragAreaAriaLabel?: string;
|
|
22
|
-
/** Upload button aria-label (non-drag mode) */
|
|
23
|
-
buttonAriaLabel?: string;
|
|
24
|
-
/** Main drag-area instruction (emphasized part) */
|
|
25
|
-
clickToUploadText?: string;
|
|
26
|
-
/** Secondary drag-area instruction */
|
|
27
|
-
dragAndDropText?: string;
|
|
28
|
-
/** Template: supports {accept} */
|
|
29
|
-
acceptInfoText?: string;
|
|
30
|
-
/** Template: supports {maxSize} */
|
|
31
|
-
maxSizeInfoText?: string;
|
|
32
|
-
/** Default non-drag button text */
|
|
33
|
-
selectFileText?: string;
|
|
34
|
-
/** File list aria-label */
|
|
35
|
-
uploadedFilesAriaLabel?: string;
|
|
36
|
-
/** Status aria-labels */
|
|
37
|
-
successAriaLabel?: string;
|
|
38
|
-
errorAriaLabel?: string;
|
|
39
|
-
uploadingAriaLabel?: string;
|
|
40
|
-
/** Templates: support {fileName} */
|
|
41
|
-
removeFileAriaLabel?: string;
|
|
42
|
-
previewFileAriaLabel?: string;
|
|
43
|
-
}
|
|
44
|
-
interface TigerLocalePagination {
|
|
45
|
-
/** Total text template: supports {total}, {start}, {end} */
|
|
46
|
-
totalText?: string;
|
|
47
|
-
/** Items per page text */
|
|
48
|
-
itemsPerPageText?: string;
|
|
49
|
-
/** Quick jumper label */
|
|
50
|
-
jumpToText?: string;
|
|
51
|
-
/** Page text (after number) */
|
|
52
|
-
pageText?: string;
|
|
53
|
-
/** Previous page button aria-label */
|
|
54
|
-
prevPageAriaLabel?: string;
|
|
55
|
-
/** Next page button aria-label */
|
|
56
|
-
nextPageAriaLabel?: string;
|
|
57
|
-
/** Page button aria-label template: supports {page} */
|
|
58
|
-
pageAriaLabel?: string;
|
|
59
|
-
/** Simple pagination page indicator template: supports {current}, {total} */
|
|
60
|
-
pageIndicatorText?: string;
|
|
61
|
-
}
|
|
62
|
-
interface TigerLocaleTable {
|
|
63
|
-
emptyText?: string;
|
|
64
|
-
loadingText?: string;
|
|
65
|
-
expandText?: string;
|
|
66
|
-
collapseText?: string;
|
|
67
|
-
selectAllText?: string;
|
|
68
|
-
/** Template: supports {row} */
|
|
69
|
-
selectRowAriaLabel?: string;
|
|
70
|
-
/** Template: supports {column} */
|
|
71
|
-
sortByText?: string;
|
|
72
|
-
clearSortText?: string;
|
|
73
|
-
toolbarAriaLabel?: string;
|
|
74
|
-
searchPlaceholder?: string;
|
|
75
|
-
searchButtonText?: string;
|
|
76
|
-
selectedText?: string;
|
|
77
|
-
selectedItemsText?: string;
|
|
78
|
-
/** Column-settings panel title / trigger label */
|
|
79
|
-
columnSettingsText?: string;
|
|
80
|
-
/** Aria label for the column-settings trigger button */
|
|
81
|
-
columnSettingsAriaLabel?: string;
|
|
82
|
-
/** Lock-column button aria-label. Template: supports {column} */
|
|
83
|
-
lockColumnAriaLabel?: string;
|
|
84
|
-
/** Unlock-column button aria-label. Template: supports {column} */
|
|
85
|
-
unlockColumnAriaLabel?: string;
|
|
86
|
-
}
|
|
87
|
-
interface TigerLocaleFormWizard {
|
|
88
|
-
prevText?: string;
|
|
89
|
-
nextText?: string;
|
|
90
|
-
finishText?: string;
|
|
91
|
-
}
|
|
92
|
-
interface TigerLocaleTaskBoard {
|
|
93
|
-
/** Placeholder shown inside an empty column */
|
|
94
|
-
emptyColumnText?: string;
|
|
95
|
-
/** Label for the add-card button */
|
|
96
|
-
addCardText?: string;
|
|
97
|
-
/** Template: supports {limit} */
|
|
98
|
-
wipLimitText?: string;
|
|
99
|
-
/** Aria hint for draggable items */
|
|
100
|
-
dragHintText?: string;
|
|
101
|
-
/** Aria label for the board root region */
|
|
102
|
-
boardAriaLabel?: string;
|
|
103
|
-
}
|
|
104
|
-
interface TigerLocale {
|
|
105
|
-
/** BCP 47 locale identifier, for Intl formatting and direction inference. */
|
|
106
|
-
locale?: string;
|
|
107
|
-
/** Text/layout direction. RTL locales should set this to `rtl`. */
|
|
108
|
-
direction?: TigerLocaleDirection;
|
|
109
|
-
common?: TigerLocaleCommon;
|
|
110
|
-
modal?: TigerLocaleModal;
|
|
111
|
-
drawer?: TigerLocaleDrawer;
|
|
112
|
-
upload?: TigerLocaleUpload;
|
|
113
|
-
pagination?: TigerLocalePagination;
|
|
114
|
-
table?: TigerLocaleTable;
|
|
115
|
-
datePicker?: Partial<DatePickerLocalePreset>;
|
|
116
|
-
formWizard?: TigerLocaleFormWizard;
|
|
117
|
-
taskBoard?: TigerLocaleTaskBoard;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Flat custom-text overlay for single-language projects that do not need i18n.
|
|
121
|
-
*
|
|
122
|
-
* Same shape as `TigerLocale` but without the `locale` code / `direction`
|
|
123
|
-
* fields — it carries only the component text. Pass it to
|
|
124
|
-
* `<ConfigProvider locale={defineText({...})} />` for app-wide custom text, or
|
|
125
|
-
* to a component's `labels` prop for a one-off override. No locale data files
|
|
126
|
-
* are pulled in, so the bundle stays small.
|
|
127
|
-
*/
|
|
128
|
-
type TigerText = Omit<Partial<TigerLocale>, 'locale' | 'direction'>;
|
|
129
|
-
type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
130
|
-
default?: Partial<TigerLocale>;
|
|
131
|
-
} | Record<string, unknown>;
|
|
132
|
-
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
133
|
-
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
134
|
-
|
|
135
|
-
export type { TigerLocale as T, TigerLocaleInput as a, TigerLocaleLazyModule as b, TigerLocaleLoader as c, TigerLocaleDirection as d, TigerLocalePagination as e, TigerLocaleFormWizard as f, TigerLocaleTable as g, TigerLocaleTaskBoard as h, TigerText as i, TigerLocaleDrawer as j, TigerLocaleModal as k, TigerLocaleCommon as l, TigerLocaleUpload as m };
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { D as DatePickerLocalePreset } from './datepicker-DXzS_8l8.cjs';
|
|
2
|
-
|
|
3
|
-
type TigerLocaleDirection = 'ltr' | 'rtl';
|
|
4
|
-
interface TigerLocaleCommon {
|
|
5
|
-
okText?: string;
|
|
6
|
-
cancelText?: string;
|
|
7
|
-
closeText?: string;
|
|
8
|
-
loadingText?: string;
|
|
9
|
-
emptyText?: string;
|
|
10
|
-
}
|
|
11
|
-
interface TigerLocaleModal {
|
|
12
|
-
closeAriaLabel?: string;
|
|
13
|
-
okText?: string;
|
|
14
|
-
cancelText?: string;
|
|
15
|
-
}
|
|
16
|
-
interface TigerLocaleDrawer {
|
|
17
|
-
closeAriaLabel?: string;
|
|
18
|
-
}
|
|
19
|
-
interface TigerLocaleUpload {
|
|
20
|
-
/** Drag area aria-label */
|
|
21
|
-
dragAreaAriaLabel?: string;
|
|
22
|
-
/** Upload button aria-label (non-drag mode) */
|
|
23
|
-
buttonAriaLabel?: string;
|
|
24
|
-
/** Main drag-area instruction (emphasized part) */
|
|
25
|
-
clickToUploadText?: string;
|
|
26
|
-
/** Secondary drag-area instruction */
|
|
27
|
-
dragAndDropText?: string;
|
|
28
|
-
/** Template: supports {accept} */
|
|
29
|
-
acceptInfoText?: string;
|
|
30
|
-
/** Template: supports {maxSize} */
|
|
31
|
-
maxSizeInfoText?: string;
|
|
32
|
-
/** Default non-drag button text */
|
|
33
|
-
selectFileText?: string;
|
|
34
|
-
/** File list aria-label */
|
|
35
|
-
uploadedFilesAriaLabel?: string;
|
|
36
|
-
/** Status aria-labels */
|
|
37
|
-
successAriaLabel?: string;
|
|
38
|
-
errorAriaLabel?: string;
|
|
39
|
-
uploadingAriaLabel?: string;
|
|
40
|
-
/** Templates: support {fileName} */
|
|
41
|
-
removeFileAriaLabel?: string;
|
|
42
|
-
previewFileAriaLabel?: string;
|
|
43
|
-
}
|
|
44
|
-
interface TigerLocalePagination {
|
|
45
|
-
/** Total text template: supports {total}, {start}, {end} */
|
|
46
|
-
totalText?: string;
|
|
47
|
-
/** Items per page text */
|
|
48
|
-
itemsPerPageText?: string;
|
|
49
|
-
/** Quick jumper label */
|
|
50
|
-
jumpToText?: string;
|
|
51
|
-
/** Page text (after number) */
|
|
52
|
-
pageText?: string;
|
|
53
|
-
/** Previous page button aria-label */
|
|
54
|
-
prevPageAriaLabel?: string;
|
|
55
|
-
/** Next page button aria-label */
|
|
56
|
-
nextPageAriaLabel?: string;
|
|
57
|
-
/** Page button aria-label template: supports {page} */
|
|
58
|
-
pageAriaLabel?: string;
|
|
59
|
-
/** Simple pagination page indicator template: supports {current}, {total} */
|
|
60
|
-
pageIndicatorText?: string;
|
|
61
|
-
}
|
|
62
|
-
interface TigerLocaleTable {
|
|
63
|
-
emptyText?: string;
|
|
64
|
-
loadingText?: string;
|
|
65
|
-
expandText?: string;
|
|
66
|
-
collapseText?: string;
|
|
67
|
-
selectAllText?: string;
|
|
68
|
-
/** Template: supports {row} */
|
|
69
|
-
selectRowAriaLabel?: string;
|
|
70
|
-
/** Template: supports {column} */
|
|
71
|
-
sortByText?: string;
|
|
72
|
-
clearSortText?: string;
|
|
73
|
-
toolbarAriaLabel?: string;
|
|
74
|
-
searchPlaceholder?: string;
|
|
75
|
-
searchButtonText?: string;
|
|
76
|
-
selectedText?: string;
|
|
77
|
-
selectedItemsText?: string;
|
|
78
|
-
/** Column-settings panel title / trigger label */
|
|
79
|
-
columnSettingsText?: string;
|
|
80
|
-
/** Aria label for the column-settings trigger button */
|
|
81
|
-
columnSettingsAriaLabel?: string;
|
|
82
|
-
/** Lock-column button aria-label. Template: supports {column} */
|
|
83
|
-
lockColumnAriaLabel?: string;
|
|
84
|
-
/** Unlock-column button aria-label. Template: supports {column} */
|
|
85
|
-
unlockColumnAriaLabel?: string;
|
|
86
|
-
}
|
|
87
|
-
interface TigerLocaleFormWizard {
|
|
88
|
-
prevText?: string;
|
|
89
|
-
nextText?: string;
|
|
90
|
-
finishText?: string;
|
|
91
|
-
}
|
|
92
|
-
interface TigerLocaleTaskBoard {
|
|
93
|
-
/** Placeholder shown inside an empty column */
|
|
94
|
-
emptyColumnText?: string;
|
|
95
|
-
/** Label for the add-card button */
|
|
96
|
-
addCardText?: string;
|
|
97
|
-
/** Template: supports {limit} */
|
|
98
|
-
wipLimitText?: string;
|
|
99
|
-
/** Aria hint for draggable items */
|
|
100
|
-
dragHintText?: string;
|
|
101
|
-
/** Aria label for the board root region */
|
|
102
|
-
boardAriaLabel?: string;
|
|
103
|
-
}
|
|
104
|
-
interface TigerLocale {
|
|
105
|
-
/** BCP 47 locale identifier, for Intl formatting and direction inference. */
|
|
106
|
-
locale?: string;
|
|
107
|
-
/** Text/layout direction. RTL locales should set this to `rtl`. */
|
|
108
|
-
direction?: TigerLocaleDirection;
|
|
109
|
-
common?: TigerLocaleCommon;
|
|
110
|
-
modal?: TigerLocaleModal;
|
|
111
|
-
drawer?: TigerLocaleDrawer;
|
|
112
|
-
upload?: TigerLocaleUpload;
|
|
113
|
-
pagination?: TigerLocalePagination;
|
|
114
|
-
table?: TigerLocaleTable;
|
|
115
|
-
datePicker?: Partial<DatePickerLocalePreset>;
|
|
116
|
-
formWizard?: TigerLocaleFormWizard;
|
|
117
|
-
taskBoard?: TigerLocaleTaskBoard;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Flat custom-text overlay for single-language projects that do not need i18n.
|
|
121
|
-
*
|
|
122
|
-
* Same shape as `TigerLocale` but without the `locale` code / `direction`
|
|
123
|
-
* fields — it carries only the component text. Pass it to
|
|
124
|
-
* `<ConfigProvider locale={defineText({...})} />` for app-wide custom text, or
|
|
125
|
-
* to a component's `labels` prop for a one-off override. No locale data files
|
|
126
|
-
* are pulled in, so the bundle stays small.
|
|
127
|
-
*/
|
|
128
|
-
type TigerText = Omit<Partial<TigerLocale>, 'locale' | 'direction'>;
|
|
129
|
-
type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
130
|
-
default?: Partial<TigerLocale>;
|
|
131
|
-
} | Record<string, unknown>;
|
|
132
|
-
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
133
|
-
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
134
|
-
|
|
135
|
-
export type { TigerLocale as T, TigerLocaleInput as a, TigerLocaleLazyModule as b, TigerLocaleLoader as c, TigerLocaleDirection as d, TigerLocalePagination as e, TigerLocaleFormWizard as f, TigerLocaleTable as g, TigerLocaleTaskBoard as h, TigerText as i, TigerLocaleDrawer as j, TigerLocaleModal as k, TigerLocaleCommon as l, TigerLocaleUpload as m };
|