@plyaz/ui 0.7.10 → 0.7.11
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/Button-BBFJyA3y.js +89 -0
- package/dist/Button-oW9LiTe6.cjs +39 -0
- package/dist/Skeleton-BuCmZ9yF.cjs +1 -0
- package/dist/Skeleton-Cj9Od_Nd.js +37 -0
- package/dist/Textarea-CLBbcfr_.cjs +24 -0
- package/dist/Textarea-nx_ki3Gv.js +837 -0
- package/dist/client/accordion.cjs.js +1 -0
- package/dist/client/accordion.es.js +62 -0
- package/dist/client/alert-dialog.cjs.js +1 -0
- package/dist/client/alert-dialog.es.js +127 -0
- package/dist/client/avatar.cjs.js +1 -0
- package/dist/client/avatar.es.js +41 -0
- package/dist/client/calendar.cjs.js +1 -0
- package/dist/client/calendar.es.js +160 -0
- package/dist/client/carousel.cjs.js +1 -0
- package/dist/client/carousel.es.js +170 -0
- package/dist/client/checkbox.cjs.js +1 -0
- package/dist/client/checkbox.es.js +28 -0
- package/dist/client/combobox.cjs.js +1 -0
- package/dist/client/combobox.es.js +77 -0
- package/dist/client/command.cjs.js +1 -0
- package/dist/client/command.es.js +143 -0
- package/dist/client/context-menu.cjs.js +1 -0
- package/dist/client/context-menu.es.js +200 -0
- package/dist/client/dialog.cjs.js +1 -0
- package/dist/client/dialog.es.js +122 -0
- package/dist/client/drawer.cjs.js +1 -0
- package/dist/client/drawer.es.js +117 -0
- package/dist/client/dropdown-menu.cjs.js +1 -0
- package/dist/client/dropdown-menu.es.js +204 -0
- package/dist/client/hover-card.cjs.js +1 -0
- package/dist/client/hover-card.es.js +34 -0
- package/dist/client/input-otp.cjs.js +1 -0
- package/dist/client/input-otp.es.js +55 -0
- package/dist/client/label.cjs.js +1 -0
- package/dist/client/label.es.js +19 -0
- package/dist/client/menu-bar.cjs.js +1 -0
- package/dist/client/menu-bar.es.js +229 -0
- package/dist/client/popover.cjs.js +1 -0
- package/dist/client/popover.es.js +38 -0
- package/dist/client/progress.cjs.js +1 -0
- package/dist/client/progress.es.js +29 -0
- package/dist/client/radio-group.cjs.js +1 -0
- package/dist/client/radio-group.es.js +45 -0
- package/dist/client/reveal-text.cjs.js +1 -0
- package/dist/client/reveal-text.es.js +5066 -0
- package/dist/client/scroll-area.cjs.js +1 -0
- package/dist/client/scroll-area.es.js +60 -0
- package/dist/client/sheet.cjs.js +1 -0
- package/dist/client/sheet.es.js +117 -0
- package/dist/client/slider.cjs.js +1 -0
- package/dist/client/slider.es.js +63 -0
- package/dist/client/switch.cjs.js +1 -0
- package/dist/client/switch.es.js +28 -0
- package/dist/client/tabs.cjs.js +1 -0
- package/dist/client/tabs.es.js +55 -0
- package/dist/client/toaster.cjs.js +1 -0
- package/dist/client/toaster.es.js +22 -0
- package/dist/client/toggle.cjs.js +1 -0
- package/dist/client/toggle.es.js +43 -0
- package/dist/client/tooltip.cjs.js +1 -0
- package/dist/client/tooltip.es.js +51 -0
- package/dist/client.cjs.js +1 -93
- package/dist/client.es.js +495 -21191
- package/dist/index.cjs.js +6 -6
- package/dist/index.es.js +285 -538
- package/dist/types/client/accordion.d.ts +2 -0
- package/dist/types/client/alert-dialog.d.ts +2 -0
- package/dist/types/client/avatar.d.ts +2 -0
- package/dist/types/client/calendar.d.ts +2 -0
- package/dist/types/client/carousel.d.ts +2 -0
- package/dist/types/client/checkbox.d.ts +2 -0
- package/dist/types/client/combobox.d.ts +2 -0
- package/dist/types/client/command.d.ts +2 -0
- package/dist/types/client/context-menu.d.ts +2 -0
- package/dist/types/client/dialog.d.ts +2 -0
- package/dist/types/client/drawer.d.ts +2 -0
- package/dist/types/client/dropdown-menu.d.ts +2 -0
- package/dist/types/client/hover-card.d.ts +2 -0
- package/dist/types/client/input-otp.d.ts +2 -0
- package/dist/types/client/label.d.ts +2 -0
- package/dist/types/client/menu-bar.d.ts +2 -0
- package/dist/types/client/popover.d.ts +2 -0
- package/dist/types/client/progress.d.ts +2 -0
- package/dist/types/client/radio-group.d.ts +2 -0
- package/dist/types/client/reveal-text.d.ts +2 -0
- package/dist/types/client/scroll-area.d.ts +2 -0
- package/dist/types/client/sheet.d.ts +2 -0
- package/dist/types/client/slider.d.ts +2 -0
- package/dist/types/client/switch.d.ts +2 -0
- package/dist/types/client/tabs.d.ts +2 -0
- package/dist/types/client/toaster.d.ts +2 -0
- package/dist/types/client/toggle.d.ts +2 -0
- package/dist/types/client/tooltip.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/types/components/Label/Label.stories.d.ts +1 -1
- package/dist/types/components/Label/Label.stories.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/types/components/client.d.ts +1 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/utils-B6yFEsav.js +8 -0
- package/dist/utils-IjLH3w2e.cjs +1 -0
- package/package.json +186 -1
- package/dist/Skeleton-Bn2Kdinb.cjs +0 -62
- package/dist/Skeleton-CnBXKh2c.js +0 -3511
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),a=require("@radix-ui/react-accordion"),s=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=d(a);function l({...e}){return o.jsx(r.Root,{"data-slot":"accordion",...e})}function u({className:e,...t}){return o.jsx(r.Item,{"data-slot":"accordion-item",className:i.cn("border-b last:border-b-0",e),...t})}function m({className:e,children:t,...n}){return o.jsx(r.Header,{className:"flex",children:o.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:i.cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,o.jsx(s.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function f({className:e,children:t,...n}){return o.jsx(r.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:o.jsx("div",{className:i.cn("pt-0 pb-4",e),children:t})})}exports.Accordion=l;exports.AccordionContent=f;exports.AccordionItem=u;exports.AccordionTrigger=m;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "@radix-ui/react-accordion";
|
|
3
|
+
import { ChevronDownIcon as s } from "lucide-react";
|
|
4
|
+
import { c as i } from "../utils-B6yFEsav.js";
|
|
5
|
+
function m({ ...t }) {
|
|
6
|
+
return /* @__PURE__ */ e(n.Root, { "data-slot": "accordion", ...t });
|
|
7
|
+
}
|
|
8
|
+
function f({
|
|
9
|
+
className: t,
|
|
10
|
+
...o
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
n.Item,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "accordion-item",
|
|
16
|
+
className: i("border-b last:border-b-0", t),
|
|
17
|
+
...o
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function u({
|
|
22
|
+
className: t,
|
|
23
|
+
children: o,
|
|
24
|
+
...r
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ e(n.Header, { className: "flex", children: /* @__PURE__ */ a(
|
|
27
|
+
n.Trigger,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "accordion-trigger",
|
|
30
|
+
className: i(
|
|
31
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
32
|
+
t
|
|
33
|
+
),
|
|
34
|
+
...r,
|
|
35
|
+
children: [
|
|
36
|
+
o,
|
|
37
|
+
/* @__PURE__ */ e(s, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
) });
|
|
41
|
+
}
|
|
42
|
+
function p({
|
|
43
|
+
className: t,
|
|
44
|
+
children: o,
|
|
45
|
+
...r
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ e(
|
|
48
|
+
n.Content,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "accordion-content",
|
|
51
|
+
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
52
|
+
...r,
|
|
53
|
+
children: /* @__PURE__ */ e("div", { className: i("pt-0 pb-4", t), children: o })
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
m as Accordion,
|
|
59
|
+
p as AccordionContent,
|
|
60
|
+
f as AccordionItem,
|
|
61
|
+
u as AccordionTrigger
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-alert-dialog"),o=require("../utils-IjLH3w2e.cjs"),i=require("../Button-oW9LiTe6.cjs");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const l=g(d);function u({...t}){return a.jsx(l.Root,{"data-slot":"alert-dialog",...t})}function f({...t}){return a.jsx(l.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsx(l.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsx(l.Overlay,{"data-slot":"alert-dialog-overlay",className:o.cn("z-50 fixed inset-0 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e})}function m({className:t,...e}){return a.jsxs(s,{children:[a.jsx(c,{}),a.jsx(l.Content,{"data-slot":"alert-dialog-content",className:o.cn("top-[50%] left-[50%] z-50 fixed gap-4 grid bg-background shadow-lg p-6 border border-subtle rounded-md w-full max-w-[calc(100%-2rem)] sm:max-w-lg translate-x-[-50%] translate-y-[-50%] data-[state=closed]:animate-out data-[state=open]:animate-in duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",t),...e})]})}function x({className:t,...e}){return a.jsx("div",{"data-slot":"alert-dialog-header",className:o.cn("flex flex-col gap-2 sm:text-left text-center",t),...e})}function D({className:t,...e}){return a.jsx("div",{"data-slot":"alert-dialog-footer",className:o.cn("flex sm:flex-row flex-col-reverse sm:justify-end gap-2",t),...e})}function A({className:t,...e}){return a.jsx(l.Title,{"data-slot":"alert-dialog-title",className:o.cn("text-primary-foreground font-semibold text-lg",t),...e})}function p({className:t,...e}){return a.jsx(l.Description,{"data-slot":"alert-dialog-description",className:o.cn("text-secondary-foreground text-sm",t),...e})}function j({className:t,...e}){return a.jsx(l.Action,{className:o.cn(i.buttonVariants(),t),...e})}function b({className:t,...e}){return a.jsx(l.Cancel,{className:o.cn(i.buttonVariants({variant:"outline"}),t),...e})}exports.AlertDialog=u;exports.AlertDialogAction=j;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=p;exports.AlertDialogFooter=D;exports.AlertDialogHeader=x;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=A;exports.AlertDialogTrigger=f;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-alert-dialog";
|
|
3
|
+
import { c as l } from "../utils-B6yFEsav.js";
|
|
4
|
+
import { b as r } from "../Button-BBFJyA3y.js";
|
|
5
|
+
function u({ ...t }) {
|
|
6
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "alert-dialog", ...t });
|
|
7
|
+
}
|
|
8
|
+
function f({
|
|
9
|
+
...t
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
|
|
12
|
+
}
|
|
13
|
+
function i({ ...t }) {
|
|
14
|
+
return /* @__PURE__ */ e(o.Portal, { "data-slot": "alert-dialog-portal", ...t });
|
|
15
|
+
}
|
|
16
|
+
function s({
|
|
17
|
+
className: t,
|
|
18
|
+
...a
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ e(
|
|
21
|
+
o.Overlay,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "alert-dialog-overlay",
|
|
24
|
+
className: l(
|
|
25
|
+
"z-50 fixed inset-0 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
26
|
+
t
|
|
27
|
+
),
|
|
28
|
+
...a
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function m({
|
|
33
|
+
className: t,
|
|
34
|
+
...a
|
|
35
|
+
}) {
|
|
36
|
+
return /* @__PURE__ */ n(i, { children: [
|
|
37
|
+
/* @__PURE__ */ e(s, {}),
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
o.Content,
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "alert-dialog-content",
|
|
42
|
+
className: l(
|
|
43
|
+
"top-[50%] left-[50%] z-50 fixed gap-4 grid bg-background shadow-lg p-6 border border-subtle rounded-md w-full max-w-[calc(100%-2rem)] sm:max-w-lg translate-x-[-50%] translate-y-[-50%] data-[state=closed]:animate-out data-[state=open]:animate-in duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
44
|
+
t
|
|
45
|
+
),
|
|
46
|
+
...a
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] });
|
|
50
|
+
}
|
|
51
|
+
function p({ className: t, ...a }) {
|
|
52
|
+
return /* @__PURE__ */ e(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
"data-slot": "alert-dialog-header",
|
|
56
|
+
className: l("flex flex-col gap-2 sm:text-left text-center", t),
|
|
57
|
+
...a
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function x({ className: t, ...a }) {
|
|
62
|
+
return /* @__PURE__ */ e(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "alert-dialog-footer",
|
|
66
|
+
className: l("flex sm:flex-row flex-col-reverse sm:justify-end gap-2", t),
|
|
67
|
+
...a
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
function A({
|
|
72
|
+
className: t,
|
|
73
|
+
...a
|
|
74
|
+
}) {
|
|
75
|
+
return /* @__PURE__ */ e(
|
|
76
|
+
o.Title,
|
|
77
|
+
{
|
|
78
|
+
"data-slot": "alert-dialog-title",
|
|
79
|
+
className: l("text-primary-foreground font-semibold text-lg", t),
|
|
80
|
+
...a
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function D({
|
|
85
|
+
className: t,
|
|
86
|
+
...a
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ e(
|
|
89
|
+
o.Description,
|
|
90
|
+
{
|
|
91
|
+
"data-slot": "alert-dialog-description",
|
|
92
|
+
className: l("text-secondary-foreground text-sm", t),
|
|
93
|
+
...a
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
function b({
|
|
98
|
+
className: t,
|
|
99
|
+
...a
|
|
100
|
+
}) {
|
|
101
|
+
return /* @__PURE__ */ e(o.Action, { className: l(r(), t), ...a });
|
|
102
|
+
}
|
|
103
|
+
function v({
|
|
104
|
+
className: t,
|
|
105
|
+
...a
|
|
106
|
+
}) {
|
|
107
|
+
return /* @__PURE__ */ e(
|
|
108
|
+
o.Cancel,
|
|
109
|
+
{
|
|
110
|
+
className: l(r({ variant: "outline" }), t),
|
|
111
|
+
...a
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
u as AlertDialog,
|
|
117
|
+
b as AlertDialogAction,
|
|
118
|
+
v as AlertDialogCancel,
|
|
119
|
+
m as AlertDialogContent,
|
|
120
|
+
D as AlertDialogDescription,
|
|
121
|
+
x as AlertDialogFooter,
|
|
122
|
+
p as AlertDialogHeader,
|
|
123
|
+
s as AlertDialogOverlay,
|
|
124
|
+
i as AlertDialogPortal,
|
|
125
|
+
A as AlertDialogTitle,
|
|
126
|
+
f as AlertDialogTrigger
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("@radix-ui/react-avatar"),n=require("../utils-IjLH3w2e.cjs");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=s(i);function u({className:e,...t}){return r.jsx(l.Root,{"data-slot":"avatar",className:n.cn("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function o({className:e,...t}){return r.jsx(l.Image,{"data-slot":"avatar-image",className:n.cn("aspect-square size-full",e),...t})}function f({className:e,...t}){return r.jsx(l.Fallback,{"data-slot":"avatar-fallback",className:n.cn("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}exports.Avatar=u;exports.AvatarFallback=f;exports.AvatarImage=o;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "@radix-ui/react-avatar";
|
|
3
|
+
import { c as l } from "../utils-B6yFEsav.js";
|
|
4
|
+
function i({ className: a, ...t }) {
|
|
5
|
+
return /* @__PURE__ */ e(
|
|
6
|
+
r.Root,
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "avatar",
|
|
9
|
+
className: l("relative flex size-8 shrink-0 overflow-hidden rounded-full", a),
|
|
10
|
+
...t
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
function n({ className: a, ...t }) {
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
16
|
+
r.Image,
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "avatar-image",
|
|
19
|
+
className: l("aspect-square size-full", a),
|
|
20
|
+
...t
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
function f({
|
|
25
|
+
className: a,
|
|
26
|
+
...t
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ e(
|
|
29
|
+
r.Fallback,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "avatar-fallback",
|
|
32
|
+
className: l("bg-muted flex size-full items-center justify-center rounded-full", a),
|
|
33
|
+
...t
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
i as Avatar,
|
|
39
|
+
f as AvatarFallback,
|
|
40
|
+
n as AvatarImage
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),_=require("react"),f=require("lucide-react"),m=require("react-day-picker"),e=require("../utils-IjLH3w2e.cjs");require("../Textarea-CLBbcfr_.cjs");const p=require("../Button-oW9LiTe6.cjs");require("@radix-ui/react-select");require("next-intl");require("@radix-ui/react-slot");require("@radix-ui/react-separator");function w(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}return o.default=n,Object.freeze(o)}const x=w(_);function h({className:n,classNames:o,showOutsideDays:r=!0,captionLayout:s="label",buttonVariant:l="ghost",formatters:i,components:g,...y}){const t=m.getDefaultClassNames();return d.jsx(m.DayPicker,{showOutsideDays:r,className:e.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,n),captionLayout:s,formatters:{formatMonthDropdown:a=>a.toLocaleString("default",{month:"short"}),...i},classNames:{root:e.cn("w-fit",t.root),months:e.cn("flex gap-4 flex-col md:flex-row relative",t.months),month:e.cn("flex flex-col w-full gap-4",t.month),nav:e.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",t.nav),button_previous:e.cn(p.buttonVariants({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_previous),button_next:e.cn(p.buttonVariants({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_next),month_caption:e.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",t.month_caption),dropdowns:e.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",t.dropdowns),dropdown_root:e.cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",t.dropdown_root),dropdown:e.cn("absolute bg-popover inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",s==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("select-none w-(--cell-size)",t.week_number_header),week_number:e.cn("text-[0.8rem] select-none text-muted-foreground",t.week_number),day:e.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",t.day),range_start:e.cn("rounded-l-md bg-accent",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("rounded-r-md bg-accent",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-muted-foreground opacity-50",t.disabled),hidden:e.cn("invisible",t.hidden),...o},components:{Root:({className:a,rootRef:c,...u})=>d.jsx("div",{"data-slot":"calendar",ref:c,className:e.cn(a),...u}),Chevron:({className:a,orientation:c,...u})=>c==="left"?d.jsx(f.ChevronLeftIcon,{className:e.cn("size-4",a),...u}):c==="right"?d.jsx(f.ChevronRightIcon,{className:e.cn("size-4",a),...u}):d.jsx(f.ChevronDownIcon,{className:e.cn("size-4",a),...u}),DayButton:b,WeekNumber:({children:a,...c})=>d.jsx("td",{...c,children:d.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:a})}),...g},...y})}function b({className:n,day:o,modifiers:r,...s}){const l=m.getDefaultClassNames(),i=x.useRef(null);return x.useEffect(()=>{var g;r.focused&&((g=i.current)==null||g.focus())},[r.focused]),d.jsx(p.Button,{ref:i,variant:"ghost",size:"icon","data-day":o.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:e.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",l.day,n),...s})}exports.Calendar=h;exports.CalendarDayButton=b;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { ChevronLeftIcon as b, ChevronRightIcon as w, ChevronDownIcon as _ } from "lucide-react";
|
|
4
|
+
import { getDefaultClassNames as p, DayPicker as h } from "react-day-picker";
|
|
5
|
+
import { c as e } from "../utils-B6yFEsav.js";
|
|
6
|
+
import "../Textarea-nx_ki3Gv.js";
|
|
7
|
+
import { b as f, B as y } from "../Button-BBFJyA3y.js";
|
|
8
|
+
import "@radix-ui/react-select";
|
|
9
|
+
import "next-intl";
|
|
10
|
+
import "@radix-ui/react-slot";
|
|
11
|
+
import "@radix-ui/react-separator";
|
|
12
|
+
function q({
|
|
13
|
+
className: i,
|
|
14
|
+
classNames: g,
|
|
15
|
+
showOutsideDays: r = !0,
|
|
16
|
+
captionLayout: s = "label",
|
|
17
|
+
buttonVariant: l = "ghost",
|
|
18
|
+
formatters: u,
|
|
19
|
+
components: c,
|
|
20
|
+
...x
|
|
21
|
+
}) {
|
|
22
|
+
const t = p();
|
|
23
|
+
return /* @__PURE__ */ n(
|
|
24
|
+
h,
|
|
25
|
+
{
|
|
26
|
+
showOutsideDays: r,
|
|
27
|
+
className: e(
|
|
28
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
29
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
30
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
31
|
+
i
|
|
32
|
+
),
|
|
33
|
+
captionLayout: s,
|
|
34
|
+
formatters: {
|
|
35
|
+
formatMonthDropdown: (a) => a.toLocaleString("default", { month: "short" }),
|
|
36
|
+
...u
|
|
37
|
+
},
|
|
38
|
+
classNames: {
|
|
39
|
+
root: e("w-fit", t.root),
|
|
40
|
+
months: e("flex gap-4 flex-col md:flex-row relative", t.months),
|
|
41
|
+
month: e("flex flex-col w-full gap-4", t.month),
|
|
42
|
+
nav: e(
|
|
43
|
+
"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
|
|
44
|
+
t.nav
|
|
45
|
+
),
|
|
46
|
+
button_previous: e(
|
|
47
|
+
f({ variant: l }),
|
|
48
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
49
|
+
t.button_previous
|
|
50
|
+
),
|
|
51
|
+
button_next: e(
|
|
52
|
+
f({ variant: l }),
|
|
53
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
54
|
+
t.button_next
|
|
55
|
+
),
|
|
56
|
+
month_caption: e(
|
|
57
|
+
"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
58
|
+
t.month_caption
|
|
59
|
+
),
|
|
60
|
+
dropdowns: e(
|
|
61
|
+
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
|
|
62
|
+
t.dropdowns
|
|
63
|
+
),
|
|
64
|
+
dropdown_root: e(
|
|
65
|
+
"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
|
|
66
|
+
t.dropdown_root
|
|
67
|
+
),
|
|
68
|
+
dropdown: e("absolute bg-popover inset-0 opacity-0", t.dropdown),
|
|
69
|
+
caption_label: e(
|
|
70
|
+
"select-none font-medium",
|
|
71
|
+
s === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
|
|
72
|
+
t.caption_label
|
|
73
|
+
),
|
|
74
|
+
table: "w-full border-collapse",
|
|
75
|
+
weekdays: e("flex", t.weekdays),
|
|
76
|
+
weekday: e(
|
|
77
|
+
"text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
|
|
78
|
+
t.weekday
|
|
79
|
+
),
|
|
80
|
+
week: e("flex w-full mt-2", t.week),
|
|
81
|
+
week_number_header: e("select-none w-(--cell-size)", t.week_number_header),
|
|
82
|
+
week_number: e(
|
|
83
|
+
"text-[0.8rem] select-none text-muted-foreground",
|
|
84
|
+
t.week_number
|
|
85
|
+
),
|
|
86
|
+
day: e(
|
|
87
|
+
"relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
|
|
88
|
+
t.day
|
|
89
|
+
),
|
|
90
|
+
range_start: e("rounded-l-md bg-accent", t.range_start),
|
|
91
|
+
range_middle: e("rounded-none", t.range_middle),
|
|
92
|
+
range_end: e("rounded-r-md bg-accent", t.range_end),
|
|
93
|
+
today: e(
|
|
94
|
+
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
95
|
+
t.today
|
|
96
|
+
),
|
|
97
|
+
outside: e(
|
|
98
|
+
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
99
|
+
t.outside
|
|
100
|
+
),
|
|
101
|
+
disabled: e("text-muted-foreground opacity-50", t.disabled),
|
|
102
|
+
hidden: e("invisible", t.hidden),
|
|
103
|
+
...g
|
|
104
|
+
},
|
|
105
|
+
components: {
|
|
106
|
+
Root: ({
|
|
107
|
+
className: a,
|
|
108
|
+
rootRef: d,
|
|
109
|
+
...o
|
|
110
|
+
}) => /* @__PURE__ */ n("div", { "data-slot": "calendar", ref: d, className: e(a), ...o }),
|
|
111
|
+
Chevron: ({
|
|
112
|
+
className: a,
|
|
113
|
+
orientation: d,
|
|
114
|
+
...o
|
|
115
|
+
}) => d === "left" ? /* @__PURE__ */ n(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n(w, { className: e("size-4", a), ...o }) : /* @__PURE__ */ n(_, { className: e("size-4", a), ...o }),
|
|
116
|
+
DayButton: v,
|
|
117
|
+
WeekNumber: ({
|
|
118
|
+
children: a,
|
|
119
|
+
...d
|
|
120
|
+
}) => /* @__PURE__ */ n("td", { ...d, children: /* @__PURE__ */ n("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: a }) }),
|
|
121
|
+
...c
|
|
122
|
+
},
|
|
123
|
+
...x
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
function v({
|
|
128
|
+
className: i,
|
|
129
|
+
day: g,
|
|
130
|
+
modifiers: r,
|
|
131
|
+
...s
|
|
132
|
+
}) {
|
|
133
|
+
const l = p(), u = m.useRef(null);
|
|
134
|
+
return m.useEffect(() => {
|
|
135
|
+
var c;
|
|
136
|
+
r.focused && ((c = u.current) == null || c.focus());
|
|
137
|
+
}, [r.focused]), /* @__PURE__ */ n(
|
|
138
|
+
y,
|
|
139
|
+
{
|
|
140
|
+
ref: u,
|
|
141
|
+
variant: "ghost",
|
|
142
|
+
size: "icon",
|
|
143
|
+
"data-day": g.date.toLocaleDateString(),
|
|
144
|
+
"data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle,
|
|
145
|
+
"data-range-start": r.range_start,
|
|
146
|
+
"data-range-end": r.range_end,
|
|
147
|
+
"data-range-middle": r.range_middle,
|
|
148
|
+
className: e(
|
|
149
|
+
"data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
|
|
150
|
+
l.day,
|
|
151
|
+
i
|
|
152
|
+
),
|
|
153
|
+
...s
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
export {
|
|
158
|
+
q as Calendar,
|
|
159
|
+
v as CalendarDayButton
|
|
160
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),q=require("react"),w=require("embla-carousel-react"),m=require("lucide-react"),d=require("../utils-IjLH3w2e.cjs");require("../Textarea-CLBbcfr_.cjs");const v=require("../Button-oW9LiTe6.cjs");require("@radix-ui/react-select");require("next-intl");require("@radix-ui/react-slot");require("@radix-ui/react-separator");function k(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return r.default=t,Object.freeze(r)}const s=k(q),b=s.createContext(null);function x(){const t=s.useContext(b);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function z({orientation:t="horizontal",opts:r,setApi:o,plugins:n,className:c,children:u,...i}){const[N,e]=w({...r,axis:t==="horizontal"?"x":"y"},n),[j,y]=s.useState(!1),[S,P]=s.useState(!1),f=s.useCallback(a=>{a&&(y(a.canScrollPrev()),P(a.canScrollNext()))},[]),C=s.useCallback(()=>{e==null||e.scrollPrev()},[e]),h=s.useCallback(()=>{e==null||e.scrollNext()},[e]),g=s.useCallback(a=>{a.key==="ArrowLeft"?(a.preventDefault(),C()):a.key==="ArrowRight"&&(a.preventDefault(),h())},[C,h]);return s.useEffect(()=>{!e||!o||o(e)},[e,o]),s.useEffect(()=>{if(e)return f(e),e.on("reInit",f),e.on("select",f),()=>{e==null||e.off("select",f)}},[e,f]),l.jsx(b.Provider,{value:{carouselRef:N,api:e,opts:r,orientation:t||((r==null?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:C,scrollNext:h,canScrollPrev:j,canScrollNext:S},children:l.jsx("div",{onKeyDownCapture:g,className:d.cn("relative",c),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:u})})}function R({className:t,...r}){const{carouselRef:o,orientation:n}=x();return l.jsx("div",{ref:o,className:"overflow-hidden","data-slot":"carousel-content",children:l.jsx("div",{className:d.cn("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...r})})}function p({className:t,...r}){const{orientation:o}=x();return l.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:d.cn("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...r})}function D({className:t,variant:r="outline",size:o="icon",...n}){const{orientation:c,scrollPrev:u,canScrollPrev:i}=x();return l.jsxs(v.Button,{"data-slot":"carousel-previous",variant:r,size:o,className:d.cn("absolute size-8 rounded-full",c==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!i,onClick:u,...n,children:[l.jsx(m.ChevronLeft,{}),l.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function O({className:t,variant:r="outline",size:o="icon",...n}){const{orientation:c,scrollNext:u,canScrollNext:i}=x();return l.jsxs(v.Button,{"data-slot":"carousel-next",variant:r,size:o,className:d.cn("absolute size-8 rounded-full",c==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!i,onClick:u,...n,children:[l.jsx(m.ChevronRight,{}),l.jsx("span",{className:"sr-only",children:"Next slide"})]})}exports.Carousel=z;exports.CarouselContent=R;exports.CarouselItem=p;exports.CarouselNext=O;exports.CarouselPrevious=D;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import k from "embla-carousel-react";
|
|
4
|
+
import { ChevronLeft as z, ChevronRight as g } from "lucide-react";
|
|
5
|
+
import { c as d } from "../utils-B6yFEsav.js";
|
|
6
|
+
import "../Textarea-nx_ki3Gv.js";
|
|
7
|
+
import { B as v } from "../Button-BBFJyA3y.js";
|
|
8
|
+
import "@radix-ui/react-select";
|
|
9
|
+
import "next-intl";
|
|
10
|
+
import "@radix-ui/react-slot";
|
|
11
|
+
import "@radix-ui/react-separator";
|
|
12
|
+
const N = l.createContext(null);
|
|
13
|
+
function m() {
|
|
14
|
+
const o = l.useContext(N);
|
|
15
|
+
if (!o)
|
|
16
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
17
|
+
return o;
|
|
18
|
+
}
|
|
19
|
+
function F({
|
|
20
|
+
orientation: o = "horizontal",
|
|
21
|
+
opts: r,
|
|
22
|
+
setApi: t,
|
|
23
|
+
plugins: s,
|
|
24
|
+
className: c,
|
|
25
|
+
children: i,
|
|
26
|
+
...u
|
|
27
|
+
}) {
|
|
28
|
+
const [b, e] = k(
|
|
29
|
+
{
|
|
30
|
+
...r,
|
|
31
|
+
axis: o === "horizontal" ? "x" : "y"
|
|
32
|
+
},
|
|
33
|
+
s
|
|
34
|
+
), [p, S] = l.useState(!1), [w, y] = l.useState(!1), f = l.useCallback((a) => {
|
|
35
|
+
a && (S(a.canScrollPrev()), y(a.canScrollNext()));
|
|
36
|
+
}, []), C = l.useCallback(() => {
|
|
37
|
+
e == null || e.scrollPrev();
|
|
38
|
+
}, [e]), x = l.useCallback(() => {
|
|
39
|
+
e == null || e.scrollNext();
|
|
40
|
+
}, [e]), P = l.useCallback(
|
|
41
|
+
(a) => {
|
|
42
|
+
a.key === "ArrowLeft" ? (a.preventDefault(), C()) : a.key === "ArrowRight" && (a.preventDefault(), x());
|
|
43
|
+
},
|
|
44
|
+
[C, x]
|
|
45
|
+
);
|
|
46
|
+
return l.useEffect(() => {
|
|
47
|
+
!e || !t || t(e);
|
|
48
|
+
}, [e, t]), l.useEffect(() => {
|
|
49
|
+
if (e)
|
|
50
|
+
return f(e), e.on("reInit", f), e.on("select", f), () => {
|
|
51
|
+
e == null || e.off("select", f);
|
|
52
|
+
};
|
|
53
|
+
}, [e, f]), /* @__PURE__ */ n(
|
|
54
|
+
N.Provider,
|
|
55
|
+
{
|
|
56
|
+
value: {
|
|
57
|
+
carouselRef: b,
|
|
58
|
+
api: e,
|
|
59
|
+
opts: r,
|
|
60
|
+
orientation: o || ((r == null ? void 0 : r.axis) === "y" ? "vertical" : "horizontal"),
|
|
61
|
+
scrollPrev: C,
|
|
62
|
+
scrollNext: x,
|
|
63
|
+
canScrollPrev: p,
|
|
64
|
+
canScrollNext: w
|
|
65
|
+
},
|
|
66
|
+
children: /* @__PURE__ */ n(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
onKeyDownCapture: P,
|
|
70
|
+
className: d("relative", c),
|
|
71
|
+
role: "region",
|
|
72
|
+
"aria-roledescription": "carousel",
|
|
73
|
+
"data-slot": "carousel",
|
|
74
|
+
...u,
|
|
75
|
+
children: i
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function G({ className: o, ...r }) {
|
|
82
|
+
const { carouselRef: t, orientation: s } = m();
|
|
83
|
+
return /* @__PURE__ */ n("div", { ref: t, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ n(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
className: d("flex", s === "horizontal" ? "-ml-4" : "-mt-4 flex-col", o),
|
|
87
|
+
...r
|
|
88
|
+
}
|
|
89
|
+
) });
|
|
90
|
+
}
|
|
91
|
+
function H({ className: o, ...r }) {
|
|
92
|
+
const { orientation: t } = m();
|
|
93
|
+
return /* @__PURE__ */ n(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
role: "group",
|
|
97
|
+
"aria-roledescription": "slide",
|
|
98
|
+
"data-slot": "carousel-item",
|
|
99
|
+
className: d(
|
|
100
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
101
|
+
t === "horizontal" ? "pl-4" : "pt-4",
|
|
102
|
+
o
|
|
103
|
+
),
|
|
104
|
+
...r
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function J({
|
|
109
|
+
className: o,
|
|
110
|
+
variant: r = "outline",
|
|
111
|
+
size: t = "icon",
|
|
112
|
+
...s
|
|
113
|
+
}) {
|
|
114
|
+
const { orientation: c, scrollPrev: i, canScrollPrev: u } = m();
|
|
115
|
+
return /* @__PURE__ */ h(
|
|
116
|
+
v,
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "carousel-previous",
|
|
119
|
+
variant: r,
|
|
120
|
+
size: t,
|
|
121
|
+
className: d(
|
|
122
|
+
"absolute size-8 rounded-full",
|
|
123
|
+
c === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
124
|
+
o
|
|
125
|
+
),
|
|
126
|
+
disabled: !u,
|
|
127
|
+
onClick: i,
|
|
128
|
+
...s,
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ n(z, {}),
|
|
131
|
+
/* @__PURE__ */ n("span", { className: "sr-only", children: "Previous slide" })
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
function M({
|
|
137
|
+
className: o,
|
|
138
|
+
variant: r = "outline",
|
|
139
|
+
size: t = "icon",
|
|
140
|
+
...s
|
|
141
|
+
}) {
|
|
142
|
+
const { orientation: c, scrollNext: i, canScrollNext: u } = m();
|
|
143
|
+
return /* @__PURE__ */ h(
|
|
144
|
+
v,
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "carousel-next",
|
|
147
|
+
variant: r,
|
|
148
|
+
size: t,
|
|
149
|
+
className: d(
|
|
150
|
+
"absolute size-8 rounded-full",
|
|
151
|
+
c === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
152
|
+
o
|
|
153
|
+
),
|
|
154
|
+
disabled: !u,
|
|
155
|
+
onClick: i,
|
|
156
|
+
...s,
|
|
157
|
+
children: [
|
|
158
|
+
/* @__PURE__ */ n(g, {}),
|
|
159
|
+
/* @__PURE__ */ n("span", { className: "sr-only", children: "Next slide" })
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
export {
|
|
165
|
+
F as Carousel,
|
|
166
|
+
G as CarouselContent,
|
|
167
|
+
H as CarouselItem,
|
|
168
|
+
M as CarouselNext,
|
|
169
|
+
J as CarouselPrevious
|
|
170
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("@radix-ui/react-checkbox"),a=require("lucide-react"),s=require("../utils-IjLH3w2e.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=d(o);function l({className:e,...t}){return i.jsx(n.Root,{"data-slot":"checkbox",className:s.cn("peer data-[state=checked]:bg-secondary data-[state=checked]:text-icon-accent-marketing data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border border-subtle transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:border-subtle disabled:data-[state=checked]:opacity-50",e),...t,children:i.jsx(n.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsx(a.CheckIcon,{className:"size-3.5"})})})}exports.Checkbox=l;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "@radix-ui/react-checkbox";
|
|
3
|
+
import { CheckIcon as a } from "lucide-react";
|
|
4
|
+
import { c as o } from "../utils-B6yFEsav.js";
|
|
5
|
+
function n({ className: t, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ e(
|
|
7
|
+
r.Root,
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "checkbox",
|
|
10
|
+
className: o(
|
|
11
|
+
"peer data-[state=checked]:bg-secondary data-[state=checked]:text-icon-accent-marketing data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border border-subtle transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:border-subtle disabled:data-[state=checked]:opacity-50",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
14
|
+
...i,
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
r.Indicator,
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "checkbox-indicator",
|
|
19
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
20
|
+
children: /* @__PURE__ */ e(a, { className: "size-3.5" })
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
n as Checkbox
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("react"),m=require("lucide-react"),l=require("../utils-IjLH3w2e.cjs");require("../Textarea-CLBbcfr_.cjs");const O=require("../Button-oW9LiTe6.cjs");require("@radix-ui/react-select");require("next-intl");require("@radix-ui/react-slot");require("@radix-ui/react-separator");const o=require("./command.cjs.js"),a=require("./popover.cjs.js");function S(r){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(c,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}return c.default=r,Object.freeze(c)}const w=S(C);function g({options:r,value:c,onValueChange:n,placeholder:s="Select option...",searchPlaceholder:p="Search...",emptyText:f="No option found.",disabled:b=!1,triggerClassName:j,contentClassName:x,buttonVariant:h="outline",buttonSize:q="default"}){const[i,u]=w.useState(!1),d=r.find(t=>t.value===c),v=t=>{const y=t===c?"":t;n==null||n(y),u(!1)};return e.jsxs(a.Popover,{open:i,onOpenChange:u,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(O.Button,{variant:h,size:q,role:"combobox","aria-expanded":i,disabled:b,className:l.cn("w-full justify-between",j),children:[d?d.label:s,e.jsx(m.ChevronsUpDownIcon,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(a.PopoverContent,{className:l.cn("w-full p-0",x),children:e.jsxs(o.Command,{children:[e.jsx(o.CommandInput,{placeholder:p}),e.jsxs(o.CommandList,{children:[e.jsx(o.CommandEmpty,{children:f}),e.jsx(o.CommandGroup,{children:r.map(t=>e.jsxs(o.CommandItem,{value:t.value,disabled:t.disabled,onSelect:()=>v(t.value),children:[e.jsx(m.CheckIcon,{className:l.cn("mr-2 h-4 w-4",c===t.value?"opacity-100":"opacity-0")}),t.label]},t.value))})]})]})})]})}exports.Combobox=g;
|