@justanarthur/modo-ui 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/desktop-shell/examples.mdx +40 -0
- package/blocks/desktop-shell/index.tsx +141 -8
- package/dist/blocks/desktop-shell/index.d.ts +15 -2
- package/dist/blocks/desktop-shell/index.js +23 -23
- package/dist/blocks/shell-card/index.js +3 -3
- package/dist/blocks/sidebar-app/index.js +33 -33
- package/dist/components/actions/button/index.js +3 -3
- package/dist/components/actions/button-group/index.js +23 -23
- package/dist/components/actions/copy/index.js +8 -8
- package/dist/components/containers/accordion/index.js +10 -10
- package/dist/components/containers/card/index.js +12 -12
- package/dist/components/data-display/avatar/index.js +4 -4
- package/dist/components/data-display/badge/index.js +3 -3
- package/dist/components/data-display/diff/index.js +4 -4
- package/dist/components/data-display/log-view/index.js +7 -7
- package/dist/components/data-display/markdown/index.js +11 -11
- package/dist/components/data-display/table/index.js +5 -5
- package/dist/components/feedback/empty-state/index.js +3 -3
- package/dist/components/feedback/meter/index.js +2 -2
- package/dist/components/feedback/progress/index.js +2 -2
- package/dist/components/feedback/status-dot/index.js +2 -2
- package/dist/components/inputs/checkbox/index.js +7 -7
- package/dist/components/inputs/choice-list/index.js +4 -4
- package/dist/components/inputs/color-picker/index.js +16 -16
- package/dist/components/inputs/combobox/index.js +15 -15
- package/dist/components/inputs/date-time/calendar/index.js +5 -5
- package/dist/components/inputs/date-time/date-picker/index.js +23 -23
- package/dist/components/inputs/date-time/date-range-picker/index.js +23 -23
- package/dist/components/inputs/date-time/duration-picker/index.js +22 -22
- package/dist/components/inputs/date-time/month-picker/index.js +21 -21
- package/dist/components/inputs/date-time/time-picker/index.js +22 -22
- package/dist/components/inputs/editable-text/index.js +4 -4
- package/dist/components/inputs/field/index.js +5 -5
- package/dist/components/inputs/file-dropzone/index.js +8 -8
- package/dist/components/inputs/input/index.js +6 -6
- package/dist/components/inputs/key-value/index.js +13 -13
- package/dist/components/inputs/number-input/index.js +8 -8
- package/dist/components/inputs/radio/index.js +5 -5
- package/dist/components/inputs/search/index.js +18 -18
- package/dist/components/inputs/select/index.js +16 -16
- package/dist/components/inputs/slider/index.js +4 -4
- package/dist/components/inputs/switch/index.js +5 -5
- package/dist/components/inputs/textarea/index.js +5 -5
- package/dist/components/navigation/breadcrumb/index.js +20 -20
- package/dist/components/navigation/navigation-menu/index.js +11 -11
- package/dist/components/navigation/pagination/index.js +14 -14
- package/dist/components/navigation/sidebar/index.js +21 -21
- package/dist/components/navigation/tabs/index.js +6 -6
- package/dist/components/navigation/tree/index.js +5 -5
- package/dist/components/overlays/alert-dialog/index.js +12 -12
- package/dist/components/overlays/command/index.js +16 -16
- package/dist/components/overlays/context-menu/index.js +20 -20
- package/dist/components/overlays/dialog/index.js +11 -11
- package/dist/components/overlays/dropdown/index.js +19 -19
- package/dist/components/overlays/lightbox/index.js +9 -9
- package/dist/components/overlays/popover/index.js +6 -6
- package/dist/components/overlays/preview-card/index.js +6 -6
- package/dist/components/overlays/sheet/index.js +12 -12
- package/dist/components/overlays/toast/index.js +8 -8
- package/dist/components/overlays/tooltip/index.js +3 -3
- package/dist/docs/index.js +10 -10
- package/dist/index.d.ts +15 -2
- package/dist/index.js +72 -72
- package/dist/lib/field-box.js +3 -3
- package/dist/lib/overlay.js +2 -2
- package/dist/lib/popup-rows.js +2 -2
- package/dist/lib/popup-surface.js +3 -3
- package/dist/lib/scroll-column.js +3 -3
- package/dist/primitives/content/code/index.js +3 -3
- package/dist/primitives/content/skeleton/index.js +3 -3
- package/dist/primitives/layout/resizable/index.js +2 -2
- package/dist/primitives/layout/sortable/index.js +5 -5
- package/dist/primitives/systems/craft/index.js +4 -4
- package/dist/primitives/systems/fluid-hover/index.js +2 -2
- package/dist/primitives/systems/morph/index.js +8 -8
- package/dist/primitives/systems/motion/index.js +5 -5
- package/dist/shared/{components-d2g9eqvc.js → components-0v4jxw7z.js} +2 -2
- package/dist/shared/{components-kakwfp1e.js → components-1f5624hb.js} +1 -1
- package/dist/shared/{components-4e75p7kh.js → components-1qw8hqwq.js} +2 -2
- package/dist/shared/{components-vv9m9h0q.js → components-2e77rzb8.js} +1 -1
- package/dist/shared/{components-dz05031c.js → components-3qcgeay1.js} +2 -2
- package/dist/shared/{components-n9qea1d1.js → components-3rt5c1qt.js} +1 -1
- package/dist/shared/{components-hf63wka1.js → components-3sb31vw5.js} +1 -1
- package/dist/shared/{components-dw1s0b46.js → components-4fay97sm.js} +2 -2
- package/dist/shared/{components-zfntvdd3.js → components-4fhjk3jz.js} +2 -2
- package/dist/shared/{components-gmmht6k5.js → components-7rn454aq.js} +1 -1
- package/dist/shared/{components-c5p6yy1m.js → components-8m5e493q.js} +1 -1
- package/dist/shared/{components-xe82mrwa.js → components-8swhfkqn.js} +1 -1
- package/dist/shared/{components-vhq03vx2.js → components-94vd4ck1.js} +3 -3
- package/dist/shared/{components-0vhacjrk.js → components-9am5511q.js} +3 -3
- package/dist/shared/{components-m78c04dv.js → components-9c3m65ft.js} +3 -3
- package/dist/shared/{components-8kkkrf36.js → components-9yrajpy0.js} +2 -2
- package/dist/shared/{components-1ck8ct1k.js → components-a8bcq2yc.js} +4 -4
- package/dist/shared/{components-4qfzzdvj.js → components-abqfs5fh.js} +1 -1
- package/dist/shared/{components-wvxkfhdc.js → components-ac0x7zpq.js} +3 -3
- package/dist/shared/{components-fekj7940.js → components-af44r4y9.js} +1 -1
- package/dist/shared/{components-mpeg6ca5.js → components-bkg1k36x.js} +3 -3
- package/dist/shared/{components-crjcbqrc.js → components-br6t88cb.js} +3 -3
- package/dist/shared/{components-pj564a3b.js → components-d4gkhy26.js} +1 -1
- package/dist/shared/{components-4dk61qbj.js → components-dk328yn5.js} +118 -15
- package/dist/shared/{components-f69fp3t5.js → components-faym1xm6.js} +4 -4
- package/dist/shared/{components-kek98pf2.js → components-fnvkq52e.js} +5 -5
- package/dist/shared/{components-1t36jzn1.js → components-fpgfs01m.js} +1 -1
- package/dist/shared/{components-ee3zdrza.js → components-ftvy33w9.js} +1 -1
- package/dist/shared/{components-7phx24n6.js → components-fzmjcn38.js} +1 -1
- package/dist/shared/{components-z3wpmrpm.js → components-gd8gmr6w.js} +1 -1
- package/dist/shared/{components-ad7h5kmx.js → components-gzve0nkp.js} +7 -7
- package/dist/shared/{components-y84j8rjq.js → components-hjk6dwsp.js} +2 -2
- package/dist/shared/{components-mcxrkm27.js → components-mb80a9wg.js} +2 -2
- package/dist/shared/{components-wtvf17hc.js → components-qrtcc8aw.js} +4 -4
- package/dist/shared/{components-1dn3m7pk.js → components-rr3fa4e5.js} +2 -2
- package/dist/shared/{components-wb1a41ry.js → components-s0c8gngv.js} +2 -2
- package/dist/shared/{components-1zmyane5.js → components-s2pnh8h9.js} +1 -1
- package/dist/shared/{components-zzhq9dqb.js → components-t4j0r23n.js} +3 -3
- package/dist/shared/{components-rtbme03d.js → components-whfr55xn.js} +6 -6
- package/dist/shared/{components-z6nq4z0y.js → components-y9se9mx5.js} +3 -3
- package/dist/shared/{components-sas7m9kx.js → components-yfx0skxc.js} +2 -2
- package/dist/shared/{components-aa77h13m.js → components-z6wx8fzj.js} +2 -2
- package/dist/shared/{components-4xwf317r.js → components-zjeh9zk2.js} +2 -2
- package/dist/shared/{components-gpbavh9r.js → components-zv63s4fh.js} +1 -1
- package/dist/styles.css +28 -15
- package/package.json +1 -1
- /package/dist/shared/{components-a8bwyrxf.js → components-1hb27y2e.js} +0 -0
- /package/dist/shared/{components-ytqnnpab.js → components-1ztgy933.js} +0 -0
- /package/dist/shared/{components-jt66rs4y.js → components-3fg6vabb.js} +0 -0
- /package/dist/shared/{components-c2whzzwm.js → components-4m9stj7d.js} +0 -0
- /package/dist/shared/{components-wkszeber.js → components-4t2cjav8.js} +0 -0
- /package/dist/shared/{components-36x1fh6f.js → components-5xs8pkkj.js} +0 -0
- /package/dist/shared/{components-0qq4624z.js → components-60tf8tfa.js} +0 -0
- /package/dist/shared/{components-w3sey99z.js → components-895m1f3s.js} +0 -0
- /package/dist/shared/{components-w82bvqz6.js → components-8nnhzeb3.js} +0 -0
- /package/dist/shared/{components-gbcv8gwc.js → components-92mvpt9h.js} +0 -0
- /package/dist/shared/{components-485sbcf9.js → components-arg4h26d.js} +0 -0
- /package/dist/shared/{components-v2jc17ge.js → components-dx8f797z.js} +0 -0
- /package/dist/shared/{components-ez2psjey.js → components-fbs2602j.js} +0 -0
- /package/dist/shared/{components-jh0g2xr9.js → components-ft5dgjg6.js} +0 -0
- /package/dist/shared/{components-abm5e6pc.js → components-fymenepq.js} +0 -0
- /package/dist/shared/{components-q0qv0fen.js → components-hh1g7r3t.js} +0 -0
- /package/dist/shared/{components-4twh6d53.js → components-jw45ck66.js} +0 -0
- /package/dist/shared/{components-yb3rnzsc.js → components-knryyjme.js} +0 -0
- /package/dist/shared/{components-46zfd71x.js → components-nmbcfwx8.js} +0 -0
- /package/dist/shared/{components-a11ssex6.js → components-nxqrw789.js} +0 -0
- /package/dist/shared/{components-rkcqr15c.js → components-q0hs5rqn.js} +0 -0
- /package/dist/shared/{components-9mgb07je.js → components-qqm2y2cx.js} +0 -0
- /package/dist/shared/{components-s3ey5xrk.js → components-s4x951hj.js} +0 -0
- /package/dist/shared/{components-h9rgvt1w.js → components-swh0v27s.js} +0 -0
- /package/dist/shared/{components-kvbh10e4.js → components-vcmky8ns.js} +0 -0
- /package/dist/shared/{components-rtkrpv3p.js → components-ycwhrqe1.js} +0 -0
- /package/dist/shared/{components-kq3s7p1d.js → components-ymq8tbq9.js} +0 -0
- /package/dist/shared/{components-0mmjd6dt.js → components-zckgawt6.js} +0 -0
|
@@ -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
|
useControllableState2
|
|
17
17
|
} from "./components-wwd093xg.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
useSidebarShortcut,
|
|
31
31
|
sidebar_default
|
|
32
|
-
} from "./components-
|
|
32
|
+
} from "./components-bkg1k36x.js";
|
|
33
33
|
import {
|
|
34
34
|
inertProps2
|
|
35
35
|
} from "./components-2myjk2zf.js";
|
|
@@ -38,13 +38,20 @@ import {
|
|
|
38
38
|
} from "./components-nz14rwtd.js";
|
|
39
39
|
import {
|
|
40
40
|
tooltip_default
|
|
41
|
-
} from "./components-
|
|
41
|
+
} from "./components-7rn454aq.js";
|
|
42
42
|
import {
|
|
43
43
|
resizable_default
|
|
44
|
-
} from "./components-
|
|
44
|
+
} from "./components-fbs2602j.js";
|
|
45
45
|
|
|
46
46
|
// blocks/desktop-shell/index.tsx
|
|
47
|
-
import {
|
|
47
|
+
import {
|
|
48
|
+
useCallback,
|
|
49
|
+
useEffect,
|
|
50
|
+
useLayoutEffect,
|
|
51
|
+
useMemo,
|
|
52
|
+
useRef,
|
|
53
|
+
useState
|
|
54
|
+
} from "react";
|
|
48
55
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
49
56
|
var CORNER_CLEARANCE = {
|
|
50
57
|
default: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:pt-9",
|
|
@@ -55,6 +62,19 @@ var CORNER_ROOM = {
|
|
|
55
62
|
windows: "w-6 shrink-0",
|
|
56
63
|
linux: "w-6 shrink-0"
|
|
57
64
|
};
|
|
65
|
+
var PEEK_OVERLAY = "[&>[data-slot=sidebar]]:absolute [&>[data-slot=sidebar]]:inset-y-0 [&>[data-slot=sidebar]]:left-0 [&>[data-slot=sidebar]]:z-10 [&>[data-slot=sidebar]>div]:px-2 [&>[data-slot=sidebar]_[data-sidebar=sidebar]]:shadow-surface-3";
|
|
66
|
+
var PEEK_BG = {
|
|
67
|
+
4: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:bg-surface-4",
|
|
68
|
+
5: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:bg-surface-5",
|
|
69
|
+
6: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:bg-surface-6",
|
|
70
|
+
7: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:bg-surface-7",
|
|
71
|
+
8: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:bg-surface-8"
|
|
72
|
+
};
|
|
73
|
+
var PEEK_RADIUS = {
|
|
74
|
+
rounded: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:rounded-xl",
|
|
75
|
+
pill: "[&>[data-slot=sidebar]_[data-sidebar=sidebar]]:rounded-3xl"
|
|
76
|
+
};
|
|
77
|
+
var PEEK_CLOSE_MS = 300;
|
|
58
78
|
var NARROW = 768;
|
|
59
79
|
function Toggle({
|
|
60
80
|
label,
|
|
@@ -122,6 +142,58 @@ function WindowControls() {
|
|
|
122
142
|
]
|
|
123
143
|
});
|
|
124
144
|
}
|
|
145
|
+
function usePeek(enabled) {
|
|
146
|
+
const [open, setOpen] = useState(false);
|
|
147
|
+
const [overlay, setOverlay] = useState(false);
|
|
148
|
+
const sidebar = useRef(null);
|
|
149
|
+
const over = useRef(false);
|
|
150
|
+
const timer = useRef();
|
|
151
|
+
useEffect(() => {
|
|
152
|
+
if (enabled)
|
|
153
|
+
return;
|
|
154
|
+
clearTimeout(timer.current);
|
|
155
|
+
setOpen(false);
|
|
156
|
+
setOverlay(false);
|
|
157
|
+
}, [enabled]);
|
|
158
|
+
useEffect(() => () => clearTimeout(timer.current), []);
|
|
159
|
+
const close = () => {
|
|
160
|
+
clearTimeout(timer.current);
|
|
161
|
+
timer.current = setTimeout(() => {
|
|
162
|
+
if (!over.current && !sidebar.current?.contains(document.activeElement))
|
|
163
|
+
setOpen(false);
|
|
164
|
+
}, PEEK_CLOSE_MS);
|
|
165
|
+
};
|
|
166
|
+
const zone = (opens) => ({
|
|
167
|
+
"data-peek": "",
|
|
168
|
+
onPointerEnter: (event) => {
|
|
169
|
+
over.current = true;
|
|
170
|
+
clearTimeout(timer.current);
|
|
171
|
+
if (!opens || !enabled || event.pointerType !== "mouse")
|
|
172
|
+
return;
|
|
173
|
+
setOpen(true);
|
|
174
|
+
setOverlay(true);
|
|
175
|
+
},
|
|
176
|
+
onPointerLeave: (event) => {
|
|
177
|
+
if (event.relatedTarget instanceof Element && event.relatedTarget.closest("[data-peek]"))
|
|
178
|
+
return;
|
|
179
|
+
over.current = false;
|
|
180
|
+
close();
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
const onBlur = (event) => {
|
|
184
|
+
if (!(event.relatedTarget instanceof Node && event.currentTarget.contains(event.relatedTarget)))
|
|
185
|
+
close();
|
|
186
|
+
};
|
|
187
|
+
return {
|
|
188
|
+
enabled,
|
|
189
|
+
open: enabled && open,
|
|
190
|
+
overlay: enabled && overlay,
|
|
191
|
+
dismiss: () => setOpen(false),
|
|
192
|
+
sidebar,
|
|
193
|
+
zone,
|
|
194
|
+
onBlur
|
|
195
|
+
};
|
|
196
|
+
}
|
|
125
197
|
function MainCard({ children }) {
|
|
126
198
|
const level = useLift2(2);
|
|
127
199
|
const shape = useShape2();
|
|
@@ -147,6 +219,7 @@ function DesktopShell2({
|
|
|
147
219
|
leftOpen: leftOpenProp,
|
|
148
220
|
defaultLeftOpen = true,
|
|
149
221
|
onLeftOpenChange,
|
|
222
|
+
peek = true,
|
|
150
223
|
rightOpen: rightOpenProp,
|
|
151
224
|
defaultRightOpen = true,
|
|
152
225
|
onRightOpenChange,
|
|
@@ -165,6 +238,10 @@ function DesktopShell2({
|
|
|
165
238
|
const hasRight = right !== undefined;
|
|
166
239
|
const paneOpen = hasRight && rightOpen;
|
|
167
240
|
const inCard = titleBar === "card";
|
|
241
|
+
const shape = useShape2();
|
|
242
|
+
const substrate = useLift2(0);
|
|
243
|
+
const peekLevel = useLift2(3);
|
|
244
|
+
const peeking = usePeek(peek && hasLeft && !leftOpen);
|
|
168
245
|
const paneSizes = useMemo(() => paneOpen ? [100 - paneSize, paneSize] : [100, 0], [paneOpen, paneSize]);
|
|
169
246
|
const root = useRef(null);
|
|
170
247
|
const [narrow, setNarrow] = useState(false);
|
|
@@ -192,11 +269,15 @@ function DesktopShell2({
|
|
|
192
269
|
className: "flex h-full w-18 shrink-0 items-center",
|
|
193
270
|
children: showControls && /* @__PURE__ */ jsx(TrafficLights, {})
|
|
194
271
|
}),
|
|
195
|
-
hasLeft && /* @__PURE__ */ jsx(
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
272
|
+
hasLeft && /* @__PURE__ */ jsx("span", {
|
|
273
|
+
className: "contents",
|
|
274
|
+
...peeking.zone(true),
|
|
275
|
+
children: /* @__PURE__ */ jsx(Toggle, {
|
|
276
|
+
side: "left",
|
|
277
|
+
label: leftLabel,
|
|
278
|
+
open: leftOpen,
|
|
279
|
+
onClick: () => setLeftOpen(!leftOpen)
|
|
280
|
+
})
|
|
200
281
|
}),
|
|
201
282
|
leading
|
|
202
283
|
]
|
|
@@ -249,7 +330,8 @@ function DesktopShell2({
|
|
|
249
330
|
size: size.variant,
|
|
250
331
|
children: inCard ? /* @__PURE__ */ jsx("div", {
|
|
251
332
|
"data-tauri-drag-region": true,
|
|
252
|
-
className: cn2(bar, "absolute top-
|
|
333
|
+
className: cn2(bar, "absolute top-2 left-0 z-20"),
|
|
334
|
+
...peeking.zone(false),
|
|
253
335
|
children: corner
|
|
254
336
|
}) : /* @__PURE__ */ jsxs("header", {
|
|
255
337
|
"data-tauri-drag-region": true,
|
|
@@ -261,14 +343,35 @@ function DesktopShell2({
|
|
|
261
343
|
})
|
|
262
344
|
}),
|
|
263
345
|
/* @__PURE__ */ jsxs(sidebar_default.Provider, {
|
|
264
|
-
className:
|
|
346
|
+
className: "min-h-0 flex-1",
|
|
265
347
|
persist: false,
|
|
266
348
|
mobileBreakpoint: 0,
|
|
267
349
|
shortcut: hasLeft ? undefined : null,
|
|
268
|
-
open: leftOpen,
|
|
269
|
-
onOpenChange:
|
|
350
|
+
open: leftOpen || peeking.open,
|
|
351
|
+
onOpenChange: (open) => {
|
|
352
|
+
if (!open)
|
|
353
|
+
peeking.dismiss();
|
|
354
|
+
setLeftOpen(open);
|
|
355
|
+
},
|
|
270
356
|
children: [
|
|
271
|
-
|
|
357
|
+
peeking.enabled && /* @__PURE__ */ jsx("div", {
|
|
358
|
+
className: "absolute inset-y-0 left-0 z-10 w-2",
|
|
359
|
+
...peeking.zone(true)
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ jsx(SurfaceProvider2, {
|
|
362
|
+
value: peeking.overlay ? peekLevel : substrate,
|
|
363
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
364
|
+
ref: peeking.sidebar,
|
|
365
|
+
className: cn2("contents [&>[data-slot=sidebar]]:h-full", inCard && CORNER_CLEARANCE[size.variant], peeking.overlay && [
|
|
366
|
+
PEEK_OVERLAY,
|
|
367
|
+
PEEK_BG[peekLevel],
|
|
368
|
+
PEEK_RADIUS[shape.bgRadius >= 20 ? "pill" : "rounded"]
|
|
369
|
+
]),
|
|
370
|
+
onBlur: peeking.onBlur,
|
|
371
|
+
...peeking.zone(false),
|
|
372
|
+
children: left
|
|
373
|
+
})
|
|
374
|
+
}),
|
|
272
375
|
/* @__PURE__ */ jsx("div", {
|
|
273
376
|
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"),
|
|
274
377
|
children: !hasRight || narrow ? card(narrow && paneOpen ? right : main) : /* @__PURE__ */ jsxs(resizable_default, {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
useFieldState2,
|
|
17
17
|
useFieldBox2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-1ztgy933.js";
|
|
19
19
|
import {
|
|
20
20
|
useControllableState2
|
|
21
21
|
} from "./components-wwd093xg.js";
|
|
@@ -34,7 +34,7 @@ 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";
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
rowLabelBoxClass2,
|
|
66
66
|
RowIcon2,
|
|
67
67
|
CheckMark2
|
|
68
|
-
} from "./components-
|
|
68
|
+
} from "./components-q0hs5rqn.js";
|
|
69
69
|
import {
|
|
70
70
|
PopupSurface2
|
|
71
|
-
} from "./components-
|
|
71
|
+
} from "./components-nxqrw789.js";
|
|
72
72
|
import {
|
|
73
73
|
useSelectionRuns2,
|
|
74
74
|
useMergeSplitBlocks2,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./components-45r18egt.js";
|
|
31
31
|
import {
|
|
32
32
|
Slider2
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-qqm2y2cx.js";
|
|
34
34
|
import {
|
|
35
35
|
useFluidHover2,
|
|
36
36
|
useRegisterFluidHoverItem2
|
|
@@ -54,13 +54,13 @@ import {
|
|
|
54
54
|
positionerProps2,
|
|
55
55
|
PortalContainer2,
|
|
56
56
|
usePortalContainer2
|
|
57
|
-
} from "./components-
|
|
57
|
+
} from "./components-ft5dgjg6.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-nxqrw789.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-7rn454aq.js";
|
|
73
73
|
import {
|
|
74
74
|
clamp012,
|
|
75
75
|
hsvToRgb2,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
} from "./components-pa2t12j2.js";
|
|
87
87
|
import {
|
|
88
88
|
useFieldBox2
|
|
89
|
-
} from "./components-
|
|
89
|
+
} from "./components-1ztgy933.js";
|
|
90
90
|
|
|
91
91
|
// components/inputs/color-picker/index.tsx
|
|
92
92
|
import {
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./components-nwa2a9tq.js";
|
|
36
36
|
import {
|
|
37
37
|
Tooltip2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-7rn454aq.js";
|
|
39
39
|
|
|
40
40
|
// components/actions/copy/index.tsx
|
|
41
41
|
import { AnimatePresence, animate, motion, useMotionValue } from "motion/react";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useFieldState2,
|
|
14
14
|
useFieldBox2,
|
|
15
15
|
focusControlOnPress2
|
|
16
|
-
} from "./components-
|
|
16
|
+
} from "./components-1ztgy933.js";
|
|
17
17
|
import {
|
|
18
18
|
useIcon2
|
|
19
19
|
} from "./components-jnhpgpfk.js";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
useOverlayRoot2,
|
|
29
29
|
useOverlay2,
|
|
30
30
|
positionerProps2
|
|
31
|
-
} from "./components-
|
|
31
|
+
} from "./components-ft5dgjg6.js";
|
|
32
32
|
import {
|
|
33
33
|
PopupSurface2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-nxqrw789.js";
|
|
35
35
|
import {
|
|
36
36
|
dividedColumns2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-zckgawt6.js";
|
|
38
38
|
import {
|
|
39
39
|
useIsMobile2
|
|
40
40
|
} from "./components-8wp8d8q1.js";
|
|
@@ -43,15 +43,15 @@ import {
|
|
|
43
43
|
} from "./components-nz14rwtd.js";
|
|
44
44
|
import {
|
|
45
45
|
button_default
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-ycwhrqe1.js";
|
|
47
47
|
import {
|
|
48
48
|
sheet_default
|
|
49
|
-
} from "./components-
|
|
49
|
+
} from "./components-ac0x7zpq.js";
|
|
50
50
|
import {
|
|
51
51
|
InputAdornment2,
|
|
52
52
|
InputAction2,
|
|
53
53
|
input_default
|
|
54
|
-
} from "./components-
|
|
54
|
+
} from "./components-af44r4y9.js";
|
|
55
55
|
|
|
56
56
|
// components/inputs/date-time/picker-shell.tsx
|
|
57
57
|
import { Popover } from "@base-ui/react/popover";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./components-7wjkag2j.js";
|
|
6
6
|
import {
|
|
7
7
|
button_default
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-ycwhrqe1.js";
|
|
9
9
|
import {
|
|
10
10
|
DialogTrigger2,
|
|
11
11
|
DialogClose2,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
DialogTitle2,
|
|
16
16
|
DialogDescription2,
|
|
17
17
|
DialogState2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-br6t88cb.js";
|
|
19
19
|
|
|
20
20
|
// components/overlays/alert-dialog/index.tsx
|
|
21
21
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "./components-nz14rwtd.js";
|
|
18
18
|
import {
|
|
19
19
|
button_default
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-ycwhrqe1.js";
|
|
21
21
|
import {
|
|
22
22
|
InputAction2,
|
|
23
23
|
input_default
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-af44r4y9.js";
|
|
25
25
|
|
|
26
26
|
// components/inputs/key-value/index.tsx
|
|
27
27
|
import { useRef, useState } from "react";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./components-xnp09586.js";
|
|
17
17
|
import {
|
|
18
18
|
FieldStateContext2
|
|
19
|
-
} from "./components-
|
|
19
|
+
} from "./components-1ztgy933.js";
|
|
20
20
|
import {
|
|
21
21
|
useMergeRefs2
|
|
22
22
|
} from "./components-bkwjvvkh.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./components-wwd093xg.js";
|
|
26
26
|
import {
|
|
27
27
|
calendar_default
|
|
28
|
-
} from "./components-
|
|
28
|
+
} from "./components-8m5e493q.js";
|
|
29
29
|
import {
|
|
30
30
|
readDateValue,
|
|
31
31
|
writeDateValue,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
invalidOf,
|
|
38
38
|
PickerShell,
|
|
39
39
|
PickerInput
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-gzve0nkp.js";
|
|
41
41
|
import {
|
|
42
42
|
TimeColumns
|
|
43
|
-
} from "./components-
|
|
43
|
+
} from "./components-d4gkhy26.js";
|
|
44
44
|
|
|
45
45
|
// components/inputs/date-time/date-range-picker/index.tsx
|
|
46
46
|
import { format, set } from "date-fns";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
} from "./components-nz14rwtd.js";
|
|
18
18
|
import {
|
|
19
19
|
dropdown_default
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-94vd4ck1.js";
|
|
21
21
|
import {
|
|
22
22
|
button_default
|
|
23
|
-
} from "./components-
|
|
23
|
+
} from "./components-ycwhrqe1.js";
|
|
24
24
|
|
|
25
25
|
// components/actions/button-group/index.tsx
|
|
26
26
|
import { createContext, forwardRef, useContext } from "react";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./components-xnp09586.js";
|
|
9
9
|
import {
|
|
10
10
|
Code2
|
|
11
|
-
} from "./components-
|
|
11
|
+
} from "./components-60tf8tfa.js";
|
|
12
12
|
import {
|
|
13
13
|
table_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-dx8f797z.js";
|
|
15
15
|
|
|
16
16
|
// components/data-display/markdown/index.tsx
|
|
17
17
|
import { Lexer } from "marked";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./components-6h5qg9rs.js";
|
|
24
24
|
import {
|
|
25
25
|
button_default
|
|
26
|
-
} from "./components-
|
|
26
|
+
} from "./components-ycwhrqe1.js";
|
|
27
27
|
|
|
28
28
|
// components/data-display/log-view/index.tsx
|
|
29
29
|
import { AnimatePresence, motion } from "motion/react";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./components-xnp09586.js";
|
|
15
15
|
import {
|
|
16
16
|
useFieldState2
|
|
17
|
-
} from "./components-
|
|
17
|
+
} from "./components-1ztgy933.js";
|
|
18
18
|
import {
|
|
19
19
|
useIcon2
|
|
20
20
|
} from "./components-jnhpgpfk.js";
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
} from "./components-45r18egt.js";
|
|
27
27
|
import {
|
|
28
28
|
button_default
|
|
29
|
-
} from "./components-
|
|
29
|
+
} from "./components-ycwhrqe1.js";
|
|
30
30
|
import {
|
|
31
31
|
Spinner2,
|
|
32
32
|
progress_default
|
|
33
|
-
} from "./components-
|
|
33
|
+
} from "./components-ymq8tbq9.js";
|
|
34
34
|
import {
|
|
35
35
|
formatFileSize2,
|
|
36
36
|
dragVerdict2,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
12
12
|
import {
|
|
13
13
|
button_default
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-ycwhrqe1.js";
|
|
15
15
|
import {
|
|
16
16
|
useIcon2
|
|
17
17
|
} from "./components-jnhpgpfk.js";
|
|
@@ -22,22 +22,22 @@ import {
|
|
|
22
22
|
SidebarInput2,
|
|
23
23
|
SidebarTrigger2,
|
|
24
24
|
sidebar_default
|
|
25
|
-
} from "./components-
|
|
25
|
+
} from "./components-bkg1k36x.js";
|
|
26
26
|
import {
|
|
27
27
|
tooltip_default
|
|
28
|
-
} from "./components-
|
|
28
|
+
} from "./components-7rn454aq.js";
|
|
29
29
|
import {
|
|
30
30
|
MenuItem2,
|
|
31
31
|
DropdownMenu2,
|
|
32
32
|
DropdownTrigger2,
|
|
33
33
|
DropdownContent2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-94vd4ck1.js";
|
|
35
35
|
import {
|
|
36
36
|
card_default
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-fzmjcn38.js";
|
|
38
38
|
import {
|
|
39
39
|
badge_default
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-jw45ck66.js";
|
|
41
41
|
|
|
42
42
|
// blocks/sidebar-app/index.tsx
|
|
43
43
|
import { useState } from "react";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./components-29ebea21.js";
|
|
8
8
|
import {
|
|
9
9
|
ScrollColumn2
|
|
10
|
-
} from "./components-
|
|
10
|
+
} from "./components-zckgawt6.js";
|
|
11
11
|
import {
|
|
12
12
|
useControllableState2
|
|
13
13
|
} from "./components-wwd093xg.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
columnsPopupClass,
|
|
17
17
|
ColumnsPanel,
|
|
18
18
|
PickerInput
|
|
19
|
-
} from "./components-
|
|
19
|
+
} from "./components-gzve0nkp.js";
|
|
20
20
|
import {
|
|
21
21
|
pad,
|
|
22
22
|
minuteOptions
|
|
23
|
-
} from "./components-
|
|
23
|
+
} from "./components-d4gkhy26.js";
|
|
24
24
|
|
|
25
25
|
// components/inputs/date-time/duration-picker/index.tsx
|
|
26
26
|
import { formatDuration } from "date-fns";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
useFieldBox2,
|
|
17
17
|
focusControlOnPress2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-1ztgy933.js";
|
|
19
19
|
import {
|
|
20
20
|
useIcon2
|
|
21
21
|
} from "./components-jnhpgpfk.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./components-bkwjvvkh.js";
|
|
25
25
|
import {
|
|
26
26
|
InputAdornment2
|
|
27
|
-
} from "./components-
|
|
27
|
+
} from "./components-af44r4y9.js";
|
|
28
28
|
|
|
29
29
|
// components/inputs/number-input/index.tsx
|
|
30
30
|
import { NumberField } from "@base-ui/react/number-field";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
rowLabelClass2,
|
|
28
28
|
RowIcon2,
|
|
29
29
|
PopupLabel2
|
|
30
|
-
} from "./components-
|
|
30
|
+
} from "./components-q0hs5rqn.js";
|
|
31
31
|
import {
|
|
32
32
|
ScrollArea2
|
|
33
33
|
} from "./components-5fet4gqt.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
DialogTrigger2,
|
|
36
36
|
DialogContent2,
|
|
37
37
|
DialogState2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-br6t88cb.js";
|
|
39
39
|
|
|
40
40
|
// components/overlays/command/index.tsx
|
|
41
41
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
OverlayContext2,
|
|
8
8
|
useOverlayRoot2
|
|
9
|
-
} from "./components-
|
|
9
|
+
} from "./components-ft5dgjg6.js";
|
|
10
10
|
import {
|
|
11
11
|
SizeScope2
|
|
12
12
|
} from "./components-nz14rwtd.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
DropdownSubTrigger2,
|
|
19
19
|
DropdownSubContent2,
|
|
20
20
|
DropdownSeparator2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-94vd4ck1.js";
|
|
22
22
|
|
|
23
23
|
// components/overlays/context-menu/index.tsx
|
|
24
24
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./components-nwa2a9tq.js";
|
|
39
39
|
import {
|
|
40
40
|
button_default
|
|
41
|
-
} from "./components-
|
|
41
|
+
} from "./components-ycwhrqe1.js";
|
|
42
42
|
|
|
43
43
|
// components/overlays/toast/index.tsx
|
|
44
44
|
import { Toast as ToastPrimitive2 } from "@base-ui/react/toast";
|