playbook_ui 13.27.0.pre.alpha.testingcollapsible2917 → 13.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) 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_action_button/avatar_action_button.html.erb +1 -6
  7. data/app/pb_kits/playbook/pb_badge/badge.html.erb +1 -6
  8. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
  9. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +1 -6
  10. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -6
  11. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +1 -6
  12. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +1 -6
  13. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +1 -6
  14. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +0 -1
  15. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.md +2 -4
  16. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb +0 -1
  17. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.md +2 -4
  18. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +73 -0
  19. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.md +3 -0
  20. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb +20 -0
  21. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.md +3 -0
  22. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +4 -0
  23. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +2 -1
  24. data/app/pb_kits/playbook/pb_contact/contact.html.erb +1 -6
  25. data/app/pb_kits/playbook/pb_currency/currency.html.erb +1 -6
  26. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +1 -6
  27. data/app/pb_kits/playbook/pb_date/date.html.erb +1 -6
  28. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +1 -5
  29. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md +61 -0
  30. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md +11 -0
  31. data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +4 -1
  32. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +1 -5
  33. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +1 -5
  34. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md +32 -0
  35. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md +17 -0
  36. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md +19 -0
  37. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md +10 -0
  38. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md +17 -0
  39. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +7 -0
  40. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +1 -6
  41. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md +39 -0
  42. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md +39 -0
  43. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md +15 -0
  44. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md +78 -0
  45. data/app/pb_kits/playbook/pb_date_time/docs/example.yml +6 -0
  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_dropdown/_dropdown.scss +4 -0
  49. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -4
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +6 -3
  51. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +11 -6
  52. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +5 -2
  53. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +13 -8
  54. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md +1 -1
  55. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +5 -2
  56. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +13 -8
  57. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
  58. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +2 -8
  59. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.rb +1 -5
  60. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +2 -12
  61. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md +23 -0
  62. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md +7 -0
  63. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md +9 -0
  64. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md +22 -0
  65. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md +9 -0
  66. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md +62 -0
  67. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md +8 -0
  68. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +9 -0
  69. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +1 -6
  70. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  71. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  72. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +1 -6
  73. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +1 -6
  74. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +1 -6
  75. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +1 -6
  76. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +1 -6
  77. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -5
  78. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -6
  79. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +1 -6
  80. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +1 -6
  81. data/app/pb_kits/playbook/pb_pagination/_pagination.scss +1 -1
  82. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +1 -6
  83. data/app/pb_kits/playbook/pb_person/person.html.erb +1 -6
  84. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +1 -6
  85. data/app/pb_kits/playbook/pb_pill/pill.html.erb +1 -6
  86. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +1 -6
  87. data/app/pb_kits/playbook/pb_select/_select.scss +8 -0
  88. data/app/pb_kits/playbook/pb_source/source.html.erb +1 -5
  89. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +1 -5
  90. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +1 -5
  91. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +19 -0
  92. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +1 -5
  93. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +1 -5
  94. data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -5
  95. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +1 -5
  96. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +1 -6
  97. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +1 -6
  98. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +1 -5
  99. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +1 -6
  100. data/dist/playbook-rails.js +4 -4
  101. data/lib/playbook/forms/builder/phone_number_field.rb +12 -0
  102. data/lib/playbook/forms/builder.rb +1 -0
  103. data/lib/playbook/kit_base.rb +1 -1
  104. data/lib/playbook/version.rb +1 -1
  105. metadata +28 -5
@@ -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("icon", props: { icon: object.icon_value, classname: "pb_icon", fixed_width: true }) %>
8
3
 
9
4
  <% if content %>
@@ -16,7 +16,7 @@
16
16
  <%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
17
17
  <%= form.typeahead :example_user, props: { data: { typeahead_example1: true, user: {} }, placeholder: "Search for a user" } %>
18
18
  <%= form.text_field :example_text_field, props: { label: true } %>
19
- <%= form.telephone_field :example_phone_field, props: { label: true } %>
19
+ <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
20
20
  <%= form.email_field :example_email_field, props: { label: true } %>
21
21
  <%= form.number_field :example_number_field, props: { label: true } %>
22
22
  <%= form.search_field :example_search_field, props: { label: true } %>
@@ -15,7 +15,7 @@
15
15
 
16
16
  <%= pb_form_with(scope: :example, method: :get, url: "", validate: true) do |form| %>
17
17
  <%= form.text_field :example_text_field, props: { label: true, required: true } %>
18
- <%= form.telephone_field :example_phone_field, props: { label: true, required: true, validation: { pattern: "[0-9]{3}-[0-9]{3}-[0-9]{4}", message: "Please enter a valid phone number (example: 888-888-8888)." } } %>
18
+ <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
19
19
  <%= form.email_field :example_email_field, props: { label: true, required: true } %>
20
20
  <%= form.number_field :example_number_field, props: { label: true, required: true } %>
21
21
  <%= form.search_field :example_project_number, props: { label: true, required: true, validation: { pattern: "[0-9]{2}-[0-9]{5}", message: "Please enter a valid project number (example: 33-12345)." } } %>
@@ -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("icon", props: { dark: object.dark, icon: object.icon, fixed_width: true }) %>
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
 
8
3
  <%= pb_rails("icon_circle", props: {
9
4
  dark: object.dark,
@@ -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 %>
@@ -11,7 +11,7 @@ $top_bottom_radius: 0px;
11
11
  border-radius: $border_rad_light;
12
12
  border: $border_rad_lightest solid $border_light;
13
13
  background-color: $white;
14
- padding: $space_xxs 0px;
14
+ padding: $space_xxs 0px !important;
15
15
  li {
16
16
  display: inline;
17
17
  > a, li > span {
@@ -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 %>
@@ -102,6 +102,9 @@
102
102
  pointer-events: none;
103
103
  }
104
104
  &.inline {
105
+ svg {
106
+ right: 6px;
107
+ }
105
108
  @mixin active_arrow_style {
106
109
  svg {
107
110
  color: $primary !important;
@@ -130,6 +133,7 @@
130
133
  box-shadow: none;
131
134
  border-color: transparent;
132
135
  padding: 4px 8px;
136
+ padding-right: $space_lg;
133
137
  border-radius: 4px;
134
138
  option {
135
139
  background-color: $white;
@@ -213,6 +217,9 @@
213
217
  }
214
218
  }
215
219
  &.inline {
220
+ svg {
221
+ right: 6px;
222
+ }
216
223
  &:not(:hover) {
217
224
  svg {
218
225
  display: none;
@@ -233,6 +240,7 @@
233
240
  border-color: transparent;
234
241
  background: transparent;
235
242
  padding: 4px 8px;
243
+ padding-right: $space_lg;
236
244
  border-radius: 4px;
237
245
  option {
238
246
  background-color: $white;
@@ -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",
@@ -76,6 +76,25 @@
76
76
  .text_input {
77
77
  border-color: $error_dark;
78
78
  }
79
+ [class*=pb_body_kit_negative] {
80
+ color: $error_dark;
81
+ }
82
+ }
83
+ .text_input_wrapper_add_on {
84
+ .add-on {
85
+ &-right {
86
+ .add-on-card {
87
+ border: 1px solid $error_dark;
88
+ border-left: 0;
89
+ }
90
+ }
91
+ &-left {
92
+ .add-on-card {
93
+ border: 1px solid $error_dark;
94
+ border-right: 0;
95
+ }
96
+ }
97
+ }
79
98
  }
80
99
  }
81
100
  }
@@ -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>
@@ -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 %>