@rh-support/react-context 1.0.0 → 1.0.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseCaseModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CloseCaseModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloseCaseModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CloseCaseModal.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAkB/B,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACvB;AAUD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,eA4J3C"}
|
|
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
import './CloseCaseModal.scss';
|
|
10
11
|
import { Button, ButtonVariant, Form, FormGroup, Modal, ModalVariant, Select, SelectOption, TextArea, } from '@patternfly/react-core';
|
|
11
12
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
12
13
|
import { isEmpty } from 'lodash';
|
|
@@ -77,7 +78,7 @@ export function CloseCaseModal(props) {
|
|
|
77
78
|
". You can still view a case after closing.")),
|
|
78
79
|
React.createElement("p", null,
|
|
79
80
|
React.createElement(Trans, null, "This action will also reset the currently selected filters to default state."))))),
|
|
80
|
-
React.createElement(Form,
|
|
81
|
+
React.createElement(Form, { className: "close-case-modal-form" },
|
|
81
82
|
React.createElement(FormGroup, { label: t('Resolution'), isRequired: true, fieldId: "case-resolution", helperText: isCaseListPage ? t('All of the selected cases will have the same resolution in bulk edit.') : '', helperTextInvalid: "Required field", validated: showValidationError && !selectedResolution ? 'error' : 'default', helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null) },
|
|
82
83
|
React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "case-resolution", selections: selectedResolution, onSelect: onResolutionChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedResolution ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: onDropdownToggle }, resolutionOptions.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
|
|
83
84
|
React.createElement(Trans, null, option)))))),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// To override close case modal font weight - PCM-11644
|
|
2
|
+
div#case-close-modal.pf-c-modal-box__body {
|
|
3
|
+
form.pf-c-form.close-case-modal-form {
|
|
4
|
+
div.pf-c-form__group {
|
|
5
|
+
div.pf-c-form__group-label {
|
|
6
|
+
label.pf-c-form__label {
|
|
7
|
+
span.pf-c-form__label-text {
|
|
8
|
+
font-weight: 600 !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/react-context",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"@cee-eng/hydrajs": "4.13.0",
|
|
45
45
|
"@patternfly/react-core": "4.202.16",
|
|
46
46
|
"@patternfly/react-icons": "4.53.16",
|
|
47
|
-
"@rh-support/components": "1.2.
|
|
47
|
+
"@rh-support/components": "1.2.1",
|
|
48
48
|
"@rh-support/types": "0.2.0",
|
|
49
|
-
"@rh-support/user-permissions": "1.0.
|
|
50
|
-
"@rh-support/utils": "1.0.
|
|
49
|
+
"@rh-support/user-permissions": "1.0.1",
|
|
50
|
+
"@rh-support/utils": "1.0.1",
|
|
51
51
|
"i18next": "^19.0.1",
|
|
52
52
|
"localforage": "^1.7.3",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"not ie <= 11",
|
|
88
88
|
"not op_mini all"
|
|
89
89
|
],
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "4c44ec177438ff8e09a761a4f38ce3fbd83c7aaa"
|
|
91
91
|
}
|