@clasing/ui 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{badge-DknEN5GE.cjs → badge-BMe7WNGM.cjs} +1 -1
- package/dist/{badge-CJxUpkWv.js → badge-B_J-uqVk.js} +22 -22
- package/dist/{button-C5IBh3Tr.js → button-DPbsJTTm.js} +81 -81
- package/dist/button-DcyXjceS.cjs +1 -0
- package/dist/{card-9-UcGdV0.js → card-3-vRPTXr.js} +1 -1
- package/dist/{card-D0D_gMHR.cjs → card-DiFJZ6gb.cjs} +1 -1
- package/dist/chip-BCFqRgCq.cjs +1 -0
- package/dist/{chip-D12iiF8O.js → chip-wy9RL5iU.js} +11 -11
- package/dist/{command-pED95x7-.js → command-DTwO6Xc5.js} +53 -53
- package/dist/command-KZ-02POP.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +12 -12
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +14 -14
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +33 -33
- package/dist/components/badge.cjs.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 +2 -2
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +1 -1
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +5 -5
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +5 -5
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +3 -3
- package/dist/components/chart.es.js +24 -24
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/command.cjs.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 +38 -38
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +14 -14
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +3 -3
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +41 -41
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +2 -2
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +6 -6
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.d.ts +0 -5
- package/dist/components/phone-input.es.js +118 -161
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +25 -22
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +2 -2
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/textarea.es.js +4 -4
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +1 -1
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/{dialog-C15HjAtO.cjs → dialog-CMSUa1RD.cjs} +1 -1
- package/dist/{dialog-DIua9sAl.js → dialog-D9ZObHR9.js} +32 -32
- package/dist/input-B_INrEy1.cjs +1 -0
- package/dist/{input-Bs18T-Y3.js → input-C71fsEVP.js} +11 -11
- package/dist/{toggle-nsKZaKsW.js → toggle-BE4UelY4.js} +9 -9
- package/dist/toggle-BEGyyGWY.cjs +1 -0
- package/dist/ui.css +1 -1
- package/package.json +357 -357
- package/dist/button-BnSM-lrr.cjs +0 -1
- package/dist/chip-DePZ5IYA.cjs +0 -1
- package/dist/command-C4Y6Ixrp.cjs +0 -1
- package/dist/input-wSGCWBH-.cjs +0 -1
- package/dist/toggle-B9JMLYVf.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),i=require("@radix-ui/react-dropdown-menu"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),i=require("@radix-ui/react-dropdown-menu"),a=require("../index-DoxiiusW.cjs"),d=require("../icon-component-D5YssRbR.cjs");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const o=u(i);function c({...e}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dropdown-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dropdown-menu-portal",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function l({className:e,sideOffset:n=4,...r}){return t.jsxRuntimeExports.jsx(o.Portal,{children:t.jsxRuntimeExports.jsx(o.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,className:a.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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function x({...e}){return t.jsxRuntimeExports.jsx(o.Group,{"data-slot":"dropdown-menu-group",...e})}function f({className:e,inset:n,variant:r="default",...s}){return t.jsxRuntimeExports.jsx(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":r,className:a.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 text-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 g({className:e,children:n,checked:r,...s}){return t.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:a.cn("focus:bg-accent focus:text-accent-foreground text-paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm 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:r,...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(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(d.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),n]})}function w({...e}){return t.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function b({className:e,children:n,...r}){return t.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:a.cn("focus:bg-accent focus:text-accent-foreground text-paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm 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),...r,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(d.IconComponent,{iconName:"IconCircleFilled",className:"size-2 fill-current"})})}),n]})}function j({className:e,inset:n,...r}){return t.jsxRuntimeExports.jsx(o.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:a.cn("text-paragraph-sm px-2 py-1.5 font-semibold data-[inset]:pl-8",e),...r})}function v({className:e,...n}){return t.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"dropdown-menu-separator",className:a.cn("bg-border -mx-1 my-1 h-px",e),...n})}function h({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:a.cn("text-muted-foreground text-paragraph-xs ml-auto tracking-widest",e),...n})}function D({...e}){return t.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"dropdown-menu-sub",...e})}function M({className:e,inset:n,children:r,...s}){return t.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground text-paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-hidden select-none data-[inset]:pl-8",e),...s,children:[r,t.jsxRuntimeExports.jsx(d.IconComponent,{iconName:"IconChevronRight",className:"ml-auto size-4"})]})}function R({className:e,...n}){return t.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"dropdown-menu-sub-content",className:a.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-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...n})}exports.DropdownMenu=c;exports.DropdownMenuCheckboxItem=g;exports.DropdownMenuContent=l;exports.DropdownMenuGroup=x;exports.DropdownMenuItem=f;exports.DropdownMenuLabel=j;exports.DropdownMenuPortal=p;exports.DropdownMenuRadioGroup=w;exports.DropdownMenuRadioItem=b;exports.DropdownMenuSeparator=v;exports.DropdownMenuShortcut=h;exports.DropdownMenuSub=D;exports.DropdownMenuSubContent=R;exports.DropdownMenuSubTrigger=M;exports.DropdownMenuTrigger=m;
|
|
@@ -7,12 +7,12 @@ function l({
|
|
|
7
7
|
}) {
|
|
8
8
|
return /* @__PURE__ */ t.jsx(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function p({
|
|
11
11
|
...e
|
|
12
12
|
}) {
|
|
13
13
|
return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function m({
|
|
16
16
|
...e
|
|
17
17
|
}) {
|
|
18
18
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -41,12 +41,12 @@ function f({
|
|
|
41
41
|
}
|
|
42
42
|
) });
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function g({
|
|
45
45
|
...e
|
|
46
46
|
}) {
|
|
47
47
|
return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function x({
|
|
50
50
|
className: e,
|
|
51
51
|
inset: o,
|
|
52
52
|
variant: a = "default",
|
|
@@ -59,7 +59,7 @@ function g({
|
|
|
59
59
|
"data-inset": o,
|
|
60
60
|
"data-variant": a,
|
|
61
61
|
className: r(
|
|
62
|
-
"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 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
62
|
+
"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 text-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",
|
|
63
63
|
e
|
|
64
64
|
),
|
|
65
65
|
...s
|
|
@@ -77,7 +77,7 @@ function v({
|
|
|
77
77
|
{
|
|
78
78
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
79
79
|
className: r(
|
|
80
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8
|
|
80
|
+
"focus:bg-accent focus:text-accent-foreground text-paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm 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",
|
|
81
81
|
e
|
|
82
82
|
),
|
|
83
83
|
checked: a,
|
|
@@ -110,7 +110,7 @@ function w({
|
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "dropdown-menu-radio-item",
|
|
112
112
|
className: r(
|
|
113
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground text-paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm 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",
|
|
114
114
|
e
|
|
115
115
|
),
|
|
116
116
|
...a,
|
|
@@ -138,7 +138,7 @@ function h({
|
|
|
138
138
|
"data-slot": "dropdown-menu-label",
|
|
139
139
|
"data-inset": o,
|
|
140
140
|
className: r(
|
|
141
|
-
"px-2 py-1.5
|
|
141
|
+
"text-paragraph-sm px-2 py-1.5 font-semibold data-[inset]:pl-8",
|
|
142
142
|
e
|
|
143
143
|
),
|
|
144
144
|
...a
|
|
@@ -167,7 +167,7 @@ function z({
|
|
|
167
167
|
{
|
|
168
168
|
"data-slot": "dropdown-menu-shortcut",
|
|
169
169
|
className: r(
|
|
170
|
-
"text-muted-foreground ml-auto
|
|
170
|
+
"text-muted-foreground text-paragraph-xs ml-auto tracking-widest",
|
|
171
171
|
e
|
|
172
172
|
),
|
|
173
173
|
...o
|
|
@@ -191,7 +191,7 @@ function D({
|
|
|
191
191
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
192
192
|
"data-inset": o,
|
|
193
193
|
className: r(
|
|
194
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5
|
|
194
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground text-paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-hidden select-none data-[inset]:pl-8",
|
|
195
195
|
e
|
|
196
196
|
),
|
|
197
197
|
...s,
|
|
@@ -222,10 +222,10 @@ export {
|
|
|
222
222
|
l as DropdownMenu,
|
|
223
223
|
v as DropdownMenuCheckboxItem,
|
|
224
224
|
f as DropdownMenuContent,
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
g as DropdownMenuGroup,
|
|
226
|
+
x as DropdownMenuItem,
|
|
227
227
|
h as DropdownMenuLabel,
|
|
228
|
-
|
|
228
|
+
p as DropdownMenuPortal,
|
|
229
229
|
b as DropdownMenuRadioGroup,
|
|
230
230
|
w as DropdownMenuRadioItem,
|
|
231
231
|
j as DropdownMenuSeparator,
|
|
@@ -233,5 +233,5 @@ export {
|
|
|
233
233
|
N as DropdownMenuSub,
|
|
234
234
|
M as DropdownMenuSubContent,
|
|
235
235
|
D as DropdownMenuSubTrigger,
|
|
236
|
-
|
|
236
|
+
m as DropdownMenuTrigger
|
|
237
237
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("input-otp"),d=require("react"),i=require("../index-DoxiiusW.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("input-otp"),d=require("react"),i=require("../index-DoxiiusW.cjs"),p=require("../icon-component-D5YssRbR.cjs");function l(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=l(d);function m({className:t,containerClassName:e,...r}){return n.jsxRuntimeExports.jsx(o.OTPInput,{"data-slot":"input-otp",containerClassName:i.cn("flex items-center gap-2 has-disabled:opacity-50",e),className:i.cn("disabled:cursor-not-allowed",t),...r})}function v({className:t,...e}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:i.cn("flex items-center",t),...e})}function f({index:t,className:e,...r}){const a=x.useContext(o.OTPInputContext),{char:s,hasFakeCaret:u,isActive:c}=a?.slots[t]??{};return n.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:i.cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input text-paragraph-sm relative flex h-9 w-9 items-center justify-center border-y border-r transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",e),...r,children:[s,u&&n.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:n.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function j({...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...t,children:n.jsxRuntimeExports.jsx(p.IconComponent,{iconName:"IconMinus"})})}exports.InputOTP=m;exports.InputOTPGroup=v;exports.InputOTPSeparator=j;exports.InputOTPSlot=f;
|
|
@@ -43,7 +43,7 @@ function j({
|
|
|
43
43
|
"data-slot": "input-otp-slot",
|
|
44
44
|
"data-active": d,
|
|
45
45
|
className: a(
|
|
46
|
-
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r
|
|
46
|
+
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input text-paragraph-sm relative flex h-9 w-9 items-center justify-center border-y border-r transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
|
|
47
47
|
r
|
|
48
48
|
),
|
|
49
49
|
...i,
|
|
@@ -54,12 +54,12 @@ function j({
|
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function h({ ...t }) {
|
|
58
58
|
return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ e.jsx(p, { iconName: "IconMinus" }) });
|
|
59
59
|
}
|
|
60
60
|
export {
|
|
61
61
|
b as InputOTP,
|
|
62
62
|
g as InputOTPGroup,
|
|
63
|
-
|
|
63
|
+
h as InputOTPSeparator,
|
|
64
64
|
j as InputOTPSlot
|
|
65
65
|
};
|
|
@@ -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-B_INrEy1.cjs");exports.Input=t.Input;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("@radix-ui/react-menubar"),o=require("../index-DoxiiusW.cjs"),i=require("../icon-component-D5YssRbR.cjs");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=m(c);function l({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Root,{"data-slot":"menubar",className:o.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("@radix-ui/react-menubar"),o=require("../index-DoxiiusW.cjs"),i=require("../icon-component-D5YssRbR.cjs");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=m(c);function l({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Root,{"data-slot":"menubar",className:o.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function p({...e}){return n.jsxRuntimeExports.jsx(a.Menu,{"data-slot":"menubar-menu",...e})}function x({...e}){return n.jsxRuntimeExports.jsx(a.Group,{"data-slot":"menubar-group",...e})}function u({...e}){return n.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"menubar-portal",...e})}function b({...e}){return n.jsxRuntimeExports.jsx(a.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function f({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"menubar-trigger",className:o.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground text-paragraph-sm flex items-center rounded-sm px-2 py-1 font-medium outline-hidden select-none",e),...t})}function g({className:e,align:t="start",alignOffset:r=-4,sideOffset:s=8,...d}){return n.jsxRuntimeExports.jsx(u,{children:n.jsxRuntimeExports.jsx(a.Content,{"data-slot":"menubar-content",align:t,alignOffset:r,sideOffset:s,className:o.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-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...d})})}function j({className:e,inset:t,variant:r="default",...s}){return n.jsxRuntimeExports.jsx(a.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":r,className:o.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 text-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 v({className:e,children:t,checked:r,...s}){return n.jsxRuntimeExports.jsxs(a.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:o.cn("focus:bg-accent focus:text-accent-foreground text-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:r,...s,children:[n.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsxRuntimeExports.jsx(a.ItemIndicator,{children:n.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),t]})}function h({className:e,children:t,...r}){return n.jsxRuntimeExports.jsxs(a.RadioItem,{"data-slot":"menubar-radio-item",className:o.cn("focus:bg-accent focus:text-accent-foreground text-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),...r,children:[n.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsxRuntimeExports.jsx(a.ItemIndicator,{children:n.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconCircle",className:"size-2 fill-current"})})}),t]})}function M({className:e,inset:t,...r}){return n.jsxRuntimeExports.jsx(a.Label,{"data-slot":"menubar-label","data-inset":t,className:o.cn("text-paragraph-sm px-2 py-1.5 font-medium data-[inset]:pl-8",e),...r})}function R({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Separator,{"data-slot":"menubar-separator",className:o.cn("bg-border -mx-1 my-1 h-px",e),...t})}function E({className:e,...t}){return n.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:o.cn("text-muted-foreground text-paragraph-xs ml-auto tracking-widest",e),...t})}function N({...e}){return n.jsxRuntimeExports.jsx(a.Sub,{"data-slot":"menubar-sub",...e})}function I({className:e,inset:t,children:r,...s}){return n.jsxRuntimeExports.jsxs(a.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:o.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground text-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:[r,n.jsxRuntimeExports.jsx(i.IconComponent,{iconName:"IconChevronRight",className:"ml-auto h-4 w-4"})]})}function S({className:e,...t}){return n.jsxRuntimeExports.jsx(a.SubContent,{"data-slot":"menubar-sub-content",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 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}exports.Menubar=l;exports.MenubarCheckboxItem=v;exports.MenubarContent=g;exports.MenubarGroup=x;exports.MenubarItem=j;exports.MenubarLabel=M;exports.MenubarMenu=p;exports.MenubarPortal=u;exports.MenubarRadioGroup=b;exports.MenubarRadioItem=h;exports.MenubarSeparator=R;exports.MenubarShortcut=E;exports.MenubarSub=N;exports.MenubarSubContent=S;exports.MenubarSubTrigger=I;exports.MenubarTrigger=f;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as n from "@radix-ui/react-menubar";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as o } from "../index-CRiPKpXj.js";
|
|
4
4
|
import { I as d } from "../icon-component-CxQsODCa.js";
|
|
5
|
-
function
|
|
5
|
+
function p({
|
|
6
6
|
className: e,
|
|
7
7
|
...a
|
|
8
8
|
}) {
|
|
@@ -10,7 +10,7 @@ function f({
|
|
|
10
10
|
n.Root,
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "menubar",
|
|
13
|
-
className:
|
|
13
|
+
className: o(
|
|
14
14
|
"bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
|
|
15
15
|
e
|
|
16
16
|
),
|
|
@@ -18,12 +18,12 @@ function f({
|
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function f({
|
|
22
22
|
...e
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ t.jsx(n.Menu, { "data-slot": "menubar-menu", ...e });
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function b({
|
|
27
27
|
...e
|
|
28
28
|
}) {
|
|
29
29
|
return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "menubar-group", ...e });
|
|
@@ -33,12 +33,12 @@ function u({
|
|
|
33
33
|
}) {
|
|
34
34
|
return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "menubar-portal", ...e });
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function g({
|
|
37
37
|
...e
|
|
38
38
|
}) {
|
|
39
39
|
return /* @__PURE__ */ t.jsx(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e });
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function x({
|
|
42
42
|
className: e,
|
|
43
43
|
...a
|
|
44
44
|
}) {
|
|
@@ -46,8 +46,8 @@ function g({
|
|
|
46
46
|
n.Trigger,
|
|
47
47
|
{
|
|
48
48
|
"data-slot": "menubar-trigger",
|
|
49
|
-
className:
|
|
50
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1
|
|
49
|
+
className: o(
|
|
50
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground text-paragraph-sm flex items-center rounded-sm px-2 py-1 font-medium outline-hidden select-none",
|
|
51
51
|
e
|
|
52
52
|
),
|
|
53
53
|
...a
|
|
@@ -57,7 +57,7 @@ function g({
|
|
|
57
57
|
function v({
|
|
58
58
|
className: e,
|
|
59
59
|
align: a = "start",
|
|
60
|
-
alignOffset:
|
|
60
|
+
alignOffset: r = -4,
|
|
61
61
|
sideOffset: s = 8,
|
|
62
62
|
...i
|
|
63
63
|
}) {
|
|
@@ -66,9 +66,9 @@ function v({
|
|
|
66
66
|
{
|
|
67
67
|
"data-slot": "menubar-content",
|
|
68
68
|
align: a,
|
|
69
|
-
alignOffset:
|
|
69
|
+
alignOffset: r,
|
|
70
70
|
sideOffset: s,
|
|
71
|
-
className:
|
|
71
|
+
className: o(
|
|
72
72
|
"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-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
73
73
|
e
|
|
74
74
|
),
|
|
@@ -79,7 +79,7 @@ function v({
|
|
|
79
79
|
function h({
|
|
80
80
|
className: e,
|
|
81
81
|
inset: a,
|
|
82
|
-
variant:
|
|
82
|
+
variant: r = "default",
|
|
83
83
|
...s
|
|
84
84
|
}) {
|
|
85
85
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -87,9 +87,9 @@ function h({
|
|
|
87
87
|
{
|
|
88
88
|
"data-slot": "menubar-item",
|
|
89
89
|
"data-inset": a,
|
|
90
|
-
"data-variant":
|
|
91
|
-
className:
|
|
92
|
-
"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 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
90
|
+
"data-variant": r,
|
|
91
|
+
className: o(
|
|
92
|
+
"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 text-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",
|
|
93
93
|
e
|
|
94
94
|
),
|
|
95
95
|
...s
|
|
@@ -99,18 +99,18 @@ function h({
|
|
|
99
99
|
function j({
|
|
100
100
|
className: e,
|
|
101
101
|
children: a,
|
|
102
|
-
checked:
|
|
102
|
+
checked: r,
|
|
103
103
|
...s
|
|
104
104
|
}) {
|
|
105
105
|
return /* @__PURE__ */ t.jsxs(
|
|
106
106
|
n.CheckboxItem,
|
|
107
107
|
{
|
|
108
108
|
"data-slot": "menubar-checkbox-item",
|
|
109
|
-
className:
|
|
110
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8
|
|
109
|
+
className: o(
|
|
110
|
+
"focus:bg-accent focus:text-accent-foreground text-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",
|
|
111
111
|
e
|
|
112
112
|
),
|
|
113
|
-
checked:
|
|
113
|
+
checked: r,
|
|
114
114
|
...s,
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(d, { iconName: "IconCheck", className: "size-4" }) }) }),
|
|
@@ -122,17 +122,17 @@ function j({
|
|
|
122
122
|
function M({
|
|
123
123
|
className: e,
|
|
124
124
|
children: a,
|
|
125
|
-
...
|
|
125
|
+
...r
|
|
126
126
|
}) {
|
|
127
127
|
return /* @__PURE__ */ t.jsxs(
|
|
128
128
|
n.RadioItem,
|
|
129
129
|
{
|
|
130
130
|
"data-slot": "menubar-radio-item",
|
|
131
|
-
className:
|
|
132
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8
|
|
131
|
+
className: o(
|
|
132
|
+
"focus:bg-accent focus:text-accent-foreground text-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",
|
|
133
133
|
e
|
|
134
134
|
),
|
|
135
|
-
...
|
|
135
|
+
...r,
|
|
136
136
|
children: [
|
|
137
137
|
/* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(
|
|
138
138
|
d,
|
|
@@ -149,18 +149,18 @@ function M({
|
|
|
149
149
|
function N({
|
|
150
150
|
className: e,
|
|
151
151
|
inset: a,
|
|
152
|
-
...
|
|
152
|
+
...r
|
|
153
153
|
}) {
|
|
154
154
|
return /* @__PURE__ */ t.jsx(
|
|
155
155
|
n.Label,
|
|
156
156
|
{
|
|
157
157
|
"data-slot": "menubar-label",
|
|
158
158
|
"data-inset": a,
|
|
159
|
-
className:
|
|
160
|
-
"px-2 py-1.5
|
|
159
|
+
className: o(
|
|
160
|
+
"text-paragraph-sm px-2 py-1.5 font-medium data-[inset]:pl-8",
|
|
161
161
|
e
|
|
162
162
|
),
|
|
163
|
-
...
|
|
163
|
+
...r
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
}
|
|
@@ -172,7 +172,7 @@ function z({
|
|
|
172
172
|
n.Separator,
|
|
173
173
|
{
|
|
174
174
|
"data-slot": "menubar-separator",
|
|
175
|
-
className:
|
|
175
|
+
className: o("bg-border -mx-1 my-1 h-px", e),
|
|
176
176
|
...a
|
|
177
177
|
}
|
|
178
178
|
);
|
|
@@ -185,8 +185,8 @@ function I({
|
|
|
185
185
|
"span",
|
|
186
186
|
{
|
|
187
187
|
"data-slot": "menubar-shortcut",
|
|
188
|
-
className:
|
|
189
|
-
"text-muted-foreground ml-auto
|
|
188
|
+
className: o(
|
|
189
|
+
"text-muted-foreground text-paragraph-xs ml-auto tracking-widest",
|
|
190
190
|
e
|
|
191
191
|
),
|
|
192
192
|
...a
|
|
@@ -201,7 +201,7 @@ function y({
|
|
|
201
201
|
function k({
|
|
202
202
|
className: e,
|
|
203
203
|
inset: a,
|
|
204
|
-
children:
|
|
204
|
+
children: r,
|
|
205
205
|
...s
|
|
206
206
|
}) {
|
|
207
207
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -209,13 +209,13 @@ function k({
|
|
|
209
209
|
{
|
|
210
210
|
"data-slot": "menubar-sub-trigger",
|
|
211
211
|
"data-inset": a,
|
|
212
|
-
className:
|
|
213
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5
|
|
212
|
+
className: o(
|
|
213
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground text-paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none data-[inset]:pl-8",
|
|
214
214
|
e
|
|
215
215
|
),
|
|
216
216
|
...s,
|
|
217
217
|
children: [
|
|
218
|
-
|
|
218
|
+
r,
|
|
219
219
|
/* @__PURE__ */ t.jsx(d, { iconName: "IconChevronRight", className: "ml-auto h-4 w-4" })
|
|
220
220
|
]
|
|
221
221
|
}
|
|
@@ -229,7 +229,7 @@ function C({
|
|
|
229
229
|
n.SubContent,
|
|
230
230
|
{
|
|
231
231
|
"data-slot": "menubar-sub-content",
|
|
232
|
-
className:
|
|
232
|
+
className: o(
|
|
233
233
|
"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-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
234
234
|
e
|
|
235
235
|
),
|
|
@@ -238,20 +238,20 @@ function C({
|
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
export {
|
|
241
|
-
|
|
241
|
+
p as Menubar,
|
|
242
242
|
j as MenubarCheckboxItem,
|
|
243
243
|
v as MenubarContent,
|
|
244
|
-
|
|
244
|
+
b as MenubarGroup,
|
|
245
245
|
h as MenubarItem,
|
|
246
246
|
N as MenubarLabel,
|
|
247
|
-
|
|
247
|
+
f as MenubarMenu,
|
|
248
248
|
u as MenubarPortal,
|
|
249
|
-
|
|
249
|
+
g as MenubarRadioGroup,
|
|
250
250
|
M as MenubarRadioItem,
|
|
251
251
|
z as MenubarSeparator,
|
|
252
252
|
I as MenubarShortcut,
|
|
253
253
|
y as MenubarSub,
|
|
254
254
|
C as MenubarSubContent,
|
|
255
255
|
k as MenubarSubTrigger,
|
|
256
|
-
|
|
256
|
+
x as MenubarTrigger
|
|
257
257
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),M=require("../badge-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),M=require("../badge-BMe7WNGM.cjs"),x=require("../command-KZ-02POP.cjs"),b=require("../popover-4V87msIT.cjs"),w=require("../index-DoxiiusW.cjs"),s=require("react"),R=require("../icon-component-D5YssRbR.cjs"),I=s.createContext(null);function k({children:e,values:n,defaultValues:r,onValuesChange:o}){const[m,p]=s.useState(!1),[h,f]=s.useState(new Set(n??r)),[y,j]=s.useState(new Map);function E(c){const i=l=>{const a=new Set(l);return a.has(c)?a.delete(c):a.add(c),a};f(i),o?.([...i(h)])}const g=s.useCallback((c,i)=>{j(l=>l.get(c)===i?l:new Map(l).set(c,i))},[]);return t.jsxRuntimeExports.jsx(I,{value:{open:m,setOpen:p,selectedValues:n?new Set(n):h,toggleValue:E,items:y,onItemAdded:g},children:t.jsxRuntimeExports.jsx(b.Popover,{open:m,onOpenChange:p,children:e})})}function V({className:e,children:n,size:r="md",...o}){const{open:m}=v();return t.jsxRuntimeExports.jsx(b.PopoverTrigger,{asChild:!0,children:t.jsxRuntimeExports.jsxs("button",{...o,role:o.role??"combobox","aria-expanded":o["aria-expanded"]??m,"data-size":r,className:w.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",r==="xs"&&'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',r==="sm"&&"text-label-md h-8 px-2 py-1",r==="md"&&"text-label-lg h-12 px-3 py-1",r==="lg"&&"text-label-xl h-16 px-4 py-2",e),children:[n,t.jsxRuntimeExports.jsx(R.IconComponent,{iconName:"IconSelector",className:"size-4 shrink-0 opacity-50"})]})})}function z({placeholder:e,clickToRemove:n=!0,className:r,overflowBehavior:o="wrap-when-open",...m}){const{selectedValues:p,toggleValue:h,items:f,open:y}=v(),[j,E]=s.useState(0),g=s.useRef(null),c=s.useRef(null),i=s.useRef(new Set),l=o==="wrap"||o==="wrap-when-open"&&y;s.useEffect(()=>{l&&i.current.forEach(u=>u.style.removeProperty("display"))},[l]);const a=s.useCallback(()=>{if(g.current==null)return;const u=g.current,d=c.current;d!=null&&(d.style.display="none"),i.current.forEach(S=>S.style.removeProperty("display"));let C=0;for(let S=i.current.size-1;S>=0;S--){const N=[...i.current][S];if(u.scrollWidth<=u.clientWidth)break;C=i.current.size-S,N.style.display="none",d?.style.removeProperty("display")}E(C)},[]);return s.useEffect(()=>{if(g.current==null)return;const u=new ResizeObserver(a);return u.observe(g.current),()=>u.disconnect()},[a]),s.useLayoutEffect(()=>{a()},[p,a]),p.size===0&&e?t.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:e}):t.jsxRuntimeExports.jsxs("div",{...m,ref:g,className:w.cn("flex w-full gap-1.5 overflow-hidden min-h-[1.75rem]",l&&"flex-wrap",r),children:[[...p].filter(u=>f.has(u)).map(u=>t.jsxRuntimeExports.jsxs(M.Badge,{ref:d=>{if(d!=null)return i.current.add(d),()=>{i.current.delete(d)}},variant:"outline",className:"group flex items-center gap-1",onClick:n?d=>{d.stopPropagation(),h(u)}:void 0,children:[f.get(u),n&&t.jsxRuntimeExports.jsx(R.IconComponent,{iconName:"IconX",className:"text-muted-foreground group-hover:text-destructive size-2"})]},u)),t.jsxRuntimeExports.jsxs(M.Badge,{style:{display:j>0&&!l?"block":"none"},variant:"outline",ref:c,children:["+",j]})]})}function P({search:e=!0,children:n,...r}){const o=typeof e=="object"?!0:e;return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:t.jsxRuntimeExports.jsx(x.Command,{children:t.jsxRuntimeExports.jsx(x.CommandList,{children:n})})}),t.jsxRuntimeExports.jsx(b.PopoverContent,{className:"min-w-[var(--radix-popover-trigger-width)] p-0",children:t.jsxRuntimeExports.jsxs(x.Command,{...r,children:[o?t.jsxRuntimeExports.jsx(x.CommandInput,{placeholder:typeof e=="object"?e.placeholder:void 0}):t.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),t.jsxRuntimeExports.jsxs(x.CommandList,{children:[o&&t.jsxRuntimeExports.jsx(x.CommandEmpty,{children:typeof e=="object"?e.emptyMessage:void 0}),n]})]})})]})}function q({value:e,children:n,badgeLabel:r,onSelect:o,...m}){const{toggleValue:p,selectedValues:h,onItemAdded:f}=v(),y=h.has(e);return s.useEffect(()=>{f(e,r??n)},[e,n,f,r]),t.jsxRuntimeExports.jsxs(x.CommandItem,{...m,value:e,onSelect:j=>{p(j),o?.(j)},children:[t.jsxRuntimeExports.jsx(R.IconComponent,{iconName:"IconCheck",className:w.cn("mr-2 size-4",y?"opacity-100":"opacity-0")}),n]})}function O(e){return t.jsxRuntimeExports.jsx(x.CommandGroup,{...e})}function _(e){return t.jsxRuntimeExports.jsx(x.CommandSeparator,{...e})}function v(){const e=s.useContext(I);if(e==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return e}exports.MultiSelect=k;exports.MultiSelectContent=P;exports.MultiSelectGroup=O;exports.MultiSelectItem=q;exports.MultiSelectSeparator=_;exports.MultiSelectTrigger=V;exports.MultiSelectValue=z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { B as I } from "../badge-
|
|
3
|
-
import { C as k, f as E, d as O, b as R, c as _, e as A, g as W } from "../command-
|
|
2
|
+
import { B as I } from "../badge-B_J-uqVk.js";
|
|
3
|
+
import { C as k, f as E, d as O, b as R, c as _, e as A, g as W } from "../command-DTwO6Xc5.js";
|
|
4
4
|
import { P as F, b as G, c as B } from "../popover-CHAUhJda.js";
|
|
5
5
|
import { c as S } from "../index-CRiPKpXj.js";
|
|
6
6
|
import { createContext as L, useState as y, useCallback as V, useEffect as v, useRef as j, useLayoutEffect as T, useContext as X } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-navigation-menu"),c=require("../index-C8P6Mn4U.cjs"),o=require("../index-DoxiiusW.cjs"),g=require("../icon-component-D5YssRbR.cjs");function l(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=l(d);function m({className:t,children:e,viewport:n=!0,...r}){return a.jsxRuntimeExports.jsxs(i.Root,{"data-slot":"navigation-menu","data-viewport":n,className:o.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...r,children:[e,n&&a.jsxRuntimeExports.jsx(u,{})]})}function v({className:t,...e}){return a.jsxRuntimeExports.jsx(i.List,{"data-slot":"navigation-menu-list",className:o.cn("group flex flex-1 list-none items-center justify-center gap-1",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Item,{"data-slot":"navigation-menu-item",className:o.cn("relative",t),...e})}const s=c.cva("group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-navigation-menu"),c=require("../index-C8P6Mn4U.cjs"),o=require("../index-DoxiiusW.cjs"),g=require("../icon-component-D5YssRbR.cjs");function l(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=l(d);function m({className:t,children:e,viewport:n=!0,...r}){return a.jsxRuntimeExports.jsxs(i.Root,{"data-slot":"navigation-menu","data-viewport":n,className:o.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...r,children:[e,n&&a.jsxRuntimeExports.jsx(u,{})]})}function v({className:t,...e}){return a.jsxRuntimeExports.jsx(i.List,{"data-slot":"navigation-menu-list",className:o.cn("group flex flex-1 list-none items-center justify-center gap-1",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Item,{"data-slot":"navigation-menu-item",className:o.cn("relative",t),...e})}const s=c.cva("group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 text-paragraph-sm inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50");function f({className:t,children:e,...n}){return a.jsxRuntimeExports.jsxs(i.Trigger,{"data-slot":"navigation-menu-trigger",className:o.cn(s(),"group",t),...n,children:[e," ",a.jsxRuntimeExports.jsx(g.IconComponent,{iconName:"IconChevronDown",className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function x({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Content,{"data-slot":"navigation-menu-content",className:o.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t),...e})}function u({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{className:o.cn("absolute top-full left-0 isolate z-50 flex justify-center"),children:a.jsxRuntimeExports.jsx(i.Viewport,{"data-slot":"navigation-menu-viewport",className:o.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",t),...e})})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Link,{"data-slot":"navigation-menu-link",className:o.cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground text-paragraph-sm flex flex-col gap-1 rounded-sm p-2 transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",t),...e})}function w({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Indicator,{"data-slot":"navigation-menu-indicator",className:o.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",t),...e,children:a.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}exports.NavigationMenu=m;exports.NavigationMenuContent=x;exports.NavigationMenuIndicator=w;exports.NavigationMenuItem=p;exports.NavigationMenuLink=b;exports.NavigationMenuList=v;exports.NavigationMenuTrigger=f;exports.NavigationMenuViewport=u;exports.navigationMenuTriggerStyle=s;
|
|
@@ -56,7 +56,7 @@ function x({
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const d = s(
|
|
59
|
-
"group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2
|
|
59
|
+
"group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 text-paragraph-sm inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50"
|
|
60
60
|
);
|
|
61
61
|
function w({
|
|
62
62
|
className: t,
|
|
@@ -84,7 +84,7 @@ function w({
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function h({
|
|
88
88
|
className: t,
|
|
89
89
|
...a
|
|
90
90
|
}) {
|
|
@@ -125,7 +125,7 @@ function l({
|
|
|
125
125
|
}
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function b({
|
|
129
129
|
className: t,
|
|
130
130
|
...a
|
|
131
131
|
}) {
|
|
@@ -134,7 +134,7 @@ function h({
|
|
|
134
134
|
{
|
|
135
135
|
"data-slot": "navigation-menu-link",
|
|
136
136
|
className: o(
|
|
137
|
-
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2
|
|
137
|
+
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground text-paragraph-sm flex flex-col gap-1 rounded-sm p-2 transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
138
138
|
t
|
|
139
139
|
),
|
|
140
140
|
...a
|
|
@@ -160,10 +160,10 @@ function N({
|
|
|
160
160
|
}
|
|
161
161
|
export {
|
|
162
162
|
f as NavigationMenu,
|
|
163
|
-
|
|
163
|
+
h as NavigationMenuContent,
|
|
164
164
|
N as NavigationMenuIndicator,
|
|
165
165
|
x as NavigationMenuItem,
|
|
166
|
-
|
|
166
|
+
b as NavigationMenuLink,
|
|
167
167
|
p as NavigationMenuList,
|
|
168
168
|
w as NavigationMenuTrigger,
|
|
169
169
|
l as NavigationMenuViewport,
|