@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.
Files changed (109) 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/icons/registry.cjs +1 -3
  30. package/dist/icons/registry.js +1 -3
  31. package/dist/index.cjs +2094 -715
  32. package/dist/index.d.cts +811 -319
  33. package/dist/index.d.ts +811 -319
  34. package/dist/index.js +2023 -712
  35. package/dist/locale-BTAo7XO1.d.cts +392 -0
  36. package/dist/locale-hhhI2kH6.d.ts +392 -0
  37. package/dist/locales/ar-SA.cjs +357 -4
  38. package/dist/locales/ar-SA.d.cts +2 -2
  39. package/dist/locales/ar-SA.d.ts +2 -2
  40. package/dist/locales/ar-SA.js +357 -4
  41. package/dist/locales/de-DE.cjs +357 -4
  42. package/dist/locales/de-DE.d.cts +2 -2
  43. package/dist/locales/de-DE.d.ts +2 -2
  44. package/dist/locales/de-DE.js +357 -4
  45. package/dist/locales/en-US.cjs +159 -2
  46. package/dist/locales/en-US.d.cts +2 -2
  47. package/dist/locales/en-US.d.ts +2 -2
  48. package/dist/locales/en-US.js +157 -2
  49. package/dist/locales/es-ES.cjs +357 -4
  50. package/dist/locales/es-ES.d.cts +2 -2
  51. package/dist/locales/es-ES.d.ts +2 -2
  52. package/dist/locales/es-ES.js +357 -4
  53. package/dist/locales/fr-FR.cjs +357 -4
  54. package/dist/locales/fr-FR.d.cts +2 -2
  55. package/dist/locales/fr-FR.d.ts +2 -2
  56. package/dist/locales/fr-FR.js +357 -4
  57. package/dist/locales/id-ID.cjs +445 -3
  58. package/dist/locales/id-ID.d.cts +2 -2
  59. package/dist/locales/id-ID.d.ts +2 -2
  60. package/dist/locales/id-ID.js +443 -3
  61. package/dist/locales/ja-JP.cjs +445 -3
  62. package/dist/locales/ja-JP.d.cts +2 -2
  63. package/dist/locales/ja-JP.d.ts +2 -2
  64. package/dist/locales/ja-JP.js +443 -3
  65. package/dist/locales/ko-KR.cjs +445 -3
  66. package/dist/locales/ko-KR.d.cts +2 -2
  67. package/dist/locales/ko-KR.d.ts +2 -2
  68. package/dist/locales/ko-KR.js +443 -3
  69. package/dist/locales/pt-BR.cjs +357 -4
  70. package/dist/locales/pt-BR.d.cts +2 -2
  71. package/dist/locales/pt-BR.d.ts +2 -2
  72. package/dist/locales/pt-BR.js +357 -4
  73. package/dist/locales/th-TH.cjs +445 -3
  74. package/dist/locales/th-TH.d.cts +2 -2
  75. package/dist/locales/th-TH.d.ts +2 -2
  76. package/dist/locales/th-TH.js +443 -3
  77. package/dist/locales/vi-VN.cjs +445 -3
  78. package/dist/locales/vi-VN.d.cts +2 -2
  79. package/dist/locales/vi-VN.d.ts +2 -2
  80. package/dist/locales/vi-VN.js +443 -3
  81. package/dist/locales/zh-CN.cjs +159 -2
  82. package/dist/locales/zh-CN.d.cts +2 -2
  83. package/dist/locales/zh-CN.d.ts +2 -2
  84. package/dist/locales/zh-CN.js +157 -2
  85. package/dist/locales/zh-TW.cjs +445 -3
  86. package/dist/locales/zh-TW.d.cts +2 -2
  87. package/dist/locales/zh-TW.d.ts +2 -2
  88. package/dist/locales/zh-TW.js +443 -3
  89. package/dist/{table-export-CZ7wtGf4.d.ts → table-export-CfdzU6Y5.d.ts} +2 -2
  90. package/dist/{table-export-DOqFkseW.d.cts → table-export-vfyBzKui.d.cts} +2 -2
  91. package/dist/tailwind/modern.cjs +76 -81
  92. package/dist/tailwind/modern.d.cts +2 -3
  93. package/dist/tailwind/modern.d.ts +2 -3
  94. package/dist/tailwind/modern.js +76 -81
  95. package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.cts} +7 -41
  96. package/dist/{tailwind-entry-DUchHtjs.d.cts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
  97. package/dist/tailwind.cjs +123 -70
  98. package/dist/tailwind.d.cts +2 -3
  99. package/dist/tailwind.d.ts +2 -3
  100. package/dist/tailwind.js +123 -70
  101. package/dist/utils/table-export.cjs +7 -0
  102. package/dist/utils/table-export.d.cts +3 -3
  103. package/dist/utils/table-export.d.ts +3 -3
  104. package/dist/utils/table-export.js +7 -0
  105. package/package.json +5 -12
  106. package/dist/locale-BuZwW3Ok.d.ts +0 -135
  107. package/dist/locale-DDFn0b6z.d.cts +0 -135
  108. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
  109. 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)"
@@ -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-DOqFkseW.cjs';
2
- import '../locale-DDFn0b6z.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-CZ7wtGf4.js';
2
- import '../locale-BuZwW3Ok.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';
@@ -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.4",
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.mjs",
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.2.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 };