@draftbit/core 46.12.1-07ad46.2 → 46.12.1-2b2e2a.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/ActionSheet/index.js.map +1 -1
- package/lib/commonjs/components/AspectRatio.js +2 -16
- package/lib/commonjs/components/AspectRatio.js.map +1 -1
- package/lib/commonjs/components/AvatarEdit.js +4 -15
- package/lib/commonjs/components/AvatarEdit.js.map +1 -1
- package/lib/commonjs/components/Banner.js +4 -23
- package/lib/commonjs/components/Banner.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +18 -3
- package/lib/commonjs/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +73 -120
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/Button.js +10 -32
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/Card.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +22 -5
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
- package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Container.js +4 -15
- package/lib/commonjs/components/Container.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
- package/lib/commonjs/components/DeckSwiper/index.js.map +1 -1
- package/lib/commonjs/components/Divider.js +1 -12
- package/lib/commonjs/components/Divider.js.map +1 -1
- package/lib/commonjs/components/Elevation.js +2 -13
- package/lib/commonjs/components/Elevation.js.map +1 -1
- package/lib/commonjs/components/FAB.js +4 -19
- package/lib/commonjs/components/FAB.js.map +1 -1
- package/lib/commonjs/components/FieldSearchBarFull.js +2 -1
- package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
- package/lib/commonjs/components/FormRow.js +3 -17
- package/lib/commonjs/components/FormRow.js.map +1 -1
- package/lib/commonjs/components/Image.js +2 -16
- package/lib/commonjs/components/Image.js.map +1 -1
- package/lib/commonjs/components/Justification.js +1 -2
- package/lib/commonjs/components/Justification.js.map +1 -1
- package/lib/commonjs/components/Layout.js +19 -39
- package/lib/commonjs/components/Layout.js.map +1 -1
- package/lib/commonjs/components/Markdown.js.map +1 -1
- package/lib/commonjs/components/NumberInput.js +3 -11
- package/lib/commonjs/components/NumberInput.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalConsumer.js +2 -1
- package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalHost.js +14 -43
- package/lib/commonjs/components/Portal/PortalHost.js.map +1 -1
- package/lib/commonjs/components/Portal/PortalManager.js +8 -34
- package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
- package/lib/commonjs/components/Pressable.js +2 -15
- package/lib/commonjs/components/Pressable.js.map +1 -1
- package/lib/commonjs/components/ProgressBar.js +7 -36
- package/lib/commonjs/components/ProgressBar.js.map +1 -1
- package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js +2 -14
- package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -10
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +4 -16
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +5 -23
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/components/ResizeMode.js +1 -2
- package/lib/commonjs/components/ResizeMode.js.map +1 -1
- package/lib/commonjs/components/Row.js.map +1 -1
- package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
- package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
- package/lib/commonjs/components/SVG.js.map +1 -1
- package/lib/commonjs/components/ScreenContainer.js +6 -23
- package/lib/commonjs/components/ScreenContainer.js.map +1 -1
- package/lib/commonjs/components/Slider.js +4 -21
- package/lib/commonjs/components/Slider.js.map +1 -1
- package/lib/commonjs/components/StarRating.js +4 -22
- package/lib/commonjs/components/StarRating.js.map +1 -1
- package/lib/commonjs/components/StepIndicator.js +18 -57
- package/lib/commonjs/components/StepIndicator.js.map +1 -1
- package/lib/commonjs/components/SwipeableView/SwipeableView.js +157 -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/components/Swiper/Swiper.js.map +1 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
- package/lib/commonjs/components/Switch.js +10 -19
- package/lib/commonjs/components/Switch.js.map +1 -1
- package/lib/commonjs/components/TabView/TabView.js +7 -14
- package/lib/commonjs/components/TabView/TabView.js.map +1 -1
- package/lib/commonjs/components/TabView/TabViewItem.js.map +1 -1
- package/lib/commonjs/components/Table/Table.js +5 -6
- package/lib/commonjs/components/Table/Table.js.map +1 -1
- package/lib/commonjs/components/Table/TableCommon.js.map +1 -1
- package/lib/commonjs/components/Table/TableRow.js +2 -1
- package/lib/commonjs/components/Table/TableRow.js.map +1 -1
- package/lib/commonjs/components/Text.js +4 -50
- package/lib/commonjs/components/Text.js.map +1 -1
- package/lib/commonjs/components/TextField.js +28 -76
- package/lib/commonjs/components/TextField.js.map +1 -1
- package/lib/commonjs/components/ToggleButton.js +2 -14
- package/lib/commonjs/components/ToggleButton.js.map +1 -1
- package/lib/commonjs/components/Touchable.js +2 -15
- package/lib/commonjs/components/Touchable.js.map +1 -1
- package/lib/commonjs/components/Touchable.web.js.map +1 -1
- package/lib/commonjs/components/Typography.js.map +1 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.native.js.map +1 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayerProps.js.map +1 -1
- package/lib/commonjs/components/useAuthState.js.map +1 -1
- package/lib/commonjs/index.js +19 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappings/BottomSheet.js +37 -9
- package/lib/commonjs/mappings/BottomSheet.js.map +1 -1
- package/lib/commonjs/mappings/FlatList.js +0 -3
- package/lib/commonjs/mappings/FlatList.js.map +1 -1
- package/lib/commonjs/mappings/MapMarker.js +15 -0
- package/lib/commonjs/mappings/MapMarker.js.map +1 -1
- package/lib/commonjs/mappings/MapView.js +5 -0
- package/lib/commonjs/mappings/MapView.js.map +1 -1
- package/lib/commonjs/mappings/SwipeableView.js +183 -0
- package/lib/commonjs/mappings/SwipeableView.js.map +1 -0
- package/lib/commonjs/utilities.js +28 -3
- package/lib/commonjs/utilities.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +18 -3
- package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/components/Button.js +32 -10
- package/lib/module/components/SwipeableView/SwipeableView.js +149 -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/BottomSheet.js +38 -10
- package/lib/module/mappings/BottomSheet.js.map +1 -1
- package/lib/module/mappings/FlatList.js +0 -3
- package/lib/module/mappings/FlatList.js.map +1 -1
- package/lib/module/mappings/MapMarker.js +16 -1
- package/lib/module/mappings/MapMarker.js.map +1 -1
- package/lib/module/mappings/MapView.js +6 -1
- package/lib/module/mappings/MapView.js.map +1 -1
- package/lib/module/mappings/SwipeableView.js +175 -0
- package/lib/module/mappings/SwipeableView.js.map +1 -0
- package/lib/module/utilities.js +19 -1
- package/lib/module/utilities.js.map +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +6 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.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/BottomSheet.d.ts +48 -4
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +0 -3
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapMarker.d.ts +32 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapView.d.ts +11 -0
- package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
- package/lib/typescript/src/mappings/SwipeableView.d.ts +426 -0
- package/lib/typescript/src/mappings/SwipeableView.d.ts.map +1 -0
- package/lib/typescript/src/utilities.d.ts +6 -0
- package/lib/typescript/src/utilities.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/components/BottomSheet/BottomSheet.js +17 -2
- package/src/components/BottomSheet/BottomSheet.tsx +32 -4
- package/src/components/SwipeableView/SwipeableView.js +121 -0
- package/src/components/SwipeableView/SwipeableView.tsx +304 -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/BottomSheet.js +37 -9
- package/src/mappings/BottomSheet.ts +43 -8
- package/src/mappings/FlatList.js +0 -3
- package/src/mappings/FlatList.ts +0 -3
- package/src/mappings/MapMarker.js +16 -1
- package/src/mappings/MapMarker.ts +20 -0
- package/src/mappings/MapView.js +6 -1
- package/src/mappings/MapView.ts +8 -0
- package/src/mappings/SwipeableView.js +181 -0
- package/src/mappings/SwipeableView.ts +210 -0
- package/src/utilities.js +42 -1
- package/src/utilities.ts +72 -1
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Swiper","vertical","loop","timeout","from","prevTitle","nextTitle","prevTitleColor","nextTitleColor","dotsTouchable","dotColor","dotActiveColor","data","keyExtractor","renderItem","children","onIndexChanged","style","
|
|
1
|
+
{"version":3,"names":["Swiper","vertical","loop","timeout","from","prevTitle","nextTitle","prevTitleColor","nextTitleColor","dotsTouchable","dotColor","dotActiveColor","data","keyExtractor","renderItem","children","onIndexChanged","style","prevTitleStyle","color","nextTitleStyle","dotProps","badgeStyle","backgroundColor","dotActiveStyle","map","item","index","component","key","React","cloneElement"],"sourceRoot":"../../../../src","sources":["components/Swiper/Swiper.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAAsD;AAsBtD,MAAMA,MAAM,GAAG;EAAA,IAAC;IACdC,QAAQ,GAAG,KAAK;IAChBC,IAAI,GAAG,KAAK;IACZC,OAAO,GAAG,CAAC;IACXC,IAAI,GAAG,CAAC;IACRC,SAAS,GAAG,EAAE;IACdC,SAAS,GAAG,EAAE;IACdC,cAAc;IACdC,cAAc;IACdC,aAAa,GAAG,IAAI;IACpBC,QAAQ;IACRC,cAAc;IACdC,IAAI;IACJC,YAAY;IACZC,UAAU;IACVC,QAAQ;IACRC,cAAc;IACdC;EACgB,CAAC;EAAA,oBACjB,6BAAC,iBAAI;IAAC,KAAK,EAAEA;EAAM,gBAEjB,6BAAC,6BAAe;IACd,IAAI,EAAEb,IAAK;IACX,IAAI,EAAEF,IAAK;IACX,OAAO,EAAEC,OAAQ;IACjB,QAAQ,EAAEF,QAAS;IACnB,cAAc,EAAEe,cAAe;IAC/B,aAAa,EAAE;MACbX,SAAS;MACTC,SAAS;MACTY,cAAc,EAAE;QAAEC,KAAK,EAAEZ;MAAe,CAAC;MACzCa,cAAc,EAAE;QAAED,KAAK,EAAEX;MAAe,CAAC;MACzCC,aAAa;MACb,IAAIC,QAAQ,GACR;QAAEW,QAAQ,EAAE;UAAEC,UAAU,EAAE;YAAEC,eAAe,EAAEb;UAAS;QAAE;MAAE,CAAC,GAC3D,CAAC,CAAC,CAAC;MACP,IAAIC,cAAc,GACd;QAAEa,cAAc,EAAE;UAAED,eAAe,EAAEZ;QAAe;MAAE,CAAC,GACvD,CAAC,CAAC;IACR;EAAE,GAEDC,IAAI,IAAIE,UAAU,GACfF,IAAI,CAACa,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;IACxB,MAAMC,SAAS,GAAGd,UAAU,CAAC;MAAEY,IAAI;MAAEC;IAAM,CAAC,CAAC;IAE7C,IAAI,CAACC,SAAS,EAAE;MACd,OAAO,IAAI;IACb;IAEA,MAAMC,GAAG,GAAGhB,YAAY,GAAGA,YAAY,CAACa,IAAI,EAAEC,KAAK,CAAC,GAAGA,KAAK;IAC5D,oBAAOG,cAAK,CAACC,YAAY,CAACH,SAAS,EAAE;MACnCC;IACF,CAAC,CAAC;EACJ,CAAC,CAAC,GACFd,QAAQ,CACI,CACb;AAAA,CACR;AAAC,eAEaf,MAAM;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styles","StyleSheet","create","wrapper","flex","SwiperItem","children","style"
|
|
1
|
+
{"version":3,"names":["styles","StyleSheet","create","wrapper","flex","SwiperItem","children","style"],"sourceRoot":"../../../../src","sources":["components/Swiper/SwiperItem.tsx"],"mappings":";;;;;;AAAA;AACA;AAAsE;AAEtE,MAAMA,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAOF,MAAMC,UAAU,GAAG;EAAA,IAAC;IAAEC,QAAQ;IAAEC;EAAmB,CAAC;EAAA,oBAClD,6BAAC,iBAAI;IAAC,KAAK,EAAE,CAACP,MAAM,CAACG,OAAO,EAAEI,KAAK;EAAE,GAAED,QAAQ,CAAQ;AAAA,CACxD;AAAC,eAEaD,UAAU;AAAA"}
|
|
@@ -13,6 +13,7 @@ var _hooks = require("../hooks");
|
|
|
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
|
+
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); }
|
|
16
17
|
function Switch(_ref) {
|
|
17
18
|
let {
|
|
18
19
|
value,
|
|
@@ -37,6 +38,7 @@ function Switch(_ref) {
|
|
|
37
38
|
setChecked(value);
|
|
38
39
|
}
|
|
39
40
|
}, [value, checked]);
|
|
41
|
+
|
|
40
42
|
// This special logic is to handle weird APIs like Airtable that return
|
|
41
43
|
// true or undefined for a boolean
|
|
42
44
|
const previousDefaultValue = (0, _hooks.usePrevious)(defaultValue);
|
|
@@ -45,24 +47,24 @@ function Switch(_ref) {
|
|
|
45
47
|
setChecked(Boolean(defaultValue));
|
|
46
48
|
}
|
|
47
49
|
}, [defaultValue, previousDefaultValue]);
|
|
48
|
-
return /*#__PURE__*/React.createElement(_reactNative.Switch, {
|
|
50
|
+
return /*#__PURE__*/React.createElement(_reactNative.Switch, _extends({
|
|
49
51
|
value: checked,
|
|
50
52
|
disabled: disabled,
|
|
51
53
|
trackColor: {
|
|
52
54
|
false: inactiveTrackThemeColor,
|
|
53
55
|
true: activeTrackThemeColor
|
|
54
56
|
},
|
|
55
|
-
thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor
|
|
57
|
+
thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor
|
|
56
58
|
// @ts-ignore react-native-web only
|
|
59
|
+
,
|
|
57
60
|
activeThumbColor: activeThumbThemeColor,
|
|
58
61
|
ios_backgroundColor: inactiveTrackThemeColor,
|
|
59
62
|
style: style,
|
|
60
63
|
onValueChange: bool => {
|
|
61
64
|
setChecked(bool);
|
|
62
65
|
onValueChange && onValueChange(bool);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
+
}
|
|
67
|
+
}, rest));
|
|
66
68
|
}
|
|
67
69
|
function Row(_ref2) {
|
|
68
70
|
let {
|
|
@@ -91,7 +93,7 @@ function Row(_ref2) {
|
|
|
91
93
|
setChecked(defaultValue);
|
|
92
94
|
}
|
|
93
95
|
}, [defaultValue]);
|
|
94
|
-
return /*#__PURE__*/React.createElement(_FormRow.default, {
|
|
96
|
+
return /*#__PURE__*/React.createElement(_FormRow.default, _extends({
|
|
95
97
|
disabled: disabled,
|
|
96
98
|
onPress: () => {
|
|
97
99
|
setChecked(!checked);
|
|
@@ -99,9 +101,8 @@ function Row(_ref2) {
|
|
|
99
101
|
},
|
|
100
102
|
label: label,
|
|
101
103
|
direction: direction,
|
|
102
|
-
style: style
|
|
103
|
-
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Switch, {
|
|
104
|
+
style: style
|
|
105
|
+
}, rest), /*#__PURE__*/React.createElement(Switch, {
|
|
105
106
|
theme: theme,
|
|
106
107
|
value: checked,
|
|
107
108
|
disabled: disabled,
|
|
@@ -116,14 +117,4 @@ const SwitchRow = (0, _theming.withTheme)(Row);
|
|
|
116
117
|
exports.SwitchRow = SwitchRow;
|
|
117
118
|
var _default = (0, _theming.withTheme)(Switch);
|
|
118
119
|
exports.default = _default;
|
|
119
|
-
//# sourceMappingURL=Switch.js.mapckColor: activeTrackColor,
|
|
120
|
-
inactiveTrackColor: inactiveTrackColor,
|
|
121
|
-
activeThumbColor: activeThumbColor,
|
|
122
|
-
inactiveThumbColor: inactiveThumbColor
|
|
123
|
-
}));
|
|
124
|
-
}
|
|
125
|
-
const SwitchRow = (0, _theming.withTheme)(Row);
|
|
126
|
-
exports.SwitchRow = SwitchRow;
|
|
127
|
-
var _default = (0, _theming.withTheme)(Switch);
|
|
128
|
-
exports.default = _default;
|
|
129
120
|
//# sourceMappingURL=Switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Switch","value","defaultValue","disabled","onValueChange","activeTrackColor","inactiveTrackColor","activeThumbColor","inactiveThumbColor","theme","style","rest","activeTrackThemeColor","colors","primary","inactiveTrackThemeColor","activeThumbThemeColor","inactiveThumbThemeColor","checked","setChecked","React","useState","useEffect","previousDefaultValue","usePrevious","Boolean","
|
|
1
|
+
{"version":3,"names":["Switch","value","defaultValue","disabled","onValueChange","activeTrackColor","inactiveTrackColor","activeThumbColor","inactiveThumbColor","theme","style","rest","activeTrackThemeColor","colors","primary","inactiveTrackThemeColor","activeThumbThemeColor","inactiveThumbThemeColor","checked","setChecked","React","useState","useEffect","previousDefaultValue","usePrevious","Boolean","false","true","bool","Row","label","direction","RowDirection","SwitchRow","withTheme"],"sourceRoot":"../../../src","sources":["components/Switch.tsx"],"mappings":";;;;;;AAAA;AACA;AAMA;AACA;AACA;AAEA;AAAuC;AAAA;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;IACb,KAAK,EAAES,OAAQ;IACf,QAAQ,EAAEf,QAAS;IACnB,aAAa,EAAEC,aAAc;IAC7B,gBAAgB,EAAEC,gBAAiB;IACnC,kBAAkB,EAAEC,kBAAmB;IACvC,gBAAgB,EAAEC,gBAAiB;IACnC,kBAAkB,EAAEC;EAAmB,EACvC,CACM;AAEd;AAEA,MAAMyB,SAAS,GAAG,IAAAC,kBAAS,EAACL,GAAG,CAAC;AAAC;AAAA,eAElB,IAAAK,kBAAS,EAAClC,MAAM,CAAC;AAAA"}
|
|
@@ -10,6 +10,7 @@ var _theming = require("../../theming");
|
|
|
10
10
|
var _utilities = require("../../utilities");
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
|
+
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); }
|
|
13
14
|
const TabViewComponent = _ref => {
|
|
14
15
|
let {
|
|
15
16
|
Icon,
|
|
@@ -35,11 +36,13 @@ const TabViewComponent = _ref => {
|
|
|
35
36
|
textStyles,
|
|
36
37
|
viewStyles
|
|
37
38
|
} = (0, _utilities.extractStyles)(style);
|
|
39
|
+
|
|
38
40
|
//Check type of child using props
|
|
39
41
|
//Regular '.type' cannot work because Draftbit strips the type in Draft view
|
|
40
42
|
const instanceOfTabViewItemProps = object => {
|
|
41
43
|
return "title" in object;
|
|
42
44
|
};
|
|
45
|
+
|
|
43
46
|
//Populate routes and scenes based on children
|
|
44
47
|
React.useEffect(() => {
|
|
45
48
|
const newRoutes = [];
|
|
@@ -65,8 +68,7 @@ const TabViewComponent = _ref => {
|
|
|
65
68
|
}
|
|
66
69
|
};
|
|
67
70
|
const renderTabBar = props => {
|
|
68
|
-
return /*#__PURE__*/React.createElement(_reactNativeTabView.TabBar, {
|
|
69
|
-
...props,
|
|
71
|
+
return /*#__PURE__*/React.createElement(_reactNativeTabView.TabBar, _extends({}, props, {
|
|
70
72
|
activeColor: activeColor || theme.colors.primary,
|
|
71
73
|
inactiveColor: inactiveColor || "rgb(200,200,200)",
|
|
72
74
|
pressColor: pressColor || theme.colors.primary,
|
|
@@ -80,7 +82,7 @@ const TabViewComponent = _ref => {
|
|
|
80
82
|
route,
|
|
81
83
|
color
|
|
82
84
|
} = _ref2;
|
|
83
|
-
return
|
|
85
|
+
return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
84
86
|
name: route.icon,
|
|
85
87
|
color: color,
|
|
86
88
|
size: 16
|
|
@@ -89,8 +91,9 @@ const TabViewComponent = _ref => {
|
|
|
89
91
|
style: {
|
|
90
92
|
backgroundColor: tabsBackgroundColor || theme.colors.background
|
|
91
93
|
}
|
|
92
|
-
});
|
|
94
|
+
}));
|
|
93
95
|
};
|
|
96
|
+
|
|
94
97
|
//Cannot render TabView without at least one tab
|
|
95
98
|
if (!routes.length) {
|
|
96
99
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -111,14 +114,4 @@ const TabViewComponent = _ref => {
|
|
|
111
114
|
};
|
|
112
115
|
var _default = (0, _theming.withTheme)(TabViewComponent);
|
|
113
116
|
exports.default = _default;
|
|
114
|
-
//# sourceMappingURL=TabView.js.mapw.SceneMap)(tabScenes),
|
|
115
|
-
renderTabBar: renderTabBar,
|
|
116
|
-
onIndexChange: indexChangeHandler,
|
|
117
|
-
tabBarPosition: tabBarPosition,
|
|
118
|
-
keyboardDismissMode: keyboardDismissMode,
|
|
119
|
-
swipeEnabled: swipeEnabled
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
var _default = (0, _theming.withTheme)(TabViewComponent);
|
|
123
|
-
exports.default = _default;
|
|
124
117
|
//# sourceMappingURL=TabView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TabViewComponent","Icon","onIndexChanged","onEndReached","tabBarPosition","keyboardDismissMode","swipeEnabled","scrollEnabled","activeColor","inactiveColor","pressColor","indicatorColor","tabsBackgroundColor","style","theme","children","index","setIndex","React","useState","routes","setRoutes","tabScenes","setTabScenes","textStyles","viewStyles","extractStyles","instanceOfTabViewItemProps","object","useEffect","newRoutes","scenes","Children","toArray","filter","child","isValidElement","props","forEach","item","idx","push","key","toString","title","icon","accessibilityLabel","indexChangeHandler","i","length","renderTabBar","
|
|
1
|
+
{"version":3,"names":["TabViewComponent","Icon","onIndexChanged","onEndReached","tabBarPosition","keyboardDismissMode","swipeEnabled","scrollEnabled","activeColor","inactiveColor","pressColor","indicatorColor","tabsBackgroundColor","style","theme","children","index","setIndex","React","useState","routes","setRoutes","tabScenes","setTabScenes","textStyles","viewStyles","extractStyles","instanceOfTabViewItemProps","object","useEffect","newRoutes","scenes","Children","toArray","filter","child","isValidElement","props","forEach","item","idx","push","key","toString","title","icon","accessibilityLabel","indexChangeHandler","i","length","renderTabBar","colors","primary","backgroundColor","route","color","background","SceneMap","withTheme"],"sourceRoot":"../../../../src","sources":["components/T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D,IAAI;MAAA,CACT;MACD,KAAK,EAAE;QACLF,eAAe,EAAEzC,mBAAmB,IAAIE,KAAK,CAACqC,MAAM,CAACK;MACvD;IAAE,GACF;EAEN,CAAC;;EAED;EACA,IAAI,CAACpC,MAAM,CAAC6B,MAAM,EAAE;IAClB,oBAAO,yCAAK;EACd;EAEA,oBACE,oBAAC,2BAAO;IACN,KAAK,EAAE,CAACxB,UAAU,CAAE;IACpB,eAAe,EAAE;MAAET,KAAK;MAAEI;IAAO,CAAE;IACnC,WAAW,EAAE,IAAAqC,4BAAQ,EAACnC,SAAS,CAAE;IACjC,YAAY,EAAE4B,YAAa;IAC3B,aAAa,EAAEH,kBAAmB;IAClC,cAAc,EAAE3C,cAAe;IAC/B,mBAAmB,EAAEC,mBAAoB;IACzC,YAAY,EAAEC;EAAa,EAC3B;AAEN,CAAC;AAAC,eAEa,IAAAoD,kBAAS,EAAC1D,gBAAgB,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TabViewItem","style","children","
|
|
1
|
+
{"version":3,"names":["TabViewItem","style","children","styles","parentContainer","StyleSheet","create","flex"],"sourceRoot":"../../../../src","sources":["components/TabView/TabViewItem.tsx"],"mappings":";;;;;;AAAA;AACA;AAAsE;AAUtE,MAAMA,WAAgE,GAAG,QAGnE;EAAA,IAHoE;IACxEC,KAAK;IACLC;EACF,CAAC;EACC,oBAAO,6BAAC,iBAAI;IAAC,KAAK,EAAE,CAACC,MAAM,CAACC,eAAe,EAAEH,KAAK;EAAE,GAAEC,QAAQ,CAAQ;AACxE,CAAC;AAED,MAAMC,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BF,eAAe,EAAE;IACfG,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,eAEYP,WAAW;AAAA"}
|
|
@@ -39,6 +39,7 @@ const Table = _ref => {
|
|
|
39
39
|
return object.isTableHeader;
|
|
40
40
|
}, []);
|
|
41
41
|
const isRenderItem = data && renderItem;
|
|
42
|
+
|
|
42
43
|
//Uses 'renderItem' and 'data' to create an array of children
|
|
43
44
|
const dataAsChildren = _react.default.useMemo(() => {
|
|
44
45
|
if (!isRenderItem) return [];
|
|
@@ -63,7 +64,7 @@ const Table = _ref => {
|
|
|
63
64
|
const nestedChildren = _react.default.Children.toArray(item.props.children);
|
|
64
65
|
//Header can be nested in React.Fragment when in renderItem
|
|
65
66
|
const nestedHeaders = nestedChildren.filter(child => isTableHeader(child.props));
|
|
66
|
-
if (nestedHeaders
|
|
67
|
+
if (nestedHeaders !== null && nestedHeaders !== void 0 && nestedHeaders.length) {
|
|
67
68
|
//New element excluding header children
|
|
68
69
|
return /*#__PURE__*/_react.default.cloneElement(item, {
|
|
69
70
|
children: nestedChildren.filter(child => !isTableHeader(child.props))
|
|
@@ -78,7 +79,7 @@ const Table = _ref => {
|
|
|
78
79
|
const nestedChildren = _react.default.Children.toArray(item.props.children);
|
|
79
80
|
//Header can be nested in React.Fragment when in renderItem
|
|
80
81
|
const nestedHeaders = nestedChildren.filter(child => isTableHeader(child.props));
|
|
81
|
-
if (nestedHeaders
|
|
82
|
+
if (nestedHeaders !== null && nestedHeaders !== void 0 && nestedHeaders.length) {
|
|
82
83
|
return nestedHeaders[0];
|
|
83
84
|
}
|
|
84
85
|
return item;
|
|
@@ -110,9 +111,7 @@ const Table = _ref => {
|
|
|
110
111
|
value: contextValue
|
|
111
112
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
112
113
|
style: [styles.container, borderViewStyle, style]
|
|
113
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, header), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView,
|
|
114
|
-
...rest
|
|
115
|
-
}, childrenWithoutHeader)));
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, header), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, rest, childrenWithoutHeader)));
|
|
116
115
|
};
|
|
117
116
|
const styles = _reactNative.StyleSheet.create({
|
|
118
117
|
container: {
|
|
@@ -121,4 +120,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
121
120
|
});
|
|
122
121
|
var _default = (0, _theming.withTheme)(Table);
|
|
123
122
|
exports.default = _default;
|
|
124
|
-
//# sourceMappingURL=Table.js.map
|
|
123
|
+
//# sourceMappingURL=Table.js.mapourceMappingURL=Table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Table","theme","borderWidth","borderColor","colors","divider","borderStyle","drawTopBorder","drawBottomBorder","drawStartBorder","drawEndBorder","cellVerticalPadding","cellHorizontalPadding","data","keyExtractor","renderItem","children","childrenProp","style","rest","Error","console","warn","isTableHeader","React","useCallback","object","isRenderItem","dataAsChildren","useMemo","map","item","index","component","key","toString","cloneElement","Children","toArray","validChildren","filter","isValidElement","childrenWithoutHeader","flattenedWithoutNestedHeaders","nestedChildren","props","nestedHeaders","child","length","header","flattenedPossibleHeaders","allHeaders","contextValue","borderViewStyle","generateBorderStyles","
|
|
1
|
+
{"version":3,"names":["Table","theme","borderWidth","borderColor","colors","divider","borderStyle","drawTopBorder","drawBottomBorder","drawStartBorder","drawEndBorder","cellVerticalPadding","cellHorizontalPadding","data","keyExtractor","renderItem","children","childrenProp","style","rest","Error","console","warn","isTableHeader","React","useCallback","object","isRenderItem","dataAsChildren","useMemo","map","item","index","component","key","toString","cloneElement","Children","toArray","validChildren","filter","isValidElement","childrenWithoutHeader","flattenedWithoutNestedHeaders","nestedChildren","props","nestedHeaders","child","length","header","flattenedPossibleHeaders","allHeaders","contextValue","borderViewStyle","generateBorderStyles","styles","container","StyleSheet","create","flex","withTheme"],"sourceRoot":"../../../../src","sources":["components/Table/Table.tsx"],"mappings":";;;;;;AAAA;AACA;AASA;AACA;AAKuB;AAUvB,MAAMA,KAAK,GAAG,QAiB2B;EAAA,IAjBR;IAC/BC,KAAK;IACLC,WAAW,GAAG,CAAC;IACfC,WAAW,GAAGF,KAAK,CAACG,MAAM,CA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AAU,CAACC,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAC5D,KAAK,CAAC;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TableStyleContext","React","createContext","generateBorderStyles","borderColor","borderWidth","borderStyle","drawTopBorder","drawBottomBorder","drawStartBorder","drawEndBorder","borderTopWidth","borderBottomWidth","borderStartWidth","borderEndWidth"],"sourceRoot":"../../../../src","sources":["components/Table/TableCommon.
|
|
1
|
+
{"version":3,"names":["TableStyleContext","React","createContext","generateBorderStyles","borderColor","borderWidth","borderStyle","drawTopBorder","drawBottomBorder","drawStartBorder","drawEndBorder","borderTopWidth","borderBottomWidth","borderStartWidth","borderEndWidth"],"sourceRoot":"../../../../src","sources":["components/Table/TableCommon.ts"],"mappings":";;;;;;;AAAA;AAA0B;AAKnB,MAAMA,iBAAiB,gBAAGC,cAAK,CAACC,aAAa,CAAkB,CAAC,CAAC,CAAC;AAAC;AAiBnE,SAASC,oBAAoB,OAQV;EAAA,IARW;IACnCC,WAAW;IACXC,WAAW;IACXC,WAAW;IACXC,aAAa;IACbC,gBAAgB;IAChBC,eAAe;IACfC;EACU,CAAC;EACX,OAAO;IACLN,WAAW;IACXE,WAAW;IACXK,cAAc,EAAEJ,aAAa,GAAGF,WAAW,GAAG,CAAC;IAC/CO,iBAAiB,EAAEJ,gBAAgB,GAAGH,WAAW,GAAG,CAAC;IACrDQ,gBAAgB,EAAEJ,eAAe,GAAGJ,WAAW,GAAG,CAAC;IACnDS,cAAc,EAAEJ,aAAa,GAAGL,WAAW,GAAG;EAChD,CAAC;AACH"}
|
|
@@ -26,6 +26,7 @@ const TableRow = _ref => {
|
|
|
26
26
|
theme
|
|
27
27
|
} = _ref;
|
|
28
28
|
const parentContextValue = _react.default.useContext(_TableCommon.TableStyleContext);
|
|
29
|
+
|
|
29
30
|
//Create context to use and pass to children based on own props or fall back to parent provided context
|
|
30
31
|
const contextValue = {
|
|
31
32
|
borderColor: borderColor || parentContextValue.borderColor,
|
|
@@ -58,4 +59,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
58
59
|
});
|
|
59
60
|
var _default = (0, _theming.withTheme)(TableRow);
|
|
60
61
|
exports.default = _default;
|
|
61
|
-
//# sourceMappingURL=TableRow.js.
|
|
62
|
+
//# sourceMappingURL=TableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TableRow","borderWidth","borderColor","borderStyle","drawTopBorder","drawBottomBorder","drawStartBorder","drawEndBorder","cellVerticalPadding","cellHorizontalPadding","isTableHeader","children","style","theme","parentContextValue","React","useContext","TableStyleContext","contextValue","borderViewStyle","generateBorderStyles","
|
|
1
|
+
{"version":3,"names":["TableRow","borderWidth","borderColor","borderStyle","drawTopBorder","drawBottomBorder","drawStartBorder","drawEndBorder","cellVerticalPadding","cellHorizontalPadding","isTableHeader","children","style","theme","parentContextValue","React","useContext","TableStyleContext","contextValue","borderViewStyle","generateBorderStyles","backgroundColor","colors","primary","styles","cellsContainer","StyleSheet","create","flexDirection","withTheme"],"sourceRoot":"../../../../src","sources":["components/Table/TableRow.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAOA;AAA0C;AAQ1C,MAAMA,QAAkD,GAAG,QAcrD;EAAA,IAdsD;IAC1DC,WAAW;IACXC,WAAW;IACXC,WAAW;IACXC,aAAa,GAAG,KAAK;IACrBC,gBAAgB,GAAG,IAAI;IACvBC,eAAe,GAAG,IAAI;IACtBC,aAAa,GAAG,KAAK;IACrBC,mBAAmB;IACnBC,qBAAqB;IACrBC,aAAa,GAAG,KAAK;IACrBC,QAAQ;IACRC,KAAK;IACLC;EACF,CAAC;EACC,MAAMC,kBAAkB,GAAGC,cAAK,CAACC,UAAU,CAACC,8BAAiB,CAAC;;EAE9D;EACA,MAAMC,YAA6B,GAAG;IACpChB,WAAW,EAAEA,WAAW,IAAIY,kBAAkB,CAACZ,WAAW;IAC1DC,WAAW,EAAEA,WAAW,IAAIW,kBAAkB,CAACX,WAAW;IAC1DF,WAAW,EAAEA,WAAW,IAAIa,kBAAkB,CAACb,WAAW;IAC1DQ,qBAAqB,EACnBA,qBAAqB,IAAIK,kBAAkB,CAACL,qBAAqB;IACnED,mBAAmB,EACjBA,mBAAmB,IAAIM,kBAAkB,CAACN;EAC9C,CAAC;EAED,MAAMW,eAAe,GAAG,IAAAC,iCAAoB,EAAC;IAC3ClB,WAAW,EAAEgB,YAAY,CAAChB,WAAW;IACrCD,WAAW,EAAEiB,YAAY,CAACjB,WAAW;IACrCE,WAAW,EAAEe,YAAY,CAACf,WAAW;IACrCC,aAAa;IACbC,gBAAgB;IAChBC,eAAe;IACfC;EACF,CAAC,CAAC;EACF,oBACE,6BAAC,8BAAiB,CAAC,QAAQ;IAAC,KAAK,EAAEW;EAAa,gBAC9C,6BAAC,iBAAI;IACH,KAAK,EAAE,CACLC,eAAe,EACfT,aAAa,GAAG;MAAEW,eAAe,EAAER,KAAK,CAACS,MAAM,CAACC;IAAQ,CAAC,GAAG,CAAC,CAAC,EAC9DX,KAAK,EACLY,MAAM,CAACC,cAAc;EACrB,GAEDd,QAAQ,CACJ,CACoB;AAEjC,CAAC;AAED,MAAMa,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BF,cAAc,EAAE;IACdG,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAC7B,QAAQ,CAAC;AAAA"}
|
|
@@ -9,57 +9,11 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _theming = require("../theming");
|
|
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); }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
16
|
class Text extends React.Component {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.state = {
|
|
16
|
-
nativeProps: {}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
setNativeProps(args) {
|
|
20
|
-
this.state.nativeProps = args || {};
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
const {
|
|
24
|
-
style,
|
|
25
|
-
...rest
|
|
26
|
-
} = this.props;
|
|
27
|
-
const writingDirection = _reactNative.I18nManager.isRTL ? "rtl" : "ltr";
|
|
28
|
-
return /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
29
|
-
...rest,
|
|
30
|
-
...this.state.nativeProps,
|
|
31
|
-
ref: c => {
|
|
32
|
-
this._root = c;
|
|
33
|
-
},
|
|
34
|
-
style: [{
|
|
35
|
-
textAlign: "left",
|
|
36
|
-
writingDirection
|
|
37
|
-
}, style]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const BaseLink = _ref => {
|
|
42
|
-
let {
|
|
43
|
-
style,
|
|
44
|
-
theme,
|
|
45
|
-
title,
|
|
46
|
-
...props
|
|
47
|
-
} = _ref;
|
|
48
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
49
|
-
hitSlop: 8,
|
|
50
|
-
style: [{
|
|
51
|
-
color: theme.colors.primary
|
|
52
|
-
}, style],
|
|
53
|
-
theme: theme,
|
|
54
|
-
...props
|
|
55
|
-
}, title);
|
|
56
|
-
};
|
|
57
|
-
exports.BaseLink = BaseLink;
|
|
58
|
-
const Link = (0, _theming.withTheme)(BaseLink);
|
|
59
|
-
exports.Link = Link;
|
|
60
|
-
var _default = (0, _theming.withTheme)(Text);
|
|
61
|
-
exports.default = _default;
|
|
62
|
-
//# sourceMappingURL=Text.js.mapext extends React.Component {
|
|
63
17
|
constructor() {
|
|
64
18
|
super(...arguments);
|
|
65
19
|
_defineProperty(this, "state", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Text","React","Component","
|
|
1
|
+
{"version":3,"names":["Text","React","Component","nativeProps","setNativeProps","args","state","render","style","rest","props","writingDirection","I18nManager","isRTL","c","_root","textAlign","BaseLink","theme","title","color","colors","primary","Link","withTheme"],"sourceRoot":"../../../src","sources":["components/Text.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvC,MAAMA,IAAI,SAASC,KAAK,CAACC,SAAS,CAAQ;EAAA;IAAA;IAAA,+BAG3B;MACXC,WAAW,EAAE,CAAC;IAChB,CAAC;EAAA;EAEDC,cAAc,CAACC,IAAe,EAAE;IAC9B,IAAI,CAACC,KAAK,CAACH,WAAW,GAAGE,IAAI,IAAI,CAAC,CAAC;EACrC;EAEAE,MAAM,GAAG;IACP,MAAM;MAAEC,KAAK;MAAE,GAAGC;IAAK,CAAC,GAAG,IAAI,CAACC,KAAK;IACrC,MAAMC,gBAAgB,GAAGC,wBAAW,CAACC,KAAK,GAAG,KAAK,GAAG,KAAK;IAE1D,oBACE,oBAAC,iBAAU,eACLJ,IAAI,EACJ,IAAI,CAACH,KAAK,CAACH,WAAW;MAC1B,GAAG,EAAGW,CAAC,IAAK;QACV,IAAI,CAACC,KAAK,GAAGD,CAAC;MAChB,CAAE;MACF,KAAK,EAAE,CACL;QACEE,SAAS,EAAE,MAAM;QACjBL;MACF,CAAC,EACDH,KAAK;IACL,GACF;EAEN;AACF;AAEO,MAAMS,QAAQ,GAAG,QAKA;EAAA,IALC;IACvBT,KAAK;IACLU,KAAK;IACLC,KAAK;IACL,GAAGT;EACA,CAAC;EACJ,oBACE,oBAAC,IAAI;IACH,OAAO,EAAE,CAAE;IACX,KAAK,EAAE,CAAC;MAAEU,KAAK,EAAEF,KAAK,CAACG,MAAM,CAACC;IAAQ,CAAC,EAAEd,KAAK,CAAE;IAChD,KAAK,EAAEU;EAAM,GACTR,KAAK,GAERS,KAAK,CACD;AAEX,CAAC;AAAC;AAEF,MAAMI,IAAS,GAAG,IAAAC,kBAAS,EAACP,QAAQ,CAAC;AAAC;AAAA,eAGvB,IAAAO,kBAAS,EAACxB,IAAI,CAAC;AAAA"}
|