@akemona-org/strapi-plugin-content-manager 3.13.2 → 3.14.1

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.
Files changed (71) hide show
  1. package/admin/src/components/AddDropdown/components.js +3 -4
  2. package/admin/src/components/Block/components.js +2 -2
  3. package/admin/src/components/Block/index.js +15 -13
  4. package/admin/src/components/Container/index.js +1 -1
  5. package/admin/src/components/CustomInputCheckbox/components.js +8 -8
  6. package/admin/src/components/CustomTable/ActionCollapse/Delete.js +1 -1
  7. package/admin/src/components/CustomTable/ActionCollapse/DeleteAll.js +1 -1
  8. package/admin/src/components/CustomTable/Row/ActionContainer.js +1 -2
  9. package/admin/src/components/CustomTable/styledComponents.js +3 -3
  10. package/admin/src/components/DraggedField/GrabWrapper.js +2 -2
  11. package/admin/src/components/DraggedField/RemoveWrapper.js +2 -2
  12. package/admin/src/components/DraggedField/SubWrapper.js +0 -2
  13. package/admin/src/components/DraggedFieldWithPreview/Carret.js +1 -1
  14. package/admin/src/components/DraggedFieldWithPreview/DynamicZoneWrapper.js +1 -1
  15. package/admin/src/components/DraggedFieldWithPreview/Tooltip.js +1 -1
  16. package/admin/src/components/DynamicComponentCard/Wrapper.js +2 -2
  17. package/admin/src/components/DynamicZone/Button.js +2 -2
  18. package/admin/src/components/DynamicZone/Component/RoundCTA.js +3 -3
  19. package/admin/src/components/DynamicZone/ComponentWrapper.js +1 -1
  20. package/admin/src/components/DynamicZone/Label.js +2 -2
  21. package/admin/src/components/DynamicZone/Picker/Category/Banner/Wrapper.js +1 -1
  22. package/admin/src/components/DynamicZone/Picker/Wrapper.js +1 -1
  23. package/admin/src/components/DynamicZone/utils/connect.js +1 -1
  24. package/admin/src/components/FieldComponent/EmptyComponent.js +1 -1
  25. package/admin/src/components/FieldComponent/ResetComponent.js +2 -2
  26. package/admin/src/components/FieldComponent/utils/connect.js +1 -1
  27. package/admin/src/components/FilterOptionsCTA/index.js +1 -1
  28. package/admin/src/components/FilterPicker/components.js +2 -2
  29. package/admin/src/components/FilterPickerOption/components.js +4 -4
  30. package/admin/src/components/FormTitle/index.js +8 -4
  31. package/admin/src/components/FormWrapper/index.js +2 -2
  32. package/admin/src/components/InputUID/Options/index.js +13 -11
  33. package/admin/src/components/Inputs/utils/connect.js +1 -1
  34. package/admin/src/components/MediaPreviewList/StyledMediaPreviewList.js +2 -2
  35. package/admin/src/components/PlusButton/index.js +4 -4
  36. package/admin/src/components/PreviewCarret/components.js +0 -2
  37. package/admin/src/components/PreviewCarret/index.js +5 -3
  38. package/admin/src/components/PreviewWysiwyg/Wrapper.js +6 -7
  39. package/admin/src/components/RepeatableComponent/AddFieldButton.js +4 -7
  40. package/admin/src/components/RepeatableComponent/BannerWrapper.js +0 -5
  41. package/admin/src/components/RepeatableComponent/DraggedItem/utils/connect.js +1 -1
  42. package/admin/src/components/RepeatableComponent/EmptyComponent.js +1 -1
  43. package/admin/src/components/RepeatableComponent/FormWrapper.js +1 -4
  44. package/admin/src/components/RepeatableComponent/utils/connect.js +1 -1
  45. package/admin/src/components/SelectMany/components.js +14 -14
  46. package/admin/src/components/SelectWrapper/IndicatorSeparator.js +1 -1
  47. package/admin/src/components/SelectWrapper/utils/connect.js +1 -1
  48. package/admin/src/components/SettingFormWrapper/index.js +1 -1
  49. package/admin/src/components/Truncate/index.js +1 -0
  50. package/admin/src/components/Wysiwyg/EditorWrapper.js +3 -7
  51. package/admin/src/components/Wysiwyg/PreviewControlWrapper.js +2 -1
  52. package/admin/src/components/Wysiwyg/SelectWrapper.js +1 -1
  53. package/admin/src/components/Wysiwyg/ToggleModeWrapper.js +1 -1
  54. package/admin/src/components/Wysiwyg/previewControl.js +8 -6
  55. package/admin/src/components/WysiwygBottomControls/components.js +1 -1
  56. package/admin/src/components/WysiwygDropUpload/Label.js +2 -5
  57. package/admin/src/components/WysiwygInlineControls/StyledButton.js +5 -5
  58. package/admin/src/components/WysiwygInlineControls/Wrapper.js +1 -1
  59. package/admin/src/components/WysiwygWithErrors/Wrapper.js +1 -1
  60. package/admin/src/containers/EditView/DeleteLink/utils/connect.js +1 -1
  61. package/admin/src/containers/EditView/Header/utils/connect.js +1 -1
  62. package/admin/src/containers/EditView/components.js +3 -3
  63. package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +6 -6
  64. package/admin/src/containers/ListSettingsView/DragWrapper.js +1 -2
  65. package/admin/src/containers/ListSettingsView/MenuDropdown.js +2 -3
  66. package/admin/src/containers/ListSettingsView/Toggle.js +2 -3
  67. package/admin/src/containers/ListView/FieldPicker/ConfigureLink/StyledLink.js +0 -1
  68. package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +1 -1
  69. package/admin/src/containers/ListView/components.js +6 -6
  70. package/admin/src/containers/ListView/index.js +129 -131
  71. package/package.json +5 -5
