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