From a67fd26f7fca5db4b5a0cc3ef3ddc330390ffb64 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Wed, 20 Nov 2024 23:05:24 +0800 Subject: [PATCH] pkp/pkp-lib#9626 Migrate icons to svg (#414) * pkp/pkp-lib#9626 Update Expand, Orcid and UsefulTips icons based on new icon designs from Figma * pkp/pkp-lib#9626 Add new icons * pkp/pkp-lib#9626 Add InitialsAvatar component * pkp/pkp-lib#9262 Add Checkbox icons * pkp/pkp-lib#9626 Update svg for StarTicked icon * pkp/pkp-lib#9626 Use svg icons for components that use Icon component * pkp/pkp-lib#9626 Rename Sitemap icon filename * pkp/pkp-lib#9626 Adjust vertical alignment of icons next to texts * pkp/pkp-lib#9626 Add documentation for added new Tooltip props * pkp/pkp-lib#9626 Update InitialsAvatar component * pkp/pkp-lib#9626 Remove fontawesome support from icon component * pkp/pkp-lib#9626 Use icon Orcid in UserInvitationManager component * pkp/pkp-lib#9626 Use default colors for UsefulTips icon * pkp/pkp-lib#9626 Remove props in UsefulTips icon * pkp/pkp-lib#9626 Remove prop flex in Tooltip and HelpButton components * pkp/pkp-lib#9626 Use align-middle for inline-block containers when displaying icons * pkp/pkp-lib#9626 Revert removed aria-hidden prop in Modal component * pkp/pkp-lib#9626 Use InitialsAvatar component to display isLoggedInAs icon --- src/components/Badge/Badge.stories.js | 2 +- src/components/ButtonRow/ButtonRow.stories.js | 2 +- src/components/Composer/Composer.vue | 16 +- .../Container/ManageEmailsPage.stories.js | 2 +- src/components/Container/Page.stories.js | 21 +-- src/components/Container/Page.vue | 10 -- src/components/Container/StatsPage.stories.js | 7 +- .../Container/SubmissionWizardPage.stories.js | 13 +- src/components/DateRange/DateRange.vue | 39 ++--- src/components/Dropdown/Dropdown.stories.js | 2 +- src/components/Expander/Expander.vue | 5 +- .../FileAttacher/FileAttacherFileStage.vue | 2 +- .../FileAttacher/FileAttacherLibrary.vue | 2 +- .../FileAttacher/FileAttacherReviewFiles.vue | 2 +- .../FileAttacher/FileAttacherUpload.vue | 2 +- src/components/Filter/Filter.vue | 2 +- src/components/Filter/FilterSlider.vue | 7 +- .../Filter/FilterSliderMultirange.vue | 4 +- src/components/Form/FieldError.vue | 2 +- src/components/Form/Form.vue | 5 +- src/components/Form/FormErrors.vue | 2 +- src/components/Form/FormPage.vue | 6 +- .../Form/fields/FieldArchivingPn.vue | 4 +- .../Form/fields/FieldBaseAutosuggest.vue | 13 +- src/components/Form/fields/FieldColor.vue | 4 +- src/components/Form/fields/FieldHtml.vue | 2 +- .../Form/fields/FieldMetadataSetting.vue | 2 +- src/components/Form/fields/FieldOptions.vue | 10 +- src/components/Form/fields/FieldOrcid.vue | 5 +- src/components/Form/fields/FieldPubId.vue | 13 +- .../Form/fields/FieldRadioInput.vue | 4 +- .../Form/fields/FieldRichTextarea.vue | 4 +- src/components/Form/fields/FieldSelect.vue | 1 + .../Form/fields/FieldSelectIssue.vue | 1 + src/components/Form/fields/FieldSlider.vue | 1 + src/components/Form/fields/FieldText.vue | 1 + src/components/Form/fields/FieldTextarea.vue | 1 + src/components/Form/fields/FieldUpload.vue | 1 + .../Form/fields/FieldUploadImage.vue | 1 + src/components/Icon/Icon.mdx | 13 +- src/components/Icon/Icon.stories.js | 49 +++++- src/components/Icon/Icon.vue | 139 ++++++++++-------- src/components/Icon/icons/AlignCenter.vue | 32 ++++ src/components/Icon/icons/AlignLeft.vue | 17 +++ src/components/Icon/icons/AlignRight.vue | 17 +++ src/components/Icon/icons/ArchivedFile.vue | 59 ++++++++ src/components/Icon/icons/Checkbox.vue | 8 + src/components/Icon/icons/CheckboxTicked.vue | 8 + src/components/Icon/icons/Comment.vue | 17 +++ src/components/Icon/icons/Declined.vue | 8 + src/components/Icon/icons/Desktop.vue | 17 +++ src/components/Icon/icons/Download.vue | 15 ++ src/components/Icon/icons/Error.vue | 8 + src/components/Icon/icons/Expand.vue | 18 ++- src/components/Icon/icons/FileCode.vue | 20 +++ src/components/Icon/icons/FilePowerpoint.vue | 24 +++ src/components/Icon/icons/FileText.vue | 92 ++++++++++++ src/components/Icon/icons/Filter.vue | 10 ++ src/components/Icon/icons/Globe.vue | 15 ++ src/components/Icon/icons/Hdd.vue | 16 ++ src/components/Icon/icons/Lock.vue | 10 ++ src/components/Icon/icons/Minus.vue | 9 ++ src/components/Icon/icons/Money.vue | 79 ++++++++++ src/components/Icon/icons/NotVisible.vue | 27 ++++ src/components/Icon/icons/Orcid.vue | 35 ++--- src/components/Icon/icons/Paste.vue | 15 ++ src/components/Icon/icons/Photo.vue | 22 +++ src/components/Icon/icons/Pin.vue | 8 + src/components/Icon/icons/Print.vue | 8 + src/components/Icon/icons/Question.vue | 10 ++ .../Icon/icons/ReinstateReviewer.vue | 27 ++++ src/components/Icon/icons/Sitemap.vue | 8 + src/components/Icon/icons/Star.vue | 10 ++ src/components/Icon/icons/StarTicked.vue | 8 + src/components/Icon/icons/Unlock.vue | 10 ++ src/components/Icon/icons/Upload.vue | 14 ++ .../Icon/icons/UsefulTipsPrimary.vue | 12 ++ src/components/Icon/icons/User.vue | 10 ++ .../InitialsAvatar/InitialsAvatar.mdx | 15 ++ .../InitialsAvatar/InitialsAvatar.stories.js | 48 ++++++ .../InitialsAvatar/InitialsAvatar.vue | 69 +++++++++ src/components/List/List.stories.js | 6 +- src/components/ListPanel/ListPanel.stories.js | 4 +- .../contributors/ContributorsListPanel.vue | 2 +- src/components/ListPanel/doi/DoiListPanel.vue | 4 +- .../SelectSubmissionFileListItem.vue | 2 +- .../SubmissionFilesListItem.vue | 4 +- .../ListPanel/submissions/CatalogListItem.vue | 13 +- .../submissions/CatalogListPanel.vue | 6 +- .../submissions/SubmissionsListItem.vue | 64 ++++---- .../submissions/SubmissionsListPanel.vue | 4 +- .../users/SelectReviewerListItem.vue | 86 ++++++----- .../users/SelectReviewerListPanel.vue | 6 +- src/components/Modal/Modal.stories.js | 4 +- src/components/Modal/Modal.vue | 8 +- .../MultilingualProgress.vue | 10 +- .../Notification/Notification.stories.js | 8 +- src/components/Orderer/Orderer.vue | 13 +- src/components/Panel/Panel.stories.js | 80 +++++----- src/components/Search/Search.vue | 50 ++----- src/components/Steps/Steps.vue | 19 +-- src/components/Tabs/Tabs.stories.js | 2 +- src/components/Tabs/Tabs.vue | 2 +- src/components/Tooltip/Tooltip.stories.js | 7 + src/components/Tooltip/Tooltip.vue | 33 ++++- src/docs/guide/Accessibility.mdx | 4 +- .../UserInvitationManager.vue | 25 ++-- .../AcceptInvitationUserDetailsForms.vue | 3 +- .../PublicationsDownloadReportModal.vue | 2 +- .../UserInvitationDetailsFormStep.vue | 3 +- 110 files changed, 1308 insertions(+), 445 deletions(-) create mode 100644 src/components/Icon/icons/AlignCenter.vue create mode 100644 src/components/Icon/icons/AlignLeft.vue create mode 100644 src/components/Icon/icons/AlignRight.vue create mode 100644 src/components/Icon/icons/ArchivedFile.vue create mode 100644 src/components/Icon/icons/Checkbox.vue create mode 100644 src/components/Icon/icons/CheckboxTicked.vue create mode 100644 src/components/Icon/icons/Comment.vue create mode 100644 src/components/Icon/icons/Declined.vue create mode 100644 src/components/Icon/icons/Desktop.vue create mode 100644 src/components/Icon/icons/Download.vue create mode 100644 src/components/Icon/icons/Error.vue create mode 100644 src/components/Icon/icons/FileCode.vue create mode 100644 src/components/Icon/icons/FilePowerpoint.vue create mode 100644 src/components/Icon/icons/FileText.vue create mode 100644 src/components/Icon/icons/Filter.vue create mode 100644 src/components/Icon/icons/Globe.vue create mode 100644 src/components/Icon/icons/Hdd.vue create mode 100644 src/components/Icon/icons/Lock.vue create mode 100644 src/components/Icon/icons/Minus.vue create mode 100644 src/components/Icon/icons/Money.vue create mode 100644 src/components/Icon/icons/NotVisible.vue create mode 100644 src/components/Icon/icons/Paste.vue create mode 100644 src/components/Icon/icons/Photo.vue create mode 100644 src/components/Icon/icons/Pin.vue create mode 100644 src/components/Icon/icons/Print.vue create mode 100644 src/components/Icon/icons/Question.vue create mode 100644 src/components/Icon/icons/ReinstateReviewer.vue create mode 100644 src/components/Icon/icons/Sitemap.vue create mode 100644 src/components/Icon/icons/Star.vue create mode 100644 src/components/Icon/icons/StarTicked.vue create mode 100644 src/components/Icon/icons/Unlock.vue create mode 100644 src/components/Icon/icons/Upload.vue create mode 100644 src/components/Icon/icons/UsefulTipsPrimary.vue create mode 100644 src/components/Icon/icons/User.vue create mode 100644 src/components/InitialsAvatar/InitialsAvatar.mdx create mode 100644 src/components/InitialsAvatar/InitialsAvatar.stories.js create mode 100644 src/components/InitialsAvatar/InitialsAvatar.vue diff --git a/src/components/Badge/Badge.stories.js b/src/components/Badge/Badge.stories.js index 4cbfd8215..3de2a124e 100644 --- a/src/components/Badge/Badge.stories.js +++ b/src/components/Badge/Badge.stories.js @@ -79,7 +79,7 @@ export const Comments = { }, template: ` - {{args.slot}} + {{args.slot}} `, }), }; diff --git a/src/components/ButtonRow/ButtonRow.stories.js b/src/components/ButtonRow/ButtonRow.stories.js index 404357064..d07ccc9b5 100644 --- a/src/components/ButtonRow/ButtonRow.stories.js +++ b/src/components/ButtonRow/ButtonRow.stories.js @@ -14,7 +14,7 @@ export const Default = { diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue index 87abe7085..62d1e29d0 100644 --- a/src/components/Composer/Composer.vue +++ b/src/components/Composer/Composer.vue @@ -70,7 +70,7 @@ class="-linkButton composer__templates__moreSearchResults" @click="showSearchResultCount = searchResults.length" > - + {{ moreSearchResultsLabel.replace( '{$number}', @@ -241,10 +241,10 @@ /> {{ attachment.name }}