@agility/plenum-ui 1.1.4 → 1.1.61
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/coverage/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +204 -0
- package/coverage/Forms/TextInputSelect/InputSelect/index.html +155 -0
- package/coverage/Select/Select.tsx.html +264 -0
- package/coverage/Select/index.html +153 -0
- package/coverage/Select.tsx.html +261 -0
- package/coverage/agility-component-lib-react/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Button/Button.tsx.html +343 -0
- package/coverage/agility-component-lib-react/src/components/Button/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Checkbox/Checkbox.tsx.html +235 -0
- package/coverage/agility-component-lib-react/src/components/Checkbox/index.html +156 -0
- package/coverage/agility-component-lib-react/src/components/Forms/BaseField/BaseField.tsx.html +406 -0
- package/coverage/agility-component-lib-react/src/components/Forms/BaseField/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Forms/Checkbox/Checkbox.tsx.html +283 -0
- package/coverage/agility-component-lib-react/src/components/Forms/Checkbox/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Forms/InputCounter/InputCounter.tsx.html +139 -0
- package/coverage/agility-component-lib-react/src/components/Forms/InputCounter/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/InputLabel.tsx.html +211 -0
- package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/index.html +131 -0
- package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/index.ts.html +94 -0
- package/coverage/agility-component-lib-react/src/components/Forms/Radio/Radio.tsx.html +271 -0
- package/coverage/agility-component-lib-react/src/components/Forms/Radio/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Forms/Select/Select.tsx.html +337 -0
- package/coverage/agility-component-lib-react/src/components/Forms/Select/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +271 -0
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +217 -0
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/index.html +116 -0
- package/coverage/agility-component-lib-react/src/components/Radio/Radio.tsx.html +243 -0
- package/coverage/agility-component-lib-react/src/components/Radio/index.html +156 -0
- package/coverage/agility-component-lib-react/src/components/Switch/Switch.tsx.html +214 -0
- package/coverage/agility-component-lib-react/src/components/Switch/index.html +116 -0
- package/coverage/agility-component-lib-react/src/util/DynamicIcons.tsx.html +151 -0
- package/coverage/agility-component-lib-react/src/util/Loader.tsx.html +139 -0
- package/coverage/agility-component-lib-react/src/util/index.html +131 -0
- package/coverage/agility-component-lib-react/styleMock.js.html +91 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +145 -0
- package/coverage/coverage-final.json +5 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +146 -0
- package/coverage/lcov-report/agility-component-lib-react/index.html +153 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Button/Button.tsx.html +255 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Button/index.html +156 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Checkbox/Checkbox.tsx.html +235 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Checkbox/index.html +156 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/BaseField/BaseField.tsx.html +330 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/BaseField/index.html +158 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/InputCounter/InputCounter.tsx.html +147 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/InputCounter/index.html +158 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +258 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/index.html +159 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +210 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/index.html +159 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Radio/Radio.tsx.html +243 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Radio/index.html +156 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Switch/Switch.tsx.html +225 -0
- package/coverage/lcov-report/agility-component-lib-react/src/components/Switch/index.html +156 -0
- package/coverage/lcov-report/agility-component-lib-react/src/util/DynamicIcons.tsx.html +137 -0
- package/coverage/lcov-report/agility-component-lib-react/src/util/index.html +155 -0
- package/coverage/lcov-report/agility-component-lib-react/styleMock.js.html +90 -0
- package/coverage/lcov-report/base.css +354 -0
- package/coverage/lcov-report/block-navigation.js +82 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +385 -0
- package/coverage/lcov-report/prettify.css +101 -0
- package/coverage/lcov-report/prettify.js +955 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +189 -0
- package/coverage/lcov.info +267 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/lib/components/Avatar/Avatar.d.ts +27 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +6 -0
- package/lib/components/Avatar/Avatar.test.d.ts +1 -0
- package/lib/components/Avatar/index.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts +19 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +12 -0
- package/lib/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/lib/components/Checkbox/index.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +7 -0
- package/lib/components/DatePicker/DatePicker.stories.d.ts +6 -0
- package/lib/components/DatePicker/DatePicker.test.d.ts +1 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/Dropdown/Dropdown.stories.d.ts +2 -0
- package/lib/components/Forms/Checkbox/Checkbox.d.ts +3 -1
- package/lib/components/Forms/Checkbox/Checkbox.stories.d.ts +1 -0
- package/lib/components/Forms/InputCta/InputCta.d.ts +16 -0
- package/lib/components/Forms/InputCta/InputCta.stories.d.ts +6 -0
- package/lib/components/Forms/InputCta/InputCta.test.d.ts +1 -0
- package/lib/components/Forms/InputCta/index.d.ts +1 -0
- package/lib/components/Forms/Radio/Radio.d.ts +4 -2
- package/lib/components/InputCounter/InputCounter.d.ts +16 -0
- package/lib/components/InputCounter/InputCounter.stories.d.ts +6 -0
- package/lib/components/InputCounter/InputCounter.test.d.ts +1 -0
- package/lib/components/InputCounter/index.d.ts +1 -0
- package/lib/components/Radio/Radio.d.ts +21 -0
- package/lib/components/Radio/Radio.stories.d.ts +12 -0
- package/lib/components/Radio/Radio.test.d.ts +1 -0
- package/lib/components/Radio/index.d.ts +1 -0
- package/lib/components/Select/Select.d.ts +25 -0
- package/lib/components/Select/Select.stories.d.ts +11 -0
- package/lib/components/Select/Select.test.d.ts +1 -0
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/TextInput/TextInput.d.ts +46 -0
- package/lib/components/TextInput/TextInput.stories.d.ts +10 -0
- package/lib/components/TextInput/index.d.ts +1 -0
- package/lib/components/TextInputAddon/TextInputAddon.d.ts +51 -0
- package/lib/components/TextInputAddon/TextInputAddon.stories.d.ts +6 -0
- package/lib/components/TextInputAddon/index.d.ts +1 -0
- package/lib/components/TreeView/TreeItem/TreeItem.d.ts +11 -2
- package/lib/components/TreeView/TreeItem/TreeItem.stories.d.ts +4 -1
- package/lib/components/TreeView/context.d.ts +5 -8
- package/lib/components/TreeView/sampleData.d.ts +5 -5
- package/lib/components/TreeView/types/tree.types.d.ts +21 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +68 -10
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +68 -9
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/yarn-error.log +12463 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for agility-component-lib-react/src/components/Switch/Switch.tsx</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">agility-component-lib-react/src/components/Switch</a> Switch.tsx</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">93.75% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>15/16</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">50% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>2/4</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">50% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>1/2</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">90% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>9/10</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</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>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
110
|
+
<span class="cline-any cline-yes">1x</span>
|
|
111
|
+
<span class="cline-any cline-yes">1x</span>
|
|
112
|
+
<span class="cline-any cline-neutral"> </span>
|
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
120
|
+
<span class="cline-any cline-neutral"> </span>
|
|
121
|
+
<span class="cline-any cline-yes">2x</span>
|
|
122
|
+
<span class="cline-any cline-yes">2x</span>
|
|
123
|
+
<span class="cline-any cline-yes">2x</span>
|
|
124
|
+
<span class="cline-any cline-no"> </span>
|
|
125
|
+
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-yes">2x</span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-yes">2x</span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-neutral"> </span>
|
|
143
|
+
<span class="cline-any cline-yes">2x</span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { FC, useEffect, useState } from 'react';
|
|
153
|
+
import { default as cn } from 'classnames';
|
|
154
|
+
import { Switch as HeadlessUISwitch } from '@headlessui/react';
|
|
155
|
+
|
|
156
|
+
export interface SwitchProps {
|
|
157
|
+
/** onChange callback */
|
|
158
|
+
onChange(value: boolean): void;
|
|
159
|
+
/** default state */
|
|
160
|
+
defaultValue?: boolean;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** Comment */
|
|
164
|
+
export const Switch: FC<SwitchProps> = ({ defaultValue = false, onChange }: SwitchProps) => {
|
|
165
|
+
const [enabled, setEnabled] = useState<boolean>(defaultValue);
|
|
166
|
+
useEffect(<span class="fstat-no" title="function not covered" >() => {</span>
|
|
167
|
+
<span class="cstat-no" title="statement not covered" > onChange && onChange(enabled);</span>
|
|
168
|
+
}, [enabled]);
|
|
169
|
+
|
|
170
|
+
const switchStyles = cn(
|
|
171
|
+
'relative inline-flex flex-shrink-0 h-[38px] w-[74px]',
|
|
172
|
+
'border-2 border-transparent rounded-full cursor-pointer',
|
|
173
|
+
'transition-colors ease-in-out duration-200 focus:outline-none',
|
|
174
|
+
'focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75',
|
|
175
|
+
{ 'bg-purple-600': enabled },
|
|
176
|
+
{ 'bg-gray-200': !enabled }
|
|
177
|
+
);
|
|
178
|
+
// the circular button inside the switch
|
|
179
|
+
const toggleStyles = cn(
|
|
180
|
+
'pointer-events-none inline-block h-[34px] w-[34px] rounded-full bg-white',
|
|
181
|
+
'shadow-lg transform ring-0 transition ease-in-out duration-200',
|
|
182
|
+
{ 'translate-x-9': enabled },
|
|
183
|
+
{ 'translate-x-0': !enabled }
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
return (
|
|
187
|
+
<div className="py-16 text-center">
|
|
188
|
+
<HeadlessUISwitch checked={enabled} onChange={setEnabled} className={switchStyles}>
|
|
189
|
+
<span className="sr-only">Use setting</span>
|
|
190
|
+
<span aria-hidden="true" className={toggleStyles} />
|
|
191
|
+
</HeadlessUISwitch>
|
|
192
|
+
</div>
|
|
193
|
+
);
|
|
194
|
+
};
|
|
195
|
+
</pre></td></tr></table></pre>
|
|
196
|
+
|
|
197
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
198
|
+
</div><!-- /wrapper -->
|
|
199
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
200
|
+
Code coverage generated by
|
|
201
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
202
|
+
at Mon Feb 28 2022 11:30:39 GMT-0500 (Eastern Standard Time)
|
|
203
|
+
</div>
|
|
204
|
+
<script src="../../../../prettify.js"></script>
|
|
205
|
+
<script>
|
|
206
|
+
window.onload = function () {
|
|
207
|
+
prettyPrint();
|
|
208
|
+
};
|
|
209
|
+
</script>
|
|
210
|
+
<script src="../../../../sorter.js"></script>
|
|
211
|
+
<script src="../../../../block-navigation.js"></script>
|
|
212
|
+
</body>
|
|
213
|
+
</html>
|
|
214
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for agility-component-lib-react/src/components/Switch</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../../index.html">All files</a> agility-component-lib-react/src/components/Switch</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">93.75% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>15/16</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">50% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>2/4</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">50% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>1/2</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">90% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>9/10</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<div class="pad1">
|
|
66
|
+
<table class="coverage-summary">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
+
</tr>
|
|
80
|
+
</thead>
|
|
81
|
+
<tbody><tr>
|
|
82
|
+
<td class="file high" data-value="Switch.tsx"><a href="Switch.tsx.html">Switch.tsx</a></td>
|
|
83
|
+
<td data-value="93.75" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 93%"></div><div class="cover-empty" style="width: 7%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="93.75" class="pct high">93.75%</td>
|
|
87
|
+
<td data-value="16" class="abs high">15/16</td>
|
|
88
|
+
<td data-value="50" class="pct medium">50%</td>
|
|
89
|
+
<td data-value="4" class="abs medium">2/4</td>
|
|
90
|
+
<td data-value="50" class="pct medium">50%</td>
|
|
91
|
+
<td data-value="2" class="abs medium">1/2</td>
|
|
92
|
+
<td data-value="90" class="pct high">90%</td>
|
|
93
|
+
<td data-value="10" class="abs high">9/10</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
</tbody>
|
|
97
|
+
</table>
|
|
98
|
+
</div>
|
|
99
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
100
|
+
</div><!-- /wrapper -->
|
|
101
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
|
+
Code coverage generated by
|
|
103
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
+
at Mon Feb 28 2022 11:30:39 GMT-0500 (Eastern Standard Time)
|
|
105
|
+
</div>
|
|
106
|
+
<script src="../../../../prettify.js"></script>
|
|
107
|
+
<script>
|
|
108
|
+
window.onload = function () {
|
|
109
|
+
prettyPrint();
|
|
110
|
+
};
|
|
111
|
+
</script>
|
|
112
|
+
<script src="../../../../sorter.js"></script>
|
|
113
|
+
<script src="../../../../block-navigation.js"></script>
|
|
114
|
+
</body>
|
|
115
|
+
</html>
|
|
116
|
+
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for agility-component-lib-react/src/util/DynamicIcons.tsx</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">agility-component-lib-react/src/util</a> DynamicIcons.tsx</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">38.46% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>5/13</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/7</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/1</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">40% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>4/10</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
89
|
+
<span class="cline-any cline-neutral"> </span>
|
|
90
|
+
<span class="cline-any cline-yes">1x</span>
|
|
91
|
+
<span class="cline-any cline-yes">1x</span>
|
|
92
|
+
<span class="cline-any cline-neutral"> </span>
|
|
93
|
+
<span class="cline-any cline-neutral"> </span>
|
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
|
95
|
+
<span class="cline-any cline-neutral"> </span>
|
|
96
|
+
<span class="cline-any cline-neutral"> </span>
|
|
97
|
+
<span class="cline-any cline-neutral"> </span>
|
|
98
|
+
<span class="cline-any cline-neutral"> </span>
|
|
99
|
+
<span class="cline-any cline-neutral"> </span>
|
|
100
|
+
<span class="cline-any cline-neutral"> </span>
|
|
101
|
+
<span class="cline-any cline-yes">1x</span>
|
|
102
|
+
<span class="cline-any cline-no"> </span>
|
|
103
|
+
<span class="cline-any cline-no"> </span>
|
|
104
|
+
<span class="cline-any cline-no"> </span>
|
|
105
|
+
<span class="cline-any cline-neutral"> </span>
|
|
106
|
+
<span class="cline-any cline-no"> </span>
|
|
107
|
+
<span class="cline-any cline-no"> </span>
|
|
108
|
+
<span class="cline-any cline-no"> </span>
|
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
|
110
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
111
|
+
|
|
112
|
+
import * as SolidIcons from '@heroicons/react/solid';
|
|
113
|
+
import * as OutlineIcons from '@heroicons/react/outline';
|
|
114
|
+
|
|
115
|
+
export type IconName = keyof typeof SolidIcons | keyof typeof OutlineIcons;
|
|
116
|
+
|
|
117
|
+
interface DynamicIconsProps {
|
|
118
|
+
icon?: IconName;
|
|
119
|
+
className?: string;
|
|
120
|
+
outline?: boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export const DynamicIcons = <span class="fstat-no" title="function not covered" >({</span>
|
|
124
|
+
icon<span class="cstat-no" title="statement not covered" >,</span>
|
|
125
|
+
<span class="cstat-no" title="statement not covered" > className<span class="cstat-no" title="statement not covered" > </span>= 'w-6 h-6 text-gray-600',</span>
|
|
126
|
+
outline<span class="cstat-no" title="statement not covered" ></span>
|
|
127
|
+
}: DynamicIconsProps): JSX.Element | null => {
|
|
128
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!icon) <span class="cstat-no" title="statement not covered" >return null;</span></span>
|
|
129
|
+
const Icon = <span class="cstat-no" title="statement not covered" >outline ? OutlineIcons[icon] : SolidIcons[icon];</span>
|
|
130
|
+
<span class="cstat-no" title="statement not covered" > return Icon ? <Icon className={className} /> : null;</span>
|
|
131
|
+
};
|
|
132
|
+
</pre></td></tr></table></pre>
|
|
133
|
+
|
|
134
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
135
|
+
</div><!-- /wrapper -->
|
|
136
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
|
+
Code coverage generated by
|
|
138
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
+
at Wed May 11 2022 15:20:43 GMT-0400 (Eastern Daylight Time)
|
|
140
|
+
</div>
|
|
141
|
+
<script src="../../../prettify.js"></script>
|
|
142
|
+
<script>
|
|
143
|
+
window.onload = function () {
|
|
144
|
+
prettyPrint();
|
|
145
|
+
};
|
|
146
|
+
</script>
|
|
147
|
+
<script src="../../../sorter.js"></script>
|
|
148
|
+
<script src="../../../block-navigation.js"></script>
|
|
149
|
+
</body>
|
|
150
|
+
</html>
|
|
151
|
+
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for agility-component-lib-react/src/util/Loader.tsx</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">agility-component-lib-react/src/util</a> Loader.tsx</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">50% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>3/6</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/1</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">60% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>3/5</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
85
|
+
<span class="cline-any cline-yes">1x</span>
|
|
86
|
+
<span class="cline-any cline-neutral"> </span>
|
|
87
|
+
<span class="cline-any cline-neutral"> </span>
|
|
88
|
+
<span class="cline-any cline-neutral"> </span>
|
|
89
|
+
<span class="cline-any cline-neutral"> </span>
|
|
90
|
+
<span class="cline-any cline-neutral"> </span>
|
|
91
|
+
<span class="cline-any cline-yes">1x</span>
|
|
92
|
+
<span class="cline-any cline-no"> </span>
|
|
93
|
+
<span class="cline-any cline-neutral"> </span>
|
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
|
95
|
+
<span class="cline-any cline-neutral"> </span>
|
|
96
|
+
<span class="cline-any cline-neutral"> </span>
|
|
97
|
+
<span class="cline-any cline-neutral"> </span>
|
|
98
|
+
<span class="cline-any cline-neutral"> </span>
|
|
99
|
+
<span class="cline-any cline-neutral"> </span>
|
|
100
|
+
<span class="cline-any cline-no"> </span>
|
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
|
102
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
103
|
+
import { default as cn } from 'classnames';
|
|
104
|
+
|
|
105
|
+
interface LoaderProps {
|
|
106
|
+
classes?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function <span class="fstat-no" title="function not covered" >Loader(</span>{ classes<span class="cstat-no" title="statement not covered" > }: LoaderProps)</span>: JSX.Element {
|
|
110
|
+
const outerLoaderStyles = <span class="cstat-no" title="statement not covered" >cn(</span>
|
|
111
|
+
'rounded-full border-purple-700 inline-block border-r-gray-200 animate-spin m-auto',
|
|
112
|
+
classes,
|
|
113
|
+
{
|
|
114
|
+
'w-16 h-16 border-8': !classes
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
<span class="cstat-no" title="statement not covered" > return <div className={outerLoaderStyles} role="status"></div>;</span>
|
|
119
|
+
}
|
|
120
|
+
</pre></td></tr></table></pre>
|
|
121
|
+
|
|
122
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
123
|
+
</div><!-- /wrapper -->
|
|
124
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
|
+
Code coverage generated by
|
|
126
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
+
at Wed May 11 2022 15:20:43 GMT-0400 (Eastern Daylight Time)
|
|
128
|
+
</div>
|
|
129
|
+
<script src="../../../prettify.js"></script>
|
|
130
|
+
<script>
|
|
131
|
+
window.onload = function () {
|
|
132
|
+
prettyPrint();
|
|
133
|
+
};
|
|
134
|
+
</script>
|
|
135
|
+
<script src="../../../sorter.js"></script>
|
|
136
|
+
<script src="../../../block-navigation.js"></script>
|
|
137
|
+
</body>
|
|
138
|
+
</html>
|
|
139
|
+
|