railsui 3.1.4 → 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/default/_launchpad.html.erb +1 -1
- 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/_global_nav.html.erb +2 -2
- 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
@@ -36,27 +36,6 @@
|
|
36
36
|
<%%= tag.p tag.em "This line rendered as italicized text." %>
|
37
37
|
<% end %>
|
38
38
|
|
39
|
-
<%# .haml %>
|
40
|
-
<% content_for :haml, flush: true do %>
|
41
|
-
%p
|
42
|
-
You can use the mark tag to
|
43
|
-
%mark highlight
|
44
|
-
text.
|
45
|
-
%p
|
46
|
-
%del This line of text is meant to be treated as deleted text.
|
47
|
-
%p
|
48
|
-
%s This line of text is meant to be treated as no longer accurate.
|
49
|
-
%p
|
50
|
-
%ins This line of text is meant to be treated as an addition to the document.
|
51
|
-
%p
|
52
|
-
%u This line of text will render as underlined.
|
53
|
-
%p
|
54
|
-
%small This line of text is meant to be treated as fine print.
|
55
|
-
%p
|
56
|
-
%strong This line rendered as bold text.
|
57
|
-
%p
|
58
|
-
%em This line rendered as italicized text.
|
59
|
-
<% end %>
|
60
39
|
<%= render_snippet %>
|
61
40
|
<% end %>
|
62
41
|
<% end %>
|
@@ -21,11 +21,6 @@
|
|
21
21
|
<%% end %>
|
22
22
|
<% end %>
|
23
23
|
|
24
|
-
<%# .haml %>
|
25
|
-
<% content_for :haml, flush: true do %>
|
26
|
-
.font-light.text-base.text-zinc-700.tracking-normal.dark:text-zinc-300.font-heading
|
27
|
-
%p A lead paragraph stands out from regular paragraphs.
|
28
|
-
<% end %>
|
29
24
|
<%= render_snippet %>
|
30
25
|
<% end %>
|
31
26
|
<% end %>
|
@@ -77,23 +77,6 @@
|
|
77
77
|
<%% end %>
|
78
78
|
<% end %>
|
79
79
|
|
80
|
-
<%# .haml %>
|
81
|
-
<% content_for :haml, flush: true do %>
|
82
|
-
%ul.list-disc
|
83
|
-
%li A quick brown
|
84
|
-
%li fox jumps over
|
85
|
-
%li the lazy dog
|
86
|
-
/ Reset
|
87
|
-
%ul.list-reset
|
88
|
-
%li A quick brown
|
89
|
-
%li fox jumps over
|
90
|
-
%li the lazy dog
|
91
|
-
/ Decimal
|
92
|
-
%ol.list-decimal
|
93
|
-
%li A quick brown
|
94
|
-
%li fox jumps over
|
95
|
-
%li the lazy dog
|
96
|
-
<% end %>
|
97
80
|
|
98
81
|
<%= render_snippet %>
|
99
82
|
|
@@ -32,12 +32,6 @@
|
|
32
32
|
<%% end %>
|
33
33
|
<% end %>
|
34
34
|
|
35
|
-
<% content_for :haml, flush: true do %>
|
36
|
-
= form_with model: message do |form| %>
|
37
|
-
.form-group
|
38
|
-
= form.label :content, class: "form-label"
|
39
|
-
= form.rich_text_area :content
|
40
|
-
<% end %>
|
41
35
|
<%= render_snippet active_tab: "erb" %>
|
42
36
|
<% end %>
|
43
37
|
<% end %>
|
@@ -39,15 +39,6 @@
|
|
39
39
|
<%% end %>
|
40
40
|
<% end %>
|
41
41
|
|
42
|
-
<%# .haml %>
|
43
|
-
<% content_for :haml, flush: true do %>
|
44
|
-
/ ActionView::Helpers::FormHelper
|
45
|
-
= form_with model: @form do |f|
|
46
|
-
.form-group.flex.items-center
|
47
|
-
= f.check_box :check_default, class: "form-input-checkbox"
|
48
|
-
= f.label :check_default, "Default checkbox", class: "ml-2"
|
49
|
-
= f.submit class: "btn btn-primary"
|
50
|
-
<% end %>
|
51
42
|
<%= render_snippet %>
|
52
43
|
<% end %>
|
53
44
|
<% end %>
|
@@ -0,0 +1,487 @@
|
|
1
|
+
<div id="form-builder-examples">
|
2
|
+
|
3
|
+
<div id="form-builder-basic-form">
|
4
|
+
<!-- Basic Form Example -->
|
5
|
+
<%= render layout: example, locals: { heading: "Basic Form" } do %>
|
6
|
+
|
7
|
+
<%= render preview('gray') do %>
|
8
|
+
<form>
|
9
|
+
<div class="form-group">
|
10
|
+
<label class="form-label">Full Name</label>
|
11
|
+
<input type="text" class="form-input" placeholder="John Doe">
|
12
|
+
</div>
|
13
|
+
<div class="form-group">
|
14
|
+
<label class="form-label">Email Address</label>
|
15
|
+
<input type="email" class="form-input" placeholder="john@example.com">
|
16
|
+
<p class="form-help">We'll never share your email with anyone else.</p>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label class="form-label">Biography</label>
|
20
|
+
<textarea class="form-textarea" placeholder="Tell us about yourself..." rows="4"></textarea>
|
21
|
+
</div>
|
22
|
+
<button type="submit" class="btn btn-primary">Save Profile</button>
|
23
|
+
</form>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% content_for :example, flush: true do %>
|
27
|
+
<%# .erb %>
|
28
|
+
<% content_for :erb, flush: true do %>
|
29
|
+
<!-- Rails UI Form Builder with builder parameter -->
|
30
|
+
<%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
|
31
|
+
<%%= f.text_field :name, label: "Full Name", placeholder: "John Doe" %>
|
32
|
+
<%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
|
33
|
+
<%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
|
34
|
+
<%%= f.submit "Save Profile" %>
|
35
|
+
<%% end %>
|
36
|
+
<% end %>
|
37
|
+
<%= render_snippet active_tab: :erb %>
|
38
|
+
<% end %>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div id="form-builder-all-inputs">
|
43
|
+
<!-- All Input Types -->
|
44
|
+
<%= render layout: example, locals: { heading: "All Input Types" } do %>
|
45
|
+
|
46
|
+
<%= render preview('gray') do %>
|
47
|
+
<form>
|
48
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
49
|
+
<div class="form-group">
|
50
|
+
<label class="form-label">Text Field</label>
|
51
|
+
<input type="text" class="form-input">
|
52
|
+
</div>
|
53
|
+
<div class="form-group">
|
54
|
+
<label class="form-label">Email Field</label>
|
55
|
+
<input type="email" class="form-input" placeholder="john.doe@example.com">
|
56
|
+
</div>
|
57
|
+
<div class="form-group">
|
58
|
+
<label class="form-label">Password Field</label>
|
59
|
+
<input type="password" class="form-input">
|
60
|
+
</div>
|
61
|
+
<div class="form-group">
|
62
|
+
<label class="form-label">Number Field</label>
|
63
|
+
<input type="number" class="form-input" min="0" max="100">
|
64
|
+
</div>
|
65
|
+
<div class="form-group">
|
66
|
+
<label class="form-label">Phone Number</label>
|
67
|
+
<input type="tel" class="form-input">
|
68
|
+
</div>
|
69
|
+
<div class="form-group">
|
70
|
+
<label class="form-label">Website URL</label>
|
71
|
+
<input type="url" class="form-input">
|
72
|
+
</div>
|
73
|
+
<div class="form-group">
|
74
|
+
<label class="form-label">Date</label>
|
75
|
+
<input type="date" class="form-input">
|
76
|
+
</div>
|
77
|
+
<div class="form-group">
|
78
|
+
<label class="form-label">Time</label>
|
79
|
+
<input type="time" class="form-input">
|
80
|
+
</div>
|
81
|
+
<div class="form-group">
|
82
|
+
<label class="form-label">Color Picker</label>
|
83
|
+
<input type="color" class="form-input-color">
|
84
|
+
</div>
|
85
|
+
<div class="form-group">
|
86
|
+
<label class="form-label">Search</label>
|
87
|
+
<input type="search" class="form-input" placeholder="Search...">
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
<div class="form-group">
|
91
|
+
<label class="form-label">File Upload</label>
|
92
|
+
<input type="file" class="form-file">
|
93
|
+
</div>
|
94
|
+
<div class="form-group" data-controller="railsui-range">
|
95
|
+
<label class="form-label">Volume</label>
|
96
|
+
<input
|
97
|
+
type="range"
|
98
|
+
id="volume"
|
99
|
+
class="form-input-range"
|
100
|
+
data-railsui-range-target="range"
|
101
|
+
data-action="input->railsui-range#onInput"
|
102
|
+
min="2"
|
103
|
+
max="100"
|
104
|
+
value="25">
|
105
|
+
</div>
|
106
|
+
</form>
|
107
|
+
<% end %>
|
108
|
+
|
109
|
+
<% content_for :example, flush: true do %>
|
110
|
+
<%# .erb %>
|
111
|
+
<% content_for :erb, flush: true do %>
|
112
|
+
<%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
|
113
|
+
<!-- Text inputs -->
|
114
|
+
<%%= f.text_field :text, label: "Text Field" %>
|
115
|
+
<%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
|
116
|
+
<%%= f.password_field :password, label: "Password Field" %>
|
117
|
+
<%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
|
118
|
+
<%%= f.telephone_field :phone, label: "Phone Number" %>
|
119
|
+
<%%= f.url_field :website, label: "Website URL" %>
|
120
|
+
|
121
|
+
<!-- Date/Time inputs -->
|
122
|
+
<%%= f.date_field :date, label: "Date" %>
|
123
|
+
<%%= f.time_field :time, label: "Time" %>
|
124
|
+
|
125
|
+
<!-- Special inputs -->
|
126
|
+
<%%= f.color_field :color, label: "Color Picker" %>
|
127
|
+
<%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
|
128
|
+
<%%= f.file_field :file, label: "File Upload" %>
|
129
|
+
<%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
|
130
|
+
<%% end %>
|
131
|
+
<% end %>
|
132
|
+
<%= render_snippet active_tab: :erb %>
|
133
|
+
<% end %>
|
134
|
+
<% end %>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
|
138
|
+
<div id="form-builder-select-textarea">
|
139
|
+
<!-- Select and Textarea -->
|
140
|
+
<%= render layout: example, locals: { heading: "Select & Textarea" } do %>
|
141
|
+
|
142
|
+
<%= render preview('gray') do %>
|
143
|
+
<form>
|
144
|
+
<div class="form-group">
|
145
|
+
<label class="form-label">Country</label>
|
146
|
+
<select class="form-select">
|
147
|
+
<option>Choose a country</option>
|
148
|
+
<option value="us">United States</option>
|
149
|
+
<option value="ca">Canada</option>
|
150
|
+
<option value="mx">Mexico</option>
|
151
|
+
</select>
|
152
|
+
</div>
|
153
|
+
<div class="form-group">
|
154
|
+
<label class="form-label">Message</label>
|
155
|
+
<textarea class="form-textarea" placeholder="Enter your message here..." rows="5"></textarea>
|
156
|
+
<p class="form-help">Maximum 500 characters</p>
|
157
|
+
</div>
|
158
|
+
</form>
|
159
|
+
<% end %>
|
160
|
+
|
161
|
+
<% content_for :example, flush: true do %>
|
162
|
+
<%# .erb %>
|
163
|
+
<% content_for :erb, flush: true do %>
|
164
|
+
<%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
|
165
|
+
<%%= f.select :country,
|
166
|
+
options_for_select([["United States", "us"], ["Canada", "ca"], ["Mexico", "mx"]]),
|
167
|
+
{ prompt: "Choose a country" },
|
168
|
+
{ label: "Country" } %>
|
169
|
+
|
170
|
+
<%%= f.text_area :message,
|
171
|
+
label: "Message",
|
172
|
+
placeholder: "Enter your message here...",
|
173
|
+
rows: 5,
|
174
|
+
help: "Maximum 500 characters" %>
|
175
|
+
<%% end %>
|
176
|
+
<% end %>
|
177
|
+
<%= render_snippet active_tab: :erb %>
|
178
|
+
<% end %>
|
179
|
+
<% end %>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div id="form-builder-rich-text">
|
183
|
+
<!-- Rich Text Area -->
|
184
|
+
<%= render layout: example, locals: { heading: "Rich Text Area (ActionText)" } do %>
|
185
|
+
<%= render preview('gray') do %>
|
186
|
+
<form>
|
187
|
+
<div class="form-group">
|
188
|
+
<label class="form-label">Article Content</label>
|
189
|
+
<div class="trix-content">
|
190
|
+
<trix-editor placeholder="Write your article content here..." class="trix-content"></trix-editor>
|
191
|
+
</div>
|
192
|
+
<p class="form-help">Supports rich text formatting with images and attachments</p>
|
193
|
+
</div>
|
194
|
+
</form>
|
195
|
+
<% end %>
|
196
|
+
<% content_for :example, flush: true do %>
|
197
|
+
<%# .erb %>
|
198
|
+
<% content_for :erb, flush: true do %>
|
199
|
+
<%%= form_with model: @article, builder: Railsui::FormBuilder do |f| %>
|
200
|
+
<%%= f.rich_text_area :content,
|
201
|
+
label: "Article Content",
|
202
|
+
placeholder: "Write your article content here...",
|
203
|
+
help: "Supports rich text formatting with images and attachments" %>
|
204
|
+
<%% end %>
|
205
|
+
<% end %>
|
206
|
+
<%= render_snippet active_tab: :erb %>
|
207
|
+
<% end %>
|
208
|
+
<% end %>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div id="form-builder-checkboxes-radios">
|
212
|
+
<!-- Checkboxes and Radio Buttons -->
|
213
|
+
<%= render layout: example, locals: { heading: "Checkboxes & Radio Buttons" } do %>
|
214
|
+
|
215
|
+
<%= render preview('gray') do %>
|
216
|
+
<form>
|
217
|
+
<div class="form-group">
|
218
|
+
<h4 class="h5 mb-2">Preferences</h4>
|
219
|
+
<div class="space-y-2">
|
220
|
+
<div class="flex items-center gap-2">
|
221
|
+
<input type="checkbox" class="form-input-checkbox" id="newsletter">
|
222
|
+
<label for="newsletter" class="form-label">Subscribe to newsletter</label>
|
223
|
+
</div>
|
224
|
+
<div class="flex items-center gap-2">
|
225
|
+
<input type="checkbox" class="form-input-checkbox" id="notifications">
|
226
|
+
<label for="notifications" class="form-label">Email notifications</label>
|
227
|
+
</div>
|
228
|
+
<div class="flex items-center gap-2">
|
229
|
+
<input type="checkbox" class="form-input-checkbox" id="marketing">
|
230
|
+
<label for="marketing" class="form-label">Marketing emails</label>
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div class="form-group">
|
236
|
+
<h4 class="h5 mb-2">Plan</h4>
|
237
|
+
<div class="space-y-2">
|
238
|
+
<div class="flex items-center gap-2">
|
239
|
+
<input type="radio" class="form-input-radio" name="plan" value="free" id="plan_free">
|
240
|
+
<label for="plan_free" class="form-label">Free Plan</label>
|
241
|
+
</div>
|
242
|
+
<div class="flex items-center gap-2">
|
243
|
+
<input type="radio" class="form-input-radio" name="plan" value="pro" id="plan_pro">
|
244
|
+
<label for="plan_pro" class="form-label">Pro Plan ($9/month)</label>
|
245
|
+
</div>
|
246
|
+
<div class="flex items-center gap-2">
|
247
|
+
<input type="radio" class="form-input-radio" name="plan" value="enterprise" id="plan_enterprise">
|
248
|
+
<label for="plan_enterprise" class="form-label">Enterprise Plan (Contact us)</label>
|
249
|
+
</div>
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
</form>
|
253
|
+
<% end %>
|
254
|
+
|
255
|
+
<% content_for :example, flush: true do %>
|
256
|
+
<%# .erb %>
|
257
|
+
<% content_for :erb, flush: true do %>
|
258
|
+
<%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
|
259
|
+
<div class="form-group">
|
260
|
+
<h4 class="h5 mb-2">Preferences</h4>
|
261
|
+
<!-- Checkboxes -->
|
262
|
+
<div class="space-y-2">
|
263
|
+
<%%= f.check_box :newsletter, label: "Subscribe to newsletter" %>
|
264
|
+
<%%= f.check_box :notifications, label: "Email notifications" %>
|
265
|
+
<%%= f.check_box :marketing, label: "Marketing emails" %>
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
<div class="form-group">
|
270
|
+
<h4 class="h5 mb-2">Plan</h4>
|
271
|
+
<!-- Radio buttons -->
|
272
|
+
<div class="space-y-2">
|
273
|
+
<%%= f.radio_button :plan, "free", label: "Free Plan" %>
|
274
|
+
<%%= f.radio_button :plan, "pro", label: "Pro Plan ($9/month)" %>
|
275
|
+
<%%= f.radio_button :plan, "enterprise", label: "Enterprise Plan (Contact us)" %>
|
276
|
+
</div>
|
277
|
+
</div>
|
278
|
+
<%% end %>
|
279
|
+
<% end %>
|
280
|
+
<%= render_snippet active_tab: :erb %>
|
281
|
+
<% end %>
|
282
|
+
<% end %>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
<div id="form-builder-switches">
|
287
|
+
<!-- Switch Controls -->
|
288
|
+
<%= render layout: example, locals: { heading: "Switches" } do %>
|
289
|
+
|
290
|
+
<%= render preview('gray') do %>
|
291
|
+
<form>
|
292
|
+
<div class="form-group">
|
293
|
+
<input type="checkbox" class="form-input-switch" id="dark_mode">
|
294
|
+
<label for="dark_mode">Enable dark mode</label>
|
295
|
+
</div>
|
296
|
+
<div>
|
297
|
+
<input type="checkbox" class="form-input-switch" id="auto_save">
|
298
|
+
<label for="auto_save">Auto-save drafts</label>
|
299
|
+
</div>
|
300
|
+
</form>
|
301
|
+
<% end %>
|
302
|
+
|
303
|
+
<% content_for :example, flush: true do %>
|
304
|
+
<%# .erb %>
|
305
|
+
<% content_for :erb, flush: true do %>
|
306
|
+
<%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
|
307
|
+
<!-- Switch toggles -->
|
308
|
+
<%%= f.switch_field :dark_mode, label: "Enable dark mode" %>
|
309
|
+
<%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
|
310
|
+
<%% end %>
|
311
|
+
<% end %>
|
312
|
+
<%= render_snippet active_tab: :erb %>
|
313
|
+
<% end %>
|
314
|
+
<% end %>
|
315
|
+
</div>
|
316
|
+
|
317
|
+
|
318
|
+
<div id="form-builder-validation-errors">
|
319
|
+
|
320
|
+
<!-- Form with Validation Errors -->
|
321
|
+
<%= render layout: example, locals: { heading: "Validation & Errors" } do %>
|
322
|
+
|
323
|
+
<%= render preview('gray') do %>
|
324
|
+
<form>
|
325
|
+
<div class="form-group">
|
326
|
+
<label class="form-label form-label-required">Full Name</label>
|
327
|
+
<input type="text" class="form-input form-input-error" value="">
|
328
|
+
<p class="mt-1 text-sm text-red-600 dark:text-red-400">can't be blank</p>
|
329
|
+
</div>
|
330
|
+
<div class="form-group">
|
331
|
+
<label class="form-label">Email Address</label>
|
332
|
+
<input type="email" class="form-input form-input-error" value="invalid-email">
|
333
|
+
<p class="mt-1 text-sm text-red-600 dark:text-red-400">is not a valid email address</p>
|
334
|
+
</div>
|
335
|
+
<button type="submit" class="btn btn-primary">Submit</button>
|
336
|
+
</form>
|
337
|
+
<% end %>
|
338
|
+
|
339
|
+
<% content_for :example, flush: true do %>
|
340
|
+
<%# .erb %>
|
341
|
+
<% content_for :erb, flush: true do %>
|
342
|
+
<!-- The form builder automatically handles error states -->
|
343
|
+
<%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
|
344
|
+
<%%= f.text_field :name, label: "Full Name" %>
|
345
|
+
<%%= f.email_field :email, label: "Email Address" %>
|
346
|
+
<%%= f.submit "Submit" %>
|
347
|
+
<%% end %>
|
348
|
+
|
349
|
+
<!-- Errors are automatically displayed when present on the model -->
|
350
|
+
<!-- Required fields get asterisks when using presence validators -->
|
351
|
+
<% end %>
|
352
|
+
<%= render_snippet active_tab: :erb %>
|
353
|
+
<% end %>
|
354
|
+
<% end %>
|
355
|
+
</div>
|
356
|
+
|
357
|
+
|
358
|
+
<div id="form-builder-comparison">
|
359
|
+
|
360
|
+
<!-- Comparison: With vs Without Form Builder -->
|
361
|
+
<%= render layout: example, locals: { heading: "With vs Without Form Builder" } do %>
|
362
|
+
|
363
|
+
<%= render preview('gray') do %>
|
364
|
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
365
|
+
<div>
|
366
|
+
<h4 class="text-lg font-semibold mb-4">With Rails UI Form Builder</h4>
|
367
|
+
<form>
|
368
|
+
<div class="form-group">
|
369
|
+
<label class="form-label">Email Address</label>
|
370
|
+
<input type="email" class="form-input" placeholder="john@example.com">
|
371
|
+
<p class="form-help">Automatically styled with theme classes</p>
|
372
|
+
</div>
|
373
|
+
<button type="submit" class="btn btn-primary">Submit</button>
|
374
|
+
</form>
|
375
|
+
</div>
|
376
|
+
|
377
|
+
<div>
|
378
|
+
<h4 class="text-lg font-semibold mb-4">Standard Rails Form</h4>
|
379
|
+
<form>
|
380
|
+
<div class="mb-3">
|
381
|
+
<label>Email Address</label>
|
382
|
+
<input type="email" placeholder="john@example.com" />
|
383
|
+
</div>
|
384
|
+
<button type="submit">Submit</button>
|
385
|
+
</form>
|
386
|
+
</div>
|
387
|
+
</div>
|
388
|
+
<% end %>
|
389
|
+
|
390
|
+
<% content_for :example, flush: true do %>
|
391
|
+
<%# .erb %>
|
392
|
+
<% content_for :erb, flush: true do %>
|
393
|
+
<!-- WITH Rails UI Form Builder -->
|
394
|
+
<%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
|
395
|
+
<%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "Automatically styled with theme classes" %>
|
396
|
+
<%%= f.submit "Submit" %>
|
397
|
+
<%% end %>
|
398
|
+
|
399
|
+
<!-- WITHOUT Rails UI Form Builder (standard Rails) -->
|
400
|
+
<%%= form_with model: @user do |f| %>
|
401
|
+
<div class="mb-3">
|
402
|
+
<%%= f.label :email, "Email Address" %>
|
403
|
+
<%%= f.email_field :email, placeholder: "john@example.com" %>
|
404
|
+
</div>
|
405
|
+
<%%= f.submit "Submit" %>
|
406
|
+
<%% end %>
|
407
|
+
<% end %>
|
408
|
+
<%= render_snippet active_tab: :erb %>
|
409
|
+
<% end %>
|
410
|
+
<% end %>
|
411
|
+
</div>
|
412
|
+
|
413
|
+
<div id="form-builder-advanced">
|
414
|
+
|
415
|
+
<!-- Advanced Options -->
|
416
|
+
<%= render layout: example, locals: { heading: "Advanced Options" } do %>
|
417
|
+
|
418
|
+
<%= render preview('gray') do %>
|
419
|
+
<form>
|
420
|
+
<div class="form-group max-w-md">
|
421
|
+
<label class="form-label">Username</label>
|
422
|
+
<input type="text" class="form-input" placeholder="johndoe">
|
423
|
+
<p class="form-help">Display helpful text using the 'help' option and extend the wrapper class.</p>
|
424
|
+
</div>
|
425
|
+
|
426
|
+
<div class="form-group">
|
427
|
+
<input type="email" class="form-input" placeholder="Enter your email">
|
428
|
+
<p class="form-help">Skip displaying label</p>
|
429
|
+
</div>
|
430
|
+
|
431
|
+
<div class="form-group">
|
432
|
+
<label class="form-label font-medium text-sm text-blue-600">Website</label>
|
433
|
+
<input type="text" class="form-input text-lg" placeholder="https://">
|
434
|
+
<p class="form-help">Customize label and input classes</p>
|
435
|
+
</div>
|
436
|
+
</form>
|
437
|
+
<% end %>
|
438
|
+
|
439
|
+
<% content_for :example, flush: true do %>
|
440
|
+
<%# .erb %>
|
441
|
+
<% content_for :erb, flush: true do %>
|
442
|
+
<%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
|
443
|
+
<!-- With help text and wrapper class -->
|
444
|
+
<%%= f.text_field :username,
|
445
|
+
label: "Username",
|
446
|
+
placeholder: "johndoe",
|
447
|
+
help: "Display helpful text using the 'help' option and extend the wrapper class",
|
448
|
+
wrapper: { class: "max-w-md" } %>
|
449
|
+
|
450
|
+
<!-- Skip label (i.e. don't display labels) -->
|
451
|
+
<%%= f.email_field :email,
|
452
|
+
label: false,
|
453
|
+
placeholder: "Enter your email",
|
454
|
+
help: "Skip displaying label",
|
455
|
+
skip_label: true %>
|
456
|
+
|
457
|
+
<!-- Custom label options and input class -->
|
458
|
+
<%%= f.text_field :website,
|
459
|
+
label: "Website",
|
460
|
+
placeholder: "https://",
|
461
|
+
label_options: { class: "form-label font-medium text-sm text-blue-600" },
|
462
|
+
class: "form-input text-lg" %>
|
463
|
+
<%% end %>
|
464
|
+
<% end %>
|
465
|
+
<%= render_snippet active_tab: :erb %>
|
466
|
+
<% end %>
|
467
|
+
<% end %>
|
468
|
+
</div>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
<%= system_pagination(prev_path: systems_scaffolds_path, prev_text: "Scaffolds", next_path: systems_forms_input_path, next_text: "Input") %>
|
472
|
+
|
473
|
+
<%= content_for :component_nav do %>
|
474
|
+
<%= render layout: "railsui/shared/component_nav", locals: { title: "On this page" } do %>
|
475
|
+
<%= component_link "Setup", "#form-builder-setup" %>
|
476
|
+
<%= component_link "Field Options", "#form-builder-field-options" %>
|
477
|
+
<%= component_link "Basic form", "#form-builder-basic-form" %>
|
478
|
+
<%= component_link "All Input types", "#form-builder-all-inputs" %>
|
479
|
+
<%= component_link "Select & Textarea", "#form-builder-select-textarea" %>
|
480
|
+
<%= component_link "Rich Text Area", "#form-builder-rich-text" %>
|
481
|
+
<%= component_link "Checkboxes & Radios", "#form-builder-checkboxes-radios" %>
|
482
|
+
<%= component_link "Switches", "#form-builder-switches" %>
|
483
|
+
<%= component_link "Validation & Errors", "#form-builder-validation-errors" %>
|
484
|
+
<%= component_link "Vanilla Rails Comparison", "#form-builder-comparison" %>
|
485
|
+
<%= component_link "Advanced", "#form-builder-advanced" %>
|
486
|
+
<% end %>
|
487
|
+
<% end %>
|