glints-aries 4.0.274 → 4.0.275

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.
@@ -45,18 +45,22 @@ var CardComponent = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
45
45
  }
46
46
  }, headerSecondaryAction && /*#__PURE__*/React.createElement(DestructivePlainButton, {
47
47
  onClick: headerSecondaryAction.action,
48
- size: "slim"
48
+ size: "slim",
49
+ disabled: headerSecondaryAction.disabled
49
50
  }, headerSecondaryAction.label), headerPrimaryAction && /*#__PURE__*/React.createElement(PlainButton, {
50
51
  onClick: headerPrimaryAction.action,
51
- size: "slim"
52
+ size: "slim",
53
+ disabled: headerPrimaryAction.disabled
52
54
  }, headerPrimaryAction.label)))), /*#__PURE__*/React.createElement(StyledCardContentWrapper, {
53
55
  "data-actions": showActions
54
56
  }, children), showActions && /*#__PURE__*/React.createElement(StyledCardActionWrapper, {
55
57
  "data-align": actionsAlignment
56
58
  }, /*#__PURE__*/React.createElement(ButtonGroup, null, secondaryAction && /*#__PURE__*/React.createElement(Button, {
57
- onClick: secondaryAction.action
59
+ onClick: secondaryAction.action,
60
+ disabled: secondaryAction.disabled
58
61
  }, secondaryAction.label), primaryAction && /*#__PURE__*/React.createElement(PrimaryButton, {
59
- onClick: primaryAction.action
62
+ onClick: primaryAction.action,
63
+ disabled: primaryAction.disabled
60
64
  }, primaryAction.label))));
61
65
  });
62
66
  export var Card = Object.assign(CardComponent, {
@@ -5,4 +5,5 @@ export declare const Interactive: any;
5
5
  export declare const NoAction: any;
6
6
  export declare const PrimaryActionOnly: any;
7
7
  export declare const SecondaryActionOnly: any;
8
+ export declare const DisabledActions: any;
8
9
  export declare const CustomHeadingSubHeading: any;
@@ -1,4 +1,5 @@
1
1
  export declare type ComponentAction = {
2
2
  label: string;
3
3
  action: (...args: any[]) => void;
4
+ disabled?: boolean;
4
5
  };
@@ -50,18 +50,22 @@ var CardComponent = /*#__PURE__*/_react["default"].forwardRef(function Card(_ref
50
50
  }
51
51
  }, headerSecondaryAction && /*#__PURE__*/_react["default"].createElement(_DestructivePlainButtonStyle.DestructivePlainButton, {
52
52
  onClick: headerSecondaryAction.action,
53
- size: "slim"
53
+ size: "slim",
54
+ disabled: headerSecondaryAction.disabled
54
55
  }, headerSecondaryAction.label), headerPrimaryAction && /*#__PURE__*/_react["default"].createElement(_PlainButtonStyle.PlainButton, {
55
56
  onClick: headerPrimaryAction.action,
56
- size: "slim"
57
+ size: "slim",
58
+ disabled: headerPrimaryAction.disabled
57
59
  }, headerPrimaryAction.label)))), /*#__PURE__*/_react["default"].createElement(_CardStyle.StyledCardContentWrapper, {
58
60
  "data-actions": showActions
59
61
  }, children), showActions && /*#__PURE__*/_react["default"].createElement(_CardStyle.StyledCardActionWrapper, {
60
62
  "data-align": actionsAlignment
61
63
  }, /*#__PURE__*/_react["default"].createElement(_ButtonGroup.ButtonGroup, null, secondaryAction && /*#__PURE__*/_react["default"].createElement(_Button.Button, {
62
- onClick: secondaryAction.action
64
+ onClick: secondaryAction.action,
65
+ disabled: secondaryAction.disabled
63
66
  }, secondaryAction.label), primaryAction && /*#__PURE__*/_react["default"].createElement(_Button.PrimaryButton, {
64
- onClick: primaryAction.action
67
+ onClick: primaryAction.action,
68
+ disabled: primaryAction.disabled
65
69
  }, primaryAction.label))));
66
70
  });
67
71
  var Card = Object.assign(CardComponent, {
@@ -5,4 +5,5 @@ export declare const Interactive: any;
5
5
  export declare const NoAction: any;
6
6
  export declare const PrimaryActionOnly: any;
7
7
  export declare const SecondaryActionOnly: any;
8
+ export declare const DisabledActions: any;
8
9
  export declare const CustomHeadingSubHeading: any;
@@ -1,4 +1,5 @@
1
1
  export declare type ComponentAction = {
2
2
  label: string;
3
3
  action: (...args: any[]) => void;
4
+ disabled?: boolean;
4
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.274",
3
+ "version": "4.0.275",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",