playbook_ui 13.25.0.pre.alpha.barchartfix2766 → 13.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +14 -10
  3. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +9 -5
  4. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +6 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +6 -2
  6. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +6 -1
  7. data/app/pb_kits/playbook/pb_background/background.html.erb +11 -2
  8. data/app/pb_kits/playbook/pb_badge/badge.html.erb +6 -1
  9. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +1 -1
  10. data/app/pb_kits/playbook/pb_body/_body.tsx +1 -1
  11. data/app/pb_kits/playbook/pb_body/body.html.erb +6 -1
  12. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +6 -1
  13. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +7 -2
  14. data/app/pb_kits/playbook/pb_button/_button.scss +1 -1
  15. data/app/pb_kits/playbook/pb_button/button.html.erb +3 -2
  16. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +7 -2
  17. data/app/pb_kits/playbook/pb_caption/caption.html.erb +6 -1
  18. data/app/pb_kits/playbook/pb_card/card.html.erb +7 -1
  19. data/app/pb_kits/playbook/pb_card/card_body.html.erb +6 -1
  20. data/app/pb_kits/playbook/pb_card/card_header.html.erb +6 -1
  21. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +6 -1
  22. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +6 -1
  23. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +6 -1
  24. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +6 -1
  25. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +7 -1
  26. data/app/pb_kits/playbook/pb_contact/contact.html.erb +6 -1
  27. data/app/pb_kits/playbook/pb_currency/currency.html.erb +6 -1
  28. data/app/pb_kits/playbook/pb_currency/docs/example.yml +0 -5
  29. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +6 -1
  30. data/app/pb_kits/playbook/pb_date/date.html.erb +6 -1
  31. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +6 -2
  32. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +5 -1
  33. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +5 -1
  34. data/app/pb_kits/playbook/pb_date_range_stacked/docs/example.yml +0 -4
  35. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +5 -1
  36. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +6 -1
  37. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +7 -1
  38. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +5 -1
  39. data/app/pb_kits/playbook/pb_detail/detail.html.erb +6 -1
  40. data/app/pb_kits/playbook/pb_dialog/_dialog.scss +2 -4
  41. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +6 -1
  42. data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +7 -2
  43. data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +5 -1
  44. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +6 -2
  45. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +9 -14
  46. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +6 -34
  47. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +5 -5
  48. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +2 -4
  49. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +5 -5
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +5 -5
  51. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -3
  52. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +0 -3
  53. data/app/pb_kits/playbook/pb_dropdown/hooks/useHandleOnKeydown.tsx +6 -11
  54. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +0 -5
  55. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +24 -41
  56. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +47 -91
  57. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +6 -1
  58. data/app/pb_kits/playbook/pb_filter/filter.html.erb +5 -1
  59. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +6 -1
  60. data/app/pb_kits/playbook/pb_flex/flex.html.erb +5 -1
  61. data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +6 -2
  62. data/app/pb_kits/playbook/pb_form_group/form_group.html.erb +6 -1
  63. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
  64. data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +6 -1
  65. data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +5 -1
  66. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +5 -1
  67. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +7 -2
  68. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +6 -1
  69. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +6 -1
  70. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +6 -1
  71. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +6 -1
  72. data/app/pb_kits/playbook/pb_layout/body.html.erb +5 -1
  73. data/app/pb_kits/playbook/pb_layout/footer.html.erb +5 -1
  74. data/app/pb_kits/playbook/pb_layout/header.html.erb +5 -1
  75. data/app/pb_kits/playbook/pb_layout/item.html.erb +5 -1
  76. data/app/pb_kits/playbook/pb_layout/layout.html.erb +5 -1
  77. data/app/pb_kits/playbook/pb_layout/sidebar.html.erb +5 -1
  78. data/app/pb_kits/playbook/pb_list/item.html.erb +8 -2
  79. data/app/pb_kits/playbook/pb_list/list.html.erb +8 -2
  80. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +6 -1
  81. data/app/pb_kits/playbook/pb_message/message.html.erb +6 -1
  82. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -1
  83. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb +6 -1
  84. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +6 -1
  85. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +6 -1
  86. data/app/pb_kits/playbook/pb_nav/item.html.erb +14 -3
  87. data/app/pb_kits/playbook/pb_nav/nav.html.erb +6 -1
  88. data/app/pb_kits/playbook/pb_online_status/online_status.html.erb +6 -2
  89. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +6 -1
  90. data/app/pb_kits/playbook/pb_passphrase/passphrase.html.erb +1 -1
  91. data/app/pb_kits/playbook/pb_person/person.html.erb +12 -7
  92. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +6 -1
  93. data/app/pb_kits/playbook/pb_pill/pill.html.erb +6 -1
  94. data/app/pb_kits/playbook/pb_popover/popover.html.erb +6 -1
  95. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +6 -2
  96. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +6 -3
  97. data/app/pb_kits/playbook/pb_progress_step/progress_step.html.erb +5 -1
  98. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.html.erb +5 -1
  99. data/app/pb_kits/playbook/pb_radio/radio.html.erb +8 -2
  100. data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +2 -6
  101. data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +1 -11
  102. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +6 -1
  103. data/app/pb_kits/playbook/pb_select/select.html.erb +5 -1
  104. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +5 -1
  105. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.html.erb +4 -1
  106. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.html.erb +5 -1
  107. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +6 -1
  108. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +6 -1
  109. data/app/pb_kits/playbook/pb_source/source.html.erb +5 -1
  110. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +5 -1
  111. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +5 -1
  112. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +5 -1
  113. data/app/pb_kits/playbook/pb_table/table.html.erb +12 -2
  114. data/app/pb_kits/playbook/pb_table/table_body.html.erb +16 -6
  115. data/app/pb_kits/playbook/pb_table/table_cell.html.erb +16 -6
  116. data/app/pb_kits/playbook/pb_table/table_head.html.erb +16 -6
  117. data/app/pb_kits/playbook/pb_table/table_header.html.erb +13 -4
  118. data/app/pb_kits/playbook/pb_table/table_row.html.erb +16 -6
  119. data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +5 -1
  120. data/app/pb_kits/playbook/pb_time/time.html.erb +5 -1
  121. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +5 -1
  122. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +5 -1
  123. data/app/pb_kits/playbook/pb_timeline/item.html.erb +7 -3
  124. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +5 -1
  125. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +6 -1
  126. data/app/pb_kits/playbook/pb_title/title.html.erb +6 -1
  127. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +6 -1
  128. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +5 -1
  129. data/app/pb_kits/playbook/pb_toggle/toggle.html.erb +6 -1
  130. data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +5 -1
  131. data/app/pb_kits/playbook/pb_user/user.html.erb +6 -1
  132. data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +6 -1
  133. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +6 -1
  134. data/dist/playbook-rails.js +4 -4
  135. data/lib/playbook/kit_base.rb +1 -1
  136. data/lib/playbook/version.rb +2 -2
  137. metadata +5 -20
  138. data/app/pb_kits/playbook/pb_currency/docs/_currency_alignment_swift.md +0 -43
  139. data/app/pb_kits/playbook/pb_currency/docs/_currency_props_swift.md +0 -12
  140. data/app/pb_kits/playbook/pb_currency/docs/_currency_size_swift.md +0 -31
  141. data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_default_swift.md +0 -14
  142. data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_props_swift.md +0 -9
  143. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md +0 -0
  144. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +0 -87
  145. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.md +0 -1
  146. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +0 -102
  147. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.md +0 -1
  148. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md +0 -3
  149. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.md +0 -1
  150. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +0 -51
  151. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md +0 -1
  152. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 316498c60328f47c61c0c80097cd58e075a3a5c3011679fb2f932570e1d3429a
