@draftbit/core 46.8.1-fb7984.2 → 46.8.1-fe4ccb.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/Shadow.js +1 -3
- package/lib/commonjs/mappings/Shadow.js +3 -3
- package/lib/module/components/Shadow.js +1 -3
- package/lib/module/mappings/Shadow.js +3 -3
- package/lib/typescript/src/components/Shadow.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Shadow.js +2 -2
- package/src/components/Shadow.tsx +0 -2
- package/src/mappings/Shadow.js +3 -3
- package/src/mappings/Shadow.ts +3 -3
|
@@ -20,7 +20,6 @@ const Shadow = _ref => {
|
|
|
20
20
|
showShadowCornerTopEnd = true,
|
|
21
21
|
showShadowCornerBottomStart = true,
|
|
22
22
|
showShadowCornerBottomEnd = true,
|
|
23
|
-
style,
|
|
24
23
|
...rest
|
|
25
24
|
} = _ref;
|
|
26
25
|
return /*#__PURE__*/_react.default.createElement(_reactNativeShadow.Shadow, _extends({
|
|
@@ -36,8 +35,7 @@ const Shadow = _ref => {
|
|
|
36
35
|
topEnd: showShadowCornerTopEnd,
|
|
37
36
|
bottomStart: showShadowCornerBottomStart,
|
|
38
37
|
bottomEnd: showShadowCornerBottomEnd
|
|
39
|
-
}
|
|
40
|
-
containerStyle: style
|
|
38
|
+
}
|
|
41
39
|
}, rest));
|
|
42
40
|
};
|
|
43
41
|
var _default = Shadow;
|
|
@@ -7,7 +7,7 @@ exports.SEED_DATA = void 0;
|
|
|
7
7
|
var _types = require("@draftbit/types");
|
|
8
8
|
const SEED_DATA = {
|
|
9
9
|
name: "Shadow",
|
|
10
|
-
tag: "Shadow",
|
|
10
|
+
tag: "Shadow View",
|
|
11
11
|
description: "A cross-platform, universal shadow.",
|
|
12
12
|
category: _types.COMPONENT_TYPES.view,
|
|
13
13
|
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
@@ -41,12 +41,12 @@ const SEED_DATA = {
|
|
|
41
41
|
}),
|
|
42
42
|
offsetX: (0, _types.createStaticNumberProp)({
|
|
43
43
|
label: "Offset X",
|
|
44
|
-
description: "
|
|
44
|
+
description: "Moved the shadow in the x direction",
|
|
45
45
|
defeaultValue: 0
|
|
46
46
|
}),
|
|
47
47
|
offsetY: (0, _types.createStaticNumberProp)({
|
|
48
48
|
label: "Offset Y",
|
|
49
|
-
description: "
|
|
49
|
+
description: "Moved the shadow in the y direction",
|
|
50
50
|
defeaultValue: 0
|
|
51
51
|
}),
|
|
52
52
|
showShadowSideStart: (0, _types.createStaticBoolProp)({
|
|
@@ -13,7 +13,6 @@ const Shadow = _ref => {
|
|
|
13
13
|
showShadowCornerTopEnd = true,
|
|
14
14
|
showShadowCornerBottomStart = true,
|
|
15
15
|
showShadowCornerBottomEnd = true,
|
|
16
|
-
style,
|
|
17
16
|
...rest
|
|
18
17
|
} = _ref;
|
|
19
18
|
return /*#__PURE__*/React.createElement(ShadowComponent, _extends({
|
|
@@ -29,8 +28,7 @@ const Shadow = _ref => {
|
|
|
29
28
|
topEnd: showShadowCornerTopEnd,
|
|
30
29
|
bottomStart: showShadowCornerBottomStart,
|
|
31
30
|
bottomEnd: showShadowCornerBottomEnd
|
|
32
|
-
}
|
|
33
|
-
containerStyle: style
|
|
31
|
+
}
|
|
34
32
|
}, rest));
|
|
35
33
|
};
|
|
36
34
|
export default Shadow;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Shadow",
|
|
4
|
-
tag: "Shadow",
|
|
4
|
+
tag: "Shadow View",
|
|
5
5
|
description: "A cross-platform, universal shadow.",
|
|
6
6
|
category: COMPONENT_TYPES.view,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
@@ -35,12 +35,12 @@ export const SEED_DATA = {
|
|
|
35
35
|
}),
|
|
36
36
|
offsetX: createStaticNumberProp({
|
|
37
37
|
label: "Offset X",
|
|
38
|
-
description: "
|
|
38
|
+
description: "Moved the shadow in the x direction",
|
|
39
39
|
defeaultValue: 0
|
|
40
40
|
}),
|
|
41
41
|
offsetY: createStaticNumberProp({
|
|
42
42
|
label: "Offset Y",
|
|
43
|
-
description: "
|
|
43
|
+
description: "Moved the shadow in the y direction",
|
|
44
44
|
defeaultValue: 0
|
|
45
45
|
}),
|
|
46
46
|
showShadowSideStart: createStaticBoolProp({
|
|
@@ -1 +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,
|
|
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,CA+B1D,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.8.1-
|
|
3
|
+
"version": "46.8.1-fe4ccb.2+fe4ccb0",
|
|
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.8.1-
|
|
44
|
+
"@draftbit/types": "^46.8.1-fe4ccb.2+fe4ccb0",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
]
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "fe4ccb0e89bed309fb7119f40a6b248db0ac00b1"
|
|
97
97
|
}
|
package/src/components/Shadow.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Shadow as ShadowComponent } from "react-native-shadow-2";
|
|
3
|
-
const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShadowSideEnd = true, showShadowSideTop = true, showShadowSideBottom = true, showShadowCornerTopStart = true, showShadowCornerTopEnd = true, showShadowCornerBottomStart = true, showShadowCornerBottomEnd = true,
|
|
3
|
+
const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShadowSideEnd = true, showShadowSideTop = true, showShadowSideBottom = true, showShadowCornerTopStart = true, showShadowCornerTopEnd = true, showShadowCornerBottomStart = true, showShadowCornerBottomEnd = true, ...rest }) => {
|
|
4
4
|
return (React.createElement(ShadowComponent, { offset: [offsetX, offsetY], sides: {
|
|
5
5
|
start: showShadowSideStart,
|
|
6
6
|
end: showShadowSideEnd,
|
|
@@ -11,6 +11,6 @@ const Shadow = ({ offsetX = 0, offsetY = 0, showShadowSideStart = true, showShad
|
|
|
11
11
|
topEnd: showShadowCornerTopEnd,
|
|
12
12
|
bottomStart: showShadowCornerBottomStart,
|
|
13
13
|
bottomEnd: showShadowCornerBottomEnd,
|
|
14
|
-
},
|
|
14
|
+
}, ...rest }));
|
|
15
15
|
};
|
|
16
16
|
export default Shadow;
|
|
@@ -33,7 +33,6 @@ const Shadow: React.FC<React.PropsWithChildren<ShadowProps>> = ({
|
|
|
33
33
|
showShadowCornerTopEnd = true,
|
|
34
34
|
showShadowCornerBottomStart = true,
|
|
35
35
|
showShadowCornerBottomEnd = true,
|
|
36
|
-
style,
|
|
37
36
|
...rest
|
|
38
37
|
}) => {
|
|
39
38
|
return (
|
|
@@ -51,7 +50,6 @@ const Shadow: React.FC<React.PropsWithChildren<ShadowProps>> = ({
|
|
|
51
50
|
bottomStart: showShadowCornerBottomStart,
|
|
52
51
|
bottomEnd: showShadowCornerBottomEnd,
|
|
53
52
|
}}
|
|
54
|
-
containerStyle={style}
|
|
55
53
|
{...rest}
|
|
56
54
|
/>
|
|
57
55
|
);
|
package/src/mappings/Shadow.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Shadow",
|
|
4
|
-
tag: "Shadow",
|
|
4
|
+
tag: "Shadow View",
|
|
5
5
|
description: "A cross-platform, universal shadow.",
|
|
6
6
|
category: COMPONENT_TYPES.view,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
@@ -35,12 +35,12 @@ export const SEED_DATA = {
|
|
|
35
35
|
}),
|
|
36
36
|
offsetX: createStaticNumberProp({
|
|
37
37
|
label: "Offset X",
|
|
38
|
-
description: "
|
|
38
|
+
description: "Moved the shadow in the x direction",
|
|
39
39
|
defeaultValue: 0,
|
|
40
40
|
}),
|
|
41
41
|
offsetY: createStaticNumberProp({
|
|
42
42
|
label: "Offset Y",
|
|
43
|
-
description: "
|
|
43
|
+
description: "Moved the shadow in the y direction",
|
|
44
44
|
defeaultValue: 0,
|
|
45
45
|
}),
|
|
46
46
|
showShadowSideStart: createStaticBoolProp({
|
package/src/mappings/Shadow.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
export const SEED_DATA = {
|
|
11
11
|
name: "Shadow",
|
|
12
|
-
tag: "Shadow",
|
|
12
|
+
tag: "Shadow View",
|
|
13
13
|
description: "A cross-platform, universal shadow.",
|
|
14
14
|
category: COMPONENT_TYPES.view,
|
|
15
15
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
@@ -43,12 +43,12 @@ export const SEED_DATA = {
|
|
|
43
43
|
}),
|
|
44
44
|
offsetX: createStaticNumberProp({
|
|
45
45
|
label: "Offset X",
|
|
46
|
-
description: "
|
|
46
|
+
description: "Moved the shadow in the x direction",
|
|
47
47
|
defeaultValue: 0,
|
|
48
48
|
}),
|
|
49
49
|
offsetY: createStaticNumberProp({
|
|
50
50
|
label: "Offset Y",
|
|
51
|
-
description: "
|
|
51
|
+
description: "Moved the shadow in the y direction",
|
|
52
52
|
defeaultValue: 0,
|
|
53
53
|
}),
|
|
54
54
|
showShadowSideStart: createStaticBoolProp({
|