playbook_ui 14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5646 → 14.12.0.pre.alpha.advancedtablealignmentfixes5693
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +13 -8
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb +38 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +15 -3
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +11 -11
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +12 -3
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +7 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +9 -0
- data/app/pb_kits/playbook/pb_card/card.html.erb +21 -2
- data/app/pb_kits/playbook/pb_card/card.rb +7 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb +1 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md +7 -0
- data/app/pb_kits/playbook/pb_lightbox/lightbox.scss +5 -5
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +12 -8
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.html.erb +52 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.md +0 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.html.erb +52 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +3 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb +80 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_table/table_row.rb +1 -1
- data/dist/chunks/_weekday_stacked-N1NVUtQO.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +10 -3
- data/dist/chunks/_weekday_stacked-zyBCd1s8.js +0 -45
data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
<% content = capture do %>
|
2
|
+
<%= pb_rails("table", props: { container: false, border_radius: "none", size: "sm"}) do %>
|
3
|
+
<%= pb_rails("table/table_head") do %>
|
4
|
+
<%= pb_rails("background", props: { tag: "tr" }) do %>
|
5
|
+
<%= pb_rails("table/table_header") do %>Alt Header<% end %>
|
6
|
+
<%= pb_rails("table/table_header") do %>Alt Header<% end %>
|
7
|
+
<%= pb_rails("table/table_header") do %>Alt Header<% end %>
|
8
|
+
<%= pb_rails("table/table_header") do %>Alt Header<% end %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
<%= pb_rails("table/table_body") do %>
|
12
|
+
<%= pb_rails("table/table_row") do %>
|
13
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
14
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
15
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
16
|
+
<%= pb_rails("table/table_cell") do %>
|
17
|
+
<%= pb_rails("pill", props: { text: "Pill", variant: "primary" }) %>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
20
|
+
<%= pb_rails("table/table_row") do %>
|
21
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
22
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
23
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
24
|
+
<%= pb_rails("table/table_cell") do %>
|
25
|
+
<%= pb_rails("pill", props: { text: "Pill", variant: "primary" }) %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
<%= pb_rails("table/table_row") do %>
|
29
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
30
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
31
|
+
<%= pb_rails("table/table_cell") do %>Expanded<% end %>
|
32
|
+
<%= pb_rails("table/table_cell") do %>
|
33
|
+
<%= pb_rails("pill", props: { text: "Pill", variant: "primary" }) %>
|
34
|
+
<% end %>
|
35
|
+
<% end %>
|
36
|
+
<% end %>
|
37
|
+
<% end %>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
|
41
|
+
<%= pb_rails("table", props: { size: "sm" }) do %>
|
42
|
+
<%= pb_rails("table/table_head") do %>
|
43
|
+
<%= pb_rails("table/table_row") do %>
|
44
|
+
<%= pb_rails("table/table_header", props: { text: "Column 1"}) %>
|
45
|
+
<%= pb_rails("table/table_header", props: { text: "Column 2"}) %>
|
46
|
+
<%= pb_rails("table/table_header", props: { text: "Column 3"}) %>
|
47
|
+
<%= pb_rails("table/table_header", props: { text: "Column 4"}) %>
|
48
|
+
<%= pb_rails("table/table_header", props: { text: "Column 5"}) %>
|
49
|
+
<%= pb_rails("table/table_header", props: { text: ""}) %>
|
50
|
+
<% end %>
|
51
|
+
<% end %>
|
52
|
+
<%= pb_rails("table/table_body") do %>
|
53
|
+
<%= pb_rails("table/table_row", props: { collapsible: true, collapsible_content: content, collapsible_side_highlight: false, id: "4" }) do %>
|
54
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
55
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
56
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
57
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
58
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
59
|
+
<%= pb_rails("table/table_cell", props: { text_align: "right"}) do %>
|
60
|
+
<%= pb_rails("icon", props: { icon: "chevron-down", fixed_width: true, color: "primary" }) %>
|
61
|
+
<% end %>
|
62
|
+
<% end %>
|
63
|
+
<%= pb_rails("table/table_row") do %>
|
64
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
65
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
66
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
67
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
68
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
69
|
+
<%= pb_rails("table/table_cell", props: { text: ""}) %>
|
70
|
+
<% end %>
|
71
|
+
<%= pb_rails("table/table_row") do %>
|
72
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
73
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
74
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
75
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
76
|
+
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
77
|
+
<%= pb_rails("table/table_cell", props: { text: ""}) %>
|
78
|
+
<% end %>
|
79
|
+
<% end %>
|
80
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
The `collapsible_content` can also be used to display nested Tables within each Row.
|
@@ -31,6 +31,9 @@ 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
|
34
37
|
|
35
38
|
react:
|
36
39
|
- 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:
|
15
|
+
default: true
|
16
16
|
|
17
17
|
def classname
|
18
18
|
generate_classname("pb_table_row_kit", side_highlight_class) + tag_class
|