oa-componentbook 0.18.78 → 0.18.80

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.
@@ -99,29 +99,32 @@ function MembershipCard(_ref) {
99
99
  }, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
100
100
  color: "primary-background",
101
101
  icon: _ArrowForwardIos.default
102
- }))), alert.length && alert.map((item, i) => /*#__PURE__*/_react.default.createElement("div", {
103
- className: "toolTipInfo"
104
- }, item.tooltip && /*#__PURE__*/_react.default.createElement(_CustomTooltip.default, {
105
- isDisplayed: true,
106
- title: item.tooltip
107
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
108
- color: "warning",
109
- icon: _InfoOutlined.default
110
- })), /*#__PURE__*/_react.default.createElement("div", null, item.subHeading && /*#__PURE__*/_react.default.createElement("h3", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
111
- color: "secondary-content",
112
- className: "type-sl1-700"
113
- }, alert.subHeading)), item.heading && /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
114
- color: "primary-content",
115
- className: "type-t2-700"
116
- }, alert.heading)), item.description && /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
117
- color: "secondary-content",
118
- className: "type-b2-400"
119
- }, alert.description.text))), item.actions && /*#__PURE__*/_react.default.createElement("div", null, item.actions.map((action, index) => /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
120
- key: action.label,
121
- label: action.label,
122
- type: action.type,
123
- onClick: action.name
124
- })))))), footer && /*#__PURE__*/_react.default.createElement(_styles.CardFooter, null, actions && actions.map((action, index) => /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
102
+ }))), alert.length && alert.map((item, i) => {
103
+ var _item$description, _alert$description;
104
+ return /*#__PURE__*/_react.default.createElement("div", {
105
+ className: "toolTipInfo"
106
+ }, item.tooltip && /*#__PURE__*/_react.default.createElement(_CustomTooltip.default, {
107
+ isDisplayed: true,
108
+ title: item.tooltip
109
+ }, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
110
+ color: "warning",
111
+ icon: _InfoOutlined.default
112
+ })), /*#__PURE__*/_react.default.createElement("div", null, (item === null || item === void 0 ? void 0 : item.subHeading) && /*#__PURE__*/_react.default.createElement("h3", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
113
+ color: "secondary-content",
114
+ className: "type-sl1-700"
115
+ }, alert === null || alert === void 0 ? void 0 : alert.subHeading)), (item === null || item === void 0 ? void 0 : item.heading) && /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
116
+ color: "primary-content",
117
+ className: "type-t2-700"
118
+ }, alert === null || alert === void 0 ? void 0 : alert.heading)), (item === null || item === void 0 ? void 0 : item.description) && (item === null || item === void 0 || (_item$description = item.description) === null || _item$description === void 0 ? void 0 : _item$description.text) && /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
119
+ color: "secondary-content",
120
+ className: "type-b2-400"
121
+ }, alert === null || alert === void 0 || (_alert$description = alert.description) === null || _alert$description === void 0 ? void 0 : _alert$description.text))), item.actions && /*#__PURE__*/_react.default.createElement("div", null, item.actions.map((action, index) => /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
122
+ key: action.label,
123
+ label: action.label,
124
+ type: action.type,
125
+ onClick: action.name
126
+ }))));
127
+ })), footer && /*#__PURE__*/_react.default.createElement(_styles.CardFooter, null, actions && actions.map((action, index) => /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
125
128
  key: action === null || action === void 0 ? void 0 : action.label,
126
129
  label: action === null || action === void 0 ? void 0 : action.label,
127
130
  type: action === null || action === void 0 ? void 0 : action.type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "0.18.78",
3
+ "version": "0.18.80",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",