4
- data.tar.gz: 1ef2cf350e7c11fb2b108a5de7d7a3b6cf604e27d42764fb97d521be63a98954
3
+ metadata.gz: 43e4654a79f1b227d4fc17c495d5d1785f3553e75740825132f6d9f84646e530
4
+ data.tar.gz: 7a974ccebc66cbd36728788f35e62adc026479a3aed4332769b131e3c88d0b4b
5
5
  SHA512:
6
- metadata.gz: aaf75bdae9c9ab9f5197f91162698e97462532ccc9a87b1d76d8379da4cfbdd59c7441a9fb97dd30dea06d2b153d0c1c033761ec830a915ca0a594b1c455c128
7
- data.tar.gz: 8c703bb58ce255fb29513b79b6353d6025689514537e6c9fde9608d69b54868a8b37ea14d83131605ed50cdae55dfd3aea65e647f8ebd8a0a2a582361c8c70b1
6
+ metadata.gz: f9010c49c2dc56a6e85dd22dce2bfa753231a202f7517174742d6f2f9b4ff7244b226bd5f6275981801fb44c12dcc2f0e6a6c68d7e679504e44ecf18a2dd8526
7
+ data.tar.gz: b5bd3da670d8307017824b24f39d9ad7e5953935b52857a8bc3af58c1feee7e827713769b4c93c84635ebdc4cc8015f92d0b495a49ffdc53c674e027887705d4
@@ -1,10 +1,14 @@
1
- <%= pb_content_tag do %>
2
- <%= pb_rails("table", props: { size: "sm", tag:"div", data_table: true, number_spacing:"tabular", responsive:"none" }) do %>
3
- <% if content.present? %>
4
- <% content.presence %>
5
- <% else %>
6
- <%= pb_rails("advanced_table/table_header", props: {column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion }) %>
7
- <%= pb_rails("advanced_table/table_body", props: {table_data: object.table_data, column_definitions: object.column_definitions}) %>
8
- <% end %>
9
- <% end %>
10
- <% end %>
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
3
+ class: object.classname,
4
+ data: object.data,
5
+ id: object.id) do %>
6
+ <%= pb_rails("table", props: { size: "sm", tag:"div", data_table: true, number_spacing:"tabular", responsive:"none" }) do %>
7
+ <% if content.present? %>
8
+ <% content.presence %>
9
+ <% else %>
10
+ <%= pb_rails("advanced_table/table_header", props: {column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion }) %>
11
+ <%= pb_rails("advanced_table/table_body", props: {table_data: object.table_data, column_definitions: object.column_definitions}) %>
12
+ <% end %>
13
+ <% end %>
14
+ <% end %>
@@ -1,5 +1,9 @@
1
- <%= pb_content_tag do %>
2
- <% object.table_data.each do |row| %>
3
- <%= render_row_and_children(row, object.column_definitions) %>
4
- <% end %>
5
- <% end %>
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
3
+ class: object.classname,
4
+ data: object.data,
5
+ id: object.id) do %>
6
+ <% object.table_data.each do |row| %>
7
+ <%= render_row_and_children(row, object.column_definitions) %>
8
+ <% end %>
9
+ <% end %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
3
+ class: object.classname,
4
+ data: object.data,
5
+ id: object.id) do %>
2
6
  <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
