@yuno-payments/dashboard-design-system 0.0.170 → 0.0.172

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 (161) hide show
  1. package/dist/components/atoms/access-denied-alert/access-denied-alert.d.ts +16 -0
  2. package/dist/components/atoms/accordion/accordion.d.ts +66 -0
  3. package/dist/components/atoms/alert/alert.d.ts +26 -1
  4. package/dist/components/atoms/alert/alert.js +9 -8
  5. package/dist/components/atoms/avatar/avatar-group.d.ts +28 -0
  6. package/dist/components/atoms/avatar/avatar.d.ts +25 -0
  7. package/dist/components/atoms/avatar/avatar.js +9 -9
  8. package/dist/components/atoms/badge/badge.d.ts +30 -2
  9. package/dist/components/atoms/badge/badge.js +27 -11
  10. package/dist/components/atoms/button/button.d.ts +44 -0
  11. package/dist/components/atoms/card/card.d.ts +137 -3
  12. package/dist/components/atoms/card/card.js +56 -28
  13. package/dist/components/atoms/checkbox/checkbox.d.ts +38 -2
  14. package/dist/components/atoms/checkbox/checkbox.js +61 -27
  15. package/dist/components/atoms/combobox/combobox.d.ts +18 -0
  16. package/dist/components/atoms/combobox/combobox.js +41 -41
  17. package/dist/components/atoms/combobox/types.d.ts +90 -1
  18. package/dist/components/atoms/currency-field/currency-field.d.ts +38 -0
  19. package/dist/components/atoms/currency-field/currency-field.js +22 -19
  20. package/dist/components/atoms/date-picker/date-picker.d.ts +15 -0
  21. package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +15 -0
  22. package/dist/components/atoms/dots-menu/dots-menu.d.ts +16 -0
  23. package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
  24. package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +52 -0
  25. package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +50 -0
  26. package/dist/components/atoms/field/field.d.ts +55 -0
  27. package/dist/components/atoms/field/field.js +53 -46
  28. package/dist/components/atoms/filter/filter-date-range.d.ts +12 -2
  29. package/dist/components/atoms/filter/filter-date-range.js +203 -168
  30. package/dist/components/atoms/filter/filter.d.ts +6 -0
  31. package/dist/components/atoms/filter/filter.js +91 -76
  32. package/dist/components/atoms/filter/index.d.ts +1 -1
  33. package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +208 -2
  34. package/dist/components/atoms/filter-dropdown/filter-dropdown.js +214 -160
  35. package/dist/components/atoms/icon/aida-logo.d.ts +3 -0
  36. package/dist/components/atoms/icon/aida-logo.js +64 -0
  37. package/dist/components/atoms/icon/icon-list.d.ts +5 -0
  38. package/dist/components/atoms/icon/icon-list.js +394 -384
  39. package/dist/components/atoms/icon/icon.d.ts +29 -0
  40. package/dist/components/atoms/index.d.ts +3 -2
  41. package/dist/components/atoms/label/index.d.ts +1 -1
  42. package/dist/components/atoms/label/label.d.ts +11 -0
  43. package/dist/components/atoms/label/label.js +28 -0
  44. package/dist/components/atoms/link/link.d.ts +20 -0
  45. package/dist/components/atoms/loading/index.d.ts +1 -0
  46. package/dist/components/atoms/loading/loading.d.ts +39 -0
  47. package/dist/components/atoms/loading/loading.js +37 -0
  48. package/dist/components/atoms/multi-select/multi-select.d.ts +1 -1
  49. package/dist/components/atoms/multi-select/multi-select.js +6 -6
  50. package/dist/components/atoms/multi-values-field/multi-values-field.d.ts +16 -0
  51. package/dist/components/atoms/multi-values-field/multi-values-field.js +109 -87
  52. package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +81 -0
  53. package/dist/components/atoms/otp-field/otp-field.d.ts +32 -0
  54. package/dist/components/atoms/password-field/password-field.d.ts +23 -0
  55. package/dist/components/atoms/password-field/password-field.js +1 -1
  56. package/dist/components/atoms/progress/progress.d.ts +15 -0
  57. package/dist/components/atoms/protected-field/protected-field.d.ts +10 -0
  58. package/dist/components/atoms/protected-field/protected-field.types.d.ts +14 -0
  59. package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
  60. package/dist/components/atoms/radio-group/radio-group.d.ts +50 -1
  61. package/dist/components/atoms/radio-group/radio-group.js +13 -12
  62. package/dist/components/atoms/search-field/search-field.d.ts +14 -0
  63. package/dist/components/atoms/search-field/search-field.js +17 -17
  64. package/dist/components/atoms/search-field/search-field.types.d.ts +57 -0
  65. package/dist/components/atoms/select/index.d.ts +2 -0
  66. package/dist/components/atoms/select/search-select.d.ts +22 -0
  67. package/dist/components/atoms/select/search-select.js +201 -0
  68. package/dist/components/atoms/select/select.d.ts +83 -1
  69. package/dist/components/atoms/select/select.js +21 -21
  70. package/dist/components/atoms/separator/separator.d.ts +17 -0
  71. package/dist/components/atoms/skeleton/index.d.ts +9 -0
  72. package/dist/components/atoms/switch/switch.d.ts +56 -2
  73. package/dist/components/atoms/switch/switch.js +64 -32
  74. package/dist/components/atoms/tabs/index.d.ts +16 -0
  75. package/dist/components/atoms/textarea/textarea.d.ts +32 -0
  76. package/dist/components/atoms/textarea/textarea.js +1 -1
  77. package/dist/components/atoms/time-picker/time-picker.d.ts +73 -2
  78. package/dist/components/atoms/time-picker/time-picker.js +218 -3
  79. package/dist/components/atoms/toaster/index.d.ts +15 -0
  80. package/dist/components/atoms/toggle-group/toggle-group.d.ts +26 -1
  81. package/dist/components/atoms/toggle-group/toggle-group.js +15 -14
  82. package/dist/components/atoms/tooltip/tooltip.d.ts +53 -2
  83. package/dist/components/atoms/typography/typography.d.ts +18 -0
  84. package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +50 -0
  85. package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
  86. package/dist/components/molecules/dialog-content/dialog-content.d.ts +16 -0
  87. package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +20 -0
  88. package/dist/components/molecules/dialog-header/dialog-header.d.ts +31 -0
  89. package/dist/components/molecules/empty/empty-icon.js +6 -6
  90. package/dist/components/molecules/empty/empty.d.ts +16 -1
  91. package/dist/components/molecules/empty/empty.js +37 -34
  92. package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +17 -0
  93. package/dist/components/molecules/pagination/pagination.d.ts +49 -0
  94. package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +41 -0
  95. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
  96. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
  97. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.d.ts +18 -0
  98. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
  99. package/dist/components/organisms/data-table/components/data-table-body.d.ts +18 -0
  100. package/dist/components/organisms/data-table/components/data-table-header.d.ts +12 -0
  101. package/dist/components/organisms/data-table/components/data-table-header.js +7 -7
  102. package/dist/components/organisms/data-table/components/states/data-table-loading.d.ts +24 -0
  103. package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
  104. package/dist/components/organisms/data-table/data-table.d.ts +133 -4
  105. package/dist/components/organisms/data-table/data-table.js +132 -100
  106. package/dist/components/organisms/data-table/data-table.types.d.ts +35 -26
  107. package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +57 -41
  108. package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +8 -2
  109. package/dist/components/organisms/data-table/hooks/use-data-table-state.js +82 -47
  110. package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +8 -2
  111. package/dist/components/organisms/data-table/utils/data-table-constants.js +16 -10
  112. package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +1652 -0
  113. package/dist/components/organisms/data-table/utils/data-table-styles.js +29 -14
  114. package/dist/components/organisms/dialog/dialog.d.ts +67 -1
  115. package/dist/components/organisms/dialog/dialog.js +78 -61
  116. package/dist/components/organisms/index.d.ts +2 -0
  117. package/dist/components/organisms/sheet/sheet.d.ts +69 -0
  118. package/dist/components/organisms/sheet/sheet.js +34 -33
  119. package/dist/components/organisms/tutorial/index.d.ts +2 -0
  120. package/dist/components/organisms/tutorial/tutorial.d.ts +16 -0
  121. package/dist/components/organisms/tutorial/tutorial.js +114 -0
  122. package/dist/components/organisms/tutorial/tutorial.types.d.ts +15 -0
  123. package/dist/hooks/index.d.ts +3 -0
  124. package/dist/hooks/use-body-scroll-lock.d.ts +13 -0
  125. package/dist/hooks/use-escape-key.d.ts +14 -0
  126. package/dist/hooks/use-media-query.d.ts +20 -0
  127. package/dist/hooks/use-media-query.js +21 -0
  128. package/dist/index.css +1 -1
  129. package/dist/index.d.ts +2 -0
  130. package/dist/index.js +173 -162
  131. package/dist/lib/notification-alert.d.ts +42 -0
  132. package/dist/lib/notification-alert.js +75 -0
  133. package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +8 -0
  134. package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +8 -0
  135. package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +8 -0
  136. package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +8 -0
  137. package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +30 -0
  138. package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +36 -0
  139. package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +36 -0
  140. package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +30 -0
  141. package/dist/vendor/shadcn/avatar.js +19 -19
  142. package/dist/vendor/shadcn/badge.js +15 -15
  143. package/dist/vendor/shadcn/card.js +7 -7
  144. package/dist/vendor/shadcn/date-picker.d.ts +2 -2
  145. package/dist/vendor/shadcn/date-picker.js +1 -1
  146. package/dist/vendor/shadcn/date-range-picker.d.ts +2 -2
  147. package/dist/vendor/shadcn/date-range-picker.js +1 -1
  148. package/dist/vendor/shadcn/dialog.js +2 -2
  149. package/dist/vendor/shadcn/input-group.js +17 -17
  150. package/dist/vendor/shadcn/input.js +7 -7
  151. package/dist/vendor/shadcn/popover.js +1 -1
  152. package/dist/vendor/shadcn/select.js +2 -2
  153. package/dist/vendor/shadcn/sonner.d.ts +26 -1
  154. package/dist/vendor/shadcn/sonner.js +12 -8
  155. package/dist/vendor/shadcn/table.js +30 -30
  156. package/dist/vendor/shadcn/textarea.js +9 -9
  157. package/dist/vendor/shadcn/time-picker.d.ts +1 -2
  158. package/dist/vendor/shadcn/time-picker.js +17 -23
  159. package/dist/vendor/shadcn/toggle.js +13 -13
  160. package/dist/vendor/shadcn/tooltip.js +25 -15
  161. package/package.json +1 -1
