@justanarthur/modo-ui 2.1.0 → 2.3.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 (145) hide show
  1. package/blocks/desktop-shell/index.tsx +2 -1
  2. package/components/inputs/checkbox/index.tsx +5 -0
  3. package/components/inputs/combobox/index.tsx +9 -4
  4. package/components/inputs/radio/index.tsx +5 -0
  5. package/components/inputs/select/index.tsx +23 -3
  6. package/components/inputs/slider/comfortable.tsx +10 -4
  7. package/components/inputs/slider/compact.tsx +153 -71
  8. package/components/inputs/slider/examples.mdx +24 -0
  9. package/components/inputs/slider/geometry.ts +18 -6
  10. package/components/inputs/slider/index.tsx +30 -8
  11. package/components/inputs/slider/value-display.tsx +16 -9
  12. package/components/inputs/switch/index.tsx +5 -0
  13. package/components/inputs/textarea/examples.mdx +19 -0
  14. package/components/inputs/textarea/index.tsx +42 -5
  15. package/components/navigation/sidebar/sidebar-group.tsx +2 -1
  16. package/components/navigation/sidebar/sidebar-menu-sub.tsx +2 -1
  17. package/components/navigation/sidebar/sidebar-shell.tsx +2 -1
  18. package/components/navigation/tree/index.tsx +2 -1
  19. package/components/overlays/dropdown/index.tsx +50 -8
  20. package/components/overlays/dropdown/submenu.tsx +41 -10
  21. package/components/overlays/tooltip/examples.mdx +13 -0
  22. package/components/overlays/tooltip/index.tsx +58 -16
  23. package/dist/blocks/desktop-shell/index.js +10 -9
  24. package/dist/blocks/sidebar-app/index.js +11 -10
  25. package/dist/components/actions/button/index.js +2 -2
  26. package/dist/components/actions/copy/index.js +4 -4
  27. package/dist/components/containers/accordion/index.d.ts +1 -1
  28. package/dist/components/containers/accordion/index.js +2 -2
  29. package/dist/components/containers/card/index.js +3 -3
  30. package/dist/components/data-display/log-view/index.js +3 -3
  31. package/dist/components/inputs/checkbox/index.d.ts +2 -0
  32. package/dist/components/inputs/checkbox/index.js +1 -1
  33. package/dist/components/inputs/color-picker/index.js +5 -5
  34. package/dist/components/inputs/combobox/index.d.ts +1 -1
  35. package/dist/components/inputs/combobox/index.js +2 -2
  36. package/dist/components/inputs/date-time/date-picker/index.js +7 -7
  37. package/dist/components/inputs/date-time/date-range-picker/index.js +7 -7
  38. package/dist/components/inputs/date-time/duration-picker/index.js +7 -7
  39. package/dist/components/inputs/date-time/month-picker/index.js +7 -7
  40. package/dist/components/inputs/date-time/time-picker/index.js +7 -7
  41. package/dist/components/inputs/field/index.js +2 -2
  42. package/dist/components/inputs/file-dropzone/index.js +3 -3
  43. package/dist/components/inputs/key-value/index.js +3 -3
  44. package/dist/components/inputs/radio/index.d.ts +2 -0
  45. package/dist/components/inputs/radio/index.js +1 -1
  46. package/dist/components/inputs/search/index.js +6 -6
  47. package/dist/components/inputs/select/index.d.ts +22 -4
  48. package/dist/components/inputs/select/index.js +3 -3
  49. package/dist/components/inputs/slider/index.d.ts +12 -3
  50. package/dist/components/inputs/slider/index.js +1 -1
  51. package/dist/components/inputs/switch/index.d.ts +2 -0
  52. package/dist/components/inputs/switch/index.js +1 -1
  53. package/dist/components/inputs/textarea/index.d.ts +8 -1
  54. package/dist/components/inputs/textarea/index.js +1 -1
  55. package/dist/components/navigation/breadcrumb/index.js +4 -4
  56. package/dist/components/navigation/navigation-menu/index.js +2 -2
  57. package/dist/components/navigation/pagination/index.js +3 -3
  58. package/dist/components/navigation/sidebar/index.js +8 -7
  59. package/dist/components/navigation/tree/index.js +2 -1
  60. package/dist/components/overlays/alert-dialog/index.d.ts +3 -3
  61. package/dist/components/overlays/alert-dialog/index.js +5 -5
  62. package/dist/components/overlays/command/index.d.ts +1 -1
  63. package/dist/components/overlays/command/index.js +5 -5
  64. package/dist/components/overlays/context-menu/index.d.ts +20 -1
  65. package/dist/components/overlays/context-menu/index.js +4 -4
  66. package/dist/components/overlays/dialog/index.d.ts +3 -3
  67. package/dist/components/overlays/dialog/index.js +4 -4
  68. package/dist/components/overlays/dropdown/index.d.ts +30 -8
  69. package/dist/components/overlays/dropdown/index.js +3 -3
  70. package/dist/components/overlays/lightbox/index.js +3 -3
  71. package/dist/components/overlays/popover/index.d.ts +6 -6
  72. package/dist/components/overlays/popover/index.js +3 -3
  73. package/dist/components/overlays/preview-card/index.js +2 -2
  74. package/dist/components/overlays/sheet/index.d.ts +3 -3
  75. package/dist/components/overlays/sheet/index.js +5 -5
  76. package/dist/components/overlays/toast/index.d.ts +1 -1
  77. package/dist/components/overlays/toast/index.js +3 -3
  78. package/dist/components/overlays/tooltip/index.d.ts +35 -10
  79. package/dist/components/overlays/tooltip/index.js +3 -3
  80. package/dist/docs/index.js +9 -8
  81. package/dist/index.d.ts +92 -38
  82. package/dist/index.js +47 -46
  83. package/dist/lib/inert.d.ts +7 -0
  84. package/dist/lib/inert.js +6 -0
  85. package/dist/lib/overlay.d.ts +20 -13
  86. package/dist/lib/overlay.js +2 -1
  87. package/dist/lib/slot.d.ts +5 -2
  88. package/dist/lib/slot.js +1 -1
  89. package/dist/primitives/layout/resizable/index.d.ts +4 -2
  90. package/dist/primitives/layout/resizable/index.js +1 -1
  91. package/dist/primitives/systems/morph/index.js +3 -3
  92. package/dist/primitives/systems/motion/index.js +3 -3
  93. package/dist/shared/{components-s90v3jpr.js → components-01e24999.js} +60 -11
  94. package/dist/shared/{components-a1ms36qq.js → components-1f5624hb.js} +1 -1
  95. package/dist/shared/{components-9z7bq8gn.js → components-1sbnbq6a.js} +1 -1
  96. package/dist/shared/{components-w2at9ntm.js → components-27fatggq.js} +1 -1
  97. package/dist/shared/{components-fmyvz4r2.js → components-2bq4ng4d.js} +4 -4
  98. package/dist/shared/components-2myjk2zf.js +8 -0
  99. package/dist/shared/{components-hz6armxa.js → components-2tw25pk6.js} +3 -0
  100. package/dist/shared/{components-nhmgr5xc.js → components-2v4mmw1s.js} +10 -7
  101. package/dist/shared/{components-twyj2y8c.js → components-3rt5c1qt.js} +1 -1
  102. package/dist/shared/{components-91mmbrw3.js → components-3sb31vw5.js} +1 -1
  103. package/dist/shared/{components-1f3a7gmg.js → components-4fswe4kh.js} +1 -1
  104. package/dist/shared/{components-gsstwhtv.js → components-5vezp3e5.js} +3 -0
  105. package/dist/shared/{components-ee09xmkh.js → components-6g8a5nrs.js} +4 -1
  106. package/dist/shared/{components-h0x2pj2y.js → components-6xtntksc.js} +17 -3
  107. package/dist/shared/{components-1asw2ph0.js → components-7g2q2ccp.js} +1 -1
  108. package/dist/shared/{components-kwxye0an.js → components-7wjkag2j.js} +4 -2
  109. package/dist/shared/{components-vfreweq3.js → components-83jn0raj.js} +1 -1
  110. package/dist/shared/{components-1bnf96sr.js → components-8e0fjgm9.js} +37 -9
  111. package/dist/shared/{components-j79a6jqa.js → components-8ybvpebx.js} +1 -1
  112. package/dist/shared/{components-me742146.js → components-a3brpprb.js} +1 -1
  113. package/dist/shared/{components-ev0ytbqb.js → components-abqfs5fh.js} +1 -1
  114. package/dist/shared/{components-r5q9gdh4.js → components-agjpst9b.js} +5 -5
  115. package/dist/shared/{components-6rtawx8y.js → components-e52xgvd9.js} +4 -4
  116. package/dist/shared/{components-0cpte6s1.js → components-eebf7f9c.js} +4 -3
  117. package/dist/shared/{components-xa9fvd5b.js → components-etgpz4zk.js} +1 -1
  118. package/dist/shared/{components-b9bj65j3.js → components-ex2xtqv7.js} +6 -6
  119. package/dist/shared/{components-n0gbyp5a.js → components-fjg4j430.js} +5 -5
  120. package/dist/shared/{components-280grw6q.js → components-fxw1122w.js} +1 -1
  121. package/dist/shared/{components-y8m64zdw.js → components-gnsvnejm.js} +1 -1
  122. package/dist/shared/{components-7mj5wsv3.js → components-gr82tz50.js} +21 -3
  123. package/dist/shared/{components-22h8dvt1.js → components-k25zw9g8.js} +3 -3
  124. package/dist/shared/{components-a1mwqxsv.js → components-k2gg1agj.js} +3 -3
  125. package/dist/shared/{components-wx1dcp2n.js → components-kz6ak6kj.js} +1 -1
  126. package/dist/shared/{components-yf2gtq68.js → components-m7d7r3r8.js} +8 -5
  127. package/dist/shared/{components-62510420.js → components-mvwf8ckh.js} +4 -4
  128. package/dist/shared/{components-2m2hg11x.js → components-nh05qz8b.js} +3 -3
  129. package/dist/shared/{components-77gxngmc.js → components-nred2e6g.js} +5 -5
  130. package/dist/shared/{components-3rvrdsa9.js → components-s2pnh8h9.js} +1 -1
  131. package/dist/shared/{components-xnkc892z.js → components-t4j0r23n.js} +1 -1
  132. package/dist/shared/{components-rgng034x.js → components-tcm3k3wj.js} +24 -3
  133. package/dist/shared/{components-p32aqk3q.js → components-vx286kq7.js} +110 -73
  134. package/dist/shared/{components-b2kjsn1s.js → components-vykcfb5r.js} +1 -1
  135. package/dist/shared/{components-hcftn5r8.js → components-x5v7e0fz.js} +3 -0
  136. package/dist/shared/{components-0h2mng6m.js → components-ycwhrqe1.js} +1 -1
  137. package/dist/shared/{components-chda6b23.js → components-ypxst3cn.js} +33 -4
  138. package/dist/shared/{components-14wzcym0.js → components-z87sanbc.js} +5 -5
  139. package/dist/shared/{components-fqsgd07c.js → components-zv63s4fh.js} +2 -2
  140. package/dist/styles.css +5 -1
  141. package/lib/inert.ts +15 -0
  142. package/lib/overlay.tsx +49 -5
  143. package/lib/slot.tsx +9 -3
  144. package/package.json +6 -1
  145. package/primitives/layout/resizable/index.tsx +35 -7
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import"./shared/components-bkwjvvkh.js";
19
19
  import {
20
20
  cn2
21
21
  } from "./shared/components-xnp09586.js";
