@yuno-payments/dashboard-design-system 2.2.0 → 2.2.1-beta.2

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 (54) hide show
  1. package/dist/components/atoms/checkbox/checkbox.js +16 -16
  2. package/dist/components/atoms/filter/filter-date-range.d.ts +31 -1
  3. package/dist/components/atoms/filter/filter-date-range.js +140 -144
  4. package/dist/components/atoms/filter/filter-multi-input.d.ts +11 -0
  5. package/dist/components/atoms/filter/filter-multi-input.js +42 -36
  6. package/dist/components/atoms/filter/filter-translations.d.ts +75 -0
  7. package/dist/components/atoms/filter/filter-translations.js +450 -0
  8. package/dist/components/atoms/filter/filter.d.ts +30 -0
  9. package/dist/components/atoms/filter/filter.js +191 -171
  10. package/dist/components/atoms/filter/index.d.ts +2 -2
  11. package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +17 -2
  12. package/dist/components/atoms/filter-dropdown/filter-dropdown.js +160 -151
  13. package/dist/components/atoms/icon/directional-icons.d.ts +12 -0
  14. package/dist/components/atoms/icon/directional-icons.js +38 -0
  15. package/dist/components/atoms/icon/icon.d.ts +6 -0
  16. package/dist/components/atoms/icon/icon.js +27 -21
  17. package/dist/components/atoms/icon/index.d.ts +1 -0
  18. package/dist/components/atoms/index.d.ts +1 -1
  19. package/dist/components/atoms/radio-group/radio-group-option.js +2 -2
  20. package/dist/components/atoms/select/select.js +2 -2
  21. package/dist/components/molecules/dialog-header/dialog-header.d.ts +1 -1
  22. package/dist/components/molecules/pagination/index.d.ts +1 -0
  23. package/dist/components/molecules/pagination/page-numbers.d.ts +3 -1
  24. package/dist/components/molecules/pagination/page-numbers.js +10 -9
  25. package/dist/components/molecules/pagination/pagination-translations.d.ts +33 -0
  26. package/dist/components/molecules/pagination/pagination-translations.js +82 -0
  27. package/dist/components/molecules/pagination/pagination.d.ts +9 -0
  28. package/dist/components/molecules/pagination/pagination.js +46 -38
  29. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.d.ts +3 -1
  30. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +28 -27
  31. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +44 -41
  32. package/dist/components/organisms/data-table/components/data-table-header.js +11 -12
  33. package/dist/components/organisms/data-table/components/dialogs/data-table-manage-columns-dialog.d.ts +3 -1
  34. package/dist/components/organisms/data-table/components/dialogs/data-table-manage-columns-dialog.js +45 -44
  35. package/dist/components/organisms/data-table/data-table.d.ts +27 -2
  36. package/dist/components/organisms/data-table/data-table.js +146 -134
  37. package/dist/components/organisms/data-table/data-table.types.d.ts +68 -0
  38. package/dist/components/organisms/data-table/data-table.types.js +252 -0
  39. package/dist/components/organisms/data-table/index.d.ts +2 -1
  40. package/dist/components/organisms/data-table/utils/data-table-utils.js +11 -8
  41. package/dist/dashboard-design-system.css +1 -1
  42. package/dist/index.css +1 -1
  43. package/dist/index.d.ts +2 -1
  44. package/dist/index.esm.min.js +9394 -8512
  45. package/dist/index.js +208 -202
  46. package/dist/index.umd.min.js +25 -25
  47. package/dist/lib/utils.d.ts +13 -0
  48. package/dist/lib/utils.js +34 -10
  49. package/dist/vendor/shadcn/pagination.d.ts +19 -3
  50. package/dist/vendor/shadcn/pagination.js +41 -37
  51. package/dist/vendor/shadcn/select.js +33 -33
  52. package/dist/vendor/shadcn/switch.js +1 -1
  53. package/package.json +4 -2
  54. package/registry/components-registry.json +38 -12
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Supported languages for filter translations
3
+ */
4
+ export type FilterLanguage = "en" | "es" | "ja" | "ar" | "fr" | "pt" | "tr" | "ru" | "de" | "zh";
5
+ /**
6
+ * Translation strings for Filter components
7
+ */
8
+ export interface FilterTranslations {
9
+ addFilter?: string;
10
+ clearFilters?: string;
11
+ noFiltersApplied?: string;
12
+ /** Template: "+{count} more" */
13
+ moreFilters?: string;
14
+ selectAll?: string;
15
+ inverse?: string;
16
+ none?: string;
17
+ search?: string;
18
+ typeAndPressEnter?: string;
19
+ onlyNumericAllowed?: string;
20
+ clearAll?: string;
21
+ custom?: string;
22
+ today?: string;
23
+ last3Days?: string;
24
+ last7Days?: string;
25
+ last30Days?: string;
26
+ thisMonth?: string;
27
+ allTime?: string;
28
+ startDate?: string;
29
+ endDate?: string;
30
+ selectDate?: string;
31
+ sunday?: string;
32
+ monday?: string;
33
+ tuesday?: string;
34
+ wednesday?: string;
35
+ thursday?: string;
36
+ friday?: string;
37
+ saturday?: string;
38
+ jan?: string;
39
+ feb?: string;
40
+ mar?: string;
41
+ apr?: string;
42
+ may?: string;
43
+ jun?: string;
44
+ jul?: string;
45
+ aug?: string;
46
+ sep?: string;
47
+ oct?: string;
48
+ nov?: string;
49
+ dec?: string;
50
+ }
51
+ /**
52
+ * All translations by language code
53
+ */
54
+ export declare const FILTER_TRANSLATIONS: Record<FilterLanguage, Required<FilterTranslations>>;
55
+ /**
56
+ * Default translations (English)
57
+ */
58
+ export declare const DEFAULT_FILTER_TRANSLATIONS: Required<FilterTranslations>;
59
+ /**
60
+ * Get translations for a specific language
61
+ * Falls back to localStorage language, then to English if not found
62
+ */
63
+ export declare function getFilterTranslations(lang?: FilterLanguage): Required<FilterTranslations>;
64
+ /**
65
+ * Helper to get day names array in order (Sunday = 0)
66
+ */
67
+ export declare function getDayNames(t: Required<FilterTranslations>): string[];
68
+ /**
69
+ * Helper to get month abbreviations array in order (January = 0)
70
+ */
71
+ export declare function getMonthAbbreviations(t: Required<FilterTranslations>): string[];
72
+ /**
73
+ * Format the "more filters" string with count
74
+ */
75
+ export declare function formatMoreFilters(t: Required<FilterTranslations>, count: number): string;
@@ -0,0 +1,450 @@
1
+ import { getDefaultLanguage as s } from "../../../lib/utils.js";
2
+ const t = {
3
+ // FilterButton
4
+ addFilter: "Add filter",
5
+ clearFilters: "Clear filters",
6
+ noFiltersApplied: "No filters applied",
7
+ moreFilters: "+{count} more",
8
+ // FilterSection actions
9
+ selectAll: "Select all",
10
+ inverse: "Inverse",
11
+ none: "None",
12
+ search: "Search",
13
+ // FilterMultiInput
14
+ typeAndPressEnter: "Type and press Enter...",
15
+ onlyNumericAllowed: "Only numeric values are allowed",
16
+ clearAll: "Clear all",
17
+ // FilterDateRange
18
+ custom: "Custom",
19
+ today: "Today",
20
+ last3Days: "Last 3 days",
21
+ last7Days: "Last 7 days",
22
+ last30Days: "Last 30 days",
23
+ thisMonth: "This month",
24
+ allTime: "All time",
25
+ startDate: "Start date",
26
+ endDate: "End date",
27
+ selectDate: "Select date",
28
+ // Day names
29
+ sunday: "Sunday",
30
+ monday: "Monday",
31
+ tuesday: "Tuesday",
32
+ wednesday: "Wednesday",
33
+ thursday: "Thursday",
34
+ friday: "Friday",
35
+ saturday: "Saturday",
36
+ // Month abbreviations
37
+ jan: "Jan",
38
+ feb: "Feb",
39
+ mar: "Mar",
40
+ apr: "Apr",
41
+ may: "May",
42
+ jun: "Jun",
43
+ jul: "Jul",
44
+ aug: "Aug",
45
+ sep: "Sep",
46
+ oct: "Oct",
47
+ nov: "Nov",
48
+ dec: "Dec"
49
+ }, r = {
50
+ addFilter: "Agregar filtro",
51
+ clearFilters: "Limpiar filtros",
52
+ noFiltersApplied: "Sin filtros aplicados",
53
+ moreFilters: "+{count} más",
54
+ selectAll: "Seleccionar todo",
55
+ inverse: "Invertir",
56
+ none: "Ninguno",
57
+ search: "Buscar",
58
+ typeAndPressEnter: "Escribe y presiona Enter...",
59
+ onlyNumericAllowed: "Solo se permiten valores numéricos",
60
+ clearAll: "Limpiar todo",
61
+ custom: "Personalizado",
62
+ today: "Hoy",
63
+ last3Days: "Últimos 3 días",
64
+ last7Days: "Últimos 7 días",
65
+ last30Days: "Últimos 30 días",
66
+ thisMonth: "Este mes",
67
+ allTime: "Todo el tiempo",
68
+ startDate: "Fecha inicio",
69
+ endDate: "Fecha fin",
70
+ selectDate: "Seleccionar fecha",
71
+ sunday: "Domingo",
72
+ monday: "Lunes",
73
+ tuesday: "Martes",
74
+ wednesday: "Miércoles",
75
+ thursday: "Jueves",
76
+ friday: "Viernes",
77
+ saturday: "Sábado",
78
+ jan: "Ene",
79
+ feb: "Feb",
80
+ mar: "Mar",
81
+ apr: "Abr",
82
+ may: "May",
83
+ jun: "Jun",
84
+ jul: "Jul",
85
+ aug: "Ago",
86
+ sep: "Sep",
87
+ oct: "Oct",
88
+ nov: "Nov",
89
+ dec: "Dic"
90
+ }, n = {
91
+ addFilter: "フィルターを追加",
92
+ clearFilters: "フィルターをクリア",
93
+ noFiltersApplied: "フィルターが適用されていません",
94
+ moreFilters: "+{count}件",
95
+ selectAll: "すべて選択",
96
+ inverse: "反転",
97
+ none: "なし",
98
+ search: "検索",
99
+ typeAndPressEnter: "入力してEnterを押す...",
100
+ onlyNumericAllowed: "数値のみ入力可能です",
101
+ clearAll: "すべてクリア",
102
+ custom: "カスタム",
103
+ today: "今日",
104
+ last3Days: "過去3日間",
105
+ last7Days: "過去7日間",
106
+ last30Days: "過去30日間",
107
+ thisMonth: "今月",
108
+ allTime: "全期間",
109
+ startDate: "開始日",
110
+ endDate: "終了日",
111
+ selectDate: "日付を選択",
112
+ sunday: "日曜日",
113
+ monday: "月曜日",
114
+ tuesday: "火曜日",
115
+ wednesday: "水曜日",
116
+ thursday: "木曜日",
117
+ friday: "金曜日",
118
+ saturday: "土曜日",
119
+ jan: "1月",
120
+ feb: "2月",
121
+ mar: "3月",
122
+ apr: "4月",
123
+ may: "5月",
124
+ jun: "6月",
125
+ jul: "7月",
126
+ aug: "8月",
127
+ sep: "9月",
128
+ oct: "10月",
129
+ nov: "11月",
130
+ dec: "12月"
131
+ }, l = {
132
+ addFilter: "إضافة فلتر",
133
+ clearFilters: "مسح الفلاتر",
134
+ noFiltersApplied: "لم يتم تطبيق فلاتر",
135
+ moreFilters: "+{count} أخرى",
136
+ selectAll: "تحديد الكل",
137
+ inverse: "عكس",
138
+ none: "لا شيء",
139
+ search: "بحث",
140
+ typeAndPressEnter: "اكتب واضغط Enter...",
141
+ onlyNumericAllowed: "مسموح بالقيم الرقمية فقط",
142
+ clearAll: "مسح الكل",
143
+ custom: "مخصص",
144
+ today: "اليوم",
145
+ last3Days: "آخر 3 أيام",
146
+ last7Days: "آخر 7 أيام",
147
+ last30Days: "آخر 30 يوماً",
148
+ thisMonth: "هذا الشهر",
149
+ allTime: "كل الوقت",
150
+ startDate: "تاريخ البدء",
151
+ endDate: "تاريخ الانتهاء",
152
+ selectDate: "اختر التاريخ",
153
+ sunday: "الأحد",
154
+ monday: "الاثنين",
155
+ tuesday: "الثلاثاء",
156
+ wednesday: "الأربعاء",
157
+ thursday: "الخميس",
158
+ friday: "الجمعة",
159
+ saturday: "السبت",
160
+ jan: "يناير",
161
+ feb: "فبراير",
162
+ mar: "مارس",
163
+ apr: "أبريل",
164
+ may: "مايو",
165
+ jun: "يونيو",
166
+ jul: "يوليو",
167
+ aug: "أغسطس",
168
+ sep: "سبتمبر",
169
+ oct: "أكتوبر",
170
+ nov: "نوفمبر",
171
+ dec: "ديسمبر"
172
+ }, i = {
173
+ addFilter: "Ajouter un filtre",
174
+ clearFilters: "Effacer les filtres",
175
+ noFiltersApplied: "Aucun filtre appliqué",
176
+ moreFilters: "+{count} autres",
177
+ selectAll: "Tout sélectionner",
178
+ inverse: "Inverser",
179
+ none: "Aucun",
180
+ search: "Rechercher",
181
+ typeAndPressEnter: "Tapez et appuyez sur Entrée...",
182
+ onlyNumericAllowed: "Seules les valeurs numériques sont autorisées",
183
+ clearAll: "Tout effacer",
184
+ custom: "Personnalisé",
185
+ today: "Aujourd'hui",
186
+ last3Days: "3 derniers jours",
187
+ last7Days: "7 derniers jours",
188
+ last30Days: "30 derniers jours",
189
+ thisMonth: "Ce mois-ci",
190
+ allTime: "Tout le temps",
191
+ startDate: "Date de début",
192
+ endDate: "Date de fin",
193
+ selectDate: "Sélectionner une date",
194
+ sunday: "Dimanche",
195
+ monday: "Lundi",
196
+ tuesday: "Mardi",
197
+ wednesday: "Mercredi",
198
+ thursday: "Jeudi",
199
+ friday: "Vendredi",
200
+ saturday: "Samedi",
201
+ jan: "Janv",
202
+ feb: "Févr",
203
+ mar: "Mars",
204
+ apr: "Avr",
205
+ may: "Mai",
206
+ jun: "Juin",
207
+ jul: "Juil",
208
+ aug: "Août",
209
+ sep: "Sept",
210
+ oct: "Oct",
211
+ nov: "Nov",
212
+ dec: "Déc"
213
+ }, o = {
214
+ addFilter: "Adicionar filtro",
215
+ clearFilters: "Limpar filtros",
216
+ noFiltersApplied: "Nenhum filtro aplicado",
217
+ moreFilters: "+{count} mais",
218
+ selectAll: "Selecionar tudo",
219
+ inverse: "Inverter",
220
+ none: "Nenhum",
221
+ search: "Pesquisar",
222
+ typeAndPressEnter: "Digite e pressione Enter...",
223
+ onlyNumericAllowed: "Apenas valores numéricos são permitidos",
224
+ clearAll: "Limpar tudo",
225
+ custom: "Personalizado",
226
+ today: "Hoje",
227
+ last3Days: "Últimos 3 dias",
228
+ last7Days: "Últimos 7 dias",
229
+ last30Days: "Últimos 30 dias",
230
+ thisMonth: "Este mês",
231
+ allTime: "Todo o período",
232
+ startDate: "Data inicial",
233
+ endDate: "Data final",
234
+ selectDate: "Selecionar data",
235
+ sunday: "Domingo",
236
+ monday: "Segunda-feira",
237
+ tuesday: "Terça-feira",
238
+ wednesday: "Quarta-feira",
239
+ thursday: "Quinta-feira",
240
+ friday: "Sexta-feira",
241
+ saturday: "Sábado",
242
+ jan: "Jan",
243
+ feb: "Fev",
244
+ mar: "Mar",
245
+ apr: "Abr",
246
+ may: "Mai",
247
+ jun: "Jun",
248
+ jul: "Jul",
249
+ aug: "Ago",
250
+ sep: "Set",
251
+ oct: "Out",
252
+ nov: "Nov",
253
+ dec: "Dez"
254
+ }, d = {
255
+ addFilter: "Filtre ekle",
256
+ clearFilters: "Filtreleri temizle",
257
+ noFiltersApplied: "Uygulanan filtre yok",
258
+ moreFilters: "+{count} daha",
259
+ selectAll: "Tümünü seç",
260
+ inverse: "Tersine çevir",
261
+ none: "Hiçbiri",
262
+ search: "Ara",
263
+ typeAndPressEnter: "Yazın ve Enter'a basın...",
264
+ onlyNumericAllowed: "Yalnızca sayısal değerlere izin verilir",
265
+ clearAll: "Tümünü temizle",
266
+ custom: "Özel",
267
+ today: "Bugün",
268
+ last3Days: "Son 3 gün",
269
+ last7Days: "Son 7 gün",
270
+ last30Days: "Son 30 gün",
271
+ thisMonth: "Bu ay",
272
+ allTime: "Tüm zamanlar",
273
+ startDate: "Başlangıç tarihi",
274
+ endDate: "Bitiş tarihi",
275
+ selectDate: "Tarih seçin",
276
+ sunday: "Pazar",
277
+ monday: "Pazartesi",
278
+ tuesday: "Salı",
279
+ wednesday: "Çarşamba",
280
+ thursday: "Perşembe",
281
+ friday: "Cuma",
282
+ saturday: "Cumartesi",
283
+ jan: "Oca",
284
+ feb: "Şub",
285
+ mar: "Mar",
286
+ apr: "Nis",
287
+ may: "May",
288
+ jun: "Haz",
289
+ jul: "Tem",
290
+ aug: "Ağu",
291
+ sep: "Eyl",
292
+ oct: "Eki",
293
+ nov: "Kas",
294
+ dec: "Ara"
295
+ }, u = {
296
+ addFilter: "Добавить фильтр",
297
+ clearFilters: "Очистить фильтры",
298
+ noFiltersApplied: "Фильтры не применены",
299
+ moreFilters: "+{count} ещё",
300
+ selectAll: "Выбрать все",
301
+ inverse: "Инвертировать",
302
+ none: "Ничего",
303
+ search: "Поиск",
304
+ typeAndPressEnter: "Введите и нажмите Enter...",
305
+ onlyNumericAllowed: "Допускаются только числовые значения",
306
+ clearAll: "Очистить все",
307
+ custom: "Произвольный",
308
+ today: "Сегодня",
309
+ last3Days: "Последние 3 дня",
310
+ last7Days: "Последние 7 дней",
311
+ last30Days: "Последние 30 дней",
312
+ thisMonth: "Этот месяц",
313
+ allTime: "Все время",
314
+ startDate: "Дата начала",
315
+ endDate: "Дата окончания",
316
+ selectDate: "Выберите дату",
317
+ sunday: "Воскресенье",
318
+ monday: "Понедельник",
319
+ tuesday: "Вторник",
320
+ wednesday: "Среда",
321
+ thursday: "Четверг",
322
+ friday: "Пятница",
323
+ saturday: "Суббота",
324
+ jan: "Янв",
325
+ feb: "Фев",
326
+ mar: "Мар",
327
+ apr: "Апр",
328
+ may: "Май",
329
+ jun: "Июн",
330
+ jul: "Июл",
331
+ aug: "Авг",
332
+ sep: "Сен",
333
+ oct: "Окт",
334
+ nov: "Ноя",
335
+ dec: "Дек"
336
+ }, y = {
337
+ addFilter: "Filter hinzufügen",
338
+ clearFilters: "Filter löschen",
339
+ noFiltersApplied: "Keine Filter angewendet",
340
+ moreFilters: "+{count} weitere",
341
+ selectAll: "Alle auswählen",
342
+ inverse: "Umkehren",
343
+ none: "Keine",
344
+ search: "Suchen",
345
+ typeAndPressEnter: "Eingeben und Enter drücken...",
346
+ onlyNumericAllowed: "Nur numerische Werte sind erlaubt",
347
+ clearAll: "Alle löschen",
348
+ custom: "Benutzerdefiniert",
349
+ today: "Heute",
350
+ last3Days: "Letzte 3 Tage",
351
+ last7Days: "Letzte 7 Tage",
352
+ last30Days: "Letzte 30 Tage",
353
+ thisMonth: "Dieser Monat",
354
+ allTime: "Gesamter Zeitraum",
355
+ startDate: "Startdatum",
356
+ endDate: "Enddatum",
357
+ selectDate: "Datum auswählen",
358
+ sunday: "Sonntag",
359
+ monday: "Montag",
360
+ tuesday: "Dienstag",
361
+ wednesday: "Mittwoch",
362
+ thursday: "Donnerstag",
363
+ friday: "Freitag",
364
+ saturday: "Samstag",
365
+ jan: "Jan",
366
+ feb: "Feb",
367
+ mar: "Mär",
368
+ apr: "Apr",
369
+ may: "Mai",
370
+ jun: "Jun",
371
+ jul: "Jul",
372
+ aug: "Aug",
373
+ sep: "Sep",
374
+ oct: "Okt",
375
+ nov: "Nov",
376
+ dec: "Dez"
377
+ }, c = {
378
+ addFilter: "添加筛选",
379
+ clearFilters: "清除筛选",
380
+ noFiltersApplied: "未应用筛选",
381
+ moreFilters: "+{count}个",
382
+ selectAll: "全选",
383
+ inverse: "反选",
384
+ none: "清空",
385
+ search: "搜索",
386
+ typeAndPressEnter: "输入并按回车...",
387
+ onlyNumericAllowed: "仅允许输入数字",
388
+ clearAll: "清除全部",
389
+ custom: "自定义",
390
+ today: "今天",
391
+ last3Days: "最近3天",
392
+ last7Days: "最近7天",
393
+ last30Days: "最近30天",
394
+ thisMonth: "本月",
395
+ allTime: "全部时间",
396
+ startDate: "开始日期",
397
+ endDate: "结束日期",
398
+ selectDate: "选择日期",
399
+ sunday: "星期日",
400
+ monday: "星期一",
401
+ tuesday: "星期二",
402
+ wednesday: "星期三",
403
+ thursday: "星期四",
404
+ friday: "星期五",
405
+ saturday: "星期六",
406
+ jan: "1月",
407
+ feb: "2月",
408
+ mar: "3月",
409
+ apr: "4月",
410
+ may: "5月",
411
+ jun: "6月",
412
+ jul: "7月",
413
+ aug: "8月",
414
+ sep: "9月",
415
+ oct: "10月",
416
+ nov: "11月",
417
+ dec: "12月"
418
+ }, m = {
419
+ en: t,
420
+ es: r,
421
+ ja: n,
422
+ ar: l,
423
+ fr: i,
424
+ pt: o,
425
+ tr: d,
426
+ ru: u,
427
+ de: y,
428
+ zh: c
429
+ }, A = t;
430
+ function D(e) {
431
+ const a = e ?? s();
432
+ return m[a] ?? A;
433
+ }
434
+ function h(e) {
435
+ return [e.sunday, e.monday, e.tuesday, e.wednesday, e.thursday, e.friday, e.saturday];
436
+ }
437
+ function F(e) {
438
+ return [e.jan, e.feb, e.mar, e.apr, e.may, e.jun, e.jul, e.aug, e.sep, e.oct, e.nov, e.dec];
439
+ }
440
+ function T(e, a) {
441
+ return e.moreFilters.replace("{count}", String(a));
442
+ }
443
+ export {
444
+ A as DEFAULT_FILTER_TRANSLATIONS,
445
+ m as FILTER_TRANSLATIONS,
446
+ T as formatMoreFilters,
447
+ h as getDayNames,
448
+ D as getFilterTranslations,
449
+ F as getMonthAbbreviations
450
+ };
@@ -1,6 +1,7 @@
1
1
  import { ReactNode, ComponentProps } from 'react';
