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.
Files changed (264) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_avatar/_avatar.d.ts +20 -0
  3. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.d.ts +21 -0
  4. data/app/pb_kits/playbook/pb_background/_background.d.ts +33 -0
  5. data/app/pb_kits/playbook/pb_badge/_badge.d.ts +24 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.d.ts +35 -0
  7. data/app/pb_kits/playbook/pb_body/_body.d.ts +24 -0
  8. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.d.ts +12 -0
  9. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.d.ts +13 -0
  10. data/app/pb_kits/playbook/pb_button/_button.d.ts +37 -0
  11. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.d.ts +17 -0
  12. data/app/pb_kits/playbook/pb_caption/_caption.d.ts +20 -0
  13. data/app/pb_kits/playbook/pb_card/_card.d.ts +42 -0
  14. data/app/pb_kits/playbook/pb_checkbox/_checkbox.d.ts +24 -0
  15. data/app/pb_kits/playbook/pb_circle_chart/ChartsTypes.d.ts +2 -0
  16. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.d.ts +35 -0
  17. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.d.ts +21 -0
  18. data/app/pb_kits/playbook/pb_collapsible/_collapsible.d.ts +29 -0
  19. data/app/pb_kits/playbook/pb_collapsible/_helper_functions.d.ts +2 -0
  20. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.d.ts +7 -0
  21. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.d.ts +10 -0
  22. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +3 -1
  23. data/app/pb_kits/playbook/pb_collapsible/context.d.ts +3 -0
  24. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.html.erb +22 -0
  25. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.md +3 -0
  26. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.html.erb +40 -0
  27. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.md +1 -0
  28. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +2 -0
  29. data/app/pb_kits/playbook/pb_collapsible/index.js +4 -0
  30. data/app/pb_kits/playbook/pb_collapsible/useCollapsible.d.ts +2 -0
  31. data/app/pb_kits/playbook/pb_contact/_contact.d.ts +13 -0
  32. data/app/pb_kits/playbook/pb_currency/_currency.d.ts +24 -0
  33. data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.d.ts +2 -0
  34. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.d.ts +3 -0
  35. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.d.ts +3 -0
  36. data/app/pb_kits/playbook/pb_dashboard/themeTypes.d.ts +40 -0
  37. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.d.ts +23 -0
  38. data/app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.d.ts +43 -0
  39. data/app/pb_kits/playbook/pb_date/_date.d.ts +18 -0
  40. data/app/pb_kits/playbook/pb_date_picker/_date_picker.d.ts +50 -0
  41. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.d.ts +23 -0
  42. data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.d.ts +18 -0
  43. data/app/pb_kits/playbook/pb_date_picker/plugins/timeSelect.d.ts +44 -0
  44. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.d.ts +13 -0
  45. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.d.ts +10 -0
  46. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.d.ts +13 -0
  47. data/app/pb_kits/playbook/pb_date_time/_date_time.d.ts +18 -0
  48. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.d.ts +10 -0
  49. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.d.ts +10 -0
  50. data/app/pb_kits/playbook/pb_detail/_detail.d.ts +20 -0
  51. data/app/pb_kits/playbook/pb_dialog/_close_icon.d.ts +5 -0
  52. data/app/pb_kits/playbook/pb_dialog/_dialog.d.ts +68 -0
  53. data/app/pb_kits/playbook/pb_dialog/_dialog_context.d.ts +2 -0
  54. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.d.ts +8 -0
  55. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.d.ts +20 -0
  56. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.d.ts +19 -0
  57. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.d.ts +10 -0
  58. data/app/pb_kits/playbook/pb_enhanced_element/element_observer.d.ts +17 -0
  59. data/app/pb_kits/playbook/pb_enhanced_element/index.d.ts +17 -0
  60. data/app/pb_kits/playbook/pb_file_upload/_file_upload.d.ts +16 -0
  61. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.d.ts +10 -0
  62. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.d.ts +10 -0
  63. data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.d.ts +14 -0
  64. data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.d.ts +14 -0
  65. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.d.ts +11 -0
  66. data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.d.ts +8 -0
  67. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.d.ts +18 -0
  68. data/app/pb_kits/playbook/pb_filter/Filter/index.d.ts +8 -0
  69. data/app/pb_kits/playbook/pb_filter/_filter.d.ts +1 -0
  70. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.d.ts +18 -0
  71. data/app/pb_kits/playbook/pb_flex/_flex.d.ts +24 -0
  72. data/app/pb_kits/playbook/pb_flex/_flex_item.d.ts +14 -0
  73. data/app/pb_kits/playbook/pb_form_group/_form_group.d.ts +12 -0
  74. data/app/pb_kits/playbook/pb_form_pill/_form_pill.d.ts +20 -0
  75. data/app/pb_kits/playbook/pb_gauge/_gauge.d.ts +31 -0
  76. data/app/pb_kits/playbook/pb_hashtag/_hashtag.d.ts +17 -0
  77. data/app/pb_kits/playbook/pb_highlight/_highlight.d.ts +14 -0
  78. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.d.ts +23 -0
  79. data/app/pb_kits/playbook/pb_icon/_icon.d.ts +29 -0
  80. data/app/pb_kits/playbook/pb_icon/docs/_icon_border_swift.md +7 -0
  81. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_swift.md +7 -0
  82. data/app/pb_kits/playbook/pb_icon/docs/_icon_flip_swift.md +11 -0
  83. data/app/pb_kits/playbook/pb_icon/docs/_icon_props_swift.md +8 -0
  84. data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate_swift.md +11 -0
  85. data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes_swift.md +46 -0
  86. data/app/pb_kits/playbook/pb_icon/docs/example.yml +8 -0
  87. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.d.ts +16 -0
  88. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.d.ts +18 -0
  89. data/app/pb_kits/playbook/pb_icon_value/_icon_value.d.ts +14 -0
  90. data/app/pb_kits/playbook/pb_image/_image.d.ts +20 -0
  91. data/app/pb_kits/playbook/pb_image/docs/_image_props_swift.md +7 -0
  92. data/app/pb_kits/playbook/pb_image/docs/_rounded_image_swift.md +47 -0
  93. data/app/pb_kits/playbook/pb_image/docs/_size_image_swift.md +47 -0
  94. data/app/pb_kits/playbook/pb_image/docs/_size_none_image_swift.md +15 -0
  95. data/app/pb_kits/playbook/pb_image/docs/example.yml +5 -0
  96. data/app/pb_kits/playbook/pb_kit/dateTime.d.ts +67 -0
  97. data/app/pb_kits/playbook/pb_label_pill/_label_pill.d.ts +15 -0
  98. data/app/pb_kits/playbook/pb_label_value/_label_value.d.ts +19 -0
  99. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default_swift.md +11 -0
  100. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_swift.md +72 -0
  101. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_swift.md +41 -0
  102. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_props_swift.md +11 -0
  103. data/app/pb_kits/playbook/pb_label_value/docs/example.yml +6 -0
  104. data/app/pb_kits/playbook/pb_layout/_layout.d.ts +48 -0
  105. data/app/pb_kits/playbook/pb_legend/_legend.d.ts +14 -0
  106. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.d.ts +12 -0
  107. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.d.ts +10 -0
  108. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.d.ts +11 -0
  109. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.d.ts +9 -0
  110. data/app/pb_kits/playbook/pb_lightbox/Carousel/index.d.ts +16 -0
  111. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.d.ts +22 -0
  112. data/app/pb_kits/playbook/pb_lightbox/_lightbox.d.ts +45 -0
  113. data/app/pb_kits/playbook/pb_lightbox/_lightbox_context.d.ts +2 -0
  114. data/app/pb_kits/playbook/pb_lightbox/hooks/useKbdControls.d.ts +3 -0
  115. data/app/pb_kits/playbook/pb_lightbox/hooks/useWindowSize.d.ts +6 -0
  116. data/app/pb_kits/playbook/pb_line_graph/_line_graph.d.ts +35 -0
  117. data/app/pb_kits/playbook/pb_list/_list.d.ts +22 -0
  118. data/app/pb_kits/playbook/pb_list/_list_item.d.ts +13 -0
  119. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.d.ts +13 -0
  120. data/app/pb_kits/playbook/pb_map/_map.d.ts +30 -0
  121. data/app/pb_kits/playbook/pb_map/_map_controls.d.ts +11 -0
  122. data/app/pb_kits/playbook/pb_map/_map_custom_button.d.ts +6 -0
  123. data/app/pb_kits/playbook/pb_map/pbMapTheme.d.ts +20 -0
  124. data/app/pb_kits/playbook/pb_message/_message.d.ts +33 -0
  125. data/app/pb_kits/playbook/pb_message/_message_mention.d.ts +13 -0
  126. data/app/pb_kits/playbook/pb_message/docs/_message_default_swift.md +57 -0
  127. data/app/pb_kits/playbook/pb_message/docs/_message_props_swift.md +12 -0
  128. data/app/pb_kits/playbook/pb_message/docs/example.yml +4 -0
  129. data/app/pb_kits/playbook/pb_multi_level_select/_helper_functions.d.ts +33 -0
  130. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.d.ts +25 -0
  131. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.d.ts +20 -0
  132. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_default_swift.md +11 -0
  133. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_props_swift.md +7 -0
  134. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_reverse_swift.md +13 -0
  135. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md +11 -0
  136. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +6 -0
  137. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.d.ts +16 -0
  138. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default_swift.md +15 -0
  139. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_props_swift.md +5 -0
  140. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_small_swift.md +15 -0
  141. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_xsmall_swift.md +15 -0
  142. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +6 -0
  143. data/app/pb_kits/playbook/pb_nav/_item.d.ts +40 -0
  144. data/app/pb_kits/playbook/pb_nav/_nav.d.ts +23 -0
  145. data/app/pb_kits/playbook/pb_nav/navTypes.d.ts +22 -0
  146. data/app/pb_kits/playbook/pb_online_status/_online_status.d.ts +14 -0
  147. data/app/pb_kits/playbook/pb_passphrase/_passphrase.d.ts +19 -0
  148. data/app/pb_kits/playbook/pb_person/_person.d.ts +15 -0
  149. data/app/pb_kits/playbook/pb_person_contact/_person_contact.d.ts +18 -0
  150. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.d.ts +34 -0
  151. data/app/pb_kits/playbook/pb_pill/_pill.d.ts +16 -0
  152. data/app/pb_kits/playbook/pb_popover/_popover.d.ts +22 -0
  153. data/app/pb_kits/playbook/pb_popover/index.d.ts +21 -0
  154. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.d.ts +17 -0
  155. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.d.ts +15 -0
  156. data/app/pb_kits/playbook/pb_progress_step/_progress_step.d.ts +19 -0
  157. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.d.ts +12 -0
  158. data/app/pb_kits/playbook/pb_radio/_radio.d.ts +355 -0
  159. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.d.ts +9 -0
  160. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorTypes.d.ts +9 -0
  161. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.d.ts +2 -0
  162. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.d.ts +2 -0
  163. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.d.ts +2 -0
  164. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.d.ts +2 -0
  165. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarNodes.d.ts +2 -0
  166. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.d.ts +31 -0
  167. data/app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.d.ts +2 -0
  168. data/app/pb_kits/playbook/pb_rich_text_editor/useFocus.d.ts +2 -0
  169. data/app/pb_kits/playbook/pb_section_separator/_section_separator.d.ts +19 -0
  170. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md +14 -0
  171. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md +7 -0
  172. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line_swift.md +8 -0
  173. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_props_swift.md +8 -0
  174. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_swift.md +7 -0
  175. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical_swift.md +18 -0
  176. data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +8 -0
  177. data/app/pb_kits/playbook/pb_select/_select.d.ts +385 -0
  178. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.d.ts +30 -0
  179. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.d.ts +27 -0
  180. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.d.ts +21 -0
  181. data/app/pb_kits/playbook/pb_selectable_list/_item.d.ts +20 -0
  182. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.d.ts +17 -0
  183. data/app/pb_kits/playbook/pb_source/_source.d.ts +17 -0
  184. data/app/pb_kits/playbook/pb_star_rating/_star_rating.d.ts +14 -0
  185. data/app/pb_kits/playbook/pb_stat_change/_stat_change.d.ts +10 -0
  186. data/app/pb_kits/playbook/pb_stat_value/_stat_value.d.ts +9 -0
  187. data/app/pb_kits/playbook/pb_table/_table.d.ts +24 -0
  188. data/app/pb_kits/playbook/pb_table/_table_row.d.ts +15 -0
  189. data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +4 -4
  190. data/app/pb_kits/playbook/pb_table/index.d.ts +5 -0
  191. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +26 -2
  192. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +1 -17
  193. data/app/pb_kits/playbook/pb_table/table_header.html.erb +4 -3
  194. data/app/pb_kits/playbook/pb_table/table_header.rb +28 -5
  195. data/app/pb_kits/playbook/pb_text_input/_text_input.d.ts +383 -0
  196. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md +35 -0
  197. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default_swift.md +29 -0
  198. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md +13 -0
  199. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md +24 -0
  200. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md +13 -0
  201. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +7 -0
  202. data/app/pb_kits/playbook/pb_textarea/_textarea.d.ts +380 -0
  203. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md +27 -0
  204. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error_swift.md +11 -0
  205. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_props_swift.md +9 -0
  206. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +5 -0
  207. data/app/pb_kits/playbook/pb_textarea/index.d.ts +10 -0
  208. data/app/pb_kits/playbook/pb_time/_time.d.ts +16 -0
  209. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.d.ts +20 -0
  210. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.d.ts +15 -0
  211. data/app/pb_kits/playbook/pb_timeline/_item.d.ts +11 -0
  212. data/app/pb_kits/playbook/pb_timeline/_timeline.d.ts +26 -0
  213. data/app/pb_kits/playbook/pb_timestamp/_timestamp.d.ts +22 -0
  214. data/app/pb_kits/playbook/pb_title/_title.d.ts +26 -0
  215. data/app/pb_kits/playbook/pb_title_count/_title_count.d.ts +18 -0
  216. data/app/pb_kits/playbook/pb_title_detail/_title_detail.d.ts +16 -0
  217. data/app/pb_kits/playbook/pb_toggle/_toggle.d.ts +21 -0
  218. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_default_swift.md +11 -0
  219. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_name_swift.md +10 -0
  220. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_props_swift.md +6 -0
  221. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +4 -0
  222. data/app/pb_kits/playbook/pb_tooltip/_tooltip.d.ts +356 -0
  223. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +25 -9
  224. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
  225. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +0 -2
  226. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +0 -1
  227. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +0 -1
  228. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +0 -1
  229. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.html.erb +1 -1
  230. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.html.erb +39 -0
  231. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.md +5 -0
  232. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +45 -0
  233. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.md +3 -0
  234. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +3 -0
  235. data/app/pb_kits/playbook/pb_tooltip/docs/index.js +1 -0
  236. data/app/pb_kits/playbook/pb_tooltip/index.js +6 -0
  237. data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -1
  238. data/app/pb_kits/playbook/pb_tooltip/tooltip.test.jsx +34 -0
  239. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.d.ts +27 -0
  240. data/app/pb_kits/playbook/pb_typeahead/_typeahead.d.ts +35 -0
  241. data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.d.ts +2 -0
  242. data/app/pb_kits/playbook/pb_typeahead/components/Control.d.ts +5 -0
  243. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.d.ts +2 -0
  244. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.d.ts +2 -0
  245. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.d.ts +9 -0
  246. data/app/pb_kits/playbook/pb_typeahead/components/Option.d.ts +2 -0
  247. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.d.ts +2 -0
  248. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.d.ts +2 -0
  249. data/app/pb_kits/playbook/pb_typeahead/index.d.ts +39 -0
  250. data/app/pb_kits/playbook/pb_user/_user.d.ts +23 -0
  251. data/app/pb_kits/playbook/pb_user_badge/_user_badge.d.ts +14 -0
  252. data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.d.ts +2 -0
  253. data/app/pb_kits/playbook/pb_user_badge/badges/veteran.d.ts +2 -0
  254. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.d.ts +41 -0
  255. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.d.ts +15 -0
  256. data/app/pb_kits/playbook/playbook-doc.js +1 -1
  257. data/app/pb_kits/playbook/utilities/globalProps.d.ts +113 -0
  258. data/app/pb_kits/playbook/utilities/object.d.ts +1 -0
  259. data/app/pb_kits/playbook/utilities/props.d.ts +38 -0
  260. data/app/pb_kits/playbook/utilities/text.d.ts +3 -0
  261. data/app/pb_kits/playbook/utilities/validEmojiChecker.d.ts +1 -0
  262. data/dist/playbook-rails.js +3 -3
  263. data/lib/playbook/version.rb +2 -2
  264. metadata +236 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ee8e7e286c406057d392df39a78b5386ccab676d22aa828c988d7ee705ef968
