@justanarthur/modo-ui 2.2.0 → 2.4.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/components/data-display/diff/index.tsx +19 -3
- package/components/inputs/choice-list/index.tsx +4 -3
- package/components/navigation/sidebar/menu-scope.tsx +142 -53
- package/components/navigation/sidebar/sidebar-menu-actions.tsx +5 -5
- package/components/navigation/sidebar/sidebar-menu-button.tsx +4 -7
- package/components/navigation/sidebar/sidebar-menu-item.tsx +39 -36
- package/components/navigation/sidebar/sidebar-menu-sub.tsx +3 -2
- package/components/overlays/command/index.tsx +70 -12
- package/components/overlays/dropdown/menu-popup.tsx +11 -2
- package/components/overlays/tooltip/index.tsx +9 -1
- package/dist/blocks/desktop-shell/index.js +28 -28
- package/dist/blocks/sidebar-app/index.js +38 -38
- package/dist/components/actions/button/index.js +4 -4
- package/dist/components/actions/copy/index.js +12 -12
- package/dist/components/containers/accordion/index.js +17 -17
- package/dist/components/containers/card/index.js +15 -15
- package/dist/components/data-display/avatar/index.js +3 -3
- package/dist/components/data-display/badge/index.js +2 -2
- package/dist/components/data-display/diff/index.d.ts +1 -1
- package/dist/components/data-display/diff/index.js +4 -4
- package/dist/components/data-display/list/index.js +3 -3
- package/dist/components/data-display/log-view/index.js +8 -8
- package/dist/components/data-display/markdown/index.js +16 -16
- package/dist/components/data-display/table/index.js +10 -10
- 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/inputs/checkbox/index.js +14 -14
- package/dist/components/inputs/choice-list/index.js +11 -11
- package/dist/components/inputs/color-picker/index.js +23 -23
- package/dist/components/inputs/combobox/index.js +21 -21
- package/dist/components/inputs/date-time/calendar/index.js +10 -10
- package/dist/components/inputs/date-time/date-picker/index.js +28 -28
- package/dist/components/inputs/date-time/date-range-picker/index.js +28 -28
- package/dist/components/inputs/date-time/duration-picker/index.js +27 -27
- package/dist/components/inputs/date-time/month-picker/index.js +26 -26
- package/dist/components/inputs/date-time/time-picker/index.js +27 -27
- package/dist/components/inputs/editable-text/index.js +2 -2
- 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 +12 -12
- package/dist/components/inputs/number-input/index.js +7 -7
- package/dist/components/inputs/radio/index.js +13 -13
- package/dist/components/inputs/search/index.js +24 -24
- package/dist/components/inputs/select/index.js +22 -22
- package/dist/components/inputs/slider/index.js +4 -4
- package/dist/components/inputs/switch/index.js +10 -10
- package/dist/components/inputs/textarea/index.js +4 -4
- package/dist/components/navigation/breadcrumb/index.js +26 -26
- package/dist/components/navigation/navigation-menu/index.js +18 -18
- package/dist/components/navigation/pagination/index.js +17 -17
- package/dist/components/navigation/sidebar/index.js +26 -26
- package/dist/components/navigation/tabs/index.js +14 -14
- package/dist/components/navigation/tree/index.js +10 -10
- package/dist/components/overlays/alert-dialog/index.js +15 -15
- package/dist/components/overlays/command/index.d.ts +6 -3
- package/dist/components/overlays/command/index.js +22 -22
- package/dist/components/overlays/context-menu/index.js +26 -26
- package/dist/components/overlays/dialog/index.js +14 -14
- package/dist/components/overlays/dropdown/index.js +25 -25
- package/dist/components/overlays/lightbox/index.js +12 -12
- package/dist/components/overlays/popover/index.js +10 -10
- package/dist/components/overlays/preview-card/index.js +10 -10
- package/dist/components/overlays/sheet/index.js +15 -15
- package/dist/components/overlays/toast/index.js +11 -11
- package/dist/components/overlays/tooltip/index.js +7 -7
- package/dist/docs/index.js +17 -17
- package/dist/index.d.ts +16 -8
- package/dist/index.js +80 -80
- package/dist/lib/fluid-hover-highlight.js +5 -4
- package/dist/lib/focus-ring.d.ts +5 -2
- package/dist/lib/focus-ring.js +3 -2
- package/dist/lib/goo-indicator.d.ts +5 -2
- package/dist/lib/goo-indicator.js +4 -3
- package/dist/lib/morph-layers.js +4 -4
- package/dist/lib/morph-part.js +2 -2
- package/dist/lib/overlay.d.ts +8 -1
- package/dist/lib/overlay.js +6 -4
- package/dist/lib/popup-rows.js +2 -2
- package/dist/lib/popup-surface.js +7 -7
- package/dist/lib/scroll-column.js +7 -7
- package/dist/lib/use-fluid-hover.d.ts +3 -1
- package/dist/lib/use-fluid-hover.js +3 -1
- package/dist/lib/use-merge-split.js +5 -4
- package/dist/lib/use-morph.js +2 -2
- package/dist/primitives/content/code/index.js +3 -3
- package/dist/primitives/layout/resizable/index.d.ts +4 -2
- 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 +3 -3
- package/dist/primitives/systems/fluid-hover/index.js +7 -7
- package/dist/primitives/systems/morph/index.js +13 -13
- package/dist/primitives/systems/motion/index.js +6 -6
- package/dist/primitives/systems/sizes/index.js +2 -2
- package/dist/shared/{components-19e2wpxc.js → components-0bvxny7s.js} +5 -5
- package/dist/shared/{components-v3c3madd.js → components-0ep66sg9.js} +6 -6
- package/dist/shared/{components-nd3f803g.js → components-0v4jxw7z.js} +3 -3
- package/dist/shared/{components-9hysh6d3.js → components-1f5624hb.js} +1 -1
- package/dist/shared/{components-8qwbwtv9.js → components-1qw8hqwq.js} +9 -9
- package/dist/shared/{components-7c4a0egq.js → components-21hcwp85.js} +78 -43
- package/dist/shared/{components-qhk2m7fj.js → components-3qcgeay1.js} +2 -2
- package/dist/shared/{components-zk1tj5za.js → components-3rt5c1qt.js} +3 -3
- package/dist/shared/{components-ppc2dmxs.js → components-3sb31vw5.js} +1 -1
- package/dist/shared/{components-qs0cwe8p.js → components-4fay97sm.js} +10 -10
- package/dist/shared/{components-09n5hgmx.js → components-4fhjk3jz.js} +2 -2
- package/dist/shared/{components-vkrp4nb9.js → components-4m9stj7d.js} +11 -11
- package/dist/shared/{components-pgs3p035.js → components-4t2cjav8.js} +1 -1
- package/dist/shared/{components-v1m0xjbw.js → components-5wykqxph.js} +6 -1
- package/dist/shared/{components-w5p7mfb4.js → components-5xs8pkkj.js} +1 -1
- package/dist/shared/{components-rj4nnqkz.js → components-7rn454aq.js} +13 -4
- package/dist/shared/{components-zktkxnzq.js → components-895m1f3s.js} +8 -8
- package/dist/shared/{components-t4eb37vd.js → components-8m5e493q.js} +2 -2
- package/dist/shared/{components-1nqp7wqr.js → components-8nnhzeb3.js} +5 -5
- package/dist/shared/{components-mcnyaaep.js → components-8xe4h118.js} +6 -6
- package/dist/shared/{components-a3edrqpb.js → components-9am5511q.js} +3 -3
- package/dist/shared/{components-95kp19zn.js → components-9b2m90st.js} +1 -1
- package/dist/shared/{components-qd27dvgj.js → components-9yrajpy0.js} +3 -3
- package/dist/shared/{components-ajgwbabq.js → components-abqfs5fh.js} +4 -4
- package/dist/shared/{components-dr5c27yd.js → components-ac0x7zpq.js} +4 -4
- package/dist/shared/{components-y07de1qv.js → components-af44r4y9.js} +2 -2
- package/dist/shared/{components-90y8qwxv.js → components-br6t88cb.js} +5 -5
- package/dist/shared/{components-gvwxswpr.js → components-bxqmbcz2.js} +7 -3
- package/dist/shared/{components-9e5fpy3v.js → components-cc9kfhkb.js} +171 -115
- package/dist/shared/{components-rts2mggt.js → components-d4gkhy26.js} +1 -1
- package/dist/shared/{components-veaxns17.js → components-eawe4nxm.js} +2 -2
- package/dist/shared/{components-qe8yp3vf.js → components-fpgfs01m.js} +3 -3
- package/dist/shared/{components-xvf8jcza.js → components-ft5dgjg6.js} +10 -3
- package/dist/shared/{components-pbx77hzb.js → components-fv9y76b0.js} +15 -3
- package/dist/shared/{components-afj2ajea.js → components-fymenepq.js} +8 -8
- package/dist/shared/{components-rmhdr4g1.js → components-gd8gmr6w.js} +1 -1
- package/dist/shared/{components-k9qbcmaa.js → components-gr82tz50.js} +21 -3
- package/dist/shared/{components-nc8wggew.js → components-greka6z2.js} +59 -19
- package/dist/shared/{components-qkt4h7x4.js → components-gzve0nkp.js} +8 -8
- package/dist/shared/{components-4xd21p2p.js → components-hjdv4y8d.js} +3 -3
- package/dist/shared/{components-v81eejq6.js → components-hjk6dwsp.js} +2 -2
- package/dist/shared/{components-151vndgm.js → components-mb80a9wg.js} +3 -3
- package/dist/shared/{components-gfw4zk8b.js → components-mzdbtgvz.js} +12 -12
- package/dist/shared/{components-9s9vb2w0.js → components-nmbcfwx8.js} +8 -8
- package/dist/shared/{components-90sfqz5t.js → components-nxqrw789.js} +1 -1
- package/dist/shared/{components-2q0m4mxf.js → components-pw6gzev8.js} +2 -2
- package/dist/shared/{components-fqdh9ysk.js → components-pwsqp2np.js} +24 -14
- package/dist/shared/{components-yn8bw8tv.js → components-qmkfpcw0.js} +12 -12
- package/dist/shared/{components-z9gc2weg.js → components-qrtcc8aw.js} +3 -3
- package/dist/shared/{components-jd21f3mb.js → components-rgdspnth.js} +5 -5
- package/dist/shared/{components-r6ejdtpr.js → components-rtwfh1gc.js} +4 -4
- package/dist/shared/{components-16wx5av1.js → components-s0megs1g.js} +6 -6
- package/dist/shared/{components-8qkd3659.js → components-s2pnh8h9.js} +1 -1
- package/dist/shared/{components-2zr49v82.js → components-sh8j39z3.js} +7 -7
- package/dist/shared/{components-7v6869ga.js → components-t0c1rw40.js} +1 -1
- package/dist/shared/{components-mamtvenk.js → components-t4j0r23n.js} +2 -2
- package/dist/shared/{components-qc1fae2s.js → components-v1zzr668.js} +6 -6
- package/dist/shared/{components-vv420geb.js → components-vcmky8ns.js} +7 -7
- package/dist/shared/{components-313rmbxy.js → components-wq9hrera.js} +2 -2
- package/dist/shared/{components-mpx3yq5c.js → components-xq8j9c2f.js} +12 -12
- package/dist/shared/{components-3cvwrzc1.js → components-y9se9mx5.js} +3 -3
- package/dist/shared/{components-nehs80xd.js → components-yfx0skxc.js} +1 -1
- package/dist/shared/{components-s25rehbv.js → components-zckgawt6.js} +5 -5
- package/dist/shared/{components-85dz3xx3.js → components-zv63s4fh.js} +3 -3
- package/dist/styles.css +1 -1
- package/lib/focus-ring.tsx +15 -8
- package/lib/goo-indicator.tsx +20 -8
- package/lib/overlay.tsx +22 -1
- package/lib/use-fluid-hover.ts +96 -72
- package/package.json +1 -1
- package/primitives/layout/resizable/index.tsx +35 -7
- /package/dist/shared/{components-mp7en54n.js → components-8pnvkrbw.js} +0 -0
- /package/dist/shared/{components-zwgxvktt.js → components-92mvpt9h.js} +0 -0
- /package/dist/shared/{components-02683eqd.js → components-jw45ck66.js} +0 -0
- /package/dist/shared/{components-hbqyf35a.js → components-knryyjme.js} +0 -0
- /package/dist/shared/{components-yy0a9b02.js → components-m3vxpz2z.js} +0 -0
- /package/dist/shared/{components-ffng9rpa.js → components-nz14rwtd.js} +0 -0
- /package/dist/shared/{components-wddr0r6a.js → components-pa43g2r2.js} +0 -0
- /package/dist/shared/{components-6c52v58g.js → components-q0hs5rqn.js} +0 -0
- /package/dist/shared/{components-h9se5cz5.js → components-vx286kq7.js} +0 -0
- /package/dist/shared/{components-fa61vwag.js → components-y4gsk1jt.js} +0 -0
- /package/dist/shared/{components-31pkxwfz.js → components-ycwhrqe1.js} +0 -0
- /package/dist/shared/{components-wqac4434.js → components-ymq8tbq9.js} +0 -0
- /package/dist/shared/{components-sxstx1x7.js → components-ypxst3cn.js} +0 -0
|
@@ -27,26 +27,30 @@ import {
|
|
|
27
27
|
} from "./components-45r18egt.js";
|
|
28
28
|
import {
|
|
29
29
|
useMorph2
|
|
30
|
-
} from "./components-
|
|
30
|
+
} from "./components-8pnvkrbw.js";
|
|
31
31
|
import {
|
|
32
32
|
OverlayContext2,
|
|
33
33
|
useOverlayRoot2,
|
|
34
34
|
useOverlay2,
|
|
35
35
|
positionerProps2,
|
|
36
36
|
usePortalContainer2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-ft5dgjg6.js";
|
|
38
38
|
import {
|
|
39
39
|
SizeScope2
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-nz14rwtd.js";
|
|
41
41
|
import {
|
|
42
42
|
useIcon2
|
|
43
43
|
} from "./components-jnhpgpfk.js";
|
|
44
|
+
import {
|
|
45
|
+
useFluidHover2,
|
|
46
|
+
useRegisterFluidHoverItem2
|
|
47
|
+
} from "./components-21hcwp85.js";
|
|
44
48
|
import {
|
|
45
49
|
GooIndicator2
|
|
46
|
-
} from "./components-
|
|
50
|
+
} from "./components-bxqmbcz2.js";
|
|
47
51
|
import {
|
|
48
52
|
FluidHoverHighlight2
|
|
49
|
-
} from "./components-
|
|
53
|
+
} from "./components-9b2m90st.js";
|
|
50
54
|
import {
|
|
51
55
|
useMergeRefs2
|
|
52
56
|
} from "./components-bkwjvvkh.js";
|
|
@@ -61,19 +65,15 @@ import {
|
|
|
61
65
|
rowLabelBoxClass2,
|
|
62
66
|
RowIcon2,
|
|
63
67
|
CheckMark2
|
|
64
|
-
} from "./components-
|
|
68
|
+
} from "./components-q0hs5rqn.js";
|
|
65
69
|
import {
|
|
66
70
|
PopupSurface2
|
|
67
|
-
} from "./components-
|
|
68
|
-
import {
|
|
69
|
-
useFluidHover2,
|
|
70
|
-
useRegisterFluidHoverItem2
|
|
71
|
-
} from "./components-7c4a0egq.js";
|
|
71
|
+
} from "./components-nxqrw789.js";
|
|
72
72
|
import {
|
|
73
73
|
useSelectionRuns2,
|
|
74
74
|
useMergeSplitBlocks2,
|
|
75
75
|
SelectionBackgrounds2
|
|
76
|
-
} from "./components-
|
|
76
|
+
} from "./components-eawe4nxm.js";
|
|
77
77
|
import {
|
|
78
78
|
ScrollArea2
|
|
79
79
|
} from "./components-esy5nsvc.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";
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
} from "./components-45r18egt.js";
|
|
15
15
|
import {
|
|
16
16
|
useMorph2
|
|
17
|
-
} from "./components-
|
|
17
|
+
} from "./components-8pnvkrbw.js";
|
|
18
18
|
import {
|
|
19
19
|
cn2
|
|
20
20
|
} from "./components-xnp09586.js";
|
|
21
21
|
import {
|
|
22
22
|
positionerProps2,
|
|
23
23
|
usePortalContainer2
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-ft5dgjg6.js";
|
|
25
25
|
import {
|
|
26
26
|
POPUP_SHAPE2
|
|
27
27
|
} from "./components-mse06t0x.js";
|
|
@@ -37,18 +37,18 @@ import {
|
|
|
37
37
|
} from "./components-nwa2a9tq.js";
|
|
38
38
|
import {
|
|
39
39
|
PopupSurface2
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-nxqrw789.js";
|
|
41
41
|
import {
|
|
42
42
|
useSize2
|
|
43
43
|
} from "./components-znspksk0.js";
|
|
44
44
|
import {
|
|
45
45
|
SizeScope2
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-nz14rwtd.js";
|
|
47
47
|
import {
|
|
48
48
|
CommandListRoot2,
|
|
49
49
|
CommandShortcut2,
|
|
50
50
|
CommandList2
|
|
51
|
-
} from "./components-
|
|
51
|
+
} from "./components-greka6z2.js";
|
|
52
52
|
|
|
53
53
|
// components/inputs/search/index.tsx
|
|
54
54
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
useFluidHover2,
|
|
21
21
|
useRegisterFluidHoverItem2
|
|
22
|
-
} from "./components-
|
|
22
|
+
} from "./components-21hcwp85.js";
|
|
23
23
|
import {
|
|
24
24
|
useIsoLayoutEffect2
|
|
25
25
|
} from "./components-v2j3jx89.js";
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
} from "./components-wwd093xg.js";
|
|
32
32
|
import {
|
|
33
33
|
SizeScope2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-nz14rwtd.js";
|
|
35
35
|
import {
|
|
36
36
|
FluidHoverHighlight2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-9b2m90st.js";
|
|
38
38
|
import {
|
|
39
39
|
button_default
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-ycwhrqe1.js";
|
|
41
41
|
import {
|
|
42
42
|
WeightLabel2
|
|
43
43
|
} from "./components-y09nr7fe.js";
|
|
@@ -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-cc9kfhkb.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-pwsqp2np.js";
|
|
35
35
|
import {
|
|
36
36
|
card_default
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-rtwfh1gc.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";
|
|
@@ -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";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
useFluidHover2,
|
|
5
|
+
useRegisterFluidHoverItem2
|
|
6
|
+
} from "./components-21hcwp85.js";
|
|
3
7
|
import {
|
|
4
8
|
cn2
|
|
5
9
|
} from "./components-xnp09586.js";
|
|
6
10
|
import {
|
|
7
11
|
FluidHoverHighlight2
|
|
8
|
-
} from "./components-
|
|
12
|
+
} from "./components-9b2m90st.js";
|
|
9
13
|
import {
|
|
10
14
|
useIcon2
|
|
11
15
|
} from "./components-jnhpgpfk.js";
|
|
@@ -15,16 +19,12 @@ import {
|
|
|
15
19
|
import {
|
|
16
20
|
useSize2
|
|
17
21
|
} from "./components-znspksk0.js";
|
|
18
|
-
import {
|
|
19
|
-
useFluidHover2,
|
|
20
|
-
useRegisterFluidHoverItem2
|
|
21
|
-
} from "./components-7c4a0egq.js";
|
|
22
22
|
import {
|
|
23
23
|
SizeScope2
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-nz14rwtd.js";
|
|
25
25
|
import {
|
|
26
26
|
dropdown_default
|
|
27
|
-
} from "./components-
|
|
27
|
+
} from "./components-pwsqp2np.js";
|
|
28
28
|
|
|
29
29
|
// components/navigation/breadcrumb/index.tsx
|
|
30
30
|
import { Children, isValidElement, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -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,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
useFluidHover2,
|
|
32
32
|
useRegisterFluidHoverItem2
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-21hcwp85.js";
|
|
34
34
|
import {
|
|
35
35
|
WeightLabel2
|
|
36
36
|
} from "./components-y09nr7fe.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./components-wwd093xg.js";
|
|
40
40
|
import {
|
|
41
41
|
SizeScope2
|
|
42
|
-
} from "./components-
|
|
42
|
+
} from "./components-nz14rwtd.js";
|
|
43
43
|
import {
|
|
44
44
|
useReduceMotion2
|
|
45
45
|
} from "./components-tz0axc0f.js";
|
|
@@ -50,19 +50,19 @@ import {
|
|
|
50
50
|
} from "./components-pva1wj1r.js";
|
|
51
51
|
import {
|
|
52
52
|
GOO_BLUR_RATIO2
|
|
53
|
-
} from "./components-
|
|
53
|
+
} from "./components-8pnvkrbw.js";
|
|
54
54
|
import {
|
|
55
55
|
GooFilter2
|
|
56
|
-
} from "./components-
|
|
56
|
+
} from "./components-wq9hrera.js";
|
|
57
57
|
import {
|
|
58
58
|
useIsoLayoutEffect2
|
|
59
59
|
} from "./components-v2j3jx89.js";
|
|
60
60
|
import {
|
|
61
61
|
FluidHoverHighlight2
|
|
62
|
-
} from "./components-
|
|
62
|
+
} from "./components-9b2m90st.js";
|
|
63
63
|
import {
|
|
64
64
|
FocusRing2
|
|
65
|
-
} from "./components-
|
|
65
|
+
} from "./components-5wykqxph.js";
|
|
66
66
|
import {
|
|
67
67
|
useRowFocus2
|
|
68
68
|
} from "./components-vcte8p75.js";
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
import {
|
|
4
4
|
spring2
|
|
5
5
|
} from "./components-45r18egt.js";
|
|
6
|
+
import {
|
|
7
|
+
useFluidHover2,
|
|
8
|
+
useRegisterFluidHoverItem2
|
|
9
|
+
} from "./components-21hcwp85.js";
|
|
6
10
|
import {
|
|
7
11
|
cn2
|
|
8
12
|
} from "./components-xnp09586.js";
|
|
9
13
|
import {
|
|
10
14
|
GooIndicator2
|
|
11
|
-
} from "./components-
|
|
15
|
+
} from "./components-bxqmbcz2.js";
|
|
12
16
|
import {
|
|
13
17
|
FluidHoverHighlight2
|
|
14
|
-
} from "./components-
|
|
18
|
+
} from "./components-9b2m90st.js";
|
|
15
19
|
import {
|
|
16
20
|
mergeRefs2
|
|
17
21
|
} from "./components-bkwjvvkh.js";
|
|
@@ -28,13 +32,9 @@ import {
|
|
|
28
32
|
import {
|
|
29
33
|
useControllableState2
|
|
30
34
|
} from "./components-wwd093xg.js";
|
|
31
|
-
import {
|
|
32
|
-
useFluidHover2,
|
|
33
|
-
useRegisterFluidHoverItem2
|
|
34
|
-
} from "./components-7c4a0egq.js";
|
|
35
35
|
import {
|
|
36
36
|
SizeScope2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-nz14rwtd.js";
|
|
38
38
|
|
|
39
39
|
// components/inputs/switch/index.tsx
|
|
40
40
|
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
MorphPartInOverlay2
|
|
5
|
-
} from "./components-
|
|
5
|
+
} from "./components-pa43g2r2.js";
|
|
6
6
|
import {
|
|
7
7
|
GOO_MATRIX2
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-8pnvkrbw.js";
|
|
9
9
|
import {
|
|
10
10
|
cn2
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
@@ -13,18 +13,22 @@ import {
|
|
|
13
13
|
useFieldState2,
|
|
14
14
|
useFieldBox2
|
|
15
15
|
} from "./components-1ztgy933.js";
|
|
16
|
+
import {
|
|
17
|
+
useFluidHover2,
|
|
18
|
+
useRegisterFluidHoverItem2
|
|
19
|
+
} from "./components-21hcwp85.js";
|
|
16
20
|
import {
|
|
17
21
|
useMorph2
|
|
18
|
-
} from "./components-
|
|
22
|
+
} from "./components-8pnvkrbw.js";
|
|
19
23
|
import {
|
|
20
24
|
GooIndicator2
|
|
21
|
-
} from "./components-
|
|
25
|
+
} from "./components-bxqmbcz2.js";
|
|
22
26
|
import {
|
|
23
27
|
FluidHoverHighlight2
|
|
24
|
-
} from "./components-
|
|
28
|
+
} from "./components-9b2m90st.js";
|
|
25
29
|
import {
|
|
26
30
|
FocusRing2
|
|
27
|
-
} from "./components-
|
|
31
|
+
} from "./components-5wykqxph.js";
|
|
28
32
|
import {
|
|
29
33
|
useMergeRefs2
|
|
30
34
|
} from "./components-bkwjvvkh.js";
|
|
@@ -37,7 +41,7 @@ import {
|
|
|
37
41
|
useOverlay2,
|
|
38
42
|
positionerProps2,
|
|
39
43
|
usePortalContainer2
|
|
40
|
-
} from "./components-
|
|
44
|
+
} from "./components-ft5dgjg6.js";
|
|
41
45
|
import {
|
|
42
46
|
POPUP_SHAPE2,
|
|
43
47
|
popupScrollAreaClass2,
|
|
@@ -53,20 +57,16 @@ import {
|
|
|
53
57
|
CheckMark2,
|
|
54
58
|
PopupLabel2,
|
|
55
59
|
PopupSeparator2
|
|
56
|
-
} from "./components-
|
|
60
|
+
} from "./components-q0hs5rqn.js";
|
|
57
61
|
import {
|
|
58
62
|
PopupSurface2
|
|
59
|
-
} from "./components-
|
|
63
|
+
} from "./components-nxqrw789.js";
|
|
60
64
|
import {
|
|
61
65
|
useRowFocus2
|
|
62
66
|
} from "./components-vcte8p75.js";
|
|
63
67
|
import {
|
|
64
68
|
slotRender2
|
|
65
69
|
} from "./components-7wjkag2j.js";
|
|
66
|
-
import {
|
|
67
|
-
useFluidHover2,
|
|
68
|
-
useRegisterFluidHoverItem2
|
|
69
|
-
} from "./components-7c4a0egq.js";
|
|
70
70
|
import {
|
|
71
71
|
useKeyboardNavGate2
|
|
72
72
|
} from "./components-tcyz2tdn.js";
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
} from "./components-esy5nsvc.js";
|
|
76
76
|
import {
|
|
77
77
|
SizeScope2
|
|
78
|
-
} from "./components-
|
|
78
|
+
} from "./components-nz14rwtd.js";
|
|
79
79
|
|
|
80
80
|
// components/inputs/select/index.tsx
|
|
81
81
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import {
|
|
4
4
|
useReduceMotion2
|
|
5
5
|
} from "./components-tz0axc0f.js";
|
|
6
|
+
import {
|
|
7
|
+
useFluidHover2,
|
|
8
|
+
useRegisterFluidHoverItem2
|
|
9
|
+
} from "./components-21hcwp85.js";
|
|
6
10
|
import {
|
|
7
11
|
cn2
|
|
8
12
|
} from "./components-xnp09586.js";
|
|
9
13
|
import {
|
|
10
14
|
FluidHoverHighlight2
|
|
11
|
-
} from "./components-
|
|
15
|
+
} from "./components-9b2m90st.js";
|
|
12
16
|
import {
|
|
13
17
|
useShape2
|
|
14
18
|
} from "./components-kxpcj2ry.js";
|
|
15
19
|
import {
|
|
16
20
|
useSize2
|
|
17
21
|
} from "./components-znspksk0.js";
|
|
18
|
-
import {
|
|
19
|
-
useFluidHover2,
|
|
20
|
-
useRegisterFluidHoverItem2
|
|
21
|
-
} from "./components-7c4a0egq.js";
|
|
22
22
|
|
|
23
23
|
// lib/scroll-column.tsx
|
|
24
24
|
import { useEffect, useRef } from "react";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
GOO_BLUR_RATIO2,
|
|
14
14
|
holdExit2
|
|
15
|
-
} from "./components-
|
|
15
|
+
} from "./components-8pnvkrbw.js";
|
|
16
16
|
import {
|
|
17
17
|
cn2
|
|
18
18
|
} from "./components-xnp09586.js";
|
|
19
19
|
import {
|
|
20
20
|
GooFilter2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-wq9hrera.js";
|
|
22
22
|
import {
|
|
23
23
|
useShape2
|
|
24
24
|
} from "./components-kxpcj2ry.js";
|
|
@@ -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; --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; --
|
|
65
|
+
:root, :host { --spacing: 0.25rem; --radius-3xl: 1.5rem; --radius-xl: 0.75rem; --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --ease-DEFAULT: cubic-bezier(0.4, 0, 0.2, 1); --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; --container-sm: 24rem; --radius-DEFAULT: 0.25rem; --radius-none: 0; --leading-tight: 1.25; --radius-md: 0.375rem; --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; --ease-out: cubic-bezier(0, 0, 0.2, 1); --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --radius-sm: 0.25rem; --radius-2xl: 1rem; --radius-xs: 0.125rem; --leading-relaxed: 1.625; --leading-snug: 1.375; --leading-normal: 1.5; --container-2xl: 42rem; --radius-lg: 0.5rem; --leading-none: 1; --default-font-family: var(--font-sans); --default-monoFont-family: var(--font-mono); }
|
|
66
66
|
}
|
|
67
67
|
/* layer: base */
|
|
68
68
|
@layer base{
|
package/lib/focus-ring.tsx
CHANGED
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
'use client'
|
|
7
7
|
|
|
8
8
|
import { AnimatePresence, motion } from 'motion/react'
|
|
9
|
+
import { memo } from 'react'
|
|
9
10
|
import { useReduceMotion } from './reduced-motion'
|
|
10
11
|
import { useShape } from './shape-context'
|
|
11
12
|
import { spring } from './springs'
|
|
12
|
-
import type
|
|
13
|
+
import { type ItemRect, sameRect } from './use-fluid-hover'
|
|
13
14
|
import { cn } from './utils'
|
|
14
15
|
|
|
15
16
|
interface FocusRingProps {
|
|
@@ -21,13 +22,7 @@ interface FocusRingProps {
|
|
|
21
22
|
className?: string
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
* A 1px `focus-ring` border drawn 2px outside the focused row. It springs
|
|
26
|
-
* between rows on `spring.fast` (jumps under reduced motion) and fades out
|
|
27
|
-
* when focus leaves. Render it inside the rows' `relative` container, above
|
|
28
|
-
* the hover highlight.
|
|
29
|
-
*/
|
|
30
|
-
export function FocusRing({ rect, instant = false, className }: FocusRingProps) {
|
|
25
|
+
function FocusRingBase({ rect, instant = false, className }: FocusRingProps) {
|
|
31
26
|
const shape = useShape()
|
|
32
27
|
const reduceMotion = useReduceMotion()
|
|
33
28
|
const jump = instant || reduceMotion
|
|
@@ -47,3 +42,15 @@ export function FocusRing({ rect, instant = false, className }: FocusRingProps)
|
|
|
47
42
|
</AnimatePresence>
|
|
48
43
|
)
|
|
49
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* A 1px `focus-ring` border drawn 2px outside the focused row. It springs
|
|
48
|
+
* between rows on `spring.fast` (jumps under reduced motion) and fades out
|
|
49
|
+
* when focus leaves. Render it inside the rows' `relative` container, above
|
|
50
|
+
* the hover highlight. Skips the render while its box and props hold (rects
|
|
51
|
+
* are fresh objects on every list render).
|
|
52
|
+
*/
|
|
53
|
+
export const FocusRing = memo(
|
|
54
|
+
FocusRingBase,
|
|
55
|
+
(a, b) => sameRect(a.rect, b.rect) && a.instant === b.instant && a.className === b.className,
|
|
56
|
+
)
|
package/lib/goo-indicator.tsx
CHANGED
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
'use client'
|
|
23
23
|
|
|
24
24
|
import { animate, motion, type Transition, useMotionValue, type ValueAnimationTransition } from 'motion/react'
|
|
25
|
-
import { type ReactNode, useId, useLayoutEffect, useRef, useState } from 'react'
|
|
25
|
+
import { memo, type ReactNode, useId, useLayoutEffect, useRef, useState } from 'react'
|
|
26
26
|
import { useReduceMotion } from './reduced-motion'
|
|
27
27
|
import { spring } from './springs'
|
|
28
|
-
import type
|
|
28
|
+
import { type ItemRect, sameRect } from './use-fluid-hover'
|
|
29
29
|
import { GOO_BLUR_RATIO, GOO_MATRIX } from './use-morph'
|
|
30
30
|
import { cn } from './utils'
|
|
31
31
|
|
|
@@ -161,12 +161,7 @@ interface GooIndicatorProps {
|
|
|
161
161
|
opacity?: number
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
* An indicator that travels between items with a liquid neck. Render it in the
|
|
166
|
-
* items' `relative` container, beneath them: the items' text stays above it,
|
|
167
|
-
* unfiltered.
|
|
168
|
-
*/
|
|
169
|
-
export function GooIndicator({
|
|
164
|
+
function GooIndicatorBase({
|
|
170
165
|
rect,
|
|
171
166
|
from,
|
|
172
167
|
className,
|
|
@@ -259,5 +254,22 @@ export function GooIndicator({
|
|
|
259
254
|
)
|
|
260
255
|
}
|
|
261
256
|
|
|
257
|
+
/**
|
|
258
|
+
* An indicator that travels between items with a liquid neck. Render it in the
|
|
259
|
+
* items' `relative` container, beneath them: the items' text stays above it,
|
|
260
|
+
* unfiltered. Its list re-renders on every hover; an indicator whose box did
|
|
261
|
+
* not move skips the render (rects are fresh objects each time).
|
|
262
|
+
*/
|
|
263
|
+
export const GooIndicator = memo(
|
|
264
|
+
GooIndicatorBase,
|
|
265
|
+
(a, b) =>
|
|
266
|
+
sameRect(a.rect, b.rect) &&
|
|
267
|
+
sameRect(a.from, b.from) &&
|
|
268
|
+
a.className === b.className &&
|
|
269
|
+
a.shadow === b.shadow &&
|
|
270
|
+
a.transition === b.transition &&
|
|
271
|
+
a.opacity === b.opacity,
|
|
272
|
+
)
|
|
273
|
+
|
|
262
274
|
export type { GooIndicatorProps, GooLayerProps }
|
|
263
275
|
export { union }
|
package/lib/overlay.tsx
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
useCallback,
|
|
20
20
|
useContext,
|
|
21
21
|
useMemo,
|
|
22
|
+
useState,
|
|
22
23
|
} from 'react'
|
|
23
24
|
import { useControllableState } from './use-controllable-state'
|
|
24
25
|
import { inPlaceOffset, type MorphOrigin, type MorphProps, opensInPlace, useMorphOrigin } from './use-morph'
|
|
@@ -110,6 +111,18 @@ function useOverlay(part: string): OverlayState {
|
|
|
110
111
|
return state
|
|
111
112
|
}
|
|
112
113
|
|
|
114
|
+
/**
|
|
115
|
+
* False until `open` first turns true, then true for good. Content that
|
|
116
|
+
* mounts its machinery (the morph, a fluid hover, the portal) behind it costs
|
|
117
|
+
* nothing in a list of triggers until one opens, and stays mounted after, for
|
|
118
|
+
* its close and the next open.
|
|
119
|
+
*/
|
|
120
|
+
function useOpenedOnce(open: boolean) {
|
|
121
|
+
const [opened, setOpened] = useState(open)
|
|
122
|
+
if (open && !opened) setOpened(true)
|
|
123
|
+
return opened || open
|
|
124
|
+
}
|
|
125
|
+
|
|
113
126
|
/**
|
|
114
127
|
* Base UI `Positioner` props for an anchored overlay: the content's
|
|
115
128
|
* anchoring props over the overlay's defaults, pulled back over the trigger
|
|
@@ -159,4 +172,12 @@ function usePortalContainer(container?: HTMLElement | null) {
|
|
|
159
172
|
}
|
|
160
173
|
|
|
161
174
|
export type { Align, AnchorProps, CollisionProps, OpenChangeDetails, OverlayRootProps, OverlayState, Side }
|
|
162
|
-
export {
|
|
175
|
+
export {
|
|
176
|
+
OverlayContext,
|
|
177
|
+
PortalContainer,
|
|
178
|
+
positionerProps,
|
|
179
|
+
useOpenedOnce,
|
|
180
|
+
useOverlay,
|
|
181
|
+
useOverlayRoot,
|
|
182
|
+
usePortalContainer,
|
|
183
|
+
}
|