@viasat/beam-web-components 2.49.1 → 2.51.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.
Files changed (117) hide show
  1. package/Accordion/Accordion.js +3 -3
  2. package/Accordion/AccordionGroup.js +3 -3
  3. package/Accordion/index.js +1 -1
  4. package/Alert/Alert.js +5 -5
  5. package/Avatar/Avatar.js +2 -2
  6. package/Avatar/AvatarGroup.js +2 -2
  7. package/Avatar/index.js +1 -1
  8. package/Badge/Badge.js +2 -2
  9. package/BadgeDot/BadgeDot.js +2 -2
  10. package/Box/Box.js +2 -2
  11. package/Breadcrumbs/Breadcrumbs.js +3 -3
  12. package/Breadcrumbs/BreadcrumbsItem.js +3 -3
  13. package/Breadcrumbs/index.js +1 -1
  14. package/Button/Button.js +2 -2
  15. package/CloseButton/CloseButton.js +2 -2
  16. package/Divider/Divider.js +2 -2
  17. package/EmptyState/EmptyState.js +2 -2
  18. package/HelperText/HelperText.js +3 -3
  19. package/HelperText/index.js +1 -1
  20. package/Icon/Icon.js +2 -2
  21. package/InputChoiceGroup/InputChoiceGroup.js +2 -2
  22. package/Label/Label.js +2 -2
  23. package/Link/Link.js +2 -2
  24. package/List/List.js +2 -2
  25. package/List/ListItem.js +2 -2
  26. package/ProgressBar/ProgressBar.js +2 -2
  27. package/SegmentedControl/SegmentedControl.js +2 -2
  28. package/SegmentedControl/SegmentedControlItem.js +10 -10
  29. package/SegmentedControl/SegmentedControlList.js +2 -2
  30. package/SegmentedControl/SegmentedControlPanel.js +2 -2
  31. package/Spinner/Spinner.js +2 -2
  32. package/Text/Text.js +2 -2
  33. package/TextField/TextField.js +6 -6
  34. package/Tooltip/Tooltip.js +9 -9
  35. package/chunks/{Accordion.BF2pHMSP.js → Accordion.fbo-T2zU.js} +4 -4
  36. package/chunks/{Avatar.kVWwOxWe.js → Avatar.DkegKDfD.js} +2 -2
  37. package/chunks/{BreadcrumbsItem.BoIbfnh6.js → BreadcrumbsItem.xWwSJgcO.js} +2 -2
  38. package/chunks/{HelperText.3YJvB8x0.js → HelperText.Cc_6DlKP.js} +5 -5
  39. package/chunks/classNames.m6VYRyOu.js +18 -0
  40. package/chunks/{classNames.BQclmCHG.js → register-custom-element.D_kw6JXe.js} +34 -29
  41. package/custom-elements.json +3446 -3446
  42. package/local/Accordion/Accordion.js +4 -4
  43. package/local/Accordion/AccordionGroup.js +4 -4
  44. package/local/Accordion/index.js +1 -1
  45. package/local/Alert/Alert.js +11 -11
  46. package/local/Avatar/Avatar.js +3 -3
  47. package/local/Avatar/AvatarGroup.js +3 -3
  48. package/local/Avatar/index.js +1 -1
  49. package/local/Badge/Badge.js +2 -2
  50. package/local/BadgeDot/BadgeDot.js +2 -2
  51. package/local/Box/Box.js +2 -2
  52. package/local/Breadcrumbs/Breadcrumbs.js +3 -3
  53. package/local/Breadcrumbs/BreadcrumbsItem.js +3 -3
  54. package/local/Breadcrumbs/index.js +1 -1
  55. package/local/Button/Button.js +3 -3
  56. package/local/CloseButton/CloseButton.js +2 -2
  57. package/local/Divider/Divider.js +7 -7
  58. package/local/EmptyState/EmptyState.js +2 -2
  59. package/local/HelperText/HelperText.js +3 -3
  60. package/local/HelperText/index.js +1 -1
  61. package/local/Icon/Icon.js +2 -2
  62. package/local/InputChoiceGroup/InputChoiceGroup.js +3 -3
  63. package/local/Label/Label.js +2 -2
  64. package/local/Link/Link.js +2 -2
  65. package/local/List/List.js +3 -3
  66. package/local/List/ListItem.js +3 -3
  67. package/local/ProgressBar/ProgressBar.js +2 -2
  68. package/local/SegmentedControl/SegmentedControl.js +3 -3
  69. package/local/SegmentedControl/SegmentedControlItem.js +7 -7
  70. package/local/SegmentedControl/SegmentedControlList.js +2 -2
  71. package/local/SegmentedControl/SegmentedControlPanel.js +2 -2
  72. package/local/Spinner/Spinner.js +2 -2
  73. package/local/Text/Text.js +2 -2
  74. package/local/TextField/TextField.js +7 -7
  75. package/local/Tooltip/Tooltip.js +8 -8
  76. package/local/chunks/{Accordion.DM6Nkgnh.js → Accordion.QupR4x7N.js} +9 -9
  77. package/local/chunks/{Avatar.BT61pkbV.js → Avatar.D0_A6fGG.js} +2 -2
  78. package/local/chunks/{BreadcrumbsItem.CsPbcOZ5.js → BreadcrumbsItem.Ds7TtgQn.js} +2 -2
  79. package/local/chunks/classNames.Ciobzb4w.js +30 -0
  80. package/local/chunks/{index.CUGawMXL.js → index.BoeGm2HZ.js} +8 -8
  81. package/local/chunks/register-custom-element.AOEv8hcs.js +133 -0
  82. package/local/chunks/{state.CqiuSzAl.js → state.Dr3yBpId.js} +1 -1
  83. package/local/wip/Checkbox/Checkbox.js +2 -2
  84. package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +1 -1
  85. package/local/wip/FileUpload/FileUpload.Button.js +2 -2
  86. package/local/wip/FileUpload/FileUpload.Dropzone.js +3 -3
  87. package/local/wip/FileUpload/FileUpload.List.Item.js +3 -3
  88. package/local/wip/FileUpload/FileUpload.List.js +2 -2
  89. package/local/wip/FileUpload/FileUpload.js +8 -8
  90. package/local/wip/Form/Form.decorator.js +3 -3
  91. package/local/wip/Form/Form.js +122 -110
  92. package/local/wip/NativeSelect/NativeSelect.js +10 -10
  93. package/local/wip/RadioButton/RadioButton.js +2 -2
  94. package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +1 -1
  95. package/local/wip/Switch/Switch.js +2 -2
  96. package/local/wip/Switch/SwitchGroup/SwitchGroup.js +1 -1
  97. package/local/wip/TextArea/TextArea.js +8 -8
  98. package/package.json +6 -6
  99. package/vscode.html-custom-data.json +221 -221
  100. package/wip/Checkbox/Checkbox.js +2 -2
  101. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +1 -1
  102. package/wip/FileUpload/FileUpload.Button.js +2 -2
  103. package/wip/FileUpload/FileUpload.Dropzone.js +2 -2
  104. package/wip/FileUpload/FileUpload.List.Item.js +3 -3
  105. package/wip/FileUpload/FileUpload.List.js +2 -2
  106. package/wip/FileUpload/FileUpload.js +12 -12
  107. package/wip/Form/Form.decorator.js +1 -1
  108. package/wip/Form/Form.js +124 -112
  109. package/wip/NativeSelect/NativeSelect.js +9 -9
  110. package/wip/RadioButton/RadioButton.js +2 -2
  111. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +1 -1
  112. package/wip/Switch/Switch.js +5 -5
  113. package/wip/Switch/SwitchGroup/SwitchGroup.js +1 -1
  114. package/wip/TextArea/TextArea.js +5 -5
  115. package/chunks/register-custom-element.DHGKOhmA.js +0 -17
  116. package/local/chunks/classNames.CARKFDmR.js +0 -106
  117. package/local/chunks/register-custom-element.vod7zfGv.js +0 -51
