react-native-reorderable-list 0.4.0 → 0.5.0
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/LICENSE +1 -1
- package/README.md +118 -60
- package/lib/commonjs/components/ReorderableList/ReorderableList.js +99 -0
- package/lib/commonjs/components/ReorderableList/ReorderableList.js.map +1 -0
- package/lib/commonjs/components/ReorderableList/constants.ios.js +10 -0
- package/lib/commonjs/components/ReorderableList/constants.ios.js.map +1 -0
- package/lib/commonjs/components/ReorderableList/constants.js +10 -0
- package/lib/commonjs/components/ReorderableList/constants.js.map +1 -0
- package/lib/commonjs/components/ReorderableList/index.js +17 -0
- package/lib/commonjs/components/ReorderableList/index.js.map +1 -0
- package/lib/commonjs/components/ReorderableList/useReorderableList.js +311 -0
- package/lib/commonjs/components/ReorderableList/useReorderableList.js.map +1 -0
- package/lib/commonjs/components/ReorderableListCell.js +93 -0
- package/lib/commonjs/components/ReorderableListCell.js.map +1 -0
- package/lib/commonjs/components/ReorderableListItem.js +87 -0
- package/lib/commonjs/components/ReorderableListItem.js.map +1 -0
- package/lib/commonjs/components/index.js +39 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/contexts/ReorderableCellContext.js +10 -0
- package/lib/commonjs/contexts/ReorderableCellContext.js.map +1 -0
- package/lib/commonjs/contexts/ReorderableListContext.js +10 -0
- package/lib/commonjs/contexts/ReorderableListContext.js.map +1 -0
- package/lib/commonjs/contexts/index.js +28 -0
- package/lib/commonjs/contexts/index.js.map +1 -0
- package/lib/commonjs/hooks/index.js +50 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useContext.js +16 -0
- package/lib/commonjs/hooks/useContext.js.map +1 -0
- package/lib/commonjs/hooks/useReorderableDrag.js +16 -0
- package/lib/commonjs/hooks/useReorderableDrag.js.map +1 -0
- package/lib/commonjs/hooks/useReorderableDragEnd.js +28 -0
- package/lib/commonjs/hooks/useReorderableDragEnd.js.map +1 -0
- package/lib/commonjs/hooks/useReorderableDragStart.js +22 -0
- package/lib/commonjs/hooks/useReorderableDragStart.js.map +1 -0
- package/lib/commonjs/index.js +41 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/types/index.js +28 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/misc.js +14 -0
- package/lib/commonjs/types/misc.js.map +1 -0
- package/lib/commonjs/types/props.js +6 -0
- package/lib/commonjs/types/props.js.map +1 -0
- package/lib/commonjs/utils.js +23 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/module/components/ReorderableList/ReorderableList.js +91 -0
- package/lib/module/components/ReorderableList/ReorderableList.js.map +1 -0
- package/lib/module/components/ReorderableList/constants.ios.js +4 -0
- package/lib/module/components/ReorderableList/constants.ios.js.map +1 -0
- package/lib/module/components/ReorderableList/constants.js +4 -0
- package/lib/module/components/ReorderableList/constants.js.map +1 -0
- package/lib/module/components/ReorderableList/index.js +2 -0
- package/lib/module/components/ReorderableList/index.js.map +1 -0
- package/lib/module/components/ReorderableList/useReorderableList.js +302 -0
- package/lib/module/components/ReorderableList/useReorderableList.js.map +1 -0
- package/lib/module/components/ReorderableListCell.js +85 -0
- package/lib/module/components/ReorderableListCell.js.map +1 -0
- package/lib/module/components/ReorderableListItem.js +78 -0
- package/lib/module/components/ReorderableListItem.js.map +1 -0
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/contexts/ReorderableCellContext.js +3 -0
- package/lib/module/contexts/ReorderableCellContext.js.map +1 -0
- package/lib/module/contexts/ReorderableListContext.js +3 -0
- package/lib/module/contexts/ReorderableListContext.js.map +1 -0
- package/lib/module/contexts/index.js +3 -0
- package/lib/module/contexts/index.js.map +1 -0
- package/lib/module/hooks/index.js +5 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useContext.js +9 -0
- package/lib/module/hooks/useContext.js.map +1 -0
- package/lib/module/hooks/useReorderableDrag.js +9 -0
- package/lib/module/hooks/useReorderableDrag.js.map +1 -0
- package/lib/module/hooks/useReorderableDragEnd.js +21 -0
- package/lib/module/hooks/useReorderableDragEnd.js.map +1 -0
- package/lib/module/hooks/useReorderableDragStart.js +15 -0
- package/lib/module/hooks/useReorderableDragStart.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/misc.js +8 -0
- package/lib/module/types/misc.js.map +1 -0
- package/lib/module/types/props.js +2 -0
- package/lib/module/types/props.js.map +1 -0
- package/lib/module/utils.js +16 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/typescript/components/ReorderableList/ReorderableList.d.ts +8 -0
- package/lib/typescript/components/ReorderableList/ReorderableList.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableList/constants.d.ts +3 -0
- package/lib/typescript/components/ReorderableList/constants.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableList/constants.ios.d.ts +3 -0
- package/lib/typescript/components/ReorderableList/constants.ios.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableList/index.d.ts +2 -0
- package/lib/typescript/components/ReorderableList/index.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableList/useReorderableList.d.ts +34 -0
- package/lib/typescript/components/ReorderableList/useReorderableList.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListCell.d.ts +20 -0
- package/lib/typescript/components/ReorderableListCell.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListItem.d.ts +4 -0
- package/lib/typescript/components/ReorderableListItem.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +4 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/contexts/ReorderableCellContext.d.ts +11 -0
- package/lib/typescript/contexts/ReorderableCellContext.d.ts.map +1 -0
- package/lib/typescript/contexts/ReorderableListContext.d.ts +9 -0
- package/lib/typescript/contexts/ReorderableListContext.d.ts.map +1 -0
- package/lib/typescript/contexts/index.d.ts +3 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +5 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useContext.d.ts +3 -0
- package/lib/typescript/hooks/useContext.d.ts.map +1 -0
- package/lib/typescript/hooks/useReorderableDrag.d.ts +2 -0
- package/lib/typescript/hooks/useReorderableDrag.d.ts.map +1 -0
- package/lib/typescript/hooks/useReorderableDragEnd.d.ts +2 -0
- package/lib/typescript/hooks/useReorderableDragEnd.d.ts.map +1 -0
- package/lib/typescript/hooks/useReorderableDragStart.d.ts +2 -0
- package/lib/typescript/hooks/useReorderableDragStart.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +7 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +3 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/types/misc.d.ts +7 -0
- package/lib/typescript/types/misc.d.ts.map +1 -0
- package/lib/typescript/types/props.d.ts +90 -0
- package/lib/typescript/types/props.d.ts.map +1 -0
- package/lib/typescript/utils.d.ts +12 -0
- package/lib/typescript/utils.d.ts.map +1 -0
- package/package.json +199 -39
- package/src/components/ReorderableList/ReorderableList.tsx +123 -0
- package/src/components/ReorderableList/constants.ios.ts +3 -0
- package/src/components/ReorderableList/constants.ts +3 -0
- package/src/components/ReorderableList/index.ts +1 -0
- package/src/components/ReorderableList/useReorderableList.ts +487 -0
- package/src/components/ReorderableListCell.tsx +143 -0
- package/src/components/ReorderableListItem.tsx +108 -0
- package/src/components/index.ts +3 -0
- package/src/contexts/ReorderableCellContext.ts +14 -0
- package/src/contexts/ReorderableListContext.ts +12 -0
- package/src/contexts/index.ts +2 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useContext.ts +11 -0
- package/src/hooks/useReorderableDrag.ts +7 -0
- package/src/hooks/useReorderableDragEnd.ts +25 -0
- package/src/hooks/useReorderableDragStart.ts +18 -0
- package/src/index.ts +26 -0
- package/src/types/index.ts +2 -0
- package/src/types/misc.ts +6 -0
- package/src/types/props.ts +101 -0
- package/src/utils.ts +15 -0
- package/dist/components/ReorderableList.d.ts +0 -7
- package/dist/components/ReorderableList.js +0 -314
- package/dist/components/ReorderableListItem.d.ts +0 -14
- package/dist/components/ReorderableListItem.js +0 -57
- package/dist/hooks/useAnimatedSharedValues.d.ts +0 -3
- package/dist/hooks/useAnimatedSharedValues.js +0 -33
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -2
- package/dist/types/misc.d.ts +0 -15
- package/dist/types/misc.js +0 -7
- package/dist/types/props.d.ts +0 -29
- package/dist/types/props.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ReorderableCellContext = require("./ReorderableCellContext");
|
|
7
|
+
Object.keys(_ReorderableCellContext).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ReorderableCellContext[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ReorderableCellContext[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _ReorderableListContext = require("./ReorderableListContext");
|
|
18
|
+
Object.keys(_ReorderableListContext).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _ReorderableListContext[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _ReorderableListContext[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ReorderableCellContext","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ReorderableListContext"],"sourceRoot":"../../../src","sources":["contexts/index.ts"],"mappings":";;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,uBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,uBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,uBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,uBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,uBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,uBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,uBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _useReorderableDrag = require("./useReorderableDrag");
|
|
7
|
+
Object.keys(_useReorderableDrag).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _useReorderableDrag[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _useReorderableDrag[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _useReorderableDragStart = require("./useReorderableDragStart");
|
|
18
|
+
Object.keys(_useReorderableDragStart).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _useReorderableDragStart[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _useReorderableDragStart[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _useReorderableDragEnd = require("./useReorderableDragEnd");
|
|
29
|
+
Object.keys(_useReorderableDragEnd).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _useReorderableDragEnd[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _useReorderableDragEnd[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _useContext = require("./useContext");
|
|
40
|
+
Object.keys(_useContext).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _useContext[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _useContext[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_useReorderableDrag","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useReorderableDragStart","_useReorderableDragEnd","_useContext"],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":";;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,wBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,wBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,wBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,wBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,sBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,sBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,sBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,sBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,WAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,WAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,WAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,WAAA,CAAAP,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useContext = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const useContext = context => {
|
|
9
|
+
const value = (0, _react.useContext)(context);
|
|
10
|
+
if (value !== undefined) {
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
throw 'Please consume ReorderableList context within its provider.';
|
|
14
|
+
};
|
|
15
|
+
exports.useContext = useContext;
|
|
16
|
+
//# sourceMappingURL=useContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","useContext","context","value","useReactContext","undefined","exports"],"sourceRoot":"../../../src","sources":["hooks/useContext.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,UAAU,GAAOC,OAAqC,IAAK;EACtE,MAAMC,KAAK,GAAG,IAAAC,iBAAe,EAACF,OAAO,CAAC;EAEtC,IAAIC,KAAK,KAAKE,SAAS,EAAE;IACvB,OAAOF,KAAK;EACd;EAEA,MAAM,6DAA6D;AACrE,CAAC;AAACG,OAAA,CAAAL,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useReorderableDrag = void 0;
|
|
7
|
+
var _useContext = require("./useContext");
|
|
8
|
+
var _contexts = require("../contexts");
|
|
9
|
+
const useReorderableDrag = () => {
|
|
10
|
+
const {
|
|
11
|
+
dragHandler
|
|
12
|
+
} = (0, _useContext.useContext)(_contexts.ReorderableCellContext);
|
|
13
|
+
return dragHandler;
|
|
14
|
+
};
|
|
15
|
+
exports.useReorderableDrag = useReorderableDrag;
|
|
16
|
+
//# sourceMappingURL=useReorderableDrag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_useContext","require","_contexts","useReorderableDrag","dragHandler","useContext","ReorderableCellContext","exports"],"sourceRoot":"../../../src","sources":["hooks/useReorderableDrag.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEO,MAAME,kBAAkB,GAAGA,CAAA,KAAM;EACtC,MAAM;IAACC;EAAW,CAAC,GAAG,IAAAC,sBAAU,EAACC,gCAAsB,CAAC;EACxD,OAAOF,WAAW;AACpB,CAAC;AAACG,OAAA,CAAAJ,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useReorderableDragEnd = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _useContext = require("./useContext");
|
|
9
|
+
var _contexts = require("../contexts");
|
|
10
|
+
const useReorderableDragEnd = onEnd => {
|
|
11
|
+
const {
|
|
12
|
+
currentIndex
|
|
13
|
+
} = (0, _useContext.useContext)(_contexts.ReorderableListContext);
|
|
14
|
+
const {
|
|
15
|
+
releasedIndex,
|
|
16
|
+
index
|
|
17
|
+
} = (0, _useContext.useContext)(_contexts.ReorderableCellContext);
|
|
18
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => releasedIndex.value === index, newValue => {
|
|
19
|
+
if (newValue) {
|
|
20
|
+
releasedIndex.value = -1;
|
|
21
|
+
if (onEnd) {
|
|
22
|
+
onEnd(index, currentIndex.value);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, [onEnd]);
|
|
26
|
+
};
|
|
27
|
+
exports.useReorderableDragEnd = useReorderableDragEnd;
|
|
28
|
+
//# sourceMappingURL=useReorderableDragEnd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_useContext","_contexts","useReorderableDragEnd","onEnd","currentIndex","useContext","ReorderableListContext","releasedIndex","index","ReorderableCellContext","useAnimatedReaction","value","newValue","exports"],"sourceRoot":"../../../src","sources":["hooks/useReorderableDragEnd.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEO,MAAMG,qBAAqB,GAChCC,KAAyC,IACtC;EACH,MAAM;IAACC;EAAY,CAAC,GAAG,IAAAC,sBAAU,EAACC,gCAAsB,CAAC;EACzD,MAAM;IAACC,aAAa;IAAEC;EAAK,CAAC,GAAG,IAAAH,sBAAU,EAACI,gCAAsB,CAAC;EAEjE,IAAAC,0CAAmB,EACjB,MAAMH,aAAa,CAACI,KAAK,KAAKH,KAAK,EACnCI,QAAQ,IAAI;IACV,IAAIA,QAAQ,EAAE;MACZL,aAAa,CAACI,KAAK,GAAG,CAAC,CAAC;MAExB,IAAIR,KAAK,EAAE;QACTA,KAAK,CAACK,KAAK,EAAEJ,YAAY,CAACO,KAAK,CAAC;MAClC;IACF;EACF,CAAC,EACD,CAACR,KAAK,CACR,CAAC;AACH,CAAC;AAACU,OAAA,CAAAX,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useReorderableDragStart = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _useContext = require("./useContext");
|
|
9
|
+
var _contexts = require("../contexts");
|
|
10
|
+
const useReorderableDragStart = onStart => {
|
|
11
|
+
const {
|
|
12
|
+
draggedIndex,
|
|
13
|
+
index
|
|
14
|
+
} = (0, _useContext.useContext)(_contexts.ReorderableCellContext);
|
|
15
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => draggedIndex.value === index, newValue => {
|
|
16
|
+
if (newValue && onStart) {
|
|
17
|
+
onStart(index);
|
|
18
|
+
}
|
|
19
|
+
}, [onStart]);
|
|
20
|
+
};
|
|
21
|
+
exports.useReorderableDragStart = useReorderableDragStart;
|
|
22
|
+
//# sourceMappingURL=useReorderableDragStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_useContext","_contexts","useReorderableDragStart","onStart","draggedIndex","index","useContext","ReorderableCellContext","useAnimatedReaction","value","newValue","exports"],"sourceRoot":"../../../src","sources":["hooks/useReorderableDragStart.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEO,MAAMG,uBAAuB,GAAIC,OAAgC,IAAK;EAC3E,MAAM;IAACC,YAAY;IAAEC;EAAK,CAAC,GAAG,IAAAC,sBAAU,EAACC,gCAAsB,CAAC;EAEhE,IAAAC,0CAAmB,EACjB,MAAMJ,YAAY,CAACK,KAAK,KAAKJ,KAAK,EAClCK,QAAQ,IAAI;IACV,IAAIA,QAAQ,IAAIP,OAAO,EAAE;MACvBA,OAAO,CAACE,KAAK,CAAC;IAChB;EACF,CAAC,EACD,CAACF,OAAO,CACV,CAAC;AACH,CAAC;AAACQ,OAAA,CAAAT,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ReorderableListItem", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _components.ReorderableListItem;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
exports.default = void 0;
|
|
13
|
+
Object.defineProperty(exports, "reorderItems", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _utils.reorderItems;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "useReorderableDrag", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _hooks.useReorderableDrag;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "useReorderableDragEnd", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _hooks.useReorderableDragEnd;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "useReorderableDragStart", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _hooks.useReorderableDragStart;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
var _components = require("./components");
|
|
38
|
+
var _hooks = require("./hooks");
|
|
39
|
+
var _utils = require("./utils");
|
|
40
|
+
var _default = exports.default = _components.ReorderableList;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_components","require","_hooks","_utils","_default","exports","default","ReorderableList"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAWA,IAAAE,MAAA,GAAAF,OAAA;AAAqC,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAatBC,2BAAe","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _props = require("./props");
|
|
7
|
+
Object.keys(_props).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _props[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _props[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _misc = require("./misc");
|
|
18
|
+
Object.keys(_misc).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _misc[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _misc[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_props","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_misc"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,KAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,KAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,KAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,KAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ReorderableListState = void 0;
|
|
7
|
+
let ReorderableListState = exports.ReorderableListState = /*#__PURE__*/function (ReorderableListState) {
|
|
8
|
+
ReorderableListState[ReorderableListState["IDLE"] = 0] = "IDLE";
|
|
9
|
+
ReorderableListState[ReorderableListState["DRAGGING"] = 1] = "DRAGGING";
|
|
10
|
+
ReorderableListState[ReorderableListState["RELEASING"] = 2] = "RELEASING";
|
|
11
|
+
ReorderableListState[ReorderableListState["AUTO_SCROLL"] = 3] = "AUTO_SCROLL";
|
|
12
|
+
return ReorderableListState;
|
|
13
|
+
}({});
|
|
14
|
+
//# sourceMappingURL=misc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ReorderableListState","exports"],"sourceRoot":"../../../src","sources":["types/misc.ts"],"mappings":";;;;;;IAAYA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,0BAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/props.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.reorderItems = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Moves an item in an array to a new index.
|
|
9
|
+
*
|
|
10
|
+
* @template T - The type of elements in the array.
|
|
11
|
+
* @param data - The array of items.
|
|
12
|
+
* @param from - The index of the item to move.
|
|
13
|
+
* @param to - The index to move the item to.
|
|
14
|
+
*
|
|
15
|
+
* @returns A new array with the two items swapped.
|
|
16
|
+
*/
|
|
17
|
+
const reorderItems = (data, from, to) => {
|
|
18
|
+
const newData = [...data];
|
|
19
|
+
newData.splice(to, 0, newData.splice(from, 1)[0]);
|
|
20
|
+
return newData;
|
|
21
|
+
};
|
|
22
|
+
exports.reorderItems = reorderItems;
|
|
23
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["reorderItems","data","from","to","newData","splice","exports"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAGA,CAAIC,IAAS,EAAEC,IAAY,EAAEC,EAAU,KAAU;EAC3E,MAAMC,OAAO,GAAG,CAAC,GAAGH,IAAI,CAAC;EACzBG,OAAO,CAACC,MAAM,CAACF,EAAE,EAAE,CAAC,EAAEC,OAAO,CAACC,MAAM,CAACH,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EACjD,OAAOE,OAAO;AAChB,CAAC;AAACE,OAAA,CAAAN,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React, { useCallback } from 'react';
|
|
3
|
+
import { FlatList } from 'react-native';
|
|
4
|
+
import { GestureDetector } from 'react-native-gesture-handler';
|
|
5
|
+
import Animated from 'react-native-reanimated';
|
|
6
|
+
import { AUTOSCROLL_DELAY } from './constants';
|
|
7
|
+
import { useReorderableList } from './useReorderableList';
|
|
8
|
+
import { ReorderableListContext } from '../../contexts';
|
|
9
|
+
import { ReorderableListCell } from '../ReorderableListCell';
|
|
10
|
+
const AnimatedFlatList = Animated.createAnimatedComponent(FlatList);
|
|
11
|
+
const ReorderableList = ({
|
|
12
|
+
data,
|
|
13
|
+
autoscrollThreshold = 0.1,
|
|
14
|
+
autoscrollSpeedScale = 1,
|
|
15
|
+
autoscrollDelay = AUTOSCROLL_DELAY,
|
|
16
|
+
animationDuration = 200,
|
|
17
|
+
dragReorderThreshold = 0.2,
|
|
18
|
+
onLayout,
|
|
19
|
+
onReorder,
|
|
20
|
+
onScroll,
|
|
21
|
+
keyExtractor,
|
|
22
|
+
extraData,
|
|
23
|
+
...rest
|
|
24
|
+
}, ref) => {
|
|
25
|
+
const {
|
|
26
|
+
gestureHandler,
|
|
27
|
+
handleScroll,
|
|
28
|
+
handleFlatListLayout,
|
|
29
|
+
handleRef,
|
|
30
|
+
startDrag,
|
|
31
|
+
listContextValue,
|
|
32
|
+
itemOffset,
|
|
33
|
+
itemHeight,
|
|
34
|
+
dragY,
|
|
35
|
+
draggedIndex,
|
|
36
|
+
releasedIndex,
|
|
37
|
+
duration
|
|
38
|
+
} = useReorderableList({
|
|
39
|
+
ref,
|
|
40
|
+
autoscrollThreshold,
|
|
41
|
+
autoscrollSpeedScale,
|
|
42
|
+
autoscrollDelay,
|
|
43
|
+
animationDuration,
|
|
44
|
+
dragReorderThreshold,
|
|
45
|
+
onLayout,
|
|
46
|
+
onReorder,
|
|
47
|
+
onScroll
|
|
48
|
+
});
|
|
49
|
+
const renderAnimatedCell = useCallback(({
|
|
50
|
+
index,
|
|
51
|
+
children,
|
|
52
|
+
item,
|
|
53
|
+
onLayout: onCellLayout
|
|
54
|
+
}) => /*#__PURE__*/React.createElement(ReorderableListCell
|
|
55
|
+
// forces remount of components with key change
|
|
56
|
+
, {
|
|
57
|
+
key: keyExtractor ? keyExtractor(item, index) : index,
|
|
58
|
+
item: item,
|
|
59
|
+
extraData: extraData,
|
|
60
|
+
index: index,
|
|
61
|
+
itemOffset: itemOffset,
|
|
62
|
+
itemHeight: itemHeight,
|
|
63
|
+
dragY: dragY,
|
|
64
|
+
draggedIndex: draggedIndex,
|
|
65
|
+
releasedIndex: releasedIndex,
|
|
66
|
+
animationDuration: duration,
|
|
67
|
+
startDrag: startDrag,
|
|
68
|
+
children: children,
|
|
69
|
+
onLayout: onCellLayout
|
|
70
|
+
}), [itemOffset, itemHeight, startDrag, dragY, draggedIndex, releasedIndex, duration, keyExtractor, extraData]);
|
|
71
|
+
return /*#__PURE__*/React.createElement(ReorderableListContext.Provider, {
|
|
72
|
+
value: listContextValue
|
|
73
|
+
}, /*#__PURE__*/React.createElement(GestureDetector, {
|
|
74
|
+
gesture: gestureHandler
|
|
75
|
+
}, /*#__PURE__*/React.createElement(AnimatedFlatList, _extends({}, rest, {
|
|
76
|
+
ref: handleRef,
|
|
77
|
+
data: data,
|
|
78
|
+
CellRendererComponent: renderAnimatedCell,
|
|
79
|
+
onLayout: handleFlatListLayout,
|
|
80
|
+
onScroll: handleScroll,
|
|
81
|
+
scrollEventThrottle: 1,
|
|
82
|
+
horizontal: false,
|
|
83
|
+
removeClippedSubviews: false,
|
|
84
|
+
keyExtractor: keyExtractor,
|
|
85
|
+
extraData: extraData,
|
|
86
|
+
numColumns: 1
|
|
87
|
+
}))));
|
|
88
|
+
};
|
|
89
|
+
const MemoizedReorderableList = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(ReorderableList));
|
|
90
|
+
export { MemoizedReorderableList as ReorderableList };
|
|
91
|
+
//# sourceMappingURL=ReorderableList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","FlatList","GestureDetector","Animated","AUTOSCROLL_DELAY","useReorderableList","ReorderableListContext","ReorderableListCell","AnimatedFlatList","createAnimatedComponent","ReorderableList","data","autoscrollThreshold","autoscrollSpeedScale","autoscrollDelay","animationDuration","dragReorderThreshold","onLayout","onReorder","onScroll","keyExtractor","extraData","rest","ref","gestureHandler","handleScroll","handleFlatListLayout","handleRef","startDrag","listContextValue","itemOffset","itemHeight","dragY","draggedIndex","releasedIndex","duration","renderAnimatedCell","index","children","item","onCellLayout","createElement","key","Provider","value","gesture","_extends","CellRendererComponent","scrollEventThrottle","horizontal","removeClippedSubviews","numColumns","MemoizedReorderableList","memo","forwardRef"],"sourceRoot":"../../../../src","sources":["components/ReorderableList/ReorderableList.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AUTOSCROLL_INCREMENT","AUTOSCROLL_DELAY"],"sourceRoot":"../../../../src","sources":["components/ReorderableList/constants.ios.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,oBAAoB,GAAG,EAAE;AACtC,OAAO,MAAMC,gBAAgB,GAAG,GAAG","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AUTOSCROLL_INCREMENT","AUTOSCROLL_DELAY"],"sourceRoot":"../../../../src","sources":["components/ReorderableList/constants.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,oBAAoB,GAAG,CAAC;AACrC,OAAO,MAAMC,gBAAgB,GAAG,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/ReorderableList/index.ts"],"mappings":"AAAA,cAAc,mBAAmB","ignoreList":[]}
|