tek-wallet 0.0.410 → 0.0.411

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.
@@ -39,12 +39,24 @@ var Button = function (props) {
39
39
  };
40
40
  Button.displayName = "Button";
41
41
  Button.Primary = function (props) {
42
- var sx = props.sx, children = props.children, rest = __rest(props, ["sx", "children"]);
42
+ var _a;
43
+ var sx = props.sx, children = props.children, _b = props.status, status = _b === void 0 ? BUTTON_STATUS.ENABLED : _b, rest = __rest(props, ["sx", "children", "status"]);
43
44
  var theme = (0, material_1.useTheme)();
44
- return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "primary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full, "&.Mui-disabled": {
45
- backgroundColor: theme.palette.background.white16,
46
- color: theme.palette.text.white24,
47
- } }, sx), children: children })));
45
+ var disabledStyles = (_a = {},
46
+ _a[BUTTON_STATUS.LOADING] = {
47
+ backgroundColor: theme.palette.background.secondary16,
48
+ color: theme.palette.background.secondary,
49
+ },
50
+ _a[BUTTON_STATUS.ERROR] = {
51
+ backgroundColor: theme.palette.background.error16,
52
+ color: theme.palette.background.error,
53
+ },
54
+ _a[BUTTON_STATUS.DISABLED] = {
55
+ backgroundColor: theme.palette.background.white16,
56
+ color: theme.palette.text.white24,
57
+ },
58
+ _a);
59
+ return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "primary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full, "&.Mui-disabled": __assign({}, disabledStyles[status]) }, sx), children: children })));
48
60
  };
49
61
  Button.Primary.displayName = "Button.Primary";
50
62
  Button.Secondary = function (props) {
@@ -40,6 +40,8 @@ var background = {
40
40
  black16: "rgba(0, 0, 0, 0.16)",
41
41
  secondary: "#01FFFF",
42
42
  secondary16: "rgba(1, 255, 255, 0.16)",
43
+ error: "#FE6565",
44
+ error16: "rgba(254, 101, 101, 0.16)",
43
45
  };
44
46
  var border = {
45
47
  white: "#ffffff",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.410",
3
+ "version": "0.0.411",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",