@warp-ds/elements 1.4.0 → 1.4.1-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
@@ -1042,10 +1042,8 @@ var require_parser = __commonJS({
1042
1042
 
1043
1043
  // packages/affix/index.js
1044
1044
  import { html as html3 } from "lit";
1045
- import WarpElement from "@warp-ds/elements-core";
1046
- import { ifDefined } from "lit/directives/if-defined.js";
1047
1045
 
1048
- // node_modules/.pnpm/@warp-ds+css@1.9.6/node_modules/@warp-ds/css/component-classes/index.js
1046
+ // node_modules/.pnpm/@warp-ds+css@1.9.7/node_modules/@warp-ds/css/component-classes/index.js
1049
1047
  var badge = {
1050
1048
  base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
1051
1049
  neutral: "bg-[--w-color-badge-neutral-background] s-text",
@@ -1450,7 +1448,11 @@ var attention = {
1450
1448
  closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`
1451
1449
  };
1452
1450
 
1453
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/search-16.js
1451
+ // packages/affix/index.js
1452
+ import WarpElement from "@warp-ds/elements-core";
1453
+ import { ifDefined } from "lit/directives/if-defined.js";
1454
+
1455
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/search-16.js
1454
1456
  import { LitElement } from "lit";
1455
1457
  import { unsafeStatic, html } from "lit/static-html.js";
1456
1458
 
@@ -1816,7 +1818,7 @@ function setupI18n(params = {}) {
1816
1818
  }
1817
1819
  var i18n = setupI18n();
1818
1820
 
1819
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/search-16.js
1821
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/search-16.js
1820
1822
  var messages = JSON.parse('{"icon.title.search":"Forst\xF8rrelsesglass"}');
1821
1823
  var messages2 = JSON.parse('{"icon.title.search":"Magnifying glass"}');
1822
1824
  var messages3 = JSON.parse('{"icon.title.search":"Suurennuslasi"}');
@@ -1905,7 +1907,7 @@ if (!customElements.get("w-icon-search-16")) {
1905
1907
  customElements.define("w-icon-search-16", IconSearch16);
1906
1908
  }
1907
1909
 
1908
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/close-16.js
1910
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/close-16.js
1909
1911
  import { LitElement as LitElement2 } from "lit";
1910
1912
  import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
1911
1913
  var messages4 = JSON.parse('{"icon.title.close":"Kryss"}');
@@ -2091,7 +2093,6 @@ if (!customElements.get("w-affix")) {
2091
2093
  }
2092
2094
 
2093
2095
  // packages/alert/index.js
2094
- import WarpElement2 from "@warp-ds/elements-core";
2095
2096
  import { css, html as html8 } from "lit";
2096
2097
 
2097
2098
  // node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js
@@ -2105,7 +2106,10 @@ var r = function() {
2105
2106
  }, []).join(" ");
2106
2107
  };
2107
2108
 
2108
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/info-16.js
2109
+ // packages/alert/index.js
2110
+ import WarpElement2 from "@warp-ds/elements-core";
2111
+
2112
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/info-16.js
2109
2113
  import { LitElement as LitElement3 } from "lit";
2110
2114
  import { unsafeStatic as unsafeStatic3, html as html4 } from "lit/static-html.js";
2111
2115
  var messages5 = JSON.parse('{"icon.title.info":"Informasjonssirkel"}');
@@ -2196,7 +2200,7 @@ if (!customElements.get("w-icon-info-16")) {
2196
2200
  customElements.define("w-icon-info-16", IconInfo16);
2197
2201
  }
2198
2202
 
2199
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/warning-16.js
2203
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/warning-16.js
2200
2204
  import { LitElement as LitElement4 } from "lit";
2201
2205
  import { unsafeStatic as unsafeStatic4, html as html5 } from "lit/static-html.js";
2202
2206
  var messages6 = JSON.parse('{"icon.title.warning":"Varseltrekant med utropstegn"}');
@@ -2287,7 +2291,7 @@ if (!customElements.get("w-icon-warning-16")) {
2287
2291
  customElements.define("w-icon-warning-16", IconWarning16);
2288
2292
  }
2289
2293
 
2290
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/error-16.js
2294
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/error-16.js
2291
2295
  import { LitElement as LitElement5 } from "lit";
2292
2296
  import { unsafeStatic as unsafeStatic5, html as html6 } from "lit/static-html.js";
2293
2297
  var messages7 = JSON.parse('{"icon.title.error":"\xC5ttekant med utropstegn"}');
@@ -2378,7 +2382,7 @@ if (!customElements.get("w-icon-error-16")) {
2378
2382
  customElements.define("w-icon-error-16", IconError16);
2379
2383
  }
2380
2384
 
2381
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/success-16.js
2385
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/success-16.js
2382
2386
  import { LitElement as LitElement6 } from "lit";
2383
2387
  import { unsafeStatic as unsafeStatic6, html as html7 } from "lit/static-html.js";
2384
2388
  var messages8 = JSON.parse('{"icon.title.success":"Sirkel med sjekkmerke"}');
@@ -2558,8 +2562,6 @@ if (!customElements.get("w-alert")) {
2558
2562
 
2559
2563
  // packages/attention/index.js
2560
2564
  import { css as css2, html as html9, nothing } from "lit";
2561
- import WarpElement3 from "@warp-ds/elements-core";
2562
- import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
2563
2565
 
2564
2566
  // node_modules/.pnpm/@floating-ui+utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2565
2567
  var sides = ["top", "right", "bottom", "left"];
@@ -3689,7 +3691,7 @@ var computePosition2 = (reference, floating, options) => {
3689
3691
  }));
3690
3692
  };
3691
3693
 
3692
- // node_modules/.pnpm/@warp-ds+core@1.1.1_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3694
+ // node_modules/.pnpm/@warp-ds+core@1.1.2_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3693
3695
  var TOP_START = "top-start";
3694
3696
  var TOP = "top";
3695
3697
  var TOP_END = "top-end";
@@ -3744,8 +3746,6 @@ var rotation = {
3744
3746
  [BOTTOM]: -135,
3745
3747
  [BOTTOM_END]: -135
3746
3748
  };
3747
- var middlePosition = "calc(50% - 7px)";
3748
- var isDirectionVertical = (name) => [TOP_START, TOP, TOP_END, BOTTOM_START, BOTTOM, BOTTOM_END].includes(name);
3749
3749
  var arrowDirectionClassname = (dir) => {
3750
3750
  let direction;
3751
3751
  if (/-/.test(dir)) {
@@ -3768,17 +3768,6 @@ var applyArrowStyles = (arrowEl, arrowRotation2, dir) => {
3768
3768
  transform: `rotate(${arrowRotation2}deg)`
3769
3769
  });
3770
3770
  };
3771
- function computeCalloutArrow({ actualDirection, directionName = BOTTOM, arrowEl }) {
3772
- if (!arrowEl)
3773
- return;
3774
- actualDirection = directionName;
3775
- const directionIsVertical = isDirectionVertical(directionName);
3776
- Object.assign((arrowEl == null ? void 0 : arrowEl.style) || {}, {
3777
- left: directionIsVertical ? middlePosition : "",
3778
- top: !directionIsVertical ? middlePosition : ""
3779
- });
3780
- applyArrowStyles(arrowEl, arrowRotation(actualDirection), actualDirection);
3781
- }
3782
3771
  async function useRecompute(state) {
3783
3772
  var _a, _b, _c;
3784
3773
  if (!(state == null ? void 0 : state.isShowing))
@@ -3786,33 +3775,34 @@ async function useRecompute(state) {
3786
3775
  if (state == null ? void 0 : state.waitForDOM) {
3787
3776
  await (state == null ? void 0 : state.waitForDOM());
3788
3777
  }
3789
- if (state == null ? void 0 : state.isCallout)
3790
- return computeCalloutArrow(state);
3791
3778
  if (!(state == null ? void 0 : state.targetEl) || !(state == null ? void 0 : state.attentionEl))
3792
3779
  return;
3793
- const targetEl = state == null ? void 0 : state.targetEl;
3794
- const attentionEl = state == null ? void 0 : state.attentionEl;
3780
+ let targetEl = state == null ? void 0 : state.targetEl;
3781
+ const attentionEl = state.attentionEl;
3795
3782
  computePosition2(targetEl, attentionEl, {
3796
3783
  placement: (_a = state == null ? void 0 : state.directionName) != null ? _a : BOTTOM,
3797
3784
  middleware: [
3798
3785
  offset({ mainAxis: (_b = state == null ? void 0 : state.distance) != null ? _b : 8, crossAxis: (_c = state == null ? void 0 : state.skidding) != null ? _c : 0 }),
3799
3786
  (state == null ? void 0 : state.flip) && flip2({
3787
+ // when flip is set to true it will move the attentionEl's placement to its opposite side or to the preferred placements if fallbackPlacements has a value
3800
3788
  crossAxis: state == null ? void 0 : state.crossAxis,
3801
3789
  fallbackPlacements: state == null ? void 0 : state.fallbackPlacements
3802
3790
  }),
3803
3791
  !(state == null ? void 0 : state.noArrow) && (state == null ? void 0 : state.arrowEl) && arrow2({ element: state == null ? void 0 : state.arrowEl }),
3804
3792
  hide2()
3805
- //will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.
3793
+ // will hide the attentionEl when it appears detached from the targetEl. Can be called multiple times in the middleware-array if you want to use several strategies. Default strategy is 'referenceHidden'.
3806
3794
  ]
3807
3795
  }).then(({ x, y, middlewareData, placement }) => {
3808
3796
  state.actualDirection = placement;
3809
- Object.assign(attentionEl == null ? void 0 : attentionEl.style, {
3810
- left: `${x}px`,
3811
- top: `${y}px`
3812
- });
3797
+ if (!(state == null ? void 0 : state.isCallout)) {
3798
+ Object.assign(attentionEl.style, {
3799
+ left: `${x}px`,
3800
+ top: `${y}px`
3801
+ });
3802
+ }
3813
3803
  if ((middlewareData == null ? void 0 : middlewareData.hide) && !(state == null ? void 0 : state.isCallout)) {
3814
- const { referenceHidden } = middlewareData == null ? void 0 : middlewareData.hide;
3815
- Object.assign(attentionEl == null ? void 0 : attentionEl.style, {
3804
+ const { referenceHidden } = middlewareData.hide;
3805
+ Object.assign(attentionEl.style, {
3816
3806
  visibility: referenceHidden ? "hidden" : ""
3817
3807
  });
3818
3808
  }
@@ -3820,26 +3810,26 @@ async function useRecompute(state) {
3820
3810
  const arrowPlacement = arrowDirection(placement).split("-")[1];
3821
3811
  if ((middlewareData == null ? void 0 : middlewareData.arrow) && (state == null ? void 0 : state.arrowEl)) {
3822
3812
  const arrowEl = state == null ? void 0 : state.arrowEl;
3823
- const { x: x2, y: y2 } = middlewareData == null ? void 0 : middlewareData.arrow;
3813
+ const { x: arrowX, y: arrowY } = middlewareData.arrow;
3824
3814
  let top = "";
3825
3815
  let right = "";
3826
3816
  let bottom = "";
3827
3817
  let left = "";
3828
3818
  if (arrowPlacement === "start") {
3829
- const value = typeof x2 === "number" ? `calc(33px - ${(arrowEl == null ? void 0 : arrowEl.offsetWidth) / 2}px)` : "";
3830
- top = typeof y2 === "number" ? `calc(33px - ${(arrowEl == null ? void 0 : arrowEl.offsetWidth) / 2}px)` : "";
3819
+ const value = typeof arrowX === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
3820
+ top = typeof arrowY === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
3831
3821
  right = isRtl ? value : "";
3832
3822
  left = isRtl ? "" : value;
3833
3823
  } else if (arrowPlacement === "end") {
3834
- const value = typeof x2 === "number" ? `calc(33px - ${(arrowEl == null ? void 0 : arrowEl.offsetWidth) / 2}px)` : "";
3824
+ const value = typeof arrowX === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
3835
3825
  right = isRtl ? "" : value;
3836
3826
  left = isRtl ? value : "";
3837
- bottom = typeof y2 === "number" ? `calc(33px - ${(arrowEl == null ? void 0 : arrowEl.offsetWidth) / 2}px)` : "";
3827
+ bottom = typeof arrowY === "number" ? `calc(24px - ${arrowEl.offsetWidth / 2}px)` : "";
3838
3828
  } else {
3839
- left = typeof x2 === "number" ? `${x2}px` : "";
3840
- top = typeof y2 === "number" ? `${y2}px` : "";
3829
+ left = typeof arrowX === "number" ? `${arrowX}px` : "";
3830
+ top = typeof arrowY === "number" ? `${arrowY}px` : "";
3841
3831
  }
3842
- Object.assign((arrowEl == null ? void 0 : arrowEl.style) || {}, {
3832
+ Object.assign(arrowEl.style, {
3843
3833
  top,
3844
3834
  right,
3845
3835
  bottom,
@@ -3851,14 +3841,9 @@ async function useRecompute(state) {
3851
3841
  return state;
3852
3842
  }
3853
3843
 
3854
- // packages/attention/locales/en/messages.mjs
3855
- var messages9 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3856
-
3857
- // packages/attention/locales/nb/messages.mjs
3858
- var messages10 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3859
-
3860
- // packages/attention/locales/fi/messages.mjs
3861
- var messages11 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3844
+ // packages/attention/index.js
3845
+ import WarpElement3 from "@warp-ds/elements-core";
3846
+ import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
3862
3847
 
3863
3848
  // packages/i18n.ts
3864
3849
  var supportedLocales7 = ["en", "nb", "fi"];
@@ -3895,11 +3880,20 @@ var activateI18n7 = (enMessages, nbMessages, fiMessages) => {
3895
3880
  i18n.activate(locale);
3896
3881
  };
3897
3882
 
3883
+ // packages/attention/locales/en/messages.mjs
3884
+ var messages9 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3885
+
3886
+ // packages/attention/locales/fi/messages.mjs
3887
+ var messages10 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3888
+
3889
+ // packages/attention/locales/nb/messages.mjs
3890
+ var messages11 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3891
+
3898
3892
  // packages/attention/index.js
3899
3893
  var WarpAttention = class extends kebabCaseAttributes(WarpElement3) {
3900
3894
  constructor() {
3901
3895
  super();
3902
- activateI18n7(messages9, messages10, messages11);
3896
+ activateI18n7(messages9, messages11, messages10);
3903
3897
  this.handleDone = this.handleDone.bind(this);
3904
3898
  this.show = false;
3905
3899
  this.placement = "bottom";
@@ -3923,8 +3917,10 @@ var WarpAttention = class extends kebabCaseAttributes(WarpElement3) {
3923
3917
  ${JSON.stringify(Object.keys(opposites))}`);
3924
3918
  }
3925
3919
  if (this.fallbackPlacements && !this.fallbackPlacements.every((fallbackPlacement) => directions.includes(fallbackPlacement))) {
3926
- throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:
3927
- ${JSON.stringify(directions)}`);
3920
+ throw new Error(
3921
+ `Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:
3922
+ ${JSON.stringify(directions)}`
3923
+ );
3928
3924
  }
3929
3925
  setTimeout(() => this.requestUpdate(), 0);
3930
3926
  if (!this.callout) {
@@ -3978,7 +3974,7 @@ ${JSON.stringify(directions)}`);
3978
3974
  });
