@clasing/ui 2.0.9 → 2.1.1
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-Ds17GJH4.js → badge-Cprh3bik.js} +24 -32
- package/dist/badge-Da_xHgvC.cjs +1 -0
- package/dist/button-B4yT3Gcz.cjs +1 -0
- package/dist/button-CUrfGF3Y.js +232 -0
- package/dist/{card-Dj2wgH-P.cjs → card-COFAc2zN.cjs} +1 -1
- package/dist/{card-BNTyYiyA.js → card-CbF9kVVs.js} +1 -1
- package/dist/chip-B7Mqq278.js +89 -0
- package/dist/chip-BG4NEZUv.cjs +1 -0
- package/dist/command-CrtCQpi_.cjs +1 -0
- package/dist/{command-CGUB58ej.js → command-ev4m9IoQ.js} +18 -24
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +24 -30
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +3 -3
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.d.ts +3 -4
- package/dist/components/alert.es.js +38 -39
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +2 -6
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.d.ts +2 -4
- package/dist/components/blocks/interactive-card.es.js +65 -80
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +19 -16
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +22 -22
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +4 -13
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +33 -54
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +1 -1
- package/dist/components/chart.es.js +1 -1
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +6 -6
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +1 -10
- package/dist/components/chip.es.js +1 -1
- package/dist/components/collapsible.cjs.js +1 -1
- package/dist/components/collapsible.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.d.ts +1 -1
- package/dist/components/context-menu.es.js +77 -82
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.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.d.ts +1 -1
- package/dist/components/dropdown-menu.es.js +49 -54
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +2 -2
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.d.ts +1 -1
- package/dist/components/hover-card.es.js +12 -11
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +16 -16
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.d.ts +2 -6
- package/dist/components/input.es.js +1 -1
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.d.ts +1 -1
- package/dist/components/menubar.es.js +69 -74
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +77 -96
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +10 -11
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +77 -79
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +1 -1
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +3 -3
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.es.js +35 -40
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +29 -29
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +1 -1
- package/dist/components/slider.es.js +1 -1
- package/dist/components/sonner.cjs.js +1 -1
- package/dist/components/sonner.es.js +1 -1
- package/dist/components/switch.cjs.js +1 -1
- package/dist/components/switch.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +2 -6
- package/dist/components/textarea.es.js +28 -36
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +2 -2
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-CEttcpWT.js → dialog-CXbzQHxn.js} +9 -9
- package/dist/dialog-DHZARK1o.cjs +1 -0
- package/dist/index-9HRzXEQf.cjs +6 -0
- package/dist/{index-DBpnlzOP.js → index-D5lmpham.js} +677 -664
- package/dist/{index-CwXB7YIx.js → index-DN28Pf0m.js} +1 -1
- package/dist/{index-BVmT9wZC.cjs → index-ECyCsPX0.cjs} +1 -1
- package/dist/input-C144z_Is.cjs +1 -0
- package/dist/{input-B6wjJM4O.js → input-fvzEG6zH.js} +33 -47
- package/dist/{label-eHraXPfy.cjs → label-D3iN3bzS.cjs} +1 -1
- package/dist/{label-Bp4qkqFq.js → label-DDxTPxHk.js} +1 -1
- package/dist/{popover-C6pozFVL.js → popover-BdDS9aoy.js} +10 -9
- package/dist/popover-CeOAAwBQ.cjs +1 -0
- package/dist/{scroll-area-CJpVshOm.cjs → scroll-area-D74XszlE.cjs} +1 -1
- package/dist/{scroll-area-Dj0Szbw6.js → scroll-area-oS6ZJIMN.js} +1 -1
- package/dist/{toggle-owj9AHVO.js → toggle-BNzrNg1r.js} +2 -2
- package/dist/{toggle-CJLDdFRo.cjs → toggle-CtoQhQby.cjs} +1 -1
- package/dist/tooltip-BccdAn4x.cjs +1 -0
- package/dist/{tooltip-CUaxcngn.js → tooltip-rv-jVOxy.js} +6 -5
- package/package.json +352 -357
- package/dist/badge-oQqEF2X5.cjs +0 -1
- package/dist/button-DiOH2ngV.js +0 -573
- package/dist/button-t0WrANXO.cjs +0 -1
- package/dist/chip-CK2VBBsV.js +0 -126
- package/dist/chip-DVKpteyL.cjs +0 -1
- package/dist/command-CHisYTN-.cjs +0 -1
- package/dist/components/icon-component.cjs.js +0 -1
- package/dist/components/icon-component.d.ts +0 -12
- package/dist/components/icon-component.es.js +0 -4
- package/dist/dialog-Chh5qAxR.cjs +0 -1
- package/dist/entries/icon-component.d.ts +0 -2
- package/dist/icon-component-DGImZz3K.js +0 -49
- package/dist/icon-component-DTlgy__B.cjs +0 -1
- package/dist/index-DSjHHn1r.cjs +0 -22
- package/dist/input-Dpz3zGIU.cjs +0 -1
- package/dist/popover-BnLx2OY6.cjs +0 -1
- package/dist/tooltip-BvdeurjC.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as t, c as r } from "../index-
|
|
1
|
+
import { j as t, c as r } from "../index-D5lmpham.js";
|
|
2
2
|
import * as n from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { CheckIcon as s, CircleIcon as i, CaretRightIcon as u } from "@phosphor-icons/react";
|
|
4
|
+
function p({
|
|
5
5
|
...e
|
|
6
6
|
}) {
|
|
7
7
|
return /* @__PURE__ */ t.jsx(n.Root, { "data-slot": "dropdown-menu", ...e });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function m({
|
|
10
10
|
...e
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function f({
|
|
15
15
|
...e
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -22,10 +22,11 @@ function p({
|
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function g({
|
|
26
26
|
className: e,
|
|
27
27
|
sideOffset: o = 4,
|
|
28
|
-
|
|
28
|
+
collisionPadding: a = 24,
|
|
29
|
+
...d
|
|
29
30
|
}) {
|
|
30
31
|
return /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
31
32
|
n.Content,
|
|
@@ -33,23 +34,23 @@ function m({
|
|
|
33
34
|
"data-slot": "dropdown-menu-content",
|
|
34
35
|
sideOffset: o,
|
|
35
36
|
className: r(
|
|
36
|
-
"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-
|
|
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-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
37
38
|
e
|
|
38
39
|
),
|
|
39
|
-
...
|
|
40
|
+
...d
|
|
40
41
|
}
|
|
41
42
|
) });
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function x({
|
|
44
45
|
...e
|
|
45
46
|
}) {
|
|
46
47
|
return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function v({
|
|
49
50
|
className: e,
|
|
50
51
|
inset: o,
|
|
51
52
|
variant: a = "default",
|
|
52
|
-
...
|
|
53
|
+
...d
|
|
53
54
|
}) {
|
|
54
55
|
return /* @__PURE__ */ t.jsx(
|
|
55
56
|
n.Item,
|
|
@@ -58,37 +59,37 @@ function g({
|
|
|
58
59
|
"data-inset": o,
|
|
59
60
|
"data-variant": a,
|
|
60
61
|
className: r(
|
|
61
|
-
"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]
|
|
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 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",
|
|
62
63
|
e
|
|
63
64
|
),
|
|
64
|
-
...
|
|
65
|
+
...d
|
|
65
66
|
}
|
|
66
67
|
);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function w({
|
|
69
70
|
className: e,
|
|
70
71
|
children: o,
|
|
71
72
|
checked: a,
|
|
72
|
-
...
|
|
73
|
+
...d
|
|
73
74
|
}) {
|
|
74
75
|
return /* @__PURE__ */ t.jsxs(
|
|
75
76
|
n.CheckboxItem,
|
|
76
77
|
{
|
|
77
78
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
78
79
|
className: r(
|
|
79
|
-
"focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 outline-hidden select-none data-
|
|
80
|
+
"focus:bg-accent focus:text-accent-foreground 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",
|
|
80
81
|
e
|
|
81
82
|
),
|
|
82
83
|
checked: a,
|
|
83
|
-
...
|
|
84
|
+
...d,
|
|
84
85
|
children: [
|
|
85
|
-
/* @__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(
|
|
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(s, { className: "size-4" }) }) }),
|
|
86
87
|
o
|
|
87
88
|
]
|
|
88
89
|
}
|
|
89
90
|
);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function b({
|
|
92
93
|
...e
|
|
93
94
|
}) {
|
|
94
95
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -99,7 +100,7 @@ function v({
|
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function h({
|
|
103
104
|
className: e,
|
|
104
105
|
children: o,
|
|
105
106
|
...a
|
|
@@ -109,24 +110,18 @@ function b({
|
|
|
109
110
|
{
|
|
110
111
|
"data-slot": "dropdown-menu-radio-item",
|
|
111
112
|
className: r(
|
|
112
|
-
"focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 outline-hidden select-none data-
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground 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",
|
|
113
114
|
e
|
|
114
115
|
),
|
|
115
116
|
...a,
|
|
116
117
|
children: [
|
|
117
|
-
/* @__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(
|
|
118
|
-
d,
|
|
119
|
-
{
|
|
120
|
-
iconName: "IconCircleFilled",
|
|
121
|
-
className: "size-2 fill-current"
|
|
122
|
-
}
|
|
123
|
-
) }) }),
|
|
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(i, { weight: "fill", className: "size-2 fill-current" }) }) }),
|
|
124
119
|
o
|
|
125
120
|
]
|
|
126
121
|
}
|
|
127
122
|
);
|
|
128
123
|
}
|
|
129
|
-
function
|
|
124
|
+
function j({
|
|
130
125
|
className: e,
|
|
131
126
|
inset: o,
|
|
132
127
|
...a
|
|
@@ -137,14 +132,14 @@ function w({
|
|
|
137
132
|
"data-slot": "dropdown-menu-label",
|
|
138
133
|
"data-inset": o,
|
|
139
134
|
className: r(
|
|
140
|
-
"paragraph-sm px-2 py-1.5 font-semibold data-
|
|
135
|
+
"paragraph-sm px-2 py-1.5 font-semibold data-inset:pl-8",
|
|
141
136
|
e
|
|
142
137
|
),
|
|
143
138
|
...a
|
|
144
139
|
}
|
|
145
140
|
);
|
|
146
141
|
}
|
|
147
|
-
function
|
|
142
|
+
function z({
|
|
148
143
|
className: e,
|
|
149
144
|
...o
|
|
150
145
|
}) {
|
|
@@ -157,7 +152,7 @@ function h({
|
|
|
157
152
|
}
|
|
158
153
|
);
|
|
159
154
|
}
|
|
160
|
-
function
|
|
155
|
+
function D({
|
|
161
156
|
className: e,
|
|
162
157
|
...o
|
|
163
158
|
}) {
|
|
@@ -173,7 +168,7 @@ function j({
|
|
|
173
168
|
}
|
|
174
169
|
);
|
|
175
170
|
}
|
|
176
|
-
function
|
|
171
|
+
function M({
|
|
177
172
|
...e
|
|
178
173
|
}) {
|
|
179
174
|
return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
@@ -182,7 +177,7 @@ function N({
|
|
|
182
177
|
className: e,
|
|
183
178
|
inset: o,
|
|
184
179
|
children: a,
|
|
185
|
-
...
|
|
180
|
+
...d
|
|
186
181
|
}) {
|
|
187
182
|
return /* @__PURE__ */ t.jsxs(
|
|
188
183
|
n.SubTrigger,
|
|
@@ -190,18 +185,18 @@ function N({
|
|
|
190
185
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
191
186
|
"data-inset": o,
|
|
192
187
|
className: r(
|
|
193
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-hidden select-none data-
|
|
188
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-hidden select-none data-inset:pl-8",
|
|
194
189
|
e
|
|
195
190
|
),
|
|
196
|
-
...
|
|
191
|
+
...d,
|
|
197
192
|
children: [
|
|
198
193
|
a,
|
|
199
|
-
/* @__PURE__ */ t.jsx(
|
|
194
|
+
/* @__PURE__ */ t.jsx(u, { className: "ml-auto size-4" })
|
|
200
195
|
]
|
|
201
196
|
}
|
|
202
197
|
);
|
|
203
198
|
}
|
|
204
|
-
function
|
|
199
|
+
function I({
|
|
205
200
|
className: e,
|
|
206
201
|
...o
|
|
207
202
|
}) {
|
|
@@ -210,7 +205,7 @@ function D({
|
|
|
210
205
|
{
|
|
211
206
|
"data-slot": "dropdown-menu-sub-content",
|
|
212
207
|
className: r(
|
|
213
|
-
"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-
|
|
208
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
214
209
|
e
|
|
215
210
|
),
|
|
216
211
|
...o
|
|
@@ -218,19 +213,19 @@ function D({
|
|
|
218
213
|
);
|
|
219
214
|
}
|
|
220
215
|
export {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
216
|
+
p as DropdownMenu,
|
|
217
|
+
w as DropdownMenuCheckboxItem,
|
|
218
|
+
g as DropdownMenuContent,
|
|
219
|
+
x as DropdownMenuGroup,
|
|
220
|
+
v as DropdownMenuItem,
|
|
221
|
+
j as DropdownMenuLabel,
|
|
222
|
+
m as DropdownMenuPortal,
|
|
223
|
+
b as DropdownMenuRadioGroup,
|
|
224
|
+
h as DropdownMenuRadioItem,
|
|
225
|
+
z as DropdownMenuSeparator,
|
|
226
|
+
D as DropdownMenuShortcut,
|
|
227
|
+
M as DropdownMenuSub,
|
|
228
|
+
I as DropdownMenuSubContent,
|
|
234
229
|
N as DropdownMenuSubTrigger,
|
|
235
|
-
|
|
230
|
+
f as DropdownMenuTrigger
|
|
236
231
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-9HRzXEQf.cjs"),u=require("@radix-ui/react-slot"),f=require("react"),c=require("react-hook-form"),x=require("../label-D3iN3bzS.cjs");function F(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=F(f),j=c.FormProvider,d=i.createContext({}),p=({...e})=>o.jsxRuntimeExports.jsx(d.Provider,{value:{name:e.name},children:o.jsxRuntimeExports.jsx(c.Controller,{...e})}),m=()=>{const e=i.useContext(d),t=i.useContext(l),{getFieldState:r}=c.useFormContext(),n=c.useFormState({name:e.name}),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...s}},l=i.createContext({});function g({className:e,...t}){const r=i.useId();return o.jsxRuntimeExports.jsx(l.Provider,{value:{id:r},children:o.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:o.cn("grid gap-2",e),...t})})}function b({className:e,...t}){const{error:r,formItemId:n}=m();return o.jsxRuntimeExports.jsx(x.Label,{"data-slot":"form-label","data-error":!!r,className:o.cn("data-[error=true]:text-destructive",e),htmlFor:n,...t})}function I({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:s}=m();return o.jsxRuntimeExports.jsx(u.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${s}`:`${n}`,"aria-invalid":!!t,...e})}function C({className:e,...t}){const{formDescriptionId:r}=m();return o.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:o.cn("text-muted-foreground! label-md",e),...t})}function v({className:e,...t}){const{error:r,formMessageId:n}=m(),s=r?String(r?.message??""):t.children;return s?o.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:n,className:o.cn("text-destructive! label-md",e),...t,children:s}):null}exports.Form=j;exports.FormControl=I;exports.FormDescription=C;exports.FormField=p;exports.FormItem=g;exports.FormLabel=b;exports.FormMessage=v;exports.useFormField=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as s, c as a } from "../index-
|
|
1
|
+
import { j as s, c as a } from "../index-D5lmpham.js";
|
|
2
2
|
import { Slot as f } from "@radix-ui/react-slot";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { FormProvider as u, Controller as x, useFormContext as F, useFormState as I } from "react-hook-form";
|
|
5
|
-
import { L as g } from "../label-
|
|
5
|
+
import { L as g } from "../label-DDxTPxHk.js";
|
|
6
6
|
const v = u, c = n.createContext(
|
|
7
7
|
{}
|
|
8
8
|
), h = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-9HRzXEQf.cjs"),i=require("@radix-ui/react-hover-card");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const a=s(i);function c({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"hover-card",...t})}function l({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"hover-card-trigger",...t})}function u({className:t,align:r="center",sideOffset:e=4,collisionPadding:n=24,...d}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"hover-card-portal",children:o.jsxRuntimeExports.jsx(a.Content,{"data-slot":"hover-card-content",align:r,sideOffset:e,className:o.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...d})})}exports.HoverCard=c;exports.HoverCardContent=u;exports.HoverCardTrigger=l;
|
|
@@ -2,5 +2,5 @@ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function HoverCardContent({ className, align, sideOffset, collisionPadding, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { j as o, c as
|
|
2
|
-
import * as
|
|
3
|
-
function
|
|
1
|
+
import { j as o, c as i } from "../index-D5lmpham.js";
|
|
2
|
+
import * as a from "@radix-ui/react-hover-card";
|
|
3
|
+
function l({
|
|
4
4
|
...t
|
|
5
5
|
}) {
|
|
6
|
-
return /* @__PURE__ */ o.jsx(
|
|
6
|
+
return /* @__PURE__ */ o.jsx(a.Root, { "data-slot": "hover-card", ...t });
|
|
7
7
|
}
|
|
8
8
|
function m({
|
|
9
9
|
...t
|
|
10
10
|
}) {
|
|
11
|
-
return /* @__PURE__ */ o.jsx(
|
|
11
|
+
return /* @__PURE__ */ o.jsx(a.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
12
12
|
}
|
|
13
13
|
function c({
|
|
14
14
|
className: t,
|
|
15
|
-
align:
|
|
15
|
+
align: e = "center",
|
|
16
16
|
sideOffset: r = 4,
|
|
17
|
+
collisionPadding: n = 24,
|
|
17
18
|
...d
|
|
18
19
|
}) {
|
|
19
|
-
return /* @__PURE__ */ o.jsx(
|
|
20
|
-
|
|
20
|
+
return /* @__PURE__ */ o.jsx(a.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx(
|
|
21
|
+
a.Content,
|
|
21
22
|
{
|
|
22
23
|
"data-slot": "hover-card-content",
|
|
23
|
-
align:
|
|
24
|
+
align: e,
|
|
24
25
|
sideOffset: r,
|
|
25
|
-
className:
|
|
26
|
+
className: i(
|
|
26
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",
|
|
27
28
|
t
|
|
28
29
|
),
|
|
@@ -31,7 +32,7 @@ function c({
|
|
|
31
32
|
) });
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
l as HoverCard,
|
|
35
36
|
c as HoverCardContent,
|
|
36
37
|
m as HoverCardTrigger
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),i=require("input-otp"),c=require("react"),d=require("@phosphor-icons/react");function l(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const p=l(c);function x({className:t,containerClassName:r,...n}){return e.jsxRuntimeExports.jsx(i.OTPInput,{"data-slot":"input-otp",containerClassName:e.cn("flex items-center gap-2 has-disabled:opacity-50",r),className:e.cn("disabled:cursor-not-allowed",t),...n})}function m({className:t,...r}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:e.cn("flex items-center",t),...r})}function v({index:t,className:r,...n}){const a=p.useContext(i.OTPInputContext),{char:s,hasFakeCaret:o,isActive:u}=a?.slots[t]??{};return e.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":u,className:e.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 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]",r),...n,children:[s,o&&e.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function f({...t}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...t,children:e.jsxRuntimeExports.jsx(d.MinusIcon,{})})}exports.InputOTP=x;exports.InputOTPGroup=m;exports.InputOTPSeparator=f;exports.InputOTPSlot=v;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { j as e, c as
|
|
1
|
+
import { j as e, c as a } from "../index-D5lmpham.js";
|
|
2
2
|
import { OTPInput as u, OTPInputContext as c } from "input-otp";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { MinusIcon as p } from "@phosphor-icons/react";
|
|
5
5
|
function f({
|
|
6
6
|
className: t,
|
|
7
|
-
containerClassName:
|
|
7
|
+
containerClassName: r,
|
|
8
8
|
...i
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ e.jsx(
|
|
11
11
|
u,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "input-otp",
|
|
14
|
-
containerClassName:
|
|
14
|
+
containerClassName: a(
|
|
15
15
|
"flex items-center gap-2 has-disabled:opacity-50",
|
|
16
|
-
|
|
16
|
+
r
|
|
17
17
|
),
|
|
18
|
-
className:
|
|
18
|
+
className: a("disabled:cursor-not-allowed", t),
|
|
19
19
|
...i
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
function b({ className: t, ...
|
|
23
|
+
function b({ className: t, ...r }) {
|
|
24
24
|
return /* @__PURE__ */ e.jsx(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "input-otp-group",
|
|
28
|
-
className:
|
|
29
|
-
...
|
|
28
|
+
className: a("flex items-center", t),
|
|
29
|
+
...r
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
function g({
|
|
34
34
|
index: t,
|
|
35
|
-
className:
|
|
35
|
+
className: r,
|
|
36
36
|
...i
|
|
37
37
|
}) {
|
|
38
|
-
const n = l.useContext(c), { char:
|
|
38
|
+
const n = l.useContext(c), { char: s, hasFakeCaret: o, isActive: d } = n?.slots[t] ?? {};
|
|
39
39
|
return /* @__PURE__ */ e.jsxs(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
"data-slot": "input-otp-slot",
|
|
43
43
|
"data-active": d,
|
|
44
|
-
className:
|
|
44
|
+
className: a(
|
|
45
45
|
"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 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]",
|
|
46
|
-
|
|
46
|
+
r
|
|
47
47
|
),
|
|
48
48
|
...i,
|
|
49
49
|
children: [
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
s,
|
|
51
|
+
o && /* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
function j({ ...t }) {
|
|
57
|
-
return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ e.jsx(p, {
|
|
57
|
+
return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ e.jsx(p, {}) });
|
|
58
58
|
}
|
|
59
59
|
export {
|
|
60
60
|
f as InputOTP,
|
|
@@ -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-C144z_Is.cjs");exports.Input=t.Input;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { TablerIconName } from './icon-component';
|
|
4
3
|
declare const inputStyles: (props?: ({
|
|
5
4
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
6
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
6
|
export interface InputProps extends VariantProps<typeof inputStyles> {
|
|
8
7
|
/** Icon to display in the input */
|
|
9
|
-
|
|
10
|
-
name: TablerIconName;
|
|
11
|
-
stroke?: string;
|
|
12
|
-
};
|
|
8
|
+
icon?: React.ReactNode;
|
|
13
9
|
/** Position of the icon (left or right) */
|
|
14
10
|
iconPosition?: 'left' | 'right';
|
|
15
11
|
}
|
|
16
|
-
declare function Input({ className, type, size,
|
|
12
|
+
declare function Input({ className, type, size, icon, iconPosition, ...props }: Omit<React.ComponentProps<'input'>, 'size'> & InputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
13
|
export { Input };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../label-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../label-D3iN3bzS.cjs");exports.Label=e.Label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-9HRzXEQf.cjs"),d=require("@radix-ui/react-menubar"),o=require("@phosphor-icons/react");function c(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const r=c(d);function l({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Root,{"data-slot":"menubar",className:t.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...n})}function m({...e}){return t.jsxRuntimeExports.jsx(r.Menu,{"data-slot":"menubar-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(r.Group,{"data-slot":"menubar-group",...e})}function i({...e}){return t.jsxRuntimeExports.jsx(r.Portal,{"data-slot":"menubar-portal",...e})}function x({...e}){return t.jsxRuntimeExports.jsx(r.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function b({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"menubar-trigger",className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex items-center rounded-sm px-2 py-1 font-medium outline-hidden select-none",e),...n})}function f({className:e,align:n="start",alignOffset:a=-4,sideOffset:s=8,...u}){return t.jsxRuntimeExports.jsx(i,{children:t.jsxRuntimeExports.jsx(r.Content,{"data-slot":"menubar-content",align:n,alignOffset:a,sideOffset:s,className:t.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...u})})}function g({className:e,inset:n,variant:a="default",...s}){return t.jsxRuntimeExports.jsx(r.Item,{"data-slot":"menubar-item","data-inset":n,"data-variant":a,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}function j({className:e,children:n,checked:a,...s}){return t.jsxRuntimeExports.jsxs(r.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:a,...s,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(o.CheckIcon,{className:"size-4"})})}),n]})}function v({className:e,children:n,...a}){return t.jsxRuntimeExports.jsxs(r.RadioItem,{"data-slot":"menubar-radio-item",className:t.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...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(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(o.CircleIcon,{weight:"fill",className:"size-2 fill-current"})})}),n]})}function h({className:e,inset:n,...a}){return t.jsxRuntimeExports.jsx(r.Label,{"data-slot":"menubar-label","data-inset":n,className:t.cn("paragraph-sm px-2 py-1.5 font-medium data-inset:pl-8",e),...a})}function M({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"menubar-separator",className:t.cn("bg-border -mx-1 my-1 h-px",e),...n})}function R({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:t.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",e),...n})}function E({...e}){return t.jsxRuntimeExports.jsx(r.Sub,{"data-slot":"menubar-sub",...e})}function z({className:e,inset:n,children:a,...s}){return t.jsxRuntimeExports.jsxs(r.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":n,className:t.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none data-inset:pl-8",e),...s,children:[a,t.jsxRuntimeExports.jsx(o.CaretRightIcon,{className:"ml-auto size-4"})]})}function S({className:e,collisionPadding:n=24,...a}){return t.jsxRuntimeExports.jsx(r.SubContent,{"data-slot":"menubar-sub-content",className:t.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...a})}exports.Menubar=l;exports.MenubarCheckboxItem=j;exports.MenubarContent=f;exports.MenubarGroup=p;exports.MenubarItem=g;exports.MenubarLabel=h;exports.MenubarMenu=m;exports.MenubarPortal=i;exports.MenubarRadioGroup=x;exports.MenubarRadioItem=v;exports.MenubarSeparator=M;exports.MenubarShortcut=R;exports.MenubarSub=E;exports.MenubarSubContent=S;exports.MenubarSubTrigger=z;exports.MenubarTrigger=b;
|
|
@@ -22,5 +22,5 @@ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPri
|
|
|
22
22
|
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
23
23
|
inset?: boolean;
|
|
24
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function MenubarSubContent({ className, collisionPadding, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
|