app/helpers/coco/components_helper.rb in coveragebook_components-0.18.0 vs app/helpers/coco/components_helper.rb in coveragebook_components-0.18.7

- old
+ new

@@ -25,14 +25,18 @@ def coco_button_group(**, &) render(Coco::ButtonGroup.new(**), &) end - def coco_menu_button(**, &) - render(Coco::MenuButton.new(**), &) + def coco_menu(**, &) + render(Coco::Menu.new(**), &) end + def coco_menu_button(text = nil, **, &) + render(Coco::MenuButton.new(text: text, **), &) + end + def coco_menu_item(type, **, &) render(coco_component("menu_items/#{type}", **), &) end def coco_confirm_button(href = nil, **, &) @@ -240,10 +244,14 @@ def coco_seamless_textarea(**, &) render(Coco::SeamlessTextarea.new(**), &) end - # Utilties (internal) + # Utilties + + def coco_dropdown(**, &) + render(Coco::Dropdown.new(**), &) + end def coco_placeholder(text_content = nil, **, &) render(Coco::Placeholder.new(text_content:, **), &) end