@yuno-payments/dashboard-design-system 0.0.167 → 0.0.170
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/components/atoms/access-denied-alert/access-denied-alert.d.ts +0 -16
- package/dist/components/atoms/accordion/accordion.d.ts +0 -66
- package/dist/components/atoms/alert/alert.d.ts +1 -26
- package/dist/components/atoms/alert/alert.js +8 -9
- package/dist/components/atoms/avatar/avatar-group.d.ts +0 -28
- package/dist/components/atoms/avatar/avatar.d.ts +0 -25
- package/dist/components/atoms/avatar/avatar.js +9 -9
- package/dist/components/atoms/badge/badge.d.ts +2 -30
- package/dist/components/atoms/badge/badge.js +11 -27
- package/dist/components/atoms/button/button.d.ts +0 -44
- package/dist/components/atoms/card/card.d.ts +3 -137
- package/dist/components/atoms/card/card.js +28 -56
- package/dist/components/atoms/checkbox/checkbox.d.ts +2 -38
- package/dist/components/atoms/checkbox/checkbox.js +27 -61
- package/dist/components/atoms/combobox/combobox.d.ts +0 -18
- package/dist/components/atoms/combobox/combobox.js +41 -41
- package/dist/components/atoms/combobox/types.d.ts +1 -90
- package/dist/components/atoms/currency-field/currency-field.d.ts +0 -38
- package/dist/components/atoms/currency-field/currency-field.js +19 -22
- package/dist/components/atoms/date-picker/date-picker.d.ts +0 -15
- package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +0 -15
- package/dist/components/atoms/dots-menu/dots-menu.d.ts +0 -16
- package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
- package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +0 -52
- package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +0 -50
- package/dist/components/atoms/field/field.d.ts +0 -55
- package/dist/components/atoms/field/field.js +46 -53
- package/dist/components/atoms/filter/filter-date-range.d.ts +2 -12
- package/dist/components/atoms/filter/filter-date-range.js +168 -203
- package/dist/components/atoms/filter/filter.d.ts +0 -6
- package/dist/components/atoms/filter/filter.js +76 -91
- package/dist/components/atoms/filter/index.d.ts +1 -1
- package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +2 -208
- package/dist/components/atoms/filter-dropdown/filter-dropdown.js +160 -214
- package/dist/components/atoms/icon/icon-list.d.ts +0 -5
- package/dist/components/atoms/icon/icon-list.js +384 -394
- package/dist/components/atoms/icon/icon.d.ts +0 -29
- package/dist/components/atoms/index.d.ts +2 -3
- package/dist/components/atoms/label/index.d.ts +1 -1
- package/dist/components/atoms/link/link.d.ts +0 -20
- package/dist/components/atoms/multi-select/multi-select.d.ts +1 -1
- package/dist/components/atoms/multi-select/multi-select.js +6 -6
- package/dist/components/atoms/multi-values-field/multi-values-field.d.ts +0 -16
- package/dist/components/atoms/multi-values-field/multi-values-field.js +87 -109
- package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +0 -81
- package/dist/components/atoms/otp-field/otp-field.d.ts +0 -32
- package/dist/components/atoms/password-field/password-field.d.ts +0 -23
- package/dist/components/atoms/password-field/password-field.js +1 -1
- package/dist/components/atoms/progress/progress.d.ts +0 -15
- package/dist/components/atoms/protected-field/protected-field.d.ts +0 -10
- package/dist/components/atoms/protected-field/protected-field.types.d.ts +0 -14
- package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
- package/dist/components/atoms/radio-group/radio-group.d.ts +1 -50
- package/dist/components/atoms/radio-group/radio-group.js +12 -13
- package/dist/components/atoms/search-field/search-field.d.ts +0 -14
- package/dist/components/atoms/search-field/search-field.js +17 -17
- package/dist/components/atoms/search-field/search-field.types.d.ts +0 -57
- package/dist/components/atoms/select/index.d.ts +0 -2
- package/dist/components/atoms/select/select.d.ts +1 -83
- package/dist/components/atoms/select/select.js +21 -21
- package/dist/components/atoms/separator/separator.d.ts +0 -17
- package/dist/components/atoms/skeleton/index.d.ts +0 -9
- package/dist/components/atoms/switch/switch.d.ts +2 -56
- package/dist/components/atoms/switch/switch.js +32 -64
- package/dist/components/atoms/tabs/index.d.ts +0 -16
- package/dist/components/atoms/textarea/textarea.d.ts +0 -32
- package/dist/components/atoms/textarea/textarea.js +1 -1
- package/dist/components/atoms/time-picker/time-picker.d.ts +2 -73
- package/dist/components/atoms/time-picker/time-picker.js +3 -218
- package/dist/components/atoms/toaster/index.d.ts +0 -15
- package/dist/components/atoms/toggle-group/toggle-group.d.ts +1 -26
- package/dist/components/atoms/toggle-group/toggle-group.js +14 -15
- package/dist/components/atoms/tooltip/tooltip.d.ts +2 -53
- package/dist/components/atoms/typography/typography.d.ts +0 -18
- package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +0 -50
- package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
- package/dist/components/molecules/dialog-content/dialog-content.d.ts +0 -16
- package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +0 -20
- package/dist/components/molecules/dialog-header/dialog-header.d.ts +0 -31
- package/dist/components/molecules/empty/empty-icon.js +6 -6
- package/dist/components/molecules/empty/empty.d.ts +1 -16
- package/dist/components/molecules/empty/empty.js +34 -37
- package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +0 -17
- package/dist/components/molecules/pagination/pagination.d.ts +0 -49
- package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +0 -41
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.d.ts +0 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
- package/dist/components/organisms/data-table/components/data-table-body.d.ts +0 -18
- package/dist/components/organisms/data-table/components/data-table-header.d.ts +0 -12
- package/dist/components/organisms/data-table/components/data-table-header.js +7 -7
- package/dist/components/organisms/data-table/components/states/data-table-loading.d.ts +0 -24
- package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
- package/dist/components/organisms/data-table/data-table.d.ts +4 -133
- package/dist/components/organisms/data-table/data-table.js +100 -132
- package/dist/components/organisms/data-table/data-table.types.d.ts +26 -35
- package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +41 -57
- package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +2 -8
- package/dist/components/organisms/data-table/hooks/use-data-table-state.js +47 -82
- package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +2 -8
- package/dist/components/organisms/data-table/utils/data-table-constants.js +10 -16
- package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +0 -1652
- package/dist/components/organisms/data-table/utils/data-table-styles.js +14 -29
- package/dist/components/organisms/dialog/dialog.d.ts +1 -67
- package/dist/components/organisms/dialog/dialog.js +61 -78
- package/dist/components/organisms/index.d.ts +0 -2
- package/dist/components/organisms/sheet/sheet.d.ts +0 -69
- package/dist/components/organisms/sheet/sheet.js +33 -34
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +162 -173
- package/dist/vendor/shadcn/avatar.js +19 -19
- package/dist/vendor/shadcn/badge.js +15 -15
- package/dist/vendor/shadcn/card.js +7 -7
- package/dist/vendor/shadcn/date-picker.d.ts +2 -2
- package/dist/vendor/shadcn/date-picker.js +1 -1
- package/dist/vendor/shadcn/date-range-picker.d.ts +2 -2
- package/dist/vendor/shadcn/date-range-picker.js +1 -1
- package/dist/vendor/shadcn/dialog.js +2 -2
- package/dist/vendor/shadcn/input-group.js +17 -17
- package/dist/vendor/shadcn/input.js +7 -7
- package/dist/vendor/shadcn/popover.js +1 -1
- package/dist/vendor/shadcn/select.js +2 -2
- package/dist/vendor/shadcn/sonner.d.ts +1 -26
- package/dist/vendor/shadcn/sonner.js +8 -12
- package/dist/vendor/shadcn/table.js +30 -30
- package/dist/vendor/shadcn/textarea.js +9 -9
- package/dist/vendor/shadcn/time-picker.d.ts +2 -1
- package/dist/vendor/shadcn/time-picker.js +23 -17
- package/dist/vendor/shadcn/toggle.js +13 -13
- package/dist/vendor/shadcn/tooltip.js +15 -25
- package/package.json +1 -1
- package/dist/components/atoms/icon/aida-logo.d.ts +0 -3
- package/dist/components/atoms/icon/aida-logo.js +0 -64
- package/dist/components/atoms/label/label.d.ts +0 -11
- package/dist/components/atoms/label/label.js +0 -28
- package/dist/components/atoms/loading/index.d.ts +0 -1
- package/dist/components/atoms/loading/loading.d.ts +0 -39
- package/dist/components/atoms/loading/loading.js +0 -37
- package/dist/components/atoms/select/search-select.d.ts +0 -22
- package/dist/components/atoms/select/search-select.js +0 -201
- package/dist/components/organisms/tutorial/index.d.ts +0 -2
- package/dist/components/organisms/tutorial/tutorial.d.ts +0 -16
- package/dist/components/organisms/tutorial/tutorial.js +0 -114
- package/dist/components/organisms/tutorial/tutorial.types.d.ts +0 -15
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/use-body-scroll-lock.d.ts +0 -13
- package/dist/hooks/use-escape-key.d.ts +0 -14
- package/dist/hooks/use-media-query.d.ts +0 -20
- package/dist/hooks/use-media-query.js +0 -21
- package/dist/lib/notification-alert.d.ts +0 -42
- package/dist/lib/notification-alert.js +0 -75
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +0 -30
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +0 -36
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +0 -36
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +0 -30
|
@@ -1,242 +1,207 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { RadioGroup as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { DatePicker as
|
|
6
|
-
import { TimePicker as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
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
|
-
}
|
|
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
|
+
] })
|
|
86
27
|
);
|
|
87
|
-
|
|
88
|
-
const
|
|
28
|
+
l.displayName = "FilterDateRangeOption";
|
|
29
|
+
const T = b(
|
|
89
30
|
({
|
|
90
|
-
showCustomFields:
|
|
91
|
-
onCustomFieldsChange:
|
|
92
|
-
startDate:
|
|
93
|
-
endDate:
|
|
94
|
-
startTime:
|
|
95
|
-
endTime:
|
|
96
|
-
onStartDateChange:
|
|
97
|
-
onEndDateChange:
|
|
98
|
-
onStartTimeChange:
|
|
99
|
-
onEndTimeChange:
|
|
100
|
-
mode:
|
|
101
|
-
singleDayLabel:
|
|
102
|
-
showAllTime:
|
|
103
|
-
className:
|
|
104
|
-
value:
|
|
105
|
-
onValueChange:
|
|
106
|
-
...
|
|
107
|
-
},
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
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);
|
|
116
57
|
} else
|
|
117
|
-
|
|
58
|
+
r?.(void 0), d?.(void 0);
|
|
118
59
|
};
|
|
119
|
-
return /* @__PURE__ */ e.
|
|
60
|
+
return /* @__PURE__ */ e.jsxs(
|
|
120
61
|
"div",
|
|
121
62
|
{
|
|
122
|
-
ref:
|
|
123
|
-
className:
|
|
124
|
-
children:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/* @__PURE__ */ e.jsx(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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: [
|
|
188
154
|
/* @__PURE__ */ e.jsx(
|
|
189
|
-
|
|
155
|
+
l,
|
|
190
156
|
{
|
|
191
157
|
label: "Today",
|
|
192
|
-
value:
|
|
193
|
-
description:
|
|
158
|
+
value: "today",
|
|
159
|
+
description: "Today"
|
|
194
160
|
}
|
|
195
161
|
),
|
|
196
162
|
/* @__PURE__ */ e.jsx(
|
|
197
|
-
|
|
163
|
+
l,
|
|
198
164
|
{
|
|
199
165
|
label: "Last 3 days",
|
|
200
|
-
value:
|
|
201
|
-
description:
|
|
166
|
+
value: "last-3-days",
|
|
167
|
+
description: "Friday, Jan 3"
|
|
202
168
|
}
|
|
203
169
|
),
|
|
204
170
|
/* @__PURE__ */ e.jsx(
|
|
205
|
-
|
|
171
|
+
l,
|
|
206
172
|
{
|
|
207
173
|
label: "Last 7 days",
|
|
208
|
-
value:
|
|
209
|
-
description:
|
|
174
|
+
value: "last-7-days",
|
|
175
|
+
description: "Dic 29 - Jan 3"
|
|
210
176
|
}
|
|
211
177
|
),
|
|
212
178
|
/* @__PURE__ */ e.jsx(
|
|
213
|
-
|
|
179
|
+
l,
|
|
214
180
|
{
|
|
215
181
|
label: "Last 30 days",
|
|
216
|
-
value:
|
|
217
|
-
description:
|
|
182
|
+
value: "last-30-days",
|
|
183
|
+
description: "Dic 3 - Jan 3"
|
|
218
184
|
}
|
|
219
185
|
),
|
|
220
186
|
/* @__PURE__ */ e.jsx(
|
|
221
|
-
|
|
187
|
+
l,
|
|
222
188
|
{
|
|
223
189
|
label: "This month",
|
|
224
|
-
value:
|
|
225
|
-
description:
|
|
190
|
+
value: "this-month",
|
|
191
|
+
description: "Jan 2026"
|
|
226
192
|
}
|
|
227
193
|
),
|
|
228
|
-
|
|
194
|
+
R && /* @__PURE__ */ e.jsx(l, { label: "All time", value: "all-time" })
|
|
229
195
|
] })
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
]
|
|
233
199
|
}
|
|
234
200
|
);
|
|
235
201
|
}
|
|
236
202
|
);
|
|
237
|
-
|
|
203
|
+
T.displayName = "FilterDateRange";
|
|
238
204
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
o as FilterDateRangeValue
|
|
205
|
+
T as FilterDateRange,
|
|
206
|
+
l as FilterDateRangeOption
|
|
242
207
|
};
|
|
@@ -20,8 +20,6 @@ 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;
|
|
25
23
|
}
|
|
26
24
|
interface FilterSectionPropsBase {
|
|
27
25
|
title: string;
|
|
@@ -52,10 +50,6 @@ interface FilterCheckboxOptionProps {
|
|
|
52
50
|
onCheckedChange?: (checked: boolean) => void;
|
|
53
51
|
description?: string;
|
|
54
52
|
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;
|
|
59
53
|
}
|
|
60
54
|
declare const FilterCheckboxOption: import('react').ForwardRefExoticComponent<FilterCheckboxOptionProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
61
55
|
interface FilterRadioOptionProps {
|