playbook_ui 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -1
- data/app/pb_kits/playbook/index.js +3 -0
- data/app/pb_kits/playbook/kits/pb_multiple_users_stacked.js +4 -0
- data/app/pb_kits/playbook/packs/examples.js +2 -0
- data/app/pb_kits/playbook/packs/kits.js +1 -0
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +23 -48
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +8 -8
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +24 -9
- data/app/pb_kits/playbook/pb_avatar/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +11 -10
- data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +82 -22
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +100 -22
- data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +16 -7
- data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +19 -7
- data/app/pb_kits/playbook/pb_badge/docs/index.js +4 -4
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +2 -1
- data/app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js +23 -23
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +7 -7
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_body/_body.jsx +4 -5
- data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +5 -5
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +30 -11
- data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +22 -10
- data/app/pb_kits/playbook/pb_body/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_button/_button.jsx +17 -14
- data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +9 -9
- data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +8 -8
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +22 -22
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +23 -22
- data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +7 -7
- data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +17 -17
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +17 -17
- data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +7 -7
- data/app/pb_kits/playbook/pb_button/docs/index.js +8 -8
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +8 -11
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +18 -7
- data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +12 -6
- data/app/pb_kits/playbook/pb_caption/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_card/_card.jsx +5 -5
- data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +9 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +7 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +5 -5
- data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +14 -14
- data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +6 -6
- data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +7 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +14 -14
- data/app/pb_kits/playbook/pb_card/docs/index.js +7 -7
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +24 -15
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +6 -6
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +6 -6
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +18 -8
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +19 -19
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +15 -15
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +47 -68
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +10 -10
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +11 -11
- data/app/pb_kits/playbook/pb_contact/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +27 -44
- data/app/pb_kits/playbook/pb_currency/docs/_currency_default.jsx +12 -12
- data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +15 -15
- data/app/pb_kits/playbook/pb_currency/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +61 -61
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js +30 -30
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +13 -6
- data/app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.js +13 -13
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +14 -12
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +14 -12
- data/app/pb_kits/playbook/pb_dashboard_value/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_date/_date.jsx +33 -28
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +15 -9
- data/app/pb_kits/playbook/pb_date/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +21 -14
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +8 -5
- data/app/pb_kits/playbook/pb_date_range_inline/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +28 -49
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_align.jsx +36 -16
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_dark.jsx +13 -13
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.jsx +15 -8
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.jsx +14 -8
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.jsx +17 -8
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.jsx +12 -11
- data/app/pb_kits/playbook/pb_date_stacked/docs/index.js +6 -6
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +6 -13
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_dark.jsx +17 -6
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx +13 -7
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +16 -20
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_default.jsx +9 -9
- data/app/pb_kits/playbook/pb_distribution_bar/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +2 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +28 -40
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +17 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +20 -9
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +4 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +15 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +3 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +17 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +29 -10
- data/app/pb_kits/playbook/pb_form/form_builder.rb +2 -0
- data/app/pb_kits/playbook/pb_form/form_builder/collection_select_field.rb +19 -0
- data/app/pb_kits/playbook/pb_form/form_builder/select_field.rb +19 -0
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +20 -19
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +6 -6
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +6 -6
- data/app/pb_kits/playbook/pb_hashtag/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +17 -26
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +5 -5
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.jsx +5 -5
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +5 -7
- data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +37 -62
- data/app/pb_kits/playbook/pb_icon/docs/_icon_animate.jsx +25 -7
- data/app/pb_kits/playbook/pb_icon/docs/_icon_border.jsx +10 -5
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx +8 -5
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +8 -5
- data/app/pb_kits/playbook/pb_icon/docs/_icon_flip.jsx +22 -7
- data/app/pb_kits/playbook/pb_icon/docs/_icon_pull.jsx +16 -6
- data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx +22 -7
- data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx +110 -18
- data/app/pb_kits/playbook/pb_icon/docs/index.js +8 -8
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +5 -5
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.jsx +44 -11
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_default.jsx +7 -5
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_size.jsx +22 -8
- data/app/pb_kits/playbook/pb_icon_circle/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +52 -16
- data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_default.jsx +23 -4
- data/app/pb_kits/playbook/pb_icon_value/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_image/_image.jsx +16 -27
- data/app/pb_kits/playbook/pb_image/docs/_default_image.jsx +3 -3
- data/app/pb_kits/playbook/pb_image/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_kit/dateTime.js +8 -8
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +7 -7
- data/app/pb_kits/playbook/pb_label_pill/docs/_label_pill_default.jsx +3 -4
- data/app/pb_kits/playbook/pb_label_pill/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +3 -3
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default.jsx +3 -4
- data/app/pb_kits/playbook/pb_label_value/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_layout/_body.jsx +12 -12
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +15 -14
- data/app/pb_kits/playbook/pb_layout/_sidebar.jsx +12 -12
- data/app/pb_kits/playbook/pb_layout/docs/_layout_default.jsx +7 -8
- data/app/pb_kits/playbook/pb_layout/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +55 -54
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +12 -12
- data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js +23 -23
- data/app/pb_kits/playbook/pb_list/_list.jsx +36 -50
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +12 -12
- data/app/pb_kits/playbook/pb_list/docs/_list_dark.jsx +24 -0
- data/app/pb_kits/playbook/pb_list/docs/_list_default.jsx +11 -8
- data/app/pb_kits/playbook/pb_list/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_list/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +7 -8
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.jsx +12 -6
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_light.jsx +4 -4
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_message/_message.jsx +31 -59
- data/app/pb_kits/playbook/pb_message/docs/_message_default.jsx +40 -35
- data/app/pb_kits/playbook/pb_message/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +27 -46
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default.jsx +28 -24
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse.jsx +28 -26
- data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.html.erb +19 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +100 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +57 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default.html.erb +50 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default.jsx +59 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb +35 -0
- data/app/pb_kits/playbook/pb_nav/_item.jsx +21 -22
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +18 -17
- data/app/pb_kits/playbook/pb_nav/docs/_block_nav.jsx +16 -7
- data/app/pb_kits/playbook/pb_nav/docs/_block_no_title_nav.jsx +15 -7
- data/app/pb_kits/playbook/pb_nav/docs/_default_nav.jsx +23 -11
- data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav.jsx +21 -7
- data/app/pb_kits/playbook/pb_nav/docs/index.js +4 -4
- data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +7 -7
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +3 -4
- data/app/pb_kits/playbook/pb_online_status/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_person/_person.jsx +13 -6
- data/app/pb_kits/playbook/pb_person/docs/_person_default.jsx +6 -6
- data/app/pb_kits/playbook/pb_person/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +23 -33
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_default.jsx +13 -13
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_multiple.jsx +18 -18
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_detail.jsx +15 -15
- data/app/pb_kits/playbook/pb_person_contact/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_pill/_pill.jsx +6 -4
- data/app/pb_kits/playbook/pb_pill/docs/_pill_default.jsx +40 -16
- data/app/pb_kits/playbook/pb_pill/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +37 -24
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.jsx +15 -16
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +12 -13
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status.jsx +14 -15
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +7 -7
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_default.jsx +4 -5
- data/app/pb_kits/playbook/pb_progress_simple/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +10 -9
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +4 -4
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +4 -4
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +5 -4
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_select/_select.jsx +48 -36
- data/app/pb_kits/playbook/pb_select/docs/_select_blank.jsx +6 -6
- data/app/pb_kits/playbook/pb_select/docs/_select_custom_select.jsx +11 -8
- data/app/pb_kits/playbook/pb_select/docs/_select_dark.jsx +6 -6
- data/app/pb_kits/playbook/pb_select/docs/_select_default.jsx +5 -5
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled.jsx +6 -6
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled_options.jsx +5 -5
- data/app/pb_kits/playbook/pb_select/docs/_select_required.jsx +7 -7
- data/app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx +5 -5
- data/app/pb_kits/playbook/pb_select/docs/index.js +8 -8
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +24 -19
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.jsx +20 -16
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.jsx +31 -27
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.jsx +33 -31
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_single_select.jsx +24 -21
- data/app/pb_kits/playbook/pb_selectable_card/docs/index.js +4 -4
- data/app/pb_kits/playbook/pb_source/_source.jsx +7 -7
- data/app/pb_kits/playbook/pb_source/docs/_source_default.jsx +4 -5
- data/app/pb_kits/playbook/pb_source/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +7 -7
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +3 -4
- data/app/pb_kits/playbook/pb_star_rating/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +36 -64
- data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_default.jsx +18 -9
- data/app/pb_kits/playbook/pb_stat_change/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +14 -5
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +4 -4
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_unit.jsx +8 -5
- data/app/pb_kits/playbook/pb_stat_value/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_table/_table.jsx +44 -54
- data/app/pb_kits/playbook/pb_table/docs/_table_container.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_container.jsx +25 -24
- data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.jsx +25 -24
- data/app/pb_kits/playbook/pb_table/docs/_table_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_dark.jsx +26 -25
- data/app/pb_kits/playbook/pb_table/docs/_table_data_table.html.erb +48 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_data_table.jsx +43 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_disable_hover.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_disable_hover.jsx +26 -25
- data/app/pb_kits/playbook/pb_table/docs/_table_lg.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_lg.jsx +25 -25
- data/app/pb_kits/playbook/pb_table/docs/_table_md.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_md.jsx +25 -25
- data/app/pb_kits/playbook/pb_table/docs/_table_multiline.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_multiline.jsx +55 -25
- data/app/pb_kits/playbook/pb_table/docs/_table_single_line.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_single_line.jsx +56 -25
- data/app/pb_kits/playbook/pb_table/docs/_table_sm.html.erb +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sm.jsx +25 -25
- data/app/pb_kits/playbook/pb_table/docs/example.yml +6 -4
- data/app/pb_kits/playbook/pb_table/docs/index.js +10 -9
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_structure.scss +10 -1
- data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +1 -0
- data/app/pb_kits/playbook/pb_table/table.rb +7 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +42 -54
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -2
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.jsx +57 -57
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +11 -11
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +29 -34
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx +10 -6
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +23 -9
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +20 -9
- data/app/pb_kits/playbook/pb_textarea/docs/index.js +3 -3
- data/app/pb_kits/playbook/pb_time/_time.jsx +7 -7
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +4 -5
- data/app/pb_kits/playbook/pb_time/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +7 -7
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx +3 -4
- data/app/pb_kits/playbook/pb_timestamp/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +5 -5
- data/app/pb_kits/playbook/pb_title/docs/_title_dark.jsx +28 -8
- data/app/pb_kits/playbook/pb_title/docs/_title_light.jsx +26 -9
- data/app/pb_kits/playbook/pb_title/docs/index.js +2 -2
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +7 -7
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_default.jsx +4 -5
- data/app/pb_kits/playbook/pb_title_count/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +7 -7
- data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_default.jsx +4 -5
- data/app/pb_kits/playbook/pb_title_detail/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +11 -7
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_accessibility.jsx +3 -3
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_data.jsx +3 -3
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default.jsx +24 -34
- data/app/pb_kits/playbook/pb_user/_user.html.erb +1 -2
- data/app/pb_kits/playbook/pb_user/_user.jsx +35 -61
- data/app/pb_kits/playbook/pb_user/docs/_user_default.jsx +25 -25
- data/app/pb_kits/playbook/pb_user/docs/_user_size.jsx +15 -15
- data/app/pb_kits/playbook/pb_user/docs/_user_text_only.jsx +15 -15
- data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size.jsx +27 -25
- data/app/pb_kits/playbook/pb_user/docs/_user_with_territory.jsx +31 -31
- data/app/pb_kits/playbook/pb_user/docs/index.js +5 -5
- data/app/pb_kits/playbook/pb_user/user.rb +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +7 -7
- data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_default.jsx +4 -5
- data/app/pb_kits/playbook/pb_user_badge/docs/index.js +1 -1
- data/app/pb_kits/playbook/tokens/_border_radius.scss +8 -11
- data/app/pb_kits/playbook/tokens/_colors.scss +2 -2
- data/app/pb_kits/playbook/tokens/_line_height.scss +9 -0
- data/app/pb_kits/playbook/tokens/_opacity.scss +9 -0
- data/app/pb_kits/playbook/tokens/_positioning.scss +9 -1
- data/app/pb_kits/playbook/tokens/_screen_sizes.scss +9 -0
- data/app/pb_kits/playbook/tokens/_shadows.scss +9 -0
- data/app/pb_kits/playbook/tokens/_spacing.scss +8 -12
- data/app/pb_kits/playbook/utilities/props.js +1 -1
- data/app/pb_kits/playbook/utilities/text.js +9 -3
- data/lib/playbook/version.rb +1 -1
- metadata +18 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {default as IconDefault} from './_icon_default.jsx'
|
|
2
|
-
export {default as IconRotate} from './_icon_rotate.jsx'
|
|
3
|
-
export {default as IconFlip} from './_icon_flip.jsx'
|
|
4
|
-
export {default as IconAnimate} from './_icon_animate.jsx'
|
|
5
|
-
export {default as IconPull} from './_icon_pull.jsx'
|
|
6
|
-
export {default as IconBorder} from './_icon_border.jsx'
|
|
7
|
-
export {default as IconSizes} from './_icon_sizes.jsx'
|
|
8
|
-
export {default as IconDefaultDark} from './_icon_default_dark.jsx'
|
|
1
|
+
export { default as IconDefault } from './_icon_default.jsx'
|
|
2
|
+
export { default as IconRotate } from './_icon_rotate.jsx'
|
|
3
|
+
export { default as IconFlip } from './_icon_flip.jsx'
|
|
4
|
+
export { default as IconAnimate } from './_icon_animate.jsx'
|
|
5
|
+
export { default as IconPull } from './_icon_pull.jsx'
|
|
6
|
+
export { default as IconBorder } from './_icon_border.jsx'
|
|
7
|
+
export { default as IconSizes } from './_icon_sizes.jsx'
|
|
8
|
+
export { default as IconDefaultDark } from './_icon_default_dark.jsx'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import {Icon} from
|
|
3
|
+
import React from 'react'
|
|
4
|
+
import { Icon } from '../'
|
|
5
5
|
|
|
6
6
|
const IconCircleProps = {
|
|
7
7
|
className: String,
|
|
@@ -9,12 +9,12 @@ const IconCircleProps = {
|
|
|
9
9
|
id: String,
|
|
10
10
|
size: String,
|
|
11
11
|
variant: String,
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
|
|
14
14
|
const IconCircle = ({
|
|
15
15
|
icon,
|
|
16
|
-
size='md',
|
|
17
|
-
variant='default'
|
|
16
|
+
size = 'md',
|
|
17
|
+
variant = 'default',
|
|
18
18
|
}: IconCircleProps) => (
|
|
19
19
|
<div className={`pb_icon_circle_kit_${size}_${variant}`}>
|
|
20
20
|
<Icon icon={icon} />
|
|
@@ -1,19 +1,52 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
3
|
-
import {IconCircle} from '../../'
|
|
2
|
+
import { IconCircle } from '../../'
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
const IconCircleColor = () => {
|
|
6
5
|
return (
|
|
7
6
|
<div>
|
|
8
|
-
<IconCircle
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
<IconCircle
|
|
7
|
+
<IconCircle
|
|
8
|
+
icon="rocket"
|
|
9
|
+
size="sm"
|
|
10
|
+
variant="royal"
|
|
11
|
+
/>
|
|
12
|
+
<br />
|
|
13
|
+
<IconCircle
|
|
14
|
+
icon="rocket"
|
|
15
|
+
size="sm"
|
|
16
|
+
variant="blue"
|
|
17
|
+
/>
|
|
18
|
+
<br />
|
|
19
|
+
<IconCircle
|
|
20
|
+
icon="rocket"
|
|
21
|
+
size="sm"
|
|
22
|
+
variant="purple"
|
|
23
|
+
/>
|
|
24
|
+
<br />
|
|
25
|
+
<IconCircle
|
|
26
|
+
icon="rocket"
|
|
27
|
+
size="sm"
|
|
28
|
+
variant="teal"
|
|
29
|
+
/>
|
|
30
|
+
<br />
|
|
31
|
+
<IconCircle
|
|
32
|
+
icon="rocket"
|
|
33
|
+
size="sm"
|
|
34
|
+
variant="red"
|
|
35
|
+
/>
|
|
36
|
+
<br />
|
|
37
|
+
<IconCircle
|
|
38
|
+
icon="rocket"
|
|
39
|
+
size="sm"
|
|
40
|
+
variant="yellow"
|
|
41
|
+
/>
|
|
42
|
+
<br />
|
|
43
|
+
<IconCircle
|
|
44
|
+
icon="rocket"
|
|
45
|
+
size="sm"
|
|
46
|
+
variant="green"
|
|
47
|
+
/>
|
|
15
48
|
</div>
|
|
16
49
|
)
|
|
17
50
|
}
|
|
18
51
|
|
|
19
|
-
export default IconCircleColor
|
|
52
|
+
export default IconCircleColor
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
3
|
-
import {IconCircle} from '../../'
|
|
2
|
+
import { IconCircle } from '../../'
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
const IconCircleDefault = () => {
|
|
6
5
|
return (
|
|
7
6
|
<div>
|
|
8
|
-
<IconCircle
|
|
7
|
+
<IconCircle
|
|
8
|
+
icon="rocket"
|
|
9
|
+
size="md"
|
|
10
|
+
/>
|
|
9
11
|
</div>
|
|
10
12
|
)
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
export default IconCircleDefault
|
|
15
|
+
export default IconCircleDefault
|
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import
|
|
3
|
-
import {IconCircle} from '../..'
|
|
2
|
+
import { IconCircle } from '../..'
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
const IconCircleSize = () => {
|
|
6
5
|
return (
|
|
7
6
|
<div>
|
|
8
|
-
<IconCircle
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
<IconCircle
|
|
8
|
+
icon="rocket"
|
|
9
|
+
size="sm"
|
|
10
|
+
/>
|
|
11
|
+
<br />
|
|
12
|
+
<IconCircle
|
|
13
|
+
icon="rocket"
|
|
14
|
+
size="md"
|
|
15
|
+
/>
|
|
16
|
+
<br />
|
|
17
|
+
<IconCircle
|
|
18
|
+
icon="rocket"
|
|
19
|
+
size="lg"
|
|
20
|
+
/>
|
|
21
|
+
<br />
|
|
22
|
+
<IconCircle
|
|
23
|
+
icon="rocket"
|
|
24
|
+
size="xl"
|
|
25
|
+
/>
|
|
12
26
|
</div>
|
|
13
27
|
)
|
|
14
28
|
}
|
|
15
29
|
|
|
16
|
-
export default IconCircleSize
|
|
30
|
+
export default IconCircleSize
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {default as IconCircleColor} from './_icon_circle_color.jsx'
|
|
2
|
-
export {default as IconCircleDefault} from './_icon_circle_default.jsx'
|
|
3
|
-
export {default as IconCircleSize} from './_icon_circle_size.jsx'
|
|
1
|
+
export { default as IconCircleColor } from './_icon_circle_color.jsx'
|
|
2
|
+
export { default as IconCircleDefault } from './_icon_circle_default.jsx'
|
|
3
|
+
export { default as IconCircleSize } from './_icon_circle_size.jsx'
|
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
import PropTypes from "prop-types";
|
|
1
|
+
/* @flow */
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import React from 'react'
|
|
4
|
+
import classnames from 'classnames'
|
|
5
|
+
import {
|
|
6
|
+
Body,
|
|
7
|
+
Icon,
|
|
8
|
+
} from '../'
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import {
|
|
11
|
+
buildAriaProps,
|
|
12
|
+
buildCss,
|
|
13
|
+
buildDataProps,
|
|
14
|
+
} from '../utilities/props'
|
|
15
|
+
|
|
16
|
+
type IconValueProps = {
|
|
17
|
+
align?: 'left' | 'center' | 'right',
|
|
18
|
+
aria?: object,
|
|
19
|
+
className?: string,
|
|
20
|
+
data?: object,
|
|
21
|
+
icon: string,
|
|
22
|
+
id?: number,
|
|
23
|
+
text: string,
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
IconValue
|
|
26
|
+
const IconValue = ({
|
|
27
|
+
align = 'left',
|
|
28
|
+
aria = {},
|
|
29
|
+
className,
|
|
30
|
+
data = {},
|
|
31
|
+
icon,
|
|
32
|
+
id,
|
|
33
|
+
text,
|
|
34
|
+
}: IconValueProps) => {
|
|
35
|
+
const ariaProps = buildAriaProps(aria)
|
|
36
|
+
const dataProps = buildDataProps(data)
|
|
37
|
+
const pbCss = buildCss('pb_icon_value_kit', align)
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<div
|
|
41
|
+
{...ariaProps}
|
|
42
|
+
{...dataProps}
|
|
43
|
+
className={classnames(className, pbCss)}
|
|
44
|
+
id={id}
|
|
45
|
+
>
|
|
46
|
+
<Body color="light">
|
|
47
|
+
<Icon
|
|
48
|
+
fixedWidth
|
|
49
|
+
icon={icon}
|
|
50
|
+
/>
|
|
51
|
+
{text}
|
|
52
|
+
</Body>
|
|
53
|
+
</div>
|
|
54
|
+
)
|
|
55
|
+
}
|
|
20
56
|
|
|
21
|
-
export default IconValue
|
|
57
|
+
export default IconValue
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {IconValue} from
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconValue } from '../../'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const IconValueDefault = () => {
|
|
5
5
|
return (
|
|
6
|
-
<
|
|
6
|
+
<div>
|
|
7
|
+
<IconValue
|
|
8
|
+
icon="clipboard"
|
|
9
|
+
text="33-123456"
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
<br />
|
|
13
|
+
|
|
14
|
+
<IconValue
|
|
15
|
+
icon="heart"
|
|
16
|
+
text="93"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<br />
|
|
20
|
+
|
|
21
|
+
<IconValue
|
|
22
|
+
icon="clock"
|
|
23
|
+
text="15min"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
7
26
|
)
|
|
8
27
|
}
|
|
9
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as IconValueDefault} from './_icon_value_default.jsx'
|
|
1
|
+
export { default as IconValueDefault } from './_icon_value_default.jsx'
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import PropTypes from "prop-types";
|
|
1
|
+
/* @flow */
|
|
3
2
|
|
|
3
|
+
import React from 'react'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
url:
|
|
7
|
-
alt
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const defaultProps = {
|
|
11
|
-
alt: '',
|
|
12
|
-
url: ''
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class Image extends Component {
|
|
17
|
-
render() {
|
|
18
|
-
const { alt, url } = this.props;
|
|
19
|
-
return (
|
|
20
|
-
<img
|
|
21
|
-
alt={alt}
|
|
22
|
-
className={"pb_image lazyload blur_up"}
|
|
23
|
-
data-src={url}
|
|
24
|
-
/>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
5
|
+
type ImageProps = {
|
|
6
|
+
url: string,
|
|
7
|
+
alt?: string,
|
|
27
8
|
}
|
|
28
9
|
|
|
29
|
-
Image
|
|
30
|
-
|
|
10
|
+
const Image = ({
|
|
11
|
+
alt = '',
|
|
12
|
+
url = '',
|
|
13
|
+
}: ImageProps) => (
|
|
14
|
+
<img
|
|
15
|
+
alt={alt}
|
|
16
|
+
className="pb_image lazyload blur_up"
|
|
17
|
+
data-src={url}
|
|
18
|
+
/>
|
|
19
|
+
)
|
|
31
20
|
|
|
32
|
-
export default Image
|
|
21
|
+
export default Image
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as DefaultImage} from './_default_image.jsx'
|
|
1
|
+
export { default as DefaultImage } from './_default_image.jsx'
|
|
@@ -11,7 +11,7 @@ type DateTimeType = {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export default class DateTime {
|
|
14
|
-
constructor({ value, zone='America/New_York' }: DateTimeType) {
|
|
14
|
+
constructor({ value, zone = 'America/New_York' }: DateTimeType) {
|
|
15
15
|
this.value = this.convertToTimestampZone(value, zone)
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,31 +19,31 @@ export default class DateTime {
|
|
|
19
19
|
return moment(value).tz(zone)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
convertToTimezone(
|
|
22
|
+
convertToTimezone() {
|
|
23
23
|
return this.value.strftime('%a')
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
toYear() {
|
|
27
|
-
return this.value.strftime(
|
|
27
|
+
return this.value.strftime('%Y')
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
toMonth() {
|
|
31
|
-
return this.value.strftime(
|
|
31
|
+
return this.value.strftime('%b')
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
toMonthFull() {
|
|
35
|
-
return this.value.strftime(
|
|
35
|
+
return this.value.strftime('%B')
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
toDay() {
|
|
39
|
-
return this.value.strftime(
|
|
39
|
+
return this.value.strftime('%e')
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
toWeekday() {
|
|
43
|
-
return this.value.strftime(
|
|
43
|
+
return this.value.strftime('%a')
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
toIso() {
|
|
47
|
-
return this.value.toISOString()
|
|
47
|
+
return this.value.toISOString()
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PropTypes from
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
3
|
|
|
4
4
|
const propTypes = {
|
|
5
5
|
className: PropTypes.string,
|
|
6
|
-
id: PropTypes.string
|
|
7
|
-
}
|
|
6
|
+
id: PropTypes.string,
|
|
7
|
+
}
|
|
8
8
|
|
|
9
9
|
class LabelPill extends React.Component {
|
|
10
10
|
render() {
|
|
11
11
|
return (
|
|
12
12
|
<div className="pb_label_pill">
|
|
13
|
-
<span>LABEL PILL CONTENT</span>
|
|
13
|
+
<span>{'LABEL PILL CONTENT'}</span>
|
|
14
14
|
</div>
|
|
15
15
|
)
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
LabelPill.propTypes = propTypes
|
|
19
|
+
LabelPill.propTypes = propTypes
|
|
20
20
|
|
|
21
|
-
export default LabelPill
|
|
21
|
+
export default LabelPill
|