/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use 'sass:map';
@use '../../theme';
@use '../../animation';
@use '../../shape';
@use '../../utils';

$tokens: (
  // Track
  track-height: utils.module-val(linear-progress, track-height, 4px),
  track-color: utils.module-val(linear-progress, track-color, theme.variable(tertiary-container)),
  track-shape: utils.module-val(linear-progress, track-shape, shape.variable(full)),

  // Indicator
  indicator-color: utils.module-val(linear-progress, indicator-color, theme.variable(tertiary)),
  indicator-height: utils.module-ref(linear-progress, indicator-height, track-height),

  // Determinate
  determinate-duration: utils.module-val(linear-progress, determinate-duration, animation.variable(duration-medium1)),
  determinate-easing: utils.module-val(linear-progress, determinate-easing, cubic-bezier(0.4, 0, 0.6, 1)),

  // Indeterminate
  indeterminate-duration: utils.module-val(linear-progress, indeterminate-duration, 2s),

  // Buffer
  buffer-duration: utils.module-val(linear-progress, buffer-duration, animation.variable(duration-short4)),

  // Theme
  theme-transition-duration: utils.module-val(linear-progress, theme-transition-duration, animation.variable(duration-short3)),
  theme-transition-timing: utils.module-val(linear-progress, theme-transition-timing, animation.variable(easing-standard)),
) !default;

@function get($key) {
  @return map.get($tokens, $key);
}
