@use 'sass:map';
@import './variables', '../index.scss';

@mixin text(
    $align: null,
    $alignL:null,
    $transform: null,
    $decoration: null,
    $decorationC:null,
    $decorationL:null,
    $decorationS:null,
    $justify: null,
    $overflow: null,
    $indent: null,
    $shadow: null,
    $color: null,
    $size: null,
    $font: null,
    $style:null,
    $weight: null,
    $lnHeight: null,
    $lSpc: null,
    $whSpace: null,
    $wBreak: null,
    $wSpc: null,
    $wMode:null,
    $wWrap:null,
    $select: null
) {
    text-align: map-get($alignVal, $align);
    text-align-last: map-get($alignVal, $alignL);
    text-transform: map-get($transformVal, $transform);
    text-decoration: map-get($decorationVal, $decoration);
    text-decoration-color: $decorationC;
    text-decoration-line: map-get($decorationVal, $decorationL);
    text-decoration-style:map-get($decorationSVal, $decorationS);
    text-justify: $justify;
    text-overflow:  map-get($overflowVal, $overflow);
    text-indent: $indent;
    text-shadow: $shadow;
    color: $color;
    font-size: $size;
    font-style: map-get($styleVal, $style);
    font-family: $font;
    font-weight: $weight;
    line-height: $lnHeight;
    letter-spacing: $lSpc;
    white-space: map-get($whSpaceVal, $whSpace);
    word-break: map-get($wBreakVal, $wBreak);
    word-spacing: $wSpc;
    writing-mode:map-get($wModeVal, $wMode);
    word-wrap: map-get($wWrapVal, $wWrap);
    @include user-select(map-get($selectVal, $select));
}
