@draftbit/core 46.2.4-00bad7.0 → 46.2.4-0b78ac.5

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.
Files changed (94) hide show
  1. package/lib/commonjs/components/AnimatedCircularProgress.js +12 -2
  2. package/lib/commonjs/components/Checkbox/context.js +1 -1
  3. package/lib/commonjs/components/Config.js +1 -0
  4. package/lib/commonjs/components/Container.js +17 -5
  5. package/lib/commonjs/components/FormRow.js +17 -3
  6. package/lib/commonjs/components/Picker/Picker.js +7 -6
  7. package/lib/commonjs/components/RadioButton/RadioButton.js +14 -3
  8. package/lib/commonjs/components/RadioButton/context.js +1 -1
  9. package/lib/commonjs/components/SVG.js +49 -0
  10. package/lib/commonjs/components/Slider.js +24 -5
  11. package/lib/commonjs/components/StarRating.js +25 -5
  12. package/lib/commonjs/components/StepIndicator.js +34 -16
  13. package/lib/commonjs/components/TextField.js +2 -1
  14. package/lib/commonjs/components/Touchable.js +16 -2
  15. package/lib/commonjs/index.js +8 -14
  16. package/lib/commonjs/mappings/Image.js +2 -2
  17. package/lib/commonjs/mappings/MapView.js +1 -0
  18. package/lib/commonjs/mappings/NumberInput.js +146 -149
  19. package/lib/commonjs/mappings/SVG.js +24 -0
  20. package/lib/commonjs/mappings/TextArea.js +188 -193
  21. package/lib/commonjs/mappings/TextField.js +7 -8
  22. package/lib/commonjs/mappings/TextInput.js +178 -180
  23. package/lib/module/components/Banner.js +4 -24
  24. package/lib/module/components/CardContainer.js +5 -15
  25. package/lib/module/components/Config.js +1 -0
  26. package/lib/module/components/Divider.js +2 -20
  27. package/lib/module/components/FAB.js +5 -23
  28. package/lib/module/components/Portal/PortalHost.js +15 -26
  29. package/lib/module/components/RadioButton/RadioButton.js +2 -15
  30. package/lib/module/components/RadioButton/RadioButtonGroup.js +3 -17
  31. package/lib/module/components/SVG.js +32 -0
  32. package/lib/module/components/ScreenContainer.js +5 -22
  33. package/lib/module/components/TextField.js +2 -1
  34. package/lib/module/components/ToggleButton.js +3 -17
  35. package/lib/module/constants.js +0 -1
  36. package/lib/module/index.js +1 -1
  37. package/lib/module/mappings/Image.js +2 -2
  38. package/lib/module/mappings/MapView.js +1 -0
  39. package/lib/module/mappings/NumberInput.js +146 -149
  40. package/lib/module/mappings/SVG.js +15 -0
  41. package/lib/module/mappings/TextArea.js +188 -193
  42. package/lib/module/mappings/TextField.js +7 -8
  43. package/lib/module/mappings/TextInput.js +178 -180
  44. package/lib/typescript/src/components/Config.d.ts +1 -0
  45. package/lib/typescript/src/components/SVG.d.ts +8 -0
  46. package/lib/typescript/src/components/TextField.d.ts +1 -0
  47. package/lib/typescript/src/index.d.ts +1 -1
  48. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  49. package/lib/typescript/src/mappings/SVG.d.ts +23 -0
  50. package/lib/typescript/src/mappings/TextArea.d.ts +42 -42
  51. package/lib/typescript/src/mappings/TextField.d.ts +120 -110
  52. package/package.json +4 -5
  53. package/src/components/Config.js +1 -0
  54. package/src/components/Config.ts +1 -0
  55. package/src/components/SVG.js +14 -0
  56. package/src/components/SVG.tsx +35 -0
  57. package/src/components/TextField.js +2 -2
  58. package/src/components/TextField.tsx +3 -1
  59. package/src/index.js +1 -1
  60. package/src/index.tsx +1 -1
  61. package/src/mappings/Image.js +2 -2
  62. package/src/mappings/Image.ts +2 -2
  63. package/src/mappings/MapView.js +1 -0
  64. package/src/mappings/MapView.ts +1 -0
  65. package/src/mappings/NumberInput.js +160 -163
  66. package/src/mappings/NumberInput.ts +165 -168
  67. package/src/mappings/SVG.js +20 -0
  68. package/src/mappings/SVG.ts +25 -0
  69. package/src/mappings/TextArea.js +213 -220
  70. package/src/mappings/TextArea.ts +219 -227
  71. package/src/mappings/TextField.js +6 -9
  72. package/src/mappings/TextField.ts +7 -11
  73. package/src/mappings/TextInput.js +205 -208
  74. package/src/mappings/TextInput.ts +212 -215
  75. package/lib/commonjs/components/TabView/TabView.js +0 -102
  76. package/lib/commonjs/components/TabView/TabViewItem.js +0 -26
  77. package/lib/commonjs/components/TabView/index.js +0 -23
  78. package/lib/commonjs/mappings/TabView.js +0 -79
  79. package/lib/module/components/TabView/TabView.js +0 -87
  80. package/lib/module/components/TabView/TabViewItem.js +0 -18
  81. package/lib/module/components/TabView/index.js +0 -2
  82. package/lib/module/mappings/TabView.js +0 -70
  83. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  84. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  85. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  86. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  87. package/src/components/TabView/TabView.js +0 -34
  88. package/src/components/TabView/TabView.tsx +0 -97
  89. package/src/components/TabView/TabViewItem.js +0 -5
  90. package/src/components/TabView/TabViewItem.tsx +0 -21
  91. package/src/components/TabView/index.js +0 -2
  92. package/src/components/TabView/index.ts +0 -2
  93. package/src/mappings/TabView.js +0 -73
  94. package/src/mappings/TabView.ts +0 -80
