From 465f8e0001503690b3fb7580e38bc5ab906d48ab Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Tue, 16 Jul 2024 18:15:16 +0530 Subject: [PATCH] Replace usages of gray color shade with secondary (alias of gray) for consistency and maintainability (#8138) * Replace usages of `gray` shade with `secondary` shade * remove irrelavant comment from tailwind config --- src/CAREUI/display/Count.tsx | 4 +- src/CAREUI/display/FilterBadge.tsx | 4 +- src/CAREUI/display/SubHeading.tsx | 4 +- src/CAREUI/display/Timeline.tsx | 20 +-- src/CAREUI/interactive/LegendInput.tsx | 2 +- src/CAREUI/interactive/ScrollOverlay.tsx | 2 +- src/CAREUI/interactive/Switch.tsx | 2 +- src/Common/hooks/useFilters.tsx | 2 +- src/Components/ABDM/ABDMFacilityRecords.tsx | 18 +-- src/Components/ABDM/ABDMRecordsTab.tsx | 46 +++--- src/Components/ABDM/ABHAProfileModal.tsx | 4 +- .../ABDM/ConfigureHealthFacility.tsx | 4 +- src/Components/ABDM/FetchRecordsModal.tsx | 2 +- src/Components/ABDM/HealthInformation.tsx | 12 +- src/Components/ABDM/LinkABHANumberModal.tsx | 20 +-- src/Components/ABDM/LinkCareContextModal.tsx | 4 +- src/Components/Assets/AssetImportModal.tsx | 4 +- src/Components/Assets/AssetManage.tsx | 76 ++++----- .../Assets/AssetServiceEditModal.tsx | 35 +++-- src/Components/Assets/AssetWarrantyCard.tsx | 8 +- src/Components/Assets/AssetsList.tsx | 2 +- src/Components/Auth/Login.tsx | 8 +- src/Components/Auth/ResetPassword.tsx | 2 +- src/Components/CameraFeed/CameraFeed.tsx | 2 +- .../LiveMonitoringFilters.tsx | 6 +- src/Components/CameraFeed/NoFeedAvailable.tsx | 2 +- .../Common/BloodPressureFormField.tsx | 2 +- src/Components/Common/Breadcrumbs.tsx | 15 +- src/Components/Common/DateInputV2.tsx | 22 +-- src/Components/Common/Dialog.tsx | 4 +- .../Common/ExcelFIleDragAndDrop.tsx | 16 +- src/Components/Common/ExcelViewer.tsx | 16 +- src/Components/Common/FilePreviewDialog.tsx | 6 +- src/Components/Common/GLocationPicker.tsx | 4 +- src/Components/Common/HeadedTabs.tsx | 6 +- .../Common/LanguageSelectorLogin.tsx | 2 +- src/Components/Common/PageTitle.tsx | 2 +- src/Components/Common/Sidebar/Sidebar.tsx | 2 +- .../Common/Sidebar/SidebarUserCard.tsx | 6 +- src/Components/Common/SlideOver.res | 2 +- src/Components/Common/Steps.tsx | 12 +- src/Components/Common/Uptime.tsx | 22 +-- .../Common/UserAutocompleteFormField.tsx | 2 +- src/Components/Common/UserDetails.tsx | 2 +- src/Components/Common/components/ButtonV2.tsx | 2 +- .../Common/components/ContactLink.tsx | 2 +- src/Components/Common/components/Menu.tsx | 2 +- .../Common/components/SkeletonLoading.res | 4 +- src/Components/Common/components/Switch.tsx | 2 +- src/Components/Common/components/Table.tsx | 2 +- .../InvestigationBuilder.tsx | 12 +- .../PrescriptionDropdown.tsx | 2 +- .../PrescriptionMultiselect.tsx | 4 +- .../prescription-builder/ProcedureBuilder.tsx | 16 +- .../CriticalCare__Index.res | 35 +++-- .../DailyRound__Medicines.res | 16 +- ...ticalCare__HemodynamicParametersEditor.res | 24 +-- .../DailyRound__HemodynamicParameters.res | 14 +- .../IOBalance/DailyRound__IOBalance.res | 80 +++++----- .../IOBalance/IOBalance__Summary.res | 2 +- .../IOBalance/IOBalance__UnitPicker.res | 9 +- .../IOBalance/IOBalance__UnitSection.res | 14 +- .../CriticalCare__Description.res | 2 +- ...icalCare__NeurologicalMonitoringEditor.res | 6 +- .../CriticalCare__Switch.res | 8 +- .../DailyRound__NeurologicalMonitoring.res | 16 +- .../CriticalCare__NursingCareEditor.res | 2 +- .../Others/DailyRound__General.res | 2 +- .../Pain/CriticalCare__PainEditor.res | 17 +- .../Pain/CriticalCare__PainInputModal.res | 8 +- .../Pain/DailyRound__Pain.res | 6 +- .../CriticalCare__PressureSoreEditor.res | 146 +++++++++++------- .../CriticalCare__PressureSoreInputModal.res | 18 ++- .../PressureSore/DailyRound__PressureSore.res | 6 +- .../Recording/CriticalCare__Recording.res | 10 +- .../components/CriticalCare__Dropdown.res | 7 +- .../components/CriticalCare__Home.res | 15 +- .../components/CriticalCare__NumberInput.res | 30 ++-- .../components/PressureSore.js | 2 +- .../ConditionVerificationStatusMenu.tsx | 9 +- .../ConsultationDiagnosisBuilder.tsx | 10 +- .../ConsultationDiagnosisEntry.tsx | 4 +- .../PrincipalDiagnosisSelect.tsx | 6 +- .../Diagnosis/DiagnosesListAccordion.tsx | 9 +- src/Components/ExternalResult/ResultItem.tsx | 78 +++++----- src/Components/ExternalResult/ResultList.tsx | 34 ++-- .../ExternalResult/ResultUpdate.tsx | 8 +- src/Components/Facility/AssetCreate.tsx | 14 +- src/Components/Facility/BedCapacity.tsx | 2 +- src/Components/Facility/BedManagement.tsx | 2 +- src/Components/Facility/BedTypeCard.tsx | 10 +- .../Facility/CentralNursingStation.tsx | 6 +- src/Components/Facility/ConsultationCard.tsx | 12 +- .../ConsultationFeedTab.tsx | 4 +- .../ConsultationUpdatesTab.tsx | 34 ++-- .../ConsultationDetails/Events/EventsList.tsx | 6 +- .../Events/GenericEvent.tsx | 10 +- .../Facility/ConsultationDetails/index.tsx | 15 +- .../ConsultationDoctorNotes/index.tsx | 8 +- src/Components/Facility/ConsultationForm.tsx | 10 +- .../Consultations/BedActivityTimeline.tsx | 16 +- .../Facility/Consultations/Beds.tsx | 4 +- .../DailyRounds/DefaultLogUpdateCard.tsx | 2 +- .../Consultations/DailyRounds/LoadingCard.tsx | 8 +- .../DailyRounds/LogUpdateCardAttribute.tsx | 10 +- .../VirtualNursingAssistantLogUpdateCard.tsx | 2 +- .../Consultations/DailyRoundsFilter.tsx | 6 +- .../Consultations/DailyRoundsList.tsx | 4 +- .../Facility/Consultations/Feed.tsx | 8 +- .../Facility/Consultations/LiveFeed.tsx | 14 +- .../Facility/Consultations/Mews.tsx | 10 +- .../Consultations/NeurologicalTables.tsx | 66 ++++---- .../Facility/Consultations/NursingPlot.tsx | 4 +- .../Facility/Consultations/NutritionPlots.tsx | 20 +-- .../Facility/Consultations/PainDiagrams.tsx | 4 +- .../Consultations/PressureSoreDiagrams.tsx | 4 +- .../Consultations/PrimaryParametersPlot.tsx | 4 +- .../components/BinaryChronologicalChart.tsx | 4 +- .../Facility/CoverImageEditModal.tsx | 10 +- src/Components/Facility/DischargeModal.tsx | 2 +- .../Facility/DischargeSummaryModal.tsx | 2 +- .../Facility/DischargedPatientsList.tsx | 15 +- src/Components/Facility/DoctorNote.tsx | 2 +- .../Facility/DoctorVideoSlideover.tsx | 22 +-- .../Facility/DuplicatePatientDialog.tsx | 4 +- .../Facility/FacilityBedCapacity.tsx | 2 +- src/Components/Facility/FacilityCard.tsx | 12 +- src/Components/Facility/FacilityCreate.tsx | 6 +- src/Components/Facility/FacilityHome.tsx | 16 +- .../Facility/FacilityHomeTriage.tsx | 2 +- src/Components/Facility/FacilityStaffList.tsx | 2 +- src/Components/Facility/FacilityUsers.tsx | 10 +- src/Components/Facility/HospitalList.tsx | 4 +- src/Components/Facility/InventoryList.tsx | 21 +-- src/Components/Facility/InventoryLog.tsx | 27 ++-- .../InvestigationSuggestions.tsx | 4 +- .../Investigations/InvestigationTable.tsx | 26 ++-- .../Investigations/Reports/ReportTable.tsx | 28 ++-- .../Facility/Investigations/Table.tsx | 24 +-- .../Investigations/ViewInvestigations.tsx | 6 +- .../Facility/LocationManagement.tsx | 14 +- src/Components/Facility/MinQuantityList.tsx | 28 ++-- .../Facility/MinQuantityRequiredModal.tsx | 4 +- src/Components/Facility/PatientNoteCard.tsx | 28 ++-- .../Facility/PatientNotesSlideover.tsx | 6 +- src/Components/Facility/StaffCapacity.tsx | 2 +- src/Components/Facility/TreatmentSummary.tsx | 100 ++++++------ src/Components/Form/AutoCompleteAsync.tsx | 6 +- .../Form/FormFields/Autocomplete.tsx | 10 +- .../FormFields/AutocompleteMultiselect.tsx | 6 +- src/Components/Form/FormFields/FormField.tsx | 2 +- src/Components/Form/FormFields/Month.tsx | 2 +- .../FormFields/NumericWithUnitsFormField.tsx | 2 +- .../Form/FormFields/OtpFormField.tsx | 2 +- .../Form/FormFields/PhoneNumberFormField.tsx | 12 +- .../Form/FormFields/RadioFormField.tsx | 4 +- src/Components/Form/MultiSelectMenuV2.tsx | 16 +- src/Components/Form/SearchInput.tsx | 10 +- src/Components/Form/SelectMenuV2.tsx | 12 +- src/Components/HCX/ClaimDetailCard.tsx | 48 +++--- src/Components/HCX/ClaimsItemsBuilder.tsx | 4 +- src/Components/HCX/CreateClaimCard.tsx | 2 +- .../HCX/InsuranceDetailsBuilder.tsx | 4 +- .../Medicine/AdministerMedicine.tsx | 2 +- .../Medicine/ManagePrescriptions.tsx | 2 +- .../MedibaseAutocompleteFormField.tsx | 4 +- .../Medicine/MedicineAdministration.tsx | 4 +- .../AdministrationEventCell.tsx | 8 +- .../AdministrationEventSeperator.tsx | 4 +- .../AdministrationTable.tsx | 10 +- .../AdministrationTableRow.tsx | 14 +- .../MedicineAdministrationSheet/index.tsx | 4 +- .../Medicine/MedicinePrescriptionSummary.tsx | 6 +- .../Medicine/PrescriptionBuilder.tsx | 2 +- .../Medicine/PrescriptionDetailCard.tsx | 18 ++- .../Medicine/PrescriptionsTable.tsx | 8 +- .../Medicine/ResponsiveMedicineTables.tsx | 14 +- src/Components/Notifications/NoticeBoard.tsx | 8 +- .../Notifications/NotificationsList.tsx | 6 +- src/Components/Patient/DailyRounds.tsx | 4 +- src/Components/Patient/FileUpload.tsx | 14 +- src/Components/Patient/InsuranceDetails.tsx | 2 +- .../Patient/InsuranceDetailsCard.tsx | 6 +- src/Components/Patient/ManagePatients.tsx | 24 +-- .../Patient/PatientConsentRecordBlock.tsx | 6 +- .../Patient/PatientConsentRecords.tsx | 2 +- src/Components/Patient/PatientHome.tsx | 90 +++++------ src/Components/Patient/PatientInfoCard.tsx | 46 +++--- src/Components/Patient/PatientNotes.tsx | 8 +- src/Components/Patient/PatientRegister.tsx | 14 +- src/Components/Patient/SamplePreview.tsx | 22 +-- src/Components/Patient/SampleTestCard.tsx | 14 +- src/Components/Patient/SampleViewAdmin.tsx | 14 +- src/Components/Patient/UpdateStatusDialog.tsx | 2 +- src/Components/Patient/Waveform.tsx | 4 +- src/Components/Resource/CommentSection.tsx | 10 +- src/Components/Resource/ListView.tsx | 20 +-- src/Components/Resource/ResourceBoard.tsx | 34 ++-- src/Components/Resource/ResourceDetails.tsx | 4 +- src/Components/Scribe/Scribe.tsx | 30 ++-- src/Components/Shifting/CommentsSection.tsx | 10 +- src/Components/Shifting/Commons.tsx | 2 +- src/Components/Shifting/ListView.tsx | 28 ++-- src/Components/Shifting/ShiftDetails.tsx | 10 +- src/Components/Shifting/ShiftingBoard.tsx | 42 ++--- src/Components/Symptoms/SymptomsBuilder.tsx | 22 +-- src/Components/Symptoms/SymptomsCard.tsx | 12 +- .../Users/ConfirmHomeFacilityUpdateDialog.tsx | 2 +- src/Components/Users/ManageUsers.tsx | 20 +-- src/Components/Users/ProfileComponents.tsx | 8 +- .../Users/SkillsSlideOverComponents.tsx | 2 +- src/Components/Users/UnlinkFacilityDialog.tsx | 2 +- src/Components/Users/UserAdd.tsx | 6 +- src/Components/Users/UserProfile.tsx | 50 +++--- .../VitalsMonitor/HL7PatientVitalsMonitor.tsx | 2 +- .../VitalsMonitorAssetPopover.tsx | 6 +- .../VitalsMonitor/VitalsMonitorFooter.tsx | 2 +- .../VitalsMonitor/VitalsMonitorHeader.tsx | 6 +- src/Routers/AppRouter.tsx | 4 +- src/Utils/AutoSave.tsx | 2 +- src/Utils/VoiceRecorder.tsx | 2 +- src/Utils/useFileManager.tsx | 4 +- src/style/CAREUI.css | 4 +- src/style/index.css | 40 ++--- tailwind.config.js | 2 +- 225 files changed, 1466 insertions(+), 1341 deletions(-) diff --git a/src/CAREUI/display/Count.tsx b/src/CAREUI/display/Count.tsx index 3b889b10e9b..997b58794eb 100644 --- a/src/CAREUI/display/Count.tsx +++ b/src/CAREUI/display/Count.tsx @@ -19,11 +19,11 @@ export default function CountBlock(props: Props) {
-
+
{props.text}
{props.loading ? ( -
+
) : (
{props.count} diff --git a/src/CAREUI/display/FilterBadge.tsx b/src/CAREUI/display/FilterBadge.tsx index a4cd743b86a..0259439a4b8 100644 --- a/src/CAREUI/display/FilterBadge.tsx +++ b/src/CAREUI/display/FilterBadge.tsx @@ -16,13 +16,13 @@ const FilterBadge = ({ name, value, onRemove }: FilterBadgeProps) => { data-testid={name} className={`${ !value && "hidden" - } flex flex-row items-center rounded-full border border-gray-300 bg-white px-3 py-1 text-xs font-medium leading-4 text-gray-600`} + } flex flex-row items-center rounded-full border border-secondary-300 bg-white px-3 py-1 text-xs font-medium leading-4 text-secondary-600`} > {`${name}: ${value}`} diff --git a/src/CAREUI/display/SubHeading.tsx b/src/CAREUI/display/SubHeading.tsx index a9024e83687..1161ecd8e55 100644 --- a/src/CAREUI/display/SubHeading.tsx +++ b/src/CAREUI/display/SubHeading.tsx @@ -13,11 +13,11 @@ export default function SubHeading(props: Props) { return (
- + {props.title} {props.lastModified && ( -
+
diff --git a/src/CAREUI/display/Timeline.tsx b/src/CAREUI/display/Timeline.tsx index 3414a792398..bbbf5e24859 100644 --- a/src/CAREUI/display/Timeline.tsx +++ b/src/CAREUI/display/Timeline.tsx @@ -62,7 +62,7 @@ export const TimelineNode = (props: TimelineNodeProps) => { "absolute left-0 top-0 flex w-6 justify-center", )} > -
+
{ {props.title || (
-

+

{props.event.by && ( - + {props.event.by.username.startsWith("asset") ? t("virtual_nursing_assistant") : `${formatName(props.event.by)} ${ @@ -101,7 +101,7 @@ export const TimelineNode = (props: TimelineNodeProps) => { {props.actions} )}

@@ -131,13 +131,13 @@ export const TimelineNodeTitle = (props: TimelineNodeTitleProps) => {