}
+ />
+ } + /> +
-
- xxxxxxxxxx
-
-
- Customize how the edit view will look like.
Set the display field of your entry @@ -1111,29 +1124,29 @@ exports[`EditSettingsView renders and matches the snapshot 1`] = `
svg {
height: 12px;
width: 12px;
}
-.c15 svg > g,
-.c15 svg path {
+.c13 > svg > g,
+.c13 > svg path {
fill: #ffffff;
}
-.c15[aria-disabled='true'] {
+.c13[aria-disabled='true'] {
pointer-events: none;
}
-.c15:after {
+.c13:after {
-webkit-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.2s;
@@ -1894,11 +1961,11 @@ exports[`EditSettingsView should add field 1`] = `
border: 2px solid transparent;
}
-.c15:focus-visible {
+.c13:focus-visible {
outline: none;
}
-.c15:focus-visible:after {
+.c13:focus-visible:after {
border-radius: 8px;
content: '';
position: absolute;
@@ -1909,7 +1976,7 @@ exports[`EditSettingsView should add field 1`] = `
border: 2px solid #4945ff;
}
-.c63 {
+.c62 {
border: 0;
-webkit-clip: rect(0 0 0 0);
clip: rect(0 0 0 0);
@@ -1921,111 +1988,111 @@ exports[`EditSettingsView should add field 1`] = `
width: 1px;
}
-.c16 {
+.c14 {
height: 2rem;
}
-.c16[aria-disabled='true'] {
+.c14[aria-disabled='true'] {
border: 1px solid #dcdce4;
background: #eaeaef;
}
-.c16[aria-disabled='true'] .c11 {
+.c14[aria-disabled='true'] .c9 {
color: #666687;
}
-.c16[aria-disabled='true'] svg > g,.c16[aria-disabled='true'] svg path {
+.c14[aria-disabled='true'] svg > g,.c14[aria-disabled='true'] svg path {
fill: #666687;
}
-.c16[aria-disabled='true']:active {
+.c14[aria-disabled='true']:active {
border: 1px solid #dcdce4;
background: #eaeaef;
}
-.c16[aria-disabled='true']:active .c11 {
+.c14[aria-disabled='true']:active .c9 {
color: #666687;
}
-.c16[aria-disabled='true']:active svg > g,.c16[aria-disabled='true']:active svg path {
+.c14[aria-disabled='true']:active svg > g,.c14[aria-disabled='true']:active svg path {
fill: #666687;
}
-.c16:hover {
+.c14:hover {
border: 1px solid #7b79ff;
background: #7b79ff;
}
-.c16:active {
+.c14:active {
border: 1px solid #4945ff;
background: #4945ff;
}
-.c16 svg > g,
-.c16 svg path {
+.c14 svg > g,
+.c14 svg path {
fill: #ffffff;
}
-.c67 {
+.c66 {
height: 2rem;
border: 1px solid #d9d8ff;
background: #f0f0ff;
}
-.c67[aria-disabled='true'] {
+.c66[aria-disabled='true'] {
border: 1px solid #dcdce4;
background: #eaeaef;
}
-.c67[aria-disabled='true'] .c11 {
+.c66[aria-disabled='true'] .c9 {
color: #666687;
}
-.c67[aria-disabled='true'] svg > g,.c67[aria-disabled='true'] svg path {
+.c66[aria-disabled='true'] svg > g,.c66[aria-disabled='true'] svg path {
fill: #666687;
}
-.c67[aria-disabled='true']:active {
+.c66[aria-disabled='true']:active {
border: 1px solid #dcdce4;
background: #eaeaef;
}
-.c67[aria-disabled='true']:active .c11 {
+.c66[aria-disabled='true']:active .c9 {
color: #666687;
}
-.c67[aria-disabled='true']:active svg > g,.c67[aria-disabled='true']:active svg path {
+.c66[aria-disabled='true']:active svg > g,.c66[aria-disabled='true']:active svg path {
fill: #666687;
}
-.c67:hover {
+.c66:hover {
background-color: #ffffff;
}
-.c67:active {
+.c66:active {
background-color: #ffffff;
border: 1px solid #4945ff;
}
-.c67:active .c11 {
+.c66:active .c9 {
color: #4945ff;
}
-.c67:active svg > g,
-.c67:active svg path {
+.c66:active svg > g,
+.c66:active svg path {
fill: #4945ff;
}
-.c67 .c11 {
+.c66 .c9 {
color: #271fe0;
}
-.c67 svg > g,
-.c67 svg path {
+.c66 svg > g,
+.c66 svg path {
fill: #271fe0;
}
-.c27 {
+.c25 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -2037,12 +2104,7 @@ exports[`EditSettingsView should add field 1`] = `
}
.c28 {
- position: relative;
border: 1px solid #dcdce4;
- padding-right: 12px;
- border-radius: 4px;
- background: #ffffff;
- overflow: hidden;
min-height: 2.5rem;
outline: none;
box-shadow: 0;
@@ -2052,64 +2114,44 @@ exports[`EditSettingsView should add field 1`] = `
transition-duration: 0.2s;
}
+.c28[aria-disabled='true'] {
+ color: #666687;
+}
+
+.c28:focus-visible {
+ outline: none;
+}
+
.c28:focus-within {
border: 1px solid #4945ff;
box-shadow: #4945ff 0px 0px 0px 2px;
}
-.c34 {
- background: transparent;
- border: none;
- position: relative;
- z-index: 1;
+.c33 > svg {
+ width: 0.375rem;
}
-.c34 svg {
- height: 0.6875rem;
- width: 0.6875rem;
-}
-
-.c34 svg path {
+.c33 > svg > path {
fill: #666687;
}
-.c35 {
+.c31 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
- background: none;
- border: none;
+ gap: 4px;
+ -webkit-flex-wrap: wrap;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
}
-.c35 svg {
- width: 0.375rem;
+.c67[data-state='checked'] .c9 {
+ font-weight: bold;
+ color: #4945ff;
}
-.c29 {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- width: 100%;
- background: transparent;
- border: none;
-}
-
-.c29:focus {
- outline: none;
-}
-
-.c29[data-disabled] {
- cursor: not-allowed;
-}
-
-.c30 {
- width: 100%;
-}
-
-.c39 {
+.c37 {
height: 1px;
border: none;
-webkit-flex-shrink: 0;
@@ -2118,37 +2160,37 @@ exports[`EditSettingsView should add field 1`] = `
margin: 0;
}
-.c23 {
+.c21 {
display: grid;
grid-template-columns: repeat(12,1fr);
}
-.c24 {
+.c22 {
grid-column: span 6;
max-width: 100%;
}
-.c49 {
+.c47 {
grid-column: span 6;
max-width: 100%;
}
-.c61 svg > g,
-.c61 svg path {
+.c60 svg > g,
+.c60 svg path {
fill: #8e8ea9;
}
-.c61:hover svg > g,
-.c61:hover svg path {
+.c60:hover svg > g,
+.c60:hover svg path {
fill: #666687;
}
-.c61:active svg > g,
-.c61:active svg path {
+.c60:active svg > g,
+.c60:active svg path {
fill: #a5a5ba;
}
-.c61[aria-disabled='true'] svg path {
+.c60[aria-disabled='true'] svg path {
fill: #666687;
}
@@ -2156,11 +2198,7 @@ exports[`EditSettingsView should add field 1`] = `
outline: none;
}
-.c4 {
- padding-right: 8px;
-}
-
-.c41 {
+.c39 {
background: #4945ff;
padding-top: 8px;
padding-right: 16px;
@@ -2171,20 +2209,20 @@ exports[`EditSettingsView should add field 1`] = `
border: 1px solid #4945ff;
}
-.c7 {
+.c5 {
font-size: 0.875rem;
line-height: 1.43;
color: #4945ff;
}
-.c46 {
+.c44 {
font-size: 0.75rem;
line-height: 1.33;
font-weight: 600;
color: #ffffff;
}
-.c42 {
+.c40 {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
@@ -2199,7 +2237,7 @@ exports[`EditSettingsView should add field 1`] = `
gap: 8px;
}
-.c45 {
+.c43 {
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
@@ -2213,55 +2251,6 @@ exports[`EditSettingsView should add field 1`] = `
flex-direction: row;
}
-.c43 {
- position: relative;
- outline: none;
-}
-
-.c43 svg {
- height: 12px;
- width: 12px;
-}
-
-.c43 svg > g,
-.c43 svg path {
- fill: #ffffff;
-}
-
-.c43[aria-disabled='true'] {
- pointer-events: none;
-}
-
-.c43:after {
- -webkit-transition-property: all;
- transition-property: all;
- -webkit-transition-duration: 0.2s;
- transition-duration: 0.2s;
- border-radius: 8px;
- content: '';
- position: absolute;
- top: -4px;
- bottom: -4px;
- left: -4px;
- right: -4px;
- border: 2px solid transparent;
-}
-
-.c43:focus-visible {
- outline: none;
-}
-
-.c43:focus-visible:after {
- border-radius: 8px;
- content: '';
- position: absolute;
- top: -5px;
- bottom: -5px;
- left: -5px;
- right: -5px;
- border: 2px solid #4945ff;
-}
-
.c3 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
@@ -2273,16 +2262,25 @@ exports[`EditSettingsView should add field 1`] = `
align-items: center;
-webkit-text-decoration: none;
text-decoration: none;
+ gap: 8px;
position: relative;
outline: none;
}
+.c3 svg {
+ font-size: 0.625rem;
+}
+
.c3 svg path {
fill: #4945ff;
}
-.c3 svg {
- font-size: 0.625rem;
+.c3:hover {
+ color: #7b79ff;
+}
+
+.c3:active {
+ color: #271fe0;
}
.c3:after {
@@ -2315,101 +2313,143 @@ exports[`EditSettingsView should add field 1`] = `
border: 2px solid #4945ff;
}
-.c5 {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
+.c41 {
+ position: relative;
+ outline: none;
}
-.c44 {
+.c41 > svg {
+ height: 12px;
+ width: 12px;
+}
+
+.c41 > svg > g,
+.c41 > svg path {
+ fill: #ffffff;
+}
+
+.c41[aria-disabled='true'] {
+ pointer-events: none;
+}
+
+.c41:after {
+ -webkit-transition-property: all;
+ transition-property: all;
+ -webkit-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+ border-radius: 8px;
+ content: '';
+ position: absolute;
+ top: -4px;
+ bottom: -4px;
+ left: -4px;
+ right: -4px;
+ border: 2px solid transparent;
+}
+
+.c41:focus-visible {
+ outline: none;
+}
+
+.c41:focus-visible:after {
+ border-radius: 8px;
+ content: '';
+ position: absolute;
+ top: -5px;
+ bottom: -5px;
+ left: -5px;
+ right: -5px;
+ border: 2px solid #4945ff;
+}
+
+.c42 {
-webkit-text-decoration: none;
text-decoration: none;
border: 1px solid #d9d8ff;
background: #f0f0ff;
}
-.c44[aria-disabled='true'] {
+.c42[aria-disabled='true'] {
border: 1px solid #dcdce4;
background: #eaeaef;
}
-.c44[aria-disabled='true'] .c6 {
+.c42[aria-disabled='true'] .c4 {
color: #666687;
}
-.c44[aria-disabled='true'] svg > g,.c44[aria-disabled='true'] svg path {
+.c42[aria-disabled='true'] svg > g,.c42[aria-disabled='true'] svg path {
fill: #666687;
}
-.c44[aria-disabled='true']:active {
+.c42[aria-disabled='true']:active {
border: 1px solid #dcdce4;
background: #eaeaef;
}
-.c44[aria-disabled='true']:active .c6 {
+.c42[aria-disabled='true']:active .c4 {
color: #666687;
}
-.c44[aria-disabled='true']:active svg > g,.c44[aria-disabled='true']:active svg path {
+.c42[aria-disabled='true']:active svg > g,.c42[aria-disabled='true']:active svg path {
fill: #666687;
}
-.c44:hover {
+.c42:hover {
background-color: #ffffff;
}
-.c44:active {
+.c42:active {
background-color: #ffffff;
border: 1px solid #4945ff;
}
-.c44:active .c6 {
+.c42:active .c4 {
color: #4945ff;
}
-.c44:active svg > g,
-.c44:active svg path {
+.c42:active svg > g,
+.c42:active svg path {
fill: #4945ff;
}
-.c44 .c6 {
+.c42 .c4 {
color: #271fe0;
}
-.c44 svg > g,
-.c44 svg path {
+.c42 svg > g,
+.c42 svg path {
fill: #271fe0;
}
-.c62 {
+.c61 {
background-color: transparent;
}
-.c62 path {
+.c61 path {
fill: #666687;
}
-.c50 {
+.c48 {
position: relative;
padding-right: 4px;
}
-.c64 {
+.c63 {
position: relative;
padding-left: 4px;
}
-.c56 {
+.c54 {
height: 0.75rem;
width: 0.75rem;
}
-.c56 path {
+.c54 path {
fill: #666687;
}
-.c53 {
+.c51 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -2417,31 +2457,31 @@ exports[`EditSettingsView should add field 1`] = `
opacity: 1;
}
-.c55 {
+.c53 {
cursor: all-scroll;
border-right: 1px solid #dcdce4;
}
@media (max-width:68.75rem) {
- .c24 {
+ .c22 {
grid-column: span 12;
}
}
@media (max-width:34.375rem) {
- .c24 {
+ .c22 {
grid-column: span;
}
}
@media (max-width:68.75rem) {
- .c49 {
+ .c47 {
grid-column: span;
}
}
@media (max-width:34.375rem) {
- .c49 {
+ .c47 {
grid-column: span;
}
}
@@ -2469,45 +2509,40 @@ exports[`EditSettingsView should add field 1`] = `
class="c3 active"
href="/"
>
-
+
Customize how the edit view will look like.
Set the display field of your entry @@ -2649,29 +2675,29 @@ exports[`EditSettingsView should add field 1`] = `
API ID : restaurant
diff --git a/packages/core/admin/admin/src/content-manager/pages/EditView/Information/index.js b/packages/core/admin/admin/src/content-manager/pages/EditView/Information/index.js index 52c79842eb..1ff45308ff 100644 --- a/packages/core/admin/admin/src/content-manager/pages/EditView/Information/index.js +++ b/packages/core/admin/admin/src/content-manager/pages/EditView/Information/index.js @@ -1,5 +1,5 @@ import React, { useRef } from 'react'; -import propTypes from 'prop-types'; +import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { useCMEditViewDataManager } from '@strapi/helper-plugin'; import { Box, Divider, Flex, Typography } from '@strapi/design-system'; @@ -8,23 +8,44 @@ import { getTrad } from '../../../utils'; import getUnits from './utils/getUnits'; import { getFullName } from '../../../../utils'; +const Title = () => { + const { formatMessage } = useIntl(); + + return ( +Define the settings of the list view.