@sewadah/selaras 0.4.0 → 0.5.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/dist/module.json
CHANGED
|
@@ -12,8 +12,9 @@ const isMobile = computed(() => dashboard?.isMobile.value ?? false);
|
|
|
12
12
|
const theme = useComponentTheme("dashboardResizeHandle", dashboardResizeHandleTheme);
|
|
13
13
|
const ui = computed(() => theme.value());
|
|
14
14
|
const rootUi = computed(() => resolveSlot(ui.value.root, props.ui?.root));
|
|
15
|
+
const lineUi = computed(() => resolveSlot(ui.value.line, props.ui?.line));
|
|
15
16
|
</script>
|
|
16
17
|
|
|
17
18
|
<template>
|
|
18
|
-
<SplitterResizeHandle v-if="!isMobile" direction="horizontal" :ui="{ root: rootUi, line:
|
|
19
|
+
<SplitterResizeHandle v-if="!isMobile" direction="horizontal" :ui="{ root: rootUi, line: lineUi }" />
|
|
19
20
|
</template>
|
|
@@ -2,25 +2,31 @@ export declare const dashboardResizeHandleTheme: import("tailwind-variants").TVR
|
|
|
2
2
|
[key: string]: {
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
root?: import("tailwind-variants").ClassValue;
|
|
5
|
+
line?: import("tailwind-variants").ClassValue;
|
|
5
6
|
};
|
|
6
7
|
};
|
|
7
8
|
} | {
|
|
8
9
|
[x: string]: {
|
|
9
10
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
10
11
|
root?: import("tailwind-variants").ClassValue;
|
|
12
|
+
line?: import("tailwind-variants").ClassValue;
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
15
|
} | {}, {
|
|
14
16
|
root: string;
|
|
17
|
+
line: string;
|
|
15
18
|
}, undefined, {
|
|
16
19
|
[key: string]: {
|
|
17
20
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
18
21
|
root?: import("tailwind-variants").ClassValue;
|
|
22
|
+
line?: import("tailwind-variants").ClassValue;
|
|
19
23
|
};
|
|
20
24
|
};
|
|
21
25
|
} | {}, {
|
|
22
26
|
root: string;
|
|
27
|
+
line: string;
|
|
23
28
|
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
24
29
|
root: string;
|
|
30
|
+
line: string;
|
|
25
31
|
}>>;
|
|
26
32
|
export type DashboardResizeHandleThemeSlots = keyof (typeof dashboardResizeHandleTheme)['slots'];
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const dashboardResizeHandleTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// --selaras-resolved-surface-elevated (a step apart from DashboardPanel's own plain
|
|
9
|
-
// --selaras-resolved-surface-default), that "invisible" padding stops being invisible: it reads
|
|
10
|
-
// as a sliver of the wrong background bleeding through right at the
|
|
11
|
-
// sidebar's own edge. A background split exactly down the middle -
|
|
12
|
-
// matching each side's real background - makes the hit area blend
|
|
13
|
-
// into whichever panel it happens to be sitting over instead of
|
|
14
|
-
// showing through as its own separate strip.
|
|
15
|
-
root: "bg-[linear-gradient(to_right,var(--selaras-resolved-surface-elevated)_50%,var(--selaras-resolved-surface-default)_50%)]"
|
|
4
|
+
// Overlap the panel boundary without consuming layout space or painting
|
|
5
|
+
// either surface. Both panels keep their own backgrounds beneath the target.
|
|
6
|
+
root: "z-10 -mx-1 w-2 bg-transparent",
|
|
7
|
+
line: "rtl:translate-x-1/2 group-focus-visible:bg-[var(--_selaras-color-indicator)]"
|
|
16
8
|
}
|
|
17
9
|
});
|
package/package.json
CHANGED