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,59 @@
|
|
|
1
|
+
<%# Button component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/button', label: "Click", variant: :default, size: :md %>
|
|
3
|
+
|
|
4
|
+
<%
|
|
5
|
+
label = local_assigns.fetch(:label, "Button")
|
|
6
|
+
variant = local_assigns.fetch(:variant, :default)
|
|
7
|
+
size = local_assigns.fetch(:size, :md)
|
|
8
|
+
type = local_assigns.fetch(:type, "button")
|
|
9
|
+
href = local_assigns[:href]
|
|
10
|
+
loading = local_assigns.fetch(:loading, false)
|
|
11
|
+
disabled = local_assigns.fetch(:disabled, false)
|
|
12
|
+
icon = local_assigns[:icon]
|
|
13
|
+
|
|
14
|
+
size_classes = case size
|
|
15
|
+
when :xs then "h-7 px-2 text-xs"
|
|
16
|
+
when :sm then "h-8 px-3 text-xs"
|
|
17
|
+
when :lg then "h-11 px-8 text-base"
|
|
18
|
+
when :xl then "h-12 px-10 text-lg"
|
|
19
|
+
else "h-9 px-4 py-2 text-sm"
|
|
20
|
+
end
|
|
21
|
+
variant_classes = case variant
|
|
22
|
+
when :destructive then "bg-hw-destructive text-hw-destructive-foreground hover:bg-hw-destructive/90"
|
|
23
|
+
when :outline then "border border-hw-input bg-hw-background hover:bg-hw-accent hover:text-hw-accent-foreground"
|
|
24
|
+
when :secondary then "bg-hw-secondary text-hw-secondary-foreground hover:bg-hw-secondary/80"
|
|
25
|
+
when :ghost then "hover:bg-hw-accent hover:text-hw-accent-foreground"
|
|
26
|
+
when :link then "text-hw-primary underline-offset-4 hover:underline"
|
|
27
|
+
else "bg-hw-primary text-hw-primary-foreground hover:bg-hw-primary/90"
|
|
28
|
+
end
|
|
29
|
+
base = "inline-flex items-center justify-center rounded-md font-medium ring-offset-hw-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer"
|
|
30
|
+
btn_class = [base, variant_classes, size_classes].join(" ")
|
|
31
|
+
%>
|
|
32
|
+
|
|
33
|
+
<% if href %>
|
|
34
|
+
<a href="<%= href %>" class="<%= btn_class %>">
|
|
35
|
+
<% if icon %>
|
|
36
|
+
<span class="mr-1"><%= icon %></span>
|
|
37
|
+
<% end %>
|
|
38
|
+
<% if loading %>
|
|
39
|
+
<svg class="mr-1 h-4 w-4 animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
40
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
41
|
+
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"></path>
|
|
42
|
+
</svg>
|
|
43
|
+
<% end %>
|
|
44
|
+
<%= label %>
|
|
45
|
+
</a>
|
|
46
|
+
<% else %>
|
|
47
|
+
<button type="<%= type %>" class="<%= btn_class %>" <%= 'disabled' if disabled %>>
|
|
48
|
+
<% if icon %>
|
|
49
|
+
<span class="mr-1"><%= icon %></span>
|
|
50
|
+
<% end %>
|
|
51
|
+
<% if loading %>
|
|
52
|
+
<svg class="mr-1 h-4 w-4 animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
53
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
54
|
+
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"></path>
|
|
55
|
+
</svg>
|
|
56
|
+
<% end %>
|
|
57
|
+
<%= label %>
|
|
58
|
+
</button>
|
|
59
|
+
<% end %>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<%# Calendar component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/calendar', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>"
|
|
5
|
+
data-controller="hw-calendar"
|
|
6
|
+
data-hw-calendar-month-value="<%= month %>"
|
|
7
|
+
data-hw-calendar-year-value="<%= year %>"
|
|
8
|
+
<%= tag.attributes(local_assigns) %>>
|
|
9
|
+
<div class="flex items-center justify-between mb-4">
|
|
10
|
+
<button type="button"
|
|
11
|
+
class="h-8 w-8 rounded-md flex items-center justify-center hover:bg-hw-muted transition-colors"
|
|
12
|
+
data-action="click->hw-calendar#prev">
|
|
13
|
+
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"/></svg>
|
|
14
|
+
<span class="sr-only">Previous month</span>
|
|
15
|
+
</button>
|
|
16
|
+
<h2 class="text-sm font-semibold text-hw-foreground" data-hw-calendar-target="label">
|
|
17
|
+
<%= month_name %> <%= year %>
|
|
18
|
+
</h2>
|
|
19
|
+
<button type="button"
|
|
20
|
+
class="h-8 w-8 rounded-md flex items-center justify-center hover:bg-hw-muted transition-colors"
|
|
21
|
+
data-action="click->hw-calendar#next">
|
|
22
|
+
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
|
|
23
|
+
<span class="sr-only">Next month</span>
|
|
24
|
+
</button>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="grid grid-cols-7 gap-px text-center text-xs font-medium text-hw-muted-foreground mb-1">
|
|
27
|
+
<% %w[Su Mo Tu We Th Fr Sa].each do |day_name| %>
|
|
28
|
+
<div class="py-1"><%= day_name %></div>
|
|
29
|
+
<% end %>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="grid grid-cols-7 gap-px" data-hw-calendar-target="grid">
|
|
32
|
+
<% start_wday.times do %>
|
|
33
|
+
<div></div>
|
|
34
|
+
<% end %>
|
|
35
|
+
<% (1..days_in_month).each do |day| %>
|
|
36
|
+
<% day_events = events_for(day) %>
|
|
37
|
+
<button type="button"
|
|
38
|
+
class="relative h-9 rounded-md text-sm transition-colors hover:bg-hw-muted flex flex-col items-center justify-center
|
|
39
|
+
<%= if selected?(day)
|
|
40
|
+
'bg-hw-primary text-hw-primary-foreground'
|
|
41
|
+
elsif today?(day)
|
|
42
|
+
'bg-hw-accent text-hw-accent-foreground font-semibold'
|
|
43
|
+
else
|
|
44
|
+
'text-hw-foreground'
|
|
45
|
+
end %>"
|
|
46
|
+
data-action="click->hw-calendar#select"
|
|
47
|
+
data-day="<%= day %>">
|
|
48
|
+
<%= day %>
|
|
49
|
+
<% if day_events.any? %>
|
|
50
|
+
<div class="absolute bottom-1 flex gap-0.5">
|
|
51
|
+
<% day_events.first(3).each do |ev| %>
|
|
52
|
+
<span class="h-1 w-1 rounded-full" style="background-color: <%= ev[:color] || '#3b82f6' %>"></span>
|
|
53
|
+
<% end %>
|
|
54
|
+
</div>
|
|
55
|
+
<% end %>
|
|
56
|
+
</button>
|
|
57
|
+
<% end %>
|
|
58
|
+
</div>
|
|
59
|
+
<% if events.any? %>
|
|
60
|
+
<% today_events = events_for(Date.today.day) if month == Date.today.month && year == Date.today.year %>
|
|
61
|
+
<% if today_events&.any? %>
|
|
62
|
+
<div class="mt-4 border-t border-hw-border pt-3 space-y-2">
|
|
63
|
+
<p class="text-xs font-medium text-hw-muted-foreground">Today</p>
|
|
64
|
+
<% today_events.each do |ev| %>
|
|
65
|
+
<div class="flex items-center gap-2 text-sm">
|
|
66
|
+
<span class="h-2 w-2 rounded-full shrink-0" style="background-color: <%= ev[:color] || '#3b82f6' %>"></span>
|
|
67
|
+
<span class="text-hw-foreground"><%= ev[:title] %></span>
|
|
68
|
+
</div>
|
|
69
|
+
<% end %>
|
|
70
|
+
</div>
|
|
71
|
+
<% end %>
|
|
72
|
+
<% end %>
|
|
73
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<%# Card component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/card', title: "Card Title", description: "Description" %>
|
|
3
|
+
|
|
4
|
+
<%
|
|
5
|
+
title = local_assigns[:title]
|
|
6
|
+
description = local_assigns[:description]
|
|
7
|
+
extra_class = local_assigns[:class]
|
|
8
|
+
card_cls = ["rounded-lg border border-hw-border bg-hw-card text-hw-card-foreground shadow-sm", extra_class].compact.join(" ")
|
|
9
|
+
%>
|
|
10
|
+
|
|
11
|
+
<div class="<%= card_cls %>">
|
|
12
|
+
<% if title %>
|
|
13
|
+
<div class="flex flex-col space-y-1.5 p-6">
|
|
14
|
+
<h3 class="text-lg font-semibold leading-none tracking-tight"><%= title %></h3>
|
|
15
|
+
<% if description %>
|
|
16
|
+
<p class="text-sm text-hw-muted-foreground"><%= description %></p>
|
|
17
|
+
<% end %>
|
|
18
|
+
</div>
|
|
19
|
+
<% end %>
|
|
20
|
+
<div class="p-6 pt-0">
|
|
21
|
+
<% if block_given? %><%= yield %><% end %>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<%# CardHeading component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/card_heading', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="flex items-start justify-between gap-4" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div>
|
|
6
|
+
<h3 class="text-base font-semibold text-hw-foreground"><%= title %></h3>
|
|
7
|
+
<% if subtitle %>
|
|
8
|
+
<p class="mt-0.5 text-sm text-hw-muted-foreground"><%= subtitle %></p>
|
|
9
|
+
<% end %>
|
|
10
|
+
</div>
|
|
11
|
+
<% if action_label && action_href %>
|
|
12
|
+
<a href="<%= action_href %>" class="text-sm font-medium text-hw-primary hover:text-hw-primary/80 transition-colors shrink-0">
|
|
13
|
+
<%= action_label %>
|
|
14
|
+
</a>
|
|
15
|
+
<% end %>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<%# Carousel component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/carousel', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>"
|
|
5
|
+
data-controller="hw-carousel"
|
|
6
|
+
data-hw-carousel-autoplay-value="<%= autoplay %>"
|
|
7
|
+
data-hw-carousel-interval-value="<%= interval %>"
|
|
8
|
+
<%= tag.attributes(local_assigns) %>>
|
|
9
|
+
<div class="flex transition-transform duration-300 ease-in-out"
|
|
10
|
+
data-hw-carousel-target="track">
|
|
11
|
+
<% all_slides.each do |slide| %>
|
|
12
|
+
<div class="w-full shrink-0" data-hw-carousel-target="slide">
|
|
13
|
+
<% if slides? %>
|
|
14
|
+
<%= slide %>
|
|
15
|
+
<% else %>
|
|
16
|
+
<% if slide.is_a?(Hash) && slide[:image] %>
|
|
17
|
+
<img src="<%= slide[:image] %>" alt="<%= slide[:alt] || '' %>" class="w-full h-full object-cover">
|
|
18
|
+
<% else %>
|
|
19
|
+
<%= slide.is_a?(Hash) ? slide[:content] : slide %>
|
|
20
|
+
<% end %>
|
|
21
|
+
<% end %>
|
|
22
|
+
</div>
|
|
23
|
+
<% end %>
|
|
24
|
+
</div>
|
|
25
|
+
<% if show_arrows %>
|
|
26
|
+
<button type="button"
|
|
27
|
+
class="absolute left-2 top-1/2 -translate-y-1/2 h-9 w-9 rounded-full bg-hw-background/80 border border-hw-border flex items-center justify-center shadow-sm hover:bg-hw-background transition-colors"
|
|
28
|
+
data-action="click->hw-carousel#prev">
|
|
29
|
+
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"/></svg>
|
|
30
|
+
<span class="sr-only">Previous</span>
|
|
31
|
+
</button>
|
|
32
|
+
<button type="button"
|
|
33
|
+
class="absolute right-2 top-1/2 -translate-y-1/2 h-9 w-9 rounded-full bg-hw-background/80 border border-hw-border flex items-center justify-center shadow-sm hover:bg-hw-background transition-colors"
|
|
34
|
+
data-action="click->hw-carousel#next">
|
|
35
|
+
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
|
|
36
|
+
<span class="sr-only">Next</span>
|
|
37
|
+
</button>
|
|
38
|
+
<% end %>
|
|
39
|
+
<% if show_dots %>
|
|
40
|
+
<div class="absolute bottom-3 left-1/2 -translate-x-1/2 flex gap-1.5" data-hw-carousel-target="dots">
|
|
41
|
+
<% all_slides.each_with_index do |_, i| %>
|
|
42
|
+
<button type="button"
|
|
43
|
+
class="h-2 w-2 rounded-full bg-hw-background/60 data-[active]:bg-hw-primary transition-colors"
|
|
44
|
+
data-action="click->hw-carousel#goTo"
|
|
45
|
+
data-index="<%= i %>"
|
|
46
|
+
data-hw-carousel-target="dot"
|
|
47
|
+
<%= 'data-active' if i == 0 %>>
|
|
48
|
+
<span class="sr-only">Slide <%= i + 1 %></span>
|
|
49
|
+
</button>
|
|
50
|
+
<% end %>
|
|
51
|
+
</div>
|
|
52
|
+
<% end %>
|
|
53
|
+
</div>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<%# Chart component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/chart', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>" style="height: <%= height %>px" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<svg viewBox="0 0 100 60" preserveAspectRatio="none" class="w-full h-full">
|
|
6
|
+
<% case type %>
|
|
7
|
+
<% when :line %>
|
|
8
|
+
<% data.each_with_index do |d, i| %>
|
|
9
|
+
<% x = (i * (100.0 / ([data.size - 1, 1].max))).round(2) %>
|
|
10
|
+
<% y = max_value.zero? ? 50 : (50 - (d[:value].to_f / max_value * 48)).round(2) %>
|
|
11
|
+
<circle cx="<%= x %>" cy="<%= y %>" r="1" fill="var(--hw-primary, #3b82f6)"/>
|
|
12
|
+
<% end %>
|
|
13
|
+
<polyline fill="none" stroke="var(--hw-primary, #3b82f6)" stroke-width="0.5" points="<%= line_points %>"/>
|
|
14
|
+
|
|
15
|
+
<% when :area %>
|
|
16
|
+
<polygon fill="var(--hw-primary, #3b82f6)" opacity="0.15" points="<%= area_points %>"/>
|
|
17
|
+
<polyline fill="none" stroke="var(--hw-primary, #3b82f6)" stroke-width="0.5" points="<%= line_points %>"/>
|
|
18
|
+
<% data.each_with_index do |d, i| %>
|
|
19
|
+
<% x = (i * (100.0 / ([data.size - 1, 1].max))).round(2) %>
|
|
20
|
+
<% y = max_value.zero? ? 50 : (50 - (d[:value].to_f / max_value * 48)).round(2) %>
|
|
21
|
+
<circle cx="<%= x %>" cy="<%= y %>" r="1" fill="var(--hw-primary, #3b82f6)"/>
|
|
22
|
+
<% end %>
|
|
23
|
+
|
|
24
|
+
<% when :bar %>
|
|
25
|
+
<% data.each_with_index do |d, i| %>
|
|
26
|
+
<% bw = bar_width %>
|
|
27
|
+
<% x = (i * (100.0 / data.size) + bar_gap).round(2) %>
|
|
28
|
+
<% h = max_value.zero? ? 0 : (d[:value].to_f / max_value * 48).round(2) %>
|
|
29
|
+
<% y = (50 - h).round(2) %>
|
|
30
|
+
<rect x="<%= x %>" y="<%= y %>" width="<%= bw %>" height="<%= h %>" rx="1"
|
|
31
|
+
fill="<%= d[:color] || 'var(--hw-primary, #3b82f6)' %>" opacity="0.85"/>
|
|
32
|
+
<% if show_values %>
|
|
33
|
+
<text x="<%= (x + bw / 2).round(2) %>" y="<%= (y - 1.5).round(2) %>"
|
|
34
|
+
text-anchor="middle" font-size="2.5" fill="var(--hw-foreground, #111)">
|
|
35
|
+
<%= d[:value] %>
|
|
36
|
+
</text>
|
|
37
|
+
<% end %>
|
|
38
|
+
<% end %>
|
|
39
|
+
<% when :pie, :donut %>
|
|
40
|
+
<% cx, cy, r = 50, 30, type == :donut ? 18 : 24 %>
|
|
41
|
+
<% inner = type == :donut ? 10 : 0 %>
|
|
42
|
+
<% total = sum_values %>
|
|
43
|
+
<% angle = -90 %>
|
|
44
|
+
<% colors = ['#3b82f6', '#10b981', '#f59e0b', '#ef4444', '#8b5cf6', '#ec4899', '#06b6d4', '#f97316'] %>
|
|
45
|
+
<% data.each_with_index do |d, i| %>
|
|
46
|
+
<% pct = total.zero? ? 0 : (d[:value].to_f / total * 360) %>
|
|
47
|
+
<% start_angle = angle %>
|
|
48
|
+
<% end_angle = angle + pct %>
|
|
49
|
+
<% angle = end_angle %>
|
|
50
|
+
<% start_rad = start_angle * Math::PI / 180 %>
|
|
51
|
+
<% end_rad = end_angle * Math::PI / 180 %>
|
|
52
|
+
<% x1 = (cx + r * Math.cos(start_rad)).round(2) %>
|
|
53
|
+
<% y1 = (cy + r * Math.sin(start_rad)).round(2) %>
|
|
54
|
+
<% x2 = (cx + r * Math.cos(end_rad)).round(2) %>
|
|
55
|
+
<% y2 = (cy + r * Math.sin(end_rad)).round(2) %>
|
|
56
|
+
<% large = pct > 180 ? 1 : 0 %>
|
|
57
|
+
<% if type == :donut %>
|
|
58
|
+
<% ix1 = (cx + inner * Math.cos(start_rad)).round(2) %>
|
|
59
|
+
<% iy1 = (cy + inner * Math.sin(start_rad)).round(2) %>
|
|
60
|
+
<% ix2 = (cx + inner * Math.cos(end_rad)).round(2) %>
|
|
61
|
+
<% iy2 = (cy + inner * Math.sin(end_rad)).round(2) %>
|
|
62
|
+
<path d="M<%= x1 %>,<%= y1 %> A<%= r %>,<%= r %> 0 <%= large %> 1 <%= x2 %>,<%= y2 %> L<%= ix2 %>,<%= iy2 %> A<%= inner %>,<%= inner %> 0 <%= large %> 0 <%= ix1 %>,<%= iy1 %> Z"
|
|
63
|
+
fill="<%= d[:color] || colors[i % colors.size] %>"/>
|
|
64
|
+
<% else %>
|
|
65
|
+
<path d="M<%= cx %>,<%= cy %> L<%= x1 %>,<%= y1 %> A<%= r %>,<%= r %> 0 <%= large %> 1 <%= x2 %>,<%= y2 %> Z"
|
|
66
|
+
fill="<%= d[:color] || colors[i % colors.size] %>"/>
|
|
67
|
+
<% end %>
|
|
68
|
+
<% end %>
|
|
69
|
+
<% end %>
|
|
70
|
+
</svg>
|
|
71
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<%# ChatBubble component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/chat_bubble', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= wrapper_classes %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<% if avatar %>
|
|
6
|
+
<div class="shrink-0 mt-1">
|
|
7
|
+
<img src="<%= avatar %>" alt="<%= sender || '' %>" class="h-8 w-8 rounded-full object-cover">
|
|
8
|
+
</div>
|
|
9
|
+
<% end %>
|
|
10
|
+
<div class="flex flex-col gap-1">
|
|
11
|
+
<% if sender %>
|
|
12
|
+
<span class="text-xs font-medium text-hw-muted-foreground px-1 <%= 'text-right' if sent? %>"><%= sender %></span>
|
|
13
|
+
<% end %>
|
|
14
|
+
<div class="<%= bubble_classes %>">
|
|
15
|
+
<%= message %>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="flex items-center gap-2 px-1 <%= 'justify-end' if sent? %>">
|
|
18
|
+
<% if time %>
|
|
19
|
+
<span class="text-xs text-hw-muted-foreground"><%= time %></span>
|
|
20
|
+
<% end %>
|
|
21
|
+
<% if actions? %>
|
|
22
|
+
<div class="flex items-center gap-1">
|
|
23
|
+
<% actions.each do |action| %>
|
|
24
|
+
<%= action %>
|
|
25
|
+
<% end %>
|
|
26
|
+
</div>
|
|
27
|
+
<% end %>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<%# Checkbox component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/checkbox', name: "agree", label: "I agree", checked: false %>
|
|
3
|
+
|
|
4
|
+
<%
|
|
5
|
+
name = local_assigns.fetch(:name, "")
|
|
6
|
+
label = local_assigns[:label]
|
|
7
|
+
checked = local_assigns.fetch(:checked, false)
|
|
8
|
+
disabled = local_assigns.fetch(:disabled, false)
|
|
9
|
+
indeterminate = local_assigns.fetch(:indeterminate, false)
|
|
10
|
+
value = local_assigns.fetch(:value, "1")
|
|
11
|
+
size = local_assigns.fetch(:size, :md)
|
|
12
|
+
|
|
13
|
+
size_cls = case size
|
|
14
|
+
when :sm then "h-3.5 w-3.5"
|
|
15
|
+
when :lg then "h-5 w-5"
|
|
16
|
+
else "h-4 w-4"
|
|
17
|
+
end
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
<label class="flex items-center gap-2 cursor-pointer">
|
|
21
|
+
<input type="checkbox" name="<%= name %>" value="<%= value %>" <%= 'checked' if checked || indeterminate %> <%= 'disabled' if disabled %> class="peer shrink-0 rounded-sm border border-hw-input bg-hw-background 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 checked:bg-hw-primary checked:border-hw-primary <%= size_cls %>">
|
|
22
|
+
<% if label %>
|
|
23
|
+
<span class="font-medium leading-none text-sm peer-disabled:cursor-not-allowed peer-disabled:opacity-70"><%= label %></span>
|
|
24
|
+
<% end %>
|
|
25
|
+
</label>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<%# CheckoutForm component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/checkout_form', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="mx-auto max-w-3xl" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<nav aria-label="Progress" class="mb-10">
|
|
6
|
+
<ol class="flex items-center">
|
|
7
|
+
<% steps.each_with_index do |step, index| %>
|
|
8
|
+
<li class="<%= 'flex-1' unless index == steps.size - 1 %> flex items-center">
|
|
9
|
+
<div class="flex items-center gap-2">
|
|
10
|
+
<% case step_status(index)
|
|
11
|
+
when :complete %>
|
|
12
|
+
<div class="flex h-8 w-8 items-center justify-center rounded-full bg-hw-primary text-hw-primary-foreground">
|
|
13
|
+
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
|
14
|
+
<path fill-rule="evenodd" d="M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z" clip-rule="evenodd"/>
|
|
15
|
+
</svg>
|
|
16
|
+
</div>
|
|
17
|
+
<span class="text-sm font-medium text-hw-foreground"><%= step[:label] %></span>
|
|
18
|
+
<% when :current %>
|
|
19
|
+
<div class="flex h-8 w-8 items-center justify-center rounded-full border-2 border-hw-primary text-sm font-semibold text-hw-primary">
|
|
20
|
+
<%= index + 1 %>
|
|
21
|
+
</div>
|
|
22
|
+
<span class="text-sm font-semibold text-hw-primary"><%= step[:label] %></span>
|
|
23
|
+
<% when :upcoming %>
|
|
24
|
+
<div class="flex h-8 w-8 items-center justify-center rounded-full border-2 border-hw-border text-sm text-hw-muted-foreground">
|
|
25
|
+
<%= index + 1 %>
|
|
26
|
+
</div>
|
|
27
|
+
<span class="text-sm text-hw-muted-foreground"><%= step[:label] %></span>
|
|
28
|
+
<% end %>
|
|
29
|
+
</div>
|
|
30
|
+
<% unless index == steps.size - 1 %>
|
|
31
|
+
<div class="mx-4 h-px flex-1 <%= step_status(index) == :complete ? 'bg-hw-primary' : 'bg-hw-border' %>"></div>
|
|
32
|
+
<% end %>
|
|
33
|
+
</li>
|
|
34
|
+
<% end %>
|
|
35
|
+
</ol>
|
|
36
|
+
</nav>
|
|
37
|
+
<div class="rounded-xl border border-hw-border bg-white p-6 shadow-sm">
|
|
38
|
+
<h2 class="mb-6 text-lg font-semibold text-hw-foreground"><%= steps[current_step]&.dig(:label) %></h2>
|
|
39
|
+
<div class="text-sm text-hw-muted-foreground">
|
|
40
|
+
<%= content %>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<%# Chip component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/chip', label: "React", size: :md %>
|
|
3
|
+
|
|
4
|
+
<%
|
|
5
|
+
label = local_assigns.fetch(:label, "")
|
|
6
|
+
size = local_assigns.fetch(:size, :md)
|
|
7
|
+
avatar = local_assigns[:avatar]
|
|
8
|
+
removable = local_assigns.fetch(:removable, false)
|
|
9
|
+
|
|
10
|
+
size_cls = case size
|
|
11
|
+
when :sm then "h-6 text-xs px-2"
|
|
12
|
+
when :lg then "h-9 text-sm px-4"
|
|
13
|
+
else "h-7 text-xs px-3"
|
|
14
|
+
end
|
|
15
|
+
chip_cls = "inline-flex items-center rounded-full border border-hw-border bg-hw-background font-medium #{size_cls}"
|
|
16
|
+
%>
|
|
17
|
+
|
|
18
|
+
<div class="<%= chip_cls %>">
|
|
19
|
+
<% if avatar %>
|
|
20
|
+
<img src="<%= avatar %>" class="h-5 w-5 rounded-full" alt="">
|
|
21
|
+
<% end %>
|
|
22
|
+
<%= label %>
|
|
23
|
+
<% if removable %>
|
|
24
|
+
<button type="button" class="ml-0.5 -mr-1 h-4 w-4 rounded-full hover:bg-hw-muted p-0.5 focus:outline-none">
|
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="h-3 w-3">
|
|
26
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
|
|
27
|
+
</svg>
|
|
28
|
+
</button>
|
|
29
|
+
<% end %>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<%# Clipboard component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/clipboard', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= wrapper_classes %>"
|
|
5
|
+
data-controller="hw-clipboard"
|
|
6
|
+
data-hw-clipboard-text-value="<%= text %>"
|
|
7
|
+
data-hw-clipboard-success-value="<%= success_message %>"
|
|
8
|
+
<%= tag.attributes(local_assigns) %>>
|
|
9
|
+
<% if label %>
|
|
10
|
+
<span class="text-sm text-hw-muted-foreground"><%= label %></span>
|
|
11
|
+
<% end %>
|
|
12
|
+
<div class="inline-flex items-center gap-1 rounded-md border border-hw-border bg-hw-muted px-2.5 py-1.5">
|
|
13
|
+
<code class="text-sm text-hw-foreground max-w-[200px] truncate"><%= text %></code>
|
|
14
|
+
<button type="button"
|
|
15
|
+
class="h-6 w-6 rounded flex items-center justify-center hover:bg-hw-accent transition-colors text-hw-muted-foreground hover:text-hw-foreground"
|
|
16
|
+
data-action="click->hw-clipboard#copy"
|
|
17
|
+
data-hw-clipboard-target="button">
|
|
18
|
+
<svg class="h-3.5 w-3.5" data-hw-clipboard-target="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
19
|
+
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/>
|
|
20
|
+
<path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/>
|
|
21
|
+
</svg>
|
|
22
|
+
<svg class="hidden h-3.5 w-3.5 text-hw-success" data-hw-clipboard-target="check" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
23
|
+
<polyline points="20 6 9 17 4 12"/>
|
|
24
|
+
</svg>
|
|
25
|
+
<span class="sr-only">Copy</span>
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
<span class="hidden text-xs text-hw-success font-medium" data-hw-clipboard-target="feedback"><%= success_message %></span>
|
|
29
|
+
</div>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<%# CloseButton component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/close_button', ... %>
|
|
3
|
+
|
|
4
|
+
<button type="button" aria-label="<%= label %>" <%= 'disabled' if disabled %> class="<%= button_classes %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<svg class="<%= icon_classes %>" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/></svg>
|
|
6
|
+
</button>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<%# CodeBlock component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/code_block', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="flex items-center justify-between px-4 py-2 border-b border-hw-border">
|
|
6
|
+
<span class="text-xs font-medium text-hw-muted-foreground"><%= language || 'code' %></span>
|
|
7
|
+
<% if copyable %>
|
|
8
|
+
<button
|
|
9
|
+
type="button"
|
|
10
|
+
class="text-xs text-hw-muted-foreground hover:text-hw-foreground transition-colors"
|
|
11
|
+
data-controller="hw-clipboard"
|
|
12
|
+
data-action="click->hw-clipboard#copy"
|
|
13
|
+
data-hw-clipboard-text-value="<%= code %>"
|
|
14
|
+
>
|
|
15
|
+
Copy
|
|
16
|
+
</button>
|
|
17
|
+
<% end %>
|
|
18
|
+
</div>
|
|
19
|
+
<pre class="overflow-x-auto p-4 text-sm"><code><%= code %></code></pre>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<%# CodeHighlight component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/code_highlight', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="<%= container_classes %>" data-controller="hw-code-highlight" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<div class="flex items-center justify-between px-4 py-2 border-b border-hw-border">
|
|
6
|
+
<span class="text-xs font-medium text-hw-muted-foreground"><%= language %></span>
|
|
7
|
+
</div>
|
|
8
|
+
<pre class="overflow-x-auto p-4 text-sm leading-relaxed"><code data-hw-code-highlight-target="code" data-language="<%= language %>"><% if line_numbers %><% lines.each_with_index do |line, i| %><span class="block"><span class="inline-block w-8 text-right pr-4 select-none text-hw-muted-foreground"><%= i + 1 %></span><%= line %></span><% end %><% else %><%= code %><% end %></code></pre>
|
|
9
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<%# CodeMockup component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/code_mockup', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="rounded-lg border border-hw-border overflow-hidden bg-hw-foreground font-mono text-sm" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<% if with_header %>
|
|
6
|
+
<div class="flex items-center justify-between px-4 py-2.5 bg-hw-foreground/90 border-b border-zinc-800">
|
|
7
|
+
<div class="flex gap-1.5">
|
|
8
|
+
<div class="h-3 w-3 rounded-full bg-hw-destructive"></div>
|
|
9
|
+
<div class="h-3 w-3 rounded-full bg-hw-warning"></div>
|
|
10
|
+
<div class="h-3 w-3 rounded-full bg-hw-success"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<span class="text-xs text-hw-muted-foreground"><%= language %></span>
|
|
13
|
+
</div>
|
|
14
|
+
<% end %>
|
|
15
|
+
<pre class="p-4 overflow-x-auto"><code><% lines.each_with_index do |line, i| %><span class="flex"><% if with_line_numbers %><span class="w-8 shrink-0 text-hw-muted-foreground select-none text-right pr-3"><%= i + 1 %></span><% end %><span class="text-hw-background flex-1"><%= ERB::Util.html_escape(line.chomp) %></span></span><% end %></code></pre>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<%# Collapsible component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/collapsible', ... %>
|
|
3
|
+
|
|
4
|
+
<div data-controller="hw-collapsible" data-hw-collapsible-open-value="<%= open %>" <%= tag.attributes(local_assigns) %>>
|
|
5
|
+
<button
|
|
6
|
+
type="button"
|
|
7
|
+
class="flex items-center gap-2 text-sm font-medium hover:text-hw-foreground/80 transition-colors"
|
|
8
|
+
data-action="click->hw-collapsible#toggle"
|
|
9
|
+
>
|
|
10
|
+
<svg class="h-4 w-4 shrink-0 transition-transform duration-200"
|
|
11
|
+
data-hw-collapsible-target="chevron"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
13
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/>
|
|
14
|
+
</svg>
|
|
15
|
+
<span><%= trigger_label %></span>
|
|
16
|
+
</button>
|
|
17
|
+
<div class="<%= open ? '' : 'hidden' %> mt-2" data-hw-collapsible-target="content">
|
|
18
|
+
<%= content %>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<%# ColorInput component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/color_input', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="flex items-center gap-2"
|
|
5
|
+
data-controller="hw-color-input"
|
|
6
|
+
data-hw-color-input-format-value="<%= format %>"
|
|
7
|
+
<%= tag.attributes(local_assigns) %>>
|
|
8
|
+
<label class="relative flex h-9 w-9 shrink-0 cursor-pointer overflow-hidden rounded-md border border-hw-input">
|
|
9
|
+
<input type="color"
|
|
10
|
+
value="<%= value %>"
|
|
11
|
+
class="absolute inset-0 h-full w-full cursor-pointer opacity-0"
|
|
12
|
+
data-hw-color-input-target="picker"
|
|
13
|
+
data-action="input->hw-color-input#update">
|
|
14
|
+
<div class="h-full w-full rounded-md" data-hw-color-input-target="preview" style="background-color: <%= value %>;"></div>
|
|
15
|
+
</label>
|
|
16
|
+
<input type="text"
|
|
17
|
+
name="<%= name %>"
|
|
18
|
+
value="<%= value %>"
|
|
19
|
+
class="h-9 w-28 rounded-md border border-hw-input bg-hw-background px-3 text-sm font-mono text-hw-foreground uppercase focus:outline-none focus:ring-2 focus:ring-hw-ring"
|
|
20
|
+
data-hw-color-input-target="text"
|
|
21
|
+
data-action="input->hw-color-input#updateFromText">
|
|
22
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<%# ColorPicker component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/color_picker', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="flex items-center gap-2" data-controller="hw-color-picker">
|
|
5
|
+
<input type="color" name="<%= name %>" value="<%= value %>" <%= 'disabled' if disabled %> class="h-9 w-9 cursor-pointer rounded-md border border-hw-input bg-transparent p-0.5 disabled:cursor-not-allowed disabled:opacity-50" data-action="input->hw-color-picker#update" <%= tag.attributes(local_assigns) %>>
|
|
6
|
+
<% if show_input %>
|
|
7
|
+
<input type="text" value="<%= value %>" <%= 'disabled' if disabled %> class="h-9 w-24 rounded-md border border-hw-input bg-hw-background px-3 text-sm 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" data-hw-color-picker-target="text" data-action="input->hw-color-picker#parse">
|
|
8
|
+
<% end %>
|
|
9
|
+
</div>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<%# ColorSwatch component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/color_swatch', ... %>
|
|
3
|
+
|
|
4
|
+
<span class="inline-block rounded-full border border-hw-border cursor-pointer <%= SIZES[size] || 'h-7 w-7' %>" style="background-color: <%= color %>" <%= with_tooltip ? "title='#{color}'" : '' %> <%= tag.attributes(local_assigns) %>></span>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<%# Combobox component — ERB partial %>
|
|
2
|
+
<%# Usage: render 'hotwirebits/combobox', ... %>
|
|
3
|
+
|
|
4
|
+
<div class="relative" data-controller="hw-combobox">
|
|
5
|
+
<input type="hidden" name="<%= name %>" value="<%= selected %>" data-hw-combobox-target="hidden">
|
|
6
|
+
<input type="text" placeholder="<%= placeholder %>" <%= 'disabled' if disabled %> class="flex h-9 w-full rounded-md border border-hw-input bg-hw-background px-3 text-sm text-hw-foreground ring-offset-hw-background placeholder:text-hw-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-hw-ring focus-visible:ring-offset-2" data-action="input->hw-combobox#search focus->hw-combobox#open click@window->hw-combobox#close" data-hw-combobox-target="input" role="combobox" aria-expanded="false" autocomplete="list" <%= tag.attributes(local_assigns) %>>
|
|
7
|
+
<div class="absolute z-50 mt-1 w-full rounded-md border border-hw-border bg-hw-popover shadow-md hidden" data-hw-combobox-target="dropdown">
|
|
8
|
+
<ul class="max-h-60 overflow-auto p-1" role="listbox">
|
|
9
|
+
<% options.each do |opt| %>
|
|
10
|
+
<% value = opt.is_a?(Array) ? opt.last : opt %>
|
|
11
|
+
<% label = opt.is_a?(Array) ? opt.first : opt %>
|
|
12
|
+
<li class="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" role="option" data-action="click->hw-combobox#select" data-value="<%= value %>">
|
|
13
|
+
<%= label %>
|
|
14
|
+
</li>
|
|
15
|
+
<% end %>
|
|
16
|
+
</ul>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|