@expcat/tigercat-core 1.3.3 → 1.4.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/icons/registry.cjs +1 -3
- package/dist/icons/registry.js +1 -3
- package/dist/index.cjs +562 -197
- package/dist/index.d.cts +370 -268
- package/dist/index.d.ts +370 -268
- package/dist/index.js +543 -196
- package/dist/locale-9tTj1QdZ.d.ts +300 -0
- package/dist/locale-DxwhmqfF.d.cts +300 -0
- package/dist/locales/ar-SA.cjs +67 -4
- package/dist/locales/ar-SA.d.cts +1 -1
- package/dist/locales/ar-SA.d.ts +1 -1
- package/dist/locales/ar-SA.js +67 -4
- package/dist/locales/de-DE.cjs +67 -4
- package/dist/locales/de-DE.d.cts +1 -1
- package/dist/locales/de-DE.d.ts +1 -1
- package/dist/locales/de-DE.js +67 -4
- package/dist/locales/en-US.cjs +64 -2
- package/dist/locales/en-US.d.cts +1 -1
- package/dist/locales/en-US.d.ts +1 -1
- package/dist/locales/en-US.js +62 -2
- package/dist/locales/es-ES.cjs +67 -4
- package/dist/locales/es-ES.d.cts +1 -1
- package/dist/locales/es-ES.d.ts +1 -1
- package/dist/locales/es-ES.js +67 -4
- package/dist/locales/fr-FR.cjs +67 -4
- package/dist/locales/fr-FR.d.cts +1 -1
- package/dist/locales/fr-FR.d.ts +1 -1
- package/dist/locales/fr-FR.js +67 -4
- package/dist/locales/id-ID.cjs +5 -2
- package/dist/locales/id-ID.d.cts +1 -1
- package/dist/locales/id-ID.d.ts +1 -1
- package/dist/locales/id-ID.js +5 -2
- package/dist/locales/ja-JP.cjs +5 -2
- package/dist/locales/ja-JP.d.cts +1 -1
- package/dist/locales/ja-JP.d.ts +1 -1
- package/dist/locales/ja-JP.js +5 -2
- package/dist/locales/ko-KR.cjs +5 -2
- package/dist/locales/ko-KR.d.cts +1 -1
- package/dist/locales/ko-KR.d.ts +1 -1
- package/dist/locales/ko-KR.js +5 -2
- package/dist/locales/pt-BR.cjs +67 -4
- package/dist/locales/pt-BR.d.cts +1 -1
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/pt-BR.js +67 -4
- package/dist/locales/th-TH.cjs +5 -2
- package/dist/locales/th-TH.d.cts +1 -1
- package/dist/locales/th-TH.d.ts +1 -1
- package/dist/locales/th-TH.js +5 -2
- package/dist/locales/vi-VN.cjs +5 -2
- package/dist/locales/vi-VN.d.cts +1 -1
- package/dist/locales/vi-VN.d.ts +1 -1
- package/dist/locales/vi-VN.js +5 -2
- package/dist/locales/zh-CN.cjs +64 -2
- package/dist/locales/zh-CN.d.cts +1 -1
- package/dist/locales/zh-CN.d.ts +1 -1
- package/dist/locales/zh-CN.js +62 -2
- package/dist/locales/zh-TW.cjs +5 -2
- package/dist/locales/zh-TW.d.cts +1 -1
- package/dist/locales/zh-TW.d.ts +1 -1
- package/dist/locales/zh-TW.js +5 -2
- package/dist/{table-export-CwJR6vfP.d.cts → table-export-BMBH75rj.d.cts} +2 -2
- package/dist/{table-export-B4VAha5n.d.ts → table-export-GRimhvlM.d.ts} +2 -2
- package/dist/tailwind/modern.cjs +1 -1
- package/dist/tailwind/modern.js +1 -1
- package/dist/utils/table-export.cjs +7 -0
- package/dist/utils/table-export.d.cts +2 -2
- package/dist/utils/table-export.d.ts +2 -2
- package/dist/utils/table-export.js +7 -0
- package/package.json +2 -10
- package/tokens/tailwind-tokens.js +3 -6
- package/tokens/tokens.css +15 -30
- package/dist/locale-BRmojkDM.d.cts +0 -131
- package/dist/locale-BxSSFEo2.d.ts +0 -131
package/dist/locales/zh-TW.cjs
CHANGED
|
@@ -31,7 +31,8 @@ var zhTW = {
|
|
|
31
31
|
cancelText: "\u53D6\u6D88",
|
|
32
32
|
closeText: "\u95DC\u9589",
|
|
33
33
|
loadingText: "\u8F09\u5165\u4E2D...",
|
|
34
|
-
emptyText: "\u66AB\u7121\u8CC7\u6599"
|
|
34
|
+
emptyText: "\u66AB\u7121\u8CC7\u6599",
|
|
35
|
+
noMoreText: "\u6C92\u6709\u66F4\u591A\u4E86"
|
|
35
36
|
},
|
|
36
37
|
modal: {
|
|
37
38
|
closeAriaLabel: "\u95DC\u9589",
|
|
@@ -66,7 +67,9 @@ var zhTW = {
|
|
|
66
67
|
selectedText: "\u5DF2\u9078\u64C7",
|
|
67
68
|
selectedItemsText: "\u7B46",
|
|
68
69
|
columnSettingsText: "\u6B04\u4F4D\u8A2D\u5B9A",
|
|
69
|
-
columnSettingsAriaLabel: "\u6B04\u4F4D\u8A2D\u5B9A"
|
|
70
|
+
columnSettingsAriaLabel: "\u6B04\u4F4D\u8A2D\u5B9A",
|
|
71
|
+
lockColumnAriaLabel: "\u9396\u5B9A{column}\u6B04",
|
|
72
|
+
unlockColumnAriaLabel: "\u53D6\u6D88\u9396\u5B9A{column}\u6B04"
|
|
70
73
|
},
|
|
71
74
|
formWizard: {
|
|
72
75
|
prevText: "\u4E0A\u4E00\u6B65",
|
package/dist/locales/zh-TW.d.cts
CHANGED
package/dist/locales/zh-TW.d.ts
CHANGED
package/dist/locales/zh-TW.js
CHANGED
|
@@ -7,7 +7,8 @@ var zhTW = {
|
|
|
7
7
|
cancelText: "\u53D6\u6D88",
|
|
8
8
|
closeText: "\u95DC\u9589",
|
|
9
9
|
loadingText: "\u8F09\u5165\u4E2D...",
|
|
10
|
-
emptyText: "\u66AB\u7121\u8CC7\u6599"
|
|
10
|
+
emptyText: "\u66AB\u7121\u8CC7\u6599",
|
|
11
|
+
noMoreText: "\u6C92\u6709\u66F4\u591A\u4E86"
|
|
11
12
|
},
|
|
12
13
|
modal: {
|
|
13
14
|
closeAriaLabel: "\u95DC\u9589",
|
|
@@ -42,7 +43,9 @@ var zhTW = {
|
|
|
42
43
|
selectedText: "\u5DF2\u9078\u64C7",
|
|
43
44
|
selectedItemsText: "\u7B46",
|
|
44
45
|
columnSettingsText: "\u6B04\u4F4D\u8A2D\u5B9A",
|
|
45
|
-
columnSettingsAriaLabel: "\u6B04\u4F4D\u8A2D\u5B9A"
|
|
46
|
+
columnSettingsAriaLabel: "\u6B04\u4F4D\u8A2D\u5B9A",
|
|
47
|
+
lockColumnAriaLabel: "\u9396\u5B9A{column}\u6B04",
|
|
48
|
+
unlockColumnAriaLabel: "\u53D6\u6D88\u9396\u5B9A{column}\u6B04"
|
|
46
49
|
},
|
|
47
50
|
formWizard: {
|
|
48
51
|
prevText: "\u4E0A\u4E00\u6B65",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TigerLocaleInput, e as TigerLocalePagination, g as TigerLocaleTable } from './locale-
|
|
1
|
+
import { a as TigerLocaleInput, e as TigerLocalePagination, g as TigerLocaleTable } from './locale-DxwhmqfF.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Pagination component types and interfaces
|
|
@@ -605,7 +605,7 @@ interface TableProps<T = Record<string, unknown>> {
|
|
|
605
605
|
columns: TableColumn<T>[];
|
|
606
606
|
/**
|
|
607
607
|
* Whether to show a lock button in each column header.
|
|
608
|
-
* Clicking the lock toggles the column fixed
|
|
608
|
+
* Clicking the lock toggles the column into the compact left fixed area.
|
|
609
609
|
* @default false
|
|
610
610
|
*/
|
|
611
611
|
columnLockable?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TigerLocaleInput, e as TigerLocalePagination, g as TigerLocaleTable } from './locale-
|
|
1
|
+
import { a as TigerLocaleInput, e as TigerLocalePagination, g as TigerLocaleTable } from './locale-9tTj1QdZ.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Pagination component types and interfaces
|
|
@@ -605,7 +605,7 @@ interface TableProps<T = Record<string, unknown>> {
|
|
|
605
605
|
columns: TableColumn<T>[];
|
|
606
606
|
/**
|
|
607
607
|
* Whether to show a lock button in each column header.
|
|
608
|
-
* Clicking the lock toggles the column fixed
|
|
608
|
+
* Clicking the lock toggles the column into the compact left fixed area.
|
|
609
609
|
* @default false
|
|
610
610
|
*/
|
|
611
611
|
columnLockable?: boolean;
|
package/dist/tailwind/modern.cjs
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(tailwind_entry_modern_exports);
|
|
|
37
37
|
// src/tailwind-plugin.ts
|
|
38
38
|
var import_plugin = __toESM(require("tailwindcss/plugin"), 1);
|
|
39
39
|
|
|
40
|
-
// src/theme/index.ts
|
|
40
|
+
// src/theme-runtime/index.ts
|
|
41
41
|
var THEME_CSS_VARS = {
|
|
42
42
|
// Primary colors
|
|
43
43
|
primary: "--tiger-primary",
|
package/dist/tailwind/modern.js
CHANGED
|
@@ -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 { o as downloadCsv, p as downloadExcel, r as downloadTableExport, q as exportTableData, m as exportTableToCsv, n as exportTableToExcel, t as tableExportButtonClasses } from '../table-export-
|
|
2
|
-
import '../locale-
|
|
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
3
|
import '../datepicker-DXzS_8l8.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-
|
|
2
|
-
import '../locale-
|
|
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
3
|
import '../datepicker-DXzS_8l8.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.4.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",
|
|
@@ -109,12 +109,9 @@ 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-
|
|
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)'
|
|
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)'
|
|
118
115
|
},
|
|
119
116
|
fontFamily: {
|
|
120
117
|
'tiger-base': [
|
package/tokens/tokens.css
CHANGED
|
@@ -89,17 +89,14 @@
|
|
|
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
|
-
|
|
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);
|
|
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);
|
|
96
94
|
--tiger-primitive-shadow-lg:
|
|
97
95
|
0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
98
96
|
--tiger-primitive-shadow-xl:
|
|
99
97
|
0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
100
98
|
--tiger-primitive-font-family-base:
|
|
101
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
102
|
-
Arial, sans-serif;
|
|
99
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
103
100
|
--tiger-primitive-font-family-mono:
|
|
104
101
|
'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
105
102
|
--tiger-primitive-font-size-xs: 12px;
|
|
@@ -224,8 +221,7 @@
|
|
|
224
221
|
--tiger-component-drawer-width-xl: 680px;
|
|
225
222
|
--tiger-component-card-border-radius: 12px;
|
|
226
223
|
--tiger-component-card-padding: 24px;
|
|
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);
|
|
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);
|
|
229
225
|
--tiger-component-card-border-color: #e5e5e5;
|
|
230
226
|
--tiger-component-badge-font-size: 12px;
|
|
231
227
|
--tiger-component-badge-font-weight: 500;
|
|
@@ -408,17 +404,12 @@
|
|
|
408
404
|
--tiger-radius-xl: 12px;
|
|
409
405
|
--tiger-radius-full: 9999px;
|
|
410
406
|
--tiger-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
411
|
-
--tiger-shadow-sm:
|
|
412
|
-
|
|
413
|
-
--tiger-shadow-
|
|
414
|
-
|
|
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);
|
|
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);
|
|
419
411
|
--tiger-font-family-base:
|
|
420
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
421
|
-
Arial, sans-serif;
|
|
412
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
422
413
|
--tiger-font-family-mono:
|
|
423
414
|
'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
424
415
|
--tiger-font-size-xs: 12px;
|
|
@@ -518,8 +509,7 @@
|
|
|
518
509
|
--tiger-select-option-padding-x: 16px;
|
|
519
510
|
--tiger-modal-border-radius: 12px;
|
|
520
511
|
--tiger-modal-padding: 24px;
|
|
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);
|
|
512
|
+
--tiger-modal-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
523
513
|
--tiger-modal-header-font-size: 18px;
|
|
524
514
|
--tiger-modal-header-font-weight: 600;
|
|
525
515
|
--tiger-modal-overlay-bg: rgba(0, 0, 0, 0.45);
|
|
@@ -528,8 +518,7 @@
|
|
|
528
518
|
--tiger-modal-width-lg: 680px;
|
|
529
519
|
--tiger-modal-width-xl: 860px;
|
|
530
520
|
--tiger-drawer-padding: 24px;
|
|
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);
|
|
521
|
+
--tiger-drawer-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
533
522
|
--tiger-drawer-header-font-size: 18px;
|
|
534
523
|
--tiger-drawer-header-font-weight: 600;
|
|
535
524
|
--tiger-drawer-overlay-bg: rgba(0, 0, 0, 0.45);
|
|
@@ -539,8 +528,7 @@
|
|
|
539
528
|
--tiger-drawer-width-xl: 680px;
|
|
540
529
|
--tiger-card-border-radius: 12px;
|
|
541
530
|
--tiger-card-padding: 24px;
|
|
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);
|
|
531
|
+
--tiger-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
544
532
|
--tiger-card-border-color: #e5e5e5;
|
|
545
533
|
--tiger-badge-font-size: 12px;
|
|
546
534
|
--tiger-badge-font-weight: 500;
|
|
@@ -570,8 +558,7 @@
|
|
|
570
558
|
--tiger-tooltip-padding-x: 8px;
|
|
571
559
|
--tiger-tooltip-padding-y: 4px;
|
|
572
560
|
--tiger-tooltip-border-radius: 8px;
|
|
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);
|
|
561
|
+
--tiger-tooltip-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
575
562
|
--tiger-tooltip-max-width: 280px;
|
|
576
563
|
--tiger-alert-border-radius: 8px;
|
|
577
564
|
--tiger-alert-padding-x: 16px;
|
|
@@ -617,8 +604,7 @@
|
|
|
617
604
|
--tiger-dropdown-item-height: 36px;
|
|
618
605
|
--tiger-dropdown-item-padding-x: 16px;
|
|
619
606
|
--tiger-dropdown-border-radius: 12px;
|
|
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);
|
|
607
|
+
--tiger-dropdown-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
622
608
|
--tiger-menu-item-height: 40px;
|
|
623
609
|
--tiger-menu-item-padding-x: 16px;
|
|
624
610
|
--tiger-menu-group-title-padding: 8px;
|
|
@@ -633,8 +619,7 @@
|
|
|
633
619
|
--tiger-notification-title-font-weight: 500;
|
|
634
620
|
--tiger-popover-padding: 16px;
|
|
635
621
|
--tiger-popover-border-radius: 12px;
|
|
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);
|
|
622
|
+
--tiger-popover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
638
623
|
--tiger-popover-max-width: 320px;
|
|
639
624
|
|
|
640
625
|
/* Legacy variables (backward-compat with pre-0.5.0) */
|
|
@@ -1,131 +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
|
-
}
|
|
83
|
-
interface TigerLocaleFormWizard {
|
|
84
|
-
prevText?: string;
|
|
85
|
-
nextText?: string;
|
|
86
|
-
finishText?: string;
|
|
87
|
-
}
|
|
88
|
-
interface TigerLocaleTaskBoard {
|
|
89
|
-
/** Placeholder shown inside an empty column */
|
|
90
|
-
emptyColumnText?: string;
|
|
91
|
-
/** Label for the add-card button */
|
|
92
|
-
addCardText?: string;
|
|
93
|
-
/** Template: supports {limit} */
|
|
94
|
-
wipLimitText?: string;
|
|
95
|
-
/** Aria hint for draggable items */
|
|
96
|
-
dragHintText?: string;
|
|
97
|
-
/** Aria label for the board root region */
|
|
98
|
-
boardAriaLabel?: string;
|
|
99
|
-
}
|
|
100
|
-
interface TigerLocale {
|
|
101
|
-
/** BCP 47 locale identifier, for Intl formatting and direction inference. */
|
|
102
|
-
locale?: string;
|
|
103
|
-
/** Text/layout direction. RTL locales should set this to `rtl`. */
|
|
104
|
-
direction?: TigerLocaleDirection;
|
|
105
|
-
common?: TigerLocaleCommon;
|
|
106
|
-
modal?: TigerLocaleModal;
|
|
107
|
-
drawer?: TigerLocaleDrawer;
|
|
108
|
-
upload?: TigerLocaleUpload;
|
|
109
|
-
pagination?: TigerLocalePagination;
|
|
110
|
-
table?: TigerLocaleTable;
|
|
111
|
-
datePicker?: Partial<DatePickerLocalePreset>;
|
|
112
|
-
formWizard?: TigerLocaleFormWizard;
|
|
113
|
-
taskBoard?: TigerLocaleTaskBoard;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Flat custom-text overlay for single-language projects that do not need i18n.
|
|
117
|
-
*
|
|
118
|
-
* Same shape as `TigerLocale` but without the `locale` code / `direction`
|
|
119
|
-
* fields — it carries only the component text. Pass it to
|
|
120
|
-
* `<ConfigProvider locale={defineText({...})} />` for app-wide custom text, or
|
|
121
|
-
* to a component's `labels` prop for a one-off override. No locale data files
|
|
122
|
-
* are pulled in, so the bundle stays small.
|
|
123
|
-
*/
|
|
124
|
-
type TigerText = Omit<Partial<TigerLocale>, 'locale' | 'direction'>;
|
|
125
|
-
type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
126
|
-
default?: Partial<TigerLocale>;
|
|
127
|
-
} | Record<string, unknown>;
|
|
128
|
-
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
129
|
-
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
130
|
-
|
|
131
|
-
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,131 +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
|
-
}
|
|
83
|
-
interface TigerLocaleFormWizard {
|
|
84
|
-
prevText?: string;
|
|
85
|
-
nextText?: string;
|
|
86
|
-
finishText?: string;
|
|
87
|
-
}
|
|
88
|
-
interface TigerLocaleTaskBoard {
|
|
89
|
-
/** Placeholder shown inside an empty column */
|
|
90
|
-
emptyColumnText?: string;
|
|
91
|
-
/** Label for the add-card button */
|
|
92
|
-
addCardText?: string;
|
|
93
|
-
/** Template: supports {limit} */
|
|
94
|
-
wipLimitText?: string;
|
|
95
|
-
/** Aria hint for draggable items */
|
|
96
|
-
dragHintText?: string;
|
|
97
|
-
/** Aria label for the board root region */
|
|
98
|
-
boardAriaLabel?: string;
|
|
99
|
-
}
|
|
100
|
-
interface TigerLocale {
|
|
101
|
-
/** BCP 47 locale identifier, for Intl formatting and direction inference. */
|
|
102
|
-
locale?: string;
|
|
103
|
-
/** Text/layout direction. RTL locales should set this to `rtl`. */
|
|
104
|
-
direction?: TigerLocaleDirection;
|
|
105
|
-
common?: TigerLocaleCommon;
|
|
106
|
-
modal?: TigerLocaleModal;
|
|
107
|
-
drawer?: TigerLocaleDrawer;
|
|
108
|
-
upload?: TigerLocaleUpload;
|
|
109
|
-
pagination?: TigerLocalePagination;
|
|
110
|
-
table?: TigerLocaleTable;
|
|
111
|
-
datePicker?: Partial<DatePickerLocalePreset>;
|
|
112
|
-
formWizard?: TigerLocaleFormWizard;
|
|
113
|
-
taskBoard?: TigerLocaleTaskBoard;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Flat custom-text overlay for single-language projects that do not need i18n.
|
|
117
|
-
*
|
|
118
|
-
* Same shape as `TigerLocale` but without the `locale` code / `direction`
|
|
119
|
-
* fields — it carries only the component text. Pass it to
|
|
120
|
-
* `<ConfigProvider locale={defineText({...})} />` for app-wide custom text, or
|
|
121
|
-
* to a component's `labels` prop for a one-off override. No locale data files
|
|
122
|
-
* are pulled in, so the bundle stays small.
|
|
123
|
-
*/
|
|
124
|
-
type TigerText = Omit<Partial<TigerLocale>, 'locale' | 'direction'>;
|
|
125
|
-
type TigerLocaleLazyModule = Partial<TigerLocale> | {
|
|
126
|
-
default?: Partial<TigerLocale>;
|
|
127
|
-
} | Record<string, unknown>;
|
|
128
|
-
type TigerLocaleLoader = () => PromiseLike<TigerLocaleLazyModule>;
|
|
129
|
-
type TigerLocaleInput = Partial<TigerLocale> | PromiseLike<TigerLocaleLazyModule> | TigerLocaleLoader;
|
|
130
|
-
|
|
131
|
-
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 };
|