playbook_ui 13.32.0.pre.alpha.PLAY14143297 → 13.32.0.pre.alpha.play1416movealiaslogic3239
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 +17 -17
- data/app/pb_kits/playbook/index.js +151 -0
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_no_image.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +3 -3
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +2 -0
- data/app/pb_kits/playbook/pb_background/_background.tsx +7 -13
- data/app/pb_kits/playbook/pb_background/docs/_background_category.jsx +2 -2
- data/app/pb_kits/playbook/pb_background/docs/_background_gradient.jsx +1 -1
- data/app/pb_kits/playbook/pb_background/docs/_background_image.jsx +2 -2
- data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -1
- data/app/pb_kits/playbook/pb_background/docs/_background_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_background/docs/_background_status.jsx +2 -2
- data/app/pb_kits/playbook/pb_background/docs/_background_status_subtle.jsx +2 -2
- data/app/pb_kits/playbook/pb_background/docs/_background_white.jsx +1 -1
- data/app/pb_kits/playbook/pb_badge/_badge.scss +2 -2
- data/app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +0 -4
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/_body.scss +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_articles.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_styled.jsx +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +2 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_form.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_hover.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +2 -0
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.test.js +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +1 -1
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +1 -1
- data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +1 -1
- data/app/pb_kits/playbook/pb_card/_card.scss +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +1 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +1 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +3 -3
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +1 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +1 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.jsx +1 -1
- data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +2 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +2 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +2 -2
- data/app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.ts +2 -2
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +1 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +2 -2
- data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +1 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_close.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_overrides.scss +4 -2
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +4 -4
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +4 -4
- data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.test.js +1 -1
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_detail/docs/_detail_bold.jsx +1 -1
- data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_detail/docs/_detail_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_separators.jsx +3 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_should_close_on_overlay.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes.jsx +2 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_stacked_alert.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +29 -30
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx +1 -1
- data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +7 -12
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -3
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +4 -4
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +0 -11
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.rb +1 -1
- data/app/pb_kits/playbook/pb_dropdown/index.js +3 -54
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx +3 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx +3 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_message.jsx +3 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.jsx +3 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx +4 -3
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_only.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/filter.test.js +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_align.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_item_align_self.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_item_example.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_justify.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_reverse.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_spacing.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_wrap.jsx +1 -1
- data/app/pb_kits/playbook/pb_form_group/form_group.test.js +1 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +8 -111
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +3 -11
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb +1 -5
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx +0 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.html.erb +0 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx +0 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.html.erb +1 -4
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx +2 -3
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb +0 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx +0 -2
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -5
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +2 -2
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +1 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.jsx +1 -1
- data/app/pb_kits/playbook/pb_hashtag/hashtag.test.js +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/home_adress_street.test.js +1 -1
- data/app/pb_kits/playbook/pb_icon/_icon.scss +1 -210
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +7 -97
- data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon/icon.rb +16 -24
- data/app/pb_kits/playbook/pb_icon/icon_aliases.json +39 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +2 -2
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_sizes.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_vertical.jsx +1 -1
- data/app/pb_kits/playbook/pb_label_value/_label_value.scss +1 -1
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details.jsx +1 -1
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.jsx +1 -1
- data/app/pb_kits/playbook/pb_layout/layout.test.js +1 -1
- data/app/pb_kits/playbook/pb_legend/docs/_legend_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_legend/docs/_legend_custom_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_legend/docs/_legend_prefix.jsx +1 -1
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.tsx +2 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.tsx +2 -0
- data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +1 -0
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_compound_component.jsx +2 -1
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_current_photo.jsx +2 -1
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_custom_header.jsx +2 -1
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.jsx +2 -1
- data/app/pb_kits/playbook/pb_lightbox/lightbox.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/map.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/pbMapTheme.ts +1 -1
- data/app/pb_kits/playbook/pb_message/_message.tsx +2 -0
- data/app/pb_kits/playbook/pb_message/_message_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_message/docs/_message_timestamp.jsx +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +2 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse.jsx +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +2 -2
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_with_all_options.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_nav_with_font_control.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_nav/nav.rb +0 -9
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx +1 -1
- data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_percentage.tsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +3 -3
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -0
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.jsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_confirmation.jsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.jsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx +1 -1
- data/app/pb_kits/playbook/pb_passphrase/passphrase.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +1 -2
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +1 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_access_input_element.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_clear_field.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +1 -1
- data/app/pb_kits/playbook/pb_pill/_pill.scss +2 -2
- data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/popover.test.js +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +2 -2
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_align.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_flex.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_muted.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_value.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_width.jsx +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_error.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +2 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx +4 -5
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.jsx +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed.jsx +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +1 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_error.jsx +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_inline_compact.jsx +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_inline_show_arrow.jsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +4 -4
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +2 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_error.jsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.test.js +1 -1
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +1 -0
- data/app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_checkbox.jsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_radio.jsx +1 -1
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +2 -11
- data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +5 -25
- data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +0 -6
- data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_unit.jsx +1 -1
- data/app/pb_kits/playbook/pb_stat_change/docs/_stat_change_unit_two.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/_table.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/index.ts +4 -4
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/table.test.js +0 -2
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +4 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +27 -45
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/{index.ts → index.tsx} +3 -3
- data/app/pb_kits/playbook/pb_time/_time.tsx +3 -3
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +4 -4
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_time_range_inline_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +2 -2
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.jsx +1 -1
- data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +1 -0
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +10 -10
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +5 -5
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +1 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom.jsx +3 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_custom_radio.jsx +3 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default.jsx +3 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_disabled.jsx +3 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +2 -2
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +3 -1
- data/app/pb_kits/playbook/pb_tooltip/tooltip.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +2 -1
- data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +0 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +4 -4
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +7 -11
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +3 -8
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +1 -6
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +19 -18
- data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx +3 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx +3 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +1 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +57 -22
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +5 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +3 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +23 -20
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +31 -24
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +23 -20
- data/app/pb_kits/playbook/pb_typeahead/index.ts +31 -31
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.jsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_subtitle.jsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_text_only.jsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_with_territory.jsx +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +6 -6
- data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.tsx +235 -236
- data/app/pb_kits/playbook/pb_user_badge/badges/veteran.tsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +63 -68
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/walkthrough.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +4 -3
- data/app/pb_kits/playbook/playbook-doc.js +215 -0
- data/app/pb_kits/playbook/playbook-rails-react-bindings.js +45 -0
- data/app/pb_kits/playbook/playbook-rails.js +45 -0
- data/app/pb_kits/playbook/utilities/_hover.scss +4 -4
- data/dist/playbook-rails.js +59 -1
- data/dist/reset.css +1 -1
- data/lib/playbook/engine.rb +0 -2
- data/lib/playbook/forms/builder.rb +0 -1
- data/lib/playbook/version.rb +1 -1
- metadata +8 -33
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb +0 -10
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +0 -31
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb +0 -10
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +0 -31
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +0 -53
- data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb +0 -48
- data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.md +0 -3
- data/app/pb_kits/playbook/pb_nav/index.js +0 -43
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb +0 -1
- data/app/pb_kits/playbook/pb_star_rating/index.js +0 -50
- data/app/pb_kits/playbook/tokens/exports/_border_radius.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_colors.module.scss +0 -26
- data/app/pb_kits/playbook/tokens/exports/_line_height.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_opacity.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_positioning.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_scale.module.scss +0 -13
- data/app/pb_kits/playbook/tokens/exports/_screen_sizes.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_shadows.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_spacing.module.scss +0 -10
- data/app/pb_kits/playbook/tokens/exports/_typography.module.scss +0 -24
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -50
- data/dist/chunks/_typeahead.js +0 -35
- data/dist/chunks/_weekday_stacked.js +0 -101
- data/dist/chunks/lazysizes.js +0 -1
- data/dist/chunks/pb_form_validation.js +0 -1
- data/dist/chunks/vendor.js +0 -1
- data/dist/playbook-doc.js +0 -758
- data/dist/playbook-rails-react-bindings.js +0 -1
- data/dist/playbook.css +0 -4
- data/lib/playbook/forms/builder/star_rating_field.rb +0 -14
data/dist/reset.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
*{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:Power Centra,Helvetica Neue,Helvetica,Arial,sans_serif;font-size:15.5px;line-height:1.5;background-color:#f3f7fb;height:100%;letter-spacing:.003em;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242b42;margin:0!important;padding:0!important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056cf}
|
1
|
+
*{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:"Power Centra","Helvetica Neue",Helvetica,Arial,sans_serif;font-size:15.5px;line-height:1.5;background-color:#f3f7fb;height:100%;letter-spacing:.003em;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242b42;margin:0 !important;padding:0 !important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056cf}
|
data/lib/playbook/engine.rb
CHANGED
@@ -17,13 +17,11 @@ module Playbook
|
|
17
17
|
if config.respond_to?(:assets)
|
18
18
|
config.assets.paths ||= []
|
19
19
|
config.assets.paths << Playbook::Engine.root.join("fonts")
|
20
|
-
config.assets.paths << Playbook::Engine.root.join("dist")
|
21
20
|
config.assets.paths << Playbook::Engine.root.join("app/pb_kits/playbook/pb_*")
|
22
21
|
end
|
23
22
|
|
24
23
|
if config.respond_to?(:sass)
|
25
24
|
config.sass.load_paths ||= []
|
26
|
-
config.sass.load_paths << Playbook::Engine.root.join("dist")
|
27
25
|
config.sass.load_paths << Playbook::Engine.root.join("app/pb_kits/playbook")
|
28
26
|
end
|
29
27
|
end
|
@@ -14,7 +14,6 @@ module Playbook
|
|
14
14
|
require_relative "builder/multi_level_select_field"
|
15
15
|
require_relative "builder/phone_number_field"
|
16
16
|
require_relative "builder/dropdown_field"
|
17
|
-
require_relative "builder/star_rating_field"
|
18
17
|
|
19
18
|
prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
|
20
19
|
prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.32.0.pre.alpha.
|
4
|
+
version: 13.32.0.pre.alpha.play1416movealiaslogic3239
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-07-
|
12
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -240,6 +240,7 @@ files:
|
|
240
240
|
- Rakefile
|
241
241
|
- app/pb_kits/playbook/_playbook.scss
|
242
242
|
- app/pb_kits/playbook/_reset.scss
|
243
|
+
- app/pb_kits/playbook/index.js
|
243
244
|
- app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx
|
244
245
|
- app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx
|
245
246
|
- app/pb_kits/playbook/pb_advanced_table/Components/LoadingCell.tsx
|
@@ -1100,13 +1101,9 @@ files:
|
|
1100
1101
|
- app/pb_kits/playbook/pb_dropdown/_dropdown.scss
|
1101
1102
|
- app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
|
1102
1103
|
- app/pb_kits/playbook/pb_dropdown/context/index.tsx
|
1103
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb
|
1104
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
|
1105
1104
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb
|
1106
1105
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
|
1107
1106
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
|
1108
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb
|
1109
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
|
1110
1107
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb
|
1111
1108
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx
|
1112
1109
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
|
@@ -1326,7 +1323,6 @@ files:
|
|
1326
1323
|
- app/pb_kits/playbook/pb_form_group/form_group.rb
|
1327
1324
|
- app/pb_kits/playbook/pb_form_group/form_group.test.js
|
1328
1325
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.scss
|
1329
|
-
- app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx
|
1330
1326
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.tsx
|
1331
1327
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb
|
1332
1328
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx
|
@@ -1463,6 +1459,7 @@ files:
|
|
1463
1459
|
- app/pb_kits/playbook/pb_icon/icon.html.erb
|
1464
1460
|
- app/pb_kits/playbook/pb_icon/icon.rb
|
1465
1461
|
- app/pb_kits/playbook/pb_icon/icon.test.js
|
1462
|
+
- app/pb_kits/playbook/pb_icon/icon_aliases.json
|
1466
1463
|
- app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss
|
1467
1464
|
- app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx
|
1468
1465
|
- app/pb_kits/playbook/pb_icon_circle/docs/_description.md
|
@@ -1873,8 +1870,6 @@ files:
|
|
1873
1870
|
- app/pb_kits/playbook/pb_nav/docs/_subtle_no_highlight_nav.jsx
|
1874
1871
|
- app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.html.erb
|
1875
1872
|
- app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx
|
1876
|
-
- app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb
|
1877
|
-
- app/pb_kits/playbook/pb_nav/docs/_tab_nav.md
|
1878
1873
|
- app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.html.erb
|
1879
1874
|
- app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.jsx
|
1880
1875
|
- app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb
|
@@ -1882,7 +1877,6 @@ files:
|
|
1882
1877
|
- app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md
|
1883
1878
|
- app/pb_kits/playbook/pb_nav/docs/example.yml
|
1884
1879
|
- app/pb_kits/playbook/pb_nav/docs/index.js
|
1885
|
-
- app/pb_kits/playbook/pb_nav/index.js
|
1886
1880
|
- app/pb_kits/playbook/pb_nav/item.html.erb
|
1887
1881
|
- app/pb_kits/playbook/pb_nav/item.rb
|
1888
1882
|
- app/pb_kits/playbook/pb_nav/nav.html.erb
|
@@ -2337,14 +2331,12 @@ files:
|
|
2337
2331
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx
|
2338
2332
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb
|
2339
2333
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx
|
2340
|
-
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb
|
2341
2334
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb
|
2342
2335
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx
|
2343
2336
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb
|
2344
2337
|
- app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx
|
2345
2338
|
- app/pb_kits/playbook/pb_star_rating/docs/example.yml
|
2346
2339
|
- app/pb_kits/playbook/pb_star_rating/docs/index.js
|
2347
|
-
- app/pb_kits/playbook/pb_star_rating/index.js
|
2348
2340
|
- app/pb_kits/playbook/pb_star_rating/star_rating.html.erb
|
2349
2341
|
- app/pb_kits/playbook/pb_star_rating/star_rating.rb
|
2350
2342
|
- app/pb_kits/playbook/pb_star_rating/star_rating.test.js
|
@@ -2565,7 +2557,7 @@ files:
|
|
2565
2557
|
- app/pb_kits/playbook/pb_textarea/docs/_textarea_resize.jsx
|
2566
2558
|
- app/pb_kits/playbook/pb_textarea/docs/example.yml
|
2567
2559
|
- app/pb_kits/playbook/pb_textarea/docs/index.js
|
2568
|
-
- app/pb_kits/playbook/pb_textarea/index.
|
2560
|
+
- app/pb_kits/playbook/pb_textarea/index.tsx
|
2569
2561
|
- app/pb_kits/playbook/pb_textarea/textarea.html.erb
|
2570
2562
|
- app/pb_kits/playbook/pb_textarea/textarea.rb
|
2571
2563
|
- app/pb_kits/playbook/pb_textarea/textarea.test.js
|
@@ -2901,6 +2893,9 @@ files:
|
|
2901
2893
|
- app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb
|
2902
2894
|
- app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.rb
|
2903
2895
|
- app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.test.jsx
|
2896
|
+
- app/pb_kits/playbook/playbook-doc.js
|
2897
|
+
- app/pb_kits/playbook/playbook-rails-react-bindings.js
|
2898
|
+
- app/pb_kits/playbook/playbook-rails.js
|
2904
2899
|
- app/pb_kits/playbook/tokens/_animation-curves.scss
|
2905
2900
|
- app/pb_kits/playbook/tokens/_border_radius.scss
|
2906
2901
|
- app/pb_kits/playbook/tokens/_colors.scss
|
@@ -2918,25 +2913,15 @@ files:
|
|
2918
2913
|
- app/pb_kits/playbook/tokens/_transition.scss
|
2919
2914
|
- app/pb_kits/playbook/tokens/_typography.scss
|
2920
2915
|
- app/pb_kits/playbook/tokens/_vertical_align.scss
|
2921
|
-
- app/pb_kits/playbook/tokens/exports/_border_radius.module.scss
|
2922
2916
|
- app/pb_kits/playbook/tokens/exports/_border_radius.scss
|
2923
|
-
- app/pb_kits/playbook/tokens/exports/_colors.module.scss
|
2924
2917
|
- app/pb_kits/playbook/tokens/exports/_colors.scss
|
2925
|
-
- app/pb_kits/playbook/tokens/exports/_line_height.module.scss
|
2926
2918
|
- app/pb_kits/playbook/tokens/exports/_line_height.scss
|
2927
|
-
- app/pb_kits/playbook/tokens/exports/_opacity.module.scss
|
2928
2919
|
- app/pb_kits/playbook/tokens/exports/_opacity.scss
|
2929
|
-
- app/pb_kits/playbook/tokens/exports/_positioning.module.scss
|
2930
2920
|
- app/pb_kits/playbook/tokens/exports/_positioning.scss
|
2931
|
-
- app/pb_kits/playbook/tokens/exports/_scale.module.scss
|
2932
2921
|
- app/pb_kits/playbook/tokens/exports/_scale.scss
|
2933
|
-
- app/pb_kits/playbook/tokens/exports/_screen_sizes.module.scss
|
2934
2922
|
- app/pb_kits/playbook/tokens/exports/_screen_sizes.scss
|
2935
|
-
- app/pb_kits/playbook/tokens/exports/_shadows.module.scss
|
2936
2923
|
- app/pb_kits/playbook/tokens/exports/_shadows.scss
|
2937
|
-
- app/pb_kits/playbook/tokens/exports/_spacing.module.scss
|
2938
2924
|
- app/pb_kits/playbook/tokens/exports/_spacing.scss
|
2939
|
-
- app/pb_kits/playbook/tokens/exports/_typography.module.scss
|
2940
2925
|
- app/pb_kits/playbook/tokens/exports/_typography.scss
|
2941
2926
|
- app/pb_kits/playbook/tokens/exports/exports.d.ts
|
2942
2927
|
- app/pb_kits/playbook/tokens/index.scss
|
@@ -2970,7 +2955,6 @@ files:
|
|
2970
2955
|
- app/pb_kits/playbook/utilities/flexbox_global_props/_justify_content.scss
|
2971
2956
|
- app/pb_kits/playbook/utilities/flexbox_global_props/_justify_self.scss
|
2972
2957
|
- app/pb_kits/playbook/utilities/flexbox_global_props/_order.scss
|
2973
|
-
- app/pb_kits/playbook/utilities/globalPropNames.mjs
|
2974
2958
|
- app/pb_kits/playbook/utilities/globalProps.ts
|
2975
2959
|
- app/pb_kits/playbook/utilities/object.ts
|
2976
2960
|
- app/pb_kits/playbook/utilities/props.ts
|
@@ -2990,16 +2974,8 @@ files:
|
|
2990
2974
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
2991
2975
|
- app/pb_kits/playbook/utilities/text.ts
|
2992
2976
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
2993
|
-
- dist/chunks/_typeahead.js
|
2994
|
-
- dist/chunks/_weekday_stacked.js
|
2995
|
-
- dist/chunks/lazysizes.js
|
2996
|
-
- dist/chunks/pb_form_validation.js
|
2997
|
-
- dist/chunks/vendor.js
|
2998
2977
|
- dist/menu.yml
|
2999
|
-
- dist/playbook-doc.js
|
3000
|
-
- dist/playbook-rails-react-bindings.js
|
3001
2978
|
- dist/playbook-rails.js
|
3002
|
-
- dist/playbook.css
|
3003
2979
|
- dist/reset.css
|
3004
2980
|
- lib/playbook.rb
|
3005
2981
|
- lib/playbook/align_content.rb
|
@@ -3028,7 +3004,6 @@ files:
|
|
3028
3004
|
- lib/playbook/forms/builder/multi_level_select_field.rb
|
3029
3005
|
- lib/playbook/forms/builder/phone_number_field.rb
|
3030
3006
|
- lib/playbook/forms/builder/select_field.rb
|
3031
|
-
- lib/playbook/forms/builder/star_rating_field.rb
|
3032
3007
|
- lib/playbook/forms/builder/typeahead_field.rb
|
3033
3008
|
- lib/playbook/hover.rb
|
3034
3009
|
- lib/playbook/justify_content.rb
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
options = [
|
3
|
-
{ label: 'United States', value: 'United States', id: 'us' },
|
4
|
-
{ label: 'Canada', value: 'Canada', id: 'ca' },
|
5
|
-
{ label: 'Pakistan', value: 'Pakistan', id: 'pk' },
|
6
|
-
]
|
7
|
-
|
8
|
-
%>
|
9
|
-
|
10
|
-
<%= pb_rails("dropdown", props: { blank_selection: "Select One...", options: options }) %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Dropdown } from 'playbook-ui'
|
3
|
-
|
4
|
-
const DropdownBlankSelection = (props) => {
|
5
|
-
const options = [
|
6
|
-
{
|
7
|
-
label: "United States",
|
8
|
-
value: "United States",
|
9
|
-
},
|
10
|
-
{
|
11
|
-
label: "Canada",
|
12
|
-
value: "Canada",
|
13
|
-
},
|
14
|
-
{
|
15
|
-
label: "Pakistan",
|
16
|
-
value: "Pakistan",
|
17
|
-
}
|
18
|
-
];
|
19
|
-
|
20
|
-
return (
|
21
|
-
<>
|
22
|
-
<Dropdown
|
23
|
-
blankSelection="Select one..."
|
24
|
-
options={options}
|
25
|
-
{...props}
|
26
|
-
/>
|
27
|
-
</>
|
28
|
-
)
|
29
|
-
}
|
30
|
-
|
31
|
-
export default DropdownBlankSelection
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
options = [
|
3
|
-
{ label: 'United States', value: 'United States', id: 'us' },
|
4
|
-
{ label: 'Canada', value: 'Canada', id: 'ca' },
|
5
|
-
{ label: 'Pakistan', value: 'Pakistan', id: 'pk' },
|
6
|
-
]
|
7
|
-
|
8
|
-
%>
|
9
|
-
|
10
|
-
<%= pb_rails("dropdown", props: {options: options, default_value: options.last}) %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Dropdown } from 'playbook-ui'
|
3
|
-
|
4
|
-
const DropdownDefaultValue = (props) => {
|
5
|
-
const options = [
|
6
|
-
{
|
7
|
-
label: "United States",
|
8
|
-
value: "United States",
|
9
|
-
},
|
10
|
-
{
|
11
|
-
label: "Canada",
|
12
|
-
value: "Canada",
|
13
|
-
},
|
14
|
-
{
|
15
|
-
label: "Pakistan",
|
16
|
-
value: "Pakistan",
|
17
|
-
}
|
18
|
-
];
|
19
|
-
|
20
|
-
return (
|
21
|
-
<>
|
22
|
-
<Dropdown
|
23
|
-
defaultValue={options[2]}
|
24
|
-
options={options}
|
25
|
-
{...props}
|
26
|
-
/>
|
27
|
-
</>
|
28
|
-
)
|
29
|
-
}
|
30
|
-
|
31
|
-
export default DropdownDefaultValue
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { render, screen } from '../utilities/test-utils';
|
3
|
-
import FormPill from './_form_pill';
|
4
|
-
|
5
|
-
const testId = 'formpill';
|
6
|
-
|
7
|
-
test('should render classname', () => {
|
8
|
-
render(
|
9
|
-
<FormPill
|
10
|
-
data={{ testid: testId }}
|
11
|
-
text="test"
|
12
|
-
/>
|
13
|
-
)
|
14
|
-
|
15
|
-
const kit = screen.getByTestId(testId)
|
16
|
-
expect(kit).toHaveClass('pb_form_pill_kit_primary none')
|
17
|
-
});
|
18
|
-
|
19
|
-
test('displays text content', () => {
|
20
|
-
render(
|
21
|
-
<FormPill
|
22
|
-
data={{ testid: testId }}
|
23
|
-
text="test"
|
24
|
-
/>
|
25
|
-
)
|
26
|
-
|
27
|
-
const text = screen.getByText("test")
|
28
|
-
expect(text).toBeInTheDocument()
|
29
|
-
});
|
30
|
-
|
31
|
-
test('displays color variant', () => {
|
32
|
-
render(
|
33
|
-
<FormPill
|
34
|
-
color={"neutral"}
|
35
|
-
data={{ testid: testId }}
|
36
|
-
text={"test"}
|
37
|
-
/>
|
38
|
-
)
|
39
|
-
const kit = screen.getByTestId(testId)
|
40
|
-
expect(kit).toHaveClass(`pb_form_pill_kit_neutral none`)
|
41
|
-
});
|
42
|
-
|
43
|
-
test('displays size variant', () => {
|
44
|
-
render(
|
45
|
-
<FormPill
|
46
|
-
data={{ testid: testId }}
|
47
|
-
size={"small"}
|
48
|
-
text={"test"}
|
49
|
-
/>
|
50
|
-
)
|
51
|
-
const kit = screen.getByTestId('formpill')
|
52
|
-
expect(kit).toHaveClass(`pb_form_pill_kit_primary small none`)
|
53
|
-
});
|
@@ -1,48 +0,0 @@
|
|
1
|
-
<%= pb_rails("nav", props: { orientation: "horizontal", tabbing: true, padding_bottom: "sm" }) do %>
|
2
|
-
<%= pb_rails("nav/item", props: { text: "About", active: true, data: { pb_tab_target: "about" }, cursor: "pointer" }) %>
|
3
|
-
<%= pb_rails("nav/item", props: { text: "Case Studies", data: { pb_tab_target: "case_studies" }, cursor: "pointer" }) %>
|
4
|
-
<%= pb_rails("nav/item", props: { text: "Service", data: { pb_tab_target: "service" }, cursor: "pointer" }) %>
|
5
|
-
<%= pb_rails("nav/item", props: { text: "Contacts", data: { pb_tab_target: "contacts" }, cursor: "pointer" }) %>
|
6
|
-
<% end %>
|
7
|
-
|
8
|
-
<div id="about">
|
9
|
-
<%= pb_rails("body", props: { text: "This is about!" }) %>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div id="case_studies">
|
13
|
-
<%= pb_rails("body", props: { text: "This is case studies!" }) %>
|
14
|
-
</div>
|
15
|
-
|
16
|
-
<div id="service">
|
17
|
-
<%= pb_rails("body", props: { text: "This is service!" }) %>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<div id="contacts">
|
21
|
-
<%= pb_rails("body", props: { text: "This is contacts!" }) %>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<script>
|
25
|
-
// The script in the code snippet below is for demonstrating the active state and NOT needed for the kit to function.
|
26
|
-
// The active prop can be used to highlight this active state.
|
27
|
-
const navItemClass = "pb_nav_list_kit_item"
|
28
|
-
const navItemActiveClass = "pb_nav_list_kit_item_active"
|
29
|
-
const dataNavItems = "[data-pb-tab-target]"
|
30
|
-
|
31
|
-
const navItemTabs = document.querySelectorAll(dataNavItems)
|
32
|
-
navItemTabs.forEach(navItemTab => {
|
33
|
-
navItemTab.addEventListener("click", event => {
|
34
|
-
const navItemTabs = document.querySelectorAll(dataNavItems)
|
35
|
-
navItemTabs.forEach(navItemTab => {
|
36
|
-
if (navItemTab === event.target.closest(dataNavItems)) {
|
37
|
-
navItemTab.classList.add(navItemActiveClass)
|
38
|
-
navItemTab.classList.remove(navItemClass)
|
39
|
-
} else {
|
40
|
-
if (navItemTab.classList.contains(navItemActiveClass)) {
|
41
|
-
navItemTab.classList.remove(navItemActiveClass)
|
42
|
-
navItemTab.classList.add(navItemClass)
|
43
|
-
}
|
44
|
-
}
|
45
|
-
})
|
46
|
-
})
|
47
|
-
})
|
48
|
-
</script>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The Nav kit can also be used to create dynamic tabbing. To do so, use the boolean `tabbing` prop as shown here.
|
2
|
-
|
3
|
-
All divs you want to use as tabs MUST have an id attached to them. To link the tab to the nav, use the required data attribute `pb_tab_target` on each nav/item and pass it the id of the tab you want linked to that specific nav/item. See code example below to see this in action.
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import PbEnhancedElement from '../pb_enhanced_element'
|
2
|
-
|
3
|
-
const NAV_SELECTOR = '[data-pb-nav-tab]'
|
4
|
-
const NAV_ITEM_SELECTOR = '[data-pb-tab-target]'
|
5
|
-
|
6
|
-
export default class PbNav extends PbEnhancedElement {
|
7
|
-
static get selector() {
|
8
|
-
return NAV_SELECTOR
|
9
|
-
}
|
10
|
-
|
11
|
-
connect() {
|
12
|
-
this.hideAndAddEventListeners()
|
13
|
-
}
|
14
|
-
|
15
|
-
hideAndAddEventListeners() {
|
16
|
-
const navItems = this.element.querySelectorAll(NAV_ITEM_SELECTOR)
|
17
|
-
navItems.forEach((navItem) => {
|
18
|
-
if (!navItem.className.includes('active')) {
|
19
|
-
this.changeContentDisplay(navItem.dataset.pbTabTarget, 'none')
|
20
|
-
}
|
21
|
-
|
22
|
-
navItem.addEventListener('click', event => this.handleNavItemClick(event))
|
23
|
-
})
|
24
|
-
}
|
25
|
-
|
26
|
-
handleNavItemClick(event) {
|
27
|
-
event.preventDefault()
|
28
|
-
const navItem = event.target.closest(NAV_ITEM_SELECTOR)
|
29
|
-
this.changeContentDisplay(navItem.dataset.pbTabTarget, 'block')
|
30
|
-
|
31
|
-
const navItems = this.element.querySelectorAll(NAV_ITEM_SELECTOR)
|
32
|
-
navItems.forEach((navItemSelected) => {
|
33
|
-
if (navItem !== navItemSelected) {
|
34
|
-
this.changeContentDisplay(navItemSelected.dataset.pbTabTarget, 'none')
|
35
|
-
}
|
36
|
-
})
|
37
|
-
}
|
38
|
-
|
39
|
-
changeContentDisplay(contentId, display) {
|
40
|
-
const content = document.getElementById(contentId)
|
41
|
-
content.style.display = display
|
42
|
-
}
|
43
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= pb_rails("star_rating", props: { padding_bottom: "xs", variant: "interactive" }) %>
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import PbEnhancedElement from "../pb_enhanced_element";
|
2
|
-
|
3
|
-
const STAR_RATING_SELECTOR = "[data-pb-star-rating]";
|
4
|
-
const STAR_RATING_INPUT_ID = "star-rating-input";
|
5
|
-
|
6
|
-
export default class PbStarRating extends PbEnhancedElement {
|
7
|
-
static get selector() {
|
8
|
-
return STAR_RATING_SELECTOR;
|
9
|
-
}
|
10
|
-
|
11
|
-
connect() {
|
12
|
-
this.element.addEventListener("click", (event) => {
|
13
|
-
const clickedStarId = event.currentTarget.id;
|
14
|
-
this.updateStarColors(clickedStarId);
|
15
|
-
this.updateHiddenInputValue(clickedStarId);
|
16
|
-
});
|
17
|
-
}
|
18
|
-
|
19
|
-
updateStarColors(clickedStarId) {
|
20
|
-
const allStars = document.querySelectorAll(STAR_RATING_SELECTOR);
|
21
|
-
|
22
|
-
allStars.forEach(star => {
|
23
|
-
const starId = star.id;
|
24
|
-
const icon = star.querySelector(".interactive-star-icon");
|
25
|
-
|
26
|
-
if (icon) {
|
27
|
-
if (starId <= clickedStarId) {
|
28
|
-
if (star.classList.contains("yellow_star")) {
|
29
|
-
icon.classList.add("yellow-star-selected");
|
30
|
-
} else if (star.classList.contains("primary_star")) {
|
31
|
-
icon.classList.add("primary-star-selected");
|
32
|
-
} else if (star.classList.contains("suble_star_light")) {
|
33
|
-
icon.classList.add("suble-star-selected");
|
34
|
-
} else {
|
35
|
-
icon.classList.add("yellow-star-selected");
|
36
|
-
}
|
37
|
-
} else {
|
38
|
-
icon.classList.remove("yellow-star-selected", "primary-star-selected", "suble-star-selected");
|
39
|
-
}
|
40
|
-
}
|
41
|
-
});
|
42
|
-
}
|
43
|
-
|
44
|
-
updateHiddenInputValue(value) {
|
45
|
-
const hiddenInput = document.getElementById(STAR_RATING_INPUT_ID);
|
46
|
-
if (hiddenInput) {
|
47
|
-
hiddenInput.value = value;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
@import "../colors";
|
2
|
-
|
3
|
-
:export {
|
4
|
-
@mixin export-colors($colors-list) {
|
5
|
-
@each $name, $color in $colors-list {
|
6
|
-
#{"" + $name}: $color;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
@include export-colors($product_colors);
|
10
|
-
@include export-colors($status_colors);
|
11
|
-
@include export-colors($data_colors);
|
12
|
-
@include export-colors($shadow_colors);
|
13
|
-
@include export-colors($colors);
|
14
|
-
@include export-colors($interface_colors);
|
15
|
-
@include export-colors($main_colors);
|
16
|
-
@include export-colors($background_colors);
|
17
|
-
@include export-colors($card_colors);
|
18
|
-
@include export-colors($active_colors);
|
19
|
-
@include export-colors($action_colors);
|
20
|
-
@include export-colors($hover_colors);
|
21
|
-
@include export-colors($border_colors);
|
22
|
-
@include export-colors($text_colors);
|
23
|
-
@include export-colors($category_colors);
|
24
|
-
gradient_start: $gradient_start;
|
25
|
-
gradient_end: $gradient_end;
|
26
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
@import "../typography";
|
2
|
-
|
3
|
-
:export {
|
4
|
-
font_family_base: $font_family_base;
|
5
|
-
text_jumbo: $text_jumbo;
|
6
|
-
text_largest: $text_largest;
|
7
|
-
text_larger: $text_larger;
|
8
|
-
text_large: $text_large;
|
9
|
-
text_base: $text_base;
|
10
|
-
text_default: $text_default;
|
11
|
-
text_normal: $text_normal;
|
12
|
-
text_medium: $text_medium;
|
13
|
-
text_small: $text_small;
|
14
|
-
text_smaller: $text_smaller;
|
15
|
-
text_smallest: $text_smallest;
|
16
|
-
heading_1: $heading_1;
|
17
|
-
heading_2: $heading_2;
|
18
|
-
heading_3: $heading_3;
|
19
|
-
heading_4: $heading_4;
|
20
|
-
lighter: $lighter;
|
21
|
-
light: $light;
|
22
|
-
bold: $bold;
|
23
|
-
regular: $regular;
|
24
|
-
}
|