Module: Protege::Components::ComponentsHelper

Overview

The aggregator for the Protege::Components:: UI toolkit. It holds no methods of its own — every component lives in a focused, self-describing helper (typography, tables, badges, buttons, dialogs, menus, cards, forms, layout, sidebar, pagination, introspection) — and this module includes them all, so Protege::ApplicationHelper pulls the whole toolkit into the view with a single include Components::ComponentsHelper. Because they land on the view together, any component can freely call another (e.g. info_card renders a heading_2) through the view.

Colors throughout use CSS custom properties (--surface, --border, --text, --text-muted, --text-faint) defined in tailwind/application.css so dark mode works via a single .dark class toggle.

Constant Summary

Constants included from IntrospectionHelper

IntrospectionHelper::INTROSPECTION_PANEL_ID

Constants included from FormsHelper

FormsHelper::FORM_CHECKBOX, FormsHelper::FORM_INPUT, FormsHelper::FORM_LABEL

Method Summary

Methods included from TypographyHelper

#body_text, #code_block, #heading_1, #heading_2, #heading_3, #hint

Methods included from TablesHelper

#table

Methods included from SidebarHelper

#sidebar_bar, #sidebar_body, #sidebar_container, #sidebar_content, #sidebar_header, #sidebar_item, #sidebar_search_link, #sidebar_stream

Methods included from PaginationHelper

#paginate, #sidebar_pagination

Methods included from MenusHelper

#dropdown_item, #dropdown_menu, #nav_item

Methods included from LayoutHelper

#app_body, #app_content

Methods included from IntrospectionHelper

#introspection_feed, #introspection_panel, #introspection_reasoning, #introspection_run_marker, #introspection_toggle, #introspection_tool_card

Methods included from HotkeysHelper

#hotkey_cap, #hotkey_help_button, #hotkey_row, #hotkey_section

Methods included from FormsHelper

#form_checkbox, #form_checklist, #form_email_address, #form_errors, #form_field, #form_input_style, #form_select, #form_text_area

Methods included from DialogsHelper

#dialog, #show_dialog

Methods included from CardsHelper

#card, #info_card

Methods included from ButtonsHelper

#action_button, #button, #button_class, #button_variant_style, #destructive_link, #icon_button, #inline_button, #ui_link

Methods included from BadgesHelper

#badge, #badge_colors, #dot_colors, #status_dot