@draftbit/core 46.11.0 → 46.11.1-0339d0.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/lib/commonjs/components/Accordion/AccordionItem.js +4 -22
- package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/Card.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js +3 -16
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +5 -22
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
- package/lib/commonjs/components/Surface.js +1 -1
- package/lib/commonjs/components/Surface.js.map +1 -1
- package/lib/commonjs/components/SwipeableView/SwipeableView.js +155 -0
- package/lib/commonjs/components/SwipeableView/SwipeableView.js.map +1 -0
- package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js +13 -0
- package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js.map +1 -0
- package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js +13 -0
- package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js.map +1 -0
- package/lib/commonjs/components/SwipeableView/index.js +28 -0
- package/lib/commonjs/components/SwipeableView/index.js.map +1 -0
- package/lib/commonjs/index.js +19 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappings/NativeBase/Layout.js +1 -1
- package/lib/commonjs/mappings/NativeBase/Layout.js.map +1 -1
- package/lib/commonjs/mappings/SwipeableView.js +182 -0
- package/lib/commonjs/mappings/SwipeableView.js.map +1 -0
- package/lib/commonjs/mappings/Table.js +3 -3
- package/lib/commonjs/mappings/Table.js.map +1 -1
- package/lib/commonjs/utilities.js +35 -2
- package/lib/commonjs/utilities.js.map +1 -1
- package/lib/module/components/Surface.js +1 -1
- package/lib/module/components/Surface.js.map +1 -1
- package/lib/module/components/SwipeableView/SwipeableView.js +147 -0
- package/lib/module/components/SwipeableView/SwipeableView.js.map +1 -0
- package/lib/module/components/SwipeableView/SwipeableViewButton.js +6 -0
- package/lib/module/components/SwipeableView/SwipeableViewButton.js.map +1 -0
- package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js +6 -0
- package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js.map +1 -0
- package/lib/module/components/SwipeableView/index.js +4 -0
- package/lib/module/components/SwipeableView/index.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/mappings/NativeBase/Layout.js +1 -1
- package/lib/module/mappings/NativeBase/Layout.js.map +1 -1
- package/lib/module/mappings/SwipeableView.js +175 -0
- package/lib/module/mappings/SwipeableView.js.map +1 -0
- package/lib/module/mappings/Table.js +3 -3
- package/lib/module/mappings/Table.js.map +1 -1
- package/lib/module/utilities.js +24 -0
- package/lib/module/utilities.js.map +1 -1
- package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts +29 -0
- package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts.map +1 -0
- package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts +13 -0
- package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts.map +1 -0
- package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts +13 -0
- package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts.map +1 -0
- package/lib/typescript/src/components/SwipeableView/index.d.ts +4 -0
- package/lib/typescript/src/components/SwipeableView/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/SwipeableView.d.ts +371 -0
- package/lib/typescript/src/mappings/SwipeableView.d.ts.map +1 -0
- package/lib/typescript/src/utilities.d.ts +8 -0
- package/lib/typescript/src/utilities.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/components/Surface.js +1 -1
- package/src/components/Surface.tsx +1 -1
- package/src/components/SwipeableView/SwipeableView.js +117 -0
- package/src/components/SwipeableView/SwipeableView.tsx +299 -0
- package/src/components/SwipeableView/SwipeableViewButton.js +5 -0
- package/src/components/SwipeableView/SwipeableViewButton.tsx +18 -0
- package/src/components/SwipeableView/SwipeableViewSwipeHandler.js +5 -0
- package/src/components/SwipeableView/SwipeableViewSwipeHandler.tsx +20 -0
- package/src/components/SwipeableView/index.js +3 -0
- package/src/components/SwipeableView/index.tsx +3 -0
- package/src/index.js +1 -0
- package/src/index.tsx +6 -0
- package/src/mappings/NativeBase/Layout.js +1 -1
- package/src/mappings/NativeBase/Layout.ts +1 -1
- package/src/mappings/SwipeableView.js +181 -0
- package/src/mappings/SwipeableView.ts +210 -0
- package/src/mappings/Table.js +3 -3
- package/src/mappings/Table.ts +3 -3
- package/src/utilities.js +50 -0
- package/src/utilities.ts +90 -0
|
@@ -12,6 +12,7 @@ var _theming = require("../../theming");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
16
|
const AccordionItem = _ref => {
|
|
16
17
|
let {
|
|
17
18
|
Icon,
|
|
@@ -26,10 +27,9 @@ const AccordionItem = _ref => {
|
|
|
26
27
|
textStyles,
|
|
27
28
|
viewStyles
|
|
28
29
|
} = (0, _utilities.extractStyles)(style);
|
|
29
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
30
|
-
style: [styles.container, viewStyles]
|
|
31
|
-
|
|
32
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
30
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
31
|
+
style: [styles.container, viewStyles]
|
|
32
|
+
}, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
33
33
|
style: styles.row
|
|
34
34
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
35
35
|
name: icon,
|
|
@@ -62,22 +62,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
62
62
|
});
|
|
63
63
|
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
64
64
|
exports.default = _default;
|
|
65
|
-
//# sourceMappingURL=AccordionItem.js.mapdding: 8
|
|
66
|
-
},
|
|
67
|
-
row: {
|
|
68
|
-
flexDirection: "row",
|
|
69
|
-
alignItems: "center",
|
|
70
|
-
paddingLeft: 8
|
|
71
|
-
},
|
|
72
|
-
item: {
|
|
73
|
-
marginVertical: 6,
|
|
74
|
-
paddingLeft: 8
|
|
75
|
-
},
|
|
76
|
-
content: {
|
|
77
|
-
flex: 1,
|
|
78
|
-
justifyContent: "center"
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
82
|
-
exports.default = _default;
|
|
83
65
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AccordionItem","Icon","icon","label","style","iconColor","theme","rest","textStyles","viewStyles","extractStyles","
|
|
1
|
+
{"version":3,"names":["AccordionItem","Icon","icon","label","style","iconColor","theme","rest","textStyles","viewStyles","extractStyles","styles","container","row","colors","primary","item","content","StyleSheet","create","padding","flexDirection","alignItems","paddingLeft","marginVertical","flex","justifyContent","withTheme"],"sourceRoot":"../../../../src","sources":["components/Accordion/AccordionItem.tsx"],"mappings":";;;;;;AAAA;AACA;AAQA;AAEA;AACA;AAA0C;AAAA;AAAA;AAAA;AAW1C,MAAMA,aAAa,GAAG,QAQT;EAAA,IARU;IACrBC,IAAI;IACJC,IAAI;IACJC,KAAK;IACLC,KAAK;IACLC,SAAS;IACTC,KAAK;IACL,GAAGC;EACE,CAAC;EACN,MAAM;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAG,IAAAC,wBAAa,EAACN,KAAK,CAAC;EAEvD,oBACE,oBAAC,sBAAS;IAAC,KAAK,EAAE,CAACO,MAAM,CAACC,SAAS,EAAEH,UAAU;EAAE,GAAKF,IAAI,gBACxD,oBAAC,iBAAI;IAAC,KAAK,EAAEI,MAAM,CAACE;EAAI,GACrBX,IAAI,gBACH,oBAAC,IAAI;IACH,IAAI,EAAEA,IAAK;IACX,IAAI,EAAE,EAAG;IACT,KAAK,EAAEG,SAAS,IAAIC,KAAK,CAACQ,MAAM,CAACC;EAAQ,EACzC,GACA,IAAI,eACR,oBAAC,iBAAI;IAAC,KAAK,EAAE,CAACJ,MAAM,CAACK,IAAI,EAAEL,MAAM,CAACM,OAAO;EAAE,gBACzC,oBAAC,aAAI;IAAC,UAAU,EAAE,KAAM;IAAC,KAAK,EAAET;EAAW,GACxCL,KAAK,CACD,CACF,CACF,CACG;AAEhB,CAAC;AAED,MAAMQ,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,OAAO,EAAE;EACX,CAAC;EACDP,GAAG,EAAE;IACHQ,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,WAAW,EAAE;EACf,CAAC;EACDP,IAAI,EAAE;IACJQ,cAAc,EAAE,CAAC;IACjBD,WAAW,EAAE;EACf,CAAC;EACDN,OAAO,EAAE;IACPQ,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAC3B,aAAa,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ICON_SIZE","Config","cardIconSize","ICON_CONTAINER_SIZE","ICON_CONTAINER_PADDING","ICON_ELEVATION","cardIconElevation","TopRightCircleIcon","withTheme","Icon","icon","theme","onPress","justifyContent","alignItems","elevation","position","top","right","width","height","padding","borderRadius","backgroundColor","pressed","opacity","colors","surface","Card","image","cardImageUrl","title","subtitle","description","textCentered","aspectRatio","
|
|
1
|
+
{"version":3,"names":["ICON_SIZE","Config","cardIconSize","ICON_CONTAINER_SIZE","ICON_CONTAINER_PADDING","ICON_ELEVATION","cardIconElevation","TopRightCircleIcon","withTheme","Icon","icon","theme","onPress","React","createElement","Surface","style","justifyContent","alignItems","elevation","position","top","right","width","height","padding","borderRadius","backgroundColor","Pressable","disabled","pressed","opacity","name","size","color","colors","surface","Card","image","cardImageUrl","title","subtitle","description","textCentered","aspectRatio","onPressIcon","titleStyle","subtitleStyle","descriptionStyle","children","bgColor","styles","StyleSheet","flatten","innerPadding","Image","source","uri","resizeMode","View","Title","text","Subtitle","marginTop","Caption"],"sourceRoot":"../../../src","sources":["components/Card.js"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAA8B;AAC9B,MAAMA,SAAS,GAAGC,eAAM,CAACC,YAAY;AACrC,MAAMC,mBAAmB,GAAGF,eAAM,CAACC,YAAY,GAAG,CAAC;AACnD,MA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zC,cAAK,CAACC,aAAa,CAAC6C,iBAAI,EAAE;IAAE3C,KAAK,EAAE;MAAEE,UAAU,EAAEyB,YAAY,GAAG,QAAQ,GAAG;IAAa;EAAE,CAAC,EACvFH,KAAK,IAAKA,KAAK,IAAIA,KAAK,KAAK,EAAG,gBAAI3B,cAAK,CAACC,aAAa,CAAC8C,iBAAK,EAAE;IAAEC,IAAI,EAAErB,KAAK;IAAExB,KAAK,EAAE8B;EAAW,CAAC,CAAC,GAAI,IAAI,EAC1GL,QAAQ,IAAKA,QAAQ,IAAIA,QAAQ,KAAK,EAAG,gBAAI5B,cAAK,CAACC,aAAa,CAACgD,oBAAQ,EAAE;IAAED,IAAI,EAAEpB,QAAQ;IAAEzB,KAAK,EAAE+B;EAAc,CAAC,CAAC,GAAI,IAAI,EAC5HL,WAAW,IAAKA,WAAW,IAAIA,WAAW,KAAK,EAAG,gBAAI7B,cAAK,CAACC,aAAa,CAAC6C,iBAAI,EAAE;IAAE3C,KAAK,EAAE;MAAE+C,SAAS,EAAE;IAAE;EAAE,CAAC,eACvGlD,cAAK,CAACC,aAAa,CAACkD,mBAAO,EAAE;IAAEH,IAAI,EAAEnB,WAAW;IAAE1B,KAAK,EAAEgC;EAAiB,CAAC,CAAC,CAAC,GAAI,IAAI,EACzFC,QAAQ,CAAC,CAAC,EAClBvC,IAAI,gBAAIG,cAAK,CAACC,aAAa,CAACP,kBAAkB,EAAE;IAAEE,IAAI,EAAEA,IAAI;IAAEC,IAAI,EAAEA,IAAI;IAAEE,OAAO,EAAEiC;EAAY,CAAC,CAAC,GAAI,IAAI,CAAC,CAAC;AACvH,CAAC;AAAC,eACa,IAAArC,kBAAS,EAAC6B,IAAI,CAAC;AAAA"}
|
|
@@ -9,6 +9,7 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _context = require("./context");
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12
13
|
const {
|
|
13
14
|
Provider
|
|
14
15
|
} = _context.checkboxGroupContext;
|
|
@@ -30,24 +31,10 @@ const CheckboxGroup = _ref => {
|
|
|
30
31
|
alignItems: "center"
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
34
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
34
35
|
style: [{
|
|
35
36
|
minHeight: 40
|
|
36
|
-
}, style]
|
|
37
|
-
...rest
|
|
38
|
-
}, /*#__PURE__*/React.createElement(Provider, {
|
|
39
|
-
value: {
|
|
40
|
-
values,
|
|
41
|
-
onValueChange,
|
|
42
|
-
direction
|
|
43
|
-
}
|
|
44
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
45
|
-
style: _containerStyle
|
|
46
|
-
}, children)));
|
|
47
|
-
};
|
|
48
|
-
var _default = CheckboxGroup;
|
|
49
|
-
exports.default = _default;
|
|
50
|
-
//# sourceMappingURL=CheckboxGroup.js.map}, style]
|
|
37
|
+
}, style]
|
|
51
38
|
}, rest), /*#__PURE__*/React.createElement(Provider, {
|
|
52
39
|
value: {
|
|
53
40
|
values,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Provider","checkboxGroupContext","CheckboxGroup","direction","Direction","Vertical","values","onValueChange","style","children","rest","_containerStyle","flexDirection","Horizontal","overflow","push","alignItems","
|
|
1
|
+
{"version":3,"names":["Provider","checkboxGroupContext","CheckboxGroup","direction","Direction","Vertical","values","onValueChange","style","children","rest","_containerStyle","flexDirection","Horizontal","overflow","push","alignItems","minHeight"],"sourceRoot":"../../../../src","sources":["components/Checkbox/CheckboxGroup.tsx"],"mappings":";;;;;;AAAA;AACA;AAEA;AAA4D;AAAA;AAAA;AAW5D,MAAM;EAAEA;AAAS,CAAC,GAAGC,6BAAoB;AAEzC,MAAMC,aAA2C,GAAG,QAO9C;EAAA,IAP+C;IACnDC,SAAS,GAAGC,kBAAS,CAACC,QAAQ;IAC9BC,MAAM;IACNC,aAAa,GAAG,MAAM,CAAC,CAAC;IACxBC,KAAK;IACLC,QAAQ;IACR,GAAGC;EACL,CAAC;EACC,MAAMC,eAAqC,GAAG,CAC5C;IACEC,aAAa,EAAET,SAAS,KAAKC,kBAAS,CAACS,UAAU,GAAG,KAAK,GAAG,QAAQ;IACpEC,QAAQ,EAAE;EACZ,CAAC,CACF;EAED,IAAIX,SAAS,KAAKC,kBAAS,CAACC,QAAQ,EAAE;IACpCM,eAAe,CAACI,IAAI,CAAC;MACnBC,UAAU,EAAE;IACd,CAAC,CAAC;EACJ;EAEA,oBACE,oBAAC,iBAAI;IAAC,KAAK,EAAE,CAAC;MAAEC,SAAS,EAAE;IAAG,CAAC,EAAET,KAAK;EAAE,GAAKE,IAAI,gBAC/C,oBAAC,QAAQ;IAAC,KAAK,EAAE;MAAEJ,MAAM;MAAEC,aAAa;MAAEJ;IAAU;EAAE,gBACpD,oBAAC,iBAAI;IAAC,KAAK,EAAEQ;EAAgB,GAAEF,QAAQ,CAAQ,CACtC,CACN;AAEX,CAAC;AAAC,eAEaP,aAAa;AAAA"}
|
|
@@ -13,7 +13,8 @@ var _utilities = require("../../utilities");
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
var
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
let Direction;
|
|
17
18
|
exports.Direction = Direction;
|
|
18
19
|
(function (Direction) {
|
|
19
20
|
Direction["Row"] = "row";
|
|
@@ -71,14 +72,13 @@ const CheckboxGroupRow = _ref => {
|
|
|
71
72
|
textStyles,
|
|
72
73
|
viewStyles
|
|
73
74
|
} = (0, _utilities.extractStyles)(style);
|
|
74
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
75
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
75
76
|
onPress: handlePress,
|
|
76
77
|
style: [styles.mainParent, {
|
|
77
78
|
flexDirection: direction
|
|
78
79
|
}, viewStyles],
|
|
79
|
-
disabled: disabled
|
|
80
|
-
|
|
81
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
80
|
+
disabled: disabled
|
|
81
|
+
}, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
82
82
|
style: [styles.label, {
|
|
83
83
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
84
84
|
}, labelContainerStyle]
|
|
@@ -118,21 +118,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
118
118
|
});
|
|
119
119
|
var _default = CheckboxGroupRow;
|
|
120
120
|
exports.default = _default;
|
|
121
|
-
//# sourceMappingURL=CheckboxGroupRow.js.map paddingStart: 20,
|
|
122
|
-
minHeight: 50,
|
|
123
|
-
paddingEnd: 20,
|
|
124
|
-
display: "flex",
|
|
125
|
-
..._reactNative.Platform.select({
|
|
126
|
-
web: {
|
|
127
|
-
cursor: "pointer",
|
|
128
|
-
userSelect: "none"
|
|
129
|
-
}
|
|
130
|
-
})
|
|
131
|
-
},
|
|
132
|
-
label: {
|
|
133
|
-
flex: 3
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
var _default = CheckboxGroupRow;
|
|
137
|
-
exports.default = _default;
|
|
138
121
|
//# sourceMappingURL=CheckboxGroupRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Direction","getCheckboxAlignment","parentDirection","direction","GroupDirection","Horizontal","Row","RowReverse","renderLabel","value","labelStyle","textStyle","
|
|
1
|
+
{"version":3,"names":["Direction","getCheckboxAlignment","parentDirection","direction","GroupDirection","Horizontal","Row","RowReverse","renderLabel","value","labelStyle","textStyle","CheckboxGroupRow","Icon","label","status","onPress","labelContainerStyle","checkboxStyle","disabled","style","color","uncheckedColor","rest","values","selectedValues","onValueChange","useCheckboxGroupContext","Array","isArray","isChecked","includes","handlePress","textStyles","viewStyles","extractStyles","styles","mainParent","flexDirection","alignItems","flex","StyleSheet","create","justifyContent","paddingStart","minHeight","paddingEnd","display","Platform","select","web","cursor","userSelect"],"sourceRoot":"../../../../src","sources":["components/Checkbox/CheckboxGroupRow.tsx"],"mappings":";;;;;;AAAA;AACA;AASA;AACA;AACA;AAGA;AAAgD;AAAA;AAAA;AAAA;AAAA,IAEpCA,SAAS;AAAA;AAAA,WAATA,SAAS;EAATA,SAAS;EAATA,SAAS;AAAA,GAATA,SAAS,yBAATA,SAAS;AAiBrB,MAAMC,oBAAoB,GAAG,CAC3BC,eAA2C,EAC3CC,SAAoB,KACjB;EACH,IAAID,eAAe,KAAKE,kBAAc,CAACC,UAAU,EAAE;IACjD,OAAOF,SAAS,KAAKH,SAAS,CAACM,GAAG,GAAG,YAAY,GAAG,UAAU;EAChE,CAAC,MAAM,IAAIH,SAAS,KAAKH,SAAS,CAACO,UAAU,EAAE;IAC7C,OAAO,YAAY;EACrB,CAAC,MAAM;IACL,OAAO,UAAU;EACnB;AACF,CAAC;AAED,MAAMC,WAAW,GAAG,CAClBC,KAA+B,EAC/BC,UAAgC,EAChCC,SAA+B,KAC5B;EACH,IAAI,OAAOF,KAAK,KAAK,QAAQ,EAAE;IAC7B,oBAAO,oBAAC,aAAI;MAAC,KAAK,EAAE,CAACC,UAAU,EAAEC,SAAS;IAAE,GAAEF,KAAK,CAAQ;EAC7D,CAAC,MAAM;IACL,oBAAO,0CAAGA,KAAK,CAAI;EACrB;AACF,CAAC;AAED,MAAMG,gBAA4D,GAAG,QAe/D;EAAA,IAfgE;IACpEC,IAAI;IACJC,KAAK,GAAG,OAAO;IACfC,MAAM;IACNN,KAAK;IACLO,O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;MACPD,UAAU,EAAEtC,oBAAoB,CAACC,eAAe,EAAEC,SAAS;IAC7D;EAAE,gBAEF,oBAAC,iBAAQ;IACP,IAAI,EAAEU,IAAK;IACX,MAAM,EAAEiB,SAAU;IAClB,OAAO,EAAEE,WAAY;IACrB,KAAK,EAAEd,aAAc;IACrB,QAAQ,EAAEC,QAAS;IACnB,KAAK,EAAEE,KAAM;IACb,cAAc,EAAEC;EAAe,EAC/B,CACG,CACG;AAEhB,CAAC;AAED,MAAMc,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,UAAU,EAAE;IACVE,UAAU,EAAE,QAAQ;IACpBI,cAAc,EAAE,cAAc;IAC9BC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE,EAAE;IACdC,OAAO,EAAE,MAAM;IACf,GAAGC,qBAAQ,CAACC,MAAM,CAAC;MACjBC,GAAG,EAAE;QACHC,MAAM,EAAE,SAAS;QACjBC,UAAU,EAAE;MACd;IACF,CAAC;EACH,CAAC;EACDtC,KAAK,EAAE;IACL0B,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,eAEY5B,gBAAgB;AAAA"}
|
|
@@ -31,7 +31,7 @@ const Surface = _ref => {
|
|
|
31
31
|
mode,
|
|
32
32
|
colors
|
|
33
33
|
} = theme;
|
|
34
|
-
const elevation = propElevation
|
|
34
|
+
const elevation = propElevation !== null && propElevation !== void 0 ? propElevation : styleElevation;
|
|
35
35
|
const evalationStyles = elevation ? (0, _shadow.default)(elevation) : {};
|
|
36
36
|
const getBackgroundColor = () => {
|
|
37
37
|
if (backgroundColor) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Surface","elevation","propElevation","style","theme","children","rest","styleElevation","backgroundColor","restStyle","StyleSheet","flatten","dark","isDarkTheme","mode","colors","evalationStyles","shadow","getBackgroundColor","overlay","surface","withTheme"],"sourceRoot":"../../../src","sources":["components/Surface.tsx"],"mappings":";;;;;;AACA;AACA;AAQA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AASvC,MAAMA,OAAiD,GAAG,QAMpD;EAAA,IANqD;IACzDC,SAAS,EAAEC,aAAa;IACxBC,KAAK;IACLC,KAAK;IACLC,QAAQ;IACR,GAAGC;EACL,CAAC;EACC,MAAM;IACJL,SAAS,EAAEM,cAAc,GAAG,CAAC;IAC7BC,eAAe;IACf,GAAGC;EACL,CAAC,GAAIC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAAC,IAAI,CAAC,CAAe;EAElD,MAAM;IAAES,IAAI,EAAEC,WAAW;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAGX,KAAK;EAEjD,MAAMH,SAAS,GAAGC,aAAa,
|
|
1
|
+
{"version":3,"names":["Surface","elevation","propElevation","style","theme","children","rest","styleElevation","backgroundColor","restStyle","StyleSheet","flatten","dark","isDarkTheme","mode","colors","evalationStyles","shadow","getBackgroundColor","overlay","surface","withTheme"],"sourceRoot":"../../../src","sources":["components/Surface.tsx"],"mappings":";;;;;;AACA;AACA;AAQA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AASvC,MAAMA,OAAiD,GAAG,QAMpD;EAAA,IANqD;IACzDC,SAAS,EAAEC,aAAa;IACxBC,KAAK;IACLC,KAAK;IACLC,QAAQ;IACR,GAAGC;EACL,CAAC;EACC,MAAM;IACJL,SAAS,EAAEM,cAAc,GAAG,CAAC;IAC7BC,eAAe;IACf,GAAGC;EACL,CAAC,GAAIC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAAC,IAAI,CAAC,CAAe;EAElD,MAAM;IAAES,IAAI,EAAEC,WAAW;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAGX,KAAK;EAEjD,MAAMH,SAAS,GAAGC,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAIK,cAAc;EAEjD,MAAMS,eAAe,GAAGf,SAAS,GAAG,IAAAgB,eAAM,EAAChB,SAAS,CAAC,GAAG,CAAC,CAAC;EAE1D,MAAMiB,kBAAkB,GAAG,MAAM;IAC/B,IAAIV,eAAe,EAAE;MACnB,OAAOA,eAAe;IACxB,CAAC,MAAM,IAAIK,WAAW,IAAIC,IAAI,KAAK,UAAU,EAAE;MAC7C,OAAO,IAAAK,gBAAO,EAAClB,SAAS,EAAEc,MAAM,CAACK,OAAO,CAAC;IAC3C,CAAC,MAAM;MACL,OAAOL,MAAM,CAACK,OAAO;IACvB;EACF,CAAC;EAED,oBACE,oBAAC,qBAAQ,CAAC,IAAI,eACRd,IAAI;IACR,KAAK,EAAE,CACL;MACEE,eAAe,EAAEU,kBAAkB,EAAE;MACrCjB,SAAS;MACT,GAAGe,eAAe;MAClB,GAAGP;IACL,CAAC;EACD,IAEDJ,QAAQ,CACK;AAEpB,CAAC;AAAC,eAEa,IAAAgB,kBAAS,EAACrB,OAAO,CAAC;AAAA"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _Pressable = _interopRequireDefault(require("../Pressable"));
|
|
10
|
+
var _utilities = require("../../utilities");
|
|
11
|
+
var _reactNativeSwipeListView = require("react-native-swipe-list-view");
|
|
12
|
+
var _theming = require("../../theming");
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
const SwipeableView = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
theme,
|
|
18
|
+
style,
|
|
19
|
+
children,
|
|
20
|
+
Icon,
|
|
21
|
+
closeOnPress,
|
|
22
|
+
leftOpenValue,
|
|
23
|
+
rightOpenValue,
|
|
24
|
+
leftActivationValue,
|
|
25
|
+
rightActivationValue,
|
|
26
|
+
swipeActivationPercentage = 80,
|
|
27
|
+
stopLeftSwipe,
|
|
28
|
+
stopRightSwipe,
|
|
29
|
+
friction = 20,
|
|
30
|
+
...rest
|
|
31
|
+
} = _ref;
|
|
32
|
+
const instanceOfSwipeableViewButtonProps = object => {
|
|
33
|
+
return "title" in object && "side" in object && "onPress" in object;
|
|
34
|
+
};
|
|
35
|
+
const instanceOfSwipeableViewSwipeHandlerProps = object => {
|
|
36
|
+
return "title" in object && "side" in object && "onSwipe" in object;
|
|
37
|
+
};
|
|
38
|
+
const {
|
|
39
|
+
viewStyles,
|
|
40
|
+
textStyles
|
|
41
|
+
} = (0, _utilities.extractStyles)(style);
|
|
42
|
+
const {
|
|
43
|
+
borderStyles,
|
|
44
|
+
marginStyles
|
|
45
|
+
} = (0, _utilities.extractBorderAndMarginStyles)(viewStyles);
|
|
46
|
+
const parentContainerStyles = _reactNative.StyleSheet.flatten([borderStyles, marginStyles, (0, _utilities.extractFlexItemStyles)(viewStyles), (0, _utilities.extractPositionStyles)(viewStyles), (0, _utilities.extractEffectStyles)(viewStyles), (0, _utilities.extractSizeStyles)(viewStyles)]);
|
|
47
|
+
|
|
48
|
+
//Remove styles already consumed from viewStyles
|
|
49
|
+
Object.keys(parentContainerStyles).forEach(key => delete viewStyles[key]);
|
|
50
|
+
const surfaceContainerStyles = viewStyles;
|
|
51
|
+
const [componentWidth, setComponentWidth] = _react.default.useState(null);
|
|
52
|
+
const leftButtons = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewButtonProps(child.props) && child.props.side === "left"), [children]);
|
|
53
|
+
const rightButtons = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewButtonProps(child.props) && child.props.side === "right"), [children]);
|
|
54
|
+
const leftSwipeHandlers = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewSwipeHandlerProps(child.props) && child.props.side === "left"), [children]);
|
|
55
|
+
const rightSwipeHandlers = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && instanceOfSwipeableViewSwipeHandlerProps(child.props) && child.props.side === "right"), [children]);
|
|
56
|
+
const remainingChildren = _react.default.useMemo(() => _react.default.Children.toArray(children).filter(child => /*#__PURE__*/_react.default.isValidElement(child) && !instanceOfSwipeableViewSwipeHandlerProps(child.props) && !instanceOfSwipeableViewButtonProps(child.props)), [children]);
|
|
57
|
+
if (leftButtons.length > 2 || rightButtons.length > 2) {
|
|
58
|
+
throw Error("Cannot have more than 2 buttons per side");
|
|
59
|
+
}
|
|
60
|
+
if (leftSwipeHandlers.length > 1 || rightSwipeHandlers.length > 1) {
|
|
61
|
+
throw Error("Cannot have more than 1 swiper handler per side");
|
|
62
|
+
}
|
|
63
|
+
if (leftButtons.length && leftSwipeHandlers.length || rightButtons.length && rightSwipeHandlers.length) {
|
|
64
|
+
throw Error("Cannot combine swiper handler and buttons on the same side");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//Renders a single button/item. Used for both buttons and swipe handler
|
|
68
|
+
const renderBehindItem = (props, index) => /*#__PURE__*/_react.default.createElement(_Pressable.default, {
|
|
69
|
+
key: index.toString(),
|
|
70
|
+
onPress: props.onPress,
|
|
71
|
+
style: [styles.buttonContainer, {
|
|
72
|
+
backgroundColor: props.backgroundColor || theme.colors.primary
|
|
73
|
+
}]
|
|
74
|
+
}, props.icon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
75
|
+
name: props.icon,
|
|
76
|
+
size: props.iconSize || 25,
|
|
77
|
+
color: props.color || theme.colors.surface
|
|
78
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
79
|
+
style: [textStyles, {
|
|
80
|
+
color: props.color || theme.colors.surface
|
|
81
|
+
}]
|
|
82
|
+
}, props.title));
|
|
83
|
+
const isLeftSwipeHandler = !!leftSwipeHandlers.length;
|
|
84
|
+
const isRightSwipeHandler = !!rightSwipeHandlers.length;
|
|
85
|
+
const defaultLeftOpenValue = componentWidth ? componentWidth / 2 : 0;
|
|
86
|
+
const defaultRightOpenValue = componentWidth ? -componentWidth / 2 : 0;
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
88
|
+
onLayout: event => {
|
|
89
|
+
setComponentWidth(event.nativeEvent.layout.width);
|
|
90
|
+
},
|
|
91
|
+
style: [styles.parentContainer, parentContainerStyles]
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeSwipeListView.SwipeRow, _extends({
|
|
93
|
+
leftOpenValue: isLeftSwipeHandler ? 0 : leftOpenValue || defaultLeftOpenValue //If in swiping mode, don't keep open
|
|
94
|
+
,
|
|
95
|
+
|
|
96
|
+
rightOpenValue: isRightSwipeHandler ? 0 : rightOpenValue || defaultRightOpenValue,
|
|
97
|
+
leftActivationValue: leftActivationValue || isLeftSwipeHandler ? defaultLeftOpenValue * (swipeActivationPercentage / 100) //When swipe passes activation percentage then it should be considered activated (call onSwipe)
|
|
98
|
+
: defaultLeftOpenValue,
|
|
99
|
+
rightActivationValue: rightActivationValue || isRightSwipeHandler ? defaultRightOpenValue * (swipeActivationPercentage / 100) : defaultRightOpenValue,
|
|
100
|
+
stopLeftSwipe: stopLeftSwipe || defaultLeftOpenValue,
|
|
101
|
+
stopRightSwipe: stopRightSwipe || defaultRightOpenValue,
|
|
102
|
+
onLeftAction: isLeftSwipeHandler ? () => {
|
|
103
|
+
var _leftSwipeHandlers$0$, _leftSwipeHandlers$0$2;
|
|
104
|
+
return (_leftSwipeHandlers$0$ = (_leftSwipeHandlers$0$2 = leftSwipeHandlers[0].props).onSwipe) === null || _leftSwipeHandlers$0$ === void 0 ? void 0 : _leftSwipeHandlers$0$.call(_leftSwipeHandlers$0$2);
|
|
105
|
+
} : undefined,
|
|
106
|
+
onRightAction: isRightSwipeHandler ? () => {
|
|
107
|
+
var _rightSwipeHandlers$, _rightSwipeHandlers$2;
|
|
108
|
+
return (_rightSwipeHandlers$ = (_rightSwipeHandlers$2 = rightSwipeHandlers[0].props).onSwipe) === null || _rightSwipeHandlers$ === void 0 ? void 0 : _rightSwipeHandlers$.call(_rightSwipeHandlers$2);
|
|
109
|
+
} : undefined,
|
|
110
|
+
closeOnRowPress: closeOnPress,
|
|
111
|
+
friction: friction
|
|
112
|
+
}, rest), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
113
|
+
style: styles.behindContainer
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
115
|
+
style: styles.behindContainerItem
|
|
116
|
+
}, (isLeftSwipeHandler ? leftSwipeHandlers : leftButtons).map((item, index) => renderBehindItem(item.props, index))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
117
|
+
style: styles.behindContainerItem
|
|
118
|
+
}, (isRightSwipeHandler ? rightSwipeHandlers : rightButtons).map((item, index) => renderBehindItem(item.props, index)))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
119
|
+
style: [styles.surfaceContainer, {
|
|
120
|
+
backgroundColor: theme.colors.background
|
|
121
|
+
}, surfaceContainerStyles]
|
|
122
|
+
}, remainingChildren)));
|
|
123
|
+
};
|
|
124
|
+
const styles = _reactNative.StyleSheet.create({
|
|
125
|
+
parentContainer: {
|
|
126
|
+
overflow: "hidden",
|
|
127
|
+
minHeight: 50
|
|
128
|
+
},
|
|
129
|
+
behindContainer: {
|
|
130
|
+
flex: 1,
|
|
131
|
+
width: "100%",
|
|
132
|
+
height: "100%",
|
|
133
|
+
flexDirection: "row"
|
|
134
|
+
},
|
|
135
|
+
behindContainerItem: {
|
|
136
|
+
flex: 1,
|
|
137
|
+
flexDirection: "row"
|
|
138
|
+
},
|
|
139
|
+
buttonContainer: {
|
|
140
|
+
flex: 1,
|
|
141
|
+
alignItems: "center",
|
|
142
|
+
justifyContent: "center"
|
|
143
|
+
},
|
|
144
|
+
surfaceContainer: {
|
|
145
|
+
flexDirection: "row",
|
|
146
|
+
width: "100%",
|
|
147
|
+
height: "100%",
|
|
148
|
+
padding: 10,
|
|
149
|
+
alignItems: "center",
|
|
150
|
+
overflow: "hidden"
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
var _default = (0, _theming.withTheme)(SwipeableView);
|
|
154
|
+
exports.default = _default;
|
|
155
|
+
//# sourceMappingURL=SwipeableView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SwipeableView","theme","style","children","Icon","closeOnPress","leftOpenValue","rightOpenValue","leftActivationValue","rightActivationValue","swipeActivationPercentage","stopLeftSwipe","stopRightSwipe","friction","rest","instanceOfSwipeableViewButtonProps","object","instanceOfSwipeableViewSwipeHandlerProps","viewStyles","textStyles","extractStyles","borderStyles","marginStyles","extractBorderAndMarginStyles","parentContainerStyles","StyleSheet","flatten","extractFlexItemStyles","extractPositionStyles","extractEffectStyles","extractSizeStyles","Object","keys","forEach","key","surfaceContainerStyles","componentWidth","setComponentWidth","React","useState","leftButtons","useMemo","Children","toArray","filter","child","isValidElement","props","side","rightButtons","leftSwipeHandlers","rightSwipeHandlers","remainingChildren","length","Error","renderBehindItem","index","toString","onPress","styles","buttonContainer","backgroundColor","colors","primary","icon","iconSize","color","surface","title","isLeftSwipeHandler","isRightSwipeHandler","defaultLeftOpenValue","defaultRightOpenValue","event","nativeEvent","layout","width","parentContainer","onSwipe","undefined","behindContainer","behindContainerItem","map","item","surfaceContainer","background","create","overflow","minHeight","flex","height","flexDirection","alignItems","justifyContent","padding","withTheme"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableView.tsx"],"mappings":";;;;;;AAAA;AACA;AAQA;AACA;AAQA;AAGA;AAA0C;AAAA;A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AAE;IACfU,QAAQ,EAAE,QAAQ;IAClBC,SAAS,EAAE;EACb,CAAC;EACDR,eAAe,EAAE;IACfS,IAAI,EAAE,CAAC;IACPb,KAAK,EAAE,MAAM;IACbc,MAAM,EAAE,MAAM;IACdC,aAAa,EAAE;EACjB,CAAC;EACDV,mBAAmB,EAAE;IACnBQ,IAAI,EAAE,CAAC;IACPE,aAAa,EAAE;EACjB,CAAC;EACD/B,eAAe,EAAE;IACf6B,IAAI,EAAE,CAAC;IACPG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDT,gBAAgB,EAAE;IAChBO,aAAa,EAAE,KAAK;IACpBf,KAAK,EAAE,MAAM;IACbc,MAAM,EAAE,MAAM;IACdI,OAAO,EAAE,EAAE;IACXF,UAAU,EAAE,QAAQ;IACpBL,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAAC,eAEY,IAAAQ,kBAAS,EAAC/F,aAAa,CAAC;AAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
//Renders nothing, acts as a wrapper be used by SwipeableView
|
|
8
|
+
const SwipeableViewButton = () => {
|
|
9
|
+
return null;
|
|
10
|
+
};
|
|
11
|
+
var _default = SwipeableViewButton;
|
|
12
|
+
exports.default = _default;
|
|
13
|
+
//# sourceMappingURL=SwipeableViewButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SwipeableViewButton"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableViewButton.tsx"],"mappings":";;;;;;AAYA;AACA,MAAMA,mBAAuD,GAAG,MAAM;EACpE,OAAO,IAAI;AACb,CAAC;AAAC,eAEaA,mBAAmB;AAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
//Renders nothing, acts as a wrapper to be used by SwipeableView
|
|
8
|
+
const SwipeableViewSwipeHandler = () => {
|
|
9
|
+
return null;
|
|
10
|
+
};
|
|
11
|
+
var _default = SwipeableViewSwipeHandler;
|
|
12
|
+
exports.default = _default;
|
|
13
|
+
//# sourceMappingURL=SwipeableViewSwipeHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SwipeableViewSwipeHandler"],"sourceRoot":"../../../../src","sources":["components/SwipeableView/SwipeableViewSwipeHandler.tsx"],"mappings":";;;;;;AAYA;AACA,MAAMA,yBAEL,GAAG,MAAM;EACR,OAAO,IAAI;AACb,CAAC;AAAC,eAEaA,yBAAyB;AAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SwipeableView", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SwipeableView.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SwipeableViewButton", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _SwipeableViewButton.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "SwipeableViewSwipeHandler", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _SwipeableViewSwipeHandler.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _SwipeableView = _interopRequireDefault(require("./SwipeableView"));
|
|
25
|
+
var _SwipeableViewButton = _interopRequireDefault(require("./SwipeableViewButton"));
|
|
26
|
+
var _SwipeableViewSwipeHandler = _interopRequireDefault(require("./SwipeableViewSwipeHandler"));
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/SwipeableView/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAAmF"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -333,6 +333,24 @@ Object.defineProperty(exports, "Surface", {
|
|
|
333
333
|
return _Surface.default;
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
|
+
Object.defineProperty(exports, "SwipeableView", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () {
|
|
339
|
+
return _SwipeableView.SwipeableView;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "SwipeableViewButton", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function () {
|
|
345
|
+
return _SwipeableView.SwipeableViewButton;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "SwipeableViewSwipeHandler", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () {
|
|
351
|
+
return _SwipeableView.SwipeableViewSwipeHandler;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
336
354
|
Object.defineProperty(exports, "Swiper", {
|
|
337
355
|
enumerable: true,
|
|
338
356
|
get: function () {
|
|
@@ -474,6 +492,7 @@ var _Markdown = _interopRequireDefault(require("./components/Markdown"));
|
|
|
474
492
|
var _BottomSheet = require("./components/BottomSheet");
|
|
475
493
|
var _YoutubePlayer = require("./components/YoutubePlayer");
|
|
476
494
|
var _Table = require("./components/Table");
|
|
495
|
+
var _SwipeableView = require("./components/SwipeableView");
|
|
477
496
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
478
497
|
var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
|
|
479
498
|
var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AAEA;AASA;AAOA;AAEA;AAEA;AACA;AAEA;AAEA;AAEA;AAEA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAyD;AAAA;AAAA"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SEED_DATA = void 0;
|
|
7
7
|
var _types = require("@draftbit/types");
|
|
8
8
|
const SHARED_SEED_DATA = {
|
|
9
|
-
category: _types.COMPONENT_TYPES.layout
|
|
9
|
+
category: _types.COMPONENT_TYPES.testing /*.layout*/,
|
|
10
10
|
packageName: "native-base",
|
|
11
11
|
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SHARED_SEED_DATA","category","COMPONENT_TYPES","
|
|
1
|
+
{"version":3,"names":["SHARED_SEED_DATA","category","COMPONENT_TYPES","testing","packageName","stylesPanelSections","CONTAINER_COMPONENT_STYLES_SECTIONS","CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX","filter","item","StylesPanelSections","LayoutFlexItems","LayoutContent","SEED_DATA","name","tag","description","props","ratio","createStaticNumberProp","label","defaultValue","Background","Size","Margins","Position","Borders","Effects","layout","flexDirection","flex","LayoutSelectedItem","isDisabled","createBoolProp","isInvalid","reversed"],"sourceRoot":"../../../../src","sources":["mappings/NativeBase/Layout.ts"],"mappings":";;;;;;AAAA;AAQA,MAAMA,gBAAgB,GAAG;EACvBC,QAAQ,EAAEC,sBAAe,CAACC,OAAO,CAAC;EAClCC,WAAW,EAAE,aAAa;EAC1BC,mBAAmB,EAAEC;AACvB,CAAC;AAED,MAAMC,uCAAuC,GAC3CD,0CAAmC,CAACE,MAAM,CACvCC,IAAI,IACHA,IAAI,KAAKC,0BAAmB,CAACC,eAAe,IAC5CF,IAAI,KAAKC,0BAAmB,CAACE,aAAa,CAC7C;AAEI,MAAMC,SAAS,GAAG,CACvB;EACEC,IAAI,EAAE,cAAc;EACpBC,GAAG,EAAE,aAAa;EAClBC,WAAW,EACT,iGAAiG;EACnG,GAAGhB,gBAAgB;EACnBiB,KAAK,EAAE;IACLC,KAAK,EAAE,IAAAC,6BAAsB,EAAC;MAC5BC,KAAK,EAAE,OAAO;MACdJ,WAAW,EACT,uEAAuE;MACzEK,YAAY,EAAE;IAChB,CAAC;EACH,CAAC;EACDhB,mBAAmB,EAAE,CACnBK,0BAAmB,CAACY,UAAU,EAC9BZ,0BAAmB,CAACa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