@draftbit/core 46.2.4-58c73f.0 → 46.2.4-7028ac.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 (100) hide show
  1. package/lib/commonjs/components/CardContainer.js +15 -5
  2. package/lib/commonjs/components/CircleImage.js +16 -2
  3. package/lib/commonjs/components/Config.js +1 -0
  4. package/lib/commonjs/components/DeprecatedButton.js +22 -4
  5. package/lib/commonjs/components/IconButton.js +22 -5
  6. package/lib/commonjs/components/Image.js +16 -3
  7. package/lib/commonjs/components/Portal/Portal.js +12 -3
  8. package/lib/commonjs/components/Portal/PortalConsumer.js +10 -8
  9. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +24 -6
  10. package/lib/commonjs/components/RadioButton/context.js +1 -1
  11. package/lib/commonjs/components/SVG.js +48 -0
  12. package/lib/commonjs/components/StarRating.js +1 -0
  13. package/lib/commonjs/components/Switch.js +23 -10
  14. package/lib/commonjs/components/TextField.js +2 -1
  15. package/lib/commonjs/constants.js +2 -2
  16. package/lib/commonjs/index.js +8 -14
  17. package/lib/commonjs/mappings/Image.js +2 -2
  18. package/lib/commonjs/mappings/MapView.js +1 -0
  19. package/lib/commonjs/mappings/NumberInput.js +146 -149
  20. package/lib/commonjs/mappings/SVG.js +25 -0
  21. package/lib/commonjs/mappings/TextArea.js +188 -193
  22. package/lib/commonjs/mappings/TextField.js +7 -8
  23. package/lib/commonjs/mappings/TextInput.js +178 -180
  24. package/lib/module/components/Banner.js +24 -4
  25. package/lib/module/components/CardBlock.js +15 -5
  26. package/lib/module/components/Checkbox/CheckboxGroup.js +17 -3
  27. package/lib/module/components/Config.js +1 -0
  28. package/lib/module/components/DeprecatedCardWrapper.js +19 -2
  29. package/lib/module/components/IconButton.js +22 -5
  30. package/lib/module/components/Picker/PickerComponent.android.js +23 -5
  31. package/lib/module/components/Picker/PickerComponent.web.js +23 -5
  32. package/lib/module/components/ProgressBar.js +23 -7
  33. package/lib/module/components/SVG.js +31 -0
  34. package/lib/module/components/StarRating.js +25 -5
  35. package/lib/module/components/Surface.js +16 -2
  36. package/lib/module/components/Text.js +33 -10
  37. package/lib/module/components/TextField.js +64 -31
  38. package/lib/module/components/Touchable.js +18 -2
  39. package/lib/module/constants.js +1 -0
  40. package/lib/module/index.js +1 -1
  41. package/lib/module/mappings/Image.js +2 -2
  42. package/lib/module/mappings/MapView.js +1 -0
  43. package/lib/module/mappings/NumberInput.js +146 -149
  44. package/lib/module/mappings/SVG.js +16 -0
  45. package/lib/module/mappings/TextArea.js +188 -193
  46. package/lib/module/mappings/TextField.js +7 -8
  47. package/lib/module/mappings/TextInput.js +178 -180
  48. package/lib/typescript/src/components/Config.d.ts +1 -0
  49. package/lib/typescript/src/components/SVG.d.ts +8 -0
  50. package/lib/typescript/src/components/TextField.d.ts +1 -0
  51. package/lib/typescript/src/index.d.ts +1 -1
  52. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  53. package/lib/typescript/src/mappings/SVG.d.ts +24 -0
  54. package/lib/typescript/src/mappings/TextArea.d.ts +42 -42
  55. package/lib/typescript/src/mappings/TextField.d.ts +120 -110
  56. package/package.json +4 -5
  57. package/src/components/Config.js +1 -0
  58. package/src/components/Config.ts +1 -0
  59. package/src/components/SVG.js +13 -0
  60. package/src/components/SVG.tsx +35 -0
  61. package/src/components/StarRating.js +1 -0
  62. package/src/components/StarRating.tsx +1 -0
  63. package/src/components/TextField.js +2 -2
  64. package/src/components/TextField.tsx +3 -1
  65. package/src/index.js +1 -1
  66. package/src/index.tsx +1 -1
  67. package/src/mappings/Image.js +2 -2
  68. package/src/mappings/Image.ts +2 -2
  69. package/src/mappings/MapView.js +1 -0
  70. package/src/mappings/MapView.ts +1 -0
  71. package/src/mappings/NumberInput.js +160 -163
  72. package/src/mappings/NumberInput.ts +165 -168
  73. package/src/mappings/SVG.js +21 -0
  74. package/src/mappings/SVG.ts +26 -0
  75. package/src/mappings/TextArea.js +213 -220
  76. package/src/mappings/TextArea.ts +219 -227
  77. package/src/mappings/TextField.js +6 -9
  78. package/src/mappings/TextField.ts +7 -11
  79. package/src/mappings/TextInput.js +205 -208
  80. package/src/mappings/TextInput.ts +212 -215
  81. package/lib/commonjs/components/TabView/TabView.js +0 -102
  82. package/lib/commonjs/components/TabView/TabViewItem.js +0 -26
  83. package/lib/commonjs/components/TabView/index.js +0 -23
  84. package/lib/commonjs/mappings/TabView.js +0 -79
  85. package/lib/module/components/TabView/TabView.js +0 -87
  86. package/lib/module/components/TabView/TabViewItem.js +0 -18
  87. package/lib/module/components/TabView/index.js +0 -2
  88. package/lib/module/mappings/TabView.js +0 -70
  89. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  90. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  91. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  92. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  93. package/src/components/TabView/TabView.js +0 -34
  94. package/src/components/TabView/TabView.tsx +0 -97
  95. package/src/components/TabView/TabViewItem.js +0 -5
  96. package/src/components/TabView/TabViewItem.tsx +0 -21
  97. package/src/components/TabView/index.js +0 -2
  98. package/src/components/TabView/index.ts +0 -2
  99. package/src/mappings/TabView.js +0 -73
  100. package/src/mappings/TabView.ts +0 -80
