@clasing/ui 0.1.123 → 0.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge-BnerQ2lF.js +85 -0
- package/dist/badge-Czof3oqL.cjs +1 -0
- package/dist/button-Cegl49Yi.cjs +1 -0
- package/dist/button-DddHyyHa.js +504 -0
- package/dist/calendar-BAQkzm4v.js +117 -0
- package/dist/calendar-DL8gqdRp.cjs +1 -0
- package/dist/card-BCgtou88.cjs +1 -0
- package/dist/card-BfBXE5Kq.js +90 -0
- package/dist/chip-A32aAc-8.cjs +1 -0
- package/dist/chip-ZZHZ8i1Q.js +127 -0
- package/dist/command-BGCSJ9vX.js +506 -0
- package/dist/command-D9M8dk1M.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -0
- package/dist/components/accordion.es.js +70 -0
- package/dist/components/alert-dialog.cjs.js +1 -0
- package/dist/components/alert-dialog.es.js +146 -0
- package/dist/components/alert.cjs.js +1 -0
- package/dist/components/alert.es.js +97 -0
- package/dist/components/avatar.cjs.js +1 -0
- package/dist/components/avatar.es.js +53 -0
- package/dist/components/badge.cjs.js +1 -0
- package/dist/components/badge.es.js +4 -0
- package/dist/components/blocks/date-picker.cjs.js +1 -0
- package/dist/components/blocks/date-picker.es.js +181 -0
- package/dist/components/blocks/date-range-picker.cjs.js +1 -0
- package/dist/components/blocks/date-range-picker.es.js +238 -0
- package/dist/components/blocks/interactive-card.cjs.js +1 -0
- package/dist/components/blocks/interactive-card.es.js +138 -0
- package/dist/components/blocks/selectable-chips.cjs.js +1 -0
- package/dist/components/blocks/selectable-chips.es.js +57 -0
- package/dist/components/breadcrumb.cjs.js +1 -0
- package/dist/components/breadcrumb.es.js +106 -0
- package/dist/components/button.cjs.js +1 -0
- package/dist/components/button.es.js +7 -0
- package/dist/components/calendar.cjs.js +1 -0
- package/dist/components/calendar.es.js +4 -0
- package/dist/components/card.cjs.js +1 -0
- package/dist/components/card.es.js +10 -0
- package/dist/components/chart.cjs.js +7 -0
- package/dist/components/chart.es.js +213 -0
- package/dist/components/checkbox.cjs.js +1 -0
- package/dist/components/checkbox.es.js +31 -0
- package/dist/components/chip.cjs.js +1 -0
- package/dist/components/chip.es.js +5 -0
- package/dist/components/collapsible.cjs.js +1 -0
- package/dist/components/collapsible.es.js +34 -0
- package/dist/components/command.cjs.js +1 -0
- package/dist/components/command.es.js +12 -0
- package/dist/components/context-menu.cjs.js +1 -0
- package/dist/components/context-menu.es.js +229 -0
- package/dist/components/dialog.cjs.js +1 -0
- package/dist/components/dialog.es.js +13 -0
- package/dist/components/divider.cjs.js +1 -0
- package/dist/components/divider.es.js +21 -0
- package/dist/components/drawer.cjs.js +3 -0
- package/dist/components/drawer.es.js +1161 -0
- package/dist/components/dropdown-menu.cjs.js +1 -0
- package/dist/components/dropdown-menu.es.js +237 -0
- package/dist/components/hover-card.cjs.js +1 -0
- package/dist/components/hover-card.es.js +38 -0
- package/dist/components/icon-component.cjs.js +1 -0
- package/dist/components/icon-component.es.js +4 -0
- package/dist/components/input-otp.cjs.js +20 -0
- package/dist/components/input-otp.es.js +253 -0
- package/dist/components/input.cjs.js +1 -0
- package/dist/components/input.es.js +4 -0
- package/dist/components/label.cjs.js +1 -0
- package/dist/components/label.es.js +4 -0
- package/dist/components/menubar.cjs.js +1 -0
- package/dist/components/menubar.es.js +257 -0
- package/dist/components/multi-select.cjs.js +1 -0
- package/dist/components/multi-select.es.js +233 -0
- package/dist/components/navigation-menu.cjs.js +1 -0
- package/dist/components/navigation-menu.es.js +171 -0
- package/dist/components/phone-input.cjs.js +1 -0
- package/dist/components/phone-input.es.js +253 -0
- package/dist/components/popover.cjs.js +1 -0
- package/dist/components/popover.es.js +7 -0
- package/dist/components/progress.cjs.js +1 -0
- package/dist/components/progress.es.js +31 -0
- package/dist/components/resizable.cjs.js +1 -0
- package/dist/components/resizable.es.js +1551 -0
- package/dist/components/scroll-area.cjs.js +1 -0
- package/dist/components/scroll-area.es.js +5 -0
- package/dist/components/select.cjs.js +1 -0
- package/dist/components/select.es.js +179 -0
- package/dist/components/sheet.cjs.js +1 -0
- package/dist/components/sheet.es.js +126 -0
- package/dist/components/skeleton.cjs.js +1 -0
- package/dist/components/skeleton.es.js +15 -0
- package/dist/components/slider.cjs.js +1 -0
- package/dist/components/slider.es.js +63 -0
- package/dist/components/sonner.cjs.js +1 -0
- package/dist/components/sonner.es.js +68 -0
- package/dist/components/switch.cjs.js +1 -0
- package/dist/components/switch.es.js +82 -0
- package/dist/components/table.cjs.js +1 -0
- package/dist/components/table.es.js +114 -0
- package/dist/components/toggle-group.cjs.js +1 -0
- package/dist/components/toggle-group.es.js +62 -0
- package/dist/components/toggle.cjs.js +1 -0
- package/dist/components/toggle.es.js +5 -0
- package/dist/components/tooltip.cjs.js +1 -0
- package/dist/components/tooltip.es.js +7 -0
- package/dist/dialog-BKm2PZl2.cjs +1 -0
- package/dist/dialog-DZpF7OXg.js +136 -0
- package/dist/hooks/useOutsideClick.cjs.js +1 -0
- package/dist/hooks/useOutsideClick.es.js +14 -0
- package/dist/icon-component-BZ-4FDV6.js +49 -0
- package/dist/icon-component-LY_vGYHZ.cjs +1 -0
- package/dist/index-BqtVL8d-.js +34 -0
- package/dist/index-C8P6Mn4U.cjs +1 -0
- package/dist/index-CRiPKpXj.js +2743 -0
- package/dist/index-DoxiiusW.cjs +1 -0
- package/dist/input-DFPJ_mtM.cjs +1 -0
- package/dist/input-DwPDvbRE.js +174 -0
- package/dist/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/jsx-runtime-DUiatUiq.cjs +22 -0
- package/dist/label-BpDUqtrC.js +22 -0
- package/dist/label-CbzkBbPT.cjs +1 -0
- package/dist/popover-B8wp2cHF.cjs +1 -0
- package/dist/popover-BoDRCUh2.js +44 -0
- package/dist/scroll-area-CNsThIs_.js +60 -0
- package/dist/scroll-area-Dr-7opp_.cjs +1 -0
- package/dist/style-BNIXVvBA.js +1172 -0
- package/dist/style-CA5976Oh.cjs +1 -0
- package/dist/toggle-Dgd7L2Mq.cjs +1 -0
- package/dist/toggle-DjbiWYXD.js +44 -0
- package/dist/tooltip-Btr9ROSo.js +55 -0
- package/dist/tooltip-W9iE1O--.cjs +1 -0
- package/dist/ui.css +427 -16
- package/dist/utils/types.cjs.js +1 -0
- package/dist/utils/types.es.js +1 -0
- package/package.json +299 -37
- package/dist/index.d.ts +0 -566
- package/dist/index.es.js +0 -7538
- package/dist/index.umd.js +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-DUiatUiq.cjs"),i=require("@radix-ui/react-dropdown-menu"),s=require("../index-DoxiiusW.cjs"),d=require("../icon-component-LY_vGYHZ.cjs");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{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:s.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",...a}){return t.jsxRuntimeExports.jsx(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":r,className:s.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 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm 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),...a})}function g({className:e,children:n,checked:r,...a}){return t.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm 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,...a,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:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm 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:s.cn("px-2 py-1.5 text-sm 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:s.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:s.cn("text-muted-foreground ml-auto text-xs 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,...a}){return t.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:s.cn("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 text-sm outline-hidden select-none data-[inset]:pl-8",e),...a,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:s.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;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { j as t } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as n from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { c as r } from "../index-CRiPKpXj.js";
|
|
4
|
+
import { I as d } from "../icon-component-BZ-4FDV6.js";
|
|
5
|
+
function l({
|
|
6
|
+
...e
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t.jsx(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
9
|
+
}
|
|
10
|
+
function m({
|
|
11
|
+
...e
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
14
|
+
}
|
|
15
|
+
function p({
|
|
16
|
+
...e
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ t.jsx(
|
|
19
|
+
n.Trigger,
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "dropdown-menu-trigger",
|
|
22
|
+
...e
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function f({
|
|
27
|
+
className: e,
|
|
28
|
+
sideOffset: o = 4,
|
|
29
|
+
...a
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
32
|
+
n.Content,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "dropdown-menu-content",
|
|
35
|
+
sideOffset: o,
|
|
36
|
+
className: r(
|
|
37
|
+
"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",
|
|
38
|
+
e
|
|
39
|
+
),
|
|
40
|
+
...a
|
|
41
|
+
}
|
|
42
|
+
) });
|
|
43
|
+
}
|
|
44
|
+
function x({
|
|
45
|
+
...e
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
48
|
+
}
|
|
49
|
+
function g({
|
|
50
|
+
className: e,
|
|
51
|
+
inset: o,
|
|
52
|
+
variant: a = "default",
|
|
53
|
+
...s
|
|
54
|
+
}) {
|
|
55
|
+
return /* @__PURE__ */ t.jsx(
|
|
56
|
+
n.Item,
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "dropdown-menu-item",
|
|
59
|
+
"data-inset": o,
|
|
60
|
+
"data-variant": a,
|
|
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 text-sm 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
|
+
e
|
|
64
|
+
),
|
|
65
|
+
...s
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function v({
|
|
70
|
+
className: e,
|
|
71
|
+
children: o,
|
|
72
|
+
checked: a,
|
|
73
|
+
...s
|
|
74
|
+
}) {
|
|
75
|
+
return /* @__PURE__ */ t.jsxs(
|
|
76
|
+
n.CheckboxItem,
|
|
77
|
+
{
|
|
78
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
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 text-sm 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
|
+
e
|
|
82
|
+
),
|
|
83
|
+
checked: a,
|
|
84
|
+
...s,
|
|
85
|
+
children: [
|
|
86
|
+
/* @__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" }) }) }),
|
|
87
|
+
o
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function b({
|
|
93
|
+
...e
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ t.jsx(
|
|
96
|
+
n.RadioGroup,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
99
|
+
...e
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function w({
|
|
104
|
+
className: e,
|
|
105
|
+
children: o,
|
|
106
|
+
...a
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ t.jsxs(
|
|
109
|
+
n.RadioItem,
|
|
110
|
+
{
|
|
111
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
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 text-sm 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
|
+
e
|
|
115
|
+
),
|
|
116
|
+
...a,
|
|
117
|
+
children: [
|
|
118
|
+
/* @__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(
|
|
119
|
+
d,
|
|
120
|
+
{
|
|
121
|
+
iconName: "IconCircleFilled",
|
|
122
|
+
className: "size-2 fill-current"
|
|
123
|
+
}
|
|
124
|
+
) }) }),
|
|
125
|
+
o
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
function h({
|
|
131
|
+
className: e,
|
|
132
|
+
inset: o,
|
|
133
|
+
...a
|
|
134
|
+
}) {
|
|
135
|
+
return /* @__PURE__ */ t.jsx(
|
|
136
|
+
n.Label,
|
|
137
|
+
{
|
|
138
|
+
"data-slot": "dropdown-menu-label",
|
|
139
|
+
"data-inset": o,
|
|
140
|
+
className: r(
|
|
141
|
+
"px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8",
|
|
142
|
+
e
|
|
143
|
+
),
|
|
144
|
+
...a
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function j({
|
|
149
|
+
className: e,
|
|
150
|
+
...o
|
|
151
|
+
}) {
|
|
152
|
+
return /* @__PURE__ */ t.jsx(
|
|
153
|
+
n.Separator,
|
|
154
|
+
{
|
|
155
|
+
"data-slot": "dropdown-menu-separator",
|
|
156
|
+
className: r("bg-border -mx-1 my-1 h-px", e),
|
|
157
|
+
...o
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function z({
|
|
162
|
+
className: e,
|
|
163
|
+
...o
|
|
164
|
+
}) {
|
|
165
|
+
return /* @__PURE__ */ t.jsx(
|
|
166
|
+
"span",
|
|
167
|
+
{
|
|
168
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
169
|
+
className: r(
|
|
170
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
171
|
+
e
|
|
172
|
+
),
|
|
173
|
+
...o
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
function N({
|
|
178
|
+
...e
|
|
179
|
+
}) {
|
|
180
|
+
return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
181
|
+
}
|
|
182
|
+
function D({
|
|
183
|
+
className: e,
|
|
184
|
+
inset: o,
|
|
185
|
+
children: a,
|
|
186
|
+
...s
|
|
187
|
+
}) {
|
|
188
|
+
return /* @__PURE__ */ t.jsxs(
|
|
189
|
+
n.SubTrigger,
|
|
190
|
+
{
|
|
191
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
192
|
+
"data-inset": o,
|
|
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 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
195
|
+
e
|
|
196
|
+
),
|
|
197
|
+
...s,
|
|
198
|
+
children: [
|
|
199
|
+
a,
|
|
200
|
+
/* @__PURE__ */ t.jsx(d, { iconName: "IconChevronRight", className: "ml-auto size-4" })
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
function M({
|
|
206
|
+
className: e,
|
|
207
|
+
...o
|
|
208
|
+
}) {
|
|
209
|
+
return /* @__PURE__ */ t.jsx(
|
|
210
|
+
n.SubContent,
|
|
211
|
+
{
|
|
212
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
213
|
+
className: r(
|
|
214
|
+
"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",
|
|
215
|
+
e
|
|
216
|
+
),
|
|
217
|
+
...o
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
export {
|
|
222
|
+
l as DropdownMenu,
|
|
223
|
+
v as DropdownMenuCheckboxItem,
|
|
224
|
+
f as DropdownMenuContent,
|
|
225
|
+
x as DropdownMenuGroup,
|
|
226
|
+
g as DropdownMenuItem,
|
|
227
|
+
h as DropdownMenuLabel,
|
|
228
|
+
m as DropdownMenuPortal,
|
|
229
|
+
b as DropdownMenuRadioGroup,
|
|
230
|
+
w as DropdownMenuRadioItem,
|
|
231
|
+
j as DropdownMenuSeparator,
|
|
232
|
+
z as DropdownMenuShortcut,
|
|
233
|
+
N as DropdownMenuSub,
|
|
234
|
+
M as DropdownMenuSubContent,
|
|
235
|
+
D as DropdownMenuSubTrigger,
|
|
236
|
+
p as DropdownMenuTrigger
|
|
237
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-DUiatUiq.cjs"),i=require("@radix-ui/react-hover-card"),d=require("../index-DoxiiusW.cjs");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const n=s(i);function c({...t}){return a.jsxRuntimeExports.jsx(n.Root,{"data-slot":"hover-card",...t})}function u({...t}){return a.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"hover-card-trigger",...t})}function l({className:t,align:r="center",sideOffset:e=4,...o}){return a.jsxRuntimeExports.jsx(n.Portal,{"data-slot":"hover-card-portal",children:a.jsxRuntimeExports.jsx(n.Content,{"data-slot":"hover-card-content",align:r,sideOffset:e,className:d.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),...o})})}exports.HoverCard=c;exports.HoverCardContent=l;exports.HoverCardTrigger=u;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as r from "@radix-ui/react-hover-card";
|
|
3
|
+
import { c as i } from "../index-CRiPKpXj.js";
|
|
4
|
+
function m({
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ o.jsx(r.Root, { "data-slot": "hover-card", ...t });
|
|
8
|
+
}
|
|
9
|
+
function c({
|
|
10
|
+
...t
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ o.jsx(r.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
13
|
+
}
|
|
14
|
+
function l({
|
|
15
|
+
className: t,
|
|
16
|
+
align: e = "center",
|
|
17
|
+
sideOffset: a = 4,
|
|
18
|
+
...d
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ o.jsx(r.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx(
|
|
21
|
+
r.Content,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "hover-card-content",
|
|
24
|
+
align: e,
|
|
25
|
+
sideOffset: a,
|
|
26
|
+
className: i(
|
|
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
|
+
t
|
|
29
|
+
),
|
|
30
|
+
...d
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
m as HoverCard,
|
|
36
|
+
l as HoverCardContent,
|
|
37
|
+
c as HoverCardTrigger
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../icon-component-LY_vGYHZ.cjs");exports.IconComponent=o.IconComponent;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("../jsx-runtime-DUiatUiq.cjs"),ke=require("react"),K=require("../index-DoxiiusW.cjs"),Re=require("../icon-component-LY_vGYHZ.cjs");function Te(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=Te(ke);var Ie=Object.defineProperty,De=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,fe=(e,r,a)=>r in e?Ie(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,We=(e,r)=>{for(var a in r||(r={}))ve.call(r,a)&&fe(e,a,r[a]);if(Q)for(var a of Q(r))ge.call(r,a)&&fe(e,a,r[a]);return e},Be=(e,r)=>De(e,Ae(r)),_e=(e,r)=>{var a={};for(var i in e)ve.call(e,i)&&r.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Q)for(var i of Q(e))r.indexOf(i)<0&&ge.call(e,i)&&(a[i]=e[i]);return a};function Ne(e){let r=setTimeout(e,0),a=setTimeout(e,10),i=setTimeout(e,50);return[r,a,i]}function Fe(e){let r=n.useRef();return n.useEffect(()=>{r.current=e}),r.current}var He=18,he=40,Le=`${he}px`,Ge=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function $e({containerRef:e,inputRef:r,pushPasswordManagerStrategy:a,isFocused:i}){let[w,p]=n.useState(!1),[j,M]=n.useState(!1),[A,F]=n.useState(!1),H=n.useMemo(()=>a==="none"?!1:(a==="increase-width"||a==="experimental-no-flickering")&&w&&j,[w,j,a]),W=n.useCallback(()=>{let f=e.current,P=r.current;if(!f||!P||A||a==="none")return;let h=f,E=h.getBoundingClientRect().left+h.offsetWidth,B=h.getBoundingClientRect().top+h.offsetHeight/2,u=E-He,L=B;document.querySelectorAll(Ge).length===0&&document.elementFromPoint(u,L)===f||(p(!0),F(!0))},[e,r,A,a]);return n.useEffect(()=>{let f=e.current;if(!f||a==="none")return;function P(){let E=window.innerWidth-f.getBoundingClientRect().right;M(E>=he)}P();let h=setInterval(P,1e3);return()=>{clearInterval(h)}},[e,a]),n.useEffect(()=>{let f=i||document.activeElement===r.current;if(a==="none"||!f)return;let P=setTimeout(W,0),h=setTimeout(W,2e3),E=setTimeout(W,5e3),B=setTimeout(()=>{F(!0)},6e3);return()=>{clearTimeout(P),clearTimeout(h),clearTimeout(E),clearTimeout(B)}},[r,i,a,W]),{hasPWMBadge:w,willPushPWMBadge:H,PWM_BADGE_SPACE_WIDTH:Le}}var be=n.createContext({}),xe=n.forwardRef((e,r)=>{var a=e,{value:i,onChange:w,maxLength:p,textAlign:j="left",pattern:M,placeholder:A,inputMode:F="numeric",onComplete:H,pushPasswordManagerStrategy:W="increase-width",pasteTransformer:f,containerClassName:P,noScriptCSSFallback:h=qe,render:E,children:B}=a,u=_e(a,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),L,ne,re,ae,le;let[we,Ee]=n.useState(typeof u.defaultValue=="string"?u.defaultValue:""),s=i??we,O=Fe(s),G=n.useCallback(t=>{w?.(t),Ee(t)},[w]),x=n.useMemo(()=>M?typeof M=="string"?new RegExp(M):M:null,[M]),c=n.useRef(null),U=n.useRef(null),X=n.useRef({value:s,onChange:G,isIOS:typeof window<"u"&&((ne=(L=window?.CSS)==null?void 0:L.supports)==null?void 0:ne.call(L,"-webkit-touch-callout","none"))}),Z=n.useRef({prev:[(re=c.current)==null?void 0:re.selectionStart,(ae=c.current)==null?void 0:ae.selectionEnd,(le=c.current)==null?void 0:le.selectionDirection]});n.useImperativeHandle(r,()=>c.current,[]),n.useEffect(()=>{let t=c.current,l=U.current;if(!t||!l)return;X.current.value!==t.value&&X.current.onChange(t.value),Z.current.prev=[t.selectionStart,t.selectionEnd,t.selectionDirection];function d(){if(document.activeElement!==t){q(null),z(null);return}let o=t.selectionStart,m=t.selectionEnd,J=t.selectionDirection,b=t.maxLength,R=t.value,S=Z.current.prev,y=-1,C=-1,T;if(R.length!==0&&o!==null&&m!==null){let je=o===m,Me=o===R.length&&R.length<b;if(je&&!Me){let I=o;if(I===0)y=0,C=1,T="forward";else if(I===b)y=I-1,C=I,T="backward";else if(b>1&&R.length>1){let te=0;if(S[0]!==null&&S[1]!==null){T=I<S[1]?"backward":"forward";let Oe=S[0]===S[1]&&S[0]<b;T==="backward"&&!Oe&&(te=-1)}y=te+I,C=te+I+1}}y!==-1&&C!==-1&&y!==C&&c.current.setSelectionRange(y,C,T)}let de=y!==-1?y:o,me=C!==-1?C:m,Ce=T??J;q(de),z(me),Z.current.prev=[de,me,Ce]}if(document.addEventListener("selectionchange",d,{capture:!0}),d(),document.activeElement===t&&Y(!0),!document.getElementById("input-otp-style")){let o=document.createElement("style");if(o.id="input-otp-style",document.head.appendChild(o),o.sheet){let m="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";V(o.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),V(o.sheet,`[data-input-otp]:autofill { ${m} }`),V(o.sheet,`[data-input-otp]:-webkit-autofill { ${m} }`),V(o.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),V(o.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let v=()=>{l&&l.style.setProperty("--root-height",`${t.clientHeight}px`)};v();let g=new ResizeObserver(v);return g.observe(t),()=>{document.removeEventListener("selectionchange",d,{capture:!0}),g.disconnect()}},[]);let[oe,ie]=n.useState(!1),[$,Y]=n.useState(!1),[k,q]=n.useState(null),[_,z]=n.useState(null);n.useEffect(()=>{Ne(()=>{var t,l,d,v;(t=c.current)==null||t.dispatchEvent(new Event("input"));let g=(l=c.current)==null?void 0:l.selectionStart,o=(d=c.current)==null?void 0:d.selectionEnd,m=(v=c.current)==null?void 0:v.selectionDirection;g!==null&&o!==null&&(q(g),z(o),Z.current.prev=[g,o,m])})},[s,$]),n.useEffect(()=>{O!==void 0&&s!==O&&O.length<p&&s.length===p&&H?.(s)},[p,H,O,s]);let N=$e({containerRef:U,inputRef:c,pushPasswordManagerStrategy:W,isFocused:$}),ue=n.useCallback(t=>{let l=t.currentTarget.value.slice(0,p);if(l.length>0&&x&&!x.test(l)){t.preventDefault();return}typeof O=="string"&&l.length<O.length&&document.dispatchEvent(new Event("selectionchange")),G(l)},[p,G,O,x]),se=n.useCallback(()=>{var t;if(c.current){let l=Math.min(c.current.value.length,p-1),d=c.current.value.length;(t=c.current)==null||t.setSelectionRange(l,d),q(l),z(d)}Y(!0)},[p]),ce=n.useCallback(t=>{var l,d;let v=c.current;if(!f&&(!X.current.isIOS||!t.clipboardData||!v))return;let g=t.clipboardData.getData("text/plain"),o=f?f(g):g;t.preventDefault();let m=(l=c.current)==null?void 0:l.selectionStart,J=(d=c.current)==null?void 0:d.selectionEnd,b=(m!==J?s.slice(0,m)+o+s.slice(J):s.slice(0,m)+o+s.slice(m)).slice(0,p);if(b.length>0&&x&&!x.test(b))return;v.value=b,G(b);let R=Math.min(b.length,p-1),S=b.length;v.setSelectionRange(R,S),q(R),z(S)},[p,G,x,s]),Se=n.useMemo(()=>({position:"relative",cursor:u.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[u.disabled]),pe=n.useMemo(()=>({position:"absolute",inset:0,width:N.willPushPWMBadge?`calc(100% + ${N.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:N.willPushPWMBadge?`inset(0 ${N.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:j,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[N.PWM_BADGE_SPACE_WIDTH,N.willPushPWMBadge,j]),Pe=n.useMemo(()=>n.createElement("input",Be(We({autoComplete:u.autoComplete||"one-time-code"},u),{"data-input-otp":!0,"data-input-otp-placeholder-shown":s.length===0||void 0,"data-input-otp-mss":k,"data-input-otp-mse":_,inputMode:F,pattern:x?.source,"aria-placeholder":A,style:pe,maxLength:p,value:s,ref:c,onPaste:t=>{var l;ce(t),(l=u.onPaste)==null||l.call(u,t)},onChange:ue,onMouseOver:t=>{var l;ie(!0),(l=u.onMouseOver)==null||l.call(u,t)},onMouseLeave:t=>{var l;ie(!1),(l=u.onMouseLeave)==null||l.call(u,t)},onFocus:t=>{var l;se(),(l=u.onFocus)==null||l.call(u,t)},onBlur:t=>{var l;Y(!1),(l=u.onBlur)==null||l.call(u,t)}})),[ue,se,ce,F,pe,p,_,k,u,x?.source,s]),ee=n.useMemo(()=>({slots:Array.from({length:p}).map((t,l)=>{var d;let v=$&&k!==null&&_!==null&&(k===_&&l===k||l>=k&&l<_),g=s[l]!==void 0?s[l]:null,o=s[0]!==void 0?null:(d=A?.[l])!=null?d:null;return{char:g,placeholderChar:o,isActive:v,hasFakeCaret:v&&g===null}}),isFocused:$,isHovering:!u.disabled&&oe}),[$,oe,p,_,k,u.disabled,s]),ye=n.useMemo(()=>E?E(ee):n.createElement(be.Provider,{value:ee},B),[B,ee,E]);return n.createElement(n.Fragment,null,h!==null&&n.createElement("noscript",null,n.createElement("style",null,h)),n.createElement("div",{ref:U,"data-input-otp-container":!0,style:Se,className:P},ye,n.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Pe)))});xe.displayName="Input";function V(e,r){try{e.insertRule(r)}catch{console.error("input-otp could not insert CSS rule:",r)}}var qe=`
|
|
2
|
+
[data-input-otp] {
|
|
3
|
+
--nojs-bg: white !important;
|
|
4
|
+
--nojs-fg: black !important;
|
|
5
|
+
|
|
6
|
+
background-color: var(--nojs-bg) !important;
|
|
7
|
+
color: var(--nojs-fg) !important;
|
|
8
|
+
caret-color: var(--nojs-fg) !important;
|
|
9
|
+
letter-spacing: .25em !important;
|
|
10
|
+
text-align: center !important;
|
|
11
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
12
|
+
border-radius: 4px !important;
|
|
13
|
+
width: 100% !important;
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
[data-input-otp] {
|
|
17
|
+
--nojs-bg: black !important;
|
|
18
|
+
--nojs-fg: white !important;
|
|
19
|
+
}
|
|
20
|
+
}`;function ze({className:e,containerClassName:r,...a}){return D.jsxRuntimeExports.jsx(xe,{"data-slot":"input-otp",containerClassName:K.cn("flex items-center gap-2 has-disabled:opacity-50",r),className:K.cn("disabled:cursor-not-allowed",e),...a})}function Ve({className:e,...r}){return D.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:K.cn("flex items-center",e),...r})}function Ze({index:e,className:r,...a}){const i=n.useContext(be),{char:w,hasFakeCaret:p,isActive:j}=i?.slots[e]??{};return D.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":j,className:K.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 relative flex h-9 w-9 items-center justify-center border-y border-r text-sm 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]",r),...a,children:[w,p&&D.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:D.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function Je({...e}){return D.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:D.jsxRuntimeExports.jsx(Re.IconComponent,{iconName:"IconMinus"})})}exports.InputOTP=ze;exports.InputOTPGroup=Ve;exports.InputOTPSeparator=Je;exports.InputOTPSlot=Ze;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { j as I } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { c as K } from "../index-CRiPKpXj.js";
|
|
4
|
+
import { I as Te } from "../icon-component-BZ-4FDV6.js";
|
|
5
|
+
var Re = Object.defineProperty, Oe = Object.defineProperties, De = Object.getOwnPropertyDescriptors, Q = Object.getOwnPropertySymbols, ve = Object.prototype.hasOwnProperty, ge = Object.prototype.propertyIsEnumerable, fe = (n, a, l) => a in n ? Re(n, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[a] = l, Ie = (n, a) => {
|
|
6
|
+
for (var l in a || (a = {})) ve.call(a, l) && fe(n, l, a[l]);
|
|
7
|
+
if (Q) for (var l of Q(a)) ge.call(a, l) && fe(n, l, a[l]);
|
|
8
|
+
return n;
|
|
9
|
+
}, Ae = (n, a) => Oe(n, De(a)), We = (n, a) => {
|
|
10
|
+
var l = {};
|
|
11
|
+
for (var u in n) ve.call(n, u) && a.indexOf(u) < 0 && (l[u] = n[u]);
|
|
12
|
+
if (n != null && Q) for (var u of Q(n)) a.indexOf(u) < 0 && ge.call(n, u) && (l[u] = n[u]);
|
|
13
|
+
return l;
|
|
14
|
+
};
|
|
15
|
+
function Be(n) {
|
|
16
|
+
let a = setTimeout(n, 0), l = setTimeout(n, 10), u = setTimeout(n, 50);
|
|
17
|
+
return [a, l, u];
|
|
18
|
+
}
|
|
19
|
+
function _e(n) {
|
|
20
|
+
let a = t.useRef();
|
|
21
|
+
return t.useEffect(() => {
|
|
22
|
+
a.current = n;
|
|
23
|
+
}), a.current;
|
|
24
|
+
}
|
|
25
|
+
var Fe = 18, he = 40, Ne = `${he}px`, He = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
26
|
+
function Le({ containerRef: n, inputRef: a, pushPasswordManagerStrategy: l, isFocused: u }) {
|
|
27
|
+
let [x, d] = t.useState(!1), [M, k] = t.useState(!1), [A, N] = t.useState(!1), H = t.useMemo(() => l === "none" ? !1 : (l === "increase-width" || l === "experimental-no-flickering") && x && M, [x, M, l]), W = t.useCallback(() => {
|
|
28
|
+
let f = n.current, y = a.current;
|
|
29
|
+
if (!f || !y || A || l === "none") return;
|
|
30
|
+
let h = f, E = h.getBoundingClientRect().left + h.offsetWidth, B = h.getBoundingClientRect().top + h.offsetHeight / 2, i = E - Fe, L = B;
|
|
31
|
+
document.querySelectorAll(He).length === 0 && document.elementFromPoint(i, L) === f || (d(!0), N(!0));
|
|
32
|
+
}, [n, a, A, l]);
|
|
33
|
+
return t.useEffect(() => {
|
|
34
|
+
let f = n.current;
|
|
35
|
+
if (!f || l === "none") return;
|
|
36
|
+
function y() {
|
|
37
|
+
let E = window.innerWidth - f.getBoundingClientRect().right;
|
|
38
|
+
k(E >= he);
|
|
39
|
+
}
|
|
40
|
+
y();
|
|
41
|
+
let h = setInterval(y, 1e3);
|
|
42
|
+
return () => {
|
|
43
|
+
clearInterval(h);
|
|
44
|
+
};
|
|
45
|
+
}, [n, l]), t.useEffect(() => {
|
|
46
|
+
let f = u || document.activeElement === a.current;
|
|
47
|
+
if (l === "none" || !f) return;
|
|
48
|
+
let y = setTimeout(W, 0), h = setTimeout(W, 2e3), E = setTimeout(W, 5e3), B = setTimeout(() => {
|
|
49
|
+
N(!0);
|
|
50
|
+
}, 6e3);
|
|
51
|
+
return () => {
|
|
52
|
+
clearTimeout(y), clearTimeout(h), clearTimeout(E), clearTimeout(B);
|
|
53
|
+
};
|
|
54
|
+
}, [a, u, l, W]), { hasPWMBadge: x, willPushPWMBadge: H, PWM_BADGE_SPACE_WIDTH: Ne };
|
|
55
|
+
}
|
|
56
|
+
var be = t.createContext({}), we = t.forwardRef((n, a) => {
|
|
57
|
+
var l = n, { value: u, onChange: x, maxLength: d, textAlign: M = "left", pattern: k, placeholder: A, inputMode: N = "numeric", onComplete: H, pushPasswordManagerStrategy: W = "increase-width", pasteTransformer: f, containerClassName: y, noScriptCSSFallback: h = Ge, render: E, children: B } = l, i = We(l, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), L, ne, re, ae, le;
|
|
58
|
+
let [xe, Ee] = t.useState(typeof i.defaultValue == "string" ? i.defaultValue : ""), s = u ?? xe, j = _e(s), G = t.useCallback((e) => {
|
|
59
|
+
x?.(e), Ee(e);
|
|
60
|
+
}, [x]), w = t.useMemo(() => k ? typeof k == "string" ? new RegExp(k) : k : null, [k]), c = t.useRef(null), U = t.useRef(null), X = t.useRef({ value: s, onChange: G, isIOS: typeof window < "u" && ((ne = (L = window?.CSS) == null ? void 0 : L.supports) == null ? void 0 : ne.call(L, "-webkit-touch-callout", "none")) }), Z = t.useRef({ prev: [(re = c.current) == null ? void 0 : re.selectionStart, (ae = c.current) == null ? void 0 : ae.selectionEnd, (le = c.current) == null ? void 0 : le.selectionDirection] });
|
|
61
|
+
t.useImperativeHandle(a, () => c.current, []), t.useEffect(() => {
|
|
62
|
+
let e = c.current, r = U.current;
|
|
63
|
+
if (!e || !r) return;
|
|
64
|
+
X.current.value !== e.value && X.current.onChange(e.value), Z.current.prev = [e.selectionStart, e.selectionEnd, e.selectionDirection];
|
|
65
|
+
function p() {
|
|
66
|
+
if (document.activeElement !== e) {
|
|
67
|
+
z(null), V(null);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
let o = e.selectionStart, m = e.selectionEnd, J = e.selectionDirection, b = e.maxLength, R = e.value, S = Z.current.prev, C = -1, P = -1, O;
|
|
71
|
+
if (R.length !== 0 && o !== null && m !== null) {
|
|
72
|
+
let Me = o === m, ke = o === R.length && R.length < b;
|
|
73
|
+
if (Me && !ke) {
|
|
74
|
+
let D = o;
|
|
75
|
+
if (D === 0) C = 0, P = 1, O = "forward";
|
|
76
|
+
else if (D === b) C = D - 1, P = D, O = "backward";
|
|
77
|
+
else if (b > 1 && R.length > 1) {
|
|
78
|
+
let te = 0;
|
|
79
|
+
if (S[0] !== null && S[1] !== null) {
|
|
80
|
+
O = D < S[1] ? "backward" : "forward";
|
|
81
|
+
let je = S[0] === S[1] && S[0] < b;
|
|
82
|
+
O === "backward" && !je && (te = -1);
|
|
83
|
+
}
|
|
84
|
+
C = te + D, P = te + D + 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
C !== -1 && P !== -1 && C !== P && c.current.setSelectionRange(C, P, O);
|
|
88
|
+
}
|
|
89
|
+
let pe = C !== -1 ? C : o, me = P !== -1 ? P : m, Pe = O ?? J;
|
|
90
|
+
z(pe), V(me), Z.current.prev = [pe, me, Pe];
|
|
91
|
+
}
|
|
92
|
+
if (document.addEventListener("selectionchange", p, { capture: !0 }), p(), document.activeElement === e && Y(!0), !document.getElementById("input-otp-style")) {
|
|
93
|
+
let o = document.createElement("style");
|
|
94
|
+
if (o.id = "input-otp-style", document.head.appendChild(o), o.sheet) {
|
|
95
|
+
let m = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
96
|
+
q(o.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), q(o.sheet, `[data-input-otp]:autofill { ${m} }`), q(o.sheet, `[data-input-otp]:-webkit-autofill { ${m} }`), q(o.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), q(o.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
let v = () => {
|
|
100
|
+
r && r.style.setProperty("--root-height", `${e.clientHeight}px`);
|
|
101
|
+
};
|
|
102
|
+
v();
|
|
103
|
+
let g = new ResizeObserver(v);
|
|
104
|
+
return g.observe(e), () => {
|
|
105
|
+
document.removeEventListener("selectionchange", p, { capture: !0 }), g.disconnect();
|
|
106
|
+
};
|
|
107
|
+
}, []);
|
|
108
|
+
let [oe, ie] = t.useState(!1), [$, Y] = t.useState(!1), [T, z] = t.useState(null), [_, V] = t.useState(null);
|
|
109
|
+
t.useEffect(() => {
|
|
110
|
+
Be(() => {
|
|
111
|
+
var e, r, p, v;
|
|
112
|
+
(e = c.current) == null || e.dispatchEvent(new Event("input"));
|
|
113
|
+
let g = (r = c.current) == null ? void 0 : r.selectionStart, o = (p = c.current) == null ? void 0 : p.selectionEnd, m = (v = c.current) == null ? void 0 : v.selectionDirection;
|
|
114
|
+
g !== null && o !== null && (z(g), V(o), Z.current.prev = [g, o, m]);
|
|
115
|
+
});
|
|
116
|
+
}, [s, $]), t.useEffect(() => {
|
|
117
|
+
j !== void 0 && s !== j && j.length < d && s.length === d && H?.(s);
|
|
118
|
+
}, [d, H, j, s]);
|
|
119
|
+
let F = Le({ containerRef: U, inputRef: c, pushPasswordManagerStrategy: W, isFocused: $ }), ue = t.useCallback((e) => {
|
|
120
|
+
let r = e.currentTarget.value.slice(0, d);
|
|
121
|
+
if (r.length > 0 && w && !w.test(r)) {
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
typeof j == "string" && r.length < j.length && document.dispatchEvent(new Event("selectionchange")), G(r);
|
|
126
|
+
}, [d, G, j, w]), se = t.useCallback(() => {
|
|
127
|
+
var e;
|
|
128
|
+
if (c.current) {
|
|
129
|
+
let r = Math.min(c.current.value.length, d - 1), p = c.current.value.length;
|
|
130
|
+
(e = c.current) == null || e.setSelectionRange(r, p), z(r), V(p);
|
|
131
|
+
}
|
|
132
|
+
Y(!0);
|
|
133
|
+
}, [d]), ce = t.useCallback((e) => {
|
|
134
|
+
var r, p;
|
|
135
|
+
let v = c.current;
|
|
136
|
+
if (!f && (!X.current.isIOS || !e.clipboardData || !v)) return;
|
|
137
|
+
let g = e.clipboardData.getData("text/plain"), o = f ? f(g) : g;
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
let m = (r = c.current) == null ? void 0 : r.selectionStart, J = (p = c.current) == null ? void 0 : p.selectionEnd, b = (m !== J ? s.slice(0, m) + o + s.slice(J) : s.slice(0, m) + o + s.slice(m)).slice(0, d);
|
|
140
|
+
if (b.length > 0 && w && !w.test(b)) return;
|
|
141
|
+
v.value = b, G(b);
|
|
142
|
+
let R = Math.min(b.length, d - 1), S = b.length;
|
|
143
|
+
v.setSelectionRange(R, S), z(R), V(S);
|
|
144
|
+
}, [d, G, w, s]), Se = t.useMemo(() => ({ position: "relative", cursor: i.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [i.disabled]), de = t.useMemo(() => ({ position: "absolute", inset: 0, width: F.willPushPWMBadge ? `calc(100% + ${F.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: F.willPushPWMBadge ? `inset(0 ${F.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: M, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [F.PWM_BADGE_SPACE_WIDTH, F.willPushPWMBadge, M]), ye = t.useMemo(() => t.createElement("input", Ae(Ie({ autoComplete: i.autoComplete || "one-time-code" }, i), { "data-input-otp": !0, "data-input-otp-placeholder-shown": s.length === 0 || void 0, "data-input-otp-mss": T, "data-input-otp-mse": _, inputMode: N, pattern: w?.source, "aria-placeholder": A, style: de, maxLength: d, value: s, ref: c, onPaste: (e) => {
|
|
145
|
+
var r;
|
|
146
|
+
ce(e), (r = i.onPaste) == null || r.call(i, e);
|
|
147
|
+
}, onChange: ue, onMouseOver: (e) => {
|
|
148
|
+
var r;
|
|
149
|
+
ie(!0), (r = i.onMouseOver) == null || r.call(i, e);
|
|
150
|
+
}, onMouseLeave: (e) => {
|
|
151
|
+
var r;
|
|
152
|
+
ie(!1), (r = i.onMouseLeave) == null || r.call(i, e);
|
|
153
|
+
}, onFocus: (e) => {
|
|
154
|
+
var r;
|
|
155
|
+
se(), (r = i.onFocus) == null || r.call(i, e);
|
|
156
|
+
}, onBlur: (e) => {
|
|
157
|
+
var r;
|
|
158
|
+
Y(!1), (r = i.onBlur) == null || r.call(i, e);
|
|
159
|
+
} })), [ue, se, ce, N, de, d, _, T, i, w?.source, s]), ee = t.useMemo(() => ({ slots: Array.from({ length: d }).map((e, r) => {
|
|
160
|
+
var p;
|
|
161
|
+
let v = $ && T !== null && _ !== null && (T === _ && r === T || r >= T && r < _), g = s[r] !== void 0 ? s[r] : null, o = s[0] !== void 0 ? null : (p = A?.[r]) != null ? p : null;
|
|
162
|
+
return { char: g, placeholderChar: o, isActive: v, hasFakeCaret: v && g === null };
|
|
163
|
+
}), isFocused: $, isHovering: !i.disabled && oe }), [$, oe, d, _, T, i.disabled, s]), Ce = t.useMemo(() => E ? E(ee) : t.createElement(be.Provider, { value: ee }, B), [B, ee, E]);
|
|
164
|
+
return t.createElement(t.Fragment, null, h !== null && t.createElement("noscript", null, t.createElement("style", null, h)), t.createElement("div", { ref: U, "data-input-otp-container": !0, style: Se, className: y }, Ce, t.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ye)));
|
|
165
|
+
});
|
|
166
|
+
we.displayName = "Input";
|
|
167
|
+
function q(n, a) {
|
|
168
|
+
try {
|
|
169
|
+
n.insertRule(a);
|
|
170
|
+
} catch {
|
|
171
|
+
console.error("input-otp could not insert CSS rule:", a);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var Ge = `
|
|
175
|
+
[data-input-otp] {
|
|
176
|
+
--nojs-bg: white !important;
|
|
177
|
+
--nojs-fg: black !important;
|
|
178
|
+
|
|
179
|
+
background-color: var(--nojs-bg) !important;
|
|
180
|
+
color: var(--nojs-fg) !important;
|
|
181
|
+
caret-color: var(--nojs-fg) !important;
|
|
182
|
+
letter-spacing: .25em !important;
|
|
183
|
+
text-align: center !important;
|
|
184
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
185
|
+
border-radius: 4px !important;
|
|
186
|
+
width: 100% !important;
|
|
187
|
+
}
|
|
188
|
+
@media (prefers-color-scheme: dark) {
|
|
189
|
+
[data-input-otp] {
|
|
190
|
+
--nojs-bg: black !important;
|
|
191
|
+
--nojs-fg: white !important;
|
|
192
|
+
}
|
|
193
|
+
}`;
|
|
194
|
+
function qe({
|
|
195
|
+
className: n,
|
|
196
|
+
containerClassName: a,
|
|
197
|
+
...l
|
|
198
|
+
}) {
|
|
199
|
+
return /* @__PURE__ */ I.jsx(
|
|
200
|
+
we,
|
|
201
|
+
{
|
|
202
|
+
"data-slot": "input-otp",
|
|
203
|
+
containerClassName: K(
|
|
204
|
+
"flex items-center gap-2 has-disabled:opacity-50",
|
|
205
|
+
a
|
|
206
|
+
),
|
|
207
|
+
className: K("disabled:cursor-not-allowed", n),
|
|
208
|
+
...l
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
function Ze({ className: n, ...a }) {
|
|
213
|
+
return /* @__PURE__ */ I.jsx(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
"data-slot": "input-otp-group",
|
|
217
|
+
className: K("flex items-center", n),
|
|
218
|
+
...a
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
function Je({
|
|
223
|
+
index: n,
|
|
224
|
+
className: a,
|
|
225
|
+
...l
|
|
226
|
+
}) {
|
|
227
|
+
const u = t.useContext(be), { char: x, hasFakeCaret: d, isActive: M } = u?.slots[n] ?? {};
|
|
228
|
+
return /* @__PURE__ */ I.jsxs(
|
|
229
|
+
"div",
|
|
230
|
+
{
|
|
231
|
+
"data-slot": "input-otp-slot",
|
|
232
|
+
"data-active": M,
|
|
233
|
+
className: K(
|
|
234
|
+
"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 text-sm 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]",
|
|
235
|
+
a
|
|
236
|
+
),
|
|
237
|
+
...l,
|
|
238
|
+
children: [
|
|
239
|
+
x,
|
|
240
|
+
d && /* @__PURE__ */ I.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ I.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
function Ke({ ...n }) {
|
|
246
|
+
return /* @__PURE__ */ I.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...n, children: /* @__PURE__ */ I.jsx(Te, { iconName: "IconMinus" }) });
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
qe as InputOTP,
|
|
250
|
+
Ze as InputOTPGroup,
|
|
251
|
+
Ke as InputOTPSeparator,
|
|
252
|
+
Je as InputOTPSlot
|
|
253
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-DFPJ_mtM.cjs");exports.Input=t.Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../label-CbzkBbPT.cjs");exports.Label=e.Label;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-DUiatUiq.cjs"),c=require("@radix-ui/react-menubar"),o=require("../index-DoxiiusW.cjs"),i=require("../icon-component-LY_vGYHZ.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 x({...e}){return n.jsxRuntimeExports.jsx(a.Menu,{"data-slot":"menubar-menu",...e})}function b({...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 p({...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 flex items-center rounded-sm px-2 py-1 text-sm 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 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm 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 relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm 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 M({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 relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm 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 h({className:e,inset:t,...r}){return n.jsxRuntimeExports.jsx(a.Label,{"data-slot":"menubar-label","data-inset":t,className:o.cn("px-2 py-1.5 text-sm 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 ml-auto text-xs 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 flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm 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=b;exports.MenubarItem=j;exports.MenubarLabel=h;exports.MenubarMenu=x;exports.MenubarPortal=u;exports.MenubarRadioGroup=p;exports.MenubarRadioItem=M;exports.MenubarSeparator=R;exports.MenubarShortcut=E;exports.MenubarSub=N;exports.MenubarSubContent=S;exports.MenubarSubTrigger=I;exports.MenubarTrigger=f;
|