@jsenv/navi 0.23.6 → 0.23.7

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.
@@ -6743,6 +6743,15 @@ const prepareStyleValue = (
6743
6743
  return mergedValue;
6744
6744
  };
6745
6745
 
6746
+ const negativeEntries = (map) => {
6747
+ const result = {};
6748
+ for (const key of Object.keys(map)) {
6749
+ result[`-${key}`] = `calc(-1 * ${map[key]})`;
6750
+ }
6751
+ return result;
6752
+ };
6753
+
6754
+
6746
6755
  // Unified design scale using t-shirt sizes with rem units for accessibility.
6747
6756
  // This scale is used for spacing to create visual harmony
6748
6757
  // and consistent proportions throughout the design system.
@@ -6755,6 +6764,7 @@ const SIZE_MAP = {
6755
6764
  xl: "var(--navi-xl)",
6756
6765
  xxl: "var(--navi-xxl)",
6757
6766
  };
6767
+ Object.assign(SIZE_MAP, negativeEntries(SIZE_MAP));
6758
6768
  const TYPO_SIZE_MAP = {
6759
6769
  xxs: "var(--navi-typo-xxs)",
6760
6770
  xs: "var(--navi-typo-xs)",
@@ -6764,6 +6774,7 @@ const TYPO_SIZE_MAP = {
6764
6774
  xl: "var(--navi-typo-xl)",
6765
6775
  xxl: "var(--navi-typo-xxl)",
6766
6776
  };
6777
+ Object.assign(TYPO_SIZE_MAP, negativeEntries(TYPO_SIZE_MAP));
6767
6778
  const sizeSpacingScaleKeys = new Set(Object.keys(SIZE_MAP));
6768
6779
  const isSizeSpacingScaleKey = (key) => {
6769
6780
  return sizeSpacingScaleKeys.has(key);