@jsenv/navi 0.27.79 → 0.27.81

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.
@@ -6781,6 +6781,19 @@ const TYPO_PROPS = {
6781
6781
  };
6782
6782
  },
6783
6783
  textAlign: PASS_THROUGH,
6784
+ textBox: PASS_THROUGH,
6785
+ textBoxTrim: PASS_THROUGH,
6786
+ textBoxEdge: PASS_THROUGH,
6787
+ // Bare boolean preset for the CSS "trim-both cap alphabetic" combo: trims
6788
+ // the invisible space the font adds above/below a line (down to
6789
+ // cap-height/alphabetic baseline) so text visually hugs its box — the
6790
+ // combo from MDN's own text-box example, most useful for compact things
6791
+ // like buttons/badges/labels. Use textBox/textBoxTrim/textBoxEdge
6792
+ // directly for any other combination.
6793
+ textBoxCrop: applyToCssPropWhenTruthy(
6794
+ "textBox",
6795
+ "trim-both cap alphabetic",
6796
+ ),
6784
6797
  };
6785
6798
  const VISUAL_PROPS = {
6786
6799
  outline: PASS_THROUGH,
@@ -50230,12 +50243,12 @@ const SidePanel = ({
50230
50243
  minHeight: toCssLength(minHeight),
50231
50244
  className: withPropsClassName("navi_side_panel", className),
50232
50245
  "navi-side": side,
50246
+ ...rest,
50233
50247
  style: {
50234
50248
  "--navi-side-panel-width": toCssLength(width, "width"),
50235
50249
  "--navi-side-panel-height": toCssLength(height, "height"),
50236
50250
  ...rest.style
50237
50251
  },
50238
- ...rest,
50239
50252
  children: children
50240
50253
  });
50241
50254
  };