Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajust Popover example to run with floating-ui #114

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions app/views/docs/popover_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def view_template
Button(variant: :outline) { "Open Popover" }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -30,7 +30,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -53,7 +53,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand Down Expand Up @@ -85,7 +85,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'top' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -103,7 +103,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -126,7 +126,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -152,7 +152,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'top-start' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -170,7 +170,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -193,7 +193,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -219,7 +219,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'top-end' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -237,7 +237,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -260,7 +260,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -287,7 +287,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'right' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -305,7 +305,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -328,7 +328,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -354,7 +354,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'right-start' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -372,7 +372,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -395,7 +395,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -421,7 +421,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'right-end' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -439,7 +439,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -462,7 +462,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -489,7 +489,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'left' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -507,7 +507,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -530,7 +530,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -556,7 +556,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'left-start' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -574,7 +574,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -597,7 +597,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -623,7 +623,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'left-end' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -641,7 +641,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -664,7 +664,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -691,7 +691,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'bottom' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -709,7 +709,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -732,7 +732,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -758,7 +758,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'bottom-start' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -776,7 +776,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -799,7 +799,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -825,7 +825,7 @@ def view_template
Button(variant: :outline, class: 'w-full justify-center') { 'bottom-end' }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -843,7 +843,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -866,7 +866,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand Down Expand Up @@ -897,7 +897,7 @@ def view_template
Button(variant: :outline) { "Click" }
end
PopoverContent(class: 'w-40') do
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -915,7 +915,7 @@ def view_template
end
plain "Profile"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand All @@ -938,7 +938,7 @@ def view_template
end
plain "Settings"
end
Link(href: "#", variant: :ghost, class: 'block w-full justify-start pl-2') do
Link(href: "#", variant: :ghost, class: 'w-full justify-start pl-2') do
svg(
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
Expand Down
Loading