@draftbit/core 46.2.4-00bad7.0 → 46.2.4-2fc21b.3

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 (90) hide show
  1. package/lib/commonjs/components/Banner.js +24 -4
  2. package/lib/commonjs/components/CardContainer.js +15 -5
  3. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +24 -6
  4. package/lib/commonjs/components/CircularProgress.js +15 -7
  5. package/lib/commonjs/components/Config.js +1 -0
  6. package/lib/commonjs/components/DeprecatedButton.js +22 -4
  7. package/lib/commonjs/components/Image.js +16 -3
  8. package/lib/commonjs/components/NumberInput.js +13 -2
  9. package/lib/commonjs/components/Portal/PortalManager.js +19 -11
  10. package/lib/commonjs/components/ProgressBar.js +23 -7
  11. package/lib/commonjs/components/SVG.js +49 -0
  12. package/lib/commonjs/components/Slider.js +24 -5
  13. package/lib/commonjs/components/TextField.js +2 -1
  14. package/lib/commonjs/components/Touchable.js +16 -2
  15. package/lib/commonjs/constants.js +1 -1
  16. package/lib/commonjs/index.js +8 -14
  17. package/lib/commonjs/mappings/Image.js +2 -2
  18. package/lib/commonjs/mappings/NumberInput.js +146 -149
  19. package/lib/commonjs/mappings/SVG.js +23 -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/NumberInput.js +146 -149
  39. package/lib/module/mappings/SVG.js +14 -0
  40. package/lib/module/mappings/TextArea.js +188 -193
  41. package/lib/module/mappings/TextField.js +7 -8
  42. package/lib/module/mappings/TextInput.js +178 -180
  43. package/lib/typescript/src/components/Config.d.ts +1 -0
  44. package/lib/typescript/src/components/SVG.d.ts +8 -0
  45. package/lib/typescript/src/components/TextField.d.ts +1 -0
  46. package/lib/typescript/src/index.d.ts +1 -1
  47. package/lib/typescript/src/mappings/SVG.d.ts +22 -0
  48. package/lib/typescript/src/mappings/TextArea.d.ts +42 -42
  49. package/lib/typescript/src/mappings/TextField.d.ts +120 -110
  50. package/package.json +4 -5
  51. package/src/components/Config.js +1 -0
  52. package/src/components/Config.ts +1 -0
  53. package/src/components/SVG.js +14 -0
  54. package/src/components/SVG.tsx +35 -0
  55. package/src/components/TextField.js +2 -2
  56. package/src/components/TextField.tsx +3 -1
  57. package/src/index.js +1 -1
  58. package/src/index.tsx +1 -1
  59. package/src/mappings/Image.js +2 -2
  60. package/src/mappings/Image.ts +2 -2
  61. package/src/mappings/NumberInput.js +160 -163
  62. package/src/mappings/NumberInput.ts +165 -168
  63. package/src/mappings/SVG.js +14 -0
  64. package/src/mappings/SVG.ts +15 -0
  65. package/src/mappings/TextArea.js +213 -220
  66. package/src/mappings/TextArea.ts +219 -227
  67. package/src/mappings/TextField.js +6 -9
  68. package/src/mappings/TextField.ts +7 -11
  69. package/src/mappings/TextInput.js +205 -208
  70. package/src/mappings/TextInput.ts +212 -215
  71. package/lib/commonjs/components/TabView/TabView.js +0 -102
  72. package/lib/commonjs/components/TabView/TabViewItem.js +0 -26
  73. package/lib/commonjs/components/TabView/index.js +0 -23
  74. package/lib/commonjs/mappings/TabView.js +0 -79
  75. package/lib/module/components/TabView/TabView.js +0 -87
  76. package/lib/module/components/TabView/TabViewItem.js +0 -18
  77. package/lib/module/components/TabView/index.js +0 -2
  78. package/lib/module/mappings/TabView.js +0 -70
  79. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  80. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  81. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  82. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  83. package/src/components/TabView/TabView.js +0 -34
  84. package/src/components/TabView/TabView.tsx +0 -97
  85. package/src/components/TabView/TabViewItem.js +0 -5
  86. package/src/components/TabView/TabViewItem.tsx +0 -21
  87. package/src/components/TabView/index.js +0 -2
  88. package/src/components/TabView/index.ts +0 -2
  89. package/src/mappings/TabView.js +0 -73
  90. package/src/mappings/TabView.ts +0 -80
