@zohodesk/components 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/propValidation_report.html +1 -1
- package/README.md +15 -0
- package/es/Button/__tests__/Button.spec.js +134 -1
- package/es/DateTime/__tests__/YearView.spec.js +1 -2
- package/es/MultiSelect/MultiSelect.js +15 -2
- package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +8 -1
- package/es/MultiSelect/props/propTypes.js +3 -1
- package/es/Provider/IdProvider.js +1 -1
- package/es/Select/Select.js +15 -6
- package/es/Select/__tests__/Select.spec.js +1130 -4
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +9621 -1
- package/es/Select/props/propTypes.js +3 -1
- package/es/Stencils/Stencils.js +5 -12
- package/es/Stencils/Stencils.module.css +11 -7
- package/es/Stencils/__tests__/Stencils.spec.js +9 -1
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +27 -11
- package/es/Stencils/props/defaultProps.js +2 -1
- package/es/Stencils/props/propTypes.js +3 -2
- package/es/Tab/Tab.js +2 -1
- package/es/Tab/TabWrapper.js +2 -1
- package/es/Tab/Tabs.js +10 -10
- package/es/Tab/__tests__/TabLayout.spec.js +34 -0
- package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +341 -0
- package/es/Tab/props/propTypes.js +2 -2
- package/es/Tab/utils/tabConfigs.js +18 -0
- package/es/Tag/__tests__/Tag.spec.js +8 -1
- package/es/TextBoxIcon/TextBoxIcon.js +6 -2
- package/es/TextBoxIcon/props/propTypes.js +2 -1
- package/es/utils/Common.js +1 -1
- package/lib/Button/__tests__/Button.spec.js +140 -0
- package/lib/DateTime/__tests__/YearView.spec.js +1 -2
- package/lib/MultiSelect/MultiSelect.js +16 -3
- package/lib/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +8 -0
- package/lib/MultiSelect/props/propTypes.js +3 -1
- package/lib/Provider/IdProvider.js +1 -0
- package/lib/Select/Select.js +16 -7
- package/lib/Select/__tests__/Select.spec.js +1364 -3
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +9621 -1
- package/lib/Select/props/propTypes.js +3 -1
- package/lib/Stencils/Stencils.js +5 -12
- package/lib/Stencils/Stencils.module.css +11 -7
- package/lib/Stencils/__tests__/Stencils.spec.js +11 -3
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +27 -11
- package/lib/Stencils/props/defaultProps.js +2 -1
- package/lib/Stencils/props/propTypes.js +3 -2
- package/lib/Tab/Tab.js +3 -1
- package/lib/Tab/TabWrapper.js +3 -1
- package/lib/Tab/Tabs.js +11 -10
- package/lib/Tab/__tests__/TabLayout.spec.js +41 -0
- package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +341 -0
- package/lib/Tab/props/propTypes.js +2 -2
- package/lib/Tab/utils/tabConfigs.js +27 -0
- package/lib/Tag/__tests__/Tag.spec.js +10 -2
- package/lib/TextBoxIcon/TextBoxIcon.js +6 -2
- package/lib/TextBoxIcon/props/propTypes.js +2 -1
- package/lib/utils/Common.js +1 -1
- package/package.json +1 -1
- package/react-cli.config.js +2 -2
- package/result.json +1 -1
- package/es/DateTime/__tests__/__snapshots__/YearView.spec.js.snap +0 -61
- package/lib/DateTime/__tests__/__snapshots__/YearView.spec.js.snap +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`YearView rendering the defult props 1`] = `
|
|
4
|
-
<DocumentFragment>
|
|
5
|
-
<div
|
|
6
|
-
class="container virtualizer"
|
|
7
|
-
dataid="yearList"
|
|
8
|
-
>
|
|
9
|
-
<div
|
|
10
|
-
style="order: 0; height: 0px; width: 1px; flex-grow: 0; flex-shrink: 0;"
|
|
11
|
-
/>
|
|
12
|
-
<div
|
|
13
|
-
class="yearBox flex coldir"
|
|
14
|
-
data-id="containerComponent"
|
|
15
|
-
data-selector-id="container"
|
|
16
|
-
data-test-id="containerComponent"
|
|
17
|
-
style="order: 0;"
|
|
18
|
-
>
|
|
19
|
-
<div
|
|
20
|
-
class="year shrinkOff"
|
|
21
|
-
data-id="year_1850"
|
|
22
|
-
data-selector-id="box"
|
|
23
|
-
data-test-id="year_1850"
|
|
24
|
-
>
|
|
25
|
-
<div
|
|
26
|
-
class="flex cover rowdir vCenter"
|
|
27
|
-
data-id="containerComponent"
|
|
28
|
-
data-selector-id="container"
|
|
29
|
-
data-test-id="containerComponent"
|
|
30
|
-
>
|
|
31
|
-
<div
|
|
32
|
-
class="grow basis shrinkOff"
|
|
33
|
-
data-id="boxComponent"
|
|
34
|
-
data-selector-id="box"
|
|
35
|
-
data-test-id="boxComponent"
|
|
36
|
-
>
|
|
37
|
-
<h4
|
|
38
|
-
class="reset yearText"
|
|
39
|
-
data-title="1850"
|
|
40
|
-
tabindex="0"
|
|
41
|
-
>
|
|
42
|
-
1850
|
|
43
|
-
</h4>
|
|
44
|
-
</div>
|
|
45
|
-
<i
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
class="zd_font_icons basic icon-arrow-down-single fbold arrow "
|
|
48
|
-
data-id="fontIcon"
|
|
49
|
-
data-selector-id="fontIcon"
|
|
50
|
-
data-test-id="fontIcon"
|
|
51
|
-
style="--zd-iconfont-size: var(--zd_font_size7);"
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div
|
|
57
|
-
style="order: 8150; height: 8149px; width: 1px; flex-grow: 0; flex-shrink: 0;"
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
</DocumentFragment>
|
|
61
|
-
`;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`YearView rendering the defult props 1`] = `
|
|
4
|
-
<DocumentFragment>
|
|
5
|
-
<div
|
|
6
|
-
class="container virtualizer"
|
|
7
|
-
dataid="yearList"
|
|
8
|
-
>
|
|
9
|
-
<div
|
|
10
|
-
style="order: 0; height: 0px; width: 1px; flex-grow: 0; flex-shrink: 0;"
|
|
11
|
-
/>
|
|
12
|
-
<div
|
|
13
|
-
class="yearBox flex coldir"
|
|
14
|
-
data-id="containerComponent"
|
|
15
|
-
data-selector-id="container"
|
|
16
|
-
data-test-id="containerComponent"
|
|
17
|
-
style="order: 0;"
|
|
18
|
-
>
|
|
19
|
-
<div
|
|
20
|
-
class="year shrinkOff"
|
|
21
|
-
data-id="year_1850"
|
|
22
|
-
data-selector-id="box"
|
|
23
|
-
data-test-id="year_1850"
|
|
24
|
-
>
|
|
25
|
-
<div
|
|
26
|
-
class="flex cover rowdir vCenter"
|
|
27
|
-
data-id="containerComponent"
|
|
28
|
-
data-selector-id="container"
|
|
29
|
-
data-test-id="containerComponent"
|
|
30
|
-
>
|
|
31
|
-
<div
|
|
32
|
-
class="grow basis shrinkOff"
|
|
33
|
-
data-id="boxComponent"
|
|
34
|
-
data-selector-id="box"
|
|
35
|
-
data-test-id="boxComponent"
|
|
36
|
-
>
|
|
37
|
-
<h4
|
|
38
|
-
class="reset yearText"
|
|
39
|
-
data-title="1850"
|
|
40
|
-
tabindex="0"
|
|
41
|
-
>
|
|
42
|
-
1850
|
|
43
|
-
</h4>
|
|
44
|
-
</div>
|
|
45
|
-
<i
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
class="zd_font_icons basic icon-arrow-down-single fbold arrow "
|
|
48
|
-
data-id="fontIcon"
|
|
49
|
-
data-selector-id="fontIcon"
|
|
50
|
-
data-test-id="fontIcon"
|
|
51
|
-
style="--zd-iconfont-size: var(--zd_font_size7);"
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div
|
|
57
|
-
style="order: 8150; height: 8149px; width: 1px; flex-grow: 0; flex-shrink: 0;"
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
</DocumentFragment>
|
|
61
|
-
`;
|