@warp-ds/elements 2.0.1-next.1 → 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.
@@ -3008,17 +3008,19 @@ var messages3 = JSON.parse('{"attention.aria.callout":"Vihre\xE4 puhekupla, joka
3008
3008
  // packages/attention/locales/nb/messages.mjs
3009
3009
  var messages4 = 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"}');
3010
3010
 
3011
- // node_modules/.pnpm/@warp-ds+icons@2.0.2/node_modules/@warp-ds/icons/dist/elements/close-16.js
3011
+ // node_modules/.pnpm/@warp-ds+icons@2.1.0/node_modules/@warp-ds/icons/dist/elements/close-16.js
3012
3012
  import { LitElement } from "lit";
3013
3013
  import { unsafeStatic, html } from "lit/static-html.js";
3014
3014
  var messages5 = JSON.parse('{"icon.title.close":"Kryss"}');
3015
3015
  var messages22 = JSON.parse('{"icon.title.close":"Cross"}');
3016
3016
  var messages32 = JSON.parse('{"icon.title.close":"Rasti"}');
3017
+ var messages42 = JSON.parse('{"icon.title.close":"Kryds"}');
3017
3018
  var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
3018
3019
  var defaultLocale3 = "en";
3019
3020
  var detectByBrand = () => {
3021
+ var _a;
3020
3022
  let value;
3021
- switch (process.env.NMP_BRAND) {
3023
+ switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
3022
3024
  case "FINN":
3023
3025
  value = "nb";
3024
3026
  break;
@@ -3039,7 +3041,7 @@ var detectByBrand = () => {
3039
3041
  var detectByHost = () => {
3040
3042
  var _a;
3041
3043
  const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
3042
- if (hostname.includes("finn")) {
3044
+ if (hostname == null ? void 0 : hostname.includes("finn")) {
3043
3045
  return "nb";
3044
3046
  } else if (hostname.includes("tori")) {
3045
3047
  return "fi";
@@ -3075,20 +3077,19 @@ function detectLocale2() {
3075
3077
  return defaultLocale3;
3076
3078
  }
3077
3079
  }
3078
- var getMessages2 = (locale, enMsg, nbMsg, fiMsg) => {
3079
- if (locale === "nb")
3080
- return nbMsg;
3081
- if (locale === "fi")
3082
- return fiMsg;
3080
+ var getMessages2 = (locale, enMsg, nbMsg, fiMsg, daMsg) => {
3081
+ if (locale === "nb") return nbMsg;
3082
+ if (locale === "fi") return fiMsg;
3083
+ if (locale === "da") return daMsg;
3083
3084
  return enMsg;
3084
3085
  };
3085
- var activateI18n2 = (enMessages, nbMessages, fiMessages) => {
3086
+ var activateI18n2 = (enMessages, nbMessages, fiMessages, daMessages) => {
3086
3087
  const locale = detectLocale2();
3087
- const messages42 = getMessages2(locale, enMessages, nbMessages, fiMessages);
3088
- i18n.load(locale, messages42);
3088
+ const messages52 = getMessages2(locale, enMessages, nbMessages, fiMessages, daMessages);
3089
+ i18n.load(locale, messages52);
3089
3090
  i18n.activate(locale);
3090
3091
  };
3091
- activateI18n2(messages22, messages5, messages32);
3092
+ activateI18n2(messages22, messages5, messages32, messages42);
3092
3093
  var IconClose16 = class extends LitElement {
3093
3094
  render() {
3094
3095
  const title = i18n.t({ message: `Cross`, id: "icon.title.close", comment: "Title for close icon" });