@draftbit/core 46.2.4-58c73f.0 → 46.2.4-956f64.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 (86) hide show
  1. package/lib/commonjs/components/Config.js +1 -0
  2. package/lib/commonjs/components/SVG.js +49 -0
  3. package/lib/commonjs/components/TextField.js +2 -1
  4. package/lib/commonjs/components/Youtube.js +73 -0
  5. package/lib/commonjs/constants.js +1 -1
  6. package/lib/commonjs/index.js +16 -14
  7. package/lib/commonjs/mappings/Image.js +2 -2
  8. package/lib/commonjs/mappings/MapView.js +1 -0
  9. package/lib/commonjs/mappings/NumberInput.js +146 -149
  10. package/lib/commonjs/mappings/SVG.js +23 -0
  11. package/lib/commonjs/mappings/TextArea.js +188 -193
  12. package/lib/commonjs/mappings/TextField.js +7 -8
  13. package/lib/commonjs/mappings/TextInput.js +178 -180
  14. package/lib/commonjs/mappings/Youtube.js +42 -0
  15. package/lib/module/components/CardContainerShortImage.js +19 -5
  16. package/lib/module/components/Config.js +1 -0
  17. package/lib/module/components/Layout.js +43 -21
  18. package/lib/module/components/SVG.js +32 -0
  19. package/lib/module/components/TextField.js +2 -1
  20. package/lib/module/components/Youtube.js +59 -0
  21. package/lib/module/index.js +3 -2
  22. package/lib/module/mappings/Image.js +2 -2
  23. package/lib/module/mappings/MapView.js +1 -0
  24. package/lib/module/mappings/NumberInput.js +146 -149
  25. package/lib/module/mappings/SVG.js +14 -0
  26. package/lib/module/mappings/TextArea.js +188 -193
  27. package/lib/module/mappings/TextField.js +7 -8
  28. package/lib/module/mappings/TextInput.js +178 -180
  29. package/lib/module/mappings/Youtube.js +33 -0
  30. package/lib/typescript/src/components/Config.d.ts +1 -0
  31. package/lib/typescript/src/components/SVG.d.ts +8 -0
  32. package/lib/typescript/src/components/TextField.d.ts +1 -0
  33. package/lib/typescript/src/components/Youtube.d.ts +44 -0
  34. package/lib/typescript/src/index.d.ts +2 -1
  35. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  36. package/lib/typescript/src/mappings/SVG.d.ts +22 -0
  37. package/lib/typescript/src/mappings/TextArea.d.ts +42 -42
  38. package/lib/typescript/src/mappings/TextField.d.ts +120 -110
  39. package/lib/typescript/src/mappings/Youtube.d.ts +36 -0
  40. package/package.json +7 -6
  41. package/src/components/Config.js +1 -0
  42. package/src/components/Config.ts +1 -0
  43. package/src/components/SVG.js +14 -0
  44. package/src/components/SVG.tsx +35 -0
  45. package/src/components/TextField.js +2 -2
  46. package/src/components/TextField.tsx +3 -1
  47. package/src/components/Youtube.js +38 -0
  48. package/src/components/Youtube.tsx +66 -0
  49. package/src/index.js +2 -1
  50. package/src/index.tsx +2 -1
  51. package/src/mappings/Image.js +2 -2
  52. package/src/mappings/Image.ts +2 -2
  53. package/src/mappings/MapView.js +1 -0
  54. package/src/mappings/MapView.ts +1 -0
  55. package/src/mappings/NumberInput.js +160 -163
  56. package/src/mappings/NumberInput.ts +165 -168
  57. package/src/mappings/SVG.js +14 -0
  58. package/src/mappings/SVG.ts +15 -0
  59. package/src/mappings/TextArea.js +213 -220
  60. package/src/mappings/TextArea.ts +219 -227
  61. package/src/mappings/TextField.js +6 -9
  62. package/src/mappings/TextField.ts +7 -11
  63. package/src/mappings/TextInput.js +205 -208
  64. package/src/mappings/TextInput.ts +212 -215
  65. package/src/mappings/Youtube.js +33 -0
  66. package/src/mappings/Youtube.ts +40 -0
  67. package/lib/commonjs/components/TabView/TabView.js +0 -102
  68. package/lib/commonjs/components/TabView/TabViewItem.js +0 -26
  69. package/lib/commonjs/components/TabView/index.js +0 -23
  70. package/lib/commonjs/mappings/TabView.js +0 -79
  71. package/lib/module/components/TabView/TabView.js +0 -87
  72. package/lib/module/components/TabView/TabViewItem.js +0 -18
  73. package/lib/module/components/TabView/index.js +0 -2
  74. package/lib/module/mappings/TabView.js +0 -70
  75. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  76. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  77. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  78. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  79. package/src/components/TabView/TabView.js +0 -34
  80. package/src/components/TabView/TabView.tsx +0 -97
  81. package/src/components/TabView/TabViewItem.js +0 -5
  82. package/src/components/TabView/TabViewItem.tsx +0 -21
  83. package/src/components/TabView/index.js +0 -2
  84. package/src/components/TabView/index.ts +0 -2
  85. package/src/mappings/TabView.js +0 -73
  86. package/src/mappings/TabView.ts +0 -80