@@ -7,7 +7,7 @@ const Wrapper = styled.div`
7
7
  height: 30px;
8
8
  width: 100%;
9
9
  justify-content: space-between;
10
- background: #ffffff;
10
+ background: #fff;
11
11
  color: #333740;
12
12
  border-radius: 2px;
13
13
  border: solid 1px #007eff;
@@ -19,7 +19,7 @@ const Wrapper = styled.div`
19
19
  width: 100%;
20
20
  color: #333740;
21
21
  text-align: left;
22
- background-color: #ffffff;
22
+ background-color: #fff;
23
23
  border: none;
24
24
  font-size: 13px;
25
25
  font-weight: 500;
@@ -59,8 +59,7 @@ const Wrapper = styled.div`
59
59
  border-top-right-radius: 0;
60
60
  border-color: #e3e9f3 !important;
61
61
  border-top-color: #aed4fb !important;
62
- box-shadow: 0 2px 3px rgba(227, 233, 245, 0.5);
63
-
62
+ box-shadow: 0 2px 3px rgb(227 233 245 / 50%);
64
63
  overflow: scroll;
65
64
 
66
65
  button {
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
 
3
3
  const Wrapper = styled.div`
4
4
  margin-bottom: 35px;
5
- background: #ffffff;
5
+ background: #fff;
6
6
  padding: 22px 28px 18px;
7
7
  padding-bottom: 13px;
8
8
  border-radius: 2px;
@@ -11,7 +11,7 @@ const Wrapper = styled.div`
11
11
  `;
12
12
 