2
2
  import { Button } from '../../../vendor/shadcn/button';
3
3
  import { Badge } from '../../../vendor/shadcn/badge';
4
+ import { FilterLanguage, FilterTranslations } from './filter-translations';
4
5
  interface FilterTagProps extends ComponentProps<typeof Badge> {
5
6
  label: string;
6
7
  onRemove?: () => void;
@@ -14,6 +15,15 @@ interface FilterButtonProps extends Omit<ComponentProps<typeof Button>, "childre
14
15
  onRemoveFilter?: (filterId: string) => void;
15
16
  onClearAll?: () => void;
16
17
  maxVisibleTags?: number;
18
+ /**
19
+ * Language code for translations
20
+ * @default "en"
21
+ */
22
+ lang?: FilterLanguage;
23
+ /**
24
+ * Custom translations (overrides lang-based translations)
25
+ */
26
+ translations?: FilterTranslations;
17
27
  }
18
28
  declare const FilterButton: import('react').ForwardRefExoticComponent<Omit<FilterButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
19
29
  interface FilterSectionItem {
@@ -35,6 +45,15 @@ interface FilterSectionPropsBase {
35
45
  enableNone?: boolean;
36
46
  /** Optional description text to display below the search input (if any) and above the title */
37
47
  description?: ReactNode;
48
+ /**
49
+ * Language code for translations
50
+ * @default "en"
51
+ */
52
+ lang?: FilterLanguage;
53
+ /**
54
+ * Custom translations (overrides lang-based translations)
55
+ */
56
+ translations?: FilterTranslations;
38
57
  }
39
58
  interface FilterSectionCheckboxProps extends FilterSectionPropsBase {
40
59
  type?: "checkbox";
@@ -74,6 +93,17 @@ interface FilterContentProps {
74
93
  searchValue?: string;
75
94
  onSearchChange?: (value: string) => void;
76
95
  className?: string;
96
+ /**
97
+ * Language code for translations
98
+ * @default "en"
99
+ */
100
+ lang?: FilterLanguage;
101
+ /**
102
+ * Custom translations (overrides lang-based translations)
103
+ */
104
+ translations?: FilterTranslations;
77
105
  }
78
106
  declare const FilterContent: import('react').ForwardRefExoticComponent<FilterContentProps & import('react').RefAttributes<HTMLDivElement>>;
79
107
  export { FilterButton, FilterTag, FilterSection, FilterCheckboxOption, FilterRadioOption, FilterContent, type FilterButtonProps, type FilterTagProps, type FilterSectionProps, type FilterSectionPropsBase, type FilterSectionCheckboxProps, type FilterSectionRadioProps, type FilterSectionItem, type FilterCheckboxOptionProps, type FilterRadioOptionProps, type FilterContentProps, };
108
+ export type { FilterLanguage, FilterTranslations } from './filter-translations';
109
+ export { FILTER_TRANSLATIONS, DEFAULT_FILTER_TRANSLATIONS, getFilterTranslations, formatMoreFilters, } from './filter-translations';