@draftbit/core 47.0.1-df014a.2 → 47.0.1-e04fa3.2

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 (95) hide show
  1. package/lib/commonjs/index.js +25 -82
  2. package/lib/commonjs/mappings/NativeBase/AlertDialog.js +102 -0
  3. package/lib/commonjs/mappings/NativeBase/Button.js +84 -0
  4. package/lib/commonjs/mappings/NativeBase/DataDisplay.js +61 -0
  5. package/lib/commonjs/mappings/NativeBase/Feedback.js +74 -0
  6. package/lib/commonjs/mappings/NativeBase/Layout.js +114 -0
  7. package/lib/commonjs/mappings/NativeBase/Media.js +49 -0
  8. package/lib/commonjs/mappings/NativeBase/Menu.js +111 -0
  9. package/lib/commonjs/mappings/NativeBase/Modal.js +93 -0
  10. package/lib/commonjs/mappings/NativeBase/Other.js +94 -0
  11. package/lib/commonjs/mappings/NativeBase/Popover.js +99 -0
  12. package/lib/commonjs/mappings/NativeBase/Select.js +65 -0
  13. package/lib/commonjs/mappings/NativeBase/Slider.js +81 -0
  14. package/lib/module/components/AvatarEdit.js +4 -15
  15. package/lib/module/components/CardBlock.js +4 -14
  16. package/lib/module/components/CircleImage.js +1 -16
  17. package/lib/module/components/DeprecatedCardWrapper.js +1 -18
  18. package/lib/module/components/FAB.js +4 -22
  19. package/lib/module/components/Picker/PickerComponent.ios.js +11 -36
  20. package/lib/module/components/Picker/PickerComponent.web.js +3 -21
  21. package/lib/module/components/Switch.js +10 -21
  22. package/lib/module/components/TextField.js +28 -78
  23. package/lib/module/components/Touchable.js +1 -18
  24. package/lib/module/index.js +121 -31
  25. package/lib/module/mappings/NativeBase/AlertDialog.js +95 -0
  26. package/lib/module/mappings/NativeBase/Button.js +86 -0
  27. package/lib/module/mappings/NativeBase/DataDisplay.js +54 -0
  28. package/lib/module/mappings/NativeBase/Feedback.js +67 -0
  29. package/lib/module/mappings/NativeBase/Layout.js +107 -0
  30. package/lib/module/mappings/NativeBase/Media.js +42 -0
  31. package/lib/module/mappings/NativeBase/Menu.js +104 -0
  32. package/lib/module/mappings/NativeBase/Modal.js +86 -0
  33. package/lib/module/mappings/NativeBase/Other.js +87 -0
  34. package/lib/module/mappings/NativeBase/Popover.js +92 -0
  35. package/lib/module/mappings/NativeBase/Select.js +58 -0
  36. package/lib/module/mappings/NativeBase/Slider.js +74 -0
  37. package/lib/typescript/src/index.d.ts +102 -29
  38. package/lib/typescript/src/index.d.ts.map +1 -1
  39. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +146 -0
  40. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +1 -0
  41. package/lib/typescript/src/mappings/NativeBase/Button.d.ts +1 -0
  42. package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +1 -0
  43. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts +96 -0
  44. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +1 -0
  45. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +2 -0
  46. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +1 -0
  47. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +146 -0
  48. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  49. package/lib/typescript/src/mappings/NativeBase/Media.d.ts +48 -0
  50. package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +1 -0
  51. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +227 -0
  52. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +1 -0
  53. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +133 -0
  54. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +1 -0
  55. package/lib/typescript/src/mappings/NativeBase/Other.d.ts +179 -0
  56. package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +1 -0
  57. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +136 -0
  58. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +1 -0
  59. package/lib/typescript/src/mappings/NativeBase/Select.d.ts +156 -0
  60. package/lib/typescript/src/mappings/NativeBase/Select.d.ts.map +1 -0
  61. package/lib/typescript/src/mappings/NativeBase/Slider.d.ts +200 -0
  62. package/lib/typescript/src/mappings/NativeBase/Slider.d.ts.map +1 -0
  63. package/package.json +3 -3
  64. package/src/index.js +112 -31
  65. package/src/index.tsx +123 -43
  66. package/src/mappings/NativeBase/AlertDialog.js +112 -0
  67. package/src/mappings/NativeBase/AlertDialog.ts +128 -0
  68. package/src/mappings/NativeBase/Button.js +84 -0
  69. package/src/mappings/NativeBase/Button.ts +83 -0
  70. package/src/mappings/NativeBase/DataDisplay.js +67 -0
  71. package/src/mappings/NativeBase/DataDisplay.ts +79 -0
  72. package/src/mappings/NativeBase/Feedback.js +89 -0
  73. package/src/mappings/NativeBase/Feedback.ts +100 -0
  74. package/src/mappings/NativeBase/Layout.js +140 -0
  75. package/src/mappings/NativeBase/Layout.ts +152 -0
  76. package/src/mappings/NativeBase/Media.js +56 -0
  77. package/src/mappings/NativeBase/Media.ts +65 -0
  78. package/src/mappings/NativeBase/Menu.js +134 -0
  79. package/src/mappings/NativeBase/Menu.ts +150 -0
  80. package/src/mappings/NativeBase/Modal.js +103 -0
  81. package/src/mappings/NativeBase/Modal.ts +118 -0
  82. package/src/mappings/NativeBase/Other.js +123 -0
  83. package/src/mappings/NativeBase/Other.ts +139 -0
  84. package/src/mappings/NativeBase/Popover.js +123 -0
  85. package/src/mappings/NativeBase/Popover.ts +136 -0
  86. package/src/mappings/NativeBase/Select.js +71 -0
  87. package/src/mappings/NativeBase/Select.ts +85 -0
  88. package/src/mappings/NativeBase/Slider.js +89 -0
  89. package/src/mappings/NativeBase/Slider.ts +105 -0
  90. package/lib/commonjs/mappings/DatePickerModal.js +0 -74
  91. package/lib/module/mappings/DatePickerModal.js +0 -65
  92. package/lib/typescript/src/mappings/DatePickerModal.d.ts +0 -153
  93. package/lib/typescript/src/mappings/DatePickerModal.d.ts.map +0 -1
  94. package/src/mappings/DatePickerModal.js +0 -73
  95. package/src/mappings/DatePickerModal.ts +0 -91