22
- import"./shared/components-kwxye0an.js";
22
+ import"./shared/components-7wjkag2j.js";
23
23
  import"./shared/components-3hgk57s0.js";
24
24
  import {
25
25
  spring2,
@@ -30,7 +30,7 @@ import {
30
30
  } from "./shared/components-ywgqahmg.js";
31
31
  import {
32
32
  Button2
33
- } from "./shared/components-0h2mng6m.js";
33
+ } from "./shared/components-ycwhrqe1.js";
34
34
  import {
35
35
  useControllableState2
36
36
  } from "./shared/components-wwd093xg.js";
@@ -45,7 +45,7 @@ import"./shared/components-pva1wj1r.js";
45
45
  import {
46
46
  useMorph2
47
47
  } from "./shared/components-8pnvkrbw.js";
48
- import"./shared/components-rgng034x.js";
48
+ import"./shared/components-tcm3k3wj.js";
49
49
  import {
50
50
  MorphPart2
51
51
  } from "./shared/components-pa43g2r2.js";
@@ -76,12 +76,12 @@ import {
76
76
  DialogDescription2,
77
77
  DialogState2,
78
78
  Dialog2
79
- } from "./shared/components-b9bj65j3.js";
79
+ } from "./shared/components-ex2xtqv7.js";
80
80
  import {
81
81
  SheetContent2,
82
82
  SheetIndent2,
83
83
  Sheet2
84
- } from "./shared/components-62510420.js";
84
+ } from "./shared/components-mvwf8ckh.js";
85
85
  import {
86
86
  GooIndicator2
87
87
  } from "./shared/components-z0kz9rxj.js";
