From be154b6ddd23fada2e859245776dc3da11d2438e Mon Sep 17 00:00:00 2001 From: soupette Date: Wed, 27 Oct 2021 12:42:09 +0200 Subject: [PATCH] Upgrade DS Signed-off-by: soupette --- .../tests/__snapshots__/index.test.js.snap | 630 +++++++++--------- .../admin/src/pages/HomePage/SocialLinks.js | 5 +- .../src/pages/HomePage/tests/index.test.js | 60 +- packages/core/admin/package.json | 4 +- packages/core/helper-plugin/package.json | 4 +- yarn.lock | 16 +- 6 files changed, 358 insertions(+), 361 deletions(-) diff --git a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap index 73a9098fe0..43bba383e9 100644 --- a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap +++ b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap @@ -15,7 +15,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 padding-bottom: 16px; } -.c63 { +.c64 { padding-top: 24px; padding-bottom: 24px; } @@ -167,7 +167,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 padding-bottom: 24px; } -.c66 { +.c67 { padding-top: 16px; padding-right: 16px; padding-left: 16px; @@ -177,14 +177,14 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 border-color: #c0c0cf; } -.c73 { +.c74 { background: #f6f6f9; border-radius: 4px; border-color: #eaeaef; border: 1px solid #eaeaef; } -.c82 { +.c83 { padding-left: 12px; } @@ -209,7 +209,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 flex-wrap: wrap; } -.c67 { +.c68 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -223,7 +223,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 align-items: center; } -.c74 { +.c75 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -241,7 +241,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 align-items: center; } -.c85 { +.c86 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -255,21 +255,21 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 outline: none; } -.c85 svg { +.c86 svg { height: 12px; width: 12px; } -.c85 svg > g, -.c85 svg path { +.c86 svg > g, +.c86 svg path { fill: #ffffff; } -.c85[aria-disabled='true'] { +.c86[aria-disabled='true'] { pointer-events: none; } -.c85:after { +.c86:after { -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: 0.2s; @@ -284,11 +284,11 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 border: 2px solid transparent; } -.c85:focus-visible { +.c86:focus-visible { outline: none; } -.c85:focus-visible:after { +.c86:focus-visible:after { border-radius: 8px; content: ''; position: absolute; @@ -299,7 +299,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 border: 2px solid #4945ff; } -.c86 { +.c87 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -316,30 +316,30 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 width: 2rem; } -.c86 svg > g, -.c86 svg path { +.c87 svg > g, +.c87 svg path { fill: #8e8ea9; } -.c86:hover svg > g, -.c86:hover svg path { +.c87:hover svg > g, +.c87:hover svg path { fill: #666687; } -.c86:active svg > g, -.c86:active svg path { +.c87:active svg > g, +.c87:active svg path { fill: #a5a5ba; } -.c86[aria-disabled='true'] { +.c87[aria-disabled='true'] { background-color: #eaeaef; } -.c86[aria-disabled='true'] svg path { +.c87[aria-disabled='true'] svg path { fill: #666687; } -.c53 { +.c54 { position: absolute; left: 0; right: 0; @@ -350,45 +350,45 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 border: none; } -.c53:focus { +.c54:focus { outline: none; } -.c53[aria-disabled='true'] { +.c54[aria-disabled='true'] { cursor: not-allowed; } -.c50 { +.c51 { font-weight: 500; font-size: 0.75rem; line-height: 1.33; color: #32324d; } -.c57 { +.c58 { font-weight: 400; font-size: 0.875rem; line-height: 1.43; color: #32324d; } -.c61 { +.c62 { font-weight: 400; font-size: 0.75rem; line-height: 1.33; color: #666687; } -.c56 { +.c57 { padding-right: 16px; padding-left: 16px; } -.c58 { +.c59 { padding-left: 12px; } -.c51 { +.c52 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -402,7 +402,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 align-items: center; } -.c54 { +.c55 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -420,7 +420,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 align-items: center; } -.c49 { +.c50 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -430,16 +430,16 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 flex-direction: column; } -.c49 > * { +.c50 > * { margin-top: 0; margin-bottom: 0; } -.c49 > * + * { +.c50 > * + * { margin-top: 4px; } -.c52 { +.c53 { position: relative; border: 1px solid #dcdce4; padding-right: 12px; @@ -455,28 +455,28 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 transition-duration: 0.2s; } -.c52:focus-within { +.c53:focus-within { border: 1px solid #4945ff; box-shadow: #4945ff 0px 0px 0px 2px; } -.c59 { +.c60 { background: transparent; border: none; position: relative; z-index: 1; } -.c59 svg { +.c60 svg { height: 0.6875rem; width: 0.6875rem; } -.c59 svg path { +.c60 svg path { fill: #666687; } -.c60 { +.c61 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -485,15 +485,15 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 border: none; } -.c60 svg { +.c61 svg { width: 0.375rem; } -.c55 { +.c56 { width: 100%; } -.c70 { +.c71 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -507,12 +507,12 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 align-items: center; } -.c71 > * { +.c72 > * { margin-left: 0; margin-right: 0; } -.c71 > * + * { +.c72 > * + * { margin-left: 12px; } @@ -523,14 +523,14 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 color: #32324d; } -.c80 { +.c81 { font-weight: 400; font-size: 0.875rem; line-height: 1.43; color: #32324d; } -.c81 { +.c82 { font-weight: 600; line-height: 1.14; } @@ -549,7 +549,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 color: #271fe0; } -.c46 { +.c47 { font-weight: 500; font-size: 0.75rem; line-height: 1.33; @@ -568,6 +568,12 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 } .c42 { + background: #f0f0ff; + padding-right: 32px; + padding-left: 32px; +} + +.c46 { background: #fcecea; padding-right: 32px; padding-left: 32px; @@ -670,11 +676,11 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 width: fit-content; } -.c64 { +.c65 { background: #eaeaef; } -.c65 { +.c66 { height: 1px; border: none; margin: 0; @@ -849,17 +855,17 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 outline: none; } -.c47 { +.c48 { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; } -.c48 { +.c49 { grid-column: span 6; } -.c62 { +.c63 { grid-column: span 3; } @@ -867,7 +873,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 gap: 16px; } -.c77 { +.c78 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -879,98 +885,98 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 height: 32px; } -.c77:last-child { +.c78:last-child { padding: 0 12px; } -.c78 { +.c79 { padding: 0 12px; border-right: 1px solid #eaeaef; cursor: all-scroll; } -.c78 svg { +.c79 svg { width: 0.75rem; height: 0.75rem; } -.c75 { +.c76 { max-height: 2rem; cursor: pointer; opacity: 1; } -.c75 svg { +.c76 svg { width: 0.625rem; height: 0.625rem; } -.c75 svg path { +.c76 svg path { fill: #666687; } -.c75:hover { +.c76:hover { background-color: #f0f0ff; border-color: #d9d8ff; } -.c75:hover svg path { +.c76:hover svg path { fill: #4945ff; } -.c75:hover .c79 { +.c76:hover .c80 { color: #4945ff; } -.c75:hover .c76 { +.c76:hover .c77 { border-right: 1px solid #d9d8ff; } -.c72:last-child { +.c73:last-child { padding-right: 12px; } -.c68 { +.c69 { -webkit-flex: 1; -ms-flex: 1; flex: 1; } -.c83 { +.c84 { -webkit-flex: auto; -ms-flex: auto; flex: auto; } -.c69 { +.c70 { overflow-x: scroll; overflow-y: hidden; } -.c84 { +.c85 { max-width: 2rem; } @media (max-width:68.75rem) { - .c48 { + .c49 { grid-column: span 12; } } @media (max-width:34.375rem) { - .c48 { + .c49 { grid-column: span; } } @media (max-width:68.75rem) { - .c62 { + .c63 { grid-column: span 12; } } @media (max-width:34.375rem) { - .c62 { + .c63 { grid-column: span; } } @@ -1240,10 +1246,10 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 >
Entries per page

Note: You can override this value in the Collection Type settings page. @@ -1357,46 +1363,46 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1

Default sort attribute
Default sort order

hey
address
@@ -1758,7 +1764,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 aria-expanded="false" aria-haspopup="true" aria-labelledby="tooltip-1" - class="c85 c86" + class="c86 c87" data-testid="add-field" tabindex="0" type="button" @@ -1789,7 +1795,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 `; exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` -.c87 { +.c88 { border: 0; -webkit-clip: rect(0 0 0 0); clip: rect(0 0 0 0); @@ -1815,7 +1821,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` padding-bottom: 16px; } -.c63 { +.c64 { padding-top: 24px; padding-bottom: 24px; } @@ -1967,7 +1973,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` padding-bottom: 24px; } -.c66 { +.c67 { padding-top: 16px; padding-right: 16px; padding-left: 16px; @@ -1977,14 +1983,14 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` border-color: #c0c0cf; } -.c73 { +.c74 { background: #f6f6f9; border-radius: 4px; border-color: #eaeaef; border: 1px solid #eaeaef; } -.c82 { +.c83 { padding-left: 12px; } @@ -2009,7 +2015,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` flex-wrap: wrap; } -.c67 { +.c68 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2023,7 +2029,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` align-items: center; } -.c74 { +.c75 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2041,26 +2047,26 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` align-items: center; } -.c88 { +.c89 { background: #212134; padding: 8px; border-radius: 4px; } -.c90 { +.c91 { font-weight: 400; font-size: 0.75rem; line-height: 1.33; color: #ffffff; } -.c89 { +.c90 { position: absolute; z-index: 4; display: none; } -.c85 { +.c86 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2074,21 +2080,21 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` outline: none; } -.c85 svg { +.c86 svg { height: 12px; width: 12px; } -.c85 svg > g, -.c85 svg path { +.c86 svg > g, +.c86 svg path { fill: #ffffff; } -.c85[aria-disabled='true'] { +.c86[aria-disabled='true'] { pointer-events: none; } -.c85:after { +.c86:after { -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: 0.2s; @@ -2103,11 +2109,11 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` border: 2px solid transparent; } -.c85:focus-visible { +.c86:focus-visible { outline: none; } -.c85:focus-visible:after { +.c86:focus-visible:after { border-radius: 8px; content: ''; position: absolute; @@ -2118,7 +2124,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` border: 2px solid #4945ff; } -.c86 { +.c87 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2135,30 +2141,30 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` width: 2rem; } -.c86 svg > g, -.c86 svg path { +.c87 svg > g, +.c87 svg path { fill: #8e8ea9; } -.c86:hover svg > g, -.c86:hover svg path { +.c87:hover svg > g, +.c87:hover svg path { fill: #666687; } -.c86:active svg > g, -.c86:active svg path { +.c87:active svg > g, +.c87:active svg path { fill: #a5a5ba; } -.c86[aria-disabled='true'] { +.c87[aria-disabled='true'] { background-color: #eaeaef; } -.c86[aria-disabled='true'] svg path { +.c87[aria-disabled='true'] svg path { fill: #666687; } -.c53 { +.c54 { position: absolute; left: 0; right: 0; @@ -2169,45 +2175,45 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` border: none; } -.c53:focus { +.c54:focus { outline: none; } -.c53[aria-disabled='true'] { +.c54[aria-disabled='true'] { cursor: not-allowed; } -.c50 { +.c51 { font-weight: 500; font-size: 0.75rem; line-height: 1.33; color: #32324d; } -.c57 { +.c58 { font-weight: 400; font-size: 0.875rem; line-height: 1.43; color: #32324d; } -.c61 { +.c62 { font-weight: 400; font-size: 0.75rem; line-height: 1.33; color: #666687; } -.c56 { +.c57 { padding-right: 16px; padding-left: 16px; } -.c58 { +.c59 { padding-left: 12px; } -.c51 { +.c52 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2221,7 +2227,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` align-items: center; } -.c54 { +.c55 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2239,7 +2245,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` align-items: center; } -.c49 { +.c50 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2249,16 +2255,16 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` flex-direction: column; } -.c49 > * { +.c50 > * { margin-top: 0; margin-bottom: 0; } -.c49 > * + * { +.c50 > * + * { margin-top: 4px; } -.c52 { +.c53 { position: relative; border: 1px solid #dcdce4; padding-right: 12px; @@ -2274,28 +2280,28 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` transition-duration: 0.2s; } -.c52:focus-within { +.c53:focus-within { border: 1px solid #4945ff; box-shadow: #4945ff 0px 0px 0px 2px; } -.c59 { +.c60 { background: transparent; border: none; position: relative; z-index: 1; } -.c59 svg { +.c60 svg { height: 0.6875rem; width: 0.6875rem; } -.c59 svg path { +.c60 svg path { fill: #666687; } -.c60 { +.c61 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2304,15 +2310,15 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` border: none; } -.c60 svg { +.c61 svg { width: 0.375rem; } -.c55 { +.c56 { width: 100%; } -.c70 { +.c71 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2326,12 +2332,12 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` align-items: center; } -.c71 > * { +.c72 > * { margin-left: 0; margin-right: 0; } -.c71 > * + * { +.c72 > * + * { margin-left: 12px; } @@ -2342,14 +2348,14 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` color: #32324d; } -.c80 { +.c81 { font-weight: 400; font-size: 0.875rem; line-height: 1.43; color: #32324d; } -.c81 { +.c82 { font-weight: 600; line-height: 1.14; } @@ -2368,7 +2374,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` color: #271fe0; } -.c46 { +.c47 { font-weight: 500; font-size: 0.75rem; line-height: 1.33; @@ -2387,6 +2393,12 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` } .c42 { + background: #f0f0ff; + padding-right: 32px; + padding-left: 32px; +} + +.c46 { background: #fcecea; padding-right: 32px; padding-left: 32px; @@ -2489,11 +2501,11 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` width: fit-content; } -.c64 { +.c65 { background: #eaeaef; } -.c65 { +.c66 { height: 1px; border: none; margin: 0; @@ -2668,17 +2680,17 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` outline: none; } -.c47 { +.c48 { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; } -.c48 { +.c49 { grid-column: span 6; } -.c62 { +.c63 { grid-column: span 3; } @@ -2686,28 +2698,28 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` gap: 16px; } -.c98 { +.c99 { font-weight: 400; font-size: 0.875rem; line-height: 1.43; color: #32324d; } -.c91 { +.c92 { background: #ffffff; padding: 4px; border-radius: 4px; } -.c94 { +.c95 { padding: 4px; } -.c97 { +.c98 { padding: 8px; } -.c95 { +.c96 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2725,7 +2737,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` align-items: center; } -.c92 { +.c93 { box-shadow: 0px 1px 4px rgba(33,33,52,0.1); position: absolute; z-index: 4; @@ -2733,28 +2745,28 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` background: #ffffff; } -.c93 { +.c94 { max-height: 15rem; overflow-y: auto; overflow-x: hidden; } -.c93::-webkit-scrollbar { +.c94::-webkit-scrollbar { -webkit-appearance: none; width: 4px; } -.c93::-webkit-scrollbar-track { +.c94::-webkit-scrollbar-track { background: #ffffff; } -.c93::-webkit-scrollbar-thumb { +.c94::-webkit-scrollbar-thumb { background: #eaeaef; border-radius: 4px; margin-right: 10px; } -.c96 { +.c97 { border: none; padding: 0; background: transparent; @@ -2765,15 +2777,15 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` border-radius: 4px; } -.c96:focus { +.c97:focus { background-color: #f0f0ff; } -.c96:hover { +.c97:hover { background-color: #f0f0ff; } -.c77 { +.c78 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2785,98 +2797,98 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` height: 32px; } -.c77:last-child { +.c78:last-child { padding: 0 12px; } -.c78 { +.c79 { padding: 0 12px; border-right: 1px solid #eaeaef; cursor: all-scroll; } -.c78 svg { +.c79 svg { width: 0.75rem; height: 0.75rem; } -.c75 { +.c76 { max-height: 2rem; cursor: pointer; opacity: 1; } -.c75 svg { +.c76 svg { width: 0.625rem; height: 0.625rem; } -.c75 svg path { +.c76 svg path { fill: #666687; } -.c75:hover { +.c76:hover { background-color: #f0f0ff; border-color: #d9d8ff; } -.c75:hover svg path { +.c76:hover svg path { fill: #4945ff; } -.c75:hover .c79 { +.c76:hover .c80 { color: #4945ff; } -.c75:hover .c76 { +.c76:hover .c77 { border-right: 1px solid #d9d8ff; } -.c72:last-child { +.c73:last-child { padding-right: 12px; } -.c68 { +.c69 { -webkit-flex: 1; -ms-flex: 1; flex: 1; } -.c83 { +.c84 { -webkit-flex: auto; -ms-flex: auto; flex: auto; } -.c69 { +.c70 { overflow-x: scroll; overflow-y: hidden; } -.c84 { +.c85 { max-width: 2rem; } @media (max-width:68.75rem) { - .c48 { + .c49 { grid-column: span 12; } } @media (max-width:34.375rem) { - .c48 { + .c49 { grid-column: span; } } @media (max-width:68.75rem) { - .c62 { + .c63 { grid-column: span 12; } } @media (max-width:34.375rem) { - .c62 { + .c63 { grid-column: span; } } @@ -3146,10 +3158,10 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` >
Entries per page

Note: You can override this value in the Collection Type settings page. @@ -3263,46 +3275,46 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = `

Default sort attribute
Default sort order

michka
hey
address
@@ -3767,7 +3779,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` aria-expanded="true" aria-haspopup="true" aria-labelledby="tooltip-7" - class="c85 c86" + class="c86 c87" data-testid="add-field" tabindex="0" type="button" @@ -3796,7 +3808,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = `