@akemona-org/strapi-plugin-content-manager 3.13.2 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/components/AddDropdown/components.js +3 -4
- package/admin/src/components/Block/components.js +2 -2
- package/admin/src/components/Block/index.js +15 -13
- package/admin/src/components/Container/index.js +1 -1
- package/admin/src/components/CustomInputCheckbox/components.js +8 -8
- package/admin/src/components/CustomTable/ActionCollapse/Delete.js +1 -1
- package/admin/src/components/CustomTable/ActionCollapse/DeleteAll.js +1 -1
- package/admin/src/components/CustomTable/Row/ActionContainer.js +1 -2
- package/admin/src/components/CustomTable/styledComponents.js +3 -3
- package/admin/src/components/DraggedField/GrabWrapper.js +2 -2
- package/admin/src/components/DraggedField/RemoveWrapper.js +2 -2
- package/admin/src/components/DraggedField/SubWrapper.js +0 -2
- package/admin/src/components/DraggedFieldWithPreview/Carret.js +1 -1
- package/admin/src/components/DraggedFieldWithPreview/DynamicZoneWrapper.js +1 -1
- package/admin/src/components/DraggedFieldWithPreview/Tooltip.js +1 -1
- package/admin/src/components/DynamicComponentCard/Wrapper.js +2 -2
- package/admin/src/components/DynamicZone/Button.js +2 -2
- package/admin/src/components/DynamicZone/Component/RoundCTA.js +3 -3
- package/admin/src/components/DynamicZone/ComponentWrapper.js +1 -1
- package/admin/src/components/DynamicZone/Label.js +2 -2
- package/admin/src/components/DynamicZone/Picker/Category/Banner/Wrapper.js +1 -1
- package/admin/src/components/DynamicZone/Picker/Wrapper.js +1 -1
- package/admin/src/components/DynamicZone/utils/connect.js +1 -1
- package/admin/src/components/FieldComponent/EmptyComponent.js +1 -1
- package/admin/src/components/FieldComponent/ResetComponent.js +2 -2
- package/admin/src/components/FieldComponent/utils/connect.js +1 -1
- package/admin/src/components/FilterOptionsCTA/index.js +1 -1
- package/admin/src/components/FilterPicker/components.js +2 -2
- package/admin/src/components/FilterPickerOption/components.js +4 -4
- package/admin/src/components/FormTitle/index.js +8 -4
- package/admin/src/components/FormWrapper/index.js +2 -2
- package/admin/src/components/InputUID/Options/index.js +13 -11
- package/admin/src/components/Inputs/utils/connect.js +1 -1
- package/admin/src/components/MediaPreviewList/StyledMediaPreviewList.js +2 -2
- package/admin/src/components/PlusButton/index.js +4 -4
- package/admin/src/components/PreviewCarret/components.js +0 -2
- package/admin/src/components/PreviewCarret/index.js +5 -3
- package/admin/src/components/PreviewWysiwyg/Wrapper.js +6 -7
- package/admin/src/components/RepeatableComponent/AddFieldButton.js +4 -7
- package/admin/src/components/RepeatableComponent/BannerWrapper.js +0 -5
- package/admin/src/components/RepeatableComponent/DraggedItem/utils/connect.js +1 -1
- package/admin/src/components/RepeatableComponent/EmptyComponent.js +1 -1
- package/admin/src/components/RepeatableComponent/FormWrapper.js +1 -4
- package/admin/src/components/RepeatableComponent/utils/connect.js +1 -1
- package/admin/src/components/SelectMany/components.js +14 -14
- package/admin/src/components/SelectWrapper/IndicatorSeparator.js +1 -1
- package/admin/src/components/SelectWrapper/utils/connect.js +1 -1
- package/admin/src/components/SettingFormWrapper/index.js +1 -1
- package/admin/src/components/Truncate/index.js +1 -0
- package/admin/src/components/Wysiwyg/EditorWrapper.js +3 -7
- package/admin/src/components/Wysiwyg/PreviewControlWrapper.js +2 -1
- package/admin/src/components/Wysiwyg/SelectWrapper.js +1 -1
- package/admin/src/components/Wysiwyg/ToggleModeWrapper.js +1 -1
- package/admin/src/components/Wysiwyg/previewControl.js +8 -6
- package/admin/src/components/WysiwygBottomControls/components.js +1 -1
- package/admin/src/components/WysiwygDropUpload/Label.js +2 -5
- package/admin/src/components/WysiwygInlineControls/StyledButton.js +5 -5
- package/admin/src/components/WysiwygInlineControls/Wrapper.js +1 -1
- package/admin/src/components/WysiwygWithErrors/Wrapper.js +1 -1
- package/admin/src/containers/EditView/DeleteLink/utils/connect.js +1 -1
- package/admin/src/containers/EditView/Header/utils/connect.js +1 -1
- package/admin/src/containers/EditView/components.js +3 -3
- package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +6 -6
- package/admin/src/containers/ListSettingsView/DragWrapper.js +1 -2
- package/admin/src/containers/ListSettingsView/MenuDropdown.js +2 -3
- package/admin/src/containers/ListSettingsView/Toggle.js +2 -3
- package/admin/src/containers/ListView/FieldPicker/ConfigureLink/StyledLink.js +0 -1
- package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +1 -1
- package/admin/src/containers/ListView/components.js +6 -6
- package/admin/src/containers/ListView/index.js +129 -131
- package/package.json +5 -5
|
@@ -6,11 +6,11 @@ const Wrapper = styled.div`
|
|
|
6
6
|
max-height: 555px;
|
|
7
7
|
min-height: 294px;
|
|
8
8
|
overflow: auto;
|
|
9
|
-
padding: 20px 20px 0
|
|
9
|
+
padding: 20px 20px 0;
|
|
10
10
|
font-size: 16px;
|
|
11
11
|
background-color: #fff;
|
|
12
12
|
line-height: 24px !important;
|
|
13
|
-
font-family:
|
|
13
|
+
font-family: Lato;
|
|
14
14
|
cursor: text;
|
|
15
15
|
|
|
16
16
|
h1,
|
|
@@ -19,9 +19,8 @@ const Wrapper = styled.div`
|
|
|
19
19
|
h4,
|
|
20
20
|
h5,
|
|
21
21
|
h6 {
|
|
22
|
-
margin-block
|
|
23
|
-
|
|
24
|
-
font-family: 'Lato';
|
|
22
|
+
margin-block: 10px 10px;
|
|
23
|
+
font-family: Lato;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
h1 {
|
|
@@ -61,7 +60,7 @@ const Wrapper = styled.div`
|
|
|
61
60
|
table {
|
|
62
61
|
font-size: 13px;
|
|
63
62
|
thead {
|
|
64
|
-
background: rgb(243
|
|
63
|
+
background: rgb(243 243 243);
|
|
65
64
|
tr {
|
|
66
65
|
height: 43px;
|
|
67
66
|
}
|
|
@@ -87,7 +86,7 @@ const Wrapper = styled.div`
|
|
|
87
86
|
pre,
|
|
88
87
|
code {
|
|
89
88
|
font-size: 13px;
|
|
90
|
-
font-family:
|
|
89
|
+
font-family: Lato;
|
|
91
90
|
border-radius: 3px;
|
|
92
91
|
background-color: #002b36;
|
|
93
92
|
}
|
|
@@ -5,13 +5,12 @@ const Button = styled.button`
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
height: 37px;
|
|
7
7
|
margin-bottom: 25px;
|
|
8
|
-
padding: 0 0 3px
|
|
8
|
+
padding: 0 0 3px;
|
|
9
9
|
text-align: center;
|
|
10
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid rgb(227 233 243 / 75%);
|
|
11
11
|
border-top: 1px solid
|
|
12
12
|
${({ doesPreviousFieldContainErrorsAndIsClosed }) =>
|
|
13
13
|
doesPreviousFieldContainErrorsAndIsClosed ? '#FFA784' : 'rgba(227, 233, 243, 0.75)'};
|
|
14
|
-
|
|
15
14
|
border-bottom-left-radius: 2px;
|
|
16
15
|
border-bottom-right-radius: 2px;
|
|
17
16
|
${({ withBorderRadius }) => {
|
|
@@ -20,10 +19,9 @@ const Button = styled.button`
|
|
|
20
19
|
border-radius: 2px;
|
|
21
20
|
`;
|
|
22
21
|
}
|
|
23
|
-
|
|
22
|
+
// eslint-disable-next-line newline-before-return
|
|
24
23
|
return '';
|
|
25
24
|
}}
|
|
26
|
-
|
|
27
25
|
${({ hasMinError }) => {
|
|
28
26
|
if (hasMinError) {
|
|
29
27
|
return `
|
|
@@ -31,10 +29,9 @@ const Button = styled.button`
|
|
|
31
29
|
border-top-color: rgba(227, 233, 243, 0.75);
|
|
32
30
|
`;
|
|
33
31
|
}
|
|
34
|
-
|
|
32
|
+
// eslint-disable-next-line newline-before-return
|
|
35
33
|
return '';
|
|
36
34
|
}}
|
|
37
|
-
|
|
38
35
|
color: ${({ disabled }) => (disabled ? '#9EA7B8' : ' #007eff')};
|
|
39
36
|
font-size: 12px;
|
|
40
37
|
font-weight: 700;
|
|
@@ -17,7 +17,6 @@ const BannerWrapper = styled.button`
|
|
|
17
17
|
return 'rgba(227, 233, 243, 0.75)';
|
|
18
18
|
}
|
|
19
19
|
}};
|
|
20
|
-
|
|
21
20
|
${({ doesPreviousFieldContainErrorsAndIsOpen }) => {
|
|
22
21
|
if (doesPreviousFieldContainErrorsAndIsOpen) {
|
|
23
22
|
return `
|
|
@@ -25,7 +24,6 @@ const BannerWrapper = styled.button`
|
|
|
25
24
|
`;
|
|
26
25
|
}
|
|
27
26
|
}}
|
|
28
|
-
|
|
29
27
|
${({ isFirst }) => {
|
|
30
28
|
if (isFirst) {
|
|
31
29
|
return `
|
|
@@ -34,7 +32,6 @@ const BannerWrapper = styled.button`
|
|
|
34
32
|
`;
|
|
35
33
|
}
|
|
36
34
|
}}
|
|
37
|
-
|
|
38
35
|
${({ hasMinError, isFirst }) => {
|
|
39
36
|
if (hasMinError) {
|
|
40
37
|
return `
|
|
@@ -44,12 +41,10 @@ const BannerWrapper = styled.button`
|
|
|
44
41
|
`;
|
|
45
42
|
}
|
|
46
43
|
}}
|
|
47
|
-
|
|
48
44
|
border-bottom: 0;
|
|
49
45
|
font-size: 13px;
|
|
50
46
|
font-weight: 500;
|
|
51
47
|
cursor: pointer;
|
|
52
|
-
|
|
53
48
|
background-color: ${({ hasErrors, isOpen, isReadOnly }) => {
|
|
54
49
|
if (isReadOnly) {
|
|
55
50
|
return '#fafafb';
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
/* eslint-disable indent */
|
|
4
4
|
const EmptyComponent = styled.div`
|
|
5
5
|
height: 71px;
|
|
6
|
-
border: 1px solid
|
|
6
|
+
border: 1px solid rgb(227 233 243 / 75%);
|
|
7
7
|
border-top-left-radius: 2px;
|
|
8
8
|
border-top-right-radius: 2px;
|
|
9
9
|
border-bottom: 0;
|
|
@@ -3,10 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
/* eslint-disable indent */
|
|
4
4
|
|
|
5
5
|
const FormWrapper = styled.div`
|
|
6
|
-
padding
|
|
7
|
-
padding-left: 20px;
|
|
8
|
-
padding-right: 20px;
|
|
9
|
-
padding-bottom: 10px;
|
|
6
|
+
padding: 24px 20px 10px;
|
|
10
7
|
border-top: 1px solid
|
|
11
8
|
${({ hasErrors, isOpen, isReadOnly }) => {
|
|
12
9
|
if (hasErrors) {
|
|
@@ -4,7 +4,7 @@ const ListWrapper = styled.div`
|
|
|
4
4
|
max-height: 116px;
|
|
5
5
|
|
|
6
6
|
> ul {
|
|
7
|
-
margin: 0 -20px
|
|
7
|
+
margin: 0 -20px;
|
|
8
8
|
padding: 0 20px !important;
|
|
9
9
|
list-style: none !important;
|
|
10
10
|
overflow: auto;
|
|
@@ -16,9 +16,9 @@ const ListShadow = styled.div`
|
|
|
16
16
|
position: relative;
|
|
17
17
|
display: inline-block;
|
|
18
18
|
width: 100%;
|
|
19
|
-
height:
|
|
19
|
+
height: 0;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
&::after {
|
|
22
22
|
position: absolute;
|
|
23
23
|
top: -15px;
|
|
24
24
|
left: -5px;
|
|
@@ -27,20 +27,19 @@ const ListShadow = styled.div`
|
|
|
27
27
|
width: calc(100% + 10px);
|
|
28
28
|
height: 1px;
|
|
29
29
|
margin-bottom: -25px;
|
|
30
|
-
box-shadow:
|
|
30
|
+
box-shadow: 0 -2px 4px 0 rgb(227 233 243 / 50%);
|
|
31
31
|
}
|
|
32
32
|
`;
|
|
33
33
|
|
|
34
34
|
const Li = styled.li`
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-wrap: nowrap;
|
|
37
|
-
|
|
38
|
-
justify-content: space-between;
|
|
37
|
+
place-content: center space-between;
|
|
39
38
|
height: 18px;
|
|
40
39
|
margin-top: 9px;
|
|
41
40
|
line-height: 1;
|
|
42
41
|
&:last-of-type {
|
|
43
|
-
margin-bottom:
|
|
42
|
+
margin-bottom: 0;
|
|
44
43
|
}
|
|
45
44
|
&:active {
|
|
46
45
|
.dragHandle {
|
|
@@ -61,13 +60,13 @@ const Li = styled.li`
|
|
|
61
60
|
display: inline-block;
|
|
62
61
|
width: 6px;
|
|
63
62
|
height: 1px;
|
|
64
|
-
padding:
|
|
63
|
+
padding: 0 !important;
|
|
65
64
|
background: #b3b5b9;
|
|
66
65
|
overflow: visible !important;
|
|
67
66
|
transition: background 0.25s ease-out;
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
&::before,
|
|
69
|
+
&::after {
|
|
71
70
|
content: '';
|
|
72
71
|
display: inline-block;
|
|
73
72
|
width: 6px;
|
|
@@ -75,13 +74,13 @@ const Li = styled.li`
|
|
|
75
74
|
background: inherit;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
|
|
77
|
+
&::before {
|
|
79
78
|
position: absolute;
|
|
80
79
|
top: -2px;
|
|
81
80
|
left: 0;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
|
|
83
|
+
&::after {
|
|
85
84
|
position: absolute;
|
|
86
85
|
bottom: -2px;
|
|
87
86
|
left: 0;
|
|
@@ -94,7 +93,7 @@ const Li = styled.li`
|
|
|
94
93
|
> a {
|
|
95
94
|
flex-grow: 2;
|
|
96
95
|
max-width: 100%;
|
|
97
|
-
color: rgb(35
|
|
96
|
+
color: rgb(35 56 77);
|
|
98
97
|
}
|
|
99
98
|
> a:hover {
|
|
100
99
|
text-decoration: none;
|
|
@@ -114,6 +113,7 @@ const Li = styled.li`
|
|
|
114
113
|
> a {
|
|
115
114
|
color: #007eff;
|
|
116
115
|
}
|
|
116
|
+
|
|
117
117
|
color: #007eff;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -127,7 +127,7 @@ const Li = styled.li`
|
|
|
127
127
|
&:last-of-type {
|
|
128
128
|
display: inline-block;
|
|
129
129
|
height: 100%;
|
|
130
|
-
padding-right:
|
|
130
|
+
padding-right: 0;
|
|
131
131
|
line-height: 18px;
|
|
132
132
|
text-align: right;
|
|
133
133
|
white-space: nowrap;
|
|
@@ -5,11 +5,7 @@ const EditorWrapper = styled.div`
|
|
|
5
5
|
if (isFullscreen) {
|
|
6
6
|
return css`
|
|
7
7
|
position: fixed;
|
|
8
|
-
|
|
9
|
-
top: calc(6rem + 90px);
|
|
10
|
-
left: calc(24rem + 28px);
|
|
11
|
-
right: 28px;
|
|
12
|
-
bottom: 32px;
|
|
8
|
+
inset: calc(6rem + 90px) 28px 32px calc(24rem + 28px);
|
|
13
9
|
display: flex;
|
|
14
10
|
background-color: transparent;
|
|
15
11
|
z-index: 99999;
|
|
@@ -58,7 +54,7 @@ const EditorWrapper = styled.div`
|
|
|
58
54
|
border-radius: 0.25rem;
|
|
59
55
|
line-height: 18px !important;
|
|
60
56
|
font-size: 13px;
|
|
61
|
-
box-shadow:
|
|
57
|
+
box-shadow: 0 1px 1px rgb(104 118 142 / 5%);
|
|
62
58
|
background-color: #fff;
|
|
63
59
|
position: relative;
|
|
64
60
|
}
|
|
@@ -70,7 +66,7 @@ const EditorWrapper = styled.div`
|
|
|
70
66
|
.editor {
|
|
71
67
|
min-height: 294px;
|
|
72
68
|
max-height: 555px;
|
|
73
|
-
padding: 20px 20px 0
|
|
69
|
+
padding: 20px 20px 0;
|
|
74
70
|
font-size: 13px;
|
|
75
71
|
background-color: #fff;
|
|
76
72
|
line-height: 18px !important;
|
|
@@ -10,12 +10,14 @@ import { FormattedMessage } from 'react-intl';
|
|
|
10
10
|
import PreviewControlWrapper from './PreviewControlWrapper';
|
|
11
11
|
|
|
12
12
|
function PreviewControl({ onClick }) {
|
|
13
|
-
return
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
return (
|
|
14
|
+
<PreviewControlWrapper onClick={onClick}>
|
|
15
|
+
<div />
|
|
16
|
+
<div className="wysiwygCollapse">
|
|
17
|
+
<FormattedMessage id="components.Wysiwyg.collapse" />
|
|
18
|
+
</div>
|
|
19
|
+
</PreviewControlWrapper>
|
|
20
|
+
);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
PreviewControl.defaultProps = {
|
|
@@ -2,11 +2,8 @@ import styled from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
const Label = styled.label`
|
|
4
4
|
position: absolute;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
left: 0;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
background-color: rgba(28, 93, 231, 0.01);
|
|
5
|
+
inset: 0;
|
|
6
|
+
background-color: rgb(28 93 231 / 1%);
|
|
10
7
|
|
|
11
8
|
> input {
|
|
12
9
|
display: none;
|
|
@@ -5,8 +5,8 @@ const Button = styled.button`
|
|
|
5
5
|
display: flex;
|
|
6
6
|
height: 32px;
|
|
7
7
|
min-width: 32px;
|
|
8
|
-
background-color: #
|
|
9
|
-
border: 1px solid
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border: 1px solid rgb(16 22 34 / 10%);
|
|
10
10
|
font-size: 13px;
|
|
11
11
|
font-weight: 500;
|
|
12
12
|
line-height: 32px;
|
|
@@ -25,10 +25,10 @@ const Button = styled.button`
|
|
|
25
25
|
if (active) {
|
|
26
26
|
return css`
|
|
27
27
|
border: 0;
|
|
28
|
-
background:
|
|
28
|
+
background: rgb(16 22 34 / 0%);
|
|
29
29
|
box-shadow:
|
|
30
|
-
inset 0 -1px 0 0
|
|
31
|
-
inset 0 1px 0 0
|
|
30
|
+
inset 0 -1px 0 0 rgb(16 22 34 / 4%),
|
|
31
|
+
inset 0 1px 0 0 rgb(16 22 34 / 4%);
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -2,7 +2,7 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { Flex, Text } from '@buffetjs/core';
|
|
3
3
|
|
|
4
4
|
const SubWrapper = styled.div`
|
|
5
|
-
background: #
|
|
5
|
+
background: #fff;
|
|
6
6
|
border-radius: 2px;
|
|
7
7
|
box-shadow: 0 2px 4px #e3e9f3;
|
|
8
8
|
`;
|
|
@@ -12,11 +12,12 @@ const MainWrapper = styled(SubWrapper)`
|
|
|
12
12
|
margin-right: 0;
|
|
13
13
|
margin-left: 0;
|
|
14
14
|
}
|
|
15
|
+
|
|
15
16
|
padding: 22px 10px;
|
|
16
17
|
`;
|
|
17
18
|
|
|
18
19
|
const LinkWrapper = styled(SubWrapper)`
|
|
19
|
-
background: #
|
|
20
|
+
background: #fff;
|
|
20
21
|
border-radius: 2px;
|
|
21
22
|
box-shadow: 0 2px 4px #e3e9f3;
|
|
22
23
|
ul {
|
|
@@ -50,7 +51,6 @@ const StatusWrapper = styled.div`
|
|
|
50
51
|
display: flex;
|
|
51
52
|
align-items: center;
|
|
52
53
|
border-radius: 2px;
|
|
53
|
-
|
|
54
54
|
height: 36px;
|
|
55
55
|
padding: 0 15px;
|
|
56
56
|
${({ theme, isGreen }) =>
|
|
@@ -13,11 +13,11 @@ import moment from 'moment';
|
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
15
15
|
|
|
16
|
-
yup.addMethod(yup.mixed, 'defined', function() {
|
|
16
|
+
yup.addMethod(yup.mixed, 'defined', function () {
|
|
17
17
|
return this.test('defined', errorsTrads.required, (value) => value !== undefined);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
yup.addMethod(yup.array, 'notEmptyMin', function(min) {
|
|
20
|
+
yup.addMethod(yup.array, 'notEmptyMin', function (min) {
|
|
21
21
|
return this.test('notEmptyMin', errorsTrads.min, (value) => {
|
|
22
22
|
if (isEmpty(value)) {
|
|
23
23
|
return true;
|
|
@@ -27,8 +27,8 @@ yup.addMethod(yup.array, 'notEmptyMin', function(min) {
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
yup.addMethod(yup.string, 'isInferior', function(message, max) {
|
|
31
|
-
return this.test('isInferior', message, function(value) {
|
|
30
|
+
yup.addMethod(yup.string, 'isInferior', function (message, max) {
|
|
31
|
+
return this.test('isInferior', message, function (value) {
|
|
32
32
|
if (!value) {
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
@@ -41,8 +41,8 @@ yup.addMethod(yup.string, 'isInferior', function(message, max) {
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
yup.addMethod(yup.string, 'isSuperior', function(message, min) {
|
|
45
|
-
return this.test('isSuperior', message, function(value) {
|
|
44
|
+
yup.addMethod(yup.string, 'isSuperior', function (message, min) {
|
|
45
|
+
return this.test('isSuperior', message, function (value) {
|
|
46
46
|
if (!value) {
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
@@ -11,9 +11,8 @@ const MenuDropdown = styled(DropdownMenu)`
|
|
|
11
11
|
border-top-right-radius: 0;
|
|
12
12
|
border-color: #e3e9f3 !important;
|
|
13
13
|
border-top-color: #aed4fb !important;
|
|
14
|
-
box-shadow: 0 2px 3px
|
|
15
|
-
transform: translate3d(-199px, 30px,
|
|
16
|
-
|
|
14
|
+
box-shadow: 0 2px 3px rgb(227 233 245 / 50%);
|
|
15
|
+
transform: translate3d(-199px, 30px, 0) !important;
|
|
17
16
|
overflow: scroll;
|
|
18
17
|
|
|
19
18
|
button {
|
|
@@ -26,14 +26,13 @@ const Toggle = styled(DropdownToggle)`
|
|
|
26
26
|
|
|
27
27
|
&:disabled {
|
|
28
28
|
cursor: not-allowed !important;
|
|
29
|
-
|
|
30
29
|
background: #fafafb;
|
|
31
30
|
border: 1px solid #e3e9f3;
|
|
32
31
|
border-radius: 2px;
|
|
33
32
|
color: #b3b5b9;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
&::before {
|
|
37
36
|
${beforeStyle}
|
|
38
37
|
}
|
|
39
38
|
|
|
@@ -42,7 +41,7 @@ const Toggle = styled(DropdownToggle)`
|
|
|
42
41
|
:focus {
|
|
43
42
|
${openedStyle}
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
&::before {
|
|
46
45
|
${beforeStyle}
|
|
47
46
|
}
|
|
48
47
|
}
|
|
@@ -5,7 +5,7 @@ import { Text } from '@buffetjs/core';
|
|
|
5
5
|
|
|
6
6
|
const Wrapper = styled((props) => <Text as="ul" fontSize="md" {...props} />)`
|
|
7
7
|
margin-bottom: 0;
|
|
8
|
-
padding: 9px 0 0
|
|
8
|
+
padding: 9px 0 0;
|
|
9
9
|
min-width: 228px;
|
|
10
10
|
list-style-type: none;
|
|
11
11
|
background-color: ${({ theme }) => theme.main.colors.white};
|
|
@@ -20,7 +20,7 @@ const AddFilterCta = styled(Button)`
|
|
|
20
20
|
margin-right: 10px;
|
|
21
21
|
padding: 0 10px;
|
|
22
22
|
text-align: center;
|
|
23
|
-
background-color: #
|
|
23
|
+
background-color: #fff;
|
|
24
24
|
border: 1px solid #e3e9f3;
|
|
25
25
|
border-radius: 2px;
|
|
26
26
|
line-height: 28px;
|
|
@@ -44,7 +44,7 @@ const AddFilterCta = styled(Button)`
|
|
|
44
44
|
const Img = styled.img`
|
|
45
45
|
height: 7px;
|
|
46
46
|
margin: auto;
|
|
47
|
-
margin-right:
|
|
47
|
+
margin-right: 0;
|
|
48
48
|
font-size: 12px;
|
|
49
49
|
`;
|
|
50
50
|
|
|
@@ -72,8 +72,8 @@ const FilterWrapper = styled.div`
|
|
|
72
72
|
margin-bottom: 6px;
|
|
73
73
|
margin-right: 10px;
|
|
74
74
|
padding: 0 10px;
|
|
75
|
-
background:
|
|
76
|
-
border: 1px solid
|
|
75
|
+
background: rgb(0 126 255 / 8%);
|
|
76
|
+
border: 1px solid rgb(0 126 255 / 24%);
|
|
77
77
|
border-radius: 2px;
|
|
78
78
|
line-height: 28px;
|
|
79
79
|
color: #007eff;
|
|
@@ -100,7 +100,7 @@ const Separator = styled.span`
|
|
|
100
100
|
margin-left: 10px;
|
|
101
101
|
margin-right: 10px;
|
|
102
102
|
line-height: 30px;
|
|
103
|
-
|
|
103
|
+
&::after {
|
|
104
104
|
content: '';
|
|
105
105
|
height: 15px;
|
|
106
106
|
border-left: 1px solid #007eff;
|
|
@@ -113,7 +113,7 @@ const Remove = styled.span`
|
|
|
113
113
|
cursor: pointer;
|
|
114
114
|
vertical-align: middle;
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
&::after {
|
|
117
117
|
display: inline-block;
|
|
118
118
|
content: '';
|
|
119
119
|
width: 8px;
|