@iit/precision-ui 0.7.2 → 0.8.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/cards/License.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +3 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/combobox.d.ts +19 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +81 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/decorators/CarouselWrapper.d.ts +2 -1
- package/dist/decorators/CarouselWrapper.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +66 -62
- 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 +59 -17
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +20 -91
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +17 -88
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +90 -32
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +81 -68
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +28 -38
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +75 -9
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +43 -6
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +11 -22
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +6 -20
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +21 -19
- 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 +19 -26
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +4 -16
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +80 -72
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +86 -4
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +30 -0
- package/dist/index.es61.js.map +1 -0
- package/dist/index.es62.js +19 -0
- package/dist/index.es62.js.map +1 -0
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/styles.css +128 -0
- package/package.json +3 -2
package/dist/index.es47.js
CHANGED
|
@@ -1,93 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
));
|
|
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,
|
|
20
|
-
{
|
|
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
|
|
25
|
-
),
|
|
26
|
-
...s
|
|
27
|
-
},
|
|
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
|
|
1
|
+
import c, { forwardRef as f } from "react";
|
|
2
|
+
import { typeVariants as d } from "./index.es61.js";
|
|
3
|
+
const e = f(
|
|
4
|
+
({ variant: a = "body", as: o, className: t = "", children: r, ...n }, s) => {
|
|
5
|
+
const m = o || "p", p = d({ variant: a });
|
|
6
|
+
return /* @__PURE__ */ c.createElement(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
ref: s,
|
|
10
|
+
className: `${p}${t ? ` ${t}` : ""}`,
|
|
11
|
+
...n
|
|
12
|
+
},
|
|
13
|
+
r
|
|
14
|
+
);
|
|
57
15
|
}
|
|
58
16
|
);
|
|
59
|
-
|
|
60
|
-
const
|
|
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
|
-
}
|
|
79
|
-
));
|
|
80
|
-
u.displayName = a.Description.displayName;
|
|
17
|
+
e.displayName = "Text";
|
|
18
|
+
const x = e;
|
|
81
19
|
export {
|
|
82
|
-
|
|
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
|
|
20
|
+
x as default
|
|
92
21
|
};
|
|
93
22
|
//# sourceMappingURL=index.es47.js.map
|
package/dist/index.es47.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es47.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es47.js","sources":["../src/components/core/typography/Text.tsx"],"sourcesContent":["import React, { ElementType, ReactNode, forwardRef } from \"react\";\r\n\r\nimport { typeVariants } from \"./typeVariants\";\r\n\r\ninterface TextProps {\r\n variant?:\r\n | \"factoid\"\r\n | \"subtitle-1\"\r\n | \"subtitle-2\"\r\n | \"overline\"\r\n | \"lead-text\"\r\n | \"body\"\r\n | \"small-body\"\r\n | \"caption\"\r\n | \"button\"\r\n | \"link\";\r\n as?: ElementType;\r\n className?: string;\r\n children: ReactNode;\r\n}\r\n\r\nconst Text = forwardRef<HTMLParagraphElement, TextProps>(\r\n ({ variant = \"body\", as, className = \"\", children, ...props }, ref) => {\r\n const Component = as || \"p\";\r\n const variantClass = typeVariants({ variant });\r\n\r\n return (\r\n <Component\r\n ref={ref}\r\n className={`${variantClass}${className ? ` ${className}` : \"\"}`}\r\n {...props}\r\n >\r\n {children}\r\n </Component>\r\n );\r\n }\r\n);\r\n\r\nText.displayName = \"Text\";\r\n\r\nexport default Text;\r\n"],"names":["Text","forwardRef","variant","as","className","children","props","ref","Component","variantClass","typeVariants","React","Text$1"],"mappings":";;AAqBA,MAAMA,IAAOC;AAAA,EACX,CAAC,EAAE,SAAAC,IAAU,QAAQ,IAAAC,GAAI,WAAAC,IAAY,IAAI,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MAAQ;AACrE,UAAMC,IAAYL,KAAM,KAClBM,IAAeC,EAAa,EAAE,SAAAR,EAAS,CAAA;AAG3C,WAAAS,gBAAAA,EAAA;AAAA,MAACH;AAAA,MAAA;AAAA,QACC,KAAAD;AAAA,QACA,WAAW,GAAGE,CAAY,GAAGL,IAAY,IAAIA,CAAS,KAAK,EAAE;AAAA,QAC5D,GAAGE;AAAA,MAAA;AAAA,MAEHD;AAAA,IAAA;AAAA,EAGP;AACF;AAEAL,EAAK,cAAc;AAEnB,MAAAY,IAAeZ;"}
|
package/dist/index.es48.js
CHANGED
|
@@ -1,36 +1,94 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
)
|
|
31
|
-
n
|
|
2
|
+
import { FormProvider as f, Controller as F, useFormContext as u } from "react-hook-form";
|
|
3
|
+
import { Label as p } from "./index.es17.js";
|
|
4
|
+
import { Slot as I } from "@radix-ui/react-slot";
|
|
5
|
+
import { cn as a } from "./index.es54.js";
|
|
6
|
+
const R = f, c = e.createContext(
|
|
7
|
+
{}
|
|
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);
|
|
12
|
+
if (!t)
|
|
13
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
14
|
+
const { id: s } = o;
|
|
15
|
+
return {
|
|
16
|
+
id: s,
|
|
17
|
+
name: t.name,
|
|
18
|
+
formItemId: `${s}-form-item`,
|
|
19
|
+
formDescriptionId: `${s}-form-item-description`,
|
|
20
|
+
formMessageId: `${s}-form-item-message`,
|
|
21
|
+
...n
|
|
22
|
+
};
|
|
23
|
+
}, l = e.createContext(
|
|
24
|
+
{}
|
|
25
|
+
), x = e.forwardRef(({ className: t, ...o }, r) => {
|
|
26
|
+
const m = e.useId();
|
|
27
|
+
return /* @__PURE__ */ e.createElement(l.Provider, { value: { id: m } }, /* @__PURE__ */ e.createElement("div", { ref: r, className: a("space-y-2", t), ...o }));
|
|
28
|
+
});
|
|
29
|
+
x.displayName = "FormItem";
|
|
30
|
+
const C = e.forwardRef(({ className: t, ...o }, r) => {
|
|
31
|
+
const { error: m, formItemId: n } = i();
|
|
32
|
+
return /* @__PURE__ */ e.createElement(
|
|
33
|
+
p,
|
|
34
|
+
{
|
|
35
|
+
ref: r,
|
|
36
|
+
className: a(m && "text-destructive", t),
|
|
37
|
+
htmlFor: n,
|
|
38
|
+
...o
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
C.displayName = "FormLabel";
|
|
43
|
+
const g = e.forwardRef(({ ...t }, o) => {
|
|
44
|
+
const { error: r, formItemId: m, formDescriptionId: n, formMessageId: s } = i();
|
|
45
|
+
return /* @__PURE__ */ e.createElement(
|
|
46
|
+
I,
|
|
47
|
+
{
|
|
48
|
+
ref: o,
|
|
49
|
+
id: m,
|
|
50
|
+
"aria-describedby": r ? `${n} ${s}` : `${n}`,
|
|
51
|
+
"aria-invalid": !!r,
|
|
52
|
+
...t
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
});
|
|
56
|
+
g.displayName = "FormControl";
|
|
57
|
+
const v = e.forwardRef(({ className: t, ...o }, r) => {
|
|
58
|
+
const { formDescriptionId: m } = i();
|
|
59
|
+
return /* @__PURE__ */ e.createElement(
|
|
60
|
+
"p",
|
|
61
|
+
{
|
|
62
|
+
ref: r,
|
|
63
|
+
id: m,
|
|
64
|
+
className: a("text-sm text-muted-foreground", t),
|
|
65
|
+
...o
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
});
|
|
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;
|
|
72
|
+
return d ? /* @__PURE__ */ e.createElement(
|
|
73
|
+
"p",
|
|
74
|
+
{
|
|
75
|
+
ref: m,
|
|
76
|
+
id: s,
|
|
77
|
+
className: a("text-sm font-medium text-destructive", t),
|
|
78
|
+
...r
|
|
79
|
+
},
|
|
80
|
+
d
|
|
81
|
+
) : null;
|
|
82
|
+
});
|
|
83
|
+
E.displayName = "FormMessage";
|
|
32
84
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
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,
|
|
92
|
+
i as useFormField
|
|
35
93
|
};
|
|
36
94
|
//# 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/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'\nimport { Label, labelVariants } from '@/components/ui/label'\n\nimport { Slot } from '@radix-ui/react-slot'\nimport { VariantProps } from 'class-variance-authority'\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 VariantProps<typeof labelVariants>\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":";;;;;AAiBA,MAAMA,IAAOC,GASPC,IAAmBC,EAAM;AAAA,EAC7B,CAAC;AACH,GAEMC,IAAY,CAGhB;AAAA,EACA,GAAGC;AACL,MAEK,gBAAAF,EAAA,cAAAD,EAAiB,UAAjB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IAVI;AAaX,CAAC;AACDF,EAAY,cAAc;"}
|
package/dist/index.es49.js
CHANGED
|
@@ -1,80 +1,93 @@
|
|
|
1
|
-
import * as a from "@radix-ui/react-
|
|
1
|
+
import * as a from "@radix-ui/react-dialog";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { ScrollArea as i } from "./index.es50.js";
|
|
4
|
+
import { X as d } from "lucide-react";
|
|
5
|
+
import { cn as l } from "./index.es54.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,
|
|
7
8
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className: l(
|
|
10
|
-
|
|
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
|
+
),
|
|
14
|
+
...o
|
|
11
15
|
}
|
|
12
16
|
));
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
));
|
|
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,
|
|
20
|
+
{
|
|
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
|
|
25
|
+
),
|
|
26
|
+
...s
|
|
27
|
+
},
|
|
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
|
|
51
43
|
}
|
|
52
44
|
);
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
|
|
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,
|
|
56
62
|
{
|
|
57
63
|
ref: s,
|
|
58
|
-
className:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t
|
|
71
|
-
|
|
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
|
+
}
|
|
72
79
|
));
|
|
73
|
-
|
|
80
|
+
u.displayName = a.Description.displayName;
|
|
74
81
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
|
79
92
|
};
|
|
80
93
|
//# 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/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from '@radix-ui/react-dialog'\r\nimport * as React from 'react'\r\n\r\nimport { ScrollArea } from './scroll-area'\r\nimport { X } from 'lucide-react'\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nconst Dialog = DialogPrimitive.Root\r\n\r\nconst DialogTrigger = DialogPrimitive.Trigger\r\n\r\nconst DialogPortal = DialogPrimitive.Portal\r\n\r\nconst DialogClose = DialogPrimitive.Close\r\n\r\nconst DialogOverlay = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Overlay\r\n ref={ref}\r\n className={cn(\r\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',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\r\n\r\nconst DialogContent = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\r\n>(({ className, children, ...props }, ref) => (\r\n <DialogPortal>\r\n <DialogOverlay />\r\n <DialogPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\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',\r\n className\r\n )}\r\n {...props}\r\n >\r\n <ScrollArea className=\"max-h-[calc(100dvh-1rem)]\">\r\n <div className=\"p-6\">{children}</div>\r\n </ScrollArea>\r\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\">\r\n <X className=\"h-4 w-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPortal>\r\n))\r\nDialogContent.displayName = DialogPrimitive.Content.displayName\r\n\r\nconst DialogHeader = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n 'flex flex-col space-y-1.5 text-center sm:text-left',\r\n className\r\n )}\r\n {...props}\r\n />\r\n)\r\nDialogHeader.displayName = 'DialogHeader'\r\n\r\nconst DialogFooter = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\r\n className\r\n )}\r\n {...props}\r\n />\r\n)\r\nDialogFooter.displayName = 'DialogFooter'\r\n\r\nconst DialogTitle = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Title\r\n ref={ref}\r\n className={cn(\r\n 'text-lg font-semibold leading-none tracking-tight',\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDialogTitle.displayName = DialogPrimitive.Title.displayName\r\n\r\nconst DialogDescription = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Description\r\n ref={ref}\r\n className={cn('text-sm text-muted-foreground', className)}\r\n {...props}\r\n />\r\n))\r\nDialogDescription.displayName = DialogPrimitive.Description.displayName\r\n\r\nexport {\r\n Dialog,\r\n DialogPortal,\r\n DialogOverlay,\r\n DialogClose,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n}\r\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;AAA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,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.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.es54.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,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import * as r from "@radix-ui/react-scroll-area";
|
|
3
|
+
import { cn as c } from "./index.es54.js";
|
|
4
|
+
const m = e.forwardRef(({ className: a, children: l, ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
5
|
+
r.Root,
|
|
6
6
|
{
|
|
7
|
-
ref:
|
|
8
|
-
className:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
}
|
|
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)
|
|
26
14
|
));
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
15
|
+
m.displayName = r.Root.displayName;
|
|
16
|
+
const n = e.forwardRef(({ className: a, orientation: l = "vertical", ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
17
|
+
r.ScrollAreaScrollbar,
|
|
30
18
|
{
|
|
31
|
-
ref:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
35
26
|
),
|
|
36
|
-
...
|
|
37
|
-
}
|
|
27
|
+
...o
|
|
28
|
+
},
|
|
29
|
+
/* @__PURE__ */ e.createElement(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
38
30
|
));
|
|
39
|
-
|
|
31
|
+
n.displayName = r.ScrollAreaScrollbar.displayName;
|
|
40
32
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
o as TabsList,
|
|
44
|
-
r as TabsTrigger
|
|
33
|
+
m as ScrollArea,
|
|
34
|
+
n as ScrollBar
|
|
45
35
|
};
|
|
46
36
|
//# sourceMappingURL=index.es50.js.map
|