@capillarytech/creatives-library 7.3.3 → 7.3.4
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/package.json
CHANGED
|
@@ -34,6 +34,15 @@
|
|
|
34
34
|
border: 1px solid #d9d9d9 !important;
|
|
35
35
|
border-radius: 4px !important;
|
|
36
36
|
display: inline-block;
|
|
37
|
+
.ant-select-selection{
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.csv-column-search-icon {
|
|
43
|
+
svg {
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
37
46
|
}
|
|
38
47
|
.select-csv-col-dropdown ul{
|
|
39
48
|
padding: 0 $CAP_SPACE_04;
|
|
@@ -43,18 +52,35 @@
|
|
|
43
52
|
padding: 0;
|
|
44
53
|
white-space: nowrap;
|
|
45
54
|
list-style: none;
|
|
46
|
-
|
|
55
|
+
outline: 0;
|
|
47
56
|
}
|
|
48
57
|
.select-csv-col-dropdown {
|
|
58
|
+
padding: $CAP_SPACE_08 $CAP_SPACE_16;
|
|
49
59
|
.ant-select-tree-switcher-noop, .ant-select-tree-node-content-wrapper{
|
|
50
60
|
display: inline-block !important;
|
|
51
61
|
margin: 0 !important;
|
|
62
|
+
.ant-select-tree-title {
|
|
63
|
+
font-family: 'Roboto', Arial, sans-serif;
|
|
64
|
+
font-size: $FONT_SIZE_M;
|
|
65
|
+
}
|
|
52
66
|
}
|
|
53
67
|
.ant-select-tree-child-tree-open {
|
|
54
68
|
display: block !important;
|
|
55
69
|
padding: 0 0 0 $CAP_SPACE_16 !important;
|
|
56
70
|
}
|
|
71
|
+
|
|
72
|
+
.search-placeholder-container {
|
|
73
|
+
display: flex;
|
|
74
|
+
}
|
|
57
75
|
}
|
|
76
|
+
|
|
77
|
+
.select-csv-col-dropdown .ant-select-dropdown-search {
|
|
78
|
+
padding: 0;
|
|
79
|
+
.ant-select-search__field{
|
|
80
|
+
padding: $CAP_SPACE_06 $CAP_SPACE_08
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
58
84
|
.remove-csv-column{
|
|
59
85
|
display: inline-block;
|
|
60
86
|
margin-left: $CAP_SPACE_08;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
3
4
|
import { bindActionCreators } from 'redux';
|
|
4
5
|
import { FormattedMessage, intlShape } from 'react-intl';
|
|
5
6
|
import { createStructuredSelector } from 'reselect';
|
|
@@ -19,6 +20,7 @@ import {
|
|
|
19
20
|
CapTreeSelect,
|
|
20
21
|
CapDivider,
|
|
21
22
|
} from '@capillarytech/cap-ui-library';
|
|
23
|
+
import { FONT_SIZE_L } from '@capillarytech/cap-ui-library/styled/variables';
|
|
22
24
|
import { find, cloneDeep, findIndex, isEmpty, isEqual, filter, flattenDeep } from 'lodash';
|
|
23
25
|
import * as actions from './actions';
|
|
24
26
|
import { makeSelectFTP, makeSelectMetaEntities } from './selectors';
|
|
@@ -37,6 +39,11 @@ const UIView = {
|
|
|
37
39
|
configureMessage: 'configureMessage',
|
|
38
40
|
};
|
|
39
41
|
const { CapLabelInline } = CapLabel;
|
|
42
|
+
|
|
43
|
+
const StyledCapIcon = styled(CapIcon)`
|
|
44
|
+
font-size: ${FONT_SIZE_L};
|
|
45
|
+
`;
|
|
46
|
+
|
|
40
47
|
export class FTP extends React.Component {
|
|
41
48
|
constructor(props) {
|
|
42
49
|
super(props);
|
|
@@ -285,6 +292,12 @@ export class FTP extends React.Component {
|
|
|
285
292
|
value={!isEmpty(item.header) ? item.header : formatMessage(messages.selectTag)}
|
|
286
293
|
onChange={(option, label) => this.selectCsvColumn(option, label, index)}
|
|
287
294
|
showSearch
|
|
295
|
+
searchPlaceholder={
|
|
296
|
+
<span className="search-placeholder-container">
|
|
297
|
+
<StyledCapIcon type="search" className="csv-column-search-icon"/>
|
|
298
|
+
{formatMessage(messages.search)}
|
|
299
|
+
</span>
|
|
300
|
+
}
|
|
288
301
|
/>
|
|
289
302
|
<CapIcon
|
|
290
303
|
type="close"
|