@draftbit/core 44.1.13-3bb0d0.0 → 44.1.13-549e34.0

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 (201) hide show
  1. package/lib/commonjs/components/DeprecatedButton.js +4 -19
  2. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  3. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -14
  4. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  5. package/lib/commonjs/components/Justification.js +0 -3
  6. package/lib/commonjs/components/Picker/PickerComponent.android.js +16 -41
  7. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  8. package/lib/commonjs/components/Picker/PickerComponent.ios.js +31 -73
  9. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  10. package/lib/commonjs/components/Picker/PickerComponent.web.js +16 -41
  11. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
  12. package/lib/commonjs/components/ResizeMode.js +0 -3
  13. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  14. package/lib/module/components/AspectRatio.js +2 -17
  15. package/lib/module/components/AspectRatio.js.map +1 -1
  16. package/lib/module/components/Justification.js +1 -1
  17. package/lib/module/components/Picker/PickerComponent.android.js +19 -39
  18. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
  19. package/lib/module/components/Picker/PickerComponent.ios.js +35 -66
  20. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
  21. package/lib/module/components/Picker/PickerComponent.web.js +19 -39
  22. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
  23. package/lib/module/components/ResizeMode.js +1 -1
  24. package/package.json +2 -2
  25. package/src/components/Picker/PickerComponent.android.tsx +18 -40
  26. package/src/components/Picker/PickerComponent.ios.tsx +37 -72
  27. package/src/components/Picker/PickerComponent.web.tsx +18 -40
  28. package/src/Provider.js +0 -9
  29. package/src/components/Accordion/AccordionGroup.js +0 -44
  30. package/src/components/Accordion/AccordionItem.js +0 -32
  31. package/src/components/Accordion/index.js +0 -2
  32. package/src/components/ActionSheet/ActionSheet.js +0 -45
  33. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  34. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  35. package/src/components/ActionSheet/index.js +0 -3
  36. package/src/components/AnimatedCircularProgress.js +0 -43
  37. package/src/components/AspectRatio.js +0 -18
  38. package/src/components/AvatarEdit.js +0 -30
  39. package/src/components/Banner.js +0 -109
  40. package/src/components/Button.js +0 -112
  41. package/src/components/Card.js +0 -57
  42. package/src/components/CardBlock.js +0 -54
  43. package/src/components/CardContainer.js +0 -69
  44. package/src/components/CardContainerRating.js +0 -79
  45. package/src/components/CardContainerShortImage.js +0 -33
  46. package/src/components/CardInline.js +0 -36
  47. package/src/components/Carousel.js +0 -66
  48. package/src/components/Checkbox/Checkbox.js +0 -63
  49. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  50. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  51. package/src/components/Checkbox/CheckboxRow.js +0 -78
  52. package/src/components/Checkbox/context.js +0 -14
  53. package/src/components/Checkbox/index.js +0 -3
  54. package/src/components/CircleImage.js +0 -8
  55. package/src/components/CircularProgress.js +0 -78
  56. package/src/components/Config.js +0 -63
  57. package/src/components/Container.js +0 -43
  58. package/src/components/DatePicker/DatePicker.js +0 -368
  59. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  60. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  61. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  62. package/src/components/DeprecatedButton.js +0 -95
  63. package/src/components/DeprecatedCardWrapper.js +0 -18
  64. package/src/components/DeprecatedFAB.js +0 -115
  65. package/src/components/Divider.js +0 -13
  66. package/src/components/Elevation.js +0 -20
  67. package/src/components/FAB.js +0 -46
  68. package/src/components/FieldSearchBarFull.js +0 -53
  69. package/src/components/FormRow.js +0 -19
  70. package/src/components/Header.js +0 -44
  71. package/src/components/HeaderLarge.js +0 -7
  72. package/src/components/HeaderMedium.js +0 -7
  73. package/src/components/HeaderOverline.js +0 -7
  74. package/src/components/IconButton.js +0 -35
  75. package/src/components/Image.js +0 -47
  76. package/src/components/Justification.js +0 -1
  77. package/src/components/Layout.js +0 -50
  78. package/src/components/NumberInput.js +0 -49
  79. package/src/components/Picker/Picker.js +0 -268
  80. package/src/components/Picker/PickerComponent.android.js +0 -20
  81. package/src/components/Picker/PickerComponent.ios.js +0 -43
  82. package/src/components/Picker/PickerComponent.web.js +0 -20
  83. package/src/components/Portal/Portal.js +0 -35
  84. package/src/components/Portal/PortalConsumer.js +0 -28
  85. package/src/components/Portal/PortalHost.js +0 -105
  86. package/src/components/Portal/PortalManager.js +0 -29
  87. package/src/components/ProgressBar.js +0 -118
  88. package/src/components/ProgressCircle.js +0 -13
  89. package/src/components/ProgressIndicator.js +0 -27
  90. package/src/components/RadioButton/RadioButton.js +0 -17
  91. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  92. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  93. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  94. package/src/components/RadioButton/context.js +0 -14
  95. package/src/components/RadioButton/index.js +0 -4
  96. package/src/components/ResizeMode.js +0 -1
  97. package/src/components/Row.js +0 -48
  98. package/src/components/RowBodyIcon.js +0 -8
  99. package/src/components/RowHeadlineImageCaption.js +0 -12
  100. package/src/components/RowHeadlineImageIcon.js +0 -14
  101. package/src/components/ScreenContainer.js +0 -34
  102. package/src/components/Slider.js +0 -63
  103. package/src/components/StarRating.js +0 -50
  104. package/src/components/StepIndicator.js +0 -346
  105. package/src/components/Stepper.js +0 -39
  106. package/src/components/Surface.js +0 -32
  107. package/src/components/Swiper/Swiper.js +0 -29
  108. package/src/components/Swiper/SwiperItem.js +0 -9
  109. package/src/components/Swiper/index.js +0 -2
  110. package/src/components/Switch.js +0 -56
  111. package/src/components/Text.js +0 -28
  112. package/src/components/TextField.js +0 -420
  113. package/src/components/ToggleButton.js +0 -39
  114. package/src/components/Touchable.js +0 -12
  115. package/src/components/Touchable.web.js +0 -2
  116. package/src/components/Typography.js +0 -36
  117. package/src/components/useAuthState.js +0 -31
  118. package/src/constants.js +0 -10
  119. package/src/hooks.js +0 -12
  120. package/src/index.js +0 -52
  121. package/src/interfaces/Icon.js +0 -8
  122. package/src/mappings/Accordion.js +0 -41
  123. package/src/mappings/AccordionItem.js +0 -16
  124. package/src/mappings/ActionSheet.js +0 -13
  125. package/src/mappings/ActionSheetCancel.js +0 -19
  126. package/src/mappings/ActionSheetItem.js +0 -23
  127. package/src/mappings/ActivityIndicator.js +0 -53
  128. package/src/mappings/AudioPlayer.js +0 -20
  129. package/src/mappings/AvatarEdit.js +0 -37
  130. package/src/mappings/Banner.js +0 -32
  131. package/src/mappings/BlurView.js +0 -41
  132. package/src/mappings/Button.js +0 -56
  133. package/src/mappings/Card.js +0 -52
  134. package/src/mappings/CardBlock.js +0 -122
  135. package/src/mappings/CardContainer.js +0 -102
  136. package/src/mappings/CardContainerRating.js +0 -124
  137. package/src/mappings/CardContainerShortImage.js +0 -118
  138. package/src/mappings/CardInline.js +0 -51
  139. package/src/mappings/Carousel.js +0 -18
  140. package/src/mappings/Checkbox.js +0 -45
  141. package/src/mappings/CheckboxGroup.js +0 -25
  142. package/src/mappings/CheckboxRow.js +0 -56
  143. package/src/mappings/CircleImage.js +0 -24
  144. package/src/mappings/Container.js +0 -29
  145. package/src/mappings/CustomCode.js +0 -8
  146. package/src/mappings/DatePicker.js +0 -146
  147. package/src/mappings/Divider.js +0 -26
  148. package/src/mappings/FAB.js +0 -36
  149. package/src/mappings/Fetch.js +0 -12
  150. package/src/mappings/FieldSearchBarFull.js +0 -49
  151. package/src/mappings/FlatList.js +0 -19
  152. package/src/mappings/HeaderLarge.js +0 -28
  153. package/src/mappings/HeaderMedium.js +0 -54
  154. package/src/mappings/HeaderOverline.js +0 -54
  155. package/src/mappings/Icon.js +0 -25
  156. package/src/mappings/IconButton.js +0 -30
  157. package/src/mappings/Image.js +0 -15
  158. package/src/mappings/ImageBackground.js +0 -28
  159. package/src/mappings/KeyboardAvoidingView.js +0 -40
  160. package/src/mappings/KeyboardAwareScrollView.js +0 -49
  161. package/src/mappings/Layout.js +0 -195
  162. package/src/mappings/LinearGradient.js +0 -77
  163. package/src/mappings/MapCallout.js +0 -21
  164. package/src/mappings/MapMarker.js +0 -47
  165. package/src/mappings/MapView.js +0 -138
  166. package/src/mappings/Modal.js +0 -41
  167. package/src/mappings/Picker.js +0 -139
  168. package/src/mappings/ProgressBar.js +0 -100
  169. package/src/mappings/ProgressCircle.js +0 -108
  170. package/src/mappings/ProgressIndicator.js +0 -180
  171. package/src/mappings/RadioButton.js +0 -50
  172. package/src/mappings/RadioButtonGroup.js +0 -16
  173. package/src/mappings/RadioButtonRow.js +0 -37
  174. package/src/mappings/RowBodyIcon.js +0 -75
  175. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  176. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  177. package/src/mappings/SafeAreaView.js +0 -33
  178. package/src/mappings/ScrollView.js +0 -30
  179. package/src/mappings/Slider.js +0 -59
  180. package/src/mappings/StarRating.js +0 -42
  181. package/src/mappings/Stepper.js +0 -28
  182. package/src/mappings/Surface.js +0 -13
  183. package/src/mappings/Swiper.js +0 -60
  184. package/src/mappings/SwiperItem.js +0 -8
  185. package/src/mappings/Switch.js +0 -75
  186. package/src/mappings/Text.js +0 -232
  187. package/src/mappings/TextArea.js +0 -52
  188. package/src/mappings/TextField.js +0 -158
  189. package/src/mappings/TextInput.js +0 -208
  190. package/src/mappings/ToggleButton.js +0 -45
  191. package/src/mappings/Touchable.js +0 -12
  192. package/src/mappings/Video.js +0 -74
  193. package/src/mappings/View.js +0 -206
  194. package/src/mappings/WebView.js +0 -18
  195. package/src/styles/DarkTheme.js +0 -26
  196. package/src/styles/DefaultTheme.js +0 -111
  197. package/src/styles/fonts.js +0 -62
  198. package/src/styles/overlay.js +0 -60
  199. package/src/styles/shadow.js +0 -51
  200. package/src/theming.js +0 -3
  201. package/src/utilities.js +0 -102
