Skip to content

Releases: phac-nml/pathogen-view-components

Initial Release

07 Apr 18:24
674bc07

Choose a tag to compare

Pathogen View Components v0.1.0 (Initial release)

First public release of Pathogen ViewComponents: a small, accessible set of Rails ViewComponents plus Stimulus controllers for interactive behavior.

What’s included

ViewComponents

  • Core

    • Pathogen::Component
    • Pathogen::BaseComponent
    • Pathogen::ConditionalWrapper
  • Actions / Navigation

    • Pathogen::Button
    • Pathogen::Link (supports tooltip slot)
  • Overlays

    • Pathogen::Tooltip
  • Tabs

    • Pathogen::Tabs
    • Pathogen::Tabs::Tab
    • Pathogen::Tabs::TabPanel
    • Pathogen::Tabs::LazyPanel
  • Data display

    • Pathogen::DataGridComponent
    • Pathogen::DataGrid::ColumnComponent
  • Icons

    • Pathogen::Icon
  • Typography

    • Pathogen::Typography::Callout
    • Pathogen::Typography::Code
    • Pathogen::Typography::CodeBlock
    • Pathogen::Typography::Eyebrow
    • Pathogen::Typography::Heading
    • Pathogen::Typography::HeadingGroup
    • Pathogen::Typography::Lead
    • Pathogen::Typography::List
    • Pathogen::Typography::Section
    • Pathogen::Typography::Supporting
    • Pathogen::Typography::Text
  • Form

    • Pathogen::Form::BaseFormComponent
    • Pathogen::Form::RadioButton

Stimulus controllers

  • pathogen--tabs (app/assets/javascripts/pathogen_view_components/tabs_controller.js)
  • pathogen--tooltip (app/assets/javascripts/pathogen_view_components/tooltip_controller.js)
  • pathogen--data-grid (app/assets/javascripts/pathogen_view_components/data_grid_controller.js)

Notes

  • Version sources currently differ:
    • package.json: 0.1.0
    • lib/pathogen/view_components/version.rb: 0.0.1

Compatibility

  • Intended for Rails apps using ViewComponent + Hotwire/Stimulus.
  • JS package peers: @hotwired/turbo-rails (peer dependency).

Links

  • Demos / previews: see test/components/previews/ in this repo.