glints-aries 4.0.309 → 4.0.310

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.
@@ -3,7 +3,7 @@ import { ComponentAction } from '../../types/componentAction';
3
3
  export declare type BarProps = {
4
4
  heading: React.ReactNode;
5
5
  subheading?: React.ReactNode;
6
- primaryAction: ComponentAction;
6
+ primaryAction?: ComponentAction;
7
7
  secondaryAction?: ComponentAction;
8
8
  tertiaryAction?: ComponentAction;
9
9
  position?: 'top' | 'bottom';
@@ -52,7 +52,7 @@ export var Bar = /*#__PURE__*/React.forwardRef(function Bar(_ref, ref) {
52
52
  }, tertiaryAction.label), secondaryAction && /*#__PURE__*/React.createElement(Button, {
53
53
  onClick: secondaryAction.action,
54
54
  size: buttonSize
55
- }, secondaryAction.label), /*#__PURE__*/React.createElement(PrimaryButton, {
55
+ }, secondaryAction.label), primaryAction && /*#__PURE__*/React.createElement(PrimaryButton, {
56
56
  onClick: primaryAction.action,
57
57
  size: buttonSize
58
58
  }, primaryAction.label)))));
@@ -6,3 +6,4 @@ export declare const PrimaryActionOnly: any;
6
6
  export declare const CustomHeading: any;
7
7
  export declare const BackButton: any;
8
8
  export declare const customActionGroup: any;
9
+ export declare const WithoutPrimaryAction: any;
@@ -3,7 +3,7 @@ import { ComponentAction } from '../../types/componentAction';
3
3
  export declare type BarProps = {
4
4
  heading: React.ReactNode;
5
5
  subheading?: React.ReactNode;
6
- primaryAction: ComponentAction;
6
+ primaryAction?: ComponentAction;
7
7
  secondaryAction?: ComponentAction;
8
8
  tertiaryAction?: ComponentAction;
9
9
  position?: 'top' | 'bottom';
@@ -57,7 +57,7 @@ var Bar = /*#__PURE__*/_react["default"].forwardRef(function Bar(_ref, ref) {
57
57
  }, tertiaryAction.label), secondaryAction && /*#__PURE__*/_react["default"].createElement(_Button.Button, {
58
58
  onClick: secondaryAction.action,
59
59
  size: buttonSize
60
- }, secondaryAction.label), /*#__PURE__*/_react["default"].createElement(_Button.PrimaryButton, {
60
+ }, secondaryAction.label), primaryAction && /*#__PURE__*/_react["default"].createElement(_Button.PrimaryButton, {
61
61
  onClick: primaryAction.action,
62
62
  size: buttonSize
63
63
  }, primaryAction.label)))));
@@ -6,3 +6,4 @@ export declare const PrimaryActionOnly: any;
6
6
  export declare const CustomHeading: any;
7
7
  export declare const BackButton: any;
8
8
  export declare const customActionGroup: any;
9
+ export declare const WithoutPrimaryAction: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.309",
3
+ "version": "4.0.310",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",