@jsenv/navi 0.12.16 → 0.12.18

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.
@@ -10572,7 +10572,7 @@ const getStylePropGroup = (name) => {
10572
10572
  };
10573
10573
  const getNormalizer = (key) => {
10574
10574
  if (key === "borderRadius") {
10575
- return normalizeTypoStyle;
10575
+ return normalizeSpacingStyle;
10576
10576
  }
10577
10577
  const group = getStylePropGroup(key);
10578
10578
  if (group === "margin" || group === "padding") {
@@ -11223,12 +11223,23 @@ const Box = props => {
11223
11223
  const defaultRef = useRef();
11224
11224
  const ref = props.ref || defaultRef;
11225
11225
  const TagName = as;
11226
- const {
11226
+ let {
11227
11227
  box,
11228
- inline = box,
11228
+ inline,
11229
11229
  row,
11230
- column = box
11230
+ column
11231
11231
  } = rest;
11232
+ if (box === "auto") {
11233
+ box = Boolean(rest.contentAlignX || rest.contentAlignY);
11234
+ }
11235
+ if (box) {
11236
+ if (inline === undefined) {
11237
+ inline = true;
11238
+ }
11239
+ if (column === undefined) {
11240
+ column = true;
11241
+ }
11242
+ }
11232
11243
  let layout;
11233
11244
  if (inline) {
11234
11245
  if (row) {
@@ -14033,6 +14044,7 @@ const LinkPlain = props => {
14033
14044
  innerIcon = icon;
14034
14045
  }
14035
14046
  return jsxs(Box, {
14047
+ box: "auto",
14036
14048
  ...rest,
14037
14049
  ref: ref,
14038
14050
  as: "a",
@@ -16741,7 +16753,7 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
16741
16753
  --x-button-color: var(--button-color);
16742
16754
 
16743
16755
  position: relative;
16744
- display: inline-flex;
16756
+ /* display: inline-flex; */
16745
16757
  box-sizing: border-box;
16746
16758
  padding: 0;
16747
16759
  background: none;
@@ -16866,6 +16878,10 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
16866
16878
  .navi_button[data-discrete][data-disabled] {
16867
16879
  --x-button-border-color: transparent;
16868
16880
  }
16881
+
16882
+ .navi_button > img {
16883
+ border-radius: inherit;
16884
+ }
16869
16885
  `;
16870
16886
  const Button = props => {
16871
16887
  return renderActionableComponent(props, {
@@ -16941,6 +16957,7 @@ const ButtonBasic = props => {
16941
16957
  };
16942
16958
  const renderButtonContentMemoized = useCallback(renderButtonContent, []);
16943
16959
  return jsxs(Box, {
16960
+ box: "auto",
16944
16961
  ...rest,
16945
16962
  as: "button",
16946
16963
  ref: ref,
@@ -21543,6 +21560,8 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
21543
21560
  text-align: center;
21544
21561
  line-height: 1.5em;
21545
21562
  vertical-align: middle;
21563
+ background: var(--background);
21564
+ background-color: var(--background-color, var(--background));
21546
21565
  border-radius: var(--border-radius, 1em);
21547
21566
  }
21548
21567
  `;
@@ -21552,6 +21571,7 @@ const BadgeManagedByCSSVars = {
21552
21571
  paddingRight: "--padding-right",
21553
21572
  paddingLeft: "--padding-left",
21554
21573
  backgroundColor: "--background-color",
21574
+ background: "--background",
21555
21575
  borderColor: "--border-color",
21556
21576
  color: "--color"
21557
21577
  };