@warp-ds/elements 2.0.1-next.2 → 2.0.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.
@@ -1709,17 +1709,19 @@ var messages3 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
1709
1709
  // packages/select/locales/nb/messages.mjs
1710
1710
  var messages4 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
1711
1711
 
1712
- // node_modules/.pnpm/@warp-ds+icons@2.0.2/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
1712
+ // node_modules/.pnpm/@warp-ds+icons@2.1.0/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
1713
1713
  import { LitElement } from "lit";
1714
1714
  import { unsafeStatic, html } from "lit/static-html.js";
1715
1715
  var messages5 = JSON.parse('{"icon.title.chevron-down":"Nedoverpil"}');
1716
1716
  var messages22 = JSON.parse('{"icon.title.chevron-down":"Downward arrow"}');
1717
1717
  var messages32 = JSON.parse('{"icon.title.chevron-down":"Nuoli alasp\xE4in"}');
1718
+ var messages42 = JSON.parse('{"icon.title.chevron-down":"Pil nedad"}');
1718
1719
  var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
1719
1720
  var defaultLocale3 = "en";
1720
1721
  var detectByBrand = () => {
1722
+ var _a;
1721
1723
  let value;
1722
- switch (process.env.NMP_BRAND) {
1724
+ switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
1723
1725
  case "FINN":
1724
1726
  value = "nb";
1725
1727
  break;
@@ -1740,7 +1742,7 @@ var detectByBrand = () => {
1740
1742
  var detectByHost = () => {
1741
1743
  var _a;
1742
1744
  const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
1743
- if (hostname.includes("finn")) {
1745
+ if (hostname == null ? void 0 : hostname.includes("finn")) {
1744
1746
  return "nb";
1745
1747
  } else if (hostname.includes("tori")) {
1746
1748
  return "fi";
@@ -1776,20 +1778,19 @@ function detectLocale2() {
1776
1778
  return defaultLocale3;
1777
1779
  }
1778
1780
  }
1779
- var getMessages2 = (locale, enMsg, nbMsg, fiMsg) => {
1780
- if (locale === "nb")
1781
- return nbMsg;
1782
- if (locale === "fi")
1783
- return fiMsg;
1781
+ var getMessages2 = (locale, enMsg, nbMsg, fiMsg, daMsg) => {
1782
+ if (locale === "nb") return nbMsg;
1783
+ if (locale === "fi") return fiMsg;
1784
+ if (locale === "da") return daMsg;
1784
1785
  return enMsg;
1785
1786
  };
1786
- var activateI18n2 = (enMessages, nbMessages, fiMessages) => {
1787
+ var activateI18n2 = (enMessages, nbMessages, fiMessages, daMessages) => {
1787
1788
  const locale = detectLocale2();
1788
- const messages42 = getMessages2(locale, enMessages, nbMessages, fiMessages);
1789
- i18n.load(locale, messages42);
1789
+ const messages52 = getMessages2(locale, enMessages, nbMessages, fiMessages, daMessages);
1790
+ i18n.load(locale, messages52);
1790
1791
  i18n.activate(locale);
1791
1792
  };
1792
- activateI18n2(messages22, messages5, messages32);
1793
+ activateI18n2(messages22, messages5, messages32, messages42);
1793
1794
  var IconChevronDown16 = class extends LitElement {
1794
1795
  render() {
1795
1796
  const title = i18n.t({ message: `Downward arrow`, id: "icon.title.chevron-down", comment: "Title for chevron-down icon" });