Skip to content

Commit

Permalink
refactor: swap icon names (#7318)
Browse files Browse the repository at this point in the history
Co-authored-by: taiga-family-bot <taiga-family-bot@users.noreply.github.com>
  • Loading branch information
splincode and taiga-family-bot committed May 6, 2024
1 parent 96e0397 commit 4e67915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion projects/cdk/constants/used-icons.ts
Expand Up @@ -58,8 +58,8 @@ export const TUI_USED_ICONS = [
'tuiIconAlertCircleLarge',
'tuiIconTrashLarge',
'tuiIconCopy',
'tuiIconEyeOffLarge',
'tuiIconEyeLarge',
'tuiIconEyeOffLarge',
'tuiIconClock',
'tuiIconClockLarge',
'tuiIconStarLarge',
Expand Down
Expand Up @@ -11,19 +11,14 @@ 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: {
hide: ({$implicit}) =>
hide: ({$implicit}) => ($implicit === 's' ? 'tuiIconEye' : 'tuiIconEyeLarge'),
show: ({$implicit}) =>
$implicit === 's' ? 'tuiIconEyeOff' : 'tuiIconEyeOffLarge',
show: ({$implicit}) => ($implicit === 's' ? 'tuiIconEye' : 'tuiIconEyeLarge'),
},
};

/**
* Default parameters for input password component
*/
export const TUI_INPUT_PASSWORD_OPTIONS = tuiCreateToken(
TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,
);
Expand Down

0 comments on commit 4e67915

Please sign in to comment.