/**
 * @license
 * Copyright Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use '../core/styles/shape';
@use './token-utils' as *;

@mixin density($density, $inset: false) {
  @if $inset {
    @include override('height', #{token(inset-height-#{$density}, custom)}, value);
  } @else {
    @include override('height', #{token(height-#{$density}, custom)}, value);

    @if $density == 'extra-small' {
      @include override('container-padding-inline-start', #{token(container-extra-small-padding-inline-start)}, value);
      @include override('container-padding-inline-end', #{token(container-extra-small-padding-inline-end)}, value);
    }
  }
}

@mixin shape($shape) {
  @if $shape == 'squared' {
    @include override('shape', 0, value);
  } @else if $shape == 'rounded' {
    @include override('shape', shape.variable(full), value);
    @include override('container-padding-inline-start', #{token(rounded-container-padding-inline-start)}, value);
    @include override('container-padding-inline-end', #{token(rounded-container-padding-inline-end)}, value);
  }
}