13
13
  const Sub = styled.div`
14
- padding-top: 0px;
14
+ padding-top: 0;
15
15
  line-height: 18px;
16
16
  > p:first-child {
17
17
  margin-bottom: 1px;
@@ -11,19 +11,21 @@ import { Wrapper, Sub } from './components';
11
11
  const renderMsg = (msg) => <p>{msg}</p>;
12
12
 
13
13
  function Block({ children, description, style, title }) {
14
- return <div className="col-md-12">
15
- <Wrapper style={style}>
16
- <Sub>
17
- {!!title && (
18
- <p>
19
- <FormattedMessage id={title} />
20
- </p>
21
- )}
22
- {!!description && <FormattedMessage id={description}>{renderMsg}</FormattedMessage>}
23
- </Sub>
24
- {children}
25
- </Wrapper>
26
- </div>
14
+ return (
15
+ <div className="col-md-12">
16
+ <Wrapper style={style}>
17
+ <Sub>
18
+ {!!title && (
19
+ <p>
20
+ <FormattedMessage id={title} />
21
+ </p>
22
+ )}
23
+ {!!description && <FormattedMessage id={description}>{renderMsg}</FormattedMessage>}
24
+ </Sub>
25
+ {children}
26
+ </Wrapper>
27
+ </div>
28
+ );
27
29
  }
28
30
 
29
31
  Block.defaultProps = {
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
 
3
3
  const Container = styled.div`
4
- padding: 18px 30px 66px 30px;
4
+ padding: 18px 30px 66px;
5
5
  `;
6
6
 
7
7
  export default Container;
@@ -8,14 +8,14 @@ const Label = styled.label`
8
8
  > input {
9
9
  display: none;
10
10
  }
