playbook_ui 9.19.0.pre.alpha.pre.fonts2 → 9.19.0.pre.alphafonts

Sign up to get free protection for your applications and to get access to all the features.
Files changed (356) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -5
  3. data/app/assets/images/clark.jpg +0 -0
  4. data/app/assets/images/full_page_samples.svg +7 -0
  5. data/app/assets/images/giant.jpg +0 -0
  6. data/app/assets/images/github-brands.svg +1 -0
  7. data/app/assets/images/landing-background.svg +36 -0
  8. data/app/assets/images/landing-image.svg +203 -0
  9. data/app/assets/images/pb-caret.svg +1 -0
  10. data/app/assets/images/pb-check.svg +11 -0
  11. data/app/assets/images/pb-logo.svg +28 -0
  12. data/app/assets/images/pb-white-logo.svg +15 -0
  13. data/app/assets/images/pb.logo.svg +28 -0
  14. data/app/pb_kits/playbook/index.js +107 -107
  15. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +2 -3
  16. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +2 -3
  17. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +1 -2
  18. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +1 -2
  19. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +1 -2
  20. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +1 -2
  21. data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -3
  22. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -2
  23. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +1 -2
  24. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +1 -2
  25. data/app/pb_kits/playbook/pb_body/_body.jsx +2 -4
  26. data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +1 -2
  27. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +1 -4
  28. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +1 -2
  29. data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +1 -2
  30. data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +2 -3
  31. data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +1 -2
  32. data/app/pb_kits/playbook/pb_card/docs/_card_tag.jsx +1 -2
  33. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +1 -2
  34. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +1 -2
  35. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +1 -2
  36. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +2 -2
  37. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +1 -3
  38. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +1 -2
  39. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +1 -2
  40. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +1 -2
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +1 -3
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +1 -2
  43. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +1 -2
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +1 -2
  45. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +1 -2
  46. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +5 -4
  47. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +1 -2
  48. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +1 -2
  49. data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +3 -5
  50. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.jsx +1 -1
  51. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.jsx +3 -4
  52. data/app/pb_kits/playbook/pb_contact/_contact.jsx +2 -5
  53. data/app/pb_kits/playbook/pb_currency/_currency.jsx +1 -4
  54. data/app/pb_kits/playbook/pb_currency/docs/_currency_alignment.jsx +1 -2
  55. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol.jsx +1 -2
  56. data/app/pb_kits/playbook/pb_currency/docs/_currency_size.jsx +1 -2
  57. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +1 -2
  58. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +5 -4
  59. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +1 -2
  60. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +1 -2
  61. data/app/pb_kits/playbook/pb_date/_date.jsx +3 -8
  62. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +3 -7
  63. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx +1 -2
  64. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +1 -2
  65. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx +1 -2
  66. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.jsx +1 -2
  67. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_flatpickr_methods.jsx +1 -4
  68. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +1 -2
  69. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hide_icon.jsx +1 -2
  70. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.jsx +1 -2
  71. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +1 -2
  72. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx +1 -2
  73. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx +1 -2
  74. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +1 -2
  75. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_range.jsx +1 -2
  76. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +1 -2
  77. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +3 -7
  78. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +2 -7
  79. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +3 -7
  80. data/app/pb_kits/playbook/pb_date_time/_date_time.jsx +2 -6
  81. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +2 -7
  82. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +4 -2
  83. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +3 -5
  84. data/app/pb_kits/playbook/pb_dialog/_close_icon.jsx +1 -1
  85. data/app/pb_kits/playbook/pb_dialog/_dialog.jsx +2 -4
  86. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx +1 -4
  87. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.jsx +1 -3
  88. data/app/pb_kits/playbook/pb_enhanced_element/index.js +1 -2
  89. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +4 -5
  90. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +1 -4
  91. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +1 -3
  92. data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.jsx +1 -3
  93. data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.jsx +1 -2
  94. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.jsx +1 -3
  95. data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.jsx +1 -3
  96. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.jsx +1 -6
  97. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx +1 -7
  98. data/app/pb_kits/playbook/pb_filter/docs/_sort_only.jsx +1 -2
  99. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -5
  100. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +1 -2
  101. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +1 -2
  102. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -2
  103. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +1 -4
  104. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +1 -5
  105. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +1 -3
  106. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.jsx +1 -4
  107. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +1 -5
  108. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.jsx +1 -3
  109. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx +1 -3
  110. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +1 -5
  111. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +7 -3
  112. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +2 -3
  113. data/app/pb_kits/playbook/pb_highlight/docs/_highlight_default.jsx +1 -3
  114. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -5
  115. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.jsx +1 -2
  116. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +1 -2
  117. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +1 -2
  118. data/app/pb_kits/playbook/pb_icon/docs/_icon_animate.jsx +1 -2
  119. data/app/pb_kits/playbook/pb_icon/docs/_icon_border.jsx +1 -2
  120. data/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx +1 -2
  121. data/app/pb_kits/playbook/pb_icon/docs/_icon_flip.jsx +1 -2
  122. data/app/pb_kits/playbook/pb_icon/docs/_icon_pull.jsx +1 -2
  123. data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx +1 -2
  124. data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx +1 -2
  125. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +2 -3
  126. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.jsx +1 -2
  127. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_default.jsx +1 -2
  128. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.jsx +1 -7
  129. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +2 -3
  130. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align.jsx +1 -2
  131. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_default.jsx +1 -2
  132. data/app/pb_kits/playbook/pb_image/docs/_custom_error_image.jsx +1 -4
  133. data/app/pb_kits/playbook/pb_image/docs/_default_image.jsx +1 -2
  134. data/app/pb_kits/playbook/pb_image/docs/_rounded_image.jsx +1 -2
  135. data/app/pb_kits/playbook/pb_kit/dateTime.js +2 -2
  136. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -2
  137. data/app/pb_kits/playbook/pb_label_pill/docs/_label_pill_default.jsx +1 -2
  138. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +2 -7
  139. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.jsx +1 -4
  140. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.jsx +1 -7
  141. data/app/pb_kits/playbook/pb_layout/docs/_layout_colors.jsx +1 -4
  142. data/app/pb_kits/playbook/pb_layout/docs/_layout_content.jsx +1 -4
  143. data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban.jsx +12 -11
  144. data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban_responsive.jsx +1 -5
  145. data/app/pb_kits/playbook/pb_layout/docs/_layout_masonry.jsx +1 -4
  146. data/app/pb_kits/playbook/pb_layout/docs/_layout_sizes.jsx +1 -2
  147. data/app/pb_kits/playbook/pb_layout/docs/_layout_transparent.jsx +1 -2
  148. data/app/pb_kits/playbook/pb_legend/_legend.jsx +2 -4
  149. data/app/pb_kits/playbook/pb_legend/docs/_legend_default.jsx +1 -2
  150. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -2
  151. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +1 -2
  152. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +1 -1
  153. data/app/pb_kits/playbook/pb_list/docs/_list_borderless.jsx +1 -2
  154. data/app/pb_kits/playbook/pb_list/docs/_list_default.jsx +1 -2
  155. data/app/pb_kits/playbook/pb_list/docs/_list_layout_left.jsx +1 -4
  156. data/app/pb_kits/playbook/pb_list/docs/_list_layout_right.jsx +1 -5
  157. data/app/pb_kits/playbook/pb_list/docs/_list_lg.jsx +1 -2
  158. data/app/pb_kits/playbook/pb_list/docs/_list_ordered.jsx +1 -2
  159. data/app/pb_kits/playbook/pb_list/docs/_list_xpadding.jsx +1 -2
  160. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +2 -3
  161. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_light.jsx +1 -2
  162. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +2 -7
  163. data/app/pb_kits/playbook/pb_message/_message.jsx +2 -8
  164. data/app/pb_kits/playbook/pb_message/docs/_message_default.jsx +1 -2
  165. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +1 -3
  166. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +2 -4
  167. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_default.jsx +1 -2
  168. data/app/pb_kits/playbook/pb_nav/_item.jsx +2 -5
  169. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -4
  170. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +2 -2
  171. data/app/pb_kits/playbook/pb_nav/docs/_block_nav.jsx +2 -4
  172. data/app/pb_kits/playbook/pb_nav/docs/_block_no_title_nav.jsx +2 -3
  173. data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +2 -3
  174. data/app/pb_kits/playbook/pb_nav/docs/_default_nav.jsx +2 -3
  175. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav.jsx +2 -3
  176. data/app/pb_kits/playbook/pb_nav/docs/_new_tab.jsx +2 -3
  177. data/app/pb_kits/playbook/pb_nav/docs/_no_highlight_nav.jsx +2 -3
  178. data/app/pb_kits/playbook/pb_nav/docs/_subtle_horizontal_nav.jsx +2 -3
  179. data/app/pb_kits/playbook/pb_nav/docs/_subtle_nav.jsx +2 -3
  180. data/app/pb_kits/playbook/pb_nav/docs/_subtle_no_highlight_nav.jsx +2 -3
  181. data/app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx +2 -3
  182. data/app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.jsx +2 -3
  183. data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +2 -3
  184. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +1 -2
  185. data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +2 -11
  186. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx +1 -2
  187. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.jsx +1 -3
  188. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_default.jsx +1 -2
  189. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_input_props.jsx +1 -2
  190. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.jsx +1 -4
  191. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx +1 -4
  192. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_tips.jsx +1 -2
  193. data/app/pb_kits/playbook/pb_person/_person.jsx +2 -3
  194. data/app/pb_kits/playbook/pb_person/docs/_person_default.jsx +1 -2
  195. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +8 -5
  196. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_default.jsx +1 -2
  197. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_multiple.jsx +1 -2
  198. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_detail.jsx +1 -2
  199. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -2
  200. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +7 -4
  201. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +1 -3
  202. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +0 -1
  203. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +2 -5
  204. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx +2 -6
  205. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +0 -1
  206. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom.jsx +1 -2
  207. data/app/pb_kits/playbook/pb_radio/docs/_radio_default.jsx +1 -2
  208. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +8 -10
  209. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +2 -4
  210. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +1 -5
  211. data/app/pb_kits/playbook/pb_select/_select.jsx +13 -6
  212. data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
  213. data/app/pb_kits/playbook/pb_select/docs/_select_blank.jsx +1 -2
  214. data/app/pb_kits/playbook/pb_select/docs/_select_custom_select.jsx +1 -2
  215. data/app/pb_kits/playbook/pb_select/docs/_select_default.jsx +1 -2
  216. data/app/pb_kits/playbook/pb_select/docs/_select_disabled.jsx +1 -2
  217. data/app/pb_kits/playbook/pb_select/docs/_select_disabled_options.jsx +1 -2
  218. data/app/pb_kits/playbook/pb_select/docs/_select_required.jsx +1 -2
  219. data/app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx +1 -2
  220. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +3 -6
  221. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.jsx +1 -5
  222. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_image.jsx +5 -4
  223. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_input.jsx +5 -4
  224. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +2 -5
  225. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.jsx +1 -2
  226. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_default.jsx +1 -2
  227. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_single_select.jsx +1 -2
  228. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +2 -3
  229. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +1 -2
  230. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +1 -2
  231. data/app/pb_kits/playbook/pb_selectable_list/_item.jsx +2 -7
  232. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.jsx +2 -4
  233. data/app/pb_kits/playbook/pb_source/_source.jsx +13 -8
  234. data/app/pb_kits/playbook/pb_source/docs/_source_default.jsx +1 -2
  235. data/app/pb_kits/playbook/pb_source/docs/_source_noicon.jsx +1 -2
  236. data/app/pb_kits/playbook/pb_source/docs/_source_types.jsx +1 -2
  237. data/app/pb_kits/playbook/pb_star_rating/_star_rating.jsx +7 -2
  238. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +1 -2
  239. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +1 -2
  240. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -4
  241. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +2 -3
  242. data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +1 -2
  243. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +2 -3
  244. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.jsx +1 -2
  245. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.jsx +1 -2
  246. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.jsx +1 -2
  247. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.jsx +1 -2
  248. data/app/pb_kits/playbook/pb_table/docs/_table_container.jsx +1 -2
  249. data/app/pb_kits/playbook/pb_table/docs/_table_data_table.jsx +1 -2
  250. data/app/pb_kits/playbook/pb_table/docs/_table_disable_hover.jsx +1 -2
  251. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +2 -6
  252. data/app/pb_kits/playbook/pb_table/docs/_table_lg.jsx +1 -2
  253. data/app/pb_kits/playbook/pb_table/docs/_table_md.jsx +1 -2
  254. data/app/pb_kits/playbook/pb_table/docs/_table_multiline.jsx +1 -2
  255. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +2 -3
  256. data/app/pb_kits/playbook/pb_table/docs/_table_responsive_table.jsx +1 -3
  257. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +1 -3
  258. data/app/pb_kits/playbook/pb_table/docs/_table_single_line.jsx +1 -2
  259. data/app/pb_kits/playbook/pb_table/docs/_table_sm.jsx +1 -2
  260. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +2 -3
  261. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +2 -3
  262. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +2 -7
  263. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
  264. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +1 -2
  265. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx +1 -2
  266. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +5 -4
  267. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +1 -2
  268. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx +1 -2
  269. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +3 -9
  270. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +3 -3
  271. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_character_counter.jsx +1 -2
  272. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx +1 -2
  273. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +1 -2
  274. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_resize.jsx +1 -2
  275. data/app/pb_kits/playbook/pb_time/_time.jsx +1 -3
  276. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +3 -7
  277. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +2 -3
  278. data/app/pb_kits/playbook/pb_timeline/_item.jsx +1 -4
  279. data/app/pb_kits/playbook/pb_timeline/_timeline.jsx +1 -3
  280. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_default.jsx +2 -4
  281. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx +2 -4
  282. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx +2 -3
  283. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +3 -5
  284. data/app/pb_kits/playbook/pb_title/_title.scss +1 -1
  285. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +40 -1
  286. data/app/pb_kits/playbook/pb_title/docs/_title_light.jsx +1 -2
  287. data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +1 -2
  288. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +2 -3
  289. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_align.jsx +1 -2
  290. data/app/pb_kits/playbook/pb_title_count/docs/_title_count_default.jsx +1 -2
  291. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +3 -4
  292. data/app/pb_kits/playbook/pb_title_detail/docs/_title_detail_default.jsx +1 -2
  293. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +15 -19
  294. data/app/pb_kits/playbook/pb_typeahead/components/Control.jsx +4 -2
  295. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +1 -2
  296. data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +3 -1
  297. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +1 -3
  298. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +1 -2
  299. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx +1 -2
  300. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx +1 -2
  301. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
  302. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  303. data/app/pb_kits/playbook/pb_user/_user.jsx +2 -6
  304. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_default.jsx +1 -2
  305. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size.jsx +1 -2
  306. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +5 -6
  307. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_compact.jsx +3 -2
  308. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_default.jsx +3 -2
  309. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_weekday_stacked_variant.jsx +3 -2
  310. data/app/pb_kits/playbook/plugins/pb_chart.js +4 -6
  311. data/app/pb_kits/playbook/react_rails_kits.js +13 -0
  312. data/app/pb_kits/playbook/tokens/_colors.scss +0 -4
  313. data/app/pb_kits/playbook/tokens/_fonts.scss +28 -14
  314. data/app/pb_kits/playbook/utilities/_colors.scss +4 -0
  315. data/app/pb_kits/playbook/utilities/accessibility.js +22 -0
  316. data/app/pb_kits/playbook/{playbook-rails.js → vendor.js} +5 -1
  317. data/dist/reset.css +0 -1
  318. data/fonts/ProximaNova-Black.woff +0 -0
  319. data/fonts/ProximaNova-Black.woff2 +0 -0
  320. data/fonts/ProximaNova-BlackIt.woff +0 -0
  321. data/fonts/ProximaNova-BlackIt.woff2 +0 -0
  322. data/fonts/ProximaNova-Bold.woff +0 -0
  323. data/fonts/ProximaNova-Bold.woff2 +0 -0
  324. data/fonts/ProximaNova-BoldIt.woff +0 -0
  325. data/fonts/ProximaNova-BoldIt.woff2 +0 -0
  326. data/fonts/ProximaNova-Extrabld.woff +0 -0
  327. data/fonts/ProximaNova-Extrabld.woff2 +0 -0
  328. data/fonts/ProximaNova-ExtrabldIt.woff +0 -0
  329. data/fonts/ProximaNova-ExtrabldIt.woff2 +0 -0
  330. data/fonts/ProximaNova-Light.woff +0 -0
  331. data/fonts/ProximaNova-Light.woff2 +0 -0
  332. data/fonts/ProximaNova-LightIt.woff +0 -0
  333. data/fonts/ProximaNova-LightIt.woff2 +0 -0
  334. data/fonts/ProximaNova-Regular.woff +0 -0
  335. data/fonts/ProximaNova-Regular.woff2 +0 -0
  336. data/fonts/ProximaNova-RegularIt.woff +0 -0
  337. data/fonts/ProximaNova-RegularIt.woff2 +0 -0
  338. data/fonts/ProximaNova-Semibold.woff +0 -0
  339. data/fonts/ProximaNova-Semibold.woff2 +0 -0
  340. data/fonts/ProximaNova-SemiboldIt.woff +0 -0
  341. data/fonts/ProximaNova-SemiboldIt.woff2 +0 -0
  342. data/fonts/ProximaNova-Thin.woff +0 -0
  343. data/fonts/ProximaNova-Thin.woff2 +0 -0
  344. data/fonts/ProximaNova-ThinIt.woff +0 -0
  345. data/fonts/ProximaNova-ThinIt.woff2 +0 -0
  346. data/lib/playbook/engine.rb +21 -11
  347. data/lib/playbook/props/nested_props.rb +1 -1
  348. data/lib/playbook/version.rb +2 -2
  349. data/lib/playbook.rb +15 -1
  350. metadata +161 -20
  351. data/app/pb_kits/playbook/_reset.scss +0 -42
  352. data/app/pb_kits/playbook/pb_collapsible/context.js +0 -5
  353. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx +0 -58
  354. data/app/pb_kits/playbook/playbook-doc.js +0 -195
  355. data/app/pb_kits/playbook/playbook-rails-react-bindings.js +0 -35
  356. data/app/pb_kits/playbook/tokens/_titles.scss +0 -38