@@ -131,7 +131,8 @@ import {
131
131
  SidebarRail2,
132
132
  Sidebar2,
133
133
  SidebarContent2
134
- } from "./shared/components-nhmgr5xc.js";
134
+ } from "./shared/components-2v4mmw1s.js";
135
+ import"./shared/components-2myjk2zf.js";
135
136
  import"./shared/components-y09nr7fe.js";
136
137
  import {
137
138
  SizeProvider2,
@@ -145,15 +146,15 @@ import {
145
146
  TooltipTrigger2,
146
147
  TooltipContent2,
147
148
  Tooltip2
148
- } from "./shared/components-1bnf96sr.js";
149
+ } from "./shared/components-8e0fjgm9.js";
149
150
  import {
150
151
  ResizablePanel2,
151
152
  ResizableHandle2,
152
153
  Resizable2
153
- } from "./shared/components-7mj5wsv3.js";
154
+ } from "./shared/components-gr82tz50.js";
154
155
  import {
155
156
  DesktopShell2
156
- } from "./shared/components-yf2gtq68.js";
157
+ } from "./shared/components-m7d7r3r8.js";
157
158
  import {
158
159
  ShellCard2
159
160
  } from "./shared/components-hh1g7r3t.js";
@@ -184,12 +185,12 @@ import {
184
185
  DropdownTrigger2,
185
186
  DropdownContent2,
186
187
  DropdownSeparator2
187
- } from "./shared/components-s90v3jpr.js";
188
+ } from "./shared/components-01e24999.js";
188
189
  import {
189
190
  SidebarInsetTopbar2,
190
191
  SidebarSearchField2,
191
192
  SidebarApp2
192
- } from "./shared/components-14wzcym0.js";
193
+ } from "./shared/components-z87sanbc.js";
193
194
  import"./shared/components-j3q9kaps.js";
194
195
  import {
195
196
  CardGroup2,
@@ -206,7 +207,7 @@ import {
206
207
  CardEyebrow2,
207
208
  CardDivider2,
208
209
  Card2
209
- } from "./shared/components-y8m64zdw.js";
210
+ } from "./shared/components-gnsvnejm.js";
210
211
  import {
211
212
  Separator2
212
213
  } from "./shared/components-azrjnfxn.js";
@@ -219,14 +220,14 @@ import {
219
220
  } from "./shared/components-jw45ck66.js";
