@ucdjs-internal/shared-ui 0.1.0

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 (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +27 -0
  3. package/dist/components/shiki-code.d.mts +50 -0
  4. package/dist/components/shiki-code.mjs +76 -0
  5. package/dist/components/theme-toggle.d.mts +6 -0
  6. package/dist/components/theme-toggle.mjs +75 -0
  7. package/dist/hooks/index.d.mts +3 -0
  8. package/dist/hooks/index.mjs +4 -0
  9. package/dist/hooks/use-mobile.d.mts +4 -0
  10. package/dist/hooks/use-mobile.mjs +41 -0
  11. package/dist/hooks/use-theme.d.mts +11 -0
  12. package/dist/hooks/use-theme.mjs +105 -0
  13. package/dist/index.d.mts +3 -0
  14. package/dist/index.mjs +4 -0
  15. package/dist/lib/theme-script.d.mts +5 -0
  16. package/dist/lib/theme-script.mjs +26 -0
  17. package/dist/lib/utils.d.mts +6 -0
  18. package/dist/lib/utils.mjs +10 -0
  19. package/dist/styles/globals.css +219 -0
  20. package/dist/styles/shadcn-vendored.css +95 -0
  21. package/dist/ui/alert-dialog.d.mts +58 -0
  22. package/dist/ui/alert-dialog.mjs +387 -0
  23. package/dist/ui/avatar.d.mts +34 -0
  24. package/dist/ui/avatar.mjs +208 -0
  25. package/dist/ui/badge.d.mts +17 -0
  26. package/dist/ui/badge.mjs +76 -0
  27. package/dist/ui/breadcrumb.d.mts +37 -0
  28. package/dist/ui/breadcrumb.mjs +281 -0
  29. package/dist/ui/button.d.mts +18 -0
  30. package/dist/ui/button.mjs +82 -0
  31. package/dist/ui/card.d.mts +37 -0
  32. package/dist/ui/card.mjs +239 -0
  33. package/dist/ui/checkbox.d.mts +10 -0
  34. package/dist/ui/checkbox.mjs +52 -0
  35. package/dist/ui/collapsible.d.mts +15 -0
  36. package/dist/ui/collapsible.mjs +65 -0
  37. package/dist/ui/combobox.d.mts +81 -0
  38. package/dist/ui/combobox.mjs +641 -0
  39. package/dist/ui/command.d.mts +55 -0
  40. package/dist/ui/command.mjs +378 -0
  41. package/dist/ui/context-menu.d.mts +86 -0
  42. package/dist/ui/context-menu.mjs +520 -0
  43. package/dist/ui/dialog.d.mts +51 -0
  44. package/dist/ui/dialog.mjs +331 -0
  45. package/dist/ui/dropdown-menu.d.mts +84 -0
  46. package/dist/ui/dropdown-menu.mjs +534 -0
  47. package/dist/ui/field.d.mts +64 -0
  48. package/dist/ui/field.mjs +425 -0
  49. package/dist/ui/input-group.d.mts +45 -0
  50. package/dist/ui/input-group.mjs +254 -0
  51. package/dist/ui/input.d.mts +11 -0
  52. package/dist/ui/input.mjs +47 -0
  53. package/dist/ui/label.d.mts +10 -0
  54. package/dist/ui/label.mjs +41 -0
  55. package/dist/ui/scroll-area.d.mts +16 -0
  56. package/dist/ui/scroll-area.mjs +120 -0
  57. package/dist/ui/select.d.mts +55 -0
  58. package/dist/ui/select.mjs +414 -0
  59. package/dist/ui/separator.d.mts +11 -0
  60. package/dist/ui/separator.mjs +47 -0
  61. package/dist/ui/sheet.d.mts +42 -0
  62. package/dist/ui/sheet.mjs +318 -0
  63. package/dist/ui/sidebar.d.mts +160 -0
  64. package/dist/ui/sidebar.mjs +1258 -0
  65. package/dist/ui/skeleton.d.mts +9 -0
  66. package/dist/ui/skeleton.mjs +40 -0
  67. package/dist/ui/table.d.mts +38 -0
  68. package/dist/ui/table.mjs +269 -0
  69. package/dist/ui/textarea.d.mts +10 -0
  70. package/dist/ui/textarea.mjs +41 -0
  71. package/dist/ui/tooltip.d.mts +25 -0
  72. package/dist/ui/tooltip.mjs +149 -0
  73. package/package.json +111 -0
@@ -0,0 +1,520 @@
1
+ import { cn } from "../lib/utils.mjs";
2
+ import "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { c } from "react/compiler-runtime";
5
+ import { CheckIcon, ChevronRightIcon } from "lucide-react";
6
+ import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
7
+
8
+ //#region src/ui/context-menu.tsx
9
+ function ContextMenu(t0) {
10
+ const $ = c(4);
11
+ let props;
12
+ if ($[0] !== t0) {
13
+ ({...props} = t0);
14
+ $[0] = t0;
15
+ $[1] = props;
16
+ } else props = $[1];
17
+ let t1;
18
+ if ($[2] !== props) {
19
+ t1 = /* @__PURE__ */ jsx(ContextMenu$1.Root, {
20
+ "data-slot": "context-menu",
21
+ ...props
22
+ });
23
+ $[2] = props;
24
+ $[3] = t1;
25
+ } else t1 = $[3];
26
+ return t1;
27
+ }
28
+ function ContextMenuPortal(t0) {
29
+ const $ = c(4);
30
+ let props;
31
+ if ($[0] !== t0) {
32
+ ({...props} = t0);
33
+ $[0] = t0;
34
+ $[1] = props;
35
+ } else props = $[1];
36
+ let t1;
37
+ if ($[2] !== props) {
38
+ t1 = /* @__PURE__ */ jsx(ContextMenu$1.Portal, {
39
+ "data-slot": "context-menu-portal",
40
+ ...props
41
+ });
42
+ $[2] = props;
43
+ $[3] = t1;
44
+ } else t1 = $[3];
45
+ return t1;
46
+ }
47
+ function ContextMenuTrigger(t0) {
48
+ const $ = c(8);
49
+ let className;
50
+ let props;
51
+ if ($[0] !== t0) {
52
+ ({className, ...props} = t0);
53
+ $[0] = t0;
54
+ $[1] = className;
55
+ $[2] = props;
56
+ } else {
57
+ className = $[1];
58
+ props = $[2];
59
+ }
60
+ let t1;
61
+ if ($[3] !== className) {
62
+ t1 = cn("select-none", className);
63
+ $[3] = className;
64
+ $[4] = t1;
65
+ } else t1 = $[4];
66
+ let t2;
67
+ if ($[5] !== props || $[6] !== t1) {
68
+ t2 = /* @__PURE__ */ jsx(ContextMenu$1.Trigger, {
69
+ "data-slot": "context-menu-trigger",
70
+ className: t1,
71
+ ...props
72
+ });
73
+ $[5] = props;
74
+ $[6] = t1;
75
+ $[7] = t2;
76
+ } else t2 = $[7];
77
+ return t2;
78
+ }
79
+ function ContextMenuContent(t0) {
80
+ const $ = c(18);
81
+ let className;
82
+ let props;
83
+ let t1;
84
+ let t2;
85
+ let t3;
86
+ let t4;
87
+ if ($[0] !== t0) {
88
+ ({className, align: t1, alignOffset: t2, side: t3, sideOffset: t4, ...props} = t0);
89
+ $[0] = t0;
90
+ $[1] = className;
91
+ $[2] = props;
92
+ $[3] = t1;
93
+ $[4] = t2;
94
+ $[5] = t3;
95
+ $[6] = t4;
96
+ } else {
97
+ className = $[1];
98
+ props = $[2];
99
+ t1 = $[3];
100
+ t2 = $[4];
101
+ t3 = $[5];
102
+ t4 = $[6];
103
+ }
104
+ const align = t1 === void 0 ? "start" : t1;
105
+ const alignOffset = t2 === void 0 ? 4 : t2;
106
+ const side = t3 === void 0 ? "right" : t3;
107
+ const sideOffset = t4 === void 0 ? 0 : t4;
108
+ let t5;
109
+ if ($[7] !== className) {
110
+ t5 = cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-lg p-1 shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none", className);
111
+ $[7] = className;
112
+ $[8] = t5;
113
+ } else t5 = $[8];
114
+ let t6;
115
+ if ($[9] !== props || $[10] !== t5) {
116
+ t6 = /* @__PURE__ */ jsx(ContextMenu$1.Popup, {
117
+ "data-slot": "context-menu-content",
118
+ className: t5,
119
+ ...props
120
+ });
121
+ $[9] = props;
122
+ $[10] = t5;
123
+ $[11] = t6;
124
+ } else t6 = $[11];
125
+ let t7;
126
+ if ($[12] !== align || $[13] !== alignOffset || $[14] !== side || $[15] !== sideOffset || $[16] !== t6) {
127
+ t7 = /* @__PURE__ */ jsx(ContextMenu$1.Portal, { children: /* @__PURE__ */ jsx(ContextMenu$1.Positioner, {
128
+ className: "isolate z-50 outline-none",
129
+ align,
130
+ alignOffset,
131
+ side,
132
+ sideOffset,
133
+ children: t6
134
+ }) });
135
+ $[12] = align;
136
+ $[13] = alignOffset;
137
+ $[14] = side;
138
+ $[15] = sideOffset;
139
+ $[16] = t6;
140
+ $[17] = t7;
141
+ } else t7 = $[17];
142
+ return t7;
143
+ }
144
+ function ContextMenuGroup(t0) {
145
+ const $ = c(4);
146
+ let props;
147
+ if ($[0] !== t0) {
148
+ ({...props} = t0);
149
+ $[0] = t0;
150
+ $[1] = props;
151
+ } else props = $[1];
152
+ let t1;
153
+ if ($[2] !== props) {
154
+ t1 = /* @__PURE__ */ jsx(ContextMenu$1.Group, {
155
+ "data-slot": "context-menu-group",
156
+ ...props
157
+ });
158
+ $[2] = props;
159
+ $[3] = t1;
160
+ } else t1 = $[3];
161
+ return t1;
162
+ }
163
+ function ContextMenuLabel(t0) {
164
+ const $ = c(10);
165
+ let className;
166
+ let inset;
167
+ let props;
168
+ if ($[0] !== t0) {
169
+ ({className, inset, ...props} = t0);
170
+ $[0] = t0;
171
+ $[1] = className;
172
+ $[2] = inset;
173
+ $[3] = props;
174
+ } else {
175
+ className = $[1];
176
+ inset = $[2];
177
+ props = $[3];
178
+ }
179
+ let t1;
180
+ if ($[4] !== className) {
181
+ t1 = cn("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7", className);
182
+ $[4] = className;
183
+ $[5] = t1;
184
+ } else t1 = $[5];
185
+ let t2;
186
+ if ($[6] !== inset || $[7] !== props || $[8] !== t1) {
187
+ t2 = /* @__PURE__ */ jsx(ContextMenu$1.GroupLabel, {
188
+ "data-slot": "context-menu-label",
189
+ "data-inset": inset,
190
+ className: t1,
191
+ ...props
192
+ });
193
+ $[6] = inset;
194
+ $[7] = props;
195
+ $[8] = t1;
196
+ $[9] = t2;
197
+ } else t2 = $[9];
198
+ return t2;
199
+ }
200
+ function ContextMenuItem(t0) {
201
+ const $ = c(12);
202
+ let className;
203
+ let inset;
204
+ let props;
205
+ let t1;
206
+ if ($[0] !== t0) {
207
+ ({className, inset, variant: t1, ...props} = t0);
208
+ $[0] = t0;
209
+ $[1] = className;
210
+ $[2] = inset;
211
+ $[3] = props;
212
+ $[4] = t1;
213
+ } else {
214
+ className = $[1];
215
+ inset = $[2];
216
+ props = $[3];
217
+ t1 = $[4];
218
+ }
219
+ const variant = t1 === void 0 ? "default" : t1;
220
+ let t2;
221
+ if ($[5] !== className) {
222
+ t2 = 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 focus:*:[svg]:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4 group/context-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className);
223
+ $[5] = className;
224
+ $[6] = t2;
225
+ } else t2 = $[6];
226
+ let t3;
227
+ if ($[7] !== inset || $[8] !== props || $[9] !== t2 || $[10] !== variant) {
228
+ t3 = /* @__PURE__ */ jsx(ContextMenu$1.Item, {
229
+ "data-slot": "context-menu-item",
230
+ "data-inset": inset,
231
+ "data-variant": variant,
232
+ className: t2,
233
+ ...props
234
+ });
235
+ $[7] = inset;
236
+ $[8] = props;
237
+ $[9] = t2;
238
+ $[10] = variant;
239
+ $[11] = t3;
240
+ } else t3 = $[11];
241
+ return t3;
242
+ }
243
+ function ContextMenuSub(t0) {
244
+ const $ = c(4);
245
+ let props;
246
+ if ($[0] !== t0) {
247
+ ({...props} = t0);
248
+ $[0] = t0;
249
+ $[1] = props;
250
+ } else props = $[1];
251
+ let t1;
252
+ if ($[2] !== props) {
253
+ t1 = /* @__PURE__ */ jsx(ContextMenu$1.SubmenuRoot, {
254
+ "data-slot": "context-menu-sub",
255
+ ...props
256
+ });
257
+ $[2] = props;
258
+ $[3] = t1;
259
+ } else t1 = $[3];
260
+ return t1;
261
+ }
262
+ function ContextMenuSubTrigger(t0) {
263
+ const $ = c(13);
264
+ let children;
265
+ let className;
266
+ let inset;
267
+ let props;
268
+ if ($[0] !== t0) {
269
+ ({className, inset, children, ...props} = t0);
270
+ $[0] = t0;
271
+ $[1] = children;
272
+ $[2] = className;
273
+ $[3] = inset;
274
+ $[4] = props;
275
+ } else {
276
+ children = $[1];
277
+ className = $[2];
278
+ inset = $[3];
279
+ props = $[4];
280
+ }
281
+ let t1;
282
+ if ($[5] !== className) {
283
+ t1 = cn("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0", className);
284
+ $[5] = className;
285
+ $[6] = t1;
286
+ } else t1 = $[6];
287
+ let t2;
288
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
289
+ t2 = /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" });
290
+ $[7] = t2;
291
+ } else t2 = $[7];
292
+ let t3;
293
+ if ($[8] !== children || $[9] !== inset || $[10] !== props || $[11] !== t1) {
294
+ t3 = /* @__PURE__ */ jsxs(ContextMenu$1.SubmenuTrigger, {
295
+ "data-slot": "context-menu-sub-trigger",
296
+ "data-inset": inset,
297
+ className: t1,
298
+ ...props,
299
+ children: [children, t2]
300
+ });
301
+ $[8] = children;
302
+ $[9] = inset;
303
+ $[10] = props;
304
+ $[11] = t1;
305
+ $[12] = t3;
306
+ } else t3 = $[12];
307
+ return t3;
308
+ }
309
+ function ContextMenuSubContent(t0) {
310
+ const $ = c(4);
311
+ let props;
312
+ if ($[0] !== t0) {
313
+ ({...props} = t0);
314
+ $[0] = t0;
315
+ $[1] = props;
316
+ } else props = $[1];
317
+ let t1;
318
+ if ($[2] !== props) {
319
+ t1 = /* @__PURE__ */ jsx(ContextMenuContent, {
320
+ "data-slot": "context-menu-sub-content",
321
+ className: "shadow-lg",
322
+ side: "right",
323
+ ...props
324
+ });
325
+ $[2] = props;
326
+ $[3] = t1;
327
+ } else t1 = $[3];
328
+ return t1;
329
+ }
330
+ function ContextMenuCheckboxItem(t0) {
331
+ const $ = c(15);
332
+ let checked;
333
+ let children;
334
+ let className;
335
+ let inset;
336
+ let props;
337
+ if ($[0] !== t0) {
338
+ ({className, children, checked, inset, ...props} = t0);
339
+ $[0] = t0;
340
+ $[1] = checked;
341
+ $[2] = children;
342
+ $[3] = className;
343
+ $[4] = inset;
344
+ $[5] = props;
345
+ } else {
346
+ checked = $[1];
347
+ children = $[2];
348
+ className = $[3];
349
+ inset = $[4];
350
+ props = $[5];
351
+ }
352
+ let t1;
353
+ if ($[6] !== className) {
354
+ t1 = cn("focus:bg-accent focus:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className);
355
+ $[6] = className;
356
+ $[7] = t1;
357
+ } else t1 = $[7];
358
+ let t2;
359
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
360
+ t2 = /* @__PURE__ */ jsx("span", {
361
+ className: "absolute right-2 pointer-events-none",
362
+ children: /* @__PURE__ */ jsx(ContextMenu$1.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
363
+ });
364
+ $[8] = t2;
365
+ } else t2 = $[8];
366
+ let t3;
367
+ if ($[9] !== checked || $[10] !== children || $[11] !== inset || $[12] !== props || $[13] !== t1) {
368
+ t3 = /* @__PURE__ */ jsxs(ContextMenu$1.CheckboxItem, {
369
+ "data-slot": "context-menu-checkbox-item",
370
+ "data-inset": inset,
371
+ className: t1,
372
+ checked,
373
+ ...props,
374
+ children: [t2, children]
375
+ });
376
+ $[9] = checked;
377
+ $[10] = children;
378
+ $[11] = inset;
379
+ $[12] = props;
380
+ $[13] = t1;
381
+ $[14] = t3;
382
+ } else t3 = $[14];
383
+ return t3;
384
+ }
385
+ function ContextMenuRadioGroup(t0) {
386
+ const $ = c(4);
387
+ let props;
388
+ if ($[0] !== t0) {
389
+ ({...props} = t0);
390
+ $[0] = t0;
391
+ $[1] = props;
392
+ } else props = $[1];
393
+ let t1;
394
+ if ($[2] !== props) {
395
+ t1 = /* @__PURE__ */ jsx(ContextMenu$1.RadioGroup, {
396
+ "data-slot": "context-menu-radio-group",
397
+ ...props
398
+ });
399
+ $[2] = props;
400
+ $[3] = t1;
401
+ } else t1 = $[3];
402
+ return t1;
403
+ }
404
+ function ContextMenuRadioItem(t0) {
405
+ const $ = c(13);
406
+ let children;
407
+ let className;
408
+ let inset;
409
+ let props;
410
+ if ($[0] !== t0) {
411
+ ({className, children, inset, ...props} = t0);
412
+ $[0] = t0;
413
+ $[1] = children;
414
+ $[2] = className;
415
+ $[3] = inset;
416
+ $[4] = props;
417
+ } else {
418
+ children = $[1];
419
+ className = $[2];
420
+ inset = $[3];
421
+ props = $[4];
422
+ }
423
+ let t1;
424
+ if ($[5] !== className) {
425
+ t1 = cn("focus:bg-accent focus:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className);
426
+ $[5] = className;
427
+ $[6] = t1;
428
+ } else t1 = $[6];
429
+ let t2;
430
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
431
+ t2 = /* @__PURE__ */ jsx("span", {
432
+ className: "absolute right-2 pointer-events-none",
433
+ children: /* @__PURE__ */ jsx(ContextMenu$1.RadioItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
434
+ });
435
+ $[7] = t2;
436
+ } else t2 = $[7];
437
+ let t3;
438
+ if ($[8] !== children || $[9] !== inset || $[10] !== props || $[11] !== t1) {
439
+ t3 = /* @__PURE__ */ jsxs(ContextMenu$1.RadioItem, {
440
+ "data-slot": "context-menu-radio-item",
441
+ "data-inset": inset,
442
+ className: t1,
443
+ ...props,
444
+ children: [t2, children]
445
+ });
446
+ $[8] = children;
447
+ $[9] = inset;
448
+ $[10] = props;
449
+ $[11] = t1;
450
+ $[12] = t3;
451
+ } else t3 = $[12];
452
+ return t3;
453
+ }
454
+ function ContextMenuSeparator(t0) {
455
+ const $ = c(8);
456
+ let className;
457
+ let props;
458
+ if ($[0] !== t0) {
459
+ ({className, ...props} = t0);
460
+ $[0] = t0;
461
+ $[1] = className;
462
+ $[2] = props;
463
+ } else {
464
+ className = $[1];
465
+ props = $[2];
466
+ }
467
+ let t1;
468
+ if ($[3] !== className) {
469
+ t1 = cn("bg-border -mx-1 my-1 h-px", className);
470
+ $[3] = className;
471
+ $[4] = t1;
472
+ } else t1 = $[4];
473
+ let t2;
474
+ if ($[5] !== props || $[6] !== t1) {
475
+ t2 = /* @__PURE__ */ jsx(ContextMenu$1.Separator, {
476
+ "data-slot": "context-menu-separator",
477
+ className: t1,
478
+ ...props
479
+ });
480
+ $[5] = props;
481
+ $[6] = t1;
482
+ $[7] = t2;
483
+ } else t2 = $[7];
484
+ return t2;
485
+ }
486
+ function ContextMenuShortcut(t0) {
487
+ const $ = c(8);
488
+ let className;
489
+ let props;
490
+ if ($[0] !== t0) {
491
+ ({className, ...props} = t0);
492
+ $[0] = t0;
493
+ $[1] = className;
494
+ $[2] = props;
495
+ } else {
496
+ className = $[1];
497
+ props = $[2];
498
+ }
499
+ let t1;
500
+ if ($[3] !== className) {
501
+ t1 = cn("text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest", className);
502
+ $[3] = className;
503
+ $[4] = t1;
504
+ } else t1 = $[4];
505
+ let t2;
506
+ if ($[5] !== props || $[6] !== t1) {
507
+ t2 = /* @__PURE__ */ jsx("span", {
508
+ "data-slot": "context-menu-shortcut",
509
+ className: t1,
510
+ ...props
511
+ });
512
+ $[5] = props;
513
+ $[6] = t1;
514
+ $[7] = t2;
515
+ } else t2 = $[7];
516
+ return t2;
517
+ }
518
+
519
+ //#endregion
520
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
@@ -0,0 +1,51 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
4
+
5
+ //#region src/ui/dialog.d.ts
6
+ declare function Dialog({
7
+ ...props
8
+ }: Dialog$1.Root.Props): react_jsx_runtime0.JSX.Element;
9
+ declare function DialogTrigger({
10
+ ...props
11
+ }: Dialog$1.Trigger.Props): react_jsx_runtime0.JSX.Element;
12
+ declare function DialogPortal({
13
+ ...props
14
+ }: Dialog$1.Portal.Props): react_jsx_runtime0.JSX.Element;
15
+ declare function DialogClose({
16
+ ...props
17
+ }: Dialog$1.Close.Props): react_jsx_runtime0.JSX.Element;
18
+ declare function DialogOverlay({
19
+ className,
20
+ ...props
21
+ }: Dialog$1.Backdrop.Props): react_jsx_runtime0.JSX.Element;
22
+ declare function DialogContent({
23
+ className,
24
+ children,
25
+ showCloseButton,
26
+ ...props
27
+ }: Dialog$1.Popup.Props & {
28
+ showCloseButton?: boolean;
29
+ }): react_jsx_runtime0.JSX.Element;
30
+ declare function DialogHeader({
31
+ className,
32
+ ...props
33
+ }: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
34
+ declare function DialogFooter({
35
+ className,
36
+ showCloseButton,
37
+ children,
38
+ ...props
39
+ }: React.ComponentProps<"div"> & {
40
+ showCloseButton?: boolean;
41
+ }): react_jsx_runtime0.JSX.Element;
42
+ declare function DialogTitle({
43
+ className,
44
+ ...props
45
+ }: Dialog$1.Title.Props): react_jsx_runtime0.JSX.Element;
46
+ declare function DialogDescription({
47
+ className,
48
+ ...props
49
+ }: Dialog$1.Description.Props): react_jsx_runtime0.JSX.Element;
50
+ //#endregion
51
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };