@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.
@@ -1,74 +1,107 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { AltArrowDown as h } from "@solar-icons/react";
3
- import m, { useState as y, useRef as w, useId as x } from "react";
4
- import { cn as n } from "../../lib/utils.js";
5
- const A = (e) => e.type.displayName, f = (e, t, i) => m.Children.toArray(e).find(
6
- (o) => m.isValidElement(o) && (A(o) === t || o.type === i)
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 d({
9
- children: e,
10
- className: t
8
+ function b({
9
+ children: t,
10
+ className: o,
11
+ darkMode: n = !1
11
12
  }) {
12
- return /* @__PURE__ */ r("div", { className: n("text-base font-medium text-black", t), children: e });
13
+ return /* @__PURE__ */ a("div", { className: r("text-base font-medium", n ? "text-neutral-50" : "text-black", o), children: t });
13
14
  }
14
- d.displayName = "AccordionTitle";
15
- function c({
16
- children: e,
17
- className: t
15
+ b.displayName = "AccordionTitle";
16
+ function m({
17
+ children: t,
18
+ className: o,
19
+ darkMode: n = !1
18
20
  }) {
19
- return /* @__PURE__ */ r("div", { className: n("p-5 text-base", t), children: e });
21
+ return /* @__PURE__ */ a("div", { className: r("p-5 text-base", n ? "text-neutral-100" : "text-black", o), children: t });
20
22
  }
21
- c.displayName = "AccordionContent";
22
- function u({ children: e, defaultValue: t = !1, icon: i, className: o }) {
23
- const [a, p] = y(t), b = w(null), s = x(), N = () => p((g) => !g);
24
- return /* @__PURE__ */ l("div", { className: n("overflow-hidden rounded-xl border border-slate-200", o), children: [
25
- /* @__PURE__ */ l(
26
- "button",
27
- {
28
- type: "button",
29
- onClick: N,
30
- "aria-expanded": a,
31
- "aria-controls": s,
32
- className: n(
33
- "flex w-full items-center justify-between gap-2 p-5 transition-all duration-300 hover:cursor-pointer",
34
- a ? "border-b border-slate-200" : "border-b border-transparent"
35
- ),
36
- children: [
37
- /* @__PURE__ */ l("div", { className: "flex w-full items-center gap-2", children: [
38
- i && /* @__PURE__ */ r("span", { className: "shrink-0", children: i }),
39
- f(e, "AccordionTitle", d)
40
- ] }),
41
- /* @__PURE__ */ r(
42
- h,
43
- {
44
- weight: "Linear",
45
- size: 20,
46
- className: n(
47
- "shrink-0 text-slate-400 transition-transform duration-300",
48
- a && "rotate-180"
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
- children: /* @__PURE__ */ r("div", { ref: b, className: "min-h-0 overflow-hidden", children: f(e, "AccordionContent", c) })
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
- u.Title = d;
71
- u.Content = c;
103
+ f.Title = b;
104
+ f.Content = m;
72
105
  export {
73
- u as default
106
+ f as default
74
107
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as n, Fragment as j, jsx as t } from "react/jsx-runtime";
2
- import { useRef as h, useCallback as E, useEffect as x, useMemo as C } from "react";
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 X from "../../../assets/icons/close.svg.js";
5
- function D({
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
- closeOnOverlayClick: g = !0,
17
- closeOnEscape: z = !0,
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 = E(() => c(), [c]);
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 w = C(
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
- ), N = !!(a || s || d), k = 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", $ = 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";
34
- return /* @__PURE__ */ n(j, { children: [
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: g ? f : void 0,
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: w,
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
- k,
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
- N && /* @__PURE__ */ n(
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
- X,
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: `shrink-0 flex items-center justify-end border-t ${r ? "border-neutral-200" : "border-slate-200"} px-4 py-4 sm:p-6 gap-3 [&>*]:w-fit [&>*]:shrink-0 [&>*]:whitespace-nowrap`,
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
- D as default
130
+ F as default
126
131
  };
@@ -1,112 +1,123 @@
1
- import { jsxs as u, jsx as l } from "react/jsx-runtime";
2
- import { useState as w, useRef as C, useCallback as I, useEffect as h } from "react";
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 L = {
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
- }, j = {
9
+ }, O = {
10
10
  top: "flex-row",
11
11
  bottom: "flex-row",
12
12
  left: "flex-col",
13
13
  right: "flex-col"
14
- }, z = {
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 k({
21
- tabs: i,
22
- defaultTab: p,
23
- position: r = "top",
24
- darkMode: a = !1,
25
- className: v,
26
- tabListClassName: N,
27
- contentClassName: g,
28
- extra: x,
29
- onChange: S
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 [s, b] = w(p || i[0]?.id), [y, E] = w({}), f = C([]), c = I(() => {
31
+ const [a, E] = v(N || l[0]?.id), [A, T] = v({}), f = p([]), h = p(null), n = R(() => {
32
32
  requestAnimationFrame(() => {
33
- const e = i.findIndex((o) => o?.id === s), d = f.current[e];
34
- if (d) {
35
- const { offsetLeft: o, offsetTop: m, offsetWidth: T, offsetHeight: A } = d;
36
- E({
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: `${T}px`,
40
- height: `${A}px`,
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
- }, [s, i]);
46
- h(() => (c(), window.addEventListener("resize", c), "fonts" in document && document.fonts.ready.then(c), () => window.removeEventListener("resize", c)), [r, c]), h(() => {
47
- f.current = f.current.slice(0, i.length);
48
- }, [i]);
49
- const n = r === "left" || r === "right";
50
- return /* @__PURE__ */ u("div", { className: t("flex w-full", L[r], v), children: [
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
- n ? "flex-col items-start" : "flex-row flex-wrap items-center"
66
+ s ? "flex-col items-start" : "flex-row flex-wrap items-center"
57
67
  ),
58
68
  children: [
59
- /* @__PURE__ */ l(
69
+ /* @__PURE__ */ i(
60
70
  "div",
61
71
  {
62
72
  className: t(
63
73
  "flex-1",
64
- n ? "w-full" : "min-w-[520px]"
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
- a ? "bg-neutral-300" : "bg-slate-100",
72
- j[r],
73
- !n && "w-full overflow-hidden",
74
- n ? "min-w-48" : "",
75
- N
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__ */ l(
89
+ /* @__PURE__ */ i(
79
90
  "div",
80
91
  {
81
92
  className: t(
82
93
  "absolute rounded-lg",
83
- a ? "bg-black" : "bg-white",
84
- n ? "w-full" : "h-full"
94
+ d ? "bg-black" : "bg-white",
95
+ s ? "w-full" : "h-full"
85
96
  ),
86
- style: y
97
+ style: A
87
98
  }
88
99
  ),
89
- i?.map((e, d) => {
90
- const o = s === e.id;
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[d] = m;
106
+ f.current[r] = m;
96
107
  },
97
108
  onClick: () => {
98
- e?.disabled || (b(e?.id), S?.(e?.id));
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
- a ? "text-white" : "text-black",
104
- e?.disabled && (a ? "cursor-not-allowed text-neutral-100/50 opacity-60" : "cursor-not-allowed opacity-50"),
105
- n ? "w-full justify-start" : "flex-1 min-w-0"
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__ */ l("span", { className: t("shrink-0 transition-transform duration-200", o && "scale-110"), children: e?.icon }),
109
- /* @__PURE__ */ l("span", { className: "relative z-10 truncate", title: e?.label, children: e?.label })
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
- x && /* @__PURE__ */ l(
131
+ w && /* @__PURE__ */ i(
121
132
  "div",
122
133
  {
123
134
  className: t(
124
135
  "shrink-0 ml-auto",
125
- n ? "w-full" : "max-w-full"
136
+ s ? "w-full" : "max-w-full"
126
137
  ),
127
- children: /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center justify-end gap-2", children: x })
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__ */ l("div", { className: t("w-full flex-1 overflow-hidden", z[r], g), children: /* @__PURE__ */ l("div", { className: "animate-fade-in w-full", style: { animationDuration: "0.35s" }, children: i?.find((e) => e.id === s)?.content }, s) })
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
- k as default
148
+ q as default
138
149
  };
@@ -3,5 +3,6 @@ export type AccordionProps = {
3
3
  children: ReactNode;
4
4
  defaultValue?: boolean;
5
5
  icon?: ReactNode;
6
+ darkMode?: boolean;
6
7
  className?: string;
7
8
  };
@@ -10,6 +10,7 @@ export interface DrawerProps {
10
10
  showCloseButton?: boolean;
11
11
  drawerClassName?: string;
12
12
  contentClassName?: string;
13
+ footerClassName?: string;
13
14
  closeOnOverlayClick?: boolean;
14
15
  closeOnEscape?: boolean;
15
16
  width?: string | number;
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mci-ui/mci-ui",
3
3
  "private": false,
4
- "version": "0.0.87",
4
+ "version": "0.0.88",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",