@jsenv/navi 0.12.17 → 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.
@@ -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",
@@ -16945,6 +16957,7 @@ const ButtonBasic = props => {
16945
16957
  };
16946
16958
  const renderButtonContentMemoized = useCallback(renderButtonContent, []);
16947
16959
  return jsxs(Box, {
16960
+ box: "auto",
16948
16961
  ...rest,
16949
16962
  as: "button",
16950
16963
  ref: ref,