@draftbit/core 46.8.2-fee87c.2 → 46.9.1-0f1b60.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/Container.js +15 -4
- package/lib/commonjs/components/Markdown.js +30 -0
- package/lib/commonjs/components/Shadow.js +46 -0
- package/lib/commonjs/components/TabView/TabView.js +22 -6
- package/lib/commonjs/hooks.js +1 -2
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/mappings/FlashList.js +2 -8
- package/lib/commonjs/mappings/HtmlElements.js +160 -0
- package/lib/commonjs/mappings/Markdown.js +27 -0
- package/lib/commonjs/mappings/Shadow.js +102 -0
- package/lib/commonjs/mappings/TabView.js +6 -5
- package/lib/commonjs/mappings/TabViewItem.js +5 -3
- package/lib/module/components/Markdown.js +20 -0
- package/lib/module/components/Shadow.js +38 -0
- package/lib/module/components/TabView/TabView.js +22 -5
- package/lib/module/index.js +2 -0
- package/lib/module/mappings/FlashList.js +3 -9
- package/lib/module/mappings/HtmlElements.js +153 -0
- package/lib/module/mappings/Markdown.js +20 -0
- package/lib/module/mappings/Shadow.js +95 -0
- package/lib/module/mappings/TabView.js +7 -6
- package/lib/module/mappings/TabViewItem.js +6 -4
- package/lib/typescript/src/components/Markdown.d.ts +8 -0
- package/lib/typescript/src/components/Markdown.d.ts.map +1 -0
- package/lib/typescript/src/components/Shadow.d.ts +24 -0
- package/lib/typescript/src/components/Shadow.d.ts.map +1 -0
- package/lib/typescript/src/components/TabView/TabView.d.ts.map +1 -1
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts +1 -1
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +0 -6
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/HtmlElements.d.ts +109 -0
- package/lib/typescript/src/mappings/HtmlElements.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Markdown.d.ts +20 -0
- package/lib/typescript/src/mappings/Markdown.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Shadow.d.ts +173 -0
- package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
- package/lib/typescript/src/mappings/TabView.d.ts.map +1 -1
- package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -1
- package/package.json +6 -3
- package/src/components/Markdown.js +10 -0
- package/src/components/Markdown.tsx +22 -0
- package/src/components/Shadow.js +16 -0
- package/src/components/Shadow.tsx +62 -0
- package/src/components/TabView/TabView.js +16 -7
- package/src/components/TabView/TabView.tsx +25 -7
- package/src/components/TabView/TabViewItem.tsx +1 -1
- package/src/index.js +2 -0
- package/src/index.tsx +3 -0
- package/src/mappings/FlashList.js +9 -9
- package/src/mappings/FlashList.ts +9 -9
- package/src/mappings/HtmlElements.js +180 -0
- package/src/mappings/HtmlElements.ts +194 -0
- package/src/mappings/Markdown.js +25 -0
- package/src/mappings/Markdown.ts +32 -0
- package/src/mappings/Shadow.js +95 -0
- package/src/mappings/Shadow.ts +104 -0
- package/src/mappings/TabView.js +11 -5
- package/src/mappings/TabView.ts +11 -5
- package/src/mappings/TabViewItem.js +4 -2
- package/src/mappings/TabViewItem.ts +4 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { TabView, TabBar, SceneMap } from "react-native-tab-view";
|
|
4
|
-
import TabViewItem from "./TabViewItem";
|
|
5
4
|
import { withTheme } from "../../theming";
|
|
5
|
+
import { extractStyles } from "../../utilities";
|
|
6
6
|
const TabViewComponent = _ref => {
|
|
7
7
|
let {
|
|
8
8
|
Icon,
|
|
@@ -24,12 +24,22 @@ const TabViewComponent = _ref => {
|
|
|
24
24
|
const [index, setIndex] = React.useState(0);
|
|
25
25
|
const [routes, setRoutes] = React.useState([]);
|
|
26
26
|
const [tabScenes, setTabScenes] = React.useState({});
|
|
27
|
+
const {
|
|
28
|
+
textStyles,
|
|
29
|
+
viewStyles
|
|
30
|
+
} = extractStyles(style);
|
|
31
|
+
|
|
32
|
+
//Check type of child using props
|
|
33
|
+
//Regular '.type' cannot work because Draftbit strips the type in Draft view
|
|
34
|
+
const instanceOfTabViewItemProps = object => {
|
|
35
|
+
return "title" in object;
|
|
36
|
+
};
|
|
27
37
|
|
|
28
38
|
//Populate routes and scenes based on children
|
|
29
39
|
React.useEffect(() => {
|
|
30
40
|
const newRoutes = [];
|
|
31
41
|
const scenes = {};
|
|
32
|
-
React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && child.
|
|
42
|
+
React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child) && instanceOfTabViewItemProps(child.props)).forEach((item, idx) => {
|
|
33
43
|
const child = item;
|
|
34
44
|
newRoutes.push({
|
|
35
45
|
key: idx.toString(),
|
|
@@ -58,6 +68,7 @@ const TabViewComponent = _ref => {
|
|
|
58
68
|
indicatorStyle: {
|
|
59
69
|
backgroundColor: indicatorColor || theme.colors.primary
|
|
60
70
|
},
|
|
71
|
+
labelStyle: textStyles,
|
|
61
72
|
renderIcon: _ref2 => {
|
|
62
73
|
let {
|
|
63
74
|
route,
|
|
@@ -66,15 +77,21 @@ const TabViewComponent = _ref => {
|
|
|
66
77
|
return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
67
78
|
name: route.icon,
|
|
68
79
|
color: color,
|
|
69
|
-
size:
|
|
80
|
+
size: 16
|
|
70
81
|
}) : null;
|
|
71
82
|
},
|
|
72
|
-
style:
|
|
83
|
+
style: {
|
|
73
84
|
backgroundColor: tabsBackgroundColor || theme.colors.background
|
|
74
|
-
}
|
|
85
|
+
}
|
|
75
86
|
}));
|
|
76
87
|
};
|
|
88
|
+
|
|
89
|
+
//Cannot render TabView without at least one tab
|
|
90
|
+
if (!routes.length) {
|
|
91
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
92
|
+
}
|
|
77
93
|
return /*#__PURE__*/React.createElement(TabView, {
|
|
94
|
+
style: [viewStyles],
|
|
78
95
|
navigationState: {
|
|
79
96
|
index,
|
|
80
97
|
routes
|
package/lib/module/index.js
CHANGED
|
@@ -31,8 +31,10 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/Ac
|
|
|
31
31
|
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
|
+
export { default as Shadow } from "./components/Shadow";
|
|
34
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
35
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
|
+
export { default as Markdown } from "./components/Markdown";
|
|
36
38
|
|
|
37
39
|
/* Deprecated: Fix or Delete! */
|
|
38
40
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp,
|
|
1
|
+
import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, createNumberProp, GROUPS, Triggers, createActionProp, createStaticNumberProp, createColorProp, StylesPanelSections } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = [{
|
|
3
3
|
name: "Masonry List",
|
|
4
4
|
tag: "MasonryFlashList",
|
|
5
5
|
description: "Masonry Flashlist by Shopify",
|
|
6
6
|
packageName: "@shopify/flash-list",
|
|
7
7
|
category: COMPONENT_TYPES.data,
|
|
8
|
-
stylesPanelSections:
|
|
9
|
-
layout: {
|
|
10
|
-
flex: 1
|
|
11
|
-
},
|
|
8
|
+
stylesPanelSections: [StylesPanelSections.Background, StylesPanelSections.MarginsAndPaddings],
|
|
12
9
|
triggers: [Triggers.OnRefresh, Triggers.OnEndReached],
|
|
13
10
|
props: {
|
|
14
11
|
onRefresh: createActionProp(),
|
|
@@ -55,10 +52,7 @@ export const SEED_DATA = [{
|
|
|
55
52
|
description: "Flashlist by Shopify",
|
|
56
53
|
packageName: "@shopify/flash-list",
|
|
57
54
|
category: COMPONENT_TYPES.data,
|
|
58
|
-
stylesPanelSections:
|
|
59
|
-
layout: {
|
|
60
|
-
flex: 1
|
|
61
|
-
},
|
|
55
|
+
stylesPanelSections: [StylesPanelSections.Background, StylesPanelSections.MarginsAndPaddings],
|
|
62
56
|
triggers: [Triggers.OnRefresh, Triggers.OnEndReached],
|
|
63
57
|
props: {
|
|
64
58
|
onRefresh: createActionProp(),
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createTextProp, FORM_TYPES, PROP_TYPES, GROUPS, StylesPanelSections, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
const ELEMENT_SEED_DATA = {
|
|
3
|
+
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
4
|
+
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
5
|
+
packageName: "@expo/html-elements",
|
|
6
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
7
|
+
category: COMPONENT_TYPES.webelement
|
|
8
|
+
};
|
|
9
|
+
const TEXT_SEED_DATA = {
|
|
10
|
+
...ELEMENT_SEED_DATA,
|
|
11
|
+
category: COMPONENT_TYPES.text,
|
|
12
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
|
|
13
|
+
layout: {
|
|
14
|
+
color: "strong"
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
children: {
|
|
18
|
+
group: GROUPS.data,
|
|
19
|
+
label: "Text",
|
|
20
|
+
description: "Text",
|
|
21
|
+
defaultValue: "Double click me to edit 👀",
|
|
22
|
+
editable: true,
|
|
23
|
+
required: true,
|
|
24
|
+
formType: FORM_TYPES.string,
|
|
25
|
+
propType: PROP_TYPES.STRING
|
|
26
|
+
},
|
|
27
|
+
accessibilityLabel: {
|
|
28
|
+
group: GROUPS.accessibility,
|
|
29
|
+
name: "accessibilityLabel",
|
|
30
|
+
label: "accessibilityLabel",
|
|
31
|
+
description: "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
|
|
32
|
+
editable: true,
|
|
33
|
+
required: false,
|
|
34
|
+
formType: FORM_TYPES.string,
|
|
35
|
+
propType: PROP_TYPES.STRING,
|
|
36
|
+
defaultValue: null
|
|
37
|
+
},
|
|
38
|
+
selectable: {
|
|
39
|
+
group: GROUPS.advanced,
|
|
40
|
+
name: "selectable",
|
|
41
|
+
label: "selectable",
|
|
42
|
+
description: "Lets the user select text, to use the native copy and paste functionality.",
|
|
43
|
+
editable: true,
|
|
44
|
+
required: false,
|
|
45
|
+
formType: FORM_TYPES.boolean,
|
|
46
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
47
|
+
defaultValue: true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export const SEED_DATA = [{
|
|
52
|
+
name: "Heading 1",
|
|
53
|
+
tag: "H1",
|
|
54
|
+
...TEXT_SEED_DATA
|
|
55
|
+
}, {
|
|
56
|
+
name: "Heading 2",
|
|
57
|
+
tag: "H2",
|
|
58
|
+
...TEXT_SEED_DATA
|
|
59
|
+
}, {
|
|
60
|
+
name: "Heading 3",
|
|
61
|
+
tag: "H3",
|
|
62
|
+
...TEXT_SEED_DATA
|
|
63
|
+
}, {
|
|
64
|
+
name: "Heading 4",
|
|
65
|
+
tag: "H4",
|
|
66
|
+
...TEXT_SEED_DATA
|
|
67
|
+
}, {
|
|
68
|
+
name: "Heading 5",
|
|
69
|
+
tag: "H5",
|
|
70
|
+
...TEXT_SEED_DATA
|
|
71
|
+
}, {
|
|
72
|
+
name: "Heading 6",
|
|
73
|
+
tag: "H6",
|
|
74
|
+
...TEXT_SEED_DATA
|
|
75
|
+
}, {
|
|
76
|
+
name: "Paragraph",
|
|
77
|
+
tag: "P",
|
|
78
|
+
...TEXT_SEED_DATA
|
|
79
|
+
}, {
|
|
80
|
+
name: "Bold",
|
|
81
|
+
tag: "B",
|
|
82
|
+
...TEXT_SEED_DATA
|
|
83
|
+
}, {
|
|
84
|
+
name: "Strikethrough",
|
|
85
|
+
tag: "S",
|
|
86
|
+
...TEXT_SEED_DATA
|
|
87
|
+
}, {
|
|
88
|
+
name: "Italic",
|
|
89
|
+
tag: "I",
|
|
90
|
+
...TEXT_SEED_DATA
|
|
91
|
+
}, {
|
|
92
|
+
name: "Code",
|
|
93
|
+
tag: "Code",
|
|
94
|
+
...TEXT_SEED_DATA
|
|
95
|
+
}, {
|
|
96
|
+
name: "Preformatted",
|
|
97
|
+
tag: "Pre",
|
|
98
|
+
...TEXT_SEED_DATA
|
|
99
|
+
}, {
|
|
100
|
+
name: "Mark",
|
|
101
|
+
tag: "Mark",
|
|
102
|
+
...TEXT_SEED_DATA
|
|
103
|
+
}, {
|
|
104
|
+
name: "Block Quote",
|
|
105
|
+
tag: "BlockQuote",
|
|
106
|
+
...TEXT_SEED_DATA
|
|
107
|
+
}, {
|
|
108
|
+
name: "Quoted",
|
|
109
|
+
tag: "Q",
|
|
110
|
+
...TEXT_SEED_DATA
|
|
111
|
+
}, {
|
|
112
|
+
name: "Time",
|
|
113
|
+
tag: "Time",
|
|
114
|
+
...TEXT_SEED_DATA
|
|
115
|
+
}, {
|
|
116
|
+
name: "Unordered List",
|
|
117
|
+
tag: "UL",
|
|
118
|
+
...ELEMENT_SEED_DATA
|
|
119
|
+
}, {
|
|
120
|
+
name: "List Item",
|
|
121
|
+
tag: "LI",
|
|
122
|
+
...TEXT_SEED_DATA,
|
|
123
|
+
category: COMPONENT_TYPES.webelement
|
|
124
|
+
}, {
|
|
125
|
+
name: "Line Break",
|
|
126
|
+
tag: "BR",
|
|
127
|
+
...ELEMENT_SEED_DATA
|
|
128
|
+
}, {
|
|
129
|
+
name: "Horizontal Rule",
|
|
130
|
+
tag: "HR",
|
|
131
|
+
...ELEMENT_SEED_DATA
|
|
132
|
+
}, {
|
|
133
|
+
name: "Anchor",
|
|
134
|
+
tag: "A",
|
|
135
|
+
...TEXT_SEED_DATA,
|
|
136
|
+
props: {
|
|
137
|
+
...TEXT_SEED_DATA.props,
|
|
138
|
+
href: createTextProp({
|
|
139
|
+
label: "href",
|
|
140
|
+
description: "Specify the URL",
|
|
141
|
+
defaultValue: ""
|
|
142
|
+
}),
|
|
143
|
+
target: {
|
|
144
|
+
group: GROUPS.basic,
|
|
145
|
+
label: "target",
|
|
146
|
+
description: "decide where link should open",
|
|
147
|
+
formType: FORM_TYPES.flatArray,
|
|
148
|
+
defaultValue: "_blank",
|
|
149
|
+
options: ["_blank", "_self", "_parent", "_top"]
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
category: COMPONENT_TYPES.webelement
|
|
153
|
+
}];
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp, GROUPS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Shadow",
|
|
4
|
+
tag: "Shadow",
|
|
5
|
+
description: "A cross-platform, universal shadow.",
|
|
6
|
+
category: COMPONENT_TYPES.view,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
props: {
|
|
9
|
+
disabled: createDisabledProp({
|
|
10
|
+
description: "Disables the shadow."
|
|
11
|
+
}),
|
|
12
|
+
startColor: createColorProp({
|
|
13
|
+
label: "Start Color",
|
|
14
|
+
description: "The initial gradient color of the shadow.",
|
|
15
|
+
defaultValue: null
|
|
16
|
+
}),
|
|
17
|
+
endColor: createColorProp({
|
|
18
|
+
label: "End Color",
|
|
19
|
+
description: "The final gradient color of the shadow.",
|
|
20
|
+
defaultValue: null
|
|
21
|
+
}),
|
|
22
|
+
distance: createStaticNumberProp({
|
|
23
|
+
label: "Distance",
|
|
24
|
+
description: "The distance of the shadow."
|
|
25
|
+
}),
|
|
26
|
+
paintInside: createStaticBoolProp({
|
|
27
|
+
label: "Paint Inside",
|
|
28
|
+
description: "Apply the shadow below/inside the content.",
|
|
29
|
+
defaultValue: false
|
|
30
|
+
}),
|
|
31
|
+
stretch: createStaticBoolProp({
|
|
32
|
+
label: "Stretch",
|
|
33
|
+
description: "Force children to occupy all available horizontal space.",
|
|
34
|
+
defaultValue: null
|
|
35
|
+
}),
|
|
36
|
+
offsetX: createStaticNumberProp({
|
|
37
|
+
label: "Offset X",
|
|
38
|
+
description: "Moves the shadow in the x direction",
|
|
39
|
+
defeaultValue: 0
|
|
40
|
+
}),
|
|
41
|
+
offsetY: createStaticNumberProp({
|
|
42
|
+
label: "Offset Y",
|
|
43
|
+
description: "Moves the shadow in the y direction",
|
|
44
|
+
defeaultValue: 0
|
|
45
|
+
}),
|
|
46
|
+
showShadowSideStart: createStaticBoolProp({
|
|
47
|
+
label: "Show Shadow Start",
|
|
48
|
+
description: "Whether to show shadow on the start side or not",
|
|
49
|
+
defaultValue: true,
|
|
50
|
+
group: GROUPS.advanced
|
|
51
|
+
}),
|
|
52
|
+
showShadowSideEnd: createStaticBoolProp({
|
|
53
|
+
label: "Show Shadow End",
|
|
54
|
+
description: "Whether to show shadow on the end side or not",
|
|
55
|
+
defaultValue: true,
|
|
56
|
+
group: GROUPS.advanced
|
|
57
|
+
}),
|
|
58
|
+
showShadowSideTop: createStaticBoolProp({
|
|
59
|
+
label: "Show Shadow Top",
|
|
60
|
+
description: "Whether to show shadow on the top side or not",
|
|
61
|
+
defaultValue: true,
|
|
62
|
+
group: GROUPS.advanced
|
|
63
|
+
}),
|
|
64
|
+
showShadowSideBottom: createStaticBoolProp({
|
|
65
|
+
label: "Show Shadow Bottom",
|
|
66
|
+
description: "Whether to show shadow on the bottom side or not",
|
|
67
|
+
defaultValue: true,
|
|
68
|
+
group: GROUPS.advanced
|
|
69
|
+
}),
|
|
70
|
+
showShadowCornerTopStart: createStaticBoolProp({
|
|
71
|
+
label: "Show Shadow Top Start Corner",
|
|
72
|
+
description: "Whether to show shadow on the top start corner or not",
|
|
73
|
+
defaultValue: true,
|
|
74
|
+
group: GROUPS.advanced
|
|
75
|
+
}),
|
|
76
|
+
showShadowCornerTopEnd: createStaticBoolProp({
|
|
77
|
+
label: "Show Shadow Top End Corner",
|
|
78
|
+
description: "Whether to show shadow on the top end corner or not",
|
|
79
|
+
defaultValue: true,
|
|
80
|
+
group: GROUPS.advanced
|
|
81
|
+
}),
|
|
82
|
+
showShadowCornerBottomStart: createStaticBoolProp({
|
|
83
|
+
label: "Show Shadow Bottom Start Corner",
|
|
84
|
+
description: "Whether to show shadow on the bottom start corner or not",
|
|
85
|
+
defaultValue: true,
|
|
86
|
+
group: GROUPS.advanced
|
|
87
|
+
}),
|
|
88
|
+
showShadowCornerBottomEnd: createStaticBoolProp({
|
|
89
|
+
label: "Show Shadow Bottom End Corner",
|
|
90
|
+
description: "Whether to show shadow on the bottom end corner or not",
|
|
91
|
+
defaultValue: true,
|
|
92
|
+
group: GROUPS.advanced
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createTextEnumProp, createColorProp,
|
|
1
|
+
import { COMPONENT_TYPES, createTextEnumProp, createColorProp, StylesPanelSections, Triggers, createActionProp, createStaticBoolProp, GROUPS } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Tab View",
|
|
4
4
|
tag: "TabView",
|
|
5
5
|
description: "Tab view container",
|
|
6
6
|
category: COMPONENT_TYPES.swiper,
|
|
7
|
-
stylesPanelSections: [
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Typography],
|
|
8
8
|
triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
|
|
9
9
|
props: {
|
|
10
10
|
onIndexChanged: createActionProp({
|
|
@@ -33,9 +33,9 @@ export const SEED_DATA = {
|
|
|
33
33
|
defaultValue: true
|
|
34
34
|
}),
|
|
35
35
|
scrollEnabled: createStaticBoolProp({
|
|
36
|
-
label: "Scroll Enabled",
|
|
36
|
+
label: "Tab Scroll Enabled",
|
|
37
37
|
description: "Whether scrolling of tabs is enabled or not",
|
|
38
|
-
defaultValue:
|
|
38
|
+
defaultValue: false
|
|
39
39
|
}),
|
|
40
40
|
activeColor: createColorProp({
|
|
41
41
|
label: "Active Color",
|
|
@@ -49,8 +49,9 @@ export const SEED_DATA = {
|
|
|
49
49
|
}),
|
|
50
50
|
pressColor: createColorProp({
|
|
51
51
|
label: "Press Color",
|
|
52
|
-
description: "Color of ripple when pressed
|
|
53
|
-
defaultValue: "primary"
|
|
52
|
+
description: "Color of ripple when pressed",
|
|
53
|
+
defaultValue: "primary",
|
|
54
|
+
group: GROUPS.android
|
|
54
55
|
}),
|
|
55
56
|
indicatorColor: createColorProp({
|
|
56
57
|
label: "Indicator Color",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createTextProp, createIconProp, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createTextProp, createIconProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Tab View Item",
|
|
4
4
|
tag: "TabViewItem",
|
|
@@ -12,8 +12,9 @@ export const SEED_DATA = {
|
|
|
12
12
|
title: createTextProp({
|
|
13
13
|
label: "Title",
|
|
14
14
|
description: "Title of tab item",
|
|
15
|
-
defaultValue:
|
|
16
|
-
required: true
|
|
15
|
+
defaultValue: "Title",
|
|
16
|
+
required: true,
|
|
17
|
+
group: GROUPS.basic
|
|
17
18
|
}),
|
|
18
19
|
icon: createIconProp({
|
|
19
20
|
defaultValue: null,
|
|
@@ -22,7 +23,8 @@ export const SEED_DATA = {
|
|
|
22
23
|
accessibilityLabel: createTextProp({
|
|
23
24
|
label: "Accessibility Label",
|
|
24
25
|
description: "Accessibility Label",
|
|
25
|
-
defaultValue: null
|
|
26
|
+
defaultValue: null,
|
|
27
|
+
group: GROUPS.accessibility
|
|
26
28
|
})
|
|
27
29
|
}
|
|
28
30
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
interface ShadowProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
startColor?: string;
|
|
6
|
+
endColor?: string;
|
|
7
|
+
distance?: number;
|
|
8
|
+
paintInside?: boolean;
|
|
9
|
+
stretch?: boolean;
|
|
10
|
+
offsetX?: number;
|
|
11
|
+
offsetY?: number;
|
|
12
|
+
showShadowSideStart?: boolean;
|
|
13
|
+
showShadowSideEnd?: boolean;
|
|
14
|
+
showShadowSideTop?: boolean;
|
|
15
|
+
showShadowSideBottom?: boolean;
|
|
16
|
+
showShadowCornerTopStart?: boolean;
|
|
17
|
+
showShadowCornerTopEnd?: boolean;
|
|
18
|
+
showShadowCornerBottomStart?: boolean;
|
|
19
|
+
showShadowCornerBottomEnd?: boolean;
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
}
|
|
22
|
+
declare const Shadow: React.FC<React.PropsWithChildren<ShadowProps>>;
|
|
23
|
+
export default Shadow;
|
|
24
|
+
//# sourceMappingURL=Shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../../../../src/components/Shadow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAmC1D,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabView.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/TabView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"TabView.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/TabView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAMvD,aAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;AACvC,aAAK,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvD,aAAK,YAAY,GAAG;IAClB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC;;;;AA6Gb,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabViewItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/TabViewItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAGtE,
|
|
1
|
+
{"version":3,"file":"TabViewItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabView/TabViewItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAGtE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAKpE,CAAC;AAQF,eAAe,WAAW,CAAC"}
|
|
@@ -31,8 +31,10 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
|
|
|
31
31
|
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
|
+
export { default as Shadow } from "./components/Shadow";
|
|
34
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
35
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
|
+
export { default as Markdown } from "./components/Markdown";
|
|
36
38
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
37
39
|
export { default as Picker } from "./components/Picker/Picker";
|
|
38
40
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC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xD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -5,9 +5,6 @@ export declare const SEED_DATA: ({
|
|
|
5
5
|
packageName: string;
|
|
6
6
|
category: string;
|
|
7
7
|
stylesPanelSections: string[];
|
|
8
|
-
layout: {
|
|
9
|
-
flex: number;
|
|
10
|
-
};
|
|
11
8
|
triggers: string[];
|
|
12
9
|
props: {
|
|
13
10
|
onRefresh: {
|
|
@@ -113,9 +110,6 @@ export declare const SEED_DATA: ({
|
|
|
113
110
|
packageName: string;
|
|
114
111
|
category: string;
|
|
115
112
|
stylesPanelSections: string[];
|
|
116
|
-
layout: {
|
|
117
|
-
flex: number;
|
|
118
|
-
};
|
|
119
113
|
triggers: string[];
|
|
120
114
|
props: {
|
|
121
115
|
onRefresh: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlashList.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlashList.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqHrB,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const SEED_DATA: ({
|
|
2
|
+
category: string;
|
|
3
|
+
stylesPanelSections: string[];
|
|
4
|
+
layout: {
|
|
5
|
+
color: string;
|
|
6
|
+
};
|
|
7
|
+
props: {
|
|
8
|
+
children: {
|
|
9
|
+
group: string;
|
|
10
|
+
label: string;
|
|
11
|
+
description: string;
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
editable: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
formType: string;
|
|
16
|
+
propType: string;
|
|
17
|
+
};
|
|
18
|
+
accessibilityLabel: {
|
|
19
|
+
group: string;
|
|
20
|
+
name: string;
|
|
21
|
+
label: string;
|
|
22
|
+
description: string;
|
|
23
|
+
editable: boolean;
|
|
24
|
+
required: boolean;
|
|
25
|
+
formType: string;
|
|
26
|
+
propType: string;
|
|
27
|
+
defaultValue: null;
|
|
28
|
+
};
|
|
29
|
+
selectable: {
|
|
30
|
+
group: string;
|
|
31
|
+
name: string;
|
|
32
|
+
label: string;
|
|
33
|
+
description: string;
|
|
34
|
+
editable: boolean;
|
|
35
|
+
required: boolean;
|
|
36
|
+
formType: string;
|
|
37
|
+
propType: string;
|
|
38
|
+
defaultValue: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
doc_link: string;
|
|
42
|
+
code_link: string;
|
|
43
|
+
packageName: string;
|
|
44
|
+
name: string;
|
|
45
|
+
tag: string;
|
|
46
|
+
} | {
|
|
47
|
+
doc_link: string;
|
|
48
|
+
code_link: string;
|
|
49
|
+
packageName: string;
|
|
50
|
+
stylesPanelSections: string[];
|
|
51
|
+
category: string;
|
|
52
|
+
name: string;
|
|
53
|
+
tag: string;
|
|
54
|
+
} | {
|
|
55
|
+
props: {
|
|
56
|
+
href: any;
|
|
57
|
+
target: {
|
|
58
|
+
group: string;
|
|
59
|
+
label: string;
|
|
60
|
+
description: string;
|
|
61
|
+
formType: string;
|
|
62
|
+
defaultValue: string;
|
|
63
|
+
options: string[];
|
|
64
|
+
};
|
|
65
|
+
children: {
|
|
66
|
+
group: string;
|
|
67
|
+
label: string;
|
|
68
|
+
description: string;
|
|
69
|
+
defaultValue: string;
|
|
70
|
+
editable: boolean;
|
|
71
|
+
required: boolean;
|
|
72
|
+
formType: string;
|
|
73
|
+
propType: string;
|
|
74
|
+
};
|
|
75
|
+
accessibilityLabel: {
|
|
76
|
+
group: string;
|
|
77
|
+
name: string;
|
|
78
|
+
label: string;
|
|
79
|
+
description: string;
|
|
80
|
+
editable: boolean;
|
|
81
|
+
required: boolean;
|
|
82
|
+
formType: string;
|
|
83
|
+
propType: string;
|
|
84
|
+
defaultValue: null;
|
|
85
|
+
};
|
|
86
|
+
selectable: {
|
|
87
|
+
group: string;
|
|
88
|
+
name: string;
|
|
89
|
+
label: string;
|
|
90
|
+
description: string;
|
|
91
|
+
editable: boolean;
|
|
92
|
+
required: boolean;
|
|
93
|
+
formType: string;
|
|
94
|
+
propType: string;
|
|
95
|
+
defaultValue: boolean;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
category: string;
|
|
99
|
+
stylesPanelSections: string[];
|
|
100
|
+
layout: {
|
|
101
|
+
color: string;
|
|
102
|
+
};
|
|
103
|
+
doc_link: string;
|
|
104
|
+
code_link: string;
|
|
105
|
+
packageName: string;
|
|
106
|
+
name: string;
|
|
107
|
+
tag: string;
|
|
108
|
+
})[];
|
|
109
|
+
//# sourceMappingURL=HtmlElements.d.ts.map
|