yattho_view_components 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (447) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/app/assets/javascripts/yattho_view_components.js +1 -1
  4. data/app/assets/javascripts/yattho_view_components.js.map +1 -1
  5. data/app/assets/styles/yattho_view_components.css +3 -5958
  6. data/app/assets/styles/yattho_view_components.css.map +1 -1
  7. data/app/components/yattho/alpha/action_list.css +1 -697
  8. data/app/components/yattho/alpha/action_list.css.json +1 -1
  9. data/app/components/yattho/alpha/action_list.css.map +1 -1
  10. data/app/components/yattho/alpha/auto_complete.css +1 -130
  11. data/app/components/yattho/alpha/auto_complete.css.json +1 -1
  12. data/app/components/yattho/alpha/auto_complete.css.map +1 -1
  13. data/app/components/yattho/alpha/banner.css +1 -131
  14. data/app/components/yattho/alpha/banner.css.json +1 -1
  15. data/app/components/yattho/alpha/banner.css.map +1 -1
  16. data/app/components/yattho/alpha/button_marketing.css +1 -211
  17. data/app/components/yattho/alpha/button_marketing.css.json +1 -1
  18. data/app/components/yattho/alpha/button_marketing.css.map +1 -1
  19. data/app/components/yattho/alpha/dialog.css +1 -613
  20. data/app/components/yattho/alpha/dialog.css.json +1 -1
  21. data/app/components/yattho/alpha/dialog.css.map +1 -1
  22. data/app/components/yattho/alpha/dropdown.css +1 -264
  23. data/app/components/yattho/alpha/dropdown.css.json +1 -1
  24. data/app/components/yattho/alpha/dropdown.css.map +1 -1
  25. data/app/components/yattho/alpha/layout.css +1 -398
  26. data/app/components/yattho/alpha/layout.css.json +1 -1
  27. data/app/components/yattho/alpha/layout.css.map +1 -1
  28. data/app/components/yattho/alpha/menu.css +1 -117
  29. data/app/components/yattho/alpha/menu.css.json +1 -1
  30. data/app/components/yattho/alpha/menu.css.map +1 -1
  31. data/app/components/yattho/alpha/modal_dialog.js +2 -0
  32. data/app/components/yattho/alpha/segmented_control.css +1 -164
  33. data/app/components/yattho/alpha/segmented_control.css.json +1 -1
  34. data/app/components/yattho/alpha/segmented_control.css.map +1 -1
  35. data/app/components/yattho/alpha/tab_nav.css +1 -106
  36. data/app/components/yattho/alpha/tab_nav.css.json +1 -1
  37. data/app/components/yattho/alpha/tab_nav.css.map +1 -1
  38. data/app/components/yattho/alpha/text_field.css +3 -836
  39. data/app/components/yattho/alpha/text_field.css.json +1 -1
  40. data/app/components/yattho/alpha/text_field.css.map +1 -1
  41. data/app/components/yattho/alpha/toggle_switch.css +1 -253
  42. data/app/components/yattho/alpha/toggle_switch.css.json +1 -1
  43. data/app/components/yattho/alpha/toggle_switch.css.map +1 -1
  44. data/app/components/yattho/alpha/underline_nav.css +1 -148
  45. data/app/components/yattho/alpha/underline_nav.css.json +1 -1
  46. data/app/components/yattho/alpha/underline_nav.css.map +1 -1
  47. data/app/components/yattho/beta/avatar.css +1 -74
  48. data/app/components/yattho/beta/avatar.css.json +1 -1
  49. data/app/components/yattho/beta/avatar.css.map +1 -1
  50. data/app/components/yattho/beta/avatar_stack.css +1 -138
  51. data/app/components/yattho/beta/avatar_stack.css.json +1 -1
  52. data/app/components/yattho/beta/avatar_stack.css.map +1 -1
  53. data/app/components/yattho/beta/blankslate.css +1 -90
  54. data/app/components/yattho/beta/blankslate.css.map +1 -1
  55. data/app/components/yattho/beta/border_box.css +1 -279
  56. data/app/components/yattho/beta/border_box.css.json +1 -1
  57. data/app/components/yattho/beta/border_box.css.map +1 -1
  58. data/app/components/yattho/beta/breadcrumbs.css +1 -27
  59. data/app/components/yattho/beta/breadcrumbs.css.json +1 -1
  60. data/app/components/yattho/beta/breadcrumbs.css.map +1 -1
  61. data/app/components/yattho/beta/button.css +1 -365
  62. data/app/components/yattho/beta/button.css.json +1 -1
  63. data/app/components/yattho/beta/button.css.map +1 -1
  64. data/app/components/yattho/beta/counter.css +1 -36
  65. data/app/components/yattho/beta/counter.css.map +1 -1
  66. data/app/components/yattho/beta/flash.css +1 -150
  67. data/app/components/yattho/beta/flash.css.json +1 -1
  68. data/app/components/yattho/beta/flash.css.map +1 -1
  69. data/app/components/yattho/beta/label.css +1 -105
  70. data/app/components/yattho/beta/label.css.json +1 -1
  71. data/app/components/yattho/beta/label.css.map +1 -1
  72. data/app/components/yattho/beta/link.css +1 -62
  73. data/app/components/yattho/beta/link.css.json +1 -1
  74. data/app/components/yattho/beta/link.css.map +1 -1
  75. data/app/components/yattho/beta/popover.css +1 -235
  76. data/app/components/yattho/beta/popover.css.json +1 -1
  77. data/app/components/yattho/beta/popover.css.map +1 -1
  78. data/app/components/yattho/beta/progress_bar.css +1 -26
  79. data/app/components/yattho/beta/progress_bar.css.json +1 -1
  80. data/app/components/yattho/beta/progress_bar.css.map +1 -1
  81. data/app/components/yattho/beta/state.css +1 -50
  82. data/app/components/yattho/beta/state.css.json +1 -1
  83. data/app/components/yattho/beta/state.css.map +1 -1
  84. data/app/components/yattho/beta/subhead.css +1 -54
  85. data/app/components/yattho/beta/subhead.css.json +1 -1
  86. data/app/components/yattho/beta/subhead.css.map +1 -1
  87. data/app/components/yattho/beta/timeline_item.css +1 -95
  88. data/app/components/yattho/beta/timeline_item.css.json +1 -1
  89. data/app/components/yattho/beta/timeline_item.css.map +1 -1
  90. data/app/components/yattho/beta/truncate.css +1 -37
  91. data/app/components/yattho/beta/truncate.css.json +1 -1
  92. data/app/components/yattho/beta/truncate.css.map +1 -1
  93. data/app/components/yattho/truncate.css +1 -30
  94. data/app/components/yattho/truncate.css.json +1 -1
  95. data/app/components/yattho/truncate.css.map +1 -1
  96. data/lib/yattho/view_components/version.rb +1 -1
  97. metadata +3 -353
  98. data/previews/docs/alpha_auto_complete_item_preview/default.html.erb +0 -10
  99. data/previews/docs/alpha_auto_complete_item_preview.rb +0 -7
  100. data/previews/docs/alpha_auto_complete_preview/default.html.erb +0 -1
  101. data/previews/docs/alpha_auto_complete_preview/with_clear_button.html.erb +0 -1
  102. data/previews/docs/alpha_auto_complete_preview/with_custom_classes_for_the_input.html.erb +0 -3
  103. data/previews/docs/alpha_auto_complete_preview/with_custom_classes_for_the_results.html.erb +0 -10
  104. data/previews/docs/alpha_auto_complete_preview/with_icon.html.erb +0 -1
  105. data/previews/docs/alpha_auto_complete_preview/with_icon_and_non_visible_label.html.erb +0 -1
  106. data/previews/docs/alpha_auto_complete_preview/with_inline_label.html.erb +0 -1
  107. data/previews/docs/alpha_auto_complete_preview/with_non_visible_label.html.erb +0 -1
  108. data/previews/docs/alpha_auto_complete_preview.rb +0 -21
  109. data/previews/docs/alpha_banner_preview/custom_icon.html.erb +0 -1
  110. data/previews/docs/alpha_banner_preview/dismissible.html.erb +0 -1
  111. data/previews/docs/alpha_banner_preview/full_width.html.erb +0 -1
  112. data/previews/docs/alpha_banner_preview/schemes.html.erb +0 -6
  113. data/previews/docs/alpha_banner_preview/with_action_button.html.erb +0 -4
  114. data/previews/docs/alpha_banner_preview/with_custom_action.html.erb +0 -6
  115. data/previews/docs/alpha_banner_preview.rb +0 -17
  116. data/previews/docs/alpha_button_marketing_preview/schemes.html.erb +0 -6
  117. data/previews/docs/alpha_button_marketing_preview/sizes.html.erb +0 -2
  118. data/previews/docs/alpha_button_marketing_preview.rb +0 -9
  119. data/previews/docs/alpha_dialog_preview/dialog_with_cancel_and_submit_buttons.html.erb +0 -13
  120. data/previews/docs/alpha_dialog_preview.rb +0 -7
  121. data/previews/docs/alpha_dropdown_preview/customizing_menu_items.html.erb +0 -11
  122. data/previews/docs/alpha_dropdown_preview/customizing_the_button.html.erb +0 -12
  123. data/previews/docs/alpha_dropdown_preview/default.html.erb +0 -11
  124. data/previews/docs/alpha_dropdown_preview/menu_as_list.html.erb +0 -13
  125. data/previews/docs/alpha_dropdown_preview/with_caret.html.erb +0 -12
  126. data/previews/docs/alpha_dropdown_preview/with_direction.html.erb +0 -12
  127. data/previews/docs/alpha_dropdown_preview/with_dividers.html.erb +0 -16
  128. data/previews/docs/alpha_dropdown_preview.rb +0 -19
  129. data/previews/docs/alpha_hellip_button_preview/default.html.erb +0 -1
  130. data/previews/docs/alpha_hellip_button_preview/inline.html.erb +0 -1
  131. data/previews/docs/alpha_hellip_button_preview/styling_the_button.html.erb +0 -1
  132. data/previews/docs/alpha_hellip_button_preview.rb +0 -11
  133. data/previews/docs/alpha_hidden_text_expander_preview/default.html.erb +0 -1
  134. data/previews/docs/alpha_hidden_text_expander_preview/inline.html.erb +0 -1
  135. data/previews/docs/alpha_hidden_text_expander_preview/styling_the_button.html.erb +0 -1
  136. data/previews/docs/alpha_hidden_text_expander_preview.rb +0 -11
  137. data/previews/docs/alpha_image_crop_preview/cropper_with_a_custom_loader.html.erb +0 -3
  138. data/previews/docs/alpha_image_crop_preview/simple_cropper.html.erb +0 -1
  139. data/previews/docs/alpha_image_crop_preview/square_cropper.html.erb +0 -1
  140. data/previews/docs/alpha_image_crop_preview.rb +0 -11
  141. data/previews/docs/alpha_image_preview/custom_size.html.erb +0 -2
  142. data/previews/docs/alpha_image_preview/default.html.erb +0 -2
  143. data/previews/docs/alpha_image_preview/helper.html.erb +0 -2
  144. data/previews/docs/alpha_image_preview/lazy_loading.html.erb +0 -2
  145. data/previews/docs/alpha_image_preview.rb +0 -13
  146. data/previews/docs/alpha_layout_preview/changing_when_to_render_layout_as_columns.html.erb +0 -12
  147. data/previews/docs/alpha_layout_preview/default.html.erb +0 -5
  148. data/previews/docs/alpha_layout_preview/main_widths.html.erb +0 -16
  149. data/previews/docs/alpha_layout_preview/sidebar_placement.html.erb +0 -8
  150. data/previews/docs/alpha_layout_preview/sidebar_placement_as_row.html.erb +0 -12
  151. data/previews/docs/alpha_layout_preview/sidebar_widths.html.erb +0 -12
  152. data/previews/docs/alpha_layout_preview.rb +0 -17
  153. data/previews/docs/alpha_menu_preview/default.html.erb +0 -17
  154. data/previews/docs/alpha_menu_preview.rb +0 -7
  155. data/previews/docs/alpha_nav_list_preview/expandable_sub_items.html.erb +0 -24
  156. data/previews/docs/alpha_nav_list_preview/items_and_headings.html.erb +0 -12
  157. data/previews/docs/alpha_nav_list_preview/leading_and_trailing_visuals.html.erb +0 -17
  158. data/previews/docs/alpha_nav_list_preview/trailing_action.html.erb +0 -12
  159. data/previews/docs/alpha_nav_list_preview.rb +0 -13
  160. data/previews/docs/alpha_octicon_symbols_preview/symbol_dictionary.html.erb +0 -4
  161. data/previews/docs/alpha_octicon_symbols_preview.rb +0 -7
  162. data/previews/docs/alpha_segmented_control_preview/basic_usage.html.erb +0 -6
  163. data/previews/docs/alpha_segmented_control_preview/fill_width_of_parent.html.erb +0 -5
  164. data/previews/docs/alpha_segmented_control_preview/small.html.erb +0 -6
  165. data/previews/docs/alpha_segmented_control_preview/with_icons.html.erb +0 -5
  166. data/previews/docs/alpha_segmented_control_preview/with_icons_only.html.erb +0 -5
  167. data/previews/docs/alpha_segmented_control_preview.rb +0 -15
  168. data/previews/docs/alpha_tab_container_preview/default.html.erb +0 -16
  169. data/previews/docs/alpha_tab_container_preview.rb +0 -7
  170. data/previews/docs/alpha_tab_nav_preview/adding_extra_content_after_the_tabs.html.erb +0 -10
  171. data/previews/docs/alpha_tab_nav_preview/customizing_the_body.html.erb +0 -5
  172. data/previews/docs/alpha_tab_nav_preview/default_with_div.html.erb +0 -5
  173. data/previews/docs/alpha_tab_nav_preview/default_with_nav.html.erb +0 -5
  174. data/previews/docs/alpha_tab_nav_preview/with_extra_content.html.erb +0 -8
  175. data/previews/docs/alpha_tab_nav_preview/with_icons_and_counters.html.erb +0 -15
  176. data/previews/docs/alpha_tab_nav_preview.rb +0 -17
  177. data/previews/docs/alpha_tab_panels_preview/default.html.erb +0 -14
  178. data/previews/docs/alpha_tab_panels_preview.rb +0 -7
  179. data/previews/docs/alpha_text_field_preview/default.html.erb +0 -1
  180. data/previews/docs/alpha_text_field_preview/disabled.html.erb +0 -7
  181. data/previews/docs/alpha_text_field_preview/full_width.html.erb +0 -7
  182. data/previews/docs/alpha_text_field_preview/invalid.html.erb +0 -7
  183. data/previews/docs/alpha_text_field_preview/with_a_caption.html.erb +0 -7
  184. data/previews/docs/alpha_text_field_preview/with_a_clear_button.html.erb +0 -7
  185. data/previews/docs/alpha_text_field_preview/with_a_leading_visual.html.erb +0 -9
  186. data/previews/docs/alpha_text_field_preview/with_a_validation_message.html.erb +0 -7
  187. data/previews/docs/alpha_text_field_preview.rb +0 -21
  188. data/previews/docs/alpha_toggle_switch_preview/checked.html.erb +0 -1
  189. data/previews/docs/alpha_toggle_switch_preview/checked_and_disabled.html.erb +0 -1
  190. data/previews/docs/alpha_toggle_switch_preview/default.html.erb +0 -1
  191. data/previews/docs/alpha_toggle_switch_preview/disabled.html.erb +0 -1
  192. data/previews/docs/alpha_toggle_switch_preview/small.html.erb +0 -1
  193. data/previews/docs/alpha_toggle_switch_preview/with_status_label_positioned_at_the_end.html.erb +0 -1
  194. data/previews/docs/alpha_toggle_switch_preview.rb +0 -17
  195. data/previews/docs/alpha_tooltip_preview/as_a_label_for_an_iconbutton.html.erb +0 -1
  196. data/previews/docs/alpha_tooltip_preview/as_a_supplementary_description_for_a_button.html.erb +0 -4
  197. data/previews/docs/alpha_tooltip_preview/as_a_supplementary_description_for_an_iconbutton.html.erb +0 -1
  198. data/previews/docs/alpha_tooltip_preview/directly_using_tooltip.html.erb +0 -4
  199. data/previews/docs/alpha_tooltip_preview/with_direction.html.erb +0 -32
  200. data/previews/docs/alpha_tooltip_preview.rb +0 -15
  201. data/previews/docs/alpha_underline_nav_preview/align_right.html.erb +0 -11
  202. data/previews/docs/alpha_underline_nav_preview/customizing_the_body.html.erb +0 -5
  203. data/previews/docs/alpha_underline_nav_preview/default_with_nav.html.erb +0 -7
  204. data/previews/docs/alpha_underline_nav_preview/with_div.html.erb +0 -7
  205. data/previews/docs/alpha_underline_nav_preview/with_icons_and_counters.html.erb +0 -18
  206. data/previews/docs/alpha_underline_nav_preview.rb +0 -15
  207. data/previews/docs/alpha_underline_panels_preview/default.html.erb +0 -17
  208. data/previews/docs/alpha_underline_panels_preview.rb +0 -7
  209. data/previews/docs/beta_auto_complete_item_preview/default.html.erb +0 -6
  210. data/previews/docs/beta_auto_complete_item_preview.rb +0 -7
  211. data/previews/docs/beta_auto_complete_preview/full_width_field.html.erb +0 -3
  212. data/previews/docs/beta_auto_complete_preview/inset_variant.html.erb +0 -3
  213. data/previews/docs/beta_auto_complete_preview/leading_visual.html.erb +0 -3
  214. data/previews/docs/beta_auto_complete_preview/monospace_variant.html.erb +0 -3
  215. data/previews/docs/beta_auto_complete_preview/trailing_action.html.erb +0 -1
  216. data/previews/docs/beta_auto_complete_preview/visually_hidden_label.html.erb +0 -3
  217. data/previews/docs/beta_auto_complete_preview/with_custom_classes_for_the_input.html.erb +0 -3
  218. data/previews/docs/beta_auto_complete_preview/with_custom_classes_for_the_results.html.erb +0 -3
  219. data/previews/docs/beta_auto_complete_preview.rb +0 -21
  220. data/previews/docs/beta_avatar_preview/default.html.erb +0 -1
  221. data/previews/docs/beta_avatar_preview/link.html.erb +0 -1
  222. data/previews/docs/beta_avatar_preview/square.html.erb +0 -1
  223. data/previews/docs/beta_avatar_preview/with_size.html.erb +0 -7
  224. data/previews/docs/beta_avatar_preview.rb +0 -13
  225. data/previews/docs/beta_avatar_stack_preview/align_right.html.erb +0 -5
  226. data/previews/docs/beta_avatar_stack_preview/default.html.erb +0 -5
  227. data/previews/docs/beta_avatar_stack_preview/with_tooltip.html.erb +0 -5
  228. data/previews/docs/beta_avatar_stack_preview.rb +0 -11
  229. data/previews/docs/beta_base_button_preview/block.html.erb +0 -2
  230. data/previews/docs/beta_base_button_preview.rb +0 -7
  231. data/previews/docs/beta_blankslate_preview/basic.html.erb +0 -4
  232. data/previews/docs/beta_blankslate_preview/custom_content.html.erb +0 -6
  233. data/previews/docs/beta_blankslate_preview/icon.html.erb +0 -5
  234. data/previews/docs/beta_blankslate_preview/loading.html.erb +0 -5
  235. data/previews/docs/beta_blankslate_preview/primary_action.html.erb +0 -6
  236. data/previews/docs/beta_blankslate_preview/primary_and_secondary_actions.html.erb +0 -7
  237. data/previews/docs/beta_blankslate_preview/secondary_action.html.erb +0 -6
  238. data/previews/docs/beta_blankslate_preview/using_an_image.html.erb +0 -5
  239. data/previews/docs/beta_blankslate_preview/variations.html.erb +0 -8
  240. data/previews/docs/beta_blankslate_preview/with_border.html.erb +0 -5
  241. data/previews/docs/beta_blankslate_preview.rb +0 -25
  242. data/previews/docs/beta_border_box_header_preview/default.html.erb +0 -4
  243. data/previews/docs/beta_border_box_header_preview/with_title.html.erb +0 -3
  244. data/previews/docs/beta_border_box_header_preview.rb +0 -9
  245. data/previews/docs/beta_border_box_preview/header_with_title_body_rows_and_footer.html.erb +0 -21
  246. data/previews/docs/beta_border_box_preview/padding_density.html.erb +0 -14
  247. data/previews/docs/beta_border_box_preview/row_colors.html.erb +0 -14
  248. data/previews/docs/beta_border_box_preview.rb +0 -11
  249. data/previews/docs/beta_breadcrumbs_preview/basic.html.erb +0 -5
  250. data/previews/docs/beta_breadcrumbs_preview.rb +0 -7
  251. data/previews/docs/beta_button_group_preview/default.html.erb +0 -8
  252. data/previews/docs/beta_button_group_preview/sizes.html.erb +0 -7
  253. data/previews/docs/beta_button_group_preview.rb +0 -9
  254. data/previews/docs/beta_button_preview/full_width.html.erb +0 -2
  255. data/previews/docs/beta_button_preview/schemes.html.erb +0 -4
  256. data/previews/docs/beta_button_preview/sizes.html.erb +0 -2
  257. data/previews/docs/beta_button_preview/with_leading_and_trailing_visuals.html.erb +0 -5
  258. data/previews/docs/beta_button_preview/with_leading_visual.html.erb +0 -4
  259. data/previews/docs/beta_button_preview/with_tooltip.html.erb +0 -4
  260. data/previews/docs/beta_button_preview/with_trailing_visual.html.erb +0 -4
  261. data/previews/docs/beta_button_preview.rb +0 -19
  262. data/previews/docs/beta_clipboard_copy_preview/copying_from_an_element.html.erb +0 -2
  263. data/previews/docs/beta_clipboard_copy_preview/default.html.erb +0 -1
  264. data/previews/docs/beta_clipboard_copy_preview/with_text_instead_of_icons.html.erb +0 -3
  265. data/previews/docs/beta_clipboard_copy_preview.rb +0 -11
  266. data/previews/docs/beta_close_button_preview/default.html.erb +0 -1
  267. data/previews/docs/beta_close_button_preview.rb +0 -7
  268. data/previews/docs/beta_counter_preview/default.html.erb +0 -1
  269. data/previews/docs/beta_counter_preview/schemes.html.erb +0 -2
  270. data/previews/docs/beta_counter_preview.rb +0 -9
  271. data/previews/docs/beta_details_preview/default.html.erb +0 -9
  272. data/previews/docs/beta_details_preview.rb +0 -7
  273. data/previews/docs/beta_flash_preview/dismissible.html.erb +0 -1
  274. data/previews/docs/beta_flash_preview/full_width.html.erb +0 -1
  275. data/previews/docs/beta_flash_preview/icon.html.erb +0 -1
  276. data/previews/docs/beta_flash_preview/schemes.html.erb +0 -4
  277. data/previews/docs/beta_flash_preview/with_actions.html.erb +0 -6
  278. data/previews/docs/beta_flash_preview.rb +0 -15
  279. data/previews/docs/beta_heading_preview/default.html.erb +0 -6
  280. data/previews/docs/beta_heading_preview.rb +0 -7
  281. data/previews/docs/beta_icon_button_preview/custom_tooltip_direction.html.erb +0 -2
  282. data/previews/docs/beta_icon_button_preview/default.html.erb +0 -2
  283. data/previews/docs/beta_icon_button_preview/schemes.html.erb +0 -3
  284. data/previews/docs/beta_icon_button_preview/with_an_aria_description.html.erb +0 -1
  285. data/previews/docs/beta_icon_button_preview.rb +0 -13
  286. data/previews/docs/beta_label_preview/inline.html.erb +0 -2
  287. data/previews/docs/beta_label_preview/schemes.html.erb +0 -10
  288. data/previews/docs/beta_label_preview/sizes.html.erb +0 -2
  289. data/previews/docs/beta_label_preview.rb +0 -11
  290. data/previews/docs/beta_link_preview/default.html.erb +0 -1
  291. data/previews/docs/beta_link_preview/muted.html.erb +0 -1
  292. data/previews/docs/beta_link_preview/schemes.html.erb +0 -2
  293. data/previews/docs/beta_link_preview/with_tooltip.html.erb +0 -4
  294. data/previews/docs/beta_link_preview/without_underline.html.erb +0 -1
  295. data/previews/docs/beta_link_preview.rb +0 -15
  296. data/previews/docs/beta_markdown_preview/default.html.erb +0 -260
  297. data/previews/docs/beta_markdown_preview.rb +0 -7
  298. data/previews/docs/beta_octicon_preview/default.html.erb +0 -2
  299. data/previews/docs/beta_octicon_preview/helper.html.erb +0 -1
  300. data/previews/docs/beta_octicon_preview/medium.html.erb +0 -1
  301. data/previews/docs/beta_octicon_preview.rb +0 -11
  302. data/previews/docs/beta_popover_preview/caret_position.html.erb +0 -8
  303. data/previews/docs/beta_popover_preview/default.html.erb +0 -8
  304. data/previews/docs/beta_popover_preview/large.html.erb +0 -8
  305. data/previews/docs/beta_popover_preview/with_multiple_elements_in_the_body.html.erb +0 -11
  306. data/previews/docs/beta_popover_preview.rb +0 -13
  307. data/previews/docs/beta_progress_bar_preview/default.html.erb +0 -3
  308. data/previews/docs/beta_progress_bar_preview/large.html.erb +0 -3
  309. data/previews/docs/beta_progress_bar_preview/multiple_items.html.erb +0 -5
  310. data/previews/docs/beta_progress_bar_preview/small.html.erb +0 -3
  311. data/previews/docs/beta_progress_bar_preview.rb +0 -13
  312. data/previews/docs/beta_relative_time_preview/default.html.erb +0 -1
  313. data/previews/docs/beta_relative_time_preview/elapsed_time.html.erb +0 -1
  314. data/previews/docs/beta_relative_time_preview/past_time.html.erb +0 -1
  315. data/previews/docs/beta_relative_time_preview.rb +0 -11
  316. data/previews/docs/beta_spinner_preview/default.html.erb +0 -1
  317. data/previews/docs/beta_spinner_preview/large.html.erb +0 -1
  318. data/previews/docs/beta_spinner_preview/small.html.erb +0 -1
  319. data/previews/docs/beta_spinner_preview.rb +0 -11
  320. data/previews/docs/beta_state_preview/default.html.erb +0 -1
  321. data/previews/docs/beta_state_preview/schemes.html.erb +0 -4
  322. data/previews/docs/beta_state_preview/sizes.html.erb +0 -2
  323. data/previews/docs/beta_state_preview.rb +0 -11
  324. data/previews/docs/beta_subhead_preview/default.html.erb +0 -8
  325. data/previews/docs/beta_subhead_preview/with_actions.html.erb +0 -15
  326. data/previews/docs/beta_subhead_preview/with_dangerous_heading.html.erb +0 -8
  327. data/previews/docs/beta_subhead_preview/with_long_description.html.erb +0 -6
  328. data/previews/docs/beta_subhead_preview/without_border.html.erb +0 -8
  329. data/previews/docs/beta_subhead_preview.rb +0 -15
  330. data/previews/docs/beta_text_preview/default.html.erb +0 -2
  331. data/previews/docs/beta_text_preview.rb +0 -7
  332. data/previews/docs/beta_timeline_item_preview/default.html.erb +0 -7
  333. data/previews/docs/beta_timeline_item_preview.rb +0 -7
  334. data/previews/docs/beta_truncate_preview/advanced_multiple_items.html.erb +0 -9
  335. data/previews/docs/beta_truncate_preview/default.html.erb +0 -1
  336. data/previews/docs/beta_truncate_preview/expand_on_hover_or_focus.html.erb +0 -6
  337. data/previews/docs/beta_truncate_preview/max_widths.html.erb +0 -5
  338. data/previews/docs/beta_truncate_preview/max_widths_on_new_lines.html.erb +0 -11
  339. data/previews/docs/beta_truncate_preview/multiple_items.html.erb +0 -6
  340. data/previews/docs/beta_truncate_preview.rb +0 -17
  341. data/previews/docs/blankslate_component_preview/action_button.html.erb +0 -8
  342. data/previews/docs/blankslate_component_preview/basic.html.erb +0 -4
  343. data/previews/docs/blankslate_component_preview/custom_content.html.erb +0 -5
  344. data/previews/docs/blankslate_component_preview/icon.html.erb +0 -5
  345. data/previews/docs/blankslate_component_preview/link.html.erb +0 -7
  346. data/previews/docs/blankslate_component_preview/loading.html.erb +0 -6
  347. data/previews/docs/blankslate_component_preview/variations.html.erb +0 -8
  348. data/previews/docs/blankslate_component_preview.rb +0 -19
  349. data/previews/docs/box_preview/color_and_padding.html.erb +0 -1
  350. data/previews/docs/box_preview/default.html.erb +0 -1
  351. data/previews/docs/box_preview.rb +0 -9
  352. data/previews/docs/button_component_preview/block.html.erb +0 -2
  353. data/previews/docs/button_component_preview/schemes.html.erb +0 -6
  354. data/previews/docs/button_component_preview/sizes.html.erb +0 -2
  355. data/previews/docs/button_component_preview/with_dropdown_caret.html.erb +0 -3
  356. data/previews/docs/button_component_preview/with_leading_and_trailing_visuals.html.erb +0 -5
  357. data/previews/docs/button_component_preview/with_leading_visual.html.erb +0 -4
  358. data/previews/docs/button_component_preview/with_tooltip.html.erb +0 -4
  359. data/previews/docs/button_component_preview/with_trailing_visual.html.erb +0 -4
  360. data/previews/docs/button_component_preview.rb +0 -21
  361. data/previews/docs/dropdown_preview/customizing_menu_items.html.erb +0 -11
  362. data/previews/docs/dropdown_preview/customizing_the_button.html.erb +0 -12
  363. data/previews/docs/dropdown_preview/default.html.erb +0 -11
  364. data/previews/docs/dropdown_preview/menu_as_list.html.erb +0 -13
  365. data/previews/docs/dropdown_preview/with_caret.html.erb +0 -12
  366. data/previews/docs/dropdown_preview/with_direction.html.erb +0 -12
  367. data/previews/docs/dropdown_preview/with_dividers.html.erb +0 -16
  368. data/previews/docs/dropdown_preview.rb +0 -19
  369. data/previews/docs/hellip_button_preview/default.html.erb +0 -1
  370. data/previews/docs/hellip_button_preview/inline.html.erb +0 -1
  371. data/previews/docs/hellip_button_preview/styling_the_button.html.erb +0 -1
  372. data/previews/docs/hellip_button_preview.rb +0 -11
  373. data/previews/docs/icon_button_preview/custom_tooltip_direction.html.erb +0 -2
  374. data/previews/docs/icon_button_preview/default.html.erb +0 -2
  375. data/previews/docs/icon_button_preview/in_a_borderbox.html.erb +0 -7
  376. data/previews/docs/icon_button_preview/schemes.html.erb +0 -3
  377. data/previews/docs/icon_button_preview/with_an_aria_description.html.erb +0 -1
  378. data/previews/docs/icon_button_preview.rb +0 -15
  379. data/previews/docs/label_component_preview/inline.html.erb +0 -2
  380. data/previews/docs/label_component_preview/schemes.html.erb +0 -10
  381. data/previews/docs/label_component_preview/sizes.html.erb +0 -2
  382. data/previews/docs/label_component_preview.rb +0 -11
  383. data/previews/docs/layout_component_preview/default.html.erb +0 -4
  384. data/previews/docs/layout_component_preview/left_sidebar.html.erb +0 -4
  385. data/previews/docs/layout_component_preview.rb +0 -9
  386. data/previews/docs/link_component_preview/default.html.erb +0 -1
  387. data/previews/docs/link_component_preview/muted.html.erb +0 -1
  388. data/previews/docs/link_component_preview/schemes.html.erb +0 -2
  389. data/previews/docs/link_component_preview/with_tooltip.html.erb +0 -4
  390. data/previews/docs/link_component_preview/without_underline.html.erb +0 -1
  391. data/previews/docs/link_component_preview.rb +0 -15
  392. data/previews/docs/local_time_preview/all_the_options.html.erb +0 -1
  393. data/previews/docs/local_time_preview/default.html.erb +0 -1
  394. data/previews/docs/local_time_preview/with_initial_content.html.erb +0 -4
  395. data/previews/docs/local_time_preview.rb +0 -11
  396. data/previews/docs/markdown_preview/default.html.erb +0 -260
  397. data/previews/docs/markdown_preview.rb +0 -7
  398. data/previews/docs/menu_component_preview/default.html.erb +0 -17
  399. data/previews/docs/menu_component_preview.rb +0 -7
  400. data/previews/docs/navigation_tab_component_preview/default.html.erb +0 -6
  401. data/previews/docs/navigation_tab_component_preview/inside_a_list.html.erb +0 -3
  402. data/previews/docs/navigation_tab_component_preview/with_custom_html.html.erb +0 -5
  403. data/previews/docs/navigation_tab_component_preview/with_icons_and_counters.html.erb +0 -13
  404. data/previews/docs/navigation_tab_component_preview.rb +0 -13
  405. data/previews/docs/octicon_component_preview/default.html.erb +0 -2
  406. data/previews/docs/octicon_component_preview/helper.html.erb +0 -1
  407. data/previews/docs/octicon_component_preview/medium.html.erb +0 -1
  408. data/previews/docs/octicon_component_preview.rb +0 -11
  409. data/previews/docs/octicon_symbols_component_preview/symbol_dictionary.html.erb +0 -4
  410. data/previews/docs/octicon_symbols_component_preview.rb +0 -7
  411. data/previews/docs/popover_component_preview/caret_position.html.erb +0 -8
  412. data/previews/docs/popover_component_preview/default.html.erb +0 -8
  413. data/previews/docs/popover_component_preview/large.html.erb +0 -8
  414. data/previews/docs/popover_component_preview/with_multiple_elements_in_the_body.html.erb +0 -11
  415. data/previews/docs/popover_component_preview.rb +0 -13
  416. data/previews/docs/spinner_component_preview/default.html.erb +0 -1
  417. data/previews/docs/spinner_component_preview/large.html.erb +0 -1
  418. data/previews/docs/spinner_component_preview/small.html.erb +0 -1
  419. data/previews/docs/spinner_component_preview.rb +0 -11
  420. data/previews/docs/state_component_preview/default.html.erb +0 -1
  421. data/previews/docs/state_component_preview/schemes.html.erb +0 -4
  422. data/previews/docs/state_component_preview/sizes.html.erb +0 -2
  423. data/previews/docs/state_component_preview.rb +0 -11
  424. data/previews/docs/subhead_component_preview/default.html.erb +0 -8
  425. data/previews/docs/subhead_component_preview/with_actions.html.erb +0 -15
  426. data/previews/docs/subhead_component_preview/with_dangerous_heading.html.erb +0 -8
  427. data/previews/docs/subhead_component_preview/with_long_description.html.erb +0 -6
  428. data/previews/docs/subhead_component_preview/without_border.html.erb +0 -8
  429. data/previews/docs/subhead_component_preview.rb +0 -15
  430. data/previews/docs/tab_container_component_preview/default.html.erb +0 -16
  431. data/previews/docs/tab_container_component_preview.rb +0 -7
  432. data/previews/docs/time_ago_component_preview/default.html.erb +0 -1
  433. data/previews/docs/time_ago_component_preview.rb +0 -7
  434. data/previews/docs/timeline_item_component_preview/default.html.erb +0 -7
  435. data/previews/docs/timeline_item_component_preview.rb +0 -7
  436. data/previews/docs/tooltip_preview/default.html.erb +0 -3
  437. data/previews/docs/tooltip_preview/with_a_direction.html.erb +0 -3
  438. data/previews/docs/tooltip_preview/with_an_alignment.html.erb +0 -3
  439. data/previews/docs/tooltip_preview/without_a_delay.html.erb +0 -3
  440. data/previews/docs/tooltip_preview/wrapping_another_component.html.erb +0 -5
  441. data/previews/docs/tooltip_preview.rb +0 -15
  442. data/previews/docs/truncate_preview/custom_size.html.erb +0 -1
  443. data/previews/docs/truncate_preview/default.html.erb +0 -3
  444. data/previews/docs/truncate_preview/expandable.html.erb +0 -1
  445. data/previews/docs/truncate_preview/inline.html.erb +0 -1
  446. data/previews/docs/truncate_preview/with_html_content.html.erb +0 -3
  447. data/previews/docs/truncate_preview.rb +0 -15
