@draftbit/core 46.8.2-9431ce.2 → 46.8.2-9b0174.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +89 -0
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +464 -0
- package/lib/commonjs/components/BottomSheet/index.js +13 -0
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/index.js +7 -7
- package/lib/commonjs/mappings/BottomSheet.js +75 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +81 -0
- package/lib/module/components/BottomSheet/BottomSheetComponent.js +470 -0
- package/lib/module/components/BottomSheet/index.js +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/mappings/BottomSheet.js +68 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +20 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +170 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +2 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts +120 -0
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -0
- package/package.json +3 -4
- package/src/components/BottomSheet/BottomSheet.js +57 -0
- package/src/components/BottomSheet/BottomSheet.tsx +121 -0
- package/src/components/BottomSheet/BottomSheetComponent.js +437 -0
- package/src/components/BottomSheet/BottomSheetComponent.tsx +895 -0
- package/src/components/BottomSheet/index.js +1 -0
- package/src/components/BottomSheet/index.ts +1 -0
- package/src/index.js +1 -1
- package/src/index.tsx +1 -1
- package/src/mappings/BottomSheet.js +64 -0
- package/src/mappings/BottomSheet.ts +78 -0
- package/lib/commonjs/components/Markdown.js +0 -30
- package/lib/commonjs/mappings/Markdown.js +0 -27
- package/lib/module/components/Markdown.js +0 -20
- package/lib/module/mappings/Markdown.js +0 -20
- package/lib/typescript/src/components/Markdown.d.ts +0 -8
- package/lib/typescript/src/components/Markdown.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Markdown.d.ts +0 -20
- package/lib/typescript/src/mappings/Markdown.d.ts.map +0 -1
- package/src/components/Markdown.js +0 -10
- package/src/components/Markdown.tsx +0 -22
- package/src/mappings/Markdown.js +0 -25
- package/src/mappings/Markdown.ts +0 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BottomSheet } from "./BottomSheet";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BottomSheet } from "./BottomSheet";
|
package/src/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export { Swiper, SwiperItem } from "./components/Swiper";
|
|
|
32
32
|
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
|
33
33
|
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
34
34
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
35
|
-
export {
|
|
35
|
+
export { BottomSheet } from "./components/BottomSheet";
|
|
36
36
|
/* Deprecated: Fix or Delete! */
|
|
37
37
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
38
38
|
export { default as Picker } from "./components/Picker/Picker";
|
package/src/index.tsx
CHANGED
|
@@ -53,7 +53,7 @@ export {
|
|
|
53
53
|
|
|
54
54
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { BottomSheet } from "./components/BottomSheet";
|
|
57
57
|
|
|
58
58
|
/* Deprecated: Fix or Delete! */
|
|
59
59
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticArrayProp, createStaticNumberProp, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Bottom Sheet",
|
|
4
|
+
tag: "BottomSheet",
|
|
5
|
+
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
|
+
category: COMPONENT_TYPES.bottomsheet,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
|
|
9
|
+
triggers: [Triggers.OnSettle],
|
|
10
|
+
props: {
|
|
11
|
+
onSettle: createActionProp({
|
|
12
|
+
label: "On settle",
|
|
13
|
+
description: "Action to execute when sheet settles on a snap point",
|
|
14
|
+
}),
|
|
15
|
+
snapPoints: createStaticArrayProp({
|
|
16
|
+
label: "Snap points",
|
|
17
|
+
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
18
|
+
defaultValue: ["10%", "50%", "80%"],
|
|
19
|
+
}),
|
|
20
|
+
initialSnapIndex: createStaticNumberProp({
|
|
21
|
+
label: "Initial snap index",
|
|
22
|
+
description: "Index of the snap point to be used as the initial point",
|
|
23
|
+
defaultValue: 0,
|
|
24
|
+
required: false,
|
|
25
|
+
}),
|
|
26
|
+
showHandle: createStaticBoolProp({
|
|
27
|
+
label: "Show handle",
|
|
28
|
+
description: "Whether to show the top handle or not",
|
|
29
|
+
defaultValue: true,
|
|
30
|
+
}),
|
|
31
|
+
handleColor: createColorProp({
|
|
32
|
+
label: "Handle color",
|
|
33
|
+
description: "Color of the top handle",
|
|
34
|
+
defaultValue: "divider",
|
|
35
|
+
}),
|
|
36
|
+
topBorderRadius: createStaticNumberProp({
|
|
37
|
+
label: "Top border radius",
|
|
38
|
+
description: "Border radius of top corners",
|
|
39
|
+
defaultValue: 20,
|
|
40
|
+
required: false,
|
|
41
|
+
}),
|
|
42
|
+
borderWidth: createStaticNumberProp({
|
|
43
|
+
label: "Border width",
|
|
44
|
+
description: "Width of bottom sheet borders",
|
|
45
|
+
defaultValue: 1,
|
|
46
|
+
required: false,
|
|
47
|
+
}),
|
|
48
|
+
borderColor: createColorProp({
|
|
49
|
+
label: "Border color",
|
|
50
|
+
description: "Color of bottom sheet borders",
|
|
51
|
+
defaultValue: "divider",
|
|
52
|
+
}),
|
|
53
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
54
|
+
label: "Show Vertical Scroll Indicator",
|
|
55
|
+
description: "When true, shows a vertical scroll indicator. The default value is true.",
|
|
56
|
+
defaultValue: true,
|
|
57
|
+
}),
|
|
58
|
+
bounces: createStaticBoolProp({
|
|
59
|
+
label: "Bounce",
|
|
60
|
+
description: "When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
|
|
61
|
+
defaultValue: true,
|
|
62
|
+
}),
|
|
63
|
+
},
|
|
64
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createStaticBoolProp,
|
|
4
|
+
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
5
|
+
Triggers,
|
|
6
|
+
createActionProp,
|
|
7
|
+
createColorProp,
|
|
8
|
+
createStaticArrayProp,
|
|
9
|
+
createStaticNumberProp,
|
|
10
|
+
} from "@draftbit/types";
|
|
11
|
+
|
|
12
|
+
export const SEED_DATA = {
|
|
13
|
+
name: "Bottom Sheet",
|
|
14
|
+
tag: "BottomSheet",
|
|
15
|
+
description:
|
|
16
|
+
"A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
17
|
+
category: COMPONENT_TYPES.bottomsheet,
|
|
18
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
19
|
+
layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
|
|
20
|
+
triggers: [Triggers.OnSettle],
|
|
21
|
+
props: {
|
|
22
|
+
onSettle: createActionProp({
|
|
23
|
+
label: "On settle",
|
|
24
|
+
description: "Action to execute when sheet settles on a snap point",
|
|
25
|
+
}),
|
|
26
|
+
snapPoints: createStaticArrayProp({
|
|
27
|
+
label: "Snap points",
|
|
28
|
+
description:
|
|
29
|
+
"An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
30
|
+
defaultValue: ["10%", "50%", "80%"],
|
|
31
|
+
}),
|
|
32
|
+
initialSnapIndex: createStaticNumberProp({
|
|
33
|
+
label: "Initial snap index",
|
|
34
|
+
description: "Index of the snap point to be used as the initial point",
|
|
35
|
+
defaultValue: 0,
|
|
36
|
+
required: false,
|
|
37
|
+
}),
|
|
38
|
+
showHandle: createStaticBoolProp({
|
|
39
|
+
label: "Show handle",
|
|
40
|
+
description: "Whether to show the top handle or not",
|
|
41
|
+
defaultValue: true,
|
|
42
|
+
}),
|
|
43
|
+
handleColor: createColorProp({
|
|
44
|
+
label: "Handle color",
|
|
45
|
+
description: "Color of the top handle",
|
|
46
|
+
defaultValue: "divider",
|
|
47
|
+
}),
|
|
48
|
+
topBorderRadius: createStaticNumberProp({
|
|
49
|
+
label: "Top border radius",
|
|
50
|
+
description: "Border radius of top corners",
|
|
51
|
+
defaultValue: 20,
|
|
52
|
+
required: false,
|
|
53
|
+
}),
|
|
54
|
+
borderWidth: createStaticNumberProp({
|
|
55
|
+
label: "Border width",
|
|
56
|
+
description: "Width of bottom sheet borders",
|
|
57
|
+
defaultValue: 1,
|
|
58
|
+
required: false,
|
|
59
|
+
}),
|
|
60
|
+
borderColor: createColorProp({
|
|
61
|
+
label: "Border color",
|
|
62
|
+
description: "Color of bottom sheet borders",
|
|
63
|
+
defaultValue: "divider",
|
|
64
|
+
}),
|
|
65
|
+
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
66
|
+
label: "Show Vertical Scroll Indicator",
|
|
67
|
+
description:
|
|
68
|
+
"When true, shows a vertical scroll indicator. The default value is true.",
|
|
69
|
+
defaultValue: true,
|
|
70
|
+
}),
|
|
71
|
+
bounces: createStaticBoolProp({
|
|
72
|
+
label: "Bounce",
|
|
73
|
+
description:
|
|
74
|
+
"When true, the scroll view bounces when it reaches the end of the content if the content is larger then the scroll view along the axis of the scroll direction.",
|
|
75
|
+
defaultValue: true,
|
|
76
|
+
}),
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeMarkdownDisplay = _interopRequireDefault(require("react-native-markdown-display"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
const Markdown = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
children,
|
|
16
|
-
style
|
|
17
|
-
} = _ref;
|
|
18
|
-
return (
|
|
19
|
-
/*#__PURE__*/
|
|
20
|
-
//'body' style applies to all markdown components
|
|
21
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
22
|
-
React.createElement(_reactNativeMarkdownDisplay.default, {
|
|
23
|
-
style: {
|
|
24
|
-
body: _reactNative.StyleSheet.flatten(style)
|
|
25
|
-
}
|
|
26
|
-
}, children)
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
var _default = Markdown;
|
|
30
|
-
exports.default = _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SEED_DATA = void 0;
|
|
7
|
-
var _types = require("@draftbit/types");
|
|
8
|
-
const SEED_DATA = {
|
|
9
|
-
name: "Markdown",
|
|
10
|
-
tag: "Markdown",
|
|
11
|
-
description: "A component that renders markdown",
|
|
12
|
-
category: _types.COMPONENT_TYPES.text,
|
|
13
|
-
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Effects],
|
|
14
|
-
props: {
|
|
15
|
-
children: {
|
|
16
|
-
group: _types.GROUPS.data,
|
|
17
|
-
label: "Markdown Text",
|
|
18
|
-
description: "Markdown text to be rendered ",
|
|
19
|
-
editable: true,
|
|
20
|
-
required: true,
|
|
21
|
-
formType: _types.FORM_TYPES.string,
|
|
22
|
-
propType: _types.PROP_TYPES.STRING,
|
|
23
|
-
defaultValue: "### Markdown"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.SEED_DATA = SEED_DATA;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleSheet } from "react-native";
|
|
3
|
-
import MarkdownComponent from "react-native-markdown-display";
|
|
4
|
-
const Markdown = _ref => {
|
|
5
|
-
let {
|
|
6
|
-
children,
|
|
7
|
-
style
|
|
8
|
-
} = _ref;
|
|
9
|
-
return (
|
|
10
|
-
/*#__PURE__*/
|
|
11
|
-
//'body' style applies to all markdown components
|
|
12
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
13
|
-
React.createElement(MarkdownComponent, {
|
|
14
|
-
style: {
|
|
15
|
-
body: StyleSheet.flatten(style)
|
|
16
|
-
}
|
|
17
|
-
}, children)
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
export default Markdown;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Markdown",
|
|
4
|
-
tag: "Markdown",
|
|
5
|
-
description: "A component that renders markdown",
|
|
6
|
-
category: COMPONENT_TYPES.text,
|
|
7
|
-
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
|
|
8
|
-
props: {
|
|
9
|
-
children: {
|
|
10
|
-
group: GROUPS.data,
|
|
11
|
-
label: "Markdown Text",
|
|
12
|
-
description: "Markdown text to be rendered ",
|
|
13
|
-
editable: true,
|
|
14
|
-
required: true,
|
|
15
|
-
formType: FORM_TYPES.string,
|
|
16
|
-
propType: PROP_TYPES.STRING,
|
|
17
|
-
defaultValue: "### Markdown"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
declare type MarkdownProps = {
|
|
4
|
-
style?: StyleProp<ViewStyle>;
|
|
5
|
-
};
|
|
6
|
-
declare const Markdown: React.FC<React.PropsWithChildren<MarkdownProps>>;
|
|
7
|
-
export default Markdown;
|
|
8
|
-
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,cAAc,CAAC;AAGhE,aAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAW9D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const SEED_DATA: {
|
|
2
|
-
name: string;
|
|
3
|
-
tag: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category: string;
|
|
6
|
-
stylesPanelSections: string[];
|
|
7
|
-
props: {
|
|
8
|
-
children: {
|
|
9
|
-
group: string;
|
|
10
|
-
label: string;
|
|
11
|
-
description: string;
|
|
12
|
-
editable: boolean;
|
|
13
|
-
required: boolean;
|
|
14
|
-
formType: string;
|
|
15
|
-
propType: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Markdown.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAuBrB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleSheet } from "react-native";
|
|
3
|
-
import MarkdownComponent from "react-native-markdown-display";
|
|
4
|
-
const Markdown = ({ children, style, }) => {
|
|
5
|
-
return (
|
|
6
|
-
//'body' style applies to all markdown components
|
|
7
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
8
|
-
React.createElement(MarkdownComponent, { style: { body: StyleSheet.flatten(style) } }, children));
|
|
9
|
-
};
|
|
10
|
-
export default Markdown;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle, StyleSheet } from "react-native";
|
|
3
|
-
import MarkdownComponent from "react-native-markdown-display";
|
|
4
|
-
|
|
5
|
-
type MarkdownProps = {
|
|
6
|
-
style?: StyleProp<ViewStyle>;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const Markdown: React.FC<React.PropsWithChildren<MarkdownProps>> = ({
|
|
10
|
-
children,
|
|
11
|
-
style,
|
|
12
|
-
}) => {
|
|
13
|
-
return (
|
|
14
|
-
//'body' style applies to all markdown components
|
|
15
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
16
|
-
<MarkdownComponent style={{ body: StyleSheet.flatten(style) }}>
|
|
17
|
-
{children}
|
|
18
|
-
</MarkdownComponent>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default Markdown;
|
package/src/mappings/Markdown.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Markdown",
|
|
4
|
-
tag: "Markdown",
|
|
5
|
-
description: "A component that renders markdown",
|
|
6
|
-
category: COMPONENT_TYPES.text,
|
|
7
|
-
stylesPanelSections: [
|
|
8
|
-
StylesPanelSections.Typography,
|
|
9
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
10
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
11
|
-
StylesPanelSections.Effects,
|
|
12
|
-
],
|
|
13
|
-
props: {
|
|
14
|
-
children: {
|
|
15
|
-
group: GROUPS.data,
|
|
16
|
-
label: "Markdown Text",
|
|
17
|
-
description: "Markdown text to be rendered ",
|
|
18
|
-
editable: true,
|
|
19
|
-
required: true,
|
|
20
|
-
formType: FORM_TYPES.string,
|
|
21
|
-
propType: PROP_TYPES.STRING,
|
|
22
|
-
defaultValue: "### Markdown",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
};
|
package/src/mappings/Markdown.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
FORM_TYPES,
|
|
4
|
-
GROUPS,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
StylesPanelSections,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
export const SEED_DATA = {
|
|
10
|
-
name: "Markdown",
|
|
11
|
-
tag: "Markdown",
|
|
12
|
-
description: "A component that renders markdown",
|
|
13
|
-
category: COMPONENT_TYPES.text,
|
|
14
|
-
stylesPanelSections: [
|
|
15
|
-
StylesPanelSections.Typography,
|
|
16
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
17
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
18
|
-
StylesPanelSections.Effects,
|
|
19
|
-
],
|
|
20
|
-
props: {
|
|
21
|
-
children: {
|
|
22
|
-
group: GROUPS.data,
|
|
23
|
-
label: "Markdown Text",
|
|
24
|
-
description: "Markdown text to be rendered ",
|
|
25
|
-
editable: true,
|
|
26
|
-
required: true,
|
|
27
|
-
formType: FORM_TYPES.string,
|
|
28
|
-
propType: PROP_TYPES.STRING,
|
|
29
|
-
defaultValue: "### Markdown",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|