@deepnoid/ui 0.1.56 → 0.1.57
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/.turbo/turbo-build.log +156 -146
- package/dist/chunk-32GA3YW4.mjs +1 -0
- package/dist/{chunk-ZI37UH3A.mjs → chunk-DN6AW7DN.mjs} +11 -13
- package/dist/{chunk-IC3O54EM.mjs → chunk-LDRIZFBK.mjs} +2 -2
- package/dist/chunk-LSO5QZIT.mjs +174 -0
- package/dist/{chunk-BWTDELPC.mjs → chunk-N4TTHIUT.mjs} +1 -1
- package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
- package/dist/components/breadcrumb/index.mjs +3 -3
- package/dist/components/button/button.d.mts +3 -9
- package/dist/components/button/button.d.ts +3 -9
- package/dist/components/button/button.js +8 -10
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.js +8 -10
- package/dist/components/button/index.mjs +3 -3
- package/dist/components/drawer/drawer.d.mts +89 -0
- package/dist/components/drawer/drawer.d.ts +89 -0
- package/dist/components/drawer/drawer.js +544 -0
- package/dist/components/drawer/drawer.mjs +11 -0
- package/dist/components/drawer/index.d.mts +4 -0
- package/dist/components/drawer/index.d.ts +4 -0
- package/dist/components/drawer/index.js +550 -0
- package/dist/components/drawer/index.mjs +12 -0
- package/dist/components/fileUpload/fileUpload.js +8 -10
- package/dist/components/fileUpload/fileUpload.mjs +4 -4
- package/dist/components/fileUpload/index.js +8 -10
- package/dist/components/fileUpload/index.mjs +4 -4
- package/dist/components/modal/index.js +8 -10
- package/dist/components/modal/index.mjs +4 -4
- package/dist/components/modal/modal.js +8 -10
- package/dist/components/modal/modal.mjs +4 -4
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +385 -225
- package/dist/index.mjs +28 -23
- package/package.json +1 -1
- package/dist/{chunk-D47SHPFE.mjs → chunk-DFBPLQMN.mjs} +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
ripple_default
|
|
4
|
-
} from "./chunk-LXHUO6VM.mjs";
|
|
5
2
|
import {
|
|
6
3
|
useRipple
|
|
7
4
|
} from "./chunk-6PNKRBUT.mjs";
|
|
5
|
+
import {
|
|
6
|
+
ripple_default
|
|
7
|
+
} from "./chunk-LXHUO6VM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
10
|
} from "./chunk-DZ6QJCDZ.mjs";
|
|
@@ -93,9 +93,7 @@ var buttonStyle = tv({
|
|
|
93
93
|
variant: {
|
|
94
94
|
solid: "",
|
|
95
95
|
soft: "",
|
|
96
|
-
outline:
|
|
97
|
-
base: "bg-transparent border-transparent"
|
|
98
|
-
},
|
|
96
|
+
outline: "",
|
|
99
97
|
ghost: ""
|
|
100
98
|
},
|
|
101
99
|
color: {
|
|
@@ -266,49 +264,49 @@ var buttonStyle = tv({
|
|
|
266
264
|
variant: "outline",
|
|
267
265
|
color: "primary",
|
|
268
266
|
class: {
|
|
269
|
-
base: ["bg-
|
|
267
|
+
base: ["bg-body-background", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
|
|
270
268
|
}
|
|
271
269
|
},
|
|
272
270
|
{
|
|
273
271
|
variant: "outline",
|
|
274
272
|
color: "secondary",
|
|
275
273
|
class: {
|
|
276
|
-
base: ["bg-
|
|
274
|
+
base: ["bg-body-background", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
|
|
277
275
|
}
|
|
278
276
|
},
|
|
279
277
|
{
|
|
280
278
|
variant: "outline",
|
|
281
279
|
color: "neutral",
|
|
282
280
|
class: {
|
|
283
|
-
base: ["bg-
|
|
281
|
+
base: ["bg-body-background", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
|
|
284
282
|
}
|
|
285
283
|
},
|
|
286
284
|
{
|
|
287
285
|
variant: "outline",
|
|
288
286
|
color: "info",
|
|
289
287
|
class: {
|
|
290
|
-
base: ["bg-
|
|
288
|
+
base: ["bg-body-background", "border-info-main", "text-info-main", "hover:bg-info-soft"]
|
|
291
289
|
}
|
|
292
290
|
},
|
|
293
291
|
{
|
|
294
292
|
variant: "outline",
|
|
295
293
|
color: "success",
|
|
296
294
|
class: {
|
|
297
|
-
base: ["bg-
|
|
295
|
+
base: ["bg-body-background", "border-success-main", "text-success-main", "hover:bg-success-soft"]
|
|
298
296
|
}
|
|
299
297
|
},
|
|
300
298
|
{
|
|
301
299
|
variant: "outline",
|
|
302
300
|
color: "warning",
|
|
303
301
|
class: {
|
|
304
|
-
base: ["bg-
|
|
302
|
+
base: ["bg-body-background", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
|
|
305
303
|
}
|
|
306
304
|
},
|
|
307
305
|
{
|
|
308
306
|
variant: "outline",
|
|
309
307
|
color: "danger",
|
|
310
308
|
class: {
|
|
311
|
-
base: ["bg-
|
|
309
|
+
base: ["bg-body-background", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
|
|
312
310
|
}
|
|
313
311
|
},
|
|
314
312
|
// ghost & color
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-UETBYMGS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DN6AW7DN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
icon_button_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DFBPLQMN.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/fileUpload/fileUpload.tsx
|
|
13
13
|
import { useRef, useState, useEffect } from "react";
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
5
|
+
import {
|
|
6
|
+
clsx
|
|
7
|
+
} from "./chunk-27Y6K5NK.mjs";
|
|
8
|
+
import {
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/drawer/drawer.tsx
|
|
13
|
+
import { forwardRef, useMemo, useEffect, useState } from "react";
|
|
14
|
+
import { createPortal } from "react-dom";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var Drawer = forwardRef((props, ref) => {
|
|
17
|
+
const [localProps, variantProps] = mapPropsVariants(props, drawer.variantKeys);
|
|
18
|
+
const { classNames, isOpen, content, isKeyboardDismissDisabled = false, onClose, backdrop = true } = localProps;
|
|
19
|
+
const position = props.position || "right";
|
|
20
|
+
const [shouldRender, setShouldRender] = useState(isOpen);
|
|
21
|
+
const [isAnimating, setIsAnimating] = useState(isOpen);
|
|
22
|
+
const [isContentAnimating, setIsContentAnimating] = useState(isOpen);
|
|
23
|
+
const slots = useMemo(() => drawer(variantProps), [variantProps]);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (isOpen) {
|
|
26
|
+
setShouldRender(true);
|
|
27
|
+
requestAnimationFrame(() => {
|
|
28
|
+
setIsAnimating(true);
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
setIsContentAnimating(true);
|
|
31
|
+
}, 50);
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
setIsContentAnimating(false);
|
|
35
|
+
setIsAnimating(false);
|
|
36
|
+
const timer = setTimeout(() => {
|
|
37
|
+
setShouldRender(false);
|
|
38
|
+
}, 300);
|
|
39
|
+
return () => clearTimeout(timer);
|
|
40
|
+
}
|
|
41
|
+
}, [isOpen]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (shouldRender) {
|
|
44
|
+
document.body.classList.add("overflow-hidden");
|
|
45
|
+
} else {
|
|
46
|
+
document.body.classList.remove("overflow-hidden");
|
|
47
|
+
}
|
|
48
|
+
if (!isOpen || isKeyboardDismissDisabled) return;
|
|
49
|
+
const handleKeyDown = (e) => {
|
|
50
|
+
if (e.key === "Escape") onClose == null ? void 0 : onClose();
|
|
51
|
+
};
|
|
52
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
53
|
+
return () => {
|
|
54
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
55
|
+
};
|
|
56
|
+
}, [shouldRender, isOpen, isKeyboardDismissDisabled, onClose]);
|
|
57
|
+
const getAnimationClasses = () => {
|
|
58
|
+
const baseTransition = "transform transition-all duration-300 ease-in-out";
|
|
59
|
+
if (!isContentAnimating) {
|
|
60
|
+
switch (position) {
|
|
61
|
+
case "left":
|
|
62
|
+
return `${baseTransition} -translate-x-full`;
|
|
63
|
+
case "right":
|
|
64
|
+
return `${baseTransition} translate-x-full`;
|
|
65
|
+
case "top":
|
|
66
|
+
return `${baseTransition} -translate-y-full`;
|
|
67
|
+
case "bottom":
|
|
68
|
+
return `${baseTransition} translate-y-full`;
|
|
69
|
+
default:
|
|
70
|
+
return `${baseTransition} translate-x-full`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return `${baseTransition} translate-x-0 translate-y-0`;
|
|
74
|
+
};
|
|
75
|
+
if (!shouldRender) return null;
|
|
76
|
+
return createPortal(
|
|
77
|
+
/* @__PURE__ */ jsxs(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
ref,
|
|
81
|
+
className: slots.base({
|
|
82
|
+
class: clsx(
|
|
83
|
+
classNames == null ? void 0 : classNames.base,
|
|
84
|
+
isAnimating ? "visible opacity-100" : "invisible opacity-0",
|
|
85
|
+
"transition-all duration-300 ease-in-out"
|
|
86
|
+
)
|
|
87
|
+
}),
|
|
88
|
+
"aria-labelledby": "drawer",
|
|
89
|
+
role: "dialog",
|
|
90
|
+
"aria-modal": "true",
|
|
91
|
+
children: [
|
|
92
|
+
backdrop && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm", onClick: onClose }),
|
|
93
|
+
/* @__PURE__ */ jsx(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: slots.drawerWrapper({
|
|
97
|
+
class: clsx(classNames == null ? void 0 : classNames.drawerWrapper, getAnimationClasses())
|
|
98
|
+
}),
|
|
99
|
+
onClick: (e) => e.stopPropagation(),
|
|
100
|
+
children: /* @__PURE__ */ jsx("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: content })
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
document.body
|
|
107
|
+
);
|
|
108
|
+
});
|
|
109
|
+
Drawer.displayName = "Drawer";
|
|
110
|
+
var drawer = tv({
|
|
111
|
+
slots: {
|
|
112
|
+
base: ["fixed", "inset-0", "z-50", "flex", "transition-all", "duration-300", "ease-in-out"],
|
|
113
|
+
drawerWrapper: ["relative", "flex", "flex-col", "bg-white", "shadow-xl", "overflow-hidden", "z-10"],
|
|
114
|
+
wrapper: ["flex", "flex-col", "h-full", "overflow-y-auto"]
|
|
115
|
+
},
|
|
116
|
+
variants: {
|
|
117
|
+
position: {
|
|
118
|
+
left: {
|
|
119
|
+
base: "justify-start",
|
|
120
|
+
drawerWrapper: "h-full border-r"
|
|
121
|
+
},
|
|
122
|
+
right: {
|
|
123
|
+
base: "justify-end",
|
|
124
|
+
drawerWrapper: "h-full border-l"
|
|
125
|
+
},
|
|
126
|
+
top: {
|
|
127
|
+
base: "items-start",
|
|
128
|
+
drawerWrapper: "w-full border-b"
|
|
129
|
+
},
|
|
130
|
+
bottom: {
|
|
131
|
+
base: "items-end",
|
|
132
|
+
drawerWrapper: "w-full border-t"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
compoundVariants: [
|
|
137
|
+
{
|
|
138
|
+
position: ["top", "bottom"],
|
|
139
|
+
size: "sm",
|
|
140
|
+
class: {
|
|
141
|
+
drawerWrapper: "max-h-[25vh] max-w-none w-full"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
position: ["top", "bottom"],
|
|
146
|
+
size: "md",
|
|
147
|
+
class: {
|
|
148
|
+
drawerWrapper: "max-h-[40vh] max-w-none w-full"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
position: ["top", "bottom"],
|
|
153
|
+
size: "lg",
|
|
154
|
+
class: {
|
|
155
|
+
drawerWrapper: "max-h-[60vh] max-w-none w-full"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
position: ["top", "bottom"],
|
|
160
|
+
size: "xl",
|
|
161
|
+
class: {
|
|
162
|
+
drawerWrapper: "max-h-[80vh] max-w-none w-full"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
defaultVariants: {
|
|
167
|
+
position: "right"
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
var drawer_default = Drawer;
|
|
171
|
+
|
|
172
|
+
export {
|
|
173
|
+
drawer_default
|
|
174
|
+
};
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../../chunk-3ONHMYAP.mjs";
|
|
5
5
|
import "../../chunk-MY5U63QO.mjs";
|
|
6
6
|
import "../../chunk-LPZOH3RP.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-DN6AW7DN.mjs";
|
|
8
|
+
import "../../chunk-DFBPLQMN.mjs";
|
|
9
9
|
import "../../chunk-6WSACUIB.mjs";
|
|
10
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
11
10
|
import "../../chunk-6PNKRBUT.mjs";
|
|
11
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
12
12
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
13
13
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
14
14
|
import "../../chunk-WFMFC7R6.mjs";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
} from "../../chunk-3ONHMYAP.mjs";
|
|
6
6
|
import "../../chunk-MY5U63QO.mjs";
|
|
7
7
|
import "../../chunk-LPZOH3RP.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-DN6AW7DN.mjs";
|
|
9
|
+
import "../../chunk-DFBPLQMN.mjs";
|
|
10
10
|
import "../../chunk-6WSACUIB.mjs";
|
|
11
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
12
11
|
import "../../chunk-6PNKRBUT.mjs";
|
|
12
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
13
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
14
14
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
15
15
|
import "../../chunk-WFMFC7R6.mjs";
|
|
@@ -17,9 +17,7 @@ declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
|
17
17
|
variant: {
|
|
18
18
|
solid: string;
|
|
19
19
|
soft: string;
|
|
20
|
-
outline:
|
|
21
|
-
base: string;
|
|
22
|
-
};
|
|
20
|
+
outline: string;
|
|
23
21
|
ghost: string;
|
|
24
22
|
};
|
|
25
23
|
color: {
|
|
@@ -81,9 +79,7 @@ declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
|
81
79
|
variant: {
|
|
82
80
|
solid: string;
|
|
83
81
|
soft: string;
|
|
84
|
-
outline:
|
|
85
|
-
base: string;
|
|
86
|
-
};
|
|
82
|
+
outline: string;
|
|
87
83
|
ghost: string;
|
|
88
84
|
};
|
|
89
85
|
color: {
|
|
@@ -145,9 +141,7 @@ declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
|
145
141
|
variant: {
|
|
146
142
|
solid: string;
|
|
147
143
|
soft: string;
|
|
148
|
-
outline:
|
|
149
|
-
base: string;
|
|
150
|
-
};
|
|
144
|
+
outline: string;
|
|
151
145
|
ghost: string;
|
|
152
146
|
};
|
|
153
147
|
color: {
|
|
@@ -17,9 +17,7 @@ declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
|
17
17
|
variant: {
|
|
18
18
|
solid: string;
|
|
19
19
|
soft: string;
|
|
20
|
-
outline:
|
|
21
|
-
base: string;
|
|
22
|
-
};
|
|
20
|
+
outline: string;
|
|
23
21
|
ghost: string;
|
|
24
22
|
};
|
|
25
23
|
color: {
|
|
@@ -81,9 +79,7 @@ declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
|
81
79
|
variant: {
|
|
82
80
|
solid: string;
|
|
83
81
|
soft: string;
|
|
84
|
-
outline:
|
|
85
|
-
base: string;
|
|
86
|
-
};
|
|
82
|
+
outline: string;
|
|
87
83
|
ghost: string;
|
|
88
84
|
};
|
|
89
85
|
color: {
|
|
@@ -145,9 +141,7 @@ declare const buttonStyle: tailwind_variants.TVReturnType<{
|
|
|
145
141
|
variant: {
|
|
146
142
|
solid: string;
|
|
147
143
|
soft: string;
|
|
148
|
-
outline:
|
|
149
|
-
base: string;
|
|
150
|
-
};
|
|
144
|
+
outline: string;
|
|
151
145
|
ghost: string;
|
|
152
146
|
};
|
|
153
147
|
color: {
|
|
@@ -4514,9 +4514,7 @@ var buttonStyle = tv({
|
|
|
4514
4514
|
variant: {
|
|
4515
4515
|
solid: "",
|
|
4516
4516
|
soft: "",
|
|
4517
|
-
outline:
|
|
4518
|
-
base: "bg-transparent border-transparent"
|
|
4519
|
-
},
|
|
4517
|
+
outline: "",
|
|
4520
4518
|
ghost: ""
|
|
4521
4519
|
},
|
|
4522
4520
|
color: {
|
|
@@ -4687,49 +4685,49 @@ var buttonStyle = tv({
|
|
|
4687
4685
|
variant: "outline",
|
|
4688
4686
|
color: "primary",
|
|
4689
4687
|
class: {
|
|
4690
|
-
base: ["bg-
|
|
4688
|
+
base: ["bg-body-background", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
|
|
4691
4689
|
}
|
|
4692
4690
|
},
|
|
4693
4691
|
{
|
|
4694
4692
|
variant: "outline",
|
|
4695
4693
|
color: "secondary",
|
|
4696
4694
|
class: {
|
|
4697
|
-
base: ["bg-
|
|
4695
|
+
base: ["bg-body-background", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
|
|
4698
4696
|
}
|
|
4699
4697
|
},
|
|
4700
4698
|
{
|
|
4701
4699
|
variant: "outline",
|
|
4702
4700
|
color: "neutral",
|
|
4703
4701
|
class: {
|
|
4704
|
-
base: ["bg-
|
|
4702
|
+
base: ["bg-body-background", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
|
|
4705
4703
|
}
|
|
4706
4704
|
},
|
|
4707
4705
|
{
|
|
4708
4706
|
variant: "outline",
|
|
4709
4707
|
color: "info",
|
|
4710
4708
|
class: {
|
|
4711
|
-
base: ["bg-
|
|
4709
|
+
base: ["bg-body-background", "border-info-main", "text-info-main", "hover:bg-info-soft"]
|
|
4712
4710
|
}
|
|
4713
4711
|
},
|
|
4714
4712
|
{
|
|
4715
4713
|
variant: "outline",
|
|
4716
4714
|
color: "success",
|
|
4717
4715
|
class: {
|
|
4718
|
-
base: ["bg-
|
|
4716
|
+
base: ["bg-body-background", "border-success-main", "text-success-main", "hover:bg-success-soft"]
|
|
4719
4717
|
}
|
|
4720
4718
|
},
|
|
4721
4719
|
{
|
|
4722
4720
|
variant: "outline",
|
|
4723
4721
|
color: "warning",
|
|
4724
4722
|
class: {
|
|
4725
|
-
base: ["bg-
|
|
4723
|
+
base: ["bg-body-background", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
|
|
4726
4724
|
}
|
|
4727
4725
|
},
|
|
4728
4726
|
{
|
|
4729
4727
|
variant: "outline",
|
|
4730
4728
|
color: "danger",
|
|
4731
4729
|
class: {
|
|
4732
|
-
base: ["bg-
|
|
4730
|
+
base: ["bg-body-background", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
|
|
4733
4731
|
}
|
|
4734
4732
|
},
|
|
4735
4733
|
// ghost & color
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
button_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DN6AW7DN.mjs";
|
|
5
5
|
import "../../chunk-6WSACUIB.mjs";
|
|
6
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
7
6
|
import "../../chunk-6PNKRBUT.mjs";
|
|
7
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
10
10
|
import "../../chunk-3I7QA57V.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
icon_button_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DFBPLQMN.mjs";
|
|
5
5
|
import "../../chunk-6WSACUIB.mjs";
|
|
6
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
7
6
|
import "../../chunk-6PNKRBUT.mjs";
|
|
7
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
10
10
|
import "../../chunk-3I7QA57V.mjs";
|
|
@@ -4519,9 +4519,7 @@ var buttonStyle = tv({
|
|
|
4519
4519
|
variant: {
|
|
4520
4520
|
solid: "",
|
|
4521
4521
|
soft: "",
|
|
4522
|
-
outline:
|
|
4523
|
-
base: "bg-transparent border-transparent"
|
|
4524
|
-
},
|
|
4522
|
+
outline: "",
|
|
4525
4523
|
ghost: ""
|
|
4526
4524
|
},
|
|
4527
4525
|
color: {
|
|
@@ -4692,49 +4690,49 @@ var buttonStyle = tv({
|
|
|
4692
4690
|
variant: "outline",
|
|
4693
4691
|
color: "primary",
|
|
4694
4692
|
class: {
|
|
4695
|
-
base: ["bg-
|
|
4693
|
+
base: ["bg-body-background", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
|
|
4696
4694
|
}
|
|
4697
4695
|
},
|
|
4698
4696
|
{
|
|
4699
4697
|
variant: "outline",
|
|
4700
4698
|
color: "secondary",
|
|
4701
4699
|
class: {
|
|
4702
|
-
base: ["bg-
|
|
4700
|
+
base: ["bg-body-background", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
|
|
4703
4701
|
}
|
|
4704
4702
|
},
|
|
4705
4703
|
{
|
|
4706
4704
|
variant: "outline",
|
|
4707
4705
|
color: "neutral",
|
|
4708
4706
|
class: {
|
|
4709
|
-
base: ["bg-
|
|
4707
|
+
base: ["bg-body-background", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
|
|
4710
4708
|
}
|
|
4711
4709
|
},
|
|
4712
4710
|
{
|
|
4713
4711
|
variant: "outline",
|
|
4714
4712
|
color: "info",
|
|
4715
4713
|
class: {
|
|
4716
|
-
base: ["bg-
|
|
4714
|
+
base: ["bg-body-background", "border-info-main", "text-info-main", "hover:bg-info-soft"]
|
|
4717
4715
|
}
|
|
4718
4716
|
},
|
|
4719
4717
|
{
|
|
4720
4718
|
variant: "outline",
|
|
4721
4719
|
color: "success",
|
|
4722
4720
|
class: {
|
|
4723
|
-
base: ["bg-
|
|
4721
|
+
base: ["bg-body-background", "border-success-main", "text-success-main", "hover:bg-success-soft"]
|
|
4724
4722
|
}
|
|
4725
4723
|
},
|
|
4726
4724
|
{
|
|
4727
4725
|
variant: "outline",
|
|
4728
4726
|
color: "warning",
|
|
4729
4727
|
class: {
|
|
4730
|
-
base: ["bg-
|
|
4728
|
+
base: ["bg-body-background", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
|
|
4731
4729
|
}
|
|
4732
4730
|
},
|
|
4733
4731
|
{
|
|
4734
4732
|
variant: "outline",
|
|
4735
4733
|
color: "danger",
|
|
4736
4734
|
class: {
|
|
4737
|
-
base: ["bg-
|
|
4735
|
+
base: ["bg-body-background", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
|
|
4738
4736
|
}
|
|
4739
4737
|
},
|
|
4740
4738
|
// ghost & color
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "../../chunk-LPZOH3RP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
button_default
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-DN6AW7DN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
icon_button_default
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-DFBPLQMN.mjs";
|
|
12
12
|
import "../../chunk-6WSACUIB.mjs";
|
|
13
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
14
13
|
import "../../chunk-6PNKRBUT.mjs";
|
|
14
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
15
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
16
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
17
17
|
import {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
|
|
7
|
+
interface DrawerProps extends VariantProps<typeof drawer> {
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
position?: "left" | "right" | "top" | "bottom";
|
|
10
|
+
content?: ReactNode | string;
|
|
11
|
+
isKeyboardDismissDisabled?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
classNames?: SlotsToClasses<DrawerSlots>;
|
|
14
|
+
backdrop?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const drawer: tailwind_variants.TVReturnType<{
|
|
18
|
+
position: {
|
|
19
|
+
left: {
|
|
20
|
+
base: string;
|
|
21
|
+
drawerWrapper: string;
|
|
22
|
+
};
|
|
23
|
+
right: {
|
|
24
|
+
base: string;
|
|
25
|
+
drawerWrapper: string;
|
|
26
|
+
};
|
|
27
|
+
top: {
|
|
28
|
+
base: string;
|
|
29
|
+
drawerWrapper: string;
|
|
30
|
+
};
|
|
31
|
+
bottom: {
|
|
32
|
+
base: string;
|
|
33
|
+
drawerWrapper: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
base: string[];
|
|
38
|
+
drawerWrapper: string[];
|
|
39
|
+
wrapper: string[];
|
|
40
|
+
}, undefined, {
|
|
41
|
+
position: {
|
|
42
|
+
left: {
|
|
43
|
+
base: string;
|
|
44
|
+
drawerWrapper: string;
|
|
45
|
+
};
|
|
46
|
+
right: {
|
|
47
|
+
base: string;
|
|
48
|
+
drawerWrapper: string;
|
|
49
|
+
};
|
|
50
|
+
top: {
|
|
51
|
+
base: string;
|
|
52
|
+
drawerWrapper: string;
|
|
53
|
+
};
|
|
54
|
+
bottom: {
|
|
55
|
+
base: string;
|
|
56
|
+
drawerWrapper: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
base: string[];
|
|
61
|
+
drawerWrapper: string[];
|
|
62
|
+
wrapper: string[];
|
|
63
|
+
}, tailwind_variants.TVReturnType<{
|
|
64
|
+
position: {
|
|
65
|
+
left: {
|
|
66
|
+
base: string;
|
|
67
|
+
drawerWrapper: string;
|
|
68
|
+
};
|
|
69
|
+
right: {
|
|
70
|
+
base: string;
|
|
71
|
+
drawerWrapper: string;
|
|
72
|
+
};
|
|
73
|
+
top: {
|
|
74
|
+
base: string;
|
|
75
|
+
drawerWrapper: string;
|
|
76
|
+
};
|
|
77
|
+
bottom: {
|
|
78
|
+
base: string;
|
|
79
|
+
drawerWrapper: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}, {
|
|
83
|
+
base: string[];
|
|
84
|
+
drawerWrapper: string[];
|
|
85
|
+
wrapper: string[];
|
|
86
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
87
|
+
type DrawerSlots = keyof ReturnType<typeof drawer>;
|
|
88
|
+
|
|
89
|
+
export { type DrawerProps, Drawer as default };
|