4
- data.tar.gz: ee9a52e005b2d69eebf688975b86bb2e6690cbc36213745e099c53a9148b71f7
3
+ metadata.gz: f0bc057462f84066058ae751edb8a5800772fabfae7826217c54ecf10e87e78d
4
+ data.tar.gz: a82a61433089122a5b9844f07b865f933bd8eda322ccf039edbb7661f319ce54
5
5
  SHA512:
6
- metadata.gz: d56962a2defca43883e75b975d30829a1222671ebcc55b08258ec18d581937cd73252ee556ca113788388ff6f1dcc3952ca0f446ae1eba5c91acac03d5131e5e
7
- data.tar.gz: 2295ee61c45223e3000b277bec93ac715d0f0cd134494b2d746172f93af2d979e9edc9ef76be7bfe67a689dca148063e3bac03f4ae3050e5db05f59ea4907f76
6
+ metadata.gz: '095fa0bda11e86865f7be0b1f7f24ed36ac48e44b1535bdd3a056afa2189e03dd3d6c02130b615c0475cdcaa1fd58013c6d50dab71a2893b8e16ec6c0e2cdcef'
7
+ data.tar.gz: d8d7173f5164053988cefc4789d7af043435562c91bab3f6e63d5a3684b9455580af4cb8e05ec124d764a79b31dccd669a491b524b8fd1917a5f366a9b2daca6
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ export declare type AvatarProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ className?: string;
8
+ data?: {
9
+ [key: string]: string;
10
+ };
11
+ dark?: boolean;
12
+ id?: string;
13
+ imageAlt?: string;
14
+ imageUrl?: string;
15
+ name?: string;
16
+ size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
17
+ status?: "away" | "offline" | "online";
18
+ } & GlobalProps;
19
+ declare const Avatar: (props: AvatarProps) => React.ReactElement;
20
+ export default Avatar;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ declare type AvatarActionButtonProps = {
3
+ action?: "add" | "remove";
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ linkAriaLabel?: string;
8
+ className?: string;
9
+ dark?: boolean;
10
+ data?: Object;
11
+ id?: string;
12
+ imageAlt?: string;
13
+ imageUrl?: string;
14
+ linkUrl?: string;
15
+ name?: string;
16
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
17
+ placement?: string;
18
+ size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs";
19
+ };
20
+ declare const AvatarActionButton: (props: AvatarActionButtonProps) => JSX.Element;
21
+ export default AvatarActionButton;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type BackgroundProps = {
4
+ alt?: string;
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ backgroundColor?: ResponsiveProp<string> | 'gradient' | 'dark' | 'light' | 'white' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary' | 'shadow' | 'category_1' | 'category_2' | 'category_3' | 'category_4' | 'category_5' | 'category_6' | 'category_7' | 'category_8' | 'category_9' | 'category_10' | 'category_11' | 'category_12' | 'category_13' | 'category_14' | 'category_15' | 'category_16' | 'category_17' | 'category_18' | 'category_19' | 'category_20' | 'category_21' | 'text_lt_default' | 'text_lt_light' | 'text_lt_lighter' | 'text_dk_default' | 'text_dk_light' | 'text_dk_lighter' | 'card_light' | 'card_dark' | 'data_1' | 'data_2' | 'data_3' | 'data_4' | 'data_5' | 'data_6' | 'data_7' | 'data_8' | 'border_light' | 'border_dark' | 'success_secondary' | 'error_secondary' | 'info_secondary' | 'warning_secondary' | 'neutral_secondary' | 'primary_secondary' | 'success_subtle' | 'warning_subtle' | 'error_subtle' | 'info_subtle' | 'neutral_subtle';
9
+ backgroundSize?: ResponsiveProp<string> | 'auto' | 'cover' | 'contain';
10
+ backgroundPosition?: ResponsiveProp<string> | string;
11
+ backgroundRepeat?: ResponsiveProp<string> | 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' | 'space' | 'round' | 'initial' | 'inherit';
12
+ imageUrl?: ResponsiveProp<string> | string;
13
+ children?: React.ReactChild[] | React.ReactNode;
14
+ className?: string;
15
+ customColor?: string;
16
+ data?: {
17
+ [key: string]: string;
18
+ };
19
+ id?: string;
20
+ padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
21
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'tr' | 'th' | 'td' | 'thead' | 'col';
22
+ transition?: 'fade' | 'blur' | 'scale';
23
+ } & GlobalProps;
24
+ declare type ResponsiveProp<T> = T | {
25
+ xs?: T;
26
+ sm?: T;
27
+ md?: T;
28
+ lg?: T;
29
+ xl?: T;
30
+ default?: T;
31
+ };
32
+ declare const Background: (props: BackgroundProps) => JSX.Element;
33
+ export default Background;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type BadgeProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ className?: string;
8
+ closeProps?: {
9
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
10
+ onMouseDown?: React.MouseEventHandler<HTMLSpanElement>;
11
+ onTouchEnd?: React.TouchEventHandler<HTMLSpanElement>;
12
+ };
13
+ data?: {
14
+ [key: string]: string;
15
+ };
16
+ id?: string;
17
+ removeIcon?: boolean;
18
+ removeOnClick?: React.MouseEventHandler<HTMLSpanElement>;
19
+ rounded?: boolean;
20
+ text?: string;
21
+ variant?: "error" | "info" | "neutral" | "notification" | "primary" | "success" | "warning";
22
+ } & GlobalProps;
23
+ declare const Badge: (props: BadgeProps) => JSX.Element;
24
+ export default Badge;
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ declare type BarGraphProps = {
3
+ align?: "left" | "right" | "center";
4
+ axisTitle: string;
5
+ dark?: boolean;
6
+ xAxisCategories: [];
7
+ yAxisMin: number;
8
+ yAxisMax: number;
9
+ chartData: {
10
+ name: string;
11
+ data: number[];
12
+ }[];
13
+ className?: string;
14
+ id: any;
15
+ pointStart: number | any;
16
+ subTitle?: string;
17
+ title: string;
18
+ type?: string;
19
+ legend?: boolean;
20
+ toggleLegendClick?: boolean;
21
+ height?: string;
22
+ colors: string[];
23
+ layout?: "horizontal" | "vertical" | "proximate";
24
+ verticalAlign?: "top" | "middle" | "bottom";
25
+ x?: number;
26
+ y?: number;
27
+ aria?: {
28
+ [key: string]: string;
29
+ };
30
+ data?: {
31
+ [key: string]: string;
32
+ };
33
+ };
34
+ declare const BarGraph: ({ aria, data, align, axisTitle, dark, chartData, className, colors, id, pointStart, subTitle, type, title, xAxisCategories, yAxisMin, yAxisMax, legend, toggleLegendClick, height, layout, verticalAlign, x, y, ...props }: BarGraphProps) => React.ReactElement;
35
+ export default BarGraph;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type BodyProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ className?: string;
8
+ children?: React.ReactChild[] | React.ReactChild;
9
+ color?: 'default' | 'light' | 'lighter' | 'link' | 'error' | 'success';
10
+ dark?: boolean;
11
+ data?: {
12
+ [key: string]: string;
13
+ };
14
+ highlightedText?: string[];
15
+ highlighting?: boolean;
16
+ id?: string;
17
+ status?: 'neutral' | 'negative' | 'positive';
18
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div';
19
+ text?: string;
20
+ truncate?: null | '1' | '2' | '3' | '4' | '5';
21
+ variant?: null | 'link';
22
+ } & GlobalProps;
23
+ declare const Body: (props: BodyProps) => React.ReactElement;
24
+ export default Body;
@@ -0,0 +1,12 @@
1
+ declare type BreadCrumbItemProps = {
2
+ aria?: {
3
+ [key: string]: string;
4
+ };
5
+ className?: string;
6
+ data?: object;
7
+ id?: string;
8
+ component?: "a" | "span";
9
+ [x: string]: any;
10
+ };
11
+ declare const BreadCrumbItem: (props: BreadCrumbItemProps) => JSX.Element;
12
+ export default BreadCrumbItem;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ declare type BreadCrumbsProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ data?: object;
8
+ id?: string;
9
+ text?: string;
10
+ children?: React.ReactChild[] | React.ReactNode;
11
+ };
12
+ declare const BreadCrumbs: (props: BreadCrumbsProps) => JSX.Element;
13
+ export default BreadCrumbs;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type EventHandler = (React.MouseEventHandler<HTMLElement>);
4
+ declare type ButtonPropTypes = {
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ children?: React.ReactChild[] | React.ReactChild;
9
+ className?: string | string[];
10
+ count?: number;
11
+ data?: {
12
+ [key: string]: string;
13
+ };
14
+ disabled?: boolean;
15
+ fixedWidth?: boolean;
16
+ form?: string;
17
+ fullWidth?: boolean;
18
+ highlight?: boolean;
19
+ icon?: string;
20
+ iconRight?: boolean;
21
+ id?: string;
22
+ link?: string;
23
+ loading?: boolean;
24
+ newWindow?: boolean;
25
+ onClick?: EventHandler;
26
+ tabIndex?: number;
27
+ size?: 'sm' | 'md' | 'lg';
28
+ target?: string;
29
+ text?: string;
30
+ type?: 'inline' | null;
31
+ htmlType?: 'submit' | 'reset' | 'button' | undefined;
32
+ value?: string | null;
33
+ variant?: 'primary' | 'secondary' | 'link' | 'reaction';
34
+ wrapperClass?: string;
35
+ } & GlobalProps;
36
+ declare const Button: (props: ButtonPropTypes) => JSX.Element;
37
+ export default Button;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ declare type ButtonToolbarProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ children?: React.ReactChild[] | React.ReactChild;
7
+ className?: string;
8
+ connected?: boolean;
9
+ data?: object;
10
+ id?: string;
11
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
12
+ orientation?: "horizontal" | "vertical";
13
+ text?: string;
14
+ variant?: "primary" | "secondary";
15
+ };
16
+ declare const ButtonToolbar: (props: ButtonToolbarProps) => JSX.Element;
17
+ export default ButtonToolbar;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type CaptionProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ children?: React.ReactChild[] | React.ReactChild;
8
+ className?: string;
9
+ color?: "default" | "light" | "lighter" | "success" | "error" | "link";
10
+ data?: {
11
+ [key: string]: string;
12
+ };
13
+ id?: string;
14
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
15
+ tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "caption";
16
+ text?: string;
17
+ variant?: null | "link";
18
+ } & GlobalProps;
19
+ declare const Caption: (props: CaptionProps) => React.ReactElement;
20
+ export default Caption;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ import type { ProductColors, CategoryColors, BackgroundColors } from '../types/colors';
4
+ declare type CardPropTypes = {
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ background?: BackgroundColors | ProductColors | "none";
9
+ borderNone?: boolean;
10
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "rounded";
11
+ children: React.ReactChild[] | React.ReactChild | number;
12
+ className?: string;
13
+ data?: {
14
+ [key: string]: string;
15
+ };
16
+ highlight?: {
17
+ position?: "side" | "top";
18
+ color?: string;
19
+ };
20
+ length?: number;
21
+ padding?: string;
22
+ selected?: boolean;
23
+ tag?: "div" | "section" | "footer" | "header" | "article" | "aside" | "main" | "nav";
24
+ } & GlobalProps;
25
+ declare type CardHeaderProps = {
26
+ headerColor?: BackgroundColors | ProductColors | CategoryColors | "none";
27
+ headerColorStriped?: boolean;
28
+ children: React.ReactChild[] | React.ReactChild;
29
+ className?: string;
30
+ padding?: string;
31
+ } & GlobalProps;
32
+ declare type CardBodyProps = {
33
+ children: React.ReactChild[] | React.ReactChild | string;
34
+ className?: string;
35
+ padding?: string;
36
+ } & GlobalProps;
37
+ declare const Card: {
38
+ (props: CardPropTypes): JSX.Element;
39
+ Header: (props: CardHeaderProps) => JSX.Element;
40
+ Body: (props: CardBodyProps) => JSX.Element;
41
+ };
42
+ export default Card;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { GlobalProps } from '../utilities/globalProps';
3
+ declare type CheckboxProps = {
4
+ aria?: {
5
+ [key: string]: string;
6
+ };
7
+ checked?: boolean;
8
+ children?: React.ReactChild[] | React.ReactChild;
9
+ className?: string;
10
+ dark?: boolean;
11
+ data?: {
12
+ [key: string]: string;
13
+ };
14
+ error?: boolean;
15
+ id?: string;
16
+ indeterminate?: boolean;
17
+ name?: string;
18
+ onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
19
+ tabIndex?: number;
20
+ text?: string;
21
+ value?: string;
22
+ } & GlobalProps;
23
+ declare const Checkbox: (props: CheckboxProps) => JSX.Element;
24
+ export default Checkbox;
@@ -0,0 +1,2 @@
1
+ declare module "*.scss";
2
+ declare module "highcharts-react-official";
@@ -0,0 +1,35 @@
1
+ declare type CircleChartProps = {
2
+ align?: "left" | "right" | "center";
3
+ aria: {
4
+ [key: string]: string;
5
+ };
6
+ chartData?: [];
7
+ children?: Node;
8
+ className?: string;
9
+ colors?: string[];
10
+ dark?: Boolean;
11
+ data?: Object;
12
+ dataLabelHtml?: string;
13
+ dataLabels?: boolean;
14
+ height?: string;
15
+ id?: string;
16
+ innerSize?: "sm" | "md" | "lg" | "none";
17
+ legend?: boolean;
18
+ maxPointSize?: number;
19
+ minPointSize?: number;
20
+ rounded?: boolean;
21
+ startAngle?: number;
22
+ style?: string;
23
+ title?: string;
24
+ tooltipHtml: string;
25
+ useHtml?: boolean;
26
+ zMin?: number;
27
+ layout?: "horizontal" | "vertical" | "proximate";
28
+ verticalAlign?: "top" | "middle" | "bottom";
29
+ x?: number;
30
+ y?: number;
31
+ borderColor?: string;
32
+ borderWidth?: number;
33
+ };
34
+ declare const CircleChart: ({ align, aria, rounded, borderColor, borderWidth, chartData, children, className, colors, dark, data, dataLabelHtml, dataLabels, height, id, innerSize, legend, maxPointSize, minPointSize, startAngle, style, title, tooltipHtml, useHtml, zMin, layout, verticalAlign, x, y, ...props }: CircleChartProps) => JSX.Element;
35
+ export default CircleChart;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ declare type CircleIconButtonProps = {
3
+ aria?: {
4
+ [key: string]: string;
5
+ };
6
+ className?: string;
7
+ dark?: boolean;
8
+ data?: {
9
+ [key: string]: string;
10
+ };
11
+ disabled?: boolean;
12
+ icon: string;
13
+ id?: string;
14
+ link?: string;
15
+ onClick?: React.MouseEventHandler<HTMLElement>;
16
+ newWindow?: boolean;
17
+ type?: 'button' | 'submit' | 'reset' | undefined;
18
+ variant?: 'primary' | 'secondary' | 'link';
19
+ };
20
+ declare const CircleIconButton: (props: CircleIconButtonProps) => React.ReactElement;
21
+ export default CircleIconButton;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { IconSizes } from "../pb_icon/_icon";
3
+ declare type CollapsibleProps = {
4
+ children?: JSX.Element | [] | any;
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ className?: string;
9
+ collapsed?: boolean;
10
+ data?: object;
11
+ icon?: string | string[];
12
+ iconColor?: 'default' | 'light' | 'lighter' | 'link' | 'error' | 'success';
13
+ iconSize?: IconSizes;
14
+ onIconClick?: () => void;
15
+ onClick?: () => void;
16
+ id?: string;
17
+ };
18
+ declare const Collapsible: {
19
+ ({ aria, className, children, collapsed, data, icon, iconColor, iconSize, onIconClick, onClick, id, ...props }: CollapsibleProps): JSX.Element;
20
+ Main: ({ children, className, cursor, ...props }: {
21
+ children: React.ReactNode | React.ReactNode[];
22
+ className?: string;
23
+ cursor?: string;
24
+ dark?: boolean;
25
+ onClick?: () => void;
26
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
27
+ Content: ({ children, className, ...props }: import("./child_kits/CollapsibleContent").CollapsibleContentProps) => JSX.Element;
28
+ };
29
+ export default Collapsible;
@@ -0,0 +1,2 @@
1
+ export declare const showElement: (elem: any) => void;
2
+ export declare const hideElement: (elem: any) => void;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare type CollapsibleContentProps = {
3
+ children?: React.ReactNode[] | React.ReactNode | string;
4
+ className?: string;
5
+ };
6
+ declare const CollapsibleContent: ({ children, className, ...props }: CollapsibleContentProps) => JSX.Element;
7
+ export default CollapsibleContent;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare type CollapsibleMainProps = {
3
+ children: React.ReactNode[] | React.ReactNode;
4
+ className?: string;
5
+ cursor?: string;
6
+ dark?: boolean;
7
+ onClick?: () => void;
8
+ };
9
+ declare const CollapsibleMain: ({ children, className, cursor, ...props }: CollapsibleMainProps) => React.ReactElement;
10
+ export default CollapsibleMain;
@@ -3,6 +3,8 @@
3
3
  module Playbook
4
4
  module PbCollapsible
5
5
  class CollapsibleContent < Playbook::KitBase
6
+ prop :collapsed, type: Playbook::Props::Boolean,
7
+ default: true
6
8
  def data
7
9
  Hash(values[:data]).merge(
8
10
  collapsible_content: true
@@ -10,7 +12,7 @@ module Playbook
10
12
  end
11
13
 
12
14
  def classname
13
- generate_classname("pb_collapsible_content_kit", "toggle-content", padding, separator: " ")
15
+ generate_classname("pb_collapsible_content_kit", "toggle-content", collapsed ? nil : "is-visible", padding, separator: " ")
14
16
  end
15
17
  end
16
18
  end
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CollapsibleContext: import("react").Context<{}>;
3
+ export default CollapsibleContext;
@@ -0,0 +1,22 @@
1
+ <div onclick="toggleCollapsibleById('collapsed-toggle')">
2
+ <%= pb_rails("button", props: { text: "Toggle Collapsible", variant:"link"}) %>
3
+ </div>
4
+
5
+ <%= pb_rails("collapsible", props: { name: "default-example" }) do %>
6
+ <%= pb_rails("collapsible/collapsible_main", props: { padding: "md", name: "default-main"}) do %>
7
+ <%= pb_rails("body", props: { text: "Main Section"}) %>
8
+ <% end %>
9
+ <%= pb_rails("collapsible/collapsible_content", props: { padding: "md", collapsed: false, id:"collapsed-toggle" }) do %>
10
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at.
11
+ <br><br>
12
+ Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.
13
+ <% end %>
14
+ <% end %>
15
+
16
+
17
+
18
+ <script>
19
+ const toggleCollapsibleById = (id) => {
20
+ document.dispatchEvent(new CustomEvent(id));
21
+ };
22
+ </script>
@@ -0,0 +1,3 @@
1
+ The `collapsed` prop (boolean; default = true) handles the collapsed state of a collapsible. Set it to 'false' and the collapsible will render in an expanded state on page load.
2
+
3
+ You can also control the collapsed state using an external control (like a button). To do this, you must first apply a unique id to the collapsible/collapsible_content child element. You can then attach an eventListner to the external control of your choice, pass it the id as an argument and use `document.dispatchEvent(new CustomEvent(id))` to trigger the action. See the code example below for details.
@@ -0,0 +1,40 @@
1
+ <%= pb_rails("button", props: { variant:"link", text: "Toggle All", id: "toggle-button-example"}) %>
2
+
3
+ <%= pb_rails("collapsible", props: { name: "default-example" }) do %>
4
+ <%= pb_rails("collapsible/collapsible_main", props: { padding: "xs", name: "default-main"}) do %>
5
+ <%= pb_rails("body", props: { text: "Main Section"}) %>
6
+ <% end %>
7
+ <%= pb_rails("collapsible/collapsible_content", props: { padding: "md", id:"collapse-toggle-1" }) do %>
8
+ Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.
9
+ <% end %>
10
+ <% end %>
11
+ <%= pb_rails("collapsible", props: { name: "default-example-2" }) do %>
12
+ <%= pb_rails("collapsible/collapsible_main", props: { padding: "xs", name: "default-main"}) do %>
13
+ <%= pb_rails("body", props: { text: "Main Section"}) %>
14
+ <% end %>
15
+ <%= pb_rails("collapsible/collapsible_content", props: { padding: "md", id:"collapse-toggle-2" }) do %>
16
+ Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.
17
+ <% end %>
18
+ <% end %>
19
+ <%= pb_rails("collapsible", props: { name: "default-example-3" }) do %>
20
+ <%= pb_rails("collapsible/collapsible_main", props: { padding: "xs", name: "default-main"}) do %>
21
+ <%= pb_rails("body", props: { text: "Main Section"}) %>
22
+ <% end %>
23
+ <%= pb_rails("collapsible/collapsible_content", props: { padding: "md", id:"collapse-toggle-3" }) do %>
24
+ Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.
25
+ <% end %>
26
+ <% end %>
27
+
28
+
29
+
30
+ <script>
31
+ window.addEventListener('DOMContentLoaded', () => {
32
+ const collapsibles = document.querySelectorAll('[id^="collapse-toggle"]');
33
+ const button = document.querySelector("#toggle-button-example");
34
+ button.addEventListener("click", () => {
35
+ collapsibles.forEach(collapsible => {
36
+ document.dispatchEvent(new CustomEvent(collapsible.id));
37
+ })
38
+ })
39
+ })
40
+ </script>
@@ -0,0 +1 @@
1
+ The external control functionality can also be used to toggle multiple collapsibles with the same control. See the code example below to see this in action.
@@ -5,6 +5,8 @@ examples:
5
5
  - collapsible_size: Icon Size
6
6
  - collapsible_color: Icon Color
7
7
  - collapsible_icons: Custom Icons
8
+ - collapsible_external_controls: Toggle Collapsible With External Controls
9
+ - collapsible_external_controls_multiple: Toggle All Collapsibles With One Control
8
10
 
9
11
  react:
10
12
  - collapsible_default: Default
@@ -15,6 +15,10 @@ export default class PbCollapsible extends PbEnhancedElement {
15
15
  this.toggleElement(this.target)
16
16
  })
17
17
  this.displayDownArrow()
18
+ // Listen for a custom event to toggle the collapsible
19
+ document.addEventListener(`${this.target.id}`, () => {
20
+ this.toggleElement(this.target)
21
+ })
18
22
  }
19
23
 
20
24
  get target() {
@@ -0,0 +1,2 @@
1
+ declare const useCollapsible: (initial?: boolean) => any[];
2
+ export default useCollapsible;
@@ -0,0 +1,13 @@
1
+ declare type ContactProps = {
2
+ aria?: {
3
+ [key: string]: string;
4
+ };
5
+ className?: string | string[];
6
+ contactDetail?: string;
7
+ contactType?: string;
8
+ contactValue: string;
9
+ data?: object;
10
+ id?: string;
11
+ };
12
+ declare const Contact: (props: ContactProps) => JSX.Element;
13
+ export default Contact;
@@ -0,0 +1,24 @@
1
+ declare type CurrencyProps = {
2
+ abbreviate?: boolean;
3
+ align?: 'center' | 'left' | 'right';
4
+ amount: string;
5
+ aria?: {
6
+ [key: string]: string;
7
+ };
8
+ className?: string;
9
+ dark?: boolean;
10
+ data?: {
11
+ [key: string]: string;
12
+ };
13
+ decimals?: 'default' | 'matching';
14
+ emphasized?: boolean;
15
+ id?: string;
16
+ label?: string;
17
+ size?: 'sm' | 'md' | 'lg';
18
+ symbol?: string;
19
+ variant?: 'default' | 'light' | 'bold';
20
+ unit?: string;
21
+ unstyled?: boolean;
22
+ };
23
+ declare const Currency: (props: CurrencyProps) => JSX.Element;
24
+ export default Currency;
@@ -0,0 +1,2 @@
1
+ declare const mapColors: (array: string[]) => string[];
2
+ export default mapColors;
@@ -0,0 +1,3 @@
1
+ import { ThemeProps } from './themeTypes';
2
+ declare const highchartsDarkTheme: ThemeProps;
3
+ export { highchartsDarkTheme };
@@ -0,0 +1,3 @@
1
+ import { ThemeProps } from './themeTypes';
2
+ declare const highchartsTheme: ThemeProps;
3
+ export { highchartsTheme };