@@ -2,10 +2,10 @@ import { unsafeCSS as R, html as _, nothing as D } from "lit";
2
2
  import { property as a, queryAssignedElements as j } from "lit/decorators.js";
3
3
  import { createRef as L, ref as N } from "lit/directives/ref.js";
4
4
  import I from "clsx";
5
- import { p as b, a as C, g as W } from "../../chunks/classNames.BQclmCHG.js";
5
+ import { g as W } from "../../chunks/classNames.m6VYRyOu.js";
6
6
  import { t as V } from "../../chunks/constants.ZIKMMCJH.js";
7
- import { r as G } from "../../chunks/delegate.baxDQosr.js";
8
- import { c as B } from "../../chunks/register-custom-element.DHGKOhmA.js";
7
+ import { p as b, e as C, c as G } from "../../chunks/register-custom-element.D_kw6JXe.js";
8
+ import { r as B } from "../../chunks/delegate.baxDQosr.js";
9
9
  import { FormField as H } from "../Form/Form.decorator.js";
10
10
  const k = /* @__PURE__ */ new WeakMap();
11
11
  async function Z(e) {
@@ -135,7 +135,7 @@ f = /* @__PURE__ */ new WeakMap();
135
135
  g = /* @__PURE__ */ new WeakMap();
136
136
  y = /* @__PURE__ */ new WeakMap();
137
137
  w = /* @__PURE__ */ new WeakMap();
138
- G(t);
138
+ B(t);
139
139
  t.styles = R(O);
140
140
  m([
141
141
  a({ type: Number })
@@ -186,7 +186,7 @@ m([
186
186
  j({ slot: "helper-text" })
187
187
  ], t.prototype, "_textAreaHelperText", 2);
188
188
  t = m([
189
- B("bm-text-area")
189
+ G("bm-text-area")
190
190
  ], t);
191
191
  export {
192
192
  t as BmTextArea
@@ -1,17 +0,0 @@
1
- const s = (i) => (d, e) => {
2
- const n = () => {
3
- if (!(typeof window > "u" || !("customElements" in window))) {
4
- if (window.customElements.get(i)) {
5
- console.warn(
6
- `Custom element "${i}" already defined. Skipping duplicate registration.`
7
- );
8
- return;
9
- }
10
- window.customElements.define(i, d);
11
- }
12
- };
13
- e != null && e.addInitializer ? e.addInitializer(n) : n();
14
- };
15
- export {
16
- s as c
17
- };
@@ -1,106 +0,0 @@
1
- import { F as c, p as s } from "./constants.ZIKMMCJH.js";
2
- function i(e) {
3
- var t, n, o = "";
4
- if (typeof e == "string" || typeof e == "number") o += e;
5
- else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = i(e[t])) && (o && (o += " "), o += n);
6
- else for (t in e) e[t] && (o && (o += " "), o += t);
7
- return o;
8
- }
9
- function p() {
10
- for (var e, t, n = 0, o = ""; n < arguments.length; ) (e = arguments[n++]) && (t = i(e)) && (o && (o += " "), o += t);
11
- return o;
12
- }
13
- const f = (e) => e.charAt(0).toUpperCase() + e.slice(1), l = (e) => Object.entries(e);
14
- function b(e, t = c) {
15
- let n;
16
- const o = (...r) => {
17
- n !== void 0 && clearTimeout(n), n = setTimeout(() => e(...r), t);
18
- };
19
- return o.cancel = () => {
20
- n !== void 0 && clearTimeout(n);
21
- }, o;
22
- }
23
- const m = (e) => {
24
- var n;
25
- const t = e.target;
26
- try {
27
- return t.assignedNodes().length > 0 || ((n = t.assignedNodes()[0].textContent) == null ? void 0 : n.trim()) !== "";
28
- } catch {
29
- return !1;
30
- }
31
- }, g = (e) => {
32
- if (!e || e.length === 0) return !1;
33
- for (const t of e)
34
- if (t.nodeType === Node.ELEMENT_NODE || t.nodeType === Node.TEXT_NODE && t.data.trim() !== "") return !0;
35
- return !1;
36
- }, h = (e, t = {}) => {
37
- const n = Object.entries(t).reduce(
38
- (o, [r, a]) => `${o} ${r}='${a}'`,
39
- ""
40
- );
41
- return e.replace("<svg", `<svg ${n}`);
42
- }, w = (e, t) => t.some((n) => e.has(n)), x = (e) => ({
43
- decorate: (t) => {
44
- if (!e) return;
45
- Object.keys(t).forEach((o) => {
46
- e[o] = t[o];
47
- });
48
- }
49
- }), y = (e) => {
50
- const n = e.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [contenteditable]:not([contenteditable="false"])');
51
- return n || null;
52
- }, v = (e, t) => !!e.composedPath().find((r) => r === t), E = () => {
53
- if (typeof window > "u") return !1;
54
- const e = (navigator == null ? void 0 : navigator.userAgent) || (navigator == null ? void 0 : navigator.vendor) || (window == null ? void 0 : window.opera), t = [
55
- "(android|bb\\d+|meego).+mobile",
56
- "avantgo|bada\\/",
57
- "blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)",
58
- "iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront",
59
- "opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/",
60
- "plucker|pocket|psp|series([46])0|symbian|treo|up\\.(browser|link)",
61
- "vodafone|wap|windows ce|xda|xiino"
62
- ].join("|"), n = [
63
- "1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)",
64
- "ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)",
65
- "as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)",
66
- "bl(ac|az)|br([ev])w|bumb|bw-([nu])|c55\\/|capi|ccwa|cdm-",
67
- "cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi",
68
- "dica|dmob|do([cp])o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)",
69
- "esl8|ez([4-7]0|os|wa|ze)|fetc|fly([-_])|g1 u|g560|gene|gf-5|g-mo",
70
- "go(\\.w|od)|gr(ad|un)|haie|hcit|hd-([mpt])|hei-|hi(pt|ta)",
71
- "hp( i|ip)|hs-c|ht(c([- _agpst])|tp)|hu(aw|tc)|i-(20|go|ma)",
72
- "i230|iac([ \\-\\/])"
73
- ].join("|");
74
- return new RegExp(t, "i").test(e) || new RegExp(n, "i").test(e.substr(0, 4));
75
- };
76
- function $(e) {
77
- return typeof window > "u" ? !1 : window.HTMLElement.prototype.hasOwnProperty(e);
78
- }
79
- const d = (e) => e.replace(/^([A-Z])/, (t) => t.toLowerCase()).replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => {
80
- const t = `${s}${e}`, n = `${t}__`, o = `${t}--`, r = `--${s}comp-${e}`;
81
- return {
82
- baseClassNamePrefix: t,
83
- subElementClassPrefix: n,
84
- classModifierPrefix: o,
85
- variablePrefix: r,
86
- variable(a) {
87
- return `${r}-${a}`;
88
- }
89
- };
90
- }, T = (e) => l(e).reduce((t, [n, o]) => (o && t.push(`${s}-${d(`${n}`)}-${o}`), t), []);
91
- export {
92
- x as a,
93
- b,
94
- p as c,
95
- m as d,
96
- $ as e,
97
- v as f,
98
- C as g,
99
- f as h,
100
- E as i,
101
- h as j,
102
- T as k,
103
- y as l,
104
- g as n,
105
- w as p
106
- };
@@ -1,51 +0,0 @@
1
- import { f as c, u as l } from "./lit-element.CJtt9wj5.js";
2
- /**
3
- * @license
4
- * Copyright 2017 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const u = { attribute: !0, type: String, converter: l, reflect: !1, hasChanged: c }, p = (t = u, n, e) => {
8
- const { kind: r, metadata: s } = e;
9
- let o = globalThis.litPropertyMetadata.get(s);
10
- if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(e.name, t), r === "accessor") {
11
- const { name: i } = e;
12
- return { set(a) {
13
- const d = n.get.call(this);
14
- n.set.call(this, a), this.requestUpdate(i, d, t);
15
- }, init(a) {
16
- return a !== void 0 && this.P(i, void 0, t), a;
17
- } };
18
- }
19
- if (r === "setter") {
20
- const { name: i } = e;
21
- return function(a) {
22
- const d = this[i];
23
- n.call(this, a), this.requestUpdate(i, d, t);
24
- };
25
- }
26
- throw Error("Unsupported decorator location: " + r);
27
- };
28
- function m(t) {
29
- return (n, e) => typeof e == "object" ? p(t, n, e) : ((r, s, o) => {
30
- const i = s.hasOwnProperty(o);
31
- return s.constructor.createProperty(o, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, o) : void 0;
32
- })(t, n, e);
33
- }
34
- const w = (t) => (n, e) => {
35
- const r = () => {
36
- if (!(typeof window > "u" || !("customElements" in window))) {
37
- if (window.customElements.get(t)) {
38
- console.warn(
39
- `Custom element "${t}" already defined. Skipping duplicate registration.`
40
- );
41
- return;
42
- }
43
- window.customElements.define(t, n);
44
- }
45
- };
46
- e != null && e.addInitializer ? e.addInitializer(r) : r();
47
- };
48
- export {
49
- w as c,
50
- m as n
51
- };