@@ -17,8 +17,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  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; }
19
19
 
20
- 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); }
21
-
22
20
  const AnimatedProgress = _reactNative.Animated.createAnimatedComponent(_CircularProgress.default);
23
21
 
24
22
  const AnimatedCircularProgress = _ref => {
@@ -69,6 +67,18 @@ const AnimatedCircularProgress = _ref => {
69
67
  React.useEffect(() => {
70
68
  animate();
71
69
  }, [fill, animate]);
70
+ return /*#__PURE__*/React.createElement(AnimatedProgress, { ...other,
71
+ style: other.style,
72
+ childrenContainerStyle: other.childrenContainerStyle,
73
+ fill: fillAnimation,
74
+ tintColor: animateColor()
75
+ });
76
+ };
77
+
78
+ var _default = AnimatedCircularProgress;
79
+ exports.default = _default;eEffect(() => {
80
+ animate();
81
+ }, [fill, animate]);
72
82
  return /*#__PURE__*/React.createElement(AnimatedProgress, _extends({}, other, {
73
83
  style: other.style,
74
84
  childrenContainerStyle: other.childrenContainerStyle,
@@ -8,7 +8,7 @@ exports.useCheckboxGroupContext = useCheckboxGroupContext;
8
8
 
9
9
  var _react = require("react");
10
10
 
11
- let Direction;
11
+ var Direction;
12
12
  exports.Direction = Direction;
13
13
 
14
14
  (function (Direction) {
@@ -62,6 +62,7 @@ var _default = {
62
62
  width: size.width,
63
63
  height: size.height
64
64
  }, "image-placeholder_1"),
65
+ placeholderSvgURL: "https://static.draftbit.com/images/placeholder-svg.svg",
65
66
  squareImageUrl: buildImageUrl({
66
67
  width: 100,
67
68
  height: 100
@@ -19,8 +19,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
19
19
 
20
20
  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; }
21
21
 
22
- 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); }
23
-
24
22
  const Container = _ref => {
25
23
  let {
26
24
  useThemeGutterPadding,
@@ -82,9 +80,10 @@ const Container = _ref => {
82
80
  };
83
81
  const Wrap = elevation ? _Elevation.default : _reactNative.View;
84
82
  if (elevation) containerStyle.elevation = elevation;
85
- return /*#__PURE__*/React.createElement(Wrap, _extends({
86
- style: [containerStyle, style]
87
- }, rest), backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
83
+ return /*#__PURE__*/React.createElement(Wrap, {
84
+ style: [containerStyle, style],
85
+ ...rest
86
+ }, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
88
87
  source: typeof backgroundImage === "string" ? {
89
88
  uri: backgroundImage
90
89
  } : backgroundImage,
@@ -101,4 +100,17 @@ const Container = _ref => {
101
100
 
102
101
  var _default = (0, _theming.withTheme)(Container);
103
102
 
103
+ exports.default = _default;izeMode: backgroundImageResizeMode,
104
+ style: {
105
+ flex: 1
106
+ }
107
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
108
+ style: innerStyle
109
+ }, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
110
+ style: innerStyle
111
+ }, children));
112
+ };
113
+
114
+ var _default = (0, _theming.withTheme)(Container);
115
+
104
116
  exports.default = _default;
@@ -19,8 +19,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
19
19
 
20
20
  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; }
21
21
 
22
- 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); }
23
-
24
22
  function FormRow(_ref) {
25
23
  let {
26
24
  disabled,
@@ -35,11 +33,27 @@ function FormRow(_ref) {
35
33
  textStyles,
36
34
  viewStyles
37
35
  } = (0, _utilities.extractStyles)(style);
38
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
36
+ return /*#__PURE__*/React.createElement(_Touchable.default, {
39
37
  disabled: disabled,
40
38
  onPress: onPress,
41
39
  style: [styles.row, {
42
40
  flexDirection: direction
41
+ }, viewStyles],
42
+ ...rest
43
+ }, /*#__PURE__*/React.createElement(_reactNative.Text, {
44
+ style: textStyles
45
+ }, label), children);
46
+ }
47
+
48
+ const styles = _reactNative.StyleSheet.create({
49
+ row: {
50
+ marginLeft: 8,
51
+ marginRight: 8,
52
+ flexDirection: "row",
53
+ justifyContent: "space-between",
54
+ alignItems: "center"
55
+ }
56
+ });rection: direction
43
57
  }, viewStyles]
