@draftbit/core 46.7.9-b07e7a.2 → 46.7.9-bca9cf.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/DatePicker/DatePicker.js +1 -8
- package/lib/commonjs/components/Divider.js +14 -1
- package/lib/commonjs/components/Elevation.js +14 -2
- package/lib/commonjs/components/NumberInput.js +10 -10
- package/lib/commonjs/index.js +0 -13
- package/lib/commonjs/mappings/DatePicker.js +1 -2
- package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -3
- package/lib/module/components/DatePicker/DatePicker.js +1 -8
- package/lib/module/components/DeprecatedButton.js +3 -21
- package/lib/module/components/NumberInput.js +10 -10
- package/lib/module/index.js +0 -1
- package/lib/module/mappings/DatePicker.js +1 -2
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/components/DatePicker/DatePicker.js +1 -1
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/components/NumberInput.js +9 -9
- package/src/components/NumberInput.tsx +11 -11
- package/src/index.js +0 -1
- package/src/index.tsx +0 -2
- package/src/mappings/DatePicker.js +1 -2
- package/src/mappings/DatePicker.ts +1 -2
- package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +0 -74
- package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +0 -34
- package/lib/commonjs/components/DeckSwiper/index.js +0 -20
- package/lib/commonjs/mappings/DeckSwiper.js +0 -55
- package/lib/commonjs/mappings/DeckSwiperCard.js +0 -23
- package/lib/module/components/DeckSwiper/DeckSwiper.js +0 -66
- package/lib/module/components/DeckSwiper/DeckSwiperCard.js +0 -26
- package/lib/module/components/DeckSwiper/index.js +0 -2
- package/lib/module/mappings/DeckSwiper.js +0 -48
- package/lib/module/mappings/DeckSwiperCard.js +0 -16
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +0 -15
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +0 -1
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +0 -13
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +0 -1
- package/lib/typescript/src/components/DeckSwiper/index.d.ts +0 -3
- package/lib/typescript/src/components/DeckSwiper/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/DeckSwiper.d.ts +0 -86
- package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +0 -1
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +0 -16
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +0 -1
- package/src/components/DeckSwiper/DeckSwiper.js +0 -35
- package/src/components/DeckSwiper/DeckSwiper.tsx +0 -94
- package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
- package/src/components/DeckSwiper/DeckSwiperCard.tsx +0 -41
- package/src/components/DeckSwiper/index.js +0 -2
- package/src/components/DeckSwiper/index.tsx +0 -2
- package/src/mappings/DeckSwiper.js +0 -48
- package/src/mappings/DeckSwiper.ts +0 -57
- package/src/mappings/DeckSwiperCard.js +0 -16
- package/src/mappings/DeckSwiperCard.ts +0 -20
|
@@ -166,14 +166,7 @@ const DatePicker = _ref => {
|
|
|
166
166
|
const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
|
|
167
167
|
const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
|
|
168
168
|
const hasActiveOutline = focused;
|
|
169
|
-
let inputTextColor,
|
|
170
|
-
activeColor,
|
|
171
|
-
underlineColor,
|
|
172
|
-
borderColor = inputBorderColor,
|
|
173
|
-
placeholderColor,
|
|
174
|
-
containerStyle,
|
|
175
|
-
backgroundColor,
|
|
176
|
-
inputStyle;
|
|
169
|
+
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
177
170
|
inputTextColor = colors.strong;
|
|
178
171
|
if (disabled) {
|
|
179
172
|
activeColor = colors.light;
|
|
@@ -9,7 +9,6 @@ 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
12
|
const Divider = _ref => {
|
|
14
13
|
let {
|
|
15
14
|
style,
|
|
@@ -19,6 +18,20 @@ const Divider = _ref => {
|
|
|
19
18
|
},
|
|
20
19
|
...rest
|
|
21
20
|
} = _ref;
|
|
21
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
22
|
+
style: [{
|
|
23
|
+
backgroundColor: color || colors.divider,
|
|
24
|
+
height: _reactNative.StyleSheet.hairlineWidth
|
|
25
|
+
}, style],
|
|
26
|
+
...rest
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var _default = (0, _theming.withTheme)(Divider);
|
|
30
|
+
exports.default = _default;eme: {
|
|
31
|
+
colors
|
|
32
|
+
},
|
|
33
|
+
...rest
|
|
34
|
+
} = _ref;
|
|
22
35
|
return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
|
|
23
36
|
style: [{
|
|
24
37
|
backgroundColor: color || colors.divider,
|
|
@@ -11,7 +11,6 @@ var _theming = require("../theming");
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
13
|
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; }
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
14
|
/* directly copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx#L62 */
|
|
16
15
|
const Elevation = _ref => {
|
|
17
16
|
let {
|
|
@@ -28,11 +27,24 @@ const Elevation = _ref => {
|
|
|
28
27
|
colors
|
|
29
28
|
} = theme;
|
|
30
29
|
const borderRadius = radius;
|
|
31
|
-
return /*#__PURE__*/React.createElement(_reactNative.Animated.View,
|
|
30
|
+
return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
31
|
+
...rest,
|
|
32
32
|
style: [{
|
|
33
33
|
borderRadius,
|
|
34
34
|
backgroundColor: colors.surface
|
|
35
35
|
}, elevation ? (0, _shadow.default)(elevation) : null, style]
|
|
36
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
37
|
+
style: {
|
|
38
|
+
overflow: "hidden",
|
|
39
|
+
borderRadius
|
|
40
|
+
}
|
|
41
|
+
}, children));
|
|
42
|
+
};
|
|
43
|
+
var _default = (0, _theming.withTheme)(Elevation);
|
|
44
|
+
exports.default = _default;
|
|
45
|
+
borderRadius,
|
|
46
|
+
backgroundColor: colors.surface
|
|
47
|
+
}, elevation ? (0, _shadow.default)(elevation) : null, style]
|
|
36
48
|
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
37
49
|
style: {
|
|
38
50
|
overflow: "hidden",
|
|
@@ -32,8 +32,17 @@ const NumberInput = _ref => {
|
|
|
32
32
|
return valueToFormat.toString();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
return "";
|
|
35
|
+
return "0";
|
|
36
36
|
};
|
|
37
|
+
|
|
38
|
+
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
39
|
+
(0, _react.useEffect)(() => {
|
|
40
|
+
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
41
|
+
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
42
|
+
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
43
|
+
}
|
|
44
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
|
+
}, []);
|
|
37
46
|
const handleChangeText = newValue => {
|
|
38
47
|
const newStringNumberValue = formatValueToStringNumber(newValue);
|
|
39
48
|
const number = parseFloat(newStringNumberValue);
|
|
@@ -49,15 +58,6 @@ const NumberInput = _ref => {
|
|
|
49
58
|
}
|
|
50
59
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
51
60
|
}, [value]);
|
|
52
|
-
|
|
53
|
-
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
54
|
-
(0, _react.useEffect)(() => {
|
|
55
|
-
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
56
|
-
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
57
|
-
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
58
|
-
}
|
|
59
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
|
-
}, []);
|
|
61
61
|
return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, _extends({
|
|
62
62
|
keyboardType: "numeric",
|
|
63
63
|
value: currentStringNumberValue,
|
package/lib/commonjs/index.js
CHANGED
|
@@ -123,18 +123,6 @@ Object.defineProperty(exports, "DatePicker", {
|
|
|
123
123
|
return _DatePicker.default;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
|
-
Object.defineProperty(exports, "DeckSwiper", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function () {
|
|
129
|
-
return _DeckSwiper.DeckSwiper;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "DeckSwiperCard", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () {
|
|
135
|
-
return _DeckSwiper.DeckSwiperCard;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
126
|
Object.defineProperty(exports, "DefaultTheme", {
|
|
139
127
|
enumerable: true,
|
|
140
128
|
get: function () {
|
|
@@ -413,7 +401,6 @@ var _ActionSheet = require("./components/ActionSheet");
|
|
|
413
401
|
var _Swiper = require("./components/Swiper");
|
|
414
402
|
var _Layout = require("./components/Layout");
|
|
415
403
|
var _index = require("./components/RadioButton/index");
|
|
416
|
-
var _DeckSwiper = require("./components/DeckSwiper");
|
|
417
404
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
418
405
|
var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
|
|
419
406
|
var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
|
|
@@ -37,8 +37,7 @@ const SEED_DATA_PROPS = {
|
|
|
37
37
|
label: "Border Color"
|
|
38
38
|
}),
|
|
39
39
|
borderColorActive: (0, _types.createColorProp)({
|
|
40
|
-
label: "
|
|
41
|
-
description: "Color of border when date picker is active"
|
|
40
|
+
label: "Border Color"
|
|
42
41
|
}),
|
|
43
42
|
format: {
|
|
44
43
|
label: "Format",
|
|
@@ -14,6 +14,7 @@ const SEED_DATA = [{
|
|
|
14
14
|
preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
|
|
15
15
|
supports_list_render: false,
|
|
16
16
|
triggers: [_types.Triggers.OnChange],
|
|
17
|
+
// TODO Triggers.OnSubmit for multiple triggers
|
|
17
18
|
props: {
|
|
18
19
|
icon: {
|
|
19
20
|
group: _types.GROUPS.basic,
|
|
@@ -52,7 +53,4 @@ const SEED_DATA = [{
|
|
|
52
53
|
},
|
|
53
54
|
layout: {}
|
|
54
55
|
}];
|
|
55
|
-
exports.SEED_DATA = SEED_DATA;},
|
|
56
|
-
layout: {}
|
|
57
|
-
}];
|
|
58
56
|
exports.SEED_DATA = SEED_DATA;
|
|
@@ -157,14 +157,7 @@ const DatePicker = _ref => {
|
|
|
157
157
|
const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
|
|
158
158
|
const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
|
|
159
159
|
const hasActiveOutline = focused;
|
|
160
|
-
let inputTextColor,
|
|
161
|
-
activeColor,
|
|
162
|
-
underlineColor,
|
|
163
|
-
borderColor = inputBorderColor,
|
|
164
|
-
placeholderColor,
|
|
165
|
-
containerStyle,
|
|
166
|
-
backgroundColor,
|
|
167
|
-
inputStyle;
|
|
160
|
+
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
168
161
|
inputTextColor = colors.strong;
|
|
169
162
|
if (disabled) {
|
|
170
163
|
activeColor = colors.light;
|
|
@@ -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 { ActivityIndicator, View, Text, StyleSheet, Pressable } from "react-native";
|
|
3
4
|
import color from "color";
|
|
@@ -74,8 +75,7 @@ const Button = _ref => {
|
|
|
74
75
|
elevation,
|
|
75
76
|
alignSelf: "stretch"
|
|
76
77
|
}
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
78
|
-
...rest,
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
79
79
|
onPress: onPress,
|
|
80
80
|
accessibilityState: {
|
|
81
81
|
disabled
|
|
@@ -83,7 +83,7 @@ const Button = _ref => {
|
|
|
83
83
|
accessibilityRole: "button",
|
|
84
84
|
disabled: disabled || loading,
|
|
85
85
|
style: [styles.button, buttonStyle]
|
|
86
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
86
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
87
87
|
style: styles.content
|
|
88
88
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(View, {
|
|
89
89
|
style: iconStyle
|
|
@@ -114,22 +114,4 @@ const styles = StyleSheet.create({
|
|
|
114
114
|
width: Config.buttonIconSize
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
export default withTheme(Button);: 1,
|
|
118
|
-
style: [textStyle, typography.button]
|
|
119
|
-
}, children))));
|
|
120
|
-
};
|
|
121
|
-
const styles = StyleSheet.create({
|
|
122
|
-
button: {
|
|
123
|
-
minWidth: 64,
|
|
124
|
-
borderStyle: "solid"
|
|
125
|
-
},
|
|
126
|
-
content: {
|
|
127
|
-
flexDirection: "row",
|
|
128
|
-
alignItems: "center",
|
|
129
|
-
justifyContent: "center"
|
|
130
|
-
},
|
|
131
|
-
icon: {
|
|
132
|
-
width: Config.buttonIconSize
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
117
|
export default withTheme(Button);
|
|
@@ -24,8 +24,17 @@ const NumberInput = _ref => {
|
|
|
24
24
|
return valueToFormat.toString();
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
return "";
|
|
27
|
+
return "0";
|
|
28
28
|
};
|
|
29
|
+
|
|
30
|
+
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
33
|
+
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
34
|
+
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
35
|
+
}
|
|
36
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37
|
+
}, []);
|
|
29
38
|
const handleChangeText = newValue => {
|
|
30
39
|
const newStringNumberValue = formatValueToStringNumber(newValue);
|
|
31
40
|
const number = parseFloat(newStringNumberValue);
|
|
@@ -41,15 +50,6 @@ const NumberInput = _ref => {
|
|
|
41
50
|
}
|
|
42
51
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
43
52
|
}, [value]);
|
|
44
|
-
|
|
45
|
-
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
48
|
-
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
49
|
-
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
50
|
-
}
|
|
51
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52
|
-
}, []);
|
|
53
53
|
return /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
54
54
|
keyboardType: "numeric",
|
|
55
55
|
value: currentStringNumberValue,
|
package/lib/module/index.js
CHANGED
|
@@ -31,7 +31,6 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/Ac
|
|
|
31
31
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
32
32
|
export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
|
|
33
33
|
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup } from "./components/RadioButton/index";
|
|
34
|
-
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
35
34
|
|
|
36
35
|
/* Deprecated: Fix or Delete! */
|
|
37
36
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -31,7 +31,6 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
|
|
|
31
31
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
32
32
|
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
|
33
33
|
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
34
|
-
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
35
34
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
36
35
|
export { default as Picker } from "./components/Picker/Picker";
|
|
37
36
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,M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2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"AAgKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.7.9-
|
|
3
|
+
"version": "46.7.9-bca9cf.2+bca9cfe",
|
|
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.9-
|
|
44
|
+
"@draftbit/types": "^46.7.9-bca9cf.2+bca9cfe",
|
|
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",
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"lodash.isnumber": "^3.0.3",
|
|
54
54
|
"lodash.omit": "^4.5.0",
|
|
55
55
|
"lodash.tonumber": "^4.0.3",
|
|
56
|
-
"react-native-deck-swiper": "^2.0.12",
|
|
57
56
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
58
57
|
"react-native-svg": "12.3.0",
|
|
59
58
|
"react-native-typography": "^1.4.1",
|
|
@@ -92,5 +91,5 @@
|
|
|
92
91
|
]
|
|
93
92
|
]
|
|
94
93
|
},
|
|
95
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "bca9cfe13d7374bc05b2177e2f0be8e0b841ee8f"
|
|
96
95
|
}
|
|
@@ -137,7 +137,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
|
|
|
137
137
|
? labelSize
|
|
138
138
|
: typography.caption.fontSize;
|
|
139
139
|
const hasActiveOutline = focused;
|
|
140
|
-
let inputTextColor, activeColor, underlineColor, borderColor
|
|
140
|
+
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
141
141
|
inputTextColor = colors.strong;
|
|
142
142
|
if (disabled) {
|
|
143
143
|
activeColor = colors.light;
|
|
@@ -241,7 +241,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
|
|
|
241
241
|
let inputTextColor,
|
|
242
242
|
activeColor,
|
|
243
243
|
underlineColor,
|
|
244
|
-
borderColor
|
|
244
|
+
borderColor,
|
|
245
245
|
placeholderColor,
|
|
246
246
|
containerStyle: StyleProp<ViewStyle>,
|
|
247
247
|
backgroundColor,
|
|
@@ -20,8 +20,16 @@ const NumberInput = ({ onChangeText, value, defaultValue, ...props }) => {
|
|
|
20
20
|
return valueToFormat.toString();
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
return "";
|
|
23
|
+
return "0";
|
|
24
24
|
};
|
|
25
|
+
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
28
|
+
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
29
|
+
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
30
|
+
}
|
|
31
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
+
}, []);
|
|
25
33
|
const handleChangeText = (newValue) => {
|
|
26
34
|
const newStringNumberValue = formatValueToStringNumber(newValue);
|
|
27
35
|
const number = parseFloat(newStringNumberValue);
|
|
@@ -36,14 +44,6 @@ const NumberInput = ({ onChangeText, value, defaultValue, ...props }) => {
|
|
|
36
44
|
}
|
|
37
45
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
38
46
|
}, [value]);
|
|
39
|
-
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
42
|
-
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
43
|
-
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
44
|
-
}
|
|
45
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
46
|
-
}, []);
|
|
47
47
|
return (React.createElement(TextInput, { keyboardType: "numeric", value: currentStringNumberValue, onChangeText: handleChangeText, ...props }));
|
|
48
48
|
};
|
|
49
49
|
export default NumberInput;
|
|
@@ -31,9 +31,19 @@ const NumberInput: FC<Props> = ({
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
return "";
|
|
34
|
+
return "0";
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
40
|
+
|
|
41
|
+
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
42
|
+
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
43
|
+
}
|
|
44
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
|
+
}, []);
|
|
46
|
+
|
|
37
47
|
const handleChangeText = (newValue: string) => {
|
|
38
48
|
const newStringNumberValue = formatValueToStringNumber(newValue);
|
|
39
49
|
const number = parseFloat(newStringNumberValue);
|
|
@@ -52,16 +62,6 @@ const NumberInput: FC<Props> = ({
|
|
|
52
62
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
53
63
|
}, [value]);
|
|
54
64
|
|
|
55
|
-
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
58
|
-
|
|
59
|
-
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
60
|
-
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
61
|
-
}
|
|
62
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63
|
-
}, []);
|
|
64
|
-
|
|
65
65
|
return (
|
|
66
66
|
<TextInput
|
|
67
67
|
keyboardType="numeric"
|
package/src/index.js
CHANGED
|
@@ -31,7 +31,6 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
|
|
|
31
31
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
32
32
|
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
|
33
33
|
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
34
|
-
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
35
34
|
/* Deprecated: Fix or Delete! */
|
|
36
35
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
37
36
|
export { default as Picker } from "./components/Picker/Picker";
|
package/src/index.tsx
CHANGED
|
@@ -51,8 +51,6 @@ export {
|
|
|
51
51
|
RadioButtonFieldGroup,
|
|
52
52
|
} from "./components/RadioButton/index";
|
|
53
53
|
|
|
54
|
-
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
55
|
-
|
|
56
54
|
/* Deprecated: Fix or Delete! */
|
|
57
55
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
58
56
|
export { default as Picker } from "./components/Picker/Picker";
|
|
@@ -31,8 +31,7 @@ const SEED_DATA_PROPS = {
|
|
|
31
31
|
label: "Border Color",
|
|
32
32
|
}),
|
|
33
33
|
borderColorActive: createColorProp({
|
|
34
|
-
label: "
|
|
35
|
-
description: "Color of border when date picker is active",
|
|
34
|
+
label: "Border Color",
|
|
36
35
|
}),
|
|
37
36
|
format: {
|
|
38
37
|
label: "Format",
|
|
@@ -43,8 +43,7 @@ const SEED_DATA_PROPS = {
|
|
|
43
43
|
label: "Border Color",
|
|
44
44
|
}),
|
|
45
45
|
borderColorActive: createColorProp({
|
|
46
|
-
label: "
|
|
47
|
-
description: "Color of border when date picker is active",
|
|
46
|
+
label: "Border Color",
|
|
48
47
|
}),
|
|
49
48
|
format: {
|
|
50
49
|
label: "Format",
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeDeckSwiper = _interopRequireDefault(require("react-native-deck-swiper"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
const DeckSwiper = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
onIndexChanged,
|
|
14
|
-
onEndReached,
|
|
15
|
-
startCardIndex = 0,
|
|
16
|
-
infiniteSwiping = false,
|
|
17
|
-
verticalEnabled = true,
|
|
18
|
-
horizontalEnabled = true,
|
|
19
|
-
visibleCardCount = 1,
|
|
20
|
-
style,
|
|
21
|
-
children
|
|
22
|
-
} = _ref;
|
|
23
|
-
const childrenArray = _react.default.useMemo(() => _react.default.Children.toArray(children), [children]);
|
|
24
|
-
|
|
25
|
-
// an array of indices based on children count
|
|
26
|
-
const cardsFillerData = _react.default.useMemo(() => Array.from(Array(childrenArray.length).keys()), [childrenArray]);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* By default react-native-deck-swiper positions everything with absolute position.
|
|
30
|
-
* To overcome this, it is wrapped in a View to be able to add the component in any layout structure.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird.
|
|
34
|
-
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space.
|
|
35
|
-
* This effectivley makes the default height of the container be the height of the first card.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
39
|
-
style: styles.containerHeightFiller
|
|
40
|
-
}, childrenArray.length && childrenArray[0]), /*#__PURE__*/_react.default.createElement(_reactNativeDeckSwiper.default, {
|
|
41
|
-
cards: cardsFillerData,
|
|
42
|
-
renderCard: (_, i) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, childrenArray[i]),
|
|
43
|
-
keyExtractor: card => card === null || card === void 0 ? void 0 : card.toString(),
|
|
44
|
-
containerStyle: _reactNative.StyleSheet.flatten([styles.cardsContainer, style]),
|
|
45
|
-
cardStyle: styles.card,
|
|
46
|
-
onSwiped: onIndexChanged,
|
|
47
|
-
onSwipedAll: onEndReached,
|
|
48
|
-
cardIndex: startCardIndex,
|
|
49
|
-
infinite: infiniteSwiping,
|
|
50
|
-
verticalSwipe: verticalEnabled,
|
|
51
|
-
horizontalSwipe: horizontalEnabled,
|
|
52
|
-
showSecondCard: visibleCardCount > 1,
|
|
53
|
-
stackSize: visibleCardCount,
|
|
54
|
-
backgroundColor: "transparent",
|
|
55
|
-
cardVerticalMargin: 0,
|
|
56
|
-
cardHorizontalMargin: 0
|
|
57
|
-
}));
|
|
58
|
-
};
|
|
59
|
-
const styles = _reactNative.StyleSheet.create({
|
|
60
|
-
cardsContainer: {
|
|
61
|
-
width: "100%"
|
|
62
|
-
},
|
|
63
|
-
card: {
|
|
64
|
-
left: 0,
|
|
65
|
-
right: 0,
|
|
66
|
-
width: "auto",
|
|
67
|
-
height: "auto"
|
|
68
|
-
},
|
|
69
|
-
containerHeightFiller: {
|
|
70
|
-
opacity: 0.0
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
var _default = DeckSwiper;
|
|
74
|
-
exports.default = _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _theming = require("../../theming");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
const DeckSwiperCard = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
style,
|
|
14
|
-
children,
|
|
15
|
-
theme
|
|
16
|
-
} = _ref;
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
18
|
-
style: [styles.card, {
|
|
19
|
-
backgroundColor: theme.colors.background,
|
|
20
|
-
borderColor: theme.colors.divider
|
|
21
|
-
}, style]
|
|
22
|
-
}, children);
|
|
23
|
-
};
|
|
24
|
-
const styles = _reactNative.StyleSheet.create({
|
|
25
|
-
card: {
|
|
26
|
-
flex: 1,
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
justifyContent: "center",
|
|
29
|
-
padding: 20,
|
|
30
|
-
borderWidth: 2
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
var _default = (0, _theming.withTheme)(DeckSwiperCard);
|
|
34
|
-
exports.default = _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DeckSwiper", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _DeckSwiper.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "DeckSwiperCard", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _DeckSwiperCard.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _DeckSwiper = _interopRequireDefault(require("./DeckSwiper"));
|
|
19
|
-
var _DeckSwiperCard = _interopRequireDefault(require("./DeckSwiperCard"));
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|