3979
3975
  }
3980
3976
  get _arrowHtml() {
3981
- return this.noArrow ? "" : html9`<div id="arrow" role="img" class="${this._arrowClasses}" />`;
3977
+ return this.noArrow ? "" : html9`<div id="arrow" role="img" class="${this._arrowClasses}"></div>`;
3982
3978
  }
3983
3979
  get _activeVariantClasses() {
3984
3980
  const variantProps = {
@@ -4021,7 +4017,7 @@ ${JSON.stringify(directions)}`);
4021
4017
  get _closeBtnHtml() {
4022
4018
  return html9`
4023
4019
  <button aria-label="${this._ariaClose}" @click="${this.close}" @keydown=${this.keypressed} class="${attention.closeBtn}">
4024
- <w-icon-close-16 />
4020
+ <w-icon-close-16></w-icon-close-16>
4025
4021
  </button>
4026
4022
  `;
4027
4023
  }
@@ -4156,7 +4152,11 @@ ${JSON.stringify(directions)}`);
4156
4152
  ${this.placement === "right-start" || this.placement === "right" || this.placement === "right-end" || this.placement === "bottom-start" || this.placement === "bottom" || this.placement === "bottom-end" ? html9`
4157
4153
  <slot name="target"></slot>
4158
4154
 
4159
- <div id="attention" role="${this.tooltip ? "tooltip" : "img"}" aria-label="${this.defaultAriaLabel()}" class="${this._wrapperClasses}">
4155
+ <div
4156
+ id="attention"
4157
+ role="${this.tooltip ? "tooltip" : "img"}"
4158
+ aria-label="${this.defaultAriaLabel()}"
4159
+ class="${this._wrapperClasses}">
4160
4160
  ${this._arrowHtml}
4161
4161
  <slot name="message"></slot>
4162
4162
  ${this.canClose ? this._closeBtnHtml : nothing}
@@ -4313,28 +4313,30 @@ if (!customElements.get("w-box")) {
4313
4313
 
4314
4314
  // packages/breadcrumbs/index.js
4315
4315
  import { html as html12 } from "lit";
4316
- import WarpElement6 from "@warp-ds/elements-core";
4317
4316
 
4318
- // node_modules/.pnpm/@warp-ds+core@1.1.1_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4317
+ // node_modules/.pnpm/@warp-ds+core@1.1.2_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4319
4318
  function interleave(array, separator2) {
4320
4319
  return array.flatMap((el) => [el, separator2]).slice(0, -1);
4321
4320
  }
4322
4321
 
4322
+ // packages/breadcrumbs/index.js
4323
+ import WarpElement6 from "@warp-ds/elements-core";
4324
+
4323
4325
  // packages/breadcrumbs/locales/en/messages.mjs
4324
4326
  var messages12 = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}');
4325
4327
 
4326
- // packages/breadcrumbs/locales/nb/messages.mjs
4327
- var messages13 = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}');
4328
-
4329
4328
  // packages/breadcrumbs/locales/fi/messages.mjs
4330
- var messages14 = JSON.parse('{"breadcrumbs.ariaLabel":"Olet t\xE4ss\xE4"}');
4329
+ var messages13 = JSON.parse('{"breadcrumbs.ariaLabel":"Olet t\xE4ss\xE4"}');
4330
+
4331
+ // packages/breadcrumbs/locales/nb/messages.mjs
4332
+ var messages14 = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}');
4331
4333
 
4332
4334
  // packages/breadcrumbs/index.js
4333
4335
  var separator = html12`<span class=${breadcrumbs.separator}>/</span>`;
4334
4336
  var WarpBreadcrumbs = class extends kebabCaseAttributes(WarpElement6) {
4335
4337
  constructor() {
4336
4338
  super();
4337
- activateI18n7(messages12, messages13, messages14);
4339
+ activateI18n7(messages12, messages14, messages13);
4338
4340
  this.ariaLabel = i18n._({
4339
4341
  id: "breadcrumbs.ariaLabel",
4340
4342
  message: "You are here",
@@ -4459,18 +4461,18 @@ import WarpElement8 from "@warp-ds/elements-core";
4459
4461
  // packages/button/locales/en/messages.mjs
4460
4462
  var messages15 = JSON.parse('{"button.aria.loading":"Loading..."}');
4461
4463
 
4462
- // packages/button/locales/nb/messages.mjs
4463
- var messages16 = JSON.parse('{"button.aria.loading":"Laster..."}');
4464
-
4465
4464
  // packages/button/locales/fi/messages.mjs
4466
- var messages17 = JSON.parse('{"button.aria.loading":"Ladataan..."}');
4465
+ var messages16 = JSON.parse('{"button.aria.loading":"Ladataan..."}');
4466
+
4467
+ // packages/button/locales/nb/messages.mjs
4468
+ var messages17 = JSON.parse('{"button.aria.loading":"Laster..."}');
4467
4469
 
4468
4470
  // packages/button/index.js
4469
4471
  var buttonTypes2 = ["primary", "secondary", "negative", "utility", "pill", "link"];
4470
4472
  var WarpButton = class extends kebabCaseAttributes(WarpElement8) {
4471
4473
  constructor() {
4472
4474
  super();
4473
- activateI18n7(messages15, messages16, messages17);
4475
+ activateI18n7(messages15, messages17, messages16);
4474
4476
  this.variant = "secondary";
4475
4477
  this.ariaValueTextLoading = i18n._({
4476
4478
  id: "button.aria.loading",
@@ -4545,12 +4547,16 @@ ${buttonTypes2.join(", ")}.`);
4545
4547
  );
