playbook_ui 13.13.0 → 13.14.0.pre.alpha.play1101betaicons1798
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/index.js +14 -1
- data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +5 -5
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +3 -3
- data/app/pb_kits/playbook/pb_background/_background.tsx +9 -9
- data/app/pb_kits/playbook/pb_badge/_badge.tsx +2 -2
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +3 -3
- data/app/pb_kits/playbook/pb_beta_icon/_icon.scss +12 -0
- data/app/pb_kits/playbook/pb_beta_icon/_icon.tsx +164 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_footer.md +2 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_animate.html.erb +3 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_animate.jsx +35 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_animate.md +1 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_border.html.erb +1 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_border.jsx +19 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_border_swift.md +7 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_custom.html.erb +16 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_custom.jsx +34 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_custom.md +19 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_default.html.erb +1 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_default_swift.md +7 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_fa_kit.html.erb +1 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_fa_kit.jsx +21 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_fa_kit.md +7 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_flip.html.erb +3 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_flip.jsx +33 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_flip_swift.md +11 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_pull.html.erb +2 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_pull.jsx +26 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_pull.md +1 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_rotate.html.erb +3 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_rotate.jsx +33 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_rotate_swift.md +11 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_sizes.html.erb +16 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_sizes.jsx +133 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/_icon_sizes_swift.md +46 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/example.yml +30 -0
- data/app/pb_kits/playbook/pb_beta_icon/docs/index.js +9 -0
- data/app/pb_kits/playbook/pb_beta_icon/icon.html.erb +15 -0
- data/app/pb_kits/playbook/pb_beta_icon/icon.rb +153 -0
- data/app/pb_kits/playbook/pb_beta_icon/icon.test.js +155 -0
- data/app/pb_kits/playbook/pb_body/_body.scss +0 -5
- data/app/pb_kits/playbook/pb_body/_body.tsx +5 -9
- data/app/pb_kits/playbook/pb_body/_body_mixins.scss +0 -20
- data/app/pb_kits/playbook/pb_body/body.rb +1 -8
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +3 -4
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx +3 -3
- data/app/pb_kits/playbook/pb_button/_button.tsx +40 -37
- data/app/pb_kits/playbook/pb_button/docs/_button_props_swift.md +11 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction_swift.md +26 -0
- data/app/pb_kits/playbook/pb_button/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +3 -3
- data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -1
- data/app/pb_kits/playbook/pb_card/_card.tsx +2 -2
- data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +5 -4
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +3 -3
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +9 -9
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +5 -7
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +2 -2
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +5 -4
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +16 -12
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +3 -3
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md +14 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md +6 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md +14 -0
- data/app/pb_kits/playbook/pb_contact/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +2 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +4 -57
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +4 -57
- data/app/pb_kits/playbook/pb_dashboard/themeTypes.ts +20 -16
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx +1 -1
- data/app/pb_kits/playbook/pb_date/_date.tsx +7 -7
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +11 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +16 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_unstyled_swift.md +11 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_variants_swift.md +14 -0
- data/app/pb_kits/playbook/pb_date/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +4 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +11 -10
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom.html.erb +29 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom.jsx +34 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom.md +7 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom_override.html.erb +28 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom_override.jsx +34 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_custom_override.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_quick_pick_react.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.tsx +69 -3
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +2 -2
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +2 -2
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +8 -8
- data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +2 -2
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -1
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +2 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.test.js +6 -3
- data/app/pb_kits/playbook/pb_detail/_detail.scss +2 -2
- data/app/pb_kits/playbook/pb_detail/_detail.tsx +5 -5
- data/app/pb_kits/playbook/pb_detail/detail.rb +1 -1
- data/app/pb_kits/playbook/pb_detail/detail.test.jsx +2 -2
- data/app/pb_kits/playbook/pb_dialog/_close_icon.tsx +2 -2
- data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +42 -34
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +4 -5
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +4 -4
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +8 -4
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +8 -4
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_props_table.md +13 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +4 -2
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes_swift.md +18 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status_swift.md +14 -0
- data/app/pb_kits/playbook/pb_dialog/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.tsx +5 -5
- data/app/pb_kits/playbook/pb_enhanced_element/element_observer.ts +1 -1
- data/app/pb_kits/playbook/pb_enhanced_element/index.ts +1 -1
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +1 -1
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.tsx +1 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.tsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default_swift.md +18 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md +34 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link_swift.md +18 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified_swift.md +13 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_props_swift.md +14 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +1 -1
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.tsx +1 -1
- data/app/pb_kits/playbook/pb_image/_image.tsx +1 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +1 -1
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +1 -1
- data/app/pb_kits/playbook/pb_legend/_legend.tsx +1 -1
- data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +1 -1
- data/app/pb_kits/playbook/pb_lightbox/_lightbox.tsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +1 -1
- data/app/pb_kits/playbook/pb_list/_list.tsx +1 -1
- data/app/pb_kits/playbook/pb_list/_list_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_map/_map.tsx +1 -1
- data/app/pb_kits/playbook/pb_message/_message.tsx +1 -1
- data/app/pb_kits/playbook/pb_message/_message_mention.tsx +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +1 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +1 -1
- data/app/pb_kits/playbook/pb_nav/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_nav/_nav.tsx +1 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +1 -1
- data/app/pb_kits/playbook/pb_person/_person.tsx +1 -1
- data/app/pb_kits/playbook/pb_person/docs/_person_default_swift.md +8 -0
- data/app/pb_kits/playbook/pb_person/docs/_person_props_swift.md +5 -0
- data/app/pb_kits/playbook/pb_person/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.tsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +1 -1
- data/app/pb_kits/playbook/pb_pill/_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -1
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +1 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.tsx +1 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +1 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -1
- data/app/pb_kits/playbook/pb_select/_select.tsx +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_default_swift.md +15 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_error_swift.md +18 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_props_table.md +8 -0
- data/app/pb_kits/playbook/pb_select/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.tsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.tsx +1 -1
- data/app/pb_kits/playbook/pb_source/_source.tsx +1 -1
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +105 -53
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +185 -63
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.html.erb +2 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_background_options.jsx +25 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb +3 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx +31 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb +6 -8
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +19 -6
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb +4 -1
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +30 -5
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb +6 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx +58 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb +16 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx +60 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +12 -5
- data/app/pb_kits/playbook/pb_star_rating/docs/index.js +8 -0
- data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +54 -26
- data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +86 -6
- data/app/pb_kits/playbook/pb_star_rating/star_rating.test.js +34 -34
- data/app/pb_kits/playbook/pb_star_rating/stars/primary_star.svg +3 -0
- data/app/pb_kits/playbook/pb_star_rating/stars/star_outline.svg +3 -0
- data/app/pb_kits/playbook/pb_star_rating/stars/subtle_dark_star.svg +3 -0
- data/app/pb_kits/playbook/pb_star_rating/stars/subtle_star.svg +3 -0
- data/app/pb_kits/playbook/pb_star_rating/stars/yellow_star.svg +3 -0
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +1 -1
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/_table.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/_table_row.tsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +1 -1
- data/app/pb_kits/playbook/pb_time/_time.tsx +1 -1
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.scss +0 -5
- data/app/pb_kits/playbook/pb_title/_title.tsx +2 -5
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +0 -19
- data/app/pb_kits/playbook/pb_title/title.rb +2 -9
- data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +1 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +1 -1
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -1
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +1 -1
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md +37 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +10 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_size_swift.md +35 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_text_only_swift.md +27 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size_swift.md +35 -0
- data/app/pb_kits/playbook/pb_user/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +1 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +1 -1
- data/app/pb_kits/playbook/tokens/exports/exports.d.ts +1 -0
- data/app/pb_kits/playbook/utilities/_truncate.scss +20 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +13 -2
- data/app/pb_kits/playbook/utilities/props.ts +2 -2
- data/app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js +21 -0
- data/dist/menu.yml +240 -168
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/classnames.rb +1 -0
- data/lib/playbook/kit_base.rb +2 -0
- data/lib/playbook/truncate.rb +29 -0
- data/lib/playbook/version.rb +2 -2
- metadata +95 -7
@@ -20,7 +20,7 @@ type PassphraseProps = {
|
|
20
20
|
className?: string,
|
21
21
|
data?: object,
|
22
22
|
dark?: boolean,
|
23
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
23
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
24
24
|
id?: string,
|
25
25
|
inputProps?: {},
|
26
26
|
label?: string,
|
@@ -17,7 +17,7 @@ type PersonProps = {
|
|
17
17
|
className?: string | string[],
|
18
18
|
data?: { [key: string]: string },
|
19
19
|
firstName: string,
|
20
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
20
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
21
21
|
id?: string,
|
22
22
|
lastName: string,
|
23
23
|
}
|
@@ -19,7 +19,7 @@ type PersonContactProps = {
|
|
19
19
|
className?: string | string[],
|
20
20
|
data?: object,
|
21
21
|
firstName: string,
|
22
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
22
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
23
23
|
id?: string,
|
24
24
|
lastName: string,
|
25
25
|
contacts?: ContactItem[],
|
@@ -25,7 +25,7 @@ type PhoneNumberInputProps = {
|
|
25
25
|
data?: { [key: string]: string },
|
26
26
|
disabled?: boolean,
|
27
27
|
error?: string,
|
28
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
28
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
29
29
|
id?: string,
|
30
30
|
initialCountry?: string,
|
31
31
|
isValid?: (valid: boolean) => void,
|
@@ -9,7 +9,7 @@ type PillProps = {
|
|
9
9
|
aria?: {[key: string]: string},
|
10
10
|
className?: string,
|
11
11
|
data?: {[key: string]: string},
|
12
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
12
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
13
13
|
id?: string,
|
14
14
|
text: string,
|
15
15
|
variant?: "success" | "warning" | "error" | "info" | "neutral" | "primary",
|
@@ -25,7 +25,7 @@ type PbPopoverProps = {
|
|
25
25
|
className?: string;
|
26
26
|
closeOnClick?: "outside" | "inside" | "any";
|
27
27
|
data?: { [key: string]: string },
|
28
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
28
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
29
29
|
id?: string;
|
30
30
|
offset?: boolean;
|
31
31
|
reference: PopperReference & any;
|
@@ -13,7 +13,7 @@ type ProgressPillsProps = {
|
|
13
13
|
className?: string,
|
14
14
|
data?: { [key: string]: string },
|
15
15
|
dark?: boolean,
|
16
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
16
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
17
17
|
id?: string,
|
18
18
|
steps?: number,
|
19
19
|
title?: string,
|
@@ -8,7 +8,7 @@ type ProgressSimpleProps = {
|
|
8
8
|
className?: string | string[],
|
9
9
|
dark?: boolean,
|
10
10
|
data?: string,
|
11
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
11
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
12
12
|
id?: string,
|
13
13
|
max?: number,
|
14
14
|
muted: boolean,
|
@@ -7,7 +7,7 @@ type ProgressStepProps = {
|
|
7
7
|
aria?: { [key: string]: string },
|
8
8
|
className?: string,
|
9
9
|
data?: { [key: string]: string },
|
10
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
10
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
11
11
|
id?: string,
|
12
12
|
children?: React.ReactChild[] | React.ReactChild,
|
13
13
|
orientation?: "horizontal" | "vertical",
|
@@ -10,7 +10,7 @@ type ProgressStepItemProps = {
|
|
10
10
|
data?: { [key: string]: string },
|
11
11
|
status?: "complete" | "active" | "inactive" | "hidden",
|
12
12
|
children?: React.ReactNode | React.ReactNode[],
|
13
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
13
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
14
14
|
icon?: string,
|
15
15
|
}
|
16
16
|
|
@@ -15,7 +15,7 @@ type RadioProps = {
|
|
15
15
|
dark?: boolean,
|
16
16
|
data?: {[key: string]: string},
|
17
17
|
error?: boolean,
|
18
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
18
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
19
19
|
id?: string,
|
20
20
|
label: string,
|
21
21
|
name?: string,
|
@@ -35,7 +35,7 @@ type RichTextEditorProps = {
|
|
35
35
|
className?: string,
|
36
36
|
data?: { [key: string]: string },
|
37
37
|
focus?: boolean,
|
38
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
38
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
39
39
|
id?: string,
|
40
40
|
inline?: boolean,
|
41
41
|
extensions?: { [key: string]: string }[],
|
@@ -12,7 +12,7 @@ type SectionSeparatorProps = {
|
|
12
12
|
className?: string,
|
13
13
|
dark?: boolean,
|
14
14
|
data?: { [key: string]: string; },
|
15
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
15
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
16
16
|
id?: string,
|
17
17
|
lineStyle?: "solid" | "dashed",
|
18
18
|
orientation?: "horizontal" | "vertical",
|
@@ -24,7 +24,7 @@ type SelectProps = {
|
|
24
24
|
data?: { [key: string]: string },
|
25
25
|
disabled?: boolean,
|
26
26
|
error?: string,
|
27
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
27
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
28
28
|
id?: string,
|
29
29
|
includeBlank?: string,
|
30
30
|
inline?: boolean,
|
@@ -0,0 +1,15 @@
|
|
1
|
+
![select-default](https://github.com/powerhome/playbook/assets/54749071/ead0e074-46ae-425a-ab32-d9c4418a0783)
|
2
|
+
|
3
|
+
|
4
|
+
```swift
|
5
|
+
let defaultOptions = [
|
6
|
+
(value: "1", text: "Burgers"),
|
7
|
+
(value: "2", text: "Pizza"),
|
8
|
+
(value: "3", text: "Tacos")
|
9
|
+
]
|
10
|
+
@State private var defaultState = ""
|
11
|
+
|
12
|
+
PBSelect(title: "Favorite Food", options: defaultOptions, style: .default) { selected in
|
13
|
+
defaultState = selected
|
14
|
+
}
|
15
|
+
```
|
@@ -0,0 +1,18 @@
|
|
1
|
+
![select-error](https://github.com/powerhome/playbook/assets/54749071/c02e365b-c3a1-446b-b9f2-47db11315786)
|
2
|
+
|
3
|
+
```swift
|
4
|
+
let defaultOptions = [
|
5
|
+
(value: "1", text: "Burgers"),
|
6
|
+
(value: "2", text: "Pizza"),
|
7
|
+
(value: "3", text: "Tacos")
|
8
|
+
]
|
9
|
+
@State private var errorState = ""
|
10
|
+
|
11
|
+
PBSelect(
|
12
|
+
title: "Favorite Food",
|
13
|
+
options: defaultOptions,
|
14
|
+
style: .error("Please make a valid selection")
|
15
|
+
) { selected in
|
16
|
+
errorState = selected
|
17
|
+
}
|
18
|
+
```
|
@@ -0,0 +1,8 @@
|
|
1
|
+
### Props
|
2
|
+
| Name | Type | Description | Default | Values |
|
3
|
+
| --- | ----------- | --------- | --------- | --------- |
|
4
|
+
| **title** | `String` | Sets label title for dropdown | | |
|
5
|
+
| **options** | `(String, String)` | Displays the list of dropdown options | | |
|
6
|
+
| **style** | `Variant` | Options for the state of dropdown | `.default` | `default` `disabled` `error` |
|
7
|
+
| **selectedOption** | `String` | Changes selected value when new value is selected | | |
|
8
|
+
| **selected** | `String` | Changes the value of the option selected in dropdown | | |
|
@@ -28,7 +28,7 @@ type SelectableCardProps = {
|
|
28
28
|
disabled?: boolean,
|
29
29
|
error?: boolean,
|
30
30
|
icon?: boolean,
|
31
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
31
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
32
32
|
inputId?: string,
|
33
33
|
id?: string,
|
34
34
|
multi?: boolean,
|
@@ -22,7 +22,7 @@ type SelectableCardIconProps = {
|
|
22
22
|
dark?: boolean,
|
23
23
|
data?: { [key: string]: string },
|
24
24
|
disabled?: boolean,
|
25
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
25
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
26
26
|
icon?: string,
|
27
27
|
inputId?: string,
|
28
28
|
multi?: boolean,
|
@@ -18,7 +18,7 @@ type SelectableIconProps = {
|
|
18
18
|
customIcon?: {[key: string] :SVGElement},
|
19
19
|
disabled?: boolean,
|
20
20
|
data?: Object,
|
21
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
21
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
22
22
|
icon: string,
|
23
23
|
inputId: string,
|
24
24
|
inputs: string,
|
@@ -15,7 +15,7 @@ export type SelectableListItemProps = {
|
|
15
15
|
className?: string;
|
16
16
|
data?: object;
|
17
17
|
defaultChecked?: boolean;
|
18
|
-
htmlOptions?: { [key: string]: string | number | boolean |
|
18
|
+
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
19
19
|
id?: string;
|
20
20
|
label?: string;
|
21
21
|
text?: string;
|
@@ -13,7 +13,7 @@ type SelectableListProps = {
|
|
13
13
|
children?: React.ReactElement[],
|
14
14
|
className?: string,
|
15
15
|
data?: object,
|
16
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
16
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
17
17
|
id?: string,
|
18
18
|
variant?: 'checkbox' | 'radio',
|
19
19
|
}
|
@@ -15,7 +15,7 @@ type SourceProps = {
|
|
15
15
|
className?: string,
|
16
16
|
data?: { [key: string]: string },
|
17
17
|
hideIcon: boolean,
|
18
|
-
htmlOptions?: {[key: string]: string | number | boolean |
|
18
|
+
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
19
19
|
id?: string,
|
20
20
|
source?: string,
|
21
21
|
type: "events" | "inbound" | "outbound" | "prospecting" | "referral" | "retail" | "user",
|
@@ -2,61 +2,113 @@
|
|
2
2
|
@import "../tokens/opacity";
|
3
3
|
@import "../tokens/spacing";
|
4
4
|
|
5
|
-
$pb_star_rating_number_width: 30px;
|
6
|
-
$pb_star_rating_wrapper_width: 90px;
|
7
|
-
$pb_star_rating_height: 26px;
|
8
5
|
|
9
|
-
[class
|
10
|
-
|
11
|
-
|
6
|
+
[class*=pb_star_rating_kit] {
|
7
|
+
display: flex;
|
8
|
+
align-items: flex-end;
|
12
9
|
justify-content: flex-start;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
10
|
+
|
11
|
+
path {
|
12
|
+
&.suble_star_dark {
|
13
|
+
fill: $text_dk_default;
|
14
|
+
}
|
15
|
+
&.suble_star_light {
|
16
|
+
fill: $text_lt_default;
|
17
|
+
}
|
18
|
+
&.outline_star_dark {
|
19
|
+
stroke: $text_dk_lighter;
|
20
|
+
}
|
21
|
+
&.outline_star_light {
|
22
|
+
stroke: $text_lt_lighter;
|
23
|
+
}
|
24
|
+
&.empty_star_dark {
|
25
|
+
fill: $border_dark;
|
26
|
+
}
|
27
|
+
&.empty_star_light {
|
28
|
+
fill: $border_light;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.pb_star_rating_number_xs {
|
33
|
+
max-height: 14px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.pb_star_rating_number_sm {
|
37
|
+
max-height: 14px;
|
38
|
+
}
|
39
|
+
|
40
|
+
.pb_star_rating_number_md {
|
41
|
+
max-height: 24px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.pb_star_rating_number_lg {
|
45
|
+
max-height: 40px;
|
46
|
+
height: 29px;
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
$star-styles: (
|
51
|
+
yellow_star: (color: #F9BB00),
|
52
|
+
primary_star: (color: #0056CF),
|
53
|
+
suble_star_light: (color: $text_lt_default),
|
54
|
+
suble_star_dark: (color: $text_dk_default),
|
55
|
+
empty_star_dark: (color: $border_dark),
|
56
|
+
empty_star_light: (color: $border_light),
|
57
|
+
outline_empty_star_dark: (color: transparent),
|
58
|
+
outline_empty_star_light: (color: transparent)
|
59
|
+
);
|
60
|
+
|
61
|
+
@each $class, $styles in $star-styles {
|
62
|
+
.#{$class} {
|
63
|
+
@each $property, $value in $styles {
|
64
|
+
#{$property}: $value;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
$star-styles: (
|
71
|
+
pb_star_react_xs: (font-size: $text_small, ),
|
72
|
+
pb_star_react_sm: (font-size: $text_base, ),
|
73
|
+
pb_star_react_md: (font-size: 24px, ),
|
74
|
+
pb_star_react_lg: (font-size: 48px, )
|
75
|
+
);
|
76
|
+
|
77
|
+
@each $class, $styles in $star-styles {
|
78
|
+
.#{$class} {
|
79
|
+
@each $property, $value in $styles {
|
80
|
+
#{$property}: $value;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
$star-styles: (
|
86
|
+
pb_star_xs: (font-size: $text_small, width: 1em, margin-right: 4px),
|
87
|
+
pb_star_sm: (font-size: $text_base, width: 1em, margin-right: 4px),
|
88
|
+
pb_star_md: (font-size: 24px, width: 1em, margin-right: 6px),
|
89
|
+
pb_star_lg: (font-size: 48px, width: 1em, margin-right: 12px)
|
90
|
+
);
|
91
|
+
|
92
|
+
@each $class, $styles in $star-styles {
|
93
|
+
.#{$class} {
|
94
|
+
@each $property, $value in $styles {
|
95
|
+
#{$property}: $value;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
$star-padding: (
|
101
|
+
pb_star_padding_xs: (margin-right: 4px),
|
102
|
+
pb_star_padding_sm: (margin-right: 4px),
|
103
|
+
pb_star_padding_md: (margin-right: 6px),
|
104
|
+
pb_star_padding_lg: (margin-right: 12px)
|
105
|
+
);
|
106
|
+
|
107
|
+
@each $class, $styles in $star-padding {
|
108
|
+
.#{$class} {
|
109
|
+
@each $property, $value in $styles {
|
110
|
+
#{$property}: $value;
|
111
|
+
}
|
60
112
|
}
|
61
113
|
}
|
62
114
|
}
|