@sellout/ui 0.0.129 → 0.0.131
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/build/Colors.d.ts
CHANGED
package/build/Colors.js
CHANGED
|
@@ -21,9 +21,10 @@ var Text = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObje
|
|
|
21
21
|
return "1.2rem";
|
|
22
22
|
return "1.4rem";
|
|
23
23
|
}, function (props) { return props.color; });
|
|
24
|
-
var
|
|
24
|
+
var TextWithoutLink = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: 2px;\n"], ["\n padding-right: 2px;\n"])));
|
|
25
|
+
var InnerContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n}"], ["\n display: flex;\n align-items: center;\n}"])));
|
|
25
26
|
var TextButton = function (_a) {
|
|
26
|
-
var children = _a.children, _b = _a.size, size = _b === void 0 ? TextButtonSizes.Regular : _b, onClick = _a.onClick, margin = _a.margin, icon = _a.icon, iconRotation = _a.iconRotation, _c = _a.color, color = _c === void 0 ? Colors.Orange : _c;
|
|
27
|
+
var children = _a.children, _b = _a.size, size = _b === void 0 ? TextButtonSizes.Regular : _b, onClick = _a.onClick, margin = _a.margin, icon = _a.icon, iconRotation = _a.iconRotation, _c = _a.color, color = _c === void 0 ? Colors.Orange : _c, textWithoutLink = _a.textWithoutLink;
|
|
27
28
|
var iconSize = (function () {
|
|
28
29
|
if (size === TextButtonSizes.Large) {
|
|
29
30
|
return 14;
|
|
@@ -39,9 +40,10 @@ var TextButton = function (_a) {
|
|
|
39
40
|
return (React.createElement(Container, { margin: margin },
|
|
40
41
|
React.createElement(InnerContainer, { onClick: onClick ? onClick : function () { } },
|
|
41
42
|
icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: color, margin: "0 7px 0 0", rotation: iconRotation })),
|
|
43
|
+
React.createElement(TextWithoutLink, null, textWithoutLink),
|
|
42
44
|
React.createElement(Text, { size: size, color: color }, children))));
|
|
43
45
|
};
|
|
44
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
46
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
45
47
|
|
|
46
48
|
export default TextButton;
|
|
47
49
|
export { TextButtonSizes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.131",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"files": [
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"shortid": "^2.2.16",
|
|
71
71
|
"use-places-autocomplete": "^1.9.4"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "8abc3c2a89fa3c0e92d150d447fcdcf173607415",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^16.13.0",
|
|
76
76
|
"react-dom": "^16.13.0",
|