@zohodesk/dot 1.0.0-temp-187.2 → 1.0.0-temp-200
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/Attachment/Attachment.js +2 -1
- package/es/Attachment/Attachment.module.css +7 -3
- package/es/AttachmentViewer/Attachment.js +60 -1
- package/es/AttachmentViewer/AttachmentViewer.js +146 -12
- package/es/AttachmentViewer/AttachmentViewer.module.css +124 -4
- package/es/DotProvider/__tests__/DotProvider.spec.js +174 -0
- package/es/DotProvider/__tests__/__snapshots__/DotProvider.spec.js.snap +478 -0
- package/es/common/dot_common.module.css +35 -0
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
- package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/es/list/DepartmentDropDown/props/propTypes.js +1 -2
- package/es/list/status/StatusListItem/StatusListItem.module.css +5 -35
- package/es/lookup/header/Search/LookupSearch.module.css +33 -27
- package/es/lookup/header/Search/Search.js +58 -40
- package/es/lookup/header/Search/__tests__/Search.spec.js +67 -1
- package/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +316 -3
- package/es/lookup/header/Search/props/defaultProps.js +3 -1
- package/es/lookup/header/Search/props/propTypes.js +6 -1
- package/lib/Attachment/Attachment.js +3 -1
- package/lib/Attachment/Attachment.module.css +7 -3
- package/lib/AttachmentViewer/Attachment.js +88 -1
- package/lib/AttachmentViewer/AttachmentViewer.js +147 -13
- package/lib/AttachmentViewer/AttachmentViewer.module.css +124 -4
- package/lib/DotProvider/__tests__/DotProvider.spec.js +441 -0
- package/lib/DotProvider/__tests__/__snapshots__/DotProvider.spec.js.snap +478 -0
- package/lib/common/dot_common.module.css +35 -0
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
- package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +5 -35
- package/lib/lookup/header/Search/LookupSearch.module.css +33 -27
- package/lib/lookup/header/Search/Search.js +76 -66
- package/lib/lookup/header/Search/__tests__/Search.spec.js +65 -0
- package/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +316 -3
- package/lib/lookup/header/Search/props/defaultProps.js +3 -1
- package/lib/lookup/header/Search/props/propTypes.js +6 -1
- package/package.json +8 -8
- package/result.json +1 -1
- package/unittest/index.html +2 -6
- /package/images/{audio_thumbnail.png → audio_thumbnail_old.png} +0 -0
|
@@ -1,13 +1,196 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Search rendering the customized style search 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="wrapper searchWrapperClass borderType
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
flex rowdir vCenter"
|
|
10
|
+
data-id="containerComponent"
|
|
11
|
+
data-selector-id="container"
|
|
12
|
+
data-test-id="containerComponent"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
class="grow basis shrinkOff"
|
|
16
|
+
data-id="boxComponent"
|
|
17
|
+
data-selector-id="box"
|
|
18
|
+
data-test-id="boxComponent"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
class="container effect flex rowdir"
|
|
22
|
+
data-id="containerComponent"
|
|
23
|
+
data-selector-id="textBoxIcon"
|
|
24
|
+
data-test-id="containerComponent"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
class="grow basis shrinkOff"
|
|
28
|
+
data-id="boxComponent"
|
|
29
|
+
data-selector-id="box"
|
|
30
|
+
data-test-id="boxComponent"
|
|
31
|
+
>
|
|
32
|
+
<input
|
|
33
|
+
class=" container small default effect borderColor_default "
|
|
34
|
+
data-a11y-autofocus="true"
|
|
35
|
+
data-id="textBoxIcon"
|
|
36
|
+
data-selector-id="textBoxIcon"
|
|
37
|
+
data-test-id="textBoxIcon"
|
|
38
|
+
maxlength="250"
|
|
39
|
+
type="text"
|
|
40
|
+
value=""
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
<div
|
|
44
|
+
class="iconContainer shrinkOff"
|
|
45
|
+
data-id="boxComponent"
|
|
46
|
+
data-selector-id="box"
|
|
47
|
+
data-test-id="boxComponent"
|
|
48
|
+
>
|
|
49
|
+
<div
|
|
50
|
+
class="flex cover rowdir"
|
|
51
|
+
data-id="containerComponent"
|
|
52
|
+
data-selector-id="container"
|
|
53
|
+
data-test-id="containerComponent"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</DocumentFragment>
|
|
60
|
+
`;
|
|
61
|
+
|
|
3
62
|
exports[`Search rendering the defult props 1`] = `
|
|
4
63
|
<DocumentFragment>
|
|
5
64
|
<div
|
|
6
|
-
class="
|
|
65
|
+
class="wrapper borderType
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
flex rowdir vCenter"
|
|
69
|
+
data-id="containerComponent"
|
|
70
|
+
data-selector-id="container"
|
|
71
|
+
data-test-id="containerComponent"
|
|
72
|
+
>
|
|
73
|
+
<div
|
|
74
|
+
class="grow basis shrinkOff"
|
|
75
|
+
data-id="boxComponent"
|
|
76
|
+
data-selector-id="box"
|
|
77
|
+
data-test-id="boxComponent"
|
|
78
|
+
>
|
|
79
|
+
<div
|
|
80
|
+
class="container effect flex rowdir"
|
|
81
|
+
data-id="containerComponent"
|
|
82
|
+
data-selector-id="textBoxIcon"
|
|
83
|
+
data-test-id="containerComponent"
|
|
84
|
+
>
|
|
85
|
+
<div
|
|
86
|
+
class="grow basis shrinkOff"
|
|
87
|
+
data-id="boxComponent"
|
|
88
|
+
data-selector-id="box"
|
|
89
|
+
data-test-id="boxComponent"
|
|
90
|
+
>
|
|
91
|
+
<input
|
|
92
|
+
class=" container small default effect borderColor_default "
|
|
93
|
+
data-a11y-autofocus="true"
|
|
94
|
+
data-id="textBoxIcon"
|
|
95
|
+
data-selector-id="textBoxIcon"
|
|
96
|
+
data-test-id="textBoxIcon"
|
|
97
|
+
maxlength="250"
|
|
98
|
+
type="text"
|
|
99
|
+
value=""
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
<div
|
|
103
|
+
class="iconContainer shrinkOff"
|
|
104
|
+
data-id="boxComponent"
|
|
105
|
+
data-selector-id="box"
|
|
106
|
+
data-test-id="boxComponent"
|
|
107
|
+
>
|
|
108
|
+
<div
|
|
109
|
+
class="flex cover rowdir"
|
|
110
|
+
data-id="containerComponent"
|
|
111
|
+
data-selector-id="container"
|
|
112
|
+
data-test-id="containerComponent"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</DocumentFragment>
|
|
119
|
+
`;
|
|
120
|
+
|
|
121
|
+
exports[`Search rendering the prop hasSeparator is false 1`] = `
|
|
122
|
+
<DocumentFragment>
|
|
123
|
+
<div
|
|
124
|
+
class="wrapper borderType
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
flex rowdir vCenter"
|
|
128
|
+
data-id="containerComponent"
|
|
129
|
+
data-selector-id="container"
|
|
130
|
+
data-test-id="containerComponent"
|
|
131
|
+
>
|
|
132
|
+
<div
|
|
133
|
+
class="grow basis shrinkOff"
|
|
134
|
+
data-id="boxComponent"
|
|
135
|
+
data-selector-id="box"
|
|
136
|
+
data-test-id="boxComponent"
|
|
137
|
+
>
|
|
138
|
+
<div
|
|
139
|
+
class="container effect flex rowdir"
|
|
140
|
+
data-id="containerComponent"
|
|
141
|
+
data-selector-id="textBoxIcon"
|
|
142
|
+
data-test-id="containerComponent"
|
|
143
|
+
>
|
|
144
|
+
<div
|
|
145
|
+
class="grow basis shrinkOff"
|
|
146
|
+
data-id="boxComponent"
|
|
147
|
+
data-selector-id="box"
|
|
148
|
+
data-test-id="boxComponent"
|
|
149
|
+
>
|
|
150
|
+
<input
|
|
151
|
+
class=" container small default effect borderColor_default "
|
|
152
|
+
data-a11y-autofocus="true"
|
|
153
|
+
data-id="textBoxIcon"
|
|
154
|
+
data-selector-id="textBoxIcon"
|
|
155
|
+
data-test-id="textBoxIcon"
|
|
156
|
+
maxlength="250"
|
|
157
|
+
type="text"
|
|
158
|
+
value=""
|
|
159
|
+
/>
|
|
160
|
+
</div>
|
|
161
|
+
<div
|
|
162
|
+
class="iconContainer shrinkOff"
|
|
163
|
+
data-id="boxComponent"
|
|
164
|
+
data-selector-id="box"
|
|
165
|
+
data-test-id="boxComponent"
|
|
166
|
+
>
|
|
167
|
+
<div
|
|
168
|
+
class="flex cover rowdir"
|
|
169
|
+
data-id="containerComponent"
|
|
170
|
+
data-selector-id="container"
|
|
171
|
+
data-test-id="containerComponent"
|
|
172
|
+
/>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</DocumentFragment>
|
|
178
|
+
`;
|
|
179
|
+
|
|
180
|
+
exports[`Search rendering the prop hasSeparator is true 1`] = `
|
|
181
|
+
<DocumentFragment>
|
|
182
|
+
<div
|
|
183
|
+
class="wrapper borderType
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
flex rowdir vCenter"
|
|
7
187
|
data-id="containerComponent"
|
|
8
188
|
data-selector-id="container"
|
|
9
189
|
data-test-id="containerComponent"
|
|
10
190
|
>
|
|
191
|
+
<div
|
|
192
|
+
class="separator"
|
|
193
|
+
/>
|
|
11
194
|
<div
|
|
12
195
|
class="grow basis shrinkOff"
|
|
13
196
|
data-id="boxComponent"
|
|
@@ -50,9 +233,139 @@ exports[`Search rendering the defult props 1`] = `
|
|
|
50
233
|
data-test-id="containerComponent"
|
|
51
234
|
/>
|
|
52
235
|
</div>
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
</DocumentFragment>
|
|
240
|
+
`;
|
|
241
|
+
|
|
242
|
+
exports[`Search rendering the renderChildren props via function 1`] = `
|
|
243
|
+
<DocumentFragment>
|
|
244
|
+
<div
|
|
245
|
+
class="wrapper"
|
|
246
|
+
data-selector-id="toggleDropdown"
|
|
247
|
+
>
|
|
248
|
+
<div
|
|
249
|
+
class="flex rowdir vCenter"
|
|
250
|
+
data-id="containerComponent"
|
|
251
|
+
data-selector-id="container"
|
|
252
|
+
data-test-id="containerComponent"
|
|
253
|
+
>
|
|
254
|
+
<div
|
|
255
|
+
class="wrapper borderType
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
flex rowdir vCenter"
|
|
259
|
+
data-id="containerComponent"
|
|
260
|
+
data-selector-id="container"
|
|
261
|
+
data-test-id="containerComponent"
|
|
262
|
+
>
|
|
263
|
+
<div>
|
|
264
|
+
All Fields
|
|
265
|
+
</div>
|
|
53
266
|
<div
|
|
54
|
-
class="
|
|
55
|
-
|
|
267
|
+
class="grow basis shrinkOff"
|
|
268
|
+
data-id="boxComponent"
|
|
269
|
+
data-selector-id="box"
|
|
270
|
+
data-test-id="boxComponent"
|
|
271
|
+
>
|
|
272
|
+
<div
|
|
273
|
+
class="container effect flex rowdir"
|
|
274
|
+
data-id="containerComponent"
|
|
275
|
+
data-selector-id="textBoxIcon"
|
|
276
|
+
data-test-id="containerComponent"
|
|
277
|
+
>
|
|
278
|
+
<div
|
|
279
|
+
class="grow basis shrinkOff"
|
|
280
|
+
data-id="boxComponent"
|
|
281
|
+
data-selector-id="box"
|
|
282
|
+
data-test-id="boxComponent"
|
|
283
|
+
>
|
|
284
|
+
<input
|
|
285
|
+
class=" container small default effect borderColor_default "
|
|
286
|
+
data-a11y-autofocus="true"
|
|
287
|
+
data-id="textBoxIcon"
|
|
288
|
+
data-selector-id="textBoxIcon"
|
|
289
|
+
data-test-id="textBoxIcon"
|
|
290
|
+
maxlength="250"
|
|
291
|
+
type="text"
|
|
292
|
+
value=""
|
|
293
|
+
/>
|
|
294
|
+
</div>
|
|
295
|
+
<div
|
|
296
|
+
class="iconContainer shrinkOff"
|
|
297
|
+
data-id="boxComponent"
|
|
298
|
+
data-selector-id="box"
|
|
299
|
+
data-test-id="boxComponent"
|
|
300
|
+
>
|
|
301
|
+
<div
|
|
302
|
+
class="flex cover rowdir"
|
|
303
|
+
data-id="containerComponent"
|
|
304
|
+
data-selector-id="container"
|
|
305
|
+
data-test-id="containerComponent"
|
|
306
|
+
/>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
</DocumentFragment>
|
|
314
|
+
`;
|
|
315
|
+
|
|
316
|
+
exports[`Search rendering the search active 1`] = `
|
|
317
|
+
<DocumentFragment>
|
|
318
|
+
<div
|
|
319
|
+
class="wrapper borderType
|
|
320
|
+
active
|
|
321
|
+
focusWidth
|
|
322
|
+
flex rowdir vCenter"
|
|
323
|
+
data-id="containerComponent"
|
|
324
|
+
data-selector-id="container"
|
|
325
|
+
data-test-id="containerComponent"
|
|
326
|
+
>
|
|
327
|
+
<div
|
|
328
|
+
class="grow basis shrinkOff"
|
|
329
|
+
data-id="boxComponent"
|
|
330
|
+
data-selector-id="box"
|
|
331
|
+
data-test-id="boxComponent"
|
|
332
|
+
>
|
|
333
|
+
<div
|
|
334
|
+
class="container effect effectFocused flex rowdir"
|
|
335
|
+
data-id="containerComponent"
|
|
336
|
+
data-selector-id="textBoxIcon"
|
|
337
|
+
data-test-id="containerComponent"
|
|
338
|
+
>
|
|
339
|
+
<div
|
|
340
|
+
class="grow basis shrinkOff"
|
|
341
|
+
data-id="boxComponent"
|
|
342
|
+
data-selector-id="box"
|
|
343
|
+
data-test-id="boxComponent"
|
|
344
|
+
>
|
|
345
|
+
<input
|
|
346
|
+
class=" container small default effect borderColor_default "
|
|
347
|
+
data-a11y-autofocus="true"
|
|
348
|
+
data-id="textBoxIcon"
|
|
349
|
+
data-selector-id="textBoxIcon"
|
|
350
|
+
data-test-id="textBoxIcon"
|
|
351
|
+
maxlength="250"
|
|
352
|
+
type="text"
|
|
353
|
+
value=""
|
|
354
|
+
/>
|
|
355
|
+
</div>
|
|
356
|
+
<div
|
|
357
|
+
class="iconContainer shrinkOff"
|
|
358
|
+
data-id="boxComponent"
|
|
359
|
+
data-selector-id="box"
|
|
360
|
+
data-test-id="boxComponent"
|
|
361
|
+
>
|
|
362
|
+
<div
|
|
363
|
+
class="flex cover rowdir"
|
|
364
|
+
data-id="containerComponent"
|
|
365
|
+
data-selector-id="container"
|
|
366
|
+
data-test-id="containerComponent"
|
|
367
|
+
/>
|
|
368
|
+
</div>
|
|
56
369
|
</div>
|
|
57
370
|
</div>
|
|
58
371
|
</div>
|
|
@@ -7,6 +7,8 @@ exports.SearchUI_defaultProps = void 0;
|
|
|
7
7
|
var SearchUI_defaultProps = {
|
|
8
8
|
activeClass: '',
|
|
9
9
|
isBoxed: false,
|
|
10
|
-
isSearchIconNeed: false
|
|
10
|
+
isSearchIconNeed: false,
|
|
11
|
+
isActive: false,
|
|
12
|
+
hasSeparator: false
|
|
11
13
|
};
|
|
12
14
|
exports.SearchUI_defaultProps = SearchUI_defaultProps;
|
|
@@ -16,6 +16,7 @@ var Search_propTypes = {
|
|
|
16
16
|
onSelect: _propTypes["default"].func,
|
|
17
17
|
options: _propTypes["default"].array,
|
|
18
18
|
selectedId: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
19
|
+
renderChildren: _propTypes["default"].func,
|
|
19
20
|
value: _propTypes["default"].string
|
|
20
21
|
};
|
|
21
22
|
exports.Search_propTypes = Search_propTypes;
|
|
@@ -35,6 +36,10 @@ var SearchUI_propTypes = {
|
|
|
35
36
|
options: _propTypes["default"].array,
|
|
36
37
|
placeHolder: _propTypes["default"].string,
|
|
37
38
|
searchStr: _propTypes["default"].string,
|
|
38
|
-
title: _propTypes["default"].string
|
|
39
|
+
title: _propTypes["default"].string,
|
|
40
|
+
isActive: _propTypes["default"].bool,
|
|
41
|
+
hasSeparator: _propTypes["default"].bool,
|
|
42
|
+
renderChildren: _propTypes["default"].func,
|
|
43
|
+
customStyle: _propTypes["default"].object
|
|
39
44
|
};
|
|
40
45
|
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-200",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"sstest": "react-cli sstest",
|
|
38
38
|
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
39
39
|
"docs": "npm run css:review && review:props && react-cli docs",
|
|
40
|
-
"prepublishOnly": "node prePublish.js && npm run download
|
|
40
|
+
"prepublishOnly": "node prePublish.js && npm run download",
|
|
41
41
|
"postpublish": "node postPublish.js",
|
|
42
42
|
"test-clean": "react-cli clean coverage",
|
|
43
43
|
"download": "react-cli clean ./node_modules ./package-lock.json && npm install",
|
|
@@ -63,10 +63,10 @@
|
|
|
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.
|
|
66
|
+
"@zohodesk/components": "1.2.48",
|
|
67
67
|
"@zohodesk/hooks": "2.0.5",
|
|
68
|
-
"@zohodesk/icons": "1.0.
|
|
69
|
-
"@zohodesk/svg": "1.1.
|
|
68
|
+
"@zohodesk/icons": "1.0.64",
|
|
69
|
+
"@zohodesk/svg": "1.1.22",
|
|
70
70
|
"@zohodesk/utils": "1.3.14",
|
|
71
71
|
"@zohodesk/variables": "1.0.0",
|
|
72
72
|
"@zohodesk/virtualizer": "1.0.3",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"velocity-react": "1.4.3",
|
|
78
78
|
"@zohodesk/variables": "1.0.0",
|
|
79
|
-
"@zohodesk/components": "1.2.
|
|
80
|
-
"@zohodesk/icons": "1.0.
|
|
81
|
-
"@zohodesk/svg": "1.1.
|
|
79
|
+
"@zohodesk/components": "1.2.48",
|
|
80
|
+
"@zohodesk/icons": "1.0.64",
|
|
81
|
+
"@zohodesk/svg": "1.1.22",
|
|
82
82
|
"@zohodesk/virtualizer": "1.0.3",
|
|
83
83
|
"react-sortable-hoc": "^0.8.3",
|
|
84
84
|
"@zohodesk/hooks": "2.0.5",
|