@sellout/ui 0.0.87 → 0.0.89

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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Colors } from '../Colors';
2
3
  export declare enum TextButtonSizes {
3
4
  Large = "Large",
4
5
  Regular = "Regular",
@@ -11,6 +12,7 @@ declare type TextButtonProps = {
11
12
  margin?: string;
12
13
  icon?: any;
13
14
  iconRotation?: number;
15
+ color?: Colors;
14
16
  };
15
17
  declare const TextButton: React.FC<TextButtonProps>;
16
18
  export default TextButton;
@@ -20,9 +20,9 @@ var Text = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObje
20
20
  if (props.size === TextButtonSizes.Small)
21
21
  return "1.2rem";
22
22
  return "1.4rem";
23
- }, Colors.Orange);
23
+ }, function (props) { return props.color; });
24
24
  var TextButton = function (_a) {
25
- 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;
25
+ 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;
26
26
  var iconSize = (function () {
27
27
  if (size === TextButtonSizes.Large) {
28
28
  return 14;
@@ -36,8 +36,8 @@ var TextButton = function (_a) {
36
36
  return 12;
37
37
  })();
38
38
  return (React.createElement(Container, { onClick: onClick ? onClick : function () { }, margin: margin },
39
- icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: Colors.Orange, margin: "0 7px 0 0", rotation: iconRotation })),
40
- React.createElement(Text, { size: size }, children)));
39
+ icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: color, margin: "0 7px 0 0", rotation: iconRotation })),
40
+ React.createElement(Text, { size: size, color: color }, children)));
41
41
  };
42
42
  var templateObject_1, templateObject_2;
43
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/ui",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
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.87",
60
- "@sellout/utils": "^0.0.87",
59
+ "@sellout/models": "^0.0.89",
60
+ "@sellout/utils": "^0.0.89",
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": "1f0dac78a3939cf9c088c3e9cb31e3fade195734",
73
+ "gitHead": "fdef7f54d0778a3b5ed2e255647054fbd3564e5d",
74
74
  "peerDependencies": {
75
75
  "react": "^16.13.0",
76
76
  "react-dom": "^16.13.0",