playbook_ui 13.24.0.pre.alpha.play1305drycontenttag2689 → 13.25.0.pre.alpha.PLAY761globalpaddingpropsbuttons2713

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +2 -0
  3. data/app/pb_kits/playbook/index.js +1 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +14 -10
  5. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +9 -5
  6. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +6 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +6 -2
  8. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +6 -1
  9. data/app/pb_kits/playbook/pb_background/_background.tsx +7 -5
  10. data/app/pb_kits/playbook/pb_background/background.html.erb +10 -2
  11. data/app/pb_kits/playbook/pb_badge/badge.html.erb +6 -1
  12. data/app/pb_kits/playbook/pb_body/body.html.erb +6 -1
  13. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +6 -1
  14. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +7 -2
  15. data/app/pb_kits/playbook/pb_button/_button.scss +1 -1
  16. data/app/pb_kits/playbook/pb_button/button.html.erb +1 -1
  17. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +7 -2
  18. data/app/pb_kits/playbook/pb_caption/caption.html.erb +6 -1
  19. data/app/pb_kits/playbook/pb_card/card.html.erb +7 -1
  20. data/app/pb_kits/playbook/pb_card/card_body.html.erb +6 -1
  21. data/app/pb_kits/playbook/pb_card/card_header.html.erb +6 -1
  22. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +6 -1
  23. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +6 -1
  24. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +6 -1
  25. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +6 -1
  26. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +6 -1
  27. data/app/pb_kits/playbook/pb_contact/contact.html.erb +6 -1
  28. data/app/pb_kits/playbook/pb_currency/currency.html.erb +6 -1
  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 +4 -1
  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_stacked/date_stacked.html.erb +5 -1
  35. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +6 -1
  36. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +7 -1
  37. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +5 -1
  38. data/app/pb_kits/playbook/pb_detail/detail.html.erb +6 -1
  39. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +6 -1
  40. data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +7 -2
  41. data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +5 -1
  42. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +4 -1
  43. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +1 -1
  44. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +98 -0
  45. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +186 -0
  46. data/app/pb_kits/playbook/pb_dropdown/context/index.tsx +5 -0
  47. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +50 -0
  48. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +102 -0
  49. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +66 -0
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +77 -0
  51. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +9 -0
  52. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +4 -0
  53. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +17 -0
  54. data/app/pb_kits/playbook/pb_dropdown/hooks/useDropdown.tsx +17 -0
  55. data/app/pb_kits/playbook/pb_dropdown/hooks/useHandleOnKeydown.tsx +56 -0
  56. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +95 -0
  57. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +91 -0
  58. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +128 -0
  59. data/app/pb_kits/playbook/pb_dropdown/utilities/subComponentHelper.tsx +59 -0
  60. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +6 -1
  61. data/app/pb_kits/playbook/pb_filter/filter.html.erb +5 -1
  62. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +6 -1
  63. data/app/pb_kits/playbook/pb_flex/flex.html.erb +5 -1
  64. data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +4 -1
  65. data/app/pb_kits/playbook/pb_form_group/form_group.html.erb +6 -1
  66. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
  67. data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +6 -1
  68. data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +5 -1
  69. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +5 -1
  70. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -1
  71. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -1
  72. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +7 -2
  73. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.rb +1 -1
  74. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.test.js +3 -3
  75. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +6 -1
  76. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +6 -1
  77. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +6 -1
  78. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +6 -1
  79. data/app/pb_kits/playbook/pb_layout/body.html.erb +5 -1
  80. data/app/pb_kits/playbook/pb_layout/footer.html.erb +5 -1
  81. data/app/pb_kits/playbook/pb_layout/header.html.erb +5 -1
  82. data/app/pb_kits/playbook/pb_layout/item.html.erb +5 -1
  83. data/app/pb_kits/playbook/pb_layout/layout.html.erb +5 -1
  84. data/app/pb_kits/playbook/pb_layout/sidebar.html.erb +5 -1
  85. data/app/pb_kits/playbook/pb_list/_list_item.tsx +2 -2
  86. data/app/pb_kits/playbook/pb_list/item.html.erb +8 -3
  87. data/app/pb_kits/playbook/pb_list/list.html.erb +5 -1
  88. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +6 -1
  89. data/app/pb_kits/playbook/pb_message/message.html.erb +6 -1
  90. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -1
  91. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb +6 -1
  92. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +6 -1
  93. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +6 -1
  94. data/app/pb_kits/playbook/pb_nav/item.html.erb +10 -2
  95. data/app/pb_kits/playbook/pb_nav/nav.html.erb +6 -1
  96. data/app/pb_kits/playbook/pb_online_status/online_status.html.erb +4 -1
  97. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +6 -1
  98. data/app/pb_kits/playbook/pb_person/person.html.erb +12 -7
  99. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +6 -1
  100. data/app/pb_kits/playbook/pb_pill/pill.html.erb +6 -1
  101. data/app/pb_kits/playbook/pb_popover/popover.html.erb +6 -1
  102. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +4 -1
  103. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +6 -4
  104. data/app/pb_kits/playbook/pb_progress_step/progress_step.html.erb +5 -1
  105. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.html.erb +5 -1
  106. data/app/pb_kits/playbook/pb_radio/radio.html.erb +6 -1
  107. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +6 -1
  108. data/app/pb_kits/playbook/pb_select/select.html.erb +5 -1
  109. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +5 -1
  110. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.html.erb +4 -1
  111. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.html.erb +5 -1
  112. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +6 -1
  113. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +6 -1
  114. data/app/pb_kits/playbook/pb_source/source.html.erb +5 -1
  115. data/app/pb_kits/playbook/pb_source/source.test.js +2 -2
  116. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +5 -1
  117. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +5 -1
  118. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +5 -1
  119. data/app/pb_kits/playbook/pb_table/table.html.erb +5 -1
  120. data/app/pb_kits/playbook/pb_table/table_body.html.erb +16 -6
  121. data/app/pb_kits/playbook/pb_table/table_cell.html.erb +16 -6
  122. data/app/pb_kits/playbook/pb_table/table_head.html.erb +16 -6
  123. data/app/pb_kits/playbook/pb_table/table_header.html.erb +11 -3
  124. data/app/pb_kits/playbook/pb_table/table_row.html.erb +16 -6
  125. data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +5 -1
  126. data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +5 -1
  127. data/app/pb_kits/playbook/pb_time/time.html.erb +5 -1
  128. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +5 -1
  129. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +5 -1
  130. data/app/pb_kits/playbook/pb_timeline/item.html.erb +7 -3
  131. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +5 -1
  132. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +6 -1
  133. data/app/pb_kits/playbook/pb_title/title.html.erb +6 -3
  134. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +6 -1
  135. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +5 -1
  136. data/app/pb_kits/playbook/pb_toggle/toggle.html.erb +6 -1
  137. data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +5 -1
  138. data/app/pb_kits/playbook/pb_user/user.html.erb +6 -1
  139. data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +6 -1
  140. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +6 -1
  141. data/app/pb_kits/playbook/playbook-doc.js +2 -0
  142. data/dist/menu.yml +5 -1
  143. data/dist/playbook-rails.js +5 -5
  144. data/lib/playbook/version.rb +2 -2
  145. metadata +19 -3
  146. /data/app/pb_kits/playbook/pb_dialog/docs/{_dialog_props_table.md → _dialog_props_swift.md} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9fd50c8a90b4a615fce245543e5668f8b30db6d34a415f8b5a75c3a3d7c3145
