@zohodesk/components 1.0.0-temp-196 → 1.0.0-temp-197
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/PropUnificationExcludeFilesArray.js +230 -230
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +0 -5
- package/css_error.log +1 -1
- package/es/AppContainer/AppContainer.js +0 -1
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +2 -2
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
- package/es/Button/css/Button.module.css +22 -6
- package/es/Buttongroup/Buttongroup.module.css +1 -1
- package/es/DateTime/DateTime.module.css +11 -8
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +11 -7
- package/es/DropBox/css/DropBox.module.css +1 -1
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
- package/es/MultiSelect/MultiSelect.js +5 -5
- package/es/Provider/LibraryContext.js +3 -15
- package/es/Ribbon/Ribbon.module.css +6 -6
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
- package/es/Switch/Switch.module.css +2 -1
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
- package/es/Tab/Tabs.module.css +3 -3
- package/es/Tag/Tag.js +9 -11
- package/es/Tag/props/defaultProps.js +0 -1
- package/es/Tag/props/propTypes.js +0 -1
- package/es/Tooltip/Tooltip.module.css +3 -0
- package/es/v1/AppContainer/AppContainer.js +0 -1
- package/es/v1/Avatar/Avatar.js +5 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/es/v1/Button/Button.js +4 -4
- package/es/v1/Card/Card.js +4 -4
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +5 -5
- package/es/v1/Tab/Tabs.js +11 -11
- package/es/v1/Tab/v1Tabs.module.css +3 -3
- package/es/v1/Tag/Tag.js +9 -11
- package/es/v1/Tag/props/defaultProps.js +0 -1
- package/es/v1/Tag/props/propTypes.js +0 -1
- package/lib/AppContainer/AppContainer.js +0 -2
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +2 -2
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
- package/lib/Button/css/Button.module.css +22 -6
- package/lib/Buttongroup/Buttongroup.module.css +1 -1
- package/lib/DateTime/DateTime.module.css +11 -8
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +11 -7
- package/lib/DropBox/css/DropBox.module.css +1 -1
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
- package/lib/MultiSelect/MultiSelect.js +5 -5
- package/lib/Provider/LibraryContext.js +5 -15
- package/lib/Ribbon/Ribbon.module.css +6 -6
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
- package/lib/Switch/Switch.module.css +2 -1
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
- package/lib/Tab/Tabs.module.css +3 -3
- package/lib/Tag/Tag.js +10 -13
- package/lib/Tag/props/defaultProps.js +0 -1
- package/lib/Tag/props/propTypes.js +0 -1
- package/lib/Tooltip/Tooltip.module.css +3 -0
- package/lib/v1/AppContainer/AppContainer.js +0 -2
- package/lib/v1/Avatar/Avatar.js +5 -5
- package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/lib/v1/Button/Button.js +4 -4
- package/lib/v1/Card/Card.js +4 -4
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/v1/MultiSelect/MultiSelect.js +5 -5
- package/lib/v1/Tab/Tabs.js +11 -11
- package/lib/v1/Tab/v1Tabs.module.css +3 -3
- package/lib/v1/Tag/Tag.js +10 -13
- package/lib/v1/Tag/props/defaultProps.js +0 -1
- package/lib/v1/Tag/props/propTypes.js +0 -1
- package/package.json +9 -5
- package/propValidationArg.json +11 -11
- package/result.json +1 -1
- /package/es/{common → deprecated}/boxShadow.module.css +0 -0
- /package/lib/{common → deprecated}/boxShadow.module.css +0 -0
|
@@ -1,312 +1,312 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Label rendering the Id 1`] = `
|
|
4
|
-
<DocumentFragment>
|
|
5
|
-
<label
|
|
6
|
-
class="label title medium default font_default
|
|
7
|
-
cursor "
|
|
8
|
-
data-id="label"
|
|
9
|
-
data-selector-id="label"
|
|
10
|
-
data-test-id="label"
|
|
11
|
-
id="LabelID"
|
|
12
|
-
>
|
|
13
|
-
Label
|
|
14
|
-
</label>
|
|
15
|
-
</DocumentFragment>
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
exports[`Label rendering the clipped is true 1`] = `
|
|
19
|
-
<DocumentFragment>
|
|
20
|
-
<label
|
|
21
|
-
class="label title medium default font_default
|
|
22
|
-
dotted cursor "
|
|
23
|
-
data-id="label"
|
|
24
|
-
data-selector-id="label"
|
|
25
|
-
data-test-id="label"
|
|
26
|
-
>
|
|
27
|
-
Label
|
|
28
|
-
</label>
|
|
29
|
-
</DocumentFragment>
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
exports[`Label rendering the customClass 1`] = `
|
|
33
|
-
<DocumentFragment>
|
|
34
|
-
<label
|
|
35
|
-
class="label title medium default font_default
|
|
36
|
-
cursor LabelCustomClass "
|
|
37
|
-
data-id="label"
|
|
38
|
-
data-selector-id="label"
|
|
39
|
-
data-test-id="label"
|
|
40
|
-
>
|
|
41
|
-
Label
|
|
42
|
-
</label>
|
|
43
|
-
</DocumentFragment>
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
exports[`Label rendering the defult props 1`] = `
|
|
47
|
-
<DocumentFragment>
|
|
48
|
-
<label
|
|
49
|
-
class="label title medium default font_default
|
|
50
|
-
cursor "
|
|
51
|
-
data-id="label"
|
|
52
|
-
data-selector-id="label"
|
|
53
|
-
data-test-id="label"
|
|
54
|
-
>
|
|
55
|
-
Label
|
|
56
|
-
</label>
|
|
57
|
-
</DocumentFragment>
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
exports[`Label rendering the htmlFor 1`] = `
|
|
61
|
-
<DocumentFragment>
|
|
62
|
-
<label
|
|
63
|
-
class="label title medium default font_default
|
|
64
|
-
cursor "
|
|
65
|
-
data-id="label"
|
|
66
|
-
data-selector-id="label"
|
|
67
|
-
data-test-id="label"
|
|
68
|
-
for="LabelHtmlFor"
|
|
69
|
-
>
|
|
70
|
-
Label
|
|
71
|
-
</label>
|
|
72
|
-
</DocumentFragment>
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports[`Label rendering the onClick prop with asFragment and toMatchSnapshot 1`] = `
|
|
76
|
-
<DocumentFragment>
|
|
77
|
-
<label
|
|
78
|
-
class="label title medium default font_default
|
|
79
|
-
pointer "
|
|
80
|
-
data-id="label"
|
|
81
|
-
data-selector-id="label"
|
|
82
|
-
data-test-id="label"
|
|
83
|
-
>
|
|
84
|
-
Click Me
|
|
85
|
-
</label>
|
|
86
|
-
</DocumentFragment>
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
exports[`Label rendering the palette of- danger 1`] = `
|
|
90
|
-
<DocumentFragment>
|
|
91
|
-
<label
|
|
92
|
-
class="label title medium danger font_default
|
|
93
|
-
cursor "
|
|
94
|
-
data-id="label"
|
|
95
|
-
data-selector-id="label"
|
|
96
|
-
data-test-id="label"
|
|
97
|
-
>
|
|
98
|
-
Label
|
|
99
|
-
</label>
|
|
100
|
-
</DocumentFragment>
|
|
101
|
-
`;
|
|
102
|
-
|
|
103
|
-
exports[`Label rendering the palette of- dark 1`] = `
|
|
104
|
-
<DocumentFragment>
|
|
105
|
-
<label
|
|
106
|
-
class="label title medium dark font_default
|
|
107
|
-
cursor "
|
|
108
|
-
data-id="label"
|
|
109
|
-
data-selector-id="label"
|
|
110
|
-
data-test-id="label"
|
|
111
|
-
>
|
|
112
|
-
Label
|
|
113
|
-
</label>
|
|
114
|
-
</DocumentFragment>
|
|
115
|
-
`;
|
|
116
|
-
|
|
117
|
-
exports[`Label rendering the palette of- default 1`] = `
|
|
118
|
-
<DocumentFragment>
|
|
119
|
-
<label
|
|
120
|
-
class="label title medium default font_default
|
|
121
|
-
cursor "
|
|
122
|
-
data-id="label"
|
|
123
|
-
data-selector-id="label"
|
|
124
|
-
data-test-id="label"
|
|
125
|
-
>
|
|
126
|
-
Label
|
|
127
|
-
</label>
|
|
128
|
-
</DocumentFragment>
|
|
129
|
-
`;
|
|
130
|
-
|
|
131
|
-
exports[`Label rendering the palette of- disable 1`] = `
|
|
132
|
-
<DocumentFragment>
|
|
133
|
-
<label
|
|
134
|
-
class="label title medium disable font_default
|
|
135
|
-
cursor "
|
|
136
|
-
data-id="label"
|
|
137
|
-
data-selector-id="label"
|
|
138
|
-
data-test-id="label"
|
|
139
|
-
>
|
|
140
|
-
Label
|
|
141
|
-
</label>
|
|
142
|
-
</DocumentFragment>
|
|
143
|
-
`;
|
|
144
|
-
|
|
145
|
-
exports[`Label rendering the palette of- mandatory 1`] = `
|
|
146
|
-
<DocumentFragment>
|
|
147
|
-
<label
|
|
148
|
-
class="label title medium mandatory font_default
|
|
149
|
-
cursor "
|
|
150
|
-
data-id="label"
|
|
151
|
-
data-selector-id="label"
|
|
152
|
-
data-test-id="label"
|
|
153
|
-
>
|
|
154
|
-
Label
|
|
155
|
-
</label>
|
|
156
|
-
</DocumentFragment>
|
|
157
|
-
`;
|
|
158
|
-
|
|
159
|
-
exports[`Label rendering the palette of- primary 1`] = `
|
|
160
|
-
<DocumentFragment>
|
|
161
|
-
<label
|
|
162
|
-
class="label title medium primary font_default
|
|
163
|
-
cursor "
|
|
164
|
-
data-id="label"
|
|
165
|
-
data-selector-id="label"
|
|
166
|
-
data-test-id="label"
|
|
167
|
-
>
|
|
168
|
-
Label
|
|
169
|
-
</label>
|
|
170
|
-
</DocumentFragment>
|
|
171
|
-
`;
|
|
172
|
-
|
|
173
|
-
exports[`Label rendering the palette of- secondary 1`] = `
|
|
174
|
-
<DocumentFragment>
|
|
175
|
-
<label
|
|
176
|
-
class="label title medium secondary font_default
|
|
177
|
-
cursor "
|
|
178
|
-
data-id="label"
|
|
179
|
-
data-selector-id="label"
|
|
180
|
-
data-test-id="label"
|
|
181
|
-
>
|
|
182
|
-
Label
|
|
183
|
-
</label>
|
|
184
|
-
</DocumentFragment>
|
|
185
|
-
`;
|
|
186
|
-
|
|
187
|
-
exports[`Label rendering the size of- large 1`] = `
|
|
188
|
-
<DocumentFragment>
|
|
189
|
-
<label
|
|
190
|
-
class="label title large default font_default
|
|
191
|
-
cursor "
|
|
192
|
-
data-id="label"
|
|
193
|
-
data-selector-id="label"
|
|
194
|
-
data-test-id="label"
|
|
195
|
-
>
|
|
196
|
-
Label
|
|
197
|
-
</label>
|
|
198
|
-
</DocumentFragment>
|
|
199
|
-
`;
|
|
200
|
-
|
|
201
|
-
exports[`Label rendering the size of- medium 1`] = `
|
|
202
|
-
<DocumentFragment>
|
|
203
|
-
<label
|
|
204
|
-
class="label title medium default font_default
|
|
205
|
-
cursor "
|
|
206
|
-
data-id="label"
|
|
207
|
-
data-selector-id="label"
|
|
208
|
-
data-test-id="label"
|
|
209
|
-
>
|
|
210
|
-
Label
|
|
211
|
-
</label>
|
|
212
|
-
</DocumentFragment>
|
|
213
|
-
`;
|
|
214
|
-
|
|
215
|
-
exports[`Label rendering the size of- small 1`] = `
|
|
216
|
-
<DocumentFragment>
|
|
217
|
-
<label
|
|
218
|
-
class="label title small default font_default
|
|
219
|
-
cursor "
|
|
220
|
-
data-id="label"
|
|
221
|
-
data-selector-id="label"
|
|
222
|
-
data-test-id="label"
|
|
223
|
-
>
|
|
224
|
-
Label
|
|
225
|
-
</label>
|
|
226
|
-
</DocumentFragment>
|
|
227
|
-
`;
|
|
228
|
-
|
|
229
|
-
exports[`Label rendering the size of- xsmall 1`] = `
|
|
230
|
-
<DocumentFragment>
|
|
231
|
-
<label
|
|
232
|
-
class="label title xsmall default font_default
|
|
233
|
-
cursor "
|
|
234
|
-
data-id="label"
|
|
235
|
-
data-selector-id="label"
|
|
236
|
-
data-test-id="label"
|
|
237
|
-
>
|
|
238
|
-
Label
|
|
239
|
-
</label>
|
|
240
|
-
</DocumentFragment>
|
|
241
|
-
`;
|
|
242
|
-
|
|
243
|
-
exports[`Label rendering the title 1`] = `
|
|
244
|
-
<DocumentFragment>
|
|
245
|
-
<label
|
|
246
|
-
class="label title medium default font_default
|
|
247
|
-
cursor "
|
|
248
|
-
data-id="label"
|
|
249
|
-
data-selector-id="label"
|
|
250
|
-
data-test-id="label"
|
|
251
|
-
data-title="labelTitle"
|
|
252
|
-
>
|
|
253
|
-
Label
|
|
254
|
-
</label>
|
|
255
|
-
</DocumentFragment>
|
|
256
|
-
`;
|
|
257
|
-
|
|
258
|
-
exports[`Label rendering the type of- subtitle 1`] = `
|
|
259
|
-
<DocumentFragment>
|
|
260
|
-
<label
|
|
261
|
-
class="label subtitle medium default font_default
|
|
262
|
-
cursor "
|
|
263
|
-
data-id="label"
|
|
264
|
-
data-selector-id="label"
|
|
265
|
-
data-test-id="label"
|
|
266
|
-
>
|
|
267
|
-
Label
|
|
268
|
-
</label>
|
|
269
|
-
</DocumentFragment>
|
|
270
|
-
`;
|
|
271
|
-
|
|
272
|
-
exports[`Label rendering the type of- title 1`] = `
|
|
273
|
-
<DocumentFragment>
|
|
274
|
-
<label
|
|
275
|
-
class="label title medium default font_default
|
|
276
|
-
cursor "
|
|
277
|
-
data-id="label"
|
|
278
|
-
data-selector-id="label"
|
|
279
|
-
data-test-id="label"
|
|
280
|
-
>
|
|
281
|
-
Label
|
|
282
|
-
</label>
|
|
283
|
-
</DocumentFragment>
|
|
284
|
-
`;
|
|
285
|
-
|
|
286
|
-
exports[`Label rendering the variant of- default 1`] = `
|
|
287
|
-
<DocumentFragment>
|
|
288
|
-
<label
|
|
289
|
-
class="label title medium default font_default
|
|
290
|
-
cursor "
|
|
291
|
-
data-id="label"
|
|
292
|
-
data-selector-id="label"
|
|
293
|
-
data-test-id="label"
|
|
294
|
-
>
|
|
295
|
-
Label
|
|
296
|
-
</label>
|
|
297
|
-
</DocumentFragment>
|
|
298
|
-
`;
|
|
299
|
-
|
|
300
|
-
exports[`Label rendering the variant of- primary 1`] = `
|
|
301
|
-
<DocumentFragment>
|
|
302
|
-
<label
|
|
303
|
-
class="label title medium default font_primary
|
|
304
|
-
cursor "
|
|
305
|
-
data-id="label"
|
|
306
|
-
data-selector-id="label"
|
|
307
|
-
data-test-id="label"
|
|
308
|
-
>
|
|
309
|
-
Label
|
|
310
|
-
</label>
|
|
311
|
-
</DocumentFragment>
|
|
312
|
-
`;
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Label rendering the Id 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<label
|
|
6
|
+
class="label title medium default font_default
|
|
7
|
+
cursor "
|
|
8
|
+
data-id="label"
|
|
9
|
+
data-selector-id="label"
|
|
10
|
+
data-test-id="label"
|
|
11
|
+
id="LabelID"
|
|
12
|
+
>
|
|
13
|
+
Label
|
|
14
|
+
</label>
|
|
15
|
+
</DocumentFragment>
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
exports[`Label rendering the clipped is true 1`] = `
|
|
19
|
+
<DocumentFragment>
|
|
20
|
+
<label
|
|
21
|
+
class="label title medium default font_default
|
|
22
|
+
dotted cursor "
|
|
23
|
+
data-id="label"
|
|
24
|
+
data-selector-id="label"
|
|
25
|
+
data-test-id="label"
|
|
26
|
+
>
|
|
27
|
+
Label
|
|
28
|
+
</label>
|
|
29
|
+
</DocumentFragment>
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
exports[`Label rendering the customClass 1`] = `
|
|
33
|
+
<DocumentFragment>
|
|
34
|
+
<label
|
|
35
|
+
class="label title medium default font_default
|
|
36
|
+
cursor LabelCustomClass "
|
|
37
|
+
data-id="label"
|
|
38
|
+
data-selector-id="label"
|
|
39
|
+
data-test-id="label"
|
|
40
|
+
>
|
|
41
|
+
Label
|
|
42
|
+
</label>
|
|
43
|
+
</DocumentFragment>
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
exports[`Label rendering the defult props 1`] = `
|
|
47
|
+
<DocumentFragment>
|
|
48
|
+
<label
|
|
49
|
+
class="label title medium default font_default
|
|
50
|
+
cursor "
|
|
51
|
+
data-id="label"
|
|
52
|
+
data-selector-id="label"
|
|
53
|
+
data-test-id="label"
|
|
54
|
+
>
|
|
55
|
+
Label
|
|
56
|
+
</label>
|
|
57
|
+
</DocumentFragment>
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
exports[`Label rendering the htmlFor 1`] = `
|
|
61
|
+
<DocumentFragment>
|
|
62
|
+
<label
|
|
63
|
+
class="label title medium default font_default
|
|
64
|
+
cursor "
|
|
65
|
+
data-id="label"
|
|
66
|
+
data-selector-id="label"
|
|
67
|
+
data-test-id="label"
|
|
68
|
+
for="LabelHtmlFor"
|
|
69
|
+
>
|
|
70
|
+
Label
|
|
71
|
+
</label>
|
|
72
|
+
</DocumentFragment>
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
exports[`Label rendering the onClick prop with asFragment and toMatchSnapshot 1`] = `
|
|
76
|
+
<DocumentFragment>
|
|
77
|
+
<label
|
|
78
|
+
class="label title medium default font_default
|
|
79
|
+
pointer "
|
|
80
|
+
data-id="label"
|
|
81
|
+
data-selector-id="label"
|
|
82
|
+
data-test-id="label"
|
|
83
|
+
>
|
|
84
|
+
Click Me
|
|
85
|
+
</label>
|
|
86
|
+
</DocumentFragment>
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
exports[`Label rendering the palette of- danger 1`] = `
|
|
90
|
+
<DocumentFragment>
|
|
91
|
+
<label
|
|
92
|
+
class="label title medium danger font_default
|
|
93
|
+
cursor "
|
|
94
|
+
data-id="label"
|
|
95
|
+
data-selector-id="label"
|
|
96
|
+
data-test-id="label"
|
|
97
|
+
>
|
|
98
|
+
Label
|
|
99
|
+
</label>
|
|
100
|
+
</DocumentFragment>
|
|
101
|
+
`;
|
|
102
|
+
|
|
103
|
+
exports[`Label rendering the palette of- dark 1`] = `
|
|
104
|
+
<DocumentFragment>
|
|
105
|
+
<label
|
|
106
|
+
class="label title medium dark font_default
|
|
107
|
+
cursor "
|
|
108
|
+
data-id="label"
|
|
109
|
+
data-selector-id="label"
|
|
110
|
+
data-test-id="label"
|
|
111
|
+
>
|
|
112
|
+
Label
|
|
113
|
+
</label>
|
|
114
|
+
</DocumentFragment>
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
exports[`Label rendering the palette of- default 1`] = `
|
|
118
|
+
<DocumentFragment>
|
|
119
|
+
<label
|
|
120
|
+
class="label title medium default font_default
|
|
121
|
+
cursor "
|
|
122
|
+
data-id="label"
|
|
123
|
+
data-selector-id="label"
|
|
124
|
+
data-test-id="label"
|
|
125
|
+
>
|
|
126
|
+
Label
|
|
127
|
+
</label>
|
|
128
|
+
</DocumentFragment>
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Label rendering the palette of- disable 1`] = `
|
|
132
|
+
<DocumentFragment>
|
|
133
|
+
<label
|
|
134
|
+
class="label title medium disable font_default
|
|
135
|
+
cursor "
|
|
136
|
+
data-id="label"
|
|
137
|
+
data-selector-id="label"
|
|
138
|
+
data-test-id="label"
|
|
139
|
+
>
|
|
140
|
+
Label
|
|
141
|
+
</label>
|
|
142
|
+
</DocumentFragment>
|
|
143
|
+
`;
|
|
144
|
+
|
|
145
|
+
exports[`Label rendering the palette of- mandatory 1`] = `
|
|
146
|
+
<DocumentFragment>
|
|
147
|
+
<label
|
|
148
|
+
class="label title medium mandatory font_default
|
|
149
|
+
cursor "
|
|
150
|
+
data-id="label"
|
|
151
|
+
data-selector-id="label"
|
|
152
|
+
data-test-id="label"
|
|
153
|
+
>
|
|
154
|
+
Label
|
|
155
|
+
</label>
|
|
156
|
+
</DocumentFragment>
|
|
157
|
+
`;
|
|
158
|
+
|
|
159
|
+
exports[`Label rendering the palette of- primary 1`] = `
|
|
160
|
+
<DocumentFragment>
|
|
161
|
+
<label
|
|
162
|
+
class="label title medium primary font_default
|
|
163
|
+
cursor "
|
|
164
|
+
data-id="label"
|
|
165
|
+
data-selector-id="label"
|
|
166
|
+
data-test-id="label"
|
|
167
|
+
>
|
|
168
|
+
Label
|
|
169
|
+
</label>
|
|
170
|
+
</DocumentFragment>
|
|
171
|
+
`;
|
|
172
|
+
|
|
173
|
+
exports[`Label rendering the palette of- secondary 1`] = `
|
|
174
|
+
<DocumentFragment>
|
|
175
|
+
<label
|
|
176
|
+
class="label title medium secondary font_default
|
|
177
|
+
cursor "
|
|
178
|
+
data-id="label"
|
|
179
|
+
data-selector-id="label"
|
|
180
|
+
data-test-id="label"
|
|
181
|
+
>
|
|
182
|
+
Label
|
|
183
|
+
</label>
|
|
184
|
+
</DocumentFragment>
|
|
185
|
+
`;
|
|
186
|
+
|
|
187
|
+
exports[`Label rendering the size of- large 1`] = `
|
|
188
|
+
<DocumentFragment>
|
|
189
|
+
<label
|
|
190
|
+
class="label title large default font_default
|
|
191
|
+
cursor "
|
|
192
|
+
data-id="label"
|
|
193
|
+
data-selector-id="label"
|
|
194
|
+
data-test-id="label"
|
|
195
|
+
>
|
|
196
|
+
Label
|
|
197
|
+
</label>
|
|
198
|
+
</DocumentFragment>
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`Label rendering the size of- medium 1`] = `
|
|
202
|
+
<DocumentFragment>
|
|
203
|
+
<label
|
|
204
|
+
class="label title medium default font_default
|
|
205
|
+
cursor "
|
|
206
|
+
data-id="label"
|
|
207
|
+
data-selector-id="label"
|
|
208
|
+
data-test-id="label"
|
|
209
|
+
>
|
|
210
|
+
Label
|
|
211
|
+
</label>
|
|
212
|
+
</DocumentFragment>
|
|
213
|
+
`;
|
|
214
|
+
|
|
215
|
+
exports[`Label rendering the size of- small 1`] = `
|
|
216
|
+
<DocumentFragment>
|
|
217
|
+
<label
|
|
218
|
+
class="label title small default font_default
|
|
219
|
+
cursor "
|
|
220
|
+
data-id="label"
|
|
221
|
+
data-selector-id="label"
|
|
222
|
+
data-test-id="label"
|
|
223
|
+
>
|
|
224
|
+
Label
|
|
225
|
+
</label>
|
|
226
|
+
</DocumentFragment>
|
|
227
|
+
`;
|
|
228
|
+
|
|
229
|
+
exports[`Label rendering the size of- xsmall 1`] = `
|
|
230
|
+
<DocumentFragment>
|
|
231
|
+
<label
|
|
232
|
+
class="label title xsmall default font_default
|
|
233
|
+
cursor "
|
|
234
|
+
data-id="label"
|
|
235
|
+
data-selector-id="label"
|
|
236
|
+
data-test-id="label"
|
|
237
|
+
>
|
|
238
|
+
Label
|
|
239
|
+
</label>
|
|
240
|
+
</DocumentFragment>
|
|
241
|
+
`;
|
|
242
|
+
|
|
243
|
+
exports[`Label rendering the title 1`] = `
|
|
244
|
+
<DocumentFragment>
|
|
245
|
+
<label
|
|
246
|
+
class="label title medium default font_default
|
|
247
|
+
cursor "
|
|
248
|
+
data-id="label"
|
|
249
|
+
data-selector-id="label"
|
|
250
|
+
data-test-id="label"
|
|
251
|
+
data-title="labelTitle"
|
|
252
|
+
>
|
|
253
|
+
Label
|
|
254
|
+
</label>
|
|
255
|
+
</DocumentFragment>
|
|
256
|
+
`;
|
|
257
|
+
|
|
258
|
+
exports[`Label rendering the type of- subtitle 1`] = `
|
|
259
|
+
<DocumentFragment>
|
|
260
|
+
<label
|
|
261
|
+
class="label subtitle medium default font_default
|
|
262
|
+
cursor "
|
|
263
|
+
data-id="label"
|
|
264
|
+
data-selector-id="label"
|
|
265
|
+
data-test-id="label"
|
|
266
|
+
>
|
|
267
|
+
Label
|
|
268
|
+
</label>
|
|
269
|
+
</DocumentFragment>
|
|
270
|
+
`;
|
|
271
|
+
|
|
272
|
+
exports[`Label rendering the type of- title 1`] = `
|
|
273
|
+
<DocumentFragment>
|
|
274
|
+
<label
|
|
275
|
+
class="label title medium default font_default
|
|
276
|
+
cursor "
|
|
277
|
+
data-id="label"
|
|
278
|
+
data-selector-id="label"
|
|
279
|
+
data-test-id="label"
|
|
280
|
+
>
|
|
281
|
+
Label
|
|
282
|
+
</label>
|
|
283
|
+
</DocumentFragment>
|
|
284
|
+
`;
|
|
285
|
+
|
|
286
|
+
exports[`Label rendering the variant of- default 1`] = `
|
|
287
|
+
<DocumentFragment>
|
|
288
|
+
<label
|
|
289
|
+
class="label title medium default font_default
|
|
290
|
+
cursor "
|
|
291
|
+
data-id="label"
|
|
292
|
+
data-selector-id="label"
|
|
293
|
+
data-test-id="label"
|
|
294
|
+
>
|
|
295
|
+
Label
|
|
296
|
+
</label>
|
|
297
|
+
</DocumentFragment>
|
|
298
|
+
`;
|
|
299
|
+
|
|
300
|
+
exports[`Label rendering the variant of- primary 1`] = `
|
|
301
|
+
<DocumentFragment>
|
|
302
|
+
<label
|
|
303
|
+
class="label title medium default font_primary
|
|
304
|
+
cursor "
|
|
305
|
+
data-id="label"
|
|
306
|
+
data-selector-id="label"
|
|
307
|
+
data-test-id="label"
|
|
308
|
+
>
|
|
309
|
+
Label
|
|
310
|
+
</label>
|
|
311
|
+
</DocumentFragment>
|
|
312
|
+
`;
|
|
@@ -400,8 +400,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
400
400
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
401
401
|
//up arrow
|
|
402
402
|
|
|
403
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
404
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
403
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
404
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
405
405
|
}*/
|
|
406
406
|
if (hoverOption) {
|
|
407
407
|
this.setState({
|
|
@@ -411,9 +411,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
411
411
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
412
412
|
//down arrow
|
|
413
413
|
|
|
414
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
415
|
-
//disable last to first option higlight
|
|
416
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
414
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
415
|
+
//disable last to first option higlight
|
|
416
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
417
417
|
}*/
|
|
418
418
|
if (isNextOptions && suggestionsLen >= 5 && hoverOption === suggestionsLen - 3) {
|
|
419
419
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
@@ -40,17 +40,15 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
42
42
|
var LibraryContextProvider = function LibraryContextProvider(_ref) {
|
|
43
|
-
var isReducedMotion = _ref.isReducedMotion,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
var _ref$isReducedMotion = _ref.isReducedMotion,
|
|
44
|
+
isReducedMotion = _ref$isReducedMotion === void 0 ? (0, _Config.getLibraryConfig)('isReducedMotion') : _ref$isReducedMotion,
|
|
45
|
+
_ref$direction = _ref.direction,
|
|
46
|
+
direction = _ref$direction === void 0 ? (0, _Config.getLibraryConfig)('direction') : _ref$direction,
|
|
47
47
|
children = _ref.children;
|
|
48
48
|
|
|
49
49
|
var _useState = (0, _react.useState)({
|
|
50
50
|
isReducedMotion: isReducedMotion,
|
|
51
|
-
direction: direction
|
|
52
|
-
coloredTagVariant: coloredTagVariant,
|
|
53
|
-
isTagTextDefaultColor: isTagTextDefaultColor
|
|
51
|
+
direction: direction
|
|
54
52
|
}),
|
|
55
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
56
54
|
value = _useState2[0],
|
|
@@ -72,15 +70,7 @@ var LibraryContextProvider = function LibraryContextProvider(_ref) {
|
|
|
72
70
|
LibraryContextProvider.propTypes = {
|
|
73
71
|
children: _propTypes["default"].node.isRequired,
|
|
74
72
|
isReducedMotion: _propTypes["default"].bool,
|
|
75
|
-
coloredTagVariant: _propTypes["default"].oneOf(['bold', 'subtle', 'minimal']),
|
|
76
|
-
isTagTextDefaultColor: _propTypes["default"].bool,
|
|
77
73
|
direction: _propTypes["default"].string
|
|
78
74
|
};
|
|
79
|
-
LibraryContextProvider.defaultProps = {
|
|
80
|
-
isReducedMotion: (0, _Config.getLibraryConfig)('isReducedMotion'),
|
|
81
|
-
direction: (0, _Config.getLibraryConfig)('direction'),
|
|
82
|
-
coloredTagVariant: 'bold',
|
|
83
|
-
isTagTextDefaultColor: false
|
|
84
|
-
};
|
|
85
75
|
var _default = LibraryContextProvider;
|
|
86
76
|
exports["default"] = _default;
|