Class: Playbook::PbCurrency::Currency

Inherits:
Object
  • Object
show all
Includes:
ActionView::Context, Playbook::Props
Defined in:
app/pb_kits/playbook/pb_currency/currency.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#body_propsObject



55
56
57
58
59
60
61
62
# File 'app/pb_kits/playbook/pb_currency/currency.rb', line 55

def body_props
  {
    text: units_element,
    color: "light",
    classname: "unit",
    dark: dark,
  }
end

#classnameObject



34
35
36
# File 'app/pb_kits/playbook/pb_currency/currency.rb', line 34

def classname
  generate_classname("pb_currency_kit", align, size, dark_class)
end

#currency_wrapper_propsObject



38
39
40
41
42
43
44
# File 'app/pb_kits/playbook/pb_currency/currency.rb', line 38

def currency_wrapper_props
  {
    classname: "dollar_sign",
    color: "light",
    dark: dark,
  }
end

#title_propsObject



46
47
48
49
50
51
52
53
# File 'app/pb_kits/playbook/pb_currency/currency.rb', line 46

def title_props
  {
    size: size_value,
    text: whole_value,
    classname: "pb_currency_value",
    dark: dark,
  }
end