@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
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`DotProvider Snapshot rendering the additional ...rest props 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="testClass"
|
|
7
|
+
data-id="test-id"
|
|
8
|
+
data-mode="light"
|
|
9
|
+
data-theme="blue"
|
|
10
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
11
|
+
>
|
|
12
|
+
This is a DotProvider component
|
|
13
|
+
</div>
|
|
14
|
+
</DocumentFragment>
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
exports[`DotProvider Snapshot rendering the baseFontUnit props of 1 1`] = `
|
|
18
|
+
<DocumentFragment>
|
|
19
|
+
<div
|
|
20
|
+
data-mode="light"
|
|
21
|
+
data-theme="blue"
|
|
22
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 1;"
|
|
23
|
+
/>
|
|
24
|
+
</DocumentFragment>
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`DotProvider Snapshot rendering the baseFontUnit props of 1em 1`] = `
|
|
28
|
+
<DocumentFragment>
|
|
29
|
+
<div
|
|
30
|
+
data-mode="light"
|
|
31
|
+
data-theme="blue"
|
|
32
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 1em;"
|
|
33
|
+
/>
|
|
34
|
+
</DocumentFragment>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`DotProvider Snapshot rendering the baseFontUnit props of 1px 1`] = `
|
|
38
|
+
<DocumentFragment>
|
|
39
|
+
<div
|
|
40
|
+
data-mode="light"
|
|
41
|
+
data-theme="blue"
|
|
42
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 1px;"
|
|
43
|
+
/>
|
|
44
|
+
</DocumentFragment>
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`DotProvider Snapshot rendering the baseFontUnit props of 1rem 1`] = `
|
|
48
|
+
<DocumentFragment>
|
|
49
|
+
<div
|
|
50
|
+
data-mode="light"
|
|
51
|
+
data-theme="blue"
|
|
52
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 1rem;"
|
|
53
|
+
/>
|
|
54
|
+
</DocumentFragment>
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
exports[`DotProvider Snapshot rendering the baseZoomUnit props of 0.5 1`] = `
|
|
58
|
+
<DocumentFragment>
|
|
59
|
+
<div
|
|
60
|
+
data-mode="light"
|
|
61
|
+
data-theme="blue"
|
|
62
|
+
style="--zd_baseUnit: 0.5px; --zd_baseFontUnit: 16px;"
|
|
63
|
+
/>
|
|
64
|
+
</DocumentFragment>
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
exports[`DotProvider Snapshot rendering the baseZoomUnit props of 0.8 1`] = `
|
|
68
|
+
<DocumentFragment>
|
|
69
|
+
<div
|
|
70
|
+
data-mode="light"
|
|
71
|
+
data-theme="blue"
|
|
72
|
+
style="--zd_baseUnit: 0.8px; --zd_baseFontUnit: 16px;"
|
|
73
|
+
/>
|
|
74
|
+
</DocumentFragment>
|
|
75
|
+
`;
|
|
76
|
+
|
|
77
|
+
exports[`DotProvider Snapshot rendering the baseZoomUnit props of 1 1`] = `
|
|
78
|
+
<DocumentFragment>
|
|
79
|
+
<div
|
|
80
|
+
data-mode="light"
|
|
81
|
+
data-theme="blue"
|
|
82
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
83
|
+
/>
|
|
84
|
+
</DocumentFragment>
|
|
85
|
+
`;
|
|
86
|
+
|
|
87
|
+
exports[`DotProvider Snapshot rendering the baseZoomUnit props of 1.2 1`] = `
|
|
88
|
+
<DocumentFragment>
|
|
89
|
+
<div
|
|
90
|
+
data-mode="light"
|
|
91
|
+
data-theme="blue"
|
|
92
|
+
style="--zd_baseUnit: 1.2px; --zd_baseFontUnit: 16px;"
|
|
93
|
+
/>
|
|
94
|
+
</DocumentFragment>
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of dark along with theme-color of blue 1`] = `
|
|
98
|
+
<DocumentFragment>
|
|
99
|
+
<div
|
|
100
|
+
data-desk-mode="dark"
|
|
101
|
+
data-desk-theme="blue"
|
|
102
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
103
|
+
/>
|
|
104
|
+
</DocumentFragment>
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of dark along with theme-color of green 1`] = `
|
|
108
|
+
<DocumentFragment>
|
|
109
|
+
<div
|
|
110
|
+
data-desk-mode="dark"
|
|
111
|
+
data-desk-theme="green"
|
|
112
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
113
|
+
/>
|
|
114
|
+
</DocumentFragment>
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of dark along with theme-color of orange 1`] = `
|
|
118
|
+
<DocumentFragment>
|
|
119
|
+
<div
|
|
120
|
+
data-desk-mode="dark"
|
|
121
|
+
data-desk-theme="orange"
|
|
122
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
123
|
+
/>
|
|
124
|
+
</DocumentFragment>
|
|
125
|
+
`;
|
|
126
|
+
|
|
127
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of dark along with theme-color of red 1`] = `
|
|
128
|
+
<DocumentFragment>
|
|
129
|
+
<div
|
|
130
|
+
data-desk-mode="dark"
|
|
131
|
+
data-desk-theme="red"
|
|
132
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
133
|
+
/>
|
|
134
|
+
</DocumentFragment>
|
|
135
|
+
`;
|
|
136
|
+
|
|
137
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of dark along with theme-color of yellow 1`] = `
|
|
138
|
+
<DocumentFragment>
|
|
139
|
+
<div
|
|
140
|
+
data-desk-mode="dark"
|
|
141
|
+
data-desk-theme="yellow"
|
|
142
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
143
|
+
/>
|
|
144
|
+
</DocumentFragment>
|
|
145
|
+
`;
|
|
146
|
+
|
|
147
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of light along with theme-color of blue 1`] = `
|
|
148
|
+
<DocumentFragment>
|
|
149
|
+
<div
|
|
150
|
+
data-desk-mode="light"
|
|
151
|
+
data-desk-theme="blue"
|
|
152
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
153
|
+
/>
|
|
154
|
+
</DocumentFragment>
|
|
155
|
+
`;
|
|
156
|
+
|
|
157
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of light along with theme-color of green 1`] = `
|
|
158
|
+
<DocumentFragment>
|
|
159
|
+
<div
|
|
160
|
+
data-desk-mode="light"
|
|
161
|
+
data-desk-theme="green"
|
|
162
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
163
|
+
/>
|
|
164
|
+
</DocumentFragment>
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of light along with theme-color of orange 1`] = `
|
|
168
|
+
<DocumentFragment>
|
|
169
|
+
<div
|
|
170
|
+
data-desk-mode="light"
|
|
171
|
+
data-desk-theme="orange"
|
|
172
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
173
|
+
/>
|
|
174
|
+
</DocumentFragment>
|
|
175
|
+
`;
|
|
176
|
+
|
|
177
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of light along with theme-color of red 1`] = `
|
|
178
|
+
<DocumentFragment>
|
|
179
|
+
<div
|
|
180
|
+
data-desk-mode="light"
|
|
181
|
+
data-desk-theme="red"
|
|
182
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
183
|
+
/>
|
|
184
|
+
</DocumentFragment>
|
|
185
|
+
`;
|
|
186
|
+
|
|
187
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of light along with theme-color of yellow 1`] = `
|
|
188
|
+
<DocumentFragment>
|
|
189
|
+
<div
|
|
190
|
+
data-desk-mode="light"
|
|
191
|
+
data-desk-theme="yellow"
|
|
192
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
193
|
+
/>
|
|
194
|
+
</DocumentFragment>
|
|
195
|
+
`;
|
|
196
|
+
|
|
197
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of pureDark along with theme-color of blue 1`] = `
|
|
198
|
+
<DocumentFragment>
|
|
199
|
+
<div
|
|
200
|
+
data-desk-mode="pureDark"
|
|
201
|
+
data-desk-theme="blue"
|
|
202
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
203
|
+
/>
|
|
204
|
+
</DocumentFragment>
|
|
205
|
+
`;
|
|
206
|
+
|
|
207
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of pureDark along with theme-color of green 1`] = `
|
|
208
|
+
<DocumentFragment>
|
|
209
|
+
<div
|
|
210
|
+
data-desk-mode="pureDark"
|
|
211
|
+
data-desk-theme="green"
|
|
212
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
213
|
+
/>
|
|
214
|
+
</DocumentFragment>
|
|
215
|
+
`;
|
|
216
|
+
|
|
217
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of pureDark along with theme-color of orange 1`] = `
|
|
218
|
+
<DocumentFragment>
|
|
219
|
+
<div
|
|
220
|
+
data-desk-mode="pureDark"
|
|
221
|
+
data-desk-theme="orange"
|
|
222
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
223
|
+
/>
|
|
224
|
+
</DocumentFragment>
|
|
225
|
+
`;
|
|
226
|
+
|
|
227
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of pureDark along with theme-color of red 1`] = `
|
|
228
|
+
<DocumentFragment>
|
|
229
|
+
<div
|
|
230
|
+
data-desk-mode="pureDark"
|
|
231
|
+
data-desk-theme="red"
|
|
232
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
233
|
+
/>
|
|
234
|
+
</DocumentFragment>
|
|
235
|
+
`;
|
|
236
|
+
|
|
237
|
+
exports[`DotProvider Snapshot rendering the custom themeAppearanceAttr and themeColorAttr props with theme-appearance of pureDark along with theme-color of yellow 1`] = `
|
|
238
|
+
<DocumentFragment>
|
|
239
|
+
<div
|
|
240
|
+
data-desk-mode="pureDark"
|
|
241
|
+
data-desk-theme="yellow"
|
|
242
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
243
|
+
/>
|
|
244
|
+
</DocumentFragment>
|
|
245
|
+
`;
|
|
246
|
+
|
|
247
|
+
exports[`DotProvider Snapshot rendering the default attributes, styles and modified the tag props 1`] = `
|
|
248
|
+
<DocumentFragment>
|
|
249
|
+
<span
|
|
250
|
+
data-mode="light"
|
|
251
|
+
data-theme="blue"
|
|
252
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
253
|
+
>
|
|
254
|
+
This is a DotProvider component
|
|
255
|
+
</span>
|
|
256
|
+
</DocumentFragment>
|
|
257
|
+
`;
|
|
258
|
+
|
|
259
|
+
exports[`DotProvider Snapshot rendering the default attributes, styles and modifying the tag prop to React.Fragment 1`] = `
|
|
260
|
+
<html
|
|
261
|
+
data-mode="light"
|
|
262
|
+
data-theme="blue"
|
|
263
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
264
|
+
>
|
|
265
|
+
<head />
|
|
266
|
+
<body>
|
|
267
|
+
<div>
|
|
268
|
+
This is a DotProvider component
|
|
269
|
+
</div>
|
|
270
|
+
</body>
|
|
271
|
+
</html>
|
|
272
|
+
`;
|
|
273
|
+
|
|
274
|
+
exports[`DotProvider Snapshot rendering the default props 1`] = `
|
|
275
|
+
<DocumentFragment>
|
|
276
|
+
<div
|
|
277
|
+
data-mode="light"
|
|
278
|
+
data-theme="blue"
|
|
279
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
280
|
+
>
|
|
281
|
+
This is a DotProvider component
|
|
282
|
+
</div>
|
|
283
|
+
</DocumentFragment>
|
|
284
|
+
`;
|
|
285
|
+
|
|
286
|
+
exports[`DotProvider Snapshot rendering the fontUnitVariable prop along with baseFontUnit props 1`] = `
|
|
287
|
+
<DocumentFragment>
|
|
288
|
+
<div
|
|
289
|
+
data-mode="light"
|
|
290
|
+
data-theme="blue"
|
|
291
|
+
style="--zd_baseUnit: 1px; --gc_baseFontUnit: 14px;"
|
|
292
|
+
>
|
|
293
|
+
This is a DotProvider component
|
|
294
|
+
</div>
|
|
295
|
+
</DocumentFragment>
|
|
296
|
+
`;
|
|
297
|
+
|
|
298
|
+
exports[`DotProvider Snapshot rendering the providerRef props 1`] = `
|
|
299
|
+
<DocumentFragment>
|
|
300
|
+
<div>
|
|
301
|
+
This is a DotProvider component
|
|
302
|
+
</div>
|
|
303
|
+
</DocumentFragment>
|
|
304
|
+
`;
|
|
305
|
+
|
|
306
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of dark along with theme-color of blue 1`] = `
|
|
307
|
+
<DocumentFragment>
|
|
308
|
+
<div
|
|
309
|
+
data-mode="dark"
|
|
310
|
+
data-theme="blue"
|
|
311
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
312
|
+
/>
|
|
313
|
+
</DocumentFragment>
|
|
314
|
+
`;
|
|
315
|
+
|
|
316
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of dark along with theme-color of green 1`] = `
|
|
317
|
+
<DocumentFragment>
|
|
318
|
+
<div
|
|
319
|
+
data-mode="dark"
|
|
320
|
+
data-theme="green"
|
|
321
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
322
|
+
/>
|
|
323
|
+
</DocumentFragment>
|
|
324
|
+
`;
|
|
325
|
+
|
|
326
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of dark along with theme-color of orange 1`] = `
|
|
327
|
+
<DocumentFragment>
|
|
328
|
+
<div
|
|
329
|
+
data-mode="dark"
|
|
330
|
+
data-theme="orange"
|
|
331
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
332
|
+
/>
|
|
333
|
+
</DocumentFragment>
|
|
334
|
+
`;
|
|
335
|
+
|
|
336
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of dark along with theme-color of red 1`] = `
|
|
337
|
+
<DocumentFragment>
|
|
338
|
+
<div
|
|
339
|
+
data-mode="dark"
|
|
340
|
+
data-theme="red"
|
|
341
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
342
|
+
/>
|
|
343
|
+
</DocumentFragment>
|
|
344
|
+
`;
|
|
345
|
+
|
|
346
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of dark along with theme-color of yellow 1`] = `
|
|
347
|
+
<DocumentFragment>
|
|
348
|
+
<div
|
|
349
|
+
data-mode="dark"
|
|
350
|
+
data-theme="yellow"
|
|
351
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
352
|
+
/>
|
|
353
|
+
</DocumentFragment>
|
|
354
|
+
`;
|
|
355
|
+
|
|
356
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of light along with theme-color of blue 1`] = `
|
|
357
|
+
<DocumentFragment>
|
|
358
|
+
<div
|
|
359
|
+
data-mode="light"
|
|
360
|
+
data-theme="blue"
|
|
361
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
362
|
+
/>
|
|
363
|
+
</DocumentFragment>
|
|
364
|
+
`;
|
|
365
|
+
|
|
366
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of light along with theme-color of green 1`] = `
|
|
367
|
+
<DocumentFragment>
|
|
368
|
+
<div
|
|
369
|
+
data-mode="light"
|
|
370
|
+
data-theme="green"
|
|
371
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
372
|
+
/>
|
|
373
|
+
</DocumentFragment>
|
|
374
|
+
`;
|
|
375
|
+
|
|
376
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of light along with theme-color of orange 1`] = `
|
|
377
|
+
<DocumentFragment>
|
|
378
|
+
<div
|
|
379
|
+
data-mode="light"
|
|
380
|
+
data-theme="orange"
|
|
381
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
382
|
+
/>
|
|
383
|
+
</DocumentFragment>
|
|
384
|
+
`;
|
|
385
|
+
|
|
386
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of light along with theme-color of red 1`] = `
|
|
387
|
+
<DocumentFragment>
|
|
388
|
+
<div
|
|
389
|
+
data-mode="light"
|
|
390
|
+
data-theme="red"
|
|
391
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
392
|
+
/>
|
|
393
|
+
</DocumentFragment>
|
|
394
|
+
`;
|
|
395
|
+
|
|
396
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of light along with theme-color of yellow 1`] = `
|
|
397
|
+
<DocumentFragment>
|
|
398
|
+
<div
|
|
399
|
+
data-mode="light"
|
|
400
|
+
data-theme="yellow"
|
|
401
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
402
|
+
/>
|
|
403
|
+
</DocumentFragment>
|
|
404
|
+
`;
|
|
405
|
+
|
|
406
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of pureDark along with theme-color of blue 1`] = `
|
|
407
|
+
<DocumentFragment>
|
|
408
|
+
<div
|
|
409
|
+
data-mode="pureDark"
|
|
410
|
+
data-theme="blue"
|
|
411
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
412
|
+
/>
|
|
413
|
+
</DocumentFragment>
|
|
414
|
+
`;
|
|
415
|
+
|
|
416
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of pureDark along with theme-color of green 1`] = `
|
|
417
|
+
<DocumentFragment>
|
|
418
|
+
<div
|
|
419
|
+
data-mode="pureDark"
|
|
420
|
+
data-theme="green"
|
|
421
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
422
|
+
/>
|
|
423
|
+
</DocumentFragment>
|
|
424
|
+
`;
|
|
425
|
+
|
|
426
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of pureDark along with theme-color of orange 1`] = `
|
|
427
|
+
<DocumentFragment>
|
|
428
|
+
<div
|
|
429
|
+
data-mode="pureDark"
|
|
430
|
+
data-theme="orange"
|
|
431
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
432
|
+
/>
|
|
433
|
+
</DocumentFragment>
|
|
434
|
+
`;
|
|
435
|
+
|
|
436
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of pureDark along with theme-color of red 1`] = `
|
|
437
|
+
<DocumentFragment>
|
|
438
|
+
<div
|
|
439
|
+
data-mode="pureDark"
|
|
440
|
+
data-theme="red"
|
|
441
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
442
|
+
/>
|
|
443
|
+
</DocumentFragment>
|
|
444
|
+
`;
|
|
445
|
+
|
|
446
|
+
exports[`DotProvider Snapshot rendering the theme-appearance of pureDark along with theme-color of yellow 1`] = `
|
|
447
|
+
<DocumentFragment>
|
|
448
|
+
<div
|
|
449
|
+
data-mode="pureDark"
|
|
450
|
+
data-theme="yellow"
|
|
451
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
452
|
+
/>
|
|
453
|
+
</DocumentFragment>
|
|
454
|
+
`;
|
|
455
|
+
|
|
456
|
+
exports[`DotProvider Snapshot rendering the wrong themeAppearance and themeColor 1`] = `
|
|
457
|
+
<DocumentFragment>
|
|
458
|
+
<div
|
|
459
|
+
data-mode="ligt"
|
|
460
|
+
data-theme="gren"
|
|
461
|
+
style="--zd_baseUnit: 1px; --zd_baseFontUnit: 16px;"
|
|
462
|
+
>
|
|
463
|
+
This is a DotProvider component
|
|
464
|
+
</div>
|
|
465
|
+
</DocumentFragment>
|
|
466
|
+
`;
|
|
467
|
+
|
|
468
|
+
exports[`DotProvider Snapshot rendering the zoomUnitVariable prop along with baseZoomUnit props 1`] = `
|
|
469
|
+
<DocumentFragment>
|
|
470
|
+
<div
|
|
471
|
+
data-mode="light"
|
|
472
|
+
data-theme="blue"
|
|
473
|
+
style="--gc_baseUnit: 1.1px; --zd_baseFontUnit: 16px;"
|
|
474
|
+
>
|
|
475
|
+
This is a DotProvider component
|
|
476
|
+
</div>
|
|
477
|
+
</DocumentFragment>
|
|
478
|
+
`;
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
.audioImage {
|
|
2
2
|
background-image: url('../../images/audio_thumbnail.png');
|
|
3
3
|
background-repeat: no-repeat;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.videoImage {
|
|
7
|
+
background-image: url('../../images/video_thumbnail.png');
|
|
8
|
+
background-repeat: no-repeat;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pdfImage {
|
|
12
|
+
background-image: url('../../images/pdf_thumbnail.png');
|
|
13
|
+
background-repeat: no-repeat;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.writerImage {
|
|
17
|
+
background-image: url('../../images/writer_thumbnail.png');
|
|
18
|
+
background-repeat: no-repeat;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.showImage {
|
|
22
|
+
background-image: url('../../images/show_thumbnail.png');
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sheetImage {
|
|
27
|
+
background-image: url('../../images/sheet_thumbnail.png');
|
|
28
|
+
background-repeat: no-repeat;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.mailImage {
|
|
32
|
+
background-image: url('../../images/mail_thumbnail.png');
|
|
33
|
+
background-repeat: no-repeat;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.otherImage {
|
|
37
|
+
background-image: url('../../images/otherfile_thumbnail.png');
|
|
38
|
+
background-repeat: no-repeat;
|
|
4
39
|
}
|
|
@@ -227,9 +227,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
227
227
|
_customProps$TagWrapp = customProps.TagWrapperProps,
|
|
228
228
|
TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
|
|
229
229
|
_customProps$TagProps = customProps.TagProps,
|
|
230
|
-
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps
|
|
231
|
-
_customProps$listProp = customProps.listProps,
|
|
232
|
-
listProps = _customProps$listProp === void 0 ? {} : _customProps$listProp;
|
|
230
|
+
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
|
|
233
231
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
232
|
className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
|
|
235
233
|
onClick: _General.stopBubbling,
|
|
@@ -338,7 +336,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
338
336
|
var name = item.name,
|
|
339
337
|
isNew = item.isNew,
|
|
340
338
|
listItemProps = item.listItemProps;
|
|
341
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"],
|
|
339
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
342
340
|
key: index,
|
|
343
341
|
index: index,
|
|
344
342
|
autoHover: true,
|
|
@@ -351,7 +349,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
351
349
|
isDisabled: listDisabled,
|
|
352
350
|
customProps: listItemProps,
|
|
353
351
|
customClass: listItemClass
|
|
354
|
-
},
|
|
352
|
+
}, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
355
353
|
alignBox: "row",
|
|
356
354
|
align: "vertical"
|
|
357
355
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -25,8 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
-
|
|
30
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
29
|
|
|
32
30
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -102,10 +100,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
102
100
|
onSearch = _this$props3.onSearch,
|
|
103
101
|
needSearchFetching = _this$props3.needSearchFetching,
|
|
104
102
|
searchStr = _this$props3.searchStr,
|
|
105
|
-
i18nKeys = _this$props3.i18nKeys
|
|
106
|
-
customProps = _this$props3.customProps;
|
|
107
|
-
var _customProps$toggleDr = customProps.toggleDropDownProps,
|
|
108
|
-
toggleDropDownProps = _customProps$toggleDr === void 0 ? {} : _customProps$toggleDr;
|
|
103
|
+
i18nKeys = _this$props3.i18nKeys;
|
|
109
104
|
var _i18nKeys$title = i18nKeys.title,
|
|
110
105
|
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
111
106
|
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
@@ -114,7 +109,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
114
109
|
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
115
110
|
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
116
111
|
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
117
|
-
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"],
|
|
112
|
+
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
118
113
|
title: title,
|
|
119
114
|
options: departmentList,
|
|
120
115
|
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
@@ -143,7 +138,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
143
138
|
isNextOptions: isNextOptions,
|
|
144
139
|
onSearch: onSearch,
|
|
145
140
|
needSearchFetching: needSearchFetching
|
|
146
|
-
}
|
|
141
|
+
});
|
|
147
142
|
}
|
|
148
143
|
}]);
|
|
149
144
|
|
|
@@ -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
|
-
})),
|
|
34
|
+
})), _propTypes);
|
|
35
35
|
exports.propTypes = propTypes;
|