@@ -1,12 +0,0 @@
1
- <%= render(Yattho::Alpha::Dropdown.new(display: :inline_block)) do |component| %>
2
- <% component.with_button do %>
3
- Dropdown
4
- <% end %>
5
-
6
- <% component.with_menu(header: "Options", direction: :s) do |menu|
7
- menu.with_item { "Item 1" }
8
- menu.with_item { "Item 2" }
9
- menu.with_item { "Item 3" }
10
- menu.with_item { "Item 4" }
11
- end %>
12
- <% end %>
@@ -1,16 +0,0 @@
1
- <%= render(Yattho::Alpha::Dropdown.new) do |component| %>
2
- <% component.with_button do %>
3
- Dropdown
4
- <% end %>
5
-
6
- <% component.with_menu(header: "Options") do |menu|
7
- menu.with_item { "Item 1" }
8
- menu.with_item { "Item 2" }
9
- menu.with_item(divider: true)
10
- menu.with_item { "Item 3" }
11
- menu.with_item { "Item 4" }
12
- menu.with_item(divider: true)
13
- menu.with_item { "Item 5" }
14
- menu.with_item { "Item 6" }
15
- end %>
16
- <% end %>
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaDropdownPreview < ViewComponent::Preview
5
- def default; end
6
-
7
- def with_dividers; end
8
-
9
- def with_direction; end
10
-
11
- def with_caret; end
12
-
13
- def customizing_the_button; end
14
-
15
- def menu_as_list; end
16
-
17
- def customizing_menu_items; end
18
- end
19
- end
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::HellipButton.new("aria-label": "No effect")) %>
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::HellipButton.new(inline: true, "aria-label": "No effect")) %>
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::HellipButton.new(p: 1, classes: "custom-class", "aria-label": "No effect")) %>
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaHellipButtonPreview < ViewComponent::Preview
5
- def default; end
6
-
7
- def inline; end
8
-
9
- def styling_the_button; end
10
- end
11
- end
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::HiddenTextExpander.new("aria-label": "No effect")) %>
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::HiddenTextExpander.new(inline: true, "aria-label": "No effect")) %>
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::HiddenTextExpander.new("aria-label": "No effect", button_arguments: { p: 1, classes: "custom-class" })) %>
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaHiddenTextExpanderPreview < ViewComponent::Preview
5
- def default; end
6
-
7
- def inline; end
8
-
9
- def styling_the_button; end
10
- end
11
- end
@@ -1,3 +0,0 @@
1
- <%= render(Yattho::Alpha::ImageCrop.new(src: Yattho::ExampleImage::BASE64_SRC, rounded: false)) do |cropper| %>
2
- <% cropper.with_loading(style: "width: 120px").with_content("Loading...") %>
3
- <% end %>
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::ImageCrop.new(src: Yattho::ExampleImage::BASE64_SRC)) %>
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::ImageCrop.new(src: Yattho::ExampleImage::BASE64_SRC, rounded: false)) %>
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaImageCropPreview < ViewComponent::Preview
5
- def simple_cropper; end
6
-
7
- def square_cropper; end
8
-
9
- def cropper_with_a_custom_loader; end
10
- end
11
- end
@@ -1,2 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::Image.new(src: Yattho::ExampleImage::BASE64_SRC, alt: "GitHub", height: 100, width: 100)) %>
@@ -1,2 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::Image.new(src: Yattho::ExampleImage::BASE64_SRC, alt: "GitHub")) %>
@@ -1,2 +0,0 @@
1
-
2
- <%= yattho_image(src: Yattho::ExampleImage::BASE64_SRC, alt: "GitHub") %>
@@ -1,2 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::Image.new(src: Yattho::ExampleImage::BASE64_SRC, alt: "GitHub", lazy: true)) %>
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaImagePreview < ViewComponent::Preview
5
- def default; end
6
-
7
- def helper; end
8
-
9
- def lazy_loading; end
10
-
11
- def custom_size; end
12
- end
13
- end
@@ -1,12 +0,0 @@
1
- <%= render(Yattho::Alpha::Layout.new(stacking_breakpoint: :sm)) do |component| %>
2
- <% component.with_main(border: true) { "Main" } %>
3
- <% component.with_sidebar(border: true) { "Sidebar" } %>
4
- <% end %>
5
- <%= render(Yattho::Alpha::Layout.new(stacking_breakpoint: :md, mt: 5)) do |component| %>
6
- <% component.with_main(border: true) { "Main" } %>
7
- <% component.with_sidebar(border: true) { "Sidebar" } %>
8
- <% end %>
9
- <%= render(Yattho::Alpha::Layout.new(stacking_breakpoint: :lg, mt: 5)) do |component| %>
10
- <% component.with_main(border: true) { "Main" } %>
11
- <% component.with_sidebar(border: true) { "Sidebar" } %>
12
- <% end %>
@@ -1,5 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::Layout.new) do |component| %>
3
- <% component.with_main(border: true) { "Main" } %>
4
- <% component.with_sidebar(border: true) { "Sidebar" } %>
5
- <% end %>
@@ -1,16 +0,0 @@
1
- <%= render(Yattho::Alpha::Layout.new) do |component| %>
2
- <% component.with_main(width: :full, border: true) { "Main" } %>
3
- <% component.with_sidebar(border: true) { "Sidebar" } %>
4
- <% end %>
5
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
6
- <% component.with_main(width: :md, border: true) { "Main" } %>
7
- <% component.with_sidebar(border: true) { "Sidebar" } %>
8
- <% end %>
9
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
10
- <% component.with_main(width: :lg, border: true) { "Main" } %>
11
- <% component.with_sidebar(border: true) { "Sidebar" } %>
12
- <% end %>
13
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
14
- <% component.with_main(width: :xl, border: true) { "Main" } %>
15
- <% component.with_sidebar(border: true) { "Sidebar" } %>
16
- <% end %>
@@ -1,8 +0,0 @@
1
- <%= render(Yattho::Alpha::Layout.new) do |component| %>
2
- <% component.with_main(border: true) { "Main" } %>
3
- <% component.with_sidebar(col_placement: :start, border: true) { "Sidebar" } %>
4
- <% end %>
5
- <%= render(Yattho::Alpha::Layout.new( mt: 5)) do |component| %>
6
- <% component.with_main(border: true) { "Main" } %>
7
- <% component.with_sidebar(col_placement: :end, border: true) { "Sidebar" } %>
8
- <% end %>
@@ -1,12 +0,0 @@
1
- <%= render(Yattho::Alpha::Layout.new) do |component| %>
2
- <% component.with_main(border: true) { "Main" } %>
3
- <% component.with_sidebar(row_placement: :start, border: true) { "Sidebar" } %>
4
- <% end %>
5
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
6
- <% component.with_main(border: true) { "Main" } %>
7
- <% component.with_sidebar(row_placement: :end, border: true) { "Sidebar" } %>
8
- <% end %>
9
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
10
- <% component.with_main(border: true) { "Main" } %>
11
- <% component.with_sidebar(row_placement: :none, border: true) { "Sidebar" } %>
12
- <% end %>
@@ -1,12 +0,0 @@
1
- <%= render(Yattho::Alpha::Layout.new) do |component| %>
2
- <% component.with_main(border: true) { "Main" } %>
3
- <% component.with_sidebar(width: :default, border: true) { "Sidebar" } %>
4
- <% end %>
5
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
6
- <% component.with_main(border: true) { "Main" } %>
7
- <% component.with_sidebar(width: :narrow, border: true) { "Sidebar" } %>
8
- <% end %>
9
- <%= render(Yattho::Alpha::Layout.new(mt: 5)) do |component| %>
10
- <% component.with_main(border: true) { "Main" } %>
11
- <% component.with_sidebar(width: :wide, border: true) { "Sidebar" } %>
12
- <% end %>
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaLayoutPreview < ViewComponent::Preview
5
- def default; end
6
-
7
- def main_widths; end
8
-
9
- def sidebar_widths; end
10
-
11
- def sidebar_placement; end
12
-
13
- def sidebar_placement_as_row; end
14
-
15
- def changing_when_to_render_layout_as_columns; end
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- <%= render(Yattho::Alpha::Menu.new) do |component| %>
2
- <% component.with_heading(tag: :h2) do %>
3
- Heading
4
- <% end %>
5
- <% component.with_item(selected: true, href: "#url") do %>
6
- Item 1
7
- <% end %>
8
- <% component.with_item(href: "#url") do %>
9
- <%= render(Yattho::Beta::Octicon.new("check")) %>
10
- With Icon
11
- <% end %>
12
- <% component.with_item(href: "#url") do %>
13
- <%= render(Yattho::Beta::Octicon.new("check")) %>
14
- With Icon and Counter
15
- <%= render(Yattho::Beta::Counter.new(count: 25)) %>
16
- <% end %>
17
- <% end %>
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaMenuPreview < ViewComponent::Preview
5
- def default; end
6
- end
7
- end
@@ -1,24 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::NavList.new(selected_item_id: :email_notifications)) do |component| %>
3
- <% component.with_section(aria: { label: "Account settings" }) do |section| %>
4
- <% section.with_heading(title: "Account Settings") %>
5
- <% section.with_item(label: "Notification settings", selected_by_ids: :notifications) do |item| %>
6
- <% item.with_leading_visual_icon(icon: :bell) %>
7
- <% item.with_item(label: "Email", selected_by_ids: :email_notifications, href: "/account/notifications/email") do |subitem| %>
8
- <% subitem.with_trailing_visual_icon(icon: :mail) %>
9
- <% end %>
10
- <% item.with_item(label: "SMS", selected_by_ids: :sms_notifications, href: "/account/notifications/sms") do |subitem| %>
11
- <% subitem.with_trailing_visual_icon(icon: :"device-mobile") %>
12
- <% end %>
13
- <% end %>
14
- <% section.with_item(label: "Messages", selected_by_ids: :messages) do |item| %>
15
- <% item.with_leading_visual_icon(icon: :bookmark) %>
16
- <% item.with_item(label: "Inbox", href: "/account/messages/inbox") do |subitem| %>
17
- <% subitem.with_trailing_visual_counter(count: 10) %>
18
- <% end %>
19
- <% item.with_item(label: "Organizer", href: "/account/messages/organizer") do |subitem| %>
20
- <% subitem.with_trailing_visual_label(scheme: :primary) { "New" } %>
21
- <% end %>
22
- <% end %>
23
- <% end %>
24
- <% end %>
@@ -1,12 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::NavList.new(selected_item_id: :personal_info)) do |component| %>
3
- <% component.with_section(aria: { label: "Settings" }) do |section| %>
4
- <% section.with_item(label: "General", selected_by_ids: :general, href: "/settings/general") %>
5
- <% end %>
6
- <% component.with_section(aria: { label: "Account settings" }) do |section| %>
7
- <% section.with_heading(title: "Account Settings") %>
8
- <% section.with_item(label: "Personal Information", selected_by_ids: :personal_info, href: "/account/info") %>
9
- <% section.with_item(label: "Password", selected_by_ids: :password, href: "/account/password") %>
10
- <% section.with_item(label: "Billing info", selected_by_ids: :billing, href: "/account/billing") %>
11
- <% end %>
12
- <% end %>
@@ -1,17 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::NavList.new(selected_item_id: :personal_info)) do |component| %>
3
- <% component.with_section(aria: { label: "Account settings" }) do |section| %>
4
- <% section.with_heading(title: "Account Settings") %>
5
- <% section.with_item(label: "Personal Information", selected_by_ids: :personal_info, href: "/account/info") do |item| %>
6
- <% item.with_leading_visual_avatar(src: "https://github.com/github.png", alt: "GitHub") %>
7
- <% end %>
8
- <% section.with_item(label: "Notifications", selected_by_ids: :notifications, href: "/account/notifications") do |item| %>
9
- <% item.with_leading_visual_icon(icon: :bell) %>
10
- <% item.with_trailing_visual_counter(count: 15) %>
11
- <% end %>
12
- <% section.with_item(label: "Billing info", selected_by_ids: :billing, href: "/account/billing") do |item| %>
13
- <% item.with_leading_visual_icon(icon: :package) %>
14
- <% item.with_trailing_visual_icon(icon: :"dot-fill", color: :attention) %>
15
- <% end %>
16
- <% end %>
17
- <% end %>
@@ -1,12 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::NavList.new) do |component| %>
3
- <% component.with_section(aria: { label: "Favorite foods" }) do |section| %>
4
- <% section.with_heading(title: "My Favorite Foods") %>
5
- <% section.with_item(label: "Popplers", selected_by_ids: :popplers, href: "/foods/popplers") do |item| %>
6
- <% item.with_trailing_action(show_on_hover: false, icon: "plus", "aria-label": "Add new food", size: :medium) %>
7
- <% end %>
8
- <% section.with_item(label: "Slurm", selected_by_ids: :slurm, href: "/foods/slurm") do |item| %>
9
- <% item.with_trailing_action(show_on_hover: true, icon: "plus", "aria-label": "Add new food", size: :medium) %>
10
- <% end %>
11
- <% end %>
12
- <% end %>
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaNavListPreview < ViewComponent::Preview
5
- def items_and_headings; end
6
-
7
- def leading_and_trailing_visuals; end
8
-
9
- def expandable_sub_items; end
10
-
11
- def trailing_action; end
12
- end
13
- end
@@ -1,4 +0,0 @@
1
- <%= render(Yattho::Beta::Octicon.new(icon: :check, use_symbol: true, color: :success)) %>
2
- <%= render(Yattho::Beta::Octicon.new(icon: :check, use_symbol: true, color: :danger)) %>
3
- <%= render(Yattho::Beta::Octicon.new(icon: :check, use_symbol: true, size: :medium)) %>
4
- <%= render(Yattho::Alpha::OcticonSymbols.new(icons: [{ symbol: :check }, { symbol: :check, size: :medium }])) %>
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaOcticonSymbolsPreview < ViewComponent::Preview
5
- def symbol_dictionary; end
6
- end
7
- end
@@ -1,6 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::SegmentedControl.new("aria-label": "File view")) do |component| %>
3
- <%= component.with_item(label: "Preview", selected: true) %>
4
- <%= component.with_item(label: "Raw") %>
5
- <%= component.with_item(label: "Blame") %>
6
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= render(Yattho::Alpha::SegmentedControl.new("aria-label": "File view", full_width: true)) do |component| %>
2
- <%= component.with_item(label: "Preview", icon: :eye, selected: true) %>
3
- <%= component.with_item(label: "Raw", icon: :"file-code") %>
4
- <%= component.with_item(label: "Blame", icon: :people) %>
5
- <% end %>
@@ -1,6 +0,0 @@
1
-
2
- <%= render(Yattho::Alpha::SegmentedControl.new("aria-label": "File view", size: :small)) do |component| %>
3
- <%= component.with_item(label: "Preview", selected: true) %>
4
- <%= component.with_item(label: "Raw") %>
5
- <%= component.with_item(label: "Blame") %>
6
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= render(Yattho::Alpha::SegmentedControl.new("aria-label": "File view")) do |component| %>
2
- <%= component.with_item(label: "Preview", icon: :eye, selected: true) %>
3
- <%= component.with_item(label: "Raw", icon: :"file-code") %>
4
- <%= component.with_item(label: "Blame", icon: :people) %>
5
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= render(Yattho::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true)) do |component| %>
2
- <%= component.with_item(label: "Preview", icon: :eye, selected: true) %>
3
- <%= component.with_item(label: "Raw", icon: :"file-code") %>
4
- <%= component.with_item(label: "Blame", icon: :people) %>
5
- <% end %>
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaSegmentedControlPreview < ViewComponent::Preview
5
- def basic_usage; end
6
-
7
- def small; end
8
-
9
- def with_icons; end
10
-
11
- def with_icons_only; end
12
-
13
- def fill_width_of_parent; end
14
- end
15
- end
@@ -1,16 +0,0 @@
1
- <%= render(Yattho::Alpha::TabContainer.new) do %>
2
- <div role="tablist">
3
- <button type="button" role="tab" aria-selected="true">Tab one</button>
4
- <button type="button" role="tab" tabindex="-1">Tab two</button>
5
- <button type="button" role="tab" tabindex="-1">Tab three</button>
6
- </div>
7
- <div role="tabpanel">
8
- Panel 1
9
- </div>
10
- <div role="tabpanel" hidden>
11
- Panel 2
12
- </div>
13
- <div role="tabpanel" hidden>
14
- Panel 3
15
- </div>
16
- <% end %>
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaTabContainerPreview < ViewComponent::Preview
5
- def default; end
6
- end
7
- end
@@ -1,10 +0,0 @@
1
- <%= render(Yattho::Alpha::TabNav.new(label: "Adding extra content after the tabs", display: :flex, body_arguments: { flex: 1 })) do |component| %>
2
- <% component.with_tab(selected: true, href: "#") { "Tab 1" }%>
3
- <% component.with_tab(href: "#") { "Tab 2" } %>
4
- <% component.with_tab(href: "#") { "Tab 3" } %>
5
- <% component.with_extra(align: :right) do %>
6
- <div>
7
- <%= render(Yattho::ButtonComponent.new) { "Button" } %>
8
- </div>
9
- <% end %>
10
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= render(Yattho::Alpha::TabNav.new(label: "Default", body_arguments: { classes: "custom-class", border: true, border_color: :accent_emphasis })) do |component| %>
2
- <% component.with_tab(selected: true, href: "#") { "Tab 1" }%>
3
- <% component.with_tab(href: "#") { "Tab 2" } %>
4
- <% component.with_tab(href: "#") { "Tab 3" } %>
5
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= render(Yattho::Alpha::TabNav.new(label: "Default")) do |component| %>
2
- <% component.with_tab(selected: true, href: "#") { "Tab 1" } %>
3
- <% component.with_tab(href: "#") { "Tab 2" } %>
4
- <% component.with_tab(href: "#") { "Tab 3" } %>
5
- <% end %>
@@ -1,5 +0,0 @@
1
- <%= render(Yattho::Alpha::TabNav.new(label: "Default")) do |component| %>
2
- <% component.with_tab(selected: true, href: "#") { "Tab 1" } %>
3
- <% component.with_tab(href: "#") { "Tab 2" } %>
4
- <% component.with_tab(href: "#") { "Tab 3" } %>
5
- <% end %>
@@ -1,8 +0,0 @@
1
- <%= render(Yattho::Alpha::TabNav.new(label: "With extra content")) do |component| %>
2
- <% component.with_tab(selected: true, href: "#") { "Tab 1" }%>
3
- <% component.with_tab(href: "#") { "Tab 2" } %>
4
- <% component.with_tab(href: "#") { "Tab 3" } %>
5
- <% component.with_extra do %>
6
- <%= render(Yattho::ButtonComponent.new(float: :right)) { "Button" } %>
7
- <% end %>
8
- <% end %>
@@ -1,15 +0,0 @@
1
- <%= render(Yattho::Alpha::TabNav.new(label: "With icons and counters")) do |component| %>
2
- <% component.with_tab(href: "#", selected: true) do |tab| %>
3
- <% tab.with_icon(icon: :star) %>
4
- <% tab.with_text { "Item 1" } %>
5
- <% end %>
6
- <% component.with_tab(href: "#") do |tab| %>
7
- <% tab.with_icon(icon: :star) %>
8
- <% tab.with_text { "Item 2" } %>
9
- <% tab.with_counter(count: 10) %>
10
- <% end %>
11
- <% component.with_tab(href: "#") do |tab| %>
12
- <% tab.with_text { "Item 3" } %>
13
- <% tab.with_counter(count: 10) %>
14
- <% end %>
15
- <% end %>
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaTabNavPreview < ViewComponent::Preview
5
- def default_with_nav; end
6
-
7
- def default_with_div; end
8
-
9
- def with_icons_and_counters; end
10
-
11
- def with_extra_content; end
12
-
13
- def adding_extra_content_after_the_tabs; end
14
-
15
- def customizing_the_body; end
16
- end
17
- end
@@ -1,14 +0,0 @@
1
- <%= render(Yattho::Alpha::TabPanels.new(label: "With panels")) do |component| %>
2
- <% component.with_tab(id: "tab-1", selected: true) do |tab| %>
3
- <% tab.with_text { "Tab 1" } %>
4
- <% tab.with_panel do %>
5
- Panel 1
6
- <% end %>
7
- <% end %>
8
- <% component.with_tab(id: "tab-2") do |tab| %>
9
- <% tab.with_text { "Tab 2" } %>
10
- <% tab.with_panel do %>
11
- Panel 2
12
- <% end %>
13
- <% end %>
14
- <% end %>
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Docs
4
- class AlphaTabPanelsPreview < ViewComponent::Preview
5
- def default; end
6
- end
7
- end
@@ -1 +0,0 @@
1
- <%= render(Yattho::Alpha::TextField.new(name: :first_name, label: "First name")) %>
@@ -1,7 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- disabled: true
6
- )
7
- ) %>
@@ -1,7 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- full_width: true
6
- )
7
- ) %>
@@ -1,7 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- invalid: true
6
- )
7
- ) %>
@@ -1,7 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- caption: "What your friends call you"
6
- )
7
- ) %>
@@ -1,7 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- show_clear_button: true
6
- )
7
- ) %>
@@ -1,9 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- leading_visual: {
6
- icon: :person
7
- }
8
- )
9
- ) %>
@@ -1,7 +0,0 @@
1
- <%= render(
2
- Yattho::Alpha::TextField.new(
3
- name: :first_name,
4
- label: "First name",
5
- validation_message: "Hmm, that doesn't look right"
6
- )
7
- ) %>