@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
@@ -18,5 +18,6 @@ export declare enum Colors {
18
18
  Grey4 = "#BDBDBD",
19
19
  Grey5 = "#E0E0E0",
20
20
  Grey6 = "#F2F2F2",
21
- Grey7 = "#F8F8F8"
21
+ Grey7 = "#F8F8F8",
22
+ Purple = "#040436"
22
23
  }
package/build/Colors.js CHANGED
@@ -21,6 +21,7 @@ var Colors;
21
21
  Colors["Grey5"] = "#E0E0E0";
22
22
  Colors["Grey6"] = "#F2F2F2";
23
23
  Colors["Grey7"] = "#F8F8F8";
24
+ Colors["Purple"] = "#040436";
24
25
  })(Colors || (Colors = {}));
25
26
 
26
27
  export { Colors };
@@ -13,6 +13,7 @@ declare type TextButtonProps = {
13
13
  icon?: any;
14
14
  iconRotation?: number;
15
15
  color?: Colors;
16
+ textWithoutLink?: string | React.ReactNode;
16
17
  };
17
18
  declare const TextButton: React.FC<TextButtonProps>;
18
19
  export default TextButton;
@@ -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 InnerContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n}"], ["\n display: flex;\n align-items: center;\n}"])));
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.129",
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": "dcd12af2db6aaf0ad2d7b8ea209d193fe5b8c1d4",
73
+ "gitHead": "8abc3c2a89fa3c0e92d150d447fcdcf173607415",
74
74
  "peerDependencies": {
75
75
  "react": "^16.13.0",
76
76
  "react-dom": "^16.13.0",