From b7279014a0cdb939b50b7faff34da98b1fa3cd85 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Thu, 19 Oct 2023 18:16:29 +0300 Subject: [PATCH] chore(demo): swap icons (#5684) --- .github/workflows/auto-update-icons.yml | 8 ++++---- projects/cdk/constants/used-icons.ts | 2 +- .../modules/components/input-password/examples/2/index.ts | 4 ++-- .../components/primitive-textfield/examples/1/index.ts | 2 +- .../components/input-password/input-password.options.ts | 1 + 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-update-icons.yml b/.github/workflows/auto-update-icons.yml index c396c9c3383c..df0533d3547a 100644 --- a/.github/workflows/auto-update-icons.yml +++ b/.github/workflows/auto-update-icons.yml @@ -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/push@v1.33.4 with: message: icons have changed diff --git a/projects/cdk/constants/used-icons.ts b/projects/cdk/constants/used-icons.ts index 0d511951263f..ce6c74531e16 100644 --- a/projects/cdk/constants/used-icons.ts +++ b/projects/cdk/constants/used-icons.ts @@ -58,8 +58,8 @@ export const TUI_USED_ICONS = [ `tuiIconCheckCircleLarge`, `tuiIconCopy`, `tuiIconCopyLarge`, - `tuiIconEyeOffLarge`, `tuiIconEyeLarge`, + `tuiIconEyeOffLarge`, `tuiIconClock`, `tuiIconClockLarge`, `tuiIconToggleOff`, diff --git a/projects/demo/src/modules/components/input-password/examples/2/index.ts b/projects/demo/src/modules/components/input-password/examples/2/index.ts index ea90fe86d268..9b796984aa15 100644 --- a/projects/demo/src/modules/components/input-password/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-password/examples/2/index.ts @@ -13,8 +13,8 @@ import {of} from 'rxjs'; providers: [ tuiInputPasswordOptionsProvider({ icons: { - hide: 'tuiIconLockLarge', - show: 'tuiIconUnlockLarge', + hide: 'tuiIconUnlockLarge', + show: 'tuiIconLockLarge', }, }), { diff --git a/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts b/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts index 2eeb5400b2b5..dba27be11f63 100644 --- a/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts +++ b/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts @@ -46,7 +46,7 @@ export class TuiPrimitiveTextfieldExample1 extends AbstractTuiControl { } get icon(): string { - return this.isPasswordHidden ? 'tuiIconEyeOffLarge' : 'tuiIconEyeLarge'; + return this.isPasswordHidden ? 'tuiIconEyeLarge' : 'tuiIconEyeOffLarge'; } get hint(): string { diff --git a/projects/kit/components/input-password/input-password.options.ts b/projects/kit/components/input-password/input-password.options.ts index c4df5ea782f6..57178a36acca 100644 --- a/projects/kit/components/input-password/input-password.options.ts +++ b/projects/kit/components/input-password/input-password.options.ts @@ -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: {