220
221
  import {
221
222
  Copy2
222
- } from "./shared/components-9z7bq8gn.js";
223
+ } from "./shared/components-1sbnbq6a.js";
223
224
  import {
224
225
  AccordionContent2,
225
226
  AccordionGroup2,
226
227
  Accordion2,
227
228
  AccordionItem2,
228
229
  AccordionTrigger2
229
- } from "./shared/components-b2kjsn1s.js";
230
+ } from "./shared/components-vykcfb5r.js";
230
231
  import {
231
232
  AvatarImage2,
232
233
  AvatarFallback2,
@@ -252,7 +253,7 @@ import {
252
253
  import {
253
254
  parseAnsi2,
254
255
  LogView2
255
- } from "./shared/components-3rvrdsa9.js";
256
+ } from "./shared/components-s2pnh8h9.js";
256
257
  import {
257
258
  Code2
258
259
  } from "./shared/components-y4gsk1jt.js";
@@ -291,19 +292,19 @@ import {
291
292
  import {
292
293
  CheckboxGroup2,
293
294
  Checkbox2
294
- } from "./shared/components-hcftn5r8.js";
295
+ } from "./shared/components-x5v7e0fz.js";
295
296
  import {
296
297
  ChoiceList2
297
298
  } from "./shared/components-czvraaw9.js";
298
299
  import {
299
300
  Slider2
300
- } from "./shared/components-p32aqk3q.js";
301
+ } from "./shared/components-vx286kq7.js";
301
302
  import {
302
303
  ColorTile2,
303
304
  ColorSwatch2,
304
305
  ColorPickerPopover2,
305
306
  ColorPicker2
306
- } from "./shared/components-2m2hg11x.js";
307
+ } from "./shared/components-nh05qz8b.js";
307
308
  import {
308
309
  parseColor2,
309
310
  buildParsed2
@@ -317,7 +318,7 @@ import {
317
318
  ComboboxItem2,
318
319
  ComboboxEmpty2,
319
320
  Combobox2
320
- } from "./shared/components-0cpte6s1.js";
321
+ } from "./shared/components-eebf7f9c.js";
321
322
  import"./shared/components-29ebea21.js";
322
323
  import"./shared/components-ta4e10mx.js";
323
324
  import {
@@ -333,24 +334,24 @@ import {
333
334
  InputAction2,
334
335
  InputGroup2
335
336
  } from "./shared/components-q7zk70tx.js";
336
- import"./shared/components-a1mwqxsv.js";
337
+ import"./shared/components-k2gg1agj.js";
337
338
  import"./shared/components-e7zxwja1.js";
338
339
  import"./shared/components-dm86y7b3.js";
339
340
  import {
340
341
  DatePicker2
341
- } from "./shared/components-vfreweq3.js";
342
+ } from "./shared/components-83jn0raj.js";
342
343
  import {
343
344
  DateRangePicker2
344
- } from "./shared/components-xa9fvd5b.js";
345
+ } from "./shared/components-etgpz4zk.js";
345
346
  import {
346
347
  DurationPicker2
347
- } from "./shared/components-w2at9ntm.js";
348
+ } from "./shared/components-27fatggq.js";
348
349
  import {
349
350
  MonthPicker2
350
- } from "./shared/components-280grw6q.js";
351
+ } from "./shared/components-fxw1122w.js";
351
352
  import {
352
353
  TimePicker2
353
- } from "./shared/components-wx1dcp2n.js";
354
+ } from "./shared/components-kz6ak6kj.js";
354
355
  import {
355
356
  EditableText2
356
357
  } from "./shared/components-m3vxpz2z.js";
@@ -360,7 +361,7 @@ import {
360
361
  FieldError2,
361
362
  FieldControl2,
362
363
  Field2
363
- } from "./shared/components-91mmbrw3.js";
364
+ } from "./shared/components-3sb31vw5.js";
364
365
  import {
365
366
  formatFileSize2,
366
367
  acceptsFile2,
@@ -370,17 +371,17 @@ import {
370
371
  import {
371
372
  FileRow2,
372
373
  FileDropzone2
373
- } from "./shared/components-xnkc892z.js";
374
+ } from "./shared/components-t4j0r23n.js";
374
375
  import {
375
376
  KeyValue2
376
- } from "./shared/components-1f3a7gmg.js";
377
+ } from "./shared/components-4fswe4kh.js";
377
378
  import {
378
379
  NumberInput2
379
380
  } from "./shared/components-9ca0c92a.js";
380
381
  import {
381
382
  RadioGroup2,
382
383
  Radio2
383
- } from "./shared/components-hz6armxa.js";
384
+ } from "./shared/components-2tw25pk6.js";
384
385
  import {
385
386
  CommandListRoot2,
386
387
  CommandShortcut2,
@@ -389,10 +390,10 @@ import {
389
390
  CommandTrigger2,
390
391
  CommandContent2,
391
392
  Command2
392
- } from "./shared/components-j79a6jqa.js";
393
+ } from "./shared/components-8ybvpebx.js";
393
394
  import {
394
395
  Search2
395
- } from "./shared/components-77gxngmc.js";
396
+ } from "./shared/components-nred2e6g.js";
396
397
  import"./shared/components-tcyz2tdn.js";
