@warp-ds/elements 1.3.0-next.1 → 1.3.0

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.
@@ -1268,7 +1268,7 @@ var r = function() {
1268
1268
  }, []).join(" ");
1269
1269
  };
1270
1270
 
1271
- // node_modules/.pnpm/@warp-ds+icons@1.4.0/node_modules/@warp-ds/icons/dist/elements/alert-info-16.js
1271
+ // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/info-16.js
1272
1272
  import { LitElement } from "lit";
1273
1273
  import { unsafeStatic, html } from "lit/static-html.js";
1274
1274
 
@@ -1623,25 +1623,66 @@ function setupI18n(params = {}) {
1623
1623
  }
1624
1624
  var i18n = setupI18n();
1625
1625
 
1626
- // node_modules/.pnpm/@warp-ds+icons@1.4.0/node_modules/@warp-ds/icons/dist/elements/alert-info-16.js
1627
- var messages = JSON.parse('{"icon.title.alert-info":"Bl\xE5 sirkel med bokstaven \\"I\\""}');
1628
- var messages2 = JSON.parse('{"icon.title.alert-info":"Blue circle with the letter I"}');
1629
- var messages3 = JSON.parse('{"icon.title.alert-info":"Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"}');
1630
- var supportedLocales = ["en", "nb", "fi"];
1626
+ // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/info-16.js
1627
+ var messages = JSON.parse('{"icon.title.info":"Informasjonssirkel"}');
1628
+ var messages2 = JSON.parse('{"icon.title.info":"Information circle"}');
1629
+ var messages3 = JSON.parse('{"icon.title.info":"Ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"}');
1630
+ var supportedLocales = ["en", "nb", "fi", "da", "sv"];
1631
1631
  var defaultLocale2 = "en";
1632
+ var detectByBrand = () => {
1633
+ let value;
1634
+ switch (process.env.NMP_BRAND) {
1635
+ case "FINN":
1636
+ value = "nb";
1637
+ break;
1638
+ case "TORI":
1639
+ value = "fi";
1640
+ break;
1641
+ case "BLOCKET":
1642
+ value = "sv";
1643
+ break;
1644
+ case "DBA":
1645
+ value = "da";
1646
+ break;
1647
+ default:
1648
+ value = "en";
1649
+ }
1650
+ return value;
1651
+ };
1652
+ var detectByHost = () => {
1653
+ var _a;
1654
+ const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
1655
+ if (hostname.includes("finn")) {
1656
+ return "nb";
1657
+ } else if (hostname.includes("tori")) {
1658
+ return "fi";
1659
+ } else if (hostname.includes("blocket")) {
1660
+ return "sv";
1661
+ } else if (hostname.includes("dba")) {
1662
+ return "da";
1663
+ } else {
1664
+ return defaultLocale2;
1665
+ }
1666
+ };
1632
1667
  var getSupportedLocale = (usedLocale) => {
1633
1668
  return supportedLocales.find(
1634
1669
  (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
1635
- ) || defaultLocale2;
1670
+ ) || detectByHost();
1636
1671
  };
