@customafk/lunas-ui 0.0.2-o → 0.0.2-p
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/Atoms/Button/index.d.ts +1 -1
- package/dist/Atoms/Command/index.d.ts +7 -7
- package/dist/Atoms/Command/index.js +16 -31
- package/dist/Atoms/Dialog/index.js +16 -31
- package/dist/Authentication/SignUp/index.d.ts +4 -4
- package/dist/Ecommerce/Categories/index.js +17 -32
- package/dist/Molecules/Search/index.js +18 -33
- package/dist/Organisms/Header/index.js +18 -33
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "secondary" | "outline" | "destructive" | "destructive-secondary" | "destructive-outline" | "sort-outline" | "normal" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "base" | "small" | "default" | "large" | null | undefined;
|
|
9
9
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
10
10
|
|
|
11
11
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -8,7 +8,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
}, "key" |
|
|
11
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
12
12
|
label?: string;
|
|
13
13
|
shouldFilter?: boolean;
|
|
14
14
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -26,7 +26,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
26
26
|
ref?: React.Ref<HTMLInputElement>;
|
|
27
27
|
} & {
|
|
28
28
|
asChild?: boolean;
|
|
29
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
29
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
30
30
|
value?: string;
|
|
31
31
|
onValueChange?: (search: string) => void;
|
|
32
32
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -36,7 +36,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
36
36
|
ref?: React.Ref<HTMLDivElement>;
|
|
37
37
|
} & {
|
|
38
38
|
asChild?: boolean;
|
|
39
|
-
}, "key" |
|
|
39
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
40
40
|
label?: string;
|
|
41
41
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -45,14 +45,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
45
45
|
ref?: React.Ref<HTMLDivElement>;
|
|
46
46
|
} & {
|
|
47
47
|
asChild?: boolean;
|
|
48
|
-
}, "key" |
|
|
48
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
49
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
50
50
|
children?: React.ReactNode;
|
|
51
51
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
52
52
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
53
|
} & {
|
|
54
54
|
asChild?: boolean;
|
|
55
|
-
}, "key" |
|
|
55
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
56
56
|
heading?: React.ReactNode;
|
|
57
57
|
value?: string;
|
|
58
58
|
forceMount?: boolean;
|
|
@@ -61,7 +61,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
61
61
|
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
} & {
|
|
63
63
|
asChild?: boolean;
|
|
64
|
-
}, "key" |
|
|
64
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
65
65
|
alwaysRender?: boolean;
|
|
66
66
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
67
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -70,7 +70,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
70
70
|
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
72
|
asChild?: boolean;
|
|
73
|
-
}, "key" |
|
|
73
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
74
74
|
disabled?: boolean;
|
|
75
75
|
onSelect?: (value: string) => void;
|
|
76
76
|
value?: string;
|
|
@@ -252,7 +252,6 @@ var cn = (...inputs) => {
|
|
|
252
252
|
|
|
253
253
|
// packages/Atoms/Dialog/index.tsx
|
|
254
254
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
255
|
-
import { motion } from "framer-motion";
|
|
256
255
|
import { X } from "lucide-react";
|
|
257
256
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
258
257
|
var Dialog = DialogPrimitive.Root;
|
|
@@ -275,7 +274,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, reference) => /*
|
|
|
275
274
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
276
275
|
var DialogContent = React.forwardRef(({ className, children, ...props }, reference) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
277
276
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
278
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ jsxs(
|
|
279
278
|
DialogPrimitive.Content,
|
|
280
279
|
{
|
|
281
280
|
ref: reference,
|
|
@@ -283,43 +282,29 @@ var DialogContent = React.forwardRef(({ className, children, ...props }, referen
|
|
|
283
282
|
"fixed",
|
|
284
283
|
"left-[50%] top-[50%] z-50",
|
|
285
284
|
"grid w-full max-w-lg",
|
|
285
|
+
"rounded bg-ui-surface-50",
|
|
286
286
|
"translate-x-[-50%] translate-y-[-50%]",
|
|
287
287
|
"transition-all duration-300",
|
|
288
|
+
"data-[state=open]:animate-in",
|
|
289
|
+
"data-[state=open]:fade-in-0",
|
|
290
|
+
"data-[state=open]:zoom-in-95",
|
|
291
|
+
"data-[state=open]:slide-in-from-left-1/2",
|
|
292
|
+
"data-[state=open]:slide-in-from-top-[48%]",
|
|
288
293
|
"data-[state=closed]:animate-out",
|
|
289
294
|
"data-[state=closed]:fade-out-0",
|
|
290
295
|
"data-[state=closed]:zoom-out-[0.8]",
|
|
291
296
|
"data-[state=closed]:slide-out-to-left-1/2",
|
|
292
|
-
"data-[state=closed]:slide-out-to-top-[80%]"
|
|
297
|
+
"data-[state=closed]:slide-out-to-top-[80%]",
|
|
298
|
+
className
|
|
293
299
|
),
|
|
294
300
|
...props,
|
|
295
|
-
children:
|
|
296
|
-
|
|
297
|
-
{
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
animate: {
|
|
304
|
-
opacity: 1,
|
|
305
|
-
scale: 1,
|
|
306
|
-
y: 0
|
|
307
|
-
},
|
|
308
|
-
transition: {
|
|
309
|
-
type: "spring",
|
|
310
|
-
damping: 20,
|
|
311
|
-
stiffness: 300
|
|
312
|
-
},
|
|
313
|
-
className: cn("w-full gap-4 bg-ui-surface-50 p-6 shadow-lg sm:rounded-lg", className),
|
|
314
|
-
children: [
|
|
315
|
-
children,
|
|
316
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
317
|
-
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
318
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
319
|
-
] })
|
|
320
|
-
]
|
|
321
|
-
}
|
|
322
|
-
)
|
|
301
|
+
children: [
|
|
302
|
+
children,
|
|
303
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
304
|
+
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
305
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
306
|
+
] })
|
|
307
|
+
]
|
|
323
308
|
}
|
|
324
309
|
)
|
|
325
310
|
] }));
|
|
@@ -249,7 +249,6 @@ var cn = (...inputs) => {
|
|
|
249
249
|
|
|
250
250
|
// packages/Atoms/Dialog/index.tsx
|
|
251
251
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
252
|
-
import { motion } from "framer-motion";
|
|
253
252
|
import { X } from "lucide-react";
|
|
254
253
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
255
254
|
var Dialog = DialogPrimitive.Root;
|
|
@@ -274,7 +273,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, reference) => /*
|
|
|
274
273
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
275
274
|
var DialogContent = React.forwardRef(({ className, children, ...props }, reference) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
276
275
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
277
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ jsxs(
|
|
278
277
|
DialogPrimitive.Content,
|
|
279
278
|
{
|
|
280
279
|
ref: reference,
|
|
@@ -282,43 +281,29 @@ var DialogContent = React.forwardRef(({ className, children, ...props }, referen
|
|
|
282
281
|
"fixed",
|
|
283
282
|
"left-[50%] top-[50%] z-50",
|
|
284
283
|
"grid w-full max-w-lg",
|
|
284
|
+
"rounded bg-ui-surface-50",
|
|
285
285
|
"translate-x-[-50%] translate-y-[-50%]",
|
|
286
286
|
"transition-all duration-300",
|
|
287
|
+
"data-[state=open]:animate-in",
|
|
288
|
+
"data-[state=open]:fade-in-0",
|
|
289
|
+
"data-[state=open]:zoom-in-95",
|
|
290
|
+
"data-[state=open]:slide-in-from-left-1/2",
|
|
291
|
+
"data-[state=open]:slide-in-from-top-[48%]",
|
|
287
292
|
"data-[state=closed]:animate-out",
|
|
288
293
|
"data-[state=closed]:fade-out-0",
|
|
289
294
|
"data-[state=closed]:zoom-out-[0.8]",
|
|
290
295
|
"data-[state=closed]:slide-out-to-left-1/2",
|
|
291
|
-
"data-[state=closed]:slide-out-to-top-[80%]"
|
|
296
|
+
"data-[state=closed]:slide-out-to-top-[80%]",
|
|
297
|
+
className
|
|
292
298
|
),
|
|
293
299
|
...props,
|
|
294
|
-
children:
|
|
295
|
-
|
|
296
|
-
{
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
animate: {
|
|
303
|
-
opacity: 1,
|
|
304
|
-
scale: 1,
|
|
305
|
-
y: 0
|
|
306
|
-
},
|
|
307
|
-
transition: {
|
|
308
|
-
type: "spring",
|
|
309
|
-
damping: 20,
|
|
310
|
-
stiffness: 300
|
|
311
|
-
},
|
|
312
|
-
className: cn("w-full gap-4 bg-ui-surface-50 p-6 shadow-lg sm:rounded-lg", className),
|
|
313
|
-
children: [
|
|
314
|
-
children,
|
|
315
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
316
|
-
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
317
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
318
|
-
] })
|
|
319
|
-
]
|
|
320
|
-
}
|
|
321
|
-
)
|
|
300
|
+
children: [
|
|
301
|
+
children,
|
|
302
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
303
|
+
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
304
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
305
|
+
] })
|
|
306
|
+
]
|
|
322
307
|
}
|
|
323
308
|
)
|
|
324
309
|
] }));
|
|
@@ -7,23 +7,23 @@ declare const SignUpSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7
7
|
password: z.ZodEffects<z.ZodString, string, string>;
|
|
8
8
|
confirmPassword: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
fullname: string;
|
|
11
10
|
email: string;
|
|
11
|
+
fullname: string;
|
|
12
12
|
password: string;
|
|
13
13
|
confirmPassword: string;
|
|
14
14
|
}, {
|
|
15
|
-
fullname: string;
|
|
16
15
|
email: string;
|
|
16
|
+
fullname: string;
|
|
17
17
|
password: string;
|
|
18
18
|
confirmPassword: string;
|
|
19
19
|
}>, {
|
|
20
|
-
fullname: string;
|
|
21
20
|
email: string;
|
|
21
|
+
fullname: string;
|
|
22
22
|
password: string;
|
|
23
23
|
confirmPassword: string;
|
|
24
24
|
}, {
|
|
25
|
-
fullname: string;
|
|
26
25
|
email: string;
|
|
26
|
+
fullname: string;
|
|
27
27
|
password: string;
|
|
28
28
|
confirmPassword: string;
|
|
29
29
|
}>;
|
|
@@ -660,7 +660,6 @@ import * as React2 from "react";
|
|
|
660
660
|
// packages/Atoms/Dialog/index.tsx
|
|
661
661
|
import * as React from "react";
|
|
662
662
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
663
|
-
import { motion } from "framer-motion";
|
|
664
663
|
import { X } from "lucide-react";
|
|
665
664
|
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
666
665
|
var Dialog = DialogPrimitive.Root;
|
|
@@ -683,7 +682,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, reference) => /*
|
|
|
683
682
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
684
683
|
var DialogContent = React.forwardRef(({ className, children, ...props }, reference) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
|
|
685
684
|
/* @__PURE__ */ jsx11(DialogOverlay, {}),
|
|
686
|
-
/* @__PURE__ */
|
|
685
|
+
/* @__PURE__ */ jsxs6(
|
|
687
686
|
DialogPrimitive.Content,
|
|
688
687
|
{
|
|
689
688
|
ref: reference,
|
|
@@ -691,43 +690,29 @@ var DialogContent = React.forwardRef(({ className, children, ...props }, referen
|
|
|
691
690
|
"fixed",
|
|
692
691
|
"left-[50%] top-[50%] z-50",
|
|
693
692
|
"grid w-full max-w-lg",
|
|
693
|
+
"rounded bg-ui-surface-50",
|
|
694
694
|
"translate-x-[-50%] translate-y-[-50%]",
|
|
695
695
|
"transition-all duration-300",
|
|
696
|
+
"data-[state=open]:animate-in",
|
|
697
|
+
"data-[state=open]:fade-in-0",
|
|
698
|
+
"data-[state=open]:zoom-in-95",
|
|
699
|
+
"data-[state=open]:slide-in-from-left-1/2",
|
|
700
|
+
"data-[state=open]:slide-in-from-top-[48%]",
|
|
696
701
|
"data-[state=closed]:animate-out",
|
|
697
702
|
"data-[state=closed]:fade-out-0",
|
|
698
703
|
"data-[state=closed]:zoom-out-[0.8]",
|
|
699
704
|
"data-[state=closed]:slide-out-to-left-1/2",
|
|
700
|
-
"data-[state=closed]:slide-out-to-top-[80%]"
|
|
705
|
+
"data-[state=closed]:slide-out-to-top-[80%]",
|
|
706
|
+
className
|
|
701
707
|
),
|
|
702
708
|
...props,
|
|
703
|
-
children:
|
|
704
|
-
|
|
705
|
-
{
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
},
|
|
711
|
-
animate: {
|
|
712
|
-
opacity: 1,
|
|
713
|
-
scale: 1,
|
|
714
|
-
y: 0
|
|
715
|
-
},
|
|
716
|
-
transition: {
|
|
717
|
-
type: "spring",
|
|
718
|
-
damping: 20,
|
|
719
|
-
stiffness: 300
|
|
720
|
-
},
|
|
721
|
-
className: cn("w-full gap-4 bg-ui-surface-50 p-6 shadow-lg sm:rounded-lg", className),
|
|
722
|
-
children: [
|
|
723
|
-
children,
|
|
724
|
-
/* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
725
|
-
/* @__PURE__ */ jsx11(X, { className: "size-4" }),
|
|
726
|
-
/* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
|
|
727
|
-
] })
|
|
728
|
-
]
|
|
729
|
-
}
|
|
730
|
-
)
|
|
709
|
+
children: [
|
|
710
|
+
children,
|
|
711
|
+
/* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
712
|
+
/* @__PURE__ */ jsx11(X, { className: "size-4" }),
|
|
713
|
+
/* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
|
|
714
|
+
] })
|
|
715
|
+
]
|
|
731
716
|
}
|
|
732
717
|
)
|
|
733
718
|
] }));
|
|
@@ -1423,7 +1408,7 @@ var CategoriesPage = ({
|
|
|
1423
1408
|
]
|
|
1424
1409
|
}
|
|
1425
1410
|
),
|
|
1426
|
-
|
|
1411
|
+
children
|
|
1427
1412
|
]
|
|
1428
1413
|
}
|
|
1429
1414
|
);
|
|
@@ -253,7 +253,6 @@ var cn = (...inputs) => {
|
|
|
253
253
|
|
|
254
254
|
// packages/Atoms/Dialog/index.tsx
|
|
255
255
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
256
|
-
import { motion } from "framer-motion";
|
|
257
256
|
import { X } from "lucide-react";
|
|
258
257
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
259
258
|
var Dialog = DialogPrimitive.Root;
|
|
@@ -276,7 +275,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, reference) => /*
|
|
|
276
275
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
277
276
|
var DialogContent = React.forwardRef(({ className, children, ...props }, reference) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
278
277
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
279
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ jsxs(
|
|
280
279
|
DialogPrimitive.Content,
|
|
281
280
|
{
|
|
282
281
|
ref: reference,
|
|
@@ -284,43 +283,29 @@ var DialogContent = React.forwardRef(({ className, children, ...props }, referen
|
|
|
284
283
|
"fixed",
|
|
285
284
|
"left-[50%] top-[50%] z-50",
|
|
286
285
|
"grid w-full max-w-lg",
|
|
286
|
+
"rounded bg-ui-surface-50",
|
|
287
287
|
"translate-x-[-50%] translate-y-[-50%]",
|
|
288
288
|
"transition-all duration-300",
|
|
289
|
+
"data-[state=open]:animate-in",
|
|
290
|
+
"data-[state=open]:fade-in-0",
|
|
291
|
+
"data-[state=open]:zoom-in-95",
|
|
292
|
+
"data-[state=open]:slide-in-from-left-1/2",
|
|
293
|
+
"data-[state=open]:slide-in-from-top-[48%]",
|
|
289
294
|
"data-[state=closed]:animate-out",
|
|
290
295
|
"data-[state=closed]:fade-out-0",
|
|
291
296
|
"data-[state=closed]:zoom-out-[0.8]",
|
|
292
297
|
"data-[state=closed]:slide-out-to-left-1/2",
|
|
293
|
-
"data-[state=closed]:slide-out-to-top-[80%]"
|
|
298
|
+
"data-[state=closed]:slide-out-to-top-[80%]",
|
|
299
|
+
className
|
|
294
300
|
),
|
|
295
301
|
...props,
|
|
296
|
-
children:
|
|
297
|
-
|
|
298
|
-
{
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
},
|
|
304
|
-
animate: {
|
|
305
|
-
opacity: 1,
|
|
306
|
-
scale: 1,
|
|
307
|
-
y: 0
|
|
308
|
-
},
|
|
309
|
-
transition: {
|
|
310
|
-
type: "spring",
|
|
311
|
-
damping: 20,
|
|
312
|
-
stiffness: 300
|
|
313
|
-
},
|
|
314
|
-
className: cn("w-full gap-4 bg-ui-surface-50 p-6 shadow-lg sm:rounded-lg", className),
|
|
315
|
-
children: [
|
|
316
|
-
children,
|
|
317
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
318
|
-
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
319
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
320
|
-
] })
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
)
|
|
302
|
+
children: [
|
|
303
|
+
children,
|
|
304
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
305
|
+
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
306
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
307
|
+
] })
|
|
308
|
+
]
|
|
324
309
|
}
|
|
325
310
|
)
|
|
326
311
|
] }));
|
|
@@ -906,7 +891,7 @@ var Flex_default = Flex;
|
|
|
906
891
|
|
|
907
892
|
// packages/Molecules/Search/index.tsx
|
|
908
893
|
import { CommandLoading } from "cmdk";
|
|
909
|
-
import { motion
|
|
894
|
+
import { motion } from "framer-motion";
|
|
910
895
|
import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
911
896
|
var Search2 = ({ search = "", isLoading = false, items = [], onSearch }) => {
|
|
912
897
|
const [open, setOpen] = useState(false);
|
|
@@ -959,7 +944,7 @@ var Search2 = ({ search = "", isLoading = false, items = [], onSearch }) => {
|
|
|
959
944
|
/* @__PURE__ */ jsxs3(CommandList, { children: [
|
|
960
945
|
!isLoading && /* @__PURE__ */ jsx4(CommandEmpty, { className: "flex h-52 items-center justify-center px-4", children: /* @__PURE__ */ jsx4("span", { className: "font-medium text-ui-text-800", children: "Kh\xF4ng c\xF3 k\u1EBFt qu\u1EA3" }) }),
|
|
961
946
|
isLoading ? /* @__PURE__ */ jsx4(CommandLoading, { className: "flex h-52 items-center justify-center", children: /* @__PURE__ */ jsx4(
|
|
962
|
-
|
|
947
|
+
motion.div,
|
|
963
948
|
{
|
|
964
949
|
animate: {
|
|
965
950
|
scale: [1, 2, 2, 1, 1],
|
|
@@ -1418,7 +1418,6 @@ import * as React3 from "react";
|
|
|
1418
1418
|
// packages/Atoms/Dialog/index.tsx
|
|
1419
1419
|
import * as React2 from "react";
|
|
1420
1420
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1421
|
-
import { motion } from "framer-motion";
|
|
1422
1421
|
import { X } from "lucide-react";
|
|
1423
1422
|
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1424
1423
|
var Dialog = DialogPrimitive.Root;
|
|
@@ -1441,7 +1440,7 @@ var DialogOverlay = React2.forwardRef(({ className, ...props }, reference) => /*
|
|
|
1441
1440
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1442
1441
|
var DialogContent = React2.forwardRef(({ className, children, ...props }, reference) => /* @__PURE__ */ jsxs10(DialogPortal, { children: [
|
|
1443
1442
|
/* @__PURE__ */ jsx17(DialogOverlay, {}),
|
|
1444
|
-
/* @__PURE__ */
|
|
1443
|
+
/* @__PURE__ */ jsxs10(
|
|
1445
1444
|
DialogPrimitive.Content,
|
|
1446
1445
|
{
|
|
1447
1446
|
ref: reference,
|
|
@@ -1449,43 +1448,29 @@ var DialogContent = React2.forwardRef(({ className, children, ...props }, refere
|
|
|
1449
1448
|
"fixed",
|
|
1450
1449
|
"left-[50%] top-[50%] z-50",
|
|
1451
1450
|
"grid w-full max-w-lg",
|
|
1451
|
+
"rounded bg-ui-surface-50",
|
|
1452
1452
|
"translate-x-[-50%] translate-y-[-50%]",
|
|
1453
1453
|
"transition-all duration-300",
|
|
1454
|
+
"data-[state=open]:animate-in",
|
|
1455
|
+
"data-[state=open]:fade-in-0",
|
|
1456
|
+
"data-[state=open]:zoom-in-95",
|
|
1457
|
+
"data-[state=open]:slide-in-from-left-1/2",
|
|
1458
|
+
"data-[state=open]:slide-in-from-top-[48%]",
|
|
1454
1459
|
"data-[state=closed]:animate-out",
|
|
1455
1460
|
"data-[state=closed]:fade-out-0",
|
|
1456
1461
|
"data-[state=closed]:zoom-out-[0.8]",
|
|
1457
1462
|
"data-[state=closed]:slide-out-to-left-1/2",
|
|
1458
|
-
"data-[state=closed]:slide-out-to-top-[80%]"
|
|
1463
|
+
"data-[state=closed]:slide-out-to-top-[80%]",
|
|
1464
|
+
className
|
|
1459
1465
|
),
|
|
1460
1466
|
...props,
|
|
1461
|
-
children:
|
|
1462
|
-
|
|
1463
|
-
{
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
animate: {
|
|
1470
|
-
opacity: 1,
|
|
1471
|
-
scale: 1,
|
|
1472
|
-
y: 0
|
|
1473
|
-
},
|
|
1474
|
-
transition: {
|
|
1475
|
-
type: "spring",
|
|
1476
|
-
damping: 20,
|
|
1477
|
-
stiffness: 300
|
|
1478
|
-
},
|
|
1479
|
-
className: cn("w-full gap-4 bg-ui-surface-50 p-6 shadow-lg sm:rounded-lg", className),
|
|
1480
|
-
children: [
|
|
1481
|
-
children,
|
|
1482
|
-
/* @__PURE__ */ jsxs10(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
1483
|
-
/* @__PURE__ */ jsx17(X, { className: "size-4" }),
|
|
1484
|
-
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Close" })
|
|
1485
|
-
] })
|
|
1486
|
-
]
|
|
1487
|
-
}
|
|
1488
|
-
)
|
|
1467
|
+
children: [
|
|
1468
|
+
children,
|
|
1469
|
+
/* @__PURE__ */ jsxs10(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
1470
|
+
/* @__PURE__ */ jsx17(X, { className: "size-4" }),
|
|
1471
|
+
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Close" })
|
|
1472
|
+
] })
|
|
1473
|
+
]
|
|
1489
1474
|
}
|
|
1490
1475
|
)
|
|
1491
1476
|
] }));
|
|
@@ -1645,7 +1630,7 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
1645
1630
|
|
|
1646
1631
|
// packages/Molecules/Search/index.tsx
|
|
1647
1632
|
import { CommandLoading } from "cmdk";
|
|
1648
|
-
import { motion
|
|
1633
|
+
import { motion } from "framer-motion";
|
|
1649
1634
|
import { Fragment, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1650
1635
|
var Search2 = ({ search = "", isLoading = false, items = [], onSearch }) => {
|
|
1651
1636
|
const [open, setOpen] = useState(false);
|
|
@@ -1698,7 +1683,7 @@ var Search2 = ({ search = "", isLoading = false, items = [], onSearch }) => {
|
|
|
1698
1683
|
/* @__PURE__ */ jsxs12(CommandList, { children: [
|
|
1699
1684
|
!isLoading && /* @__PURE__ */ jsx19(CommandEmpty, { className: "flex h-52 items-center justify-center px-4", children: /* @__PURE__ */ jsx19("span", { className: "font-medium text-ui-text-800", children: "Kh\xF4ng c\xF3 k\u1EBFt qu\u1EA3" }) }),
|
|
1700
1685
|
isLoading ? /* @__PURE__ */ jsx19(CommandLoading, { className: "flex h-52 items-center justify-center", children: /* @__PURE__ */ jsx19(
|
|
1701
|
-
|
|
1686
|
+
motion.div,
|
|
1702
1687
|
{
|
|
1703
1688
|
animate: {
|
|
1704
1689
|
scale: [1, 2, 2, 1, 1],
|