@@ -1,100 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = [
3
- {
4
- name: "Progress Bar",
5
- tag: "ProgressBar",
6
- description: "A horizontal bar used to show completed progress",
7
- category: COMPONENT_TYPES.deprecated,
8
- preview_image_url: "{CLOUDINARY_URL}/Status_Progress.png",
9
- supports_list_render: false,
10
- props: {
11
- progress: {
12
- group: GROUPS.data,
13
- label: "Progress",
14
- description: "The amount of progress to display. A number 0-1.",
15
- formType: FORM_TYPES.number,
16
- propType: PROP_TYPES.NUMBER,
17
- defaultValue: 0.5,
18
- min: 0,
19
- max: 1,
20
- step: 0.01,
21
- precision: 2,
22
- editable: true,
23
- required: true,
24
- },
25
- color: {
26
- group: GROUPS.basic,
27
- label: "Progress Color",
28
- description: "Custom color for the progress shown",
29
- formType: FORM_TYPES.color,
30
- propType: PROP_TYPES.THEME,
31
- defaultValue: null,
32
- editable: true,
33
- required: true,
34
- },
35
- unfilledColor: {
36
- group: GROUPS.basic,
37
- label: "Unfilled Color",
38
- description: "The color of the unfilled portion of the progress bar(eg. if at 50% then this is the color of the other 50%)",
39
- formType: FORM_TYPES.color,
40
- propType: PROP_TYPES.THEME,
41
- defaultValue: null,
42
- editable: true,
43
- required: true,
44
- },
45
- borderRadius: {
46
- group: GROUPS.basic,
47
- label: "Border Radius",
48
- description: "The border radius of the bar",
49
- formType: FORM_TYPES.number,
50
- propType: PROP_TYPES.NUMBER,
51
- defaultValue: 10,
52
- min: 0,
53
- max: 100,
54
- step: 1,
55
- precision: 1,
56
- editable: true,
57
- required: true,
58
- },
59
- borderWidth: {
60
- group: GROUPS.basic,
61
- label: "Border Width",
62
- description: "The width of the border that surrounds the bar.",
63
- formType: FORM_TYPES.number,
64
- propType: PROP_TYPES.NUMBER,
65
- defaultValue: 1,
66
- min: 0,
67
- max: 15,
68
- step: 1,
69
- precision: 1,
70
- editable: true,
71
- required: true,
72
- },
73
- borderColor: {
74
- group: GROUPS.basic,
75
- label: "Border Color",
76
- description: "Custom color for border of the entire bar",
77
- formType: FORM_TYPES.color,
78
- propType: PROP_TYPES.THEME,
79
- defaultValue: null,
80
- editable: true,
81
- required: true,
82
- },
83
- animationType: {
84
- group: GROUPS.basic,
85
- label: "Animation Type",
86
- description: "The type of animation that occurs when the bar is filled(Default is Spring)",
87
- formType: FORM_TYPES.flatArray,
88
- propType: PROP_TYPES.STRING,
89
- defaultValue: "spring",
90
- options: ["decay", "timing", "spring"],
91
- editable: true,
92
- required: true,
93
- },
94
- },
95
- layout: {
96
- width: 200,
97
- height: 20,
98
- },
99
- },
100
- ];
@@ -1,108 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Progress Circle",
4
- tag: "ProgressCircle",
5
- description: "A circle used to show completed progress",
6
- category: COMPONENT_TYPES.deprecated,
7
- preview_image_url: "{CLOUDINARY_URL}/Status_Progress.png",
8
- supports_list_render: false,
9
- props: {
10
- progress: {
11
- group: GROUPS.data,
12
- label: "Progress",
13
- description: "The amount of progress to display. A number 0-1.",
14
- formType: FORM_TYPES.number,
15
- propType: PROP_TYPES.NUMBER,
16
- defaultValue: 0.5,
17
- min: 0,
18
- max: 1,
19
- step: 0.01,
20
- precision: 2,
21
- editable: true,
22
- required: true,
23
- },
24
- color: {
25
- group: GROUPS.basic,
26
- label: "Color",
27
- description: "Color for the progress shown",
28
- editable: true,
29
- defaultValue: "primary",
30
- required: true,
31
- formType: FORM_TYPES.color,
32
- propType: PROP_TYPES.THEME,
33
- },
34
- unfilledColor: {
35
- group: GROUPS.basic,
36
- label: "Unfilled Color",
37
- description: "The color of the unfilled portion of the progress bar(eg. if at 50% then this is the color of the other 50%)",
38
- editable: true,
39
- defaultValue: null,
40
- required: true,
41
- formType: FORM_TYPES.color,
42
- propType: PROP_TYPES.THEME,
43
- },
44
- size: {
45
- group: GROUPS.basic,
46
- label: "Size",
47
- description: "The size of the circle",
48
- formType: FORM_TYPES.number,
49
- propType: PROP_TYPES.NUMBER,
50
- defaultValue: 100,
51
- min: 0,
52
- max: 300,
53
- step: 1,
54
- precision: 1,
55
- editable: true,
56
- required: true,
57
- },
58
- showsText: {
59
- group: GROUPS.basic,
60
- label: "Show Progress Text",
61
- description: "Shows progress in the middle of the circle",
62
- formType: FORM_TYPES.boolean,
63
- propType: PROP_TYPES.BOOLEAN,
64
- defaultValue: true,
65
- editable: true,
66
- required: true,
67
- },
68
- textStyle: {
69
- group: GROUPS.basic,
70
- label: "Text Style",
71
- description: "Text Style of the inner circle",
72
- editable: true,
73
- required: true,
74
- formType: FORM_TYPES.typeStyle,
75
- propType: PROP_TYPES.THEME,
76
- defaultValue: null,
77
- },
78
- thickness: {
79
- group: GROUPS.basic,
80
- label: "Thickness",
81
- description: "Thickness of the inner circle",
82
- formType: FORM_TYPES.number,
83
- propType: PROP_TYPES.NUMBER,
84
- defaultValue: 1,
85
- min: 0,
86
- max: 15,
87
- step: 1,
88
- precision: 1,
89
- editable: true,
90
- required: true,
91
- },
92
- strokeCap: {
93
- group: GROUPS.basic,
94
- label: "Stroke Cap",
95
- description: "The style of the stroke",
96
- formType: FORM_TYPES.flatArray,
97
- propType: PROP_TYPES.STRING,
98
- defaultValue: "butt",
99
- options: ["butt", "square", "round"],
100
- editable: true,
101
- required: true,
102
- },
103
- },
104
- layout: {
105
- width: 250,
106
- height: 250,
107
- },
108
- };
@@ -1,180 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Progress Indicator",
4
- tag: "ProgressIndicator",
5
- description: "A component used to show current Step in a process",
6
- category: COMPONENT_TYPES.deprecated,
7
- preview_image_url: "{CLOUDINARY_URL}/Control_Slider.png",
8
- supports_list_render: false,
9
- layout: {},
10
- props: {
11
- numberOfSteps: {
12
- group: GROUPS.data,
13
- label: "Number of Steps",
14
- description: "The border radius for the thumb",
15
- editable: true,
16
- required: false,
17
- formType: FORM_TYPES.number,
18
- propType: PROP_TYPES.NUMBER,
19
- min: 0,
20
- max: 10,
21
- step: 1,
22
- precision: 0,
23
- defaultValue: 5,
24
- },
25
- currentStep: {
26
- group: GROUPS.data,
27
- label: "Current Step",
28
- description: "The step that the user is on",
29
- editable: true,
30
- required: false,
31
- formType: FORM_TYPES.number,
32
- propType: PROP_TYPES.NUMBER,
33
- min: 0,
34
- max: 10,
35
- step: 1,
36
- precision: 0,
37
- defaultValue: 5,
38
- },
39
- stepIndicatorSize: {
40
- group: GROUPS.basic,
41
- label: "Step Size",
42
- description: "The size of the step circle",
43
- editable: true,
44
- required: false,
45
- formType: FORM_TYPES.number,
46
- propType: PROP_TYPES.NUMBER,
47
- min: 10,
48
- max: 100,
49
- step: 5,
50
- precision: 0,
51
- defaultValue: 25,
52
- },
53
- stepIndicatorLabelFontSize: {
54
- group: GROUPS.basic,
55
- label: "Step Font Size",
56
- description: "The font size of the step number",
57
- editable: true,
58
- required: false,
59
- formType: FORM_TYPES.number,
60
- propType: PROP_TYPES.NUMBER,
61
- min: 6,
62
- max: 36,
63
- step: 1,
64
- precision: 0,
65
- defaultValue: 15,
66
- },
67
- currentStepIndicatorLabelFontSize: {
68
- group: GROUPS.basic,
69
- label: "Current Step Font Size",
70
- description: "The font size of the current step number",
71
- editable: true,
72
- required: false,
73
- formType: FORM_TYPES.number,
74
- propType: PROP_TYPES.NUMBER,
75
- min: 6,
76
- max: 36,
77
- step: 1,
78
- precision: 0,
79
- defaultValue: 15,
80
- },
81
- unfinishedColor: {
82
- group: GROUPS.basic,
83
- label: "Unfinished Color",
84
- description: "The color of the step and divider when the step is either not the current step or not finished",
85
- editable: true,
86
- required: false,
87
- formType: FORM_TYPES.color,
88
- propType: PROP_TYPES.THEME,
89
- defaultValue: null,
90
- },
91
- finishedColor: {
92
- group: GROUPS.basic,
93
- label: "Finished Color",
94
- description: "The color of the step and divider when the step is the current step or finished",
95
- editable: true,
96
- required: false,
97
- formType: FORM_TYPES.color,
98
- propType: PROP_TYPES.THEME,
99
- defaultValue: null,
100
- },
101
- stepNumberUnfinishedColor: {
102
- group: GROUPS.basic,
103
- label: "Unfinished Number Color",
104
- description: "The color of the number within the step when unfinished",
105
- editable: true,
106
- required: false,
107
- formType: FORM_TYPES.color,
108
- propType: PROP_TYPES.THEME,
109
- defaultValue: null,
110
- },
111
- stepNumberFinishedColor: {
112
- group: GROUPS.basic,
113
- label: "Finished Number Color",
114
- description: "The color of the number within the step when finished",
115
- editable: true,
116
- required: false,
117
- formType: FORM_TYPES.color,
118
- propType: PROP_TYPES.THEME,
119
- defaultValue: null,
120
- },
121
- stepIndicatorCurrentColor: {
122
- group: GROUPS.basic,
123
- label: "Current Step Color",
124
- description: "The color of current step circle",
125
- editable: true,
126
- required: false,
127
- formType: FORM_TYPES.color,
128
- propType: PROP_TYPES.THEME,
129
- defaultValue: null,
130
- },
131
- stepIndicatorLabelCurrentColor: {
132
- group: GROUPS.basic,
133
- label: "Current Step Number Color",
134
- description: "The color of current number within the step circle",
135
- editable: true,
136
- required: false,
137
- formType: FORM_TYPES.color,
138
- propType: PROP_TYPES.THEME,
139
- defaultValue: null,
140
- },
141
- stepStrokeCurrentColor: {
142
- group: GROUPS.basic,
143
- label: "Current Step Border Color",
144
- description: "The color of current border color of the step",
145
- editable: true,
146
- required: false,
147
- formType: FORM_TYPES.color,
148
- propType: PROP_TYPES.THEME,
149
- defaultValue: null,
150
- },
151
- currentStepStrokeWidth: {
152
- group: GROUPS.basic,
153
- label: "Current Step Border Width",
154
- description: "The width of the border for the current step",
155
- editable: true,
156
- required: false,
157
- formType: FORM_TYPES.number,
158
- propType: PROP_TYPES.NUMBER,
159
- min: 1,
160
- max: 20,
161
- step: 1,
162
- precision: 0,
163
- defaultValue: 0,
164
- },
165
- currentStepIndicatorSize: {
166
- group: GROUPS.basic,
167
- label: "Current Step Size",
168
- description: "The size of the current step circle",
169
- editable: true,
170
- required: false,
171
- formType: FORM_TYPES.number,
172
- propType: PROP_TYPES.NUMBER,
173
- min: 10,
174
- max: 100,
175
- step: 5,
176
- precision: 0,
177
- defaultValue: null,
178
- },
179
- },
180
- };
@@ -1,50 +0,0 @@
1
- import { GROUPS, COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createIconProp, createTextProp, Triggers, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Radio Button",
4
- tag: "RadioButton",
5
- category: COMPONENT_TYPES.input,
6
- triggers: [Triggers.OnPress],
7
- props: {
8
- value: createTextProp({
9
- label: "Value",
10
- description: "Value of the radio button",
11
- defaultValue: null,
12
- required: true,
13
- }),
14
- color: createColorProp({
15
- group: GROUPS.basic,
16
- description: "Color for the button",
17
- defaultValue: "primary",
18
- }),
19
- unselectedColor: createColorProp({
20
- group: GROUPS.basic,
21
- label: "Unselected Color",
22
- description: "Unselected Color for the button",
23
- defaultValue: "primary",
24
- }),
25
- disabled: createBoolProp({
26
- label: "Disabled",
27
- description: "Whether radio button is disabled",
28
- }),
29
- size: createNumberProp({
30
- group: GROUPS.basic,
31
- label: "Size",
32
- description: "Specifies the size of the button",
33
- defaultValue: 24,
34
- min: 16,
35
- max: 128,
36
- step: 1,
37
- precision: 0,
38
- }),
39
- selectedIcon: createIconProp({
40
- label: "Selected Icon",
41
- description: "Icon to show when the radio button is selected",
42
- defaultValue: "MaterialIcons/radio-button-checked",
43
- }),
44
- unselectedIcon: createIconProp({
45
- label: "Unselected Icon",
46
- description: "Icon to show when the radio button is unselected",
47
- defaultValue: "MaterialIcons/radio-button-unchecked",
48
- }),
49
- },
50
- };
@@ -1,16 +0,0 @@
1
- import { COMPONENT_TYPES, createFieldNameProp, createDirectionProp, Triggers, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Radio Button Group",
4
- tag: "RadioButtonGroup",
5
- category: COMPONENT_TYPES.input,
6
- layout: {},
7
- triggers: [Triggers.OnValueChange],
8
- props: {
9
- direction: createDirectionProp(),
10
- fieldName: createFieldNameProp({
11
- handlerPropName: "onValueChange",
12
- valuePropName: "value",
13
- defaultValue: "radioButtonGroupValue",
14
- }),
15
- },
16
- };
@@ -1,37 +0,0 @@
1
- import { createTextProp, createTextEnumProp, COMPONENT_TYPES, createColorProp, GROUPS, } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Radio Button Row",
4
- tag: "RadioButtonRow",
5
- category: COMPONENT_TYPES.input,
6
- layout: {},
7
- props: {
8
- label: createTextProp({
9
- label: "Label",
10
- description: "Label to show with the radio button",
11
- required: true,
12
- defaultValue: "First Option",
13
- }),
14
- direction: createTextEnumProp({
15
- label: "Direction",
16
- description: "Whether the checkbox will appear on the left or on the right",
17
- options: ["row", "row-reverse"],
18
- }),
19
- value: createTextProp({
20
- label: "Value",
21
- description: "Value of the radio button",
22
- defaultValue: null,
23
- required: true,
24
- }),
25
- color: createColorProp({
26
- group: GROUPS.basic,
27
- description: "Color for the button",
28
- defaultValue: "primary",
29
- }),
30
- unselectedColor: createColorProp({
31
- group: GROUPS.basic,
32
- label: "Unselected Color",
33
- description: "Unselected Color for the button",
34
- defaultValue: "primary",
35
- }),
36
- },
37
- };
@@ -1,75 +0,0 @@
1
- import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
- export const SEED_DATA = [
3
- {
4
- name: "Row Single Line Body Icon",
5
- tag: "RowBodyIcon",
6
- description: "A row with left aligned body text and a right aligned icon",
7
- category: COMPONENT_TYPES.row,
8
- preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_BodyIcon.png",
9
- supports_list_render: true,
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: "Beautiful West Coast Villa",
18
- editable: true,
19
- required: false,
20
- },
21
- icon: {
22
- group: GROUPS.basic,
23
- label: "Icon",
24
- description: "Icon to display",
25
- formType: FORM_TYPES.icon,
26
- propType: PROP_TYPES.ASSET,
27
- defaultValue: null,
28
- editable: true,
29
- required: false,
30
- },
31
- },
32
- layout: {},
33
- },
34
- {
35
- name: "Row Double Line Body Icon",
36
- tag: "RowBodyIcon",
37
- description: "A row with left aligned body text and subtitle text and a right aligned icon",
38
- category: COMPONENT_TYPES.row,
39
- preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_BodyIcon.png",
40
- supports_list_render: true,
41
- props: {
42
- title: {
43
- group: GROUPS.data,
44
- label: "Title",
45
- description: "Text to display",
46
- formType: FORM_TYPES.string,
47
- propType: PROP_TYPES.STRING,
48
- defaultValue: "Beautiful West Coast Villa",
49
- editable: true,
50
- required: false,
51
- },
52
- subtitle: {
53
- group: GROUPS.data,
54
- label: "Subtitle",
55
- description: "Subtitle text to display",
56
- formType: FORM_TYPES.string,
57
- propType: PROP_TYPES.STRING,
58
- defaultValue: "San Diego",
59
- editable: true,
60
- required: false,
61
- },
62
- icon: {
63
- group: GROUPS.basic,
64
- label: "Icon",
65
- description: "Icon to display",
66
- formType: FORM_TYPES.icon,
67
- propType: PROP_TYPES.ASSET,
68
- defaultValue: null,
69
- editable: true,
70
- required: false,
71
- },
72
- },
73
- layout: {},
74
- },
75
- ];