3
7
  <% object.column_definitions.each_with_index do |item, index| %>
4
8
  <%= pb_rails("table/table_header", props: { tag:"div", id:item[:accessor], classname:object.th_classname}) do %>
@@ -13,4 +17,4 @@
13
17
  <% end %>
14
18
  <% end %>
15
19
  <% end %>
16
- <% end %>
20
+ <% end %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
3
+ class: object.classname,
4
+ data: object.data,
5
+ id: object.id) do %>
2
6
  <% object.column_definitions.each_with_index do |column, index| %>
3
7
  <%= pb_rails("table/table_cell", props: { tag:"div", classname:object.td_classname}) do %>
4
8
  <%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end" }) do %>
@@ -30,4 +34,4 @@
30
34
  <% end %>
31
35
  <% end %>
32
36
  <% end %>
33
- <% end %>
37
+ <% end %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <% if object.tooltip_text.present? %>
3
8
  <%= pb_rails("tooltip", props: {
4
9
  trigger_element_id: object.tooltip_id,
@@ -1,14 +1,23 @@
1
1
  <% if object.image_url.present? %>
2
- <%= pb_content_tag(object.tag,
2
+ <%= content_tag(object.tag,
3
+ aria: object.aria,
4
+ data: object.data,
5
+ id: object.id,
6
+ class: object.classname,
3
7
  style: "background-image: url('#{object.image_url}');
4
8
  background-repeat: #{object.background_repeat};
5
9
  background-size: #{object.background_size};
6
10
  background-position: #{object.background_position};",
11
+ **combined_html_options
7
12
  ) do %>
8
13
  <%= content.presence %>
9
14
  <% end %>
10
15
  <% else %>
11
- <%= pb_content_tag(object.tag,
16
+ <%= content_tag(object.tag,
17
+ aria: object.aria,
18
+ data: object.data,
19
+ id: object.id,
20
+ class: object.classname,
12
21
  style: object.custom_background_color
13
22
  ) do %>
14
23
  <%= content.presence %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <span><%= object.text %></span>
3
8
  <% end %>
@@ -102,7 +102,7 @@ const BarGraph = ({
102
102
  max: yAxisMax,
103
103
  opposite: false,
104
104
  title: {
105
- text: Array.isArray(axisTitle) ? (axisTitle.length > 0 ? axisTitle[0].name : null) : axisTitle,
105
+ text: typeof axisTitle === 'string' ? axisTitle : axisTitle[0].name,
106
106
  },
107
107
  plotLines: typeof yAxisMin !== 'undefined' && yAxisMin !== null ? [] : [{
108
108
  value: 0,
@@ -15,7 +15,7 @@ type BodyProps = {
15
15
  data?: {[key: string]: string},
16
16
  highlightedText?: string[],
17
17
  highlighting?: boolean,
18
- htmlOptions?: {[key: string]: string | number | boolean | (() => void) | ((arg?: Event) => void)},
18
+ htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
19
19
  id?: string,
20
20
  status?: 'neutral' | 'negative' | 'positive',
21
21
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div',
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname,
6
+ **combined_html_options) do %>
2
7
  <%= object.content %>
3
8
  <% end %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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%>
2
7
  <%= content_tag(object.link ? 'a' : 'span', class: 'bread_crumb_item', href: object.link) do %>
3
8
  <%= content.presence %>
4
9
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(:nav) do %>
2
- <%= content.presence %>
1
+ <%= content_tag(:nav,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname,
6
+ **combined_html_options) do %>
7
+ <%= content.presence %>
3
8
  <% end %>
@@ -17,7 +17,7 @@ $pb_button_sizes: (
17
17
  @each $name, $size in $pb_button_sizes {
18
18
  &[class*=size_#{$name}] {
19
19
  font-size: $size;
20
- padding: calc(#{$size} / 2) calc(#{$size} * 2.42);
20
+ padding: calc(#{$size} / 2) calc(#{$size} * 2.42) !important;
21
21
  @if $name == "sm" {
22
22
  min-height: 0;
23
23
  }
@@ -1,5 +1,6 @@
1
- <%= pb_content_tag(object.tag,
2
- object.tag == "button" ? object.options : object.link_options) do %>
1
+ <%= content_tag(object.tag,
2
+ object.tag == "button" ? object.options : object.link_options,
3
+ **combined_html_options) do %>
3
4
  <% if object.variant === "reaction" %>
4
5
  <% if icon && object.valid_emoji(object.icon) %>
5
6
  <%= pb_rails("flex", props:{ align: "center" }) do %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
2
- <%= content.presence || object.text %>
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 %>
7
+ <%= content.presence || object.text %>
3
8
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ aria: object.aria,
3
+ id: object.id,
4
+ data: object.data,
5
+ class: object.classname,
6
+ **combined_html_options) do %>
2
7
  <%= content.presence || object.text %>
3
8
  <% end %>
@@ -1,4 +1,10 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ aria: object.aria,
6
+ dark: object.dark,
7
+ **combined_html_options) do %>
2
8
  <%= content.presence %>
3
9
  <% end %>
4
10
 
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= content.presence %>
3
8
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= content.presence %>
3
8
  <% end %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag(:label) do %>
1
+ <%= content_tag(:label, aria: object.aria,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ **combined_html_options
6
+ ) do %>
2
7
  <%= content.presence || object.input %>
3
8
  <% if object.indeterminate %>
4
9
  <span class="pb_checkbox_indeterminate">
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= pb_rails("button", props: {type: object.type, link: object.link, new_window:object.new_window, variant: object.variant, disabled: object.disabled, dark: object.dark}) do %>
3
8
  <%= pb_rails("icon", props: {icon: object.icon, fixed_width: true, dark: object.dark}) %>
4
9
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= content.presence %>
3
8
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= content.presence %>
3
8
  <% end %>
@@ -1,4 +1,10 @@
1
- <%= pb_content_tag do %>
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
+
2
8
  <%= pb_rails("flex", props: {vertical: "center", spacing: "between", cursor: "pointer"}) do %>
3
9
  <%= pb_rails("flex/flex_item") do %>
4
10
  <%= content.presence %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= pb_rails("body", props: {
3
8
  tag: "span",
4
9
  classname: "pb_contact_kit",
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <%= pb_rails("caption", props: object.caption_props) %>
3
8
 
4
9
  <div class=<%= "pb_currency_wrapper#{object.variant_class || object.emphasized_class}" %>>
@@ -17,8 +17,3 @@ examples:
17
17
  - currency_abbreviated: Abbreviate Larger Amounts
18
18
  - currency_matching_decimals: Matching Decimals
19
19
  - currency_unstyled: Unstyled
20
-
21
- swift:
22
- - currency_size_swift: Size
23
- - currency_alignment_swift: Alignment
24
- - currency_props_swift: ""
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
  <% if object.stat_label.present? %>
3
8
  <%= pb_rails("body", props: { color: "light", text: object.stat_label } ) %>
4
9
  <% end %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
 
3
8
  <% if object.unstyled %>
4
9
  <!-- icon -->
@@ -1,5 +1,9 @@
1
- <%= pb_content_tag(:div,
2
- class: object.classname + object.error_class) do %>
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
3
+ class: object.classname + object.error_class,
4
+ data: object.data,
5
+ id: object.id,
6
+ **combined_html_options) do %>
3
7
  <div class="input_wrapper">
4
8
  <% if content.present? %>
5
9
  <%= content %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ **combined_html_options) do %>
2
6
  <div class="pb_date_range_inline_wrapper">
3
7
  <% if object.icon == true %>
4
8
  <%= pb_rails(object.text_kit, props: { tag: "span", dark: object.dark, color: object.icon_color, text: pb_rails("icon", props: { icon: "calendar-alt", fixed_width: true, size: object.size, classname: "pb_date_range_inline_icon" }) }) %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ **combined_html_options) do %>
2
6
 
3
7
  <%= pb_rails("flex", props: {vertical: "center"}) do %>
4
8
  <%= pb_rails("flex/flex_item") do %>
@@ -5,7 +5,3 @@ examples:
5
5
 
6
6
  react:
7
7
  - date_range_stacked_default: Default
8
-
9
- swift:
10
- - date_range_stacked_default_swift: Default
11
- - date_range_stacked_props_swift: ""
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ **combined_html_options) do %>
2
6
 
3
7
  <% if object.bold == false %>
4
8
 
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag do %>
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 %>
2
7
 
3
8
  <%= pb_rails("flex", props: {
4
9
  orientation: "row",
@@ -1,4 +1,10 @@
1
- <%= pb_content_tag do %>
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
+
2
8
  <%= pb_rails("flex", props: {classname: "flex-container", vertical: "stretch"}) do %>
3
9
  <%= pb_rails("body", props: {classname: "flex-item"}) do %>
4
10
  <%= pb_rails("date_stacked", props: { date: object.date_time_value, size: "sm", align: "right", bold: true, dark: object.dark }) %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.classname,
5
+ **combined_html_options) do %>
2
6
  <%= pb_rails("title", props: { text: object.day_month, size: 4, dark: object.dark }) %>
3
7
  <%= pb_rails("body", props: { text: object.year, size: 4, color: "light", dark: object.dark }) %>
4
8
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(object.tag) do %>
1
+ <%= content_tag(object.tag,
2
+ aria: object.aria,
3
+ class: object.classname,
4
+ data: object.data,
5
+ id: object.id,
6
+ **combined_html_options) do %>
2
7
  <%= object.content %>
3
8
  <% end %>
@@ -235,11 +235,11 @@
235
235
  height: $space_xl * 2;
236
236
  }
237
237
  .dialog_footer {
238
- position: fixed;
238
+ position:fixed;
239
239
  bottom: 0;
240
240
  background-color: $white;
241
- max-width: 100%;
242
241
  }
242
+
243
243
  &[class*="_sm"] {
244
244
  width: $medium;
245
245
  .dialog_footer {
@@ -319,7 +319,6 @@
319
319
  position:fixed;
320
320
  bottom: 0;
321
321
  background-color: $white;
322
- max-width: 100%;
323
322
  }
324
323
  &[class*="_sm"] {
325
324
  width: $medium;
@@ -373,4 +372,3 @@
373
372
  cursor: pointer;
374
373
  }
375
374
  }
376
-
@@ -1,5 +1,10 @@
1
1
  <div class="pb_dialog_wrapper_rails <%= object.full_height_style %>" data-overlay-click= <%= object.overlay_close %> >
2
- <%= pb_content_tag(:dialog) do %>
2
+ <%= content_tag(:dialog,
3
+ aria: object.aria,
4
+ data: object.data,
5
+ id: object.id,
6
+ class: object.classname,
7
+ **combined_html_options) do %>
3
8
  <% if object.status === "" && object.title %>
4
9
  <%= pb_rails("dialog/dialog_header", props: { title: object.title, id: object.id }) %>
5
10
  <% end %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag do %>
2
- <%= content.presence || object.text %>
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.presence || object.text %>
3
8
  <% end %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag do %>
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
4
+ aria: object.aria,
5
+ **combined_html_options) do %>
2
6
  <% if object.confirm_button && object.cancel_button %>
3
7
  <div class="dialog-pseudo-footer"></div>
4
8
  <%= pb_rails("flex", props: { classname:object.classname, spacing:"between", padding_x:"sm", padding:"sm", padding_bottom:"sm" }) do %>
@@ -1,5 +1,9 @@
1
- <%= pb_content_tag(:div,
2
- class: object.sticky_header) do %>
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
4
+ class: object.sticky_header,
5
+ aria: object.aria,
6
+ **combined_html_options) do %>
3
7
  <%= pb_rails("flex", props: {classname:object.classname, spacing:"between", padding:"sm", align:"center"}) do %>
4
8
  <%= content.presence || object.title %>
5
9
 
@@ -13,15 +13,15 @@
13
13
  @include pb_body;
14
14
  border: 1px solid $border_light;
15
15
  background-color: $white;
16
- height: 45px;
16
+ box-shadow: inset 0 -11px 20px rgba($primary, 0.05);
17
17
  @media (hover: hover) {
18
18
  &:hover,
19
19
  &:active,
20
20
  &:focus {
21
21
  background-color: $focus_input_light;
22
- input {
23
- background-color: $focus_input_light;
24
- }
22
+ }
23
+ input {
24
+ background-color: $focus_input_light;
25
25
  }
26
26
  }
27
27
 
@@ -30,7 +30,7 @@
30
30
  border: unset;
31
31
  border-radius: $border_rad_heavier;
32
32
  padding: 0;
33
- background-color: $white;
33
+
34
34
  &:focus-visible {
35
35
  outline: none;
36
36
  }
@@ -42,13 +42,9 @@
42
42
  }
43
43
  }
44
44
 
45
- .dropdown_trigger_wrapper_select_only {
46
- box-shadow: inset 0 -11px 20px rgba($primary, 0.05);
47
- }
48
-
49
45
  .dropdown_trigger_wrapper_focus {
50
46
  box-shadow: 0px 0px 0 1px $primary;
51
- transition: box-shadow 0.1s ease-in-out;
47
+ transition: box-shadow .10s ease-in-out;
52
48
  }
53
49
 
54
50
  .pb_dropdown_container {
@@ -64,8 +60,7 @@
64
60
  transition: opacity 0.25s ease-in-out;
65
61
 
66
62
  .pb_dropdown_option {
67
- cursor: pointer;
68
- &:hover {
63
+ :hover {
69
64
  background-color: $border_light;
70
65
  }
71
66
  }
@@ -87,8 +82,8 @@
87
82
  [class^="pb_title_kit"] {
88
83
  color: $white !important;
89
84
  }
90
- &:hover {
91
- background-color: $primary !important;
85
+ :hover {
86
+ background-color: unset;
92
87
  }
93
88
  }
94
89
  }