@jsenv/navi 0.20.3 → 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.
@@ -19370,7 +19370,9 @@ const Icon = ({
19370
19370
  }
19371
19371
  const hasExplicitWidth = width !== undefined;
19372
19372
  const hasExplicitHeight = height !== undefined;
19373
- 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) {
19374
19376
  if (flex === undefined) {
19375
19377
  flex = "x";
19376
19378
  }
@@ -19380,8 +19382,6 @@ const Icon = ({
19380
19382
  const ariaProps = decorative ? {
19381
19383
  "aria-hidden": "true"
19382
19384
  } : {};
19383
- const widthConstrained = hasExplicitWidth || hasExplicitHeight && (props.square || props.circle || props.aspectRatio);
19384
- const heightConstrained = hasExplicitHeight || hasExplicitWidth && (props.square || props.circle || props.aspectRatio);
19385
19385
  if (typeof children === "string") {
19386
19386
  return jsx(Text, {
19387
19387
  ...props,
@@ -19397,8 +19397,8 @@ const Icon = ({
19397
19397
  ...ariaProps,
19398
19398
  flex: flex,
19399
19399
  baseClassName: "navi_icon",
19400
- "data-width-fixed": widthConstrained ? "" : undefined,
19401
- "data-height-fixed": heightConstrained ? "" : undefined,
19400
+ "data-width-fixed": widthFixed ? "" : undefined,
19401
+ "data-height-fixed": heightFixed ? "" : undefined,
19402
19402
  "data-interactive": onClick ? "" : undefined,
19403
19403
  onClick: onClick,
19404
19404
  children: innerChildren
@@ -19411,8 +19411,8 @@ const Icon = ({
19411
19411
  className: withPropsClassName("navi_icon", props.className),
19412
19412
  spacing: "pre",
19413
19413
  "data-icon-char": "",
19414
- "data-width-fixed": widthConstrained ? "" : undefined,
19415
- "data-height-fixed": heightConstrained ? "" : undefined,
19414
+ "data-width-fixed": widthFixed ? "" : undefined,
19415
+ "data-height-fixed": heightFixed ? "" : undefined,
19416
19416
  "data-interactive": onClick ? "" : undefined,
19417
19417
  onClick: onClick,
19418
19418
  children: [jsx("span", {