playbook_ui 13.19.0.pre.alpha.PBNTR207tabledivsupport2245 → 13.19.0.pre.alpha.PBNTR211tablekitsubcomponentsreact2318

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/index.js +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +4 -4
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.md +1 -1
  9. data/app/pb_kits/playbook/pb_icon/_icon.tsx +28 -16
  10. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb +5 -11
  11. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx +44 -18
  12. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.md +4 -8
  13. data/app/pb_kits/playbook/pb_icon/icon.html.erb +6 -4
  14. data/app/pb_kits/playbook/pb_icon/icon.rb +27 -10
  15. data/app/pb_kits/playbook/pb_table/SubKits/_table_body.tsx +64 -0
  16. data/app/pb_kits/playbook/pb_table/SubKits/_table_cell.tsx +66 -0
  17. data/app/pb_kits/playbook/pb_table/SubKits/_table_head.tsx +64 -0
  18. data/app/pb_kits/playbook/pb_table/SubKits/_table_header.tsx +66 -0
  19. data/app/pb_kits/playbook/pb_table/SubKits/_table_row.tsx +74 -0
  20. data/app/pb_kits/playbook/pb_table/SubKits/index.tsx +5 -0
  21. data/app/pb_kits/playbook/pb_table/_table.tsx +99 -67
  22. data/app/pb_kits/playbook/pb_table/docs/_table_div.html.erb +26 -26
  23. data/app/pb_kits/playbook/pb_table/docs/_table_div.jsx +27 -26
  24. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +24 -25
  25. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb +34 -0
  26. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx +47 -0
  27. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb +34 -0
  28. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx +48 -0
  29. data/app/pb_kits/playbook/pb_table/docs/example.yml +7 -2
  30. data/app/pb_kits/playbook/pb_table/docs/index.js +2 -0
  31. data/app/pb_kits/playbook/pb_table/styles/_all.scss +0 -1
  32. data/app/pb_kits/playbook/pb_table/styles/_content.scss +3 -3
  33. data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +15 -15
  34. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +3 -3
  35. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +11 -11
  36. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +15 -15
  37. data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +15 -15
  38. data/app/pb_kits/playbook/pb_table/styles/_reset.scss +3 -3
  39. data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +2 -2
  40. data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +4 -4
  41. data/app/pb_kits/playbook/pb_table/styles/_sticky_header.scss +2 -2
  42. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +4 -4
  43. data/app/pb_kits/playbook/pb_table/styles/_structure.scss +22 -8
  44. data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +7 -7
  45. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +14 -14
  46. data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +2 -2
  47. data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +15 -15
  48. data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +3 -3
  49. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -3
  50. data/app/pb_kits/playbook/pb_table/table.test.js +142 -1
  51. data/app/pb_kits/playbook/pb_table/table_body.html.erb +17 -0
  52. data/app/pb_kits/playbook/pb_table/table_body.rb +15 -0
  53. data/app/pb_kits/playbook/pb_table/table_cell.html.erb +17 -0
  54. data/app/pb_kits/playbook/pb_table/table_cell.rb +17 -0
  55. data/app/pb_kits/playbook/pb_table/table_head.html.erb +17 -0
  56. data/app/pb_kits/playbook/pb_table/table_head.rb +15 -0
  57. data/app/pb_kits/playbook/pb_table/table_header.html.erb +49 -39
  58. data/app/pb_kits/playbook/pb_table/table_header.rb +8 -1
  59. data/app/pb_kits/playbook/pb_table/table_row.html.erb +17 -7
  60. data/app/pb_kits/playbook/pb_table/table_row.rb +8 -1
  61. data/dist/playbook-rails.js +6 -6
  62. data/lib/playbook/version.rb +1 -1
  63. metadata +18 -4
  64. data/app/pb_kits/playbook/pb_table/_table_row.tsx +0 -47
  65. data/app/pb_kits/playbook/pb_table/styles/_div_support.scss +0 -22