@@ -33,12 +33,6 @@ Object.defineProperty(exports, "ActionSheetItem", {
33
33
  return _ActionSheet.ActionSheetItem;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "Avatar", {
37
- enumerable: true,
38
- get: function () {
39
- return _CircleImage.default;
40
- }
41
- });
42
36
  Object.defineProperty(exports, "AvatarEdit", {
43
37
  enumerable: true,
44
38
  get: function () {
@@ -105,12 +99,6 @@ Object.defineProperty(exports, "Carousel", {
105
99
  return _Carousel.default;
106
100
  }
107
101
  });
108
- Object.defineProperty(exports, "Center", {
109
- enumerable: true,
110
- get: function () {
111
- return _Layout.Center;
112
- }
113
- });
114
102
  Object.defineProperty(exports, "Checkbox", {
115
103
  enumerable: true,
116
104
  get: function () {
@@ -129,24 +117,12 @@ Object.defineProperty(exports, "CheckboxRow", {
129
117
  return _Checkbox.CheckboxRow;
130
118
  }
131
119
  });
132
- Object.defineProperty(exports, "Circle", {
133
- enumerable: true,
134
- get: function () {
135
- return _Layout.Circle;
136
- }
137
- });
138
120
  Object.defineProperty(exports, "CircleImage", {
139
121
  enumerable: true,
140
122
  get: function () {
141
123
  return _CircleImage.default;
142
124
  }
143
125
  });
144
- Object.defineProperty(exports, "Container", {
145
- enumerable: true,
146
- get: function () {
147
- return _Container.default;
148
- }
149
- });
150
126
  Object.defineProperty(exports, "DatePicker", {
151
127
  enumerable: true,
152
128
  get: function () {
@@ -165,12 +141,6 @@ Object.defineProperty(exports, "Divider", {
165
141
  return _Divider.default;
166
142
  }
167
143
  });
168
- Object.defineProperty(exports, "FAB", {
169
- enumerable: true,
170
- get: function () {
171
- return _FAB.default;
172
- }
173
- });
174
144
  Object.defineProperty(exports, "FieldSearchBarFull", {
175
145
  enumerable: true,
176
146
  get: function () {
@@ -267,12 +237,6 @@ Object.defineProperty(exports, "RadioButtonRow", {
267
237
  return _index.RadioButtonRow;
268
238
  }
269
239
  });
270
- Object.defineProperty(exports, "Row", {
271
- enumerable: true,
272
- get: function () {
273
- return _Layout.Row;
274
- }
275
- });
276
240
  Object.defineProperty(exports, "RowBodyIcon", {
277
241
  enumerable: true,
278
242
  get: function () {
@@ -309,24 +273,6 @@ Object.defineProperty(exports, "Slider", {
309
273
  return _Slider.default;
310
274
  }
311
275
  });
312
- Object.defineProperty(exports, "Spacer", {
313
- enumerable: true,
314
- get: function () {
315
- return _Layout.Spacer;
316
- }
317
- });
318
- Object.defineProperty(exports, "Square", {
319
- enumerable: true,
320
- get: function () {
321
- return _Layout.Square;
322
- }
323
- });
324
- Object.defineProperty(exports, "Stack", {
325
- enumerable: true,
326
- get: function () {
327
- return _Layout.Stack;
328
- }
329
- });
330
276
  Object.defineProperty(exports, "StarRating", {
331
277
  enumerable: true,
332
278
  get: function () {
@@ -415,50 +361,47 @@ var _Icon = require("./interfaces/Icon");
415
361
  var _theming = require("./theming");
416
362
  var _Provider = _interopRequireDefault(require("./Provider"));
417
363
  var _DefaultTheme = _interopRequireDefault(require("./styles/DefaultTheme"));
418
- var _Text = require("./components/Text");
364
+ var _ScreenContainer = _interopRequireDefault(require("./components/ScreenContainer"));
419
365
  var _Banner = _interopRequireDefault(require("./components/Banner"));
420
366
  var _Button = require("./components/Button");
421
- var _CircleImage = _interopRequireDefault(require("./components/CircleImage"));
422
- var _AvatarEdit = _interopRequireDefault(require("./components/AvatarEdit"));
423
- var _Card = _interopRequireDefault(require("./components/Card"));
424
- var _Carousel = _interopRequireDefault(require("./components/Carousel"));
425
- var _Checkbox = require("./components/Checkbox");
426
- var _Container = _interopRequireDefault(require("./components/Container"));
427
- var _Divider = _interopRequireDefault(require("./components/Divider"));
428
- var _FAB = _interopRequireDefault(require("./components/FAB"));
429
- var _FieldSearchBarFull = _interopRequireDefault(require("./components/FieldSearchBarFull"));
367
+ var _Text = require("./components/Text");
430
368
  var _IconButton = _interopRequireDefault(require("./components/IconButton"));
431
- var _Image = _interopRequireDefault(require("./components/Image"));
432
- var _SVG = _interopRequireDefault(require("./components/SVG"));
369
+ var _Touchable = _interopRequireDefault(require("./components/Touchable"));
370
+ var _ToggleButton = _interopRequireDefault(require("./components/ToggleButton"));
371
+ var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
433
372
  var _NumberInput = _interopRequireDefault(require("./components/NumberInput"));
434
- var _ScreenContainer = _interopRequireDefault(require("./components/ScreenContainer"));
373
+ var _TextField = _interopRequireDefault(require("./components/TextField"));
374
+ var _FieldSearchBarFull = _interopRequireDefault(require("./components/FieldSearchBarFull"));
375
+ var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
376
+ var _Checkbox = require("./components/Checkbox");
377
+ var _index = require("./components/RadioButton/index");
378
+ var _Slider = _interopRequireDefault(require("./components/Slider"));
379
+ var _Stepper = _interopRequireDefault(require("./components/Stepper"));
435
380
  var _StarRating = _interopRequireDefault(require("./components/StarRating"));
436
- var _Surface = _interopRequireDefault(require("./components/Surface"));
437
381
  var _Switch = _interopRequireWildcard(require("./components/Switch"));
438
- var _TextField = _interopRequireDefault(require("./components/TextField"));
439
- var _ToggleButton = _interopRequireDefault(require("./components/ToggleButton"));
440
- var _Touchable = _interopRequireDefault(require("./components/Touchable"));
382
+ var _SVG = _interopRequireDefault(require("./components/SVG"));
383
+ var _Image = _interopRequireDefault(require("./components/Image"));
384
+ var _AvatarEdit = _interopRequireDefault(require("./components/AvatarEdit"));
385
+ var _CircleImage = _interopRequireDefault(require("./components/CircleImage"));
386
+ var _Swiper = require("./components/Swiper");
441
387
  var _Accordion = require("./components/Accordion");
388
+ var _Surface = _interopRequireDefault(require("./components/Surface"));
442
389
  var _ActionSheet = require("./components/ActionSheet");
443
- var _Swiper = require("./components/Swiper");
444
- var _Layout = require("./components/Layout");
445
- var _index = require("./components/RadioButton/index");
446
- var _CardBlock = _interopRequireDefault(require("./components/CardBlock"));
447
- var _CardContainer = _interopRequireDefault(require("./components/CardContainer"));
448
- var _CardContainerRating = _interopRequireDefault(require("./components/CardContainerRating"));
449
- var _CardInline = _interopRequireDefault(require("./components/CardInline"));
450
- var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
390
+ var _Carousel = _interopRequireDefault(require("./components/Carousel"));
391
+ var _Divider = _interopRequireDefault(require("./components/Divider"));
451
392
  var _HeaderLarge = _interopRequireDefault(require("./components/HeaderLarge"));
452
393
  var _HeaderMedium = _interopRequireDefault(require("./components/HeaderMedium"));
453
394
  var _HeaderOverline = _interopRequireDefault(require("./components/HeaderOverline"));
454
- var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
455
395
  var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
456
396
  var _ProgressCircle = _interopRequireDefault(require("./components/ProgressCircle"));
457
397
  var _RowBodyIcon = _interopRequireDefault(require("./components/RowBodyIcon"));
458
398
  var _RowHeadlineImageCaption = _interopRequireDefault(require("./components/RowHeadlineImageCaption"));
459
399
  var _RowHeadlineImageIcon = _interopRequireDefault(require("./components/RowHeadlineImageIcon"));
460
- var _Slider = _interopRequireDefault(require("./components/Slider"));
461
- var _Stepper = _interopRequireDefault(require("./components/Stepper"));
400
+ var _Card = _interopRequireDefault(require("./components/Card"));
401
+ var _CardBlock = _interopRequireDefault(require("./components/CardBlock"));
402
+ var _CardContainer = _interopRequireDefault(require("./components/CardContainer"));
403
+ var _CardContainerRating = _interopRequireDefault(require("./components/CardContainerRating"));
404
+ var _CardInline = _interopRequireDefault(require("./components/CardInline"));
462
405
  var _useAuthState = require("./components/useAuthState");
463
406
  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); }
464
407
  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; }
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+ var _types = require("@draftbit/types");
8
+ const SHARED_SEED_DATA = {
9
+ category: _types.COMPONENT_TYPES.NBAlert,
10
+ packageName: "native-base",
11
+ stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
12
+ layout: {}
13
+ };
14
+ const SEED_DATA = [{
15
+ name: "Alert Dialog",
16
+ tag: "AlertDialog",
17
+ description: "AlertDialog is used when a user needs to be interrupted with a mandatory confirmation or call-to-action. AlertDialog composes Modal so you can use all its props.",
18
+ ...SHARED_SEED_DATA,
19
+ triggers: [_types.Triggers.OnClose],
20
+ props: {
21
+ /* https://github.com/GeekyAnts/NativeBase/blob/master/src/components/composites/AlertDialog/types.tsx */
22
+ isOpen: (0, _types.createBoolProp)({
23
+ label: "Is Open",
24
+ description: "If true, the modal will open. Useful for controllable state behavior."
25
+ }),
26
+ defaultIsOpen: (0, _types.createStaticBoolProp)({
27
+ label: "Default Is Open",
28
+ description: "If true, the modal will be opened by default."
29
+ }),
30
+ size: (0, _types.createStaticNumberProp)({
31
+ label: "Size",
32
+ description: "The size of the AlertDialog"
33
+ }),
34
+ avoidKeyboard: (0, _types.createStaticBoolProp)({
35
+ label: "Avoid Keyboard",
36
+ description: "If true and the keyboard is opened, the modal will move up equivalent to the keyboard height.",
37
+ defaultValue: false
38
+ }),
39
+ closeOnOverlayClick: (0, _types.createStaticBoolProp)({
40
+ label: "Close on Overlay Click",
41
+ description: "If true, the modal will close when the overlay is clicked.",
42
+ defaultValue: true
43
+ }),
44
+ isKeyboardDismissable: (0, _types.createStaticBoolProp)({
45
+ label: "Is Keyboard Dismissable",
46
+ description: "If true, the modal will close when the keyboard is dismissed.",
47
+ defaultValue: true
48
+ }),
49
+ overlayVisible: (0, _types.createStaticBoolProp)({
50
+ label: "Overlay Visible",
51
+ description: "If true, the overlay element is visible.",
52
+ defaultValue: true
53
+ }),
54
+ backdropVisible: (0, _types.createStaticBoolProp)({
55
+ label: "Backdrop Visible",
56
+ description: "If true, the backdrop element is visible.",
57
+ defaultValue: true
58
+ }),
59
+ animationPreset: (0, _types.createTextEnumProp)({
60
+ label: "Animation Preset",
61
+ description: "The animation preset to use for the modal.",
62
+ options: ["slide", "fade", "none"],
63
+ defaultValue: "fade"
64
+ }),
65
+ useRNModal: (0, _types.createStaticBoolProp)({
66
+ label: "Use RN Modal",
67
+ description: "If true, the modal will use the RN Modal component."
68
+ }),
69
+ onClose: (0, _types.createActionProp)()
70
+ }
71
+ }, {
72
+ name: "Alert Header",
73
+ tag: "AlertDialog.Header",
74
+ description: "Contains the title announced by screen readers.",
75
+ ...SHARED_SEED_DATA,
76
+ props: {}
77
+ }, {
78
+ name: "Alert Body",
79
+ tag: "AlertDialog.Body",
80
+ description: "Contains the description announced by screen readers.",
81
+ ...SHARED_SEED_DATA,
82
+ props: {}
83
+ }, {
84
+ name: "Alert Footer",
85
+ tag: "AlertDialog.Footer",
86
+ description: "Contains the actions of the dialog.",
87
+ ...SHARED_SEED_DATA,
88
+ props: {}
89
+ }, {
90
+ name: "Alert Content",
91
+ tag: "AlertDialog.Content",
92
+ description: "The wrapper for the alert dialog's content.",
93
+ ...SHARED_SEED_DATA,
94
+ props: {}
95
+ }, {
96
+ name: "Alert Close Button",
97
+ tag: "AlertDialog.CloseButton",
98
+ description: "The button that closes the dialog",
99
+ ...SHARED_SEED_DATA,
100
+ props: {}
101
+ }];
102
+ exports.SEED_DATA = SEED_DATA;
@@ -0,0 +1,84 @@
1
+ /* Temporarily Commented Out
2
+
3
+
4
+ import {
5
+ COMPONENT_TYPES,
6
+ StylesPanelSections,
7
+ createTextEnumProp,
8
+ createBoolProp,
9
+ createIconProp,
10
+ } from "@draftbit/types";
11
+
12
+ const SHARED_SEED_DATA = {
13
+ category: COMPONENT_TYPES.NBForms,
14
+ packageName: "native-base",
15
+ stylesPanelSections: [
16
+ StylesPanelSections.LayoutFlexItems,
17
+ StylesPanelSections.LayoutSelectedItem,
18
+ StylesPanelSections.LayoutContent,
19
+ StylesPanelSections.Background,
20
+ StylesPanelSections.Size,
21
+ StylesPanelSections.MarginsAndPaddings,
22
+ StylesPanelSections.Position,
23
+ StylesPanelSections.Borders,
24
+ StylesPanelSections.Effects,
25
+ ],
26
+ layout: {},
27
+ triggers: {},
28
+ };
29
+
30
+ export const SEED_DATA = [
31
+ {
32
+ name: "Button",
33
+ tag: "Button",
34
+ description:
35
+ "The Button component triggers an event or an action. Examples can be submitting forms and deleting a data point.",
36
+ ...SHARED_SEED_DATA,
37
+ props: {
38
+ isLoading: createBoolProp({
39
+ label: "Loading",
40
+ description: "If true, the button will show a spinner.",
41
+ }),
42
+ isDisabled: createBoolProp({
43
+ label: "Disabled",
44
+ description: "If true, the button will be disabled.",
45
+ }),
46
+ leftIcon: createIconProp({
47
+ label: "Left Icon",
48
+ description: "The icon to display on the left side of the button",
49
+ }),
50
+ rightIcon: createIconProp({
51
+ label: "Right Icon",
52
+ description: "The icon to display on the right side of the button",
53
+ }),
54
+ spinnerPlacement: createTextEnumProp({
55
+ label: "Spinner Placement",
56
+ description: "The placement of the spinner",
57
+ options: ["start", "end"],
58
+ defaultValue: "start",
59
+ }),
60
+ },
61
+ },
62
+ {
63
+ name: "Button Group",
64
+ tag: "ButtonGroup",
65
+ description:
66
+ "Used to group buttons whose actions are related, with an option to flush them together.",
67
+ ...SHARED_SEED_DATA,
68
+ allowChildren: true,
69
+ props: {
70
+ direction: createTextEnumProp({
71
+ label: "Direction",
72
+ description: "The direction of the button group",
73
+ options: ["row", "column"],
74
+ defaultValue: "row",
75
+ }),
76
+ isAttached: createBoolProp({
77
+ label: "Attached",
78
+ description: "If true, the buttons will be attached",
79
+ }),
80
+ },
81
+ },
82
+ ];
83
+ */
84
+ "use strict";/
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+ var _types = require("@draftbit/types");
8
+ const SHARED_SEED_DATA = {
9
+ category: _types.COMPONENT_TYPES.NBDataDisplay,
10
+ packageName: "native-base",
11
+ stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
12
+ layout: {},
13
+ triggers: {}
14
+ };
15
+ const SEED_DATA = [{
16
+ name: "Badge",
17
+ tag: "Badge",
18
+ doc_link: "https://docs.nativebase.io/badge",
19
+ code_link: "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/composites/Badge",
20
+ description: "Badges allow the highlighting of an item’s status. This provides quick recognition.",
21
+ ...SHARED_SEED_DATA,
22
+ props: {
23
+ /* */
24
+ leftIcon: (0, _types.createIconProp)({
25
+ label: "Left Icon",
26
+ description: "The left icon element to use in the button."
27
+ }),
28
+ rightIcon: (0, _types.createIconProp)({
29
+ label: "Right Icon",
30
+ description: "The right icon element to use in the button."
31
+ }),
32
+ startIcon: (0, _types.createIconProp)({
33
+ label: "Start Icon",
34
+ description: "The start icon element to use in the button."
35
+ }),
36
+ endIcon: (0, _types.createIconProp)({
37
+ label: "End Icon",
38
+ description: "The end icon element to use in the button."
39
+ })
40
+ }
41
+ }, {
42
+ name: "Divider",
43
+ tag: "Divider",
44
+ doc_link: "https://docs.nativebase.io/divider",
45
+ code_link: "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/composites/Divider",
46
+ description: "Divider can visually separate content in a given list or group.",
47
+ ...SHARED_SEED_DATA,
48
+ props: {
49
+ orientation: (0, _types.createTextEnumProp)({
50
+ label: "Orientation",
51
+ description: "The orientation of the divider",
52
+ options: ["horizontal", "vertical"]
53
+ }),
54
+ thickness: (0, _types.createStaticNumberProp)({
55
+ label: "Thickness",
56
+ description: "The thickness of the divider",
57
+ defaultValue: 1
58
+ })
59
+ }
60
+ }];
61
+ exports.SEED_DATA = SEED_DATA;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+ var _types = require("@draftbit/types");
8
+ const SHARED_SEED_DATA = {
9
+ category: _types.COMPONENT_TYPES.NBFeedback,
10
+ packageName: "native-base",
11
+ stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
12
+ layout: {},
13
+ triggers: {}
14
+ };
15
+ const SEED_DATA = [{
16
+ name: "Alert",
17
+ tag: "Alert",
18
+ description: "Wrapper component. Alerts convey a state that can influence a system, feature, or page.",
19
+ ...SHARED_SEED_DATA,
20
+ props: {
21
+ status: (0, _types.createTextEnumProp)({
22
+ label: "Status",
23
+ description: "The status of the alert",
24
+ options: ["success", "warning", "error", "info"],
25
+ defaultValue: "info"
26
+ }),
27
+ variant: (0, _types.createTextEnumProp)({
28
+ label: "Variant",
29
+ description: "The variant of the alert style to use.",
30
+ options: ["subtle", "solid", "outline", "left-accent", "top-accent", "outline-light"],
31
+ defaultValue: "subtle"
32
+ })
33
+ }
34
+ }, {
35
+ name: "Alert Icon",
36
+ tag: "Alert.Icon",
37
+ description: "The visual icon for the alert that changes based on the status prop.",
38
+ ...SHARED_SEED_DATA,
39
+ props: {
40
+ icon: (0, _types.createIconProp)({
41
+ label: "Icon",
42
+ description: "The icon to display"
43
+ })
44
+ }
45
+ }, {
46
+ name: "Progress",
47
+ tag: "Progress",
48
+ description: "Progress helps show the progress status for a time-consuming task that consists of several steps.",
49
+ ...SHARED_SEED_DATA,
50
+ props: {
51
+ value: (0, _types.createNumberProp)({
52
+ label: "Value",
53
+ description: "The value of the progress bar",
54
+ defaultValue: 0,
55
+ min: 0,
56
+ max: 100
57
+ }),
58
+ min: (0, _types.createNumberProp)({
59
+ label: "Min",
60
+ description: "The minimum value of the progress bar",
61
+ defaultValue: 0,
62
+ min: 0,
63
+ max: 100
64
+ }),
65
+ max: (0, _types.createNumberProp)({
66
+ label: "Max",
67
+ description: "The maximum value of the progress bar",
68
+ defaultValue: 100,
69
+ min: 0,
70
+ max: 100
71
+ })
72
+ }
73
+ }, {}];
74
+ exports.SEED_DATA = SEED_DATA;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+ var _types = require("@draftbit/types");
8
+ const NB_LAYOUT_PROPS = {
9
+ category: _types.COMPONENT_TYPES.NBLayout,
10
+ packageName: "native-base",
11
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
12
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
13
+ stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
14
+ allowChildren: true,
15
+ layout: {},
16
+ triggers: {}
17
+ };
18
+ const SEED_DATA = [{
19
+ name: "Aspect Ratio",
20
+ tag: "AspectRatio",
21
+ description: "AspectRatio controls the size of the undefined dimension of a node or child component.",
22
+ ...NB_LAYOUT_PROPS,
23
+ props: {
24
+ ratio: (0, _types.createTextEnumProp)({
25
+ label: "Ratio",
26
+ description: "The aspect ratio of the container",
27
+ options: ["1 / 1", "4 / 3", "3 / 2", "16 / 9", "2 / 1", "3 / 4", "2 / 3", "9 / 16", "1 / 2"],
28
+ defaultValue: "4 / 3"
29
+ })
30
+ }
31
+ }, {
32
+ name: "Box",
33
+ tag: "Box",
34
+ description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
35
+ ...NB_LAYOUT_PROPS
36
+ }, {
37
+ name: "Center",
38
+ tag: "Center",
39
+ description: "Centers its child",
40
+ ...NB_LAYOUT_PROPS
41
+ }, {
42
+ name: "Square",
43
+ tag: "Square",
44
+ description: "Centers its child inside a square",
45
+ ...NB_LAYOUT_PROPS
46
+ }, {
47
+ name: "Circle",
48
+ tag: "Circle",
49
+ description: "Centers its child inside a circle",
50
+ ...NB_LAYOUT_PROPS
51
+ }, {
52
+ name: "Column",
53
+ tag: "Column",
54
+ description: "Column aligns items vertically",
55
+ ...NB_LAYOUT_PROPS
56
+ }, {
57
+ name: "Container",
58
+ tag: "Container",
59
+ description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid.",
60
+ ...NB_LAYOUT_PROPS
61
+ }, {
62
+ name: "Flex",
63
+ tag: "Flex",
64
+ description: "A Box with Flexbox properties. ",
65
+ ...NB_LAYOUT_PROPS
66
+ }, {
67
+ name: "Spacer",
68
+ tag: "Spacer",
69
+ description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
70
+ ...NB_LAYOUT_PROPS
71
+ }, {
72
+ name: "Row",
73
+ tag: "Row",
74
+ description: "Column aligns items horizontally",
75
+ ...NB_LAYOUT_PROPS,
76
+ props: {}
77
+ }, {
78
+ name: "Stack",
79
+ tag: "Stack",
80
+ description: "Stack aligns items vertically or horizontally based on the direction prop.",
81
+ ...NB_LAYOUT_PROPS,
82
+ props: {
83
+ direction: (0, _types.createTextEnumProp)({
84
+ label: "Direction",
85
+ description: "The direction of the Stack",
86
+ options: ["row", "column"],
87
+ defaultValue: "column"
88
+ }),
89
+ reversed: (0, _types.createBoolProp)({
90
+ label: "Reversed",
91
+ description: "Determines whether to reverse the direction of items."
92
+ }),
93
+ isDisabled: (0, _types.createBoolProp)({
94
+ label: "Disabled",
95
+ description: "If true, the Stack will be disabled."
96
+ }),
97
+ isInvalid: (0, _types.createBoolProp)({
98
+ label: "Invalid",
99
+ description: "If true, the Stack will be invalid."
100
+ })
101
+ }
102
+ }, {
103
+ name: "ZStack",
104
+ tag: "ZStack",
105
+ description: "ZStack aligns items to the z-axis.",
106
+ ...NB_LAYOUT_PROPS,
107
+ props: {
108
+ reversed: (0, _types.createBoolProp)({
109
+ label: "Reversed",
110
+ description: "Determines whether to reverse the direction of items."
111
+ })
112
+ }
113
+ }];
114
+ exports.SEED_DATA = SEED_DATA;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SEED_DATA = void 0;
7
+ var _types = require("@draftbit/types");
8
+ const NB_MEDIA_PROPS = {
9
+ category: _types.COMPONENT_TYPES.NBLayout,
10
+ packageName: "native-base",
11
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
12
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
13
+ stylesPanelSections: [_types.StylesPanelSections.LayoutFlexItems, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.LayoutContent, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
14
+ layout: {},
15
+ triggers: {}
16
+ };
17
+ const AVATAR_PROPS = {
18
+ props: {
19
+ source: (0, _types.createImageProp)(),
20
+ size: (0, _types.createTextEnumProp)({
21
+ label: "Size",
22
+ description: "The size of the avatar.",
23
+ options: ["xs", "sm", "md", "lg", "xl", "2xl"]
24
+ }),
25
+ wrapperRef: (0, _types.createTextProp)({
26
+ label: "Reference",
27
+ description: "Reference to be attached to the Avatar wrapper.",
28
+ defaultValue: "User Avatar"
29
+ })
30
+ }
31
+ };
32
+ const SEED_DATA = [{
33
+ name: "Avatar",
34
+ tag: "Avatar",
35
+ description: "An image that represents the user",
36
+ ...NB_MEDIA_PROPS,
37
+ ...AVATAR_PROPS
38
+ }, {
39
+ name: "Avatar Badge",
40
+ tag: "AvatarBadge",
41
+ description: "A wrapper that displays its content on the bottom right corner of the avatar.",
42
+ ...NB_MEDIA_PROPS
43
+ }, {
44
+ name: "Avatar Group",
45
+ tag: "AvatarGroup",
46
+ description: "A wrapper to stack multiple avatars together",
47
+ ...NB_MEDIA_PROPS
48
+ }];
49
+ exports.SEED_DATA = SEED_DATA;