@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/dist/custom-elements.json +1 -1
- package/dist/web-types.json +1 -1
- package/dist/zn.d.ts +4 -2
- package/dist/zn.min.js +150 -150
- package/package.json +1 -1
- package/src/components/collapsible/collapsible.scss +4 -0
- package/src/components/menu/menu.scss +2 -2
- package/src/components/navbar/navbar.scss +1 -1
- package/src/internal/zinc-element.ts +6 -1
package/package.json
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
:host([variant="shell"]) {
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
gap: var(--zn-spacing-
|
|
26
|
-
padding: var(--zn-spacing-
|
|
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;
|
|
@@ -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
|
-
|
|
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)
|