lib/phlexi/display/theme.rb in phlexi-display-0.0.3 vs lib/phlexi/display/theme.rb in phlexi-display-0.0.4

- old
+ new

@@ -1,22 +1,35 @@ module Phlexi module Display - class Theme - include Phlexi::Field::Theme - - DEFAULT_THEME = { - label: nil, - description: nil, - placeholder: nil, - string: nil, - number: :string, - datetime: :string, - attachment: :string, - wrapper: nil - }.freeze - - def theme - DEFAULT_THEME + class Theme < Phlexi::Field::Theme + def self.theme + @theme ||= { + base: nil, + label: nil, + description: nil, + placeholder: nil, + string: nil, + text: :string, + phone: :string, + number: :string, + integer: :string, + datetime: :string, + date: :datetime, + time: :datetime, + association: :string, + attachment: :string, + color: :string, + color_icon: :string, + email: :string, + url: :email, + json: :string, + hstore: :json, + password: :string, + enum: :string, + prefixed_icon: nil, + link: nil, + wrapper: nil + }.freeze end end end end