@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.
Files changed (133) hide show
  1. package/dist/{datepicker-DXzS_8l8.d.cts → datepicker-ZdzYUqm5.d.ts} +77 -11
  2. package/dist/datepicker-locales/ar-SA.d.ts +1 -1
  3. package/dist/datepicker-locales/de-DE.d.ts +1 -1
  4. package/dist/datepicker-locales/en-US.d.ts +1 -1
  5. package/dist/datepicker-locales/es-ES.d.ts +1 -1
  6. package/dist/datepicker-locales/fr-FR.d.ts +1 -1
  7. package/dist/datepicker-locales/id-ID.d.ts +1 -1
  8. package/dist/datepicker-locales/ja-JP.d.ts +1 -1
  9. package/dist/datepicker-locales/ko-KR.d.ts +1 -1
  10. package/dist/datepicker-locales/pt-BR.d.ts +1 -1
  11. package/dist/datepicker-locales/registry.d.ts +7 -0
  12. package/dist/datepicker-locales/registry.js +224 -0
  13. package/dist/datepicker-locales/th-TH.d.ts +1 -1
  14. package/dist/datepicker-locales/vi-VN.d.ts +1 -1
  15. package/dist/datepicker-locales/zh-CN.d.ts +1 -1
  16. package/dist/datepicker-locales/zh-TW.d.ts +1 -1
  17. package/dist/icons/picker.d.ts +1 -13
  18. package/dist/icons/picker.js +0 -12
  19. package/dist/index.d.ts +12341 -12244
  20. package/dist/index.js +1482 -659
  21. package/dist/{locale-9tTj1QdZ.d.ts → locale-44p_QYnH.d.ts} +96 -7
  22. package/dist/locales/ar-SA.d.ts +2 -2
  23. package/dist/locales/ar-SA.js +122 -1
  24. package/dist/locales/de-DE.d.ts +2 -2
  25. package/dist/locales/de-DE.js +122 -1
  26. package/dist/locales/en-US.d.ts +2 -2
  27. package/dist/locales/en-US.js +98 -1
  28. package/dist/locales/es-ES.d.ts +2 -2
  29. package/dist/locales/es-ES.js +122 -1
  30. package/dist/locales/fr-FR.d.ts +2 -2
  31. package/dist/locales/fr-FR.js +122 -1
  32. package/dist/locales/id-ID.d.ts +2 -2
  33. package/dist/locales/id-ID.js +268 -2
  34. package/dist/locales/ja-JP.d.ts +2 -2
  35. package/dist/locales/ja-JP.js +268 -2
  36. package/dist/locales/ko-KR.d.ts +2 -2
  37. package/dist/locales/ko-KR.js +268 -2
  38. package/dist/locales/pt-BR.d.ts +2 -2
  39. package/dist/locales/pt-BR.js +122 -1
  40. package/dist/locales/th-TH.d.ts +2 -2
  41. package/dist/locales/th-TH.js +268 -2
  42. package/dist/locales/vi-VN.d.ts +2 -2
  43. package/dist/locales/vi-VN.js +268 -2
  44. package/dist/locales/zh-CN.d.ts +2 -2
  45. package/dist/locales/zh-CN.js +98 -1
  46. package/dist/locales/zh-TW.d.ts +2 -2
  47. package/dist/locales/zh-TW.js +268 -2
  48. package/dist/{table-export-GRimhvlM.d.ts → table-export-CzPmX1b6.d.ts} +3 -9
  49. package/dist/tailwind/modern.d.ts +2 -3
  50. package/dist/tailwind/modern.js +75 -80
  51. package/dist/{tailwind-entry-D4_sseNi.d.ts → tailwind-entry-CNBAH7iv.d.ts} +7 -41
  52. package/dist/tailwind.d.ts +2 -3
  53. package/dist/tailwind.js +123 -70
  54. package/dist/utils/table-export.d.ts +3 -3
  55. package/package.json +43 -73
  56. package/tokens/tailwind-tokens.js +6 -3
  57. package/tokens/tokens.css +8 -322
  58. package/dist/datepicker-DXzS_8l8.d.ts +0 -130
  59. package/dist/datepicker-locales/ar-SA.cjs +0 -46
  60. package/dist/datepicker-locales/ar-SA.d.cts +0 -6
  61. package/dist/datepicker-locales/de-DE.cjs +0 -46
  62. package/dist/datepicker-locales/de-DE.d.cts +0 -6
  63. package/dist/datepicker-locales/en-US.cjs +0 -46
  64. package/dist/datepicker-locales/en-US.d.cts +0 -6
  65. package/dist/datepicker-locales/es-ES.cjs +0 -46
  66. package/dist/datepicker-locales/es-ES.d.cts +0 -6
  67. package/dist/datepicker-locales/fr-FR.cjs +0 -46
  68. package/dist/datepicker-locales/fr-FR.d.cts +0 -6
  69. package/dist/datepicker-locales/id-ID.cjs +0 -46
  70. package/dist/datepicker-locales/id-ID.d.cts +0 -6
  71. package/dist/datepicker-locales/ja-JP.cjs +0 -46
  72. package/dist/datepicker-locales/ja-JP.d.cts +0 -6
  73. package/dist/datepicker-locales/ko-KR.cjs +0 -46
  74. package/dist/datepicker-locales/ko-KR.d.cts +0 -6
  75. package/dist/datepicker-locales/pt-BR.cjs +0 -46
  76. package/dist/datepicker-locales/pt-BR.d.cts +0 -6
  77. package/dist/datepicker-locales/th-TH.cjs +0 -46
  78. package/dist/datepicker-locales/th-TH.d.cts +0 -6
  79. package/dist/datepicker-locales/vi-VN.cjs +0 -46
  80. package/dist/datepicker-locales/vi-VN.d.cts +0 -6
  81. package/dist/datepicker-locales/zh-CN.cjs +0 -46
  82. package/dist/datepicker-locales/zh-CN.d.cts +0 -6
  83. package/dist/datepicker-locales/zh-TW.cjs +0 -46
  84. package/dist/datepicker-locales/zh-TW.d.cts +0 -6
  85. package/dist/icons/common.cjs +0 -54
  86. package/dist/icons/common.d.cts +0 -20
  87. package/dist/icons/picker.cjs +0 -75
  88. package/dist/icons/picker.d.cts +0 -53
  89. package/dist/icons/registry.cjs +0 -172
  90. package/dist/icons/registry.d.cts +0 -102
  91. package/dist/icons/status.cjs +0 -47
  92. package/dist/icons/status.d.cts +0 -13
  93. package/dist/icons/table.cjs +0 -48
  94. package/dist/icons/table.d.cts +0 -25
  95. package/dist/index.cjs +0 -21268
  96. package/dist/index.d.cts +0 -20129
  97. package/dist/locale-DxwhmqfF.d.cts +0 -300
  98. package/dist/locales/ar-SA.cjs +0 -254
  99. package/dist/locales/ar-SA.d.cts +0 -10
  100. package/dist/locales/de-DE.cjs +0 -254
  101. package/dist/locales/de-DE.d.cts +0 -10
  102. package/dist/locales/en-US.cjs +0 -149
  103. package/dist/locales/en-US.d.cts +0 -10
  104. package/dist/locales/es-ES.cjs +0 -254
  105. package/dist/locales/es-ES.d.cts +0 -10
  106. package/dist/locales/fr-FR.cjs +0 -254
  107. package/dist/locales/fr-FR.d.cts +0 -10
  108. package/dist/locales/id-ID.cjs +0 -90
  109. package/dist/locales/id-ID.d.cts +0 -10
  110. package/dist/locales/ja-JP.cjs +0 -90
  111. package/dist/locales/ja-JP.d.cts +0 -10
  112. package/dist/locales/ko-KR.cjs +0 -90
  113. package/dist/locales/ko-KR.d.cts +0 -10
  114. package/dist/locales/pt-BR.cjs +0 -254
  115. package/dist/locales/pt-BR.d.cts +0 -10
  116. package/dist/locales/th-TH.cjs +0 -90
  117. package/dist/locales/th-TH.d.cts +0 -10
  118. package/dist/locales/vi-VN.cjs +0 -90
  119. package/dist/locales/vi-VN.d.cts +0 -10
  120. package/dist/locales/zh-CN.cjs +0 -149
  121. package/dist/locales/zh-CN.d.cts +0 -10
  122. package/dist/locales/zh-TW.cjs +0 -90
  123. package/dist/locales/zh-TW.d.cts +0 -10
  124. package/dist/table-export-BMBH75rj.d.cts +0 -882
  125. package/dist/tailwind/modern.cjs +0 -368
  126. package/dist/tailwind/modern.d.cts +0 -6
  127. package/dist/tailwind-entry-DUchHtjs.d.cts +0 -218
  128. package/dist/tailwind.cjs +0 -221
  129. package/dist/tailwind.d.cts +0 -3
  130. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.cts +0 -126
  131. package/dist/types-CJYAW1ql.d-DDBFn6KB.d.ts +0 -126
  132. package/dist/utils/table-export.cjs +0 -119
  133. package/dist/utils/table-export.d.cts +0 -3
