@skf-design-system/ui-components 1.0.0-alpha.32 → 1.0.0-alpha.33
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/components/accordion/accordion.component.js +3 -4
- package/dist/components/accordion/accordion.js +0 -2
- package/dist/components/alert/alert.component.js +0 -1
- package/dist/components/button/button.component.js +0 -2
- package/dist/components/checkbox/checkbox.component.js +0 -1
- package/dist/components/collapse/collapse.component.js +0 -1
- package/dist/components/dialog/dialog.component.js +0 -3
- package/dist/components/input/input.component.js +0 -1
- package/dist/components/link/link.component.js +6 -7
- package/dist/components/radio/radio.component.js +0 -1
- package/dist/components/select/select.component.js +0 -1
- package/dist/components/select-option/select-option.component.js +0 -1
- package/dist/components/stepper-item/stepper-item.component.js +5 -6
- package/dist/components/tab-group/tab-group.component.js +5 -6
- package/dist/components/tag/tag.component.js +0 -1
- package/dist/components/textarea/textarea.component.js +0 -1
- package/dist/internal/components/hint/hint.component.js +0 -1
- package/dist/internal/controllers/popover.controller.js +2 -3
- package/package.json +2 -2
@@ -1,13 +1,12 @@
|
|
1
|
-
import "../collapse/collapse.js";
|
2
1
|
import { SkfElement as h } from "../../internal/components/skf-element.js";
|
3
2
|
import m from "../../styles/component.styles.js";
|
4
3
|
import { html as f } from "lit";
|
5
4
|
import { property as a, queryAssignedNodes as d } from "lit/decorators.js";
|
6
5
|
import { classMap as c } from "lit/directives/class-map.js";
|
7
6
|
import { styles as g } from "./accordion.styles.js";
|
8
|
-
var y = Object.defineProperty, s = (
|
9
|
-
for (var r = void 0, l =
|
10
|
-
(
|
7
|
+
var y = Object.defineProperty, s = (u, t, i, o) => {
|
8
|
+
for (var r = void 0, l = u.length - 1, p; l >= 0; l--)
|
9
|
+
(p = u[l]) && (r = p(t, i, r) || r);
|
11
10
|
return r && y(t, i, r), r;
|
12
11
|
};
|
13
12
|
const n = class n extends h {
|
@@ -3,9 +3,6 @@ var _ = (t) => {
|
|
3
3
|
};
|
4
4
|
var w = (t, e, o) => e.has(t) || _("Cannot " + o);
|
5
5
|
var f = (t, e, o) => (w(t, e, "read from private field"), o ? o.call(t) : e.get(t)), g = (t, e, o) => e.has(t) ? _("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), h = (t, e, o, a) => (w(t, e, "write to private field"), a ? a.call(t, o) : e.set(t, o), o);
|
6
|
-
import "../button/button.js";
|
7
|
-
import "../heading/heading.js";
|
8
|
-
import "../icon/icon.js";
|
9
6
|
import { SkfElement as v } from "../../internal/components/skf-element.js";
|
10
7
|
import { watch as C } from "../../internal/helpers/watch.js";
|
11
8
|
import B from "../../styles/component.styles.js";
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import "
|
2
|
-
import y from "./link.styles.js";
|
1
|
+
import m from "./link.styles.js";
|
3
2
|
import { SkfElement as d } from "../../internal/components/skf-element.js";
|
4
3
|
import u from "../../styles/component.styles.js";
|
5
4
|
import "lit";
|
6
5
|
import { property as r } from "lit/decorators.js";
|
7
6
|
import { classMap as k } from "lit/directives/class-map.js";
|
8
7
|
import { ifDefined as c } from "lit/directives/if-defined.js";
|
9
|
-
import { html as f, literal as
|
8
|
+
import { html as f, literal as y } from "lit/static-html.js";
|
10
9
|
var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, o = (h, t, i, l) => {
|
11
10
|
for (var n = l > 1 ? void 0 : l ? g(t, i) : t, p = h.length - 1, a; p >= 0; p--)
|
12
11
|
(a = h[p]) && (n = (l ? a(t, i, n) : a(n)) || n);
|
@@ -52,7 +51,7 @@ const e = (s = class extends d {
|
|
52
51
|
`;
|
53
52
|
}
|
54
53
|
render() {
|
55
|
-
const t = this.as === "a", i = t ?
|
54
|
+
const t = this.as === "a", i = t ? y`a` : y`button`;
|
56
55
|
return f`
|
57
56
|
<${i}
|
58
57
|
?disabled=${c(t ? void 0 : this.disabled)}
|
@@ -76,7 +75,7 @@ const e = (s = class extends d {
|
|
76
75
|
</${i}>
|
77
76
|
`;
|
78
77
|
}
|
79
|
-
}, s.styles = [u,
|
78
|
+
}, s.styles = [u, m], s.classMap = {}, s);
|
80
79
|
o([
|
81
80
|
r({ type: String, reflect: !0 })
|
82
81
|
], e.prototype, "as", 2);
|
@@ -116,7 +115,7 @@ o([
|
|
116
115
|
o([
|
117
116
|
r({ attribute: !1 })
|
118
117
|
], e.prototype, "onClick", 1);
|
119
|
-
let
|
118
|
+
let D = e;
|
120
119
|
export {
|
121
|
-
|
120
|
+
D as SkfLink
|
122
121
|
};
|
@@ -12,7 +12,6 @@ import { property as o, state as h, query as p } from "lit/decorators.js";
|
|
12
12
|
import { classMap as E } from "lit/directives/class-map.js";
|
13
13
|
import { ifDefined as m } from "lit/directives/if-defined.js";
|
14
14
|
import "../../internal/components/hint/hint.js";
|
15
|
-
import "../tag/tag.js";
|
16
15
|
import { GlobalClickController as k, KeyboardNavigationController as L, DeveloperFeedbackController as A } from "./select.controllers.js";
|
17
16
|
import { styles as P } from "./select.styles.js";
|
18
17
|
var T = Object.defineProperty, D = Object.getOwnPropertyDescriptor, s = (u, t, e, l) => {
|
@@ -3,7 +3,6 @@ import f from "../../styles/component.styles.js";
|
|
3
3
|
import { LitElement as m, html as h } from "lit";
|
4
4
|
import { property as n, queryAssignedNodes as _ } from "lit/decorators.js";
|
5
5
|
import { ifDefined as p } from "lit/directives/if-defined.js";
|
6
|
-
import "../icon/icon.js";
|
7
6
|
import { styles as y } from "./select-option.styles.js";
|
8
7
|
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, o = (d, t, s, i) => {
|
9
8
|
for (var r = i > 1 ? void 0 : i ? b(t, s) : t, a = d.length - 1, c; a >= 0; a--)
|
@@ -2,8 +2,7 @@ var v = (e) => {
|
|
2
2
|
throw TypeError(e);
|
3
3
|
};
|
4
4
|
var u = (e, i, t) => i.has(e) || v("Cannot " + t);
|
5
|
-
var
|
6
|
-
import "../icon/icon.js";
|
5
|
+
var m = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (u(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
|
7
6
|
import { SkfElement as b } from "../../internal/components/skf-element.js";
|
8
7
|
import { watch as g } from "../../internal/helpers/watch.js";
|
9
8
|
import C from "../../styles/component.styles.js";
|
@@ -14,8 +13,8 @@ import { ifDefined as x } from "lit/directives/if-defined.js";
|
|
14
13
|
import { literal as w, unsafeStatic as U, html as S } from "lit/static-html.js";
|
15
14
|
import { styles as I } from "./stepper-item.styles.js";
|
16
15
|
var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = (e, i, t, s) => {
|
17
|
-
for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1,
|
18
|
-
(
|
16
|
+
for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1, d; h >= 0; h--)
|
17
|
+
(d = e[h]) && (p = (s ? d(i, t, p) : d(p)) || p);
|
19
18
|
return s && p && O(i, t, p), p;
|
20
19
|
}, o, n;
|
21
20
|
const f = class f extends b {
|
@@ -44,7 +43,7 @@ const f = class f extends b {
|
|
44
43
|
this._setInternalState = "activeCompleted";
|
45
44
|
return;
|
46
45
|
}
|
47
|
-
if (
|
46
|
+
if (m(this, o)) {
|
48
47
|
r(this, o, !1);
|
49
48
|
return;
|
50
49
|
}
|
@@ -55,7 +54,7 @@ const f = class f extends b {
|
|
55
54
|
this.emit("skf-stepper-item-select", {
|
56
55
|
detail: {
|
57
56
|
item: this,
|
58
|
-
triggerActiveIndexUpdate:
|
57
|
+
triggerActiveIndexUpdate: m(this, n)
|
59
58
|
}
|
60
59
|
}), r(this, n, !1);
|
61
60
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import "
|
2
|
-
import { SkfElement as c } from "../../internal/components/skf-element.js";
|
1
|
+
import { SkfElement as p } from "../../internal/components/skf-element.js";
|
3
2
|
import b from "../../styles/component.styles.js";
|
4
3
|
import { html as f } from "lit";
|
5
|
-
import { property as o, queryAssignedElements as
|
4
|
+
import { property as o, queryAssignedElements as c } from "lit/decorators.js";
|
6
5
|
import { classMap as u } from "lit/directives/class-map.js";
|
7
6
|
import { styles as y } from "./tab-group.styles.js";
|
8
7
|
var g = Object.defineProperty, i = (h, t, s, r) => {
|
@@ -10,7 +9,7 @@ var g = Object.defineProperty, i = (h, t, s, r) => {
|
|
10
9
|
(d = h[n]) && (e = d(t, s, e) || e);
|
11
10
|
return e && g(t, s, e), e;
|
12
11
|
};
|
13
|
-
const l = class l extends
|
12
|
+
const l = class l extends p {
|
14
13
|
constructor() {
|
15
14
|
super(...arguments), this.defaultSelected = 0, this.noBorder = !1, this.noPadding = !1, this.stretch = !1, this.variant = "expanded", this._handleKeyDown = (t) => {
|
16
15
|
if (["ArrowLeft", "ArrowRight"].includes(t.key)) {
|
@@ -88,10 +87,10 @@ i([
|
|
88
87
|
o({ reflect: !0 })
|
89
88
|
], a.prototype, "variant");
|
90
89
|
i([
|
91
|
-
|
90
|
+
c({ slot: "tabs" })
|
92
91
|
], a.prototype, "tabs");
|
93
92
|
i([
|
94
|
-
|
93
|
+
c()
|
95
94
|
], a.prototype, "panels");
|
96
95
|
export {
|
97
96
|
a as SkfTabGroup
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import "../../components/select/select.component.js";
|
2
1
|
import { autoUpdate as n } from "@floating-ui/dom";
|
3
|
-
class
|
2
|
+
class c {
|
4
3
|
constructor(t, o = !0) {
|
5
4
|
this.active = !1, this.autoStart = !0, this.host = t, t.addController(this), this.autoStart = o;
|
6
5
|
}
|
@@ -40,5 +39,5 @@ class p {
|
|
40
39
|
}
|
41
40
|
}
|
42
41
|
export {
|
43
|
-
|
42
|
+
c as PopoverController
|
44
43
|
};
|
package/package.json
CHANGED
@@ -31,10 +31,10 @@
|
|
31
31
|
"type": "git",
|
32
32
|
"url": "git+https://github.com/SKF-Internal/ui-components.git"
|
33
33
|
},
|
34
|
-
"sideEffects":
|
34
|
+
"sideEffects": false,
|
35
35
|
"type": "module",
|
36
36
|
"types": "./dist/index.d.ts",
|
37
|
-
"version": "1.0.0-alpha.
|
37
|
+
"version": "1.0.0-alpha.33",
|
38
38
|
"dependencies": {
|
39
39
|
"@floating-ui/dom": "^1.6.12"
|
40
40
|
},
|