reaxify 0.0.84 → 0.0.86
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/Alert/index.cjs.js +1 -0
- package/dist/components/Alert/index.es.js +8 -0
- package/dist/components/Badge/index.cjs.js +1 -1
- package/dist/components/Badge/index.es.js +36 -36
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +75 -57
- package/dist/components/Drawer/index.cjs.js +1 -1
- package/dist/components/Drawer/index.es.js +75 -71
- package/dist/components/Menu/index.cjs.js +1 -1
- package/dist/components/Menu/index.es.js +91 -88
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.es.js +76 -69
- package/dist/components/Progress/index.cjs.js +1 -1
- package/dist/components/Progress/index.es.js +21 -21
- package/dist/components/Spacer/index.cjs.js +1 -1
- package/dist/components/Spacer/index.es.js +13 -7
- package/dist/components/Stack/index.cjs.js +1 -1
- package/dist/components/Stack/index.es.js +28 -28
- package/dist/components/Switch/index.cjs.js +1 -1
- package/dist/components/Switch/index.es.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.es.js +9 -9
- package/dist/helpers/scrollIntoView.cjs.js +1 -1
- package/dist/helpers/scrollIntoView.es.js +4 -3
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +6 -8
- package/dist/node_modules/@tanstack/hotkeys/dist/constants.cjs.js +1 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/constants.es.js +206 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/format.cjs.js +1 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/format.es.js +10 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/hotkey-manager.cjs.js +1 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/hotkey-manager.es.js +276 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/manager.utils.cjs.js +1 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/manager.utils.es.js +48 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/match.cjs.js +1 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/match.es.js +27 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/parse.cjs.js +1 -0
- package/dist/node_modules/@tanstack/hotkeys/dist/parse.es.js +72 -0
- package/dist/node_modules/@tanstack/react-hotkeys/dist/HotkeysProvider.cjs.js +1 -0
- package/dist/node_modules/@tanstack/react-hotkeys/dist/HotkeysProvider.es.js +10 -0
- package/dist/node_modules/@tanstack/react-hotkeys/dist/useHotkey.cjs.js +1 -0
- package/dist/node_modules/@tanstack/react-hotkeys/dist/useHotkey.es.js +35 -0
- package/dist/node_modules/@tanstack/react-hotkeys/dist/utils.cjs.js +1 -0
- package/dist/node_modules/@tanstack/react-hotkeys/dist/utils.es.js +7 -0
- package/dist/node_modules/@tanstack/store/dist/esm/alien.cjs.js +1 -0
- package/dist/node_modules/@tanstack/store/dist/esm/alien.es.js +129 -0
- package/dist/node_modules/@tanstack/store/dist/esm/atom.cjs.js +1 -0
- package/dist/node_modules/@tanstack/store/dist/esm/atom.es.js +124 -0
- package/dist/node_modules/@tanstack/store/dist/esm/store.cjs.js +1 -0
- package/dist/node_modules/@tanstack/store/dist/esm/store.es.js +24 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.es.js +2 -2
- package/dist/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.es.js +2 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +745 -553
- package/dist/reaxify.css +1 -1
- package/dist/{axios → src/axios}/AxiosProvider.d.ts +1 -1
- package/dist/{components → src/components}/Accordion/index.d.ts +1 -1
- package/dist/src/components/Alert/index.d.ts +26 -0
- package/dist/{components → src/components}/Badge/index.d.ts +1 -1
- package/dist/{components → src/components}/Button/index.d.ts +3 -3
- package/dist/{components → src/components}/ButtonGroup/index.d.ts +1 -1
- package/dist/{components → src/components}/Card/index.d.ts +1 -1
- package/dist/{components → src/components}/Drawer/index.d.ts +6 -6
- package/dist/src/components/Fill/index.d.ts +3 -0
- package/dist/{components → src/components}/InputGroup/index.d.ts +1 -1
- package/dist/src/components/Menu/index.d.ts +16 -0
- package/dist/{components → src/components}/Modal/index.d.ts +5 -6
- package/dist/{components → src/components}/Portal/index.d.ts +1 -1
- package/dist/{components → src/components}/Progress/index.d.ts +1 -1
- package/dist/src/components/Spacer/index.d.ts +6 -0
- package/dist/{components → src/components}/Spinner/index.d.ts +1 -1
- package/dist/src/components/Stack/index.d.ts +10 -0
- package/dist/{components → src/components}/Switch/index.d.ts +1 -1
- package/dist/{components → src/components}/Tabs/index.d.ts +1 -1
- package/dist/{components → src/components}/Tooltip/index.d.ts +2 -2
- package/dist/{components → src/components}/Typography/index.d.ts +1 -1
- package/dist/src/helpers/scrollIntoView.d.ts +1 -0
- package/dist/{hooks → src/hooks}/index.d.ts +0 -1
- package/dist/{hooks → src/hooks}/useClasses.d.ts +2 -2
- package/dist/{providers → src/providers}/ThemeProvider.d.ts +28 -5
- package/dist/{types → src/types}/index.d.ts +8 -3
- package/package.json +26 -26
- package/dist/components/Menu/index.d.ts +0 -15
- package/dist/components/Spacer/index.d.ts +0 -6
- package/dist/components/Stack/index.d.ts +0 -10
- package/dist/helpers/scrollIntoView.d.ts +0 -1
- package/dist/hooks/useKeyDown.cjs.js +0 -1
- package/dist/hooks/useKeyDown.d.ts +0 -6
- package/dist/hooks/useKeyDown.es.js +0 -17
- /package/dist/{axios → src/axios}/index.d.ts +0 -0
- /package/dist/{axios → src/axios}/types.d.ts +0 -0
- /package/dist/{axios → src/axios}/useAxios.d.ts +0 -0
- /package/dist/{components → src/components}/Skeleton/index.d.ts +0 -0
- /package/dist/{components → src/components}/Table/index.d.ts +0 -0
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/cn.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/copy.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/index.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/isEmpty.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/isServer.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/randomID.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/replaceNonDigits.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/replacePersianNumbers.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/twoDigitNumber.d.ts +0 -0
- /package/dist/{helpers → src/helpers}/wait.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useCreateRipple.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDebounce.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDocumentVisible.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useIsOffline.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/usePersistedState.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useToggle.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{providers → src/providers}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../providers/ThemeProvider.cjs.js");const e=require("react"),t=e.createContext({});exports.AlertContext=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const
|
|
1
|
+
"use client";"use strict";const y=require("react/jsx-runtime"),s=require("../../helpers/cn.cjs.js"),w=require("../../hooks/useClasses.cjs.js"),l=require("react"),k=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js");function q({as:u,variant:d="solid",color:n="primary",size:a="md",className:x,children:c,...p}){const r=w(e=>e.badge),h=u||"span",m=l.useMemo(()=>{var t,g,b;if(!n)return"border-transparent";const e={primary:{solid:"bg-primary text-white border-primary",outline:"bg-transparent text-primary border-primary",soft:"bg-light-primary text-dark-primary border-light-primary"},secondary:{solid:"bg-secondary text-white border-secondary",outline:"bg-transparent text-secondary border-secondary",soft:"bg-light-secondary text-dark-secondary border-light-secondary"},success:{solid:"bg-success text-white border-success",outline:"bg-transparent text-success border-success",soft:"bg-light-success text-dark-success border-light-success"},info:{solid:"bg-info text-white border-info",outline:"bg-transparent text-info border-info",soft:"bg-light-info text-dark-info border-light-info"},warning:{solid:"bg-warning text-white border-warning",outline:"bg-transparent text-warning border-warning",soft:"bg-light-warning text-dark-warning border-light-warning"},danger:{solid:"bg-danger text-white border-danger",outline:"bg-transparent text-danger border-danger",soft:"bg-light-danger text-dark-danger border-light-danger"},dark:{solid:"bg-dark text-white border-dark",outline:"bg-transparent text-dark border-dark",soft:"bg-dark text-dark border-dark"},light:{solid:"bg-light text-dark border-light",outline:"bg-transparent text-dark border-light",soft:"bg-light text-dark border-light"}},o=(t=e==null?void 0:e[n])==null?void 0:t[d],i=(b=(g=r==null?void 0:r.color)==null?void 0:g[n])==null?void 0:b[d];return[o,i]},[n,d,r==null?void 0:r.color]),f=l.useMemo(()=>{var o,i,t;if(!a)return null;const e={sm:s("text-xs py-0.5 px-1.5",(o=r==null?void 0:r.size)==null?void 0:o.sm),md:s("text-sm py-[0.1875rem] px-2",(i=r==null?void 0:r.size)==null?void 0:i.md),lg:s("text-base py-1 px-3",(t=r==null?void 0:r.size)==null?void 0:t.lg)};return e==null?void 0:e[a]},[a,r==null?void 0:r.size]);return y.jsx(h,{className:k.twMerge("inline-flex border border-[#e8eaee] items-center text-center font-medium align-middle whitespace-nowrap rounded",r==null?void 0:r.base,m,f,x),...p,children:c})}module.exports=q;
|
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useMemo as
|
|
2
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
3
|
+
import g from "../../helpers/cn.es.js";
|
|
4
|
+
import w from "../../hooks/useClasses.es.js";
|
|
5
|
+
import { useMemo as l } from "react";
|
|
6
6
|
import { twMerge as k } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
|
|
7
7
|
function B({
|
|
8
|
-
as:
|
|
9
|
-
variant:
|
|
8
|
+
as: x,
|
|
9
|
+
variant: d = "solid",
|
|
10
10
|
color: o = "primary",
|
|
11
11
|
size: a = "md",
|
|
12
|
-
className:
|
|
13
|
-
children:
|
|
14
|
-
...
|
|
12
|
+
className: p,
|
|
13
|
+
children: m,
|
|
14
|
+
...u
|
|
15
15
|
}) {
|
|
16
|
-
const r =
|
|
17
|
-
var
|
|
16
|
+
const r = w((t) => t.badge), c = x || "span", f = l(() => {
|
|
17
|
+
var e, s, b;
|
|
18
18
|
if (!o) return "border-transparent";
|
|
19
|
-
const
|
|
19
|
+
const t = {
|
|
20
20
|
primary: {
|
|
21
21
|
solid: "bg-primary text-white border-primary",
|
|
22
22
|
outline: "bg-transparent text-primary border-primary",
|
|
23
|
-
soft: "bg-primary
|
|
23
|
+
soft: "bg-light-primary text-dark-primary border-light-primary"
|
|
24
24
|
},
|
|
25
25
|
secondary: {
|
|
26
26
|
solid: "bg-secondary text-white border-secondary",
|
|
27
27
|
outline: "bg-transparent text-secondary border-secondary",
|
|
28
|
-
soft: "bg-secondary
|
|
28
|
+
soft: "bg-light-secondary text-dark-secondary border-light-secondary"
|
|
29
29
|
},
|
|
30
30
|
success: {
|
|
31
31
|
solid: "bg-success text-white border-success",
|
|
32
32
|
outline: "bg-transparent text-success border-success",
|
|
33
|
-
soft: "bg-success
|
|
33
|
+
soft: "bg-light-success text-dark-success border-light-success"
|
|
34
34
|
},
|
|
35
35
|
info: {
|
|
36
36
|
solid: "bg-info text-white border-info",
|
|
37
37
|
outline: "bg-transparent text-info border-info",
|
|
38
|
-
soft: "bg-info
|
|
38
|
+
soft: "bg-light-info text-dark-info border-light-info"
|
|
39
39
|
},
|
|
40
40
|
warning: {
|
|
41
41
|
solid: "bg-warning text-white border-warning",
|
|
42
42
|
outline: "bg-transparent text-warning border-warning",
|
|
43
|
-
soft: "bg-warning
|
|
43
|
+
soft: "bg-light-warning text-dark-warning border-light-warning"
|
|
44
44
|
},
|
|
45
45
|
danger: {
|
|
46
46
|
solid: "bg-danger text-white border-danger",
|
|
47
47
|
outline: "bg-transparent text-danger border-danger",
|
|
48
|
-
soft: "bg-danger
|
|
48
|
+
soft: "bg-light-danger text-dark-danger border-light-danger"
|
|
49
49
|
},
|
|
50
50
|
dark: {
|
|
51
51
|
solid: "bg-dark text-white border-dark",
|
|
52
52
|
outline: "bg-transparent text-dark border-dark",
|
|
53
|
-
soft: "bg-dark
|
|
53
|
+
soft: "bg-dark text-dark border-dark"
|
|
54
54
|
},
|
|
55
55
|
light: {
|
|
56
56
|
solid: "bg-light text-dark border-light",
|
|
57
57
|
outline: "bg-transparent text-dark border-light",
|
|
58
|
-
soft: "bg-light
|
|
58
|
+
soft: "bg-light text-dark border-light"
|
|
59
59
|
}
|
|
60
|
-
}, n = (
|
|
61
|
-
return [n,
|
|
62
|
-
}, [o,
|
|
63
|
-
var n,
|
|
60
|
+
}, n = (e = t == null ? void 0 : t[o]) == null ? void 0 : e[d], i = (b = (s = r == null ? void 0 : r.color) == null ? void 0 : s[o]) == null ? void 0 : b[d];
|
|
61
|
+
return [n, i];
|
|
62
|
+
}, [o, d, r == null ? void 0 : r.color]), h = l(() => {
|
|
63
|
+
var n, i, e;
|
|
64
64
|
if (!a) return null;
|
|
65
|
-
const
|
|
66
|
-
sm:
|
|
67
|
-
md:
|
|
68
|
-
lg:
|
|
65
|
+
const t = {
|
|
66
|
+
sm: g("text-xs py-0.5 px-1.5", (n = r == null ? void 0 : r.size) == null ? void 0 : n.sm),
|
|
67
|
+
md: g("text-sm py-[0.1875rem] px-2", (i = r == null ? void 0 : r.size) == null ? void 0 : i.md),
|
|
68
|
+
lg: g("text-base py-1 px-3", (e = r == null ? void 0 : r.size) == null ? void 0 : e.lg)
|
|
69
69
|
};
|
|
70
|
-
return
|
|
70
|
+
return t == null ? void 0 : t[a];
|
|
71
71
|
}, [a, r == null ? void 0 : r.size]);
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
|
|
72
|
+
return /* @__PURE__ */ y(
|
|
73
|
+
c,
|
|
74
74
|
{
|
|
75
75
|
className: k(
|
|
76
76
|
"inline-flex border border-[#e8eaee] items-center text-center font-medium align-middle whitespace-nowrap rounded",
|
|
77
77
|
r == null ? void 0 : r.base,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
f,
|
|
79
|
+
h,
|
|
80
|
+
p
|
|
81
81
|
),
|
|
82
|
-
...
|
|
83
|
-
children:
|
|
82
|
+
...u,
|
|
83
|
+
children: m
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const l=require("react/jsx-runtime"),r=require("react"),f=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),
|
|
1
|
+
"use client";"use strict";const l=require("react/jsx-runtime"),r=require("react"),f=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),h=require("../../helpers/cn.cjs.js"),F=require("../../hooks/useClasses.cjs.js"),H=require("../../hooks/useCreateRipple.cjs.js"),I=require("../Alert/index.cjs.js"),J=require("../ButtonGroup/index.cjs.js"),K=require("../Drawer/index.cjs.js"),L=require("../Modal/index.cjs.js"),O=require("../Spinner/index.cjs.js");function Q({as:m,variant:y,color:w,size:k,loading:C,stopPropagation:v=!1,preventDefault:q=!1,closeModal:z=!1,closeDrawer:j=!1,className:M,onClick:b,children:R,disabled:N,...$}){const t=F(e=>e.button),a=r.useContext(J.ButtonGroupContext),D=r.useContext(L.ModalContext),_=r.useContext(K.DrawerContext),u=r.useContext(I.AlertContext),B=H(),G=m||"button",g=y??a.variant??u.buttonVariant??"solid",i=w??a.color??u.color??"primary",o=k??a.size??"md",d=C??a.loading??!1,s=r.useMemo(()=>{var c,x,p;if(!i)return"border-transparent";const e={primary:{solid:"bg-primary text-white border-primary",outline:"bg-transparent text-primary border-primary",text:"bg-transparent text-primary border-transparent",soft:"bg-light-primary text-dark-primary border-light-primary"},secondary:{solid:"bg-secondary text-white border-secondary",outline:"bg-transparent text-secondary border-secondary",text:"bg-transparent text-secondary border-transparent",soft:"bg-light-secondary text-dark-secondary border-light-secondary"},success:{solid:"bg-success text-white border-success",outline:"bg-transparent text-success border-success",text:"bg-transparent text-success border-transparent",soft:"bg-light-success text-dark-success border-light-success"},info:{solid:"bg-info text-white border-info",outline:"bg-transparent text-info border-info",text:"bg-transparent text-info border-transparent",soft:"bg-light-info text-dark-info border-light-info"},warning:{solid:"bg-warning text-white border-warning",outline:"bg-transparent text-warning border-warning",text:"bg-transparent text-warning border-transparent",soft:"bg-light-warning text-dark-warning border-light-warning"},danger:{solid:"bg-danger text-white border-danger",outline:"bg-transparent text-danger border-danger",text:"bg-transparent text-danger border-transparent",soft:"bg-light-danger text-dark-danger border-light-danger"},dark:{solid:"bg-dark text-white border-dark",outline:"bg-transparent text-dark border-dark",text:"bg-transparent text-dark border-transparent",soft:"bg-dark text-light border-dark"},light:{solid:"bg-light text-dark border-light",outline:"bg-transparent text-dark border-light",text:"bg-transparent text-dark border-transparent",soft:"bg-light- text-dark border-dark"}},n=(x=(c=t==null?void 0:t.color)==null?void 0:c[i])==null?void 0:x[g],E=(p=e==null?void 0:e[i])==null?void 0:p[g];return f.twMerge(E,n)},[i,g,t==null?void 0:t.color]),A=r.useMemo(()=>s==null?void 0:s.split(" ").find(e=>e.startsWith("text-")),[s]),P=r.useMemo(()=>{var n;if(!o)return null;const e={sm:"text-sm py-1 px-3.5",md:"text-base py-1.5 px-4",lg:"text-xl py-1.5 px-6",icon:"size-9 p-0 inline-flex items-center justify-center rounded-full [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-5"};return[e==null?void 0:e[o],(n=t==null?void 0:t.size)==null?void 0:n[o]]},[o,t==null?void 0:t.size]),V=r.useMemo(()=>{var e,n;return d?h("disabled:opacity-100 disabled:cursor-wait disabled:text-transparent",(e=t==null?void 0:t.loading)==null?void 0:e.active):h("disabled:opacity-75 disabled:cursor-not-allowed",(n=t==null?void 0:t.loading)==null?void 0:n.inactive)},[d,t==null?void 0:t.loading]),W=e=>{B(e),z&&D.onClose(),j&&_.onClose(),v&&e.stopPropagation(),q&&e.preventDefault(),b==null||b(e)};return l.jsxs(G,{role:"button",className:f.twMerge("relative inline-block no-underline whitespace-nowrap font-medium text-center rounded border border-[#e8eaee] cursor-pointer transition-[box-shadow,opacity,color,background-color,border-color] [user-select:none]",t==null?void 0:t.base,s,P,V,a.buttonClasses,M),onClick:W,disabled:N||d,...$,children:[R,d&&l.jsx("span",{className:"absolute inset-0 size-full flex items-center justify-center bg-transparent p-2",children:l.jsx(O,{size:o==="icon"?"sm":o,color:null,className:A})}),l.jsx("span",{className:"ripple-group absolute size-full inset-0 overflow-hidden rounded-[inherit] pointer-events-none"})]})}module.exports=Q;
|
|
@@ -1,102 +1,113 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { jsxs as H, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as d, useMemo as l } from "react";
|
|
4
|
+
import { twMerge as m } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
|
|
5
|
+
import h from "../../helpers/cn.es.js";
|
|
6
|
+
import I from "../../hooks/useClasses.es.js";
|
|
7
|
+
import J from "../../hooks/useCreateRipple.es.js";
|
|
8
|
+
import { AlertContext as K } from "../Alert/index.es.js";
|
|
8
9
|
import { ButtonGroupContext as L } from "../ButtonGroup/index.es.js";
|
|
9
10
|
import { DrawerContext as O } from "../Drawer/index.es.js";
|
|
10
11
|
import { ModalContext as Q } from "../Modal/index.es.js";
|
|
11
12
|
import T from "../Spinner/index.es.js";
|
|
12
|
-
function
|
|
13
|
+
function it({
|
|
13
14
|
as: y,
|
|
14
|
-
variant:
|
|
15
|
-
color:
|
|
16
|
-
size:
|
|
17
|
-
loading:
|
|
18
|
-
stopPropagation:
|
|
19
|
-
preventDefault:
|
|
15
|
+
variant: w,
|
|
16
|
+
color: k,
|
|
17
|
+
size: C,
|
|
18
|
+
loading: v,
|
|
19
|
+
stopPropagation: z = !1,
|
|
20
|
+
preventDefault: j = !1,
|
|
20
21
|
closeModal: N = !1,
|
|
21
22
|
closeDrawer: R = !1,
|
|
22
|
-
className:
|
|
23
|
-
onClick:
|
|
24
|
-
children:
|
|
25
|
-
disabled:
|
|
23
|
+
className: D,
|
|
24
|
+
onClick: b,
|
|
25
|
+
children: M,
|
|
26
|
+
disabled: _,
|
|
26
27
|
...B
|
|
27
28
|
}) {
|
|
28
|
-
const t =
|
|
29
|
-
var
|
|
30
|
-
if (!
|
|
29
|
+
const t = I((r) => r.button), o = d(L), G = d(Q), A = d(O), c = d(K), P = J(), S = y || "button", g = w ?? o.variant ?? c.buttonVariant ?? "solid", i = k ?? o.color ?? c.color ?? "primary", n = C ?? o.size ?? "md", s = v ?? o.loading ?? !1, a = l(() => {
|
|
30
|
+
var u, x, f;
|
|
31
|
+
if (!i) return "border-transparent";
|
|
31
32
|
const r = {
|
|
32
33
|
primary: {
|
|
33
34
|
solid: "bg-primary text-white border-primary",
|
|
34
35
|
outline: "bg-transparent text-primary border-primary",
|
|
35
|
-
text: "bg-transparent text-primary border-transparent"
|
|
36
|
+
text: "bg-transparent text-primary border-transparent",
|
|
37
|
+
soft: "bg-light-primary text-dark-primary border-light-primary"
|
|
36
38
|
},
|
|
37
39
|
secondary: {
|
|
38
40
|
solid: "bg-secondary text-white border-secondary",
|
|
39
41
|
outline: "bg-transparent text-secondary border-secondary",
|
|
40
|
-
text: "bg-transparent text-secondary border-transparent"
|
|
42
|
+
text: "bg-transparent text-secondary border-transparent",
|
|
43
|
+
soft: "bg-light-secondary text-dark-secondary border-light-secondary"
|
|
41
44
|
},
|
|
42
45
|
success: {
|
|
43
46
|
solid: "bg-success text-white border-success",
|
|
44
47
|
outline: "bg-transparent text-success border-success",
|
|
45
|
-
text: "bg-transparent text-success border-transparent"
|
|
48
|
+
text: "bg-transparent text-success border-transparent",
|
|
49
|
+
soft: "bg-light-success text-dark-success border-light-success"
|
|
46
50
|
},
|
|
47
51
|
info: {
|
|
48
52
|
solid: "bg-info text-white border-info",
|
|
49
53
|
outline: "bg-transparent text-info border-info",
|
|
50
|
-
text: "bg-transparent text-info border-transparent"
|
|
54
|
+
text: "bg-transparent text-info border-transparent",
|
|
55
|
+
soft: "bg-light-info text-dark-info border-light-info"
|
|
51
56
|
},
|
|
52
57
|
warning: {
|
|
53
58
|
solid: "bg-warning text-white border-warning",
|
|
54
59
|
outline: "bg-transparent text-warning border-warning",
|
|
55
|
-
text: "bg-transparent text-warning border-transparent"
|
|
60
|
+
text: "bg-transparent text-warning border-transparent",
|
|
61
|
+
soft: "bg-light-warning text-dark-warning border-light-warning"
|
|
56
62
|
},
|
|
57
63
|
danger: {
|
|
58
64
|
solid: "bg-danger text-white border-danger",
|
|
59
65
|
outline: "bg-transparent text-danger border-danger",
|
|
60
|
-
text: "bg-transparent text-danger border-transparent"
|
|
66
|
+
text: "bg-transparent text-danger border-transparent",
|
|
67
|
+
soft: "bg-light-danger text-dark-danger border-light-danger"
|
|
61
68
|
},
|
|
62
69
|
dark: {
|
|
63
70
|
solid: "bg-dark text-white border-dark",
|
|
64
71
|
outline: "bg-transparent text-dark border-dark",
|
|
65
|
-
text: "bg-transparent text-dark border-transparent"
|
|
72
|
+
text: "bg-transparent text-dark border-transparent",
|
|
73
|
+
soft: "bg-dark text-light border-dark"
|
|
66
74
|
},
|
|
67
75
|
light: {
|
|
68
76
|
solid: "bg-light text-dark border-light",
|
|
69
77
|
outline: "bg-transparent text-dark border-light",
|
|
70
|
-
text: "bg-transparent text-dark border-transparent"
|
|
78
|
+
text: "bg-transparent text-dark border-transparent",
|
|
79
|
+
soft: "bg-light- text-dark border-dark"
|
|
71
80
|
}
|
|
72
|
-
},
|
|
73
|
-
return
|
|
74
|
-
}, [
|
|
75
|
-
var
|
|
76
|
-
if (!
|
|
81
|
+
}, e = (x = (u = t == null ? void 0 : t.color) == null ? void 0 : u[i]) == null ? void 0 : x[g], F = (f = r == null ? void 0 : r[i]) == null ? void 0 : f[g];
|
|
82
|
+
return m(F, e);
|
|
83
|
+
}, [i, g, t == null ? void 0 : t.color]), V = l(() => a == null ? void 0 : a.split(" ").find((r) => r.startsWith("text-")), [a]), W = l(() => {
|
|
84
|
+
var e;
|
|
85
|
+
if (!n) return null;
|
|
77
86
|
const r = {
|
|
78
|
-
sm: "text-
|
|
87
|
+
sm: "text-sm py-1 px-3.5",
|
|
79
88
|
md: "text-base py-1.5 px-4",
|
|
80
|
-
lg: "text-
|
|
89
|
+
lg: "text-xl py-1.5 px-6",
|
|
90
|
+
icon: "size-9 p-0 inline-flex items-center justify-center rounded-full [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-5"
|
|
81
91
|
};
|
|
82
|
-
return [r == null ? void 0 : r[
|
|
83
|
-
}, [
|
|
84
|
-
var r,
|
|
85
|
-
return
|
|
92
|
+
return [r == null ? void 0 : r[n], (e = t == null ? void 0 : t.size) == null ? void 0 : e[n]];
|
|
93
|
+
}, [n, t == null ? void 0 : t.size]), q = l(() => {
|
|
94
|
+
var r, e;
|
|
95
|
+
return s ? h(
|
|
86
96
|
"disabled:opacity-100 disabled:cursor-wait disabled:text-transparent",
|
|
87
97
|
(r = t == null ? void 0 : t.loading) == null ? void 0 : r.active
|
|
88
|
-
) :
|
|
98
|
+
) : h(
|
|
89
99
|
"disabled:opacity-75 disabled:cursor-not-allowed",
|
|
90
|
-
(
|
|
100
|
+
(e = t == null ? void 0 : t.loading) == null ? void 0 : e.inactive
|
|
91
101
|
);
|
|
92
|
-
}, [
|
|
93
|
-
|
|
102
|
+
}, [s, t == null ? void 0 : t.loading]), E = (r) => {
|
|
103
|
+
P(r), N && G.onClose(), R && A.onClose(), z && r.stopPropagation(), j && r.preventDefault(), b == null || b(r);
|
|
94
104
|
};
|
|
95
|
-
return /* @__PURE__ */
|
|
96
|
-
|
|
105
|
+
return /* @__PURE__ */ H(
|
|
106
|
+
S,
|
|
97
107
|
{
|
|
98
|
-
|
|
99
|
-
|
|
108
|
+
role: "button",
|
|
109
|
+
className: m(
|
|
110
|
+
"relative inline-block no-underline whitespace-nowrap font-medium text-center rounded border border-[#e8eaee] cursor-pointer transition-[box-shadow,opacity,color,background-color,border-color] [user-select:none]",
|
|
100
111
|
// "focus:outline-none focus:ring-2 focus:ring-offset-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
101
112
|
// variant === "solid"
|
|
102
113
|
// ? "shadow hover:shadow-md active:shadow-lg"
|
|
@@ -104,22 +115,29 @@ function nt({
|
|
|
104
115
|
// color ? "ring-2 ring-offset-2 ring-transparent" : null,
|
|
105
116
|
t == null ? void 0 : t.base,
|
|
106
117
|
a,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
118
|
+
W,
|
|
119
|
+
q,
|
|
120
|
+
o.buttonClasses,
|
|
121
|
+
D
|
|
111
122
|
),
|
|
112
|
-
onClick:
|
|
113
|
-
disabled:
|
|
123
|
+
onClick: E,
|
|
124
|
+
disabled: _ || s,
|
|
114
125
|
...B,
|
|
115
126
|
children: [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
127
|
+
M,
|
|
128
|
+
s && /* @__PURE__ */ p("span", { className: "absolute inset-0 size-full flex items-center justify-center bg-transparent p-2", children: /* @__PURE__ */ p(
|
|
129
|
+
T,
|
|
130
|
+
{
|
|
131
|
+
size: n === "icon" ? "sm" : n,
|
|
132
|
+
color: null,
|
|
133
|
+
className: V
|
|
134
|
+
}
|
|
135
|
+
) }),
|
|
136
|
+
/* @__PURE__ */ p("span", { className: "ripple-group absolute size-full inset-0 overflow-hidden rounded-[inherit] pointer-events-none" })
|
|
119
137
|
]
|
|
120
138
|
}
|
|
121
139
|
);
|
|
122
140
|
}
|
|
123
141
|
export {
|
|
124
|
-
|
|
142
|
+
it as default
|
|
125
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),x=require("../../hooks/useClasses.cjs.js"),i=require("react"),R=require("../../node_modules/@tanstack/react-hotkeys/dist/useHotkey.cjs.js"),C=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),w=require("../../helpers/cn.cjs.js"),y=require("../Card/index.cjs.js"),H=require("../Portal/index.cjs.js"),N=require("../../node_modules/react-transition-group/esm/Transition.cjs.js"),p=i.createContext({open:!1,onClose:()=>{},duration:300,anchor:"start",transitionState:"unmounted",preventClose:!1});function f({as:n,ref:a,open:r=!1,onClose:e=()=>{},duration:o=300,preventClose:u=!1,anchor:l="end",className:b="",children:v,...h}){const t=x(c=>c.drawer),d=i.useRef(null),m=n||"div",M={entering:"active opacity-100 pointer-events-auto",entered:"active opacity-100 pointer-events-auto",exiting:"opacity-0 pointer-events-none",exited:"opacity-0 pointer-events-none",unmounted:""},q=i.useMemo(()=>{var j;const c={start:"flex-row-reverse",end:"flex-row",top:"flex-col-reverse",bottom:"flex-col"},D=(j=t==null?void 0:t.anchor)==null?void 0:j[l];return[c[l],D]},[l,t==null?void 0:t.anchor]),g=()=>{u||e()};return i.useImperativeHandle(a,()=>d.current),R.useHotkey("Escape",()=>e(),{enabled:r&&!u}),s.jsx(H,{children:s.jsx(N.default,{nodeRef:d,in:r,timeout:o,unmountOnExit:!0,children:c=>s.jsxs(m,{ref:d,style:{transitionDuration:`${o}ms`},"data-open":r,className:C.twMerge("fixed size-full inset-0 flex z-10 bg-black/20 backdrop-blur transition-opacity [--drawer-ratio:1] rtl:[--drawer-ratio:-1]",t==null?void 0:t.base,M[c],q,b),...h,children:[s.jsx("button",{type:"button",onClick:g,className:w("absolute inset-0 size-full cursor-default opacity-0",u&&"[&:active~*]:scale-95")}),s.jsx(p.Provider,{value:{open:r,onClose:g,transitionState:c,duration:o,anchor:l,preventClose:u},children:v})]})})})}function k({children:n,className:a="",...r}){const e=x(t=>t.drawer.menu),{anchor:o,duration:u,transitionState:l,preventClose:b}=i.useContext(p),v=i.useMemo(()=>{var m;const t={start:"w-[31.875rem] h-full max-w-[92.5%] rounded-e me-auto",end:"w-[31.875rem] h-full max-w-[92.5%] rounded-s ms-auto",top:"w-full max-h-[92.5%] rounded-b mb-auto",bottom:"w-full max-h-[92.5%] rounded-t mt-auto"},d=(m=e==null?void 0:e.anchor)==null?void 0:m[o];return[t[o],d]},[o,e==null?void 0:e.anchor]),h=i.useMemo(()=>({start:{entering:"translate-x-0",entered:"translate-x-0",exiting:"-translate-x-[calc(100%*var(--drawer-ratio))]",exited:"-translate-x-[calc(100%*var(--drawer-ratio))]",unmounted:""},end:{entering:"translate-x-0",entered:"translate-x-0",exiting:"translate-x-[calc(100%*var(--drawer-ratio))]",exited:"translate-x-[calc(100%*var(--drawer-ratio))]",unmounted:""},top:{entering:"translate-y-0",entered:"translate-y-0",exiting:"-translate-y-full",exited:"-translate-y-full",unmounted:""},bottom:{entering:"translate-y-0",entered:"translate-y-0",exiting:"translate-y-full",exited:"translate-y-full",unmounted:""}})[o],[o]);return s.jsx(y,{as:"div",style:{transitionDuration:`${u}ms`},className:C.twMerge("relative flex flex-col transition-[translate,width] rounded-none",b&&"transition-transform",e==null?void 0:e.base,h[l],v,a),...r,children:n})}function S({className:n,...a}){const r=x(e=>e.drawer.header.base);return s.jsx(y.Header,{className:w(r,n),...a})}function z({className:n,...a}){const r=x(e=>e.drawer.body.base);return s.jsx(y.Body,{className:w("flex-1 overflow-auto",r,n),...a})}function B({className:n,...a}){const r=x(e=>e.drawer.footer.base);return s.jsx(y.Footer,{className:w(r,n),...a})}f.Menu=k;f.Header=S;f.Body=z;f.Footer=B;exports.DrawerContext=p;exports.default=f;
|
|
@@ -1,105 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { createContext as
|
|
5
|
-
import
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
2
|
+
import { jsx as s, jsxs as k } from "react/jsx-runtime";
|
|
3
|
+
import c from "../../hooks/useClasses.es.js";
|
|
4
|
+
import { createContext as M, useRef as z, useMemo as b, useImperativeHandle as B, useContext as F } from "react";
|
|
5
|
+
import { useHotkey as S } from "../../node_modules/@tanstack/react-hotkeys/dist/useHotkey.es.js";
|
|
6
|
+
import { twMerge as C } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
|
|
7
|
+
import f from "../../helpers/cn.es.js";
|
|
8
|
+
import x from "../Card/index.es.js";
|
|
9
|
+
import j from "../Portal/index.es.js";
|
|
10
|
+
import E from "../../node_modules/react-transition-group/esm/Transition.es.js";
|
|
11
|
+
const D = M({
|
|
12
12
|
open: !1,
|
|
13
13
|
onClose: () => {
|
|
14
14
|
},
|
|
15
15
|
duration: 300,
|
|
16
16
|
anchor: "start",
|
|
17
|
-
transitionState: "unmounted"
|
|
17
|
+
transitionState: "unmounted",
|
|
18
|
+
preventClose: !1
|
|
18
19
|
});
|
|
19
|
-
function
|
|
20
|
+
function w({
|
|
20
21
|
as: n,
|
|
21
22
|
ref: a,
|
|
22
23
|
open: r = !1,
|
|
23
24
|
onClose: t = () => {
|
|
24
25
|
},
|
|
25
26
|
duration: o = 300,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
preventClose: i = !1,
|
|
28
|
+
anchor: l = "end",
|
|
29
|
+
className: p = "",
|
|
30
|
+
children: y,
|
|
31
|
+
...v
|
|
30
32
|
}) {
|
|
31
|
-
const e =
|
|
33
|
+
const e = c((u) => u.drawer), d = z(null), m = n || "div", R = {
|
|
32
34
|
entering: "active opacity-100 pointer-events-auto",
|
|
33
35
|
entered: "active opacity-100 pointer-events-auto",
|
|
34
36
|
exiting: "opacity-0 pointer-events-none",
|
|
35
37
|
exited: "opacity-0 pointer-events-none",
|
|
36
38
|
unmounted: ""
|
|
37
|
-
},
|
|
38
|
-
var
|
|
39
|
-
const
|
|
39
|
+
}, N = b(() => {
|
|
40
|
+
var g;
|
|
41
|
+
const u = {
|
|
40
42
|
start: "flex-row-reverse",
|
|
41
43
|
end: "flex-row",
|
|
42
44
|
top: "flex-col-reverse",
|
|
43
45
|
bottom: "flex-col"
|
|
44
|
-
},
|
|
45
|
-
return [l
|
|
46
|
-
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{ skip: !r, targetKey: "Escape" }
|
|
52
|
-
), /* @__PURE__ */ s(F, { children: /* @__PURE__ */ s(S, { nodeRef: u, in: r, timeout: o, unmountOnExit: !0, children: (l) => /* @__PURE__ */ N(
|
|
53
|
-
c,
|
|
46
|
+
}, H = (g = e == null ? void 0 : e.anchor) == null ? void 0 : g[l];
|
|
47
|
+
return [u[l], H];
|
|
48
|
+
}, [l, e == null ? void 0 : e.anchor]), h = () => {
|
|
49
|
+
i || t();
|
|
50
|
+
};
|
|
51
|
+
return B(a, () => d.current), S("Escape", () => t(), { enabled: r && !i }), /* @__PURE__ */ s(j, { children: /* @__PURE__ */ s(E, { nodeRef: d, in: r, timeout: o, unmountOnExit: !0, children: (u) => /* @__PURE__ */ k(
|
|
52
|
+
m,
|
|
54
53
|
{
|
|
55
|
-
ref:
|
|
54
|
+
ref: d,
|
|
56
55
|
style: { transitionDuration: `${o}ms` },
|
|
57
56
|
"data-open": r,
|
|
58
|
-
className:
|
|
57
|
+
className: C(
|
|
59
58
|
"fixed size-full inset-0 flex z-10 bg-black/20 backdrop-blur transition-opacity [--drawer-ratio:1] rtl:[--drawer-ratio:-1]",
|
|
60
59
|
e == null ? void 0 : e.base,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
R[u],
|
|
61
|
+
N,
|
|
62
|
+
p
|
|
64
63
|
),
|
|
65
|
-
...
|
|
64
|
+
...v,
|
|
66
65
|
children: [
|
|
67
66
|
/* @__PURE__ */ s(
|
|
68
67
|
"button",
|
|
69
68
|
{
|
|
70
69
|
type: "button",
|
|
71
|
-
onClick:
|
|
72
|
-
className:
|
|
70
|
+
onClick: h,
|
|
71
|
+
className: f(
|
|
72
|
+
"absolute inset-0 size-full cursor-default opacity-0",
|
|
73
|
+
i && "[&:active~*]:scale-95"
|
|
74
|
+
)
|
|
73
75
|
}
|
|
74
76
|
),
|
|
75
77
|
/* @__PURE__ */ s(
|
|
76
|
-
|
|
78
|
+
D.Provider,
|
|
77
79
|
{
|
|
78
80
|
value: {
|
|
79
81
|
open: r,
|
|
80
|
-
onClose:
|
|
81
|
-
transitionState:
|
|
82
|
+
onClose: h,
|
|
83
|
+
transitionState: u,
|
|
82
84
|
duration: o,
|
|
83
|
-
anchor:
|
|
85
|
+
anchor: l,
|
|
86
|
+
preventClose: i
|
|
84
87
|
},
|
|
85
|
-
children:
|
|
88
|
+
children: y
|
|
86
89
|
}
|
|
87
90
|
)
|
|
88
91
|
]
|
|
89
92
|
}
|
|
90
93
|
) }) });
|
|
91
94
|
}
|
|
92
|
-
function
|
|
93
|
-
const t =
|
|
94
|
-
var
|
|
95
|
+
function P({ children: n, className: a = "", ...r }) {
|
|
96
|
+
const t = c((e) => e.drawer.menu), { anchor: o, duration: i, transitionState: l, preventClose: p } = F(D), y = b(() => {
|
|
97
|
+
var m;
|
|
95
98
|
const e = {
|
|
96
99
|
start: "w-[31.875rem] h-full max-w-[92.5%] rounded-e me-auto",
|
|
97
100
|
end: "w-[31.875rem] h-full max-w-[92.5%] rounded-s ms-auto",
|
|
98
|
-
top: "w-full
|
|
99
|
-
bottom: "w-full
|
|
100
|
-
},
|
|
101
|
-
return [e[o],
|
|
102
|
-
}, [o, t == null ? void 0 : t.anchor]),
|
|
101
|
+
top: "w-full max-h-[92.5%] rounded-b mb-auto",
|
|
102
|
+
bottom: "w-full max-h-[92.5%] rounded-t mt-auto"
|
|
103
|
+
}, d = (m = t == null ? void 0 : t.anchor) == null ? void 0 : m[o];
|
|
104
|
+
return [e[o], d];
|
|
105
|
+
}, [o, t == null ? void 0 : t.anchor]), v = b(() => ({
|
|
103
106
|
start: {
|
|
104
107
|
entering: "translate-x-0",
|
|
105
108
|
entered: "translate-x-0",
|
|
@@ -130,15 +133,16 @@ function j({ children: n, className: a = "", ...r }) {
|
|
|
130
133
|
}
|
|
131
134
|
})[o], [o]);
|
|
132
135
|
return /* @__PURE__ */ s(
|
|
133
|
-
|
|
136
|
+
x,
|
|
134
137
|
{
|
|
135
138
|
as: "div",
|
|
136
139
|
style: { transitionDuration: `${i}ms` },
|
|
137
|
-
className:
|
|
140
|
+
className: C(
|
|
138
141
|
"relative flex flex-col transition-[translate,width] rounded-none",
|
|
142
|
+
p && "transition-transform",
|
|
139
143
|
t == null ? void 0 : t.base,
|
|
140
|
-
|
|
141
|
-
|
|
144
|
+
v[l],
|
|
145
|
+
y,
|
|
142
146
|
a
|
|
143
147
|
),
|
|
144
148
|
...r,
|
|
@@ -146,29 +150,29 @@ function j({ children: n, className: a = "", ...r }) {
|
|
|
146
150
|
}
|
|
147
151
|
);
|
|
148
152
|
}
|
|
149
|
-
function
|
|
150
|
-
const r =
|
|
151
|
-
return /* @__PURE__ */ s(
|
|
153
|
+
function $({ className: n, ...a }) {
|
|
154
|
+
const r = c((t) => t.drawer.header.base);
|
|
155
|
+
return /* @__PURE__ */ s(x.Header, { className: f(r, n), ...a });
|
|
152
156
|
}
|
|
153
|
-
function
|
|
154
|
-
const r =
|
|
157
|
+
function I({ className: n, ...a }) {
|
|
158
|
+
const r = c((t) => t.drawer.body.base);
|
|
155
159
|
return /* @__PURE__ */ s(
|
|
156
|
-
|
|
160
|
+
x.Body,
|
|
157
161
|
{
|
|
158
|
-
className:
|
|
162
|
+
className: f("flex-1 overflow-auto", r, n),
|
|
159
163
|
...a
|
|
160
164
|
}
|
|
161
165
|
);
|
|
162
166
|
}
|
|
163
|
-
function
|
|
164
|
-
const r =
|
|
165
|
-
return /* @__PURE__ */ s(
|
|
167
|
+
function O({ className: n, ...a }) {
|
|
168
|
+
const r = c((t) => t.drawer.footer.base);
|
|
169
|
+
return /* @__PURE__ */ s(x.Footer, { className: f(r, n), ...a });
|
|
166
170
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
w.Menu = P;
|
|
172
|
+
w.Header = $;
|
|
173
|
+
w.Body = I;
|
|
174
|
+
w.Footer = O;
|
|
171
175
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
D as DrawerContext,
|
|
177
|
+
w as default
|
|
174
178
|
};
|