@justanarthur/modo-ui 2.5.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/desktop-shell/index.tsx +3 -2
- package/components/data-display/diff/index.tsx +5 -4
- package/components/data-display/markdown/index.tsx +6 -6
- package/components/inputs/editable-text/index.tsx +7 -2
- package/components/navigation/tabs/list.tsx +1 -5
- package/dist/blocks/desktop-shell/index.js +27 -27
- package/dist/blocks/sidebar-app/index.js +37 -37
- 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 +16 -16
- package/dist/components/containers/card/index.js +14 -14
- 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 +2 -1
- package/dist/components/data-display/diff/index.js +5 -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 +13 -13
- package/dist/components/inputs/choice-list/index.js +10 -10
- package/dist/components/inputs/color-picker/index.js +22 -22
- package/dist/components/inputs/combobox/index.js +22 -21
- package/dist/components/inputs/date-time/calendar/index.js +9 -9
- 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.d.ts +4 -1
- 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 +12 -12
- package/dist/components/inputs/search/index.js +24 -23
- package/dist/components/inputs/select/index.js +22 -21
- package/dist/components/inputs/slider/index.js +4 -4
- package/dist/components/inputs/switch/index.js +9 -9
- package/dist/components/inputs/textarea/index.js +5 -5
- package/dist/components/navigation/breadcrumb/index.js +25 -25
- package/dist/components/navigation/navigation-menu/index.js +17 -17
- package/dist/components/navigation/pagination/index.js +16 -16
- package/dist/components/navigation/sidebar/index.js +25 -25
- package/dist/components/navigation/tabs/index.js +13 -13
- package/dist/components/navigation/tree/index.js +9 -9
- package/dist/components/overlays/alert-dialog/index.js +15 -15
- package/dist/components/overlays/command/index.js +22 -21
- package/dist/components/overlays/context-menu/index.js +25 -25
- package/dist/components/overlays/dialog/index.js +14 -14
- package/dist/components/overlays/dropdown/index.js +24 -24
- 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 +18 -18
- package/dist/index.d.ts +19 -8
- package/dist/index.js +79 -79
- package/dist/lib/fluid-hover-highlight.js +4 -4
- package/dist/lib/focus-ring.js +2 -2
- package/dist/lib/goo-indicator.js +3 -3
- package/dist/lib/morph-layers.js +4 -4
- package/dist/lib/morph-part.js +2 -2
- package/dist/lib/overlay.js +4 -4
- package/dist/lib/popup-rows.js +2 -2
- package/dist/lib/popup-surface.js +7 -7
- package/dist/lib/scroll-column.js +6 -6
- package/dist/lib/use-autosize-textarea.d.ts +6 -4
- package/dist/lib/use-autosize-textarea.js +1 -1
- package/dist/lib/use-merge-split.js +4 -4
- package/dist/lib/use-morph.js +2 -2
- package/dist/primitives/content/code/index.d.ts +3 -1
- package/dist/primitives/content/code/index.js +4 -3
- package/dist/primitives/layout/resizable/index.js +2 -2
- package/dist/primitives/layout/scroll-area/index.d.ts +4 -1
- package/dist/primitives/layout/scroll-area/index.js +2 -1
- 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 +6 -6
- 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-yfx0skxc.js → components-07nbrsr5.js} +1 -1
- package/dist/shared/{components-jnjw9j2z.js → components-0t4a8wkh.js} +9 -9
- package/dist/shared/{components-qrtcc8aw.js → components-25mzyrp5.js} +3 -3
- package/dist/shared/{components-0ep66sg9.js → components-2amv2322.js} +2 -2
- package/dist/shared/{components-wq9hrera.js → components-313rmbxy.js} +2 -2
- package/dist/shared/{components-b2fag579.js → components-3pcrvb6c.js} +11 -11
- package/dist/shared/{components-8nnhzeb3.js → components-46cav8vk.js} +1 -1
- package/dist/shared/{components-mb80a9wg.js → components-4as7ke76.js} +3 -3
- package/dist/shared/{components-9yrajpy0.js → components-4k5gtrp0.js} +3 -3
- package/dist/shared/{components-8xe4h118.js → components-4resn8g6.js} +4 -7
- package/dist/shared/{components-v1zzr668.js → components-54cxavcc.js} +5 -5
- package/dist/shared/{components-resqc2d2.js → components-5fet4gqt.js} +59 -7
- package/dist/shared/{components-eawe4nxm.js → components-5gbczwgv.js} +2 -2
- package/dist/shared/{components-bxqmbcz2.js → components-5mhrz0bz.js} +1 -1
- package/dist/shared/{components-zckgawt6.js → components-6pnc6yff.js} +1 -1
- package/dist/shared/{components-t0c1rw40.js → components-7v6869ga.js} +1 -1
- package/dist/shared/components-7v6ncqfc.js +80 -0
- package/dist/shared/{components-zv63s4fh.js → components-85dz3xx3.js} +3 -3
- package/dist/shared/{components-4d0v8nzm.js → components-89gqy9dx.js} +4 -4
- package/dist/shared/{components-s2pnh8h9.js → components-8qkd3659.js} +1 -1
- package/dist/shared/{components-nxqrw789.js → components-90sfqz5t.js} +1 -1
- package/dist/shared/{components-1f5624hb.js → components-9hysh6d3.js} +1 -1
- package/dist/shared/{components-br6t88cb.js → components-9j2kfdje.js} +5 -5
- package/dist/shared/{components-fpgfs01m.js → components-9y6pt2jm.js} +3 -3
- package/dist/shared/{components-vcmky8ns.js → components-9zyw4da7.js} +3 -3
- package/dist/shared/{components-9b2m90st.js → components-a3twtgef.js} +1 -1
- package/dist/shared/{components-abqfs5fh.js → components-ajgwbabq.js} +4 -4
- package/dist/shared/{components-d4gkhy26.js → components-avxbkpyq.js} +1 -1
- package/dist/shared/{components-k8awpmbn.js → components-b189975f.js} +6 -6
- package/dist/shared/{components-4m9stj7d.js → components-b5cnztd6.js} +4 -4
- package/dist/shared/{components-3qcgeay1.js → components-b7a6s0cz.js} +2 -2
- package/dist/shared/{components-4fay97sm.js → components-cfegytd4.js} +7 -7
- package/dist/shared/{components-gr82tz50.js → components-d35g9d6b.js} +4 -3
- package/dist/shared/{components-ft5dgjg6.js → components-d83d42wc.js} +1 -1
- package/dist/shared/{components-766w1xcw.js → components-dkx9se7d.js} +6 -6
- package/dist/shared/{components-y9se9mx5.js → components-ea97qgh7.js} +3 -3
- package/dist/shared/{components-z14s3avn.js → components-f0qgww3t.js} +9 -9
- package/dist/shared/{components-8hzwz162.js → components-fk9m24pg.js} +8 -7
- package/dist/shared/{components-nmbcfwx8.js → components-frshs2x3.js} +4 -4
- package/dist/shared/{components-pfwjhxd8.js → components-h7mpem9e.js} +10 -10
- package/dist/shared/{components-8m5e493q.js → components-hz4vjjkb.js} +2 -2
- package/dist/shared/{components-1qw8hqwq.js → components-k7pvrn80.js} +5 -5
- package/dist/shared/{components-q28xct6t.js → components-kvfzrb1r.js} +5 -5
- package/dist/shared/{components-t4j0r23n.js → components-mamtvenk.js} +2 -2
- package/dist/shared/{components-fymenepq.js → components-mgdjq5zv.js} +4 -4
- package/dist/shared/{components-5w7hxa1n.js → components-p3nsjhbh.js} +10 -6
- package/dist/shared/{components-4t2cjav8.js → components-pgs3p035.js} +1 -1
- package/dist/shared/{components-3sb31vw5.js → components-ppc2dmxs.js} +1 -1
- package/dist/shared/{components-2c22zpm2.js → components-qsbcc57j.js} +3 -3
- package/dist/shared/{components-gd8gmr6w.js → components-rmhdr4g1.js} +1 -1
- package/dist/shared/{components-mzdbtgvz.js → components-smhnc4dt.js} +8 -8
- package/dist/shared/{components-4fhjk3jz.js → components-tn8m9wq7.js} +2 -2
- package/dist/shared/{components-0v4jxw7z.js → components-ts40dgzr.js} +3 -3
- package/dist/shared/{components-rtwfh1gc.js → components-twngan89.js} +3 -3
- package/dist/shared/{components-5xs8pkkj.js → components-w5p7mfb4.js} +1 -1
- package/dist/shared/{components-8dgrpegd.js → components-w8ffqns0.js} +4 -2
- package/dist/shared/{components-m3vxpz2z.js → components-wjxyscry.js} +1 -1
- package/dist/shared/{components-7rn454aq.js → components-xxrsqp60.js} +3 -3
- package/dist/shared/{components-895m1f3s.js → components-xzqh7g3t.js} +4 -4
- package/dist/shared/{components-af44r4y9.js → components-ycx7d6wx.js} +1 -1
- package/dist/shared/{components-ac0x7zpq.js → components-yjz0bbvj.js} +4 -4
- package/dist/shared/{components-hjk6dwsp.js → components-z52eyy5f.js} +2 -2
- package/dist/shared/{components-66aw235e.js → components-z93zp2tm.js} +3 -3
- package/dist/shared/{components-9am5511q.js → components-zef9ab75.js} +3 -3
- package/dist/shared/{components-gzve0nkp.js → components-zhsjckqd.js} +8 -8
- package/dist/shared/{components-3rt5c1qt.js → components-zk1tj5za.js} +3 -3
- package/dist/shared/{components-ypxst3cn.js → components-zwkqmb71.js} +1 -1
- package/dist/styles.css +2 -2
- package/lib/use-autosize-textarea.ts +65 -18
- package/package.json +6 -1
- package/primitives/content/code/index.tsx +11 -6
- package/primitives/layout/resizable/index.tsx +15 -6
- package/primitives/layout/scroll-area/examples.mdx +16 -0
- package/primitives/layout/scroll-area/index.tsx +69 -9
- package/dist/shared/components-vpkh6j83.js +0 -42
- /package/dist/shared/{components-jw45ck66.js → components-02683eqd.js} +0 -0
- /package/dist/shared/{components-5wykqxph.js → components-1r1b57ew.js} +0 -0
- /package/dist/shared/{components-ycwhrqe1.js → components-31pkxwfz.js} +0 -0
- /package/dist/shared/{components-q0hs5rqn.js → components-6c52v58g.js} +0 -0
- /package/dist/shared/{components-nz14rwtd.js → components-ffng9rpa.js} +0 -0
- /package/dist/shared/{components-vx286kq7.js → components-h9se5cz5.js} +0 -0
- /package/dist/shared/{components-knryyjme.js → components-hbqyf35a.js} +0 -0
- /package/dist/shared/{components-8pnvkrbw.js → components-mp7en54n.js} +0 -0
- /package/dist/shared/{components-pa43g2r2.js → components-wddr0r6a.js} +0 -0
- /package/dist/shared/{components-ymq8tbq9.js → components-wqac4434.js} +0 -0
- /package/dist/shared/{components-92mvpt9h.js → components-zwgxvktt.js} +0 -0
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
useMorphOrigin2,
|
|
14
14
|
useMorph2
|
|
15
|
-
} from "./components-
|
|
15
|
+
} from "./components-mp7en54n.js";
|
|
16
16
|
import {
|
|
17
17
|
cn2
|
|
18
18
|
} from "./components-xnp09586.js";
|
|
19
19
|
import {
|
|
20
20
|
positionerProps2,
|
|
21
21
|
usePortalContainer2
|
|
22
|
-
} from "./components-
|
|
22
|
+
} from "./components-d83d42wc.js";
|
|
23
23
|
import {
|
|
24
24
|
POPUP_SHAPE2
|
|
25
25
|
} from "./components-mse06t0x.js";
|
|
@@ -28,25 +28,25 @@ import {
|
|
|
28
28
|
} from "./components-kxpcj2ry.js";
|
|
29
29
|
import {
|
|
30
30
|
PopupSurface2
|
|
31
|
-
} from "./components-
|
|
31
|
+
} from "./components-90sfqz5t.js";
|
|
32
32
|
import {
|
|
33
33
|
useSize2
|
|
34
34
|
} from "./components-znspksk0.js";
|
|
35
35
|
import {
|
|
36
36
|
SizeScope2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-ffng9rpa.js";
|
|
38
38
|
import {
|
|
39
39
|
useFluidHover2
|
|
40
40
|
} from "./components-21hcwp85.js";
|
|
41
41
|
import {
|
|
42
42
|
GooIndicator2
|
|
43
|
-
} from "./components-
|
|
43
|
+
} from "./components-5mhrz0bz.js";
|
|
44
44
|
import {
|
|
45
45
|
FluidHoverHighlight2
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-a3twtgef.js";
|
|
47
47
|
import {
|
|
48
48
|
FocusRing2
|
|
49
|
-
} from "./components-
|
|
49
|
+
} from "./components-1r1b57ew.js";
|
|
50
50
|
import {
|
|
51
51
|
mergeRefs2,
|
|
52
52
|
useMergeRefs2
|
|
@@ -180,16 +180,17 @@ var Resizable2 = forwardRef(({ direction = "horizontal", sizes, onSizesChange, s
|
|
|
180
180
|
const id = useId();
|
|
181
181
|
const items = Children.toArray(children);
|
|
182
182
|
const panels = items.filter((child) => isValidElement(child) && child.type === ResizablePanel2);
|
|
183
|
-
const
|
|
183
|
+
const limitKey = panels.map(({ props }) => `${props.minSize}:${props.maxSize}:${props.collapsible}`).join();
|
|
184
|
+
const limits = useMemo(() => panels.map(({ props }) => ({
|
|
184
185
|
min: props.minSize ?? 0,
|
|
185
186
|
max: props.maxSize ?? 100,
|
|
186
187
|
collapsible: props.collapsible ?? false
|
|
187
|
-
}));
|
|
188
|
+
})), [limitKey]);
|
|
188
189
|
const sizeKey = panels.map(({ props }) => props.defaultSize).join();
|
|
189
190
|
const defaults = useMemo(() => defaultSizes(panels.map(({ props }) => props.defaultSize)), [sizeKey]);
|
|
190
191
|
const [current, setCurrent] = useControllableState2(sizes, defaults, onSizesChange);
|
|
191
192
|
const [dragging, setDragging] = useState(false);
|
|
192
|
-
const group = { id, direction, sizes: current, limits, defaults, step, setSizes: setCurrent, dragging, setDragging };
|
|
193
|
+
const group = useMemo(() => ({ id, direction, sizes: current, limits, defaults, step, setSizes: setCurrent, dragging, setDragging }), [id, direction, current, limits, defaults, step, setCurrent, dragging]);
|
|
193
194
|
let panel = -1;
|
|
194
195
|
const indexed = items.map((child) => {
|
|
195
196
|
if (!isValidElement(child))
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
12
12
|
import {
|
|
13
13
|
button_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-31pkxwfz.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-3pcrvb6c.js";
|
|
26
26
|
import {
|
|
27
27
|
tooltip_default
|
|
28
|
-
} from "./components-
|
|
28
|
+
} from "./components-xxrsqp60.js";
|
|
29
29
|
import {
|
|
30
30
|
MenuItem2,
|
|
31
31
|
DropdownMenu2,
|
|
32
32
|
DropdownTrigger2,
|
|
33
33
|
DropdownContent2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-h7mpem9e.js";
|
|
35
35
|
import {
|
|
36
36
|
card_default
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-twngan89.js";
|
|
38
38
|
import {
|
|
39
39
|
badge_default
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-02683eqd.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-6pnc6yff.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-zhsjckqd.js";
|
|
20
20
|
import {
|
|
21
21
|
pad,
|
|
22
22
|
minuteOptions
|
|
23
|
-
} from "./components-
|
|
23
|
+
} from "./components-avxbkpyq.js";
|
|
24
24
|
|
|
25
25
|
// components/inputs/date-time/duration-picker/index.tsx
|
|
26
26
|
import { formatDuration } from "date-fns";
|
|
@@ -27,17 +27,17 @@ import {
|
|
|
27
27
|
} from "./components-45r18egt.js";
|
|
28
28
|
import {
|
|
29
29
|
useMorph2
|
|
30
|
-
} from "./components-
|
|
30
|
+
} from "./components-mp7en54n.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-d83d42wc.js";
|
|
38
38
|
import {
|
|
39
39
|
SizeScope2
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-ffng9rpa.js";
|
|
41
41
|
import {
|
|
42
42
|
useIcon2
|
|
43
43
|
} from "./components-jnhpgpfk.js";
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
} from "./components-21hcwp85.js";
|
|
48
48
|
import {
|
|
49
49
|
GooIndicator2
|
|
50
|
-
} from "./components-
|
|
50
|
+
} from "./components-5mhrz0bz.js";
|
|
51
51
|
import {
|
|
52
52
|
FluidHoverHighlight2
|
|
53
|
-
} from "./components-
|
|
53
|
+
} from "./components-a3twtgef.js";
|
|
54
54
|
import {
|
|
55
55
|
useMergeRefs2
|
|
56
56
|
} from "./components-bkwjvvkh.js";
|
|
@@ -65,18 +65,18 @@ import {
|
|
|
65
65
|
rowLabelBoxClass2,
|
|
66
66
|
RowIcon2,
|
|
67
67
|
CheckMark2
|
|
68
|
-
} from "./components-
|
|
68
|
+
} from "./components-6c52v58g.js";
|
|
69
69
|
import {
|
|
70
70
|
PopupSurface2
|
|
71
|
-
} from "./components-
|
|
71
|
+
} from "./components-90sfqz5t.js";
|
|
72
72
|
import {
|
|
73
73
|
useSelectionRuns2,
|
|
74
74
|
useMergeSplitBlocks2,
|
|
75
75
|
SelectionBackgrounds2
|
|
76
|
-
} from "./components-
|
|
76
|
+
} from "./components-5gbczwgv.js";
|
|
77
77
|
import {
|
|
78
78
|
ScrollArea2
|
|
79
|
-
} from "./components-
|
|
79
|
+
} from "./components-5fet4gqt.js";
|
|
80
80
|
|
|
81
81
|
// components/inputs/combobox/index.tsx
|
|
82
82
|
import { Combobox as ComboboxPrimitive3 } from "@base-ui/react/combobox";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
12
12
|
import {
|
|
13
13
|
button_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-31pkxwfz.js";
|
|
15
15
|
import {
|
|
16
16
|
useControllableState2
|
|
17
17
|
} from "./components-wwd093xg.js";
|
|
@@ -29,22 +29,22 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
useSidebarShortcut,
|
|
31
31
|
sidebar_default
|
|
32
|
-
} from "./components-
|
|
32
|
+
} from "./components-3pcrvb6c.js";
|
|
33
33
|
import {
|
|
34
34
|
inertProps2
|
|
35
35
|
} from "./components-2myjk2zf.js";
|
|
36
36
|
import {
|
|
37
37
|
SizeProvider2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-ffng9rpa.js";
|
|
39
39
|
import {
|
|
40
40
|
tooltip_default
|
|
41
|
-
} from "./components-
|
|
41
|
+
} from "./components-xxrsqp60.js";
|
|
42
42
|
import {
|
|
43
43
|
resizable_default
|
|
44
|
-
} from "./components-
|
|
44
|
+
} from "./components-d35g9d6b.js";
|
|
45
45
|
|
|
46
46
|
// blocks/desktop-shell/index.tsx
|
|
47
|
-
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
47
|
+
import { useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
48
48
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
49
49
|
var CORNER_CLEARANCE = {
|
|
50
50
|
default: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:pt-9",
|
|
@@ -165,6 +165,7 @@ function DesktopShell2({
|
|
|
165
165
|
const hasRight = right !== undefined;
|
|
166
166
|
const paneOpen = hasRight && rightOpen;
|
|
167
167
|
const inCard = titleBar === "card";
|
|
168
|
+
const paneSizes = useMemo(() => paneOpen ? [100 - paneSize, paneSize] : [100, 0], [paneOpen, paneSize]);
|
|
168
169
|
const root = useRef(null);
|
|
169
170
|
const [narrow, setNarrow] = useState(false);
|
|
170
171
|
useLayoutEffect(() => {
|
|
@@ -271,7 +272,7 @@ function DesktopShell2({
|
|
|
271
272
|
/* @__PURE__ */ jsx("div", {
|
|
272
273
|
className: cn2("flex min-h-0 min-w-0 flex-1 py-2 pl-2 transition-[padding] duration-fast", hasLeft && leftOpen && "pl-0", (!hasRight || narrow) && "pr-2"),
|
|
273
274
|
children: !hasRight || narrow ? card(narrow && paneOpen ? right : main) : /* @__PURE__ */ jsxs(resizable_default, {
|
|
274
|
-
sizes:
|
|
275
|
+
sizes: paneSizes,
|
|
275
276
|
onSizesChange,
|
|
276
277
|
children: [
|
|
277
278
|
/* @__PURE__ */ jsx(resizable_default.Panel, {
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
} from "./components-xnp09586.js";
|
|
16
16
|
import {
|
|
17
17
|
FluidHoverHighlight2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-a3twtgef.js";
|
|
19
19
|
import {
|
|
20
20
|
useShape2
|
|
21
21
|
} from "./components-kxpcj2ry.js";
|
|
22
22
|
import {
|
|
23
23
|
FocusRing2
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-1r1b57ew.js";
|
|
25
25
|
import {
|
|
26
26
|
useIcon2
|
|
27
27
|
} from "./components-jnhpgpfk.js";
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
useSelectionRuns2,
|
|
47
47
|
useMergeSplitBlocks2,
|
|
48
48
|
SelectionBackgrounds2
|
|
49
|
-
} from "./components-
|
|
49
|
+
} from "./components-5gbczwgv.js";
|
|
50
50
|
import {
|
|
51
51
|
WeightLabel2
|
|
52
52
|
} from "./components-y09nr7fe.js";
|
|
53
53
|
import {
|
|
54
54
|
SizeScope2
|
|
55
|
-
} from "./components-
|
|
55
|
+
} from "./components-ffng9rpa.js";
|
|
56
56
|
|
|
57
57
|
// components/inputs/checkbox/index.tsx
|
|
58
58
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./components-21hcwp85.js";
|
|
7
7
|
import {
|
|
8
8
|
useMorph2
|
|
9
|
-
} from "./components-
|
|
9
|
+
} from "./components-mp7en54n.js";
|
|
10
10
|
import {
|
|
11
11
|
cn2
|
|
12
12
|
} from "./components-xnp09586.js";
|
|
13
13
|
import {
|
|
14
14
|
GooIndicator2
|
|
15
|
-
} from "./components-
|
|
15
|
+
} from "./components-5mhrz0bz.js";
|
|
16
16
|
import {
|
|
17
17
|
FluidHoverHighlight2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-a3twtgef.js";
|
|
19
19
|
import {
|
|
20
20
|
FocusRing2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-1r1b57ew.js";
|
|
22
22
|
import {
|
|
23
23
|
useMergeRefs2
|
|
24
24
|
} from "./components-bkwjvvkh.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useOpenedOnce2,
|
|
33
33
|
positionerProps2,
|
|
34
34
|
usePortalContainer2
|
|
35
|
-
} from "./components-
|
|
35
|
+
} from "./components-d83d42wc.js";
|
|
36
36
|
import {
|
|
37
37
|
POPUP_SHAPE2,
|
|
38
38
|
popupScrollAreaClass2,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
CheckMark2,
|
|
49
49
|
PopupLabel2,
|
|
50
50
|
PopupSeparator2
|
|
51
|
-
} from "./components-
|
|
51
|
+
} from "./components-6c52v58g.js";
|
|
52
52
|
import {
|
|
53
53
|
rowIndexOf2,
|
|
54
54
|
useRowGroup2
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
useSelectionRuns2,
|
|
68
68
|
useMergeSplitBlocks2,
|
|
69
69
|
SelectionBackgrounds2
|
|
70
|
-
} from "./components-
|
|
70
|
+
} from "./components-5gbczwgv.js";
|
|
71
71
|
import {
|
|
72
72
|
SizeScope2
|
|
73
|
-
} from "./components-
|
|
73
|
+
} from "./components-ffng9rpa.js";
|
|
74
74
|
import {
|
|
75
75
|
SURFACE_BG2
|
|
76
76
|
} from "./components-ceyn28cf.js";
|
|
@@ -88,10 +88,10 @@ import {
|
|
|
88
88
|
} from "./components-y09nr7fe.js";
|
|
89
89
|
import {
|
|
90
90
|
PopupSurface2
|
|
91
|
-
} from "./components-
|
|
91
|
+
} from "./components-90sfqz5t.js";
|
|
92
92
|
import {
|
|
93
93
|
ScrollArea2
|
|
94
|
-
} from "./components-
|
|
94
|
+
} from "./components-5fet4gqt.js";
|
|
95
95
|
|
|
96
96
|
// components/overlays/dropdown/index.tsx
|
|
97
97
|
import { Menu as Menu4 } from "@base-ui/react/menu";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
dividedColumns2,
|
|
19
19
|
ScrollColumn2
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-6pnc6yff.js";
|
|
21
21
|
import {
|
|
22
22
|
SizeScope2
|
|
23
|
-
} from "./components-
|
|
23
|
+
} from "./components-ffng9rpa.js";
|
|
24
24
|
|
|
25
25
|
// components/inputs/date-time/calendar/index.tsx
|
|
26
26
|
import { addDays, format as format2, isSameYear, startOfWeek } from "date-fns";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./components-xnp09586.js";
|
|
10
10
|
import {
|
|
11
11
|
GooIndicator2
|
|
12
|
-
} from "./components-
|
|
12
|
+
} from "./components-5mhrz0bz.js";
|
|
13
13
|
import {
|
|
14
14
|
FluidHoverHighlight2
|
|
15
|
-
} from "./components-
|
|
15
|
+
} from "./components-a3twtgef.js";
|
|
16
16
|
import {
|
|
17
17
|
useIcon2
|
|
18
18
|
} from "./components-jnhpgpfk.js";
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
} from "./components-y09nr7fe.js";
|
|
31
31
|
import {
|
|
32
32
|
SizeScope2
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-ffng9rpa.js";
|
|
34
34
|
import {
|
|
35
35
|
button_default
|
|
36
|
-
} from "./components-
|
|
36
|
+
} from "./components-31pkxwfz.js";
|
|
37
37
|
import {
|
|
38
38
|
Input2
|
|
39
|
-
} from "./components-
|
|
39
|
+
} from "./components-ycx7d6wx.js";
|
|
40
40
|
|
|
41
41
|
// components/navigation/pagination/index.tsx
|
|
42
42
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
} from "./components-45r18egt.js";
|
|
15
15
|
import {
|
|
16
16
|
useMorph2
|
|
17
|
-
} from "./components-
|
|
17
|
+
} from "./components-mp7en54n.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-d83d42wc.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-90sfqz5t.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-ffng9rpa.js";
|
|
47
47
|
import {
|
|
48
48
|
CommandListRoot2,
|
|
49
49
|
CommandShortcut2,
|
|
50
50
|
CommandList2
|
|
51
|
-
} from "./components-
|
|
51
|
+
} from "./components-89gqy9dx.js";
|
|
52
52
|
|
|
53
53
|
// components/inputs/search/index.tsx
|
|
54
54
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
} from "./components-45r18egt.js";
|
|
27
27
|
import {
|
|
28
28
|
button_default
|
|
29
|
-
} from "./components-
|
|
29
|
+
} from "./components-31pkxwfz.js";
|
|
30
30
|
import {
|
|
31
31
|
Spinner2,
|
|
32
32
|
progress_default
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-wqac4434.js";
|
|
34
34
|
import {
|
|
35
35
|
formatFileSize2,
|
|
36
36
|
dragVerdict2,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
} from "./components-xnp09586.js";
|
|
16
16
|
import {
|
|
17
17
|
GooIndicator2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-5mhrz0bz.js";
|
|
19
19
|
import {
|
|
20
20
|
FluidHoverHighlight2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-a3twtgef.js";
|
|
22
22
|
import {
|
|
23
23
|
useShape2
|
|
24
24
|
} from "./components-kxpcj2ry.js";
|
|
25
25
|
import {
|
|
26
26
|
FocusRing2
|
|
27
|
-
} from "./components-
|
|
27
|
+
} from "./components-1r1b57ew.js";
|
|
28
28
|
import {
|
|
29
29
|
useIcon2
|
|
30
30
|
} from "./components-jnhpgpfk.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./components-y09nr7fe.js";
|
|
43
43
|
import {
|
|
44
44
|
SizeScope2
|
|
45
|
-
} from "./components-
|
|
45
|
+
} from "./components-ffng9rpa.js";
|
|
46
46
|
|
|
47
47
|
// components/navigation/tree/index.tsx
|
|
48
48
|
import { AnimatePresence, motion } from "motion/react";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
12
12
|
import {
|
|
13
13
|
scroll_area_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-5fet4gqt.js";
|
|
15
15
|
|
|
16
16
|
// primitives/content/code/index.tsx
|
|
17
|
-
import { Fragment } from "react";
|
|
17
|
+
import { Fragment, useMemo } from "react";
|
|
18
18
|
import { parse } from "sugar-high/core";
|
|
19
19
|
import { lang, languages } from "sugar-high/lang";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -50,17 +50,21 @@ function Code2({
|
|
|
50
50
|
className
|
|
51
51
|
}) {
|
|
52
52
|
const level = useLift2(1);
|
|
53
|
-
const source = children.trim();
|
|
54
53
|
const id = lang(language);
|
|
54
|
+
const code = useMemo(() => {
|
|
55
|
+
const source = children.trim();
|
|
56
|
+
return /* @__PURE__ */ jsx("code", {
|
|
57
|
+
children: id && id !== "plaintext" ? highlight(source, id) : source
|
|
58
|
+
});
|
|
59
|
+
}, [children, id]);
|
|
55
60
|
return /* @__PURE__ */ jsx(scroll_area_default, {
|
|
61
|
+
native: true,
|
|
56
62
|
orientation: "horizontal",
|
|
57
63
|
viewportClassName: "scroll-fade-x",
|
|
58
64
|
className: cn2("rounded-xl", SURFACE_BG2[level], className),
|
|
59
65
|
children: /* @__PURE__ */ jsx("pre", {
|
|
60
66
|
className: "m-0 w-max min-w-full p-4 font-mono text-caption leading-relaxed text-foreground",
|
|
61
|
-
children:
|
|
62
|
-
children: id && id !== "plaintext" ? highlight(source, id) : source
|
|
63
|
-
})
|
|
67
|
+
children: code
|
|
64
68
|
})
|
|
65
69
|
});
|
|
66
70
|
}
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
OverlayContext2,
|
|
8
8
|
useOverlayRoot2
|
|
9
|
-
} from "./components-
|
|
9
|
+
} from "./components-d83d42wc.js";
|
|
10
10
|
import {
|
|
11
11
|
SizeScope2
|
|
12
|
-
} from "./components-
|
|
12
|
+
} from "./components-ffng9rpa.js";
|
|
13
13
|
import {
|
|
14
14
|
MenuItem2,
|
|
15
15
|
DropdownLabel2,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DropdownSubTrigger2,
|
|
19
19
|
DropdownSubContent2,
|
|
20
20
|
DropdownSeparator2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-h7mpem9e.js";
|
|
22
22
|
|
|
23
23
|
// components/overlays/context-menu/index.tsx
|
|
24
24
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./components-znspksk0.js";
|
|
22
22
|
import {
|
|
23
23
|
SizeScope2
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-ffng9rpa.js";
|
|
25
25
|
import {
|
|
26
26
|
mergeRefs2
|
|
27
27
|
} from "./components-bkwjvvkh.js";
|
|
@@ -30,20 +30,20 @@ import {
|
|
|
30
30
|
} from "./components-45r18egt.js";
|
|
31
31
|
import {
|
|
32
32
|
Slider2
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-h9se5cz5.js";
|
|
34
34
|
import {
|
|
35
35
|
useFluidHover2,
|
|
36
36
|
useRegisterFluidHoverItem2
|
|
37
37
|
} from "./components-21hcwp85.js";
|
|
38
38
|
import {
|
|
39
39
|
useMorph2
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-mp7en54n.js";
|
|
41
41
|
import {
|
|
42
42
|
FluidHoverHighlight2
|
|
43
|
-
} from "./components-
|
|
43
|
+
} from "./components-a3twtgef.js";
|
|
44
44
|
import {
|
|
45
45
|
FocusRing2
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-1r1b57ew.js";
|
|
47
47
|
import {
|
|
48
48
|
useIcon2
|
|
49
49
|
} from "./components-jnhpgpfk.js";
|
|
@@ -54,13 +54,13 @@ import {
|
|
|
54
54
|
positionerProps2,
|
|
55
55
|
PortalContainer2,
|
|
56
56
|
usePortalContainer2
|
|
57
|
-
} from "./components-
|
|
57
|
+
} from "./components-d83d42wc.js";
|
|
58
58
|
import {
|
|
59
59
|
POPUP_SHAPE2
|
|
60
60
|
} from "./components-mse06t0x.js";
|
|
61
61
|
import {
|
|
62
62
|
PopupSurface2
|
|
63
|
-
} from "./components-
|
|
63
|
+
} from "./components-90sfqz5t.js";
|
|
64
64
|
import {
|
|
65
65
|
useRowFocus2
|
|
66
66
|
} from "./components-vcte8p75.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./components-y09nr7fe.js";
|
|
70
70
|
import {
|
|
71
71
|
Tooltip2
|
|
72
|
-
} from "./components-
|
|
72
|
+
} from "./components-xxrsqp60.js";
|
|
73
73
|
import {
|
|
74
74
|
clamp012,
|
|
75
75
|
hsvToRgb2,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./components-29ebea21.js";
|
|
11
11
|
import {
|
|
12
12
|
ScrollColumn2
|
|
13
|
-
} from "./components-
|
|
13
|
+
} from "./components-6pnc6yff.js";
|
|
14
14
|
import {
|
|
15
15
|
useControllableState2
|
|
16
16
|
} from "./components-wwd093xg.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
columnsPopupClass,
|
|
20
20
|
ColumnsPanel,
|
|
21
21
|
PickerInput
|
|
22
|
-
} from "./components-
|
|
22
|
+
} from "./components-zhsjckqd.js";
|
|
23
23
|
|
|
24
24
|
// components/inputs/date-time/month-picker/index.tsx
|
|
25
25
|
import { format, startOfMonth } from "date-fns";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./components-bkwjvvkh.js";
|
|
6
6
|
import {
|
|
7
7
|
useMorph2
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-mp7en54n.js";
|
|
9
9
|
import {
|
|
10
10
|
cn2
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
useOverlay2,
|
|
16
16
|
positionerProps2,
|
|
17
17
|
usePortalContainer2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-d83d42wc.js";
|
|
19
19
|
import {
|
|
20
20
|
PopupSurface2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-90sfqz5t.js";
|
|
22
22
|
import {
|
|
23
23
|
slotPart2
|
|
24
24
|
} from "./components-7wjkag2j.js";
|