@draftbit/core 46.8.2-feb14e.2 → 46.8.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 (186) hide show
  1. package/lib/commonjs/components/Justification.js +1 -5
  2. package/lib/commonjs/components/ResizeMode.js +1 -5
  3. package/lib/module/components/Justification.js +0 -1
  4. package/lib/module/components/ResizeMode.js +0 -1
  5. package/package.json +4 -5
  6. package/lib/commonjs/mappings/HtmlElements.js +0 -175
  7. package/lib/module/mappings/HtmlElements.js +0 -168
  8. package/lib/typescript/src/mappings/HtmlElements.d.ts +0 -73
  9. package/lib/typescript/src/mappings/HtmlElements.d.ts.map +0 -1
  10. package/src/Provider.js +0 -9
  11. package/src/components/Accordion/AccordionGroup.js +0 -44
  12. package/src/components/Accordion/AccordionItem.js +0 -32
  13. package/src/components/Accordion/index.js +0 -2
  14. package/src/components/ActionSheet/ActionSheet.js +0 -45
  15. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  16. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  17. package/src/components/ActionSheet/index.js +0 -3
  18. package/src/components/AnimatedCircularProgress.js +0 -43
  19. package/src/components/AspectRatio.js +0 -18
  20. package/src/components/AvatarEdit.js +0 -30
  21. package/src/components/Banner.js +0 -109
  22. package/src/components/Button.js +0 -114
  23. package/src/components/Card.js +0 -57
  24. package/src/components/Checkbox/Checkbox.js +0 -62
  25. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  26. package/src/components/Checkbox/CheckboxGroupRow.js +0 -76
  27. package/src/components/Checkbox/CheckboxRow.js +0 -77
  28. package/src/components/Checkbox/context.js +0 -14
  29. package/src/components/Checkbox/index.js +0 -3
  30. package/src/components/CircleImage.js +0 -8
  31. package/src/components/CircularProgress.js +0 -81
  32. package/src/components/Config.js +0 -64
  33. package/src/components/Container.js +0 -43
  34. package/src/components/DatePicker/DatePicker.js +0 -382
  35. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  36. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  37. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  38. package/src/components/DeckSwiper/DeckSwiper.js +0 -65
  39. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  40. package/src/components/DeckSwiper/index.js +0 -2
  41. package/src/components/DeprecatedButton.js +0 -83
  42. package/src/components/DeprecatedCardWrapper.js +0 -18
  43. package/src/components/DeprecatedFAB.js +0 -114
  44. package/src/components/Divider.js +0 -13
  45. package/src/components/Elevation.js +0 -20
  46. package/src/components/FAB.js +0 -46
  47. package/src/components/FieldSearchBarFull.js +0 -53
  48. package/src/components/FormRow.js +0 -19
  49. package/src/components/IconButton.js +0 -35
  50. package/src/components/Image.js +0 -47
  51. package/src/components/Justification.js +0 -1
  52. package/src/components/Layout.js +0 -50
  53. package/src/components/NumberInput.js +0 -49
  54. package/src/components/Picker/Picker.js +0 -266
  55. package/src/components/Picker/PickerComponent.android.js +0 -69
  56. package/src/components/Picker/PickerComponent.ios.js +0 -79
  57. package/src/components/Picker/PickerComponent.web.js +0 -70
  58. package/src/components/Picker/PickerTypes.js +0 -1
  59. package/src/components/Portal/Portal.js +0 -35
  60. package/src/components/Portal/PortalConsumer.js +0 -27
  61. package/src/components/Portal/PortalHost.js +0 -107
  62. package/src/components/Portal/PortalManager.js +0 -32
  63. package/src/components/Pressable.js +0 -12
  64. package/src/components/ProgressBar.js +0 -118
  65. package/src/components/ProgressCircle.js +0 -13
  66. package/src/components/ProgressIndicator.js +0 -27
  67. package/src/components/RadioButton/RadioButton.js +0 -17
  68. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  69. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  70. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  71. package/src/components/RadioButton/context.js +0 -14
  72. package/src/components/RadioButton/index.js +0 -4
  73. package/src/components/ResizeMode.js +0 -1
  74. package/src/components/Row.js +0 -48
  75. package/src/components/RowBodyIcon.js +0 -8
  76. package/src/components/RowHeadlineImageCaption.js +0 -12
  77. package/src/components/RowHeadlineImageIcon.js +0 -14
  78. package/src/components/SVG.js +0 -13
  79. package/src/components/ScreenContainer.js +0 -35
  80. package/src/components/Slider.js +0 -63
  81. package/src/components/StarRating.js +0 -50
  82. package/src/components/StepIndicator.js +0 -346
  83. package/src/components/Stepper.js +0 -41
  84. package/src/components/Surface.js +0 -32
  85. package/src/components/Swiper/Swiper.js +0 -29
  86. package/src/components/Swiper/SwiperItem.js +0 -9
  87. package/src/components/Swiper/index.js +0 -2
  88. package/src/components/Switch.js +0 -56
  89. package/src/components/Text.js +0 -33
  90. package/src/components/TextField.js +0 -428
  91. package/src/components/ToggleButton.js +0 -39
  92. package/src/components/Touchable.js +0 -12
  93. package/src/components/Touchable.web.js +0 -2
  94. package/src/components/Typography.js +0 -36
  95. package/src/components/useAuthState.js +0 -31
  96. package/src/constants.js +0 -10
  97. package/src/hooks.js +0 -12
  98. package/src/index.js +0 -46
  99. package/src/interfaces/Icon.js +0 -8
  100. package/src/mappings/Accordion.js +0 -50
  101. package/src/mappings/AccordionItem.js +0 -17
  102. package/src/mappings/ActionSheet.js +0 -14
  103. package/src/mappings/ActionSheetCancel.js +0 -20
  104. package/src/mappings/ActionSheetItem.js +0 -24
  105. package/src/mappings/ActivityIndicator.js +0 -58
  106. package/src/mappings/AudioPlayer.js +0 -57
  107. package/src/mappings/AvatarEdit.js +0 -38
  108. package/src/mappings/Banner.js +0 -32
  109. package/src/mappings/BlurView.js +0 -42
  110. package/src/mappings/Button.js +0 -116
  111. package/src/mappings/Card.js +0 -52
  112. package/src/mappings/CardBlock.js +0 -123
  113. package/src/mappings/CardContainer.js +0 -104
  114. package/src/mappings/CardContainerRating.js +0 -126
  115. package/src/mappings/CardContainerShortImage.js +0 -120
  116. package/src/mappings/CardInline.js +0 -52
  117. package/src/mappings/Carousel.js +0 -19
  118. package/src/mappings/Checkbox.js +0 -46
  119. package/src/mappings/CheckboxGroup.js +0 -26
  120. package/src/mappings/CheckboxRow.js +0 -61
  121. package/src/mappings/CircleImage.js +0 -25
  122. package/src/mappings/Container.js +0 -30
  123. package/src/mappings/CustomCode.js +0 -8
  124. package/src/mappings/DatePicker.js +0 -182
  125. package/src/mappings/DeckSwiper.js +0 -48
  126. package/src/mappings/DeckSwiperCard.js +0 -16
  127. package/src/mappings/Divider.js +0 -27
  128. package/src/mappings/FAB.js +0 -37
  129. package/src/mappings/Fetch.js +0 -13
  130. package/src/mappings/FieldSearchBarFull.js +0 -50
  131. package/src/mappings/FlashList.js +0 -113
  132. package/src/mappings/FlatList.js +0 -51
  133. package/src/mappings/HeaderLarge.js +0 -29
  134. package/src/mappings/HeaderMedium.js +0 -55
  135. package/src/mappings/HeaderOverline.js +0 -55
  136. package/src/mappings/HtmlElements.js +0 -191
  137. package/src/mappings/HtmlElements.ts +0 -204
  138. package/src/mappings/Icon.js +0 -32
  139. package/src/mappings/IconButton.js +0 -33
  140. package/src/mappings/Image.js +0 -35
  141. package/src/mappings/ImageBackground.js +0 -29
  142. package/src/mappings/KeyboardAvoidingView.js +0 -41
  143. package/src/mappings/KeyboardAwareScrollView.js +0 -50
  144. package/src/mappings/Layout.js +0 -200
  145. package/src/mappings/LinearGradient.js +0 -82
  146. package/src/mappings/MapCallout.js +0 -22
  147. package/src/mappings/MapMarker.js +0 -48
  148. package/src/mappings/MapView.js +0 -142
  149. package/src/mappings/Modal.js +0 -42
  150. package/src/mappings/NumberInput.js +0 -254
  151. package/src/mappings/Picker.js +0 -153
  152. package/src/mappings/ProgressBar.js +0 -101
  153. package/src/mappings/ProgressCircle.js +0 -109
  154. package/src/mappings/ProgressIndicator.js +0 -181
  155. package/src/mappings/RadioButton.js +0 -51
  156. package/src/mappings/RadioButtonGroup.js +0 -17
  157. package/src/mappings/RadioButtonRow.js +0 -42
  158. package/src/mappings/RowBodyIcon.js +0 -75
  159. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  160. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  161. package/src/mappings/SVG.js +0 -20
  162. package/src/mappings/SafeAreaView.js +0 -33
  163. package/src/mappings/ScrollView.js +0 -37
  164. package/src/mappings/Slider.js +0 -60
  165. package/src/mappings/StarRating.js +0 -43
  166. package/src/mappings/Stepper.js +0 -32
  167. package/src/mappings/Surface.js +0 -14
  168. package/src/mappings/Swiper.js +0 -71
  169. package/src/mappings/SwiperItem.js +0 -9
  170. package/src/mappings/Switch.js +0 -81
  171. package/src/mappings/Text.js +0 -251
  172. package/src/mappings/TextArea.js +0 -283
  173. package/src/mappings/TextField.js +0 -400
  174. package/src/mappings/TextInput.js +0 -402
  175. package/src/mappings/ToggleButton.js +0 -50
  176. package/src/mappings/Touchable.js +0 -67
  177. package/src/mappings/Video.js +0 -81
  178. package/src/mappings/View.js +0 -207
  179. package/src/mappings/WebView.js +0 -88
  180. package/src/styles/DarkTheme.js +0 -26
  181. package/src/styles/DefaultTheme.js +0 -111
  182. package/src/styles/fonts.js +0 -62
  183. package/src/styles/overlay.js +0 -60
  184. package/src/styles/shadow.js +0 -51
  185. package/src/theming.js +0 -3
  186. package/src/utilities.js +0 -102
