All files / molecule/select/src/components config.js

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 9/9

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        1x 1x 1x 1x 4x     1x 1x 1x 1x  
import cx from 'classnames'
 
import {BASE_CLASS as ROOT_BASE_CLASS} from '../config.js'
 
export const BASE_CLASS = `${ROOT_BASE_CLASS}-inputSelect`
const CLASS_SEARCH = `${BASE_CLASS}-search`
export const CLASS_SEARCH_CONTAINER = `${BASE_CLASS}-search-container`
export const getClassSearch = isOpen =>
  cx(CLASS_SEARCH, {
    [`${CLASS_SEARCH}--hidden`]: !isOpen
  })
export const CLASS_CONTAINER = `${BASE_CLASS}-container`
export const CLASS_ARROW = `${BASE_CLASS}-arrow`
export const CLASS_ARROW_DOWN = `${CLASS_ARROW}--down`
export const CLASS_ARROW_UP = `${CLASS_ARROW}--up`