-
Notifications
You must be signed in to change notification settings - Fork 2
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
511aa6c
commit 9ede04d
Showing
26 changed files
with
176 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/blueprints/** |
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,12 @@ | ||
{ | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"overrides": [ | ||
{ | ||
"files": "*.hbs", | ||
"options": { | ||
"singleQuote": false | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: ['recommended', 'a11y'], | ||
extends: ['recommended', 'a11y', 'ember-template-lint-plugin-prettier:recommended'], | ||
plugins: ['ember-template-lint-plugin-prettier'], | ||
rules: { | ||
'no-invalid-interactive': false, | ||
'no-nested-interactive': false, | ||
'no-outlet-outside-routes': false, | ||
'no-inline-styles': { | ||
allowDynamicStyles: true, | ||
}, | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
{{yield}} | ||
|
||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
{{yield}} | ||
|
||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{{#if @route}} | ||
<LinkTo | ||
@route={{@route}} | ||
@models={{if @model (array @model) this.defaultModel}} | ||
@disabled={{@isDisabled}} | ||
@query={{if @query @query this.defaultParams}} | ||
class={{this.className}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</LinkTo> | ||
<LinkTo | ||
@route={{@route}} | ||
@models={{if @model (array @model) this.defaultModel}} | ||
@disabled={{@isDisabled}} | ||
@query={{if @query @query this.defaultParams}} | ||
class={{this.className}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</LinkTo> | ||
{{else}} | ||
<a href={{@href}} class={{this.className}} ...attributes> | ||
{{yield}} | ||
</a> | ||
{{/if}} | ||
{{/if}} |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
value={{this.files}} | ||
{{on "change" this.handleChange}} | ||
...attributes | ||
/> | ||
/> |
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 |
---|---|---|
|
@@ -40,4 +40,4 @@ | |
</button> | ||
{{/if}} | ||
|
||
{{/if}} | ||
{{/if}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<button | ||
type="button" | ||
aria-label={{this.ariaLabel}} | ||
class="pix-icon-button pix-icon-button--{{this.size}} pix-icon-button--{{this.color}} {{if @withBackground 'pix-icon-button--background'}}" | ||
class="pix-icon-button pix-icon-button--{{this.size}} | ||
pix-icon-button--{{this.color}} | ||
{{if @withBackground " pix-icon-button--background"}}" | ||
{{on "click" this.triggerAction}} | ||
...attributes> | ||
<FaIcon @icon={{this.icon}} @prefix={{@iconPrefix}}/> | ||
</button> | ||
...attributes | ||
> | ||
<FaIcon @icon={{this.icon}} @prefix={{@iconPrefix}} /> | ||
</button> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
<div class='pix-input-password'> | ||
<div class="pix-input-password"> | ||
{{#if this.label}} | ||
<label for={{this.id}} class="pix-input__label">{{this.label}}</label> | ||
{{/if}} | ||
{{#if @information}} | ||
<label for={{this.id}} class="pix-input__information">{{@information}}</label> | ||
{{/if}} | ||
<div class="pix-input-password__container {{if @errorMessage "pix-input-password__error-container"}} {{if @prefix "pix-input-password__with-prefix"}}"> | ||
<div | ||
class="pix-input-password__container | ||
{{if @errorMessage "pix-input-password__error-container"}} | ||
{{if @prefix "pix-input-password__with-prefix"}}" | ||
> | ||
|
||
{{#if @prefix}} | ||
<span class="pix-input-password__prefix">{{@prefix}}</span> | ||
{{/if}} | ||
{{#if @prefix}} | ||
<span class="pix-input-password__prefix">{{@prefix}}</span> | ||
{{/if}} | ||
|
||
<input | ||
id={{this.id}} | ||
type={{if this.isPasswordVisible 'text' 'password'}} | ||
value={{@value}} | ||
aria-label={{this.ariaLabel}} | ||
{{on 'change' this.onChange}} | ||
...attributes | ||
/> | ||
<input | ||
id={{this.id}} | ||
type={{if this.isPasswordVisible "text" "password"}} | ||
value={{@value}} | ||
aria-label={{this.ariaLabel}} | ||
{{on "change" this.onChange}} | ||
...attributes | ||
/> | ||
|
||
<PixIconButton | ||
class="pix-input-password__button {{if @errorMessage " pix-input-password__error-button"}}" | ||
@icon={{if this.isPasswordVisible 'eye' 'eye-slash'}} | ||
@ariaLabel={{if this.isPasswordVisible "Masquer le mot de passe" "Afficher le mot de passe"}} | ||
@triggerAction={{this.togglePasswordVisibility}} | ||
@size="small" | ||
/> | ||
<PixIconButton | ||
class="pix-input-password__button {{if @errorMessage " pix-input-password__error-button"}}" | ||
@icon={{if this.isPasswordVisible "eye" "eye-slash"}} | ||
@ariaLabel={{if this.isPasswordVisible "Masquer le mot de passe" "Afficher le mot de passe"}} | ||
@triggerAction={{this.togglePasswordVisibility}} | ||
@size="small" | ||
/> | ||
|
||
</div> | ||
|
||
{{#if @errorMessage}} | ||
<FaIcon @icon="times" class="pix-input-password__error-icon" /> | ||
<label for={{this.id}} class="pix-input__error-message">{{@errorMessage}}</label> | ||
{{/if}} | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<p class="pix-message {{concat "pix-message--" this.type}}" ...attributes> | ||
{{#if @withIcon}} | ||
<FaIcon @icon={{ this.iconClass }} /> | ||
<FaIcon @icon={{this.iconClass}} /> | ||
{{/if}} | ||
<span class="pix-message__content"> | ||
{{yield}} | ||
</span> | ||
</p> | ||
</p> |
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
Oops, something went wrong.