@spaceandtimelabs/makeinfinite-ui 0.57.2 → 0.57.3

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.d.ts CHANGED
@@ -1115,6 +1115,7 @@ export declare const RGEditLayout: (props: {
1115
1115
  isDraggable: boolean;
1116
1116
  isResizable: boolean;
1117
1117
  isDroppable: boolean;
1118
+ disableResize: boolean;
1118
1119
  }) => JSX_2.Element;
1119
1120
 
1120
1121
  declare interface RGFallbackComponentProps {
@@ -49261,7 +49261,7 @@ const jOe = OE.WidthProvider(OE.Responsive), zOe = jOe, FOe = Da.div`
49261
49261
 
49262
49262
  .react-grid-item:hover > .react-resizable-handle {
49263
49263
  z-index: 1000;
49264
- display: block !important;
49264
+ display: ${({ disableResize: e }) => e ? "none" : "block"} !important;
49265
49265
  position: absolute;
49266
49266
  width: 25px;
49267
49267
  height: 25px;
@@ -49312,7 +49312,7 @@ const jOe = OE.WidthProvider(OE.Responsive), zOe = jOe, FOe = Da.div`
49312
49312
  () => n * jE + qOe + BOe * (e.layouts.lg.length + 1),
49313
49313
  [n, e.layouts]
49314
49314
  );
49315
- return /* @__PURE__ */ g.jsx(FOe, { children: /* @__PURE__ */ g.jsx(HOe, { children: /* @__PURE__ */ g.jsx(
49315
+ return /* @__PURE__ */ g.jsx(FOe, { disableResize: !!e.disableResize, children: /* @__PURE__ */ g.jsx(HOe, { children: /* @__PURE__ */ g.jsx(
49316
49316
  zOe,
49317
49317
  {
49318
49318
  className: "layout",
@@ -8069,7 +8069,7 @@ object-assign
8069
8069
 
8070
8070
  .react-grid-item:hover > .react-resizable-handle {
8071
8071
  z-index: 1000;
8072
- display: block !important;
8072
+ display: ${({disableResize:e})=>e?"none":"block"} !important;
8073
8073
  position: absolute;
8074
8074
  width: 25px;
8075
8075
  height: 25px;
@@ -8112,7 +8112,7 @@ object-assign
8112
8112
  .react-grid-drag-handle {
8113
8113
  cursor: move;
8114
8114
  }
8115
- `,tE=50,hye=2*tE,fye=10,pye=e=>{const{activeCompDimension:t}=YR(),n=M.useMemo(()=>e.layouts.lg.reduce((r,i)=>r+i.h,0),[e.layouts]),o=M.useMemo(()=>n*tE+hye+fye*(e.layouts.lg.length+1),[n,e.layouts]);return g.jsx(dye,{children:g.jsx(uye,{children:g.jsx(lye,{className:"layout",rowHeight:tE,breakpoints:{lg:1200},cols:{lg:12},layouts:e.layouts,onLayoutChange:e.onLayoutChange,onResizeStop:e.onResize,onDrop:e.onDrop,onDragStop:e.onDrag,onDropDragOver:()=>t,draggableCancel:".cancel-drag",preventCollision:!1,isDraggable:e.isDraggable,isResizable:e.isResizable,isDroppable:e.isDroppable,autoSize:!0,margin:[0,0],containerPadding:[3,3],draggableHandle:".react-grid-drag-handle",style:{height:o},children:e.components})})})},yye=eE.WidthProvider(eE.Responsive),mye=Mi.div`
8115
+ `,tE=50,hye=2*tE,fye=10,pye=e=>{const{activeCompDimension:t}=YR(),n=M.useMemo(()=>e.layouts.lg.reduce((r,i)=>r+i.h,0),[e.layouts]),o=M.useMemo(()=>n*tE+hye+fye*(e.layouts.lg.length+1),[n,e.layouts]);return g.jsx(dye,{disableResize:!!e.disableResize,children:g.jsx(uye,{children:g.jsx(lye,{className:"layout",rowHeight:tE,breakpoints:{lg:1200},cols:{lg:12},layouts:e.layouts,onLayoutChange:e.onLayoutChange,onResizeStop:e.onResize,onDrop:e.onDrop,onDragStop:e.onDrag,onDropDragOver:()=>t,draggableCancel:".cancel-drag",preventCollision:!1,isDraggable:e.isDraggable,isResizable:e.isResizable,isDroppable:e.isDroppable,autoSize:!0,margin:[0,0],containerPadding:[3,3],draggableHandle:".react-grid-drag-handle",style:{height:o},children:e.components})})})},yye=eE.WidthProvider(eE.Responsive),mye=Mi.div`
8116
8116
  .grid-container {
8117
8117
  display: flex;
8118
8118
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@spaceandtimelabs/makeinfinite-ui",
3
3
  "author": "aw-sxt",
4
4
  "private": false,
5
- "version": "0.57.2",
5
+ "version": "0.57.3",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {