From 4f838ccacf987d40fe6de3528b2909f1d4c63fc6 Mon Sep 17 00:00:00 2001 From: ilkin-overleaf <100852799+ilkin-overleaf@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:13:50 +0300 Subject: [PATCH] Merge pull request #20824 from overleaf/ii-bs5-share-modal [web] BS5 share modal GitOrigin-RevId: 40a33e06eab720b568d31aefa021682535b6934e --- .../components/add-collaborators-upgrade.tsx | 40 ++- .../components/add-collaborators.jsx | 30 +- .../components/edit-member.jsx | 77 +++-- .../share-project-modal/components/invite.jsx | 53 ++-- .../components/link-sharing.jsx | 73 ++--- .../components/owner-info.jsx | 13 +- .../access-levels-changed.tsx | 18 +- .../add-collaborators-upgrade.tsx | 18 +- .../add-collaborators.jsx | 30 +- .../collaborators-limit-upgrade.tsx | 17 +- .../restricted-link-sharing/edit-member.tsx | 84 ++++-- .../editor-over-limit-modal-content.tsx | 35 ++- .../editor-over-limit-modal.tsx | 6 +- .../restricted-link-sharing/invite.jsx | 53 ++-- .../restricted-link-sharing/link-sharing.jsx | 128 +++++---- .../restricted-link-sharing/owner-info.jsx | 22 +- .../select-collaborators.jsx | 265 +++++++++++------- .../send-invites-notice.tsx | 11 +- .../restricted-link-sharing/send-invites.jsx | 6 +- .../share-project-modal-content.tsx | 81 ++++-- .../transfer-ownership-modal.jsx | 82 +++--- .../restricted-link-sharing/view-member.jsx | 22 +- .../view-only-access-modal-content.tsx | 35 ++- .../view-only-access-modal.tsx | 6 +- .../components/select-collaborators.jsx | 125 +++++++-- .../components/send-invites-notice.jsx | 11 +- .../components/send-invites.jsx | 6 +- .../share-project-modal-content.tsx | 83 +++--- .../components/transfer-ownership-modal.jsx | 82 +++--- .../components/view-member.jsx | 13 +- .../ui/components/bootstrap-5/icon-button.tsx | 10 +- .../features/ui/components/ol/ol-button.tsx | 1 + .../js/features/ui/components/ol/ol-col.tsx | 4 +- .../ui/components/types/button-props.ts | 1 + .../shared/components/copy-to-clipboard.tsx | 1 + .../stylesheets/app/editor/share.less | 8 +- .../stylesheets/bootstrap-5/base/base.scss | 6 + .../bootstrap-5/components/all.scss | 1 + .../bootstrap-5/components/button.scss | 2 +- .../bootstrap-5/components/form.scss | 5 + .../components/loading-spinner.scss | 7 + .../stylesheets/bootstrap-5/pages/all.scss | 2 + .../bootstrap-5/pages/editor/share.scss | 188 +++++++++++++ .../bootstrap-5/pages/editor/tags-input.scss | 68 +++++ 44 files changed, 1229 insertions(+), 600 deletions(-) create mode 100644 services/web/frontend/stylesheets/bootstrap-5/components/loading-spinner.scss create mode 100644 services/web/frontend/stylesheets/bootstrap-5/pages/editor/share.scss create mode 100644 services/web/frontend/stylesheets/bootstrap-5/pages/editor/tags-input.scss diff --git a/services/web/frontend/js/features/share-project-modal/components/add-collaborators-upgrade.tsx b/services/web/frontend/js/features/share-project-modal/components/add-collaborators-upgrade.tsx index e2f8ba2d8a..d34f70e4da 100644 --- a/services/web/frontend/js/features/share-project-modal/components/add-collaborators-upgrade.tsx +++ b/services/web/frontend/js/features/share-project-modal/components/add-collaborators-upgrade.tsx @@ -1,11 +1,13 @@ import { useState } from 'react' import { useTranslation } from 'react-i18next' -import { Button } from 'react-bootstrap' import { useUserContext } from '../../../shared/context/user-context' import { upgradePlan } from '../../../main/account-upgrade' import StartFreeTrialButton from '../../../shared/components/start-free-trial-button' import Icon from '../../../shared/components/icon' import { useFeatureFlag } from '../../../shared/context/split-test-context' +import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher' +import MaterialIcon from '@/shared/components/material-icon' +import OLButton from '@/features/ui/components/ol/ol-button' export default function AddCollaboratorsUpgrade() { const { t } = useTranslation() @@ -21,34 +23,52 @@ export default function AddCollaboratorsUpgrade() {