@telia-ace/alliance-ui 1.0.6-next.0 → 1.0.6-next.2

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 (107) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE.txt +8 -5
  3. package/README.md +2 -400
  4. package/chunks/check-circle-filled-42095247.js.map +1 -1
  5. package/chunks/chevron-down-50d47dd6.js.map +1 -1
  6. package/chunks/close-ac6e4f1c.js.map +1 -1
  7. package/chunks/close-cf3fd2c4.js.map +1 -1
  8. package/chunks/error-filled-8de50bdd.js.map +1 -1
  9. package/chunks/getSvgContent-f2389ce0.js.map +1 -1
  10. package/chunks/stringCombiner-10b57054.js.map +1 -1
  11. package/chunks/{telia-button-ef4894d0.js → telia-button2-d25eddda.js} +5 -2
  12. package/chunks/telia-button2-d25eddda.js.map +1 -0
  13. package/chunks/telia-card-frame2-2d46eef6.js.map +1 -1
  14. package/chunks/{telia-field-assistive-text2-fd970326.js → telia-field-assistive-text2-8e042a32.js} +2 -2
  15. package/chunks/telia-field-assistive-text2-8e042a32.js.map +1 -0
  16. package/chunks/{telia-field-error2-63eae7b3.js → telia-field-error2-8beb1632.js} +2 -2
  17. package/chunks/{telia-field-error2-63eae7b3.js.map → telia-field-error2-8beb1632.js.map} +1 -1
  18. package/chunks/telia-field-valid2-bda898b1.js.map +1 -1
  19. package/chunks/{telia-heading2-5fdf4c16.js → telia-heading2-9d3ab48b.js} +8 -2
  20. package/chunks/telia-heading2-9d3ab48b.js.map +1 -0
  21. package/chunks/telia-icon2-34bf5aef.js.map +1 -1
  22. package/chunks/telia-label2-4d674e5e.js.map +1 -1
  23. package/chunks/telia-link2-7769b385.js.map +1 -1
  24. package/chunks/telia-navigation-button2-a0b24d67.js.map +1 -1
  25. package/chunks/telia-style-link2-bbd8d17a.js.map +1 -1
  26. package/chunks/telia-style-navigation-item2-58683cd9.js.map +1 -1
  27. package/chunks/telia-tab-header2-bd04582d.js.map +1 -1
  28. package/chunks/telia-visually-hidden2-71416262.js.map +1 -1
  29. package/chunks/telia-vst2-1a7f7bd6.js.map +1 -1
  30. package/chunks/uniqueId-0daf01ec.js.map +1 -1
  31. package/chunks/{variables-03fe2cd9.js → variables-07547793.js} +4 -4
  32. package/chunks/{variables-03fe2cd9.js.map → variables-07547793.js.map} +1 -1
  33. package/components/alliance-modal/alliance-modal.d.ts +4 -2
  34. package/components/index.js +254 -227
  35. package/components/index.js.map +1 -1
  36. package/package.json +12 -18
  37. package/style.css +1 -0
  38. package/voca/components/telia-accordion-item.js.map +1 -1
  39. package/voca/components/telia-accordion.js +1 -1
  40. package/voca/components/telia-accordion.js.map +1 -1
  41. package/voca/components/telia-badge.js.map +1 -1
  42. package/voca/components/telia-button.js +1 -1
  43. package/voca/components/telia-card-frame-link.js.map +1 -1
  44. package/voca/components/telia-checkbox.js +20 -20
  45. package/voca/components/telia-checkbox.js.map +1 -1
  46. package/voca/components/telia-chip-choice.js +12 -12
  47. package/voca/components/telia-chip-choice.js.map +1 -1
  48. package/voca/components/telia-chip-filter.js +5 -5
  49. package/voca/components/telia-chip-filter.js.map +1 -1
  50. package/voca/components/telia-col.js.map +1 -1
  51. package/voca/components/telia-color-dot.js.map +1 -1
  52. package/voca/components/telia-cta-link.js +11 -9
  53. package/voca/components/telia-cta-link.js.map +1 -1
  54. package/voca/components/telia-date-picker.js +130 -116
  55. package/voca/components/telia-date-picker.js.map +1 -1
  56. package/voca/components/telia-divider.js +6 -6
  57. package/voca/components/telia-divider.js.map +1 -1
  58. package/voca/components/telia-field-assistive-text.js +1 -1
  59. package/voca/components/telia-field-error.js +1 -1
  60. package/voca/components/telia-fieldset.js.map +1 -1
  61. package/voca/components/telia-focus-trap.js.map +1 -1
  62. package/voca/components/telia-form.js.map +1 -1
  63. package/voca/components/telia-grid.js.map +1 -1
  64. package/voca/components/telia-heading.js +1 -1
  65. package/voca/components/telia-image.js.map +1 -1
  66. package/voca/components/telia-link-image.js.map +1 -1
  67. package/voca/components/telia-list.js.map +1 -1
  68. package/voca/components/telia-logo.js.map +1 -1
  69. package/voca/components/telia-navigation-dropdown.js.map +1 -1
  70. package/voca/components/telia-navigation-link.js.map +1 -1
  71. package/voca/components/telia-notification.js +14 -14
  72. package/voca/components/telia-notification.js.map +1 -1
  73. package/voca/components/telia-overlay.js.map +1 -1
  74. package/voca/components/telia-p.js.map +1 -1
  75. package/voca/components/telia-pictogram.js.map +1 -1
  76. package/voca/components/telia-radio-button.js +5 -5
  77. package/voca/components/telia-radio-button.js.map +1 -1
  78. package/voca/components/telia-row.js.map +1 -1
  79. package/voca/components/telia-select.js +3 -3
  80. package/voca/components/telia-select.js.map +1 -1
  81. package/voca/components/telia-skeleton.js.map +1 -1
  82. package/voca/components/telia-status-badge.js.map +1 -1
  83. package/voca/components/telia-tab-content.js.map +1 -1
  84. package/voca/components/telia-tab.js.map +1 -1
  85. package/voca/components/telia-text-input.js +7 -7
  86. package/voca/components/telia-text-input.js.map +1 -1
  87. package/voca/components/telia-text-spacing.js.map +1 -1
  88. package/voca/components/telia-textarea.js +7 -7
  89. package/voca/components/telia-textarea.js.map +1 -1
  90. package/voca/components/telia-toggle.js +1 -1
  91. package/voca/components/telia-toggle.js.map +1 -1
  92. package/voca/foundations/component-library-styling.d.ts +1 -0
  93. package/voca/foundations/component-library-styling.js +3 -0
  94. package/voca/foundations/component-library-styling.js.map +1 -0
  95. package/voca/foundations/index.js +1 -1
  96. package/voca/icons/index.js.map +1 -1
  97. package/chunks/telia-button-ef4894d0.js.map +0 -1
  98. package/chunks/telia-button-text2-e1510558.js +0 -86
  99. package/chunks/telia-button-text2-e1510558.js.map +0 -1
  100. package/chunks/telia-field-assistive-text2-fd970326.js.map +0 -1
  101. package/chunks/telia-heading2-5fdf4c16.js.map +0 -1
  102. package/components/alliance-modal/alliance-modal.stories.d.ts +0 -6
  103. package/components/alliance-paginator/alliance-paginator.stories.d.ts +0 -6
  104. package/components/alliance-table/alliance-table.stories.d.ts +0 -6
  105. package/voca/components/telia-button-text.d.ts +0 -1
  106. package/voca/components/telia-button-text.js +0 -6
  107. package/voca/components/telia-button-text.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import "../chunks/telia-button-ef4894d0.js";
