playbook_ui 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 → 14.12.0.pre.alpha.PBNTR720railscarddraggable5649

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +2 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +3 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +1 -3
  7. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_loading_react.md → _advanced_table_loading.md} +2 -2
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -2
  10. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +3 -17
  11. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +11 -15
  12. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +3 -14
  13. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -2
  14. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +1 -9
  15. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +1 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +0 -9
  17. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +0 -5
  18. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -1
  19. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +5 -7
  20. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +8 -12
  21. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -3
  22. data/app/pb_kits/playbook/pb_table/table_row.rb +1 -1
  23. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -3
  24. data/dist/chunks/{_typeahead-BIhRQo8Q.js → _typeahead-BWwaAo_0.js} +3 -3
  25. data/dist/chunks/_weekday_stacked-zyBCd1s8.js +45 -0
  26. data/dist/chunks/vendor.js +1 -1
  27. data/dist/menu.yml +0 -6
  28. data/dist/playbook-doc.js +1 -1
  29. data/dist/playbook-rails-react-bindings.js +1 -1
  30. data/dist/playbook-rails.js +1 -1
  31. data/dist/playbook.css +1 -1
  32. data/lib/playbook/pb_forms_helper.rb +4 -13
  33. data/lib/playbook/version.rb +1 -1
  34. metadata +6 -26
  35. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +0 -33
  36. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_rails.md +0 -1
  37. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb +0 -38
  38. data/app/pb_kits/playbook/pb_copy_button/_copy_button.scss +0 -3
  39. data/app/pb_kits/playbook/pb_copy_button/_copy_button.tsx +0 -92
  40. data/app/pb_kits/playbook/pb_copy_button/copy_button.test.jsx +0 -64
  41. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +0 -21
  42. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +0 -45
  43. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md +0 -1
  44. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -8
  45. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +0 -2
  46. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +0 -58
  47. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md +0 -3
  48. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.html.erb +0 -52
  49. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.md +0 -0
  50. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.html.erb +0 -52
  51. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +0 -3
  52. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb +0 -80
  53. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +0 -1
  54. data/dist/chunks/_weekday_stacked-VKMYuo6-.js +0 -45
  55. data/lib/playbook/pb_forms_global_props_helper.rb +0 -136
  56. /data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/{_fixed_confirmation_toast_auto_close_react.md → _fixed_confirmation_toast_auto_close.md} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3bfceeec2adea47118fa2a3acf7aecbf348904d2a528f4e719c9a22d8f9b8a6
4
- data.tar.gz: 37458e396425f1bfa04703d660edce42a72dcd58c437e092523a68fdaecd5f98
3
+ metadata.gz: bfb340a31e2bb74d3749938720b1a44b2217e841d785f287f45499b70d8f03e5
4
+ data.tar.gz: 3cc515a9004e7a4558bd62bbda022c354e2fdfd15a9bd2541324a9d50287ae5c
5
5
  SHA512:
6
- metadata.gz: 32df6a28facf75ad16cf95583c52074264996698be73b9f8c7945dbdbf568698a5ca0ad4d00c824bc3d76f4ddf48ab626c381678ffbdd6369ede46c850fd388e
7
- data.tar.gz: 91c257b95405e4cf87af9305db3dc68e535bcf759f3549b67461f3dd0f383a5ee719dfcb7b78772d7e1f02189a26bfc30dee8be12ac4fd3c8e243573e4ba04c5
6
+ metadata.gz: 93eab8412f7e086ffd7fa534aff415b0f648ec73e247a281cd1e2dc357144dc90bf2d63dc7c36c027769b2ee6e7d1355852cf5f36b159a3559f2a491315dc174
7
+ data.tar.gz: 4a15e5855591a6a817a683f701958ccae8b6b10d1a9d825c9ebcff15c4e3b276b5eb08c12f7858f82ea6d8604fbdd0aee419dddffe02012b0992891767f46a16
@@ -15,7 +15,6 @@
15
15
  @import 'pb_circle_chart/circle_chart';
16
16
  @import 'pb_circle_icon_button/circle_icon_button';
17
17
  @import 'pb_collapsible/collapsible';
18
- @import 'pb_copy_button/copy_button';
19
18
  @import 'pb_contact/contact';
20
19
  @import 'pb_currency/currency';
