From 9c6801541c5b2c640e921a74178179225c60d512 Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Sun, 25 Aug 2024 11:41:18 -0300 Subject: [PATCH] Migrate standalone components - AspectRatio - Badge - Button - Codeblock - Link - Shortcut --- Gemfile.lock | 2 +- .../previews/{phlex_ui => rbui}/aspect_ratio_preview.rb | 2 +- test/components/previews/{phlex_ui => rbui}/badge_preview.rb | 2 +- test/components/previews/{phlex_ui => rbui}/button_preview.rb | 2 +- .../components/previews/{phlex_ui => rbui}/codeblock_preview.rb | 2 +- test/components/previews/{phlex_ui => rbui}/link_preview.rb | 2 +- .../previews/{phlex_ui => rbui}/shortcut_key_preview.rb | 2 +- yarn.lock | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) rename test/components/previews/{phlex_ui => rbui}/aspect_ratio_preview.rb (98%) rename test/components/previews/{phlex_ui => rbui}/badge_preview.rb (97%) rename test/components/previews/{phlex_ui => rbui}/button_preview.rb (98%) rename test/components/previews/{phlex_ui => rbui}/codeblock_preview.rb (95%) rename test/components/previews/{phlex_ui => rbui}/link_preview.rb (98%) rename test/components/previews/{phlex_ui => rbui}/shortcut_key_preview.rb (96%) diff --git a/Gemfile.lock b/Gemfile.lock index f2ff71c..feb1324 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/PhlexUI/phlex_ui.git - revision: 4d7f8c7ea5c974540f0139d40a128530112f68f2 + revision: c2b5b37964e5255df7caf55002bd0964734d6111 branch: v1 specs: phlex_ui (0.1.10) diff --git a/test/components/previews/phlex_ui/aspect_ratio_preview.rb b/test/components/previews/rbui/aspect_ratio_preview.rb similarity index 98% rename from test/components/previews/phlex_ui/aspect_ratio_preview.rb rename to test/components/previews/rbui/aspect_ratio_preview.rb index 1413ddf..c8e40c3 100644 --- a/test/components/previews/phlex_ui/aspect_ratio_preview.rb +++ b/test/components/previews/rbui/aspect_ratio_preview.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module PhlexUi +module Rbui class AspectRatioPreview < Lookbook::Preview # AspectRatio 16/9 # --------------- diff --git a/test/components/previews/phlex_ui/badge_preview.rb b/test/components/previews/rbui/badge_preview.rb similarity index 97% rename from test/components/previews/phlex_ui/badge_preview.rb rename to test/components/previews/rbui/badge_preview.rb index afc5531..fbb8c8f 100644 --- a/test/components/previews/phlex_ui/badge_preview.rb +++ b/test/components/previews/rbui/badge_preview.rb @@ -2,7 +2,7 @@ # rubocop:disable Layout/LineLength -module PhlexUi +module Rbui class BadgePreview < Lookbook::Preview # Default Badge # --------------- diff --git a/test/components/previews/phlex_ui/button_preview.rb b/test/components/previews/rbui/button_preview.rb similarity index 98% rename from test/components/previews/phlex_ui/button_preview.rb rename to test/components/previews/rbui/button_preview.rb index 92d9230..398d2fd 100644 --- a/test/components/previews/phlex_ui/button_preview.rb +++ b/test/components/previews/rbui/button_preview.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module PhlexUi +module Rbui class ButtonPreview < Lookbook::Preview # Primary Button # --------------- diff --git a/test/components/previews/phlex_ui/codeblock_preview.rb b/test/components/previews/rbui/codeblock_preview.rb similarity index 95% rename from test/components/previews/phlex_ui/codeblock_preview.rb rename to test/components/previews/rbui/codeblock_preview.rb index 46ba92e..f96c8d2 100644 --- a/test/components/previews/phlex_ui/codeblock_preview.rb +++ b/test/components/previews/rbui/codeblock_preview.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module PhlexUi +module Rbui class CodeblockPreview < Lookbook::Preview # Default Codeblock # --------------- diff --git a/test/components/previews/phlex_ui/link_preview.rb b/test/components/previews/rbui/link_preview.rb similarity index 98% rename from test/components/previews/phlex_ui/link_preview.rb rename to test/components/previews/rbui/link_preview.rb index 059eb64..6510677 100644 --- a/test/components/previews/phlex_ui/link_preview.rb +++ b/test/components/previews/rbui/link_preview.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module PhlexUi +module Rbui class LinkPreview < Lookbook::Preview # Default Link # --------------- diff --git a/test/components/previews/phlex_ui/shortcut_key_preview.rb b/test/components/previews/rbui/shortcut_key_preview.rb similarity index 96% rename from test/components/previews/phlex_ui/shortcut_key_preview.rb rename to test/components/previews/rbui/shortcut_key_preview.rb index 12e596e..45a5273 100644 --- a/test/components/previews/phlex_ui/shortcut_key_preview.rb +++ b/test/components/previews/rbui/shortcut_key_preview.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module PhlexUi +module Rbui class ShortcutKeyPreview < Lookbook::Preview def default render(TestView.new) do diff --git a/yarn.lock b/yarn.lock index dcb895b..47e9ddb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -833,7 +833,7 @@ queue-microtask@^1.2.2: "rbui-js@https://github.com/PhlexUI/phlex_ui.git#v1": version "0.0.1-alpha.0" - resolved "https://github.com/PhlexUI/phlex_ui.git#4d7f8c7ea5c974540f0139d40a128530112f68f2" + resolved "https://github.com/PhlexUI/phlex_ui.git#c2b5b37964e5255df7caf55002bd0964734d6111" dependencies: "@floating-ui/dom" "^1.6.8" "@hotwired/stimulus" "^3.2.2"