@draftbit/core 43.4.8-cae1e2.0 → 43.4.10

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 (188) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
  2. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
  3. package/lib/commonjs/components/Accordion/index.js.map +1 -1
  4. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  5. package/lib/commonjs/components/Justification.js +0 -3
  6. package/lib/commonjs/components/NumberInput.js +6 -2
  7. package/lib/commonjs/components/NumberInput.js.map +1 -1
  8. package/lib/commonjs/components/ResizeMode.js +0 -3
  9. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -1
  10. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  11. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  12. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  13. package/lib/module/components/Justification.js +1 -1
  14. package/lib/module/components/NumberInput.js +6 -2
  15. package/lib/module/components/NumberInput.js.map +1 -1
  16. package/lib/module/components/ResizeMode.js +1 -1
  17. package/package.json +3 -3
  18. package/src/components/NumberInput.tsx +4 -1
  19. package/src/Provider.js +0 -9
  20. package/src/components/Accordion/AccordionGroup.js +0 -44
  21. package/src/components/Accordion/AccordionItem.js +0 -32
  22. package/src/components/Accordion/index.js +0 -2
  23. package/src/components/ActionSheet/ActionSheet.js +0 -45
  24. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  25. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  26. package/src/components/ActionSheet/index.js +0 -3
  27. package/src/components/AnimatedCircularProgress.js +0 -43
  28. package/src/components/AspectRatio.js +0 -18
  29. package/src/components/AvatarEdit.js +0 -30
  30. package/src/components/Button.js +0 -112
  31. package/src/components/Card.js +0 -57
  32. package/src/components/CardBlock.js +0 -54
  33. package/src/components/CardContainer.js +0 -69
  34. package/src/components/CardContainerRating.js +0 -79
  35. package/src/components/CardContainerShortImage.js +0 -33
  36. package/src/components/CardInline.js +0 -36
  37. package/src/components/Carousel.js +0 -66
  38. package/src/components/Checkbox/Checkbox.js +0 -63
  39. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  40. package/src/components/Checkbox/CheckboxRow.js +0 -77
  41. package/src/components/Checkbox/context.js +0 -14
  42. package/src/components/Checkbox/index.js +0 -3
  43. package/src/components/CircleImage.js +0 -8
  44. package/src/components/CircularProgress.js +0 -78
  45. package/src/components/Config.js +0 -63
  46. package/src/components/Container.js +0 -44
  47. package/src/components/DatePicker/DatePicker.js +0 -370
  48. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  49. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  50. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  51. package/src/components/DeprecatedButton.js +0 -95
  52. package/src/components/DeprecatedCardWrapper.js +0 -18
  53. package/src/components/DeprecatedFAB.js +0 -115
  54. package/src/components/Divider.js +0 -13
  55. package/src/components/Elevation.js +0 -20
  56. package/src/components/FAB.js +0 -46
  57. package/src/components/FieldSearchBarFull.js +0 -53
  58. package/src/components/FormRow.js +0 -19
  59. package/src/components/Header.js +0 -44
  60. package/src/components/HeaderLarge.js +0 -7
  61. package/src/components/HeaderMedium.js +0 -7
  62. package/src/components/HeaderOverline.js +0 -7
  63. package/src/components/IconButton.js +0 -35
  64. package/src/components/Image.js +0 -47
  65. package/src/components/Justification.js +0 -1
  66. package/src/components/Layout.js +0 -50
  67. package/src/components/NumberInput.js +0 -47
  68. package/src/components/Picker/Picker.js +0 -56
  69. package/src/components/Picker/PickerComponent.android.js +0 -68
  70. package/src/components/Picker/PickerComponent.ios.js +0 -78
  71. package/src/components/Picker/PickerComponent.web.js +0 -69
  72. package/src/components/Picker/PickerTypes.js +0 -1
  73. package/src/components/Portal/Portal.js +0 -35
  74. package/src/components/Portal/PortalConsumer.js +0 -28
  75. package/src/components/Portal/PortalHost.js +0 -105
  76. package/src/components/Portal/PortalManager.js +0 -29
  77. package/src/components/ProgressBar.js +0 -118
  78. package/src/components/ProgressCircle.js +0 -13
  79. package/src/components/ProgressIndicator.js +0 -27
  80. package/src/components/RadioButton/RadioButton.js +0 -17
  81. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  82. package/src/components/RadioButton/RadioButtonGroup.js +0 -39
  83. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  84. package/src/components/RadioButton/context.js +0 -14
  85. package/src/components/RadioButton/index.js +0 -4
  86. package/src/components/ResizeMode.js +0 -1
  87. package/src/components/Row.js +0 -48
  88. package/src/components/RowBodyIcon.js +0 -8
  89. package/src/components/RowHeadlineImageCaption.js +0 -12
  90. package/src/components/RowHeadlineImageIcon.js +0 -14
  91. package/src/components/ScreenContainer.js +0 -35
  92. package/src/components/Slider.js +0 -63
  93. package/src/components/StarRating.js +0 -50
  94. package/src/components/StepIndicator.js +0 -346
  95. package/src/components/Stepper.js +0 -53
  96. package/src/components/Surface.js +0 -23
  97. package/src/components/Swiper/Swiper.js +0 -18
  98. package/src/components/Swiper/SwiperItem.js +0 -9
  99. package/src/components/Swiper/index.js +0 -2
  100. package/src/components/Switch.js +0 -56
  101. package/src/components/Text.js +0 -28
  102. package/src/components/TextField.js +0 -419
  103. package/src/components/ToggleButton.js +0 -39
  104. package/src/components/Touchable.js +0 -12
  105. package/src/components/Touchable.web.js +0 -2
  106. package/src/components/Typography.js +0 -36
  107. package/src/components/useAuthState.js +0 -31
  108. package/src/constants.js +0 -10
  109. package/src/hooks.js +0 -12
  110. package/src/index.js +0 -50
  111. package/src/interfaces/Icon.js +0 -8
  112. package/src/mappings/Accordion.js +0 -37
  113. package/src/mappings/AccordionItem.js +0 -16
  114. package/src/mappings/ActionSheet.js +0 -13
  115. package/src/mappings/ActionSheetCancel.js +0 -19
  116. package/src/mappings/ActionSheetItem.js +0 -22
  117. package/src/mappings/ActivityIndicator.js +0 -53
  118. package/src/mappings/AudioPlayer.js +0 -20
  119. package/src/mappings/AvatarEdit.js +0 -37
  120. package/src/mappings/BlurView.js +0 -41
  121. package/src/mappings/Button.js +0 -56
  122. package/src/mappings/Card.js +0 -52
  123. package/src/mappings/CardBlock.js +0 -122
  124. package/src/mappings/CardContainer.js +0 -102
  125. package/src/mappings/CardContainerRating.js +0 -124
  126. package/src/mappings/CardContainerShortImage.js +0 -118
  127. package/src/mappings/CardInline.js +0 -51
  128. package/src/mappings/Carousel.js +0 -18
  129. package/src/mappings/Checkbox.js +0 -45
  130. package/src/mappings/CheckboxGroup.js +0 -25
  131. package/src/mappings/CheckboxRow.js +0 -37
  132. package/src/mappings/CircleImage.js +0 -24
  133. package/src/mappings/Container.js +0 -29
  134. package/src/mappings/CustomCode.js +0 -8
  135. package/src/mappings/DatePicker.js +0 -146
  136. package/src/mappings/Divider.js +0 -26
  137. package/src/mappings/FAB.js +0 -36
  138. package/src/mappings/Fetch.js +0 -12
  139. package/src/mappings/FieldSearchBarFull.js +0 -49
  140. package/src/mappings/FlatList.js +0 -19
  141. package/src/mappings/HeaderLarge.js +0 -28
  142. package/src/mappings/HeaderMedium.js +0 -54
  143. package/src/mappings/HeaderOverline.js +0 -54
  144. package/src/mappings/Icon.js +0 -22
  145. package/src/mappings/IconButton.js +0 -30
  146. package/src/mappings/Image.js +0 -15
  147. package/src/mappings/ImageBackground.js +0 -28
  148. package/src/mappings/KeyboardAvoidingView.js +0 -40
  149. package/src/mappings/Layout.js +0 -195
  150. package/src/mappings/LinearGradient.js +0 -77
  151. package/src/mappings/MapCallout.js +0 -19
  152. package/src/mappings/MapMarker.js +0 -46
  153. package/src/mappings/Modal.js +0 -41
  154. package/src/mappings/Picker.js +0 -137
  155. package/src/mappings/ProgressBar.js +0 -100
  156. package/src/mappings/ProgressCircle.js +0 -108
  157. package/src/mappings/ProgressIndicator.js +0 -180
  158. package/src/mappings/RadioButton.js +0 -50
  159. package/src/mappings/RadioButtonGroup.js +0 -16
  160. package/src/mappings/RadioButtonRow.js +0 -37
  161. package/src/mappings/RowBodyIcon.js +0 -75
  162. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  163. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  164. package/src/mappings/SafeAreaView.js +0 -33
  165. package/src/mappings/ScrollView.js +0 -30
  166. package/src/mappings/Slider.js +0 -59
  167. package/src/mappings/StarRating.js +0 -46
  168. package/src/mappings/Stepper.js +0 -28
  169. package/src/mappings/Surface.js +0 -13
  170. package/src/mappings/Swiper.js +0 -60
  171. package/src/mappings/SwiperItem.js +0 -8
  172. package/src/mappings/Switch.js +0 -75
  173. package/src/mappings/Text.js +0 -227
  174. package/src/mappings/TextArea.js +0 -52
  175. package/src/mappings/TextField.js +0 -158
  176. package/src/mappings/TextInput.js +0 -208
  177. package/src/mappings/ToggleButton.js +0 -50
  178. package/src/mappings/Touchable.js +0 -12
  179. package/src/mappings/Video.js +0 -74
  180. package/src/mappings/View.js +0 -206
  181. package/src/mappings/WebView.js +0 -13
  182. package/src/styles/DarkTheme.js +0 -26
  183. package/src/styles/DefaultTheme.js +0 -111
  184. package/src/styles/fonts.js +0 -62
  185. package/src/styles/overlay.js +0 -60
  186. package/src/styles/shadow.js +0 -51
  187. package/src/theming.js +0 -3
  188. package/src/utilities.js +0 -54
