@justanarthur/modo-ui 2.9.0 → 2.10.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/README.md +1 -0
- package/dist/blocks/desktop-shell/index.js +23 -23
- package/dist/blocks/shell-card/index.js +3 -3
- package/dist/blocks/sidebar-app/index.js +33 -33
- package/dist/components/actions/button/index.js +3 -3
- package/dist/components/actions/button-group/index.js +23 -23
- package/dist/components/actions/copy/index.js +8 -8
- package/dist/components/containers/accordion/index.js +10 -10
- package/dist/components/containers/card/index.js +12 -12
- package/dist/components/data-display/avatar/index.js +4 -4
- package/dist/components/data-display/badge/index.js +3 -3
- package/dist/components/data-display/diff/index.js +4 -4
- package/dist/components/data-display/log-view/index.js +7 -7
- package/dist/components/data-display/markdown/index.js +11 -11
- package/dist/components/data-display/table/index.js +5 -5
- package/dist/components/feedback/empty-state/index.js +3 -3
- package/dist/components/feedback/meter/index.js +2 -2
- package/dist/components/feedback/progress/index.js +2 -2
- package/dist/components/feedback/status-dot/index.js +2 -2
- package/dist/components/inputs/checkbox/index.js +7 -7
- package/dist/components/inputs/choice-list/index.js +4 -4
- package/dist/components/inputs/color-picker/index.js +16 -16
- package/dist/components/inputs/combobox/index.js +15 -15
- package/dist/components/inputs/date-time/calendar/index.js +5 -5
- package/dist/components/inputs/date-time/date-picker/index.js +23 -23
- package/dist/components/inputs/date-time/date-range-picker/index.js +23 -23
- package/dist/components/inputs/date-time/duration-picker/index.js +22 -22
- package/dist/components/inputs/date-time/month-picker/index.js +21 -21
- package/dist/components/inputs/date-time/time-picker/index.js +22 -22
- package/dist/components/inputs/editable-text/index.js +4 -4
- package/dist/components/inputs/field/index.js +5 -5
- package/dist/components/inputs/file-dropzone/index.js +8 -8
- package/dist/components/inputs/input/index.js +6 -6
- package/dist/components/inputs/key-value/index.js +13 -13
- package/dist/components/inputs/number-input/index.js +8 -8
- package/dist/components/inputs/radio/index.js +5 -5
- package/dist/components/inputs/search/index.js +18 -18
- package/dist/components/inputs/select/index.js +16 -16
- package/dist/components/inputs/slider/index.js +4 -4
- package/dist/components/inputs/switch/index.js +5 -5
- package/dist/components/inputs/textarea/index.js +5 -5
- package/dist/components/navigation/breadcrumb/index.js +20 -20
- package/dist/components/navigation/navigation-menu/index.js +11 -11
- package/dist/components/navigation/pagination/index.js +14 -14
- package/dist/components/navigation/sidebar/index.js +21 -21
- package/dist/components/navigation/tabs/index.js +6 -6
- package/dist/components/navigation/tree/index.js +5 -5
- package/dist/components/overlays/alert-dialog/index.js +12 -12
- package/dist/components/overlays/command/index.js +16 -16
- package/dist/components/overlays/context-menu/index.js +20 -20
- package/dist/components/overlays/dialog/index.js +11 -11
- package/dist/components/overlays/dropdown/index.js +19 -19
- package/dist/components/overlays/lightbox/index.js +9 -9
- package/dist/components/overlays/popover/index.js +6 -6
- package/dist/components/overlays/preview-card/index.js +6 -6
- package/dist/components/overlays/sheet/index.js +12 -12
- package/dist/components/overlays/toast/index.js +8 -8
- package/dist/components/overlays/tooltip/index.js +3 -3
- package/dist/docs/index.d.ts +10 -2
- package/dist/docs/index.js +107 -12
- package/dist/index.js +72 -72
- package/dist/lib/field-box.js +3 -3
- package/dist/lib/overlay.js +2 -2
- package/dist/lib/popup-rows.js +2 -2
- package/dist/lib/popup-surface.js +3 -3
- package/dist/lib/scroll-column.js +3 -3
- package/dist/primitives/content/code/index.js +3 -3
- package/dist/primitives/content/skeleton/index.js +3 -3
- package/dist/primitives/layout/resizable/index.js +2 -2
- package/dist/primitives/layout/sortable/index.js +5 -5
- package/dist/primitives/systems/craft/index.js +4 -4
- package/dist/primitives/systems/fluid-hover/index.js +2 -2
- package/dist/primitives/systems/morph/index.js +8 -8
- package/dist/primitives/systems/motion/index.js +5 -5
- package/dist/shared/{components-d2g9eqvc.js → components-0v4jxw7z.js} +2 -2
- package/dist/shared/{components-kakwfp1e.js → components-1f5624hb.js} +1 -1
- package/dist/shared/{components-4e75p7kh.js → components-1qw8hqwq.js} +2 -2
- package/dist/shared/{components-vv9m9h0q.js → components-2e77rzb8.js} +1 -1
- package/dist/shared/{components-dz05031c.js → components-3qcgeay1.js} +2 -2
- package/dist/shared/{components-n9qea1d1.js → components-3rt5c1qt.js} +1 -1
- package/dist/shared/{components-hf63wka1.js → components-3sb31vw5.js} +1 -1
- package/dist/shared/{components-dw1s0b46.js → components-4fay97sm.js} +2 -2
- package/dist/shared/{components-zfntvdd3.js → components-4fhjk3jz.js} +2 -2
- package/dist/shared/{components-gmmht6k5.js → components-7rn454aq.js} +1 -1
- package/dist/shared/{components-c5p6yy1m.js → components-8m5e493q.js} +1 -1
- package/dist/shared/{components-xe82mrwa.js → components-8swhfkqn.js} +1 -1
- package/dist/shared/{components-vhq03vx2.js → components-94vd4ck1.js} +3 -3
- package/dist/shared/{components-0vhacjrk.js → components-9am5511q.js} +3 -3
- package/dist/shared/{components-m78c04dv.js → components-9c3m65ft.js} +3 -3
- package/dist/shared/{components-8kkkrf36.js → components-9yrajpy0.js} +2 -2
- package/dist/shared/{components-1ck8ct1k.js → components-a8bcq2yc.js} +4 -4
- package/dist/shared/{components-4qfzzdvj.js → components-abqfs5fh.js} +1 -1
- package/dist/shared/{components-wvxkfhdc.js → components-ac0x7zpq.js} +3 -3
- package/dist/shared/{components-fekj7940.js → components-af44r4y9.js} +1 -1
- package/dist/shared/{components-mpeg6ca5.js → components-bkg1k36x.js} +3 -3
- package/dist/shared/{components-crjcbqrc.js → components-br6t88cb.js} +3 -3
- package/dist/shared/{components-pj564a3b.js → components-d4gkhy26.js} +1 -1
- package/dist/shared/{components-fcgk55r4.js → components-dk328yn5.js} +4 -4
- package/dist/shared/{components-f69fp3t5.js → components-faym1xm6.js} +4 -4
- package/dist/shared/{components-kek98pf2.js → components-fnvkq52e.js} +5 -5
- package/dist/shared/{components-1t36jzn1.js → components-fpgfs01m.js} +1 -1
- package/dist/shared/{components-ee3zdrza.js → components-ftvy33w9.js} +1 -1
- package/dist/shared/{components-7phx24n6.js → components-fzmjcn38.js} +1 -1
- package/dist/shared/{components-z3wpmrpm.js → components-gd8gmr6w.js} +1 -1
- package/dist/shared/{components-ad7h5kmx.js → components-gzve0nkp.js} +7 -7
- package/dist/shared/{components-y84j8rjq.js → components-hjk6dwsp.js} +2 -2
- package/dist/shared/{components-mcxrkm27.js → components-mb80a9wg.js} +2 -2
- package/dist/shared/{components-wtvf17hc.js → components-qrtcc8aw.js} +4 -4
- package/dist/shared/{components-1dn3m7pk.js → components-rr3fa4e5.js} +2 -2
- package/dist/shared/{components-wb1a41ry.js → components-s0c8gngv.js} +2 -2
- package/dist/shared/{components-1zmyane5.js → components-s2pnh8h9.js} +1 -1
- package/dist/shared/{components-zzhq9dqb.js → components-t4j0r23n.js} +3 -3
- package/dist/shared/{components-rtbme03d.js → components-whfr55xn.js} +6 -6
- package/dist/shared/{components-z6nq4z0y.js → components-y9se9mx5.js} +3 -3
- package/dist/shared/{components-sas7m9kx.js → components-yfx0skxc.js} +2 -2
- package/dist/shared/{components-aa77h13m.js → components-z6wx8fzj.js} +2 -2
- package/dist/shared/{components-4xwf317r.js → components-zjeh9zk2.js} +2 -2
- package/dist/shared/{components-gpbavh9r.js → components-zv63s4fh.js} +1 -1
- package/dist/styles.css +1 -1
- package/docs/chrome.css +31 -0
- package/docs/chrome.tsx +83 -0
- package/docs/index.ts +1 -1
- package/package.json +2 -2
- /package/dist/shared/{components-a8bwyrxf.js → components-1hb27y2e.js} +0 -0
- /package/dist/shared/{components-ytqnnpab.js → components-1ztgy933.js} +0 -0
- /package/dist/shared/{components-jt66rs4y.js → components-3fg6vabb.js} +0 -0
- /package/dist/shared/{components-c2whzzwm.js → components-4m9stj7d.js} +0 -0
- /package/dist/shared/{components-wkszeber.js → components-4t2cjav8.js} +0 -0
- /package/dist/shared/{components-36x1fh6f.js → components-5xs8pkkj.js} +0 -0
- /package/dist/shared/{components-0qq4624z.js → components-60tf8tfa.js} +0 -0
- /package/dist/shared/{components-w3sey99z.js → components-895m1f3s.js} +0 -0
- /package/dist/shared/{components-w82bvqz6.js → components-8nnhzeb3.js} +0 -0
- /package/dist/shared/{components-gbcv8gwc.js → components-92mvpt9h.js} +0 -0
- /package/dist/shared/{components-485sbcf9.js → components-arg4h26d.js} +0 -0
- /package/dist/shared/{components-v2jc17ge.js → components-dx8f797z.js} +0 -0
- /package/dist/shared/{components-ez2psjey.js → components-fbs2602j.js} +0 -0
- /package/dist/shared/{components-jh0g2xr9.js → components-ft5dgjg6.js} +0 -0
- /package/dist/shared/{components-abm5e6pc.js → components-fymenepq.js} +0 -0
- /package/dist/shared/{components-q0qv0fen.js → components-hh1g7r3t.js} +0 -0
- /package/dist/shared/{components-4twh6d53.js → components-jw45ck66.js} +0 -0
- /package/dist/shared/{components-yb3rnzsc.js → components-knryyjme.js} +0 -0
- /package/dist/shared/{components-46zfd71x.js → components-nmbcfwx8.js} +0 -0
- /package/dist/shared/{components-a11ssex6.js → components-nxqrw789.js} +0 -0
- /package/dist/shared/{components-rkcqr15c.js → components-q0hs5rqn.js} +0 -0
- /package/dist/shared/{components-9mgb07je.js → components-qqm2y2cx.js} +0 -0
- /package/dist/shared/{components-s3ey5xrk.js → components-s4x951hj.js} +0 -0
- /package/dist/shared/{components-h9rgvt1w.js → components-swh0v27s.js} +0 -0
- /package/dist/shared/{components-kvbh10e4.js → components-vcmky8ns.js} +0 -0
- /package/dist/shared/{components-rtkrpv3p.js → components-ycwhrqe1.js} +0 -0
- /package/dist/shared/{components-kq3s7p1d.js → components-ymq8tbq9.js} +0 -0
- /package/dist/shared/{components-0mmjd6dt.js → components-zckgawt6.js} +0 -0
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./components-nwa2a9tq.js";
|
|
36
36
|
import {
|
|
37
37
|
Tooltip2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-7rn454aq.js";
|
|
39
39
|
|
|
40
40
|
// components/actions/copy/index.tsx
|
|
41
41
|
import { AnimatePresence, animate, motion, useMotionValue } from "motion/react";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useFieldState2,
|
|
14
14
|
useFieldBox2,
|
|
15
15
|
focusControlOnPress2
|
|
16
|
-
} from "./components-
|
|
16
|
+
} from "./components-1ztgy933.js";
|
|
17
17
|
import {
|
|
18
18
|
useIcon2
|
|
19
19
|
} from "./components-jnhpgpfk.js";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
useOverlayRoot2,
|
|
29
29
|
useOverlay2,
|
|
30
30
|
positionerProps2
|
|
31
|
-
} from "./components-
|
|
31
|
+
} from "./components-ft5dgjg6.js";
|
|
32
32
|
import {
|
|
33
33
|
PopupSurface2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-nxqrw789.js";
|
|
35
35
|
import {
|
|
36
36
|
dividedColumns2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-zckgawt6.js";
|
|
38
38
|
import {
|
|
39
39
|
useIsMobile2
|
|
40
40
|
} from "./components-8wp8d8q1.js";
|
|
@@ -43,15 +43,15 @@ import {
|
|
|
43
43
|
} from "./components-nz14rwtd.js";
|
|
44
44
|
import {
|
|
45
45
|
button_default
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-ycwhrqe1.js";
|
|
47
47
|
import {
|
|
48
48
|
sheet_default
|
|
49
|
-
} from "./components-
|
|
49
|
+
} from "./components-ac0x7zpq.js";
|
|
50
50
|
import {
|
|
51
51
|
InputAdornment2,
|
|
52
52
|
InputAction2,
|
|
53
53
|
input_default
|
|
54
|
-
} from "./components-
|
|
54
|
+
} from "./components-af44r4y9.js";
|
|
55
55
|
|
|
56
56
|
// components/inputs/date-time/picker-shell.tsx
|
|
57
57
|
import { Popover } from "@base-ui/react/popover";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./components-7wjkag2j.js";
|
|
6
6
|
import {
|
|
7
7
|
button_default
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-ycwhrqe1.js";
|
|
9
9
|
import {
|
|
10
10
|
DialogTrigger2,
|
|
11
11
|
DialogClose2,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
DialogTitle2,
|
|
16
16
|
DialogDescription2,
|
|
17
17
|
DialogState2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-br6t88cb.js";
|
|
19
19
|
|
|
20
20
|
// components/overlays/alert-dialog/index.tsx
|
|
21
21
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "./components-nz14rwtd.js";
|
|
18
18
|
import {
|
|
19
19
|
button_default
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-ycwhrqe1.js";
|
|
21
21
|
import {
|
|
22
22
|
InputAction2,
|
|
23
23
|
input_default
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-af44r4y9.js";
|
|
25
25
|
|
|
26
26
|
// components/inputs/key-value/index.tsx
|
|
27
27
|
import { useRef, useState } from "react";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./components-xnp09586.js";
|
|
17
17
|
import {
|
|
18
18
|
FieldStateContext2
|
|
19
|
-
} from "./components-
|
|
19
|
+
} from "./components-1ztgy933.js";
|
|
20
20
|
import {
|
|
21
21
|
useMergeRefs2
|
|
22
22
|
} from "./components-bkwjvvkh.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./components-wwd093xg.js";
|
|
26
26
|
import {
|
|
27
27
|
calendar_default
|
|
28
|
-
} from "./components-
|
|
28
|
+
} from "./components-8m5e493q.js";
|
|
29
29
|
import {
|
|
30
30
|
readDateValue,
|
|
31
31
|
writeDateValue,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
invalidOf,
|
|
38
38
|
PickerShell,
|
|
39
39
|
PickerInput
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-gzve0nkp.js";
|
|
41
41
|
import {
|
|
42
42
|
TimeColumns
|
|
43
|
-
} from "./components-
|
|
43
|
+
} from "./components-d4gkhy26.js";
|
|
44
44
|
|
|
45
45
|
// components/inputs/date-time/date-range-picker/index.tsx
|
|
46
46
|
import { format, set } from "date-fns";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
} from "./components-nz14rwtd.js";
|
|
18
18
|
import {
|
|
19
19
|
dropdown_default
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-94vd4ck1.js";
|
|
21
21
|
import {
|
|
22
22
|
button_default
|
|
23
|
-
} from "./components-
|
|
23
|
+
} from "./components-ycwhrqe1.js";
|
|
24
24
|
|
|
25
25
|
// components/actions/button-group/index.tsx
|
|
26
26
|
import { createContext, forwardRef, useContext } from "react";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./components-xnp09586.js";
|
|
9
9
|
import {
|
|
10
10
|
Code2
|
|
11
|
-
} from "./components-
|
|
11
|
+
} from "./components-60tf8tfa.js";
|
|
12
12
|
import {
|
|
13
13
|
table_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-dx8f797z.js";
|
|
15
15
|
|
|
16
16
|
// components/data-display/markdown/index.tsx
|
|
17
17
|
import { Lexer } from "marked";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./components-6h5qg9rs.js";
|
|
24
24
|
import {
|
|
25
25
|
button_default
|
|
26
|
-
} from "./components-
|
|
26
|
+
} from "./components-ycwhrqe1.js";
|
|
27
27
|
|
|
28
28
|
// components/data-display/log-view/index.tsx
|
|
29
29
|
import { AnimatePresence, motion } from "motion/react";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./components-xnp09586.js";
|
|
15
15
|
import {
|
|
16
16
|
useFieldState2
|
|
17
|
-
} from "./components-
|
|
17
|
+
} from "./components-1ztgy933.js";
|
|
18
18
|
import {
|
|
19
19
|
useIcon2
|
|
20
20
|
} from "./components-jnhpgpfk.js";
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
} from "./components-45r18egt.js";
|
|
27
27
|
import {
|
|
28
28
|
button_default
|
|
29
|
-
} from "./components-
|
|
29
|
+
} from "./components-ycwhrqe1.js";
|
|
30
30
|
import {
|
|
31
31
|
Spinner2,
|
|
32
32
|
progress_default
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-ymq8tbq9.js";
|
|
34
34
|
import {
|
|
35
35
|
formatFileSize2,
|
|
36
36
|
dragVerdict2,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
12
12
|
import {
|
|
13
13
|
button_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-ycwhrqe1.js";
|
|
15
15
|
import {
|
|
16
16
|
useIcon2
|
|
17
17
|
} from "./components-jnhpgpfk.js";
|
|
@@ -22,22 +22,22 @@ import {
|
|
|
22
22
|
SidebarInput2,
|
|
23
23
|
SidebarTrigger2,
|
|
24
24
|
sidebar_default
|
|
25
|
-
} from "./components-
|
|
25
|
+
} from "./components-bkg1k36x.js";
|
|
26
26
|
import {
|
|
27
27
|
tooltip_default
|
|
28
|
-
} from "./components-
|
|
28
|
+
} from "./components-7rn454aq.js";
|
|
29
29
|
import {
|
|
30
30
|
MenuItem2,
|
|
31
31
|
DropdownMenu2,
|
|
32
32
|
DropdownTrigger2,
|
|
33
33
|
DropdownContent2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-94vd4ck1.js";
|
|
35
35
|
import {
|
|
36
36
|
card_default
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-fzmjcn38.js";
|
|
38
38
|
import {
|
|
39
39
|
badge_default
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-jw45ck66.js";
|
|
41
41
|
|
|
42
42
|
// blocks/sidebar-app/index.tsx
|
|
43
43
|
import { useState } from "react";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./components-29ebea21.js";
|
|
8
8
|
import {
|
|
9
9
|
ScrollColumn2
|
|
10
|
-
} from "./components-
|
|
10
|
+
} from "./components-zckgawt6.js";
|
|
11
11
|
import {
|
|
12
12
|
useControllableState2
|
|
13
13
|
} from "./components-wwd093xg.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
columnsPopupClass,
|
|
17
17
|
ColumnsPanel,
|
|
18
18
|
PickerInput
|
|
19
|
-
} from "./components-
|
|
19
|
+
} from "./components-gzve0nkp.js";
|
|
20
20
|
import {
|
|
21
21
|
pad,
|
|
22
22
|
minuteOptions
|
|
23
|
-
} from "./components-
|
|
23
|
+
} from "./components-d4gkhy26.js";
|
|
24
24
|
|
|
25
25
|
// components/inputs/date-time/duration-picker/index.tsx
|
|
26
26
|
import { formatDuration } from "date-fns";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
useFieldBox2,
|
|
17
17
|
focusControlOnPress2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-1ztgy933.js";
|
|
19
19
|
import {
|
|
20
20
|
useIcon2
|
|
21
21
|
} from "./components-jnhpgpfk.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./components-bkwjvvkh.js";
|
|
25
25
|
import {
|
|
26
26
|
InputAdornment2
|
|
27
|
-
} from "./components-
|
|
27
|
+
} from "./components-af44r4y9.js";
|
|
28
28
|
|
|
29
29
|
// components/inputs/number-input/index.tsx
|
|
30
30
|
import { NumberField } from "@base-ui/react/number-field";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
rowLabelClass2,
|
|
28
28
|
RowIcon2,
|
|
29
29
|
PopupLabel2
|
|
30
|
-
} from "./components-
|
|
30
|
+
} from "./components-q0hs5rqn.js";
|
|
31
31
|
import {
|
|
32
32
|
ScrollArea2
|
|
33
33
|
} from "./components-5fet4gqt.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
DialogTrigger2,
|
|
36
36
|
DialogContent2,
|
|
37
37
|
DialogState2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-br6t88cb.js";
|
|
39
39
|
|
|
40
40
|
// components/overlays/command/index.tsx
|
|
41
41
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
OverlayContext2,
|
|
8
8
|
useOverlayRoot2
|
|
9
|
-
} from "./components-
|
|
9
|
+
} from "./components-ft5dgjg6.js";
|
|
10
10
|
import {
|
|
11
11
|
SizeScope2
|
|
12
12
|
} from "./components-nz14rwtd.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DropdownSubTrigger2,
|
|
19
19
|
DropdownSubContent2,
|
|
20
20
|
DropdownSeparator2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-94vd4ck1.js";
|
|
22
22
|
|
|
23
23
|
// components/overlays/context-menu/index.tsx
|
|
24
24
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./components-nwa2a9tq.js";
|
|
39
39
|
import {
|
|
40
40
|
button_default
|
|
41
|
-
} from "./components-
|
|
41
|
+
} from "./components-ycwhrqe1.js";
|
|
42
42
|
|
|
43
43
|
// components/overlays/toast/index.tsx
|
|
44
44
|
import { Toast as ToastPrimitive2 } from "@base-ui/react/toast";
|
package/dist/styles.css
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
/* layer: theme */
|
|
64
64
|
@layer theme{
|
|
65
|
-
:root, :host { --spacing: 0.25rem; --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --
|
|
65
|
+
:root, :host { --spacing: 0.25rem; --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; --container-sm: 24rem; --ease-out: cubic-bezier(0, 0, 0.2, 1); --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --radius-xl: 0.75rem; --leading-relaxed: 1.625; --radius-none: 0; --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; --radius-md: 0.375rem; --radius-DEFAULT: 0.25rem; --radius-3xl: 1.5rem; --leading-tight: 1.25; --ease-DEFAULT: cubic-bezier(0.4, 0, 0.2, 1); --radius-2xl: 1rem; --radius-xs: 0.125rem; --leading-snug: 1.375; --leading-normal: 1.5; --radius-sm: 0.25rem; --leading-none: 1; --radius-lg: 0.5rem; --container-2xl: 42rem; --default-font-family: var(--font-sans); --default-monoFont-family: var(--font-mono); }
|
|
66
66
|
}
|
|
67
67
|
/* layer: base */
|
|
68
68
|
@layer base{
|
package/docs/chrome.css
CHANGED
|
@@ -207,3 +207,34 @@
|
|
|
207
207
|
[data-modo="site-menu-page"][aria-current="page"] {
|
|
208
208
|
background-color: var(--active);
|
|
209
209
|
}
|
|
210
|
+
|
|
211
|
+
/* The SiteSwitcher slot (./chrome.tsx): its badge is a popup surface off the
|
|
212
|
+
page, round around its icon button; the logo sits at the icon's size. */
|
|
213
|
+
[data-modo-ui="site-badge"] {
|
|
214
|
+
display: flex;
|
|
215
|
+
padding: var(--space-1);
|
|
216
|
+
border-radius: var(--radius-pill-shell);
|
|
217
|
+
background-color: var(--surface-3);
|
|
218
|
+
box-shadow: var(--shadow-3);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[data-modo-ui="site-badge"] > button {
|
|
222
|
+
border-radius: var(--radius-pill);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
[data-modo-ui="site-badge"] img {
|
|
226
|
+
width: 1rem;
|
|
227
|
+
height: 1rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* The popover's head and links, inset like the list's captions. */
|
|
231
|
+
[data-modo-ui="site-head"] {
|
|
232
|
+
display: flex;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
padding-inline: var(--space-2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
[data-modo-ui="site-foot"] {
|
|
238
|
+
display: flex;
|
|
239
|
+
gap: var(--space-1);
|
|
240
|
+
}
|
package/docs/chrome.tsx
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
SidebarItemProps,
|
|
19
19
|
SidebarSectionProps,
|
|
20
20
|
SidebarSlotProps,
|
|
21
|
+
SiteSwitcherSlotProps,
|
|
21
22
|
} from '@justanarthur/modo'
|
|
22
23
|
import {
|
|
23
24
|
Check,
|
|
@@ -30,13 +31,17 @@ import {
|
|
|
30
31
|
Monitor,
|
|
31
32
|
Moon,
|
|
32
33
|
Package,
|
|
34
|
+
PanelsTopLeft,
|
|
33
35
|
Sun,
|
|
34
36
|
X,
|
|
35
37
|
} from 'lucide-react'
|
|
36
38
|
import { Children, createContext, isValidElement, type ReactNode, useContext, useEffect, useState } from 'react'
|
|
37
39
|
import ModoButton from '../components/actions/button'
|
|
40
|
+
import List, { LIST_POPOVER } from '../components/data-display/list'
|
|
38
41
|
import FluidSelect from '../components/inputs/select'
|
|
39
42
|
import Sidebar, { type SidebarSide, useSidebar } from '../components/navigation/sidebar'
|
|
43
|
+
import Popover from '../components/overlays/popover'
|
|
44
|
+
import Tooltip from '../components/overlays/tooltip'
|
|
40
45
|
import { useIsMobile } from '../lib/use-is-mobile'
|
|
41
46
|
|
|
42
47
|
/**
|
|
@@ -312,3 +317,81 @@ export function ThemeSwitcher() {
|
|
|
312
317
|
</FluidSelect>
|
|
313
318
|
)
|
|
314
319
|
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* SiteSwitcher slot: the site view's badge (the site's mark, else a pages glyph) on an elevated
|
|
323
|
+
* surface, opening a Popover that grows out of it: the site and the page on screen, the pages as a
|
|
324
|
+
* Sidebar menu (the current one lit, the hover melting from row to row, arrow keys between them), the
|
|
325
|
+
* panel items as list rows, and the links back to the docs. It opens away from the corner modo keeps
|
|
326
|
+
* it in; picking a page closes it. modo drags it between corners, so the tooltip says so.
|
|
327
|
+
*/
|
|
328
|
+
export function SiteSwitcher({ name, logo, pages, current, sections, links, corner }: SiteSwitcherSlotProps) {
|
|
329
|
+
const [open, setOpen] = useState(false)
|
|
330
|
+
const label = current ? `Pages: ${current}` : 'Pages'
|
|
331
|
+
return (
|
|
332
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
333
|
+
<div data-modo-ui="site-badge">
|
|
334
|
+
<Tooltip content="Pages · drag to move" side={corner.startsWith('top') ? 'bottom' : 'top'}>
|
|
335
|
+
<Popover.Trigger
|
|
336
|
+
render={
|
|
337
|
+
<ModoButton variant="ghost" size="icon" aria-label={label}>
|
|
338
|
+
{logo ?? <PanelsTopLeft aria-hidden />}
|
|
339
|
+
</ModoButton>
|
|
340
|
+
}
|
|
341
|
+
/>
|
|
342
|
+
</Tooltip>
|
|
343
|
+
</div>
|
|
344
|
+
<Popover.Content
|
|
345
|
+
side={corner.startsWith('top') ? 'bottom' : 'top'}
|
|
346
|
+
align={corner.endsWith('left') ? 'start' : 'end'}
|
|
347
|
+
sideOffset={8}
|
|
348
|
+
className={LIST_POPOVER}
|
|
349
|
+
aria-label={`${name} pages`}
|
|
350
|
+
>
|
|
351
|
+
<div data-modo-ui="site-head">
|
|
352
|
+
<Popover.Title>{name}</Popover.Title>
|
|
353
|
+
<Popover.Description>{current ?? 'No page'}</Popover.Description>
|
|
354
|
+
</div>
|
|
355
|
+
<List.Section title="Pages">
|
|
356
|
+
<nav aria-label="Pages">
|
|
357
|
+
<Sidebar.Menu>
|
|
358
|
+
{pages.map(page => (
|
|
359
|
+
<Sidebar.MenuItem key={page.id}>
|
|
360
|
+
<Sidebar.MenuButton
|
|
361
|
+
isActive={page.current}
|
|
362
|
+
render={<a href={page.href} aria-current={page.current ? 'page' : undefined} />}
|
|
363
|
+
onClick={() => setOpen(false)}
|
|
364
|
+
>
|
|
365
|
+
{page.title}
|
|
366
|
+
</Sidebar.MenuButton>
|
|
367
|
+
</Sidebar.MenuItem>
|
|
368
|
+
))}
|
|
369
|
+
</Sidebar.Menu>
|
|
370
|
+
</nav>
|
|
371
|
+
</List.Section>
|
|
372
|
+
{sections.length > 0 && (
|
|
373
|
+
<List>
|
|
374
|
+
{sections.map((section, i) => (
|
|
375
|
+
<List.Row key={`${i}-${section.label}`} label={section.label}>
|
|
376
|
+
{section.content}
|
|
377
|
+
</List.Row>
|
|
378
|
+
))}
|
|
379
|
+
</List>
|
|
380
|
+
)}
|
|
381
|
+
<div data-modo-ui="site-foot">
|
|
382
|
+
{links.map(link => (
|
|
383
|
+
<ModoButton
|
|
384
|
+
key={link.href}
|
|
385
|
+
variant="ghost"
|
|
386
|
+
size="compact"
|
|
387
|
+
render={<a href={link.href} />}
|
|
388
|
+
onClick={() => setOpen(false)}
|
|
389
|
+
>
|
|
390
|
+
{link.label}
|
|
391
|
+
</ModoButton>
|
|
392
|
+
))}
|
|
393
|
+
</div>
|
|
394
|
+
</Popover.Content>
|
|
395
|
+
</Popover>
|
|
396
|
+
)
|
|
397
|
+
}
|
package/docs/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* The docs chrome as one module, for a design system documented with modo:
|
|
3
|
-
* `shell: { Sidebar: '@justanarthur/modo-ui/docs#DocsNav', … }` and
|
|
3
|
+
* `shell: { Sidebar: '@justanarthur/modo-ui/docs#DocsNav', SiteSwitcher: '@justanarthur/modo-ui/docs#SiteSwitcher', … }` and
|
|
4
4
|
* `panel: { items: [{ label: 'Theme', component: '@justanarthur/modo-ui/docs#ThemeSwitcher' }] }`.
|
|
5
5
|
* Its look is `@justanarthur/modo-ui/docs/chrome.css`; the pre-paint theme controller is
|
|
6
6
|
* `docsTheme` in `@justanarthur/modo-ui/docs/vite`. The package's main entry never imports it.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justanarthur/modo-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"description": "Fluid Functionalism (Base UI flavor, MIT © 2026 Micka Touillaud) ported to UnoCSS: motion springs, fluid hover, a two-step size ladder and an eight-level elevated surface system. Documented with modo.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
351
|
"devDependencies": {
|
|
352
|
-
"@justanarthur/modo": "1.
|
|
352
|
+
"@justanarthur/modo": "1.3.0",
|
|
353
353
|
"@types/react": "^18.3.0",
|
|
354
354
|
"@types/react-dom": "^18.3.0",
|
|
355
355
|
"bunup": "^0.16.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|