@vuer-ai/vuer-uikit 0.0.102 → 0.0.103
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/auth/hooks/use-vuer-method.cjs +3 -3
- package/dist/auth/hooks/use-vuer-method.mjs +2 -2
- package/dist/auth/index.cjs +3 -3
- package/dist/auth/index.mjs +2 -2
- package/dist/{chunk-IQ5MDNCR.cjs → chunk-2PJO5UJL.cjs} +8 -8
- package/dist/{chunk-YMSWUGHW.cjs → chunk-4PKPCOAF.cjs} +2 -1
- package/dist/{chunk-BSOJYJ4D.cjs → chunk-4WRTIOGZ.cjs} +2 -1
- package/dist/{chunk-XG56MLQH.cjs → chunk-5JPYU5A6.cjs} +8 -8
- package/dist/{chunk-ZNPI2TYG.mjs → chunk-5MBEK77I.mjs} +5 -13
- package/dist/{chunk-JMFTHHHE.cjs → chunk-5SP25SO3.cjs} +12 -11
- package/dist/{chunk-ZPH5LMEM.mjs → chunk-6NSQLHKC.mjs} +1 -1
- package/dist/{chunk-RGV3EB3K.cjs → chunk-6QU4J3HY.cjs} +12 -12
- package/dist/{chunk-W3RJNSWQ.mjs → chunk-7NOBQH7O.mjs} +2 -2
- package/dist/{chunk-ZFIEYXJO.cjs → chunk-BXBSZOBU.cjs} +1 -1
- package/dist/{chunk-5WDPNBQW.cjs → chunk-C6L7YIGW.cjs} +2 -1
- package/dist/{chunk-5EXV5EWF.mjs → chunk-D5H4XX6Q.mjs} +1 -1
- package/dist/{chunk-EAZQH4IX.mjs → chunk-EOSYXHEH.mjs} +1 -1
- package/dist/{chunk-EBBHJLUX.mjs → chunk-G4Q5ALRW.mjs} +2 -1
- package/dist/{chunk-XOIIYO5J.cjs → chunk-HA6M4XKT.cjs} +4 -2
- package/dist/{chunk-Z6KE4XDB.cjs → chunk-I2BVWNRP.cjs} +6 -6
- package/dist/{chunk-K22BEXUA.mjs → chunk-JVV7W3TP.mjs} +1 -1
- package/dist/{chunk-UA3OTLX4.mjs → chunk-JWUIZX35.mjs} +2 -2
- package/dist/{chunk-6TSA7KXX.cjs → chunk-JWVH6R35.cjs} +1 -1
- package/dist/{chunk-CX6OFX5Z.mjs → chunk-KJH46JR3.mjs} +2 -1
- package/dist/chunk-LBGZKACW.cjs +30 -0
- package/dist/{chunk-2CZEFXEW.cjs → chunk-LFSCJLL2.cjs} +5 -13
- package/dist/chunk-M6JLGVJ7.mjs +28 -0
- package/dist/{chunk-E2EMVLII.mjs → chunk-MG5TTPA7.mjs} +2 -1
- package/dist/{chunk-3THWK3HB.mjs → chunk-NHG2ROYB.mjs} +2 -1
- package/dist/{chunk-7UO6NLB6.mjs → chunk-OLVOIUCE.mjs} +3 -3
- package/dist/{chunk-KRNKB4FM.mjs → chunk-OPYMZDEZ.mjs} +1 -1
- package/dist/{chunk-IJGCH57E.cjs → chunk-QHAGQCVF.cjs} +1 -1
- package/dist/{chunk-D4DKSGER.mjs → chunk-QZUTRJSP.mjs} +1 -1
- package/dist/{chunk-SUSABE24.mjs → chunk-S6PSU47F.mjs} +1 -1
- package/dist/{chunk-AYYX3TVN.mjs → chunk-S7SGB2FD.mjs} +1 -1
- package/dist/{chunk-RZILHP75.cjs → chunk-SHHQDSSI.cjs} +2 -2
- package/dist/{chunk-CFOMX6SF.mjs → chunk-SMIACO56.mjs} +4 -2
- package/dist/{chunk-EI5ZOFWX.mjs → chunk-SUEFWFPX.mjs} +1 -1
- package/dist/{chunk-3OMGBQ7I.mjs → chunk-TYXRHZZG.mjs} +1 -1
- package/dist/{chunk-LP3AGGRK.cjs → chunk-UTS56UA5.cjs} +1 -1
- package/dist/{chunk-OMZHB2FB.cjs → chunk-V3VUFIG3.cjs} +4 -2
- package/dist/{chunk-RU423LFT.cjs → chunk-VQP3QBC6.cjs} +1 -1
- package/dist/{chunk-C7WHIFJZ.cjs → chunk-WRKB3W2J.cjs} +2 -2
- package/dist/{chunk-3XTBLV6T.cjs → chunk-WZGZX3S2.cjs} +1 -1
- package/dist/{chunk-XGGAJUY3.cjs → chunk-XURKXOZK.cjs} +2 -2
- package/dist/{chunk-3NSSQHRK.mjs → chunk-Y2H4A5AC.mjs} +1 -1
- package/dist/{chunk-2JV7MJIF.cjs → chunk-Y5SVZCPQ.cjs} +4 -4
- package/dist/{chunk-7P563TWH.mjs → chunk-YHY6SXVJ.mjs} +8 -7
- package/dist/{chunk-PO2LYHDO.mjs → chunk-YKHK6C4Q.mjs} +4 -2
- package/dist/{chunk-BFNETXJK.mjs → chunk-YLDDI6SZ.mjs} +3 -3
- package/dist/{chunk-LPVBUX2J.cjs → chunk-YQ5KKJQ3.cjs} +2 -1
- package/dist/{chunk-MCYFLR4F.cjs → chunk-ZS7ESTKH.cjs} +1 -1
- package/dist/dial/DialPanel.cjs +36 -36
- package/dist/dial/DialPanel.mjs +35 -35
- package/dist/dial/DialProvider.d.cts +1 -0
- package/dist/dial/DialProvider.d.ts +1 -0
- package/dist/dial/index.cjs +52 -52
- package/dist/dial/index.mjs +35 -35
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +40 -40
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +35 -35
- package/dist/dial/wrapped-inputs/DialInputs.cjs +49 -49
- package/dist/dial/wrapped-inputs/DialInputs.mjs +35 -35
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +36 -36
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +35 -35
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +36 -36
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +35 -35
- package/dist/dial/wrapped-inputs/index.cjs +56 -56
- package/dist/dial/wrapped-inputs/index.mjs +35 -35
- package/dist/highlight-cursor/enhanced-components.cjs +7 -7
- package/dist/highlight-cursor/enhanced-components.mjs +2 -2
- package/dist/highlight-cursor/index.cjs +7 -7
- package/dist/highlight-cursor/index.mjs +2 -2
- package/dist/index.cjs +228 -228
- package/dist/index.css +15 -8
- package/dist/index.mjs +35 -35
- package/dist/styles/theme.css +15 -8
- package/dist/ui/DialBadge.cjs +5 -5
- package/dist/ui/DialBadge.mjs +1 -1
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/badge.cjs +3 -3
- package/dist/ui/badge.mjs +1 -1
- package/dist/ui/card.cjs +8 -8
- package/dist/ui/card.mjs +1 -1
- package/dist/ui/drawer.cjs +11 -11
- package/dist/ui/drawer.mjs +1 -1
- package/dist/ui/dropdown.cjs +16 -16
- package/dist/ui/dropdown.mjs +1 -1
- package/dist/ui/index.cjs +195 -195
- package/dist/ui/index.mjs +32 -32
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +2 -2
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +1 -1
- package/dist/ui/layouts/dock-layout/index.cjs +2 -2
- package/dist/ui/layouts/dock-layout/index.mjs +1 -1
- package/dist/ui/layouts/index.cjs +2 -2
- package/dist/ui/layouts/index.mjs +1 -1
- package/dist/ui/modal.cjs +11 -11
- package/dist/ui/modal.mjs +1 -1
- package/dist/ui/panel.cjs +8 -8
- package/dist/ui/panel.mjs +1 -1
- package/dist/ui/popover.cjs +5 -5
- package/dist/ui/popover.mjs +1 -1
- package/dist/ui/select.cjs +12 -12
- package/dist/ui/select.mjs +1 -1
- package/dist/ui/sheet.cjs +9 -9
- package/dist/ui/sheet.mjs +1 -1
- package/dist/ui/sidebar.cjs +27 -27
- package/dist/ui/sidebar.mjs +3 -3
- package/dist/ui/theme/ThemeToggles.cjs +5 -5
- package/dist/ui/theme/ThemeToggles.mjs +2 -2
- package/dist/ui/theme/index.cjs +5 -5
- package/dist/ui/theme/index.mjs +2 -2
- package/dist/ui/toast.cjs +3 -3
- package/dist/ui/toast.mjs +1 -1
- package/dist/ui/toolbar.cjs +4 -4
- package/dist/ui/toolbar.mjs +1 -1
- package/dist/ui/tooltip.cjs +5 -5
- package/dist/ui/tooltip.mjs +1 -1
- package/dist/ui/tree-view/TreeSearchBar.cjs +3 -3
- package/dist/ui/tree-view/TreeSearchBar.mjs +2 -2
- package/dist/ui/tree-view/index.cjs +3 -3
- package/dist/ui/tree-view/index.mjs +2 -2
- package/dist/ui/tree-view-legacy.cjs +6 -6
- package/dist/ui/tree-view-legacy.mjs +2 -2
- package/dist/ui/waterfall/NavigationControls.cjs +2 -2
- package/dist/ui/waterfall/NavigationControls.mjs +1 -1
- package/dist/ui/waterfall/Tick.cjs +2 -2
- package/dist/ui/waterfall/Tick.mjs +1 -1
- package/dist/ui/waterfall/index.cjs +8 -8
- package/dist/ui/waterfall/index.mjs +7 -7
- package/package.json +1 -1
- package/src/dial/DialPanel.tsx +1 -1
- package/src/dial/DialProvider.tsx +1 -0
- package/src/styles/theme.css +75 -28
- package/src/ui/badge.tsx +1 -1
- package/src/ui/card.tsx +2 -1
- package/src/ui/drawer.tsx +1 -1
- package/src/ui/dropdown.tsx +4 -2
- package/src/ui/layouts/dock-layout/DockLayoutView.tsx +6 -82
- package/src/ui/modal.tsx +2 -1
- package/src/ui/panel.tsx +2 -1
- package/src/ui/popover.tsx +4 -2
- package/src/ui/select.tsx +2 -1
- package/src/ui/sheet.tsx +2 -2
- package/src/ui/sidebar.tsx +1 -1
- package/src/ui/toast.tsx +1 -1
- package/src/ui/toolbar.tsx +1 -1
- package/src/ui/tooltip.tsx +5 -13
- package/src/ui/waterfall/NavigationControls.tsx +1 -1
- package/src/ui/waterfall/Tick.tsx +1 -1
- package/src/ui/waterfall/index.tsx +4 -3
- package/dist/chunk-5T7MTIHW.mjs +0 -75
- package/dist/chunk-KAA4NEHL.cjs +0 -77
- package/dist/{chunk-6DYF6WO6.mjs → chunk-FBAOEFDU.mjs} +1 -1
- package/dist/{chunk-3PDV3ZKD.cjs → chunk-JLWAIMUZ.cjs} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
DockLayout,
|
|
@@ -36,93 +36,17 @@ export const DockLayoutView = ({
|
|
|
36
36
|
bottomClassName,
|
|
37
37
|
contentClassName,
|
|
38
38
|
}: DockLayoutViewProps) => {
|
|
39
|
-
const containerRef = useRef<HTMLDivElement>(null);
|
|
40
|
-
const leftRef = useRef<HTMLDivElement>(null);
|
|
41
|
-
const rightRef = useRef<HTMLDivElement>(null);
|
|
42
|
-
const bottomRef = useRef<HTMLDivElement>(null);
|
|
43
|
-
const measureRef = useRef<HTMLDivElement>(null);
|
|
44
|
-
const [isBottomFullWidth, setIsBottomFullWidth] = useState(false);
|
|
45
|
-
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
const checkBottomWidth = () => {
|
|
48
|
-
if (!containerRef.current || !bottom || !measureRef.current) return;
|
|
49
|
-
|
|
50
|
-
const containerWidth = containerRef.current.offsetWidth;
|
|
51
|
-
const leftWidth = leftRef.current?.offsetWidth || 0;
|
|
52
|
-
const rightWidth = rightRef.current?.offsetWidth || 0;
|
|
53
|
-
const availableWidth = containerWidth - leftWidth - rightWidth;
|
|
54
|
-
|
|
55
|
-
const bottomActualWidth = measureRef.current.scrollWidth;
|
|
56
|
-
|
|
57
|
-
setIsBottomFullWidth(bottomActualWidth > 0 && availableWidth < bottomActualWidth);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const resizeObserver = new ResizeObserver(checkBottomWidth);
|
|
61
|
-
|
|
62
|
-
if (containerRef.current) {
|
|
63
|
-
resizeObserver.observe(containerRef.current);
|
|
64
|
-
}
|
|
65
|
-
if (leftRef.current) {
|
|
66
|
-
resizeObserver.observe(leftRef.current);
|
|
67
|
-
}
|
|
68
|
-
if (rightRef.current) {
|
|
69
|
-
resizeObserver.observe(rightRef.current);
|
|
70
|
-
}
|
|
71
|
-
if (measureRef.current) {
|
|
72
|
-
resizeObserver.observe(measureRef.current);
|
|
73
|
-
checkBottomWidth();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return () => {
|
|
77
|
-
resizeObserver.disconnect();
|
|
78
|
-
};
|
|
79
|
-
}, [bottom, left, right]);
|
|
80
|
-
|
|
81
39
|
return (
|
|
82
|
-
<DockLayout
|
|
83
|
-
{bottom && (
|
|
84
|
-
<div
|
|
85
|
-
ref={measureRef}
|
|
86
|
-
className="pointer-events-none absolute -top-[9999px] left-0 opacity-0"
|
|
87
|
-
style={{ width: "max-content" }}
|
|
88
|
-
>
|
|
89
|
-
<DockLayoutBottom className={bottomClassName}>{bottom}</DockLayoutBottom>
|
|
90
|
-
</div>
|
|
91
|
-
)}
|
|
92
|
-
|
|
40
|
+
<DockLayout className={className}>
|
|
93
41
|
{top && <DockLayoutTop className={topClassName}>{top}</DockLayoutTop>}
|
|
94
42
|
|
|
95
43
|
<div className="flex flex-1 overflow-hidden">
|
|
96
|
-
{left &&
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</div>
|
|
100
|
-
)}
|
|
101
|
-
|
|
102
|
-
<div className="flex flex-1 flex-col overflow-hidden">
|
|
103
|
-
<DockLayoutContent className={contentClassName}>{children}</DockLayoutContent>
|
|
104
|
-
|
|
105
|
-
{bottom && !isBottomFullWidth && (
|
|
106
|
-
<div className="flex justify-center">
|
|
107
|
-
<DockLayoutBottom ref={bottomRef} className={bottomClassName}>
|
|
108
|
-
{bottom}
|
|
109
|
-
</DockLayoutBottom>
|
|
110
|
-
</div>
|
|
111
|
-
)}
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
{right && (
|
|
115
|
-
<div ref={rightRef}>
|
|
116
|
-
<DockLayoutRight className={rightClassName}>{right}</DockLayoutRight>
|
|
117
|
-
</div>
|
|
118
|
-
)}
|
|
44
|
+
{left && <DockLayoutLeft className={leftClassName}>{left}</DockLayoutLeft>}
|
|
45
|
+
<DockLayoutContent className={contentClassName}>{children}</DockLayoutContent>
|
|
46
|
+
{right && <DockLayoutRight className={rightClassName}>{right}</DockLayoutRight>}
|
|
119
47
|
</div>
|
|
120
48
|
|
|
121
|
-
{bottom &&
|
|
122
|
-
<DockLayoutBottom ref={bottomRef} className={bottomClassName}>
|
|
123
|
-
{bottom}
|
|
124
|
-
</DockLayoutBottom>
|
|
125
|
-
)}
|
|
49
|
+
{bottom && <DockLayoutBottom className={bottomClassName}>{bottom}</DockLayoutBottom>}
|
|
126
50
|
</DockLayout>
|
|
127
51
|
);
|
|
128
52
|
};
|
package/src/ui/modal.tsx
CHANGED
|
@@ -77,7 +77,8 @@ const modalContentVariants = cva([
|
|
|
77
77
|
"data-[state=open]:fade-in-0",
|
|
78
78
|
"data-[state=closed]:zoom-out-95",
|
|
79
79
|
"data-[state=open]:zoom-in-95",
|
|
80
|
-
"liquid:liquid-bg",
|
|
80
|
+
"liquid-dark:liquid-dark-bg",
|
|
81
|
+
"liquid-light:liquid-light-bg",
|
|
81
82
|
]);
|
|
82
83
|
|
|
83
84
|
interface ModalContentProps extends ComponentProps<typeof DialogPrimitive.Content> {
|
package/src/ui/panel.tsx
CHANGED
package/src/ui/popover.tsx
CHANGED
|
@@ -74,7 +74,8 @@ function PopoverContentRoot({
|
|
|
74
74
|
"origin-(--radix-popover-content-transform-origin)",
|
|
75
75
|
"border-none",
|
|
76
76
|
"outline-hidden",
|
|
77
|
-
"liquid:liquid-bg",
|
|
77
|
+
"liquid-dark:liquid-dark-bg",
|
|
78
|
+
"liquid-light:liquid-light-bg",
|
|
78
79
|
className,
|
|
79
80
|
)}
|
|
80
81
|
{...props}
|
|
@@ -95,7 +96,8 @@ function PopoverContentFallback({ className, ...props }: ComponentProps<"div">)
|
|
|
95
96
|
"z-20",
|
|
96
97
|
"border-none",
|
|
97
98
|
"outline-hidden",
|
|
98
|
-
"liquid:liquid-bg",
|
|
99
|
+
"liquid-dark:liquid-dark-bg",
|
|
100
|
+
"liquid-light:liquid-light-bg",
|
|
99
101
|
className,
|
|
100
102
|
)}
|
|
101
103
|
{...props}
|
package/src/ui/select.tsx
CHANGED
|
@@ -175,7 +175,8 @@ export function SelectContent({
|
|
|
175
175
|
"overflow-y-auto",
|
|
176
176
|
"rounded-uk-md",
|
|
177
177
|
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
178
|
-
"liquid:liquid-bg",
|
|
178
|
+
"liquid-dark:liquid-dark-bg",
|
|
179
|
+
"liquid-light:liquid-light-bg",
|
|
179
180
|
font === "standard" ? "font-sans" : "font-number-input",
|
|
180
181
|
],
|
|
181
182
|
{
|
package/src/ui/sheet.tsx
CHANGED
|
@@ -111,7 +111,7 @@ function SheetContentRoot({
|
|
|
111
111
|
<SheetPrimitive.Content
|
|
112
112
|
data-slot="sheet-content"
|
|
113
113
|
className={cn(
|
|
114
|
-
"liquid:liquid-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)] transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
114
|
+
"liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)] transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
115
115
|
side === "right" &&
|
|
116
116
|
"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-[340px]",
|
|
117
117
|
side === "left" &&
|
|
@@ -146,7 +146,7 @@ function SheetContentFallback({
|
|
|
146
146
|
<div
|
|
147
147
|
data-slot="sheet-content"
|
|
148
148
|
className={cn(
|
|
149
|
-
"liquid:liquid-bg bg-bg-primary p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
149
|
+
"liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
150
150
|
side === "right" && "inset-y-0 right-0 h-full w-[340px]",
|
|
151
151
|
side === "left" && "inset-y-0 left-0 h-full w-[340px]",
|
|
152
152
|
side === "top" && "inset-x-0 top-0 h-auto",
|
package/src/ui/sidebar.tsx
CHANGED
|
@@ -222,7 +222,7 @@ function Sidebar({
|
|
|
222
222
|
<div
|
|
223
223
|
data-sidebar="sidebar"
|
|
224
224
|
data-slot="sidebar-inner"
|
|
225
|
-
className="bg-bg-primary liquid:liquid-bg group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:rounded-uk-lg flex h-full w-full flex-col font-normal group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
|
|
225
|
+
className="bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:rounded-uk-lg flex h-full w-full flex-col font-normal group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
|
|
226
226
|
>
|
|
227
227
|
{children}
|
|
228
228
|
</div>
|
package/src/ui/toast.tsx
CHANGED
|
@@ -19,7 +19,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
19
19
|
return (
|
|
20
20
|
<Sonner
|
|
21
21
|
toastOptions={{
|
|
22
|
-
className: "vk-toast liquid:liquid-bg",
|
|
22
|
+
className: "vk-toast liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg",
|
|
23
23
|
descriptionClassName: "vk-toast-description",
|
|
24
24
|
}}
|
|
25
25
|
{...props}
|
package/src/ui/toolbar.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export function Toolbar({ className, children, variant = "default", size = "md"
|
|
|
30
30
|
<div
|
|
31
31
|
className={cn(
|
|
32
32
|
"bg-bg-primary flex items-center gap-2",
|
|
33
|
-
"liquid:liquid-bg liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
33
|
+
"liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
34
34
|
size === "sm" && "rounded-uk-md p-1.5",
|
|
35
35
|
size === "md" && "rounded-uk-lg p-1.5",
|
|
36
36
|
size === "lg" && "rounded-uk-xl p-1.5",
|
package/src/ui/tooltip.tsx
CHANGED
|
@@ -97,18 +97,9 @@ function TooltipContent({
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
const getLiquidBgClass = (side?: string) => {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
case "bottom":
|
|
104
|
-
return "liquid:liquid-bg-tooltip-bottom";
|
|
105
|
-
case "left":
|
|
106
|
-
return "liquid:liquid-bg-tooltip-left";
|
|
107
|
-
case "right":
|
|
108
|
-
return "liquid:liquid-bg-tooltip-right";
|
|
109
|
-
default:
|
|
110
|
-
return "liquid:liquid-bg-tooltip-content";
|
|
111
|
-
}
|
|
100
|
+
if (side === "top" || side === "bottom" || side === "left" || side === "right")
|
|
101
|
+
return `liquid-dark:liquid-dark-bg-tooltip-${side} liquid-light:liquid-light-bg-tooltip-${side}`;
|
|
102
|
+
return "liquid-dark:liquid-dark-bg-tooltip-arrow liquid-light:liquid-light-bg-tooltip-arrow";
|
|
112
103
|
};
|
|
113
104
|
|
|
114
105
|
return (
|
|
@@ -154,7 +145,8 @@ function TooltipContent({
|
|
|
154
145
|
"h-[9px] w-[15px]",
|
|
155
146
|
"border-none",
|
|
156
147
|
"bg-bg-primary",
|
|
157
|
-
"liquid:liquid-bg-tooltip-arrow",
|
|
148
|
+
"liquid-dark:liquid-dark-bg-tooltip-arrow",
|
|
149
|
+
"liquid-light:liquid-light-bg-tooltip-arrow",
|
|
158
150
|
"relative",
|
|
159
151
|
)}
|
|
160
152
|
style={{
|
|
@@ -17,7 +17,7 @@ export function NavigationControls({
|
|
|
17
17
|
}: NavigationControlsProps) {
|
|
18
18
|
return (
|
|
19
19
|
<div className="sticky left-1/2 z-20 w-max">
|
|
20
|
-
<div className="bg-bg-primary/75 flex items-center gap-2 rounded-full p-1 text-sm shadow-[0_4px_16px_0_var(--color-shadow-secondary)] backdrop-blur-[2px]">
|
|
20
|
+
<div className="bg-bg-primary/75 liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg flex items-center gap-2 rounded-full p-1 text-sm shadow-[0_4px_16px_0_var(--color-shadow-secondary)] backdrop-blur-[2px]">
|
|
21
21
|
<button
|
|
22
22
|
onClick={() => handlePan("left")}
|
|
23
23
|
className="hover:bg-bg-secondary rounded-full p-1"
|
|
@@ -38,7 +38,7 @@ export function Tick({ time, label, timeToPercent, zIndex = 10 }: TimelineTickPr
|
|
|
38
38
|
/>
|
|
39
39
|
{/* Label */}
|
|
40
40
|
<div
|
|
41
|
-
className="bg-bg-primary text-text-secondary rounded-uk-xs text-uk-sm pointer-events-none absolute top-1/2 -translate-x-1/2 -translate-y-1/2 px-1 backdrop-blur-sm"
|
|
41
|
+
className="bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg text-text-secondary rounded-uk-xs text-uk-sm pointer-events-none absolute top-1/2 -translate-x-1/2 -translate-y-1/2 px-1 backdrop-blur-sm"
|
|
42
42
|
style={{
|
|
43
43
|
left: `${clampedCenterPercent}%`,
|
|
44
44
|
zIndex,
|
|
@@ -127,8 +127,9 @@ export function Waterfall({
|
|
|
127
127
|
<SyncScrollProvider>
|
|
128
128
|
<div
|
|
129
129
|
className={cn(
|
|
130
|
-
"bg-bg-primary
|
|
131
|
-
"
|
|
130
|
+
"bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg",
|
|
131
|
+
"text-text-primary rounded-uk-md",
|
|
132
|
+
"mx-auto flex w-full flex-col overflow-hidden font-sans",
|
|
132
133
|
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
133
134
|
className,
|
|
134
135
|
)}
|
|
@@ -173,7 +174,7 @@ export function Waterfall({
|
|
|
173
174
|
className="overflow-y-none scrollbar-hide relative flex h-full w-full flex-auto cursor-crosshair flex-col overflow-x-hidden pl-px active:cursor-grabbing"
|
|
174
175
|
>
|
|
175
176
|
{/* Timeline Ruler */}
|
|
176
|
-
<div className="
|
|
177
|
+
<div className="sticky top-0">
|
|
177
178
|
<div className="border-line-primary/50 relative h-8 border-b">
|
|
178
179
|
{/* Timeline markers */}
|
|
179
180
|
{ticks.map((marker, ind) => (
|
package/dist/chunk-5T7MTIHW.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { DockLayout, DockLayoutBottom, DockLayoutTop, DockLayoutLeft, DockLayoutContent, DockLayoutRight } from './chunk-3LO3AM25.mjs';
|
|
2
|
-
import { useRef, useState, useEffect } from 'react';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var DockLayoutView = ({
|
|
6
|
-
left,
|
|
7
|
-
right,
|
|
8
|
-
top,
|
|
9
|
-
bottom,
|
|
10
|
-
children,
|
|
11
|
-
className,
|
|
12
|
-
leftClassName,
|
|
13
|
-
rightClassName,
|
|
14
|
-
topClassName,
|
|
15
|
-
bottomClassName,
|
|
16
|
-
contentClassName
|
|
17
|
-
}) => {
|
|
18
|
-
const containerRef = useRef(null);
|
|
19
|
-
const leftRef = useRef(null);
|
|
20
|
-
const rightRef = useRef(null);
|
|
21
|
-
const bottomRef = useRef(null);
|
|
22
|
-
const measureRef = useRef(null);
|
|
23
|
-
const [isBottomFullWidth, setIsBottomFullWidth] = useState(false);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
const checkBottomWidth = () => {
|
|
26
|
-
if (!containerRef.current || !bottom || !measureRef.current) return;
|
|
27
|
-
const containerWidth = containerRef.current.offsetWidth;
|
|
28
|
-
const leftWidth = leftRef.current?.offsetWidth || 0;
|
|
29
|
-
const rightWidth = rightRef.current?.offsetWidth || 0;
|
|
30
|
-
const availableWidth = containerWidth - leftWidth - rightWidth;
|
|
31
|
-
const bottomActualWidth = measureRef.current.scrollWidth;
|
|
32
|
-
setIsBottomFullWidth(bottomActualWidth > 0 && availableWidth < bottomActualWidth);
|
|
33
|
-
};
|
|
34
|
-
const resizeObserver = new ResizeObserver(checkBottomWidth);
|
|
35
|
-
if (containerRef.current) {
|
|
36
|
-
resizeObserver.observe(containerRef.current);
|
|
37
|
-
}
|
|
38
|
-
if (leftRef.current) {
|
|
39
|
-
resizeObserver.observe(leftRef.current);
|
|
40
|
-
}
|
|
41
|
-
if (rightRef.current) {
|
|
42
|
-
resizeObserver.observe(rightRef.current);
|
|
43
|
-
}
|
|
44
|
-
if (measureRef.current) {
|
|
45
|
-
resizeObserver.observe(measureRef.current);
|
|
46
|
-
checkBottomWidth();
|
|
47
|
-
}
|
|
48
|
-
return () => {
|
|
49
|
-
resizeObserver.disconnect();
|
|
50
|
-
};
|
|
51
|
-
}, [bottom, left, right]);
|
|
52
|
-
return /* @__PURE__ */ jsxs(DockLayout, { ref: containerRef, className, children: [
|
|
53
|
-
bottom && /* @__PURE__ */ jsx(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
ref: measureRef,
|
|
57
|
-
className: "pointer-events-none absolute -top-[9999px] left-0 opacity-0",
|
|
58
|
-
style: { width: "max-content" },
|
|
59
|
-
children: /* @__PURE__ */ jsx(DockLayoutBottom, { className: bottomClassName, children: bottom })
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
top && /* @__PURE__ */ jsx(DockLayoutTop, { className: topClassName, children: top }),
|
|
63
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
64
|
-
left && /* @__PURE__ */ jsx("div", { ref: leftRef, children: /* @__PURE__ */ jsx(DockLayoutLeft, { className: leftClassName, children: left }) }),
|
|
65
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
66
|
-
/* @__PURE__ */ jsx(DockLayoutContent, { className: contentClassName, children }),
|
|
67
|
-
bottom && !isBottomFullWidth && /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom }) })
|
|
68
|
-
] }),
|
|
69
|
-
right && /* @__PURE__ */ jsx("div", { ref: rightRef, children: /* @__PURE__ */ jsx(DockLayoutRight, { className: rightClassName, children: right }) })
|
|
70
|
-
] }),
|
|
71
|
-
bottom && isBottomFullWidth && /* @__PURE__ */ jsx(DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom })
|
|
72
|
-
] });
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export { DockLayoutView };
|
package/dist/chunk-KAA4NEHL.cjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkUULSGVNF_cjs = require('./chunk-UULSGVNF.cjs');
|
|
4
|
-
var react = require('react');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
var DockLayoutView = ({
|
|
8
|
-
left,
|
|
9
|
-
right,
|
|
10
|
-
top,
|
|
11
|
-
bottom,
|
|
12
|
-
children,
|
|
13
|
-
className,
|
|
14
|
-
leftClassName,
|
|
15
|
-
rightClassName,
|
|
16
|
-
topClassName,
|
|
17
|
-
bottomClassName,
|
|
18
|
-
contentClassName
|
|
19
|
-
}) => {
|
|
20
|
-
const containerRef = react.useRef(null);
|
|
21
|
-
const leftRef = react.useRef(null);
|
|
22
|
-
const rightRef = react.useRef(null);
|
|
23
|
-
const bottomRef = react.useRef(null);
|
|
24
|
-
const measureRef = react.useRef(null);
|
|
25
|
-
const [isBottomFullWidth, setIsBottomFullWidth] = react.useState(false);
|
|
26
|
-
react.useEffect(() => {
|
|
27
|
-
const checkBottomWidth = () => {
|
|
28
|
-
if (!containerRef.current || !bottom || !measureRef.current) return;
|
|
29
|
-
const containerWidth = containerRef.current.offsetWidth;
|
|
30
|
-
const leftWidth = leftRef.current?.offsetWidth || 0;
|
|
31
|
-
const rightWidth = rightRef.current?.offsetWidth || 0;
|
|
32
|
-
const availableWidth = containerWidth - leftWidth - rightWidth;
|
|
33
|
-
const bottomActualWidth = measureRef.current.scrollWidth;
|
|
34
|
-
setIsBottomFullWidth(bottomActualWidth > 0 && availableWidth < bottomActualWidth);
|
|
35
|
-
};
|
|
36
|
-
const resizeObserver = new ResizeObserver(checkBottomWidth);
|
|
37
|
-
if (containerRef.current) {
|
|
38
|
-
resizeObserver.observe(containerRef.current);
|
|
39
|
-
}
|
|
40
|
-
if (leftRef.current) {
|
|
41
|
-
resizeObserver.observe(leftRef.current);
|
|
42
|
-
}
|
|
43
|
-
if (rightRef.current) {
|
|
44
|
-
resizeObserver.observe(rightRef.current);
|
|
45
|
-
}
|
|
46
|
-
if (measureRef.current) {
|
|
47
|
-
resizeObserver.observe(measureRef.current);
|
|
48
|
-
checkBottomWidth();
|
|
49
|
-
}
|
|
50
|
-
return () => {
|
|
51
|
-
resizeObserver.disconnect();
|
|
52
|
-
};
|
|
53
|
-
}, [bottom, left, right]);
|
|
54
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(chunkUULSGVNF_cjs.DockLayout, { ref: containerRef, className, children: [
|
|
55
|
-
bottom && /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
ref: measureRef,
|
|
59
|
-
className: "pointer-events-none absolute -top-[9999px] left-0 opacity-0",
|
|
60
|
-
style: { width: "max-content" },
|
|
61
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutBottom, { className: bottomClassName, children: bottom })
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
top && /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutTop, { className: topClassName, children: top }),
|
|
65
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
66
|
-
left && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: leftRef, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutLeft, { className: leftClassName, children: left }) }),
|
|
67
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
68
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutContent, { className: contentClassName, children }),
|
|
69
|
-
bottom && !isBottomFullWidth && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom }) })
|
|
70
|
-
] }),
|
|
71
|
-
right && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: rightRef, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutRight, { className: rightClassName, children: right }) })
|
|
72
|
-
] }),
|
|
73
|
-
bottom && isBottomFullWidth && /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom })
|
|
74
|
-
] });
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
exports.DockLayoutView = DockLayoutView;
|