@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
@@ -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,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 { Button, Text, View, StyleSheet, Animated } from "react-native";
5
3
  import Surface from "./Surface";
@@ -74,9 +72,9 @@ const Banner = _ref => {
74
72
 
75
73
  const height = Animated.multiply(position, layout.height);
76
74
  const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
77
- return /*#__PURE__*/React.createElement(Surface, _extends({}, rest, {
75
+ return /*#__PURE__*/React.createElement(Surface, { ...rest,
78
76
  style: [styles.container, shadow(ELEVATION), style]
79
- }), /*#__PURE__*/React.createElement(View, {
77
+ }, /*#__PURE__*/React.createElement(View, {
80
78
  style: [styles.wrapper, contentStyle]
81
79
  }, /*#__PURE__*/React.createElement(Animated.View, {
82
80
  style: {
@@ -155,4 +153,26 @@ const styles = StyleSheet.create({
155
153
  margin: 8
156
154
  }
157
155
  });
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
+ });
158
178
  export default withTheme(Banner);
@@ -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 { View, Text } from "react-native";
5
3
  import Image from "./Image";
@@ -47,11 +45,12 @@ const CardBlock = _ref => {
47
45
  const rightDescriptionStyles = [typography.subtitle2, {
48
46
  color: colors.light
49
47
  }];
50
- return /*#__PURE__*/React.createElement(Card, _extends({
48
+ return /*#__PURE__*/React.createElement(Card, {
51
49
  style: style,
52
50
  onPress: onPress,
53
- numColumns: numColumns
54
- }, rest), /*#__PURE__*/React.createElement(View, {
51
+ numColumns: numColumns,
52
+ ...rest
53
+ }, /*#__PURE__*/React.createElement(View, {
55
54
  style: {
56
55
  backgroundColor: colors.background
57
56
  }
@@ -101,4 +100,15 @@ const CardBlock = _ref => {
101
100
  }, rightDescription) : null) : null));
102
101
  };
103
102
 
103
+ export default withTheme(CardBlock);PURE__*/React.createElement(Text, {
104
+ numberOfLines: 1,
105
+ style: [typography.body2, {
106
+ color: colors.medium
107
+ }]
108
+ }, leftDescription), rightDescription ? /*#__PURE__*/React.createElement(Text, {
109
+ numberOfLines: 1,
110
+ style: rightDescriptionStyles
111
+ }, rightDescription) : null) : null));
112
+ };
113
+
104
114
  export default withTheme(CardBlock);
@@ -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 } from "react-native";
5
3
  import { checkboxGroupContext, Direction } from "./context";
@@ -27,7 +25,23 @@ const CheckboxGroup = _ref => {
27
25
  });
28
26
  }
29
27
 
30
- return /*#__PURE__*/React.createElement(View, _extends({
28
+ return /*#__PURE__*/React.createElement(View, {
29
+ style: [{
30
+ minHeight: 40
31
+ }, style],
32
+ ...rest
33
+ }, /*#__PURE__*/React.createElement(Provider, {
34
+ value: {
35
+ values,
36
+ onValueChange,
37
+ direction
38
+ }
39
+ }, /*#__PURE__*/React.createElement(View, {
40
+ style: _containerStyle
41
+ }, children)));
42
+ };
43
+
44
+ export default CheckboxGroup;PURE__*/React.createElement(View, _extends({
31
45
  style: [{
32
46
  minHeight: 40
33
47
  }, style]
@@ -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-image.svg",
57
58
  squareImageUrl: buildImageUrl({
58
59
  width: 100,
59
60
  height: 100
@@ -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 { withTheme } from "../theming";
5
3
  import Touchable from "./Touchable";
@@ -18,6 +16,25 @@ const getWidth = numColumns => {
18
16
  };
19
17
 
20
18
  const Card = _ref => {
19
+ let {
20
+ numColumns = 3,
21
+ children,
22
+ onPress,
23
+ style,
24
+ ...rest
25
+ } = _ref;
26
+ const width = getWidth(numColumns);
27
+ return /*#__PURE__*/React.createElement(Touchable, {
28
+ disabled: !onPress,
29
+ onPress: onPress,
30
+ style: [style, {
31
+ width
32
+ }],
33
+ ...rest
34
+ }, children);
35
+ };
36
+
37
+ export default withTheme(Card);ef => {
21
38
  let {
22
39
  numColumns = 3,
23
40
  children,
@@ -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, ActivityIndicator, Pressable, Platform } from "react-native";
5
3
  import { withTheme } from "../theming";
@@ -18,7 +16,7 @@ const IconButton = _ref => {
18
16
  ...props
19
17
  } = _ref;
20
18
  const iconColor = customColor || theme.colors.primary;
21
- return /*#__PURE__*/React.createElement(Pressable, _extends({
19
+ return /*#__PURE__*/React.createElement(Pressable, {
22
20
  onPress: onPress,
23
21
  disabled: disabled || loading,
24
22
  style: _ref2 => {
@@ -32,8 +30,9 @@ const IconButton = _ref => {
32
30
  alignItems: "center",
33
31
  justifyContent: "center"
34
32
  }, style];
35
- }
36
- }, props), /*#__PURE__*/React.createElement(View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
33
+ },
34
+ ...props
35
+ }, /*#__PURE__*/React.createElement(View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
37
36
  name: icon,
38
37
  size: size - 2,
39
38
  color: iconColor
@@ -43,6 +42,24 @@ const IconButton = _ref => {
43
42
  }) : null));
44
43
  };
45
44
 
45
+ const styles = StyleSheet.create({
46
+ container: {
47
+ alignItems: "center",
48
+ justifyContent: "center",
49
+ ...Platform.select({
50
+ web: {
51
+ cursor: "pointer",
52
+ userSelect: "none"
53
+ }
54
+ })
55
+ }
56
+ });
57
+ export default withTheme(IconButton);ement(ActivityIndicator, {
58
+ size: "small",
59
+ color: iconColor
60
+ }) : null));
61
+ };
62
+
46
63
  const styles = StyleSheet.create({
47
64
  container: {
48
65
  alignItems: "center",
@@ -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 } from "react-native";
5
3
  import omit from "lodash.omit";
@@ -10,8 +8,6 @@ import TextField from "../TextField";
10
8
  import Touchable from "../Touchable";
11
9
 
12
10
  const Picker = _ref => {
13
- var _options$find$label, _options$find;
14
-
15
11
  let {
16
12
  style,
17
13
  options,
@@ -21,6 +17,9 @@ const Picker = _ref => {
21
17
  onValueChange: onValueChangeOverride = () => {},
22
18
  ...props
23
19
  } = _ref;
20
+
21
+ var _a, _b;
22
+
24
23
  const {
25
24
  viewStyles: {
26
25
  borderRadius,
@@ -67,7 +66,7 @@ const Picker = _ref => {
67
66
  };
68
67
 
69
68
  const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
70
- const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
69
+ const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
71
70
  return /*#__PURE__*/React.createElement(Touchable, {
72
71
  disabled: disabled,
73
72
  onPress: toggleFocus,
@@ -89,6 +88,25 @@ const Picker = _ref => {
89
88
  label: o.label,
90
89
  value: o.value,
91
90
  key: o.value
91
+ }))), /*#__PURE__*/React.createElement(View, {
92
+ pointerEvents: "none"
93
+ }, /*#__PURE__*/React.createElement(TextField, { ...props,
94
+ value: selectedLabel,
95
+ placeholder: placeholder,
96
+ // @ts-ignore
97
+ ref: textField,
98
+ disabled: disabled,
99
+ // @ts-expect-error
100
+ style: stylesWithoutMargin
101
+ }))));
102
+ };
103
+
104
+ const styles = StyleSheet.create({
105
+ container: {
106
+ alignSelf: "stretch"
107
+ }
108
+ });
109
+ export default withTheme(Picker); key: o.value
92
110
  }))), /*#__PURE__*/React.createElement(View, {
93
111
  pointerEvents: "none"
94
112
  }, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {
@@ -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 } from "react-native";
5
3
  import { Picker as NativePicker } from "@react-native-picker/picker";
@@ -10,8 +8,6 @@ import TextField from "../TextField";
10
8
  import Touchable from "../Touchable";
11
9
 
12
10
  const Picker = _ref => {
13
- var _options$find$label, _options$find;
14
-
15
11
  let {
16
12
  style,
17
13
  options,
@@ -21,6 +17,9 @@ const Picker = _ref => {
21
17
  onValueChange: onValueChangeOverride = () => {},
22
18
  ...props
23
19
  } = _ref;
20
+
21
+ var _a, _b;
22
+
24
23
  const {
25
24
  viewStyles: {
26
25
  borderRadius,
@@ -67,7 +66,7 @@ const Picker = _ref => {
67
66
  };
68
67
 
69
68
  const stylesWithoutMargin = style && omit(StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
70
- const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
69
+ const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
71
70
  return /*#__PURE__*/React.createElement(Touchable, {
72
71
  disabled: disabled,
73
72
  onPress: toggleFocus,
@@ -90,6 +89,25 @@ const Picker = _ref => {
90
89
  label: o.label,
91
90
  value: o.value,
92
91
  key: o.value
92
+ }))), /*#__PURE__*/React.createElement(View, {
93
+ pointerEvents: "none"
94
+ }, /*#__PURE__*/React.createElement(TextField, { ...props,
95
+ value: selectedLabel,
96
+ placeholder: placeholder,
97
+ // @ts-ignore
98
+ ref: textField,
99
+ disabled: disabled,
100
+ // @ts-expect-error
101
+ style: stylesWithoutMargin
102
+ }))));
103
+ };
104
+
105
+ const styles = StyleSheet.create({
106
+ container: {
107
+ alignSelf: "stretch"
108
+ }
109
+ });
110
+ export default withTheme(Picker); key: o.value
93
111
  }))), /*#__PURE__*/React.createElement(View, {
94
112
  pointerEvents: "none"
95
113
  }, /*#__PURE__*/React.createElement(TextField, _extends({}, props, {