oa-componentbook 1.0.1-stage.66 → 1.0.1-stage.68

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.
@@ -103,7 +103,7 @@ function ApprovalWidget(_ref) {
103
103
  color: "secondary-content"
104
104
  }, descriptionTitle), /*#__PURE__*/_react.default.createElement(_Typography.default, {
105
105
  typography: "type-b2-400",
106
- color: "secondary-content"
106
+ color: "primary-content"
107
107
  }, description)), !isQuestionStyleWidget && /*#__PURE__*/_react.default.createElement("div", {
108
108
  className: "oaCustomerResponse"
109
109
  }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
@@ -119,8 +119,12 @@ function ApprovalWidget(_ref) {
119
119
  "data-test": dataTest ? "".concat(dataTest, "--view-button") : undefined,
120
120
  onClick: () => viewOnClick(questionId),
121
121
  type: "text-only",
122
- label: isQuestionStyleWidget ? "View Previous Description" : "View History"
123
- }), children)), !isQuestionStyleWidget && /*#__PURE__*/_react.default.createElement("div", {
122
+ label:
123
+ // isQuestionStyleWidget
124
+ // ? "View Previous Description"
125
+ // :
126
+ "View History"
127
+ }), children)), (systemStatus === null || systemStatus === void 0 ? void 0 : systemStatus.length) > 0 && /*#__PURE__*/_react.default.createElement("div", {
124
128
  className: "col-sm-12 col-md-4 col-lg-4 flexCol8"
125
129
  }, systemStatus === null || systemStatus === void 0 ? void 0 : systemStatus.map(status => {
126
130
  var _status$items;
@@ -209,23 +213,11 @@ function ApprovalWidget(_ref) {
209
213
  }, /*#__PURE__*/_react.default.createElement(_antd.Input.TextArea, {
210
214
  "data-test": dataTest ? "".concat(dataTest, "--remarks") : undefined,
211
215
  disabled: (_approvalForm$disable4 = approvalForm === null || approvalForm === void 0 ? void 0 : approvalForm.disabled) !== null && _approvalForm$disable4 !== void 0 ? _approvalForm$disable4 : false
212
- })))), actionRenderType === "buttonWithForm" &&
213
- /*#__PURE__*/
214
- // <Form.Item
215
- // name={`validateDocumentButton#${questionId}`}
216
- // rules={
217
- // isMandatory
218
- // ? [{ required: true, message: "Reason is required" }]
219
- // : []
220
- // }
221
- // >
222
- //
223
- // </Form.Item>
224
- _react.default.createElement(_antd.Form.Item, null, getFieldDecorator("validateDocumentButton#".concat(questionId), {
225
- rules: [{
216
+ })))), actionRenderType === "buttonWithForm" && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, null, getFieldDecorator("validateDocumentButton#".concat(questionId), {
217
+ rules: isMandatory ? [{
226
218
  required: true,
227
219
  message: "This field is required"
228
- }]
220
+ }] : []
229
221
  })( /*#__PURE__*/_react.default.createElement(_CustomButton.default, actionContent)))) || undefined), hasDivider && /*#__PURE__*/_react.default.createElement(_antd.Divider, null));
230
222
  }
231
223
  ApprovalWidget.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "1.0.1-stage.66",
3
+ "version": "1.0.1-stage.68",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",