@draftbit/core 46.8.1-eb4f7f.2 → 46.8.1-fb7984.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 +44 -0
- package/lib/commonjs/index.js +7 -7
- package/lib/commonjs/mappings/Shadow.js +94 -0
- package/lib/module/components/Shadow.js +36 -0
- package/lib/module/index.js +1 -1
- package/lib/module/mappings/Shadow.js +87 -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/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/{BottomSheet.d.ts → Shadow.d.ts} +77 -24
- package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
- package/package.json +4 -3
- package/src/components/Shadow.js +16 -0
- package/src/components/Shadow.tsx +60 -0
- package/src/index.js +1 -1
- package/src/index.tsx +2 -2
- package/src/mappings/Shadow.js +87 -0
- package/src/mappings/Shadow.ts +95 -0
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +0 -89
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +0 -464
- package/lib/commonjs/components/BottomSheet/index.js +0 -13
- package/lib/commonjs/mappings/BottomSheet.js +0 -75
- package/lib/module/components/BottomSheet/BottomSheet.js +0 -81
- package/lib/module/components/BottomSheet/BottomSheetComponent.js +0 -470
- package/lib/module/components/BottomSheet/index.js +0 -1
- package/lib/module/mappings/BottomSheet.js +0 -68
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +0 -20
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +0 -170
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts.map +0 -1
- package/lib/typescript/src/components/BottomSheet/index.d.ts +0 -2
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +0 -1
- package/src/components/BottomSheet/BottomSheet.js +0 -57
- package/src/components/BottomSheet/BottomSheet.tsx +0 -121
- package/src/components/BottomSheet/BottomSheetComponent.js +0 -437
- package/src/components/BottomSheet/BottomSheetComponent.tsx +0 -895
- package/src/components/BottomSheet/index.js +0 -1
- package/src/components/BottomSheet/index.ts +0 -1
- package/src/mappings/BottomSheet.js +0 -64
- package/src/mappings/BottomSheet.ts +0 -78
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNativeShadow = require("react-native-shadow-2");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
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); }
|
|
11
|
+
const Shadow = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
offsetX = 0,
|
|
14
|
+
offsetY = 0,
|
|
15
|
+
showShadowSideStart = true,
|
|
16
|
+
showShadowSideEnd = true,
|
|
17
|
+
showShadowSideTop = true,
|
|
18
|
+
showShadowSideBottom = true,
|
|
19
|
+
showShadowCornerTopStart = true,
|
|
20
|
+
showShadowCornerTopEnd = true,
|
|
21
|
+
showShadowCornerBottomStart = true,
|
|
22
|
+
showShadowCornerBottomEnd = true,
|
|
23
|
+
style,
|
|
24
|
+
...rest
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeShadow.Shadow, _extends({
|
|
27
|
+
offset: [offsetX, offsetY],
|
|
28
|
+
sides: {
|
|
29
|
+
start: showShadowSideStart,
|
|
30
|
+
end: showShadowSideEnd,
|
|
31
|
+
top: showShadowSideTop,
|
|
32
|
+
bottom: showShadowSideBottom
|
|
33
|
+
},
|
|
34
|
+
corners: {
|
|
35
|
+
topStart: showShadowCornerTopStart,
|
|
36
|
+
topEnd: showShadowCornerTopEnd,
|
|
37
|
+
bottomStart: showShadowCornerBottomStart,
|
|
38
|
+
bottomEnd: showShadowCornerBottomEnd
|
|
39
|
+
},
|
|
40
|
+
containerStyle: style
|
|
41
|
+
}, rest));
|
|
42
|
+
};
|
|
43
|
+
var _default = Shadow;
|
|
44
|
+
exports.default = _default;
|
package/lib/commonjs/index.js
CHANGED
|
@@ -51,12 +51,6 @@ Object.defineProperty(exports, "Banner", {
|
|
|
51
51
|
return _Banner.default;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
Object.defineProperty(exports, "BottomSheet", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _BottomSheet.BottomSheet;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
54
|
Object.defineProperty(exports, "Button", {
|
|
61
55
|
enumerable: true,
|
|
62
56
|
get: function () {
|
|
@@ -279,6 +273,12 @@ Object.defineProperty(exports, "ScreenContainer", {
|
|
|
279
273
|
return _ScreenContainer.default;
|
|
280
274
|
}
|
|
281
275
|
});
|
|
276
|
+
Object.defineProperty(exports, "Shadow", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return _Shadow.default;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
282
|
Object.defineProperty(exports, "Slider", {
|
|
283
283
|
enumerable: true,
|
|
284
284
|
get: function () {
|
|
@@ -419,8 +419,8 @@ var _ActionSheet = require("./components/ActionSheet");
|
|
|
419
419
|
var _Swiper = require("./components/Swiper");
|
|
420
420
|
var _Layout = require("./components/Layout");
|
|
421
421
|
var _index = require("./components/RadioButton/index");
|
|
422
|
+
var _Shadow = _interopRequireDefault(require("./components/Shadow"));
|
|
422
423
|
var _DeckSwiper = require("./components/DeckSwiper");
|
|
423
|
-
var _BottomSheet = require("./components/BottomSheet");
|
|
424
424
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
425
425
|
var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
|
|
426
426
|
var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
|
|
@@ -0,0 +1,94 @@
|
|
|
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: "Shadow",
|
|
10
|
+
tag: "Shadow",
|
|
11
|
+
description: "A cross-platform, universal shadow.",
|
|
12
|
+
category: _types.COMPONENT_TYPES.view,
|
|
13
|
+
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
14
|
+
props: {
|
|
15
|
+
disabled: (0, _types.createDisabledProp)({
|
|
16
|
+
description: "Disables the shadow."
|
|
17
|
+
}),
|
|
18
|
+
startColor: (0, _types.createColorProp)({
|
|
19
|
+
label: "Start Color",
|
|
20
|
+
description: "The initial gradient color of the shadow.",
|
|
21
|
+
defaultValue: null
|
|
22
|
+
}),
|
|
23
|
+
endColor: (0, _types.createColorProp)({
|
|
24
|
+
label: "End Color",
|
|
25
|
+
description: "The final gradient color of the shadow.",
|
|
26
|
+
defaultValue: null
|
|
27
|
+
}),
|
|
28
|
+
distance: (0, _types.createStaticNumberProp)({
|
|
29
|
+
label: "Distance",
|
|
30
|
+
description: "The distance of the shadow."
|
|
31
|
+
}),
|
|
32
|
+
paintInside: (0, _types.createStaticBoolProp)({
|
|
33
|
+
label: "Paint Inside",
|
|
34
|
+
description: "Apply the shadow below/inside the content.",
|
|
35
|
+
defaultValue: null
|
|
36
|
+
}),
|
|
37
|
+
stretch: (0, _types.createStaticBoolProp)({
|
|
38
|
+
label: "Stretch",
|
|
39
|
+
description: "Force children to occupy all available horizontal space.",
|
|
40
|
+
defaultValue: null
|
|
41
|
+
}),
|
|
42
|
+
offsetX: (0, _types.createStaticNumberProp)({
|
|
43
|
+
label: "Offset X",
|
|
44
|
+
description: "Moves the shadow in the x direction",
|
|
45
|
+
defeaultValue: 0
|
|
46
|
+
}),
|
|
47
|
+
offsetY: (0, _types.createStaticNumberProp)({
|
|
48
|
+
label: "Offset Y",
|
|
49
|
+
description: "Moves the shadow in the y direction",
|
|
50
|
+
defeaultValue: 0
|
|
51
|
+
}),
|
|
52
|
+
showShadowSideStart: (0, _types.createStaticBoolProp)({
|
|
53
|
+
label: "Show Shadow Start",
|
|
54
|
+
description: "Whether to show shadow on the start side or not",
|
|
55
|
+
defaultValue: true
|
|
56
|
+
}),
|
|
57
|
+
showShadowSideEnd: (0, _types.createStaticBoolProp)({
|
|
58
|
+
label: "Show Shadow End",
|
|
59
|
+
description: "Whether to show shadow on the end side or not",
|
|
60
|
+
defaultValue: true
|
|
61
|
+
}),
|
|
62
|
+
showShadowSideTop: (0, _types.createStaticBoolProp)({
|
|
63
|
+
label: "Show Shadow Top",
|
|
64
|
+
description: "Whether to show shadow on the top side or not",
|
|
65
|
+
defaultValue: true
|
|
66
|
+
}),
|
|
67
|
+
showShadowSideBottom: (0, _types.createStaticBoolProp)({
|
|
68
|
+
label: "Show Shadow Bottom",
|
|
69
|
+
description: "Whether to show shadow on the bottom side or not",
|
|
70
|
+
defaultValue: true
|
|
71
|
+
}),
|
|
72
|
+
showShadowCornerTopStart: (0, _types.createStaticBoolProp)({
|
|
73
|
+
label: "Show Shadow Top Start Corner",
|
|
74
|
+
description: "Whether to show shadow on the top start corner or not",
|
|
75
|
+
defaultValue: true
|
|
76
|
+
}),
|
|
77
|
+
showShadowCornerTopEnd: (0, _types.createStaticBoolProp)({
|
|
78
|
+
label: "Show Shadow Top End Corner",
|
|
79
|
+
description: "Whether to show shadow on the top end corner or not",
|
|
80
|
+
defaultValue: true
|
|
81
|
+
}),
|
|
82
|
+
showShadowCornerBottomStart: (0, _types.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
|
+
}),
|
|
87
|
+
showShadowCornerBottomEnd: (0, _types.createStaticBoolProp)({
|
|
88
|
+
label: "Show Shadow Bottom End Corner",
|
|
89
|
+
description: "Whether to show shadow on the bottom end corner or not",
|
|
90
|
+
defaultValue: true
|
|
91
|
+
})
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
exports.SEED_DATA = SEED_DATA;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
import React from "react";
|
|
3
|
+
import { Shadow as ShadowComponent } from "react-native-shadow-2";
|
|
4
|
+
const Shadow = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
offsetX = 0,
|
|
7
|
+
offsetY = 0,
|
|
8
|
+
showShadowSideStart = true,
|
|
9
|
+
showShadowSideEnd = true,
|
|
10
|
+
showShadowSideTop = true,
|
|
11
|
+
showShadowSideBottom = true,
|
|
12
|
+
showShadowCornerTopStart = true,
|
|
13
|
+
showShadowCornerTopEnd = true,
|
|
14
|
+
showShadowCornerBottomStart = true,
|
|
15
|
+
showShadowCornerBottomEnd = true,
|
|
16
|
+
style,
|
|
17
|
+
...rest
|
|
18
|
+
} = _ref;
|
|
19
|
+
return /*#__PURE__*/React.createElement(ShadowComponent, _extends({
|
|
20
|
+
offset: [offsetX, offsetY],
|
|
21
|
+
sides: {
|
|
22
|
+
start: showShadowSideStart,
|
|
23
|
+
end: showShadowSideEnd,
|
|
24
|
+
top: showShadowSideTop,
|
|
25
|
+
bottom: showShadowSideBottom
|
|
26
|
+
},
|
|
27
|
+
corners: {
|
|
28
|
+
topStart: showShadowCornerTopStart,
|
|
29
|
+
topEnd: showShadowCornerTopEnd,
|
|
30
|
+
bottomStart: showShadowCornerBottomStart,
|
|
31
|
+
bottomEnd: showShadowCornerBottomEnd
|
|
32
|
+
},
|
|
33
|
+
containerStyle: style
|
|
34
|
+
}, rest));
|
|
35
|
+
};
|
|
36
|
+
export default Shadow;
|
package/lib/module/index.js
CHANGED
|
@@ -31,8 +31,8 @@ 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
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
36
36
|
|
|
37
37
|
/* Deprecated: Fix or Delete! */
|
|
38
38
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, createColorProp, createStaticNumberProp, createStaticBoolProp, createDisabledProp } 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: null
|
|
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
|
+
}),
|
|
51
|
+
showShadowSideEnd: createStaticBoolProp({
|
|
52
|
+
label: "Show Shadow End",
|
|
53
|
+
description: "Whether to show shadow on the end side or not",
|
|
54
|
+
defaultValue: true
|
|
55
|
+
}),
|
|
56
|
+
showShadowSideTop: createStaticBoolProp({
|
|
57
|
+
label: "Show Shadow Top",
|
|
58
|
+
description: "Whether to show shadow on the top side or not",
|
|
59
|
+
defaultValue: true
|
|
60
|
+
}),
|
|
61
|
+
showShadowSideBottom: createStaticBoolProp({
|
|
62
|
+
label: "Show Shadow Bottom",
|
|
63
|
+
description: "Whether to show shadow on the bottom side or not",
|
|
64
|
+
defaultValue: true
|
|
65
|
+
}),
|
|
66
|
+
showShadowCornerTopStart: createStaticBoolProp({
|
|
67
|
+
label: "Show Shadow Top Start Corner",
|
|
68
|
+
description: "Whether to show shadow on the top start corner or not",
|
|
69
|
+
defaultValue: true
|
|
70
|
+
}),
|
|
71
|
+
showShadowCornerTopEnd: createStaticBoolProp({
|
|
72
|
+
label: "Show Shadow Top End Corner",
|
|
73
|
+
description: "Whether to show shadow on the top end corner or not",
|
|
74
|
+
defaultValue: true
|
|
75
|
+
}),
|
|
76
|
+
showShadowCornerBottomStart: createStaticBoolProp({
|
|
77
|
+
label: "Show Shadow Bottom Start Corner",
|
|
78
|
+
description: "Whether to show shadow on the bottom start corner or not",
|
|
79
|
+
defaultValue: true
|
|
80
|
+
}),
|
|
81
|
+
showShadowCornerBottomEnd: createStaticBoolProp({
|
|
82
|
+
label: "Show Shadow Bottom End Corner",
|
|
83
|
+
description: "Whether to show shadow on the bottom end corner or not",
|
|
84
|
+
defaultValue: true
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
};
|
|
@@ -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,CAiC1D,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -31,8 +31,8 @@ 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
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
36
36
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
37
37
|
export { default as Picker } from "./components/Picker/Picker";
|
|
38
38
|
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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OAAO,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,GAAG,EACH,KAAK,EACL,MAAM,GACP,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGrE,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"}
|
|
@@ -4,35 +4,38 @@ export declare const SEED_DATA: {
|
|
|
4
4
|
description: string;
|
|
5
5
|
category: string;
|
|
6
6
|
stylesPanelSections: string[];
|
|
7
|
-
layout: {
|
|
8
|
-
paddingHorizontal: number;
|
|
9
|
-
paddingVertical: number;
|
|
10
|
-
flex: number;
|
|
11
|
-
};
|
|
12
|
-
triggers: string[];
|
|
13
7
|
props: {
|
|
14
|
-
|
|
8
|
+
disabled: {
|
|
15
9
|
label: string;
|
|
16
10
|
description: string;
|
|
11
|
+
group: string;
|
|
17
12
|
editable: boolean;
|
|
18
13
|
required: boolean;
|
|
19
14
|
formType: string;
|
|
20
15
|
propType: string;
|
|
21
16
|
defaultValue: null;
|
|
22
|
-
group: string;
|
|
23
17
|
};
|
|
24
|
-
|
|
18
|
+
startColor: {
|
|
25
19
|
group: string;
|
|
26
20
|
label: string;
|
|
27
21
|
description: string;
|
|
28
22
|
editable: boolean;
|
|
29
23
|
required: boolean;
|
|
24
|
+
defaultValue: null;
|
|
30
25
|
formType: string;
|
|
31
26
|
propType: string;
|
|
32
|
-
|
|
27
|
+
};
|
|
28
|
+
endColor: {
|
|
29
|
+
group: string;
|
|
30
|
+
label: string;
|
|
31
|
+
description: string;
|
|
32
|
+
editable: boolean;
|
|
33
|
+
required: boolean;
|
|
33
34
|
defaultValue: null;
|
|
35
|
+
formType: string;
|
|
36
|
+
propType: string;
|
|
34
37
|
};
|
|
35
|
-
|
|
38
|
+
distance: {
|
|
36
39
|
label: string;
|
|
37
40
|
description: string;
|
|
38
41
|
formType: string;
|
|
@@ -43,7 +46,7 @@ export declare const SEED_DATA: {
|
|
|
43
46
|
required: boolean;
|
|
44
47
|
step: number;
|
|
45
48
|
};
|
|
46
|
-
|
|
49
|
+
paintInside: {
|
|
47
50
|
label: string;
|
|
48
51
|
description: string;
|
|
49
52
|
formType: string;
|
|
@@ -53,17 +56,17 @@ export declare const SEED_DATA: {
|
|
|
53
56
|
required: boolean;
|
|
54
57
|
group: string;
|
|
55
58
|
};
|
|
56
|
-
|
|
57
|
-
group: string;
|
|
59
|
+
stretch: {
|
|
58
60
|
label: string;
|
|
59
61
|
description: string;
|
|
60
|
-
editable: boolean;
|
|
61
|
-
required: boolean;
|
|
62
|
-
defaultValue: null;
|
|
63
62
|
formType: string;
|
|
64
63
|
propType: string;
|
|
64
|
+
defaultValue: boolean;
|
|
65
|
+
editable: boolean;
|
|
66
|
+
required: boolean;
|
|
67
|
+
group: string;
|
|
65
68
|
};
|
|
66
|
-
|
|
69
|
+
offsetX: {
|
|
67
70
|
label: string;
|
|
68
71
|
description: string;
|
|
69
72
|
formType: string;
|
|
@@ -74,7 +77,7 @@ export declare const SEED_DATA: {
|
|
|
74
77
|
required: boolean;
|
|
75
78
|
step: number;
|
|
76
79
|
};
|
|
77
|
-
|
|
80
|
+
offsetY: {
|
|
78
81
|
label: string;
|
|
79
82
|
description: string;
|
|
80
83
|
formType: string;
|
|
@@ -85,17 +88,67 @@ export declare const SEED_DATA: {
|
|
|
85
88
|
required: boolean;
|
|
86
89
|
step: number;
|
|
87
90
|
};
|
|
88
|
-
|
|
91
|
+
showShadowSideStart: {
|
|
92
|
+
label: string;
|
|
93
|
+
description: string;
|
|
94
|
+
formType: string;
|
|
95
|
+
propType: string;
|
|
96
|
+
defaultValue: boolean;
|
|
97
|
+
editable: boolean;
|
|
98
|
+
required: boolean;
|
|
89
99
|
group: string;
|
|
100
|
+
};
|
|
101
|
+
showShadowSideEnd: {
|
|
90
102
|
label: string;
|
|
91
103
|
description: string;
|
|
104
|
+
formType: string;
|
|
105
|
+
propType: string;
|
|
106
|
+
defaultValue: boolean;
|
|
92
107
|
editable: boolean;
|
|
93
108
|
required: boolean;
|
|
94
|
-
|
|
109
|
+
group: string;
|
|
110
|
+
};
|
|
111
|
+
showShadowSideTop: {
|
|
112
|
+
label: string;
|
|
113
|
+
description: string;
|
|
95
114
|
formType: string;
|
|
96
115
|
propType: string;
|
|
116
|
+
defaultValue: boolean;
|
|
117
|
+
editable: boolean;
|
|
118
|
+
required: boolean;
|
|
119
|
+
group: string;
|
|
120
|
+
};
|
|
121
|
+
showShadowSideBottom: {
|
|
122
|
+
label: string;
|
|
123
|
+
description: string;
|
|
124
|
+
formType: string;
|
|
125
|
+
propType: string;
|
|
126
|
+
defaultValue: boolean;
|
|
127
|
+
editable: boolean;
|
|
128
|
+
required: boolean;
|
|
129
|
+
group: string;
|
|
130
|
+
};
|
|
131
|
+
showShadowCornerTopStart: {
|
|
132
|
+
label: string;
|
|
133
|
+
description: string;
|
|
134
|
+
formType: string;
|
|
135
|
+
propType: string;
|
|
136
|
+
defaultValue: boolean;
|
|
137
|
+
editable: boolean;
|
|
138
|
+
required: boolean;
|
|
139
|
+
group: string;
|
|
140
|
+
};
|
|
141
|
+
showShadowCornerTopEnd: {
|
|
142
|
+
label: string;
|
|
143
|
+
description: string;
|
|
144
|
+
formType: string;
|
|
145
|
+
propType: string;
|
|
146
|
+
defaultValue: boolean;
|
|
147
|
+
editable: boolean;
|
|
148
|
+
required: boolean;
|
|
149
|
+
group: string;
|
|
97
150
|
};
|
|
98
|
-
|
|
151
|
+
showShadowCornerBottomStart: {
|
|
99
152
|
label: string;
|
|
100
153
|
description: string;
|
|
101
154
|
formType: string;
|
|
@@ -105,7 +158,7 @@ export declare const SEED_DATA: {
|
|
|
105
158
|
required: boolean;
|
|
106
159
|
group: string;
|
|
107
160
|
};
|
|
108
|
-
|
|
161
|
+
showShadowCornerBottomEnd: {
|
|
109
162
|
label: string;
|
|
110
163
|
description: string;
|
|
111
164
|
formType: string;
|
|
@@ -117,4 +170,4 @@ export declare const SEED_DATA: {
|
|
|
117
170
|
};
|
|
118
171
|
};
|
|
119
172
|
};
|
|
120
|
-
//# sourceMappingURL=
|
|
173
|
+
//# sourceMappingURL=Shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Shadow.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Shadow.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFrB,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-fb7984.2+fb7984b",
|
|
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-fb7984.2+fb7984b",
|
|
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",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"lodash.tonumber": "^4.0.3",
|
|
56
56
|
"react-native-deck-swiper": "^2.0.12",
|
|
57
57
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
58
|
+
"react-native-shadow-2": "^7.0.6",
|
|
58
59
|
"react-native-svg": "12.3.0",
|
|
59
60
|
"react-native-typography": "^1.4.1",
|
|
60
61
|
"react-native-web-swiper": "^2.2.3"
|
|
@@ -92,5 +93,5 @@
|
|
|
92
93
|
]
|
|
93
94
|
]
|
|
94
95
|
},
|
|
95
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "fb7984b6ca9f465da6dceb837da618478e02d92f"
|
|
96
97
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
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, style, ...rest }) => {
|
|
4
|
+
return (React.createElement(ShadowComponent, { offset: [offsetX, offsetY], sides: {
|
|
5
|
+
start: showShadowSideStart,
|
|
6
|
+
end: showShadowSideEnd,
|
|
7
|
+
top: showShadowSideTop,
|
|
8
|
+
bottom: showShadowSideBottom,
|
|
9
|
+
}, corners: {
|
|
10
|
+
topStart: showShadowCornerTopStart,
|
|
11
|
+
topEnd: showShadowCornerTopEnd,
|
|
12
|
+
bottomStart: showShadowCornerBottomStart,
|
|
13
|
+
bottomEnd: showShadowCornerBottomEnd,
|
|
14
|
+
}, containerStyle: style, ...rest }));
|
|
15
|
+
};
|
|
16
|
+
export default Shadow;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { Shadow as ShadowComponent } from "react-native-shadow-2";
|
|
4
|
+
|
|
5
|
+
interface ShadowProps {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
startColor?: string;
|
|
8
|
+
endColor?: string;
|
|
9
|
+
distance?: number;
|
|
10
|
+
paintInside?: boolean;
|
|
11
|
+
stretch?: boolean;
|
|
12
|
+
offsetX?: number;
|
|
13
|
+
offsetY?: number;
|
|
14
|
+
showShadowSideStart?: boolean;
|
|
15
|
+
showShadowSideEnd?: boolean;
|
|
16
|
+
showShadowSideTop?: boolean;
|
|
17
|
+
showShadowSideBottom?: boolean;
|
|
18
|
+
showShadowCornerTopStart?: boolean;
|
|
19
|
+
showShadowCornerTopEnd?: boolean;
|
|
20
|
+
showShadowCornerBottomStart?: boolean;
|
|
21
|
+
showShadowCornerBottomEnd?: boolean;
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const Shadow: React.FC<React.PropsWithChildren<ShadowProps>> = ({
|
|
26
|
+
offsetX = 0,
|
|
27
|
+
offsetY = 0,
|
|
28
|
+
showShadowSideStart = true,
|
|
29
|
+
showShadowSideEnd = true,
|
|
30
|
+
showShadowSideTop = true,
|
|
31
|
+
showShadowSideBottom = true,
|
|
32
|
+
showShadowCornerTopStart = true,
|
|
33
|
+
showShadowCornerTopEnd = true,
|
|
34
|
+
showShadowCornerBottomStart = true,
|
|
35
|
+
showShadowCornerBottomEnd = true,
|
|
36
|
+
style,
|
|
37
|
+
...rest
|
|
38
|
+
}) => {
|
|
39
|
+
return (
|
|
40
|
+
<ShadowComponent
|
|
41
|
+
offset={[offsetX, offsetY]}
|
|
42
|
+
sides={{
|
|
43
|
+
start: showShadowSideStart,
|
|
44
|
+
end: showShadowSideEnd,
|
|
45
|
+
top: showShadowSideTop,
|
|
46
|
+
bottom: showShadowSideBottom,
|
|
47
|
+
}}
|
|
48
|
+
corners={{
|
|
49
|
+
topStart: showShadowCornerTopStart,
|
|
50
|
+
topEnd: showShadowCornerTopEnd,
|
|
51
|
+
bottomStart: showShadowCornerBottomStart,
|
|
52
|
+
bottomEnd: showShadowCornerBottomEnd,
|
|
53
|
+
}}
|
|
54
|
+
containerStyle={style}
|
|
55
|
+
{...rest}
|
|
56
|
+
/>
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default Shadow;
|
package/src/index.js
CHANGED
|
@@ -31,8 +31,8 @@ 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
|
-
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";
|