@mci-ui/mci-ui 0.0.87 → 0.0.88
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/shared/ui/mciAccordion/MciAccordion.js +97 -64
- package/dist/shared/ui/mciDrawer/MciDrawer.js +23 -18
- package/dist/shared/ui/mciTabs/MciTabs.js +66 -55
- package/dist/types/shared/types/ui/accordion.types.d.ts +1 -0
- package/dist/types/shared/types/ui/drawer.types.d.ts +1 -0
- package/dist/types/shared/ui/mciAccordion/MciAccordion.d.ts +5 -3
- package/dist/types/shared/ui/mciDrawer/MciDrawer.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,74 +1,107 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { AltArrowDown as
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
(
|
|
1
|
+
import { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { AltArrowDown as A } from "@solar-icons/react";
|
|
3
|
+
import l, { useState as _, useRef as C, useId as E } from "react";
|
|
4
|
+
import { cn as r } from "../../lib/utils.js";
|
|
5
|
+
const T = (t) => t.type.displayName, p = (t, o, n) => l.Children.toArray(t).find(
|
|
6
|
+
(e) => l.isValidElement(e) && (T(e) === o || e.type === n)
|
|
7
7
|
) ?? null;
|
|
8
|
-
function
|
|
9
|
-
children:
|
|
10
|
-
className:
|
|
8
|
+
function b({
|
|
9
|
+
children: t,
|
|
10
|
+
className: o,
|
|
11
|
+
darkMode: n = !1
|
|
11
12
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ a("div", { className: r("text-base font-medium", n ? "text-neutral-50" : "text-black", o), children: t });
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
children:
|
|
17
|
-
className:
|
|
15
|
+
b.displayName = "AccordionTitle";
|
|
16
|
+
function m({
|
|
17
|
+
children: t,
|
|
18
|
+
className: o,
|
|
19
|
+
darkMode: n = !1
|
|
18
20
|
}) {
|
|
19
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ a("div", { className: r("p-5 text-base", n ? "text-neutral-100" : "text-black", o), children: t });
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
const [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
23
|
+
m.displayName = "AccordionContent";
|
|
24
|
+
function f({ children: t, defaultValue: o = !1, icon: n, darkMode: e = !1, className: g }) {
|
|
25
|
+
const [i, x] = _(o), h = C(null), s = E(), w = () => x((y) => !y), c = p(t, "AccordionTitle", b), d = p(t, "AccordionContent", m), N = l.isValidElement(c) ? l.cloneElement(c, {
|
|
26
|
+
darkMode: e
|
|
27
|
+
}) : c, v = l.isValidElement(d) ? l.cloneElement(d, {
|
|
28
|
+
darkMode: e
|
|
29
|
+
}) : d;
|
|
30
|
+
return /* @__PURE__ */ u(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: r(
|
|
34
|
+
"overflow-hidden rounded-xl border",
|
|
35
|
+
e ? "border-neutral-200 bg-neutral-300 shadow-[inset_0_1px_0_rgba(255,255,255,0.03)]" : "border-slate-200 bg-white",
|
|
36
|
+
g
|
|
37
|
+
),
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ u(
|
|
40
|
+
"button",
|
|
41
|
+
{
|
|
42
|
+
type: "button",
|
|
43
|
+
onClick: w,
|
|
44
|
+
"aria-expanded": i,
|
|
45
|
+
"aria-controls": s,
|
|
46
|
+
className: r(
|
|
47
|
+
"group flex w-full items-center justify-between gap-2 p-5 transition-all duration-300 hover:cursor-pointer",
|
|
48
|
+
e ? [
|
|
49
|
+
"bg-neutral-300/70 hover:bg-neutral-200/80",
|
|
50
|
+
i ? "border-b border-neutral-200 shadow-[inset_0_-1px_0_rgba(255,255,255,0.02)]" : "border-b border-transparent"
|
|
51
|
+
] : [
|
|
52
|
+
"hover:bg-slate-50",
|
|
53
|
+
i ? "border-b border-slate-200" : "border-b border-transparent"
|
|
54
|
+
]
|
|
55
|
+
),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ u("div", { className: "flex w-full items-center gap-2", children: [
|
|
58
|
+
n && /* @__PURE__ */ a("span", { className: r("shrink-0", e ? "text-neutral-100" : "text-slate-500"), children: n }),
|
|
59
|
+
N
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ a(
|
|
62
|
+
A,
|
|
63
|
+
{
|
|
64
|
+
weight: "Linear",
|
|
65
|
+
size: 20,
|
|
66
|
+
className: r(
|
|
67
|
+
"shrink-0 transition-all duration-300",
|
|
68
|
+
e ? "text-neutral-100 group-hover:text-neutral-50" : "text-slate-400",
|
|
69
|
+
i && "rotate-180"
|
|
70
|
+
)
|
|
71
|
+
}
|
|
49
72
|
)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
/* @__PURE__ */ r(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
id: s,
|
|
59
|
-
role: "region",
|
|
60
|
-
"aria-labelledby": s,
|
|
61
|
-
className: n(
|
|
62
|
-
"grid transition-[grid-template-rows] duration-300 ease-out",
|
|
63
|
-
a ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
64
75
|
),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
/* @__PURE__ */ a(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
id: s,
|
|
80
|
+
role: "region",
|
|
81
|
+
"aria-labelledby": s,
|
|
82
|
+
className: r(
|
|
83
|
+
"grid transition-[grid-template-rows] duration-300 ease-out",
|
|
84
|
+
i ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
85
|
+
),
|
|
86
|
+
children: /* @__PURE__ */ a(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
ref: h,
|
|
90
|
+
className: r(
|
|
91
|
+
"min-h-0 overflow-hidden",
|
|
92
|
+
e ? "bg-[#22242A]" : "bg-white"
|
|
93
|
+
),
|
|
94
|
+
children: v
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
);
|
|
69
102
|
}
|
|
70
|
-
|
|
71
|
-
|
|
103
|
+
f.Title = b;
|
|
104
|
+
f.Content = m;
|
|
72
105
|
export {
|
|
73
|
-
|
|
106
|
+
f as default
|
|
74
107
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
2
|
-
import { useRef as h, useCallback as
|
|
1
|
+
import { jsxs as n, Fragment as E, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as h, useCallback as C, useEffect as x, useMemo as X } from "react";
|
|
3
3
|
import { cn as i } from "../../lib/utils.js";
|
|
4
|
-
import
|
|
5
|
-
function
|
|
4
|
+
import z from "../../../assets/icons/close.svg.js";
|
|
5
|
+
function F({
|
|
6
6
|
isOpen: e,
|
|
7
7
|
onClose: c,
|
|
8
8
|
position: o = "right",
|
|
@@ -13,25 +13,26 @@ function D({
|
|
|
13
13
|
showCloseButton: d = !0,
|
|
14
14
|
drawerClassName: v,
|
|
15
15
|
contentClassName: y,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
footerClassName: g,
|
|
17
|
+
closeOnOverlayClick: w = !0,
|
|
18
|
+
closeOnEscape: P = !0,
|
|
18
19
|
width: l = 572,
|
|
19
20
|
darkMode: r = !1
|
|
20
21
|
}) {
|
|
21
|
-
const u = h(null), b = h(null), f =
|
|
22
|
+
const u = h(null), b = h(null), f = C(() => c(), [c]);
|
|
22
23
|
x(() => {
|
|
23
24
|
e ? (b.current = document.activeElement, u.current?.focus()) : b.current?.focus();
|
|
24
25
|
}, [e]), x(() => (e && (document.body.style.overflow = "hidden"), () => {
|
|
25
26
|
document.body.style.overflow = "unset";
|
|
26
27
|
}), [e]);
|
|
27
|
-
const
|
|
28
|
+
const N = X(
|
|
28
29
|
() => ({
|
|
29
30
|
"--drawer-w": typeof l == "number" ? `${l}px` : l,
|
|
30
31
|
transform: e ? "translateX(0)" : o === "right" ? "translateX(calc(100% + 48px))" : "translateX(calc(-100% - 48px))"
|
|
31
32
|
}),
|
|
32
33
|
[e, l, o]
|
|
33
|
-
),
|
|
34
|
-
return /* @__PURE__ */ n(
|
|
34
|
+
), k = !!(a || s || d), $ = o === "right" ? "top-0 bottom-0 right-0 left-3 rounded-l-3xl rounded-r-none" : "top-0 bottom-0 left-0 right-3 rounded-r-3xl rounded-l-none", j = o === "right" ? "sm:top-6 sm:bottom-6 sm:right-6 sm:left-auto" : "sm:top-6 sm:bottom-6 sm:left-6 sm:right-auto";
|
|
35
|
+
return /* @__PURE__ */ n(E, { children: [
|
|
35
36
|
/* @__PURE__ */ t(
|
|
36
37
|
"div",
|
|
37
38
|
{
|
|
@@ -39,7 +40,7 @@ function D({
|
|
|
39
40
|
"fixed inset-0 z-50 bg-black/40 transition-opacity duration-300",
|
|
40
41
|
e ? "opacity-100 visible cursor-pointer" : "opacity-0 invisible pointer-events-none"
|
|
41
42
|
),
|
|
42
|
-
onClick:
|
|
43
|
+
onClick: w ? f : void 0,
|
|
43
44
|
"aria-hidden": "true"
|
|
44
45
|
}
|
|
45
46
|
),
|
|
@@ -48,15 +49,15 @@ function D({
|
|
|
48
49
|
{
|
|
49
50
|
ref: u,
|
|
50
51
|
tabIndex: -1,
|
|
51
|
-
style:
|
|
52
|
+
style: N,
|
|
52
53
|
className: i(
|
|
53
54
|
`fixed z-50 flex flex-col ${r ? "bg-black" : "bg-white"} outline-none min-h-0`,
|
|
54
55
|
"transition-[transform,opacity,visibility] duration-300 ease-in-out",
|
|
55
56
|
e ? "opacity-100 visible pointer-events-auto shadow-2xl" : "opacity-0 invisible pointer-events-none shadow-none",
|
|
56
|
-
|
|
57
|
+
$,
|
|
57
58
|
"h-[100dvh]",
|
|
58
59
|
"pb-[env(safe-area-inset-bottom)]",
|
|
59
|
-
|
|
60
|
+
j,
|
|
60
61
|
"sm:h-auto sm:rounded-2xl sm:pb-0",
|
|
61
62
|
"sm:w-[var(--drawer-w)]",
|
|
62
63
|
v
|
|
@@ -66,7 +67,7 @@ function D({
|
|
|
66
67
|
"aria-hidden": !e,
|
|
67
68
|
"aria-labelledby": a ? "drawer-title" : void 0,
|
|
68
69
|
children: [
|
|
69
|
-
|
|
70
|
+
k && /* @__PURE__ */ n(
|
|
70
71
|
"div",
|
|
71
72
|
{
|
|
72
73
|
className: `flex items-start justify-between border-b ${r ? "border-neutral-200" : "border-slate-200"} shrink-0 px-4 py-4 sm:p-6`,
|
|
@@ -89,7 +90,7 @@ function D({
|
|
|
89
90
|
onClick: f,
|
|
90
91
|
className: `${r ? "bg-neutral-300 text-slate-50" : "bg-slate-100 text-black"} rounded-xl w-11 h-11 sm:w-12 sm:h-12 hover:cursor-pointer transition flex items-center justify-center group active:scale-95`,
|
|
91
92
|
children: /* @__PURE__ */ t(
|
|
92
|
-
|
|
93
|
+
z,
|
|
93
94
|
{
|
|
94
95
|
className: "h-5 w-5 sm:h-6 sm:w-6 transition-transform duration-300 group-hover:rotate-180"
|
|
95
96
|
}
|
|
@@ -112,7 +113,11 @@ function D({
|
|
|
112
113
|
m && /* @__PURE__ */ t(
|
|
113
114
|
"div",
|
|
114
115
|
{
|
|
115
|
-
className:
|
|
116
|
+
className: i(
|
|
117
|
+
"shrink-0 flex items-center justify-end border-t px-4 py-4 sm:p-6 gap-3 [&>*]:w-fit [&>*]:shrink-0 [&>*]:whitespace-nowrap",
|
|
118
|
+
r ? "border-neutral-200" : "border-slate-200",
|
|
119
|
+
g
|
|
120
|
+
),
|
|
116
121
|
children: m
|
|
117
122
|
}
|
|
118
123
|
)
|
|
@@ -122,5 +127,5 @@ function D({
|
|
|
122
127
|
] });
|
|
123
128
|
}
|
|
124
129
|
export {
|
|
125
|
-
|
|
130
|
+
F as default
|
|
126
131
|
};
|
|
@@ -1,112 +1,123 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useRef as p, useCallback as R, useEffect as x } from "react";
|
|
3
3
|
import { cn as t } from "../../lib/utils.js";
|
|
4
|
-
const
|
|
4
|
+
const I = {
|
|
5
5
|
top: "flex-col",
|
|
6
6
|
bottom: "flex-col-reverse",
|
|
7
7
|
left: "flex-row",
|
|
8
8
|
right: "flex-row-reverse"
|
|
9
|
-
},
|
|
9
|
+
}, O = {
|
|
10
10
|
top: "flex-row",
|
|
11
11
|
bottom: "flex-row",
|
|
12
12
|
left: "flex-col",
|
|
13
13
|
right: "flex-col"
|
|
14
|
-
},
|
|
14
|
+
}, j = {
|
|
15
15
|
top: "mt-4",
|
|
16
16
|
bottom: "mb-4",
|
|
17
17
|
left: "ml-4",
|
|
18
18
|
right: "mr-4"
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
tabs:
|
|
22
|
-
defaultTab:
|
|
23
|
-
position:
|
|
24
|
-
darkMode:
|
|
25
|
-
className:
|
|
26
|
-
tabListClassName:
|
|
27
|
-
contentClassName:
|
|
28
|
-
extra:
|
|
29
|
-
onChange:
|
|
20
|
+
function q({
|
|
21
|
+
tabs: l,
|
|
22
|
+
defaultTab: N,
|
|
23
|
+
position: c = "top",
|
|
24
|
+
darkMode: d = !1,
|
|
25
|
+
className: b,
|
|
26
|
+
tabListClassName: g,
|
|
27
|
+
contentClassName: S,
|
|
28
|
+
extra: w,
|
|
29
|
+
onChange: y
|
|
30
30
|
}) {
|
|
31
|
-
const [
|
|
31
|
+
const [a, E] = v(N || l[0]?.id), [A, T] = v({}), f = p([]), h = p(null), n = R(() => {
|
|
32
32
|
requestAnimationFrame(() => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
requestAnimationFrame(() => {
|
|
34
|
+
const e = l.findIndex((L) => L?.id === a), r = f.current[e];
|
|
35
|
+
if (!r) return;
|
|
36
|
+
const { offsetLeft: o, offsetTop: m, offsetWidth: z, offsetHeight: C } = r;
|
|
37
|
+
T({
|
|
37
38
|
left: `${o}px`,
|
|
38
39
|
top: `${m}px`,
|
|
39
|
-
width: `${
|
|
40
|
-
height: `${
|
|
40
|
+
width: `${z}px`,
|
|
41
|
+
height: `${C}px`,
|
|
41
42
|
transition: "all 0.35s cubic-bezier(0.25, 1, 0.5, 1)"
|
|
42
43
|
});
|
|
43
|
-
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}, [a, l]);
|
|
47
|
+
x(() => (n(), window.addEventListener("resize", n), "fonts" in document && document.fonts.ready.then(n), () => window.removeEventListener("resize", n)), [c, n]), x(() => {
|
|
48
|
+
const e = h.current;
|
|
49
|
+
if (!e || typeof ResizeObserver > "u") return;
|
|
50
|
+
const r = new ResizeObserver(() => {
|
|
51
|
+
n();
|
|
44
52
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
return r.observe(e), f.current.forEach((o) => {
|
|
54
|
+
o && r.observe(o);
|
|
55
|
+
}), () => r.disconnect();
|
|
56
|
+
}, [l, n]), x(() => {
|
|
57
|
+
f.current = f.current.slice(0, l.length);
|
|
58
|
+
}, [l]);
|
|
59
|
+
const s = c === "left" || c === "right";
|
|
60
|
+
return /* @__PURE__ */ u("div", { className: t("flex w-full", I[c], b), children: [
|
|
51
61
|
/* @__PURE__ */ u(
|
|
52
62
|
"div",
|
|
53
63
|
{
|
|
54
64
|
className: t(
|
|
55
65
|
"flex w-full gap-4",
|
|
56
|
-
|
|
66
|
+
s ? "flex-col items-start" : "flex-row flex-wrap items-center"
|
|
57
67
|
),
|
|
58
68
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ i(
|
|
60
70
|
"div",
|
|
61
71
|
{
|
|
62
72
|
className: t(
|
|
63
73
|
"flex-1",
|
|
64
|
-
|
|
74
|
+
s ? "w-full" : "min-w-[520px]"
|
|
65
75
|
),
|
|
66
76
|
children: /* @__PURE__ */ u(
|
|
67
77
|
"div",
|
|
68
78
|
{
|
|
79
|
+
ref: h,
|
|
69
80
|
className: t(
|
|
70
81
|
"relative flex rounded-xl p-1",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
!
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
d ? "bg-neutral-300" : "bg-slate-100",
|
|
83
|
+
O[c],
|
|
84
|
+
!s && "w-full overflow-hidden",
|
|
85
|
+
s ? "min-w-48" : "",
|
|
86
|
+
g
|
|
76
87
|
),
|
|
77
88
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ i(
|
|
79
90
|
"div",
|
|
80
91
|
{
|
|
81
92
|
className: t(
|
|
82
93
|
"absolute rounded-lg",
|
|
83
|
-
|
|
84
|
-
|
|
94
|
+
d ? "bg-black" : "bg-white",
|
|
95
|
+
s ? "w-full" : "h-full"
|
|
85
96
|
),
|
|
86
|
-
style:
|
|
97
|
+
style: A
|
|
87
98
|
}
|
|
88
99
|
),
|
|
89
|
-
|
|
90
|
-
const o =
|
|
100
|
+
l?.map((e, r) => {
|
|
101
|
+
const o = a === e.id;
|
|
91
102
|
return /* @__PURE__ */ u(
|
|
92
103
|
"button",
|
|
93
104
|
{
|
|
94
105
|
ref: (m) => {
|
|
95
|
-
f.current[
|
|
106
|
+
f.current[r] = m;
|
|
96
107
|
},
|
|
97
108
|
onClick: () => {
|
|
98
|
-
e?.disabled || (
|
|
109
|
+
e?.disabled || (E(e?.id), y?.(e?.id));
|
|
99
110
|
},
|
|
100
111
|
disabled: e?.disabled,
|
|
101
112
|
className: t(
|
|
102
113
|
"relative z-10 flex items-center justify-center whitespace-nowrap px-3 py-2 text-base font-normal transition-colors duration-300 hover:cursor-pointer",
|
|
103
|
-
|
|
104
|
-
e?.disabled && (
|
|
105
|
-
|
|
114
|
+
d ? "text-white" : "text-black",
|
|
115
|
+
e?.disabled && (d ? "cursor-not-allowed text-neutral-100/50 opacity-60" : "cursor-not-allowed opacity-50"),
|
|
116
|
+
s ? "w-full justify-start" : "flex-1 min-w-0"
|
|
106
117
|
),
|
|
107
118
|
children: [
|
|
108
|
-
e?.icon && /* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
119
|
+
e?.icon && /* @__PURE__ */ i("span", { className: t("shrink-0 transition-transform duration-200", o && "scale-110"), children: e?.icon }),
|
|
120
|
+
/* @__PURE__ */ i("span", { className: "relative z-10 truncate", title: e?.label, children: e?.label })
|
|
110
121
|
]
|
|
111
122
|
},
|
|
112
123
|
e?.id
|
|
@@ -117,22 +128,22 @@ function k({
|
|
|
117
128
|
)
|
|
118
129
|
}
|
|
119
130
|
),
|
|
120
|
-
|
|
131
|
+
w && /* @__PURE__ */ i(
|
|
121
132
|
"div",
|
|
122
133
|
{
|
|
123
134
|
className: t(
|
|
124
135
|
"shrink-0 ml-auto",
|
|
125
|
-
|
|
136
|
+
s ? "w-full" : "max-w-full"
|
|
126
137
|
),
|
|
127
|
-
children: /* @__PURE__ */
|
|
138
|
+
children: /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center justify-end gap-2", children: w })
|
|
128
139
|
}
|
|
129
140
|
)
|
|
130
141
|
]
|
|
131
142
|
}
|
|
132
143
|
),
|
|
133
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ i("div", { className: t("w-full flex-1 overflow-hidden", j[c], S), children: /* @__PURE__ */ i("div", { className: "animate-fade-in w-full", style: { animationDuration: "0.35s" }, children: l?.find((e) => e.id === a)?.content }, a) })
|
|
134
145
|
] });
|
|
135
146
|
}
|
|
136
147
|
export {
|
|
137
|
-
|
|
148
|
+
q as default
|
|
138
149
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AccordionProps } from '../../types/ui/accordion.types';
|
|
3
|
-
declare function AccordionTitle({ children, className, }: {
|
|
3
|
+
declare function AccordionTitle({ children, className, darkMode, }: {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
|
+
darkMode?: boolean;
|
|
6
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
declare namespace AccordionTitle {
|
|
8
9
|
var displayName: string;
|
|
9
10
|
}
|
|
10
|
-
declare function AccordionContent({ children, className, }: {
|
|
11
|
+
declare function AccordionContent({ children, className, darkMode, }: {
|
|
11
12
|
children: React.ReactNode;
|
|
12
13
|
className?: string;
|
|
14
|
+
darkMode?: boolean;
|
|
13
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
declare namespace AccordionContent {
|
|
15
17
|
var displayName: string;
|
|
16
18
|
}
|
|
17
|
-
declare function MciAccordion({ children, defaultValue, icon, className }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function MciAccordion({ children, defaultValue, icon, darkMode, className }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
declare namespace MciAccordion {
|
|
19
21
|
var Title: typeof AccordionTitle;
|
|
20
22
|
var Content: typeof AccordionContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DrawerProps } from '../../types/ui/drawer.types';
|
|
2
|
-
export default function MciDrawer({ isOpen, onClose, position, children, footer, title, description, showCloseButton, drawerClassName, contentClassName, closeOnOverlayClick, closeOnEscape, width, darkMode, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function MciDrawer({ isOpen, onClose, position, children, footer, title, description, showCloseButton, drawerClassName, contentClassName, footerClassName, closeOnOverlayClick, closeOnEscape, width, darkMode, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|