railsui 3.1.5 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.claude/settings.local.json +10 -0
- data/Gemfile.lock +29 -27
- data/README.md +1 -1
- data/app/assets/images/tailwind-corgie-thumbnail.jpg +0 -0
- data/app/assets/stylesheets/railsui/railsui.css +18 -0
- data/app/helpers/railsui/application_helper.rb +22 -17
- data/app/helpers/railsui/host_route_fallback_helper.rb +18 -0
- data/app/javascript/controllers/alert_controller.js +0 -0
- data/app/models/railsui/default.rb +28 -109
- data/app/views/railsui/admin/fields/_color.html.erb +6 -1
- data/app/views/railsui/admin/fields/_theme.html.erb +16 -8
- data/app/views/railsui/shared/_flash_messages.html.erb +2 -2
- data/app/views/railsui/shared/_full_access_cta.html.erb +27 -0
- data/app/views/railsui/shared/_preview.html.erb +1 -1
- data/app/views/railsui/shared/_rui_email_preview.html.erb +60 -3
- data/app/views/railsui/systems/forms/form_builder.html.erb +171 -0
- data/app/views/railsui/themes/corgie/_components.html.erb +7 -0
- data/app/views/railsui/themes/corgie/_content.html.erb +9 -0
- data/app/views/railsui/themes/corgie/_fonts.html.erb +0 -0
- data/app/views/railsui/themes/corgie/_forms.html.erb +19 -0
- data/app/views/railsui/themes/corgie/_icons.html.erb +125 -0
- data/app/views/railsui/themes/corgie/_nav.html.erb +166 -0
- data/app/views/railsui/themes/corgie/_scaffolds.html.erb +42 -0
- data/app/views/railsui/themes/corgie/authentication/_overview.html.erb +5 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_change_password.html.erb +74 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_confirmation.html.erb +63 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_edit.html.erb +103 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_overview.html.erb +225 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_reset_password.html.erb +60 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_signin.html.erb +93 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_signup.html.erb +98 -0
- data/app/views/railsui/themes/corgie/authentication/devise/_unlocks.html.erb +60 -0
- data/app/views/railsui/themes/corgie/authentication/static/_change_password.html.erb +67 -0
- data/app/views/railsui/themes/corgie/authentication/static/_confirmation.html.erb +58 -0
- data/app/views/railsui/themes/corgie/authentication/static/_overview.html.erb +204 -0
- data/app/views/railsui/themes/corgie/authentication/static/_reset_password.html.erb +59 -0
- data/app/views/railsui/themes/corgie/authentication/static/_signin.html.erb +102 -0
- data/app/views/railsui/themes/corgie/authentication/static/_signup.html.erb +108 -0
- data/app/views/railsui/themes/corgie/authentication/static/_unlocks.html.erb +60 -0
- data/app/views/railsui/themes/corgie/components/_accordion.html.erb +17 -0
- data/app/views/railsui/themes/corgie/components/_alert.html.erb +23 -0
- data/app/views/railsui/themes/corgie/components/_avatar.html.erb +13 -0
- data/app/views/railsui/themes/corgie/components/_badge.html.erb +20 -0
- data/app/views/railsui/themes/corgie/components/_breadcrumb.html.erb +14 -0
- data/app/views/railsui/themes/corgie/components/_button.html.erb +16 -0
- data/app/views/railsui/themes/corgie/components/_card.html.erb +23 -0
- data/app/views/railsui/themes/corgie/components/_combobox.html.erb +11 -0
- data/app/views/railsui/themes/corgie/components/_dropdown.html.erb +22 -0
- data/app/views/railsui/themes/corgie/components/_flash.html.erb +17 -0
- data/app/views/railsui/themes/corgie/components/_modal.html.erb +27 -0
- data/app/views/railsui/themes/corgie/components/_navigation.html.erb +7 -0
- data/app/views/railsui/themes/corgie/components/_pagination.html.erb +15 -0
- data/app/views/railsui/themes/corgie/components/_tab.html.erb +23 -0
- data/app/views/railsui/themes/corgie/components/_toast.html.erb +75 -0
- data/app/views/railsui/themes/corgie/components/_tooltip.html.erb +77 -0
- data/app/views/railsui/themes/corgie/components/accordion/_contained.html.erb +90 -0
- data/app/views/railsui/themes/corgie/components/accordion/_flush.html.erb +92 -0
- data/app/views/railsui/themes/corgie/components/alert/_dismissable.html.erb +45 -0
- data/app/views/railsui/themes/corgie/components/alert/_with_accent_border.html.erb +32 -0
- data/app/views/railsui/themes/corgie/components/alert/_with_actions.html.erb +57 -0
- data/app/views/railsui/themes/corgie/components/alert/_with_description.html.erb +41 -0
- data/app/views/railsui/themes/corgie/components/alert/_with_list.html.erb +46 -0
- data/app/views/railsui/themes/corgie/components/avatar/_circle.html.erb +53 -0
- data/app/views/railsui/themes/corgie/components/avatar/_rounded.html.erb +53 -0
- data/app/views/railsui/themes/corgie/components/badge/_basic.html.erb +70 -0
- data/app/views/railsui/themes/corgie/components/badge/_outline.html.erb +67 -0
- data/app/views/railsui/themes/corgie/components/badge/_pill.html.erb +67 -0
- data/app/views/railsui/themes/corgie/components/badge/_tag.html.erb +277 -0
- data/app/views/railsui/themes/corgie/components/breadcrumb/_article.html.erb +88 -0
- data/app/views/railsui/themes/corgie/components/breadcrumb/_base.html.erb +77 -0
- data/app/views/railsui/themes/corgie/components/button/_base.html.erb +38 -0
- data/app/views/railsui/themes/corgie/components/button/_expanded.html.erb +24 -0
- data/app/views/railsui/themes/corgie/components/button/_sizes.html.erb +31 -0
- data/app/views/railsui/themes/corgie/components/card/_article.html.erb +119 -0
- data/app/views/railsui/themes/corgie/components/card/_base.html.erb +34 -0
- data/app/views/railsui/themes/corgie/components/card/_feature.html.erb +54 -0
- data/app/views/railsui/themes/corgie/components/card/_team_member.html.erb +60 -0
- data/app/views/railsui/themes/corgie/components/card/_value.html.erb +54 -0
- data/app/views/railsui/themes/corgie/components/combobox/_base.html.erb +250 -0
- data/app/views/railsui/themes/corgie/components/dropdown/_base.html.erb +61 -0
- data/app/views/railsui/themes/corgie/components/dropdown/_dropdown.html.erb +24 -0
- data/app/views/railsui/themes/corgie/components/dropdown/_dropdown_w_icon.html.erb +27 -0
- data/app/views/railsui/themes/corgie/components/dropdown/_right_aligned.html.erb +82 -0
- data/app/views/railsui/themes/corgie/components/dropdown/_with_dividers.html.erb +93 -0
- data/app/views/railsui/themes/corgie/components/dropdown/_with_icons.html.erb +85 -0
- data/app/views/railsui/themes/corgie/components/dropdown/tutorial/_1.html.erb +44 -0
- data/app/views/railsui/themes/corgie/components/dropdown/tutorial/_2.html.erb +16 -0
- data/app/views/railsui/themes/corgie/components/dropdown/tutorial/_3.html.erb +16 -0
- data/app/views/railsui/themes/corgie/components/dropdown/tutorial/_4.html.erb +27 -0
- data/app/views/railsui/themes/corgie/components/dropdown/tutorial/_dependencies.html.erb +3 -0
- data/app/views/railsui/themes/corgie/components/dropdown/tutorial/_tutorial.html.erb +25 -0
- data/app/views/railsui/themes/corgie/components/flash/_alert.html.erb +29 -0
- data/app/views/railsui/themes/corgie/components/flash/_dynamic.html.erb +46 -0
- data/app/views/railsui/themes/corgie/components/flash/_notice.html.erb +29 -0
- data/app/views/railsui/themes/corgie/components/modal/_base.html.erb +110 -0
- data/app/views/railsui/themes/corgie/components/modal/_centered_dual_action.html.erb +124 -0
- data/app/views/railsui/themes/corgie/components/modal/_dismiss_icon.html.erb +124 -0
- data/app/views/railsui/themes/corgie/components/modal/_settings.html.erb +201 -0
- data/app/views/railsui/themes/corgie/components/modal/_single_action.html.erb +119 -0
- data/app/views/railsui/themes/corgie/components/modal/_with_form.html.erb +148 -0
- data/app/views/railsui/themes/corgie/components/navigation/_base.html.erb +215 -0
- data/app/views/railsui/themes/corgie/components/navigation/_chat.html.erb +194 -0
- data/app/views/railsui/themes/corgie/components/navigation/_nav_preview.html.erb +9 -0
- data/app/views/railsui/themes/corgie/components/pagination/_contained.html.erb +131 -0
- data/app/views/railsui/themes/corgie/components/pagination/_pagy.html.erb +97 -0
- data/app/views/railsui/themes/corgie/components/pagination/_simple.html.erb +114 -0
- data/app/views/railsui/themes/corgie/components/tab/_base.html.erb +101 -0
- data/app/views/railsui/themes/corgie/components/tab/_pills.html.erb +102 -0
- data/app/views/railsui/themes/corgie/components/tab/_rounded.html.erb +104 -0
- data/app/views/railsui/themes/corgie/components/tab/_vertical.html.erb +145 -0
- data/app/views/railsui/themes/corgie/components/tab/_with_icons.html.erb +138 -0
- data/app/views/railsui/themes/corgie/components/toast/_base.html.erb +98 -0
- data/app/views/railsui/themes/corgie/components/tooltip/_base.html.erb +51 -0
- data/app/views/railsui/themes/corgie/content/_image.html.erb +31 -0
- data/app/views/railsui/themes/corgie/content/_table.html.erb +21 -0
- data/app/views/railsui/themes/corgie/content/_typography.html.erb +47 -0
- data/app/views/railsui/themes/corgie/content/image/_object_contain.html.erb +31 -0
- data/app/views/railsui/themes/corgie/content/image/_object_cover.html.erb +32 -0
- data/app/views/railsui/themes/corgie/content/image/_object_fill.html.erb +32 -0
- data/app/views/railsui/themes/corgie/content/image/_object_scale_down.html.erb +34 -0
- data/app/views/railsui/themes/corgie/content/image/_responsive.html.erb +24 -0
- data/app/views/railsui/themes/corgie/content/table/_bordered.html.erb +93 -0
- data/app/views/railsui/themes/corgie/content/table/_borderless.html.erb +92 -0
- data/app/views/railsui/themes/corgie/content/table/_comparison.html.erb +494 -0
- data/app/views/railsui/themes/corgie/content/typography/_blockquote.html.erb +41 -0
- data/app/views/railsui/themes/corgie/content/typography/_display_headings.html.erb +70 -0
- data/app/views/railsui/themes/corgie/content/typography/_fonts.html.erb +30 -0
- data/app/views/railsui/themes/corgie/content/typography/_headings.html.erb +88 -0
- data/app/views/railsui/themes/corgie/content/typography/_inline_formatting.html.erb +44 -0
- data/app/views/railsui/themes/corgie/content/typography/_lead_paragraph.html.erb +26 -0
- data/app/views/railsui/themes/corgie/content/typography/_lists.html.erb +82 -0
- data/app/views/railsui/themes/corgie/content/typography/_paragraphs.html.erb +33 -0
- data/app/views/railsui/themes/corgie/forms/_action_text.html.erb +54 -0
- data/app/views/railsui/themes/corgie/forms/_checkbox.html.erb +60 -0
- data/app/views/railsui/themes/corgie/forms/_form_builder.html.erb +487 -0
- data/app/views/railsui/themes/corgie/forms/_input.html.erb +378 -0
- data/app/views/railsui/themes/corgie/forms/_input_group.html.erb +485 -0
- data/app/views/railsui/themes/corgie/forms/_radio.html.erb +92 -0
- data/app/views/railsui/themes/corgie/forms/_select.html.erb +118 -0
- data/app/views/railsui/themes/corgie/forms/_switch.html.erb +60 -0
- data/app/views/railsui/themes/corgie/forms/_validation.html.erb +52 -0
- data/app/views/railsui/themes/corgie/mailers/_devise.html.erb +44 -0
- data/app/views/railsui/themes/corgie/mailers/_layout.html.erb +536 -0
- data/app/views/railsui/themes/corgie/mailers/_mailer_preview.html.erb +523 -0
- data/app/views/railsui/themes/corgie/mailers/_minimal.html.erb +63 -0
- data/app/views/railsui/themes/corgie/mailers/_promotion.html.erb +62 -0
- data/app/views/railsui/themes/corgie/mailers/_transactional.html.erb +133 -0
- data/app/views/railsui/themes/corgie/mailers/devise/_confirmation_instructions.html.erb +34 -0
- data/app/views/railsui/themes/corgie/mailers/devise/_email_changed.html.erb +32 -0
- data/app/views/railsui/themes/corgie/mailers/devise/_password_changed.html.erb +25 -0
- data/app/views/railsui/themes/corgie/mailers/devise/_reset_password_instructions.html.erb +33 -0
- data/app/views/railsui/themes/corgie/mailers/devise/_unlock_instructions.html.erb +32 -0
- data/app/views/railsui/themes/corgie/scaffolds/_edit.html.erb +88 -0
- data/app/views/railsui/themes/corgie/scaffolds/_index.html.erb +88 -0
- data/app/views/railsui/themes/corgie/scaffolds/_new.html.erb +80 -0
- data/app/views/railsui/themes/corgie/scaffolds/_partial.html.erb +56 -0
- data/app/views/railsui/themes/corgie/scaffolds/_show.html.erb +85 -0
- data/app/views/railsui/themes/hound/_forms.html.erb +2 -0
- data/app/views/railsui/themes/hound/_nav.html.erb +2 -0
- data/app/views/railsui/themes/hound/authentication/devise/_change_password.html.erb +1 -27
- data/app/views/railsui/themes/hound/authentication/devise/_confirmation.html.erb +1 -20
- data/app/views/railsui/themes/hound/authentication/devise/_edit.html.erb +1 -44
- data/app/views/railsui/themes/hound/authentication/devise/_overview.html.erb +3 -51
- data/app/views/railsui/themes/hound/authentication/devise/_reset_password.html.erb +1 -17
- data/app/views/railsui/themes/hound/authentication/devise/_signin.html.erb +1 -30
- data/app/views/railsui/themes/hound/authentication/devise/_signup.html.erb +1 -31
- data/app/views/railsui/themes/hound/authentication/devise/_unlocks.html.erb +1 -17
- data/app/views/railsui/themes/hound/authentication/static/_change_password.html.erb +1 -32
- data/app/views/railsui/themes/hound/authentication/static/_confirmation.html.erb +1 -23
- data/app/views/railsui/themes/hound/authentication/static/_edit.html.erb +1 -39
- data/app/views/railsui/themes/hound/authentication/static/_overview.html.erb +2 -40
- data/app/views/railsui/themes/hound/authentication/static/_reset_password.html.erb +1 -22
- data/app/views/railsui/themes/hound/authentication/static/_signin.html.erb +1 -35
- data/app/views/railsui/themes/hound/authentication/static/_signup.html.erb +1 -31
- data/app/views/railsui/themes/hound/authentication/static/_unlocks.html.erb +1 -20
- data/app/views/railsui/themes/hound/components/_toast.html.erb +0 -3
- data/app/views/railsui/themes/hound/components/accordion/_contained.html.erb +0 -27
- data/app/views/railsui/themes/hound/components/accordion/_flush.html.erb +0 -27
- data/app/views/railsui/themes/hound/components/alert/_dismissable.html.erb +0 -8
- data/app/views/railsui/themes/hound/components/alert/_with_accent_border.html.erb +0 -7
- data/app/views/railsui/themes/hound/components/alert/_with_actions.html.erb +0 -11
- data/app/views/railsui/themes/hound/components/alert/_with_description.html.erb +0 -7
- data/app/views/railsui/themes/hound/components/alert/_with_list.html.erb +0 -8
- data/app/views/railsui/themes/hound/components/avatar/_circle.html.erb +0 -12
- data/app/views/railsui/themes/hound/components/avatar/_rounded.html.erb +0 -12
- data/app/views/railsui/themes/hound/components/badge/_basic.html.erb +0 -22
- data/app/views/railsui/themes/hound/components/badge/_outline.html.erb +0 -22
- data/app/views/railsui/themes/hound/components/badge/_pill.html.erb +0 -22
- data/app/views/railsui/themes/hound/components/badge/_tag.html.erb +0 -52
- data/app/views/railsui/themes/hound/components/breadcrumb/_base.html.erb +0 -14
- data/app/views/railsui/themes/hound/components/breadcrumb/_contained.html.erb +0 -14
- data/app/views/railsui/themes/hound/components/button/_base.html.erb +0 -10
- data/app/views/railsui/themes/hound/components/button/_expanded.html.erb +0 -3
- data/app/views/railsui/themes/hound/components/button/_sizes.html.erb +0 -5
- data/app/views/railsui/themes/hound/components/card/_base.html.erb +0 -6
- data/app/views/railsui/themes/hound/components/card/_user_card.html.erb +0 -13
- data/app/views/railsui/themes/hound/components/card/_user_card_dropdown.html.erb +0 -20
- data/app/views/railsui/themes/hound/components/card/_user_card_with_actions.html.erb +0 -18
- data/app/views/railsui/themes/hound/components/card/_with_action.html.erb +0 -13
- data/app/views/railsui/themes/hound/components/card/_with_header.html.erb +0 -43
- data/app/views/railsui/themes/hound/components/combobox/_base.html.erb +0 -40
- data/app/views/railsui/themes/hound/components/dropdown/_base.html.erb +0 -10
- data/app/views/railsui/themes/hound/components/dropdown/_right_aligned.html.erb +0 -14
- data/app/views/railsui/themes/hound/components/dropdown/_with_dividers.html.erb +0 -14
- data/app/views/railsui/themes/hound/components/dropdown/_with_icons.html.erb +0 -20
- data/app/views/railsui/themes/hound/components/flash/_alert.html.erb +0 -5
- data/app/views/railsui/themes/hound/components/flash/_dynamic.html.erb +0 -5
- data/app/views/railsui/themes/hound/components/flash/_notice.html.erb +0 -5
- data/app/views/railsui/themes/hound/components/modal/_base.html.erb +0 -13
- data/app/views/railsui/themes/hound/components/modal/_centered_dual_action.html.erb +0 -16
- data/app/views/railsui/themes/hound/components/modal/_dismiss_icon.html.erb +0 -20
- data/app/views/railsui/themes/hound/components/modal/_single_action.html.erb +0 -15
- data/app/views/railsui/themes/hound/components/modal/_with_form.html.erb +0 -23
- data/app/views/railsui/themes/hound/components/navigation/_base.html.erb +1 -41
- data/app/views/railsui/themes/hound/components/navigation/_with_action.html.erb +1 -38
- data/app/views/railsui/themes/hound/components/navigation/_with_dropdowns.html.erb +1 -105
- data/app/views/railsui/themes/hound/components/navigation/_with_search.html.erb +1 -41
- data/app/views/railsui/themes/hound/components/pagination/_contained.html.erb +0 -31
- data/app/views/railsui/themes/hound/components/pagination/_minimal.html.erb +0 -27
- data/app/views/railsui/themes/hound/components/pagination/_pagy.html.erb +47 -72
- data/app/views/railsui/themes/hound/components/tab/_base.html.erb +1 -18
- data/app/views/railsui/themes/hound/components/tab/_pills.html.erb +1 -18
- data/app/views/railsui/themes/hound/components/tab/_rounded.html.erb +1 -18
- data/app/views/railsui/themes/hound/components/tab/_with_icons.html.erb +1 -26
- data/app/views/railsui/themes/hound/components/toast/_base.html.erb +0 -16
- data/app/views/railsui/themes/hound/components/tooltip/_base.html.erb +0 -3
- data/app/views/railsui/themes/hound/content/image/_object_contain.html.erb +0 -5
- data/app/views/railsui/themes/hound/content/image/_object_cover.html.erb +0 -5
- data/app/views/railsui/themes/hound/content/image/_object_fill.html.erb +0 -5
- data/app/views/railsui/themes/hound/content/image/_object_scale_down.html.erb +0 -5
- data/app/views/railsui/themes/hound/content/image/_responsive.html.erb +0 -4
- data/app/views/railsui/themes/hound/content/table/_bordered.html.erb +0 -21
- data/app/views/railsui/themes/hound/content/table/_borderless.html.erb +0 -21
- data/app/views/railsui/themes/hound/content/typography/_blockquote.html.erb +0 -9
- data/app/views/railsui/themes/hound/content/typography/_display_headings.html.erb +0 -9
- data/app/views/railsui/themes/hound/content/typography/_headings.html.erb +0 -12
- data/app/views/railsui/themes/hound/content/typography/_inline_formatting.html.erb +0 -20
- data/app/views/railsui/themes/hound/content/typography/_lead_paragraph.html.erb +0 -5
- data/app/views/railsui/themes/hound/content/typography/_lists.html.erb +0 -17
- data/app/views/railsui/themes/hound/content/typography/_paragraphs.html.erb +0 -4
- data/app/views/railsui/themes/hound/forms/_action_text.html.erb +0 -6
- data/app/views/railsui/themes/hound/forms/_checkbox.html.erb +0 -9
- data/app/views/railsui/themes/hound/forms/_form_builder.html.erb +487 -0
- data/app/views/railsui/themes/hound/forms/_input.html.erb +0 -93
- data/app/views/railsui/themes/hound/forms/_input_group.html.erb +0 -83
- data/app/views/railsui/themes/hound/forms/_radio.html.erb +0 -13
- data/app/views/railsui/themes/hound/forms/_select.html.erb +0 -16
- data/app/views/railsui/themes/hound/forms/_switch.html.erb +0 -9
- data/app/views/railsui/themes/hound/forms/_validation.html.erb +0 -15
- data/app/views/railsui/themes/hound/mailers/_layout.html.erb +1 -432
- data/app/views/railsui/themes/hound/mailers/_minimal.html.erb +1 -16
- data/app/views/railsui/themes/hound/mailers/_promotion.html.erb +1 -20
- data/app/views/railsui/themes/hound/mailers/_transactional.html.erb +1 -43
- data/app/views/railsui/themes/hound/mailers/devise/_confirmation_instructions.html.erb +1 -9
- data/app/views/railsui/themes/hound/mailers/devise/_email_changed.html.erb +1 -13
- data/app/views/railsui/themes/hound/mailers/devise/_password_changed.html.erb +1 -7
- data/app/views/railsui/themes/hound/mailers/devise/_reset_password_instructions.html.erb +1 -9
- data/app/views/railsui/themes/hound/mailers/devise/_unlock_instructions.html.erb +1 -9
- data/app/views/railsui/themes/hound/scaffolds/_edit.html.erb +1 -19
- data/app/views/railsui/themes/hound/scaffolds/_index.html.erb +1 -14
- data/app/views/railsui/themes/hound/scaffolds/_new.html.erb +1 -17
- data/app/views/railsui/themes/hound/scaffolds/_partial.html.erb +1 -17
- data/app/views/railsui/themes/hound/scaffolds/_show.html.erb +1 -20
- data/app/views/railsui/themes/shepherd/_forms.html.erb +5 -3
- data/app/views/railsui/themes/shepherd/_nav.html.erb +2 -0
- data/app/views/railsui/themes/shepherd/authentication/devise/_change_password.html.erb +1 -23
- data/app/views/railsui/themes/shepherd/authentication/devise/_confirmation.html.erb +1 -12
- data/app/views/railsui/themes/shepherd/authentication/devise/_edit.html.erb +1 -74
- data/app/views/railsui/themes/shepherd/authentication/devise/_overview.html.erb +2 -57
- data/app/views/railsui/themes/shepherd/authentication/devise/_reset_password.html.erb +1 -12
- data/app/views/railsui/themes/shepherd/authentication/devise/_signin.html.erb +1 -25
- data/app/views/railsui/themes/shepherd/authentication/devise/_signup.html.erb +1 -26
- data/app/views/railsui/themes/shepherd/authentication/devise/_unlocks.html.erb +1 -12
- data/app/views/railsui/themes/shepherd/authentication/static/_change_password.html.erb +1 -23
- data/app/views/railsui/themes/shepherd/authentication/static/_confirmation.html.erb +1 -12
- data/app/views/railsui/themes/shepherd/authentication/static/_edit.html.erb +1 -67
- data/app/views/railsui/themes/shepherd/authentication/static/_overview.html.erb +1 -56
- data/app/views/railsui/themes/shepherd/authentication/static/_reset_password.html.erb +1 -12
- data/app/views/railsui/themes/shepherd/authentication/static/_signin.html.erb +1 -24
- data/app/views/railsui/themes/shepherd/authentication/static/_signup.html.erb +1 -26
- data/app/views/railsui/themes/shepherd/authentication/static/_unlocks.html.erb +1 -16
- data/app/views/railsui/themes/shepherd/components/_toast.html.erb +0 -3
- data/app/views/railsui/themes/shepherd/components/accordion/_contained.html.erb +0 -28
- data/app/views/railsui/themes/shepherd/components/accordion/_flush.html.erb +0 -27
- data/app/views/railsui/themes/shepherd/components/alert/_dismissable.html.erb +0 -8
- data/app/views/railsui/themes/shepherd/components/alert/_with_accent_border.html.erb +0 -6
- data/app/views/railsui/themes/shepherd/components/alert/_with_actions.html.erb +0 -11
- data/app/views/railsui/themes/shepherd/components/alert/_with_description.html.erb +0 -7
- data/app/views/railsui/themes/shepherd/components/alert/_with_list.html.erb +0 -8
- data/app/views/railsui/themes/shepherd/components/avatar/_circle.html.erb +0 -12
- data/app/views/railsui/themes/shepherd/components/avatar/_rounded.html.erb +0 -12
- data/app/views/railsui/themes/shepherd/components/badge/_basic.html.erb +0 -22
- data/app/views/railsui/themes/shepherd/components/badge/_outline.html.erb +0 -22
- data/app/views/railsui/themes/shepherd/components/badge/_pill.html.erb +0 -22
- data/app/views/railsui/themes/shepherd/components/badge/_tag.html.erb +0 -52
- data/app/views/railsui/themes/shepherd/components/breadcrumb/_base.html.erb +0 -14
- data/app/views/railsui/themes/shepherd/components/breadcrumb/_contained.html.erb +0 -14
- data/app/views/railsui/themes/shepherd/components/button/_base.html.erb +0 -17
- data/app/views/railsui/themes/shepherd/components/button/_expanded.html.erb +0 -3
- data/app/views/railsui/themes/shepherd/components/button/_sizes.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/components/card/_base.html.erb +0 -6
- data/app/views/railsui/themes/shepherd/components/card/_property_card.html.erb +0 -28
- data/app/views/railsui/themes/shepherd/components/card/_property_user_card.html.erb +0 -14
- data/app/views/railsui/themes/shepherd/components/card/_user_card_with_actions.html.erb +0 -12
- data/app/views/railsui/themes/shepherd/components/card/_with_action.html.erb +0 -7
- data/app/views/railsui/themes/shepherd/components/card/_with_header.html.erb +0 -7
- data/app/views/railsui/themes/shepherd/components/combobox/_base.html.erb +0 -40
- data/app/views/railsui/themes/shepherd/components/datalist/_booking_list.html.erb +0 -45
- data/app/views/railsui/themes/shepherd/components/datalist/_property_list.html.erb +0 -47
- data/app/views/railsui/themes/shepherd/components/dropdown/_base.html.erb +0 -10
- data/app/views/railsui/themes/shepherd/components/dropdown/_right_aligned.html.erb +0 -13
- data/app/views/railsui/themes/shepherd/components/dropdown/_with_dividers.html.erb +0 -14
- data/app/views/railsui/themes/shepherd/components/dropdown/_with_menu_icons.html.erb +0 -16
- data/app/views/railsui/themes/shepherd/components/flash/_alert.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/components/flash/_dynamic.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/components/flash/_notice.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/components/modal/_base.html.erb +0 -12
- data/app/views/railsui/themes/shepherd/components/modal/_centered_dual_action.html.erb +0 -16
- data/app/views/railsui/themes/shepherd/components/modal/_dismiss_icon.html.erb +0 -23
- data/app/views/railsui/themes/shepherd/components/modal/_single_action.html.erb +0 -14
- data/app/views/railsui/themes/shepherd/components/modal/_with_form.html.erb +0 -23
- data/app/views/railsui/themes/shepherd/components/navigation/_base.html.erb +0 -81
- data/app/views/railsui/themes/shepherd/components/navigation/_logged_out.html.erb +0 -22
- data/app/views/railsui/themes/shepherd/components/navigation/_with_dropdowns.html.erb +0 -88
- data/app/views/railsui/themes/shepherd/components/navigation/_with_search.html.erb +1 -83
- data/app/views/railsui/themes/shepherd/components/pagination/_contained.html.erb +0 -31
- data/app/views/railsui/themes/shepherd/components/pagination/_dark.html.erb +0 -31
- data/app/views/railsui/themes/shepherd/components/pagination/_pagy.html.erb +53 -98
- data/app/views/railsui/themes/shepherd/components/pagination/_simple.html.erb +0 -27
- data/app/views/railsui/themes/shepherd/components/tab/_base.html.erb +1 -18
- data/app/views/railsui/themes/shepherd/components/tab/_pills.html.erb +1 -18
- data/app/views/railsui/themes/shepherd/components/tab/_rounded.html.erb +1 -18
- data/app/views/railsui/themes/shepherd/components/tab/_with_icons.html.erb +1 -26
- data/app/views/railsui/themes/shepherd/components/toast/_base.html.erb +0 -16
- data/app/views/railsui/themes/shepherd/components/tooltip/_base.html.erb +0 -3
- data/app/views/railsui/themes/shepherd/content/_image_old.html.erb +0 -20
- data/app/views/railsui/themes/shepherd/content/image/_object_contain.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/content/image/_object_cover.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/content/image/_object_fill.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/content/image/_object_scale_down.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/content/image/_responsive.html.erb +0 -4
- data/app/views/railsui/themes/shepherd/content/table/_bordered.html.erb +0 -21
- data/app/views/railsui/themes/shepherd/content/table/_borderless.html.erb +0 -21
- data/app/views/railsui/themes/shepherd/content/typography/_blockquote.html.erb +0 -9
- data/app/views/railsui/themes/shepherd/content/typography/_display_headings.html.erb +0 -9
- data/app/views/railsui/themes/shepherd/content/typography/_headings.html.erb +0 -15
- data/app/views/railsui/themes/shepherd/content/typography/_inline_formatting.html.erb +0 -21
- data/app/views/railsui/themes/shepherd/content/typography/_lead_paragraph.html.erb +0 -5
- data/app/views/railsui/themes/shepherd/content/typography/_lists.html.erb +0 -17
- data/app/views/railsui/themes/shepherd/content/typography/_paragraphs.html.erb +0 -4
- data/app/views/railsui/themes/shepherd/forms/_action_text.html.erb +0 -6
- data/app/views/railsui/themes/shepherd/forms/_checkbox.html.erb +0 -9
- data/app/views/railsui/themes/shepherd/forms/_form_builder.html.erb +487 -0
- data/app/views/railsui/themes/shepherd/forms/_input.html.erb +0 -119
- data/app/views/railsui/themes/shepherd/forms/_input_group.html.erb +0 -81
- data/app/views/railsui/themes/shepherd/forms/_radio.html.erb +0 -13
- data/app/views/railsui/themes/shepherd/forms/_select.html.erb +0 -16
- data/app/views/railsui/themes/shepherd/forms/_switch.html.erb +0 -9
- data/app/views/railsui/themes/shepherd/forms/_validation.html.erb +0 -11
- data/app/views/railsui/themes/shepherd/mailers/_layout.html.erb +1 -493
- data/app/views/railsui/themes/shepherd/mailers/_minimal.html.erb +1 -16
- data/app/views/railsui/themes/shepherd/mailers/_promotion.html.erb +1 -20
- data/app/views/railsui/themes/shepherd/mailers/_transactional.html.erb +1 -43
- data/app/views/railsui/themes/shepherd/mailers/devise/_confirmation_instructions.html.erb +1 -9
- data/app/views/railsui/themes/shepherd/mailers/devise/_email_changed.html.erb +1 -12
- data/app/views/railsui/themes/shepherd/mailers/devise/_password_changed.html.erb +1 -7
- data/app/views/railsui/themes/shepherd/mailers/devise/_reset_password_instructions.html.erb +1 -9
- data/app/views/railsui/themes/shepherd/mailers/devise/_unlock_instructions.html.erb +1 -9
- data/app/views/railsui/themes/shepherd/scaffolds/_edit.html.erb +1 -19
- data/app/views/railsui/themes/shepherd/scaffolds/_index.html.erb +1 -11
- data/app/views/railsui/themes/shepherd/scaffolds/_new.html.erb +1 -17
- data/app/views/railsui/themes/shepherd/scaffolds/_partial.html.erb +1 -17
- data/app/views/railsui/themes/shepherd/scaffolds/_show.html.erb +1 -18
- data/config/pages.yml +103 -0
- data/config/routes.rb +6 -5
- data/config/theme.yml +2 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/auth-bg.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog-feature.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog1.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog2.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog3.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog4.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog5.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog6.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog7.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog8.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/blog9.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/copy.svg +6 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/pencil.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/scroll-text.svg +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/facebook.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/github.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/google.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/instagram.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/linkedin.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/twitter.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/x.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/social/youtube.svg +1 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/stethoscope.svg +8 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/icons/test-tubes.svg +11 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/logo.svg +10 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/android-chrome-192x192.png +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/android-chrome-512x512.png +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/apple-touch-icon.png +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/favicon-16x16.png +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/favicon-32x32.png +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/favicon.ico +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/favicon.svg +20 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/opengraph-mark.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/opengraph.jpg +0 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/meta/site.webmanifest +19 -0
- data/lib/generators/railsui/install/templates/themes/corgie/images/railsui/railsui.svg +3 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/character_count_controller.js +134 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/chat_controller.js +45 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/help_search_controller.js +333 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/highlight_controller.js +13 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/markdown_controller.js +106 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/search_controller.js +311 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/sidebar_controller.js +105 -0
- data/lib/generators/railsui/install/templates/themes/corgie/javascript/controllers/railsui/snippet_controller.js +223 -0
- data/lib/generators/railsui/install/templates/themes/corgie/mail/railsui_mailer/minimal.html.erb +21 -0
- data/lib/generators/railsui/install/templates/themes/corgie/mail/railsui_mailer/minimal.text.erb +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/mail/railsui_mailer/promotion.html.erb +23 -0
- data/lib/generators/railsui/install/templates/themes/corgie/mail/railsui_mailer/promotion.text.erb +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/mail/railsui_mailer/transactional.html.erb +55 -0
- data/lib/generators/railsui/install/templates/themes/corgie/mail/railsui_mailer/transactional.text.erb +22 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/actiontext.css +173 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/blog.css +29 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/buttons.css +49 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/card.css +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/chat.css +27 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/code.css +233 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/dropdown.css +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/forms.css +321 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/sidebar.css +15 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/tailwind.config.js +24 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/theme.css +77 -0
- data/lib/generators/railsui/install/templates/themes/corgie/stylesheets/railsui/typography.css +47 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/layouts/rui/railsui.html.erb +31 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/layouts/rui/railsui_admin.html.erb +30 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/layouts/rui/railsui_auth.html.erb +50 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/layouts/rui/railsui_mailer.html.erb +503 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/about.html.erb +278 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/blog.html.erb +258 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/blog_category.html.erb +261 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/blog_show.html.erb +429 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/chat_new.html.erb +68 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/chat_show.html.erb +152 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/features.html.erb +356 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/help.html.erb +123 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/home.html.erb +252 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/pricing.html.erb +397 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/privacy.html.erb +140 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/signin.html.erb +38 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/signup.html.erb +48 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/pages/terms.html.erb +182 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_account_dropdown.html.erb +46 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_email_action.html.erb +15 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_email_callout.html.erb +7 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_email_spacer.html.erb +7 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_error_messages.html.erb +10 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_faq.html.erb +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_flash.html.erb +11 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_fonts.html.erb +7 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_footer.html.erb +72 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_header.html.erb +15 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_meta.html.erb +90 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_nav.html.erb +3 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_railsui_head.html.erb +4 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_search.html.erb +32 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_sidebar.html.erb +7 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/_waves.html.erb +47 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/blog/_article.html.erb +39 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/blog/_pagination.html.erb +21 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_disclaimer.html.erb +4 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_form.html.erb +62 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_header.html.erb +47 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_history.html.erb +36 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_key_legend.html.erb +11 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_link.html.erb +17 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_message.html.erb +69 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/chat/_model_select.html.erb +55 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/common/_cta_section.html.erb +16 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/common/_feature_card.html.erb +23 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/common/_feature_check_item.html.erb +6 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/common/_social_auth_buttons.html.erb +22 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/help/_categories.html.erb +82 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/help/_faq.html.erb +45 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/help/_quick_actions.html.erb +46 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/marketing/_career.html.erb +9 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/marketing/_nav.html.erb +57 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/marketing/_team_member_card.html.erb +16 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/_modal.html.erb +84 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/_nav_item.html.erb +14 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_billing.html.erb +120 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_data_controls.html.erb +69 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_general.html.erb +92 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_notifications.html.erb +102 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_personalization.html.erb +100 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_security.html.erb +98 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/settings/panels/_title.html.erb +5 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/sidebar/_actions.html.erb +39 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/sidebar/_header.html.erb +40 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/sidebar/_history.html.erb +36 -0
- data/lib/generators/railsui/install/templates/themes/corgie/views/rui/shared/sidebar/_link.html.erb +23 -0
- data/lib/generators/railsui/install/templates/themes/hound/stylesheets/railsui/forms.css +18 -4
- data/lib/generators/railsui/install/templates/themes/hound/stylesheets/railsui/theme.css +3 -2
- data/lib/generators/railsui/install/templates/themes/shepherd/stylesheets/railsui/forms.css +12 -2
- data/lib/generators/railsui/scaffold/templates/themes/corgie/views/_form.html.erb.tt +52 -0
- data/lib/generators/railsui/scaffold/templates/themes/corgie/views/edit.html.erb.tt +25 -0
- data/lib/generators/railsui/scaffold/templates/themes/corgie/views/index.html.erb.tt +12 -0
- data/lib/generators/railsui/scaffold/templates/themes/corgie/views/new.html.erb.tt +22 -0
- data/lib/generators/railsui/scaffold/templates/themes/corgie/views/partial.html.erb.tt +22 -0
- data/lib/generators/railsui/scaffold/templates/themes/corgie/views/show.html.erb.tt +24 -0
- data/lib/generators/railsui/scaffold/templates/themes/hound/views/_form.html.erb.tt +29 -24
- data/lib/generators/railsui/scaffold/templates/themes/shepherd/views/_form.html.erb.tt +28 -26
- data/lib/railsui/configuration.rb +22 -21
- data/lib/railsui/engine.rb +26 -20
- data/lib/railsui/form_builder.rb +307 -0
- data/lib/railsui/pages.rb +14 -3
- data/lib/railsui/theme_helper.rb +8 -8
- data/lib/railsui/theme_setup.rb +83 -49
- data/lib/railsui/themes.rb +3 -4
- data/lib/railsui/version.rb +1 -1
- data/lib/railsui.rb +9 -6
- data/lib/tasks/install.rake +1 -1
- data/lib/tasks/pages.rake +1 -1
- data/lib/tasks/stimulus.rake +1 -1
- metadata +287 -5
- data/.standard.yml +0 -3
- data/CHANGELOG.md +0 -9
- data/config/colors.yml +0 -50
@@ -0,0 +1,24 @@
|
|
1
|
+
<div data-controller="railsui-dropdown"class="relative md:inline-block block md:w-auto w-full">
|
2
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn <%= local_assigns[:class] %> pr-2.5 gap-2">
|
3
|
+
<%= local_assigns[:label] %>
|
4
|
+
<%= icon "chevron-down", class: "size-3" %>
|
5
|
+
</button>
|
6
|
+
<div
|
7
|
+
class="hidden dropdown-menu top-10"
|
8
|
+
data-railsui-dropdown-target="menu"
|
9
|
+
data-transition-enter-from="opacity-0 scale-95"
|
10
|
+
data-transition-enter-to="opacity-100 scale-100"
|
11
|
+
data-transition-leave-from="opacity-100 scale-100"
|
12
|
+
data-transition-leave-to="opacity-0 scale-95"
|
13
|
+
>
|
14
|
+
<div>
|
15
|
+
<a href="#" class="dropdown-item">Bookmark</a>
|
16
|
+
</div>
|
17
|
+
<div>
|
18
|
+
<a href="#" class="dropdown-item">Report</a>
|
19
|
+
</div>
|
20
|
+
<div>
|
21
|
+
<a href="#" class="dropdown-item">Export</a>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div data-controller="railsui-dropdown" class="relative md:inline-block block md:w-auto w-full">
|
2
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn <%= local_assigns[:class] %> pr-2.5 gap-2">
|
3
|
+
<%= local_assigns[:label] %>
|
4
|
+
<%= icon "chevron-down", class: "size-3" %>
|
5
|
+
</button>
|
6
|
+
<div
|
7
|
+
class="hidden dropdown-menu top-10"
|
8
|
+
data-railsui-dropdown-target="menu"
|
9
|
+
data-transition-enter-from="opacity-0 scale-95"
|
10
|
+
data-transition-enter-to="opacity-100 scale-100"
|
11
|
+
data-transition-leave-from="opacity-100 scale-100"
|
12
|
+
data-transition-leave-to="opacity-0 scale-95"
|
13
|
+
>
|
14
|
+
<a href="#" class="dropdown-item">
|
15
|
+
<%= icon "bookmark", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
16
|
+
<span>Bookmark</span>
|
17
|
+
</a>
|
18
|
+
<a href="#" class="dropdown-item">
|
19
|
+
<%= icon "flag", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
20
|
+
<span>Report</span>
|
21
|
+
</a>
|
22
|
+
<a href="#" class="dropdown-item">
|
23
|
+
<%= icon "arrow-down-tray", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
24
|
+
<span>Export</span>
|
25
|
+
</a>
|
26
|
+
</div>
|
27
|
+
</div>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<div id="dropdown-right-aligned">
|
2
|
+
<%= render layout: example, locals: { heading: "Right aligned", section: "Dropdown" } do %>
|
3
|
+
|
4
|
+
<%= render preview('neutral') do %>
|
5
|
+
<div data-controller="railsui-dropdown" class="relative md:inline-block block w-full md:w-auto">
|
6
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn btn-white pr-2.5 gap-2">
|
7
|
+
Right-aligned Dropdown Menu
|
8
|
+
<%= icon "chevron-down", class: "size-3" %>
|
9
|
+
</button>
|
10
|
+
<ul
|
11
|
+
class="hidden dropdown-menu top-10 right-0"
|
12
|
+
data-railsui-dropdown-target="menu"
|
13
|
+
data-transition-enter-from="opacity-0 scale-95"
|
14
|
+
data-transition-enter-to="opacity-100 scale-100"
|
15
|
+
data-transition-leave-from="opacity-100 scale-100"
|
16
|
+
data-transition-leave-to="opacity-0 scale-95"
|
17
|
+
>
|
18
|
+
<li>
|
19
|
+
<a href="#" class="dropdown-item">Bookmark</a>
|
20
|
+
</li>
|
21
|
+
<li>
|
22
|
+
<a href="#" class="dropdown-item">Report</a>
|
23
|
+
</li>
|
24
|
+
<li>
|
25
|
+
<a href="#" class="dropdown-item">Export</a>
|
26
|
+
</li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<% content_for :example, flush: true do %>
|
32
|
+
<% content_for :html, flush: true do %>
|
33
|
+
<div data-controller="railsui-dropdown" class="relative inline-block">
|
34
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn btn-white pr-2.5 gap-2">
|
35
|
+
Right-aligned Dropdown Menu
|
36
|
+
<%%= icon "chevron-down", class: "size-3 ml-2" %>
|
37
|
+
</button>
|
38
|
+
<ul class="hidden dropdown-menu top-10 right-0" data-railsui-dropdown-target="menu"
|
39
|
+
data-transition-enter-from="opacity-0 scale-95" data-transition-enter-to="opacity-100 scale-100"
|
40
|
+
data-transition-leave-from="opacity-100 scale-100"
|
41
|
+
data-transition-leave-to="opacity-0 scale-95">
|
42
|
+
<li>
|
43
|
+
<a href="#" class="dropdown-item">Bookmark</a>
|
44
|
+
</li>
|
45
|
+
<li>
|
46
|
+
<a href="#" class="dropdown-item">Report</a>
|
47
|
+
</li>
|
48
|
+
<li>
|
49
|
+
<a href="#" class="dropdown-item">Export</a>
|
50
|
+
</li>
|
51
|
+
</ul>
|
52
|
+
</div>
|
53
|
+
<% end %>
|
54
|
+
|
55
|
+
<% content_for :erb, flush: true do %>
|
56
|
+
<div data-controller="railsui-dropdown" class="relative inline-block">
|
57
|
+
<%%= button_tag data: { action: "click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" }, class: "btn btn-primary gap-2 pr-2.5" do %>
|
58
|
+
Right-aligned Dropdown Menu
|
59
|
+
<%%= icon "chevron-down", class: "size-3" %>
|
60
|
+
<%% end %>
|
61
|
+
<div class="hidden dropdown-menu top-10 right-0" data-railsui-dropdown-target="menu" data-transition-enter-from="opacity-0 scale-95"
|
62
|
+
data-transition-enter-to="opacity-100 scale-100"
|
63
|
+
data-transition-leave-from="opacity-100 scale-100"
|
64
|
+
data-transition-leave-to="opacity-0 scale-95">
|
65
|
+
<div>
|
66
|
+
<%%= link_to "Bookmark", "#", class: "dropdown-item" %>
|
67
|
+
</div>
|
68
|
+
<div>
|
69
|
+
<%%= link_to "Report", "#", class: "dropdown-item" %>
|
70
|
+
</div>
|
71
|
+
<div>
|
72
|
+
<%%= link_to "Export", "#", class: "dropdown-item" %>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
<% end %>
|
77
|
+
|
78
|
+
|
79
|
+
<%= render_snippet active_tab: :erb %>
|
80
|
+
<% end %>
|
81
|
+
<% end %>
|
82
|
+
</div>
|
@@ -0,0 +1,93 @@
|
|
1
|
+
<div id="dropdown-with-dividers">
|
2
|
+
<%= render layout: example, locals: { heading: "With dividers", section: "Dropdown" } do %>
|
3
|
+
|
4
|
+
<%= render preview('neutral') do %>
|
5
|
+
<div data-controller="railsui-dropdown" class="relative md:inline-block block md:w-auto w-full">
|
6
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn btn-white gap-2 pr-2.5">
|
7
|
+
Dropdown with dividers
|
8
|
+
<%= icon "chevron-down", class: "size-3" %>
|
9
|
+
</button>
|
10
|
+
<div
|
11
|
+
class="hidden dropdown-menu top-10 divide-y divide-neutral-200 dark:divide-neutral-500/75"
|
12
|
+
data-railsui-dropdown-target="menu"
|
13
|
+
data-transition-enter-from="opacity-0 scale-95"
|
14
|
+
data-transition-enter-to="opacity-100 scale-100"
|
15
|
+
data-transition-leave-from="opacity-100 scale-100"
|
16
|
+
data-transition-leave-to="opacity-0 scale-95"
|
17
|
+
>
|
18
|
+
<div role="none" class="pb-1">
|
19
|
+
<a href="#" class="dropdown-item">Edit</a>
|
20
|
+
</div>
|
21
|
+
<div role="none" class="py-1">
|
22
|
+
<a href="#" class="dropdown-item">Share</a>
|
23
|
+
<a href="#" class="dropdown-item">Export</a>
|
24
|
+
</div>
|
25
|
+
<div role="none" class="pt-1">
|
26
|
+
<a href="#" class="dropdown-item">Delete</a>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
<% content_for :example, flush: true do %>
|
33
|
+
<% content_for :html, flush: true do %>
|
34
|
+
<div data-controller="railsui-dropdown" class="relative inline-block">
|
35
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn btn-white gap-2 pr-2.5">
|
36
|
+
Dropdown with dividers
|
37
|
+
<%%= icon "chevron-down", class: "size-3" %>
|
38
|
+
</button>
|
39
|
+
<div
|
40
|
+
class="hidden dropdown-menu top-10 divide-y divide-neutral-200 dark:divide-neutral-500/75"
|
41
|
+
data-railsui-dropdown-target="menu"
|
42
|
+
data-transition-enter-from="opacity-0 scale-95"
|
43
|
+
data-transition-enter-to="opacity-100 scale-100"
|
44
|
+
data-transition-leave-from="opacity-100 scale-100"
|
45
|
+
data-transition-leave-to="opacity-0 scale-95"
|
46
|
+
>
|
47
|
+
<div role="none" class="pb-1">
|
48
|
+
<a href="#" class="dropdown-item">Edit</a>
|
49
|
+
</div>
|
50
|
+
<div role="none" class="py-1">
|
51
|
+
<a href="#" class="dropdown-item">Share</a>
|
52
|
+
<a href="#" class="dropdown-item">Export</a>
|
53
|
+
</div>
|
54
|
+
<div role="none" class="pt-1">
|
55
|
+
<a href="#" class="dropdown-item">Delete</a>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
<% end %>
|
60
|
+
|
61
|
+
<% content_for :erb, flush: true do %>
|
62
|
+
<div data-controller="railsui-dropdown" class="relative inline-block">
|
63
|
+
<%%= button_tag data: { action: "click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" }, class: "btn btn-primary gap-2 pr-2.5" do %>
|
64
|
+
Dropdown with dividers
|
65
|
+
<%%= icon "chevron-down", class: "size-3" %>
|
66
|
+
<%% end %>
|
67
|
+
<div
|
68
|
+
class="hidden dropdown-menu top-10 divide-y divide-neutral-200 dark:divide-neutral-500/75"
|
69
|
+
data-railsui-dropdown-target="menu"
|
70
|
+
data-transition-enter-from="opacity-0 scale-95"
|
71
|
+
data-transition-enter-to="opacity-100 scale-100"
|
72
|
+
data-transition-leave-from="opacity-100 scale-100"
|
73
|
+
data-transition-leave-to="opacity-0 scale-95"
|
74
|
+
>
|
75
|
+
<div role="none" class="pb-1">
|
76
|
+
<%%= link_to "Edit", "#", class: "dropdown-item" %>
|
77
|
+
</div>
|
78
|
+
<div role="none" class="py-1">
|
79
|
+
<%%= link_to "Share", "#", class: "dropdown-item" %>
|
80
|
+
<%%= link_to "Export", "#", class: "dropdown-item" %>
|
81
|
+
</div>
|
82
|
+
<div role="none" class="pt-1">
|
83
|
+
<%%= link_to "Delete", "#", class: "dropdown-item" %>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
<% end %>
|
88
|
+
|
89
|
+
|
90
|
+
<%= render_snippet %>
|
91
|
+
<% end %>
|
92
|
+
<% end %>
|
93
|
+
</div>
|
@@ -0,0 +1,85 @@
|
|
1
|
+
<div id="dropdown-with-icon">
|
2
|
+
<%= render layout: example, locals: { heading: "With icons", section: "Dropdown" } do %>
|
3
|
+
|
4
|
+
<%= render preview('neutral') do %>
|
5
|
+
<div class="flex md:flex-row flex-col flex-wrap items-center justify-start md:space-x-3 space-x-0 space-y-3 md:space-y-0 w-full font-tiktok">
|
6
|
+
<%= render "railsui/themes/#{Railsui.config.theme.downcase}/components/dropdown/dropdown_w_icon", label: "Dropdown", class: "btn-primary" %>
|
7
|
+
|
8
|
+
<%= render "railsui/themes/#{Railsui.config.theme.downcase}/components/dropdown/dropdown_w_icon", label: "Dropdown", class: "btn-ghost" %>
|
9
|
+
|
10
|
+
<%= render "railsui/themes/#{Railsui.config.theme.downcase}/components/dropdown/dropdown_w_icon", label: "Dropdown", class: "btn-white" %>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% content_for :example, flush: true do %>
|
15
|
+
<% content_for :html, flush: true do %>
|
16
|
+
<div data-controller="railsui-dropdown" class="relative md:inline-block block md:w-auto w-full">
|
17
|
+
<button type="button" data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" class="btn btn-primary pr-2.5 gap-2">
|
18
|
+
Dropdown
|
19
|
+
<%%= icon "chevron-down", class: "size-3" %>
|
20
|
+
</button>
|
21
|
+
<ul class="hidden transition transform origin-top-right absolute left-0 top-10 bg-white rounded-lg shadow-xl shadow-neutral-900/10 border border-neutral-200 md:w-[200px] w-full z-50 py-2 dark:bg-neutral-700 dark:shadow-neutral-900/50 dark:border-neutral-500/60 md:text-sm text-base font-medium text-neutral-600 dark:text-neutral-200" data-railsui-dropdown-target="menu"
|
22
|
+
data-transition-enter-from="opacity-0 scale-95"
|
23
|
+
data-transition-enter-to="opacity-100 scale-100"
|
24
|
+
data-transition-leave-from="opacity-100 scale-100"
|
25
|
+
data-transition-leave-to="opacity-0 scale-95">
|
26
|
+
<li>
|
27
|
+
<a href="#" class="px-4 py-[.4rem] hover:text-primary-600 dark:hover:text-primary-300 group flex items-center justify-start gap-3">
|
28
|
+
<%%= icon "bookmark", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
29
|
+
<span>Bookmark</span>
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
<li>
|
33
|
+
<a href="#" class="px-4 py-[.4rem] hover:text-primary-600 dark:hover:text-primary-300 group flex items-center justify-start gap-3">
|
34
|
+
<%%= icon "flag", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
35
|
+
<span>Report</span>
|
36
|
+
</a>
|
37
|
+
</li>
|
38
|
+
<li>
|
39
|
+
<a href="#" class="px-4 py-[.4rem] hover:text-primary-600 dark:hover:text-primary-300 group flex items-center justify-start gap-3">
|
40
|
+
<%%= icon "arrow-down-tray", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
41
|
+
<span>Export</span>
|
42
|
+
</a>
|
43
|
+
</li>
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
<% end %>
|
47
|
+
|
48
|
+
<% content_for :erb, flush: true do %>
|
49
|
+
<div data-controller="railsui-dropdown" class="relative md:inline-block block md:w-auto w-full">
|
50
|
+
<%%= button_tag data: { action: "click->railsui-dropdown#toggle click@window->railsui-dropdown#hide" }, class: "btn btn-primary gap-2 pr-2.5" do %>
|
51
|
+
Dropdown
|
52
|
+
<%%= icon "chevron-down", class: "size-3" %>
|
53
|
+
<%% end %>
|
54
|
+
<ul class="hidden transition transform origin-top-right absolute left-0 top-10 bg-white rounded-lg shadow-xl shadow-neutral-900/10 border border-neutral-200 md:w-[200px] w-full z-50 py-2 dark:bg-neutral-700 dark:shadow-neutral-900/50 dark:border-neutral-500/60 md:text-sm text-base font-medium text-neutral-600 dark:text-neutral-200" data-railsui-dropdown-target="menu"
|
55
|
+
data-transition-enter-from="opacity-0 scale-95"
|
56
|
+
data-transition-enter-to="opacity-100 scale-100"
|
57
|
+
data-transition-leave-from="opacity-100 scale-100"
|
58
|
+
data-transition-leave-to="opacity-0 scale-95">
|
59
|
+
<li>
|
60
|
+
<%%= link_to "#", class: "px-4 py-[.4rem] hover:text-primary-600 dark:hover:text-primary-300 group flex items-center justify-start gap-3" do %>
|
61
|
+
<%%= icon "bookmark", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
62
|
+
<span>Bookmark</span>
|
63
|
+
<%% end %>
|
64
|
+
</li>
|
65
|
+
<li>
|
66
|
+
<%%= link_to "#", class: "px-4 py-[.4rem] hover:text-primary-600 dark:hover:text-primary-300 group flex items-center justify-start gap-3" do %>
|
67
|
+
<%%= icon "flag", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
68
|
+
<span>Report</span>
|
69
|
+
<%% end %>
|
70
|
+
</li>
|
71
|
+
<li>
|
72
|
+
<%%= link_to "#", class: "px-4 py-[.4rem] hover:text-primary-600 dark:hover:text-primary-300 group flex items-center justify-start gap-3" do %>
|
73
|
+
<%%= icon "arrow-down-tray", class: "size-4 dark:text-neutral-200 text-neutral-600 group-hover:text-primary-600 dark:group-hover:text-primary-300 flex-shrink-0" %>
|
74
|
+
<span>Export</span>
|
75
|
+
<%% end %>
|
76
|
+
</li>
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
<% end %>
|
80
|
+
|
81
|
+
|
82
|
+
<%= render_snippet %>
|
83
|
+
<% end %>
|
84
|
+
<% end %>
|
85
|
+
</div>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<h2>1. Initializing a dropdown</h2>
|
2
|
+
|
3
|
+
<div class="prose prose-neutral max-w-full dark:prose-invert my-6">
|
4
|
+
<p>Use the <code>'data-controller="dropdown"</code> attribute to initialize a new dropdown component using <%= link_to "Stimulus.js", "https://stimulus.hotwired.dev/", target: :_blank %>.</p>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div class="not-prose mt-6">
|
8
|
+
<% content_for :html, flush: true do %>
|
9
|
+
<div data-controller="railsui-dropdown">
|
10
|
+
<button>Dropdown</button>
|
11
|
+
<div>
|
12
|
+
<a href="#">Menu list item 1</a>
|
13
|
+
<a href="#">Menu list item 2</a>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% content_for :js, flush: true do %>
|
19
|
+
// Start Stimulus
|
20
|
+
import { Application } from '@hotwired/stimulus'
|
21
|
+
|
22
|
+
const application = Application.start()
|
23
|
+
|
24
|
+
// Import component
|
25
|
+
import { RailsuiDropdown } from 'railsui-stimulus'
|
26
|
+
application.register('railsui-dropdown', RailsuiDropdown)
|
27
|
+
<% end %>
|
28
|
+
<%= render_snippet %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<% content_for :html, flush: true do %>
|
32
|
+
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<% content_for :js, flush: true do %>
|
36
|
+
|
37
|
+
<% end %>
|
38
|
+
<div class="not-prose">
|
39
|
+
<%= render_snippet(active_tab: "js") %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div class="prose prose-neutral max-w-full dark:prose-invert my-6">
|
43
|
+
<p>Be sure the controller is registered inside <code>app/javascript/controllers/index.js</code>. (This should already be the case when you installed the <%= Railsui.config.theme.humanize %> theme.)</p>
|
44
|
+
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<h2>2. Triggering a dropdown</h2>
|
2
|
+
|
3
|
+
<p>To trigger a dropdown to appear you will need some form of actionable target like a <code>button</code> or <code>a</code> element. Append the following attributes to your target. <code>data-action="railsui-dropdown#toggle click@window->railsui-dropdown#hide"</code> (see the base example below for a complete concept).</p>
|
4
|
+
|
5
|
+
<div class="not-prose">
|
6
|
+
<% content_for :html, flush: true do %>
|
7
|
+
<div data-controller="railsui-dropdown">
|
8
|
+
<button data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide">Dropdown</button>
|
9
|
+
<div>
|
10
|
+
<a href="#">Menu list item 1</a>
|
11
|
+
<a href="#">Menu list item 2</a>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<%= render_snippet %>
|
16
|
+
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<h2>3. Defining the menu</h2>
|
2
|
+
|
3
|
+
<p>Each dropdown has a corresponding menu that gets hidden by default. The menu requires the following attribute to function <code>data-railsui-dropdown-target="menu"</code>. The element the target is appended to also requires the class name <code>class='hidden'</code> to be present.</p>
|
4
|
+
|
5
|
+
<div class="not-prose mb-6">
|
6
|
+
<% content_for :html, flush: true do %>
|
7
|
+
<div data-controller="railsui-dropdown">
|
8
|
+
<button data-action="click->railsui-dropdown#toggle click@window->railsui-dropdown#hide">Dropdown</button>
|
9
|
+
<div class="hidden" data-railsui-dropdown-target="menu">
|
10
|
+
<a href="#">Menu list item 1</a>
|
11
|
+
<a href="#">Menu list item 2</a>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<%= render_snippet %>
|
16
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<h2>4. Adding transitions and effects</h2>
|
2
|
+
|
3
|
+
<p>Stimulus.js doesn't provide help in the context of animation and transitions so we reached for <%= link_to "stimulus-use", "https://stimulus-use.github.io/stimulus-use/", target: :_blank %> to help.</p>
|
4
|
+
|
5
|
+
<p>Using the library you can leverage data attributes to add specific effects provided by Tailwind CSS classes at different states of a dropdown transition.</p>
|
6
|
+
|
7
|
+
<div class="not-prose mb-6">
|
8
|
+
<% content_for :js, flush: true do %>
|
9
|
+
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<% content_for :html, flush: true do %>
|
13
|
+
<div data-controller="railsui-dropdown">
|
14
|
+
<button data-action="click->railsui-dropdown#toggle click@window->dropdown#hide">Dropdown</button>
|
15
|
+
<div
|
16
|
+
class="hidden"
|
17
|
+
data-railsui-dropdown-target="menu"
|
18
|
+
data-transition-enter-from="opacity-0 scale-95"
|
19
|
+
data-transition-enter-to="opacity-100 scale-100"
|
20
|
+
data-transition-leave-from="opacity-100 scale-100"
|
21
|
+
data-transition-leave-to="opacity-0 scale-95">
|
22
|
+
<a href="#">Menu list item 1</a>
|
23
|
+
<a href="#">Menu list item 2</a>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<% end %>
|
27
|
+
<%= render_snippet %>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<%= render callout do %>
|
2
|
+
<p class="m-0 ml-2"><a href="https://stimulus.hotwired.dev/" target="_blank">Stimulus.js</a>, <a href="https://github.com/stimulus-use/stimulus-use">stimulus-use</a>, and <a href="https://github.com/getrailsui/railsui-stimulus">railsui-stimulus</a> are <strong>already installed</strong> as dependencies of the <%= Railsui::config.theme.titleize %> theme.</p>
|
3
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<div id="dropdown-usage">
|
2
|
+
<%= render "railsui/shared/usage_guide", title: "Dropdown usage guide" do %>
|
3
|
+
<p class="pt-10">The short-form tutorial below represents how to pair Rails UI, Stimulus.js, and Ruby on Rails together to achieve a dropdown pattern using a set of elements working together.</p>
|
4
|
+
|
5
|
+
<% tutorial_path = "railsui/themes/#{Railsui.config.theme.downcase}/components/dropdown/tutorial" %>
|
6
|
+
|
7
|
+
<%= render "#{tutorial_path}/dependencies" %>
|
8
|
+
|
9
|
+
<hr class="border-neutral-200/50">
|
10
|
+
|
11
|
+
<%= render "#{tutorial_path}/1" %>
|
12
|
+
|
13
|
+
<hr class="border-neutral-200/50">
|
14
|
+
|
15
|
+
<%= render "#{tutorial_path}/2" %>
|
16
|
+
|
17
|
+
<hr class="border-neutral-200/50">
|
18
|
+
|
19
|
+
<%= render "#{tutorial_path}/3" %>
|
20
|
+
|
21
|
+
<hr class="border-neutral-200/50">
|
22
|
+
|
23
|
+
<%= render "#{tutorial_path}/4" %>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div id="flash-alert">
|
2
|
+
<%= render layout: example, locals: { heading: "Alert", section: "Flash" } do %>
|
3
|
+
|
4
|
+
<%= render preview('neutral') do %>
|
5
|
+
<div class="bg-red-600 text-white text-center p-4" role="alert">
|
6
|
+
<p>A message commonly displayed when an error or exception occurs.</p>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% content_for :example, flush: true do %>
|
11
|
+
<% content_for :html, flush: true do %>
|
12
|
+
<div class="bg-red-600 text-white text-center p-4" role="alert">
|
13
|
+
<p>A message commonly displayed when an error or exception occurs.</p>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<% content_for :erb, flush: true do %>
|
18
|
+
<%% if notice %>
|
19
|
+
<div class="bg-red-600 text-white text-center p-4" role="alert">
|
20
|
+
<p><%%= sanitize notice %></p>
|
21
|
+
</div>
|
22
|
+
<%% end %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
|
26
|
+
<%= render_snippet active_tab: :erb %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<div id="flash-dynamic">
|
2
|
+
<%= render layout: example, locals: { heading: "Dynamic", section: "Flash" } do %>
|
3
|
+
<div class="prose dark:prose-invert max-w-full mb-6">
|
4
|
+
<p>For some flash messages you may want to have them hide after a brief period. This requires JavaScript but is fairly simple to implement with Stimulus.js or Vanilla JavaScript.</p>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<%= render preview('neutral') do %>
|
8
|
+
<div class="bg-neutral-200 text-neutral-700 text-center p-4" role="alert" data-controller="railsui-flash">
|
9
|
+
<p>A message commonly displayed after something changes.</p>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% content_for :example, flush: true do %>
|
14
|
+
<% content_for :html, flush: true do %>
|
15
|
+
<div class="bg-neutral-200 text-neutral-700 text-center p-4" role="alert" data-controller="railsui-flash">
|
16
|
+
<p>A message commonly displayed after something changes.</p>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<% content_for :erb, flush: true do %>
|
21
|
+
<%% if notice %>
|
22
|
+
<div class="bg-neutral-200 text-neutral-700 text-center p-4" role="alert" data-controller="railsui-flash">
|
23
|
+
<p><%%= sanitize notice %></p>
|
24
|
+
</div>
|
25
|
+
<%% end %>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
|
29
|
+
<% content_for :js, flush: true do %>
|
30
|
+
import { Controller } from "@hotwired/stimulus"
|
31
|
+
|
32
|
+
export default class extends Controller {
|
33
|
+
connect() {
|
34
|
+
if (this.element) {
|
35
|
+
setTimeout(() => {
|
36
|
+
this.element.remove()
|
37
|
+
}, 4000)
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
<% end %>
|
42
|
+
|
43
|
+
<%= render_snippet active_tab: "js", js_filename: "railsui_flash_controller.js" %>
|
44
|
+
<% end %>
|
45
|
+
<% end %>
|
46
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div id="flash-notice">
|
2
|
+
<%= render layout: example, locals: { heading: "Notice", section: "Flash" } do %>
|
3
|
+
|
4
|
+
<%= render preview('neutral') do %>
|
5
|
+
<div class="bg-neutral-200 text-neutral-700 text-center p-4" role="alert">
|
6
|
+
<p>A message commonly displayed after something changes.</p>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% content_for :example, flush: true do %>
|
11
|
+
<% content_for :html, flush: true do %>
|
12
|
+
<div class="bg-neutral-200 text-neutral-700 text-center p-4" role="alert">
|
13
|
+
<p>A message commonly displayed after something changes.</p>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<% content_for :erb, flush: true do %>
|
18
|
+
<%% if notice %>
|
19
|
+
<div class="bg-neutral-200 text-neutral-700 text-center p-4" role="alert">
|
20
|
+
<p><%%= sanitize notice %></p>
|
21
|
+
</div>
|
22
|
+
<%% end %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
|
26
|
+
<%= render_snippet active_tab: :erb %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
</div>
|