397
398
  import {
398
399
  SelectValue2,
@@ -403,21 +404,21 @@ import {
403
404
  SelectLabel2,
404
405
  SelectSeparator2,
405
406
  Select2
406
- } from "./shared/components-h0x2pj2y.js";
407
+ } from "./shared/components-6xtntksc.js";
407
408
  import {
408
409
  Switch2,
409
410
  SwitchGroup2
410
- } from "./shared/components-gsstwhtv.js";
411
+ } from "./shared/components-5vezp3e5.js";
411
412
  import {
412
413
  useAutosizeTextarea2
413
414
  } from "./shared/components-vpkh6j83.js";
414
415
  import {
415
416
  Textarea2
416
- } from "./shared/components-chda6b23.js";
417
+ } from "./shared/components-ypxst3cn.js";
417
418
  import {
418
419
  BreadcrumbItem2,
419
420
  Breadcrumb2
420
- } from "./shared/components-1asw2ph0.js";
421
+ } from "./shared/components-7g2q2ccp.js";
421
422
  import {
422
423
  NavigationMenuContent2,
423
424
  NavigationMenuIndicator2,
@@ -426,10 +427,10 @@ import {
426
427
  NavigationMenuList2,
427
428
  NavigationMenuTrigger2,
428
429
  NavigationMenu2
429
- } from "./shared/components-6rtawx8y.js";
430
+ } from "./shared/components-e52xgvd9.js";
430
431
  import {
431
432
  Pagination2
432
- } from "./shared/components-me742146.js";
433
+ } from "./shared/components-a3brpprb.js";
433
434
  import {
434
435
  TabItem2,
435
436
  TabsList2,
@@ -438,22 +439,22 @@ import {
438
439
  } from "./shared/components-1hga6pkn.js";
439
440
  import {
440
441
  Tree2
441
- } from "./shared/components-ee09xmkh.js";
442
+ } from "./shared/components-6g8a5nrs.js";
442
443
  import {
443
444
  AlertDialogContent2,
444
445
  AlertDialogAction2,
445
446
  AlertDialogCancel2,
446
447
  AlertDialog2
447
- } from "./shared/components-22h8dvt1.js";
448
+ } from "./shared/components-k25zw9g8.js";
448
449
  import {
449
450
  ContextMenuContent2,
450
451
  ContextMenu2,
451
452
  ContextMenuItem2
452
- } from "./shared/components-n0gbyp5a.js";
453
+ } from "./shared/components-fjg4j430.js";
453
454
  import {
454
455
  LightboxTrigger2,
455
456
  Lightbox2
456
- } from "./shared/components-twyj2y8c.js";
457
+ } from "./shared/components-3rt5c1qt.js";
457
458
  import {
458
459
  PopoverTrigger2,
459
460
  PopoverClose2,
@@ -461,19 +462,19 @@ import {
461
462
  PopoverTitle2,
462
463
  PopoverDescription2,
463
464
  Popover2
464
- } from "./shared/components-r5q9gdh4.js";
465
+ } from "./shared/components-agjpst9b.js";
465
466
  import {
466
467
  PreviewCardTrigger2,
467
468
  PreviewCardContent2,
468
469
  PreviewCard2
469
- } from "./shared/components-fmyvz4r2.js";
470
+ } from "./shared/components-2bq4ng4d.js";
470
471
  import {
471
472
  toast2,
472
473
  useToast2,
473
474
  ToastTrigger2,
474
475
  ToastClose2,
475
476
  Toast2
476
- } from "./shared/components-fqsgd07c.js";
477
+ } from "./shared/components-zv63s4fh.js";
477
478
  import {
478
479
  Skeleton2
479
480
  } from "./shared/components-s4x951hj.js";
@@ -491,10 +492,10 @@ import {
491
492
  } from "./shared/components-rzy6h7s4.js";
492
493
  import {
493
494
  Morph2
494
- } from "./shared/components-ev0ytbqb.js";
495
+ } from "./shared/components-abqfs5fh.js";
495
496
  import {
496
497
  Motion2
497
- } from "./shared/components-a1ms36qq.js";
498
+ } from "./shared/components-1f5624hb.js";
498
499
  export {
499
500
  Accordion2 as Accordion,
500
501
  AccordionContent2 as AccordionContent,
@@ -0,0 +1,7 @@
1
+ /** Spread onto an element to make it inert while `on`. */
2
+ declare function inertProps(on: boolean): {
3
+ inert: boolean;
4
+ } | {
5
+ inert?: undefined;
6
+ };
7
+ export { inertProps };
@@ -0,0 +1,6 @@
1
+ import {
2
+ inertProps2
3
+ } from "../shared/components-2myjk2zf.js";
4
+ export {
5
+ inertProps2 as inertProps
6
+ };
@@ -1,4 +1,5 @@
1
- import { ReactNode, RefObject as RefObject2 } from "react";
1
+ import { Popover } from "@base-ui/react/popover";
2
+ import { ComponentProps, ReactNode, RefObject as RefObject2 } from "react";
2
3
  import { RefObject } from "react";
3
4
  type MorphSide = "top" | "right" | "bottom" | "left";
4
5
  type MorphFrom = "trigger" | "pointer" | "center" | MorphSide | RefObject<HTMLElement | null>;
@@ -26,14 +27,6 @@ interface MorphOrigin {
26
27
  y: number;
27
28
  };
28
29
  }
