@abumble/design-system 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{components/Button → _chunks}/Button.js +3 -3
- package/dist/_chunks/Button.js.map +1 -0
- package/dist/{components/Empty → _chunks}/Empty.js +24 -24
- package/dist/_chunks/Empty.js.map +1 -0
- package/dist/{components/Input → _chunks}/Input.js +3 -3
- package/dist/_chunks/Input.js.map +1 -0
- package/dist/{components/Separator → _chunks}/Separator.js +8 -8
- package/dist/_chunks/Separator.js.map +1 -0
- package/dist/{components/Sheet → _chunks}/Sheet.js +33 -33
- package/dist/_chunks/Sheet.js.map +1 -0
- package/dist/{components/Skeleton → _chunks}/Skeleton.js +5 -5
- package/dist/_chunks/Skeleton.js.map +1 -0
- package/dist/{components/Tooltip → _chunks}/Tooltip.js +9 -9
- package/dist/_chunks/Tooltip.js.map +1 -0
- package/dist/{hooks → _chunks}/use-mobile.js +1 -1
- package/dist/_chunks/utils.js +21 -0
- package/dist/_chunks/utils.js.map +1 -0
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.d.ts.map +1 -1
- package/dist/components/Banner.js +73 -4
- package/dist/components/Banner.js.map +1 -1
- package/dist/components/Breadcrumb.js +100 -7
- package/dist/components/Breadcrumb.js.map +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Card.js +85 -7
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Carousel.js +175 -6
- package/dist/components/Carousel.js.map +1 -1
- package/dist/components/CodeDisplay.js +19 -2
- package/dist/components/CodeDisplay.js.map +1 -1
- package/dist/components/Collapsible.js +32 -4
- package/dist/components/Collapsible.js.map +1 -1
- package/dist/components/ContextMenu.js +221 -15
- package/dist/components/ContextMenu.js.map +1 -1
- package/dist/components/Empty.js +6 -6
- package/dist/components/Input.js +1 -1
- package/dist/components/List.js +61 -4
- package/dist/components/List.js.map +1 -1
- package/dist/components/NotFound.js +14 -2
- package/dist/components/NotFound.js.map +1 -1
- package/dist/components/Popover.js +43 -5
- package/dist/components/Popover.js.map +1 -1
- package/dist/components/Separator.js +2 -2
- package/dist/components/Sheet.js +9 -9
- package/dist/components/Sidebar.js +592 -25
- package/dist/components/Sidebar.js.map +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/UnderConstruction.js +29 -2
- package/dist/components/UnderConstruction.js.map +1 -1
- package/dist/constants/constants.d.ts.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks.js +5 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils.js +8 -0
- package/dist/utils.js.map +1 -0
- package/package.json +13 -17
- package/dist/assets/crane.svg.js +0 -5
- package/dist/assets/crane.svg.js.map +0 -1
- package/dist/components/Banner/Banner.js +0 -76
- package/dist/components/Banner/Banner.js.map +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -104
- package/dist/components/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Card/Card.js +0 -89
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Carousel/Carousel.js +0 -178
- package/dist/components/Carousel/Carousel.js.map +0 -1
- package/dist/components/CodeDisplay/CodeDisplay.js +0 -22
- package/dist/components/CodeDisplay/CodeDisplay.js.map +0 -1
- package/dist/components/Collapsible/Collapsible.js +0 -35
- package/dist/components/Collapsible/Collapsible.js.map +0 -1
- package/dist/components/ContextMenu/ContextMenu.js +0 -225
- package/dist/components/ContextMenu/ContextMenu.js.map +0 -1
- package/dist/components/Empty/Empty.js.map +0 -1
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/List/List.js +0 -64
- package/dist/components/List/List.js.map +0 -1
- package/dist/components/NotFound/NotFound.js +0 -17
- package/dist/components/NotFound/NotFound.js.map +0 -1
- package/dist/components/Popover/Popover.js +0 -46
- package/dist/components/Popover/Popover.js.map +0 -1
- package/dist/components/Separator/Separator.js.map +0 -1
- package/dist/components/Sheet/Sheet.js.map +0 -1
- package/dist/components/Sidebar/Sidebar.js +0 -595
- package/dist/components/Sidebar/Sidebar.js.map +0 -1
- package/dist/components/Skeleton/Skeleton.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/UnderConstruction/UnderConstruction.js +0 -33
- package/dist/components/UnderConstruction/UnderConstruction.js.map +0 -1
- package/dist/lib/constants.d.ts.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -9
- package/dist/lib/utils.js.map +0 -1
- /package/dist/{hooks → _chunks}/use-mobile.js.map +0 -0
- /package/dist/{lib → constants}/constants.d.ts +0 -0
- /package/dist/{lib/constants.js → constants.js} +0 -0
- /package/dist/{lib → types}/types.d.ts +0 -0
- /package/dist/{lib → utils}/utils.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { Slot as s } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as a } from "class-variance-authority";
|
|
5
|
-
import {
|
|
5
|
+
import { c as d } from "./utils.js";
|
|
6
6
|
const c = a(
|
|
7
7
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
8
8
|
{
|
|
@@ -47,7 +47,7 @@ function f({
|
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
|
-
f as
|
|
51
|
-
c as
|
|
50
|
+
f as B,
|
|
51
|
+
c as b
|
|
52
52
|
};
|
|
53
53
|
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/components/Button/Button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils\"\n\nconst buttonVariants = cva(\n\t\"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n\t\t\t\toutline:\n\t\t\t\t\t\"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n\t\t\t\tghost:\n\t\t\t\t\t\"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n\t\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n\t\t\t\tsm: \"h-8 rounded gap-1.5 px-3 has-[>svg]:px-2.5\",\n\t\t\t\tlg: \"h-10 rounded px-6 has-[>svg]:px-4\",\n\t\t\t\ticon: \"size-9\",\n\t\t\t\t\"icon-sm\": \"size-8\",\n\t\t\t\t\"icon-lg\": \"size-10\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"outline\",\n\t\t\tsize: \"default\",\n\t\t},\n\t}\n)\n\nfunction Button({\n\tclassName,\n\tvariant,\n\tsize,\n\tasChild = false,\n\t...props\n}: React.ComponentProps<\"button\"> &\n\tVariantProps<typeof buttonVariants> & {\n\t\tasChild?: boolean\n\t}) {\n\tconst Comp = asChild ? Slot : \"button\"\n\n\treturn (\n\t\t<Comp\n\t\t\tdata-slot=\"button\"\n\t\t\tclassName={cn(buttonVariants({ variant, size, className }))}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport { Button, buttonVariants }\n"],"names":["buttonVariants","cva","Button","className","variant","size","asChild","props","jsx","Slot","cn"],"mappings":";;;;;AAMA,MAAMA,IAAiBC;AAAA,EACtB;AAAA,EACA;AAAA,IACC,UAAU;AAAA,MACT,SAAS;AAAA,QACR,SAAS;AAAA,QACT,aACC;AAAA,QACD,SACC;AAAA,QACD,WACC;AAAA,QACD,OACC;AAAA,QACD,MAAM;AAAA,MAAA;AAAA,MAEP,MAAM;AAAA,QACL,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,WAAW;AAAA,QACX,WAAW;AAAA,MAAA;AAAA,IACZ;AAAA,IAED,iBAAiB;AAAA,MAChB,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACP;AAEF;AAEA,SAASC,EAAO;AAAA,EACf,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,GAAGC;AACJ,GAGI;AAGH,SACC,gBAAAC;AAAA,IAHYF,IAAUG,IAAO;AAAA,IAG5B;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAGV,EAAe,EAAE,SAAAI,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,MACzD,GAAGI;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cva as
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cva as s } from "class-variance-authority";
|
|
3
|
+
import { c as n } from "./utils.js";
|
|
4
|
+
function c({ className: e, ...t }) {
|
|
5
|
+
return /* @__PURE__ */ a(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
8
|
"data-slot": "empty",
|
|
9
|
-
className:
|
|
9
|
+
className: n(
|
|
10
10
|
"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",
|
|
11
11
|
e
|
|
12
12
|
),
|
|
@@ -14,12 +14,12 @@ function d({ className: e, ...t }) {
|
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
function d({ className: e, ...t }) {
|
|
18
|
+
return /* @__PURE__ */ a(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
21
|
"data-slot": "empty-header",
|
|
22
|
-
className:
|
|
22
|
+
className: n(
|
|
23
23
|
"flex max-w-sm flex-col items-center gap-2 text-center",
|
|
24
24
|
e
|
|
25
25
|
),
|
|
@@ -27,7 +27,7 @@ function c({ className: e, ...t }) {
|
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const i = s(
|
|
31
31
|
"flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
32
32
|
{
|
|
33
33
|
variants: {
|
|
@@ -46,32 +46,32 @@ function f({
|
|
|
46
46
|
variant: t = "default",
|
|
47
47
|
...r
|
|
48
48
|
}) {
|
|
49
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ a(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "empty-icon",
|
|
53
53
|
"data-variant": t,
|
|
54
|
-
className:
|
|
54
|
+
className: n(i({ variant: t, className: e })),
|
|
55
55
|
...r
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
function u({ className: e, ...t }) {
|
|
60
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ a(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
"data-slot": "empty-title",
|
|
64
|
-
className:
|
|
64
|
+
className: n("text-lg font-medium tracking-tight", e),
|
|
65
65
|
...t
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
function p({ className: e, ...t }) {
|
|
70
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ a(
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
73
|
"data-slot": "empty-description",
|
|
74
|
-
className:
|
|
74
|
+
className: n(
|
|
75
75
|
"text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
|
|
76
76
|
e
|
|
77
77
|
),
|
|
@@ -80,11 +80,11 @@ function p({ className: e, ...t }) {
|
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
function x({ className: e, ...t }) {
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ a(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "empty-content",
|
|
87
|
-
className:
|
|
87
|
+
className: n(
|
|
88
88
|
"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
|
|
89
89
|
e
|
|
90
90
|
),
|
|
@@ -93,11 +93,11 @@ function x({ className: e, ...t }) {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
export {
|
|
96
|
-
|
|
97
|
-
x as
|
|
98
|
-
p as
|
|
99
|
-
|
|
100
|
-
f as
|
|
101
|
-
u as
|
|
96
|
+
c as E,
|
|
97
|
+
x as a,
|
|
98
|
+
p as b,
|
|
99
|
+
d as c,
|
|
100
|
+
f as d,
|
|
101
|
+
u as e
|
|
102
102
|
};
|
|
103
103
|
//# sourceMappingURL=Empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Empty.js","sources":["../../src/components/Empty/Empty.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils\"\n\nfunction Empty({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"empty\"\n\t\t\tclassName={cn(\n\t\t\t\t\"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"empty-header\"\n\t\t\tclassName={cn(\n\t\t\t\t\"flex max-w-sm flex-col items-center gap-2 text-center\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nconst emptyMediaVariants = cva(\n\t\"flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"bg-transparent\",\n\t\t\t\ticon: \"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t}\n)\n\nfunction EmptyMedia({\n\tclassName,\n\tvariant = \"default\",\n\t...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof emptyMediaVariants>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"empty-icon\"\n\t\t\tdata-variant={variant}\n\t\t\tclassName={cn(emptyMediaVariants({ variant, className }))}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"empty-title\"\n\t\t\tclassName={cn(\"text-lg font-medium tracking-tight\", className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"empty-description\"\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction EmptyContent({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"empty-content\"\n\t\t\tclassName={cn(\n\t\t\t\t\"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport {\n\tEmpty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle\n}\n\n"],"names":["Empty","className","props","jsx","cn","EmptyHeader","emptyMediaVariants","cva","EmptyMedia","variant","EmptyTitle","EmptyDescription","Em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IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASU,EAAa,EAAE,WAAAX,GAAW,GAAGC,KAAsC;AAC3E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { c as n } from "./utils.js";
|
|
4
|
+
function s({ className: e, type: i, ...r }) {
|
|
5
5
|
return /* @__PURE__ */ t(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
@@ -18,6 +18,6 @@ function l({ className: e, type: i, ...r }) {
|
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
s as I
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../src/components/Input/Input.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n\treturn (\n\t\t<input\n\t\t\ttype={type}\n\t\t\tdata-slot=\"input\"\n\t\t\tclassName={cn(\n\t\t\t\t\"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n\t\t\t\t\"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n\t\t\t\t\"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport { Input }\n"],"names":["Input","className","type","props","jsx","cn"],"mappings":";;;AAIA,SAASA,EAAM,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,KAAwC;AAC5E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,MAAAF;AAAA,MACA,aAAU;AAAA,MACV,WAAWG;AAAA,QACV;AAAA,QACA;AAAA,QACA;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import * as n from "@radix-ui/react-separator";
|
|
4
|
-
import {
|
|
4
|
+
import { c as e } from "./utils.js";
|
|
5
5
|
function s({
|
|
6
6
|
className: t,
|
|
7
|
-
orientation:
|
|
8
|
-
decorative:
|
|
9
|
-
...
|
|
7
|
+
orientation: a = "horizontal",
|
|
8
|
+
decorative: o = !0,
|
|
9
|
+
...r
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ i(
|
|
12
12
|
n.Root,
|
|
13
13
|
{
|
|
14
14
|
"data-slot": "separator",
|
|
15
|
-
decorative:
|
|
16
|
-
orientation:
|
|
15
|
+
decorative: o,
|
|
16
|
+
orientation: a,
|
|
17
17
|
className: e(
|
|
18
18
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
19
19
|
t
|
|
20
20
|
),
|
|
21
|
-
...
|
|
21
|
+
...r
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
|
-
s as
|
|
26
|
+
s as S
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=Separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.js","sources":["../../src/components/Separator/Separator.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@/utils\"\n\nfunction Separator({\n\tclassName,\n\torientation = \"horizontal\",\n\tdecorative = true,\n\t...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n\treturn (\n\t\t<SeparatorPrimitive.Root\n\t\t\tdata-slot=\"separator\"\n\t\t\tdecorative={decorative}\n\t\t\torientation={orientation}\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport { Separator }\n"],"names":["Separator","className","orientation","decorative","props","jsx","SeparatorPrimitive","cn"],"mappings":";;;;AAKA,SAASA,EAAU;AAAA,EAClB,WAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AAAA,EACb,GAAGC;AACJ,GAAyD;AACxD,SACC,gBAAAC;AAAA,IAACC,EAAmB;AAAA,IAAnB;AAAA,MACA,aAAU;AAAA,MACV,YAAAH;AAAA,MACA,aAAAD;AAAA,MACA,WAAWK;AAAA,QACV;AAAA,QACAN;AAAA,MAAA;AAAA,MAEA,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as o from "@radix-ui/react-dialog";
|
|
4
4
|
import { XIcon as l } from "lucide-react";
|
|
5
|
-
import {
|
|
5
|
+
import { c as s } from "./utils.js";
|
|
6
6
|
function p({ ...t }) {
|
|
7
|
-
return /* @__PURE__ */ e(
|
|
7
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "sheet", ...t });
|
|
8
8
|
}
|
|
9
9
|
function g({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ e(
|
|
12
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function b({
|
|
15
15
|
...t
|
|
16
16
|
}) {
|
|
17
|
-
return /* @__PURE__ */ e(
|
|
17
|
+
return /* @__PURE__ */ e(o.Close, { "data-slot": "sheet-close", ...t });
|
|
18
18
|
}
|
|
19
19
|
function d({
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
|
-
return /* @__PURE__ */ e(
|
|
22
|
+
return /* @__PURE__ */ e(o.Portal, { "data-slot": "sheet-portal", ...t });
|
|
23
23
|
}
|
|
24
24
|
function c({
|
|
25
25
|
className: t,
|
|
26
|
-
...
|
|
26
|
+
...a
|
|
27
27
|
}) {
|
|
28
28
|
return /* @__PURE__ */ e(
|
|
29
|
-
|
|
29
|
+
o.Overlay,
|
|
30
30
|
{
|
|
31
31
|
"data-slot": "sheet-overlay",
|
|
32
32
|
className: s(
|
|
33
33
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
34
34
|
t
|
|
35
35
|
),
|
|
36
|
-
...
|
|
36
|
+
...a
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function x({
|
|
41
41
|
className: t,
|
|
42
|
-
children:
|
|
42
|
+
children: a,
|
|
43
43
|
side: n = "right",
|
|
44
44
|
...i
|
|
45
45
|
}) {
|
|
46
46
|
return /* @__PURE__ */ r(d, { children: [
|
|
47
47
|
/* @__PURE__ */ e(c, {}),
|
|
48
48
|
/* @__PURE__ */ r(
|
|
49
|
-
|
|
49
|
+
o.Content,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "sheet-content",
|
|
52
52
|
className: s(
|
|
@@ -59,8 +59,8 @@ function b({
|
|
|
59
59
|
),
|
|
60
60
|
...i,
|
|
61
61
|
children: [
|
|
62
|
-
|
|
63
|
-
/* @__PURE__ */ r(
|
|
62
|
+
a,
|
|
63
|
+
/* @__PURE__ */ r(o.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
64
64
|
/* @__PURE__ */ e(l, { className: "size-4" }),
|
|
65
65
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
66
66
|
] })
|
|
@@ -69,60 +69,60 @@ function b({
|
|
|
69
69
|
)
|
|
70
70
|
] });
|
|
71
71
|
}
|
|
72
|
-
function S({ className: t, ...
|
|
72
|
+
function S({ className: t, ...a }) {
|
|
73
73
|
return /* @__PURE__ */ e(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
76
|
"data-slot": "sheet-header",
|
|
77
77
|
className: s("flex flex-col gap-1.5 p-4", t),
|
|
78
|
-
...
|
|
78
|
+
...a
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
|
-
function y({ className: t, ...
|
|
82
|
+
function y({ className: t, ...a }) {
|
|
83
83
|
return /* @__PURE__ */ e(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
86
|
"data-slot": "sheet-footer",
|
|
87
87
|
className: s("mt-auto flex flex-col gap-2 p-4", t),
|
|
88
|
-
...
|
|
88
|
+
...a
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
function N({
|
|
93
93
|
className: t,
|
|
94
|
-
...
|
|
94
|
+
...a
|
|
95
95
|
}) {
|
|
96
96
|
return /* @__PURE__ */ e(
|
|
97
|
-
|
|
97
|
+
o.Title,
|
|
98
98
|
{
|
|
99
99
|
"data-slot": "sheet-title",
|
|
100
100
|
className: s("text-foreground font-semibold", t),
|
|
101
|
-
...
|
|
101
|
+
...a
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
function v({
|
|
106
106
|
className: t,
|
|
107
|
-
...
|
|
107
|
+
...a
|
|
108
108
|
}) {
|
|
109
109
|
return /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
o.Description,
|
|
111
111
|
{
|
|
112
112
|
"data-slot": "sheet-description",
|
|
113
113
|
className: s("text-muted-foreground text-sm", t),
|
|
114
|
-
...
|
|
114
|
+
...a
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
export {
|
|
119
|
-
p as
|
|
120
|
-
|
|
121
|
-
b
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
N as
|
|
126
|
-
|
|
119
|
+
p as S,
|
|
120
|
+
g as a,
|
|
121
|
+
b,
|
|
122
|
+
x as c,
|
|
123
|
+
S as d,
|
|
124
|
+
y as e,
|
|
125
|
+
N as f,
|
|
126
|
+
v as g
|
|
127
127
|
};
|
|
128
128
|
//# sourceMappingURL=Sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.js","sources":["../../src/components/Sheet/Sheet.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/utils\"\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n\treturn <SheetPrimitive.Root data-slot=\"sheet\" {...props} />\n}\n\nfunction SheetTrigger({\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n\treturn <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />\n}\n\nfunction SheetClose({\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n\treturn <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />\n}\n\nfunction SheetPortal({\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n\treturn <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />\n}\n\nfunction SheetOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n\treturn (\n\t\t<SheetPrimitive.Overlay\n\t\t\tdata-slot=\"sheet-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction SheetContent({\n\tclassName,\n\tchildren,\n\tside = \"right\",\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n\tside?: \"top\" | \"right\" | \"bottom\" | \"left\"\n}) {\n\treturn (\n\t\t<SheetPortal>\n\t\t\t<SheetOverlay />\n\t\t\t<SheetPrimitive.Content\n\t\t\t\tdata-slot=\"sheet-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n\t\t\t\t\tside === \"right\" &&\n\t\t\t\t\t\"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm\",\n\t\t\t\t\tside === \"left\" &&\n\t\t\t\t\t\"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm\",\n\t\t\t\t\tside === \"top\" &&\n\t\t\t\t\t\"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b\",\n\t\t\t\t\tside === \"bottom\" &&\n\t\t\t\t\t\"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t\",\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<SheetPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none\">\n\t\t\t\t\t<XIcon className=\"size-4\" />\n\t\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t\t</SheetPrimitive.Close>\n\t\t\t</SheetPrimitive.Content>\n\t\t</SheetPortal>\n\t)\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sheet-header\"\n\t\t\tclassName={cn(\"flex flex-col gap-1.5 p-4\", className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sheet-footer\"\n\t\t\tclassName={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction SheetTitle({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n\treturn (\n\t\t<SheetPrimitive.Title\n\t\t\tdata-slot=\"sheet-title\"\n\t\t\tclassName={cn(\"text-foreground font-semibold\", className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction SheetDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n\treturn (\n\t\t<SheetPrimitive.Description\n\t\t\tdata-slot=\"sheet-description\"\n\t\t\tclassName={cn(\"text-muted-foreground text-sm\", className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport {\n\tSheet,\n\tSheetTrigger,\n\tSheetClose,\n\tSheetContent,\n\tSheetHeader,\n\tSheetFooter,\n\tSheetTitle,\n\tSheetDescription,\n}\n"],"names":["Sheet","props","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","jsx","cn","SheetContent","children","side","jsxs","XIcon","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"mappings":";;;;;AAQA,SAASA,EAAM,EAAE,GAAGC,KAA2D;AAC9E,2BAAQC,EAAe,MAAf,EAAoB,aAAU,SAAS,GAAGD,GAAO;AAC1D;AAEA,SAASE,EAAa;AAAA,EACrB,GAAGF;AACJ,GAAwD;AACvD,2BAAQC,EAAe,SAAf,EAAuB,aAAU,iBAAiB,GAAGD,GAAO;AACrE;AAEA,SAASG,EAAW;AAAA,EACnB,GAAGH;AACJ,GAAsD;AACrD,2BAAQC,EAAe,OAAf,EAAqB,aAAU,eAAe,GAAGD,GAAO;AACjE;AAEA,SAASI,EAAY;AAAA,EACpB,GAAGJ;AACJ,GAAuD;AACtD,2BAAQC,EAAe,QAAf,EAAsB,aAAU,gBAAgB,GAAGD,GAAO;AACnE;AAEA,SAASK,EAAa;AAAA,EACrB,WAAAC;AAAA,EACA,GAAGN;AACJ,GAAwD;AACvD,SACC,gBAAAO;AAAA,IAACN,EAAe;AAAA,IAAf;AAAA,MACA,aAAU;AAAA,MACV,WAAWO;AAAA,QACV;AAAA,QACAF;AAAA,MAAA;AAAA,MAEA,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASS,EAAa;AAAA,EACrB,WAAAH;AAAA,EACA,UAAAI;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGX;AACJ,GAEG;AACF,2BACEI,GAAA,EACA,UAAA;AAAA,IAAA,gBAAAG,EAACF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N;AACJ,GAA4D;AAC3D,SACC,gBAAAO;AAAA,IAACN,EAAe;AAAA,IAAf;AAAA,MACA,aAAU;AAAA,MACV,WAAWO,EAAG,iCAAiCF,CAAS;AAAA,MACvD,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as o } from "./utils.js";
|
|
3
3
|
import { cva as r } from "class-variance-authority";
|
|
4
|
-
const
|
|
4
|
+
const s = r(
|
|
5
5
|
"bg-stone-300 rounded",
|
|
6
6
|
{
|
|
7
7
|
variants: {
|
|
@@ -15,17 +15,17 @@ const i = r(
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
|
-
function d({ className:
|
|
18
|
+
function d({ className: a, variant: t, ...n }) {
|
|
19
19
|
return /* @__PURE__ */ e(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
"data-slot": "skeleton",
|
|
23
|
-
className: o(
|
|
23
|
+
className: o(s({ variant: t, className: a })),
|
|
24
24
|
...n
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
export {
|
|
29
|
-
d as
|
|
29
|
+
d as S
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sources":["../../src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["import { cn } from \"@/utils\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\n\nconst variants = cva(\n\t\"bg-stone-300 rounded\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"animate-pulse\",\n\t\t\t\tnone: \"\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\"\n\t\t},\n\t}\n)\n\nfunction Skeleton({ className, variant, ...props }: React.ComponentProps<\"div\"> & VariantProps<typeof variants>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"skeleton\"\n\t\t\tclassName={cn(variants({ variant, className }))}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport { Skeleton };\n"],"names":["variants","cva","Skeleton","className","variant","props","jsx","cn"],"mappings":";;;AAIA,MAAMA,IAAWC;AAAA,EAChB;AAAA,EACA;AAAA,IACC,UAAU;AAAA,MACT,SAAS;AAAA,QACR,SAAS;AAAA,QACT,MAAM;AAAA,MAAA;AAAA,IACP;AAAA,IAED,iBAAiB;AAAA,MAChB,SAAS;AAAA,IAAA;AAAA,EACV;AAEF;AAEA,SAASC,EAAS,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,KAAsE;AAChH,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAGP,EAAS,EAAE,SAAAI,GAAS,WAAAD,EAAA,CAAW,CAAC;AAAA,MAC7C,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import * as o from "@radix-ui/react-tooltip";
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
4
|
+
import { c as d } from "./utils.js";
|
|
5
|
+
function s({
|
|
6
6
|
delayDuration: t = 0,
|
|
7
7
|
...r
|
|
8
8
|
}) {
|
|
@@ -15,12 +15,12 @@ function l({
|
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function f({
|
|
19
19
|
...t
|
|
20
20
|
}) {
|
|
21
|
-
return /* @__PURE__ */ i(
|
|
21
|
+
return /* @__PURE__ */ i(s, { children: /* @__PURE__ */ i(o.Root, { "data-slot": "tooltip", ...t }) });
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function m({
|
|
24
24
|
...t
|
|
25
25
|
}) {
|
|
26
26
|
return /* @__PURE__ */ i(o.Trigger, { "data-slot": "tooltip-trigger", ...t });
|
|
@@ -49,9 +49,9 @@ function u({
|
|
|
49
49
|
) });
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
f as T,
|
|
53
|
+
m as a,
|
|
54
|
+
u as b,
|
|
55
|
+
s as c
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\n\nimport { cn } from \"@/utils\"\n\nfunction TooltipProvider({\n\tdelayDuration = 0,\n\t...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n\treturn (\n\t\t<TooltipPrimitive.Provider\n\t\t\tdata-slot=\"tooltip-provider\"\n\t\t\tdelayDuration={delayDuration}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction Tooltip({\n\t...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n\treturn (\n\t\t<TooltipProvider>\n\t\t\t<TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n\t\t</TooltipProvider>\n\t)\n}\n\nfunction TooltipTrigger({\n\t...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n\treturn <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\nfunction TooltipContent({\n\tclassName,\n\tsideOffset = 0,\n\tchildren,\n\t...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content>) {\n\treturn (\n\t\t<TooltipPrimitive.Portal>\n\t\t\t<TooltipPrimitive.Content\n\t\t\t\tdata-slot=\"tooltip-content\"\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded px-3 py-1.5 text-xs text-balance\",\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<TooltipPrimitive.Arrow className=\"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]\" />\n\t\t\t</TooltipPrimitive.Content>\n\t\t</TooltipPrimitive.Portal>\n\t)\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"names":["TooltipProvider","delayDuration","props","jsx","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","children","jsxs","cn"],"mappings":";;;;AAKA,SAASA,EAAgB;AAAA,EACxB,eAAAC,IAAgB;AAAA,EAChB,GAAGC;AACJ,GAA2D;AAC1D,SACC,gBAAAC;AAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACA,aAAU;AAAA,MACV,eAAAH;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASG,EAAQ;AAAA,EAChB,GAAGH;AACJ,GAAuD;AACtD,SACC,gBAAAC,EAACH,GAAA,EACA,UAAA,gBAAAG,EAACC,EAAiB,MAAjB,EAAsB,aAAU,WAAW,GAAGF,EAAA,CAAO,EAAA,CACvD;AAEF;AAEA,SAASI,EAAe;AAAA,EACvB,GAAGJ;AACJ,GAA0D;AACzD,2BAAQE,EAAiB,SAAjB,EAAyB,aAAU,mBAAmB,GAAGF,GAAO;AACzE;AAEA,SAASK,EAAe;AAAA,EACvB,WAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC;AAAA,EACA,GAAGR;AACJ,GAA0D;AACzD,SACC,gBAAAC,EAACC,EAAiB,QAAjB,EACA,UAAA,gBAAAO;AAAA,IAACP,EAAiB;AAAA,IAAjB;AAAA,MACA,aAAU;AAAA,MACV,YAAAK;AAAA,MACA,WAAWG;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGN;AAAA,MAEH,UAAA;AAAA,QAAAQ;AAAA,QACD,gBAAAP,EAACC,EAAiB,OAAjB,EAAuB,WAAU,qGAAA,CAAqG;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAEzI;AAEF;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { clsx as t } from "clsx";
|
|
2
|
+
import { twMerge as n } from "tailwind-merge";
|
|
3
|
+
function i(...r) {
|
|
4
|
+
return n(t(r));
|
|
5
|
+
}
|
|
6
|
+
function a(r) {
|
|
7
|
+
return Math.floor(Math.random() * (r + 1));
|
|
8
|
+
}
|
|
9
|
+
function u(r) {
|
|
10
|
+
return r ? ["true", "1", "yes"].includes(r.trim().toLowerCase()) : !1;
|
|
11
|
+
}
|
|
12
|
+
function f(r) {
|
|
13
|
+
return r ? r.toString() : "false";
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
f as b,
|
|
17
|
+
i as c,
|
|
18
|
+
a as g,
|
|
19
|
+
u as s
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/utils/utils.ts"],"sourcesContent":["import type { ClassValue } from 'clsx';\nimport { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: Array<ClassValue>) {\n\treturn twMerge(clsx(inputs))\n}\n\n/**\n * Returns a random integer between 0 and max, inclusive.\n * @param {number} max - The maximum possible number (inclusive).\n */\nexport function getRandomIntUpTo(max: number) {\n\t// We use (max + 1) to make 'max' inclusive after Math.floor()\n\treturn Math.floor(Math.random() * (max + 1));\n}\n\nexport function stringToBoolean(str: string | null): boolean {\n\tif (!str) return false;\n\treturn [\"true\", \"1\", \"yes\"].includes(str.trim().toLowerCase());\n}\n\nexport function booleanToString(bool: boolean | null): string {\n\tif (!bool) return false.toString();\n\treturn bool.toString();\n}\n\n"],"names":["cn","inputs","twMerge","clsx","getRandomIntUpTo","max","stringToBoolean","str","booleanToString","bool"],"mappings":";;AAIO,SAASA,KAAMC,GAA2B;AAChD,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC5B;AAMO,SAASG,EAAiBC,GAAa;AAE7C,SAAO,KAAK,MAAM,KAAK,OAAA,KAAYA,IAAM,EAAE;AAC5C;AAEO,SAASC,EAAgBC,GAA6B;AAC5D,SAAKA,IACE,CAAC,QAAQ,KAAK,KAAK,EAAE,SAASA,EAAI,OAAO,aAAa,IAD5C;AAElB;AAEO,SAASC,EAAgBC,GAA8B;AAC7D,SAAKA,IACEA,EAAK,SAAA,IADM;AAEnB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/Banner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/Banner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAMrD,QAAA,MAAM,UAAU;;;;;CAKN,CAAC;AAEX,KAAK,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAiBhE,UAAU,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACxD,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;CAC7C;AAED,iBAAS,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAuCtG;AAED,UAAU,kBAAmB,SAAQ,WAAW;IAC/C,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAQ/D;AA4BD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,76 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { colorWeights as s } from "../constants.js";
|
|
3
|
+
import { c as b } from "../_chunks/utils.js";
|
|
4
|
+
import { CircleX as v, TriangleAlert as w, Lightbulb as B, Info as C, X as $ } from "lucide-react";
|
|
5
|
+
import { B as I } from "../_chunks/Button.js";
|
|
6
|
+
import { S as a } from "../_chunks/Skeleton.js";
|
|
7
|
+
const n = {
|
|
8
|
+
Info: "info",
|
|
9
|
+
Note: "note",
|
|
10
|
+
Warning: "warning",
|
|
11
|
+
Alert: "alert"
|
|
12
|
+
}, i = {
|
|
13
|
+
[n.Info]: C,
|
|
14
|
+
[n.Note]: B,
|
|
15
|
+
[n.Warning]: w,
|
|
16
|
+
[n.Alert]: v
|
|
17
|
+
}, m = {
|
|
18
|
+
[n.Info]: "blue",
|
|
19
|
+
[n.Note]: "green",
|
|
20
|
+
[n.Warning]: "yellow",
|
|
21
|
+
[n.Alert]: "red"
|
|
22
|
+
};
|
|
23
|
+
function y({ type: r, title: t, loading: d, hideIcon: f, onClose: c, children: h, className: u, ...p }) {
|
|
24
|
+
const l = m[r] || m.note, N = `bg-${l}-${s[0]} text-${l}-${s[1]} border-${l}-${s[2]}`, g = i[r] || i.note;
|
|
25
|
+
return /* @__PURE__ */ e(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: b("p-3 border-l-4 rounded", N, u),
|
|
29
|
+
role: "alert",
|
|
30
|
+
...p,
|
|
31
|
+
children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
|
|
32
|
+
d ? /* @__PURE__ */ e(A, {}) : /* @__PURE__ */ o(x, { children: [
|
|
33
|
+
!f && /* @__PURE__ */ e("div", { className: "flex-shrink-0 mr-3", children: /* @__PURE__ */ e(g, {}) }),
|
|
34
|
+
/* @__PURE__ */ o("section", { children: [
|
|
35
|
+
t && /* @__PURE__ */ e("p", { className: "font-bold", children: t }),
|
|
36
|
+
h
|
|
37
|
+
] })
|
|
38
|
+
] }),
|
|
39
|
+
c && /* @__PURE__ */ e(W, { onClick: c })
|
|
40
|
+
] })
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function z({ message: r, ...t }) {
|
|
45
|
+
return /* @__PURE__ */ e(y, { ...t, children: /* @__PURE__ */ e("p", { className: "text-sm", children: r }) });
|
|
46
|
+
}
|
|
47
|
+
function A() {
|
|
48
|
+
return /* @__PURE__ */ o("div", { className: "flex items-center space-x-4", children: [
|
|
49
|
+
/* @__PURE__ */ e(a, { className: "h-12 w-12 rounded-full" }),
|
|
50
|
+
/* @__PURE__ */ o("div", { className: "space-y-2", children: [
|
|
51
|
+
/* @__PURE__ */ e(a, { className: "h-4 w-[250px]" }),
|
|
52
|
+
/* @__PURE__ */ e(a, { className: "h-4 w-[200px]" })
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
55
|
+
}
|
|
56
|
+
function W(r) {
|
|
57
|
+
return /* @__PURE__ */ o(
|
|
58
|
+
I,
|
|
59
|
+
{
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "icon",
|
|
62
|
+
className: "h-8 w-8 rounded-full ml-auto mb-auto relative -top-1 -right-1",
|
|
63
|
+
...r,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ e($, {}),
|
|
66
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close banner" })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
2
71
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
72
|
+
y as Banner,
|
|
73
|
+
z as MessageBanner,
|
|
74
|
+
n as bannerType
|
|
6
75
|
};
|
|
7
76
|
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"Banner.js","sources":["../../src/components/Banner/Banner.tsx"],"sourcesContent":["import { colorWeights } from \"@/constants/constants\";\nimport { cn } from \"@/utils\";\nimport type { onClickCallback } from \"@/types/types\";\nimport { CircleX, Info, Lightbulb, TriangleAlert, X } from \"lucide-react\";\nimport { Button } from \"../Button\";\nimport { Skeleton } from \"../Skeleton\";\n\n\nconst bannerType = {\n\tInfo: 'info',\n\tNote: 'note',\n\tWarning: 'warning',\n\tAlert: 'alert'\n} as const;\n\ntype TBannerType = (typeof bannerType)[keyof typeof bannerType];\n\nconst icons: Record<TBannerType, React.ComponentType> = {\n\t[bannerType.Info]: Info,\n\t[bannerType.Note]: Lightbulb,\n\t[bannerType.Warning]: TriangleAlert,\n\t[bannerType.Alert]: CircleX\n};\n\nconst styleColor: Record<TBannerType, string> = {\n\t[bannerType.Info]: 'blue',\n\t[bannerType.Note]: 'green',\n\t[bannerType.Warning]: 'yellow',\n\t[bannerType.Alert]: 'red',\n};\n\n\ninterface BannerProps extends React.ComponentProps<\"div\"> {\n\ttype: TBannerType;\n\ttitle?: string;\n\tloading?: boolean;\n\thideIcon?: boolean;\n\tonClose?: onClickCallback<HTMLButtonElement>;\n}\n\nfunction Banner({ type, title, loading, hideIcon, onClose, children, className, ...props }: BannerProps) {\n\n\tconst color = styleColor[type] || styleColor.note;\n\tconst containerClass = `bg-${color}-${colorWeights[0]} text-${color}-${colorWeights[1]} border-${color}-${colorWeights[2]}`;\n\tconst Icon = icons[type] || icons.note;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(`p-3 border-l-4 rounded`, containerClass, className)}\n\t\t\trole=\"alert\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<div className={`flex items-start`}>\n\t\t\t\t{loading ?\n\t\t\t\t\t<BannerLoadingContent />\n\t\t\t\t\t:\n\t\t\t\t\t<>\n\t\t\t\t\t\t{!hideIcon &&\n\t\t\t\t\t\t\t<div className={`flex-shrink-0 mr-3`}>\n\t\t\t\t\t\t\t\t<Icon />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<section>\n\t\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t\t<p className={`font-bold`}>\n\t\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</section>\n\t\t\t\t\t</>\n\t\t\t\t}\n\n\t\t\t\t{onClose &&\n\t\t\t\t\t<CloseButton onClick={onClose} />\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n\ninterface MessageBannerProps extends BannerProps {\n\tmessage: string | React.ReactNode;\n}\n\nfunction MessageBanner({ message, ...props }: MessageBannerProps) {\n\treturn (\n\t\t<Banner {...props}>\n\t\t\t<p className=\"text-sm\">\n\t\t\t\t{message}\n\t\t\t</p>\n\t\t</Banner>\n\t)\n}\n\nfunction BannerLoadingContent() {\n\treturn (\n\t\t<div className=\"flex items-center space-x-4\">\n\t\t\t<Skeleton className=\"h-12 w-12 rounded-full\" />\n\t\t\t<div className=\"space-y-2\">\n\t\t\t\t<Skeleton className=\"h-4 w-[250px]\" />\n\t\t\t\t<Skeleton className=\"h-4 w-[200px]\" />\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n\nfunction CloseButton(props: React.ComponentProps<\"button\">) {\n\treturn (\n\t\t<Button\n\t\t\tvariant=\"ghost\"\n\t\t\tsize=\"icon\"\n\t\t\tclassName=\"h-8 w-8 rounded-full ml-auto mb-auto relative -top-1 -right-1\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<X />\n\t\t\t<span className=\"sr-only\">Close banner</span>\n\t\t</Button>\n\t);\n}\n\nexport { Banner, MessageBanner, bannerType, type TBannerType };\n\n"],"names":["bannerType","icons","Info","Lightbulb","TriangleAlert","CircleX","styleColor","Banner","type","title","loading","hideIcon","onClose","children","className","props","color","containerClass","colorWeights","Icon","jsx","cn","jsxs","BannerLoadingContent","Fragment","CloseButton","MessageBanner","message","Skeleton","Button","X"],"mappings":";;;;;;AAQA,MAAMA,IAAa;AAAA,EAClB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACR,GAIMC,IAAkD;AAAA,EACvD,CAACD,EAAW,IAAI,GAAGE;AAAA,EACnB,CAACF,EAAW,IAAI,GAAGG;AAAA,EACnB,CAACH,EAAW,OAAO,GAAGI;AAAA,EACtB,CAACJ,EAAW,KAAK,GAAGK;AACrB,GAEMC,IAA0C;AAAA,EAC/C,CAACN,EAAW,IAAI,GAAG;AAAA,EACnB,CAACA,EAAW,IAAI,GAAG;AAAA,EACnB,CAACA,EAAW,OAAO,GAAG;AAAA,EACtB,CAACA,EAAW,KAAK,GAAG;AACrB;AAWA,SAASO,EAAO,EAAE,MAAAC,GAAM,OAAAC,GAAO,SAAAC,GAAS,UAAAC,GAAU,SAAAC,GAAS,UAAAC,GAAU,WAAAC,GAAW,GAAGC,KAAsB;AAExG,QAAMC,IAAQV,EAAWE,CAAI,KAAKF,EAAW,MACvCW,IAAiB,MAAMD,CAAK,IAAIE,EAAa,CAAC,CAAC,SAASF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