app/components/coco/indicators/badge/badge.rb in coveragebook_components-0.18.0 vs app/components/coco/indicators/badge/badge.rb in coveragebook_components-0.18.7

- old
+ new

@@ -1,12 +1,25 @@ module Coco class Badge < Coco::Component include Concerns::AcceptsOptions include Concerns::AcceptsTheme - THEMES = ["neutral-dark", "neutral-light", "neutral-muted", "primary"] + THEMES = [ + "neutral-dark", + "neutral-light", + "neutral-muted", + "primary", + "positive", + "negative", + "warning", + "info", + "primary-light", + "positive-light", + "negative-light", + "warning-light", + "info-light" + ] - accepts_option :size, from: %i[sm md], default: :md accepts_option :theme, from: THEMES, default: "neutral-dark" attr_reader :icon_name def initialize(icon: nil, **kwargs)