@epilot/zenith-react 0.1.0 → 0.2.0-next.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.
Files changed (132) hide show
  1. package/README.md +34 -0
  2. package/dist/components/accordion/accordion.js +57 -48
  3. package/dist/components/accordion/accordion.js.map +1 -1
  4. package/dist/components/alert-dialog/alert-dialog.js +120 -91
  5. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  6. package/dist/components/avatar/avatar-group.js +38 -35
  7. package/dist/components/avatar/avatar-group.js.map +1 -1
  8. package/dist/components/avatar/avatar.js +78 -71
  9. package/dist/components/avatar/avatar.js.map +1 -1
  10. package/dist/components/badge/badge.js +60 -55
  11. package/dist/components/badge/badge.js.map +1 -1
  12. package/dist/components/breadcrumb/breadcrumb.js +99 -54
  13. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  14. package/dist/components/button/button.js +87 -77
  15. package/dist/components/button/button.js.map +1 -1
  16. package/dist/components/button-group/button-group.js +36 -32
  17. package/dist/components/button-group/button-group.js.map +1 -1
  18. package/dist/components/callout/callout.js +113 -104
  19. package/dist/components/callout/callout.js.map +1 -1
  20. package/dist/components/card/card.js +62 -52
  21. package/dist/components/card/card.js.map +1 -1
  22. package/dist/components/checkbox/checkbox.js +22 -19
  23. package/dist/components/checkbox/checkbox.js.map +1 -1
  24. package/dist/components/code-block/code-block.js +135 -123
  25. package/dist/components/code-block/code-block.js.map +1 -1
  26. package/dist/components/code-editor/code-editor.js +276 -260
  27. package/dist/components/code-editor/code-editor.js.map +1 -1
  28. package/dist/components/collapsible-sidebar/collapsible-sidebar.js +62 -56
  29. package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
  30. package/dist/components/command/command.js +116 -105
  31. package/dist/components/command/command.js.map +1 -1
  32. package/dist/components/data-table/data-table-body.js +38 -34
  33. package/dist/components/data-table/data-table-body.js.map +1 -1
  34. package/dist/components/data-table/data-table-column-header.js +30 -26
  35. package/dist/components/data-table/data-table-column-header.js.map +1 -1
  36. package/dist/components/data-table/data-table-column-order.js +79 -73
  37. package/dist/components/data-table/data-table-column-order.js.map +1 -1
  38. package/dist/components/data-table/data-table-column-visibility.js +25 -22
  39. package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
  40. package/dist/components/data-table/data-table-content.js +47 -44
  41. package/dist/components/data-table/data-table-content.js.map +1 -1
  42. package/dist/components/data-table/data-table-error.js +36 -32
  43. package/dist/components/data-table/data-table-error.js.map +1 -1
  44. package/dist/components/data-table/data-table-footer.js +10 -8
  45. package/dist/components/data-table/data-table-footer.js.map +1 -1
  46. package/dist/components/data-table/data-table-header-draggable.js +40 -36
  47. package/dist/components/data-table/data-table-header-draggable.js.map +1 -1
  48. package/dist/components/data-table/data-table-loading.js +21 -18
  49. package/dist/components/data-table/data-table-loading.js.map +1 -1
  50. package/dist/components/data-table/data-table-resize-handle.js +13 -11
  51. package/dist/components/data-table/data-table-resize-handle.js.map +1 -1
  52. package/dist/components/data-table/data-table-row.js +47 -44
  53. package/dist/components/data-table/data-table-row.js.map +1 -1
  54. package/dist/components/data-table/data-table-toolbar.js +9 -7
  55. package/dist/components/data-table/data-table-toolbar.js.map +1 -1
  56. package/dist/components/data-table/data-table.js +48 -46
  57. package/dist/components/data-table/data-table.js.map +1 -1
  58. package/dist/components/date-range-picker/date-range-picker.js +212 -193
  59. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  60. package/dist/components/date-range-picker/range-calendar.js +36 -34
  61. package/dist/components/date-range-picker/range-calendar.js.map +1 -1
  62. package/dist/components/date-time-picker/calendar.js +290 -272
  63. package/dist/components/date-time-picker/calendar.js.map +1 -1
  64. package/dist/components/date-time-picker/date-time-picker-input.js +127 -112
  65. package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
  66. package/dist/components/date-time-picker/date-time-picker-panel.js +126 -120
  67. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  68. package/dist/components/date-time-picker/date-time-picker.js +91 -86
  69. package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
  70. package/dist/components/date-time-picker/time-picker.js +95 -87
  71. package/dist/components/date-time-picker/time-picker.js.map +1 -1
  72. package/dist/components/dialog/dialog.js +125 -103
  73. package/dist/components/dialog/dialog.js.map +1 -1
  74. package/dist/components/drawer/drawer.js +151 -114
  75. package/dist/components/drawer/drawer.js.map +1 -1
  76. package/dist/components/dropdown-menu/dropdown-menu.js +141 -112
  77. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  78. package/dist/components/field/field-combobox.js +196 -176
  79. package/dist/components/field/field-combobox.js.map +1 -1
  80. package/dist/components/field/field.js +237 -195
  81. package/dist/components/field/field.js.map +1 -1
  82. package/dist/components/list/list.js +237 -219
  83. package/dist/components/list/list.js.map +1 -1
  84. package/dist/components/option-card/option-card.js +129 -116
  85. package/dist/components/option-card/option-card.js.map +1 -1
  86. package/dist/components/pill/pill.js +55 -51
  87. package/dist/components/pill/pill.js.map +1 -1
  88. package/dist/components/popover/popover.js +53 -36
  89. package/dist/components/popover/popover.js.map +1 -1
  90. package/dist/components/radio/radio.js +38 -34
  91. package/dist/components/radio/radio.js.map +1 -1
  92. package/dist/components/scroll-area/scroll-area.js +38 -35
  93. package/dist/components/scroll-area/scroll-area.js.map +1 -1
  94. package/dist/components/scroll-overflow/scroll-overflow.js +166 -151
  95. package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
  96. package/dist/components/segmented-control/segmented-control.js +93 -85
  97. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  98. package/dist/components/select/select.js +149 -128
  99. package/dist/components/select/select.js.map +1 -1
  100. package/dist/components/separator/separator.js +19 -16
  101. package/dist/components/separator/separator.js.map +1 -1
  102. package/dist/components/skeleton/skeleton.js +34 -30
  103. package/dist/components/skeleton/skeleton.js.map +1 -1
  104. package/dist/components/spinner/spinner.js +22 -17
  105. package/dist/components/spinner/spinner.js.map +1 -1
  106. package/dist/components/surface/surface.js +25 -22
  107. package/dist/components/surface/surface.js.map +1 -1
  108. package/dist/components/switch/switch.js +66 -57
  109. package/dist/components/switch/switch.js.map +1 -1
  110. package/dist/components/table/table-pagination.js +139 -129
  111. package/dist/components/table/table-pagination.js.map +1 -1
  112. package/dist/components/table/table.js +104 -90
  113. package/dist/components/table/table.js.map +1 -1
  114. package/dist/components/tabs/tabs.js +212 -79
  115. package/dist/components/tabs/tabs.js.map +1 -1
  116. package/dist/components/toast/toast.js +112 -100
  117. package/dist/components/toast/toast.js.map +1 -1
  118. package/dist/components/toggle/toggle.js +32 -30
  119. package/dist/components/toggle/toggle.js.map +1 -1
  120. package/dist/components/tooltip/tooltip.js +59 -46
  121. package/dist/components/tooltip/tooltip.js.map +1 -1
  122. package/dist/index.d.ts +22 -0
  123. package/dist/lib/clear-button.js +18 -17
  124. package/dist/lib/clear-button.js.map +1 -1
  125. package/dist/styles/host-reset.js +47 -0
  126. package/dist/styles/host-reset.js.map +1 -0
  127. package/dist/styles/overlay-layer.js +5 -0
  128. package/dist/styles/overlay-layer.js.map +1 -0
  129. package/dist/tokens.json +1 -1
  130. package/package.json +8 -7
  131. package/scripts/migration-diagnostics.mjs +42 -7
  132. package/scripts/migration-sweep.mjs +9 -1
@@ -1,12 +1,14 @@
1
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as b } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
- import { Root as M, CheckboxItem as T, ItemIndicator as R, Portal as S, Content as v, Group as k, Item as N, Label as q, RadioGroup as L, RadioItem as A, Separator as G, Sub as z, SubContent as W, SubTrigger as X, 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 m, SLOT_ATTR as c, shorthands as g } from "@epilot/zenith-runtime/v1";
5
- import { useAppearanceAttributes as C } from "../appearance-boundary/appearance-boundary.js";
6
- import { useDensity as D } from "../density-provider/density-provider.js";
7
- import { makeZenithStyles as $ } from "../../styles/make-styles.js";
8
- import { grayA11 as E, leadingXs as P, textXs as j, grayA3 as Y, spacingElement1 as l, fontWeightSemibold as Z, leadingSm as x, textSm as y, spacingElement2 as p, accentSoft as f, errorSoft as w, errorA8 as _, errorA11 as F, grayA12 as H, body as O, accentA11 as J, radiusMd as K, radiusXl as Q } from "../../tokens/index.js";
9
- const U = (r) => /* @__PURE__ */ e(
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
- ), V = (r) => /* @__PURE__ */ e(
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
- ), oo = (r) => /* @__PURE__ */ e(
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: J
51
+ color: Q
45
52
  },