4546
4548
  }
4547
4549
  render() {
4548
- return html14` ${this.href ? html14`<a href=${this.href} target=${this.target} rel=${this.target === "_blank" ? this.rel || "noopener" : void 0} class=${this._classes}>
4550
+ return html14` ${this.href ? html14`<a
4551
+ href=${this.href}
4552
+ target=${this.target}
4553
+ rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
4554
+ class=${this._classes}>
4549
4555
  <slot></slot>
4550
4556
  </a>` : html14`<button type=${this.type || "button"} class=${this._classes}>
4551
4557
  <slot></slot>
4552
4558
  </button>`}
4553
- ${this.loading ? html14`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading} />` : null}`;
4559
+ ${this.loading ? html14`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>` : null}`;
4554
4560
  }
4555
4561
  };
4556
4562
  __publicField(WarpButton, "shadowRootOptions", __spreadProps(__spreadValues({}, WarpElement8.shadowRootOptions), {
@@ -4656,8 +4662,9 @@ if (!customElements.get("w-card")) {
4656
4662
  // packages/expandable/index.js
4657
4663
  import { css as css5, html as html18 } from "lit";
4658
4664
  import WarpElement10 from "@warp-ds/elements-core";
4665
+ import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
4659
4666
 
4660
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
4667
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
4661
4668
  import { LitElement as LitElement7 } from "lit";
4662
4669
  import { unsafeStatic as unsafeStatic7, html as html16 } from "lit/static-html.js";
4663
4670
  var messages18 = JSON.parse('{"icon.title.chevron-down":"Nedoverpil"}');
@@ -4748,7 +4755,7 @@ if (!customElements.get("w-icon-chevron-down-16")) {
4748
4755
  customElements.define("w-icon-chevron-down-16", IconChevronDown16);
4749
4756
  }
4750
4757
 
4751
- // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
4758
+ // node_modules/.pnpm/@warp-ds+icons@2.0.1/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
4752
4759
  import { LitElement as LitElement8 } from "lit";
4753
4760
  import { unsafeStatic as unsafeStatic8, html as html17 } from "lit/static-html.js";
4754
4761
  var messages19 = JSON.parse('{"icon.title.chevron-up":"Oppoverpil"}');
@@ -4840,7 +4847,6 @@ if (!customElements.get("w-icon-chevron-up-16")) {
4840
4847
  }
4841
4848
 
4842
4849
  // packages/expandable/index.js
4843
- import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
4844
4850
  var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4845
4851
  constructor() {
4846
4852
  super();
@@ -4869,8 +4875,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4869
4875
  [this.contentClass || ""]: true,
4870
4876
  [box.box]: this.box,
4871
4877
  [expandable.paddingTop]: this._hasTitle && this.box
4872
- })}
4873
- >
4878
+ })}>
4874
4879
  <slot></slot>
4875
4880
  </div>`;
