@npm_leadtech/legal-lib-components 1.16.1 → 1.18.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/.nvmrc +1 -0
- package/build/index.js +1 -1
- package/coverage/clover.xml +211 -98
- package/coverage/coverage-final.json +65 -58
- 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 +64 -19
- 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 +1 -1
- package/coverage/lcov-report/src/components/atoms/Button/index.html +1 -1
- package/coverage/lcov-report/src/components/atoms/ButtonIcon/ButtonIcon.js.html +301 -0
- package/coverage/lcov-report/src/components/atoms/{DocumentListMenuSection → ButtonIcon}/index.html +18 -18
- 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/FormFaq → 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 +1 -1
- package/coverage/lcov-report/src/components/atoms/Message/index.html +1 -1
- 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/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/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/PricingCard/PricingCard.js.html +9 -9
- package/coverage/lcov-report/src/components/molecules/PricingCard/index.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/{molecules/PricingCard/PricingCard.js.html → src/components/molecules/TextInput/TextInput.js.html} +142 -172
- package/coverage/lcov-report/src/components/{atoms/DocumentListMenuSection/DocumentListMenuSection.js.html → molecules/TextInput/TextInputLabel.js.html} +52 -28
- package/coverage/lcov-report/src/components/molecules/{FormFaq/FormFaq.js.html → TextInput/TextInputMessage.js.html} +30 -27
- package/coverage/lcov-report/{TopBar.js.html → src/components/molecules/TextInput/TextInputTooltip.js.html} +21 -63
- 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.info +327 -75
- 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
- package/coverage/lcov-report/atoms/Button/Button.js.html +0 -559
- package/coverage/lcov-report/atoms/Button/index.html +0 -116
- package/coverage/lcov-report/atoms/Message/Message.js.html +0 -145
- package/coverage/lcov-report/atoms/Message/index.html +0 -116
- package/coverage/lcov-report/molecules/PricingCard/index.html +0 -116
|
@@ -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
|
|
181
|
+
at Mon Apr 25 2022 12:28:27 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
|
|
289
|
+
at Mon Apr 25 2022 12:28:27 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
|
|
220
|
+
at Mon Apr 25 2022 12:28:27 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
|
|
149
|
+
at Mon Apr 25 2022 12:28:27 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
|
|
91
|
+
at Mon Apr 25 2022 12:28:27 GMT+0200 (GMT+02:00)
|
|
92
92
|
</div>
|
|
93
93
|
<script src="../../../../prettify.js"></script>
|
|
94
94
|
<script>
|
|
@@ -370,7 +370,7 @@ export const PricingCard = ({
|
|
|
370
370
|
});
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
const
|
|
373
|
+
const renderMoreMobileButton = (
|
|
374
374
|
<Button
|
|
375
375
|
givenClass='see-more-button'
|
|
376
376
|
tertiary
|
|
@@ -380,7 +380,7 @@ export const PricingCard = ({
|
|
|
380
380
|
/>
|
|
381
381
|
);
|
|
382
382
|
|
|
383
|
-
const
|
|
383
|
+
const renderHeaderContent = (
|
|
384
384
|
<div className='pricing-card__header'>
|
|
385
385
|
<h4 className={`sans-serif --big pricing-card__header__text`}>
|
|
386
386
|
<strong>{planName}</strong>
|
|
@@ -388,7 +388,7 @@ export const PricingCard = ({
|
|
|
388
388
|
</div>
|
|
389
389
|
);
|
|
390
390
|
|
|
391
|
-
const
|
|
391
|
+
const renderBodyContent = (
|
|
392
392
|
<div className='pricing-card__body'>
|
|
393
393
|
{price && (
|
|
394
394
|
<div className={`sans-serif pricing-card__body__price`}>
|
|
@@ -409,7 +409,7 @@ export const PricingCard = ({
|
|
|
409
409
|
</div>
|
|
410
410
|
)}
|
|
411
411
|
{children}
|
|
412
|
-
{isSelectableCard &&
|
|
412
|
+
{isSelectableCard && renderMoreMobileButton}
|
|
413
413
|
{cardButton}
|
|
414
414
|
{message && <Message {...message} />}
|
|
415
415
|
</div>
|
|
@@ -429,13 +429,13 @@ export const PricingCard = ({
|
|
|
429
429
|
checked={isChecked}
|
|
430
430
|
/>
|
|
431
431
|
<span className='radiobtn' data-qa={planName}></span>
|
|
432
|
-
{
|
|
433
|
-
{
|
|
432
|
+
{renderHeaderContent}
|
|
433
|
+
{renderBodyContent}
|
|
434
434
|
</label>
|
|
435
435
|
) : (
|
|
436
436
|
<>
|
|
437
|
-
{
|
|
438
|
-
{
|
|
437
|
+
{renderHeaderContent}
|
|
438
|
+
{renderBodyContent}
|
|
439
439
|
</>
|
|
440
440
|
)}
|
|
441
441
|
</div>
|
|
@@ -469,7 +469,7 @@ PricingCard.propTypes = {
|
|
|
469
469
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
470
470
|
Code coverage generated by
|
|
471
471
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
472
|
-
at
|
|
472
|
+
at Mon Apr 25 2022 12:28:27 GMT+0200 (GMT+02:00)
|
|
473
473
|
</div>
|
|
474
474
|
<script src="../../../../prettify.js"></script>
|
|
475
475
|
<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
|
|
104
|
+
at Mon Apr 25 2022 12:28:27 GMT+0200 (GMT+02:00)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../prettify.js"></script>
|
|
107
107
|
<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
|
|
370
|
+
at Mon Apr 25 2022 12:28:27 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
|
|
104
|
+
at Mon Apr 25 2022 12:28:27 GMT+0200 (GMT+02:00)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../../prettify.js"></script>
|
|
107
107
|
<script>
|