@clasing/ui 0.1.123 → 0.1.124
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/badge-BnerQ2lF.js +85 -0
- package/dist/badge-Czof3oqL.cjs +1 -0
- package/dist/button-Cegl49Yi.cjs +1 -0
- package/dist/button-DddHyyHa.js +504 -0
- package/dist/calendar-BAQkzm4v.js +117 -0
- package/dist/calendar-DL8gqdRp.cjs +1 -0
- package/dist/card-BCgtou88.cjs +1 -0
- package/dist/card-BfBXE5Kq.js +90 -0
- package/dist/chip-A32aAc-8.cjs +1 -0
- package/dist/chip-ZZHZ8i1Q.js +127 -0
- package/dist/command-BGCSJ9vX.js +506 -0
- package/dist/command-D9M8dk1M.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -0
- package/dist/components/accordion.es.js +70 -0
- package/dist/components/alert-dialog.cjs.js +1 -0
- package/dist/components/alert-dialog.es.js +146 -0
- package/dist/components/alert.cjs.js +1 -0
- package/dist/components/alert.es.js +97 -0
- package/dist/components/avatar.cjs.js +1 -0
- package/dist/components/avatar.es.js +53 -0
- package/dist/components/badge.cjs.js +1 -0
- package/dist/components/badge.es.js +4 -0
- package/dist/components/blocks/date-picker.cjs.js +1 -0
- package/dist/components/blocks/date-picker.es.js +181 -0
- package/dist/components/blocks/date-range-picker.cjs.js +1 -0
- package/dist/components/blocks/date-range-picker.es.js +238 -0
- package/dist/components/blocks/interactive-card.cjs.js +1 -0
- package/dist/components/blocks/interactive-card.es.js +138 -0
- package/dist/components/blocks/selectable-chips.cjs.js +1 -0
- package/dist/components/blocks/selectable-chips.es.js +57 -0
- package/dist/components/breadcrumb.cjs.js +1 -0
- package/dist/components/breadcrumb.es.js +106 -0
- package/dist/components/button.cjs.js +1 -0
- package/dist/components/button.es.js +7 -0
- package/dist/components/calendar.cjs.js +1 -0
- package/dist/components/calendar.es.js +4 -0
- package/dist/components/card.cjs.js +1 -0
- package/dist/components/card.es.js +10 -0
- package/dist/components/chart.cjs.js +7 -0
- package/dist/components/chart.es.js +213 -0
- package/dist/components/checkbox.cjs.js +1 -0
- package/dist/components/checkbox.es.js +31 -0
- package/dist/components/chip.cjs.js +1 -0
- package/dist/components/chip.es.js +5 -0
- package/dist/components/collapsible.cjs.js +1 -0
- package/dist/components/collapsible.es.js +34 -0
- package/dist/components/command.cjs.js +1 -0
- package/dist/components/command.es.js +12 -0
- package/dist/components/context-menu.cjs.js +1 -0
- package/dist/components/context-menu.es.js +229 -0
- package/dist/components/dialog.cjs.js +1 -0
- package/dist/components/dialog.es.js +13 -0
- package/dist/components/divider.cjs.js +1 -0
- package/dist/components/divider.es.js +21 -0
- package/dist/components/drawer.cjs.js +3 -0
- package/dist/components/drawer.es.js +1161 -0
- package/dist/components/dropdown-menu.cjs.js +1 -0
- package/dist/components/dropdown-menu.es.js +237 -0
- package/dist/components/hover-card.cjs.js +1 -0
- package/dist/components/hover-card.es.js +38 -0
- package/dist/components/icon-component.cjs.js +1 -0
- package/dist/components/icon-component.es.js +4 -0
- package/dist/components/input-otp.cjs.js +20 -0
- package/dist/components/input-otp.es.js +253 -0
- package/dist/components/input.cjs.js +1 -0
- package/dist/components/input.es.js +4 -0
- package/dist/components/label.cjs.js +1 -0
- package/dist/components/label.es.js +4 -0
- package/dist/components/menubar.cjs.js +1 -0
- package/dist/components/menubar.es.js +257 -0
- package/dist/components/multi-select.cjs.js +1 -0
- package/dist/components/multi-select.es.js +233 -0
- package/dist/components/navigation-menu.cjs.js +1 -0
- package/dist/components/navigation-menu.es.js +171 -0
- package/dist/components/phone-input.cjs.js +1 -0
- package/dist/components/phone-input.es.js +253 -0
- package/dist/components/popover.cjs.js +1 -0
- package/dist/components/popover.es.js +7 -0
- package/dist/components/progress.cjs.js +1 -0
- package/dist/components/progress.es.js +31 -0
- package/dist/components/resizable.cjs.js +1 -0
- package/dist/components/resizable.es.js +1551 -0
- package/dist/components/scroll-area.cjs.js +1 -0
- package/dist/components/scroll-area.es.js +5 -0
- package/dist/components/select.cjs.js +1 -0
- package/dist/components/select.es.js +179 -0
- package/dist/components/sheet.cjs.js +1 -0
- package/dist/components/sheet.es.js +126 -0
- package/dist/components/skeleton.cjs.js +1 -0
- package/dist/components/skeleton.es.js +15 -0
- package/dist/components/slider.cjs.js +1 -0
- package/dist/components/slider.es.js +63 -0
- package/dist/components/sonner.cjs.js +1 -0
- package/dist/components/sonner.es.js +68 -0
- package/dist/components/switch.cjs.js +1 -0
- package/dist/components/switch.es.js +82 -0
- package/dist/components/table.cjs.js +1 -0
- package/dist/components/table.es.js +114 -0
- package/dist/components/toggle-group.cjs.js +1 -0
- package/dist/components/toggle-group.es.js +62 -0
- package/dist/components/toggle.cjs.js +1 -0
- package/dist/components/toggle.es.js +5 -0
- package/dist/components/tooltip.cjs.js +1 -0
- package/dist/components/tooltip.es.js +7 -0
- package/dist/dialog-BKm2PZl2.cjs +1 -0
- package/dist/dialog-DZpF7OXg.js +136 -0
- package/dist/hooks/useOutsideClick.cjs.js +1 -0
- package/dist/hooks/useOutsideClick.es.js +14 -0
- package/dist/icon-component-BZ-4FDV6.js +49 -0
- package/dist/icon-component-LY_vGYHZ.cjs +1 -0
- package/dist/index-BqtVL8d-.js +34 -0
- package/dist/index-C8P6Mn4U.cjs +1 -0
- package/dist/index-CRiPKpXj.js +2743 -0
- package/dist/index-DoxiiusW.cjs +1 -0
- package/dist/input-DFPJ_mtM.cjs +1 -0
- package/dist/input-DwPDvbRE.js +174 -0
- package/dist/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/jsx-runtime-DUiatUiq.cjs +22 -0
- package/dist/label-BpDUqtrC.js +22 -0
- package/dist/label-CbzkBbPT.cjs +1 -0
- package/dist/popover-B8wp2cHF.cjs +1 -0
- package/dist/popover-BoDRCUh2.js +44 -0
- package/dist/scroll-area-CNsThIs_.js +60 -0
- package/dist/scroll-area-Dr-7opp_.cjs +1 -0
- package/dist/style-BNIXVvBA.js +1172 -0
- package/dist/style-CA5976Oh.cjs +1 -0
- package/dist/toggle-Dgd7L2Mq.cjs +1 -0
- package/dist/toggle-DjbiWYXD.js +44 -0
- package/dist/tooltip-Btr9ROSo.js +55 -0
- package/dist/tooltip-W9iE1O--.cjs +1 -0
- package/dist/ui.css +427 -16
- package/dist/utils/types.cjs.js +1 -0
- package/dist/utils/types.es.js +1 -0
- package/package.json +299 -37
- package/dist/index.d.ts +0 -566
- package/dist/index.es.js +0 -7538
- package/dist/index.umd.js +0 -22
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { j as a } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as o } from "../index-CRiPKpXj.js";
|
|
3
|
+
function s({ className: t, ...e }) {
|
|
4
|
+
return /* @__PURE__ */ a.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "table-container",
|
|
8
|
+
className: "relative w-full overflow-x-auto",
|
|
9
|
+
children: /* @__PURE__ */ a.jsx(
|
|
10
|
+
"table",
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "table",
|
|
13
|
+
className: o("w-full caption-bottom text-sm", t),
|
|
14
|
+
...e
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function n({ className: t, ...e }) {
|
|
21
|
+
return /* @__PURE__ */ a.jsx(
|
|
22
|
+
"thead",
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "table-header",
|
|
25
|
+
className: o("[&_tr]:border-b", t),
|
|
26
|
+
...e
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function d({ className: t, ...e }) {
|
|
31
|
+
return /* @__PURE__ */ a.jsx(
|
|
32
|
+
"tbody",
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "table-body",
|
|
35
|
+
className: o("[&_tr:last-child]:border-0", t),
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function b({ className: t, ...e }) {
|
|
41
|
+
return /* @__PURE__ */ a.jsx(
|
|
42
|
+
"tfoot",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "table-footer",
|
|
45
|
+
className: o(
|
|
46
|
+
"bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",
|
|
47
|
+
t
|
|
48
|
+
),
|
|
49
|
+
...e
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function c({ className: t, ...e }) {
|
|
54
|
+
return /* @__PURE__ */ a.jsx(
|
|
55
|
+
"tr",
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "table-row",
|
|
58
|
+
className: o(
|
|
59
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
60
|
+
t
|
|
61
|
+
),
|
|
62
|
+
...e
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function i({ className: t, ...e }) {
|
|
67
|
+
return /* @__PURE__ */ a.jsx(
|
|
68
|
+
"th",
|
|
69
|
+
{
|
|
70
|
+
"data-slot": "table-head",
|
|
71
|
+
className: o(
|
|
72
|
+
"text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
73
|
+
t
|
|
74
|
+
),
|
|
75
|
+
...e
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function m({ className: t, ...e }) {
|
|
80
|
+
return /* @__PURE__ */ a.jsx(
|
|
81
|
+
"td",
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "table-cell",
|
|
84
|
+
className: o(
|
|
85
|
+
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
86
|
+
t
|
|
87
|
+
),
|
|
88
|
+
...e
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function u({
|
|
93
|
+
className: t,
|
|
94
|
+
...e
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ a.jsx(
|
|
97
|
+
"caption",
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "table-caption",
|
|
100
|
+
className: o("text-muted-foreground mt-4 text-sm", t),
|
|
101
|
+
...e
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
s as Table,
|
|
107
|
+
d as TableBody,
|
|
108
|
+
u as TableCaption,
|
|
109
|
+
m as TableCell,
|
|
110
|
+
b as TableFooter,
|
|
111
|
+
i as TableHead,
|
|
112
|
+
n as TableHeader,
|
|
113
|
+
c as TableRow
|
|
114
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../jsx-runtime-DUiatUiq.cjs"),g=require("@radix-ui/react-toggle-group"),m=require("react"),p=require("../toggle-Dgd7L2Mq.cjs"),s=require("../index-DoxiiusW.cjs");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const l=u(g),c=u(m),d=c.createContext({size:"md",variant:"default"});function f({className:t,variant:o,size:e,children:r,...a}){return i.jsxRuntimeExports.jsx(l.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:s.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...a,children:i.jsxRuntimeExports.jsx(d.Provider,{value:{variant:o,size:e},children:r})})}function x({className:t,children:o,variant:e,size:r,...a}){const n=c.useContext(d);return i.jsxRuntimeExports.jsx(l.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||e,"data-size":n.size||r,className:s.cn(p.toggleVariants({variant:n.variant||e,size:n.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...a,children:o})}exports.ToggleGroup=f;exports.ToggleGroupItem=x;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { j as n } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as s from "@radix-ui/react-toggle-group";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { t as m } from "../toggle-DjbiWYXD.js";
|
|
5
|
+
import { c as l } from "../index-CRiPKpXj.js";
|
|
6
|
+
const u = d.createContext({
|
|
7
|
+
size: "md",
|
|
8
|
+
variant: "default"
|
|
9
|
+
});
|
|
10
|
+
function c({
|
|
11
|
+
className: a,
|
|
12
|
+
variant: o,
|
|
13
|
+
size: t,
|
|
14
|
+
children: e,
|
|
15
|
+
...i
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ n.jsx(
|
|
18
|
+
s.Root,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "toggle-group",
|
|
21
|
+
"data-variant": o,
|
|
22
|
+
"data-size": t,
|
|
23
|
+
className: l(
|
|
24
|
+
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
25
|
+
a
|
|
26
|
+
),
|
|
27
|
+
...i,
|
|
28
|
+
children: /* @__PURE__ */ n.jsx(u.Provider, { value: { variant: o, size: t }, children: e })
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function x({
|
|
33
|
+
className: a,
|
|
34
|
+
children: o,
|
|
35
|
+
variant: t,
|
|
36
|
+
size: e,
|
|
37
|
+
...i
|
|
38
|
+
}) {
|
|
39
|
+
const r = d.useContext(u);
|
|
40
|
+
return /* @__PURE__ */ n.jsx(
|
|
41
|
+
s.Item,
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "toggle-group-item",
|
|
44
|
+
"data-variant": r.variant || t,
|
|
45
|
+
"data-size": r.size || e,
|
|
46
|
+
className: l(
|
|
47
|
+
m({
|
|
48
|
+
variant: r.variant || t,
|
|
49
|
+
size: r.size || e
|
|
50
|
+
}),
|
|
51
|
+
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
52
|
+
a
|
|
53
|
+
),
|
|
54
|
+
...i,
|
|
55
|
+
children: o
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
c as ToggleGroup,
|
|
61
|
+
x as ToggleGroupItem
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-Dgd7L2Mq.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-W9iE1O--.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-DUiatUiq.cjs"),d=require("@radix-ui/react-dialog"),n=require("./index-DoxiiusW.cjs"),c=require("./icon-component-LY_vGYHZ.cjs");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=u(d);function g({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function p({className:t,children:e,showCloseButton:s=!0,...i}){return o.jsxRuntimeExports.jsxs(r,{"data-slot":"dialog-portal",children:[o.jsxRuntimeExports.jsx(l,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.cn("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[e,s&&o.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconX"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function D({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("text-lg leading-none font-semibold",t),...e})}function R({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Dialog=g;exports.DialogClose=m;exports.DialogContent=p;exports.DialogDescription=R;exports.DialogFooter=j;exports.DialogHeader=f;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=D;exports.DialogTrigger=x;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as e from "@radix-ui/react-dialog";
|
|
3
|
+
import { c as s } from "./index-CRiPKpXj.js";
|
|
4
|
+
import { I as l } from "./icon-component-BZ-4FDV6.js";
|
|
5
|
+
function f({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ a.jsx(e.Root, { "data-slot": "dialog", ...t });
|
|
9
|
+
}
|
|
10
|
+
function m({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ a.jsx(e.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
14
|
+
}
|
|
15
|
+
function r({
|
|
16
|
+
...t
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ a.jsx(e.Portal, { "data-slot": "dialog-portal", ...t });
|
|
19
|
+
}
|
|
20
|
+
function x({
|
|
21
|
+
...t
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ a.jsx(e.Close, { "data-slot": "dialog-close", ...t });
|
|
24
|
+
}
|
|
25
|
+
function d({
|
|
26
|
+
className: t,
|
|
27
|
+
...o
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ a.jsx(
|
|
30
|
+
e.Overlay,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "dialog-overlay",
|
|
33
|
+
className: s(
|
|
34
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
35
|
+
t
|
|
36
|
+
),
|
|
37
|
+
...o
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function p({
|
|
42
|
+
className: t,
|
|
43
|
+
children: o,
|
|
44
|
+
showCloseButton: n = !0,
|
|
45
|
+
...i
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ a.jsxs(r, { "data-slot": "dialog-portal", children: [
|
|
48
|
+
/* @__PURE__ */ a.jsx(d, {}),
|
|
49
|
+
/* @__PURE__ */ a.jsxs(
|
|
50
|
+
e.Content,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "dialog-content",
|
|
53
|
+
className: s(
|
|
54
|
+
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
55
|
+
t
|
|
56
|
+
),
|
|
57
|
+
...i,
|
|
58
|
+
children: [
|
|
59
|
+
o,
|
|
60
|
+
n && /* @__PURE__ */ a.jsxs(
|
|
61
|
+
e.Close,
|
|
62
|
+
{
|
|
63
|
+
"data-slot": "dialog-close",
|
|
64
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ a.jsx(l, { iconName: "IconX" }),
|
|
67
|
+
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
function j({ className: t, ...o }) {
|
|
77
|
+
return /* @__PURE__ */ a.jsx(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
"data-slot": "dialog-header",
|
|
81
|
+
className: s("flex flex-col gap-2 text-center sm:text-left", t),
|
|
82
|
+
...o
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
function D({ className: t, ...o }) {
|
|
87
|
+
return /* @__PURE__ */ a.jsx(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
"data-slot": "dialog-footer",
|
|
91
|
+
className: s(
|
|
92
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
93
|
+
t
|
|
94
|
+
),
|
|
95
|
+
...o
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
function v({
|
|
100
|
+
className: t,
|
|
101
|
+
...o
|
|
102
|
+
}) {
|
|
103
|
+
return /* @__PURE__ */ a.jsx(
|
|
104
|
+
e.Title,
|
|
105
|
+
{
|
|
106
|
+
"data-slot": "dialog-title",
|
|
107
|
+
className: s("text-lg leading-none font-semibold", t),
|
|
108
|
+
...o
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function b({
|
|
113
|
+
className: t,
|
|
114
|
+
...o
|
|
115
|
+
}) {
|
|
116
|
+
return /* @__PURE__ */ a.jsx(
|
|
117
|
+
e.Description,
|
|
118
|
+
{
|
|
119
|
+
"data-slot": "dialog-description",
|
|
120
|
+
className: s("text-muted-foreground text-sm", t),
|
|
121
|
+
...o
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
f as D,
|
|
127
|
+
x as a,
|
|
128
|
+
p as b,
|
|
129
|
+
b as c,
|
|
130
|
+
D as d,
|
|
131
|
+
j as e,
|
|
132
|
+
d as f,
|
|
133
|
+
r as g,
|
|
134
|
+
v as h,
|
|
135
|
+
m as i
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),c=({ref:e,handler:t})=>{u.useEffect(()=>{const n=s=>{e.current&&!e.current.contains(s.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])};module.exports=c;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect as s } from "react";
|
|
2
|
+
const c = ({ ref: e, handler: t }) => {
|
|
3
|
+
s(() => {
|
|
4
|
+
const n = (o) => {
|
|
5
|
+
e.current && !e.current.contains(o.target) && t();
|
|
6
|
+
};
|
|
7
|
+
return document.addEventListener("mousedown", n), () => {
|
|
8
|
+
document.removeEventListener("mousedown", n);
|
|
9
|
+
};
|
|
10
|
+
}, [e, t]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as l } from "./index-CRiPKpXj.js";
|
|
3
|
+
import * as i from "@tabler/icons-react";
|
|
4
|
+
import { forwardRef as f } from "react";
|
|
5
|
+
const m = f(
|
|
6
|
+
({ iconName: o, iconText: r, stroke: c = "1.5", onClick: a, size: e = 24, ...s }, p) => {
|
|
7
|
+
if (o) {
|
|
8
|
+
const n = i[o];
|
|
9
|
+
return /* @__PURE__ */ t.jsx(
|
|
10
|
+
n,
|
|
11
|
+
{
|
|
12
|
+
role: "img",
|
|
13
|
+
ref: p,
|
|
14
|
+
stroke: c,
|
|
15
|
+
onClick: a,
|
|
16
|
+
size: e,
|
|
17
|
+
className: l("pointer-events-none", s.className),
|
|
18
|
+
...s
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
} else if (r) {
|
|
22
|
+
const n = r.slice(0, 2).toUpperCase();
|
|
23
|
+
return /* @__PURE__ */ t.jsx(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: "pointer-events-none flex items-center justify-center",
|
|
27
|
+
style: { width: e, height: e },
|
|
28
|
+
role: "img",
|
|
29
|
+
children: /* @__PURE__ */ t.jsx(
|
|
30
|
+
"p",
|
|
31
|
+
{
|
|
32
|
+
className: l({
|
|
33
|
+
"text-label-sm": e <= 16,
|
|
34
|
+
"text-label-md": e > 16
|
|
35
|
+
}),
|
|
36
|
+
children: n
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
} else
|
|
42
|
+
return console.error(`Icon ${o} not found`), null;
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
m.displayName = "IconComponent";
|
|
46
|
+
const I = m;
|
|
47
|
+
export {
|
|
48
|
+
I
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./jsx-runtime-DUiatUiq.cjs"),a=require("./index-DoxiiusW.cjs"),m=require("@tabler/icons-react"),p=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=f(m),i=p.forwardRef(({iconName:e,iconText:t,stroke:n="1.5",onClick:r,size:o=24,...l},u)=>{if(e){const s=d[e];return c.jsxRuntimeExports.jsx(s,{role:"img",ref:u,stroke:n,onClick:r,size:o,className:a.cn("pointer-events-none",l.className),...l})}else if(t){const s=t.slice(0,2).toUpperCase();return c.jsxRuntimeExports.jsx("div",{className:"pointer-events-none flex items-center justify-center",style:{width:o,height:o},role:"img",children:c.jsxRuntimeExports.jsx("p",{className:a.cn({"text-label-sm":o<=16,"text-label-md":o>16}),children:s})})}else return console.error(`Icon ${e} not found`),null});i.displayName="IconComponent";const x=i;exports.IconComponent=x;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { a as O } from "./index-CRiPKpXj.js";
|
|
2
|
+
const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
|
+
var u;
|
|
4
|
+
if (l?.variants == null) return y(e, n?.class, n?.className);
|
|
5
|
+
const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
|
|
6
|
+
const a = n?.[t], s = d?.[t];
|
|
7
|
+
if (a === null) return null;
|
|
8
|
+
const i = m(a) || m(s);
|
|
9
|
+
return r[t][i];
|
|
10
|
+
}), v = n && Object.entries(n).reduce((t, a) => {
|
|
11
|
+
let [s, i] = a;
|
|
12
|
+
return i === void 0 || (t[s] = i), t;
|
|
13
|
+
}, {}), N = l == null || (u = l.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((t, a) => {
|
|
14
|
+
let { class: s, className: i, ...f } = a;
|
|
15
|
+
return Object.entries(f).every((C) => {
|
|
16
|
+
let [c, o] = C;
|
|
17
|
+
return Array.isArray(o) ? o.includes({
|
|
18
|
+
...d,
|
|
19
|
+
...v
|
|
20
|
+
}[c]) : {
|
|
21
|
+
...d,
|
|
22
|
+
...v
|
|
23
|
+
}[c] === o;
|
|
24
|
+
}) ? [
|
|
25
|
+
...t,
|
|
26
|
+
s,
|
|
27
|
+
i
|
|
28
|
+
] : t;
|
|
29
|
+
}, []);
|
|
30
|
+
return y(e, V, N, n?.class, n?.className);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
j as c
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("./index-DoxiiusW.cjs"),m=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=O.clsx,b=(t,l)=>n=>{var u;if(l?.variants==null)return y(t,n?.class,n?.className);const{variants:o,defaultVariants:d}=l,V=Object.keys(o).map(e=>{const a=n?.[e],s=d?.[e];if(a===null)return null;const i=m(a)||m(s);return o[e][i]}),v=n&&Object.entries(n).reduce((e,a)=>{let[s,i]=a;return i===void 0||(e[s]=i),e},{}),N=l==null||(u=l.compoundVariants)===null||u===void 0?void 0:u.reduce((e,a)=>{let{class:s,className:i,...C}=a;return Object.entries(C).every(f=>{let[c,r]=f;return Array.isArray(r)?r.includes({...d,...v}[c]):{...d,...v}[c]===r})?[...e,s,i]:e},[]);return y(t,V,N,n?.class,n?.className)};exports.cva=b;
|