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,36 @@
|
|
|
1
|
+
<%# CommandBar component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/command_bar', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="rounded-xl border border-hw-border bg-hw-popover shadow-lg overflow-hidden"
|
|
5
|
+
data-controller="hw-command-bar"
|
|
6
|
+
<%= tag.attributes(local_assigns) %>>
|
|
7
|
+
<div class="flex items-center gap-3 px-4 border-b border-hw-border">
|
|
8
|
+
<svg class="h-4 w-4 text-hw-muted-foreground shrink-0" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
9
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
|
|
10
|
+
</svg>
|
|
11
|
+
<input type="text"
|
|
12
|
+
placeholder="<%= placeholder %>"
|
|
13
|
+
class="flex-1 h-11 bg-transparent text-sm text-hw-foreground placeholder:text-hw-muted-foreground focus:outline-none"
|
|
14
|
+
data-hw-command-bar-target="input"
|
|
15
|
+
data-action="input->hw-command-bar#filter keydown->hw-command-bar#keydown">
|
|
16
|
+
</div>
|
|
17
|
+
<div class="max-h-[300px] overflow-y-auto p-2" data-hw-command-bar-target="list">
|
|
18
|
+
<% commands.each_with_index do |cmd, idx| %>
|
|
19
|
+
<button type="button"
|
|
20
|
+
class="flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm text-hw-foreground hover:bg-hw-accent hover:text-hw-accent-foreground transition-colors cursor-pointer <%= idx == 0 ? 'bg-hw-accent' : '' %>"
|
|
21
|
+
data-hw-command-bar-target="item"
|
|
22
|
+
data-action="click->hw-command-bar#select"
|
|
23
|
+
data-command="<%= cmd[:action] %>">
|
|
24
|
+
<% if cmd[:icon] %>
|
|
25
|
+
<span class="h-4 w-4 shrink-0 text-hw-muted-foreground"><%= safe_svg(cmd[:icon]) %></span>
|
|
26
|
+
<% end %>
|
|
27
|
+
<span class="flex-1 text-left"><%= cmd[:label] %></span>
|
|
28
|
+
<% if cmd[:shortcut] %>
|
|
29
|
+
<kbd class="pointer-events-none h-5 select-none items-center gap-0.5 rounded border border-hw-border bg-hw-muted px-1.5 font-mono text-[10px] font-medium text-hw-muted-foreground flex">
|
|
30
|
+
<%= cmd[:shortcut] %>
|
|
31
|
+
</kbd>
|
|
32
|
+
<% end %>
|
|
33
|
+
</button>
|
|
34
|
+
<% end %>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%# Compare component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/compare', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>" data-controller="hw-compare" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="relative w-full" style="padding-bottom: 56.25%;">
|
|
6
|
+
<img src="<%= after_src %>" alt="<%= after_label %>" class="absolute inset-0 h-full w-full object-cover">
|
|
7
|
+
<div class="absolute inset-0 overflow-hidden" data-hw-compare-target="before" style="width: 50%;">
|
|
8
|
+
<img src="<%= before_src %>" alt="<%= before_label %>" class="absolute inset-0 h-full w-full object-cover" style="min-width: 100vw; max-width: none;">
|
|
9
|
+
</div>
|
|
10
|
+
<input type="range" min="0" max="100" value="50"
|
|
11
|
+
class="absolute inset-0 z-10 m-0 h-full w-full cursor-ew-resize opacity-0"
|
|
12
|
+
data-action="input->hw-compare#slide">
|
|
13
|
+
<div class="absolute top-1/2 z-20 h-full w-0.5 -translate-y-1/2 bg-white shadow-lg"
|
|
14
|
+
data-hw-compare-target="handle" style="left: 50%;">
|
|
15
|
+
<div class="absolute top-1/2 left-1/2 flex h-10 w-10 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-white shadow-lg">
|
|
16
|
+
<svg class="h-5 w-5 text-hw-foreground" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
17
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"/>
|
|
18
|
+
</svg>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<span class="absolute bottom-3 left-3 z-20 rounded bg-black/60 px-2 py-1 text-xs font-medium text-hw-primary-foreground"><%= before_label %></span>
|
|
22
|
+
<span class="absolute bottom-3 right-3 z-20 rounded bg-black/60 px-2 py-1 text-xs font-medium text-hw-primary-foreground"><%= after_label %></span>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<%# ConfirmDialog component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/confirm_dialog', ... %>
|
|
3
|
+
|
|
4
|
+
<div data-controller="hw-confirm-dialog" data-hw-confirm-dialog-open-value="<%= open %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="fixed inset-0 z-50 bg-black/80 hidden" data-hw-confirm-dialog-target="overlay" data-action="click->hw-confirm-dialog#cancel"></div>
|
|
6
|
+
<div class="fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-hw-border bg-hw-background p-6 shadow-lg rounded-lg hidden" data-hw-confirm-dialog-target="panel" role="alertdialog">
|
|
7
|
+
<div class="flex flex-col space-y-1.5">
|
|
8
|
+
<h2 class="text-lg font-semibold leading-none tracking-tight"><%= title %></h2>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="text-sm text-hw-muted-foreground"><%= message %></div>
|
|
11
|
+
<div class="flex justify-end gap-2">
|
|
12
|
+
<button type="button" class="inline-flex h-9 items-center justify-center rounded-md border border-hw-input bg-hw-background px-4 text-sm font-medium ring-offset-hw-background transition-colors hover:bg-hw-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2" data-action="click->hw-confirm-dialog#cancel">
|
|
13
|
+
<%= cancel_label %>
|
|
14
|
+
</button>
|
|
15
|
+
<button type="button" class="<%= confirm_button_classes %>" data-action="click->hw-confirm-dialog#confirm">
|
|
16
|
+
<%= confirm_label %>
|
|
17
|
+
</button>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<%# ConfirmPopup component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/confirm_popup', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="relative inline-block" data-controller="hw-confirm-popup" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div data-action="click->hw-confirm-popup#toggle" data-hw-confirm-popup-target="trigger" class="inline-block">
|
|
6
|
+
<%= content %>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="<%= popup_classes %>" data-hw-confirm-popup-target="panel">
|
|
9
|
+
<p class="mb-3 text-sm"><%= message %></p>
|
|
10
|
+
<div class="flex justify-end gap-2">
|
|
11
|
+
<button type="button" class="inline-flex h-7 items-center justify-center rounded-md border border-hw-input bg-hw-background px-3 text-xs font-medium ring-offset-hw-background transition-colors hover:bg-hw-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2" data-action="click->hw-confirm-popup#cancel">
|
|
12
|
+
<%= cancel_label %>
|
|
13
|
+
</button>
|
|
14
|
+
<button type="button" class="inline-flex h-7 items-center justify-center rounded-md bg-hw-primary px-3 text-xs font-medium text-hw-primary-foreground ring-offset-hw-background transition-colors hover:bg-hw-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2" data-action="click->hw-confirm-popup#confirm">
|
|
15
|
+
<%= confirm_label %>
|
|
16
|
+
</button>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<%# ContactSection component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/contact_section', ... %>
|
|
3
|
+
|
|
4
|
+
<section class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="mx-auto max-w-2xl">
|
|
6
|
+
<div class="text-center mb-10">
|
|
7
|
+
<h2 class="text-2xl md:text-3xl font-bold text-hw-foreground"><%= title %></h2>
|
|
8
|
+
<% if description %>
|
|
9
|
+
<p class="mt-3 text-hw-muted-foreground"><%= description %></p>
|
|
10
|
+
<% end %>
|
|
11
|
+
</div>
|
|
12
|
+
<form class="space-y-6">
|
|
13
|
+
<% fields.each do |field| %>
|
|
14
|
+
<div>
|
|
15
|
+
<label for="<%= field[:name] %>" class="block text-sm font-medium text-hw-foreground mb-1.5">
|
|
16
|
+
<%= field[:label] %>
|
|
17
|
+
<% if field[:required] %>
|
|
18
|
+
<span class="text-hw-destructive">*</span>
|
|
19
|
+
<% end %>
|
|
20
|
+
</label>
|
|
21
|
+
<% case field[:type] %>
|
|
22
|
+
<% when 'textarea' %>
|
|
23
|
+
<textarea
|
|
24
|
+
id="<%= field[:name] %>"
|
|
25
|
+
name="<%= field[:name] %>"
|
|
26
|
+
rows="<%= field[:rows] || 4 %>"
|
|
27
|
+
placeholder="<%= field[:placeholder] %>"
|
|
28
|
+
<%= 'required' if field[:required] %>
|
|
29
|
+
class="w-full rounded-lg border border-hw-border bg-hw-background px-3 py-2 text-sm text-hw-foreground placeholder:text-hw-muted-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring"></textarea>
|
|
30
|
+
<% when 'select' %>
|
|
31
|
+
<select
|
|
32
|
+
id="<%= field[:name] %>"
|
|
33
|
+
name="<%= field[:name] %>"
|
|
34
|
+
<%= 'required' if field[:required] %>
|
|
35
|
+
class="w-full rounded-lg border border-hw-border bg-hw-background px-3 py-2 text-sm text-hw-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring">
|
|
36
|
+
<% (field[:options] || []).each do |opt| %>
|
|
37
|
+
<option value="<%= opt[:value] %>"><%= opt[:label] %></option>
|
|
38
|
+
<% end %>
|
|
39
|
+
</select>
|
|
40
|
+
<% else %>
|
|
41
|
+
<input
|
|
42
|
+
type="<%= field[:type] || 'text' %>"
|
|
43
|
+
id="<%= field[:name] %>"
|
|
44
|
+
name="<%= field[:name] %>"
|
|
45
|
+
placeholder="<%= field[:placeholder] %>"
|
|
46
|
+
<%= 'required' if field[:required] %>
|
|
47
|
+
class="w-full rounded-lg border border-hw-border bg-hw-background px-3 py-2 text-sm text-hw-foreground placeholder:text-hw-muted-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring">
|
|
48
|
+
<% end %>
|
|
49
|
+
</div>
|
|
50
|
+
<% end %>
|
|
51
|
+
<button type="submit" class="w-full inline-flex items-center justify-center rounded-lg bg-hw-primary text-hw-primary-foreground h-11 px-6 text-sm font-medium shadow-sm hover:bg-hw-primary/90 transition-colors">
|
|
52
|
+
<%= submit_label %>
|
|
53
|
+
</button>
|
|
54
|
+
</form>
|
|
55
|
+
</div>
|
|
56
|
+
</section>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<%# Container component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/container', size: :lg %>
|
|
3
|
+
|
|
4
|
+
<%
|
|
5
|
+
size = local_assigns.fetch(:size, :lg)
|
|
6
|
+
extra_class = local_assigns[:class]
|
|
7
|
+
|
|
8
|
+
size_cls = case size
|
|
9
|
+
when :sm then "max-w-screen-sm"
|
|
10
|
+
when :md then "max-w-screen-md"
|
|
11
|
+
when :xl then "max-w-screen-xl"
|
|
12
|
+
when :"2xl" then "max-w-screen-2xl"
|
|
13
|
+
when :full then "max-w-full"
|
|
14
|
+
else "max-w-screen-lg"
|
|
15
|
+
end
|
|
16
|
+
container_cls = ["mx-auto w-full px-4 #{size_cls}", extra_class].compact.join(" ")
|
|
17
|
+
%>
|
|
18
|
+
|
|
19
|
+
<div class="<%= container_cls %>">
|
|
20
|
+
<% if block_given? %><%= yield %><% end %>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<%# ContextMenu component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/context_menu', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>" data-controller="hw-context-menu" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<%= content %>
|
|
6
|
+
<div class="fixed z-50 hidden min-w-[10rem] rounded-md border border-hw-border bg-hw-popover p-1 text-hw-popover-foreground shadow-md"
|
|
7
|
+
data-hw-context-menu-target="menu"
|
|
8
|
+
data-action="click->hw-context-menu#close contextmenuwindow->hw-context-menu#close">
|
|
9
|
+
<% items.each do |item| %>
|
|
10
|
+
<% if item[:separator] %>
|
|
11
|
+
<div class="-mx-1 my-1 h-px bg-hw-border"></div>
|
|
12
|
+
<% else %>
|
|
13
|
+
<a href="<%= item[:href] || '#' %>"
|
|
14
|
+
class="<%= merge_classes(
|
|
15
|
+
'relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors',
|
|
16
|
+
item[:destructive] ? 'text-hw-destructive hover:bg-hw-destructive/10' : 'hover:bg-hw-accent hover:text-hw-accent-foreground'
|
|
17
|
+
) %>"
|
|
18
|
+
data-action="click->hw-context-menu#close">
|
|
19
|
+
<% if item[:icon] %>
|
|
20
|
+
<span class="h-4 w-4 shrink-0"><%= safe_svg(item[:icon]) %></span>
|
|
21
|
+
<% end %>
|
|
22
|
+
<span class="flex-1"><%= item[:label] %></span>
|
|
23
|
+
<% if item[:shortcut] %>
|
|
24
|
+
<span class="ml-auto text-xs tracking-widest text-hw-muted-foreground"><%= item[:shortcut] %></span>
|
|
25
|
+
<% end %>
|
|
26
|
+
</a>
|
|
27
|
+
<% end %>
|
|
28
|
+
<% end %>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<%# CookieConsent component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/cookie_consent', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>"
|
|
5
|
+
data-controller="hw-cookie-consent"
|
|
6
|
+
<%= tag.attributes(local_assigns) %>>
|
|
7
|
+
<div class="mx-auto max-w-4xl rounded-xl border border-hw-border bg-hw-card p-4 shadow-lg">
|
|
8
|
+
<div class="flex flex-col sm:flex-row items-start sm:items-center gap-4">
|
|
9
|
+
<div class="flex-1">
|
|
10
|
+
<p class="text-sm text-hw-foreground"><%= message %></p>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="flex items-center gap-2 shrink-0">
|
|
13
|
+
<button type="button"
|
|
14
|
+
class="rounded-lg border border-hw-border bg-hw-background h-9 px-4 text-sm font-medium text-hw-foreground hover:bg-hw-muted transition-colors"
|
|
15
|
+
data-action="click->hw-cookie-consent#settings">
|
|
16
|
+
<%= settings_label %>
|
|
17
|
+
</button>
|
|
18
|
+
<button type="button"
|
|
19
|
+
class="rounded-lg bg-hw-primary text-hw-primary-foreground h-9 px-4 text-sm font-medium hover:bg-hw-primary/90 transition-colors"
|
|
20
|
+
data-action="click->hw-cookie-consent#accept">
|
|
21
|
+
<%= accept_label %>
|
|
22
|
+
</button>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<%# CookieSettings component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/cookie_settings', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="rounded-xl border border-hw-border bg-hw-card p-6 max-w-lg"
|
|
5
|
+
data-controller="hw-cookie-settings"
|
|
6
|
+
<%= tag.attributes(local_assigns) %>>
|
|
7
|
+
<div class="flex items-center justify-between mb-6">
|
|
8
|
+
<h3 class="text-lg font-semibold text-hw-foreground">Cookie Preferences</h3>
|
|
9
|
+
<svg class="h-5 w-5 text-hw-muted-foreground" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
10
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
|
|
11
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
12
|
+
</svg>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="space-y-4">
|
|
15
|
+
<% categories.each do |cat| %>
|
|
16
|
+
<div class="flex items-start justify-between gap-4 p-3 rounded-lg bg-hw-muted/50">
|
|
17
|
+
<div class="flex-1">
|
|
18
|
+
<p class="text-sm font-medium text-hw-foreground"><%= cat[:name] %></p>
|
|
19
|
+
<% if cat[:description] %>
|
|
20
|
+
<p class="text-xs text-hw-muted-foreground mt-0.5"><%= cat[:description] %></p>
|
|
21
|
+
<% end %>
|
|
22
|
+
</div>
|
|
23
|
+
<% if cat[:required] %>
|
|
24
|
+
<span class="shrink-0 inline-flex items-center rounded-full bg-hw-muted px-2 py-0.5 text-[10px] font-medium text-hw-muted-foreground">Required</span>
|
|
25
|
+
<% else %>
|
|
26
|
+
<button type="button"
|
|
27
|
+
class="relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors <%= cat[:enabled] ? 'bg-hw-primary' : 'bg-hw-muted' %>"
|
|
28
|
+
data-hw-cookie-settings-target="toggle"
|
|
29
|
+
data-category="<%= cat[:name] %>"
|
|
30
|
+
data-action="click->hw-cookie-settings#toggle"
|
|
31
|
+
role="switch"
|
|
32
|
+
aria-checked="<%= cat[:enabled] %>">
|
|
33
|
+
<span class="inline-block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform <%= cat[:enabled] ? 'translate-x-4.5' : 'translate-x-0.5' %>"></span>
|
|
34
|
+
</button>
|
|
35
|
+
<% end %>
|
|
36
|
+
</div>
|
|
37
|
+
<% end %>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="flex items-center gap-3 mt-6 pt-6 border-t border-hw-border">
|
|
40
|
+
<button type="button"
|
|
41
|
+
class="flex-1 inline-flex h-9 items-center justify-center rounded-md border border-hw-input bg-hw-background px-4 text-sm font-medium text-hw-foreground hover:bg-hw-accent transition-colors cursor-pointer"
|
|
42
|
+
data-action="click->hw-cookie-settings#rejectAll">
|
|
43
|
+
Reject All
|
|
44
|
+
</button>
|
|
45
|
+
<button type="button"
|
|
46
|
+
class="flex-1 inline-flex h-9 items-center justify-center rounded-md bg-hw-primary px-4 text-sm font-medium text-hw-primary-foreground hover:bg-hw-primary/90 transition-colors cursor-pointer"
|
|
47
|
+
data-action="click->hw-cookie-settings#acceptSelected">
|
|
48
|
+
Accept Selected
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%# Countdown component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/countdown', ... %>
|
|
3
|
+
|
|
4
|
+
<span data-controller="hw-countdown"
|
|
5
|
+
data-hw-countdown-value-value="<%= value %>"
|
|
6
|
+
data-hw-countdown-target-value="<%= target %>"
|
|
7
|
+
data-hw-countdown-duration-value="<%= duration %>"
|
|
8
|
+
class="tabular-nums"
|
|
9
|
+
<%= tag.attributes(local_assigns) %>>
|
|
10
|
+
<%= prefix %><span data-hw-countdown-target="output"><%= value %></span><%= suffix %>
|
|
11
|
+
</span>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<%# CtaSection component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/cta_section', ... %>
|
|
3
|
+
|
|
4
|
+
<section class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="mx-auto max-w-5xl rounded-2xl bg-hw-accent p-8 md:p-12">
|
|
6
|
+
<div class="flex flex-col <%= variant == :with_image && image_url ? 'md:flex-row items-center gap-8' : 'items-center text-center' %>">
|
|
7
|
+
<div class="flex-1 <%= 'max-w-xl' unless variant == :with_image %>">
|
|
8
|
+
<h2 class="text-2xl md:text-3xl font-bold text-hw-accent-foreground"><%= title %></h2>
|
|
9
|
+
<% if description %>
|
|
10
|
+
<p class="mt-3 text-hw-accent-foreground/80"><%= description %></p>
|
|
11
|
+
<% end %>
|
|
12
|
+
<% if primary_cta || secondary_cta %>
|
|
13
|
+
<div class="mt-6 flex flex-wrap gap-3 <%= 'justify-center' unless variant == :with_image %>">
|
|
14
|
+
<% if primary_cta %>
|
|
15
|
+
<a href="<%= primary_cta[:href] %>"
|
|
16
|
+
class="inline-flex items-center justify-center rounded-lg bg-hw-primary text-hw-primary-foreground h-11 px-6 text-sm font-medium shadow-sm hover:bg-hw-primary/90 transition-colors">
|
|
17
|
+
<%= primary_cta[:label] %>
|
|
18
|
+
</a>
|
|
19
|
+
<% end %>
|
|
20
|
+
<% if secondary_cta %>
|
|
21
|
+
<a href="<%= secondary_cta[:href] %>"
|
|
22
|
+
class="inline-flex items-center justify-center rounded-lg border border-hw-border bg-hw-background h-11 px-6 text-sm font-medium text-hw-foreground hover:bg-hw-muted transition-colors">
|
|
23
|
+
<%= secondary_cta[:label] %>
|
|
24
|
+
</a>
|
|
25
|
+
<% end %>
|
|
26
|
+
</div>
|
|
27
|
+
<% end %>
|
|
28
|
+
</div>
|
|
29
|
+
<% if variant == :with_image && image_url %>
|
|
30
|
+
<div class="w-full md:w-1/3 shrink-0">
|
|
31
|
+
<img src="<%= image_url %>" alt="" class="rounded-xl w-full object-cover">
|
|
32
|
+
</div>
|
|
33
|
+
<% end %>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</section>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<%# DashboardCard component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/dashboard_card', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="rounded-xl border border-hw-border bg-hw-card p-5" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="flex items-center justify-between mb-3">
|
|
6
|
+
<p class="text-sm font-medium text-hw-muted-foreground"><%= title %></p>
|
|
7
|
+
<% if icon %>
|
|
8
|
+
<div class="h-9 w-9 inline-flex items-center justify-center rounded-lg bg-hw-muted text-hw-muted-foreground">
|
|
9
|
+
<%= safe_svg(icon) %>
|
|
10
|
+
</div>
|
|
11
|
+
<% end %>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="flex items-end justify-between">
|
|
14
|
+
<div>
|
|
15
|
+
<p class="text-2xl font-bold text-hw-foreground"><%= value %></p>
|
|
16
|
+
<% if trend && trend_value %>
|
|
17
|
+
<div class="flex items-center gap-1 mt-1">
|
|
18
|
+
<% if trend == :up %>
|
|
19
|
+
<svg class="h-3.5 w-3.5 <%= trend_color %>" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M5 10l7-7m0 0l7 7m-7-7v18"/></svg>
|
|
20
|
+
<% elsif trend == :down %>
|
|
21
|
+
<svg class="h-3.5 w-3.5 <%= trend_color %>" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 14l-7 7m0 0l-7-7m7 7V3"/></svg>
|
|
22
|
+
<% end %>
|
|
23
|
+
<span class="text-xs font-medium <%= trend_color %>"><%= trend_value %></span>
|
|
24
|
+
</div>
|
|
25
|
+
<% end %>
|
|
26
|
+
</div>
|
|
27
|
+
<% if chart_data %>
|
|
28
|
+
<div class="h-10 w-20">
|
|
29
|
+
<svg viewBox="0 0 80 40" class="h-full w-full">
|
|
30
|
+
<polyline fill="none" stroke="currentColor" stroke-width="2" class="text-hw-primary" points="<%= chart_data.each_with_index.map { |v, i| "#{i * (80.0 / ([chart_data.size - 1, 1].max))},#{40 - (v.to_f / chart_data.max * 38)}" }.join(' ') %>"/>
|
|
31
|
+
</svg>
|
|
32
|
+
</div>
|
|
33
|
+
<% end %>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<%# DataTable component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/data_table', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="relative w-full overflow-auto">
|
|
6
|
+
<table class="w-full text-sm">
|
|
7
|
+
<thead>
|
|
8
|
+
<tr class="border-b border-hw-border bg-hw-muted/50">
|
|
9
|
+
<% columns.each do |col| %>
|
|
10
|
+
<th class="h-10 px-4 text-left align-middle font-medium text-hw-muted-foreground">
|
|
11
|
+
<% if col[:sortable] %>
|
|
12
|
+
<a href="?sort_by=<%= col[:key] %>&sort_direction=<%= next_sort_direction(col[:key]) %>"
|
|
13
|
+
class="inline-flex items-center gap-1 hover:text-hw-foreground transition-colors">
|
|
14
|
+
<%= col[:label] %>
|
|
15
|
+
<span class="text-xs"><%= sort_icon(col[:key]) %></span>
|
|
16
|
+
</a>
|
|
17
|
+
<% else %>
|
|
18
|
+
<%= col[:label] %>
|
|
19
|
+
<% end %>
|
|
20
|
+
</th>
|
|
21
|
+
<% end %>
|
|
22
|
+
</tr>
|
|
23
|
+
</thead>
|
|
24
|
+
<tbody>
|
|
25
|
+
<% rows.each do |row| %>
|
|
26
|
+
<tr class="border-b border-hw-border transition-colors hover:bg-hw-muted/50">
|
|
27
|
+
<% columns.each do |col| %>
|
|
28
|
+
<td class="p-4 align-middle"><%= row[col[:key]] %></td>
|
|
29
|
+
<% end %>
|
|
30
|
+
</tr>
|
|
31
|
+
<% end %>
|
|
32
|
+
</tbody>
|
|
33
|
+
</table>
|
|
34
|
+
</div>
|
|
35
|
+
<% if current_page && total_pages %>
|
|
36
|
+
<div class="flex items-center justify-between px-4 py-3 border-t border-hw-border">
|
|
37
|
+
<span class="text-sm text-hw-muted-foreground">
|
|
38
|
+
Page <%= current_page %> of <%= total_pages %>
|
|
39
|
+
</span>
|
|
40
|
+
<div class="flex gap-1">
|
|
41
|
+
<% if current_page > 1 %>
|
|
42
|
+
<a href="?page=<%= current_page - 1 %>"
|
|
43
|
+
class="px-3 py-1 text-sm rounded-md border border-hw-border hover:bg-hw-muted transition-colors">
|
|
44
|
+
Prev
|
|
45
|
+
</a>
|
|
46
|
+
<% end %>
|
|
47
|
+
<% if current_page < total_pages %>
|
|
48
|
+
<a href="?page=<%= current_page + 1 %>"
|
|
49
|
+
class="px-3 py-1 text-sm rounded-md border border-hw-border hover:bg-hw-muted transition-colors">
|
|
50
|
+
Next
|
|
51
|
+
</a>
|
|
52
|
+
<% end %>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<% end %>
|
|
56
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%# DataView component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/data_view', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="space-y-4" data-controller="hw-data-view" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="flex items-center justify-between">
|
|
6
|
+
<div class="flex items-center gap-2">
|
|
7
|
+
<span class="text-sm text-hw-muted-foreground">Sort:</span>
|
|
8
|
+
<span class="text-sm font-medium text-hw-foreground"><%= sort_by || 'Default' %></span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="inline-flex rounded-md border border-hw-input">
|
|
11
|
+
<button type="button" class="<%= merge_classes('inline-flex items-center justify-center h-8 w-8 rounded-l-md transition-colors', view == :grid ? 'bg-hw-accent text-hw-accent-foreground' : 'bg-transparent text-hw-muted-foreground hover:bg-hw-accent hover:text-hw-accent-foreground') %>" data-action="click->hw-data-view#switch" data-view="grid">
|
|
12
|
+
<svg class="h-4 w-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"/></svg>
|
|
13
|
+
</button>
|
|
14
|
+
<button type="button" class="<%= merge_classes('inline-flex items-center justify-center h-8 w-8 rounded-r-md -ml-px transition-colors', view == :list ? 'bg-hw-accent text-hw-accent-foreground' : 'bg-transparent text-hw-muted-foreground hover:bg-hw-accent hover:text-hw-accent-foreground') %>" data-action="click->hw-data-view#switch" data-view="list">
|
|
15
|
+
<svg class="h-4 w-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/></svg>
|
|
16
|
+
</button>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="<%= view == :grid ? 'grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4' : 'space-y-2' %>" data-hw-data-view-target="content">
|
|
20
|
+
<% items.each do |item| %>
|
|
21
|
+
<%= item %>
|
|
22
|
+
<% end %>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<%# DatePicker component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/date_picker', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="relative" data-controller="hw-datepicker">
|
|
5
|
+
<div class="relative">
|
|
6
|
+
<div class="absolute left-3 top-1/2 -translate-y-1/2 text-hw-muted-foreground">
|
|
7
|
+
<svg class="h-4 w-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg>
|
|
8
|
+
</div>
|
|
9
|
+
<input type="date" name="<%= name %>" value="<%= value %>" min="<%= min %>" max="<%= max %>" <%= 'disabled' if disabled %> class="flex w-full rounded-md border border-hw-input bg-hw-background text-hw-foreground ring-offset-hw-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 h-9 pl-9 text-sm" <%= tag.attributes(local_assigns) %>>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<%# DateRangePicker component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/date_range_picker', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="relative" data-controller="hw-date-range" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="flex items-center gap-2">
|
|
6
|
+
<div class="relative flex-1">
|
|
7
|
+
<svg class="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-hw-muted-foreground" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
8
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
|
|
9
|
+
</svg>
|
|
10
|
+
<input type="date"
|
|
11
|
+
name="<%= name_start %>"
|
|
12
|
+
value="<%= start_date %>"
|
|
13
|
+
placeholder="<%= placeholder %>"
|
|
14
|
+
class="w-full h-9 rounded-md border border-hw-input bg-hw-background pl-10 pr-3 text-sm text-hw-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring"
|
|
15
|
+
data-hw-date-range-target="startInput"
|
|
16
|
+
data-action="change->hw-date-range#update">
|
|
17
|
+
</div>
|
|
18
|
+
<span class="text-hw-muted-foreground text-sm">to</span>
|
|
19
|
+
<div class="relative flex-1">
|
|
20
|
+
<svg class="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-hw-muted-foreground" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
21
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
|
|
22
|
+
</svg>
|
|
23
|
+
<input type="date"
|
|
24
|
+
name="<%= name_end %>"
|
|
25
|
+
value="<%= end_date %>"
|
|
26
|
+
class="w-full h-9 rounded-md border border-hw-input bg-hw-background pl-10 pr-3 text-sm text-hw-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring"
|
|
27
|
+
data-hw-date-range-target="endInput"
|
|
28
|
+
data-action="change->hw-date-range#update">
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<%# DeviceFrame component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/device_frame', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="inline-block" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<% case device %>
|
|
6
|
+
<% when :phone %>
|
|
7
|
+
<div class="<%= frame_classes %> <%= border_color %> w-[280px] h-[560px]">
|
|
8
|
+
<div class="relative h-full">
|
|
9
|
+
<div class="absolute top-0 left-1/2 -translate-x-1/2 w-24 h-6 bg-black rounded-b-2xl z-10"></div>
|
|
10
|
+
<div class="h-full pt-6"><%= content %></div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<% when :tablet %>
|
|
14
|
+
<div class="<%= frame_classes %> <%= border_color %> w-[500px] h-[360px]">
|
|
15
|
+
<div class="relative h-full">
|
|
16
|
+
<div class="absolute top-2 left-1/2 -translate-x-1/2 w-2 h-2 bg-hw-foreground/80 rounded-full z-10"></div>
|
|
17
|
+
<div class="h-full pt-4"><%= content %></div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<% when :desktop %>
|
|
21
|
+
<div>
|
|
22
|
+
<div class="<%= frame_classes %> <%= border_color %>">
|
|
23
|
+
<div class="flex items-center gap-2 px-4 py-2.5 bg-hw-muted border-b border-neutral-200">
|
|
24
|
+
<div class="flex gap-1.5">
|
|
25
|
+
<div class="h-3 w-3 rounded-full bg-red-400"></div>
|
|
26
|
+
<div class="h-3 w-3 rounded-full bg-yellow-400"></div>
|
|
27
|
+
<div class="h-3 w-3 rounded-full bg-green-400"></div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="min-h-[300px]"><%= content %></div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="mx-auto w-24 h-3 bg-hw-muted rounded-b-lg"></div>
|
|
33
|
+
</div>
|
|
34
|
+
<% when :watch %>
|
|
35
|
+
<div class="<%= frame_classes %> <%= border_color %> w-[180px] h-[220px]">
|
|
36
|
+
<div class="relative h-full">
|
|
37
|
+
<div class="absolute -top-1 left-1/2 -translate-x-1/2 w-6 h-2 bg-hw-foreground/70 rounded-t-sm"></div>
|
|
38
|
+
<div class="absolute top-1/4 -right-1 w-1.5 h-6 bg-hw-foreground/70 rounded-r-sm"></div>
|
|
39
|
+
<div class="h-full"><%= content %></div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<% end %>
|
|
43
|
+
</div>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<%# DeviceMockup component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/device_mockup', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="inline-block" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<% if type == :browser %>
|
|
6
|
+
<div class="flex items-center gap-2 px-4 py-2 bg-hw-foreground/90 rounded-t-lg">
|
|
7
|
+
<div class="flex gap-1.5">
|
|
8
|
+
<div class="w-3 h-3 rounded-full bg-hw-destructive"></div>
|
|
9
|
+
<div class="w-3 h-3 rounded-full bg-hw-warning"></div>
|
|
10
|
+
<div class="w-3 h-3 rounded-full bg-hw-success"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="flex-1 mx-4">
|
|
13
|
+
<div class="bg-hw-foreground/80 rounded h-5 w-full max-w-xs"></div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="<%= frame_classes %> rounded-t-none">
|
|
17
|
+
<%= content %>
|
|
18
|
+
</div>
|
|
19
|
+
<% elsif type == :phone %>
|
|
20
|
+
<div class="<%= frame_classes %>">
|
|
21
|
+
<% if device == :iphone %>
|
|
22
|
+
<div class="relative">
|
|
23
|
+
<div class="absolute top-0 left-1/2 -translate-x-1/2 w-28 h-6 bg-black rounded-b-2xl z-10"></div>
|
|
24
|
+
<div class="pt-6">
|
|
25
|
+
<%= content %>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<% else %>
|
|
29
|
+
<div class="relative">
|
|
30
|
+
<div class="absolute top-2 left-1/2 -translate-x-1/2 w-2 h-2 bg-hw-foreground/80 rounded-full z-10"></div>
|
|
31
|
+
<%= content %>
|
|
32
|
+
</div>
|
|
33
|
+
<% end %>
|
|
34
|
+
</div>
|
|
35
|
+
<% elsif type == :tablet %>
|
|
36
|
+
<div class="<%= frame_classes %>">
|
|
37
|
+
<div class="relative">
|
|
38
|
+
<div class="absolute top-2 left-1/2 -translate-x-1/2 w-2 h-2 bg-hw-foreground/80 rounded-full z-10"></div>
|
|
39
|
+
<%= content %>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<% else %>
|
|
43
|
+
<div class="<%= frame_classes %>">
|
|
44
|
+
<div class="flex items-center gap-2 px-4 py-2 bg-hw-foreground/90">
|
|
45
|
+
<div class="flex gap-1.5">
|
|
46
|
+
<div class="w-2.5 h-2.5 rounded-full bg-hw-destructive"></div>
|
|
47
|
+
<div class="w-2.5 h-2.5 rounded-full bg-hw-warning"></div>
|
|
48
|
+
<div class="w-2.5 h-2.5 rounded-full bg-hw-success"></div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<%= content %>
|
|
52
|
+
</div>
|
|
53
|
+
<% end %>
|
|
54
|
+
</div>
|