@zohodesk/dot 1.0.0-temp-199 → 1.0.0-temp-187.2
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/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/es/Drawer/Drawer.js +4 -7
- package/es/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +1 -1
- package/es/Drawer/props/defaultProps.js +1 -0
- package/es/Drawer/props/propTypes.js +1 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/es/lookup/header/Search/LookupSearch.module.css +26 -26
- package/es/lookup/header/Search/Search.js +38 -55
- package/es/lookup/header/Search/props/defaultProps.js +1 -2
- package/es/lookup/header/Search/props/propTypes.js +1 -5
- package/lib/Drawer/Drawer.js +4 -7
- package/lib/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +1 -1
- package/lib/Drawer/props/defaultProps.js +1 -0
- package/lib/Drawer/props/propTypes.js +1 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/lib/lookup/header/Search/LookupSearch.module.css +26 -26
- package/lib/lookup/header/Search/Search.js +64 -73
- package/lib/lookup/header/Search/props/defaultProps.js +1 -2
- package/lib/lookup/header/Search/props/propTypes.js +3 -9
- package/package.json +3 -3
|
@@ -31,5 +31,5 @@ var propTypes = (_propTypes = {
|
|
|
31
31
|
searchEmptyText: _propTypes2["default"].string,
|
|
32
32
|
searchErrorText: _propTypes2["default"].string,
|
|
33
33
|
placeholder: _propTypes2["default"].string
|
|
34
|
-
})), _propTypes);
|
|
34
|
+
})), _defineProperty(_propTypes, "customProps", _propTypes2["default"].string), _propTypes);
|
|
35
35
|
exports.propTypes = propTypes;
|
|
@@ -6,43 +6,58 @@
|
|
|
6
6
|
min-height: var(--zd_size35) ;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
[dir=ltr] .withBorder {
|
|
10
11
|
border-left: 1px solid var(--zdt_statuslistitem_default_border);
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
[dir=rtl] .withBorder {
|
|
13
15
|
border-right: 1px solid var(--zdt_statuslistitem_default_border);
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
[dir=ltr] .small {
|
|
16
19
|
padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5) ;
|
|
17
20
|
}
|
|
21
|
+
|
|
18
22
|
[dir=rtl] .small {
|
|
19
23
|
padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3) ;
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
.medium {
|
|
22
27
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
23
28
|
}
|
|
29
|
+
|
|
24
30
|
.large {
|
|
25
31
|
height: var(--zd_size48) ;
|
|
26
32
|
}
|
|
33
|
+
|
|
27
34
|
[dir=ltr] .large {
|
|
28
35
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
29
36
|
}
|
|
37
|
+
|
|
30
38
|
[dir=rtl] .large {
|
|
31
39
|
padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
|
|
32
40
|
}
|
|
33
|
-
|
|
41
|
+
|
|
42
|
+
.value,
|
|
43
|
+
.multiLineValue {
|
|
34
44
|
line-height: 1.5385;
|
|
35
45
|
}
|
|
46
|
+
|
|
36
47
|
.value {
|
|
37
48
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
38
49
|
}
|
|
39
|
-
|
|
50
|
+
|
|
51
|
+
.multiLineValue {
|
|
40
52
|
word-break: break-word;
|
|
53
|
+
-webkit-line-clamp: 2;
|
|
41
54
|
composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
42
55
|
}
|
|
56
|
+
|
|
43
57
|
[dir=ltr] .withBorder.active {
|
|
44
58
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
45
59
|
}
|
|
60
|
+
|
|
46
61
|
[dir=rtl] .withBorder.active {
|
|
47
62
|
border-right-color: var(--zdt_statuslistitem_default_active_border);
|
|
48
63
|
}
|
|
@@ -50,44 +65,56 @@
|
|
|
50
65
|
.default.hover, .default.effect:hover {
|
|
51
66
|
background-color: var(--zdt_statuslistitem_default_effect_bg);
|
|
52
67
|
}
|
|
68
|
+
|
|
53
69
|
.primary.hover, .primary.effect:hover, .selected {
|
|
54
70
|
background-color: var(--zdt_statuslistitem_primary_efffect_bg);
|
|
55
71
|
}
|
|
72
|
+
|
|
56
73
|
.secondary.hover, .secondary.effect:hover {
|
|
57
74
|
background-color: var(--zdt_statuslistitem_secondary_effect_bg);
|
|
58
75
|
}
|
|
76
|
+
|
|
59
77
|
.list.active.default, .list.active.primary {
|
|
60
78
|
background-color: var(--zdt_statuslistitem_primary_efffect_bg);
|
|
61
79
|
}
|
|
80
|
+
|
|
62
81
|
.list.active.secondary {
|
|
63
82
|
background-color: var(--zdt_statuslistitem_secondary_effect_bg);
|
|
64
83
|
}
|
|
84
|
+
|
|
65
85
|
.secondary.hover,
|
|
66
86
|
.secondary.effect:hover,
|
|
67
87
|
.list.active.secondary {
|
|
68
88
|
color: var(--zdt_statuslistitem_secondary_effect_text);
|
|
69
89
|
}
|
|
90
|
+
|
|
70
91
|
.tickIcon {
|
|
71
92
|
color: var(--zdt_statuslistitem_tickicon);
|
|
72
93
|
position: absolute;
|
|
73
|
-
top:50% ;
|
|
94
|
+
top: 50% ;
|
|
74
95
|
transform: translateY(-50%);
|
|
75
96
|
}
|
|
97
|
+
|
|
76
98
|
[dir=ltr] .tickIcon {
|
|
77
99
|
right: var(--zd_size20) ;
|
|
78
100
|
}
|
|
101
|
+
|
|
79
102
|
[dir=rtl] .tickIcon {
|
|
80
103
|
left: var(--zd_size20) ;
|
|
81
104
|
}
|
|
82
|
-
|
|
105
|
+
|
|
106
|
+
.tickIcon>i {
|
|
83
107
|
display: block;
|
|
84
108
|
}
|
|
109
|
+
|
|
85
110
|
[dir=ltr] .active.withTick {
|
|
86
111
|
padding-right: var(--zd_size39) ;
|
|
87
112
|
}
|
|
113
|
+
|
|
88
114
|
[dir=rtl] .active.withTick {
|
|
89
115
|
padding-left: var(--zd_size39) ;
|
|
90
116
|
}
|
|
117
|
+
|
|
91
118
|
/* Status Type */
|
|
92
119
|
.statusType {
|
|
93
120
|
width: var(--zd_size8) ;
|
|
@@ -100,12 +127,15 @@
|
|
|
100
127
|
[dir=rtl] .statusType {
|
|
101
128
|
margin-left: var(--zd_size13) ;
|
|
102
129
|
}
|
|
130
|
+
|
|
103
131
|
.black {
|
|
104
132
|
background-color: var(--zdt_statuslistitem_black_bg);
|
|
105
133
|
}
|
|
134
|
+
|
|
106
135
|
.orange {
|
|
107
136
|
background-color: var(--zdt_statuslistitem_orange_bg);
|
|
108
137
|
}
|
|
138
|
+
|
|
109
139
|
.green {
|
|
110
140
|
background-color: var(--zdt_statuslistitem_green_bg);
|
|
111
|
-
}
|
|
141
|
+
}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
.
|
|
1
|
+
.searchStyle,
|
|
2
|
+
.boxStyle {
|
|
2
3
|
transition: var(--zd_transition1);
|
|
3
|
-
width: var(--
|
|
4
|
+
width: var(--zd_size96) ;
|
|
4
5
|
height: var(--zd_size28) ;
|
|
5
6
|
position: relative;
|
|
7
|
+
}.searchStyle, .boxStyle {
|
|
8
|
+
background: none;
|
|
6
9
|
}
|
|
7
|
-
.
|
|
8
|
-
|
|
10
|
+
.boxStyle {
|
|
11
|
+
width: var(--zd_size160) ;
|
|
9
12
|
border-radius: 4px;
|
|
13
|
+
border: 1px solid var(--zdt_lookupsearch_boxstyle_border);
|
|
10
14
|
}
|
|
11
|
-
.
|
|
12
|
-
border-bottom: 1px solid transparent;
|
|
13
|
-
}
|
|
14
|
-
.boxType, .borderType {
|
|
15
|
-
border-color: var(--zdt_lookupsearch_boxstyle_border);
|
|
16
|
-
}
|
|
17
|
-
.boxType:hover, .borderType:hover {
|
|
15
|
+
.searchStyle:hover, .boxStyle:hover {
|
|
18
16
|
border-color: var(--zdt_lookupsearch_boxstyle_hover_border);
|
|
19
17
|
}
|
|
20
|
-
.boxType.active, .borderType.active {
|
|
21
|
-
border-color: var(--zdt_lookupsearch_boxstyle_activer_border);
|
|
22
|
-
}
|
|
23
18
|
.focusWidth {
|
|
24
19
|
width: var(--zd_size220) ;
|
|
25
20
|
}
|
|
@@ -27,31 +22,36 @@
|
|
|
27
22
|
position: relative;
|
|
28
23
|
height: var(--zd_size28) ;
|
|
29
24
|
cursor: pointer;
|
|
30
|
-
padding: 0 var(--zd_size9) ;
|
|
31
25
|
}
|
|
32
26
|
.drpSearchBox::after {
|
|
33
27
|
content: '';
|
|
34
28
|
position: absolute;
|
|
35
|
-
top: var(--
|
|
36
|
-
bottom: var(--
|
|
29
|
+
top: var(--zd_size8) ;
|
|
30
|
+
bottom: var(--zd_size8) ;
|
|
37
31
|
}
|
|
38
32
|
[dir=ltr] .drpSearchBox::after {
|
|
39
|
-
right: var(--
|
|
33
|
+
right: calc( var(--zd_size1) * -1 ) ;
|
|
40
34
|
border-right: 1px solid var(--zdt_lookupsearch_boxstyle_border);
|
|
41
35
|
}
|
|
42
36
|
[dir=rtl] .drpSearchBox::after {
|
|
43
|
-
left: var(--
|
|
37
|
+
left: calc( var(--zd_size1) * -1 ) ;
|
|
44
38
|
border-left: 1px solid var(--zdt_lookupsearch_boxstyle_border);
|
|
45
39
|
}
|
|
46
|
-
|
|
47
|
-
padding
|
|
40
|
+
.inputBox, .drpSearchBox {
|
|
41
|
+
padding: 0 var(--zd_size9) ;
|
|
42
|
+
}
|
|
43
|
+
[dir=ltr] .searchIconBox {
|
|
44
|
+
padding: var(--zd_size4) 0 var(--zd_size4) var(--zd_size9) ;
|
|
48
45
|
}
|
|
49
|
-
[dir=rtl] .
|
|
50
|
-
padding
|
|
46
|
+
[dir=rtl] .searchIconBox {
|
|
47
|
+
padding: var(--zd_size4) var(--zd_size9) var(--zd_size4) 0 ;
|
|
51
48
|
}
|
|
52
49
|
.active, .boxStyle.active, .lineActive.drpSearchBox::after {
|
|
53
50
|
border-color: var(--zdt_lookupsearch_boxstyle_activer_border);
|
|
54
51
|
}
|
|
55
|
-
.iconArrow {
|
|
56
|
-
margin:
|
|
57
|
-
}
|
|
52
|
+
[dir=ltr] .iconArrow {
|
|
53
|
+
margin-left: var(--zd_size5) ;
|
|
54
|
+
}
|
|
55
|
+
[dir=rtl] .iconArrow {
|
|
56
|
+
margin-right: var(--zd_size5) ;
|
|
57
|
+
}
|
|
@@ -17,8 +17,6 @@ var _TextBoxIcon = _interopRequireDefault(require("@zohodesk/components/lib/Text
|
|
|
17
17
|
|
|
18
18
|
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
19
19
|
|
|
20
|
-
var _utils = require("@zohodesk/utils");
|
|
21
|
-
|
|
22
20
|
var _icons = require("@zohodesk/icons");
|
|
23
21
|
|
|
24
22
|
var _ToggleDropDown = _interopRequireDefault(require("../../../dropdown/ToggleDropDown/ToggleDropDown"));
|
|
@@ -68,17 +66,33 @@ var Search = /*#__PURE__*/function (_Component) {
|
|
|
68
66
|
_classCallCheck(this, Search);
|
|
69
67
|
|
|
70
68
|
_this = _super.call(this, props);
|
|
69
|
+
_this.handleDropDownOpen = _this.handleDropDownOpen.bind(_assertThisInitialized(_this));
|
|
70
|
+
_this.handleDropDownClose = _this.handleDropDownClose.bind(_assertThisInitialized(_this));
|
|
71
71
|
_this.handleTextBoxFocus = _this.handleTextBoxFocus.bind(_assertThisInitialized(_this));
|
|
72
72
|
_this.handleTextBoxBlur = _this.handleTextBoxBlur.bind(_assertThisInitialized(_this));
|
|
73
73
|
_this.handleGetTextBoxRef = _this.handleGetTextBoxRef.bind(_assertThisInitialized(_this));
|
|
74
|
-
_this.handleRenderChildren = _this.handleRenderChildren.bind(_assertThisInitialized(_this));
|
|
75
74
|
_this.state = {
|
|
76
|
-
isFocus: false
|
|
75
|
+
isFocus: false,
|
|
76
|
+
isDropDownOpen: false
|
|
77
77
|
};
|
|
78
78
|
return _this;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
_createClass(Search, [{
|
|
82
|
+
key: "handleDropDownOpen",
|
|
83
|
+
value: function handleDropDownOpen() {
|
|
84
|
+
this.setState({
|
|
85
|
+
isDropDownOpen: true
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
key: "handleDropDownClose",
|
|
90
|
+
value: function handleDropDownClose() {
|
|
91
|
+
this.setState({
|
|
92
|
+
isDropDownOpen: false
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
82
96
|
key: "handleTextBoxFocus",
|
|
83
97
|
value: function handleTextBoxFocus(e) {
|
|
84
98
|
var onFocus = this.props.onFocus;
|
|
@@ -103,42 +117,22 @@ var Search = /*#__PURE__*/function (_Component) {
|
|
|
103
117
|
this.textBox = el;
|
|
104
118
|
getRef && getRef(el);
|
|
105
119
|
}
|
|
106
|
-
}, {
|
|
107
|
-
key: "handleRenderChildren",
|
|
108
|
-
value: function handleRenderChildren(_ref) {
|
|
109
|
-
var isActive = _ref.isActive;
|
|
110
|
-
var _this$props = this.props,
|
|
111
|
-
value = _this$props.value,
|
|
112
|
-
selectedId = _this$props.selectedId,
|
|
113
|
-
renderChildren = _this$props.renderChildren;
|
|
114
|
-
|
|
115
|
-
if (renderChildren) {
|
|
116
|
-
return renderChildren({
|
|
117
|
-
isActive: isActive,
|
|
118
|
-
value: value,
|
|
119
|
-
selectedId: selectedId
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
120
|
}, {
|
|
126
121
|
key: "render",
|
|
127
122
|
value: function render() {
|
|
128
|
-
var _this$
|
|
129
|
-
options = _this$
|
|
130
|
-
onSelect = _this$
|
|
131
|
-
value = _this$
|
|
132
|
-
selectedId = _this$
|
|
133
|
-
|
|
134
|
-
|
|
123
|
+
var _this$props = this.props,
|
|
124
|
+
options = _this$props.options,
|
|
125
|
+
onSelect = _this$props.onSelect,
|
|
126
|
+
value = _this$props.value,
|
|
127
|
+
selectedId = _this$props.selectedId;
|
|
128
|
+
var _this$state = this.state,
|
|
129
|
+
isFocus = _this$state.isFocus,
|
|
130
|
+
isDropDownOpen = _this$state.isDropDownOpen;
|
|
135
131
|
var searchUIExtraProps = {
|
|
136
|
-
isFocus: isFocus,
|
|
132
|
+
isFocus: isFocus || isDropDownOpen,
|
|
137
133
|
onFocus: this.handleTextBoxFocus,
|
|
138
134
|
onBlur: this.handleTextBoxBlur,
|
|
139
|
-
getRef: this.handleGetTextBoxRef
|
|
140
|
-
value: value,
|
|
141
|
-
renderChildren: renderChildren ? this.handleRenderChildren : null
|
|
135
|
+
getRef: this.handleGetTextBoxRef
|
|
142
136
|
};
|
|
143
137
|
return options ? /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
144
138
|
value: value,
|
|
@@ -147,7 +141,9 @@ var Search = /*#__PURE__*/function (_Component) {
|
|
|
147
141
|
needTick: true,
|
|
148
142
|
isArrow: false,
|
|
149
143
|
isToggleStateNeeded: true,
|
|
150
|
-
selectedId: selectedId
|
|
144
|
+
selectedId: selectedId,
|
|
145
|
+
onDropDownOpen: this.handleDropDownOpen,
|
|
146
|
+
onDropDownClose: this.handleDropDownClose
|
|
151
147
|
}, /*#__PURE__*/_react["default"].createElement(SearchUI, _extends({}, this.props, searchUIExtraProps))) : /*#__PURE__*/_react["default"].createElement(SearchUI, _extends({}, this.props, searchUIExtraProps));
|
|
152
148
|
}
|
|
153
149
|
}]);
|
|
@@ -186,10 +182,10 @@ var SearchUI = /*#__PURE__*/function (_Component2) {
|
|
|
186
182
|
key: "handleKeyDown",
|
|
187
183
|
value: function handleKeyDown(e) {
|
|
188
184
|
var keyCode = e.keyCode;
|
|
189
|
-
var _this$
|
|
190
|
-
onSearch = _this$
|
|
191
|
-
needOnTypeSearch = _this$
|
|
192
|
-
onKeyDown = _this$
|
|
185
|
+
var _this$props2 = this.props,
|
|
186
|
+
onSearch = _this$props2.onSearch,
|
|
187
|
+
needOnTypeSearch = _this$props2.needOnTypeSearch,
|
|
188
|
+
onKeyDown = _this$props2.onKeyDown;
|
|
193
189
|
onKeyDown && onKeyDown(e);
|
|
194
190
|
|
|
195
191
|
if (keyCode === 13) {
|
|
@@ -199,9 +195,9 @@ var SearchUI = /*#__PURE__*/function (_Component2) {
|
|
|
199
195
|
}, {
|
|
200
196
|
key: "handleChange",
|
|
201
197
|
value: function handleChange(value) {
|
|
202
|
-
var _this$
|
|
203
|
-
onChange = _this$
|
|
204
|
-
needOnTypeSearch = _this$
|
|
198
|
+
var _this$props3 = this.props,
|
|
199
|
+
onChange = _this$props3.onChange,
|
|
200
|
+
needOnTypeSearch = _this$props3.needOnTypeSearch;
|
|
205
201
|
onChange && onChange(value);
|
|
206
202
|
needOnTypeSearch && this.handleSearch();
|
|
207
203
|
}
|
|
@@ -216,34 +212,26 @@ var SearchUI = /*#__PURE__*/function (_Component2) {
|
|
|
216
212
|
}, {
|
|
217
213
|
key: "render",
|
|
218
214
|
value: function render() {
|
|
219
|
-
var _this$
|
|
220
|
-
dataId = _this$
|
|
221
|
-
searchStr = _this$
|
|
222
|
-
placeHolder = _this$
|
|
223
|
-
getRef = _this$
|
|
224
|
-
title = _this$
|
|
225
|
-
isBoxed = _this$
|
|
226
|
-
isSearchIconNeed = _this$
|
|
227
|
-
options = _this$
|
|
228
|
-
activeClass = _this$
|
|
229
|
-
isFocus = _this$
|
|
230
|
-
onFocus = _this$
|
|
231
|
-
onBlur = _this$
|
|
232
|
-
renderChildren = _this$props5.renderChildren,
|
|
233
|
-
isActive = _this$props5.isActive,
|
|
234
|
-
customStyle = _this$props5.customStyle;
|
|
235
|
-
var isInActiveState = isFocus || isActive;
|
|
236
|
-
var isFocusWidth = isFocus || searchStr || isActive;
|
|
237
|
-
var style = (0, _utils.mergeStyle)(_LookupSearchModule["default"], customStyle);
|
|
215
|
+
var _this$props4 = this.props,
|
|
216
|
+
dataId = _this$props4.dataId,
|
|
217
|
+
searchStr = _this$props4.searchStr,
|
|
218
|
+
placeHolder = _this$props4.placeHolder,
|
|
219
|
+
getRef = _this$props4.getRef,
|
|
220
|
+
title = _this$props4.title,
|
|
221
|
+
isBoxed = _this$props4.isBoxed,
|
|
222
|
+
isSearchIconNeed = _this$props4.isSearchIconNeed,
|
|
223
|
+
options = _this$props4.options,
|
|
224
|
+
activeClass = _this$props4.activeClass,
|
|
225
|
+
isFocus = _this$props4.isFocus,
|
|
226
|
+
onFocus = _this$props4.onFocus,
|
|
227
|
+
onBlur = _this$props4.onBlur;
|
|
238
228
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
239
229
|
isCover: false,
|
|
240
230
|
alignBox: "row",
|
|
241
231
|
align: "vertical",
|
|
242
|
-
className: "
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
}) : options ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
246
|
-
className: "".concat(style.drpSearchBox, " ").concat(isInActiveState ? style.lineActive : ''),
|
|
232
|
+
className: "".concat(_LookupSearchModule["default"].searchStyle, " ").concat(isBoxed ? _LookupSearchModule["default"].boxStyle : '', " ").concat(isFocus ? "".concat(_LookupSearchModule["default"].active, " ").concat(activeClass ? activeClass : '', " ") : '', " ").concat(searchStr || isFocus ? _LookupSearchModule["default"].focusWidth : '')
|
|
233
|
+
}, options && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
234
|
+
className: "".concat(_LookupSearchModule["default"].drpSearchBox, " ").concat(isFocus ? _LookupSearchModule["default"].lineActive : ''),
|
|
247
235
|
isCover: false,
|
|
248
236
|
align: "vertical",
|
|
249
237
|
alignBox: "row",
|
|
@@ -254,14 +242,18 @@ var SearchUI = /*#__PURE__*/function (_Component2) {
|
|
|
254
242
|
}), /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
255
243
|
name: "ZD-down",
|
|
256
244
|
size: "7",
|
|
257
|
-
iconClass:
|
|
258
|
-
}))
|
|
245
|
+
iconClass: _LookupSearchModule["default"].iconArrow
|
|
246
|
+
})), isSearchIconNeed && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
247
|
+
className: _LookupSearchModule["default"].searchIconBox
|
|
248
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
259
249
|
name: "ZD-search",
|
|
260
|
-
size: "11"
|
|
261
|
-
|
|
262
|
-
}) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
250
|
+
size: "11"
|
|
251
|
+
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
263
252
|
flexible: true
|
|
264
253
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
254
|
+
customClass: {
|
|
255
|
+
customTextBox: "".concat(isBoxed ? _LookupSearchModule["default"].inputBox : '')
|
|
256
|
+
},
|
|
265
257
|
customProps: {
|
|
266
258
|
TextBoxProps: {
|
|
267
259
|
'data-a11y-autofocus': true
|
|
@@ -279,8 +271,7 @@ var SearchUI = /*#__PURE__*/function (_Component2) {
|
|
|
279
271
|
size: "small",
|
|
280
272
|
inputRef: getRef,
|
|
281
273
|
onClear: this.handleClear,
|
|
282
|
-
onClearMouseDown: _Common.cancelBubblingEffect
|
|
283
|
-
needBorder: false
|
|
274
|
+
onClearMouseDown: _Common.cancelBubblingEffect
|
|
284
275
|
})));
|
|
285
276
|
}
|
|
286
277
|
}]);
|
|
@@ -7,12 +7,8 @@ exports.Search_propTypes = exports.SearchUI_propTypes = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var _SearchUI_propTypes;
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
11
|
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
|
|
16
12
|
var Search_propTypes = {
|
|
17
13
|
getRef: _propTypes["default"].func,
|
|
18
14
|
onBlur: _propTypes["default"].func,
|
|
@@ -23,7 +19,7 @@ var Search_propTypes = {
|
|
|
23
19
|
value: _propTypes["default"].string
|
|
24
20
|
};
|
|
25
21
|
exports.Search_propTypes = Search_propTypes;
|
|
26
|
-
var SearchUI_propTypes =
|
|
22
|
+
var SearchUI_propTypes = {
|
|
27
23
|
activeClass: _propTypes["default"].string,
|
|
28
24
|
dataId: _propTypes["default"].string,
|
|
29
25
|
getRef: _propTypes["default"].func,
|
|
@@ -39,8 +35,6 @@ var SearchUI_propTypes = (_SearchUI_propTypes = {
|
|
|
39
35
|
options: _propTypes["default"].array,
|
|
40
36
|
placeHolder: _propTypes["default"].string,
|
|
41
37
|
searchStr: _propTypes["default"].string,
|
|
42
|
-
title: _propTypes["default"].string
|
|
43
|
-
|
|
44
|
-
isActive: _propTypes["default"].bool
|
|
45
|
-
}, _defineProperty(_SearchUI_propTypes, "renderChildren", _propTypes["default"].func), _defineProperty(_SearchUI_propTypes, "customStyle", _propTypes["default"].object), _SearchUI_propTypes);
|
|
38
|
+
title: _propTypes["default"].string
|
|
39
|
+
};
|
|
46
40
|
exports.SearchUI_propTypes = SearchUI_propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-187.2",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@zohodesk-private/node-plugins": "1.1.8",
|
|
64
64
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
65
65
|
"@zohodesk/a11y": "2.2.6",
|
|
66
|
-
"@zohodesk/components": "1.2
|
|
66
|
+
"@zohodesk/components": "1.0.0-temp-199.2",
|
|
67
67
|
"@zohodesk/hooks": "2.0.5",
|
|
68
68
|
"@zohodesk/icons": "1.0.62",
|
|
69
69
|
"@zohodesk/svg": "1.1.19",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"velocity-react": "1.4.3",
|
|
78
78
|
"@zohodesk/variables": "1.0.0",
|
|
79
|
-
"@zohodesk/components": "1.2.
|
|
79
|
+
"@zohodesk/components": "1.2.47",
|
|
80
80
|
"@zohodesk/icons": "1.0.62",
|
|
81
81
|
"@zohodesk/svg": "1.1.19",
|
|
82
82
|
"@zohodesk/virtualizer": "1.0.3",
|