@@ -1,7 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Table from '../_table'
4
- import TableRow from '../_table_row'
2
+ import { Table, TableRow } from '../../'
5
3
 
6
4
  const TableSideHighlight = (props) => {
7
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Table from '../_table'
2
+ import { Table } from '../../'
4
3
 
5
4
  const TableSingleLine = (props) => {
6
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Table from '../_table'
2
+ import { Table } from '../../'
4
3
 
5
4
  const TableSm = (props) => {
6
5
  return (
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
-
3
- import Table from '../_table'
4
- import Button from '../../pb_button/_button'
2
+ import { Table } from '../..'
3
+ import { Button } from '../../'
5
4
 
6
5
  const TableOneAction = (props) => {
7
6
  return (
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
-
3
- import Table from '../_table'
4
- import CircleIconButton from '../../pb_circle_icon_button/_circle_icon_button'
2
+ import { Table } from '../..'
3
+ import { CircleIconButton } from '../../'
5
4
 
6
5
  const TableTwoPlusActions = (props) => {
7
6
  return (
@@ -1,15 +1,10 @@
1
1
  /* @flow */
2
2
  import React, { forwardRef } from 'react'
3
3
  import classnames from 'classnames'
4
-
4
+ import { Body, Caption, Card, Flex, Icon } from '../'
5
5
  import { globalProps } from '../utilities/globalProps.js'
6
- import { buildAriaProps, buildDataProps } from '../utilities/props'
7
6
 
8
- import Flex from '../pb_flex/_flex'
9
- import Card from '../pb_card/_card'
10
- import Caption from '../pb_caption/_caption'
11
- import Body from '../pb_body/_body'
12
- import Icon from '../pb_icon/_icon'
7
+ import { buildAriaProps, buildDataProps } from '../utilities/props'
13
8
 
14
9
  type TextInputProps = {
15
10
  aria?: object,
@@ -1,5 +1,5 @@
1
1
  @import "../pb_textarea/textarea_mixin";
2
- @import "../tokens/titles";
2
+ @import "../pb_title/title_mixin";
3
3
  @import "../tokens/colors";
4
4
 
5
5
 
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import TextInput from '../_text_input'
2
+ import { TextInput } from '../../'
4
3
 
5
4
  const TextInputAddOn = (props) => {
6
5
  const [defaultInput, setDefaultInput] = useState('')
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import TextInput from '../_text_input'
2
+ import { TextInput } from '../../'
4
3
 
5
4
  const TextInputCustom = (props) => {
6
5
  const [name, setName] = useState('')
@@ -1,8 +1,9 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import Caption from '../../pb_caption/_caption'
4
- import TextInput from '../../pb_text_input/_text_input'
5
- import Title from '../../pb_title/_title'
2
+ import {
3
+ Caption,
4
+ TextInput,
5
+ Title,
6
+ } from '../../'
6
7
 
7
8
  const TextInputDefault = (props) => {
8
9
  const handleOnChangeFirstName = ({ target }) => {
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import TextInput from '../_text_input'
2
+ import { TextInput } from '../../'
4
3
 
5
4
  class TextInputDisabled extends React.Component {
6
5
  render(props) {
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import TextInput from '../_text_input'
2
+ import { TextInput } from '../../'
4
3
 
5
4
  const TextInputInline = (props) => {
6
5
  const [value, setValue] = useState('Inline Input')
@@ -2,16 +2,10 @@
2
2
 
3
3
  import React, { forwardRef, useEffect, useRef } from 'react'
4
4
  import classnames from 'classnames'
5
-
6
- import PbTextarea from './'
5
+ import { Body, Caption, Flex, FlexItem } from '../'
7
6
  import type { InputCallback } from '../types.js'
8
-
9
- import { globalProps } from '../utilities/globalProps'
10
-
11
- import Body from '../pb_body/_body'
12
- import Caption from '../pb_caption/_caption'
13
- import Flex from '../pb_flex/_flex'
14
- import FlexItem from '../pb_flex/_flex_item'
7
+ import { globalProps } from '../utilities/globalProps.js'
8
+ import PbTextarea from './'
15
9
 
16
10
  type TextareaProps = {
17
11
  characterCount?: string,
@@ -1,11 +1,11 @@
1
1
  @import "../pb_body/body_mixins";
2
2
  @import "./textarea_mixin";
3
+ @import "../pb_title/title_mixin";
3
4
  @import "../tokens/spacing";
4
- @import "../tokens/titles";
5
5
 
6
6
  [class^=pb_textarea_kit] {
7
7
  margin-bottom: $space_sm;
8
-
8
+
9
9
  [class^=pb_caption_kit] {
10
10
  margin-bottom: $space_xs;
11
11
  display: block;
@@ -28,7 +28,7 @@
28
28
  .pb_text_area_kit:hover {
29
29
  background-color: rgba($focus_input_light,$opacity_5);
30
30
  }
31
-
31
+
32
32
  &.resize_both > textarea {
33
33
  resize: both;
34
34
  overflow: auto;
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from 'react'
2
-
3
- import Textarea from '../_textarea'
2
+ import { Textarea } from '../../'
4
3
 
5
4
  const TextareaCharacterCounter = (props) => {
6
5
  const [value1, setValue1] = useState('Counting characters!')
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Textarea from '../_textarea'
2
+ import { Textarea } from '../../'
4
3
 
5
4
  const TextareaCustom = (props) => {
6
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Textarea from '../_textarea'
2
+ import { Textarea } from '../../'
4
3
 
5
4
  const TextareaDefault = (props) => {
6
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Textarea from '../_textarea'
2
+ import { Textarea } from '../../'
4
3
 
5
4
  const TextareaResize = (props) => {
6
5
  return (
@@ -7,9 +7,7 @@ import DateTime from '../pb_kit/dateTime.js'
7
7
  import { buildCss } from '../utilities/props'
8
8
  import { globalProps } from '../utilities/globalProps.js'
9
9
 
10
- import Body from '../pb_body/_body'
11
- import Caption from '../pb_caption/_caption'
12
- import Icon from '../pb_icon/_icon'
10
+ import { Body, Caption, Icon } from '../'
13
11
 
14
12
  type TimeProps = {
15
13
  align?: 'left' | 'center' | 'right',
@@ -2,13 +2,9 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
-
6
- import DateTime from '../pb_kit/dateTime'
7
- import { globalProps } from '../utilities/globalProps'
8
-
9
- import Body from '../pb_body/_body'
10
- import Caption from '../pb_caption/_caption'
11
- import Icon from '../pb_icon/_icon'
5
+ import { Body, Caption, Icon } from '../'
6
+ import DateTime from '../pb_kit/dateTime.js'
7
+ import { globalProps } from '../utilities/globalProps.js'
12
8
 
13
9
  type TimeRangeInlineProps = {
14
10
  className?: string,
@@ -5,10 +5,9 @@ import classnames from 'classnames'
5
5
 
6
6
  import DateTime from '../pb_kit/dateTime.js'
7
7
  import { buildCss, buildDataProps } from '../utilities/props'
8
- import { deprecatedProps, globalProps } from '../utilities/globalProps'
8
+ import { deprecatedProps, globalProps } from '../utilities/globalProps.js'
9
9
 
10
- import Body from '../pb_body/_body'
11
- import Caption from '../pb_caption/_caption'
10
+ import { Body, Caption } from '../'
12
11
 
13
12
  type TimeStackedProps = {
14
13
  align?: 'left' | 'center' | 'right',
@@ -2,11 +2,8 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
-
6
5
  import { buildCss } from '../utilities/props'
7
-
8
- import DateStacked from '../pb_date_stacked/_date_stacked'
9
- import IconCircle from '../pb_icon_circle/_icon_circle'
6
+ import { DateStacked, IconCircle } from '..'
10
7
 
11
8
  type ItemProps = {
12
9
  className?: string,
@@ -2,10 +2,8 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
-
6
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
7
-
8
5
  import TimelineItem from './_item.jsx'
6
+ import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
9
7
 
10
8
  type TimelineProps = {
11
9
  aria?: object,
@@ -1,8 +1,6 @@
1
1
  import React from 'react'
2
-
3
- import Timeline from '../_timeline'
4
- import Body from '../../pb_body/_body'
5
- import TitleDetail from '../../pb_title_detail/_title_detail'
2
+ import Timeline from '../_timeline.jsx'
3
+ import { Body, TitleDetail } from '../../'
6
4
 
7
5
  const TimelineDefault = (props) => (
8
6
  <div>
@@ -1,8 +1,6 @@
1
1
  import React from 'react'
2
-
3
- import Timeline from '../_timeline'
4
- import Body from '../../pb_body/_body'
5
- import TitleDetail from '../../pb_title_detail/_title_detail'
2
+ import Timeline from '../_timeline.jsx'
3
+ import { Body, TitleDetail } from '../../'
6
4
 
7
5
  const TimelineVertical = (props) => (
8
6
  <div>
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
-
3
- import Timeline from '../_timeline'
4
- import TitleDetail from '../../pb_title_detail/_title_detail'
2
+ import Timeline from '../_timeline.jsx'
3
+ import { TitleDetail } from '../../'
5
4
 
6
5
  const TimelineWithDate = (props) => (
7
6
  <div>
@@ -2,12 +2,10 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
-
6
- import DateTime from '../pb_kit/dateTime'
5
+ import DateTime from '../pb_kit/dateTime.js'
7
6
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
- import { globalProps } from '../utilities/globalProps'
9
-
10
- import Caption from '../pb_caption/_caption'
7
+ import { Caption } from '../'
8
+ import { globalProps } from '../utilities/globalProps.js'
11
9
 
12
10
  type TimestampProps = {
13
11
  align?: "left" | "center" | "right",
@@ -1,4 +1,4 @@
1
- @import "../tokens/titles";
1
+ @import "title_mixin";
2
2
  @import "../tokens/colors";
3
3
 
4
4
  [class^=pb_title_kit]{
@@ -1 +1,40 @@
1
- @import "../tokens/titles";
1
+ @import "../tokens/colors";
2
+ @import "../tokens/typography";
3
+ @import "../tokens/line_height";
4
+
5
+ @mixin pb_title(
6
+ $fontSize: $heading_1,
7
+ $fontWeight: $lighter,
8
+ $lineHeight: $lh_tighter
9
+ ){
10
+ font-size: $fontSize;
11
+ letter-spacing: $lspace_tight;
12
+ font-weight: $fontWeight;
13
+ color: $text_lt_default;
14
+ margin: 0;
15
+ line-height: $lineHeight;
16
+ font-family: $font_family_base;
17
+ }
18
+
19
+ @mixin pb_title_1 {
20
+ @include pb_title($heading_1);
21
+ letter-spacing: -0.03em;
22
+ }
23
+
24
+ @mixin pb_title_2 {
25
+ @include pb_title($heading_2, $lighter, 0.96);
26
+ }
27
+
28
+ @mixin pb_title_3 {
29
+ @include pb_title($heading_3);
30
+ }
31
+
32
+ @mixin pb_title_4 {
33
+ @include pb_title($heading_4, $bolder);
34
+ }
35
+
36
+ @mixin pb_title_dark {
37
+ color: $text_dk_default;
38
+ }
39
+
40
+
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Title from '../_title'
2
+ import { Title } from '../../'
4
3
 
5
4
  const TitleLight = (props) => {
6
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import Title from '../_title'
2
+ import { Title } from '../../'
4
3
 
5
4
  const TitleVariants = (props) => {
6
5
  return (
@@ -4,10 +4,9 @@ import React from 'react'
4
4
  import classnames from 'classnames'
5
5
 
6
6
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
7
- import { globalProps } from '../utilities/globalProps'
8
7
 
9
- import Body from '../pb_body/_body'
10
- import Title from '../pb_title/_title'
8
+ import { Body, Title } from '../'
9
+ import { globalProps } from '../utilities/globalProps.js'
11
10
 
12
11
  type TitleCountProps = {
13
12
  align: "center" | "left" | "right",
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import TitleCount from '../_title_count'
2
+ import { TitleCount } from '../../'
4
3
 
5
4
  const TitleCountAlign = (props) => {
6
5
  return (
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import TitleCount from '../_title_count'
2
+ import { TitleCount } from '../../'
4
3
 
5
4
  const TitleCountDefault = (props) => {
6
5
  return (
@@ -2,12 +2,11 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
+ import { globalProps } from '../utilities/globalProps.js'
5
6
 
6
- import { globalProps } from '../utilities/globalProps'
7
- import { buildCss, buildDataProps } from '../utilities/props'
7
+ import { Body, Title } from '../'
8
8
 
9
- import Body from '../pb_body/_body'
10
- import Title from '../pb_title/_title'
9
+ import { buildCss, buildDataProps } from '../utilities/props'
11
10
 
12
11
  type TitleDetailProps = {
13
12
  align?: "left" | "center" | "right",
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
-
3
- import TitleDetail from '../_title_detail'
2
+ import { TitleDetail } from '../../'
4
3
 
5
4
  const TitleDetailDefault = (props) => (
6
5
  <div>
@@ -4,8 +4,7 @@ import React from 'react'
4
4
  import Select from 'react-select'
5
5
  import AsyncSelect from 'react-select/async'
6
6
  import CreateableSelect from 'react-select/creatable'
7
- import AsyncCreateableSelect from 'react-select/async-creatable'
8
- import { get, isString, uniqueId } from 'lodash'
7
+ import { get } from 'lodash'
9
8
  import { globalProps } from '../utilities/globalProps.js'
10
9
  import classnames from 'classnames'
11
10
 
@@ -27,24 +26,23 @@ import { noop } from '../utilities/props'
27
26
  * @prop {string} label - the text for the optional typeahead input label
28
27
  */
29
28
 
30
- type TypeaheadProps = {
31
- id?: string,
29
+ type Props = {
32
30
  async?: boolean,
33
31
  createable?: boolean,
34
32
  dark?: boolean,
35
33
  label?: string,
36
- loadOptions?: string,
37
- getOptionLabel?: string | (() => any),
38
- getOptionValue?: string | (() => any),
34
+ loadOptions?: noop | string,
35
+ getOptionLabel?: () => any,
36
+ getOptionValue?: () => any,
39
37
  name?: string,
40
38
  }
41
39
 
42
40
  /**
43
41
  * @constant {React.ReactComponent} Typeahead
44
- * @param {TypeaheadProps} props - props as described at https://react-select.com/props
42
+ * @param {Props} props - props as described at https://react-select.com/props
45
43
  */
46
44
 
47
- const Typeahead = ({ loadOptions = noop, getOptionLabel, id, getOptionValue, createable, async, ...props }: TypeaheadProps) => {
45
+ const Typeahead = (props: Props) => {
48
46
  const selectProps = {
49
47
  cacheOptions: true,
50
48
  components: {
@@ -58,11 +56,8 @@ const Typeahead = ({ loadOptions = noop, getOptionLabel, id, getOptionValue, cre
58
56
  Placeholder,
59
57
  ValueContainer,
60
58
  },
61
- loadOptions: isString(loadOptions) ? get(window, loadOptions) : loadOptions,
62
- getOptionLabel: isString(getOptionLabel) ? get(window, getOptionLabel) : getOptionLabel,
63
- getOptionValue: isString(getOptionValue) ? get(window, getOptionValue) : getOptionValue,
64
59
  defaultOptions: true,
65
- id: id || uniqueId(),
60
+ id: 'react-select-input',
66
61
  inline: false,
67
62
  isClearable: true,
68
63
  isSearchable: true,
@@ -73,13 +68,14 @@ const Typeahead = ({ loadOptions = noop, getOptionLabel, id, getOptionValue, cre
73
68
  ...props,
74
69
  }
75
70
 
76
- const Tag = (
77
- createable
78
- ? (async ? AsyncCreateableSelect : CreateableSelect)
79
- : (async ? AsyncSelect : Select)
80
- )
71
+ if (typeof(props.loadOptions) === 'string') selectProps.loadOptions = get(window, props.loadOptions)
72
+ if (typeof(props.getOptionLabel) === 'string') selectProps.getOptionLabel = get(window, props.getOptionLabel)
73
+ if (typeof(props.getOptionValue) === 'string') selectProps.getOptionValue = get(window, props.getOptionValue)
74
+
75
+ let Tag = props.async ? AsyncSelect : Select
76
+ if (props.createable) Tag = CreateableSelect
81
77
 
82
- const handleOnChange = (_data, { action, option, removedValue }) => {
78
+ const handleOnChange = (data, { action, option, removedValue }) => {
83
79
  if (action === 'select-option') {
84
80
  if (selectProps.onMultiValueClick) selectProps.onMultiValueClick(option)
85
81
  const multiValueClearEvent = new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-select`, { detail: option })
@@ -3,8 +3,10 @@
3
3
  import React from 'react'
4
4
  import { components } from 'react-select'
5
5
 
6
- import Flex from '../../pb_flex/_flex'
7
- import TextInput from '../../pb_text_input/_text_input'
6
+ import {
7
+ Flex,
8
+ TextInput,
9
+ } from '../..'
8
10
 
9
11
  type Props = {
10
12
  selectProps: any,
@@ -3,8 +3,7 @@
3
3
  import React from 'react'
4
4
  import { components } from 'react-select'
5
5
 
6
- import Badge from '../../pb_badge/_badge'
7
- import FormPill from '../../pb_form_pill/_form_pill'
6
+ import { Badge, FormPill } from '../../'
8
7
 
9
8
  type Props = {
10
9
  data: object,
@@ -3,7 +3,9 @@
3
3
  import React from 'react'
4
4
  import { components } from 'react-select'
5
5
 
6
- import User from '../../pb_user/_user'
6
+ import {
7
+ User,
8
+ } from '../../'
7
9
 
8
10
  const Option = (props: any) => {
9
11
  const {
@@ -1,11 +1,9 @@
1
1
  /* @flow */
2
2
 
3
3
  import React from 'react'
4
+ import { Flex, Icon } from '../../'
4
5
  import { components } from 'react-select'
5
6
 
6
- import Flex from '../../pb_flex/_flex'
7
- import Icon from '../../pb_icon/_icon'
8
-
9
7
  const Placeholder = (props: any) => (
10
8
  <>
11
9
  <Flex
@@ -1,8 +1,7 @@
1
1
  // @flow
2
2
 
3
3
  import React from 'react'
4
-
5
- import Typeahead from '../_typeahead'
4
+ import { Typeahead } from '../../'
6
5
 
7
6
  const options = [
8
7
  { label: 'Orange', value: '#FFA500' },
@@ -1,8 +1,7 @@
1
1
  // @flow
2
2
 
3
3
  import React from 'react'
4
-
5
- import Typeahead from '../_typeahead'
4
+ import { Typeahead } from '../../'
6
5
 
7
6
  const synths = [
8
7
  { label: 'Oberheim', value: 'OBXa' },
@@ -1,8 +1,7 @@
1
1
  // @flow
2
2
 
3
3
  import React from 'react'
4
-
5
- import Typeahead from '../_typeahead'
4
+ import { Typeahead } from '../../'
6
5
 
7
6
  const labels = [
8
7
  { label: 'Verve', value: '1956' },
@@ -17,4 +17,3 @@ examples:
17
17
  - typeahead_inline: Inline
18
18
  - typeahead_multi_kit: Multi Kit Options
19
19
  - typeahead_createable: Createable
20
- - typeahead_async_createable: Createable (+ Async Data)
@@ -6,4 +6,3 @@ export { default as TypeaheadWithPillsAsyncCustomOptions } from './_typeahead_wi
6
6
  export { default as TypeaheadInline } from './_typeahead_inline.jsx'
7
7
  export { default as TypeaheadMultiKit } from './_typeahead_multi_kit.jsx'
8
8
  export { default as TypeaheadCreateable } from './_typeahead_createable.jsx'
9
- export { default as TypeaheadAsyncCreateable } from './_typeahead_async_createable.jsx'