2
- import "../chunks/telia-heading2-5fdf4c16.js";
1
+ import "../chunks/telia-button2-d25eddda.js";
2
+ import "../chunks/telia-heading2-9d3ab48b.js";
3
3
  import "../chunks/telia-icon2-34bf5aef.js";
4
- import { s as y, l as et, c as x, b as ct, a as Yt, m as yt, f as mt } from "../chunks/variables-03fe2cd9.js";
5
- import { c as Gt, a as te, b as ee } from "../chunks/close-cf3fd2c4.js";
4
+ import { l as it, c as x, b as dt, s as Yt, a as Gt, d as b, m as yt, f as mt } from "../chunks/variables-07547793.js";
5
+ import { c as te, a as ee, b as ie } from "../chunks/close-cf3fd2c4.js";
6
6
  import "../chunks/telia-label2-4d674e5e.js";
7
7
  import "../chunks/index-17652cf7.js";
8
8
  import "../chunks/telia-vst2-1a7f7bd6.js";
@@ -12,17 +12,17 @@ import "../chunks/getSvgContent-f2389ce0.js";
12
12
  * Copyright 2019 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
14
  */
15
- const X = window, vt = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gt = Symbol(), At = /* @__PURE__ */ new WeakMap();
15
+ const X = window, gt = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ft = Symbol(), At = /* @__PURE__ */ new WeakMap();
16
16
  let Dt = class {
17
17
  constructor(t, e, i) {
18
- if (this._$cssResult$ = !0, i !== gt)
18
+ if (this._$cssResult$ = !0, i !== ft)
19
19
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20
20
  this.cssText = t, this.t = e;
21
21
  }
22
22
  get styleSheet() {
23
23
  let t = this.o;
24
24
  const e = this.t;
25
- if (vt && t === void 0) {
25
+ if (gt && t === void 0) {
26
26
  const i = e !== void 0 && e.length === 1;
27
27
  i && (t = At.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && At.set(e, t));
28
28
  }
@@ -32,7 +32,7 @@ let Dt = class {
32
32
  return this.cssText;
33
33
  }
34
34
  };
35
- const u = (n) => new Dt(typeof n == "string" ? n : n + "", void 0, gt), N = (n, ...t) => {
35
+ const d = (n) => new Dt(typeof n == "string" ? n : n + "", void 0, ft), N = (n, ...t) => {
36
36
  const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
37
37
  if (o._$cssResult$ === !0)
38
38
  return o.cssText;
@@ -40,28 +40,28 @@ const u = (n) => new Dt(typeof n == "string" ? n : n + "", void 0, gt), N = (n,
40
40
  return o;
41
41
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
42
42
  })(s) + n[r + 1], n[0]);
43
- return new Dt(e, n, gt);
44
- }, ie = (n, t) => {
45
- vt ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
43
+ return new Dt(e, n, ft);
44
+ }, se = (n, t) => {
45
+ gt ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
46
46
  const i = document.createElement("style"), s = X.litNonce;
47
47
  s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
48
48
  });
49
- }, Pt = vt ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
49
+ }, Pt = gt ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
50
50
  let e = "";
51
51
  for (const i of t.cssRules)
52
52
  e += i.cssText;
53
- return u(e);
53
+ return d(e);
54
54
  })(n) : n;
55
55
  /**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
59
  */
60
- var it;
61
- const F = window, Et = F.trustedTypes, se = Et ? Et.emptyScript : "", Ct = F.reactiveElementPolyfillSupport, dt = { toAttribute(n, t) {
60
+ var st;
61
+ const F = window, Et = F.trustedTypes, ne = Et ? Et.emptyScript : "", Ct = F.reactiveElementPolyfillSupport, pt = { toAttribute(n, t) {
62
62
  switch (t) {
63
63
  case Boolean:
64
- n = n ? se : null;
64
+ n = n ? ne : null;
65
65
  break;
66
66
  case Object:
67
67
  case Array:
@@ -86,7 +86,7 @@ const F = window, Et = F.trustedTypes, se = Et ? Et.emptyScript : "", Ct = F.rea
86
86
  }
87
87
  }
88
88
  return e;
89
- } }, zt = (n, t) => t !== n && (t == t || n == n), st = { attribute: !0, type: String, converter: dt, reflect: !1, hasChanged: zt };
89
+ } }, zt = (n, t) => t !== n && (t == t || n == n), nt = { attribute: !0, type: String, converter: pt, reflect: !1, hasChanged: zt };
90
90
  let R = class extends HTMLElement {
91
91
  constructor() {
92
92
  super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
@@ -103,7 +103,7 @@ let R = class extends HTMLElement {
103
103
  s !== void 0 && (this._$Ev.set(s, i), t.push(s));
104
104
  }), t;
105
105
  }
106
- static createProperty(t, e = st) {
106
+ static createProperty(t, e = nt) {
107
107
  if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
108
108
  const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
109
109
  s !== void 0 && Object.defineProperty(this.prototype, t, s);
@@ -118,7 +118,7 @@ let R = class extends HTMLElement {
118
118
  }, configurable: !0, enumerable: !0 };
119
119
  }
120
120
  static getPropertyOptions(t) {
121
- return this.elementProperties.get(t) || st;
121
+ return this.elementProperties.get(t) || nt;
122
122
  }
