playbook_ui 7.1.1.pre.alpha1 → 7.3.0.pre.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/controllers/playbook/application_controller.rb +2 -0
- data/app/controllers/playbook/guides_controller.rb +11 -0
- data/app/controllers/playbook/pages_controller.rb +99 -0
- data/app/controllers/playbook/samples_controller.rb +40 -0
- data/app/pb_kits/playbook/_playbook.scss +1 -2
- data/app/pb_kits/playbook/data/menu.yml +5 -5
- data/app/pb_kits/playbook/index.js +1 -5
- data/app/pb_kits/playbook/packs/application.js +55 -0
- data/app/pb_kits/playbook/packs/examples.js +182 -0
- data/app/pb_kits/playbook/packs/main.scss +12 -0
- data/app/pb_kits/playbook/packs/samples.js +21 -0
- data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
- data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
- data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +148 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -5
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -4
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +1 -5
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +0 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +3 -7
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +90 -82
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +2 -4
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +7 -17
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +9 -32
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +7 -18
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +9 -37
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +11 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +29 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +11 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +34 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +7 -3
- data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -5
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -3
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +1 -5
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.html.erb +9 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +142 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +17 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/_collapsible_content.html.erb +7 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/_collapsible_main.html.erb +16 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible.rb +15 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +21 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible_main.rb +24 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_dark.html.erb +10 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_dark.jsx +17 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb +10 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +9 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_collapsible/index.js +82 -0
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +1 -5
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +1 -5
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +1 -5
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +5 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +31 -37
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -4
- 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 +1 -3
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +4 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +14 -8
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +39 -122
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +2 -33
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +9 -44
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +1 -14
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +1 -45
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +1 -5
- 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 +1 -5
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
- data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +2 -3
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +17 -31
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +0 -10
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +2 -1
- 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 +0 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -7
- 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 +2 -10
- 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 +2 -7
- data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -3
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
- 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 +1 -5
- data/app/pb_kits/playbook/pb_image/_image.jsx +1 -5
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -5
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_list/_list.jsx +2 -3
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -3
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +1 -5
- data/app/pb_kits/playbook/pb_message/_message.jsx +1 -5
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -5
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
- data/app/pb_kits/playbook/pb_person/_person.jsx +1 -5
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -12
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +1 -5
- data/app/pb_kits/playbook/pb_popover/_popover.scss +4 -6
- data/app/pb_kits/playbook/pb_popover/index.js +1 -3
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +33 -168
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +1 -3
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +8 -10
- 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 +16 -14
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -6
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +1 -17
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +1 -17
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +3 -10
- data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -11
- 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/example.yml +0 -1
- data/app/pb_kits/playbook/pb_radio/radio.rb +4 -2
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- 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 +1 -6
- data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -12
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -6
- 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.jsx +2 -2
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +1 -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 +1 -5
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +1 -5
- 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 +43 -41
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +11 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +44 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_toggle/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +2 -5
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +20 -24
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -19
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +1 -8
- data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +13 -21
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
- 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.jsx +3 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +45 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +3 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +27 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -24
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -5
- data/app/pb_kits/playbook/tokens/_colors.scss +23 -22
- data/app/pb_kits/playbook/tokens/_typography.scss +4 -4
- data/app/pb_kits/playbook/vendor.js +3 -8
- data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
- data/app/views/layouts/playbook/_nav.html.erb +37 -0
- data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
- data/app/views/layouts/playbook/application.html.erb +26 -0
- data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
- data/app/views/layouts/playbook/grid.html.slim +10 -0
- data/app/views/layouts/playbook/samples.html.erb +19 -0
- data/app/views/playbook/guides/create_kit.html.slim +16 -0
- data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
- data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
- data/app/views/playbook/guides/use_nitro.html.slim +6 -0
- data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
- data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
- data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
- data/app/views/playbook/pages/fullscreen.html.slim +10 -0
- data/app/views/playbook/pages/grid.html.slim +2 -0
- data/app/views/playbook/pages/home.html.slim +4 -0
- data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
- data/app/views/playbook/pages/kit_show.html.erb +33 -0
- data/app/views/playbook/pages/kits.html.erb +12 -0
- data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
- data/app/views/playbook/pages/principles.html.slim +3 -0
- data/app/views/playbook/pages/tokens.html.slim +15 -0
- data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
- data/app/views/playbook/pages/utilities.html.slim +116 -0
- data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
- data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
- data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
- data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
- data/app/views/playbook/samples/dashboards/index.jsx +130 -0
- data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
- data/app/views/playbook/samples/filter_table/index.jsx +433 -0
- data/app/views/playbook/samples/registration/index.html.erb +316 -0
- data/app/views/playbook/samples/registration/index.jsx +476 -0
- data/app/views/playbook/samples/sample_show.html.erb +36 -0
- data/lib/generators/kit/USAGE +5 -0
- data/lib/generators/kit/kit_generator.rb +95 -0
- data/lib/generators/kit/templates/kit_example_rails.erb.tt +1 -0
- data/lib/generators/kit/templates/kit_example_react.erb.tt +10 -0
- data/lib/generators/kit/templates/kit_example_yml.erb.tt +9 -0
- data/lib/generators/kit/templates/kit_html.erb.tt +7 -0
- data/lib/generators/kit/templates/kit_js.erb.tt +1 -0
- data/lib/generators/kit/templates/kit_jsx.erb.tt +68 -0
- data/lib/generators/kit/templates/kit_ruby.erb.tt +11 -0
- data/lib/generators/kit/templates/kit_ruby_spec.erb.tt +11 -0
- data/lib/generators/kit/templates/kit_scss.erb +3 -0
- data/lib/playbook/engine.rb +0 -1
- data/lib/playbook/version.rb +1 -1
- data/lib/tasks/pb_release.rake +77 -0
- data/lib/tasks/playbook_tasks.rake +26 -0
- metadata +103 -44
- data/app/pb_kits/playbook/pb_background/_background.html.erb +0 -14
- data/app/pb_kits/playbook/pb_background/_background.jsx +0 -64
- data/app/pb_kits/playbook/pb_background/_background.scss +0 -15
- data/app/pb_kits/playbook/pb_background/background.rb +0 -36
- data/app/pb_kits/playbook/pb_background/docs/_background_default.html.erb +0 -41
- data/app/pb_kits/playbook/pb_background/docs/_background_default.jsx +0 -75
- data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -8
- data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +0 -57
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +0 -27
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +0 -10
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +0 -34
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +0 -3
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +0 -21
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +0 -38
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +0 -18
- data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +0 -9
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +0 -68
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +0 -61
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +0 -89
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +0 -68
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +0 -43
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +0 -80
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +0 -63
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +0 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +0 -10
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +0 -25
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +0 -8
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +0 -30
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +0 -11
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +0 -25
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +0 -1
- data/app/pb_kits/playbook/react_rails_kits.js +0 -6
- data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -4,18 +4,13 @@ module Playbook
|
|
4
4
|
module PbForm
|
5
5
|
module FormBuilder
|
6
6
|
module CheckboxField
|
7
|
-
def check_box(name, props: {}, **options)
|
7
|
+
def check_box(name, props: {}, **options, &block)
|
8
8
|
label_text = @template.label(@object_name, name) if props[:label] == true
|
9
9
|
options[:required] = true if props[:required]
|
10
10
|
props[:margin_bottom] = "sm"
|
11
11
|
props[:form_spacing] = true
|
12
12
|
|
13
|
-
|
14
|
-
unchecked_value = options[:unchecked_value]
|
15
|
-
options.delete(:checked_value)
|
16
|
-
options.delete(:unchecked_value)
|
17
|
-
|
18
|
-
input = super(name, options, checked_value, unchecked_value)
|
13
|
+
input = super(name, **options, &block)
|
19
14
|
|
20
15
|
if props[:label]
|
21
16
|
@template.pb_rails("caption", props: { text: label_text, margin_bottom: "xs" }) +
|
@@ -8,7 +8,6 @@ module Playbook
|
|
8
8
|
prefix = @object_name
|
9
9
|
html_attribute_name = "#{prefix}[#{name}]"
|
10
10
|
html_id = "#{prefix}_#{name}"
|
11
|
-
props[:label] = @template.label(@object_name, name) if props[:label] == true
|
12
11
|
|
13
12
|
props[:name] = html_attribute_name
|
14
13
|
props[:picker_id] = html_id
|
@@ -18,9 +18,8 @@ type FormPillProps = {
|
|
18
18
|
const FormPill = (props: FormPillProps) => {
|
19
19
|
const { className, text, name, onClick = () => {}, avatarUrl } = props
|
20
20
|
const css = classnames(
|
21
|
-
`pb_form_pill_kit_${'primary'}`,
|
22
|
-
globalProps(props)
|
23
|
-
className
|
21
|
+
[`pb_form_pill_kit_${'primary'}`, className],
|
22
|
+
globalProps(props)
|
24
23
|
)
|
25
24
|
return (
|
26
25
|
<div className={css}>
|
@@ -27,7 +27,7 @@ const Highlight = (props: HighlightProps) => {
|
|
27
27
|
<Highlighter
|
28
28
|
autoEscape
|
29
29
|
data={data}
|
30
|
-
highlightClassName={classnames(globalProps(props)
|
30
|
+
highlightClassName={classnames(className, globalProps(props))}
|
31
31
|
highlightTag="span"
|
32
32
|
id={id}
|
33
33
|
searchWords={highlightedText}
|
@@ -40,12 +40,12 @@ const HomeAddressStreet = (props: HomeAddressStreetProps) => {
|
|
40
40
|
|
41
41
|
const classes = (className, dark) =>
|
42
42
|
classnames(
|
43
|
+
className,
|
43
44
|
{
|
44
45
|
'pb_home_address_street': !dark,
|
45
46
|
'pb_home_address_street_dark': dark,
|
46
47
|
},
|
47
|
-
globalProps(props)
|
48
|
-
className
|
48
|
+
globalProps(props)
|
49
49
|
)
|
50
50
|
return (
|
51
51
|
<div className={classes(className, dark)}>
|
@@ -56,6 +56,7 @@ const Icon = (props: IconProps) => {
|
|
56
56
|
spin = false,
|
57
57
|
} = props
|
58
58
|
const classes = classnames(
|
59
|
+
className,
|
59
60
|
flipMap[flip],
|
60
61
|
'pb_icon_kit',
|
61
62
|
'far',
|
@@ -71,8 +72,7 @@ const Icon = (props: IconProps) => {
|
|
71
72
|
[`fa-pull-${pull}`]: pull,
|
72
73
|
[`fa-rotate-${rotation}`]: rotation,
|
73
74
|
},
|
74
|
-
globalProps(props)
|
75
|
-
className
|
75
|
+
globalProps(props)
|
76
76
|
)
|
77
77
|
|
78
78
|
return (
|
@@ -32,11 +32,7 @@ const IconValue = (props: IconValueProps) => {
|
|
32
32
|
} = props
|
33
33
|
const ariaProps = buildAriaProps(aria)
|
34
34
|
const dataProps = buildDataProps(data)
|
35
|
-
const classes = classnames(
|
36
|
-
buildCss('pb_icon_value_kit', align),
|
37
|
-
globalProps(props),
|
38
|
-
className
|
39
|
-
)
|
35
|
+
const classes = classnames(buildCss('pb_icon_value_kit', align), className, globalProps(props))
|
40
36
|
|
41
37
|
return (
|
42
38
|
<div
|
@@ -25,11 +25,7 @@ const Image = (props: ImageProps) => {
|
|
25
25
|
} = props
|
26
26
|
|
27
27
|
const ariaProps = buildAriaProps(aria)
|
28
|
-
const classes = classnames(
|
29
|
-
buildCss('pb_image lazyload blur_up'),
|
30
|
-
globalProps(props),
|
31
|
-
className
|
32
|
-
)
|
28
|
+
const classes = classnames(buildCss('pb_image lazyload blur_up'), className, globalProps(props))
|
33
29
|
const dataProps = buildDataProps(data)
|
34
30
|
|
35
31
|
return (
|
@@ -30,11 +30,7 @@ const LabelPill = (props: LabelPillProps) => {
|
|
30
30
|
} = props
|
31
31
|
const ariaProps = buildAriaProps(aria)
|
32
32
|
const dataProps = buildDataProps(data)
|
33
|
-
const css = classnames(
|
34
|
-
'pb_label_pill_kit',
|
35
|
-
globalProps(props),
|
36
|
-
className
|
37
|
-
)
|
33
|
+
const css = classnames(['pb_label_pill_kit', className], globalProps(props))
|
38
34
|
|
39
35
|
return (
|
40
36
|
<div
|
@@ -46,7 +46,7 @@ type LayoutFooterProps = {
|
|
46
46
|
const Side = (props: LayoutSideProps) => {
|
47
47
|
const { children, className } = props
|
48
48
|
return (
|
49
|
-
<div className={classnames('layout_sidebar', globalProps(props)
|
49
|
+
<div className={classnames('layout_sidebar', className, globalProps(props))}>
|
50
50
|
{children}
|
51
51
|
</div>
|
52
52
|
)
|
@@ -56,7 +56,7 @@ const Side = (props: LayoutSideProps) => {
|
|
56
56
|
const Body = (props: LayoutBodyProps) => {
|
57
57
|
const { children, className } = props
|
58
58
|
return (
|
59
|
-
<div className={classnames('layout_body', globalProps(props)
|
59
|
+
<div className={classnames('layout_body', className, globalProps(props))}>
|
60
60
|
{children}
|
61
61
|
</div>
|
62
62
|
)
|
@@ -66,7 +66,7 @@ const Body = (props: LayoutBodyProps) => {
|
|
66
66
|
const Header = (props: LayoutHeaderProps) => {
|
67
67
|
const { children, className } = props
|
68
68
|
return (
|
69
|
-
<div className={classnames('layout_header', globalProps(props)
|
69
|
+
<div className={classnames('layout_header', className, globalProps(props))}>
|
70
70
|
{children}
|
71
71
|
</div>
|
72
72
|
)
|
@@ -76,7 +76,7 @@ const Header = (props: LayoutHeaderProps) => {
|
|
76
76
|
const Footer = (props: LayoutFooterProps) => {
|
77
77
|
const { children, className } = props
|
78
78
|
return (
|
79
|
-
<div className={classnames('layout_footer', globalProps(props)
|
79
|
+
<div className={classnames('layout_footer', className, globalProps(props))}>
|
80
80
|
{children}
|
81
81
|
</div>
|
82
82
|
)
|
@@ -1 +1,13 @@
|
|
1
|
-
<%=
|
1
|
+
<%= content_tag(:div, "",
|
2
|
+
aria: object.aria,
|
3
|
+
id: object.id,
|
4
|
+
data: object.data,
|
5
|
+
class: object.classname
|
6
|
+
) %>
|
7
|
+
<% content_for :pb_js do %>
|
8
|
+
<%= javascript_tag do %>
|
9
|
+
window.addEventListener('DOMContentLoaded', function() {
|
10
|
+
new pbChart('.selector', <%= object.chart_options %>)
|
11
|
+
})
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
@@ -27,9 +27,8 @@ const ListItem = (props: ListItemProps) => {
|
|
27
27
|
const ariaProps = buildAriaProps(aria)
|
28
28
|
const dataProps = buildDataProps(data)
|
29
29
|
const classes = classnames(
|
30
|
-
buildCss('pb_item_kit'),
|
31
|
-
globalProps(props)
|
32
|
-
className
|
30
|
+
buildCss('pb_item_kit'), className,
|
31
|
+
globalProps(props)
|
33
32
|
)
|
34
33
|
|
35
34
|
return (
|
@@ -40,11 +40,7 @@ const Logistic = (props: LogisticProps) => {
|
|
40
40
|
const ariaProps = buildAriaProps(aria)
|
41
41
|
const dataProps = buildDataProps(data)
|
42
42
|
const formattedDate = new DateTime({ value: date })
|
43
|
-
const classes = classnames(
|
44
|
-
buildCss('pb_logistic_kit', { dark }),
|
45
|
-
globalProps(props),
|
46
|
-
className
|
47
|
-
)
|
43
|
+
const classes = classnames(buildCss('pb_logistic_kit', { dark: dark }), className, globalProps(props))
|
48
44
|
|
49
45
|
return (
|
50
46
|
<div
|
@@ -39,11 +39,7 @@ const Message = (props: MessageProps) => {
|
|
39
39
|
? 'pb_message_kit_avatar'
|
40
40
|
: 'pb_message_kit'
|
41
41
|
|
42
|
-
const classes = classnames(
|
43
|
-
buildCss(baseClassName),
|
44
|
-
globalProps(props),
|
45
|
-
className
|
46
|
-
)
|
42
|
+
const classes = classnames(buildCss(baseClassName), className, globalProps(props))
|
47
43
|
|
48
44
|
return (
|
49
45
|
<div
|
@@ -36,11 +36,8 @@ const MultipleUsers = (props: MultipleUsersProps) => {
|
|
36
36
|
const reverseClass = reverse === true ? 'reverse' : ''
|
37
37
|
const ariaProps = buildAriaProps(aria)
|
38
38
|
const dataProps = buildDataProps(data)
|
39
|
-
const classes = classnames(
|
40
|
-
|
41
|
-
globalProps(props),
|
42
|
-
className
|
43
|
-
)
|
39
|
+
const classes = classnames(buildCss('pb_multiple_users_kit', reverseClass),
|
40
|
+
className, globalProps(props))
|
44
41
|
|
45
42
|
return (
|
46
43
|
<div
|
@@ -32,11 +32,7 @@ const Person = (props: PersonProps) => {
|
|
32
32
|
|
33
33
|
const ariaProps = buildAriaProps(aria)
|
34
34
|
const dataProps = buildDataProps(data)
|
35
|
-
const classes = classnames(
|
36
|
-
buildCss('pb_person_kit'),
|
37
|
-
globalProps(props),
|
38
|
-
className
|
39
|
-
)
|
35
|
+
const classes = classnames(buildCss('pb_person_kit'), className, globalProps(props))
|
40
36
|
|
41
37
|
return (
|
42
38
|
<div
|
@@ -43,11 +43,7 @@ const PersonContact = (props: PersonContactProps) => {
|
|
43
43
|
|
44
44
|
const ariaProps = buildAriaProps(aria)
|
45
45
|
const dataProps = buildDataProps(data)
|
46
|
-
const classes = classnames(
|
47
|
-
buildCss('pb_person_contact_kit'),
|
48
|
-
globalProps(props),
|
49
|
-
className
|
50
|
-
)
|
46
|
+
const classes = classnames(buildCss('pb_person_contact_kit'), className, globalProps(props))
|
51
47
|
|
52
48
|
const wrongContacts = () => (
|
53
49
|
contacts.filter((contactObject) => (
|
@@ -77,23 +73,22 @@ const PersonContact = (props: PersonContactProps) => {
|
|
77
73
|
contactDetail={contactObject.contactDetail}
|
78
74
|
contactType={contactObject.contactType}
|
79
75
|
contactValue={contactObject.contactValue}
|
80
|
-
key={
|
76
|
+
key={index}
|
81
77
|
/>
|
82
|
-
|
78
|
+
))}
|
83
79
|
{wrongContacts().map((contactObject, index) => (
|
84
|
-
|
80
|
+
<>
|
85
81
|
<Caption
|
86
82
|
className="wrong_numbers"
|
87
|
-
key={`wrong-contact-caption-${index}`}
|
88
83
|
text="wrong number"
|
89
84
|
/>
|
90
85
|
<Contact
|
91
86
|
contactType={contactObject.contactType}
|
92
87
|
contactValue={contactObject.contactValue}
|
93
|
-
key={
|
88
|
+
key={index}
|
94
89
|
/>
|
95
|
-
|
96
|
-
|
90
|
+
</>
|
91
|
+
))}
|
97
92
|
</div>
|
98
93
|
)
|
99
94
|
}
|
@@ -78,11 +78,7 @@ const Popover = (props: PbPopoverProps) => {
|
|
78
78
|
}
|
79
79
|
const ariaProps = buildAriaProps(aria)
|
80
80
|
const dataProps = buildDataProps(data)
|
81
|
-
const classes = classnames(
|
82
|
-
buildCss('pb_popover_kit'),
|
83
|
-
globalProps(props),
|
84
|
-
className
|
85
|
-
)
|
81
|
+
const classes = classnames(buildCss('pb_popover_kit'), className, globalProps(props))
|
86
82
|
|
87
83
|
return (
|
88
84
|
<Popper
|
@@ -31,14 +31,12 @@
|
|
31
31
|
|
32
32
|
.pb_popover_tooltip {
|
33
33
|
opacity: 0;
|
34
|
+
animation-name: fadeOut;
|
35
|
+
animation-duration: 150ms;
|
36
|
+
animation-timing-function: linear;
|
37
|
+
animation-fill-mode: forwards;
|
34
38
|
visibility: hidden;
|
35
39
|
pointer-events: none;
|
36
|
-
&.hide {
|
37
|
-
animation-name: fadeOut;
|
38
|
-
animation-duration: 150ms;
|
39
|
-
animation-timing-function: linear;
|
40
|
-
animation-fill-mode: forwards;
|
41
|
-
}
|
42
40
|
&.show {
|
43
41
|
animation-name: fadeIn;
|
44
42
|
animation-duration: 150ms;
|
@@ -37,7 +37,7 @@ export default class PbPopover extends PbEnhancedElement {
|
|
37
37
|
|
38
38
|
setTimeout(() => {
|
39
39
|
this.popper.update()
|
40
|
-
this.
|
40
|
+
this.tooltip.classList.toggle('show')
|
41
41
|
}, 0)
|
42
42
|
})
|
43
43
|
}
|
@@ -71,12 +71,10 @@ export default class PbPopover extends PbEnhancedElement {
|
|
71
71
|
|
72
72
|
hideTooltip() {
|
73
73
|
this.tooltip.classList.remove('show')
|
74
|
-
this.tooltip.classList.add('hide')
|
75
74
|
}
|
76
75
|
|
77
76
|
toggleTooltip() {
|
78
77
|
this.tooltip.classList.toggle('show')
|
79
|
-
this.tooltip.classList.toggle('hide')
|
80
78
|
}
|
81
79
|
|
82
80
|
get triggerElement() {
|
@@ -41,14 +41,14 @@ const ProgressSimple = (props: ProgressSimpleProps) => {
|
|
41
41
|
}
|
42
42
|
|
43
43
|
const wrapperClass = classnames(
|
44
|
+
className,
|
44
45
|
buildCss('pb_progress_simple_wrapper', align, { dark: dark }),
|
45
|
-
globalProps(props)
|
46
|
-
className
|
46
|
+
globalProps(props)
|
47
47
|
)
|
48
48
|
|
49
49
|
const kitClass = classnames(
|
50
|
-
|
51
|
-
|
50
|
+
className,
|
51
|
+
buildCss('pb_progress_simple_kit', { muted: muted }, variantStyle, align)
|
52
52
|
)
|
53
53
|
|
54
54
|
return (
|
@@ -13,14 +13,12 @@ type ProgressStepProps = {
|
|
13
13
|
orientation?: "horizontal" | "vertical",
|
14
14
|
icon?: boolean,
|
15
15
|
variant?: string,
|
16
|
-
color?: string,
|
17
16
|
}
|
18
17
|
|
19
18
|
const ProgressStep = (props: ProgressStepProps) => {
|
20
19
|
const {
|
21
20
|
className,
|
22
21
|
children,
|
23
|
-
color,
|
24
22
|
orientation = 'horizontal',
|
25
23
|
icon = false,
|
26
24
|
variant,
|
@@ -31,11 +29,10 @@ const ProgressStep = (props: ProgressStepProps) => {
|
|
31
29
|
orientation,
|
32
30
|
iconStyle,
|
33
31
|
variant,
|
34
|
-
color,
|
35
32
|
)
|
36
33
|
|
37
34
|
return (
|
38
|
-
<ul className={classnames(progressStepCss, globalProps(props)
|
35
|
+
<ul className={classnames(progressStepCss, className, globalProps(props))}>
|
39
36
|
{children}
|
40
37
|
</ul>
|
41
38
|
)
|