@@ -0,0 +1,34 @@
1
+ <%= pb_rails("table", props: { size: "sm", tag:"div" }) do %>
2
+ <%= pb_rails("table/table_head", props: {tag:"div"}) do %>
3
+ <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
4
+ <%= pb_rails("table/table_header", props: { text: "Column 1", tag:"div"}) %>
5
+ <%= pb_rails("table/table_header", props: { text: "Column 2", tag:"div"}) %>
6
+ <%= pb_rails("table/table_header", props: { text: "Column 3", tag:"div"}) %>
7
+ <%= pb_rails("table/table_header", props: { text: "Column 4", tag:"div"}) %>
8
+ <%= pb_rails("table/table_header", props: { text: "Column 5", tag:"div"}) %>
9
+ <% end %>
10
+ <% end %>
11
+ <%= pb_rails("table/table_body", props: {tag:"div"}) do %>
12
+ <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
13
+ <%= pb_rails("table/table_cell", props: { text: "Value 1", tag:"div"}) %>
14
+ <%= pb_rails("table/table_cell", props: { text: "Value 2", tag:"div"}) %>
15
+ <%= pb_rails("table/table_cell", props: { text: "Value 3", tag:"div"}) %>
16
+ <%= pb_rails("table/table_cell", props: { text: "Value 4", tag:"div"}) %>
17
+ <%= pb_rails("table/table_cell", props: { text: "Value 5", tag:"div"}) %>
18
+ <% end %>
19
+ <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
20
+ <%= pb_rails("table/table_cell", props: { text: "Value 1", tag:"div"}) %>
21
+ <%= pb_rails("table/table_cell", props: { text: "Value 2", tag:"div"}) %>
22
+ <%= pb_rails("table/table_cell", props: { text: "Value 3", tag:"div"}) %>
23
+ <%= pb_rails("table/table_cell", props: { text: "Value 4", tag:"div"}) %>
24
+ <%= pb_rails("table/table_cell", props: { text: "Value 5", tag:"div"}) %>
25
+ <% end %>
26
+ <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
27
+ <%= pb_rails("table/table_cell", props: { text: "Value 1", tag:"div"}) %>
28
+ <%= pb_rails("table/table_cell", props: { text: "Value 2", tag:"div"}) %>
29
+ <%= pb_rails("table/table_cell", props: { text: "Value 3", tag:"div"}) %>
30
+ <%= pb_rails("table/table_cell", props: { text: "Value 4", tag:"div"}) %>
31
+ <%= pb_rails("table/table_cell", props: { text: "Value 5", tag:"div"}) %>
32
+ <% end %>
33
+ <% end %>
34
+ <% end %>
@@ -0,0 +1,48 @@
1
+ import React from 'react'
2
+
3
+ import Table from '../_table'
4
+
5
+ const TableWithSubcomponentsAsDivs = (props) => {
6
+ return (
7
+ <Table
8
+ size="sm"
9
+ tag="div"
10
+ {...props}
11
+ >
12
+ <Table.Head tag="div">
13
+ <Table.Row tag="div">
14
+ <Table.Header tag="div">{'Column 1'}</Table.Header>
15
+ <Table.Header tag="div">{'Column 2'}</Table.Header>
16
+ <Table.Header tag="div">{'Column 3'}</Table.Header>
17
+ <Table.Header tag="div">{'Column 4'}</Table.Header>
18
+ <Table.Header tag="div">{'Column 5'}</Table.Header>
19
+ </Table.Row>
20
+ </Table.Head>
21
+ <Table.Body tag="div">
22
+ <Table.Row tag="div">
23
+ <Table.Cell tag="div">{'Value 1'}</Table.Cell>
24
+ <Table.Cell tag="div">{'Value 2'}</Table.Cell>
25
+ <Table.Cell tag="div">{'Value 3'}</Table.Cell>
26
+ <Table.Cell tag="div">{'Value 4'}</Table.Cell>
27
+ <Table.Cell tag="div">{'Value 5'}</Table.Cell>
28
+ </Table.Row>
29
+ <Table.Row tag="div">
30
+ <Table.Cell tag="div">{'Value 1'}</Table.Cell>
31
+ <Table.Cell tag="div">{'Value 2'}</Table.Cell>
32
+ <Table.Cell tag="div">{'Value 3'}</Table.Cell>
33
+ <Table.Cell tag="div">{'Value 4'}</Table.Cell>
34
+ <Table.Cell tag="div">{'Value 5'}</Table.Cell>
35
+ </Table.Row>
36
+ <Table.Row>
37
+ <Table.Cell tag="div">{'Value 1'}</Table.Cell>
38
+ <Table.Cell tag="div">{'Value 2'}</Table.Cell>
39
+ <Table.Cell tag="div">{'Value 3'}</Table.Cell>
40
+ <Table.Cell tag="div">{'Value 4'}</Table.Cell>
41
+ <Table.Cell tag="div">{'Value 5'}</Table.Cell>
42
+ </Table.Row>
43
+ </Table.Body>
44
+ </Table>
45
+ )
46
+ }
47
+
48
+ export default TableWithSubcomponentsAsDivs
@@ -1,6 +1,8 @@
1
1
  examples:
