reifyui 0.6.0 → 0.6.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.
package/dist/index.cjs CHANGED
@@ -3066,6 +3066,7 @@ function sheetToAoA(sheet, { cellText = defaultCellValue } = {}) {
3066
3066
  // src/components/Carousel.jsx
3067
3067
  var import_react16 = __toESM(require("react"), 1);
3068
3068
  var import_jsx_runtime14 = require("react/jsx-runtime");
3069
+ var EDGE = 2;
3069
3070
  function Carousel(props) {
3070
3071
  const { label, step, children, classNames = {} } = props;
3071
3072
  const ref = (0, import_react16.useRef)(null);
@@ -3073,11 +3074,11 @@ function Carousel(props) {
3073
3074
  const measure = (0, import_react16.useCallback)(() => {
3074
3075
  const el = ref.current;
3075
3076
  if (!el) return;
3076
- const overflow = el.scrollWidth - el.clientWidth > 1;
3077
+ const overflow = el.scrollWidth - el.clientWidth > EDGE;
3077
3078
  setEdges({
3078
3079
  overflow,
3079
- start: el.scrollLeft <= 1,
3080
- end: el.scrollLeft >= el.scrollWidth - el.clientWidth - 1
3080
+ start: el.scrollLeft <= EDGE,
3081
+ end: el.scrollLeft >= el.scrollWidth - el.clientWidth - EDGE
3081
3082
  });
3082
3083
  }, []);
3083
3084
  (0, import_react16.useEffect)(() => {