lib/voom/presenters/dsl/components/mixins/common.rb in voom-presenters-0.1.13 vs lib/voom/presenters/dsl/components/mixins/common.rb in voom-presenters-0.2.0

- old
+ new

@@ -1,13 +1,16 @@ -require_relative 'append' -require_relative 'toggles' -require_relative 'typography' -require_relative 'grids' -require_relative 'buttons' -require_relative 'expansion_panels' -require_relative 'content' -require_relative 'menus' +require 'voom/presenters/dsl/components/mixins/append' +require 'voom/presenters/dsl/components/mixins/toggles' +require 'voom/presenters/dsl/components/mixins/typography' +require 'voom/presenters/dsl/components/mixins/grids' +require 'voom/presenters/dsl/components/mixins/buttons' +require 'voom/presenters/dsl/components/mixins/expansion_panels' +require 'voom/presenters/dsl/components/mixins/content' +require 'voom/presenters/dsl/components/mixins/menus' +require 'voom/presenters/dsl/components/mixins/google_maps' +require 'voom/presenters/dsl/components/mixins/tab_bars' +require 'voom/presenters/dsl/components/mixins/images' module Voom module Presenters module DSL module Components @@ -19,29 +22,32 @@ include Mixins::Grids include Mixins::Buttons include Mixins::ExpansionPanels include Mixins::Content include Mixins::Menus - + include Mixins::GoogleMaps + include Mixins::TabBars + include Mixins::Images + def badge(badge=nil, **attributes, &block) - self << Components::Badge.new(parent: self, badge: badge, context: context, **attributes, &block) + self << Components::Badge.new(parent: self, badge: badge, **attributes, &block) end def card(**attributes, &block) - self << Components::Card.new(parent: self, context: context, **attributes, &block) + self << Components::Card.new(parent: self, **attributes, &block) end def form(id: nil, **attributes, &block) - self << Components::Form.new(parent: self, id: id, context: context, **attributes, &block) + self << Components::Form.new(parent: self, id: id, **attributes, &block) end def list(**attributes, &block) self << Components::List.new(parent: self, - context: context, **attributes, &block) + **attributes, &block) end def table(**attributes, &block) - self << Components::Table.new(parent: self, context: context, **attributes, &block) + self << Components::Table.new(parent: self, **attributes, &block) end end end end end