playbook_ui 13.27.0.pre.alpha.PLAY1122fixMultipleUserspaddingoverflow2844 → 13.27.0.pre.alpha.PLAY1342DRYcontenttagRailssimplekits2896

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -5
  3. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -5
  4. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -5
  5. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -5
  6. data/app/pb_kits/playbook/pb_avatar/Utilities/GetPlacementPropsHelper.tsx +16 -0
  7. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +16 -0
  8. data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -1
  9. data/app/pb_kits/playbook/pb_avatar/avatar.rb +4 -0
  10. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +47 -0
  11. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.html.erb +46 -66
  12. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +8 -29
  13. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.md +3 -0
  14. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.html.erb +13 -33
  15. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +48 -67
  16. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.md +3 -0
  17. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +0 -20
  18. data/app/pb_kits/playbook/pb_avatar/docs/example.yml +2 -2
  19. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +1 -6
  20. data/app/pb_kits/playbook/pb_badge/badge.html.erb +1 -6
  21. data/app/pb_kits/playbook/pb_body/_body.scss +3 -0
  22. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +1 -1
  23. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +3 -3
  24. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +1 -6
  25. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
  26. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +5 -0
  27. data/app/pb_kits/playbook/pb_card/card.rb +1 -1
  28. data/app/pb_kits/playbook/pb_card/docs/_card_background.html.erb +20 -0
  29. data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +41 -1
  30. data/app/pb_kits/playbook/pb_card/docs/_card_background.md +1 -1
  31. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -1
  32. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  33. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  34. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -6
  35. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +1 -6
  36. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +1 -6
  37. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +1 -6
  38. data/app/pb_kits/playbook/pb_contact/contact.html.erb +1 -6
  39. data/app/pb_kits/playbook/pb_currency/currency.html.erb +1 -6
  40. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +1 -6
  41. data/app/pb_kits/playbook/pb_date/date.html.erb +1 -6
  42. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +1 -5
  43. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +1 -5
  44. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +1 -5
  45. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +1 -6
  46. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +1 -6
  47. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +1 -5
  48. data/app/pb_kits/playbook/pb_detail/_detail_mixins.scss +1 -1
  49. data/app/pb_kits/playbook/pb_docs/kit_example.html.erb +3 -3
  50. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +2 -1
  51. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +4 -2
  52. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb +3 -3
  53. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.html.erb +3 -3
  54. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.html.erb +3 -3
  55. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb +3 -3
  56. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.html.erb +3 -3
  57. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -3
  58. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +1 -0
  59. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +1 -0
  60. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +1 -1
  61. data/app/pb_kits/playbook/pb_dropdown/index.js +2 -1
  62. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +4 -2
  63. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +1 -6
  64. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +15 -0
  65. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +1 -6
  66. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +1 -6
  67. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +1 -6
  68. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +1 -6
  69. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +1 -6
  70. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -5
  71. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -6
  72. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +1 -6
  73. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +1 -6
  74. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +1 -6
  75. data/app/pb_kits/playbook/pb_person/person.html.erb +1 -6
  76. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +1 -6
  77. data/app/pb_kits/playbook/pb_pill/pill.html.erb +1 -6
  78. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +1 -6
  79. data/app/pb_kits/playbook/pb_source/source.html.erb +1 -5
  80. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +1 -5
  81. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +1 -5
  82. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +1 -5
  83. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +1 -5
  84. data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -5
  85. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +1 -5
  86. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +1 -6
  87. data/app/pb_kits/playbook/pb_title/_title.scss +5 -1
  88. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +1 -6
  89. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +1 -5
  90. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +1 -6
  91. data/app/pb_kits/playbook/tokens/_titles.scss +5 -1
  92. data/dist/playbook-rails.js +2 -2
  93. data/lib/playbook/kit_base.rb +1 -1
  94. data/lib/playbook/version.rb +1 -1
  95. metadata +4 -2
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("body", props: { color: "light", dark: object.dark }) do %>
8
3
  <%= pb_rails("icon", props: { icon: object.icon, fixed_width: true }) %>
9
4
  <%= object.text %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("caption", props: { text: object.label, classname: "pb_label_pill_label"}) %>
8
3
  <%= pb_rails("pill", props: { text: object.pill_value, variant: object.variant, classname: "pb_label_pill_pill" }) %>
9
4
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("caption", props: { text: object.label, dark: object.dark }) %>
8
3
  <% if object.variant == "details" %>
9
4
  <%= pb_rails("flex", props: {inline: true, vertical: "center"}) do %>
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
 
