@draftbit/core 46.7.8-5681f1.2 → 46.7.8-9c448b.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/DeckSwiper/DeckSwiper.js +1 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js +1 -15
- package/lib/commonjs/constants.js +1 -1
- package/lib/module/components/AvatarEdit.js +4 -15
- package/lib/module/components/Banner.js +4 -25
- package/lib/module/components/Button.js +10 -33
- package/lib/module/components/Checkbox/CheckboxGroup.js +2 -16
- package/lib/module/components/CircularProgress.js +8 -28
- package/lib/module/components/DeckSwiper/DeckSwiper.js +1 -1
- package/lib/module/components/DeprecatedCardWrapper.js +1 -18
- package/lib/module/components/Divider.js +1 -18
- package/lib/module/components/FAB.js +4 -22
- package/lib/module/components/FieldSearchBarFull.js +2 -1
- package/lib/module/components/FormRow.js +2 -17
- package/lib/module/components/Image.js +2 -18
- package/lib/module/components/Picker/PickerComponent.web.js +3 -21
- package/lib/module/components/ProgressBar.js +7 -39
- package/lib/module/components/ScreenContainer.js +4 -21
- package/lib/module/components/StarRating.js +4 -24
- package/lib/module/components/Text.js +4 -50
- package/package.json +3 -3
- package/src/components/DeckSwiper/DeckSwiper.js +1 -1
- package/src/components/DeckSwiper/DeckSwiper.tsx +1 -1
|
@@ -30,7 +30,7 @@ const DeckSwiper = _ref => {
|
|
|
30
30
|
* To overcome this, it is wrapped in a View to be able to add the component in any layout structure
|
|
31
31
|
*
|
|
32
32
|
* Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird
|
|
33
|
-
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
33
|
+
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
34
34
|
* This effectivley makes the default height of the container be the height of the first card
|
|
35
35
|
*/
|
|
36
36
|
|
|
@@ -8,6 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _theming = require("../theming");
|
|
9
9
|
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
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); }
|
|
11
12
|
const getWidth = numColumns => {
|
|
12
13
|
switch (numColumns) {
|
|
13
14
|
case 1:
|
|
@@ -27,21 +28,6 @@ const Card = _ref => {
|
|
|
27
28
|
...rest
|
|
28
29
|
} = _ref;
|
|
29
30
|
const width = getWidth(numColumns);
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(_Touchable.default, {
|
|
31
|
-
disabled: !onPress,
|
|
32
|
-
onPress: onPress,
|
|
33
|
-
style: [style, {
|
|
34
|
-
width
|
|
35
|
-
}],
|
|
36
|
-
...rest
|
|
37
|
-
}, children);
|
|
38
|
-
};
|
|
39
|
-
var _default = (0, _theming.withTheme)(Card);
|
|
40
|
-
exports.default = _default;s,
|
|
41
|
-
style,
|
|
42
|
-
...rest
|
|
43
|
-
} = _ref;
|
|
44
|
-
const width = getWidth(numColumns);
|
|
45
31
|
return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
|
|
46
32
|
disabled: !onPress,
|
|
47
33
|
onPress: onPress,
|
|
@@ -12,4 +12,4 @@ const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
|
|
|
12
12
|
android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
|
|
13
13
|
ios: _reactNative.Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
|
|
14
14
|
});
|
|
15
|
-
exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
|
|
15
|
+
exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View } from "react-native";
|
|
3
4
|
import Touchable from "./Touchable";
|
|
@@ -22,10 +23,9 @@ const AvatarEdit = _ref => {
|
|
|
22
23
|
width: size,
|
|
23
24
|
height: size
|
|
24
25
|
};
|
|
25
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
-
style: [style, dimensions]
|
|
27
|
-
|
|
28
|
-
}, /*#__PURE__*/React.createElement(Touchable, {
|
|
26
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
27
|
+
style: [style, dimensions]
|
|
28
|
+
}, rest), /*#__PURE__*/React.createElement(Touchable, {
|
|
29
29
|
onPress: onPress
|
|
30
30
|
}, /*#__PURE__*/React.createElement(CircleImage, {
|
|
31
31
|
source: image,
|
|
@@ -46,15 +46,4 @@ const AvatarEdit = _ref => {
|
|
|
46
46
|
size: size * (3 / 16)
|
|
47
47
|
}))));
|
|
48
48
|
};
|
|
49
|
-
export default withTheme(AvatarEdit);yles.editBorderColor,
|
|
50
|
-
backgroundColor: colorStyles.editBackgroundColor,
|
|
51
|
-
borderRadius: size * (3 / 16),
|
|
52
|
-
padding: size * (3 / 32)
|
|
53
|
-
}
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
55
|
-
name: "MaterialIcons/edit",
|
|
56
|
-
color: colorStyles.editIconColor,
|
|
57
|
-
size: size * (3 / 16)
|
|
58
|
-
}))));
|
|
59
|
-
};
|
|
60
49
|
export default withTheme(AvatarEdit);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Button, Text, View, StyleSheet, Animated } from "react-native";
|
|
3
4
|
import Surface from "./Surface";
|
|
@@ -60,6 +61,7 @@ const Banner = _ref => {
|
|
|
60
61
|
measured: true
|
|
61
62
|
});
|
|
62
63
|
};
|
|
64
|
+
|
|
63
65
|
// The banner animation has 2 parts:
|
|
64
66
|
// 1. Blank spacer element which animates its height to move the content
|
|
65
67
|
// 2. Actual banner which animates its translateY
|
|
@@ -69,10 +71,9 @@ const Banner = _ref => {
|
|
|
69
71
|
// However we can't animated banner's height directly as it'll also resize the content inside
|
|
70
72
|
const height = Animated.multiply(position, layout.height);
|
|
71
73
|
const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
|
|
72
|
-
return /*#__PURE__*/React.createElement(Surface, {
|
|
73
|
-
...rest,
|
|
74
|
+
return /*#__PURE__*/React.createElement(Surface, _extends({}, rest, {
|
|
74
75
|
style: [styles.container, shadow(ELEVATION), style]
|
|
75
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
76
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
76
77
|
style: [styles.wrapper, contentStyle]
|
|
77
78
|
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
78
79
|
style: {
|
|
@@ -153,26 +154,4 @@ const styles = StyleSheet.create({
|
|
|
153
154
|
margin: 8
|
|
154
155
|
}
|
|
155
156
|
});
|
|
156
|
-
export default withTheme(Banner);
|
|
157
|
-
},
|
|
158
|
-
content: {
|
|
159
|
-
flexDirection: "row",
|
|
160
|
-
justifyContent: "flex-start",
|
|
161
|
-
marginHorizontal: 8,
|
|
162
|
-
marginTop: 16,
|
|
163
|
-
marginBottom: 0
|
|
164
|
-
},
|
|
165
|
-
icon: {
|
|
166
|
-
margin: 8
|
|
167
|
-
},
|
|
168
|
-
message: {
|
|
169
|
-
flex: 1,
|
|
170
|
-
margin: 8
|
|
171
|
-
},
|
|
172
|
-
actions: {
|
|
173
|
-
flexDirection: "row",
|
|
174
|
-
justifyContent: "flex-end",
|
|
175
|
-
margin: 8
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
157
|
export default withTheme(Banner);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Text, Pressable, Platform, StyleSheet, ActivityIndicator } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
@@ -52,7 +53,7 @@ function Base(_ref) {
|
|
|
52
53
|
if (textAlign === "right") {
|
|
53
54
|
buttonStyles.justifyContent = "flex-end";
|
|
54
55
|
}
|
|
55
|
-
return /*#__PURE__*/React.createElement(Pressable, {
|
|
56
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
56
57
|
disabled: disabled || loading,
|
|
57
58
|
style: _ref2 => {
|
|
58
59
|
let {
|
|
@@ -61,9 +62,8 @@ function Base(_ref) {
|
|
|
61
62
|
return [styles.base, {
|
|
62
63
|
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1
|
|
63
64
|
}, buttonStyles];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
}, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
65
|
+
}
|
|
66
|
+
}, props), loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
67
67
|
size: "small",
|
|
68
68
|
color: color,
|
|
69
69
|
style: styles.loading
|
|
@@ -82,14 +82,13 @@ const Solid = _ref3 => {
|
|
|
82
82
|
theme,
|
|
83
83
|
...props
|
|
84
84
|
} = _ref3;
|
|
85
|
-
return /*#__PURE__*/React.createElement(Base, {
|
|
85
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
86
86
|
style: [{
|
|
87
87
|
color: "#FFF",
|
|
88
88
|
borderRadius: theme.roundness,
|
|
89
89
|
backgroundColor: theme.colors.primary
|
|
90
|
-
}, style]
|
|
91
|
-
|
|
92
|
-
});
|
|
90
|
+
}, style]
|
|
91
|
+
}, props));
|
|
93
92
|
};
|
|
94
93
|
const ButtonSolid = withTheme(Solid);
|
|
95
94
|
export { ButtonSolid };
|
|
@@ -101,14 +100,13 @@ const Outline = _ref4 => {
|
|
|
101
100
|
theme,
|
|
102
101
|
...props
|
|
103
102
|
} = _ref4;
|
|
104
|
-
return /*#__PURE__*/React.createElement(Base, {
|
|
103
|
+
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
105
104
|
style: [styles.outline, {
|
|
106
105
|
borderRadius: theme.roundness,
|
|
107
106
|
borderColor: theme.colors.primary,
|
|
108
107
|
color: theme.colors.primary
|
|
109
|
-
}, style]
|
|
110
|
-
|
|
111
|
-
});
|
|
108
|
+
}, style]
|
|
109
|
+
}, props));
|
|
112
110
|
};
|
|
113
111
|
const ButtonOutline = withTheme(Outline);
|
|
114
112
|
export { ButtonOutline };
|
|
@@ -155,25 +153,4 @@ const styles = StyleSheet.create({
|
|
|
155
153
|
}
|
|
156
154
|
})
|
|
157
155
|
}
|
|
158
|
-
});or: "transparent",
|
|
159
|
-
padding: 0,
|
|
160
|
-
minHeight: undefined
|
|
161
|
-
},
|
|
162
|
-
loading: {
|
|
163
|
-
marginRight: 6
|
|
164
|
-
},
|
|
165
|
-
icon: {
|
|
166
|
-
...Platform.select({
|
|
167
|
-
web: {
|
|
168
|
-
marginTop: 1,
|
|
169
|
-
marginRight: 4,
|
|
170
|
-
alignSelf: "center"
|
|
171
|
-
},
|
|
172
|
-
default: {
|
|
173
|
-
marginBottom: 2,
|
|
174
|
-
marginRight: 4,
|
|
175
|
-
alignSelf: "center"
|
|
176
|
-
}
|
|
177
|
-
})
|
|
178
|
-
}
|
|
179
156
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View } from "react-native";
|
|
3
4
|
import { checkboxGroupContext, Direction } from "./context";
|
|
@@ -22,22 +23,7 @@ const CheckboxGroup = _ref => {
|
|
|
22
23
|
alignItems: "center"
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
-
style: [{
|
|
27
|
-
minHeight: 40
|
|
28
|
-
}, style],
|
|
29
|
-
...rest
|
|
30
|
-
}, /*#__PURE__*/React.createElement(Provider, {
|
|
31
|
-
value: {
|
|
32
|
-
values,
|
|
33
|
-
onValueChange,
|
|
34
|
-
direction
|
|
35
|
-
}
|
|
36
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
37
|
-
style: _containerStyle
|
|
38
|
-
}, children)));
|
|
39
|
-
};
|
|
40
|
-
export default CheckboxGroup;PURE__*/React.createElement(View, _extends({
|
|
26
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
41
27
|
style: [{
|
|
42
28
|
minHeight: 40
|
|
43
29
|
}, style]
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
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); }
|
|
1
4
|
import React from "react";
|
|
2
5
|
import { View } from "react-native";
|
|
3
6
|
import { Svg, Path, G } from "react-native-svg";
|
|
4
7
|
class CircularProgress extends React.Component {
|
|
5
8
|
constructor() {
|
|
6
9
|
super(...arguments);
|
|
7
|
-
this
|
|
10
|
+
_defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
|
|
8
11
|
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
9
12
|
return {
|
|
10
13
|
x: centerX + radius * Math.cos(angleInRadians),
|
|
11
14
|
y: centerY + radius * Math.sin(angleInRadians)
|
|
12
15
|
};
|
|
13
|
-
};
|
|
14
|
-
this
|
|
16
|
+
});
|
|
17
|
+
_defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
|
|
15
18
|
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
16
19
|
var end = this.polarToCartesian(x, y, radius, startAngle);
|
|
17
20
|
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
|
|
18
21
|
var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
|
|
19
22
|
return d.join(" ");
|
|
20
|
-
};
|
|
21
|
-
this
|
|
23
|
+
});
|
|
24
|
+
_defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
|
|
22
25
|
}
|
|
23
26
|
render() {
|
|
24
27
|
const {
|
|
@@ -98,27 +101,4 @@ class CircularProgress extends React.Component {
|
|
|
98
101
|
}, children(fill)));
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
export default CircularProgress;eElement(G, {
|
|
102
|
-
rotation: rotation,
|
|
103
|
-
originX: (size + padding) / 2,
|
|
104
|
-
originY: (size + padding) / 2
|
|
105
|
-
}, backgroundColor && /*#__PURE__*/React.createElement(Path, {
|
|
106
|
-
d: backgroundPath,
|
|
107
|
-
stroke: backgroundColor,
|
|
108
|
-
strokeWidth: backgroundWidth || width,
|
|
109
|
-
strokeLinecap: lineCap,
|
|
110
|
-
strokeDasharray: strokeDasharrayBackground,
|
|
111
|
-
fill: "transparent"
|
|
112
|
-
}), fill > 0 && /*#__PURE__*/React.createElement(Path, {
|
|
113
|
-
d: circlePathItem,
|
|
114
|
-
stroke: tintColor,
|
|
115
|
-
strokeWidth: width,
|
|
116
|
-
strokeLinecap: lineCap,
|
|
117
|
-
strokeDasharray: strokeDasharrayTint,
|
|
118
|
-
fill: "transparent"
|
|
119
|
-
}), cap)), children && /*#__PURE__*/React.createElement(View, {
|
|
120
|
-
style: localChildrenContainerStyle
|
|
121
|
-
}, children(fill)));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
104
|
export default CircularProgress;
|
|
@@ -23,7 +23,7 @@ const DeckSwiper = _ref => {
|
|
|
23
23
|
* To overcome this, it is wrapped in a View to be able to add the component in any layout structure
|
|
24
24
|
*
|
|
25
25
|
* Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird
|
|
26
|
-
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
26
|
+
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
27
27
|
* This effectivley makes the default height of the container be the height of the first card
|
|
28
28
|
*/
|
|
29
29
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { withTheme } from "../theming";
|
|
3
4
|
import Touchable from "./Touchable";
|
|
@@ -12,24 +13,6 @@ const getWidth = numColumns => {
|
|
|
12
13
|
}
|
|
13
14
|
};
|
|
14
15
|
const Card = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
numColumns = 3,
|
|
17
|
-
children,
|
|
18
|
-
onPress,
|
|
19
|
-
style,
|
|
20
|
-
...rest
|
|
21
|
-
} = _ref;
|
|
22
|
-
const width = getWidth(numColumns);
|
|
23
|
-
return /*#__PURE__*/React.createElement(Touchable, {
|
|
24
|
-
disabled: !onPress,
|
|
25
|
-
onPress: onPress,
|
|
26
|
-
style: [style, {
|
|
27
|
-
width
|
|
28
|
-
}],
|
|
29
|
-
...rest
|
|
30
|
-
}, children);
|
|
31
|
-
};
|
|
32
|
-
export default withTheme(Card);ef => {
|
|
33
16
|
let {
|
|
34
17
|
numColumns = 3,
|
|
35
18
|
children,
|
|
@@ -1,24 +1,7 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { StyleSheet, View } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
4
|
-
const Divider = _ref => {
|
|
5
|
-
let {
|
|
6
|
-
style,
|
|
7
|
-
color,
|
|
8
|
-
theme: {
|
|
9
|
-
colors
|
|
10
|
-
},
|
|
11
|
-
...rest
|
|
12
|
-
} = _ref;
|
|
13
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
14
|
-
style: [{
|
|
15
|
-
backgroundColor: color || colors.divider,
|
|
16
|
-
height: StyleSheet.hairlineWidth
|
|
17
|
-
}, style],
|
|
18
|
-
...rest
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
export default withTheme(Divider);ing";
|
|
22
5
|
const Divider = _ref => {
|
|
23
6
|
let {
|
|
24
7
|
style,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, StyleSheet, Pressable, ActivityIndicator, Platform } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
@@ -24,7 +25,7 @@ const FAB = _ref => {
|
|
|
24
25
|
borderRadius: size / 2,
|
|
25
26
|
overflow: "hidden"
|
|
26
27
|
}, style]
|
|
27
|
-
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
28
29
|
onPress: onPress,
|
|
29
30
|
disabled: loading || disabled,
|
|
30
31
|
android_ripple: {
|
|
@@ -42,9 +43,8 @@ const FAB = _ref => {
|
|
|
42
43
|
borderRadius: size / 2,
|
|
43
44
|
backgroundColor
|
|
44
45
|
}];
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
}, /*#__PURE__*/React.createElement(View, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
46
|
+
}
|
|
47
|
+
}, props), /*#__PURE__*/React.createElement(View, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
48
48
|
style: size > 50 ? {
|
|
49
49
|
marginTop: 2,
|
|
50
50
|
marginLeft: 2
|
|
@@ -70,22 +70,4 @@ const styles = StyleSheet.create({
|
|
|
70
70
|
})
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
export default withTheme(FAB); name: iconName,
|
|
74
|
-
size: size,
|
|
75
|
-
color: color
|
|
76
|
-
}))));
|
|
77
|
-
};
|
|
78
|
-
const styles = StyleSheet.create({
|
|
79
|
-
button: {
|
|
80
|
-
backgroundColor: "#5a45ff",
|
|
81
|
-
justifyContent: "center",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
...Platform.select({
|
|
84
|
-
web: {
|
|
85
|
-
cursor: "pointer",
|
|
86
|
-
userSelect: "none"
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
73
|
export default withTheme(FAB);
|
|
@@ -46,6 +46,7 @@ const FieldSearchBarFull = _ref => {
|
|
|
46
46
|
lineHeight,
|
|
47
47
|
...typeStyles
|
|
48
48
|
} = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
49
|
+
|
|
49
50
|
const handleChangeText = newValue => {
|
|
50
51
|
setInternalValue(newValue);
|
|
51
52
|
if (onChange) {
|
|
@@ -83,4 +84,4 @@ const styles = StyleSheet.create({
|
|
|
83
84
|
alignItems: "center"
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
|
-
export default withTheme(FieldSearchBarFull)
|
|
87
|
+
export default withTheme(FieldSearchBarFull);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Text, StyleSheet } from "react-native";
|
|
3
4
|
import { extractStyles } from "../utilities";
|
|
@@ -16,27 +17,11 @@ export default function FormRow(_ref) {
|
|
|
16
17
|
textStyles,
|
|
17
18
|
viewStyles
|
|
18
19
|
} = extractStyles(style);
|
|
19
|
-
return /*#__PURE__*/React.createElement(Touchable, {
|
|
20
|
+
return /*#__PURE__*/React.createElement(Touchable, _extends({
|
|
20
21
|
disabled: disabled,
|
|
21
22
|
onPress: onPress,
|
|
22
23
|
style: [styles.row, {
|
|
23
24
|
flexDirection: direction
|
|
24
|
-
}, viewStyles],
|
|
25
|
-
...rest
|
|
26
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
27
|
-
style: textStyles
|
|
28
|
-
}, label), children);
|
|
29
|
-
}
|
|
30
|
-
const styles = StyleSheet.create({
|
|
31
|
-
row: {
|
|
32
|
-
marginLeft: 8,
|
|
33
|
-
marginRight: 8,
|
|
34
|
-
flexDirection: "row",
|
|
35
|
-
justifyContent: "space-between",
|
|
36
|
-
alignItems: "center"
|
|
37
|
-
}
|
|
38
|
-
});styles.row, {
|
|
39
|
-
flexDirection: direction
|
|
40
25
|
}, viewStyles]
|
|
41
26
|
}, rest), /*#__PURE__*/React.createElement(Text, {
|
|
42
27
|
style: textStyles
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
/* README: Internal Image component used for stuff like Card. DO NOT EXPORT! */
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { Image as NativeImage, StyleSheet } from "react-native";
|
|
@@ -55,24 +56,7 @@ const Image = _ref2 => {
|
|
|
55
56
|
height,
|
|
56
57
|
aspectRatio
|
|
57
58
|
}]
|
|
58
|
-
}, /*#__PURE__*/React.createElement(NativeImage, {
|
|
59
|
-
...props,
|
|
60
|
-
source: imageSource,
|
|
61
|
-
resizeMode: resizeMode,
|
|
62
|
-
style: [style, {
|
|
63
|
-
height: "100%",
|
|
64
|
-
width: "100%"
|
|
65
|
-
}]
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
return /*#__PURE__*/React.createElement(NativeImage, {
|
|
69
|
-
...props,
|
|
70
|
-
source: source,
|
|
71
|
-
resizeMode: resizeMode,
|
|
72
|
-
style: style
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
export default Image;eImage, _extends({}, props, {
|
|
59
|
+
}, /*#__PURE__*/React.createElement(NativeImage, _extends({}, props, {
|
|
76
60
|
source: imageSource,
|
|
77
61
|
resizeMode: resizeMode,
|
|
78
62
|
style: [style, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, StyleSheet } from "react-native";
|
|
3
4
|
import { Picker as NativePicker } from "@react-native-picker/picker";
|
|
@@ -7,6 +8,7 @@ import { extractStyles } from "../../utilities";
|
|
|
7
8
|
import TextField from "../TextField";
|
|
8
9
|
import Touchable from "../Touchable";
|
|
9
10
|
const Picker = _ref => {
|
|
11
|
+
var _options$find$label, _options$find;
|
|
10
12
|
let {
|
|
11
13
|
style,
|
|
12
14
|
options,
|
|
@@ -16,7 +18,6 @@ const Picker = _ref => {
|
|
|
16
18
|
onValueChange: onValueChangeOverride = () => {},
|
|
17
19
|
...props
|
|
18
20
|
} = _ref;
|
|
19
|
-
var _a, _b;
|
|
20
21
|
const {
|
|
21
22
|
viewStyles: {
|
|
22
23
|
borderRadius,
|
|
@@ -61,7 +62,7 @@ const Picker = _ref => {
|
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
|
|
64
|
-
const selectedLabel = selectedValue && ((
|
|
65
|
+
const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
|
|
65
66
|
return /*#__PURE__*/React.createElement(Touchable, {
|
|
66
67
|
disabled: disabled,
|
|
67
68
|
onPress: toggleFocus,
|
|
@@ -84,25 +85,6 @@ const Picker = _ref => {
|
|
|
84
85
|
label: o.label,
|
|
85
86
|
value: o.value,
|
|
86
87
|
key: o.value
|
|
87
|
-
}))), /*#__PURE__*/React.createElement(View, {
|
|
88
|
-
pointerEvents: "none"
|
|
89
|
-
}, /*#__PURE__*/React.createElement(TextField, {
|
|
90
|
-
...props,
|
|
91
|
-
value: selectedLabel,
|
|
92
|
-
placeholder: placeholder,
|
|
93
|
-
// @ts-ignore
|
|
94
|
-
ref: textField,
|
|
95
|
-
disabled: disabled,
|
|
96
|
-
// @ts-expect-error
|
|
97
|
-
style: stylesWithoutMargin
|
|
98
|
-
}))));
|
|
99
|
-
};
|
|
100
|
-
const styles = StyleSheet.create({
|
|
101
|
-
container: {
|
|
102
|
-
alignSelf: "stretch"
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
export default withTheme(Picker);y: o.value
|
|
106
88
|
}))), /*#__PURE__*/React.createElement(View, {
|
|
107
89
|
pointerEvents: "none"
|
|
108
90
|
}, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
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; }
|
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
|
+
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); }
|
|
1
5
|
import React, { Component } from "react";
|
|
2
6
|
import { Animated, Easing, View, I18nManager } from "react-native";
|
|
3
7
|
const INDETERMINATE_WIDTH_FACTOR = 0.3;
|
|
@@ -5,7 +9,7 @@ const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_
|
|
|
5
9
|
export default class ProgressBar extends Component {
|
|
6
10
|
constructor(props) {
|
|
7
11
|
super(props);
|
|
8
|
-
this
|
|
12
|
+
_defineProperty(this, "handleLayout", event => {
|
|
9
13
|
const {
|
|
10
14
|
width = 150,
|
|
11
15
|
onLayout
|
|
@@ -18,7 +22,7 @@ export default class ProgressBar extends Component {
|
|
|
18
22
|
if (onLayout) {
|
|
19
23
|
onLayout(event);
|
|
20
24
|
}
|
|
21
|
-
};
|
|
25
|
+
});
|
|
22
26
|
const {
|
|
23
27
|
progress: progressP = 0,
|
|
24
28
|
indeterminate = false
|
|
@@ -66,6 +70,7 @@ export default class ProgressBar extends Component {
|
|
|
66
70
|
...animationConfig,
|
|
67
71
|
toValue: progress,
|
|
68
72
|
velocity: 0,
|
|
73
|
+
//adjust this value if animation fails - velocity is required
|
|
69
74
|
useNativeDriver
|
|
70
75
|
}).start();
|
|
71
76
|
} else {
|
|
@@ -134,43 +139,6 @@ export default class ProgressBar extends Component {
|
|
|
134
139
|
})
|
|
135
140
|
}]
|
|
136
141
|
};
|
|
137
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
138
|
-
style: [containerStyle, style],
|
|
139
|
-
onLayout: this.handleLayout,
|
|
140
|
-
...restProps
|
|
141
|
-
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
142
|
-
style: progressStyle
|
|
143
|
-
}), children);
|
|
144
|
-
}
|
|
145
|
-
} width,
|
|
146
|
-
borderWidth,
|
|
147
|
-
borderColor: borderColor || color,
|
|
148
|
-
borderRadius,
|
|
149
|
-
overflow: "hidden",
|
|
150
|
-
backgroundColor: unfilledColor
|
|
151
|
-
};
|
|
152
|
-
const progressStyle = {
|
|
153
|
-
backgroundColor: color,
|
|
154
|
-
// Always take up full height of container.
|
|
155
|
-
height: "100%",
|
|
156
|
-
transform: [{
|
|
157
|
-
translateX: this.state.animationValue.interpolate({
|
|
158
|
-
inputRange: [0, 1],
|
|
159
|
-
outputRange: [innerWidth * -INDETERMINATE_WIDTH_FACTOR, innerWidth]
|
|
160
|
-
})
|
|
161
|
-
}, {
|
|
162
|
-
translateX: this.state.progress.interpolate({
|
|
163
|
-
inputRange: [0, 1],
|
|
164
|
-
outputRange: [innerWidth / (I18nManager.isRTL ? 2 : -2), 0]
|
|
165
|
-
})
|
|
166
|
-
}, {
|
|
167
|
-
// Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
|
|
168
|
-
scaleX: this.state.progress.interpolate({
|
|
169
|
-
inputRange: [0, 1],
|
|
170
|
-
outputRange: [0.0001, 1]
|
|
171
|
-
})
|
|
172
|
-
}]
|
|
173
|
-
};
|
|
174
142
|
return /*#__PURE__*/React.createElement(View, _extends({
|
|
175
143
|
style: [containerStyle, style],
|
|
176
144
|
onLayout: this.handleLayout
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { StyleSheet, ScrollView, View } from "react-native";
|
|
3
4
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
@@ -21,13 +22,12 @@ function ScreenContainer(_ref) {
|
|
|
21
22
|
if (hasSafeArea || hasBottomSafeArea) {
|
|
22
23
|
edges.push("bottom");
|
|
23
24
|
}
|
|
24
|
-
return /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
25
|
+
return /*#__PURE__*/React.createElement(SafeAreaView, _extends({
|
|
25
26
|
edges: edges,
|
|
26
27
|
style: [styles.container, {
|
|
27
28
|
backgroundColor
|
|
28
|
-
}]
|
|
29
|
-
|
|
30
|
-
}, scrollable ? /*#__PURE__*/React.createElement(ScrollView, {
|
|
29
|
+
}]
|
|
30
|
+
}, rest), scrollable ? /*#__PURE__*/React.createElement(ScrollView, {
|
|
31
31
|
contentContainerStyle: [styles.scrollViewContainer, {
|
|
32
32
|
backgroundColor
|
|
33
33
|
}, style]
|
|
@@ -46,21 +46,4 @@ const styles = StyleSheet.create({
|
|
|
46
46
|
flex: undefined
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
export default withTheme(ScreenContainer);olor
|
|
50
|
-
}, style]
|
|
51
|
-
}, children) : /*#__PURE__*/React.createElement(View, {
|
|
52
|
-
style: [styles.container, {
|
|
53
|
-
backgroundColor
|
|
54
|
-
}, style]
|
|
55
|
-
}, children));
|
|
56
|
-
}
|
|
57
|
-
const styles = StyleSheet.create({
|
|
58
|
-
container: {
|
|
59
|
-
flex: 1
|
|
60
|
-
},
|
|
61
|
-
scrollViewContainer: {
|
|
62
|
-
flexGrow: 1,
|
|
63
|
-
flex: undefined
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
49
|
export default withTheme(ScreenContainer);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, StyleSheet, Pressable } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
@@ -31,10 +32,9 @@ const StarRating = _ref => {
|
|
|
31
32
|
!!onPress && onPress(r);
|
|
32
33
|
}, [onPress]);
|
|
33
34
|
const ratingRounded = Math.round(localRating * 2) / 2;
|
|
34
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
35
|
-
style: [styles.container, style]
|
|
36
|
-
|
|
37
|
-
}, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
36
|
+
style: [styles.container, style]
|
|
37
|
+
}, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
|
|
38
38
|
key: i,
|
|
39
39
|
style: {
|
|
40
40
|
display: "flex"
|
|
@@ -74,24 +74,4 @@ const styles = StyleSheet.create({
|
|
|
74
74
|
width: "50%"
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
export default withTheme(StarRating);ntainer: {
|
|
78
|
-
flexDirection: "row",
|
|
79
|
-
alignItems: "center"
|
|
80
|
-
},
|
|
81
|
-
touchContainer: {
|
|
82
|
-
display: "flex",
|
|
83
|
-
flexDirection: "row",
|
|
84
|
-
position: "absolute",
|
|
85
|
-
top: 0,
|
|
86
|
-
right: 0,
|
|
87
|
-
left: 0,
|
|
88
|
-
bottom: 0,
|
|
89
|
-
zIndex: 1
|
|
90
|
-
},
|
|
91
|
-
pressable: {
|
|
92
|
-
flex: 1,
|
|
93
|
-
height: "100%",
|
|
94
|
-
width: "50%"
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
77
|
export default withTheme(StarRating);
|
|
@@ -1,56 +1,10 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
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; }
|
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
4
|
+
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); }
|
|
1
5
|
import * as React from "react";
|
|
2
6
|
import { Text as NativeText, I18nManager } from "react-native";
|
|
3
7
|
import { withTheme } from "../theming";
|
|
4
|
-
class Text extends React.Component {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.state = {
|
|
8
|
-
nativeProps: {}
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
setNativeProps(args) {
|
|
12
|
-
this.state.nativeProps = args || {};
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
const {
|
|
16
|
-
style,
|
|
17
|
-
...rest
|
|
18
|
-
} = this.props;
|
|
19
|
-
const writingDirection = I18nManager.isRTL ? "rtl" : "ltr";
|
|
20
|
-
return /*#__PURE__*/React.createElement(NativeText, {
|
|
21
|
-
...rest,
|
|
22
|
-
...this.state.nativeProps,
|
|
23
|
-
ref: c => {
|
|
24
|
-
this._root = c;
|
|
25
|
-
},
|
|
26
|
-
style: [{
|
|
27
|
-
textAlign: "left",
|
|
28
|
-
writingDirection
|
|
29
|
-
}, style]
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export const BaseLink = _ref => {
|
|
34
|
-
let {
|
|
35
|
-
style,
|
|
36
|
-
theme,
|
|
37
|
-
title,
|
|
38
|
-
...props
|
|
39
|
-
} = _ref;
|
|
40
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
41
|
-
hitSlop: 8,
|
|
42
|
-
style: [{
|
|
43
|
-
color: theme.colors.primary
|
|
44
|
-
}, style],
|
|
45
|
-
theme: theme,
|
|
46
|
-
...props
|
|
47
|
-
}, title);
|
|
48
|
-
};
|
|
49
|
-
const Link = withTheme(BaseLink);
|
|
50
|
-
export { Link };
|
|
51
|
-
export default withTheme(Text); as React from "react";
|
|
52
|
-
import { Text as NativeText, I18nManager } from "react-native";
|
|
53
|
-
import { withTheme } from "../theming";
|
|
54
8
|
class Text extends React.Component {
|
|
55
9
|
constructor() {
|
|
56
10
|
super(...arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.7.8-
|
|
3
|
+
"version": "46.7.8-9c448b.2+9c448bf",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^46.7.8-
|
|
44
|
+
"@draftbit/types": "^46.7.8-9c448b.2+9c448bf",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
]
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "9c448bf73613d11fc61192e808a40f0ad86fa502"
|
|
96
96
|
}
|
|
@@ -10,7 +10,7 @@ const DeckSwiper = ({ onIndexChanged, onEndReached, startCardIndex = 0, infinite
|
|
|
10
10
|
* To overcome this, it is wrapped in a View to be able to add the component in any layout structure
|
|
11
11
|
*
|
|
12
12
|
* Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird
|
|
13
|
-
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
13
|
+
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
14
14
|
* This effectivley makes the default height of the container be the height of the first card
|
|
15
15
|
*/
|
|
16
16
|
return (React.createElement(View, null,
|
|
@@ -40,7 +40,7 @@ const DeckSwiper: React.FC<React.PropsWithChildren<DeckSwiperProps>> = ({
|
|
|
40
40
|
* To overcome this, it is wrapped in a View to be able to add the component in any layout structure
|
|
41
41
|
*
|
|
42
42
|
* Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird
|
|
43
|
-
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
43
|
+
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space
|
|
44
44
|
* This effectivley makes the default height of the container be the height of the first card
|
|
45
45
|
*/
|
|
46
46
|
|