/**
 *
 * @ai-apps/angular v2.152.0 | _tokens.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@use 'sass:map';
@use '../../themes';
@use '../../utilities/component-tokens';

$button-separator: (
  fallback: #e0e0e0,
  values: (
    (
      theme: themes.$white,
      value: #e0e0e0,
    ),
    (
      theme: themes.$g10,
      value: #e0e0e0,
    ),
    (
      theme: themes.$g90,
      value: #161616,
    ),
    (
      theme: themes.$g100,
      value: #161616,
    ),
  ),
) !default;

$button-primary: (
  fallback: #0f62fe,
  values: (
    (
      theme: themes.$white,
      value: #0f62fe,
    ),
    (
      theme: themes.$g10,
      value: #0f62fe,
    ),
    (
      theme: themes.$g90,
      value: #0f62fe,
    ),
    (
      theme: themes.$g100,
      value: #0f62fe,
    ),
  ),
) !default;

$button-secondary: (
  fallback: #393939,
  values: (
    (
      theme: themes.$white,
      value: #393939,
    ),
    (
      theme: themes.$g10,
      value: #393939,
    ),
    (
      theme: themes.$g90,
      value: #6f6f6f,
    ),
    (
      theme: themes.$g100,
      value: #6f6f6f,
    ),
  ),
) !default;

$button-tertiary: (
  fallback: #0f62fe,
  values: (
    (
      theme: themes.$white,
      value: #0f62fe,
    ),
    (
      theme: themes.$g10,
      value: #0f62fe,
    ),
    (
      theme: themes.$g90,
      value: #ffffff,
    ),
    (
      theme: themes.$g100,
      value: #ffffff,
    ),
  ),
) !default;

$button-danger-primary: (
  fallback: #da1e28,
  values: (
    (
      theme: themes.$white,
      value: #da1e28,
    ),
    (
      theme: themes.$g10,
      value: #da1e28,
    ),
    (
      theme: themes.$g90,
      value: #da1e28,
    ),
    (
      theme: themes.$g100,
      value: #da1e28,
    ),
  ),
) !default;

$button-danger-secondary: (
  fallback: #da1e28,
  values: (
    (
      theme: themes.$white,
      value: #da1e28,
    ),
    (
      theme: themes.$g10,
      value: #da1e28,
    ),
    (
      theme: themes.$g90,
      value: #ff8389,
    ),
    (
      theme: themes.$g100,
      value: #fa4d56,
    ),
  ),
) !default;

$button-danger-active: (
  fallback: #750e13,
  values: (
    (
      theme: themes.$white,
      value: #750e13,
    ),
    (
      theme: themes.$g10,
      value: #750e13,
    ),
    (
      theme: themes.$g90,
      value: #750e13,
    ),
    (
      theme: themes.$g100,
      value: #750e13,
    ),
  ),
) !default;

$button-primary-active: (
  fallback: #002d9c,
  values: (
    (
      theme: themes.$white,
      value: #002d9c,
    ),
    (
      theme: themes.$g10,
      value: #002d9c,
    ),
    (
      theme: themes.$g90,
      value: #002d9c,
    ),
    (
      theme: themes.$g100,
      value: #002d9c,
    ),
  ),
) !default;

$button-secondary-active: (
  fallback: #6f6f6f,
  values: (
    (
      theme: themes.$white,
      value: #6f6f6f,
    ),
    (
      theme: themes.$g10,
      value: #6f6f6f,
    ),
    (
      theme: themes.$g90,
      value: #393939,
    ),
    (
      theme: themes.$g100,
      value: #393939,
    ),
  ),
) !default;

$button-tertiary-active: (
  fallback: #002d9c,
  values: (
    (
      theme: themes.$white,
      value: #002d9c,
    ),
    (
      theme: themes.$g10,
      value: #002d9c,
    ),
    (
      theme: themes.$g90,
      value: #c6c6c6,
    ),
    (
      theme: themes.$g100,
      value: #c6c6c6,
    ),
  ),
) !default;

$button-danger-hover: (
  fallback: #b81922,
  values: (
    (
      theme: themes.$white,
      value: #b81922,
    ),
    (
      theme: themes.$g10,
      value: #b81922,
    ),
    (
      theme: themes.$g90,
      value: #b81921,
    ),
    (
      theme: themes.$g100,
      value: #b81921,
    ),
  ),
) !default;

$button-primary-hover: (
  fallback: #0050e6,
  values: (
    (
      theme: themes.$white,
      value: #0050e6,
    ),
    (
      theme: themes.$g10,
      value: #0050e6,
    ),
    (
      theme: themes.$g90,
      value: #0050e6,
    ),
    (
      theme: themes.$g100,
      value: #0050e6,
    ),
  ),
) !default;

$button-secondary-hover: (
  fallback: #474747,
  values: (
    (
      theme: themes.$white,
      value: #474747,
    ),
    (
      theme: themes.$g10,
      value: #474747,
    ),
    (
      theme: themes.$g90,
      value: #5e5e5e,
    ),
    (
      theme: themes.$g100,
      value: #5e5e5e,
    ),
  ),
) !default;

$button-tertiary-hover: (
  fallback: #0050e6,
  values: (
    (
      theme: themes.$white,
      value: #0050e6,
    ),
    (
      theme: themes.$g10,
      value: #0050e6,
    ),
    (
      theme: themes.$g90,
      value: #f4f4f4,
    ),
    (
      theme: themes.$g100,
      value: #f4f4f4,
    ),
  ),
) !default;

$button-disabled: (
  fallback: #c6c6c6,
  values: (
    (
      theme: themes.$white,
      value: #c6c6c6,
    ),
    (
      theme: themes.$g10,
      value: #c6c6c6,
    ),
    (
      theme: themes.$g90,
      value: rgb(141 141 141 / 30%),
    ),
    (
      theme: themes.$g100,
      value: rgb(141 141 141 / 30%),
    ),
  ),
) !default;

$button-tokens: (
  button-separator: $button-separator,
  button-primary: $button-primary,
  button-secondary: $button-secondary,
  button-tertiary: $button-tertiary,
  button-danger-primary: $button-danger-primary,
  button-danger-secondary: $button-danger-secondary,
  button-danger-active: $button-danger-active,
  button-primary-active: $button-primary-active,
  button-secondary-active: $button-secondary-active,
  button-tertiary-active: $button-tertiary-active,
  button-danger-hover: $button-danger-hover,
  button-primary-hover: $button-primary-hover,
  button-secondary-hover: $button-secondary-hover,
  button-tertiary-hover: $button-tertiary-hover,
  button-disabled: $button-disabled,
);

$button-separator: component-tokens.get-var(
  $button-separator,
  'button-separator'
);

$button-primary: component-tokens.get-var($button-primary, 'button-primary');

$button-secondary: component-tokens.get-var(
  $button-secondary,
  'button-secondary'
);

$button-tertiary: component-tokens.get-var($button-tertiary, 'button-tertiary');

$button-danger-primary: component-tokens.get-var(
  $button-danger-primary,
  'button-danger-primary'
);

$button-danger-secondary: component-tokens.get-var(
  $button-danger-secondary,
  'button-danger-secondary'
);

$button-danger-active: component-tokens.get-var(
  $button-danger-active,
  'button-danger-active'
);

$button-primary-active: component-tokens.get-var(
  $button-primary-active,
  'button-primary-active'
);

$button-secondary-active: component-tokens.get-var(
  $button-secondary-active,
  'button-secondary-active'
);

$button-tertiary-active: component-tokens.get-var(
  $button-tertiary-active,
  'button-tertiary-active'
);

$button-danger-hover: component-tokens.get-var(
  $button-danger-hover,
  'button-danger-hover'
);

$button-primary-hover: component-tokens.get-var(
  $button-primary-hover,
  'button-primary-hover'
);

$button-secondary-hover: component-tokens.get-var(
  $button-secondary-hover,
  'button-secondary-hover'
);

$button-tertiary-hover: component-tokens.get-var(
  $button-tertiary-hover,
  'button-tertiary-hover'
);

$button-disabled: component-tokens.get-var($button-disabled, 'button-disabled');