2
2
  rails:
3
- - table_div: Div
3
+ - table_with_subcomponents: Table with Sub Components (Table Elements)
4
+ - table_with_subcomponents_as_divs: Table with Sub Components (Divs)
5
+ # - table_div: Div
4
6
  - table_sm: Small
5
7
  - table_md: Medium
6
8
  - table_lg: Large
@@ -27,7 +29,7 @@ examples:
27
29
  - table_striped: Striped Table
28
30
 
29
31
  react:
30
- - table_div: Div
32
+ # - table_div: Div
31
33
  - table_sm: Small
32
34
  - table_md: Medium
33
35
  - table_lg: Large
@@ -51,3 +53,6 @@ examples:
51
53
  - table_with_background_kit: Table With Background Kit
52
54
  - table_vertical_border: Vertical Borders
53
55
  - table_striped: Striped Table
56
+ - table_with_subcomponents: Table with Sub Components (Table Elements)
57
+ - table_with_subcomponents_as_divs: Table with Sub Components (Divs)
58
+
@@ -22,3 +22,5 @@ export { default as TableWithBackgroundKit } from './_table_with_background_kit.
22
22
  export { default as TableVerticalBorder } from './_table_vertical_border.jsx'
23
23
  export { default as TableStriped } from './_table_striped.jsx'
24
24
  export { default as TableDiv } from './_table_div.jsx'
25
+ export { default as TableWithSubcomponents } from './_table_with_subcomponents.jsx'
26
+ export { default as TableWithSubcomponentsAsDivs } from './_table_with_subcomponents_as_divs.jsx'
@@ -19,4 +19,3 @@
19
19
  @import "vertical_border";
20
20
  @import "table_header";
21
21
  @import "striped";
22
- @import "div_support";
@@ -2,9 +2,9 @@
2
2
  &.table-sm,
3
3
  &.table-md,
