@sellout/ui 0.0.97 → 0.0.99
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.
|
@@ -4,7 +4,23 @@ import React from 'react';
|
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import Icon, { Icons } from './Icon.js';
|
|
6
6
|
|
|
7
|
-
var UserImageDiv = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: ", ";\n width: ", ";\n min-height: ", ";\n min-width: ", ";\n border-radius: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ", ";\n background-image: ", ";\n background-position: center;\n background-size: cover;\n"], ["\n background-color: ",
|
|
7
|
+
var UserImageDiv = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: ", ";\n width: ", ";\n min-height: ", ";\n min-width: ", ";\n border-radius: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ", ";\n background-image: ", ";\n background-position: center;\n background-size: cover;\n"], ["\n background-color: ",
|
|
8
|
+
";\n height: ", ";\n width: ", ";\n min-height: ", ";\n min-width: ", ";\n border-radius: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ", ";\n background-image: ", ";\n background-position: center;\n background-size: cover;\n"])), function (props) {
|
|
9
|
+
if (props.src) {
|
|
10
|
+
if (props.invert) {
|
|
11
|
+
return Colors.Grey6;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return Colors.Grey6;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
else if (props.invert) {
|
|
18
|
+
return Colors.White;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return Colors.Grey1;
|
|
22
|
+
}
|
|
23
|
+
}, function (props) { return props.height; }, function (props) { return props.height; }, function (props) { return props.height; }, function (props) { return props.height; }, function (props) { return (props.circle ? '50%' : '0'); }, function (props) { return (props.invert ? Colors.Grey1 : Colors.White); }, function (props) { return props.size; }, function (props) { return props.margin || '0px 10px 0px 0px'; }, function (props) { return "url(" + props.src + ")"; });
|
|
8
24
|
var UserImage = function (_a) {
|
|
9
25
|
var imageUrl = _a.imageUrl, _b = _a.height, height = _b === void 0 ? '45px' : _b, _c = _a.size, size = _c === void 0 ? '1.8rem' : _c, firstName = _a.firstName, lastName = _a.lastName, margin = _a.margin, invert = _a.invert, _d = _a.circle, circle = _d === void 0 ? true : _d;
|
|
10
26
|
if (!imageUrl) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.99",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"files": [
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@hapi/joi": "^17.1.1",
|
|
57
57
|
"@react-pdf/primitives": "^2.0.0-beta.11",
|
|
58
58
|
"@react-pdf/renderer": "^2.0.0-beta.14",
|
|
59
|
-
"@sellout/models": "^0.0.
|
|
60
|
-
"@sellout/utils": "^0.0.
|
|
59
|
+
"@sellout/models": "^0.0.99",
|
|
60
|
+
"@sellout/utils": "^0.0.99",
|
|
61
61
|
"@types/escape-html": "^1.0.0",
|
|
62
62
|
"@types/hapi__joi": "^16.0.12",
|
|
63
63
|
"@types/react-pdf": "^4.0.6",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"rollup-plugin-url": "^3.0.1",
|
|
71
71
|
"shortid": "^2.2.15"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "7162c9d082ea3ee7169a885d4158fb45040cf93e",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^16.13.0",
|
|
76
76
|
"react-dom": "^16.13.0",
|