Skip to content

Commit

Permalink
(chore) Bump @carbon/react to v1.71.0
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Nov 27, 2024
1 parent 4d7f15d commit c738b6c
Show file tree
Hide file tree
Showing 24 changed files with 569 additions and 137 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@carbon/react": "~1.37.0",
"@carbon/react": "^1.71.0",
"@openmrs/esm-framework": "next",
"@openmrs/esm-patient-common-lib": "next",
"@playwright/test": "1.48.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-active-visits-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/openmrs/openmrs-esm-patient-management/issues"
},
"dependencies": {
"@carbon/react": "~1.37.0",
"@carbon/react": "^1.71.0",
"lodash-es": "^4.17.15"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-appointments-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/openmrs/openmrs-esm-patient-management/issues"
},
"dependencies": {
"@carbon/react": "~1.37.0",
"@carbon/react": "^1.71.0",
"formik": "^2.2.9",
"lodash-es": "^4.17.15",
"yup": "^0.32.11"
Expand Down
4 changes: 3 additions & 1 deletion packages/esm-appointments-app/src/appointments.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ describe('Appointments', () => {
await screen.findByText(/^appointments$/i);
expect(screen.getByRole('button', { name: /appointments calendar/i })).toBeInTheDocument();
expect(screen.getByPlaceholderText(/dd-mmm-yyyy/i)).toBeInTheDocument();
expect(screen.getByRole('combobox', { name: /view/i })).toBeInTheDocument();
screen.getByRole('combobox', {
name: /select service type/i,
});
expect(screen.getByText(/appointment metrics/i)).toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ const AppointmentsForm: React.FC<AppointmentsFormProps & DefaultWorkspaceProps>
appointmentRequest: appointmentPayload,
recurringPattern: constructRecurringPattern(data),
};

const abortController = new AbortController();

(isRecurringAppointment
? saveRecurringAppointments(recurringAppointmentPayload, abortController)
: saveAppointment(appointmentPayload, abortController)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const defaultProps = {
closeWorkspace: jest.fn(),
patientUuid: mockPatient.id,
promptBeforeClosing: jest.fn(),
closeWorkspaceWithSavedChanges: jest.fn(),
setTitle: jest.fn(),
};

const mockCreateAppointment = jest.mocked(saveAppointment);
Expand Down Expand Up @@ -206,6 +208,7 @@ describe('AppointmentForm', () => {
await user.selectOptions(timeFormat, 'AM');
await user.selectOptions(serviceSelect, ['Outpatient']);
await user.selectOptions(appointmentTypeSelect, ['Scheduled']);
// TODO: Fix the `Error: Not implemented: HTMLFormElement.prototype.requestSubmit` error shown after the form is submitted
await user.click(saveButton);
});
});
2 changes: 1 addition & 1 deletion packages/esm-bed-management-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/openmrs/openmrs-esm-patient-management/issues"
},
"dependencies": {
"@carbon/react": "~1.37.0",
"@carbon/react": "^1.71.0",
"lodash-es": "^4.17.15"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-patient-list-management-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/openmrs/openmrs-esm-patient-management/issues"
},
"dependencies": {
"@carbon/react": "~1.37.0",
"@carbon/react": "^1.71.0",
"dexie": "^3.0.3",
"fuzzy": "^0.1.3",
"lodash-es": "^4.17.15"
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-patient-registration-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/openmrs/openmrs-esm-patient-management/issues"
},
"dependencies": {
"@carbon/react": "~1.37.0",
"@carbon/react": "^1.71.0",
"formik": "^2.1.5",
"lodash-es": "^4.17.15",
"uuid": "^8.3.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ export const GenderField: React.FC = () => {
<div className={styles.halfWidthInDesktopView}>
<h4 className={styles.productiveHeading02Light}>{t('sexFieldLabelText', 'Sex')}</h4>
<div className={styles.sexField}>
<p className="cds--label">{t('genderLabelText', 'Sex')}</p>
<RadioButtonGroup name="gender" orientation="vertical" onChange={setGender} valueSelected={field.value}>
<RadioButtonGroup
name="gender"
legendText={t('genderLabelText', 'Sex')}
orientation="vertical"
onChange={setGender}
valueSelected={field.value}>
{fieldConfigs.map((option) => (
<RadioButton
key={option.label ?? option.value}
Expand Down
Loading

0 comments on commit c738b6c

Please sign in to comment.