├── .github └── workflows │ ├── ci.yml │ ├── codeql-analysis.yml │ └── scorecards-analysis.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── Gemfile ├── Gemfile.lock ├── LICENSE.txt ├── README.md ├── Rakefile ├── SECURITY.md ├── bin ├── console └── setup ├── docs ├── .gitignore ├── 404.html ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Gemfile ├── Gemfile.lock ├── _config.yml ├── assets │ └── images │ │ ├── hello_world.png │ │ └── hello_world_controls.png ├── configuration.md ├── guide │ ├── controls.md │ ├── getting-started.md │ ├── index.md │ ├── parameters.md │ ├── slots.md │ └── stories.md └── index.md ├── lib └── view_component │ ├── storybook.rb │ └── storybook │ ├── collections.rb │ ├── collections │ ├── controls_collection.rb │ ├── layout_collection.rb │ ├── parameters_collection.rb │ ├── stories_collection.rb │ └── valid_for_story_concern.rb │ ├── controls.rb │ ├── controls │ ├── base_options.rb │ ├── boolean.rb │ ├── color.rb │ ├── control.rb │ ├── date.rb │ ├── multi_options.rb │ ├── number.rb │ ├── object.rb │ ├── options.rb │ ├── simple_control.rb │ └── text.rb │ ├── engine.rb │ ├── stories.rb │ ├── stories_parser.rb │ ├── story.rb │ ├── tasks │ └── view_component_storybook.rake │ └── version.rb ├── spec ├── dummy │ ├── app │ │ ├── assets │ │ │ ├── config │ │ │ │ └── manifest.js │ │ │ └── stylesheets │ │ │ │ └── application.css │ │ ├── components │ │ │ ├── args_component.html.erb │ │ │ ├── args_component.rb │ │ │ ├── content_component.html.erb │ │ │ ├── content_component.rb │ │ │ ├── demo │ │ │ │ ├── button_component.html.erb │ │ │ │ ├── button_component.rb │ │ │ │ ├── heading_component.html.erb │ │ │ │ └── heading_component.rb │ │ │ ├── dry_component.html.erb │ │ │ ├── dry_component.rb │ │ │ ├── example_component.html.erb │ │ │ ├── example_component.rb │ │ │ ├── kitchen_sink_component.html.erb │ │ │ ├── kitchen_sink_component.rb │ │ │ ├── kwargs_component.html.erb │ │ │ ├── kwargs_component.rb │ │ │ ├── mixed_args_component.html.erb │ │ │ ├── mixed_args_component.rb │ │ │ ├── slots_component.html.erb │ │ │ ├── slots_component.rb │ │ │ └── slots_component │ │ │ │ └── my_highlight_component.html.erb │ │ ├── controllers │ │ │ └── application_controller.rb │ │ ├── helpers │ │ │ └── application_helper.rb │ │ ├── models │ │ │ └── author.rb │ │ └── views │ │ │ └── layouts │ │ │ ├── admin.html.erb │ │ │ ├── application.html.erb │ │ │ └── mobile.html.erb │ ├── config.ru │ ├── config │ │ ├── application.rb │ │ ├── boot.rb │ │ ├── environment.rb │ │ ├── environments │ │ │ └── test.rb │ │ ├── initializers │ │ │ └── assets.rb │ │ ├── locales │ │ │ └── en.yml │ │ └── routes.rb │ └── test │ │ └── components │ │ └── stories │ │ ├── args_component_stories.rb │ │ ├── combined_control_stories.rb │ │ ├── content_component_stories.rb │ │ ├── control_default_stories.rb │ │ ├── demo │ │ ├── button_component_stories.rb │ │ └── heading_component_stories.rb │ │ ├── dry_component_stories.rb │ │ ├── kitchen_sink_component_stories.rb │ │ ├── kwargs_component_stories.rb │ │ ├── layout_stories.rb │ │ ├── mixed_args_component_stories.rb │ │ ├── no_layout_stories.rb │ │ ├── parameters_stories.rb │ │ └── slots_stories.rb ├── spec_helper.rb ├── support │ └── controls_examples.rb └── view_component │ ├── storybook │ ├── collections │ │ └── controls_collection_spec.rb │ ├── controls │ │ ├── boolean_config_spec.rb │ │ ├── color_config_spec.rb │ │ ├── date_config_spec.rb │ │ ├── multi_options_config_spec.rb │ │ ├── number_config_spec.rb │ │ ├── object_config_spec.rb │ │ ├── options_config_spec.rb │ │ └── text_config_spec.rb │ ├── stories_spec.rb │ └── view_components_controller_spec.rb │ └── storybook_spec.rb ├── view_component-storybook.gemspec └── view_component_storybook-0.12.1.gem /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/scorecards-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/.github/workflows/scorecards-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/Rakefile -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/SECURITY.md -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/bin/setup -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/.gitignore -------------------------------------------------------------------------------- /docs/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/404.html -------------------------------------------------------------------------------- /docs/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/CHANGELOG.md -------------------------------------------------------------------------------- /docs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/CONTRIBUTING.md -------------------------------------------------------------------------------- /docs/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/Gemfile -------------------------------------------------------------------------------- /docs/Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/Gemfile.lock -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/_config.yml -------------------------------------------------------------------------------- /docs/assets/images/hello_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/assets/images/hello_world.png -------------------------------------------------------------------------------- /docs/assets/images/hello_world_controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/assets/images/hello_world_controls.png -------------------------------------------------------------------------------- /docs/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/configuration.md -------------------------------------------------------------------------------- /docs/guide/controls.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/guide/controls.md -------------------------------------------------------------------------------- /docs/guide/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/guide/getting-started.md -------------------------------------------------------------------------------- /docs/guide/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/guide/index.md -------------------------------------------------------------------------------- /docs/guide/parameters.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/guide/parameters.md -------------------------------------------------------------------------------- /docs/guide/slots.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/guide/slots.md -------------------------------------------------------------------------------- /docs/guide/stories.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/guide/stories.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/docs/index.md -------------------------------------------------------------------------------- /lib/view_component/storybook.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/collections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/collections.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/collections/controls_collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/collections/controls_collection.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/collections/layout_collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/collections/layout_collection.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/collections/parameters_collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/collections/parameters_collection.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/collections/stories_collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/collections/stories_collection.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/collections/valid_for_story_concern.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/collections/valid_for_story_concern.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/base_options.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/base_options.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/boolean.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/boolean.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/color.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/color.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/control.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/date.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/date.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/multi_options.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/multi_options.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/number.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/object.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/object.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/options.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/options.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/simple_control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/simple_control.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/controls/text.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/controls/text.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/engine.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/stories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/stories.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/stories_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/stories_parser.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/story.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/story.rb -------------------------------------------------------------------------------- /lib/view_component/storybook/tasks/view_component_storybook.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/tasks/view_component_storybook.rake -------------------------------------------------------------------------------- /lib/view_component/storybook/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/lib/view_component/storybook/version.rb -------------------------------------------------------------------------------- /spec/dummy/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | 2 | //= link_directory ../stylesheets .css 3 | -------------------------------------------------------------------------------- /spec/dummy/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/spec/dummy/app/assets/stylesheets/application.css -------------------------------------------------------------------------------- /spec/dummy/app/components/args_component.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/spec/dummy/app/components/args_component.html.erb -------------------------------------------------------------------------------- /spec/dummy/app/components/args_component.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonspalmer/view_component-storybook/HEAD/spec/dummy/app/components/args_component.rb -------------------------------------------------------------------------------- /spec/dummy/app/components/content_component.html.erb: -------------------------------------------------------------------------------- 1 |