@loykin/side-panel 0.0.1-dev.0 → 0.0.1-dev.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.
Files changed (2) hide show
  1. package/dist/styles.css +16 -13
  2. package/package.json +1 -1
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: --bk-*
5
+ * - CSS custom properties: --basekit-*
6
6
  * - Semantic class names: .sp-*
7
7
  */
8
8
 
9
9
  :root {
10
- --bk-background: oklch(1 0 0);
11
- --bk-card: oklch(1 0 0);
12
- --bk-border: oklch(0.922 0 0);
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
- --bk-background: oklch(0.145 0 0);
17
- --bk-card: oklch(0.205 0 0);
18
- --bk-border: oklch(1 0 0 / 10%);
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(--bk-card);
32
+ background: var(--basekit-card);
30
33
  }
31
34
 
32
- .sp-panel[data-side="right"] { border-left: 1px solid var(--bk-border); }
33
- .sp-panel[data-side="left"] { border-right: 1px solid var(--bk-border); }
34
- .sp-panel[data-side="top"] { border-bottom: 1px solid var(--bk-border); }
35
- .sp-panel[data-side="bottom"] { border-top: 1px solid var(--bk-border); }
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(--bk-background);
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.0",
3
+ "version": "0.0.1-dev.1",
4
4
  "description": "Non-blocking resizable side panel with Zustand state management.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",