@@ -1,54 +0,0 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = [
3
- {
4
- name: "Header Medium",
5
- tag: "HeaderMedium",
6
- description: "A medium header with an optional touchable right aligned text and icon.",
7
- category: COMPONENT_TYPES.header,
8
- preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
9
- supports_list_render: false,
10
- props: {
11
- title: {
12
- group: GROUPS.data,
13
- label: "Title",
14
- description: "Text to display",
15
- formType: FORM_TYPES.string,
16
- propType: PROP_TYPES.STRING,
17
- defaultValue: "Title",
18
- editable: true,
19
- required: false,
20
- },
21
- buttonText: {
22
- group: GROUPS.data,
23
- label: "Button text",
24
- description: "Right aligned button text to display",
25
- formType: FORM_TYPES.string,
26
- propType: PROP_TYPES.STRING,
27
- defaultValue: "See All",
28
- editable: true,
29
- required: false,
30
- },
31
- icon: {
32
- group: GROUPS.basic,
33
- label: "Icon",
34
- description: "Name of icon to display",
35
- formType: FORM_TYPES.icon,
36
- propType: PROP_TYPES.ASSET,
37
- defaultValue: null,
38
- editable: true,
39
- required: false,
40
- },
41
- onPress: {
42
- group: GROUPS.basic,
43
- label: "Action",
44
- description: "Action to execute when button pressed",
45
- editable: true,
46
- required: false,
47
- formType: FORM_TYPES.action,
48
- propType: PROP_TYPES.STRING,
49
- defaultValue: null,
50
- },
51
- },
52
- layout: {},
53
- },
54
- ];
@@ -1,54 +0,0 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = [
3
- {
4
- name: "Header Overline",
5
- tag: "HeaderOverline",
6
- description: "A small header with an optional touchable right aligned text and icon.",
7
- category: COMPONENT_TYPES.header,
8
- preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
9
- supports_list_render: false,
10
- props: {
11
- title: {
12
- group: GROUPS.data,
13
- label: "Title",
14
- description: "Text to display",
15
- formType: FORM_TYPES.string,
16
- propType: PROP_TYPES.STRING,
17
- defaultValue: "Title",
18
- editable: true,
19
- required: false,
20
- },
21
- buttonText: {
22
- group: GROUPS.data,
23
- label: "Button text",
24
- description: "Right aligned button text to display",
25
- formType: FORM_TYPES.string,
26
- propType: PROP_TYPES.STRING,
27
- defaultValue: "See All",
28
- editable: true,
29
- required: false,
30
- },
31
- icon: {
32
- group: GROUPS.basic,
33
- label: "Icon",
34
- description: "Name of icon to display",
35
- formType: FORM_TYPES.icon,
36
- propType: PROP_TYPES.ASSET,
37
- defaultValue: null,
38
- editable: true,
39
- required: false,
40
- },
41
- onPress: {
42
- group: GROUPS.basic,
43
- label: "Action",
44
- description: "Action to execute when button pressed",
45
- editable: true,
46
- required: false,
47
- formType: FORM_TYPES.action,
48
- propType: PROP_TYPES.STRING,
49
- defaultValue: null,
50
- },
51
- },
52
- layout: {},
53
- },
54
- ];
@@ -1,22 +0,0 @@
1
- import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createIconProp, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Icon",
4
- tag: "Icon",
5
- description: "An icon",
6
- category: COMPONENT_TYPES.basic,
7
- layout: {},
8
- props: {
9
- name: createIconProp(),
10
- color: createColorProp(),
11
- size: createNumberProp({
12
- group: GROUPS.basic,
13
- label: "Size",
14
- description: "Width and height of your icon",
15
- defaultValue: 24,
16
- min: 16,
17
- max: 128,
18
- step: 1,
19
- precision: 0,
20
- }),
21
- },
22
- };
@@ -1,30 +0,0 @@
1
- import { COMPONENT_TYPES, GROUPS, createIconProp, createColorProp, createNumberProp, createBoolProp, createActionProp, Triggers, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Icon Button",
4
- tag: "IconButton",
5
- category: COMPONENT_TYPES.button,
6
- layout: {},
7
- triggers: [Triggers.OnPress],
8
- props: {
9
- onPress: createActionProp(),
10
- icon: createIconProp(),
11
- color: createColorProp({
12
- label: "Color",
13
- group: GROUPS.basic,
14
- }),
15
- disabled: createBoolProp({
16
- label: "Disabled",
17
- group: GROUPS.basic,
18
- }),
19
- size: createNumberProp({
20
- group: GROUPS.basic,
21
- label: "Size",
22
- description: "Width and height of your icon",
23
- defaultValue: 32,
24
- min: 16,
25
- max: 128,
26
- step: 1,
27
- precision: 0,
28
- }),
29
- },
30
- };
@@ -1,15 +0,0 @@
1
- import { COMPONENT_TYPES, createImageProp, createResizeModeProp, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Image",
4
- tag: "Image",
5
- description: "A basic Image Component",
6
- category: COMPONENT_TYPES.media,
7
- layout: {
8
- width: 250,
9
- height: 250,
10
- },
11
- props: {
12
- source: createImageProp(),
13
- resizeMode: createResizeModeProp(),
14
- },
15
- };
@@ -1,28 +0,0 @@
1
- import { COMPONENT_TYPES, createImageProp, createResizeModeProp, createTextEnumProp, createColorProp, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Image Background",
4
- tag: "ImageBackground",
5
- doc_link: "https://docs.expo.io/versions/latest/react-native/imagebackground/",
6
- code_link: "https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js",
7
- description: "A very simple drop-in replacement for Image that allows you to use an Image as a background.",
8
- category: COMPONENT_TYPES.media,
9
- layout: {
10
- width: "100%",
11
- height: "100%",
12
- },
13
- props: {
14
- source: createImageProp({
15
- defaultValue: "https://static.draftbit.com/images/placeholder-image-background.png",
16
- }),
17
- resizeMode: createResizeModeProp(),
18
- backgroundColor: createColorProp({
19
- label: "Background Color",
20
- description: "If no image is chosen render a colored background.",
21
- }),
22
- backfaceVisibility: createTextEnumProp({
23
- label: "Backface Visibility",
24
- description: "When animating a card, show the back face of it",
25
- options: ["visible", "hidden"],
26
- }),
27
- },
28
- };
@@ -1,40 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Keyboard Avoiding View",
4
- tag: "KeyboardAvoidingView",
5
- description: "View that moves out of the way of the virtual keyboard. ",
6
- category: COMPONENT_TYPES.layout,
7
- props: {
8
- enabled: {
9
- label: "Enable",
10
- description: "Enable the keyboard avoiding view",
11
- editable: true,
12
- required: true,
13
- defaultValue: true,
14
- formType: FORM_TYPES.boolean,
15
- propType: PROP_TYPES.BOOLEAN,
16
- group: GROUPS.basic,
17
- },
18
- behavior: {
19
- label: "Resizing Behavior",
20
- description: "The behavior for how the keyboard resizing interacts with the rest of the screen. (Default: padding).",
21
- editable: true,
22
- required: true,
23
- defaultValue: "padding",
24
- options: ["padding", "position", "height"],
25
- formType: FORM_TYPES.flatArray,
26
- propType: PROP_TYPES.STRING,
27
- group: GROUPS.basic,
28
- },
29
- keyboardVerticalOffset: {
30
- label: "Keyboard Vertical Offset",
31
- description: "The distance between the bottom of the view and the keyboard",
32
- editable: true,
33
- required: false,
34
- defaultValue: 0,
35
- formType: FORM_TYPES.number,
36
- propType: PROP_TYPES.NUMBER,
37
- group: GROUPS.basic,
38
- },
39
- },
40
- };
@@ -1,195 +0,0 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = [
3
- {
4
- name: "Row",
5
- tag: "Row",
6
- category: COMPONENT_TYPES.layout,
7
- props: {
8
- justifyContent: {
9
- label: "Align Horizontally",
10
- group: GROUPS.style,
11
- description: "Align Items Horizontally (on the X Axis)",
12
- formType: FORM_TYPES.string,
13
- propType: PROP_TYPES.STRING,
14
- defaultValue: "flex-start",
15
- editable: true,
16
- required: false,
17
- },
18
- alignItems: {
19
- label: "Align Vertically",
20
- group: GROUPS.style,
21
- description: "Align Items Vertically (on the Y Axis)",
22
- formType: FORM_TYPES.string,
23
- propType: PROP_TYPES.STRING,
24
- defaultValue: "flex-start",
25
- editable: true,
26
- required: false,
27
- },
28
- },
29
- },
30
- {
31
- name: "Spacer",
32
- tag: "Spacer",
33
- category: COMPONENT_TYPES.layout,
34
- props: {
35
- top: {
36
- label: "Top",
37
- description: "Top",
38
- formType: FORM_TYPES.number,
39
- propType: PROP_TYPES.NUMBER,
40
- group: GROUPS.style,
41
- defaultValue: 8,
42
- editable: true,
43
- required: false,
44
- },
45
- right: {
46
- label: "Right",
47
- description: "Right",
48
- formType: FORM_TYPES.number,
49
- propType: PROP_TYPES.NUMBER,
50
- group: GROUPS.style,
51
- defaultValue: 8,
52
- editable: true,
53
- required: false,
54
- },
55
- bottom: {
56
- label: "Bottom",
57
- description: "Bottom",
58
- formType: FORM_TYPES.number,
59
- propType: PROP_TYPES.NUMBER,
60
- group: GROUPS.style,
61
- defaultValue: 8,
62
- editable: true,
63
- required: false,
64
- },
65
- left: {
66
- label: "Left",
67
- description: "Left",
68
- formType: FORM_TYPES.number,
69
- propType: PROP_TYPES.NUMBER,
70
- group: GROUPS.style,
71
- defaultValue: 8,
72
- editable: true,
73
- required: false,
74
- },
75
- },
76
- },
77
- {
78
- name: "Stack",
79
- tag: "Stack",
80
- category: COMPONENT_TYPES.layout,
81
- props: {
82
- justifyContent: {
83
- group: GROUPS.style,
84
- label: "Justify",
85
- description: "Justify horizontally",
86
- formType: FORM_TYPES.string,
87
- propType: PROP_TYPES.STRING,
88
- defaultValue: "flex-start",
89
- editable: true,
90
- required: false,
91
- },
92
- alignItems: {
93
- group: GROUPS.style,
94
- label: "Align",
95
- description: "Vertical align",
96
- formType: FORM_TYPES.string,
97
- propType: PROP_TYPES.STRING,
98
- defaultValue: "flex-start",
99
- editable: true,
100
- required: false,
101
- },
102
- },
103
- },
104
- {
105
- name: "Center",
106
- tag: "Center",
107
- category: COMPONENT_TYPES.layout,
108
- props: {
109
- width: {
110
- label: "Width",
111
- description: "Width",
112
- formType: FORM_TYPES.number,
113
- propType: PROP_TYPES.NUMBER,
114
- group: GROUPS.style,
115
- defaultValue: 240,
116
- editable: true,
117
- required: false,
118
- },
119
- height: {
120
- label: "Height",
121
- description: "Height",
122
- formType: FORM_TYPES.number,
123
- propType: PROP_TYPES.NUMBER,
124
- group: GROUPS.style,
125
- defaultValue: 200,
126
- editable: true,
127
- required: false,
128
- },
129
- bgColor: {
130
- label: "Background Color",
131
- description: "Background color",
132
- formType: FORM_TYPES.color,
133
- propType: PROP_TYPES.THEME,
134
- editable: true,
135
- required: false,
136
- defaultValue: "light",
137
- group: GROUPS.style,
138
- },
139
- },
140
- },
141
- {
142
- name: "Circle",
143
- tag: "Circle",
144
- category: COMPONENT_TYPES.layout,
145
- props: {
146
- size: {
147
- label: "Size",
148
- description: "Size",
149
- formType: FORM_TYPES.number,
150
- propType: PROP_TYPES.NUMBER,
151
- group: GROUPS.style,
152
- defaultValue: 50,
153
- editable: true,
154
- required: false,
155
- },
156
- bgColor: {
157
- label: "Background Color",
158
- description: "Background color",
159
- formType: FORM_TYPES.color,
160
- propType: PROP_TYPES.THEME,
161
- editable: true,
162
- required: false,
163
- defaultValue: "light",
164
- group: GROUPS.style,
165
- },
166
- },
167
- },
168
- {
169
- name: "Square",
170
- tag: "Square",
171
- category: COMPONENT_TYPES.layout,
172
- props: {
173
- size: {
174
- label: "Size",
175
- description: "Size",
176
- formType: FORM_TYPES.number,
177
- propType: PROP_TYPES.NUMBER,
178
- group: GROUPS.style,
179
- defaultValue: 50,
180
- editable: true,
181
- required: false,
182
- },
183
- bgColor: {
184
- label: "Background Color",
185
- description: "Background color",
186
- formType: FORM_TYPES.color,
187
- propType: PROP_TYPES.THEME,
188
- editable: true,
189
- required: false,
190
- defaultValue: "light",
191
- group: GROUPS.style,
192
- },
193
- },
194
- },
195
- ];
@@ -1,77 +0,0 @@
1
- import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Linear Gradient",
4
- tag: "LinearGradient",
5
- description: "Linear Gradient Component",
6
- layout: { width: "100%", height: "100%" },
7
- props: {
8
- endY: {
9
- group: GROUPS.basic,
10
- label: "End Y",
11
- description: "End position from Bottom",
12
- editable: true,
13
- required: false,
14
- defaultValue: 100,
15
- min: 0,
16
- max: 100,
17
- step: 1,
18
- precision: 0,
19
- formType: FORM_TYPES.number,
20
- propType: PROP_TYPES.NUMBER,
21
- },
22
- endX: {
23
- group: GROUPS.basic,
24
- label: "End X",
25
- description: "End position from Right",
26
- editable: true,
27
- required: false,
28
- defaultValue: 100,
29
- min: 0,
30
- max: 100,
31
- step: 1,
32
- precision: 0,
33
- formType: FORM_TYPES.number,
34
- propType: PROP_TYPES.NUMBER,
35
- },
36
- startY: {
37
- group: GROUPS.basic,
38
- label: "Start Y",
39
- description: "Start position from Top",
40
- editable: true,
41
- required: false,
42
- defaultValue: 0,
43
- min: 0,
44
- max: 100,
45
- step: 1,
46
- precision: 0,
47
- formType: FORM_TYPES.number,
48
- propType: PROP_TYPES.NUMBER,
49
- },
50
- startX: {
51
- group: GROUPS.basic,
52
- label: "Start X",
53
- description: "Start position from Left",
54
- editable: true,
55
- required: false,
56
- defaultValue: 0,
57
- min: 0,
58
- max: 100,
59
- step: 1,
60
- precision: 0,
61
- formType: FORM_TYPES.number,
62
- propType: PROP_TYPES.NUMBER,
63
- },
64
- color3: createColorProp({
65
- label: "Color 3",
66
- defaultValue: undefined,
67
- }),
68
- color2: createColorProp({
69
- label: "Color 2",
70
- defaultValue: "secondary",
71
- }),
72
- color1: createColorProp({
73
- label: "Color 1",
74
- defaultValue: "primary",
75
- }),
76
- },
77
- };
@@ -1,19 +0,0 @@
1
- import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Map Callout",
4
- tag: "MapCallout",
5
- description: "An info window to display on top of a marker when it is clicked",
6
- category: COMPONENT_TYPES.deprecated,
7
- layout: {},
8
- props: {
9
- onPress: createActionProp({
10
- description: "Action to execute when the callout is pressed",
11
- }),
12
- showTooltip: createBoolProp({
13
- label: "Show Tooltip",
14
- description: 'If false, a default "tooltip" bubble window will be drawn around this callout\'s children. If true, the child views can fully customize their appearance, including any "bubble"-like styles',
15
- group: GROUPS.basic,
16
- defaultValue: false,
17
- }),
18
- },
19
- };
@@ -1,46 +0,0 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Map Marker",
4
- tag: "MapMarker",
5
- description: "A marker to show inside map view",
6
- category: COMPONENT_TYPES.deprecated,
7
- layout: {},
8
- props: {
9
- latitude: createNumberProp({
10
- label: "Latitude",
11
- description: "The latitude in which the marker is located",
12
- required: true,
13
- precision: 6,
14
- min: -90,
15
- max: 90,
16
- }),
17
- longitude: createNumberProp({
18
- label: "Longitude",
19
- description: "The longitude in which the marker is located",
20
- required: true,
21
- precision: 6,
22
- min: -180,
23
- max: 180,
24
- }),
25
- title: createTextProp({
26
- label: "Title",
27
- description: "Title to show along with the marker",
28
- defaultValue: null,
29
- }),
30
- description: createTextProp({
31
- label: "Description",
32
- description: "Optional description for the marker",
33
- defaultValue: null,
34
- }),
35
- flat: createBoolProp({
36
- label: "Flat",
37
- description: "Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)",
38
- group: GROUPS.basic,
39
- defaultValue: false,
40
- }),
41
- pinColor: createColorProp({
42
- label: "Pin Color",
43
- description: "Sets the color of the marker",
44
- }),
45
- },
46
- };
@@ -1,41 +0,0 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createBoolProp, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Modal",
4
- tag: "Modal",
5
- description: "A basic Modal Component",
6
- category: COMPONENT_TYPES.container,
7
- props: {
8
- animationType: {
9
- group: GROUPS.basic,
10
- label: "Animation Type",
11
- description: "Animation Type",
12
- options: ["slide", "fade", "none"],
13
- editable: true,
14
- required: false,
15
- formType: FORM_TYPES.flatArray,
16
- propType: PROP_TYPES.STRING,
17
- defaultValue: "none",
18
- },
19
- transparent: createBoolProp({
20
- group: GROUPS.basic,
21
- label: "Transparent",
22
- description: "Determines whether the modal will fill the entire view. Setting this to true will render the modal over a transparent background",
23
- }),
24
- visible: createBoolProp({
25
- group: GROUPS.data,
26
- label: "Visible",
27
- description: "Determines whether the modal is visible",
28
- }),
29
- presentationStyle: {
30
- group: GROUPS.basic,
31
- label: "Presentation Style",
32
- description: "Presentation Style",
33
- options: ["fullScreen", "pageSheet", "formSheet", "overFullScreen"],
34
- editable: true,
35
- required: false,
36
- formType: FORM_TYPES.flatArray,
37
- propType: PROP_TYPES.STRING,
38
- defaultValue: null,
39
- },
40
- },
41
- };