@jsenv/navi 0.12.19 → 0.12.20

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.
@@ -10249,6 +10249,10 @@ const LAYOUT_PROPS = {
10249
10249
  box: () => {},
10250
10250
  row: () => {},
10251
10251
  column: () => {},
10252
+
10253
+ absolute: applyToCssPropWhenTruthy("position", "absolute", "static"),
10254
+ relative: applyToCssPropWhenTruthy("position", "relative", "static"),
10255
+ fixed: applyToCssPropWhenTruthy("position", "fixed", "static"),
10252
10256
  };
10253
10257
  const OUTER_SPACING_PROPS = {
10254
10258
  margin: PASS_THROUGH,
@@ -13788,6 +13792,10 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
13788
13792
  box-sizing: border-box;
13789
13793
  }
13790
13794
 
13795
+ .navi_icon[data-interactive] {
13796
+ cursor: pointer;
13797
+ }
13798
+
13791
13799
  .navi_icon_char_slot {
13792
13800
  opacity: 0;
13793
13801
  cursor: default;
@@ -13847,6 +13855,7 @@ const Icon = ({
13847
13855
  "aria-label": ariaLabel,
13848
13856
  role,
13849
13857
  decorative = false,
13858
+ onClick,
13850
13859
  ...props
13851
13860
  }) => {
13852
13861
  const innerChildren = href ? jsx("svg", {
@@ -13870,6 +13879,8 @@ const Icon = ({
13870
13879
  baseClassName: "navi_icon",
13871
13880
  "data-width": width,
13872
13881
  "data-height": height,
13882
+ "data-interactive": onClick ? "" : undefined,
13883
+ onClick: onClick,
13873
13884
  children: innerChildren
13874
13885
  });
13875
13886
  }
@@ -13889,6 +13900,8 @@ const Icon = ({
13889
13900
  "data-icon-char": "",
13890
13901
  "data-width": width,
13891
13902
  "data-height": height,
13903
+ "data-interactive": onClick ? "" : undefined,
13904
+ onClick: onClick,
13892
13905
  children: [jsx("span", {
13893
13906
  className: "navi_icon_char_slot",
13894
13907
  "aria-hidden": "true",
@@ -13908,6 +13921,7 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
13908
13921
  .navi_link {
13909
13922
  --link-border-radius: 2px;
13910
13923
  --link-outline-color: var(--navi-focus-outline-color);
13924
+ --link-loader-color: var(--navi-loader-color);
13911
13925
  --link-color: rgb(0, 0, 238);
13912
13926
  --link-color-visited: light-dark(#6a1b9a, #ab47bc);
13913
13927
  --link-color-active: red;
@@ -14137,7 +14151,7 @@ const LinkPlain = props => {
14137
14151
  },
14138
14152
  children: [jsx(LoaderBackground, {
14139
14153
  loading: loading,
14140
- color: "light-dark(#355fcc, #3b82f6)"
14154
+ color: "var(--link-loader-color)"
14141
14155
  }), applySpacingOnTextChildren(children, spacing), innerIcon && jsx(Icon, {
14142
14156
  marginLeft: "xxs",
14143
14157
  children: innerIcon
@@ -17007,7 +17021,7 @@ const ButtonBasic = props => {
17007
17021
  children: [jsx(LoaderBackground, {
17008
17022
  loading: innerLoading,
17009
17023
  inset: -1,
17010
- color: "var(--loader-color)"
17024
+ color: "var(--button-loader-color)"
17011
17025
  }), renderButtonContentMemoized]
17012
17026
  });
17013
17027
  };