29
- /** Base UI `sideOffset` that pulls the panel back over its anchor, edge to edge, on whichever side it lands. */
30
- declare function inPlaceOffset({ side, anchor }: {
31
- side: string;
32
- anchor: {
33
- width: number;
34
- height: number;
35
- };
36
- }): number;
37
30
  import { Context as Context_rri5bl } from "react";
38
31
  import { MutableRefObject as MutableRefObject_8z5kms2 } from "react";
39
32
  import { JSX as JSX_1kxb } from "react";
@@ -53,6 +46,21 @@ interface AnchorProps {
53
46
  /** Portal target. Defaults to the nearest `PortalContainer`, else the document body. */
54
47
  container?: HTMLElement | null;
55
48
  }
49
+ type Positioner = ComponentProps<typeof Popover.Positioner>;
50
+ /**
51
+ * The finer positioning props a content may add to `AnchorProps`, forwarded
52
+ * to Base UI's `Positioner` by `positionerProps`. Documented once.
53
+ */
54
+ interface CollisionProps {
55
+ /** Shift along the aligned edge in px, after `align`, or Base UI's function of side, align and sizes. Defaults to `0`. */
56
+ alignOffset?: Positioner["alignOffset"];
57
+ /** Space kept between the panel and the edge of its collision boundary, in px or per side. Defaults to `5`. */
58
+ collisionPadding?: Positioner["collisionPadding"];
59
+ /** The area the panel stays inside: an element, several, or a rect. Defaults to `'clipping-ancestors'`. */
60
+ collisionBoundary?: Positioner["collisionBoundary"];
61
+ /** Classes for the positioner, the element that carries the panel's place and stacking (a `z-index` over a host's own layers). */
62
+ positionerClassName?: string;
63
+ }
56
64
  /** What an overlay's parts read from its root. */
