playbook_ui 7.0.0.pre.alpha10 → 7.0.0.pre.alpha11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/app/controllers/playbook/application_controller.rb +2 -0
- data/app/helpers/playbook/application_helper.rb +19 -0
- data/app/helpers/playbook/pb_kit_helper.rb +18 -3
- data/app/pb_kits/playbook/config/_kit_example.html.erb +3 -3
- data/app/pb_kits/playbook/config/_kit_ui.html.erb +2 -1
- data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +10 -12
- data/app/pb_kits/playbook/index.js +1 -0
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +13 -4
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +6 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +3 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +1 -9
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +4 -2
- data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +19 -1
- data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +4 -1
- data/app/pb_kits/playbook/pb_badge/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_badge/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +2 -2
- data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +6 -1
- data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -4
- data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +5 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +6 -2
- data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +4 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +4 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +5 -1
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +7 -2
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -6
- data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_card/_card.scss +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx +7 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +3 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +39 -13
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +13 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +2 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +37 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +8 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +13 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +25 -5
- data/app/pb_kits/playbook/pb_card/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_card/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +5 -2
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +3 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +5 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +10 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +130 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +39 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +29 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +28 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +117 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +53 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +30 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +45 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +30 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +45 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +11 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +9 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +2 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +3 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +5 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +5 -1
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +5 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -1
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +4 -1
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +34 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +3 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +5 -1
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +5 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +9 -1
- data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +7 -2
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +3 -2
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_hashtag/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +3 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +2 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +5 -1
- data/app/pb_kits/playbook/pb_image/_image.jsx +5 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +5 -1
- data/app/pb_kits/playbook/pb_label_value/docs/example.yml +1 -7
- data/app/pb_kits/playbook/pb_label_value/docs/index.js +0 -4
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
- data/app/pb_kits/playbook/pb_legend/docs/example.yml +1 -5
- data/app/pb_kits/playbook/pb_legend/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_list/_list.jsx +3 -2
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +3 -2
- data/app/pb_kits/playbook/pb_list/docs/example.yml +1 -11
- data/app/pb_kits/playbook/pb_list/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +5 -1
- data/app/pb_kits/playbook/pb_message/_message.jsx +5 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +5 -2
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +24 -0
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +28 -0
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +13 -4
- data/app/pb_kits/playbook/pb_online_status/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_person/_person.jsx +5 -1
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +5 -1
- data/app/pb_kits/playbook/pb_pill/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_pill/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_progress_step/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +9 -0
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -3
- data/app/pb_kits/playbook/pb_radio/radio.rb +2 -4
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_select/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_selectable_card/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
- data/app/pb_kits/playbook/pb_table/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_textarea/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_time/_time.jsx +2 -2
- data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +4 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.html.erb +2 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +1 -5
- data/app/pb_kits/playbook/pb_time/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_time/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_time/time.rb +1 -1
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_time_range_inline/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_time_range_inline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
- data/app/pb_kits/playbook/pb_time_stacked/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_time_stacked/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +5 -1
- data/app/pb_kits/playbook/pb_title/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +5 -1
- data/app/pb_kits/playbook/pb_title_count/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_title_count/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +1 -1
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +41 -43
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_toggle/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +1 -1
- data/app/pb_kits/playbook/pb_user/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_user/docs/index.js +0 -3
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +5 -2
- data/app/pb_kits/playbook/pb_user_badge/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_user_badge/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/index.js +0 -1
- data/app/pb_kits/playbook/plugins/pb_chart.js +1 -1
- data/app/pb_kits/playbook/tokens/_colors.scss +1 -1
- data/lib/generators/kit/kit_generator.rb +1 -1
- data/lib/generators/kit/templates/kit_jsx.erb.tt +1 -1
- data/lib/playbook/version.rb +1 -2
- data/lib/tasks/pb_release.rake +6 -2
- metadata +17 -121
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +0 -17
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +0 -21
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +0 -14
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +0 -15
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +0 -16
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +0 -31
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +0 -33
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +0 -12
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.html.erb +0 -124
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +0 -160
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.html.erb +0 -28
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +0 -35
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.html.erb +0 -22
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +0 -31
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.html.erb +0 -3
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +0 -25
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.jsx +0 -12
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +0 -17
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.html.erb +0 -7
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.jsx +0 -18
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +0 -29
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +0 -38
- data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +0 -23
- data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +0 -32
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.html.erb +0 -13
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +0 -41
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.html.erb +0 -12
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +0 -20
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_dark.html.erb +0 -24
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_dark.jsx +0 -35
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.html.erb +0 -43
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_dark.jsx +0 -54
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.html.erb +0 -80
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_dark.jsx +0 -101
- data/app/pb_kits/playbook/pb_legend/docs/_legend_dark.html.erb +0 -5
- data/app/pb_kits/playbook/pb_legend/docs/_legend_dark.jsx +0 -21
- data/app/pb_kits/playbook/pb_legend/docs/_legend_dark_prefix.html.erb +0 -1
- data/app/pb_kits/playbook/pb_legend/docs/_legend_dark_prefix.jsx +0 -15
- data/app/pb_kits/playbook/pb_list/docs/_list_dark.html.erb +0 -7
- data/app/pb_kits/playbook/pb_list/docs/_list_dark.jsx +0 -19
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.html.erb +0 -7
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.jsx +0 -22
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.html.erb +0 -7
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.jsx +0 -22
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.html.erb +0 -7
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.jsx +0 -22
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.html.erb +0 -7
- data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.jsx +0 -22
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.html.erb +0 -13
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_dark.jsx +0 -20
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.html.erb +0 -41
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_dark.jsx +0 -52
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.html.erb +0 -53
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_dark.jsx +0 -62
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +0 -28
- data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.html.erb +0 -52
- data/app/pb_kits/playbook/pb_pill/docs/_pill_dark.jsx +0 -69
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_dark.jsx +0 -20
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_status_dark.jsx +0 -19
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.html.erb +0 -34
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_dark.jsx +0 -18
- data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.html.erb +0 -25
- data/app/pb_kits/playbook/pb_radio/docs/_radio_dark.jsx +0 -33
- data/app/pb_kits/playbook/pb_radio/docs/_radio_dark_error.html.erb +0 -7
- data/app/pb_kits/playbook/pb_radio/docs/_radio_dark_error.jsx +0 -17
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dark.html.erb +0 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dark.jsx +0 -14
- data/app/pb_kits/playbook/pb_select/docs/_select_dark.html.erb +0 -24
- data/app/pb_kits/playbook/pb_select/docs/_select_dark.jsx +0 -33
- data/app/pb_kits/playbook/pb_select/docs/_select_dark_error.html.erb +0 -25
- data/app/pb_kits/playbook/pb_select/docs/_select_dark_error.jsx +0 -39
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.html.erb +0 -45
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.jsx +0 -72
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.html.erb +0 -30
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_dark.jsx +0 -40
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.html.erb +0 -26
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_dark.jsx +0 -43
- data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_container_dark.jsx +0 -47
- data/app/pb_kits/playbook/pb_table/docs/_table_dark.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_dark.jsx +0 -46
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.html.erb +0 -5
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark.jsx +0 -78
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark_error.html.erb +0 -14
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_dark_error.jsx +0 -18
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +0 -34
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.html.erb +0 -6
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark_error.jsx +0 -19
- data/app/pb_kits/playbook/pb_time/docs/_time_dark.html.erb +0 -70
- data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +0 -21
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_dark.html.erb +0 -72
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_dark.jsx +0 -81
- data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_dark.html.erb +0 -1
- data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_dark.jsx +0 -15
- data/app/pb_kits/playbook/pb_title/docs/_title_dark.html.erb +0 -8
- data/app/pb_kits/playbook/pb_title/docs/_title_dark.jsx +0 -35
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.html.erb +0 -23
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align_dark.jsx +0 -34
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.html.erb +0 -23
- data/app/pb_kits/playbook/pb_title_count/docs/_title_count_dark.jsx +0 -34
- data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.html.erb +0 -19
- data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_dark.jsx +0 -29
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +0 -11
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +0 -44
- data/app/pb_kits/playbook/pb_user/docs/_user_dark.html.erb +0 -42
- data/app/pb_kits/playbook/pb_user/docs/_user_dark.jsx +0 -55
- data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.html.erb +0 -19
- data/app/pb_kits/playbook/pb_user/docs/_user_text_only_dark.jsx +0 -26
- data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.html.erb +0 -13
- data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_dark.jsx +0 -27
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_dark.html.erb +0 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_dark.jsx +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23c8fdddf3856d91cd2669f81dfeb607eb5cdd8eb78036ee8d25f369789cd86
|
4
|
+
data.tar.gz: 644b79c7f3e469781e44390f426f889919ac950aa21cf441d477bd2302d1898c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73a27538028125d8e714c9c7e61536a190f9dbcf84178b405d7b47d44d20f3656b6cf5f0024fcc6b13794293f4704883bccd6f34838d814780f9449929ffa99d
|
7
|
+
data.tar.gz: d2058ae5504a9ce734f94fccd9ae69096dbb1683f4096e4db14416aa7bfb207c9700002d748d4f8ffba72492e35e280e5787cbe7f04f0c92a027c2b69f8b28e7
|
data/README.md
CHANGED
@@ -9,8 +9,7 @@ Playbook is the first design system built for both Rails & React interfaces. Ins
|
|
9
9
|
|
10
10
|
## Getting started
|
11
11
|
|
12
|
-
1. Run `make
|
13
|
-
1. Run `make start`
|
12
|
+
1. Run `make it`
|
14
13
|
1. Install overcommit hooks `bin/overcommit`
|
15
14
|
1. open [http://localhost:8089](http://localhost:8089)
|
16
15
|
|
@@ -13,5 +13,24 @@ module Playbook
|
|
13
13
|
def current_webpacker_instance
|
14
14
|
Playbook.webpacker
|
15
15
|
end
|
16
|
+
|
17
|
+
def dark_mode
|
18
|
+
if cookies[:dark_mode] == "true"
|
19
|
+
true
|
20
|
+
else
|
21
|
+
false
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def dark_mode_props(props)
|
26
|
+
if cookies[:dark_mode] == "true"
|
27
|
+
props.merge(dark: dark_mode)
|
28
|
+
elsif cookies[:dark_mode] == "false"
|
29
|
+
props.merge(dark: dark_mode)
|
30
|
+
else
|
31
|
+
props
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
16
35
|
end
|
17
36
|
end
|
@@ -6,21 +6,36 @@ require "webpacker/react/component"
|
|
6
6
|
|
7
7
|
module Playbook
|
8
8
|
module PbKitHelper
|
9
|
+
|
9
10
|
def pb_rails(kit, props: {}, &block)
|
10
11
|
previous = prefix_partial_path_with_controller_namespace
|
11
12
|
self.prefix_partial_path_with_controller_namespace = false
|
12
|
-
kit = build_view_model(kit.to_s, props, &block)
|
13
|
+
kit = build_view_model(kit.to_s, rails_props(props), &block)
|
13
14
|
render(partial: kit, as: :object)
|
14
15
|
ensure
|
15
16
|
self.prefix_partial_path_with_controller_namespace = previous
|
16
17
|
end
|
17
18
|
|
18
|
-
|
19
|
-
def pb_react(kit, props: {}, options: {})
|
19
|
+
def pb_react(kit, props:{dark: react_props}, options: {})
|
20
20
|
::Webpacker::React::Component.new(kit.camelize).render(props, options)
|
21
21
|
end
|
22
22
|
|
23
23
|
private
|
24
|
+
def rails_props(props)
|
25
|
+
if @playbook.nil?
|
26
|
+
props
|
27
|
+
else
|
28
|
+
dark_mode_props(props)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def react_props
|
33
|
+
if @playbook.nil?
|
34
|
+
false
|
35
|
+
else
|
36
|
+
dark_mode
|
37
|
+
end
|
38
|
+
end
|
24
39
|
|
25
40
|
def is_subkit?(kit)
|
26
41
|
kit.match(%r{[/\\]})
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<%if !@kit_examples[:examples].nil? %>
|
2
2
|
<% @kit_examples[:examples].each do |kit_example| %>
|
3
3
|
<% kit_example.each do |key, item| %>
|
4
|
-
|
4
|
+
<%=pb_rails("card", props:{classname: "pb--doc", padding:"none"})do%>
|
5
5
|
<%= render partial: "config/kit_ui", locals: { key: key, type: @type, item: item, show_code: @show_code } %>
|
6
|
-
|
6
|
+
<% end %>
|
7
7
|
<% end %>
|
8
8
|
<% end %>
|
9
|
-
<% end %>
|
9
|
+
<% end %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<% if @show_code%>
|
22
|
-
<div class="markdown pb--kit-example-markdown">
|
22
|
+
<div class="markdown pb--kit-example-markdown <%= cookies[:dark_mode] == "true" ? "dark" : "" %>">
|
23
23
|
<%= markdown(get_per_sample_descriptions(@kit_examples[:kit], key)) %>
|
24
24
|
</div>
|
25
25
|
<div class="pb--codeControls">
|
@@ -30,6 +30,7 @@
|
|
30
30
|
</ul>
|
31
31
|
</div>
|
32
32
|
<div class="pb--codeCopy" data-action="toggle" data-togglable="code_example" style="display: none" >
|
33
|
+
<%= pb_rails("section_separator")%>
|
33
34
|
<a href="#" data-toggle="false" class="pb--close-toggle">Close</a>
|
34
35
|
<% if type == "rails" %>
|
35
36
|
<pre class="highlight"><%= raw rouge(contents, "erb") %></pre>
|
@@ -1,18 +1,16 @@
|
|
1
1
|
<% if defined?(@kit_api) && @kit_api.present? %>
|
2
|
+
|
2
3
|
<div data-action="toggle" data-togglable="prop_example" class="pb--propsTable">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<th>Available Props</th>
|
7
|
-
</tr>
|
8
|
-
</thead>
|
9
|
-
<tbody>
|
4
|
+
<%= pb_rails("title", props:{text: "Available Props", size:3, margin_bottom:"sm"}) %>
|
5
|
+
<%= pb_rails("card",props:{padding:"none"})do%>
|
6
|
+
<%= pb_rails("list",props: {xpadding:true})do%>
|
10
7
|
<% @kit_api.each_with_index do |(key,value),index| %>
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
<%= pb_rails("list/item") do %>
|
9
|
+
<%= key %>
|
10
|
+
<% end %>
|
14
11
|
<% end %>
|
15
|
-
|
16
|
-
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
17
14
|
</div>
|
15
|
+
|
18
16
|
<% end %>
|
@@ -13,6 +13,7 @@ export ButtonToolbar from './pb_button_toolbar/_button_toolbar.jsx'
|
|
13
13
|
export Caption from './pb_caption/_caption.jsx'
|
14
14
|
export Card from './pb_card/_card.jsx'
|
15
15
|
export Checkbox from './pb_checkbox/_checkbox.jsx'
|
16
|
+
export CircleChart from './pb_circle_chart/_circle_chart.jsx'
|
16
17
|
export CircleIconButton from './pb_circle_icon_button/_circle_icon_button.jsx'
|
17
18
|
export Contact from './pb_contact/_contact.jsx'
|
18
19
|
export Currency from './pb_currency/_currency.jsx'
|
@@ -7,12 +7,13 @@ import { map } from 'lodash'
|
|
7
7
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
8
8
|
import { globalProps } from '../utilities/globalProps.js'
|
9
9
|
|
10
|
-
import { Image } from '../'
|
10
|
+
import { Image, OnlineStatus } from '../'
|
11
11
|
|
12
12
|
type AvatarProps = {
|
13
13
|
aria?: object,
|
14
14
|
className?: string,
|
15
15
|
data?: object,
|
16
|
+
dark?: boolean,
|
16
17
|
id?: string,
|
17
18
|
imageUrl: string,
|
18
19
|
name: string,
|
@@ -26,10 +27,14 @@ const firstTwoInitials = (name) =>
|
|
26
27
|
.substring(0, 2)
|
27
28
|
|
28
29
|
const Avatar = (props: AvatarProps) => {
|
29
|
-
const { aria = {}, className, data = {}, name = null, id = id, imageUrl, size = 'md', status = null } = props
|
30
|
+
const { aria = {}, className, data = {}, name = null, id = id, imageUrl, size = 'md', status = null, dark = false } = props
|
30
31
|
const dataProps = buildDataProps(data)
|
31
32
|
const ariaProps = buildAriaProps(aria)
|
32
|
-
const classes = classnames(
|
33
|
+
const classes = classnames(
|
34
|
+
buildCss('pb_avatar_kit', size),
|
35
|
+
globalProps(props),
|
36
|
+
className
|
37
|
+
)
|
33
38
|
|
34
39
|
const initials = name && firstTwoInitials(name)
|
35
40
|
dataProps['data-initials'] = initials
|
@@ -53,7 +58,11 @@ const Avatar = (props: AvatarProps) => {
|
|
53
58
|
</If>
|
54
59
|
</div>
|
55
60
|
<If condition={status}>
|
56
|
-
<
|
61
|
+
<OnlineStatus
|
62
|
+
className={`size_${size}`}
|
63
|
+
dark={dark}
|
64
|
+
status={status}
|
65
|
+
/>
|
57
66
|
</If>
|
58
67
|
</div>
|
59
68
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Avatar } from '../../'
|
3
3
|
|
4
|
-
const AvatarDefault = () => {
|
4
|
+
const AvatarDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Avatar
|
@@ -9,6 +9,7 @@ const AvatarDefault = () => {
|
|
9
9
|
name="Terry Johnson"
|
10
10
|
size="xs"
|
11
11
|
status="online"
|
12
|
+
{...props}
|
12
13
|
/>
|
13
14
|
<br />
|
14
15
|
<Avatar
|
@@ -16,6 +17,7 @@ const AvatarDefault = () => {
|
|
16
17
|
name="Terry Johnson"
|
17
18
|
size="sm"
|
18
19
|
status="online"
|
20
|
+
{...props}
|
19
21
|
/>
|
20
22
|
<br />
|
21
23
|
<Avatar
|
@@ -23,6 +25,7 @@ const AvatarDefault = () => {
|
|
23
25
|
name="Terry Johnson"
|
24
26
|
size="md"
|
25
27
|
status="away"
|
28
|
+
{...props}
|
26
29
|
/>
|
27
30
|
<br />
|
28
31
|
<Avatar
|
@@ -30,6 +33,7 @@ const AvatarDefault = () => {
|
|
30
33
|
name="Terry Johnson"
|
31
34
|
size="lg"
|
32
35
|
status="offline"
|
36
|
+
{...props}
|
33
37
|
/>
|
34
38
|
<br />
|
35
39
|
<Avatar
|
@@ -37,6 +41,7 @@ const AvatarDefault = () => {
|
|
37
41
|
name="Terry Johnson"
|
38
42
|
size="xl"
|
39
43
|
status="offline"
|
44
|
+
{...props}
|
40
45
|
/>
|
41
46
|
</div>
|
42
47
|
)
|
@@ -1,28 +1,33 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Avatar } from '../../'
|
3
3
|
|
4
|
-
const AvatarDefault = () => {
|
4
|
+
const AvatarDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Avatar
|
8
8
|
name="Terry Johnson"
|
9
9
|
size="xs"
|
10
|
+
{...props}
|
10
11
|
/>
|
11
12
|
<Avatar
|
12
13
|
name="Terry Johnson"
|
13
14
|
size="sm"
|
15
|
+
{...props}
|
14
16
|
/>
|
15
17
|
<Avatar
|
16
18
|
name="Terry Johnson"
|
17
19
|
size="md"
|
20
|
+
{...props}
|
18
21
|
/>
|
19
22
|
<Avatar
|
20
23
|
name="Terry Johnson"
|
21
24
|
size="lg"
|
25
|
+
{...props}
|
22
26
|
/>
|
23
27
|
<Avatar
|
24
28
|
name="Terry Johnson"
|
25
29
|
size="xl"
|
30
|
+
{...props}
|
26
31
|
/>
|
27
32
|
</div>
|
28
33
|
)
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Avatar } from '../../'
|
3
3
|
|
4
|
-
const AvatarStatus = () => {
|
4
|
+
const AvatarStatus = (props) => {
|
5
5
|
return (
|
6
6
|
<>
|
7
7
|
<Avatar
|
8
8
|
imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
|
9
9
|
name="Terry Johnson"
|
10
10
|
size="sm"
|
11
|
+
{...props}
|
11
12
|
/>
|
12
13
|
|
13
14
|
<br />
|
@@ -17,6 +18,7 @@ const AvatarStatus = () => {
|
|
17
18
|
name="Terry Johnson"
|
18
19
|
size="sm"
|
19
20
|
status="online"
|
21
|
+
{...props}
|
20
22
|
/>
|
21
23
|
|
22
24
|
<br />
|
@@ -26,6 +28,7 @@ const AvatarStatus = () => {
|
|
26
28
|
name="Terry Johnson"
|
27
29
|
size="sm"
|
28
30
|
status="away"
|
31
|
+
{...props}
|
29
32
|
/>
|
30
33
|
|
31
34
|
<br />
|
@@ -35,6 +38,7 @@ const AvatarStatus = () => {
|
|
35
38
|
name="Terry Johnson"
|
36
39
|
size="sm"
|
37
40
|
status="offline"
|
41
|
+
{...props}
|
38
42
|
/>
|
39
43
|
|
40
44
|
<br />
|
@@ -1,17 +1,19 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { AvatarActionButton } from '../../'
|
3
3
|
|
4
|
-
const AvatarActionButtonActions = () => (
|
4
|
+
const AvatarActionButtonActions = (props) => (
|
5
5
|
<div className="pb--doc-demo-row">
|
6
6
|
<AvatarActionButton
|
7
7
|
action="add"
|
8
8
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
9
9
|
name="Sophia Carden"
|
10
|
+
{...props}
|
10
11
|
/>
|
11
12
|
<AvatarActionButton
|
12
13
|
action="remove"
|
13
14
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
14
15
|
name="Sophia Carden"
|
16
|
+
{...props}
|
15
17
|
/>
|
16
18
|
</div>
|
17
19
|
)
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { AvatarActionButton } from '../../'
|
3
3
|
|
4
|
-
const AvatarActionButtonDefault = () => (
|
4
|
+
const AvatarActionButtonDefault = (props) => (
|
5
5
|
<div className="pb--doc-demo-row">
|
6
6
|
<AvatarActionButton
|
7
|
+
{...props}
|
7
8
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
8
9
|
name="Sophia Carden"
|
9
10
|
/>
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { AvatarActionButton } from '../../'
|
3
3
|
|
4
|
-
const AvatarActionButtonOnClick = () => (
|
4
|
+
const AvatarActionButtonOnClick = (props) => (
|
5
5
|
<div className="pb--doc-demo-row">
|
6
6
|
<AvatarActionButton
|
7
7
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
8
8
|
linkUrl="https://www.google.com"
|
9
9
|
name="Sophia Carden"
|
10
10
|
onClick={() => alert('clicked!')}
|
11
|
+
{...props}
|
11
12
|
/>
|
12
13
|
</div>
|
13
14
|
)
|
@@ -1,27 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { AvatarActionButton } from '../../'
|
3
3
|
|
4
|
-
const AvatarActionButtonPlacement = () => (
|
4
|
+
const AvatarActionButtonPlacement = (props) => (
|
5
5
|
<div className="pb--doc-demo-row">
|
6
6
|
<AvatarActionButton
|
7
7
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
8
8
|
name="Sophia Carden"
|
9
9
|
placement="bottom_left"
|
10
|
+
{...props}
|
10
11
|
/>
|
11
12
|
<AvatarActionButton
|
12
13
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
13
14
|
name="Sophia Carden"
|
14
15
|
placement="bottom_right"
|
16
|
+
{...props}
|
15
17
|
/>
|
16
18
|
<AvatarActionButton
|
17
19
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
18
20
|
name="Sophia Carden"
|
19
21
|
placement="top_left"
|
22
|
+
{...props}
|
20
23
|
/>
|
21
24
|
<AvatarActionButton
|
22
25
|
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
23
26
|
name="Sophia Carden"
|
24
27
|
placement="top_right"
|
28
|
+
{...props}
|
25
29
|
/>
|
26
30
|
</div>
|
27
31
|
)
|
@@ -6,18 +6,10 @@ examples:
|
|
6
6
|
- avatar_action_button_actions: Actions
|
7
7
|
- avatar_action_button_onclick: On Click
|
8
8
|
- avatar_action_button_tooltip: Tooltip
|
9
|
-
|
10
|
-
- avatar_action_button_placement_dark: Placement Dark
|
11
|
-
- avatar_action_button_actions_dark: Actions Dark
|
12
|
-
- avatar_action_button_on_click_dark: On Click Dark
|
13
|
-
- avatar_action_button_tooltip_dark: Tooltip Dark
|
9
|
+
|
14
10
|
|
15
11
|
react:
|
16
12
|
- avatar_action_button_default: Default
|
17
13
|
- avatar_action_button_placement: Placement
|
18
14
|
- avatar_action_button_actions: Actions
|
19
15
|
- avatar_action_button_on_click: On Click
|
20
|
-
- avatar_action_button_dark: Dark
|
21
|
-
- avatar_action_button_placement_dark: Placement Dark
|
22
|
-
- avatar_action_button_actions_dark: Actions Dark
|
23
|
-
- avatar_action_button_on_click_dark: On Click Dark
|
@@ -2,7 +2,3 @@ export { default as AvatarActionButtonDefault } from './_avatar_action_button_de
|
|
2
2
|
export { default as AvatarActionButtonPlacement } from './_avatar_action_button_placement.jsx'
|
3
3
|
export { default as AvatarActionButtonActions } from './_avatar_action_button_actions.jsx'
|
4
4
|
export { default as AvatarActionButtonOnClick } from './_avatar_action_button_on_click.jsx'
|
5
|
-
export { default as AvatarActionButtonDark } from './_avatar_action_button_dark.jsx'
|
6
|
-
export { default as AvatarActionButtonPlacementDark } from './_avatar_action_button_placement_dark.jsx'
|
7
|
-
export { default as AvatarActionButtonOnClickDark } from './_avatar_action_button_on_click_dark.jsx'
|
8
|
-
export { default as AvatarActionButtonActionsDark } from './_avatar_action_button_actions_dark.jsx'
|