@draftbit/core 46.4.4-9a666e.2 → 46.4.4-ae1fa9.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/mappings/Elements.js +0 -2
- package/lib/module/components/AspectRatio.js +19 -2
- package/lib/module/components/Divider.js +20 -2
- package/lib/module/mappings/Elements.js +0 -2
- package/lib/typescript/src/mappings/Elements.d.ts +0 -6
- package/package.json +3 -3
- package/src/mappings/Elements.js +0 -2
- package/src/mappings/Elements.ts +0 -2
|
@@ -10,8 +10,6 @@ var _types = require("@draftbit/types");
|
|
|
10
10
|
const SEED_DATA_TRIGGERS = [_types.Triggers.OnValueChange];
|
|
11
11
|
const ELEMENT_PROPS = {
|
|
12
12
|
category: _types.COMPONENT_TYPES.element,
|
|
13
|
-
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
14
|
-
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
15
13
|
stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
|
|
16
14
|
layout: {
|
|
17
15
|
margin: 0
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from "react";
|
|
4
2
|
import { View, StyleSheet } from "react-native";
|
|
5
3
|
|
|
@@ -32,6 +30,25 @@ const AspectRatio = props => {
|
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
|
|
33
|
+
return /*#__PURE__*/React.createElement(View, { ...props,
|
|
34
|
+
style: style,
|
|
35
|
+
onLayout: _ref => {
|
|
36
|
+
let {
|
|
37
|
+
nativeEvent: {
|
|
38
|
+
layout: l
|
|
39
|
+
}
|
|
40
|
+
} = _ref;
|
|
41
|
+
return setLayout(l);
|
|
42
|
+
}
|
|
43
|
+
}, props.children);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default AspectRatio; width,
|
|
47
|
+
height: width * (1 / aspectRatio)
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
35
52
|
return /*#__PURE__*/React.createElement(View, _extends({}, props, {
|
|
36
53
|
style: style,
|
|
37
54
|
onLayout: _ref => {
|
|
@@ -1,9 +1,27 @@
|
|
|
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
|
-
|
|
3
1
|
import * as React from "react";
|
|
4
2
|
import { StyleSheet, View } from "react-native";
|
|
5
3
|
import { withTheme } from "../theming";
|
|
6
4
|
|
|
5
|
+
const Divider = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
style,
|
|
8
|
+
color,
|
|
9
|
+
theme: {
|
|
10
|
+
colors
|
|
11
|
+
},
|
|
12
|
+
...rest
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
15
|
+
style: [{
|
|
16
|
+
backgroundColor: color || colors.divider,
|
|
17
|
+
height: StyleSheet.hairlineWidth
|
|
18
|
+
}, style],
|
|
19
|
+
...rest
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default withTheme(Divider);ng";
|
|
24
|
+
|
|
7
25
|
const Divider = _ref => {
|
|
8
26
|
let {
|
|
9
27
|
style,
|
|
@@ -3,8 +3,6 @@ createTextProp, FORM_TYPES, GROUPS, Triggers } from "@draftbit/types";
|
|
|
3
3
|
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
4
4
|
const ELEMENT_PROPS = {
|
|
5
5
|
category: COMPONENT_TYPES.element,
|
|
6
|
-
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
7
|
-
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
8
6
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
9
7
|
layout: {
|
|
10
8
|
margin: 0
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare const SEED_DATA: ({
|
|
2
2
|
category: string;
|
|
3
|
-
doc_link: string;
|
|
4
|
-
code_link: string;
|
|
5
3
|
stylesPanelSections: string[];
|
|
6
4
|
layout: {
|
|
7
5
|
margin: number;
|
|
@@ -22,8 +20,6 @@ export declare const SEED_DATA: ({
|
|
|
22
20
|
};
|
|
23
21
|
};
|
|
24
22
|
category: string;
|
|
25
|
-
doc_link: string;
|
|
26
|
-
code_link: string;
|
|
27
23
|
stylesPanelSections: string[];
|
|
28
24
|
layout: {
|
|
29
25
|
margin: number;
|
|
@@ -37,8 +33,6 @@ export declare const SEED_DATA: ({
|
|
|
37
33
|
target?: undefined;
|
|
38
34
|
};
|
|
39
35
|
category: string;
|
|
40
|
-
doc_link: string;
|
|
41
|
-
code_link: string;
|
|
42
36
|
stylesPanelSections: string[];
|
|
43
37
|
layout: {
|
|
44
38
|
margin: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.4.4-
|
|
3
|
+
"version": "46.4.4-ae1fa9.2+ae1fa91",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
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.4.4-
|
|
44
|
+
"@draftbit/types": "^46.4.4-ae1fa9.2+ae1fa91",
|
|
45
45
|
"@expo/html-elements": "^0.2.0",
|
|
46
46
|
"@material-ui/core": "^4.11.0",
|
|
47
47
|
"@material-ui/pickers": "^3.2.10",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
]
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "ae1fa911fc0570abd4289d8901f06eb3e7b69ceb"
|
|
86
86
|
}
|
package/src/mappings/Elements.js
CHANGED
|
@@ -4,8 +4,6 @@ createTextProp, FORM_TYPES, GROUPS, Triggers, } from "@draftbit/types";
|
|
|
4
4
|
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
5
5
|
const ELEMENT_PROPS = {
|
|
6
6
|
category: COMPONENT_TYPES.element,
|
|
7
|
-
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
8
|
-
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
9
7
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
10
8
|
layout: {
|
|
11
9
|
margin: 0,
|
package/src/mappings/Elements.ts
CHANGED
|
@@ -11,8 +11,6 @@ const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
|
11
11
|
|
|
12
12
|
const ELEMENT_PROPS = {
|
|
13
13
|
category: COMPONENT_TYPES.element,
|
|
14
|
-
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
15
|
-
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
16
14
|
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
17
15
|
layout: {
|
|
18
16
|
margin: 0,
|