@npm_leadtech/legal-lib-components 1.16.0 → 1.17.0
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/build/index.js +1 -1
- package/coverage/clover.xml +210 -142
- package/coverage/coverage-final.json +63 -58
- package/coverage/lcov-report/BaseBox.js.html +172 -0
- package/coverage/lcov-report/DialogMenuIcon/DialogMenuIcon.js.html +268 -0
- package/coverage/lcov-report/DialogMenuIcon/index.html +116 -0
- package/coverage/lcov-report/FormFaq.js.html +151 -0
- package/coverage/lcov-report/Input.js.html +253 -0
- package/coverage/lcov-report/MenuItems/MenuItems.js.html +202 -0
- package/coverage/lcov-report/MenuItems/index.html +116 -0
- package/coverage/lcov-report/MenuItems.js.html +187 -0
- package/coverage/lcov-report/PageSteps.js.html +301 -0
- package/coverage/lcov-report/SidemenuTab/SidemenuTab.js.html +214 -0
- package/coverage/lcov-report/SidemenuTab/index.html +116 -0
- package/coverage/lcov-report/TextArea.js.html +329 -0
- package/coverage/lcov-report/TextInput/Input.js.html +253 -0
- package/coverage/lcov-report/TextInput/TextInput.js.html +451 -0
- package/coverage/lcov-report/TextInput/TextInputLabel.js.html +196 -0
- package/coverage/lcov-report/TextInput/TextInputMessage.js.html +163 -0
- package/coverage/lcov-report/TextInput/TextInputTooltip.js.html +124 -0
- package/coverage/lcov-report/TextInput/index.html +176 -0
- package/coverage/lcov-report/{TopBar.js.html → TextInputMessage.js.html} +22 -25
- package/coverage/lcov-report/TextInputTooltip.js.html +124 -0
- package/coverage/lcov-report/Tooltip/Tooltip.js.html +283 -0
- package/coverage/lcov-report/Tooltip/index.html +116 -0
- package/coverage/lcov-report/Tooltip.js.html +283 -0
- package/coverage/lcov-report/atoms/{Message/Message.js.html → BaseBox/BaseBox.js.html} +30 -24
- package/coverage/lcov-report/atoms/{Message → BaseBox}/index.html +17 -17
- package/coverage/lcov-report/atoms/Button/Button.js.html +29 -29
- package/coverage/lcov-report/atoms/Button/index.html +16 -16
- package/coverage/lcov-report/atoms/RichTextInner/RichTextInner.js.html +130 -0
- package/coverage/lcov-report/{molecules/PricingCard → atoms/RichTextInner}/index.html +22 -22
- package/coverage/lcov-report/atoms/Tooltip/Tooltip.js.html +274 -0
- package/coverage/lcov-report/atoms/Tooltip/index.html +116 -0
- package/coverage/lcov-report/components/atoms/AddButton/AddButton.js.html +229 -0
- package/coverage/lcov-report/components/atoms/AddButton/index.html +116 -0
- package/coverage/lcov-report/components/atoms/BillCard/BillCard.js.html +166 -0
- package/coverage/lcov-report/components/atoms/BillCard/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Button/Button.js.html +550 -0
- package/coverage/lcov-report/components/atoms/Button/index.html +116 -0
- package/coverage/lcov-report/components/atoms/CardPane/CardPane.js.html +220 -0
- package/coverage/lcov-report/components/atoms/CardPane/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Checkbox/Checkbox.js.html +214 -0
- package/coverage/lcov-report/components/atoms/Checkbox/index.html +116 -0
- package/coverage/lcov-report/components/atoms/DatePickerCustom/DatePickerCustom.js.html +628 -0
- package/coverage/lcov-report/components/atoms/DatePickerCustom/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Disclaimer/Disclaimer.js.html +259 -0
- package/coverage/lcov-report/components/atoms/Disclaimer/index.html +116 -0
- package/coverage/lcov-report/components/atoms/DocumentStatus/DocumentStatus.js.html +208 -0
- package/coverage/lcov-report/{src/components/atoms/DocumentListMenuSection → components/atoms/DocumentStatus}/index.html +18 -18
- package/coverage/lcov-report/components/atoms/FormFaq/FormFaq.js.html +244 -0
- package/coverage/lcov-report/components/atoms/FormFaq/index.html +116 -0
- package/coverage/lcov-report/components/atoms/IconImage/IconImage.js.html +139 -0
- package/coverage/lcov-report/components/atoms/IconImage/index.html +116 -0
- package/coverage/lcov-report/components/atoms/InfoBox/InfoBox.js.html +154 -0
- package/coverage/lcov-report/components/atoms/InfoBox/index.html +116 -0
- package/coverage/lcov-report/components/atoms/LogoText/LogoText.js.html +169 -0
- package/coverage/lcov-report/components/atoms/LogoText/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Message/Message.js.html +133 -0
- package/coverage/lcov-report/components/atoms/Message/index.html +116 -0
- package/coverage/lcov-report/components/atoms/ProgressBar/ProgressBar.js.html +142 -0
- package/coverage/lcov-report/components/atoms/ProgressBar/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Radio/Radio.js.html +310 -0
- package/coverage/lcov-report/components/atoms/Radio/index.html +116 -0
- package/coverage/lcov-report/components/atoms/RemoveButton/RemoveButton.js.html +229 -0
- package/coverage/lcov-report/components/atoms/RemoveButton/index.html +116 -0
- package/coverage/lcov-report/components/atoms/SearchSelect/SearchSelect.js.html +382 -0
- package/coverage/lcov-report/components/atoms/SearchSelect/index.html +116 -0
- package/coverage/lcov-report/components/atoms/SidemenuTab/SidemenuTab.js.html +172 -0
- package/coverage/lcov-report/components/atoms/SidemenuTab/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Spinner/Spinner.js.html +145 -0
- package/coverage/lcov-report/components/atoms/Spinner/index.html +116 -0
- package/coverage/lcov-report/components/atoms/TestAB/TestAB.js.html +169 -0
- package/coverage/lcov-report/components/atoms/TestAB/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Toggle/Toggle.js.html +163 -0
- package/coverage/lcov-report/components/atoms/Toggle/index.html +116 -0
- package/coverage/lcov-report/{molecules/PricingCard/PricingCard.js.html → components/molecules/Feedback/Feedback.js.html} +167 -164
- package/coverage/lcov-report/components/molecules/Feedback/index.html +116 -0
- package/coverage/lcov-report/images/componentsSvg/ArrowRight.js.html +2 -2
- package/coverage/lcov-report/images/componentsSvg/Done24px.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/Edit24p.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/EditText24px.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/EmploymentIcon.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/InfoError24pxOutlined.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/LogoutSvg.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/MenuCollapse24p.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/NewRelease24p.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/Time24px.js.html +1 -1
- package/coverage/lcov-report/images/componentsSvg/index.html +1 -1
- package/coverage/lcov-report/index.html +54 -39
- package/coverage/lcov-report/molecules/BaseBoxList/BaseBoxList.js.html +154 -0
- package/coverage/lcov-report/molecules/BaseBoxList/index.html +116 -0
- package/coverage/lcov-report/molecules/BottomFixedBar/BottomFixedBar.js.html +184 -0
- package/coverage/lcov-report/molecules/BottomFixedBar/index.html +116 -0
- package/coverage/lcov-report/molecules/ContactBox/ContactBox.js.html +235 -0
- package/coverage/lcov-report/molecules/ContactBox/index.html +116 -0
- package/coverage/lcov-report/molecules/Feedback/Feedback.js.html +424 -0
- package/coverage/lcov-report/molecules/Feedback/index.html +116 -0
- package/coverage/lcov-report/molecules/FormFaq/FormFaq.js.html +160 -0
- package/coverage/lcov-report/molecules/FormFaq/index.html +116 -0
- package/coverage/lcov-report/molecules/Snackbar/Snackbar.js.html +385 -0
- package/coverage/lcov-report/molecules/Snackbar/index.html +116 -0
- package/coverage/lcov-report/pagination.config.js.html +103 -0
- package/coverage/lcov-report/src/components/atoms/AddButton/AddButton.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/AddButton/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/BaseBox/BaseBox.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/BaseBox/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/BillCard/BillCard.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/BillCard/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Button/Button.js.html +15 -15
- package/coverage/lcov-report/src/components/atoms/Button/index.html +5 -5
- package/coverage/lcov-report/src/components/atoms/CardPane/CardPane.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/CardPane/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Checkbox/Checkbox.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Checkbox/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/DatePickerCustom/DatePickerCustom.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/DatePickerCustom/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/DialogMenuIcon/DialogMenuIcon.js.html +286 -0
- package/coverage/lcov-report/src/components/{molecules/PricingCard → atoms/DialogMenuIcon}/index.html +23 -23
- package/coverage/lcov-report/src/components/atoms/Disclaimer/Disclaimer.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Disclaimer/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Divider/Divider.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Divider/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/DocumentStatus/DocumentStatus.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/DocumentStatus/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/FormFaq/FormFaq.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/FormFaq/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/GoogleButton/GoogleButton.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/GoogleButton/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/IconImage/IconImage.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/IconImage/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/InfoBox/InfoBox.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/InfoBox/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/LogoText/LogoText.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/LogoText/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/MenuItems/MenuItems.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/MenuItems/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/MenuItems/index.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Message/Message.js.html +8 -20
- package/coverage/lcov-report/src/components/atoms/Message/index.html +7 -7
- package/coverage/lcov-report/src/components/atoms/PaypalButton/PaypalButton.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/PaypalButton/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/ProgressBar/ProgressBar.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/ProgressBar/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Radio/Radio.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Radio/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/RemoveButton/RemoveButton.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/RemoveButton/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/RichTextInner/RichTextInner.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/RichTextInner/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/SearchSelect/SearchSelect.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/SearchSelect/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/SidemenuTab/SidemenuTab.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/SidemenuTab/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Spinner/Spinner.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Spinner/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/TestAB/TestAB.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/TestAB/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/TextArea/TextArea.js.html +7 -49
- package/coverage/lcov-report/src/components/atoms/TextArea/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/TextInput/Input.js.html +253 -0
- package/coverage/lcov-report/src/components/atoms/TextInput/TextInput.js.html +451 -0
- package/coverage/lcov-report/src/components/atoms/TextInput/TextInputLabel.js.html +193 -0
- package/coverage/lcov-report/src/components/atoms/{DocumentListMenuSection/DocumentListMenuSection.js.html → TextInput/TextInputMessage.js.html} +26 -32
- package/coverage/lcov-report/src/components/atoms/TextInput/TextInputTooltip.js.html +124 -0
- package/coverage/lcov-report/src/components/atoms/TextInput/index.html +176 -0
- package/coverage/lcov-report/src/components/atoms/Toggle/Toggle.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Toggle/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Tooltip/Tooltip.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/Tooltip/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/TopBar/TopBar.js.html +1 -1
- package/coverage/lcov-report/src/components/atoms/TopBar/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BaseBoxList/BaseBoxList.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BaseBoxList/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BottomFixedBar/BottomFixedBar.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BottomFixedBar/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BottomOverlay/BottomOverlay.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BottomOverlay/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BoxForm/BoxForm.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/BoxForm/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/ContactBox/ContactBox.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/ContactBox/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/Feedback/Feedback.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/Feedback/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/FormFaq/FormFaq.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/FormFaq/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/MenuItemsSection/MenuItemsSection.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/MenuItemsSection/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/Pagination/PageStepControl.js.html +32 -17
- package/coverage/lcov-report/src/components/molecules/Pagination/PageSteps.js.html +16 -19
- package/coverage/lcov-report/src/components/molecules/Pagination/Pagination.js.html +17 -17
- package/coverage/lcov-report/src/components/molecules/Pagination/index.html +26 -26
- package/coverage/lcov-report/src/components/molecules/Pagination/pagination.config.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/Snackbar/Snackbar.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/Snackbar/index.html +1 -1
- package/coverage/lcov-report/src/components/molecules/TextInput/Input.js.html +259 -0
- package/coverage/lcov-report/src/components/molecules/{PricingCard/PricingCard.js.html → TextInput/TextInput.js.html} +135 -165
- package/coverage/lcov-report/src/components/molecules/TextInput/TextInputLabel.js.html +193 -0
- package/coverage/lcov-report/src/components/molecules/TextInput/TextInputMessage.js.html +163 -0
- package/coverage/lcov-report/src/components/molecules/TextInput/TextInputTooltip.js.html +124 -0
- package/coverage/lcov-report/src/components/molecules/TextInput/index.html +176 -0
- package/coverage/lcov-report/src/components/molecules/TooltipMenu/TooltipMenu.js.html +1 -1
- package/coverage/lcov-report/src/components/molecules/TooltipMenu/index.html +1 -1
- package/coverage/lcov-report/src/components/organisms/MobileBottomBar/MobileBottomBar.js.html +1 -1
- package/coverage/lcov-report/src/components/organisms/MobileBottomBar/index.html +1 -1
- package/coverage/lcov-report/src/utils/envVariables.js.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/stringSlugify.js.html +1 -1
- package/coverage/lcov-report/utils/envVariables.js.html +88 -0
- package/coverage/lcov-report/utils/index.html +116 -0
- package/coverage/lcov.info +319 -177
- package/images/svg/eye-24-px.svg +20 -0
- package/images/svg/eye-close.svg +24 -0
- package/images/svg/icon-clear-24-px.svg +14 -0
- package/images/svg/shape.svg +3 -0
- package/package.json +5 -3
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Fri Mar 25 2022 07:57:19 GMT+0100 (GMT+01:00)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../prettify.js"></script>
|
|
107
107
|
<script>
|
package/coverage/lcov-report/src/components/molecules/MenuItemsSection/MenuItemsSection.js.html
CHANGED
|
@@ -154,7 +154,7 @@ MenuItemsSection.propTypes = {
|
|
|
154
154
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
155
155
|
Code coverage generated by
|
|
156
156
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
157
|
-
at Fri Apr 08 2022 14:
|
|
157
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
158
158
|
</div>
|
|
159
159
|
<script src="../../../../prettify.js"></script>
|
|
160
160
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at Fri Apr 08 2022 14:
|
|
104
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>10/10</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">87.5% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>7/
|
|
35
|
+
<span class='fraction'>7/8</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>9/9</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -94,25 +94,35 @@
|
|
|
94
94
|
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
95
|
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
96
|
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
-
<a name='L32'></a><a href='#L32'>32</a
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
|
98
104
|
<span class="cline-any cline-neutral"> </span>
|
|
99
105
|
<span class="cline-any cline-neutral"> </span>
|
|
100
106
|
<span class="cline-any cline-neutral"> </span>
|
|
101
107
|
<span class="cline-any cline-neutral"> </span>
|
|
102
108
|
<span class="cline-any cline-yes">2x</span>
|
|
103
109
|
<span class="cline-any cline-yes">14x</span>
|
|
110
|
+
<span class="cline-any cline-yes">1x</span>
|
|
104
111
|
<span class="cline-any cline-neutral"> </span>
|
|
105
112
|
<span class="cline-any cline-neutral"> </span>
|
|
106
113
|
<span class="cline-any cline-neutral"> </span>
|
|
114
|
+
<span class="cline-any cline-yes">13x</span>
|
|
107
115
|
<span class="cline-any cline-neutral"> </span>
|
|
108
|
-
<span class="cline-any cline-yes">
|
|
116
|
+
<span class="cline-any cline-yes">13x</span>
|
|
117
|
+
<span class="cline-any cline-yes">3x</span>
|
|
109
118
|
<span class="cline-any cline-neutral"> </span>
|
|
110
119
|
<span class="cline-any cline-neutral"> </span>
|
|
111
|
-
<span class="cline-any cline-yes">
|
|
112
|
-
<span class="cline-any cline-yes">3x</span>
|
|
120
|
+
<span class="cline-any cline-yes">13x</span>
|
|
113
121
|
<span class="cline-any cline-neutral"> </span>
|
|
114
122
|
<span class="cline-any cline-neutral"> </span>
|
|
115
|
-
<span class="cline-any cline-
|
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
|
124
|
+
<span class="cline-any cline-neutral"> </span>
|
|
125
|
+
<span class="cline-any cline-yes">13x</span>
|
|
116
126
|
<span class="cline-any cline-neutral"> </span>
|
|
117
127
|
<span class="cline-any cline-neutral"> </span>
|
|
118
128
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -127,24 +137,29 @@
|
|
|
127
137
|
<span class="cline-any cline-neutral"> </span>
|
|
128
138
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
129
139
|
import PropTypes from 'prop-types';
|
|
140
|
+
import classNames from 'classnames';
|
|
130
141
|
import { NEXT_CONTROL, PREV_CONTROL } from './pagination.config';
|
|
131
142
|
import { ArrowRight } from '../../../../images/componentsSvg/ArrowRight';
|
|
132
143
|
|
|
133
144
|
export const PageStepControl = ({ activePage, direction, onClick, totalPages }) => {
|
|
134
|
-
if (
|
|
135
|
-
!totalPages ||
|
|
136
|
-
(direction === PREV_CONTROL && activePage <= 1) ||
|
|
137
|
-
(direction === NEXT_CONTROL && activePage >= totalPages)
|
|
138
|
-
) {
|
|
145
|
+
if (!totalPages) {
|
|
139
146
|
return null;
|
|
140
147
|
}
|
|
148
|
+
|
|
149
|
+
const hideStepControl =
|
|
150
|
+
(direction === PREV_CONTROL && activePage <= 1) || (direction === NEXT_CONTROL && activePage >= totalPages);
|
|
141
151
|
|
|
142
152
|
const handleClick = () => {
|
|
143
|
-
onClick(direction);
|
|
153
|
+
if (!hideStepControl) onClick(direction);
|
|
144
154
|
};
|
|
155
|
+
|
|
156
|
+
const classes = classNames('pagination__control', {
|
|
157
|
+
[`pagination__control--${direction}`]: direction,
|
|
158
|
+
'pagination__control--hidden': hideStepControl,
|
|
159
|
+
});
|
|
145
160
|
|
|
146
161
|
return (
|
|
147
|
-
<span className={
|
|
162
|
+
<span className={classes} onClick={handleClick}>
|
|
148
163
|
<ArrowRight />
|
|
149
164
|
</span>
|
|
150
165
|
);
|
|
@@ -163,7 +178,7 @@ PageStepControl.propTypes = {
|
|
|
163
178
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
164
179
|
Code coverage generated by
|
|
165
180
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
166
|
-
at Fri Apr 08 2022 14:
|
|
181
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
167
182
|
</div>
|
|
168
183
|
<script src="../../../../prettify.js"></script>
|
|
169
184
|
<script>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>32/32</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>32/32</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -135,8 +135,7 @@
|
|
|
135
135
|
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
136
|
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
137
|
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
-
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
-
<a name='L74'></a><a href='#L74'>74</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<a name='L73'></a><a href='#L73'>73</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
140
139
|
<span class="cline-any cline-neutral"> </span>
|
|
141
140
|
<span class="cline-any cline-neutral"> </span>
|
|
142
141
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -165,7 +164,6 @@
|
|
|
165
164
|
<span class="cline-any cline-yes">4x</span>
|
|
166
165
|
<span class="cline-any cline-yes">20x</span>
|
|
167
166
|
<span class="cline-any cline-yes">20x</span>
|
|
168
|
-
<span class="cline-any cline-yes">20x</span>
|
|
169
167
|
<span class="cline-any cline-neutral"> </span>
|
|
170
168
|
<span class="cline-any cline-yes">20x</span>
|
|
171
169
|
<span class="cline-any cline-yes">20x</span>
|
|
@@ -186,7 +184,7 @@
|
|
|
186
184
|
<span class="cline-any cline-neutral"> </span>
|
|
187
185
|
<span class="cline-any cline-yes">20x</span>
|
|
188
186
|
<span class="cline-any cline-yes">20x</span>
|
|
189
|
-
<span class="cline-any cline-
|
|
187
|
+
<span class="cline-any cline-neutral"> </span>
|
|
190
188
|
<span class="cline-any cline-neutral"> </span>
|
|
191
189
|
<span class="cline-any cline-neutral"> </span>
|
|
192
190
|
<span class="cline-any cline-yes">6x</span>
|
|
@@ -214,10 +212,10 @@ import PropTypes from 'prop-types';
|
|
|
214
212
|
import classNames from 'classnames';
|
|
215
213
|
import { ELLIPSIS_CONTROLS, EXTENDED_MAX_STEPS } from './pagination.config';
|
|
216
214
|
|
|
217
|
-
const getPageClassName = (activePage,
|
|
215
|
+
const getPageClassName = (activePage, step) =>
|
|
218
216
|
classNames('pagination__page', {
|
|
219
217
|
'pagination__page--ellipsis': step === ELLIPSIS_CONTROLS,
|
|
220
|
-
'pagination__page--active':
|
|
218
|
+
'pagination__page--active': step === activePage,
|
|
221
219
|
});
|
|
222
220
|
|
|
223
221
|
export const PageSteps = ({ activePage, onClick, totalPages }) => {
|
|
@@ -234,17 +232,16 @@ export const PageSteps = ({ activePage, onClick, totalPages }) => {
|
|
|
234
232
|
);
|
|
235
233
|
};
|
|
236
234
|
|
|
237
|
-
const renderExtendedSteps = () =>
|
|
238
|
-
new Array(EXTENDED_MAX_STEPS).fill(null).map((page, index) => {
|
|
239
|
-
const pageNumber = index + 1;
|
|
235
|
+
const renderExtendedSteps = () => {
|
|
236
|
+
return new Array(EXTENDED_MAX_STEPS).fill(null).map((page, index) => {
|
|
240
237
|
let firstVisibleStep = totalPages - EXTENDED_MAX_STEPS;
|
|
241
|
-
let step = firstVisibleStep +
|
|
238
|
+
let step = firstVisibleStep + index + 1;
|
|
242
239
|
|
|
243
|
-
if (activePage <= firstVisibleStep) {
|
|
244
|
-
firstVisibleStep = activePage > 1 ? activePage -
|
|
240
|
+
if (activePage <= firstVisibleStep + 1) {
|
|
241
|
+
firstVisibleStep = activePage > 1 ? activePage - 2 : <span class="branch-1 cbranch-no" title="branch not covered" >0;</span>
|
|
245
242
|
|
|
246
243
|
if (index < EXTENDED_MAX_STEPS - 2) {
|
|
247
|
-
step = firstVisibleStep +
|
|
244
|
+
step = firstVisibleStep + index + 1;
|
|
248
245
|
}
|
|
249
246
|
|
|
250
247
|
if (index > EXTENDED_MAX_STEPS - 2) {
|
|
@@ -257,14 +254,14 @@ export const PageSteps = ({ activePage, onClick, totalPages }) => {
|
|
|
257
254
|
}
|
|
258
255
|
}
|
|
259
256
|
|
|
260
|
-
const
|
|
261
|
-
const pageClassName = getPageClassName(activeStep, pageNumber, step);
|
|
257
|
+
const pageClassName = getPageClassName(activePage, step);
|
|
262
258
|
return renderStep(pageClassName, step, index);
|
|
263
259
|
});
|
|
260
|
+
};
|
|
264
261
|
|
|
265
262
|
const renderSteps = () => {
|
|
266
263
|
if (totalPages > EXTENDED_MAX_STEPS) {
|
|
267
|
-
return renderExtendedSteps();
|
|
264
|
+
return renderExtendedSteps(activePage, totalPages);
|
|
268
265
|
}
|
|
269
266
|
|
|
270
267
|
return new Array(totalPages).fill(null).map((page, index) => {
|
|
@@ -289,7 +286,7 @@ PageSteps.propTypes = {
|
|
|
289
286
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
290
287
|
Code coverage generated by
|
|
291
288
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
292
|
-
at Fri Apr 08 2022 14:
|
|
289
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
293
290
|
</div>
|
|
294
291
|
<script src="../../../../prettify.js"></script>
|
|
295
292
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">75% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>9/12</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">66.66% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>4/6</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">66.66% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>2/3</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">75% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>9/12</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
<span class="cline-any cline-neutral"> </span>
|
|
132
132
|
<span class="cline-any cline-neutral"> </span>
|
|
133
133
|
<span class="cline-any cline-yes">3x</span>
|
|
134
|
-
<span class="cline-any cline-
|
|
135
|
-
<span class="cline-any cline-
|
|
136
|
-
<span class="cline-any cline-
|
|
134
|
+
<span class="cline-any cline-no"> </span>
|
|
135
|
+
<span class="cline-any cline-no"> </span>
|
|
136
|
+
<span class="cline-any cline-no"> </span>
|
|
137
137
|
<span class="cline-any cline-neutral"> </span>
|
|
138
138
|
<span class="cline-any cline-neutral"> </span>
|
|
139
139
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -179,10 +179,10 @@ export const Pagination = ({ activePage, totalPages, onChange }) => {
|
|
|
179
179
|
onChange(page);
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
const handleCurrentPage = ({ target }) => {
|
|
183
|
-
const page = Number(target.id)
|
|
184
|
-
if (page) {
|
|
185
|
-
onChange(page)
|
|
182
|
+
const handleCurrentPage = <span class="fstat-no" title="function not covered" >({</span> target }) => {
|
|
183
|
+
const page = <span class="cstat-no" title="statement not covered" >Number(target.id);</span>
|
|
184
|
+
<span class="cstat-no" title="statement not covered" > if (page) {</span>
|
|
185
|
+
<span class="cstat-no" title="statement not covered" > onChange(page);</span>
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
|
|
@@ -217,7 +217,7 @@ Pagination.propTypes = {
|
|
|
217
217
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
218
218
|
Code coverage generated by
|
|
219
219
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
220
|
-
at Fri Apr 08 2022 14:
|
|
220
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
221
221
|
</div>
|
|
222
222
|
<script src="../../../../prettify.js"></script>
|
|
223
223
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">94.82% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>55/58</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">84.37% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>27/32</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">91.66% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>11/12</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">94.73% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>54/57</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="100" class="pct high">100%</td>
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
87
|
+
<td data-value="10" class="abs high">10/10</td>
|
|
88
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
|
89
|
+
<td data-value="8" class="abs high">7/8</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
91
|
<td data-value="2" class="abs high">2/2</td>
|
|
92
92
|
<td data-value="100" class="pct high">100%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="9" class="abs high">9/9</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -99,28 +99,28 @@
|
|
|
99
99
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="100" class="pct high">100%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="32" class="abs high">32/32</td>
|
|
103
103
|
<td data-value="88.88" class="pct high">88.88%</td>
|
|
104
104
|
<td data-value="18" class="abs high">16/18</td>
|
|
105
105
|
<td data-value="100" class="pct high">100%</td>
|
|
106
106
|
<td data-value="7" class="abs high">7/7</td>
|
|
107
107
|
<td data-value="100" class="pct high">100%</td>
|
|
108
|
-
<td data-value="
|
|
108
|
+
<td data-value="32" class="abs high">32/32</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
|
-
<td class="file
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill
|
|
112
|
+
<td class="file medium" data-value="Pagination.js"><a href="Pagination.js.html">Pagination.js</a></td>
|
|
113
|
+
<td data-value="75" class="pic medium">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 75%"></div><div class="cover-empty" style="width: 25%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="12" class="abs
|
|
118
|
-
<td data-value="
|
|
119
|
-
<td data-value="6" class="abs
|
|
120
|
-
<td data-value="
|
|
121
|
-
<td data-value="3" class="abs
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="12" class="abs
|
|
116
|
+
<td data-value="75" class="pct medium">75%</td>
|
|
117
|
+
<td data-value="12" class="abs medium">9/12</td>
|
|
118
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
119
|
+
<td data-value="6" class="abs medium">4/6</td>
|
|
120
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
121
|
+
<td data-value="3" class="abs medium">2/3</td>
|
|
122
|
+
<td data-value="75" class="pct medium">75%</td>
|
|
123
|
+
<td data-value="12" class="abs medium">9/12</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
149
|
-
at Fri Apr 08 2022 14:
|
|
149
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -88,7 +88,7 @@ export { ELLIPSIS_CONTROLS, EXTENDED_MAX_STEPS, NEXT_CONTROL, PREV_CONTROL };
|
|
|
88
88
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
89
89
|
Code coverage generated by
|
|
90
90
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
91
|
-
at Fri Apr 08 2022 14:
|
|
91
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
92
92
|
</div>
|
|
93
93
|
<script src="../../../../prettify.js"></script>
|
|
94
94
|
<script>
|
|
@@ -367,7 +367,7 @@ Snackbar.defaultProps = {
|
|
|
367
367
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
368
368
|
Code coverage generated by
|
|
369
369
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
370
|
-
at Fri Apr 08 2022 14:
|
|
370
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
371
371
|
</div>
|
|
372
372
|
<script src="../../../../prettify.js"></script>
|
|
373
373
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at Fri Apr 08 2022 14:
|
|
104
|
+
at Fri Apr 08 2022 14:10:20 GMT+0200 (GMT+02:00)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../prettify.js"></script>
|
|
107
107
|
<script>
|