44
58
  }, rest), /*#__PURE__*/React.createElement(_reactNative.Text, {
45
59
  style: textStyles
@@ -66,8 +66,6 @@ const disabledColor = "rgb(240, 240, 240)";
66
66
  const errorColor = "rgba(255, 69, 100, 1)";
67
67
 
68
68
  const Picker = _ref => {
69
- var _find$label, _find;
70
-
71
69
  let {
72
70
  error,
73
71
  options = [],
@@ -89,6 +87,9 @@ const Picker = _ref => {
89
87
  rightIconName,
90
88
  type = "solid"
91
89
  } = _ref;
90
+
91
+ var _a, _b;
92
+
92
93
  const androidPickerRef = React.useRef(undefined);
93
94
  const [internalValue, setInternalValue] = React.useState(value || defaultValue);
94
95
  const [pickerVisible, setPickerVisible] = React.useState(false);
@@ -108,10 +109,10 @@ const Picker = _ref => {
108
109
  }
109
110
  }, [defaultValue]);
110
111
  React.useEffect(() => {
111
- if (pickerVisible && androidPickerRef.current) {
112
- var _androidPickerRef$cur;
112
+ var _a;
113
113
 
114
- androidPickerRef === null || androidPickerRef === void 0 ? void 0 : (_androidPickerRef$cur = androidPickerRef.current) === null || _androidPickerRef$cur === void 0 ? void 0 : _androidPickerRef$cur.focus();
114
+ if (pickerVisible && androidPickerRef.current) {
115
+ (_a = androidPickerRef === null || androidPickerRef === void 0 ? void 0 : androidPickerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
115
116
  }
116
117
  }, [pickerVisible, androidPickerRef]);
117
118
  const normalizedOptions = normalizeOptions(options);
@@ -159,7 +160,7 @@ const Picker = _ref => {
159
160
  ...extractedMarginStyles
160
161
  };
161
162
  const stylesWithoutBordersAndMargins = (0, _lodash.omit)(viewStyles, [..._utilities.borderStyleNames, ..._utilities.marginStyleNames, ...additionalBorderStyles, ...additionalMarginStyles]);
162
- const selectedLabel = internalValue && ((_find$label = (_find = pickerOptions.find(option => option.value === internalValue)) === null || _find === void 0 ? void 0 : _find.label) !== null && _find$label !== void 0 ? _find$label : internalValue);
163
+ const selectedLabel = internalValue && ((_b = (_a = pickerOptions.find(option => option.value === internalValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : internalValue);
163
164
  const labelText = label ? /*#__PURE__*/React.createElement(_reactNative.Text, {
164
165
  style: {
165
166
  textAlign: textStyles.textAlign,
@@ -21,8 +21,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  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; }
23
23
 
24
- 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); }
25
-
26
24
  const RadioButton = _ref => {
27
25
  let {
28
26
  Icon,
@@ -51,7 +49,20 @@ const RadioButton = _ref => {
51
49
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
52
50
  };
53
51
 
54
- return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
52
+ return /*#__PURE__*/React.createElement(_IconButton.default, {
53
+ Icon: Icon,
54
+ icon: isSelected ? selectedIcon : unselectedIcon,
55
+ color: isSelected ? color : unselectedColor,
56
+ disabled: disabled,
57
+ onPress: handlePress,
58
+ size: size,
59
+ style: style,
60
+ ...rest
61
+ });
62
+ };
63
+
64
+ var _default = RadioButton;
65
+ exports.default = _default;turn /*#__PURE__*/React.createElement(_IconButton.default, _extends({
55
66
  Icon: Icon,
56
67
  icon: isSelected ? selectedIcon : unselectedIcon,
57
68
  color: isSelected ? color : unselectedColor,
@@ -8,7 +8,7 @@ exports.useRadioButtonGroupContext = useRadioButtonGroupContext;
8
8
 
9
9
  var _react = require("react");
10
10
 
11
- let Direction;
11
+ var Direction;
12
12
  exports.Direction = Direction;
13
13
 
14
14
  (function (Direction) {
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var React = _interopRequireWildcard(require("react"));
9
+
10
+ var _reactNative = require("react-native");
11
+
12
+ var _reactNativeSvg = require("react-native-svg");
13
+
14
+ var _Config = _interopRequireDefault(require("./Config"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ const SVG = _ref => {
23
+ let {
24
+ source,
25
+ style
26
+ } = _ref;
27
+ let svgSource = source === null || source === undefined ? _Config.default.placeholderSvgURL : source;
28
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _reactNative.Platform.OS === "ios" && /*#__PURE__*/React.createElement(_reactNative.View, {
29
+ style: style
30
+ }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgUri, {
31
+ width: "100%",
32
+ height: "100%",
33
+ uri: svgSource
34
+ })), _reactNative.Platform.OS === "android" && /*#__PURE__*/React.createElement(_reactNative.View, {
35
+ style: style
36
+ }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgUri, {
37
+ width: "100%",
38
+ height: "100%",
39
+ uri: svgSource
40
+ })), _reactNative.Platform.OS === "web" && /*#__PURE__*/React.createElement(_reactNative.Image, {
41
+ style: style,
42
+ source: {
43
+ uri: svgSource
44
+ }
45
+ }));
46
+ };
47
+
48
+ var _default = SVG;
49
+ exports.default = _default;
@@ -23,8 +23,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  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; }
25
25
 
26
- 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); }
27
-
28
26
  function maybeParseValue(value) {
29
27
  if (value === undefined) {
30
28
  return undefined;
@@ -91,9 +89,10 @@ function Slider(_ref) {
91
89
  onValueChange(newValue);
92
90
  };
93
91
 
94
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
95
- style: [styles.container, style]
96
- }, rest), leftIcon ? /*#__PURE__*/React.createElement(Icon, {
92
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
93
+ style: [styles.container, style],
94
+ ...rest
95
+ }, leftIcon ? /*#__PURE__*/React.createElement(Icon, {
97
96
  color: leftIconThemeColor,
98
97
  name: leftIcon,
99
98
  size: 24
@@ -129,4 +128,24 @@ const styles = _reactNative.StyleSheet.create({
129
128
 
130
129
  var _default = (0, _theming.withTheme)(Slider);
131
130
 
131
+ exports.default = _default;: rightIconThemeColor,
132
+ name: rightIcon,
133
+ size: 24
134
+ }) : null);
135
+ }
136
+
137
+ const styles = _reactNative.StyleSheet.create({
138
+ container: {
139
+ height: 40,
140
+ flexDirection: "row",
141
+ alignItems: "center"
142
+ },
143
+ slider: {
144
+ flex: 1,
145
+ marginHorizontal: 12
146
+ }
147
+ });
148
+
149
+ var _default = (0, _theming.withTheme)(Slider);
150
+
132
151
  exports.default = _default;
@@ -15,8 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
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
17
 
18
- 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); }
19
-
20
18
  const StarRating = _ref => {
21
19
  let {
22
20
  Icon,
@@ -47,9 +45,10 @@ const StarRating = _ref => {
47
45
  !!onPress && onPress(r);
48
46
  }, [onPress]);
49
47
  const ratingRounded = Math.round(localRating * 2) / 2;
50
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
51
- style: [styles.container, style]
52
- }, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
48
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
49
+ style: [styles.container, style],
50
+ ...rest
51
+ }, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
53
52
  key: i,
54
53
  style: {
55
54
  display: "flex"
@@ -93,4 +92,25 @@ const styles = _reactNative.StyleSheet.create({
93
92
 
94
93
  var _default = (0, _theming.withTheme)(StarRating);
95
94
 
95
+ exports.default = _default;ignItems: "center"
96
+ },
97
+ touchContainer: {
98
+ display: "flex",
99
+ flexDirection: "row",
100
+ position: "absolute",
101
+ top: 0,
102
+ right: 0,
103
+ left: 0,
104
+ bottom: 0,
105
+ zIndex: 1
106
+ },
107
+ pressable: {
108
+ flex: 1,
109
+ height: "100%",
110
+ width: "50%"
111
+ }
112
+ });
113
+
114
+ var _default = (0, _theming.withTheme)(StarRating);
115
+
96
116
  exports.default = _default;
@@ -13,8 +13,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
13
 
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
15
 
16
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
-
16
+ // @ts-nocheck
18
17
  const STEP_STATUS = {
19
18
  CURRENT: "current",
20
19
  FINISHED: "finished",
@@ -25,7 +24,7 @@ class StepIndicator extends _react.Component {
25
24
  constructor(props) {
26
25
  super(props);
27
26
 
28
- _defineProperty(this, "renderProgressBarBackground", () => {
27
+ this.renderProgressBarBackground = () => {
29
28
  const {
30
29
  stepCount,
31
30
  direction
@@ -70,9 +69,9 @@ class StepIndicator extends _react.Component {
70
69
  },
71
70
  style: progressBarBackgroundStyle
72
71
  });
73
- });
72
+ };
74
73
 
75
- _defineProperty(this, "renderProgressBar", () => {
74
+ this.renderProgressBar = () => {
76
75
  const {
77
76
  stepCount,
78
77
  direction
@@ -104,9 +103,9 @@ class StepIndicator extends _react.Component {
104
103
  return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
105
104
  style: progressBarStyle
106
105
  });
107
- });
106
+ };
108
107
 
109
- _defineProperty(this, "renderStepIndicator", () => {
108
+ this.renderStepIndicator = () => {
110
109
  let steps = [];
111
110
  const {
112
111
  stepCount,
@@ -139,9 +138,9 @@ class StepIndicator extends _react.Component {
139
138
  height: this.state.customStyles.currentStepIndicatorSize
140
139
  }]
141
140
  }, steps);
142
- });
141
+ };
143
142
 
144
- _defineProperty(this, "renderStepLabels", () => {
143
+ this.renderStepLabels = () => {
145
144
  const {
146
145
  labels,
147
146
  direction,
@@ -183,9 +182,9 @@ class StepIndicator extends _react.Component {
183
182
  alignItems: this.state.customStyles.labelAlign
184
183
  }]
185
184
  }, labelViews);
186
- });
185
+ };
187
186
 
188
- _defineProperty(this, "renderStep", position => {
187
+ this.renderStep = position => {
189
188
  const {
190
189
  renderStepIndicator
191
190
  } = this.props;
@@ -257,9 +256,9 @@ class StepIndicator extends _react.Component {
257
256
  }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
258
257
  style: indicatorLabelStyle
259
258
  }, "".concat(position + 1)));
260
- });
259
+ };
261
260
 
262
- _defineProperty(this, "getStepStatus", stepPosition => {
261
+ this.getStepStatus = stepPosition => {
263
262
  const {
264
263
  currentPosition
265
264
  } = this.props;
@@ -271,9 +270,9 @@ class StepIndicator extends _react.Component {
271
270
  } else {
272
271
  return STEP_STATUS.UNFINISHED;
273
272
  }
274
- });
273
+ };
275
274
 
276
- _defineProperty(this, "onCurrentPositionChanged", position => {
275
+ this.onCurrentPositionChanged = position => {
277
276
  let {
278
277
  stepCount
279
278
  } = this.props;
@@ -296,7 +295,7 @@ class StepIndicator extends _react.Component {
296
295
  toValue: this.state.customStyles.currentStepIndicatorSize / 2,
297
296
  duration: 100
298
297
  })])]).start();
