@warp-ds/elements 2.1.0 → 2.1.1-next.1

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
@@ -732,9 +732,9 @@ var require_moo = __commonJS({
732
732
  }
733
733
  });
734
734
 
735
- // node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/lexer.js
735
+ // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js
736
736
  var require_lexer = __commonJS({
737
- "node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/lexer.js"(exports) {
737
+ "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js"(exports) {
738
738
  "use strict";
739
739
  var __importDefault = exports && exports.__importDefault || function(mod) {
740
740
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -747,7 +747,7 @@ var require_lexer = __commonJS({
747
747
  doubleapos: { match: "''", value: () => "'" },
748
748
  quoted: {
749
749
  lineBreaks: true,
750
- match: /'[{}#](?:[^]*?[^'])?'(?!')/u,
750
+ match: /'[{}#](?:[^']|'')*'(?!')/u,
751
751
  value: (src) => src.slice(1, -1).replace(/''/g, "'")
752
752
  },
753
753
  argument: {
@@ -799,12 +799,13 @@ var require_lexer = __commonJS({
799
799
  }
800
800
  });
801
801
 
802
- // node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/parser.js
802
+ // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js
803
803
  var require_parser = __commonJS({
804
- "node_modules/.pnpm/@messageformat+parser@5.1.0/node_modules/@messageformat/parser/lib/parser.js"(exports) {
804
+ "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js"(exports) {
805
805
  "use strict";
806
806
  Object.defineProperty(exports, "__esModule", { value: true });
807
- exports.parse = exports.ParseError = void 0;
807
+ exports.ParseError = void 0;
808
+ exports.parse = parse2;
808
809
  var lexer_js_1 = require_lexer();
809
810
  var getContext = (lt) => ({
810
811
  offset: lt.offset,
@@ -870,8 +871,9 @@ var require_parser = __commonJS({
870
871
  }
871
872
  checkSelectKey(lt, type, key) {
872
873
  if (key[0] === "=") {
873
- if (type === "select")
874
+ if (type === "select") {
874
875
  throw new ParseError(lt, `The case ${key} is not valid with select`);
876
+ }
875
877
  } else if (type !== "select") {
876
878
  const keys2 = type === "plural" ? this.cardinalKeys : this.ordinalKeys;
877
879
  if (this.strictPluralKeys && keys2.length > 0 && !keys2.includes(key)) {
@@ -889,10 +891,12 @@ var require_parser = __commonJS({
889
891
  for (const lt of this.lexer) {
890
892
  switch (lt.type) {
891
893
  case "offset":
892
- if (type === "select")
894
+ if (type === "select") {
893
895
  throw new ParseError(lt, "Unexpected plural offset for select");
894
- if (sel.cases.length > 0)
896
+ }
897
+ if (sel.cases.length > 0) {
895
898
  throw new ParseError(lt, "Plural offset must be set before cases");
899
+ }
896
900
  sel.pluralOffset = Number(lt.value);
897
901
  ctx.text += lt.text;
898
902
  ctx.lineBreaks += lt.lineBreaks;
@@ -932,11 +936,13 @@ var require_parser = __commonJS({
932
936
  const end = this.lexer.next();
933
937
  if (!end)
934
938
  throw new ParseError(null, "Unexpected message end");
935
- if (end.type !== "end")
939
+ if (end.type !== "end") {
936
940
  throw new ParseError(end, `Unexpected lexer token: ${end.type}`);
941
+ }
937
942
  ctx.text += end.text;
938
- if (isSelectType(argType.value.toLowerCase()))
943
+ if (isSelectType(argType.value.toLowerCase())) {
939
944
  throw new ParseError(argType, `Invalid type identifier: ${argType.value}`);
945
+ }
940
946
  return {
941
947
  type: "function",
942
948
  arg: lt.value,
@@ -950,8 +956,9 @@ var require_parser = __commonJS({
950
956
  throw new ParseError(argType, msg);
951
957
  }
952
958
  let param = this.parseBody(this.strict ? false : inPlural);
953
- if (this.strict && param.length > 0)
959
+ if (this.strict && param.length > 0) {
954
960
  param = strictArgStyleParam(lt, param);
961
+ }
955
962
  return {
956
963
  type: "function",
957
964
  arg: lt.value,
@@ -961,10 +968,11 @@ var require_parser = __commonJS({
961
968
  };
962
969
  }
963
970
  case "select":
964
- if (isSelectType(argType.value))
971
+ if (isSelectType(argType.value)) {
965
972
  return this.parseSelect(lt, inPlural, ctx, argType.value);
966
- else
973
+ } else {
967
974
  throw new ParseError(argType, `Unexpected select type ${argType.value}`);
975
+ }
968
976
  default:
969
977
  throw new ParseError(argType, `Unexpected lexer token: ${argType.type}`);
970
978
  }
@@ -1011,7 +1019,6 @@ var require_parser = __commonJS({
1011
1019
  const parser = new Parser(src, options);
1012
1020
  return parser.parse();
1013
1021
  }
1014
- exports.parse = parse2;
1015
1022
  }
1016
1023
  });
1017
1024
 
@@ -1028,7 +1035,7 @@ var r = function() {
1028
1035
  }, []).join(" ");
1029
1036
  };
1030
1037
 
1031
- // node_modules/.pnpm/@warp-ds+css@2.0.0_@warp-ds+uno@2.0.0_unocss@0.62.0_postcss@8.4.41_rollup@4.20.0_vite@5.3.3_@_vyiy5vwpqfzwy5hpmfkwp3zmle/node_modules/@warp-ds/css/component-classes/index.js
1038
+ // node_modules/.pnpm/@warp-ds+css@2.0.1_@warp-ds+uno@2.0.2_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5.3.3_@t_2s4pctzvx7cgxzqlrreqkg4h34/node_modules/@warp-ds/css/component-classes/index.js
1032
1039
  var badge = {
1033
1040
  base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
1034
1041
  neutral: "bg-[--w-color-badge-neutral-background] s-text",
@@ -1429,18 +1436,18 @@ var attention = {
1429
1436
  import WarpElement from "@warp-ds/elements-core";
1430
1437
  import { ifDefined } from "lit/directives/if-defined.js";
1431
1438
 
1432
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/search-16.js
1439
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/search-16.js
1433
1440
  import { LitElement } from "lit";
1434
1441
  import { unsafeStatic, html } from "lit/static-html.js";
1435
1442
 
1436
- // node_modules/.pnpm/@lingui+core@4.11.2/node_modules/@lingui/core/dist/index.mjs
1443
+ // node_modules/.pnpm/@lingui+core@5.1.2_@lingui+babel-plugin-lingui-macro@5.1.2_babel-plugin-macros@3.1.0_typescri_g2ngrxg2kfutsfck3yn2icllca/node_modules/@lingui/core/dist/index.mjs
1437
1444
  var import_unraw = __toESM(require_dist(), 1);
1438
1445
 
1439
- // node_modules/.pnpm/@lingui+message-utils@4.11.2/node_modules/@lingui/message-utils/dist/compileMessage.mjs
1446
+ // node_modules/.pnpm/@lingui+message-utils@5.1.2/node_modules/@lingui/message-utils/dist/compileMessage.mjs
1440
1447
  var import_parser = __toESM(require_parser(), 1);
1441
1448
  function processTokens(tokens, mapText) {
1442
1449
  if (!tokens.filter((token) => token.type !== "content").length) {
1443
- return tokens.map((token) => mapText(token.value)).join("");
1450
+ return tokens.map((token) => mapText(token.value));
1444
1451
  }
1445
1452
  return tokens.map((token) => {
1446
1453
  var _a;
@@ -1480,11 +1487,11 @@ function compileMessage(message, mapText = (v) => v) {
1480
1487
  console.error(`${e.message}
1481
1488
 
1482
1489
  Message: ${message}`);
1483
- return message;
1490
+ return [message];
1484
1491
  }
1485
1492
  }
1486
1493
 
1487
- // node_modules/.pnpm/@lingui+core@4.11.2/node_modules/@lingui/core/dist/index.mjs
1494
+ // node_modules/.pnpm/@lingui+core@5.1.2_@lingui+babel-plugin-lingui-macro@5.1.2_babel-plugin-macros@3.1.0_typescri_g2ngrxg2kfutsfck3yn2icllca/node_modules/@lingui/core/dist/index.mjs
1488
1495
  var isString = (s) => typeof s === "string";
1489
1496
  var isFunction = (f2) => typeof f2 === "function";
1490
1497
  var cache = /* @__PURE__ */ new Map();
@@ -1535,7 +1542,7 @@ function cacheKey(type, locales, options) {
1535
1542
  const localeKey = locales.join("-");
1536
1543
  return `${type}-${localeKey}-${JSON.stringify(options)}`;
1537
1544
  }
1538
- var UNICODE_REGEX = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g;
1545
+ var UNICODE_REGEX = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/;
1539
1546
  var OCTOTHORPE_PH = "%__lingui_octothorpe__%";
1540
1547
  var getDefaultFormats = (locale, passedLocales, formats = {}) => {
1541
1548
  const locales = passedLocales || locale;
@@ -1667,7 +1674,11 @@ var I18n = class extends EventEmitter {
1667
1674
  __publicField2(this, "_localeData", {});
1668
1675
  __publicField2(this, "_messages", {});
1669
1676
  __publicField2(this, "_missing");
1677
+ __publicField2(this, "_messageCompiler");
1670
1678
  __publicField2(this, "t", this._.bind(this));
1679
+ if (true) {
1680
+ this.setMessagesCompiler(compileMessage);
1681
+ }
1671
1682
  if (params.missing != null)
1672
1683
  this._missing = params.missing;
1673
1684
  if (params.messages != null)
@@ -1703,6 +1714,25 @@ var I18n = class extends EventEmitter {
1703
1714
  Object.assign(maybeLocaleData, localeData);
1704
1715
  }
1705
1716
  }
1717
+ /**
1718
+ * Registers a `MessageCompiler` to enable the use of uncompiled catalogs at runtime.
1719
+ *
1720
+ * In production builds, the `MessageCompiler` is typically excluded to reduce bundle size.
1721
+ * By default, message catalogs should be precompiled during the build process. However,
1722
+ * if you need to compile catalogs at runtime, you can use this method to set a message compiler.
1723
+ *
1724
+ * Example usage:
1725
+ *
1726
+ * ```ts
1727
+ * import { compileMessage } from "@lingui/message-utils/compileMessage";
1728
+ *
1729
+ * i18n.setMessagesCompiler(compileMessage);
1730
+ * ```
1731
+ */
1732
+ setMessagesCompiler(compiler) {
1733
+ this._messageCompiler = compiler;
1734
+ return this;
1735
+ }
1706
1736
  /**
1707
1737
  * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
1708
1738
  */
@@ -1774,8 +1804,20 @@ var I18n = class extends EventEmitter {
1774
1804
  this.emit("missing", { id, locale: this._locale });
1775
1805
  }
1776
1806
  let translation = messageForId || message || id;
1777
- if (true) {
1778
- translation = isString(translation) ? compileMessage(translation) : translation;
1807
+ if (isString(translation)) {
1808
+ if (this._messageCompiler) {
1809
+ translation = this._messageCompiler(translation);
1810
+ } else {
1811
+ console.warn(`Uncompiled message detected! Message:
1812
+
1813
+ > ${translation}
1814
+
1815
+ That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
1816
+ ICU features such as interpolation and plurals will not work properly for that message.
1817
+
1818
+ Please compile your catalog first.
1819
+ `);
1820
+ }
1779
1821
  }
1780
1822
  if (isString(translation) && UNICODE_REGEX.test(translation))
1781
1823
  return JSON.parse(`"${translation}"`);
@@ -1799,12 +1841,12 @@ function setupI18n(params = {}) {
1799
1841
  }
1800
1842
  var i18n = setupI18n();
1801
1843
 
1802
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/search-16.js
1803
- var messages = JSON.parse('{"icon.title.search":"Forst\xF8rrelsesglass"}');
1804
- var messages2 = JSON.parse('{"icon.title.search":"Magnifying glass"}');
1805
- var messages3 = JSON.parse('{"icon.title.search":"Suurennuslasi"}');
1806
- var messages4 = JSON.parse('{"icon.title.search":"Forst\xF8rrelsesglas"}');
1807
- var messages5 = JSON.parse('{"icon.title.search":"F\xF6rstoringsglas"}');
1844
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/search-16.js
1845
+ var messages = JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglass"]}');
1846
+ var messages2 = JSON.parse('{"icon.title.search":["Magnifying glass"]}');
1847
+ var messages3 = JSON.parse('{"icon.title.search":["Suurennuslasi"]}');
1848
+ var messages4 = JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglas"]}');
1849
+ var messages5 = JSON.parse('{"icon.title.search":["F\xF6rstoringsglas"]}');
1808
1850
  var supportedLocales = ["en", "nb", "fi", "da", "sv"];
1809
1851
  var defaultLocale2 = "en";
1810
1852
  var detectByBrand = () => {
@@ -1891,14 +1933,14 @@ if (!customElements.get("w-icon-search-16")) {
1891
1933
  customElements.define("w-icon-search-16", IconSearch16);
1892
1934
  }
1893
1935
 
1894
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/close-16.js
1936
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/close-16.js
1895
1937
  import { LitElement as LitElement2 } from "lit";
1896
1938
  import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
1897
- var messages6 = JSON.parse('{"icon.title.close":"Kryss"}');
1898
- var messages22 = JSON.parse('{"icon.title.close":"Cross"}');
1899
- var messages32 = JSON.parse('{"icon.title.close":"Rasti"}');
1900
- var messages42 = JSON.parse('{"icon.title.close":"Kryds"}');
1901
- var messages52 = JSON.parse('{"icon.title.close":"Kryss"}');
1939
+ var messages6 = JSON.parse('{"icon.title.close":["Kryss"]}');
1940
+ var messages22 = JSON.parse('{"icon.title.close":["Cross"]}');
1941
+ var messages32 = JSON.parse('{"icon.title.close":["Rasti"]}');
1942
+ var messages42 = JSON.parse('{"icon.title.close":["Kryds"]}');
1943
+ var messages52 = JSON.parse('{"icon.title.close":["Kryss"]}');
1902
1944
  var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
1903
1945
  var defaultLocale3 = "en";
1904
1946
  var detectByBrand2 = () => {
@@ -2062,14 +2104,14 @@ if (!customElements.get("w-affix")) {
2062
2104
  import { css, html as html8 } from "lit";
2063
2105
  import WarpElement2 from "@warp-ds/elements-core";
2064
2106
 
2065
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/info-16.js
2107
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/info-16.js
2066
2108
  import { LitElement as LitElement3 } from "lit";
2067
2109
  import { unsafeStatic as unsafeStatic3, html as html4 } from "lit/static-html.js";
2068
- var messages7 = JSON.parse('{"icon.title.info":"Informasjonssirkel"}');
2069
- var messages23 = JSON.parse('{"icon.title.info":"Information circle"}');
2070
- var messages33 = JSON.parse('{"icon.title.info":"Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"}');
2071
- var messages43 = JSON.parse('{"icon.title.info":"Informationscirkel"}');
2072
- var messages53 = JSON.parse('{"icon.title.info":"Informationscirkel"}');
2110
+ var messages7 = JSON.parse('{"icon.title.info":["Informasjonssirkel"]}');
2111
+ var messages23 = JSON.parse('{"icon.title.info":["Information circle"]}');
2112
+ var messages33 = JSON.parse('{"icon.title.info":["Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"]}');
2113
+ var messages43 = JSON.parse('{"icon.title.info":["Informationscirkel"]}');
2114
+ var messages53 = JSON.parse('{"icon.title.info":["Informationscirkel"]}');
2073
2115
  var supportedLocales3 = ["en", "nb", "fi", "da", "sv"];
2074
2116
  var defaultLocale4 = "en";
2075
2117
  var detectByBrand3 = () => {
@@ -2156,14 +2198,14 @@ if (!customElements.get("w-icon-info-16")) {
2156
2198
  customElements.define("w-icon-info-16", IconInfo16);
2157
2199
  }
2158
2200
 
2159
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/warning-16.js
2201
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/warning-16.js
2160
2202
  import { LitElement as LitElement4 } from "lit";
2161
2203
  import { unsafeStatic as unsafeStatic4, html as html5 } from "lit/static-html.js";
2162
- var messages8 = JSON.parse('{"icon.title.warning":"Varseltrekant med utropstegn"}');
2163
- var messages24 = JSON.parse('{"icon.title.warning":"Warning triangle with exclamation point"}');
2164
- var messages34 = JSON.parse('{"icon.title.warning":"Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"}');
2165
- var messages44 = JSON.parse('{"icon.title.warning":"Advarselstrekant med et udr\xE5bstegn"}');
2166
- var messages54 = JSON.parse('{"icon.title.warning":"Varningstriangel med utropstecken"}');
2204
+ var messages8 = JSON.parse('{"icon.title.warning":["Varseltrekant med utropstegn"]}');
2205
+ var messages24 = JSON.parse('{"icon.title.warning":["Warning triangle with exclamation point"]}');
2206
+ var messages34 = JSON.parse('{"icon.title.warning":["Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"]}');
2207
+ var messages44 = JSON.parse('{"icon.title.warning":["Advarselstrekant med et udr\xE5bstegn"]}');
2208
+ var messages54 = JSON.parse('{"icon.title.warning":["Varningstriangel med utropstecken"]}');
2167
2209
  var supportedLocales4 = ["en", "nb", "fi", "da", "sv"];
2168
2210
  var defaultLocale5 = "en";
2169
2211
  var detectByBrand4 = () => {
@@ -2250,14 +2292,14 @@ if (!customElements.get("w-icon-warning-16")) {
2250
2292
  customElements.define("w-icon-warning-16", IconWarning16);
2251
2293
  }
2252
2294
 
2253
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/error-16.js
2295
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/error-16.js
2254
2296
  import { LitElement as LitElement5 } from "lit";
2255
2297
  import { unsafeStatic as unsafeStatic5, html as html6 } from "lit/static-html.js";
2256
- var messages9 = JSON.parse('{"icon.title.error":"\xC5ttekant med utropstegn"}');
2257
- var messages25 = JSON.parse('{"icon.title.error":"Octagon with exclamation point"}');
2258
- var messages35 = JSON.parse('{"icon.title.error":"Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"}');
2259
- var messages45 = JSON.parse('{"icon.title.error":"Ottekant med et udr\xE5bstegn"}');
2260
- var messages55 = JSON.parse('{"icon.title.error":"Oktagon med utropstecken"}');
2298
+ var messages9 = JSON.parse('{"icon.title.error":["\xC5ttekant med utropstegn"]}');
2299
+ var messages25 = JSON.parse('{"icon.title.error":["Octagon with exclamation point"]}');
2300
+ var messages35 = JSON.parse('{"icon.title.error":["Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"]}');
2301
+ var messages45 = JSON.parse('{"icon.title.error":["Ottekant med et udr\xE5bstegn"]}');
2302
+ var messages55 = JSON.parse('{"icon.title.error":["Oktagon med utropstecken"]}');
2261
2303
  var supportedLocales5 = ["en", "nb", "fi", "da", "sv"];
2262
2304
  var defaultLocale6 = "en";
2263
2305
  var detectByBrand5 = () => {
@@ -2344,14 +2386,14 @@ if (!customElements.get("w-icon-error-16")) {
2344
2386
  customElements.define("w-icon-error-16", IconError16);
2345
2387
  }
2346
2388
 
2347
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/success-16.js
2389
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/success-16.js
2348
2390
  import { LitElement as LitElement6 } from "lit";
2349
2391
  import { unsafeStatic as unsafeStatic6, html as html7 } from "lit/static-html.js";
2350
- var messages10 = JSON.parse('{"icon.title.success":"Sirkel med sjekkmerke"}');
2351
- var messages26 = JSON.parse('{"icon.title.success":"Circle with checkmark"}');
2352
- var messages36 = JSON.parse('{"icon.title.success":"Ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"}');
2353
- var messages46 = JSON.parse('{"icon.title.success":"Cirkel med et flueben"}');
2354
- var messages56 = JSON.parse('{"icon.title.success":"Cirkel med bock"}');
2392
+ var messages10 = JSON.parse('{"icon.title.success":["Sirkel med sjekkmerke"]}');
2393
+ var messages26 = JSON.parse('{"icon.title.success":["Circle with checkmark"]}');
2394
+ var messages36 = JSON.parse('{"icon.title.success":["Ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"]}');
2395
+ var messages46 = JSON.parse('{"icon.title.success":["Cirkel med et flueben"]}');
2396
+ var messages56 = JSON.parse('{"icon.title.success":["Cirkel med bock"]}');
2355
2397
  var supportedLocales6 = ["en", "nb", "fi", "da", "sv"];
2356
2398
  var defaultLocale7 = "en";
2357
2399
  var detectByBrand6 = () => {
@@ -2521,7 +2563,7 @@ if (!customElements.get("w-alert")) {
2521
2563
  // packages/attention/index.js
2522
2564
  import { css as css2, html as html9, nothing } from "lit";
2523
2565
 
2524
- // node_modules/.pnpm/@floating-ui+utils@0.2.7/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2566
+ // node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2525
2567
  var sides = ["top", "right", "bottom", "left"];
2526
2568
  var min = Math.min;
2527
2569
  var max = Math.max;
@@ -2650,7 +2692,7 @@ function rectToClientRect(rect) {
2650
2692
  };
2651
2693
  }
2652
2694
 
2653
- // node_modules/.pnpm/@floating-ui+core@1.6.7/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
2695
+ // node_modules/.pnpm/@floating-ui+core@1.6.9/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
2654
2696
  function computeCoordsFromPlacement(_ref, placement, rtl) {
2655
2697
  let {
2656
2698
  reference,
@@ -3092,11 +3134,11 @@ async function convertValueToCoords(state, options) {
3092
3134
  mainAxis: rawValue,
3093
3135
  crossAxis: 0,
3094
3136
  alignmentAxis: null
3095
- } : __spreadValues({
3096
- mainAxis: 0,
3097
- crossAxis: 0,
3098
- alignmentAxis: null
3099
- }, rawValue);
3137
+ } : {
3138
+ mainAxis: rawValue.mainAxis || 0,
3139
+ crossAxis: rawValue.crossAxis || 0,
3140
+ alignmentAxis: rawValue.alignmentAxis
3141
+ };
3100
3142
  if (alignment && typeof alignmentAxis === "number") {
3101
3143
  crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
3102
3144
  }
@@ -3200,7 +3242,11 @@ var shift = function(options) {
3200
3242
  return __spreadProps(__spreadValues({}, limitedCoords), {
3201
3243
  data: {
3202
3244
  x: limitedCoords.x - x,
3203
- y: limitedCoords.y - y2
3245
+ y: limitedCoords.y - y2,
3246
+ enabled: {
3247
+ [mainAxis]: checkMainAxis,
3248
+ [crossAxis]: checkCrossAxis
3249
+ }
3204
3250
  }
3205
3251
  });
3206
3252
  }
@@ -3214,6 +3260,7 @@ var size = function(options) {
3214
3260
  name: "size",
3215
3261
  options,
3216
3262
  async fn(state) {
3263
+ var _state$middlewareData, _state$middlewareData2;
3217
3264
  const {
3218
3265
  placement,
3219
3266
  rects,
@@ -3250,10 +3297,11 @@ var size = function(options) {
3250
3297
  const noShift = !state.middlewareData.shift;
3251
3298
  let availableHeight = overflowAvailableHeight;
3252
3299
  let availableWidth = overflowAvailableWidth;
3253
- if (isYAxis) {
3254
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
3255
- } else {
3256
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
3300
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
3301
+ availableWidth = maximumClippingWidth;
3302
+ }
3303
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
3304
+ availableHeight = maximumClippingHeight;
3257
3305
  }
3258
3306
  if (noShift && !alignment) {
3259
3307
  const xMin = max(overflow.left, 0);
@@ -3283,7 +3331,10 @@ var size = function(options) {
3283
3331
  };
3284
3332
  };
3285
3333
 
3286
- // node_modules/.pnpm/@floating-ui+utils@0.2.7/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
3334
+ // node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
3335
+ function hasWindow() {
3336
+ return typeof window !== "undefined";
3337
+ }
3287
3338
  function getNodeName(node) {
3288
3339
  if (isNode(node)) {
3289
3340
  return (node.nodeName || "").toLowerCase();
@@ -3299,16 +3350,25 @@ function getDocumentElement(node) {
3299
3350
  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
3300
3351
  }
3301
3352
  function isNode(value) {
3353
+ if (!hasWindow()) {
3354
+ return false;
3355
+ }
3302
3356
  return value instanceof Node || value instanceof getWindow(value).Node;
3303
3357
  }
3304
3358
  function isElement(value) {
3359
+ if (!hasWindow()) {
3360
+ return false;
3361
+ }
3305
3362
  return value instanceof Element || value instanceof getWindow(value).Element;
3306
3363
  }
3307
3364
  function isHTMLElement(value) {
3365
+ if (!hasWindow()) {
3366
+ return false;
3367
+ }
3308
3368
  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
3309
3369
  }
3310
3370
  function isShadowRoot(value) {
3311
- if (typeof ShadowRoot === "undefined") {
3371
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
3312
3372
  return false;
3313
3373
  }
3314
3374
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
@@ -3337,7 +3397,7 @@ function isTopLayer(element) {
3337
3397
  function isContainingBlock(elementOrCss) {
3338
3398
  const webkit = isWebKit();
3339
3399
  const css11 = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
3340
- return css11.transform !== "none" || css11.perspective !== "none" || (css11.containerType ? css11.containerType !== "normal" : false) || !webkit && (css11.backdropFilter ? css11.backdropFilter !== "none" : false) || !webkit && (css11.filter ? css11.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css11.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css11.contain || "").includes(value));
3400
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css11[value] ? css11[value] !== "none" : false) || (css11.containerType ? css11.containerType !== "normal" : false) || !webkit && (css11.backdropFilter ? css11.backdropFilter !== "none" : false) || !webkit && (css11.filter ? css11.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css11.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css11.contain || "").includes(value));
3341
3401
  }
3342
3402
  function getContainingBlock(element) {
3343
3403
  let currentNode = getParentNode(element);
@@ -3417,7 +3477,7 @@ function getFrameElement(win) {
3417
3477
  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
3418
3478
  }
3419
3479
 
3420
- // node_modules/.pnpm/@floating-ui+dom@1.6.10/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
3480
+ // node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
3421
3481
  function getCssDimensions(element) {
3422
3482
  const css11 = getComputedStyle(element);
3423
3483
  let width = parseFloat(css11.width) || 0;
@@ -3535,6 +3595,28 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
3535
3595
  y: y2
3536
3596
  });
3537
3597
  }
3598
+ function getWindowScrollBarX(element, rect) {
3599
+ const leftScroll = getNodeScroll(element).scrollLeft;
3600
+ if (!rect) {
3601
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
3602
+ }
3603
+ return rect.left + leftScroll;
3604
+ }
3605
+ function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
3606
+ if (ignoreScrollbarX === void 0) {
3607
+ ignoreScrollbarX = false;
3608
+ }
3609
+ const htmlRect = documentElement.getBoundingClientRect();
3610
+ const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 : (
3611
+ // RTL <body> scrollbar.
3612
+ getWindowScrollBarX(documentElement, htmlRect)
3613
+ ));
3614
+ const y2 = htmlRect.top + scroll.scrollTop;
3615
+ return {
3616
+ x,
3617
+ y: y2
3618
+ };
3619
+ }
3538
3620
  function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
3539
3621
  let {
3540
3622
  elements,
@@ -3566,19 +3648,17 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
3566
3648
  offsets.y = offsetRect.y + offsetParent.clientTop;
3567
3649
  }
3568
3650
  }
3651
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
3569
3652
  return {
3570
3653
  width: rect.width * scale.x,
3571
3654
  height: rect.height * scale.y,
3572
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
3573
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
3655
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
3656
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
3574
3657
  };
3575
3658
  }
3576
3659
  function getClientRects(element) {
3577
3660
  return Array.from(element.getClientRects());
3578
3661
  }
3579
- function getWindowScrollBarX(element) {
3580
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
3581
- }
3582
3662
  function getDocumentRect(element) {
3583
3663
  const html30 = getDocumentElement(element);
3584
3664
  const scroll = getNodeScroll(element);
@@ -3647,10 +3727,12 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
3647
3727
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
3648
3728
  } else {
3649
3729
  const visualOffsets = getVisualOffsets(element);
3650
- rect = __spreadProps(__spreadValues({}, clippingAncestor), {
3730
+ rect = {
3651
3731
  x: clippingAncestor.x - visualOffsets.x,
3652
- y: clippingAncestor.y - visualOffsets.y
3653
- });
3732
+ y: clippingAncestor.y - visualOffsets.y,
3733
+ width: clippingAncestor.width,
3734
+ height: clippingAncestor.height
3735
+ };
3654
3736
  }
3655
3737
  return rectToClientRect(rect);
3656
3738
  }
@@ -3744,8 +3826,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
3744
3826
  offsets.x = getWindowScrollBarX(documentElement);
3745
3827
  }
3746
3828
  }
3747
- const x = rect.left + scroll.scrollLeft - offsets.x;
3748
- const y2 = rect.top + scroll.scrollTop - offsets.y;
3829
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
3830
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
3831
+ const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
3749
3832
  return {
3750
3833
  x,
3751
3834
  y: y2,
@@ -3763,7 +3846,11 @@ function getTrueOffsetParent(element, polyfill) {
3763
3846
  if (polyfill) {
3764
3847
  return polyfill(element);
3765
3848
  }
3766
- return element.offsetParent;
3849
+ let rawOffsetParent = element.offsetParent;
3850
+ if (getDocumentElement(element) === rawOffsetParent) {
3851
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
3852
+ }
3853
+ return rawOffsetParent;
3767
3854
  }
3768
3855
  function getOffsetParent(element, polyfill) {
3769
3856
  const win = getWindow(element);
@@ -3837,7 +3924,7 @@ var computePosition2 = (reference, floating, options) => {
3837
3924
  }));
3838
3925
  };
3839
3926
 
3840
- // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3927
+ // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/attention/utils/helpers.js
3841
3928
  var TOP_START = "top-start";
3842
3929
  var TOP = "top";
3843
3930
  var TOP_END = "top-end";
@@ -4038,19 +4125,19 @@ var activateI18n7 = (enMessages, nbMessages, fiMessages, daMessages, svMessages)
4038
4125
  };
4039
4126
 
4040
4127
  // packages/attention/locales/da/messages.mjs
4041
- var messages11 = JSON.parse('{"attention.aria.callout":"En gr\xF8n taleboble der introducerer noget nyt","attention.aria.close":"Luk","attention.aria.highlight":"En opm\xE6rksomhedsskabende taleboble med vigtig information","attention.aria.pointingDown":"peger nedad","attention.aria.pointingLeft":"peger til venstre","attention.aria.pointingRight":"peger til h\xF8jre","attention.aria.pointingUp":"peger opad","attention.aria.popover":"En hvid taleboble med mere information","attention.aria.tooltip":"En sort taleboble med flere oplysninger"}');
4128
+ var messages11 = JSON.parse('{"attention.aria.callout":["En gr\xF8n taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opm\xE6rksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til h\xF8jre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}');
4042
4129
 
4043
4130
  // packages/attention/locales/en/messages.mjs
4044
- var messages12 = JSON.parse('{"attention.aria.callout":"A green speech bubble introducing something new","attention.aria.close":"Close","attention.aria.highlight":"An attention speech bubble with important information","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"A white speech bubble providing additional information","attention.aria.tooltip":"A black speech bubble providing complementary information"}');
4131
+ var messages12 = JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}');
4045
4132
 
4046
4133
  // packages/attention/locales/fi/messages.mjs
4047
- var messages13 = JSON.parse('{"attention.aria.callout":"Vihre\xE4 puhekupla, joka esittelee jotain uutta","attention.aria.close":"Sulje","attention.aria.highlight":"Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa","attention.aria.pointingDown":"osoittaa alas","attention.aria.pointingLeft":"osoittaa vasemmalle","attention.aria.pointingRight":"osoittaa oikealle","attention.aria.pointingUp":"osoittaa yl\xF6s","attention.aria.popover":"Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa","attention.aria.tooltip":"Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"}');
4134
+ var messages13 = JSON.parse('{"attention.aria.callout":["Vihre\xE4 puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa yl\xF6s"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"]}');
4048
4135
 
4049
4136
  // packages/attention/locales/nb/messages.mjs
4050
- var messages14 = JSON.parse('{"attention.aria.callout":"Gr\xF8nn taleboble som introduserer noe nytt","attention.aria.close":"Lukk","attention.aria.highlight":"En uthevet taleboble med viktig informasjon","attention.aria.pointingDown":"peker ned","attention.aria.pointingLeft":"peker til venstre","attention.aria.pointingRight":"peker til h\xF8yre","attention.aria.pointingUp":"peker opp","attention.aria.popover":"En hvit taleboble som gir tilleggsinformasjon","attention.aria.tooltip":"En svart taleboble som forklarer konteksten"}');
4137
+ var messages14 = JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til h\xF8yre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}');
4051
4138
 
4052
4139
  // packages/attention/locales/sv/messages.mjs
4053
- var messages15 = JSON.parse('{"attention.aria.callout":"En gr\xF6n pratbubbla som introducerar n\xE5got nytt","attention.aria.close":"St\xE4ng","attention.aria.highlight":"En pratbubbla med viktig information","attention.aria.pointingDown":"pekar ned","attention.aria.pointingLeft":"pekar v\xE4nster","attention.aria.pointingRight":"pekar h\xF6ger","attention.aria.pointingUp":"pekar upp","attention.aria.popover":"En vit pratbubbla som ger ytterligare information","attention.aria.tooltip":"En svart pratbubbla som ger kompletterande information"}');
4140
+ var messages15 = JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');
4054
4141
 
4055
4142
  // packages/attention/index.js
4056
4143
  var WarpAttention = class extends kebabCaseAttributes(WarpElement3) {
@@ -4472,7 +4559,7 @@ if (!customElements.get("w-box")) {
4472
4559
  // packages/breadcrumbs/index.js
4473
4560
  import { html as html12 } from "lit";
4474
4561
 
4475
- // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.10/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4562
+ // node_modules/.pnpm/@warp-ds+core@1.1.8_@floating-ui+dom@1.6.13/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4476
4563
  function interleave(array, separator2) {
4477
4564
  return array.flatMap((el) => [el, separator2]).slice(0, -1);
4478
4565
  }
@@ -4481,19 +4568,19 @@ function interleave(array, separator2) {
4481
4568
  import WarpElement6 from "@warp-ds/elements-core";
4482
4569
 
4483
4570
  // packages/breadcrumbs/locales/da/messages.mjs
4484
- var messages16 = JSON.parse('{"breadcrumbs.ariaLabel":"Du er her"}');
4571
+ var messages16 = JSON.parse('{"breadcrumbs.ariaLabel":["Du er her"]}');
4485
4572
 
4486
4573
  // packages/breadcrumbs/locales/en/messages.mjs
4487
- var messages17 = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}');
4574
+ var messages17 = JSON.parse('{"breadcrumbs.ariaLabel":["You are here"]}');
4488
4575
 
4489
4576
  // packages/breadcrumbs/locales/fi/messages.mjs
4490
- var messages18 = JSON.parse('{"breadcrumbs.ariaLabel":"Olet t\xE4ss\xE4"}');
4577
+ var messages18 = JSON.parse('{"breadcrumbs.ariaLabel":["Olet t\xE4ss\xE4"]}');
4491
4578
 
4492
4579
  // packages/breadcrumbs/locales/nb/messages.mjs
4493
- var messages19 = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}');
4580
+ var messages19 = JSON.parse('{"breadcrumbs.ariaLabel":["Her er du"]}');
4494
4581
 
4495
4582
  // packages/breadcrumbs/locales/sv/messages.mjs
4496
- var messages20 = JSON.parse('{"breadcrumbs.ariaLabel":"Du \xE4r h\xE4r"}');
4583
+ var messages20 = JSON.parse('{"breadcrumbs.ariaLabel":["Du \xE4r h\xE4r"]}');
4497
4584
 
4498
4585
  // packages/breadcrumbs/index.js
4499
4586
  var separator = html12`<span class=${breadcrumbs.separator}>/</span>`;
@@ -4622,19 +4709,19 @@ import { html as html14 } from "lit";
4622
4709
  import WarpElement8 from "@warp-ds/elements-core";
4623
4710
 
4624
4711
  // packages/button/locales/da/messages.mjs
4625
- var messages21 = JSON.parse('{"button.aria.loading":"Indl\xE6ser..."}');
4712
+ var messages21 = JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');
4626
4713
 
4627
4714
  // packages/button/locales/en/messages.mjs
4628
- var messages27 = JSON.parse('{"button.aria.loading":"Loading..."}');
4715
+ var messages27 = JSON.parse('{"button.aria.loading":["Loading..."]}');
4629
4716
 
4630
4717
  // packages/button/locales/fi/messages.mjs
4631
- var messages28 = JSON.parse('{"button.aria.loading":"Ladataan..."}');
4718
+ var messages28 = JSON.parse('{"button.aria.loading":["Ladataan..."]}');
4632
4719
 
4633
4720
  // packages/button/locales/nb/messages.mjs
4634
- var messages29 = JSON.parse('{"button.aria.loading":"Laster..."}');
4721
+ var messages29 = JSON.parse('{"button.aria.loading":["Laster..."]}');
4635
4722
 
4636
4723
  // packages/button/locales/sv/messages.mjs
4637
- var messages30 = JSON.parse('{"button.aria.loading":"Laddar ..."}');
4724
+ var messages30 = JSON.parse('{"button.aria.loading":["Laddar ..."]}');
4638
4725
 
4639
4726
  // packages/button/index.js
4640
4727
  var buttonTypes2 = ["primary", "secondary", "negative", "utility", "pill", "link"];
@@ -4762,19 +4849,19 @@ import WarpElement9 from "@warp-ds/elements-core";
4762
4849
  import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
4763
4850
 
4764
4851
  // packages/card/locales/da/messages.mjs
4765
- var messages31 = JSON.parse('{"card.button.text":"V\xE6lg"}');
4852
+ var messages31 = JSON.parse('{"card.button.text":["V\xE6lg"]}');
4766
4853
 
4767
4854
  // packages/card/locales/en/messages.mjs
4768
- var messages37 = JSON.parse('{"card.button.text":"Select"}');
4855
+ var messages37 = JSON.parse('{"card.button.text":["Select"]}');
4769
4856
 
4770
4857
  // packages/card/locales/fi/messages.mjs
4771
- var messages38 = JSON.parse('{"card.button.text":"Valitse"}');
4858
+ var messages38 = JSON.parse('{"card.button.text":["Valitse"]}');
4772
4859
 
4773
4860
  // packages/card/locales/nb/messages.mjs
4774
- var messages39 = JSON.parse('{"card.button.text":"Velg"}');
4861
+ var messages39 = JSON.parse('{"card.button.text":["Velg"]}');
4775
4862
 
4776
4863
  // packages/card/locales/sv/messages.mjs
4777
- var messages40 = JSON.parse('{"card.button.text":"V\xE4lj"}');
4864
+ var messages40 = JSON.parse('{"card.button.text":["V\xE4lj"]}');
4778
4865
 
4779
4866
  // packages/card/index.js
4780
4867
  var keys = {
@@ -4856,14 +4943,14 @@ import { css as css5, html as html18 } from "lit";
4856
4943
  import WarpElement10 from "@warp-ds/elements-core";
4857
4944
  import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
4858
4945
 
4859
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
4946
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
4860
4947
  import { LitElement as LitElement7 } from "lit";
4861
4948
  import { unsafeStatic as unsafeStatic7, html as html16 } from "lit/static-html.js";
4862
- var messages41 = JSON.parse('{"icon.title.chevron-down":"Nedoverpil"}');
4863
- var messages210 = JSON.parse('{"icon.title.chevron-down":"Downward arrow"}');
4864
- var messages310 = JSON.parse('{"icon.title.chevron-down":"Nuoli alasp\xE4in"}');
4865
- var messages47 = JSON.parse('{"icon.title.chevron-down":"Pil nedad"}');
4866
- var messages57 = JSON.parse('{"icon.title.chevron-down":"Pil ned"}');
4949
+ var messages41 = JSON.parse('{"icon.title.chevron-down":["Nedoverpil"]}');
4950
+ var messages210 = JSON.parse('{"icon.title.chevron-down":["Downward arrow"]}');
4951
+ var messages310 = JSON.parse('{"icon.title.chevron-down":["Nuoli alasp\xE4in"]}');
4952
+ var messages47 = JSON.parse('{"icon.title.chevron-down":["Pil nedad"]}');
4953
+ var messages57 = JSON.parse('{"icon.title.chevron-down":["Pil ned"]}');
4867
4954
  var supportedLocales8 = ["en", "nb", "fi", "da", "sv"];
4868
4955
  var defaultLocale9 = "en";
4869
4956
  var detectByBrand7 = () => {
@@ -4950,14 +5037,14 @@ if (!customElements.get("w-icon-chevron-down-16")) {
4950
5037
  customElements.define("w-icon-chevron-down-16", IconChevronDown16);
4951
5038
  }
4952
5039
 
4953
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
5040
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/chevron-up-16.js
4954
5041
  import { LitElement as LitElement8 } from "lit";
4955
5042
  import { unsafeStatic as unsafeStatic8, html as html17 } from "lit/static-html.js";
4956
- var messages48 = JSON.parse('{"icon.title.chevron-up":"Oppoverpil"}');
4957
- var messages211 = JSON.parse('{"icon.title.chevron-up":"Upward arrow"}');
4958
- var messages311 = JSON.parse('{"icon.title.chevron-up":"Nuoli yl\xF6sp\xE4in"}');
4959
- var messages49 = JSON.parse('{"icon.title.chevron-up":"Pil opad"}');
4960
- var messages58 = JSON.parse('{"icon.title.chevron-up":"Pil upp"}');
5043
+ var messages48 = JSON.parse('{"icon.title.chevron-up":["Oppoverpil"]}');
5044
+ var messages211 = JSON.parse('{"icon.title.chevron-up":["Upward arrow"]}');
5045
+ var messages311 = JSON.parse('{"icon.title.chevron-up":["Nuoli yl\xF6sp\xE4in"]}');
5046
+ var messages49 = JSON.parse('{"icon.title.chevron-up":["Pil opad"]}');
5047
+ var messages58 = JSON.parse('{"icon.title.chevron-up":["Pil upp"]}');
4961
5048
  var supportedLocales9 = ["en", "nb", "fi", "da", "sv"];
4962
5049
  var defaultLocale10 = "en";
4963
5050
  var detectByBrand8 = () => {
@@ -5265,14 +5352,14 @@ var Move = class {
5265
5352
  }
5266
5353
  };
5267
5354
 
5268
- // node_modules/.pnpm/@warp-ds+icons@2.4.0/node_modules/@warp-ds/icons/dist/elements/arrow-left-16.js
5355
+ // node_modules/.pnpm/@warp-ds+icons@2.5.0-next.1/node_modules/@warp-ds/icons/dist/elements/arrow-left-16.js
5269
5356
  import { LitElement as LitElement9 } from "lit";
5270
5357
  import { unsafeStatic as unsafeStatic9, html as html20 } from "lit/static-html.js";
5271
- var messages50 = JSON.parse('{"icon.title.arrow-left":"Pil som peker mot venstre"}');
5272
- var messages212 = JSON.parse('{"icon.title.arrow-left":"Leftward-pointing arrow"}');
5273
- var messages312 = JSON.parse('{"icon.title.arrow-left":"Vasemmalle osoittava nuoli"}');
5274
- var messages410 = JSON.parse('{"icon.title.arrow-left":"Pil til venstre"}');
5275
- var messages59 = JSON.parse('{"icon.title.arrow-left":"Pil som pekar v\xE4nster"}');
5358
+ var messages50 = JSON.parse('{"icon.title.arrow-left":["Pil som peker mot venstre"]}');
5359
+ var messages212 = JSON.parse('{"icon.title.arrow-left":["Leftward-pointing arrow"]}');
5360
+ var messages312 = JSON.parse('{"icon.title.arrow-left":["Vasemmalle osoittava nuoli"]}');
5361
+ var messages410 = JSON.parse('{"icon.title.arrow-left":["Pil til venstre"]}');
5362
+ var messages59 = JSON.parse('{"icon.title.arrow-left":["Pil som pekar v\xE4nster"]}');
5276
5363
  var supportedLocales10 = ["en", "nb", "fi", "da", "sv"];
5277
5364
  var defaultLocale11 = "en";
5278
5365
  var detectByBrand9 = () => {
@@ -5364,19 +5451,19 @@ import WarpElement12 from "@warp-ds/elements-core";
5364
5451
  import { createRef, ref } from "lit/directives/ref.js";
5365
5452
 
5366
5453
  // packages/modal/locales/da/messages.mjs
5367
- var messages51 = JSON.parse('{"modal.aria.back":"Tilbage","modal.aria.close":"Luk"}');
5454
+ var messages51 = JSON.parse('{"modal.aria.back":["Tilbage"],"modal.aria.close":["Luk"]}');
5368
5455
 
5369
5456
  // packages/modal/locales/en/messages.mjs
5370
- var messages60 = JSON.parse('{"modal.aria.back":"Back","modal.aria.close":"Close"}');
5457
+ var messages60 = JSON.parse('{"modal.aria.back":["Back"],"modal.aria.close":["Close"]}');
5371
5458
 
5372
5459
  // packages/modal/locales/fi/messages.mjs
5373
- var messages61 = JSON.parse('{"modal.aria.back":"Takaisin","modal.aria.close":"Sulje"}');
5460
+ var messages61 = JSON.parse('{"modal.aria.back":["Takaisin"],"modal.aria.close":["Sulje"]}');
5374
5461
 
5375
5462
  // packages/modal/locales/nb/messages.mjs
5376
- var messages62 = JSON.parse('{"modal.aria.back":"Tilbake","modal.aria.close":"Lukk"}');
5463
+ var messages62 = JSON.parse('{"modal.aria.back":["Tilbake"],"modal.aria.close":["Lukk"]}');
5377
5464
 
5378
5465
  // packages/modal/locales/sv/messages.mjs
5379
- var messages63 = JSON.parse('{"modal.aria.back":"Tillbaka","modal.aria.close":"St\xE4ng"}');
5466
+ var messages63 = JSON.parse('{"modal.aria.back":["Tillbaka"],"modal.aria.close":["St\xE4ng"]}');
5380
5467
 
5381
5468
  // packages/modal/modal-header.js
5382
5469
  var NO_CLOSE_BUTTON = "no-close";
@@ -5679,19 +5766,19 @@ import { html as html23 } from "lit";
5679
5766
  import WarpElement14 from "@warp-ds/elements-core";
5680
5767
 
5681
5768
  // packages/pill/locales/da/messages.mjs
5682
- var messages64 = JSON.parse('{"pill.aria.openFilter":"\xC5bn filter","pill.aria.removeFilter":["Fjern filter ",["label"]]}');
5769
+ var messages64 = JSON.parse('{"pill.aria.openFilter":["\xC5bn filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}');
5683
5770
 
5684
5771
  // packages/pill/locales/en/messages.mjs
5685
- var messages65 = JSON.parse('{"pill.aria.openFilter":"Open filter","pill.aria.removeFilter":["Remove filter ",["label"]]}');
5772
+ var messages65 = JSON.parse('{"pill.aria.openFilter":["Open filter"],"pill.aria.removeFilter":["Remove filter ",["label"]]}');
5686
5773
 
5687
5774
  // packages/pill/locales/fi/messages.mjs
5688
- var messages66 = JSON.parse('{"pill.aria.openFilter":"Avaa suodatin","pill.aria.removeFilter":["Tyhjenn\xE4 suodatin ",["label"]]}');
5775
+ var messages66 = JSON.parse('{"pill.aria.openFilter":["Avaa suodatin"],"pill.aria.removeFilter":["Tyhjenn\xE4 suodatin ",["label"]]}');
5689
5776
 
5690
5777
  // packages/pill/locales/nb/messages.mjs
5691
- var messages67 = JSON.parse('{"pill.aria.openFilter":"\xC5pne filter","pill.aria.removeFilter":["Fjern filter ",["label"]]}');
5778
+ var messages67 = JSON.parse('{"pill.aria.openFilter":["\xC5pne filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}');
5692
5779
 
5693
5780
  // packages/pill/locales/sv/messages.mjs
5694
- var messages68 = JSON.parse('{"pill.aria.openFilter":"\xD6ppna filter","pill.aria.removeFilter":["Ta bort filtret ",["label"]]}');
5781
+ var messages68 = JSON.parse('{"pill.aria.openFilter":["\xD6ppna filter"],"pill.aria.removeFilter":["Ta bort filtret ",["label"]]}');
5695
5782
 
5696
5783
  // packages/pill/index.js
5697
5784
  var WarpPill = class extends kebabCaseAttributes(WarpElement14) {
@@ -5762,19 +5849,19 @@ import { unsafeHTML } from "lit/directives/unsafe-html.js";
5762
5849
  import { when } from "lit/directives/when.js";
5763
5850
 
5764
5851
  // packages/select/locales/da/messages.mjs
5765
- var messages69 = JSON.parse('{"select.label.optional":"(valgfrit)"}');
5852
+ var messages69 = JSON.parse('{"select.label.optional":["(valgfrit)"]}');
5766
5853
 
5767
5854
  // packages/select/locales/en/messages.mjs
5768
- var messages70 = JSON.parse('{"select.label.optional":"(optional)"}');
5855
+ var messages70 = JSON.parse('{"select.label.optional":["(optional)"]}');
5769
5856
 
5770
5857
  // packages/select/locales/fi/messages.mjs
5771
- var messages71 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
5858
+ var messages71 = JSON.parse('{"select.label.optional":["(vapaaehtoinen)"]}');
5772
5859
 
5773
5860
  // packages/select/locales/nb/messages.mjs
5774
- var messages72 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
5861
+ var messages72 = JSON.parse('{"select.label.optional":["(valgfritt)"]}');
5775
5862
 
5776
5863
  // packages/select/locales/sv/messages.mjs
5777
- var messages73 = JSON.parse('{"select.label.optional":"(valfritt)"}');
5864
+ var messages73 = JSON.parse('{"select.label.optional":["(valfritt)"]}');
5778
5865
 
5779
5866
  // packages/select/index.js
5780
5867
  var _WarpSelect_instances, classes_get, helpTextClasses_get, chevronClasses_get2, id_get, helpId_get;
@@ -6233,19 +6320,19 @@ var collapse = (el, done) => {
6233
6320
  import { when as when2 } from "lit/directives/when.js";
6234
6321
 
6235
6322
  // packages/toast/locales/da/messages.mjs
6236
- var messages74 = JSON.parse('{"toast.aria.error":"Fejl","toast.aria.successful":"Fuldf\xF8rt","toast.aria.warning":"Advarsel"}');
6323
+ var messages74 = JSON.parse('{"toast.aria.error":["Fejl"],"toast.aria.successful":["Fuldf\xF8rt"],"toast.aria.warning":["Advarsel"]}');
6237
6324
 
6238
6325
  // packages/toast/locales/en/messages.mjs
6239
- var messages75 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
6326
+ var messages75 = JSON.parse('{"toast.aria.error":["Error"],"toast.aria.successful":["Successful"],"toast.aria.warning":["Warning"]}');
6240
6327
 
6241
6328
  // packages/toast/locales/fi/messages.mjs
6242
- var messages76 = JSON.parse('{"toast.aria.error":"Virhe","toast.aria.successful":"Onnistui","toast.aria.warning":"Varoitus"}');
6329
+ var messages76 = JSON.parse('{"toast.aria.error":["Virhe"],"toast.aria.successful":["Onnistui"],"toast.aria.warning":["Varoitus"]}');
6243
6330
 
6244
6331
  // packages/toast/locales/nb/messages.mjs
6245
- var messages77 = JSON.parse('{"toast.aria.error":"Feil","toast.aria.successful":"Vellykket","toast.aria.warning":"Advarsel"}');
6332
+ var messages77 = JSON.parse('{"toast.aria.error":["Feil"],"toast.aria.successful":["Vellykket"],"toast.aria.warning":["Advarsel"]}');
6246
6333
 
6247
6334
  // packages/toast/locales/sv/messages.mjs
6248
- var messages78 = JSON.parse('{"toast.aria.error":"Fel","toast.aria.successful":"Genomf\xF6rt","toast.aria.warning":"Varning"}');
6335
+ var messages78 = JSON.parse('{"toast.aria.error":["Fel"],"toast.aria.successful":["Genomf\xF6rt"],"toast.aria.warning":["Varning"]}');
6249
6336
 
6250
6337
  // packages/toast/toast.js
6251
6338
  var toastType = {