@jsenv/navi 0.29.160 → 0.29.161

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.
@@ -38892,7 +38892,7 @@ const TextAnchor = ({
38892
38892
  className: "navi_text_anchor",
38893
38893
  "aria-hidden": "true",
38894
38894
  hidden: true,
38895
- children: "\u200B"
38895
+ children: "​"
38896
38896
  })]
38897
38897
  });
38898
38898
  };
@@ -39301,7 +39301,7 @@ const REGULAR_SPACE = jsx("span", {
39301
39301
  const FAKE_SPACE = jsx("span", {
39302
39302
  "data-navi-space": "",
39303
39303
  style: "padding-left: 0.25em",
39304
- children: "\u200B"
39304
+ children: "​"
39305
39305
  });
39306
39306
  const CustomWidthSpace = ({
39307
39307
  value,
@@ -39324,13 +39324,13 @@ const CustomWidthSpace = ({
39324
39324
  children: " "
39325
39325
  }), jsx("span", {
39326
39326
  style: `padding-left: ${value}`,
39327
- children: "\u200B"
39327
+ children: "​"
39328
39328
  })]
39329
39329
  });
39330
39330
  }
39331
39331
  return jsx("span", {
39332
39332
  style: `padding-left: ${value}`,
39333
- children: "\u200B"
39333
+ children: "​"
39334
39334
  });
39335
39335
  };
39336
39336
 
@@ -39929,7 +39929,7 @@ const Icon = ({
39929
39929
  ref: textRef,
39930
39930
  children: [jsx("span", {
39931
39931
  style: "user-select:none",
39932
- children: "\u200B"
39932
+ children: "​"
39933
39933
  }), innerChildren]
39934
39934
  })
39935
39935
  });
@@ -54026,7 +54026,7 @@ const TimeRelative = ({
54026
54026
  if (children === undefined) {
54027
54027
  return jsx(TimeText, {
54028
54028
  ...props,
54029
- children: "\u2013"
54029
+ children: "–"
54030
54030
  });
54031
54031
  }
54032
54032
  const date = toDate(children);
@@ -61821,6 +61821,7 @@ const css$x = /* css */`@layer navi {
61821
61821
  --x-corner-top-right-radius: initial;
61822
61822
  --x-corner-bottom-right-radius: initial;
61823
61823
  --x-corner-bottom-left-radius: initial;
61824
+ box-sizing: border-box;
61824
61825
  width: inherit;
61825
61826
  min-width: inherit;
61826
61827
  max-width: var(--list-max-width, inherit);
@@ -62143,6 +62144,14 @@ const css$x = /* css */`@layer navi {
62143
62144
  animation: none;
62144
62145
  }
62145
62146
  `;
62147
+
62148
+ /* A padding on a list is space between its frame and its rows, so it belongs on
62149
+ the scroll box and not on the frame around it: on the frame it insets the
62150
+ scroll box as a whole, and the scrollbar — which is drawn at the edge of what
62151
+ scrolls — comes off the list's edge by that same amount, floating in the
62152
+ middle of the padding. On the scroll box the scrollbar stays against the
62153
+ border and the padding is what separates the rows from it. */
62154
+ const LIST_PADDING_PROP_SET = new Set(["padding", "paddingX", "paddingY", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft"]);
62146
62155
  const ListUI = props => {
62147
62156
  import.meta.css = [css$x, "@jsenv/navi/src/control/list/list.jsx"];
62148
62157
  const {
@@ -62184,6 +62193,13 @@ const ListUI = props => {
62184
62193
  virtual,
62185
62194
  ...rest
62186
62195
  } = props;
62196
+ const scrollBoxPaddingProps = {};
62197
+ for (const name of LIST_PADDING_PROP_SET) {
62198
+ if (name in rest) {
62199
+ scrollBoxPaddingProps[name] = rest[name];
62200
+ delete rest[name];
62201
+ }
62202
+ }
62187
62203
  // Accept a string (e.g. from an HTML attribute: renderBudget="50") the
62188
62204
  // same way a bare number would work — arithmetic below (renderBudget / 2,
62189
62205
  // start + renderBudget, etc.) would silently misbehave on a raw string
@@ -62338,7 +62354,7 @@ const ListUI = props => {
62338
62354
  children: [jsx("span", {
62339
62355
  className: "navi_list_error_icon",
62340
62356
  "aria-hidden": "true",
62341
- children: "\u26A0"
62357
+ children: "⚠"
62342
62358
  }), jsx("span", {
62343
62359
  children: error === true ? "Something went wrong." : error
62344
62360
  })]
@@ -62441,6 +62457,7 @@ const ListUI = props => {
62441
62457
  overflow: overflow,
62442
62458
  overflowX: overflowX,
62443
62459
  overflowY: overflowY,
62460
+ scrollBoxPaddingProps: scrollBoxPaddingProps,
62444
62461
  children: content
62445
62462
  })
62446
62463
  });
@@ -62678,6 +62695,7 @@ const ListContent = ({
62678
62695
  overflow,
62679
62696
  overflowX,
62680
62697
  overflowY,
62698
+ scrollBoxPaddingProps,
62681
62699
  children
62682
62700
  }) => {
62683
62701
  const listProps = useContext(BoxForwardedPropsContext);
@@ -62686,6 +62704,7 @@ const ListContent = ({
62686
62704
  overflow: overflow,
62687
62705
  overflowX: overflowX,
62688
62706
  overflowY: overflowY,
62707
+ ...scrollBoxPaddingProps,
62689
62708
  children: jsx(UnorderedList, {
62690
62709
  role: role,
62691
62710
  fallback: fallback,
@@ -64703,7 +64722,7 @@ const ListItemReal = props => {
64703
64722
  children: [jsx("span", {
64704
64723
  className: "navi_list_error_icon",
64705
64724
  "aria-hidden": "true",
64706
- children: "\u26A0"
64725
+ children: "⚠"
64707
64726
  }), jsx("span", {
64708
64727
  className: "navi_list_item_error_message",
64709
64728
  children: error === true ? "Something went wrong." : error
@@ -65586,7 +65605,7 @@ const ListItemsFailure = ({
65586
65605
  children: [jsx("span", {
65587
65606
  className: "navi_list_error_icon",
65588
65607
  "aria-hidden": "true",
65589
- children: "\u26A0"
65608
+ children: "⚠"
65590
65609
  }), jsx("span", {
65591
65610
  className: "navi_list_item_error_message",
65592
65611
  children: error && error.message ? error.message : naviI18n("list.rows_failed")
@@ -77747,7 +77766,7 @@ const ButtonCopyToClipboard = ({
77747
77766
  className: "navi_copied_notif",
77748
77767
  "aria-hidden": copied ? "false" : "true",
77749
77768
  opacity: copied ? 1 : 0,
77750
- children: "Copi\xE9 !"
77769
+ children: "Copié !"
77751
77770
  }), jsx(Button, {
77752
77771
  className: "navi_copy_button",
77753
77772
  flex: "y",