@expcat/tigercat-core 1.4.0 → 2.0.0-preview.1
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-ZdzYUqm5.d.ts} +77 -11
- package/dist/datepicker-locales/ar-SA.d.ts +1 -1
- package/dist/datepicker-locales/de-DE.d.ts +1 -1
- package/dist/datepicker-locales/en-US.d.ts +1 -1
- package/dist/datepicker-locales/es-ES.d.ts +1 -1
- package/dist/datepicker-locales/fr-FR.d.ts +1 -1
- package/dist/datepicker-locales/id-ID.d.ts +1 -1
- package/dist/datepicker-locales/ja-JP.d.ts +1 -1
- package/dist/datepicker-locales/ko-KR.d.ts +1 -1
- package/dist/datepicker-locales/pt-BR.d.ts +1 -1
- package/dist/datepicker-locales/registry.d.ts +7 -0
- package/dist/datepicker-locales/registry.js +224 -0
- package/dist/datepicker-locales/th-TH.d.ts +1 -1
- package/dist/datepicker-locales/vi-VN.d.ts +1 -1
- package/dist/datepicker-locales/zh-CN.d.ts +1 -1
- package/dist/datepicker-locales/zh-TW.d.ts +1 -1
- package/dist/icons/picker.d.ts +1 -13
- package/dist/icons/picker.js +0 -12
- package/dist/index.d.ts +12341 -12244
- package/dist/index.js +1482 -659
- package/dist/{locale-9tTj1QdZ.d.ts → locale-44p_QYnH.d.ts} +96 -7
- package/dist/locales/ar-SA.d.ts +2 -2
- package/dist/locales/ar-SA.js +122 -1
- package/dist/locales/de-DE.d.ts +2 -2
- package/dist/locales/de-DE.js +122 -1
- package/dist/locales/en-US.d.ts +2 -2
- package/dist/locales/en-US.js +98 -1
- package/dist/locales/es-ES.d.ts +2 -2
- package/dist/locales/es-ES.js +122 -1
- package/dist/locales/fr-FR.d.ts +2 -2
- package/dist/locales/fr-FR.js +122 -1
- package/dist/locales/id-ID.d.ts +2 -2
- package/dist/locales/id-ID.js +268 -2
- package/dist/locales/ja-JP.d.ts +2 -2
- package/dist/locales/ja-JP.js +268 -2
- package/dist/locales/ko-KR.d.ts +2 -2
- package/dist/locales/ko-KR.js +268 -2
- package/dist/locales/pt-BR.d.ts +2 -2
- package/dist/locales/pt-BR.js +122 -1
- package/dist/locales/th-TH.d.ts +2 -2
- package/dist/locales/th-TH.js +268 -2
- package/dist/locales/vi-VN.d.ts +2 -2
- package/dist/locales/vi-VN.js +268 -2
- package/dist/locales/zh-CN.d.ts +2 -2
- package/dist/locales/zh-CN.js +98 -1
- package/dist/locales/zh-TW.d.ts +2 -2
- package/dist/locales/zh-TW.js +268 -2
- package/dist/{table-export-GRimhvlM.d.ts → table-export-CzPmX1b6.d.ts} +3 -9
- 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.ts} +7 -41
- package/dist/tailwind.d.ts +2 -3
- package/dist/tailwind.js +123 -70
- package/dist/utils/table-export.d.ts +3 -3
- package/package.json +43 -73
- package/tokens/tailwind-tokens.js +6 -3
- package/tokens/tokens.css +8 -322
- package/dist/datepicker-DXzS_8l8.d.ts +0 -130
- package/dist/datepicker-locales/ar-SA.cjs +0 -46
- package/dist/datepicker-locales/ar-SA.d.cts +0 -6
- package/dist/datepicker-locales/de-DE.cjs +0 -46
- package/dist/datepicker-locales/de-DE.d.cts +0 -6
- package/dist/datepicker-locales/en-US.cjs +0 -46
- package/dist/datepicker-locales/en-US.d.cts +0 -6
- package/dist/datepicker-locales/es-ES.cjs +0 -46
- package/dist/datepicker-locales/es-ES.d.cts +0 -6
- package/dist/datepicker-locales/fr-FR.cjs +0 -46
- package/dist/datepicker-locales/fr-FR.d.cts +0 -6
- package/dist/datepicker-locales/id-ID.cjs +0 -46
- package/dist/datepicker-locales/id-ID.d.cts +0 -6
- package/dist/datepicker-locales/ja-JP.cjs +0 -46
- package/dist/datepicker-locales/ja-JP.d.cts +0 -6
- package/dist/datepicker-locales/ko-KR.cjs +0 -46
- package/dist/datepicker-locales/ko-KR.d.cts +0 -6
- package/dist/datepicker-locales/pt-BR.cjs +0 -46
- package/dist/datepicker-locales/pt-BR.d.cts +0 -6
- package/dist/datepicker-locales/th-TH.cjs +0 -46
- package/dist/datepicker-locales/th-TH.d.cts +0 -6
- package/dist/datepicker-locales/vi-VN.cjs +0 -46
- package/dist/datepicker-locales/vi-VN.d.cts +0 -6
- package/dist/datepicker-locales/zh-CN.cjs +0 -46
- package/dist/datepicker-locales/zh-CN.d.cts +0 -6
- package/dist/datepicker-locales/zh-TW.cjs +0 -46
- package/dist/datepicker-locales/zh-TW.d.cts +0 -6
- package/dist/icons/common.cjs +0 -54
- package/dist/icons/common.d.cts +0 -20
- package/dist/icons/picker.cjs +0 -75
- package/dist/icons/picker.d.cts +0 -53
- package/dist/icons/registry.cjs +0 -172
- package/dist/icons/registry.d.cts +0 -102
- package/dist/icons/status.cjs +0 -47
- package/dist/icons/status.d.cts +0 -13
- package/dist/icons/table.cjs +0 -48
- package/dist/icons/table.d.cts +0 -25
- package/dist/index.cjs +0 -21268
- package/dist/index.d.cts +0 -20129
- package/dist/locale-DxwhmqfF.d.cts +0 -300
- package/dist/locales/ar-SA.cjs +0 -254
- package/dist/locales/ar-SA.d.cts +0 -10
- package/dist/locales/de-DE.cjs +0 -254
- package/dist/locales/de-DE.d.cts +0 -10
- package/dist/locales/en-US.cjs +0 -149
- package/dist/locales/en-US.d.cts +0 -10
- package/dist/locales/es-ES.cjs +0 -254
- package/dist/locales/es-ES.d.cts +0 -10
- package/dist/locales/fr-FR.cjs +0 -254
- package/dist/locales/fr-FR.d.cts +0 -10
- package/dist/locales/id-ID.cjs +0 -90
- package/dist/locales/id-ID.d.cts +0 -10
- package/dist/locales/ja-JP.cjs +0 -90
- package/dist/locales/ja-JP.d.cts +0 -10
- package/dist/locales/ko-KR.cjs +0 -90
- package/dist/locales/ko-KR.d.cts +0 -10
- package/dist/locales/pt-BR.cjs +0 -254
- package/dist/locales/pt-BR.d.cts +0 -10
- package/dist/locales/th-TH.cjs +0 -90
- package/dist/locales/th-TH.d.cts +0 -10
- package/dist/locales/vi-VN.cjs +0 -90
- package/dist/locales/vi-VN.d.cts +0 -10
- package/dist/locales/zh-CN.cjs +0 -149
- package/dist/locales/zh-CN.d.cts +0 -10
- package/dist/locales/zh-TW.cjs +0 -90
- package/dist/locales/zh-TW.d.cts +0 -10
- package/dist/table-export-BMBH75rj.d.cts +0 -882
- package/dist/tailwind/modern.cjs +0 -368
- package/dist/tailwind/modern.d.cts +0 -6
- package/dist/tailwind-entry-DUchHtjs.d.cts +0 -218
- package/dist/tailwind.cjs +0 -221
- package/dist/tailwind.d.cts +0 -3
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
- package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
- package/dist/utils/table-export.cjs +0 -119
- package/dist/utils/table-export.d.cts +0 -3
package/dist/locales/zh-TW.js
CHANGED
|
@@ -1,7 +1,264 @@
|
|
|
1
|
+
// src/utils/locale-utils.ts
|
|
2
|
+
var DEFAULT_TIME_PICKER_LABELS = {
|
|
3
|
+
hour: "Hour",
|
|
4
|
+
minute: "Min",
|
|
5
|
+
second: "Sec",
|
|
6
|
+
now: "Now",
|
|
7
|
+
ok: "OK",
|
|
8
|
+
start: "Start",
|
|
9
|
+
end: "End",
|
|
10
|
+
clear: "Clear time",
|
|
11
|
+
toggle: "Toggle time picker",
|
|
12
|
+
dialog: "Time picker",
|
|
13
|
+
selectTime: "Select time",
|
|
14
|
+
selectTimeRange: "Select time range"
|
|
15
|
+
};
|
|
16
|
+
var DEFAULT_UPLOAD_LABELS = {
|
|
17
|
+
dragAreaAriaLabel: "Upload file by clicking or dragging",
|
|
18
|
+
buttonAriaLabel: "Upload file",
|
|
19
|
+
clickToUploadText: "Click to upload",
|
|
20
|
+
dragAndDropText: "or drag and drop",
|
|
21
|
+
acceptInfoText: "Accepted: {accept}",
|
|
22
|
+
maxSizeInfoText: "Max size: {maxSize}",
|
|
23
|
+
selectFileText: "Select File",
|
|
24
|
+
uploadedFilesAriaLabel: "Uploaded files",
|
|
25
|
+
successAriaLabel: "Success",
|
|
26
|
+
errorAriaLabel: "Error",
|
|
27
|
+
uploadingAriaLabel: "Uploading",
|
|
28
|
+
removeFileAriaLabel: "Remove {fileName}",
|
|
29
|
+
previewFileAriaLabel: "Preview {fileName}"
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/utils/i18n/datepicker-locales/en-US.ts
|
|
33
|
+
var EN_US_DATEPICKER_LOCALE = {
|
|
34
|
+
locale: "en-US",
|
|
35
|
+
labels: {
|
|
36
|
+
today: "Today",
|
|
37
|
+
ok: "OK",
|
|
38
|
+
calendar: "Calendar",
|
|
39
|
+
toggleCalendar: "Toggle calendar",
|
|
40
|
+
clearDate: "Clear date",
|
|
41
|
+
previousMonth: "Previous month",
|
|
42
|
+
nextMonth: "Next month"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// src/utils/i18n/locales/en-US.ts
|
|
47
|
+
var enUS = {
|
|
48
|
+
locale: "en-US",
|
|
49
|
+
direction: "ltr",
|
|
50
|
+
common: {
|
|
51
|
+
okText: "OK",
|
|
52
|
+
cancelText: "Cancel",
|
|
53
|
+
closeText: "Close",
|
|
54
|
+
loadingText: "Loading...",
|
|
55
|
+
emptyText: "No data",
|
|
56
|
+
noMoreText: "No more data",
|
|
57
|
+
searchPlaceholder: "Search",
|
|
58
|
+
clearText: "Clear"
|
|
59
|
+
},
|
|
60
|
+
empty: {
|
|
61
|
+
noData: "No data",
|
|
62
|
+
noDataAvailable: "No data available",
|
|
63
|
+
noResults: "No results found",
|
|
64
|
+
error: "Something went wrong"
|
|
65
|
+
},
|
|
66
|
+
modal: {
|
|
67
|
+
closeAriaLabel: "Close",
|
|
68
|
+
okText: "OK",
|
|
69
|
+
cancelText: "Cancel"
|
|
70
|
+
},
|
|
71
|
+
drawer: {
|
|
72
|
+
closeAriaLabel: "Close"
|
|
73
|
+
},
|
|
74
|
+
qrcode: {
|
|
75
|
+
ariaLabel: "QR Code",
|
|
76
|
+
expiredText: "QR code expired",
|
|
77
|
+
refreshText: "Refresh",
|
|
78
|
+
loadingText: "Loading..."
|
|
79
|
+
},
|
|
80
|
+
timeline: {
|
|
81
|
+
pendingText: "Loading..."
|
|
82
|
+
},
|
|
83
|
+
upload: DEFAULT_UPLOAD_LABELS,
|
|
84
|
+
pagination: {
|
|
85
|
+
totalText: "Total {total} items",
|
|
86
|
+
itemsPerPageText: "/ page",
|
|
87
|
+
jumpToText: "Go to",
|
|
88
|
+
pageText: "page",
|
|
89
|
+
prevPageAriaLabel: "Previous page",
|
|
90
|
+
nextPageAriaLabel: "Next page",
|
|
91
|
+
pageAriaLabel: "Page {page}",
|
|
92
|
+
pageIndicatorText: "Page {current} of {total}"
|
|
93
|
+
},
|
|
94
|
+
table: {
|
|
95
|
+
emptyText: "No data",
|
|
96
|
+
loadingText: "Loading",
|
|
97
|
+
expandText: "Expand",
|
|
98
|
+
collapseText: "Collapse",
|
|
99
|
+
selectAllText: "Select all",
|
|
100
|
+
selectRowAriaLabel: "Select row {row}",
|
|
101
|
+
sortByText: "Sort by {column}",
|
|
102
|
+
clearSortText: "Clear sort",
|
|
103
|
+
toolbarAriaLabel: "Data table toolbar",
|
|
104
|
+
searchPlaceholder: "Search",
|
|
105
|
+
searchButtonText: "Search",
|
|
106
|
+
selectedText: "Selected",
|
|
107
|
+
selectedItemsText: "items",
|
|
108
|
+
columnSettingsText: "Column settings",
|
|
109
|
+
columnSettingsAriaLabel: "Column settings",
|
|
110
|
+
lockColumnAriaLabel: "Lock column {column}",
|
|
111
|
+
unlockColumnAriaLabel: "Unlock column {column}",
|
|
112
|
+
allText: "All",
|
|
113
|
+
filterPlaceholder: "Filter...",
|
|
114
|
+
exportCsvText: "Export CSV",
|
|
115
|
+
exportExcelText: "Export Excel",
|
|
116
|
+
exportCsvAriaLabel: "Export to CSV",
|
|
117
|
+
exportExcelAriaLabel: "Export to Excel",
|
|
118
|
+
expandRowAriaLabel: "Expand row",
|
|
119
|
+
collapseRowAriaLabel: "Collapse row"
|
|
120
|
+
},
|
|
121
|
+
datePicker: EN_US_DATEPICKER_LOCALE,
|
|
122
|
+
timePicker: DEFAULT_TIME_PICKER_LABELS,
|
|
123
|
+
formWizard: {
|
|
124
|
+
prevText: "Previous",
|
|
125
|
+
nextText: "Next",
|
|
126
|
+
finishText: "Finish"
|
|
127
|
+
},
|
|
128
|
+
tour: {
|
|
129
|
+
prevText: "Previous",
|
|
130
|
+
nextText: "Next",
|
|
131
|
+
finishText: "Finish",
|
|
132
|
+
closeAriaLabel: "Close tour"
|
|
133
|
+
},
|
|
134
|
+
calendar: {
|
|
135
|
+
previousMonth: "Previous month",
|
|
136
|
+
nextMonth: "Next month",
|
|
137
|
+
previousYear: "Previous year",
|
|
138
|
+
nextYear: "Next year",
|
|
139
|
+
yearSelectAriaLabel: "Year",
|
|
140
|
+
monthSelectAriaLabel: "Month",
|
|
141
|
+
daySelectAriaLabel: "Day"
|
|
142
|
+
},
|
|
143
|
+
fileManager: {
|
|
144
|
+
rootText: "Root"
|
|
145
|
+
},
|
|
146
|
+
imageViewer: {
|
|
147
|
+
dialogAriaLabel: "Image viewer",
|
|
148
|
+
previewDialogAriaLabel: "Image preview",
|
|
149
|
+
closeAriaLabel: "Close",
|
|
150
|
+
closePreviewAriaLabel: "Close preview",
|
|
151
|
+
previousImageAriaLabel: "Previous image",
|
|
152
|
+
nextImageAriaLabel: "Next image",
|
|
153
|
+
zoomOutAriaLabel: "Zoom out",
|
|
154
|
+
resetAriaLabel: "Reset",
|
|
155
|
+
zoomInAriaLabel: "Zoom in",
|
|
156
|
+
rotateLeftAriaLabel: "Rotate left",
|
|
157
|
+
rotateRightAriaLabel: "Rotate right"
|
|
158
|
+
},
|
|
159
|
+
imageEditor: {
|
|
160
|
+
selectImageText: "Select image",
|
|
161
|
+
selectImageAriaLabel: "Select image to crop and upload",
|
|
162
|
+
cropModalTitle: "Crop image",
|
|
163
|
+
cropCancelText: "Cancel",
|
|
164
|
+
cropConfirmText: "Confirm crop",
|
|
165
|
+
cropperDialogAriaLabel: "Image cropper",
|
|
166
|
+
imageToCropAriaLabel: "Image to crop",
|
|
167
|
+
moveCropAreaAriaLabel: "Move crop area",
|
|
168
|
+
resizeCropAreaAriaLabel: "Resize crop area {handle}",
|
|
169
|
+
loadingCropImageAriaLabel: "Loading image for cropping",
|
|
170
|
+
annotationToolbarAriaLabel: "Annotation tools",
|
|
171
|
+
annotationEditorAriaLabel: "Image annotation editor",
|
|
172
|
+
annotationCanvasAriaLabel: "Image annotation canvas",
|
|
173
|
+
loadingAnnotationImageAriaLabel: "Loading image for annotation",
|
|
174
|
+
selectToolText: "Select",
|
|
175
|
+
rectangleToolText: "Rectangle",
|
|
176
|
+
ellipseToolText: "Ellipse",
|
|
177
|
+
polygonToolText: "Polygon",
|
|
178
|
+
freehandToolText: "Freehand",
|
|
179
|
+
deleteText: "Delete"
|
|
180
|
+
},
|
|
181
|
+
status: {
|
|
182
|
+
tagCloseAriaLabel: "Close tag",
|
|
183
|
+
badgeLabel: "notification",
|
|
184
|
+
badgeCountLabel: "{count} notifications"
|
|
185
|
+
},
|
|
186
|
+
taskBoard: {
|
|
187
|
+
emptyColumnText: "No tasks",
|
|
188
|
+
addCardText: "Add task",
|
|
189
|
+
addColumnText: "Add column",
|
|
190
|
+
wipLimitText: "WIP limit: {limit}",
|
|
191
|
+
dragHintText: "Drag to move",
|
|
192
|
+
boardAriaLabel: "Task Board"
|
|
193
|
+
},
|
|
194
|
+
formValidation: {
|
|
195
|
+
required: "This field is required",
|
|
196
|
+
typeString: "Value must be a string",
|
|
197
|
+
typeNumber: "Value must be a number",
|
|
198
|
+
typeBoolean: "Value must be a boolean",
|
|
199
|
+
typeArray: "Value must be an array",
|
|
200
|
+
typeObject: "Value must be an object",
|
|
201
|
+
email: "Please enter a valid email address",
|
|
202
|
+
phone: "Please enter a valid phone number",
|
|
203
|
+
url: "Please enter a valid URL",
|
|
204
|
+
date: "Please enter a valid date",
|
|
205
|
+
idCard: "Please enter a valid ID card number",
|
|
206
|
+
minLength: "Minimum length is {min} characters",
|
|
207
|
+
maxLength: "Maximum length is {max} characters",
|
|
208
|
+
minValue: "Minimum value is {min}",
|
|
209
|
+
maxValue: "Maximum value is {max}",
|
|
210
|
+
minItems: "Minimum {min} items required",
|
|
211
|
+
maxItems: "Maximum {max} items allowed",
|
|
212
|
+
patternMismatch: "Value does not match the required pattern",
|
|
213
|
+
validatorFailed: "Validation failed",
|
|
214
|
+
validatorError: "Validation error occurred"
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
// src/utils/i18n/define-locale.ts
|
|
219
|
+
function isPlainObject(value) {
|
|
220
|
+
if (value === null || typeof value !== "object") return false;
|
|
221
|
+
const proto = Object.getPrototypeOf(value);
|
|
222
|
+
return proto === Object.prototype || proto === null;
|
|
223
|
+
}
|
|
224
|
+
function deepMerge(base, override) {
|
|
225
|
+
if (!override) return { ...base };
|
|
226
|
+
const out = { ...base };
|
|
227
|
+
for (const key of Object.keys(override)) {
|
|
228
|
+
const next = override[key];
|
|
229
|
+
if (next === void 0) continue;
|
|
230
|
+
const prev = base[key];
|
|
231
|
+
if (isPlainObject(prev) && isPlainObject(next)) {
|
|
232
|
+
out[key] = deepMerge(prev, next);
|
|
233
|
+
} else {
|
|
234
|
+
out[key] = next;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return out;
|
|
238
|
+
}
|
|
239
|
+
function defineLocale(overrides = {}) {
|
|
240
|
+
return deepMerge(enUS, overrides);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// src/utils/i18n/datepicker-locales/zh-TW.ts
|
|
244
|
+
var ZH_TW_DATEPICKER_LOCALE = {
|
|
245
|
+
locale: "zh-TW",
|
|
246
|
+
labels: {
|
|
247
|
+
today: "\u4ECA\u5929",
|
|
248
|
+
ok: "\u78BA\u5B9A",
|
|
249
|
+
calendar: "\u65E5\u66C6",
|
|
250
|
+
toggleCalendar: "\u958B\u555F\u65E5\u66C6",
|
|
251
|
+
clearDate: "\u6E05\u9664\u65E5\u671F",
|
|
252
|
+
previousMonth: "\u4E0A\u500B\u6708",
|
|
253
|
+
nextMonth: "\u4E0B\u500B\u6708"
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
1
257
|
// src/utils/i18n/locales/zh-TW.ts
|
|
2
|
-
var zhTW = {
|
|
258
|
+
var zhTW = defineLocale({
|
|
3
259
|
locale: "zh-TW",
|
|
4
260
|
direction: "ltr",
|
|
261
|
+
datePicker: ZH_TW_DATEPICKER_LOCALE,
|
|
5
262
|
common: {
|
|
6
263
|
okText: "\u78BA\u5B9A",
|
|
7
264
|
cancelText: "\u53D6\u6D88",
|
|
@@ -18,6 +275,15 @@ var zhTW = {
|
|
|
18
275
|
drawer: {
|
|
19
276
|
closeAriaLabel: "\u95DC\u9589"
|
|
20
277
|
},
|
|
278
|
+
qrcode: {
|
|
279
|
+
ariaLabel: "QR Code",
|
|
280
|
+
expiredText: "QR Code \u5DF2\u904E\u671F",
|
|
281
|
+
refreshText: "\u91CD\u65B0\u6574\u7406",
|
|
282
|
+
loadingText: "\u8F09\u5165\u4E2D..."
|
|
283
|
+
},
|
|
284
|
+
timeline: {
|
|
285
|
+
pendingText: "\u8F09\u5165\u4E2D..."
|
|
286
|
+
},
|
|
21
287
|
pagination: {
|
|
22
288
|
totalText: "\u5171 {total} \u7B46",
|
|
23
289
|
itemsPerPageText: "\u7B46/\u9801",
|
|
@@ -59,7 +325,7 @@ var zhTW = {
|
|
|
59
325
|
dragHintText: "\u62D6\u66F3\u4EE5\u79FB\u52D5",
|
|
60
326
|
boardAriaLabel: "\u4EFB\u52D9\u770B\u677F"
|
|
61
327
|
}
|
|
62
|
-
};
|
|
328
|
+
});
|
|
63
329
|
export {
|
|
64
330
|
zhTW
|
|
65
331
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as TigerLocaleInput, g as TigerLocalePagination, i as TigerLocaleTable } from './locale-44p_QYnH.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Pagination component types and interfaces
|
|
@@ -781,13 +781,7 @@ interface TableProps<T = Record<string, unknown>> {
|
|
|
781
781
|
virtualItemHeight?: number;
|
|
782
782
|
/**
|
|
783
783
|
* Row count at which Table enables virtual mode automatically when `autoVirtual` is true.
|
|
784
|
-
*
|
|
785
|
-
*/
|
|
786
|
-
autoVirtualThreshold?: number;
|
|
787
|
-
/**
|
|
788
|
-
* Row count at which Table marks virtual rendering as recommended.
|
|
789
|
-
* Table does not enable virtualization automatically; use this signal to
|
|
790
|
-
* switch to `virtual` or the dedicated `VirtualTable` component.
|
|
784
|
+
* When `autoVirtual` is false, the same threshold only marks virtualization as recommended.
|
|
791
785
|
* @default 1000
|
|
792
786
|
*/
|
|
793
787
|
virtualThreshold?: number;
|
|
@@ -879,4 +873,4 @@ declare function downloadTableExport(content: string, filename?: string, format?
|
|
|
879
873
|
*/
|
|
880
874
|
declare const tableExportButtonClasses = "inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] text-[var(--tiger-text,#111827)] bg-[var(--tiger-surface,#ffffff)] hover:bg-[var(--tiger-surface-muted,#f9fafb)] transition-colors";
|
|
881
875
|
|
|
882
|
-
export { type
|
|
876
|
+
export { type TableFixedHeaderClassName as A, type TableFixedHeaderClassNameContext as B, type ColumnAlign as C, downloadCsv as D, type ExpandableConfig as E, type FilterOption as F, downloadExcel as G, downloadTableExport as H, exportTableData as I, exportTableToCsv as J, exportTableToExcel as K, tableExportButtonClasses as L, type PaginationConfig as P, type RowSelectionConfig as R, type SortDirection as S, type TableColumn as T, type TableSize as a, type TableCardLayoutItem as b, type TableFixedPosition as c, type TableCardBreakpoint as d, type TableResponsiveMode as e, type TableProps as f, type PaginationQuickJumperValidationOptions as g, type PaginationSize as h, type PaginationAlign as i, type FilterRule as j, type ColumnFilter as k, type FilterType as l, type PageChangeInfo as m, type PageSizeChangeInfo as n, type PaginationPageSizeOption as o, type PaginationPageSizeOptionItem as p, type PaginationProps as q, type SortState as r, type TableCardColSpan as s, type TableCardRenderContext as t, type TableCardRowSpan as u, type TableCardSelectionPosition as v, type TableColumnCardGrid as w, type TableExportFormat as x, type TableFixedCellClassName as y, type TableFixedCellClassNameContext as z };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import './resolve-config-QUZ9b-Gn.mjs';
|
|
1
|
+
import * as tailwindcss_plugin from 'tailwindcss/plugin';
|
|
3
2
|
|
|
4
|
-
declare const modernPlugin: PluginWithConfig;
|
|
3
|
+
declare const modernPlugin: tailwindcss_plugin.PluginWithConfig;
|
|
5
4
|
|
|
6
5
|
export { modernPlugin as default };
|
package/dist/tailwind/modern.js
CHANGED
|
@@ -184,78 +184,83 @@ var MODERN_REDUCED_MOTION_TOKENS = {
|
|
|
184
184
|
"--tiger-transition-emphasized": "transform 0ms linear"
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
// src/
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"--tiger-error": "#dc2626",
|
|
219
|
-
"--tiger-info": "#3b82f6",
|
|
220
|
-
// Chart palette
|
|
221
|
-
"--tiger-chart-1": "#2563eb",
|
|
222
|
-
"--tiger-chart-2": "#16a34a",
|
|
223
|
-
"--tiger-chart-3": "#d97706",
|
|
224
|
-
"--tiger-chart-4": "#a855f7",
|
|
225
|
-
"--tiger-chart-5": "#0ea5e9",
|
|
226
|
-
"--tiger-chart-6": "#ef4444"
|
|
187
|
+
// src/themes/default/theme.ts
|
|
188
|
+
var defaultThemeLightColors = {
|
|
189
|
+
primary: "#2563eb",
|
|
190
|
+
primaryHover: "#1d4ed8",
|
|
191
|
+
primaryActive: "#1e40af",
|
|
192
|
+
primaryDisabled: "#93c5fd",
|
|
193
|
+
secondary: "#4b5563",
|
|
194
|
+
secondaryHover: "#374151",
|
|
195
|
+
secondaryActive: "#1f2937",
|
|
196
|
+
secondaryDisabled: "#9ca3af",
|
|
197
|
+
outlineBgHover: "#eff6ff",
|
|
198
|
+
ghostBgHover: "#eff6ff",
|
|
199
|
+
focusRing: "#2563eb",
|
|
200
|
+
surface: "#ffffff",
|
|
201
|
+
surfaceMuted: "#f9fafb",
|
|
202
|
+
surfaceRaised: "#ffffff",
|
|
203
|
+
text: "#111827",
|
|
204
|
+
textSecondary: "#6b7280",
|
|
205
|
+
textDisabled: "#d1d5db",
|
|
206
|
+
border: "#e5e7eb",
|
|
207
|
+
borderStrong: "#9ca3af",
|
|
208
|
+
success: "#16a34a",
|
|
209
|
+
warning: "#d97706",
|
|
210
|
+
error: "#dc2626",
|
|
211
|
+
info: "#3b82f6",
|
|
212
|
+
chart1: "#2563eb",
|
|
213
|
+
chart2: "#16a34a",
|
|
214
|
+
chart3: "#d97706",
|
|
215
|
+
chart4: "#a855f7",
|
|
216
|
+
chart5: "#0ea5e9",
|
|
217
|
+
chart6: "#ef4444"
|
|
227
218
|
};
|
|
228
|
-
var
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
219
|
+
var defaultThemeDarkColors = {
|
|
220
|
+
primary: "#60a5fa",
|
|
221
|
+
primaryHover: "#93c5fd",
|
|
222
|
+
primaryActive: "#bfdbfe",
|
|
223
|
+
primaryDisabled: "#1e40af",
|
|
224
|
+
secondary: "#9ca3af",
|
|
225
|
+
secondaryHover: "#d1d5db",
|
|
226
|
+
secondaryActive: "#e5e7eb",
|
|
227
|
+
secondaryDisabled: "#4b5563",
|
|
228
|
+
outlineBgHover: "#1e3a5f",
|
|
229
|
+
ghostBgHover: "#1e3a5f",
|
|
230
|
+
focusRing: "#60a5fa",
|
|
231
|
+
surface: "#111827",
|
|
232
|
+
surfaceMuted: "#1f2937",
|
|
233
|
+
surfaceRaised: "#1f2937",
|
|
234
|
+
text: "#f9fafb",
|
|
235
|
+
textSecondary: "#d1d5db",
|
|
236
|
+
textDisabled: "#4b5563",
|
|
237
|
+
border: "#374151",
|
|
238
|
+
borderStrong: "#6b7280",
|
|
239
|
+
success: "#4ade80",
|
|
240
|
+
warning: "#fbbf24",
|
|
241
|
+
error: "#f87171",
|
|
242
|
+
info: "#60a5fa",
|
|
243
|
+
chart1: "#60a5fa",
|
|
244
|
+
chart2: "#4ade80",
|
|
245
|
+
chart3: "#fbbf24",
|
|
246
|
+
chart4: "#c084fc",
|
|
247
|
+
chart5: "#38bdf8",
|
|
248
|
+
chart6: "#f87171"
|
|
258
249
|
};
|
|
250
|
+
|
|
251
|
+
// src/tailwind-plugin.ts
|
|
252
|
+
function presetToVars(colors) {
|
|
253
|
+
const vars = {};
|
|
254
|
+
for (const [key, value] of Object.entries(colors)) {
|
|
255
|
+
const varName = THEME_CSS_VARS[key];
|
|
256
|
+
if (varName && value) {
|
|
257
|
+
vars[varName] = value;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return vars;
|
|
261
|
+
}
|
|
262
|
+
var tigercatTheme = presetToVars(defaultThemeLightColors);
|
|
263
|
+
var tigercatDarkTheme = presetToVars(defaultThemeDarkColors);
|
|
259
264
|
var tigercatDirectionBase = {
|
|
260
265
|
'[dir="rtl"] .tiger-rtl-mirror, [data-tiger-dir="rtl"] .tiger-rtl-mirror': {
|
|
261
266
|
transform: "scaleX(-1)"
|
|
@@ -294,16 +299,6 @@ var tigercatPlugin = plugin(function({ addBase }) {
|
|
|
294
299
|
...tigercatReducedMotionBase
|
|
295
300
|
});
|
|
296
301
|
});
|
|
297
|
-
function presetToVars(colors) {
|
|
298
|
-
const vars = {};
|
|
299
|
-
for (const [key, value] of Object.entries(colors)) {
|
|
300
|
-
const varName = THEME_CSS_VARS[key];
|
|
301
|
-
if (varName && value) {
|
|
302
|
-
vars[varName] = value;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return vars;
|
|
306
|
-
}
|
|
307
302
|
function createTigercatPlugin(options = {}) {
|
|
308
303
|
return plugin(function({ addBase }) {
|
|
309
304
|
const preset = options.preset;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as tailwindcss_plugin from 'tailwindcss/plugin';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Theme configuration types for Tigercat Design System
|
|
@@ -136,49 +136,15 @@ interface ThemePreset {
|
|
|
136
136
|
/** Controls which colour scheme the ThemeManager applies */
|
|
137
137
|
type ColorScheme = 'light' | 'dark' | 'auto';
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
*/
|
|
142
|
-
declare const tigercatTheme: {
|
|
143
|
-
'--tiger-primary': string;
|
|
144
|
-
'--tiger-primary-hover': string;
|
|
145
|
-
'--tiger-primary-active': string;
|
|
146
|
-
'--tiger-primary-disabled': string;
|
|
147
|
-
'--tiger-secondary': string;
|
|
148
|
-
'--tiger-secondary-hover': string;
|
|
149
|
-
'--tiger-secondary-active': string;
|
|
150
|
-
'--tiger-secondary-disabled': string;
|
|
151
|
-
'--tiger-outline-bg-hover': string;
|
|
152
|
-
'--tiger-ghost-bg-hover': string;
|
|
153
|
-
'--tiger-focus-ring': string;
|
|
154
|
-
'--tiger-surface': string;
|
|
155
|
-
'--tiger-surface-muted': string;
|
|
156
|
-
'--tiger-surface-raised': string;
|
|
157
|
-
'--tiger-text': string;
|
|
158
|
-
'--tiger-text-secondary': string;
|
|
159
|
-
'--tiger-text-disabled': string;
|
|
160
|
-
'--tiger-border': string;
|
|
161
|
-
'--tiger-border-strong': string;
|
|
162
|
-
'--tiger-success': string;
|
|
163
|
-
'--tiger-warning': string;
|
|
164
|
-
'--tiger-error': string;
|
|
165
|
-
'--tiger-info': string;
|
|
166
|
-
'--tiger-chart-1': string;
|
|
167
|
-
'--tiger-chart-2': string;
|
|
168
|
-
'--tiger-chart-3': string;
|
|
169
|
-
'--tiger-chart-4': string;
|
|
170
|
-
'--tiger-chart-5': string;
|
|
171
|
-
'--tiger-chart-6': string;
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Dark mode theme overrides
|
|
175
|
-
*/
|
|
139
|
+
/** Default theme colors for Tigercat. */
|
|
140
|
+
declare const tigercatTheme: Record<string, string>;
|
|
141
|
+
/** Dark mode theme overrides. */
|
|
176
142
|
declare const tigercatDarkTheme: Record<string, string>;
|
|
177
143
|
/**
|
|
178
144
|
* Tailwind CSS plugin for Tigercat
|
|
179
145
|
* Injects the default CSS variables into the root scope
|
|
180
146
|
*/
|
|
181
|
-
declare const tigercatPlugin: PluginWithConfig;
|
|
147
|
+
declare const tigercatPlugin: tailwindcss_plugin.PluginWithConfig;
|
|
182
148
|
interface TigercatPluginOptions {
|
|
183
149
|
/** A ThemePreset object to use instead of the built-in default */
|
|
184
150
|
preset?: ThemePreset;
|
|
@@ -213,6 +179,6 @@ interface TigercatPluginOptions {
|
|
|
213
179
|
* }
|
|
214
180
|
* ```
|
|
215
181
|
*/
|
|
216
|
-
declare function createTigercatPlugin(options?: TigercatPluginOptions): PluginWithConfig;
|
|
182
|
+
declare function createTigercatPlugin(options?: TigercatPluginOptions): tailwindcss_plugin.PluginWithConfig;
|
|
217
183
|
|
|
218
|
-
export { type ColorScheme as C, type ThemePreset as T, type
|
|
184
|
+
export { type ColorScheme as C, type ThemePreset as T, type ThemeConfig as a, type ThemeColorScale as b, type ThemeMotion as c, type ThemePresetName as d, type ThemeRadius as e, type ThemeSemanticColors as f, type ThemeShadows as g, type ThemeSpacing as h, type ThemeTypography as i, type TigercatPluginOptions as j, createTigercatPlugin as k, tigercatPlugin as l, tigercatTheme as m, tigercatDarkTheme as t };
|
package/dist/tailwind.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '
|
|
3
|
-
import './resolve-config-QUZ9b-Gn.mjs';
|
|
1
|
+
export { l as default } from './tailwind-entry-CNBAH7iv.js';
|
|
2
|
+
import 'tailwindcss/plugin';
|