passbolt-styleguide
Version:
Passbolt styleguide contains common styling assets used by the different sites, plugin, etc.
150 lines (147 loc) • 13.2 kB
JavaScript
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) 2022 Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) 2022 Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 3.9.0
*/
import React from "react";
const SsoProviders = [
{
id: "azure",
name: "Microsoft",
icon: (
<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M31.3512 3.04762H3.92261V30.4762H31.3512V3.04762Z" fill="#F25022" />
<path d="M31.3512 33.5238H3.92261V60.9524H31.3512V33.5238Z" fill="#00A4EF" />
<path d="M61.8274 3.04762H34.3988V30.4762H61.8274V3.04762Z" fill="#7FBA00" />
<path d="M61.8274 33.5238H34.3988V60.9524H61.8274V33.5238Z" fill="#FFB900" />
</svg>
),
defaultConfig: {
url: "https://login.microsoftonline.com",
client_id: "",
client_secret: "",
tenant_id: "",
client_secret_expiry: "",
prompt: "login",
email_claim: "email",
login_hint: true,
},
},
{
id: "google",
name: "Google",
icon: (
<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M63.9451 32.72C63.9451 30.6133 63.7584 28.6133 63.4384 26.6667H33.3051V38.6933H50.5584C49.7851 42.64 47.5184 45.9733 44.1584 48.24V56.24H54.4517C60.4784 50.6667 63.9451 42.4533 63.9451 32.72Z"
fill="#4285F4"
/>
<path
d="M33.305 64C41.945 64 49.1717 61.12 54.4517 56.24L44.1583 48.24C41.2783 50.16 37.625 51.3333 33.305 51.3333C24.9583 51.3333 17.8917 45.7067 15.3583 38.1067H4.745V46.3467C9.99833 56.8 20.7983 64 33.305 64Z"
fill="#34A853"
/>
<path
d="M15.3584 38.1067C14.6917 36.1867 14.3451 34.1333 14.3451 32C14.3451 29.8667 14.7184 27.8133 15.3584 25.8933V17.6533H4.74505C2.55838 21.9733 1.30505 26.8267 1.30505 32C1.30505 37.1733 2.55838 42.0267 4.74505 46.3467L15.3584 38.1067Z"
fill="#FBBC05"
/>
<path
d="M33.305 12.6667C38.025 12.6667 42.2383 14.2933 45.5717 17.4667L54.6917 8.34667C49.1717 3.17334 41.945 0 33.305 0C20.7983 0 9.99833 7.20001 4.745 17.6533L15.3583 25.8933C17.8917 18.2933 24.9583 12.6667 33.305 12.6667Z"
fill="#EA4335"
/>
</svg>
),
defaultConfig: {
client_id: "",
client_secret: "",
},
},
{
id: "oauth2",
name: "OpenID",
hiddenIfDisabled: true,
disabledForRecover: true,
icon: (
<svg width="65" height="60" viewBox="0 0 65 60" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M64.2468 34.9929L62.9089 21.0968L57.9256 23.9083C53.2914 21.0968 47.3581 19.1061 40.7332 18.3046V24.4577C44.5336 25.117 47.9462 26.3321 50.7513 27.9544L45.5031 30.9146L64.2533 34.9929H64.2468Z"
fill="#B3B3B3"
/>
<path
d="M9.94184 38.8774C9.94184 32.0069 17.4264 26.2222 27.632 24.4577V18.2981C12.023 20.1854 0.246826 28.6783 0.246826 38.8774C0.246826 49.0766 12.8891 58.1769 29.3319 59.6312V53.5557C18.2666 52.166 9.94184 46.1228 9.94184 38.8774Z"
fill="#B3B3B3"
/>
<path d="M29.332 5.09999V59.6377L39.027 55.0746V0.362366L29.332 5.09999Z" fill="#F8931E" />
</svg>
),
defaultConfig: {
url: "",
openid_configuration_path: "",
scope: "openid email profile",
client_id: "",
client_secret: "",
},
},
{
id: "adfs",
name: "AD FS",
hiddenIfDisabled: true,
disabledForRecover: true,
icon: (
<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M64.5443 48.7454V62.166C64.5443 63.7378 64.0607 64.0602 62.5695 63.8184C52.5746 62.3272 42.4587 60.957 32.3831 59.5464C30.5695 59.3046 29.9247 58.6597 29.9247 56.6849C30.0859 49.5514 30.0053 42.3776 29.9247 35.1635C29.9247 33.5917 30.4083 33.1081 31.9801 33.1081C42.2975 33.1887 52.4536 33.1887 62.5695 33.1887C64.2219 33.1887 64.6249 33.8335 64.6249 35.3247C64.4637 39.8386 64.5443 44.2718 64.5443 48.7454Z"
fill="#00AAF2"
/>
<path
d="M47.416 30.6093C42.3379 30.6093 37.2598 30.5287 32.1817 30.6093C30.6099 30.6093 29.9651 30.2869 29.9651 28.4733C30.0457 21.1786 30.0457 14.0048 29.9651 6.79069C29.9651 5.38011 30.4487 4.89648 31.7787 4.65467C42.1767 3.16349 52.5747 1.7126 62.9726 0.140816C64.7862 -0.100997 64.4638 1.10807 64.4638 2.11563C64.4638 8.56399 64.5444 15.1333 64.4638 21.5816C64.4638 23.9595 64.3832 26.3373 64.4638 28.7151C64.5444 30.2063 63.9802 30.6093 62.5696 30.6093C57.5721 30.5287 52.4941 30.6093 47.416 30.6093Z"
fill="#00AAF2"
/>
<path
d="M13.8038 33.3096H25.1691C26.3782 33.3096 26.9021 33.7126 26.9021 34.962V57.37C26.9021 58.6597 26.3378 58.7806 25.1691 58.6597C17.6326 57.5312 10.096 56.4431 2.59981 55.3952C1.10863 55.1534 0.625 54.6698 0.625 53.098C0.705605 47.1332 0.705605 41.1685 0.625 35.0829C0.625 33.5917 1.02802 33.1887 2.51921 33.1887C6.34792 33.3096 10.0154 33.3096 13.8038 33.3096Z"
fill="#00AAF2"
/>
<path
d="M13.8038 30.6093H2.59977C1.18919 30.6093 0.705566 30.1257 0.705566 28.6345C0.786171 22.7504 0.786171 16.8663 0.705566 10.9418C0.705566 9.53126 1.10859 9.04763 2.59977 8.80582C10.1363 7.83856 17.6728 6.7504 25.169 5.54133C26.902 5.29952 27.0633 5.86375 27.0633 7.27433V28.7151C27.0633 30.2869 26.4184 30.5287 25.0078 30.5287C21.2597 30.5287 17.4713 30.6093 13.8038 30.6093Z"
fill="#00AAF2"
/>
</svg>
),
defaultConfig: {
url: "",
openid_configuration_path: "",
scope: "openid email profile",
client_id: "",
client_secret: "",
},
},
{
id: "pingone",
name: "PingOne",
hiddenIfDisabled: true,
icon: (
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0H64V64H0V0Z" fill="#BB2631" />
<path
d="M30.719 51.2024L31.6177 51.0748V57.6038H30.7179L30.719 51.2024ZM34.43 51.9678V56.1936C34.43 56.9602 34.5576 57.2154 35.2011 57.2154C35.4563 57.2154 35.3287 57.2154 35.5838 57.0878L35.7114 57.6038C35.4562 57.7313 35.3287 57.8589 34.946 57.8589C34.6851 57.8589 34.43 57.7313 34.1748 57.7313C33.7921 57.4762 33.6646 57.0878 33.6646 56.4499V51.9678H32.7647V51.2024H33.537V48.7717H34.43V51.2024H35.839L35.5838 51.9678H34.43ZM36.4837 33.7946C35.7125 33.7946 34.6863 34.3049 33.7933 35.2035V46.5916H29.9547V34.814C29.9547 33.4118 29.8271 32.1304 29.4387 30.9755L32.8946 29.9549C33.283 30.5927 33.4105 31.3593 33.4105 32.0029C34.0484 31.6201 34.4311 31.2317 35.0747 30.849C35.9123 30.4431 36.8287 30.2253 37.7594 30.2112C39.4235 30.2112 40.8325 31.1042 41.3439 32.512C41.6036 33.1499 41.6036 33.7946 41.6036 34.8151V46.5927H37.7594V36.0965C37.7594 34.3049 37.5042 33.7946 36.4837 33.7946ZM47.4901 35.7138C47.4901 34.1761 48.3831 33.2786 49.791 33.2786C51.3287 33.2786 52.0998 34.1773 52.0998 35.7138C52.0998 37.2504 51.2 38.0158 49.6646 38.0158C48.5164 38.0158 47.4901 37.378 47.4901 35.7138ZM51.3275 42.4979H49.2818C48.8991 42.4979 48.644 42.3703 48.644 42.1152C48.644 41.7279 49.1543 41.3441 50.1805 40.8338H50.8184C54.0191 40.8338 56.3211 38.7869 56.3211 35.969C56.3211 34.9427 56.0659 34.0497 55.4281 33.2786C55.6832 33.2786 56.0659 33.4118 56.4486 33.4118C57.4749 33.4118 58.3679 33.0234 59.139 32.258L57.476 29.5676C56.5762 30.4663 55.4281 30.9766 54.4018 30.9766C53.8915 30.9766 53.3767 30.849 52.6101 30.5939C51.5838 30.3387 50.8184 30.2112 49.9197 30.2112C46.0812 30.2112 43.6516 32.3856 43.6516 35.7127C43.6516 38.1434 44.6722 39.5524 46.8523 40.1902C44.417 40.8338 44.1619 41.8544 44.1619 42.8806C44.1619 44.0345 44.5446 44.6723 45.3157 45.0562C45.9536 45.3102 47.1074 45.571 48.8991 45.571H50.5621C52.0998 45.571 53.248 46.0813 53.248 47.4903C53.248 48.1282 52.8652 48.7717 52.3549 49.1556C51.7114 49.5383 50.946 49.6659 49.9197 49.6659C48.128 49.6659 47.1063 49.028 47.1063 47.619C47.1063 47.2363 47.1063 46.9755 47.235 46.5927H43.5229C43.3953 46.8467 43.1345 47.3627 43.1345 48.2557C43.1345 49.4107 43.5217 50.3037 44.4159 51.0748C45.6973 52.4838 47.8717 52.8665 50.0518 52.8665C52.3538 52.8665 54.6558 52.3562 55.9372 50.8197C56.7026 49.9199 57.0911 48.7729 57.0911 47.4914C57.0911 46.0825 56.7038 44.9286 55.8096 44.0345C54.7845 42.8806 53.6341 42.4979 51.3275 42.4979ZM41.9852 57.4762C41.6025 57.4762 41.3416 57.2142 41.3416 56.7051C41.3416 56.3224 41.6036 55.9396 41.9852 55.9396C42.3668 55.9396 42.623 56.1948 42.623 56.7051C42.623 57.0878 42.2403 57.4762 41.9852 57.4762ZM41.9852 55.6845C41.4749 55.6845 41.0865 56.0672 41.0865 56.5775C41.0865 57.0878 41.4738 57.4762 41.9852 57.4762C42.4966 57.4762 42.8782 57.0878 42.8782 56.5764C42.7518 56.1948 42.369 55.6845 41.9852 55.6845ZM41.73 56.5775V56.3224H41.8576C41.9852 56.3224 42.1128 56.3224 42.1128 56.4499C42.1128 56.5775 41.9852 56.5775 41.8576 56.5775H41.73ZM42.3679 56.4499C42.3679 56.1948 42.2415 56.1948 41.9863 56.1948H41.6025V57.2154H41.7312V56.7051H41.8588L42.1139 57.2154H42.2415L41.9863 56.7051C42.2403 56.7051 42.3679 56.7051 42.3679 56.4499ZM41.6025 51.2024L39.5499 57.8589C39.1672 59.1403 38.6569 60.0333 37.6307 60.2885L37.3755 59.6506C37.8858 59.3955 38.2754 59.1403 38.5294 58.4968C38.4018 57.8589 38.4018 57.7313 38.4018 57.7313C38.2742 57.3486 38.0145 56.0672 37.7582 55.4237L36.4825 51.33L37.3755 50.9473L38.5294 55.1685C38.6569 55.8121 38.9121 56.8327 38.9121 56.8327C38.9121 56.8327 39.1672 56.0672 39.2948 55.4237L40.4486 51.2024H41.6025ZM13.4387 55.9385C13.4387 55.9385 13.3112 56.1936 13.056 56.4488C12.6733 56.7039 12.4125 56.8315 11.9022 56.8315C11.3919 56.8315 11.0092 56.5764 10.7483 56.0661C10.5701 55.5297 10.4838 54.9671 10.4932 54.402C10.4932 53.5021 10.6208 52.993 10.8816 52.4827C11.1368 52.0943 11.5195 51.8391 11.9022 51.8391C12.5457 51.8391 13.056 52.0943 13.3112 52.4827L13.4387 55.9385ZM14.3374 48.7706H13.4387V51.9667C13.2651 51.7225 13.0339 51.525 12.7657 51.3915C12.4975 51.258 12.2005 51.1926 11.901 51.2013C11.5198 51.2013 11.1356 51.3288 10.7483 51.584C9.98291 52.2218 9.6002 53.247 9.6002 54.5295C9.6002 56.5764 10.4932 57.8578 11.9022 57.8578C12.5446 57.8585 13.0572 57.6015 13.4399 57.0867C13.4399 57.4739 13.5663 57.7302 13.5663 57.7302H14.4661C14.3374 57.3475 14.3374 56.7039 14.3374 55.6834V48.7706ZM28.2895 51.2013H29.826L29.4376 51.9667H28.1619V56.1925C28.1619 56.9591 28.2895 57.2142 28.9273 57.2142C29.1825 57.2142 29.0549 57.2142 29.31 57.0867L29.4376 57.6026C29.1825 57.7302 29.0549 57.8578 28.6722 57.8578C28.417 57.8578 28.1619 57.7302 27.9067 57.7302C27.5183 57.4751 27.3908 57.0867 27.3908 56.4488V51.9667H26.6253V51.2013H27.3908V48.7706H28.2895V51.2013ZM22.7856 30.7203L26.6242 30.0825V46.5905H22.7856V30.7203ZM22.3984 25.9819C22.3984 24.5729 23.5511 23.4248 24.8325 23.4248C26.1082 23.4248 27.1356 24.5729 27.1356 25.9819C27.1356 27.3909 26.1093 28.6723 24.7049 28.6723C23.4246 28.6723 22.3984 27.5185 22.3984 25.9819ZM25.5979 51.9667C25.7266 52.2218 25.7266 52.4827 25.7266 52.7378V57.6015H24.8336V53.2504C24.8336 52.6125 24.8336 52.3574 24.5785 52.2241C24.4011 52.0653 24.1729 51.9749 23.9349 51.969C23.4246 51.969 22.7868 52.3563 22.2708 52.8677V57.6049H21.3767V52.6125C21.3767 51.7127 21.1215 51.2036 21.1215 51.2036L22.0157 50.9484C22.0157 50.9484 22.2708 51.4587 22.2708 51.969C22.9144 51.3311 23.4246 50.9484 24.0625 50.9484C24.8336 51.076 25.3439 51.4587 25.5991 51.969M16.6394 53.7607C16.6394 52.485 17.1497 51.7138 17.9208 51.7138C18.3035 51.7138 18.8138 51.969 18.9414 52.2241C19.1966 52.7401 19.1965 53.1228 19.3298 53.7607H16.6394ZM18.0484 50.9473C17.4049 50.9473 16.767 51.2035 16.2567 51.8414C15.7407 52.485 15.6132 53.2504 15.6132 54.2767C15.6132 56.4511 16.6394 57.7325 18.176 57.7325C18.9414 57.7325 19.585 57.4773 20.0952 56.9614L19.7125 56.3235C19.3298 56.7062 18.8138 56.9614 18.3036 56.9614C17.6657 56.9614 17.1497 56.7062 16.8946 56.1959C16.6394 55.8132 16.6394 55.4248 16.6394 54.7869V54.6594H20.2228V54.5318C20.2228 52.9941 20.0953 52.3562 19.585 51.8414C19.1977 51.2035 18.6863 50.9484 18.0484 50.9484M7.42578 57.6049H8.31878V48.6453H7.42578V57.6049ZM16.2567 33.7957C15.7407 34.6887 15.2316 34.9438 13.5663 34.9438H11.3919V28.2873H13.949C15.6132 28.2873 16.6394 29.5687 16.6394 31.6213C16.767 32.6419 16.6394 33.2797 16.2567 33.7957ZM18.3036 25.7291C17.1497 25.0912 16.1291 24.7039 12.6733 24.7039H7.42578V46.7215H11.5195V38.6594H13.6939C15.874 38.6594 16.767 38.3985 17.6657 37.8882C19.8412 36.7344 21.1215 34.4324 21.1215 31.4869C21.2491 28.9298 20.2228 26.8829 18.3036 25.7291Z"
fill="white"
/>
</svg>
),
defaultConfig: {
url: "https://auth.pingone.com",
environment_id: "",
client_id: "",
client_secret: "",
email_claim: "email",
},
},
];
export default SsoProviders;