@20minutes/hela 2.16.10 → 2.17.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.
Files changed (28) hide show
  1. package/dist/index.es.js +1062 -869
  2. package/dist/index.umd.cjs +1 -0
  3. package/dist/js/scripts.es.js +7 -4
  4. package/dist/js/{scripts.umd.js → scripts.umd.cjs} +1 -1
  5. package/dist/scss/abstracts/variables/_token-variables.scss +69 -69
  6. package/dist/scss/abstracts/variables/_variables.scss +45 -46
  7. package/dist/src/components/atoms/InlineSeparator/InlineSeparator.stories.d.ts +1 -1
  8. package/dist/src/components/atoms/Link/Link.d.ts +5 -3
  9. package/dist/src/components/atoms/Link/Link.stories.d.ts +3 -1
  10. package/dist/src/components/atoms/ScrollToTopButton/ScrollToTopButton.stories.d.ts +112 -112
  11. package/dist/src/components/atoms/SkipLink/SkipLink.stories.d.ts +1 -1
  12. package/dist/src/components/molecules/DiscoverList/DiscoverList.stories.d.ts +104 -104
  13. package/dist/src/components/molecules/Elections/SearchBanner/SearchBanner.stories.d.ts +69 -69
  14. package/dist/src/components/molecules/VerticalTimeline/VerticalTimeline.stories.d.ts +105 -105
  15. package/dist/src/components/organisms/Footer/Footer.stories.d.ts +2 -2
  16. package/dist/src/constants/cssProperties/typography.d.ts +5 -4
  17. package/dist/src/constants/tokenNameList.d.ts +5 -5
  18. package/dist/src/constants/tokenVariables.d.ts +364 -132
  19. package/dist/src/helpers/forwardRef.d.ts +2 -2
  20. package/dist/src/helpers/imgHelper.d.ts +1 -1
  21. package/dist/src/helpers/storybookHelper.d.ts +3 -3
  22. package/dist/src/helpers/systemPropsHelper/classNameWithModifier.d.ts +2 -2
  23. package/dist/src/helpers/systemPropsHelper/classNamesWithModifiers.d.ts +3 -3
  24. package/dist/src/helpers/systemPropsHelper/typographySystemClassName.d.ts +1 -1
  25. package/dist/src/types/ComponentWithAs.d.ts +3 -2
  26. package/dist/style.css +1 -1
  27. package/package.json +38 -40
  28. package/dist/index.umd.js +0 -1
@@ -4743,8 +4743,11 @@ const Di = () => {
4743
4743
  return Array.from(s).find((o, r, a) => {
4744
4744
  if (r === a.length - 1)
4745
4745
  return !1;
4746
- const l = N(o.textContent), c = N(a[r + 1].textContent);
4747
- return t >= l && t < c ? (e = o.textContent, i = a[r + 1].textContent, n = r, !0) : !1;
4746
+ const l = o.textContent, c = a[r + 1].textContent;
4747
+ if (!l || !c)
4748
+ return !1;
4749
+ const h = N(l), d = N(c);
4750
+ return t >= h && t < d ? (e = l, i = c, n = r, !0) : !1;
4748
4751
  }), { currentIntervalStartTime: e, currentIntervalEndTime: i, currentIntervalIndex: n };
4749
4752
  }, Ki = () => {
4750
4753
  const s = document.querySelectorAll(".c-timeline__time");
@@ -4808,7 +4811,7 @@ const Di = () => {
4808
4811
  const s = document.querySelector(".c-map-towns");
4809
4812
  if (!s) {
4810
4813
  new MutationObserver((n, o) => {
4811
- document.querySelector(".c-map-towns") && (o.disconnect(), Ot());
4814
+ typeof document < "u" && document.querySelector(".c-map-towns") && (o.disconnect(), Ot());
4812
4815
  }).observe(document.body, { childList: !0, subtree: !0 });
4813
4816
  return;
4814
4817
  }
@@ -4886,7 +4889,7 @@ const X = () => {
4886
4889
  return;
4887
4890
  if (!document.querySelector(".c-map-towns")) {
4888
4891
  new MutationObserver((d, u) => {
4889
- document.querySelector(".c-map-towns") && (u.disconnect(), X());
4892
+ typeof document < "u" && document.querySelector(".c-map-towns") && (u.disconnect(), X());
4890
4893
  }).observe(document.body, { childList: !0, subtree: !0 });
4891
4894
  return;
4892
4895
  }