@teppen/react-ui 1.5.10 → 1.5.12

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.
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- "use strict";var e=require("react/jsx-runtime"),l=require("react"),i=require("../hooks.js");function r(e){return Object.freeze({__proto__:null,default:e})}var t=l.lazy((function(){return Promise.resolve().then((function(){return r(require("./edit-button.js"))}))}));exports.TableCell=function(r){var n=i.useCell(r.id,r.row),c=n.type,o=n.component,s=n.onClickCell,a=n.onDoubleClick;return e.jsx("td",{id:r.id,className:"".concat(r.cellFormatClassName),onClick:r.isExistOnClickRow?void 0:s,onDoubleClick:r.isExistOnClickRow?void 0:a,children:e.jsxs("div",{className:"flex items-center gap-3 w-fit p-2 cursor-default",onClick:s,children:["component"===c?o:e.jsx("div",{onDoubleClick:a,children:e.jsx("p",{className:"cell-data text-left whitespace-nowrap",children:o})}),e.jsx(l.Suspense,{fallback:null,children:r.editable&&e.jsx(t,{})})]})})};
2
+ "use strict";var e=require("react/jsx-runtime"),l=require("../hooks.js");exports.TableCell=function(i){var c=l.useCell(i.id,i.row),o=c.type,s=c.component,n=c.onClickCell,t=c.onDoubleClick;return e.jsx("td",{id:i.id,className:"".concat(i.cellFormatClassName),onClick:i.isExistOnClickRow?void 0:n,onDoubleClick:i.isExistOnClickRow?void 0:t,children:e.jsx("div",{className:"flex items-center gap-3 min-h-12 w-fit p-2 cursor-default",onClick:n,children:"component"===o?s:e.jsx("div",{onDoubleClick:t,children:e.jsx("p",{className:"cell-data text-left whitespace-nowrap",children:s})})})})};
3
3
  //# sourceMappingURL=cell.js.map
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as e,jsxs as i}from"react/jsx-runtime";import{lazy as o,Suspense as l}from"react";import{useCell as t}from"../hooks.js";var c=o((function(){return import("./edit-button.js")}));function n(o){var n=t(o.id,o.row),r=n.type,a=n.component,s=n.onClickCell,d=n.onDoubleClick;return e("td",{id:o.id,className:"".concat(o.cellFormatClassName),onClick:o.isExistOnClickRow?void 0:s,onDoubleClick:o.isExistOnClickRow?void 0:d,children:i("div",{className:"flex items-center gap-3 w-fit p-2 cursor-default",onClick:s,children:["component"===r?a:e("div",{onDoubleClick:d,children:e("p",{className:"cell-data text-left whitespace-nowrap",children:a})}),e(l,{fallback:null,children:o.editable&&e(c,{})})]})})}export{n as TableCell};
2
+ import{jsx as i}from"react/jsx-runtime";import{useCell as e}from"../hooks.js";function o(o){var l=e(o.id,o.row),c=l.type,n=l.component,t=l.onClickCell,r=l.onDoubleClick;return i("td",{id:o.id,className:"".concat(o.cellFormatClassName),onClick:o.isExistOnClickRow?void 0:t,onDoubleClick:o.isExistOnClickRow?void 0:r,children:i("div",{className:"flex items-center gap-3 min-h-12 w-fit p-2 cursor-default",onClick:t,children:"component"===c?n:i("div",{onDoubleClick:r,children:i("p",{className:"cell-data text-left whitespace-nowrap",children:n})})})})}export{o as TableCell};
3
3
  //# sourceMappingURL=cell.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teppen/react-ui",
3
- "version": "1.5.10",
3
+ "version": "1.5.12",
4
4
  "description": "React UI Component",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "module": "dist/esm/src/index.js",
@@ -1,2 +0,0 @@
1
- "use strict";var L=require("../lib/iconBase.js");require("../lib/iconContext.js"),exports.LiaEdit=function(t){return L.GenIcon({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 25 4.03125 C 24.234375 4.03125 23.484375 4.328125 22.90625 4.90625 L 13 14.78125 L 12.78125 15 L 12.71875 15.3125 L 12.03125 18.8125 L 11.71875 20.28125 L 13.1875 19.96875 L 16.6875 19.28125 L 17 19.21875 L 17.21875 19 L 27.09375 9.09375 C 28.246094 7.941406 28.246094 6.058594 27.09375 4.90625 C 26.515625 4.328125 25.765625 4.03125 25 4.03125 Z M 25 5.96875 C 25.234375 5.96875 25.464844 6.089844 25.6875 6.3125 C 26.132813 6.757813 26.132813 7.242188 25.6875 7.6875 L 16 17.375 L 14.28125 17.71875 L 14.625 16 L 24.3125 6.3125 C 24.535156 6.089844 24.765625 5.96875 25 5.96875 Z M 4 8 L 4 28 L 24 28 L 24 14.8125 L 22 16.8125 L 22 26 L 6 26 L 6 10 L 15.1875 10 L 17.1875 8 Z"},child:[]}]})(t)};
2
- //# sourceMappingURL=index.js.map