@dropi/react-native-design-system 0.1.6 → 0.1.8
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/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -35,4 +35,15 @@ Object.keys(_atoms).forEach(function (key) {
|
|
|
35
35
|
return _atoms[key];
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
});
|
|
39
|
+
var _molecules = require("./molecules/");
|
|
40
|
+
Object.keys(_molecules).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _molecules[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _molecules[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
38
49
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
imageSource?: string | number;
|
|
2
3
|
title?: string;
|
|
3
4
|
message: string;
|
|
4
5
|
buttonLabel?: string;
|
|
5
6
|
onButtonPress?: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare const EmptyState: ({ title, message, buttonLabel, onButtonPress }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const EmptyState: ({ imageSource, title, message, buttonLabel, onButtonPress }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -10,6 +10,7 @@ var _constants = require("../../constants");
|
|
|
10
10
|
var _atoms = require("../../atoms");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
const EmptyState = ({
|
|
13
|
+
imageSource,
|
|
13
14
|
title,
|
|
14
15
|
message,
|
|
15
16
|
buttonLabel,
|
|
@@ -19,8 +20,10 @@ const EmptyState = ({
|
|
|
19
20
|
style: {
|
|
20
21
|
paddingVertical: _constants.spacing['size-4']
|
|
21
22
|
},
|
|
22
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_expoImage.Image, {
|
|
23
|
-
source:
|
|
23
|
+
children: [imageSource && /*#__PURE__*/(0, _jsxRuntime.jsx)(_expoImage.Image, {
|
|
24
|
+
source: imageSource
|
|
25
|
+
//TODO: change hardcoded sizes
|
|
26
|
+
,
|
|
24
27
|
style: {
|
|
25
28
|
width: 51,
|
|
26
29
|
height: 48,
|