@@ -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
@@ -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;
@@ -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;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.SEED_DATA = void 0;
7
+
8
+ var _types = require("@draftbit/types");
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _reactNativeYoutubeIframe = _interopRequireDefault(require("react-native-youtube-iframe"));
13
+
14
+ var _utilities = require("../utilities");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ const Youtube = _ref => {
19
+ let {
20
+ videoId,
21
+ playlist,
22
+ style,
23
+ mute,
24
+ autoplay
25
+ } = _ref;
26
+ const {
27
+ viewStyles: {
28
+ height,
29
+ width
30
+ }
31
+ } = (0, _utilities.extractStyles)(style);
32
+ return /*#__PURE__*/_react.default.createElement(_reactNativeYoutubeIframe.default, {
33
+ height: height,
34
+ width: width,
35
+ play: autoplay,
36
+ videoId: videoId,
37
+ playList: playlist,
38
+ mute: mute
39
+ });
40
+ };
41
+
42
+ var _default = Youtube;
43
+ exports.default = _default;
44
+ const SEED_DATA = {
45
+ name: "Youtube",
46
+ tag: "Youtube",
47
+ description: "Youtube Component",
48
+ category: _types.COMPONENT_TYPES.media,
49
+ layout: {
50
+ width: "100%"
51
+ },
52
+ props: {
53
+ videoId: (0, _types.createTextProp)({
54
+ label: "VideoId",
55
+ description: "Youtube Video ID"
56
+ }),
57
+ playlist: (0, _types.createTextProp)({
58
+ label: "PlayList",
59
+ description: "Playlist ID"
60
+ }),
61
+ mute: (0, _types.createBoolProp)({
62
+ label: "Mute",
63
+ description: "Whether to mute video",
64
+ defaultValue: false
65
+ }),
66
+ autoplay: (0, _types.createBoolProp)({
67
+ label: "Autoplay",
68
+ description: "Whether to Autoplay video",
69
+ defaultValue: false
70
+ })
71
+ }
72
+ };
73
+ exports.SEED_DATA = SEED_DATA;
@@ -16,4 +16,4 @@ const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
16
16
  ios: _reactNative.Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
17
17
  });
18
18
 
19
- exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;AR_HEIGHT;
19
+ exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
@@ -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 () {
@@ -399,6 +393,12 @@ Object.defineProperty(exports, "Touchable", {
399
393
  return _Touchable.default;
400
394
  }
401
395
  });
