hotwirebits 0.1.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 +7 -0
- data/CHANGELOG.md +46 -0
- data/LICENSE +21 -0
- data/README.md +156 -0
- data/app/assets/stylesheets/hotwirebits/theme.css +131 -0
- data/app/assets/stylesheets/hotwirebits/themes/corporate.css +29 -0
- data/app/assets/stylesheets/hotwirebits/themes/midnight.css +29 -0
- data/app/components/hotwirebits/accordion_component.html.erb +23 -0
- data/app/components/hotwirebits/accordion_component.rb +34 -0
- data/app/components/hotwirebits/activity_feed_component.html.erb +40 -0
- data/app/components/hotwirebits/activity_feed_component.rb +11 -0
- data/app/components/hotwirebits/affix_component.html.erb +3 -0
- data/app/components/hotwirebits/affix_component.rb +25 -0
- data/app/components/hotwirebits/ai_chat_component.html.erb +32 -0
- data/app/components/hotwirebits/ai_chat_component.rb +12 -0
- data/app/components/hotwirebits/alert_component.html.erb +32 -0
- data/app/components/hotwirebits/alert_component.rb +39 -0
- data/app/components/hotwirebits/alert_dialog_component.html.erb +30 -0
- data/app/components/hotwirebits/alert_dialog_component.rb +40 -0
- data/app/components/hotwirebits/anchor_component.html.erb +9 -0
- data/app/components/hotwirebits/anchor_component.rb +12 -0
- data/app/components/hotwirebits/angle_slider_component.html.erb +9 -0
- data/app/components/hotwirebits/angle_slider_component.rb +19 -0
- data/app/components/hotwirebits/animated_number_component.html.erb +8 -0
- data/app/components/hotwirebits/animated_number_component.rb +28 -0
- data/app/components/hotwirebits/app_shell_component.html.erb +22 -0
- data/app/components/hotwirebits/app_shell_component.rb +15 -0
- data/app/components/hotwirebits/aspect_ratio_component.html.erb +3 -0
- data/app/components/hotwirebits/aspect_ratio_component.rb +27 -0
- data/app/components/hotwirebits/auth_block_component.html.erb +63 -0
- data/app/components/hotwirebits/auth_block_component.rb +35 -0
- data/app/components/hotwirebits/autocomplete_component.html.erb +5 -0
- data/app/components/hotwirebits/autocomplete_component.rb +45 -0
- data/app/components/hotwirebits/avatar_component.html.erb +18 -0
- data/app/components/hotwirebits/avatar_component.rb +67 -0
- data/app/components/hotwirebits/background_image_component.html.erb +9 -0
- data/app/components/hotwirebits/background_image_component.rb +17 -0
- data/app/components/hotwirebits/badge_component.html.erb +13 -0
- data/app/components/hotwirebits/badge_component.rb +55 -0
- data/app/components/hotwirebits/banner_component.html.erb +31 -0
- data/app/components/hotwirebits/banner_component.rb +36 -0
- data/app/components/hotwirebits/base.rb +13 -0
- data/app/components/hotwirebits/bento_grid_component.html.erb +7 -0
- data/app/components/hotwirebits/bento_grid_component.rb +36 -0
- data/app/components/hotwirebits/blog_section_component.html.erb +35 -0
- data/app/components/hotwirebits/blog_section_component.rb +20 -0
- data/app/components/hotwirebits/bottom_navigation_component.html.erb +21 -0
- data/app/components/hotwirebits/bottom_navigation_component.rb +22 -0
- data/app/components/hotwirebits/box_component.html.erb +3 -0
- data/app/components/hotwirebits/box_component.rb +16 -0
- data/app/components/hotwirebits/breadcrumb_advanced_component.html.erb +53 -0
- data/app/components/hotwirebits/breadcrumb_advanced_component.rb +32 -0
- data/app/components/hotwirebits/breadcrumb_component.html.erb +18 -0
- data/app/components/hotwirebits/breadcrumb_component.rb +11 -0
- data/app/components/hotwirebits/browser_mockup_component.html.erb +22 -0
- data/app/components/hotwirebits/browser_mockup_component.rb +11 -0
- data/app/components/hotwirebits/burger_component.html.erb +20 -0
- data/app/components/hotwirebits/burger_component.rb +29 -0
- data/app/components/hotwirebits/button_component.html.erb +21 -0
- data/app/components/hotwirebits/button_component.rb +84 -0
- data/app/components/hotwirebits/calendar_component.html.erb +70 -0
- data/app/components/hotwirebits/calendar_component.rb +49 -0
- data/app/components/hotwirebits/card_component.html.erb +24 -0
- data/app/components/hotwirebits/card_component.rb +21 -0
- data/app/components/hotwirebits/card_heading_component.html.erb +13 -0
- data/app/components/hotwirebits/card_heading_component.rb +13 -0
- data/app/components/hotwirebits/carousel_component.html.erb +50 -0
- data/app/components/hotwirebits/carousel_component.rb +27 -0
- data/app/components/hotwirebits/center_component.html.erb +3 -0
- data/app/components/hotwirebits/center_component.rb +22 -0
- data/app/components/hotwirebits/chart_component.html.erb +68 -0
- data/app/components/hotwirebits/chart_component.rb +67 -0
- data/app/components/hotwirebits/chat_bubble_component.html.erb +27 -0
- data/app/components/hotwirebits/chat_bubble_component.rb +35 -0
- data/app/components/hotwirebits/checkbox_component.html.erb +9 -0
- data/app/components/hotwirebits/checkbox_component.rb +70 -0
- data/app/components/hotwirebits/checkout_form_component.html.erb +40 -0
- data/app/components/hotwirebits/checkout_form_component.rb +21 -0
- data/app/components/hotwirebits/chip_component.html.erb +13 -0
- data/app/components/hotwirebits/chip_component.rb +51 -0
- data/app/components/hotwirebits/clipboard_component.html.erb +26 -0
- data/app/components/hotwirebits/clipboard_component.rb +19 -0
- data/app/components/hotwirebits/close_button_component.html.erb +3 -0
- data/app/components/hotwirebits/close_button_component.rb +40 -0
- data/app/components/hotwirebits/code_block_component.html.erb +17 -0
- data/app/components/hotwirebits/code_block_component.rb +19 -0
- data/app/components/hotwirebits/code_highlight_component.html.erb +6 -0
- data/app/components/hotwirebits/code_highlight_component.rb +32 -0
- data/app/components/hotwirebits/code_mockup_component.html.erb +13 -0
- data/app/components/hotwirebits/code_mockup_component.rb +19 -0
- data/app/components/hotwirebits/collapsible_component.html.erb +17 -0
- data/app/components/hotwirebits/collapsible_component.rb +11 -0
- data/app/components/hotwirebits/color_input_component.html.erb +19 -0
- data/app/components/hotwirebits/color_input_component.rb +14 -0
- data/app/components/hotwirebits/color_picker_component.html.erb +6 -0
- data/app/components/hotwirebits/color_picker_component.rb +37 -0
- data/app/components/hotwirebits/color_swatch_component.html.erb +1 -0
- data/app/components/hotwirebits/color_swatch_component.rb +18 -0
- data/app/components/hotwirebits/combobox_component.html.erb +15 -0
- data/app/components/hotwirebits/combobox_component.rb +56 -0
- data/app/components/hotwirebits/command_bar_component.html.erb +33 -0
- data/app/components/hotwirebits/command_bar_component.rb +11 -0
- data/app/components/hotwirebits/compare_component.html.erb +21 -0
- data/app/components/hotwirebits/compare_component.rb +17 -0
- data/app/components/hotwirebits/confirm_dialog_component.html.erb +17 -0
- data/app/components/hotwirebits/confirm_dialog_component.rb +23 -0
- data/app/components/hotwirebits/confirm_popup_component.html.erb +16 -0
- data/app/components/hotwirebits/confirm_popup_component.rb +31 -0
- data/app/components/hotwirebits/contact_section_component.html.erb +53 -0
- data/app/components/hotwirebits/contact_section_component.rb +17 -0
- data/app/components/hotwirebits/container_component.html.erb +3 -0
- data/app/components/hotwirebits/container_component.rb +29 -0
- data/app/components/hotwirebits/context_menu_component.html.erb +27 -0
- data/app/components/hotwirebits/context_menu_component.rb +14 -0
- data/app/components/hotwirebits/cookie_consent_component.html.erb +23 -0
- data/app/components/hotwirebits/cookie_consent_component.rb +28 -0
- data/app/components/hotwirebits/cookie_settings_component.html.erb +48 -0
- data/app/components/hotwirebits/cookie_settings_component.rb +10 -0
- data/app/components/hotwirebits/countdown_component.html.erb +8 -0
- data/app/components/hotwirebits/countdown_component.rb +14 -0
- data/app/components/hotwirebits/cta_section_component.html.erb +33 -0
- data/app/components/hotwirebits/cta_section_component.rb +23 -0
- data/app/components/hotwirebits/dashboard_card_component.html.erb +32 -0
- data/app/components/hotwirebits/dashboard_card_component.rb +25 -0
- data/app/components/hotwirebits/data_table_component.html.erb +53 -0
- data/app/components/hotwirebits/data_table_component.rb +40 -0
- data/app/components/hotwirebits/data_view_component.html.erb +21 -0
- data/app/components/hotwirebits/data_view_component.rb +76 -0
- data/app/components/hotwirebits/date_picker_component.html.erb +8 -0
- data/app/components/hotwirebits/date_picker_component.rb +61 -0
- data/app/components/hotwirebits/date_range_picker_component.html.erb +28 -0
- data/app/components/hotwirebits/date_range_picker_component.rb +14 -0
- data/app/components/hotwirebits/device_frame_component.html.erb +40 -0
- data/app/components/hotwirebits/device_frame_component.rb +36 -0
- data/app/components/hotwirebits/device_mockup_component.html.erb +51 -0
- data/app/components/hotwirebits/device_mockup_component.rb +37 -0
- data/app/components/hotwirebits/dialog_component.html.erb +41 -0
- data/app/components/hotwirebits/dialog_component.rb +49 -0
- data/app/components/hotwirebits/diff_component.html.erb +22 -0
- data/app/components/hotwirebits/diff_component.rb +21 -0
- data/app/components/hotwirebits/diff_view_component.html.erb +22 -0
- data/app/components/hotwirebits/diff_view_component.rb +39 -0
- data/app/components/hotwirebits/digital_signature_component.html.erb +21 -0
- data/app/components/hotwirebits/digital_signature_component.rb +14 -0
- data/app/components/hotwirebits/divider_component.html.erb +11 -0
- data/app/components/hotwirebits/divider_component.rb +29 -0
- data/app/components/hotwirebits/dock_menu_component.html.erb +21 -0
- data/app/components/hotwirebits/dock_menu_component.rb +10 -0
- data/app/components/hotwirebits/drag_drop_list_component.html.erb +16 -0
- data/app/components/hotwirebits/drag_drop_list_component.rb +20 -0
- data/app/components/hotwirebits/drawer_component.html.erb +38 -0
- data/app/components/hotwirebits/drawer_component.rb +21 -0
- data/app/components/hotwirebits/dropdown_component.html.erb +27 -0
- data/app/components/hotwirebits/dropdown_component.rb +21 -0
- data/app/components/hotwirebits/dropzone_component.html.erb +16 -0
- data/app/components/hotwirebits/dropzone_component.rb +15 -0
- data/app/components/hotwirebits/empty_cart_component.html.erb +19 -0
- data/app/components/hotwirebits/empty_cart_component.rb +14 -0
- data/app/components/hotwirebits/empty_state_component.html.erb +20 -0
- data/app/components/hotwirebits/empty_state_component.rb +14 -0
- data/app/components/hotwirebits/error_page_component.html.erb +14 -0
- data/app/components/hotwirebits/error_page_component.rb +30 -0
- data/app/components/hotwirebits/faq_section_component.html.erb +26 -0
- data/app/components/hotwirebits/faq_section_component.rb +18 -0
- data/app/components/hotwirebits/feature_section_component.html.erb +27 -0
- data/app/components/hotwirebits/feature_section_component.rb +24 -0
- data/app/components/hotwirebits/feedback_component.html.erb +51 -0
- data/app/components/hotwirebits/feedback_component.rb +23 -0
- data/app/components/hotwirebits/fieldset_component.html.erb +11 -0
- data/app/components/hotwirebits/fieldset_component.rb +21 -0
- data/app/components/hotwirebits/file_browser_component.html.erb +35 -0
- data/app/components/hotwirebits/file_browser_component.rb +11 -0
- data/app/components/hotwirebits/file_input_component.html.erb +7 -0
- data/app/components/hotwirebits/file_input_component.rb +25 -0
- data/app/components/hotwirebits/file_upload_progress_component.html.erb +26 -0
- data/app/components/hotwirebits/file_upload_progress_component.rb +33 -0
- data/app/components/hotwirebits/flex_component.html.erb +3 -0
- data/app/components/hotwirebits/flex_component.rb +37 -0
- data/app/components/hotwirebits/float_label_component.html.erb +4 -0
- data/app/components/hotwirebits/float_label_component.rb +11 -0
- data/app/components/hotwirebits/fluid_component.html.erb +3 -0
- data/app/components/hotwirebits/fluid_component.rb +13 -0
- data/app/components/hotwirebits/flyout_menu_component.html.erb +35 -0
- data/app/components/hotwirebits/flyout_menu_component.rb +25 -0
- data/app/components/hotwirebits/footer_component.html.erb +43 -0
- data/app/components/hotwirebits/footer_component.rb +13 -0
- data/app/components/hotwirebits/form_fieldset_component.html.erb +9 -0
- data/app/components/hotwirebits/form_fieldset_component.rb +11 -0
- data/app/components/hotwirebits/form_group_component.html.erb +31 -0
- data/app/components/hotwirebits/form_group_component.rb +15 -0
- data/app/components/hotwirebits/gallery_component.html.erb +25 -0
- data/app/components/hotwirebits/gallery_component.rb +29 -0
- data/app/components/hotwirebits/grid_component.html.erb +3 -0
- data/app/components/hotwirebits/grid_component.rb +31 -0
- data/app/components/hotwirebits/group_component.html.erb +3 -0
- data/app/components/hotwirebits/group_component.rb +27 -0
- data/app/components/hotwirebits/header_component.html.erb +25 -0
- data/app/components/hotwirebits/header_component.rb +23 -0
- data/app/components/hotwirebits/header_section_component.html.erb +33 -0
- data/app/components/hotwirebits/header_section_component.rb +18 -0
- data/app/components/hotwirebits/hero_component.html.erb +35 -0
- data/app/components/hotwirebits/hero_component.rb +36 -0
- data/app/components/hotwirebits/highlight_component.html.erb +1 -0
- data/app/components/hotwirebits/highlight_component.rb +21 -0
- data/app/components/hotwirebits/hover3d_card_component.html.erb +10 -0
- data/app/components/hotwirebits/hover3d_card_component.rb +16 -0
- data/app/components/hotwirebits/hover_card_component.html.erb +19 -0
- data/app/components/hotwirebits/hover_card_component.rb +35 -0
- data/app/components/hotwirebits/hover_gallery_component.html.erb +23 -0
- data/app/components/hotwirebits/hover_gallery_component.rb +15 -0
- data/app/components/hotwirebits/icon_field_component.html.erb +9 -0
- data/app/components/hotwirebits/icon_field_component.rb +35 -0
- data/app/components/hotwirebits/ifta_label_component.html.erb +4 -0
- data/app/components/hotwirebits/ifta_label_component.rb +11 -0
- data/app/components/hotwirebits/image_compare_component.html.erb +21 -0
- data/app/components/hotwirebits/image_compare_component.rb +19 -0
- data/app/components/hotwirebits/image_component.html.erb +22 -0
- data/app/components/hotwirebits/image_component.rb +23 -0
- data/app/components/hotwirebits/image_zoom_component.html.erb +8 -0
- data/app/components/hotwirebits/image_zoom_component.rb +17 -0
- data/app/components/hotwirebits/incentive_component.html.erb +11 -0
- data/app/components/hotwirebits/incentive_component.rb +16 -0
- data/app/components/hotwirebits/indicator_badge_component.html.erb +8 -0
- data/app/components/hotwirebits/indicator_badge_component.rb +33 -0
- data/app/components/hotwirebits/indicator_component.html.erb +6 -0
- data/app/components/hotwirebits/indicator_component.rb +30 -0
- data/app/components/hotwirebits/inline_edit_component.html.erb +50 -0
- data/app/components/hotwirebits/inline_edit_component.rb +16 -0
- data/app/components/hotwirebits/inplace_component.html.erb +6 -0
- data/app/components/hotwirebits/inplace_component.rb +39 -0
- data/app/components/hotwirebits/input_component.html.erb +13 -0
- data/app/components/hotwirebits/input_component.rb +97 -0
- data/app/components/hotwirebits/input_group_component.html.erb +9 -0
- data/app/components/hotwirebits/input_group_component.rb +38 -0
- data/app/components/hotwirebits/input_number_component.html.erb +14 -0
- data/app/components/hotwirebits/input_number_component.rb +78 -0
- data/app/components/hotwirebits/input_otp_component.html.erb +6 -0
- data/app/components/hotwirebits/input_otp_component.rb +29 -0
- data/app/components/hotwirebits/input_tags_component.html.erb +12 -0
- data/app/components/hotwirebits/input_tags_component.rb +31 -0
- data/app/components/hotwirebits/join_component.html.erb +3 -0
- data/app/components/hotwirebits/join_component.rb +18 -0
- data/app/components/hotwirebits/json_input_component.html.erb +14 -0
- data/app/components/hotwirebits/json_input_component.rb +20 -0
- data/app/components/hotwirebits/kanban_board_component.html.erb +39 -0
- data/app/components/hotwirebits/kanban_board_component.rb +17 -0
- data/app/components/hotwirebits/kbd_component.html.erb +1 -0
- data/app/components/hotwirebits/kbd_component.rb +27 -0
- data/app/components/hotwirebits/knob_component.html.erb +16 -0
- data/app/components/hotwirebits/knob_component.rb +23 -0
- data/app/components/hotwirebits/label_component.html.erb +5 -0
- data/app/components/hotwirebits/label_component.rb +18 -0
- data/app/components/hotwirebits/lightbox_component.html.erb +30 -0
- data/app/components/hotwirebits/lightbox_component.rb +11 -0
- data/app/components/hotwirebits/like_button_component.html.erb +15 -0
- data/app/components/hotwirebits/like_button_component.rb +23 -0
- data/app/components/hotwirebits/list_component.html.erb +3 -0
- data/app/components/hotwirebits/list_component.rb +19 -0
- data/app/components/hotwirebits/listbox_component.html.erb +16 -0
- data/app/components/hotwirebits/listbox_component.rb +52 -0
- data/app/components/hotwirebits/loading_overlay_component.html.erb +12 -0
- data/app/components/hotwirebits/loading_overlay_component.rb +23 -0
- data/app/components/hotwirebits/logo_cloud_component.html.erb +20 -0
- data/app/components/hotwirebits/logo_cloud_component.rb +23 -0
- data/app/components/hotwirebits/logo_item_component.html.erb +7 -0
- data/app/components/hotwirebits/logo_item_component.rb +20 -0
- data/app/components/hotwirebits/mark_component.html.erb +1 -0
- data/app/components/hotwirebits/mark_component.rb +17 -0
- data/app/components/hotwirebits/marquee_component.html.erb +29 -0
- data/app/components/hotwirebits/marquee_component.rb +38 -0
- data/app/components/hotwirebits/mask_component.html.erb +3 -0
- data/app/components/hotwirebits/mask_component.rb +25 -0
- data/app/components/hotwirebits/mega_menu_component.html.erb +43 -0
- data/app/components/hotwirebits/mega_menu_component.rb +11 -0
- data/app/components/hotwirebits/menu_component.html.erb +32 -0
- data/app/components/hotwirebits/menu_component.rb +20 -0
- data/app/components/hotwirebits/menubar_component.html.erb +30 -0
- data/app/components/hotwirebits/menubar_component.rb +10 -0
- data/app/components/hotwirebits/meter_group_component.html.erb +16 -0
- data/app/components/hotwirebits/meter_group_component.rb +36 -0
- data/app/components/hotwirebits/month_picker_component.html.erb +25 -0
- data/app/components/hotwirebits/month_picker_component.rb +51 -0
- data/app/components/hotwirebits/month_picker_input_component.html.erb +20 -0
- data/app/components/hotwirebits/month_picker_input_component.rb +21 -0
- data/app/components/hotwirebits/multiselect_component.html.erb +18 -0
- data/app/components/hotwirebits/multiselect_component.rb +56 -0
- data/app/components/hotwirebits/native_select_component.html.erb +10 -0
- data/app/components/hotwirebits/native_select_component.rb +20 -0
- data/app/components/hotwirebits/nav_link_component.html.erb +9 -0
- data/app/components/hotwirebits/nav_link_component.rb +23 -0
- data/app/components/hotwirebits/navbar_component.html.erb +25 -0
- data/app/components/hotwirebits/navbar_component.rb +26 -0
- data/app/components/hotwirebits/navigation_menu_component.html.erb +43 -0
- data/app/components/hotwirebits/navigation_menu_component.rb +10 -0
- data/app/components/hotwirebits/newsletter_section_component.html.erb +18 -0
- data/app/components/hotwirebits/newsletter_section_component.rb +15 -0
- data/app/components/hotwirebits/notification_bell_component.html.erb +18 -0
- data/app/components/hotwirebits/notification_bell_component.rb +22 -0
- data/app/components/hotwirebits/notification_component.html.erb +28 -0
- data/app/components/hotwirebits/notification_component.rb +23 -0
- data/app/components/hotwirebits/number_formatter_component.html.erb +1 -0
- data/app/components/hotwirebits/number_formatter_component.rb +27 -0
- data/app/components/hotwirebits/number_input_component.html.erb +1 -0
- data/app/components/hotwirebits/number_input_component.rb +32 -0
- data/app/components/hotwirebits/order_summary_component.html.erb +37 -0
- data/app/components/hotwirebits/order_summary_component.rb +23 -0
- data/app/components/hotwirebits/org_chart_component.html.erb +34 -0
- data/app/components/hotwirebits/org_chart_component.rb +14 -0
- data/app/components/hotwirebits/page_heading_component.html.erb +28 -0
- data/app/components/hotwirebits/page_heading_component.rb +18 -0
- data/app/components/hotwirebits/pagination_component.html.erb +29 -0
- data/app/components/hotwirebits/pagination_component.rb +32 -0
- data/app/components/hotwirebits/paginator_component.html.erb +36 -0
- data/app/components/hotwirebits/paginator_component.rb +44 -0
- data/app/components/hotwirebits/panel_component.html.erb +14 -0
- data/app/components/hotwirebits/panel_component.rb +48 -0
- data/app/components/hotwirebits/password_input_component.html.erb +8 -0
- data/app/components/hotwirebits/password_input_component.rb +72 -0
- data/app/components/hotwirebits/password_strength_component.html.erb +18 -0
- data/app/components/hotwirebits/password_strength_component.rb +24 -0
- data/app/components/hotwirebits/password_toggle_component.html.erb +15 -0
- data/app/components/hotwirebits/password_toggle_component.rb +10 -0
- data/app/components/hotwirebits/permission_badge_component.html.erb +15 -0
- data/app/components/hotwirebits/permission_badge_component.rb +33 -0
- data/app/components/hotwirebits/phone_input_component.html.erb +1 -0
- data/app/components/hotwirebits/phone_input_component.rb +29 -0
- data/app/components/hotwirebits/phone_mockup_component.html.erb +12 -0
- data/app/components/hotwirebits/phone_mockup_component.rb +30 -0
- data/app/components/hotwirebits/popover_component.html.erb +20 -0
- data/app/components/hotwirebits/popover_component.rb +45 -0
- data/app/components/hotwirebits/portal_component.html.erb +3 -0
- data/app/components/hotwirebits/portal_component.rb +10 -0
- data/app/components/hotwirebits/pricing_section_component.html.erb +46 -0
- data/app/components/hotwirebits/pricing_section_component.rb +19 -0
- data/app/components/hotwirebits/product_list_component.html.erb +24 -0
- data/app/components/hotwirebits/product_list_component.rb +21 -0
- data/app/components/hotwirebits/product_overview_component.html.erb +59 -0
- data/app/components/hotwirebits/product_overview_component.rb +19 -0
- data/app/components/hotwirebits/product_quickview_component.html.erb +45 -0
- data/app/components/hotwirebits/product_quickview_component.rb +15 -0
- data/app/components/hotwirebits/progress_component.html.erb +10 -0
- data/app/components/hotwirebits/progress_component.rb +49 -0
- data/app/components/hotwirebits/progress_ring_component.html.erb +26 -0
- data/app/components/hotwirebits/progress_ring_component.rb +47 -0
- data/app/components/hotwirebits/promo_section_component.html.erb +31 -0
- data/app/components/hotwirebits/promo_section_component.rb +30 -0
- data/app/components/hotwirebits/qr_code_component.html.erb +19 -0
- data/app/components/hotwirebits/qr_code_component.rb +177 -0
- data/app/components/hotwirebits/radio_component.html.erb +6 -0
- data/app/components/hotwirebits/radio_component.rb +40 -0
- data/app/components/hotwirebits/range_slider_component.html.erb +9 -0
- data/app/components/hotwirebits/range_slider_component.rb +57 -0
- data/app/components/hotwirebits/rating_component.html.erb +11 -0
- data/app/components/hotwirebits/rating_component.rb +53 -0
- data/app/components/hotwirebits/resizable_component.html.erb +19 -0
- data/app/components/hotwirebits/resizable_component.rb +35 -0
- data/app/components/hotwirebits/review_component.html.erb +36 -0
- data/app/components/hotwirebits/review_component.rb +19 -0
- data/app/components/hotwirebits/rich_text_editor_component.html.erb +55 -0
- data/app/components/hotwirebits/rich_text_editor_component.rb +15 -0
- data/app/components/hotwirebits/scroll_area_component.html.erb +3 -0
- data/app/components/hotwirebits/scroll_area_component.rb +28 -0
- data/app/components/hotwirebits/search_component.html.erb +56 -0
- data/app/components/hotwirebits/search_component.rb +21 -0
- data/app/components/hotwirebits/search_input_component.html.erb +6 -0
- data/app/components/hotwirebits/search_input_component.rb +50 -0
- data/app/components/hotwirebits/section_heading_component.html.erb +6 -0
- data/app/components/hotwirebits/section_heading_component.rb +26 -0
- data/app/components/hotwirebits/select_component.html.erb +16 -0
- data/app/components/hotwirebits/select_component.rb +38 -0
- data/app/components/hotwirebits/semi_circle_progress_component.html.erb +9 -0
- data/app/components/hotwirebits/semi_circle_progress_component.rb +52 -0
- data/app/components/hotwirebits/separator_component.html.erb +9 -0
- data/app/components/hotwirebits/separator_component.rb +26 -0
- data/app/components/hotwirebits/sheet_component.html.erb +42 -0
- data/app/components/hotwirebits/sheet_component.rb +44 -0
- data/app/components/hotwirebits/shopping_cart_component.html.erb +46 -0
- data/app/components/hotwirebits/shopping_cart_component.rb +17 -0
- data/app/components/hotwirebits/sidebar_component.html.erb +40 -0
- data/app/components/hotwirebits/sidebar_component.rb +29 -0
- data/app/components/hotwirebits/simple_grid_component.html.erb +3 -0
- data/app/components/hotwirebits/simple_grid_component.rb +23 -0
- data/app/components/hotwirebits/skeleton_card_component.html.erb +15 -0
- data/app/components/hotwirebits/skeleton_card_component.rb +17 -0
- data/app/components/hotwirebits/skeleton_component.html.erb +5 -0
- data/app/components/hotwirebits/skeleton_component.rb +39 -0
- data/app/components/hotwirebits/slider_component.html.erb +3 -0
- data/app/components/hotwirebits/slider_component.rb +34 -0
- data/app/components/hotwirebits/social_share_component.html.erb +20 -0
- data/app/components/hotwirebits/social_share_component.rb +25 -0
- data/app/components/hotwirebits/space_component.html.erb +1 -0
- data/app/components/hotwirebits/space_component.rb +22 -0
- data/app/components/hotwirebits/speed_dial_component.html.erb +24 -0
- data/app/components/hotwirebits/speed_dial_component.rb +41 -0
- data/app/components/hotwirebits/speed_dial_fab_component.html.erb +30 -0
- data/app/components/hotwirebits/speed_dial_fab_component.rb +27 -0
- data/app/components/hotwirebits/spinner_component.html.erb +10 -0
- data/app/components/hotwirebits/spinner_component.rb +20 -0
- data/app/components/hotwirebits/split_button_component.html.erb +20 -0
- data/app/components/hotwirebits/split_button_component.rb +33 -0
- data/app/components/hotwirebits/splitter_component.html.erb +9 -0
- data/app/components/hotwirebits/splitter_component.rb +38 -0
- data/app/components/hotwirebits/spoiler_component.html.erb +17 -0
- data/app/components/hotwirebits/spoiler_component.rb +12 -0
- data/app/components/hotwirebits/stack_component.html.erb +3 -0
- data/app/components/hotwirebits/stack_component.rb +28 -0
- data/app/components/hotwirebits/stacked_list_component.html.erb +20 -0
- data/app/components/hotwirebits/stacked_list_component.rb +18 -0
- data/app/components/hotwirebits/stat_component.html.erb +21 -0
- data/app/components/hotwirebits/stat_component.rb +26 -0
- data/app/components/hotwirebits/stats_component.html.erb +15 -0
- data/app/components/hotwirebits/stats_component.rb +25 -0
- data/app/components/hotwirebits/status_bar_component.html.erb +13 -0
- data/app/components/hotwirebits/status_bar_component.rb +20 -0
- data/app/components/hotwirebits/status_component.html.erb +6 -0
- data/app/components/hotwirebits/status_component.rb +30 -0
- data/app/components/hotwirebits/status_dot_component.html.erb +11 -0
- data/app/components/hotwirebits/status_dot_component.rb +37 -0
- data/app/components/hotwirebits/stepper_form_component.html.erb +55 -0
- data/app/components/hotwirebits/stepper_form_component.rb +23 -0
- data/app/components/hotwirebits/steps_component.html.erb +45 -0
- data/app/components/hotwirebits/steps_component.rb +44 -0
- data/app/components/hotwirebits/swap_component.html.erb +18 -0
- data/app/components/hotwirebits/swap_component.rb +29 -0
- data/app/components/hotwirebits/switch_component.html.erb +9 -0
- data/app/components/hotwirebits/switch_component.rb +51 -0
- data/app/components/hotwirebits/table_component.html.erb +5 -0
- data/app/components/hotwirebits/table_component.rb +27 -0
- data/app/components/hotwirebits/table_of_contents_component.html.erb +12 -0
- data/app/components/hotwirebits/table_of_contents_component.rb +23 -0
- data/app/components/hotwirebits/tabs_component.html.erb +43 -0
- data/app/components/hotwirebits/tabs_component.rb +58 -0
- data/app/components/hotwirebits/tag_component.html.erb +3 -0
- data/app/components/hotwirebits/tag_component.rb +35 -0
- data/app/components/hotwirebits/tag_input_component.html.erb +14 -0
- data/app/components/hotwirebits/tag_input_component.rb +56 -0
- data/app/components/hotwirebits/team_section_component.html.erb +39 -0
- data/app/components/hotwirebits/team_section_component.rb +20 -0
- data/app/components/hotwirebits/terminal_component.html.erb +21 -0
- data/app/components/hotwirebits/terminal_component.rb +11 -0
- data/app/components/hotwirebits/testimonial_component.html.erb +29 -0
- data/app/components/hotwirebits/testimonial_component.rb +22 -0
- data/app/components/hotwirebits/testimonials_section_component.html.erb +34 -0
- data/app/components/hotwirebits/testimonials_section_component.rb +23 -0
- data/app/components/hotwirebits/text_gradient_component.html.erb +3 -0
- data/app/components/hotwirebits/text_gradient_component.rb +18 -0
- data/app/components/hotwirebits/text_rotate_component.html.erb +7 -0
- data/app/components/hotwirebits/text_rotate_component.rb +24 -0
- data/app/components/hotwirebits/textarea_component.html.erb +1 -0
- data/app/components/hotwirebits/textarea_component.rb +35 -0
- data/app/components/hotwirebits/theme_controller_component.html.erb +13 -0
- data/app/components/hotwirebits/theme_controller_component.rb +11 -0
- data/app/components/hotwirebits/theme_icon_component.html.erb +3 -0
- data/app/components/hotwirebits/theme_icon_component.rb +18 -0
- data/app/components/hotwirebits/theme_selector_component.html.erb +27 -0
- data/app/components/hotwirebits/theme_selector_component.rb +11 -0
- data/app/components/hotwirebits/time_picker_component.html.erb +29 -0
- data/app/components/hotwirebits/time_picker_component.rb +28 -0
- data/app/components/hotwirebits/timeline_component.html.erb +24 -0
- data/app/components/hotwirebits/timeline_component.rb +17 -0
- data/app/components/hotwirebits/toast_component.html.erb +34 -0
- data/app/components/hotwirebits/toast_component.rb +47 -0
- data/app/components/hotwirebits/toggle_button_component.html.erb +4 -0
- data/app/components/hotwirebits/toggle_button_component.rb +31 -0
- data/app/components/hotwirebits/toggle_button_group_component.html.erb +8 -0
- data/app/components/hotwirebits/toggle_button_group_component.rb +54 -0
- data/app/components/hotwirebits/toggle_component.html.erb +3 -0
- data/app/components/hotwirebits/toggle_component.rb +38 -0
- data/app/components/hotwirebits/toolbar_component.html.erb +18 -0
- data/app/components/hotwirebits/toolbar_component.rb +50 -0
- data/app/components/hotwirebits/tooltip_component.html.erb +16 -0
- data/app/components/hotwirebits/tooltip_component.rb +32 -0
- data/app/components/hotwirebits/tree_view_component.html.erb +7 -0
- data/app/components/hotwirebits/tree_view_component.rb +47 -0
- data/app/components/hotwirebits/two_factor_component.html.erb +26 -0
- data/app/components/hotwirebits/two_factor_component.rb +14 -0
- data/app/components/hotwirebits/typing_indicator_component.html.erb +5 -0
- data/app/components/hotwirebits/typing_indicator_component.rb +33 -0
- data/app/components/hotwirebits/typography_component.html.erb +3 -0
- data/app/components/hotwirebits/typography_component.rb +35 -0
- data/app/components/hotwirebits/validator_component.html.erb +20 -0
- data/app/components/hotwirebits/validator_component.rb +12 -0
- data/app/components/hotwirebits/version_diff_component.html.erb +17 -0
- data/app/components/hotwirebits/version_diff_component.rb +38 -0
- data/app/components/hotwirebits/video_player_component.html.erb +11 -0
- data/app/components/hotwirebits/video_player_component.rb +29 -0
- data/app/components/hotwirebits/voice_recorder_component.html.erb +29 -0
- data/app/components/hotwirebits/voice_recorder_component.rb +14 -0
- data/app/components/hotwirebits/window_mockup_component.html.erb +20 -0
- data/app/components/hotwirebits/window_mockup_component.rb +11 -0
- data/app/helpers/hotwirebits_helper.rb +738 -0
- data/app/javascript/controllers/hotwirebits/index.js +216 -0
- data/app/javascript/controllers/hotwirebits/rb_accordion_controller.js +16 -0
- data/app/javascript/controllers/hotwirebits/rb_activity_feed_controller.js +11 -0
- data/app/javascript/controllers/hotwirebits/rb_ai_chat_controller.js +21 -0
- data/app/javascript/controllers/hotwirebits/rb_alert_controller.js +24 -0
- data/app/javascript/controllers/hotwirebits/rb_angle_slider_controller.js +11 -0
- data/app/javascript/controllers/hotwirebits/rb_animated_number_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_autocomplete_controller.js +34 -0
- data/app/javascript/controllers/hotwirebits/rb_badge_controller.js +8 -0
- data/app/javascript/controllers/hotwirebits/rb_banner_controller.js +27 -0
- data/app/javascript/controllers/hotwirebits/rb_burger_controller.js +25 -0
- data/app/javascript/controllers/hotwirebits/rb_calendar_controller.js +85 -0
- data/app/javascript/controllers/hotwirebits/rb_carousel_controller.js +74 -0
- data/app/javascript/controllers/hotwirebits/rb_clipboard_controller.js +42 -0
- data/app/javascript/controllers/hotwirebits/rb_code_highlight_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_collapsible_controller.js +51 -0
- data/app/javascript/controllers/hotwirebits/rb_color_input_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_color_picker_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_combobox_controller.js +91 -0
- data/app/javascript/controllers/hotwirebits/rb_command_bar_controller.js +32 -0
- data/app/javascript/controllers/hotwirebits/rb_compare_controller.js +18 -0
- data/app/javascript/controllers/hotwirebits/rb_confirm_dialog_controller.js +11 -0
- data/app/javascript/controllers/hotwirebits/rb_confirm_popup_controller.js +10 -0
- data/app/javascript/controllers/hotwirebits/rb_context_menu_controller.js +27 -0
- data/app/javascript/controllers/hotwirebits/rb_cookie_consent_controller.js +60 -0
- data/app/javascript/controllers/hotwirebits/rb_cookie_settings_controller.js +9 -0
- data/app/javascript/controllers/hotwirebits/rb_countdown_controller.js +60 -0
- data/app/javascript/controllers/hotwirebits/rb_data_view_controller.js +10 -0
- data/app/javascript/controllers/hotwirebits/rb_date_range_controller.js +9 -0
- data/app/javascript/controllers/hotwirebits/rb_datepicker_controller.js +107 -0
- data/app/javascript/controllers/hotwirebits/rb_dialog_controller.js +68 -0
- data/app/javascript/controllers/hotwirebits/rb_drag_drop_controller.js +21 -0
- data/app/javascript/controllers/hotwirebits/rb_drawer_controller.js +69 -0
- data/app/javascript/controllers/hotwirebits/rb_dropdown_controller.js +73 -0
- data/app/javascript/controllers/hotwirebits/rb_feedback_controller.js +50 -0
- data/app/javascript/controllers/hotwirebits/rb_file_browser_controller.js +9 -0
- data/app/javascript/controllers/hotwirebits/rb_highlight_controller.js +47 -0
- data/app/javascript/controllers/hotwirebits/rb_hover_3d_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_hover_card_controller.js +19 -0
- data/app/javascript/controllers/hotwirebits/rb_hover_gallery_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_image_compare_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_image_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_image_zoom_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_inline_edit_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_inplace_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_input_number_controller.js +9 -0
- data/app/javascript/controllers/hotwirebits/rb_json_input_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_kanban_controller.js +78 -0
- data/app/javascript/controllers/hotwirebits/rb_knob_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_lightbox_controller.js +36 -0
- data/app/javascript/controllers/hotwirebits/rb_like_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_listbox_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_marquee_controller.js +68 -0
- data/app/javascript/controllers/hotwirebits/rb_menubar_controller.js +78 -0
- data/app/javascript/controllers/hotwirebits/rb_month_picker_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_month_picker_input_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_multiselect_controller.js +83 -0
- data/app/javascript/controllers/hotwirebits/rb_nav_menu_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_newsletter_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_notification_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_otp_controller.js +54 -0
- data/app/javascript/controllers/hotwirebits/rb_paginator_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_panel_controller.js +12 -0
- data/app/javascript/controllers/hotwirebits/rb_password_controller.js +36 -0
- data/app/javascript/controllers/hotwirebits/rb_password_strength_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_password_toggle_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_popover_controller.js +61 -0
- data/app/javascript/controllers/hotwirebits/rb_portal_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_quickview_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_range_slider_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_rating_controller.js +55 -0
- data/app/javascript/controllers/hotwirebits/rb_resizable_controller.js +82 -0
- data/app/javascript/controllers/hotwirebits/rb_rich_text_editor_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_search_controller.js +70 -0
- data/app/javascript/controllers/hotwirebits/rb_sheet_controller.js +43 -0
- data/app/javascript/controllers/hotwirebits/rb_sidebar_controller.js +66 -0
- data/app/javascript/controllers/hotwirebits/rb_signature_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_speed_dial_controller.js +64 -0
- data/app/javascript/controllers/hotwirebits/rb_splitter_controller.js +27 -0
- data/app/javascript/controllers/hotwirebits/rb_spoiler_controller.js +26 -0
- data/app/javascript/controllers/hotwirebits/rb_stepper_form_controller.js +11 -0
- data/app/javascript/controllers/hotwirebits/rb_steps_controller.js +46 -0
- data/app/javascript/controllers/hotwirebits/rb_swap_controller.js +22 -0
- data/app/javascript/controllers/hotwirebits/rb_switch_controller.js +33 -0
- data/app/javascript/controllers/hotwirebits/rb_tabs_controller.js +46 -0
- data/app/javascript/controllers/hotwirebits/rb_tag_input_controller.js +19 -0
- data/app/javascript/controllers/hotwirebits/rb_tags_controller.js +50 -0
- data/app/javascript/controllers/hotwirebits/rb_text_rotate_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_theme_controller.js +48 -0
- data/app/javascript/controllers/hotwirebits/rb_theme_selector_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_time_picker_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_toast_controller.js +43 -0
- data/app/javascript/controllers/hotwirebits/rb_toggle_button_controller.js +9 -0
- data/app/javascript/controllers/hotwirebits/rb_toggle_button_group_controller.js +12 -0
- data/app/javascript/controllers/hotwirebits/rb_toggle_controller.js +28 -0
- data/app/javascript/controllers/hotwirebits/rb_tooltip_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_tree_controller.js +58 -0
- data/app/javascript/controllers/hotwirebits/rb_two_factor_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_validator_controller.js +7 -0
- data/app/javascript/controllers/hotwirebits/rb_voice_recorder_controller.js +7 -0
- data/app/views/hotwirebits/_accordion.html.erb +26 -0
- data/app/views/hotwirebits/_activity_feed.html.erb +43 -0
- data/app/views/hotwirebits/_affix.html.erb +6 -0
- data/app/views/hotwirebits/_ai_chat.html.erb +35 -0
- data/app/views/hotwirebits/_alert.html.erb +53 -0
- data/app/views/hotwirebits/_alert_dialog.html.erb +33 -0
- data/app/views/hotwirebits/_anchor.html.erb +12 -0
- data/app/views/hotwirebits/_angle_slider.html.erb +12 -0
- data/app/views/hotwirebits/_animated_number.html.erb +11 -0
- data/app/views/hotwirebits/_app_shell.html.erb +25 -0
- data/app/views/hotwirebits/_aspect_ratio.html.erb +6 -0
- data/app/views/hotwirebits/_auth_block.html.erb +66 -0
- data/app/views/hotwirebits/_autocomplete.html.erb +8 -0
- data/app/views/hotwirebits/_avatar.html.erb +32 -0
- data/app/views/hotwirebits/_background_image.html.erb +12 -0
- data/app/views/hotwirebits/_badge.html.erb +32 -0
- data/app/views/hotwirebits/_banner.html.erb +52 -0
- data/app/views/hotwirebits/_bento_grid.html.erb +10 -0
- data/app/views/hotwirebits/_blog_section.html.erb +38 -0
- data/app/views/hotwirebits/_bottom_navigation.html.erb +24 -0
- data/app/views/hotwirebits/_box.html.erb +6 -0
- data/app/views/hotwirebits/_breadcrumb.html.erb +28 -0
- data/app/views/hotwirebits/_breadcrumb_advanced.html.erb +56 -0
- data/app/views/hotwirebits/_browser_mockup.html.erb +25 -0
- data/app/views/hotwirebits/_burger.html.erb +23 -0
- data/app/views/hotwirebits/_button.html.erb +59 -0
- data/app/views/hotwirebits/_calendar.html.erb +73 -0
- data/app/views/hotwirebits/_card.html.erb +23 -0
- data/app/views/hotwirebits/_card_heading.html.erb +16 -0
- data/app/views/hotwirebits/_carousel.html.erb +53 -0
- data/app/views/hotwirebits/_center.html.erb +6 -0
- data/app/views/hotwirebits/_chart.html.erb +71 -0
- data/app/views/hotwirebits/_chat_bubble.html.erb +30 -0
- data/app/views/hotwirebits/_checkbox.html.erb +25 -0
- data/app/views/hotwirebits/_checkout_form.html.erb +43 -0
- data/app/views/hotwirebits/_chip.html.erb +30 -0
- data/app/views/hotwirebits/_clipboard.html.erb +29 -0
- data/app/views/hotwirebits/_close_button.html.erb +6 -0
- data/app/views/hotwirebits/_code_block.html.erb +20 -0
- data/app/views/hotwirebits/_code_highlight.html.erb +9 -0
- data/app/views/hotwirebits/_code_mockup.html.erb +16 -0
- data/app/views/hotwirebits/_collapsible.html.erb +20 -0
- data/app/views/hotwirebits/_color_input.html.erb +22 -0
- data/app/views/hotwirebits/_color_picker.html.erb +9 -0
- data/app/views/hotwirebits/_color_swatch.html.erb +4 -0
- data/app/views/hotwirebits/_combobox.html.erb +18 -0
- data/app/views/hotwirebits/_command_bar.html.erb +36 -0
- data/app/views/hotwirebits/_compare.html.erb +24 -0
- data/app/views/hotwirebits/_confirm_dialog.html.erb +20 -0
- data/app/views/hotwirebits/_confirm_popup.html.erb +19 -0
- data/app/views/hotwirebits/_contact_section.html.erb +56 -0
- data/app/views/hotwirebits/_container.html.erb +21 -0
- data/app/views/hotwirebits/_context_menu.html.erb +30 -0
- data/app/views/hotwirebits/_cookie_consent.html.erb +26 -0
- data/app/views/hotwirebits/_cookie_settings.html.erb +51 -0
- data/app/views/hotwirebits/_countdown.html.erb +11 -0
- data/app/views/hotwirebits/_cta_section.html.erb +36 -0
- data/app/views/hotwirebits/_dashboard_card.html.erb +35 -0
- data/app/views/hotwirebits/_data_table.html.erb +56 -0
- data/app/views/hotwirebits/_data_view.html.erb +24 -0
- data/app/views/hotwirebits/_date_picker.html.erb +11 -0
- data/app/views/hotwirebits/_date_range_picker.html.erb +31 -0
- data/app/views/hotwirebits/_device_frame.html.erb +43 -0
- data/app/views/hotwirebits/_device_mockup.html.erb +54 -0
- data/app/views/hotwirebits/_dialog.html.erb +58 -0
- data/app/views/hotwirebits/_diff.html.erb +25 -0
- data/app/views/hotwirebits/_diff_view.html.erb +25 -0
- data/app/views/hotwirebits/_digital_signature.html.erb +24 -0
- data/app/views/hotwirebits/_divider.html.erb +22 -0
- data/app/views/hotwirebits/_dock_menu.html.erb +24 -0
- data/app/views/hotwirebits/_drag_drop_list.html.erb +19 -0
- data/app/views/hotwirebits/_drawer.html.erb +41 -0
- data/app/views/hotwirebits/_dropdown.html.erb +33 -0
- data/app/views/hotwirebits/_dropzone.html.erb +19 -0
- data/app/views/hotwirebits/_empty_cart.html.erb +22 -0
- data/app/views/hotwirebits/_empty_state.html.erb +29 -0
- data/app/views/hotwirebits/_error_page.html.erb +17 -0
- data/app/views/hotwirebits/_faq_section.html.erb +29 -0
- data/app/views/hotwirebits/_feature_section.html.erb +30 -0
- data/app/views/hotwirebits/_feedback.html.erb +54 -0
- data/app/views/hotwirebits/_fieldset.html.erb +14 -0
- data/app/views/hotwirebits/_file_browser.html.erb +38 -0
- data/app/views/hotwirebits/_file_input.html.erb +10 -0
- data/app/views/hotwirebits/_file_upload_progress.html.erb +29 -0
- data/app/views/hotwirebits/_flex.html.erb +6 -0
- data/app/views/hotwirebits/_float_label.html.erb +7 -0
- data/app/views/hotwirebits/_fluid.html.erb +6 -0
- data/app/views/hotwirebits/_flyout_menu.html.erb +38 -0
- data/app/views/hotwirebits/_footer.html.erb +46 -0
- data/app/views/hotwirebits/_form_group.html.erb +43 -0
- data/app/views/hotwirebits/_gallery.html.erb +28 -0
- data/app/views/hotwirebits/_grid.html.erb +14 -0
- data/app/views/hotwirebits/_group.html.erb +6 -0
- data/app/views/hotwirebits/_header.html.erb +28 -0
- data/app/views/hotwirebits/_header_section.html.erb +36 -0
- data/app/views/hotwirebits/_hero.html.erb +38 -0
- data/app/views/hotwirebits/_highlight.html.erb +4 -0
- data/app/views/hotwirebits/_hover_3d_card.html.erb +13 -0
- data/app/views/hotwirebits/_hover_card.html.erb +22 -0
- data/app/views/hotwirebits/_hover_gallery.html.erb +26 -0
- data/app/views/hotwirebits/_icon_field.html.erb +12 -0
- data/app/views/hotwirebits/_ifta_label.html.erb +7 -0
- data/app/views/hotwirebits/_image.html.erb +22 -0
- data/app/views/hotwirebits/_image_compare.html.erb +24 -0
- data/app/views/hotwirebits/_image_zoom.html.erb +11 -0
- data/app/views/hotwirebits/_incentive.html.erb +14 -0
- data/app/views/hotwirebits/_indicator.html.erb +9 -0
- data/app/views/hotwirebits/_indicator_badge.html.erb +11 -0
- data/app/views/hotwirebits/_inline_edit.html.erb +53 -0
- data/app/views/hotwirebits/_inplace.html.erb +9 -0
- data/app/views/hotwirebits/_input.html.erb +33 -0
- data/app/views/hotwirebits/_input_group.html.erb +12 -0
- data/app/views/hotwirebits/_input_number.html.erb +17 -0
- data/app/views/hotwirebits/_input_otp.html.erb +9 -0
- data/app/views/hotwirebits/_input_tags.html.erb +15 -0
- data/app/views/hotwirebits/_join.html.erb +6 -0
- data/app/views/hotwirebits/_json_input.html.erb +17 -0
- data/app/views/hotwirebits/_kanban_board.html.erb +42 -0
- data/app/views/hotwirebits/_kbd.html.erb +17 -0
- data/app/views/hotwirebits/_knob.html.erb +19 -0
- data/app/views/hotwirebits/_label.html.erb +8 -0
- data/app/views/hotwirebits/_lightbox.html.erb +33 -0
- data/app/views/hotwirebits/_like_button.html.erb +18 -0
- data/app/views/hotwirebits/_list.html.erb +6 -0
- data/app/views/hotwirebits/_listbox.html.erb +19 -0
- data/app/views/hotwirebits/_loading_overlay.html.erb +15 -0
- data/app/views/hotwirebits/_logo_cloud.html.erb +23 -0
- data/app/views/hotwirebits/_logo_item.html.erb +10 -0
- data/app/views/hotwirebits/_mark.html.erb +4 -0
- data/app/views/hotwirebits/_marquee.html.erb +32 -0
- data/app/views/hotwirebits/_mask.html.erb +6 -0
- data/app/views/hotwirebits/_mega_menu.html.erb +46 -0
- data/app/views/hotwirebits/_menu.html.erb +35 -0
- data/app/views/hotwirebits/_menubar.html.erb +33 -0
- data/app/views/hotwirebits/_meter_group.html.erb +19 -0
- data/app/views/hotwirebits/_month_picker.html.erb +28 -0
- data/app/views/hotwirebits/_month_picker_input.html.erb +23 -0
- data/app/views/hotwirebits/_multiselect.html.erb +21 -0
- data/app/views/hotwirebits/_native_select.html.erb +13 -0
- data/app/views/hotwirebits/_nav_link.html.erb +12 -0
- data/app/views/hotwirebits/_navbar.html.erb +30 -0
- data/app/views/hotwirebits/_navigation_menu.html.erb +46 -0
- data/app/views/hotwirebits/_newsletter_section.html.erb +21 -0
- data/app/views/hotwirebits/_notification.html.erb +31 -0
- data/app/views/hotwirebits/_notification_bell.html.erb +21 -0
- data/app/views/hotwirebits/_number_formatter.html.erb +4 -0
- data/app/views/hotwirebits/_number_input.html.erb +4 -0
- data/app/views/hotwirebits/_order_summary.html.erb +40 -0
- data/app/views/hotwirebits/_org_chart.html.erb +37 -0
- data/app/views/hotwirebits/_page_heading.html.erb +31 -0
- data/app/views/hotwirebits/_pagination.html.erb +46 -0
- data/app/views/hotwirebits/_paginator.html.erb +39 -0
- data/app/views/hotwirebits/_panel.html.erb +17 -0
- data/app/views/hotwirebits/_password_input.html.erb +11 -0
- data/app/views/hotwirebits/_password_strength.html.erb +21 -0
- data/app/views/hotwirebits/_password_toggle.html.erb +18 -0
- data/app/views/hotwirebits/_permission_badge.html.erb +18 -0
- data/app/views/hotwirebits/_phone_input.html.erb +4 -0
- data/app/views/hotwirebits/_phone_mockup.html.erb +15 -0
- data/app/views/hotwirebits/_popover.html.erb +23 -0
- data/app/views/hotwirebits/_portal.html.erb +6 -0
- data/app/views/hotwirebits/_pricing.html.erb +55 -0
- data/app/views/hotwirebits/_pricing_section.html.erb +49 -0
- data/app/views/hotwirebits/_product_list.html.erb +27 -0
- data/app/views/hotwirebits/_product_overview.html.erb +62 -0
- data/app/views/hotwirebits/_product_quickview.html.erb +48 -0
- data/app/views/hotwirebits/_progress.html.erb +13 -0
- data/app/views/hotwirebits/_progress_ring.html.erb +29 -0
- data/app/views/hotwirebits/_promo_section.html.erb +34 -0
- data/app/views/hotwirebits/_qr_code.html.erb +22 -0
- data/app/views/hotwirebits/_radio.html.erb +9 -0
- data/app/views/hotwirebits/_range_slider.html.erb +12 -0
- data/app/views/hotwirebits/_rating.html.erb +14 -0
- data/app/views/hotwirebits/_resizable.html.erb +22 -0
- data/app/views/hotwirebits/_review.html.erb +39 -0
- data/app/views/hotwirebits/_rich_text_editor.html.erb +58 -0
- data/app/views/hotwirebits/_scroll_area.html.erb +6 -0
- data/app/views/hotwirebits/_search.html.erb +59 -0
- data/app/views/hotwirebits/_search_input.html.erb +9 -0
- data/app/views/hotwirebits/_section_heading.html.erb +9 -0
- data/app/views/hotwirebits/_select.html.erb +30 -0
- data/app/views/hotwirebits/_semi_circle_progress.html.erb +12 -0
- data/app/views/hotwirebits/_separator.html.erb +18 -0
- data/app/views/hotwirebits/_sheet.html.erb +45 -0
- data/app/views/hotwirebits/_shopping_cart.html.erb +49 -0
- data/app/views/hotwirebits/_sidebar.html.erb +39 -0
- data/app/views/hotwirebits/_simple_grid.html.erb +6 -0
- data/app/views/hotwirebits/_skeleton.html.erb +20 -0
- data/app/views/hotwirebits/_skeleton_card.html.erb +18 -0
- data/app/views/hotwirebits/_slider.html.erb +17 -0
- data/app/views/hotwirebits/_social_share.html.erb +23 -0
- data/app/views/hotwirebits/_space.html.erb +4 -0
- data/app/views/hotwirebits/_speed_dial.html.erb +27 -0
- data/app/views/hotwirebits/_speed_dial_fab.html.erb +33 -0
- data/app/views/hotwirebits/_spinner.html.erb +22 -0
- data/app/views/hotwirebits/_split_button.html.erb +23 -0
- data/app/views/hotwirebits/_splitter.html.erb +12 -0
- data/app/views/hotwirebits/_spoiler.html.erb +20 -0
- data/app/views/hotwirebits/_stack.html.erb +20 -0
- data/app/views/hotwirebits/_stacked_list.html.erb +23 -0
- data/app/views/hotwirebits/_stat.html.erb +24 -0
- data/app/views/hotwirebits/_stats.html.erb +6 -0
- data/app/views/hotwirebits/_status.html.erb +9 -0
- data/app/views/hotwirebits/_status_bar.html.erb +16 -0
- data/app/views/hotwirebits/_status_dot.html.erb +9 -0
- data/app/views/hotwirebits/_stepper_form.html.erb +58 -0
- data/app/views/hotwirebits/_steps.html.erb +48 -0
- data/app/views/hotwirebits/_swap.html.erb +20 -0
- data/app/views/hotwirebits/_switch.html.erb +19 -0
- data/app/views/hotwirebits/_table.html.erb +8 -0
- data/app/views/hotwirebits/_table_of_contents.html.erb +15 -0
- data/app/views/hotwirebits/_tabs.html.erb +44 -0
- data/app/views/hotwirebits/_tag.html.erb +20 -0
- data/app/views/hotwirebits/_tag_input.html.erb +17 -0
- data/app/views/hotwirebits/_team_section.html.erb +42 -0
- data/app/views/hotwirebits/_terminal.html.erb +24 -0
- data/app/views/hotwirebits/_testimonial.html.erb +32 -0
- data/app/views/hotwirebits/_testimonials_section.html.erb +37 -0
- data/app/views/hotwirebits/_text_gradient.html.erb +6 -0
- data/app/views/hotwirebits/_text_rotate.html.erb +10 -0
- data/app/views/hotwirebits/_textarea.html.erb +17 -0
- data/app/views/hotwirebits/_theme_controller.html.erb +16 -0
- data/app/views/hotwirebits/_theme_icon.html.erb +6 -0
- data/app/views/hotwirebits/_theme_selector.html.erb +30 -0
- data/app/views/hotwirebits/_time_picker.html.erb +32 -0
- data/app/views/hotwirebits/_timeline.html.erb +27 -0
- data/app/views/hotwirebits/_toast.html.erb +52 -0
- data/app/views/hotwirebits/_toggle.html.erb +12 -0
- data/app/views/hotwirebits/_toggle_button.html.erb +7 -0
- data/app/views/hotwirebits/_toggle_button_group.html.erb +11 -0
- data/app/views/hotwirebits/_toolbar.html.erb +21 -0
- data/app/views/hotwirebits/_tooltip.html.erb +26 -0
- data/app/views/hotwirebits/_tree_view.html.erb +18 -0
- data/app/views/hotwirebits/_two_factor.html.erb +29 -0
- data/app/views/hotwirebits/_typing_indicator.html.erb +8 -0
- data/app/views/hotwirebits/_typography.html.erb +7 -0
- data/app/views/hotwirebits/_validator.html.erb +23 -0
- data/app/views/hotwirebits/_version_diff.html.erb +20 -0
- data/app/views/hotwirebits/_video_player.html.erb +14 -0
- data/app/views/hotwirebits/_voice_recorder.html.erb +32 -0
- data/app/views/hotwirebits/_window_mockup.html.erb +23 -0
- data/config/routes.rb +4 -0
- data/lib/generators/hotwirebits/component_generator.rb +48 -0
- data/lib/generators/hotwirebits/install_generator.rb +47 -0
- data/lib/generators/hotwirebits/templates/component.html.erb.tt +4 -0
- data/lib/generators/hotwirebits/templates/component.rb.tt +9 -0
- data/lib/generators/hotwirebits/templates/controller.js.tt +6 -0
- data/lib/generators/hotwirebits/templates/theme.css +2 -0
- data/lib/hotwirebits/engine.rb +25 -0
- data/lib/hotwirebits/version.rb +5 -0
- data/lib/hotwirebits.rb +19 -0
- metadata +965 -0
|
@@ -0,0 +1,738 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module HotwirebitsHelper
|
|
4
|
+
SAFE_SVG_TAG = /\A\s*<svg[\s>]/i
|
|
5
|
+
SAFE_ATTRIBUTES = /\s+(class|id|xmlns|viewBox|fill|stroke|stroke-width|stroke-linecap|stroke-linejoin|d|path|width|height|x|y|cx|cy|r|rx|ry|points|transform|style|opacity|data-|aria-|role)=/i
|
|
6
|
+
|
|
7
|
+
def hw_merge_classes(*classes)
|
|
8
|
+
classes.flatten.compact.reject { |c| c.to_s.strip.empty? }.join(" ")
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def safe_svg(html)
|
|
12
|
+
return "".html_safe if html.blank?
|
|
13
|
+
return html.html_safe if html.html_safe? || html.match?(SAFE_SVG_TAG)
|
|
14
|
+
|
|
15
|
+
ERB::Util.html_escape(html)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# === BUTTON ===
|
|
19
|
+
BUTTON_VARIANTS = {
|
|
20
|
+
default: "bg-hw-primary text-hw-primary-foreground hover:bg-hw-primary/90",
|
|
21
|
+
destructive: "bg-hw-destructive text-hw-destructive-foreground hover:bg-hw-destructive/90",
|
|
22
|
+
outline: "border border-hw-input bg-hw-background hover:bg-hw-accent hover:text-hw-accent-foreground",
|
|
23
|
+
secondary: "bg-hw-secondary text-hw-secondary-foreground hover:bg-hw-secondary/80",
|
|
24
|
+
ghost: "hover:bg-hw-accent hover:text-hw-accent-foreground",
|
|
25
|
+
link: "text-hw-primary underline-offset-4 hover:underline",
|
|
26
|
+
success: "bg-hw-success text-hw-success-foreground hover:bg-hw-success/90",
|
|
27
|
+
warning: "bg-hw-warning text-hw-warning-foreground hover:bg-hw-warning/90",
|
|
28
|
+
info: "bg-hw-info text-hw-info-foreground hover:bg-hw-info/90"
|
|
29
|
+
}.freeze
|
|
30
|
+
|
|
31
|
+
BUTTON_SIZES = {
|
|
32
|
+
xs: "h-7 rounded-md px-2 text-xs",
|
|
33
|
+
sm: "h-8 rounded-md px-3 text-sm",
|
|
34
|
+
md: "h-9 rounded-md px-4 text-sm",
|
|
35
|
+
lg: "h-10 rounded-md px-8",
|
|
36
|
+
xl: "h-11 rounded-md px-10 text-base",
|
|
37
|
+
icon: "h-9 w-9"
|
|
38
|
+
}.freeze
|
|
39
|
+
|
|
40
|
+
def hw_button_classes(variant: :default, size: :md, disabled: false)
|
|
41
|
+
hw_merge_classes(
|
|
42
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium",
|
|
43
|
+
"ring-offset-hw-background transition-colors focus-visible:outline-none focus-visible:ring-2",
|
|
44
|
+
"focus-visible:ring-hw-ring focus-visible:ring-offset-2 cursor-pointer",
|
|
45
|
+
disabled && "disabled:pointer-events-none disabled:opacity-50",
|
|
46
|
+
BUTTON_VARIANTS[variant] || BUTTON_VARIANTS[:default],
|
|
47
|
+
BUTTON_SIZES[size] || BUTTON_SIZES[:md]
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# === BADGE ===
|
|
52
|
+
BADGE_VARIANTS = {
|
|
53
|
+
default: "border-transparent bg-hw-primary text-hw-primary-foreground",
|
|
54
|
+
secondary: "border-transparent bg-hw-secondary text-hw-secondary-foreground",
|
|
55
|
+
destructive: "border-transparent bg-hw-destructive text-hw-destructive-foreground",
|
|
56
|
+
outline: "text-hw-foreground",
|
|
57
|
+
success: "border-transparent bg-hw-success text-hw-success-foreground",
|
|
58
|
+
warning: "border-transparent bg-hw-warning text-hw-warning-foreground",
|
|
59
|
+
info: "border-transparent bg-hw-info text-hw-info-foreground"
|
|
60
|
+
}.freeze
|
|
61
|
+
|
|
62
|
+
BADGE_SIZES = {
|
|
63
|
+
sm: "px-1.5 py-0 text-[10px]",
|
|
64
|
+
md: "px-2.5 py-0.5 text-xs",
|
|
65
|
+
lg: "px-3 py-1 text-sm"
|
|
66
|
+
}.freeze
|
|
67
|
+
|
|
68
|
+
def hw_badge_classes(variant: :default, size: :md)
|
|
69
|
+
hw_merge_classes(
|
|
70
|
+
"inline-flex items-center rounded-full border font-semibold transition-colors",
|
|
71
|
+
BADGE_VARIANTS[variant] || BADGE_VARIANTS[:default],
|
|
72
|
+
BADGE_SIZES[size] || BADGE_SIZES[:md]
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# === AVATAR ===
|
|
77
|
+
AVATAR_SIZES = {
|
|
78
|
+
xs: "h-6 w-6 text-[10px]",
|
|
79
|
+
sm: "h-8 w-8 text-xs",
|
|
80
|
+
md: "h-10 w-10 text-sm",
|
|
81
|
+
lg: "h-12 w-12 text-base",
|
|
82
|
+
xl: "h-16 w-16 text-lg"
|
|
83
|
+
}.freeze
|
|
84
|
+
|
|
85
|
+
AVATAR_STATUS = {
|
|
86
|
+
online: "bg-hw-success",
|
|
87
|
+
offline: "bg-hw-muted-foreground/60",
|
|
88
|
+
busy: "bg-hw-destructive",
|
|
89
|
+
away: "bg-hw-warning"
|
|
90
|
+
}.freeze
|
|
91
|
+
|
|
92
|
+
# === INPUT ===
|
|
93
|
+
INPUT_SIZES = {
|
|
94
|
+
sm: "h-8 px-3 text-xs",
|
|
95
|
+
md: "h-9 px-3 text-sm",
|
|
96
|
+
lg: "h-10 px-4 text-base"
|
|
97
|
+
}.freeze
|
|
98
|
+
|
|
99
|
+
def hw_input_classes(size: :md, error: false, disabled: false)
|
|
100
|
+
hw_merge_classes(
|
|
101
|
+
"flex w-full rounded-md border bg-hw-background text-hw-foreground ring-offset-hw-background",
|
|
102
|
+
"placeholder:text-hw-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
103
|
+
disabled && "disabled:cursor-not-allowed disabled:opacity-50",
|
|
104
|
+
error ? "border-hw-destructive focus-visible:ring-hw-destructive" : "border-hw-input focus-visible:ring-hw-ring",
|
|
105
|
+
INPUT_SIZES[size] || INPUT_SIZES[:md]
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# === CHECKBOX ===
|
|
110
|
+
CHECKBOX_SIZES = {
|
|
111
|
+
sm: "h-3.5 w-3.5",
|
|
112
|
+
md: "h-4 w-4",
|
|
113
|
+
lg: "h-5 w-5"
|
|
114
|
+
}.freeze
|
|
115
|
+
|
|
116
|
+
def hw_checkbox_classes(size: :md, error: false)
|
|
117
|
+
hw_merge_classes(
|
|
118
|
+
"peer shrink-0 rounded-sm border bg-hw-background ring-offset-hw-background",
|
|
119
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2",
|
|
120
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
121
|
+
"checked:bg-hw-primary checked:border-hw-primary",
|
|
122
|
+
error ? "border-hw-destructive" : "border-hw-input",
|
|
123
|
+
CHECKBOX_SIZES[size] || CHECKBOX_SIZES[:md]
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# === SELECT ===
|
|
128
|
+
SELECT_SIZES = {
|
|
129
|
+
sm: "h-8 px-3 text-xs",
|
|
130
|
+
md: "h-9 px-3 text-sm",
|
|
131
|
+
lg: "h-10 px-4 text-base"
|
|
132
|
+
}.freeze
|
|
133
|
+
|
|
134
|
+
def hw_select_classes(size: :md, error: false)
|
|
135
|
+
hw_merge_classes(
|
|
136
|
+
"flex w-full rounded-md border bg-hw-background text-hw-foreground ring-offset-hw-background",
|
|
137
|
+
"placeholder:text-hw-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
138
|
+
"appearance-none pr-8",
|
|
139
|
+
error ? "border-hw-destructive focus-visible:ring-hw-destructive" : "border-hw-input focus-visible:ring-hw-ring",
|
|
140
|
+
SELECT_SIZES[size] || SELECT_SIZES[:md]
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# === TEXTAREA ===
|
|
145
|
+
def hw_textarea_classes(error: false, resize: true)
|
|
146
|
+
hw_merge_classes(
|
|
147
|
+
"flex min-h-[60px] w-full rounded-md border bg-hw-background px-3 py-2 text-sm text-hw-foreground",
|
|
148
|
+
"ring-offset-hw-background placeholder:text-hw-muted-foreground",
|
|
149
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
150
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
151
|
+
!resize && "resize-none",
|
|
152
|
+
error ? "border-hw-destructive focus-visible:ring-hw-destructive" : "border-hw-input focus-visible:ring-hw-ring"
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# === SPINNER ===
|
|
157
|
+
SPINNER_SIZES = {
|
|
158
|
+
xs: "h-3 w-3",
|
|
159
|
+
sm: "h-4 w-4",
|
|
160
|
+
md: "h-6 w-6",
|
|
161
|
+
lg: "h-8 w-8",
|
|
162
|
+
xl: "h-12 w-12"
|
|
163
|
+
}.freeze
|
|
164
|
+
|
|
165
|
+
# === CARD ===
|
|
166
|
+
def hw_card_classes
|
|
167
|
+
"rounded-lg border border-hw-border bg-hw-card text-hw-card-foreground shadow-sm"
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# === ALERT ===
|
|
171
|
+
ALERT_TYPES = {
|
|
172
|
+
info: "border-hw-info/50 text-hw-info bg-hw-info/10",
|
|
173
|
+
success: "border-hw-success/50 text-hw-success bg-hw-success/10",
|
|
174
|
+
warning: "border-hw-warning/50 text-hw-warning bg-hw-warning/10",
|
|
175
|
+
error: "border-hw-destructive/50 text-hw-destructive bg-hw-destructive/10"
|
|
176
|
+
}.freeze
|
|
177
|
+
|
|
178
|
+
def hw_alert_classes(type: :info)
|
|
179
|
+
hw_merge_classes(
|
|
180
|
+
"relative w-full rounded-lg border p-4",
|
|
181
|
+
ALERT_TYPES[type] || ALERT_TYPES[:info]
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# === PROGRESS ===
|
|
186
|
+
PROGRESS_COLORS = {
|
|
187
|
+
default: "bg-hw-primary",
|
|
188
|
+
success: "bg-hw-success",
|
|
189
|
+
warning: "bg-hw-warning",
|
|
190
|
+
destructive: "bg-hw-destructive"
|
|
191
|
+
}.freeze
|
|
192
|
+
|
|
193
|
+
# === SKELETON ===
|
|
194
|
+
def hw_skeleton_classes(shape: :rectangle)
|
|
195
|
+
base = "animate-pulse bg-hw-muted"
|
|
196
|
+
case shape
|
|
197
|
+
when :circle then "#{base} rounded-full"
|
|
198
|
+
when :text then "#{base} rounded h-4 w-full"
|
|
199
|
+
else "#{base} rounded-md"
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# === TABS ===
|
|
204
|
+
def hw_tab_classes(active: false)
|
|
205
|
+
hw_merge_classes(
|
|
206
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium",
|
|
207
|
+
"ring-offset-hw-background transition-all focus-visible:outline-none focus-visible:ring-2",
|
|
208
|
+
"focus-visible:ring-hw-ring focus-visible:ring-offset-2 cursor-pointer",
|
|
209
|
+
active ? "bg-hw-background text-hw-foreground shadow-sm" : "text-hw-muted-foreground hover:text-hw-foreground"
|
|
210
|
+
)
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# === TOGGLE ===
|
|
214
|
+
def hw_toggle_classes(pressed: false)
|
|
215
|
+
hw_merge_classes(
|
|
216
|
+
"inline-flex items-center justify-center rounded-md font-medium ring-offset-hw-background",
|
|
217
|
+
"transition-colors focus-visible:outline-none focus-visible:ring-2",
|
|
218
|
+
"focus-visible:ring-hw-ring focus-visible:ring-offset-2 cursor-pointer",
|
|
219
|
+
"hover:bg-hw-accent hover:text-hw-accent-foreground",
|
|
220
|
+
pressed ? "bg-hw-accent text-hw-accent-foreground" : "bg-transparent"
|
|
221
|
+
)
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# === TOOLTIP ===
|
|
225
|
+
def hw_tooltip_classes
|
|
226
|
+
"z-50 overflow-hidden rounded-md border border-hw-border bg-hw-bg px-3 py-1.5 text-sm text-hw-fg shadow-md"
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# === SEPARATOR ===
|
|
230
|
+
def hw_separator_classes(orientation: :horizontal)
|
|
231
|
+
if orientation == :vertical
|
|
232
|
+
"shrink-0 bg-hw-border h-full w-[1px]"
|
|
233
|
+
else
|
|
234
|
+
"shrink-0 bg-hw-border h-[1px] w-full"
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# === DIALOG ===
|
|
239
|
+
def hw_dialog_classes(size: :md)
|
|
240
|
+
sizes = {sm: "max-w-sm", md: "max-w-lg", lg: "max-w-2xl", xl: "max-w-4xl", full: "max-w-[calc(100vw-2rem)]"}
|
|
241
|
+
hw_merge_classes(
|
|
242
|
+
"relative w-full rounded-lg border border-hw-border bg-hw-bg p-6 shadow-lg",
|
|
243
|
+
sizes[size] || sizes[:md]
|
|
244
|
+
)
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# === DROPDOWN ===
|
|
248
|
+
def hw_dropdown_classes
|
|
249
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-hw-border bg-hw-bg p-1 shadow-md"
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# === PAGINATION ===
|
|
253
|
+
def hw_pagination_item_classes(active: false)
|
|
254
|
+
hw_merge_classes(
|
|
255
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium",
|
|
256
|
+
"ring-offset-hw-background transition-colors cursor-pointer",
|
|
257
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2",
|
|
258
|
+
active ? "bg-hw-primary text-hw-primary-foreground" : "border border-hw-input bg-hw-background hover:bg-hw-accent"
|
|
259
|
+
)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# === TOAST ===
|
|
263
|
+
TOAST_TYPES = {
|
|
264
|
+
success: "border-hw-success bg-hw-success/10",
|
|
265
|
+
error: "border-hw-destructive bg-hw-destructive/10",
|
|
266
|
+
warning: "border-hw-warning bg-hw-warning/10",
|
|
267
|
+
info: "border-hw-info bg-hw-info/10"
|
|
268
|
+
}.freeze
|
|
269
|
+
|
|
270
|
+
def hw_toast_classes(type: :info)
|
|
271
|
+
hw_merge_classes(
|
|
272
|
+
"pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-4 shadow-lg",
|
|
273
|
+
TOAST_TYPES[type] || TOAST_TYPES[:info]
|
|
274
|
+
)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# === RATING ===
|
|
278
|
+
RATING_SIZES = {sm: "h-4 w-4", md: "h-5 w-5", lg: "h-6 w-6", xl: "h-8 w-8"}.freeze
|
|
279
|
+
|
|
280
|
+
# === SLIDER ===
|
|
281
|
+
def hw_slider_classes
|
|
282
|
+
"w-full h-2 bg-hw-input rounded-lg appearance-none cursor-pointer accent-hw-primary"
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# === FORM GROUP ===
|
|
286
|
+
def hw_form_group_classes(horizontal: false)
|
|
287
|
+
horizontal ? "grid grid-cols-4 items-start gap-4" : "space-y-2"
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# === CHIP ===
|
|
291
|
+
def hw_chip_classes(size: :md)
|
|
292
|
+
sizes = {sm: "h-6 text-xs px-2 gap-1", md: "h-8 text-sm px-2.5 gap-1.5", lg: "h-10 text-sm px-3 gap-2"}
|
|
293
|
+
hw_merge_classes(
|
|
294
|
+
"inline-flex items-center rounded-full border border-hw-border bg-hw-background text-hw-foreground font-medium",
|
|
295
|
+
sizes[size] || sizes[:md]
|
|
296
|
+
)
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# === TAG ===
|
|
300
|
+
TAG_COLORS = {
|
|
301
|
+
default: "bg-hw-muted text-hw-muted-foreground",
|
|
302
|
+
red: "bg-hw-destructive/10 text-hw-destructive dark:bg-hw-destructive/20 dark:text-hw-destructive-foreground",
|
|
303
|
+
orange: "bg-hw-warning/10 text-hw-warning dark:bg-hw-warning/20 dark:text-hw-warning-foreground",
|
|
304
|
+
green: "bg-hw-success/10 text-hw-success dark:bg-hw-success/20 dark:text-hw-success-foreground",
|
|
305
|
+
blue: "bg-hw-info/10 text-hw-info dark:bg-hw-info/20 dark:text-hw-info-foreground",
|
|
306
|
+
purple: "bg-hw-primary/10 text-hw-primary dark:bg-hw-primary/20 dark:text-hw-primary-foreground"
|
|
307
|
+
}.freeze
|
|
308
|
+
|
|
309
|
+
# === INDICATOR ===
|
|
310
|
+
INDICATOR_POSITIONS = {
|
|
311
|
+
top_left: "-top-1 -left-1",
|
|
312
|
+
top_right: "-top-1 -right-1",
|
|
313
|
+
bottom_left: "-bottom-1 -left-1",
|
|
314
|
+
bottom_right: "-bottom-1 -right-1"
|
|
315
|
+
}.freeze
|
|
316
|
+
|
|
317
|
+
# === STATUS ===
|
|
318
|
+
STATUS_COLORS = AVATAR_STATUS
|
|
319
|
+
|
|
320
|
+
# === KBD ===
|
|
321
|
+
KBD_SIZES = {sm: "px-1 py-0.5 text-[10px]", md: "px-1.5 py-0.5 text-xs", lg: "px-2 py-1 text-sm"}.freeze
|
|
322
|
+
|
|
323
|
+
# === ACCORDION ===
|
|
324
|
+
ACCORDION_VARIANTS = {
|
|
325
|
+
default: "",
|
|
326
|
+
bordered: "border border-hw-border rounded-lg overflow-hidden",
|
|
327
|
+
card: "border border-hw-border rounded-lg bg-hw-card overflow-hidden"
|
|
328
|
+
}.freeze
|
|
329
|
+
|
|
330
|
+
# === HERO ===
|
|
331
|
+
def hw_hero_classes(variant: :centered)
|
|
332
|
+
case variant
|
|
333
|
+
when :split then "grid grid-cols-1 lg:grid-cols-2 gap-8 items-center"
|
|
334
|
+
when :with_image then "flex flex-col items-center text-center gap-6"
|
|
335
|
+
else "flex flex-col items-center text-center gap-4"
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# === PRICING ===
|
|
340
|
+
def hw_pricing_card_classes(highlighted: false)
|
|
341
|
+
hw_merge_classes(
|
|
342
|
+
"rounded-lg border p-6 flex flex-col",
|
|
343
|
+
highlighted ? "border-hw-primary bg-hw-primary/5 shadow-lg scale-105" : "border-hw-border bg-hw-card"
|
|
344
|
+
)
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# === FILE INPUT ===
|
|
348
|
+
def hw_file_input_classes
|
|
349
|
+
"flex h-9 items-center justify-center rounded-md border border-dashed border-hw-input bg-hw-background px-3 text-sm text-hw-muted-foreground hover:bg-hw-accent cursor-pointer"
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# === CONTAINER ===
|
|
353
|
+
CONTAINER_SIZES = {
|
|
354
|
+
sm: "max-w-screen-sm",
|
|
355
|
+
md: "max-w-screen-md",
|
|
356
|
+
lg: "max-w-screen-lg",
|
|
357
|
+
xl: "max-w-screen-xl",
|
|
358
|
+
"2xl": "max-w-screen-2xl",
|
|
359
|
+
full: "max-w-full"
|
|
360
|
+
}.freeze
|
|
361
|
+
|
|
362
|
+
# === GRID ===
|
|
363
|
+
GRID_COLS = {
|
|
364
|
+
1 => "grid-cols-1", 2 => "grid-cols-2", 3 => "grid-cols-3",
|
|
365
|
+
4 => "grid-cols-4", 5 => "grid-cols-5", 6 => "grid-cols-6",
|
|
366
|
+
12 => "grid-cols-12"
|
|
367
|
+
}.freeze
|
|
368
|
+
|
|
369
|
+
# === FLEX ===
|
|
370
|
+
FLEX_DIRECTIONS = {row: "flex-row", column: "flex-col", "row-reverse": "flex-row-reverse",
|
|
371
|
+
"column-reverse": "flex-col-reverse"}.freeze
|
|
372
|
+
|
|
373
|
+
# === STACK ===
|
|
374
|
+
def hw_stack_classes(gap: 4, align: nil)
|
|
375
|
+
hw_merge_classes(
|
|
376
|
+
"flex flex-col",
|
|
377
|
+
"gap-#{gap}",
|
|
378
|
+
align && "items-#{align}"
|
|
379
|
+
)
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# === GROUP ===
|
|
383
|
+
def hw_group_classes(gap: 2, wrap: true)
|
|
384
|
+
hw_merge_classes("flex items-center", "gap-#{gap}", wrap && "flex-wrap")
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# === ASPECT RATIO ===
|
|
388
|
+
ASPECT_RATIOS = {"16_9": "aspect-video", "4_3": "aspect-[4/3]", "1_1": "aspect-square",
|
|
389
|
+
"21_9": "aspect-[21/9]"}.freeze
|
|
390
|
+
|
|
391
|
+
# === SCROLL AREA ===
|
|
392
|
+
def hw_scroll_area_classes(height: "200px")
|
|
393
|
+
"overflow-auto scrollbar-thin scrollbar-thumb-hw-border"
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
# ============================================================================
|
|
397
|
+
# STANDALONE PARTIAL COMPATIBILITY
|
|
398
|
+
# These aliases and methods make standalone ERB partials work without
|
|
399
|
+
# ViewComponent instance methods.
|
|
400
|
+
# ============================================================================
|
|
401
|
+
|
|
402
|
+
# Core utility alias
|
|
403
|
+
alias_method :merge_classes, :hw_merge_classes
|
|
404
|
+
|
|
405
|
+
# CSS class method aliases (without hw_ prefix)
|
|
406
|
+
alias_method :button_classes, :hw_button_classes
|
|
407
|
+
alias_method :badge_classes, :hw_badge_classes
|
|
408
|
+
alias_method :input_classes, :hw_input_classes
|
|
409
|
+
alias_method :checkbox_classes, :hw_checkbox_classes
|
|
410
|
+
alias_method :select_classes, :hw_select_classes
|
|
411
|
+
alias_method :textarea_classes, :hw_textarea_classes
|
|
412
|
+
alias_method :card_classes, :hw_card_classes
|
|
413
|
+
alias_method :alert_classes, :hw_alert_classes
|
|
414
|
+
alias_method :skeleton_classes, :hw_skeleton_classes
|
|
415
|
+
alias_method :tab_classes, :hw_tab_classes
|
|
416
|
+
alias_method :toggle_classes, :hw_toggle_classes
|
|
417
|
+
alias_method :tooltip_classes, :hw_tooltip_classes
|
|
418
|
+
alias_method :separator_classes, :hw_separator_classes
|
|
419
|
+
alias_method :dialog_classes, :hw_dialog_classes
|
|
420
|
+
alias_method :dropdown_classes, :hw_dropdown_classes
|
|
421
|
+
alias_method :pagination_item_classes, :hw_pagination_item_classes
|
|
422
|
+
alias_method :toast_classes, :hw_toast_classes
|
|
423
|
+
alias_method :slider_classes, :hw_slider_classes
|
|
424
|
+
alias_method :form_group_classes, :hw_form_group_classes
|
|
425
|
+
alias_method :chip_classes, :hw_chip_classes
|
|
426
|
+
alias_method :hero_classes, :hw_hero_classes
|
|
427
|
+
alias_method :pricing_card_classes, :hw_pricing_card_classes
|
|
428
|
+
alias_method :file_input_classes, :hw_file_input_classes
|
|
429
|
+
alias_method :stack_classes, :hw_stack_classes
|
|
430
|
+
alias_method :group_classes, :hw_group_classes
|
|
431
|
+
alias_method :scroll_area_classes, :hw_scroll_area_classes
|
|
432
|
+
|
|
433
|
+
# --- Missing CSS class methods called by partials ---
|
|
434
|
+
|
|
435
|
+
def container_classes(size: :md)
|
|
436
|
+
hw_merge_classes("mx-auto w-full px-4", CONTAINER_SIZES[size] || CONTAINER_SIZES[:md])
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
def overlay_classes
|
|
440
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
def panel_classes(index = nil)
|
|
444
|
+
"rounded-lg border border-hw-border bg-hw-card overflow-hidden"
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
def nav_classes
|
|
448
|
+
"flex items-center justify-between w-full"
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
def tag_classes(color: :default)
|
|
452
|
+
hw_merge_classes(
|
|
453
|
+
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold",
|
|
454
|
+
TAG_COLORS[color] || TAG_COLORS[:default]
|
|
455
|
+
)
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
def wrapper_classes
|
|
459
|
+
"relative"
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
def icon_classes
|
|
463
|
+
"h-4 w-4"
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
def label_classes
|
|
467
|
+
"text-sm font-medium leading-none"
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
def list_classes
|
|
471
|
+
"list-none p-0 m-0 space-y-1"
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
def link_classes
|
|
475
|
+
"text-hw-primary underline-offset-4 hover:underline"
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
def section_classes
|
|
479
|
+
"py-12"
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
def box_classes
|
|
483
|
+
"rounded-lg border border-hw-border bg-hw-card p-4"
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
def center_classes
|
|
487
|
+
"flex items-center justify-center"
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
def flex_classes(direction: :row, gap: nil)
|
|
491
|
+
hw_merge_classes("flex", FLEX_DIRECTIONS[direction] || "flex-row", gap && "gap-#{gap}")
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
def grid_classes(columns: 3, gap: 4)
|
|
495
|
+
hw_merge_classes("grid", GRID_COLS[columns] || "grid-cols-#{columns}", "gap-#{gap}")
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
def space_classes(size: 4)
|
|
499
|
+
"space-y-#{size}"
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
def fluid_classes
|
|
503
|
+
"w-full"
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
def divider_classes(orientation: :horizontal)
|
|
507
|
+
hw_separator_classes(orientation: orientation)
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
def join_classes
|
|
511
|
+
"inline-flex"
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
def mask_classes
|
|
515
|
+
"overflow-hidden"
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
def scroll_classes
|
|
519
|
+
"overflow-auto"
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
def mark_classes
|
|
523
|
+
"bg-yellow-200 dark:bg-yellow-800 px-0.5 rounded"
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
def kbd_classes(size: :md)
|
|
527
|
+
hw_merge_classes(
|
|
528
|
+
"inline-flex items-center rounded border border-hw-border bg-hw-muted font-mono font-medium text-hw-muted-foreground",
|
|
529
|
+
KBD_SIZES[size] || KBD_SIZES[:md]
|
|
530
|
+
)
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
def sidebar_classes
|
|
534
|
+
"flex flex-col h-full border-r border-hw-border bg-hw-background"
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
def menu_classes
|
|
538
|
+
"flex flex-col gap-0.5"
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
def trigger_classes
|
|
542
|
+
"inline-flex items-center justify-center"
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
def bar_classes
|
|
546
|
+
"h-2 bg-hw-primary rounded-full transition-transform origin-left"
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
def dot_classes(active: false)
|
|
550
|
+
hw_merge_classes("h-2 w-2 rounded-full transition-colors", active ? "bg-hw-primary" : "bg-hw-muted-foreground/40")
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
def header_classes
|
|
554
|
+
"flex items-center justify-between"
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
def inner_classes
|
|
558
|
+
""
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
def figure_classes
|
|
562
|
+
"overflow-hidden rounded-lg"
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
def frame_classes
|
|
566
|
+
"rounded-lg border border-hw-border overflow-hidden"
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
def option_classes
|
|
570
|
+
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-hw-accent hover:text-hw-accent-foreground"
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
def popup_classes
|
|
574
|
+
"z-50 rounded-md border border-hw-border bg-hw-popover shadow-md"
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
def position_classes
|
|
578
|
+
"relative"
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
def bubble_classes
|
|
582
|
+
"rounded-lg bg-hw-card p-4 shadow-sm"
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
def effect_classes
|
|
586
|
+
""
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
def track_classes
|
|
590
|
+
"h-2 bg-hw-input rounded-full"
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
def connector_classes
|
|
594
|
+
"flex-1 h-px bg-hw-border"
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
def step_circle_classes(active: false, completed: false)
|
|
598
|
+
hw_merge_classes(
|
|
599
|
+
"flex h-8 w-8 items-center justify-center rounded-full border-2 text-sm font-medium",
|
|
600
|
+
completed ? "border-hw-primary bg-hw-primary text-hw-primary-foreground" : "",
|
|
601
|
+
active ? "border-hw-primary text-hw-primary" : "border-hw-border text-hw-muted-foreground"
|
|
602
|
+
)
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
def notification_classes
|
|
606
|
+
"rounded-lg border border-hw-border bg-hw-card p-4 shadow-lg"
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
def fieldset_classes
|
|
610
|
+
"space-y-4 rounded-lg border border-hw-border p-4"
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
def action_classes
|
|
614
|
+
"inline-flex items-center justify-center"
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
def actions_classes
|
|
618
|
+
"flex flex-col gap-2"
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
def fab_classes
|
|
622
|
+
"inline-flex h-14 w-14 items-center justify-center rounded-full bg-hw-primary text-hw-primary-foreground shadow-lg"
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
def speed_dial_classes
|
|
626
|
+
"fixed bottom-6 right-6 z-50"
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
def confirm_classes
|
|
630
|
+
hw_button_classes(variant: :primary)
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
def cancel_classes
|
|
634
|
+
hw_button_classes(variant: :outline)
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
def confirm_button_classes
|
|
638
|
+
hw_button_classes(variant: :primary)
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
def input_number_classes
|
|
642
|
+
hw_input_classes
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# --- Type/config methods for feedback components ---
|
|
646
|
+
|
|
647
|
+
ALERT_CONFIG = {
|
|
648
|
+
info: {icon: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},
|
|
649
|
+
success: {icon: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},
|
|
650
|
+
warning: {icon: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},
|
|
651
|
+
error: {icon: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}
|
|
652
|
+
}.freeze
|
|
653
|
+
|
|
654
|
+
def type_config(type = :info)
|
|
655
|
+
ALERT_CONFIG[type] || ALERT_CONFIG[:info]
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
BANNER_CONFIG = {
|
|
659
|
+
info: {icon: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},
|
|
660
|
+
success: {icon: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},
|
|
661
|
+
warning: {icon: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},
|
|
662
|
+
error: {icon: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}
|
|
663
|
+
}.freeze
|
|
664
|
+
|
|
665
|
+
def banner_classes(type: :info)
|
|
666
|
+
hw_merge_classes(
|
|
667
|
+
"relative w-full rounded-lg border p-4",
|
|
668
|
+
ALERT_TYPES[type] || ALERT_TYPES[:info]
|
|
669
|
+
)
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
def banner_config(type = :info)
|
|
673
|
+
BANNER_CONFIG[type] || BANNER_CONFIG[:info]
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
def ratio_classes(ratio: "16/9")
|
|
677
|
+
case ratio
|
|
678
|
+
when "16/9" then "aspect-video"
|
|
679
|
+
when "4/3" then "aspect-[4/3]"
|
|
680
|
+
when "1/1" then "aspect-square"
|
|
681
|
+
else "aspect-[#{ratio}]"
|
|
682
|
+
end
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
def container_styles
|
|
686
|
+
""
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
# --- ViewComponent slot compatibility (safe stubs) ---
|
|
690
|
+
|
|
691
|
+
def header?
|
|
692
|
+
false
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
def header
|
|
696
|
+
nil
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
def footer?
|
|
700
|
+
false
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
def footer
|
|
704
|
+
nil
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
def slides?
|
|
708
|
+
false
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
def confirm_action?
|
|
712
|
+
false
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
def confirm_action
|
|
716
|
+
nil
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
def cancel_action?
|
|
720
|
+
false
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
def cancel_action
|
|
724
|
+
nil
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
def all_slides
|
|
728
|
+
[]
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
# --- Constants referenced by partials ---
|
|
732
|
+
|
|
733
|
+
INPUT_NUMBER_BUTTON_SIZES = {
|
|
734
|
+
sm: "h-7 w-7",
|
|
735
|
+
md: "h-9 w-9",
|
|
736
|
+
lg: "h-10 w-10"
|
|
737
|
+
}.freeze
|
|
738
|
+
end
|