@@ -1,207 +1,242 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as b } from "react";
3
- import { RadioGroup as y, RadioGroupItem as O } from "../../../vendor/shadcn/radio-group.js";
4
- import { cn as D } from "../../../lib/utils.js";
5
- import { DatePicker as m } from "../date-picker/date-picker.js";
6
- import { TimePicker as n } from "../time-picker/time-picker.js";
7
- const l = b(
8
- ({ label: o, description: s, value: i, className: x, ...t }, c) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-4 w-full", children: [
9
- /* @__PURE__ */ e.jsxs(
10
- "button",
11
- {
12
- ref: c,
13
- className: D(
14
- "flex-1 flex items-start gap-3 cursor-pointer",
15
- x
16
- ),
17
- type: "button",
18
- ...t,
19
- children: [
20
- /* @__PURE__ */ e.jsx(O, { value: i, className: "mt-px" }),
21
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-1.5 items-start justify-center pb-0 pt-px px-0", children: /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium leading-none text-foreground", children: o }) })
22
- ]
23
- }
24
- ),
25
- s && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e.jsx("span", { className: "text-xs font-normal leading-none text-muted-foreground whitespace-nowrap", children: s }) })
26
- ] })
2
+ import { forwardRef as y, useMemo as $ } from "react";
3
+ import { RadioGroup as b, RadioGroupItem as H } from "../../../vendor/shadcn/radio-group.js";
4
+ import { cn as N } from "../../../lib/utils.js";
5
+ import { DatePicker as f } from "../date-picker/date-picker.js";
6
+ import { TimePicker as g } from "../time-picker/time-picker.js";
7
+ const o = {
8
+ CUSTOM: "CUSTOM",
9
+ TODAY: "TODAY",
10
+ LAST_3_DAYS: "LAST_3_DAYS",
11
+ LAST_7_DAYS: "LAST_7_DAYS",
12
+ LAST_30_DAYS: "LAST_30_DAYS",
13
+ THIS_MONTH: "THIS_MONTH",
14
+ ALL_TIME: "ALL_TIME"
15
+ }, i = (s) => {
16
+ const t = s.getDate();
17
+ return `${[
18
+ "Jan",
19
+ "Feb",
20
+ "Mar",
21
+ "Apr",
22
+ "May",
23
+ "Jun",
24
+ "Jul",
25
+ "Aug",
26
+ "Sep",
27
+ "Oct",
28
+ "Nov",
29
+ "Dec"
30
+ ][s.getMonth()]} ${t}`;
31
+ }, R = (s) => {
32
+ const a = [
33
+ "Jan",
34
+ "Feb",
35
+ "Mar",
36
+ "Apr",
37
+ "May",
38
+ "Jun",
39
+ "Jul",
40
+ "Aug",
41
+ "Sep",
42
+ "Oct",
43
+ "Nov",
44
+ "Dec"
45
+ ][s.getMonth()], n = s.getFullYear();
46
+ return `${a} ${n}`;
47
+ }, C = (s) => ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][s.getDay()], F = () => {
48
+ const s = /* @__PURE__ */ new Date();
49
+ s.setHours(0, 0, 0, 0);
50
+ const t = `${C(s)}, ${i(s)}`, a = new Date(s);
51
+ a.setDate(a.getDate() - 2);
52
+ const n = `${i(a)} - ${i(s)}`, r = new Date(s);
53
+ r.setDate(r.getDate() - 6);
54
+ const m = `${i(r)} - ${i(s)}`, l = new Date(s);
55
+ l.setDate(l.getDate() - 29);
56
+ const x = `${i(l)} - ${i(s)}`, D = R(s);
57
+ return {
58
+ today: t,
59
+ last3Days: n,
60
+ last7Days: m,
61
+ last30Days: x,
62
+ thisMonth: D
63
+ };
64
+ }, c = y(
65
+ ({ label: s, description: t, value: a, className: n, ...r }, m) => {
66
+ const l = `date-range-${a}`;
67
+ return /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-4 w-full py-1", children: [
68
+ /* @__PURE__ */ e.jsxs(
69
+ "label",
70
+ {
71
+ ref: m,
72
+ className: N(
73
+ "flex-1 flex items-start gap-3 cursor-pointer",
74
+ n
75
+ ),
76
+ ...r,
77
+ children: [
78
+ /* @__PURE__ */ e.jsx(H, { id: l, value: a, className: "mt-px" }),
79
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-1.5 items-start justify-center pb-0 pt-px px-0", children: /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium leading-none text-foreground", children: s }) })
80
+ ]
81
+ }
82
+ ),
83
+ t && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e.jsx("span", { className: "text-xs font-normal leading-none text-muted-foreground whitespace-nowrap", children: t }) })
84
+ ] });
85
+ }
27
86
  );
28
- l.displayName = "FilterDateRangeOption";
29
- const T = b(
87
+ c.displayName = "FilterDateRangeOption";
88
+ const I = y(
30
89
  ({
31
- showCustomFields: o = !1,
32
- onCustomFieldsChange: s,
33
- startDate: i,
34
- endDate: x,
35
- startTime: t = "",
36
- endTime: c = "",
37
- onStartDateChange: r,
38
- onEndDateChange: d,
39
- onStartTimeChange: f,
40
- onEndTimeChange: p,
41
- mode: h = "range",
42
- singleDayLabel: w = "Select date",
43
- showAllTime: R = !1,
44
- className: C,
45
- value: j,
46
- onValueChange: F,
47
- ...u
48
- }, P) => {
49
- const g = (a) => {
50
- F?.(a), s?.(a === "custom");
51
- }, J = (a) => {
52
- if (a) {
53
- const N = new Date(a);
54
- N.setHours(0, 0, 0, 0);
55
- const v = new Date(a);
56
- v.setHours(23, 59, 59, 999), r?.(N), d?.(v);
90
+ showCustomFields: s = !1,
91
+ onCustomFieldsChange: t,
92
+ startDate: a,
93
+ endDate: n,
94
+ startTime: r = "",
95
+ endTime: m = "",
96
+ onStartDateChange: l,
97
+ onEndDateChange: x,
98
+ onStartTimeChange: D,
99
+ onEndTimeChange: j,
100
+ mode: S = "range",
101
+ singleDayLabel: T = "Select date",
102
+ showAllTime: A = !1,
103
+ className: v,
104
+ value: _,
105
+ onValueChange: M,
106
+ ...L
107
+ }, w) => {
108
+ const p = $(() => F(), []), O = (d) => {
109
+ M?.(d), t?.(d === o.CUSTOM);
110
+ }, Y = (d) => {
111
+ if (d) {
112
+ const h = new Date(d);
113
+ h.setHours(0, 0, 0, 0);
114
+ const u = new Date(d);
115
+ u.setHours(23, 59, 59, 999), l?.(h), x?.(u);
57
116
  } else
58
- r?.(void 0), d?.(void 0);
117
+ l?.(void 0), x?.(void 0);
59
118
  };
60
- return /* @__PURE__ */ e.jsxs(
119
+ return /* @__PURE__ */ e.jsx(
61
120
  "div",
62
121
  {
63
- ref: P,
64
- className: D("flex flex-col gap-4 w-full", C),
65
- children: [
66
- /* @__PURE__ */ e.jsx(
67
- y,
68
- {
69
- value: j,
70
- onValueChange: g,
71
- ...u,
72
- children: /* @__PURE__ */ e.jsx(l, { label: "Custom", value: "custom" })
73
- }
74
- ),
75
- o && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
76
- h === "single" ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
77
- m,
78
- {
79
- date: i,
80
- onDateChange: J,
81
- placeholder: w,
82
- className: "h-9",
83
- iconPosition: "none"
84
- }
85
- ) }) : /* @__PURE__ */ e.jsxs("div", { className: "flex gap-4 items-start w-full", children: [
86
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
87
- m,
88
- {
89
- date: i,
90
- onDateChange: r,
91
- placeholder: "Start date",
92
- className: "h-9",
93
- iconPosition: "none"
94
- }
95
- ) }),
96
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
97
- m,
98
- {
99
- date: x,
100
- onDateChange: d,
101
- placeholder: "End date",
102
- className: "h-9",
103
- iconPosition: "none"
104
- }
105
- ) })
106
- ] }),
107
- h === "single" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-4 items-start w-full", children: [
108
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
109
- n,
110
- {
111
- value: t,
112
- onTimeChange: f,
113
- placeholder: "10:30:00",
114
- className: "h-9"
115
- }
116
- ) }),
117
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
118
- n,
119
- {
120
- value: c,
121
- onTimeChange: p,
122
- placeholder: "10:30:00",
123
- className: "h-9"
124
- }
125
- ) })
126
- ] }) : /* @__PURE__ */ e.jsxs("div", { className: "flex gap-4 items-start w-full", children: [
127
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
128
- n,
129
- {
130
- value: t,
131
- onTimeChange: f,
132
- placeholder: "10:30:00",
133
- className: "h-9"
134
- }
135
- ) }),
136
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
137
- n,
138
- {
139
- value: c,
140
- onTimeChange: p,
141
- placeholder: "10:30:00",
142
- className: "h-9"
143
- }
144
- ) })
145
- ] })
146
- ] }),
147
- /* @__PURE__ */ e.jsx(
148
- y,
149
- {
150
- value: j,
151
- onValueChange: g,
152
- ...u,
153
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
122
+ ref: w,
123
+ className: N("flex flex-col gap-4 w-full", v),
124
+ children: /* @__PURE__ */ e.jsxs(
125
+ b,
126
+ {
127
+ value: _,
128
+ onValueChange: O,
129
+ ...L,
130
+ children: [
131
+ /* @__PURE__ */ e.jsx(c, { label: "Custom", value: o.CUSTOM }),
132
+ s && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 pl-7", children: [
133
+ S === "single" ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
134
+ f,
135
+ {
136
+ date: a,
137
+ onChange: Y,
138
+ placeholder: T,
139
+ className: "h-9",
140
+ iconPosition: "none"
141
+ }
142
+ ) }) : /* @__PURE__ */ e.jsxs("div", { className: "flex gap-4 items-start w-full", children: [
143
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
144
+ f,
145
+ {
146
+ date: a,
147
+ onChange: l,
148
+ placeholder: "Start date",
149
+ className: "h-9",
150
+ iconPosition: "none"
151
+ }
152
+ ) }),
153
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
154
+ f,
155
+ {
156
+ date: n,
157
+ onChange: x,
158
+ placeholder: "End date",
159
+ className: "h-9",
160
+ iconPosition: "none"
161
+ }
162
+ ) })
163
+ ] }),
164
+ /* @__PURE__ */ e.jsxs("div", { className: "flex gap-4 items-start w-full", children: [
165
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
166
+ g,
167
+ {
168
+ value: r,
169
+ onChange: D,
170
+ mode: "dropdown",
171
+ use24Hour: !0,
172
+ width: "100%"
173
+ }
174
+ ) }),
175
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 flex flex-col gap-3", children: /* @__PURE__ */ e.jsx(
176
+ g,
177
+ {
178
+ value: m,
179
+ onChange: j,
180
+ mode: "dropdown",
181
+ use24Hour: !0,
182
+ width: "100%"
183
+ }
184
+ ) })
185
+ ] })
186
+ ] }),
187
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
154
188
  /* @__PURE__ */ e.jsx(
155
- l,
189
+ c,
156
190
  {
157
191
  label: "Today",
158
- value: "today",
159
- description: "Today"
192
+ value: o.TODAY,
193
+ description: p.today
160
194
  }
161
195
  ),
