-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add icon, hint, and dark mode styles
- Loading branch information
1 parent
1eac82f
commit 41cc81c
Showing
16 changed files
with
130 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import { BasicInputComponent } from './basic-input/basic-input.component'; | ||
import { InputDisabledComponent } from './input-disabled/input-disabled.component'; | ||
import { InputErrorComponent } from './input-error/input-error.component'; | ||
import { InputHintComponent } from './input-hint/input-hint.component'; | ||
import { InputWithFormFieldComponent } from './input-with-form-field/input-with-form-field.component'; | ||
import { PasswordWithFormFieldComponent } from './password-with-form-field/password-with-form-field.component'; | ||
|
||
export const INPUT_EXAMPLES = [ | ||
BasicInputComponent, | ||
InputWithFormFieldComponent, | ||
InputDisabledComponent, | ||
InputErrorComponent, | ||
PasswordWithFormFieldComponent, | ||
InputHintComponent, | ||
]; |
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
5 changes: 5 additions & 0 deletions
5
libs/design/input/examples/src/input-hint/input-hint.component.html
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,5 @@ | ||
<daff-form-field> | ||
<input daff-input type="text" placeholder="Email" name="email" id="input-hint"/> | ||
<label for="input-hint">Label</label> | ||
<div class="hint">Hint goes here.</div> | ||
</daff-form-field> |
23 changes: 23 additions & 0 deletions
23
libs/design/input/examples/src/input-hint/input-hint.component.ts
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,23 @@ | ||
import { | ||
ChangeDetectionStrategy, | ||
Component, | ||
} from '@angular/core'; | ||
|
||
import { | ||
DaffFormFieldModule, | ||
DaffInputModule, | ||
} from '@daffodil/design'; | ||
|
||
@Component({ | ||
// eslint-disable-next-line @angular-eslint/component-selector | ||
selector: 'input-hint', | ||
templateUrl: './input-hint.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
standalone: true, | ||
imports: [ | ||
DaffFormFieldModule, | ||
DaffInputModule, | ||
], | ||
}) | ||
export class InputHintComponent { | ||
} |
5 changes: 3 additions & 2 deletions
5
libs/design/input/examples/src/input-with-form-field/input-with-form-field.component.html
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,6 @@ | ||
<daff-form-field> | ||
<!-- <input daff-input type="text" placeholder="Email" name="email" id="input" /> --> | ||
<input daff-input type="text" name="email" id="input"/> | ||
<fa-icon [icon]="faUser" class="prefix"></fa-icon> | ||
<input daff-input type="text" name="email" id="input" /> | ||
<label for="input">Label</label> | ||
<fa-icon [icon]="faCircleXmark" class="suffix"></fa-icon> | ||
</daff-form-field> |
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
5 changes: 5 additions & 0 deletions
5
...esign/input/examples/src/password-with-form-field/password-with-form-field.component.html
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,5 @@ | ||
<daff-form-field> | ||
<input daff-input type="password" placeholder="Password" name="password" id="password-input" /> | ||
<!-- <input daff-input type="text" name="email" id="input"/> --> | ||
<label for="password-input">Label</label> | ||
</daff-form-field> |
25 changes: 25 additions & 0 deletions
25
.../design/input/examples/src/password-with-form-field/password-with-form-field.component.ts
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,25 @@ | ||
import { | ||
ChangeDetectionStrategy, | ||
Component, | ||
} from '@angular/core'; | ||
import { | ||
ReactiveFormsModule, | ||
UntypedFormControl, | ||
} from '@angular/forms'; | ||
|
||
import { | ||
DaffFormFieldModule, | ||
DaffInputModule, | ||
} from '@daffodil/design'; | ||
|
||
@Component({ | ||
// eslint-disable-next-line @angular-eslint/component-selector | ||
selector: 'password-with-form-field', | ||
templateUrl: './password-with-form-field.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
standalone: true, | ||
imports: [DaffFormFieldModule, DaffInputModule, ReactiveFormsModule], | ||
}) | ||
export class PasswordWithFormFieldComponent { | ||
control: UntypedFormControl = new UntypedFormControl(); | ||
} |
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 |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
:host { | ||
display: block; | ||
font-size: t.$small-font-size; | ||
margin-top: 5px; | ||
margin-top: 4px; | ||
padding-left: 16px; | ||
} |
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
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