@clasing/ui 2.4.0 → 2.6.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/README.md +7 -12
- package/dist/{badge-Cprh3bik.js → badge-C29hQNIG.js} +2 -2
- package/dist/{button-3Q4mqjFF.js → button-BIGg5o8m.js} +62 -81
- package/dist/button-BsQuxg6u.cjs +1 -0
- package/dist/{card-CbF9kVVs.js → card-Cv2M4wv8.js} +1 -1
- package/dist/chip-C_Uh7fe6.cjs +1 -0
- package/dist/{chip-B7Mqq278.js → chip-ZryYiiU1.js} +9 -9
- package/dist/{clasing-icon-XjkVWhKg.js → clasing-icon-BIYMLc8o.js} +11 -19
- package/dist/clasing-icon-Bym32_-4.cjs +1 -0
- package/dist/{command-ev4m9IoQ.js → command-CGrOI2Z9.js} +2 -2
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +2 -2
- package/dist/components/alert.es.js +2 -2
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +5 -5
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +3 -3
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -0
- package/dist/components/button-group.d.ts +11 -0
- package/dist/components/button-group.es.js +75 -0
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +0 -3
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +2 -2
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.es.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.es.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +37 -36
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +2 -18
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +12 -11
- package/dist/components/form.es.js +2 -2
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.es.js +18 -17
- package/dist/components/input-otp.es.js +1 -1
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +1 -0
- package/dist/components/kbd.d.ts +3 -0
- package/dist/components/kbd.es.js +30 -0
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +2 -1
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +5 -5
- package/dist/components/navigation-menu.es.js +2 -2
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +5 -5
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.es.js +1 -1
- package/dist/components/resizable.es.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +2 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.es.js +1 -1
- package/dist/components/sonner.es.js +1 -1
- package/dist/components/switch.es.js +2 -2
- package/dist/components/table.es.js +1 -1
- package/dist/components/textarea.es.js +2 -2
- package/dist/components/toggle-group.es.js +2 -2
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-CXbzQHxn.js → dialog-CH4VxKX4.js} +1 -1
- package/dist/divider-BMxVoyPg.js +20 -0
- package/dist/divider-BcIwJzm7.cjs +1 -0
- package/dist/entries/button-group.d.ts +2 -0
- package/dist/entries/kbd.d.ts +2 -0
- package/dist/{index-D5lmpham.js → index-BCEGphus.js} +2 -2
- package/dist/{index-DN28Pf0m.js → index-DEha_UuN.js} +1 -1
- package/dist/{input-SV4tkGu9.js → input-BdGPpUZ8.js} +3 -3
- package/dist/{input-D3AVygkb.cjs → input-DDgYyRSP.cjs} +1 -1
- package/dist/{label-DDxTPxHk.js → label-Bl6V6esj.js} +1 -1
- package/dist/{popover-BdDS9aoy.js → popover-BzUZg2od.js} +6 -5
- package/dist/popover-Cj78cvz1.cjs +1 -0
- package/dist/{scroll-area-oS6ZJIMN.js → scroll-area-CxpVQq0v.js} +1 -1
- package/dist/{toggle-BNzrNg1r.js → toggle-99EXLQgX.js} +2 -2
- package/dist/{tooltip-rv-jVOxy.js → tooltip-CHBabriJ.js} +16 -15
- package/dist/tooltip-Dd6ylN0m.cjs +1 -0
- package/package.json +373 -357
- package/dist/button-BekvnyS7.cjs +0 -1
- package/dist/chip-BG4NEZUv.cjs +0 -1
- package/dist/clasing-icon-CMe7j64k.cjs +0 -1
- package/dist/popover-CeOAAwBQ.cjs +0 -1
- package/dist/tooltip-BccdAn4x.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-9HRzXEQf.cjs"),i=require("@radix-ui/react-hover-card");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-9HRzXEQf.cjs"),i=require("@radix-ui/react-hover-card");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const n=s(i);function c({...t}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"hover-card",...t})}function u({...t}){return o.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"hover-card-trigger",...t})}function l({className:t,align:r="center",sideOffset:e=4,collisionPadding:a=24,...d}){return o.jsxRuntimeExports.jsx(n.Portal,{"data-slot":"hover-card-portal",children:o.jsxRuntimeExports.jsx(n.Content,{"data-slot":"hover-card-content",align:r,sideOffset:e,className:o.cn("bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),collisionPadding:a,...d})})}exports.HoverCard=c;exports.HoverCardContent=l;exports.HoverCardTrigger=u;
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { j as o, c as i } from "../index-
|
|
2
|
-
import * as
|
|
3
|
-
function
|
|
1
|
+
import { j as o, c as i } from "../index-BCEGphus.js";
|
|
2
|
+
import * as e from "@radix-ui/react-hover-card";
|
|
3
|
+
function m({
|
|
4
4
|
...t
|
|
5
5
|
}) {
|
|
6
|
-
return /* @__PURE__ */ o.jsx(
|
|
6
|
+
return /* @__PURE__ */ o.jsx(e.Root, { "data-slot": "hover-card", ...t });
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function c({
|
|
9
9
|
...t
|
|
10
10
|
}) {
|
|
11
|
-
return /* @__PURE__ */ o.jsx(
|
|
11
|
+
return /* @__PURE__ */ o.jsx(e.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function l({
|
|
14
14
|
className: t,
|
|
15
|
-
align:
|
|
15
|
+
align: a = "center",
|
|
16
16
|
sideOffset: r = 4,
|
|
17
|
-
collisionPadding:
|
|
18
|
-
...
|
|
17
|
+
collisionPadding: d = 24,
|
|
18
|
+
...n
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */ o.jsx(
|
|
21
|
-
|
|
20
|
+
return /* @__PURE__ */ o.jsx(e.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx(
|
|
21
|
+
e.Content,
|
|
22
22
|
{
|
|
23
23
|
"data-slot": "hover-card-content",
|
|
24
|
-
align:
|
|
24
|
+
align: a,
|
|
25
25
|
sideOffset: r,
|
|
26
26
|
className: i(
|
|
27
27
|
"bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
28
28
|
t
|
|
29
29
|
),
|
|
30
|
-
|
|
30
|
+
collisionPadding: d,
|
|
31
|
+
...n
|
|
31
32
|
}
|
|
32
33
|
) });
|
|
33
34
|
}
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
m as HoverCard,
|
|
37
|
+
l as HoverCardContent,
|
|
38
|
+
c as HoverCardTrigger
|
|
38
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-DDgYyRSP.cjs");exports.Input=t.Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-9HRzXEQf.cjs");function o({className:e,...n}){return t.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd",className:t.cn("bg-muted text-muted-foreground label-md pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-[4px] px-1 font-sans font-medium select-none","[&_svg:not([class*='size-'])]:size-3","in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10",e),...n})}function s({className:e,...n}){return t.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd-group",className:t.cn("inline-flex items-center gap-1",e),...n})}exports.Kbd=o;exports.KbdGroup=s;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { j as e, c as o } from "../index-BCEGphus.js";
|
|
2
|
+
function a({ className: t, ...n }) {
|
|
3
|
+
return /* @__PURE__ */ e.jsx(
|
|
4
|
+
"kbd",
|
|
5
|
+
{
|
|
6
|
+
"data-slot": "kbd",
|
|
7
|
+
className: o(
|
|
8
|
+
"bg-muted text-muted-foreground label-md pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-[4px] px-1 font-sans font-medium select-none",
|
|
9
|
+
"[&_svg:not([class*='size-'])]:size-3",
|
|
10
|
+
"in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10",
|
|
11
|
+
t
|
|
12
|
+
),
|
|
13
|
+
...n
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
function i({ className: t, ...n }) {
|
|
18
|
+
return /* @__PURE__ */ e.jsx(
|
|
19
|
+
"kbd",
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "kbd-group",
|
|
22
|
+
className: o("inline-flex items-center gap-1", t),
|
|
23
|
+
...n
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
a as Kbd,
|
|
29
|
+
i as KbdGroup
|
|
30
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-9HRzXEQf.cjs"),d=require("@radix-ui/react-menubar"),o=require("@phosphor-icons/react");function c(e){const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-9HRzXEQf.cjs"),d=require("@radix-ui/react-menubar"),o=require("@phosphor-icons/react");function c(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(a,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return a.default=e,Object.freeze(a)}const r=c(d);function m({className:e,...a}){return t.jsxRuntimeExports.jsx(r.Root,{"data-slot":"menubar",className:t.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...a})}function l({...e}){return t.jsxRuntimeExports.jsx(r.Menu,{"data-slot":"menubar-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(r.Group,{"data-slot":"menubar-group",...e})}function i({...e}){return t.jsxRuntimeExports.jsx(r.Portal,{"data-slot":"menubar-portal",...e})}function x({...e}){return t.jsxRuntimeExports.jsx(r.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function b({className:e,...a}){return t.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"menubar-trigger",className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex items-center rounded-sm px-2 py-1 font-medium outline-hidden select-none",e),...a})}function f({className:e,align:a="start",alignOffset:n=-4,sideOffset:s=8,...u}){return t.jsxRuntimeExports.jsx(i,{children:t.jsxRuntimeExports.jsx(r.Content,{"data-slot":"menubar-content",align:a,alignOffset:n,sideOffset:s,className:t.cn("bg-popover text-popover-foreground data-[state=open]:animate-in 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...u})})}function g({className:e,inset:a,variant:n="default",...s}){return t.jsxRuntimeExports.jsx(r.Item,{"data-slot":"menubar-item","data-inset":a,"data-variant":n,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}function j({className:e,children:a,checked:n,...s}){return t.jsxRuntimeExports.jsxs(r.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...s,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(o.CheckIcon,{className:"size-4"})})}),a]})}function v({className:e,children:a,...n}){return t.jsxRuntimeExports.jsxs(r.RadioItem,{"data-slot":"menubar-radio-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(o.CircleIcon,{weight:"fill",className:"size-2 fill-current"})})}),a]})}function h({className:e,inset:a,...n}){return t.jsxRuntimeExports.jsx(r.Label,{"data-slot":"menubar-label","data-inset":a,className:t.cn("paragraph-sm px-2 py-1.5 font-medium data-inset:pl-8",e),...n})}function M({className:e,...a}){return t.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"menubar-separator",className:t.cn("bg-border -mx-1 my-1 h-px",e),...a})}function R({className:e,...a}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:t.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",e),...a})}function E({...e}){return t.jsxRuntimeExports.jsx(r.Sub,{"data-slot":"menubar-sub",...e})}function z({className:e,inset:a,children:n,...s}){return t.jsxRuntimeExports.jsxs(r.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":a,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none data-inset:pl-8",e),...s,children:[n,t.jsxRuntimeExports.jsx(o.CaretRightIcon,{className:"ml-auto size-4"})]})}function S({className:e,collisionPadding:a=24,...n}){return t.jsxRuntimeExports.jsx(r.SubContent,{"data-slot":"menubar-sub-content",className:t.cn("bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),collisionPadding:a,...n})}exports.Menubar=m;exports.MenubarCheckboxItem=j;exports.MenubarContent=f;exports.MenubarGroup=p;exports.MenubarItem=g;exports.MenubarLabel=h;exports.MenubarMenu=l;exports.MenubarPortal=i;exports.MenubarRadioGroup=x;exports.MenubarRadioItem=v;exports.MenubarSeparator=M;exports.MenubarShortcut=R;exports.MenubarSub=E;exports.MenubarSubContent=S;exports.MenubarSubTrigger=z;exports.MenubarTrigger=b;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as s } from "../index-
|
|
1
|
+
import { j as t, c as s } from "../index-BCEGphus.js";
|
|
2
2
|
import * as n from "@radix-ui/react-menubar";
|
|
3
3
|
import { CheckIcon as i, CircleIcon as u, CaretRightIcon as c } from "@phosphor-icons/react";
|
|
4
4
|
function f({
|
|
@@ -227,6 +227,7 @@ function w({
|
|
|
227
227
|
"bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
228
228
|
e
|
|
229
229
|
),
|
|
230
|
+
collisionPadding: a,
|
|
230
231
|
...r
|
|
231
232
|
}
|
|
232
233
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),V=require("../badge-Da_xHgvC.cjs"),p=require("../command-CrtCQpi_.cjs"),M=require("../popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),V=require("../badge-Da_xHgvC.cjs"),p=require("../command-CrtCQpi_.cjs"),M=require("../popover-Cj78cvz1.cjs"),N=require("@phosphor-icons/react"),n=require("react"),I=require("../clasing-icon-Bym32_-4.cjs"),k=n.createContext(null);function z({children:t,values:r,defaultValues:i,onValuesChange:l,isLoading:a,onSearchChange:c,loadingText:j="Loading...",noResultsText:d="No results found"}){const[x,f]=n.useState(!1),[y,g]=n.useState(new Set(r??i)),[w,m]=n.useState(new Map),[S,E]=n.useState("");function o(s){const h=R=>{const v=new Set(R);return v.has(s)?v.delete(s):v.add(s),v};g(h),l?.([...h(y)])}const u=n.useCallback((s,h)=>{m(R=>R.get(s)===h?R:new Map(R).set(s,h))},[]),b=n.useCallback(s=>{E(s),c?.(s)},[c]);return e.jsxRuntimeExports.jsx(k,{value:{open:x,setOpen:f,selectedValues:r?new Set(r):y,toggleValue:o,items:w,onItemAdded:u,isLoading:a,searchValue:S,onSearchChange:b,loadingText:j,noResultsText:d},children:e.jsxRuntimeExports.jsx(M.Popover,{open:x,onOpenChange:f,children:t})})}function P({className:t,children:r,size:i="md",...l}){const{open:a}=C();return e.jsxRuntimeExports.jsx(M.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{...l,role:l.role??"combobox","aria-expanded":l["aria-expanded"]??a,"data-size":i,className:e.cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',i==="sm"&&"label-md h-8 px-2 py-1",i==="md"&&"label-lg h-12 px-3 py-1",i==="lg"&&"label-xl h-16 px-4 py-2",t),children:[r,e.jsxRuntimeExports.jsx(N.CaretUpDownIcon,{className:"size-4 shrink-0 opacity-50"})]})})}function q({placeholder:t,clickToRemove:r=!0,className:i,overflowBehavior:l="wrap-when-open",...a}){const{selectedValues:c,toggleValue:j,items:d,open:x}=C(),[f,y]=n.useState(0),g=n.useRef(null),w=n.useRef(null),m=n.useRef(new Set),S=l==="wrap"||l==="wrap-when-open"&&x;n.useEffect(()=>{S&&m.current.forEach(o=>o.style.removeProperty("display"))},[S]);const E=n.useCallback(()=>{if(g.current==null)return;const o=g.current,u=w.current;u!=null&&(u.style.display="none"),m.current.forEach(s=>s.style.removeProperty("display"));let b=0;for(let s=m.current.size-1;s>=0;s--){const h=[...m.current][s];if(o.scrollWidth<=o.clientWidth)break;b=m.current.size-s,h.style.display="none",u?.style.removeProperty("display")}y(b)},[]);return n.useEffect(()=>{if(g.current==null)return;const o=new ResizeObserver(E);return o.observe(g.current),()=>o.disconnect()},[E]),n.useLayoutEffect(()=>{E()},[c,E]),c.size===0&&t?e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:t}):e.jsxRuntimeExports.jsxs("div",{...a,ref:g,className:e.cn("flex min-h-7 w-full gap-1.5 overflow-hidden",S&&"flex-wrap",i),children:[[...c].filter(o=>d.has(o)).map(o=>e.jsxRuntimeExports.jsxs(V.Badge,{ref:u=>{if(u!=null)return m.current.add(u),()=>{m.current.delete(u)}},variant:"outline",className:"group flex items-center gap-1",onClick:r?u=>{u.stopPropagation(),j(o)}:void 0,children:[d.get(o),r&&e.jsxRuntimeExports.jsx(N.XIcon,{className:"text-muted-foreground group-hover:text-destructive size-2"})]},o)),e.jsxRuntimeExports.jsxs(V.Badge,{style:{display:f>0&&!S?"block":"none"},variant:"outline",ref:w,children:["+",f]})]})}function O({search:t=!0,children:r,...i}){const{isLoading:l,onSearchChange:a,searchValue:c,noResultsText:j,loadingText:d}=C(),x=typeof t=="object"?!0:t;return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:e.jsxRuntimeExports.jsx(p.Command,{children:e.jsxRuntimeExports.jsx(p.CommandList,{children:r})})}),e.jsxRuntimeExports.jsx(M.PopoverContent,{className:"min-w-(--radix-popover-trigger-width) p-0",children:e.jsxRuntimeExports.jsxs(p.Command,{...i,children:[x?e.jsxRuntimeExports.jsx(p.CommandInput,{placeholder:typeof t=="object"?t.placeholder:void 0,value:c,onValueChange:a}):e.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),e.jsxRuntimeExports.jsx(p.CommandList,{children:l?e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center py-6",children:[e.jsxRuntimeExports.jsx(I.ClasingIcon,{className:"text-muted-foreground size-4 animate-spin"}),e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground paragraph-sm ml-2",children:d})]}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[x&&e.jsxRuntimeExports.jsx(p.CommandEmpty,{children:j}),r]})})]})})]})}function T({value:t,children:r,badgeLabel:i,onSelect:l,...a}){const{toggleValue:c,selectedValues:j,onItemAdded:d}=C(),x=j.has(t);return n.useEffect(()=>{d(t,i??r)},[t,r,d,i]),e.jsxRuntimeExports.jsxs(p.CommandItem,{...a,value:t,onSelect:f=>{c(f),l?.(f)},children:[e.jsxRuntimeExports.jsx(N.CheckIcon,{className:e.cn("mr-2 size-4",x?"opacity-100":"opacity-0")}),r]})}function _(t){return e.jsxRuntimeExports.jsx(p.CommandGroup,{...t})}function A(t){return e.jsxRuntimeExports.jsx(p.CommandSeparator,{...t})}function C(){const t=n.useContext(k);if(t==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return t}exports.MultiSelect=z;exports.MultiSelectContent=O;exports.MultiSelectGroup=_;exports.MultiSelectItem=T;exports.MultiSelectSeparator=A;exports.MultiSelectTrigger=P;exports.MultiSelectValue=q;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as e, c as I } from "../index-
|
|
2
|
-
import { B as z } from "../badge-
|
|
3
|
-
import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-
|
|
4
|
-
import { P as T, b as W, c as G } from "../popover-
|
|
1
|
+
import { j as e, c as I } from "../index-BCEGphus.js";
|
|
2
|
+
import { B as z } from "../badge-C29hQNIG.js";
|
|
3
|
+
import { C as E, f as P, d as O, b as _, c as A, e as F, g as L } from "../command-CGrOI2Z9.js";
|
|
4
|
+
import { P as T, b as W, c as G } from "../popover-BzUZg2od.js";
|
|
5
5
|
import { CheckIcon as B, CaretUpDownIcon as D, XIcon as U } from "@phosphor-icons/react";
|
|
6
6
|
import { createContext as X, useState as y, useCallback as V, useEffect as k, useRef as M, useLayoutEffect as q, useContext as H } from "react";
|
|
7
|
-
import { C as J } from "../clasing-icon-
|
|
7
|
+
import { C as J } from "../clasing-icon-BIYMLc8o.js";
|
|
8
8
|
const R = X(null);
|
|
9
9
|
function ne({
|
|
10
10
|
children: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as o } from "../index-
|
|
1
|
+
import { j as e, c as o } from "../index-BCEGphus.js";
|
|
2
2
|
import * as n from "@radix-ui/react-navigation-menu";
|
|
3
|
-
import { c as s } from "../index-
|
|
3
|
+
import { c as s } from "../index-DEha_UuN.js";
|
|
4
4
|
import { CaretDownIcon as u } from "@phosphor-icons/react";
|
|
5
5
|
function v({
|
|
6
6
|
className: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),c=require("../command-CrtCQpi_.cjs"),N=require("../input-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),c=require("../command-CrtCQpi_.cjs"),N=require("../input-DDgYyRSP.cjs"),x=require("../popover-Cj78cvz1.cjs"),S=require("../scroll-area-D74XszlE.cjs"),h=require("@phosphor-icons/react"),w=require("react"),I=require("react-phone-number-input"),P=require("react-phone-number-input/flags"),q=require("react-phone-number-input/locale/en"),O=require("react-phone-number-input/locale/es"),_=require("react-phone-number-input/locale/fr");function b(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}return t.default=n,Object.freeze(t)}const d=b(w),R=b(I),y=d.forwardRef(({className:n,onChange:t,value:r,size:o="md",rounded:s="default",locale:l="en",...i},p)=>e.jsxRuntimeExports.jsx(R.default,{ref:p,className:e.cn("flex",n),flagComponent:f,countrySelectComponent:T,inputComponent:C,smartCaret:!1,labels:l==="es"?O:l==="fr"?_:q,value:r||void 0,onChange:u=>t?.(u||""),countrySelectProps:{size:o,rounded:s},numberInputProps:{size:o,rounded:s},...i}));y.displayName="PhoneInput";const C=d.forwardRef(({className:n,rounded:t="default",error:r,touched:o,size:s,...l},i)=>{const{"data-country":p,...u}=l;return e.jsxRuntimeExports.jsx(N.Input,{size:s,className:e.cn("w-full",{"border-destructive":r&&o,"border-blue-800":o&&!r,"rounded-s-none rounded-e-lg":t!=="full","rounded-s-none rounded-e-full":t==="full","rounded-e-sm":s==="sm","rounded-e-md":s==="md","rounded-e-lg":s==="lg"},n),...u,ref:i})});C.displayName="InputComponent";const T=({disabled:n,value:t,options:r,onChange:o,size:s="md",rounded:l="default",error:i,touched:p})=>{const u=d.useRef(null),[E,j]=d.useState(""),[v,g]=d.useState(!1);return e.jsxRuntimeExports.jsxs(x.Popover,{open:v,modal:!0,onOpenChange:a=>{g(a),a&&j("")},children:[e.jsxRuntimeExports.jsx(x.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:paragraph-sm md:paragraph-sm paragraph-md flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":i&&p,"outline-blue-800":p&&!i,"label-md h-8 rounded-s-sm px-2 py-1":s==="sm","label-lg h-12 rounded-s-md px-3 py-1":s==="md","label-xl h-16 rounded-s-lg px-4 py-2":s==="lg"}),disabled:n,children:[e.jsxRuntimeExports.jsx(f,{country:t,countryName:t,disabled:n}),e.jsxRuntimeExports.jsx(h.CaretDownIcon,{className:e.cn("-mr-2 size-4 opacity-50",n?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(x.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(c.Command,{children:[e.jsxRuntimeExports.jsx(c.CommandInput,{value:E,onValueChange:a=>{j(a),setTimeout(()=>{if(u.current){const m=u.current.querySelector("[data-radix-scroll-area-viewport]");m&&(m.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(c.CommandList,{children:e.jsxRuntimeExports.jsxs(S.ScrollArea,{ref:u,className:"h-72",children:[e.jsxRuntimeExports.jsx(c.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(c.CommandGroup,{children:r.map(({value:a,label:m})=>a?e.jsxRuntimeExports.jsx(k,{country:a,countryName:m,selectedCountry:t,onChange:o,onSelectComplete:()=>g(!1)},a):null)})]})})]})})]})},k=({country:n,countryName:t,selectedCountry:r,onChange:o,onSelectComplete:s})=>{const l=()=>{o(n),s()};return e.jsxRuntimeExports.jsxs(c.CommandItem,{className:"gap-2",onSelect:l,children:[e.jsxRuntimeExports.jsx(f,{country:n,countryName:t}),e.jsxRuntimeExports.jsx("span",{className:"paragraph-sm flex-1",children:t}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 paragraph-sm",children:`+${R.getCountryCallingCode(n)}`}),e.jsxRuntimeExports.jsx(h.CheckIcon,{className:`ml-auto size-4 ${n===r?"opacity-100":"opacity-0"}`})]})},f=({country:n,countryName:t,disabled:r})=>{const o=P[n];return e.jsxRuntimeExports.jsx("span",{className:e.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":r}),children:o&&e.jsxRuntimeExports.jsx(o,{title:t})})};exports.PhoneInput=y;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e, c as u } from "../index-
|
|
2
|
-
import { C as y, d as v, f as N, b as S, c as w, e as I } from "../command-
|
|
3
|
-
import { I as P } from "../input-
|
|
4
|
-
import { P as R, c as O, b as E } from "../popover-
|
|
5
|
-
import { S as T } from "../scroll-area-
|
|
1
|
+
import { j as e, c as u } from "../index-BCEGphus.js";
|
|
2
|
+
import { C as y, d as v, f as N, b as S, c as w, e as I } from "../command-CGrOI2Z9.js";
|
|
3
|
+
import { I as P } from "../input-BdGPpUZ8.js";
|
|
4
|
+
import { P as R, c as O, b as E } from "../popover-BzUZg2od.js";
|
|
5
|
+
import { S as T } from "../scroll-area-CxpVQq0v.js";
|
|
6
6
|
import { CaretDownIcon as V, CheckIcon as k } from "@phosphor-icons/react";
|
|
7
7
|
import * as p from "react";
|
|
8
8
|
import * as h from "react-phone-number-input";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-Cj78cvz1.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),d=require("@radix-ui/react-select"),o=require("@phosphor-icons/react");function u(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const r=u(d);function p({...t}){return e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"select",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(r.Group,{"data-slot":"select-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(r.Value,{"data-slot":"select-value",...t})}function g({className:t,size:s="md",children:a,...n}){return e.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"select-trigger","data-size":s,className:e.cn("border-input data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',s==="sm"&&"label-md h-8 px-2 py-1",s==="md"&&"label-lg h-12 px-3 py-1",s==="lg"&&"label-xl h-16 px-4 py-2",t),...n,children:[a,e.jsxRuntimeExports.jsx(r.Icon,{asChild:!0,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4 opacity-50"})})]})}function f({className:t,children:s,position:a="popper",collisionPadding:n=24,...c}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"select-content",className:e.cn("bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...c,children:[e.jsxRuntimeExports.jsx(l,{}),e.jsxRuntimeExports.jsx(r.Viewport,{className:e.cn("p-1",a==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:s}),e.jsxRuntimeExports.jsx(i,{})]})})}function j({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Label,{"data-slot":"select-label",className:e.cn("text-muted-foreground paragraph-xs px-2 py-1.5",t),...s})}function b({className:t,children:s,...a}){return e.jsxRuntimeExports.jsxs(r.Item,{"data-slot":"select-item",className:e.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(r.ItemIndicator,{children:e.jsxRuntimeExports.jsx(o.CheckIcon,{className:"size-4"})})}),e.jsxRuntimeExports.jsx(r.ItemText,{children:s})]})}function v({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"select-separator",className:e.cn("bg-border pointer-events-none -mx-1 my-1 h-px",t),...s})}function l({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretUpIcon,{className:"size-4"})})}function i({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4"})})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=x;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=i;exports.SelectScrollUpButton=l;exports.SelectSeparator=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),d=require("@radix-ui/react-select"),o=require("@phosphor-icons/react");function u(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const r=u(d);function p({...t}){return e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"select",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(r.Group,{"data-slot":"select-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(r.Value,{"data-slot":"select-value",...t})}function g({className:t,size:s="md",children:a,...n}){return e.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"select-trigger","data-size":s,className:e.cn("border-input data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',s==="sm"&&"label-md h-8 px-2 py-1",s==="md"&&"label-lg h-12 px-3 py-1",s==="lg"&&"label-xl h-16 px-4 py-2",t),...n,children:[a,e.jsxRuntimeExports.jsx(r.Icon,{asChild:!0,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4 opacity-50"})})]})}function f({className:t,children:s,position:a="popper",collisionPadding:n=24,...c}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"select-content",className:e.cn("bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),collisionPadding:n,position:a,...c,children:[e.jsxRuntimeExports.jsx(l,{}),e.jsxRuntimeExports.jsx(r.Viewport,{className:e.cn("p-1",a==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:s}),e.jsxRuntimeExports.jsx(i,{})]})})}function j({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Label,{"data-slot":"select-label",className:e.cn("text-muted-foreground paragraph-xs px-2 py-1.5",t),...s})}function b({className:t,children:s,...a}){return e.jsxRuntimeExports.jsxs(r.Item,{"data-slot":"select-item",className:e.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(r.ItemIndicator,{children:e.jsxRuntimeExports.jsx(o.CheckIcon,{className:"size-4"})})}),e.jsxRuntimeExports.jsx(r.ItemText,{children:s})]})}function v({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"select-separator",className:e.cn("bg-border pointer-events-none -mx-1 my-1 h-px",t),...s})}function l({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretUpIcon,{className:"size-4"})})}function i({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4"})})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=x;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=i;exports.SelectScrollUpButton=l;exports.SelectSeparator=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e, c as r } from "../index-
|
|
1
|
+
import { j as e, c as r } from "../index-BCEGphus.js";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
3
|
import { CheckIcon as d, CaretDownIcon as n, CaretUpIcon as c } from "@phosphor-icons/react";
|
|
4
4
|
function g({
|
|
@@ -59,6 +59,7 @@ function b({
|
|
|
59
59
|
o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
60
60
|
t
|
|
61
61
|
),
|
|
62
|
+
collisionPadding: l,
|
|
62
63
|
position: o,
|
|
63
64
|
...i,
|
|
64
65
|
children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o, c as m } from "../index-
|
|
2
|
-
import { c as r } from "../index-
|
|
1
|
+
import { j as o, c as m } from "../index-BCEGphus.js";
|
|
2
|
+
import { c as r } from "../index-DEha_UuN.js";
|
|
3
3
|
import { forwardRef as b, useState as x } from "react";
|
|
4
4
|
const g = r(
|
|
5
5
|
"border-neutral-000 focus-visible:ring-ring-default inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-white transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-800 data-[state=unchecked]:bg-white",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as r, c as t } from "../index-
|
|
2
|
-
import { c as v } from "../index-
|
|
1
|
+
import { j as r, c as t } from "../index-BCEGphus.js";
|
|
2
|
+
import { c as v } from "../index-DEha_UuN.js";
|
|
3
3
|
const c = v(
|
|
4
4
|
"placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
5
5
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as i, c as s } from "../index-
|
|
1
|
+
import { j as i, c as s } from "../index-BCEGphus.js";
|
|
2
2
|
import * as d from "@radix-ui/react-toggle-group";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { t as m } from "../toggle-
|
|
4
|
+
import { t as m } from "../toggle-99EXLQgX.js";
|
|
5
5
|
const u = l.createContext({
|
|
6
6
|
size: "md",
|
|
7
7
|
variant: "default"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-Dd6ylN0m.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { j as i, c as t } from "./index-BCEGphus.js";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
const o = l(
|
|
4
|
+
({ className: a, orientation: r = "horizontal", ...s }, e) => /* @__PURE__ */ i.jsx(
|
|
5
|
+
"span",
|
|
6
|
+
{
|
|
7
|
+
ref: e,
|
|
8
|
+
className: t("bg-neutral-050", a, {
|
|
9
|
+
"h-px! w-full": r === "horizontal",
|
|
10
|
+
"h-full w-px!": r === "vertical"
|
|
11
|
+
}),
|
|
12
|
+
...s
|
|
13
|
+
}
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
o.displayName = "Divider";
|
|
17
|
+
const m = o;
|
|
18
|
+
export {
|
|
19
|
+
m as D
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index-9HRzXEQf.cjs"),a=require("react"),i=a.forwardRef(({className:s,orientation:e="horizontal",...t},n)=>r.jsxRuntimeExports.jsx("span",{ref:n,className:r.cn("bg-neutral-050",s,{"h-px! w-full":e==="horizontal","h-full w-px!":e==="vertical"}),...t}));i.displayName="Divider";const l=i;exports.Divider=l;
|
|
@@ -4,7 +4,7 @@ var ge;
|
|
|
4
4
|
function Le() {
|
|
5
5
|
if (ge) return re;
|
|
6
6
|
ge = 1;
|
|
7
|
-
var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
7
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
8
|
function t(o, s, c) {
|
|
9
9
|
var i = null;
|
|
10
10
|
if (c !== void 0 && (i = "" + c), s.key !== void 0 && (i = "" + s.key), "key" in s) {
|
|
@@ -219,7 +219,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
219
219
|
function E(r) {
|
|
220
220
|
return typeof r == "object" && r !== null && r.$$typeof === C;
|
|
221
221
|
}
|
|
222
|
-
var T = Ge, C = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), G = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), se = Symbol.for("react.client.reference"), F = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, Q = Array.isArray, P = console.createTask ? console.createTask : function() {
|
|
222
|
+
var T = Ge, C = /* @__PURE__ */ Symbol.for("react.transitional.element"), _ = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), O = /* @__PURE__ */ Symbol.for("react.strict_mode"), U = /* @__PURE__ */ Symbol.for("react.profiler"), W = /* @__PURE__ */ Symbol.for("react.consumer"), G = /* @__PURE__ */ Symbol.for("react.context"), L = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), m = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), se = /* @__PURE__ */ Symbol.for("react.client.reference"), F = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, Q = Array.isArray, P = console.createTask ? console.createTask : function() {
|
|
223
223
|
return null;
|
|
224
224
|
};
|
|
225
225
|
T = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e, c as n } from "./index-
|
|
1
|
+
import { j as e, c as n } from "./index-BCEGphus.js";
|
|
2
2
|
import { EyeSlashIcon as f, EyeIcon as b } from "@phosphor-icons/react";
|
|
3
|
-
import { c as m } from "./index-
|
|
3
|
+
import { c as m } from "./index-DEha_UuN.js";
|
|
4
4
|
import * as x from "react";
|
|
5
|
-
import { B as c } from "./button-
|
|
5
|
+
import { B as c } from "./button-BIGg5o8m.js";
|
|
6
6
|
const o = m(
|
|
7
7
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-9HRzXEQf.cjs"),o=require("@phosphor-icons/react"),c=require("./index-ECyCsPX0.cjs"),x=require("react"),b=require("./button-
|
|
1
|
+
"use strict";const r=require("./index-9HRzXEQf.cjs"),o=require("@phosphor-icons/react"),c=require("./index-ECyCsPX0.cjs"),x=require("react"),b=require("./button-BsQuxg6u.cjs");function f(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const s in i)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,t.get?t:{enumerable:!0,get:()=>i[s]})}}return e.default=i,Object.freeze(e)}const g=f(x),d=c.cva("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm h-7 px-2 py-1",sm:"label-md h-8 px-2 py-1",md:"label-lg h-12 px-3 py-1",lg:"label-xl h-16 px-4 py-2"}},defaultVariants:{size:"md"}});function m({className:i,type:e,size:s,icon:t,iconPosition:a="left",...l}){const[n,u]=g.useState(!1),p=()=>{u(!n)};return!t&&e!=="password"?r.jsxRuntimeExports.jsx("input",{type:e,"data-slot":"input",className:r.cn(d({size:s}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...l}):r.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[t&&a==="left"&&r.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2",children:t}),r.jsxRuntimeExports.jsx("input",{type:e==="password"?n?"text":"password":e,"data-slot":"input",className:r.cn(d({size:s}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t&&a==="left"?"pl-10":"",t&&a==="right"||e==="password"?"pr-10":"",i),...l}),e==="password"&&r.jsxRuntimeExports.jsx(b.Button,{variant:"inverse",type:"button",size:s==="xs"||s==="sm"?"xs":"md",tabIndex:-1,"aria-label":n?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2",onClick:p,children:n?r.jsxRuntimeExports.jsx(o.EyeSlashIcon,{}):r.jsxRuntimeExports.jsx(o.EyeIcon,{})}),t&&a==="right"&&e!=="password"&&r.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2",children:t})]})}exports.Input=m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as
|
|
1
|
+
import { j as t, c as s } from "./index-BCEGphus.js";
|
|
2
2
|
import * as e from "@radix-ui/react-popover";
|
|
3
3
|
function p({
|
|
4
4
|
...o
|
|
@@ -14,8 +14,8 @@ function c({
|
|
|
14
14
|
className: o,
|
|
15
15
|
align: a = "center",
|
|
16
16
|
sideOffset: r = 4,
|
|
17
|
-
collisionPadding:
|
|
18
|
-
...
|
|
17
|
+
collisionPadding: n = 24,
|
|
18
|
+
...i
|
|
19
19
|
}) {
|
|
20
20
|
return /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
21
21
|
e.Content,
|
|
@@ -23,11 +23,12 @@ function c({
|
|
|
23
23
|
"data-slot": "popover-content",
|
|
24
24
|
align: a,
|
|
25
25
|
sideOffset: r,
|
|
26
|
-
className:
|
|
26
|
+
className: s(
|
|
27
27
|
"bg-popover text-popover-foreground 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
28
28
|
o
|
|
29
29
|
),
|
|
30
|
-
|
|
30
|
+
collisionPadding: n,
|
|
31
|
+
...i
|
|
31
32
|
}
|
|
32
33
|
) });
|
|
33
34
|
}
|