162
196
  /* @__PURE__ */ e.jsx(
163
- l,
197
+ c,
164
198
  {
165
199
  label: "Last 3 days",
166
- value: "last-3-days",
167
- description: "Friday, Jan 3"
200
+ value: o.LAST_3_DAYS,
201
+ description: p.last3Days
168
202
  }
169
203
  ),
170
204
  /* @__PURE__ */ e.jsx(
171
- l,
205
+ c,
172
206
  {
173
207
  label: "Last 7 days",
174
- value: "last-7-days",
175
- description: "Dic 29 - Jan 3"
208
+ value: o.LAST_7_DAYS,
209
+ description: p.last7Days
176
210
  }
177
211
  ),
178
212
  /* @__PURE__ */ e.jsx(
179
- l,
213
+ c,
180
214
  {
181
215
  label: "Last 30 days",
182
- value: "last-30-days",
183
- description: "Dic 3 - Jan 3"
216
+ value: o.LAST_30_DAYS,
217
+ description: p.last30Days
184
218
  }
185
219
  ),
186
220
  /* @__PURE__ */ e.jsx(
187
- l,
221
+ c,
188
222
  {
189
223
  label: "This month",
190
- value: "this-month",
191
- description: "Jan 2026"
224
+ value: o.THIS_MONTH,
225
+ description: p.thisMonth
192
226
  }
193
227
  ),
