From 59677b0b4fc1a2580914db459a44f62c598ba341 Mon Sep 17 00:00:00 2001 From: Jason Rogers Date: Fri, 13 Sep 2024 13:03:51 -0400 Subject: [PATCH 1/2] fix: fixes experiments - renamed default sample for PhlexStorybook.experiment_template --- lib/phlex_storybook.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/phlex_storybook.rb b/lib/phlex_storybook.rb index 476acaf..4db5b5b 100644 --- a/lib/phlex_storybook.rb +++ b/lib/phlex_storybook.rb @@ -50,8 +50,8 @@ def experiment(name) end def experiment_template(name) - file = Engine.root.join("lib", "phlex_storybook", "tasks", "sample_experiment.rb") - File.read(file).gsub("SampleExperiment", name.split("::").map(&:classify).join("::")) + file = Engine.root.join("lib", "phlex_storybook", "tasks", "sample_component.rb") + File.read(file).gsub("SampleComponent", name.split("::").map(&:classify).join("::")) end def experiments From 4042a676d166b2d98a495ac607baceeccba36837 Mon Sep 17 00:00:00 2001 From: Jason Rogers Date: Fri, 13 Sep 2024 13:11:10 -0400 Subject: [PATCH 2/2] build: update version --- Gemfile.lock | 2 +- lib/phlex_storybook/assets/phlex_storybook_application.css | 5 ----- lib/phlex_storybook/version.rb | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 10fdd8d..43f7431 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - phlex_storybook (0.3.1) + phlex_storybook (0.4.0) importmap-rails phlex-icons (~> 0.11.0) phlex-rails (~> 1.2) diff --git a/lib/phlex_storybook/assets/phlex_storybook_application.css b/lib/phlex_storybook/assets/phlex_storybook_application.css index 7f2e134..f2b3ec8 100644 --- a/lib/phlex_storybook/assets/phlex_storybook_application.css +++ b/lib/phlex_storybook/assets/phlex_storybook_application.css @@ -1124,11 +1124,6 @@ fieldset{ padding-right: 0px; } -.px-1{ - padding-left: 0.25rem; - padding-right: 0.25rem; -} - .px-2{ padding-left: 0.5rem; padding-right: 0.5rem; diff --git a/lib/phlex_storybook/version.rb b/lib/phlex_storybook/version.rb index 107033f..124e4f9 100644 --- a/lib/phlex_storybook/version.rb +++ b/lib/phlex_storybook/version.rb @@ -1,3 +1,3 @@ module PhlexStorybook - VERSION = "0.3.1" + VERSION = "0.4.0" end