Skip to content

Commit

Permalink
chore(demo): swap icons (#5684)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Oct 19, 2023
1 parent c9fa227 commit b727901
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/auto-update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
npx nx prebuild icons
npx nx build icons
npx ts-node ./scripts/generate-used-icons.ts
npx eslint ./projects/cdk/constants/used-icons.ts --fix
npx eslint ./projects/demo/used-icons.ts --fix
npx prettier ./projects/cdk/constants/used-icons.ts --write
npx prettier ./projects/demo/used-icons.ts --write
npx eslint ./projects/cdk/constants/used-icons.ts --fix || echo "no file matching"
npx eslint ./projects/demo/used-icons.ts --fix || echo "no file matching"
npx prettier ./projects/demo/used-icons.ts --write || echo "no file matching"
npx prettier ./projects/cdk/constants/used-icons.ts --write || echo "no file matching"
- uses: taiga-family/ci/actions/auto/[email protected]
with:
message: icons have changed
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/constants/used-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const TUI_USED_ICONS = [
`tuiIconCheckCircleLarge`,
`tuiIconCopy`,
`tuiIconCopyLarge`,
`tuiIconEyeOffLarge`,
`tuiIconEyeLarge`,
`tuiIconEyeOffLarge`,
`tuiIconClock`,
`tuiIconClockLarge`,
`tuiIconToggleOff`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {of} from 'rxjs';
providers: [
tuiInputPasswordOptionsProvider({
icons: {
hide: 'tuiIconLockLarge',
show: 'tuiIconUnlockLarge',
hide: 'tuiIconUnlockLarge',
show: 'tuiIconLockLarge',
},
}),
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class TuiPrimitiveTextfieldExample1 extends AbstractTuiControl<string> {
}

get icon(): string {
return this.isPasswordHidden ? 'tuiIconEyeOffLarge' : 'tuiIconEyeLarge';
return this.isPasswordHidden ? 'tuiIconEyeLarge' : 'tuiIconEyeOffLarge';
}

get hint(): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface TuiInputPasswordOptions {
}>;
}

// TODO: swap icon names in v4.0
/** Default values for the input password options. */
export const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: TuiInputPasswordOptions = {
icons: {
Expand Down

0 comments on commit b727901

Please sign in to comment.