4876
4881
  }
@@ -4892,8 +4897,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4892
4897
  [expandable.expandable]: true,
4893
4898
  [expandable.expandableBox]: this.box,
4894
4899
  [expandable.expandableBleed]: this.bleed
4895
- })}
4896
- >
4900
+ })}>
4897
4901
  ${this._hasTitle ? html18`<w-unstyled-heading level=${this.headingLevel}>
4898
4902
  <button
4899
4903
  type="button"
@@ -4903,8 +4907,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4903
4907
  [expandable.button]: true,
4904
4908
  [expandable.buttonBox]: this.box
4905
4909
  })}
4906
- @click=${() => this.expanded = !this.expanded}
4907
- >
4910
+ @click=${() => this.expanded = !this.expanded}>
4908
4911
  <div class="${expandable.title}">
4909
4912
  ${this.title ? html18`<span class="${expandable.titleType}">${this.title}</span>` : html18`<slot name="title"></slot>`}
4910
4913
  ${this.noChevron ? "" : html18`<div
@@ -4912,8 +4915,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4912
4915
  [expandable.chevron]: true,
4913
4916
  [expandable.chevronBox]: this.box,
4914
4917
  [expandable.chevronNonBox]: !this.box
4915
- })}
4916
- >
4918
+ })}>
4917
4919
  ${this._showChevronUp ? html18`<w-icon-chevron-up-16 class="${this._chevronUpClasses}"></w-icon-chevron-up-16>` : html18`<w-icon-chevron-down-16 class="${this._chevronDownClasses}"></w-icon-chevron-down-16>`}
4918
4920
  </div>`}
4919
4921
  </div>
@@ -4924,8 +4926,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4924
4926
  [expandable.expansion]: true,
4925
4927
  [expandable.expansionNotExpanded]: !this.expanded
4926
4928
  })}
4927
- aria-hidden=${ifDefined4(!this.expanded ? true : void 0)}
4928
- >
4929
+ aria-hidden=${ifDefined4(!this.expanded ? true : void 0)}>
4929
4930
  ${this._expandableSlot}
4930
4931
  </div>`}
4931
4932
  </div>`;
@@ -4966,6 +4967,7 @@ if (!customElements.get("w-expandable")) {
4966
4967
 
4967
4968
  // packages/pill/index.js
4968
4969
  import { html as html19 } from "lit";
4970
+ import WarpElement11 from "@warp-ds/elements-core";
4969
4971
 
4970
4972
  // packages/pill/locales/en/messages.mjs
4971
4973
  var messages20 = JSON.parse('{"pill.aria.openFilter":"Open filter","pill.aria.removeFilter":["Remove filter ",["label"]]}');
@@ -4977,7 +4979,6 @@ var messages21 = JSON.parse('{"pill.aria.openFilter":"Avaa suodatin","pill.aria.
4977
4979
  var messages29 = JSON.parse('{"pill.aria.openFilter":"\xC5pne filter","pill.aria.removeFilter":["Fjern filter ",["label"]]}');
4978
4980
 
4979
4981
  // packages/pill/index.js
4980
- import WarpElement11 from "@warp-ds/elements-core";
4981
4982
  var WarpPill = class extends kebabCaseAttributes(WarpElement11) {
4982
4983
  constructor() {
4983
4984
  super();
@@ -5046,17 +5047,17 @@ if (!customElements.get("w-pill")) {
5046
5047
  import { html as html20 } from "lit";
5047
5048
  import WarpElement12 from "@warp-ds/elements-core";
5048
5049
  import { ifDefined as ifDefined5 } from "lit/directives/if-defined.js";
5049
- import { when } from "lit/directives/when.js";
5050
5050
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
5051
+ import { when } from "lit/directives/when.js";
5051
5052
 
5052
5053
  // packages/select/locales/en/messages.mjs
5053
5054
  var messages30 = JSON.parse('{"select.label.optional":"(optional)"}');
5054
5055
 
5055
- // packages/select/locales/nb/messages.mjs
5056
- var messages31 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
5057
-
5058
5056
  // packages/select/locales/fi/messages.mjs
5059
- var messages39 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
5057
+ var messages31 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
5058
+
5059
+ // packages/select/locales/nb/messages.mjs
5060
+ var messages39 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
5060
5061
 
5061
5062
  // packages/select/index.js
5062
5063
  var _classes, classes_get, _helpTextClasses, helpTextClasses_get, _chevronClasses, chevronClasses_get, _id, id_get, _helpId, helpId_get;
@@ -5068,7 +5069,7 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement12) {
5068
5069
  __privateAdd(this, _chevronClasses);
5069
5070
  __privateAdd(this, _id);
5070
5071
  __privateAdd(this, _helpId);
5071
- activateI18n7(messages30, messages31, messages39);
5072
+ activateI18n7(messages30, messages39, messages31);
5072
5073
  this._options = this.innerHTML;
5073
5074
  }
5074
5075
  render() {
@@ -5090,7 +5091,13 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement12) {
5090
5091
  >`
