@adamosuiteservices/ui 2.10.12 → 2.11.13
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/accordion-rounded.cjs +7 -7
- package/dist/accordion-rounded.js +1 -1
- package/dist/calendar-Bapd0vmU.js +2949 -0
- package/dist/calendar-DMvGcwMp.cjs +76 -0
- package/dist/calendar.cjs +1 -76
- package/dist/calendar.js +3 -2945
- package/dist/colors.css +1 -1
- package/dist/combobox-CW07jN3o.cjs +37 -0
- package/dist/combobox-CtdzWxGX.js +598 -0
- package/dist/combobox.cjs +1 -37
- package/dist/combobox.js +2 -596
- package/dist/components/layout/full-screen-loader/full-screen-loader-manager.d.ts +6 -0
- package/dist/components/layout/full-screen-loader/full-screen-loader-observable.d.ts +8 -0
- package/dist/components/layout/full-screen-loader/full-screen-loader.d.ts +4 -0
- package/dist/components/layout/full-screen-loader/index.d.ts +3 -0
- package/dist/components/ui/date-picker-selector/date-picker-selector.d.ts +21 -0
- package/dist/components/ui/date-picker-selector/index.d.ts +1 -0
- package/dist/date-picker-selector.cjs +1 -0
- package/dist/date-picker-selector.js +105 -0
- package/dist/full-screen-loader.cjs +4 -0
- package/dist/full-screen-loader.js +50 -0
- package/dist/spinner-B-sC3DVC.cjs +1 -0
- package/dist/spinner-DvrliN2E.js +19 -0
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.js +1 -16
- package/dist/styles.css +1 -1
- package/dist/table.cjs +5 -5
- package/dist/table.js +2 -2
- package/dist/tailwind-colors.css +1 -1
- package/dist/tailwind-theme.css +1 -1
- package/dist/themes.css +1 -1
- package/dist/tooltip.cjs +5 -4
- package/dist/tooltip.js +4 -3
- package/dist/types/theme.type.d.ts +1 -1
- package/docs/components/layout/full-screen-loader.md +500 -0
- package/docs/components/ui/accordion-rounded.md +7 -7
- package/docs/components/ui/accordion.md +2 -2
- package/docs/components/ui/alert.md +3 -3
- package/docs/components/ui/avatar.md +10 -10
- package/docs/components/ui/badge.md +10 -53
- package/docs/components/ui/button.md +1 -1
- package/docs/components/ui/calendar.md +1 -1
- package/docs/components/ui/combobox.md +7 -7
- package/docs/components/ui/date-picker-selector.md +376 -0
- package/docs/components/ui/hover-card.md +1 -1
- package/docs/components/ui/icon.md +12 -12
- package/docs/components/ui/input-group.md +9 -14
- package/docs/components/ui/popover.md +2 -2
- package/docs/components/ui/spinner.md +1 -1
- package/docs/components/ui/table.md +1 -1
- package/docs/components/ui/tooltip.md +3 -3
- package/docs/components/ui/typography.md +1 -1
- package/package.json +9 -1
package/dist/combobox.js
CHANGED
|
@@ -1,598 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { j as p } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { B as je } from "./button-CBy_oQDu.js";
|
|
4
|
-
import { C as Ce } from "./checkbox-B-Lu1-qJ.js";
|
|
5
|
-
import { I as ee } from "./icon-DKAhvlX_.js";
|
|
6
|
-
import { c as M } from "./index-CRiPKpXj.js";
|
|
7
|
-
import * as a from "react";
|
|
8
|
-
import { useRef as Re, useState as pe } from "react";
|
|
9
|
-
import { R as Ae, P as Ne, O as $e, a as Me } from "./index-BIydBVaH.js";
|
|
10
|
-
import { P as F } from "./index-BMWt1NBG.js";
|
|
11
|
-
import { u as W } from "./index-Cv867SGx.js";
|
|
12
|
-
import { c as te } from "./index-DLcqcWxM.js";
|
|
13
|
-
import { P as Le, a as Pe, b as De } from "./popover-DcQ18EVl.js";
|
|
14
|
-
var he = 1, Fe = 0.9, Oe = 0.8, Ve = 0.17, de = 0.1, ue = 0.999, Ke = 0.9999, Te = 0.99, qe = /[\\\/_+.#"@\[\(\{&]/, ze = /[\\\/_+.#"@\[\(\{&]/g, Be = /[\s-]/, be = /[\s-]/g;
|
|
15
|
-
function se(e, n, r, h, o, c, m) {
|
|
16
|
-
if (c === n.length) return o === e.length ? he : Te;
|
|
17
|
-
var s = `${o},${c}`;
|
|
18
|
-
if (m[s] !== void 0) return m[s];
|
|
19
|
-
for (var b = h.charAt(c), i = r.indexOf(b, o), g = 0, u, E, S, R; i >= 0; ) u = se(e, n, r, h, i + 1, c + 1, m), u > g && (i === o ? u *= he : qe.test(e.charAt(i - 1)) ? (u *= Oe, S = e.slice(o, i - 1).match(ze), S && o > 0 && (u *= Math.pow(ue, S.length))) : Be.test(e.charAt(i - 1)) ? (u *= Fe, R = e.slice(o, i - 1).match(be), R && o > 0 && (u *= Math.pow(ue, R.length))) : (u *= Ve, o > 0 && (u *= Math.pow(ue, i - o))), e.charAt(i) !== n.charAt(c) && (u *= Ke)), (u < de && r.charAt(i - 1) === h.charAt(c + 1) || h.charAt(c + 1) === h.charAt(c) && r.charAt(i - 1) !== h.charAt(c)) && (E = se(e, n, r, h, i + 1, c + 2, m), E * de > u && (u = E * de)), u > g && (g = u), i = r.indexOf(b, i + 1);
|
|
20
|
-
return m[s] = g, g;
|
|
21
|
-
}
|
|
22
|
-
function ve(e) {
|
|
23
|
-
return e.toLowerCase().replace(be, " ");
|
|
24
|
-
}
|
|
25
|
-
function We(e, n, r) {
|
|
26
|
-
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, se(e, n, ve(e), ve(n), 0, 0, {});
|
|
27
|
-
}
|
|
28
|
-
var Z = '[cmdk-group=""]', ce = '[cmdk-group-items=""]', Ge = '[cmdk-group-heading=""]', xe = '[cmdk-item=""]', ge = `${xe}:not([aria-disabled="true"])`, me = "cmdk-item-select", z = "data-value", Ue = (e, n, r) => We(e, n, r), ye = a.createContext(void 0), re = () => a.useContext(ye), ke = a.createContext(void 0), fe = () => a.useContext(ke), we = a.createContext(void 0), Se = a.forwardRef((e, n) => {
|
|
29
|
-
let r = B(() => {
|
|
30
|
-
var t, d;
|
|
31
|
-
return { search: "", value: (d = (t = e.value) != null ? t : e.defaultValue) != null ? d : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
32
|
-
}), h = B(() => /* @__PURE__ */ new Set()), o = B(() => /* @__PURE__ */ new Map()), c = B(() => /* @__PURE__ */ new Map()), m = B(() => /* @__PURE__ */ new Set()), s = Ie(e), { label: b, children: i, value: g, onValueChange: u, filter: E, shouldFilter: S, loop: R, disablePointerSelection: U = !1, vimBindings: L = !0, ...y } = e, ne = W(), A = W(), T = W(), N = a.useRef(null), k = nt();
|
|
33
|
-
K(() => {
|
|
34
|
-
if (g !== void 0) {
|
|
35
|
-
let t = g.trim();
|
|
36
|
-
r.current.value = t, I.emit();
|
|
37
|
-
}
|
|
38
|
-
}, [g]), K(() => {
|
|
39
|
-
k(6, X);
|
|
40
|
-
}, []);
|
|
41
|
-
let I = a.useMemo(() => ({ subscribe: (t) => (m.current.add(t), () => m.current.delete(t)), snapshot: () => r.current, setState: (t, d, v) => {
|
|
42
|
-
var l, x, w, C;
|
|
43
|
-
if (!Object.is(r.current[t], d)) {
|
|
44
|
-
if (r.current[t] = d, t === "search") J(), q(), k(1, O);
|
|
45
|
-
else if (t === "value") {
|
|
46
|
-
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
47
|
-
let j = document.getElementById(T);
|
|
48
|
-
j ? j.focus() : (l = document.getElementById(ne)) == null || l.focus();
|
|
49
|
-
}
|
|
50
|
-
if (k(7, () => {
|
|
51
|
-
var j;
|
|
52
|
-
r.current.selectedItemId = (j = P()) == null ? void 0 : j.id, I.emit();
|
|
53
|
-
}), v || k(5, X), ((x = s.current) == null ? void 0 : x.value) !== void 0) {
|
|
54
|
-
let j = d ?? "";
|
|
55
|
-
(C = (w = s.current).onValueChange) == null || C.call(w, j);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
I.emit();
|
|
60
|
-
}
|
|
61
|
-
}, emit: () => {
|
|
62
|
-
m.current.forEach((t) => t());
|
|
63
|
-
} }), []), _ = a.useMemo(() => ({ value: (t, d, v) => {
|
|
64
|
-
var l;
|
|
65
|
-
d !== ((l = c.current.get(t)) == null ? void 0 : l.value) && (c.current.set(t, { value: d, keywords: v }), r.current.filtered.items.set(t, H(d, v)), k(2, () => {
|
|
66
|
-
q(), I.emit();
|
|
67
|
-
}));
|
|
68
|
-
}, item: (t, d) => (h.current.add(t), d && (o.current.has(d) ? o.current.get(d).add(t) : o.current.set(d, /* @__PURE__ */ new Set([t]))), k(3, () => {
|
|
69
|
-
J(), q(), r.current.value || O(), I.emit();
|
|
70
|
-
}), () => {
|
|
71
|
-
c.current.delete(t), h.current.delete(t), r.current.filtered.items.delete(t);
|
|
72
|
-
let v = P();
|
|
73
|
-
k(4, () => {
|
|
74
|
-
J(), v?.getAttribute("id") === t && O(), I.emit();
|
|
75
|
-
});
|
|
76
|
-
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
77
|
-
c.current.delete(t), o.current.delete(t);
|
|
78
|
-
}), filter: () => s.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: ne, inputId: T, labelId: A, listInnerRef: N }), []);
|
|
79
|
-
function H(t, d) {
|
|
80
|
-
var v, l;
|
|
81
|
-
let x = (l = (v = s.current) == null ? void 0 : v.filter) != null ? l : Ue;
|
|
82
|
-
return t ? x(t, r.current.search, d) : 0;
|
|
83
|
-
}
|
|
84
|
-
function q() {
|
|
85
|
-
if (!r.current.search || s.current.shouldFilter === !1) return;
|
|
86
|
-
let t = r.current.filtered.items, d = [];
|
|
87
|
-
r.current.filtered.groups.forEach((l) => {
|
|
88
|
-
let x = o.current.get(l), w = 0;
|
|
89
|
-
x.forEach((C) => {
|
|
90
|
-
let j = t.get(C);
|
|
91
|
-
w = Math.max(j, w);
|
|
92
|
-
}), d.push([l, w]);
|
|
93
|
-
});
|
|
94
|
-
let v = N.current;
|
|
95
|
-
V().sort((l, x) => {
|
|
96
|
-
var w, C;
|
|
97
|
-
let j = l.getAttribute("id"), oe = x.getAttribute("id");
|
|
98
|
-
return ((w = t.get(oe)) != null ? w : 0) - ((C = t.get(j)) != null ? C : 0);
|
|
99
|
-
}).forEach((l) => {
|
|
100
|
-
let x = l.closest(ce);
|
|
101
|
-
x ? x.appendChild(l.parentElement === x ? l : l.closest(`${ce} > *`)) : v.appendChild(l.parentElement === v ? l : l.closest(`${ce} > *`));
|
|
102
|
-
}), d.sort((l, x) => x[1] - l[1]).forEach((l) => {
|
|
103
|
-
var x;
|
|
104
|
-
let w = (x = N.current) == null ? void 0 : x.querySelector(`${Z}[${z}="${encodeURIComponent(l[0])}"]`);
|
|
105
|
-
w?.parentElement.appendChild(w);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function O() {
|
|
109
|
-
let t = V().find((v) => v.getAttribute("aria-disabled") !== "true"), d = t?.getAttribute(z);
|
|
110
|
-
I.setState("value", d || void 0);
|
|
111
|
-
}
|
|
112
|
-
function J() {
|
|
113
|
-
var t, d, v, l;
|
|
114
|
-
if (!r.current.search || s.current.shouldFilter === !1) {
|
|
115
|
-
r.current.filtered.count = h.current.size;
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
119
|
-
let x = 0;
|
|
120
|
-
for (let w of h.current) {
|
|
121
|
-
let C = (d = (t = c.current.get(w)) == null ? void 0 : t.value) != null ? d : "", j = (l = (v = c.current.get(w)) == null ? void 0 : v.keywords) != null ? l : [], oe = H(C, j);
|
|
122
|
-
r.current.filtered.items.set(w, oe), oe > 0 && x++;
|
|
123
|
-
}
|
|
124
|
-
for (let [w, C] of o.current) for (let j of C) if (r.current.filtered.items.get(j) > 0) {
|
|
125
|
-
r.current.filtered.groups.add(w);
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
r.current.filtered.count = x;
|
|
129
|
-
}
|
|
130
|
-
function X() {
|
|
131
|
-
var t, d, v;
|
|
132
|
-
let l = P();
|
|
133
|
-
l && (((t = l.parentElement) == null ? void 0 : t.firstChild) === l && ((v = (d = l.closest(Z)) == null ? void 0 : d.querySelector(Ge)) == null || v.scrollIntoView({ block: "nearest" })), l.scrollIntoView({ block: "nearest" }));
|
|
134
|
-
}
|
|
135
|
-
function P() {
|
|
136
|
-
var t;
|
|
137
|
-
return (t = N.current) == null ? void 0 : t.querySelector(`${xe}[aria-selected="true"]`);
|
|
138
|
-
}
|
|
139
|
-
function V() {
|
|
140
|
-
var t;
|
|
141
|
-
return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ge)) || []);
|
|
142
|
-
}
|
|
143
|
-
function Y(t) {
|
|
144
|
-
let d = V()[t];
|
|
145
|
-
d && I.setState("value", d.getAttribute(z));
|
|
146
|
-
}
|
|
147
|
-
function Q(t) {
|
|
148
|
-
var d;
|
|
149
|
-
let v = P(), l = V(), x = l.findIndex((C) => C === v), w = l[x + t];
|
|
150
|
-
(d = s.current) != null && d.loop && (w = x + t < 0 ? l[l.length - 1] : x + t === l.length ? l[0] : l[x + t]), w && I.setState("value", w.getAttribute(z));
|
|
151
|
-
}
|
|
152
|
-
function ae(t) {
|
|
153
|
-
let d = P(), v = d?.closest(Z), l;
|
|
154
|
-
for (; v && !l; ) v = t > 0 ? tt(v, Z) : rt(v, Z), l = v?.querySelector(ge);
|
|
155
|
-
l ? I.setState("value", l.getAttribute(z)) : Q(t);
|
|
156
|
-
}
|
|
157
|
-
let le = () => Y(V().length - 1), f = (t) => {
|
|
158
|
-
t.preventDefault(), t.metaKey ? le() : t.altKey ? ae(1) : Q(1);
|
|
159
|
-
}, $ = (t) => {
|
|
160
|
-
t.preventDefault(), t.metaKey ? Y(0) : t.altKey ? ae(-1) : Q(-1);
|
|
161
|
-
};
|
|
162
|
-
return a.createElement(F.div, { ref: n, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (t) => {
|
|
163
|
-
var d;
|
|
164
|
-
(d = y.onKeyDown) == null || d.call(y, t);
|
|
165
|
-
let v = t.nativeEvent.isComposing || t.keyCode === 229;
|
|
166
|
-
if (!(t.defaultPrevented || v)) switch (t.key) {
|
|
167
|
-
case "n":
|
|
168
|
-
case "j": {
|
|
169
|
-
L && t.ctrlKey && f(t);
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
case "ArrowDown": {
|
|
173
|
-
f(t);
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
case "p":
|
|
177
|
-
case "k": {
|
|
178
|
-
L && t.ctrlKey && $(t);
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
case "ArrowUp": {
|
|
182
|
-
$(t);
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case "Home": {
|
|
186
|
-
t.preventDefault(), Y(0);
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
case "End": {
|
|
190
|
-
t.preventDefault(), le();
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
case "Enter": {
|
|
194
|
-
t.preventDefault();
|
|
195
|
-
let l = P();
|
|
196
|
-
if (l) {
|
|
197
|
-
let x = new Event(me);
|
|
198
|
-
l.dispatchEvent(x);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
} }, a.createElement("label", { "cmdk-label": "", htmlFor: _.inputId, id: _.labelId, style: lt }, b), ie(e, (t) => a.createElement(ke.Provider, { value: I }, a.createElement(ye.Provider, { value: _ }, t))));
|
|
203
|
-
}), _e = a.forwardRef((e, n) => {
|
|
204
|
-
var r, h;
|
|
205
|
-
let o = W(), c = a.useRef(null), m = a.useContext(we), s = re(), b = Ie(e), i = (h = (r = b.current) == null ? void 0 : r.forceMount) != null ? h : m?.forceMount;
|
|
206
|
-
K(() => {
|
|
207
|
-
if (!i) return s.item(o, m?.id);
|
|
208
|
-
}, [i]);
|
|
209
|
-
let g = Ee(o, c, [e.value, e.children, c], e.keywords), u = fe(), E = D((k) => k.value && k.value === g.current), S = D((k) => i || s.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
|
|
210
|
-
a.useEffect(() => {
|
|
211
|
-
let k = c.current;
|
|
212
|
-
if (!(!k || e.disabled)) return k.addEventListener(me, R), () => k.removeEventListener(me, R);
|
|
213
|
-
}, [S, e.onSelect, e.disabled]);
|
|
214
|
-
function R() {
|
|
215
|
-
var k, I;
|
|
216
|
-
U(), (I = (k = b.current).onSelect) == null || I.call(k, g.current);
|
|
217
|
-
}
|
|
218
|
-
function U() {
|
|
219
|
-
u.setState("value", g.current, !0);
|
|
220
|
-
}
|
|
221
|
-
if (!S) return null;
|
|
222
|
-
let { disabled: L, value: y, onSelect: ne, forceMount: A, keywords: T, ...N } = e;
|
|
223
|
-
return a.createElement(F.div, { ref: te(c, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!L, "aria-selected": !!E, "data-disabled": !!L, "data-selected": !!E, onPointerMove: L || s.getDisablePointerSelection() ? void 0 : U, onClick: L ? void 0 : R }, e.children);
|
|
224
|
-
}), He = a.forwardRef((e, n) => {
|
|
225
|
-
let { heading: r, children: h, forceMount: o, ...c } = e, m = W(), s = a.useRef(null), b = a.useRef(null), i = W(), g = re(), u = D((S) => o || g.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(m) : !0);
|
|
226
|
-
K(() => g.group(m), []), Ee(m, s, [e.value, e.heading, b]);
|
|
227
|
-
let E = a.useMemo(() => ({ id: m, forceMount: o }), [o]);
|
|
228
|
-
return a.createElement(F.div, { ref: te(s, n), ...c, "cmdk-group": "", role: "presentation", hidden: u ? void 0 : !0 }, r && a.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), ie(e, (S) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, a.createElement(we.Provider, { value: E }, S))));
|
|
229
|
-
}), Je = a.forwardRef((e, n) => {
|
|
230
|
-
let { alwaysRender: r, ...h } = e, o = a.useRef(null), c = D((m) => !m.search);
|
|
231
|
-
return !r && !c ? null : a.createElement(F.div, { ref: te(o, n), ...h, "cmdk-separator": "", role: "separator" });
|
|
232
|
-
}), Xe = a.forwardRef((e, n) => {
|
|
233
|
-
let { onValueChange: r, ...h } = e, o = e.value != null, c = fe(), m = D((i) => i.search), s = D((i) => i.selectedItemId), b = re();
|
|
234
|
-
return a.useEffect(() => {
|
|
235
|
-
e.value != null && c.setState("search", e.value);
|
|
236
|
-
}, [e.value]), a.createElement(F.input, { ref: n, ...h, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": s, id: b.inputId, type: "text", value: o ? e.value : m, onChange: (i) => {
|
|
237
|
-
o || c.setState("search", i.target.value), r?.(i.target.value);
|
|
238
|
-
} });
|
|
239
|
-
}), Ye = a.forwardRef((e, n) => {
|
|
240
|
-
let { children: r, label: h = "Suggestions", ...o } = e, c = a.useRef(null), m = a.useRef(null), s = D((i) => i.selectedItemId), b = re();
|
|
241
|
-
return a.useEffect(() => {
|
|
242
|
-
if (m.current && c.current) {
|
|
243
|
-
let i = m.current, g = c.current, u, E = new ResizeObserver(() => {
|
|
244
|
-
u = requestAnimationFrame(() => {
|
|
245
|
-
let S = i.offsetHeight;
|
|
246
|
-
g.style.setProperty("--cmdk-list-height", S.toFixed(1) + "px");
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
return E.observe(i), () => {
|
|
250
|
-
cancelAnimationFrame(u), E.unobserve(i);
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
}, []), a.createElement(F.div, { ref: te(c, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": s, "aria-label": h, id: b.listId }, ie(e, (i) => a.createElement("div", { ref: te(m, b.listInnerRef), "cmdk-list-sizer": "" }, i)));
|
|
254
|
-
}), Qe = a.forwardRef((e, n) => {
|
|
255
|
-
let { open: r, onOpenChange: h, overlayClassName: o, contentClassName: c, container: m, ...s } = e;
|
|
256
|
-
return a.createElement(Ae, { open: r, onOpenChange: h }, a.createElement(Ne, { container: m }, a.createElement($e, { "cmdk-overlay": "", className: o }), a.createElement(Me, { "aria-label": e.label, "cmdk-dialog": "", className: c }, a.createElement(Se, { ref: n, ...s }))));
|
|
257
|
-
}), Ze = a.forwardRef((e, n) => D((r) => r.filtered.count === 0) ? a.createElement(F.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), et = a.forwardRef((e, n) => {
|
|
258
|
-
let { progress: r, children: h, label: o = "Loading...", ...c } = e;
|
|
259
|
-
return a.createElement(F.div, { ref: n, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, ie(e, (m) => a.createElement("div", { "aria-hidden": !0 }, m)));
|
|
260
|
-
}), G = Object.assign(Se, { List: Ye, Item: _e, Input: Xe, Group: He, Separator: Je, Dialog: Qe, Empty: Ze, Loading: et });
|
|
261
|
-
function tt(e, n) {
|
|
262
|
-
let r = e.nextElementSibling;
|
|
263
|
-
for (; r; ) {
|
|
264
|
-
if (r.matches(n)) return r;
|
|
265
|
-
r = r.nextElementSibling;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function rt(e, n) {
|
|
269
|
-
let r = e.previousElementSibling;
|
|
270
|
-
for (; r; ) {
|
|
271
|
-
if (r.matches(n)) return r;
|
|
272
|
-
r = r.previousElementSibling;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
function Ie(e) {
|
|
276
|
-
let n = a.useRef(e);
|
|
277
|
-
return K(() => {
|
|
278
|
-
n.current = e;
|
|
279
|
-
}), n;
|
|
280
|
-
}
|
|
281
|
-
var K = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
|
|
282
|
-
function B(e) {
|
|
283
|
-
let n = a.useRef();
|
|
284
|
-
return n.current === void 0 && (n.current = e()), n;
|
|
285
|
-
}
|
|
286
|
-
function D(e) {
|
|
287
|
-
let n = fe(), r = () => e(n.snapshot());
|
|
288
|
-
return a.useSyncExternalStore(n.subscribe, r, r);
|
|
289
|
-
}
|
|
290
|
-
function Ee(e, n, r, h = []) {
|
|
291
|
-
let o = a.useRef(), c = re();
|
|
292
|
-
return K(() => {
|
|
293
|
-
var m;
|
|
294
|
-
let s = (() => {
|
|
295
|
-
var i;
|
|
296
|
-
for (let g of r) {
|
|
297
|
-
if (typeof g == "string") return g.trim();
|
|
298
|
-
if (typeof g == "object" && "current" in g) return g.current ? (i = g.current.textContent) == null ? void 0 : i.trim() : o.current;
|
|
299
|
-
}
|
|
300
|
-
})(), b = h.map((i) => i.trim());
|
|
301
|
-
c.value(e, s, b), (m = n.current) == null || m.setAttribute(z, s), o.current = s;
|
|
302
|
-
}), o;
|
|
303
|
-
}
|
|
304
|
-
var nt = () => {
|
|
305
|
-
let [e, n] = a.useState(), r = B(() => /* @__PURE__ */ new Map());
|
|
306
|
-
return K(() => {
|
|
307
|
-
r.current.forEach((h) => h()), r.current = /* @__PURE__ */ new Map();
|
|
308
|
-
}, [e]), (h, o) => {
|
|
309
|
-
r.current.set(h, o), n({});
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
|
-
function at(e) {
|
|
313
|
-
let n = e.type;
|
|
314
|
-
return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
|
|
315
|
-
}
|
|
316
|
-
function ie({ asChild: e, children: n }, r) {
|
|
317
|
-
return e && a.isValidElement(n) ? a.cloneElement(at(n), { ref: n.ref }, r(n.props.children)) : r(n);
|
|
318
|
-
}
|
|
319
|
-
var lt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
320
|
-
function ot({
|
|
321
|
-
className: e,
|
|
322
|
-
...n
|
|
323
|
-
}) {
|
|
324
|
-
return /* @__PURE__ */ p.jsx(
|
|
325
|
-
G,
|
|
326
|
-
{
|
|
327
|
-
"data-slot": "command",
|
|
328
|
-
className: M(
|
|
329
|
-
`
|
|
330
|
-
adm:flex adm:h-full adm:w-full adm:flex-col adm:overflow-hidden
|
|
331
|
-
adm:rounded-md adm:bg-popover adm:text-popover-foreground
|
|
332
|
-
`,
|
|
333
|
-
e
|
|
334
|
-
),
|
|
335
|
-
...n
|
|
336
|
-
}
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
function it({
|
|
340
|
-
className: e,
|
|
341
|
-
...n
|
|
342
|
-
}) {
|
|
343
|
-
return /* @__PURE__ */ p.jsxs(
|
|
344
|
-
"div",
|
|
345
|
-
{
|
|
346
|
-
"data-slot": "command-input-wrapper",
|
|
347
|
-
className: `
|
|
348
|
-
adm:flex adm:h-9 adm:items-center adm:gap-2 adm:border-b adm:px-3
|
|
349
|
-
adm:*:data-[slot=icon]:shrink-0 adm:*:data-[slot=icon]:text-lg
|
|
350
|
-
adm:*:data-[slot=icon]:opacity-50
|
|
351
|
-
`,
|
|
352
|
-
children: [
|
|
353
|
-
/* @__PURE__ */ p.jsx(ee, { symbol: "search" }),
|
|
354
|
-
/* @__PURE__ */ p.jsx(
|
|
355
|
-
G.Input,
|
|
356
|
-
{
|
|
357
|
-
"data-slot": "command-input",
|
|
358
|
-
className: M(
|
|
359
|
-
`
|
|
360
|
-
adm:flex adm:h-10 adm:w-full adm:rounded-md adm:bg-transparent
|
|
361
|
-
adm:py-3 adm:text-sm adm:outline-hidden
|
|
362
|
-
adm:placeholder:text-muted-foreground
|
|
363
|
-
adm:disabled:cursor-not-allowed adm:disabled:opacity-50
|
|
364
|
-
`,
|
|
365
|
-
e
|
|
366
|
-
),
|
|
367
|
-
...n
|
|
368
|
-
}
|
|
369
|
-
)
|
|
370
|
-
]
|
|
371
|
-
}
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
function dt({
|
|
375
|
-
className: e,
|
|
376
|
-
...n
|
|
377
|
-
}) {
|
|
378
|
-
return /* @__PURE__ */ p.jsx(
|
|
379
|
-
G.List,
|
|
380
|
-
{
|
|
381
|
-
"data-slot": "command-list",
|
|
382
|
-
className: M(
|
|
383
|
-
`
|
|
384
|
-
adm:max-h-[300px] adm:scroll-py-1 adm:overflow-x-hidden
|
|
385
|
-
adm:overflow-y-auto
|
|
386
|
-
`,
|
|
387
|
-
e
|
|
388
|
-
),
|
|
389
|
-
...n
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
}
|
|
393
|
-
function ut({
|
|
394
|
-
className: e,
|
|
395
|
-
...n
|
|
396
|
-
}) {
|
|
397
|
-
return /* @__PURE__ */ p.jsx(
|
|
398
|
-
G.Empty,
|
|
399
|
-
{
|
|
400
|
-
"data-slot": "command-empty",
|
|
401
|
-
className: M("adm:py-6 adm:text-center adm:text-sm", e),
|
|
402
|
-
...n
|
|
403
|
-
}
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
function ct({
|
|
407
|
-
className: e,
|
|
408
|
-
...n
|
|
409
|
-
}) {
|
|
410
|
-
return /* @__PURE__ */ p.jsx(
|
|
411
|
-
G.Group,
|
|
412
|
-
{
|
|
413
|
-
"data-slot": "command-group",
|
|
414
|
-
className: M(
|
|
415
|
-
`
|
|
416
|
-
adm:overflow-hidden adm:p-1 adm:text-foreground
|
|
417
|
-
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:px-2
|
|
418
|
-
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:py-1.5
|
|
419
|
-
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-xs
|
|
420
|
-
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:font-medium
|
|
421
|
-
adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-muted-foreground
|
|
422
|
-
`,
|
|
423
|
-
e
|
|
424
|
-
),
|
|
425
|
-
...n
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
function st({
|
|
430
|
-
className: e,
|
|
431
|
-
...n
|
|
432
|
-
}) {
|
|
433
|
-
return /* @__PURE__ */ p.jsx(
|
|
434
|
-
G.Item,
|
|
435
|
-
{
|
|
436
|
-
"data-slot": "command-item",
|
|
437
|
-
className: M(
|
|
438
|
-
`
|
|
439
|
-
adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2
|
|
440
|
-
adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden
|
|
441
|
-
adm:select-none
|
|
442
|
-
adm:data-[disabled=true]:pointer-events-none
|
|
443
|
-
adm:data-[disabled=true]:opacity-50
|
|
444
|
-
adm:data-[selected=true]:bg-accent
|
|
445
|
-
adm:data-[selected=true]:text-accent-foreground
|
|
446
|
-
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
447
|
-
adm:[&_svg:not([class*=size-])]:size-4
|
|
448
|
-
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
449
|
-
`,
|
|
450
|
-
e
|
|
451
|
-
),
|
|
452
|
-
...n
|
|
453
|
-
}
|
|
454
|
-
);
|
|
455
|
-
}
|
|
456
|
-
function St({
|
|
457
|
-
searchable: e,
|
|
458
|
-
multiple: n,
|
|
459
|
-
icon: r,
|
|
460
|
-
value: h,
|
|
461
|
-
onValueChange: o,
|
|
462
|
-
labels: c,
|
|
463
|
-
options: m,
|
|
464
|
-
classNames: s,
|
|
465
|
-
selectedFeedback: b = "checkbox",
|
|
466
|
-
alwaysShowPlaceholder: i = !1,
|
|
467
|
-
valuePosition: g = "right",
|
|
468
|
-
renders: u
|
|
469
|
-
}) {
|
|
470
|
-
const E = Re(null), [S, R] = pe(!1), [U, L] = pe(n ? [] : ""), y = h !== void 0 ? h : U, A = { ...{
|
|
471
|
-
placeholder: "Select options...",
|
|
472
|
-
searchPlaceholder: "Search options...",
|
|
473
|
-
noItemsFound: "No options found.",
|
|
474
|
-
multipleSelected: (f) => `${f} options selected`
|
|
475
|
-
}, ...c }, T = (f) => {
|
|
476
|
-
o ? o(f) : L(f);
|
|
477
|
-
}, N = () => n && Array.isArray(y) ? y.length === 0 ? null : y.length === 1 ? m.find((f) => f.value === y[0])?.label : A.multipleSelected?.(y.length) || `${y.length} options selected` : !n && typeof y == "string" && y ? m.find((f) => f.value === y)?.label : null, k = () => n && Array.isArray(y) ? y.length > 0 : typeof y == "string" && y !== "", I = (f) => n && Array.isArray(y) ? y.includes(f) : y === f, _ = (f) => {
|
|
478
|
-
if (n) {
|
|
479
|
-
const $ = Array.isArray(y) ? y : [], t = $.includes(f) ? $.filter((d) => d !== f) : [...$, f];
|
|
480
|
-
T(t);
|
|
481
|
-
} else
|
|
482
|
-
T(f === y ? "" : f), R(!1);
|
|
483
|
-
}, H = (f) => {
|
|
484
|
-
const $ = I(f), t = m.find((d) => d.value === f);
|
|
485
|
-
return u?.selectedFeedback ? u.selectedFeedback({
|
|
486
|
-
option: t,
|
|
487
|
-
isSelected: $,
|
|
488
|
-
type: b
|
|
489
|
-
}) : b === "check" ? /* @__PURE__ */ p.jsx(
|
|
490
|
-
"span",
|
|
491
|
-
{
|
|
492
|
-
className: M(`
|
|
493
|
-
adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center
|
|
494
|
-
adm:justify-center
|
|
495
|
-
`, s?.check),
|
|
496
|
-
children: $ && /* @__PURE__ */ p.jsx(ee, { symbol: "check" })
|
|
497
|
-
}
|
|
498
|
-
) : /* @__PURE__ */ p.jsx(
|
|
499
|
-
Ce,
|
|
500
|
-
{
|
|
501
|
-
checked: $,
|
|
502
|
-
className: s?.checkbox
|
|
503
|
-
}
|
|
504
|
-
);
|
|
505
|
-
}, q = () => u?.placeholder ? u.placeholder({
|
|
506
|
-
text: A.placeholder || "",
|
|
507
|
-
hasValue: k()
|
|
508
|
-
}) : /* @__PURE__ */ p.jsx("span", { className: "adm:opacity-70", children: A.placeholder }), O = () => u?.displayValue ? u.displayValue({
|
|
509
|
-
text: N() ?? null,
|
|
510
|
-
value: y
|
|
511
|
-
}) : /* @__PURE__ */ p.jsx("span", { children: N() }), J = () => i ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
|
|
512
|
-
r && /* @__PURE__ */ p.jsx(ee, { symbol: r, className: "adm:opacity-50" }),
|
|
513
|
-
q(),
|
|
514
|
-
k() && g === "left" && O()
|
|
515
|
-
] }) : /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
|
|
516
|
-
r && /* @__PURE__ */ p.jsx(ee, { symbol: r, className: "adm:opacity-50" }),
|
|
517
|
-
k() ? O() : q()
|
|
518
|
-
] }), X = () => u?.triggerIcon ? u.triggerIcon({
|
|
519
|
-
open: S
|
|
520
|
-
}) : /* @__PURE__ */ p.jsx(ee, { symbol: "expand_more", className: "adm:opacity-50" }), P = () => i && k() && g === "right" ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
|
|
521
|
-
O(),
|
|
522
|
-
X()
|
|
523
|
-
] }) : /* @__PURE__ */ p.jsx("span", { className: "adm:flex adm:items-center adm:gap-2", children: X() }), V = () => u?.trigger ? u.trigger({
|
|
524
|
-
open: S,
|
|
525
|
-
value: y,
|
|
526
|
-
displayText: N() || "",
|
|
527
|
-
placeholder: A.placeholder || "",
|
|
528
|
-
hasValue: k(),
|
|
529
|
-
icon: r
|
|
530
|
-
}) : /* @__PURE__ */ p.jsxs(
|
|
531
|
-
je,
|
|
532
|
-
{
|
|
533
|
-
ref: E,
|
|
534
|
-
variant: "outline",
|
|
535
|
-
role: "combobox",
|
|
536
|
-
"aria-expanded": S,
|
|
537
|
-
className: M("adm:justify-between adm:font-normal", s?.trigger),
|
|
538
|
-
children: [
|
|
539
|
-
J(),
|
|
540
|
-
P()
|
|
541
|
-
]
|
|
542
|
-
}
|
|
543
|
-
), Y = () => e ? u?.searchInput ? u.searchInput({
|
|
544
|
-
placeholder: A.searchPlaceholder || ""
|
|
545
|
-
}) : /* @__PURE__ */ p.jsx(
|
|
546
|
-
it,
|
|
547
|
-
{
|
|
548
|
-
placeholder: A.searchPlaceholder,
|
|
549
|
-
className: s?.input
|
|
550
|
-
}
|
|
551
|
-
) : null, Q = () => u?.empty ? u.empty({
|
|
552
|
-
text: A.noItemsFound || ""
|
|
553
|
-
}) : /* @__PURE__ */ p.jsx(p.Fragment, { children: A.noItemsFound }), ae = (f) => u?.optionLabel ? u.optionLabel({
|
|
554
|
-
option: f
|
|
555
|
-
}) : /* @__PURE__ */ p.jsx(p.Fragment, { children: f.label }), le = (f) => u?.option ? /* @__PURE__ */ p.jsx("div", { children: u.option({
|
|
556
|
-
option: f,
|
|
557
|
-
isSelected: I(f.value),
|
|
558
|
-
selectedFeedback: b
|
|
559
|
-
}) }, f.value) : /* @__PURE__ */ p.jsxs(
|
|
560
|
-
st,
|
|
561
|
-
{
|
|
562
|
-
value: f.value,
|
|
563
|
-
onSelect: _,
|
|
564
|
-
disabled: f.disabled,
|
|
565
|
-
className: M(
|
|
566
|
-
s?.item,
|
|
567
|
-
b === "check" && "adm:pr-8"
|
|
568
|
-
),
|
|
569
|
-
children: [
|
|
570
|
-
b === "checkbox" && H(f.value),
|
|
571
|
-
ae(f),
|
|
572
|
-
b === "check" && H(f.value)
|
|
573
|
-
]
|
|
574
|
-
},
|
|
575
|
-
f.value
|
|
576
|
-
);
|
|
577
|
-
return /* @__PURE__ */ p.jsxs(Le, { open: S, onOpenChange: R, children: [
|
|
578
|
-
/* @__PURE__ */ p.jsx(Pe, { asChild: !0, children: V() }),
|
|
579
|
-
/* @__PURE__ */ p.jsx(
|
|
580
|
-
De,
|
|
581
|
-
{
|
|
582
|
-
align: "start",
|
|
583
|
-
className: M("adm:p-0", s?.popover),
|
|
584
|
-
style: { minWidth: E.current?.offsetWidth },
|
|
585
|
-
children: /* @__PURE__ */ p.jsxs(ot, { className: s?.command, children: [
|
|
586
|
-
Y(),
|
|
587
|
-
/* @__PURE__ */ p.jsxs(dt, { className: s?.list, children: [
|
|
588
|
-
/* @__PURE__ */ p.jsx(ut, { className: s?.empty, children: Q() }),
|
|
589
|
-
/* @__PURE__ */ p.jsx(ct, { className: s?.group, children: m.map((f) => le(f)) })
|
|
590
|
-
] })
|
|
591
|
-
] })
|
|
592
|
-
}
|
|
593
|
-
)
|
|
594
|
-
] });
|
|
595
|
-
}
|
|
1
|
+
import { C as m } from "./combobox-CtdzWxGX.js";
|
|
596
2
|
export {
|
|
597
|
-
|
|
3
|
+
m as Combobox
|
|
598
4
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Loader } from './full-screen-loader';
|
|
2
|
+
declare class _FullScreenLoaderObservable {
|
|
3
|
+
subscribers: ((loader: Loader) => void)[];
|
|
4
|
+
subscribe(callback: (loader: Loader) => void): () => void;
|
|
5
|
+
emit(loader: Loader): void;
|
|
6
|
+
}
|
|
7
|
+
export declare const FullScreenLoaderObservable: _FullScreenLoaderObservable;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Calendar } from '../calendar';
|
|
2
|
+
import { Combobox } from '../combobox';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
import { DateRange } from 'react-day-picker';
|
|
5
|
+
export type DatePickerSelectorLabels = {
|
|
6
|
+
last30Days?: string;
|
|
7
|
+
last7Days?: string;
|
|
8
|
+
last90Days?: string;
|
|
9
|
+
custom?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
cancel?: string;
|
|
12
|
+
apply?: string;
|
|
13
|
+
};
|
|
14
|
+
export type DatePickerSelectorProps = ComponentProps<"div"> & Readonly<{
|
|
15
|
+
dateRange: DateRange;
|
|
16
|
+
onDateRangeChange: (dateRange: DateRange) => void;
|
|
17
|
+
labels?: DatePickerSelectorLabels;
|
|
18
|
+
combobox?: Omit<ComponentProps<typeof Combobox>, "options">;
|
|
19
|
+
calendar?: Omit<ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelected">;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function DatePickerSelector({ dateRange, onDateRangeChange, labels, combobox, calendar, className, ...props }: DatePickerSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './date-picker-selector';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),p=require("./button-hCW1Pww0.cjs"),m=require("./calendar-DMvGcwMp.cjs"),g=require("./combobox-CW07jN3o.cjs"),k=require("./input-CWDpI1Ua.cjs"),d=require("./popover-cGp_rNLg.cjs"),C=require("./index-DoxiiusW.cjs"),i=require("react");function u(n,o,l){return m.addDays(n,-o,l)}function E({dateRange:n,onDateRangeChange:o,labels:l,combobox:y,calendar:j,className:f,...b}){const[h,D]=i.useState(void 0),[v,r]=i.useState(!1),[c,x]=i.useState(n),a={...{last30Days:"Last 30 days",last7Days:"Last 7 days",last90Days:"Last 90 days",custom:"Custom",placeholder:"Date",cancel:"Cancel",apply:"Apply"},...l},R=s=>{const t=m.startOfDay(new Date);switch(s){case"7_days":return{from:u(t,7),to:t};case"30_days":return{from:u(t,30),to:t};case"90_days":return{from:u(t,90),to:t};default:return{from:void 0,to:void 0}}};return e.jsxRuntimeExports.jsxs("div",{className:C.cn("adm:flex adm:w-max adm:flex-col",f),...b,children:[e.jsxRuntimeExports.jsx(g.Combobox,{alwaysShowPlaceholder:!0,selectedFeedback:"check",icon:"calendar_today",options:[{label:a.last30Days,value:"30_days"},{label:a.last7Days,value:"7_days"},{label:a.last90Days,value:"90_days"},{label:a.custom,value:"custom"}],value:h,onValueChange:s=>{if(typeof s=="string")if(s==="custom")r(!0);else{const t=R(s);o(t),x(void 0)}D(s)},labels:{placeholder:a.placeholder},...y}),e.jsxRuntimeExports.jsxs(d.Popover,{open:v,onOpenChange:r,children:[e.jsxRuntimeExports.jsx(d.PopoverAnchor,{asChild:!0,children:e.jsxRuntimeExports.jsx(k.Input,{className:"adm:sr-only"})}),e.jsxRuntimeExports.jsxs(d.PopoverContent,{align:"start",children:[e.jsxRuntimeExports.jsx(m.Calendar,{required:!0,mode:"range",selected:c,onSelect:x,captionLayout:"dropdown",classNames:{root:"adm:p-0!"},...j}),e.jsxRuntimeExports.jsxs("div",{className:"adm:mt-2 adm:flex adm:justify-end adm:gap-2",children:[e.jsxRuntimeExports.jsx(p.Button,{variant:"link",onClick:()=>{r(!1)},children:a.cancel}),e.jsxRuntimeExports.jsx(p.Button,{variant:"link",onClick:()=>{c&&o(c),r(!1)},children:a.apply})]})]})]})]})}exports.DatePickerSelector=E;
|