playbook_ui 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,38 +1,38 @@
|
|
1
|
-
import React from
|
2
|
-
import { CircleIconButton } from
|
1
|
+
import React from 'react'
|
2
|
+
import { CircleIconButton } from '../../'
|
3
3
|
|
4
4
|
const CircleIconButtonDark = () => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
dark
|
8
|
+
icon="plus"
|
9
|
+
variant="primary"
|
10
10
|
/>
|
11
11
|
|
12
|
-
<br/>
|
12
|
+
<br />
|
13
13
|
|
14
14
|
<CircleIconButton
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
dark
|
16
|
+
icon="pen"
|
17
|
+
variant="secondary"
|
18
18
|
/>
|
19
19
|
|
20
|
-
<br/>
|
20
|
+
<br />
|
21
21
|
|
22
22
|
<CircleIconButton
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
dark
|
24
|
+
disabled
|
25
|
+
icon="times"
|
26
26
|
/>
|
27
27
|
|
28
|
-
<br/>
|
28
|
+
<br />
|
29
29
|
|
30
30
|
<CircleIconButton
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
dark
|
32
|
+
icon="user"
|
33
|
+
variant="link"
|
34
34
|
/>
|
35
35
|
</div>
|
36
|
-
)
|
36
|
+
)
|
37
37
|
|
38
|
-
export default CircleIconButtonDark
|
38
|
+
export default CircleIconButtonDark
|
@@ -1,34 +1,34 @@
|
|
1
|
-
import React from
|
2
|
-
import { CircleIconButton } from
|
1
|
+
import React from 'react'
|
2
|
+
import { CircleIconButton } from '../../'
|
3
3
|
|
4
4
|
const CircleIconButtonDefault = () => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
-
|
8
|
-
|
7
|
+
icon="plus"
|
8
|
+
variant="primary"
|
9
9
|
/>
|
10
10
|
|
11
|
-
<br/>
|
11
|
+
<br />
|
12
12
|
|
13
13
|
<CircleIconButton
|
14
|
-
|
15
|
-
|
14
|
+
icon="pen"
|
15
|
+
variant="secondary"
|
16
16
|
/>
|
17
17
|
|
18
|
-
<br/>
|
18
|
+
<br />
|
19
19
|
|
20
20
|
<CircleIconButton
|
21
|
-
|
22
|
-
|
21
|
+
disabled
|
22
|
+
icon="times"
|
23
23
|
/>
|
24
24
|
|
25
|
-
<br/>
|
25
|
+
<br />
|
26
26
|
|
27
27
|
<CircleIconButton
|
28
|
-
|
29
|
-
|
28
|
+
icon="user"
|
29
|
+
variant="link"
|
30
30
|
/>
|
31
31
|
</div>
|
32
|
-
)
|
32
|
+
)
|
33
33
|
|
34
|
-
export default CircleIconButtonDefault
|
34
|
+
export default CircleIconButtonDefault
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {default as CircleIconButtonDefault} from './_circle_icon_button_default.jsx'
|
2
|
-
export {default as CircleIconButtonDark} from './_circle_icon_button_dark.jsx'
|
1
|
+
export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
|
2
|
+
export { default as CircleIconButtonDark } from './_circle_icon_button_dark.jsx'
|
@@ -1,14 +1,30 @@
|
|
1
1
|
/* @flow */
|
2
|
-
/*eslint-disable react/no-multi-comp, flowtype/space-before-type-colon */
|
3
2
|
|
4
3
|
import React from 'react'
|
5
4
|
import classnames from 'classnames'
|
6
5
|
|
7
|
-
import {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
import { Body, Caption, Icon } from '../'
|
7
|
+
|
8
|
+
const contactTypeMap = {
|
9
|
+
'cell': 'mobile',
|
10
|
+
'home': 'phone',
|
11
|
+
'work': 'phone-office',
|
12
|
+
'email': 'envelope',
|
13
|
+
'wrong number': 'slash-phone',
|
14
|
+
}
|
15
|
+
|
16
|
+
const formatContact = (contactString, contactType) => {
|
17
|
+
if (contactType == 'email') {
|
18
|
+
return contactString
|
19
|
+
}
|
20
|
+
const cleaned = contactString.replace(/\D/g, '')
|
21
|
+
const phoneNumber = cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/)
|
22
|
+
if (phoneNumber) {
|
23
|
+
const intlCode = phoneNumber[1] ? '+1 ' : ''
|
24
|
+
return [intlCode, '(', phoneNumber[2], ') ', phoneNumber[3], '-', phoneNumber[4]].join('')
|
25
|
+
}
|
26
|
+
return null
|
27
|
+
}
|
12
28
|
|
13
29
|
type ContactProps = {
|
14
30
|
contactType?: 'cell' | 'home' | 'work' | 'email' | 'wrong number',
|
@@ -18,71 +34,34 @@ type ContactProps = {
|
|
18
34
|
contactDetail?: String,
|
19
35
|
}
|
20
36
|
|
21
|
-
const kitClasses = ({}: ContactProps) => {
|
22
|
-
let classname = 'pb_contact_kit'
|
23
|
-
return classname
|
24
|
-
}
|
25
|
-
|
26
37
|
const Contact = ({
|
27
38
|
contactType,
|
28
39
|
className,
|
29
|
-
dark=false,
|
40
|
+
dark = false,
|
30
41
|
contactValue,
|
31
|
-
contactDetail=
|
32
|
-
}: ContactProps) =>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
56
|
-
return null
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
const contactTypeIcon = (function(contactType) {
|
61
|
-
switch(contactType) {
|
62
|
-
case 'cell':
|
63
|
-
return 'mobile';
|
64
|
-
case 'home':
|
65
|
-
return 'phone';
|
66
|
-
case 'work':
|
67
|
-
return 'phone-office';
|
68
|
-
case 'email':
|
69
|
-
return 'envelope';
|
70
|
-
case 'wrong number' :
|
71
|
-
return 'slash-phone';
|
72
|
-
default:
|
73
|
-
return 'phone';
|
74
|
-
}
|
75
|
-
})(contactType)
|
76
|
-
|
77
|
-
|
78
|
-
return (
|
79
|
-
<div className={css}>
|
80
|
-
<Body dark={dark} color="light" tag="span" className="pb_contact_kit" >
|
81
|
-
<Icon icon={contactTypeIcon} fixedWidth="true" />
|
82
|
-
{` ${formatContact(contactValue, contactType)} `}{formatDetail(contactDetail)}
|
83
|
-
</Body>
|
84
|
-
</div>
|
85
|
-
)
|
86
|
-
}
|
42
|
+
contactDetail = '',
|
43
|
+
}: ContactProps) => (
|
44
|
+
<div className={classnames('pb_contact_kit', className)}>
|
45
|
+
<Body
|
46
|
+
className="pb_contact_kit"
|
47
|
+
color="light"
|
48
|
+
dark={dark}
|
49
|
+
tag="span"
|
50
|
+
>
|
51
|
+
<Icon
|
52
|
+
fixedWidth
|
53
|
+
icon={contactTypeMap[contactType] || 'phone'}
|
54
|
+
/>
|
55
|
+
{` ${formatContact(contactValue, contactType)} `}
|
56
|
+
<If condition={contactDetail}>
|
57
|
+
<Caption
|
58
|
+
size="xs"
|
59
|
+
tag="span"
|
60
|
+
text={contactDetail}
|
61
|
+
/>
|
62
|
+
</If>
|
63
|
+
</Body>
|
64
|
+
</div>
|
65
|
+
)
|
87
66
|
|
88
67
|
export default Contact
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import React from
|
2
|
-
import {Contact} from
|
1
|
+
import React from 'react'
|
2
|
+
import { Contact } from '../../'
|
3
3
|
|
4
|
-
|
4
|
+
const ContactDefault = () => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
-
|
9
|
-
|
8
|
+
contactType="cell"
|
9
|
+
contactValue="349-185-9988"
|
10
10
|
/>
|
11
11
|
<Contact
|
12
|
-
|
12
|
+
contactValue="5555555555"
|
13
13
|
/>
|
14
14
|
<Contact
|
15
|
-
|
16
|
-
|
15
|
+
contactType="email"
|
16
|
+
contactValue="email@example.com"
|
17
17
|
/>
|
18
18
|
<Contact
|
19
|
-
|
20
|
-
|
19
|
+
contactType="work"
|
20
|
+
contactValue="3245627482"
|
21
21
|
/>
|
22
22
|
</div>
|
23
23
|
)
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import React from
|
2
|
-
import {Contact} from
|
1
|
+
import React from 'react'
|
2
|
+
import { Contact } from '../../'
|
3
3
|
|
4
|
-
|
4
|
+
const ContactDefault = () => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
contactDetail="Cell"
|
9
|
+
contactType="cell"
|
10
|
+
contactValue="349-185-9988"
|
11
11
|
/>
|
12
12
|
<Contact
|
13
|
-
|
14
|
-
|
13
|
+
contactDetail="Home"
|
14
|
+
contactValue="5555555555"
|
15
15
|
/>
|
16
16
|
<Contact
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
contactDetail="Work"
|
18
|
+
contactType="work"
|
19
|
+
contactValue="3245627482"
|
20
20
|
/>
|
21
21
|
</div>
|
22
22
|
)
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {default as ContactDefault} from './_contact_default.jsx'
|
2
|
-
export {default as ContactWithDetail} from './_contact_with_detail.jsx'
|
1
|
+
export { default as ContactDefault } from './_contact_default.jsx'
|
2
|
+
export { default as ContactWithDetail } from './_contact_with_detail.jsx'
|
@@ -3,37 +3,23 @@
|
|
3
3
|
import React from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
|
6
|
-
import {
|
7
|
-
|
8
|
-
Caption,
|
9
|
-
Title,
|
10
|
-
} from '../'
|
6
|
+
import { Body, Caption, Title } from '../'
|
7
|
+
import { buildCss } from '../utilities/props'
|
11
8
|
|
12
9
|
type CurrencyProps = {
|
13
10
|
align?: 'left' | 'center' | 'right',
|
14
11
|
className: String,
|
15
|
-
currencySymbol:
|
12
|
+
currencySymbol: String,
|
16
13
|
label?: String,
|
17
14
|
separator?: '.' | ',',
|
18
15
|
size?: 'sm' | 'lg',
|
19
16
|
value?: String,
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
const kitCSS = ({align='left'}: CurrencyProps) => {
|
24
|
-
let css = 'pb_currency_kit'
|
25
|
-
css += `_${align}`
|
26
|
-
return css
|
27
|
-
}
|
28
|
-
|
29
|
-
const bodyCSS = ({}: CurrencyProps) => {
|
30
|
-
let css = ''
|
31
|
-
return css
|
17
|
+
units?: String,
|
32
18
|
}
|
33
19
|
|
34
20
|
const symbolCSS = (currencySymbol) => {
|
35
21
|
return classnames({
|
36
|
-
dollar_sign: currencySymbol === '$',
|
22
|
+
'dollar_sign': currencySymbol === '$',
|
37
23
|
})
|
38
24
|
}
|
39
25
|
|
@@ -42,31 +28,28 @@ const sizes = {
|
|
42
28
|
sm: 2,
|
43
29
|
}
|
44
30
|
|
45
|
-
const Currency = (
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<div className=
|
57
|
-
<
|
58
|
-
<
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</Title>
|
66
|
-
<Body className='unit'>{units}</Body>
|
67
|
-
</div>
|
31
|
+
const Currency = ({
|
32
|
+
align = 'left',
|
33
|
+
currencySymbol = '$',
|
34
|
+
label = '',
|
35
|
+
separator = '.',
|
36
|
+
size = 'sm',
|
37
|
+
units = '00',
|
38
|
+
value,
|
39
|
+
}: CurrencyProps) => (
|
40
|
+
<div className={buildCss('pb_currency_kit', align)}>
|
41
|
+
<Caption>{label}</Caption>
|
42
|
+
<div className="pb_currency_wrapper">
|
43
|
+
<Body className={symbolCSS(currencySymbol)}>{currencySymbol}</Body>
|
44
|
+
<Title
|
45
|
+
className="pb_currency_value"
|
46
|
+
size={sizes[size]}
|
47
|
+
>
|
48
|
+
{`${value}${separator}`}
|
49
|
+
</Title>
|
50
|
+
<Body className="unit">{units}</Body>
|
68
51
|
</div>
|
69
|
-
|
70
|
-
|
52
|
+
</div>
|
53
|
+
)
|
71
54
|
|
72
55
|
export default Currency
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import React from
|
2
|
-
import {Currency} from
|
1
|
+
import React from 'react'
|
2
|
+
import { Currency } from '../../'
|
3
3
|
|
4
|
-
|
4
|
+
const CurrencyDefault = () => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Currency
|
8
|
-
label=
|
9
|
-
value=
|
8
|
+
label="Caption"
|
9
|
+
value="2,000"
|
10
10
|
/>
|
11
11
|
<Currency
|
12
|
-
align=
|
13
|
-
label=
|
14
|
-
value=
|
12
|
+
align="center"
|
13
|
+
label="Caption"
|
14
|
+
value="2,000"
|
15
15
|
/>
|
16
16
|
<Currency
|
17
|
-
align=
|
18
|
-
label=
|
19
|
-
value=
|
17
|
+
align="right"
|
18
|
+
label="Caption"
|
19
|
+
value="2,000"
|
20
20
|
/>
|
21
21
|
</div>
|
22
22
|
)
|
23
23
|
}
|
24
24
|
|
25
|
-
export default CurrencyDefault
|
25
|
+
export default CurrencyDefault
|