299
- });
298
+ };
300
299
 
301
300
  const defaultStyles = {
302
301
  stepIndicatorSize: 30,
@@ -411,6 +410,25 @@ const styles = _reactNative.StyleSheet.create({
411
410
  }
412
411
  });
413
412
 
413
+ StepIndicator.defaultProps = {
414
+ currentPosition: 0,
415
+ stepCount: 5,
416
+ customStyles: {},
417
+ direction: "horizontal"
418
+ }; justifyContent: "center"
419
+ },
420
+ stepLabel: {
421
+ fontSize: 12,
422
+ textAlign: "center",
423
+ fontWeight: "500"
424
+ },
425
+ stepLabelItem: {
426
+ flex: 1,
427
+ alignItems: "center",
428
+ justifyContent: "center"
429
+ }
430
+ });
431
+
414
432
  StepIndicator.defaultProps = {
415
433
  currentPosition: 0,
416
434
  stepCount: 5,
@@ -193,6 +193,7 @@ class TextField extends React.Component {
193
193
  rightIconName,
194
194
  assistiveText,
195
195
  underlineColor: underlineColorProp,
196
+ activeBorderColor: activeBorderColorProp,
196
197
  multiline = false,
197
198
  numberOfLines = 4,
198
199
  style,
@@ -220,7 +221,7 @@ class TextField extends React.Component {
220
221
  underlineColor = "transparent";
221
222
  backgroundColor = colors.divider;
222
223
  } else {
223
- activeColor = error ? colors.error : colors.primary;
224
+ activeColor = error ? colors.error : activeBorderColorProp;
224
225
  placeholderColor = borderColor = colors.light;
225
226
  underlineColor = underlineColorProp;
226
227
  backgroundColor = colors.background;
@@ -11,8 +11,6 @@ var _reactNative = require("react-native");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
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
-
16
14
  function Touchable(_ref) {
17
15
  let {
18
16
  children,
@@ -21,6 +19,22 @@ function Touchable(_ref) {
21
19
  style,
22
20
  ...props
23
21
  } = _ref;
22
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
23
+ onPress: onPress,
24
+ disabled: disabled,
25
+ hitSlop: 8,
26
+ style: _ref2 => {
27
+ let {
28
+ pressed
29
+ } = _ref2;
30
+ return [{
31
+ opacity: pressed || disabled ? 0.75 : 1
32
+ }, style];
33
+ },
34
+ ...props
35
+ }, children);
36
+ }rops
37
+ } = _ref;
24
38
  return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, _extends({
25
39
  onPress: onPress,
26
40
  disabled: disabled,
@@ -291,6 +291,12 @@ Object.defineProperty(exports, "RowHeadlineImageIcon", {
291
291
  return _RowHeadlineImageIcon.default;
292
292
  }
293
293
  });
294
+ Object.defineProperty(exports, "SVG", {
295
+ enumerable: true,
296
+ get: function () {
297
+ return _SVG.default;
298
+ }
299
+ });
294
300
  Object.defineProperty(exports, "ScreenContainer", {
295
301
  enumerable: true,
296
302
  get: function () {
@@ -363,18 +369,6 @@ Object.defineProperty(exports, "SwitchRow", {
363
369
  return _Switch.SwitchRow;
364
370
  }
365
371
  });
366
- Object.defineProperty(exports, "TabView", {
367
- enumerable: true,
368
- get: function () {
369
- return _TabView.TabView;
370
- }
371
- });
372
- Object.defineProperty(exports, "TabViewItem", {
373
- enumerable: true,
374
- get: function () {
375
- return _TabView.TabViewItem;
376
- }
377
- });
378
372
  Object.defineProperty(exports, "TextField", {
379
373
  enumerable: true,
380
374
  get: function () {
@@ -454,6 +448,8 @@ var _IconButton = _interopRequireDefault(require("./components/IconButton"));
454
448
 
455
449
  var _Image = _interopRequireDefault(require("./components/Image"));
456
450
 
451
+ var _SVG = _interopRequireDefault(require("./components/SVG"));
452
+
457
453
  var _NumberInput = _interopRequireDefault(require("./components/NumberInput"));
458
454
 
459
455
  var _ScreenContainer = _interopRequireDefault(require("./components/ScreenContainer"));
@@ -476,8 +472,6 @@ var _ActionSheet = require("./components/ActionSheet");
476
472
 
477
473
  var _Swiper = require("./components/Swiper");
478
474
 
479
- var _TabView = require("./components/TabView");
480
-
481
475
  var _Layout = require("./components/Layout");
482
476
 
483
477
  var _index = require("./components/RadioButton/index");
@@ -14,8 +14,8 @@ const SEED_DATA = {
14
14
  category: _types.COMPONENT_TYPES.media,
15
15
  stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Effects],
16
16
  layout: {
17
- width: 250,
18
- height: 250
17
+ width: 100,
18
+ height: 100
19
19
  },
20
20
  props: {
21
21
  source: (0, _types.createImageProp)(),
@@ -61,6 +61,7 @@ const SEED_DATA = {
61
61
  label: "Map Type",
62
62
  description: "The type of map to show",
63
63
  group: _types.GROUPS.basic,
64
+ editable: true,
64
65
  formType: _types.FORM_TYPES.flatArray,
65
66
  propType: _types.PROP_TYPES.STRING,
66
67
  required: false,