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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/app/assets/javascripts/yattho_view_components.js +1 -1
- data/app/assets/javascripts/yattho_view_components.js.map +1 -1
- data/app/assets/styles/yattho_view_components.css +3 -5958
- data/app/assets/styles/yattho_view_components.css.map +1 -1
- data/app/components/yattho/alpha/action_list.css +1 -697
- data/app/components/yattho/alpha/action_list.css.json +1 -1
- data/app/components/yattho/alpha/action_list.css.map +1 -1
- data/app/components/yattho/alpha/auto_complete.css +1 -130
- data/app/components/yattho/alpha/auto_complete.css.json +1 -1
- data/app/components/yattho/alpha/auto_complete.css.map +1 -1
- data/app/components/yattho/alpha/banner.css +1 -131
- data/app/components/yattho/alpha/banner.css.json +1 -1
- data/app/components/yattho/alpha/banner.css.map +1 -1
- data/app/components/yattho/alpha/button_marketing.css +1 -211
- data/app/components/yattho/alpha/button_marketing.css.json +1 -1
- data/app/components/yattho/alpha/button_marketing.css.map +1 -1
- data/app/components/yattho/alpha/dialog.css +1 -613
- data/app/components/yattho/alpha/dialog.css.json +1 -1
- data/app/components/yattho/alpha/dialog.css.map +1 -1
- data/app/components/yattho/alpha/dropdown.css +1 -264
- data/app/components/yattho/alpha/dropdown.css.json +1 -1
- data/app/components/yattho/alpha/dropdown.css.map +1 -1
- data/app/components/yattho/alpha/layout.css +1 -398
- data/app/components/yattho/alpha/layout.css.json +1 -1
- data/app/components/yattho/alpha/layout.css.map +1 -1
- data/app/components/yattho/alpha/menu.css +1 -117
- data/app/components/yattho/alpha/menu.css.json +1 -1
- data/app/components/yattho/alpha/menu.css.map +1 -1
- data/app/components/yattho/alpha/modal_dialog.js +2 -0
- data/app/components/yattho/alpha/segmented_control.css +1 -164
- data/app/components/yattho/alpha/segmented_control.css.json +1 -1
- data/app/components/yattho/alpha/segmented_control.css.map +1 -1
- data/app/components/yattho/alpha/tab_nav.css +1 -106
- data/app/components/yattho/alpha/tab_nav.css.json +1 -1
- data/app/components/yattho/alpha/tab_nav.css.map +1 -1
- data/app/components/yattho/alpha/text_field.css +3 -836
- data/app/components/yattho/alpha/text_field.css.json +1 -1
- data/app/components/yattho/alpha/text_field.css.map +1 -1
- data/app/components/yattho/alpha/toggle_switch.css +1 -253
- data/app/components/yattho/alpha/toggle_switch.css.json +1 -1
- data/app/components/yattho/alpha/toggle_switch.css.map +1 -1
- data/app/components/yattho/alpha/underline_nav.css +1 -148
- data/app/components/yattho/alpha/underline_nav.css.json +1 -1
- data/app/components/yattho/alpha/underline_nav.css.map +1 -1
- data/app/components/yattho/beta/avatar.css +1 -74
- data/app/components/yattho/beta/avatar.css.json +1 -1
- data/app/components/yattho/beta/avatar.css.map +1 -1
- data/app/components/yattho/beta/avatar_stack.css +1 -138
- data/app/components/yattho/beta/avatar_stack.css.json +1 -1
- data/app/components/yattho/beta/avatar_stack.css.map +1 -1
- data/app/components/yattho/beta/blankslate.css +1 -90
- data/app/components/yattho/beta/blankslate.css.map +1 -1
- data/app/components/yattho/beta/border_box.css +1 -279
- data/app/components/yattho/beta/border_box.css.json +1 -1
- data/app/components/yattho/beta/border_box.css.map +1 -1
- data/app/components/yattho/beta/breadcrumbs.css +1 -27
- data/app/components/yattho/beta/breadcrumbs.css.json +1 -1
- data/app/components/yattho/beta/breadcrumbs.css.map +1 -1
- data/app/components/yattho/beta/button.css +1 -365
- data/app/components/yattho/beta/button.css.json +1 -1
- data/app/components/yattho/beta/button.css.map +1 -1
- data/app/components/yattho/beta/counter.css +1 -36
- data/app/components/yattho/beta/counter.css.map +1 -1
- data/app/components/yattho/beta/flash.css +1 -150
- data/app/components/yattho/beta/flash.css.json +1 -1
- data/app/components/yattho/beta/flash.css.map +1 -1
- data/app/components/yattho/beta/label.css +1 -105
- data/app/components/yattho/beta/label.css.json +1 -1
- data/app/components/yattho/beta/label.css.map +1 -1
- data/app/components/yattho/beta/link.css +1 -62
- data/app/components/yattho/beta/link.css.json +1 -1
- data/app/components/yattho/beta/link.css.map +1 -1
- data/app/components/yattho/beta/popover.css +1 -235
- data/app/components/yattho/beta/popover.css.json +1 -1
- data/app/components/yattho/beta/popover.css.map +1 -1
- data/app/components/yattho/beta/progress_bar.css +1 -26
- data/app/components/yattho/beta/progress_bar.css.json +1 -1
- data/app/components/yattho/beta/progress_bar.css.map +1 -1
- data/app/components/yattho/beta/state.css +1 -50
- data/app/components/yattho/beta/state.css.json +1 -1
- data/app/components/yattho/beta/state.css.map +1 -1
- data/app/components/yattho/beta/subhead.css +1 -54
- data/app/components/yattho/beta/subhead.css.json +1 -1
- data/app/components/yattho/beta/subhead.css.map +1 -1
- data/app/components/yattho/beta/timeline_item.css +1 -95
- data/app/components/yattho/beta/timeline_item.css.json +1 -1
- data/app/components/yattho/beta/timeline_item.css.map +1 -1
- data/app/components/yattho/beta/truncate.css +1 -37
- data/app/components/yattho/beta/truncate.css.json +1 -1
- data/app/components/yattho/beta/truncate.css.map +1 -1
- data/app/components/yattho/truncate.css +1 -30
- data/app/components/yattho/truncate.css.json +1 -1
- data/app/components/yattho/truncate.css.map +1 -1
- data/lib/yattho/view_components/version.rb +1 -1
- metadata +3 -353
- data/previews/docs/alpha_auto_complete_item_preview/default.html.erb +0 -10
- data/previews/docs/alpha_auto_complete_item_preview.rb +0 -7
- data/previews/docs/alpha_auto_complete_preview/default.html.erb +0 -1
- data/previews/docs/alpha_auto_complete_preview/with_clear_button.html.erb +0 -1
- data/previews/docs/alpha_auto_complete_preview/with_custom_classes_for_the_input.html.erb +0 -3
- data/previews/docs/alpha_auto_complete_preview/with_custom_classes_for_the_results.html.erb +0 -10
- data/previews/docs/alpha_auto_complete_preview/with_icon.html.erb +0 -1
- data/previews/docs/alpha_auto_complete_preview/with_icon_and_non_visible_label.html.erb +0 -1
- data/previews/docs/alpha_auto_complete_preview/with_inline_label.html.erb +0 -1
- data/previews/docs/alpha_auto_complete_preview/with_non_visible_label.html.erb +0 -1
- data/previews/docs/alpha_auto_complete_preview.rb +0 -21
- data/previews/docs/alpha_banner_preview/custom_icon.html.erb +0 -1
- data/previews/docs/alpha_banner_preview/dismissible.html.erb +0 -1
- data/previews/docs/alpha_banner_preview/full_width.html.erb +0 -1
- data/previews/docs/alpha_banner_preview/schemes.html.erb +0 -6
- data/previews/docs/alpha_banner_preview/with_action_button.html.erb +0 -4
- data/previews/docs/alpha_banner_preview/with_custom_action.html.erb +0 -6
- data/previews/docs/alpha_banner_preview.rb +0 -17
- data/previews/docs/alpha_button_marketing_preview/schemes.html.erb +0 -6
- data/previews/docs/alpha_button_marketing_preview/sizes.html.erb +0 -2
- data/previews/docs/alpha_button_marketing_preview.rb +0 -9
- data/previews/docs/alpha_dialog_preview/dialog_with_cancel_and_submit_buttons.html.erb +0 -13
- data/previews/docs/alpha_dialog_preview.rb +0 -7
- data/previews/docs/alpha_dropdown_preview/customizing_menu_items.html.erb +0 -11
- data/previews/docs/alpha_dropdown_preview/customizing_the_button.html.erb +0 -12
- data/previews/docs/alpha_dropdown_preview/default.html.erb +0 -11
- data/previews/docs/alpha_dropdown_preview/menu_as_list.html.erb +0 -13
- data/previews/docs/alpha_dropdown_preview/with_caret.html.erb +0 -12
- data/previews/docs/alpha_dropdown_preview/with_direction.html.erb +0 -12
- data/previews/docs/alpha_dropdown_preview/with_dividers.html.erb +0 -16
- data/previews/docs/alpha_dropdown_preview.rb +0 -19
- data/previews/docs/alpha_hellip_button_preview/default.html.erb +0 -1
- data/previews/docs/alpha_hellip_button_preview/inline.html.erb +0 -1
- data/previews/docs/alpha_hellip_button_preview/styling_the_button.html.erb +0 -1
- data/previews/docs/alpha_hellip_button_preview.rb +0 -11
- data/previews/docs/alpha_hidden_text_expander_preview/default.html.erb +0 -1
- data/previews/docs/alpha_hidden_text_expander_preview/inline.html.erb +0 -1
- data/previews/docs/alpha_hidden_text_expander_preview/styling_the_button.html.erb +0 -1
- data/previews/docs/alpha_hidden_text_expander_preview.rb +0 -11
- data/previews/docs/alpha_image_crop_preview/cropper_with_a_custom_loader.html.erb +0 -3
- data/previews/docs/alpha_image_crop_preview/simple_cropper.html.erb +0 -1
- data/previews/docs/alpha_image_crop_preview/square_cropper.html.erb +0 -1
- data/previews/docs/alpha_image_crop_preview.rb +0 -11
- data/previews/docs/alpha_image_preview/custom_size.html.erb +0 -2
- data/previews/docs/alpha_image_preview/default.html.erb +0 -2
- data/previews/docs/alpha_image_preview/helper.html.erb +0 -2
- data/previews/docs/alpha_image_preview/lazy_loading.html.erb +0 -2
- data/previews/docs/alpha_image_preview.rb +0 -13
- data/previews/docs/alpha_layout_preview/changing_when_to_render_layout_as_columns.html.erb +0 -12
- data/previews/docs/alpha_layout_preview/default.html.erb +0 -5
- data/previews/docs/alpha_layout_preview/main_widths.html.erb +0 -16
- data/previews/docs/alpha_layout_preview/sidebar_placement.html.erb +0 -8
- data/previews/docs/alpha_layout_preview/sidebar_placement_as_row.html.erb +0 -12
- data/previews/docs/alpha_layout_preview/sidebar_widths.html.erb +0 -12
- data/previews/docs/alpha_layout_preview.rb +0 -17
- data/previews/docs/alpha_menu_preview/default.html.erb +0 -17
- data/previews/docs/alpha_menu_preview.rb +0 -7
- data/previews/docs/alpha_nav_list_preview/expandable_sub_items.html.erb +0 -24
- data/previews/docs/alpha_nav_list_preview/items_and_headings.html.erb +0 -12
- data/previews/docs/alpha_nav_list_preview/leading_and_trailing_visuals.html.erb +0 -17
- data/previews/docs/alpha_nav_list_preview/trailing_action.html.erb +0 -12
- data/previews/docs/alpha_nav_list_preview.rb +0 -13
- data/previews/docs/alpha_octicon_symbols_preview/symbol_dictionary.html.erb +0 -4
- data/previews/docs/alpha_octicon_symbols_preview.rb +0 -7
- data/previews/docs/alpha_segmented_control_preview/basic_usage.html.erb +0 -6
- data/previews/docs/alpha_segmented_control_preview/fill_width_of_parent.html.erb +0 -5
- data/previews/docs/alpha_segmented_control_preview/small.html.erb +0 -6
- data/previews/docs/alpha_segmented_control_preview/with_icons.html.erb +0 -5
- data/previews/docs/alpha_segmented_control_preview/with_icons_only.html.erb +0 -5
- data/previews/docs/alpha_segmented_control_preview.rb +0 -15
- data/previews/docs/alpha_tab_container_preview/default.html.erb +0 -16
- data/previews/docs/alpha_tab_container_preview.rb +0 -7
- data/previews/docs/alpha_tab_nav_preview/adding_extra_content_after_the_tabs.html.erb +0 -10
- data/previews/docs/alpha_tab_nav_preview/customizing_the_body.html.erb +0 -5
- data/previews/docs/alpha_tab_nav_preview/default_with_div.html.erb +0 -5
- data/previews/docs/alpha_tab_nav_preview/default_with_nav.html.erb +0 -5
- data/previews/docs/alpha_tab_nav_preview/with_extra_content.html.erb +0 -8
- data/previews/docs/alpha_tab_nav_preview/with_icons_and_counters.html.erb +0 -15
- data/previews/docs/alpha_tab_nav_preview.rb +0 -17
- data/previews/docs/alpha_tab_panels_preview/default.html.erb +0 -14
- data/previews/docs/alpha_tab_panels_preview.rb +0 -7
- data/previews/docs/alpha_text_field_preview/default.html.erb +0 -1
- data/previews/docs/alpha_text_field_preview/disabled.html.erb +0 -7
- data/previews/docs/alpha_text_field_preview/full_width.html.erb +0 -7
- data/previews/docs/alpha_text_field_preview/invalid.html.erb +0 -7
- data/previews/docs/alpha_text_field_preview/with_a_caption.html.erb +0 -7
- data/previews/docs/alpha_text_field_preview/with_a_clear_button.html.erb +0 -7
- data/previews/docs/alpha_text_field_preview/with_a_leading_visual.html.erb +0 -9
- data/previews/docs/alpha_text_field_preview/with_a_validation_message.html.erb +0 -7
- data/previews/docs/alpha_text_field_preview.rb +0 -21
- data/previews/docs/alpha_toggle_switch_preview/checked.html.erb +0 -1
- data/previews/docs/alpha_toggle_switch_preview/checked_and_disabled.html.erb +0 -1
- data/previews/docs/alpha_toggle_switch_preview/default.html.erb +0 -1
- data/previews/docs/alpha_toggle_switch_preview/disabled.html.erb +0 -1
- data/previews/docs/alpha_toggle_switch_preview/small.html.erb +0 -1
- data/previews/docs/alpha_toggle_switch_preview/with_status_label_positioned_at_the_end.html.erb +0 -1
- data/previews/docs/alpha_toggle_switch_preview.rb +0 -17
- data/previews/docs/alpha_tooltip_preview/as_a_label_for_an_iconbutton.html.erb +0 -1
- data/previews/docs/alpha_tooltip_preview/as_a_supplementary_description_for_a_button.html.erb +0 -4
- data/previews/docs/alpha_tooltip_preview/as_a_supplementary_description_for_an_iconbutton.html.erb +0 -1
- data/previews/docs/alpha_tooltip_preview/directly_using_tooltip.html.erb +0 -4
- data/previews/docs/alpha_tooltip_preview/with_direction.html.erb +0 -32
- data/previews/docs/alpha_tooltip_preview.rb +0 -15
- data/previews/docs/alpha_underline_nav_preview/align_right.html.erb +0 -11
- data/previews/docs/alpha_underline_nav_preview/customizing_the_body.html.erb +0 -5
- data/previews/docs/alpha_underline_nav_preview/default_with_nav.html.erb +0 -7
- data/previews/docs/alpha_underline_nav_preview/with_div.html.erb +0 -7
- data/previews/docs/alpha_underline_nav_preview/with_icons_and_counters.html.erb +0 -18
- data/previews/docs/alpha_underline_nav_preview.rb +0 -15
- data/previews/docs/alpha_underline_panels_preview/default.html.erb +0 -17
- data/previews/docs/alpha_underline_panels_preview.rb +0 -7
- data/previews/docs/beta_auto_complete_item_preview/default.html.erb +0 -6
- data/previews/docs/beta_auto_complete_item_preview.rb +0 -7
- data/previews/docs/beta_auto_complete_preview/full_width_field.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview/inset_variant.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview/leading_visual.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview/monospace_variant.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview/trailing_action.html.erb +0 -1
- data/previews/docs/beta_auto_complete_preview/visually_hidden_label.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview/with_custom_classes_for_the_input.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview/with_custom_classes_for_the_results.html.erb +0 -3
- data/previews/docs/beta_auto_complete_preview.rb +0 -21
- data/previews/docs/beta_avatar_preview/default.html.erb +0 -1
- data/previews/docs/beta_avatar_preview/link.html.erb +0 -1
- data/previews/docs/beta_avatar_preview/square.html.erb +0 -1
- data/previews/docs/beta_avatar_preview/with_size.html.erb +0 -7
- data/previews/docs/beta_avatar_preview.rb +0 -13
- data/previews/docs/beta_avatar_stack_preview/align_right.html.erb +0 -5
- data/previews/docs/beta_avatar_stack_preview/default.html.erb +0 -5
- data/previews/docs/beta_avatar_stack_preview/with_tooltip.html.erb +0 -5
- data/previews/docs/beta_avatar_stack_preview.rb +0 -11
- data/previews/docs/beta_base_button_preview/block.html.erb +0 -2
- data/previews/docs/beta_base_button_preview.rb +0 -7
- data/previews/docs/beta_blankslate_preview/basic.html.erb +0 -4
- data/previews/docs/beta_blankslate_preview/custom_content.html.erb +0 -6
- data/previews/docs/beta_blankslate_preview/icon.html.erb +0 -5
- data/previews/docs/beta_blankslate_preview/loading.html.erb +0 -5
- data/previews/docs/beta_blankslate_preview/primary_action.html.erb +0 -6
- data/previews/docs/beta_blankslate_preview/primary_and_secondary_actions.html.erb +0 -7
- data/previews/docs/beta_blankslate_preview/secondary_action.html.erb +0 -6
- data/previews/docs/beta_blankslate_preview/using_an_image.html.erb +0 -5
- data/previews/docs/beta_blankslate_preview/variations.html.erb +0 -8
- data/previews/docs/beta_blankslate_preview/with_border.html.erb +0 -5
- data/previews/docs/beta_blankslate_preview.rb +0 -25
- data/previews/docs/beta_border_box_header_preview/default.html.erb +0 -4
- data/previews/docs/beta_border_box_header_preview/with_title.html.erb +0 -3
- data/previews/docs/beta_border_box_header_preview.rb +0 -9
- data/previews/docs/beta_border_box_preview/header_with_title_body_rows_and_footer.html.erb +0 -21
- data/previews/docs/beta_border_box_preview/padding_density.html.erb +0 -14
- data/previews/docs/beta_border_box_preview/row_colors.html.erb +0 -14
- data/previews/docs/beta_border_box_preview.rb +0 -11
- data/previews/docs/beta_breadcrumbs_preview/basic.html.erb +0 -5
- data/previews/docs/beta_breadcrumbs_preview.rb +0 -7
- data/previews/docs/beta_button_group_preview/default.html.erb +0 -8
- data/previews/docs/beta_button_group_preview/sizes.html.erb +0 -7
- data/previews/docs/beta_button_group_preview.rb +0 -9
- data/previews/docs/beta_button_preview/full_width.html.erb +0 -2
- data/previews/docs/beta_button_preview/schemes.html.erb +0 -4
- data/previews/docs/beta_button_preview/sizes.html.erb +0 -2
- data/previews/docs/beta_button_preview/with_leading_and_trailing_visuals.html.erb +0 -5
- data/previews/docs/beta_button_preview/with_leading_visual.html.erb +0 -4
- data/previews/docs/beta_button_preview/with_tooltip.html.erb +0 -4
- data/previews/docs/beta_button_preview/with_trailing_visual.html.erb +0 -4
- data/previews/docs/beta_button_preview.rb +0 -19
- data/previews/docs/beta_clipboard_copy_preview/copying_from_an_element.html.erb +0 -2
- data/previews/docs/beta_clipboard_copy_preview/default.html.erb +0 -1
- data/previews/docs/beta_clipboard_copy_preview/with_text_instead_of_icons.html.erb +0 -3
- data/previews/docs/beta_clipboard_copy_preview.rb +0 -11
- data/previews/docs/beta_close_button_preview/default.html.erb +0 -1
- data/previews/docs/beta_close_button_preview.rb +0 -7
- data/previews/docs/beta_counter_preview/default.html.erb +0 -1
- data/previews/docs/beta_counter_preview/schemes.html.erb +0 -2
- data/previews/docs/beta_counter_preview.rb +0 -9
- data/previews/docs/beta_details_preview/default.html.erb +0 -9
- data/previews/docs/beta_details_preview.rb +0 -7
- data/previews/docs/beta_flash_preview/dismissible.html.erb +0 -1
- data/previews/docs/beta_flash_preview/full_width.html.erb +0 -1
- data/previews/docs/beta_flash_preview/icon.html.erb +0 -1
- data/previews/docs/beta_flash_preview/schemes.html.erb +0 -4
- data/previews/docs/beta_flash_preview/with_actions.html.erb +0 -6
- data/previews/docs/beta_flash_preview.rb +0 -15
- data/previews/docs/beta_heading_preview/default.html.erb +0 -6
- data/previews/docs/beta_heading_preview.rb +0 -7
- data/previews/docs/beta_icon_button_preview/custom_tooltip_direction.html.erb +0 -2
- data/previews/docs/beta_icon_button_preview/default.html.erb +0 -2
- data/previews/docs/beta_icon_button_preview/schemes.html.erb +0 -3
- data/previews/docs/beta_icon_button_preview/with_an_aria_description.html.erb +0 -1
- data/previews/docs/beta_icon_button_preview.rb +0 -13
- data/previews/docs/beta_label_preview/inline.html.erb +0 -2
- data/previews/docs/beta_label_preview/schemes.html.erb +0 -10
- data/previews/docs/beta_label_preview/sizes.html.erb +0 -2
- data/previews/docs/beta_label_preview.rb +0 -11
- data/previews/docs/beta_link_preview/default.html.erb +0 -1
- data/previews/docs/beta_link_preview/muted.html.erb +0 -1
- data/previews/docs/beta_link_preview/schemes.html.erb +0 -2
- data/previews/docs/beta_link_preview/with_tooltip.html.erb +0 -4
- data/previews/docs/beta_link_preview/without_underline.html.erb +0 -1
- data/previews/docs/beta_link_preview.rb +0 -15
- data/previews/docs/beta_markdown_preview/default.html.erb +0 -260
- data/previews/docs/beta_markdown_preview.rb +0 -7
- data/previews/docs/beta_octicon_preview/default.html.erb +0 -2
- data/previews/docs/beta_octicon_preview/helper.html.erb +0 -1
- data/previews/docs/beta_octicon_preview/medium.html.erb +0 -1
- data/previews/docs/beta_octicon_preview.rb +0 -11
- data/previews/docs/beta_popover_preview/caret_position.html.erb +0 -8
- data/previews/docs/beta_popover_preview/default.html.erb +0 -8
- data/previews/docs/beta_popover_preview/large.html.erb +0 -8
- data/previews/docs/beta_popover_preview/with_multiple_elements_in_the_body.html.erb +0 -11
- data/previews/docs/beta_popover_preview.rb +0 -13
- data/previews/docs/beta_progress_bar_preview/default.html.erb +0 -3
- data/previews/docs/beta_progress_bar_preview/large.html.erb +0 -3
- data/previews/docs/beta_progress_bar_preview/multiple_items.html.erb +0 -5
- data/previews/docs/beta_progress_bar_preview/small.html.erb +0 -3
- data/previews/docs/beta_progress_bar_preview.rb +0 -13
- data/previews/docs/beta_relative_time_preview/default.html.erb +0 -1
- data/previews/docs/beta_relative_time_preview/elapsed_time.html.erb +0 -1
- data/previews/docs/beta_relative_time_preview/past_time.html.erb +0 -1
- data/previews/docs/beta_relative_time_preview.rb +0 -11
- data/previews/docs/beta_spinner_preview/default.html.erb +0 -1
- data/previews/docs/beta_spinner_preview/large.html.erb +0 -1
- data/previews/docs/beta_spinner_preview/small.html.erb +0 -1
- data/previews/docs/beta_spinner_preview.rb +0 -11
- data/previews/docs/beta_state_preview/default.html.erb +0 -1
- data/previews/docs/beta_state_preview/schemes.html.erb +0 -4
- data/previews/docs/beta_state_preview/sizes.html.erb +0 -2
- data/previews/docs/beta_state_preview.rb +0 -11
- data/previews/docs/beta_subhead_preview/default.html.erb +0 -8
- data/previews/docs/beta_subhead_preview/with_actions.html.erb +0 -15
- data/previews/docs/beta_subhead_preview/with_dangerous_heading.html.erb +0 -8
- data/previews/docs/beta_subhead_preview/with_long_description.html.erb +0 -6
- data/previews/docs/beta_subhead_preview/without_border.html.erb +0 -8
- data/previews/docs/beta_subhead_preview.rb +0 -15
- data/previews/docs/beta_text_preview/default.html.erb +0 -2
- data/previews/docs/beta_text_preview.rb +0 -7
- data/previews/docs/beta_timeline_item_preview/default.html.erb +0 -7
- data/previews/docs/beta_timeline_item_preview.rb +0 -7
- data/previews/docs/beta_truncate_preview/advanced_multiple_items.html.erb +0 -9
- data/previews/docs/beta_truncate_preview/default.html.erb +0 -1
- data/previews/docs/beta_truncate_preview/expand_on_hover_or_focus.html.erb +0 -6
- data/previews/docs/beta_truncate_preview/max_widths.html.erb +0 -5
- data/previews/docs/beta_truncate_preview/max_widths_on_new_lines.html.erb +0 -11
- data/previews/docs/beta_truncate_preview/multiple_items.html.erb +0 -6
- data/previews/docs/beta_truncate_preview.rb +0 -17
- data/previews/docs/blankslate_component_preview/action_button.html.erb +0 -8
- data/previews/docs/blankslate_component_preview/basic.html.erb +0 -4
- data/previews/docs/blankslate_component_preview/custom_content.html.erb +0 -5
- data/previews/docs/blankslate_component_preview/icon.html.erb +0 -5
- data/previews/docs/blankslate_component_preview/link.html.erb +0 -7
- data/previews/docs/blankslate_component_preview/loading.html.erb +0 -6
- data/previews/docs/blankslate_component_preview/variations.html.erb +0 -8
- data/previews/docs/blankslate_component_preview.rb +0 -19
- data/previews/docs/box_preview/color_and_padding.html.erb +0 -1
- data/previews/docs/box_preview/default.html.erb +0 -1
- data/previews/docs/box_preview.rb +0 -9
- data/previews/docs/button_component_preview/block.html.erb +0 -2
- data/previews/docs/button_component_preview/schemes.html.erb +0 -6
- data/previews/docs/button_component_preview/sizes.html.erb +0 -2
- data/previews/docs/button_component_preview/with_dropdown_caret.html.erb +0 -3
- data/previews/docs/button_component_preview/with_leading_and_trailing_visuals.html.erb +0 -5
- data/previews/docs/button_component_preview/with_leading_visual.html.erb +0 -4
- data/previews/docs/button_component_preview/with_tooltip.html.erb +0 -4
- data/previews/docs/button_component_preview/with_trailing_visual.html.erb +0 -4
- data/previews/docs/button_component_preview.rb +0 -21
- data/previews/docs/dropdown_preview/customizing_menu_items.html.erb +0 -11
- data/previews/docs/dropdown_preview/customizing_the_button.html.erb +0 -12
- data/previews/docs/dropdown_preview/default.html.erb +0 -11
- data/previews/docs/dropdown_preview/menu_as_list.html.erb +0 -13
- data/previews/docs/dropdown_preview/with_caret.html.erb +0 -12
- data/previews/docs/dropdown_preview/with_direction.html.erb +0 -12
- data/previews/docs/dropdown_preview/with_dividers.html.erb +0 -16
- data/previews/docs/dropdown_preview.rb +0 -19
- data/previews/docs/hellip_button_preview/default.html.erb +0 -1
- data/previews/docs/hellip_button_preview/inline.html.erb +0 -1
- data/previews/docs/hellip_button_preview/styling_the_button.html.erb +0 -1
- data/previews/docs/hellip_button_preview.rb +0 -11
- data/previews/docs/icon_button_preview/custom_tooltip_direction.html.erb +0 -2
- data/previews/docs/icon_button_preview/default.html.erb +0 -2
- data/previews/docs/icon_button_preview/in_a_borderbox.html.erb +0 -7
- data/previews/docs/icon_button_preview/schemes.html.erb +0 -3
- data/previews/docs/icon_button_preview/with_an_aria_description.html.erb +0 -1
- data/previews/docs/icon_button_preview.rb +0 -15
- data/previews/docs/label_component_preview/inline.html.erb +0 -2
- data/previews/docs/label_component_preview/schemes.html.erb +0 -10
- data/previews/docs/label_component_preview/sizes.html.erb +0 -2
- data/previews/docs/label_component_preview.rb +0 -11
- data/previews/docs/layout_component_preview/default.html.erb +0 -4
- data/previews/docs/layout_component_preview/left_sidebar.html.erb +0 -4
- data/previews/docs/layout_component_preview.rb +0 -9
- data/previews/docs/link_component_preview/default.html.erb +0 -1
- data/previews/docs/link_component_preview/muted.html.erb +0 -1
- data/previews/docs/link_component_preview/schemes.html.erb +0 -2
- data/previews/docs/link_component_preview/with_tooltip.html.erb +0 -4
- data/previews/docs/link_component_preview/without_underline.html.erb +0 -1
- data/previews/docs/link_component_preview.rb +0 -15
- data/previews/docs/local_time_preview/all_the_options.html.erb +0 -1
- data/previews/docs/local_time_preview/default.html.erb +0 -1
- data/previews/docs/local_time_preview/with_initial_content.html.erb +0 -4
- data/previews/docs/local_time_preview.rb +0 -11
- data/previews/docs/markdown_preview/default.html.erb +0 -260
- data/previews/docs/markdown_preview.rb +0 -7
- data/previews/docs/menu_component_preview/default.html.erb +0 -17
- data/previews/docs/menu_component_preview.rb +0 -7
- data/previews/docs/navigation_tab_component_preview/default.html.erb +0 -6
- data/previews/docs/navigation_tab_component_preview/inside_a_list.html.erb +0 -3
- data/previews/docs/navigation_tab_component_preview/with_custom_html.html.erb +0 -5
- data/previews/docs/navigation_tab_component_preview/with_icons_and_counters.html.erb +0 -13
- data/previews/docs/navigation_tab_component_preview.rb +0 -13
- data/previews/docs/octicon_component_preview/default.html.erb +0 -2
- data/previews/docs/octicon_component_preview/helper.html.erb +0 -1
- data/previews/docs/octicon_component_preview/medium.html.erb +0 -1
- data/previews/docs/octicon_component_preview.rb +0 -11
- data/previews/docs/octicon_symbols_component_preview/symbol_dictionary.html.erb +0 -4
- data/previews/docs/octicon_symbols_component_preview.rb +0 -7
- data/previews/docs/popover_component_preview/caret_position.html.erb +0 -8
- data/previews/docs/popover_component_preview/default.html.erb +0 -8
- data/previews/docs/popover_component_preview/large.html.erb +0 -8
- data/previews/docs/popover_component_preview/with_multiple_elements_in_the_body.html.erb +0 -11
- data/previews/docs/popover_component_preview.rb +0 -13
- data/previews/docs/spinner_component_preview/default.html.erb +0 -1
- data/previews/docs/spinner_component_preview/large.html.erb +0 -1
- data/previews/docs/spinner_component_preview/small.html.erb +0 -1
- data/previews/docs/spinner_component_preview.rb +0 -11
- data/previews/docs/state_component_preview/default.html.erb +0 -1
- data/previews/docs/state_component_preview/schemes.html.erb +0 -4
- data/previews/docs/state_component_preview/sizes.html.erb +0 -2
- data/previews/docs/state_component_preview.rb +0 -11
- data/previews/docs/subhead_component_preview/default.html.erb +0 -8
- data/previews/docs/subhead_component_preview/with_actions.html.erb +0 -15
- data/previews/docs/subhead_component_preview/with_dangerous_heading.html.erb +0 -8
- data/previews/docs/subhead_component_preview/with_long_description.html.erb +0 -6
- data/previews/docs/subhead_component_preview/without_border.html.erb +0 -8
- data/previews/docs/subhead_component_preview.rb +0 -15
- data/previews/docs/tab_container_component_preview/default.html.erb +0 -16
- data/previews/docs/tab_container_component_preview.rb +0 -7
- data/previews/docs/time_ago_component_preview/default.html.erb +0 -1
- data/previews/docs/time_ago_component_preview.rb +0 -7
- data/previews/docs/timeline_item_component_preview/default.html.erb +0 -7
- data/previews/docs/timeline_item_component_preview.rb +0 -7
- data/previews/docs/tooltip_preview/default.html.erb +0 -3
- data/previews/docs/tooltip_preview/with_a_direction.html.erb +0 -3
- data/previews/docs/tooltip_preview/with_an_alignment.html.erb +0 -3
- data/previews/docs/tooltip_preview/without_a_delay.html.erb +0 -3
- data/previews/docs/tooltip_preview/wrapping_another_component.html.erb +0 -5
- data/previews/docs/tooltip_preview.rb +0 -15
- data/previews/docs/truncate_preview/custom_size.html.erb +0 -1
- data/previews/docs/truncate_preview/default.html.erb +0 -3
- data/previews/docs/truncate_preview/expandable.html.erb +0 -1
- data/previews/docs/truncate_preview/inline.html.erb +0 -1
- data/previews/docs/truncate_preview/with_html_content.html.erb +0 -3
- 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 +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 +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,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,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,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,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,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,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,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 +0,0 @@
|
|
1
|
-
<%= render(Yattho::Alpha::TextField.new(name: :first_name, label: "First name")) %>
|