@import '../../_core-mixin';
@import '../../button/_button-mixin';
@import '../../icon/_icon-mixin';

/**
 * @stable [05.05.2020]
 */
@mixin rac-page-toolbar (
  $rac-page-toolbar-custom: unset,
  /**/
  $rac-page-toolbar-action-background: unset,                                            /* @stable [05.06.2020] */
  $rac-page-toolbar-action-content-font-size: unset,                                     /* @stable [05.06.2020] */
  $rac-page-toolbar-action-content-padding: unset,                                       /* @stable [10.06.2020] */
  $rac-page-toolbar-action-content-text-transform: unset,                                /* @stable [05.06.2020] */
  $rac-page-toolbar-action-first-margin: unset,                                          /* @stable [10.06.2020] */
  $rac-page-toolbar-action-last-margin: unset,                                           /* @stable [10.06.2020] */
  $rac-page-toolbar-action-with-short-digit-format-content-padding: unset,               /* @stable [10.06.2020] */
  $rac-page-toolbar-align-items: unset,                                                  /* @stable [05.05.2020] */
  $rac-page-toolbar-background: unset,                                                   /* @stable [05.05.2020] */
  $rac-page-toolbar-border-top: unset,                                                   /* @stable [05.05.2020] */
  $rac-page-toolbar-content-display: unset,                                              /* @stable [05.05.2020] */
  $rac-page-toolbar-display: unset,                                                      /* @stable [05.05.2020] */
  $rac-page-toolbar-flex-grow: unset,                                                    /* @stable [06.05.2020] */
  $rac-page-toolbar-height: unset,                                                       /* @stable [05.05.2020] */
  $rac-page-toolbar-icon-color: unset,                                                   /* @stable [05.05.2020] */
  $rac-page-toolbar-icon-height: unset,                                                  /* @stable [12.05.2020] */
  $rac-page-toolbar-icon-margin: unset,                                                  /* @stable [05.05.2020] */
  $rac-page-toolbar-justify-content: unset,                                              /* @stable [05.05.2020] */
  $rac-page-toolbar-margin: unset,                                                       /* @stable [05.05.2020] */
  $rac-page-toolbar-pages-align-items: unset,                                            /* @stable [10.06.2020] */
  $rac-page-toolbar-pages-color: unset,                                                  /* @stable [05.05.2020] */
  $rac-page-toolbar-pages-display: unset,                                                /* @stable [10.06.2020] */
  $rac-page-toolbar-pages-font-size: unset,                                              /* @stable [05.05.2020] */
  $rac-page-toolbar-pages-font-weight: unset,                                            /* @stable [10.06.2020] */
  $rac-page-toolbar-pages-margin: unset                                                  /* @stable [05.05.2020] */
) {
  #{rac-cls($rac-page-toolbar-cls, $rac-page-toolbar-custom)} {
    @include rac-styles (
      $rac-styles-align-items: $rac-page-toolbar-align-items,
      $rac-styles-background: $rac-page-toolbar-background,
      $rac-styles-border-top: $rac-page-toolbar-border-top,
      $rac-styles-display: $rac-page-toolbar-display,
      $rac-styles-flex-grow: $rac-page-toolbar-flex-grow,
      $rac-styles-height: $rac-page-toolbar-height,
      $rac-styles-justify-content: $rac-page-toolbar-justify-content,
      $rac-styles-margin: $rac-page-toolbar-margin
    );

    @include rac-styles (
      $rac-styles-custom: $rac-toolbar-pages-cls,
      $rac-styles-align-items: $rac-page-toolbar-pages-align-items,
      $rac-styles-color: $rac-page-toolbar-pages-color,
      $rac-styles-display: $rac-page-toolbar-pages-display,
      $rac-styles-font-size: $rac-page-toolbar-pages-font-size,
      $rac-styles-font-weight: $rac-page-toolbar-pages-font-weight,
      $rac-styles-margin: $rac-page-toolbar-pages-margin
    );

    @include rac-styles (
      $rac-styles-custom: $rac-toolbar-content-cls,
      $rac-styles-display: $rac-page-toolbar-content-display
    );

    @include rac-button (
      $rac-button-custom: $rac-toolbar-action-cls,
      $rac-button-background: $rac-page-toolbar-action-background,
      $rac-button-content-font-size: $rac-page-toolbar-action-content-font-size,
      $rac-button-content-padding: $rac-page-toolbar-action-content-padding,
      $rac-button-content-text-transform: $rac-page-toolbar-action-content-text-transform
    );

    @include rac-button (
      $rac-button-custom: $rac-toolbar-action-first-cls,
      $rac-button-margin: $rac-page-toolbar-action-first-margin
    );

    @include rac-button (
      $rac-button-custom: $rac-toolbar-action-last-cls,
      $rac-button-margin: $rac-page-toolbar-action-last-margin
    );

    @include rac-button (
      $rac-button-custom: $rac-toolbar-action-with-short-digit-format-cls,
      $rac-button-content-padding: $rac-page-toolbar-action-with-short-digit-format-content-padding
    );

    @include rac-icon (
      $rac-icon-custom: $rac-toolbar-icon-cls,
      $rac-icon-color: $rac-page-toolbar-icon-color,
      $rac-icon-height: $rac-page-toolbar-icon-height,
      $rac-icon-margin: $rac-page-toolbar-icon-margin
    );
  }
}