46
53
  portal: {
47
54
  display: "contents"
48
55
  },
49
56
  popup: {
50
- backgroundColor: O,
51
- color: H,
57
+ ...l,
58
+ backgroundColor: K,
59
+ color: J,
52
60
  minWidth: "10rem",
53
61
  overflow: "hidden",
54
- ...g.borderRadius(Q),
55
- ...g.padding(l),
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: 50,
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(-${p}) scale(0.95)`
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(${p}) scale(0.95)`
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(-${p}) scale(0.95)`
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(${p}) scale(0.95)`
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
- ...g.gap(p),
121
- ...g.borderRadius(K),
122
- paddingLeft: p,
123
- paddingRight: p,
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: y,
127
- lineHeight: x,
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: f
152
+ backgroundColor: w
134
153
  },
135
154
  ":focus-visible": {
136
- backgroundColor: f
155
+ backgroundColor: w
137
156
  },
138
157
  "&[data-highlighted]": {
139
- backgroundColor: f
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: F,
176
+ color: V,
157
177
  ":hover": {
158
- backgroundColor: w
178
+ backgroundColor: h
159
179
  },
160
180
  ":focus-visible": {
161
- backgroundColor: w,
181
+ backgroundColor: h,
162
182
  outlineWidth: "2px",
163
183
  outlineStyle: "solid",
164
- outlineColor: _
184
+ outlineColor: O
165
185
  },
166
186
  "&[data-highlighted]": {
167
- backgroundColor: w
187
+ backgroundColor: h
168
188
  }
169
189
  },
170
190
  itemCheckboxRadio: {
191
+ ...l,
171
192
  paddingLeft: "2rem",
172
- paddingRight: p
193
+ paddingRight: m
173
194
  },
174
195
  itemIndicatorWrapper: {
196
+ ...l,
175
197
  position: "absolute",
176
- left: p,
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: f
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
- paddingLeft: p,
202
- paddingRight: p,
224
+ ...l,
225
+ paddingLeft: m,
226
+ paddingRight: m,
203
227
  paddingTop: "0.375rem",
204
228
  paddingBottom: "0.375rem",
205
- fontSize: y,
206
- lineHeight: x,
207
- fontWeight: Z
229
+ fontSize: D,
230
+ lineHeight: y,
231
+ fontWeight: H
208
232
  },
209
233
  separator: {
210
- marginLeft: `calc(-1 * ${l})`,
211
- marginRight: `calc(-1 * ${l})`,
212
- marginTop: l,
213
- marginBottom: l,
234
+ ...l,
235
+ marginLeft: `calc(-1 * ${g})`,
236
+ marginRight: `calc(-1 * ${g})`,
237
+ marginTop: g,
238
+ marginBottom: g,
214
239
  height: "1px",
215
- backgroundColor: Y
240
+ backgroundColor: F
216
241
  },
217
242
  shortcut: {
218
243
  marginLeft: "auto",
219
244
  fontSize: j,
220
- lineHeight: P,
245
+ lineHeight: Z,
221
246
  letterSpacing: "0.1em",
222
- color: E
247
+ color: Y
223
248
  }
224
- }), co = s.forwardRef(
249
+ }), go = s.forwardRef(
225
250
  function(o, t) {
226
- return /* @__PURE__ */ e(M, { "data-slot": "dropdown-menu", ...o });
251
+ return /* @__PURE__ */ e(v, { "data-slot": "dropdown-menu", ...o });
227
252
  }
228
- ), po = s.forwardRef(function({ className: o, ...t }, n) {
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: m(a.trigger, o),
261
+ className: p(
262
+ !t.asChild && a.triggerReset,
263
+ a.trigger,
264
+ o
265
+ ),
237
266
  ...t
238
267
  }
239
268
  );
240
- }), mo = s.forwardRef(function({ className: o, ...t }, n) {
269
+ }), wo = s.forwardRef(function({ className: o, ...t }, n) {
241
270
  return /* @__PURE__ */ e(
242
- k,
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
- }), uo = s.forwardRef(function(o, t) {
280
+ }), ho = s.forwardRef(function(o, t) {
252
281
  return /* @__PURE__ */ e(
253
- S,
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
- }), lo = s.forwardRef(function(o, t) {
289
+ }), bo = s.forwardRef(function(o, t) {
261
290
  return /* @__PURE__ */ e(z, { "data-slot": "dropdown-menu-sub", ...o });
262
- }), go = s.forwardRef(function({ className: o, ...t }, n) {
291
+ }), xo = s.forwardRef(function({ className: o, ...t }, n) {
263
292
  return /* @__PURE__ */ e(
264
- L,
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
- }), fo = s.forwardRef(function({ className: o, inset: t, children: n, ...a }, i) {
302
+ }), yo = s.forwardRef(function({ className: o, inset: t, children: n, ...a }, i) {
274
303
  const d = u();
275
- return /* @__PURE__ */ h(
276
- X,
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: m(
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(V, { className: d.subTriggerChevron })
319
+ /* @__PURE__ */ e(eo, { className: d.subTriggerChevron })
291
320
  ]
292
321
  }
293
322
  );
294
- }), wo = s.forwardRef(function({ className: o, ...t }, n) {
295
- const a = u(), i = D(), d = C();
323
+ }), Do = s.forwardRef(function({ className: o, ...t }, n) {
324
+ const a = u(), i = I(), d = S();
296
325
  return /* @__PURE__ */ e(
297
- W,
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: m(a.popup, o),
333
+ className: p(a.popup, o),
305
334
  ...t
306
335
  }
307
336
  );
308
- }), ho = s.forwardRef(function({ className: o, sideOffset: t = 4, container: n, ...a }, i) {
309
- const d = u(), b = D(), I = C();
310
- return /* @__PURE__ */ e(S, { container: n, children: /* @__PURE__ */ e(
311
- v,
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
- ...b !== void 0 ? { "data-density": b } : {},
317
- ...I,
345
+ ...x !== void 0 ? { "data-density": x } : {},
346
+ ...M,
318
347
  sideOffset: t,
319
- className: m(d.popup, o),
348
+ className: p(d.popup, o),
320
349
  ...a
321
350
  }
322
351
  ) });
323
- }), bo = s.forwardRef(function({ className: o, inset: t, destructive: n, ...a }, i) {
352
+ }), Co = s.forwardRef(function({ className: o, inset: t, destructive: n, ...a }, i) {
324
353
  const d = u();
325
354
  return /* @__PURE__ */ e(
326
- N,
355
+ q,
327
356
  {
328
357
  ref: i,
329
358
  "data-slot": "dropdown-menu-item",
330
359
  [c]: "dropdown-menu-item",
331
- className: m(
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
- }), xo = s.forwardRef(function({ className: o, children: t, checked: n, ...a }, i) {
369
+ }), So = s.forwardRef(function({ className: o, children: t, checked: n, ...a }, i) {
341
370
  const d = u();
342
- return /* @__PURE__ */ h(
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: m(d.item, d.itemCheckboxRadio, o),
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(U, {}) }) }),
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
- }), yo = s.forwardRef(function({ className: o, children: t, ...n }, a) {
386
+ }), Io = s.forwardRef(function({ className: o, children: t, ...n }, a) {
358
387
  const i = u();
359
- return /* @__PURE__ */ h(
360
- A,
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: m(i.item, i.itemCheckboxRadio, o),
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(oo, {}) }) }),
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
- }), Ro = s.forwardRef(function({ className: o, inset: t, ...n }, a) {
402
+ }), Mo = s.forwardRef(function({ className: o, inset: t, ...n }, a) {
374
403
  const i = u();
375
404
  return /* @__PURE__ */ e(
376
- q,
405
+ L,
377
406
  {
378
407
  ref: a,
379
408
  "data-slot": "dropdown-menu-label",
380
409
  [c]: "dropdown-menu-label",
381
- className: m(
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
- }), So = s.forwardRef(function({ className: o, ...t }, n) {
418
+ }), vo = s.forwardRef(function({ className: o, ...t }, n) {
390
419
  const a = u();
391
420
  return /* @__PURE__ */ e(
392
- G,
421
+ X,
393
422
  {
394
423
  ref: n,
395
424
  "data-slot": "dropdown-menu-separator",
396
425
  [c]: "dropdown-menu-separator",
397
- className: m(a.separator, o),
426
+ className: p(a.separator, o),
398
427
  ...t
399
428
  }
400
429
  );
401
- }), Co = s.forwardRef(function({ className: o, ...t }, n) {
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: m(a.shortcut, o),
438
+ className: p(a.shortcut, o),
410
439
  ...t
411
440
  }
412
441
  );
413
442
  });
414
443
  export {
415
- co as DropdownMenu,
416
- xo as DropdownMenuCheckboxItem,
417
- ho as DropdownMenuContent,
418
- mo as DropdownMenuGroup,
419
- bo as DropdownMenuItem,
420
- Ro as DropdownMenuLabel,
421
- uo as DropdownMenuPortal,
422
- go as DropdownMenuRadioGroup,
423
- yo as DropdownMenuRadioItem,
424
- So as DropdownMenuSeparator,
425
- Co as DropdownMenuShortcut,
426
- lo as DropdownMenuSub,
427
- wo as DropdownMenuSubContent,
428
- fo as DropdownMenuSubTrigger,
429
- po as DropdownMenuTrigger
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