phx-react 1.3.976 → 1.3.978
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/cjs/components/Sortable/Sortable.d.ts +0 -1
- package/dist/cjs/components/Sortable/Sortable.js +1 -2
- package/dist/cjs/components/Sortable/Sortable.js.map +1 -1
- package/dist/esm/components/Sortable/Sortable.d.ts +0 -1
- package/dist/esm/components/Sortable/Sortable.js +1 -2
- package/dist/esm/components/Sortable/Sortable.js.map +1 -1
- package/package.json +3 -3
|
@@ -3,13 +3,12 @@ exports.__esModule = true;
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
var react_sortablejs_1 = require("react-sortablejs");
|
|
6
|
-
require("./style.css");
|
|
7
6
|
function Sortable(_a) {
|
|
8
7
|
var id = _a.id, list = _a.list, group = _a.group, _b = _a.enableBorder, enableBorder = _b === void 0 ? false : _b, renderItem = _a.renderItem, setList = _a.setList;
|
|
9
8
|
return (react_1["default"].createElement("div", { className: enableBorder ? 'shadow-xs rounded-lg bg-white border border-gray-200' : '' },
|
|
10
9
|
react_1["default"].createElement(react_sortablejs_1.ReactSortable, { list: list, setList: function (val) {
|
|
11
10
|
setList(id, val);
|
|
12
|
-
}, group: group, animation: 150, fallbackOnBody: true, handle: '.drag-item', swapThreshold: 0.65, chosenClass: 'item-chosen', ghostClass: 'item-ghost', dragClass: 'item-drag' }, list.map(function (item, index) { return (react_1["default"].createElement("div", { key: item.id }, renderItem(item, index))); }))));
|
|
11
|
+
}, group: group, animation: 150, fallbackOnBody: true, handle: '.drag-item', swapThreshold: 0.65, chosenClass: 'phx-item-chosen', ghostClass: 'phx-item-ghost', dragClass: 'phx-item-drag' }, list.map(function (item, index) { return (react_1["default"].createElement("div", { key: item.id }, renderItem(item, index))); }))));
|
|
13
12
|
}
|
|
14
13
|
exports["default"] = Sortable;
|
|
15
14
|
//# sourceMappingURL=Sortable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sortable.js","sourceRoot":"","sources":["../../../../src/components/Sortable/Sortable.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,qDAA+D;
|
|
1
|
+
{"version":3,"file":"Sortable.js","sourceRoot":"","sources":["../../../../src/components/Sortable/Sortable.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,qDAA+D;AAqB/D,SAAwB,QAAQ,CAA0B,EAOrC;QANnB,EAAE,QAAA,EACF,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,UAAU,gBAAA,EACV,OAAO,aAAA;IAEP,OAAO,CACL,0CAAK,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE;QACxF,iCAAC,gCAAa,IACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,UAAC,GAAG;gBACX,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;YAClB,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,GAAG,EACd,cAAc,EAAE,IAAI,EACpB,MAAM,EAAC,YAAY,EACnB,aAAa,EAAE,IAAI,EACnB,WAAW,EAAC,iBAAiB,EAC7B,UAAU,EAAC,gBAAgB,EAC3B,SAAS,EAAC,eAAe,IAExB,IAAI,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CACzB,0CAAK,GAAG,EAAE,IAAI,CAAC,EAAE,IAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAO,CACnD,EAF0B,CAE1B,CAAC,CACY,CACZ,CACP,CAAA;AACH,CAAC;AA9BD,8BA8BC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ReactSortable } from 'react-sortablejs';
|
|
3
|
-
import './style.css';
|
|
4
3
|
export default function Sortable(_a) {
|
|
5
4
|
var id = _a.id, list = _a.list, group = _a.group, _b = _a.enableBorder, enableBorder = _b === void 0 ? false : _b, renderItem = _a.renderItem, setList = _a.setList;
|
|
6
5
|
return (React.createElement("div", { className: enableBorder ? 'shadow-xs rounded-lg bg-white border border-gray-200' : '' },
|
|
7
6
|
React.createElement(ReactSortable, { list: list, setList: function (val) {
|
|
8
7
|
setList(id, val);
|
|
9
|
-
}, group: group, animation: 150, fallbackOnBody: true, handle: '.drag-item', swapThreshold: 0.65, chosenClass: 'item-chosen', ghostClass: 'item-ghost', dragClass: 'item-drag' }, list.map(function (item, index) { return (React.createElement("div", { key: item.id }, renderItem(item, index))); }))));
|
|
8
|
+
}, group: group, animation: 150, fallbackOnBody: true, handle: '.drag-item', swapThreshold: 0.65, chosenClass: 'phx-item-chosen', ghostClass: 'phx-item-ghost', dragClass: 'phx-item-drag' }, list.map(function (item, index) { return (React.createElement("div", { key: item.id }, renderItem(item, index))); }))));
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=Sortable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sortable.js","sourceRoot":"","sources":["../../../../src/components/Sortable/Sortable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAiB,aAAa,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"Sortable.js","sourceRoot":"","sources":["../../../../src/components/Sortable/Sortable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAiB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAqB/D,MAAM,CAAC,OAAO,UAAU,QAAQ,CAA0B,EAOrC;QANnB,EAAE,QAAA,EACF,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,UAAU,gBAAA,EACV,OAAO,aAAA;IAEP,OAAO,CACL,6BAAK,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE;QACxF,oBAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,UAAC,GAAG;gBACX,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;YAClB,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,GAAG,EACd,cAAc,EAAE,IAAI,EACpB,MAAM,EAAC,YAAY,EACnB,aAAa,EAAE,IAAI,EACnB,WAAW,EAAC,iBAAiB,EAC7B,UAAU,EAAC,gBAAgB,EAC3B,SAAS,EAAC,eAAe,IAExB,IAAI,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CACzB,6BAAK,GAAG,EAAE,IAAI,CAAC,EAAE,IAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAO,CACnD,EAF0B,CAE1B,CAAC,CACY,CACZ,CACP,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phx-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.978",
|
|
4
4
|
"description": "PHX REACT",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"axios": "^1.5.0",
|
|
101
101
|
"crypto-js": "^4.2.0",
|
|
102
102
|
"date-fns": "^2.30.0",
|
|
103
|
-
"react-sortablejs": "^6.1.4",
|
|
104
103
|
"recharts": "^2.12.7",
|
|
105
|
-
"sortablejs": "^1.15.6"
|
|
104
|
+
"sortablejs": "^1.15.6",
|
|
105
|
+
"react-sortablejs": "^6.1.4"
|
|
106
106
|
},
|
|
107
107
|
"resolutions": {
|
|
108
108
|
"@types/mime": "3.0.4",
|