@@ -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 { a as TigerLocaleInput, e as TigerLocalePagination, g as TigerLocaleTable } from './locale-9tTj1QdZ.js';
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
- * @default 10000
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 TableCardColSpan as A, type TableCardRowSpan as B, type ColumnAlign as C, type TableColumnCardGrid as D, type ExpandableConfig as E, type FilterOption as F, type TableCardRenderContext as G, type PaginationPageSizeOption as H, type PaginationPageSizeOptionItem as I, type PaginationProps as J, type PageChangeInfo as K, type PageSizeChangeInfo as L, type PaginationQuickJumperValidationOptions as P, type RowSelectionConfig as R, type SortDirection as S, type TableResponsiveMode as T, type TableCardBreakpoint as a, type TableColumn as b, type TableSize as c, type TableFixedPosition as d, type TableCardLayoutItem as e, type PaginationAlign as f, type PaginationSize as g, type TableProps as h, type PaginationConfig as i, type FilterRule as j, type ColumnFilter as k, type SortState as l, exportTableToCsv as m, exportTableToExcel as n, downloadCsv as o, downloadExcel as p, exportTableData as q, downloadTableExport as r, type TableExportFormat as s, tableExportButtonClasses as t, type TableCardSelectionPosition as u, type TableFixedHeaderClassNameContext as v, type TableFixedCellClassNameContext as w, type TableFixedHeaderClassName as x, type TableFixedCellClassName as y, type FilterType as z };
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 { P as PluginWithConfig } from '../types-CJYAW1ql.d-DDBFn6KB.js';
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 };
@@ -184,78 +184,83 @@ var MODERN_REDUCED_MOTION_TOKENS = {
184
184
  "--tiger-transition-emphasized": "transform 0ms linear"
185
185
  };
186
186
 
187
- // src/tailwind-plugin.ts
188
- var tigercatTheme = {
189
- // Primary
190
- "--tiger-primary": "#2563eb",
191
- "--tiger-primary-hover": "#1d4ed8",
192
- "--tiger-primary-active": "#1e40af",
193
- "--tiger-primary-disabled": "#93c5fd",
194
- // Secondary
195
- "--tiger-secondary": "#4b5563",
196
- "--tiger-secondary-hover": "#374151",
197
- "--tiger-secondary-active": "#1f2937",
198
- "--tiger-secondary-disabled": "#9ca3af",
199
- // Background hover states
200
- "--tiger-outline-bg-hover": "#eff6ff",
201
- "--tiger-ghost-bg-hover": "#eff6ff",
202
- // Interaction
203
- "--tiger-focus-ring": "#2563eb",
204
- // Surface & background
205
- "--tiger-surface": "#ffffff",
206
- "--tiger-surface-muted": "#f9fafb",
207
- "--tiger-surface-raised": "#ffffff",
208
- // Text
209
- "--tiger-text": "#111827",
210
- "--tiger-text-secondary": "#6b7280",
211
- "--tiger-text-disabled": "#d1d5db",
212
- // Border
213
- "--tiger-border": "#e5e7eb",
214
- "--tiger-border-strong": "#9ca3af",
215
- // Status
216
- "--tiger-success": "#16a34a",
217
- "--tiger-warning": "#d97706",
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 tigercatDarkTheme = {
229
- "--tiger-primary": "#60a5fa",
230
- "--tiger-primary-hover": "#93c5fd",
231
- "--tiger-primary-active": "#bfdbfe",
232
- "--tiger-primary-disabled": "#1e40af",
233
- "--tiger-secondary": "#9ca3af",
234
- "--tiger-secondary-hover": "#d1d5db",
235
- "--tiger-secondary-active": "#e5e7eb",
236
- "--tiger-secondary-disabled": "#4b5563",
237
- "--tiger-outline-bg-hover": "#1e3a5f",
238
- "--tiger-ghost-bg-hover": "#1e3a5f",
239
- "--tiger-focus-ring": "#60a5fa",
240
- "--tiger-surface": "#111827",
241
- "--tiger-surface-muted": "#1f2937",
242
- "--tiger-surface-raised": "#1f2937",
243
- "--tiger-text": "#f9fafb",
244
- "--tiger-text-secondary": "#d1d5db",
245
- "--tiger-text-disabled": "#4b5563",
246
- "--tiger-border": "#374151",
247
- "--tiger-border-strong": "#6b7280",
248
- "--tiger-success": "#4ade80",
249
- "--tiger-warning": "#fbbf24",
250
- "--tiger-error": "#f87171",
251
- "--tiger-info": "#60a5fa",
252
- "--tiger-chart-1": "#60a5fa",
253
- "--tiger-chart-2": "#4ade80",
254
- "--tiger-chart-3": "#fbbf24",
255
- "--tiger-chart-4": "#c084fc",
256
- "--tiger-chart-5": "#38bdf8",
257
- "--tiger-chart-6": "#f87171"
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 { P as PluginWithConfig } from './types-CJYAW1ql.d-DDBFn6KB.js';
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
- * Default theme colors for Tigercat
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 ThemeColorScale as a, type ThemeSemanticColors as b, type ThemeTypography as c, type ThemeRadius as d, type ThemeShadows as e, type ThemeSpacing as f, type ThemeMotion as g, type ThemeConfig as h, type ThemePresetName as i, tigercatDarkTheme as j, tigercatPlugin as k, type TigercatPluginOptions as l, createTigercatPlugin as m, tigercatTheme as t };
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 };
@@ -1,3 +1,2 @@
1
- export { k as default } from './tailwind-entry-D4_sseNi.js';
2
- import './types-CJYAW1ql.d-DDBFn6KB.js';
3
- import './resolve-config-QUZ9b-Gn.mjs';
1
+ export { l as default } from './tailwind-entry-CNBAH7iv.js';
2
+ import 'tailwindcss/plugin';