playbook_ui 16.2.0.pre.alpha.play284314664 → 16.2.0.pre.rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +2 -12
  3. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -33
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  7. data/app/pb_kits/playbook/pb_body/_body.scss +4 -4
  8. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +28 -28
  9. data/app/pb_kits/playbook/pb_button/_button.scss +0 -42
  10. data/app/pb_kits/playbook/pb_button/_button.tsx +0 -5
  11. data/app/pb_kits/playbook/pb_button/button.html.erb +8 -12
  12. data/app/pb_kits/playbook/pb_button/button.rb +0 -5
  13. data/app/pb_kits/playbook/pb_button/button.test.js +0 -105
  14. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
  15. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
  16. data/app/pb_kits/playbook/pb_caption/_caption.scss +1 -1
  17. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +15 -15
  18. data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.html.erb +4 -6
  19. data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +4 -14
  20. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +19 -19
  21. data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +0 -17
  22. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -10
  23. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -2
  24. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -2
  25. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
  26. data/app/pb_kits/playbook/pb_collapsible/index.js +4 -16
  27. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +7 -7
  28. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +5 -28
  29. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +16 -25
  30. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -4
  31. data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +1 -36
  32. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_positions.md +0 -1
  33. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -2
  34. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
  35. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +6 -14
  36. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +5 -80
  37. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_time_selection_styles.scss +1 -8
  38. data/app/pb_kits/playbook/pb_detail/_detail.scss +14 -14
  39. data/app/pb_kits/playbook/pb_detail/_detail_mixins.scss +13 -13
  40. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.html.erb +24 -6
  41. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +33 -35
  42. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.md +1 -3
  43. data/app/pb_kits/playbook/pb_dialog/index.js +5 -45
  44. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +25 -31
  45. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +15 -74
  46. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +1 -1
  47. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -6
  48. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +0 -1
  49. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.md +1 -3
  50. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -3
  51. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -3
  52. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +5 -17
  53. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +0 -11
  54. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +2 -25
  55. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +10 -15
  56. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.rb +0 -4
  57. data/app/pb_kits/playbook/pb_dropdown/index.js +88 -196
  58. data/app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js +3 -19
  59. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +0 -16
  60. data/app/pb_kits/playbook/pb_dropdown/utilities/clickOutsideHelper.tsx +1 -13
  61. data/app/pb_kits/playbook/pb_enhanced_element/element_observer.ts +1 -1
  62. data/app/pb_kits/playbook/pb_enhanced_element/index.ts +1 -2
  63. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -2
  64. data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +3 -158
  65. data/app/pb_kits/playbook/pb_form/pb_form_validation.js +2 -9
  66. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.html.erb +1 -1
  67. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +0 -1
  68. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.html.erb +1 -1
  69. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +0 -1
  70. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.html.erb +3 -3
  71. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +1 -4
  72. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.html.erb +4 -4
  73. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.jsx +1 -4
  74. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +0 -1
  75. data/app/pb_kits/playbook/pb_icon/_icon.scss +1 -5
  76. data/app/pb_kits/playbook/pb_icon/icon.rb +19 -168
  77. data/app/pb_kits/playbook/pb_link/_link.scss +1 -16
  78. data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +1 -31
  79. data/app/pb_kits/playbook/pb_list/_list_mixin.scss +4 -4
  80. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +8 -33
  81. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +549 -649
  82. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.html.erb +3 -3
  83. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.jsx +7 -4
  84. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -3
  85. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +17 -19
  86. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -3
  87. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx +25 -55
  88. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select_options.tsx +4 -4
  89. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +3 -8
  90. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +67 -71
  91. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +1 -2
  92. data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +1 -2
  93. data/app/pb_kits/playbook/pb_nav/_item.tsx +3 -5
  94. data/app/pb_kits/playbook/pb_nav/_nav.scss +3 -82
  95. data/app/pb_kits/playbook/pb_nav/docs/example.yml +6 -2
  96. data/app/pb_kits/playbook/pb_nav/docs/index.js +1 -2
  97. data/app/pb_kits/playbook/pb_nav/item.html.erb +1 -1
  98. data/app/pb_kits/playbook/pb_nav/item.rb +1 -1
  99. data/app/pb_kits/playbook/pb_nav/navTypes.ts +0 -1
  100. data/app/pb_kits/playbook/pb_pagination/_pagination.scss +1 -101
  101. data/app/pb_kits/playbook/pb_pagination/_pagination.test.jsx +1 -172
  102. data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +15 -178
  103. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx +1 -1
  104. data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +1 -14
  105. data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +4 -25
  106. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +11 -11
  107. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +0 -9
  108. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -2
  109. data/app/pb_kits/playbook/pb_radio/_radio.scss +17 -17
  110. data/app/pb_kits/playbook/pb_rich_text_editor/_previewer_mixin.scss +6 -6
  111. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +32 -31
  112. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +16 -53
  113. data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +5 -5
  114. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.jsx +0 -1
  115. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.jsx +0 -1
  116. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -2
  117. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -2
  118. data/app/pb_kits/playbook/pb_select/_select.scss +51 -61
  119. data/app/pb_kits/playbook/pb_select/_select.tsx +18 -28
  120. data/app/pb_kits/playbook/pb_select/docs/example.yml +2 -3
  121. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
  122. data/app/pb_kits/playbook/pb_select/select.html.erb +1 -7
  123. data/app/pb_kits/playbook/pb_select/select.rb +0 -3
  124. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +20 -69
  125. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +5 -6
  126. data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +0 -3
  127. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb +1 -1
  128. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.jsx +0 -1
  129. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +3 -3
  130. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_interactive.tsx +39 -56
  131. data/app/pb_kits/playbook/pb_table/index.ts +27 -29
  132. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +20 -51
  133. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +4 -11
  134. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +13 -11
  135. data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +10 -10
  136. data/app/pb_kits/playbook/pb_textarea/_textarea.scss +12 -55
  137. data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +17 -49
  138. data/app/pb_kits/playbook/pb_textarea/_textarea_mixin.scss +10 -31
  139. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.html.erb +3 -3
  140. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +0 -3
  141. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +0 -3
  142. data/app/pb_kits/playbook/pb_textarea/docs/index.js +8 -10
  143. data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +9 -25
  144. data/app/pb_kits/playbook/pb_textarea/textarea.rb +1 -14
  145. data/app/pb_kits/playbook/pb_textarea/textarea.test.js +1 -134
  146. data/app/pb_kits/playbook/pb_time_picker/_time_picker.scss +25 -186
  147. data/app/pb_kits/playbook/pb_time_picker/_time_picker.tsx +11 -118
  148. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.jsx +2 -5
  149. data/app/pb_kits/playbook/pb_time_picker/docs/example.yml +0 -2
  150. data/app/pb_kits/playbook/pb_time_picker/docs/index.js +0 -1
  151. data/app/pb_kits/playbook/pb_time_picker/time_picker.rb +1 -11
  152. data/app/pb_kits/playbook/pb_time_picker/time_picker.test.jsx +3 -49
  153. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +13 -13
  154. data/app/pb_kits/playbook/pb_title/docs/_title_colors.html.erb +0 -2
  155. data/app/pb_kits/playbook/pb_title/docs/_title_colors.jsx +0 -14
  156. data/app/pb_kits/playbook/pb_tooltip/index.js +15 -60
  157. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +23 -66
  158. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +2 -30
  159. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +322 -512
  160. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +0 -2
  161. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  162. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +21 -22
  163. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -3
  164. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -3
  165. data/app/pb_kits/playbook/tokens/_colors.scss +0 -3
  166. data/app/pb_kits/playbook/tokens/_titles.scss +1 -1
  167. data/app/pb_kits/playbook/tokens/exports/_colors.module.scss +0 -10
  168. data/dist/chunks/{_pb_line_graph-BGY7jEks.js → _pb_line_graph-BgKF_zz1.js} +1 -1
  169. data/dist/chunks/_typeahead-Bfy-4mll.js +1 -0
  170. data/dist/chunks/componentRegistry-DzmmLR2x.js +1 -0
  171. data/dist/chunks/{globalProps-CK2YuA9O.js → globalProps-BhVYCqRf.js} +1 -1
  172. data/dist/chunks/lib-DD34ZrWL.js +29 -0
  173. data/dist/chunks/vendor.js +5 -5
  174. data/dist/menu.yml +3 -3
  175. data/dist/playbook-rails-react-bindings.js +1 -1
  176. data/dist/playbook-rails.js +1 -1
  177. data/dist/playbook.css +2 -2
  178. data/dist/reset.css +1 -1
  179. data/lib/playbook/forms/builder/checkbox_field.rb +1 -1
  180. data/lib/playbook/forms/builder/collection_select_field.rb +1 -7
  181. data/lib/playbook/forms/builder/date_picker_field.rb +2 -8
  182. data/lib/playbook/forms/builder/dropdown_field.rb +1 -7
  183. data/lib/playbook/forms/builder/form_field_builder.rb +1 -1
  184. data/lib/playbook/forms/builder/intl_telephone_field.rb +1 -11
  185. data/lib/playbook/forms/builder/multi_level_select_field.rb +0 -8
  186. data/lib/playbook/forms/builder/phone_number_field.rb +2 -3
  187. data/lib/playbook/forms/builder/select_field.rb +1 -7
  188. data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -7
  189. data/lib/playbook/forms/builder/typeahead_field.rb +1 -15
  190. data/lib/playbook/forms/builder.rb +2 -2
  191. data/lib/playbook/version.rb +2 -2
  192. data/lib/playbook.rb +0 -1
  193. metadata +7 -55
  194. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.jsx +0 -71
  195. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.md +0 -4
  196. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant.html.erb +0 -21
  197. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant.jsx +0 -180
  198. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant_rails.md +0 -1
  199. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant_react.md +0 -1
  200. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb +0 -6
  201. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx +0 -17
  202. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md +0 -3
  203. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.md +0 -1
  204. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.html.erb +0 -5
  205. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.jsx +0 -13
  206. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.md +0 -1
  207. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.jsx +0 -63
  208. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.md +0 -1
  209. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.html.erb +0 -14
  210. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.jsx +0 -42
  211. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.md +0 -3
  212. data/app/pb_kits/playbook/pb_kit_registry/index.ts +0 -180
  213. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.md +0 -3
  214. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_reset_key.jsx +0 -100
  215. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_reset_key.md +0 -1
  216. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.html.erb +0 -72
  217. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.jsx +0 -87
  218. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.md +0 -3
  219. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_max_displayed_users.jsx +0 -71
  220. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.html.erb +0 -24
  221. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx +0 -87
  222. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx +0 -44
  223. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md +0 -1
  224. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx +0 -28
  225. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md +0 -1
  226. data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.html.erb +0 -24
  227. data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.jsx +0 -33
  228. data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.md +0 -3
  229. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.md +0 -1
  230. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.html.erb +0 -10
  231. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_disabled.jsx +0 -27
  232. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_input_options.jsx +0 -68
  233. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.html.erb +0 -6
  234. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.jsx +0 -16
  235. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.md +0 -3
  236. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.html.erb +0 -16
  237. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.jsx +0 -23
  238. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.md +0 -3
  239. data/app/pb_kits/playbook/tokens/_colors_accessible.scss +0 -254
  240. data/dist/chunks/_typeahead-tG1K5JPP.js +0 -1
  241. data/dist/chunks/componentRegistry-DRSp5D_e.js +0 -1
  242. data/dist/chunks/lib-DspaUdlc.js +0 -29
  243. data/lib/playbook/tokens/colors.json +0 -101
  244. data/lib/playbook/tokens.rb +0 -99
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 044d5e5f38ff25860322ebd1ecd3b0b485fec3c41dad28aecb5acf00900a27e7
4
- data.tar.gz: 7911881ec69fd9a9da84896cc7dbc15f03dc3e5ac5b255ffe4346334d5f12cd7
3
+ metadata.gz: c23c9c569be92144973f36beb52b16a31324a557d8a3fce6b9662a65c3fe9495
4
+ data.tar.gz: 5af45dd28792072ef8c0c4ef0a237b4036d09cf324e91fa87b348df9f406d834
5
5
  SHA512:
