@loykin/side-panel 0.0.1-dev.0 → 0.0.1-dev.2
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/styles.css +16 -13
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -2,40 +2,43 @@
|
|
|
2
2
|
* @loykin/side-panel
|
|
3
3
|
*
|
|
4
4
|
* Plain CSS, no Tailwind dependency. Consumers can override with:
|
|
5
|
-
* - CSS custom properties: --
|
|
5
|
+
* - CSS custom properties: --basekit-*
|
|
6
6
|
* - Semantic class names: .sp-*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
:root {
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
10
|
+
--basekit-background: var(--background, oklch(1 0 0));
|
|
11
|
+
--basekit-card: var(--card, oklch(1 0 0));
|
|
12
|
+
--basekit-border: var(--border, oklch(0.922 0 0));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.dark {
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
16
|
+
--basekit-background: var(--background, oklch(0.145 0 0));
|
|
17
|
+
--basekit-card: var(--card, oklch(0.205 0 0));
|
|
18
|
+
--basekit-border: var(--border, oklch(1 0 0 / 10%));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.sp-root {
|
|
22
22
|
position: relative;
|
|
23
23
|
overflow: hidden;
|
|
24
|
+
flex: 1;
|
|
25
|
+
min-height: 0;
|
|
26
|
+
min-width: 0;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
.sp-panel {
|
|
27
30
|
z-index: 50;
|
|
28
31
|
overflow: hidden;
|
|
29
|
-
background: var(--
|
|
32
|
+
background: var(--basekit-card);
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
.sp-panel[data-side="right"] { border-left: 1px solid var(--
|
|
33
|
-
.sp-panel[data-side="left"] { border-right: 1px solid var(--
|
|
34
|
-
.sp-panel[data-side="top"] { border-bottom: 1px solid var(--
|
|
35
|
-
.sp-panel[data-side="bottom"] { border-top: 1px solid var(--
|
|
35
|
+
.sp-panel[data-side="right"] { border-left: 1px solid var(--basekit-border); }
|
|
36
|
+
.sp-panel[data-side="left"] { border-right: 1px solid var(--basekit-border); }
|
|
37
|
+
.sp-panel[data-side="top"] { border-bottom: 1px solid var(--basekit-border); }
|
|
38
|
+
.sp-panel[data-side="bottom"] { border-top: 1px solid var(--basekit-border); }
|
|
36
39
|
|
|
37
40
|
.sp-panel-content {
|
|
38
41
|
height: 100%;
|
|
39
42
|
overflow: auto;
|
|
40
|
-
background: var(--
|
|
43
|
+
background: var(--basekit-background);
|
|
41
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loykin/side-panel",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.2",
|
|
4
4
|
"description": "Non-blocking resizable side panel with Zustand state management.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"url": "https://github.com/loykin/basekit.git",
|
|
54
54
|
"directory": "packages/side-panel"
|
|
55
55
|
},
|
|
56
|
-
"homepage": "https://loykin.github.io/basekit/
|
|
56
|
+
"homepage": "https://loykin.github.io/basekit/",
|
|
57
57
|
"bugs": {
|
|
58
58
|
"url": "https://github.com/loykin/basekit/issues"
|
|
59
59
|
},
|