1637
1672
  function detectLocale() {
1673
+ var _a;
1638
1674
  if (typeof window === "undefined") {
1639
- const serverLocale = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
1675
+ const serverLocale = detectByBrand();
1640
1676
  return getSupportedLocale(serverLocale);
1641
1677
  }
1642
1678
  try {
1643
- const htmlLocale = document.documentElement.lang;
1644
- return getSupportedLocale(htmlLocale);
1679
+ const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
1680
+ const hostLocale = detectByHost();
1681
+ if (!supportedLocales.includes(htmlLocale)) {
1682
+ console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
1683
+ return getSupportedLocale(hostLocale);
1684
+ }
1685
+ return getSupportedLocale(htmlLocale != null ? htmlLocale : hostLocale);
1645
1686
  } catch (e) {
1646
1687
  console.warn("could not detect locale, falling back to source locale", e);
1647
1688
  return defaultLocale2;
@@ -1661,37 +1702,78 @@ var activateI18n = (enMessages, nbMessages, fiMessages) => {
1661
1702
  i18n.activate(locale);
1662
1703
  };
1663
1704
  activateI18n(messages2, messages, messages3);
1664
- var IconAlertInfo16 = class extends LitElement {
1705
+ var IconInfo16 = class extends LitElement {
1665
1706
  render() {
1666
- const title = i18n.t({ message: `Blue circle with the letter I`, id: "icon.title.alert-info", comment: "Title for alert info icon" });
1667
- return html`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-alert-info-16-part">${unsafeStatic(`<title>${title}</title>`)}<circle cx="8" cy="8" r="8" fill="currentColor"></circle><path fill="#fff" fill-rule="evenodd" d="M8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4Z" clip-rule="evenodd"></path></svg>`;
1707
+ const title = i18n.t({ message: `Information circle`, id: "icon.title.info", comment: "Title for info icon" });
1708
+ return html`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-info-16-part">${unsafeStatic(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" d="M8 6.5v5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 4v.5"></path><path stroke="currentColor" stroke-miterlimit="10" d="M8 .5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Z"></path></svg>`;
1668
1709
  }
1669
1710
  };
1670
- if (!customElements.get("w-icon-alert-info-16")) {
1671
- customElements.define("w-icon-alert-info-16", IconAlertInfo16);
1711
+ if (!customElements.get("w-icon-info-16")) {
1712
+ customElements.define("w-icon-info-16", IconInfo16);
1672
1713
  }
1673
1714
 
1674
- // node_modules/.pnpm/@warp-ds+icons@1.4.0/node_modules/@warp-ds/icons/dist/elements/alert-warning-16.js
1715
+ // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/warning-16.js
1675
1716
  import { LitElement as LitElement2 } from "lit";
1676
1717
  import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
1677
- var messages4 = JSON.parse('{"icon.title.alert-warning":"Gul varseltrekant med utropstegn"}');
1678
- var messages22 = JSON.parse('{"icon.title.alert-warning":"Yellow warning triangle with exclamation point"}');
1679
- var messages32 = JSON.parse('{"icon.title.alert-warning":"Keltainen varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"}');
1680
- var supportedLocales2 = ["en", "nb", "fi"];
1718
+ var messages4 = JSON.parse('{"icon.title.warning":"Varseltrekant med utropstegn"}');
1719
+ var messages22 = JSON.parse('{"icon.title.warning":"Warning triangle with exclamation point"}');
1720
+ var messages32 = JSON.parse('{"icon.title.warning":"Varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"}');
1721
+ var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
1681
1722
  var defaultLocale3 = "en";
1723
+ var detectByBrand2 = () => {
1724
+ let value;
1725
+ switch (process.env.NMP_BRAND) {
1726
+ case "FINN":
1727
+ value = "nb";
1728
+ break;
1729
+ case "TORI":
1730
+ value = "fi";
1731
+ break;
1732
+ case "BLOCKET":
1733
+ value = "sv";
1734
+ break;
1735
+ case "DBA":
1736
+ value = "da";
1737
+ break;
1738
+ default:
1739
+ value = "en";
1740
+ }
1741
+ return value;
1742
+ };
1743
+ var detectByHost2 = () => {
1744
+ var _a;
1745
+ const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
1746
+ if (hostname.includes("finn")) {
1747
+ return "nb";
1748
+ } else if (hostname.includes("tori")) {
1749
+ return "fi";
1750
+ } else if (hostname.includes("blocket")) {
1751
+ return "sv";
1752
+ } else if (hostname.includes("dba")) {
1753
+ return "da";
1754
+ } else {
1755
+ return defaultLocale3;
1756
+ }
1757
+ };
1682
1758
  var getSupportedLocale2 = (usedLocale) => {
1683
1759
  return supportedLocales2.find(
1684
1760
  (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
1685
- ) || defaultLocale3;
1761
+ ) || detectByHost2();
1686
1762
  };
1687
1763
  function detectLocale2() {
1764
+ var _a;
1688
1765
  if (typeof window === "undefined") {
1689
- const serverLocale = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
1766
+ const serverLocale = detectByBrand2();
1690
1767
  return getSupportedLocale2(serverLocale);
1691
1768
  }
1692
1769
  try {
1693
- const htmlLocale = document.documentElement.lang;
1694
- return getSupportedLocale2(htmlLocale);
1770
+ const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
1771
+ const hostLocale = detectByHost2();
1772
+ if (!supportedLocales2.includes(htmlLocale)) {
1773
+ console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
1774
+ return getSupportedLocale2(hostLocale);
1775
+ }
1776
+ return getSupportedLocale2(htmlLocale != null ? htmlLocale : hostLocale);
1695
1777
  } catch (e) {
1696
1778
  console.warn("could not detect locale, falling back to source locale", e);
1697
1779
  return defaultLocale3;
@@ -1711,37 +1793,78 @@ var activateI18n2 = (enMessages, nbMessages, fiMessages) => {
1711
1793
  i18n.activate(locale);
1712
1794
  };
1713
1795
  activateI18n2(messages22, messages4, messages32);
1714
- var IconAlertWarning16 = class extends LitElement2 {
1796
+ var IconWarning16 = class extends LitElement2 {
1715
1797
  render() {
1716
- const title = i18n.t({ message: `Yellow warning triangle with exclamation point`, id: "icon.title.alert-warning", comment: "Title for alert warning icon" });
1717
- return html2`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-alert-warning-16-part">${unsafeStatic2(`<title>${title}</title>`)}<path fill="currentColor" d="M.245 12.01 6.159 1.083c.782-1.445 2.9-1.445 3.682 0l5.914 10.925c.734 1.357-.271 2.991-1.84 2.991H2.084C.517 15-.49 13.366.246 12.01Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`;
1798
+ const title = i18n.t({ message: `Warning triangle with exclamation point`, id: "icon.title.warning", comment: "Title for warning icon" });
1799
+ return html2`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-warning-16-part">${unsafeStatic2(`<title>${title}</title>`)}<path stroke="currentColor" d="m.712 14.07 6.25-12.994a1 1 0 0 1 1.792-.022l6.635 12.995a1 1 0 0 1-.89 1.455H1.613a1 1 0 0 1-.902-1.434Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 6v4.992M8 13v.333"></path></svg>`;
1718
1800
  }
1719
1801
  };
1720
- if (!customElements.get("w-icon-alert-warning-16")) {
1721
- customElements.define("w-icon-alert-warning-16", IconAlertWarning16);
1802
+ if (!customElements.get("w-icon-warning-16")) {
1803
+ customElements.define("w-icon-warning-16", IconWarning16);
1722
1804
  }
1723
1805
 
1724
- // node_modules/.pnpm/@warp-ds+icons@1.4.0/node_modules/@warp-ds/icons/dist/elements/alert-error-16.js
1806
+ // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/error-16.js
1725
1807
  import { LitElement as LitElement3 } from "lit";
1726
1808
  import { unsafeStatic as unsafeStatic3, html as html3 } from "lit/static-html.js";
1727
- var messages5 = JSON.parse('{"icon.title.alert-error":"R\xF8d \xE5ttekant med hvitt utropstegn"}');
1728
- var messages23 = JSON.parse('{"icon.title.alert-error":"Red octagon with white exclamation point"}');
1729
- var messages33 = JSON.parse('{"icon.title.alert-error":"Punainen kahdeksankulmio, jonka sis\xE4ll\xE4 on valkoinen huutomerkki"}');
1730
- var supportedLocales3 = ["en", "nb", "fi"];
1809
+ var messages5 = JSON.parse('{"icon.title.error":"\xC5ttekant med utropstegn"}');
1810
+ var messages23 = JSON.parse('{"icon.title.error":"Octagon with exclamation point"}');
1811
+ var messages33 = JSON.parse('{"icon.title.error":"Kahdeksankulmio, jonka sis\xE4ll\xE4 on huutomerkki"}');
1812
+ var supportedLocales3 = ["en", "nb", "fi", "da", "sv"];
1731
1813
  var defaultLocale4 = "en";
1814
+ var detectByBrand3 = () => {
1815
+ let value;
1816
+ switch (process.env.NMP_BRAND) {
1817
+ case "FINN":
1818
+ value = "nb";
1819
+ break;
1820
+ case "TORI":
1821
+ value = "fi";
1822
+ break;
1823
+ case "BLOCKET":
1824
+ value = "sv";
1825
+ break;
1826
+ case "DBA":
1827
+ value = "da";
1828
+ break;
1829
+ default:
1830
+ value = "en";
1831
+ }
1832
+ return value;
1833
+ };
1834
+ var detectByHost3 = () => {
1835
+ var _a;
1836
+ const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
1837
+ if (hostname.includes("finn")) {
1838
+ return "nb";
1839
+ } else if (hostname.includes("tori")) {
1840
+ return "fi";
1841
+ } else if (hostname.includes("blocket")) {
1842
+ return "sv";
1843
+ } else if (hostname.includes("dba")) {
1844
+ return "da";
1845
+ } else {
1846
+ return defaultLocale4;
1847
+ }
1848
+ };
1732
1849
  var getSupportedLocale3 = (usedLocale) => {
1733
1850
  return supportedLocales3.find(
1734
1851
  (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
1735
- ) || defaultLocale4;
1852
+ ) || detectByHost3();
1736
1853
  };
1737
1854
  function detectLocale3() {
1855
+ var _a;
1738
1856
  if (typeof window === "undefined") {
1739
- const serverLocale = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
1857
+ const serverLocale = detectByBrand3();
1740
1858
  return getSupportedLocale3(serverLocale);
1741
1859
  }
1742
1860
  try {
1743
- const htmlLocale = document.documentElement.lang;
1744
- return getSupportedLocale3(htmlLocale);
1861
+ const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
1862
+ const hostLocale = detectByHost3();
1863
+ if (!supportedLocales3.includes(htmlLocale)) {
1864
+ console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
1865
+ return getSupportedLocale3(hostLocale);
1866
+ }
1867
+ return getSupportedLocale3(htmlLocale != null ? htmlLocale : hostLocale);
1745
1868
  } catch (e) {
1746
1869
  console.warn("could not detect locale, falling back to source locale", e);
1747
1870
  return defaultLocale4;
@@ -1761,37 +1884,78 @@ var activateI18n3 = (enMessages, nbMessages, fiMessages) => {
1761
1884
  i18n.activate(locale);
1762
1885
  };
1763
1886
  activateI18n3(messages23, messages5, messages33);
1764
- var IconAlertError16 = class extends LitElement3 {
1887
+ var IconError16 = class extends LitElement3 {
1765
1888
  render() {
1766
- const title = i18n.t({ message: `Red octagon with white exclamation point`, id: "icon.title.alert-error", comment: "Title for alert error icon" });
1767
- return html3`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-alert-error-16-part">${unsafeStatic3(`<title>${title}</title>`)}<path fill="currentColor" d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`;
1889
+ const title = i18n.t({ message: `Octagon with exclamation point`, id: "icon.title.error", comment: "Title for error icon" });
1890
+ return html3`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-error-16-part">${unsafeStatic3(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 11.107 4.748 15.5h6.503l4.248-4.393V4.893L11.252.5H4.748L.5 4.893z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 11.398a.25.25 0 1 1 0-.5m0 .5a.25.25 0 1 0 0-.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M8 8.5V3"></path></svg>`;
1768
1891
  }
1769
1892
  };
1770
- if (!customElements.get("w-icon-alert-error-16")) {
1771
- customElements.define("w-icon-alert-error-16", IconAlertError16);
1893
+ if (!customElements.get("w-icon-error-16")) {
1894
+ customElements.define("w-icon-error-16", IconError16);
1772
1895
  }
1773
1896
 
1774
- // node_modules/.pnpm/@warp-ds+icons@1.4.0/node_modules/@warp-ds/icons/dist/elements/alert-success-16.js
1897
+ // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/success-16.js
1775
1898
  import { LitElement as LitElement4 } from "lit";
1776
1899
  import { unsafeStatic as unsafeStatic4, html as html4 } from "lit/static-html.js";
1777
- var messages6 = JSON.parse('{"icon.title.alert-success":"Gr\xF8nn sirkel med sjekkmerke"}');
1778
- var messages24 = JSON.parse('{"icon.title.alert-success":"Green circle with checkmark"}');
1779
- var messages34 = JSON.parse('{"icon.title.alert-success":"Vihre\xE4 ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"}');
1780
- var supportedLocales4 = ["en", "nb", "fi"];
1900
+ var messages6 = JSON.parse('{"icon.title.success":"Sirkel med sjekkmerke"}');
1901
+ var messages24 = JSON.parse('{"icon.title.success":"Circle with checkmark"}');
1902
+ var messages34 = JSON.parse('{"icon.title.success":"Ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"}');
1903
+ var supportedLocales4 = ["en", "nb", "fi", "da", "sv"];
1781
1904
  var defaultLocale5 = "en";
1905
+ var detectByBrand4 = () => {
1906
+ let value;
1907
+ switch (process.env.NMP_BRAND) {
1908
+ case "FINN":
1909
+ value = "nb";
1910
+ break;
1911
+ case "TORI":
1912
+ value = "fi";
1913
+ break;
1914
+ case "BLOCKET":
1915
+ value = "sv";
1916
+ break;
1917
+ case "DBA":
1918
+ value = "da";
1919
+ break;
1920
+ default:
1921
+ value = "en";
1922
+ }
1923
+ return value;
1924
+ };
1925
+ var detectByHost4 = () => {
1926
+ var _a;
1927
+ const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
1928
+ if (hostname.includes("finn")) {
1929
+ return "nb";
1930
+ } else if (hostname.includes("tori")) {
1931
+ return "fi";
1932
+ } else if (hostname.includes("blocket")) {
1933
+ return "sv";
1934
+ } else if (hostname.includes("dba")) {
1935
+ return "da";
1936
+ } else {
1937
+ return defaultLocale5;
1938
+ }
1939
+ };
1782
1940
  var getSupportedLocale4 = (usedLocale) => {
1783
1941
  return supportedLocales4.find(
1784
1942
  (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
1785
- ) || defaultLocale5;
1943
+ ) || detectByHost4();
1786
1944
  };
1787
1945
  function detectLocale4() {
1946
+ var _a;
1788
1947
  if (typeof window === "undefined") {
1789
- const serverLocale = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
1948
+ const serverLocale = detectByBrand4();
1790
1949
  return getSupportedLocale4(serverLocale);
1791
1950
  }
1792
1951
  try {
1793
- const htmlLocale = document.documentElement.lang;
1794
- return getSupportedLocale4(htmlLocale);
1952
+ const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
1953
+ const hostLocale = detectByHost4();
1954
+ if (!supportedLocales4.includes(htmlLocale)) {
1955
+ console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
1956
+ return getSupportedLocale4(hostLocale);
1957
+ }
1958
+ return getSupportedLocale4(htmlLocale != null ? htmlLocale : hostLocale);
1795
1959
  } catch (e) {
1796
1960
  console.warn("could not detect locale, falling back to source locale", e);
1797
1961
  return defaultLocale5;
@@ -1811,14 +1975,14 @@ var activateI18n4 = (enMessages, nbMessages, fiMessages) => {
1811
1975
  i18n.activate(locale);
1812
1976
  };
1813
1977
  activateI18n4(messages24, messages6, messages34);
1814
- var IconAlertSuccess16 = class extends LitElement4 {
1978
+ var IconSuccess16 = class extends LitElement4 {
1815
1979
  render() {
1816
- const title = i18n.t({ message: `Green circle with checkmark`, id: "icon.title.alert-success", comment: "Title for alert success icon" });
1817
- return html4`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-alert-success-16-part">${unsafeStatic4(`<title>${title}</title>`)}<circle cx="8" cy="8" r="8" fill="currentColor" transform="rotate(180 8 8)"></circle><path fill="#fff" fill-rule="evenodd" d="M11.498 4.94a.75.75 0 0 1 .063 1.058l-4 4.5a.75.75 0 0 1-1.091.032l-2-2a.75.75 0 0 1 1.06-1.06l1.438 1.437 3.471-3.905a.75.75 0 0 1 1.06-.063Z" clip-rule="evenodd"></path></svg>`;
1980
+ const title = i18n.t({ message: `Circle with checkmark`, id: "icon.title.success", comment: "Title for success icon" });
1981
+ return html4`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-success-16-part">${unsafeStatic4(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m4 8.815 1.633 2.318a.7.7 0 0 0 1.138.034l5.228-6.615"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.5 7.999a7.5 7.5 0 1 0 15 0 7.5 7.5 0 0 0-15 0"></path></svg>`;
1818
1982
  }
1819
1983
  };
1820
- if (!customElements.get("w-icon-alert-success-16")) {
1821
- customElements.define("w-icon-alert-success-16", IconAlertSuccess16);
1984
+ if (!customElements.get("w-icon-success-16")) {
1985
+ customElements.define("w-icon-success-16", IconSuccess16);
1822
1986
  }
1823
1987
 
1824
1988
  // packages/alert/index.js
@@ -1857,13 +2021,13 @@ var WarpAlert = class extends WarpElement {
1857
2021
  }
1858
2022
  get _icon() {
1859
2023
  if (this.variant === variants.info)
1860
- return html5`<w-icon-alert-info-16></w-icon-alert-info-16>`;
2024
+ return html5`<w-icon-info-16></w-icon-info-16>`;
1861
2025
  if (this.variant === variants.warning)
1862
- return html5`<w-icon-alert-warning-16></w-icon-alert-warning-16>`;
2026
+ return html5`<w-icon-warning-16></w-icon-warning-16>`;
1863
2027
  if (this.variant === variants.negative)
1864
- return html5`<w-icon-alert-error-16></w-icon-alert-error-16>`;
2028
+ return html5`<w-icon-error-16></w-icon-error-16>`;
1865
2029
  if (this.variant === variants.positive)
1866
- return html5`<w-icon-alert-success-16></w-icon-alert-success-16>`;
2030
+ return html5`<w-icon-success-16></w-icon-success-16>`;
1867
2031
  else
1868
2032
  return "";
1869
2033
  }