@draftbit/core 46.2.4-1cc3fe.10 → 46.2.4-258475.12
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/Switch.js +10 -23
- package/lib/commonjs/index.js +0 -8
- 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/ActivityIndicator.js +1 -1
- package/lib/commonjs/mappings/Banner.js +1 -1
- package/lib/commonjs/mappings/BlurView.js +1 -1
- package/lib/commonjs/mappings/Button.js +1 -1
- package/lib/commonjs/mappings/Card.js +1 -1
- package/lib/commonjs/mappings/CardBlock.js +3 -3
- package/lib/commonjs/mappings/CardContainer.js +2 -2
- package/lib/commonjs/mappings/CardContainerRating.js +2 -2
- package/lib/commonjs/mappings/CardContainerShortImage.js +2 -2
- package/lib/commonjs/mappings/CardInline.js +1 -1
- package/lib/commonjs/mappings/Checkbox.js +1 -1
- package/lib/commonjs/mappings/CheckboxRow.js +1 -1
- package/lib/commonjs/mappings/CircleImage.js +1 -1
- package/lib/commonjs/mappings/CustomCode.js +1 -1
- package/lib/commonjs/mappings/FAB.js +1 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -1
- package/lib/commonjs/mappings/FlashList.js +42 -0
- package/lib/commonjs/mappings/HeaderLarge.js +1 -1
- package/lib/commonjs/mappings/HeaderMedium.js +1 -1
- package/lib/commonjs/mappings/HeaderOverline.js +1 -1
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -1
- package/lib/commonjs/mappings/Layout.js +2 -2
- package/lib/commonjs/mappings/MapCallout.js +1 -1
- package/lib/commonjs/mappings/MapMarker.js +1 -1
- package/lib/commonjs/mappings/MapView.js +1 -1
- package/lib/commonjs/mappings/Modal.js +1 -1
- package/lib/commonjs/mappings/RadioButton.js +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js +1 -1
- package/lib/commonjs/mappings/RowBodyIcon.js +2 -2
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +4 -4
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +6 -6
- package/lib/commonjs/mappings/ScrollView.js +1 -1
- package/lib/commonjs/mappings/Slider.js +1 -1
- package/lib/commonjs/mappings/StarRating.js +1 -1
- package/lib/commonjs/mappings/Stepper.js +1 -1
- package/lib/commonjs/mappings/Surface.js +1 -1
- package/lib/commonjs/mappings/Swiper.js +1 -1
- package/lib/commonjs/mappings/SwiperItem.js +1 -1
- package/lib/commonjs/mappings/Switch.js +2 -2
- package/lib/commonjs/mappings/WebView.js +1 -1
- package/lib/module/index.js +1 -2
- 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/ActivityIndicator.js +1 -1
- package/lib/module/mappings/Banner.js +1 -1
- package/lib/module/mappings/BlurView.js +1 -1
- package/lib/module/mappings/Button.js +1 -1
- package/lib/module/mappings/Card.js +1 -1
- package/lib/module/mappings/CardBlock.js +3 -3
- package/lib/module/mappings/CardContainer.js +2 -2
- package/lib/module/mappings/CardContainerRating.js +2 -2
- package/lib/module/mappings/CardContainerShortImage.js +2 -2
- package/lib/module/mappings/CardInline.js +1 -1
- package/lib/module/mappings/Checkbox.js +1 -1
- package/lib/module/mappings/CheckboxRow.js +1 -1
- package/lib/module/mappings/CircleImage.js +1 -1
- package/lib/module/mappings/CustomCode.js +1 -1
- package/lib/module/mappings/FAB.js +1 -1
- package/lib/module/mappings/FieldSearchBarFull.js +1 -1
- package/lib/module/mappings/FlashList.js +33 -0
- package/lib/module/mappings/HeaderLarge.js +1 -1
- package/lib/module/mappings/HeaderMedium.js +1 -1
- package/lib/module/mappings/HeaderOverline.js +1 -1
- package/lib/module/mappings/KeyboardAvoidingView.js +1 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js +1 -1
- package/lib/module/mappings/Layout.js +2 -2
- package/lib/module/mappings/MapCallout.js +1 -1
- package/lib/module/mappings/MapMarker.js +1 -1
- package/lib/module/mappings/MapView.js +1 -1
- package/lib/module/mappings/Modal.js +1 -1
- package/lib/module/mappings/RadioButton.js +1 -1
- package/lib/module/mappings/RadioButtonGroup.js +1 -1
- package/lib/module/mappings/RadioButtonRow.js +1 -1
- package/lib/module/mappings/RowBodyIcon.js +2 -2
- package/lib/module/mappings/RowHeadlineImageCaption.js +4 -4
- package/lib/module/mappings/RowHeadlineImageIcon.js +6 -6
- package/lib/module/mappings/ScrollView.js +1 -1
- package/lib/module/mappings/Slider.js +1 -1
- package/lib/module/mappings/StarRating.js +1 -1
- package/lib/module/mappings/Stepper.js +1 -1
- package/lib/module/mappings/Surface.js +1 -1
- package/lib/module/mappings/Swiper.js +1 -1
- package/lib/module/mappings/SwiperItem.js +1 -1
- package/lib/module/mappings/Switch.js +2 -2
- package/lib/module/mappings/WebView.js +1 -1
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +54 -0
- package/package.json +4 -5
- package/src/index.js +0 -1
- package/src/index.tsx +0 -1
- package/src/mappings/ActionSheet.js +1 -1
- package/src/mappings/ActionSheet.ts +1 -1
- package/src/mappings/ActionSheetCancel.js +1 -1
- package/src/mappings/ActionSheetCancel.ts +1 -1
- package/src/mappings/ActionSheetItem.js +1 -1
- package/src/mappings/ActionSheetItem.ts +1 -1
- package/src/mappings/ActivityIndicator.js +1 -1
- package/src/mappings/ActivityIndicator.ts +1 -1
- package/src/mappings/Banner.js +1 -1
- package/src/mappings/Banner.ts +1 -1
- package/src/mappings/BlurView.js +1 -1
- package/src/mappings/BlurView.ts +1 -1
- package/src/mappings/Button.js +1 -1
- package/src/mappings/Button.ts +1 -1
- package/src/mappings/Card.js +1 -1
- package/src/mappings/Card.ts +1 -1
- package/src/mappings/CardBlock.js +3 -3
- package/src/mappings/CardBlock.ts +3 -3
- package/src/mappings/CardContainer.js +2 -2
- package/src/mappings/CardContainer.ts +2 -2
- package/src/mappings/CardContainerRating.js +2 -2
- package/src/mappings/CardContainerRating.ts +2 -2
- package/src/mappings/CardContainerShortImage.js +2 -2
- package/src/mappings/CardContainerShortImage.ts +2 -2
- package/src/mappings/CardInline.js +1 -1
- package/src/mappings/CardInline.ts +1 -1
- package/src/mappings/Checkbox.js +1 -1
- package/src/mappings/Checkbox.ts +1 -1
- package/src/mappings/CheckboxRow.js +1 -1
- package/src/mappings/CheckboxRow.ts +1 -1
- package/src/mappings/CircleImage.js +1 -1
- package/src/mappings/CircleImage.ts +1 -1
- package/src/mappings/CustomCode.js +1 -1
- package/src/mappings/CustomCode.ts +1 -1
- package/src/mappings/FAB.js +1 -1
- package/src/mappings/FAB.ts +1 -1
- package/src/mappings/FieldSearchBarFull.js +1 -1
- package/src/mappings/FieldSearchBarFull.ts +1 -1
- package/src/mappings/FlashList.js +33 -0
- package/src/mappings/FlashList.ts +41 -0
- package/src/mappings/HeaderLarge.js +1 -1
- package/src/mappings/HeaderLarge.ts +1 -1
- package/src/mappings/HeaderMedium.js +1 -1
- package/src/mappings/HeaderMedium.ts +1 -1
- package/src/mappings/HeaderOverline.js +1 -1
- package/src/mappings/HeaderOverline.ts +1 -1
- package/src/mappings/KeyboardAvoidingView.js +1 -1
- package/src/mappings/KeyboardAvoidingView.ts +1 -1
- package/src/mappings/KeyboardAwareScrollView.js +1 -1
- package/src/mappings/KeyboardAwareScrollView.ts +1 -1
- package/src/mappings/Layout.js +2 -2
- package/src/mappings/Layout.ts +2 -2
- package/src/mappings/MapCallout.js +1 -1
- package/src/mappings/MapCallout.ts +1 -1
- package/src/mappings/MapMarker.js +1 -1
- package/src/mappings/MapMarker.ts +1 -1
- package/src/mappings/MapView.js +1 -1
- package/src/mappings/MapView.ts +1 -1
- package/src/mappings/Modal.js +1 -1
- package/src/mappings/Modal.ts +1 -1
- package/src/mappings/RadioButton.js +1 -1
- package/src/mappings/RadioButton.ts +1 -1
- package/src/mappings/RadioButtonGroup.js +1 -1
- package/src/mappings/RadioButtonGroup.ts +1 -1
- package/src/mappings/RadioButtonRow.js +1 -1
- package/src/mappings/RadioButtonRow.ts +1 -1
- package/src/mappings/RowBodyIcon.js +2 -2
- package/src/mappings/RowBodyIcon.ts +2 -2
- package/src/mappings/RowHeadlineImageCaption.js +4 -4
- package/src/mappings/RowHeadlineImageCaption.ts +4 -4
- package/src/mappings/RowHeadlineImageIcon.js +6 -6
- package/src/mappings/RowHeadlineImageIcon.ts +6 -6
- package/src/mappings/ScrollView.js +1 -1
- package/src/mappings/ScrollView.ts +1 -1
- package/src/mappings/Slider.js +1 -1
- package/src/mappings/Slider.ts +1 -1
- package/src/mappings/StarRating.js +1 -1
- package/src/mappings/StarRating.ts +1 -1
- package/src/mappings/Stepper.js +1 -1
- package/src/mappings/Stepper.ts +1 -1
- package/src/mappings/Surface.js +1 -1
- package/src/mappings/Surface.ts +1 -1
- package/src/mappings/Swiper.js +1 -1
- package/src/mappings/Swiper.ts +1 -1
- package/src/mappings/SwiperItem.js +1 -1
- package/src/mappings/SwiperItem.ts +1 -1
- package/src/mappings/Switch.js +2 -2
- package/src/mappings/Switch.ts +2 -2
- package/src/mappings/WebView.js +1 -1
- package/src/mappings/WebView.ts +1 -1
- package/lib/commonjs/components/Markdown.js +0 -33
- package/lib/commonjs/mappings/Markdown.js +0 -23
- package/lib/module/components/Markdown.js +0 -18
- package/lib/module/mappings/Markdown.js +0 -14
- package/lib/typescript/src/components/Markdown.d.ts +0 -6
- package/lib/typescript/src/mappings/Markdown.d.ts +0 -9
- package/src/components/Markdown.js +0 -12
- package/src/components/Markdown.tsx +0 -25
- package/src/mappings/Markdown.js +0 -14
- package/src/mappings/Markdown.ts +0 -15
|
@@ -4,7 +4,7 @@ export const SEED_DATA = [
|
|
|
4
4
|
name: "Search Bar",
|
|
5
5
|
tag: "FieldSearchBarFull",
|
|
6
6
|
description: "A search bar with accompanying search icon and clear button.",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.deprecated,
|
|
8
8
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
9
|
preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
|
|
10
10
|
supports_list_render: false,
|
|
@@ -13,7 +13,7 @@ export const SEED_DATA = [
|
|
|
13
13
|
name: "Search Bar",
|
|
14
14
|
tag: "FieldSearchBarFull",
|
|
15
15
|
description: "A search bar with accompanying search icon and clear button.",
|
|
16
|
-
category: COMPONENT_TYPES.
|
|
16
|
+
category: COMPONENT_TYPES.deprecated,
|
|
17
17
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
18
18
|
preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
|
|
19
19
|
supports_list_render: false,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "FlashList",
|
|
4
|
+
tag: "FlashList",
|
|
5
|
+
description: "Flashlist by Shopify",
|
|
6
|
+
packageName: "@shopify/flash-list",
|
|
7
|
+
category: COMPONENT_TYPES.data,
|
|
8
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
9
|
+
layout: {
|
|
10
|
+
flex: 1,
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
estimatedItemSize: createNumberProp({
|
|
14
|
+
group: GROUPS.basic,
|
|
15
|
+
label: "Est. Item Size",
|
|
16
|
+
description: "Approximate size of the items before rendering.",
|
|
17
|
+
defaultValue: 50,
|
|
18
|
+
step: 1,
|
|
19
|
+
precision: 0,
|
|
20
|
+
}),
|
|
21
|
+
horizontal: createStaticBoolProp({
|
|
22
|
+
label: "Horizontal",
|
|
23
|
+
description: "Render list horizontally",
|
|
24
|
+
}),
|
|
25
|
+
inverted: createStaticBoolProp({
|
|
26
|
+
label: "Inverted",
|
|
27
|
+
description: "If true, reverses the direction.",
|
|
28
|
+
}),
|
|
29
|
+
numColumns: createNumColumnsType({
|
|
30
|
+
editable: true,
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createNumColumnsType,
|
|
4
|
+
createStaticBoolProp,
|
|
5
|
+
createNumberProp,
|
|
6
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
7
|
+
GROUPS,
|
|
8
|
+
} from "@draftbit/types";
|
|
9
|
+
|
|
10
|
+
export const SEED_DATA = {
|
|
11
|
+
name: "FlashList",
|
|
12
|
+
tag: "FlashList",
|
|
13
|
+
description: "Flashlist by Shopify",
|
|
14
|
+
packageName: "@shopify/flash-list",
|
|
15
|
+
category: COMPONENT_TYPES.data,
|
|
16
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
17
|
+
layout: {
|
|
18
|
+
flex: 1,
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
estimatedItemSize: createNumberProp({
|
|
22
|
+
group: GROUPS.basic,
|
|
23
|
+
label: "Est. Item Size",
|
|
24
|
+
description: "Approximate size of the items before rendering.",
|
|
25
|
+
defaultValue: 50,
|
|
26
|
+
step: 1,
|
|
27
|
+
precision: 0,
|
|
28
|
+
}),
|
|
29
|
+
horizontal: createStaticBoolProp({
|
|
30
|
+
label: "Horizontal",
|
|
31
|
+
description: "Render list horizontally",
|
|
32
|
+
}),
|
|
33
|
+
inverted: createStaticBoolProp({
|
|
34
|
+
label: "Inverted",
|
|
35
|
+
description: "If true, reverses the direction.",
|
|
36
|
+
}),
|
|
37
|
+
numColumns: createNumColumnsType({
|
|
38
|
+
editable: true,
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = [
|
|
|
4
4
|
name: "Header Large",
|
|
5
5
|
tag: "HeaderLarge",
|
|
6
6
|
description: "A large header with an optional touchable right aligned text and icon.",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.deprecatedHeader,
|
|
8
8
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
9
|
layout: {},
|
|
10
10
|
triggers: [Triggers.OnPress],
|
|
@@ -13,7 +13,7 @@ export const SEED_DATA = [
|
|
|
13
13
|
tag: "HeaderLarge",
|
|
14
14
|
description:
|
|
15
15
|
"A large header with an optional touchable right aligned text and icon.",
|
|
16
|
-
category: COMPONENT_TYPES.
|
|
16
|
+
category: COMPONENT_TYPES.deprecatedHeader,
|
|
17
17
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
18
18
|
layout: {},
|
|
19
19
|
triggers: [Triggers.OnPress],
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = [
|
|
|
4
4
|
name: "Header Medium",
|
|
5
5
|
tag: "HeaderMedium",
|
|
6
6
|
description: "A medium header with an optional touchable right aligned text and icon.",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.deprecatedHeader,
|
|
8
8
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
9
|
preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
|
|
10
10
|
supports_list_render: false,
|
|
@@ -12,7 +12,7 @@ export const SEED_DATA = [
|
|
|
12
12
|
tag: "HeaderMedium",
|
|
13
13
|
description:
|
|
14
14
|
"A medium header with an optional touchable right aligned text and icon.",
|
|
15
|
-
category: COMPONENT_TYPES.
|
|
15
|
+
category: COMPONENT_TYPES.deprecatedHeader,
|
|
16
16
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
17
|
preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
|
|
18
18
|
supports_list_render: false,
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = [
|
|
|
4
4
|
name: "Header Overline",
|
|
5
5
|
tag: "HeaderOverline",
|
|
6
6
|
description: "A small header with an optional touchable right aligned text and icon.",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.deprecatedHeader,
|
|
8
8
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
9
|
preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
|
|
10
10
|
supports_list_render: false,
|
|
@@ -12,7 +12,7 @@ export const SEED_DATA = [
|
|
|
12
12
|
tag: "HeaderOverline",
|
|
13
13
|
description:
|
|
14
14
|
"A small header with an optional touchable right aligned text and icon.",
|
|
15
|
-
category: COMPONENT_TYPES.
|
|
15
|
+
category: COMPONENT_TYPES.deprecatedHeader,
|
|
16
16
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
17
|
preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
|
|
18
18
|
supports_list_render: false,
|
|
@@ -3,7 +3,7 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Keyboard Avoiding View",
|
|
4
4
|
tag: "KeyboardAvoidingView",
|
|
5
5
|
description: "View that moves out of the way of the virtual keyboard. ",
|
|
6
|
-
category: COMPONENT_TYPES.
|
|
6
|
+
category: COMPONENT_TYPES.view,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
8
|
props: {
|
|
9
9
|
enabled: {
|
|
@@ -10,7 +10,7 @@ export const SEED_DATA = {
|
|
|
10
10
|
name: "Keyboard Avoiding View",
|
|
11
11
|
tag: "KeyboardAvoidingView",
|
|
12
12
|
description: "View that moves out of the way of the virtual keyboard. ",
|
|
13
|
-
category: COMPONENT_TYPES.
|
|
13
|
+
category: COMPONENT_TYPES.view,
|
|
14
14
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
15
15
|
props: {
|
|
16
16
|
enabled: {
|
|
@@ -3,7 +3,7 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Keyboard Aware Scroll View",
|
|
4
4
|
tag: "KeyboardAwareScrollView",
|
|
5
5
|
description: "View that moves pushes the content when virtual keyboard is open.",
|
|
6
|
-
category: COMPONENT_TYPES.
|
|
6
|
+
category: COMPONENT_TYPES.view,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
8
|
layout: {},
|
|
9
9
|
props: {
|
|
@@ -11,7 +11,7 @@ export const SEED_DATA = {
|
|
|
11
11
|
tag: "KeyboardAwareScrollView",
|
|
12
12
|
description:
|
|
13
13
|
"View that moves pushes the content when virtual keyboard is open.",
|
|
14
|
-
category: COMPONENT_TYPES.
|
|
14
|
+
category: COMPONENT_TYPES.view,
|
|
15
15
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
16
16
|
layout: {},
|
|
17
17
|
props: {
|
package/src/mappings/Layout.js
CHANGED
|
@@ -3,7 +3,7 @@ export const SEED_DATA = [
|
|
|
3
3
|
{
|
|
4
4
|
name: "Row",
|
|
5
5
|
tag: "Row",
|
|
6
|
-
category: COMPONENT_TYPES.
|
|
6
|
+
category: COMPONENT_TYPES.deprecated,
|
|
7
7
|
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
8
8
|
props: {
|
|
9
9
|
justifyContent: {
|
|
@@ -78,7 +78,7 @@ export const SEED_DATA = [
|
|
|
78
78
|
{
|
|
79
79
|
name: "Stack",
|
|
80
80
|
tag: "Stack",
|
|
81
|
-
category: COMPONENT_TYPES.
|
|
81
|
+
category: COMPONENT_TYPES.deprecated,
|
|
82
82
|
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
83
83
|
props: {
|
|
84
84
|
justifyContent: {
|
package/src/mappings/Layout.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const SEED_DATA = [
|
|
|
10
10
|
{
|
|
11
11
|
name: "Row",
|
|
12
12
|
tag: "Row",
|
|
13
|
-
category: COMPONENT_TYPES.
|
|
13
|
+
category: COMPONENT_TYPES.deprecated,
|
|
14
14
|
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
15
15
|
props: {
|
|
16
16
|
justifyContent: {
|
|
@@ -85,7 +85,7 @@ export const SEED_DATA = [
|
|
|
85
85
|
{
|
|
86
86
|
name: "Stack",
|
|
87
87
|
tag: "Stack",
|
|
88
|
-
category: COMPONENT_TYPES.
|
|
88
|
+
category: COMPONENT_TYPES.deprecated,
|
|
89
89
|
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
90
90
|
props: {
|
|
91
91
|
justifyContent: {
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = {
|
|
|
4
4
|
tag: "MapCallout",
|
|
5
5
|
packageName: "@draftbit/maps",
|
|
6
6
|
description: "An info window to display on top of a marker when it is clicked",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.map,
|
|
8
8
|
triggers: [Triggers.OnPress],
|
|
9
9
|
layout: {},
|
|
10
10
|
props: {
|
|
@@ -12,7 +12,7 @@ export const SEED_DATA = {
|
|
|
12
12
|
packageName: "@draftbit/maps",
|
|
13
13
|
description:
|
|
14
14
|
"An info window to display on top of a marker when it is clicked",
|
|
15
|
-
category: COMPONENT_TYPES.
|
|
15
|
+
category: COMPONENT_TYPES.map,
|
|
16
16
|
triggers: [Triggers.OnPress],
|
|
17
17
|
layout: {},
|
|
18
18
|
props: {
|
|
@@ -12,7 +12,7 @@ export const SEED_DATA = {
|
|
|
12
12
|
tag: "MapMarker",
|
|
13
13
|
packageName: "@draftbit/maps",
|
|
14
14
|
description: "A marker to show inside map view",
|
|
15
|
-
category: COMPONENT_TYPES.
|
|
15
|
+
category: COMPONENT_TYPES.map,
|
|
16
16
|
layout: {},
|
|
17
17
|
props: {
|
|
18
18
|
latitude: createNumberProp({
|
package/src/mappings/MapView.js
CHANGED
package/src/mappings/MapView.ts
CHANGED
package/src/mappings/Modal.js
CHANGED
package/src/mappings/Modal.ts
CHANGED
|
@@ -11,7 +11,7 @@ export const SEED_DATA = {
|
|
|
11
11
|
name: "Modal",
|
|
12
12
|
tag: "Modal",
|
|
13
13
|
description: "A basic Modal Component",
|
|
14
|
-
category: COMPONENT_TYPES.
|
|
14
|
+
category: COMPONENT_TYPES.layout,
|
|
15
15
|
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
16
16
|
props: {
|
|
17
17
|
animationType: {
|
|
@@ -2,7 +2,7 @@ import { GROUPS, COMPONENT_TYPES, createBoolProp, createColorProp, createNumberP
|
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Radio Button",
|
|
4
4
|
tag: "RadioButton",
|
|
5
|
-
category: COMPONENT_TYPES.
|
|
5
|
+
category: COMPONENT_TYPES.control,
|
|
6
6
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
7
|
triggers: [Triggers.OnPress],
|
|
8
8
|
props: {
|
|
@@ -2,7 +2,7 @@ import { COMPONENT_TYPES, createFieldNameProp, createDirectionProp, Triggers, St
|
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Radio Button Group",
|
|
4
4
|
tag: "RadioButtonGroup",
|
|
5
|
-
category: COMPONENT_TYPES.
|
|
5
|
+
category: COMPONENT_TYPES.control,
|
|
6
6
|
stylesPanelSections: [StylesPanelSections.Margins],
|
|
7
7
|
layout: {},
|
|
8
8
|
triggers: [Triggers.OnValueChange],
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
export const SEED_DATA = {
|
|
10
10
|
name: "Radio Button Group",
|
|
11
11
|
tag: "RadioButtonGroup",
|
|
12
|
-
category: COMPONENT_TYPES.
|
|
12
|
+
category: COMPONENT_TYPES.control,
|
|
13
13
|
stylesPanelSections: [StylesPanelSections.Margins],
|
|
14
14
|
layout: {},
|
|
15
15
|
triggers: [Triggers.OnValueChange],
|
|
@@ -2,7 +2,7 @@ import { createTextProp, createTextEnumProp, COMPONENT_TYPES, createColorProp, G
|
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Radio Button Row",
|
|
4
4
|
tag: "RadioButtonRow",
|
|
5
|
-
category: COMPONENT_TYPES.
|
|
5
|
+
category: COMPONENT_TYPES.control,
|
|
6
6
|
stylesPanelSections: [
|
|
7
7
|
StylesPanelSections.Typography,
|
|
8
8
|
StylesPanelSections.Margins,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
export const SEED_DATA = {
|
|
11
11
|
name: "Radio Button Row",
|
|
12
12
|
tag: "RadioButtonRow",
|
|
13
|
-
category: COMPONENT_TYPES.
|
|
13
|
+
category: COMPONENT_TYPES.control,
|
|
14
14
|
stylesPanelSections: [
|
|
15
15
|
StylesPanelSections.Typography,
|
|
16
16
|
StylesPanelSections.Margins,
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = [
|
|
|
4
4
|
name: "Row Single Line Body Icon",
|
|
5
5
|
tag: "RowBodyIcon",
|
|
6
6
|
description: "A row with left aligned body text and a right aligned icon",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
8
8
|
preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_BodyIcon.png",
|
|
9
9
|
supports_list_render: true,
|
|
10
10
|
props: {
|
|
@@ -35,7 +35,7 @@ export const SEED_DATA = [
|
|
|
35
35
|
name: "Row Double Line Body Icon",
|
|
36
36
|
tag: "RowBodyIcon",
|
|
37
37
|
description: "A row with left aligned body text and subtitle text and a right aligned icon",
|
|
38
|
-
category: COMPONENT_TYPES.
|
|
38
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
39
39
|
preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_BodyIcon.png",
|
|
40
40
|
supports_list_render: true,
|
|
41
41
|
props: {
|
|
@@ -10,7 +10,7 @@ export const SEED_DATA = [
|
|
|
10
10
|
name: "Row Single Line Body Icon",
|
|
11
11
|
tag: "RowBodyIcon",
|
|
12
12
|
description: "A row with left aligned body text and a right aligned icon",
|
|
13
|
-
category: COMPONENT_TYPES.
|
|
13
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
14
14
|
preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_BodyIcon.png",
|
|
15
15
|
supports_list_render: true,
|
|
16
16
|
props: {
|
|
@@ -42,7 +42,7 @@ export const SEED_DATA = [
|
|
|
42
42
|
tag: "RowBodyIcon",
|
|
43
43
|
description:
|
|
44
44
|
"A row with left aligned body text and subtitle text and a right aligned icon",
|
|
45
|
-
category: COMPONENT_TYPES.
|
|
45
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
46
46
|
preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_BodyIcon.png",
|
|
47
47
|
supports_list_render: true,
|
|
48
48
|
props: {
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = [
|
|
|
4
4
|
name: "Row Single Line Headline Caption",
|
|
5
5
|
tag: "RowHeadlineImageCaption",
|
|
6
6
|
description: "A row with left aligned headline text and right aligned caption text",
|
|
7
|
-
category: COMPONENT_TYPES.
|
|
7
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
8
8
|
preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_HeadlineCaption.png",
|
|
9
9
|
supports_list_render: true,
|
|
10
10
|
props: {
|
|
@@ -35,7 +35,7 @@ export const SEED_DATA = [
|
|
|
35
35
|
name: "Row Single Line Headline Image Caption",
|
|
36
36
|
tag: "RowHeadlineImageCaption",
|
|
37
37
|
description: "A row with left aligned image and headline text and right aligned caption text",
|
|
38
|
-
category: COMPONENT_TYPES.
|
|
38
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
39
39
|
preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_HeadlineImageCaption.png",
|
|
40
40
|
supports_list_render: true,
|
|
41
41
|
props: {
|
|
@@ -76,7 +76,7 @@ export const SEED_DATA = [
|
|
|
76
76
|
name: "Row Double Line Headline Caption",
|
|
77
77
|
tag: "RowHeadlineImageCaption",
|
|
78
78
|
description: "A row with left aligned headline text and subtitle text and right aligned caption text",
|
|
79
|
-
category: COMPONENT_TYPES.
|
|
79
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
80
80
|
preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_HeadlineCaption.png",
|
|
81
81
|
supports_list_render: true,
|
|
82
82
|
props: {
|
|
@@ -117,7 +117,7 @@ export const SEED_DATA = [
|
|
|
117
117
|
name: "Row Double Line Headline Image Caption",
|
|
118
118
|
tag: "RowHeadlineImageCaption",
|
|
119
119
|
description: "A row with left aligned image, headline text, and subtitle text, and right aligned caption text",
|
|
120
|
-
category: COMPONENT_TYPES.
|
|
120
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
121
121
|
preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_HeadlineCaption.png",
|
|
122
122
|
supports_list_render: true,
|
|
123
123
|
props: {
|
|
@@ -11,7 +11,7 @@ export const SEED_DATA = [
|
|
|
11
11
|
tag: "RowHeadlineImageCaption",
|
|
12
12
|
description:
|
|
13
13
|
"A row with left aligned headline text and right aligned caption text",
|
|
14
|
-
category: COMPONENT_TYPES.
|
|
14
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
15
15
|
preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_HeadlineCaption.png",
|
|
16
16
|
supports_list_render: true,
|
|
17
17
|
props: {
|
|
@@ -43,7 +43,7 @@ export const SEED_DATA = [
|
|
|
43
43
|
tag: "RowHeadlineImageCaption",
|
|
44
44
|
description:
|
|
45
45
|
"A row with left aligned image and headline text and right aligned caption text",
|
|
46
|
-
category: COMPONENT_TYPES.
|
|
46
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
47
47
|
preview_image_url:
|
|
48
48
|
"{CLOUDINARY_URL}/Row_SingleLine_HeadlineImageCaption.png",
|
|
49
49
|
supports_list_render: true,
|
|
@@ -86,7 +86,7 @@ export const SEED_DATA = [
|
|
|
86
86
|
tag: "RowHeadlineImageCaption",
|
|
87
87
|
description:
|
|
88
88
|
"A row with left aligned headline text and subtitle text and right aligned caption text",
|
|
89
|
-
category: COMPONENT_TYPES.
|
|
89
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
90
90
|
preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_HeadlineCaption.png",
|
|
91
91
|
supports_list_render: true,
|
|
92
92
|
props: {
|
|
@@ -128,7 +128,7 @@ export const SEED_DATA = [
|
|
|
128
128
|
tag: "RowHeadlineImageCaption",
|
|
129
129
|
description:
|
|
130
130
|
"A row with left aligned image, headline text, and subtitle text, and right aligned caption text",
|
|
131
|
-
category: COMPONENT_TYPES.
|
|
131
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
132
132
|
preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_HeadlineCaption.png",
|
|
133
133
|
supports_list_render: true,
|
|
134
134
|
props: {
|
|
@@ -23,7 +23,7 @@ export const SEED_DATA = [
|
|
|
23
23
|
name: "Row Single Line Headline Icon",
|
|
24
24
|
tag: "RowHeadlineImageIcon",
|
|
25
25
|
description: "A row with left aligned headline text and a right aligned icon",
|
|
26
|
-
category: COMPONENT_TYPES.
|
|
26
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
27
27
|
layout: {},
|
|
28
28
|
props: {
|
|
29
29
|
...SEED_DATA_PROPS,
|
|
@@ -33,7 +33,7 @@ export const SEED_DATA = [
|
|
|
33
33
|
name: "Row Single Line Headline Icon Image",
|
|
34
34
|
tag: "RowHeadlineImageIcon",
|
|
35
35
|
description: "A row with left aligned image and headline text and a right aligned icon",
|
|
36
|
-
category: COMPONENT_TYPES.
|
|
36
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
37
37
|
layout: {},
|
|
38
38
|
props: {
|
|
39
39
|
...SEED_DATA_PROPS,
|
|
@@ -44,7 +44,7 @@ export const SEED_DATA = [
|
|
|
44
44
|
name: "Row Double Line Headline Icon",
|
|
45
45
|
tag: "RowHeadlineImageIcon",
|
|
46
46
|
description: "A row with left aligned headline text and subtitle text and a right aligned icon",
|
|
47
|
-
category: COMPONENT_TYPES.
|
|
47
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
48
48
|
layout: {},
|
|
49
49
|
props: {
|
|
50
50
|
...SEED_DATA_PROPS,
|
|
@@ -55,7 +55,7 @@ export const SEED_DATA = [
|
|
|
55
55
|
name: "Row Double Line Headline Image Icon",
|
|
56
56
|
tag: "RowHeadlineImageIcon",
|
|
57
57
|
description: "A row with left aligned headline text and subtitle text and a right aligned icon",
|
|
58
|
-
category: COMPONENT_TYPES.
|
|
58
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
59
59
|
layout: {},
|
|
60
60
|
props: {
|
|
61
61
|
...SEED_DATA_PROPS,
|
|
@@ -67,7 +67,7 @@ export const SEED_DATA = [
|
|
|
67
67
|
name: "Row Multiline Headline Icon",
|
|
68
68
|
tag: "RowHeadlineImageIcon",
|
|
69
69
|
description: "A row with left aligned headline text and multiline subtitle text and a right aligned icon",
|
|
70
|
-
category: COMPONENT_TYPES.
|
|
70
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
71
71
|
layout: {},
|
|
72
72
|
props: {
|
|
73
73
|
...SEED_DATA_PROPS,
|
|
@@ -83,7 +83,7 @@ export const SEED_DATA = [
|
|
|
83
83
|
name: "Row Multiline Headline Image Icon",
|
|
84
84
|
tag: "RowHeadlineImageIcon",
|
|
85
85
|
description: "A row with left aligned image, headline text, and multiline subtitle text, and a right aligned icon",
|
|
86
|
-
category: COMPONENT_TYPES.
|
|
86
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
87
87
|
layout: {},
|
|
88
88
|
props: {
|
|
89
89
|
...SEED_DATA_PROPS,
|
|
@@ -33,7 +33,7 @@ export const SEED_DATA = [
|
|
|
33
33
|
tag: "RowHeadlineImageIcon",
|
|
34
34
|
description:
|
|
35
35
|
"A row with left aligned headline text and a right aligned icon",
|
|
36
|
-
category: COMPONENT_TYPES.
|
|
36
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
37
37
|
layout: {},
|
|
38
38
|
props: {
|
|
39
39
|
...SEED_DATA_PROPS,
|
|
@@ -44,7 +44,7 @@ export const SEED_DATA = [
|
|
|
44
44
|
tag: "RowHeadlineImageIcon",
|
|
45
45
|
description:
|
|
46
46
|
"A row with left aligned image and headline text and a right aligned icon",
|
|
47
|
-
category: COMPONENT_TYPES.
|
|
47
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
48
48
|
layout: {},
|
|
49
49
|
props: {
|
|
50
50
|
...SEED_DATA_PROPS,
|
|
@@ -56,7 +56,7 @@ export const SEED_DATA = [
|
|
|
56
56
|
tag: "RowHeadlineImageIcon",
|
|
57
57
|
description:
|
|
58
58
|
"A row with left aligned headline text and subtitle text and a right aligned icon",
|
|
59
|
-
category: COMPONENT_TYPES.
|
|
59
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
60
60
|
layout: {},
|
|
61
61
|
props: {
|
|
62
62
|
...SEED_DATA_PROPS,
|
|
@@ -68,7 +68,7 @@ export const SEED_DATA = [
|
|
|
68
68
|
tag: "RowHeadlineImageIcon",
|
|
69
69
|
description:
|
|
70
70
|
"A row with left aligned headline text and subtitle text and a right aligned icon",
|
|
71
|
-
category: COMPONENT_TYPES.
|
|
71
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
72
72
|
layout: {},
|
|
73
73
|
props: {
|
|
74
74
|
...SEED_DATA_PROPS,
|
|
@@ -81,7 +81,7 @@ export const SEED_DATA = [
|
|
|
81
81
|
tag: "RowHeadlineImageIcon",
|
|
82
82
|
description:
|
|
83
83
|
"A row with left aligned headline text and multiline subtitle text and a right aligned icon",
|
|
84
|
-
category: COMPONENT_TYPES.
|
|
84
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
85
85
|
layout: {},
|
|
86
86
|
props: {
|
|
87
87
|
...SEED_DATA_PROPS,
|
|
@@ -99,7 +99,7 @@ export const SEED_DATA = [
|
|
|
99
99
|
tag: "RowHeadlineImageIcon",
|
|
100
100
|
description:
|
|
101
101
|
"A row with left aligned image, headline text, and multiline subtitle text, and a right aligned icon",
|
|
102
|
-
category: COMPONENT_TYPES.
|
|
102
|
+
category: COMPONENT_TYPES.deprecatedRow,
|
|
103
103
|
layout: {},
|
|
104
104
|
props: {
|
|
105
105
|
...SEED_DATA_PROPS,
|
|
@@ -3,7 +3,7 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Scroll View",
|
|
4
4
|
tag: "ScrollView",
|
|
5
5
|
description: "A basic ScrollView component",
|
|
6
|
-
category: COMPONENT_TYPES.
|
|
6
|
+
category: COMPONENT_TYPES.view,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
8
|
layout: {},
|
|
9
9
|
props: {
|
|
@@ -8,7 +8,7 @@ export const SEED_DATA = {
|
|
|
8
8
|
name: "Scroll View",
|
|
9
9
|
tag: "ScrollView",
|
|
10
10
|
description: "A basic ScrollView component",
|
|
11
|
-
category: COMPONENT_TYPES.
|
|
11
|
+
category: COMPONENT_TYPES.view,
|
|
12
12
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
13
13
|
layout: {},
|
|
14
14
|
props: {
|
package/src/mappings/Slider.js
CHANGED
|
@@ -3,7 +3,7 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Slider",
|
|
4
4
|
tag: "Slider",
|
|
5
5
|
description: "A component used to set a value in a range",
|
|
6
|
-
category: COMPONENT_TYPES.
|
|
6
|
+
category: COMPONENT_TYPES.control,
|
|
7
7
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
8
|
layout: {
|
|
9
9
|
marginLeft: 12,
|
package/src/mappings/Slider.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const SEED_DATA = {
|
|
|
13
13
|
name: "Slider",
|
|
14
14
|
tag: "Slider",
|
|
15
15
|
description: "A component used to set a value in a range",
|
|
16
|
-
category: COMPONENT_TYPES.
|
|
16
|
+
category: COMPONENT_TYPES.control,
|
|
17
17
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
18
18
|
layout: {
|
|
19
19
|
marginLeft: 12,
|
|
@@ -3,7 +3,7 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Star Rating",
|
|
4
4
|
tag: "StarRating",
|
|
5
5
|
description: "A star rating component",
|
|
6
|
-
category: COMPONENT_TYPES.
|
|
6
|
+
category: COMPONENT_TYPES.control,
|
|
7
7
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
8
|
triggers: [Triggers.OnPress],
|
|
9
9
|
props: {
|