@draftbit/core 46.9.1-db63a0.2 → 46.9.1-e06549.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/Accordion/AccordionItem.js +23 -4
- package/lib/commonjs/components/AnimatedCircularProgress.js +12 -1
- package/lib/commonjs/index.js +0 -19
- package/lib/commonjs/mappings/HtmlElements.js +160 -0
- package/lib/module/index.js +0 -1
- package/lib/module/mappings/HtmlElements.js +153 -0
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.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/package.json +4 -3
- package/src/index.js +0 -1
- package/src/index.tsx +0 -2
- package/src/mappings/HtmlElements.js +180 -0
- package/src/mappings/HtmlElements.ts +194 -0
- package/lib/commonjs/components/Table/Table.js +0 -91
- package/lib/commonjs/components/Table/TableCell.js +0 -49
- package/lib/commonjs/components/Table/TableCommon.js +0 -30
- package/lib/commonjs/components/Table/TableRow.js +0 -61
- package/lib/commonjs/components/Table/index.js +0 -27
- package/lib/commonjs/mappings/Table.js +0 -127
- package/lib/module/components/Table/Table.js +0 -83
- package/lib/module/components/Table/TableCell.js +0 -41
- package/lib/module/components/Table/TableCommon.js +0 -21
- package/lib/module/components/Table/TableRow.js +0 -53
- package/lib/module/components/Table/index.js +0 -3
- package/lib/module/mappings/Table.js +0 -120
- package/lib/typescript/src/components/Table/Table.d.ts +0 -19
- package/lib/typescript/src/components/Table/Table.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts +0 -9
- package/lib/typescript/src/components/Table/TableCell.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/TableCommon.d.ts +0 -20
- package/lib/typescript/src/components/Table/TableCommon.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts +0 -14
- package/lib/typescript/src/components/Table/TableRow.d.ts.map +0 -1
- package/lib/typescript/src/components/Table/index.d.ts +0 -4
- package/lib/typescript/src/components/Table/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Table.d.ts +0 -327
- package/lib/typescript/src/mappings/Table.d.ts.map +0 -1
- package/src/components/Table/Table.js +0 -64
- package/src/components/Table/Table.tsx +0 -136
- package/src/components/Table/TableCell.js +0 -31
- package/src/components/Table/TableCell.tsx +0 -63
- package/src/components/Table/TableCommon.js +0 -12
- package/src/components/Table/TableCommon.ts +0 -40
- package/src/components/Table/TableRow.js +0 -37
- package/src/components/Table/TableRow.tsx +0 -77
- package/src/components/Table/index.js +0 -3
- package/src/components/Table/index.tsx +0 -3
- package/src/mappings/Table.js +0 -137
- package/src/mappings/Table.ts +0 -156
|
@@ -12,7 +12,6 @@ var _theming = require("../../theming");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
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); }
|
|
14
14
|
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; }
|
|
15
|
-
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); }
|
|
16
15
|
const AccordionItem = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
Icon,
|
|
@@ -27,9 +26,10 @@ const AccordionItem = _ref => {
|
|
|
27
26
|
textStyles,
|
|
28
27
|
viewStyles
|
|
29
28
|
} = (0, _utilities.extractStyles)(style);
|
|
30
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable,
|
|
31
|
-
style: [styles.container, viewStyles]
|
|
32
|
-
|
|
29
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
30
|
+
style: [styles.container, viewStyles],
|
|
31
|
+
...rest
|
|
32
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
33
33
|
style: styles.row
|
|
34
34
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
35
35
|
name: icon,
|
|
@@ -61,4 +61,23 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
64
|
+
exports.default = _default;.StyleSheet.create({
|
|
65
|
+
container: {
|
|
66
|
+
padding: 8
|
|
67
|
+
},
|
|
68
|
+
row: {
|
|
69
|
+
flexDirection: "row",
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
paddingLeft: 8
|
|
72
|
+
},
|
|
73
|
+
item: {
|
|
74
|
+
marginVertical: 6,
|
|
75
|
+
paddingLeft: 8
|
|
76
|
+
},
|
|
77
|
+
content: {
|
|
78
|
+
flex: 1,
|
|
79
|
+
justifyContent: "center"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
64
83
|
exports.default = _default;
|
|
@@ -10,7 +10,6 @@ var _CircularProgress = _interopRequireDefault(require("./CircularProgress"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
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
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
|
-
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); }
|
|
14
13
|
const AnimatedProgress = _reactNative.Animated.createAnimatedComponent(_CircularProgress.default);
|
|
15
14
|
const AnimatedCircularProgress = _ref => {
|
|
16
15
|
let {
|
|
@@ -55,6 +54,18 @@ const AnimatedCircularProgress = _ref => {
|
|
|
55
54
|
React.useEffect(() => {
|
|
56
55
|
animate();
|
|
57
56
|
}, [fill, animate]);
|
|
57
|
+
return /*#__PURE__*/React.createElement(AnimatedProgress, {
|
|
58
|
+
...other,
|
|
59
|
+
style: other.style,
|
|
60
|
+
childrenContainerStyle: other.childrenContainerStyle,
|
|
61
|
+
fill: fillAnimation,
|
|
62
|
+
tintColor: animateColor()
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
var _default = AnimatedCircularProgress;
|
|
66
|
+
exports.default = _default;ect(() => {
|
|
67
|
+
animate();
|
|
68
|
+
}, [fill, animate]);
|
|
58
69
|
return /*#__PURE__*/React.createElement(AnimatedProgress, _extends({}, other, {
|
|
59
70
|
style: other.style,
|
|
60
71
|
childrenContainerStyle: other.childrenContainerStyle,
|
package/lib/commonjs/index.js
CHANGED
|
@@ -363,24 +363,6 @@ Object.defineProperty(exports, "TabViewItem", {
|
|
|
363
363
|
return _TabView.TabViewItem;
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
-
Object.defineProperty(exports, "Table", {
|
|
367
|
-
enumerable: true,
|
|
368
|
-
get: function () {
|
|
369
|
-
return _Table.Table;
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
Object.defineProperty(exports, "TableCell", {
|
|
373
|
-
enumerable: true,
|
|
374
|
-
get: function () {
|
|
375
|
-
return _Table.TableCell;
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
Object.defineProperty(exports, "TableRow", {
|
|
379
|
-
enumerable: true,
|
|
380
|
-
get: function () {
|
|
381
|
-
return _Table.TableRow;
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
366
|
Object.defineProperty(exports, "TextField", {
|
|
385
367
|
enumerable: true,
|
|
386
368
|
get: function () {
|
|
@@ -459,7 +441,6 @@ var _Shadow = _interopRequireDefault(require("./components/Shadow"));
|
|
|
459
441
|
var _DeckSwiper = require("./components/DeckSwiper");
|
|
460
442
|
var _TabView = require("./components/TabView");
|
|
461
443
|
var _Markdown = _interopRequireDefault(require("./components/Markdown"));
|
|
462
|
-
var _Table = require("./components/Table");
|
|
463
444
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
464
445
|
var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
|
|
465
446
|
var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
|
|
@@ -0,0 +1,160 @@
|
|
|
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 ELEMENT_SEED_DATA = {
|
|
9
|
+
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
10
|
+
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
11
|
+
packageName: "@expo/html-elements",
|
|
12
|
+
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
13
|
+
category: _types.COMPONENT_TYPES.webelement
|
|
14
|
+
};
|
|
15
|
+
const TEXT_SEED_DATA = {
|
|
16
|
+
...ELEMENT_SEED_DATA,
|
|
17
|
+
category: _types.COMPONENT_TYPES.text,
|
|
18
|
+
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Effects],
|
|
19
|
+
layout: {
|
|
20
|
+
color: "strong"
|
|
21
|
+
},
|
|
22
|
+
props: {
|
|
23
|
+
children: {
|
|
24
|
+
group: _types.GROUPS.data,
|
|
25
|
+
label: "Text",
|
|
26
|
+
description: "Text",
|
|
27
|
+
defaultValue: "Double click me to edit 👀",
|
|
28
|
+
editable: true,
|
|
29
|
+
required: true,
|
|
30
|
+
formType: _types.FORM_TYPES.string,
|
|
31
|
+
propType: _types.PROP_TYPES.STRING
|
|
32
|
+
},
|
|
33
|
+
accessibilityLabel: {
|
|
34
|
+
group: _types.GROUPS.accessibility,
|
|
35
|
+
name: "accessibilityLabel",
|
|
36
|
+
label: "accessibilityLabel",
|
|
37
|
+
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.",
|
|
38
|
+
editable: true,
|
|
39
|
+
required: false,
|
|
40
|
+
formType: _types.FORM_TYPES.string,
|
|
41
|
+
propType: _types.PROP_TYPES.STRING,
|
|
42
|
+
defaultValue: null
|
|
43
|
+
},
|
|
44
|
+
selectable: {
|
|
45
|
+
group: _types.GROUPS.advanced,
|
|
46
|
+
name: "selectable",
|
|
47
|
+
label: "selectable",
|
|
48
|
+
description: "Lets the user select text, to use the native copy and paste functionality.",
|
|
49
|
+
editable: true,
|
|
50
|
+
required: false,
|
|
51
|
+
formType: _types.FORM_TYPES.boolean,
|
|
52
|
+
propType: _types.PROP_TYPES.BOOLEAN,
|
|
53
|
+
defaultValue: true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const SEED_DATA = [{
|
|
58
|
+
name: "Heading 1",
|
|
59
|
+
tag: "H1",
|
|
60
|
+
...TEXT_SEED_DATA
|
|
61
|
+
}, {
|
|
62
|
+
name: "Heading 2",
|
|
63
|
+
tag: "H2",
|
|
64
|
+
...TEXT_SEED_DATA
|
|
65
|
+
}, {
|
|
66
|
+
name: "Heading 3",
|
|
67
|
+
tag: "H3",
|
|
68
|
+
...TEXT_SEED_DATA
|
|
69
|
+
}, {
|
|
70
|
+
name: "Heading 4",
|
|
71
|
+
tag: "H4",
|
|
72
|
+
...TEXT_SEED_DATA
|
|
73
|
+
}, {
|
|
74
|
+
name: "Heading 5",
|
|
75
|
+
tag: "H5",
|
|
76
|
+
...TEXT_SEED_DATA
|
|
77
|
+
}, {
|
|
78
|
+
name: "Heading 6",
|
|
79
|
+
tag: "H6",
|
|
80
|
+
...TEXT_SEED_DATA
|
|
81
|
+
}, {
|
|
82
|
+
name: "Paragraph",
|
|
83
|
+
tag: "P",
|
|
84
|
+
...TEXT_SEED_DATA
|
|
85
|
+
}, {
|
|
86
|
+
name: "Bold",
|
|
87
|
+
tag: "B",
|
|
88
|
+
...TEXT_SEED_DATA
|
|
89
|
+
}, {
|
|
90
|
+
name: "Strikethrough",
|
|
91
|
+
tag: "S",
|
|
92
|
+
...TEXT_SEED_DATA
|
|
93
|
+
}, {
|
|
94
|
+
name: "Italic",
|
|
95
|
+
tag: "I",
|
|
96
|
+
...TEXT_SEED_DATA
|
|
97
|
+
}, {
|
|
98
|
+
name: "Code",
|
|
99
|
+
tag: "Code",
|
|
100
|
+
...TEXT_SEED_DATA
|
|
101
|
+
}, {
|
|
102
|
+
name: "Preformatted",
|
|
103
|
+
tag: "Pre",
|
|
104
|
+
...TEXT_SEED_DATA
|
|
105
|
+
}, {
|
|
106
|
+
name: "Mark",
|
|
107
|
+
tag: "Mark",
|
|
108
|
+
...TEXT_SEED_DATA
|
|
109
|
+
}, {
|
|
110
|
+
name: "Block Quote",
|
|
111
|
+
tag: "BlockQuote",
|
|
112
|
+
...TEXT_SEED_DATA
|
|
113
|
+
}, {
|
|
114
|
+
name: "Quoted",
|
|
115
|
+
tag: "Q",
|
|
116
|
+
...TEXT_SEED_DATA
|
|
117
|
+
}, {
|
|
118
|
+
name: "Time",
|
|
119
|
+
tag: "Time",
|
|
120
|
+
...TEXT_SEED_DATA
|
|
121
|
+
}, {
|
|
122
|
+
name: "Unordered List",
|
|
123
|
+
tag: "UL",
|
|
124
|
+
...ELEMENT_SEED_DATA
|
|
125
|
+
}, {
|
|
126
|
+
name: "List Item",
|
|
127
|
+
tag: "LI",
|
|
128
|
+
...TEXT_SEED_DATA,
|
|
129
|
+
category: _types.COMPONENT_TYPES.webelement
|
|
130
|
+
}, {
|
|
131
|
+
name: "Line Break",
|
|
132
|
+
tag: "BR",
|
|
133
|
+
...ELEMENT_SEED_DATA
|
|
134
|
+
}, {
|
|
135
|
+
name: "Horizontal Rule",
|
|
136
|
+
tag: "HR",
|
|
137
|
+
...ELEMENT_SEED_DATA
|
|
138
|
+
}, {
|
|
139
|
+
name: "Anchor",
|
|
140
|
+
tag: "A",
|
|
141
|
+
...TEXT_SEED_DATA,
|
|
142
|
+
props: {
|
|
143
|
+
...TEXT_SEED_DATA.props,
|
|
144
|
+
href: (0, _types.createTextProp)({
|
|
145
|
+
label: "href",
|
|
146
|
+
description: "Specify the URL",
|
|
147
|
+
defaultValue: ""
|
|
148
|
+
}),
|
|
149
|
+
target: {
|
|
150
|
+
group: _types.GROUPS.basic,
|
|
151
|
+
label: "target",
|
|
152
|
+
description: "decide where link should open",
|
|
153
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
154
|
+
defaultValue: "_blank",
|
|
155
|
+
options: ["_blank", "_self", "_parent", "_top"]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
category: _types.COMPONENT_TYPES.webelement
|
|
159
|
+
}];
|
|
160
|
+
exports.SEED_DATA = SEED_DATA;
|
package/lib/module/index.js
CHANGED
|
@@ -35,7 +35,6 @@ export { default as Shadow } from "./components/Shadow";
|
|
|
35
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
|
-
export { Table, TableRow, TableCell } from "./components/Table";
|
|
39
38
|
|
|
40
39
|
/* Deprecated: Fix or Delete! */
|
|
41
40
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -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
|
+
}];
|
|
@@ -35,7 +35,6 @@ export { default as Shadow } from "./components/Shadow";
|
|
|
35
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
|
-
export { Table, TableRow, TableCell } from "./components/Table";
|
|
39
38
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
40
39
|
export { default as Picker } from "./components/Picker/Picker";
|
|
41
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,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EA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yB,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HtmlElements.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HtmlElements.ts"],"names":[],"mappings":"AAoEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6HrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.9.1-
|
|
3
|
+
"version": "46.9.1-e06549.2+e065491",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^46.9.1-
|
|
44
|
+
"@draftbit/types": "^46.9.1-e06549.2+e065491",
|
|
45
|
+
"@expo/html-elements": "^0.3.1",
|
|
45
46
|
"@material-ui/core": "^4.11.0",
|
|
46
47
|
"@material-ui/pickers": "^3.2.10",
|
|
47
48
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -96,5 +97,5 @@
|
|
|
96
97
|
]
|
|
97
98
|
]
|
|
98
99
|
},
|
|
99
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "e0654918cd0648f300038c6fc444c7955b49cac1"
|
|
100
101
|
}
|
package/src/index.js
CHANGED
|
@@ -35,7 +35,6 @@ export { default as Shadow } from "./components/Shadow";
|
|
|
35
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
|
-
export { Table, TableRow, TableCell } from "./components/Table";
|
|
39
38
|
/* Deprecated: Fix or Delete! */
|
|
40
39
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
41
40
|
export { default as Picker } from "./components/Picker/Picker";
|
package/src/index.tsx
CHANGED
|
@@ -58,8 +58,6 @@ export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
|
58
58
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
59
59
|
export { default as Markdown } from "./components/Markdown";
|
|
60
60
|
|
|
61
|
-
export { Table, TableRow, TableCell } from "./components/Table";
|
|
62
|
-
|
|
63
61
|
/* Deprecated: Fix or Delete! */
|
|
64
62
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
65
63
|
export { default as Picker } from "./components/Picker/Picker";
|