playbook_ui 13.14.0 → 13.15.0.pre.alpha.PLAY10851907

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +5 -5
  4. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +3 -3
  5. data/app/pb_kits/playbook/pb_background/_background.tsx +9 -9
  6. data/app/pb_kits/playbook/pb_badge/_badge.tsx +2 -2
  7. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +3 -3
  8. data/app/pb_kits/playbook/pb_body/_body.scss +0 -5
  9. data/app/pb_kits/playbook/pb_body/_body.tsx +5 -9
  10. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +0 -20
  11. data/app/pb_kits/playbook/pb_body/body.rb +1 -8
  12. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.tsx +3 -4
  13. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx +3 -3
  14. data/app/pb_kits/playbook/pb_button/_button.tsx +40 -37
  15. data/app/pb_kits/playbook/pb_button/docs/_button_props_swift.md +11 -0
  16. data/app/pb_kits/playbook/pb_button/docs/_button_reaction_swift.md +26 -0
  17. data/app/pb_kits/playbook/pb_button/docs/example.yml +1 -0
  18. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +3 -3
  19. data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -1
  20. data/app/pb_kits/playbook/pb_card/_card.tsx +2 -2
  21. data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +5 -4
  22. data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +3 -3
  23. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +9 -9
  24. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.tsx +1 -1
  25. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +5 -7
  26. data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +2 -2
  27. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +5 -4
  28. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +16 -12
  29. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_colors_swift.md +27 -0
  30. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default_swift.md +22 -0
  31. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_props_table.md +8 -0
  32. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_sizes_swift.md +26 -0
  33. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +6 -0
  34. data/app/pb_kits/playbook/pb_contact/_contact.tsx +3 -3
  35. data/app/pb_kits/playbook/pb_currency/_currency.tsx +2 -2
  36. data/app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts +1 -1
  37. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +4 -55
  38. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +5 -56
  39. data/app/pb_kits/playbook/pb_dashboard/themeTypes.ts +20 -16
  40. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx +1 -1
  41. data/app/pb_kits/playbook/pb_date/_date.tsx +7 -7
  42. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -1
  43. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +2 -2
  44. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +2 -2
  45. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +8 -8
  46. data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +2 -2
  47. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -1
  48. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +2 -2
  49. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.test.js +6 -3
  50. data/app/pb_kits/playbook/pb_detail/_detail.scss +2 -2
  51. data/app/pb_kits/playbook/pb_detail/_detail.tsx +5 -5
  52. data/app/pb_kits/playbook/pb_detail/detail.rb +1 -1
  53. data/app/pb_kits/playbook/pb_detail/detail.test.jsx +2 -2
  54. data/app/pb_kits/playbook/pb_dialog/_close_icon.tsx +2 -2
  55. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +42 -34
  56. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx +1 -1
  57. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +4 -5
  58. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +4 -4
  59. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default_swift.md +11 -0
  60. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +8 -4
  61. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +8 -4
  62. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_props_table.md +13 -0
  63. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +4 -2
  64. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes_swift.md +18 -0
  65. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +1 -1
  66. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status_swift.md +14 -0
  67. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +7 -0
  68. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.tsx +5 -5
  69. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +1 -1
  70. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +1 -1
  71. data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -1
  72. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +1 -1
  73. data/app/pb_kits/playbook/pb_form_group/_form_group.tsx +1 -1
  74. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
  75. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +1 -1
  76. data/app/pb_kits/playbook/pb_hashtag/_hashtag.tsx +1 -1
  77. data/app/pb_kits/playbook/pb_highlight/_highlight.tsx +1 -1
  78. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +1 -1
  79. data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -1
  80. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -1
  81. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +1 -1
  82. data/app/pb_kits/playbook/pb_icon_value/_icon_value.tsx +1 -1
  83. data/app/pb_kits/playbook/pb_image/_image.tsx +1 -1
  84. data/app/pb_kits/playbook/pb_label_pill/_label_pill.tsx +1 -1
  85. data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +1 -1
  86. data/app/pb_kits/playbook/pb_layout/_layout.tsx +1 -1
  87. data/app/pb_kits/playbook/pb_legend/_legend.tsx +1 -1
  88. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +1 -1
  89. data/app/pb_kits/playbook/pb_lightbox/_lightbox.tsx +1 -1
  90. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +1 -1
  91. data/app/pb_kits/playbook/pb_list/_list.tsx +1 -1
  92. data/app/pb_kits/playbook/pb_list/_list_item.tsx +1 -1
  93. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +1 -1
  94. data/app/pb_kits/playbook/pb_map/_map.tsx +1 -1
  95. data/app/pb_kits/playbook/pb_message/_message.tsx +1 -1
  96. data/app/pb_kits/playbook/pb_message/_message_mention.tsx +1 -1
  97. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -1
  98. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +1 -1
  99. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +1 -1
  100. data/app/pb_kits/playbook/pb_nav/_item.tsx +1 -1
  101. data/app/pb_kits/playbook/pb_nav/_nav.tsx +1 -1
  102. data/app/pb_kits/playbook/pb_nav/docs/_nav_horizontal_bold_swift.md +17 -0
  103. data/app/pb_kits/playbook/pb_nav/docs/_nav_horizontal_default_swift.md +17 -0
  104. data/app/pb_kits/playbook/pb_nav/docs/_nav_horizontal_subtle_no_highlight_swift.md +18 -0
  105. data/app/pb_kits/playbook/pb_nav/docs/_nav_horizontal_subtle_swift.md +18 -0
  106. data/app/pb_kits/playbook/pb_nav/docs/_nav_props_swift.md +11 -0
  107. data/app/pb_kits/playbook/pb_nav/docs/_nav_vertical_bold_swift.md +18 -0
  108. data/app/pb_kits/playbook/pb_nav/docs/_nav_vertical_default_swift.md +18 -0
  109. data/app/pb_kits/playbook/pb_nav/docs/_nav_vertical_subtle_no_highlight_swift.md +19 -0
  110. data/app/pb_kits/playbook/pb_nav/docs/_nav_vertical_subtle_swift.md +17 -0
  111. data/app/pb_kits/playbook/pb_nav/docs/example.yml +17 -0
  112. data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -1
  113. data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +52 -51
  114. data/app/pb_kits/playbook/pb_person/_person.tsx +1 -1
  115. data/app/pb_kits/playbook/pb_person/docs/_person_default_swift.md +8 -0
  116. data/app/pb_kits/playbook/pb_person/docs/_person_props_swift.md +5 -0
  117. data/app/pb_kits/playbook/pb_person/docs/example.yml +4 -0
  118. data/app/pb_kits/playbook/pb_person_contact/_person_contact.tsx +21 -20
  119. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +5 -4
  120. data/app/pb_kits/playbook/pb_pill/_pill.tsx +1 -1
  121. data/app/pb_kits/playbook/pb_popover/_popover.tsx +7 -5
  122. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +21 -21
  123. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +5 -5
  124. data/app/pb_kits/playbook/pb_progress_step/_progress_step.tsx +1 -1
  125. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx +1 -1
  126. data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -1
  127. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx +19 -17
  128. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorTypes.ts +1 -1
  129. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +23 -21
  130. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +18 -10
  131. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +46 -23
  132. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.tsx +8 -8
  133. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarNodes.tsx +7 -7
  134. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +18 -16
  135. data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +10 -8
  136. data/app/pb_kits/playbook/pb_select/_select.tsx +2 -2
  137. data/app/pb_kits/playbook/pb_select/docs/_select_default_swift.md +15 -0
  138. data/app/pb_kits/playbook/pb_select/docs/_select_error_swift.md +18 -0
  139. data/app/pb_kits/playbook/pb_select/docs/_select_props_table.md +8 -0
  140. data/app/pb_kits/playbook/pb_select/docs/example.yml +5 -0
  141. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +1 -1
  142. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.tsx +26 -25
  143. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx +28 -27
  144. data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +1 -1
  145. data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.tsx +3 -2
  146. data/app/pb_kits/playbook/pb_source/_source.tsx +16 -16
  147. data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +1 -1
  148. data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +1 -1
  149. data/app/pb_kits/playbook/pb_stat_value/_stat_value.tsx +1 -1
  150. data/app/pb_kits/playbook/pb_table/_table.tsx +1 -1
  151. data/app/pb_kits/playbook/pb_table/_table_row.tsx +1 -1
  152. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -1
  153. data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +1 -1
  154. data/app/pb_kits/playbook/pb_time/_time.tsx +1 -1
  155. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -1
  156. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +1 -1
  157. data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -1
  158. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
  159. data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +1 -1
  160. data/app/pb_kits/playbook/pb_title/_title.scss +0 -5
  161. data/app/pb_kits/playbook/pb_title/_title.tsx +2 -5
  162. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +0 -19
  163. data/app/pb_kits/playbook/pb_title/title.rb +2 -9
  164. data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +1 -1
  165. data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +1 -1
  166. data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +1 -1
  167. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -1
  168. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +1 -1
  169. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +1 -1
  170. data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
  171. data/app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md +37 -0
  172. data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +10 -0
  173. data/app/pb_kits/playbook/pb_user/docs/_user_size_swift.md +35 -0
  174. data/app/pb_kits/playbook/pb_user/docs/_user_text_only_swift.md +27 -0
  175. data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size_swift.md +35 -0
  176. data/app/pb_kits/playbook/pb_user/docs/example.yml +7 -0
  177. data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +1 -1
  178. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +1 -1
  179. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +1 -1
  180. data/app/pb_kits/playbook/tokens/exports/exports.d.ts +1 -0
  181. data/app/pb_kits/playbook/utilities/_truncate.scss +20 -0
  182. data/app/pb_kits/playbook/utilities/globalProps.ts +13 -2
  183. data/app/pb_kits/playbook/utilities/props.ts +2 -2
  184. data/app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js +21 -0
  185. data/dist/playbook-rails.js +4 -4
  186. data/lib/playbook/classnames.rb +1 -0
  187. data/lib/playbook/kit_base.rb +2 -0
  188. data/lib/playbook/truncate.rb +29 -0
  189. data/lib/playbook/version.rb +2 -2
  190. metadata +39 -7
@@ -0,0 +1,21 @@
1
+ import React from 'react'
2
+ import { render, screen } from '../../test-utils'
3
+
4
+ import Body from '../../../pb_body/_body'
5
+
6
+ const testSubject = 'body'
7
+
8
+ test('Global Props: Returns corrrect truncate class name', () => {
9
+ for(let x = 1, y = 5; x <= y; ++x) {
10
+ const testId = `${testSubject}-${x}`
11
+ render(
12
+ <Body
13
+ data={{ testid: testId }}
14
+ text="Hi"
15
+ truncate={`${x}`}
16
+ />
17
+ )
18
+ const kit = screen.getByTestId(testId)
19
+ expect(kit).toHaveClass(`truncate_${x}`)
20
+ }
21
+ })