@vvedantb/ui 0.83.0 → 0.84.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/dist/shell/src/DockArrow.js +37 -5
- package/dist/shell/src/SidebarChrome.js +135 -117
- package/dist/shell/src/SidebarPanel.js +14 -12
- package/dist/shell/src/SidebarPeek.js +274 -98
- package/dist/shell/src/app-shell-classes.js +3 -2
- package/package.json +1 -1
- package/shell/src/DockArrow.tsx +36 -6
- package/shell/src/SidebarChrome.tsx +7 -2
- package/shell/src/SidebarPanel.tsx +1 -1
- package/shell/src/SidebarPeek.ts +131 -24
- package/shell/src/app-shell-classes.ts +5 -2
- package/src/client.ts +1 -1
- package/src/index.ts +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useLayoutEffect } from "react";
|
|
2
|
+
import { useLayoutEffect, useRef } from "react";
|
|
3
3
|
import { dockPopIn, dockSwitch } from "../../src/motion/dock-motion.js";
|
|
4
4
|
import { cn } from "../../src/utils/cn.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const ARROW_HALF_PX = 8;
|
|
7
|
+
const TILE_STATE = ["data-active", "aria-current", "data-state", "aria-selected"];
|
|
7
8
|
/**
|
|
8
9
|
* The 16 px rotated square a dock card draws to point at its rail tile. Place
|
|
9
10
|
* it in the same positioned parent as the card and pass its ref to
|
|
@@ -75,16 +76,18 @@ export function DockArrow(t0) {
|
|
|
75
76
|
* height.
|
|
76
77
|
*/
|
|
77
78
|
export function useDockArrow(t0) {
|
|
78
|
-
const $ = _c(
|
|
79
|
+
const $ = _c(11);
|
|
79
80
|
const {
|
|
80
81
|
frameRef,
|
|
81
82
|
cardRef,
|
|
82
83
|
arrowRef,
|
|
83
84
|
tile,
|
|
84
85
|
edge: t1,
|
|
85
|
-
watch
|
|
86
|
+
watch,
|
|
87
|
+
syncKey
|
|
86
88
|
} = t0;
|
|
87
89
|
const edge = t1 === undefined ? "right" : t1;
|
|
90
|
+
const syncRef = useRef(null);
|
|
88
91
|
let t2;
|
|
89
92
|
let t3;
|
|
90
93
|
if ($[0] !== arrowRef || $[1] !== cardRef || $[2] !== edge || $[3] !== frameRef || $[4] !== tile || $[5] !== watch) {
|
|
@@ -141,9 +144,12 @@ export function useDockArrow(t0) {
|
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
146
|
};
|
|
147
|
+
syncRef.current = sync;
|
|
144
148
|
sync();
|
|
145
149
|
if (typeof ResizeObserver === "undefined") {
|
|
146
|
-
return
|
|
150
|
+
return () => {
|
|
151
|
+
syncRef.current = null;
|
|
152
|
+
};
|
|
147
153
|
}
|
|
148
154
|
const resize = new ResizeObserver(sync);
|
|
149
155
|
resize.observe(frame);
|
|
@@ -152,17 +158,25 @@ export function useDockArrow(t0) {
|
|
|
152
158
|
mutation.observe(frame, {
|
|
153
159
|
subtree: true,
|
|
154
160
|
attributes: true,
|
|
155
|
-
attributeFilter:
|
|
161
|
+
attributeFilter: TILE_STATE
|
|
156
162
|
});
|
|
157
163
|
const list = watch?.(frame);
|
|
158
164
|
if (list) {
|
|
159
165
|
resize.observe(list);
|
|
166
|
+
if (!frame.contains(list)) {
|
|
167
|
+
mutation.observe(list, {
|
|
168
|
+
subtree: true,
|
|
169
|
+
attributes: true,
|
|
170
|
+
attributeFilter: TILE_STATE
|
|
171
|
+
});
|
|
172
|
+
}
|
|
160
173
|
}
|
|
161
174
|
const settle = ["scroll", "animationend", "transitionend"];
|
|
162
175
|
for (const type of settle) {
|
|
163
176
|
frame.addEventListener(type, sync, true);
|
|
164
177
|
}
|
|
165
178
|
return () => {
|
|
179
|
+
syncRef.current = null;
|
|
166
180
|
resize.disconnect();
|
|
167
181
|
mutation.disconnect();
|
|
168
182
|
for (const type_0 of settle) {
|
|
@@ -184,4 +198,22 @@ export function useDockArrow(t0) {
|
|
|
184
198
|
t3 = $[7];
|
|
185
199
|
}
|
|
186
200
|
useLayoutEffect(t2, t3);
|
|
201
|
+
let t4;
|
|
202
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
203
|
+
t4 = () => {
|
|
204
|
+
syncRef.current?.();
|
|
205
|
+
};
|
|
206
|
+
$[8] = t4;
|
|
207
|
+
} else {
|
|
208
|
+
t4 = $[8];
|
|
209
|
+
}
|
|
210
|
+
let t5;
|
|
211
|
+
if ($[9] !== syncKey) {
|
|
212
|
+
t5 = [syncKey];
|
|
213
|
+
$[9] = syncKey;
|
|
214
|
+
$[10] = t5;
|
|
215
|
+
} else {
|
|
216
|
+
t5 = $[10];
|
|
217
|
+
}
|
|
218
|
+
useLayoutEffect(t4, t5);
|
|
187
219
|
}
|
|
@@ -464,11 +464,12 @@ function Backdrop(t0) {
|
|
|
464
464
|
return t3;
|
|
465
465
|
}
|
|
466
466
|
function Aside(t0) {
|
|
467
|
-
const $ = _c(
|
|
467
|
+
const $ = _c(62);
|
|
468
468
|
let children;
|
|
469
469
|
let className;
|
|
470
470
|
let id;
|
|
471
471
|
let onBlur;
|
|
472
|
+
let onContextMenu;
|
|
472
473
|
let onFocus;
|
|
473
474
|
let onKeyDown;
|
|
474
475
|
let onPointerLeave;
|
|
@@ -483,6 +484,7 @@ function Aside(t0) {
|
|
|
483
484
|
onPointerLeave,
|
|
484
485
|
onFocus,
|
|
485
486
|
onBlur,
|
|
487
|
+
onContextMenu,
|
|
486
488
|
children,
|
|
487
489
|
...props
|
|
488
490
|
} = t0);
|
|
@@ -491,21 +493,23 @@ function Aside(t0) {
|
|
|
491
493
|
$[2] = className;
|
|
492
494
|
$[3] = id;
|
|
493
495
|
$[4] = onBlur;
|
|
494
|
-
$[5] =
|
|
495
|
-
$[6] =
|
|
496
|
-
$[7] =
|
|
497
|
-
$[8] =
|
|
498
|
-
$[9] =
|
|
496
|
+
$[5] = onContextMenu;
|
|
497
|
+
$[6] = onFocus;
|
|
498
|
+
$[7] = onKeyDown;
|
|
499
|
+
$[8] = onPointerLeave;
|
|
500
|
+
$[9] = onPointerOver;
|
|
501
|
+
$[10] = props;
|
|
499
502
|
} else {
|
|
500
503
|
children = $[1];
|
|
501
504
|
className = $[2];
|
|
502
505
|
id = $[3];
|
|
503
506
|
onBlur = $[4];
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
507
|
+
onContextMenu = $[5];
|
|
508
|
+
onFocus = $[6];
|
|
509
|
+
onKeyDown = $[7];
|
|
510
|
+
onPointerLeave = $[8];
|
|
511
|
+
onPointerOver = $[9];
|
|
512
|
+
props = $[10];
|
|
509
513
|
}
|
|
510
514
|
const sidebar = useSidebar("Aside");
|
|
511
515
|
const resize = useSidebarResizeContext();
|
|
@@ -516,10 +520,10 @@ function Aside(t0) {
|
|
|
516
520
|
panelHidden,
|
|
517
521
|
peek
|
|
518
522
|
} = sidebar;
|
|
519
|
-
const hover = isDesktop && sidebar.unpinned
|
|
520
|
-
const peeking = hover !== null && !collapsed;
|
|
523
|
+
const hover = isDesktop && sidebar.unpinned ? peek : null;
|
|
524
|
+
const peeking = hover !== null && !collapsed && !panelHidden;
|
|
521
525
|
let t1;
|
|
522
|
-
if ($[
|
|
526
|
+
if ($[11] !== isDesktop || $[12] !== mobileOpen || $[13] !== sidebar) {
|
|
523
527
|
t1 = (_event, info) => {
|
|
524
528
|
if (isDesktop || !mobileOpen) {
|
|
525
529
|
return;
|
|
@@ -528,12 +532,12 @@ function Aside(t0) {
|
|
|
528
532
|
sidebar.onMobileOpenChange(false);
|
|
529
533
|
}
|
|
530
534
|
};
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
+
$[11] = isDesktop;
|
|
536
|
+
$[12] = mobileOpen;
|
|
537
|
+
$[13] = sidebar;
|
|
538
|
+
$[14] = t1;
|
|
535
539
|
} else {
|
|
536
|
-
t1 = $[
|
|
540
|
+
t1 = $[14];
|
|
537
541
|
}
|
|
538
542
|
const handleDrawerDragEnd = t1;
|
|
539
543
|
const t2 = id ?? sidebar.drawerId;
|
|
@@ -541,125 +545,137 @@ function Aside(t0) {
|
|
|
541
545
|
const t4 = !isDesktop && !mobileOpen;
|
|
542
546
|
const t5 = peeking ? "" : undefined;
|
|
543
547
|
let t6;
|
|
544
|
-
if ($[
|
|
548
|
+
if ($[15] !== hover?.handlers || $[16] !== onPointerOver) {
|
|
545
549
|
t6 = event => {
|
|
546
550
|
onPointerOver?.(event);
|
|
547
551
|
hover?.handlers.onPointerOver(event);
|
|
548
552
|
};
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
553
|
+
$[15] = hover?.handlers;
|
|
554
|
+
$[16] = onPointerOver;
|
|
555
|
+
$[17] = t6;
|
|
552
556
|
} else {
|
|
553
|
-
t6 = $[
|
|
557
|
+
t6 = $[17];
|
|
554
558
|
}
|
|
555
559
|
let t7;
|
|
556
|
-
if ($[
|
|
560
|
+
if ($[18] !== hover?.handlers || $[19] !== onPointerLeave) {
|
|
557
561
|
t7 = event_0 => {
|
|
558
562
|
onPointerLeave?.(event_0);
|
|
559
563
|
hover?.handlers.onPointerLeave(event_0);
|
|
560
564
|
};
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
565
|
+
$[18] = hover?.handlers;
|
|
566
|
+
$[19] = onPointerLeave;
|
|
567
|
+
$[20] = t7;
|
|
564
568
|
} else {
|
|
565
|
-
t7 = $[
|
|
569
|
+
t7 = $[20];
|
|
566
570
|
}
|
|
567
571
|
let t8;
|
|
568
|
-
if ($[
|
|
572
|
+
if ($[21] !== hover?.handlers || $[22] !== onFocus) {
|
|
569
573
|
t8 = event_1 => {
|
|
570
574
|
onFocus?.(event_1);
|
|
571
575
|
hover?.handlers.onFocus(event_1);
|
|
572
576
|
};
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
577
|
+
$[21] = hover?.handlers;
|
|
578
|
+
$[22] = onFocus;
|
|
579
|
+
$[23] = t8;
|
|
576
580
|
} else {
|
|
577
|
-
t8 = $[
|
|
581
|
+
t8 = $[23];
|
|
578
582
|
}
|
|
579
583
|
let t9;
|
|
580
|
-
if ($[
|
|
584
|
+
if ($[24] !== hover?.handlers || $[25] !== onBlur) {
|
|
581
585
|
t9 = event_2 => {
|
|
582
586
|
onBlur?.(event_2);
|
|
583
587
|
hover?.handlers.onBlur(event_2);
|
|
584
588
|
};
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
589
|
+
$[24] = hover?.handlers;
|
|
590
|
+
$[25] = onBlur;
|
|
591
|
+
$[26] = t9;
|
|
588
592
|
} else {
|
|
589
|
-
t9 = $[
|
|
593
|
+
t9 = $[26];
|
|
590
594
|
}
|
|
591
595
|
let t10;
|
|
592
|
-
if ($[
|
|
596
|
+
if ($[27] !== hover?.handlers || $[28] !== onContextMenu) {
|
|
593
597
|
t10 = event_3 => {
|
|
594
|
-
|
|
595
|
-
|
|
598
|
+
onContextMenu?.(event_3);
|
|
599
|
+
hover?.handlers.onContextMenu(event_3);
|
|
596
600
|
};
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
$[
|
|
600
|
-
} else {
|
|
601
|
-
t10 = $[28];
|
|
602
|
-
}
|
|
603
|
-
const t11 = panelHidden ? "w-[var(--app-shell-rail-width)]" : "w-[min(var(--app-shell-sidebar-width),calc(100vw-1.5rem))]";
|
|
604
|
-
const t12 = collapsed || panelHidden ? "md:w-[var(--app-shell-rail-width)]" : "md:w-[var(--app-shell-sidebar-width)]";
|
|
605
|
-
const t13 = hover !== null && "md:transition-none";
|
|
606
|
-
const t14 = peeking && (sidebar.onCollapsedChange ? "md:bg-transparent md:[&_[data-sidebar-card]]:smooth-shadow-ring-xl" : "md:shadow-[8px_0_24px_-12px_rgb(0_0_0/0.18)]");
|
|
607
|
-
const t15 = !resize?.isResizing && hover === null && "md:transition-[width] md:[transition-duration:280ms] md:[transition-timing-function:cubic-bezier(0.22,1,0.36,1)]";
|
|
608
|
-
let t16;
|
|
609
|
-
if ($[29] !== className || $[30] !== t11 || $[31] !== t12 || $[32] !== t13 || $[33] !== t14 || $[34] !== t15) {
|
|
610
|
-
t16 = cn("fixed inset-y-0 left-0 z-50 flex bg-background pb-[env(safe-area-inset-bottom,0px)] pt-[env(safe-area-inset-top,0px)] md:py-0", t11, t12, t13, t14, t15, className);
|
|
611
|
-
$[29] = className;
|
|
612
|
-
$[30] = t11;
|
|
613
|
-
$[31] = t12;
|
|
614
|
-
$[32] = t13;
|
|
615
|
-
$[33] = t14;
|
|
616
|
-
$[34] = t15;
|
|
617
|
-
$[35] = t16;
|
|
618
|
-
} else {
|
|
619
|
-
t16 = $[35];
|
|
620
|
-
}
|
|
621
|
-
const t17 = isDesktop || mobileOpen ? 0 : "-100%";
|
|
622
|
-
let t18;
|
|
623
|
-
if ($[36] !== t17) {
|
|
624
|
-
t18 = {
|
|
625
|
-
x: t17
|
|
626
|
-
};
|
|
627
|
-
$[36] = t17;
|
|
628
|
-
$[37] = t18;
|
|
601
|
+
$[27] = hover?.handlers;
|
|
602
|
+
$[28] = onContextMenu;
|
|
603
|
+
$[29] = t10;
|
|
629
604
|
} else {
|
|
630
|
-
|
|
605
|
+
t10 = $[29];
|
|
631
606
|
}
|
|
607
|
+
let t11;
|
|
608
|
+
if ($[30] !== onKeyDown || $[31] !== sidebar) {
|
|
609
|
+
t11 = event_4 => {
|
|
610
|
+
onKeyDown?.(event_4);
|
|
611
|
+
closeOnEscape(sidebar, event_4);
|
|
612
|
+
};
|
|
613
|
+
$[30] = onKeyDown;
|
|
614
|
+
$[31] = sidebar;
|
|
615
|
+
$[32] = t11;
|
|
616
|
+
} else {
|
|
617
|
+
t11 = $[32];
|
|
618
|
+
}
|
|
619
|
+
const t12 = panelHidden ? "w-[var(--app-shell-rail-width)]" : "w-[min(var(--app-shell-sidebar-width),calc(100vw-1.5rem))]";
|
|
620
|
+
const t13 = collapsed || panelHidden ? "md:w-[var(--app-shell-rail-width)]" : "md:w-[var(--app-shell-sidebar-width)]";
|
|
621
|
+
const t14 = hover !== null && "md:transition-none";
|
|
622
|
+
const t15 = peeking && (sidebar.onCollapsedChange ? "md:bg-transparent md:[&_[data-sidebar-card]]:smooth-shadow-ring-xl" : "md:shadow-[8px_0_24px_-12px_rgb(0_0_0/0.18)]");
|
|
623
|
+
const t16 = !resize?.isResizing && hover === null && "md:transition-[width] md:[transition-duration:280ms] md:[transition-timing-function:cubic-bezier(0.22,1,0.36,1)]";
|
|
624
|
+
let t17;
|
|
625
|
+
if ($[33] !== className || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t16) {
|
|
626
|
+
t17 = cn("fixed inset-y-0 left-0 z-50 flex bg-background pb-[env(safe-area-inset-bottom,0px)] pt-[env(safe-area-inset-top,0px)] md:py-0", t12, t13, t14, t15, t16, className);
|
|
627
|
+
$[33] = className;
|
|
628
|
+
$[34] = t12;
|
|
629
|
+
$[35] = t13;
|
|
630
|
+
$[36] = t14;
|
|
631
|
+
$[37] = t15;
|
|
632
|
+
$[38] = t16;
|
|
633
|
+
$[39] = t17;
|
|
634
|
+
} else {
|
|
635
|
+
t17 = $[39];
|
|
636
|
+
}
|
|
637
|
+
const t18 = isDesktop || mobileOpen ? 0 : "-100%";
|
|
632
638
|
let t19;
|
|
633
|
-
if ($[
|
|
639
|
+
if ($[40] !== t18) {
|
|
634
640
|
t19 = {
|
|
641
|
+
x: t18
|
|
642
|
+
};
|
|
643
|
+
$[40] = t18;
|
|
644
|
+
$[41] = t19;
|
|
645
|
+
} else {
|
|
646
|
+
t19 = $[41];
|
|
647
|
+
}
|
|
648
|
+
let t20;
|
|
649
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
650
|
+
t20 = {
|
|
635
651
|
duration: motionTiming.sidebar,
|
|
636
652
|
ease: motionEase
|
|
637
653
|
};
|
|
638
|
-
$[
|
|
654
|
+
$[42] = t20;
|
|
639
655
|
} else {
|
|
640
|
-
|
|
656
|
+
t20 = $[42];
|
|
641
657
|
}
|
|
642
|
-
const
|
|
643
|
-
let t21;
|
|
658
|
+
const t21 = !isDesktop && mobileOpen ? "x" : false;
|
|
644
659
|
let t22;
|
|
645
|
-
|
|
646
|
-
|
|
660
|
+
let t23;
|
|
661
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
662
|
+
t22 = {
|
|
647
663
|
left: 0,
|
|
648
664
|
right: 0
|
|
649
665
|
};
|
|
650
|
-
|
|
666
|
+
t23 = {
|
|
651
667
|
left: 0.45,
|
|
652
668
|
right: 0.08
|
|
653
669
|
};
|
|
654
|
-
$[
|
|
655
|
-
$[
|
|
670
|
+
$[43] = t22;
|
|
671
|
+
$[44] = t23;
|
|
656
672
|
} else {
|
|
657
|
-
|
|
658
|
-
|
|
673
|
+
t22 = $[43];
|
|
674
|
+
t23 = $[44];
|
|
659
675
|
}
|
|
660
|
-
let
|
|
661
|
-
if ($[
|
|
662
|
-
|
|
676
|
+
let t24;
|
|
677
|
+
if ($[45] !== children || $[46] !== handleDrawerDragEnd || $[47] !== props || $[48] !== t10 || $[49] !== t11 || $[50] !== t17 || $[51] !== t19 || $[52] !== t2 || $[53] !== t21 || $[54] !== t3 || $[55] !== t4 || $[56] !== t5 || $[57] !== t6 || $[58] !== t7 || $[59] !== t8 || $[60] !== t9) {
|
|
678
|
+
t24 = /*#__PURE__*/_jsx(LazyMotion, {
|
|
663
679
|
features: domMax,
|
|
664
680
|
children: /*#__PURE__*/_jsx(m.aside, {
|
|
665
681
|
id: t2,
|
|
@@ -671,39 +687,41 @@ function Aside(t0) {
|
|
|
671
687
|
onPointerLeave: t7,
|
|
672
688
|
onFocus: t8,
|
|
673
689
|
onBlur: t9,
|
|
674
|
-
|
|
675
|
-
|
|
690
|
+
onContextMenu: t10,
|
|
691
|
+
onKeyDown: t11,
|
|
692
|
+
className: t17,
|
|
676
693
|
initial: false,
|
|
677
|
-
animate:
|
|
678
|
-
transition:
|
|
679
|
-
drag:
|
|
694
|
+
animate: t19,
|
|
695
|
+
transition: t20,
|
|
696
|
+
drag: t21,
|
|
680
697
|
dragDirectionLock: true,
|
|
681
|
-
dragConstraints:
|
|
682
|
-
dragElastic:
|
|
698
|
+
dragConstraints: t22,
|
|
699
|
+
dragElastic: t23,
|
|
683
700
|
onDragEnd: handleDrawerDragEnd,
|
|
684
701
|
children: children
|
|
685
702
|
})
|
|
686
703
|
});
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
692
|
-
$[
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
$[
|
|
696
|
-
$[
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
700
|
-
$[
|
|
701
|
-
$[
|
|
702
|
-
$[
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
704
|
+
$[45] = children;
|
|
705
|
+
$[46] = handleDrawerDragEnd;
|
|
706
|
+
$[47] = props;
|
|
707
|
+
$[48] = t10;
|
|
708
|
+
$[49] = t11;
|
|
709
|
+
$[50] = t17;
|
|
710
|
+
$[51] = t19;
|
|
711
|
+
$[52] = t2;
|
|
712
|
+
$[53] = t21;
|
|
713
|
+
$[54] = t3;
|
|
714
|
+
$[55] = t4;
|
|
715
|
+
$[56] = t5;
|
|
716
|
+
$[57] = t6;
|
|
717
|
+
$[58] = t7;
|
|
718
|
+
$[59] = t8;
|
|
719
|
+
$[60] = t9;
|
|
720
|
+
$[61] = t24;
|
|
721
|
+
} else {
|
|
722
|
+
t24 = $[61];
|
|
723
|
+
}
|
|
724
|
+
return t24;
|
|
707
725
|
}
|
|
708
726
|
function ResizeHandle(props) {
|
|
709
727
|
const $ = _c(3);
|
|
@@ -99,7 +99,7 @@ function sidebarRail(frame) {
|
|
|
99
99
|
* `useDockArrow` grows the card out of the tile when it opens.
|
|
100
100
|
*/
|
|
101
101
|
function FloatingCard(t0) {
|
|
102
|
-
const $ = _c(
|
|
102
|
+
const $ = _c(9);
|
|
103
103
|
const {
|
|
104
104
|
hoverTile,
|
|
105
105
|
children
|
|
@@ -132,34 +132,36 @@ function FloatingCard(t0) {
|
|
|
132
132
|
}
|
|
133
133
|
const tile = t3;
|
|
134
134
|
let t4;
|
|
135
|
-
if ($[4]
|
|
135
|
+
if ($[4] !== hoverTile) {
|
|
136
136
|
t4 = {
|
|
137
137
|
frameRef,
|
|
138
138
|
cardRef,
|
|
139
139
|
arrowRef,
|
|
140
140
|
edge: "left",
|
|
141
141
|
tile,
|
|
142
|
-
watch: sidebarRail
|
|
142
|
+
watch: sidebarRail,
|
|
143
|
+
syncKey: hoverTile
|
|
143
144
|
};
|
|
144
|
-
$[4] =
|
|
145
|
+
$[4] = hoverTile;
|
|
146
|
+
$[5] = t4;
|
|
145
147
|
} else {
|
|
146
|
-
t4 = $[
|
|
148
|
+
t4 = $[5];
|
|
147
149
|
}
|
|
148
150
|
useDockArrow(t4);
|
|
149
151
|
let t5;
|
|
150
|
-
if ($[
|
|
152
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
151
153
|
t5 = /*#__PURE__*/_jsx(DockArrow, {
|
|
152
154
|
ref: arrowRef,
|
|
153
155
|
edge: "left",
|
|
154
156
|
hairline: true,
|
|
155
157
|
className: "z-10 bg-background"
|
|
156
158
|
});
|
|
157
|
-
$[
|
|
159
|
+
$[6] = t5;
|
|
158
160
|
} else {
|
|
159
|
-
t5 = $[
|
|
161
|
+
t5 = $[6];
|
|
160
162
|
}
|
|
161
163
|
let t6;
|
|
162
|
-
if ($[
|
|
164
|
+
if ($[7] !== children) {
|
|
163
165
|
t6 = /*#__PURE__*/_jsxs("div", {
|
|
164
166
|
ref: frameRef,
|
|
165
167
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
@@ -170,10 +172,10 @@ function FloatingCard(t0) {
|
|
|
170
172
|
children: children
|
|
171
173
|
})]
|
|
172
174
|
});
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
+
$[7] = children;
|
|
176
|
+
$[8] = t6;
|
|
175
177
|
} else {
|
|
176
|
-
t6 = $[
|
|
178
|
+
t6 = $[8];
|
|
177
179
|
}
|
|
178
180
|
return t6;
|
|
179
181
|
}
|