11
- &:before {
11
+ &::before {
12
12
  content: '';
13
13
  position: absolute;
14
14
  left: 15px;
15
15
  top: calc(50% - 8px);
16
16
  width: 14px;
17
17
  height: 14px;
18
- border: 1px solid rgba(16, 22, 34, 0.15);
18
+ border: 1px solid rgb(16 22 34 / 15%);
19
19
  background-color: #fdfdfd;
20
20
  border-radius: 3px;
21
21
  }
@@ -23,13 +23,13 @@ const Label = styled.label`
23
23
  ${({ shouldDisplaySomeChecked }) => {
24
24
  if (shouldDisplaySomeChecked) {
25
25
  return css`
26
- &:after {
26
+ &::after {
27
27
  content: '\f068';
28
28
  position: absolute;
29
29
  top: calc(50% - 8px);
30
30
  left: 18px;
31
31
  font-size: 10px;
32
- font-family: 'FontAwesome';
32
+ font-family: FontAwesome;
33
33
  font-weight: 100;
34
34
  color: #1c5de7;
35
35
  }
@@ -40,13 +40,13 @@ const Label = styled.label`
40
40
  ${({ shouldDisplayAllChecked }) => {
41
41
  if (shouldDisplayAllChecked) {
42
42
  return css`
43
- &:after {
43
+ &::after {
44
44
  content: '\f00c';
45
45
  position: absolute;
46
46
  top: calc(50% - 9px);
47
47
  left: 17px;
48
48
  font-size: 10px;
49
- font-family: 'FontAwesome';
49
+ font-family: FontAwesome;
50
50
  font-weight: 100;
51
51
  color: #1c5de7;
52
52
  transition: all 0.2s;
@@ -58,13 +58,13 @@ const Label = styled.label`
58
58
  ${({ isChecked }) => {
59
59
  if (isChecked) {
60
60
  return css`
61
- &:after {
61
+ &::after {
62
62
  content: '\f00c';
63
63
  position: absolute;
64
64
  top: calc(50% - 11px);
65
65
  left: 17px;
66
66
  font-size: 10px;
67
- font-family: 'FontAwesome';
67
+ font-family: FontAwesome;
68
68
  font-weight: 100;
69
69
  color: #1c5de7;
70
70
  transition: all 0.2s;
@@ -3,7 +3,7 @@ import styled from 'styled-components';
3
3
  const Delete = styled.span`
4
4
  font-weight: 600;
5
5
  -webkit-font-smoothing: antialiased;
6
- &:after {
6
+ &::after {
7
7
  content: '—';
8
8
  margin: 0 7px;
9
9
  font-size: 13px;
@@ -5,7 +5,7 @@ const DeleteAll = styled.span`
5
5
  color: #f64d0a;
6
6
  font-weight: 500;
7
7
  cursor: pointer;
8
- &:after {
8
+ &::after {
9
9
  position: relative;
10
10
  top: -1px;
11
11
  content: '\f2ed';
@@ -7,11 +7,10 @@ const ActionContainer = styled.td`
7
7
  svg {
8
8
  margin-left: 15px;
9
9
  font-size: 1rem;
10
-
11
10
  color: #333740;
12
11
 
13
12
  &:first-of-type {
14
- margin-left: 0px;
13
+ margin-left: 0;
15
14
  }
16
15
  }
17
16
  `;
@@ -29,7 +29,7 @@ const Table = styled.table`
29
29
  const TableEmpty = styled.tr`
30
30
  width: 100%;
31
31
  height: 108px;
32
- background: #ffffff;
32
+ background: #fff;
33
33
 
34
34
  td {
35
35
  height: 106px;
@@ -45,7 +45,7 @@ const TableEmpty = styled.tr`
45
45
 
46
46
  const TableRow = styled.tr`
47
47
  height: 54px;
48
- background: #ffffff;
48
+ background: #fff;
49
49
 
50
50
  &:hover {
51
51
  cursor: pointer;
@@ -75,7 +75,7 @@ const LoadingWrapper = styled.div`
75
75
  display: flex;
76
76
  background: ${(props) => props.theme.main.colors.white};
77
77
  box-shadow: 0 2px 4px ${(props) => props.theme.main.colors.darkGrey};
78
- clip-path: inset(0px -5px -5px -5px);
78
+ clip-path: inset(0 -5px -5px -5px);
79
79
  `;
80
80
 
81
81
  LoadingWrapper.propTypes = {
@@ -8,8 +8,8 @@ const GrabWrapper = styled.div`
8
8
  flex-direction: column;
9
9
  justify-content: center;
10
10
  position: absolute;
11
- top: 0px;
12
- bottom: 0px;
11
+ top: 0;
12
+ bottom: 0;
13
13
  left: 0;
14
14
  padding-left: 10px;
15
15
  border-right: 1px solid
@@ -7,8 +7,8 @@ const RemoveWrapper = styled.div`
7
7
  flex-direction: column;
8
8
  justify-content: center;
9
9
  position: absolute;
10
- top: 0px;
11
- bottom: 0px;
10
+ top: 0;
11
+ bottom: 0;
12
12
  right: 0;
13
13
  width: 30px;
14
14
  text-align: center;
@@ -14,10 +14,8 @@ const SubWrapper = styled.div`
14
14
  `;
15
15
  }
16
16
  }};
17
-
18
17
  line-height: ${({ withLongerHeight }) => getHeight(withLongerHeight)};
19
18
  cursor: pointer;
20
-
21
19
  background: ${({ isOverEditBlock, isOverRemove, isSelected }) => {
22
20
  if (isOverRemove) {
23
21
  return '#ffe9e0';
@@ -9,7 +9,7 @@ const Carret = styled.div`
9
9
  right: -4px;
10
10
  `;
11
11
  }
12
-
12
+ // eslint-disable-next-line newline-before-return
13
13
  return `
14
14
  left: -1px;
15
15
  `;
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
 
3
3
  const DynamicZoneWrapper = styled.div`
4
4
  display: flex;
5
- margin: 5px 0 0px 0;
5
+ margin: 5px 0 0;
6
6
  overflow: auto;
7
7
  height: 119px;
8
8
  `;
@@ -8,7 +8,7 @@ const Tooltip = styled.div`
8
8
  line-height: 20px;
9
9
  height: 20px;
10
10
  padding: 0 10px;
11
- background-color: #000000;
11
+ background-color: #000;
12
12
  font-size: 12px;
13
13
  color: #fff;
14
14
  opacity: 0.5;
@@ -6,12 +6,12 @@ const Wrapper = styled.div`
6
6
  width: 139px !important;
7
7
  margin: 0 10px 10px 0;
8
8
  padding: 18px 10px;
9
- background-color: #ffffff;
9
+ background-color: #fff;
10
10
  color: #919bae;
11
11
  text-align: center;
12
12
  border-radius: 2px;
13
13
  cursor: pointer;
14
- border: 1px solid #ffffff;
14
+ border: 1px solid #fff;
15
15
 
16
16
  button {
17
17
  outline: 0;
@@ -8,8 +8,8 @@ const Button = styled(PlusButton)`
8
8
  transition: transform 0.1s ease-in-out;
9
9
  &:hover {
10
10
  background-color: #aed4fb;
11
- :before,
12
- :after {
11
+ ::before,
12
+ ::after {
13
13
  background-color: #007eff;
14
14
  }
15
15
  }
@@ -5,7 +5,7 @@ const RoundCTA = styled.div`
5
5
  width: 31px;
6
6
  border-radius: 50%;
7
7
  background-color: #f2f3f4;
8
- border: 2px solid #ffffff;
8
+ border: 2px solid #fff;
9
9
  cursor: pointer;
10
10
  display: flex;
11
11
  z-index: 9;
@@ -27,8 +27,8 @@ const RoundCTA = styled.div`
27
27
  &.arrow-btn {
28
28
  height: 22px;
29
29
  width: 22px;
30
- background-color: #ffffff;
31
- border: 2px solid #ffffff;
30
+ background-color: #fff;
31
+ border: 2px solid #fff;
32
32
  svg {
33
33
  font-size: 10px;
34
34
  line-height: 22px;
@@ -21,7 +21,7 @@ const ComponentWrapper = styled.div`
21
21
  }
22
22
  &:not(:first-of-type) {
23
23
  margin-top: 32px;
24
- &:before {
24
+ &::before {
25
25
  content: '&';
26
26
  position: absolute;
27
27
  top: -30px;
@@ -6,7 +6,7 @@ const Label = styled.div`
6
6
  font-weight: 600;
7
7
  position: relative;
8
8
  min-height: 64px;
9
- &:after {
9
+ &::after {
10
10
  content: '•';
11
11
  position: absolute;
12
12
  top: 15px;
@@ -19,7 +19,7 @@ const Label = styled.div`
19
19
  border-radius: 4px;
20
20
  border: 1px solid white;
21
21
  }
22
- &:before {
22
+ &::before {
23
23
  content: '&';
24
24
  position: absolute;
25
25
  top: 22px;
@@ -8,7 +8,7 @@ const BannerWrapper = styled.button`
8
8
  width: 100%;
9
9
  padding: 0 15px;
10
10
  border-bottom: 0;
11
- border: 1px solid rgba(227, 233, 243, 0.75);
11
+ border: 1px solid rgb(227 233 243 / 75%);
12
12
  background-color: ${({ theme }) => theme.main.colors.white};
13
13
  font-size: ${({ theme }) => theme.main.sizes.fonts.md};
14
14
  font-weight: ${({ theme }) => theme.main.fontWeights.semiBold};
@@ -5,7 +5,7 @@ const Wrapper = styled.div`
5
5
 
6
6
  > div {
7
7
  margin-top: 15px;
8
- padding: 23px 18px 21px 18px;
8
+ padding: 23px 18px 21px;
9
9
  background-color: #f2f3f4;
10
10
  }
11
11
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  function connect(WrappedComponent, select) {
4
- return function(props) {
4
+ return function (props) {
5
5
  // eslint-disable-next-line react/prop-types
6
6
  const selectors = select(props.name);
7
7
 
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
 
3
3
  const EmptyComponent = styled.div`
4
4
  height: 72px;
5
- border: 1px solid rgba(227, 233, 243, 0.75);
5
+ border: 1px solid rgb(227 233 243 / 75%);
6
6
  border-top-left-radius: 2px;
7
7
  border-top-right-radius: 2px;
8
8
  border-bottom: 0;
@@ -5,7 +5,6 @@ const ResetComponent = styled.div`
5
5
  top: 0;
6
6
  right: 15px;
7
7
  display: flex;
8
-
9
8
  cursor: pointer;
10
9
  color: #4b515a;
11
10
 
@@ -18,6 +17,7 @@ const ResetComponent = styled.div`
18
17
  > div {
19
18
  background-color: #faa684;
20
19
  }
20
+
21
21
  color: #f64d0a;
22
22
  > span {
23
23
  display: initial;
@@ -30,7 +30,7 @@ const ResetComponent = styled.div`
30
30
  background-color: #f3f4f4;
31
31
  text-align: center;
32
32
  border-radius: 2px;
33
- &:after {
33
+ &::after {
34
34
  content: '\f2ed';
35
35
  font-size: 10px;
36
36
  font-family: FontAwesome;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  function connect(WrappedComponent, select) {
4
- return function(props) {
4
+ return function (props) {
5
5
  // eslint-disable-next-line react/prop-types
6
6
  const selectors = select(props);
7
7
 
@@ -5,7 +5,7 @@ const FilterOptionsCTA = styled.button`
5
5
  justify-content: center;
6
6
  height: 20px;
7
7
  width: 20px;
8
- margin: 8px 5px 0px 0px;
8
+ margin: 8px 5px 0 0;
9
9
  border-radius: 50%;
10
10
  border: 1px solid #e3e9f3;
11
11
  cursor: pointer;
@@ -19,7 +19,7 @@ const Span = styled.span`
19
19
  vertical-align: text-top;
20
20
  cursor: pointer;
21
21
 
22
- &:after {
22
+ &::after {
23
23
  margin-left: 2px;
24
24
  content: '\f077';
25
25
  font-family: FontAwesome;
@@ -41,7 +41,7 @@ const Div = styled.div`
41
41
  margin: ${(props) => (props.show ? '-100px -30px 30px' : `-${props.number}px -30px 103px`)};
42
42
  background: #fff;
43
43
  box-shadow: 3px 2px 4px #e3e9f3;
44
- padding: 18px 30px 0px 30px;
44
+ padding: 18px 30px 0;
45
45
  transition: ${(props) => {
46
46
  if (props.anim) {
47
47
  return props.show
@@ -6,14 +6,14 @@ const Wrapper = styled.div`
6
6
  min-height: 38px;
7
7
  border-left: ${(props) => props.borderLeft && '3px solid #007EFF'};
8
8
  padding-left: ${(props) => (props.borderLeft ? '10px' : '13px')};
9
- margin-bottom: 0px !important;
9
+ margin-bottom: 0 !important;
10
10
  `;
11
11
 
12
12
  const InputWrapper = styled.div`
13
13
  display: flex;
14
14
  input,
15
15
  select {
16
- margin: 0px 5px !important;
16
+ margin: 0 5px !important;
17
17
  }
18
18
  `;
19
19
 
@@ -54,7 +54,7 @@ const Input = styled.input`
54
54
  border-radius: 0.25rem;
55
55
  line-height: 3.4rem;
56
56
  font-size: 1.3rem;
57
- font-family: 'Lato' !important;
58
- box-shadow: 0px 1px 1px rgba(104, 118, 142, 0.05);
57
+ font-family: Lato !important;
58
+ box-shadow: 0 1px 1px rgb(104 118 142 / 5%);
59
59
  `;
60
60
  export { InputWrapper, Wrapper, InputWrapperDate, Input };
@@ -3,10 +3,14 @@ import PropTypes from 'prop-types';
3
3
  import { FormattedMessage } from 'react-intl';
4
4
 
5
5
  function FormTitle({ description, title }) {
6
- return <>
7
- {!!title && <FormattedMessage id={title} />}
8
- {!!description && <FormattedMessage id={description}>{(msg) => <p>{msg}</p>}</FormattedMessage>}
9
- </>
6
+ return (
7
+ <>
8
+ {!!title && <FormattedMessage id={title} />}
9
+ {!!description && (
10
+ <FormattedMessage id={description}>{(msg) => <p>{msg}</p>}</FormattedMessage>
11
+ )}
12
+ </>
13
+ );
10
14
  }
11
15
 
12
16
  FormTitle.propTypes = {
@@ -1,8 +1,8 @@
1
1
  import styled from 'styled-components';
2
2
 
3
3
  const FormWrapper = styled.div`
4
- padding: 22px 10px 0 10px;
5
- background: #ffffff;
4
+ padding: 22px 10px 0;
5
+ background: #fff;
6
6
  border-radius: 2px;
7
7
  box-shadow: 0 2px 4px #e3e9f3;
8
8
  margin-bottom: 17px;
@@ -9,17 +9,19 @@ import OptionsTitle from './OptionsTitle';
9
9
  import RightOptionLabel from './RightOptionLabel';
10
10
 
11
11
  function Options({ options, title }) {
12
- return <OptionsWrapper>
13
- {title && <OptionsTitle>{title}</OptionsTitle>}
14
- {options.map((option) => (
15
- <Option key={option.id} onClick={option.onClick}>
16
- <div>{option.label}</div>
17
- <FormattedMessage id={getTrad('components.uid.apply')}>
18
- {(msg) => <RightOptionLabel className="right-label">{msg}</RightOptionLabel>}
19
- </FormattedMessage>
20
- </Option>
21
- ))}
22
- </OptionsWrapper>
12
+ return (
13
+ <OptionsWrapper>
14
+ {title && <OptionsTitle>{title}</OptionsTitle>}
15
+ {options.map((option) => (
16
+ <Option key={option.id} onClick={option.onClick}>
17
+ <div>{option.label}</div>
18
+ <FormattedMessage id={getTrad('components.uid.apply')}>
19
+ {(msg) => <RightOptionLabel className="right-label">{msg}</RightOptionLabel>}
20
+ </FormattedMessage>
21
+ </Option>
22
+ ))}
23
+ </OptionsWrapper>
24
+ );
23
25
  }
24
26
 
25
27
  Options.propTypes = {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  function connect(WrappedComponent, select) {
4
- return function(props) {
4
+ return function (props) {
5
5
  // eslint-disable-next-line react/prop-types
6
6
  const selectors = select(props.keys);
7
7
 
@@ -80,7 +80,7 @@ const MediaPreviewFile = styled(MediaPreviewItem)`
80
80
  font-size: 15px;
81
81
  width: 100%;
82
82
  height: 100%;
83
- &:before {
83
+ &::before {
84
84
  width: 100%;
85
85
  height: 100%;
86
86
  padding: 10px;
@@ -145,7 +145,7 @@ const MediaPreviewImage = styled(MediaPreviewItem)`
145
145
  border-radius: calc(${sizes.big} / 2);
146
146
  margin-top: calc(${`-${sizes.big}`} - ${sizes.small} - 5px);
147
147
  margin-left: calc((${sizes.small} - ${sizes.big}) / 2);
148
- box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05);
148
+ box-shadow: 0 2px 4px 0 rgb(0 0 0 / 5%);
149
149
  }
150
150
 
151
151
  &.hoverable {
@@ -36,15 +36,15 @@ const Button = styled.button`
36
36
  outline: 0;
37
37
  }
38
38
 
39
- :before {
39
+ ::before {
40
40
  ${beforeStyle}
41
41
  }
42
- :after {
42
+ ::after {
43
43
  ${afterStyle}
44
44
  }
45
45
 
46
- :before,
47
- :after {
46
+ ::before,
47
+ ::after {
48
48
  background-color: #b4b6ba;
49
49
  }
50
50
  `;
@@ -8,14 +8,12 @@ const Wrapper = styled.div`
8
8
  height: 30px;
9
9
  width: 100%;
10
10
  padding: 0 5px;
11
-
12
11
  ${({ isComponent }) =>
13
12
  isComponent &&
14
13
  `
15
14
  height: 34px;
16
15
  padding: 0;
17
16
  `}
18
-
19
17
  border-radius: 2px;
20
18
  > div {
21
19
  width: 100%;
@@ -4,9 +4,11 @@ import PropTypes from 'prop-types';
4
4
  import Wrapper from './components';
5
5
 
6
6
  function PreviewCarret({ isComponent, style }) {
7
- return <Wrapper isComponent={isComponent} style={style}>
8
- <div />
9
- </Wrapper>
7
+ return (
8
+ <Wrapper isComponent={isComponent} style={style}>
9
+ <div />
10
+ </Wrapper>
11
+ );
10
12
  }
11
13
 
12
14
  PreviewCarret.defaultProps = {