All files / atom/card/src config.js

71.42% Statements 10/14
0% Branches 0/6
0% Functions 0/1
83.33% Lines 10/12

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 281x 1x 1x   1x 1x 1x 1x   1x               1x           1x        
export const BASE_CLASS = 'sui-AtomCard'
export const CLASS_MEDIA = `${BASE_CLASS}-media`
export const CLASS_INFO = `${BASE_CLASS}-info`
 
export const CLASS_VERTICAL = `${BASE_CLASS}--vertical`
export const CLASS_RESPONSIVE = `${BASE_CLASS}--responsive`
export const CLASS_HIGHLIGHT = `${BASE_CLASS}--highlight`
export const CLASS_LINK = `${BASE_CLASS}-link`
 
export const BORDER_RADIUS = {
  S: 's',
  M: 'm',
  L: 'l',
  XL: 'xl',
  XXL: 'xxl'
}
 
export const ELEVATION = {
  S: 's',
  M: 'm',
  L: 'l'
}
 
export const redirectToHref = ({href, blank}) => {
  if (href && blank) return window.open(href, '_blank')
  if (href) window.location.href = href
}