|
1 | 1 | // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
2 | 2 |
|
3 | | -exports[`Input Component > renders Input component correctly 1`] = `"<label for="input-test" class="sui-input-label"> <input name="input-test" id="input-test" type="text" class="sui-input"> </label>"`; |
| 3 | +exports[`Input Component > renders Input component correctly 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <input name="input-test" id="input-test" type="text" class="sui-input"> </div> </label>"`; |
4 | 4 |
|
5 | | -exports[`Input Component > renders Input with "{ defaultValue: 'test-value' }" 1`] = `"<label for="input-test" class="sui-input-label"> <input name="input-test" id="input-test" type="text" class="sui-input" value="test-value"> </label>"`; |
| 5 | +exports[`Input Component > renders Input with "{ defaultValue: 'test-value' }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <input name="input-test" id="input-test" type="text" class="sui-input" value="test-value"> </div> </label>"`; |
6 | 6 |
|
7 | | -exports[`Input Component > renders Input with "{ description: 'This is a test input' }" 1`] = `"<label for="input-test" class="sui-input-label"> <input name="input-test" id="input-test" type="text" class="sui-input"> <span class="sui-input-desc">This is a test input</span> </label>"`; |
| 7 | +exports[`Input Component > renders Input with "{ description: 'This is a test input' }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <input name="input-test" id="input-test" type="text" class="sui-input"> </div> <span class="sui-input-desc">This is a test input</span> </label>"`; |
8 | 8 |
|
9 | | -exports[`Input Component > renders Input with "{ disabled: true }" 1`] = `"<label for="input-test" class="sui-input-label disabled"> <input name="input-test" id="input-test" type="text" class="sui-input" disabled> </label>"`; |
| 9 | +exports[`Input Component > renders Input with "{ disabled: true }" 1`] = `"<label for="input-test" class="sui-input-label disabled"> <div class="sui-input-wrapper"> <input name="input-test" id="input-test" type="text" class="sui-input" disabled> </div> </label>"`; |
10 | 10 |
|
11 | | -exports[`Input Component > renders Input with "{ icon: 'heroicons:academic-cap' }" 1`] = `"<label for="input-test" class="sui-input-label"> <svg style="min-width: 20px" xmlns="http://www.w3.org/2000/svg" prefix="heroicons" class="input-icon icon-left" height="20" width="20" viewbox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.26 10.147a60 60 0 0 0-.491 6.347A48.6 48.6 0 0 1 12 20.904a48.6 48.6 0 0 1 8.232-4.41a61 61 0 0 0-.491-6.347m-15.482 0a51 51 0 0 0-2.658-.813A60 60 0 0 1 12 3.493a60 60 0 0 1 10.399 5.84q-1.345.372-2.658.814m-15.482 0A51 51 0 0 1 12 13.489a50.7 50.7 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5m0 0v-3.675A55 55 0 0 1 12 8.443m-7.007 11.55A5.98 5.98 0 0 0 6.75 15.75v-1.5"/></svg> <input name="input-test" id="input-test" type="text" class="sui-input has-icon icon-left"> </label>"`; |
| 11 | +exports[`Input Component > renders Input with "{ icon: 'heroicons:academic-cap' }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <svg style="min-width: 20px" xmlns="http://www.w3.org/2000/svg" prefix="heroicons" class="input-icon icon-left" height="20" width="20" viewbox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.26 10.147a60 60 0 0 0-.491 6.347A48.6 48.6 0 0 1 12 20.904a48.6 48.6 0 0 1 8.232-4.41a61 61 0 0 0-.491-6.347m-15.482 0a51 51 0 0 0-2.658-.813A60 60 0 0 1 12 3.493a60 60 0 0 1 10.399 5.84q-1.345.372-2.658.814m-15.482 0A51 51 0 0 1 12 13.489a50.7 50.7 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5m0 0v-3.675A55 55 0 0 1 12 8.443m-7.007 11.55A5.98 5.98 0 0 0 6.75 15.75v-1.5"/></svg> <input name="input-test" id="input-test" type="text" class="sui-input icon-left"> </div> </label>"`; |
12 | 12 |
|
13 | | -exports[`Input Component > renders Input with "{ icon: { name: 'heroicons:academic-cap', position: 'left' } }" 1`] = `"<label for="input-test" class="sui-input-label"> <svg style="min-width: 20px" xmlns="http://www.w3.org/2000/svg" prefix="heroicons" class="input-icon icon-left" height="20" width="20" viewbox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.26 10.147a60 60 0 0 0-.491 6.347A48.6 48.6 0 0 1 12 20.904a48.6 48.6 0 0 1 8.232-4.41a61 61 0 0 0-.491-6.347m-15.482 0a51 51 0 0 0-2.658-.813A60 60 0 0 1 12 3.493a60 60 0 0 1 10.399 5.84q-1.345.372-2.658.814m-15.482 0A51 51 0 0 1 12 13.489a50.7 50.7 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5m0 0v-3.675A55 55 0 0 1 12 8.443m-7.007 11.55A5.98 5.98 0 0 0 6.75 15.75v-1.5"/></svg> <input name="input-test" id="input-test" type="text" class="sui-input has-icon icon-left"> </label>"`; |
| 13 | +exports[`Input Component > renders Input with "{ icon: { name: 'heroicons:academic-cap', position: 'left' } }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <svg style="min-width: 20px" xmlns="http://www.w3.org/2000/svg" prefix="heroicons" class="input-icon icon-left" height="20" width="20" viewbox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.26 10.147a60 60 0 0 0-.491 6.347A48.6 48.6 0 0 1 12 20.904a48.6 48.6 0 0 1 8.232-4.41a61 61 0 0 0-.491-6.347m-15.482 0a51 51 0 0 0-2.658-.813A60 60 0 0 1 12 3.493a60 60 0 0 1 10.399 5.84q-1.345.372-2.658.814m-15.482 0A51 51 0 0 1 12 13.489a50.7 50.7 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5m0 0v-3.675A55 55 0 0 1 12 8.443m-7.007 11.55A5.98 5.98 0 0 0 6.75 15.75v-1.5"/></svg> <input name="input-test" id="input-test" type="text" class="sui-input icon-left"> </div> </label>"`; |
14 | 14 |
|
15 | | -exports[`Input Component > renders Input with "{ icon: { name: 'heroicons:academic-cap', position: 'right' } }" 1`] = `"<label for="input-test" class="sui-input-label"> <svg style="min-width: 20px" xmlns="http://www.w3.org/2000/svg" prefix="heroicons" class="input-icon icon-right" height="20" width="20" viewbox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.26 10.147a60 60 0 0 0-.491 6.347A48.6 48.6 0 0 1 12 20.904a48.6 48.6 0 0 1 8.232-4.41a61 61 0 0 0-.491-6.347m-15.482 0a51 51 0 0 0-2.658-.813A60 60 0 0 1 12 3.493a60 60 0 0 1 10.399 5.84q-1.345.372-2.658.814m-15.482 0A51 51 0 0 1 12 13.489a50.7 50.7 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5m0 0v-3.675A55 55 0 0 1 12 8.443m-7.007 11.55A5.98 5.98 0 0 0 6.75 15.75v-1.5"/></svg> <input name="input-test" id="input-test" type="text" class="sui-input has-icon icon-right"> </label>"`; |
| 15 | +exports[`Input Component > renders Input with "{ icon: { name: 'heroicons:academic-cap', position: 'right' } }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <svg style="min-width: 20px" xmlns="http://www.w3.org/2000/svg" prefix="heroicons" class="input-icon icon-right" height="20" width="20" viewbox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.26 10.147a60 60 0 0 0-.491 6.347A48.6 48.6 0 0 1 12 20.904a48.6 48.6 0 0 1 8.232-4.41a61 61 0 0 0-.491-6.347m-15.482 0a51 51 0 0 0-2.658-.813A60 60 0 0 1 12 3.493a60 60 0 0 1 10.399 5.84q-1.345.372-2.658.814m-15.482 0A51 51 0 0 1 12 13.489a50.7 50.7 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5a.75.75 0 0 0 0 1.5m0 0v-3.675A55 55 0 0 1 12 8.443m-7.007 11.55A5.98 5.98 0 0 0 6.75 15.75v-1.5"/></svg> <input name="input-test" id="input-test" type="text" class="sui-input icon-right"> </div> </label>"`; |
16 | 16 |
|
17 | | -exports[`Input Component > renders Input with "{ isRequired: true }" 1`] = `"<label for="input-test" class="sui-input-label"> <input name="input-test" id="input-test" type="text" class="sui-input" required> </label>"`; |
| 17 | +exports[`Input Component > renders Input with "{ isRequired: true }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <input name="input-test" id="input-test" type="text" class="sui-input" required> </div> </label>"`; |
18 | 18 |
|
19 | | -exports[`Input Component > renders Input with "{ label: 'Input Test' }" 1`] = `"<label for="input-test" class="sui-input-label"> <span class="label"> Input Test <span class="req-star"></span> </span> <input name="input-test" id="input-test" type="text" class="sui-input"> </label>"`; |
| 19 | +exports[`Input Component > renders Input with "{ label: 'Input Test' }" 1`] = `"<label for="input-test" class="sui-input-label"> <span class="label"> Input Test <span class="req-star"></span> </span> <div class="sui-input-wrapper"> <input name="input-test" id="input-test" type="text" class="sui-input"> </div> </label>"`; |
20 | 20 |
|
21 | | -exports[`Input Component > renders Input with "{ placeholder: 'Enter text...' }" 1`] = `"<label for="input-test" class="sui-input-label"> <input placeholder="Enter text..." name="input-test" id="input-test" type="text" class="sui-input"> </label>"`; |
| 21 | +exports[`Input Component > renders Input with "{ placeholder: 'Enter text...' }" 1`] = `"<label for="input-test" class="sui-input-label"> <div class="sui-input-wrapper"> <input placeholder="Enter text..." name="input-test" id="input-test" type="text" class="sui-input"> </div> </label>"`; |
0 commit comments