playbook_ui 9.19.0.pre.alpha.pre.fonts2 → 9.19.0.pre.alphafonts
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -5
- data/app/assets/images/clark.jpg +0 -0
- data/app/assets/images/full_page_samples.svg +7 -0
- data/app/assets/images/giant.jpg +0 -0
- data/app/assets/images/github-brands.svg +1 -0
- data/app/assets/images/landing-background.svg +36 -0
- data/app/assets/images/landing-image.svg +203 -0
- data/app/assets/images/pb-caret.svg +1 -0
- data/app/assets/images/pb-check.svg +11 -0
- data/app/assets/images/pb-logo.svg +28 -0
- data/app/assets/images/pb-white-logo.svg +15 -0
- data/app/assets/images/pb.logo.svg +28 -0
- data/app/pb_kits/playbook/index.js +107 -107
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +2 -3
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +2 -3
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +1 -2
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -3
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +1 -2
- data/app/pb_kits/playbook/pb_body/_body.jsx +2 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +1 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +1 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +1 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +1 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +2 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +1 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_tag.jsx +1 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +1 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +1 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +2 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +1 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +1 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -4
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +1 -2
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +3 -5
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.jsx +3 -4
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +2 -5
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +1 -4
- data/app/pb_kits/playbook/pb_currency/docs/_currency_alignment.jsx +1 -2
- data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol.jsx +1 -2
- data/app/pb_kits/playbook/pb_currency/docs/_currency_size.jsx +1 -2
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +1 -2
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -4
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +1 -2
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_date/_date.jsx +3 -8
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +3 -7
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx +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_disabled.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_flatpickr_methods.jsx +1 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hide_icon.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.jsx +1 -2
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +1 -2
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +3 -7
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +2 -7
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +3 -7
- data/app/pb_kits/playbook/pb_date_time/_date_time.jsx +2 -6
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +2 -7
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +4 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +3 -5
- data/app/pb_kits/playbook/pb_dialog/_close_icon.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.jsx +2 -4
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx +1 -4
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.jsx +1 -3
- data/app/pb_kits/playbook/pb_enhanced_element/index.js +1 -2
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +4 -5
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +1 -4
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +1 -3
- data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.jsx +1 -3
- data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.jsx +1 -2
- data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.jsx +1 -3
- data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.jsx +1 -3
- data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.jsx +1 -6
- data/app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx +1 -7
- data/app/pb_kits/playbook/pb_filter/docs/_sort_only.jsx +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -5
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +1 -2
- 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.jsx +1 -2
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +1 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +1 -5
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +1 -3
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.jsx +1 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +1 -5
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.jsx +1 -3
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx +1 -3
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +1 -5
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +7 -3
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +2 -3
- data/app/pb_kits/playbook/pb_highlight/docs/_highlight_default.jsx +1 -3
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -5
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +1 -2
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_animate.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_border.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_flip.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_pull.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +2 -3
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.jsx +1 -7
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +2 -3
- data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align.jsx +1 -2
- data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_image/docs/_custom_error_image.jsx +1 -4
- data/app/pb_kits/playbook/pb_image/docs/_default_image.jsx +1 -2
- data/app/pb_kits/playbook/pb_image/docs/_rounded_image.jsx +1 -2
- data/app/pb_kits/playbook/pb_kit/dateTime.js +2 -2
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -2
- data/app/pb_kits/playbook/pb_label_pill/docs/_label_pill_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +2 -7
- data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.jsx +1 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.jsx +1 -7
- data/app/pb_kits/playbook/pb_layout/docs/_layout_colors.jsx +1 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_content.jsx +1 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban.jsx +12 -11
- data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban_responsive.jsx +1 -5
- data/app/pb_kits/playbook/pb_layout/docs/_layout_masonry.jsx +1 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_sizes.jsx +1 -2
- data/app/pb_kits/playbook/pb_layout/docs/_layout_transparent.jsx +1 -2
- data/app/pb_kits/playbook/pb_legend/_legend.jsx +2 -4
- data/app/pb_kits/playbook/pb_legend/docs/_legend_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -2
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +1 -1
- data/app/pb_kits/playbook/pb_list/docs/_list_borderless.jsx +1 -2
- data/app/pb_kits/playbook/pb_list/docs/_list_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_list/docs/_list_layout_left.jsx +1 -4
- data/app/pb_kits/playbook/pb_list/docs/_list_layout_right.jsx +1 -5
- data/app/pb_kits/playbook/pb_list/docs/_list_lg.jsx +1 -2
- data/app/pb_kits/playbook/pb_list/docs/_list_ordered.jsx +1 -2
- data/app/pb_kits/playbook/pb_list/docs/_list_xpadding.jsx +1 -2
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +2 -3
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_light.jsx +1 -2
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +2 -7
- data/app/pb_kits/playbook/pb_message/_message.jsx +2 -8
- data/app/pb_kits/playbook/pb_message/docs/_message_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +1 -3
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +2 -4
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_nav/_item.jsx +2 -5
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -4
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +2 -2
- data/app/pb_kits/playbook/pb_nav/docs/_block_nav.jsx +2 -4
- data/app/pb_kits/playbook/pb_nav/docs/_block_no_title_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_default_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_new_tab.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_no_highlight_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_subtle_horizontal_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_subtle_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_subtle_no_highlight_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +2 -3
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +2 -11
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx +1 -2
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.jsx +1 -3
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_input_props.jsx +1 -2
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.jsx +1 -4
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx +1 -4
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_tips.jsx +1 -2
- data/app/pb_kits/playbook/pb_person/_person.jsx +2 -3
- data/app/pb_kits/playbook/pb_person/docs/_person_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +8 -5
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_multiple.jsx +1 -2
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_detail.jsx +1 -2
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -2
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +7 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +1 -3
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +0 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +2 -5
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx +2 -6
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom.jsx +1 -2
- data/app/pb_kits/playbook/pb_radio/docs/_radio_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +8 -10
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +2 -4
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +1 -5
- data/app/pb_kits/playbook/pb_select/_select.jsx +13 -6
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_blank.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_custom_select.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled_options.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_required.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +3 -6
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.jsx +1 -5
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_image.jsx +5 -4
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_input.jsx +5 -4
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +2 -5
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_single_select.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +2 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_list/_item.jsx +2 -7
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.jsx +2 -4
- data/app/pb_kits/playbook/pb_source/_source.jsx +13 -8
- data/app/pb_kits/playbook/pb_source/docs/_source_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_source/docs/_source_noicon.jsx +1 -2
- data/app/pb_kits/playbook/pb_source/docs/_source_types.jsx +1 -2
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +7 -2
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +1 -2
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -4
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +2 -3
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +2 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_container.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_data_table.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_disable_hover.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +2 -6
- data/app/pb_kits/playbook/pb_table/docs/_table_lg.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_md.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_multiline.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +2 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_responsive_table.jsx +1 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +1 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_single_line.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_sm.jsx +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +2 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +2 -3
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +2 -7
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +1 -2
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx +1 -2
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +5 -4
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +1 -2
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx +1 -2
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +3 -9
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +3 -3
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_character_counter.jsx +1 -2
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx +1 -2
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_resize.jsx +1 -2
- data/app/pb_kits/playbook/pb_time/_time.jsx +1 -3
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +3 -7
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +2 -3
- data/app/pb_kits/playbook/pb_timeline/_item.jsx +1 -4
- data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +1 -3
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_default.jsx +2 -4
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx +2 -4
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx +2 -3
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +3 -5
- data/app/pb_kits/playbook/pb_title/_title.scss +1 -1
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +40 -1
- data/app/pb_kits/playbook/pb_title/docs/_title_light.jsx +1 -2
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +1 -2
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +2 -3
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align.jsx +1 -2
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +3 -4
- data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +15 -19
- data/app/pb_kits/playbook/pb_typeahead/components/Control.jsx +4 -2
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +1 -2
- data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +3 -1
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +1 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx +1 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx +1 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_user/_user.jsx +2 -6
- data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size.jsx +1 -2
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +5 -6
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_compact.jsx +3 -2
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_default.jsx +3 -2
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_variant.jsx +3 -2
- data/app/pb_kits/playbook/plugins/pb_chart.js +4 -6
- data/app/pb_kits/playbook/react_rails_kits.js +13 -0
- data/app/pb_kits/playbook/tokens/_colors.scss +0 -4
- data/app/pb_kits/playbook/tokens/_fonts.scss +28 -14
- data/app/pb_kits/playbook/utilities/_colors.scss +4 -0
- data/app/pb_kits/playbook/utilities/accessibility.js +22 -0
- data/app/pb_kits/playbook/{playbook-rails.js → vendor.js} +5 -1
- data/dist/reset.css +0 -1
- data/fonts/ProximaNova-Black.woff +0 -0
- data/fonts/ProximaNova-Black.woff2 +0 -0
- data/fonts/ProximaNova-BlackIt.woff +0 -0
- data/fonts/ProximaNova-BlackIt.woff2 +0 -0
- data/fonts/ProximaNova-Bold.woff +0 -0
- data/fonts/ProximaNova-Bold.woff2 +0 -0
- data/fonts/ProximaNova-BoldIt.woff +0 -0
- data/fonts/ProximaNova-BoldIt.woff2 +0 -0
- data/fonts/ProximaNova-Extrabld.woff +0 -0
- data/fonts/ProximaNova-Extrabld.woff2 +0 -0
- data/fonts/ProximaNova-ExtrabldIt.woff +0 -0
- data/fonts/ProximaNova-ExtrabldIt.woff2 +0 -0
- data/fonts/ProximaNova-Light.woff +0 -0
- data/fonts/ProximaNova-Light.woff2 +0 -0
- data/fonts/ProximaNova-LightIt.woff +0 -0
- data/fonts/ProximaNova-LightIt.woff2 +0 -0
- data/fonts/ProximaNova-Regular.woff +0 -0
- data/fonts/ProximaNova-Regular.woff2 +0 -0
- data/fonts/ProximaNova-RegularIt.woff +0 -0
- data/fonts/ProximaNova-RegularIt.woff2 +0 -0
- data/fonts/ProximaNova-Semibold.woff +0 -0
- data/fonts/ProximaNova-Semibold.woff2 +0 -0
- data/fonts/ProximaNova-SemiboldIt.woff +0 -0
- data/fonts/ProximaNova-SemiboldIt.woff2 +0 -0
- data/fonts/ProximaNova-Thin.woff +0 -0
- data/fonts/ProximaNova-Thin.woff2 +0 -0
- data/fonts/ProximaNova-ThinIt.woff +0 -0
- data/fonts/ProximaNova-ThinIt.woff2 +0 -0
- data/lib/playbook/engine.rb +21 -11
- data/lib/playbook/props/nested_props.rb +1 -1
- data/lib/playbook/version.rb +2 -2
- data/lib/playbook.rb +15 -1
- metadata +161 -20
- data/app/pb_kits/playbook/_reset.scss +0 -42
- data/app/pb_kits/playbook/pb_collapsible/context.js +0 -5
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx +0 -58
- data/app/pb_kits/playbook/playbook-doc.js +0 -195
- data/app/pb_kits/playbook/playbook-rails-react-bindings.js +0 -35
- data/app/pb_kits/playbook/tokens/_titles.scss +0 -38
@@ -2,13 +2,9 @@
|
|
2
2
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
|
-
|
6
5
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
7
|
-
import {
|
8
|
-
|
9
|
-
import Avatar from '../pb_avatar/_avatar'
|
10
|
-
import Body from '../pb_body/_body'
|
11
|
-
import Title from '../pb_title/_title'
|
6
|
+
import { Avatar, Body, Title } from '../'
|
7
|
+
import { globalProps } from '../utilities/globalProps.js'
|
12
8
|
|
13
9
|
type UserProps = {
|
14
10
|
align?: "left" | "center" | "right",
|
@@ -5,8 +5,7 @@ import classnames from 'classnames'
|
|
5
5
|
import { globalProps } from '../utilities/globalProps.js'
|
6
6
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
7
7
|
|
8
|
-
import Caption from '../
|
9
|
-
import Title from '../pb_title/_title'
|
8
|
+
import { Caption, Title } from '../'
|
10
9
|
|
11
10
|
import DateTime from '../pb_kit/dateTime.js'
|
12
11
|
|
@@ -23,8 +22,8 @@ type WeekdayStackedProps = {
|
|
23
22
|
id?: string,
|
24
23
|
}
|
25
24
|
|
26
|
-
const getDayOfWeek = (
|
27
|
-
const dateTime = new DateTime({ value })
|
25
|
+
const getDayOfWeek = (date, compact) => {
|
26
|
+
const dateTime = new DateTime({ value: date })
|
28
27
|
if (compact) {
|
29
28
|
return dateTime.toDayAbbr()
|
30
29
|
} else {
|
@@ -32,8 +31,8 @@ const getDayOfWeek = (value, compact) => {
|
|
32
31
|
}
|
33
32
|
}
|
34
33
|
|
35
|
-
const getFormattedDate = (
|
36
|
-
const dateTime = new DateTime({ value })
|
34
|
+
const getFormattedDate = (date, variant) => {
|
35
|
+
const dateTime = new DateTime({ value: date })
|
37
36
|
if (variant === 'day_only') {
|
38
37
|
return dateTime.toDay()
|
39
38
|
} else {
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import Highcharts from 'highcharts'
|
2
2
|
|
3
|
-
import { highchartsTheme } from '../pb_dashboard/pbChartsLightTheme'
|
3
|
+
import { highchartsTheme } from '../pb_dashboard/pbChartsLightTheme.js'
|
4
4
|
import colors from '../tokens/exports/_colors.scss'
|
5
5
|
|
6
|
-
|
7
|
-
import highchartsMore from 'highcharts/highcharts-more'
|
8
|
-
import solidGauge from 'highcharts/modules/solid-gauge'
|
9
|
-
|
10
|
-
pie(Highcharts)
|
6
|
+
require('highcharts/modules/variable-pie')(Highcharts)
|
7
|
+
import highchartsMore from 'highcharts/highcharts-more.js'
|
8
|
+
import solidGauge from 'highcharts/modules/solid-gauge.js'
|
11
9
|
|
12
10
|
// Map Data Color String Props to our SCSS Variables
|
13
11
|
const mapColors = (array) => {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// React-Rendered Rails Kit Exports =====
|
2
|
+
export { default as BarGraph } from './pb_bar_graph/_bar_graph.jsx'
|
3
|
+
export { default as DistributionBar } from './pb_distribution_bar/_distribution_bar.jsx'
|
4
|
+
export { default as Legend } from './pb_legend/_legend.jsx'
|
5
|
+
export { default as LineGraph } from './pb_line_graph/_line_graph.jsx'
|
6
|
+
export { default as Passphrase } from './pb_passphrase/_passphrase.jsx'
|
7
|
+
export { default as Typeahead } from './pb_typeahead/_typeahead.jsx'
|
8
|
+
export { default as RichTextEditor } from './pb_rich_text_editor/_rich_text_editor.jsx'
|
9
|
+
export { default as Dialog } from './pb_dialog/_dialog.jsx'
|
10
|
+
export { default as DialogHeader } from './pb_dialog/child_kits/_dialog_header.jsx'
|
11
|
+
export { default as DialogBody } from './pb_dialog/child_kits/_dialog_body.jsx'
|
12
|
+
export { default as DialogFooter } from './pb_dialog/child_kits/_dialog_footer.jsx'
|
13
|
+
export { KitSearch, SnippetToggle, DarkModeToggle } from './docs_components'
|
@@ -243,10 +243,6 @@ $category_colors: (
|
|
243
243
|
|
244
244
|
$transparent: transparent;
|
245
245
|
|
246
|
-
@function tint($color, $percentage) {
|
247
|
-
@return mix($white, $color, $percentage);
|
248
|
-
}
|
249
|
-
|
250
246
|
@mixin gradient($start: $gradient_start, $end: $gradient_end) {
|
251
247
|
background: $start;
|
252
248
|
background: -moz-linear-gradient(-45deg, $start 0%, $end 100%);
|
@@ -1,96 +1,110 @@
|
|
1
1
|
@font-face {
|
2
|
-
src: url('fonts/ProximaNova-Regular.woff2') format('woff2')
|
2
|
+
src: url('fonts/ProximaNova-Regular.woff2') format('woff2'),
|
3
|
+
url('fonts/ProximaNova-Regular.woff') format('woff');
|
3
4
|
font-family: 'Proxima Nova';
|
4
5
|
font-style: normal;
|
5
6
|
font-weight: 500;
|
6
7
|
|
7
8
|
}
|
8
9
|
@font-face {
|
9
|
-
src: url('fonts/ProximaNova-Light.woff2') format('woff2')
|
10
|
+
src: url('fonts/ProximaNova-Light.woff2') format('woff2'),
|
11
|
+
url('fonts/ProximaNova-Light.woff') format('woff');
|
10
12
|
font-family: 'Proxima Nova';
|
11
13
|
font-style: normal;
|
12
14
|
font-weight: 400;
|
13
15
|
|
14
16
|
}
|
15
17
|
@font-face {
|
16
|
-
src: url('fonts/ProximaNova-Thin.woff2') format('woff2')
|
18
|
+
src: url('fonts/ProximaNova-Thin.woff2') format('woff2'),
|
19
|
+
url('fonts/ProximaNova-Thin.woff') format('woff');
|
17
20
|
font-family: 'Proxima Nova';
|
18
21
|
font-style: normal;
|
19
22
|
font-weight: 100;
|
20
23
|
|
21
24
|
}
|
22
25
|
@font-face {
|
23
|
-
src: url('fonts/ProximaNova-Semibold.woff2') format('woff2')
|
26
|
+
src: url('fonts/ProximaNova-Semibold.woff2') format('woff2'),
|
27
|
+
url('fonts/ProximaNova-Semibold.woff') format('woff');
|
24
28
|
font-family: 'Proxima Nova';
|
25
29
|
font-style: normal;
|
26
30
|
font-weight: 600;
|
27
31
|
|
28
32
|
}
|
29
33
|
@font-face {
|
30
|
-
src: url('fonts/ProximaNova-Bold.woff2') format('woff2')
|
34
|
+
src: url('fonts/ProximaNova-Bold.woff2') format('woff2'),
|
35
|
+
url('fonts/ProximaNova-Bold.woff') format('woff');
|
31
36
|
font-family: 'Proxima Nova';
|
32
37
|
font-style: normal;
|
33
38
|
font-weight: 700;
|
34
39
|
|
35
40
|
}
|
36
41
|
@font-face {
|
37
|
-
src: url('fonts/ProximaNova-Extrabld.woff2') format('woff2')
|
42
|
+
src: url('fonts/ProximaNova-Extrabld.woff2') format('woff2'),
|
43
|
+
url('fonts/ProximaNova-Extrabld.woff') format('woff');
|
38
44
|
font-family: 'Proxima Nova';
|
39
45
|
font-style: normal;
|
40
46
|
font-weight: 800;
|
41
47
|
|
42
48
|
}
|
43
49
|
@font-face {
|
44
|
-
src: url('fonts/ProximaNova-Black.woff2') format('woff2')
|
50
|
+
src: url('fonts/ProximaNova-Black.woff2') format('woff2'),
|
51
|
+
url('fonts/ProximaNova-Black.woff') format('woff');
|
45
52
|
font-family: 'Proxima Nova';
|
46
53
|
font-style: normal;
|
47
54
|
font-weight: 900;
|
48
55
|
|
49
56
|
}
|
50
57
|
@font-face {
|
51
|
-
src: url('fonts/ProximaNova-RegularIt.woff2') format('woff2')
|
58
|
+
src: url('fonts/ProximaNova-RegularIt.woff2') format('woff2'),
|
59
|
+
url('fonts/ProximaNova-RegularIt.woff') format('woff');
|
52
60
|
font-family: 'Proxima Nova';
|
53
61
|
font-style: italic;
|
54
62
|
font-weight: 500;
|
55
63
|
|
56
64
|
}
|
57
65
|
@font-face {
|
58
|
-
src: url('fonts/ProximaNova-LightIt.woff2') format('woff2')
|
66
|
+
src: url('fonts/ProximaNova-LightIt.woff2') format('woff2'),
|
67
|
+
url('fonts/ProximaNova-LightIt.woff') format('woff');
|
59
68
|
font-family: 'Proxima Nova';
|
60
69
|
font-style: italic;
|
61
70
|
font-weight: 400;
|
62
71
|
|
63
72
|
}
|
64
73
|
@font-face {
|
65
|
-
src: url('fonts/ProximaNova-ThinIt.woff2') format('woff2')
|
74
|
+
src: url('fonts/ProximaNova-ThinIt.woff2') format('woff2'),
|
75
|
+
url('fonts/ProximaNova-ThinIt.woff') format('woff');
|
66
76
|
font-family: 'Proxima Nova';
|
67
77
|
font-style: italic;
|
68
78
|
font-weight: 100;
|
69
79
|
|
70
80
|
}
|
71
81
|
@font-face {
|
72
|
-
src: url('fonts/ProximaNova-SemiboldIt.woff2') format('woff2')
|
82
|
+
src: url('fonts/ProximaNova-SemiboldIt.woff2') format('woff2'),
|
83
|
+
url('fonts/ProximaNova-SemiboldIt.woff') format('woff');
|
73
84
|
font-family: 'Proxima Nova';
|
74
85
|
font-style: italic;
|
75
86
|
font-weight: 600;
|
76
87
|
|
77
88
|
}
|
78
89
|
@font-face {
|
79
|
-
src: url('fonts/ProximaNova-BoldIt.woff2') format('woff2')
|
90
|
+
src: url('fonts/ProximaNova-BoldIt.woff2') format('woff2'),
|
91
|
+
url('fonts/ProximaNova-BoldIt.woff') format('woff');
|
80
92
|
font-family: 'Proxima Nova';
|
81
93
|
font-style: italic;
|
82
94
|
font-weight: 700;
|
83
95
|
|
84
96
|
}
|
85
97
|
@font-face {
|
86
|
-
src: url('fonts/ProximaNova-ExtrabldIt.woff2') format('woff2')
|
98
|
+
src: url('fonts/ProximaNova-ExtrabldIt.woff2') format('woff2'),
|
99
|
+
url('fonts/ProximaNova-ExtrabldIt.woff') format('woff');
|
87
100
|
font-family: 'Proxima Nova';
|
88
101
|
font-style: italic;
|
89
102
|
font-weight: 800;
|
90
103
|
|
91
104
|
}
|
92
105
|
@font-face {
|
93
|
-
src: url('fonts/ProximaNova-BlackIt.woff2') format('woff2')
|
106
|
+
src: url('fonts/ProximaNova-BlackIt.woff2') format('woff2'),
|
107
|
+
url('fonts/ProximaNova-BlackIt.woff') format('woff');
|
94
108
|
font-family: 'Proxima Nova';
|
95
109
|
font-style: italic;
|
96
110
|
font-weight: 900;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/* eslint-disable no-console */
|
2
|
+
|
3
|
+
import axe from 'axe-core'
|
4
|
+
|
5
|
+
export const runAxe = function(include = '.pb--kit-example', ignore = ['.pb--kit-example :first-child']) {
|
6
|
+
axe
|
7
|
+
.run({
|
8
|
+
include: [include],
|
9
|
+
exclude: [ignore],
|
10
|
+
})
|
11
|
+
.then((results) => {
|
12
|
+
if (results.violations.length) {
|
13
|
+
console.warn('🚨 [axe-core] Accessibility issues found. See below for a list:')
|
14
|
+
console.dir(results.violations)
|
15
|
+
} else {
|
16
|
+
console.log('[axe-core] Yay! 🎉 No accessibility violations were found!')
|
17
|
+
}
|
18
|
+
})
|
19
|
+
.catch((err) => {
|
20
|
+
console.error('Something bad happened:', err.message)
|
21
|
+
})
|
22
|
+
}
|
@@ -35,5 +35,9 @@ PbTextarea.start()
|
|
35
35
|
|
36
36
|
import 'flatpickr'
|
37
37
|
|
38
|
+
import 'trix'
|
39
|
+
|
38
40
|
// React-Rendered Rails Kits =====
|
39
|
-
import '
|
41
|
+
import WebpackerReact from 'webpacker-react'
|
42
|
+
import * as ReactRailsPBKits from './react_rails_kits.js'
|
43
|
+
WebpackerReact.setup({ ...ReactRailsPBKits })
|
data/dist/reset.css
CHANGED
@@ -1,2 +1 @@
|
|
1
1
|
*{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif;font-size:16px;line-height:1.5;background-color:#F3F7FB;height:100%;letter-spacing:0;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242B42;margin:0 !important;padding:0 !important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056CF}
|
2
|
-
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/playbook/engine.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
require "
|
5
|
-
require "webpacker/react"
|
3
|
+
require "sassc-rails"
|
4
|
+
require "slim-rails"
|
6
5
|
|
7
6
|
module Playbook
|
8
7
|
class Engine < ::Rails::Engine
|
@@ -14,15 +13,26 @@ module Playbook
|
|
14
13
|
|
15
14
|
config.view_component.render_monkey_patch_enabled = false
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
config.assets.paths ||= []
|
17
|
+
config.assets.paths << Playbook::Engine.root.join("fonts")
|
18
|
+
config.assets.paths << Playbook::Engine.root.join("app/pb_kits/playbook/pb_*")
|
19
|
+
|
20
|
+
config.sass.load_paths ||= []
|
21
|
+
config.sass.load_paths << Playbook::Engine.root.join("app/pb_kits/playbook")
|
22
|
+
|
23
|
+
initializer "webpacker.proxy" do |app|
|
24
|
+
insert_middleware = begin
|
25
|
+
Playbook.webpacker.config.dev_server.present?
|
26
|
+
rescue
|
27
|
+
nil
|
28
|
+
end
|
29
|
+
next unless insert_middleware
|
22
30
|
|
23
|
-
|
24
|
-
|
25
|
-
|
31
|
+
app.middleware.insert_before(
|
32
|
+
0, Webpacker::DevServerProxy,
|
33
|
+
ssl_verify_none: true,
|
34
|
+
webpacker: Playbook.webpacker
|
35
|
+
)
|
26
36
|
end
|
27
37
|
end
|
28
38
|
end
|
data/lib/playbook/version.rb
CHANGED
data/lib/playbook.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "sassc-rails"
|
4
|
+
require "slim-rails"
|
5
|
+
require "webpacker"
|
6
|
+
require "webpacker/react"
|
7
|
+
require "view_component/engine"
|
8
|
+
|
3
9
|
require "playbook/version"
|
4
|
-
|
10
|
+
|
5
11
|
require "playbook/props"
|
6
12
|
require "playbook/forms"
|
7
13
|
require "playbook/pb_forms_helper"
|
@@ -10,6 +16,7 @@ require "playbook/pb_doc_helper"
|
|
10
16
|
require "playbook/kit_base"
|
11
17
|
require "playbook/kit_resolver"
|
12
18
|
require "playbook/markdown"
|
19
|
+
require "playbook/engine" if defined?(Rails)
|
13
20
|
|
14
21
|
module Playbook
|
15
22
|
ROOT_PATH = Pathname.new(File.join(__dir__, ".."))
|
@@ -19,6 +26,13 @@ module Playbook
|
|
19
26
|
|
20
27
|
module_function
|
21
28
|
|
29
|
+
def webpacker
|
30
|
+
@webpacker ||= ::Webpacker::Instance.new(
|
31
|
+
root_path: ROOT_PATH,
|
32
|
+
config_path: ROOT_PATH.join("config/webpacker.yml")
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
22
36
|
def kit_path(kit, *args)
|
23
37
|
Playbook::Engine.root.join("app/pb_kits/playbook/pb_#{kit}", *args)
|
24
38
|
end
|