4
- data.tar.gz: 98b7e0f546d36137d2806c0101abea334b0f6722d0d90b99367acea8a16fb609
3
+ metadata.gz: 87b317350275195afe02aadc0653bec704af39dc00c4b5f356ef0d9f29de6aef
4
+ data.tar.gz: d70e018947e00e2af967b4b38fca98571c17fe6aabe62901b7a77c65674fc7b8
5
5
  SHA512:
6
- metadata.gz: 53f10ca101d6898a3fe39f89b85df6f449c79534d2c983547c0ade5dcbbe2131d42a6e405dfd3ce0cc5c4db24ac2595046983763b072f1c50025ecde65c36725
7
- data.tar.gz: 434818b51714ce97871413c231ed01fd810b544fd7efed8a697520eca886232587dd877689882aa0ece09222288e3075891c0178197cb188b53ef0f45423cbb1
6
+ metadata.gz: 26142daab52ad1f9659e2f910eaae809a8fa3e799f48a4edfa940b22e2ce808a9cff5485d1fd77951909add3832eef781391d74361c25dedbf1fcbe216f416b2
7
+ data.tar.gz: 4cb2757e860f0cd8c4a2d802d1493c155f0edea90c3b18ff2f98c9366cc0f7c76e1524e71a285871a7c470151ac711735b22a82994ac7eea39837ac1548616cb
@@ -1,5 +1,6 @@
1
1
 
2
2
 
3
+
3
4
  @import 'pb_advanced_table/advanced_table';
4
5
  @import 'pb_avatar/avatar';
5
6
  @import 'pb_avatar_action_button/avatar_action_button';
@@ -30,6 +31,7 @@
30
31
  @import 'pb_detail/detail';
31
32
  @import 'pb_dialog/dialog';
32
33
  @import 'pb_distribution_bar/distribution_bar';
34
+ @import 'pb_dropdown/dropdown';
33
35
  @import 'pb_file_upload/file_upload';
34
36
  @import 'pb_filter/filter';
35
37
  @import 'pb_fixed_confirmation_toast/fixed_confirmation_toast';