@@ -7,185 +7,6 @@ exports.SEED_DATA_PROPS = exports.SEED_DATA = void 0;
7
7
 
8
8
  var _types = require("@draftbit/types");
9
9
 
10
- const TEXT_INPUT_PROPS = {
11
- allowFontScaling: {
12
- group: _types.GROUPS.advanced,
13
- label: "Allow Font Scaling",
14
- description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
15
- editable: true,
16
- required: false,
17
- defaultValue: null,
18
- formType: _types.FORM_TYPES.boolean,
19
- propType: _types.PROP_TYPES.BOOLEAN
20
- },
21
- autoCapitalize: {
22
- group: _types.GROUPS.advanced,
23
- label: "Auto Capitalize",
24
- description: "Can automatically capitalize sentences, words, and characters (Default: none).",
25
- editable: true,
26
- required: false,
27
- defaultValue: null,
28
- options: ["none", "sentences", "words", "characters"],
29
- formType: _types.FORM_TYPES.flatArray,
30
- propType: _types.PROP_TYPES.STRING
31
- },
32
- autoCorrect: {
33
- group: _types.GROUPS.advanced,
34
- label: "Auto Correct",
35
- description: "Enables auto correction",
36
- editable: true,
37
- required: false,
38
- defaultValue: null,
39
- formType: _types.FORM_TYPES.boolean,
40
- propType: _types.PROP_TYPES.BOOLEAN
41
- },
42
- autoFocus: {
43
- group: _types.GROUPS.basic,
44
- label: "Auto Focus",
45
- description: "Focuses the input on load in and brings up the keyboard",
46
- editable: true,
47
- required: false,
48
- defaultValue: null,
49
- formType: _types.FORM_TYPES.boolean,
50
- propType: _types.PROP_TYPES.BOOLEAN
51
- },
52
- caretHidden: {
53
- group: _types.GROUPS.advanced,
54
- label: "Hide Caret",
55
- description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
56
- editable: true,
57
- required: false,
58
- defaultValue: null,
59
- formType: _types.FORM_TYPES.boolean,
60
- propType: _types.PROP_TYPES.BOOLEAN
61
- },
62
- contextMenuHidden: {
63
- group: _types.GROUPS.advanced,
64
- label: "Hide Context Menu",
65
- description: "Hides the system context menu (Default: false)",
66
- editable: true,
67
- required: false,
68
- defaultValue: null,
69
- formType: _types.FORM_TYPES.boolean,
70
- propType: _types.PROP_TYPES.BOOLEAN
71
- },
72
- editable: {
73
- group: _types.GROUPS.advanced,
74
- label: "Editable",
75
- description: "If false, the text is not editable",
76
- editable: true,
77
- required: false,
78
- defaultValue: true,
79
- formType: _types.FORM_TYPES.boolean,
80
- propType: _types.PROP_TYPES.BOOLEAN
81
- },
82
- keyboardAppearance: {
83
- group: _types.GROUPS.advanced,
84
- label: "Keyboard Appearance",
85
- description: "Determines the color of the keyboard.(iOS Only)",
86
- editable: true,
87
- required: false,
88
- defaultValue: null,
89
- options: ["default", "light", "dark"],
90
- formType: _types.FORM_TYPES.flatArray,
91
- propType: _types.PROP_TYPES.STRING
92
- },
93
- keyboardType: {
94
- group: _types.GROUPS.advanced,
95
- label: "Keyboard Type",
96
- description: "Determines what keyboard is given to the user.",
97
- editable: true,
98
- required: false,
99
- defaultValue: null,
100
- options: ["default", "email-address", "numeric", "phone-pad", "ascii-capable", "numbers-and-punctuation", "url", "number-pad", "name-phone-pad", "decimal-pad", "twitter", "web-search", "visible-password"],
101
- formType: _types.FORM_TYPES.flatArray,
102
- propType: _types.PROP_TYPES.STRING
103
- },
104
- maxLength: {
105
- group: _types.GROUPS.basic,
106
- label: "Max Length",
107
- description: "Limits the input to a set number of characters.",
108
- editable: true,
109
- required: false,
110
- defaultValue: null,
111
- min: 0,
112
- step: 1,
113
- precision: 0,
114
- formType: _types.FORM_TYPES.number,
115
- propType: _types.PROP_TYPES.NUMBER
116
- },
117
- placeholder: {
118
- group: _types.GROUPS.data,
119
- label: "Placeholder Text",
120
- description: "The text that is shown on load when no value is available.",
121
- editable: true,
122
- required: false,
123
- defaultValue: "Enter a value...",
124
- formType: _types.FORM_TYPES.string,
125
- propType: _types.PROP_TYPES.STRING
126
- },
127
- placeholderTextColor: {
128
- group: _types.GROUPS.basic,
129
- label: "Placeholder Text Color",
130
- description: "The color of the placeholder text.",
131
- editable: true,
132
- required: false,
133
- defaultValue: null,
134
- formType: _types.FORM_TYPES.color,
135
- propType: _types.PROP_TYPES.STRING
136
- },
137
- returnKeyLabel: {
138
- group: _types.GROUPS.advanced,
139
- label: "Return Key Label",
140
- description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
141
- editable: true,
142
- required: false,
143
- defaultValue: null,
144
- formType: _types.FORM_TYPES.string,
145
- propType: _types.PROP_TYPES.STRING
146
- },
147
- returnKeyType: {
148
- group: _types.GROUPS.advanced,
149
- label: "Return Key Type",
150
- description: "Determines how the return key should look like",
151
- editable: true,
152
- required: false,
153
- defaultValue: null,
154
- options: ["done", "go", "next", "search", "send", "none", "previous", "default", "emergency-call", "google", "join", "route", "yahoo"],
155
- formType: _types.FORM_TYPES.flatArray,
156
- propType: _types.PROP_TYPES.STRING
157
- },
158
- secureTextEntry: {
159
- group: _types.GROUPS.basic,
160
- label: "Password Input?",
161
- description: "Hides the characters with a *, useful for passwords and other sensitive information.",
162
- editable: true,
163
- required: false,
164
- defaultValue: null,
165
- formType: _types.FORM_TYPES.boolean,
166
- propType: _types.PROP_TYPES.BOOLEAN
167
- },
168
- selectionColor: {
169
- group: _types.GROUPS.advanced,
170
- label: "Selection Color",
171
- description: "Color of the highlighted portion when selecting.",
172
- editable: true,
173
- required: false,
174
- defaultValue: null,
175
- formType: _types.FORM_TYPES.color,
176
- propType: _types.PROP_TYPES.STRING
177
- },
178
- selectTextOnFocus: {
179
- group: _types.GROUPS.advanced,
180
- label: "Select Text on Focus",
181
- description: "If true, all the text will automatically be selected on focus",
182
- editable: true,
183
- required: false,
184
- defaultValue: null,
185
- formType: _types.FORM_TYPES.boolean,
186
- propType: _types.PROP_TYPES.BOOLEAN
187
- }
188
- };
189
10
  const SEED_DATA_PROPS = {
190
11
  style: {
191
12
  group: _types.GROUPS.basic,
@@ -265,7 +86,184 @@ const SEED_DATA = [{
265
86
  borderRadius: 8
266
87
  },
267
88
  triggers: [_types.Triggers.OnChangeText],
268
- props: { ...TEXT_INPUT_PROPS,
89
+ props: {
90
+ allowFontScaling: {
91
+ group: _types.GROUPS.advanced,
92
+ label: "Allow Font Scaling",
93
+ description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
94
+ editable: true,
95
+ required: false,
96
+ defaultValue: null,
97
+ formType: _types.FORM_TYPES.boolean,
98
+ propType: _types.PROP_TYPES.BOOLEAN
99
+ },
100
+ autoCapitalize: {
101
+ group: _types.GROUPS.advanced,
102
+ label: "Auto Capitalize",
103
+ description: "Can automatically capitalize sentences, words, and characters (Default: none).",
104
+ editable: true,
105
+ required: false,
106
+ defaultValue: null,
107
+ options: ["none", "sentences", "words", "characters"],
108
+ formType: _types.FORM_TYPES.flatArray,
109
+ propType: _types.PROP_TYPES.STRING
110
+ },
111
+ autoCorrect: {
112
+ group: _types.GROUPS.advanced,
113
+ label: "Auto Correct",
114
+ description: "Enables auto correction",
115
+ editable: true,
116
+ required: false,
117
+ defaultValue: null,
118
+ formType: _types.FORM_TYPES.boolean,
119
+ propType: _types.PROP_TYPES.BOOLEAN
120
+ },
121
+ autoFocus: {
122
+ group: _types.GROUPS.basic,
123
+ label: "Auto Focus",
124
+ description: "Focuses the input on load in and brings up the keyboard",
125
+ editable: true,
126
+ required: false,
127
+ defaultValue: null,
128
+ formType: _types.FORM_TYPES.boolean,
129
+ propType: _types.PROP_TYPES.BOOLEAN
130
+ },
131
+ caretHidden: {
132
+ group: _types.GROUPS.advanced,
133
+ label: "Hide Caret",
134
+ description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
135
+ editable: true,
136
+ required: false,
137
+ defaultValue: null,
138
+ formType: _types.FORM_TYPES.boolean,
139
+ propType: _types.PROP_TYPES.BOOLEAN
140
+ },
141
+ contextMenuHidden: {
142
+ group: _types.GROUPS.advanced,
143
+ label: "Hide Context Menu",
144
+ description: "Hides the system context menu (Default: false)",
145
+ editable: true,
146
+ required: false,
147
+ defaultValue: null,
148
+ formType: _types.FORM_TYPES.boolean,
149
+ propType: _types.PROP_TYPES.BOOLEAN
150
+ },
151
+ editable: {
152
+ group: _types.GROUPS.advanced,
153
+ label: "Editable",
154
+ description: "If false, the text is not editable",
155
+ editable: true,
156
+ required: false,
157
+ defaultValue: true,
158
+ formType: _types.FORM_TYPES.boolean,
159
+ propType: _types.PROP_TYPES.BOOLEAN
160
+ },
161
+ keyboardAppearance: {
162
+ group: _types.GROUPS.advanced,
163
+ label: "Keyboard Appearance",
164
+ description: "Determines the color of the keyboard.(iOS Only)",
165
+ editable: true,
166
+ required: false,
167
+ defaultValue: null,
168
+ options: ["default", "light", "dark"],
169
+ formType: _types.FORM_TYPES.flatArray,
170
+ propType: _types.PROP_TYPES.STRING
171
+ },
172
+ keyboardType: {
173
+ group: _types.GROUPS.advanced,
174
+ label: "Keyboard Type",
175
+ description: "Determines what keyboard is given to the user.",
176
+ editable: true,
177
+ required: false,
178
+ defaultValue: null,
179
+ options: ["default", "email-address", "numeric", "phone-pad", "ascii-capable", "numbers-and-punctuation", "url", "number-pad", "name-phone-pad", "decimal-pad", "twitter", "web-search", "visible-password"],
180
+ formType: _types.FORM_TYPES.flatArray,
181
+ propType: _types.PROP_TYPES.STRING
182
+ },
183
+ maxLength: {
184
+ group: _types.GROUPS.basic,
185
+ label: "Max Length",
186
+ description: "Limits the input to a set number of characters.",
187
+ editable: true,
188
+ required: false,
189
+ defaultValue: null,
190
+ min: 0,
191
+ step: 1,
192
+ precision: 0,
193
+ formType: _types.FORM_TYPES.number,
194
+ propType: _types.PROP_TYPES.NUMBER
195
+ },
196
+ placeholder: {
197
+ group: _types.GROUPS.data,
198
+ label: "Placeholder Text",
199
+ description: "The text that is shown on load when no value is available.",
200
+ editable: true,
201
+ required: false,
202
+ defaultValue: "Enter a value...",
203
+ formType: _types.FORM_TYPES.string,
204
+ propType: _types.PROP_TYPES.STRING
205
+ },
206
+ placeholderTextColor: {
207
+ group: _types.GROUPS.basic,
208
+ label: "Placeholder Text Color",
209
+ description: "The color of the placeholder text.",
210
+ editable: true,
211
+ required: false,
212
+ defaultValue: null,
213
+ formType: _types.FORM_TYPES.color,
214
+ propType: _types.PROP_TYPES.STRING
215
+ },
216
+ returnKeyLabel: {
217
+ group: _types.GROUPS.advanced,
218
+ label: "Return Key Label",
219
+ description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
220
+ editable: true,
221
+ required: false,
222
+ defaultValue: null,
223
+ formType: _types.FORM_TYPES.string,
224
+ propType: _types.PROP_TYPES.STRING
225
+ },
226
+ returnKeyType: {
227
+ group: _types.GROUPS.advanced,
228
+ label: "Return Key Type",
229
+ description: "Determines how the return key should look like",
230
+ editable: true,
231
+ required: false,
232
+ defaultValue: null,
233
+ options: ["done", "go", "next", "search", "send", "none", "previous", "default", "emergency-call", "google", "join", "route", "yahoo"],
234
+ formType: _types.FORM_TYPES.flatArray,
235
+ propType: _types.PROP_TYPES.STRING
236
+ },
237
+ secureTextEntry: {
238
+ group: _types.GROUPS.basic,
239
+ label: "Password Input?",
240
+ description: "Hides the characters with a *, useful for passwords and other sensitive information.",
241
+ editable: true,
242
+ required: false,
243
+ defaultValue: null,
244
+ formType: _types.FORM_TYPES.boolean,
245
+ propType: _types.PROP_TYPES.BOOLEAN
246
+ },
247
+ selectionColor: {
248
+ group: _types.GROUPS.advanced,
249
+ label: "Selection Color",
250
+ description: "Color of the highlighted portion when selecting.",
251
+ editable: true,
252
+ required: false,
253
+ defaultValue: null,
254
+ formType: _types.FORM_TYPES.color,
255
+ propType: _types.PROP_TYPES.STRING
256
+ },
257
+ selectTextOnFocus: {
258
+ group: _types.GROUPS.advanced,
259
+ label: "Select Text on Focus",
260
+ description: "If true, all the text will automatically be selected on focus",
261
+ editable: true,
262
+ required: false,
263
+ defaultValue: null,
264
+ formType: _types.FORM_TYPES.boolean,
265
+ propType: _types.PROP_TYPES.BOOLEAN
266
+ },
269
267
  ...SEED_DATA_PROPS,
270
268
  multiline: {
271
269
  group: _types.GROUPS.basic,
@@ -1,3 +1,5 @@
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
+
1
3
  import * as React from "react";
2
4
  import { Button, Text, View, StyleSheet, Animated } from "react-native";
3
5
  import Surface from "./Surface";
@@ -72,9 +74,9 @@ const Banner = _ref => {
72
74
 
73
75
  const height = Animated.multiply(position, layout.height);
74
76
  const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
75
- return /*#__PURE__*/React.createElement(Surface, { ...rest,
77
+ return /*#__PURE__*/React.createElement(Surface, _extends({}, rest, {
76
78
  style: [styles.container, shadow(ELEVATION), style]
77
- }, /*#__PURE__*/React.createElement(View, {
79
+ }), /*#__PURE__*/React.createElement(View, {
78
80
  style: [styles.wrapper, contentStyle]
79
81
  }, /*#__PURE__*/React.createElement(Animated.View, {
80
82
  style: {
@@ -153,26 +155,4 @@ const styles = StyleSheet.create({
153
155
  margin: 8
154
156
  }
155
157
  });
156
- export default withTheme(Banner);00%"
157
- },
158
- content: {
159
- flexDirection: "row",
160
- justifyContent: "flex-start",
161
- marginHorizontal: 8,
162
- marginTop: 16,
163
- marginBottom: 0
164
- },
165
- icon: {
166
- margin: 8
167
- },
168
- message: {
169
- flex: 1,
170
- margin: 8
171
- },
172
- actions: {
173
- flexDirection: "row",
174
- justifyContent: "flex-end",
175
- margin: 8
176
- }
177
- });
178
158
  export default withTheme(Banner);
@@ -1,3 +1,5 @@
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
+
1
3
  import React from "react";
2
4
  import { View, Text } from "react-native";
3
5
  import color from "color";
@@ -49,12 +51,11 @@ const CardContainer = _ref => {
49
51
  break;
50
52
  }
51
53
 
52
- return /*#__PURE__*/React.createElement(Card, {
54
+ return /*#__PURE__*/React.createElement(Card, _extends({
53
55
  style: style,
54
56
  onPress: onPress,
55
- numColumns: numColumns,
56
- ...rest
57
- }, /*#__PURE__*/React.createElement(Elevation, {
57
+ numColumns: numColumns
58
+ }, rest), /*#__PURE__*/React.createElement(Elevation, {
58
59
  style: {
59
60
  elevation,
60
61
  borderRadius: roundness
@@ -124,15 +125,4 @@ const CardContainer = _ref => {
124
125
  })) : null)));
125
126
  };
126
127
 
127
- export default withTheme(CardContainer);ONTAINER_PADDING,
128
- borderRadius: ICON_CONTAINER_SIZE,
129
- backgroundColor: color(colors.strong).alpha(Config.cardIconBackgroundOpacity).rgb().string()
130
- }
131
- }, /*#__PURE__*/React.createElement(Icon, {
132
- name: icon,
133
- size: Config.cardIconSize,
134
- color: colors.surface
135
- })) : null)));
136
- };
137
-
138
128
  export default withTheme(CardContainer);
@@ -54,6 +54,7 @@ export default {
54
54
  width: size.width,
55
55
  height: size.height
56
56
  }, "image-placeholder_1"),
57
+ placeholderSvgURL: "https://static.draftbit.com/images/placeholder-svg.svg",
57
58
  squareImageUrl: buildImageUrl({
58
59
  width: 100,
59
60
  height: 100
@@ -1,27 +1,9 @@
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
+
1
3
  import * as React from "react";
2
4
  import { StyleSheet, View } from "react-native";
3
5
  import { withTheme } from "../theming";
4
6
 
5
- const Divider = _ref => {
6
- let {
7
- style,
8
- color,
9
- theme: {
10
- colors
11
- },
12
- ...rest
13
- } = _ref;
14
- return /*#__PURE__*/React.createElement(View, {
15
- style: [{
16
- backgroundColor: color || colors.divider,
17
- height: StyleSheet.hairlineWidth
18
- }, style],
19
- ...rest
20
- });
21
- };
22
-
23
- export default withTheme(Divider);ng";
24
-
25
7
  const Divider = _ref => {
26
8
  let {
27
9
  style,
@@ -1,3 +1,5 @@
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
+
1
3
  import * as React from "react";
2
4
  import { View, StyleSheet, Pressable, ActivityIndicator, Platform } from "react-native";
3
5
  import { withTheme } from "../theming";
@@ -25,7 +27,7 @@ const FAB = _ref => {
25
27
  borderRadius: size / 2,
26
28
  overflow: "hidden"
27
29
  }, style]
28
- }, /*#__PURE__*/React.createElement(Pressable, {
30
+ }, /*#__PURE__*/React.createElement(Pressable, _extends({
29
31
  onPress: onPress,
30
32
  disabled: loading || disabled,
31
33
  android_ripple: {
@@ -43,9 +45,8 @@ const FAB = _ref => {
43
45
  borderRadius: size / 2,
44
46
  backgroundColor
45
47
  }];
46
- },
47
- ...props
48
- }, /*#__PURE__*/React.createElement(View, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
48
+ }
49
+ }, props), /*#__PURE__*/React.createElement(View, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
49
50
  style: size > 50 ? {
50
51
  marginTop: 2,
51
52
  marginLeft: 2
@@ -59,25 +60,6 @@ const FAB = _ref => {
59
60
  }))));
60
61
  };
61
62
 
62
- const styles = StyleSheet.create({
63
- button: {
64
- backgroundColor: "#5a45ff",
65
- justifyContent: "center",
66
- alignItems: "center",
67
- ...Platform.select({
68
- web: {
69
- cursor: "pointer",
70
- userSelect: "none"
71
- }
72
- })
73
- }
74
- });
75
- export default withTheme(FAB); name: iconName,
76
- size: size,
77
- color: color
78
- }))));
79
- };
80
-
81
63
  const styles = StyleSheet.create({
82
64
  button: {
83
65
  backgroundColor: "#5a45ff",
@@ -1,3 +1,5 @@
1
+ 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; }
2
+
1
3
  import * as React from "react";
2
4
  import { View, StyleSheet } from "react-native";
3
5
  import PortalManager from "./PortalManager";
@@ -31,11 +33,11 @@ export default class PortalHost extends React.Component {
31
33
  constructor() {
32
34
  super(...arguments);
33
35
 
34
- this.setManager = manager => {
36
+ _defineProperty(this, "setManager", manager => {
35
37
  this.manager = manager;
36
- };
38
+ });
37
39
 
38
- this.mount = children => {
40
+ _defineProperty(this, "mount", children => {
39
41
  const key = this.nextKey++;
40
42
 
41
43
  if (this.manager) {
@@ -49,9 +51,9 @@ export default class PortalHost extends React.Component {
49
51
  }
50
52
 
51
53
  return key;
52
- };
54
+ });
53
55
 
54
- this.update = (key, children) => {
56
+ _defineProperty(this, "update", (key, children) => {
55
57
  if (this.manager) {
56
58
  this.manager.update(key, children);
57
59
  } else {
@@ -69,9 +71,9 @@ export default class PortalHost extends React.Component {
69
71
  this.queue.push(op);
70
72
  }
71
73
  }
72
- };
74
+ });
73
75
 
74
- this.unmount = key => {
76
+ _defineProperty(this, "unmount", key => {
75
77
  if (this.manager) {
76
78
  this.manager.unmount(key);
77
79
  } else {
@@ -80,10 +82,13 @@ export default class PortalHost extends React.Component {
80
82
  key
81
83
  });
82
84
  }
83
- };
85
+ });
86
+
87
+ _defineProperty(this, "nextKey", 0);
88
+
89
+ _defineProperty(this, "queue", []);
84
90
 
85
- this.nextKey = 0;
86
- this.queue = [];
91
+ _defineProperty(this, "manager", void 0);
87
92
  }
88
93
 
89
94
  componentDidMount() {
@@ -127,22 +132,6 @@ export default class PortalHost extends React.Component {
127
132
  }));
128
133
  }
129
134
 
130
- }
131
- PortalHost.displayName = "Portal.Host";
132
- const styles = StyleSheet.create({
133
- container: {
134
- flex: 1
135
- }
136
- }); }
137
- }, /*#__PURE__*/React.createElement(View, {
138
- style: styles.container,
139
- collapsable: false,
140
- pointerEvents: "box-none"
141
- }, this.props.children), /*#__PURE__*/React.createElement(PortalManager, {
142
- ref: this.setManager
143
- }));
144
- }
145
-
146
135
  }
