@jsenv/navi 0.20.2 → 0.20.4

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.
@@ -6288,6 +6288,7 @@ const DIMENSION_PROPS = {
6288
6288
  borderRadius: "100%",
6289
6289
  };
6290
6290
  },
6291
+ aspectRatio: PASS_THROUGH,
6291
6292
  expand: applyOnTwoProps("expandX", "expandY"),
6292
6293
  shrink: applyOnTwoProps("shrinkX", "shrinkY"),
6293
6294
  // apply after width/height to override if both are set
@@ -19141,7 +19142,7 @@ const TextOverflow = ({
19141
19142
  }) => {
19142
19143
  const [OverflowPinnedElement, setOverflowPinnedElement] = useState(null);
19143
19144
  return jsx(Text, {
19144
- column: true,
19145
+ flex: true,
19145
19146
  as: "div",
19146
19147
  nowWrap: noWrap,
19147
19148
  pre: !noWrap
@@ -19213,7 +19214,7 @@ const TextBasic = ({
19213
19214
  ...rest,
19214
19215
  "baseClassName": withPropsClassName("navi_text", rest.baseClassName)
19215
19216
  };
19216
- const shouldPreserveSpacing = rest.as === "pre" || rest.box || rest.column || rest.row;
19217
+ const shouldPreserveSpacing = rest.as === "pre" || rest.flex || rest.grid;
19217
19218
  if (shouldPreserveSpacing) {
19218
19219
  boxProps.spacing = spacing;
19219
19220
  } else {
@@ -19320,18 +19321,18 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
19320
19321
  height: 100%;
19321
19322
  backface-visibility: hidden;
19322
19323
  }
19323
- .navi_icon[data-has-width] > svg,
19324
- .navi_icon[data-has-width] > img {
19324
+ .navi_icon[data-width-fixed] > svg,
19325
+ .navi_icon[data-width-fixed] > img {
19325
19326
  width: 100%;
19326
19327
  height: auto;
19327
19328
  }
19328
- .navi_icon[data-has-height] > svg,
19329
- .navi_icon[data-has-height] > img {
19329
+ .navi_icon[data-height-fixed] > svg,
19330
+ .navi_icon[data-height-fixed] > img {
19330
19331
  width: auto;
19331
19332
  height: 100%;
19332
19333
  }
19333
- .navi_icon[data-has-width][data-has-height] > svg,
19334
- .navi_icon[data-has-width][data-has-height] > img {
19334
+ .navi_icon[data-width-fixed][data-height-fixed] > svg,
19335
+ .navi_icon[data-width-fixed][data-height-fixed] > img {
19335
19336
  width: 100%;
19336
19337
  height: 100%;
19337
19338
  }
@@ -19369,7 +19370,9 @@ const Icon = ({
19369
19370
  }
19370
19371
  const hasExplicitWidth = width !== undefined;
19371
19372
  const hasExplicitHeight = height !== undefined;
19372
- if (hasExplicitWidth || hasExplicitHeight) {
19373
+ const widthFixed = hasExplicitWidth || hasExplicitHeight && (props.square || props.circle || props.aspectRatio);
19374
+ const heightFixed = hasExplicitHeight || hasExplicitWidth && (props.square || props.circle || props.aspectRatio);
19375
+ if (widthFixed || heightFixed) {
19373
19376
  if (flex === undefined) {
19374
19377
  flex = "x";
19375
19378
  }
@@ -19394,8 +19397,8 @@ const Icon = ({
19394
19397
  ...ariaProps,
19395
19398
  flex: flex,
19396
19399
  baseClassName: "navi_icon",
19397
- "data-has-width": hasExplicitWidth ? "" : undefined,
19398
- "data-has-height": hasExplicitHeight ? "" : undefined,
19400
+ "data-width-fixed": widthFixed ? "" : undefined,
19401
+ "data-height-fixed": heightFixed ? "" : undefined,
19399
19402
  "data-interactive": onClick ? "" : undefined,
19400
19403
  onClick: onClick,
19401
19404
  children: innerChildren
@@ -19408,8 +19411,8 @@ const Icon = ({
19408
19411
  className: withPropsClassName("navi_icon", props.className),
19409
19412
  spacing: "pre",
19410
19413
  "data-icon-char": "",
19411
- "data-has-width": hasExplicitWidth ? "" : undefined,
19412
- "data-has-height": hasExplicitHeight ? "" : undefined,
19414
+ "data-width-fixed": widthFixed ? "" : undefined,
19415
+ "data-height-fixed": heightFixed ? "" : undefined,
19413
19416
  "data-interactive": onClick ? "" : undefined,
19414
19417
  onClick: onClick,
19415
19418
  children: [jsx("span", {