194
- R && /* @__PURE__ */ e.jsx(l, { label: "All time", value: "all-time" })
228
+ A && /* @__PURE__ */ e.jsx(c, { label: "All time", value: o.ALL_TIME })
195
229
  ] })
196
- }
197
- )
198
- ]
230
+ ]
231
+ }
232
+ )
199
233
  }
200
234
  );
201
235
  }
202
236
  );
203
- T.displayName = "FilterDateRange";
237
+ I.displayName = "FilterDateRange";
204
238
  export {
205
- T as FilterDateRange,
206
- l as FilterDateRangeOption
239
+ I as FilterDateRange,
240
+ c as FilterDateRangeOption,
241
+ o as FilterDateRangeValue
207
242
  };
@@ -20,6 +20,8 @@ interface FilterSectionItem {
20
20
  value: string;
21
21
  label: string;
22
22
  description?: string;
23
+ /** Optional icon URL to display before the label */
24
+ icon?: string;
23
25
  }
24
26
  interface FilterSectionPropsBase {
25
27
  title: string;
@@ -50,6 +52,10 @@ interface FilterCheckboxOptionProps {
50
52
  onCheckedChange?: (checked: boolean) => void;
51
53
  description?: string;
52
54
  className?: string;
55
+ /** Maximum label length before truncating (default: 14) */
56
+ maxLabelLength?: number;
57
+ /** Optional icon URL to display before the label */
58
+ icon?: string;
53
59
  }
54
60
  declare const FilterCheckboxOption: import('react').ForwardRefExoticComponent<FilterCheckboxOptionProps & import('react').RefAttributes<HTMLButtonElement>>;
55
61
  interface FilterRadioOptionProps {