@iit/precision-ui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +65 -50
- 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.es13.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +2 -2
- package/dist/index.es18.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es22.js +3 -3
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +7 -7
- package/dist/index.es26.js +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +42 -39
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +96 -6
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +33 -22
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +6 -20
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +21 -19
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +18 -9
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +19 -84
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +10 -18
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +77 -38
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +15 -41
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +42 -33
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +40 -51
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +33 -88
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +37 -79
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +86 -21
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +96 -43
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +27 -16
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +38 -215
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +221 -3
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +19 -0
- package/dist/index.es47.js.map +1 -0
- package/dist/index.es48.js +7 -0
- package/dist/index.es48.js.map +1 -0
- package/dist/index.es5.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/styles.css +176 -0
- package/package.json +4 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogHeader: {
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-dev-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogFooter: {
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-dev-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
20
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +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,8JA0BjB,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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
6
|
+
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAIlE,QAAA,MAAM,UAAU,+JAed,CAAA;AAGF,QAAA,MAAM,SAAS,wKAmBb,CAAA;AAGF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -44,5 +44,7 @@ export { Partners };
|
|
|
44
44
|
export { Section };
|
|
45
45
|
export { CardsGridSection };
|
|
46
46
|
export { Heading, Text };
|
|
47
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, } from './components/ui/form';
|
|
47
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from './components/ui/form';
|
|
48
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from './components/ui/dialog';
|
|
49
|
+
export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
|
|
48
50
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,UAAU,EAAE,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,aAAa,EAAE,EACpB,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,eAAe,EAAE,EACtB,KAAK,oBAAoB,EAC1B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,UAAU,EAAE,EACjB,KAAK,eAAe,EACrB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,YAAY,EAAE,EACnB,KAAK,iBAAiB,EACvB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAG5C,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE3E,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,CAAA;AAE/C,OAAO,EAAE,OAAO,E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OAAO,OAAO,MAAM,sCAAsC,CAAA;AAC1D,OAAO,IAAI,MAAM,mCAAmC,CAAA;AAEpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAGxB,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,65 +1,80 @@
|
|
|
1
|
-
import { Button as
|
|
1
|
+
import { Button as e } from "./index.es2.js";
|
|
2
2
|
import { default as a } from "./index.es3.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { registerAdapter as
|
|
9
|
-
import { Alert as
|
|
10
|
-
import { Input as
|
|
11
|
-
import { InputWithLabel as
|
|
12
|
-
import { Textarea as
|
|
3
|
+
import { default as l } from "./index.es4.js";
|
|
4
|
+
import { default as p } from "./index.es5.js";
|
|
5
|
+
import { default as i } from "./index.es6.js";
|
|
6
|
+
import { default as u } from "./index.es7.js";
|
|
7
|
+
import { default as n } from "./index.es8.js";
|
|
8
|
+
import { registerAdapter as D } from "./index.es9.js";
|
|
9
|
+
import { Alert as F, AlertDescription as T, AlertTitle as b } from "./index.es10.js";
|
|
10
|
+
import { Input as B } from "./index.es11.js";
|
|
11
|
+
import { InputWithLabel as L } from "./index.es12.js";
|
|
12
|
+
import { Textarea as h } from "./index.es13.js";
|
|
13
13
|
import { TextareaWithLabel as H } from "./index.es14.js";
|
|
14
14
|
import { Label as y } from "./index.es15.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { Checkbox as
|
|
18
|
-
import { CheckboxWithLabel as
|
|
19
|
-
import { Tag as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
15
|
+
import { default as W } from "./index.es16.js";
|
|
16
|
+
import { default as v } from "./index.es17.js";
|
|
17
|
+
import { Checkbox as M } from "./index.es18.js";
|
|
18
|
+
import { CheckboxWithLabel as R } from "./index.es19.js";
|
|
19
|
+
import { Tag as j } from "./index.es20.js";
|
|
20
|
+
import { default as z } from "./index.es21.js";
|
|
21
|
+
import { default as J } from "./index.es22.js";
|
|
22
|
+
import { default as N } from "./index.es23.js";
|
|
23
23
|
import { default as V } from "./index.es24.js";
|
|
24
24
|
import { default as Y } from "./index.es25.js";
|
|
25
25
|
import { default as _ } from "./index.es26.js";
|
|
26
|
-
import { default as
|
|
27
|
-
import { Form as
|
|
26
|
+
import { default as oo } from "./index.es27.js";
|
|
27
|
+
import { Form as eo, FormControl as to, FormDescription as ao, FormField as fo, FormItem as lo, FormLabel as mo, FormMessage as po, useFormField as xo } from "./index.es28.js";
|
|
28
|
+
import { Dialog as so, DialogClose as uo, DialogContent as no, DialogDescription as go, DialogFooter as Do, DialogHeader as co, DialogOverlay as Fo, DialogPortal as To, DialogTitle as bo, DialogTrigger as Ao } from "./index.es29.js";
|
|
29
|
+
import { ScrollArea as Co, ScrollBar as Lo } from "./index.es30.js";
|
|
28
30
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
F as Alert,
|
|
32
|
+
T as AlertDescription,
|
|
33
|
+
b as AlertTitle,
|
|
34
|
+
n as AppLink,
|
|
35
|
+
e as Button,
|
|
34
36
|
a as ButtonIcon,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
l as ButtonPrimary,
|
|
38
|
+
p as ButtonSecondary,
|
|
39
|
+
i as ButtonText,
|
|
40
|
+
u as ButtonUnique,
|
|
41
|
+
z as CTA,
|
|
40
42
|
Y as CardsGridSection,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
M as Checkbox,
|
|
44
|
+
R as CheckboxWithLabel,
|
|
45
|
+
so as Dialog,
|
|
46
|
+
uo as DialogClose,
|
|
47
|
+
no as DialogContent,
|
|
48
|
+
go as DialogDescription,
|
|
49
|
+
Do as DialogFooter,
|
|
50
|
+
co as DialogHeader,
|
|
51
|
+
Fo as DialogOverlay,
|
|
52
|
+
To as DialogPortal,
|
|
53
|
+
bo as DialogTitle,
|
|
54
|
+
Ao as DialogTrigger,
|
|
55
|
+
eo as Form,
|
|
56
|
+
to as FormControl,
|
|
57
|
+
ao as FormDescription,
|
|
58
|
+
fo as FormField,
|
|
59
|
+
lo as FormItem,
|
|
60
|
+
mo as FormLabel,
|
|
61
|
+
po as FormMessage,
|
|
49
62
|
_ as Heading,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
63
|
+
J as Hero,
|
|
64
|
+
W as Informer,
|
|
65
|
+
B as Input,
|
|
66
|
+
L as InputWithLabel,
|
|
54
67
|
y as Label,
|
|
55
|
-
|
|
56
|
-
|
|
68
|
+
N as Partners,
|
|
69
|
+
v as SafeHtmlRenderer,
|
|
70
|
+
Co as ScrollArea,
|
|
71
|
+
Lo as ScrollBar,
|
|
57
72
|
V as Section,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
73
|
+
j as Tag,
|
|
74
|
+
oo as Text,
|
|
75
|
+
h as Textarea,
|
|
61
76
|
H as TextareaWithLabel,
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
D as registerAdapter,
|
|
78
|
+
xo as useFormField
|
|
64
79
|
};
|
|
65
80
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.es10.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { cva as d } from "class-variance-authority";
|
|
3
|
-
import { cn as l } from "./index.
|
|
3
|
+
import { cn as l } from "./index.es31.js";
|
|
4
4
|
const i = d(
|
|
5
5
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
6
6
|
{
|
package/dist/index.es11.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import { cva as n } from "class-variance-authority";
|
|
3
|
-
import { cn as l } from "./index.
|
|
3
|
+
import { cn as l } from "./index.es31.js";
|
|
4
4
|
const d = n(
|
|
5
5
|
"flex h-11 w-full rounded-lg border border-transparent border-b bg-background px-3 pt-[14px] pb-[11px] typo_variant_small-body ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 duration-200 transition-colors",
|
|
6
6
|
{
|
package/dist/index.es13.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { cva as i } from "class-variance-authority";
|
|
3
|
-
import { cn as n } from "./index.
|
|
3
|
+
import { cn as n } from "./index.es31.js";
|
|
4
4
|
const s = i(
|
|
5
5
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible0:ring-2 focus-visible0:ring-ring focus-visible0:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
6
6
|
{
|
package/dist/index.es15.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import * as t from "@radix-ui/react-label";
|
|
3
3
|
import { cva as l } from "class-variance-authority";
|
|
4
|
-
import { cn as n } from "./index.
|
|
4
|
+
import { cn as n } from "./index.es31.js";
|
|
5
5
|
const s = l(
|
|
6
6
|
"typo_variant_h6 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 duration-200",
|
|
7
7
|
{
|
package/dist/index.es16.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Popover as n, PopoverTrigger as a, PopoverContent as l } from "./index.
|
|
2
|
-
import { TooltipProvider as m, Tooltip as i, TooltipTrigger as c, TooltipContent as s } from "./index.
|
|
1
|
+
import { Popover as n, PopoverTrigger as a, PopoverContent as l } from "./index.es33.js";
|
|
2
|
+
import { TooltipProvider as m, Tooltip as i, TooltipTrigger as c, TooltipContent as s } from "./index.es34.js";
|
|
3
3
|
import { Button as r } from "./index.es2.js";
|
|
4
4
|
import { Info as o } from "lucide-react";
|
|
5
5
|
import e from "react";
|
package/dist/index.es18.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as t from "@radix-ui/react-checkbox";
|
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import { Check16X16 as c } from "@iit/precision-ui-icons";
|
|
4
4
|
import { cva as n } from "class-variance-authority";
|
|
5
|
-
import { cn as a } from "./index.
|
|
5
|
+
import { cn as a } from "./index.es31.js";
|
|
6
6
|
const d = n(
|
|
7
7
|
"peer h-[18px] w-[18px] shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 duration-200",
|
|
8
8
|
{
|
package/dist/index.es19.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { useId as l } from "react";
|
|
2
2
|
import { cva as c } from "class-variance-authority";
|
|
3
|
-
import { cn as s } from "./index.
|
|
3
|
+
import { cn as s } from "./index.es31.js";
|
|
4
4
|
import { Checkbox as m } from "./index.es18.js";
|
|
5
5
|
const d = c("items-top flex space-x-2", {
|
|
6
6
|
variants: {
|
package/dist/index.es2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { Slot as d } from "@radix-ui/react-slot";
|
|
3
3
|
import { cva as c } from "class-variance-authority";
|
|
4
|
-
import { cn as u } from "./index.
|
|
4
|
+
import { cn as u } from "./index.es31.js";
|
|
5
5
|
const l = c(
|
|
6
6
|
"inline-flex items-center justify-center whitespace-nowrap rounded-full typo_variant_button ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed border-none",
|
|
7
7
|
{
|
package/dist/index.es20.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { cva as n } from "class-variance-authority";
|
|
3
|
-
import { cn as o } from "./index.
|
|
3
|
+
import { cn as o } from "./index.es31.js";
|
|
4
4
|
const p = n(
|
|
5
5
|
"inline-flex items-center rounded-sm pt-[9px] pb-[4px] px-[13px] typo_variant_caption",
|
|
6
6
|
{
|
package/dist/index.es22.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import N from "./index.
|
|
1
|
+
import N from "./index.es35.js";
|
|
2
2
|
import d from "./index.es4.js";
|
|
3
3
|
import v from "./index.es26.js";
|
|
4
4
|
import e from "react";
|
|
5
5
|
import y from "./index.es17.js";
|
|
6
|
-
import C from "./index.
|
|
6
|
+
import C from "./index.es36.js";
|
|
7
7
|
import x from "./index.es27.js";
|
|
8
|
-
import { cn as u } from "./index.
|
|
8
|
+
import { cn as u } from "./index.es31.js";
|
|
9
9
|
import { cva as p } from "class-variance-authority";
|
|
10
10
|
import { getAdapter as H } from "./index.es9.js";
|
|
11
11
|
const V = p("", {
|
package/dist/index.es24.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { cva as u } from "class-variance-authority";
|
|
3
|
-
import { cn as y } from "./index.
|
|
3
|
+
import { cn as y } from "./index.es31.js";
|
|
4
4
|
import v from "./index.es26.js";
|
|
5
5
|
import E from "./index.es27.js";
|
|
6
6
|
import N from "./index.es4.js";
|
package/dist/index.es25.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import A from "./index.es24.js";
|
|
2
|
-
import e from "./index.
|
|
3
|
-
import E from "./index.
|
|
4
|
-
import G from "./index.
|
|
5
|
-
import R from "./index.
|
|
6
|
-
import S from "./index.
|
|
7
|
-
import I from "./index.
|
|
8
|
-
import _ from "./index.
|
|
2
|
+
import e from "./index.es37.js";
|
|
3
|
+
import E from "./index.es38.js";
|
|
4
|
+
import G from "./index.es39.js";
|
|
5
|
+
import R from "./index.es40.js";
|
|
6
|
+
import S from "./index.es41.js";
|
|
7
|
+
import I from "./index.es42.js";
|
|
8
|
+
import _ from "./index.es43.js";
|
|
9
9
|
import t from "react";
|
|
10
10
|
const k = {
|
|
11
11
|
Advantage: e,
|
package/dist/index.es26.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { forwardRef as f } from "react";
|
|
2
|
-
import { typeVariants as p } from "./index.
|
|
2
|
+
import { typeVariants as p } from "./index.es44.js";
|
|
3
3
|
const e = f(
|
|
4
4
|
({ level: a, as: n, className: t = "", children: r, id: o, ...i }, s) => {
|
|
5
5
|
const d = n || `h${a}`, m = p({ variant: `h${a}` });
|
package/dist/index.es27.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { forwardRef as f } from "react";
|
|
2
|
-
import { typeVariants as d } from "./index.
|
|
2
|
+
import { typeVariants as d } from "./index.es44.js";
|
|
3
3
|
const e = f(
|
|
4
4
|
({ variant: a = "body", as: o, className: t = "", children: r, ...n }, s) => {
|
|
5
5
|
const m = o || "p", p = d({ variant: a });
|
package/dist/index.es28.js
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { FormProvider as f, useFormContext as
|
|
3
|
-
import { Label as
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { cn as a } from "./index.
|
|
6
|
-
const
|
|
2
|
+
import { FormProvider as f, Controller as F, useFormContext as u } from "react-hook-form";
|
|
3
|
+
import { Label as p } from "./index.es15.js";
|
|
4
|
+
import { Slot as I } from "@radix-ui/react-slot";
|
|
5
|
+
import { cn as a } from "./index.es31.js";
|
|
6
|
+
const R = f, c = e.createContext(
|
|
7
7
|
{}
|
|
8
|
-
),
|
|
9
|
-
|
|
8
|
+
), $ = ({
|
|
9
|
+
...t
|
|
10
|
+
}) => /* @__PURE__ */ e.createElement(c.Provider, { value: { name: t.name } }, /* @__PURE__ */ e.createElement(F, { ...t })), i = () => {
|
|
11
|
+
const t = e.useContext(c), o = e.useContext(l), { getFieldState: r, formState: m } = u(), n = r(t.name, m);
|
|
10
12
|
if (!t)
|
|
11
13
|
throw new Error("useFormField should be used within <FormField>");
|
|
12
|
-
const { id:
|
|
14
|
+
const { id: s } = o;
|
|
13
15
|
return {
|
|
14
|
-
id:
|
|
16
|
+
id: s,
|
|
15
17
|
name: t.name,
|
|
16
|
-
formItemId: `${
|
|
17
|
-
formDescriptionId: `${
|
|
18
|
-
formMessageId: `${
|
|
19
|
-
...
|
|
18
|
+
formItemId: `${s}-form-item`,
|
|
19
|
+
formDescriptionId: `${s}-form-item-description`,
|
|
20
|
+
formMessageId: `${s}-form-item-message`,
|
|
21
|
+
...n
|
|
20
22
|
};
|
|
21
|
-
},
|
|
23
|
+
}, l = e.createContext(
|
|
22
24
|
{}
|
|
23
|
-
),
|
|
25
|
+
), x = e.forwardRef(({ className: t, ...o }, r) => {
|
|
24
26
|
const m = e.useId();
|
|
25
|
-
return /* @__PURE__ */ e.createElement(
|
|
27
|
+
return /* @__PURE__ */ e.createElement(l.Provider, { value: { id: m } }, /* @__PURE__ */ e.createElement("div", { ref: r, className: a("space-y-2", t), ...o }));
|
|
26
28
|
});
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
const { error: m, formItemId:
|
|
29
|
+
x.displayName = "FormItem";
|
|
30
|
+
const C = e.forwardRef(({ className: t, ...o }, r) => {
|
|
31
|
+
const { error: m, formItemId: n } = i();
|
|
30
32
|
return /* @__PURE__ */ e.createElement(
|
|
31
|
-
|
|
33
|
+
p,
|
|
32
34
|
{
|
|
33
35
|
ref: r,
|
|
34
36
|
className: a(m && "text-destructive", t),
|
|
35
|
-
htmlFor:
|
|
37
|
+
htmlFor: n,
|
|
36
38
|
...o
|
|
37
39
|
}
|
|
38
40
|
);
|
|
39
41
|
});
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
const { error: r, formItemId: m, formDescriptionId:
|
|
42
|
+
C.displayName = "FormLabel";
|
|
43
|
+
const g = e.forwardRef(({ ...t }, o) => {
|
|
44
|
+
const { error: r, formItemId: m, formDescriptionId: n, formMessageId: s } = i();
|
|
43
45
|
return /* @__PURE__ */ e.createElement(
|
|
44
|
-
|
|
46
|
+
I,
|
|
45
47
|
{
|
|
46
48
|
ref: o,
|
|
47
49
|
id: m,
|
|
48
|
-
"aria-describedby": r ? `${
|
|
50
|
+
"aria-describedby": r ? `${n} ${s}` : `${n}`,
|
|
49
51
|
"aria-invalid": !!r,
|
|
50
52
|
...t
|
|
51
53
|
}
|
|
52
54
|
);
|
|
53
55
|
});
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
+
g.displayName = "FormControl";
|
|
57
|
+
const v = e.forwardRef(({ className: t, ...o }, r) => {
|
|
56
58
|
const { formDescriptionId: m } = i();
|
|
57
59
|
return /* @__PURE__ */ e.createElement(
|
|
58
60
|
"p",
|
|
@@ -64,28 +66,29 @@ const g = e.forwardRef(({ className: t, ...o }, r) => {
|
|
|
64
66
|
}
|
|
65
67
|
);
|
|
66
68
|
});
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
const { error:
|
|
69
|
+
v.displayName = "FormDescription";
|
|
70
|
+
const E = e.forwardRef(({ className: t, children: o, ...r }, m) => {
|
|
71
|
+
const { error: n, formMessageId: s } = i(), d = n ? String(n?.message) : o;
|
|
70
72
|
return d ? /* @__PURE__ */ e.createElement(
|
|
71
73
|
"p",
|
|
72
74
|
{
|
|
73
75
|
ref: m,
|
|
74
|
-
id:
|
|
76
|
+
id: s,
|
|
75
77
|
className: a("text-sm font-medium text-destructive", t),
|
|
76
78
|
...r
|
|
77
79
|
},
|
|
78
80
|
d
|
|
79
81
|
) : null;
|
|
80
82
|
});
|
|
81
|
-
|
|
83
|
+
E.displayName = "FormMessage";
|
|
82
84
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
x as
|
|
88
|
-
|
|
85
|
+
R as Form,
|
|
86
|
+
g as FormControl,
|
|
87
|
+
v as FormDescription,
|
|
88
|
+
$ as FormField,
|
|
89
|
+
x as FormItem,
|
|
90
|
+
C as FormLabel,
|
|
91
|
+
E as FormMessage,
|
|
89
92
|
i as useFormField
|
|
90
93
|
};
|
|
91
94
|
//# sourceMappingURL=index.es28.js.map
|
package/dist/index.es28.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es28.js","sources":["../src/components/ui/form.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label'\nimport * as React from 'react'\n\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from 'react-hook-form'\n\nimport { Label } from '@/components/ui/label'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cn } from '@/lib/utils/cn'\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>')\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n)\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('space-y-2', className)} {...props} />\n </FormItemContext.Provider>\n )\n})\nFormItem.displayName = 'FormItem'\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && 'text-destructive', className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = 'FormLabel'\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = 'FormControl'\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = 'FormDescription'\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message) : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-sm font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = 'FormMessage'\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n}\n"],"names":["Form","FormProvider","FormFieldContext","React","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","
|
|
1
|
+
{"version":3,"file":"index.es28.js","sources":["../src/components/ui/form.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label'\nimport * as React from 'react'\n\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from 'react-hook-form'\n\nimport { Label } from '@/components/ui/label'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cn } from '@/lib/utils/cn'\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue\n)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>')\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n)\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId()\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn('space-y-2', className)} {...props} />\n </FormItemContext.Provider>\n )\n})\nFormItem.displayName = 'FormItem'\n\nconst FormLabel = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n\n return (\n <Label\n ref={ref}\n className={cn(error && 'text-destructive', className)}\n htmlFor={formItemId}\n {...props}\n />\n )\n})\nFormLabel.displayName = 'FormLabel'\n\nconst FormControl = React.forwardRef<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n )\n})\nFormControl.displayName = 'FormControl'\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n})\nFormDescription.displayName = 'FormDescription'\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const body = error ? String(error?.message) : children\n\n if (!body) {\n return null\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn('text-sm font-medium text-destructive', className)}\n {...props}\n >\n {body}\n </p>\n )\n})\nFormMessage.displayName = 'FormMessage'\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n}\n"],"names":["Form","FormProvider","FormFieldContext","React","FormField","props","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","useFormContext","fieldState","id","FormItem","className","ref","cn","FormLabel","error","formItemId","Label","FormControl","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","children","body"],"mappings":";;;;;AAgBA,MAAMA,IAAOC,GASPC,IAAmBC,EAAM;AAAA,EAC7B,CAAC;AACH,GAEMC,IAAY,CAGhB;AAAA,EACA,GAAGC;AACL,MAEK,gBAAAF,EAAA,cAAAD,EAAiB,UAAjB,EAA0B,OAAO,EAAE,MAAMG,EAAM,KAC9C,EAAA,GAAA,gBAAAF,EAAA,cAACG,GAAY,EAAA,GAAGD,EAAO,CAAA,CACzB,GAIEE,IAAe,MAAM;AACnB,QAAAC,IAAeL,EAAM,WAAWD,CAAgB,GAChDO,IAAcN,EAAM,WA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
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { ScrollArea as i } from "./index.es30.js";
|
|
4
|
+
import { X as d } from "lucide-react";
|
|
5
|
+
import { cn as s } from "./index.es31.js";
|
|
6
|
+
const v = a.Root, D = a.Trigger, c = a.Portal, h = a.Close, n = e.forwardRef(({ className: t, ...o }, l) => /* @__PURE__ */ e.createElement(
|
|
7
|
+
a.Overlay,
|
|
8
|
+
{
|
|
9
|
+
ref: l,
|
|
10
|
+
className: s(
|
|
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
|
+
),
|
|
14
|
+
...o
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
n.displayName = a.Overlay.displayName;
|
|
18
|
+
const m = e.forwardRef(({ className: t, children: o, ...l }, r) => /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(
|
|
19
|
+
a.Content,
|
|
20
|
+
{
|
|
21
|
+
ref: r,
|
|
22
|
+
className: s(
|
|
23
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 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 max-h-[80vh] overflow-y-scroll1 max-h-screen1 max-h-[calc(100dvh-1.5rem)] w-[calc(100dvw-1.5rem)] overflow-hidden max-h-[calc(100dvh-0.75rem)] w-[calc(100dvw-0.75rem)] p-0",
|
|
24
|
+
t
|
|
25
|
+
),
|
|
26
|
+
...l
|
|
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
|
+
),
|
|
35
|
+
/* @__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
|
+
)));
|
|
37
|
+
m.displayName = a.Content.displayName;
|
|
38
|
+
const f = ({
|
|
39
|
+
className: t,
|
|
40
|
+
...o
|
|
41
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: s(
|
|
45
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
46
|
+
t
|
|
47
|
+
),
|
|
48
|
+
...o
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
f.displayName = "DialogHeader";
|
|
52
|
+
const p = ({
|
|
53
|
+
className: t,
|
|
54
|
+
...o
|
|
55
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: s(
|
|
59
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
60
|
+
t
|
|
61
|
+
),
|
|
62
|
+
...o
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
p.displayName = "DialogFooter";
|
|
66
|
+
const g = e.forwardRef(({ className: t, ...o }, l) => /* @__PURE__ */ e.createElement(
|
|
67
|
+
a.Title,
|
|
68
|
+
{
|
|
69
|
+
ref: l,
|
|
70
|
+
className: s(
|
|
71
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
72
|
+
t
|
|
73
|
+
),
|
|
74
|
+
...o
|
|
75
|
+
}
|
|
76
|
+
));
|
|
77
|
+
g.displayName = a.Title.displayName;
|
|
78
|
+
const u = e.forwardRef(({ className: t, ...o }, l) => /* @__PURE__ */ e.createElement(
|
|
79
|
+
a.Description,
|
|
80
|
+
{
|
|
81
|
+
ref: l,
|
|
82
|
+
className: s("text-sm text-muted-foreground", t),
|
|
83
|
+
...o
|
|
84
|
+
}
|
|
85
|
+
));
|
|
86
|
+
u.displayName = a.Description.displayName;
|
|
6
87
|
export {
|
|
7
|
-
|
|
88
|
+
v as Dialog,
|
|
89
|
+
h as DialogClose,
|
|
90
|
+
m as DialogContent,
|
|
91
|
+
u as DialogDescription,
|
|
92
|
+
p as DialogFooter,
|
|
93
|
+
f as DialogHeader,
|
|
94
|
+
n as DialogOverlay,
|
|
95
|
+
c as DialogPortal,
|
|
96
|
+
g as DialogTitle,
|
|
97
|
+
D as DialogTrigger
|
|
8
98
|
};
|
|
9
99
|
//# sourceMappingURL=index.es29.js.map
|