@iit/precision-ui 0.5.0 → 0.5.1
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/ui/dialog.d.ts.map +1 -1
- package/dist/index.es29.js +21 -27
- package/dist/index.es29.js.map +1 -1
- package/dist/styles.css +0 -12
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,QAAA,MAAM,MAAM,uCAAuB,CAAA;AAEnC,QAAA,MAAM,aAAa,8GAA0B,CAAA;AAE7C,QAAA,MAAM,YAAY,6CAAyB,CAAA;AAE3C,QAAA,MAAM,WAAW,4GAAwB,CAAA;AAEzC,QAAA,MAAM,aAAa,8JAYjB,CAAA;AAGF,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,QAAA,MAAM,MAAM,uCAAuB,CAAA;AAEnC,QAAA,MAAM,aAAa,8GAA0B,CAAA;AAE7C,QAAA,MAAM,YAAY,6CAAyB,CAAA;AAE3C,QAAA,MAAM,WAAW,4GAAwB,CAAA;AAEzC,QAAA,MAAM,aAAa,8JAYjB,CAAA;AAGF,QAAA,MAAM,aAAa,8JAuBjB,CAAA;AAGF,QAAA,MAAM,YAAY;8BAGf,MAAM,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,YAAY;8BAGf,MAAM,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,WAAW,oKAYf,CAAA;AAGF,QAAA,MAAM,iBAAiB,8KASrB,CAAA;AAGF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAA"}
|
package/dist/index.es29.js
CHANGED
|
@@ -2,36 +2,30 @@ import * as a from "@radix-ui/react-dialog";
|
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import { ScrollArea as i } from "./index.es30.js";
|
|
4
4
|
import { X as d } from "lucide-react";
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
5
|
+
import { cn as l } from "./index.es31.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
7
|
a.Overlay,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
10
|
-
className:
|
|
11
|
-
"fixed inset-0 z-50 bg-black/80
|
|
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
12
|
t
|
|
13
13
|
),
|
|
14
14
|
...o
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
17
|
n.displayName = a.Overlay.displayName;
|
|
18
|
-
const m = e.forwardRef(({ className: t, children: o, ...
|
|
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
19
|
a.Content,
|
|
20
20
|
{
|
|
21
21
|
ref: r,
|
|
22
|
-
className:
|
|
23
|
-
"fixed left-[50%] top-[50%] z-50 grid
|
|
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
24
|
t
|
|
25
25
|
),
|
|
26
|
-
...
|
|
26
|
+
...s
|
|
27
27
|
},
|
|
28
|
-
/* @__PURE__ */ e.createElement(
|
|
29
|
-
i,
|
|
30
|
-
{
|
|
31
|
-
className: "max-h-[calc(100dvh-1rem)]"
|
|
32
|
-
},
|
|
33
|
-
/* @__PURE__ */ e.createElement("div", { className: "app-p-5" }, o)
|
|
34
|
-
),
|
|
28
|
+
/* @__PURE__ */ e.createElement(i, { className: "max-h-[calc(100dvh-1rem)]" }, /* @__PURE__ */ e.createElement("div", { className: "p-6" }, o)),
|
|
35
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"))
|
|
36
30
|
)));
|
|
37
31
|
m.displayName = a.Content.displayName;
|
|
@@ -41,7 +35,7 @@ const f = ({
|
|
|
41
35
|
}) => /* @__PURE__ */ e.createElement(
|
|
42
36
|
"div",
|
|
43
37
|
{
|
|
44
|
-
className:
|
|
38
|
+
className: l(
|
|
45
39
|
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
46
40
|
t
|
|
47
41
|
),
|
|
@@ -55,7 +49,7 @@ const p = ({
|
|
|
55
49
|
}) => /* @__PURE__ */ e.createElement(
|
|
56
50
|
"div",
|
|
57
51
|
{
|
|
58
|
-
className:
|
|
52
|
+
className: l(
|
|
59
53
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
60
54
|
t
|
|
61
55
|
),
|
|
@@ -63,11 +57,11 @@ const p = ({
|
|
|
63
57
|
}
|
|
64
58
|
);
|
|
65
59
|
p.displayName = "DialogFooter";
|
|
66
|
-
const g = e.forwardRef(({ className: t, ...o },
|
|
60
|
+
const g = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
67
61
|
a.Title,
|
|
68
62
|
{
|
|
69
|
-
ref:
|
|
70
|
-
className:
|
|
63
|
+
ref: s,
|
|
64
|
+
className: l(
|
|
71
65
|
"text-lg font-semibold leading-none tracking-tight",
|
|
72
66
|
t
|
|
73
67
|
),
|
|
@@ -75,18 +69,18 @@ const g = e.forwardRef(({ className: t, ...o }, l) => /* @__PURE__ */ e.createEl
|
|
|
75
69
|
}
|
|
76
70
|
));
|
|
77
71
|
g.displayName = a.Title.displayName;
|
|
78
|
-
const u = e.forwardRef(({ className: t, ...o },
|
|
72
|
+
const u = e.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
79
73
|
a.Description,
|
|
80
74
|
{
|
|
81
|
-
ref:
|
|
82
|
-
className:
|
|
75
|
+
ref: s,
|
|
76
|
+
className: l("text-sm text-muted-foreground", t),
|
|
83
77
|
...o
|
|
84
78
|
}
|
|
85
79
|
));
|
|
86
80
|
u.displayName = a.Description.displayName;
|
|
87
81
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
D as Dialog,
|
|
83
|
+
E as DialogClose,
|
|
90
84
|
m as DialogContent,
|
|
91
85
|
u as DialogDescription,
|
|
92
86
|
p as DialogFooter,
|
|
@@ -94,6 +88,6 @@ export {
|
|
|
94
88
|
n as DialogOverlay,
|
|
95
89
|
c as DialogPortal,
|
|
96
90
|
g as DialogTitle,
|
|
97
|
-
|
|
91
|
+
v as DialogTrigger
|
|
98
92
|
};
|
|
99
93
|
//# sourceMappingURL=index.es29.js.map
|
package/dist/index.es29.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es29.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
|
|
1
|
+
{"version":3,"file":"index.es29.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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,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/styles.css
CHANGED
|
@@ -671,21 +671,12 @@ body{
|
|
|
671
671
|
.h-full{
|
|
672
672
|
height: 100%;
|
|
673
673
|
}
|
|
674
|
-
.max-h-\[80vh\]{
|
|
675
|
-
max-height: 80vh;
|
|
676
|
-
}
|
|
677
674
|
.max-h-\[calc\(100dvh-0\.75rem\)\]{
|
|
678
675
|
max-height: calc(100dvh - 0.75rem);
|
|
679
676
|
}
|
|
680
|
-
.max-h-\[calc\(100dvh-1\.5rem\)\]{
|
|
681
|
-
max-height: calc(100dvh - 1.5rem);
|
|
682
|
-
}
|
|
683
677
|
.max-h-\[calc\(100dvh-1rem\)\]{
|
|
684
678
|
max-height: calc(100dvh - 1rem);
|
|
685
679
|
}
|
|
686
|
-
.max-h-\[calc\(100dvh-3rem\)\]{
|
|
687
|
-
max-height: calc(100dvh - 3rem);
|
|
688
|
-
}
|
|
689
680
|
.min-h-\[190px\]{
|
|
690
681
|
min-height: 190px;
|
|
691
682
|
}
|
|
@@ -737,9 +728,6 @@ body{
|
|
|
737
728
|
.w-\[calc\(100dvw-0\.75rem\)\]{
|
|
738
729
|
width: calc(100dvw - 0.75rem);
|
|
739
730
|
}
|
|
740
|
-
.w-\[calc\(100dvw-1\.5rem\)\]{
|
|
741
|
-
width: calc(100dvw - 1.5rem);
|
|
742
|
-
}
|
|
743
731
|
.w-auto{
|
|
744
732
|
width: auto;
|
|
745
733
|
}
|