@@ -1,7 +1,3 @@
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
-
3
- 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; }
4
-
5
1
  import React, { Component } from "react";
6
2
  import { Animated, Easing, View, I18nManager } from "react-native";
7
3
  const INDETERMINATE_WIDTH_FACTOR = 0.3;
@@ -10,7 +6,7 @@ export default class ProgressBar extends Component {
10
6
  constructor(props) {
11
7
  super(props);
12
8
 
13
- _defineProperty(this, "handleLayout", event => {
9
+ this.handleLayout = event => {
14
10
  const {
15
11
  width = 150,
16
12
  onLayout
@@ -25,7 +21,7 @@ export default class ProgressBar extends Component {
25
21
  if (onLayout) {
26
22
  onLayout(event);
27
23
  }
28
- });
24
+ };
29
25
 
30
26
  const {
31
27
  progress: progressP = 0,
@@ -79,7 +75,6 @@ export default class ProgressBar extends Component {
79
75
  Animated[animationType](this.state.progress, { ...animationConfig,
80
76
  toValue: progress,
81
77
  velocity: 0,
82
- //adjust this value if animation fails - velocity is required
83
78
  useNativeDriver
84
79
  }).start();
85
80
  } else {
@@ -150,6 +145,27 @@ export default class ProgressBar extends Component {
150
145
  })
151
146
  }]
152
147
  };
148
+ return /*#__PURE__*/React.createElement(View, {
149
+ style: [containerStyle, style],
150
+ onLayout: this.handleLayout,
151
+ ...restProps
152
+ }, /*#__PURE__*/React.createElement(Animated.View, {
153
+ style: progressStyle
154
+ }), children);
155
+ }
156
+
157
+ }te.progress.interpolate({
158
+ inputRange: [0, 1],
159
+ outputRange: [innerWidth / (I18nManager.isRTL ? 2 : -2), 0]
160
+ })
161
+ }, {
162
+ // Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
163
+ scaleX: this.state.progress.interpolate({
164
+ inputRange: [0, 1],
165
+ outputRange: [0.0001, 1]
166
+ })
167
+ }]
168
+ };
153
169
  return /*#__PURE__*/React.createElement(View, _extends({
154
170
  style: [containerStyle, style],
155
171
  onLayout: this.handleLayout
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import { View, Platform, Image } from "react-native";
3
+ import { SvgUri } from "react-native-svg";
4
+ import Config from "./Config";
5
+
6
+ const SVG = _ref => {
7
+ let {
8
+ source = Config.placeholderSvgURL,
9
+ style
10
+ } = _ref;
11
+ return /*#__PURE__*/React.createElement(React.Fragment, null, Platform.OS === "ios" && /*#__PURE__*/React.createElement(View, {
12
+ style: style
13
+ }, /*#__PURE__*/React.createElement(SvgUri, {
14
+ width: "100%",
15
+ height: "100%",
16
+ uri: source
17
+ })), Platform.OS === "android" && /*#__PURE__*/React.createElement(View, {
18
+ style: style
19
+ }, /*#__PURE__*/React.createElement(SvgUri, {
20
+ width: "100%",
21
+ height: "100%",
22
+ uri: source
23
+ })), Platform.OS === "web" && /*#__PURE__*/React.createElement(Image, {
24
+ style: style,
25
+ source: {
26
+ uri: source
27
+ }
28
+ }));
29
+ };
30
+
31
+ export default SVG;
@@ -1,5 +1,3 @@
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
-
3
1
  import * as React from "react";
4
2
  import { View, StyleSheet, Pressable } from "react-native";
5
3
  import { withTheme } from "../theming";
@@ -34,9 +32,10 @@ const StarRating = _ref => {
34
32
  !!onPress && onPress(r);
35
33
  }, [onPress]);
36
34
  const ratingRounded = Math.round(localRating * 2) / 2;
37
- return /*#__PURE__*/React.createElement(View, _extends({
38
- style: [styles.container, style]
39
- }, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
35
+ return /*#__PURE__*/React.createElement(View, {
36
+ style: [styles.container, style],
37
+ ...rest
38
+ }, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
40
39
  key: i,
41
40
  style: {
42
41
  display: "flex"
@@ -57,6 +56,7 @@ const StarRating = _ref => {
57
56
  };
58
57
 
59
58
  const styles = StyleSheet.create({
59
+ //comment!
60
60
  container: {
61
61
  flexDirection: "row",
62
62
  alignItems: "center"
@@ -77,4 +77,24 @@ const styles = StyleSheet.create({
77
77
  width: "50%"
78
78
  }
79
79
  });
80
+ export default withTheme(StarRating);ontainer: {
81
+ flexDirection: "row",
82
+ alignItems: "center"
83
+ },
84
+ touchContainer: {
85
+ display: "flex",
86
+ flexDirection: "row",
87
+ position: "absolute",
88
+ top: 0,
89
+ right: 0,
90
+ left: 0,
91
+ bottom: 0,
92
+ zIndex: 1
93
+ },
94
+ pressable: {
95
+ flex: 1,
96
+ height: "100%",
97
+ width: "50%"
98
+ }
99
+ });
80
100
  export default withTheme(StarRating);
@@ -1,5 +1,3 @@
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
-
3
1
  /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx */
4
2
  import * as React from "react";
5
3
  import { Animated, StyleSheet } from "react-native";
@@ -38,6 +36,22 @@ const Surface = _ref => {
38
36
  }
39
37
  };
40
38
 
39
+ return /*#__PURE__*/React.createElement(Animated.View, { ...rest,
40
+ style: [{
41
+ backgroundColor: getBackgroundColor(),
42
+ elevation,
43
+ ...evalationStyles,
44
+ ...restStyle
45
+ }]
46
+ }, children);
47
+ };
48
+
49
+ export default withTheme(Surface); overlay(elevation, colors.surface);
50
+ } else {
51
+ return colors.surface;
52
+ }
53
+ };
54
+
41
55
  return /*#__PURE__*/React.createElement(Animated.View, _extends({}, rest, {
42
56
  style: [{
43
57
  backgroundColor: getBackgroundColor(),
@@ -1,18 +1,8 @@
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
-
3
- 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; }
4
-
5
1
  import * as React from "react";
6
2
  import { Text as NativeText, I18nManager } from "react-native";
7
3
  import { withTheme } from "../theming";
8
4
 
9
5
  class Text extends React.Component {
10
- constructor() {
11
- super(...arguments);
12
-
13
- _defineProperty(this, "_root", void 0);
14
- }
15
-
16
6
  setNativeProps(args) {
17
7
  return this._root && this._root.setNativeProps(args);
18
8
  }
@@ -22,6 +12,39 @@ class Text extends React.Component {
22
12
  style,
23
13
  ...rest
24
14
  } = this.props;
15
+ const writingDirection = I18nManager.isRTL ? "rtl" : "ltr";
16
+ return /*#__PURE__*/React.createElement(NativeText, { ...rest,
17
+ ref: c => {
18
+ this._root = c;
19
+ },
20
+ style: [{
21
+ textAlign: "left",
22
+ writingDirection
23
+ }, style]
24
+ });
25
+ }
26
+
27
+ }
28
+
29
+ export const BaseLink = _ref => {
30
+ let {
31
+ style,
32
+ theme,
33
+ title,
34
+ ...props
35
+ } = _ref;
36
+ return /*#__PURE__*/React.createElement(Text, {
37
+ hitSlop: 8,
38
+ style: [{
39
+ color: theme.colors.primary
40
+ }, style],
41
+ theme: theme,
42
+ ...props
43
+ }, title);
44
+ };
45
+ const Link = withTheme(BaseLink);
46
+ export { Link };
47
+ export default withTheme(Text);ops;
25
48
  const writingDirection = I18nManager.isRTL ? "rtl" : "ltr";
26
49
  return /*#__PURE__*/React.createElement(NativeText, _extends({}, rest, {
27
50
  ref: c => {
@@ -1,7 +1,3 @@
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
-
3
- 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; }
4
-
5
1
  import * as React from "react";
6
2
  import { View, Animated, TextInput as NativeTextInput, StyleSheet, Text, I18nManager } from "react-native";
7
3
  import { withTheme } from "../theming";
@@ -14,8 +10,7 @@ const ICON_SIZE = 24;
14
10
  class TextField extends React.Component {
15
11
  constructor() {
16
12
  super(...arguments);
17
-
18
- _defineProperty(this, "state", {
13
+ this.state = {
19
14
  labeled: new Animated.Value(this.props.value || this.props.error ? 0 : 1),
20
15
  focused: false,
21
16
  placeholder: this.props.error ? this.props.placeholder : "",
@@ -23,36 +18,35 @@ class TextField extends React.Component {
23
18
  measured: false,
24
19
  width: 0
25
20
  }
26
- });
27
-
28
- _defineProperty(this, "_timer", setTimeout(() => {}, 0));
21
+ };
22
+ this._timer = setTimeout(() => {}, 0);
29
23
 
30
- _defineProperty(this, "_showPlaceholder", () => {
24
+ this._showPlaceholder = () => {
31
25
  clearTimeout(this._timer); // Set the placeholder in a delay to offset the label animation
32
26
  // If we show it immediately, they'll overlap and look ugly
33
27
 
34
28
  this._timer = setTimeout(() => this.setState({
35
29
  placeholder: this.props.placeholder
36
30
  }), 50);
37
- });
31
+ };
38
32
 
39
- _defineProperty(this, "_hidePlaceholder", () => this.setState({
33
+ this._hidePlaceholder = () => this.setState({
40
34
  placeholder: ""
41
- }));
35
+ });
42
36
 
43
- _defineProperty(this, "_restoreLabel", () => Animated.timing(this.state.labeled, {
37
+ this._restoreLabel = () => Animated.timing(this.state.labeled, {
44
38
  toValue: 1,
45
39
  duration: FOCUS_ANIMATION_DURATION,
46
40
  useNativeDriver: true
47
- }).start());
41
+ }).start();
48
42
 
49
- _defineProperty(this, "_minmizeLabel", () => Animated.timing(this.state.labeled, {
43
+ this._minmizeLabel = () => Animated.timing(this.state.labeled, {
50
44
  toValue: 0,
51
45
  duration: BLUR_ANIMATION_DURATION,
52
46
  useNativeDriver: true
53
- }).start());
47
+ }).start();
54
48
 
55
- _defineProperty(this, "_handleFocus", () => {
49
+ this._handleFocus = () => {
56
50
  if (this.props.disabled) {
57
51
  return;
58
52
  }
@@ -60,9 +54,9 @@ class TextField extends React.Component {
60
54
  this.setState({
61
55
  focused: true
62
56
  });
63
- });
57
+ };
64
58
 
65
- _defineProperty(this, "_handleBlur", () => {
59
+ this._handleBlur = () => {
66
60
  if (this.props.disabled) {
67
61
  return;
68
62
  }
@@ -70,9 +64,9 @@ class TextField extends React.Component {
70
64
  this.setState({
71
65
  focused: false
72
66
  });
73
- });
67
+ };
74
68
 
75
- _defineProperty(this, "_handleChangeText", value => {
69
+ this._handleChangeText = value => {
76
70
  if (this.props.disabled) {
77
71
  return;
78
72
  }
@@ -88,9 +82,9 @@ class TextField extends React.Component {
88
82
  });
89
83
  this.props.onChangeText && this.props.onChangeText(value.nativeEvent.text);
90
84
  }
91
- });
85
+ };
92
86
 
93
- _defineProperty(this, "_root", undefined);
87
+ this._root = undefined;
94
88
  }
95
89
 
96
90
  static getDerivedStateFromProps(nextProps, prevState) {
@@ -141,10 +135,11 @@ class TextField extends React.Component {
141
135
  focused: !prevState.focused
142
136
  }));
143
137
  }
144
-
145
138
  /**
146
139
  * @internal
147
140
  */
141
+
142
+
148
143
  setNativeProps(args) {
149
144
  return this._root && this._root.setNativeProps(args);
150
145
  }
@@ -177,6 +172,7 @@ class TextField extends React.Component {
177
172
  rightIconName,
178
173
  assistiveText,
179
174
  underlineColor: underlineColorProp,
175
+ activeBorderColor: activeBorderColorProp,
180
176
  multiline = false,
181
177
  numberOfLines = 4,
182
178
  style,
@@ -186,7 +182,8 @@ class TextField extends React.Component {
186
182
  roundness,
187
183
  disabledOpacity
188
184
  },
189
- render = props => /*#__PURE__*/React.createElement(NativeTextInput, props),
185
+ render = props => /*#__PURE__*/React.createElement(NativeTextInput, { ...props
186
+ }),
190
187
  ...rest
191
188
  } = this.props;
192
189
  const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
@@ -204,7 +201,7 @@ class TextField extends React.Component {
204
201
  underlineColor = "transparent";
205
202
  backgroundColor = colors.divider;
206
203
  } else {
207
- activeColor = error ? colors.error : colors.primary;
204
+ activeColor = error ? colors.error : activeBorderColorProp;
208
205
  placeholderColor = borderColor = colors.light;
209
206
  underlineColor = underlineColorProp;
210
207
  backgroundColor = colors.background;
@@ -338,9 +335,9 @@ class TextField extends React.Component {
338
335
  } = StyleSheet.flatten(style || {});
339
336
  return /*#__PURE__*/React.createElement(View, {
340
337
  style: [styles.container, styleProp]
341
- }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
338
+ }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, { ...leftIconProps,
342
339
  style: leftIconStyle
343
- })) : null, /*#__PURE__*/React.createElement(View, {
340
+ }) : null, /*#__PURE__*/React.createElement(View, {
344
341
  style: applyStyles([containerStyle], {
345
342
  height: style === null || style === void 0 ? void 0 : style.height,
346
343
  backgroundColor: bgColor,
@@ -407,9 +404,9 @@ class TextField extends React.Component {
407
404
  style: {
408
405
  justifyContent: type === "solid" ? "center" : undefined
409
406
  }
410
- }, /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
407
+ }, /*#__PURE__*/React.createElement(Icon, { ...leftIconProps,
411
408
  style: leftIconStyle
412
- }))) : null, render({
409
+ })) : null, render({
413
410
  ref: c => {
414
411
  this._root = c;
415
412
  },
@@ -446,6 +443,42 @@ class TextField extends React.Component {
446
443
 
447
444
  }
448
445
 
446
+ export default withTheme(TextField);
447
+ const styles = StyleSheet.create({
448
+ container: {
449
+ alignSelf: "stretch"
450
+ },
451
+ placeholder: {
452
+ position: "absolute",
453
+ left: 0
454
+ },
455
+ underline: {
456
+ position: "absolute",
457
+ left: 0,
458
+ right: 0,
459
+ bottom: 0,
460
+ height: 2
461
+ },
462
+ input: {
463
+ flexGrow: 1,
464
+ justifyContent: "center",
465
+ textAlignVertical: "center",
466
+ margin: 0,
467
+ textAlign: I18nManager.isRTL ? "right" : "left"
468
+ }
469
+ }); "solid" ? MINIMIZED_LABEL_FONT_SIZE + 4 : 16
470
+ }
471
+ }) : null, assistiveText ? /*#__PURE__*/React.createElement(Text, {
472
+ style: [{
473
+ color: error ? colors.error : colors.light,
474
+ marginTop: 8,
475
+ marginLeft: assistiveTextLeftMargin
476
+ }]
477
+ }, assistiveText) : null);
478
+ }
479
+
480
+ }
481
+
449
482
  export default withTheme(TextField);
450
483
  const styles = StyleSheet.create({
451
484
  container: {
@@ -1,5 +1,3 @@
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
-
3
1
  import React from "react";
4
2
  import { Pressable } from "react-native";
5
3
  export default function Touchable(_ref) {
@@ -10,6 +8,24 @@ export default function Touchable(_ref) {
10
8
  style,
11
9
  ...props
12
10
  } = _ref;
11
+ return /*#__PURE__*/React.createElement(Pressable, {
12
+ onPress: onPress,
13
+ disabled: disabled,
14
+ hitSlop: 8,
15
+ style: _ref2 => {
16
+ let {
17
+ pressed
18
+ } = _ref2;
19
+ return [{
20
+ opacity: pressed || disabled ? 0.75 : 1
21
+ }, style];
22
+ },
23
+ ...props
24
+ }, children);
25
+ }s,
26
+ style,
27
+ ...props
28
+ } = _ref;
13
29
  return /*#__PURE__*/React.createElement(Pressable, _extends({
14
30
  onPress: onPress,
15
31
  disabled: disabled,
@@ -5,4 +5,5 @@ const DEFAULT_STATUSBAR_HEIGHT_EXPO = expo !== null && expo !== void 0 && expo.C
5
5
  export const APPROX_STATUSBAR_HEIGHT = Platform.select({
6
6
  android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
7
7
  ios: Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
8
+ });PO : 0
8
9
  });
@@ -17,6 +17,7 @@ export { default as FAB } from "./components/FAB";
17
17
  export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
18
18
  export { default as IconButton } from "./components/IconButton";
19
19
  export { default as Image } from "./components/Image";
20
+ export { default as SVG } from "./components/SVG";
20
21
  export { default as NumberInput } from "./components/NumberInput";
21
22
  export { default as ScreenContainer } from "./components/ScreenContainer";
22
23
  export { default as StarRating } from "./components/StarRating";
@@ -28,7 +29,6 @@ export { default as Touchable } from "./components/Touchable";
28
29
  export { AccordionGroup, AccordionItem } from "./components/Accordion";
29
30
  export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/ActionSheet";
30
31
  export { Swiper, SwiperItem } from "./components/Swiper";
31
- export { TabView, TabViewItem } from "./components/TabView";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup } from "./components/RadioButton/index";
34
34
  /* Deprecated: Fix or Delete! */
@@ -6,8 +6,8 @@ export const SEED_DATA = {
6
6
  category: COMPONENT_TYPES.media,
7
7
  stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Position, StylesPanelSections.Effects],
8
8
  layout: {
9
- width: 250,
10
- height: 250
9
+ width: 100,
10
+ height: 100
11
11
  },
12
12
  props: {
13
13
  source: createImageProp(),
@@ -53,6 +53,7 @@ export const SEED_DATA = {
53
53
  label: "Map Type",
54
54
  description: "The type of map to show",
55
55
  group: GROUPS.basic,
56
+ editable: true,
56
57
  formType: FORM_TYPES.flatArray,
57
58
  propType: PROP_TYPES.STRING,
58
59
  required: false,