4
4
  &.table-lg {
5
- tbody, .tbody {
6
- tr, .tr {
7
- td, .td {
5
+ tbody, .pb_table_tbody {
6
+ tr, .pb_table_tr {
7
+ td, .pb_table_td {
8
8
  font-size: $default-font-size;
9
9
  }
10
10
  }
@@ -10,21 +10,21 @@
10
10
  width: 100%;
11
11
  background: none !important;
12
12
 
13
- thead, .thead {
14
- tr, .tr {
13
+ thead, .pb_table_thead {
14
+ tr, .pb_table_tr {
15
15
  left: $offscreen;
16
16
  position: absolute;
17
17
  top: $offscreen;
18
18
 
19
- th, .th {
19
+ th, .pb_table_th {
20
20
  display: block;
21
21
  visibility: visible;
22
22
  }
23
23
  }
24
24
  }
25
- tbody, .tbody {
26
- tr, .tr {
27
- td, .td {
25
+ tbody, .pb_table_tbody {
26
+ tr, .pb_table_tr {
27
+ td, .pb_table_td {
28
28
  display: block;
29
29
  visibility: visible;
30
30
  border-left-width: 1px !important;
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  &:first-child {
66
- td, .td {
66
+ td, .pb_table_td {
67
67
  &:first-child {
68
68
  margin-top: $space-xs !important;
69
69
  }
@@ -74,9 +74,9 @@
74
74
  &.table-card {
75
75
  background: none !important;
76
76
 
77
- tbody, .tbody {
78
- tr, .tr {
79
- td, .td {
77
+ tbody, .pb_table_tbody {
78
+ tr, .pb_table_tr {
79
+ td, .pb_table_td {
80
80
  background: $white !important;
81
81
  border-left-width: 1px !important;
82
82
  border-right-width: 1px !important;
@@ -98,8 +98,8 @@
98
98
  }
99
99
  @media (hover:hover) {
100
100
  &:hover {
101
- tbody, .tbody {
102
- tr, .tr {
101
+ tbody, .pb_table_tbody {
102
+ tr, .pb_table_tr {
103
103
  box-shadow: 0 0 0 $white !important;
104
104
  }
105
105
  }
@@ -108,9 +108,9 @@
108
108
  // reset the first and last to normalize
109
109
  @each $name, $value in $cell-pad-list {
110
110
  &.#{$name} {
111
- tbody, .tbody {
112
- tr, .tr {
113
- td, .td {
111
+ tbody, .pb_table_tbody {
112
+ tr, .pb_table_tr {
113
+ td, .pb_table_td {
114
114
  &:first-child,
115
115
  &:last-child {
116
116
  padding: $value $cell-gutter !important;
@@ -4,9 +4,9 @@
4
4
  &.table-sm,
5
5
  &.table-md,
6
6
  &.table-lg {
7
- thead, .thead {
8
- tr, .tr {
9
- th, .th {
7
+ thead, .pb_table_thead {
8
+ tr, .pb_table_tr {
9
+ th, .pb_table_th {
10
10
  @include caption;
11
11
  border-bottom: 1px solid $border_light;
12
12
  }
@@ -9,17 +9,17 @@ $border_hover_color_dark: lighten($border_dark, 5%);
9
9
  &.table-lg {
10
10
  &:not(.no-hover) {
11
11
  border-collapse: collapse;
12
- tbody, .tbody {
13
- tr, .tr {
12
+ tbody, .pb_table_tbody {
13
+ tr, .pb_table_tr {
14
14
  box-shadow: 0 0 0 $white;
15
15
  transition: box-shadow $transition-speed ease;
16
- td, .td {
16
+ td, .pb_table_td {
17
17
  border-top-color: transparent;
18
18
  border-top-width: 0;
19
19
  transition: all $transition-speed ease;
20
20
  }
21
21
  @media (hover:hover) {
22
- td, .td {
22
+ td, .pb_table_td {
23
23
  position: relative;
24
24
  &:after {
25
25
  transition: background-color $transition-speed ease, height $transition-speed ease;
@@ -41,7 +41,7 @@ $border_hover_color_dark: lighten($border_dark, 5%);
41
41
  }
42
42
  &:hover {
43
43
  box-shadow: 0 2px 10px 0 rgba($slate, $opacity-6);
44
- td, .td {
44
+ td, .pb_table_td {
45
45
  border-color: darken($border_light, 10%);
46
46
  border-top-width: 0;
47
47
  border-top-color: transparent;
@@ -57,9 +57,9 @@ $border_hover_color_dark: lighten($border_dark, 5%);
57
57
  }
58
58
  &.table-card {
59
59
  border-collapse: separate;
60
- tbody, .tbody {
61
- tr, .tr {
62
- td, .td {
60
+ tbody, .pb_table_tbody {
61
+ tr, .pb_table_tr {
62
+ td, .pb_table_td {
63
63
  &:first-child {
64
64
  border-left-width: 1px;
65
65
  }
@@ -72,12 +72,12 @@ $border_hover_color_dark: lighten($border_dark, 5%);
72
72
  }
73
73
 
74
74
  &.dark {
75
- tbody, .tbody {
76
- tr, .tr {
75
+ tbody, .pb_table_tbody {
76
+ tr, .pb_table_tr {
77
77
  @media (hover:hover) {
78
78
  &:hover {
79
79
  box-shadow: 0 2px 10px 0 $shadow_dark;
80
- td, .td {
80
+ td, .pb_table_td {
81
81
  border-top-width: 0;
82
82
  border-top-color: transparent;
83
83
  border-color: $border_hover_color_dark !important;
@@ -10,21 +10,21 @@
10
10
  width: 100%;
11
11
  background: none !important;
12
12
 
13
- thead, .thead {
14
- tr, .tr {
13
+ thead, .pb_table_thead {
14
+ tr, .pb_table_tr {
15
15
  left: $offscreen;
16
16
  position: absolute;
17
17
  top: $offscreen;
18
18
 
19
- th, .th {
19
+ th, .pb_table_th {
20
20
  display: block;
21
21
  visibility: visible;
22
22
  }
23
23
  }
24
24
  }
25
- tbody, .tbody {
26
- tr, .tr {
27
- td, .td {
25
+ tbody, .pb_table_tbody {
26
+ tr, .pb_table_tr {
27
+ td, .pb_table_td {
28
28
  display: block;
29
29
  visibility: visible;
30
30
  border-left-width: 1px !important;
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  &:first-child {
66
- td, .td {
66
+ td, .pb_table_td {
67
67
  &:first-child {
68
68
  margin-top: $space-xs !important;
69
69
  }
@@ -74,9 +74,9 @@
74
74
  &.table-card {
75
75
  background: none !important;
76
76
 
77
- tbody, .tbody {
78
- tr, .tr {
79
- td, .td {
77
+ tbody, .pb_table_tbody {
78
+ tr, .pb_table_tr {
79
+ td, .pb_table_td {
80
80
  background: $white !important;
81
81
  border-left-width: 1px !important;
82
82
  border-right-width: 1px !important;
@@ -98,8 +98,8 @@
98
98
  }
99
99
  @media (hover:hover) {
100
100
  &:hover {
101
- tbody, .tbody {
102
- tr, .tr {
101
+ tbody, .pb_table_tbody {
102
+ tr, .pb_table_tr {
103
103
  box-shadow: 0 0 0 $white !important;
104
104
  }
105
105
  }
@@ -108,9 +108,9 @@
108
108
  // reset the first and last to normalize
109
109
  @each $name, $value in $cell-pad-list {
110
110
  &.#{$name} {
111
- tbody, .tbody {
112
- tr, .tr {
113
- td, .td {
111
+ tbody, .pb_table_tbody {
112
+ tr, .pb_table_tr {
113
+ td, .pb_table_td {
114
114
  &:first-child,
115
115
  &:last-child {
116
116
  padding: $value $cell-gutter !important;
@@ -10,21 +10,21 @@
10
10
  width: 100%;
11
11
  background: none !important;
12
12
 
13
- thead, .thead {
14
- tr, .tr {
13
+ thead, .pb_table_thead {
14
+ tr, .pb_table_tr {
15
15
  left: $offscreen;
16
16
  position: absolute;
17
17
  top: $offscreen;
18
18
 
19
- th, .th {
19
+ th, .pb_table_th {
20
20
  display: block;
21
21
  visibility: visible;
22
22
  }
23
23
  }
24
24
  }
25
- tbody, .tbody {
26
- tr, .tr {
27
- td, .td {
25
+ tbody, .pb_table_tbody {
26
+ tr, .pb_table_tr {
27
+ td, .pb_table_td {
28
28
  display: block;
29
29
  visibility: visible;
30
30
  border-left-width: 1px !important;
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  &:first-child {
66
- td, .td {
66
+ td, .pb_table_td {
67
67
  &:first-child {
68
68
  margin-top: $space-xs !important;
69
69
  }
@@ -74,9 +74,9 @@
74
74
  &.table-card {
75
75
  background: none !important;
76
76
 
77
- tbody, .tbody {
78
- tr, .tr {
79
- td, .td {
77
+ tbody, .pb_table_tbody {
78
+ tr, .pb_table_tr {
79
+ td, .pb_table_td {
80
80
  background: $white !important;
81
81
  border-left-width: 1px !important;
82
82
  border-right-width: 1px !important;
@@ -98,8 +98,8 @@
98
98
  }
99
99
  @media (hover:hover) {
100
100
  &:hover {
101
- tbody, .tbody {
102
- tr, .tr {
101
+ tbody, .pb_table_tbody {
102
+ tr, .pb_table_tr {
103
103
  box-shadow: 0 0 0 $white !important;
104
104
  }
105
105
  }
@@ -108,9 +108,9 @@
108
108
  // reset the first and last to normalize
109
109
  @each $name, $value in $cell-pad-list {
110
110
  &.#{$name} {
111
- tbody, .tbody {
112
- tr, .tr {
113
- td, .td {
111
+ tbody, .pb_table_tbody {
112
+ tr, .pb_table_tr {
113
+ td, .pb_table_td {
114
114
  &:first-child,
115
115
  &:last-child {
116
116
  padding: $value $cell-gutter !important;
@@ -6,9 +6,9 @@
6
6
  background-color: unset;
7
7
  background: unset;
8
8
 
9
- thead, .thead {
10
- tr, .tr {
11
- th, .th {
9
+ thead, .pb_table_thead {
10
+ tr, .pb_table_tr {
11
+ th, .pb_table_th {
12
12
  text-align: left;
13
13
  }
14
14
  }
@@ -8,11 +8,11 @@ $pb_table_row_kit_side_highlight_colors: map-merge(map-merge($status_colors, $pr
8
8
  }
9
9
 
10
10
  [class^=pb_table] {
11
- tbody, .tbody {
11
+ tbody, .pb_table_tbody {
12
12
  [class^=pb_table_row_kit] {
13
13
  @each $color_name, $color_value in $pb_table_row_kit_side_highlight_colors {
14
14
  &[class*=_side_highlight_#{$color_name}] {
15
- td, .td {
15
+ td, .pb_table_td {
16
16
  &:first-child {
17
17
  @include pb_table_row_kit_side_highlight($color_value);
18
18
  }
@@ -4,9 +4,9 @@
4
4
  max-width: 100vw;
5
5
  table-layout: fixed;
6
6
 
7
- tbody, .tbody {
8
- tr, .tr {
9
- td, .td {
7
+ tbody, .pb_table_tbody {
8
+ tr, .pb_table_tr {
9
+ td, .pb_table_td {
10
10
  white-space: nowrap;
11
11
  text-overflow: ellipsis;
12
12
 
@@ -20,7 +20,7 @@
20
20
  display: block !important;
21
21
  }
22
22
 
23
- br, .br {
23
+ br, .pb_table_br {
24
24
  content:' ' !important;
25
25
 
26
26
  &::after {
@@ -2,7 +2,7 @@
2
2
 
3
3
  [class^="pb_table"] {
4
4
  &.sticky-header {
5
- thead, .thead {
5
+ thead, .pb_table_thead {
6
6
  background: $white;
7
7
  position: sticky;
8
8
  top: 0;
@@ -12,7 +12,7 @@
12
12
 
13
13
  &.dark {
14
14
  &.sticky-header {
15
- thead, .thead {
15
+ thead, .pb_table_thead {
16
16
  background: $bg_dark;
17
17
  position: sticky;
18
18
  top: 0;
@@ -1,7 +1,7 @@
1
1
  [class^=pb_table] {
2
2
  &.striped {
3
- tbody, .tbody {
4
- tr:nth-child(odd), .tr:nth-child(odd) {
3
+ tbody, .pb_table_tbody {
4
+ tr:nth-child(odd), .pb_table_tr:nth-child(odd) {
5
5
  background-color: $bg_light;
6
6
  }
7
7
  }
@@ -9,8 +9,8 @@
9
9
 
10
10
  &.dark {
11
11
  &.striped {
12
- tbody, .tbody {
13
- tr:nth-child(odd), .tr:nth-child(odd) {
12
+ tbody, .pb_table_tbody {
13
+ tr:nth-child(odd), .pb_table_tr:nth-child(odd) {
14
14
  background-color: $bg_dark;
15
15
  }
16
16
  }
@@ -1,12 +1,19 @@
1
1
  @import "../../tokens/colors";
2
2
 
3
3
  [class^=pb_table] {
4
+ display: table;
5
+
4
6
  @each $name, $value in $cell-pad-list {
5
7
  &.#{$name} {
6
8
  width: 100%;
7
- thead, .thead {
8
- tr, .tr {
9
- th, .th {
9
+ thead, .pb_table_thead {
10
+ display: table-header-group;
11
+
12
+ tr, .pb_table_tr {
13
+ display: table-row;
14
+
15
+ th, .pb_table_th {
16
+ display: table-cell;
10
17
  padding: $cell-pad-md $cell-gutter;
11
18
 
12
19
  &:first-child {
@@ -18,9 +25,14 @@
18
25
  }
19
26
  }
20
27
  }
21
- tbody, .tbody {
22
- tr, .tr {
23
- td, .td {
28
+ tbody, .pb_table_tbody {
29
+ display: table-row-group;
30
+
31
+ tr, .pb_table_tr {
32
+ display: table-row;
33
+
34
+ td, .pb_table_td {
35
+ display: table-cell;
24
36
  border-color: $border_light;
25
37
  border-style: solid;
26
38
  border-width: 0 0 1px;
@@ -36,7 +48,8 @@
36
48
  }
37
49
  }
38
50
  &.data_table {
39
- thead tr th {
51
+ thead tr th,
52
+ .pb_table_thead .pb_table_tr .pb_table_th {
40
53
  padding-top: $cell-pad-sm;
41
54
  padding-bottom: $cell-pad-sm;
42
55
  &:first-child {
@@ -46,7 +59,8 @@
46
59
  padding-right: $cell-pad-sm;
47
60
  }
48
61
  }
49
- tbody tr td {
62
+ tbody tr td,
63
+ .pb_table_tbody .pb_table_tr .pb_table_td {
50
64
  padding-top: $cell-pad-sm;
51
65
  padding-bottom: $cell-pad-sm;
52
66
  &:first-child {
@@ -7,9 +7,9 @@
7
7
  border-spacing: 0;
8
8
  background: $white;
9
9
 
10
- thead, .thead {
11
- tr, .tr {
12
- th, .th {
10
+ thead, .pb_table_thead {
11
+ tr, .pb_table_tr {
12
+ th, .pb_table_th {
13
13
  border-color: $border_light;
14
14
  border-style: solid;
15
15
  border-width: 1px 0 1px 0;
@@ -26,9 +26,9 @@
26
26
  }
27
27
  }
28
28
 
29
- tbody, .tbody {
30
- tr, .tr {
31
- td, .td {
29
+ tbody, .pb_table_tbody {
30
+ tr, .pb_table_tr {
31
+ td, .pb_table_td {
32
32
  border-color: $border_light;
33
33
  border-style: solid;
34
34
  border-width: 0 0 1px 0;
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  &:last-child {
45
- td, .td {
45
+ td, .pb_table_td {
46
46
  border-width: 0 0 1px 0;
47
47
 
48
48
  &:first-child {