@iit/precision-ui 0.7.2 → 0.7.3
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/cards/License.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +2 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/decorators/CarouselWrapper.d.ts +2 -1
- package/dist/decorators/CarouselWrapper.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +51 -49
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +2 -2
- package/dist/index.es24.js +3 -3
- package/dist/index.es25.js +3 -3
- package/dist/index.es26.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +3 -3
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +10 -9
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +3 -3
- package/dist/index.es32.js +3 -3
- package/dist/index.es33.js +3 -3
- package/dist/index.es34.js +3 -3
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +2 -2
- package/dist/index.es39.js +2 -2
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +4 -4
- package/dist/index.es41.js +2 -2
- package/dist/index.es42.js +3 -3
- package/dist/index.es44.js +47 -18
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +10 -9
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +19 -91
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +90 -89
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +82 -25
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +27 -71
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +70 -36
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +42 -10
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +11 -6
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +6 -22
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +21 -19
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +17 -17
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +20 -47
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +4 -27
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +246 -14
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +24 -239
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +16 -4
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/package.json +1 -1
package/dist/index.es48.js
CHANGED
|
@@ -1,36 +1,93 @@
|
|
|
1
|
+
import * as a from "@radix-ui/react-dialog";
|
|
1
2
|
import * as e from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { ScrollArea as i } from "./index.es49.js";
|
|
4
|
+
import { X as d } from "lucide-react";
|
|
5
|
+
import { cn as l } from "./index.es53.js";
|
|
6
|
+
const D = a.Root, v = a.Trigger, c = a.Portal, E = a.Close, n = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
7
|
+
a.Overlay,
|
|
6
8
|
{
|
|
7
|
-
ref:
|
|
8
|
-
className:
|
|
9
|
+
ref: s,
|
|
10
|
+
className: l(
|
|
11
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
9
14
|
...o
|
|
10
|
-
}
|
|
11
|
-
/* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
|
|
12
|
-
/* @__PURE__ */ e.createElement(n, null),
|
|
13
|
-
/* @__PURE__ */ e.createElement(r.Corner, null)
|
|
15
|
+
}
|
|
14
16
|
));
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
17
|
+
n.displayName = a.Overlay.displayName;
|
|
18
|
+
const m = e.forwardRef(({ className: t, children: o, ...s }, r) => /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(
|
|
19
|
+
a.Content,
|
|
18
20
|
{
|
|
19
|
-
ref:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
24
|
-
l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
25
|
-
a
|
|
21
|
+
ref: r,
|
|
22
|
+
className: l(
|
|
23
|
+
"fixed left-[50%] top-[50%] z-50 grid max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg overflow-hidden max-h-[calc(100dvh-0.75rem)] w-[calc(100dvw-0.75rem)] p-0",
|
|
24
|
+
t
|
|
26
25
|
),
|
|
27
|
-
...
|
|
26
|
+
...s
|
|
28
27
|
},
|
|
29
|
-
/* @__PURE__ */ e.createElement(
|
|
28
|
+
/* @__PURE__ */ e.createElement(i, { className: "max-h-[calc(100dvh-1rem)]" }, /* @__PURE__ */ e.createElement("div", { className: "p-6" }, o)),
|
|
29
|
+
/* @__PURE__ */ e.createElement(a.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ e.createElement(d, { className: "h-4 w-4" }), /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Close"))
|
|
30
|
+
)));
|
|
31
|
+
m.displayName = a.Content.displayName;
|
|
32
|
+
const f = ({
|
|
33
|
+
className: t,
|
|
34
|
+
...o
|
|
35
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: l(
|
|
39
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
40
|
+
t
|
|
41
|
+
),
|
|
42
|
+
...o
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
f.displayName = "DialogHeader";
|
|
46
|
+
const p = ({
|
|
47
|
+
className: t,
|
|
48
|
+
...o
|
|
49
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: l(
|
|
53
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
54
|
+
t
|
|
55
|
+
),
|
|
56
|
+
...o
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
p.displayName = "DialogFooter";
|
|
60
|
+
const g = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
61
|
+
a.Title,
|
|
62
|
+
{
|
|
63
|
+
ref: s,
|
|
64
|
+
className: l(
|
|
65
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
66
|
+
t
|
|
67
|
+
),
|
|
68
|
+
...o
|
|
69
|
+
}
|
|
70
|
+
));
|
|
71
|
+
g.displayName = a.Title.displayName;
|
|
72
|
+
const u = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
73
|
+
a.Description,
|
|
74
|
+
{
|
|
75
|
+
ref: s,
|
|
76
|
+
className: l("text-sm text-muted-foreground", t),
|
|
77
|
+
...o
|
|
78
|
+
}
|
|
30
79
|
));
|
|
31
|
-
|
|
80
|
+
u.displayName = a.Description.displayName;
|
|
32
81
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
82
|
+
D as Dialog,
|
|
83
|
+
E as DialogClose,
|
|
84
|
+
m as DialogContent,
|
|
85
|
+
u as DialogDescription,
|
|
86
|
+
p as DialogFooter,
|
|
87
|
+
f as DialogHeader,
|
|
88
|
+
n as DialogOverlay,
|
|
89
|
+
c as DialogPortal,
|
|
90
|
+
g as DialogTitle,
|
|
91
|
+
v as DialogTrigger
|
|
35
92
|
};
|
|
36
93
|
//# sourceMappingURL=index.es48.js.map
|
package/dist/index.es48.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es48.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es48.js","sources":["../src/components/ui/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog'\nimport * as React from 'react'\n\nimport { ScrollArea } from './scroll-area'\nimport { X } from 'lucide-react'\nimport { cn } from '@/lib/utils/cn'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 grid max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg overflow-hidden max-h-[calc(100dvh-0.75rem)] w-[calc(100dvw-0.75rem)] p-0',\n className\n )}\n {...props}\n >\n <ScrollArea className=\"max-h-[calc(100dvh-1rem)]\">\n <div className=\"p-6\">{children}</div>\n </ScrollArea>\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex flex-col space-y-1.5 text-center sm:text-left',\n className\n )}\n {...props}\n />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className\n )}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","React","className","props","ref","cn","DialogContent","children","ScrollArea","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":";;;;;AAOA,MAAMA,IAASC,EAAgB,MAEzBC,IAAgBD,EAAgB,SAEhCE,IAAeF,EAAgB,QAE/BG,IAAcH,EAAgB,OAE9BI,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACL,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAcJ,EAAgB,QAAQ;AAEpD,MAAMU,IAAgBL,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAK,GAAU,GAAGJ,EAAA,GAASC,MACpC,gBAAAH,EAAA,cAACH,GACC,MAAA,gBAAAG,EAAA,cAACD,OAAc,GACf,gBAAAC,EAAA;AAAA,EAACL,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAF,EAAA,cAACO,KAAW,WAAU,4BAAA,mCACnB,OAAI,EAAA,WAAU,MAAO,GAAAD,CAAS,CACjC;AAAA,kCACCX,EAAgB,OAAhB,EAAsB,WAAU,mRAC9B,gBAAAK,EAAA,cAAAQ,GAAA,EAAE,WAAU,UAAA,CAAU,GACtB,gBAAAR,EAAA,cAAA,QAAA,EAAK,WAAU,aAAU,OAAK,CACjC;AACF,CACF,CACD;AACDK,EAAc,cAAcV,EAAgB,QAAQ;AAEpD,MAAMc,IAAe,CAAC;AAAA,EACpB,WAAAR;AAAA,EACA,GAAGC;AACL,MACE,gBAAAF,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWI;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN;AAEFO,EAAa,cAAc;AAE3B,MAAMC,IAAe,CAAC;AAAA,EACpB,WAAAT;AAAA,EACA,GAAGC;AACL,MACE,gBAAAF,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWI;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN;AAEFQ,EAAa,cAAc;AAErB,MAAAC,IAAcX,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACL,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDS,EAAY,cAAchB,EAAgB,MAAM;AAE1C,MAAAiB,IAAoBZ,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACL,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWC,EAAG,iCAAiCH,CAAS;AAAA,IACvD,GAAGC;AAAA,EAAA;AACN,CACD;AACDU,EAAkB,cAAcjB,EAAgB,YAAY;"}
|
package/dist/index.es49.js
CHANGED
|
@@ -1,80 +1,36 @@
|
|
|
1
|
-
import * as a from "@radix-ui/react-accordion";
|
|
2
1
|
import * as e from "react";
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
|
|
2
|
+
import * as r from "@radix-ui/react-scroll-area";
|
|
3
|
+
import { cn as c } from "./index.es53.js";
|
|
4
|
+
const m = e.forwardRef(({ className: a, children: l, ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
5
|
+
r.Root,
|
|
7
6
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
10
|
-
...
|
|
11
|
-
}
|
|
7
|
+
ref: t,
|
|
8
|
+
className: c("relative overflow-hidden", a),
|
|
9
|
+
...o
|
|
10
|
+
},
|
|
11
|
+
/* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
|
|
12
|
+
/* @__PURE__ */ e.createElement(n, null),
|
|
13
|
+
/* @__PURE__ */ e.createElement(r.Corner, null)
|
|
12
14
|
));
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const o = i === "default" ? "h-10 w-10 p-2" : "w-10 h-10 p-[10px]";
|
|
17
|
-
return /* @__PURE__ */ e.createElement(a.Header, { className: "flex" }, /* @__PURE__ */ e.createElement(
|
|
18
|
-
a.Trigger,
|
|
19
|
-
{
|
|
20
|
-
ref: c,
|
|
21
|
-
className: l(
|
|
22
|
-
"flex flex-1 items-center text-left justify-between py1-4 p-4 typo_variant_body transition-all [&[data-state=open]>svg]:rotate-1801 [&[data-state=open]>.icon-wrapper>.plus]:hidden [&[data-state=open]>.icon-wrapper>.minus]:block text-navy duration-200 [&[data-state=open]]:bg-navy-opacity-4 rounded-xl hover:bg-navy-opacity-41 border border-transparent hover:border-navy-opacity-16",
|
|
23
|
-
r
|
|
24
|
-
),
|
|
25
|
-
...s
|
|
26
|
-
},
|
|
27
|
-
t && /* @__PURE__ */ e.createElement("span", { className: "text-wrapper transition-all pr-3 leading-none" }, t),
|
|
28
|
-
n === "math" && /* @__PURE__ */ e.createElement("span", { className: "relative icon-wrapper" }, /* @__PURE__ */ e.createElement(
|
|
29
|
-
d,
|
|
30
|
-
{
|
|
31
|
-
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 visible plus`
|
|
32
|
-
}
|
|
33
|
-
), /* @__PURE__ */ e.createElement(
|
|
34
|
-
p,
|
|
35
|
-
{
|
|
36
|
-
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 hidden minus`
|
|
37
|
-
}
|
|
38
|
-
)),
|
|
39
|
-
n === "arrows" && /* @__PURE__ */ e.createElement("span", { className: "relative icon-wrapper" }, /* @__PURE__ */ e.createElement(
|
|
40
|
-
m,
|
|
41
|
-
{
|
|
42
|
-
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 visible plus`
|
|
43
|
-
}
|
|
44
|
-
), /* @__PURE__ */ e.createElement(
|
|
45
|
-
y,
|
|
46
|
-
{
|
|
47
|
-
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 hidden minus`
|
|
48
|
-
}
|
|
49
|
-
))
|
|
50
|
-
));
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
v.displayName = a.Trigger.displayName;
|
|
54
|
-
const g = e.forwardRef(({ className: r, children: t, withoutContent: n, ...i }, s) => /* @__PURE__ */ e.createElement(
|
|
55
|
-
a.Content,
|
|
15
|
+
m.displayName = r.Root.displayName;
|
|
16
|
+
const n = e.forwardRef(({ className: a, orientation: l = "vertical", ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
17
|
+
r.ScrollAreaScrollbar,
|
|
56
18
|
{
|
|
57
|
-
ref:
|
|
58
|
-
|
|
59
|
-
|
|
19
|
+
ref: t,
|
|
20
|
+
orientation: l,
|
|
21
|
+
className: c(
|
|
22
|
+
"flex touch-none select-none transition-colors",
|
|
23
|
+
l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
24
|
+
l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
25
|
+
a
|
|
26
|
+
),
|
|
27
|
+
...o
|
|
60
28
|
},
|
|
61
|
-
/* @__PURE__ */ e.createElement(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
className: l(
|
|
65
|
-
"px-4 py-6 pt-7 typo_variant_body",
|
|
66
|
-
r,
|
|
67
|
-
!n && "content"
|
|
68
|
-
)
|
|
69
|
-
},
|
|
70
|
-
t
|
|
71
|
-
)
|
|
29
|
+
/* @__PURE__ */ e.createElement(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
72
30
|
));
|
|
73
|
-
|
|
31
|
+
n.displayName = r.ScrollAreaScrollbar.displayName;
|
|
74
32
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
u as AccordionItem,
|
|
78
|
-
v as AccordionTrigger
|
|
33
|
+
m as ScrollArea,
|
|
34
|
+
n as ScrollBar
|
|
79
35
|
};
|
|
80
36
|
//# sourceMappingURL=index.es49.js.map
|
package/dist/index.es49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es49.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es49.js","sources":["../src/components/ui/scroll-area.tsx"],"sourcesContent":["import * as React from 'react'\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'\n\nimport { cn } from '@/lib/utils/cn'\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn('relative overflow-hidden', className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n))\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex touch-none select-none transition-colors',\n orientation === 'vertical' &&\n 'h-full w-2.5 border-l border-l-transparent p-[1px]',\n orientation === 'horizontal' &&\n 'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n))\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName\n\nexport { ScrollArea, ScrollBar }\n"],"names":["ScrollArea","React","className","children","props","ref","ScrollAreaPrimitive","cn","ScrollBar","orientation"],"mappings":";;;AAKM,MAAAA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MACpC,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AAAA,kCAEHE,EAAoB,UAApB,EAA6B,WAAU,qCACrCH,CACH;AAAA,kCACCK,GAAU,IAAA;AAAA,EACX,gBAAAP,EAAA,cAACK,EAAoB,QAApB,IAA2B;AAC9B,CACD;AACDN,EAAW,cAAcM,EAAoB,KAAK;AAE5C,MAAAE,IAAYP,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAO,IAAc,YAAY,GAAGL,EAAM,GAAGC,MACpD,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,aAAAI;AAAA,IACA,WAAWF;AAAA,MACT;AAAA,MACAE,MAAgB,cACd;AAAA,MACFA,MAAgB,gBACd;AAAA,MACFP;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,EAAA;AAAA,EAEH,gBAAAH,EAAA,cAAAK,EAAoB,iBAApB,EAAoC,WAAU,0CAAyC;AAC1F,CACD;AACDE,EAAU,cAAcF,EAAoB,oBAAoB;"}
|
package/dist/index.es5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { Button as p } from "./index.es2.js";
|
|
3
3
|
import { cva as l } from "class-variance-authority";
|
|
4
|
-
import { cn as u } from "./index.
|
|
4
|
+
import { cn as u } from "./index.es53.js";
|
|
5
5
|
const f = l(
|
|
6
6
|
"transition-all rounded-lg hover:rounded-[24px] border",
|
|
7
7
|
{
|
package/dist/index.es50.js
CHANGED
|
@@ -1,46 +1,80 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as e from "
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as a from "@radix-ui/react-accordion";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { Plus as d, Minus as p, ArrowDown as m, ArrowUp as y } from "lucide-react";
|
|
4
|
+
import { cn as l } from "./index.es53.js";
|
|
5
|
+
const w = a.Root, u = e.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ e.createElement(
|
|
6
|
+
a.Item,
|
|
6
7
|
{
|
|
7
|
-
ref:
|
|
8
|
-
className:
|
|
9
|
-
|
|
10
|
-
i
|
|
11
|
-
),
|
|
12
|
-
...a
|
|
8
|
+
ref: n,
|
|
9
|
+
className: l("border-b1 p-2 bg-whitish rounded-2xl", r),
|
|
10
|
+
...t
|
|
13
11
|
}
|
|
14
12
|
));
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
u.displayName = "AccordionItem";
|
|
14
|
+
const v = e.forwardRef(
|
|
15
|
+
({ className: r, children: t, icons: n = "math", size: i = "default", ...s }, c) => {
|
|
16
|
+
const o = i === "default" ? "h-10 w-10 p-2" : "w-10 h-10 p-[10px]";
|
|
17
|
+
return /* @__PURE__ */ e.createElement(a.Header, { className: "flex" }, /* @__PURE__ */ e.createElement(
|
|
18
|
+
a.Trigger,
|
|
19
|
+
{
|
|
20
|
+
ref: c,
|
|
21
|
+
className: l(
|
|
22
|
+
"flex flex-1 items-center text-left justify-between py1-4 p-4 typo_variant_body transition-all [&[data-state=open]>svg]:rotate-1801 [&[data-state=open]>.icon-wrapper>.plus]:hidden [&[data-state=open]>.icon-wrapper>.minus]:block text-navy duration-200 [&[data-state=open]]:bg-navy-opacity-4 rounded-xl hover:bg-navy-opacity-41 border border-transparent hover:border-navy-opacity-16",
|
|
23
|
+
r
|
|
24
|
+
),
|
|
25
|
+
...s
|
|
26
|
+
},
|
|
27
|
+
t && /* @__PURE__ */ e.createElement("span", { className: "text-wrapper transition-all pr-3 leading-none" }, t),
|
|
28
|
+
n === "math" && /* @__PURE__ */ e.createElement("span", { className: "relative icon-wrapper" }, /* @__PURE__ */ e.createElement(
|
|
29
|
+
d,
|
|
30
|
+
{
|
|
31
|
+
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 visible plus`
|
|
32
|
+
}
|
|
33
|
+
), /* @__PURE__ */ e.createElement(
|
|
34
|
+
p,
|
|
35
|
+
{
|
|
36
|
+
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 hidden minus`
|
|
37
|
+
}
|
|
38
|
+
)),
|
|
39
|
+
n === "arrows" && /* @__PURE__ */ e.createElement("span", { className: "relative icon-wrapper" }, /* @__PURE__ */ e.createElement(
|
|
40
|
+
m,
|
|
41
|
+
{
|
|
42
|
+
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 visible plus`
|
|
43
|
+
}
|
|
44
|
+
), /* @__PURE__ */ e.createElement(
|
|
45
|
+
y,
|
|
46
|
+
{
|
|
47
|
+
className: `${o} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 hidden minus`
|
|
48
|
+
}
|
|
49
|
+
))
|
|
50
|
+
));
|
|
25
51
|
}
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
52
|
+
);
|
|
53
|
+
v.displayName = a.Trigger.displayName;
|
|
54
|
+
const g = e.forwardRef(({ className: r, children: t, withoutContent: n, ...i }, s) => /* @__PURE__ */ e.createElement(
|
|
55
|
+
a.Content,
|
|
30
56
|
{
|
|
31
57
|
ref: s,
|
|
32
|
-
className:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
58
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
59
|
+
...i
|
|
60
|
+
},
|
|
61
|
+
/* @__PURE__ */ e.createElement(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
className: l(
|
|
65
|
+
"px-4 py-6 pt-7 typo_variant_body",
|
|
66
|
+
r,
|
|
67
|
+
!n && "content"
|
|
68
|
+
)
|
|
69
|
+
},
|
|
70
|
+
t
|
|
71
|
+
)
|
|
38
72
|
));
|
|
39
|
-
|
|
73
|
+
g.displayName = a.Content.displayName;
|
|
40
74
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
75
|
+
w as Accordion,
|
|
76
|
+
g as AccordionContent,
|
|
77
|
+
u as AccordionItem,
|
|
78
|
+
v as AccordionTrigger
|
|
45
79
|
};
|
|
46
80
|
//# sourceMappingURL=index.es50.js.map
|
package/dist/index.es50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es50.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es50.js","sources":["../src/components/ui/accordion.tsx"],"sourcesContent":["import * as AccordionPrimitive from '@radix-ui/react-accordion'\nimport * as React from 'react'\n\nimport { ArrowDown, ArrowUp, Minus, Plus } from 'lucide-react'\n\nimport { cn } from '@/lib/utils/cn'\n\n// import { LessLink16X16, MoreLink16X16 } from \"@iit/precision-ui-icons\";\n\nconst Accordion = AccordionPrimitive.Root\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item\n ref={ref}\n className={cn('border-b1 p-2 bg-whitish rounded-2xl', className)}\n {...props}\n />\n))\nAccordionItem.displayName = 'AccordionItem'\n\ninterface AccordionTriggerProps {\n icons?: 'math' | 'arrows'\n size?: 'default' | 'small'\n}\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> &\n AccordionTriggerProps\n>(\n (\n { className, children, icons = 'math', size = 'default', ...props },\n ref\n ) => {\n const iconSize = size === 'default' ? 'h-10 w-10 p-2' : 'w-10 h-10 p-[10px]'\n return (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex flex-1 items-center text-left justify-between py1-4 p-4 typo_variant_body transition-all [&[data-state=open]>svg]:rotate-1801 [&[data-state=open]>.icon-wrapper>.plus]:hidden [&[data-state=open]>.icon-wrapper>.minus]:block text-navy duration-200 [&[data-state=open]]:bg-navy-opacity-4 rounded-xl hover:bg-navy-opacity-41 border border-transparent hover:border-navy-opacity-16',\n className\n )}\n {...props}\n >\n {children && (\n <span className=\"text-wrapper transition-all pr-3 leading-none\">\n {children}\n </span>\n )}\n {icons === 'math' && (\n <span className=\"relative icon-wrapper\">\n <Plus\n className={`${iconSize} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 visible plus`}\n />\n <Minus\n className={`${iconSize} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 hidden minus`}\n />\n {/* <MoreLink16X16 className=\"h-4 w-4 shrink-0 transition-transform duration-200 visible plus\" /> */}\n {/* <LessLink16X16 className=\"h-4 w-4 shrink-0 transition-transform duration-200 hidden minus\" /> */}\n </span>\n )}\n {icons === 'arrows' && (\n <span className=\"relative icon-wrapper\">\n <ArrowDown\n className={`${iconSize} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 visible plus`}\n />\n <ArrowUp\n className={`${iconSize} bg-navy-opacity-4 rounded-lg shrink-0 transition-all duration-200 hidden minus`}\n />\n </span>\n )}\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n )\n }\n)\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\ninterface AccordionContentProps\n extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> {\n withoutContent?: boolean\n}\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n AccordionContentProps\n>(({ className, children, withoutContent, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\"\n {...props}\n >\n <div\n className={cn(\n 'px-4 py-6 pt-7 typo_variant_body',\n className,\n !withoutContent && 'content'\n )}\n >\n {children}\n </div>\n </AccordionPrimitive.Content>\n))\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"],"names":["Accordion","AccordionPrimitive","AccordionItem","React","className","props","ref","cn","AccordionTrigger","children","icons","size","iconSize","Plus","Minus","ArrowDown","ArrowUp","AccordionContent","withoutContent"],"mappings":";;;;AASA,MAAMA,IAAYC,EAAmB,MAE/BC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACF,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAK;AAAA,IACA,WAAWC,EAAG,yCAAyCH,CAAS;AAAA,IAC/D,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAc;AAO5B,MAAMM,IAAmBL,EAAM;AAAA,EAK7B,CACE,EAAE,WAAAC,GAAW,UAAAK,GAAU,OAAAC,IAAQ,QAAQ,MAAAC,IAAO,WAAW,GAAGN,EAAM,GAClEC,MACG;AACG,UAAAM,IAAWD,MAAS,YAAY,kBAAkB;AACxD,WACG,gBAAAR,EAAA,cAAAF,EAAmB,QAAnB,EAA0B,WAAU,UACnC,gBAAAE,EAAA;AAAA,MAACF,EAAmB;AAAA,MAAnB;AAAA,QACC,KAAAK;AAAA,QACA,WAAWC;AAAA,UACT;AAAA,UACAH;AAAA,QACF;AAAA,QACC,GAAGC;AAAA,MAAA;AAAA,MAEHI,KACC,gBAAAN,EAAA,cAAC,QAAK,EAAA,WAAU,mDACbM,CACH;AAAA,MAEDC,MAAU,UACR,gBAAAP,EAAA,cAAA,QAAA,EAAK,WAAU,2BACd,gBAAAA,EAAA;AAAA,QAACU;AAAA,QAAA;AAAA,UACC,WAAW,GAAGD,CAAQ;AAAA,QAAA;AAAA,MAExB,GAAA,gBAAAT,EAAA;AAAA,QAACW;AAAA,QAAA;AAAA,UACC,WAAW,GAAGF,CAAQ;AAAA,QAAA;AAAA,MAAA,CAI1B;AAAA,MAEDF,MAAU,YACR,gBAAAP,EAAA,cAAA,QAAA,EAAK,WAAU,2BACd,gBAAAA,EAAA;AAAA,QAACY;AAAA,QAAA;AAAA,UACC,WAAW,GAAGH,CAAQ;AAAA,QAAA;AAAA,MAExB,GAAA,gBAAAT,EAAA;AAAA,QAACa;AAAA,QAAA;AAAA,UACC,WAAW,GAAGJ,CAAQ;AAAA,QAAA;AAAA,MAAA,CAE1B;AAAA,IAAA,CAGN;AAAA,EAEJ;AACF;AACAJ,EAAiB,cAAcP,EAAmB,QAAQ;AAOpD,MAAAgB,IAAmBd,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAK,GAAU,gBAAAS,GAAgB,GAAGb,EAAM,GAAGC,MACpD,gBAAAH,EAAA;AAAA,EAACF,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAK;AAAA,IACA,WAAU;AAAA,IACT,GAAGD;AAAA,EAAA;AAAA,EAEJ,gBAAAF,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWI;AAAA,QACT;AAAA,QACAH;AAAA,QACA,CAACc,KAAkB;AAAA,MACrB;AAAA,IAAA;AAAA,IAECT;AAAA,EACH;AACF,CACD;AAEDQ,EAAiB,cAAchB,EAAmB,QAAQ;"}
|
package/dist/index.es51.js
CHANGED
|
@@ -1,14 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import e from "react";
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import * as e from "@radix-ui/react-tabs";
|
|
3
|
+
import { cn as n } from "./index.es53.js";
|
|
4
|
+
const f = e.Root, o = t.forwardRef(({ className: i, ...a }, s) => /* @__PURE__ */ t.createElement(
|
|
5
|
+
e.List,
|
|
5
6
|
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
)
|
|
7
|
+
ref: s,
|
|
8
|
+
className: n(
|
|
9
|
+
"inline-flex h1-10 items-center justify-center rounded-lg p-1 text-muted-foreground border border-navy-opacity-16 typo_variant_button",
|
|
10
|
+
i
|
|
11
|
+
),
|
|
12
|
+
...a
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
o.displayName = e.List.displayName;
|
|
16
|
+
const r = t.forwardRef(({ className: i, ...a }, s) => /* @__PURE__ */ t.createElement(
|
|
17
|
+
e.Trigger,
|
|
18
|
+
{
|
|
19
|
+
ref: s,
|
|
20
|
+
className: n(
|
|
21
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-[45px] py-[15px] xl:min-w-[224px] typo_variant_button text-navy ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-navy data-[state=active]:shadow-sm",
|
|
22
|
+
i
|
|
23
|
+
),
|
|
24
|
+
...a
|
|
25
|
+
}
|
|
26
|
+
));
|
|
27
|
+
r.displayName = e.Trigger.displayName;
|
|
28
|
+
const c = t.forwardRef(({ className: i, ...a }, s) => /* @__PURE__ */ t.createElement(
|
|
29
|
+
e.Content,
|
|
30
|
+
{
|
|
31
|
+
ref: s,
|
|
32
|
+
className: n(
|
|
33
|
+
"mt-7 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
34
|
+
i
|
|
35
|
+
),
|
|
36
|
+
...a
|
|
37
|
+
}
|
|
38
|
+
));
|
|
39
|
+
c.displayName = e.Content.displayName;
|
|
11
40
|
export {
|
|
12
|
-
|
|
41
|
+
f as Tabs,
|
|
42
|
+
c as TabsContent,
|
|
43
|
+
o as TabsList,
|
|
44
|
+
r as TabsTrigger
|
|
13
45
|
};
|
|
14
46
|
//# sourceMappingURL=index.es51.js.map
|
package/dist/index.es51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es51.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es51.js","sources":["../src/components/ui/tabs.tsx"],"sourcesContent":["import * as React from 'react'\r\nimport * as TabsPrimitive from '@radix-ui/react-tabs'\r\n\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nconst Tabs = TabsPrimitive.Root\r\n\r\nconst TabsList = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.List>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.List\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex h1-10 items-center justify-center rounded-lg p-1 text-muted-foreground border border-navy-opacity-16 typo_variant_button',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsList.displayName = TabsPrimitive.List.displayName\r\n\r\nconst TabsTrigger = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n 'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-[45px] py-[15px] xl:min-w-[224px] typo_variant_button text-navy ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-navy data-[state=active]:shadow-sm',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\r\n\r\nconst TabsContent = React.forwardRef<\r\n React.ElementRef<typeof TabsPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\r\n>(({ className, ...props }, ref) => (\r\n <TabsPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n 'mt-7 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTabsContent.displayName = TabsPrimitive.Content.displayName\r\n\r\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\r\n"],"names":["Tabs","TabsPrimitive","TabsList","React","className","props","ref","cn","TabsTrigger","TabsContent"],"mappings":";;;AAKA,MAAMA,IAAOC,EAAc,MAErBC,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACF,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAS,cAAcD,EAAc,KAAK;AAEpC,MAAAO,IAAcL,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACF,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAY,cAAcP,EAAc,QAAQ;AAE1C,MAAAQ,IAAcN,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACF,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWC;AAAA,MACT;AAAA,MACAH;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAY,cAAcR,EAAc,QAAQ;"}
|
package/dist/index.es52.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import c from "./index.es60.js";
|
|
2
|
+
import e from "react";
|
|
3
|
+
const m = ({ list: t }) => /* @__PURE__ */ e.createElement("ul", { className: "breadcrumbs space-y-2" }, t.map((a, r) => /* @__PURE__ */ e.createElement(
|
|
4
|
+
"li",
|
|
5
|
+
{
|
|
6
|
+
key: r,
|
|
7
|
+
style: { "--counter": r + 1 }
|
|
8
|
+
},
|
|
9
|
+
/* @__PURE__ */ e.createElement(c, { ...a })
|
|
10
|
+
))), u = m;
|
|
6
11
|
export {
|
|
7
|
-
|
|
12
|
+
u as default
|
|
8
13
|
};
|
|
9
14
|
//# sourceMappingURL=index.es52.js.map
|
package/dist/index.es52.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es52.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es52.js","sources":["../src/components/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import Breadcrumb, { BreadcrumbProps } from \"./Breadcrumb\";\r\n\r\nimport React from \"react\";\r\n\r\ninterface BreadcrumbsProps {\r\n list: BreadcrumbProps[];\r\n}\r\n\r\ninterface CustomInlineStyles extends React.CSSProperties {\r\n \"--counter\"?: number;\r\n}\r\n\r\nconst Breadcrumbs: React.FC<BreadcrumbsProps> = ({ list }) => {\r\n return (\r\n <ul className=\"breadcrumbs space-y-2\">\r\n {list.map((item, index) => (\r\n <li\r\n key={index}\r\n style={{ \"--counter\": index + 1 } as CustomInlineStyles}\r\n >\r\n <Breadcrumb {...item} />\r\n </li>\r\n ))}\r\n </ul>\r\n );\r\n};\r\n\r\nexport default Breadcrumbs;\r\n"],"names":["Breadcrumbs","list","React","item","index","Breadcrumb","Breadcrumbs$1"],"mappings":";;AAYA,MAAMA,IAA0C,CAAC,EAAE,MAAAC,QAE/CC,gBAAAA,EAAA,cAAC,QAAG,WAAU,wBAAA,GACXD,EAAK,IAAI,CAACE,GAAMC,MACfF,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAKE;AAAA,IACL,OAAO,EAAE,aAAaA,IAAQ,EAAE;AAAA,EAAA;AAAA,EAEhCF,gBAAAA,EAAA,cAACG,GAAY,EAAA,GAAGF,EAAM,CAAA;AAEzB,CAAA,CACH,GAIJG,IAAeN;"}
|
package/dist/index.es53.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
height: c = i
|
|
7
|
-
}) => o.createElement(e[t], { width: n, height: c }), r), {}), d = {
|
|
8
|
-
chevronLeft: s,
|
|
9
|
-
chevronRight: m,
|
|
10
|
-
plus: l,
|
|
11
|
-
minus: u,
|
|
12
|
-
like: f,
|
|
13
|
-
dislike: p
|
|
14
|
-
}, h = a(d), I = (e, r, t) => {
|
|
15
|
-
if (e) {
|
|
16
|
-
const n = h[e];
|
|
17
|
-
if (n)
|
|
18
|
-
return n({ width: r, height: t });
|
|
19
|
-
}
|
|
20
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null);
|
|
21
|
-
};
|
|
1
|
+
import { clsx as o } from "clsx";
|
|
2
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
|
+
function n(...r) {
|
|
4
|
+
return t(o(r));
|
|
5
|
+
}
|
|
22
6
|
export {
|
|
23
|
-
|
|
7
|
+
n as cn
|
|
24
8
|
};
|
|
25
9
|
//# sourceMappingURL=index.es53.js.map
|
package/dist/index.es53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es53.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.es53.js","sources":["../src/lib/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx'\r\nimport { twMerge } from 'tailwind-merge'\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs))\r\n}\r\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAGO,SAASA,KAAMC,GAAsB;AACnC,SAAAC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;"}
|