@jsenv/navi 0.22.0 → 0.22.1

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.
@@ -20034,7 +20034,9 @@ installImportMetaCssBuild(import.meta);const css$7 = /* css */`
20034
20034
  const SurroundingTextAligner = ({
20035
20035
  children,
20036
20036
  align = "baseline",
20037
- childRef
20037
+ childRef,
20038
+ textSize,
20039
+ size
20038
20040
  }) => {
20039
20041
  import.meta.css = [css$7, "@jsenv/navi/src/text/surrounding_text_aligner.jsx"];
20040
20042
  const anchorRef = useRef();
@@ -20056,7 +20058,7 @@ const SurroundingTextAligner = ({
20056
20058
  childEl.style.position = "";
20057
20059
  childEl.style.top = "";
20058
20060
  }
20059
- });
20061
+ }, [size, textSize]);
20060
20062
  return jsxs(Fragment, {
20061
20063
  children: [children, jsx("span", {
20062
20064
  ref: anchorRef,
@@ -20880,6 +20882,8 @@ const Icon = ({
20880
20882
  return jsx(SurroundingTextAligner, {
20881
20883
  align: "center",
20882
20884
  childRef: textRef,
20885
+ size: props.size,
20886
+ textSize: props.textSize,
20883
20887
  children: jsxs(Text, {
20884
20888
  ...props,
20885
20889
  ...ariaProps,
@@ -30660,6 +30664,7 @@ const BadgeCount = ({
30660
30664
  // so that visually the interface do not suddently switch from circle to ellipse depending on the count
30661
30665
  circle,
30662
30666
  max = circle ? MAX_FOR_CIRCLE : Infinity,
30667
+ textSize,
30663
30668
  integer,
30664
30669
  lang,
30665
30670
  loading,
@@ -30688,6 +30693,8 @@ const BadgeCount = ({
30688
30693
  return jsx(SurroundingTextAligner, {
30689
30694
  align: "center",
30690
30695
  childRef: ref,
30696
+ size: props.size,
30697
+ textSize: textSize,
30691
30698
  children: jsxs(BadgeCountCircle, {
30692
30699
  ...props,
30693
30700
  loading: loading,
@@ -30704,6 +30711,8 @@ const BadgeCount = ({
30704
30711
  return jsx(SurroundingTextAligner, {
30705
30712
  align: "center",
30706
30713
  childRef: ref,
30714
+ size: props.size,
30715
+ textSize: textSize,
30707
30716
  children: jsxs(BadgeCountEllipse, {
30708
30717
  ...props,
30709
30718
  loading: loading,