import styled from "styled-components";
import { currentTheme } from "../../theme";
const sliderTheme = currentTheme.slider;
const sliderThumbTheme = currentTheme.sliderThumb;
export const Wrapper = styled.div(({ width }) => `
    width: ${width};
    box-sizing: border-box;
  `);
export const BarWrapper = styled.div `
  position: relative;
  width: 100%;
  height: ${sliderTheme?.barHeight};
  box-sizing: border-box;
  background: ${sliderTheme.barBackground};
  border-radius: ${sliderTheme.barBorderRadius};

  .ui-slider__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: ${sliderThumbTheme.width}px;
    height: ${sliderThumbTheme.height}px;
    cursor: pointer;

    .ui-slider__thumb-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    .ui-slider__thumb-text {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      z-index: 2;
      font-family: ${sliderThumbTheme.fontFamily};
      font-size: ${sliderThumbTheme.fontSize};
      line-height: ${sliderThumbTheme.lineHeight};
      color: ${sliderThumbTheme.textColor};
      transform: translateY(-${parseFloat(sliderThumbTheme.lineHeight) / 2}px);
      text-align: center;
    }
  }
`;
export const SubWrapper = styled.div `
  display: flex;
  justify-content: space-between;

  .ui-slider__subscript-text {
    font-family: ${sliderTheme.subFontFamily};
    font-size: ${sliderTheme.subFontSize};
    line-height: ${sliderTheme.subLineHeight};

    ${sliderTheme.subColors.reduce((r, c, i) => `
          ${r}

          &.ui-slider__subscript-text--${i} {
            color: ${c};
          }
        `, "")}
  }
`;
//# sourceMappingURL=styled.js.map