123
123
  static finalize() {
124
124
  if (this.hasOwnProperty("finalized"))
@@ -166,7 +166,7 @@ let R = class extends HTMLElement {
166
166
  createRenderRoot() {
167
167
  var t;
168
168
  const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
169
- return ie(e, this.constructor.elementStyles), e;
169
+ return se(e, this.constructor.elementStyles), e;
170
170
  }
171
171
  connectedCallback() {
172
172
  var t;
@@ -187,11 +187,11 @@ let R = class extends HTMLElement {
187
187
  attributeChangedCallback(t, e, i) {
188
188
  this._$AK(t, i);
189
189
  }
190
- _$EO(t, e, i = st) {
190
+ _$EO(t, e, i = nt) {
191
191
  var s;
192
192
  const r = this.constructor._$Ep(t, i);
193
193
  if (r !== void 0 && i.reflect === !0) {
194
- const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : dt).toAttribute(e, i.type);
194
+ const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : pt).toAttribute(e, i.type);
195
195
  this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
196
196
  }
197
197
  }
@@ -199,7 +199,7 @@ let R = class extends HTMLElement {
199
199
  var i;
200
200
  const s = this.constructor, r = s._$Ev.get(t);
201
201
  if (r !== void 0 && this._$El !== r) {
202
- const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : dt;
202
+ const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : pt;
203
203
  this._$El = r, this[r] = c.fromAttribute(e, o.type), this._$El = null;
204
204
  }
205
205
  }
@@ -266,75 +266,75 @@ let R = class extends HTMLElement {
266
266
  firstUpdated(t) {
267
267
  }
268
268
  };
269
- R.finalized = !0, R.elementProperties = /* @__PURE__ */ new Map(), R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, Ct == null || Ct({ ReactiveElement: R }), ((it = F.reactiveElementVersions) !== null && it !== void 0 ? it : F.reactiveElementVersions = []).push("1.6.1");
269
+ R.finalized = !0, R.elementProperties = /* @__PURE__ */ new Map(), R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, Ct == null || Ct({ ReactiveElement: R }), ((st = F.reactiveElementVersions) !== null && st !== void 0 ? st : F.reactiveElementVersions = []).push("1.6.1");
270
270
  /**
271
271
  * @license
272
272
  * Copyright 2017 Google LLC
273
273
  * SPDX-License-Identifier: BSD-3-Clause
274
274
  */
275
- var nt;
276
- const Q = window, D = Q.trustedTypes, St = D ? D.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, P = `lit$${(Math.random() + "").slice(9)}$`, ft = "?" + P, ne = `<${ft}>`, z = document, k = (n = "") => z.createComment(n), V = (n) => n === null || typeof n != "object" && typeof n != "function", jt = Array.isArray, Bt = (n) => jt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wt = /-->/g, xt = />/g, S = RegExp(`>|[
275
+ var rt;
276
+ const Q = window, D = Q.trustedTypes, St = D ? D.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, P = `lit$${(Math.random() + "").slice(9)}$`, _t = "?" + P, re = `<${_t}>`, z = document, V = (n = "") => z.createComment(n), W = (n) => n === null || typeof n != "object" && typeof n != "function", jt = Array.isArray, Bt = (n) => jt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wt = /-->/g, xt = />/g, S = RegExp(`>|[
277
277
  \f\r](?:([^\\s"'>=/]+)([
278
278
  \f\r]*=[
279
279
  \f\r]*(?:[^
280
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ot = /'/g, Tt = /"/g, It = /^(?:script|style|textarea|title)$/i, re = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), _ = re(1), O = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), Ut = /* @__PURE__ */ new WeakMap(), M = z.createTreeWalker(z, 129, null, !1), Lt = (n, t) => {
280
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ot = /'/g, Tt = /"/g, kt = /^(?:script|style|textarea|title)$/i, oe = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), _ = oe(1), O = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), Ut = /* @__PURE__ */ new WeakMap(), M = z.createTreeWalker(z, 129, null, !1), It = (n, t) => {
281
281
  const e = n.length - 1, i = [];
282
282
  let s, r = t === 2 ? "<svg>" : "", o = I;
283
283
  for (let a = 0; a < e; a++) {
284
284
  const l = n[a];
285
- let v, d, h = -1, p = 0;
286
- for (; p < l.length && (o.lastIndex = p, d = o.exec(l), d !== null); )
287
- p = o.lastIndex, o === I ? d[1] === "!--" ? o = wt : d[1] !== void 0 ? o = xt : d[2] !== void 0 ? (It.test(d[2]) && (s = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = s ?? I, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, v = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? Tt : Ot) : o === Tt || o === Ot ? o = S : o === wt || o === xt ? o = I : (o = S, s = void 0);
285
+ let v, p, h = -1, u = 0;
286
+ for (; u < l.length && (o.lastIndex = u, p = o.exec(l), p !== null); )
287
+ u = o.lastIndex, o === I ? p[1] === "!--" ? o = wt : p[1] !== void 0 ? o = xt : p[2] !== void 0 ? (kt.test(p[2]) && (s = RegExp("</" + p[2], "g")), o = S) : p[3] !== void 0 && (o = S) : o === S ? p[0] === ">" ? (o = s ?? I, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, v = p[1], o = p[3] === void 0 ? S : p[3] === '"' ? Tt : Ot) : o === Tt || o === Ot ? o = S : o === wt || o === xt ? o = I : (o = S, s = void 0);
288
288
  const $ = o === S && n[a + 1].startsWith("/>") ? " " : "";
289
- r += o === I ? l + ne : h >= 0 ? (i.push(v), l.slice(0, h) + "$lit$" + l.slice(h) + P + $) : l + P + (h === -2 ? (i.push(void 0), a) : $);
289
+ r += o === I ? l + re : h >= 0 ? (i.push(v), l.slice(0, h) + "$lit$" + l.slice(h) + P + $) : l + P + (h === -2 ? (i.push(void 0), a) : $);
290
290
  }
291
291
  const c = r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "");
292
292
  if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
293
293
  throw Error("invalid template strings array");
294
294
  return [St !== void 0 ? St.createHTML(c) : c, i];
295
295
  };
296
- class W {
296
+ class q {
297
297
  constructor({ strings: t, _$litType$: e }, i) {
298
298
  let s;
299
299
  this.parts = [];
300
300
  let r = 0, o = 0;
301
- const c = t.length - 1, a = this.parts, [l, v] = Lt(t, e);
302
- if (this.el = W.createElement(l, i), M.currentNode = this.el.content, e === 2) {
303
- const d = this.el.content, h = d.firstChild;
304
- h.remove(), d.append(...h.childNodes);
301
+ const c = t.length - 1, a = this.parts, [l, v] = It(t, e);
302
+ if (this.el = q.createElement(l, i), M.currentNode = this.el.content, e === 2) {
303
+ const p = this.el.content, h = p.firstChild;
304
+ h.remove(), p.append(...h.childNodes);
305
305
  }
306
306
  for (; (s = M.nextNode()) !== null && a.length < c; ) {
307
307
  if (s.nodeType === 1) {
308
308
  if (s.hasAttributes()) {
309
- const d = [];
309
+ const p = [];
310
310
  for (const h of s.getAttributeNames())
311
311
  if (h.endsWith("$lit$") || h.startsWith(P)) {
312
- const p = v[o++];
313
- if (d.push(h), p !== void 0) {
314
- const $ = s.getAttribute(p.toLowerCase() + "$lit$").split(P), g = /([.?@])?(.*)/.exec(p);
312
+ const u = v[o++];
313
+ if (p.push(h), u !== void 0) {
314
+ const $ = s.getAttribute(u.toLowerCase() + "$lit$").split(P), g = /([.?@])?(.*)/.exec(u);
315
315
  a.push({ type: 1, index: r, name: g[2], strings: $, ctor: g[1] === "." ? Vt : g[1] === "?" ? Wt : g[1] === "@" ? qt : K });
316
316
  } else
317
317
  a.push({ type: 6, index: r });
318
318
  }
319
- for (const h of d)
319
+ for (const h of p)
320
320
  s.removeAttribute(h);
321
321
  }
322
- if (It.test(s.tagName)) {
323
- const d = s.textContent.split(P), h = d.length - 1;
322
+ if (kt.test(s.tagName)) {
323
+ const p = s.textContent.split(P), h = p.length - 1;
324
324
  if (h > 0) {
325
325
  s.textContent = D ? D.emptyScript : "";
326
- for (let p = 0; p < h; p++)
327
- s.append(d[p], k()), M.nextNode(), a.push({ type: 2, index: ++r });
328
- s.append(d[h], k());
326
+ for (let u = 0; u < h; u++)
327
+ s.append(p[u], V()), M.nextNode(), a.push({ type: 2, index: ++r });
328
+ s.append(p[h], V());
329
329
  }
330
330
  }
331
331
  } else if (s.nodeType === 8)
332
- if (s.data === ft)
332
+ if (s.data === _t)
333
333
  a.push({ type: 2, index: r });
334
334
  else {
335
- let d = -1;
336
- for (; (d = s.data.indexOf(P, d + 1)) !== -1; )
337
- a.push({ type: 7, index: r }), d += P.length - 1;
335
+ let p = -1;
336
+ for (; (p = s.data.indexOf(P, p + 1)) !== -1; )
337
+ a.push({ type: 7, index: r }), p += P.length - 1;
338
338
  }
339
339
  r++;
340
340
  }
@@ -349,10 +349,10 @@ function T(n, t, e = n, i) {
349
349
  if (t === O)
350
350
  return t;
351
351
  let a = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
352
- const l = V(t) ? void 0 : t._$litDirective$;
352
+ const l = W(t) ? void 0 : t._$litDirective$;
353
353
  return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(n), a._$AT(n, e, i)), i !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = T(n, a._$AS(n, t.values), a, i)), t;
354
354
  }
355
- class kt {
355
+ class Lt {
356
356
  constructor(t, e) {
357
357
  this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
358
358
  }
@@ -370,7 +370,7 @@ class kt {
370
370
  for (; l !== void 0; ) {
371
371
  if (c === l.index) {
372
372
  let v;
373
- l.type === 2 ? v = new j(o, o.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (v = new Kt(o, this, t)), this.u.push(v), l = s[++a];
373
+ l.type === 2 ? v = new B(o, o.nextSibling, this, t) : l.type === 1 ? v = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (v = new Kt(o, this, t)), this.u.push(v), l = s[++a];
374
374
  }
375
375
  c !== (l == null ? void 0 : l.index) && (o = M.nextNode(), c++);
376
376
  }
@@ -382,7 +382,7 @@ class kt {
382
382
  i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
383
383
  }
384
384
  }
385
- class j {
385
+ class B {
386
386
  constructor(t, e, i, s) {
387
387
  var r;
388
388
  this.type = 2, this._$AH = f, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cm = (r = s == null ? void 0 : s.isConnected) === null || r === void 0 || r;
@@ -403,7 +403,7 @@ class j {
403
403
  return this._$AB;
404
404
  }
405
405
  _$AI(t, e = this) {
406
- t = T(this, t, e), V(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== O && this.g(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bt(t) ? this.k(t) : this.g(t);
406
+ t = T(this, t, e), W(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== O && this.g(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Bt(t) ? this.k(t) : this.g(t);
407
407
  }
408
408
  O(t, e = this._$AB) {
409
409
  return this._$AA.parentNode.insertBefore(t, e);
@@ -412,28 +412,28 @@ class j {
412
412
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
413
413
  }
414
414
  g(t) {
415
- this._$AH !== f && V(this._$AH) ? this._$AA.nextSibling.data = t : this.T(z.createTextNode(t)), this._$AH = t;
415
+ this._$AH !== f && W(this._$AH) ? this._$AA.nextSibling.data = t : this.T(z.createTextNode(t)), this._$AH = t;
416
416
  }
417
417
  $(t) {
418
418
  var e;
419
- const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = W.createElement(s.h, this.options)), s);
419
+ const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = q.createElement(s.h, this.options)), s);
420
420
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
421
421
  this._$AH.p(i);
422
422
  else {
423
- const o = new kt(r, this), c = o.v(this.options);
423
+ const o = new Lt(r, this), c = o.v(this.options);
424
424
  o.p(i), this.T(c), this._$AH = o;
425
425
  }
426
426
  }
427
427
  _$AC(t) {
428
428
  let e = Ut.get(t.strings);
429
- return e === void 0 && Ut.set(t.strings, e = new W(t)), e;
429
+ return e === void 0 && Ut.set(t.strings, e = new q(t)), e;
430
430
  }
431
431
  k(t) {
432
432
  jt(this._$AH) || (this._$AH = [], this._$AR());
433
433
  const e = this._$AH;
434
434
  let i, s = 0;
435
435
  for (const r of t)
436
- s === e.length ? e.push(i = new j(this.O(k()), this.O(k()), this, this.options)) : i = e[s], i._$AI(r), s++;
436
+ s === e.length ? e.push(i = new B(this.O(V()), this.O(V()), this, this.options)) : i = e[s], i._$AI(r), s++;
437
437
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
438
438
  }
439
439
  _$AR(t = this._$AA.nextSibling, e) {
@@ -462,12 +462,12 @@ class K {
462
462
  const r = this.strings;
463
463
  let o = !1;
464
464
  if (r === void 0)
465
- t = T(this, t, e, 0), o = !V(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
465
+ t = T(this, t, e, 0), o = !W(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
466
466
  else {
467
467
  const c = t;
468
468
  let a, l;
469
469
  for (t = r[0], a = 0; a < r.length - 1; a++)
470
- l = T(this, c[i + a], e, a), l === O && (l = this._$AH[a]), o || (o = !V(l) || l !== this._$AH[a]), l === f ? t = f : t !== f && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
470
+ l = T(this, c[i + a], e, a), l === O && (l = this._$AH[a]), o || (o = !W(l) || l !== this._$AH[a]), l === f ? t = f : t !== f && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
471
471
  }
472
472
  o && !s && this.j(t);
473
473
  }
@@ -483,13 +483,13 @@ class Vt extends K {
483
483
  this.element[this.name] = t === f ? void 0 : t;
484
484
  }
485
485
  }
486
- const oe = D ? D.emptyScript : "";
486
+ const le = D ? D.emptyScript : "";
487
487
  class Wt extends K {
488
488
  constructor() {
489
489
  super(...arguments), this.type = 4;
490
490
  }
491
491
  j(t) {
492
- t && t !== f ? this.element.setAttribute(this.name, oe) : this.element.removeAttribute(this.name);
492
+ t && t !== f ? this.element.setAttribute(this.name, le) : this.element.removeAttribute(this.name);
493
493
  }
494
494
  }
495
495
  class qt extends K {
@@ -519,15 +519,15 @@ class Kt {
519
519
  T(this, t);
520
520
  }
521
521
  }
522
- const le = { P: "$lit$", A: P, M: ft, C: 1, L: Lt, R: kt, D: Bt, V: T, I: j, H: K, N: Wt, U: qt, B: Vt, F: Kt }, Nt = Q.litHtmlPolyfillSupport;
523
- Nt == null || Nt(W, j), ((nt = Q.litHtmlVersions) !== null && nt !== void 0 ? nt : Q.litHtmlVersions = []).push("2.6.1");
524
- const ae = (n, t, e) => {
522
+ const ae = { P: "$lit$", A: P, M: _t, C: 1, L: It, R: Lt, D: Bt, V: T, I: B, H: K, N: Wt, U: qt, B: Vt, F: Kt }, Nt = Q.litHtmlPolyfillSupport;
523
+ Nt == null || Nt(q, B), ((rt = Q.litHtmlVersions) !== null && rt !== void 0 ? rt : Q.litHtmlVersions = []).push("2.6.1");
524
+ const he = (n, t, e) => {
525
525
  var i, s;
526
526
  const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
527
527
  let o = r._$litPart$;
528
528
  if (o === void 0) {
529
529
  const c = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
530
- r._$litPart$ = o = new j(t.insertBefore(k(), c), c, void 0, e ?? {});
530
+ r._$litPart$ = o = new B(t.insertBefore(V(), c), c, void 0, e ?? {});
531
531
  }
532
532
  return o._$AI(n), o;
533
533
  };
@@ -536,7 +536,7 @@ const ae = (n, t, e) => {
536
536
  * Copyright 2017 Google LLC
537
537
  * SPDX-License-Identifier: BSD-3-Clause
538
538
  */
539
- var rt, ot;
539
+ var ot, lt;
540
540
  let m = class extends R {
541
541
  constructor() {
542
542
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -548,7 +548,7 @@ let m = class extends R {
548
548
  }
549
549
  update(t) {
550
550
  const e = this.render();
551
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ae(e, this.renderRoot, this.renderOptions);
551
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = he(e, this.renderRoot, this.renderOptions);
552
552
  }
553
553
  connectedCallback() {
554
554
  var t;
@@ -562,10 +562,10 @@ let m = class extends R {
562
562
  return O;
563
563
  }
564
564
  };
565
- m.finalized = !0, m._$litElement$ = !0, (rt = globalThis.litElementHydrateSupport) === null || rt === void 0 || rt.call(globalThis, { LitElement: m });
565
+ m.finalized = !0, m._$litElement$ = !0, (ot = globalThis.litElementHydrateSupport) === null || ot === void 0 || ot.call(globalThis, { LitElement: m });
566
566
  const Ht = globalThis.litElementPolyfillSupport;
567
567
  Ht == null || Ht({ LitElement: m });
568
- ((ot = globalThis.litElementVersions) !== null && ot !== void 0 ? ot : globalThis.litElementVersions = []).push("3.2.2");
568
+ ((lt = globalThis.litElementVersions) !== null && lt !== void 0 ? lt : globalThis.litElementVersions = []).push("3.2.2");
569
569
  /**
570
570
  * @license
571
571
  * Copyright 2017 Google LLC
@@ -582,17 +582,17 @@ const C = (n) => (t) => typeof t == "function" ? ((e, i) => (customElements.defi
582
582
  * Copyright 2017 Google LLC
583
583
  * SPDX-License-Identifier: BSD-3-Clause
584
584
  */
585
- const he = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
585
+ const ce = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
586
586
  e.createProperty(t.key, n);
587
587
  } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
588
588
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
589
589
  }, finisher(e) {
590
590
  e.createProperty(t.key, n);
591
591
  } };
592
- function b(n) {
592
+ function y(n) {
593
593
  return (t, e) => e !== void 0 ? ((i, s, r) => {
594
594
  s.constructor.createProperty(r, i);
595
- })(n, t, e) : he(n, t);
595
+ })(n, t, e) : ce(n, t);
596
596
  }
597
597
  /**
598
598
  * @license
@@ -600,21 +600,21 @@ function b(n) {
600
600
  * SPDX-License-Identifier: BSD-3-Clause
601
601
  */
602
602
  function Zt(n) {
603
- return b({ ...n, state: !0 });
603
+ return y({ ...n, state: !0 });
604
604
  }
605
605
  /**
606
606
  * @license
607
607
  * Copyright 2021 Google LLC
608
608
  * SPDX-License-Identifier: BSD-3-Clause
609
609
  */
610
- var lt;
611
- ((lt = window.HTMLSlotElement) === null || lt === void 0 ? void 0 : lt.prototype.assignedElements) != null;
610
+ var at;
611
+ ((at = window.HTMLSlotElement) === null || at === void 0 ? void 0 : at.prototype.assignedElements) != null;
612
612
  /**
613
613
  * @license
614
614
  * Copyright 2017 Google LLC
615
615
  * SPDX-License-Identifier: BSD-3-Clause
616
616
  */
617
- const ce = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, de = (n) => (...t) => ({ _$litDirective$: n, values: t });
617
+ const de = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, pe = (n) => (...t) => ({ _$litDirective$: n, values: t });
618
618
  class ue {
619
619
  constructor(t) {
620
620
  }
@@ -636,12 +636,12 @@ class ue {
636
636
  * Copyright 2020 Google LLC
637
637
  * SPDX-License-Identifier: BSD-3-Clause
638
638
  */
639
- const { I: pe } = le, Rt = () => document.createComment(""), L = (n, t, e) => {
639
+ const { I: $e } = ae, Rt = () => document.createComment(""), L = (n, t, e) => {
640
640
  var i;
641
641
  const s = n._$AA.parentNode, r = t === void 0 ? n._$AB : t._$AA;
642
642
  if (e === void 0) {
643
643
  const o = s.insertBefore(Rt(), r), c = s.insertBefore(Rt(), r);
644
- e = new pe(o, c, n, n.options);
644
+ e = new $e(o, c, n, n.options);
645
645
  } else {
646
646
  const o = e._$AB.nextSibling, c = e._$AM, a = c !== n;
647
647
  if (a) {
@@ -657,7 +657,7 @@ const { I: pe } = le, Rt = () => document.createComment(""), L = (n, t, e) => {
657
657
  }
658
658
  }
659
659
  return e;
660
- }, w = (n, t, e = n) => (n._$AI(t, e), n), $e = {}, ve = (n, t = $e) => n._$AH = t, ge = (n) => n._$AH, at = (n) => {
660
+ }, w = (n, t, e = n) => (n._$AI(t, e), n), ve = {}, ge = (n, t = ve) => n._$AH = t, fe = (n) => n._$AH, ht = (n) => {
661
661
  var t;
662
662
  (t = n._$AP) === null || t === void 0 || t.call(n, !1, !0);
663
663
  let e = n._$AA;
@@ -677,9 +677,9 @@ const Mt = (n, t, e) => {
677
677
  for (let s = t; s <= e; s++)
678
678
  i.set(n[s], s);
679
679
  return i;
680
- }, Jt = de(class extends ue {
680
+ }, Jt = pe(class extends ue {
681
681
  constructor(n) {
682
- if (super(n), n.type !== ce.CHILD)
682
+ if (super(n), n.type !== de.CHILD)
683
683
  throw Error("repeat() can only be used in text expressions");
684
684
  }
685
685
  ht(n, t, e) {
@@ -696,56 +696,56 @@ const Mt = (n, t, e) => {
696
696
  }
697
697
  update(n, [t, e, i]) {
698
698
  var s;
699
- const r = ge(n), { values: o, keys: c } = this.ht(t, e, i);
699
+ const r = fe(n), { values: o, keys: c } = this.ht(t, e, i);
700
700
  if (!Array.isArray(r))
701
701
  return this.ut = c, o;
702
702
  const a = (s = this.ut) !== null && s !== void 0 ? s : this.ut = [], l = [];
703
- let v, d, h = 0, p = r.length - 1, $ = 0, g = o.length - 1;
704
- for (; h <= p && $ <= g; )
703
+ let v, p, h = 0, u = r.length - 1, $ = 0, g = o.length - 1;
704
+ for (; h <= u && $ <= g; )
705
705
  if (r[h] === null)
706
706
  h++;
707
- else if (r[p] === null)
708
- p--;
707
+ else if (r[u] === null)
708
+ u--;
709
709
  else if (a[h] === c[$])
710
710
  l[$] = w(r[h], o[$]), h++, $++;
711
- else if (a[p] === c[g])
712
- l[g] = w(r[p], o[g]), p--, g--;
711
+ else if (a[u] === c[g])
712
+ l[g] = w(r[u], o[g]), u--, g--;
713
713
  else if (a[h] === c[g])
714
714
  l[g] = w(r[h], o[g]), L(n, l[g + 1], r[h]), h++, g--;
715
- else if (a[p] === c[$])
716
- l[$] = w(r[p], o[$]), L(n, r[h], r[p]), p--, $++;
717
- else if (v === void 0 && (v = Mt(c, $, g), d = Mt(a, h, p)), v.has(a[h]))
718
- if (v.has(a[p])) {
719
- const A = d.get(c[$]), tt = A !== void 0 ? r[A] : null;
720
- if (tt === null) {
715
+ else if (a[u] === c[$])
716
+ l[$] = w(r[u], o[$]), L(n, r[h], r[u]), u--, $++;
717
+ else if (v === void 0 && (v = Mt(c, $, g), p = Mt(a, h, u)), v.has(a[h]))
718
+ if (v.has(a[u])) {
719
+ const A = p.get(c[$]), et = A !== void 0 ? r[A] : null;
720
+ if (et === null) {
721
721
  const bt = L(n, r[h]);
722
722
  w(bt, o[$]), l[$] = bt;
723
723
  } else
724
- l[$] = w(tt, o[$]), L(n, r[h], tt), r[A] = null;
724
+ l[$] = w(et, o[$]), L(n, r[h], et), r[A] = null;
725
725
  $++;
726
726
  } else
727
- at(r[p]), p--;
727
+ ht(r[u]), u--;
728
728
  else
729
- at(r[h]), h++;
729
+ ht(r[h]), h++;
730
730
  for (; $ <= g; ) {
731
731
  const A = L(n, l[g + 1]);
732
732
  w(A, o[$]), l[$++] = A;
733
733
  }
734
- for (; h <= p; ) {
734
+ for (; h <= u; ) {
735
735
  const A = r[h++];
736
- A !== null && at(A);
736
+ A !== null && ht(A);
737
737
  }
738
- return this.ut = c, ve(n, l), O;
738
+ return this.ut = c, ge(n, l), O;
739
739
  }
740
740
  });
741
- var fe = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, _t = (n, t, e, i) => {
742
- for (var s = i > 1 ? void 0 : i ? _e(t, e) : t, r = n.length - 1, o; r >= 0; r--)
741
+ var _e = Object.defineProperty, be = Object.getOwnPropertyDescriptor, tt = (n, t, e, i) => {
742
+ for (var s = i > 1 ? void 0 : i ? be(t, e) : t, r = n.length - 1, o; r >= 0; r--)
743
743
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
744
- return i && s && fe(t, e, s), s;
744
+ return i && s && _e(t, e, s), s;
745
745
  };
746
- let q = class extends m {
746
+ let j = class extends m {
747
747
  constructor() {
748
- super(...arguments), this.onBackdropClick = () => this.action("close"), this.onCloseClick = () => this.action("close"), this.header = "", this.actions = [], this.action = (n) => {
748
+ super(...arguments), this.header = "", this.actions = [], this.onBackdropClick = () => this.action("close"), this.onCloseClick = () => this.action("close"), this.action = (n) => {
749
749
  const t = new CustomEvent("action", {
750
750
  bubbles: !0,
751
751
  composed: !0,
@@ -757,124 +757,151 @@ let q = class extends m {
757
757
  }
758
758
  render() {
759
759
  return _`
760
+ ${this.contain && _`<style>
761
+ :host {
762
+ position: static !important;
763
+ }
764
+ .backdrop {
765
+ position: absolute !important;
766
+ }
767
+ </style>`}
760
768
  <div class="backdrop" @click=${this.onBackdropClick}></div>
761
769
  <div class="container">
762
- <div class="header">
763
- <telia-heading tag="h3" variant="title-100">${this.header}</telia-heading>
764
- <telia-button size="sm" variant="text" @click=${this.onCloseClick}
765
- ><telia-icon size="md" svg="${Gt.svg}"
766
- /></telia-button>
767
- </div>
768
- <div class="body">
769
- <slot></slot>
770
- </div>
771
- ${this.actions.length ? _`
772
- <div class="footer">
773
- ${Jt(
770
+ <dialog open>
771
+ <div class="header">
772
+ <telia-heading tag="h3" variant="title-100">${this.header}</telia-heading>
773
+ <telia-button size="sm" variant="text" @click=${this.onCloseClick}
774
+ ><telia-icon size="md" svg="${te.svg}"
775
+ /></telia-button>
776
+ </div>
777
+ <div class="body">
778
+ <slot></slot>
779
+ </div>
780
+ ${this.actions.length ? _`
781
+ <div class="footer">
782
+ ${Jt(
774
783
  this.actions,
775
784
  (n) => _`
776
- <telia-button
777
- variant="${n.variant || "primary"}"
778
- size="md"
779
- @click=${() => this.action(n.action)}
780
- >
781
- ${n.label}
782
- </telia-button>
783
- `
785
+ <telia-button
786
+ disabled="${n.disabled ? "true" : "false"}"
787
+ variant="${n.variant || "primary"}"
788
+ size="md"
789
+ @click=${() => this.action(n.action)}
790
+ >
791
+ ${n.label}
792
+ </telia-button>
793
+ `
784
794
  )}
785
- </div>
786
- ` : ""}
795
+ </div>
796
+ ` : ""}
797
+ </dialog>
787
798
  </div>
788
799
  `;
789
800
  }
790
801
  };
791
- q.styles = N`
802
+ j.styles = N`
792
803
  :host {
793
804
  inset: 0;
794
805
  position: fixed;
795
- display: flex;
796
- justify-content: center;
797
- align-items: center;
798
- padding: ${u(y.spacing24)};
799
- z-index: ${u(et.modal)};
800
806
  }
801
807
 
802
808
  .backdrop {
803
809
  inset: 0;
804
810
  position: absolute;
805
- background-color: ${u(x.black)};
811
+ z-index: ${d(parseInt(it.modal) - 1)};
812
+ background-color: ${d(x.black)};
806
813
  opacity: 0.3;
807
- z-index: ${u(parseInt(et.modal) + 1)};
808
814
  }
809
815
 
810
816
  .container {
811
- background-color: ${u(x.white)};
812
- border-radius: ${u(ct.radiusLg)};
813
- box-shadow: ${u(Yt.md)};
814
- z-index: ${u(parseInt(et.modal) + 2)};
817
+ margin: 0 auto;
818
+ display: flex;
819
+ justify-content: center;
820
+ align-items: flex-start;
821
+ z-index: ${d(parseInt(it.modal))};
822
+ overflow-x: hidden;
823
+ overflow-y: overlay;
824
+ height: 100%;
825
+ width: 100%;
826
+ }
827
+
828
+ dialog {
829
+ background-color: ${d(x.white)};
830
+ border-radius: ${d(dt.radiusLg)};
831
+ box-shadow: ${d(Yt.md)};
832
+ z-index: ${d(parseInt(it.modal) + 2)};
833
+ max-width: ${d(Gt.breakpointLg)};
834
+ margin: ${d(b.spacing128)} ${d(b.spacing24)};
815
835
  display: block;
836
+ position: static;
837
+ padding: 0;
838
+ border: none;
816
839
  }
817
840
 
818
841
  .header {
819
842
  position: relative;
820
- padding: ${u(y.spacing32)};
821
- border-bottom: ${u(ct.widthXs)} solid ${u(x.gray200)};
843
+ padding: ${d(b.spacing32)};
844
+ border-bottom: ${d(dt.widthXs)} solid ${d(x.gray200)};
822
845
  }
823
846
 
824
847
  .header telia-button {
825
848
  position: absolute;
826
- top: ${u(y.spacing20)};
827
- right: ${u(y.spacing20)};
849
+ top: ${d(b.spacing20)};
850
+ right: ${d(b.spacing20)};
828
851
  }
829
852
 
830
853
  .body {
831
- padding: 0 ${u(y.spacing32)};
832
- margin: ${u(y.spacing24)} 0;
854
+ padding: 0 ${d(b.spacing32)};
855
+ margin: ${d(b.spacing24)} 0;
856
+ min-width: calc(${d(b.spacing128)} * 2);
833
857
  }
834
858
 
835
859
  .footer {
836
860
  display: flex;
837
861
  justify-content: flex-end;
838
- gap: ${u(y.spacing24)};
839
- padding: 0 ${u(y.spacing32)};
840
- margin: ${u(y.spacing24)} 0;
862
+ gap: ${d(b.spacing24)};
863
+ padding: 0 ${d(b.spacing32)};
864
+ margin: ${d(b.spacing24)} 0;
841
865
  }
842
866
  `;
843
- _t([
844
- b({ type: String, attribute: "header" })
845
- ], q.prototype, "header", 2);
846
- _t([
847
- b({ type: Array })
848
- ], q.prototype, "actions", 2);
849
- q = _t([
867
+ tt([
868
+ y({ type: String, attribute: "header" })
869
+ ], j.prototype, "header", 2);
870
+ tt([
871
+ y({ type: Array })
872
+ ], j.prototype, "actions", 2);
873
+ tt([
874
+ y({ type: Boolean, attribute: "contain" })
875
+ ], j.prototype, "contain", 2);
876
+ j = tt([
850
877
  C("alliance-modal")
851
- ], q);
878
+ ], j);
852
879
  const Z = "...", J = (n, t) => {
853
880
  let e = t - n + 1;
854
881
  return Array.from({ length: e }, (i, s) => s + n);
855
- }, ht = ({ itemCount: n, pageSize: t, siblingCount: e, currentPage: i }) => {
882
+ }, ct = ({ itemCount: n, pageSize: t, siblingCount: e, currentPage: i }) => {
856
883
  const s = Math.ceil(n / t);
857
884
  if (e + 5 >= s)
858
885
  return J(1, s);
859
- const o = Math.max(i - e, 1), c = Math.min(i + e, s), a = o > 2, l = c < s - 2, v = 1, d = s;
886
+ const o = Math.max(i - e, 1), c = Math.min(i + e, s), a = o > 2, l = c < s - 2, v = 1, p = s;
860
887
  if (!a && l) {
861
888
  let h = 3 + 2 * e;
862
889
  return [...J(1, h), Z, s];
863
890
  }
864
891
  if (a && !l) {
865
- let h = 3 + 2 * e, p = J(s - h + 1, s);
866
- return [v, Z, ...p];
892
+ let h = 3 + 2 * e, u = J(s - h + 1, s);
893
+ return [v, Z, ...u];
867
894
  }
868
895
  if (a && l) {
869
896
  let h = J(o, c);
870
- return [v, Z, ...h, Z, d];
897
+ return [v, Z, ...h, Z, p];
871
898
  }
872
899
  return [];
873
900
  };
874
- var be = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, H = (n, t, e, i) => {
875
- for (var s = i > 1 ? void 0 : i ? ye(t, e) : t, r = n.length - 1, o; r >= 0; r--)
901
+ var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, H = (n, t, e, i) => {
902
+ for (var s = i > 1 ? void 0 : i ? me(t, e) : t, r = n.length - 1, o; r >= 0; r--)
876
903
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
877
- return i && s && be(t, e, s), s;
904
+ return i && s && ye(t, e, s), s;
878
905
  };
879
906
  let E = class extends m {
880
907
  constructor() {
@@ -889,7 +916,7 @@ let E = class extends m {
889
916
  detail: n,
890
917
  cancelable: !0
891
918
  });
892
- this.dispatchEvent(t) && (this.currentPage = n, this.pages = ht({
919
+ this.dispatchEvent(t) && (this.currentPage = n, this.pages = ct({
893
920
  itemCount: this.itemCount,
894
921
  pageSize: this.pageSize,
895
922
  siblingCount: this.siblingCount,
@@ -902,7 +929,7 @@ let E = class extends m {
902
929
  };
903
930
  }
904
931
  connectedCallback() {
905
- super.connectedCallback(), this.currentPage = this.initialPage, this.pages = ht({
932
+ super.connectedCallback(), this.currentPage = this.initialPage, this.pages = ct({
906
933
  itemCount: this.itemCount,
907
934
  pageSize: this.pageSize,
908
935
  siblingCount: this.siblingCount,
@@ -910,7 +937,7 @@ let E = class extends m {
910
937
  });
911
938
  }
912
939
  attributeChangedCallback(n, t, e) {
913
- super.attributeChangedCallback(n, t, e), n === "initial-page" && (this.currentPage = this.initialPage), this.pages = ht({
940
+ super.attributeChangedCallback(n, t, e), n === "initial-page" && (this.currentPage = this.initialPage), this.pages = ct({
914
941
  itemCount: this.itemCount,
915
942
  pageSize: this.pageSize,
916
943
  siblingCount: this.siblingCount,
@@ -948,11 +975,11 @@ E.styles = N`
948
975
  display: flex;
949
976
  flex-direction: row;
950
977
  place-items: center;
951
- gap: ${u(y.spacing8)};
978
+ gap: ${d(b.spacing8)};
952
979
  }
953
980
 
954
981
  :host .telia-label {
955
- color: ${u(x.purple700)};
982
+ color: ${d(x.purple700)};
956
983
  }
957
984
 
958
985
  span {
@@ -960,16 +987,16 @@ E.styles = N`
960
987
  }
961
988
  `;
962
989
  H([
963
- b({ type: Number, attribute: "item-count" })
990
+ y({ type: Number, attribute: "item-count" })
964
991
  ], E.prototype, "itemCount", 2);
965
992
  H([
966
- b({ type: Number, attribute: "page-size" })
993
+ y({ type: Number, attribute: "page-size" })
967
994
  ], E.prototype, "pageSize", 2);
968
995
  H([
969
- b({ type: Number, attribute: "initial-page" })
996
+ y({ type: Number, attribute: "initial-page" })
970
997
  ], E.prototype, "initialPage", 2);
971
998
  H([
972
- b({ type: Number, attribute: "sibling-count" })
999
+ y({ type: Number, attribute: "sibling-count" })
973
1000
  ], E.prototype, "siblingCount", 2);
974
1001
  H([
975
1002
  Zt()
@@ -980,44 +1007,44 @@ H([
980
1007
  E = H([
981
1008
  C("alliance-paginator")
982
1009
  ], E);
983
- var me = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, B = (n, t, e, i) => {
984
- for (var s = i > 1 ? void 0 : i ? Ae(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1010
+ var Ae = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, k = (n, t, e, i) => {
1011
+ for (var s = i > 1 ? void 0 : i ? Pe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
985
1012
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
986
- return i && s && me(t, e, s), s;
1013
+ return i && s && Ae(t, e, s), s;
987
1014
  }, Xt = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Xt || {});
988
1015
  let U = class extends m {
989
1016
  constructor() {
990
1017
  super(...arguments), this.selected = !1, this.disabled = !1, this.clickable = !0;
991
1018
  }
992
1019
  renderContent() {
993
- return this.icon === "left" ? _`<telia-icon size="sm" svg="${te.svg}" />` : this.icon === "right" ? _`<telia-icon size="sm" svg="${ee.svg}" />` : _`<span>${this.page}</span>`;
1020
+ return this.icon === "left" ? _`<telia-icon size="sm" svg="${ee.svg}" />` : this.icon === "right" ? _`<telia-icon size="sm" svg="${ie.svg}" />` : _`<span>${this.page}</span>`;
994
1021
  }
995
1022
  render() {
996
1023
  return _`<telia-button ?disabled=${this.disabled} variant=${this.selected ? "primary" : "tertiary-purple"}>${this.renderContent()}</telia-button> `;
997
1024
  }
998
1025
  };
999
- B([
1000
- b({ type: Xt })
1026
+ k([
1027
+ y({ type: Xt })
1001
1028
  ], U.prototype, "icon", 2);
1002
- B([
1003
- b({ type: String })
1029
+ k([
1030
+ y({ type: String })
1004
1031
  ], U.prototype, "page", 2);
1005
- B([
1006
- b({ type: Boolean })
1032
+ k([
1033
+ y({ type: Boolean })
1007
1034
  ], U.prototype, "selected", 2);
1008
- B([
1009
- b({ type: Boolean })
1035
+ k([
1036
+ y({ type: Boolean })
1010
1037
  ], U.prototype, "disabled", 2);
1011
- B([
1012
- b({ type: Boolean })
1038
+ k([
1039
+ y({ type: Boolean })
1013
1040
  ], U.prototype, "clickable", 2);
1014
- U = B([
1041
+ U = k([
1015
1042
  C("alliance-paginator-button")
1016
1043
  ], U);
1017
- var Pe = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, Ce = (n, t, e, i) => {
1018
- for (var s = i > 1 ? void 0 : i ? Ee(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1044
+ var Ee = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, Se = (n, t, e, i) => {
1045
+ for (var s = i > 1 ? void 0 : i ? Ce(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1019
1046
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1020
- return i && s && Pe(t, e, s), s;
1047
+ return i && s && Ee(t, e, s), s;
1021
1048
  };
1022
1049
  let ut = class extends m {
1023
1050
  render() {
@@ -1033,53 +1060,53 @@ ut.styles = N`
1033
1060
  width: 100%;
1034
1061
  }
1035
1062
  `;
1036
- ut = Ce([
1063
+ ut = Se([
1037
1064
  C("alliance-table")
1038
1065
  ], ut);
1039
- var Se = Object.defineProperty, we = Object.getOwnPropertyDescriptor, xe = (n, t, e, i) => {
1040
- for (var s = i > 1 ? void 0 : i ? we(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1066
+ var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Oe = (n, t, e, i) => {
1067
+ for (var s = i > 1 ? void 0 : i ? xe(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1041
1068
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1042
- return i && s && Se(t, e, s), s;
1069
+ return i && s && we(t, e, s), s;
1043
1070
  };
1044
- let pt = class extends m {
1071
+ let $t = class extends m {
1045
1072
  render() {
1046
1073
  return _`<slot></slot>`;
1047
1074
  }
1048
1075
  };
1049
- pt.styles = N`
1076
+ $t.styles = N`
1050
1077
  :host {
1051
1078
  display: table-row-group;
1052
1079
  vertical-align: middle;
1053
1080
  border-color: inherit;
1054
1081
  }
1055
1082
  `;
1056
- pt = xe([
1083
+ $t = Oe([
1057
1084
  C("alliance-tb")
1058
- ], pt);
1059
- var Oe = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, Ue = (n, t, e, i) => {
1060
- for (var s = i > 1 ? void 0 : i ? Te(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1085
+ ], $t);
1086
+ var Te = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Ne = (n, t, e, i) => {
1087
+ for (var s = i > 1 ? void 0 : i ? Ue(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1061
1088
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1062
- return i && s && Oe(t, e, s), s;
1089
+ return i && s && Te(t, e, s), s;
1063
1090
  };
1064
- let $t = class extends m {
1091
+ let vt = class extends m {
1065
1092
  render() {
1066
1093
  return _` <slot></slot> `;
1067
1094
  }
1068
1095
  };
1069
- $t.styles = N`
1096
+ vt.styles = N`
1070
1097
  :host {
1071
1098
  display: table-cell;
1072
1099
  vertical-align: inherit;
1073
- padding: ${u(y.spacing24)};
1100
+ padding: ${d(b.spacing24)};
1074
1101
  }
1075
1102
  `;
1076
- $t = Ue([
1103
+ vt = Ne([
1077
1104
  C("alliance-td")
1078
- ], $t);
1079
- var Ne = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ft = (n, t, e, i) => {
1080
- for (var s = i > 1 ? void 0 : i ? He(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1105
+ ], vt);
1106
+ var He = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Ft = (n, t, e, i) => {
1107
+ for (var s = i > 1 ? void 0 : i ? Re(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1081
1108
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1082
- return i && s && Ne(t, e, s), s;
1109
+ return i && s && He(t, e, s), s;
1083
1110
  };
1084
1111
  let Y = class extends m {
1085
1112
  constructor() {
@@ -1092,19 +1119,19 @@ let Y = class extends m {
1092
1119
  Y.styles = N`
1093
1120
  :host {
1094
1121
  display: table-cell;
1095
- padding: ${u(y.spacing24)};
1122
+ padding: ${d(b.spacing24)};
1096
1123
  }
1097
1124
  `;
1098
1125
  Ft([
1099
- b({ type: String })
1126
+ y({ type: String })
1100
1127
  ], Y.prototype, "label", 2);
1101
1128
  Y = Ft([
1102
1129
  C("alliance-th")
1103
1130
  ], Y);
1104
- var Re = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, Qt = (n, t, e, i) => {
1105
- for (var s = i > 1 ? void 0 : i ? Me(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1131
+ var Me = Object.defineProperty, De = Object.getOwnPropertyDescriptor, Qt = (n, t, e, i) => {
1132
+ for (var s = i > 1 ? void 0 : i ? De(t, e) : t, r = n.length - 1, o; r >= 0; r--)
1106
1133
  (o = n[r]) && (s = (i ? o(t, e, s) : o(s)) || s);
1107
- return i && s && Re(t, e, s), s;
1134
+ return i && s && Me(t, e, s), s;
1108
1135
  };
1109
1136
  let G = class extends m {
1110
1137
  constructor() {
@@ -1112,7 +1139,7 @@ let G = class extends m {
1112
1139
  }
1113
1140
  render() {
1114
1141
  return _`
1115
- ${this.clickable ? De : ""}
1142
+ ${this.clickable ? ze : ""}
1116
1143
  <slot></slot>
1117
1144
  `;
1118
1145
  }
@@ -1120,35 +1147,35 @@ let G = class extends m {
1120
1147
  G.styles = N`
1121
1148
  :host {
1122
1149
  display: table-row;
1123
- border-bottom: ${u(ct.widthXs)} solid ${u(x.gray200)};
1150
+ border-bottom: ${d(dt.widthXs)} solid ${d(x.gray200)};
1124
1151
  }
1125
1152
  `;
1126
1153
  Qt([
1127
- b({ type: Boolean })
1154
+ y({ type: Boolean })
1128
1155
  ], G.prototype, "clickable", 2);
1129
1156
  G = Qt([
1130
1157
  C("alliance-tr")
1131
1158
  ], G);
1132
- const De = _`<style>
1159
+ const ze = _`<style>
1133
1160
  :host {
1134
1161
  background-color: transparent;
1135
- transition: background-color ${u(yt.duration150)} ${u(yt.easeIn)};
1162
+ transition: background-color ${d(yt.duration150)} ${d(yt.easeIn)};
1136
1163
  cursor: pointer;
1137
1164
  }
1138
1165
 
1139
1166
  :host(:hover),
1140
1167
  :host(:focus-visible),
1141
1168
  :host(:focus) {
1142
- background-color: ${u(x.gray200)};
1169
+ background-color: ${d(x.gray200)};
1143
1170
  }
1144
1171
 
1145
1172
  :host(:active) {
1146
- background-color: ${u(x.gray300)};
1173
+ background-color: ${d(x.gray300)};
1147
1174
  }
1148
1175
 
1149
1176
  :host(:focus-visible) {
1150
- outline: solid ${u(mt.focusBorderWidth)} ${u(mt.focusColor)};
1151
- outline-offset: ${u(y.spacing4)};
1177
+ outline: solid ${d(mt.focusBorderWidth)} ${d(mt.focusColor)};
1178
+ outline-offset: ${d(b.spacing4)};
1152
1179
  }
1153
1180
  </style>`;
1154
1181
  //# sourceMappingURL=index.js.map