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
|
@@ -4,21 +4,36 @@
|
|
|
4
4
|
|
|
5
5
|
$pb_pill_height: 25px;
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
$confirmation_toast_colors: (
|
|
9
|
+
neutral: $neutral,
|
|
10
|
+
success: $success,
|
|
11
|
+
error: $error,
|
|
12
|
+
tip: transparent,
|
|
13
|
+
);
|
|
14
|
+
|
|
7
15
|
[class^=pb_fixed_confirmation_toast_kit] {
|
|
8
16
|
display: inline-flex;
|
|
9
17
|
justify-content: center;
|
|
10
18
|
align-items: center;
|
|
11
19
|
padding: $space_xs $space-md;
|
|
12
|
-
border-radius: $
|
|
20
|
+
border-radius: $border_rad_mega;
|
|
21
|
+
box-shadow: $shadow_deeper;
|
|
13
22
|
|
|
14
|
-
@each $color_name, $color_value in $
|
|
23
|
+
@each $color_name, $color_value in $confirmation_toast_colors {
|
|
15
24
|
&[class*=_#{$color_name}] {
|
|
16
25
|
background: $color_value;
|
|
26
|
+
@if $color_name == "tip" {
|
|
27
|
+
@include gradient;
|
|
28
|
+
}
|
|
17
29
|
|
|
18
30
|
.pb_fixed_confirmation_toast_text {
|
|
19
31
|
color: $white;
|
|
20
32
|
margin: 0 $space_md 0 $space_md;
|
|
33
|
+
text-align: center;
|
|
34
|
+
white-space: pre;
|
|
21
35
|
}
|
|
36
|
+
|
|
22
37
|
.pb_icon {
|
|
23
38
|
color: $white;
|
|
24
39
|
}
|
data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx
CHANGED
|
@@ -1,26 +1,37 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {FixedConfirmationToast} from
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { FixedConfirmationToast } from '../../'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const FixedConfirmationToastDefault = () => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
7
|
<div>
|
|
8
|
-
<FixedConfirmationToast
|
|
8
|
+
<FixedConfirmationToast
|
|
9
|
+
status="error"
|
|
10
|
+
text="Error Message"
|
|
11
|
+
/>
|
|
9
12
|
</div>
|
|
10
13
|
|
|
11
|
-
<br
|
|
14
|
+
<br />
|
|
15
|
+
<br />
|
|
12
16
|
|
|
13
17
|
<div>
|
|
14
|
-
<FixedConfirmationToast
|
|
18
|
+
<FixedConfirmationToast
|
|
19
|
+
status="success"
|
|
20
|
+
text="Items Successfully Moved"
|
|
21
|
+
/>
|
|
15
22
|
</div>
|
|
16
23
|
|
|
17
|
-
<br
|
|
24
|
+
<br />
|
|
25
|
+
<br />
|
|
18
26
|
|
|
19
27
|
<div>
|
|
20
|
-
<FixedConfirmationToast
|
|
28
|
+
<FixedConfirmationToast
|
|
29
|
+
status="neutral"
|
|
30
|
+
text="Scan to Assign Selected Items"
|
|
31
|
+
/>
|
|
21
32
|
</div>
|
|
22
33
|
</div>
|
|
23
34
|
)
|
|
24
35
|
}
|
|
25
36
|
|
|
26
|
-
export default FixedConfirmationToastDefault
|
|
37
|
+
export default FixedConfirmationToastDefault
|
data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { FixedConfirmationToast } from '../../'
|
|
3
|
+
|
|
4
|
+
const FixedConfirmationToastMultiLine = () => {
|
|
5
|
+
return (
|
|
6
|
+
<div>
|
|
7
|
+
<FixedConfirmationToast
|
|
8
|
+
status="tip"
|
|
9
|
+
text={'Scan to Assign Selected Items.\n Click X to close at any time'}
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default FixedConfirmationToastMultiLine
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {default as FixedConfirmationToastDefault} from './_fixed_confirmation_toast_default.jsx'
|
|
1
|
+
export { default as FixedConfirmationToastDefault } from './_fixed_confirmation_toast_default.jsx'
|
|
2
|
+
export { default as FixedConfirmationToastMultiLine } from './_fixed_confirmation_toast_multi_line.jsx'
|
|
@@ -8,7 +8,7 @@ module Playbook
|
|
|
8
8
|
partial "pb_fixed_confirmation_toast/fixed_confirmation_toast"
|
|
9
9
|
|
|
10
10
|
prop :status, type: Playbook::Props::Enum,
|
|
11
|
-
values: %w[success error neutral],
|
|
11
|
+
values: %w[success error neutral tip],
|
|
12
12
|
default: "neutral"
|
|
13
13
|
prop :text, type: Playbook::Props::String
|
|
14
14
|
|
|
@@ -24,6 +24,8 @@ module Playbook
|
|
|
24
24
|
"exclamation-triangle"
|
|
25
25
|
when "neutral"
|
|
26
26
|
"info-circle"
|
|
27
|
+
when "tip"
|
|
28
|
+
"info-circle"
|
|
27
29
|
end
|
|
28
30
|
end
|
|
29
31
|
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
<%
|
|
2
|
+
example_collection = [
|
|
3
|
+
OpenStruct.new(name: "Alabama", value: 1),
|
|
4
|
+
OpenStruct.new(name: "Alaska", value: 2),
|
|
5
|
+
OpenStruct.new(name: "Arizona", value: 3),
|
|
6
|
+
OpenStruct.new(name: "Arkansas", value: 4),
|
|
7
|
+
OpenStruct.new(name: "California", value: 5),
|
|
8
|
+
OpenStruct.new(name: "Colorado", value: 6),
|
|
9
|
+
OpenStruct.new(name: "Connecticut", value: 7),
|
|
10
|
+
OpenStruct.new(name: "Delaware", value: 8),
|
|
11
|
+
OpenStruct.new(name: "Florida", value: 9),
|
|
12
|
+
OpenStruct.new(name: "Georgia", value: 10),
|
|
13
|
+
]
|
|
14
|
+
%>
|
|
15
|
+
|
|
1
16
|
<%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
|
|
2
17
|
<%= form.text_field :example_text_field, props: { label: true } %>
|
|
3
18
|
<%= form.telephone_field :example_phone_field, props: { label: true } %>
|
|
@@ -7,6 +22,8 @@
|
|
|
7
22
|
<%= form.password_field :example_password_field, props: { label: true } %>
|
|
8
23
|
<%= form.url_field :example_url_field, props: { label: true } %>
|
|
9
24
|
<%= form.text_area :example_text_area, props: { label: true } %>
|
|
25
|
+
<%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
|
|
26
|
+
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
|
10
27
|
|
|
11
28
|
<%= form.actions do |action| %>
|
|
12
29
|
<%= action.submit %>
|
|
@@ -5,21 +5,38 @@
|
|
|
5
5
|
example_form_model = Class.new do
|
|
6
6
|
include ::ActiveModel::Model
|
|
7
7
|
attr_accessor :example_text_field,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
:example_phone_field,
|
|
9
|
+
:example_email_field,
|
|
10
|
+
:example_number_field,
|
|
11
|
+
:example_search_field,
|
|
12
|
+
:example_password_field,
|
|
13
|
+
:example_url_field,
|
|
14
|
+
:example_text_area,
|
|
15
|
+
:example_select_field,
|
|
16
|
+
:example_collection_select_field
|
|
15
17
|
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
def self.model_name
|
|
20
|
+
ActiveModel::Name.new(self, nil, "ExampleFormModel")
|
|
21
|
+
end
|
|
20
22
|
end
|
|
21
23
|
%>
|
|
22
24
|
|
|
25
|
+
<%
|
|
26
|
+
example_collection = [
|
|
27
|
+
OpenStruct.new(name: "Alabama", value: 1),
|
|
28
|
+
OpenStruct.new(name: "Alaska", value: 2),
|
|
29
|
+
OpenStruct.new(name: "Arizona", value: 3),
|
|
30
|
+
OpenStruct.new(name: "Arkansas", value: 4),
|
|
31
|
+
OpenStruct.new(name: "California", value: 5),
|
|
32
|
+
OpenStruct.new(name: "Colorado", value: 6),
|
|
33
|
+
OpenStruct.new(name: "Connecticut", value: 7),
|
|
34
|
+
OpenStruct.new(name: "Delaware", value: 8),
|
|
35
|
+
OpenStruct.new(name: "Florida", value: 9),
|
|
36
|
+
OpenStruct.new(name: "Georgia", value: 10),
|
|
37
|
+
]
|
|
38
|
+
%>
|
|
39
|
+
|
|
23
40
|
|
|
24
41
|
<%= pb_rails("form", props: { form_system: "simple_form", form_system_options: [example_form_model.new, url: "", method: :get] }) do |form| %>
|
|
25
42
|
<%= form.input :example_text_field, as: :string %>
|
|
@@ -30,6 +47,8 @@
|
|
|
30
47
|
<%= form.input :example_password_field, as: :password %>
|
|
31
48
|
<%= form.input :example_url_field, as: :url %>
|
|
32
49
|
<%= form.input :example_text_area, as: :text %>
|
|
50
|
+
<%= form.select :example_select_field, [["Yes", 1], ["No", 2]], props: { label: true } %>
|
|
51
|
+
<%= form.collection_select :example_collection_select_field, example_collection, :value, :name, props: { label: true } %>
|
|
33
52
|
|
|
34
53
|
<%= form.actions do |action| %>
|
|
35
54
|
<%= action.submit %>
|
|
@@ -14,6 +14,8 @@ module Playbook
|
|
|
14
14
|
prepend(FormFieldBuilder.new(:password_field, kit_name: "text_input"))
|
|
15
15
|
prepend(FormFieldBuilder.new(:url_field, kit_name: "text_input"))
|
|
16
16
|
prepend(FormFieldBuilder.new(:text_area, kit_name: "textarea"))
|
|
17
|
+
prepend(SelectField)
|
|
18
|
+
prepend(CollectionSelectField)
|
|
17
19
|
|
|
18
20
|
def actions(&block)
|
|
19
21
|
ActionArea.new(self).wrapper(&block)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Playbook
|
|
4
|
+
module PbForm
|
|
5
|
+
module FormBuilder
|
|
6
|
+
module CollectionSelectField
|
|
7
|
+
def collection_select(name, collection, value_method, text_method, options = {}, html_options = {}, props: {} )
|
|
8
|
+
props[:label] = @template.label(@object_name, name) if props[:label] == true
|
|
9
|
+
options[:skip_default_ids] = false unless options.has_key?(:skip_default_ids)
|
|
10
|
+
input = super(name, collection, value_method, text_method, options, html_options)
|
|
11
|
+
|
|
12
|
+
@template.pb_rails("select", props: props) do
|
|
13
|
+
input
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Playbook
|
|
4
|
+
module PbForm
|
|
5
|
+
module FormBuilder
|
|
6
|
+
module SelectField
|
|
7
|
+
def select(name, choices = nil, options = {}, html_options = {}, props: {}, &block)
|
|
8
|
+
props[:label] = @template.label(@object_name, name) if props[:label] == true
|
|
9
|
+
options[:skip_default_ids] = false unless options.has_key?(:skip_default_ids)
|
|
10
|
+
input = super(name, choices, options, html_options, &block)
|
|
11
|
+
|
|
12
|
+
@template.pb_rails("select", props: props) do
|
|
13
|
+
input
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
/* eslint-disable react/no-multi-comp, flowtype/space-before-type-colon */
|
|
3
3
|
|
|
4
4
|
import React from 'react'
|
|
5
|
-
import
|
|
5
|
+
import classnames from 'classnames'
|
|
6
|
+
|
|
7
|
+
import { Badge } from '../'
|
|
8
|
+
import { buildCss } from '../utilities/props'
|
|
6
9
|
|
|
7
10
|
type HashtagProps = {
|
|
8
11
|
className?: String,
|
|
@@ -14,30 +17,28 @@ type HashtagProps = {
|
|
|
14
17
|
url?: String,
|
|
15
18
|
}
|
|
16
19
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
const typeMap = {
|
|
21
|
+
'home': 'H#',
|
|
22
|
+
'project': 'P#',
|
|
23
|
+
'default': '#',
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
const Hashtag = ({
|
|
24
27
|
className,
|
|
25
|
-
data,
|
|
26
28
|
dark = false,
|
|
27
|
-
id,
|
|
28
29
|
text,
|
|
29
30
|
type,
|
|
30
|
-
url
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
url,
|
|
32
|
+
}: HashtagProps) => (
|
|
33
|
+
<span className={classnames(className, buildCss('pb_hashtag_kit', { 'dark': dark }))}>
|
|
34
|
+
<a href={url}>
|
|
35
|
+
<Badge
|
|
36
|
+
dark={dark}
|
|
37
|
+
text={typeMap[type] + text}
|
|
38
|
+
variant="primary"
|
|
39
|
+
/>
|
|
40
|
+
</a>
|
|
41
|
+
</span>
|
|
42
|
+
)
|
|
42
43
|
|
|
43
44
|
export default Hashtag
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {Hashtag} from
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Hashtag } from '../../'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const HashtagDark = () => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
7
|
<Hashtag
|
|
@@ -10,14 +10,14 @@ function HashtagDark() {
|
|
|
10
10
|
type="project"
|
|
11
11
|
url="https://google.com"
|
|
12
12
|
/>
|
|
13
|
-
<br/>
|
|
13
|
+
<br />
|
|
14
14
|
<Hashtag
|
|
15
15
|
dark
|
|
16
16
|
text="123456"
|
|
17
17
|
type="home"
|
|
18
18
|
url="https://google.com"
|
|
19
19
|
/>
|
|
20
|
-
<br/>
|
|
20
|
+
<br />
|
|
21
21
|
<Hashtag
|
|
22
22
|
dark
|
|
23
23
|
text="654321"
|
|
@@ -28,4 +28,4 @@ function HashtagDark() {
|
|
|
28
28
|
)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export default HashtagDark
|
|
31
|
+
export default HashtagDark
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {Hashtag} from
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Hashtag } from '../../'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const HashtagDefault = () => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
7
|
<Hashtag
|
|
@@ -9,13 +9,13 @@ function HashtagDefault() {
|
|
|
9
9
|
type="project"
|
|
10
10
|
url="https://google.com"
|
|
11
11
|
/>
|
|
12
|
-
<br/>
|
|
12
|
+
<br />
|
|
13
13
|
<Hashtag
|
|
14
14
|
text="123456"
|
|
15
15
|
type="home"
|
|
16
16
|
url="https://google.com"
|
|
17
17
|
/>
|
|
18
|
-
<br/>
|
|
18
|
+
<br />
|
|
19
19
|
<Hashtag
|
|
20
20
|
text="654321"
|
|
21
21
|
type="default"
|
|
@@ -25,4 +25,4 @@ function HashtagDefault() {
|
|
|
25
25
|
)
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export default HashtagDefault
|
|
28
|
+
export default HashtagDefault
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {default as HashtagDefault} from './_hashtag_default.jsx'
|
|
2
|
-
export {default as HashtagDark} from './_hashtag_dark.jsx'
|
|
1
|
+
export { default as HashtagDefault } from './_hashtag_default.jsx'
|
|
2
|
+
export { default as HashtagDark } from './_hashtag_dark.jsx'
|
|
@@ -1,23 +1,10 @@
|
|
|
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
|
-
import { titleize } from '../utilities/text.js'
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
Body,
|
|
11
|
-
Title,
|
|
12
|
-
} from '../'
|
|
13
|
-
|
|
14
|
-
const dot = (houseStyle) =>
|
|
15
|
-
{ if (houseStyle !== undefined) {
|
|
16
|
-
return "\u00b7"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const titleizeAddessCont = (addressCont) => addressCont ? titleize(addressCont) : null;
|
|
20
5
|
|
|
6
|
+
import { joinPresent, titleize } from '../utilities/text'
|
|
7
|
+
import { Body, Hashtag, Title } from '../'
|
|
21
8
|
|
|
22
9
|
type HomeAddressStreetProps = {
|
|
23
10
|
address: String,
|
|
@@ -39,13 +26,12 @@ const classes = (className, dark) => (
|
|
|
39
26
|
})
|
|
40
27
|
)
|
|
41
28
|
|
|
42
|
-
|
|
43
29
|
const HomeAddressStreet = ({
|
|
44
30
|
address,
|
|
45
31
|
addressCont,
|
|
46
32
|
city,
|
|
47
33
|
className,
|
|
48
|
-
dark=false,
|
|
34
|
+
dark = false,
|
|
49
35
|
homeId,
|
|
50
36
|
houseStyle,
|
|
51
37
|
state,
|
|
@@ -55,26 +41,31 @@ const HomeAddressStreet = ({
|
|
|
55
41
|
<div className={classes(className, dark)}>
|
|
56
42
|
<Title
|
|
57
43
|
className="pb_home_address_street_address"
|
|
44
|
+
dark={dark}
|
|
58
45
|
size={4}
|
|
59
46
|
>
|
|
60
|
-
{titleize(address)
|
|
47
|
+
{joinPresent([titleize(address), houseStyle], ' · ')}
|
|
61
48
|
</Title>
|
|
62
49
|
|
|
63
50
|
<Title
|
|
64
51
|
className="pb_home_address_street_address"
|
|
52
|
+
dark={dark}
|
|
65
53
|
size={4}
|
|
66
54
|
>
|
|
67
|
-
{
|
|
55
|
+
{titleize(addressCont)}
|
|
68
56
|
</Title>
|
|
69
57
|
<Body color="light">
|
|
70
|
-
{titleize(city)}, {state} {zipcode}
|
|
71
|
-
</Body>
|
|
72
|
-
<Body
|
|
73
|
-
className="home-hashtag"
|
|
74
|
-
tag="span"
|
|
75
|
-
>
|
|
76
|
-
H#{homeId}
|
|
58
|
+
{`${titleize(city)}, ${state} ${zipcode}`}
|
|
77
59
|
</Body>
|
|
60
|
+
<If condition={homeId}>
|
|
61
|
+
<Hashtag
|
|
62
|
+
classname="home-hashtag"
|
|
63
|
+
dark={dark}
|
|
64
|
+
text={homeId}
|
|
65
|
+
type="home"
|
|
66
|
+
url="#"
|
|
67
|
+
/>
|
|
68
|
+
</If>
|
|
78
69
|
<Body
|
|
79
70
|
color="light"
|
|
80
71
|
tag="span"
|