6
- metadata.gz: 28a32aac327245a7856b05d3f248e280b5dc53e19f698c4d4420732e85162ecba562488e2e13e2aac1d555d33cb532ef80e6bfde2ce60addfe8aa0fd4a92a492
7
- data.tar.gz: e844f51123c5564e67ec3563333216f8329f3a19ff6852e870cc817424b1fb9e7083c4dad92c6ff0c24fd3de84e6ef814189cf2454a702624e28db4781522919
6
+ metadata.gz: a7dc0f4a93cc629eaac57de2a013b831479c928c4ff459af2926f38221b201e42dda67d06f20112d64ccc1c7732b47f37c2efc6301c3f7c216f11c915aa9a564
7
+ data.tar.gz: ca66a6db50a94ea148c6afbb58fccbb0d302f2c2ddae2aa1d6b530687809c39e3bd01849e051c56b31e4ac1301fb9fffc0987d8460f63c5e349fc05dde321f73
@@ -66,18 +66,8 @@ const TableCellRenderer = ({
66
66
  // Find the "owning" colDefinition by accessor. Needed for multi column logic
67
67
  const colDef = findColumnDefByAccessor(columnDefinitions ?? [], column.id)
68
68
  const cellAlignment = colDef?.columnStyling?.cellAlignment ?? "right"
69
-
70
- // Support function-based styling for conditional rendering
71
- const cellFontColorValue = colDef?.columnStyling?.fontColor
72
- const cellFontColor = typeof cellFontColorValue === 'function'
73
- ? cellFontColorValue(row)
74
- : cellFontColorValue
75
-
76
- const cellBackgroundColorValue = colDef?.columnStyling?.cellBackgroundColor
77
- const cellBackgroundColor = typeof cellBackgroundColorValue === 'function'
78
- ? cellBackgroundColorValue(row)
79
- : cellBackgroundColorValue
80
-
69
+ const cellFontColor = colDef?.columnStyling?.fontColor
70
+ const cellBackgroundColor = colDef?.columnStyling?.cellBackgroundColor
81
71
  const paddingValue = colDef?.columnStyling?.cellPadding ?? customRowStyle?.cellPadding
82
72
  const paddingClass = paddingValue ? `p_${paddingValue}` : undefined
83
73
 
@@ -920,39 +920,6 @@ test("columnStyling.backgroundColor works as excpected", () => {
920
920
  expect(firstEnrollmentCell).toHaveStyle({ backgroundColor: colors.error_subtle });
921
921
  });
922
922
 
923
- test("columnStyling.cellBackgroundColor works as expected with function", () => {
924
- const styledColumnDefs = [
925
- {
926
- accessor: "year",
927
- label: "Year",
928
- cellAccessors: ["quarter", "month", "day"],
929
- },
930
- {
931
- accessor: "newEnrollments",
932
- label: "New Enrollments",
933
- columnStyling:{
934
- cellBackgroundColor: (row) => row.original.newEnrollments > 15 ? colors.success_subtle : colors.error_subtle,
935
- fontColor: (row) => row.original.newEnrollments > 15 ? colors.success : colors.error,
936
- },
937
- },
938
- {
939
- accessor: "scheduledMeetings",
940
- label: "Scheduled Meetings",
941
- },
942
- ];
943
-
944
- render(
945
- <AdvancedTable
946
- columnDefinitions={styledColumnDefs}
947
- data={{ testid: testId }}
948
- tableData={MOCK_DATA}
949
- />
950
- );
951
-
952
- const firstEnrollmentCell = screen.getAllByText("20")[0].closest("td");
953
- expect(firstEnrollmentCell).toHaveStyle({ backgroundColor: colors.success_subtle, color: colors.success });
954
- });
955
-
956
923
  test("columnStyling.headerBackgroundColor works as excpected", () => {
957
924
  const styledColumnDefs = [
958
925
  {
@@ -2,4 +2,4 @@ the `enableSorting` prop is a boolean prop set to false by default. If true, the
2
2
 
3
3
  ### sortIcon
4
4
 
5
- An optional prop, `sortIcon` allows you to customize your icon sets by passing it an array of any comma-separated pair of icon values. The first icon value will replace the kit's default icon when sort direction is desc, and the second value will replace the default icon when sort direction is asc. `sortIcon` also allows you to pass it a single icon as a string, in which case the icon will not toggle with the sort state. Default for this prop is `["arrow-up-wide-short", "arrow-down-short-wide"]`. All strings must be valid FA icons.
5
+ An optional prop, `sortIcon` allows you to customize your icon sets by passing it an array of any comma-separated pair of icon values. The first icon value will replace the kit's default icon when sort direction is desc, and the second value will replace the default icon when sort direction is asc. `sortIcon` also allows you to pass it a single icon as a string, in which case the icon will not toggle with the sort state. Default for this prop is `["arrow-up-short-wide", "arrow-down-short-wide"]`. All strings must be valid FA icons.
@@ -78,7 +78,6 @@ examples:
78
78
  - advanced_table_column_styling: Column Styling
79
79
  - advanced_table_column_styling_column_headers: Column Styling with Multiple Headers
80
80
  - advanced_table_column_styling_background: Column Styling Background Color
81
- - advanced_table_column_styling_background_custom: Column Styling Background Color (Custom)
82
81
  - advanced_table_column_styling_background_multi: Column Styling Background Color with Multiple Headers
83
82
  - advanced_table_padding_control: Padding Control using Column Styling
84
83
  - advanced_table_column_border_color: Column Group Border Color
@@ -47,5 +47,4 @@ export { default as AdvancedTableSortPerColumnForMultiColumn } from './_advanced
47
47
  export { default as AdvancedTablePaddingControl } from './_advanced_table_padding_control.jsx'
48
48
  export { default as AdvancedTablePaddingControlPerRow } from './_advanced_table_padding_control_per_row.jsx'
49
49
  export { default as AdvancedTableColumnStylingBackground } from './_advanced_table_column_styling_background.jsx'
50
- export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
51
- export { default as AdvancedTableColumnStylingBackgroundCustom } from './_advanced_table_column_styling_background_custom.jsx'
50
+ export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
@@ -30,7 +30,7 @@
30
30
  .pb_body_kit_error_neutral,
31
31
  .pb_body_kit_error_positive,
32
32
  .pb_body_kit_error_negative {
33
- @include pb_body($text_default_color);
33
+ @include pb_body($text_lt_default);
34
34
 
35
35
  b,
36
36
  strong {
@@ -38,9 +38,9 @@
38
38
  }
39
39
 
40
40
  a {
41
- color: $text_link;
41
+ color: $primary;
42
42
  &:hover {
43
- color: $text_default_color;
43
+ color: $text_lt_default;
44
44
  }
45
45
  }
46
46
 
@@ -110,7 +110,7 @@
110
110
  @include pb_body_dark();
111
111
 
112
112
  a {
113
- color: $text_link_dark;
113
+ color: $active_dark;
114
114
  }
115
115
  }
116
116
 
@@ -3,38 +3,38 @@
3
3
  @import "../tokens/typography";
4
4
 
5
5
  $pb_body_colors: (
6
- default: $text_default_color,
7
- light: $text_light,
8
- lighter: $text_lighter,
9
- link: $text_link,
10
- error: $text_error,
11
- success: $text_success,
6
+ default: $text_lt_default,
7
+ light: $text_lt_light,
8
+ lighter: $text_lt_lighter,
9
+ link: $primary,
10
+ error: $error,
11
+ success: $text_lt_success_sm,
12
12
  );
13
13
 
14
14
  $pb_dark_body_colors: (
15
- default: $text_default_dark,
16
- light: $text_light_dark,
17
- lighter: $text_lighter_dark,
18
- link: $text_link_dark,
19
- error: $text_error_dark,
20
- success: $text_success_dark,
15
+ default: $text_dk_default,
16
+ light: $text_dk_light,
17
+ lighter: $text_dk_lighter,
18
+ link: $active_dark,
19
+ error: $error,
20
+ success: $text_dk_success_sm,
21
21
  );
22
22
 
23
23
  // Order is important here!
24
24
  $pb_body_status: (
25
- default: $text_default_color,
26
- negative: $text_error,
27
- dark_error: $text_error_dark,
28
- positive: $text_success,
25
+ default: $text_lt_default,
26
+ negative: $error,
27
+ dark_error: $error_dark_body,
28
+ positive: $text_lt_success_sm,
29
29
  );
30
30
 
31
31
  $pb_dark_body_status: (
32
- default: $text_default_dark,
33
- negative: $text_error_dark,
34
- positive: $text_success_dark,
32
+ default: $text_dk_default,
33
+ negative: $error_dark,
34
+ positive: $text_dk_success_sm,
35
35
  );
36
36
 
37
- @mixin pb_body($color: $text_default_color) {
37
+ @mixin pb_body($color: $text_lt_default) {
38
38
  line-height: $lh_tight;
39
39
  color: $color;
40
40
  font-size: $text_default;
@@ -44,34 +44,34 @@ $pb_dark_body_status: (
44
44
 
45
45
  // Colors ======================
46
46
  @mixin pb_body_light {
47
- @include pb_body($text_light);
47
+ @include pb_body($text_lt_light);
48
48
  }
49
49
 
50
50
  @mixin pb_body_lighter {
51
- @include pb_body($text_lighter);
51
+ @include pb_body($text_lt_lighter);
52
52
  }
53
53
 
54
54
  @mixin pb_body_dark {
55
- @include pb_body($text_default_dark);
55
+ @include pb_body($text_dk_default);
56
56
  }
57
57
 
58
58
  @mixin pb_body_light_dark {
59
- @include pb_body($text_light_dark);
59
+ @include pb_body($text_dk_light);
60
60
  }
61
61
 
62
62
  @mixin pb_body_lighter_dark {
63
- @include pb_body($text_lighter_dark);
63
+ @include pb_body($text_dk_lighter);
64
64
  }
65
65
 
66
66
  // Statuses =====================
67
67
  @mixin pb_body_negative {
68
- @include pb_body($text_error);
68
+ @include pb_body($error);
69
69
  }
70
70
 
71
71
  @mixin pb_body_dark_error {
72
- @include pb_body($text_error_dark);
72
+ @include pb_body($error_dark_body);
73
73
  }
74
74
 
75
75
  @mixin pb_body_positive {
76
- @include pb_body($text_success);
76
+ @include pb_body($success);
77
77
  }
@@ -112,46 +112,4 @@ $pb_button_sizes: (
112
112
  @include pb_button_disabled_dark;
113
113
  }
114
114
  }
115
-
116
- // Icon-only button (icon prop set, no text) - square with equal padding
117
- // Rails: uses .pb_button_icon_only class
118
- // React: when pb_button_content is empty (no text). Do not match when content has
119
- // text + icon (e.g. "Exit Fullscreen" + FA icon) which can include empty spans.
120
- &.pb_button_icon_only,
121
- &:has(.pb_button_content:empty) {
122
- aspect-ratio: 1;
123
- min-width: auto;
124
- width: auto;
125
- height: auto;
126
- padding: $pb_button_v_padding !important;
127
- min-height: ($pb_button_v_padding * 2) + $font_small;
128
-
129
- &.pb_button_size_sm {
130
- padding: $font_smaller !important;
131
- min-height: ($font_smaller * 2) + $font_smaller;
132
- }
133
-
134
- &.pb_button_size_md {
135
- padding: $font_small !important;
136
- min-height: ($font_small * 2) + $font_small;
137
- }
138
-
139
- &.pb_button_size_lg {
140
- padding: ($font_large - 2px) !important;
141
- min-height: (($font_large - 2px) * 2) + ($font_large - 2px);
142
- }
143
-
144
- // Remove margins from icons
145
- .button_with_icon,
146
- .button_with_icon_right {
147
- margin-right: 0;
148
- margin-left: 0;
149
- }
150
-
151
- // Remove margins from Rails icon wrapper spans
152
- > span {
153
- margin-right: 0 !important;
154
- margin-left: 0 !important;
155
- }
156
- }
157
115
  }
@@ -51,13 +51,9 @@ const buttonClassName = (props: ButtonPropTypes) => {
51
51
  type = 'inline',
52
52
  variant = 'primary',
53
53
  size = null,
54
- text,
55
- children,
56
54
  } = props
57
55
 
58
56
  const classNames = ['pb_button_kit']
59
- // Icon-only: has icon, no text/children, and not a reaction button (reaction buttons have count)
60
- const isIconOnly = icon && !text && !children && variant !== 'reaction'
61
57
 
62
58
  if (variant) classNames.push(`pb_button_${variant}`)
63
59
  if (type) classNames.push(`pb_button_${type}`)
@@ -67,7 +63,6 @@ const buttonClassName = (props: ButtonPropTypes) => {
67
63
  if (size) classNames.push(`pb_button_size_${size}`)
68
64
  if (variant === 'reaction' && icon && !isValidEmoji(icon)) classNames.push('pb_button_reaction_default')
69
65
  if (variant === 'reaction' && highlight) classNames.push('pb_button_active')
70
- if (isIconOnly) classNames.push('pb_button_icon_only')
71
66
 
72
67
  return classNames.join(' ')
73
68
  }
@@ -16,21 +16,17 @@
16
16
  <% end %>
17
17
  <% end %>
18
18
  <% else %>
19
- <% if !object.loading %>
20
- <% if object.icon && !object.icon_right %>
21
- <span>
22
- <%= pb_rails("icon", props: { icon: "#{icon}", fixed_width: true, font_style: object.icon_font_family }.merge((object.icon_only? && content.blank?) ? {} : { margin_right: "xs" })) %>
23
- </span>
24
- <% end %>
19
+ <% if object.icon && !object.icon_right %>
20
+ <span>
21
+ <%= pb_rails("icon", props: { icon: "#{icon}", fixed_width: true, margin_right: "xs", font_style: object.icon_font_family }) %>
22
+ </span>
25
23
  <% end %>
26
24
  <%= pb_rails("icon", props: { custom_icon: Playbook::Engine::root.join(spinner_path), pulse: true, fixed_width: true, classname: "loading-icon" }) %>
27
25
  <span class="pb_button_content"><%= content.presence || object.text %></span>
28
- <% if !object.loading %>
29
- <% if object.icon && object.icon_right %>
30
- <span>
31
- <%= pb_rails("icon", props: { icon: "#{icon}", fixed_width: true, font_style: object.icon_font_family }.merge((object.icon_only? && content.blank?) ? {} : { margin_left: "xs" })) %>
32
- </span>
33
- <% end %>
26
+ <% if object.icon && object.icon_right %>
27
+ <span>
28
+ <%= pb_rails("icon", props: { icon: "#{icon}", fixed_width: true, margin_left: "xs", font_style: object.icon_font_family }) %>
29
+ </span>
34
30
  <% end %>
35
31
  <% end %>
36
32
 
@@ -73,10 +73,6 @@ module Playbook
73
73
  emoji_regex.match?(icon)
74
74
  end
75
75
 
76
- def icon_only?
77
- icon.present? && text.blank? && variant != "reaction"
78
- end
79
-
80
76
  def classname
81
77
  class_names = ["pb_button_kit"]
82
78
  class_names << "pb_button_#{variant}" if variant
@@ -86,7 +82,6 @@ module Playbook
86
82
  class_names << "pb_button_size_#{size}" if size
87
83
  class_names << "pb_button_reaction_default" if variant === "reaction" && icon && !valid_emoji(icon)
88
84
  class_names << "pb_button_active" if variant === "reaction" && highlight
89
- class_names << "pb_button_icon_only" if icon_only?
90
85
 
91
86
  class_names.join(" ")
92
87
  generate_classname(class_names.compact.join(" "), separator: " ")
@@ -131,108 +131,3 @@ test('should render child target prop', () => {
131
131
  expect(kit).toHaveAttribute('target', 'child')
132
132
  expect(kit).not.toHaveAttribute('rel')
133
133
  })
134
-
135
- describe('icon-only button', () => {
136
- test('adds pb_button_icon_only class when icon is provided without text', () => {
137
- render(
138
- <Button
139
- data={{ testid: 'icon-only-test' }}
140
- icon="plus"
141
- />
142
- )
143
-
144
- const kit = screen.getByTestId('icon-only-test')
145
- expect(kit).toHaveClass('pb_button_icon_only')
146
- })
147
-
148
- test('does not add pb_button_icon_only class when text is provided', () => {
149
- render(
150
- <Button
151
- data={{ testid: 'icon-with-text-test' }}
152
- icon="plus"
153
- text="Click me"
154
- />
155
- )
156
-
157
- const kit = screen.getByTestId('icon-with-text-test')
158
- expect(kit).not.toHaveClass('pb_button_icon_only')
159
- })
160
-
161
- test('does not add pb_button_icon_only class when children are provided', () => {
162
- render(
163
- <Button
164
- data={{ testid: 'icon-with-children-test' }}
165
- icon="plus"
166
- >
167
- Click me
168
- </Button>
169
- )
170
-
171
- const kit = screen.getByTestId('icon-with-children-test')
172
- expect(kit).not.toHaveClass('pb_button_icon_only')
173
- })
174
-
175
- test('does not add pb_button_icon_only class when variant is reaction', () => {
176
- render(
177
- <Button
178
- data={{ testid: 'reaction-icon-test' }}
179
- icon="plus"
180
- variant="reaction"
181
- />
182
- )
183
-
184
- const kit = screen.getByTestId('reaction-icon-test')
185
- expect(kit).not.toHaveClass('pb_button_icon_only')
186
- })
187
-
188
- test('adds pb_button_icon_only class with different variants', () => {
189
- const variants = ['primary', 'secondary', 'link', 'danger']
190
-
191
- variants.forEach(variant => {
192
- const { unmount } = render(
193
- <Button
194
- data={{ testid: `icon-only-${variant}-test` }}
195
- icon="plus"
196
- variant={variant}
197
- />
198
- )
199
-
200
- const kit = screen.getByTestId(`icon-only-${variant}-test`)
201
- expect(kit).toHaveClass('pb_button_icon_only')
202
- unmount()
203
- })
204
- })
205
-
206
- test('adds pb_button_icon_only class with loading state', () => {
207
- render(
208
- <Button
209
- data={{ testid: 'icon-only-loading-test' }}
210
- icon="plus"
211
- loading
212
- />
213
- )
214
-
215
- const kit = screen.getByTestId('icon-only-loading-test')
216
- expect(kit).toHaveClass('pb_button_icon_only')
217
- expect(kit).toHaveClass('pb_button_loading')
218
- })
219
-
220
- test('adds pb_button_icon_only class with size variants', () => {
221
- const sizes = ['sm', 'md', 'lg']
222
-
223
- sizes.forEach(size => {
224
- const { unmount } = render(
225
- <Button
226
- data={{ testid: `icon-only-${size}-test` }}
227
- icon="plus"
228
- size={size}
229
- />
230
- )
231
-
232
- const kit = screen.getByTestId(`icon-only-${size}-test`)
233
- expect(kit).toHaveClass('pb_button_icon_only')
234
- expect(kit).toHaveClass(`pb_button_size_${size}`)
235
- unmount()
236
- })
237
- })
238
- })
@@ -13,7 +13,6 @@ examples:
13
13
  - button_form: Button Form Attribute
14
14
  - button_managed_disabled: Button Toggle Disabled State
15
15
  - button_managed_disabled_helper: Button Toggle Disabled State Helper
16
- - button_icon_variant: Icon Button Variant
17
16
 
18
17
  react:
19
18
  - button_default: Button Variants
@@ -28,7 +27,6 @@ examples:
28
27
  - button_size: Button Size
29
28
  - button_form: Button Form Attribute
30
29
  - button_hover: Button Hover
31
- - button_icon_variant: Icon Button Variant
32
30
 
33
31
  swift:
34
32
  - button_default_swift: Button Variants
@@ -4,7 +4,6 @@ export { default as ButtonLink } from './_button_link.jsx'
4
4
  export { default as ButtonLoading } from './_button_loading.jsx'
5
5
  export { default as ButtonBlockContent } from './_button_block_content.jsx'
6
6
  export { default as ButtonIconOptions } from './_button_icon_options.jsx'
7
- export { default as ButtonIconVariant } from './_button_icon_variant.jsx'
8
7
  export { default as ButtonAccessibility } from './_button_accessibility.jsx'
9
8
  export { default as ButtonOptions } from './_button_options.jsx'
10
9
  export { default as ButtonSize } from './_button_size.jsx'
@@ -88,7 +88,7 @@
88
88
  .pb_caption_kit_base_link,
89
89
  .pb_caption_kit_lg_link,
90
90
  .pb_caption_kit_xl_link {
91
- color: $text_link;
91
+ color: $primary;
92
92
  }
93
93
 
94
94
  // Dark theme variants
@@ -2,33 +2,33 @@
2
2
  @import "../tokens/typography";
3
3
 
4
4
  $pb_caption_colors: (
5
- default: $text_default_color,
6
- light: $text_light,
7
- link: $text_link,
8
- lighter: $text_lighter,
9
- success: $text_success,
10
- error: $text_error,
5
+ default: $text_lt_default,
6
+ light: $text_lt_light,
7
+ link: $primary,
8
+ lighter: $text_lt_lighter,
9
+ success: $text_lt_success_sm,
10
+ error: $error,
11
11
  );
12
12
 
13
13
  $pb_dark_caption_colors: (
14
- default: $text_default_dark,
15
- light: $text_light_dark,
16
- lighter: $text_lighter_dark,
17
- link: $text_link_dark,
18
- success: $text_success_dark,
19
- error: $text_error_dark,
14
+ default: $text_dk_default,
15
+ light: $text_dk_light,
16
+ lighter: $text_dk_lighter,
17
+ link: $active_dark,
18
+ success: $text_dk_success_sm,
19
+ error: $error_dark,
20
20
  );
21
21
 
22
22
 
23
23
  @mixin caption($font_size: $font_smaller, $font_weight: $bold) {
24
24
  font-weight: $font_weight;
25
- color: $text_light;
25
+ color: $text_lt_light;
26
26
  text-transform: uppercase;
27
27
  font-size: $font_size;
28
28
  letter-spacing: $lspace_loosest;
29
29
  }
30
30
 
31
- @mixin caption_color($color: $text_light) {
31
+ @mixin caption_color($color: $text_lt_light) {
32
32
  color: $color;
33
33
  }
34
34
 
@@ -43,5 +43,5 @@ $pb_dark_caption_colors: (
43
43
  }
44
44
 
45
45
  @mixin caption_dark {
46
- color: $text_light_dark;
46
+ color: $text_dk_light;
47
47
  }
@@ -1,6 +1,4 @@
1
- <%= pb_rails("caption", props: { text: "Caption light" }) %>
2
- <%= pb_rails("caption", props: { text: "Caption default", color: "default" }) %>
3
- <%= pb_rails("caption", props: { text: "Caption lighter", color: "lighter" }) %>
4
- <%= pb_rails("caption", props: { text: "Caption success", color: "success" }) %>
5
- <%= pb_rails("caption", props: { text: "Caption error", color: "error" }) %>
6
- <%= pb_rails("caption", props: { text: "Caption link", color: "link" }) %>
1
+ <%= pb_rails("caption", props: { text: "Test colors" }) %>
2
+ <%= pb_rails("caption", props: { text: "Test colors", color: "success" }) %>
3
+ <%= pb_rails("caption", props: { text: "Test colors", color: "error" }) %>
4
+ <%= pb_rails("caption", props: { text: "Test colors", color: "link" }) %>
@@ -4,33 +4,23 @@ import Caption from "../../pb_caption/_caption"
4
4
  const CaptionColors = (props) => {
5
5
  return (
6
6
  <div>
7
- <Caption
8
- text="Caption light"
9
- {...props}
10
- />
11
- <Caption
12
- color="default"
13
- text="Caption default"
14
- {...props}
15
- />
16
7
  <Caption
17
- color="lighter"
18
- text="Caption lighter"
8
+ text="Test colors"
19
9
  {...props}
20
10
  />
21
11
  <Caption
22
12
  color="success"
23
- text="Caption success"
13
+ text="Test colors"
24
14
  {...props}
25
15
  />
26
16
  <Caption
27
17
  color="error"
28
- text="Caption error"
18
+ text="Test colors"
29
19
  {...props}
30
20
  />
31
21
  <Caption
32
22
  color="link"
33
- text="Caption link"
23
+ text="Test colors"
34
24
  {...props}
35
25
  />
36
26
  </div>