krl-alfred 1.73.2 → 1.73.3

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.
@@ -25,8 +25,8 @@ var Children = function (props) {
25
25
  };
26
26
  var Button = function (props) {
27
27
  var _a, _b, _c, _d, _e, _f;
28
- var isLoading = props.isLoading, onClick = props.onClick, disabled = props.disabled, size = props.size, variant = props.variant, width = props.width, icon = props.icon, children = props.children;
29
- return ((0, jsx_runtime_1.jsx)(Button_styled_1.ButtonStyled, { className: (0, classnames_1.default)((_a = {}, _a["loading"] = isLoading, _a), (_b = {}, _b["caption-bold-12-15"] = size === 'xsmall' && variant !== 'ghost', _b), (_c = {}, _c["body-bold-13-16"] = size === 'xsmall' && variant === 'ghost', _c), (_d = {}, _d["body-bold-13-16"] = size === 'small', _d), (_e = {}, _e["body-bold-14-17"] = size === 'big', _e), (_f = {}, _f["body-bold-14-17"] = size === 'medium', _f)), onClick: onClick, disabled: disabled || isLoading, size: size, variant: variant, width: width, icon: icon, children: isLoading ? (0, jsx_runtime_1.jsx)(Loader_1.default, { width: size === "big" ? "24px" : "16px", height: size === "big" ? "24px" : "16px", variant: variant === 'primary' ? 'secondary' : 'primary' }) :
28
+ var type = props.type, isLoading = props.isLoading, onClick = props.onClick, disabled = props.disabled, size = props.size, variant = props.variant, width = props.width, icon = props.icon, children = props.children;
29
+ return ((0, jsx_runtime_1.jsx)(Button_styled_1.ButtonStyled, { className: (0, classnames_1.default)((_a = {}, _a["loading"] = isLoading, _a), (_b = {}, _b["caption-bold-12-15"] = size === 'xsmall' && variant !== 'ghost', _b), (_c = {}, _c["body-bold-13-16"] = size === 'xsmall' && variant === 'ghost', _c), (_d = {}, _d["body-bold-13-16"] = size === 'small', _d), (_e = {}, _e["body-bold-14-17"] = size === 'big', _e), (_f = {}, _f["body-bold-14-17"] = size === 'medium', _f)), onClick: onClick, disabled: disabled || isLoading, size: size, variant: variant, width: width, icon: icon, type: type, children: isLoading ? (0, jsx_runtime_1.jsx)(Loader_1.default, { width: size === "big" ? "24px" : "16px", height: size === "big" ? "24px" : "16px", variant: variant === 'primary' ? 'secondary' : 'primary' }) :
30
30
  (0, jsx_runtime_1.jsx)(Children, { icon: icon, children: children }) }));
31
31
  };
32
32
  exports.default = Button;
@@ -5,4 +5,4 @@ var Icon_1 = require("../Icon");
5
5
  exports.variants = ['primary', 'secondary', 'inverted', 'ghost'];
6
6
  exports.sizes = ['big', 'medium', 'small', 'xsmall'];
7
7
  exports.iconNames = Object.keys(Icon_1.iconList);
8
- var ButtonDefault = { size: 'medium', variant: 'primary', isLoading: false, width: "auto" };
8
+ var ButtonDefault = { size: 'medium', variant: 'primary', isLoading: false, width: "auto", type: "button" };
@@ -36,7 +36,8 @@ exports.Default = {
36
36
  children: "Button",
37
37
  disabled: false,
38
38
  isLoading: false,
39
- width: "150px"
39
+ width: "150px",
40
+ type: "button"
40
41
  },
41
42
  };
42
43
  exports.Icon = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "krl-alfred",
3
- "version": "1.73.2",
3
+ "version": "1.73.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],