From c70765904e56afee0d033d52d19a5e7b45c07e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20Pierry=20de=20Souza=20Mendon=C3=A7a?= Date: Thu, 29 Aug 2024 17:32:31 -0300 Subject: [PATCH] Migrate Sheet from PhlexUI to RBUI (#107) --- Gemfile.lock | 4 ++-- app/views/docs/sheet_view.rb | 4 ++-- test/components/previews/{phlex_ui => rbui}/sheet_preview.rb | 4 ++-- yarn.lock | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename test/components/previews/{phlex_ui => rbui}/sheet_preview.rb (95%) diff --git a/Gemfile.lock b/Gemfile.lock index feb1324..5856667 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/PhlexUI/phlex_ui.git - revision: c2b5b37964e5255df7caf55002bd0964734d6111 + revision: bccfd09c75126620a65cae0560ef35ded715d1b5 branch: v1 specs: phlex_ui (0.1.10) @@ -300,7 +300,7 @@ GEM railties (>= 6.0.0) stringio (3.1.1) strscan (3.1.0) - tailwind_merge (0.12.2) + tailwind_merge (0.13.0) lru_redux (~> 1.1) thor (1.3.1) timeout (0.4.1) diff --git a/app/views/docs/sheet_view.rb b/app/views/docs/sheet_view.rb index 315257d..c959f06 100644 --- a/app/views/docs/sheet_view.rb +++ b/app/views/docs/sheet_view.rb @@ -26,7 +26,7 @@ def view_template Input(placeholder: "joel@drapper.me") end SheetFooter do - Button(variant: :outline, data: { action: 'click->dismissable#dismiss' }) { "Cancel" } + Button(variant: :outline, data: { action: 'click->rbui--sheet-content#close' }) { "Cancel" } Button(type: "submit") { "Save" } end end @@ -56,7 +56,7 @@ def view_template Input(placeholder: "joel@drapper.me") end SheetFooter do - Button(variant: :outline, data: { action: 'click->dismissable#dismiss' }) { "Cancel" } + Button(variant: :outline, data: { action: 'click->rbui--sheet-content#close' }) { "Cancel" } Button(type: "submit") { "Save" } end end diff --git a/test/components/previews/phlex_ui/sheet_preview.rb b/test/components/previews/rbui/sheet_preview.rb similarity index 95% rename from test/components/previews/phlex_ui/sheet_preview.rb rename to test/components/previews/rbui/sheet_preview.rb index 70f16f3..af1575c 100644 --- a/test/components/previews/phlex_ui/sheet_preview.rb +++ b/test/components/previews/rbui/sheet_preview.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module PhlexUi +module Rbui class SheetPreview < Lookbook::Preview # Default Sheet # --------------- @@ -26,7 +26,7 @@ def default(side: :top, size: "") end SheetFooter do - Button(variant: :outline, data: {action: "click->dismissable#dismiss"}) { "Cancel" } + Button(variant: :outline, data: {action: "click->rbui--sheet-content#close"}) { "Cancel" } Button(type: "submit") { "Save" } end end diff --git a/yarn.lock b/yarn.lock index 47e9ddb..9654820 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#c2b5b37964e5255df7caf55002bd0964734d6111" + resolved "https://github.com/PhlexUI/phlex_ui.git#bccfd09c75126620a65cae0560ef35ded715d1b5" dependencies: "@floating-ui/dom" "^1.6.8" "@hotwired/stimulus" "^3.2.2"