@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.
- 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,51 +1,50 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { Separator as
|
|
5
|
-
import {
|
|
6
|
-
import { FilterSection as
|
|
7
|
-
import { FilterDateRange as
|
|
8
|
-
import { cn as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
({ icon: l, label: c, isActive: t = !1, showChevron: i = !1, className: d, ...s }, x) => /* @__PURE__ */ a.jsxs(
|
|
1
|
+
import { j as n } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as v, useState as E, useRef as H, useCallback as _, useEffect as K } from "react";
|
|
3
|
+
import { Button as g } from "../../../vendor/shadcn/button.js";
|
|
4
|
+
import { Separator as S } from "../../../vendor/shadcn/separator.js";
|
|
5
|
+
import { Icon as C } from "../icon/icon.js";
|
|
6
|
+
import { FilterSection as k } from "../filter/filter.js";
|
|
7
|
+
import { FilterDateRange as X, FilterDateRangeValue as b } from "../filter/filter-date-range.js";
|
|
8
|
+
import { cn as d } from "../../../lib/utils.js";
|
|
9
|
+
const M = v(
|
|
10
|
+
({ icon: r, label: h, isActive: l = !1, showChevron: m = !1, className: u, ...o }, j) => /* @__PURE__ */ n.jsxs(
|
|
12
11
|
"button",
|
|
13
12
|
{
|
|
14
|
-
ref:
|
|
15
|
-
className:
|
|
13
|
+
ref: j,
|
|
14
|
+
className: d(
|
|
16
15
|
"flex items-center gap-2 h-8 px-2 rounded-md w-full transition-colors",
|
|
17
16
|
"hover:bg-secondary",
|
|
18
|
-
|
|
17
|
+
u
|
|
19
18
|
),
|
|
20
|
-
...
|
|
19
|
+
...o,
|
|
21
20
|
children: [
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
r && /* @__PURE__ */ n.jsx(
|
|
22
|
+
C,
|
|
24
23
|
{
|
|
25
|
-
name:
|
|
26
|
-
className:
|
|
24
|
+
name: r,
|
|
25
|
+
className: d(
|
|
27
26
|
"size-4 shrink-0",
|
|
28
|
-
|
|
27
|
+
l ? "text-primary" : "text-foreground"
|
|
29
28
|
)
|
|
30
29
|
}
|
|
31
30
|
),
|
|
32
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ n.jsx(
|
|
33
32
|
"span",
|
|
34
33
|
{
|
|
35
|
-
className:
|
|
34
|
+
className: d(
|
|
36
35
|
"flex-1 text-sm font-normal text-left truncate",
|
|
37
|
-
|
|
36
|
+
l ? "text-primary" : "text-foreground"
|
|
38
37
|
),
|
|
39
|
-
children:
|
|
38
|
+
children: h
|
|
40
39
|
}
|
|
41
40
|
),
|
|
42
|
-
(
|
|
43
|
-
|
|
41
|
+
(l || m) && /* @__PURE__ */ n.jsx(
|
|
42
|
+
C,
|
|
44
43
|
{
|
|
45
44
|
name: "CaretRight",
|
|
46
|
-
className:
|
|
45
|
+
className: d(
|
|
47
46
|
"size-4 shrink-0",
|
|
48
|
-
|
|
47
|
+
l ? "text-primary" : "text-foreground"
|
|
49
48
|
)
|
|
50
49
|
}
|
|
51
50
|
)
|
|
@@ -53,51 +52,94 @@ const I = u(
|
|
|
53
52
|
}
|
|
54
53
|
)
|
|
55
54
|
);
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
({ items:
|
|
55
|
+
M.displayName = "FilterMenuItem";
|
|
56
|
+
const A = v(
|
|
57
|
+
({ items: r, activeItemId: h, onItemClick: l, className: m }, u) => /* @__PURE__ */ n.jsx(
|
|
59
58
|
"div",
|
|
60
59
|
{
|
|
61
|
-
ref:
|
|
62
|
-
className:
|
|
63
|
-
"flex flex-col gap-2 w-64 h-full p-2 bg-
|
|
64
|
-
|
|
60
|
+
ref: u,
|
|
61
|
+
className: d(
|
|
62
|
+
"flex flex-col gap-2 w-64 h-full p-2 bg-surface border border-border rounded-md",
|
|
63
|
+
m
|
|
65
64
|
),
|
|
66
|
-
children:
|
|
67
|
-
|
|
65
|
+
children: r.map((o) => /* @__PURE__ */ n.jsx(
|
|
66
|
+
M,
|
|
68
67
|
{
|
|
69
|
-
icon:
|
|
70
|
-
label:
|
|
71
|
-
isActive:
|
|
72
|
-
showChevron:
|
|
73
|
-
onClick: () =>
|
|
68
|
+
icon: o.icon,
|
|
69
|
+
label: o.label,
|
|
70
|
+
isActive: h === o.id,
|
|
71
|
+
showChevron: o.showChevron,
|
|
72
|
+
onClick: () => l?.(o.id)
|
|
74
73
|
},
|
|
75
|
-
|
|
74
|
+
o.id
|
|
76
75
|
))
|
|
77
76
|
}
|
|
78
77
|
)
|
|
79
78
|
);
|
|
80
|
-
|
|
81
|
-
const
|
|
79
|
+
A.displayName = "FilterMenu";
|
|
80
|
+
const Y = v(
|
|
82
81
|
({
|
|
83
|
-
filters:
|
|
84
|
-
buttonText:
|
|
85
|
-
appliedFilters:
|
|
86
|
-
onRemoveFilter:
|
|
87
|
-
onClearAllFilters:
|
|
88
|
-
maxVisibleTags:
|
|
89
|
-
className:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
filters: r,
|
|
83
|
+
buttonText: h = "Add filter",
|
|
84
|
+
appliedFilters: l = [],
|
|
85
|
+
onRemoveFilter: m,
|
|
86
|
+
onClearAllFilters: u,
|
|
87
|
+
maxVisibleTags: o = 4,
|
|
88
|
+
className: j,
|
|
89
|
+
disabled: V = !1
|
|
90
|
+
}, f) => {
|
|
91
|
+
const [x, p] = E(!1), [w, N] = E(
|
|
92
|
+
r.length > 0 && r[0]?.id || ""
|
|
93
|
+
), y = H(null), z = _(
|
|
94
|
+
(t) => {
|
|
95
|
+
y.current = t, typeof f == "function" ? f(t) : f && (f.current = t);
|
|
96
|
+
},
|
|
97
|
+
[f]
|
|
98
|
+
);
|
|
99
|
+
K(() => {
|
|
100
|
+
if (!x) return;
|
|
101
|
+
const t = (s) => {
|
|
102
|
+
const c = s.target;
|
|
103
|
+
y.current?.contains(c) || c.closest?.(
|
|
104
|
+
"[data-radix-popper-content-wrapper], [data-radix-portal]"
|
|
105
|
+
) || c.closest?.(
|
|
106
|
+
".rdp, .rdp-root, [data-calendar]"
|
|
107
|
+
) || p(!1);
|
|
108
|
+
}, a = (s) => {
|
|
109
|
+
s.key === "Escape" && p(!1);
|
|
110
|
+
}, i = setTimeout(() => {
|
|
111
|
+
document.addEventListener("mousedown", t), document.addEventListener("keydown", a);
|
|
112
|
+
}, 0);
|
|
113
|
+
return () => {
|
|
114
|
+
clearTimeout(i), document.removeEventListener("mousedown", t), document.removeEventListener("keydown", a);
|
|
115
|
+
};
|
|
116
|
+
}, [x]);
|
|
117
|
+
const O = l.length > 0, R = l.slice(0, o), T = l.length - o, D = (t) => {
|
|
118
|
+
if (r.find((s) => s.id === t)) return t;
|
|
119
|
+
const i = t.split("-");
|
|
120
|
+
if (i.length > 1) {
|
|
121
|
+
const s = i[0];
|
|
122
|
+
if (r.find((I) => I.id === s)) return s;
|
|
123
|
+
}
|
|
124
|
+
return t;
|
|
125
|
+
}, F = (t) => {
|
|
126
|
+
const a = D(t);
|
|
127
|
+
return r.find((s) => s.id === a)?.clearable !== !1;
|
|
128
|
+
}, L = (t) => {
|
|
129
|
+
const a = D(t);
|
|
130
|
+
N(a), p(!0);
|
|
131
|
+
}, P = l.some(
|
|
132
|
+
(t) => F(t.id)
|
|
133
|
+
), U = r.map((t) => ({
|
|
134
|
+
id: t.id,
|
|
135
|
+
icon: t.icon,
|
|
136
|
+
label: t.label
|
|
137
|
+
})), e = r.find((t) => t.id === w), B = () => {
|
|
96
138
|
if (!e) return null;
|
|
97
139
|
switch (e.type) {
|
|
98
140
|
case "checkbox":
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
|
|
141
|
+
return /* @__PURE__ */ n.jsx(
|
|
142
|
+
k,
|
|
101
143
|
{
|
|
102
144
|
title: e.label,
|
|
103
145
|
items: e.items || [],
|
|
@@ -113,8 +155,8 @@ const P = u(
|
|
|
113
155
|
}
|
|
114
156
|
);
|
|
115
157
|
case "radio":
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
|
|
158
|
+
return /* @__PURE__ */ n.jsx(
|
|
159
|
+
k,
|
|
118
160
|
{
|
|
119
161
|
type: "radio",
|
|
120
162
|
title: e.label,
|
|
@@ -131,22 +173,22 @@ const P = u(
|
|
|
131
173
|
}
|
|
132
174
|
);
|
|
133
175
|
case "date": {
|
|
134
|
-
const
|
|
135
|
-
if (e.onDateValueChange?.(
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
176
|
+
const t = (a) => {
|
|
177
|
+
if (e.onDateValueChange?.(a), a === b.CUSTOM && !e.dateInit && !e.dateEnd) {
|
|
178
|
+
const i = /* @__PURE__ */ new Date(), s = new Date(i);
|
|
179
|
+
s.setHours(23, 59, 59, 999);
|
|
180
|
+
const c = new Date(i);
|
|
181
|
+
c.setHours(0, 0, 0, 0), e.onDateInitChange?.(c), e.onDateEndChange?.(s), e.startTime || e.onStartTimeChange?.("00:00:00"), e.endTime || e.onEndTimeChange?.("23:59:59");
|
|
140
182
|
}
|
|
141
183
|
};
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
|
|
184
|
+
return /* @__PURE__ */ n.jsx(
|
|
185
|
+
X,
|
|
144
186
|
{
|
|
145
|
-
value: e.dateValue ||
|
|
146
|
-
onValueChange:
|
|
147
|
-
showCustomFields: e.dateValue ===
|
|
148
|
-
onCustomFieldsChange: (
|
|
149
|
-
|
|
187
|
+
value: e.dateValue || b.LAST_7_DAYS,
|
|
188
|
+
onValueChange: t,
|
|
189
|
+
showCustomFields: e.dateValue === b.CUSTOM,
|
|
190
|
+
onCustomFieldsChange: (a) => {
|
|
191
|
+
a && t(b.CUSTOM);
|
|
150
192
|
},
|
|
151
193
|
startDate: e.dateInit,
|
|
152
194
|
endDate: e.dateEnd,
|
|
@@ -168,97 +210,109 @@ const P = u(
|
|
|
168
210
|
return null;
|
|
169
211
|
}
|
|
170
212
|
};
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
onClick: () => S(!p),
|
|
180
|
-
children: [
|
|
181
|
-
/* @__PURE__ */ a.jsx(h, { name: "FunnelSimple", className: "size-4" }),
|
|
182
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-xs font-medium leading-none", children: c })
|
|
183
|
-
]
|
|
184
|
-
}
|
|
185
|
-
),
|
|
186
|
-
E ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
187
|
-
/* @__PURE__ */ a.jsx(w, { orientation: "vertical", className: "h-5" }),
|
|
188
|
-
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
189
|
-
V.map((n) => {
|
|
190
|
-
const r = b(n.id);
|
|
191
|
-
return /* @__PURE__ */ a.jsxs(
|
|
192
|
-
y,
|
|
193
|
-
{
|
|
194
|
-
variant: "secondary",
|
|
195
|
-
className: "h-8 gap-2 px-3 py-2 shadow-xs",
|
|
196
|
-
children: [
|
|
197
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-xs font-medium leading-none", children: n.label }),
|
|
198
|
-
i && r && /* @__PURE__ */ a.jsx(
|
|
199
|
-
"button",
|
|
200
|
-
{
|
|
201
|
-
onClick: () => i(n.id),
|
|
202
|
-
className: "inline-flex items-center justify-center",
|
|
203
|
-
"aria-label": `Remove ${n.label} filter`,
|
|
204
|
-
children: /* @__PURE__ */ a.jsx(h, { name: "X", className: "size-4" })
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
n.id
|
|
210
|
-
);
|
|
211
|
-
}),
|
|
212
|
-
g > 0 && /* @__PURE__ */ a.jsx(y, { variant: "default", className: "h-8 px-3 py-2 shadow-xs", children: /* @__PURE__ */ a.jsxs("span", { className: "text-xs font-medium leading-none", children: [
|
|
213
|
-
"+",
|
|
213
|
+
return /* @__PURE__ */ n.jsxs(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
ref: z,
|
|
217
|
+
className: d("flex flex-col gap-1 relative", j),
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
220
|
+
/* @__PURE__ */ n.jsxs(
|
|
214
221
|
g,
|
|
215
|
-
" more"
|
|
216
|
-
] }) }),
|
|
217
|
-
d && k && /* @__PURE__ */ a.jsx(
|
|
218
|
-
v,
|
|
219
222
|
{
|
|
220
|
-
variant: "
|
|
223
|
+
variant: "outline",
|
|
221
224
|
size: "sm",
|
|
222
|
-
className: "
|
|
223
|
-
onClick:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/* @__PURE__ */ a.jsx(w, { orientation: "vertical", className: "h-5" }),
|
|
230
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-sm font-normal text-muted-foreground", children: "No filters applied" })
|
|
231
|
-
] })
|
|
232
|
-
] }),
|
|
233
|
-
p && /* @__PURE__ */ a.jsxs(
|
|
234
|
-
"div",
|
|
235
|
-
{
|
|
236
|
-
className: o(
|
|
237
|
-
"z-50 shadow-lg",
|
|
238
|
-
"absolute top-full left-0 mt-1",
|
|
239
|
-
"flex flex-row gap-2",
|
|
240
|
-
"w-[728px] h-[448px]",
|
|
241
|
-
"bg-popover border border-border rounded-md p-2"
|
|
242
|
-
),
|
|
243
|
-
children: [
|
|
244
|
-
/* @__PURE__ */ a.jsx(
|
|
245
|
-
F,
|
|
246
|
-
{
|
|
247
|
-
items: z,
|
|
248
|
-
activeItemId: f,
|
|
249
|
-
onItemClick: A
|
|
225
|
+
className: "gap-2",
|
|
226
|
+
onClick: () => p(!x),
|
|
227
|
+
disabled: V,
|
|
228
|
+
children: [
|
|
229
|
+
/* @__PURE__ */ n.jsx(C, { name: "FunnelSimple", className: "size-4" }),
|
|
230
|
+
h
|
|
231
|
+
]
|
|
250
232
|
}
|
|
251
233
|
),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
234
|
+
O ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
235
|
+
/* @__PURE__ */ n.jsx(S, { orientation: "vertical", className: "h-5" }),
|
|
236
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
237
|
+
R.map((t) => {
|
|
238
|
+
const a = F(t.id);
|
|
239
|
+
return /* @__PURE__ */ n.jsxs(
|
|
240
|
+
g,
|
|
241
|
+
{
|
|
242
|
+
variant: "secondary",
|
|
243
|
+
onClick: () => L(t.id),
|
|
244
|
+
className: "display-flex items-center gap-2",
|
|
245
|
+
size: "sm",
|
|
246
|
+
children: [
|
|
247
|
+
t.label,
|
|
248
|
+
m && a && /* @__PURE__ */ n.jsx(
|
|
249
|
+
"button",
|
|
250
|
+
{
|
|
251
|
+
onClick: (i) => {
|
|
252
|
+
i.stopPropagation(), m(t.id);
|
|
253
|
+
},
|
|
254
|
+
className: "inline-flex items-center justify-center",
|
|
255
|
+
"aria-label": `Remove ${t.label} filter`,
|
|
256
|
+
children: /* @__PURE__ */ n.jsx(C, { name: "X", className: "size-4" })
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
t.id
|
|
262
|
+
);
|
|
263
|
+
}),
|
|
264
|
+
T > 0 && /* @__PURE__ */ n.jsxs(g, { children: [
|
|
265
|
+
"+",
|
|
266
|
+
T,
|
|
267
|
+
" more"
|
|
268
|
+
] }),
|
|
269
|
+
u && P && /* @__PURE__ */ n.jsx(
|
|
270
|
+
g,
|
|
271
|
+
{
|
|
272
|
+
variant: "ghost",
|
|
273
|
+
size: "sm",
|
|
274
|
+
className: "h-8 px-3 py-2",
|
|
275
|
+
onClick: u,
|
|
276
|
+
children: /* @__PURE__ */ n.jsx("span", { className: "text-xs font-medium leading-none text-primary", children: "Clear filters" })
|
|
277
|
+
}
|
|
278
|
+
)
|
|
279
|
+
] })
|
|
280
|
+
] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
281
|
+
/* @__PURE__ */ n.jsx(S, { orientation: "vertical", className: "h-5" }),
|
|
282
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-sm font-normal text-muted-foreground", children: "No filters applied" })
|
|
283
|
+
] })
|
|
284
|
+
] }),
|
|
285
|
+
x && /* @__PURE__ */ n.jsxs(
|
|
286
|
+
"div",
|
|
287
|
+
{
|
|
288
|
+
className: d(
|
|
289
|
+
"z-50 shadow-lg",
|
|
290
|
+
"absolute top-full left-0 mt-1",
|
|
291
|
+
"flex flex-row gap-2",
|
|
292
|
+
"w-[728px] h-[448px]",
|
|
293
|
+
"bg-popover border border-border rounded-md p-2"
|
|
294
|
+
),
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ n.jsx(
|
|
297
|
+
A,
|
|
298
|
+
{
|
|
299
|
+
items: U,
|
|
300
|
+
activeItemId: w,
|
|
301
|
+
onItemClick: N
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4 p-6 bg-popover w-[448px] h-full rounded-md overflow-y-auto", children: B() })
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
)
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
);
|
|
257
311
|
}
|
|
258
312
|
);
|
|
259
|
-
|
|
313
|
+
Y.displayName = "FilterDropdown";
|
|
260
314
|
export {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
315
|
+
Y as FilterDropdown,
|
|
316
|
+
A as FilterMenu,
|
|
317
|
+
M as FilterMenuItem
|
|
264
318
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { j as s } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
const i = ({ size: C = 16, ...t }) => /* @__PURE__ */ s.jsxs(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: C,
|
|
6
|
+
height: C,
|
|
7
|
+
viewBox: "0 0 32 32",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
...t,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ s.jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M22.5987 5.33325C21.7107 7.76002 20.9907 8.47896 18.565 9.36657C20.9907 10.2545 21.7107 10.9746 22.5987 13.4003C23.4867 10.9746 24.2064 10.2545 26.632 9.36657C24.2064 8.47896 23.4867 7.76002 22.5987 5.33325Z",
|
|
16
|
+
fill: "url(#paint0_linear_12357_32157)"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ s.jsx(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M13.7673 19.5838H18.8632C18.9599 19.5838 19.0557 19.5641 19.1446 19.526C19.2336 19.4879 19.3139 19.4321 19.3806 19.3621C19.4474 19.2921 19.4993 19.2092 19.5331 19.1186C19.567 19.0279 19.5821 18.9313 19.5775 18.8347C19.3936 15.3146 17.913 11.9873 15.4211 9.49435C12.9292 7.0014 9.60247 5.51937 6.0825 5.33405C5.98585 5.32949 5.88927 5.34459 5.79861 5.37842C5.70796 5.41226 5.62511 5.46414 5.55508 5.53092C5.48504 5.59769 5.42929 5.67798 5.39117 5.76693C5.35306 5.85587 5.33339 5.95162 5.33334 6.04839V11.7631C5.33479 11.9429 5.40368 12.1157 5.5264 12.2471C5.64912 12.3786 5.81672 12.4592 5.99602 12.473C7.49759 12.6156 8.91561 13.2294 10.0473 14.2266C11.179 15.2237 11.9665 16.5532 12.2971 18.0248C12.3447 18.2304 12.3397 18.4446 12.2823 18.6477C12.225 18.8507 12.1172 19.036 11.9691 19.1862C11.8543 19.3013 11.7179 19.3925 11.5678 19.4548C11.4176 19.517 11.2567 19.5491 11.0941 19.549H6.04656C5.9529 19.549 5.86016 19.5674 5.77363 19.6033C5.6871 19.6391 5.60847 19.6917 5.54224 19.7579C5.47601 19.8241 5.42348 19.9028 5.38764 19.9893C5.35179 20.0758 5.33334 20.1686 5.33334 20.2622V25.9534C5.3332 26.047 5.35151 26.1397 5.38723 26.2262C5.42295 26.3127 5.47538 26.3914 5.54152 26.4576C5.60765 26.5239 5.6862 26.5764 5.77267 26.6123C5.85914 26.6481 5.95183 26.6666 6.04544 26.6666H11.7321C11.8257 26.6666 11.9184 26.6481 12.0049 26.6123C12.0913 26.5764 12.1699 26.5239 12.236 26.4576C12.3022 26.3914 12.3546 26.3127 12.3903 26.2262C12.426 26.1397 12.4443 26.047 12.4442 25.9534V20.8991C12.4444 20.5717 12.5745 20.2579 12.8059 20.0263L12.889 19.9421C13.0038 19.8271 13.1402 19.7358 13.2903 19.6735C13.4404 19.6113 13.6014 19.5793 13.7639 19.5793",
|
|
23
|
+
fill: "url(#paint1_linear_12357_32157)"
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
/* @__PURE__ */ s.jsxs("defs", { children: [
|
|
27
|
+
/* @__PURE__ */ s.jsxs(
|
|
28
|
+
"linearGradient",
|
|
29
|
+
{
|
|
30
|
+
id: "paint0_linear_12357_32157",
|
|
31
|
+
x1: "19.6597",
|
|
32
|
+
y1: "4.82531",
|
|
33
|
+
x2: "26.6515",
|
|
34
|
+
y2: "9.13909",
|
|
35
|
+
gradientUnits: "userSpaceOnUse",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ s.jsx("stop", { stopColor: "#D073F6" }),
|
|
38
|
+
/* @__PURE__ */ s.jsx("stop", { offset: "1", stopColor: "#5E77FD" })
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ s.jsxs(
|
|
43
|
+
"linearGradient",
|
|
44
|
+
{
|
|
45
|
+
id: "paint1_linear_12357_32157",
|
|
46
|
+
x1: "7.26631",
|
|
47
|
+
y1: "3.98998",
|
|
48
|
+
x2: "21.839",
|
|
49
|
+
y2: "9.9936",
|
|
50
|
+
gradientUnits: "userSpaceOnUse",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ s.jsx("stop", { stopColor: "#D073F6" }),
|
|
53
|
+
/* @__PURE__ */ s.jsx("stop", { offset: "0.5", stopColor: "#5E77FD" }),
|
|
54
|
+
/* @__PURE__ */ s.jsx("stop", { offset: "1", stopColor: "#21B8F2" })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
export {
|
|
63
|
+
i as default
|
|
64
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const IconList: {
|
|
2
|
+
AidaLogo: ({ size, ...props }: import('@phosphor-icons/react').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
Activity: import('@phosphor-icons/react').Icon;
|
|
3
4
|
FileSearch: import('@phosphor-icons/react').Icon;
|
|
4
5
|
MagnifyingGlass: import('@phosphor-icons/react').Icon;
|
|
@@ -142,6 +143,8 @@ declare const IconList: {
|
|
|
142
143
|
ToggleRight: import('@phosphor-icons/react').Icon;
|
|
143
144
|
ArrowCircleUp: import('@phosphor-icons/react').Icon;
|
|
144
145
|
ArrowUp: import('@phosphor-icons/react').Icon;
|
|
146
|
+
File: import('@phosphor-icons/react').Icon;
|
|
147
|
+
Table: import('@phosphor-icons/react').Icon;
|
|
145
148
|
ArrowDown: import('@phosphor-icons/react').Icon;
|
|
146
149
|
ArrowUpRight: import('@phosphor-icons/react').Icon;
|
|
147
150
|
PlayCircle: import('@phosphor-icons/react').Icon;
|
|
@@ -186,6 +189,8 @@ declare const IconList: {
|
|
|
186
189
|
Intersect: import('@phosphor-icons/react').Icon;
|
|
187
190
|
close: import('@phosphor-icons/react').Icon;
|
|
188
191
|
MagicWand: import('@phosphor-icons/react').Icon;
|
|
192
|
+
Stop: import('@phosphor-icons/react').Icon;
|
|
193
|
+
Microphone: import('@phosphor-icons/react').Icon;
|
|
189
194
|
Password: import('@phosphor-icons/react').Icon;
|
|
190
195
|
Buildings: import('@phosphor-icons/react').Icon;
|
|
191
196
|
ArrowRight: import('@phosphor-icons/react').Icon;
|