@vuer-ai/vuer-uikit 0.0.106 → 0.0.109
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/SyncScroll/SyncScroll.cjs +9 -9
- package/dist/SyncScroll/SyncScroll.mjs +2 -2
- package/dist/SyncScroll/index.cjs +9 -9
- package/dist/SyncScroll/index.mjs +2 -2
- 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 +6 -6
- package/dist/auth/index.mjs +4 -4
- package/dist/auth/vuer-auth-provider.cjs +3 -3
- package/dist/auth/vuer-auth-provider.mjs +2 -2
- package/dist/{chunk-GZGPIREG.cjs → chunk-2PJO5UJL.cjs} +2 -2
- package/dist/chunk-2X6CAFVD.mjs +134 -0
- package/dist/chunk-4JAEMFDN.mjs +21 -0
- package/dist/{chunk-BXBSZOBU.cjs → chunk-5PHGYFZ3.cjs} +1 -1
- package/dist/{chunk-MTE5PRC6.cjs → chunk-7RHQ6DVU.cjs} +11 -11
- package/dist/chunk-A5VRTIX4.cjs +23 -0
- package/dist/{chunk-M4IHJGJE.cjs → chunk-ASR6OXVT.cjs} +2 -1
- package/dist/{chunk-SPRBKXGP.cjs → chunk-BFFOS7Z3.cjs} +61 -6
- package/dist/{chunk-D422PFKZ.mjs → chunk-DQUI3PIU.mjs} +2 -2
- package/dist/{chunk-XV5FH2J2.mjs → chunk-K2OC2HWQ.mjs} +7 -7
- package/dist/{chunk-WMIAD3PH.cjs → chunk-QIYGXPLM.cjs} +48 -32
- package/dist/{chunk-BZKJA3OC.mjs → chunk-QZUTRJSP.mjs} +1 -1
- package/dist/{chunk-QLCSID5D.mjs → chunk-RA6QMOFM.mjs} +42 -26
- package/dist/{chunk-3D2DO7JG.cjs → chunk-SHT4BJOB.cjs} +2 -2
- package/dist/{chunk-TYXRHZZG.mjs → chunk-TPAV6PXI.mjs} +1 -1
- package/dist/{chunk-42UBHC2D.mjs → chunk-YPQEJEB7.mjs} +2 -1
- package/dist/dial/DialPanel.cjs +36 -36
- package/dist/dial/DialPanel.mjs +35 -35
- 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/cursor-provider.cjs +3 -3
- package/dist/highlight-cursor/cursor-provider.mjs +2 -2
- package/dist/highlight-cursor/enhanced-components.cjs +1 -1
- package/dist/highlight-cursor/enhanced-components.mjs +1 -1
- package/dist/highlight-cursor/index.cjs +6 -6
- package/dist/highlight-cursor/index.mjs +2 -2
- package/dist/index.cjs +156 -156
- package/dist/index.css +14 -14
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +35 -35
- package/dist/styles/theme.css +1 -1
- 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/index.cjs +112 -112
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.mjs +31 -31
- package/dist/ui/inputs/index.cjs +21 -21
- package/dist/ui/inputs/index.mjs +5 -5
- package/dist/ui/inputs/number-inputs/index.cjs +15 -15
- package/dist/ui/inputs/number-inputs/index.mjs +3 -3
- package/dist/ui/label.cjs +2 -2
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.mjs +1 -1
- package/dist/ui/layout.d.cts +3 -2
- package/dist/ui/layout.d.ts +3 -2
- package/dist/ui/layouts/index.cjs +7 -7
- package/dist/ui/layouts/index.mjs +3 -3
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +7 -7
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +1 -1
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +3 -3
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.d.cts +1 -11
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.d.ts +1 -11
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +2 -2
- package/dist/ui/layouts/liquid-layout/index.cjs +3 -3
- package/dist/ui/layouts/liquid-layout/index.mjs +2 -2
- package/dist/ui/tree-view-legacy.cjs +7 -7
- package/dist/ui/tree-view-legacy.mjs +3 -3
- package/dist/ui/waterfall/index.cjs +11 -11
- package/dist/ui/waterfall/index.mjs +10 -10
- package/package.json +1 -1
- package/src/dial/DialPanel.tsx +17 -7
- package/src/dial/wrapped-inputs/DialInputs.tsx +29 -28
- package/src/styles/theme.css +2 -0
- package/src/ui/label.tsx +2 -1
- package/src/ui/layout.tsx +2 -1
- package/src/ui/layouts/liquid-layout/LayoutSlots.tsx +60 -6
- package/src/ui/layouts/liquid-layout/LiquidLayoutView.tsx +5 -25
- package/dist/chunk-H6MFBIRB.cjs +0 -35
- package/dist/chunk-PIC2EJWA.mjs +0 -79
- package/dist/chunk-THMYDDZF.mjs +0 -33
- package/dist/{chunk-THNR4QYH.mjs → chunk-5HS4PMUR.mjs} +1 -1
- package/dist/{chunk-A5LCX2UQ.cjs → chunk-5PDZWPUI.cjs} +1 -1
- package/dist/{chunk-T7XGQO7C.mjs → chunk-AKVHFPXH.mjs} +1 -1
- package/dist/{chunk-WWGF6TBZ.mjs → chunk-AUENXQXS.mjs} +1 -1
- package/dist/{chunk-VBBJSIY7.cjs → chunk-G5JZGNKY.cjs} +1 -1
- package/dist/{chunk-BEJIZ56L.mjs → chunk-PDOFOJ4P.mjs} +1 -1
- package/dist/{chunk-ESNLTYQD.cjs → chunk-T2D6PSA6.cjs} +1 -1
- package/dist/{chunk-3OISKBWF.cjs → chunk-XFTKHT2M.cjs} +1 -1
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
CmInput,
|
|
5
5
|
DegInput,
|
|
6
6
|
EulerDegInput,
|
|
7
7
|
EulerInput,
|
|
8
|
+
EulerRadInput,
|
|
8
9
|
FormLayout,
|
|
9
10
|
InchInput,
|
|
10
11
|
IntInput,
|
|
11
12
|
Label,
|
|
13
|
+
type LayoutType,
|
|
12
14
|
QuaternionInput,
|
|
13
15
|
RadInput,
|
|
14
16
|
TextInput,
|
|
@@ -16,7 +18,6 @@ import {
|
|
|
16
18
|
Vec3Input,
|
|
17
19
|
VectorInput,
|
|
18
20
|
} from "../../index";
|
|
19
|
-
import { EulerRadInput } from "../../ui/inputs/number-inputs/EulerRadInput";
|
|
20
21
|
import { LabelPositionT, useDialSchema } from "../DialProvider";
|
|
21
22
|
|
|
22
23
|
// Base props for all dial-wrapped inputs
|
|
@@ -29,19 +30,19 @@ interface DialWrapperProps {
|
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
// Helper component for wrapping inputs with labels
|
|
32
|
-
const DialInputWrapper: React.FC<{
|
|
33
|
-
label
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
const DialInputWrapper: React.FC<PropsWithChildren<DialWrapperProps>> = ({
|
|
34
|
+
label,
|
|
35
|
+
labelPosition = "top",
|
|
36
|
+
children,
|
|
37
|
+
}) => {
|
|
36
38
|
if (!label) {
|
|
37
39
|
return <>{children}</>;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
// Always use horizontal layout (label on left)
|
|
41
42
|
return (
|
|
42
|
-
<FormLayout orientation=
|
|
43
|
+
<FormLayout orientation={`label-${labelPosition}` as LayoutType}>
|
|
43
44
|
<Label size="sm">{label}</Label>
|
|
44
|
-
{children}
|
|
45
|
+
<>{children}</>
|
|
45
46
|
</FormLayout>
|
|
46
47
|
);
|
|
47
48
|
};
|
|
@@ -69,7 +70,7 @@ export const DialVec3Input: React.FC<DialWrapperProps> = ({
|
|
|
69
70
|
);
|
|
70
71
|
} else {
|
|
71
72
|
return (
|
|
72
|
-
<DialInputWrapper label={label}>
|
|
73
|
+
<DialInputWrapper name={name} label={label}>
|
|
73
74
|
<Vec3Input
|
|
74
75
|
value={value}
|
|
75
76
|
onValuesChange={(val) => setValue(name, val)}
|
|
@@ -104,7 +105,7 @@ export const DialEulerInput: React.FC<DialWrapperProps> = ({
|
|
|
104
105
|
);
|
|
105
106
|
} else {
|
|
106
107
|
return (
|
|
107
|
-
<DialInputWrapper label={label}>
|
|
108
|
+
<DialInputWrapper name={name} label={label}>
|
|
108
109
|
<EulerInput
|
|
109
110
|
value={value}
|
|
110
111
|
onValuesChange={(val) => setValue(name, val)}
|
|
@@ -139,7 +140,7 @@ export const DialEulerDegInput: React.FC<DialWrapperProps> = ({
|
|
|
139
140
|
);
|
|
140
141
|
} else {
|
|
141
142
|
return (
|
|
142
|
-
<DialInputWrapper label={label}>
|
|
143
|
+
<DialInputWrapper name={name} label={label}>
|
|
143
144
|
<EulerDegInput
|
|
144
145
|
value={value}
|
|
145
146
|
onValuesChange={(val) => setValue(name, val)}
|
|
@@ -174,7 +175,7 @@ export const DialQuaternionInput: React.FC<DialWrapperProps> = ({
|
|
|
174
175
|
);
|
|
175
176
|
} else {
|
|
176
177
|
return (
|
|
177
|
-
<DialInputWrapper label={label}>
|
|
178
|
+
<DialInputWrapper name={name} label={label}>
|
|
178
179
|
<QuaternionInput
|
|
179
180
|
value={value}
|
|
180
181
|
onValuesChange={(val) => setValue(name, val)}
|
|
@@ -210,7 +211,7 @@ export const DialVectorInput: React.FC<DialWrapperProps & { dimensions?: number
|
|
|
210
211
|
);
|
|
211
212
|
} else {
|
|
212
213
|
return (
|
|
213
|
-
<DialInputWrapper label={label}>
|
|
214
|
+
<DialInputWrapper name={name} label={label}>
|
|
214
215
|
<VectorInput
|
|
215
216
|
value={value}
|
|
216
217
|
onValuesChange={(val) => setValue(name, val)}
|
|
@@ -245,7 +246,7 @@ export const DialIntInput: React.FC<DialWrapperProps> = ({
|
|
|
245
246
|
);
|
|
246
247
|
} else {
|
|
247
248
|
return (
|
|
248
|
-
<DialInputWrapper label={label}>
|
|
249
|
+
<DialInputWrapper name={name} label={label}>
|
|
249
250
|
<IntInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
|
|
250
251
|
</DialInputWrapper>
|
|
251
252
|
);
|
|
@@ -275,7 +276,7 @@ export const DialDegInput: React.FC<DialWrapperProps> = ({
|
|
|
275
276
|
);
|
|
276
277
|
} else {
|
|
277
278
|
return (
|
|
278
|
-
<DialInputWrapper label={label}>
|
|
279
|
+
<DialInputWrapper name={name} label={label}>
|
|
279
280
|
<DegInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
|
|
280
281
|
</DialInputWrapper>
|
|
281
282
|
);
|
|
@@ -305,7 +306,7 @@ export const DialRadInput: React.FC<DialWrapperProps> = ({
|
|
|
305
306
|
);
|
|
306
307
|
} else {
|
|
307
308
|
return (
|
|
308
|
-
<DialInputWrapper label={label}>
|
|
309
|
+
<DialInputWrapper name={name} label={label}>
|
|
309
310
|
<RadInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
|
|
310
311
|
</DialInputWrapper>
|
|
311
312
|
);
|
|
@@ -335,7 +336,7 @@ export const DialCmInput: React.FC<DialWrapperProps> = ({
|
|
|
335
336
|
);
|
|
336
337
|
} else {
|
|
337
338
|
return (
|
|
338
|
-
<DialInputWrapper label={label}>
|
|
339
|
+
<DialInputWrapper name={name} label={label}>
|
|
339
340
|
<CmInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
|
|
340
341
|
</DialInputWrapper>
|
|
341
342
|
);
|
|
@@ -365,7 +366,7 @@ export const DialInchInput: React.FC<DialWrapperProps> = ({
|
|
|
365
366
|
);
|
|
366
367
|
} else {
|
|
367
368
|
return (
|
|
368
|
-
<DialInputWrapper label={label}>
|
|
369
|
+
<DialInputWrapper name={name} label={label}>
|
|
369
370
|
<InchInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
|
|
370
371
|
</DialInputWrapper>
|
|
371
372
|
);
|
|
@@ -395,7 +396,7 @@ export const DialTimeInput: React.FC<DialWrapperProps> = ({
|
|
|
395
396
|
);
|
|
396
397
|
} else {
|
|
397
398
|
return (
|
|
398
|
-
<DialInputWrapper label={label}>
|
|
399
|
+
<DialInputWrapper name={name} label={label}>
|
|
399
400
|
<TimeInput value={value} onChange={(val) => setValue(name, val)} size={size} step={step} />
|
|
400
401
|
</DialInputWrapper>
|
|
401
402
|
);
|
|
@@ -425,11 +426,11 @@ export const DialTextInput: React.FC<DialWrapperProps & { placeholder?: string }
|
|
|
425
426
|
);
|
|
426
427
|
} else {
|
|
427
428
|
return (
|
|
428
|
-
<DialInputWrapper label={label}>
|
|
429
|
-
<TextInput
|
|
430
|
-
value={value}
|
|
431
|
-
onChange={(val) => setValue(name, val)}
|
|
432
|
-
size={size}
|
|
429
|
+
<DialInputWrapper name={name} label={label}>
|
|
430
|
+
<TextInput
|
|
431
|
+
value={value}
|
|
432
|
+
onChange={(val) => setValue(name, val)}
|
|
433
|
+
size={size}
|
|
433
434
|
placeholder={placeholder}
|
|
434
435
|
/>
|
|
435
436
|
</DialInputWrapper>
|
|
@@ -461,7 +462,7 @@ export const DialEulerRadInput: React.FC<DialWrapperProps> = ({
|
|
|
461
462
|
);
|
|
462
463
|
} else {
|
|
463
464
|
return (
|
|
464
|
-
<DialInputWrapper label={label}>
|
|
465
|
+
<DialInputWrapper name={name} label={label}>
|
|
465
466
|
<EulerRadInput
|
|
466
467
|
value={value}
|
|
467
468
|
onValuesChange={(val) => setValue(name, val)}
|
|
@@ -487,7 +488,7 @@ export const DialNumberRadInput: React.FC<DialWrapperProps> = ({
|
|
|
487
488
|
|
|
488
489
|
// Convert radians to degrees for display
|
|
489
490
|
const degValue = (value * 180) / Math.PI;
|
|
490
|
-
|
|
491
|
+
|
|
491
492
|
// Handler to convert degrees back to radians
|
|
492
493
|
const handleChange = (deg: number) => {
|
|
493
494
|
const rad = (deg * Math.PI) / 180;
|
|
@@ -506,7 +507,7 @@ export const DialNumberRadInput: React.FC<DialWrapperProps> = ({
|
|
|
506
507
|
);
|
|
507
508
|
} else {
|
|
508
509
|
return (
|
|
509
|
-
<DialInputWrapper label={label}>
|
|
510
|
+
<DialInputWrapper name={name} label={label}>
|
|
510
511
|
<DegInput value={degValue} onChange={handleChange} size={size} step={step} />
|
|
511
512
|
</DialInputWrapper>
|
|
512
513
|
);
|
package/src/styles/theme.css
CHANGED
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
--spacing-xl: calc(var(--spacing) + 12px); /* 16px */
|
|
179
179
|
/* font-size */
|
|
180
180
|
--text-uk-hint: 10px; /* hint text */
|
|
181
|
+
--text-uk-xxs: 10px; /* primary text, input title */
|
|
181
182
|
--text-uk-xs: 11px; /* primary text, input title */
|
|
182
183
|
--text-uk-sm: 12px; /* tab, highlight text, numbers */
|
|
183
184
|
--text-uk-subtitle: 13px; /* subtitle */
|
|
@@ -188,6 +189,7 @@
|
|
|
188
189
|
--text-uk-h1: 30px; /* heading 1 */
|
|
189
190
|
/* line-height */
|
|
190
191
|
--leading-uk-hint: 12px; /* hint text */
|
|
192
|
+
--leading-uk-xxs: 12px; /* primary text, input title */
|
|
191
193
|
--leading-uk-xs: 14px; /* primary text, input title */
|
|
192
194
|
--leading-uk-sm: 16px; /* tab, highlight text, numbers */
|
|
193
195
|
--leading-uk-subtitle: 18px; /* subtitle */
|
package/src/ui/label.tsx
CHANGED
|
@@ -12,6 +12,7 @@ const labelVariants = cva(
|
|
|
12
12
|
xs: "text-xxs",
|
|
13
13
|
sm: "text-xs",
|
|
14
14
|
lg: "text-md",
|
|
15
|
+
hint: "text-hint text-muted-foreground",
|
|
15
16
|
},
|
|
16
17
|
},
|
|
17
18
|
defaultVariants: {
|
|
@@ -22,7 +23,7 @@ const labelVariants = cva(
|
|
|
22
23
|
|
|
23
24
|
type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
|
|
24
25
|
VariantProps<typeof labelVariants> & {
|
|
25
|
-
size?: "xs" | "sm" | "lg";
|
|
26
|
+
size?: "xs" | "sm" | "lg" | "hint";
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
const Label = React.forwardRef<React.ComponentRef<typeof LabelPrimitive.Root>, LabelProps>(
|
package/src/ui/layout.tsx
CHANGED
|
@@ -3,11 +3,12 @@ import { PropsWithChildren, ReactElement } from "react";
|
|
|
3
3
|
|
|
4
4
|
import { cn } from "../hooks";
|
|
5
5
|
|
|
6
|
+
export type LayoutType = "label-left" | "label-top";
|
|
6
7
|
export interface FormLayoutProps extends PropsWithChildren {
|
|
7
8
|
align?: "start" | "center" | "end" | "baseline";
|
|
8
9
|
asChild?: boolean;
|
|
9
10
|
className?: string;
|
|
10
|
-
orientation?:
|
|
11
|
+
orientation?: LayoutType;
|
|
11
12
|
children: [ReactElement, ReactElement];
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -8,7 +8,20 @@ export function LiquidLayout({ className, ...props }: Readonly<ComponentProps<"d
|
|
|
8
8
|
<div
|
|
9
9
|
{...props}
|
|
10
10
|
className={cn(
|
|
11
|
-
|
|
11
|
+
[
|
|
12
|
+
"pointer-events-none",
|
|
13
|
+
"relative",
|
|
14
|
+
"z-1",
|
|
15
|
+
"grid",
|
|
16
|
+
"h-full",
|
|
17
|
+
"w-full",
|
|
18
|
+
"grid-cols-3",
|
|
19
|
+
"grid-rows-[1fr_auto]",
|
|
20
|
+
"flex-col",
|
|
21
|
+
"justify-between",
|
|
22
|
+
"overflow-hidden",
|
|
23
|
+
"p-4",
|
|
24
|
+
],
|
|
12
25
|
className,
|
|
13
26
|
)}
|
|
14
27
|
/>
|
|
@@ -20,7 +33,15 @@ interface LiquidLayoutChildProps extends ComponentProps<"div"> {
|
|
|
20
33
|
}
|
|
21
34
|
|
|
22
35
|
export function LiquidLayoutContent({ className, ...props }: Readonly<ComponentProps<"div">>) {
|
|
23
|
-
return
|
|
36
|
+
return (
|
|
37
|
+
<div
|
|
38
|
+
{...props}
|
|
39
|
+
className={cn(
|
|
40
|
+
["pointer-events-auto", "absolute", "inset-0", "-z-1"],
|
|
41
|
+
className,
|
|
42
|
+
)}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
24
45
|
}
|
|
25
46
|
|
|
26
47
|
export function LiquidLayoutLeft({ className, ...props }: Readonly<ComponentProps<"div">>) {
|
|
@@ -28,7 +49,16 @@ export function LiquidLayoutLeft({ className, ...props }: Readonly<ComponentProp
|
|
|
28
49
|
<div
|
|
29
50
|
{...props}
|
|
30
51
|
className={cn(
|
|
31
|
-
|
|
52
|
+
[
|
|
53
|
+
"order-2",
|
|
54
|
+
"col-start-1",
|
|
55
|
+
"flex",
|
|
56
|
+
"flex-col",
|
|
57
|
+
"items-start",
|
|
58
|
+
"gap-4",
|
|
59
|
+
"overflow-y-auto",
|
|
60
|
+
"[&>*]:pointer-events-auto",
|
|
61
|
+
],
|
|
32
62
|
className,
|
|
33
63
|
)}
|
|
34
64
|
/>
|
|
@@ -40,7 +70,14 @@ export function LiquidLayoutTop({ className, ...props }: Readonly<ComponentProps
|
|
|
40
70
|
<div
|
|
41
71
|
{...props}
|
|
42
72
|
className={cn(
|
|
43
|
-
|
|
73
|
+
[
|
|
74
|
+
"order-3",
|
|
75
|
+
"col-start-2",
|
|
76
|
+
"flex",
|
|
77
|
+
"items-start",
|
|
78
|
+
"justify-center",
|
|
79
|
+
"[&>*]:pointer-events-auto",
|
|
80
|
+
],
|
|
44
81
|
className,
|
|
45
82
|
)}
|
|
46
83
|
/>
|
|
@@ -57,7 +94,17 @@ export function LiquidLayoutRight({
|
|
|
57
94
|
<Comp
|
|
58
95
|
{...props}
|
|
59
96
|
className={cn(
|
|
60
|
-
|
|
97
|
+
[
|
|
98
|
+
"order-4",
|
|
99
|
+
"col-start-3",
|
|
100
|
+
"flex",
|
|
101
|
+
"flex-col",
|
|
102
|
+
"items-end",
|
|
103
|
+
"gap-4",
|
|
104
|
+
"justify-self-end",
|
|
105
|
+
"overflow-y-auto",
|
|
106
|
+
"[&>*]:pointer-events-auto",
|
|
107
|
+
],
|
|
61
108
|
className,
|
|
62
109
|
)}
|
|
63
110
|
/>
|
|
@@ -74,7 +121,14 @@ export function LiquidLayoutBottom({
|
|
|
74
121
|
<Comp
|
|
75
122
|
{...props}
|
|
76
123
|
className={cn(
|
|
77
|
-
|
|
124
|
+
[
|
|
125
|
+
"order-5",
|
|
126
|
+
"col-span-3",
|
|
127
|
+
"col-start-1",
|
|
128
|
+
"flex",
|
|
129
|
+
"justify-center",
|
|
130
|
+
"[&>*]:pointer-events-auto",
|
|
131
|
+
],
|
|
78
132
|
className,
|
|
79
133
|
)}
|
|
80
134
|
/>
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
LiquidLayoutRight,
|
|
9
9
|
LiquidLayoutTop,
|
|
10
10
|
} from "./LayoutSlots";
|
|
11
|
-
import { cn } from "../../../hooks";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* Props for the LiquidLayoutView component
|
|
@@ -26,16 +25,6 @@ interface LiquidLayoutViewProps {
|
|
|
26
25
|
children?: ReactNode;
|
|
27
26
|
/** Additional CSS classes to apply to the root element */
|
|
28
27
|
className?: string;
|
|
29
|
-
/** CSS classes to apply to the left slot */
|
|
30
|
-
leftClassName?: string;
|
|
31
|
-
/** CSS classes to apply to the right slot */
|
|
32
|
-
rightClassName?: string;
|
|
33
|
-
/** CSS classes to apply to the top slot */
|
|
34
|
-
topClassName?: string;
|
|
35
|
-
/** CSS classes to apply to the bottom slot */
|
|
36
|
-
bottomClassName?: string;
|
|
37
|
-
/** CSS classes to apply to the content slot */
|
|
38
|
-
contentClassName?: string;
|
|
39
28
|
}
|
|
40
29
|
|
|
41
30
|
/**
|
|
@@ -52,25 +41,16 @@ export const LiquidLayoutView = ({
|
|
|
52
41
|
bottom,
|
|
53
42
|
children,
|
|
54
43
|
className,
|
|
55
|
-
leftClassName,
|
|
56
|
-
rightClassName,
|
|
57
|
-
topClassName,
|
|
58
|
-
bottomClassName,
|
|
59
|
-
contentClassName,
|
|
60
44
|
}: LiquidLayoutViewProps) => {
|
|
61
45
|
return (
|
|
62
46
|
<LiquidLayout className={className}>
|
|
63
|
-
<LiquidLayoutContent
|
|
64
|
-
className={cn("absolute flex flex-col items-center justify-center", contentClassName)}
|
|
65
|
-
>
|
|
47
|
+
<LiquidLayoutContent className="absolute flex flex-col items-center justify-center">
|
|
66
48
|
{children}
|
|
67
49
|
</LiquidLayoutContent>
|
|
68
|
-
{bottom &&
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
{left && <LiquidLayoutLeft className={leftClassName}>{left}</LiquidLayoutLeft>}
|
|
73
|
-
{top && <LiquidLayoutTop className={topClassName}>{top}</LiquidLayoutTop>}
|
|
50
|
+
{bottom && <LiquidLayoutBottom className="mt-4">{bottom}</LiquidLayoutBottom>}
|
|
51
|
+
{right && <LiquidLayoutRight className="max-w-75">{right}</LiquidLayoutRight>}
|
|
52
|
+
{top && <LiquidLayoutTop>{top}</LiquidLayoutTop>}
|
|
53
|
+
{left && <LiquidLayoutLeft className="max-w-75">{left}</LiquidLayoutLeft>}
|
|
74
54
|
</LiquidLayout>
|
|
75
55
|
);
|
|
76
56
|
};
|
package/dist/chunk-H6MFBIRB.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSPRBKXGP_cjs = require('./chunk-SPRBKXGP.cjs');
|
|
4
|
-
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
var LiquidLayoutView = ({
|
|
8
|
-
left,
|
|
9
|
-
right,
|
|
10
|
-
top,
|
|
11
|
-
bottom,
|
|
12
|
-
children,
|
|
13
|
-
className,
|
|
14
|
-
leftClassName,
|
|
15
|
-
rightClassName,
|
|
16
|
-
topClassName,
|
|
17
|
-
bottomClassName,
|
|
18
|
-
contentClassName
|
|
19
|
-
}) => {
|
|
20
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSPRBKXGP_cjs.LiquidLayout, { className, children: [
|
|
21
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
-
chunkSPRBKXGP_cjs.LiquidLayoutContent,
|
|
23
|
-
{
|
|
24
|
-
className: chunkOHIB3TEN_cjs.cn("absolute flex flex-col items-center justify-center", contentClassName),
|
|
25
|
-
children
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
bottom && /* @__PURE__ */ jsxRuntime.jsx(chunkSPRBKXGP_cjs.LiquidLayoutBottom, { className: chunkOHIB3TEN_cjs.cn("mt-4", bottomClassName), children: bottom }),
|
|
29
|
-
right && /* @__PURE__ */ jsxRuntime.jsx(chunkSPRBKXGP_cjs.LiquidLayoutRight, { className: rightClassName, children: right }),
|
|
30
|
-
left && /* @__PURE__ */ jsxRuntime.jsx(chunkSPRBKXGP_cjs.LiquidLayoutLeft, { className: leftClassName, children: left }),
|
|
31
|
-
top && /* @__PURE__ */ jsxRuntime.jsx(chunkSPRBKXGP_cjs.LiquidLayoutTop, { className: topClassName, children: top })
|
|
32
|
-
] });
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
exports.LiquidLayoutView = LiquidLayoutView;
|
package/dist/chunk-PIC2EJWA.mjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function LiquidLayout({ className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
...props,
|
|
10
|
-
className: cn(
|
|
11
|
-
"pointer-events-none relative z-1 grid h-full w-full grid-cols-3 grid-rows-[1fr_auto] flex-col justify-between overflow-hidden p-4",
|
|
12
|
-
className
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
function LiquidLayoutContent({ className, ...props }) {
|
|
18
|
-
return /* @__PURE__ */ jsx("div", { ...props, className: cn("pointer-events-auto absolute inset-0 -z-1", className) });
|
|
19
|
-
}
|
|
20
|
-
function LiquidLayoutLeft({ className, ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
"div",
|
|
23
|
-
{
|
|
24
|
-
...props,
|
|
25
|
-
className: cn(
|
|
26
|
-
"order-2 col-start-1 flex flex-col items-start gap-4 overflow-y-auto [&>*]:pointer-events-auto",
|
|
27
|
-
className
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
function LiquidLayoutTop({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
...props,
|
|
37
|
-
className: cn(
|
|
38
|
-
"order-3 col-start-2 flex items-start justify-center [&>*]:pointer-events-auto",
|
|
39
|
-
className
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
function LiquidLayoutRight({
|
|
45
|
-
className,
|
|
46
|
-
asChild,
|
|
47
|
-
...props
|
|
48
|
-
}) {
|
|
49
|
-
const Comp = asChild ? Slot : "div";
|
|
50
|
-
return /* @__PURE__ */ jsx(
|
|
51
|
-
Comp,
|
|
52
|
-
{
|
|
53
|
-
...props,
|
|
54
|
-
className: cn(
|
|
55
|
-
"order-4 col-start-3 flex flex-col items-end gap-4 overflow-y-auto [&>*]:pointer-events-auto",
|
|
56
|
-
className
|
|
57
|
-
)
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
function LiquidLayoutBottom({
|
|
62
|
-
className,
|
|
63
|
-
asChild,
|
|
64
|
-
...props
|
|
65
|
-
}) {
|
|
66
|
-
const Comp = asChild ? Slot : "div";
|
|
67
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
-
Comp,
|
|
69
|
-
{
|
|
70
|
-
...props,
|
|
71
|
-
className: cn(
|
|
72
|
-
"order-5 col-span-3 col-start-1 flex justify-center [&>*]:pointer-events-auto",
|
|
73
|
-
className
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export { LiquidLayout, LiquidLayoutBottom, LiquidLayoutContent, LiquidLayoutLeft, LiquidLayoutRight, LiquidLayoutTop };
|
package/dist/chunk-THMYDDZF.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { LiquidLayout, LiquidLayoutContent, LiquidLayoutBottom, LiquidLayoutRight, LiquidLayoutLeft, LiquidLayoutTop } from './chunk-PIC2EJWA.mjs';
|
|
2
|
-
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var LiquidLayoutView = ({
|
|
6
|
-
left,
|
|
7
|
-
right,
|
|
8
|
-
top,
|
|
9
|
-
bottom,
|
|
10
|
-
children,
|
|
11
|
-
className,
|
|
12
|
-
leftClassName,
|
|
13
|
-
rightClassName,
|
|
14
|
-
topClassName,
|
|
15
|
-
bottomClassName,
|
|
16
|
-
contentClassName
|
|
17
|
-
}) => {
|
|
18
|
-
return /* @__PURE__ */ jsxs(LiquidLayout, { className, children: [
|
|
19
|
-
/* @__PURE__ */ jsx(
|
|
20
|
-
LiquidLayoutContent,
|
|
21
|
-
{
|
|
22
|
-
className: cn("absolute flex flex-col items-center justify-center", contentClassName),
|
|
23
|
-
children
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
bottom && /* @__PURE__ */ jsx(LiquidLayoutBottom, { className: cn("mt-4", bottomClassName), children: bottom }),
|
|
27
|
-
right && /* @__PURE__ */ jsx(LiquidLayoutRight, { className: rightClassName, children: right }),
|
|
28
|
-
left && /* @__PURE__ */ jsx(LiquidLayoutLeft, { className: leftClassName, children: left }),
|
|
29
|
-
top && /* @__PURE__ */ jsx(LiquidLayoutTop, { className: topClassName, children: top })
|
|
30
|
-
] });
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { LiquidLayoutView };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthContext } from './chunk-TC3W4VRO.mjs';
|
|
2
1
|
import { getSession } from './chunk-T57VFBIC.mjs';
|
|
2
|
+
import { AuthContext } from './chunk-TC3W4VRO.mjs';
|
|
3
3
|
import { bearerToken } from './chunk-276VJZCV.mjs';
|
|
4
4
|
import { useState, useCallback, useEffect, useMemo } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
4
3
|
var chunkP6DICGAV_cjs = require('./chunk-P6DICGAV.cjs');
|
|
4
|
+
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var reactDom = require('react-dom');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useVuerAuth } from './chunk-3IVDCAFM.mjs';
|
|
2
1
|
import { signInHandler } from './chunk-XGM57WPN.mjs';
|
|
3
2
|
import { signOutHandler } from './chunk-CGODCUQ5.mjs';
|
|
3
|
+
import { useVuerAuth } from './chunk-3IVDCAFM.mjs';
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
var useVuerMethod = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
1
|
import { CursorContext } from './chunk-3FR3WKI4.mjs';
|
|
2
|
+
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
3
3
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkG4FJGNY5_cjs = require('./chunk-G4FJGNY5.cjs');
|
|
4
3
|
var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
|
|
4
|
+
var chunkG4FJGNY5_cjs = require('./chunk-G4FJGNY5.cjs');
|
|
5
5
|
var reactSlot = require('@radix-ui/react-slot');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSyncScroll, useScrollSlave, useSyncDrag } from './chunk-SAGQV2YZ.mjs';
|
|
2
1
|
import { cn } from './chunk-HMN4IKTG.mjs';
|
|
2
|
+
import { useSyncScroll, useScrollSlave, useSyncDrag } from './chunk-SAGQV2YZ.mjs';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkZULCZ5L6_cjs = require('./chunk-ZULCZ5L6.cjs');
|
|
4
3
|
var chunkWTYBTOLO_cjs = require('./chunk-WTYBTOLO.cjs');
|
|
4
|
+
var chunkZULCZ5L6_cjs = require('./chunk-ZULCZ5L6.cjs');
|
|
5
5
|
var chunkSVWS4AL6_cjs = require('./chunk-SVWS4AL6.cjs');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunk4B44SRRP_cjs = require('./chunk-4B44SRRP.cjs');
|
|
4
3
|
var chunkPB4UO2NR_cjs = require('./chunk-PB4UO2NR.cjs');
|
|
5
4
|
var chunk4CPB3XHE_cjs = require('./chunk-4CPB3XHE.cjs');
|
|
5
|
+
var chunk4B44SRRP_cjs = require('./chunk-4B44SRRP.cjs');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
|
|
8
8
|
var useVuerMethod = () => {
|