sa2kit 3.4.0 → 3.6.0
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/{chunk-KVYHCGRY.js → chunk-7Z3XR2Y4.js} +552 -263
- package/dist/chunk-7Z3XR2Y4.js.map +1 -0
- package/dist/chunk-XPY45Y75.js +1143 -0
- package/dist/chunk-XPY45Y75.js.map +1 -0
- package/dist/{chunk-YIRPPMCN.mjs → chunk-XSTMLLJV.mjs} +474 -198
- package/dist/chunk-XSTMLLJV.mjs.map +1 -0
- package/dist/chunk-ZJLS5JU5.mjs +1090 -0
- package/dist/chunk-ZJLS5JU5.mjs.map +1 -0
- package/dist/common/aiApi/client/index.d.mts +71 -0
- package/dist/common/aiApi/client/index.d.ts +71 -0
- package/dist/common/aiApi/client/index.js +165 -0
- package/dist/common/aiApi/client/index.js.map +1 -0
- package/dist/common/aiApi/client/index.mjs +151 -0
- package/dist/common/aiApi/client/index.mjs.map +1 -0
- package/dist/common/aiApi/index.d.mts +184 -0
- package/dist/common/aiApi/index.d.ts +184 -0
- package/dist/common/aiApi/index.js +217 -0
- package/dist/common/aiApi/index.mjs +4 -0
- package/dist/common/aiApi/server/index.d.mts +3 -0
- package/dist/common/aiApi/server/index.d.ts +3 -0
- package/dist/common/aiApi/server/index.js +217 -0
- package/dist/common/aiApi/server/index.mjs +4 -0
- package/dist/common/components/index.js +176 -177
- package/dist/common/components/index.mjs +1 -2
- package/dist/common/index.js +2 -3
- package/dist/common/index.mjs +1 -2
- package/dist/index.d.mts +314 -154
- package/dist/index.d.ts +314 -154
- package/dist/index.js +1055 -369
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1005 -360
- package/dist/index.mjs.map +1 -1
- package/dist/types-CiqMQ-uu.d.mts +166 -0
- package/dist/types-CiqMQ-uu.d.ts +166 -0
- package/package.json +15 -50
- package/dist/chunk-3R6JHA6D.js +0 -120
- package/dist/chunk-3R6JHA6D.js.map +0 -1
- package/dist/chunk-4PJM4752.js +0 -4
- package/dist/chunk-4PJM4752.js.map +0 -1
- package/dist/chunk-7PMT4L4I.js +0 -324
- package/dist/chunk-7PMT4L4I.js.map +0 -1
- package/dist/chunk-FY2X3LYR.mjs +0 -3
- package/dist/chunk-FY2X3LYR.mjs.map +0 -1
- package/dist/chunk-GS4SAW25.mjs +0 -116
- package/dist/chunk-GS4SAW25.mjs.map +0 -1
- package/dist/chunk-HL4H2HF6.js +0 -279
- package/dist/chunk-HL4H2HF6.js.map +0 -1
- package/dist/chunk-IJIQUMAK.mjs +0 -272
- package/dist/chunk-IJIQUMAK.mjs.map +0 -1
- package/dist/chunk-KVYHCGRY.js.map +0 -1
- package/dist/chunk-MMDSZIXD.mjs +0 -286
- package/dist/chunk-MMDSZIXD.mjs.map +0 -1
- package/dist/chunk-N2O3OX5Y.mjs +0 -243
- package/dist/chunk-N2O3OX5Y.mjs.map +0 -1
- package/dist/chunk-RRQ2X26Z.js +0 -106
- package/dist/chunk-RRQ2X26Z.js.map +0 -1
- package/dist/chunk-RVNQI6BI.js +0 -249
- package/dist/chunk-RVNQI6BI.js.map +0 -1
- package/dist/chunk-UJUWDF7M.mjs +0 -336
- package/dist/chunk-UJUWDF7M.mjs.map +0 -1
- package/dist/chunk-VCKXK6V5.js +0 -345
- package/dist/chunk-VCKXK6V5.js.map +0 -1
- package/dist/chunk-VIEXDTNF.mjs +0 -100
- package/dist/chunk-VIEXDTNF.mjs.map +0 -1
- package/dist/chunk-YIRPPMCN.mjs.map +0 -1
- package/dist/common/ai/llm/core/index.d.mts +0 -70
- package/dist/common/ai/llm/core/index.d.ts +0 -70
- package/dist/common/ai/llm/core/index.js +0 -54
- package/dist/common/ai/llm/core/index.mjs +0 -5
- package/dist/common/ai/llm/electron/index.d.mts +0 -6
- package/dist/common/ai/llm/electron/index.d.ts +0 -6
- package/dist/common/ai/llm/electron/index.js +0 -67
- package/dist/common/ai/llm/electron/index.mjs +0 -10
- package/dist/common/ai/llm/index.d.mts +0 -3
- package/dist/common/ai/llm/index.d.ts +0 -3
- package/dist/common/ai/llm/index.js +0 -54
- package/dist/common/ai/llm/index.js.map +0 -1
- package/dist/common/ai/llm/index.mjs +0 -5
- package/dist/common/ai/llm/index.mjs.map +0 -1
- package/dist/common/ai/llm/miniapp/index.d.mts +0 -6
- package/dist/common/ai/llm/miniapp/index.d.ts +0 -6
- package/dist/common/ai/llm/miniapp/index.js +0 -59
- package/dist/common/ai/llm/miniapp/index.js.map +0 -1
- package/dist/common/ai/llm/miniapp/index.mjs +0 -6
- package/dist/common/ai/llm/miniapp/index.mjs.map +0 -1
- package/dist/common/ai/llm/rn/index.d.mts +0 -6
- package/dist/common/ai/llm/rn/index.d.ts +0 -6
- package/dist/common/ai/llm/rn/index.js +0 -59
- package/dist/common/ai/llm/rn/index.js.map +0 -1
- package/dist/common/ai/llm/rn/index.mjs +0 -6
- package/dist/common/ai/llm/rn/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/electron/index.d.mts +0 -5
- package/dist/common/ai/llm/ui/electron/index.d.ts +0 -5
- package/dist/common/ai/llm/ui/electron/index.js +0 -22
- package/dist/common/ai/llm/ui/electron/index.js.map +0 -1
- package/dist/common/ai/llm/ui/electron/index.mjs +0 -9
- package/dist/common/ai/llm/ui/electron/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/miniapp/index.d.mts +0 -9
- package/dist/common/ai/llm/ui/miniapp/index.d.ts +0 -9
- package/dist/common/ai/llm/ui/miniapp/index.js +0 -14
- package/dist/common/ai/llm/ui/miniapp/index.js.map +0 -1
- package/dist/common/ai/llm/ui/miniapp/index.mjs +0 -5
- package/dist/common/ai/llm/ui/miniapp/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/rn/index.d.mts +0 -9
- package/dist/common/ai/llm/ui/rn/index.d.ts +0 -9
- package/dist/common/ai/llm/ui/rn/index.js +0 -14
- package/dist/common/ai/llm/ui/rn/index.js.map +0 -1
- package/dist/common/ai/llm/ui/rn/index.mjs +0 -5
- package/dist/common/ai/llm/ui/rn/index.mjs.map +0 -1
- package/dist/common/ai/llm/ui/web/index.d.mts +0 -15
- package/dist/common/ai/llm/ui/web/index.d.ts +0 -15
- package/dist/common/ai/llm/ui/web/index.js +0 -21
- package/dist/common/ai/llm/ui/web/index.js.map +0 -1
- package/dist/common/ai/llm/ui/web/index.mjs +0 -8
- package/dist/common/ai/llm/ui/web/index.mjs.map +0 -1
- package/dist/common/ai/llm/web/index.d.mts +0 -6
- package/dist/common/ai/llm/web/index.d.ts +0 -6
- package/dist/common/ai/llm/web/index.js +0 -66
- package/dist/common/ai/llm/web/index.js.map +0 -1
- package/dist/common/ai/llm/web/index.mjs +0 -9
- package/dist/common/ai/llm/web/index.mjs.map +0 -1
- package/dist/types-B2rs_jq1.d.mts +0 -38
- package/dist/types-DgACCUpT.d.ts +0 -122
- package/dist/types-DwS2Eg0q.d.ts +0 -38
- package/dist/types-LU_BGSzk.d.mts +0 -122
- /package/dist/common/{ai/llm/core → aiApi}/index.js.map +0 -0
- /package/dist/common/{ai/llm/core → aiApi}/index.mjs.map +0 -0
- /package/dist/common/{ai/llm/electron → aiApi/server}/index.js.map +0 -0
- /package/dist/common/{ai/llm/electron → aiApi/server}/index.mjs.map +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunk7PMT4L4I_js = require('./chunk-7PMT4L4I.js');
|
|
4
3
|
var chunkY7WHUKJF_js = require('./chunk-Y7WHUKJF.js');
|
|
5
4
|
var chunkOIRZXSYM_js = require('./chunk-OIRZXSYM.js');
|
|
6
5
|
var chunkNSBPE2FW_js = require('./chunk-NSBPE2FW.js');
|
|
7
|
-
var
|
|
6
|
+
var React10 = require('react');
|
|
8
7
|
var classVarianceAuthority = require('class-variance-authority');
|
|
8
|
+
var reactDom = require('react-dom');
|
|
9
9
|
var lucideReact = require('lucide-react');
|
|
10
10
|
var clsx = require('clsx');
|
|
11
11
|
var navigation = require('next/navigation');
|
|
@@ -28,28 +28,28 @@ function _interopNamespace(e) {
|
|
|
28
28
|
return Object.freeze(n);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var React10__namespace = /*#__PURE__*/_interopNamespace(React10);
|
|
32
32
|
|
|
33
33
|
// src/common/components/index.ts
|
|
34
34
|
var components_exports = {};
|
|
35
35
|
chunkNSBPE2FW_js.__export(components_exports, {
|
|
36
|
-
AlertDialog: () =>
|
|
36
|
+
AlertDialog: () => Dialog,
|
|
37
37
|
AlertDialogAction: () => AlertDialogAction,
|
|
38
38
|
AlertDialogCancel: () => AlertDialogCancel,
|
|
39
39
|
AlertDialogContent: () => AlertDialogContent,
|
|
40
|
-
AlertDialogDescription: () =>
|
|
41
|
-
AlertDialogFooter: () =>
|
|
42
|
-
AlertDialogHeader: () =>
|
|
43
|
-
AlertDialogOverlay: () =>
|
|
44
|
-
AlertDialogPortal: () =>
|
|
45
|
-
AlertDialogTitle: () =>
|
|
46
|
-
AlertDialogTrigger: () =>
|
|
40
|
+
AlertDialogDescription: () => DialogDescription,
|
|
41
|
+
AlertDialogFooter: () => DialogFooter,
|
|
42
|
+
AlertDialogHeader: () => DialogHeader,
|
|
43
|
+
AlertDialogOverlay: () => DialogOverlay,
|
|
44
|
+
AlertDialogPortal: () => DialogPortal,
|
|
45
|
+
AlertDialogTitle: () => DialogTitle,
|
|
46
|
+
AlertDialogTrigger: () => DialogTrigger,
|
|
47
47
|
Avatar: () => Avatar,
|
|
48
48
|
AvatarFallback: () => AvatarFallback,
|
|
49
49
|
AvatarImage: () => AvatarImage,
|
|
50
50
|
BackButton: () => BackButton,
|
|
51
51
|
Badge: () => Badge,
|
|
52
|
-
Button: () =>
|
|
52
|
+
Button: () => Button,
|
|
53
53
|
Card: () => Card,
|
|
54
54
|
CardContent: () => CardContent,
|
|
55
55
|
CardDescription: () => CardDescription,
|
|
@@ -58,16 +58,16 @@ chunkNSBPE2FW_js.__export(components_exports, {
|
|
|
58
58
|
CardTitle: () => CardTitle,
|
|
59
59
|
CollisionBalls: () => CollisionBalls,
|
|
60
60
|
ConfirmModal: () => ConfirmModal,
|
|
61
|
-
Dialog: () =>
|
|
62
|
-
DialogClose: () =>
|
|
63
|
-
DialogContent: () =>
|
|
64
|
-
DialogDescription: () =>
|
|
65
|
-
DialogFooter: () =>
|
|
66
|
-
DialogHeader: () =>
|
|
67
|
-
DialogOverlay: () =>
|
|
68
|
-
DialogPortal: () =>
|
|
69
|
-
DialogTitle: () =>
|
|
70
|
-
DialogTrigger: () =>
|
|
61
|
+
Dialog: () => Dialog,
|
|
62
|
+
DialogClose: () => DialogClose,
|
|
63
|
+
DialogContent: () => DialogContent,
|
|
64
|
+
DialogDescription: () => DialogDescription,
|
|
65
|
+
DialogFooter: () => DialogFooter,
|
|
66
|
+
DialogHeader: () => DialogHeader,
|
|
67
|
+
DialogOverlay: () => DialogOverlay,
|
|
68
|
+
DialogPortal: () => DialogPortal,
|
|
69
|
+
DialogTitle: () => DialogTitle,
|
|
70
|
+
DialogTrigger: () => DialogTrigger,
|
|
71
71
|
DropdownMenu: () => DropdownMenu,
|
|
72
72
|
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
73
73
|
DropdownMenuContent: () => DropdownMenuContent,
|
|
@@ -87,7 +87,7 @@ chunkNSBPE2FW_js.__export(components_exports, {
|
|
|
87
87
|
GenericOrderManager: () => GenericOrderManager,
|
|
88
88
|
Grid: () => Grid,
|
|
89
89
|
ImageMappingPanel: () => ImageMappingPanel,
|
|
90
|
-
Input: () =>
|
|
90
|
+
Input: () => Input,
|
|
91
91
|
Label: () => Label,
|
|
92
92
|
LocalImageMappingPanel: () => LocalImageMappingPanel,
|
|
93
93
|
Modal: () => Modal,
|
|
@@ -111,16 +111,16 @@ chunkNSBPE2FW_js.__export(components_exports, {
|
|
|
111
111
|
SelectTrigger: () => SelectTrigger,
|
|
112
112
|
SelectValue: () => SelectValue,
|
|
113
113
|
Separator: () => Separator,
|
|
114
|
-
Sheet: () =>
|
|
115
|
-
SheetClose: () =>
|
|
114
|
+
Sheet: () => Dialog,
|
|
115
|
+
SheetClose: () => DialogClose,
|
|
116
116
|
SheetContent: () => SheetContent,
|
|
117
117
|
SheetDescription: () => SheetDescription,
|
|
118
118
|
SheetFooter: () => SheetFooter,
|
|
119
119
|
SheetHeader: () => SheetHeader,
|
|
120
|
-
SheetOverlay: () =>
|
|
121
|
-
SheetPortal: () =>
|
|
120
|
+
SheetOverlay: () => DialogOverlay,
|
|
121
|
+
SheetPortal: () => DialogPortal,
|
|
122
122
|
SheetTitle: () => SheetTitle,
|
|
123
|
-
SheetTrigger: () =>
|
|
123
|
+
SheetTrigger: () => DialogTrigger,
|
|
124
124
|
Tabs: () => Tabs,
|
|
125
125
|
TabsContent: () => TabsContent,
|
|
126
126
|
TabsList: () => TabsList,
|
|
@@ -132,9 +132,55 @@ chunkNSBPE2FW_js.__export(components_exports, {
|
|
|
132
132
|
TooltipProvider: () => TooltipProvider,
|
|
133
133
|
TooltipTrigger: () => TooltipTrigger,
|
|
134
134
|
badgeVariants: () => badgeVariants,
|
|
135
|
-
buttonVariants: () =>
|
|
135
|
+
buttonVariants: () => buttonVariants
|
|
136
136
|
});
|
|
137
|
-
var
|
|
137
|
+
var buttonVariants = classVarianceAuthority.cva(
|
|
138
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
139
|
+
{
|
|
140
|
+
variants: {
|
|
141
|
+
variant: {
|
|
142
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
143
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
144
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
145
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
146
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
147
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
148
|
+
},
|
|
149
|
+
size: {
|
|
150
|
+
default: "h-9 px-4 py-2",
|
|
151
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
152
|
+
lg: "h-10 rounded-md px-8",
|
|
153
|
+
icon: "h-9 w-9"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
defaultVariants: {
|
|
157
|
+
variant: "default",
|
|
158
|
+
size: "default"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
var Button = React10__namespace.forwardRef(
|
|
163
|
+
({ className, variant = "default", size = "default", asChild = false, children, ...props }, ref) => {
|
|
164
|
+
if (asChild && React10__namespace.isValidElement(children)) {
|
|
165
|
+
const childProps = children.props;
|
|
166
|
+
return React10__namespace.cloneElement(children, {
|
|
167
|
+
...props,
|
|
168
|
+
className: chunkY7WHUKJF_js.cn(buttonVariants({ variant, size, className }), childProps.className)
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
172
|
+
"button",
|
|
173
|
+
{
|
|
174
|
+
className: chunkY7WHUKJF_js.cn(buttonVariants({ variant, size, className })),
|
|
175
|
+
ref,
|
|
176
|
+
...props
|
|
177
|
+
},
|
|
178
|
+
children
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
Button.displayName = "Button";
|
|
183
|
+
var Card = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
138
184
|
"div",
|
|
139
185
|
{
|
|
140
186
|
ref,
|
|
@@ -146,7 +192,7 @@ var Card = React6__namespace.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
146
192
|
}
|
|
147
193
|
));
|
|
148
194
|
Card.displayName = "Card";
|
|
149
|
-
var CardHeader =
|
|
195
|
+
var CardHeader = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
150
196
|
"div",
|
|
151
197
|
{
|
|
152
198
|
ref,
|
|
@@ -155,7 +201,7 @@ var CardHeader = React6__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
155
201
|
}
|
|
156
202
|
));
|
|
157
203
|
CardHeader.displayName = "CardHeader";
|
|
158
|
-
var CardTitle =
|
|
204
|
+
var CardTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
159
205
|
"div",
|
|
160
206
|
{
|
|
161
207
|
ref,
|
|
@@ -164,7 +210,7 @@ var CardTitle = React6__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
164
210
|
}
|
|
165
211
|
));
|
|
166
212
|
CardTitle.displayName = "CardTitle";
|
|
167
|
-
var CardDescription =
|
|
213
|
+
var CardDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
168
214
|
"div",
|
|
169
215
|
{
|
|
170
216
|
ref,
|
|
@@ -173,9 +219,9 @@ var CardDescription = React6__namespace.forwardRef(({ className, ...props }, ref
|
|
|
173
219
|
}
|
|
174
220
|
));
|
|
175
221
|
CardDescription.displayName = "CardDescription";
|
|
176
|
-
var CardContent =
|
|
222
|
+
var CardContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement("div", { ref, className: chunkY7WHUKJF_js.cn("p-6 pt-0", className), ...props }));
|
|
177
223
|
CardContent.displayName = "CardContent";
|
|
178
|
-
var CardFooter =
|
|
224
|
+
var CardFooter = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
179
225
|
"div",
|
|
180
226
|
{
|
|
181
227
|
ref,
|
|
@@ -201,12 +247,29 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
201
247
|
}
|
|
202
248
|
);
|
|
203
249
|
function Badge({ className, variant, ...props }) {
|
|
204
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ React10__namespace.createElement("div", { className: chunkY7WHUKJF_js.cn(badgeVariants({ variant }), className), ...props });
|
|
205
251
|
}
|
|
252
|
+
var Input = React10__namespace.forwardRef(
|
|
253
|
+
({ className, type, ...props }, ref) => {
|
|
254
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
255
|
+
"input",
|
|
256
|
+
{
|
|
257
|
+
type,
|
|
258
|
+
className: chunkY7WHUKJF_js.cn(
|
|
259
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
260
|
+
className
|
|
261
|
+
),
|
|
262
|
+
ref,
|
|
263
|
+
...props
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
Input.displayName = "Input";
|
|
206
269
|
var labelVariants = classVarianceAuthority.cva(
|
|
207
270
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
208
271
|
);
|
|
209
|
-
var Label =
|
|
272
|
+
var Label = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
210
273
|
"label",
|
|
211
274
|
{
|
|
212
275
|
ref,
|
|
@@ -215,7 +278,70 @@ var Label = React6__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
215
278
|
}
|
|
216
279
|
));
|
|
217
280
|
Label.displayName = "Label";
|
|
218
|
-
|
|
281
|
+
function useControllableState({
|
|
282
|
+
value,
|
|
283
|
+
defaultValue,
|
|
284
|
+
onChange
|
|
285
|
+
}) {
|
|
286
|
+
const [internal, setInternal] = React10__namespace.useState(defaultValue);
|
|
287
|
+
const isControlled = value !== void 0;
|
|
288
|
+
const state = isControlled ? value : internal;
|
|
289
|
+
const setState = React10__namespace.useCallback(
|
|
290
|
+
(next) => {
|
|
291
|
+
if (!isControlled) setInternal(next);
|
|
292
|
+
onChange?.(next);
|
|
293
|
+
},
|
|
294
|
+
[isControlled, onChange]
|
|
295
|
+
);
|
|
296
|
+
return [state, setState];
|
|
297
|
+
}
|
|
298
|
+
function Portal({
|
|
299
|
+
children,
|
|
300
|
+
container
|
|
301
|
+
}) {
|
|
302
|
+
const [mounted, setMounted] = React10__namespace.useState(false);
|
|
303
|
+
React10__namespace.useEffect(() => {
|
|
304
|
+
setMounted(true);
|
|
305
|
+
}, []);
|
|
306
|
+
if (!mounted) return null;
|
|
307
|
+
return reactDom.createPortal(children, container ?? document.body);
|
|
308
|
+
}
|
|
309
|
+
function useOnClickOutside(refs, handler, enabled) {
|
|
310
|
+
React10__namespace.useEffect(() => {
|
|
311
|
+
if (!enabled) return;
|
|
312
|
+
const listener = (event) => {
|
|
313
|
+
const target = event.target;
|
|
314
|
+
const clickedInside = refs.some((ref) => {
|
|
315
|
+
const el = ref.current;
|
|
316
|
+
return el && el.contains(target);
|
|
317
|
+
});
|
|
318
|
+
if (!clickedInside) {
|
|
319
|
+
handler(event);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
document.addEventListener("mousedown", listener);
|
|
323
|
+
document.addEventListener("touchstart", listener);
|
|
324
|
+
return () => {
|
|
325
|
+
document.removeEventListener("mousedown", listener);
|
|
326
|
+
document.removeEventListener("touchstart", listener);
|
|
327
|
+
};
|
|
328
|
+
}, [refs, handler, enabled]);
|
|
329
|
+
}
|
|
330
|
+
function mergeRefs(...refs) {
|
|
331
|
+
return (value) => {
|
|
332
|
+
refs.forEach((ref) => {
|
|
333
|
+
if (!ref) return;
|
|
334
|
+
if (typeof ref === "function") {
|
|
335
|
+
ref(value);
|
|
336
|
+
} else {
|
|
337
|
+
ref.current = value;
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// src/common/components/Tabs.tsx
|
|
344
|
+
var TabsContext = React10__namespace.createContext(null);
|
|
219
345
|
var Tabs = ({
|
|
220
346
|
value,
|
|
221
347
|
defaultValue = "",
|
|
@@ -223,14 +349,14 @@ var Tabs = ({
|
|
|
223
349
|
className,
|
|
224
350
|
...props
|
|
225
351
|
}) => {
|
|
226
|
-
const [current, setCurrent] =
|
|
352
|
+
const [current, setCurrent] = useControllableState({
|
|
227
353
|
value,
|
|
228
354
|
defaultValue,
|
|
229
355
|
onChange: onValueChange
|
|
230
356
|
});
|
|
231
|
-
return /* @__PURE__ */
|
|
357
|
+
return /* @__PURE__ */ React10__namespace.createElement(TabsContext.Provider, { value: { value: current, setValue: setCurrent } }, /* @__PURE__ */ React10__namespace.createElement("div", { className, ...props }));
|
|
232
358
|
};
|
|
233
|
-
var TabsList =
|
|
359
|
+
var TabsList = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
234
360
|
"div",
|
|
235
361
|
{
|
|
236
362
|
ref,
|
|
@@ -242,11 +368,11 @@ var TabsList = React6__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
242
368
|
}
|
|
243
369
|
));
|
|
244
370
|
TabsList.displayName = "TabsList";
|
|
245
|
-
var TabsTrigger =
|
|
371
|
+
var TabsTrigger = React10__namespace.forwardRef(
|
|
246
372
|
({ className, value, onClick, ...props }, ref) => {
|
|
247
|
-
const ctx =
|
|
373
|
+
const ctx = React10__namespace.useContext(TabsContext);
|
|
248
374
|
const active = ctx?.value === value;
|
|
249
|
-
return /* @__PURE__ */
|
|
375
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
250
376
|
"button",
|
|
251
377
|
{
|
|
252
378
|
ref,
|
|
@@ -267,12 +393,12 @@ var TabsTrigger = React6__namespace.forwardRef(
|
|
|
267
393
|
}
|
|
268
394
|
);
|
|
269
395
|
TabsTrigger.displayName = "TabsTrigger";
|
|
270
|
-
var TabsContent =
|
|
396
|
+
var TabsContent = React10__namespace.forwardRef(
|
|
271
397
|
({ className, value, forceMount = false, ...props }, ref) => {
|
|
272
|
-
const ctx =
|
|
398
|
+
const ctx = React10__namespace.useContext(TabsContext);
|
|
273
399
|
const active = ctx?.value === value;
|
|
274
400
|
if (!active && !forceMount) return null;
|
|
275
|
-
return /* @__PURE__ */
|
|
401
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
276
402
|
"div",
|
|
277
403
|
{
|
|
278
404
|
ref,
|
|
@@ -288,8 +414,158 @@ var TabsContent = React6__namespace.forwardRef(
|
|
|
288
414
|
}
|
|
289
415
|
);
|
|
290
416
|
TabsContent.displayName = "TabsContent";
|
|
291
|
-
var
|
|
292
|
-
|
|
417
|
+
var DialogContext = React10__namespace.createContext(null);
|
|
418
|
+
var Dialog = ({ open, defaultOpen = false, onOpenChange, children }) => {
|
|
419
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
420
|
+
value: open,
|
|
421
|
+
defaultValue: defaultOpen,
|
|
422
|
+
onChange: onOpenChange
|
|
423
|
+
});
|
|
424
|
+
const triggerRef = React10__namespace.useRef(null);
|
|
425
|
+
const contentRef = React10__namespace.useRef(null);
|
|
426
|
+
return /* @__PURE__ */ React10__namespace.createElement(DialogContext.Provider, { value: { open: isOpen, setOpen: setIsOpen, triggerRef, contentRef } }, children);
|
|
427
|
+
};
|
|
428
|
+
var DialogTrigger = React10__namespace.forwardRef(
|
|
429
|
+
({ children, onClick, ...props }, ref) => {
|
|
430
|
+
const ctx = React10__namespace.useContext(DialogContext);
|
|
431
|
+
if (!ctx) return null;
|
|
432
|
+
const mergedRef = mergeRefs(ctx.triggerRef, ref);
|
|
433
|
+
const handleClick = (e) => {
|
|
434
|
+
ctx.setOpen(true);
|
|
435
|
+
onClick?.(e);
|
|
436
|
+
};
|
|
437
|
+
return /* @__PURE__ */ React10__namespace.createElement("button", { ref: mergedRef, type: "button", onClick: handleClick, ...props }, children);
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
DialogTrigger.displayName = "DialogTrigger";
|
|
441
|
+
var DialogPortal = ({ children }) => {
|
|
442
|
+
const ctx = React10__namespace.useContext(DialogContext);
|
|
443
|
+
if (!ctx?.open) return null;
|
|
444
|
+
return /* @__PURE__ */ React10__namespace.createElement(Portal, null, children);
|
|
445
|
+
};
|
|
446
|
+
var DialogClose = React10__namespace.forwardRef(({ onClick, ...props }, ref) => {
|
|
447
|
+
const ctx = React10__namespace.useContext(DialogContext);
|
|
448
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
449
|
+
"button",
|
|
450
|
+
{
|
|
451
|
+
ref,
|
|
452
|
+
type: "button",
|
|
453
|
+
onClick: (e) => {
|
|
454
|
+
ctx?.setOpen(false);
|
|
455
|
+
onClick?.(e);
|
|
456
|
+
},
|
|
457
|
+
...props
|
|
458
|
+
}
|
|
459
|
+
);
|
|
460
|
+
});
|
|
461
|
+
DialogClose.displayName = "DialogClose";
|
|
462
|
+
var DialogOverlay = React10__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
463
|
+
const ctx = React10__namespace.useContext(DialogContext);
|
|
464
|
+
if (!ctx?.open) return null;
|
|
465
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
466
|
+
"div",
|
|
467
|
+
{
|
|
468
|
+
ref,
|
|
469
|
+
className: chunkY7WHUKJF_js.cn("fixed inset-0 z-[9999] bg-black/80", className),
|
|
470
|
+
...props
|
|
471
|
+
}
|
|
472
|
+
);
|
|
473
|
+
});
|
|
474
|
+
DialogOverlay.displayName = "DialogOverlay";
|
|
475
|
+
var DialogContent = React10__namespace.forwardRef(
|
|
476
|
+
({ className, children, onPointerDownOutside, onEscapeKeyDown, showCloseButton = true, overlayClassName, ...props }, ref) => {
|
|
477
|
+
const ctx = React10__namespace.useContext(DialogContext);
|
|
478
|
+
const open = !!ctx?.open;
|
|
479
|
+
useOnClickOutside(
|
|
480
|
+
[ctx?.contentRef ?? { current: null }, ctx?.triggerRef ?? { current: null }],
|
|
481
|
+
(evt) => {
|
|
482
|
+
onPointerDownOutside?.(evt);
|
|
483
|
+
if (!evt.defaultPrevented) {
|
|
484
|
+
ctx?.setOpen(false);
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
open
|
|
488
|
+
);
|
|
489
|
+
React10__namespace.useEffect(() => {
|
|
490
|
+
if (!open) return;
|
|
491
|
+
const onKey = (e) => {
|
|
492
|
+
if (e.key !== "Escape") return;
|
|
493
|
+
onEscapeKeyDown?.(e);
|
|
494
|
+
if (!e.defaultPrevented) {
|
|
495
|
+
ctx?.setOpen(false);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
document.addEventListener("keydown", onKey);
|
|
499
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
500
|
+
}, [ctx, onEscapeKeyDown, open]);
|
|
501
|
+
if (!ctx || !open) return null;
|
|
502
|
+
return /* @__PURE__ */ React10__namespace.createElement(DialogPortal, null, /* @__PURE__ */ React10__namespace.createElement(DialogOverlay, { className: overlayClassName }), /* @__PURE__ */ React10__namespace.createElement(
|
|
503
|
+
"div",
|
|
504
|
+
{
|
|
505
|
+
ref: mergeRefs(ctx.contentRef, ref),
|
|
506
|
+
className: chunkY7WHUKJF_js.cn(
|
|
507
|
+
"fixed left-[50%] top-[50%] z-[10000] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:rounded-lg",
|
|
508
|
+
className
|
|
509
|
+
),
|
|
510
|
+
...props
|
|
511
|
+
},
|
|
512
|
+
children,
|
|
513
|
+
showCloseButton ? /* @__PURE__ */ React10__namespace.createElement(DialogClose, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100" }, /* @__PURE__ */ React10__namespace.createElement(lucideReact.X, { className: "h-4 w-4" }), /* @__PURE__ */ React10__namespace.createElement("span", { className: "sr-only" }, "Close")) : null
|
|
514
|
+
));
|
|
515
|
+
}
|
|
516
|
+
);
|
|
517
|
+
DialogContent.displayName = "DialogContent";
|
|
518
|
+
var DialogHeader = ({
|
|
519
|
+
className,
|
|
520
|
+
...props
|
|
521
|
+
}) => /* @__PURE__ */ React10__namespace.createElement(
|
|
522
|
+
"div",
|
|
523
|
+
{
|
|
524
|
+
className: chunkY7WHUKJF_js.cn(
|
|
525
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
526
|
+
className
|
|
527
|
+
),
|
|
528
|
+
...props
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
DialogHeader.displayName = "DialogHeader";
|
|
532
|
+
var DialogFooter = ({
|
|
533
|
+
className,
|
|
534
|
+
...props
|
|
535
|
+
}) => /* @__PURE__ */ React10__namespace.createElement(
|
|
536
|
+
"div",
|
|
537
|
+
{
|
|
538
|
+
className: chunkY7WHUKJF_js.cn(
|
|
539
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
540
|
+
className
|
|
541
|
+
),
|
|
542
|
+
...props
|
|
543
|
+
}
|
|
544
|
+
);
|
|
545
|
+
DialogFooter.displayName = "DialogFooter";
|
|
546
|
+
var DialogTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
547
|
+
"h2",
|
|
548
|
+
{
|
|
549
|
+
ref,
|
|
550
|
+
className: chunkY7WHUKJF_js.cn(
|
|
551
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
552
|
+
className
|
|
553
|
+
),
|
|
554
|
+
...props
|
|
555
|
+
}
|
|
556
|
+
));
|
|
557
|
+
DialogTitle.displayName = "DialogTitle";
|
|
558
|
+
var DialogDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
559
|
+
"p",
|
|
560
|
+
{
|
|
561
|
+
ref,
|
|
562
|
+
className: chunkY7WHUKJF_js.cn("text-sm text-muted-foreground", className),
|
|
563
|
+
...props
|
|
564
|
+
}
|
|
565
|
+
));
|
|
566
|
+
DialogDescription.displayName = "DialogDescription";
|
|
567
|
+
var AlertDialogContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
568
|
+
DialogContent,
|
|
293
569
|
{
|
|
294
570
|
ref,
|
|
295
571
|
className: chunkY7WHUKJF_js.cn("z-[9999]", className),
|
|
@@ -297,21 +573,21 @@ var AlertDialogContent = React6__namespace.forwardRef(({ className, ...props },
|
|
|
297
573
|
}
|
|
298
574
|
));
|
|
299
575
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
300
|
-
var AlertDialogAction =
|
|
301
|
-
|
|
576
|
+
var AlertDialogAction = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
577
|
+
DialogClose,
|
|
302
578
|
{
|
|
303
579
|
ref,
|
|
304
|
-
className: chunkY7WHUKJF_js.cn(
|
|
580
|
+
className: chunkY7WHUKJF_js.cn(buttonVariants(), className),
|
|
305
581
|
...props
|
|
306
582
|
}
|
|
307
583
|
));
|
|
308
584
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
309
|
-
var AlertDialogCancel =
|
|
310
|
-
|
|
585
|
+
var AlertDialogCancel = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
586
|
+
DialogClose,
|
|
311
587
|
{
|
|
312
588
|
ref,
|
|
313
589
|
className: chunkY7WHUKJF_js.cn(
|
|
314
|
-
|
|
590
|
+
buttonVariants({ variant: "outline" }),
|
|
315
591
|
"mt-2 sm:mt-0",
|
|
316
592
|
className
|
|
317
593
|
),
|
|
@@ -319,52 +595,52 @@ var AlertDialogCancel = React6__namespace.forwardRef(({ className, ...props }, r
|
|
|
319
595
|
}
|
|
320
596
|
));
|
|
321
597
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
322
|
-
var DropdownMenuContext =
|
|
323
|
-
var DropdownMenuRadioGroupContext =
|
|
598
|
+
var DropdownMenuContext = React10__namespace.createContext(null);
|
|
599
|
+
var DropdownMenuRadioGroupContext = React10__namespace.createContext(null);
|
|
324
600
|
var DropdownMenu = ({ open, defaultOpen = false, onOpenChange, children }) => {
|
|
325
|
-
const [isOpen, setIsOpen] =
|
|
601
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
326
602
|
value: open,
|
|
327
603
|
defaultValue: defaultOpen,
|
|
328
604
|
onChange: onOpenChange
|
|
329
605
|
});
|
|
330
|
-
const triggerRef =
|
|
331
|
-
const contentRef =
|
|
332
|
-
return /* @__PURE__ */
|
|
606
|
+
const triggerRef = React10__namespace.useRef(null);
|
|
607
|
+
const contentRef = React10__namespace.useRef(null);
|
|
608
|
+
return /* @__PURE__ */ React10__namespace.createElement(DropdownMenuContext.Provider, { value: { open: isOpen, setOpen: setIsOpen, triggerRef, contentRef } }, children);
|
|
333
609
|
};
|
|
334
|
-
var DropdownMenuTrigger =
|
|
335
|
-
const ctx =
|
|
610
|
+
var DropdownMenuTrigger = React10__namespace.forwardRef(({ children, onClick, ...props }, ref) => {
|
|
611
|
+
const ctx = React10__namespace.useContext(DropdownMenuContext);
|
|
336
612
|
if (!ctx) return null;
|
|
337
|
-
const mergedRef =
|
|
613
|
+
const mergedRef = mergeRefs(ctx.triggerRef, ref);
|
|
338
614
|
const handleClick = (e) => {
|
|
339
615
|
ctx.setOpen(!ctx.open);
|
|
340
616
|
onClick?.(e);
|
|
341
617
|
};
|
|
342
|
-
return /* @__PURE__ */
|
|
618
|
+
return /* @__PURE__ */ React10__namespace.createElement("button", { ref: mergedRef, type: "button", onClick: handleClick, ...props }, children);
|
|
343
619
|
});
|
|
344
620
|
DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
|
|
345
|
-
var DropdownMenuGroup = ({ children }) => /* @__PURE__ */
|
|
346
|
-
var DropdownMenuPortal = ({ children }) => /* @__PURE__ */
|
|
347
|
-
var DropdownMenuSub = ({ children }) => /* @__PURE__ */
|
|
348
|
-
var DropdownMenuContent =
|
|
349
|
-
const ctx =
|
|
350
|
-
const [pos, setPos] =
|
|
621
|
+
var DropdownMenuGroup = ({ children }) => /* @__PURE__ */ React10__namespace.createElement(React10__namespace.Fragment, null, children);
|
|
622
|
+
var DropdownMenuPortal = ({ children }) => /* @__PURE__ */ React10__namespace.createElement(Portal, null, children);
|
|
623
|
+
var DropdownMenuSub = ({ children }) => /* @__PURE__ */ React10__namespace.createElement(React10__namespace.Fragment, null, children);
|
|
624
|
+
var DropdownMenuContent = React10__namespace.forwardRef(({ className, sideOffset = 4, style, ...props }, ref) => {
|
|
625
|
+
const ctx = React10__namespace.useContext(DropdownMenuContext);
|
|
626
|
+
const [pos, setPos] = React10__namespace.useState({ top: 0, left: 0 });
|
|
351
627
|
const open = !!ctx?.open;
|
|
352
628
|
const trigger = ctx?.triggerRef.current ?? null;
|
|
353
|
-
|
|
629
|
+
React10__namespace.useLayoutEffect(() => {
|
|
354
630
|
if (!trigger) return;
|
|
355
631
|
const rect = trigger.getBoundingClientRect();
|
|
356
632
|
setPos({ top: rect.bottom + sideOffset, left: rect.left });
|
|
357
633
|
}, [trigger, sideOffset]);
|
|
358
|
-
|
|
634
|
+
useOnClickOutside(
|
|
359
635
|
[ctx?.contentRef ?? { current: null }, ctx?.triggerRef ?? { current: null }],
|
|
360
636
|
() => ctx?.setOpen(false),
|
|
361
637
|
open
|
|
362
638
|
);
|
|
363
639
|
if (!ctx || !open || !trigger) return null;
|
|
364
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ React10__namespace.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React10__namespace.createElement(
|
|
365
641
|
"div",
|
|
366
642
|
{
|
|
367
|
-
ref:
|
|
643
|
+
ref: mergeRefs(ctx.contentRef, ref),
|
|
368
644
|
className: chunkY7WHUKJF_js.cn(
|
|
369
645
|
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
370
646
|
className
|
|
@@ -375,9 +651,9 @@ var DropdownMenuContent = React6__namespace.forwardRef(({ className, sideOffset
|
|
|
375
651
|
));
|
|
376
652
|
});
|
|
377
653
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
378
|
-
var DropdownMenuItem =
|
|
379
|
-
const ctx =
|
|
380
|
-
return /* @__PURE__ */
|
|
654
|
+
var DropdownMenuItem = React10__namespace.forwardRef(({ className, inset, onSelect, onClick, ...props }, ref) => {
|
|
655
|
+
const ctx = React10__namespace.useContext(DropdownMenuContext);
|
|
656
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
381
657
|
"button",
|
|
382
658
|
{
|
|
383
659
|
ref,
|
|
@@ -399,7 +675,7 @@ var DropdownMenuItem = React6__namespace.forwardRef(({ className, inset, onSelec
|
|
|
399
675
|
);
|
|
400
676
|
});
|
|
401
677
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
402
|
-
var DropdownMenuCheckboxItem =
|
|
678
|
+
var DropdownMenuCheckboxItem = React10__namespace.forwardRef(({ className, children, checked = false, onCheckedChange, onClick, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
403
679
|
"button",
|
|
404
680
|
{
|
|
405
681
|
ref,
|
|
@@ -414,7 +690,7 @@ var DropdownMenuCheckboxItem = React6__namespace.forwardRef(({ className, childr
|
|
|
414
690
|
},
|
|
415
691
|
...props
|
|
416
692
|
},
|
|
417
|
-
/* @__PURE__ */
|
|
693
|
+
/* @__PURE__ */ React10__namespace.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, checked ? /* @__PURE__ */ React10__namespace.createElement(lucideReact.Check, { className: "h-4 w-4" }) : null),
|
|
418
694
|
children
|
|
419
695
|
));
|
|
420
696
|
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
@@ -422,12 +698,12 @@ var DropdownMenuRadioGroup = ({
|
|
|
422
698
|
value,
|
|
423
699
|
onValueChange,
|
|
424
700
|
children
|
|
425
|
-
}) => /* @__PURE__ */
|
|
426
|
-
var DropdownMenuRadioItem =
|
|
427
|
-
const radioCtx =
|
|
428
|
-
const menuCtx =
|
|
701
|
+
}) => /* @__PURE__ */ React10__namespace.createElement(DropdownMenuRadioGroupContext.Provider, { value: { value, onValueChange } }, children);
|
|
702
|
+
var DropdownMenuRadioItem = React10__namespace.forwardRef(({ className, children, value, onClick, ...props }, ref) => {
|
|
703
|
+
const radioCtx = React10__namespace.useContext(DropdownMenuRadioGroupContext);
|
|
704
|
+
const menuCtx = React10__namespace.useContext(DropdownMenuContext);
|
|
429
705
|
const checked = radioCtx?.value === value;
|
|
430
|
-
return /* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
431
707
|
"button",
|
|
432
708
|
{
|
|
433
709
|
ref,
|
|
@@ -443,12 +719,12 @@ var DropdownMenuRadioItem = React6__namespace.forwardRef(({ className, children,
|
|
|
443
719
|
},
|
|
444
720
|
...props
|
|
445
721
|
},
|
|
446
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ React10__namespace.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, checked ? /* @__PURE__ */ React10__namespace.createElement(lucideReact.Circle, { className: "h-2 w-2 fill-current" }) : null),
|
|
447
723
|
children
|
|
448
724
|
);
|
|
449
725
|
});
|
|
450
726
|
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
451
|
-
var DropdownMenuLabel =
|
|
727
|
+
var DropdownMenuLabel = React10__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
452
728
|
"div",
|
|
453
729
|
{
|
|
454
730
|
ref,
|
|
@@ -457,7 +733,7 @@ var DropdownMenuLabel = React6__namespace.forwardRef(({ className, inset, ...pro
|
|
|
457
733
|
}
|
|
458
734
|
));
|
|
459
735
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
460
|
-
var DropdownMenuSeparator =
|
|
736
|
+
var DropdownMenuSeparator = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
461
737
|
"div",
|
|
462
738
|
{
|
|
463
739
|
ref,
|
|
@@ -469,7 +745,7 @@ DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
|
469
745
|
var DropdownMenuShortcut = ({
|
|
470
746
|
className,
|
|
471
747
|
...props
|
|
472
|
-
}) => /* @__PURE__ */
|
|
748
|
+
}) => /* @__PURE__ */ React10__namespace.createElement(
|
|
473
749
|
"span",
|
|
474
750
|
{
|
|
475
751
|
className: chunkY7WHUKJF_js.cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -477,7 +753,7 @@ var DropdownMenuShortcut = ({
|
|
|
477
753
|
}
|
|
478
754
|
);
|
|
479
755
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
480
|
-
var DropdownMenuSubTrigger =
|
|
756
|
+
var DropdownMenuSubTrigger = React10__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
481
757
|
"button",
|
|
482
758
|
{
|
|
483
759
|
ref,
|
|
@@ -490,10 +766,10 @@ var DropdownMenuSubTrigger = React6__namespace.forwardRef(({ className, inset, c
|
|
|
490
766
|
...props
|
|
491
767
|
},
|
|
492
768
|
children,
|
|
493
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ React10__namespace.createElement(lucideReact.ChevronRight, { className: "ml-auto" })
|
|
494
770
|
));
|
|
495
771
|
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
496
|
-
var DropdownMenuSubContent =
|
|
772
|
+
var DropdownMenuSubContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
497
773
|
"div",
|
|
498
774
|
{
|
|
499
775
|
ref,
|
|
@@ -505,46 +781,46 @@ var DropdownMenuSubContent = React6__namespace.forwardRef(({ className, ...props
|
|
|
505
781
|
}
|
|
506
782
|
));
|
|
507
783
|
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
508
|
-
var PopoverContext =
|
|
784
|
+
var PopoverContext = React10__namespace.createContext(null);
|
|
509
785
|
var Popover = ({ open, defaultOpen = false, onOpenChange, children }) => {
|
|
510
|
-
const [isOpen, setIsOpen] =
|
|
786
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
511
787
|
value: open,
|
|
512
788
|
defaultValue: defaultOpen,
|
|
513
789
|
onChange: onOpenChange
|
|
514
790
|
});
|
|
515
|
-
const triggerRef =
|
|
516
|
-
const anchorRef =
|
|
517
|
-
const contentRef =
|
|
518
|
-
return /* @__PURE__ */
|
|
791
|
+
const triggerRef = React10__namespace.useRef(null);
|
|
792
|
+
const anchorRef = React10__namespace.useRef(null);
|
|
793
|
+
const contentRef = React10__namespace.useRef(null);
|
|
794
|
+
return /* @__PURE__ */ React10__namespace.createElement(PopoverContext.Provider, { value: { open: isOpen, setOpen: setIsOpen, triggerRef, anchorRef, contentRef } }, children);
|
|
519
795
|
};
|
|
520
|
-
var PopoverTrigger =
|
|
796
|
+
var PopoverTrigger = React10__namespace.forwardRef(
|
|
521
797
|
({ children, onClick, ...props }, ref) => {
|
|
522
|
-
const ctx =
|
|
798
|
+
const ctx = React10__namespace.useContext(PopoverContext);
|
|
523
799
|
if (!ctx) return null;
|
|
524
|
-
const mergedRef =
|
|
800
|
+
const mergedRef = mergeRefs(ctx.triggerRef, ref);
|
|
525
801
|
const handleClick = (e) => {
|
|
526
802
|
ctx.setOpen(!ctx.open);
|
|
527
803
|
onClick?.(e);
|
|
528
804
|
};
|
|
529
|
-
return /* @__PURE__ */
|
|
805
|
+
return /* @__PURE__ */ React10__namespace.createElement("button", { ref: mergedRef, type: "button", onClick: handleClick, ...props }, children);
|
|
530
806
|
}
|
|
531
807
|
);
|
|
532
808
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
533
|
-
var PopoverAnchor =
|
|
809
|
+
var PopoverAnchor = React10__namespace.forwardRef(
|
|
534
810
|
({ ...props }, ref) => {
|
|
535
|
-
const ctx =
|
|
811
|
+
const ctx = React10__namespace.useContext(PopoverContext);
|
|
536
812
|
if (!ctx) return null;
|
|
537
|
-
return /* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ React10__namespace.createElement("span", { ref: mergeRefs(ctx.anchorRef, ref), ...props });
|
|
538
814
|
}
|
|
539
815
|
);
|
|
540
816
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
541
|
-
var PopoverContent =
|
|
817
|
+
var PopoverContent = React10__namespace.forwardRef(
|
|
542
818
|
({ className, align = "center", sideOffset = 4, style, ...props }, ref) => {
|
|
543
|
-
const ctx =
|
|
544
|
-
const [position, setPosition] =
|
|
819
|
+
const ctx = React10__namespace.useContext(PopoverContext);
|
|
820
|
+
const [position, setPosition] = React10__namespace.useState({ top: 0, left: 0 });
|
|
545
821
|
const open = !!ctx?.open;
|
|
546
822
|
const anchor = ctx?.anchorRef.current ?? ctx?.triggerRef.current ?? null;
|
|
547
|
-
|
|
823
|
+
React10__namespace.useLayoutEffect(() => {
|
|
548
824
|
if (!anchor) return;
|
|
549
825
|
const rect = anchor.getBoundingClientRect();
|
|
550
826
|
let left = rect.left + rect.width / 2;
|
|
@@ -552,16 +828,16 @@ var PopoverContent = React6__namespace.forwardRef(
|
|
|
552
828
|
if (align === "end") left = rect.right;
|
|
553
829
|
setPosition({ top: rect.bottom + sideOffset, left });
|
|
554
830
|
}, [anchor, align, sideOffset]);
|
|
555
|
-
|
|
831
|
+
useOnClickOutside(
|
|
556
832
|
[ctx?.contentRef ?? { current: null }, ctx?.triggerRef ?? { current: null }],
|
|
557
833
|
() => ctx?.setOpen(false),
|
|
558
834
|
open
|
|
559
835
|
);
|
|
560
836
|
if (!ctx || !open) return null;
|
|
561
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ React10__namespace.createElement(Portal, null, /* @__PURE__ */ React10__namespace.createElement(
|
|
562
838
|
"div",
|
|
563
839
|
{
|
|
564
|
-
ref:
|
|
840
|
+
ref: mergeRefs(ctx.contentRef, ref),
|
|
565
841
|
className: chunkY7WHUKJF_js.cn(
|
|
566
842
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",
|
|
567
843
|
className
|
|
@@ -579,12 +855,12 @@ var PopoverContent = React6__namespace.forwardRef(
|
|
|
579
855
|
}
|
|
580
856
|
);
|
|
581
857
|
PopoverContent.displayName = "PopoverContent";
|
|
582
|
-
var Progress =
|
|
858
|
+
var Progress = React10__namespace.forwardRef(
|
|
583
859
|
({ className, value = 0, max = 100, ...props }, ref) => {
|
|
584
860
|
const safeMax = max <= 0 ? 100 : max;
|
|
585
861
|
const safeValue = Math.max(0, Math.min(value, safeMax));
|
|
586
862
|
const percent = safeValue / safeMax * 100;
|
|
587
|
-
return /* @__PURE__ */
|
|
863
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
588
864
|
"div",
|
|
589
865
|
{
|
|
590
866
|
ref,
|
|
@@ -598,7 +874,7 @@ var Progress = React6__namespace.forwardRef(
|
|
|
598
874
|
),
|
|
599
875
|
...props
|
|
600
876
|
},
|
|
601
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ React10__namespace.createElement(
|
|
602
878
|
"div",
|
|
603
879
|
{
|
|
604
880
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -609,7 +885,7 @@ var Progress = React6__namespace.forwardRef(
|
|
|
609
885
|
}
|
|
610
886
|
);
|
|
611
887
|
Progress.displayName = "Progress";
|
|
612
|
-
var ScrollArea =
|
|
888
|
+
var ScrollArea = React10__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
613
889
|
"div",
|
|
614
890
|
{
|
|
615
891
|
ref,
|
|
@@ -619,8 +895,8 @@ var ScrollArea = React6__namespace.forwardRef(({ className, children, ...props }
|
|
|
619
895
|
children
|
|
620
896
|
));
|
|
621
897
|
ScrollArea.displayName = "ScrollArea";
|
|
622
|
-
var ScrollBar =
|
|
623
|
-
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */
|
|
898
|
+
var ScrollBar = React10__namespace.forwardRef(
|
|
899
|
+
({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
624
900
|
"div",
|
|
625
901
|
{
|
|
626
902
|
ref,
|
|
@@ -634,8 +910,8 @@ var ScrollBar = React6__namespace.forwardRef(
|
|
|
634
910
|
)
|
|
635
911
|
);
|
|
636
912
|
ScrollBar.displayName = "ScrollBar";
|
|
637
|
-
var SelectContext =
|
|
638
|
-
var SelectGroupContext =
|
|
913
|
+
var SelectContext = React10__namespace.createContext(null);
|
|
914
|
+
var SelectGroupContext = React10__namespace.createContext(false);
|
|
639
915
|
var Select = ({
|
|
640
916
|
value,
|
|
641
917
|
defaultValue,
|
|
@@ -646,12 +922,12 @@ var Select = ({
|
|
|
646
922
|
disabled = false,
|
|
647
923
|
children
|
|
648
924
|
}) => {
|
|
649
|
-
const [isOpen, setIsOpen] =
|
|
925
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
650
926
|
value: open,
|
|
651
927
|
defaultValue: defaultOpen,
|
|
652
928
|
onChange: onOpenChange
|
|
653
929
|
});
|
|
654
|
-
const [currentValue, setCurrentValue] =
|
|
930
|
+
const [currentValue, setCurrentValue] = useControllableState({
|
|
655
931
|
value,
|
|
656
932
|
defaultValue,
|
|
657
933
|
onChange: (next) => {
|
|
@@ -660,10 +936,10 @@ var Select = ({
|
|
|
660
936
|
}
|
|
661
937
|
}
|
|
662
938
|
});
|
|
663
|
-
const triggerRef =
|
|
664
|
-
const contentRef =
|
|
665
|
-
const itemsRef =
|
|
666
|
-
return /* @__PURE__ */
|
|
939
|
+
const triggerRef = React10__namespace.useRef(null);
|
|
940
|
+
const contentRef = React10__namespace.useRef(null);
|
|
941
|
+
const itemsRef = React10__namespace.useRef(/* @__PURE__ */ new Map());
|
|
942
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
667
943
|
SelectContext.Provider,
|
|
668
944
|
{
|
|
669
945
|
value: {
|
|
@@ -683,26 +959,26 @@ var Select = ({
|
|
|
683
959
|
children
|
|
684
960
|
);
|
|
685
961
|
};
|
|
686
|
-
var SelectGroup = ({ children }) => /* @__PURE__ */
|
|
962
|
+
var SelectGroup = ({ children }) => /* @__PURE__ */ React10__namespace.createElement(SelectGroupContext.Provider, { value: true }, children);
|
|
687
963
|
var SelectValue = ({
|
|
688
964
|
placeholder,
|
|
689
965
|
children
|
|
690
966
|
}) => {
|
|
691
|
-
const ctx =
|
|
967
|
+
const ctx = React10__namespace.useContext(SelectContext);
|
|
692
968
|
if (!ctx) return null;
|
|
693
|
-
if (children) return /* @__PURE__ */
|
|
969
|
+
if (children) return /* @__PURE__ */ React10__namespace.createElement(React10__namespace.Fragment, null, children);
|
|
694
970
|
if (ctx.value && ctx.itemsRef.current.has(ctx.value)) {
|
|
695
|
-
return /* @__PURE__ */
|
|
971
|
+
return /* @__PURE__ */ React10__namespace.createElement(React10__namespace.Fragment, null, ctx.itemsRef.current.get(ctx.value));
|
|
696
972
|
}
|
|
697
|
-
return /* @__PURE__ */
|
|
973
|
+
return /* @__PURE__ */ React10__namespace.createElement("span", { className: "text-muted-foreground" }, placeholder);
|
|
698
974
|
};
|
|
699
|
-
var SelectTrigger =
|
|
700
|
-
const ctx =
|
|
975
|
+
var SelectTrigger = React10__namespace.forwardRef(({ className, children, onClick, ...props }, ref) => {
|
|
976
|
+
const ctx = React10__namespace.useContext(SelectContext);
|
|
701
977
|
if (!ctx) return null;
|
|
702
|
-
return /* @__PURE__ */
|
|
978
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
703
979
|
"button",
|
|
704
980
|
{
|
|
705
|
-
ref:
|
|
981
|
+
ref: mergeRefs(ctx.triggerRef, ref),
|
|
706
982
|
type: "button",
|
|
707
983
|
className: chunkY7WHUKJF_js.cn(
|
|
708
984
|
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
@@ -714,51 +990,51 @@ var SelectTrigger = React6__namespace.forwardRef(({ className, children, onClick
|
|
|
714
990
|
},
|
|
715
991
|
...props
|
|
716
992
|
},
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ React10__namespace.createElement("span", null, children),
|
|
994
|
+
/* @__PURE__ */ React10__namespace.createElement(lucideReact.ChevronDown, { className: "h-4 w-4 opacity-50" })
|
|
719
995
|
);
|
|
720
996
|
});
|
|
721
997
|
SelectTrigger.displayName = "SelectTrigger";
|
|
722
|
-
var SelectScrollUpButton =
|
|
998
|
+
var SelectScrollUpButton = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
723
999
|
"div",
|
|
724
1000
|
{
|
|
725
1001
|
ref,
|
|
726
1002
|
className: chunkY7WHUKJF_js.cn("flex cursor-default items-center justify-center py-1", className),
|
|
727
1003
|
...props
|
|
728
1004
|
},
|
|
729
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ React10__namespace.createElement(lucideReact.ChevronUp, { className: "h-4 w-4" })
|
|
730
1006
|
));
|
|
731
1007
|
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
732
|
-
var SelectScrollDownButton =
|
|
1008
|
+
var SelectScrollDownButton = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
733
1009
|
"div",
|
|
734
1010
|
{
|
|
735
1011
|
ref,
|
|
736
1012
|
className: chunkY7WHUKJF_js.cn("flex cursor-default items-center justify-center py-1", className),
|
|
737
1013
|
...props
|
|
738
1014
|
},
|
|
739
|
-
/* @__PURE__ */
|
|
1015
|
+
/* @__PURE__ */ React10__namespace.createElement(lucideReact.ChevronDown, { className: "h-4 w-4" })
|
|
740
1016
|
));
|
|
741
1017
|
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
742
|
-
var SelectContent =
|
|
743
|
-
const ctx =
|
|
744
|
-
const [pos, setPos] =
|
|
1018
|
+
var SelectContent = React10__namespace.forwardRef(({ className, children, style, ...props }, ref) => {
|
|
1019
|
+
const ctx = React10__namespace.useContext(SelectContext);
|
|
1020
|
+
const [pos, setPos] = React10__namespace.useState({ top: 0, left: 0, width: 0 });
|
|
745
1021
|
const open = !!ctx?.open;
|
|
746
1022
|
const trigger = ctx?.triggerRef.current ?? null;
|
|
747
|
-
|
|
1023
|
+
React10__namespace.useLayoutEffect(() => {
|
|
748
1024
|
if (!trigger) return;
|
|
749
1025
|
const rect = trigger.getBoundingClientRect();
|
|
750
1026
|
setPos({ top: rect.bottom + 4, left: rect.left, width: rect.width });
|
|
751
1027
|
}, [trigger]);
|
|
752
|
-
|
|
1028
|
+
useOnClickOutside(
|
|
753
1029
|
[ctx?.contentRef ?? { current: null }, ctx?.triggerRef ?? { current: null }],
|
|
754
1030
|
() => ctx?.setOpen(false),
|
|
755
1031
|
open
|
|
756
1032
|
);
|
|
757
1033
|
if (!ctx || !open || !trigger) return null;
|
|
758
|
-
return /* @__PURE__ */
|
|
1034
|
+
return /* @__PURE__ */ React10__namespace.createElement(Portal, null, /* @__PURE__ */ React10__namespace.createElement(
|
|
759
1035
|
"div",
|
|
760
1036
|
{
|
|
761
|
-
ref:
|
|
1037
|
+
ref: mergeRefs(ctx.contentRef, ref),
|
|
762
1038
|
className: chunkY7WHUKJF_js.cn(
|
|
763
1039
|
"relative z-50 max-h-80 overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md",
|
|
764
1040
|
className
|
|
@@ -772,11 +1048,11 @@ var SelectContent = React6__namespace.forwardRef(({ className, children, style,
|
|
|
772
1048
|
},
|
|
773
1049
|
...props
|
|
774
1050
|
},
|
|
775
|
-
/* @__PURE__ */
|
|
1051
|
+
/* @__PURE__ */ React10__namespace.createElement("div", { className: "p-1" }, children)
|
|
776
1052
|
));
|
|
777
1053
|
});
|
|
778
1054
|
SelectContent.displayName = "SelectContent";
|
|
779
|
-
var SelectLabel =
|
|
1055
|
+
var SelectLabel = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
780
1056
|
"div",
|
|
781
1057
|
{
|
|
782
1058
|
ref,
|
|
@@ -785,10 +1061,10 @@ var SelectLabel = React6__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
785
1061
|
}
|
|
786
1062
|
));
|
|
787
1063
|
SelectLabel.displayName = "SelectLabel";
|
|
788
|
-
var SelectItem =
|
|
1064
|
+
var SelectItem = React10__namespace.forwardRef(
|
|
789
1065
|
({ className, children, value, onClick, ...props }, ref) => {
|
|
790
|
-
const ctx =
|
|
791
|
-
|
|
1066
|
+
const ctx = React10__namespace.useContext(SelectContext);
|
|
1067
|
+
React10__namespace.useEffect(() => {
|
|
792
1068
|
if (!ctx) return;
|
|
793
1069
|
ctx.itemsRef.current.set(value, children);
|
|
794
1070
|
return () => {
|
|
@@ -797,7 +1073,7 @@ var SelectItem = React6__namespace.forwardRef(
|
|
|
797
1073
|
}, [ctx, value, children]);
|
|
798
1074
|
if (!ctx) return null;
|
|
799
1075
|
const selected = ctx.value === value;
|
|
800
|
-
return /* @__PURE__ */
|
|
1076
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
801
1077
|
"button",
|
|
802
1078
|
{
|
|
803
1079
|
ref,
|
|
@@ -812,13 +1088,13 @@ var SelectItem = React6__namespace.forwardRef(
|
|
|
812
1088
|
},
|
|
813
1089
|
...props
|
|
814
1090
|
},
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ React10__namespace.createElement("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center" }, selected ? /* @__PURE__ */ React10__namespace.createElement(lucideReact.Check, { className: "h-4 w-4" }) : null),
|
|
1092
|
+
/* @__PURE__ */ React10__namespace.createElement("span", null, children)
|
|
817
1093
|
);
|
|
818
1094
|
}
|
|
819
1095
|
);
|
|
820
1096
|
SelectItem.displayName = "SelectItem";
|
|
821
|
-
var SelectSeparator =
|
|
1097
|
+
var SelectSeparator = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
822
1098
|
"div",
|
|
823
1099
|
{
|
|
824
1100
|
ref,
|
|
@@ -827,8 +1103,8 @@ var SelectSeparator = React6__namespace.forwardRef(({ className, ...props }, ref
|
|
|
827
1103
|
}
|
|
828
1104
|
));
|
|
829
1105
|
SelectSeparator.displayName = "SelectSeparator";
|
|
830
|
-
var Separator =
|
|
831
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
1106
|
+
var Separator = React10__namespace.forwardRef(
|
|
1107
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
832
1108
|
"div",
|
|
833
1109
|
{
|
|
834
1110
|
ref,
|
|
@@ -860,9 +1136,9 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
860
1136
|
}
|
|
861
1137
|
}
|
|
862
1138
|
);
|
|
863
|
-
var SheetContent =
|
|
864
|
-
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */
|
|
865
|
-
|
|
1139
|
+
var SheetContent = React10__namespace.forwardRef(
|
|
1140
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
1141
|
+
DialogContent,
|
|
866
1142
|
{
|
|
867
1143
|
ref,
|
|
868
1144
|
className: chunkY7WHUKJF_js.cn(
|
|
@@ -873,7 +1149,7 @@ var SheetContent = React6__namespace.forwardRef(
|
|
|
873
1149
|
showCloseButton: false,
|
|
874
1150
|
...props
|
|
875
1151
|
},
|
|
876
|
-
/* @__PURE__ */
|
|
1152
|
+
/* @__PURE__ */ React10__namespace.createElement(DialogClose, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100" }, /* @__PURE__ */ React10__namespace.createElement(lucideReact.X, { className: "h-4 w-4" }), /* @__PURE__ */ React10__namespace.createElement("span", { className: "sr-only" }, "Close")),
|
|
877
1153
|
children
|
|
878
1154
|
)
|
|
879
1155
|
);
|
|
@@ -881,7 +1157,7 @@ SheetContent.displayName = "SheetContent";
|
|
|
881
1157
|
var SheetHeader = ({
|
|
882
1158
|
className,
|
|
883
1159
|
...props
|
|
884
|
-
}) => /* @__PURE__ */
|
|
1160
|
+
}) => /* @__PURE__ */ React10__namespace.createElement(
|
|
885
1161
|
"div",
|
|
886
1162
|
{
|
|
887
1163
|
className: chunkY7WHUKJF_js.cn(
|
|
@@ -895,7 +1171,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
895
1171
|
var SheetFooter = ({
|
|
896
1172
|
className,
|
|
897
1173
|
...props
|
|
898
|
-
}) => /* @__PURE__ */
|
|
1174
|
+
}) => /* @__PURE__ */ React10__namespace.createElement(
|
|
899
1175
|
"div",
|
|
900
1176
|
{
|
|
901
1177
|
className: chunkY7WHUKJF_js.cn(
|
|
@@ -906,7 +1182,7 @@ var SheetFooter = ({
|
|
|
906
1182
|
}
|
|
907
1183
|
);
|
|
908
1184
|
SheetFooter.displayName = "SheetFooter";
|
|
909
|
-
var SheetTitle =
|
|
1185
|
+
var SheetTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
910
1186
|
"h2",
|
|
911
1187
|
{
|
|
912
1188
|
ref,
|
|
@@ -915,7 +1191,7 @@ var SheetTitle = React6__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
915
1191
|
}
|
|
916
1192
|
));
|
|
917
1193
|
SheetTitle.displayName = "SheetTitle";
|
|
918
|
-
var SheetDescription =
|
|
1194
|
+
var SheetDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10__namespace.createElement(
|
|
919
1195
|
"p",
|
|
920
1196
|
{
|
|
921
1197
|
ref,
|
|
@@ -924,8 +1200,8 @@ var SheetDescription = React6__namespace.forwardRef(({ className, ...props }, re
|
|
|
924
1200
|
}
|
|
925
1201
|
));
|
|
926
1202
|
SheetDescription.displayName = "SheetDescription";
|
|
927
|
-
var Textarea =
|
|
928
|
-
return /* @__PURE__ */
|
|
1203
|
+
var Textarea = React10__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1204
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
929
1205
|
"textarea",
|
|
930
1206
|
{
|
|
931
1207
|
className: chunkY7WHUKJF_js.cn(
|
|
@@ -938,27 +1214,27 @@ var Textarea = React6__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
|
938
1214
|
);
|
|
939
1215
|
});
|
|
940
1216
|
Textarea.displayName = "Textarea";
|
|
941
|
-
var TooltipConfigContext =
|
|
1217
|
+
var TooltipConfigContext = React10__namespace.createContext({
|
|
942
1218
|
delayDuration: 200
|
|
943
1219
|
});
|
|
944
|
-
var TooltipContext =
|
|
1220
|
+
var TooltipContext = React10__namespace.createContext(null);
|
|
945
1221
|
var TooltipProvider = ({
|
|
946
1222
|
children,
|
|
947
1223
|
delayDuration = 200
|
|
948
1224
|
}) => {
|
|
949
|
-
return /* @__PURE__ */
|
|
1225
|
+
return /* @__PURE__ */ React10__namespace.createElement(TooltipConfigContext.Provider, { value: { delayDuration } }, children);
|
|
950
1226
|
};
|
|
951
1227
|
var Tooltip = ({ children }) => {
|
|
952
|
-
const [open, setOpen] =
|
|
953
|
-
const triggerRef =
|
|
954
|
-
return /* @__PURE__ */
|
|
1228
|
+
const [open, setOpen] = React10__namespace.useState(false);
|
|
1229
|
+
const triggerRef = React10__namespace.useRef(null);
|
|
1230
|
+
return /* @__PURE__ */ React10__namespace.createElement(TooltipContext.Provider, { value: { open, setOpen, triggerRef } }, children);
|
|
955
1231
|
};
|
|
956
|
-
var TooltipTrigger =
|
|
957
|
-
const ctx =
|
|
958
|
-
const cfg =
|
|
959
|
-
const timer =
|
|
1232
|
+
var TooltipTrigger = React10__namespace.forwardRef(({ children, ...props }, ref) => {
|
|
1233
|
+
const ctx = React10__namespace.useContext(TooltipContext);
|
|
1234
|
+
const cfg = React10__namespace.useContext(TooltipConfigContext);
|
|
1235
|
+
const timer = React10__namespace.useRef(null);
|
|
960
1236
|
if (!ctx) return null;
|
|
961
|
-
const setRef =
|
|
1237
|
+
const setRef = mergeRefs(ctx.triggerRef, ref);
|
|
962
1238
|
const openWithDelay = () => {
|
|
963
1239
|
if (timer.current) clearTimeout(timer.current);
|
|
964
1240
|
timer.current = setTimeout(() => ctx.setOpen(true), cfg.delayDuration);
|
|
@@ -974,15 +1250,15 @@ var TooltipTrigger = React6__namespace.forwardRef(({ children, ...props }, ref)
|
|
|
974
1250
|
onBlur: closeNow,
|
|
975
1251
|
...props
|
|
976
1252
|
};
|
|
977
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ React10__namespace.createElement("span", { ref: setRef, ...shared }, children);
|
|
978
1254
|
});
|
|
979
1255
|
TooltipTrigger.displayName = "TooltipTrigger";
|
|
980
|
-
var TooltipContent =
|
|
981
|
-
const ctx =
|
|
982
|
-
const [pos, setPos] =
|
|
1256
|
+
var TooltipContent = React10__namespace.forwardRef(({ className, sideOffset = 4, style, ...props }, ref) => {
|
|
1257
|
+
const ctx = React10__namespace.useContext(TooltipContext);
|
|
1258
|
+
const [pos, setPos] = React10__namespace.useState({ top: 0, left: 0 });
|
|
983
1259
|
const open = !!ctx?.open;
|
|
984
1260
|
const trigger = ctx?.triggerRef.current ?? null;
|
|
985
|
-
|
|
1261
|
+
React10__namespace.useLayoutEffect(() => {
|
|
986
1262
|
if (!trigger) return;
|
|
987
1263
|
const rect = trigger.getBoundingClientRect();
|
|
988
1264
|
setPos({
|
|
@@ -991,7 +1267,7 @@ var TooltipContent = React6__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
991
1267
|
});
|
|
992
1268
|
}, [trigger, sideOffset]);
|
|
993
1269
|
if (!ctx || !open || !trigger) return null;
|
|
994
|
-
return /* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ React10__namespace.createElement(Portal, null, /* @__PURE__ */ React10__namespace.createElement(
|
|
995
1271
|
"div",
|
|
996
1272
|
{
|
|
997
1273
|
ref,
|
|
@@ -1011,10 +1287,10 @@ var TooltipContent = React6__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
1011
1287
|
));
|
|
1012
1288
|
});
|
|
1013
1289
|
TooltipContent.displayName = "TooltipContent";
|
|
1014
|
-
var AvatarContext =
|
|
1015
|
-
var Avatar =
|
|
1016
|
-
const [status, setStatus] =
|
|
1017
|
-
return /* @__PURE__ */
|
|
1290
|
+
var AvatarContext = React10__namespace.createContext(null);
|
|
1291
|
+
var Avatar = React10__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1292
|
+
const [status, setStatus] = React10__namespace.useState("idle");
|
|
1293
|
+
return /* @__PURE__ */ React10__namespace.createElement(AvatarContext.Provider, { value: { status, setStatus } }, /* @__PURE__ */ React10__namespace.createElement(
|
|
1018
1294
|
"span",
|
|
1019
1295
|
{
|
|
1020
1296
|
ref,
|
|
@@ -1027,9 +1303,9 @@ var Avatar = React6__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
|
1027
1303
|
));
|
|
1028
1304
|
});
|
|
1029
1305
|
Avatar.displayName = "Avatar";
|
|
1030
|
-
var AvatarImage =
|
|
1031
|
-
const ctx =
|
|
1032
|
-
return /* @__PURE__ */
|
|
1306
|
+
var AvatarImage = React10__namespace.forwardRef(({ className, onLoad, onError, ...props }, ref) => {
|
|
1307
|
+
const ctx = React10__namespace.useContext(AvatarContext);
|
|
1308
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
1033
1309
|
"img",
|
|
1034
1310
|
{
|
|
1035
1311
|
ref,
|
|
@@ -1051,11 +1327,11 @@ var AvatarImage = React6__namespace.forwardRef(({ className, onLoad, onError, ..
|
|
|
1051
1327
|
);
|
|
1052
1328
|
});
|
|
1053
1329
|
AvatarImage.displayName = "AvatarImage";
|
|
1054
|
-
var AvatarFallback =
|
|
1055
|
-
const ctx =
|
|
1330
|
+
var AvatarFallback = React10__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1331
|
+
const ctx = React10__namespace.useContext(AvatarContext);
|
|
1056
1332
|
const show = ctx?.status !== "loaded";
|
|
1057
1333
|
if (!show) return null;
|
|
1058
|
-
return /* @__PURE__ */
|
|
1334
|
+
return /* @__PURE__ */ React10__namespace.createElement(
|
|
1059
1335
|
"span",
|
|
1060
1336
|
{
|
|
1061
1337
|
ref,
|
|
@@ -1097,13 +1373,13 @@ function Grid({
|
|
|
1097
1373
|
}) {
|
|
1098
1374
|
const gridColsClasses = buildGridColsClasses(columns);
|
|
1099
1375
|
const gapClass = getGapClassName(gap);
|
|
1100
|
-
return /* @__PURE__ */
|
|
1376
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1101
1377
|
"div",
|
|
1102
1378
|
{
|
|
1103
1379
|
className: clsx.clsx("grid", gridColsClasses, gapClass, className),
|
|
1104
1380
|
style
|
|
1105
1381
|
},
|
|
1106
|
-
items.map((item, index) => /* @__PURE__ */
|
|
1382
|
+
items.map((item, index) => /* @__PURE__ */ React10__namespace.default.createElement("div", { key: item.id }, renderItem(item, index)))
|
|
1107
1383
|
);
|
|
1108
1384
|
}
|
|
1109
1385
|
var SearchBox = ({
|
|
@@ -1146,7 +1422,7 @@ var SearchBox = ({
|
|
|
1146
1422
|
};
|
|
1147
1423
|
const styles = getSizeStyles();
|
|
1148
1424
|
const isLarge = size === "large";
|
|
1149
|
-
return /* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "relative group w-full" }, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1150
1426
|
"input",
|
|
1151
1427
|
{
|
|
1152
1428
|
type: "text",
|
|
@@ -1164,7 +1440,7 @@ var SearchBox = ({
|
|
|
1164
1440
|
isLarge ? "font-medium" : "font-normal"
|
|
1165
1441
|
)
|
|
1166
1442
|
}
|
|
1167
|
-
), searchQuery && /* @__PURE__ */
|
|
1443
|
+
), searchQuery && /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1168
1444
|
"button",
|
|
1169
1445
|
{
|
|
1170
1446
|
onClick: () => onSearchChange(""),
|
|
@@ -1174,10 +1450,10 @@ var SearchBox = ({
|
|
|
1174
1450
|
"transform -translate-y-1/2 z-10 group/clear"
|
|
1175
1451
|
)
|
|
1176
1452
|
},
|
|
1177
|
-
/* @__PURE__ */
|
|
1453
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: clsx.clsx(
|
|
1178
1454
|
styles.clearButton,
|
|
1179
1455
|
"flex items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200 transition-all duration-200 group-hover/clear:scale-105"
|
|
1180
|
-
) }, /* @__PURE__ */
|
|
1456
|
+
) }, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1181
1457
|
"svg",
|
|
1182
1458
|
{
|
|
1183
1459
|
className: clsx.clsx(styles.clearIcon, "text-gray-500 group-hover/clear:text-gray-700"),
|
|
@@ -1185,7 +1461,7 @@ var SearchBox = ({
|
|
|
1185
1461
|
stroke: "currentColor",
|
|
1186
1462
|
viewBox: "0 0 24 24"
|
|
1187
1463
|
},
|
|
1188
|
-
/* @__PURE__ */
|
|
1464
|
+
/* @__PURE__ */ React10__namespace.default.createElement(
|
|
1189
1465
|
"path",
|
|
1190
1466
|
{
|
|
1191
1467
|
strokeLinecap: "round",
|
|
@@ -1201,7 +1477,7 @@ var Timeline = ({ items = [] }) => {
|
|
|
1201
1477
|
if (!items || items.length === 0) {
|
|
1202
1478
|
return null;
|
|
1203
1479
|
}
|
|
1204
|
-
return /* @__PURE__ */
|
|
1480
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "relative" }, /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "absolute left-4 top-0 bottom-0 w-0.5 bg-gray-200" }), items.map((item, index) => /* @__PURE__ */ React10__namespace.default.createElement("div", { key: index, className: "relative pl-12 pb-8" }, /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "absolute left-0 w-8 h-8 rounded-full bg-blue-500 border-4 border-white shadow-md flex items-center justify-center" }, /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "w-2 h-2 rounded-full bg-white" })), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "bg-white rounded-lg p-4 shadow-md" }, /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "text-sm text-gray-500 mb-2" }, item.date), /* @__PURE__ */ React10__namespace.default.createElement("h4", { className: "text-lg font-semibold mb-2" }, item.title), /* @__PURE__ */ React10__namespace.default.createElement("p", { className: "text-gray-600" }, item.description)))));
|
|
1205
1481
|
};
|
|
1206
1482
|
var CollisionBalls = ({
|
|
1207
1483
|
collisionBallsConfig: {
|
|
@@ -1210,13 +1486,13 @@ var CollisionBalls = ({
|
|
|
1210
1486
|
height
|
|
1211
1487
|
}
|
|
1212
1488
|
}) => {
|
|
1213
|
-
const canvasRef =
|
|
1214
|
-
const containerRef =
|
|
1215
|
-
const ballsRef =
|
|
1216
|
-
const [isShaking, setIsShaking] =
|
|
1217
|
-
const [draggedBall, setDraggedBall] =
|
|
1218
|
-
const [mousePos, setMousePos] =
|
|
1219
|
-
const animationRef =
|
|
1489
|
+
const canvasRef = React10.useRef(null);
|
|
1490
|
+
const containerRef = React10.useRef(null);
|
|
1491
|
+
const ballsRef = React10.useRef([]);
|
|
1492
|
+
const [isShaking, setIsShaking] = React10.useState(false);
|
|
1493
|
+
const [draggedBall, setDraggedBall] = React10.useState(null);
|
|
1494
|
+
const [mousePos, setMousePos] = React10.useState({ x: 0, y: 0 });
|
|
1495
|
+
const animationRef = React10.useRef(null);
|
|
1220
1496
|
const updateCanvasSize = () => {
|
|
1221
1497
|
const container = containerRef.current;
|
|
1222
1498
|
const canvas = canvasRef.current;
|
|
@@ -1259,7 +1535,7 @@ var CollisionBalls = ({
|
|
|
1259
1535
|
isDragging: false
|
|
1260
1536
|
}));
|
|
1261
1537
|
};
|
|
1262
|
-
|
|
1538
|
+
React10.useEffect(() => {
|
|
1263
1539
|
const handleResize = () => {
|
|
1264
1540
|
console.log("Window resized");
|
|
1265
1541
|
updateCanvasSize();
|
|
@@ -1274,7 +1550,7 @@ var CollisionBalls = ({
|
|
|
1274
1550
|
}
|
|
1275
1551
|
};
|
|
1276
1552
|
}, []);
|
|
1277
|
-
|
|
1553
|
+
React10.useEffect(() => {
|
|
1278
1554
|
const canvas = canvasRef.current;
|
|
1279
1555
|
if (!canvas) {
|
|
1280
1556
|
console.error("Canvas element not found");
|
|
@@ -1464,7 +1740,7 @@ var CollisionBalls = ({
|
|
|
1464
1740
|
y: (event.clientY - rect.top) * scaleY
|
|
1465
1741
|
};
|
|
1466
1742
|
};
|
|
1467
|
-
return /* @__PURE__ */
|
|
1743
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { style: { width: "100%", height: "100%", position: "relative", backgroundColor: "#f9fafb", borderRadius: "0.5rem" } }, /* @__PURE__ */ React10__namespace.default.createElement("div", { ref: containerRef, style: { width: "100%", height: "100%", position: "absolute", top: 0, left: 0 } }, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1468
1744
|
"canvas",
|
|
1469
1745
|
{
|
|
1470
1746
|
ref: canvasRef,
|
|
@@ -1479,14 +1755,14 @@ var CollisionBalls = ({
|
|
|
1479
1755
|
onMouseUp: handleMouseUp,
|
|
1480
1756
|
onMouseLeave: handleMouseUp
|
|
1481
1757
|
}
|
|
1482
|
-
)), /* @__PURE__ */
|
|
1758
|
+
)), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "absolute bottom-4 right-4 flex gap-2" }, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1483
1759
|
"button",
|
|
1484
1760
|
{
|
|
1485
1761
|
onClick: shake,
|
|
1486
1762
|
className: clsx.clsx("px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors", isShaking ? "animate-pulse" : "")
|
|
1487
1763
|
},
|
|
1488
1764
|
"\u6447\u4E00\u6447"
|
|
1489
|
-
), /* @__PURE__ */
|
|
1765
|
+
), /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1490
1766
|
"button",
|
|
1491
1767
|
{
|
|
1492
1768
|
onClick: slowdown,
|
|
@@ -1505,14 +1781,14 @@ function GenericOrderManager({
|
|
|
1505
1781
|
emptyMessage = "\u6682\u65E0\u6570\u636E",
|
|
1506
1782
|
loadingMessage = "\u52A0\u8F7D\u6570\u636E..."
|
|
1507
1783
|
}) {
|
|
1508
|
-
const [items, setItems] =
|
|
1509
|
-
const [originalOrder, setOriginalOrder] =
|
|
1510
|
-
const [loading, setLoading] =
|
|
1511
|
-
const [saving, setSaving] =
|
|
1512
|
-
const [error, setError] =
|
|
1513
|
-
const [hasChanges, setHasChanges] =
|
|
1514
|
-
const [draggedItem, setDraggedItem] =
|
|
1515
|
-
const loadItems =
|
|
1784
|
+
const [items, setItems] = React10.useState([]);
|
|
1785
|
+
const [originalOrder, setOriginalOrder] = React10.useState([]);
|
|
1786
|
+
const [loading, setLoading] = React10.useState(true);
|
|
1787
|
+
const [saving, setSaving] = React10.useState(false);
|
|
1788
|
+
const [error, setError] = React10.useState(null);
|
|
1789
|
+
const [hasChanges, setHasChanges] = React10.useState(false);
|
|
1790
|
+
const [draggedItem, setDraggedItem] = React10.useState(null);
|
|
1791
|
+
const loadItems = React10.useCallback(async () => {
|
|
1516
1792
|
try {
|
|
1517
1793
|
setLoading(true);
|
|
1518
1794
|
setError(null);
|
|
@@ -1527,10 +1803,10 @@ function GenericOrderManager({
|
|
|
1527
1803
|
setLoading(false);
|
|
1528
1804
|
}
|
|
1529
1805
|
}, [operations]);
|
|
1530
|
-
|
|
1806
|
+
React10.useEffect(() => {
|
|
1531
1807
|
loadItems();
|
|
1532
1808
|
}, [loadItems]);
|
|
1533
|
-
|
|
1809
|
+
React10.useEffect(() => {
|
|
1534
1810
|
const hasOrderChanged = items.some(
|
|
1535
1811
|
(item, index) => originalOrder[index]?.id !== item.id
|
|
1536
1812
|
);
|
|
@@ -1635,18 +1911,18 @@ function GenericOrderManager({
|
|
|
1635
1911
|
setItems([...originalOrder]);
|
|
1636
1912
|
};
|
|
1637
1913
|
if (loading) {
|
|
1638
|
-
return /* @__PURE__ */
|
|
1914
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { className: chunkY7WHUKJF_js.cn("flex flex-col items-center justify-center p-12 text-gray-500", className) }, /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "w-6 h-6 border-2 border-gray-200 border-t-blue-500 rounded-full animate-spin mb-2" }), /* @__PURE__ */ React10__namespace.default.createElement("span", null, loadingMessage));
|
|
1639
1915
|
}
|
|
1640
|
-
return /* @__PURE__ */
|
|
1916
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { className: chunkY7WHUKJF_js.cn("bg-white rounded-xl p-6 shadow-md border-2 border-gray-100", className) }, /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex items-center justify-between mb-4 pb-3 border-b border-gray-100 sm:flex-row flex-col sm:items-center items-start gap-4" }, /* @__PURE__ */ React10__namespace.default.createElement("h3", { className: "m-0 text-gray-900 text-lg font-semibold" }, title), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex gap-3 w-full sm:w-auto" }, hasChanges && /* @__PURE__ */ React10__namespace.default.createElement(React10__namespace.default.Fragment, null, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1641
1917
|
"button",
|
|
1642
1918
|
{
|
|
1643
1919
|
onClick: handleResetOrder,
|
|
1644
1920
|
className: "flex items-center gap-2 bg-amber-500 hover:bg-amber-600 text-white px-4 py-2 rounded-lg font-medium transition-colors",
|
|
1645
1921
|
title: "\u91CD\u7F6E\u4E3A\u539F\u59CB\u987A\u5E8F"
|
|
1646
1922
|
},
|
|
1647
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ React10__namespace.default.createElement(lucideReact.RotateCcw, { size: 16 }),
|
|
1648
1924
|
"\u91CD\u7F6E"
|
|
1649
|
-
), /* @__PURE__ */
|
|
1925
|
+
), /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1650
1926
|
"button",
|
|
1651
1927
|
{
|
|
1652
1928
|
onClick: handleSaveOrder,
|
|
@@ -1654,9 +1930,9 @@ function GenericOrderManager({
|
|
|
1654
1930
|
className: "flex items-center gap-2 bg-blue-500 hover:bg-blue-600 disabled:opacity-50 disabled:cursor-not-allowed text-white px-4 py-2 rounded-lg font-medium transition-colors",
|
|
1655
1931
|
title: "\u4FDD\u5B58\u65B0\u987A\u5E8F"
|
|
1656
1932
|
},
|
|
1657
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ React10__namespace.default.createElement(lucideReact.Save, { size: 16 }),
|
|
1658
1934
|
saving ? "\u4FDD\u5B58\u4E2D..." : "\u4FDD\u5B58\u987A\u5E8F"
|
|
1659
|
-
)))), error && /* @__PURE__ */
|
|
1935
|
+
)))), error && /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex items-center gap-2 bg-red-50 text-red-600 p-3 rounded-lg mb-4 border border-red-200" }, /* @__PURE__ */ React10__namespace.default.createElement(lucideReact.AlertCircle, { size: 16 }), /* @__PURE__ */ React10__namespace.default.createElement("span", null, error)), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "bg-slate-50 border border-slate-200 rounded-lg p-4 mb-6" }, /* @__PURE__ */ React10__namespace.default.createElement("p", { className: "m-0 mb-2 color-slate-500 text-sm" }, description), /* @__PURE__ */ React10__namespace.default.createElement("ul", { className: "m-0 pl-6 color-slate-500 text-sm list-disc" }, /* @__PURE__ */ React10__namespace.default.createElement("li", { className: "mb-1" }, "\u4F7F\u7528\u62D6\u62FD\uFF1A\u70B9\u51FB\u5E76\u62D6\u52A8 ", /* @__PURE__ */ React10__namespace.default.createElement(lucideReact.GripVertical, { size: 14, className: "inline-block align-middle text-gray-500" }), " \u56FE\u6807"), /* @__PURE__ */ React10__namespace.default.createElement("li", { className: "mb-1" }, "\u4F7F\u7528\u6309\u94AE\uFF1A\u70B9\u51FB ", /* @__PURE__ */ React10__namespace.default.createElement(lucideReact.ChevronUp, { size: 14, className: "inline-block align-middle text-gray-500" }), " \u6216 ", /* @__PURE__ */ React10__namespace.default.createElement(lucideReact.ChevronDown, { size: 14, className: "inline-block align-middle text-gray-500" }), " \u6309\u94AE"), /* @__PURE__ */ React10__namespace.default.createElement("li", null, '\u5B8C\u6210\u8C03\u6574\u540E\uFF0C\u70B9\u51FB"\u4FDD\u5B58\u987A\u5E8F"\u6309\u94AE\u4FDD\u5B58\u66F4\u6539'))), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex flex-col gap-3" }, items.map((item, index) => /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1660
1936
|
"div",
|
|
1661
1937
|
{
|
|
1662
1938
|
key: item.id,
|
|
@@ -1669,10 +1945,10 @@ function GenericOrderManager({
|
|
|
1669
1945
|
onDragOver: (e) => handleDragOver(e),
|
|
1670
1946
|
onDrop: (e) => handleDrop(e, index)
|
|
1671
1947
|
},
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
/* @__PURE__ */
|
|
1674
|
-
/* @__PURE__ */
|
|
1675
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex items-center cursor-grab active:cursor-grabbing text-gray-400 p-1 rounded hover:text-gray-500 hover:bg-gray-100 transition-colors" }, /* @__PURE__ */ React10__namespace.default.createElement(lucideReact.GripVertical, { size: 20 })),
|
|
1949
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex-1 min-w-0" }, renderItem(item, index, index === 0, index === items.length - 1)),
|
|
1950
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex items-center mx-3" }, /* @__PURE__ */ React10__namespace.default.createElement("span", { className: "flex items-center justify-center w-8 h-8 bg-blue-500 text-white text-sm font-semibold rounded-full sm:w-8 sm:h-8 w-7 h-7 sm:text-sm text-xs" }, "#", index + 1)),
|
|
1951
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex flex-col gap-1 sm:flex-col flex-row" }, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1676
1952
|
"button",
|
|
1677
1953
|
{
|
|
1678
1954
|
onClick: () => handleMoveUp(item.id),
|
|
@@ -1680,8 +1956,8 @@ function GenericOrderManager({
|
|
|
1680
1956
|
className: "flex items-center justify-center w-8 h-8 p-0 border border-gray-300 bg-white text-gray-500 rounded cursor-pointer transition-all hover:bg-gray-100 hover:border-gray-400 hover:text-gray-700 disabled:opacity-40 disabled:cursor-not-allowed disabled:bg-gray-50 sm:w-8 sm:h-8 w-7 h-7",
|
|
1681
1957
|
title: "\u4E0A\u79FB"
|
|
1682
1958
|
},
|
|
1683
|
-
/* @__PURE__ */
|
|
1684
|
-
), /* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ React10__namespace.default.createElement(lucideReact.ChevronUp, { size: 18 })
|
|
1960
|
+
), /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1685
1961
|
"button",
|
|
1686
1962
|
{
|
|
1687
1963
|
onClick: () => handleMoveDown(item.id),
|
|
@@ -1689,9 +1965,9 @@ function GenericOrderManager({
|
|
|
1689
1965
|
className: "flex items-center justify-center w-8 h-8 p-0 border border-gray-300 bg-white text-gray-500 rounded cursor-pointer transition-all hover:bg-gray-100 hover:border-gray-400 hover:text-gray-700 disabled:opacity-40 disabled:cursor-not-allowed disabled:bg-gray-50 sm:w-8 sm:h-8 w-7 h-7",
|
|
1690
1966
|
title: "\u4E0B\u79FB"
|
|
1691
1967
|
},
|
|
1692
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ React10__namespace.default.createElement(lucideReact.ChevronDown, { size: 18 })
|
|
1693
1969
|
))
|
|
1694
|
-
))), items.length === 0 && /* @__PURE__ */
|
|
1970
|
+
))), items.length === 0 && /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "text-center p-12 text-gray-400 italic" }, /* @__PURE__ */ React10__namespace.default.createElement("p", { className: "m-0" }, emptyMessage)));
|
|
1695
1971
|
}
|
|
1696
1972
|
var BackButton = ({ href, className = "" }) => {
|
|
1697
1973
|
const router = navigation.useRouter();
|
|
@@ -1702,7 +1978,7 @@ var BackButton = ({ href, className = "" }) => {
|
|
|
1702
1978
|
router.back();
|
|
1703
1979
|
}
|
|
1704
1980
|
};
|
|
1705
|
-
return /* @__PURE__ */
|
|
1981
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1706
1982
|
"button",
|
|
1707
1983
|
{
|
|
1708
1984
|
onClick: handleClick,
|
|
@@ -1711,7 +1987,7 @@ var BackButton = ({ href, className = "" }) => {
|
|
|
1711
1987
|
className
|
|
1712
1988
|
)
|
|
1713
1989
|
},
|
|
1714
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ React10__namespace.default.createElement(
|
|
1715
1991
|
"svg",
|
|
1716
1992
|
{
|
|
1717
1993
|
className: "w-5 h-5 mr-2",
|
|
@@ -1719,7 +1995,7 @@ var BackButton = ({ href, className = "" }) => {
|
|
|
1719
1995
|
stroke: "currentColor",
|
|
1720
1996
|
viewBox: "0 0 24 24"
|
|
1721
1997
|
},
|
|
1722
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ React10__namespace.default.createElement(
|
|
1723
1999
|
"path",
|
|
1724
2000
|
{
|
|
1725
2001
|
strokeLinecap: "round",
|
|
@@ -1751,9 +2027,9 @@ function FilterButtonGroup({
|
|
|
1751
2027
|
onChange,
|
|
1752
2028
|
className
|
|
1753
2029
|
}) {
|
|
1754
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { className: chunkY7WHUKJF_js.cn("space-y-4", className) }, /* @__PURE__ */ React10__namespace.default.createElement("h3", { className: "text-lg font-semibold text-gray-800" }, label), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex gap-3" }, options.map((option) => {
|
|
1755
2031
|
const isActive = value === option.value;
|
|
1756
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1757
2033
|
"button",
|
|
1758
2034
|
{
|
|
1759
2035
|
key: option.value,
|
|
@@ -1764,7 +2040,7 @@ function FilterButtonGroup({
|
|
|
1764
2040
|
isActive ? "text-white border-transparent shadow-md focus:ring-white" : "bg-white text-gray-700 border-gray-200 shadow-sm hover:bg-gray-50 hover:border-gray-300 hover:shadow focus:ring-blue-300"
|
|
1765
2041
|
)
|
|
1766
2042
|
},
|
|
1767
|
-
/* @__PURE__ */
|
|
2043
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "flex items-center justify-center space-x-2" }, /* @__PURE__ */ React10__namespace.default.createElement("span", { className: "text-lg" }, option.icon), /* @__PURE__ */ React10__namespace.default.createElement("span", null, option.label), option.showCount && option.count !== void 0 && /* @__PURE__ */ React10__namespace.default.createElement("span", { className: chunkY7WHUKJF_js.cn(
|
|
1768
2044
|
"text-xs font-semibold px-2 py-0.5 rounded-full min-w-[1.25rem] text-center",
|
|
1769
2045
|
isActive ? "bg-white/20 text-white" : "bg-gray-100 text-gray-600"
|
|
1770
2046
|
) }, option.count))
|
|
@@ -1773,7 +2049,7 @@ function FilterButtonGroup({
|
|
|
1773
2049
|
}
|
|
1774
2050
|
function SearchResultHint({ searchQuery, resultCount, className }) {
|
|
1775
2051
|
if (!searchQuery) return null;
|
|
1776
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("div", { className: chunkY7WHUKJF_js.cn("mb-6 p-4 bg-blue-50 border border-blue-200 rounded-lg", className) }, /* @__PURE__ */ React10__namespace.default.createElement("p", { className: "text-sm text-blue-700" }, '\u641C\u7D22 "', /* @__PURE__ */ React10__namespace.default.createElement("span", { className: "font-medium" }, searchQuery), '" \u627E\u5230 ', resultCount, " \u4E2A\u7ED3\u679C"));
|
|
1777
2053
|
}
|
|
1778
2054
|
var Modal = ({
|
|
1779
2055
|
isOpen,
|
|
@@ -1788,14 +2064,14 @@ var Modal = ({
|
|
|
1788
2064
|
overlayClassName
|
|
1789
2065
|
}) => {
|
|
1790
2066
|
const contentZIndex = Math.max(zIndex, 1e4);
|
|
1791
|
-
return /* @__PURE__ */
|
|
2067
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(Dialog, { open: isOpen, onOpenChange: (open) => {
|
|
1792
2068
|
if (!open) {
|
|
1793
2069
|
if (maskClosable) {
|
|
1794
2070
|
onClose();
|
|
1795
2071
|
}
|
|
1796
2072
|
}
|
|
1797
|
-
} }, /* @__PURE__ */
|
|
1798
|
-
|
|
2073
|
+
} }, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
2074
|
+
DialogContent,
|
|
1799
2075
|
{
|
|
1800
2076
|
className: chunkY7WHUKJF_js.cn("sm:max-w-[425px]", className),
|
|
1801
2077
|
overlayClassName,
|
|
@@ -1811,11 +2087,11 @@ var Modal = ({
|
|
|
1811
2087
|
...height ? { height: typeof height === "number" ? `${height}px` : height } : void 0
|
|
1812
2088
|
}
|
|
1813
2089
|
},
|
|
1814
|
-
title ? /* @__PURE__ */
|
|
2090
|
+
title ? /* @__PURE__ */ React10__namespace.default.createElement(DialogHeader, null, /* @__PURE__ */ React10__namespace.default.createElement(DialogTitle, null, title)) : (
|
|
1815
2091
|
// 无障碍性:始终需要 DialogTitle,使用 sr-only 对视觉隐藏但对屏幕阅读器可见
|
|
1816
|
-
/* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ React10__namespace.default.createElement(DialogTitle, { className: "sr-only" }, "\u5F39\u7A97")
|
|
1817
2093
|
),
|
|
1818
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "py-4" }, children)
|
|
1819
2095
|
));
|
|
1820
2096
|
};
|
|
1821
2097
|
var ConfirmModal = ({
|
|
@@ -1828,7 +2104,7 @@ var ConfirmModal = ({
|
|
|
1828
2104
|
cancelText = "\u53D6\u6D88",
|
|
1829
2105
|
isLoading = false
|
|
1830
2106
|
}) => {
|
|
1831
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose() }, /* @__PURE__ */ React10__namespace.default.createElement(AlertDialogContent, null, /* @__PURE__ */ React10__namespace.default.createElement(DialogHeader, null, /* @__PURE__ */ React10__namespace.default.createElement(DialogTitle, null, title), /* @__PURE__ */ React10__namespace.default.createElement(DialogDescription, null, message)), /* @__PURE__ */ React10__namespace.default.createElement(DialogFooter, null, /* @__PURE__ */ React10__namespace.default.createElement(AlertDialogCancel, { disabled: isLoading }, cancelText), /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1832
2108
|
AlertDialogAction,
|
|
1833
2109
|
{
|
|
1834
2110
|
onClick: (e) => {
|
|
@@ -1872,16 +2148,16 @@ function ImageMappingPanel({
|
|
|
1872
2148
|
delete next[id];
|
|
1873
2149
|
onChange(next);
|
|
1874
2150
|
};
|
|
1875
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ React10__namespace.default.createElement("details", { className: chunkY7WHUKJF_js.cn("rounded-lg border border-slate-200 bg-white/80 p-3", className) }, /* @__PURE__ */ React10__namespace.default.createElement("summary", { className: "cursor-pointer text-sm font-semibold text-slate-700" }, title), /* @__PURE__ */ React10__namespace.default.createElement("div", { className: "mt-3 grid grid-cols-1 gap-2 sm:grid-cols-2" }, items.map((item) => {
|
|
1876
2152
|
const image = value[item.id];
|
|
1877
|
-
return /* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1878
2154
|
"div",
|
|
1879
2155
|
{
|
|
1880
2156
|
key: item.id,
|
|
1881
2157
|
className: "flex items-center gap-2 rounded-md border border-slate-200 bg-white p-2"
|
|
1882
2158
|
},
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
2159
|
+
/* @__PURE__ */ React10__namespace.default.createElement("div", { className: "w-16 text-xs font-semibold text-slate-600" }, item.label),
|
|
2160
|
+
/* @__PURE__ */ React10__namespace.default.createElement("label", { className: "flex-1 cursor-pointer rounded-md bg-cyan-600 px-2 py-1 text-center text-xs font-medium text-white" }, uploadLabel, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1885
2161
|
"input",
|
|
1886
2162
|
{
|
|
1887
2163
|
type: "file",
|
|
@@ -1893,14 +2169,14 @@ function ImageMappingPanel({
|
|
|
1893
2169
|
}
|
|
1894
2170
|
}
|
|
1895
2171
|
)),
|
|
1896
|
-
image ? /* @__PURE__ */
|
|
2172
|
+
image ? /* @__PURE__ */ React10__namespace.default.createElement(React10__namespace.default.Fragment, null, /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1897
2173
|
"img",
|
|
1898
2174
|
{
|
|
1899
2175
|
src: image,
|
|
1900
2176
|
alt: item.label,
|
|
1901
2177
|
className: "h-8 w-8 rounded-full border border-slate-200 object-cover"
|
|
1902
2178
|
}
|
|
1903
|
-
), /* @__PURE__ */
|
|
2179
|
+
), /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1904
2180
|
"button",
|
|
1905
2181
|
{
|
|
1906
2182
|
type: "button",
|
|
@@ -1919,7 +2195,7 @@ function LocalImageMappingPanel({
|
|
|
1919
2195
|
...panelProps
|
|
1920
2196
|
}) {
|
|
1921
2197
|
const [value, setValue] = chunkOIRZXSYM_js.useLocalStorage(storageKey, defaultValue);
|
|
1922
|
-
return /* @__PURE__ */
|
|
2198
|
+
return /* @__PURE__ */ React10__namespace.default.createElement(
|
|
1923
2199
|
ImageMappingPanel,
|
|
1924
2200
|
{
|
|
1925
2201
|
...panelProps,
|
|
@@ -1940,6 +2216,7 @@ exports.AvatarFallback = AvatarFallback;
|
|
|
1940
2216
|
exports.AvatarImage = AvatarImage;
|
|
1941
2217
|
exports.BackButton = BackButton;
|
|
1942
2218
|
exports.Badge = Badge;
|
|
2219
|
+
exports.Button = Button;
|
|
1943
2220
|
exports.Card = Card;
|
|
1944
2221
|
exports.CardContent = CardContent;
|
|
1945
2222
|
exports.CardDescription = CardDescription;
|
|
@@ -1948,6 +2225,16 @@ exports.CardHeader = CardHeader;
|
|
|
1948
2225
|
exports.CardTitle = CardTitle;
|
|
1949
2226
|
exports.CollisionBalls = CollisionBalls;
|
|
1950
2227
|
exports.ConfirmModal = ConfirmModal;
|
|
2228
|
+
exports.Dialog = Dialog;
|
|
2229
|
+
exports.DialogClose = DialogClose;
|
|
2230
|
+
exports.DialogContent = DialogContent;
|
|
2231
|
+
exports.DialogDescription = DialogDescription;
|
|
2232
|
+
exports.DialogFooter = DialogFooter;
|
|
2233
|
+
exports.DialogHeader = DialogHeader;
|
|
2234
|
+
exports.DialogOverlay = DialogOverlay;
|
|
2235
|
+
exports.DialogPortal = DialogPortal;
|
|
2236
|
+
exports.DialogTitle = DialogTitle;
|
|
2237
|
+
exports.DialogTrigger = DialogTrigger;
|
|
1951
2238
|
exports.DropdownMenu = DropdownMenu;
|
|
1952
2239
|
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
1953
2240
|
exports.DropdownMenuContent = DropdownMenuContent;
|
|
@@ -1967,6 +2254,7 @@ exports.FilterButtonGroup = FilterButtonGroup;
|
|
|
1967
2254
|
exports.GenericOrderManager = GenericOrderManager;
|
|
1968
2255
|
exports.Grid = Grid;
|
|
1969
2256
|
exports.ImageMappingPanel = ImageMappingPanel;
|
|
2257
|
+
exports.Input = Input;
|
|
1970
2258
|
exports.Label = Label;
|
|
1971
2259
|
exports.LocalImageMappingPanel = LocalImageMappingPanel;
|
|
1972
2260
|
exports.Modal = Modal;
|
|
@@ -2006,6 +2294,7 @@ exports.TooltipContent = TooltipContent;
|
|
|
2006
2294
|
exports.TooltipProvider = TooltipProvider;
|
|
2007
2295
|
exports.TooltipTrigger = TooltipTrigger;
|
|
2008
2296
|
exports.badgeVariants = badgeVariants;
|
|
2297
|
+
exports.buttonVariants = buttonVariants;
|
|
2009
2298
|
exports.components_exports = components_exports;
|
|
2010
|
-
//# sourceMappingURL=chunk-
|
|
2011
|
-
//# sourceMappingURL=chunk-
|
|
2299
|
+
//# sourceMappingURL=chunk-7Z3XR2Y4.js.map
|
|
2300
|
+
//# sourceMappingURL=chunk-7Z3XR2Y4.js.map
|