57
65
  interface OverlayState {
58
66
  open: boolean;
@@ -92,14 +100,13 @@ declare function useOverlay(part: string): OverlayState;
92
100
  * anchoring props over the overlay's defaults, pulled back over the trigger
93
101
  * when the panel opens in place. Spread them on the `Positioner`.
94
102
  */
95
- declare function positionerProps({ side, align, sideOffset, effect, hideSource }: AnchorProps & MorphProps, defaults: {
103
+ declare function positionerProps({ side, align, sideOffset, effect, hideSource, alignOffset, collisionPadding, collisionBoundary, positionerClassName }: AnchorProps & MorphProps & CollisionProps, defaults: {
96
104
  side: Side;
97
105
  align: Align;
98
106
  sideOffset: number;
99
- }): {
107
+ }): Pick<Positioner, "sideOffset" | "alignOffset" | "collisionPadding" | "collisionBoundary"> & {
100
108
  side: Side;
101
109
  align: Align;
102
- sideOffset: number | typeof inPlaceOffset;
103
110
  className: string;
104
111
  };
105
112
  type Element_12xgc = JSX_1kxb["Element"];
@@ -110,4 +117,4 @@ declare function PortalContainer({ value, children }: {
110
117
  }): Element_12xgc;
111
118
  /** The portal target: the content's own `container`, else the nearest `PortalContainer`, else the body (`undefined`). */
112
119
  declare function usePortalContainer(container?: HTMLElement | null): HTMLElement | undefined;
113
- export { Align, AnchorProps, OpenChangeDetails, OverlayContext, OverlayRootProps, OverlayState, PortalContainer, Side, positionerProps, useOverlay, useOverlayRoot, usePortalContainer };
120
+ export { Align, AnchorProps, CollisionProps, OpenChangeDetails, OverlayContext, OverlayRootProps, OverlayState, PortalContainer, Side, positionerProps, useOverlay, useOverlayRoot, usePortalContainer };
@@ -5,12 +5,13 @@ import {
5
5
  positionerProps2,
6
6
  PortalContainer2,
7
7
  usePortalContainer2
8
- } from "../shared/components-rgng034x.js";
8
+ } from "../shared/components-tcm3k3wj.js";
9
9
  import"../shared/components-8pnvkrbw.js";
10
10
  import"../shared/components-pva1wj1r.js";
11
11
  import"../shared/components-45r18egt.js";
12
12
  import"../shared/components-wwd093xg.js";
13
13
  import"../shared/components-tz0axc0f.js";
14
+ import"../shared/components-xnp09586.js";
14
15
  export {
15
16
  OverlayContext2 as OverlayContext,
16
17
  PortalContainer2 as PortalContainer,
@@ -4,14 +4,17 @@ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn } from "r
4
4
  import { PropsWithoutRef as PropsWithoutRef_yr589n } from "react";
5
5
  import { RefAttributes as RefAttributes_miuf56 } from "react";
6
6
  interface SlotProps extends ButtonHTMLAttributes<HTMLButtonElement> {
7
- /** The element that becomes the control, e.g. a Button. */
7
+ /** The element that becomes the control, e.g. a Button. `children` fill it when it has none of its own. */
8
8
  render?: ReactElement;
9
9
  /** Compose onto the single child instead. Defaults to `false`. */
10
10
  asChild?: boolean;
11
11
  /** Control content when there is no render element. */
12
12
  children?: ReactNode;
13
13
  }
14
- /** The element a Base UI part renders as: `render`, else `asChild`'s child, else none. */
14
+ /**
15
+ * The element a Base UI part renders as: `render`, else `asChild`'s child, else none. `children` fill
16
+ * a `render` element that has none of its own (`render={<button/>}` + children); its own children win.
17
+ */
15
18
  declare function slotRender(render: ReactElement | undefined, asChild: boolean | undefined, children: ReactNode): ReactElement<any, string | JSXElementConstructor_dt0ahf<any>> | undefined;
16
19
  /**
17
20
  * Wraps a Base UI trigger or close part so it takes `SlotProps`:
package/dist/lib/slot.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  resolveSlotTemplate2,
5
5
  slotElement2,
6
6
  cloneSlot2
7
- } from "../shared/components-kwxye0an.js";
7
+ } from "../shared/components-7wjkag2j.js";
8
8
  import"../shared/components-bkwjvvkh.js";
9
9
  import"../shared/components-xnp09586.js";
10
10
  export {
@@ -29,7 +29,7 @@ interface ResizableProps {
29
29
  direction?: ResizableDirection;
30
30
  /** Controlled panel sizes in percent, one per panel in order. Pair with `onSizesChange`. */
31
31
  sizes?: number[];
32
- /** Called with every panel's size whenever a handle moves. */
32
+ /** Called with every panel's size when a handle moves: on a drag's release, on each key and on a double-click. */
33
33
  onSizesChange?: (sizes: number[]) => void;
34
34
  /** Percent a handle moves per arrow key. Defaults to `5`. */
35
35
  step?: number;
@@ -50,7 +50,9 @@ interface ResizableProps {
50
50
  * its starting size. A collapsible panel snaps shut when dragged below half
51
51
  * its minimum. A drag follows the pointer; every other change of size (a
52
52
  * key, a reset, new controlled `sizes`, such as a toggle folding a pane)
53
- * glides there. Sizes work uncontrolled (each panel's `defaultSize`) or
53
+ * glides there. A drag writes the panels' sizes to the DOM and commits them
54
+ * (`onSizesChange`) on release, so it re-renders nothing on the way. Sizes
55
+ * work uncontrolled (each panel's `defaultSize`) or
54
56
  * controlled (`sizes` + `onSizesChange`). Groups nest: put a Resizable inside
55
57
  * a panel to split it the other way.
56
58
  *
@@ -3,7 +3,7 @@ import {
3
3
  ResizableHandle2,
4
4
  Resizable2,
5
5
  resizable_default
6
- } from "../../../shared/components-7mj5wsv3.js";
6
+ } from "../../../shared/components-gr82tz50.js";
7
7
  import"../../../shared/components-45r18egt.js";
8
8
  import"../../../shared/components-wwd093xg.js";
9
9
  import"../../../shared/components-tz0axc0f.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Morph2,
3
3
  morph_default
4
- } from "../../../shared/components-ev0ytbqb.js";
4
+ } from "../../../shared/components-abqfs5fh.js";
5
5
  import"../../../shared/components-wq9hrera.js";
6
6
  import {
7
7
  MorphPart2
8
8
  } from "../../../shared/components-pa43g2r2.js";
9
- import"../../../shared/components-0h2mng6m.js";
9
+ import"../../../shared/components-ycwhrqe1.js";
10
10
  import"../../../shared/components-ywgqahmg.js";
11
11
  import"../../../shared/components-3hgk57s0.js";
12
12
  import"../../../shared/components-8pnvkrbw.js";
13
13
  import"../../../shared/components-pva1wj1r.js";
14
- import"../../../shared/components-kwxye0an.js";
14
+ import"../../../shared/components-7wjkag2j.js";
15
15
  import"../../../shared/components-bkwjvvkh.js";
16
16
  import"../../../shared/components-45r18egt.js";
17
17
  import"../../../shared/components-wwd093xg.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Motion2
3
- } from "../../../shared/components-a1ms36qq.js";
4
- import"../../../shared/components-0h2mng6m.js";
3
+ } from "../../../shared/components-1f5624hb.js";
4
+ import"../../../shared/components-ycwhrqe1.js";
5
5
  import"../../../shared/components-ywgqahmg.js";
6
6
  import"../../../shared/components-3hgk57s0.js";
7
- import"../../../shared/components-kwxye0an.js";
7
+ import"../../../shared/components-7wjkag2j.js";
8
8
  import"../../../shared/components-bkwjvvkh.js";
9
9
  import {
10
10
  spring2,
@@ -27,7 +27,7 @@ import {
27
27
  useOverlay2,
28
28
  positionerProps2,
29
29
  usePortalContainer2
30
- } from "./components-rgng034x.js";
30
+ } from "./components-tcm3k3wj.js";
31
31
  import {
32
32
  POPUP_SHAPE2,
33
33
  popupScrollAreaClass2,
@@ -57,7 +57,7 @@ import {
57
57
  slotPart2,
58
58
  resolveSlotTemplate2,
59
59
  slotElement2
60
- } from "./components-kwxye0an.js";
60
+ } from "./components-7wjkag2j.js";
61
61
  import {
62
62
  useFluidHover2,
63
63
  useRegisterFluidHoverItem2
@@ -993,13 +993,32 @@ var DropdownSubTrigger2 = forwardRef5(({ openOnHover = true, delay, closeDelay,
993
993
  });
994
994
  });
995
995
  DropdownSubTrigger2.displayName = "DropdownSubTrigger";
996
- var DropdownSubContent2 = forwardRef5(({ side, align, sideOffset, effect, hideSource, className, ...props }, ref) => /* @__PURE__ */ jsx5(MenuPopup, {
996
+ var DropdownSubContent2 = forwardRef5(({
997
+ side,
998
+ align,
999
+ sideOffset,
1000
+ alignOffset = -4,
1001
+ collisionPadding,
1002
+ collisionBoundary,
1003
+ positionerClassName,
1004
+ effect,
1005
+ hideSource,
1006
+ className,
1007
+ ...props
1008
+ }, ref) => /* @__PURE__ */ jsx5(MenuPopup, {
997
1009
  ref,
998
1010
  part: "Dropdown.SubContent",
999
- positioner: {
1000
- ...positionerProps2({ side, align, sideOffset, effect, hideSource }, { side: "right", align: "start", sideOffset: 8 }),
1001
- alignOffset: -4
1002
- },
1011
+ positioner: positionerProps2({
1012
+ side,
1013
+ align,
1014
+ sideOffset,
1015
+ alignOffset,
1016
+ collisionPadding,
1017
+ collisionBoundary,
1018
+ positionerClassName,
1019
+ effect,
1020
+ hideSource
1021
+ }, { side: "right", align: "start", sideOffset: 8 }),
1003
1022
  focusFirstRow: false,
1004
1023
  effect,
1005
1024
  hideSource,
@@ -1113,7 +1132,15 @@ var Dropdown2 = forwardRef6(({
1113
1132
  });
1114
1133
  });
1115
1134
  Dropdown2.displayName = "Dropdown";
1116
- function DropdownMenu2({ children, open, defaultOpen, onOpenChange, disabled = false, size }) {
1135
+ function DropdownMenu2({
1136
+ children,
1137
+ open,
1138
+ defaultOpen,
1139
+ onOpenChange,
1140
+ disabled = false,
1141
+ modal = false,
1142
+ size
1143
+ }) {
1117
1144
  const root = useOverlayRoot2({ open, defaultOpen });
1118
1145
  return /* @__PURE__ */ jsx6(SizeScope2, {
1119
1146
  size,
@@ -1127,7 +1154,7 @@ function DropdownMenu2({ children, open, defaultOpen, onOpenChange, disabled = f
1127
1154
  root.onOpenChange(next, details);
1128
1155
  },
1129
1156
  disabled,
1130
- modal: false,
1157
+ modal,
1131
1158
  children
1132
1159
  })
1133
1160
  })
@@ -1135,10 +1162,32 @@ function DropdownMenu2({ children, open, defaultOpen, onOpenChange, disabled = f
1135
1162
  }
1136
1163
  DropdownMenu2.displayName = "DropdownMenu";
1137
1164
  var DropdownTrigger2 = slotPart2(Menu4.Trigger, "DropdownTrigger");
1138
- var DropdownContent2 = forwardRef6(({ side, align, sideOffset, effect, hideSource, className, ...props }, ref) => /* @__PURE__ */ jsx6(MenuPopup, {
1165
+ var DropdownContent2 = forwardRef6(({
1166
+ side,
1167
+ align,
1168
+ sideOffset,
1169
+ alignOffset,
1170
+ collisionPadding,
1171
+ collisionBoundary,
1172
+ positionerClassName,
1173
+ effect,
1174
+ hideSource,
1175
+ className,
1176
+ ...props
1177
+ }, ref) => /* @__PURE__ */ jsx6(MenuPopup, {
1139
1178
  ref,
1140
1179
  part: "Dropdown.Content",
1141
- positioner: positionerProps2({ side, align, sideOffset, effect, hideSource }, { side: "bottom", align: "start", sideOffset: 6 }),
1180
+ positioner: positionerProps2({
1181
+ side,
1182
+ align,
1183
+ sideOffset,
1184
+ alignOffset,
1185
+ collisionPadding,
1186
+ collisionBoundary,
1187
+ positionerClassName,
1188
+ effect,
1189
+ hideSource
1190
+ }, { side: "bottom", align: "start", sideOffset: 6 }),
1142
1191
  focusFirstRow: true,
1143
1192
  effect,
1144
1193
  hideSource,
@@ -8,7 +8,7 @@ import {
8
8
  } from "./components-45r18egt.js";
9
9
  import {
10
10
  button_default
11
- } from "./components-0h2mng6m.js";
11
+ } from "./components-ycwhrqe1.js";
12
12
  import {
13
13
  useControllableState2
14
14
  } from "./components-wwd093xg.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./components-nwa2a9tq.js";
36
36
  import {
37
37
  Tooltip2
38
- } from "./components-1bnf96sr.js";
38
+ } from "./components-8e0fjgm9.js";
39
39
 
40
40
  // components/actions/copy/index.tsx
41
41
  import { AnimatePresence, animate, motion, useMotionValue } from "motion/react";
@@ -16,7 +16,7 @@ import {
16
16
  columnsPopupClass,
17
17
  ColumnsPanel,
18
18
  PickerInput
19
- } from "./components-a1mwqxsv.js";
19
+ } from "./components-k2gg1agj.js";
20
20
  import {
21
21
  pad,
22
22
  minuteOptions