All files / molecule/rating/src/components settings.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

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      1x   1x                 1x        
import {IconStarFilled, IconStarHalfFilled, IconStarOutline} from '../Icons/index.js'
import {BASE_CLASS as ROOT_BASE_CLASS} from '../settings.js'
 
export const BASE_CLASS = `${ROOT_BASE_CLASS}-Star`
 
export const DEFAULTS_STAR = {
  value: 0,
  fullValue: 1,
  halfValue: 0.5,
  IconStarFilled,
  IconStarHalfFilled,
  IconStarEmpty: IconStarOutline
}
 
export const DEFAULTS_STAR_HOVER = {
  ratingValues: [1, 2, 3, 4, 5],
  IconStarEmpty: IconStarOutline
}