@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.
- package/blocks/desktop-shell/index.tsx +2 -1
- package/components/inputs/checkbox/index.tsx +5 -0
- package/components/inputs/combobox/index.tsx +9 -4
- package/components/inputs/radio/index.tsx +5 -0
- package/components/inputs/select/index.tsx +23 -3
- package/components/inputs/slider/comfortable.tsx +10 -4
- package/components/inputs/slider/compact.tsx +153 -71
- package/components/inputs/slider/examples.mdx +24 -0
- package/components/inputs/slider/geometry.ts +18 -6
- package/components/inputs/slider/index.tsx +30 -8
- package/components/inputs/slider/value-display.tsx +16 -9
- package/components/inputs/switch/index.tsx +5 -0
- package/components/inputs/textarea/examples.mdx +19 -0
- package/components/inputs/textarea/index.tsx +42 -5
- package/components/navigation/sidebar/sidebar-group.tsx +2 -1
- package/components/navigation/sidebar/sidebar-menu-sub.tsx +2 -1
- package/components/navigation/sidebar/sidebar-shell.tsx +2 -1
- package/components/navigation/tree/index.tsx +2 -1
- package/components/overlays/dropdown/index.tsx +50 -8
- package/components/overlays/dropdown/submenu.tsx +41 -10
- package/components/overlays/tooltip/examples.mdx +13 -0
- package/components/overlays/tooltip/index.tsx +58 -16
- package/dist/blocks/desktop-shell/index.js +10 -9
- package/dist/blocks/sidebar-app/index.js +11 -10
- package/dist/components/actions/button/index.js +2 -2
- package/dist/components/actions/copy/index.js +4 -4
- package/dist/components/containers/accordion/index.d.ts +1 -1
- package/dist/components/containers/accordion/index.js +2 -2
- package/dist/components/containers/card/index.js +3 -3
- package/dist/components/data-display/log-view/index.js +3 -3
- package/dist/components/inputs/checkbox/index.d.ts +2 -0
- package/dist/components/inputs/checkbox/index.js +1 -1
- package/dist/components/inputs/color-picker/index.js +5 -5
- package/dist/components/inputs/combobox/index.d.ts +1 -1
- package/dist/components/inputs/combobox/index.js +2 -2
- package/dist/components/inputs/date-time/date-picker/index.js +7 -7
- package/dist/components/inputs/date-time/date-range-picker/index.js +7 -7
- package/dist/components/inputs/date-time/duration-picker/index.js +7 -7
- package/dist/components/inputs/date-time/month-picker/index.js +7 -7
- package/dist/components/inputs/date-time/time-picker/index.js +7 -7
- package/dist/components/inputs/field/index.js +2 -2
- package/dist/components/inputs/file-dropzone/index.js +3 -3
- package/dist/components/inputs/key-value/index.js +3 -3
- package/dist/components/inputs/radio/index.d.ts +2 -0
- package/dist/components/inputs/radio/index.js +1 -1
- package/dist/components/inputs/search/index.js +6 -6
- package/dist/components/inputs/select/index.d.ts +22 -4
- package/dist/components/inputs/select/index.js +3 -3
- package/dist/components/inputs/slider/index.d.ts +12 -3
- package/dist/components/inputs/slider/index.js +1 -1
- package/dist/components/inputs/switch/index.d.ts +2 -0
- package/dist/components/inputs/switch/index.js +1 -1
- package/dist/components/inputs/textarea/index.d.ts +8 -1
- package/dist/components/inputs/textarea/index.js +1 -1
- package/dist/components/navigation/breadcrumb/index.js +4 -4
- package/dist/components/navigation/navigation-menu/index.js +2 -2
- package/dist/components/navigation/pagination/index.js +3 -3
- package/dist/components/navigation/sidebar/index.js +8 -7
- package/dist/components/navigation/tree/index.js +2 -1
- package/dist/components/overlays/alert-dialog/index.d.ts +3 -3
- package/dist/components/overlays/alert-dialog/index.js +5 -5
- package/dist/components/overlays/command/index.d.ts +1 -1
- package/dist/components/overlays/command/index.js +5 -5
- package/dist/components/overlays/context-menu/index.d.ts +20 -1
- package/dist/components/overlays/context-menu/index.js +4 -4
- package/dist/components/overlays/dialog/index.d.ts +3 -3
- package/dist/components/overlays/dialog/index.js +4 -4
- package/dist/components/overlays/dropdown/index.d.ts +30 -8
- package/dist/components/overlays/dropdown/index.js +3 -3
- package/dist/components/overlays/lightbox/index.js +3 -3
- package/dist/components/overlays/popover/index.d.ts +6 -6
- package/dist/components/overlays/popover/index.js +3 -3
- package/dist/components/overlays/preview-card/index.js +2 -2
- package/dist/components/overlays/sheet/index.d.ts +3 -3
- package/dist/components/overlays/sheet/index.js +5 -5
- package/dist/components/overlays/toast/index.d.ts +1 -1
- package/dist/components/overlays/toast/index.js +3 -3
- package/dist/components/overlays/tooltip/index.d.ts +35 -10
- package/dist/components/overlays/tooltip/index.js +3 -3
- package/dist/docs/index.js +9 -8
- package/dist/index.d.ts +92 -38
- package/dist/index.js +47 -46
- package/dist/lib/inert.d.ts +7 -0
- package/dist/lib/inert.js +6 -0
- package/dist/lib/overlay.d.ts +20 -13
- package/dist/lib/overlay.js +2 -1
- package/dist/lib/slot.d.ts +5 -2
- package/dist/lib/slot.js +1 -1
- package/dist/primitives/layout/resizable/index.d.ts +4 -2
- package/dist/primitives/layout/resizable/index.js +1 -1
- package/dist/primitives/systems/morph/index.js +3 -3
- package/dist/primitives/systems/motion/index.js +3 -3
- package/dist/shared/{components-s90v3jpr.js → components-01e24999.js} +60 -11
- package/dist/shared/{components-a1ms36qq.js → components-1f5624hb.js} +1 -1
- package/dist/shared/{components-9z7bq8gn.js → components-1sbnbq6a.js} +1 -1
- package/dist/shared/{components-w2at9ntm.js → components-27fatggq.js} +1 -1
- package/dist/shared/{components-fmyvz4r2.js → components-2bq4ng4d.js} +4 -4
- package/dist/shared/components-2myjk2zf.js +8 -0
- package/dist/shared/{components-hz6armxa.js → components-2tw25pk6.js} +3 -0
- package/dist/shared/{components-nhmgr5xc.js → components-2v4mmw1s.js} +10 -7
- package/dist/shared/{components-twyj2y8c.js → components-3rt5c1qt.js} +1 -1
- package/dist/shared/{components-91mmbrw3.js → components-3sb31vw5.js} +1 -1
- package/dist/shared/{components-1f3a7gmg.js → components-4fswe4kh.js} +1 -1
- package/dist/shared/{components-gsstwhtv.js → components-5vezp3e5.js} +3 -0
- package/dist/shared/{components-ee09xmkh.js → components-6g8a5nrs.js} +4 -1
- package/dist/shared/{components-h0x2pj2y.js → components-6xtntksc.js} +17 -3
- package/dist/shared/{components-1asw2ph0.js → components-7g2q2ccp.js} +1 -1
- package/dist/shared/{components-kwxye0an.js → components-7wjkag2j.js} +4 -2
- package/dist/shared/{components-vfreweq3.js → components-83jn0raj.js} +1 -1
- package/dist/shared/{components-1bnf96sr.js → components-8e0fjgm9.js} +37 -9
- package/dist/shared/{components-j79a6jqa.js → components-8ybvpebx.js} +1 -1
- package/dist/shared/{components-me742146.js → components-a3brpprb.js} +1 -1
- package/dist/shared/{components-ev0ytbqb.js → components-abqfs5fh.js} +1 -1
- package/dist/shared/{components-r5q9gdh4.js → components-agjpst9b.js} +5 -5
- package/dist/shared/{components-6rtawx8y.js → components-e52xgvd9.js} +4 -4
- package/dist/shared/{components-0cpte6s1.js → components-eebf7f9c.js} +4 -3
- package/dist/shared/{components-xa9fvd5b.js → components-etgpz4zk.js} +1 -1
- package/dist/shared/{components-b9bj65j3.js → components-ex2xtqv7.js} +6 -6
- package/dist/shared/{components-n0gbyp5a.js → components-fjg4j430.js} +5 -5
- package/dist/shared/{components-280grw6q.js → components-fxw1122w.js} +1 -1
- package/dist/shared/{components-y8m64zdw.js → components-gnsvnejm.js} +1 -1
- package/dist/shared/{components-7mj5wsv3.js → components-gr82tz50.js} +21 -3
- package/dist/shared/{components-22h8dvt1.js → components-k25zw9g8.js} +3 -3
- package/dist/shared/{components-a1mwqxsv.js → components-k2gg1agj.js} +3 -3
- package/dist/shared/{components-wx1dcp2n.js → components-kz6ak6kj.js} +1 -1
- package/dist/shared/{components-yf2gtq68.js → components-m7d7r3r8.js} +8 -5
- package/dist/shared/{components-62510420.js → components-mvwf8ckh.js} +4 -4
- package/dist/shared/{components-2m2hg11x.js → components-nh05qz8b.js} +3 -3
- package/dist/shared/{components-77gxngmc.js → components-nred2e6g.js} +5 -5
- package/dist/shared/{components-3rvrdsa9.js → components-s2pnh8h9.js} +1 -1
- package/dist/shared/{components-xnkc892z.js → components-t4j0r23n.js} +1 -1
- package/dist/shared/{components-rgng034x.js → components-tcm3k3wj.js} +24 -3
- package/dist/shared/{components-p32aqk3q.js → components-vx286kq7.js} +110 -73
- package/dist/shared/{components-b2kjsn1s.js → components-vykcfb5r.js} +1 -1
- package/dist/shared/{components-hcftn5r8.js → components-x5v7e0fz.js} +3 -0
- package/dist/shared/{components-0h2mng6m.js → components-ycwhrqe1.js} +1 -1
- package/dist/shared/{components-chda6b23.js → components-ypxst3cn.js} +33 -4
- package/dist/shared/{components-14wzcym0.js → components-z87sanbc.js} +5 -5
- package/dist/shared/{components-fqsgd07c.js → components-zv63s4fh.js} +2 -2
- package/dist/styles.css +5 -1
- package/lib/inert.ts +15 -0
- package/lib/overlay.tsx +49 -5
- package/lib/slot.tsx +9 -3
- package/package.json +6 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
79
|
+
} from "./shared/components-ex2xtqv7.js";
|
|
80
80
|
import {
|
|
81
81
|
SheetContent2,
|
|
82
82
|
SheetIndent2,
|
|
83
83
|
Sheet2
|
|
84
|
-
} from "./shared/components-
|
|
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-
|
|
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-
|
|
149
|
+
} from "./shared/components-8e0fjgm9.js";
|
|
149
150
|
import {
|
|
150
151
|
ResizablePanel2,
|
|
151
152
|
ResizableHandle2,
|
|
152
153
|
Resizable2
|
|
153
|
-
} from "./shared/components-
|
|
154
|
+
} from "./shared/components-gr82tz50.js";
|
|
154
155
|
import {
|
|
155
156
|
DesktopShell2
|
|
156
|
-
} from "./shared/components-
|
|
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-
|
|
188
|
+
} from "./shared/components-01e24999.js";
|
|
188
189
|
import {
|
|
189
190
|
SidebarInsetTopbar2,
|
|
190
191
|
SidebarSearchField2,
|
|
191
192
|
SidebarApp2
|
|
192
|
-
} from "./shared/components-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
342
|
+
} from "./shared/components-83jn0raj.js";
|
|
342
343
|
import {
|
|
343
344
|
DateRangePicker2
|
|
344
|
-
} from "./shared/components-
|
|
345
|
+
} from "./shared/components-etgpz4zk.js";
|
|
345
346
|
import {
|
|
346
347
|
DurationPicker2
|
|
347
|
-
} from "./shared/components-
|
|
348
|
+
} from "./shared/components-27fatggq.js";
|
|
348
349
|
import {
|
|
349
350
|
MonthPicker2
|
|
350
|
-
} from "./shared/components-
|
|
351
|
+
} from "./shared/components-fxw1122w.js";
|
|
351
352
|
import {
|
|
352
353
|
TimePicker2
|
|
353
|
-
} from "./shared/components-
|
|
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-
|
|
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-
|
|
374
|
+
} from "./shared/components-t4j0r23n.js";
|
|
374
375
|
import {
|
|
375
376
|
KeyValue2
|
|
376
|
-
} from "./shared/components-
|
|
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-
|
|
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-
|
|
393
|
+
} from "./shared/components-8ybvpebx.js";
|
|
393
394
|
import {
|
|
394
395
|
Search2
|
|
395
|
-
} from "./shared/components-
|
|
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-
|
|
407
|
+
} from "./shared/components-6xtntksc.js";
|
|
407
408
|
import {
|
|
408
409
|
Switch2,
|
|
409
410
|
SwitchGroup2
|
|
410
|
-
} from "./shared/components-
|
|
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-
|
|
417
|
+
} from "./shared/components-ypxst3cn.js";
|
|
417
418
|
import {
|
|
418
419
|
BreadcrumbItem2,
|
|
419
420
|
Breadcrumb2
|
|
420
|
-
} from "./shared/components-
|
|
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-
|
|
430
|
+
} from "./shared/components-e52xgvd9.js";
|
|
430
431
|
import {
|
|
431
432
|
Pagination2
|
|
432
|
-
} from "./shared/components-
|
|
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-
|
|
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-
|
|
448
|
+
} from "./shared/components-k25zw9g8.js";
|
|
448
449
|
import {
|
|
449
450
|
ContextMenuContent2,
|
|
450
451
|
ContextMenu2,
|
|
451
452
|
ContextMenuItem2
|
|
452
|
-
} from "./shared/components-
|
|
453
|
+
} from "./shared/components-fjg4j430.js";
|
|
453
454
|
import {
|
|
454
455
|
LightboxTrigger2,
|
|
455
456
|
Lightbox2
|
|
456
|
-
} from "./shared/components-
|
|
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-
|
|
465
|
+
} from "./shared/components-agjpst9b.js";
|
|
465
466
|
import {
|
|
466
467
|
PreviewCardTrigger2,
|
|
467
468
|
PreviewCardContent2,
|
|
468
469
|
PreviewCard2
|
|
469
|
-
} from "./shared/components-
|
|
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-
|
|
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-
|
|
495
|
+
} from "./shared/components-abqfs5fh.js";
|
|
495
496
|
import {
|
|
496
497
|
Motion2
|
|
497
|
-
} from "./shared/components-
|
|
498
|
+
} from "./shared/components-1f5624hb.js";
|
|
498
499
|
export {
|
|
499
500
|
Accordion2 as Accordion,
|
|
500
501
|
AccordionContent2 as AccordionContent,
|
package/dist/lib/overlay.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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 };
|
package/dist/lib/overlay.js
CHANGED
|
@@ -5,12 +5,13 @@ import {
|
|
|
5
5
|
positionerProps2,
|
|
6
6
|
PortalContainer2,
|
|
7
7
|
usePortalContainer2
|
|
8
|
-
} from "../shared/components-
|
|
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,
|
package/dist/lib/slot.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
@@ -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
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import"../../../shared/components-
|
|
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-
|
|
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-
|
|
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-
|
|
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(({
|
|
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
|
-
|
|
1001
|
-
|
|
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({
|
|
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
|
|
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(({
|
|
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({
|
|
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,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./components-nwa2a9tq.js";
|
|
36
36
|
import {
|
|
37
37
|
Tooltip2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-8e0fjgm9.js";
|
|
39
39
|
|
|
40
40
|
// components/actions/copy/index.tsx
|
|
41
41
|
import { AnimatePresence, animate, motion, useMotionValue } from "motion/react";
|