@warp-ds/elements 2.1.1 → 2.2.0-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.
package/dist/index.js CHANGED
@@ -3989,15 +3989,15 @@ function getClientRects(element) {
3989
3989
  return Array.from(element.getClientRects());
3990
3990
  }
3991
3991
  function getDocumentRect(element) {
3992
- const html30 = getDocumentElement(element);
3992
+ const html29 = getDocumentElement(element);
3993
3993
  const scroll = getNodeScroll(element);
3994
3994
  const body = element.ownerDocument.body;
3995
- const width = max(html30.scrollWidth, html30.clientWidth, body.scrollWidth, body.clientWidth);
3996
- const height = max(html30.scrollHeight, html30.clientHeight, body.scrollHeight, body.clientHeight);
3995
+ const width = max(html29.scrollWidth, html29.clientWidth, body.scrollWidth, body.clientWidth);
3996
+ const height = max(html29.scrollHeight, html29.clientHeight, body.scrollHeight, body.clientHeight);
3997
3997
  let x = -scroll.scrollLeft + getWindowScrollBarX(element);
3998
3998
  const y2 = -scroll.scrollTop;
3999
3999
  if (getComputedStyle(body).direction === "rtl") {
4000
- x += max(html30.clientWidth, body.clientWidth) - width;
4000
+ x += max(html29.clientWidth, body.clientWidth) - width;
4001
4001
  }
4002
4002
  return {
4003
4003
  width,
@@ -4008,10 +4008,10 @@ function getDocumentRect(element) {
4008
4008
  }
4009
4009
  function getViewportRect(element, strategy) {
4010
4010
  const win = getWindow(element);
4011
- const html30 = getDocumentElement(element);
4011
+ const html29 = getDocumentElement(element);
4012
4012
  const visualViewport = win.visualViewport;
4013
- let width = html30.clientWidth;
4014
- let height = html30.clientHeight;
4013
+ let width = html29.clientWidth;
4014
+ let height = html29.clientHeight;
4015
4015
  let x = 0;
4016
4016
  let y2 = 0;
4017
4017
  if (visualViewport) {
@@ -4953,89 +4953,9 @@ if (!customElements.get("w-breadcrumbs")) {
4953
4953
  customElements.define("w-breadcrumbs", WarpBreadcrumbs);
4954
4954
  }
4955
4955
 
4956
- // packages/broadcast/component.js
4956
+ // packages/button/index.js
4957
4957
  import { html as html13 } from "lit";
4958
4958
  import WarpElement7 from "@warp-ds/elements-core";
4959
- import { repeat } from "lit/directives/repeat.js";
4960
-
4961
- // packages/utils/window-exists.js
4962
- var windowExists = typeof window !== "undefined";
4963
-
4964
- // packages/broadcast/component.js
4965
- var WarpBroadcast = class extends WarpElement7 {
4966
- constructor() {
4967
- super();
4968
- this._messages = [];
4969
- this.interval = 3e4;
4970
- this._hiddenMessageIds = [];
4971
- this.url = windowExists ? window.location.href : "";
4972
- }
4973
- async connectedCallback() {
4974
- super.connectedCallback();
4975
- if (!this.api) {
4976
- console.error('Broadcast "api" attribute invalid or undefined');
4977
- return;
4978
- }
4979
- if (windowExists) {
4980
- await this._fetchMessage();
4981
- setInterval(() => this._fetchMessage(), this.interval);
4982
- }
4983
- }
4984
- async _fetchMessage() {
4985
- const url = `${this.api}?path=${this.url}`;
4986
- try {
4987
- const res = await (await fetch(url)).json();
4988
- this._messages = res.length ? res : [];
4989
- } catch (err) {
4990
- console.error(`failed to fetch broadcasts from given url (${url})`, err);
4991
- }
4992
- }
4993
- async _del(id) {
4994
- const el = this.renderRoot.querySelector(`#broadcast-${id}`);
4995
- await el.collapse();
4996
- this._hiddenMessageIds = [.../* @__PURE__ */ new Set([...this._hiddenMessageIds, id])];
4997
- }
4998
- render() {
4999
- const messages79 = this._messages.filter((item) => !this._hiddenMessageIds.includes(item.id));
5000
- return html13`
5001
- <aside class=${`${messages79.length === 0 ? "hidden" : "mb-16"}`}>
5002
- ${repeat(
5003
- messages79,
5004
- ({ id }) => `broadcast-${id}`,
5005
- ({ id, message }) => html13`<w-toast id="broadcast-${id}" type="warning" text="${message}" canclose @close=${() => this._del(id)}> </w-toast>`
5006
- )}
5007
- </aside>
5008
- `;
5009
- }
5010
- };
5011
- __publicField(WarpBroadcast, "properties", {
5012
- _messages: {
5013
- state: true,
5014
- hasChanged(newVal, oldVal) {
5015
- if (!oldVal || oldVal.length === 0) return true;
5016
- const newIds = newVal.map(({ id }) => id).sort();
5017
- const oldIds = oldVal.map(({ id }) => id).sort();
5018
- return JSON.stringify(newIds) !== JSON.stringify(oldIds);
5019
- }
5020
- },
5021
- _hiddenMessageIds: {
5022
- state: true,
5023
- type: Array
5024
- },
5025
- interval: { type: Number, attribute: true, reflect: true },
5026
- url: { type: String, attribute: true, reflect: true },
5027
- api: { type: String, attribute: true, reflect: true }
5028
- });
5029
- __publicField(WarpBroadcast, "styles", [WarpElement7.styles]);
5030
-
5031
- // packages/broadcast/index.js
5032
- if (!customElements.get("w-broadcast")) {
5033
- customElements.define("w-broadcast", WarpBroadcast);
5034
- }
5035
-
5036
- // packages/button/index.js
5037
- import { html as html14 } from "lit";
5038
- import WarpElement8 from "@warp-ds/elements-core";
5039
4959
 
5040
4960
  // packages/button/locales/da/messages.mjs
5041
4961
  var messages21 = JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');
@@ -5054,7 +4974,7 @@ var messages30 = JSON.parse('{"button.aria.loading":["Laddar ..."]}');
5054
4974
 
5055
4975
  // packages/button/index.js
5056
4976
  var buttonTypes2 = ["primary", "secondary", "negative", "utility", "pill", "link"];
5057
- var WarpButton = class extends kebabCaseAttributes(WarpElement8) {
4977
+ var WarpButton = class extends kebabCaseAttributes(WarpElement7) {
5058
4978
  constructor() {
5059
4979
  super();
5060
4980
  activateI18n7(messages27, messages29, messages28, messages21, messages30);
@@ -5139,19 +5059,19 @@ ${buttonTypes2.join(", ")}.`);
5139
5059
  ]);
5140
5060
  }
5141
5061
  render() {
5142
- return html14` ${this.href ? html14`<a
5062
+ return html13` ${this.href ? html13`<a
5143
5063
  href=${this.href}
5144
5064
  target=${this.target}
5145
5065
  rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
5146
5066
  class=${this._classes}>
5147
5067
  <slot></slot>
5148
- </a>` : html14`<button type=${this.type || "button"} class=${this._classes}>
5068
+ </a>` : html13`<button type=${this.type || "button"} class=${this._classes}>
5149
5069
  <slot></slot>
5150
5070
  </button>`}
5151
- ${this.loading ? html14`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>` : null}`;
5071
+ ${this.loading ? html13`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>` : null}`;
5152
5072
  }
5153
5073
  };
5154
- __publicField(WarpButton, "shadowRootOptions", __spreadProps(__spreadValues({}, WarpElement8.shadowRootOptions), {
5074
+ __publicField(WarpButton, "shadowRootOptions", __spreadProps(__spreadValues({}, WarpElement7.shadowRootOptions), {
5155
5075
  delegatesFocus: true
5156
5076
  }));
5157
5077
  __publicField(WarpButton, "properties", {
@@ -5167,14 +5087,14 @@ __publicField(WarpButton, "properties", {
5167
5087
  fullWidth: { type: Boolean, reflect: true },
5168
5088
  buttonClass: { type: String, reflect: true }
5169
5089
  });
5170
- __publicField(WarpButton, "styles", [WarpElement8.styles]);
5090
+ __publicField(WarpButton, "styles", [WarpElement7.styles]);
5171
5091
  if (!customElements.get("w-button")) {
5172
5092
  customElements.define("w-button", WarpButton);
5173
5093
  }
5174
5094
 
5175
5095
  // packages/card/index.js
5176
- import { html as html15, css as css4 } from "lit";
5177
- import WarpElement9 from "@warp-ds/elements-core";
5096
+ import { html as html14, css as css4 } from "lit";
5097
+ import WarpElement8 from "@warp-ds/elements-core";
5178
5098
  import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
5179
5099
 
5180
5100
  // packages/card/locales/da/messages.mjs
@@ -5197,7 +5117,7 @@ var keys = {
5197
5117
  ENTER: "Enter",
5198
5118
  SPACE: " "
5199
5119
  };
5200
- var WarpCard = class extends WarpElement9 {
5120
+ var WarpCard = class extends WarpElement8 {
5201
5121
  constructor() {
5202
5122
  super();
5203
5123
  activateI18n7(messages37, messages39, messages38, messages31, messages40);
@@ -5222,8 +5142,8 @@ var WarpCard = class extends WarpElement9 {
5222
5142
  return r([card.outline, this.selected ? card.outlineSelected : card.outlineUnselected]);
5223
5143
  }
5224
5144
  get _interactiveElement() {
5225
- const renderButton = () => html15`<button class="${card.a11y}" aria-pressed="${this.selected}" tabindex="-1">${this.buttonText}</button>`;
5226
- const renderSpan = () => html15`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
5145
+ const renderButton = () => html14`<button class="${card.a11y}" aria-pressed="${this.selected}" tabindex="-1">${this.buttonText}</button>`;
5146
+ const renderSpan = () => html14`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
5227
5147
  return this.clickable ? renderButton() : this.selected ? renderSpan() : "";
5228
5148
  }
5229
5149
  keypressed(e) {
@@ -5234,9 +5154,9 @@ var WarpCard = class extends WarpElement9 {
5234
5154
  }
5235
5155
  }
5236
5156
  render() {
5237
- return html15`
5157
+ return html14`
5238
5158
  <div tabindex=${ifDefined3(this.clickable ? "0" : void 0)} class="${this._containerClasses}" @keydown=${this.keypressed}>
5239
- ${this._interactiveElement} ${this.flat ? "" : html15`<div class="${this._outlineClasses}"></div>`}
5159
+ ${this._interactiveElement} ${this.flat ? "" : html14`<div class="${this._outlineClasses}"></div>`}
5240
5160
  <slot></slot>
5241
5161
  </div>
5242
5162
  `;
@@ -5248,7 +5168,7 @@ __publicField(WarpCard, "properties", {
5248
5168
  clickable: { type: Boolean }
5249
5169
  });
5250
5170
  __publicField(WarpCard, "styles", [
5251
- WarpElement9.styles,
5171
+ WarpElement8.styles,
5252
5172
  css4`
5253
5173
  a::after {
5254
5174
  content: '';
@@ -5268,13 +5188,13 @@ if (!customElements.get("w-card")) {
5268
5188
  }
5269
5189
 
5270
5190
  // packages/expandable/index.js
5271
- import { css as css5, html as html18 } from "lit";
5272
- import WarpElement10 from "@warp-ds/elements-core";
5191
+ import { css as css5, html as html17 } from "lit";
5192
+ import WarpElement9 from "@warp-ds/elements-core";
5273
5193
  import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
5274
5194
 
5275
5195
  // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
5276
5196
  import { LitElement as LitElement7 } from "lit";
5277
- import { unsafeStatic as unsafeStatic7, html as html16 } from "lit/static-html.js";
5197
+ import { unsafeStatic as unsafeStatic7, html as html15 } from "lit/static-html.js";
5278
5198
  var messages41 = JSON.parse('{"icon.title.chevron-down":["Nedoverpil"]}');
5279
5199
  var messages210 = JSON.parse('{"icon.title.chevron-down":["Downward arrow"]}');
5280
5200
  var messages310 = JSON.parse('{"icon.title.chevron-down":["Nuoli alasp\xE4in"]}');
@@ -5359,7 +5279,7 @@ activateI18n8(messages210, messages41, messages310, messages47, messages57);
5359
5279
  var IconChevronDown16 = class extends LitElement7 {
5360
5280
  render() {
5361
5281
  const title = i18n.t({ message: `Downward arrow`, id: "icon.title.chevron-down", comment: "Title for chevron-down icon" });
5362
- return html16`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-chevron-down-16-part">${unsafeStatic7(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m2.667 5.333 5.5 5.5 5.5-5.5"></path></svg>`;
5282
+ return html15`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-chevron-down-16-part">${unsafeStatic7(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m2.667 5.333 5.5 5.5 5.5-5.5"></path></svg>`;
5363
5283
  }
5364
5284
  };
5365
5285
  if (!customElements.get("w-icon-chevron-down-16")) {
@@ -5368,7 +5288,7 @@ if (!customElements.get("w-icon-chevron-down-16")) {
5368
5288
 
5369
5289
  // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
5370
5290
  import { LitElement as LitElement8 } from "lit";
5371
- import { unsafeStatic as unsafeStatic8, html as html17 } from "lit/static-html.js";
5291
+ import { unsafeStatic as unsafeStatic8, html as html16 } from "lit/static-html.js";
5372
5292
  var messages48 = JSON.parse('{"icon.title.chevron-up":["Oppoverpil"]}');
5373
5293
  var messages211 = JSON.parse('{"icon.title.chevron-up":["Upward arrow"]}');
5374
5294
  var messages311 = JSON.parse('{"icon.title.chevron-up":["Nuoli yl\xF6sp\xE4in"]}');
@@ -5453,7 +5373,7 @@ activateI18n9(messages211, messages48, messages311, messages49, messages58);
5453
5373
  var IconChevronUp16 = class extends LitElement8 {
5454
5374
  render() {
5455
5375
  const title = i18n.t({ message: `Upward arrow`, id: "icon.title.chevron-up", comment: "Title for chevron-up icon" });
5456
- return html17`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-chevron-up-16-part">${unsafeStatic8(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 11 8 5.5l5.5 5.5"></path></svg>`;
5376
+ return html16`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-chevron-up-16-part">${unsafeStatic8(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 11 8 5.5l5.5 5.5"></path></svg>`;
5457
5377
  }
5458
5378
  };
5459
5379
  if (!customElements.get("w-icon-chevron-up-16")) {
@@ -5462,7 +5382,7 @@ if (!customElements.get("w-icon-chevron-up-16")) {
5462
5382
 
5463
5383
  // packages/expandable/index.js
5464
5384
  var _WarpExpandable_instances, wrapperClasses_get, buttonClasses_get, chevronClasses_get, chevronIcon_get, contentClasses_get, expansionClasses_get;
5465
- var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
5385
+ var WarpExpandable = class extends kebabCaseAttributes(WarpElement9) {
5466
5386
  constructor() {
5467
5387
  super();
5468
5388
  __privateAdd(this, _WarpExpandable_instances);
@@ -5485,25 +5405,25 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
5485
5405
  this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
5486
5406
  }
5487
5407
  get _expandableSlot() {
5488
- return html18`<div class="${__privateGet(this, _WarpExpandable_instances, contentClasses_get)}">
5408
+ return html17`<div class="${__privateGet(this, _WarpExpandable_instances, contentClasses_get)}">
5489
5409
  <slot></slot>
5490
5410
  </div>`;
5491
5411
  }
5492
5412
  render() {
5493
- return html18` <div class="${__privateGet(this, _WarpExpandable_instances, wrapperClasses_get)}">
5494
- ${this._hasTitle ? html18`<w-unstyled-heading level=${this.headingLevel}>
5413
+ return html17` <div class="${__privateGet(this, _WarpExpandable_instances, wrapperClasses_get)}">
5414
+ ${this._hasTitle ? html17`<w-unstyled-heading level=${this.headingLevel}>
5495
5415
  <button
5496
5416
  type="button"
5497
5417
  aria-expanded="${this.expanded}"
5498
5418
  class="${__privateGet(this, _WarpExpandable_instances, buttonClasses_get)}"
5499
5419
  @click=${() => this.expanded = !this.expanded}>
5500
5420
  <div class="${expandable.title}">
5501
- ${this.title ? html18`<span class="${expandable.titleType}">${this.title}</span>` : html18`<slot name="title"></slot>`}
5502
- ${this.noChevron ? "" : html18`<div class="${__privateGet(this, _WarpExpandable_instances, chevronClasses_get)}">${__privateGet(this, _WarpExpandable_instances, chevronIcon_get)}</div>`}
5421
+ ${this.title ? html17`<span class="${expandable.titleType}">${this.title}</span>` : html17`<slot name="title"></slot>`}
5422
+ ${this.noChevron ? "" : html17`<div class="${__privateGet(this, _WarpExpandable_instances, chevronClasses_get)}">${__privateGet(this, _WarpExpandable_instances, chevronIcon_get)}</div>`}
5503
5423
  </div>
5504
5424
  </button>
5505
5425
  </w-unstyled-heading>` : ""}
5506
- ${this.animated ? html18`<w-expand-transition ?show=${this.expanded}> ${this._expandableSlot} </w-expand-transition>` : html18`<div class="${__privateGet(this, _WarpExpandable_instances, expansionClasses_get)}" aria-hidden=${ifDefined4(!this.expanded ? true : void 0)}>
5426
+ ${this.animated ? html17`<w-expand-transition ?show=${this.expanded}> ${this._expandableSlot} </w-expand-transition>` : html17`<div class="${__privateGet(this, _WarpExpandable_instances, expansionClasses_get)}" aria-hidden=${ifDefined4(!this.expanded ? true : void 0)}>
5507
5427
  ${this._expandableSlot}
5508
5428
  </div>`}
5509
5429
  </div>`;
@@ -5528,7 +5448,7 @@ chevronIcon_get = function() {
5528
5448
  expandable.elementsChevronDownTransform,
5529
5449
  this.expanded && !this._showChevronUp && expandable.elementsChevronExpand
5530
5450
  ]);
5531
- return this._showChevronUp ? html18`<w-icon-chevron-up-16 class="${upClasses}"></w-icon-chevron-up-16>` : html18`<w-icon-chevron-down-16 class="${downClasses}"></w-icon-chevron-down-16>`;
5451
+ return this._showChevronUp ? html17`<w-icon-chevron-up-16 class="${upClasses}"></w-icon-chevron-up-16>` : html17`<w-icon-chevron-down-16 class="${downClasses}"></w-icon-chevron-down-16>`;
5532
5452
  };
5533
5453
  contentClasses_get = function() {
5534
5454
  return r(this.contentClass, [this.box && box.base, this._hasTitle && this.box && expandable.contentWithTitle]);
@@ -5554,7 +5474,7 @@ __publicField(WarpExpandable, "properties", {
5554
5474
  // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
5555
5475
  // https://stackoverflow.com/a/61631668
5556
5476
  __publicField(WarpExpandable, "styles", [
5557
- WarpElement10.styles,
5477
+ WarpElement9.styles,
5558
5478
  css5`
5559
5479
  :host {
5560
5480
  display: block;
@@ -5569,8 +5489,8 @@ if (!customElements.get("w-expandable")) {
5569
5489
  }
5570
5490
 
5571
5491
  // packages/modal/modal-footer.js
5572
- import { html as html19 } from "lit";
5573
- import WarpElement11 from "@warp-ds/elements-core";
5492
+ import { html as html18 } from "lit";
5493
+ import WarpElement10 from "@warp-ds/elements-core";
5574
5494
 
5575
5495
  // packages/modal/util.js
5576
5496
  var CanCloseMixin = (superClass) => class extends superClass {
@@ -5595,19 +5515,19 @@ var ProvidesCanCloseToSlotsMixin = (superClass) => class extends superClass {
5595
5515
  };
5596
5516
 
5597
5517
  // packages/modal/modal-footer.js
5598
- var ModalFooter = class extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(WarpElement11)) {
5518
+ var ModalFooter = class extends CanCloseMixin(ProvidesCanCloseToSlotsMixin(WarpElement10)) {
5599
5519
  render() {
5600
- return html19`
5520
+ return html18`
5601
5521
  <div class="${modalElement.footer}">
5602
5522
  <slot @slotchange="${this.handleSlotChange}"></slot>
5603
5523
  </div>
5604
5524
  `;
5605
5525
  }
5606
5526
  };
5607
- __publicField(ModalFooter, "styles", [WarpElement11.styles]);
5527
+ __publicField(ModalFooter, "styles", [WarpElement10.styles]);
5608
5528
 
5609
5529
  // packages/modal/modal-header.js
5610
- import { html as html21, nothing as nothing3 } from "lit";
5530
+ import { html as html20, nothing as nothing3 } from "lit";
5611
5531
 
5612
5532
  // node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/utility.js
5613
5533
  var computeDeltas = (first, last) => ({
@@ -5626,8 +5546,8 @@ var animationDefaults = { easing: "ease", duration: 300 };
5626
5546
 
5627
5547
  // node_modules/.pnpm/@itsy+animate@0.0.9/node_modules/@itsy/animate/src/reduce-motion.js
5628
5548
  var reduceMotion = false;
5629
- var windowExists2 = typeof window !== "undefined";
5630
- if (windowExists2) {
5549
+ var windowExists = typeof window !== "undefined";
5550
+ if (windowExists) {
5631
5551
  const query = window.matchMedia("(prefers-reduced-motion: reduce)");
5632
5552
  const callback = ({ matches }) => reduceMotion = matches;
5633
5553
  if (query.addEventListener) query.addEventListener("change", callback);
@@ -5683,7 +5603,7 @@ var Move = class {
5683
5603
 
5684
5604
  // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/arrow-left-16.js
5685
5605
  import { LitElement as LitElement9 } from "lit";
5686
- import { unsafeStatic as unsafeStatic9, html as html20 } from "lit/static-html.js";
5606
+ import { unsafeStatic as unsafeStatic9, html as html19 } from "lit/static-html.js";
5687
5607
  var messages50 = JSON.parse('{"icon.title.arrow-left":["Pil som peker mot venstre"]}');
5688
5608
  var messages212 = JSON.parse('{"icon.title.arrow-left":["Leftward-pointing arrow"]}');
5689
5609
  var messages312 = JSON.parse('{"icon.title.arrow-left":["Vasemmalle osoittava nuoli"]}');
@@ -5768,7 +5688,7 @@ activateI18n10(messages212, messages50, messages312, messages410, messages59);
5768
5688
  var IconArrowLeft16 = class extends LitElement9 {
5769
5689
  render() {
5770
5690
  const title = i18n.t({ message: `Leftward-pointing arrow`, id: "icon.title.arrow-left", comment: "Title for table arrow left icon" });
5771
- return html20`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-arrow-left-16-part">${unsafeStatic9(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M5.222 8h6.667"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.444 11.75 4.111 8l3.333-3.75"></path></svg>`;
5691
+ return html19`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-arrow-left-16-part">${unsafeStatic9(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M5.222 8h6.667"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.444 11.75 4.111 8l3.333-3.75"></path></svg>`;
5772
5692
  }
5773
5693
  };
5774
5694
  if (!customElements.get("w-icon-arrow-left-16")) {
@@ -5776,8 +5696,7 @@ if (!customElements.get("w-icon-arrow-left-16")) {
5776
5696
  }
5777
5697
 
5778
5698
  // packages/modal/modal-header.js
5779
- import WarpElement12 from "@warp-ds/elements-core";
5780
- import { createRef, ref } from "lit/directives/ref.js";
5699
+ import WarpElement11 from "@warp-ds/elements-core";
5781
5700
 
5782
5701
  // packages/modal/locales/da/messages.mjs
5783
5702
  var messages51 = JSON.parse('{"modal.aria.back":["Tilbage"],"modal.aria.close":["Luk"]}');
@@ -5796,28 +5715,30 @@ var messages63 = JSON.parse('{"modal.aria.back":["Tillbaka"],"modal.aria.close":
5796
5715
 
5797
5716
  // packages/modal/modal-header.js
5798
5717
  var NO_CLOSE_BUTTON = "no-close";
5799
- var ModalHeader = class extends CanCloseMixin(WarpElement12) {
5718
+ var ModalHeader = class extends CanCloseMixin(WarpElement11) {
5800
5719
  constructor() {
5801
5720
  super();
5802
- __publicField(this, "titleEl", createRef());
5803
5721
  activateI18n7(messages60, messages62, messages61, messages51, messages63);
5804
5722
  this._hasTopContent = false;
5805
5723
  }
5806
5724
  render() {
5807
- return html21`
5725
+ return html20`
5808
5726
  <div class="${modalElement.header}">
5809
5727
  <slot name="top" @slotchange=${this.handleTopSlotChange}></slot>
5810
5728
  <div class="${this._hasTopContent ? "" : modalElement.headerTitleBar}">
5811
5729
  ${this.backButton}
5812
- <h1 ${ref(this.titleEl)} class="${this.titleClasses}">${this.title}</h1>
5730
+ <h1 class="title-el ${this.titleClasses}">${this.title}</h1>
5813
5731
  ${this.closeButton}
5814
5732
  </div>
5815
5733
  </div>
5816
5734
  `;
5817
5735
  }
5736
+ get titleEl() {
5737
+ return this.shadowRoot.querySelector(".title-el");
5738
+ }
5818
5739
  async willUpdate(changedProperties) {
5819
5740
  if (changedProperties.has("back")) {
5820
- const move = new Move(this.titleEl.value);
5741
+ const move = new Move(this.titleEl);
5821
5742
  move.when(async () => {
5822
5743
  await this.updateComplete;
5823
5744
  });
@@ -5831,7 +5752,7 @@ var ModalHeader = class extends CanCloseMixin(WarpElement12) {
5831
5752
  ].join(" ");
5832
5753
  }
5833
5754
  get backButton() {
5834
- return this.back && !this._hasTopContent ? html21`<button
5755
+ return this.back && !this._hasTopContent ? html20`<button
5835
5756
  type="button"
5836
5757
  aria-label="${i18n._({
5837
5758
  id: "modal.aria.back",
@@ -5845,7 +5766,7 @@ var ModalHeader = class extends CanCloseMixin(WarpElement12) {
5845
5766
  }
5846
5767
  get closeButton() {
5847
5768
  if (this[NO_CLOSE_BUTTON]) return nothing3;
5848
- return html21`<button
5769
+ return html20`<button
5849
5770
  type="button"
5850
5771
  aria-label="${i18n._({
5851
5772
  id: "modal.aria.close",
@@ -5871,12 +5792,11 @@ __publicField(ModalHeader, "properties", {
5871
5792
  [NO_CLOSE_BUTTON]: { type: Boolean },
5872
5793
  _hasTopContent: { state: true }
5873
5794
  });
5874
- __publicField(ModalHeader, "styles", [WarpElement12.styles]);
5795
+ __publicField(ModalHeader, "styles", [WarpElement11.styles]);
5875
5796
 
5876
5797
  // packages/modal/modal-main.js
5877
- import { css as css6, html as html22 } from "lit";
5878
- import WarpElement13 from "@warp-ds/elements-core";
5879
- import { createRef as createRef2, ref as ref2 } from "lit/directives/ref.js";
5798
+ import { css as css6, html as html21 } from "lit";
5799
+ import WarpElement12 from "@warp-ds/elements-core";
5880
5800
 
5881
5801
  // node_modules/.pnpm/scroll-doctor@2.0.2/node_modules/scroll-doctor/dist/scroll-doctor.js
5882
5802
  var n = [];
@@ -5939,32 +5859,29 @@ function T() {
5939
5859
  // packages/modal/modal-main.js
5940
5860
  var NO_BACKDROP_CLICKS = "ignore-backdrop-clicks";
5941
5861
  var CONTENT_ID = "content-id";
5942
- var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement13) {
5862
+ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement12) {
5943
5863
  constructor() {
5944
5864
  super();
5945
- __publicField(this, "dialogEl", createRef2());
5946
- __publicField(this, "dialogInnerEl", createRef2());
5947
- __publicField(this, "contentEl", createRef2());
5948
5865
  this.interceptEscape = this.interceptEscape.bind(this);
5949
5866
  this.closeOnBackdropClick = this.closeOnBackdropClick.bind(this);
5950
5867
  this.eventPreventer = this.eventPreventer.bind(this);
5951
5868
  this.modifyBorderRadius = this.modifyBorderRadius.bind(this);
5952
5869
  }
5953
5870
  async open() {
5954
- this.dialogEl.value.showModal();
5871
+ this.dialogEl.showModal();
5955
5872
  this.handleListeners();
5956
- E(this.contentEl.value);
5873
+ E(this.contentEl);
5957
5874
  await this.updateComplete;
5958
5875
  this.dispatchEvent(new CustomEvent("shown", { bubbles: true, composed: true }));
5959
5876
  }
5960
5877
  close() {
5961
5878
  this.handleListeners("removeEventListener");
5962
- this.dialogEl.value.classList.add("close");
5963
- this.dialogEl.value.addEventListener(
5879
+ this.dialogEl.classList.add("close");
5880
+ this.dialogEl.addEventListener(
5964
5881
  "animationend",
5965
5882
  async () => {
5966
- this.dialogEl.value.classList.remove("close");
5967
- this.dialogEl.value.close();
5883
+ this.dialogEl.classList.remove("close");
5884
+ this.dialogEl.close();
5968
5885
  T();
5969
5886
  await this.updateComplete;
5970
5887
  this.dispatchEvent(new CustomEvent("hidden", { bubbles: true, composed: true }));
@@ -5973,11 +5890,11 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement13) {
5973
5890
  );
5974
5891
  }
5975
5892
  render() {
5976
- return html22`
5977
- <dialog ${ref2(this.dialogEl)} class="w-modal ${modalElement.dialogEl}">
5978
- <div ${ref2(this.dialogInnerEl)} class="${modalElement.dialogInner}">
5893
+ return html21`
5894
+ <dialog class="dialog-el w-modal ${modalElement.dialogEl}">
5895
+ <div class="dialog-inner-el ${modalElement.dialogInner}">
5979
5896
  <slot name="header" @slotchange="${this.handleSlotChange}"></slot>
5980
- <div ${ref2(this.contentEl)} class="${modalElement.contentSlot}" id=${this[CONTENT_ID]}>
5897
+ <div class="content-el ${modalElement.contentSlot}" id=${this[CONTENT_ID]}>
5981
5898
  <slot name="content" @slotchange="${this.handleSlotChange}"></slot>
5982
5899
  </div>
5983
5900
  <slot name="footer" @slotchange="${this.handleSlotChange}"></slot>
@@ -5985,15 +5902,24 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement13) {
5985
5902
  </dialog>
5986
5903
  `;
5987
5904
  }
5988
- willUpdate(changedProperties) {
5905
+ get dialogEl() {
5906
+ return this.shadowRoot.querySelector(".dialog-el");
5907
+ }
5908
+ get dialogInnerEl() {
5909
+ return this.shadowRoot.querySelector(".dialog-inner-el");
5910
+ }
5911
+ get contentEl() {
5912
+ return this.shadowRoot.querySelector(".content-el");
5913
+ }
5914
+ updated(changedProperties) {
5989
5915
  if (changedProperties.has("show")) this[this.show ? "open" : "close"]();
5990
5916
  }
5991
5917
  handleListeners(verb = "addEventListener") {
5992
5918
  document[verb]("keydown", this.interceptEscape);
5993
- if (!this[NO_BACKDROP_CLICKS]) this.dialogEl.value[verb]("mousedown", this.closeOnBackdropClick);
5994
- this.dialogEl.value[verb]("close", this.eventPreventer);
5995
- this.dialogEl.value[verb]("cancel", this.eventPreventer);
5996
- this.dialogInnerEl.value[verb]("transitionend", this.modifyBorderRadius);
5919
+ if (!this[NO_BACKDROP_CLICKS]) this.dialogEl[verb]("mousedown", this.closeOnBackdropClick);
5920
+ this.dialogEl[verb]("close", this.eventPreventer);
5921
+ this.dialogEl[verb]("cancel", this.eventPreventer);
5922
+ this.dialogInnerEl[verb]("transitionend", this.modifyBorderRadius);
5997
5923
  }
5998
5924
  /** @param {Event} evt */
5999
5925
  eventPreventer(evt) {
@@ -6001,7 +5927,7 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement13) {
6001
5927
  }
6002
5928
  /** @param {MouseEvent} evt */
6003
5929
  closeOnBackdropClick(evt) {
6004
- if (this.dialogEl.value === evt.target) this.close();
5930
+ if (this.dialogEl === evt.target) this.close();
6005
5931
  }
6006
5932
  /** @param {KeyboardEvent} evt */
6007
5933
  interceptEscape(evt) {
@@ -6011,8 +5937,8 @@ var ModalMain = class extends ProvidesCanCloseToSlotsMixin(WarpElement13) {
6011
5937
  }
6012
5938
  }
6013
5939
  modifyBorderRadius() {
6014
- if (this.dialogInnerEl.value.scrollHeight * 1.02 > innerHeight) this.dialogInnerEl.value.style.borderRadius = "0px";
6015
- else this.dialogInnerEl.value.style.borderRadius = null;
5940
+ if (this.dialogInnerEl.scrollHeight * 1.02 > innerHeight) this.dialogInnerEl.style.borderRadius = "0px";
5941
+ else this.dialogInnerEl.style.borderRadius = null;
6016
5942
  }
6017
5943
  };
6018
5944
  __publicField(ModalMain, "properties", {
@@ -6021,7 +5947,7 @@ __publicField(ModalMain, "properties", {
6021
5947
  [NO_BACKDROP_CLICKS]: { type: Boolean }
6022
5948
  });
6023
5949
  __publicField(ModalMain, "styles", [
6024
- WarpElement13.styles,
5950
+ WarpElement12.styles,
6025
5951
  css6`
6026
5952
  .w-modal {
6027
5953
  --w-modal-translate-distance: 100%;
@@ -6091,8 +6017,8 @@ if (!customElements.get("w-modal")) {
6091
6017
  }
6092
6018
 
6093
6019
  // packages/pill/index.js
6094
- import { html as html23 } from "lit";
6095
- import WarpElement14 from "@warp-ds/elements-core";
6020
+ import { html as html22 } from "lit";
6021
+ import WarpElement13 from "@warp-ds/elements-core";
6096
6022
 
6097
6023
  // packages/pill/locales/da/messages.mjs
6098
6024
  var messages64 = JSON.parse('{"pill.aria.openFilter":["\xC5bn filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}');
@@ -6110,7 +6036,7 @@ var messages67 = JSON.parse('{"pill.aria.openFilter":["\xC5pne filter"],"pill.ar
6110
6036
  var messages68 = JSON.parse('{"pill.aria.openFilter":["\xD6ppna filter"],"pill.aria.removeFilter":["Ta bort filtret ",["label"]]}');
6111
6037
 
6112
6038
  // packages/pill/index.js
6113
- var WarpPill = class extends kebabCaseAttributes(WarpElement14) {
6039
+ var WarpPill = class extends kebabCaseAttributes(WarpElement13) {
6114
6040
  constructor() {
6115
6041
  super();
6116
6042
  activateI18n7(messages65, messages67, messages66, messages64, messages68);
@@ -6145,13 +6071,13 @@ var WarpPill = class extends kebabCaseAttributes(WarpElement14) {
6145
6071
  this.dispatchEvent(new CustomEvent("w-pill-close", { bubbles: true, composed: true }));
6146
6072
  }
6147
6073
  render() {
6148
- return html23`
6074
+ return html22`
6149
6075
  <div class="${pill.wrapper}">
6150
6076
  <button type="button" class="${this._labelClasses}" @click="${this._onClick}">
6151
6077
  <span class="${pill.a11y}">${this.openSrLabel ? this.openSrLabel : this.openFilterSrText}</span>
6152
6078
  <slot></slot>
6153
6079
  </button>
6154
- ${this.canClose ? html23`<button type="button" class="${this._closeClasses}" @click="${this._onClose}">
6080
+ ${this.canClose ? html22`<button type="button" class="${this._closeClasses}" @click="${this._onClose}">
6155
6081
  <span class="${pill.a11y}">${this.closeSrLabel ? this.closeSrLabel : this.removeFilterSrText}</span>
6156
6082
  <w-icon-close-16></w-icon-close-16>
6157
6083
  </button>` : null}
@@ -6159,7 +6085,7 @@ var WarpPill = class extends kebabCaseAttributes(WarpElement14) {
6159
6085
  `;
6160
6086
  }
6161
6087
  };
6162
- __publicField(WarpPill, "styles", [WarpElement14.styles]);
6088
+ __publicField(WarpPill, "styles", [WarpElement13.styles]);
6163
6089
  __publicField(WarpPill, "properties", {
6164
6090
  canClose: { type: Boolean },
6165
6091
  suggestion: { type: Boolean },
@@ -6171,8 +6097,8 @@ if (!customElements.get("w-pill")) {
6171
6097
  }
6172
6098
 
6173
6099
  // packages/select/index.js
6174
- import { html as html24 } from "lit";
6175
- import WarpElement15 from "@warp-ds/elements-core";
6100
+ import { html as html23 } from "lit";
6101
+ import WarpElement14 from "@warp-ds/elements-core";
6176
6102
  import { ifDefined as ifDefined5 } from "lit/directives/if-defined.js";
6177
6103
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
6178
6104
  import { when } from "lit/directives/when.js";
@@ -6194,7 +6120,7 @@ var messages73 = JSON.parse('{"select.label.optional":["(valfritt)"]}');
6194
6120
 
6195
6121
  // packages/select/index.js
6196
6122
  var _WarpSelect_instances, classes_get, helpTextClasses_get, chevronClasses_get2, id_get, helpId_get;
6197
- var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
6123
+ var WarpSelect = class extends kebabCaseAttributes(WarpElement14) {
6198
6124
  constructor() {
6199
6125
  super();
6200
6126
  __privateAdd(this, _WarpSelect_instances);
@@ -6215,14 +6141,14 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
6215
6141
  this.dispatchEvent(event);
6216
6142
  }
6217
6143
  render() {
6218
- return html24`<div class="${select.wrapper}">
6144
+ return html23`<div class="${select.wrapper}">
6219
6145
  ${when(
6220
6146
  this.label,
6221
- () => html24`<label class="${label.base}" for="${__privateGet(this, _WarpSelect_instances, id_get)}">
6147
+ () => html23`<label class="${label.base}" for="${__privateGet(this, _WarpSelect_instances, id_get)}">
6222
6148
  ${this.label}
6223
6149
  ${when(
6224
6150
  this.optional,
6225
- () => html24`<span class="${label.optional}"
6151
+ () => html23`<span class="${label.optional}"
6226
6152
  >${i18n._({
6227
6153
  id: "select.label.optional",
6228
6154
  message: "(optional)",
@@ -6248,7 +6174,7 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
6248
6174
  <w-icon-chevron-down-16></w-icon-chevron-down-16>
6249
6175
  </div>
6250
6176
  </div>
6251
- ${when(this.always || this.invalid, () => html24`<div id="${__privateGet(this, _WarpSelect_instances, helpId_get)}" class="${__privateGet(this, _WarpSelect_instances, helpTextClasses_get)}">${this.hint}</div>`)}
6177
+ ${when(this.always || this.invalid, () => html23`<div id="${__privateGet(this, _WarpSelect_instances, helpId_get)}" class="${__privateGet(this, _WarpSelect_instances, helpTextClasses_get)}">${this.hint}</div>`)}
6252
6178
  </div>`;
6253
6179
  }
6254
6180
  };
@@ -6293,16 +6219,16 @@ __publicField(WarpSelect, "properties", {
6293
6219
  readOnly: { type: Boolean, relfect: true },
6294
6220
  _options: { state: true }
6295
6221
  });
6296
- __publicField(WarpSelect, "styles", [WarpElement15.styles]);
6222
+ __publicField(WarpSelect, "styles", [WarpElement14.styles]);
6297
6223
  if (!customElements.get("w-select")) {
6298
6224
  customElements.define("w-select", WarpSelect);
6299
6225
  }
6300
6226
 
6301
6227
  // packages/textfield/index.js
6302
- import { css as css7, html as html25 } from "lit";
6303
- import WarpElement16 from "@warp-ds/elements-core";
6228
+ import { css as css7, html as html24 } from "lit";
6229
+ import WarpElement15 from "@warp-ds/elements-core";
6304
6230
  import { ifDefined as ifDefined6 } from "lit/directives/if-defined.js";
6305
- var WarpTextField = class extends kebabCaseAttributes(WarpElement16) {
6231
+ var WarpTextField = class extends kebabCaseAttributes(WarpElement15) {
6306
6232
  constructor() {
6307
6233
  super();
6308
6234
  this.type = "text";
@@ -6323,7 +6249,7 @@ var WarpTextField = class extends kebabCaseAttributes(WarpElement16) {
6323
6249
  }
6324
6250
  get _label() {
6325
6251
  if (this.label) {
6326
- return html25`<label for="${this._id}" class=${label.base}>${this.label}</label>`;
6252
+ return html24`<label for="${this._id}" class=${label.base}>${this.label}</label>`;
6327
6253
  }
6328
6254
  }
6329
6255
  get _helpId() {
@@ -6357,7 +6283,7 @@ var WarpTextField = class extends kebabCaseAttributes(WarpElement16) {
6357
6283
  if (affixes.length) this._hasSuffix = true;
6358
6284
  }
6359
6285
  render() {
6360
- return html25`
6286
+ return html24`
6361
6287
  ${this._label}
6362
6288
  <div class="${input.wrapper}">
6363
6289
  <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
@@ -6385,7 +6311,7 @@ var WarpTextField = class extends kebabCaseAttributes(WarpElement16) {
6385
6311
  @focus="${this.handler}" />
6386
6312
  <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
6387
6313
  </div>
6388
- ${this.helpText && html25`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
6314
+ ${this.helpText && html24`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
6389
6315
  `;
6390
6316
  }
6391
6317
  };
@@ -6415,7 +6341,7 @@ __publicField(WarpTextField, "properties", {
6415
6341
  // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
6416
6342
  // https://stackoverflow.com/a/61631668
6417
6343
  __publicField(WarpTextField, "styles", [
6418
- WarpElement16.styles,
6344
+ WarpElement15.styles,
6419
6345
  css7`
6420
6346
  :host {
6421
6347
  display: block;
@@ -6429,9 +6355,12 @@ if (!customElements.get("w-textfield")) {
6429
6355
  customElements.define("w-textfield", WarpTextField);
6430
6356
  }
6431
6357
 
6358
+ // packages/utils/window-exists.js
6359
+ var windowExists2 = typeof window !== "undefined";
6360
+
6432
6361
  // packages/toast/api.js
6433
6362
  function toast2(message, options) {
6434
- if (!windowExists) return;
6363
+ if (!windowExists2) return;
6435
6364
  const toast3 = customElements.get("w-toast-container").init();
6436
6365
  const data = __spreadValues({
6437
6366
  id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
@@ -6443,22 +6372,22 @@ function toast2(message, options) {
6443
6372
  return data;
6444
6373
  }
6445
6374
  function removeToast(id) {
6446
- if (!windowExists) return;
6375
+ if (!windowExists2) return;
6447
6376
  const toast3 = customElements.get("w-toast-container").init();
6448
6377
  return toast3.del(id);
6449
6378
  }
6450
6379
  function updateToast(id, options) {
6451
- if (!windowExists) return;
6380
+ if (!windowExists2) return;
6452
6381
  const toast3 = customElements.get("w-toast-container").init();
6453
6382
  toast3.set(__spreadValues(__spreadValues({}, toast3.get(id)), options));
6454
6383
  return toast3.get(id);
6455
6384
  }
6456
6385
 
6457
6386
  // packages/toast/toast-container.js
6458
- import { css as css8, html as html26 } from "lit";
6459
- import WarpElement17 from "@warp-ds/elements-core";
6460
- import { repeat as repeat2 } from "lit/directives/repeat.js";
6461
- var WarpToastContainer = class extends WarpElement17 {
6387
+ import { css as css8, html as html25 } from "lit";
6388
+ import WarpElement16 from "@warp-ds/elements-core";
6389
+ import { repeat } from "lit/directives/repeat.js";
6390
+ var WarpToastContainer = class extends WarpElement16 {
6462
6391
  constructor() {
6463
6392
  super();
6464
6393
  this._toasts = /* @__PURE__ */ new Map();
@@ -6540,13 +6469,13 @@ var WarpToastContainer = class extends WarpElement17 {
6540
6469
  return result;
6541
6470
  }
6542
6471
  render() {
6543
- return html26`
6472
+ return html25`
6544
6473
  <aside class="${toaster.wrapper}">
6545
6474
  <div class="${toaster.base}" id="w-toast-container-list">
6546
- ${repeat2(
6475
+ ${repeat(
6547
6476
  this._toastsArray,
6548
6477
  (toast3) => toast3.id,
6549
- (toast3) => html26` <w-toast
6478
+ (toast3) => html25` <w-toast
6550
6479
  class="${toaster.content}"
6551
6480
  id="${toast3.id}"
6552
6481
  type="${toast3.type}"
@@ -6561,7 +6490,7 @@ var WarpToastContainer = class extends WarpElement17 {
6561
6490
  }
6562
6491
  };
6563
6492
  __publicField(WarpToastContainer, "styles", [
6564
- WarpElement17.styles,
6493
+ WarpElement16.styles,
6565
6494
  css8`
6566
6495
  :host {
6567
6496
  display: block;
@@ -6576,8 +6505,8 @@ if (!customElements.get("w-toast-container")) {
6576
6505
  }
6577
6506
 
6578
6507
  // packages/toast/toast.js
6579
- import { css as css9, html as html27 } from "lit";
6580
- import WarpElement18 from "@warp-ds/elements-core";
6508
+ import { css as css9, html as html26 } from "lit";
6509
+ import WarpElement17 from "@warp-ds/elements-core";
6581
6510
 
6582
6511
  // node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js
6583
6512
  var windowExists3 = typeof window !== "undefined";
@@ -6670,7 +6599,7 @@ var toastType = {
6670
6599
  warning: "warning"
6671
6600
  };
6672
6601
  var _WarpToast_instances, primaryClasses_get, iconClasses_get;
6673
- var WarpToast = class extends WarpElement18 {
6602
+ var WarpToast = class extends WarpElement17 {
6674
6603
  constructor() {
6675
6604
  super();
6676
6605
  __privateAdd(this, _WarpToast_instances);
@@ -6725,9 +6654,9 @@ var WarpToast = class extends WarpElement18 {
6725
6654
  }
6726
6655
  }
6727
6656
  get _iconMarkup() {
6728
- if (this._warning) return html27`<w-icon-warning-16></w-icon-warning-16>`;
6729
- if (this._error) return html27`<w-icon-error-16></w-icon-error-16>`;
6730
- else return html27`<w-icon-success-16></w-icon-success-16>`;
6657
+ if (this._warning) return html26`<w-icon-warning-16></w-icon-warning-16>`;
6658
+ if (this._error) return html26`<w-icon-error-16></w-icon-error-16>`;
6659
+ else return html26`<w-icon-success-16></w-icon-success-16>`;
6731
6660
  }
6732
6661
  async collapse() {
6733
6662
  return new Promise((resolve) => {
@@ -6744,8 +6673,8 @@ var WarpToast = class extends WarpElement18 {
6744
6673
  this.updateComplete.then(() => this.dispatchEvent(event));
6745
6674
  }
6746
6675
  render() {
6747
- if (!this.text) return html27``;
6748
- return html27` <section class="${toast.wrapper}" aria-label="${this._typeLabel}">
6676
+ if (!this.text) return html26``;
6677
+ return html26` <section class="${toast.wrapper}" aria-label="${this._typeLabel}">
6749
6678
  <div class="${__privateGet(this, _WarpToast_instances, primaryClasses_get)}">
6750
6679
  <div class="${__privateGet(this, _WarpToast_instances, iconClasses_get)}">${this._iconMarkup}</div>
6751
6680
  <div role="${this._role}" class="${toast.content}">
@@ -6753,7 +6682,7 @@ var WarpToast = class extends WarpElement18 {
6753
6682
  </div>
6754
6683
  ${when2(
6755
6684
  this.canclose === true,
6756
- () => html27`
6685
+ () => html26`
6757
6686
  <button class="${toast.close}" @click="${this.close}">
6758
6687
  <w-icon-close-16></w-icon-close-16>
6759
6688
  </button>
@@ -6781,7 +6710,7 @@ iconClasses_get = function() {
6781
6710
  ]);
6782
6711
  };
6783
6712
  __publicField(WarpToast, "styles", [
6784
- WarpElement18.styles,
6713
+ WarpElement17.styles,
6785
6714
  css9`
6786
6715
  :host {
6787
6716
  display: block;
@@ -6799,10 +6728,10 @@ if (!customElements.get("w-toast")) {
6799
6728
  }
6800
6729
 
6801
6730
  // packages/utils/expand-transition.js
6802
- import { css as css10, html as html28 } from "lit";
6803
- import WarpElement19 from "@warp-ds/elements-core";
6731
+ import { css as css10, html as html27 } from "lit";
6732
+ import WarpElement18 from "@warp-ds/elements-core";
6804
6733
  import { ifDefined as ifDefined7 } from "lit/directives/if-defined.js";
6805
- var ExpandTransition = class extends WarpElement19 {
6734
+ var ExpandTransition = class extends WarpElement18 {
6806
6735
  constructor() {
6807
6736
  super();
6808
6737
  this.show = false;
@@ -6834,7 +6763,7 @@ var ExpandTransition = class extends WarpElement19 {
6834
6763
  return this != null ? this : null;
6835
6764
  }
6836
6765
  render() {
6837
- return html28`<div aria-hidden=${ifDefined7(!this.show ? "true" : void 0)}>${this._removeElement ? html28`` : html28`<slot></slot>`}</div>`;
6766
+ return html27`<div aria-hidden=${ifDefined7(!this.show ? "true" : void 0)}>${this._removeElement ? html27`` : html27`<slot></slot>`}</div>`;
6838
6767
  }
6839
6768
  };
6840
6769
  __publicField(ExpandTransition, "properties", {
@@ -6845,7 +6774,7 @@ __publicField(ExpandTransition, "properties", {
6845
6774
  _removeElement: { type: Boolean, state: true }
6846
6775
  });
6847
6776
  __publicField(ExpandTransition, "styles", [
6848
- WarpElement19.styles,
6777
+ WarpElement18.styles,
6849
6778
  css10`
6850
6779
  :host {
6851
6780
  display: block;
@@ -6857,10 +6786,10 @@ if (!customElements.get("w-expand-transition")) {
6857
6786
  }
6858
6787
 
6859
6788
  // packages/utils/unstyled-heading.js
6860
- import { html as html29 } from "lit";
6861
- import WarpElement20 from "@warp-ds/elements-core";
6789
+ import { html as html28 } from "lit";
6790
+ import WarpElement19 from "@warp-ds/elements-core";
6862
6791
  import { unsafeHTML as unsafeHTML2 } from "lit/directives/unsafe-html.js";
6863
- var UnstyledHeading = class extends WarpElement20 {
6792
+ var UnstyledHeading = class extends WarpElement19 {
6864
6793
  get _markup() {
6865
6794
  return `<h${this.level}
6866
6795
  style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
@@ -6870,13 +6799,13 @@ var UnstyledHeading = class extends WarpElement20 {
6870
6799
  `;
6871
6800
  }
6872
6801
  render() {
6873
- return !this.level ? html29`<slot></slot>` : unsafeHTML2(this._markup);
6802
+ return !this.level ? html28`<slot></slot>` : unsafeHTML2(this._markup);
6874
6803
  }
6875
6804
  };
6876
6805
  __publicField(UnstyledHeading, "properties", {
6877
6806
  level: { type: Number }
6878
6807
  });
6879
- __publicField(UnstyledHeading, "styles", [WarpElement20.styles]);
6808
+ __publicField(UnstyledHeading, "styles", [WarpElement19.styles]);
6880
6809
  if (!customElements.get("w-unstyled-heading")) {
6881
6810
  customElements.define("w-unstyled-heading", UnstyledHeading);
6882
6811
  }
@@ -6891,7 +6820,6 @@ export {
6891
6820
  WarpBadge,
6892
6821
  WarpBox,
6893
6822
  WarpBreadcrumbs,
6894
- WarpBroadcast,
6895
6823
  WarpButton,
6896
6824
  WarpCard,
6897
6825
  WarpExpandable,