-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09b524e
commit dfe1841
Showing
8 changed files
with
172 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
packages/design-system/src/components/OcTextInput/__snapshots__/OcTextInput.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`OcTextInput password input field password policy displays error state if password does not match criteria 1`] = ` | ||
<div class=""> | ||
<label class="oc-label" for="oc-textinput-17"></label> | ||
<div class="oc-position-relative"> | ||
<!--v-if--> | ||
<div class="oc-text-input-password-wrapper"> | ||
<input aria-invalid="false" class="oc-text-input oc-input oc-rounded" id="oc-textinput-17" type="password"> | ||
<button class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-text-input-copy-password-button oc-px-s oc-background-default" type="button"> | ||
<!--v-if--> | ||
<!-- @slot Content of the button --> | ||
<span class="oc-icon oc-icon-s oc-icon-passive"> | ||
<!----> | ||
</span> | ||
</button> | ||
<button class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-text-input-show-password-toggle oc-px-s oc-background-default" type="button"> | ||
<!--v-if--> | ||
<!-- @slot Content of the button --> | ||
<span class="oc-icon oc-icon-s oc-icon-passive"> | ||
<!----> | ||
</span> | ||
</button> | ||
</div> | ||
<portal to="app.design-system.password-policy"> | ||
<div class="oc-text-small oc-flex oc-flex-column"> | ||
<span>Please enter a password that meets the following criteria:</span> | ||
<div class="oc-flex oc-flex-middle"> | ||
<span class="oc-icon oc-icon-s oc-icon-danger"> | ||
<!----> | ||
</span> | ||
<span class="oc-text-input-danger">At least 8 characters</span> | ||
</div> | ||
</div> | ||
</portal> | ||
<!--v-if--> | ||
</div> | ||
<!--v-if--> | ||
<portal-target name="app.design-system.password-policy"></portal-target> | ||
</div> | ||
`; | ||
exports[`OcTextInput password input field password policy displays success state if password matches criteria 1`] = ` | ||
<div class=""> | ||
<label class="oc-label" for="oc-textinput-18"></label> | ||
<div class="oc-position-relative"> | ||
<!--v-if--> | ||
<div class="oc-text-input-password-wrapper"> | ||
<input aria-invalid="false" class="oc-text-input oc-input oc-rounded" id="oc-textinput-18" type="password"> | ||
<button class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-text-input-copy-password-button oc-px-s oc-background-default" type="button"> | ||
<!--v-if--> | ||
<!-- @slot Content of the button --> | ||
<span class="oc-icon oc-icon-s oc-icon-passive"> | ||
<!----> | ||
</span> | ||
</button> | ||
<button class="oc-button oc-rounded oc-button-s oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-text-input-show-password-toggle oc-px-s oc-background-default" type="button"> | ||
<!--v-if--> | ||
<!-- @slot Content of the button --> | ||
<span class="oc-icon oc-icon-s oc-icon-passive"> | ||
<!----> | ||
</span> | ||
</button> | ||
</div> | ||
<portal to="app.design-system.password-policy"> | ||
<div class="oc-text-small oc-flex oc-flex-column"> | ||
<span>Please enter a password that meets the following criteria:</span> | ||
<div class="oc-flex oc-flex-middle"> | ||
<span class="oc-icon oc-icon-s oc-icon-success"> | ||
<!----> | ||
</span> | ||
<span class="oc-text-input-success">At least 8 characters</span> | ||
</div> | ||
</div> | ||
</portal> | ||
<!--v-if--> | ||
</div> | ||
<!--v-if--> | ||
<portal-target name="app.design-system.password-policy"></portal-target> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters