-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild Popover with Floating UI (#324)
- Loading branch information
1 parent
6808d6c
commit ecdc02d
Showing
8 changed files
with
894 additions
and
2,294 deletions.
There are no files selected for viewing
3,025 changes: 798 additions & 2,227 deletions
3,025
app/assets/javascripts/polaris_view_components.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,7 @@ def empty_state | |
|
||
def event_handler | ||
end | ||
|
||
def long_page | ||
end | ||
end |
22 changes: 22 additions & 0 deletions
22
demo/app/previews/autocomplete_component_preview/long_page.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<% 3.times do %> | ||
<%= polaris_card do %> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br><br> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
<% end %> | ||
<% end %> | ||
<%= polaris_card do %> | ||
<%= polaris_autocomplete do |autocomplete| %> | ||
<% autocomplete.with_text_field(name: :tags, label: "Tags", placeholder: "Search") do |c| %> | ||
<% c.with_prefix do %> | ||
<%= polaris_icon(name: "SearchMinor") %> | ||
<% end %> | ||
<% end %> | ||
<% autocomplete.with_option(label: "Rustic", value: "rustic") %> | ||
<% autocomplete.with_option(label: "Antique", value: "antique") %> | ||
<% autocomplete.with_option(label: "Vinyl", value: "vinyl") %> | ||
<% autocomplete.with_option(label: "Vintage", value: "vintage") %> | ||
<% autocomplete.with_option(label: "Refurbished", value: "refurbished") %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters