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.
Files changed (843) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +46 -0
  3. data/LICENSE +21 -0
  4. data/README.md +156 -0
  5. data/app/assets/stylesheets/hotwirebits/theme.css +131 -0
  6. data/app/assets/stylesheets/hotwirebits/themes/corporate.css +29 -0
  7. data/app/assets/stylesheets/hotwirebits/themes/midnight.css +29 -0
  8. data/app/components/hotwirebits/accordion_component.html.erb +23 -0
  9. data/app/components/hotwirebits/accordion_component.rb +34 -0
  10. data/app/components/hotwirebits/activity_feed_component.html.erb +40 -0
  11. data/app/components/hotwirebits/activity_feed_component.rb +11 -0
  12. data/app/components/hotwirebits/affix_component.html.erb +3 -0
  13. data/app/components/hotwirebits/affix_component.rb +25 -0
  14. data/app/components/hotwirebits/ai_chat_component.html.erb +32 -0
  15. data/app/components/hotwirebits/ai_chat_component.rb +12 -0
  16. data/app/components/hotwirebits/alert_component.html.erb +32 -0
  17. data/app/components/hotwirebits/alert_component.rb +39 -0
  18. data/app/components/hotwirebits/alert_dialog_component.html.erb +30 -0
  19. data/app/components/hotwirebits/alert_dialog_component.rb +40 -0
  20. data/app/components/hotwirebits/anchor_component.html.erb +9 -0
  21. data/app/components/hotwirebits/anchor_component.rb +12 -0
  22. data/app/components/hotwirebits/angle_slider_component.html.erb +9 -0
  23. data/app/components/hotwirebits/angle_slider_component.rb +19 -0
  24. data/app/components/hotwirebits/animated_number_component.html.erb +8 -0
  25. data/app/components/hotwirebits/animated_number_component.rb +28 -0
  26. data/app/components/hotwirebits/app_shell_component.html.erb +22 -0
  27. data/app/components/hotwirebits/app_shell_component.rb +15 -0
  28. data/app/components/hotwirebits/aspect_ratio_component.html.erb +3 -0
  29. data/app/components/hotwirebits/aspect_ratio_component.rb +27 -0
  30. data/app/components/hotwirebits/auth_block_component.html.erb +63 -0
  31. data/app/components/hotwirebits/auth_block_component.rb +35 -0
  32. data/app/components/hotwirebits/autocomplete_component.html.erb +5 -0
  33. data/app/components/hotwirebits/autocomplete_component.rb +45 -0
  34. data/app/components/hotwirebits/avatar_component.html.erb +18 -0
  35. data/app/components/hotwirebits/avatar_component.rb +67 -0
  36. data/app/components/hotwirebits/background_image_component.html.erb +9 -0
  37. data/app/components/hotwirebits/background_image_component.rb +17 -0
  38. data/app/components/hotwirebits/badge_component.html.erb +13 -0
  39. data/app/components/hotwirebits/badge_component.rb +55 -0
  40. data/app/components/hotwirebits/banner_component.html.erb +31 -0
  41. data/app/components/hotwirebits/banner_component.rb +36 -0
  42. data/app/components/hotwirebits/base.rb +13 -0
  43. data/app/components/hotwirebits/bento_grid_component.html.erb +7 -0
  44. data/app/components/hotwirebits/bento_grid_component.rb +36 -0
  45. data/app/components/hotwirebits/blog_section_component.html.erb +35 -0
  46. data/app/components/hotwirebits/blog_section_component.rb +20 -0
  47. data/app/components/hotwirebits/bottom_navigation_component.html.erb +21 -0
  48. data/app/components/hotwirebits/bottom_navigation_component.rb +22 -0
  49. data/app/components/hotwirebits/box_component.html.erb +3 -0
  50. data/app/components/hotwirebits/box_component.rb +16 -0
  51. data/app/components/hotwirebits/breadcrumb_advanced_component.html.erb +53 -0
  52. data/app/components/hotwirebits/breadcrumb_advanced_component.rb +32 -0
  53. data/app/components/hotwirebits/breadcrumb_component.html.erb +18 -0
  54. data/app/components/hotwirebits/breadcrumb_component.rb +11 -0
  55. data/app/components/hotwirebits/browser_mockup_component.html.erb +22 -0
  56. data/app/components/hotwirebits/browser_mockup_component.rb +11 -0
  57. data/app/components/hotwirebits/burger_component.html.erb +20 -0
  58. data/app/components/hotwirebits/burger_component.rb +29 -0
  59. data/app/components/hotwirebits/button_component.html.erb +21 -0
  60. data/app/components/hotwirebits/button_component.rb +84 -0
  61. data/app/components/hotwirebits/calendar_component.html.erb +70 -0
  62. data/app/components/hotwirebits/calendar_component.rb +49 -0
  63. data/app/components/hotwirebits/card_component.html.erb +24 -0
  64. data/app/components/hotwirebits/card_component.rb +21 -0
  65. data/app/components/hotwirebits/card_heading_component.html.erb +13 -0
  66. data/app/components/hotwirebits/card_heading_component.rb +13 -0
  67. data/app/components/hotwirebits/carousel_component.html.erb +50 -0
  68. data/app/components/hotwirebits/carousel_component.rb +27 -0
  69. data/app/components/hotwirebits/center_component.html.erb +3 -0
  70. data/app/components/hotwirebits/center_component.rb +22 -0
  71. data/app/components/hotwirebits/chart_component.html.erb +68 -0
  72. data/app/components/hotwirebits/chart_component.rb +67 -0
  73. data/app/components/hotwirebits/chat_bubble_component.html.erb +27 -0
  74. data/app/components/hotwirebits/chat_bubble_component.rb +35 -0
  75. data/app/components/hotwirebits/checkbox_component.html.erb +9 -0
  76. data/app/components/hotwirebits/checkbox_component.rb +70 -0
  77. data/app/components/hotwirebits/checkout_form_component.html.erb +40 -0
  78. data/app/components/hotwirebits/checkout_form_component.rb +21 -0
  79. data/app/components/hotwirebits/chip_component.html.erb +13 -0
  80. data/app/components/hotwirebits/chip_component.rb +51 -0
  81. data/app/components/hotwirebits/clipboard_component.html.erb +26 -0
  82. data/app/components/hotwirebits/clipboard_component.rb +19 -0
  83. data/app/components/hotwirebits/close_button_component.html.erb +3 -0
  84. data/app/components/hotwirebits/close_button_component.rb +40 -0
  85. data/app/components/hotwirebits/code_block_component.html.erb +17 -0
  86. data/app/components/hotwirebits/code_block_component.rb +19 -0
  87. data/app/components/hotwirebits/code_highlight_component.html.erb +6 -0
  88. data/app/components/hotwirebits/code_highlight_component.rb +32 -0
  89. data/app/components/hotwirebits/code_mockup_component.html.erb +13 -0
  90. data/app/components/hotwirebits/code_mockup_component.rb +19 -0
  91. data/app/components/hotwirebits/collapsible_component.html.erb +17 -0
  92. data/app/components/hotwirebits/collapsible_component.rb +11 -0
  93. data/app/components/hotwirebits/color_input_component.html.erb +19 -0
  94. data/app/components/hotwirebits/color_input_component.rb +14 -0
  95. data/app/components/hotwirebits/color_picker_component.html.erb +6 -0
  96. data/app/components/hotwirebits/color_picker_component.rb +37 -0
  97. data/app/components/hotwirebits/color_swatch_component.html.erb +1 -0
  98. data/app/components/hotwirebits/color_swatch_component.rb +18 -0
  99. data/app/components/hotwirebits/combobox_component.html.erb +15 -0
  100. data/app/components/hotwirebits/combobox_component.rb +56 -0
  101. data/app/components/hotwirebits/command_bar_component.html.erb +33 -0
  102. data/app/components/hotwirebits/command_bar_component.rb +11 -0
  103. data/app/components/hotwirebits/compare_component.html.erb +21 -0
  104. data/app/components/hotwirebits/compare_component.rb +17 -0
  105. data/app/components/hotwirebits/confirm_dialog_component.html.erb +17 -0
  106. data/app/components/hotwirebits/confirm_dialog_component.rb +23 -0
  107. data/app/components/hotwirebits/confirm_popup_component.html.erb +16 -0
  108. data/app/components/hotwirebits/confirm_popup_component.rb +31 -0
  109. data/app/components/hotwirebits/contact_section_component.html.erb +53 -0
  110. data/app/components/hotwirebits/contact_section_component.rb +17 -0
  111. data/app/components/hotwirebits/container_component.html.erb +3 -0
  112. data/app/components/hotwirebits/container_component.rb +29 -0
  113. data/app/components/hotwirebits/context_menu_component.html.erb +27 -0
  114. data/app/components/hotwirebits/context_menu_component.rb +14 -0
  115. data/app/components/hotwirebits/cookie_consent_component.html.erb +23 -0
  116. data/app/components/hotwirebits/cookie_consent_component.rb +28 -0
  117. data/app/components/hotwirebits/cookie_settings_component.html.erb +48 -0
  118. data/app/components/hotwirebits/cookie_settings_component.rb +10 -0
  119. data/app/components/hotwirebits/countdown_component.html.erb +8 -0
  120. data/app/components/hotwirebits/countdown_component.rb +14 -0
  121. data/app/components/hotwirebits/cta_section_component.html.erb +33 -0
  122. data/app/components/hotwirebits/cta_section_component.rb +23 -0
  123. data/app/components/hotwirebits/dashboard_card_component.html.erb +32 -0
  124. data/app/components/hotwirebits/dashboard_card_component.rb +25 -0
  125. data/app/components/hotwirebits/data_table_component.html.erb +53 -0
  126. data/app/components/hotwirebits/data_table_component.rb +40 -0
  127. data/app/components/hotwirebits/data_view_component.html.erb +21 -0
  128. data/app/components/hotwirebits/data_view_component.rb +76 -0
  129. data/app/components/hotwirebits/date_picker_component.html.erb +8 -0
  130. data/app/components/hotwirebits/date_picker_component.rb +61 -0
  131. data/app/components/hotwirebits/date_range_picker_component.html.erb +28 -0
  132. data/app/components/hotwirebits/date_range_picker_component.rb +14 -0
  133. data/app/components/hotwirebits/device_frame_component.html.erb +40 -0
  134. data/app/components/hotwirebits/device_frame_component.rb +36 -0
  135. data/app/components/hotwirebits/device_mockup_component.html.erb +51 -0
  136. data/app/components/hotwirebits/device_mockup_component.rb +37 -0
  137. data/app/components/hotwirebits/dialog_component.html.erb +41 -0
  138. data/app/components/hotwirebits/dialog_component.rb +49 -0
  139. data/app/components/hotwirebits/diff_component.html.erb +22 -0
  140. data/app/components/hotwirebits/diff_component.rb +21 -0
  141. data/app/components/hotwirebits/diff_view_component.html.erb +22 -0
  142. data/app/components/hotwirebits/diff_view_component.rb +39 -0
  143. data/app/components/hotwirebits/digital_signature_component.html.erb +21 -0
  144. data/app/components/hotwirebits/digital_signature_component.rb +14 -0
  145. data/app/components/hotwirebits/divider_component.html.erb +11 -0
  146. data/app/components/hotwirebits/divider_component.rb +29 -0
  147. data/app/components/hotwirebits/dock_menu_component.html.erb +21 -0
  148. data/app/components/hotwirebits/dock_menu_component.rb +10 -0
  149. data/app/components/hotwirebits/drag_drop_list_component.html.erb +16 -0
  150. data/app/components/hotwirebits/drag_drop_list_component.rb +20 -0
  151. data/app/components/hotwirebits/drawer_component.html.erb +38 -0
  152. data/app/components/hotwirebits/drawer_component.rb +21 -0
  153. data/app/components/hotwirebits/dropdown_component.html.erb +27 -0
  154. data/app/components/hotwirebits/dropdown_component.rb +21 -0
  155. data/app/components/hotwirebits/dropzone_component.html.erb +16 -0
  156. data/app/components/hotwirebits/dropzone_component.rb +15 -0
  157. data/app/components/hotwirebits/empty_cart_component.html.erb +19 -0
  158. data/app/components/hotwirebits/empty_cart_component.rb +14 -0
  159. data/app/components/hotwirebits/empty_state_component.html.erb +20 -0
  160. data/app/components/hotwirebits/empty_state_component.rb +14 -0
  161. data/app/components/hotwirebits/error_page_component.html.erb +14 -0
  162. data/app/components/hotwirebits/error_page_component.rb +30 -0
  163. data/app/components/hotwirebits/faq_section_component.html.erb +26 -0
  164. data/app/components/hotwirebits/faq_section_component.rb +18 -0
  165. data/app/components/hotwirebits/feature_section_component.html.erb +27 -0
  166. data/app/components/hotwirebits/feature_section_component.rb +24 -0
  167. data/app/components/hotwirebits/feedback_component.html.erb +51 -0
  168. data/app/components/hotwirebits/feedback_component.rb +23 -0
  169. data/app/components/hotwirebits/fieldset_component.html.erb +11 -0
  170. data/app/components/hotwirebits/fieldset_component.rb +21 -0
  171. data/app/components/hotwirebits/file_browser_component.html.erb +35 -0
  172. data/app/components/hotwirebits/file_browser_component.rb +11 -0
  173. data/app/components/hotwirebits/file_input_component.html.erb +7 -0
  174. data/app/components/hotwirebits/file_input_component.rb +25 -0
  175. data/app/components/hotwirebits/file_upload_progress_component.html.erb +26 -0
  176. data/app/components/hotwirebits/file_upload_progress_component.rb +33 -0
  177. data/app/components/hotwirebits/flex_component.html.erb +3 -0
  178. data/app/components/hotwirebits/flex_component.rb +37 -0
  179. data/app/components/hotwirebits/float_label_component.html.erb +4 -0
  180. data/app/components/hotwirebits/float_label_component.rb +11 -0
  181. data/app/components/hotwirebits/fluid_component.html.erb +3 -0
  182. data/app/components/hotwirebits/fluid_component.rb +13 -0
  183. data/app/components/hotwirebits/flyout_menu_component.html.erb +35 -0
  184. data/app/components/hotwirebits/flyout_menu_component.rb +25 -0
  185. data/app/components/hotwirebits/footer_component.html.erb +43 -0
  186. data/app/components/hotwirebits/footer_component.rb +13 -0
  187. data/app/components/hotwirebits/form_fieldset_component.html.erb +9 -0
  188. data/app/components/hotwirebits/form_fieldset_component.rb +11 -0
  189. data/app/components/hotwirebits/form_group_component.html.erb +31 -0
  190. data/app/components/hotwirebits/form_group_component.rb +15 -0
  191. data/app/components/hotwirebits/gallery_component.html.erb +25 -0
  192. data/app/components/hotwirebits/gallery_component.rb +29 -0
  193. data/app/components/hotwirebits/grid_component.html.erb +3 -0
  194. data/app/components/hotwirebits/grid_component.rb +31 -0
  195. data/app/components/hotwirebits/group_component.html.erb +3 -0
  196. data/app/components/hotwirebits/group_component.rb +27 -0
  197. data/app/components/hotwirebits/header_component.html.erb +25 -0
  198. data/app/components/hotwirebits/header_component.rb +23 -0
  199. data/app/components/hotwirebits/header_section_component.html.erb +33 -0
  200. data/app/components/hotwirebits/header_section_component.rb +18 -0
  201. data/app/components/hotwirebits/hero_component.html.erb +35 -0
  202. data/app/components/hotwirebits/hero_component.rb +36 -0
  203. data/app/components/hotwirebits/highlight_component.html.erb +1 -0
  204. data/app/components/hotwirebits/highlight_component.rb +21 -0
  205. data/app/components/hotwirebits/hover3d_card_component.html.erb +10 -0
  206. data/app/components/hotwirebits/hover3d_card_component.rb +16 -0
  207. data/app/components/hotwirebits/hover_card_component.html.erb +19 -0
  208. data/app/components/hotwirebits/hover_card_component.rb +35 -0
  209. data/app/components/hotwirebits/hover_gallery_component.html.erb +23 -0
  210. data/app/components/hotwirebits/hover_gallery_component.rb +15 -0
  211. data/app/components/hotwirebits/icon_field_component.html.erb +9 -0
  212. data/app/components/hotwirebits/icon_field_component.rb +35 -0
  213. data/app/components/hotwirebits/ifta_label_component.html.erb +4 -0
  214. data/app/components/hotwirebits/ifta_label_component.rb +11 -0
  215. data/app/components/hotwirebits/image_compare_component.html.erb +21 -0
  216. data/app/components/hotwirebits/image_compare_component.rb +19 -0
  217. data/app/components/hotwirebits/image_component.html.erb +22 -0
  218. data/app/components/hotwirebits/image_component.rb +23 -0
  219. data/app/components/hotwirebits/image_zoom_component.html.erb +8 -0
  220. data/app/components/hotwirebits/image_zoom_component.rb +17 -0
  221. data/app/components/hotwirebits/incentive_component.html.erb +11 -0
  222. data/app/components/hotwirebits/incentive_component.rb +16 -0
  223. data/app/components/hotwirebits/indicator_badge_component.html.erb +8 -0
  224. data/app/components/hotwirebits/indicator_badge_component.rb +33 -0
  225. data/app/components/hotwirebits/indicator_component.html.erb +6 -0
  226. data/app/components/hotwirebits/indicator_component.rb +30 -0
  227. data/app/components/hotwirebits/inline_edit_component.html.erb +50 -0
  228. data/app/components/hotwirebits/inline_edit_component.rb +16 -0
  229. data/app/components/hotwirebits/inplace_component.html.erb +6 -0
  230. data/app/components/hotwirebits/inplace_component.rb +39 -0
  231. data/app/components/hotwirebits/input_component.html.erb +13 -0
  232. data/app/components/hotwirebits/input_component.rb +97 -0
  233. data/app/components/hotwirebits/input_group_component.html.erb +9 -0
  234. data/app/components/hotwirebits/input_group_component.rb +38 -0
  235. data/app/components/hotwirebits/input_number_component.html.erb +14 -0
  236. data/app/components/hotwirebits/input_number_component.rb +78 -0
  237. data/app/components/hotwirebits/input_otp_component.html.erb +6 -0
  238. data/app/components/hotwirebits/input_otp_component.rb +29 -0
  239. data/app/components/hotwirebits/input_tags_component.html.erb +12 -0
  240. data/app/components/hotwirebits/input_tags_component.rb +31 -0
  241. data/app/components/hotwirebits/join_component.html.erb +3 -0
  242. data/app/components/hotwirebits/join_component.rb +18 -0
  243. data/app/components/hotwirebits/json_input_component.html.erb +14 -0
  244. data/app/components/hotwirebits/json_input_component.rb +20 -0
  245. data/app/components/hotwirebits/kanban_board_component.html.erb +39 -0
  246. data/app/components/hotwirebits/kanban_board_component.rb +17 -0
  247. data/app/components/hotwirebits/kbd_component.html.erb +1 -0
  248. data/app/components/hotwirebits/kbd_component.rb +27 -0
  249. data/app/components/hotwirebits/knob_component.html.erb +16 -0
  250. data/app/components/hotwirebits/knob_component.rb +23 -0
  251. data/app/components/hotwirebits/label_component.html.erb +5 -0
  252. data/app/components/hotwirebits/label_component.rb +18 -0
  253. data/app/components/hotwirebits/lightbox_component.html.erb +30 -0
  254. data/app/components/hotwirebits/lightbox_component.rb +11 -0
  255. data/app/components/hotwirebits/like_button_component.html.erb +15 -0
  256. data/app/components/hotwirebits/like_button_component.rb +23 -0
  257. data/app/components/hotwirebits/list_component.html.erb +3 -0
  258. data/app/components/hotwirebits/list_component.rb +19 -0
  259. data/app/components/hotwirebits/listbox_component.html.erb +16 -0
  260. data/app/components/hotwirebits/listbox_component.rb +52 -0
  261. data/app/components/hotwirebits/loading_overlay_component.html.erb +12 -0
  262. data/app/components/hotwirebits/loading_overlay_component.rb +23 -0
  263. data/app/components/hotwirebits/logo_cloud_component.html.erb +20 -0
  264. data/app/components/hotwirebits/logo_cloud_component.rb +23 -0
  265. data/app/components/hotwirebits/logo_item_component.html.erb +7 -0
  266. data/app/components/hotwirebits/logo_item_component.rb +20 -0
  267. data/app/components/hotwirebits/mark_component.html.erb +1 -0
  268. data/app/components/hotwirebits/mark_component.rb +17 -0
  269. data/app/components/hotwirebits/marquee_component.html.erb +29 -0
  270. data/app/components/hotwirebits/marquee_component.rb +38 -0
  271. data/app/components/hotwirebits/mask_component.html.erb +3 -0
  272. data/app/components/hotwirebits/mask_component.rb +25 -0
  273. data/app/components/hotwirebits/mega_menu_component.html.erb +43 -0
  274. data/app/components/hotwirebits/mega_menu_component.rb +11 -0
  275. data/app/components/hotwirebits/menu_component.html.erb +32 -0
  276. data/app/components/hotwirebits/menu_component.rb +20 -0
  277. data/app/components/hotwirebits/menubar_component.html.erb +30 -0
  278. data/app/components/hotwirebits/menubar_component.rb +10 -0
  279. data/app/components/hotwirebits/meter_group_component.html.erb +16 -0
  280. data/app/components/hotwirebits/meter_group_component.rb +36 -0
  281. data/app/components/hotwirebits/month_picker_component.html.erb +25 -0
  282. data/app/components/hotwirebits/month_picker_component.rb +51 -0
  283. data/app/components/hotwirebits/month_picker_input_component.html.erb +20 -0
  284. data/app/components/hotwirebits/month_picker_input_component.rb +21 -0
  285. data/app/components/hotwirebits/multiselect_component.html.erb +18 -0
  286. data/app/components/hotwirebits/multiselect_component.rb +56 -0
  287. data/app/components/hotwirebits/native_select_component.html.erb +10 -0
  288. data/app/components/hotwirebits/native_select_component.rb +20 -0
  289. data/app/components/hotwirebits/nav_link_component.html.erb +9 -0
  290. data/app/components/hotwirebits/nav_link_component.rb +23 -0
  291. data/app/components/hotwirebits/navbar_component.html.erb +25 -0
  292. data/app/components/hotwirebits/navbar_component.rb +26 -0
  293. data/app/components/hotwirebits/navigation_menu_component.html.erb +43 -0
  294. data/app/components/hotwirebits/navigation_menu_component.rb +10 -0
  295. data/app/components/hotwirebits/newsletter_section_component.html.erb +18 -0
  296. data/app/components/hotwirebits/newsletter_section_component.rb +15 -0
  297. data/app/components/hotwirebits/notification_bell_component.html.erb +18 -0
  298. data/app/components/hotwirebits/notification_bell_component.rb +22 -0
  299. data/app/components/hotwirebits/notification_component.html.erb +28 -0
  300. data/app/components/hotwirebits/notification_component.rb +23 -0
  301. data/app/components/hotwirebits/number_formatter_component.html.erb +1 -0
  302. data/app/components/hotwirebits/number_formatter_component.rb +27 -0
  303. data/app/components/hotwirebits/number_input_component.html.erb +1 -0
  304. data/app/components/hotwirebits/number_input_component.rb +32 -0
  305. data/app/components/hotwirebits/order_summary_component.html.erb +37 -0
  306. data/app/components/hotwirebits/order_summary_component.rb +23 -0
  307. data/app/components/hotwirebits/org_chart_component.html.erb +34 -0
  308. data/app/components/hotwirebits/org_chart_component.rb +14 -0
  309. data/app/components/hotwirebits/page_heading_component.html.erb +28 -0
  310. data/app/components/hotwirebits/page_heading_component.rb +18 -0
  311. data/app/components/hotwirebits/pagination_component.html.erb +29 -0
  312. data/app/components/hotwirebits/pagination_component.rb +32 -0
  313. data/app/components/hotwirebits/paginator_component.html.erb +36 -0
  314. data/app/components/hotwirebits/paginator_component.rb +44 -0
  315. data/app/components/hotwirebits/panel_component.html.erb +14 -0
  316. data/app/components/hotwirebits/panel_component.rb +48 -0
  317. data/app/components/hotwirebits/password_input_component.html.erb +8 -0
  318. data/app/components/hotwirebits/password_input_component.rb +72 -0
  319. data/app/components/hotwirebits/password_strength_component.html.erb +18 -0
  320. data/app/components/hotwirebits/password_strength_component.rb +24 -0
  321. data/app/components/hotwirebits/password_toggle_component.html.erb +15 -0
  322. data/app/components/hotwirebits/password_toggle_component.rb +10 -0
  323. data/app/components/hotwirebits/permission_badge_component.html.erb +15 -0
  324. data/app/components/hotwirebits/permission_badge_component.rb +33 -0
  325. data/app/components/hotwirebits/phone_input_component.html.erb +1 -0
  326. data/app/components/hotwirebits/phone_input_component.rb +29 -0
  327. data/app/components/hotwirebits/phone_mockup_component.html.erb +12 -0
  328. data/app/components/hotwirebits/phone_mockup_component.rb +30 -0
  329. data/app/components/hotwirebits/popover_component.html.erb +20 -0
  330. data/app/components/hotwirebits/popover_component.rb +45 -0
  331. data/app/components/hotwirebits/portal_component.html.erb +3 -0
  332. data/app/components/hotwirebits/portal_component.rb +10 -0
  333. data/app/components/hotwirebits/pricing_section_component.html.erb +46 -0
  334. data/app/components/hotwirebits/pricing_section_component.rb +19 -0
  335. data/app/components/hotwirebits/product_list_component.html.erb +24 -0
  336. data/app/components/hotwirebits/product_list_component.rb +21 -0
  337. data/app/components/hotwirebits/product_overview_component.html.erb +59 -0
  338. data/app/components/hotwirebits/product_overview_component.rb +19 -0
  339. data/app/components/hotwirebits/product_quickview_component.html.erb +45 -0
  340. data/app/components/hotwirebits/product_quickview_component.rb +15 -0
  341. data/app/components/hotwirebits/progress_component.html.erb +10 -0
  342. data/app/components/hotwirebits/progress_component.rb +49 -0
  343. data/app/components/hotwirebits/progress_ring_component.html.erb +26 -0
  344. data/app/components/hotwirebits/progress_ring_component.rb +47 -0
  345. data/app/components/hotwirebits/promo_section_component.html.erb +31 -0
  346. data/app/components/hotwirebits/promo_section_component.rb +30 -0
  347. data/app/components/hotwirebits/qr_code_component.html.erb +19 -0
  348. data/app/components/hotwirebits/qr_code_component.rb +177 -0
  349. data/app/components/hotwirebits/radio_component.html.erb +6 -0
  350. data/app/components/hotwirebits/radio_component.rb +40 -0
  351. data/app/components/hotwirebits/range_slider_component.html.erb +9 -0
  352. data/app/components/hotwirebits/range_slider_component.rb +57 -0
  353. data/app/components/hotwirebits/rating_component.html.erb +11 -0
  354. data/app/components/hotwirebits/rating_component.rb +53 -0
  355. data/app/components/hotwirebits/resizable_component.html.erb +19 -0
  356. data/app/components/hotwirebits/resizable_component.rb +35 -0
  357. data/app/components/hotwirebits/review_component.html.erb +36 -0
  358. data/app/components/hotwirebits/review_component.rb +19 -0
  359. data/app/components/hotwirebits/rich_text_editor_component.html.erb +55 -0
  360. data/app/components/hotwirebits/rich_text_editor_component.rb +15 -0
  361. data/app/components/hotwirebits/scroll_area_component.html.erb +3 -0
  362. data/app/components/hotwirebits/scroll_area_component.rb +28 -0
  363. data/app/components/hotwirebits/search_component.html.erb +56 -0
  364. data/app/components/hotwirebits/search_component.rb +21 -0
  365. data/app/components/hotwirebits/search_input_component.html.erb +6 -0
  366. data/app/components/hotwirebits/search_input_component.rb +50 -0
  367. data/app/components/hotwirebits/section_heading_component.html.erb +6 -0
  368. data/app/components/hotwirebits/section_heading_component.rb +26 -0
  369. data/app/components/hotwirebits/select_component.html.erb +16 -0
  370. data/app/components/hotwirebits/select_component.rb +38 -0
  371. data/app/components/hotwirebits/semi_circle_progress_component.html.erb +9 -0
  372. data/app/components/hotwirebits/semi_circle_progress_component.rb +52 -0
  373. data/app/components/hotwirebits/separator_component.html.erb +9 -0
  374. data/app/components/hotwirebits/separator_component.rb +26 -0
  375. data/app/components/hotwirebits/sheet_component.html.erb +42 -0
  376. data/app/components/hotwirebits/sheet_component.rb +44 -0
  377. data/app/components/hotwirebits/shopping_cart_component.html.erb +46 -0
  378. data/app/components/hotwirebits/shopping_cart_component.rb +17 -0
  379. data/app/components/hotwirebits/sidebar_component.html.erb +40 -0
  380. data/app/components/hotwirebits/sidebar_component.rb +29 -0
  381. data/app/components/hotwirebits/simple_grid_component.html.erb +3 -0
  382. data/app/components/hotwirebits/simple_grid_component.rb +23 -0
  383. data/app/components/hotwirebits/skeleton_card_component.html.erb +15 -0
  384. data/app/components/hotwirebits/skeleton_card_component.rb +17 -0
  385. data/app/components/hotwirebits/skeleton_component.html.erb +5 -0
  386. data/app/components/hotwirebits/skeleton_component.rb +39 -0
  387. data/app/components/hotwirebits/slider_component.html.erb +3 -0
  388. data/app/components/hotwirebits/slider_component.rb +34 -0
  389. data/app/components/hotwirebits/social_share_component.html.erb +20 -0
  390. data/app/components/hotwirebits/social_share_component.rb +25 -0
  391. data/app/components/hotwirebits/space_component.html.erb +1 -0
  392. data/app/components/hotwirebits/space_component.rb +22 -0
  393. data/app/components/hotwirebits/speed_dial_component.html.erb +24 -0
  394. data/app/components/hotwirebits/speed_dial_component.rb +41 -0
  395. data/app/components/hotwirebits/speed_dial_fab_component.html.erb +30 -0
  396. data/app/components/hotwirebits/speed_dial_fab_component.rb +27 -0
  397. data/app/components/hotwirebits/spinner_component.html.erb +10 -0
  398. data/app/components/hotwirebits/spinner_component.rb +20 -0
  399. data/app/components/hotwirebits/split_button_component.html.erb +20 -0
  400. data/app/components/hotwirebits/split_button_component.rb +33 -0
  401. data/app/components/hotwirebits/splitter_component.html.erb +9 -0
  402. data/app/components/hotwirebits/splitter_component.rb +38 -0
  403. data/app/components/hotwirebits/spoiler_component.html.erb +17 -0
  404. data/app/components/hotwirebits/spoiler_component.rb +12 -0
  405. data/app/components/hotwirebits/stack_component.html.erb +3 -0
  406. data/app/components/hotwirebits/stack_component.rb +28 -0
  407. data/app/components/hotwirebits/stacked_list_component.html.erb +20 -0
  408. data/app/components/hotwirebits/stacked_list_component.rb +18 -0
  409. data/app/components/hotwirebits/stat_component.html.erb +21 -0
  410. data/app/components/hotwirebits/stat_component.rb +26 -0
  411. data/app/components/hotwirebits/stats_component.html.erb +15 -0
  412. data/app/components/hotwirebits/stats_component.rb +25 -0
  413. data/app/components/hotwirebits/status_bar_component.html.erb +13 -0
  414. data/app/components/hotwirebits/status_bar_component.rb +20 -0
  415. data/app/components/hotwirebits/status_component.html.erb +6 -0
  416. data/app/components/hotwirebits/status_component.rb +30 -0
  417. data/app/components/hotwirebits/status_dot_component.html.erb +11 -0
  418. data/app/components/hotwirebits/status_dot_component.rb +37 -0
  419. data/app/components/hotwirebits/stepper_form_component.html.erb +55 -0
  420. data/app/components/hotwirebits/stepper_form_component.rb +23 -0
  421. data/app/components/hotwirebits/steps_component.html.erb +45 -0
  422. data/app/components/hotwirebits/steps_component.rb +44 -0
  423. data/app/components/hotwirebits/swap_component.html.erb +18 -0
  424. data/app/components/hotwirebits/swap_component.rb +29 -0
  425. data/app/components/hotwirebits/switch_component.html.erb +9 -0
  426. data/app/components/hotwirebits/switch_component.rb +51 -0
  427. data/app/components/hotwirebits/table_component.html.erb +5 -0
  428. data/app/components/hotwirebits/table_component.rb +27 -0
  429. data/app/components/hotwirebits/table_of_contents_component.html.erb +12 -0
  430. data/app/components/hotwirebits/table_of_contents_component.rb +23 -0
  431. data/app/components/hotwirebits/tabs_component.html.erb +43 -0
  432. data/app/components/hotwirebits/tabs_component.rb +58 -0
  433. data/app/components/hotwirebits/tag_component.html.erb +3 -0
  434. data/app/components/hotwirebits/tag_component.rb +35 -0
  435. data/app/components/hotwirebits/tag_input_component.html.erb +14 -0
  436. data/app/components/hotwirebits/tag_input_component.rb +56 -0
  437. data/app/components/hotwirebits/team_section_component.html.erb +39 -0
  438. data/app/components/hotwirebits/team_section_component.rb +20 -0
  439. data/app/components/hotwirebits/terminal_component.html.erb +21 -0
  440. data/app/components/hotwirebits/terminal_component.rb +11 -0
  441. data/app/components/hotwirebits/testimonial_component.html.erb +29 -0
  442. data/app/components/hotwirebits/testimonial_component.rb +22 -0
  443. data/app/components/hotwirebits/testimonials_section_component.html.erb +34 -0
  444. data/app/components/hotwirebits/testimonials_section_component.rb +23 -0
  445. data/app/components/hotwirebits/text_gradient_component.html.erb +3 -0
  446. data/app/components/hotwirebits/text_gradient_component.rb +18 -0
  447. data/app/components/hotwirebits/text_rotate_component.html.erb +7 -0
  448. data/app/components/hotwirebits/text_rotate_component.rb +24 -0
  449. data/app/components/hotwirebits/textarea_component.html.erb +1 -0
  450. data/app/components/hotwirebits/textarea_component.rb +35 -0
  451. data/app/components/hotwirebits/theme_controller_component.html.erb +13 -0
  452. data/app/components/hotwirebits/theme_controller_component.rb +11 -0
  453. data/app/components/hotwirebits/theme_icon_component.html.erb +3 -0
  454. data/app/components/hotwirebits/theme_icon_component.rb +18 -0
  455. data/app/components/hotwirebits/theme_selector_component.html.erb +27 -0
  456. data/app/components/hotwirebits/theme_selector_component.rb +11 -0
  457. data/app/components/hotwirebits/time_picker_component.html.erb +29 -0
  458. data/app/components/hotwirebits/time_picker_component.rb +28 -0
  459. data/app/components/hotwirebits/timeline_component.html.erb +24 -0
  460. data/app/components/hotwirebits/timeline_component.rb +17 -0
  461. data/app/components/hotwirebits/toast_component.html.erb +34 -0
  462. data/app/components/hotwirebits/toast_component.rb +47 -0
  463. data/app/components/hotwirebits/toggle_button_component.html.erb +4 -0
  464. data/app/components/hotwirebits/toggle_button_component.rb +31 -0
  465. data/app/components/hotwirebits/toggle_button_group_component.html.erb +8 -0
  466. data/app/components/hotwirebits/toggle_button_group_component.rb +54 -0
  467. data/app/components/hotwirebits/toggle_component.html.erb +3 -0
  468. data/app/components/hotwirebits/toggle_component.rb +38 -0
  469. data/app/components/hotwirebits/toolbar_component.html.erb +18 -0
  470. data/app/components/hotwirebits/toolbar_component.rb +50 -0
  471. data/app/components/hotwirebits/tooltip_component.html.erb +16 -0
  472. data/app/components/hotwirebits/tooltip_component.rb +32 -0
  473. data/app/components/hotwirebits/tree_view_component.html.erb +7 -0
  474. data/app/components/hotwirebits/tree_view_component.rb +47 -0
  475. data/app/components/hotwirebits/two_factor_component.html.erb +26 -0
  476. data/app/components/hotwirebits/two_factor_component.rb +14 -0
  477. data/app/components/hotwirebits/typing_indicator_component.html.erb +5 -0
  478. data/app/components/hotwirebits/typing_indicator_component.rb +33 -0
  479. data/app/components/hotwirebits/typography_component.html.erb +3 -0
  480. data/app/components/hotwirebits/typography_component.rb +35 -0
  481. data/app/components/hotwirebits/validator_component.html.erb +20 -0
  482. data/app/components/hotwirebits/validator_component.rb +12 -0
  483. data/app/components/hotwirebits/version_diff_component.html.erb +17 -0
  484. data/app/components/hotwirebits/version_diff_component.rb +38 -0
  485. data/app/components/hotwirebits/video_player_component.html.erb +11 -0
  486. data/app/components/hotwirebits/video_player_component.rb +29 -0
  487. data/app/components/hotwirebits/voice_recorder_component.html.erb +29 -0
  488. data/app/components/hotwirebits/voice_recorder_component.rb +14 -0
  489. data/app/components/hotwirebits/window_mockup_component.html.erb +20 -0
  490. data/app/components/hotwirebits/window_mockup_component.rb +11 -0
  491. data/app/helpers/hotwirebits_helper.rb +738 -0
  492. data/app/javascript/controllers/hotwirebits/index.js +216 -0
  493. data/app/javascript/controllers/hotwirebits/rb_accordion_controller.js +16 -0
  494. data/app/javascript/controllers/hotwirebits/rb_activity_feed_controller.js +11 -0
  495. data/app/javascript/controllers/hotwirebits/rb_ai_chat_controller.js +21 -0
  496. data/app/javascript/controllers/hotwirebits/rb_alert_controller.js +24 -0
  497. data/app/javascript/controllers/hotwirebits/rb_angle_slider_controller.js +11 -0
  498. data/app/javascript/controllers/hotwirebits/rb_animated_number_controller.js +7 -0
  499. data/app/javascript/controllers/hotwirebits/rb_autocomplete_controller.js +34 -0
  500. data/app/javascript/controllers/hotwirebits/rb_badge_controller.js +8 -0
  501. data/app/javascript/controllers/hotwirebits/rb_banner_controller.js +27 -0
  502. data/app/javascript/controllers/hotwirebits/rb_burger_controller.js +25 -0
  503. data/app/javascript/controllers/hotwirebits/rb_calendar_controller.js +85 -0
  504. data/app/javascript/controllers/hotwirebits/rb_carousel_controller.js +74 -0
  505. data/app/javascript/controllers/hotwirebits/rb_clipboard_controller.js +42 -0
  506. data/app/javascript/controllers/hotwirebits/rb_code_highlight_controller.js +7 -0
  507. data/app/javascript/controllers/hotwirebits/rb_collapsible_controller.js +51 -0
  508. data/app/javascript/controllers/hotwirebits/rb_color_input_controller.js +7 -0
  509. data/app/javascript/controllers/hotwirebits/rb_color_picker_controller.js +7 -0
  510. data/app/javascript/controllers/hotwirebits/rb_combobox_controller.js +91 -0
  511. data/app/javascript/controllers/hotwirebits/rb_command_bar_controller.js +32 -0
  512. data/app/javascript/controllers/hotwirebits/rb_compare_controller.js +18 -0
  513. data/app/javascript/controllers/hotwirebits/rb_confirm_dialog_controller.js +11 -0
  514. data/app/javascript/controllers/hotwirebits/rb_confirm_popup_controller.js +10 -0
  515. data/app/javascript/controllers/hotwirebits/rb_context_menu_controller.js +27 -0
  516. data/app/javascript/controllers/hotwirebits/rb_cookie_consent_controller.js +60 -0
  517. data/app/javascript/controllers/hotwirebits/rb_cookie_settings_controller.js +9 -0
  518. data/app/javascript/controllers/hotwirebits/rb_countdown_controller.js +60 -0
  519. data/app/javascript/controllers/hotwirebits/rb_data_view_controller.js +10 -0
  520. data/app/javascript/controllers/hotwirebits/rb_date_range_controller.js +9 -0
  521. data/app/javascript/controllers/hotwirebits/rb_datepicker_controller.js +107 -0
  522. data/app/javascript/controllers/hotwirebits/rb_dialog_controller.js +68 -0
  523. data/app/javascript/controllers/hotwirebits/rb_drag_drop_controller.js +21 -0
  524. data/app/javascript/controllers/hotwirebits/rb_drawer_controller.js +69 -0
  525. data/app/javascript/controllers/hotwirebits/rb_dropdown_controller.js +73 -0
  526. data/app/javascript/controllers/hotwirebits/rb_feedback_controller.js +50 -0
  527. data/app/javascript/controllers/hotwirebits/rb_file_browser_controller.js +9 -0
  528. data/app/javascript/controllers/hotwirebits/rb_highlight_controller.js +47 -0
  529. data/app/javascript/controllers/hotwirebits/rb_hover_3d_controller.js +7 -0
  530. data/app/javascript/controllers/hotwirebits/rb_hover_card_controller.js +19 -0
  531. data/app/javascript/controllers/hotwirebits/rb_hover_gallery_controller.js +7 -0
  532. data/app/javascript/controllers/hotwirebits/rb_image_compare_controller.js +7 -0
  533. data/app/javascript/controllers/hotwirebits/rb_image_controller.js +7 -0
  534. data/app/javascript/controllers/hotwirebits/rb_image_zoom_controller.js +7 -0
  535. data/app/javascript/controllers/hotwirebits/rb_inline_edit_controller.js +7 -0
  536. data/app/javascript/controllers/hotwirebits/rb_inplace_controller.js +7 -0
  537. data/app/javascript/controllers/hotwirebits/rb_input_number_controller.js +9 -0
  538. data/app/javascript/controllers/hotwirebits/rb_json_input_controller.js +7 -0
  539. data/app/javascript/controllers/hotwirebits/rb_kanban_controller.js +78 -0
  540. data/app/javascript/controllers/hotwirebits/rb_knob_controller.js +7 -0
  541. data/app/javascript/controllers/hotwirebits/rb_lightbox_controller.js +36 -0
  542. data/app/javascript/controllers/hotwirebits/rb_like_controller.js +7 -0
  543. data/app/javascript/controllers/hotwirebits/rb_listbox_controller.js +7 -0
  544. data/app/javascript/controllers/hotwirebits/rb_marquee_controller.js +68 -0
  545. data/app/javascript/controllers/hotwirebits/rb_menubar_controller.js +78 -0
  546. data/app/javascript/controllers/hotwirebits/rb_month_picker_controller.js +7 -0
  547. data/app/javascript/controllers/hotwirebits/rb_month_picker_input_controller.js +7 -0
  548. data/app/javascript/controllers/hotwirebits/rb_multiselect_controller.js +83 -0
  549. data/app/javascript/controllers/hotwirebits/rb_nav_menu_controller.js +7 -0
  550. data/app/javascript/controllers/hotwirebits/rb_newsletter_controller.js +7 -0
  551. data/app/javascript/controllers/hotwirebits/rb_notification_controller.js +7 -0
  552. data/app/javascript/controllers/hotwirebits/rb_otp_controller.js +54 -0
  553. data/app/javascript/controllers/hotwirebits/rb_paginator_controller.js +7 -0
  554. data/app/javascript/controllers/hotwirebits/rb_panel_controller.js +12 -0
  555. data/app/javascript/controllers/hotwirebits/rb_password_controller.js +36 -0
  556. data/app/javascript/controllers/hotwirebits/rb_password_strength_controller.js +7 -0
  557. data/app/javascript/controllers/hotwirebits/rb_password_toggle_controller.js +7 -0
  558. data/app/javascript/controllers/hotwirebits/rb_popover_controller.js +61 -0
  559. data/app/javascript/controllers/hotwirebits/rb_portal_controller.js +7 -0
  560. data/app/javascript/controllers/hotwirebits/rb_quickview_controller.js +7 -0
  561. data/app/javascript/controllers/hotwirebits/rb_range_slider_controller.js +7 -0
  562. data/app/javascript/controllers/hotwirebits/rb_rating_controller.js +55 -0
  563. data/app/javascript/controllers/hotwirebits/rb_resizable_controller.js +82 -0
  564. data/app/javascript/controllers/hotwirebits/rb_rich_text_editor_controller.js +7 -0
  565. data/app/javascript/controllers/hotwirebits/rb_search_controller.js +70 -0
  566. data/app/javascript/controllers/hotwirebits/rb_sheet_controller.js +43 -0
  567. data/app/javascript/controllers/hotwirebits/rb_sidebar_controller.js +66 -0
  568. data/app/javascript/controllers/hotwirebits/rb_signature_controller.js +7 -0
  569. data/app/javascript/controllers/hotwirebits/rb_speed_dial_controller.js +64 -0
  570. data/app/javascript/controllers/hotwirebits/rb_splitter_controller.js +27 -0
  571. data/app/javascript/controllers/hotwirebits/rb_spoiler_controller.js +26 -0
  572. data/app/javascript/controllers/hotwirebits/rb_stepper_form_controller.js +11 -0
  573. data/app/javascript/controllers/hotwirebits/rb_steps_controller.js +46 -0
  574. data/app/javascript/controllers/hotwirebits/rb_swap_controller.js +22 -0
  575. data/app/javascript/controllers/hotwirebits/rb_switch_controller.js +33 -0
  576. data/app/javascript/controllers/hotwirebits/rb_tabs_controller.js +46 -0
  577. data/app/javascript/controllers/hotwirebits/rb_tag_input_controller.js +19 -0
  578. data/app/javascript/controllers/hotwirebits/rb_tags_controller.js +50 -0
  579. data/app/javascript/controllers/hotwirebits/rb_text_rotate_controller.js +7 -0
  580. data/app/javascript/controllers/hotwirebits/rb_theme_controller.js +48 -0
  581. data/app/javascript/controllers/hotwirebits/rb_theme_selector_controller.js +7 -0
  582. data/app/javascript/controllers/hotwirebits/rb_time_picker_controller.js +7 -0
  583. data/app/javascript/controllers/hotwirebits/rb_toast_controller.js +43 -0
  584. data/app/javascript/controllers/hotwirebits/rb_toggle_button_controller.js +9 -0
  585. data/app/javascript/controllers/hotwirebits/rb_toggle_button_group_controller.js +12 -0
  586. data/app/javascript/controllers/hotwirebits/rb_toggle_controller.js +28 -0
  587. data/app/javascript/controllers/hotwirebits/rb_tooltip_controller.js +7 -0
  588. data/app/javascript/controllers/hotwirebits/rb_tree_controller.js +58 -0
  589. data/app/javascript/controllers/hotwirebits/rb_two_factor_controller.js +7 -0
  590. data/app/javascript/controllers/hotwirebits/rb_validator_controller.js +7 -0
  591. data/app/javascript/controllers/hotwirebits/rb_voice_recorder_controller.js +7 -0
  592. data/app/views/hotwirebits/_accordion.html.erb +26 -0
  593. data/app/views/hotwirebits/_activity_feed.html.erb +43 -0
  594. data/app/views/hotwirebits/_affix.html.erb +6 -0
  595. data/app/views/hotwirebits/_ai_chat.html.erb +35 -0
  596. data/app/views/hotwirebits/_alert.html.erb +53 -0
  597. data/app/views/hotwirebits/_alert_dialog.html.erb +33 -0
  598. data/app/views/hotwirebits/_anchor.html.erb +12 -0
  599. data/app/views/hotwirebits/_angle_slider.html.erb +12 -0
  600. data/app/views/hotwirebits/_animated_number.html.erb +11 -0
  601. data/app/views/hotwirebits/_app_shell.html.erb +25 -0
  602. data/app/views/hotwirebits/_aspect_ratio.html.erb +6 -0
  603. data/app/views/hotwirebits/_auth_block.html.erb +66 -0
  604. data/app/views/hotwirebits/_autocomplete.html.erb +8 -0
  605. data/app/views/hotwirebits/_avatar.html.erb +32 -0
  606. data/app/views/hotwirebits/_background_image.html.erb +12 -0
  607. data/app/views/hotwirebits/_badge.html.erb +32 -0
  608. data/app/views/hotwirebits/_banner.html.erb +52 -0
  609. data/app/views/hotwirebits/_bento_grid.html.erb +10 -0
  610. data/app/views/hotwirebits/_blog_section.html.erb +38 -0
  611. data/app/views/hotwirebits/_bottom_navigation.html.erb +24 -0
  612. data/app/views/hotwirebits/_box.html.erb +6 -0
  613. data/app/views/hotwirebits/_breadcrumb.html.erb +28 -0
  614. data/app/views/hotwirebits/_breadcrumb_advanced.html.erb +56 -0
  615. data/app/views/hotwirebits/_browser_mockup.html.erb +25 -0
  616. data/app/views/hotwirebits/_burger.html.erb +23 -0
  617. data/app/views/hotwirebits/_button.html.erb +59 -0
  618. data/app/views/hotwirebits/_calendar.html.erb +73 -0
  619. data/app/views/hotwirebits/_card.html.erb +23 -0
  620. data/app/views/hotwirebits/_card_heading.html.erb +16 -0
  621. data/app/views/hotwirebits/_carousel.html.erb +53 -0
  622. data/app/views/hotwirebits/_center.html.erb +6 -0
  623. data/app/views/hotwirebits/_chart.html.erb +71 -0
  624. data/app/views/hotwirebits/_chat_bubble.html.erb +30 -0
  625. data/app/views/hotwirebits/_checkbox.html.erb +25 -0
  626. data/app/views/hotwirebits/_checkout_form.html.erb +43 -0
  627. data/app/views/hotwirebits/_chip.html.erb +30 -0
  628. data/app/views/hotwirebits/_clipboard.html.erb +29 -0
  629. data/app/views/hotwirebits/_close_button.html.erb +6 -0
  630. data/app/views/hotwirebits/_code_block.html.erb +20 -0
  631. data/app/views/hotwirebits/_code_highlight.html.erb +9 -0
  632. data/app/views/hotwirebits/_code_mockup.html.erb +16 -0
  633. data/app/views/hotwirebits/_collapsible.html.erb +20 -0
  634. data/app/views/hotwirebits/_color_input.html.erb +22 -0
  635. data/app/views/hotwirebits/_color_picker.html.erb +9 -0
  636. data/app/views/hotwirebits/_color_swatch.html.erb +4 -0
  637. data/app/views/hotwirebits/_combobox.html.erb +18 -0
  638. data/app/views/hotwirebits/_command_bar.html.erb +36 -0
  639. data/app/views/hotwirebits/_compare.html.erb +24 -0
  640. data/app/views/hotwirebits/_confirm_dialog.html.erb +20 -0
  641. data/app/views/hotwirebits/_confirm_popup.html.erb +19 -0
  642. data/app/views/hotwirebits/_contact_section.html.erb +56 -0
  643. data/app/views/hotwirebits/_container.html.erb +21 -0
  644. data/app/views/hotwirebits/_context_menu.html.erb +30 -0
  645. data/app/views/hotwirebits/_cookie_consent.html.erb +26 -0
  646. data/app/views/hotwirebits/_cookie_settings.html.erb +51 -0
  647. data/app/views/hotwirebits/_countdown.html.erb +11 -0
  648. data/app/views/hotwirebits/_cta_section.html.erb +36 -0
  649. data/app/views/hotwirebits/_dashboard_card.html.erb +35 -0
  650. data/app/views/hotwirebits/_data_table.html.erb +56 -0
  651. data/app/views/hotwirebits/_data_view.html.erb +24 -0
  652. data/app/views/hotwirebits/_date_picker.html.erb +11 -0
  653. data/app/views/hotwirebits/_date_range_picker.html.erb +31 -0
  654. data/app/views/hotwirebits/_device_frame.html.erb +43 -0
  655. data/app/views/hotwirebits/_device_mockup.html.erb +54 -0
  656. data/app/views/hotwirebits/_dialog.html.erb +58 -0
  657. data/app/views/hotwirebits/_diff.html.erb +25 -0
  658. data/app/views/hotwirebits/_diff_view.html.erb +25 -0
  659. data/app/views/hotwirebits/_digital_signature.html.erb +24 -0
  660. data/app/views/hotwirebits/_divider.html.erb +22 -0
  661. data/app/views/hotwirebits/_dock_menu.html.erb +24 -0
  662. data/app/views/hotwirebits/_drag_drop_list.html.erb +19 -0
  663. data/app/views/hotwirebits/_drawer.html.erb +41 -0
  664. data/app/views/hotwirebits/_dropdown.html.erb +33 -0
  665. data/app/views/hotwirebits/_dropzone.html.erb +19 -0
  666. data/app/views/hotwirebits/_empty_cart.html.erb +22 -0
  667. data/app/views/hotwirebits/_empty_state.html.erb +29 -0
  668. data/app/views/hotwirebits/_error_page.html.erb +17 -0
  669. data/app/views/hotwirebits/_faq_section.html.erb +29 -0
  670. data/app/views/hotwirebits/_feature_section.html.erb +30 -0
  671. data/app/views/hotwirebits/_feedback.html.erb +54 -0
  672. data/app/views/hotwirebits/_fieldset.html.erb +14 -0
  673. data/app/views/hotwirebits/_file_browser.html.erb +38 -0
  674. data/app/views/hotwirebits/_file_input.html.erb +10 -0
  675. data/app/views/hotwirebits/_file_upload_progress.html.erb +29 -0
  676. data/app/views/hotwirebits/_flex.html.erb +6 -0
  677. data/app/views/hotwirebits/_float_label.html.erb +7 -0
  678. data/app/views/hotwirebits/_fluid.html.erb +6 -0
  679. data/app/views/hotwirebits/_flyout_menu.html.erb +38 -0
  680. data/app/views/hotwirebits/_footer.html.erb +46 -0
  681. data/app/views/hotwirebits/_form_group.html.erb +43 -0
  682. data/app/views/hotwirebits/_gallery.html.erb +28 -0
  683. data/app/views/hotwirebits/_grid.html.erb +14 -0
  684. data/app/views/hotwirebits/_group.html.erb +6 -0
  685. data/app/views/hotwirebits/_header.html.erb +28 -0
  686. data/app/views/hotwirebits/_header_section.html.erb +36 -0
  687. data/app/views/hotwirebits/_hero.html.erb +38 -0
  688. data/app/views/hotwirebits/_highlight.html.erb +4 -0
  689. data/app/views/hotwirebits/_hover_3d_card.html.erb +13 -0
  690. data/app/views/hotwirebits/_hover_card.html.erb +22 -0
  691. data/app/views/hotwirebits/_hover_gallery.html.erb +26 -0
  692. data/app/views/hotwirebits/_icon_field.html.erb +12 -0
  693. data/app/views/hotwirebits/_ifta_label.html.erb +7 -0
  694. data/app/views/hotwirebits/_image.html.erb +22 -0
  695. data/app/views/hotwirebits/_image_compare.html.erb +24 -0
  696. data/app/views/hotwirebits/_image_zoom.html.erb +11 -0
  697. data/app/views/hotwirebits/_incentive.html.erb +14 -0
  698. data/app/views/hotwirebits/_indicator.html.erb +9 -0
  699. data/app/views/hotwirebits/_indicator_badge.html.erb +11 -0
  700. data/app/views/hotwirebits/_inline_edit.html.erb +53 -0
  701. data/app/views/hotwirebits/_inplace.html.erb +9 -0
  702. data/app/views/hotwirebits/_input.html.erb +33 -0
  703. data/app/views/hotwirebits/_input_group.html.erb +12 -0
  704. data/app/views/hotwirebits/_input_number.html.erb +17 -0
  705. data/app/views/hotwirebits/_input_otp.html.erb +9 -0
  706. data/app/views/hotwirebits/_input_tags.html.erb +15 -0
  707. data/app/views/hotwirebits/_join.html.erb +6 -0
  708. data/app/views/hotwirebits/_json_input.html.erb +17 -0
  709. data/app/views/hotwirebits/_kanban_board.html.erb +42 -0
  710. data/app/views/hotwirebits/_kbd.html.erb +17 -0
  711. data/app/views/hotwirebits/_knob.html.erb +19 -0
  712. data/app/views/hotwirebits/_label.html.erb +8 -0
  713. data/app/views/hotwirebits/_lightbox.html.erb +33 -0
  714. data/app/views/hotwirebits/_like_button.html.erb +18 -0
  715. data/app/views/hotwirebits/_list.html.erb +6 -0
  716. data/app/views/hotwirebits/_listbox.html.erb +19 -0
  717. data/app/views/hotwirebits/_loading_overlay.html.erb +15 -0
  718. data/app/views/hotwirebits/_logo_cloud.html.erb +23 -0
  719. data/app/views/hotwirebits/_logo_item.html.erb +10 -0
  720. data/app/views/hotwirebits/_mark.html.erb +4 -0
  721. data/app/views/hotwirebits/_marquee.html.erb +32 -0
  722. data/app/views/hotwirebits/_mask.html.erb +6 -0
  723. data/app/views/hotwirebits/_mega_menu.html.erb +46 -0
  724. data/app/views/hotwirebits/_menu.html.erb +35 -0
  725. data/app/views/hotwirebits/_menubar.html.erb +33 -0
  726. data/app/views/hotwirebits/_meter_group.html.erb +19 -0
  727. data/app/views/hotwirebits/_month_picker.html.erb +28 -0
  728. data/app/views/hotwirebits/_month_picker_input.html.erb +23 -0
  729. data/app/views/hotwirebits/_multiselect.html.erb +21 -0
  730. data/app/views/hotwirebits/_native_select.html.erb +13 -0
  731. data/app/views/hotwirebits/_nav_link.html.erb +12 -0
  732. data/app/views/hotwirebits/_navbar.html.erb +30 -0
  733. data/app/views/hotwirebits/_navigation_menu.html.erb +46 -0
  734. data/app/views/hotwirebits/_newsletter_section.html.erb +21 -0
  735. data/app/views/hotwirebits/_notification.html.erb +31 -0
  736. data/app/views/hotwirebits/_notification_bell.html.erb +21 -0
  737. data/app/views/hotwirebits/_number_formatter.html.erb +4 -0
  738. data/app/views/hotwirebits/_number_input.html.erb +4 -0
  739. data/app/views/hotwirebits/_order_summary.html.erb +40 -0
  740. data/app/views/hotwirebits/_org_chart.html.erb +37 -0
  741. data/app/views/hotwirebits/_page_heading.html.erb +31 -0
  742. data/app/views/hotwirebits/_pagination.html.erb +46 -0
  743. data/app/views/hotwirebits/_paginator.html.erb +39 -0
  744. data/app/views/hotwirebits/_panel.html.erb +17 -0
  745. data/app/views/hotwirebits/_password_input.html.erb +11 -0
  746. data/app/views/hotwirebits/_password_strength.html.erb +21 -0
  747. data/app/views/hotwirebits/_password_toggle.html.erb +18 -0
  748. data/app/views/hotwirebits/_permission_badge.html.erb +18 -0
  749. data/app/views/hotwirebits/_phone_input.html.erb +4 -0
  750. data/app/views/hotwirebits/_phone_mockup.html.erb +15 -0
  751. data/app/views/hotwirebits/_popover.html.erb +23 -0
  752. data/app/views/hotwirebits/_portal.html.erb +6 -0
  753. data/app/views/hotwirebits/_pricing.html.erb +55 -0
  754. data/app/views/hotwirebits/_pricing_section.html.erb +49 -0
  755. data/app/views/hotwirebits/_product_list.html.erb +27 -0
  756. data/app/views/hotwirebits/_product_overview.html.erb +62 -0
  757. data/app/views/hotwirebits/_product_quickview.html.erb +48 -0
  758. data/app/views/hotwirebits/_progress.html.erb +13 -0
  759. data/app/views/hotwirebits/_progress_ring.html.erb +29 -0
  760. data/app/views/hotwirebits/_promo_section.html.erb +34 -0
  761. data/app/views/hotwirebits/_qr_code.html.erb +22 -0
  762. data/app/views/hotwirebits/_radio.html.erb +9 -0
  763. data/app/views/hotwirebits/_range_slider.html.erb +12 -0
  764. data/app/views/hotwirebits/_rating.html.erb +14 -0
  765. data/app/views/hotwirebits/_resizable.html.erb +22 -0
  766. data/app/views/hotwirebits/_review.html.erb +39 -0
  767. data/app/views/hotwirebits/_rich_text_editor.html.erb +58 -0
  768. data/app/views/hotwirebits/_scroll_area.html.erb +6 -0
  769. data/app/views/hotwirebits/_search.html.erb +59 -0
  770. data/app/views/hotwirebits/_search_input.html.erb +9 -0
  771. data/app/views/hotwirebits/_section_heading.html.erb +9 -0
  772. data/app/views/hotwirebits/_select.html.erb +30 -0
  773. data/app/views/hotwirebits/_semi_circle_progress.html.erb +12 -0
  774. data/app/views/hotwirebits/_separator.html.erb +18 -0
  775. data/app/views/hotwirebits/_sheet.html.erb +45 -0
  776. data/app/views/hotwirebits/_shopping_cart.html.erb +49 -0
  777. data/app/views/hotwirebits/_sidebar.html.erb +39 -0
  778. data/app/views/hotwirebits/_simple_grid.html.erb +6 -0
  779. data/app/views/hotwirebits/_skeleton.html.erb +20 -0
  780. data/app/views/hotwirebits/_skeleton_card.html.erb +18 -0
  781. data/app/views/hotwirebits/_slider.html.erb +17 -0
  782. data/app/views/hotwirebits/_social_share.html.erb +23 -0
  783. data/app/views/hotwirebits/_space.html.erb +4 -0
  784. data/app/views/hotwirebits/_speed_dial.html.erb +27 -0
  785. data/app/views/hotwirebits/_speed_dial_fab.html.erb +33 -0
  786. data/app/views/hotwirebits/_spinner.html.erb +22 -0
  787. data/app/views/hotwirebits/_split_button.html.erb +23 -0
  788. data/app/views/hotwirebits/_splitter.html.erb +12 -0
  789. data/app/views/hotwirebits/_spoiler.html.erb +20 -0
  790. data/app/views/hotwirebits/_stack.html.erb +20 -0
  791. data/app/views/hotwirebits/_stacked_list.html.erb +23 -0
  792. data/app/views/hotwirebits/_stat.html.erb +24 -0
  793. data/app/views/hotwirebits/_stats.html.erb +6 -0
  794. data/app/views/hotwirebits/_status.html.erb +9 -0
  795. data/app/views/hotwirebits/_status_bar.html.erb +16 -0
  796. data/app/views/hotwirebits/_status_dot.html.erb +9 -0
  797. data/app/views/hotwirebits/_stepper_form.html.erb +58 -0
  798. data/app/views/hotwirebits/_steps.html.erb +48 -0
  799. data/app/views/hotwirebits/_swap.html.erb +20 -0
  800. data/app/views/hotwirebits/_switch.html.erb +19 -0
  801. data/app/views/hotwirebits/_table.html.erb +8 -0
  802. data/app/views/hotwirebits/_table_of_contents.html.erb +15 -0
  803. data/app/views/hotwirebits/_tabs.html.erb +44 -0
  804. data/app/views/hotwirebits/_tag.html.erb +20 -0
  805. data/app/views/hotwirebits/_tag_input.html.erb +17 -0
  806. data/app/views/hotwirebits/_team_section.html.erb +42 -0
  807. data/app/views/hotwirebits/_terminal.html.erb +24 -0
  808. data/app/views/hotwirebits/_testimonial.html.erb +32 -0
  809. data/app/views/hotwirebits/_testimonials_section.html.erb +37 -0
  810. data/app/views/hotwirebits/_text_gradient.html.erb +6 -0
  811. data/app/views/hotwirebits/_text_rotate.html.erb +10 -0
  812. data/app/views/hotwirebits/_textarea.html.erb +17 -0
  813. data/app/views/hotwirebits/_theme_controller.html.erb +16 -0
  814. data/app/views/hotwirebits/_theme_icon.html.erb +6 -0
  815. data/app/views/hotwirebits/_theme_selector.html.erb +30 -0
  816. data/app/views/hotwirebits/_time_picker.html.erb +32 -0
  817. data/app/views/hotwirebits/_timeline.html.erb +27 -0
  818. data/app/views/hotwirebits/_toast.html.erb +52 -0
  819. data/app/views/hotwirebits/_toggle.html.erb +12 -0
  820. data/app/views/hotwirebits/_toggle_button.html.erb +7 -0
  821. data/app/views/hotwirebits/_toggle_button_group.html.erb +11 -0
  822. data/app/views/hotwirebits/_toolbar.html.erb +21 -0
  823. data/app/views/hotwirebits/_tooltip.html.erb +26 -0
  824. data/app/views/hotwirebits/_tree_view.html.erb +18 -0
  825. data/app/views/hotwirebits/_two_factor.html.erb +29 -0
  826. data/app/views/hotwirebits/_typing_indicator.html.erb +8 -0
  827. data/app/views/hotwirebits/_typography.html.erb +7 -0
  828. data/app/views/hotwirebits/_validator.html.erb +23 -0
  829. data/app/views/hotwirebits/_version_diff.html.erb +20 -0
  830. data/app/views/hotwirebits/_video_player.html.erb +14 -0
  831. data/app/views/hotwirebits/_voice_recorder.html.erb +32 -0
  832. data/app/views/hotwirebits/_window_mockup.html.erb +23 -0
  833. data/config/routes.rb +4 -0
  834. data/lib/generators/hotwirebits/component_generator.rb +48 -0
  835. data/lib/generators/hotwirebits/install_generator.rb +47 -0
  836. data/lib/generators/hotwirebits/templates/component.html.erb.tt +4 -0
  837. data/lib/generators/hotwirebits/templates/component.rb.tt +9 -0
  838. data/lib/generators/hotwirebits/templates/controller.js.tt +6 -0
  839. data/lib/generators/hotwirebits/templates/theme.css +2 -0
  840. data/lib/hotwirebits/engine.rb +25 -0
  841. data/lib/hotwirebits/version.rb +5 -0
  842. data/lib/hotwirebits.rb +19 -0
  843. metadata +965 -0
