playbook_ui 7.3.0.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 -1
- data/app/pb_kits/playbook/data/menu.yml +4 -4
- data/app/pb_kits/playbook/index.js +1 -4
- 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_body/body.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.html.erb +5 -7
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -1
- 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/_date.html.erb +8 -64
- data/app/pb_kits/playbook/pb_date/_date.jsx +66 -115
- data/app/pb_kits/playbook/pb_date/_date.scss +0 -30
- data/app/pb_kits/playbook/pb_date/date.rb +9 -21
- data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +6 -21
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +12 -43
- data/app/pb_kits/playbook/pb_date/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_date/docs/index.js +0 -2
- 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/_item.html.erb +0 -3
- data/app/pb_kits/playbook/pb_nav/_item.jsx +1 -14
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -5
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +3 -22
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_nav/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_nav/item.rb +0 -1
- data/app/pb_kits/playbook/pb_nav/nav.rb +1 -6
- 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_pill/_pill.scss +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 +3 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +47 -26
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +2 -6
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +1 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +1 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +3 -9
- 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/example.yml +2 -3
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +9 -16
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.html.erb +2 -3
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +3 -4
- data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +0 -3
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.html.erb +3 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +0 -10
- 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.html.erb +20 -17
- data/app/pb_kits/playbook/pb_time/_time.jsx +29 -42
- data/app/pb_kits/playbook/pb_time/_time.scss +24 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +1 -4
- 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 +1 -13
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +1 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +1 -3
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +1 -2
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +2 -7
- 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 +3 -4
- 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/props.rb +1 -1
- data/app/pb_kits/playbook/props/base.rb +4 -6
- 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 +104 -53
- 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_caption/docs/_caption_block.html.erb +0 -11
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +0 -28
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +0 -10
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +0 -24
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +0 -35
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +0 -27
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +0 -43
- 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_nav/docs/_borderless_nav.html.erb +0 -6
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +0 -29
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb +0 -7
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +0 -42
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +0 -9
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +0 -32
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_options.html.erb +0 -16
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_options.html.erb +0 -16
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_options.html.erb +0 -15
- 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
@@ -19,14 +19,13 @@
|
|
19
19
|
name: tag(:slot, name: "name"),
|
20
20
|
orientation: "horizontal",
|
21
21
|
align: "left",
|
22
|
-
avatar_url: "
|
23
|
-
avatar: true
|
22
|
+
avatar_url: "placeholder"
|
24
23
|
}) %>
|
25
24
|
</template>
|
26
25
|
|
27
26
|
<%= javascript_tag defer: "defer" do %>
|
28
27
|
document.addEventListener("pb-typeahead-kit-search", function(event) {
|
29
|
-
if (!event.target.dataset
|
28
|
+
if (!event.target.dataset.typeaheadExample) return;
|
30
29
|
|
31
30
|
fetch(`https://api.github.com/search/users?q=${encodeURIComponent(event.detail.searchingFor)}`)
|
32
31
|
.then(response => response.json())
|
@@ -36,7 +35,7 @@
|
|
36
35
|
event.detail.setResults((result.items || []).map((user) => {
|
37
36
|
const wrapper = resultOptionTemplate.content.cloneNode(true)
|
38
37
|
wrapper.querySelector('slot[name="name"]').replaceWith(user.login)
|
39
|
-
wrapper.querySelector('img').
|
38
|
+
wrapper.querySelector('img').setAttribute("src", user.avatar_url)
|
40
39
|
return wrapper
|
41
40
|
}))
|
42
41
|
})
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
<%= javascript_tag defer: "defer" do %>
|
20
20
|
document.addEventListener("pb-typeahead-kit-search", function(event) {
|
21
|
-
if (!event.target.dataset
|
21
|
+
if (!event.target.dataset.typeaheadExample2) return;
|
22
22
|
|
23
23
|
const fuzzyMatch = function(string, term) {
|
24
24
|
const ratio = 0.5;
|
@@ -10,9 +10,12 @@ const options = [
|
|
10
10
|
{ label: 'Roofs', value: '#0000FF' },
|
11
11
|
]
|
12
12
|
|
13
|
+
import TypeaheadWithPillsSummary from './_typeahead_with_pills_summary'
|
14
|
+
|
13
15
|
const TypeaheadWithPills = () => {
|
14
16
|
return (
|
15
17
|
<>
|
18
|
+
<TypeaheadWithPillsSummary />
|
16
19
|
<Typeahead
|
17
20
|
isMulti
|
18
21
|
label="Colors"
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/* @flow */
|
2
|
+
|
3
|
+
import React from 'react'
|
4
|
+
import { Body, Flex, FlexItem, Icon } from '../..'
|
5
|
+
|
6
|
+
const TypeaheadWithPillsAsyncSummary = () => {
|
7
|
+
return (
|
8
|
+
<>
|
9
|
+
<Flex
|
10
|
+
marginBottom="lg"
|
11
|
+
vertical="center"
|
12
|
+
>
|
13
|
+
<FlexItem>
|
14
|
+
<Body
|
15
|
+
color="light"
|
16
|
+
>
|
17
|
+
<Icon
|
18
|
+
icon="info-circle"
|
19
|
+
marginRight="xs"
|
20
|
+
/>
|
21
|
+
</Body>
|
22
|
+
</FlexItem>
|
23
|
+
<FlexItem>
|
24
|
+
<Body
|
25
|
+
color="light"
|
26
|
+
>
|
27
|
+
{'If the data field '}
|
28
|
+
<code>{'imageUrl'}</code>
|
29
|
+
{' is present, '}
|
30
|
+
<code>{'FormPill'}</code>
|
31
|
+
{' will receive that field as a prop and display the image. '}
|
32
|
+
<br />
|
33
|
+
{'Additionally, you can also leverage the callback prop: '}
|
34
|
+
<code>{'onMultiValueClick'}</code>
|
35
|
+
{' to perform custom work when a '}
|
36
|
+
<code>{'MultiValue'}</code>
|
37
|
+
{' item is clicked.'}
|
38
|
+
</Body>
|
39
|
+
</FlexItem>
|
40
|
+
</Flex>
|
41
|
+
</>
|
42
|
+
)
|
43
|
+
}
|
44
|
+
|
45
|
+
export default TypeaheadWithPillsAsyncSummary
|
@@ -8,6 +8,8 @@ import {
|
|
8
8
|
User,
|
9
9
|
} from '../..'
|
10
10
|
|
11
|
+
import TypeaheadWithPillsAsyncSummary from './_typeahead_with_pills_async_summary'
|
12
|
+
|
11
13
|
/**
|
12
14
|
*
|
13
15
|
* @const filterResults
|
@@ -63,6 +65,7 @@ const TypeaheadWithPillsAsyncUsers = () => {
|
|
63
65
|
|
64
66
|
return (
|
65
67
|
<>
|
68
|
+
<TypeaheadWithPillsAsyncSummary />
|
66
69
|
<If condition={users && users.length > 0}>
|
67
70
|
<Caption
|
68
71
|
marginBottom="xs"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// @flow
|
2
|
+
|
3
|
+
import React from 'react'
|
4
|
+
import { Body, Icon } from '../..'
|
5
|
+
|
6
|
+
const TypeaheadWithPillsSummary = () => {
|
7
|
+
return (
|
8
|
+
<>
|
9
|
+
<Body
|
10
|
+
color="light"
|
11
|
+
marginBottom="lg"
|
12
|
+
>
|
13
|
+
<Icon
|
14
|
+
icon="info-circle"
|
15
|
+
marginRight="xs"
|
16
|
+
/>
|
17
|
+
{'Typeahead kit is data-driven. The minimum default fields are '}
|
18
|
+
<code>{'label'}</code>
|
19
|
+
{' and '}
|
20
|
+
<code>{'value'}</code>
|
21
|
+
{'.'}
|
22
|
+
</Body>
|
23
|
+
</>
|
24
|
+
)
|
25
|
+
}
|
26
|
+
|
27
|
+
export default TypeaheadWithPillsSummary
|
@@ -2,9 +2,6 @@ examples:
|
|
2
2
|
rails:
|
3
3
|
- typeahead_default: Default
|
4
4
|
- typeahead_with_context_dark: With Context
|
5
|
-
- typeahead_with_pills: With Pills
|
6
|
-
- typeahead_with_pills_async: With Pills (Async Data)
|
7
|
-
- typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
|
8
5
|
|
9
6
|
react:
|
10
7
|
- typeahead_default: Default
|
@@ -5,19 +5,12 @@ module Playbook
|
|
5
5
|
class Typeahead
|
6
6
|
include Playbook::Props
|
7
7
|
|
8
|
-
prop :async, type: Playbook::Props::Boolean,
|
9
|
-
default: false
|
10
8
|
prop :label
|
11
|
-
prop :load_options
|
12
9
|
prop :name
|
13
|
-
prop :
|
14
|
-
prop :pills, type: Playbook::Props::Boolean,
|
15
|
-
default: false
|
16
|
-
|
10
|
+
prop :value
|
17
11
|
prop :placeholder
|
18
12
|
prop :search_term_minimum_length, default: 3
|
19
13
|
prop :search_debounce_timeout, default: 250
|
20
|
-
prop :value
|
21
14
|
|
22
15
|
partial "pb_typeahead/typeahead"
|
23
16
|
|
@@ -32,22 +25,6 @@ module Playbook
|
|
32
25
|
pb_typeahead_kit_search_debounce_timeout: search_debounce_timeout
|
33
26
|
)
|
34
27
|
end
|
35
|
-
|
36
|
-
def typeahead_with_pills_options
|
37
|
-
base_options = {
|
38
|
-
isMulti: true,
|
39
|
-
label: label,
|
40
|
-
options: options,
|
41
|
-
placeholder: placeholder
|
42
|
-
}
|
43
|
-
|
44
|
-
base_options.merge!({
|
45
|
-
async: true,
|
46
|
-
loadOptions: load_options,
|
47
|
-
}) if async
|
48
|
-
|
49
|
-
base_options
|
50
|
-
end
|
51
28
|
end
|
52
29
|
end
|
53
30
|
end
|
@@ -26,11 +26,8 @@ const UserBadge = (props: UserBadgeProps) => {
|
|
26
26
|
const image = require(`./badges/_${badge}.svg`)
|
27
27
|
const ariaProps = buildAriaProps(aria)
|
28
28
|
const dataProps = buildDataProps(data)
|
29
|
-
const classes = classnames(
|
30
|
-
|
31
|
-
globalProps(props),
|
32
|
-
className
|
33
|
-
)
|
29
|
+
const classes = classnames(buildCss('pb_user_badge_kit', size), globalProps(props),
|
30
|
+
className)
|
34
31
|
|
35
32
|
return (
|
36
33
|
<div
|
@@ -124,7 +124,7 @@ module Playbook
|
|
124
124
|
|
125
125
|
def prop(name, type: Playbook::Props::String, **options)
|
126
126
|
@props ||= {}
|
127
|
-
@props[name] = type.new(options
|
127
|
+
@props[name] = type.new(**options)
|
128
128
|
|
129
129
|
define_method(name) { prop(name) }
|
130
130
|
end
|
@@ -5,13 +5,11 @@ module Playbook
|
|
5
5
|
class Error < StandardError; end
|
6
6
|
|
7
7
|
class Base
|
8
|
-
attr_reader :default, :required
|
8
|
+
attr_reader :default, :required
|
9
9
|
|
10
|
-
def initialize(default: nil, required: false
|
10
|
+
def initialize(default: nil, required: false)
|
11
11
|
@default = default
|
12
12
|
@required = required
|
13
|
-
@name = name
|
14
|
-
@kit = kit
|
15
13
|
end
|
16
14
|
|
17
15
|
def value(value)
|
@@ -19,10 +17,10 @@ module Playbook
|
|
19
17
|
end
|
20
18
|
|
21
19
|
def validate!(input_value)
|
22
|
-
raise(Playbook::Props::Error, "#{
|
20
|
+
raise(Playbook::Props::Error, "#{inspect} is a required prop and needs to be provided a value") if required && input_value.nil?
|
23
21
|
|
24
22
|
validate(value(input_value)) ||
|
25
|
-
raise(Playbook::Props::Error, "
|
23
|
+
raise(Playbook::Props::Error, "Invalid value (#{input_value.inspect}) for prop (#{inspect})")
|
26
24
|
end
|
27
25
|
|
28
26
|
def validate(_value)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@import "./opacity";
|
2
2
|
|
3
|
-
|
4
|
-
Base colors should not be documented.
|
5
|
-
Only document color use.
|
3
|
+
//=====================================
|
4
|
+
// Base colors should not be documented.
|
5
|
+
// Only document color use.
|
6
6
|
|
7
|
-
Colors
|
7
|
+
// Colors -----------------------------
|
8
8
|
$royal: #0056CF;
|
9
9
|
$purple: #9E64E9;
|
10
10
|
$teal: #00C4D7;
|
@@ -22,11 +22,11 @@ $colors: (
|
|
22
22
|
orange: $orange
|
23
23
|
);
|
24
24
|
|
25
|
-
|
25
|
+
// Specialty Gradient -----------------
|
26
26
|
$gradient_start: #1C75F2;
|
27
27
|
$gradient_end: $royal;
|
28
28
|
|
29
|
-
|
29
|
+
// Interface colors -------------------
|
30
30
|
$white: #FFFFFF;
|
31
31
|
$silver: #F3F7FB;
|
32
32
|
$slate: #C1CDD6;
|
@@ -42,7 +42,7 @@ $interface_colors: (
|
|
42
42
|
|
43
43
|
);
|
44
44
|
|
45
|
-
|
45
|
+
// Main colors ------------------------
|
46
46
|
$primary: $royal;
|
47
47
|
$secondary: $yellow;
|
48
48
|
$tertiary: $purple;
|
@@ -51,9 +51,9 @@ $main_colors: (
|
|
51
51
|
secondary: $secondary,
|
52
52
|
tertiary: $tertiary
|
53
53
|
);
|
54
|
-
|
54
|
+
//=====================================
|
55
55
|
|
56
|
-
Background colors
|
56
|
+
// Background colors ------------------
|
57
57
|
$bg_light: $silver;
|
58
58
|
$bg_dark: #0a0527;
|
59
59
|
$background_colors: (
|
@@ -61,7 +61,7 @@ $background_colors: (
|
|
61
61
|
bg_dark: $bg_dark
|
62
62
|
);
|
63
63
|
|
64
|
-
|
64
|
+
// Card colors ------------------
|
65
65
|
$card_light: $white;
|
66
66
|
$card_dark: rgba($white, $opacity_1);
|
67
67
|
$card_colors: (
|
@@ -74,15 +74,15 @@ $action_colors: (
|
|
74
74
|
primary_action: $primary-action
|
75
75
|
);
|
76
76
|
|
77
|
-
|
77
|
+
// Active colors ----------------------
|
78
78
|
$active_light: lighten(#E5F2FF, 3.5%);
|
79
|
-
$active_dark: #0082ff;
|
79
|
+
$active_dark: #0082ff;
|
80
80
|
$active_colors: (
|
81
81
|
active_light: $active_light,
|
82
82
|
active_dark: $active_dark
|
83
83
|
);
|
84
84
|
|
85
|
-
|
85
|
+
// Hover colors -----------------------
|
86
86
|
$hover_light: darken($silver, 5%);
|
87
87
|
$hover_dark: rgba($white, $opacity_2);
|
88
88
|
$hover_colors: (
|
@@ -90,7 +90,7 @@ $hover_colors: (
|
|
90
90
|
hover_dark: $hover_dark
|
91
91
|
);
|
92
92
|
|
93
|
-
|
93
|
+
// Focus colors -----------------------
|
94
94
|
$focus_input_light: rgba($active_light, $opacity_5);
|
95
95
|
$focus_input_dark: rgba(#144075, $opacity_5);
|
96
96
|
$focus_input_colors: (
|
@@ -98,7 +98,7 @@ $focus_input_colors: (
|
|
98
98
|
focus_input_dark: $focus_input_dark
|
99
99
|
);
|
100
100
|
|
101
|
-
|
101
|
+
// Border colors ----------------------
|
102
102
|
$border_light: #E4E8F0;
|
103
103
|
$border_dark: rgba($white, $opacity_1);
|
104
104
|
$border_colors: (
|
@@ -106,13 +106,13 @@ $border_colors: (
|
|
106
106
|
border_dark: $border_dark
|
107
107
|
);
|
108
108
|
|
109
|
-
|
109
|
+
// Shadow colors ----------------------
|
110
110
|
$shadow: rgba(#3C6AAC, $opacity_2);
|
111
111
|
$shadow_colors: (
|
112
112
|
shadow: $shadow,
|
113
113
|
);
|
114
114
|
|
115
|
-
|
115
|
+
// Text colors ------------------------
|
116
116
|
$text_lt_default: $charcoal;
|
117
117
|
$text_lt_light: #919EAB;
|
118
118
|
$text_lt_lighter: $slate;
|
@@ -128,7 +128,7 @@ $text_colors: (
|
|
128
128
|
text_dk_lighter: $text_dk_lighter
|
129
129
|
);
|
130
130
|
|
131
|
-
|
131
|
+
// Data colors ------------------------
|
132
132
|
$data_1: $royal;
|
133
133
|
$data_2: $yellow;
|
134
134
|
$data_3: $purple;
|
@@ -148,7 +148,7 @@ $data_colors: (
|
|
148
148
|
data_8: $data_8
|
149
149
|
);
|
150
150
|
|
151
|
-
|
151
|
+
// Status colors ----------------------
|
152
152
|
$success: $green;
|
153
153
|
$warning: $yellow;
|
154
154
|
$error: $red;
|
@@ -174,10 +174,10 @@ $status_color_text: (
|
|
174
174
|
primary: $primary
|
175
175
|
);
|
176
176
|
|
177
|
-
|
177
|
+
// Link colors ------------------------
|
178
178
|
$primary_action: $primary;
|
179
179
|
|
180
|
-
|
180
|
+
// Product colors ---------------------
|
181
181
|
$windows: $royal;
|
182
182
|
$siding: $yellow;
|
183
183
|
$doors: $teal;
|
@@ -195,7 +195,7 @@ $product_colors: (
|
|
195
195
|
insulation: $insulation
|
196
196
|
);
|
197
197
|
|
198
|
-
|
198
|
+
// Category colors ---------------------
|
199
199
|
$category_1: $royal;
|
200
200
|
$category_2: #0CD2E5;
|
201
201
|
$category_3: $yellow;
|
@@ -252,6 +252,7 @@ $transparent: transparent;
|
|
252
252
|
}
|
253
253
|
|
254
254
|
:export {
|
255
|
+
|
255
256
|
@mixin export-colors($colors-list) {
|
256
257
|
@each $name, $color in $colors-list {
|
257
258
|
#{$name}: $color;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
$font_family_base: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif;
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
// CLEAN UP AND REMOVE
|
6
6
|
$font_jumbo: 36px;
|
7
7
|
$font_largest: 32px;
|
8
8
|
$font_larger: 28px;
|
@@ -29,7 +29,7 @@ $text_smaller: $font_smaller;
|
|
29
29
|
$text_smallest: $font_smallest;
|
30
30
|
|
31
31
|
|
32
|
-
|
32
|
+
// Headings
|
33
33
|
$heading_1: 48px;
|
34
34
|
$heading_2: 34px;
|
35
35
|
$heading_3: $font_larger;
|
@@ -52,11 +52,11 @@ $lspace_super_loosest: .2em;
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
-
|
55
|
+
// Standard Font Weights
|
56
56
|
$bold: 600;
|
57
57
|
$regular: 400;
|
58
58
|
|
59
|
-
|
59
|
+
// Non_Standard Font Weights
|
60
60
|
$extrabold: 900;
|
61
61
|
$boldest: 800;
|
62
62
|
$bolder: 700;
|
@@ -12,15 +12,15 @@ window.datePickerHelper = datePickerHelper
|
|
12
12
|
// Lazy image loading
|
13
13
|
import 'lazysizes'
|
14
14
|
|
15
|
+
import PbCollapsible from './pb_collapsible'
|
16
|
+
PbCollapsible.start()
|
17
|
+
|
15
18
|
import PbPopover from './pb_popover'
|
16
19
|
PbPopover.start()
|
17
20
|
|
18
21
|
import PbTooltip from './pb_tooltip'
|
19
22
|
PbTooltip.start()
|
20
23
|
|
21
|
-
import PbFixedConfirmationToast from './pb_fixed_confirmation_toast'
|
22
|
-
PbFixedConfirmationToast.start()
|
23
|
-
|
24
24
|
import PbTypeahead from './pb_typeahead'
|
25
25
|
PbTypeahead.start()
|
26
26
|
|
@@ -28,8 +28,3 @@ import PbTable from './pb_table'
|
|
28
28
|
PbTable.start()
|
29
29
|
|
30
30
|
import 'flatpickr'
|
31
|
-
|
32
|
-
// React-Rendered Rails Kits =====
|
33
|
-
import WebpackerReact from 'webpacker-react'
|
34
|
-
import * as ReactRailsPBKits from './react_rails_kits.js'
|
35
|
-
WebpackerReact.setup({ ...ReactRailsPBKits })
|