playbook_ui 7.3.0.pre.alpha2 → 7.3.0.pre.alpha7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/app/controllers/playbook/application_controller.rb +0 -2
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/data/menu.yml +4 -3
- data/app/pb_kits/playbook/index.js +5 -1
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +5 -1
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -2
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +3 -2
- data/app/pb_kits/playbook/pb_body/body.rb +1 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +5 -1
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +7 -3
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +82 -90
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +57 -0
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +27 -0
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +4 -2
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +17 -7
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +32 -9
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +18 -7
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +37 -9
- data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +3 -7
- data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_caption/_caption.html.erb +7 -5
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +11 -0
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +28 -0
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_caption/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +5 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +3 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +10 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -1
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -1
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +5 -1
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +3 -5
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +37 -31
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +3 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +34 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +3 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +8 -14
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +122 -39
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +33 -2
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +44 -9
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +14 -1
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +45 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +5 -1
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -1
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
- data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +7 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +3 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +31 -17
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +10 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +21 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +38 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +7 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +18 -0
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +10 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +7 -2
- data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +1 -0
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +3 -2
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +2 -2
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +5 -1
- data/app/pb_kits/playbook/pb_image/_image.jsx +5 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +5 -1
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +3 -2
- data/app/pb_kits/playbook/pb_list/_list.jsx +3 -2
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +3 -2
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +5 -1
- data/app/pb_kits/playbook/pb_message/_message.jsx +5 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -2
- data/app/pb_kits/playbook/pb_nav/_item.html.erb +3 -0
- data/app/pb_kits/playbook/pb_nav/_item.jsx +14 -1
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +5 -2
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +22 -3
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.html.erb +6 -0
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +29 -0
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb +7 -0
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +42 -0
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md +1 -0
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_nav/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_nav/item.rb +1 -0
- data/app/pb_kits/playbook/pb_nav/nav.rb +6 -1
- data/app/pb_kits/playbook/pb_person/_person.jsx +5 -1
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +12 -7
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
- data/app/pb_kits/playbook/pb_pill/_pill.scss +1 -0
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -1
- data/app/pb_kits/playbook/pb_popover/_popover.scss +6 -4
- data/app/pb_kits/playbook/pb_popover/index.js +3 -1
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +4 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +168 -33
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +3 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +10 -8
- data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +14 -16
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +6 -3
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +17 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +17 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +10 -3
- data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +11 -1
- data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +9 -0
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_radio/radio.rb +2 -4
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -3
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +26 -47
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +32 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +6 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +2 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +2 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +9 -3
- data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +1 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.html.erb +4 -4
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_options.html.erb +16 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +16 -9
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.html.erb +3 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_options.html.erb +16 -0
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +4 -3
- data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +3 -0
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.html.erb +3 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_options.html.erb +15 -0
- data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +10 -0
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +34 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +68 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +2 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +61 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +89 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +34 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +68 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +2 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +43 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +80 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +34 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +63 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +12 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +6 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
- data/app/pb_kits/playbook/pb_time/_time.html.erb +17 -20
- data/app/pb_kits/playbook/pb_time/_time.jsx +42 -29
- data/app/pb_kits/playbook/pb_time/_time.scss +4 -24
- data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +4 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +13 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +4 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +2 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +7 -2
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +5 -1
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +5 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +5 -5
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +41 -43
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +10 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_toggle/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +5 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +24 -20
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +19 -1
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +8 -1
- data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +21 -13
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +4 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +25 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +0 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +8 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +30 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +11 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +25 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +0 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +24 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +5 -2
- data/app/pb_kits/playbook/props.rb +1 -1
- data/app/pb_kits/playbook/props/base.rb +6 -4
- data/app/pb_kits/playbook/react_rails_kits.js +6 -0
- data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
- data/app/pb_kits/playbook/tokens/_typography.scss +4 -4
- data/app/pb_kits/playbook/tokens/index.scss +11 -0
- data/app/pb_kits/playbook/vendor.js +8 -0
- data/lib/playbook/engine.rb +1 -0
- data/lib/playbook/version.rb +1 -1
- metadata +47 -88
- data/app/controllers/playbook/guides_controller.rb +0 -11
- data/app/controllers/playbook/pages_controller.rb +0 -99
- data/app/controllers/playbook/samples_controller.rb +0 -40
- data/app/pb_kits/playbook/packs/application.js +0 -55
- data/app/pb_kits/playbook/packs/examples.js +0 -182
- data/app/pb_kits/playbook/packs/main.scss +0 -12
- data/app/pb_kits/playbook/packs/samples.js +0 -21
- data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
- data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
- data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -146
- data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
- data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
- data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
- data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
- data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
- data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -148
- data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -15
- data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -88
- data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +0 -11
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +0 -29
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +0 -11
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +0 -34
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +0 -13
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +0 -13
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +0 -11
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +0 -44
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +0 -45
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +0 -27
- data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
- data/app/views/layouts/playbook/_nav.html.erb +0 -37
- data/app/views/layouts/playbook/_sidebar.html.erb +0 -51
- data/app/views/layouts/playbook/application.html.erb +0 -26
- data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
- data/app/views/layouts/playbook/grid.html.slim +0 -10
- data/app/views/layouts/playbook/samples.html.erb +0 -19
- data/app/views/playbook/guides/create_kit.html.slim +0 -16
- data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
- data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
- data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
- data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
- data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
- data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
- data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
- data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
- data/app/views/playbook/guides/use_nitro.html.slim +0 -6
- data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
- data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
- data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
- data/app/views/playbook/pages/fullscreen.html.slim +0 -10
- data/app/views/playbook/pages/grid.html.slim +0 -2
- data/app/views/playbook/pages/home.html.slim +0 -4
- data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
- data/app/views/playbook/pages/kit_show.html.erb +0 -33
- data/app/views/playbook/pages/kits.html.erb +0 -12
- data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
- data/app/views/playbook/pages/principles.html.slim +0 -3
- data/app/views/playbook/pages/tokens.html.slim +0 -15
- data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -61
- data/app/views/playbook/pages/utilities.html.slim +0 -116
- data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
- data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
- data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
- data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
- data/app/views/playbook/samples/dashboards/index.jsx +0 -130
- data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
- data/app/views/playbook/samples/filter_table/index.jsx +0 -433
- data/app/views/playbook/samples/registration/index.html.erb +0 -316
- data/app/views/playbook/samples/registration/index.jsx +0 -476
- data/app/views/playbook/samples/sample_show.html.erb +0 -36
- data/lib/generators/kit/USAGE +0 -5
- data/lib/generators/kit/kit_generator.rb +0 -95
- data/lib/generators/kit/templates/kit_example_rails.erb.tt +0 -1
- data/lib/generators/kit/templates/kit_example_react.erb.tt +0 -10
- data/lib/generators/kit/templates/kit_example_yml.erb.tt +0 -9
- data/lib/generators/kit/templates/kit_html.erb.tt +0 -7
- data/lib/generators/kit/templates/kit_js.erb.tt +0 -1
- data/lib/generators/kit/templates/kit_jsx.erb.tt +0 -68
- data/lib/generators/kit/templates/kit_ruby.erb.tt +0 -11
- data/lib/generators/kit/templates/kit_ruby_spec.erb.tt +0 -11
- data/lib/generators/kit/templates/kit_scss.erb +0 -3
- data/lib/tasks/pb_release.rake +0 -77
- data/lib/tasks/playbook_tasks.rake +0 -26
@@ -2,10 +2,12 @@
|
|
2
2
|
id: object.id,
|
3
3
|
data: object.data,
|
4
4
|
class: object.classname) do %>
|
5
|
+
<div class="box">
|
5
6
|
<div class="circle">
|
6
7
|
<%= pb_rails("icon", props: { icon: "check", size: "xs" }) %>
|
7
8
|
</div>
|
8
|
-
<div>
|
9
|
+
<div class="content">
|
9
10
|
<%= capture(&object.children) %>
|
10
11
|
<div>
|
12
|
+
</div>
|
11
13
|
<% end %>
|
@@ -7,7 +7,7 @@ import { Icon } from '..'
|
|
7
7
|
|
8
8
|
type ProgressStepItemProps = {
|
9
9
|
className?: string,
|
10
|
-
status?: 'complete' | 'active' | 'inactive',
|
10
|
+
status?: 'complete' | 'active' | 'inactive' | 'hidden',
|
11
11
|
children?: React.Node,
|
12
12
|
}
|
13
13
|
|
@@ -20,13 +20,15 @@ const ProgressStepItem = ({
|
|
20
20
|
|
21
21
|
return (
|
22
22
|
<li className={classnames(progressStepItem, className)}>
|
23
|
-
<div className="
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
<div className="box">
|
24
|
+
<div className="circle">
|
25
|
+
<Icon
|
26
|
+
icon="check"
|
27
|
+
/>
|
28
|
+
</div>
|
29
|
+
<div className="content">
|
30
|
+
{children}
|
31
|
+
</div>
|
30
32
|
</div>
|
31
33
|
</li>
|
32
34
|
)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
Progress step kit is used to show the progress of a process. There are three types of steps in this kit: completed, active, and inactive. Completed steps are indicated by a solid, blue circle (with or without an icon). The current, or active, step is indicated by an outlined blue circle. The inactive, or future, step is indicated by a solid gray circle.
|
2
2
|
|
3
3
|
**Tracker**
|
4
|
-
|
4
|
+
You must set the icon prop to true for this kit.
|
5
5
|
This variant takes children just like the default progress step. It is best to use the caption kit for children in this variant.
|
@@ -7,41 +7,39 @@
|
|
7
7
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
10
|
-
<br /><br />
|
11
|
-
<%= pb_rails("progress_step", props: {classname:"connected", orientation: "horizontal"}) do %>
|
12
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
13
|
-
<% end %>
|
14
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
15
|
-
<% end %>
|
16
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
17
|
-
<% end %>
|
18
|
-
<% end %>
|
19
10
|
|
20
11
|
<br /><br />
|
21
12
|
|
13
|
+
|
22
14
|
<%= pb_rails("progress_step", props: {orientation: "horizontal"}) do %>
|
23
15
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
24
16
|
step 1
|
25
17
|
<% end %>
|
26
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
18
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
27
19
|
step 2
|
28
20
|
<% end %>
|
29
|
-
|
21
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
30
22
|
step 3
|
31
23
|
<% end %>
|
24
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
25
|
+
step 4
|
26
|
+
<% end %>
|
27
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
28
|
+
step 5
|
29
|
+
<% end %>
|
32
30
|
<% end %>
|
33
31
|
|
34
|
-
|
35
32
|
<br /><br />
|
36
33
|
|
37
|
-
|
34
|
+
|
35
|
+
<%= pb_rails("progress_step", props: {orientation: "horizontal", icon:true }) do %>
|
38
36
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
39
37
|
step 1
|
40
38
|
<% end %>
|
41
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
39
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
42
40
|
step 2
|
43
41
|
<% end %>
|
44
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
42
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
45
43
|
step 3
|
46
44
|
<% end %>
|
47
|
-
<% end %>
|
45
|
+
<% end %>
|
@@ -2,9 +2,12 @@ import React from 'react'
|
|
2
2
|
import ProgressStep from '../_progress_step.jsx'
|
3
3
|
import ProgressStepItem from '../_progress_step_item.jsx'
|
4
4
|
|
5
|
-
const ProgressStepDefault = () => (
|
5
|
+
const ProgressStepDefault = (props) => (
|
6
6
|
<div>
|
7
|
-
<ProgressStep
|
7
|
+
<ProgressStep
|
8
|
+
icon
|
9
|
+
{...props}
|
10
|
+
>
|
8
11
|
<ProgressStepItem status="complete" />
|
9
12
|
<ProgressStepItem status="active" />
|
10
13
|
<ProgressStepItem status="inactive" />
|
@@ -13,7 +16,7 @@ const ProgressStepDefault = () => (
|
|
13
16
|
<br />
|
14
17
|
<br />
|
15
18
|
|
16
|
-
<ProgressStep>
|
19
|
+
<ProgressStep {...props}>
|
17
20
|
<ProgressStepItem status="complete">{'Step 1'}</ProgressStepItem>
|
18
21
|
<ProgressStepItem status="active">{'Step 2'}</ProgressStepItem>
|
19
22
|
<ProgressStepItem status="inactive">{'Step 3'}</ProgressStepItem>
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
<br><br>
|
2
|
+
<%= pb_rails("progress_step",props:{ variant:"tracker", icon:true}) do %>
|
2
3
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
3
4
|
<%= pb_rails("caption", props:{text: "Ordered"})%>
|
4
5
|
<% end %>
|
@@ -9,3 +10,18 @@
|
|
9
10
|
<%= pb_rails("caption", props:{text: "Delivered"})%>
|
10
11
|
<% end %>
|
11
12
|
<% end %>
|
13
|
+
|
14
|
+
<br>
|
15
|
+
|
16
|
+
<%= pb_rails("progress_step",props:{ variant:"tracker", icon:true}) do %>
|
17
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
18
|
+
<% end %>
|
19
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
20
|
+
<% end %>
|
21
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "hidden"}) do %>
|
22
|
+
<% end %>
|
23
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
24
|
+
<% end %>
|
25
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
@@ -2,10 +2,13 @@ import React from 'react'
|
|
2
2
|
import ProgressStep from '../_progress_step.jsx'
|
3
3
|
import ProgressStepItem from '../_progress_step_item.jsx'
|
4
4
|
import { Caption } from '../../'
|
5
|
-
const ProgressStepTracker = () => (
|
5
|
+
const ProgressStepTracker = (props) => (
|
6
6
|
<div>
|
7
|
+
<br />
|
7
8
|
<ProgressStep
|
9
|
+
icon
|
8
10
|
variant="tracker"
|
11
|
+
{...props}
|
9
12
|
>
|
10
13
|
<ProgressStepItem status="complete">
|
11
14
|
<Caption>{'Ordered'}</Caption>
|
@@ -17,6 +20,19 @@ const ProgressStepTracker = () => (
|
|
17
20
|
<Caption>{'Delivered'}</Caption>
|
18
21
|
</ProgressStepItem>
|
19
22
|
</ProgressStep>
|
23
|
+
|
24
|
+
<br />
|
25
|
+
<ProgressStep
|
26
|
+
icon
|
27
|
+
variant="tracker"
|
28
|
+
{...props}
|
29
|
+
>
|
30
|
+
<ProgressStepItem status="complete" />
|
31
|
+
<ProgressStepItem status="complete" />
|
32
|
+
<ProgressStepItem status="hidden" />
|
33
|
+
<ProgressStepItem status="active" />
|
34
|
+
<ProgressStepItem status="inactive" />
|
35
|
+
</ProgressStep>
|
20
36
|
</div>
|
21
37
|
)
|
22
38
|
|
@@ -2,11 +2,12 @@ import React from 'react'
|
|
2
2
|
import ProgressStep from '../_progress_step.jsx'
|
3
3
|
import ProgressStepItem from '../_progress_step_item.jsx'
|
4
4
|
|
5
|
-
const ProgressStepVertical = () => (
|
5
|
+
const ProgressStepVertical = (props) => (
|
6
6
|
<div>
|
7
7
|
<ProgressStep
|
8
8
|
icon
|
9
9
|
orientation="vertical"
|
10
|
+
{...props}
|
10
11
|
>
|
11
12
|
<ProgressStepItem status="complete" />
|
12
13
|
<ProgressStepItem status="active" />
|
@@ -15,7 +16,10 @@ const ProgressStepVertical = () => (
|
|
15
16
|
|
16
17
|
<br />
|
17
18
|
|
18
|
-
<ProgressStep
|
19
|
+
<ProgressStep
|
20
|
+
orientation="vertical"
|
21
|
+
{...props}
|
22
|
+
>
|
19
23
|
<ProgressStepItem status="complete" />
|
20
24
|
<ProgressStepItem status="active" />
|
21
25
|
<ProgressStepItem status="inactive" />
|
@@ -23,7 +27,10 @@ const ProgressStepVertical = () => (
|
|
23
27
|
|
24
28
|
<br />
|
25
29
|
|
26
|
-
<ProgressStep
|
30
|
+
<ProgressStep
|
31
|
+
orientation="vertical"
|
32
|
+
{...props}
|
33
|
+
>
|
27
34
|
<ProgressStepItem status="complete">
|
28
35
|
{'Child'}
|
29
36
|
</ProgressStepItem>
|
@@ -15,8 +15,11 @@ module Playbook
|
|
15
15
|
prop :variant, type: Playbook::Props::Enum,
|
16
16
|
values: %w[default tracker],
|
17
17
|
default: "default"
|
18
|
+
prop :color, type: Playbook::Props::Enum,
|
19
|
+
values: %w[primary info],
|
20
|
+
default: "primary"
|
18
21
|
def classname
|
19
|
-
generate_classname("pb_progress_step_kit", orientation, icon_class, variant_class)
|
22
|
+
generate_classname("pb_progress_step_kit", orientation, icon_class, variant_class, color_class)
|
20
23
|
end
|
21
24
|
|
22
25
|
private
|
@@ -31,6 +34,13 @@ module Playbook
|
|
31
34
|
"tracker"
|
32
35
|
end
|
33
36
|
end
|
37
|
+
|
38
|
+
def color_class
|
39
|
+
case color
|
40
|
+
when "info"
|
41
|
+
"info"
|
42
|
+
end
|
43
|
+
end
|
34
44
|
end
|
35
45
|
end
|
36
46
|
end
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<% if object.children %>
|
10
10
|
<%= capture(&object.children) %>
|
11
11
|
<% else %>
|
12
|
-
<%= radio_button_tag object.name, object.value, object.selected %>
|
12
|
+
<%= radio_button_tag object.name, object.value, object.selected, object.input_options %>
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<span class="pb_radio_button"></span>
|
@@ -15,6 +15,8 @@ module Playbook
|
|
15
15
|
default: false
|
16
16
|
prop :error, type: Playbook::Props::Boolean,
|
17
17
|
default: false
|
18
|
+
prop :input_options, type: Playbook::Props::Hash,
|
19
|
+
default: {}
|
18
20
|
prop :name, type: Playbook::Props::String,
|
19
21
|
default: "radio_name"
|
20
22
|
prop :text, type: Playbook::Props::String,
|
@@ -26,10 +28,6 @@ module Playbook
|
|
26
28
|
generate_classname("pb_radio_kit") + error_class
|
27
29
|
end
|
28
30
|
|
29
|
-
def input
|
30
|
-
check_box_tag(name, value, checked)
|
31
|
-
end
|
32
|
-
|
33
31
|
def selected
|
34
32
|
"checked" if checked == true
|
35
33
|
end
|
@@ -20,17 +20,15 @@ const SectionSeparator = (props: SectionSeparatorProps) => {
|
|
20
20
|
const {
|
21
21
|
aria = {},
|
22
22
|
className,
|
23
|
-
dark = false,
|
24
23
|
data = {},
|
25
24
|
id,
|
26
25
|
orientation = 'horizontal',
|
27
26
|
text,
|
28
27
|
variant = 'card',
|
29
28
|
} = props
|
30
|
-
const themeStyle = dark === true ? '_dark' : ''
|
31
29
|
const ariaProps = buildAriaProps(aria)
|
32
30
|
const dataProps = buildDataProps(data)
|
33
|
-
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation
|
31
|
+
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation), globalProps(props), className)
|
34
32
|
|
35
33
|
return (
|
36
34
|
|
@@ -1,10 +1,16 @@
|
|
1
1
|
@import "../tokens/colors";
|
2
2
|
@import "../tokens/spacing";
|
3
|
-
@import "../
|
3
|
+
@import "../tokens/opacity";
|
4
|
+
@import "./section_separator_mixin";
|
4
5
|
|
5
|
-
$
|
6
|
+
$section_colors_light: (
|
6
7
|
background: $bg_light,
|
7
|
-
card:
|
8
|
+
card: $card_light,
|
9
|
+
);
|
10
|
+
|
11
|
+
$section_colors_dark: (
|
12
|
+
background: $bg_dark,
|
13
|
+
card: tint($bg_dark,10),
|
8
14
|
);
|
9
15
|
|
10
16
|
[class^=pb_section_separator_kit] {
|
@@ -12,8 +18,7 @@ $section_colors: (
|
|
12
18
|
justify-content: center;
|
13
19
|
align-items: center;
|
14
20
|
position: relative;
|
15
|
-
|
16
|
-
@each $color_name, $color_value in $section_colors {
|
21
|
+
@each $color_name, $color_value in $section_colors_light {
|
17
22
|
&[class*=_#{$color_name}] {
|
18
23
|
span {
|
19
24
|
display: inline-block;
|
@@ -24,64 +29,38 @@ $section_colors: (
|
|
24
29
|
}
|
25
30
|
}
|
26
31
|
}
|
27
|
-
|
28
32
|
&::after {
|
29
|
-
|
30
|
-
height: 1px;
|
31
|
-
width: 100%;
|
32
|
-
background: $border_light;
|
33
|
-
position: absolute;
|
34
|
-
top: 50%;
|
35
|
-
left: 0;
|
36
|
-
z-index: 0;
|
33
|
+
@include section_separator_horizontal(false);
|
37
34
|
}
|
38
|
-
|
39
35
|
&[class*=_horizontal] {
|
40
36
|
justify-content: center;
|
41
37
|
}
|
42
38
|
&[class*=_vertical] {
|
43
39
|
&::after {
|
44
|
-
|
45
|
-
height: 100%;
|
46
|
-
width: 1px;
|
47
|
-
margin-left: $space_xs;
|
48
|
-
margin-right: $space_xs;
|
49
|
-
background: $border_light;
|
50
|
-
position: initial;
|
51
|
-
z-index: 0;
|
40
|
+
@include section_separator_vertical(false);
|
52
41
|
}
|
53
42
|
}
|
54
43
|
|
55
|
-
|
44
|
+
// Dark =========================
|
45
|
+
|
46
|
+
&.dark {
|
56
47
|
&::after {
|
57
|
-
|
58
|
-
height: 1px;
|
59
|
-
width: 100%;
|
60
|
-
background: $border_dark;
|
61
|
-
position: absolute;
|
62
|
-
top: 50%;
|
63
|
-
left: 0;
|
64
|
-
z-index: 0;
|
48
|
+
@include section_separator_horizontal(true);
|
65
49
|
}
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
50
|
+
@each $color_name, $color_value in $section_colors_dark {
|
51
|
+
&[class*=_#{$color_name}] {
|
52
|
+
span {
|
53
|
+
display: inline-block;
|
54
|
+
padding: 0 $space_xs;
|
55
|
+
background: #{$color_value};
|
56
|
+
position: relative;
|
57
|
+
z-index: 1;
|
58
|
+
}
|
73
59
|
}
|
74
60
|
}
|
75
61
|
&[class*=_vertical] {
|
76
62
|
&::after {
|
77
|
-
|
78
|
-
height: 100%;
|
79
|
-
width: 1px;
|
80
|
-
margin-left: $space_xs;
|
81
|
-
margin-right: $space_xs;
|
82
|
-
background: $border_dark;
|
83
|
-
position: initial;
|
84
|
-
z-index: 0;
|
63
|
+
@include section_separator_vertical(true);
|
85
64
|
}
|
86
65
|
}
|
87
66
|
}
|