5091
5092
  )}
5092
5093
  <div class="${select.selectWrapper}">
5093
- <select class="${__privateGet(this, _classes, classes_get)}" id="${__privateGet(this, _id, id_get)}" ?autofocus=${this.autoFocus} aria-describedby="${ifDefined5(__privateGet(this, _helpId, helpId_get))}" aria-invalid="${ifDefined5(this.invalid)}" aria-errormessage="${ifDefined5(this.invalid && __privateGet(this, _helpId, helpId_get))}">
5094
+ <select
5095
+ class="${__privateGet(this, _classes, classes_get)}"
5096
+ id="${__privateGet(this, _id, id_get)}"
5097
+ ?autofocus=${this.autoFocus}
5098
+ aria-describedby="${ifDefined5(__privateGet(this, _helpId, helpId_get))}"
5099
+ aria-invalid="${ifDefined5(this.invalid)}"
5100
+ aria-errormessage="${ifDefined5(this.invalid && __privateGet(this, _helpId, helpId_get))}">
5094
5101
  ${unsafeHTML(this._options)}
5095
5102
  </select>
5096
5103
  <div class="${__privateGet(this, _chevronClasses, chevronClasses_get)}">
@@ -5222,7 +5229,28 @@ var WarpTextField = class extends WarpElement13 {
5222
5229
  ${this._label}
5223
5230
  <div class="${input.wrapper}">
5224
5231
  <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
5225
- <input class="${this._inputStyles}" type="${this.type}" min="${ifDefined6(this.min)}" max="${ifDefined6(this.max)}" size="${ifDefined6(this.size)}" minlength="${ifDefined6(this.minLength)}" maxlength="${ifDefined6(this.maxLength)}" name="${ifDefined6(this.name)}" pattern="${ifDefined6(this.pattern)}" placeholder="${ifDefined6(this.placeholder)}" value="${ifDefined6(this.value)}" aria-describedby="${ifDefined6(this._helpId)}" aria-errormessage="${ifDefined6(this._error)}" aria-invalid="${ifDefined6(this.invalid)}" id="${this._id}" ?disabled="${this.disabled}" ?readonly="${this.readOnly}" ?required="${this.required}" @blur="${this.handler}" @change="${this.handler}" @focus="${this.handler}" />
5232
+ <input
5233
+ class="${this._inputStyles}"
5234
+ type="${this.type}"
5235
+ min="${ifDefined6(this.min)}"
5236
+ max="${ifDefined6(this.max)}"
5237
+ size="${ifDefined6(this.size)}"
5238
+ minlength="${ifDefined6(this.minLength)}"
5239
+ maxlength="${ifDefined6(this.maxLength)}"
5240
+ name="${ifDefined6(this.name)}"
5241
+ pattern="${ifDefined6(this.pattern)}"
5242
+ placeholder="${ifDefined6(this.placeholder)}"
5243
+ value="${ifDefined6(this.value)}"
5244
+ aria-describedby="${ifDefined6(this._helpId)}"
5245
+ aria-errormessage="${ifDefined6(this._error)}"
5246
+ aria-invalid="${ifDefined6(this.invalid)}"
5247
+ id="${this._id}"
5248
+ ?disabled="${this.disabled}"
5249
+ ?readonly="${this.readOnly}"
5250
+ ?required="${this.required}"
5251
+ @blur="${this.handler}"
5252
+ @change="${this.handler}"
5253
+ @focus="${this.handler}" />
5226
5254
  <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
5227
5255
  </div>
5228
5256
  ${this.helpText && html21`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
@@ -5397,7 +5425,14 @@ var WarpToastContainer = class extends WarpElement14 {
5397
5425
  ${repeat2(
5398
5426
  this._toastsArray,
5399
5427
  (toast3) => toast3.id,
5400
- (toast3) => html22` <w-toast class="${toaster.content}" id="${toast3.id}" type="${toast3.type}" text="${toast3.text}" ?canclose=${toast3.canclose} @close=${() => this.del(toast3.id)}> </w-toast>`
5428
+ (toast3) => html22` <w-toast
5429
+ class="${toaster.content}"
5430
+ id="${toast3.id}"
5431
+ type="${toast3.type}"
5432
+ text="${toast3.text}"
5433
+ ?canclose=${toast3.canclose}
5434
+ @close=${() => this.del(toast3.id)}>
5435
+ </w-toast>`
5401
5436
  )}
5402
5437
  </div>
5403
5438
  </aside>
@@ -5422,8 +5457,6 @@ if (!customElements.get("w-toast-container")) {
5422
5457
  // packages/toast/toast.js
5423
5458
  import { css as css8, html as html23 } from "lit";
5424
5459
  import WarpElement15 from "@warp-ds/elements-core";
5425
- import { classMap as classMap2 } from "lit/directives/class-map.js";
5426
- import { when as when2 } from "lit/directives/when.js";
5427
5460
 
5428
5461
  // node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js
5429
5462
  var windowExists2 = typeof window !== "undefined";
@@ -5498,14 +5531,18 @@ var collapse = (el, done) => {
5498
5531
  return returnPromise;
5499
5532
  };
5500
5533
 
5534
+ // packages/toast/toast.js
5535
+ import { classMap as classMap2 } from "lit/directives/class-map.js";
5536
+ import { when as when2 } from "lit/directives/when.js";
5537
+
5501
5538
  // packages/toast/locales/en/messages.mjs
5502
5539
  var messages40 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
5503
5540
 
5504
- // packages/toast/locales/nb/messages.mjs
5505
- var messages41 = JSON.parse('{"toast.aria.error":"Varsel","toast.aria.successful":"Vellykket","toast.aria.warning":"Feil"}');
5506
-
5507
5541
  // packages/toast/locales/fi/messages.mjs
5508
- var messages42 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
5542
+ var messages41 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
5543
+
5544
+ // packages/toast/locales/nb/messages.mjs
5545
+ var messages42 = JSON.parse('{"toast.aria.error":"Varsel","toast.aria.successful":"Vellykket","toast.aria.warning":"Feil"}');
5509
5546
 
5510
5547
  // packages/toast/toast.js
5511
5548
  var classes2 = (definition) => {
@@ -5525,7 +5562,7 @@ var toastType = {
5525
5562
  var WarpToast = class extends WarpElement15 {
5526
5563
  constructor() {
5527
5564
  super();
5528
- activateI18n7(messages40, messages41, messages42);
5565
+ activateI18n7(messages40, messages42, messages41);
5529
5566
  this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5);
5530
5567
  this.type = "success";
5531
5568
  this.text = "";