# All files / src/TieredSelect TieredSelect.styles.ts

95.23% Statements 20/21
85.71% Branches 18/21
100% Functions 1/1
95.23% Lines 20/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    708x
    8x
    8x
    8x
    8x
    8x
    8x
    8x
    8x

    8x

    8x

    8x

    8x

    25x
    25x

    8x

    8x

    8x

    8x

    8x

     import styled, { css } from 'styled-components'
    import { Breadcrumbs } from '../Breadcrumbs/Breadcrumbs'
    import { Button } from '../Button/Button'
    import { Card } from '../Card/Card'
    import { Flex } from '../Flex/Flex'
    import { MenuImperative } from '../MenuImperative/MenuImperative'
    import { Spinner } from '../Spinner/Spinner'
    import { colors } from '../_styles/colors'
    import { spacing } from '../_styles/spacing'

    export const StyledTieredSelect = styled(MenuImperative)`
      align-items: stretch;
      max-height: 40vh;
    `

    export const StyledTieredSelectIcon = styled(Flex)`
      height: 24px;
      width: 24px;
    `

    export const StyledTieredSelectArrowButton = styled(Button)`
      border: 1px solid transparent;
    `

    export const StyledTieredSelectBreadcrumbs = styled(Breadcrumbs)<{
      $nonInteractive: boolean
    }>`
      background-color: ${colors.gray96};
      flex-wrap: wrap;
      margin-top: ${spacing.sm}px;
      max-height: 68px;
      overflow-y: auto;
      padding: ${spacing.xs}px ${spacing.md}px;

      ${({ $nonInteractive }) => {
        Iif ($nonInteractive) {
          return css`
            margin-top: ${spacing.md}px;
            pointer-events: none;
          `
        }
      }}
    `

    export const StyledTieredSelectHome = styled(Flex)`
      height: 20px;
    `

    export const StyledTieredSelectOption = styled(MenuImperative.Item)`
      align-items: center;
      display: flex;
      justify-content: space-between;
      padding: 2px ${spacing.lg}px;
    `

    export const StyledTieredSelectLoadingMore = styled(Flex)`
      align-items: center;
      justify-content: center;
      padding: ${spacing.xs}px ${spacing.lg}px 0px ${spacing.lg}px;
    `

    export const StyledTieredSelectOverlay = styled(Card)`
      max-width: 248px;
      min-width: inherit;
    `

    export const StyledTieredSelectSpinnerOverlay = styled(Spinner)`
      min-height: auto;
    `