@viasat/beam-web-components 2.14.0 → 2.15.0
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/BadgeDot/BadgeDot.d.ts +3 -3
- package/Box/Box.d.ts +1 -2
- package/Box/Box.js +0 -3
- package/Divider/Divider.d.ts +2 -2
- package/SegmentedControl/SegmentedControl.d.ts +2 -1
- package/SegmentedControl/SegmentedControl.js +1 -1
- package/Text/Text.d.ts +0 -1
- package/Tooltip/Tooltip.d.ts +0 -2
- package/custom-elements.json +1687 -1691
- package/local/Box/Box.js +5 -8
- package/local/SegmentedControl/SegmentedControl.js +11 -11
- package/package.json +6 -6
- package/vscode.html-custom-data.json +319 -319
package/local/Box/Box.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as l, a as c, x as p } from "../chunks/lit-element.CJtt9wj5.js";
|
|
2
2
|
import { n as e, c as h } from "../chunks/register-custom-element.vod7zfGv.js";
|
|
3
3
|
import { c as v, k as g, g as x } from "../chunks/classNames.C6fNrXWF.js";
|
|
4
4
|
import { g as w } from "../chunks/globals.Bz4SVF2g.js";
|
|
@@ -8,11 +8,8 @@ var y = Object.defineProperty, f = Object.getOwnPropertyDescriptor, o = (t, d, a
|
|
|
8
8
|
(n = t[i]) && (b = (m ? n(d, a, b) : n(b)) || b);
|
|
9
9
|
return m && b && y(d, a, b), b;
|
|
10
10
|
};
|
|
11
|
-
const { baseClassNamePrefix:
|
|
12
|
-
let r = class extends
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments), this.backgroundColor = "transparent";
|
|
15
|
-
}
|
|
11
|
+
const { baseClassNamePrefix: S, classModifierPrefix: s } = x("box");
|
|
12
|
+
let r = class extends c {
|
|
16
13
|
render() {
|
|
17
14
|
const t = {
|
|
18
15
|
px: this.px,
|
|
@@ -31,7 +28,7 @@ let r = class extends l {
|
|
|
31
28
|
p: this.p,
|
|
32
29
|
gap: this.gap
|
|
33
30
|
}, d = v(
|
|
34
|
-
|
|
31
|
+
S,
|
|
35
32
|
this.backgroundColor && `${s}surface-${this.backgroundColor}`,
|
|
36
33
|
this.borderColor && `${s}border-${this.borderColor}`,
|
|
37
34
|
this.borderWidth && `${s}border-width-${this.borderWidth}`,
|
|
@@ -44,7 +41,7 @@ let r = class extends l {
|
|
|
44
41
|
</div>`;
|
|
45
42
|
}
|
|
46
43
|
};
|
|
47
|
-
r.styles =
|
|
44
|
+
r.styles = l([u, w]);
|
|
48
45
|
o([
|
|
49
46
|
e({ type: String })
|
|
50
47
|
], r.prototype, "backgroundColor", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { e as S } from "../chunks/provide.i2FlUkOu.js";
|
|
2
2
|
import { r as x, a as b, x as w } from "../chunks/lit-element.CJtt9wj5.js";
|
|
3
|
-
import { n as
|
|
3
|
+
import { n as m, c as E } from "../chunks/register-custom-element.vod7zfGv.js";
|
|
4
4
|
import { r as z } from "../chunks/state.CqiuSzAl.js";
|
|
5
5
|
import { g as B } from "../chunks/classNames.C6fNrXWF.js";
|
|
6
6
|
import "../chunks/constants.jOWREYQE.js";
|
|
@@ -15,11 +15,11 @@ var V = Object.defineProperty, A = Object.getOwnPropertyDescriptor, C = (e) => {
|
|
|
15
15
|
for (var n = h > 1 ? void 0 : h ? A(t, i) : t, p = e.length - 1, f; p >= 0; p--)
|
|
16
16
|
(f = e[p]) && (n = (h ? f(t, i, n) : f(n)) || n);
|
|
17
17
|
return h && n && V(t, i, n), n;
|
|
18
|
-
}, _ = (e, t, i) => t.has(e) || C("Cannot " + i),
|
|
18
|
+
}, _ = (e, t, i) => t.has(e) || C("Cannot " + i), c = (e, t, i) => (_(e, t, "read from private field"), t.get(e)), g = (e, t, i) => t.has(e) ? C("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), o = (e, t, i) => (_(e, t, "access private method"), i), l, s, y, u, v, d;
|
|
19
19
|
const { baseClassNamePrefix: M } = B("segmented-control");
|
|
20
20
|
let r = class extends b {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(), g(this, s), g(this, l, /* @__PURE__ */ new Set()), this.segmentedControlContext = {
|
|
22
|
+
super(), g(this, s), this.size = "md", g(this, l, /* @__PURE__ */ new Set()), this.segmentedControlContext = {
|
|
23
23
|
disabled: void 0,
|
|
24
24
|
size: void 0,
|
|
25
25
|
selectedValue: void 0,
|
|
@@ -27,7 +27,7 @@ let r = class extends b {
|
|
|
27
27
|
fluid: void 0,
|
|
28
28
|
register: (e) => o(this, s, u).call(this, e),
|
|
29
29
|
unregister: (e) => o(this, s, v).call(this, e),
|
|
30
|
-
registeredItems: Array.from(
|
|
30
|
+
registeredItems: Array.from(c(this, l))
|
|
31
31
|
}, this.addEventListener("bm-selected", o(this, s, y));
|
|
32
32
|
}
|
|
33
33
|
firstUpdated() {
|
|
@@ -60,10 +60,10 @@ y = function(e) {
|
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
62
|
u = function(e) {
|
|
63
|
-
|
|
63
|
+
c(this, l).add(e), o(this, s, d).call(this);
|
|
64
64
|
};
|
|
65
65
|
v = function(e) {
|
|
66
|
-
|
|
66
|
+
c(this, l).delete(e), o(this, s, d).call(this);
|
|
67
67
|
};
|
|
68
68
|
d = function() {
|
|
69
69
|
var e;
|
|
@@ -75,21 +75,21 @@ d = function() {
|
|
|
75
75
|
fluid: this.fluid || !1,
|
|
76
76
|
register: (t) => o(this, s, u).call(this, t),
|
|
77
77
|
unregister: (t) => o(this, s, v).call(this, t),
|
|
78
|
-
registeredItems: Array.from(
|
|
78
|
+
registeredItems: Array.from(c(this, l))
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
r.styles = x(I);
|
|
82
82
|
a([
|
|
83
|
-
|
|
83
|
+
m({ type: Boolean })
|
|
84
84
|
], r.prototype, "disabled", 2);
|
|
85
85
|
a([
|
|
86
|
-
|
|
86
|
+
m({ type: String })
|
|
87
87
|
], r.prototype, "size", 2);
|
|
88
88
|
a([
|
|
89
|
-
|
|
89
|
+
m({ type: String })
|
|
90
90
|
], r.prototype, "initialSelection", 2);
|
|
91
91
|
a([
|
|
92
|
-
|
|
92
|
+
m({ type: Boolean })
|
|
93
93
|
], r.prototype, "fluid", 2);
|
|
94
94
|
a([
|
|
95
95
|
S({ context: O }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viasat/beam-web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Framework-agnostic web components for the Beam Design System built with Lit, compatible with Angular, Vue, Svelte, and vanilla JavaScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Viasat",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@viasat/beam-fonts": "2.
|
|
68
|
-
"@viasat/beam-shared": "2.
|
|
69
|
-
"@viasat/beam-styles": "2.
|
|
70
|
-
"@viasat/beam-tokens": "2.
|
|
71
|
-
"@viasat/beam-icons": "2.
|
|
67
|
+
"@viasat/beam-fonts": "2.15.0",
|
|
68
|
+
"@viasat/beam-shared": "2.15.0",
|
|
69
|
+
"@viasat/beam-styles": "2.15.0",
|
|
70
|
+
"@viasat/beam-tokens": "2.15.0",
|
|
71
|
+
"@viasat/beam-icons": "2.15.0",
|
|
72
72
|
"clsx": "^1.2.1",
|
|
73
73
|
"lit": "^3.1.0",
|
|
74
74
|
"@lit/context": "^1.1.1",
|