playbook_ui 13.11.1 → 13.12.0.pre.alpha.PLAY1081exporttypes1608
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/pb_avatar/_avatar.d.ts +20 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.d.ts +21 -0
- data/app/pb_kits/playbook/pb_background/_background.d.ts +33 -0
- data/app/pb_kits/playbook/pb_badge/_badge.d.ts +24 -0
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.d.ts +35 -0
- data/app/pb_kits/playbook/pb_body/_body.d.ts +24 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.d.ts +12 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.d.ts +13 -0
- data/app/pb_kits/playbook/pb_button/_button.d.ts +37 -0
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.d.ts +17 -0
- data/app/pb_kits/playbook/pb_caption/_caption.d.ts +20 -0
- data/app/pb_kits/playbook/pb_card/_card.d.ts +42 -0
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.d.ts +24 -0
- data/app/pb_kits/playbook/pb_circle_chart/ChartsTypes.d.ts +2 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.d.ts +35 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.d.ts +21 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.d.ts +29 -0
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.d.ts +2 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.d.ts +7 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.d.ts +10 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +3 -1
- data/app/pb_kits/playbook/pb_collapsible/context.d.ts +3 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.html.erb +22 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.md +3 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.html.erb +40 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.md +1 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_collapsible/index.js +4 -0
- data/app/pb_kits/playbook/pb_collapsible/useCollapsible.d.ts +2 -0
- data/app/pb_kits/playbook/pb_contact/_contact.d.ts +13 -0
- data/app/pb_kits/playbook/pb_currency/_currency.d.ts +24 -0
- data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.d.ts +2 -0
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.d.ts +3 -0
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.d.ts +3 -0
- data/app/pb_kits/playbook/pb_dashboard/themeTypes.d.ts +40 -0
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.d.ts +23 -0
- data/app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.d.ts +43 -0
- data/app/pb_kits/playbook/pb_date/_date.d.ts +18 -0
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.d.ts +50 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.d.ts +23 -0
- data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.d.ts +18 -0
- data/app/pb_kits/playbook/pb_date_picker/plugins/timeSelect.d.ts +44 -0
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.d.ts +13 -0
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.d.ts +10 -0
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.d.ts +13 -0
- data/app/pb_kits/playbook/pb_date_time/_date_time.d.ts +18 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.d.ts +10 -0
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.d.ts +10 -0
- data/app/pb_kits/playbook/pb_detail/_detail.d.ts +20 -0
- data/app/pb_kits/playbook/pb_dialog/_close_icon.d.ts +5 -0
- data/app/pb_kits/playbook/pb_dialog/_dialog.d.ts +68 -0
- data/app/pb_kits/playbook/pb_dialog/_dialog_context.d.ts +2 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.d.ts +8 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.d.ts +20 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.d.ts +19 -0
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.d.ts +10 -0
- data/app/pb_kits/playbook/pb_enhanced_element/element_observer.d.ts +17 -0
- data/app/pb_kits/playbook/pb_enhanced_element/index.d.ts +17 -0
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.d.ts +16 -0
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.d.ts +10 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.d.ts +10 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.d.ts +14 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.d.ts +14 -0
- data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.d.ts +11 -0
- data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.d.ts +8 -0
- data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.d.ts +18 -0
- data/app/pb_kits/playbook/pb_filter/Filter/index.d.ts +8 -0
- data/app/pb_kits/playbook/pb_filter/_filter.d.ts +1 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +18 -0
- data/app/pb_kits/playbook/pb_flex/_flex.d.ts +24 -0
- data/app/pb_kits/playbook/pb_flex/_flex_item.d.ts +14 -0
- data/app/pb_kits/playbook/pb_form_group/_form_group.d.ts +12 -0
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.d.ts +20 -0
- data/app/pb_kits/playbook/pb_gauge/_gauge.d.ts +31 -0
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.d.ts +17 -0
- data/app/pb_kits/playbook/pb_highlight/_highlight.d.ts +14 -0
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.d.ts +23 -0
- data/app/pb_kits/playbook/pb_icon/_icon.d.ts +29 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_border_swift.md +7 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default_swift.md +7 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_flip_swift.md +11 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate_swift.md +11 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes_swift.md +46 -0
- data/app/pb_kits/playbook/pb_icon/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.d.ts +16 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.d.ts +18 -0
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.d.ts +14 -0
- data/app/pb_kits/playbook/pb_image/_image.d.ts +20 -0
- data/app/pb_kits/playbook/pb_image/docs/_image_props_swift.md +7 -0
- data/app/pb_kits/playbook/pb_image/docs/_rounded_image_swift.md +47 -0
- data/app/pb_kits/playbook/pb_image/docs/_size_image_swift.md +47 -0
- data/app/pb_kits/playbook/pb_image/docs/_size_none_image_swift.md +15 -0
- data/app/pb_kits/playbook/pb_image/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_kit/dateTime.d.ts +67 -0
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.d.ts +15 -0
- data/app/pb_kits/playbook/pb_label_value/_label_value.d.ts +19 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_swift.md +72 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_swift.md +41 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_props_swift.md +11 -0
- data/app/pb_kits/playbook/pb_label_value/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_layout/_layout.d.ts +48 -0
- data/app/pb_kits/playbook/pb_legend/_legend.d.ts +14 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.d.ts +12 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.d.ts +10 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.d.ts +11 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.d.ts +9 -0
- data/app/pb_kits/playbook/pb_lightbox/Carousel/index.d.ts +16 -0
- data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.d.ts +22 -0
- data/app/pb_kits/playbook/pb_lightbox/_lightbox.d.ts +45 -0
- data/app/pb_kits/playbook/pb_lightbox/_lightbox_context.d.ts +2 -0
- data/app/pb_kits/playbook/pb_lightbox/hooks/useKbdControls.d.ts +3 -0
- data/app/pb_kits/playbook/pb_lightbox/hooks/useWindowSize.d.ts +6 -0
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.d.ts +35 -0
- data/app/pb_kits/playbook/pb_list/_list.d.ts +22 -0
- data/app/pb_kits/playbook/pb_list/_list_item.d.ts +13 -0
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.d.ts +13 -0
- data/app/pb_kits/playbook/pb_map/_map.d.ts +30 -0
- data/app/pb_kits/playbook/pb_map/_map_controls.d.ts +11 -0
- data/app/pb_kits/playbook/pb_map/_map_custom_button.d.ts +6 -0
- data/app/pb_kits/playbook/pb_map/pbMapTheme.d.ts +20 -0
- data/app/pb_kits/playbook/pb_message/_message.d.ts +33 -0
- data/app/pb_kits/playbook/pb_message/_message_mention.d.ts +13 -0
- data/app/pb_kits/playbook/pb_message/docs/_message_default_swift.md +57 -0
- data/app/pb_kits/playbook/pb_message/docs/_message_props_swift.md +12 -0
- data/app/pb_kits/playbook/pb_message/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_helper_functions.d.ts +33 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.d.ts +25 -0
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.d.ts +20 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +7 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +13 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +11 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +16 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +5 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +15 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_nav/_item.d.ts +40 -0
- data/app/pb_kits/playbook/pb_nav/_nav.d.ts +23 -0
- data/app/pb_kits/playbook/pb_nav/navTypes.d.ts +22 -0
- data/app/pb_kits/playbook/pb_online_status/_online_status.d.ts +14 -0
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.d.ts +19 -0
- data/app/pb_kits/playbook/pb_person/_person.d.ts +15 -0
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.d.ts +18 -0
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.d.ts +34 -0
- data/app/pb_kits/playbook/pb_pill/_pill.d.ts +16 -0
- data/app/pb_kits/playbook/pb_popover/_popover.d.ts +22 -0
- data/app/pb_kits/playbook/pb_popover/index.d.ts +21 -0
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.d.ts +17 -0
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.d.ts +15 -0
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.d.ts +19 -0
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.d.ts +12 -0
- data/app/pb_kits/playbook/pb_radio/_radio.d.ts +355 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.d.ts +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorTypes.d.ts +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.d.ts +31 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.d.ts +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/useFocus.d.ts +2 -0
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.d.ts +19 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md +14 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md +7 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line_swift.md +8 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md +7 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md +18 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_select/_select.d.ts +385 -0
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.d.ts +30 -0
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.d.ts +27 -0
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.d.ts +21 -0
- data/app/pb_kits/playbook/pb_selectable_list/_item.d.ts +20 -0
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.d.ts +17 -0
- data/app/pb_kits/playbook/pb_source/_source.d.ts +17 -0
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.d.ts +14 -0
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.d.ts +10 -0
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.d.ts +9 -0
- data/app/pb_kits/playbook/pb_table/_table.d.ts +24 -0
- data/app/pb_kits/playbook/pb_table/_table_row.d.ts +15 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +4 -4
- data/app/pb_kits/playbook/pb_table/index.d.ts +5 -0
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +26 -2
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +1 -17
- data/app/pb_kits/playbook/pb_table/table_header.html.erb +4 -3
- data/app/pb_kits/playbook/pb_table/table_header.rb +28 -5
- data/app/pb_kits/playbook/pb_text_input/_text_input.d.ts +383 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +35 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +29 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +13 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +24 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +13 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea.d.ts +380 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md +27 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error_swift.md +11 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_props_swift.md +9 -0
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_textarea/index.d.ts +10 -0
- data/app/pb_kits/playbook/pb_time/_time.d.ts +16 -0
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.d.ts +20 -0
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.d.ts +15 -0
- data/app/pb_kits/playbook/pb_timeline/_item.d.ts +11 -0
- data/app/pb_kits/playbook/pb_timeline/_timeline.d.ts +26 -0
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.d.ts +22 -0
- data/app/pb_kits/playbook/pb_title/_title.d.ts +26 -0
- data/app/pb_kits/playbook/pb_title_count/_title_count.d.ts +18 -0
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.d.ts +16 -0
- data/app/pb_kits/playbook/pb_toggle/_toggle.d.ts +21 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +10 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +6 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.d.ts +356 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +25 -9
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +0 -2
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.html.erb +1 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.html.erb +39 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.md +5 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +45 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.md +3 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_tooltip/index.js +6 -0
- data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -1
- data/app/pb_kits/playbook/pb_tooltip/tooltip.test.jsx +34 -0
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.d.ts +27 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.d.ts +35 -0
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Control.d.ts +5 -0
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.d.ts +9 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Option.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.d.ts +2 -0
- data/app/pb_kits/playbook/pb_typeahead/index.d.ts +39 -0
- data/app/pb_kits/playbook/pb_user/_user.d.ts +23 -0
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.d.ts +14 -0
- data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.d.ts +2 -0
- data/app/pb_kits/playbook/pb_user_badge/badges/veteran.d.ts +2 -0
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.d.ts +41 -0
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.d.ts +15 -0
- data/app/pb_kits/playbook/playbook-doc.js +1 -1
- data/app/pb_kits/playbook/utilities/globalProps.d.ts +113 -0
- data/app/pb_kits/playbook/utilities/object.d.ts +1 -0
- data/app/pb_kits/playbook/utilities/props.d.ts +38 -0
- data/app/pb_kits/playbook/utilities/text.d.ts +3 -0
- data/app/pb_kits/playbook/utilities/validEmojiChecker.d.ts +1 -0
- data/dist/playbook-rails.js +3 -3
- data/lib/playbook/version.rb +2 -2
- metadata +236 -7
@@ -54,6 +54,8 @@ export default class PbTooltip extends PbEnhancedElement {
|
|
54
54
|
}
|
55
55
|
|
56
56
|
showTooltip(trigger) {
|
57
|
+
if (this.shouldShowTooltip === "false") return
|
58
|
+
|
57
59
|
this.popper = createPopper(trigger, this.tooltip, {
|
58
60
|
placement: this.position,
|
59
61
|
modifiers: [
|
@@ -127,4 +129,8 @@ export default class PbTooltip extends PbEnhancedElement {
|
|
127
129
|
get triggerElementSelector() {
|
128
130
|
return this.element.dataset.pbTooltipTriggerElementSelector
|
129
131
|
}
|
132
|
+
|
133
|
+
get shouldShowTooltip() {
|
134
|
+
return this.element.dataset.pbTooltipShowTooltip
|
135
|
+
}
|
130
136
|
}
|
@@ -20,7 +20,8 @@ module Playbook
|
|
20
20
|
pb_tooltip_position: position,
|
21
21
|
pb_tooltip_trigger_element_selector: trigger_element_selector,
|
22
22
|
pb_tooltip_trigger_element_id: trigger_element_id,
|
23
|
-
pb_tooltip_tooltip_id: tooltip_id
|
23
|
+
pb_tooltip_tooltip_id: tooltip_id,
|
24
|
+
pb_tooltip_show_tooltip: true
|
24
25
|
)
|
25
26
|
end
|
26
27
|
|
@@ -92,5 +92,39 @@ test("has position fixed", async () => {
|
|
92
92
|
cleanup();
|
93
93
|
})
|
94
94
|
|
95
|
+
cleanup();
|
96
|
+
});
|
97
|
+
|
98
|
+
test("display tooltip with showTooltip set to true", async () => {
|
99
|
+
render(
|
100
|
+
<Tooltip
|
101
|
+
data={{ testid: "fixed-position-test" }}
|
102
|
+
showTooltip
|
103
|
+
/>
|
104
|
+
);
|
105
|
+
|
106
|
+
fireEvent.mouseEnter(screen.getByRole("tooltip_trigger"));
|
107
|
+
await waitFor(() => {
|
108
|
+
expect(screen.queryByRole("tooltip")).toBeInTheDocument();
|
109
|
+
cleanup();
|
110
|
+
})
|
111
|
+
|
112
|
+
cleanup();
|
113
|
+
});
|
114
|
+
|
115
|
+
test("doesn't display tooltip with showTooltip set to false", async () => {
|
116
|
+
render(
|
117
|
+
<Tooltip
|
118
|
+
data={{ testid: "fixed-position-test" }}
|
119
|
+
showTooltip={false}
|
120
|
+
/>
|
121
|
+
);
|
122
|
+
|
123
|
+
fireEvent.mouseEnter(screen.getByRole("tooltip_trigger"));
|
124
|
+
await waitFor(() => {
|
125
|
+
expect(screen.queryByRole("tooltip")).not.toBeInTheDocument();
|
126
|
+
cleanup();
|
127
|
+
})
|
128
|
+
|
95
129
|
cleanup();
|
96
130
|
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
declare type TreemapChartProps = {
|
2
|
+
chartData: {
|
3
|
+
name: string;
|
4
|
+
parent?: string | number;
|
5
|
+
value: number;
|
6
|
+
color?: string;
|
7
|
+
id?: string | number;
|
8
|
+
}[];
|
9
|
+
className?: string;
|
10
|
+
colors: string[];
|
11
|
+
dark?: boolean;
|
12
|
+
drillable: boolean;
|
13
|
+
grouped: boolean;
|
14
|
+
height?: string;
|
15
|
+
id: number | string;
|
16
|
+
title?: string;
|
17
|
+
tooltipHtml: string;
|
18
|
+
type?: string;
|
19
|
+
aria?: {
|
20
|
+
[key: string]: string;
|
21
|
+
};
|
22
|
+
data?: {
|
23
|
+
[key: string]: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
declare const TreemapChart: ({ aria, data, chartData, colors, dark, drillable, grouped, height, id, title, tooltipHtml, type, ...props }: TreemapChartProps) => JSX.Element;
|
27
|
+
export default TreemapChart;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Noop } from '../types';
|
2
|
+
/**
|
3
|
+
* @typedef {object} Props
|
4
|
+
* @prop {boolean} async - whether Typeahead should fetch data from
|
5
|
+
* a remote location to populate the options
|
6
|
+
* @prop {string} label - the text for the optional typeahead input label
|
7
|
+
*/
|
8
|
+
declare type TypeaheadProps = {
|
9
|
+
async?: boolean;
|
10
|
+
className?: string;
|
11
|
+
components?: object;
|
12
|
+
createable?: boolean;
|
13
|
+
dark?: boolean;
|
14
|
+
data?: {
|
15
|
+
[key: string]: string;
|
16
|
+
};
|
17
|
+
error?: string;
|
18
|
+
id?: string;
|
19
|
+
label?: string;
|
20
|
+
loadOptions?: string | Noop;
|
21
|
+
getOptionLabel?: string | (() => any);
|
22
|
+
getOptionValue?: string | (() => any);
|
23
|
+
name?: string;
|
24
|
+
};
|
25
|
+
export declare type SelectValueType = {
|
26
|
+
label: string;
|
27
|
+
value: string;
|
28
|
+
imageUrl?: string;
|
29
|
+
};
|
30
|
+
/**
|
31
|
+
* @constant {React.ReactComponent} Typeahead
|
32
|
+
* @param {TypeaheadProps} props - props as described at https://react-select.com/props
|
33
|
+
*/
|
34
|
+
declare const Typeahead: ({ async, className, components, createable, error, data, getOptionLabel, getOptionValue, id, loadOptions, ...props }: TypeaheadProps) => JSX.Element;
|
35
|
+
export default Typeahead;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import PbEnhancedElement from '../pb_enhanced_element';
|
2
|
+
export default class PbTypeahead extends PbEnhancedElement {
|
3
|
+
_searchInput: HTMLInputElement;
|
4
|
+
_resultsElement: HTMLElement;
|
5
|
+
_debouncedSearch: Function;
|
6
|
+
_resultsLoadingIndicator: HTMLElement;
|
7
|
+
_resultOptionTemplate: HTMLElement;
|
8
|
+
_resultsOptionCache: Map<string, Array<DocumentFragment>>;
|
9
|
+
_searchContext: string;
|
10
|
+
static get selector(): string;
|
11
|
+
connect(): void;
|
12
|
+
handleKeydown(event: KeyboardEvent): void;
|
13
|
+
search(): void;
|
14
|
+
resultsCacheUpdate(searchTerm: string, searchContext: string, results: Array<DocumentFragment>): void;
|
15
|
+
resultsCacheClear(): void;
|
16
|
+
get debouncedSearch(): any;
|
17
|
+
showResults(): void;
|
18
|
+
optionSelected(event: MouseEvent): void;
|
19
|
+
clearResults(): void;
|
20
|
+
newResultOption(content: DocumentFragment): Element;
|
21
|
+
focusPreviousOption(): void;
|
22
|
+
focusNextOption(): void;
|
23
|
+
get resultOptionItems(): Element[];
|
24
|
+
get currentSelectedResultOptionItem(): Element;
|
25
|
+
get searchInput(): HTMLInputElement;
|
26
|
+
get searchTerm(): string;
|
27
|
+
get searchContext(): string;
|
28
|
+
set searchContext(value: string);
|
29
|
+
get searchTermAndContext(): string;
|
30
|
+
cacheKeyFor(searchTerm: string, searchContext: string): string;
|
31
|
+
searchInputClear(): void;
|
32
|
+
get searchTermMinimumLength(): string;
|
33
|
+
get searchDebounceTimeout(): string;
|
34
|
+
get resultsElement(): HTMLElement;
|
35
|
+
get resultOptionTemplate(): HTMLElement;
|
36
|
+
get resultsOptionCache(): Map<any, any>;
|
37
|
+
get resultsLoadingIndicator(): HTMLElement;
|
38
|
+
toggleResultsLoadingIndicator(visible: boolean): void;
|
39
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { GlobalProps } from '../utilities/globalProps';
|
2
|
+
declare type UserProps = {
|
3
|
+
align?: "left" | "center" | "right";
|
4
|
+
aria?: {
|
5
|
+
[key: string]: string;
|
6
|
+
};
|
7
|
+
avatar?: boolean;
|
8
|
+
avatarUrl?: string;
|
9
|
+
className?: string;
|
10
|
+
dark?: boolean;
|
11
|
+
data?: {
|
12
|
+
[key: string]: string;
|
13
|
+
};
|
14
|
+
id?: string;
|
15
|
+
name?: string;
|
16
|
+
orientation?: "horizontal" | "vertical";
|
17
|
+
size?: "sm" | "md" | "lg";
|
18
|
+
subtitle?: string | Array<Node> | Node;
|
19
|
+
territory?: string;
|
20
|
+
title?: string;
|
21
|
+
} & GlobalProps;
|
22
|
+
declare const User: (props: UserProps) => JSX.Element;
|
23
|
+
export default User;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare type UserBadgeProps = {
|
2
|
+
aria?: {
|
3
|
+
[key: string]: string;
|
4
|
+
};
|
5
|
+
badge?: "million-dollar" | "veteran";
|
6
|
+
className?: string;
|
7
|
+
data?: {
|
8
|
+
[key: string]: string;
|
9
|
+
};
|
10
|
+
id?: string;
|
11
|
+
size?: "sm" | "md" | "lg";
|
12
|
+
};
|
13
|
+
declare const UserBadge: (props: UserBadgeProps) => JSX.Element;
|
14
|
+
export default UserBadge;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
declare type WalkthroughProps = {
|
2
|
+
aria?: {
|
3
|
+
[key: string]: string;
|
4
|
+
};
|
5
|
+
callback?: () => void;
|
6
|
+
className?: string;
|
7
|
+
continuous?: boolean;
|
8
|
+
data?: {
|
9
|
+
[key: string]: string;
|
10
|
+
};
|
11
|
+
id?: string;
|
12
|
+
run?: boolean;
|
13
|
+
steps?: [];
|
14
|
+
stepIndex?: number;
|
15
|
+
debug?: boolean;
|
16
|
+
disableCloseOnEsc?: boolean;
|
17
|
+
disableOverlay?: boolean;
|
18
|
+
disableOverlayClose?: boolean;
|
19
|
+
disableScrolling?: boolean;
|
20
|
+
floaterProps?: object;
|
21
|
+
hideBackButton?: boolean;
|
22
|
+
hideCloseButton?: boolean;
|
23
|
+
showProgress?: boolean;
|
24
|
+
showSkipButton?: boolean;
|
25
|
+
spotlightClicks?: boolean;
|
26
|
+
spotlightPadding?: number;
|
27
|
+
styles?: {
|
28
|
+
options: {
|
29
|
+
beaconSize?: number;
|
30
|
+
arrowColor?: string;
|
31
|
+
backgroundColor?: string;
|
32
|
+
primaryColor?: string;
|
33
|
+
overlayColor?: string;
|
34
|
+
spotlightShadow?: string;
|
35
|
+
width?: number;
|
36
|
+
zIndex?: number;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
};
|
40
|
+
declare const Walkthrough: (props: WalkthroughProps) => JSX.Element;
|
41
|
+
export default Walkthrough;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare type WeekdayStackedProps = {
|
2
|
+
align?: "left" | "center" | "right";
|
3
|
+
aria?: {
|
4
|
+
[key: string]: string;
|
5
|
+
};
|
6
|
+
className?: string;
|
7
|
+
dark?: boolean;
|
8
|
+
data?: object;
|
9
|
+
date: Date;
|
10
|
+
id?: string;
|
11
|
+
variant?: "day_only" | "month_day" | "expanded";
|
12
|
+
compact?: boolean;
|
13
|
+
};
|
14
|
+
declare const WeekdayStacked: (props: WeekdayStackedProps) => JSX.Element;
|
15
|
+
export default WeekdayStacked;
|
@@ -104,7 +104,7 @@ import * as UserBadge from 'pb_user_badge/docs'
|
|
104
104
|
import * as Walkthrough from 'pb_walkthrough/docs'
|
105
105
|
import * as WeekdayStacked from 'pb_weekday_stacked/docs'
|
106
106
|
|
107
|
-
WebpackerReact.
|
107
|
+
WebpackerReact.registerComponents({
|
108
108
|
...Avatar,
|
109
109
|
...AvatarActionButton,
|
110
110
|
...Background,
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import { Binary, Display, DisplaySizes, None, Sizes } from '../types';
|
2
|
+
declare type Alignment = "start" | "end" | "center";
|
3
|
+
declare type AlignContent = {
|
4
|
+
alignContent?: Alignment & Space;
|
5
|
+
};
|
6
|
+
declare type AlignItems = {
|
7
|
+
alignItems?: Alignment & ("flexStart" | "flexEnd" | "stretch" | "baseline");
|
8
|
+
};
|
9
|
+
declare type AlignSelf = {
|
10
|
+
alignSelf?: Alignment & ("auto" | "stretch" | "baseline");
|
11
|
+
};
|
12
|
+
declare type AllSizes = None | Sizes | "auto" | "initial" | "inherit";
|
13
|
+
declare type BorderRadius = {
|
14
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "rounded";
|
15
|
+
};
|
16
|
+
declare type Cursor = {
|
17
|
+
cursor?: "auto" | "default" | "none" | "contextMenu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "verticalText" | "alias" | "copy" | "move" | "noDrop" | "notAllowed" | "grab" | "grabbing" | "eResize" | "nResize" | "neResize" | "nwResize" | "sResize" | "seResize" | "swResize" | "wResize" | "ewResize" | "nsResize" | "neswResize" | "nwseResize" | "colResize" | "rowResize" | "allScroll" | "zoomIn" | "zoomOut";
|
18
|
+
};
|
19
|
+
declare type Dark = {
|
20
|
+
dark?: boolean;
|
21
|
+
};
|
22
|
+
declare type Flex = {
|
23
|
+
flex?: "auto" | "initial" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "none";
|
24
|
+
};
|
25
|
+
declare type FlexDirection = {
|
26
|
+
flexDirection?: "row" | "column" | "rowReverse" | "columnReverse";
|
27
|
+
};
|
28
|
+
declare type FlexGrow = {
|
29
|
+
flexGrow?: Binary;
|
30
|
+
};
|
31
|
+
declare type FlexShrink = {
|
32
|
+
flexShrink?: Binary;
|
33
|
+
};
|
34
|
+
declare type FlexWrap = {
|
35
|
+
flexWrap?: "wrap" | "nowrap" | "wrapReverse";
|
36
|
+
};
|
37
|
+
declare type JustifyContent = {
|
38
|
+
justifyContent?: Alignment & Space;
|
39
|
+
};
|
40
|
+
declare type JustifySelf = {
|
41
|
+
justifySelf?: Alignment & ("auto" | "stretch");
|
42
|
+
};
|
43
|
+
declare type LineHeight = {
|
44
|
+
lineHeight?: "loosest" | "looser" | "loose" | "normal" | "tight" | "tighter" | "tightest";
|
45
|
+
};
|
46
|
+
declare type Margin = {
|
47
|
+
marginRight?: AllSizes;
|
48
|
+
marginLeft?: AllSizes;
|
49
|
+
marginTop?: AllSizes;
|
50
|
+
marginBottom?: AllSizes;
|
51
|
+
marginX?: AllSizes;
|
52
|
+
marginY?: AllSizes;
|
53
|
+
margin?: AllSizes;
|
54
|
+
break?: string;
|
55
|
+
default?: string;
|
56
|
+
};
|
57
|
+
declare type MaxWidth = {
|
58
|
+
maxWidth?: Sizes;
|
59
|
+
};
|
60
|
+
declare type NumberSpacing = {
|
61
|
+
numberSpacing?: "tabular";
|
62
|
+
};
|
63
|
+
declare type Order = {
|
64
|
+
order?: None | "first" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
65
|
+
};
|
66
|
+
declare type Padding = {
|
67
|
+
paddingRight?: AllSizes;
|
68
|
+
paddingLeft?: AllSizes;
|
69
|
+
paddingTop?: AllSizes;
|
70
|
+
paddingBottom?: AllSizes;
|
71
|
+
paddingX?: AllSizes;
|
72
|
+
paddingY?: AllSizes;
|
73
|
+
padding?: AllSizes;
|
74
|
+
break?: string;
|
75
|
+
default?: string;
|
76
|
+
};
|
77
|
+
declare type Position = {
|
78
|
+
position?: "relative" | "absolute" | "fixed" | "sticky" | "static";
|
79
|
+
};
|
80
|
+
declare type Shadow = {
|
81
|
+
shadow?: "none" | "deep" | "deeper" | "deepest";
|
82
|
+
};
|
83
|
+
declare type Space = "spaceBetween" | "spaceAround" | "spaceEvenly";
|
84
|
+
declare type TextAlign = {
|
85
|
+
textAlign?: "start" | "end" | "left" | "right" | "center" | "justify" | "justifyAll" | "matchParent";
|
86
|
+
};
|
87
|
+
declare type OverflowTypes = "scroll" | "visible" | "hidden" | "auto";
|
88
|
+
declare type Overflow = {
|
89
|
+
overflowX?: OverflowTypes;
|
90
|
+
overflowY?: OverflowTypes;
|
91
|
+
overflow?: OverflowTypes;
|
92
|
+
};
|
93
|
+
declare type ZIndexType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
94
|
+
declare type ZIndexResponsiveType = {
|
95
|
+
[key: string]: ZIndexType;
|
96
|
+
};
|
97
|
+
declare type ZIndex = {
|
98
|
+
zIndex?: ZIndexType;
|
99
|
+
} | ZIndexResponsiveType;
|
100
|
+
export declare type GlobalProps = AlignContent & AlignItems & AlignSelf & BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection & FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf & LineHeight & Margin & MaxWidth & NumberSpacing & Order & Overflow & Padding & Position & Shadow & TextAlign & ZIndex & {
|
101
|
+
hover?: string;
|
102
|
+
};
|
103
|
+
declare type DefaultProps = {
|
104
|
+
[key: string]: string;
|
105
|
+
} | Record<string, unknown>;
|
106
|
+
export declare const globalProps: (props: GlobalProps, defaultProps?: DefaultProps) => string;
|
107
|
+
export declare const deprecatedProps: () => void;
|
108
|
+
export declare const domSafeProps: (props: {
|
109
|
+
[key: string]: string;
|
110
|
+
}) => {
|
111
|
+
[key: string]: string;
|
112
|
+
};
|
113
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const isEmpty: (obj: Record<string, unknown>) => boolean;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* Represent a "No-Operation" function that can be used as a sensible
|
3
|
+
* default to event handlers in the absence of a value.
|
4
|
+
*
|
5
|
+
* @returns {() => {}} the noop function.
|
6
|
+
*/
|
7
|
+
export declare const noop: () => void;
|
8
|
+
/**
|
9
|
+
* Maps a given aria object into HTML valid aria attribtues and their values.
|
10
|
+
*
|
11
|
+
* @param {Object} aria the object containing the aria prop values.
|
12
|
+
* @returns {Object} an object holding the HTML valid aria props and their values.
|
13
|
+
*/
|
14
|
+
export declare const buildAriaProps: (aria: {
|
15
|
+
[key: string]: string;
|
16
|
+
}) => {
|
17
|
+
[key: string]: string;
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* Maps a given data object into HTML valid data attribtues and their values.
|
21
|
+
*
|
22
|
+
* @param {Object} data the object containing the data prop values.
|
23
|
+
* @returns {Object} an object holding the HTML valid data props and their values.
|
24
|
+
*/
|
25
|
+
export declare const buildDataProps: (data: {
|
26
|
+
[key: string]: any;
|
27
|
+
}) => {
|
28
|
+
[key: string]: any;
|
29
|
+
};
|
30
|
+
/**
|
31
|
+
* Builds a Playbook valid root className off of the incoming css rules.
|
32
|
+
*
|
33
|
+
* @param {Object} rules a 'classnames' compliant rules object, used to derive the root className.
|
34
|
+
* @returns {String} the derived root className value.
|
35
|
+
*/
|
36
|
+
export declare const buildCss: (...rules: (string | {
|
37
|
+
[x: string]: string | boolean;
|
38
|
+
})[]) => string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const isValidEmoji: (emoji: string) => boolean;
|