@draftbit/core 46.11.5-57a4fa.2 → 46.11.5-84e8d7.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/AspectRatio.js +2 -16
- package/lib/commonjs/components/AspectRatio.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/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/Checkbox/CheckboxRow.js +23 -6
- package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
- package/lib/commonjs/components/CircleImage.js +2 -16
- package/lib/commonjs/components/CircleImage.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +3 -19
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/DeprecatedFAB.js +3 -20
- package/lib/commonjs/components/DeprecatedFAB.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/Picker/PickerComponent.android.js +4 -21
- package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +36 -11
- package/lib/commonjs/components/Portal/PortalManager.js +8 -34
- package/lib/commonjs/components/Portal/PortalManager.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/RadioButtonRow.js +5 -23
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/components/RadioButton/context.js +1 -1
- package/lib/commonjs/components/RadioButton/context.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/Touchable.web.js.map +1 -1
- package/lib/commonjs/hooks.js +3 -1
- package/lib/commonjs/hooks.js.map +1 -1
- package/lib/commonjs/index.js +0 -19
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappings/BottomSheet.js +38 -9
- package/lib/commonjs/mappings/BottomSheet.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
- package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
- package/lib/commonjs/mappings/CustomCode.js.map +1 -1
- package/lib/commonjs/mappings/FAB.js.map +1 -1
- package/lib/commonjs/mappings/MapCallout.js.map +1 -1
- package/lib/commonjs/mappings/Modal.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/styles/DarkTheme.js.map +1 -1
- package/lib/commonjs/utilities.js +2 -27
- 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/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/mappings/BottomSheet.js +39 -10
- package/lib/module/mappings/BottomSheet.js.map +1 -1
- package/lib/module/utilities.js +0 -18
- 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/index.d.ts +0 -1
- 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/utilities.d.ts +0 -6
- package/lib/typescript/src/utilities.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/components/BottomSheet/BottomSheet.js +17 -2
- package/src/components/BottomSheet/BottomSheet.tsx +32 -4
- package/src/index.js +0 -1
- package/src/index.tsx +0 -6
- package/src/mappings/BottomSheet.js +38 -9
- package/src/mappings/BottomSheet.ts +44 -8
- package/src/utilities.js +0 -41
- package/src/utilities.ts +0 -71
- package/lib/commonjs/components/SwipeableView/SwipeableView.js +0 -155
- package/lib/commonjs/components/SwipeableView/SwipeableView.js.map +0 -1
- package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js +0 -13
- package/lib/commonjs/components/SwipeableView/SwipeableViewButton.js.map +0 -1
- package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -13
- package/lib/commonjs/components/SwipeableView/SwipeableViewSwipeHandler.js.map +0 -1
- package/lib/commonjs/components/SwipeableView/index.js +0 -28
- package/lib/commonjs/components/SwipeableView/index.js.map +0 -1
- package/lib/commonjs/mappings/SwipeableView.js +0 -183
- package/lib/commonjs/mappings/SwipeableView.js.map +0 -1
- package/lib/module/components/SwipeableView/SwipeableView.js +0 -147
- package/lib/module/components/SwipeableView/SwipeableView.js.map +0 -1
- package/lib/module/components/SwipeableView/SwipeableViewButton.js +0 -6
- package/lib/module/components/SwipeableView/SwipeableViewButton.js.map +0 -1
- package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -6
- package/lib/module/components/SwipeableView/SwipeableViewSwipeHandler.js.map +0 -1
- package/lib/module/components/SwipeableView/index.js +0 -4
- package/lib/module/components/SwipeableView/index.js.map +0 -1
- package/lib/module/mappings/SwipeableView.js +0 -175
- package/lib/module/mappings/SwipeableView.js.map +0 -1
- package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts +0 -29
- package/lib/typescript/src/components/SwipeableView/SwipeableView.d.ts.map +0 -1
- package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts +0 -13
- package/lib/typescript/src/components/SwipeableView/SwipeableViewButton.d.ts.map +0 -1
- package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts +0 -13
- package/lib/typescript/src/components/SwipeableView/SwipeableViewSwipeHandler.d.ts.map +0 -1
- package/lib/typescript/src/components/SwipeableView/index.d.ts +0 -4
- package/lib/typescript/src/components/SwipeableView/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/SwipeableView.d.ts +0 -426
- package/lib/typescript/src/mappings/SwipeableView.d.ts.map +0 -1
- package/src/components/SwipeableView/SwipeableView.js +0 -117
- package/src/components/SwipeableView/SwipeableView.tsx +0 -299
- package/src/components/SwipeableView/SwipeableViewButton.js +0 -5
- package/src/components/SwipeableView/SwipeableViewButton.tsx +0 -18
- package/src/components/SwipeableView/SwipeableViewSwipeHandler.js +0 -5
- package/src/components/SwipeableView/SwipeableViewSwipeHandler.tsx +0 -20
- package/src/components/SwipeableView/index.js +0 -3
- package/src/components/SwipeableView/index.tsx +0 -3
- package/src/mappings/SwipeableView.js +0 -181
- package/src/mappings/SwipeableView.ts +0 -210
|
@@ -7,6 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
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); }
|
|
10
11
|
const AspectRatio = props => {
|
|
11
12
|
const [layout, setLayout] = _react.default.useState(null);
|
|
12
13
|
const {
|
|
@@ -33,22 +34,7 @@ const AspectRatio = props => {
|
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
37
|
-
...props,
|
|
38
|
-
style: style,
|
|
39
|
-
onLayout: _ref => {
|
|
40
|
-
let {
|
|
41
|
-
nativeEvent: {
|
|
42
|
-
layout: l
|
|
43
|
-
}
|
|
44
|
-
} = _ref;
|
|
45
|
-
return setLayout(l);
|
|
46
|
-
}
|
|
47
|
-
}, props.children);
|
|
48
|
-
};
|
|
49
|
-
var _default = AspectRatio;
|
|
50
|
-
exports.default = _default;
|
|
51
|
-
//# sourceMappingURL=AspectRatio.js.map_react.default.createElement(_reactNative.View, _extends({}, props, {
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({}, props, {
|
|
52
38
|
style: style,
|
|
53
39
|
onLayout: _ref => {
|
|
54
40
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AspectRatio","props","layout","setLayout","React","useState","aspectRatio","inputStyle","StyleSheet","flatten","style","width","height","push","
|
|
1
|
+
{"version":3,"names":["AspectRatio","props","layout","setLayout","React","useState","aspectRatio","inputStyle","StyleSheet","flatten","style","width","height","push","nativeEvent","l","children"],"sourceRoot":"../../../src","sources":["components/AspectRatio.tsx"],"mappings":";;;;;;AAAA;AACA;AAMsB;AAAA;AAOtB,MAAMA,WAAqD,GAAIC,KAAK,IAAK;EACvE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAyB,IAAI,CAAC;EACxE,MAAM;IAAEC,WAAW,GAAG,CAAC;IAAE,GAAGC;EAAW,CAAC,GACtCC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAACS,KAAK,CAAC,IAAI,CAAC,CAAC;EACvC,MAAMA,KAAK,GAAG,CAACH,UAAU,EAAE;IAAED;EAAY,CAAC,CAAC;EAE3C,IAAIJ,MAAM,EAAE;IACV,MAAM;MAAES,KAAK,GAAG,CAAC;MAAEC,MAAM,GAAG;IAAE,CAAC,GAAGV,MAAM;IACxC,IAAIS,KAAK,KAAK,CAAC,EAAE;MACfD,KAAK,CAACG,IAAI,CAAC;QAAEF,KAAK,EAAEC,MAAM,IAAI,CAAC,GAAGN,WAAW,CAAC;QAAEM;MAAO,CAAC,CAAC;IAC3D,CAAC,MAAM;MACLF,KAAK,CAACG,IAAI,CAAC;QAAEF,KAAK;QAAEC,MAAM,EAAED,KAAK,IAAI,CAAC,GAAGL,WAAW;MAAE,CAAC,CAAC;IAC1D;EACF;EACA,oBACE,6BAAC,iBAAI,eACCL,KAAK;IACT,KAAK,EAAES,KAAM;IACb,QAAQ,EAAE;MAAA,IAAC;QAAEI,WAAW,EAAE;UAAEZ,MAAM,EAAEa;QAAE;MAAE,CAAC;MAAA,OAAKZ,SAAS,CAACY,CAAC,CAAC;IAAA;EAAC,IAE1Dd,KAAK,CAACe,QAAQ,CACV;AAEX,CAAC;AAAC,eAEahB,WAAW;AAAA"}
|
|
@@ -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 ELEVATION = 1;
|
|
16
17
|
const DEFAULT_MAX_WIDTH = 960;
|
|
17
18
|
const Banner = _ref => {
|
|
@@ -69,6 +70,7 @@ const Banner = _ref => {
|
|
|
69
70
|
measured: true
|
|
70
71
|
});
|
|
71
72
|
};
|
|
73
|
+
|
|
72
74
|
// The banner animation has 2 parts:
|
|
73
75
|
// 1. Blank spacer element which animates its height to move the content
|
|
74
76
|
// 2. Actual banner which animates its translateY
|
|
@@ -78,10 +80,9 @@ const Banner = _ref => {
|
|
|
78
80
|
// However we can't animated banner's height directly as it'll also resize the content inside
|
|
79
81
|
const height = _reactNative.Animated.multiply(position, layout.height);
|
|
80
82
|
const translateY = _reactNative.Animated.multiply(_reactNative.Animated.add(position, -1), layout.height);
|
|
81
|
-
return /*#__PURE__*/React.createElement(_Surface.default, {
|
|
82
|
-
...rest,
|
|
83
|
+
return /*#__PURE__*/React.createElement(_Surface.default, _extends({}, rest, {
|
|
83
84
|
style: [styles.container, (0, _shadow.default)(ELEVATION), style]
|
|
84
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
85
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
85
86
|
style: [styles.wrapper, contentStyle]
|
|
86
87
|
}, /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
87
88
|
style: {
|
|
@@ -164,24 +165,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
164
165
|
});
|
|
165
166
|
var _default = (0, _theming.withTheme)(Banner);
|
|
166
167
|
exports.default = _default;
|
|
167
|
-
//# sourceMappingURL=Banner.js.map,
|
|
168
|
-
marginHorizontal: 8,
|
|
169
|
-
marginTop: 16,
|
|
170
|
-
marginBottom: 0
|
|
171
|
-
},
|
|
172
|
-
icon: {
|
|
173
|
-
margin: 8
|
|
174
|
-
},
|
|
175
|
-
message: {
|
|
176
|
-
flex: 1,
|
|
177
|
-
margin: 8
|
|
178
|
-
},
|
|
179
|
-
actions: {
|
|
180
|
-
flexDirection: "row",
|
|
181
|
-
justifyContent: "flex-end",
|
|
182
|
-
margin: 8
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
var _default = (0, _theming.withTheme)(Banner);
|
|
186
|
-
exports.default = _default;
|
|
187
168
|
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ELEVATION","DEFAULT_MAX_WIDTH","Banner","initiallyVisible","dismissable","icon","buttonColor","content","contentStyle","style","theme","Icon","rest","visible","setVisible","React","useState","useEffect","current","position","useRef","Animated","Value","layout","setLayout","height","measured","timing","duration","toValue","useNativeDriver","start","handleLayout","nativeEvent","multiply","translateY","add","
|
|
1
|
+
{"version":3,"names":["ELEVATION","DEFAULT_MAX_WIDTH","Banner","initiallyVisible","dismissable","icon","buttonColor","content","contentStyle","style","theme","Icon","rest","visible","setVisible","React","useState","useEffect","current","position","useRef","Animated","Value","layout","setLayout","height","measured","timing","duration","toValue","useNativeDriver","start","handleLayout","nativeEvent","multiply","translateY","add","styles","container","shadow","wrapper","absolute","transform","opacity","marginBottom","message","color","colors","text","actions","primary","StyleSheet","create","elevation","overflow","alignSelf","width","maxWidth","top","flexDirection","justifyContent","marginHorizontal","marginTop","margin","flex","withTheme"],"sourceRoot":"../../../src","sources":["components/Banner.tsx"],"mappings":";;;;;;AAAA;AACA;AASA;AAEA;AACA;AAAuC;AAAA;AAAA;AAAA;AAGvC,MAAMA,SAAS,GAAG,CAAC;AACnB,MAAMC,iBAAiB,GAAG,GAAG;AA4B7B,MAAMC,MAAgD,GAAG,QAWnD;EAAA,IAXoD;IACxDC,gBAAgB,GAAG,IAAI;IACvBC,WAAW,GAAG,IAAI;IAClBC,IAAI;IACJC,WAA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pBC,cAAc,EAAE,UAAU;IAC1BG,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAAC,eAEY,IAAAE,kBAAS,EAAC/D,MAAM,CAAC;AAAA"}
|
|
@@ -13,8 +13,12 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
13
13
|
const BottomSheet = _ref => {
|
|
14
14
|
let {
|
|
15
15
|
theme,
|
|
16
|
-
snapPoints
|
|
17
|
-
|
|
16
|
+
snapPoints: snapPointsProp,
|
|
17
|
+
topSnapPosition = "10%",
|
|
18
|
+
middleSnapPosition = "50%",
|
|
19
|
+
bottomSnapPosition = "80%",
|
|
20
|
+
initialSnapIndex,
|
|
21
|
+
initialSnapPosition = "bottom",
|
|
18
22
|
showHandle = true,
|
|
19
23
|
handleColor = theme.colors.divider,
|
|
20
24
|
topBorderRadius = 20,
|
|
@@ -26,13 +30,24 @@ const BottomSheet = _ref => {
|
|
|
26
30
|
...rest
|
|
27
31
|
} = _ref;
|
|
28
32
|
const backgroundColor = (style === null || style === void 0 ? void 0 : style.backgroundColor) || theme.colors.background;
|
|
33
|
+
const snapPoints = snapPointsProp || [topSnapPosition, middleSnapPosition, bottomSnapPosition];
|
|
34
|
+
const getSnapIndexFromPosition = position => {
|
|
35
|
+
switch (position) {
|
|
36
|
+
case "top":
|
|
37
|
+
return 0;
|
|
38
|
+
case "middle":
|
|
39
|
+
return 1;
|
|
40
|
+
case "bottom":
|
|
41
|
+
return 2;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
29
44
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
30
45
|
style: styles.parentContainer,
|
|
31
46
|
pointerEvents: "box-none"
|
|
32
47
|
}, /*#__PURE__*/_react.default.createElement(_BottomSheetComponent.default, _extends({
|
|
33
48
|
componentType: "ScrollView",
|
|
34
49
|
snapPoints: snapPoints,
|
|
35
|
-
initialSnapIndex: initialSnapIndex,
|
|
50
|
+
initialSnapIndex: initialSnapIndex !== null && initialSnapIndex !== void 0 ? initialSnapIndex : getSnapIndexFromPosition(initialSnapPosition),
|
|
36
51
|
renderHandle: () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showHandle && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
37
52
|
style: [styles.handleContainer, {
|
|
38
53
|
backgroundColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BottomSheet","theme","snapPoints","initialSnapIndex","showHandle","handleColor","colors","divider","topBorderRadius","borderWidth","borderColor","onSettle","style","children","rest","backgroundColor","background","styles","parentContainer","handleContainer","borderTopLeftRadius","borderTopRightRadius","handle","contentContainerStyle","StyleSheet","flatten","containerStyle","create","
|
|
1
|
+
{"version":3,"names":["BottomSheet","theme","snapPoints","snapPointsProp","topSnapPosition","middleSnapPosition","bottomSnapPosition","initialSnapIndex","initialSnapPosition","showHandle","handleColor","colors","divider","topBorderRadius","borderWidth","borderColor","onSettle","style","children","rest","backgroundColor","background","getSnapIndexFromPosition","position","styles","parentContainer","handleContainer","borderTopLeftRadius","borderTopRightRadius","handle","contentContainerStyle","StyleSheet","flatten","containerStyle","create","left","right","top","bottom","zIndex","overflow","paddingHorizontal","paddingVertical","flex","alignItems","width","height","borderRadius","withTheme"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/BottomSheet.tsx"],"mappings":";;;;;;AAAA;AACA;AAQA;AAEA;AAA0C;AAAA;AAoB1C,MAAMA,WAAgE,GAAG,QAiBnE;EAAA,IAjBoE;IACxEC,KAAK;IACLC,UAAU,EAAEC,cAAc;IAC1BC,eAAe,GAAG,KAAK;IACvBC,kBAAkB,GAAG,KAAK;IAC1BC,kBAAkB,GAAG,KAAK;IAC1BC,gBAAgB;IAChBC,mBAAmB,GAAG,QAAQ;IAC9BC,UAAU,GAAG,IAAI;IACjBC,WAAW,GAAGT,KAAK,CAACU,MAAM,CAACC,OAAO;IAClCC,eAAe,GAAG,EAAE;IACpBC,WAAW,GAAG,CAAC;IACfC,WAAW,GAAGd,KAAK,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,oBAAoB,EAAEf,eAAe;MACrCC,WAAW;MACXC;IACF,CAAC,CACF,CAAE;IACH,QAAQ,EAAEC;EAAS,GACfG,IAAI,GAEPD,QAAQ,CACY,CAClB;AAEX,CAAC;AAED,MAAMM,MAAM,GAAGO,uBAAU,CAACG,MAAM,CAAC;EAC/B;EACAT,eAAe,EAAE;IACfF,QAAQ,EAAE,UAAU;IACpBY,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,MAAM,EAAE,EAAE;IACVC,QAAQ,EAAE;EACZ,CAAC;EACDV,qBAAqB,EAAE;IACrBW,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE;EACnB,CAAC;EACDT,cAAc,EAAE;IACdU,IAAI,EAAE,CAAC;IACPH,QAAQ,EAAE;EACZ,CAAC;EACDd,eAAe,EAAE;IACfkB,UAAU,EAAE,QAAQ;IACpBF,eAAe,EAAE;EACnB,CAAC;EACDb,MAAM,EAAE;IACNgB,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAChD,WAAW,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,OAAO;IACPC,mBAAmB;IACnBP,UAAU;IACVQ,aAAa;IACbf,SAAS,GAAGH,SAAS,CAACM,GAAG;IACzBa,QAAQ;IACRC,KAAK;IACLC,KAAK;IACLC,cAAc;IACd,GAAGC;EACL,CAAC;EACC,MAAM;IACJC,MAAM,EAAEC,cAAc;IACtBC,aAAa;IACbvB,SAAS,EAAED;EACb,CAAC,GAAG,IAAAyB,gCAAuB,GAAE;EAE7B,MAAMH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,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"}
|
|
@@ -14,8 +14,7 @@ var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
17
|
-
|
|
18
|
-
let Direction;
|
|
17
|
+
var Direction;
|
|
19
18
|
exports.Direction = Direction;
|
|
20
19
|
(function (Direction) {
|
|
21
20
|
Direction["Row"] = "row";
|
|
@@ -58,7 +57,6 @@ const CheckboxRow = _ref => {
|
|
|
58
57
|
setInternalValue(status);
|
|
59
58
|
}
|
|
60
59
|
}, [status]);
|
|
61
|
-
|
|
62
60
|
// This special logic is to handle weird APIs like Airtable that return
|
|
63
61
|
// true or undefined for a boolean
|
|
64
62
|
const previousDefaultValue = (0, _hooks.usePrevious)(defaultValue);
|
|
@@ -82,13 +80,14 @@ const CheckboxRow = _ref => {
|
|
|
82
80
|
textStyles,
|
|
83
81
|
viewStyles
|
|
84
82
|
} = (0, _utilities.extractStyles)(style);
|
|
85
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable,
|
|
83
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
86
84
|
onPress: handlePress,
|
|
87
85
|
style: [viewStyles, styles.mainParent, {
|
|
88
86
|
flexDirection: direction
|
|
89
87
|
}],
|
|
90
|
-
disabled: disabled
|
|
91
|
-
|
|
88
|
+
disabled: disabled,
|
|
89
|
+
...rest
|
|
90
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
92
91
|
style: [styles.label, {
|
|
93
92
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
94
93
|
}, labelContainerStyle]
|
|
@@ -126,4 +125,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
126
125
|
});
|
|
127
126
|
var _default = CheckboxRow;
|
|
128
127
|
exports.default = _default;
|
|
128
|
+
//# sourceMappingURL=CheckboxRow.js.mape-around",
|
|
129
|
+
paddingStart: 20,
|
|
130
|
+
minHeight: 50,
|
|
131
|
+
paddingEnd: 20,
|
|
132
|
+
display: "flex",
|
|
133
|
+
..._reactNative.Platform.select({
|
|
134
|
+
web: {
|
|
135
|
+
cursor: "pointer",
|
|
136
|
+
userSelect: "none"
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
},
|
|
140
|
+
label: {
|
|
141
|
+
flex: 3
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
var _default = CheckboxRow;
|
|
145
|
+
exports.default = _default;
|
|
129
146
|
//# sourceMappingURL=CheckboxRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Direction","renderLabel","value","labelStyle","textStyle","isString","CheckboxRow","label","labelContainerStyle","checkboxStyle","direction","Row","Icon","status","disabled","onPress","onCheck","onUncheck","color","uncheckedColor","defaultValue","checkedIcon","uncheckedIcon","size","
|
|
1
|
+
{"version":3,"names":["Direction","renderLabel","value","labelStyle","textStyle","isString","React","createElement","Text","style","Fragment","CheckboxRow","label","labelContainerStyle","checkboxStyle","direction","Row","Icon","status","disabled","onPress","onCheck","onUncheck","color","uncheckedColor","defaultValue","checkedIcon","uncheckedIcon","size","rest","internalValue","setInternalValue","useState","useEffect","previousDefaultValue","usePrevious","Boolean","handlePress","newValue","textStyles","viewStyles","extractStyles","Pressable","styles","mainParent","flexDirection","View","alignItems","Checkbox","StyleSheet","create","justifyContent","paddingStart","minHeight","paddingEnd","display","Platform","select","web","cursor","userSelect","flex"],"sourceRoot":"../../../../src","sources":["components/Checkbox/CheckboxRow.js"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAkC;AAAA;AAAA;AAC3B,IAAIA,SAAS;AAAC;AACrB,CAAC,UAAUA,SAAS,EAAE;EAClBA,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK;EACxBA,SAAS,CAAC,YAAY,CAAC,GAAG,aAAa;AAC3C,CAAC,EAAEA,SAAS,yBAAKA,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC;AACjC,MAAMC,WAAW,GAAG,CAACC,KAAK,EAAEC,UAAU,EAAEC,SAAS,KAAK;EAClD,IAAI,IAAAC,gBAAQ,EAACH,KAAK,CAAC,EAAE;IACjB,oBAAOI,KAAK,CAACC,aAAa,CAACC,aAAI,E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EA,WAAW;IAAEC,aAAa,EAAEA,aAAa;IAAEC,IAAI,EAAEA;EAAK,CAAC,CAAC,CAAC;AAC/P,CAAC;AACD,MAAMe,MAAM,GAAGM,uBAAU,CAACC,MAAM,CAAC;EAC7BN,UAAU,EAAE;IACRG,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;MACfC,GAAG,EAAE;QACDC,MAAM,EAAE,SAAS;QACjBC,UAAU,EAAE;MAChB;IACJ,CAAC;EACL,CAAC;EACDhD,KAAK,EAAE;IACHiD,IAAI,EAAE;EACV;AACJ,CAAC,CAAC;AAAC,eACYlD,WAAW;AAAA"}
|
|
@@ -10,6 +10,7 @@ var _Config = _interopRequireDefault(require("./Config"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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 CircleImage = _ref => {
|
|
14
15
|
let {
|
|
15
16
|
source = _Config.default.placeholderImageURL,
|
|
@@ -18,22 +19,7 @@ const CircleImage = _ref => {
|
|
|
18
19
|
...props
|
|
19
20
|
} = _ref;
|
|
20
21
|
const borderRadius = size / 2;
|
|
21
|
-
return /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
22
|
-
style: [{
|
|
23
|
-
width: size,
|
|
24
|
-
height: size,
|
|
25
|
-
borderRadius
|
|
26
|
-
}, style],
|
|
27
|
-
source: typeof source === "string" ? {
|
|
28
|
-
uri: source
|
|
29
|
-
} : source,
|
|
30
|
-
resizeMode: "cover",
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var _default = CircleImage;
|
|
35
|
-
exports.default = _default;
|
|
36
|
-
//# sourceMappingURL=CircleImage.js.mapeateElement(_reactNative.Image, _extends({
|
|
22
|
+
return /*#__PURE__*/React.createElement(_reactNative.Image, _extends({
|
|
37
23
|
style: [{
|
|
38
24
|
width: size,
|
|
39
25
|
height: size,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CircleImage","source","Config","placeholderImageURL","size","style","props","borderRadius","
|
|
1
|
+
{"version":3,"names":["CircleImage","source","Config","placeholderImageURL","size","style","props","borderRadius","width","height","uri"],"sourceRoot":"../../../src","sources":["components/CircleImage.tsx"],"mappings":";;;;;;AAAA;AACA;AAMA;AAA8B;AAAA;AAAA;AAAA;AAO9B,MAAMA,WAAqD,GAAG,QAKxD;EAAA,IALyD;IAC7DC,MAAM,GAAGC,eAAM,CAACC,mBAAmB;IACnCC,IAAI,GAAG,EAAE;IACTC,KAAK;IACL,GAAGC;EACL,CAAC;EACC,MAAMC,YAAY,GAAGH,IAAI,GAAG,CAAC;EAE7B,oBACE,oBAAC,kBAAK;IACJ,KAAK,EAAE,CAAC;MAAEI,KAAK,EAAEJ,IAAI;MAAEK,MAAM,EAAEL,IAAI;MAAEG;IAAa,CAAC,EAAEF,KAAK,CAAE;IAC5D,MAAM,EAAE,OAAOJ,MAAM,KAAK,QAAQ,GAAG;MAAES,GAAG,EAAET;IAAO,CAAC,GAAGA,MAAO;IAC9D,UAAU,EAAC;EAAO,GACdK,KAAK,EACT;AAEN,CAAC;AAAC,eAEaN,WAAW;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/DatePicker/DatePickerComponentType.
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/DatePicker/DatePickerComponentType.ts"],"mappings":""}
|
|
@@ -13,6 +13,7 @@ var _theming = require("../theming");
|
|
|
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
|
const Button = _ref => {
|
|
17
18
|
let {
|
|
18
19
|
Icon,
|
|
@@ -83,8 +84,7 @@ const Button = _ref => {
|
|
|
83
84
|
elevation,
|
|
84
85
|
alignSelf: "stretch"
|
|
85
86
|
}
|
|
86
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
87
|
-
...rest,
|
|
87
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
|
|
88
88
|
onPress: onPress,
|
|
89
89
|
accessibilityState: {
|
|
90
90
|
disabled
|
|
@@ -92,7 +92,7 @@ const Button = _ref => {
|
|
|
92
92
|
accessibilityRole: "button",
|
|
93
93
|
disabled: disabled || loading,
|
|
94
94
|
style: [styles.button, buttonStyle]
|
|
95
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
95
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
96
96
|
style: styles.content
|
|
97
97
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
98
98
|
style: iconStyle
|
|
@@ -125,20 +125,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
125
125
|
});
|
|
126
126
|
var _default = (0, _theming.withTheme)(Button);
|
|
127
127
|
exports.default = _default;
|
|
128
|
-
//# sourceMappingURL=DeprecatedButton.js.mapreate({
|
|
129
|
-
button: {
|
|
130
|
-
minWidth: 64,
|
|
131
|
-
borderStyle: "solid"
|
|
132
|
-
},
|
|
133
|
-
content: {
|
|
134
|
-
flexDirection: "row",
|
|
135
|
-
alignItems: "center",
|
|
136
|
-
justifyContent: "center"
|
|
137
|
-
},
|
|
138
|
-
icon: {
|
|
139
|
-
width: _Config.default.buttonIconSize
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
var _default = (0, _theming.withTheme)(Button);
|
|
143
|
-
exports.default = _default;
|
|
144
128
|
//# sourceMappingURL=DeprecatedButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Button","Icon","icon","disabled","type","loading","labelColor","color","colorOverride","children","onPress","elevation","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","textStyle","textAlign","marginVertical","marginHorizontal","iconStyle","styles","marginLeft","marginRight","width","Config","buttonIconSize","
|
|
1
|
+
{"version":3,"names":["Button","Icon","icon","disabled","type","loading","labelColor","color","colorOverride","children","onPress","elevation","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","textStyle","textAlign","marginVertical","marginHorizontal","iconStyle","styles","marginLeft","marginRight","width","Config","buttonIconSize","alignSelf","button","content","create","minWidth","borderStyle","flexDirection","alignItems","justifyContent","withTheme"],"sourceRoot":"../../../src","sources":["components/DeprecatedButton.tsx"],"mappings":";;;;;;AAAA;AACA;AAWA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAqDvC,MAAMA,MAAgD,GAAG,QAanD;EAAA,IAboD;IACxDC,IAAI;IACJC,IAAI;IACJC,QAAQ,GAAG,KAAK;IAChBC,IAAI,GAAG,OAAO;IACdC,OAAO,GAAG,KAAK;IACfC,UAAU;IACVC,KAAK,EAAEC,aAAa;IACpBC,QAAQ;IACRC,OAAO;IACPC,SAAS,GAAG,CAAC;IACbC,KAAK,EAAE;MAAEC,MAAM;MAAEC,eAAe;MAAEC,SAAS;MAAEC;IAAW,CAAC;IACzD,GA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PI,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDjD,IAAI,EAAE;IACJsC,KAAK,EAAEC,eAAM,CAACC;EAChB;AACF,CAAC,CAAC;AAAC,eAEY,IAAAU,kBAAS,EAACpD,MAAM,CAAC;AAAA"}
|
|
@@ -14,6 +14,7 @@ var _theming = require("../theming");
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
17
|
+
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
18
|
const FAB = _ref => {
|
|
18
19
|
let {
|
|
19
20
|
Icon,
|
|
@@ -105,8 +106,7 @@ const FAB = _ref => {
|
|
|
105
106
|
style: [{
|
|
106
107
|
elevation
|
|
107
108
|
}, style]
|
|
108
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
109
|
-
...rest,
|
|
109
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
|
|
110
110
|
onPress: onPress,
|
|
111
111
|
accessibilityState: {
|
|
112
112
|
disabled
|
|
@@ -114,7 +114,7 @@ const FAB = _ref => {
|
|
|
114
114
|
accessibilityRole: "button",
|
|
115
115
|
disabled: disabled || loading,
|
|
116
116
|
style: buttonStyles
|
|
117
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
117
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
118
118
|
style: styles.content
|
|
119
119
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
120
120
|
style: iconStyle
|
|
@@ -155,21 +155,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
155
155
|
});
|
|
156
156
|
var _default = (0, _theming.withTheme)(FAB);
|
|
157
157
|
exports.default = _default;
|
|
158
|
-
//# sourceMappingURL=DeprecatedFAB.js.mapContent: "center"
|
|
159
|
-
},
|
|
160
|
-
icon: {
|
|
161
|
-
alignItems: "center",
|
|
162
|
-
justifyContent: "center",
|
|
163
|
-
width: _Config.default.buttonIconSize
|
|
164
|
-
},
|
|
165
|
-
fixed: {
|
|
166
|
-
left: 0,
|
|
167
|
-
right: 0,
|
|
168
|
-
bottom: 0,
|
|
169
|
-
height: 64,
|
|
170
|
-
borderRadius: 0
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
var _default = (0, _theming.withTheme)(FAB);
|
|
174
|
-
exports.default = _default;
|
|
175
158
|
//# sourceMappingURL=DeprecatedFAB.js.map
|