@kubex/zinc 1.1.0 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
5
5
  "keywords": [
6
6
  "web components",
@@ -8,6 +8,10 @@
8
8
  transform: rotate(180deg);
9
9
  }
10
10
 
11
+ :host-context(.app-navigation) .header {
12
+ padding: var(--zn-base-px);
13
+ }
14
+
11
15
  .header {
12
16
  display: flex;
13
17
  flex-direction: row;
@@ -22,8 +22,8 @@
22
22
  :host([variant="shell"]) {
23
23
  display: flex;
24
24
  flex-direction: column;
25
- gap: var(--zn-spacing-x-small);
26
- padding: var(--zn-spacing-x-small);
25
+ gap: var(--zn-spacing-2x-small);
26
+ padding: var(--zn-spacing-2x-small);
27
27
  border: 1px solid rgb(var(--zn-border-color));
28
28
  border-radius: var(--zn-border-radius);
29
29
  min-width: 245px;
@@ -249,7 +249,7 @@ ul.navbar.navbar--stacked.navbar--icon-bar {
249
249
 
250
250
  :host([icon-only]:not([stacked]):not([icon-bar])) {
251
251
  ul.navbar {
252
- height: 32px;
252
+ height: 36px;
253
253
  }
254
254
  }
255
255
 
@@ -10,8 +10,13 @@ import type {
10
10
  ValidEventTypeMap,
11
11
  ZincEventInit
12
12
  } from "./event";
13
+ import type {SignalWatcherApi} from "@lit-labs/signals";
13
14
 
14
- export default class ZincElement extends SignalWatcher(LitElement) {
15
+ type Constructor<T = NonNullable<unknown>> = new (...args: any[]) => T;
16
+
17
+ const ZincElementBase: typeof LitElement & Constructor<SignalWatcherApi> = SignalWatcher(LitElement);
18
+
19
+ export default class ZincElement extends ZincElementBase {
15
20
  @property() dir: string; // LTR or RTL direction
16
21
  @property() lang: string; // Language
17
22
  @property({reflect: true}) t: string; // Theme (light or dark)