/**
 * @license
 * Copyright Akveo. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */

@use '../../styles/theming' as *;

@mixin input-statuses() {
  @each $status in nb-get-statuses() {
    &.status-#{$status} {
      background-color: nb-theme(input-#{$status}-background-color);
      border-color: nb-theme(input-#{$status}-border-color);
      color: nb-theme(input-#{$status}-text-color);

      &::placeholder {
        color: nb-theme(input-#{$status}-placeholder-text-color);
      }

      &:focus {
        background-color: nb-theme(input-#{$status}-focus-background-color);
        border-color: nb-theme(input-#{$status}-focus-border-color);
      }
      &:hover {
        background-color: nb-theme(input-#{$status}-hover-background-color);
        border-color: nb-theme(input-#{$status}-hover-border-color);
      }
      &:focus:hover {
        background-color: nb-theme(input-#{$status}-focus-and-hover-background-color);
        border-color: nb-theme(input-#{$status}-focus-and-hover-border-color);
      }

      &:disabled {
        background-color: nb-theme(input-#{$status}-disabled-background-color);
        border-color: nb-theme(input-#{$status}-disabled-border-color);
        color: nb-theme(input-#{$status}-disabled-text-color);

        &::placeholder {
          color: nb-theme(input-#{$status}-disabled-placeholder-text-color);
        }
      }
    }
  }
}
