@justanarthur/modo-ui 2.3.0 → 2.5.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/index.tsx +48 -1
- 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 +11 -11
- package/dist/blocks/sidebar-app/index.js +14 -14
- package/dist/components/actions/copy/index.js +3 -3
- package/dist/components/containers/accordion/index.js +5 -5
- package/dist/components/containers/card/index.js +4 -4
- package/dist/components/data-display/diff/index.d.ts +1 -1
- package/dist/components/data-display/diff/index.js +2 -2
- package/dist/components/data-display/markdown/index.js +7 -7
- package/dist/components/data-display/table/index.js +4 -4
- package/dist/components/inputs/checkbox/index.js +6 -6
- package/dist/components/inputs/choice-list/index.js +5 -5
- package/dist/components/inputs/color-picker/index.js +7 -7
- package/dist/components/inputs/combobox/index.js +7 -7
- package/dist/components/inputs/date-time/calendar/index.js +5 -5
- package/dist/components/inputs/date-time/date-picker/index.js +12 -12
- package/dist/components/inputs/date-time/date-range-picker/index.js +12 -12
- package/dist/components/inputs/date-time/duration-picker/index.js +11 -11
- package/dist/components/inputs/date-time/month-picker/index.js +10 -10
- package/dist/components/inputs/date-time/time-picker/index.js +11 -11
- package/dist/components/inputs/input/index.js +2 -2
- package/dist/components/inputs/key-value/index.js +3 -3
- package/dist/components/inputs/number-input/index.js +3 -3
- package/dist/components/inputs/radio/index.js +5 -5
- package/dist/components/inputs/search/index.js +8 -8
- package/dist/components/inputs/select/index.js +7 -7
- package/dist/components/inputs/switch/index.js +4 -4
- package/dist/components/navigation/breadcrumb/index.js +9 -9
- package/dist/components/navigation/navigation-menu/index.js +6 -6
- package/dist/components/navigation/pagination/index.js +5 -5
- package/dist/components/navigation/sidebar/index.js +10 -10
- package/dist/components/navigation/tabs/index.js +4 -4
- package/dist/components/navigation/tree/index.js +5 -5
- package/dist/components/overlays/alert-dialog/index.js +3 -3
- package/dist/components/overlays/command/index.d.ts +6 -3
- package/dist/components/overlays/command/index.js +7 -7
- package/dist/components/overlays/context-menu/index.js +9 -9
- package/dist/components/overlays/dialog/index.js +2 -2
- package/dist/components/overlays/dropdown/index.js +8 -8
- package/dist/components/overlays/popover/index.js +2 -2
- package/dist/components/overlays/preview-card/index.js +2 -2
- package/dist/components/overlays/sheet/index.js +3 -3
- package/dist/components/overlays/tooltip/index.js +2 -2
- package/dist/docs/index.js +11 -11
- package/dist/index.d.ts +12 -6
- package/dist/index.js +55 -55
- package/dist/lib/fluid-hover-highlight.js +3 -2
- package/dist/lib/focus-ring.d.ts +5 -2
- package/dist/lib/focus-ring.js +2 -1
- package/dist/lib/goo-indicator.d.ts +5 -2
- package/dist/lib/goo-indicator.js +2 -1
- package/dist/lib/overlay.d.ts +8 -1
- package/dist/lib/overlay.js +3 -1
- package/dist/lib/scroll-column.js +4 -4
- 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 +3 -2
- package/dist/primitives/content/code/index.js +2 -2
- package/dist/primitives/layout/scroll-area/index.js +1 -1
- package/dist/primitives/systems/fluid-hover/index.js +4 -4
- package/dist/shared/{components-7xc2dne4.js → components-0ep66sg9.js} +5 -5
- package/dist/shared/{components-agjpst9b.js → components-0v4jxw7z.js} +1 -1
- package/dist/shared/{components-a3brpprb.js → components-1qw8hqwq.js} +7 -7
- package/dist/shared/{components-7c4a0egq.js → components-21hcwp85.js} +78 -43
- package/dist/shared/{components-fjg4j430.js → components-2c22zpm2.js} +2 -2
- package/dist/shared/{components-kz6ak6kj.js → components-3qcgeay1.js} +2 -2
- package/dist/shared/{components-8ybvpebx.js → components-4d0v8nzm.js} +59 -19
- package/dist/shared/{components-e52xgvd9.js → components-4fay97sm.js} +7 -7
- package/dist/shared/{components-fxw1122w.js → components-4fhjk3jz.js} +2 -2
- package/dist/shared/{components-czvraaw9.js → components-4m9stj7d.js} +10 -10
- package/dist/shared/{components-y4gsk1jt.js → components-5w7hxa1n.js} +1 -1
- package/dist/shared/{components-c515d6xr.js → components-5wykqxph.js} +6 -1
- package/dist/shared/{components-7g2q2ccp.js → components-66aw235e.js} +6 -6
- package/dist/shared/{components-z87sanbc.js → components-766w1xcw.js} +4 -4
- package/dist/shared/{components-8e0fjgm9.js → components-7rn454aq.js} +11 -2
- package/dist/shared/{components-2tw25pk6.js → components-895m1f3s.js} +7 -7
- package/dist/shared/{components-h8v9nh5r.js → components-8dgrpegd.js} +16 -4
- package/dist/shared/{components-m7d7r3r8.js → components-8hzwz162.js} +2 -2
- package/dist/shared/{components-b7p1pjcm.js → components-8m5e493q.js} +1 -1
- package/dist/shared/{components-rzy6h7s4.js → components-8nnhzeb3.js} +5 -5
- package/dist/shared/{components-1hga6pkn.js → components-8xe4h118.js} +5 -5
- package/dist/shared/{components-83jn0raj.js → components-9am5511q.js} +3 -3
- package/dist/shared/{components-g35n8tzm.js → components-9b2m90st.js} +1 -1
- package/dist/shared/{components-2bq4ng4d.js → components-9yrajpy0.js} +1 -1
- package/dist/shared/{components-mvwf8ckh.js → components-ac0x7zpq.js} +2 -2
- package/dist/shared/{components-q7zk70tx.js → components-af44r4y9.js} +1 -1
- package/dist/shared/{components-2v4mmw1s.js → components-b2fag579.js} +212 -121
- package/dist/shared/{components-ex2xtqv7.js → components-br6t88cb.js} +1 -1
- package/dist/shared/{components-z0kz9rxj.js → components-bxqmbcz2.js} +6 -2
- package/dist/shared/{components-e7zxwja1.js → components-d4gkhy26.js} +1 -1
- package/dist/shared/{components-w1ysefg1.js → components-eawe4nxm.js} +1 -1
- package/dist/shared/{components-1sbnbq6a.js → components-fpgfs01m.js} +1 -1
- package/dist/shared/{components-tcm3k3wj.js → components-ft5dgjg6.js} +9 -2
- package/dist/shared/{components-6g8a5nrs.js → components-fymenepq.js} +7 -7
- package/dist/shared/{components-k2gg1agj.js → components-gzve0nkp.js} +4 -4
- package/dist/shared/{components-k25zw9g8.js → components-hjk6dwsp.js} +1 -1
- package/dist/shared/{components-6xtntksc.js → components-jnjw9j2z.js} +9 -9
- package/dist/shared/{components-9rebr89j.js → components-k8awpmbn.js} +2 -2
- package/dist/shared/{components-4fswe4kh.js → components-mb80a9wg.js} +1 -1
- package/dist/shared/{components-nh05qz8b.js → components-mzdbtgvz.js} +8 -8
- package/dist/shared/{components-x5v7e0fz.js → components-nmbcfwx8.js} +7 -7
- package/dist/shared/{components-01e24999.js → components-pfwjhxd8.js} +21 -11
- package/dist/shared/{components-nred2e6g.js → components-q28xct6t.js} +2 -2
- package/dist/shared/{components-etgpz4zk.js → components-qrtcc8aw.js} +3 -3
- package/dist/shared/{components-esy5nsvc.js → components-resqc2d2.js} +12 -0
- package/dist/shared/{components-gnsvnejm.js → components-rtwfh1gc.js} +2 -2
- package/dist/shared/{components-vykcfb5r.js → components-v1zzr668.js} +3 -3
- package/dist/shared/{components-5vezp3e5.js → components-vcmky8ns.js} +6 -6
- package/dist/shared/{components-27fatggq.js → components-y9se9mx5.js} +3 -3
- package/dist/shared/{components-9ca0c92a.js → components-yfx0skxc.js} +1 -1
- package/dist/shared/{components-eebf7f9c.js → components-z14s3avn.js} +9 -9
- package/dist/shared/{components-ta4e10mx.js → components-zckgawt6.js} +5 -5
- package/dist/styles.css +2 -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/scroll-area/index.tsx +20 -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";
|
|
@@ -17,7 +17,8 @@ import {
|
|
|
17
17
|
createContext,
|
|
18
18
|
useCallback,
|
|
19
19
|
useContext,
|
|
20
|
-
useMemo
|
|
20
|
+
useMemo,
|
|
21
|
+
useState
|
|
21
22
|
} from "react";
|
|
22
23
|
import { jsx } from "react/jsx-runtime";
|
|
23
24
|
var OverlayContext2 = createContext(null);
|
|
@@ -38,6 +39,12 @@ function useOverlay2(part) {
|
|
|
38
39
|
throw new Error(`${part} must be inside its overlay's root.`);
|
|
39
40
|
return state;
|
|
40
41
|
}
|
|
42
|
+
function useOpenedOnce2(open) {
|
|
43
|
+
const [opened, setOpened] = useState(open);
|
|
44
|
+
if (open && !opened)
|
|
45
|
+
setOpened(true);
|
|
46
|
+
return opened || open;
|
|
47
|
+
}
|
|
41
48
|
function positionerProps2({
|
|
42
49
|
side,
|
|
43
50
|
align,
|
|
@@ -71,4 +78,4 @@ function usePortalContainer2(container) {
|
|
|
71
78
|
const scoped = useContext(PortalContainerContext);
|
|
72
79
|
return container ?? scoped ?? undefined;
|
|
73
80
|
}
|
|
74
|
-
export { OverlayContext2, useOverlayRoot2, useOverlay2, positionerProps2, PortalContainer2, usePortalContainer2 };
|
|
81
|
+
export { OverlayContext2, useOverlayRoot2, useOverlay2, useOpenedOnce2, positionerProps2, PortalContainer2, usePortalContainer2 };
|
|
@@ -6,21 +6,25 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
spring2
|
|
8
8
|
} from "./components-45r18egt.js";
|
|
9
|
+
import {
|
|
10
|
+
useFluidHover2,
|
|
11
|
+
useRegisterFluidHoverItem2
|
|
12
|
+
} from "./components-21hcwp85.js";
|
|
9
13
|
import {
|
|
10
14
|
cn2
|
|
11
15
|
} from "./components-xnp09586.js";
|
|
12
16
|
import {
|
|
13
17
|
GooIndicator2
|
|
14
|
-
} from "./components-
|
|
18
|
+
} from "./components-bxqmbcz2.js";
|
|
15
19
|
import {
|
|
16
20
|
FluidHoverHighlight2
|
|
17
|
-
} from "./components-
|
|
21
|
+
} from "./components-9b2m90st.js";
|
|
18
22
|
import {
|
|
19
23
|
useShape2
|
|
20
24
|
} from "./components-kxpcj2ry.js";
|
|
21
25
|
import {
|
|
22
26
|
FocusRing2
|
|
23
|
-
} from "./components-
|
|
27
|
+
} from "./components-5wykqxph.js";
|
|
24
28
|
import {
|
|
25
29
|
useIcon2
|
|
26
30
|
} from "./components-jnhpgpfk.js";
|
|
@@ -33,10 +37,6 @@ import {
|
|
|
33
37
|
import {
|
|
34
38
|
useControllableState2
|
|
35
39
|
} from "./components-wwd093xg.js";
|
|
36
|
-
import {
|
|
37
|
-
useFluidHover2,
|
|
38
|
-
useRegisterFluidHoverItem2
|
|
39
|
-
} from "./components-7c4a0egq.js";
|
|
40
40
|
import {
|
|
41
41
|
WeightLabel2
|
|
42
42
|
} from "./components-y09nr7fe.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
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";
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
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";
|
|
@@ -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";
|
|
@@ -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
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,
|
|
@@ -63,16 +67,12 @@ import {
|
|
|
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";
|
|
73
73
|
import {
|
|
74
74
|
ScrollArea2
|
|
75
|
-
} from "./components-
|
|
75
|
+
} from "./components-resqc2d2.js";
|
|
76
76
|
import {
|
|
77
77
|
SizeScope2
|
|
78
78
|
} from "./components-nz14rwtd.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./components-xnp09586.js";
|
|
9
9
|
import {
|
|
10
10
|
Code2
|
|
11
|
-
} from "./components-
|
|
11
|
+
} from "./components-5w7hxa1n.js";
|
|
12
12
|
import {
|
|
13
13
|
table_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-0ep66sg9.js";
|
|
15
15
|
|
|
16
16
|
// components/data-display/markdown/index.tsx
|
|
17
17
|
import { Lexer } from "marked";
|
|
@@ -31,15 +31,19 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
Slider2
|
|
33
33
|
} from "./components-vx286kq7.js";
|
|
34
|
+
import {
|
|
35
|
+
useFluidHover2,
|
|
36
|
+
useRegisterFluidHoverItem2
|
|
37
|
+
} from "./components-21hcwp85.js";
|
|
34
38
|
import {
|
|
35
39
|
useMorph2
|
|
36
40
|
} from "./components-8pnvkrbw.js";
|
|
37
41
|
import {
|
|
38
42
|
FluidHoverHighlight2
|
|
39
|
-
} from "./components-
|
|
43
|
+
} from "./components-9b2m90st.js";
|
|
40
44
|
import {
|
|
41
45
|
FocusRing2
|
|
42
|
-
} from "./components-
|
|
46
|
+
} from "./components-5wykqxph.js";
|
|
43
47
|
import {
|
|
44
48
|
useIcon2
|
|
45
49
|
} from "./components-jnhpgpfk.js";
|
|
@@ -50,7 +54,7 @@ import {
|
|
|
50
54
|
positionerProps2,
|
|
51
55
|
PortalContainer2,
|
|
52
56
|
usePortalContainer2
|
|
53
|
-
} from "./components-
|
|
57
|
+
} from "./components-ft5dgjg6.js";
|
|
54
58
|
import {
|
|
55
59
|
POPUP_SHAPE2
|
|
56
60
|
} from "./components-mse06t0x.js";
|
|
@@ -60,16 +64,12 @@ import {
|
|
|
60
64
|
import {
|
|
61
65
|
useRowFocus2
|
|
62
66
|
} from "./components-vcte8p75.js";
|
|
63
|
-
import {
|
|
64
|
-
useFluidHover2,
|
|
65
|
-
useRegisterFluidHoverItem2
|
|
66
|
-
} from "./components-7c4a0egq.js";
|
|
67
67
|
import {
|
|
68
68
|
WeightLabel2
|
|
69
69
|
} from "./components-y09nr7fe.js";
|
|
70
70
|
import {
|
|
71
71
|
Tooltip2
|
|
72
|
-
} from "./components-
|
|
72
|
+
} from "./components-7rn454aq.js";
|
|
73
73
|
import {
|
|
74
74
|
clamp012,
|
|
75
75
|
hsvToRgb2,
|
|
@@ -6,18 +6,22 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
spring2
|
|
8
8
|
} from "./components-45r18egt.js";
|
|
9
|
+
import {
|
|
10
|
+
useFluidHover2,
|
|
11
|
+
useRegisterFluidHoverItem2
|
|
12
|
+
} from "./components-21hcwp85.js";
|
|
9
13
|
import {
|
|
10
14
|
cn2
|
|
11
15
|
} from "./components-xnp09586.js";
|
|
12
16
|
import {
|
|
13
17
|
FluidHoverHighlight2
|
|
14
|
-
} from "./components-
|
|
18
|
+
} from "./components-9b2m90st.js";
|
|
15
19
|
import {
|
|
16
20
|
useShape2
|
|
17
21
|
} from "./components-kxpcj2ry.js";
|
|
18
22
|
import {
|
|
19
23
|
FocusRing2
|
|
20
|
-
} from "./components-
|
|
24
|
+
} from "./components-5wykqxph.js";
|
|
21
25
|
import {
|
|
22
26
|
useIcon2
|
|
23
27
|
} from "./components-jnhpgpfk.js";
|
|
@@ -38,15 +42,11 @@ import {
|
|
|
38
42
|
import {
|
|
39
43
|
useControllableState2
|
|
40
44
|
} from "./components-wwd093xg.js";
|
|
41
|
-
import {
|
|
42
|
-
useFluidHover2,
|
|
43
|
-
useRegisterFluidHoverItem2
|
|
44
|
-
} from "./components-7c4a0egq.js";
|
|
45
45
|
import {
|
|
46
46
|
useSelectionRuns2,
|
|
47
47
|
useMergeSplitBlocks2,
|
|
48
48
|
SelectionBackgrounds2
|
|
49
|
-
} from "./components-
|
|
49
|
+
} from "./components-eawe4nxm.js";
|
|
50
50
|
import {
|
|
51
51
|
WeightLabel2
|
|
52
52
|
} from "./components-y09nr7fe.js";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
useFluidHover2,
|
|
5
|
+
useRegisterFluidHoverItem2
|
|
6
|
+
} from "./components-21hcwp85.js";
|
|
3
7
|
import {
|
|
4
8
|
useMorph2
|
|
5
9
|
} from "./components-8pnvkrbw.js";
|
|
@@ -8,13 +12,13 @@ import {
|
|
|
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
|
FocusRing2
|
|
17
|
-
} from "./components-
|
|
21
|
+
} from "./components-5wykqxph.js";
|
|
18
22
|
import {
|
|
19
23
|
useMergeRefs2
|
|
20
24
|
} from "./components-bkwjvvkh.js";
|
|
@@ -25,9 +29,10 @@ import {
|
|
|
25
29
|
OverlayContext2,
|
|
26
30
|
useOverlayRoot2,
|
|
27
31
|
useOverlay2,
|
|
32
|
+
useOpenedOnce2,
|
|
28
33
|
positionerProps2,
|
|
29
34
|
usePortalContainer2
|
|
30
|
-
} from "./components-
|
|
35
|
+
} from "./components-ft5dgjg6.js";
|
|
31
36
|
import {
|
|
32
37
|
POPUP_SHAPE2,
|
|
33
38
|
popupScrollAreaClass2,
|
|
@@ -58,15 +63,11 @@ import {
|
|
|
58
63
|
resolveSlotTemplate2,
|
|
59
64
|
slotElement2
|
|
60
65
|
} from "./components-7wjkag2j.js";
|
|
61
|
-
import {
|
|
62
|
-
useFluidHover2,
|
|
63
|
-
useRegisterFluidHoverItem2
|
|
64
|
-
} from "./components-7c4a0egq.js";
|
|
65
66
|
import {
|
|
66
67
|
useSelectionRuns2,
|
|
67
68
|
useMergeSplitBlocks2,
|
|
68
69
|
SelectionBackgrounds2
|
|
69
|
-
} from "./components-
|
|
70
|
+
} from "./components-eawe4nxm.js";
|
|
70
71
|
import {
|
|
71
72
|
SizeScope2
|
|
72
73
|
} from "./components-nz14rwtd.js";
|
|
@@ -90,7 +91,7 @@ import {
|
|
|
90
91
|
} from "./components-nxqrw789.js";
|
|
91
92
|
import {
|
|
92
93
|
ScrollArea2
|
|
93
|
-
} from "./components-
|
|
94
|
+
} from "./components-resqc2d2.js";
|
|
94
95
|
|
|
95
96
|
// components/overlays/dropdown/index.tsx
|
|
96
97
|
import { Menu as Menu4 } from "@base-ui/react/menu";
|
|
@@ -729,7 +730,7 @@ function renderMenuItem({
|
|
|
729
730
|
children
|
|
730
731
|
});
|
|
731
732
|
}
|
|
732
|
-
var
|
|
733
|
+
var MenuPopupBody = forwardRef4(({
|
|
733
734
|
part,
|
|
734
735
|
positioner,
|
|
735
736
|
container,
|
|
@@ -931,6 +932,15 @@ var MenuPopup = forwardRef4(({
|
|
|
931
932
|
})
|
|
932
933
|
});
|
|
933
934
|
});
|
|
935
|
+
MenuPopupBody.displayName = "MenuPopupBody";
|
|
936
|
+
var MenuPopup = forwardRef4((props, ref) => {
|
|
937
|
+
const keepMounted = useContext4(KeepMountedContext) || (props.keepMounted ?? false);
|
|
938
|
+
const opened = useOpenedOnce2(useOverlay2(props.part).open);
|
|
939
|
+
return keepMounted || opened ? /* @__PURE__ */ jsx4(MenuPopupBody, {
|
|
940
|
+
ref,
|
|
941
|
+
...props
|
|
942
|
+
}) : null;
|
|
943
|
+
});
|
|
934
944
|
MenuPopup.displayName = "MenuPopup";
|
|
935
945
|
|
|
936
946
|
// components/overlays/dropdown/submenu.tsx
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
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";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
CommandListRoot2,
|
|
49
49
|
CommandShortcut2,
|
|
50
50
|
CommandList2
|
|
51
|
-
} from "./components-
|
|
51
|
+
} from "./components-4d0v8nzm.js";
|
|
52
52
|
|
|
53
53
|
// components/inputs/search/index.tsx
|
|
54
54
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
@@ -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";
|
|
@@ -24,6 +24,18 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
24
24
|
* MIT License © 2026 Micka Touillaud — fluidfunctionalism.com (notice: LICENSE.fluid-functionalism)
|
|
25
25
|
* Local changes: see PORTING.md.
|
|
26
26
|
*/
|
|
27
|
+
if (typeof CSS !== "undefined" && "registerProperty" in CSS) {
|
|
28
|
+
for (const edge of ["x-start", "x-end", "y-start", "y-end"]) {
|
|
29
|
+
try {
|
|
30
|
+
CSS.registerProperty({
|
|
31
|
+
name: `--scroll-area-overflow-${edge}`,
|
|
32
|
+
syntax: "<length>",
|
|
33
|
+
inherits: false,
|
|
34
|
+
initialValue: "0px"
|
|
35
|
+
});
|
|
36
|
+
} catch {}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
27
39
|
var ScrollAreaContext = createContext(false);
|
|
28
40
|
var ScrollArea2 = forwardRef(({ className, children, viewportClassName, orientation = "vertical", ...props }, ref) => {
|
|
29
41
|
const isTouch = useTouchPrimary2();
|
|
@@ -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";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
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
40
|
} from "./components-ycwhrqe1.js";
|
|
@@ -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";
|
|
@@ -59,10 +59,10 @@ import {
|
|
|
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,10 +32,6 @@ 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
37
|
} from "./components-nz14rwtd.js";
|
|
@@ -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";
|
|
@@ -34,19 +34,23 @@ import {
|
|
|
34
34
|
useOverlay2,
|
|
35
35
|
positionerProps2,
|
|
36
36
|
usePortalContainer2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-ft5dgjg6.js";
|
|
38
38
|
import {
|
|
39
39
|
SizeScope2
|
|
40
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";
|
|
@@ -65,18 +69,14 @@ import {
|
|
|
65
69
|
import {
|
|
66
70
|
PopupSurface2
|
|
67
71
|
} from "./components-nxqrw789.js";
|
|
68
|
-
import {
|
|
69
|
-
useFluidHover2,
|
|
70
|
-
useRegisterFluidHoverItem2
|
|
71
|
-
} from "./components-7c4a0egq.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
|
-
} from "./components-
|
|
79
|
+
} from "./components-resqc2d2.js";
|
|
80
80
|
|
|
81
81
|
// components/inputs/combobox/index.tsx
|
|
82
82
|
import { Combobox as ComboboxPrimitive3 } from "@base-ui/react/combobox";
|
|
@@ -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";
|
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; --ease-DEFAULT: cubic-bezier(0.4, 0, 0.2, 1); --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; --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; --container-sm: 24rem; --radius-xl: 0.75rem; --leading-relaxed: 1.625; --container-2xl: 42rem; --radius-md: 0.375rem; --radius-3xl: 1.5rem; --radius-DEFAULT: 0.25rem; --radius-none: 0; --ease-out: cubic-bezier(0, 0, 0.2, 1); --leading-tight: 1.25; --radius-sm: 0.25rem; --radius-2xl: 1rem; --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --radius-xs: 0.125rem; --leading-snug: 1.375; --leading-normal: 1.5; --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{
|
|
@@ -716,6 +716,7 @@
|
|
|
716
716
|
.\[\&_\*\]\:pointer-events-none *,
|
|
717
717
|
.aria-disabled\:pointer-events-none[aria-disabled="true"],
|
|
718
718
|
.data-\[disabled\]\:pointer-events-none[data-disabled],
|
|
719
|
+
.data-\[scrolling\]\:pointer-events-none[data-scrolling],
|
|
719
720
|
.pointer-events-none{pointer-events:none;}
|
|
720
721
|
.disabled\:pointer-events-none:disabled{pointer-events:none;}
|
|
721
722
|
.resize{resize:both;}
|