7
3
  <%= pb_rails("body", props: { color: "light", dark: object.dark }) do %>
8
4
  <%= pb_rails("icon", props: { aria: { label: "loading icon" }, fixed_width: true, icon: "spinner", pulse: true }) %> <%= object.text %>
@@ -1,8 +1,8 @@
1
1
  <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- aria: object.aria,
6
- **combined_html_options) do %>
7
- <%= content %>
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ aria: object.aria,
6
+ **combined_html_options) do %>
7
+ <%= content %>
8
8
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <% object.users.take(object.display_count).each do |user| %>
8
3
  <%= pb_rails("avatar", props: user.merge({size: object.size, classname: "pb_multiple_users_item", dark: object.dark}) ) %>
9
4
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("avatar", props: object.users[0].merge({size: "xs", classname: "pb_multiple_users_stacked_item", dark: object.dark}) ) %>
8
3
 
9
4
  <% unless object.only_one %>
@@ -1,8 +1,3 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= will_paginate object.model, renderer: Playbook::Pagination::Rails %>
8
3
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("body", props: {
8
3
  tag: "span",
9
4
  classname: "pb_person_first" }) { object.first_name } %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("person", props: {
8
3
  first_name: object.first_name,
9
4
  last_name: object.last_name,
@@ -1,8 +1,3 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("title", props: { text: object.display_text, tag: "div", size: 4, classname: "pb_pill_text" }) %>
8
3
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <% if object.orientation === 'horizontal' %>
8
3
  <% if content %>
9
4
  <%= content %>
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
  <div class="pb__source_layout">
7
3
  <% if !object.hide_icon %>
8
4
  <% if object.show_icon? %>
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
  <%= pb_rails("body", props: { status: object.status }) do %>
7
3
  <%= pb_rails("icon", props: { fixed_width: true, icon: object.returned_icon }) if object.returned_icon %>
8
4
  <%= "#{object.value}%" if object.value %>
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
  <div class="pb_stat_value_wrapper">
7
3
  <%= pb_rails "title", props: {
8
4
  classname: "pb_stat_value_kit",
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
  <div class="pb_time_range_inline_wrapper">
7
3
  <% if object.icon == true %>
8
4
  <%= pb_rails(object.text_kit, props: { tag: "span", dark: object.dark, color: object.icon_color, text: pb_rails("icon", props: { icon: "clock", dark: object.dark, classname:"pb_time_range_inline_icon", fixed_width: true, size: object.size }) }) %>
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
 
7
3
  <%= pb_rails("body", props: { color: "light", dark: object.dark, classname: "pb_time_stacked time-spacing" }) do %>
8
4
  <time>
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
 
7
3
  <div class="pb_timeline_item_left_block">
8
4
  <% if object.date.present? %>
@@ -1,7 +1,3 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
  <%= content.presence %>
7
3
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- id: object.id,
4
- data: object.data,
5
- class: object.classname,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
 
8
3
  <% if object.unstyled %>
9
4
  <div><%= object.timestamp_text %></div>
@@ -49,6 +49,10 @@
49
49
  }
50
50
 
51
51
  &.dark {
52
- @include pb_title_dark;
52
+ @include pb_title_dark;
53
+ }
54
+
55
+ &.dark[class*=_link] {
56
+ @include pb_title_dark_link;
53
57
  }
54
58
  }
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("title", props: {
8
3
  dark: object.dark,
9
4
  size: object.title_size,
@@ -1,8 +1,4 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
6
2
  <%= pb_rails("title", props: { text: object.title, size: 4 }) %>
7
3
  <%= pb_rails("body", props: { text: object.detail, color: "light" }) %>
8
4
  <% end %>
@@ -1,9 +1,4 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id,
6
- **combined_html_options) do %>
1
+ <%= pb_content_tag do %>
7
2
  <%= pb_rails("caption", props: {dark: object.dark, text: object.day_of_week}) %>
8
3
  <%= pb_rails("title", props: {dark: object.dark, size: 4, tag: "span", text: object.formatted_month_and_day}) %>
9
4
  <% end %>
@@ -34,7 +34,11 @@
34
34
  }
35
35
 
36
36
  @mixin pb_title_dark {
37
- color: $text_dk_default;
37
+ color: $text_dk_default;
38
+ }
39
+
40
+ @mixin pb_title_dark_link {
41
+ color: $active_dark;
38
42
  }
39
43
 
40
44
  @mixin pb_title_bold {