@jsenv/navi 0.20.11 → 0.20.12

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.
@@ -7424,8 +7424,12 @@ const updateStyle = (element, style, preventInitialTransition) => {
7424
7424
  // Apply all styles normally (excluding transition during anti-flicker)
7425
7425
  const keysToDelete = new Set(oldStyleKeySet);
7426
7426
  for (const key of styleKeySetToApply) {
7427
- keysToDelete.delete(key);
7428
7427
  const value = style[key];
7428
+ if (value === undefined || value === null) {
7429
+ // Treat undefined/null as "remove" — leave key in keysToDelete
7430
+ continue;
7431
+ }
7432
+ keysToDelete.delete(key);
7429
7433
  if (key.startsWith("--")) {
7430
7434
  element.style.setProperty(key, value);
7431
7435
  } else {
@@ -30186,25 +30190,19 @@ const BadgeStyleCSSVars$1 = {
30186
30190
  };
30187
30191
  const Badge = ({
30188
30192
  children,
30193
+ className,
30189
30194
  ...props
30190
30195
  }) => {
30191
30196
  const defaultRef = useRef();
30192
30197
  const ref = props.ref || defaultRef;
30193
30198
  useDarkBackgroundAttribute(ref);
30194
- return jsxs(Text, {
30199
+ return jsx(Text, {
30195
30200
  ref: ref,
30196
- className: "navi_badge",
30201
+ className: withPropsClassName("navi_badge", className),
30197
30202
  bold: true,
30198
30203
  ...props,
30199
30204
  styleCSSVars: BadgeStyleCSSVars$1,
30200
- spacing: "pre",
30201
- children: [jsx("span", {
30202
- style: "user-select: none",
30203
- children: "\u200B"
30204
- }), children, jsx("span", {
30205
- style: "user-select: none",
30206
- children: "\u200B"
30207
- })]
30205
+ children: children
30208
30206
  });
30209
30207
  };
30210
30208
 
@@ -30451,14 +30449,15 @@ const applyMaxToValue = (max, value) => {
30451
30449
  const BadgeCountEllipse = ({
30452
30450
  ref,
30453
30451
  loading,
30454
- children,
30455
30452
  hasOverflow,
30456
30453
  charCount,
30454
+ className,
30455
+ children,
30457
30456
  ...props
30458
30457
  }) => {
30459
30458
  return jsx(Text, {
30460
30459
  ref: ref,
30461
- className: "navi_badge_count",
30460
+ className: withPropsClassName("navi_badge_count", className),
30462
30461
  bold: true,
30463
30462
  "data-ellipse": "",
30464
30463
  "data-value-overflow": hasOverflow ? "" : undefined,
@@ -30485,12 +30484,13 @@ const BadgeCountCircle = ({
30485
30484
  charCount,
30486
30485
  hasOverflow,
30487
30486
  loading,
30487
+ className,
30488
30488
  children,
30489
30489
  ...props
30490
30490
  }) => {
30491
30491
  return jsx(Text, {
30492
30492
  ref: ref,
30493
- className: "navi_badge_count",
30493
+ className: withPropsClassName("navi_badge_count", className),
30494
30494
  "data-circle": "",
30495
30495
  bold: true,
30496
30496
  "data-loading": loading ? "" : undefined,