21
20
  @import 'pb_dashboard_value/dashboard_value';
@@ -47,7 +47,7 @@ export const CustomCell = ({
47
47
  <Flex
48
48
  alignItems="center"
49
49
  columnGap="xs"
50
- justify={!hasAnySubRows && !inlineRowLoading ? "end" : "start"}
50
+ justify={!hasAnySubRows ? "end" : "start"}
51
51
  orientation="row"
52
52
  >
53
53
  {
@@ -39,7 +39,7 @@ export const TableHeaderCell = ({
39
39
  sortIcon,
40
40
  table
41
41
  }: TableHeaderCellProps) => {
42
- const { sortControl, responsive, selectableRows, hasAnySubRows, showActionsBar, inlineRowLoading } =
42
+ const { sortControl, responsive, selectableRows, hasAnySubRows, showActionsBar } =
43
43
  useContext(AdvancedTableContext);
44
44
 
45
45
  type justifyTypes = "none" | "center" | "start" | "end" | "between" | "around" | "evenly"
@@ -91,7 +91,7 @@ const isToggleExpansionEnabled =
91
91
 
92
92
  let justifyHeader:justifyTypes;
93
93
 
94
- if (header?.index === 0 && hasAnySubRows || (header?.index === 0 && inlineRowLoading)) {
94
+ if (header?.index === 0 && hasAnySubRows) {
95
95
  justifyHeader = enableSorting ? "between" : "start";
96
96
  } else {
97
97
  justifyHeader = isLeafColumn ? "end" : "center";
@@ -1,10 +1,10 @@
1
1
  <%= pb_content_tag do %>
2
- <%= pb_rails("table", props: { size: "sm", data_table: true, number_spacing:"tabular", responsive:"none", dark: dark, classname: object.loading ? "content-loading" : "" }.merge(object.table_props)) do %>
2
+ <%= pb_rails("table", props: { size: "sm", data_table: true, number_spacing:"tabular", responsive:"none", dark: dark }.merge(object.table_props)) do %>
3
3
  <% if content.present? %>
4
4
  <% content.presence %>
5
5
  <% else %>
6
- <%= pb_rails("advanced_table/table_header", props: { column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion, responsive: object.responsive, loading: object.loading }) %>
7
- <%= pb_rails("advanced_table/table_body", props: { id: object.id, table_data: object.table_data, column_definitions: object.column_definitions, responsive: object.responsive, loading: object.loading }) %>
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: { id: object.id, table_data: object.table_data, column_definitions: object.column_definitions }) %>
8
8
  <% end %>
9
9
  <% end %>
10
10
  <% end %>
@@ -10,11 +10,9 @@ module Playbook
10
10
  prop :enable_toggle_expansion, type: Playbook::Props::Enum,
11
11
  values: %w[all header none],
12
12
  default: "header"
13
- prop :loading, type: Playbook::Props::Boolean,
14
- default: false
15
13
  prop :responsive, type: Playbook::Props::Enum,
16
14
  values: %w[none scroll],
17
- default: "scroll"
15
+ default: "none"
18
16
  prop :table_props, type: Playbook::Props::HashProp,
19
17
  default: {}
20
18
 
@@ -245,7 +245,7 @@ test("toggleExpansionAll button exists and toggles subrows open and closed", asy
245
245
  })
246
246
 
247
247
 
248
- test("loading state + initialLoadingRowsCount prop", () => {
248
+ test("loading state + initialLoadingRowCount prop", () => {
249
249
  render(
250
250
  <AdvancedTable
251
251
  columnDefinitions={columnDefinitions}
@@ -1,3 +1,3 @@
1
- The optional `loading` prop takes a boolean value that can be managed using state. If loading is true, the table will display the loading skeleton and once loading is false, the table will render with the data provided.
1
+ the optional `loading` prop takes a boolean value that can be managed using state. If loading is true, the table will display the loading skeleton and once loading is false, the table will render with the data provided.
2
2
 
3
- By default, the inital row count of the loading skeleton is set to 10. If you want more control over this initial row count, the optional `initialLoadingRowsCount` prop can be used to pass in a number. __NOTE__: This is only for the first render of the table, subsequent loading skeleton row count logic is handled within the kit itself.
3
+ By default, the inital row count of the loading skeleton is set to 10. If you want more control over this initial row count, the optional `initialLoadingRowCount` prop can be used to pass in a number. __NOTE__: This is only for the first render of the table, subsequent loading skeleton row count logic is handled within the kit itself.
@@ -1,12 +1,10 @@
1
1
  examples:
2
2
  rails:
3
3
  - advanced_table_beta: Default (Required Props)
4
- - advanced_table_loading: Loading State
5
4
  - advanced_table_beta_subrow_headers: SubRow Headers
6
5
  - advanced_table_collapsible_trail_rails: Collapsible Trail
7
6
  - advanced_table_table_props: Table Props
8
7
  - advanced_table_beta_sort: Enable Sorting
9
- - advanced_table_responsive: Responsive Tables
10
8
  - advanced_table_custom_cell_rails: Custom Components for Cells
11
9
  - advanced_table_column_headers: Multi-Header Columns
12
10
  - advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
@@ -16,11 +16,6 @@ module Playbook
16
16
  default: []
17
17
  prop :collapsible_trail, type: Playbook::Props::Boolean,
18
18
  default: true
19
- prop :loading, type: Playbook::Props::Boolean,
20
- default: false
21
- prop :responsive, type: Playbook::Props::Enum,
22
- values: %w[none scroll],
23
- default: "scroll"
24
19
 
25
20
  def flatten_columns(columns)
26
21
  columns.flat_map do |col|
@@ -51,12 +46,12 @@ module Playbook
51
46
  row_parent: "#{id}_#{ancestor_ids.last}",
52
47
  }
53
48
  # Subrow header if applicable
54
- output << pb_rails("advanced_table/table_subrow_header", props: { row: row, column_definitions: leaf_columns, depth: current_depth, subrow_header: subrow_headers[current_depth - 1], collapsible_trail: collapsible_trail, classname: "toggle-content", responsive: responsive, subrow_data_attributes: subrow_data_attributes }) if is_first_child_of_subrow && enable_toggle_expansion == "all"
49
+ output << pb_rails("advanced_table/table_subrow_header", props: { row: row, column_definitions: leaf_columns, depth: current_depth, subrow_header: subrow_headers[current_depth - 1], collapsible_trail: collapsible_trail, classname: "toggle-content", subrow_data_attributes: subrow_data_attributes }) if is_first_child_of_subrow && enable_toggle_expansion == "all"
55
50
 
56
51
  current_data_attributes = current_depth.zero? ? { row_depth: 0 } : table_data_attributes
57
52
 
58
53
  # Additional class and data attributes needed for toggle logic
59
- output << pb_rails("advanced_table/table_row", props: { id: id, row: row, column_definitions: leaf_columns, depth: current_depth, collapsible_trail: collapsible_trail, classname: additional_classes, table_data_attributes: current_data_attributes, responsive: responsive, loading: loading })
54
+ output << pb_rails("advanced_table/table_row", props: { id: id, row: row, column_definitions: leaf_columns, depth: current_depth, collapsible_trail: collapsible_trail, classname: additional_classes, table_data_attributes: current_data_attributes })
60
55
 
61
56
  if row[:children].present?
62
57
  row[:children].each do |child_row|
@@ -79,16 +74,7 @@ module Playbook
79
74
  end
80
75
 
81
76
  def classname
82
- additional_classes = []
83
- additional_classes << "advanced-table-responsive-#{responsive} pinned-left" if responsive == "scroll"
84
-
85
- generate_classname("pb_advanced_table_body", *additional_classes, separator: " ")
86
- end
87
-
88
- def pinned_cell_class(index)
89
- return "pinned-left" if index.zero? && responsive == "scroll"
90
-
91
- ""
77
+ generate_classname("pb_advanced_table_body", separator: " ")
92
78
  end
93
79
 
94
80
  private
@@ -3,21 +3,17 @@
3
3
  <%= pb_rails("table/table_row") do %>
4
4
  <% header_row.each_with_index do |cell, cell_index| %>
5
5
  <% header_id = cell[:accessor].present? ? cell[:accessor] : "header_#{row_index}_#{cell_index}" %>
6
- <%= pb_rails("table/table_header", props: { id: header_id, colspan: cell[:colspan], classname: [object.th_classname(is_first_column: cell_index.zero?), ('last-header-cell' if cell[:is_last_in_group] && cell_index != 0)].compact.join(' '), sort_menu: cell[:accessor] ? cell[:sort_menu] : nil }) do %>
7
- <%= pb_rails("flex", props: { align: "center", justify: cell_index.zero? ? "start" : row_index === header_rows.size - 1 ? "end" : "center", text_align: "end" }) do %>
8
- <% if cell_index.zero? && (object.enable_toggle_expansion == "header" || object.enable_toggle_expansion == "all") && row_index === header_rows.size - 1 %>
9
- <% if loading %>
10
- <div class="<%= object.loading ? 'loading-toggle-icon' : '' %>"></div>
11
- <% else %>
12
- <button
13
- class="gray-icon toggle-all-icon"
14
- onclick="expandAllRows(this); event.preventDefault();">
15
- <%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %>
16
- </button>
17
- <% end %>
18
- <% end %>
19
- <%= cell[:label] %>
20
- <% end %>
6
+ <%= pb_rails("table/table_header", props: { id: header_id, colspan: cell[:colspan], classname: [object.th_classname, ('last-header-cell' if cell[:is_last_in_group] && cell_index != 0)].compact.join(' '), sort_menu: cell[:accessor] ? cell[:sort_menu] : nil }) do %>
7
+ <%= pb_rails("flex", props:{ align: "center", justify: cell_index.zero? ? "start" : row_index === header_rows.size - 1 ? "end" : "center", text_align: "end" }) do %>
8
+ <% if cell_index.zero? && (object.enable_toggle_expansion == "header" || object.enable_toggle_expansion == "all") && row_index === header_rows.size - 1 %>
9
+ <button
10
+ class="gray-icon toggle-all-icon"
11
+ onclick="expandAllRows(this); event.preventDefault();">
12
+ <%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right: "xs" }) %>
13
+ </button>
14
+ <% end %>
15
+ <%= cell[:label] %>
16
+ <% end %>
21
17
  <% end %>
22
18
  <% end %>
23
19
  <% end %>
@@ -8,24 +8,13 @@ module Playbook
8
8
  prop :enable_toggle_expansion, type: Playbook::Props::Enum,
9
9
  values: %w[all header none],
10
10
  default: "header"
11
- prop :loading, type: Playbook::Props::Boolean,
12
- default: false
13
- prop :responsive, type: Playbook::Props::Enum,
14
- values: %w[none scroll],
15
- default: "scroll"
16
11
 
17
12
  def classname
18
- additional_classes = []
19
- additional_classes << "advanced-table-responsive-#{responsive} pinned-left" if responsive == "scroll"
20
-
21
- generate_classname("pb_advanced_table_header", "pb_table_thead", *additional_classes, separator: " ")
13
+ generate_classname("pb_advanced_table_header", "pb_table_thead", separator: " ")
22
14
  end
23
15
 
24
- def th_classname(is_first_column: false)
25
- additional_classes = []
26
- additional_classes << "pinned-left" if is_first_column && responsive == "scroll"
27
-
28
- generate_classname("table-header-cells", *additional_classes, separator: " ")
16
+ def th_classname
17
+ generate_classname("table-header-cells", separator: " ")
29
18
  end
30
19
 
31
20
  def header_rows
@@ -1,8 +1,8 @@
1
1
  <%= pb_content_tag(:tr) do %>
2
2
  <% object.column_definitions.each_with_index do |column, index| %>
3
3
  <% next unless column[:accessor].present? %>
4
- <%= pb_rails("table/table_cell", props: { classname:object.td_classname(column, index)}) do %>
5
- <%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end", classname: object.loading ? "loading-cell" : "" }) do %>
4
+ <%= pb_rails("table/table_cell", props: { classname:object.td_classname(column)}) do %>
5
+ <%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end" }) do %>
6
6
  <% if collapsible_trail && index.zero? %>
7
7
  <% (1..depth).each do |i| %>
8
8
  <% additional_offset = i > 1 ? (i - 1) * 0.25 : 0 %>
@@ -13,13 +13,6 @@ module Playbook
13
13
  default: true
14
14
  prop :table_data_attributes, type: Playbook::Props::HashProp,
15
15
  default: {}
16
- prop :loading, type: Playbook::Props::Boolean,
17
- default: false
18
- prop :responsive, type: Playbook::Props::Enum,
19
- values: %w[none scroll],
20
- default: "scroll"
21
- prop :is_pinned_left, type: Playbook::Props::Boolean,
22
- default: false
23
16
 
24
17
  def data
25
18
  Hash(prop(:data)).merge(table_data_attributes)
@@ -29,10 +22,9 @@ module Playbook
29
22
  generate_classname("pb_table_tr", "bg-white", subrow_depth_classname, separator: " ")
30
23
  end
31
24
 
32
- def td_classname(column, index)
25
+ def td_classname(column)
33
26
  classes = %w[id-cell chrome-styles]
34
27
  classes << "last-cell" if column[:is_last_in_group]
35
- classes << "pinned-left" if index.zero? && is_pinned_left && responsive == "scroll"
36
28
  classes.join(" ")
37
29
  end
38
30
 
@@ -1,6 +1,6 @@
1
1
  <%= pb_content_tag(:tr) do %>
2
2
  <% object.column_definitions.each_with_index do |column, index| %>
3
- <%= pb_rails("table/table_cell", props: { classname: object.td_classname(index) }) do %>
3
+ <%= pb_rails("table/table_cell", props: { classname: "id-cell chrome-styles"}) do %>
4
4
  <%= pb_rails("flex", props:{ align: "center", justify: "start" }) do %>
5
5
  <% if collapsible_trail && index.zero? %>
6
6
  <% (1..depth).each do |i| %>
@@ -16,9 +16,6 @@ module Playbook
16
16
  default: true
17
17
  prop :subrow_data_attributes, type: Playbook::Props::HashProp,
18
18
  default: {}
19
- prop :responsive, type: Playbook::Props::Enum,
20
- values: %w[none scroll],
21
- default: "scroll"
22
19
 
23
20
  def data
24
21
  Hash(prop(:data)).merge(subrow_data_attributes)
@@ -28,12 +25,6 @@ module Playbook
28
25
  generate_classname("pb_table_tr", "bg-silver", "pb_subrow_header", subrow_depth_classname, separator: " ")
29
26
  end
30
27
 
31
- def td_classname(index)
32
- classes = %w[id-cell chrome-styles]
33
- classes << "pinned-left" if index.zero? && responsive == "scroll"
34
- classes.join(" ")
35
- end
36
-
37
28
  private
38
29
 
39
30
  def subrow_depth_classname
@@ -78,9 +78,4 @@ $avatar-sizes: (
78
78
  }
79
79
  }
80
80
  }
81
- &.dark {
82
- [class^=pb_card_kit] {
83
- position: absolute;
84
- }
85
- }
86
81
  }
@@ -5,7 +5,6 @@ examples:
5
5
  - fixed_confirmation_toast_multi_line: Multi Line
6
6
  - fixed_confirmation_toast_close: Click to Close
7
7
  - fixed_confirmation_toast_positions: Click to Show Positions
8
- - fixed_confirmation_toast_auto_close: Click to Show Auto Close
9
8
  - fixed_confirmation_toast_children: Children
10
9
  - fixed_confirmation_toast_custom_icon: Custom Icon
11
10
 
@@ -2,18 +2,16 @@ import PbEnhancedElement from '../pb_enhanced_element'
2
2
 
3
3
  export default class PbFixedConfirmationToast extends PbEnhancedElement {
4
4
  static get selector() {
5
- return '[class*="pb_fixed_confirmation_toast_kit"]'
5
+ return '.remove_toast'
6
6
  }
7
7
 
8
8
  connect() {
9
9
  this.self = this.element
10
10
  this.autoCloseToast(this.self)
11
11
 
12
- if (this.self.classList.contains('remove_toast')) {
13
- this.self.addEventListener('click', () => {
14
- this.removeToast(this.self)
15
- })
16
- }
12
+ this.self.addEventListener('click', () => {
13
+ this.removeToast(this.self)
14
+ })
17
15
  }
18
16
 
19
17
  removeToast(elem) {
@@ -34,4 +32,4 @@ export default class PbFixedConfirmationToast extends PbEnhancedElement {
34
32
  }, autoCloseIntValue)
35
33
  }
36
34
  }
37
- }
35
+ }
@@ -8,31 +8,27 @@ const TableWithCollapsibleWithCustomContent = (props) => {
8
8
  <Card
9
9
  borderNone
10
10
  borderRadius="none"
11
- color="light"
11
+ color="light"
12
12
  paddingX="xl"
13
13
  paddingY="md"
14
14
  {...props}
15
15
  >
16
- <Body paddingBottom="sm"
16
+ <Body paddingBottom="sm"
17
17
  text="Expanded Custom Layout"
18
18
  {...props}
19
19
  />
20
20
  <Flex justify="between">
21
21
  <Image
22
- size="sm"
23
- url="https://unsplash.it/500/400/?image=634"
22
+ url="https://via.placeholder.com/150"
24
23
  />
25
24
  <Image
26
- size="sm"
27
- url="https://unsplash.it/500/400/?image=634"
25
+ url="https://via.placeholder.com/150"
28
26
  />
29
27
  <Image
30
- size="sm"
31
- url="https://unsplash.it/500/400/?image=634"
28
+ url="https://via.placeholder.com/150"
32
29
  />
33
30
  <Image
34
- size="sm"
35
- url="https://unsplash.it/500/400/?image=634"
31
+ url="https://via.placeholder.com/150"
36
32
  />
37
33
  </Flex>
38
34
  </Card>
@@ -56,7 +52,7 @@ const TableWithCollapsibleWithCustomContent = (props) => {
56
52
 
57
53
  </Table.Head>
58
54
  <Table.Body>
59
- <Table.Row collapsible
55
+ <Table.Row collapsible
60
56
  collapsibleContent={<Content/>}
61
57
  {...props}
62
58
  >
@@ -65,7 +61,7 @@ const TableWithCollapsibleWithCustomContent = (props) => {
65
61
  <Table.Cell>{'Value 3'}</Table.Cell>
66
62
  <Table.Cell>{'Value 4'}</Table.Cell>
67
63
  <Table.Cell>{'Value 5'}</Table.Cell>
68
- <Table.Cell textAlign="right">{
64
+ <Table.Cell textAlign="right">{
69
65
  <Icon
70
66
  color="primary"
71
67
  fixedWidth
@@ -31,9 +31,6 @@ examples:
31
31
  - table_with_subcomponents_as_divs: Table with Sub Components (Divs)
32
32
  - table_outer_padding: Outer Padding
33
33
  - table_with_collapsible: Table with Collapsible
34
- - table_with_collapsible_with_custom_content_rails: Table with Collapsible with Custom Content
35
- - table_with_collapsible_with_nested_rows_rails: Table with Collapsible with Nested Rows
36
- - table_with_collapsible_with_nested_table_rails: Table with Collapsible with Nested Table
37
34
 
38
35
  react:
39
36
  - table_sm: Small
@@ -12,7 +12,7 @@ module Playbook
12
12
  default: false
13
13
  prop :collapsible_content
14
14
  prop :collapsible_side_highlight, type: Playbook::Props::Boolean,
15
- default: true
15
+ default: false
16
16
 
17
17
  def classname
18
18
  generate_classname("pb_table_row_kit", side_highlight_class) + tag_class
@@ -32,7 +32,6 @@ type TooltipProps = {
32
32
  position?: "absolute" | "fixed";
33
33
  text: string,
34
34
  showTooltip?: boolean,
35
- forceOpenTooltip?: boolean,
36
35
  } & GlobalProps
37
36
 
38
37
  const Tooltip = forwardRef((props: TooltipProps, ref: ForwardedRef<unknown>): React.ReactElement => {
@@ -50,7 +49,6 @@ const Tooltip = forwardRef((props: TooltipProps, ref: ForwardedRef<unknown>): Re
50
49
  text,
51
50
  showTooltip = true,
52
51
  zIndex,
53
- forceOpenTooltip = false,
54
52
  ...rest
55
53
  } = props
56
54
 
@@ -137,7 +135,7 @@ const Tooltip = forwardRef((props: TooltipProps, ref: ForwardedRef<unknown>): Re
137
135
  >
138
136
  {children}
139
137
  </div>
140
- {(open || forceOpenTooltip) && (
138
+ {open && (
141
139
  <div
142
140
  {...getFloatingProps({
143
141
  className: `tooltip_tooltip ${placement} visible`,