@@ -1,200 +0,0 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, StylesPanelSections, } from "@draftbit/types";
2
- export const SEED_DATA = [
3
- {
4
- name: "Row",
5
- tag: "Row",
6
- category: COMPONENT_TYPES.deprecated,
7
- stylesPanelSections: [StylesPanelSections.NoStyles],
8
- props: {
9
- justifyContent: {
10
- label: "Align Horizontally",
11
- group: GROUPS.style,
12
- description: "Align Items Horizontally (on the X Axis)",
13
- formType: FORM_TYPES.string,
14
- propType: PROP_TYPES.STRING,
15
- defaultValue: "flex-start",
16
- editable: true,
17
- required: false,
18
- },
19
- alignItems: {
20
- label: "Align Vertically",
21
- group: GROUPS.style,
22
- description: "Align Items Vertically (on the Y Axis)",
23
- formType: FORM_TYPES.string,
24
- propType: PROP_TYPES.STRING,
25
- defaultValue: "flex-start",
26
- editable: true,
27
- required: false,
28
- },
29
- },
30
- },
31
- {
32
- name: "Spacer",
33
- tag: "Spacer",
34
- category: COMPONENT_TYPES.layout,
35
- props: {
36
- top: {
37
- label: "Top",
38
- description: "Top",
39
- formType: FORM_TYPES.number,
40
- propType: PROP_TYPES.NUMBER,
41
- group: GROUPS.style,
42
- defaultValue: 8,
43
- editable: true,
44
- required: false,
45
- },
46
- right: {
47
- label: "Right",
48
- description: "Right",
49
- formType: FORM_TYPES.number,
50
- propType: PROP_TYPES.NUMBER,
51
- group: GROUPS.style,
52
- defaultValue: 8,
53
- editable: true,
54
- required: false,
55
- },
56
- bottom: {
57
- label: "Bottom",
58
- description: "Bottom",
59
- formType: FORM_TYPES.number,
60
- propType: PROP_TYPES.NUMBER,
61
- group: GROUPS.style,
62
- defaultValue: 8,
63
- editable: true,
64
- required: false,
65
- },
66
- left: {
67
- label: "Left",
68
- description: "Left",
69
- formType: FORM_TYPES.number,
70
- propType: PROP_TYPES.NUMBER,
71
- group: GROUPS.style,
72
- defaultValue: 8,
73
- editable: true,
74
- required: false,
75
- },
76
- },
77
- },
78
- {
79
- name: "Stack",
80
- tag: "Stack",
81
- category: COMPONENT_TYPES.deprecated,
82
- stylesPanelSections: [StylesPanelSections.NoStyles],
83
- props: {
84
- justifyContent: {
85
- group: GROUPS.style,
86
- label: "Justify",
87
- description: "Justify horizontally",
88
- formType: FORM_TYPES.string,
89
- propType: PROP_TYPES.STRING,
90
- defaultValue: "flex-start",
91
- editable: true,
92
- required: false,
93
- },
94
- alignItems: {
95
- group: GROUPS.style,
96
- label: "Align",
97
- description: "Vertical align",
98
- formType: FORM_TYPES.string,
99
- propType: PROP_TYPES.STRING,
100
- defaultValue: "flex-start",
101
- editable: true,
102
- required: false,
103
- },
104
- },
105
- },
106
- {
107
- name: "Center",
108
- tag: "Center",
109
- category: COMPONENT_TYPES.layout,
110
- stylesPanelSections: [StylesPanelSections.NoStyles],
111
- props: {
112
- width: {
113
- label: "Width",
114
- description: "Width",
115
- formType: FORM_TYPES.number,
116
- propType: PROP_TYPES.NUMBER,
117
- group: GROUPS.style,
118
- defaultValue: 240,
119
- editable: true,
120
- required: false,
121
- },
122
- height: {
123
- label: "Height",
124
- description: "Height",
125
- formType: FORM_TYPES.number,
126
- propType: PROP_TYPES.NUMBER,
127
- group: GROUPS.style,
128
- defaultValue: 200,
129
- editable: true,
130
- required: false,
131
- },
132
- bgColor: {
133
- label: "Background Color",
134
- description: "Background color",
135
- formType: FORM_TYPES.color,
136
- propType: PROP_TYPES.THEME,
137
- editable: true,
138
- required: false,
139
- defaultValue: "light",
140
- group: GROUPS.style,
141
- },
142
- },
143
- },
144
- {
145
- name: "Circle",
146
- tag: "Circle",
147
- category: COMPONENT_TYPES.layout,
148
- stylesPanelSections: [StylesPanelSections.NoStyles],
149
- props: {
150
- size: {
151
- label: "Size",
152
- description: "Size",
153
- formType: FORM_TYPES.number,
154
- propType: PROP_TYPES.NUMBER,
155
- group: GROUPS.style,
156
- defaultValue: 50,
157
- editable: true,
158
- required: false,
159
- },
160
- bgColor: {
161
- label: "Background Color",
162
- description: "Background color",
163
- formType: FORM_TYPES.color,
164
- propType: PROP_TYPES.THEME,
165
- editable: true,
166
- required: false,
167
- defaultValue: "light",
168
- group: GROUPS.style,
169
- },
170
- },
171
- },
172
- {
173
- name: "Square",
174
- tag: "Square",
175
- category: COMPONENT_TYPES.layout,
176
- stylesPanelSections: [StylesPanelSections.NoStyles],
177
- props: {
178
- size: {
179
- label: "Size",
180
- description: "Size",
181
- formType: FORM_TYPES.number,
182
- propType: PROP_TYPES.NUMBER,
183
- group: GROUPS.style,
184
- defaultValue: 50,
185
- editable: true,
186
- required: false,
187
- },
188
- bgColor: {
189
- label: "Background Color",
190
- description: "Background color",
191
- formType: FORM_TYPES.color,
192
- propType: PROP_TYPES.THEME,
193
- editable: true,
194
- required: false,
195
- defaultValue: "light",
196
- group: GROUPS.style,
197
- },
198
- },
199
- },
200
- ];
@@ -1,82 +0,0 @@
1
- import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections, } 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
- stylesPanelSections: [
8
- StylesPanelSections.MarginsAndPaddings,
9
- StylesPanelSections.Borders,
10
- StylesPanelSections.Effects,
11
- ],
12
- props: {
13
- endY: {
14
- group: GROUPS.basic,
15
- label: "End Y",
16
- description: "End position from Bottom",
17
- editable: true,
18
- required: false,
19
- defaultValue: 100,
20
- min: 0,
21
- max: 100,
22
- step: 1,
23
- precision: 0,
24
- formType: FORM_TYPES.number,
25
- propType: PROP_TYPES.NUMBER,
26
- },
27
- endX: {
28
- group: GROUPS.basic,
29
- label: "End X",
30
- description: "End position from Right",
31
- editable: true,
32
- required: false,
33
- defaultValue: 100,
34
- min: 0,
35
- max: 100,
36
- step: 1,
37
- precision: 0,
38
- formType: FORM_TYPES.number,
39
- propType: PROP_TYPES.NUMBER,
40
- },
41
- startY: {
42
- group: GROUPS.basic,
43
- label: "Start Y",
44
- description: "Start position from Top",
45
- editable: true,
46
- required: false,
47
- defaultValue: 0,
48
- min: 0,
49
- max: 100,
50
- step: 1,
51
- precision: 0,
52
- formType: FORM_TYPES.number,
53
- propType: PROP_TYPES.NUMBER,
54
- },
55
- startX: {
56
- group: GROUPS.basic,
57
- label: "Start X",
58
- description: "Start position from Left",
59
- editable: true,
60
- required: false,
61
- defaultValue: 0,
62
- min: 0,
63
- max: 100,
64
- step: 1,
65
- precision: 0,
66
- formType: FORM_TYPES.number,
67
- propType: PROP_TYPES.NUMBER,
68
- },
69
- color3: createColorProp({
70
- label: "Color 3",
71
- defaultValue: undefined,
72
- }),
73
- color2: createColorProp({
74
- label: "Color 2",
75
- defaultValue: "secondary",
76
- }),
77
- color1: createColorProp({
78
- label: "Color 1",
79
- defaultValue: "primary",
80
- }),
81
- },
82
- };
@@ -1,22 +0,0 @@
1
- import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Map Callout",
4
- tag: "MapCallout",
5
- packageName: "@draftbit/maps",
6
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
- description: "An info window to display on top of a marker when it is clicked",
8
- category: COMPONENT_TYPES.map,
9
- triggers: [Triggers.OnPress],
10
- layout: {},
11
- props: {
12
- onPress: createActionProp({
13
- description: "Action to execute when the callout is pressed",
14
- }),
15
- showTooltip: createBoolProp({
16
- label: "Show Tooltip",
17
- 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',
18
- group: GROUPS.basic,
19
- defaultValue: false,
20
- }),
21
- },
22
- };
@@ -1,48 +0,0 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Map Marker",
4
- tag: "MapMarker",
5
- packageName: "@draftbit/maps",
6
- description: "A marker to show inside map view",
7
- category: COMPONENT_TYPES.map,
8
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
9
- layout: {},
10
- props: {
11
- latitude: createNumberProp({
12
- label: "Latitude",
13
- description: "The latitude in which the marker is located",
14
- required: true,
15
- precision: 6,
16
- min: -90,
17
- max: 90,
18
- }),
19
- longitude: createNumberProp({
20
- label: "Longitude",
21
- description: "The longitude in which the marker is located",
22
- required: true,
23
- precision: 6,
24
- min: -180,
25
- max: 180,
26
- }),
27
- title: createTextProp({
28
- label: "Title",
29
- description: "Title to show along with the marker",
30
- defaultValue: null,
31
- }),
32
- description: createTextProp({
33
- label: "Description",
34
- description: "Optional description for the marker",
35
- defaultValue: null,
36
- }),
37
- flat: createBoolProp({
38
- label: "Flat",
39
- description: "Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)",
40
- group: GROUPS.basic,
41
- defaultValue: false,
42
- }),
43
- pinColor: createColorProp({
44
- label: "Pin Color",
45
- description: "Sets the color of the marker",
46
- }),
47
- },
48
- };
@@ -1,142 +0,0 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, StylesPanelSections, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Map View",
4
- tag: "MapView",
5
- packageName: "@draftbit/maps",
6
- description: "A map view",
7
- category: COMPONENT_TYPES.map,
8
- stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
9
- layout: {
10
- flex: 1,
11
- width: "100%",
12
- height: "100%",
13
- },
14
- props: {
15
- provider: {
16
- formType: FORM_TYPES.flatArray,
17
- propType: PROP_TYPES.STRING,
18
- editable: true,
19
- group: GROUPS.basic,
20
- label: "Provider",
21
- description: "The maps provider",
22
- required: false,
23
- defaultValue: null,
24
- options: ["google"],
25
- },
26
- latitude: createNumberProp({
27
- label: "Initial Latitude",
28
- description: "The longitude for the map's initial region",
29
- required: false,
30
- precision: 6,
31
- min: -90,
32
- max: 90,
33
- defaultValue: 37.40241,
34
- }),
35
- longitude: createNumberProp({
36
- label: "Initial Longitude",
37
- description: "The longitude for the map's initial region",
38
- required: false,
39
- precision: 6,
40
- min: -180,
41
- max: 180,
42
- defaultValue: -122.12125,
43
- }),
44
- zoom: createNumberProp({
45
- label: "Initial Zoom",
46
- description: "The initial zoom of the map",
47
- required: true,
48
- precision: 0,
49
- step: 1,
50
- defaultValue: 8,
51
- min: 0,
52
- max: 22,
53
- group: GROUPS.basic,
54
- }),
55
- mapType: {
56
- label: "Map Type",
57
- description: "The type of map to show",
58
- group: GROUPS.basic,
59
- editable: true,
60
- formType: FORM_TYPES.flatArray,
61
- propType: PROP_TYPES.STRING,
62
- required: false,
63
- defaultValue: null,
64
- options: [
65
- "standard",
66
- "satellite",
67
- "hybrid",
68
- "terrain",
69
- "none",
70
- "mutedStandard",
71
- ],
72
- },
73
- zoomEnabled: createBoolProp({
74
- label: "Zoom Enabled",
75
- description: "Whether zooming is enabled (native only)",
76
- group: GROUPS.basic,
77
- required: false,
78
- defaultValue: true,
79
- }),
80
- showsCompass: createBoolProp({
81
- label: "Shows Compass",
82
- description: "Whether compass is shown",
83
- group: GROUPS.basic,
84
- required: false,
85
- defaultValue: false,
86
- }),
87
- rotateEnabled: createBoolProp({
88
- label: "Rotate Enabled",
89
- description: "Whether rotating the map is enabled",
90
- group: GROUPS.basic,
91
- required: false,
92
- defaultValue: true,
93
- }),
94
- scrollEnabled: createBoolProp({
95
- label: "Pan Enabled",
96
- description: "Whether panning the map view is enabled",
97
- group: GROUPS.basic,
98
- required: false,
99
- defaultValue: true,
100
- }),
101
- loadingEnabled: createBoolProp({
102
- label: "Loading Enabled",
103
- description: "If true a loading indicator will show while the map is loading",
104
- group: GROUPS.basic,
105
- required: false,
106
- defaultValue: true,
107
- }),
108
- loadingIndicatorColor: createColorProp({
109
- label: "Loading Indicator Color",
110
- description: "Color of the loading indicator",
111
- }),
112
- loadingBackgroundColor: createColorProp({
113
- label: "Loading BG Color",
114
- description: "Color of the background to show while the map is loading",
115
- }),
116
- showsUserLocation: createBoolProp({
117
- label: "Shows User Location",
118
- description: "Whether to show the user's location on the map",
119
- required: false,
120
- defaultValue: null,
121
- group: GROUPS.basic,
122
- }),
123
- followsUserLocation: createBoolProp({
124
- label: "Follows User Location (iOS only)",
125
- description: "Whether to set the map region to follow the user's location",
126
- required: false,
127
- defaultValue: null,
128
- group: GROUPS.basic,
129
- }),
130
- showsPointsOfInterest: createBoolProp({
131
- label: "Shows Points of Interest",
132
- description: "Whether to show points of interest on the map.",
133
- required: false,
134
- defaultValue: true,
135
- group: GROUPS.basic,
136
- }),
137
- apiKey: createTextProp({
138
- defaultValue: process.env.GOOGLE_MAPS_API_KEY,
139
- editable: false,
140
- }),
141
- },
142
- };
@@ -1,42 +0,0 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createBoolProp, StylesPanelSections, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Modal",
4
- tag: "Modal",
5
- description: "A basic Modal Component",
6
- category: COMPONENT_TYPES.layout,
7
- stylesPanelSections: [StylesPanelSections.NoStyles],
8
- props: {
9
- animationType: {
10
- group: GROUPS.basic,
11
- label: "Animation Type",
12
- description: "Animation Type",
13
- options: ["slide", "fade", "none"],
14
- editable: true,
15
- required: false,
16
- formType: FORM_TYPES.flatArray,
17
- propType: PROP_TYPES.STRING,
18
- defaultValue: "none",
19
- },
20
- transparent: createBoolProp({
21
- group: GROUPS.basic,
22
- label: "Transparent",
23
- description: "Determines whether the modal will fill the entire view. Setting this to true will render the modal over a transparent background",
24
- }),
25
- visible: createBoolProp({
26
- group: GROUPS.data,
27
- label: "Visible",
28
- description: "Determines whether the modal is visible",
29
- }),
30
- presentationStyle: {
31
- group: GROUPS.basic,
32
- label: "Presentation Style",
33
- description: "Presentation Style",
34
- options: ["fullScreen", "pageSheet", "formSheet", "overFullScreen"],
35
- editable: true,
36
- required: false,
37
- formType: FORM_TYPES.flatArray,
38
- propType: PROP_TYPES.STRING,
39
- defaultValue: null,
40
- },
41
- },
42
- };