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
@@ -0,0 +1,53 @@
|
|
1
|
+
import React, { useState } from 'react'
|
2
|
+
import { Button, CircleChart } from '../../'
|
3
|
+
|
4
|
+
const CircleChartLiveData = () => {
|
5
|
+
const [data, setData] = useState([
|
6
|
+
{
|
7
|
+
name: 'Waiting for Calls',
|
8
|
+
value: 41,
|
9
|
+
},
|
10
|
+
{
|
11
|
+
name: 'On Call',
|
12
|
+
value: 49,
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'After call',
|
16
|
+
value: 10,
|
17
|
+
},
|
18
|
+
])
|
19
|
+
|
20
|
+
const data2 = [
|
21
|
+
{
|
22
|
+
name: 'Waiting for Calls',
|
23
|
+
value: 48,
|
24
|
+
},
|
25
|
+
{
|
26
|
+
name: 'On Call',
|
27
|
+
value: 12,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
name: 'After call',
|
31
|
+
value: 140,
|
32
|
+
},
|
33
|
+
]
|
34
|
+
|
35
|
+
const updateValue = () => {
|
36
|
+
setData(data2)
|
37
|
+
}
|
38
|
+
|
39
|
+
return (
|
40
|
+
<div>
|
41
|
+
<Button
|
42
|
+
onClick={updateValue}
|
43
|
+
text="Update Value"
|
44
|
+
/>
|
45
|
+
<CircleChart
|
46
|
+
chartData={data}
|
47
|
+
id="circle-chart-live-data"
|
48
|
+
/>
|
49
|
+
</div>
|
50
|
+
)
|
51
|
+
}
|
52
|
+
|
53
|
+
export default CircleChartLiveData
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { CircleChart } from '../../'
|
3
|
+
|
4
|
+
const dataRounded = [
|
5
|
+
{
|
6
|
+
name: 'Waiting for Calls',
|
7
|
+
value: 41,
|
8
|
+
},
|
9
|
+
{
|
10
|
+
name: 'On Call',
|
11
|
+
value: 49,
|
12
|
+
},
|
13
|
+
{
|
14
|
+
name: 'After call',
|
15
|
+
value: 10,
|
16
|
+
},
|
17
|
+
]
|
18
|
+
|
19
|
+
const CircleChartRounded = () => (
|
20
|
+
<div>
|
21
|
+
<CircleChart
|
22
|
+
chartData={dataRounded}
|
23
|
+
id="default-test-rounded"
|
24
|
+
innerSize="lg"
|
25
|
+
rounded
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
)
|
29
|
+
|
30
|
+
export default CircleChartRounded
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { CircleChart } from '../../'
|
3
|
+
|
4
|
+
const dataWithLabels = [
|
5
|
+
{
|
6
|
+
name: 'Facebook',
|
7
|
+
value: 2498,
|
8
|
+
},
|
9
|
+
{
|
10
|
+
name: 'YouTube',
|
11
|
+
value: 2000,
|
12
|
+
},
|
13
|
+
{
|
14
|
+
name: 'WhatsApp',
|
15
|
+
value: 2000,
|
16
|
+
},
|
17
|
+
{
|
18
|
+
name: 'Facebook Messenger',
|
19
|
+
value: 1300,
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'WeChat',
|
23
|
+
value: 1165,
|
24
|
+
},
|
25
|
+
{
|
26
|
+
name: 'Instagram',
|
27
|
+
value: 1000,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
name: 'Tik Tok',
|
31
|
+
value: 800,
|
32
|
+
},
|
33
|
+
]
|
34
|
+
|
35
|
+
const CircleChartWithLabels = () => (
|
36
|
+
<div>
|
37
|
+
<CircleChart
|
38
|
+
chartData={dataWithLabels}
|
39
|
+
dataLabels
|
40
|
+
id="with-labels-example"
|
41
|
+
/>
|
42
|
+
</div>
|
43
|
+
)
|
44
|
+
|
45
|
+
export default CircleChartWithLabels
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { CircleChart } from '../../'
|
3
|
+
|
4
|
+
const dataWithLegend = [{
|
5
|
+
name: 'Bugs',
|
6
|
+
value: 8,
|
7
|
+
|
8
|
+
},
|
9
|
+
{
|
10
|
+
name: 'Chores',
|
11
|
+
value: 1,
|
12
|
+
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'Stories',
|
16
|
+
value: 12,
|
17
|
+
},
|
18
|
+
]
|
19
|
+
|
20
|
+
const CircleChartWithLegendKit = () => (
|
21
|
+
<div>
|
22
|
+
<CircleChart
|
23
|
+
chartData={dataWithLegend}
|
24
|
+
id="with-legend-example"
|
25
|
+
legend
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
)
|
29
|
+
|
30
|
+
export default CircleChartWithLegendKit
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { CircleChart } from '../../'
|
3
|
+
|
4
|
+
const dataWithTitle = [
|
5
|
+
{
|
6
|
+
name: 'Facebook',
|
7
|
+
value: 2498,
|
8
|
+
},
|
9
|
+
{
|
10
|
+
name: 'YouTube',
|
11
|
+
value: 2000,
|
12
|
+
},
|
13
|
+
{
|
14
|
+
name: 'WhatsApp',
|
15
|
+
value: 2000,
|
16
|
+
},
|
17
|
+
{
|
18
|
+
name: 'Facebook Messenger',
|
19
|
+
value: 1300,
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'WeChat',
|
23
|
+
value: 1165,
|
24
|
+
},
|
25
|
+
{
|
26
|
+
name: 'Instagram',
|
27
|
+
value: 1000,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
name: 'Tik Tok',
|
31
|
+
value: 800,
|
32
|
+
},
|
33
|
+
]
|
34
|
+
|
35
|
+
const CircleChartWithLegendKit = () => (
|
36
|
+
<div>
|
37
|
+
<CircleChart
|
38
|
+
chartData={dataWithTitle}
|
39
|
+
id="with-title-example"
|
40
|
+
title="Active Users on Social Media"
|
41
|
+
/>
|
42
|
+
</div>
|
43
|
+
)
|
44
|
+
|
45
|
+
export default CircleChartWithLegendKit
|
@@ -10,4 +10,15 @@ examples:
|
|
10
10
|
- circle_chart_with_title: Title
|
11
11
|
- circle_chart_inner_sizes: Inner Circle Size Options
|
12
12
|
|
13
|
+
react:
|
14
|
+
- circle_chart_default: Default Style
|
15
|
+
- circle_chart_live_data: Live Data
|
16
|
+
- circle_chart_rounded: Rounded Corners
|
17
|
+
- circle_chart_block: Accepts Any Block
|
18
|
+
- circle_chart_colors: Color Overrides
|
19
|
+
- circle_chart_with_labels: Data Labels
|
20
|
+
- circle_chart_with_legend_kit: Legend
|
21
|
+
- circle_chart_with_title: Title
|
22
|
+
- circle_chart_inner_sizes: Inner Circle Size Options
|
23
|
+
|
13
24
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export { default as CircleChartDefault } from './_circle_chart_default.jsx'
|
2
|
+
export { default as CircleChartLiveData } from './_circle_chart_live_data.jsx'
|
3
|
+
export { default as CircleChartRounded } from './_circle_chart_rounded.jsx'
|
4
|
+
export { default as CircleChartBlock } from './_circle_chart_block.jsx'
|
5
|
+
export { default as CircleChartColors } from './_circle_chart_colors.jsx'
|
6
|
+
export { default as CircleChartWithLabels } from './_circle_chart_with_labels.jsx'
|
7
|
+
export { default as CircleChartWithLegendKit } from './_circle_chart_with_legend_kit.jsx'
|
8
|
+
export { default as CircleChartWithTitle } from './_circle_chart_with_title.jsx'
|
9
|
+
export { default as CircleChartInnerSizes } from './_circle_chart_inner_sizes.jsx'
|
@@ -46,7 +46,11 @@ const CircleIconButton = (props: CircleIconButtonProps) => {
|
|
46
46
|
|
47
47
|
const ariaProps = buildAriaProps(aria)
|
48
48
|
const dataProps = buildDataProps(data)
|
49
|
-
const classes = classnames(
|
49
|
+
const classes = classnames(
|
50
|
+
buildCss('pb_circle_icon_button_kit'),
|
51
|
+
globalProps(props),
|
52
|
+
className
|
53
|
+
)
|
50
54
|
|
51
55
|
return (
|
52
56
|
<div
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../..'
|
3
3
|
|
4
|
-
const CircleIconButtonClick = () => (
|
4
|
+
const CircleIconButtonClick = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="plus"
|
8
9
|
onClick={() => alert('Click!')}
|
9
10
|
variant="primary"
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../../'
|
3
3
|
|
4
|
-
const CircleIconButtonDefault = () => (
|
4
|
+
const CircleIconButtonDefault = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="plus"
|
8
9
|
variant="primary"
|
9
10
|
/>
|
@@ -11,6 +12,7 @@ const CircleIconButtonDefault = () => (
|
|
11
12
|
<br />
|
12
13
|
|
13
14
|
<CircleIconButton
|
15
|
+
{...props}
|
14
16
|
icon="pen"
|
15
17
|
variant="secondary"
|
16
18
|
/>
|
@@ -18,6 +20,7 @@ const CircleIconButtonDefault = () => (
|
|
18
20
|
<br />
|
19
21
|
|
20
22
|
<CircleIconButton
|
23
|
+
{...props}
|
21
24
|
disabled
|
22
25
|
icon="times"
|
23
26
|
/>
|
@@ -25,6 +28,7 @@ const CircleIconButtonDefault = () => (
|
|
25
28
|
<br />
|
26
29
|
|
27
30
|
<CircleIconButton
|
31
|
+
{...props}
|
28
32
|
icon="user"
|
29
33
|
variant="link"
|
30
34
|
/>
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../../'
|
3
3
|
|
4
|
-
const CircleIconButtonLink = () => (
|
4
|
+
const CircleIconButtonLink = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="search"
|
8
9
|
link="https://google.com"
|
9
10
|
variant="primary"
|
@@ -13,6 +14,7 @@ const CircleIconButtonLink = () => (
|
|
13
14
|
<br />
|
14
15
|
|
15
16
|
<CircleIconButton
|
17
|
+
{...props}
|
16
18
|
icon="window"
|
17
19
|
link="https://google.com"
|
18
20
|
newWindow
|
@@ -2,11 +2,9 @@ examples:
|
|
2
2
|
|
3
3
|
rails:
|
4
4
|
- circle_icon_button_default: Default
|
5
|
-
- circle_icon_button_dark: Dark
|
6
5
|
- circle_icon_button_link: Link
|
7
6
|
|
8
7
|
react:
|
9
8
|
- circle_icon_button_default: Default
|
10
9
|
- circle_icon_button_click: Click Handler
|
11
|
-
- circle_icon_button_dark: Dark
|
12
10
|
- circle_icon_button_link: Link
|
@@ -1,4 +1,3 @@
|
|
1
1
|
export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
|
2
2
|
export { default as CircleIconButtonClick } from './_circle_icon_button_click.jsx'
|
3
|
-
export { default as CircleIconButtonDark } from './_circle_icon_button_dark.jsx'
|
4
3
|
export { default as CircleIconButtonLink } from './_circle_icon_button_link.jsx'
|
@@ -58,7 +58,11 @@ const Contact = (props: ContactProps) => {
|
|
58
58
|
id } = props
|
59
59
|
const ariaProps = buildAriaProps(aria)
|
60
60
|
const dataProps = buildDataProps(data)
|
61
|
-
const classes = classnames(
|
61
|
+
const classes = classnames(
|
62
|
+
buildCss('pb_contact_kit'),
|
63
|
+
globalProps(props),
|
64
|
+
className
|
65
|
+
)
|
62
66
|
|
63
67
|
return (
|
64
68
|
<div
|
@@ -1,26 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Contact } from '../../'
|
3
3
|
|
4
|
-
const ContactDefault = () => {
|
4
|
+
const ContactDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
+
{...props}
|
8
9
|
contactType="cell"
|
9
10
|
contactValue="349-185-9988"
|
10
11
|
/>
|
11
12
|
<Contact
|
13
|
+
{...props}
|
12
14
|
contactValue="5555555555"
|
13
15
|
/>
|
14
16
|
<Contact
|
17
|
+
{...props}
|
15
18
|
contactType="email"
|
16
19
|
contactValue="email@example.com"
|
17
20
|
/>
|
18
21
|
<Contact
|
22
|
+
{...props}
|
19
23
|
contactType="work"
|
20
24
|
contactValue="3245627482"
|
21
25
|
|
22
26
|
/>
|
23
27
|
<Contact
|
28
|
+
{...props}
|
24
29
|
contactType="work-cell"
|
25
30
|
contactValue="3245627482"
|
26
31
|
/>
|
@@ -1,24 +1,28 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Contact } from '../../'
|
3
3
|
|
4
|
-
const ContactDefault = () => {
|
4
|
+
const ContactDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
+
{...props}
|
8
9
|
contactDetail="Cell"
|
9
10
|
contactType="cell"
|
10
11
|
contactValue="349-185-9988"
|
11
12
|
/>
|
12
13
|
<Contact
|
14
|
+
{...props}
|
13
15
|
contactDetail="Home"
|
14
16
|
contactValue="5555555555"
|
15
17
|
/>
|
16
18
|
<Contact
|
19
|
+
{...props}
|
17
20
|
contactDetail="Work"
|
18
21
|
contactType="work"
|
19
22
|
contactValue="3245627482"
|
20
23
|
/>
|
21
24
|
<Contact
|
25
|
+
{...props}
|
22
26
|
contactDetail="Work-Cell"
|
23
27
|
contactType="work-cell"
|
24
28
|
contactValue="3245627482"
|
@@ -45,7 +45,11 @@ const Currency = (props: CurrencyProps) => {
|
|
45
45
|
const [whole, decimal = '00'] = amount.split('.')
|
46
46
|
const ariaProps = buildAriaProps(aria)
|
47
47
|
const dataProps = buildDataProps(data)
|
48
|
-
const classes = classnames(
|
48
|
+
const classes = classnames(
|
49
|
+
buildCss('pb_currency_kit', align, size, { dark }),
|
50
|
+
globalProps(props),
|
51
|
+
className
|
52
|
+
)
|
49
53
|
|
50
54
|
return (
|
51
55
|
<div
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Currency } from '../../'
|
3
3
|
|
4
|
-
const CurrencyLarge = () => {
|
4
|
+
const CurrencyLarge = (props) => {
|
5
5
|
return (
|
6
6
|
<>
|
7
7
|
<Currency
|
8
|
+
{...props}
|
8
9
|
amount="2,000.50"
|
9
10
|
size="lg"
|
10
11
|
/>
|
11
12
|
<Currency
|
13
|
+
{...props}
|
12
14
|
align="center"
|
13
15
|
amount="342"
|
14
16
|
label="Caption"
|
@@ -16,6 +18,7 @@ const CurrencyLarge = () => {
|
|
16
18
|
symbol="€"
|
17
19
|
/>
|
18
20
|
<Currency
|
21
|
+
{...props}
|
19
22
|
align="right"
|
20
23
|
amount="45"
|
21
24
|
label="Caption"
|