147
136
 
148
137
  _defineProperty(PortalHost, "displayName", "Portal.Host");
@@ -1,3 +1,5 @@
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
+
1
3
  import * as React from "react";
2
4
  import Config from "../Config";
3
5
  import IconButton from "../IconButton";
@@ -32,21 +34,6 @@ const RadioButton = _ref => {
32
34
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
33
35
  };
34
36
 
35
- return /*#__PURE__*/React.createElement(IconButton, {
36
- Icon: Icon,
37
- icon: isSelected ? selectedIcon : unselectedIcon,
38
- color: isSelected ? color : unselectedColor,
39
- disabled: disabled,
40
- onPress: handlePress,
41
- size: size,
42
- style: style,
43
- ...rest
44
- });
45
- };
46
-
47
- export default RadioButton; onValueChange(realValue);
48
- };
49
-
50
37
  return /*#__PURE__*/React.createElement(IconButton, _extends({
51
38
  Icon: Icon,
52
39
  icon: isSelected ? selectedIcon : unselectedIcon,
@@ -1,3 +1,5 @@
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
+
1
3
  import * as React from "react";
2
4
  import { View } from "react-native";
3
5
  import { getValueForRadioButton } from "../../utilities";
@@ -46,23 +48,7 @@ const RadioButtonGroup = _ref => {
46
48
  });
47
49
  }
48
50
 
49
- return /*#__PURE__*/React.createElement(View, {
50
- style: [{
51
- minHeight: 40
52
- }, style],
53
- ...rest
54
- }, /*#__PURE__*/React.createElement(Provider, {
55
- value: {
56
- value: internalValue,
57
- onValueChange: handleValueChange,
58
- direction
59
- }
60
- }, /*#__PURE__*/React.createElement(View, {
61
- style: _containerStyle
62
- }, children)));
63
- };
64
-
65
- export default RadioButtonGroup;xtends({
51
+ return /*#__PURE__*/React.createElement(View, _extends({
66
52
  style: [{
67
53
  minHeight: 40
68
54
  }, style]