@epilot/zenith-react 0.2.0-next.0 → 0.2.0-next.3
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/components/accordion/accordion.js +57 -48
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +120 -92
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +38 -35
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +78 -71
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +60 -55
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +99 -54
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +87 -77
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +36 -32
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +105 -98
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +62 -52
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +22 -19
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/code-block/code-block.js +135 -123
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-editor/code-editor.js +276 -260
- package/dist/components/code-editor/code-editor.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +62 -56
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +116 -105
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +38 -34
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +30 -26
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-order.js +79 -73
- package/dist/components/data-table/data-table-column-order.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +25 -22
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +47 -44
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +36 -32
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-footer.js +10 -8
- package/dist/components/data-table/data-table-footer.js.map +1 -1
- package/dist/components/data-table/data-table-header-draggable.js +40 -36
- package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +113 -99
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +21 -18
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-resize-handle.js +13 -11
- package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +71 -59
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +9 -7
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +48 -46
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +173 -164
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +36 -34
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +290 -272
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +22 -20
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +126 -120
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +42 -40
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +95 -87
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +115 -95
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +144 -109
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +141 -112
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +196 -176
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field.js +137 -126
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/list/list.js +237 -219
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +129 -116
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +55 -51
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +53 -36
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +38 -34
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +38 -35
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +166 -151
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +93 -85
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +149 -128
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +19 -16
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +34 -30
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js +22 -17
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/surface/surface.js +25 -22
- package/dist/components/surface/surface.js.map +1 -1
- package/dist/components/switch/switch.js +66 -57
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +139 -129
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +104 -90
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +206 -128
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/toast/toast.js +112 -100
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle.js +32 -30
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +59 -46
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/lib/clear-button.js +18 -17
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/styles/host-reset.js +47 -0
- package/dist/styles/host-reset.js.map +1 -0
- package/dist/styles/overlay-layer.js +5 -0
- package/dist/styles/overlay-layer.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/package.json +8 -6
- package/scripts/migration-diagnostics.mjs +42 -7
- package/scripts/migration-sweep.mjs +9 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Root as
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
import { useAppearanceAttributes as
|
|
6
|
-
import { useDensity as
|
|
7
|
-
import { makeZenithStyles as
|
|
8
|
-
import {
|
|
9
|
-
|
|
3
|
+
import { Root as v, CheckboxItem as T, ItemIndicator as R, Portal as C, Content as k, Group as N, Item as q, Label as L, RadioGroup as A, RadioItem as G, Separator as X, Sub as z, SubContent as E, SubTrigger as W, Trigger as B } from "../../vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
4
|
+
import { mergeClasses as p, SLOT_ATTR as c, shorthands as f } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { useAppearanceAttributes as S } from "../appearance-boundary/appearance-boundary.js";
|
|
6
|
+
import { useDensity as I } from "../density-provider/density-provider.js";
|
|
7
|
+
import { makeZenithStyles as _ } from "../../styles/make-styles.js";
|
|
8
|
+
import { boxModel as l, nativeControl as $ } from "../../styles/host-reset.js";
|
|
9
|
+
import { OVERLAY_Z_INDEX as P } from "../../styles/overlay-layer.js";
|
|
10
|
+
import { grayA11 as Y, leadingXs as Z, textXs as j, grayA3 as F, spacingElement1 as g, fontWeightSemibold as H, leadingSm as y, textSm as D, spacingElement2 as m, accentSoft as w, errorSoft as h, errorA8 as O, errorA11 as V, grayA12 as J, body as K, accentA11 as Q, radiusMd as U, radiusXl as oo } from "../../tokens/index.js";
|
|
11
|
+
const to = (r) => /* @__PURE__ */ e(
|
|
10
12
|
"svg",
|
|
11
13
|
{
|
|
12
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17,7 +19,7 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
17
19
|
...r,
|
|
18
20
|
children: /* @__PURE__ */ e("path", { d: "m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z" })
|
|
19
21
|
}
|
|
20
|
-
),
|
|
22
|
+
), eo = (r) => /* @__PURE__ */ e(
|
|
21
23
|
"svg",
|
|
22
24
|
{
|
|
23
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -28,7 +30,7 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
28
30
|
...r,
|
|
29
31
|
children: /* @__PURE__ */ e("path", { d: "M504-480 348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156Z" })
|
|
30
32
|
}
|
|
31
|
-
),
|
|
33
|
+
), no = (r) => /* @__PURE__ */ e(
|
|
32
34
|
"svg",
|
|
33
35
|
{
|
|
34
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -39,25 +41,41 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
39
41
|
...r,
|
|
40
42
|
children: /* @__PURE__ */ e("path", { d: "M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" })
|
|
41
43
|
}
|
|
42
|
-
), u =
|
|
44
|
+
), u = _({
|
|
45
|
+
// For the bare native `<button>` a Trigger/Close renders. Not applied under `asChild`, where the
|
|
46
|
+
// child owns its own element and two atom sets would race for the same properties.
|
|
47
|
+
triggerReset: {
|
|
48
|
+
...$
|
|
49
|
+
},
|
|
43
50
|
trigger: {
|
|
44
|
-
color:
|
|
51
|
+
color: Q
|
|
45
52
|
},
|
|
46
53
|
portal: {
|
|
47
54
|
display: "contents"
|
|
48
55
|
},
|
|
49
56
|
popup: {
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
...l,
|
|
58
|
+
backgroundColor: K,
|
|
59
|
+
color: J,
|
|
52
60
|
minWidth: "10rem",
|
|
53
61
|
overflow: "hidden",
|
|
54
|
-
...
|
|
55
|
-
...
|
|
62
|
+
...f.borderRadius(oo),
|
|
63
|
+
...f.padding(g),
|
|
56
64
|
// v1 shadow-lg
|
|
57
65
|
boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
|
|
58
66
|
outlineStyle: "none",
|
|
59
|
-
zIndex:
|
|
67
|
+
zIndex: P,
|
|
60
68
|
transformOrigin: "var(--radix-dropdown-menu-content-transform-origin)",
|
|
69
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
70
|
+
animationDuration: "0.01ms",
|
|
71
|
+
animationIterationCount: "1",
|
|
72
|
+
"&[data-state='open']": {
|
|
73
|
+
animationDuration: "0.01ms"
|
|
74
|
+
},
|
|
75
|
+
"&[data-state='closed']": {
|
|
76
|
+
animationDuration: "0.01ms"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
61
79
|
"&[data-state='open']": {
|
|
62
80
|
animationName: {
|
|
63
81
|
from: { opacity: 0, transform: "scale(0.95)" },
|
|
@@ -70,7 +88,7 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
70
88
|
animationName: {
|
|
71
89
|
from: {
|
|
72
90
|
opacity: 0,
|
|
73
|
-
transform: `translateY(-${
|
|
91
|
+
transform: `translateY(-${m}) scale(0.95)`
|
|
74
92
|
},
|
|
75
93
|
to: { opacity: 1, transform: "translateY(0) scale(1)" }
|
|
76
94
|
}
|
|
@@ -79,7 +97,7 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
79
97
|
animationName: {
|
|
80
98
|
from: {
|
|
81
99
|
opacity: 0,
|
|
82
|
-
transform: `translateX(${
|
|
100
|
+
transform: `translateX(${m}) scale(0.95)`
|
|
83
101
|
},
|
|
84
102
|
to: { opacity: 1, transform: "translateX(0) scale(1)" }
|
|
85
103
|
}
|
|
@@ -88,7 +106,7 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
88
106
|
animationName: {
|
|
89
107
|
from: {
|
|
90
108
|
opacity: 0,
|
|
91
|
-
transform: `translateX(-${
|
|
109
|
+
transform: `translateX(-${m}) scale(0.95)`
|
|
92
110
|
},
|
|
93
111
|
to: { opacity: 1, transform: "translateX(0) scale(1)" }
|
|
94
112
|
}
|
|
@@ -97,7 +115,7 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
97
115
|
animationName: {
|
|
98
116
|
from: {
|
|
99
117
|
opacity: 0,
|
|
100
|
-
transform: `translateY(${
|
|
118
|
+
transform: `translateY(${m}) scale(0.95)`
|
|
101
119
|
},
|
|
102
120
|
to: { opacity: 1, transform: "translateY(0) scale(1)" }
|
|
103
121
|
}
|
|
@@ -112,31 +130,32 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
112
130
|
}
|
|
113
131
|
},
|
|
114
132
|
item: {
|
|
133
|
+
...l,
|
|
115
134
|
position: "relative",
|
|
116
135
|
display: "flex",
|
|
117
136
|
cursor: "pointer",
|
|
118
137
|
userSelect: "none",
|
|
119
138
|
alignItems: "center",
|
|
120
|
-
...
|
|
121
|
-
...
|
|
122
|
-
paddingLeft:
|
|
123
|
-
paddingRight:
|
|
139
|
+
...f.gap(m),
|
|
140
|
+
...f.borderRadius(U),
|
|
141
|
+
paddingLeft: m,
|
|
142
|
+
paddingRight: m,
|
|
124
143
|
paddingTop: "0.375rem",
|
|
125
144
|
paddingBottom: "0.375rem",
|
|
126
|
-
fontSize:
|
|
127
|
-
lineHeight:
|
|
145
|
+
fontSize: D,
|
|
146
|
+
lineHeight: y,
|
|
128
147
|
outlineStyle: "none",
|
|
129
148
|
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
130
149
|
transitionDuration: "150ms",
|
|
131
150
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
132
151
|
":hover": {
|
|
133
|
-
backgroundColor:
|
|
152
|
+
backgroundColor: w
|
|
134
153
|
},
|
|
135
154
|
":focus-visible": {
|
|
136
|
-
backgroundColor:
|
|
155
|
+
backgroundColor: w
|
|
137
156
|
},
|
|
138
157
|
"&[data-highlighted]": {
|
|
139
|
-
backgroundColor:
|
|
158
|
+
backgroundColor: w
|
|
140
159
|
},
|
|
141
160
|
"&[data-disabled]": {
|
|
142
161
|
pointerEvents: "none",
|
|
@@ -150,30 +169,33 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
150
169
|
}
|
|
151
170
|
},
|
|
152
171
|
itemInset: {
|
|
172
|
+
...l,
|
|
153
173
|
paddingLeft: "2rem"
|
|
154
174
|
},
|
|
155
175
|
itemDestructive: {
|
|
156
|
-
color:
|
|
176
|
+
color: V,
|
|
157
177
|
":hover": {
|
|
158
|
-
backgroundColor:
|
|
178
|
+
backgroundColor: h
|
|
159
179
|
},
|
|
160
180
|
":focus-visible": {
|
|
161
|
-
backgroundColor:
|
|
181
|
+
backgroundColor: h,
|
|
162
182
|
outlineWidth: "2px",
|
|
163
183
|
outlineStyle: "solid",
|
|
164
|
-
outlineColor:
|
|
184
|
+
outlineColor: O
|
|
165
185
|
},
|
|
166
186
|
"&[data-highlighted]": {
|
|
167
|
-
backgroundColor:
|
|
187
|
+
backgroundColor: h
|
|
168
188
|
}
|
|
169
189
|
},
|
|
170
190
|
itemCheckboxRadio: {
|
|
191
|
+
...l,
|
|
171
192
|
paddingLeft: "2rem",
|
|
172
|
-
paddingRight:
|
|
193
|
+
paddingRight: m
|
|
173
194
|
},
|
|
174
195
|
itemIndicatorWrapper: {
|
|
196
|
+
...l,
|
|
175
197
|
position: "absolute",
|
|
176
|
-
left:
|
|
198
|
+
left: m,
|
|
177
199
|
display: "flex",
|
|
178
200
|
height: "0.875rem",
|
|
179
201
|
width: "0.875rem",
|
|
@@ -187,10 +209,11 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
187
209
|
},
|
|
188
210
|
subTrigger: {
|
|
189
211
|
"&[data-state='open']": {
|
|
190
|
-
backgroundColor:
|
|
212
|
+
backgroundColor: w
|
|
191
213
|
}
|
|
192
214
|
},
|
|
193
215
|
subTriggerChevron: {
|
|
216
|
+
...l,
|
|
194
217
|
marginLeft: "auto",
|
|
195
218
|
width: "1rem",
|
|
196
219
|
height: "1rem",
|
|
@@ -198,34 +221,36 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
198
221
|
pointerEvents: "none"
|
|
199
222
|
},
|
|
200
223
|
label: {
|
|
201
|
-
|
|
202
|
-
|
|
224
|
+
...l,
|
|
225
|
+
paddingLeft: m,
|
|
226
|
+
paddingRight: m,
|
|
203
227
|
paddingTop: "0.375rem",
|
|
204
228
|
paddingBottom: "0.375rem",
|
|
205
|
-
fontSize:
|
|
206
|
-
lineHeight:
|
|
207
|
-
fontWeight:
|
|
229
|
+
fontSize: D,
|
|
230
|
+
lineHeight: y,
|
|
231
|
+
fontWeight: H
|
|
208
232
|
},
|
|
209
233
|
separator: {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
234
|
+
...l,
|
|
235
|
+
marginLeft: `calc(-1 * ${g})`,
|
|
236
|
+
marginRight: `calc(-1 * ${g})`,
|
|
237
|
+
marginTop: g,
|
|
238
|
+
marginBottom: g,
|
|
214
239
|
height: "1px",
|
|
215
|
-
backgroundColor:
|
|
240
|
+
backgroundColor: F
|
|
216
241
|
},
|
|
217
242
|
shortcut: {
|
|
218
243
|
marginLeft: "auto",
|
|
219
244
|
fontSize: j,
|
|
220
|
-
lineHeight:
|
|
245
|
+
lineHeight: Z,
|
|
221
246
|
letterSpacing: "0.1em",
|
|
222
|
-
color:
|
|
247
|
+
color: Y
|
|
223
248
|
}
|
|
224
|
-
}),
|
|
249
|
+
}), go = s.forwardRef(
|
|
225
250
|
function(o, t) {
|
|
226
|
-
return /* @__PURE__ */ e(
|
|
251
|
+
return /* @__PURE__ */ e(v, { "data-slot": "dropdown-menu", ...o });
|
|
227
252
|
}
|
|
228
|
-
),
|
|
253
|
+
), fo = s.forwardRef(function({ className: o, ...t }, n) {
|
|
229
254
|
const a = u();
|
|
230
255
|
return /* @__PURE__ */ e(
|
|
231
256
|
B,
|
|
@@ -233,13 +258,17 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
233
258
|
ref: n,
|
|
234
259
|
"data-slot": "dropdown-menu-trigger",
|
|
235
260
|
[c]: "dropdown-menu-trigger",
|
|
236
|
-
className:
|
|
261
|
+
className: p(
|
|
262
|
+
!t.asChild && a.triggerReset,
|
|
263
|
+
a.trigger,
|
|
264
|
+
o
|
|
265
|
+
),
|
|
237
266
|
...t
|
|
238
267
|
}
|
|
239
268
|
);
|
|
240
|
-
}),
|
|
269
|
+
}), wo = s.forwardRef(function({ className: o, ...t }, n) {
|
|
241
270
|
return /* @__PURE__ */ e(
|
|
242
|
-
|
|
271
|
+
N,
|
|
243
272
|
{
|
|
244
273
|
ref: n,
|
|
245
274
|
"data-slot": "dropdown-menu-group",
|
|
@@ -248,20 +277,20 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
248
277
|
...t
|
|
249
278
|
}
|
|
250
279
|
);
|
|
251
|
-
}),
|
|
280
|
+
}), ho = s.forwardRef(function(o, t) {
|
|
252
281
|
return /* @__PURE__ */ e(
|
|
253
|
-
|
|
282
|
+
C,
|
|
254
283
|
{
|
|
255
284
|
"data-slot": "dropdown-menu-portal",
|
|
256
285
|
[c]: "dropdown-menu-portal",
|
|
257
286
|
...o
|
|
258
287
|
}
|
|
259
288
|
);
|
|
260
|
-
}),
|
|
289
|
+
}), bo = s.forwardRef(function(o, t) {
|
|
261
290
|
return /* @__PURE__ */ e(z, { "data-slot": "dropdown-menu-sub", ...o });
|
|
262
|
-
}),
|
|
291
|
+
}), xo = s.forwardRef(function({ className: o, ...t }, n) {
|
|
263
292
|
return /* @__PURE__ */ e(
|
|
264
|
-
|
|
293
|
+
A,
|
|
265
294
|
{
|
|
266
295
|
ref: n,
|
|
267
296
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -270,15 +299,15 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
270
299
|
...t
|
|
271
300
|
}
|
|
272
301
|
);
|
|
273
|
-
}),
|
|
302
|
+
}), yo = s.forwardRef(function({ className: o, inset: t, children: n, ...a }, i) {
|
|
274
303
|
const d = u();
|
|
275
|
-
return /* @__PURE__ */
|
|
276
|
-
|
|
304
|
+
return /* @__PURE__ */ b(
|
|
305
|
+
W,
|
|
277
306
|
{
|
|
278
307
|
ref: i,
|
|
279
308
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
280
309
|
[c]: "dropdown-menu-sub-trigger",
|
|
281
|
-
className:
|
|
310
|
+
className: p(
|
|
282
311
|
d.item,
|
|
283
312
|
d.subTrigger,
|
|
284
313
|
t && d.itemInset,
|
|
@@ -287,48 +316,48 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
287
316
|
...a,
|
|
288
317
|
children: [
|
|
289
318
|
n,
|
|
290
|
-
/* @__PURE__ */ e(
|
|
319
|
+
/* @__PURE__ */ e(eo, { className: d.subTriggerChevron })
|
|
291
320
|
]
|
|
292
321
|
}
|
|
293
322
|
);
|
|
294
|
-
}),
|
|
295
|
-
const a = u(), i =
|
|
323
|
+
}), Do = s.forwardRef(function({ className: o, ...t }, n) {
|
|
324
|
+
const a = u(), i = I(), d = S();
|
|
296
325
|
return /* @__PURE__ */ e(
|
|
297
|
-
|
|
326
|
+
E,
|
|
298
327
|
{
|
|
299
328
|
ref: n,
|
|
300
329
|
"data-slot": "dropdown-menu-sub-content",
|
|
301
330
|
[c]: "dropdown-menu-sub-content",
|
|
302
331
|
...i !== void 0 ? { "data-density": i } : {},
|
|
303
332
|
...d,
|
|
304
|
-
className:
|
|
333
|
+
className: p(a.popup, o),
|
|
305
334
|
...t
|
|
306
335
|
}
|
|
307
336
|
);
|
|
308
|
-
}),
|
|
309
|
-
const d = u(),
|
|
310
|
-
return /* @__PURE__ */ e(
|
|
311
|
-
|
|
337
|
+
}), Ro = s.forwardRef(function({ className: o, sideOffset: t = 4, container: n, ...a }, i) {
|
|
338
|
+
const d = u(), x = I(), M = S();
|
|
339
|
+
return /* @__PURE__ */ e(C, { container: n, children: /* @__PURE__ */ e(
|
|
340
|
+
k,
|
|
312
341
|
{
|
|
313
342
|
ref: i,
|
|
314
343
|
"data-slot": "dropdown-menu-content",
|
|
315
344
|
[c]: "dropdown-menu-content",
|
|
316
|
-
...
|
|
317
|
-
...
|
|
345
|
+
...x !== void 0 ? { "data-density": x } : {},
|
|
346
|
+
...M,
|
|
318
347
|
sideOffset: t,
|
|
319
|
-
className:
|
|
348
|
+
className: p(d.popup, o),
|
|
320
349
|
...a
|
|
321
350
|
}
|
|
322
351
|
) });
|
|
323
|
-
}),
|
|
352
|
+
}), Co = s.forwardRef(function({ className: o, inset: t, destructive: n, ...a }, i) {
|
|
324
353
|
const d = u();
|
|
325
354
|
return /* @__PURE__ */ e(
|
|
326
|
-
|
|
355
|
+
q,
|
|
327
356
|
{
|
|
328
357
|
ref: i,
|
|
329
358
|
"data-slot": "dropdown-menu-item",
|
|
330
359
|
[c]: "dropdown-menu-item",
|
|
331
|
-
className:
|
|
360
|
+
className: p(
|
|
332
361
|
d.item,
|
|
333
362
|
t && d.itemInset,
|
|
334
363
|
n && d.itemDestructive,
|
|
@@ -337,48 +366,48 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
337
366
|
...a
|
|
338
367
|
}
|
|
339
368
|
);
|
|
340
|
-
}),
|
|
369
|
+
}), So = s.forwardRef(function({ className: o, children: t, checked: n, ...a }, i) {
|
|
341
370
|
const d = u();
|
|
342
|
-
return /* @__PURE__ */
|
|
371
|
+
return /* @__PURE__ */ b(
|
|
343
372
|
T,
|
|
344
373
|
{
|
|
345
374
|
ref: i,
|
|
346
375
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
347
376
|
[c]: "dropdown-menu-checkbox-item",
|
|
348
|
-
className:
|
|
377
|
+
className: p(d.item, d.itemCheckboxRadio, o),
|
|
349
378
|
checked: n,
|
|
350
379
|
...a,
|
|
351
380
|
children: [
|
|
352
|
-
/* @__PURE__ */ e("span", { className: d.itemIndicatorWrapper, children: /* @__PURE__ */ e(R, { className: d.itemIndicator, children: /* @__PURE__ */ e(
|
|
381
|
+
/* @__PURE__ */ e("span", { className: d.itemIndicatorWrapper, children: /* @__PURE__ */ e(R, { className: d.itemIndicator, children: /* @__PURE__ */ e(to, {}) }) }),
|
|
353
382
|
t
|
|
354
383
|
]
|
|
355
384
|
}
|
|
356
385
|
);
|
|
357
|
-
}),
|
|
386
|
+
}), Io = s.forwardRef(function({ className: o, children: t, ...n }, a) {
|
|
358
387
|
const i = u();
|
|
359
|
-
return /* @__PURE__ */
|
|
360
|
-
|
|
388
|
+
return /* @__PURE__ */ b(
|
|
389
|
+
G,
|
|
361
390
|
{
|
|
362
391
|
ref: a,
|
|
363
392
|
"data-slot": "dropdown-menu-radio-item",
|
|
364
393
|
[c]: "dropdown-menu-radio-item",
|
|
365
|
-
className:
|
|
394
|
+
className: p(i.item, i.itemCheckboxRadio, o),
|
|
366
395
|
...n,
|
|
367
396
|
children: [
|
|
368
|
-
/* @__PURE__ */ e("span", { className: i.itemIndicatorWrapper, children: /* @__PURE__ */ e(R, { className: i.itemIndicator, children: /* @__PURE__ */ e(
|
|
397
|
+
/* @__PURE__ */ e("span", { className: i.itemIndicatorWrapper, children: /* @__PURE__ */ e(R, { className: i.itemIndicator, children: /* @__PURE__ */ e(no, {}) }) }),
|
|
369
398
|
t
|
|
370
399
|
]
|
|
371
400
|
}
|
|
372
401
|
);
|
|
373
|
-
}),
|
|
402
|
+
}), Mo = s.forwardRef(function({ className: o, inset: t, ...n }, a) {
|
|
374
403
|
const i = u();
|
|
375
404
|
return /* @__PURE__ */ e(
|
|
376
|
-
|
|
405
|
+
L,
|
|
377
406
|
{
|
|
378
407
|
ref: a,
|
|
379
408
|
"data-slot": "dropdown-menu-label",
|
|
380
409
|
[c]: "dropdown-menu-label",
|
|
381
|
-
className:
|
|
410
|
+
className: p(
|
|
382
411
|
i.label,
|
|
383
412
|
t && i.itemInset,
|
|
384
413
|
o
|
|
@@ -386,19 +415,19 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
386
415
|
...n
|
|
387
416
|
}
|
|
388
417
|
);
|
|
389
|
-
}),
|
|
418
|
+
}), vo = s.forwardRef(function({ className: o, ...t }, n) {
|
|
390
419
|
const a = u();
|
|
391
420
|
return /* @__PURE__ */ e(
|
|
392
|
-
|
|
421
|
+
X,
|
|
393
422
|
{
|
|
394
423
|
ref: n,
|
|
395
424
|
"data-slot": "dropdown-menu-separator",
|
|
396
425
|
[c]: "dropdown-menu-separator",
|
|
397
|
-
className:
|
|
426
|
+
className: p(a.separator, o),
|
|
398
427
|
...t
|
|
399
428
|
}
|
|
400
429
|
);
|
|
401
|
-
}),
|
|
430
|
+
}), To = s.forwardRef(function({ className: o, ...t }, n) {
|
|
402
431
|
const a = u();
|
|
403
432
|
return /* @__PURE__ */ e(
|
|
404
433
|
"span",
|
|
@@ -406,26 +435,26 @@ const U = (r) => /* @__PURE__ */ e(
|
|
|
406
435
|
ref: n,
|
|
407
436
|
"data-slot": "dropdown-menu-shortcut",
|
|
408
437
|
[c]: "dropdown-menu-shortcut",
|
|
409
|
-
className:
|
|
438
|
+
className: p(a.shortcut, o),
|
|
410
439
|
...t
|
|
411
440
|
}
|
|
412
441
|
);
|
|
413
442
|
});
|
|
414
443
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
444
|
+
go as DropdownMenu,
|
|
445
|
+
So as DropdownMenuCheckboxItem,
|
|
446
|
+
Ro as DropdownMenuContent,
|
|
447
|
+
wo as DropdownMenuGroup,
|
|
448
|
+
Co as DropdownMenuItem,
|
|
449
|
+
Mo as DropdownMenuLabel,
|
|
450
|
+
ho as DropdownMenuPortal,
|
|
451
|
+
xo as DropdownMenuRadioGroup,
|
|
452
|
+
Io as DropdownMenuRadioItem,
|
|
453
|
+
vo as DropdownMenuSeparator,
|
|
454
|
+
To as DropdownMenuShortcut,
|
|
455
|
+
bo as DropdownMenuSub,
|
|
456
|
+
Do as DropdownMenuSubContent,
|
|
457
|
+
yo as DropdownMenuSubTrigger,
|
|
458
|
+
fo as DropdownMenuTrigger
|
|
430
459
|
};
|
|
431
460
|
//# sourceMappingURL=dropdown-menu.js.map
|