@@ -35,6 +35,7 @@ export { default as DateYearStacked } from './pb_date_year_stacked/_date_year_st
35
35
  export { default as Detail} from './pb_detail/_detail'
36
36
  export { default as Dialog } from './pb_dialog/_dialog'
37
37
  export { default as DistributionBar } from './pb_distribution_bar/_distribution_bar'
38
+ export { default as Dropdown} from './pb_dropdown/_dropdown'
38
39
  export { default as FileUpload } from './pb_file_upload/_file_upload'
39
40
  export { default as Filter } from './pb_filter/_filter'
40
41
  export { default as FixedConfirmationToast } from './pb_fixed_confirmation_toast/_fixed_confirmation_toast'
@@ -1,10 +1,14 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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,
@@ -65,7 +65,7 @@ const getResponsiveValue = <T extends string | undefined>(prop: ResponsiveProp<T
65
65
 
66
66
  const Background = (props: BackgroundProps): React.ReactElement => {
67
67
  const {
68
- alt = '',
68
+ alt = undefined,
69
69
  aria = {},
70
70
  backgroundColor = 'light',
71
71
  backgroundPosition = '',
@@ -130,11 +130,13 @@ const Background = (props: BackgroundProps): React.ReactElement => {
130
130
  );
131
131
 
132
132
  const backgroundStyle = {
133
- backgroundImage: resImageUrl ? `url(${resImageUrl})` : undefined,
134
- backgroundRepeat: resBackgroundRepeat || undefined,
135
- backgroundSize: resBackgroundSize || undefined,
136
- backgroundPosition: resBackgroundPosition || undefined,
137
133
  backgroundColor: customColor || undefined,
134
+ ...(resImageUrl !== '' ? {
135
+ backgroundImage: resImageUrl ? `url(${resImageUrl})` : undefined,
136
+ backgroundRepeat: resBackgroundRepeat || undefined,
137
+ backgroundPosition: resBackgroundPosition || undefined,
138
+ backgroundSize: resBackgroundSize || undefined,
139
+ } : {})
138
140
  };
139
141
 
140
142
  const Tag: React.ReactElement | any = `${tag}`;
@@ -1,5 +1,9 @@
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};
@@ -9,7 +13,11 @@
9
13
  <%= content.presence %>
10
14
  <% end %>
11
15
  <% else %>
12
- <%= 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,
13
21
  style: object.custom_background_color
14
22
  ) do %>
15
23
  <%= content.presence %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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 %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(object.tag, **combined_html_options) 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(:div, **combined_html_options) 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, **combined_html_options) 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) !important;
20
+ padding: calc(#{$size} / 2) calc(#{$size} * 2.42);
21
21
  @if $name == "sm" {
22
22
  min-height: 0;
23
23
  }
@@ -1,4 +1,4 @@
1
- <%= pb_content_tag(object.tag,
1
+ <%= content_tag(object.tag,
2
2
  object.tag == "button" ? object.options : object.link_options,
3
3
  **combined_html_options) do %>
4
4
  <% if object.variant === "reaction" %>
@@ -1,3 +1,8 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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, **combined_html_options) 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, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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
  <%= pb_rails("flex", props: {vertical: "center", spacing: "between", cursor: "pointer"}) do %>
4
9
  <%= pb_rails("flex/flex_item") do %>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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(:div, **combined_html_options) 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}" %>>
@@ -1,4 +1,9 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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(:div, **combined_html_options) 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,8 @@
1
- <%= pb_content_tag(:div,
1
+ <%= content_tag(:div,
2
+ aria: object.aria,
2
3
  class: object.classname + object.error_class,
4
+ data: object.data,
5
+ id: object.id,
3
6
  **combined_html_options) do %>
4
7
  <div class="input_wrapper">
5
8
  <% if content.present? %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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(:div, **combined_html_options) 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 %>
@@ -1,4 +1,8 @@
1
- <%= pb_content_tag(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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, **combined_html_options) 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 %>
@@ -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, **combined_html_options) 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(:div, **combined_html_options) 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(:div, **combined_html_options) 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,8 @@
1
- <%= pb_content_tag(:div,
1
+ <%= content_tag(:div,
2
+ id: object.id,
3
+ data: object.data,
2
4
  class: object.sticky_header,
5
+ aria: object.aria,
3
6
  **combined_html_options) do %>
4
7
  <%= pb_rails("flex", props: {classname:object.classname, spacing:"between", padding:"sm", align:"center"}) do %>
5
8
  <%= content.presence || object.title %>
@@ -27,5 +27,5 @@ examples:
27
27
  - dialog_default_swift: Simple
28
28
  - dialog_sizes_swift: Sizes
29
29
  - dialog_status_swift: Status
30
- - dialog_props_table: ""
30
+ - dialog_props_swift: ""
31
31