reifyui 0.6.0 → 0.6.2

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.js CHANGED
@@ -2580,6 +2580,34 @@ function SheetGrid({
2580
2580
  },
2581
2581
  title: c.error || "",
2582
2582
  children: [
2583
+ !readOnly && /* @__PURE__ */ jsxs12(Fragment8, { children: [
2584
+ /* @__PURE__ */ jsx13(
2585
+ "span",
2586
+ {
2587
+ className: "shg-resize-col shg-resize-in-cell",
2588
+ onClick: (e) => e.stopPropagation(),
2589
+ onMouseDown: (e) => startResize(
2590
+ e,
2591
+ "col",
2592
+ col.id,
2593
+ colWidth(col) || e.currentTarget.closest("td").offsetWidth
2594
+ )
2595
+ }
2596
+ ),
2597
+ /* @__PURE__ */ jsx13(
2598
+ "span",
2599
+ {
2600
+ className: "shg-resize-row shg-resize-in-cell",
2601
+ onClick: (e) => e.stopPropagation(),
2602
+ onMouseDown: (e) => startResize(
2603
+ e,
2604
+ "row",
2605
+ row.id,
2606
+ rowHeight(row) || e.currentTarget.closest("tr").offsetHeight
2607
+ )
2608
+ }
2609
+ )
2610
+ ] }),
2583
2611
  peer && /* @__PURE__ */ jsx13("span", { className: "shg-peer-flag", style: { background: peer.color }, children: peer.name }),
2584
2612
  isEditing ? renderEditor(col) : /* @__PURE__ */ jsx13(
2585
2613
  "div",
@@ -2851,6 +2879,7 @@ function sheetToAoA(sheet, { cellText = defaultCellValue } = {}) {
2851
2879
  // src/components/Carousel.jsx
2852
2880
  import React9, { useCallback as useCallback5, useEffect as useEffect9, useRef as useRef8, useState as useState9 } from "react";
2853
2881
  import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2882
+ var EDGE = 2;
2854
2883
  function Carousel(props) {
2855
2884
  const { label, step, children, classNames = {} } = props;
2856
2885
  const ref = useRef8(null);
@@ -2858,11 +2887,11 @@ function Carousel(props) {
2858
2887
  const measure = useCallback5(() => {
2859
2888
  const el = ref.current;
2860
2889
  if (!el) return;
2861
- const overflow = el.scrollWidth - el.clientWidth > 1;
2890
+ const overflow = el.scrollWidth - el.clientWidth > EDGE;
2862
2891
  setEdges({
2863
2892
  overflow,
2864
- start: el.scrollLeft <= 1,
2865
- end: el.scrollLeft >= el.scrollWidth - el.clientWidth - 1
2893
+ start: el.scrollLeft <= EDGE,
2894
+ end: el.scrollLeft >= el.scrollWidth - el.clientWidth - EDGE
2866
2895
  });
2867
2896
  }, []);
2868
2897
  useEffect9(() => {