396
+ Object.defineProperty(exports, "Youtube", {
397
+ enumerable: true,
398
+ get: function () {
399
+ return _Youtube.default;
400
+ }
401
+ });
402
402
  Object.defineProperty(exports, "injectIcon", {
403
403
  enumerable: true,
404
404
  get: function () {
@@ -454,6 +454,8 @@ var _IconButton = _interopRequireDefault(require("./components/IconButton"));
454
454
 
455
455
  var _Image = _interopRequireDefault(require("./components/Image"));
456
456
 
457
+ var _SVG = _interopRequireDefault(require("./components/SVG"));
458
+
457
459
  var _NumberInput = _interopRequireDefault(require("./components/NumberInput"));
458
460
 
459
461
  var _ScreenContainer = _interopRequireDefault(require("./components/ScreenContainer"));
@@ -476,8 +478,6 @@ var _ActionSheet = require("./components/ActionSheet");
476
478
 
477
479
  var _Swiper = require("./components/Swiper");
478
480
 
479
- var _TabView = require("./components/TabView");
480
-
481
481
  var _Layout = require("./components/Layout");
482
482
 
483
483
  var _index = require("./components/RadioButton/index");
@@ -518,6 +518,8 @@ var _Stepper = _interopRequireDefault(require("./components/Stepper"));
518
518
 
519
519
  var _useAuthState = require("./components/useAuthState");
520
520
 
521
+ var _Youtube = _interopRequireDefault(require("./components/Youtube"));
522
+
521
523
  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); }
522
524
 
523
525
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -14,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,
@@ -7,154 +7,6 @@ exports.SEED_DATA_PROPS = exports.SEED_DATA = void 0;
7
7
 
8
8
  var _types = require("@draftbit/types");
9
9
 
10
- const NUMBER_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
- autoFocus: {
22
- group: _types.GROUPS.basic,
23
- label: "Auto Focus",
24
- description: "Focuses the input on load in and brings up the keyboard",
25
- editable: true,
26
- required: false,
27
- defaultValue: null,
28
- formType: _types.FORM_TYPES.boolean,
29
- propType: _types.PROP_TYPES.BOOLEAN
30
- },
31
- caretHidden: {
32
- group: _types.GROUPS.advanced,
33
- label: "Hide Caret",
34
- description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
35
- editable: true,
36
- required: false,
37
- defaultValue: null,
38
- formType: _types.FORM_TYPES.boolean,
39
- propType: _types.PROP_TYPES.BOOLEAN
40
- },
41
- contextMenuHidden: {
42
- group: _types.GROUPS.advanced,
43
- label: "Hide Context Menu",
44
- description: "Hides the system context menu (Default: false)",
45
- editable: true,
46
- required: false,
47
- defaultValue: null,
48
- formType: _types.FORM_TYPES.boolean,
49
- propType: _types.PROP_TYPES.BOOLEAN
50
- },
51
- editable: {
52
- group: _types.GROUPS.advanced,
53
- label: "Editable",
54
- description: "If false, the text is not editable",
55
- editable: true,
56
- required: false,
57
- defaultValue: true,
58
- formType: _types.FORM_TYPES.boolean,
59
- propType: _types.PROP_TYPES.BOOLEAN
60
- },
61
- keyboardAppearance: {
62
- group: _types.GROUPS.advanced,
63
- label: "Keyboard Appearance",
64
- description: "Determines the color of the keyboard.(iOS Only)",
65
- editable: true,
66
- required: false,
67
- defaultValue: null,
68
- options: ["default", "light", "dark"],
69
- formType: _types.FORM_TYPES.flatArray,
70
- propType: _types.PROP_TYPES.STRING
71
- },
72
- keyboardType: {
73
- group: _types.GROUPS.advanced,
74
- label: "Keyboard Type",
75
- description: "Determines what keyboard is given to the user.",
76
- editable: true,
77
- required: false,
78
- defaultValue: null,
79
- options: ["numeric", "numbers-and-punctuation", "number-pad"],
80
- formType: _types.FORM_TYPES.flatArray,
81
- propType: _types.PROP_TYPES.STRING
82
- },
83
- maxLength: {
84
- group: _types.GROUPS.basic,
85
- label: "Max Length",
86
- description: "Limits the input to a set number of characters.",
87
- editable: true,
88
- required: false,
89
- defaultValue: null,
90
- min: 0,
91
- step: 1,
92
- precision: 0,
93
- formType: _types.FORM_TYPES.number,
94
- propType: _types.PROP_TYPES.NUMBER
95
- },
96
- placeholder: {
97
- group: _types.GROUPS.basic,
98
- label: "Placeholder Text",
99
- description: "The text that is shown on load when no value is available.",
100
- editable: true,
101
- required: false,
102
- defaultValue: "Enter a number...",
103
- formType: _types.FORM_TYPES.string,
104
- propType: _types.PROP_TYPES.STRING
105
- },
106
- placeholderTextColor: {
107
- group: _types.GROUPS.basic,
108
- label: "Placeholder Text Color",
109
- description: "The color of the placeholder text.",
110
- editable: true,
111
- required: false,
112
- defaultValue: null,
113
- formType: _types.FORM_TYPES.color,
114
- propType: _types.PROP_TYPES.STRING
115
- },
116
- returnKeyLabel: {
117
- group: _types.GROUPS.advanced,
118
- label: "Return Key Label",
119
- description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
120
- editable: true,
121
- required: false,
122
- defaultValue: null,
123
- formType: _types.FORM_TYPES.string,
124
- propType: _types.PROP_TYPES.STRING
125
- },
126
- returnKeyType: {
127
- group: _types.GROUPS.advanced,
128
- label: "Return Key Type",
129
- description: "Determines how the return key should look like",
130
- editable: true,
131
- required: false,
132
- defaultValue: null,
133
- options: ["done", "go", "next", "search", "send", "none", "previous", "default", "emergency-call", "google", "join", "route", "yahoo"],
134
- formType: _types.FORM_TYPES.flatArray,
135
- propType: _types.PROP_TYPES.STRING
136
- },
137
- selectionColor: {
138
- group: _types.GROUPS.advanced,
139
- label: "Selection Color",
140
- description: "Color of the highlighted portion when selecting.",
141
- editable: true,
142
- required: false,
143
- defaultValue: null,
144
- formType: _types.FORM_TYPES.color,
145
- propType: _types.PROP_TYPES.STRING
146
- },
147
- selectTextOnFocus: {
148
- group: _types.GROUPS.advanced,
149
- label: "Select Text on Focus",
150
- description: "If true, all the text will automatically be selected on focus",
151
- editable: true,
152
- required: false,
153
- defaultValue: null,
154
- formType: _types.FORM_TYPES.boolean,
155
- propType: _types.PROP_TYPES.BOOLEAN
156
- }
157
- };
158
10
  const SEED_DATA_PROPS = {
159
11
  style: {
160
12
  group: _types.GROUPS.basic,
@@ -235,7 +87,152 @@ const SEED_DATA = [{
235
87
  },
236
88
  triggers: [_types.Triggers.OnChangeText],
237
89
  props: { ...SEED_DATA_PROPS,
238
- ...NUMBER_INPUT_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
+ autoFocus: {
101
+ group: _types.GROUPS.basic,
102
+ label: "Auto Focus",
103
+ description: "Focuses the input on load in and brings up the keyboard",
104
+ editable: true,
105
+ required: false,
106
+ defaultValue: null,
107
+ formType: _types.FORM_TYPES.boolean,
108
+ propType: _types.PROP_TYPES.BOOLEAN
109
+ },
110
+ caretHidden: {
111
+ group: _types.GROUPS.advanced,
112
+ label: "Hide Caret",
113
+ description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
114
+ editable: true,
115
+ required: false,
116
+ defaultValue: null,
117
+ formType: _types.FORM_TYPES.boolean,
118
+ propType: _types.PROP_TYPES.BOOLEAN
119
+ },
120
+ contextMenuHidden: {
121
+ group: _types.GROUPS.advanced,
122
+ label: "Hide Context Menu",
123
+ description: "Hides the system context menu (Default: false)",
124
+ editable: true,
125
+ required: false,
126
+ defaultValue: null,
127
+ formType: _types.FORM_TYPES.boolean,
128
+ propType: _types.PROP_TYPES.BOOLEAN
129
+ },
130
+ editable: {
131
+ group: _types.GROUPS.advanced,
132
+ label: "Editable",
133
+ description: "If false, the text is not editable",
134
+ editable: true,
135
+ required: false,
136
+ defaultValue: true,
137
+ formType: _types.FORM_TYPES.boolean,
138
+ propType: _types.PROP_TYPES.BOOLEAN
139
+ },
140
+ keyboardAppearance: {
141
+ group: _types.GROUPS.advanced,
142
+ label: "Keyboard Appearance",
143
+ description: "Determines the color of the keyboard.(iOS Only)",
144
+ editable: true,
145
+ required: false,
146
+ defaultValue: null,
147
+ options: ["default", "light", "dark"],
148
+ formType: _types.FORM_TYPES.flatArray,
149
+ propType: _types.PROP_TYPES.STRING
150
+ },
151
+ keyboardType: {
152
+ group: _types.GROUPS.advanced,
153
+ label: "Keyboard Type",
154
+ description: "Determines what keyboard is given to the user.",
155
+ editable: true,
156
+ required: false,
157
+ defaultValue: null,
158
+ options: ["numeric", "numbers-and-punctuation", "number-pad"],
159
+ formType: _types.FORM_TYPES.flatArray,
160
+ propType: _types.PROP_TYPES.STRING
161
+ },
162
+ maxLength: {
163
+ group: _types.GROUPS.basic,
164
+ label: "Max Length",
165
+ description: "Limits the input to a set number of characters.",
166
+ editable: true,
167
+ required: false,
168
+ defaultValue: null,
169
+ min: 0,
170
+ step: 1,
171
+ precision: 0,
172
+ formType: _types.FORM_TYPES.number,
173
+ propType: _types.PROP_TYPES.NUMBER
174
+ },
175
+ placeholder: {
176
+ group: _types.GROUPS.basic,
177
+ label: "Placeholder Text",
178
+ description: "The text that is shown on load when no value is available.",
179
+ editable: true,
180
+ required: false,
181
+ defaultValue: "Enter a number...",
182
+ formType: _types.FORM_TYPES.string,
183
+ propType: _types.PROP_TYPES.STRING
184
+ },
185
+ placeholderTextColor: {
186
+ group: _types.GROUPS.basic,
187
+ label: "Placeholder Text Color",
188
+ description: "The color of the placeholder text.",
189
+ editable: true,
190
+ required: false,
191
+ defaultValue: null,
192
+ formType: _types.FORM_TYPES.color,
193
+ propType: _types.PROP_TYPES.STRING
194
+ },
195
+ returnKeyLabel: {
196
+ group: _types.GROUPS.advanced,
197
+ label: "Return Key Label",
198
+ description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
199
+ editable: true,
200
+ required: false,
201
+ defaultValue: null,
202
+ formType: _types.FORM_TYPES.string,
203
+ propType: _types.PROP_TYPES.STRING
204
+ },
205
+ returnKeyType: {
206
+ group: _types.GROUPS.advanced,
207
+ label: "Return Key Type",
208
+ description: "Determines how the return key should look like",
209
+ editable: true,
210
+ required: false,
211
+ defaultValue: null,
212
+ options: ["done", "go", "next", "search", "send", "none", "previous", "default", "emergency-call", "google", "join", "route", "yahoo"],
213
+ formType: _types.FORM_TYPES.flatArray,
214
+ propType: _types.PROP_TYPES.STRING
215
+ },
216
+ selectionColor: {
217
+ group: _types.GROUPS.advanced,
218
+ label: "Selection Color",
219
+ description: "Color of the highlighted portion when selecting.",
220
+ editable: true,
221
+ required: false,
222
+ defaultValue: null,
223
+ formType: _types.FORM_TYPES.color,
224
+ propType: _types.PROP_TYPES.STRING
225
+ },
226
+ selectTextOnFocus: {
227
+ group: _types.GROUPS.advanced,
228
+ label: "Select Text on Focus",
229
+ description: "If true, all the text will automatically be selected on focus",
230
+ editable: true,
231
+ required: false,
232
+ defaultValue: null,
233
+ formType: _types.FORM_TYPES.boolean,
234
+ propType: _types.PROP_TYPES.BOOLEAN
235
+ }
239
236
  }
240
237
  }];
241
238
  exports.SEED_DATA = SEED_DATA;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+
8
+ var _types = require("@draftbit/types");
9
+
10
+ const SEED_DATA = {
11
+ name: "SVG",
12
+ tag: "SVG",
13
+ description: "An SVG component",
14
+ category: _types.COMPONENT_TYPES.media,
15
+ layout: {
16
+ width: 100,
17
+ height: 100
18
+ },
19
+ props: {
20
+ source: (0, _types.createSvgProp)()
21
+ }
22
+ };
23
+ exports.SEED_DATA = SEED_DATA;