@yuno-payments/dashboard-design-system 0.0.170 → 0.0.171
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 +16 -0
- package/dist/components/atoms/accordion/accordion.d.ts +66 -0
- package/dist/components/atoms/alert/alert.d.ts +26 -1
- package/dist/components/atoms/alert/alert.js +9 -8
- package/dist/components/atoms/avatar/avatar-group.d.ts +28 -0
- package/dist/components/atoms/avatar/avatar.d.ts +25 -0
- package/dist/components/atoms/avatar/avatar.js +9 -9
- package/dist/components/atoms/badge/badge.d.ts +30 -2
- package/dist/components/atoms/badge/badge.js +27 -11
- package/dist/components/atoms/button/button.d.ts +44 -0
- package/dist/components/atoms/card/card.d.ts +137 -3
- package/dist/components/atoms/card/card.js +56 -28
- package/dist/components/atoms/checkbox/checkbox.d.ts +38 -2
- package/dist/components/atoms/checkbox/checkbox.js +61 -27
- package/dist/components/atoms/combobox/combobox.d.ts +18 -0
- package/dist/components/atoms/combobox/combobox.js +41 -41
- package/dist/components/atoms/combobox/types.d.ts +90 -1
- package/dist/components/atoms/currency-field/currency-field.d.ts +38 -0
- package/dist/components/atoms/currency-field/currency-field.js +22 -19
- package/dist/components/atoms/date-picker/date-picker.d.ts +15 -0
- package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +15 -0
- package/dist/components/atoms/dots-menu/dots-menu.d.ts +16 -0
- package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
- package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +52 -0
- package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +50 -0
- package/dist/components/atoms/field/field.d.ts +55 -0
- package/dist/components/atoms/field/field.js +53 -46
- package/dist/components/atoms/filter/filter-date-range.d.ts +12 -2
- package/dist/components/atoms/filter/filter-date-range.js +203 -168
- package/dist/components/atoms/filter/filter.d.ts +6 -0
- package/dist/components/atoms/filter/filter.js +91 -76
- package/dist/components/atoms/filter/index.d.ts +1 -1
- package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +208 -2
- package/dist/components/atoms/filter-dropdown/filter-dropdown.js +214 -160
- package/dist/components/atoms/icon/aida-logo.d.ts +3 -0
- package/dist/components/atoms/icon/aida-logo.js +64 -0
- package/dist/components/atoms/icon/icon-list.d.ts +5 -0
- package/dist/components/atoms/icon/icon-list.js +394 -384
- package/dist/components/atoms/icon/icon.d.ts +29 -0
- package/dist/components/atoms/index.d.ts +3 -2
- package/dist/components/atoms/label/index.d.ts +1 -1
- package/dist/components/atoms/label/label.d.ts +11 -0
- package/dist/components/atoms/label/label.js +28 -0
- package/dist/components/atoms/link/link.d.ts +20 -0
- package/dist/components/atoms/loading/index.d.ts +1 -0
- package/dist/components/atoms/loading/loading.d.ts +39 -0
- package/dist/components/atoms/loading/loading.js +37 -0
- 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 +16 -0
- package/dist/components/atoms/multi-values-field/multi-values-field.js +109 -87
- package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +81 -0
- package/dist/components/atoms/otp-field/otp-field.d.ts +32 -0
- package/dist/components/atoms/password-field/password-field.d.ts +23 -0
- package/dist/components/atoms/password-field/password-field.js +1 -1
- package/dist/components/atoms/progress/progress.d.ts +15 -0
- package/dist/components/atoms/protected-field/protected-field.d.ts +10 -0
- package/dist/components/atoms/protected-field/protected-field.types.d.ts +14 -0
- package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
- package/dist/components/atoms/radio-group/radio-group.d.ts +50 -1
- package/dist/components/atoms/radio-group/radio-group.js +13 -12
- package/dist/components/atoms/search-field/search-field.d.ts +14 -0
- package/dist/components/atoms/search-field/search-field.js +17 -17
- package/dist/components/atoms/search-field/search-field.types.d.ts +57 -0
- package/dist/components/atoms/select/index.d.ts +2 -0
- package/dist/components/atoms/select/search-select.d.ts +22 -0
- package/dist/components/atoms/select/search-select.js +201 -0
- package/dist/components/atoms/select/select.d.ts +83 -1
- package/dist/components/atoms/select/select.js +21 -21
- package/dist/components/atoms/separator/separator.d.ts +17 -0
- package/dist/components/atoms/skeleton/index.d.ts +9 -0
- package/dist/components/atoms/switch/switch.d.ts +56 -2
- package/dist/components/atoms/switch/switch.js +64 -32
- package/dist/components/atoms/tabs/index.d.ts +16 -0
- package/dist/components/atoms/textarea/textarea.d.ts +32 -0
- package/dist/components/atoms/textarea/textarea.js +1 -1
- package/dist/components/atoms/time-picker/time-picker.d.ts +73 -2
- package/dist/components/atoms/time-picker/time-picker.js +218 -3
- package/dist/components/atoms/toaster/index.d.ts +15 -0
- package/dist/components/atoms/toggle-group/toggle-group.d.ts +26 -1
- package/dist/components/atoms/toggle-group/toggle-group.js +15 -14
- package/dist/components/atoms/tooltip/tooltip.d.ts +53 -2
- package/dist/components/atoms/typography/typography.d.ts +18 -0
- package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +50 -0
- package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
- package/dist/components/molecules/dialog-content/dialog-content.d.ts +16 -0
- package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +20 -0
- package/dist/components/molecules/dialog-header/dialog-header.d.ts +31 -0
- package/dist/components/molecules/empty/empty-icon.js +6 -6
- package/dist/components/molecules/empty/empty.d.ts +16 -1
- package/dist/components/molecules/empty/empty.js +37 -34
- package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +17 -0
- package/dist/components/molecules/pagination/pagination.d.ts +49 -0
- package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +41 -0
- 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 +18 -0
- 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 +18 -0
- package/dist/components/organisms/data-table/components/data-table-header.d.ts +12 -0
- 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 +24 -0
- package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
- package/dist/components/organisms/data-table/data-table.d.ts +133 -4
- package/dist/components/organisms/data-table/data-table.js +132 -100
- package/dist/components/organisms/data-table/data-table.types.d.ts +35 -26
- package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +57 -41
- package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +8 -2
- package/dist/components/organisms/data-table/hooks/use-data-table-state.js +82 -47
- package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +8 -2
- package/dist/components/organisms/data-table/utils/data-table-constants.js +16 -10
- package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +1652 -0
- package/dist/components/organisms/data-table/utils/data-table-styles.js +29 -14
- package/dist/components/organisms/dialog/dialog.d.ts +67 -1
- package/dist/components/organisms/dialog/dialog.js +78 -61
- package/dist/components/organisms/index.d.ts +2 -0
- package/dist/components/organisms/sheet/sheet.d.ts +69 -0
- package/dist/components/organisms/sheet/sheet.js +34 -33
- package/dist/components/organisms/tutorial/index.d.ts +2 -0
- package/dist/components/organisms/tutorial/tutorial.d.ts +16 -0
- package/dist/components/organisms/tutorial/tutorial.js +114 -0
- package/dist/components/organisms/tutorial/tutorial.types.d.ts +15 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/use-body-scroll-lock.d.ts +13 -0
- package/dist/hooks/use-escape-key.d.ts +14 -0
- package/dist/hooks/use-media-query.d.ts +20 -0
- package/dist/hooks/use-media-query.js +21 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +173 -162
- package/dist/lib/notification-alert.d.ts +42 -0
- package/dist/lib/notification-alert.js +75 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +30 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +36 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +36 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +30 -0
- 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 +26 -1
- package/dist/vendor/shadcn/sonner.js +12 -8
- package/dist/vendor/shadcn/table.js +30 -30
- package/dist/vendor/shadcn/textarea.js +9 -9
- package/dist/vendor/shadcn/time-picker.d.ts +1 -2
- package/dist/vendor/shadcn/time-picker.js +17 -23
- package/dist/vendor/shadcn/toggle.js +13 -13
- package/dist/vendor/shadcn/tooltip.js +25 -15
- package/package.json +1 -1
|
@@ -1,207 +1,242 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
29
|
-
const
|
|
87
|
+
c.displayName = "FilterDateRangeOption";
|
|
88
|
+
const I = y(
|
|
30
89
|
({
|
|
31
|
-
showCustomFields:
|
|
32
|
-
onCustomFieldsChange:
|
|
33
|
-
startDate:
|
|
34
|
-
endDate:
|
|
35
|
-
startTime:
|
|
36
|
-
endTime:
|
|
37
|
-
onStartDateChange:
|
|
38
|
-
onEndDateChange:
|
|
39
|
-
onStartTimeChange:
|
|
40
|
-
onEndTimeChange:
|
|
41
|
-
mode:
|
|
42
|
-
singleDayLabel:
|
|
43
|
-
showAllTime:
|
|
44
|
-
className:
|
|
45
|
-
value:
|
|
46
|
-
onValueChange:
|
|
47
|
-
...
|
|
48
|
-
},
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
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
|
-
|
|
117
|
+
l?.(void 0), x?.(void 0);
|
|
59
118
|
};
|
|
60
|
-
return /* @__PURE__ */ e.
|
|
119
|
+
return /* @__PURE__ */ e.jsx(
|
|
61
120
|
"div",
|
|
62
121
|
{
|
|
63
|
-
ref:
|
|
64
|
-
className:
|
|
65
|
-
children:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
189
|
+
c,
|
|
156
190
|
{
|
|
157
191
|
label: "Today",
|
|
158
|
-
value:
|
|
159
|
-
description:
|
|
192
|
+
value: o.TODAY,
|
|
193
|
+
description: p.today
|
|
160
194
|
}
|
|
161
195
|
),
|
|
162
196
|
/* @__PURE__ */ e.jsx(
|
|
163
|
-
|
|
197
|
+
c,
|
|
164
198
|
{
|
|
165
199
|
label: "Last 3 days",
|
|
166
|
-
value:
|
|
167
|
-
description:
|
|
200
|
+
value: o.LAST_3_DAYS,
|
|
201
|
+
description: p.last3Days
|
|
168
202
|
}
|
|
169
203
|
),
|
|
170
204
|
/* @__PURE__ */ e.jsx(
|
|
171
|
-
|
|
205
|
+
c,
|
|
172
206
|
{
|
|
173
207
|
label: "Last 7 days",
|
|
174
|
-
value:
|
|
175
|
-
description:
|
|
208
|
+
value: o.LAST_7_DAYS,
|
|
209
|
+
description: p.last7Days
|
|
176
210
|
}
|
|
177
211
|
),
|
|
178
212
|
/* @__PURE__ */ e.jsx(
|
|
179
|
-
|
|
213
|
+
c,
|
|
180
214
|
{
|
|
181
215
|
label: "Last 30 days",
|
|
182
|
-
value:
|
|
183
|
-
description:
|
|
216
|
+
value: o.LAST_30_DAYS,
|
|
217
|
+
description: p.last30Days
|
|
184
218
|
}
|
|
185
219
|
),
|
|
186
220
|
/* @__PURE__ */ e.jsx(
|
|
187
|
-
|
|
221
|
+
c,
|
|
188
222
|
{
|
|
189
223
|
label: "This month",
|
|
190
|
-
value:
|
|
191
|
-
description:
|
|
224
|
+
value: o.THIS_MONTH,
|
|
225
|
+
description: p.thisMonth
|
|
192
226
|
}
|
|
193
227
|
),
|
|
194
|
-
|
|
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
|
-
|
|
237
|
+
I.displayName = "FilterDateRange";
|
|
204
238
|
export {
|
|
205
|
-
|
|
206
|
-
|
|
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 {
|