@@ -0,0 +1,38 @@
1
+ <%# FlyoutMenu component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/flyout_menu', ... %>
3
+
4
+ <div class="relative inline-block" data-controller="hw-dropdown" <%= tag.attributes(local_assigns) %>>
5
+ <button type="button"
6
+ class="inline-flex items-center gap-1 text-sm font-medium text-hw-foreground hover:text-hw-primary"
7
+ data-action="click->hw-dropdown#toggle mouseenter->hw-dropdown#open">
8
+ <%= trigger_label %>
9
+ <svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
10
+ <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"/>
11
+ </svg>
12
+ </button>
13
+ <div class="absolute z-50 hidden w-72 rounded-lg border border-hw-border bg-white p-2 shadow-xl"
14
+ data-hw-dropdown-target="menu"
15
+ data-action="mouseleave->hw-dropdown#close"
16
+ style="position: absolute;" class="<%= menu_position %>">
17
+ <div class="space-y-1">
18
+ <% items.each do |item| %>
19
+ <a href="<%= item[:href] %>"
20
+ class="flex items-start gap-3 rounded-lg p-3 text-sm transition-colors hover:bg-hw-muted">
21
+ <% if item[:icon] %>
22
+ <div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-hw-primary/10 text-hw-primary">
23
+ <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
24
+ <path stroke-linecap="round" stroke-linejoin="round" d="<%= item[:icon] %>"/>
25
+ </svg>
26
+ </div>
27
+ <% end %>
28
+ <div>
29
+ <p class="font-medium text-hw-foreground"><%= item[:label] %></p>
30
+ <% if item[:description] %>
31
+ <p class="mt-0.5 text-xs text-hw-muted-foreground"><%= item[:description] %></p>
32
+ <% end %>
33
+ </div>
34
+ </a>
35
+ <% end %>
36
+ </div>
37
+ </div>
38
+ </div>
@@ -0,0 +1,46 @@
1
+ <%# Footer component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/footer', ... %>
3
+
4
+ <footer class="border-t border-hw-border bg-hw-background" <%= tag.attributes(local_assigns) %>>
5
+ <div class="mx-auto max-w-screen-xl px-4 py-12">
6
+ <div class="grid gap-8 sm:grid-cols-2 md:grid-cols-<%= [columns.size + 1, 4].min %>">
7
+ <div>
8
+ <% if brand %>
9
+ <a href="/" class="text-lg font-semibold text-hw-foreground"><%= brand %></a>
10
+ <% end %>
11
+ <% if social_links.any? %>
12
+ <div class="mt-4 flex gap-4">
13
+ <% social_links.each do |link| %>
14
+ <a href="<%= link[:href] %>" class="text-hw-muted-foreground hover:text-hw-foreground transition-colors" aria-label="<%= link[:label] %>" target="_blank" rel="noopener noreferrer">
15
+ <% if link[:icon] %>
16
+ <span class="h-5 w-5"><%= safe_svg(link[:icon]) %></span>
17
+ <% else %>
18
+ <span class="text-sm"><%= link[:label] %></span>
19
+ <% end %>
20
+ </a>
21
+ <% end %>
22
+ </div>
23
+ <% end %>
24
+ </div>
25
+ <% columns.each do |col| %>
26
+ <div>
27
+ <h3 class="mb-3 text-sm font-semibold text-hw-foreground"><%= col[:title] %></h3>
28
+ <ul class="space-y-2">
29
+ <% col[:links].each do |link| %>
30
+ <li>
31
+ <a href="<%= link[:href] %>" class="text-sm text-hw-muted-foreground hover:text-hw-foreground transition-colors"><%= link[:label] %></a>
32
+ </li>
33
+ <% end %>
34
+ </ul>
35
+ </div>
36
+ <% end %>
37
+ </div>
38
+ </div>
39
+ <% if copyright %>
40
+ <div class="border-t border-hw-border">
41
+ <div class="mx-auto max-w-screen-xl px-4 py-4">
42
+ <p class="text-center text-xs text-hw-muted-foreground"><%= copyright %></p>
43
+ </div>
44
+ </div>
45
+ <% end %>
46
+ </footer>
@@ -0,0 +1,43 @@
1
+ <%# FormGroup component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/form_group', label: "Email", hint: "Enter email" %>
3
+
4
+ <%
5
+ label = local_assigns[:label]
6
+ name = local_assigns[:name]
7
+ hint = local_assigns[:hint]
8
+ error = local_assigns[:error]
9
+ required = local_assigns.fetch(:required, false)
10
+ horizontal = local_assigns.fetch(:horizontal, false)
11
+ %>
12
+
13
+ <% if horizontal %>
14
+ <div class="grid grid-cols-4 items-start gap-4">
15
+ <div class="pt-2">
16
+ <% if label %>
17
+ <label for="<%= name %>" class="text-sm font-medium text-hw-foreground"><%= label %><% if required %> <span class="text-hw-destructive">*</span><% end %></label>
18
+ <% end %>
19
+ <% if hint %>
20
+ <p class="text-xs text-hw-muted-foreground mt-0.5"><%= hint %></p>
21
+ <% end %>
22
+ </div>
23
+ <div class="col-span-3">
24
+ <% if block_given? %><%= yield %><% end %>
25
+ <% if error %>
26
+ <p class="text-xs text-hw-destructive mt-1"><%= error %></p>
27
+ <% end %>
28
+ </div>
29
+ </div>
30
+ <% else %>
31
+ <div class="space-y-2">
32
+ <% if label %>
33
+ <label for="<%= name %>" class="text-sm font-medium leading-none"><%= label %><% if required %> <span class="text-hw-destructive">*</span><% end %></label>
34
+ <% end %>
35
+ <% if block_given? %><%= yield %><% end %>
36
+ <% if hint && !error %>
37
+ <p class="text-xs text-hw-muted-foreground"><%= hint %></p>
38
+ <% end %>
39
+ <% if error %>
40
+ <p class="text-xs text-hw-destructive"><%= error %></p>
41
+ <% end %>
42
+ </div>
43
+ <% end %>
@@ -0,0 +1,28 @@
1
+ <%# Gallery component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/gallery', ... %>
3
+
4
+ <div class="<%= container_classes %>"
5
+ <% if with_lightbox %>data-controller="hw-lightbox"<% end %>
6
+ <%= tag.attributes(local_assigns) %>>
7
+ <% images.each_with_index do |image, index| %>
8
+ <figure class="group relative overflow-hidden rounded-lg">
9
+ <img src="<%= image[:src] %>" alt="<%= image[:alt] %>"
10
+ class="aspect-square w-full object-cover transition-transform duration-300 group-hover:scale-105"
11
+ <% if with_lightbox %>
12
+ data-action="click->hw-lightbox#open"
13
+ data-hw-lightbox-index-param="<%= index %>"
14
+ role="button" tabindex="0"
15
+ <% end %>>
16
+ <% if image[:caption] %>
17
+ <figcaption class="absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 to-transparent p-3 text-sm text-hw-primary-foreground opacity-0 transition-opacity group-hover:opacity-100">
18
+ <%= image[:caption] %>
19
+ </figcaption>
20
+ <% end %>
21
+ </figure>
22
+ <% end %>
23
+ <% if with_lightbox && images.any? %>
24
+ <template data-hw-lightbox-target="template">
25
+ <%= render HotwireBits::LightboxComponent.new(images: images, current_index: 0) %>
26
+ </template>
27
+ <% end %>
28
+ </div>
@@ -0,0 +1,14 @@
1
+ <%# Grid component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/grid', columns: 3, gap: 4 %>
3
+
4
+ <%
5
+ columns = local_assigns.fetch(:columns, 3)
6
+ gap = local_assigns.fetch(:gap, 4)
7
+ extra_class = local_assigns[:class]
8
+
9
+ grid_cls = ["grid grid-cols-#{columns} gap-#{gap}", extra_class].compact.join(" ")
10
+ %>
11
+
12
+ <div class="<%= grid_cls %>">
13
+ <% if block_given? %><%= yield %><% end %>
14
+ </div>
@@ -0,0 +1,6 @@
1
+ <%# Group component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/group', ... %>
3
+
4
+ <div class="<%= group_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <%= content %>
6
+ </div>
@@ -0,0 +1,28 @@
1
+ <%# Header component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/header', ... %>
3
+
4
+ <header class="<%= header_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <div class="mx-auto flex h-14 max-w-screen-xl items-center px-4">
6
+ <% if brand %>
7
+ <a href="/" class="mr-6 flex items-center space-x-2 font-semibold text-hw-foreground">
8
+ <%= brand %>
9
+ </a>
10
+ <% end %>
11
+ <% if nav_items.any? %>
12
+ <nav class="flex items-center gap-6 text-sm">
13
+ <% nav_items.each do |item| %>
14
+ <a href="<%= item[:href] %>"
15
+ class="<%= merge_classes(
16
+ 'transition-colors hover:text-hw-foreground',
17
+ item[:active] ? 'text-hw-foreground font-medium' : 'text-hw-muted-foreground'
18
+ ) %>">
19
+ <%= item[:label] %>
20
+ </a>
21
+ <% end %>
22
+ </nav>
23
+ <% end %>
24
+ <div class="flex flex-1 items-center justify-end gap-2">
25
+ <%= actions if actions? %>
26
+ </div>
27
+ </div>
28
+ </header>
@@ -0,0 +1,36 @@
1
+ <%# HeaderSection component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/header_section', ... %>
3
+
4
+ <header class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <% if breadcrumbs.any? %>
6
+ <nav aria-label="Breadcrumb" class="mb-4">
7
+ <ol class="flex items-center space-x-2 text-sm text-hw-muted-foreground">
8
+ <% breadcrumbs.each_with_index do |item, idx| %>
9
+ <% if idx > 0 %>
10
+ <li class="text-hw-muted-foreground/50">/</li>
11
+ <% end %>
12
+ <li>
13
+ <% if item[:href] && idx < breadcrumbs.size - 1 %>
14
+ <a href="<%= item[:href] %>" class="hover:text-hw-foreground transition-colors"><%= item[:label] %></a>
15
+ <% else %>
16
+ <span class="font-medium text-hw-foreground"><%= item[:label] %></span>
17
+ <% end %>
18
+ </li>
19
+ <% end %>
20
+ </ol>
21
+ </nav>
22
+ <% end %>
23
+ <div class="flex items-start justify-between gap-4">
24
+ <div>
25
+ <h1 class="text-2xl font-bold text-hw-foreground"><%= title %></h1>
26
+ <% if subtitle %>
27
+ <p class="mt-1 text-sm text-hw-muted-foreground"><%= subtitle %></p>
28
+ <% end %>
29
+ </div>
30
+ <% if actions? %>
31
+ <div class="flex items-center gap-2 shrink-0">
32
+ <%= actions %>
33
+ </div>
34
+ <% end %>
35
+ </div>
36
+ </header>
@@ -0,0 +1,38 @@
1
+ <%# Hero component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/hero', ... %>
3
+
4
+ <section class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <div class="<%= inner_classes %>">
6
+ <div class="flex flex-col gap-4 <%= 'md:max-w-xl' if variant == :split %>">
7
+ <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-hw-foreground">
8
+ <%= title %>
9
+ </h1>
10
+ <% if subtitle %>
11
+ <p class="text-lg md:text-xl text-hw-muted-foreground max-w-2xl">
12
+ <%= subtitle %>
13
+ </p>
14
+ <% end %>
15
+ <% if primary_cta || secondary_cta %>
16
+ <div class="flex flex-wrap gap-3 mt-2 <%= 'justify-center' unless variant == :split %>">
17
+ <% if primary_cta %>
18
+ <a href="<%= primary_cta[:href] %>"
19
+ 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">
20
+ <%= primary_cta[:label] %>
21
+ </a>
22
+ <% end %>
23
+ <% if secondary_cta %>
24
+ <a href="<%= secondary_cta[:href] %>"
25
+ 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">
26
+ <%= secondary_cta[:label] %>
27
+ </a>
28
+ <% end %>
29
+ </div>
30
+ <% end %>
31
+ </div>
32
+ <% if image_url %>
33
+ <div class="mt-8 md:mt-0 w-full <%= variant == :split ? 'md:w-1/2' : 'max-w-3xl' %>">
34
+ <img src="<%= image_url %>" alt="" class="rounded-xl shadow-lg w-full object-cover">
35
+ </div>
36
+ <% end %>
37
+ </div>
38
+ </section>
@@ -0,0 +1,4 @@
1
+ <%# Highlight component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/highlight', ... %>
3
+
4
+ <span <%= tag.attributes(local_assigns) %>><%= highlighted_text %></span>
@@ -0,0 +1,13 @@
1
+ <%# Hover3dCard component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/hover_3d_card', ... %>
3
+
4
+ <div class="<%= container_classes %>" data-controller="hover-3d" data-hover-3d-intensity-value="<%= intensity %>" <%= tag.attributes(local_assigns) %>>
5
+ <div class="rounded-xl border border-hw-border bg-hw-card p-6 shadow-sm transition-transform duration-300 [transform-style:preserve-3d] group-hover:[transform:rotateX(var(--rx))_rotateY(var(--ry))]"
6
+ data-hover-3d-target="card">
7
+ <% if content? %>
8
+ <%= content %>
9
+ <% else %>
10
+ <%= yield %>
11
+ <% end %>
12
+ </div>
13
+ </div>
@@ -0,0 +1,22 @@
1
+ <%# HoverCard component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/hover_card', ... %>
3
+
4
+ <div class="relative inline-block"
5
+ data-controller="hw-hover-card"
6
+ data-action="mouseenter->hw-hover-card#show mouseleave->hw-hover-card#hide">
7
+ <div data-hw-hover-card-target="trigger">
8
+ <% if trigger? %>
9
+ <%= trigger %>
10
+ <% else %>
11
+ <a href="#" class="text-sm font-medium underline-offset-4 hover:underline">Hover</a>
12
+ <% end %>
13
+ </div>
14
+ <div class="<%= card_classes %>"
15
+ data-hw-hover-card-target="content"
16
+ data-state="closed"
17
+ data-side="bottom"
18
+ hidden
19
+ <%= tag.attributes(local_assigns) %>>
20
+ <%= content %>
21
+ </div>
22
+ </div>
@@ -0,0 +1,26 @@
1
+ <%# HoverGallery component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/hover_gallery', ... %>
3
+
4
+ <div class="relative overflow-hidden rounded-lg" style="<%= gallery_style %>" <%= tag.attributes(local_assigns) %>>
5
+ <% images.each_with_index do |image, idx| %>
6
+ <div class="absolute inset-0 transition-opacity duration-500 opacity-0 hover:opacity-100"
7
+ data-controller="hover-gallery"
8
+ data-hover-gallery-index-value="<%= idx %>">
9
+ <img src="<%= image[:src] %>" alt="<%= image[:alt] || '' %>" class="h-full w-full object-cover">
10
+ </div>
11
+ <% end %>
12
+ <% if images.any? %>
13
+ <div class="absolute inset-0">
14
+ <img src="<%= images.first[:src] %>" alt="<%= images.first[:alt] || '' %>" class="h-full w-full object-cover">
15
+ </div>
16
+ <div class="absolute inset-0 flex">
17
+ <% images.each_with_index do |image, idx| %>
18
+ <div class="flex-1 relative group"
19
+ onmouseenter="this.closest('[data-controller]').querySelectorAll('[data-hover-gallery-index-value]').forEach(el => { el.style.opacity = el.dataset.hoverGalleryIndexValue == #{idx} ? '1' : '0' })">
20
+ <img src="<%= image[:src] %>" alt="<%= image[:alt] || '' %>"
21
+ class="absolute inset-0 h-full w-full object-cover transition-opacity duration-300 opacity-0 group-hover:opacity-100">
22
+ </div>
23
+ <% end %>
24
+ </div>
25
+ <% end %>
26
+ </div>
@@ -0,0 +1,12 @@
1
+ <%# IconField component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/icon_field', ... %>
3
+
4
+ <div class="relative" <%= tag.attributes(local_assigns) %>>
5
+ <% if position == :left %>
6
+ <div class="absolute top-1/2 -translate-y-1/2 left-3 text-hw-muted-foreground pointer-events-none"><%= safe_svg(icon) %></div>
7
+ <% end %>
8
+ <%= content %>
9
+ <% if position == :right %>
10
+ <div class="absolute top-1/2 -translate-y-1/2 right-3 text-hw-muted-foreground pointer-events-none"><%= safe_svg(icon) %></div>
11
+ <% end %>
12
+ </div>
@@ -0,0 +1,7 @@
1
+ <%# IftaLabel component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/ifta_label', ... %>
3
+
4
+ <div class="relative" <%= tag.attributes(local_assigns) %>>
5
+ <div class="peer"><%= content %></div>
6
+ <label for="<%= name %>" class="absolute left-3 top-0 -translate-y-1/2 bg-hw-background px-1 text-xs font-medium text-hw-muted-foreground transition-all peer-focus:text-hw-primary"><%= label %></label>
7
+ </div>
@@ -0,0 +1,22 @@
1
+ <%# Image component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/image', ... %>
3
+
4
+ <figure class="<%= figure_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <img
6
+ src="<%= src %>"
7
+ alt="<%= alt %>"
8
+ loading="lazy"
9
+ <% if width %>width="<%= width %>"<% end %>
10
+ <% if height %>height="<%= height %>"<% end %>
11
+ onerror="<%= fallback ? "this.src='#{fallback}'" : 'this.style.display=\\'none\\'' %>"
12
+ class="rounded-lg w-full h-auto object-cover"
13
+ <% if zoomable %>
14
+ data-controller="hw-image"
15
+ data-action="click->hw-image#zoom"
16
+ data-hw-image-src-value="<%= src %>"
17
+ <% end %>
18
+ />
19
+ <% if caption %>
20
+ <figcaption class="mt-2 text-center text-sm text-hw-muted-foreground"><%= caption %></figcaption>
21
+ <% end %>
22
+ </figure>
@@ -0,0 +1,24 @@
1
+ <%# ImageCompare component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/image_compare', ... %>
3
+
4
+ <div class="<%= container_classes %>" data-controller="hw-image-compare" data-hw-image-compare-orientation-value="<%= orientation %>" <%= 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-image-compare-target="before" style="<%= orientation == :horizontal ? 'width: 50%;' : 'height: 50%;' %>">
8
+ <img src="<%= before_src %>" alt="<%= before_label %>" class="absolute inset-0 h-full w-full object-cover" style="<%= orientation == :horizontal ? 'min-width: 100vw; max-width: none;' : 'min-height: 100vh; max-height: 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-<%= orientation == :horizontal ? 'ew' : 'ns' %>-resize opacity-0"
12
+ data-action="input->hw-image-compare#slide">
13
+ <div class="absolute z-20 bg-white shadow-lg <%= orientation == :horizontal ? 'top-0 h-full w-0.5' : 'left-0 w-full h-0.5' %>"
14
+ data-hw-image-compare-target="handle" style="<%= orientation == :horizontal ? 'left: 50%;' : 'top: 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="<%= orientation == :horizontal ? 'M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9' : 'M15 8.25l-3-3m0 0l-3 3m3-3v12' %>"/>
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,11 @@
1
+ <%# ImageZoom component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/image_zoom', ... %>
3
+
4
+ <div class="relative overflow-hidden rounded-lg border border-hw-border"
5
+ style="<%= container_style %>"
6
+ data-controller="hw-image-zoom"
7
+ data-hw-image-zoom-zoom-level-value="<%= zoom_level %>"
8
+ data-action="mousemove->hw-image-zoom#zoom mouseleave->hw-image-zoom#reset"
9
+ <%= tag.attributes(local_assigns) %>>
10
+ <img src="<%= src %>" alt="<%= alt %>" class="w-full h-full object-cover transition-transform duration-200" data-hw-image-zoom-target="image">
11
+ </div>
@@ -0,0 +1,14 @@
1
+ <%# Incentive component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/incentive', ... %>
3
+
4
+ <div class="<%= container_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <div class="mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-hw-primary/10 text-hw-primary">
6
+ <svg class="h-7 w-7" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
7
+ <path stroke-linecap="round" stroke-linejoin="round" d="<%= icon %>"/>
8
+ </svg>
9
+ </div>
10
+ <h3 class="text-base font-semibold text-hw-foreground"><%= title %></h3>
11
+ <% if description %>
12
+ <p class="mt-1.5 text-sm text-hw-muted-foreground"><%= description %></p>
13
+ <% end %>
14
+ </div>
@@ -0,0 +1,9 @@
1
+ <%# Indicator component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/indicator', ... %>
3
+
4
+ <div class="relative inline-flex">
5
+ <%= content %>
6
+ <div class="absolute flex items-center justify-center <%= color || 'bg-hw-primary' %> <%= POSITIONS[position] || '-top-1 -right-1' %>" <%= tag.attributes(local_assigns) %>>
7
+ <%= yield %>
8
+ </div>
9
+ </div>
@@ -0,0 +1,11 @@
1
+ <%# IndicatorBadge component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/indicator_badge', ... %>
3
+
4
+ <div class="<%= wrapper_classes %>" <%= tag.attributes(local_assigns) %>>
5
+ <%= content %>
6
+ <span class="<%= badge_classes %>">
7
+ <% unless dot %>
8
+ <%= content %>
9
+ <% end %>
10
+ </span>
11
+ </div>
@@ -0,0 +1,53 @@
1
+ <%# InlineEdit component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/inline_edit', ... %>
3
+
4
+ <div class="group relative inline-flex items-center gap-2"
5
+ data-controller="hw-inline-edit"
6
+ <%= tag.attributes(local_assigns) %>>
7
+ <span class="text-sm text-hw-foreground"
8
+ data-hw-inline-edit-target="display"
9
+ data-action="click->hw-inline-edit#edit"><%= value || placeholder || 'Click to edit' %></span>
10
+ <button type="button"
11
+ class="opacity-0 group-hover:opacity-100 h-6 w-6 inline-flex items-center justify-center rounded hover:bg-hw-accent text-hw-muted-foreground transition-opacity cursor-pointer"
12
+ data-action="click->hw-inline-edit#edit"
13
+ aria-label="Edit">
14
+ <svg class="h-3.5 w-3.5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
15
+ <path stroke-linecap="round" stroke-linejoin="round" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/>
16
+ </svg>
17
+ </button>
18
+ <div class="hidden absolute top-full left-0 mt-1 z-10" data-hw-inline-edit-target="form">
19
+ <div class="flex items-center gap-2 rounded-lg border border-hw-border bg-hw-popover p-2 shadow-lg">
20
+ <% if type == :select %>
21
+ <select name="<%= name %>"
22
+ class="h-8 rounded-md border border-hw-input bg-hw-background px-2 text-sm text-hw-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring"
23
+ data-hw-inline-edit-target="input">
24
+ <% options.each do |opt| %>
25
+ <option value="<%= opt[:value] %>" <%= 'selected' if opt[:value].to_s == value.to_s %>><%= opt[:label] %></option>
26
+ <% end %>
27
+ </select>
28
+ <% elsif type == :textarea %>
29
+ <textarea name="<%= name %>"
30
+ placeholder="<%= placeholder %>"
31
+ class="w-64 h-20 rounded-md border border-hw-input bg-hw-background px-2 py-1.5 text-sm text-hw-foreground resize-none focus:outline-none focus:ring-2 focus:ring-hw-ring"
32
+ data-hw-inline-edit-target="input"><%= value %></textarea>
33
+ <% else %>
34
+ <input type="text"
35
+ name="<%= name %>"
36
+ value="<%= value %>"
37
+ placeholder="<%= placeholder %>"
38
+ class="h-8 w-48 rounded-md border border-hw-input bg-hw-background px-2 text-sm text-hw-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring"
39
+ data-hw-inline-edit-target="input">
40
+ <% end %>
41
+ <button type="button"
42
+ class="h-8 w-8 inline-flex items-center justify-center rounded-md bg-hw-primary text-hw-primary-foreground hover:bg-hw-primary/90 cursor-pointer"
43
+ data-action="click->hw-inline-edit#save">
44
+ <svg class="h-4 w-4" 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 13l4 4L19 7"/></svg>
45
+ </button>
46
+ <button type="button"
47
+ class="h-8 w-8 inline-flex items-center justify-center rounded-md hover:bg-hw-accent text-hw-muted-foreground cursor-pointer"
48
+ data-action="click->hw-inline-edit#cancel">
49
+ <svg class="h-4 w-4" 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="M6 18L18 6M6 6l12 12"/></svg>
50
+ </button>
51
+ </div>
52
+ </div>
53
+ </div>
@@ -0,0 +1,9 @@
1
+ <%# Inplace component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/inplace', ... %>
3
+
4
+ <div class="inline-block" data-controller="hw-inplace" <%= tag.attributes(local_assigns) %>>
5
+ <div class="cursor-pointer rounded-md px-2 py-1 hover:bg-hw-accent transition-colors min-h-[2rem] <%= display_class %>" data-action="<%= 'click->hw-inplace#edit' unless disabled %>" data-hw-inplace-target="display">
6
+ <%= value.presence || tag.span(placeholder, class: 'text-hw-muted-foreground') %>
7
+ </div>
8
+ <input type="text" name="<%= name %>" value="<%= value %>" class="hidden w-full rounded-md border border-hw-input bg-hw-background px-2 py-1 text-sm text-hw-foreground focus:outline-none focus:ring-2 focus:ring-hw-ring" data-hw-inplace-target="input" data-action="blur->hw-inplace#save keydown->hw-inplace#keydown">
9
+ </div>
@@ -0,0 +1,33 @@
1
+ <%# Input component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/input', name: "email", placeholder: "Email", type: :text %>
3
+
4
+ <%
5
+ type = local_assigns.fetch(:type, :text)
6
+ name = local_assigns.fetch(:name, "")
7
+ value = local_assigns.fetch(:value, "")
8
+ placeholder = local_assigns.fetch(:placeholder, "")
9
+ disabled = local_assigns.fetch(:disabled, false)
10
+ readonly = local_assigns.fetch(:readonly, false)
11
+ required = local_assigns.fetch(:required, false)
12
+ autocomplete = local_assigns.fetch(:autocomplete, "off")
13
+ icon = local_assigns[:icon]
14
+ icon_position = local_assigns.fetch(:icon_position, :left)
15
+
16
+ input_cls = "flex h-10 w-full rounded-md border border-hw-input bg-hw-background px-3 py-2 text-sm 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 disabled:cursor-not-allowed disabled:opacity-50"
17
+ input_cls += " pl-10" if icon && icon_position == :left
18
+ input_cls += " pr-10" if icon && icon_position == :right
19
+ %>
20
+
21
+ <% if icon %>
22
+ <div class="relative">
23
+ <% if icon_position == :left %>
24
+ <div class="absolute left-3 top-1/2 -translate-y-1/2 text-hw-muted-foreground"><%= icon %></div>
25
+ <% end %>
26
+ <input type="<%= type %>" name="<%= name %>" value="<%= value %>" placeholder="<%= placeholder %>" <%= 'disabled' if disabled %> <%= 'readonly' if readonly %> <%= 'required' if required %> autocomplete="<%= autocomplete %>" class="<%= input_cls %>">
27
+ <% if icon_position == :right %>
28
+ <div class="absolute right-3 top-1/2 -translate-y-1/2 text-hw-muted-foreground"><%= icon %></div>
29
+ <% end %>
30
+ </div>
31
+ <% else %>
32
+ <input type="<%= type %>" name="<%= name %>" value="<%= value %>" placeholder="<%= placeholder %>" <%= 'disabled' if disabled %> <%= 'readonly' if readonly %> <%= 'required' if required %> autocomplete="<%= autocomplete %>" class="<%= input_cls %>">
33
+ <% end %>
@@ -0,0 +1,12 @@
1
+ <%# InputGroup component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/input_group', ... %>
3
+
4
+ <div class="flex [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:not(:first-child)]:-ml-px" <%= tag.attributes(local_assigns) %>>
5
+ <% if addon_before %>
6
+ <span class="inline-flex items-center rounded-md border border-hw-input bg-hw-muted px-3 text-sm text-hw-muted-foreground whitespace-nowrap"><%= addon_before %></span>
7
+ <% end %>
8
+ <%= content %>
9
+ <% if addon_after %>
10
+ <span class="inline-flex items-center rounded-md border border-hw-input bg-hw-muted px-3 text-sm text-hw-muted-foreground whitespace-nowrap"><%= addon_after %></span>
11
+ <% end %>
12
+ </div>
@@ -0,0 +1,17 @@
1
+ <%# InputNumber component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/input_number', ... %>
3
+
4
+ <div class="inline-flex items-center rounded-md border border-hw-input" data-controller="hw-input-number" <%= tag.attributes(local_assigns) %>>
5
+ <button type="button" <%= 'disabled' if disabled %> class="<%= merge_classes('inline-flex items-center justify-center text-hw-muted-foreground hover:bg-hw-accent hover:text-hw-accent-foreground transition-colors disabled:pointer-events-none disabled:opacity-50', BUTTON_SIZES[size] || 'h-9 w-9') %>" data-action="click->hw-input-number#decrement">
6
+ <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="M19 9l-7 7-7-7"/></svg>
7
+ </button>
8
+ <div class="relative flex items-center">
9
+ <% if currency %>
10
+ <span class="absolute left-2 text-xs text-hw-muted-foreground pointer-events-none"><%= currency %></span>
11
+ <% end %>
12
+ <input type="number" name="<%= name %>" value="<%= value %>" min="<%= min %>" max="<%= max %>" step="<%= step %>" <%= 'disabled' if disabled %> class="<%= merge_classes('w-16 bg-transparent text-center text-hw-foreground outline-none border-x border-hw-input disabled:cursor-not-allowed disabled:opacity-50 appearance-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none', currency ? 'pl-7' : '', SIZES[size] || 'h-9 text-sm') %>" data-hw-input-number-target="input">
13
+ </div>
14
+ <button type="button" <%= 'disabled' if disabled %> class="<%= merge_classes('inline-flex items-center justify-center text-hw-muted-foreground hover:bg-hw-accent hover:text-hw-accent-foreground transition-colors disabled:pointer-events-none disabled:opacity-50', BUTTON_SIZES[size] || 'h-9 w-9') %>" data-action="click->hw-input-number#increment">
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="M5 15l7-7 7 7"/></svg>
16
+ </button>
17
+ </div>
@@ -0,0 +1,9 @@
1
+ <%# InputOtp component — ERB partial %>
2
+ <%# Usage: render 'hotwirebits/input_otp', ... %>
3
+
4
+ <div class="flex items-center gap-2" data-controller="hw-otp">
5
+ <input type="hidden" name="<%= name %>" value="<%= value %>" data-hw-otp-target="hidden">
6
+ <% length.times do |i| %>
7
+ <input type="text" maxlength="1" inputmode="<%= numeric_only ? 'numeric' : 'text' %>" <%= 'disabled' if disabled %> value="<%= value[i] %>" class="h-10 w-10 text-center text-lg font-semibold 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" data-action="input->hw-otp#input keydown->hw-otp#keydown" data-index="<%= i %>" <%= tag.attributes(local_assigns) %>>
8
+ <% end %>
9
+ </div>