playbook_ui_docs 13.4.0.pre.alpha.play961turnoffdeprecationwarnings1171 → 13.5.0.pre.alpha.PLAY823globalpropoverflow1188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8f7b9a362079ef7b75e15608660685c83d53e602a9bcf2fae82e9363e1ccd93
4
- data.tar.gz: 1ea73592b97cb99494c5c8002102af8ad5ea8836a422c1e510eccdcbddd8aaa6
3
+ metadata.gz: 7abd9f96abf8ebd80ef7e95ce3dead505a110a46aa4461f0659aff9b954b7ddd
4
+ data.tar.gz: 0d4100663971defdcd86373701e7894e60b0c6ef8c4f2bbecb6b3f143505212d
5
5
  SHA512:
6
- metadata.gz: 93ed36d21a9a5a8d317b4f895ee5381937b0abf477592fb11246316c9a33baf588042f3c86a9832e5e1986036d007409e2a52197339f3d9375492ada4f5e5132
7
- data.tar.gz: c0f72fec404ee1d7abc0cfcdd9271640b571c401de71a2dd30753a9e5e7cd20a5c727c0425100ba66fd7abd228fc1616057302742b2df5cf91b5f176c84b6faf
6
+ metadata.gz: 4f895ba6750d766b39502ce7cfc1b21de4694801f71d95b79e8eb7efcf85de0e9d9cf05dcf79aca056d7a3b3e14869988b53102810ff09e25abfd257f76e646c
7
+ data.tar.gz: dd96e1887a695f020c9b014192e39dc92b0acc3b2277cd8b80185f471610feed7f7c28116b07e8d225b6b5a79044e5ce96de6e227ae747aad0bca610fdd80534
@@ -1,2 +1,2 @@
1
- You can individually align a pieace of table data, but a more practical use would be applied to align a column.
1
+ You can individually align a piece of table data, but a more practical use would be applied to align a column.
2
2
  In the table above the "Rating" column contents is centered and the "Money" column contents is right aligned.
@@ -1,2 +1,2 @@
1
- You can individually shift a pieace of table data, or shift an entire column.
1
+ You can individually shift a piece of table data, or shift an entire column.
2
2
  The first table shifts "Total" down, whereas the second table shifts the "Espresso Drinks" column contents up.
@@ -38,4 +38,41 @@
38
38
  <td>Value 3</td>
39
39
  </tr>
40
40
  </tbody>
41
- <% end %>
41
+ <% end %>
42
+
43
+ <%= pb_rails("table", props: { size: "sm", margin_bottom: "lg" }) do %>
44
+ <colgroup>
45
+ <%= pb_rails("background", props: { background_color: "error_subtle", tag: "col" }) %>
46
+ <%= pb_rails("background", props: { background_color: "card_light", tag: "col" }) %>
47
+ <%= pb_rails("background", props: { background_color: "warning_subtle", tag: "col" }) %>
48
+ </colgroup>
49
+ <%= pb_rails("background", props: { background_color: "card_light", tag: "thead" }) do %>
50
+ <tr>
51
+ <th>Column 1</th>
52
+ <th>Column 2</th>
53
+ <th>Column 3</th>
54
+ </tr>
55
+ <% end %>
56
+ <tbody>
57
+ <tr>
58
+ <td>Value 1</td>
59
+ <td>Value 2</td>
60
+ <td>Value 3</td>
61
+ </tr>
62
+ <tr>
63
+ <td>Value 1</td>
64
+ <td>Value 2</td>
65
+ <td>Value 3</td>
66
+ </tr>
67
+ <tr>
68
+ <td>Value 1</td>
69
+ <td>Value 2</td>
70
+ <td>Value 3</td>
71
+ </tr>
72
+ <tr>
73
+ <td>Value 1</td>
74
+ <td>Value 2</td>
75
+ <td>Value 3</td>
76
+ </tr>
77
+ </tbody>
78
+ <% end %>
@@ -6,57 +6,122 @@ import Background from "../../pb_background/_background"
6
6
  const TableWithBackgroundKit = (props) => {
7
7
  return (
8
8
  <div>
9
- <Table
10
- {...props}
11
- >
12
- <thead>
13
- <tr>
14
- <th>{'Column 1'}</th>
15
- <th>{'Column 2'}</th>
16
- <th>{'Column 3'}</th>
17
- </tr>
18
- </thead>
19
- <tbody>
20
- <tr>
21
- <td>{'Value 1'}</td>
22
- <td>{'Value 2'}</td>
23
- <td>{'Value 3'}</td>
24
- </tr>
9
+ <div>
10
+ <Table
11
+ {...props}
12
+ >
13
+ <thead>
14
+ <tr>
15
+ <th>{'Column 1'}</th>
16
+ <th>{'Column 2'}</th>
17
+ <th>{'Column 3'}</th>
18
+ </tr>
19
+ </thead>
20
+ <tbody>
21
+ <tr>
22
+ <td>{'Value 1'}</td>
23
+ <td>{'Value 2'}</td>
24
+ <td>{'Value 3'}</td>
25
+ </tr>
26
+ <Background
27
+ backgroundColor="error_subtle"
28
+ tag='tr'
29
+ >
30
+ <td>{'Value 1'}</td>
31
+ <td>{'Value 2'}</td>
32
+ <td>{'Value 3'}</td>
33
+ </Background>
34
+ <tr>
35
+ <td>{'Value 1'}</td>
36
+ <td>{'Value 2'}</td>
37
+ <td>{'Value 3'}</td>
38
+ </tr>
39
+ <tr>
40
+ <td>{'Value 1'}</td>
41
+ <td>{'Value 2'}</td>
42
+ <td>{'Value 3'}</td>
43
+ </tr>
44
+ <Background
45
+ backgroundColor="warning_subtle"
46
+ tag='tr'
47
+ >
48
+ <td>{'Value 1'}</td>
49
+ <td>{'Value 2'}</td>
50
+ <td>{'Value 3'}</td>
51
+ </Background>
52
+ <tr>
53
+ <td>{'Value 1'}</td>
54
+ <td>{'Value 2'}</td>
55
+ <td>{'Value 3'}</td>
56
+ </tr>
57
+ </tbody>
58
+ </Table>
59
+ </div>
60
+ <div>
61
+ <Table
62
+ paddingTop="sm"
63
+ {...props}
64
+ >
65
+ <colgroup>
66
+ <Background
67
+ backgroundColor="error_subtle"
68
+ tag='col'
69
+ />
70
+ <Background
71
+ backgroundColor="card_light"
72
+ tag='col'
73
+ />
74
+ <Background
75
+ backgroundColor="warning_subtle"
76
+ tag='col'
77
+ />
78
+ </colgroup>
25
79
  <Background
26
- backgroundColor="error_subtle"
27
- tag='tr'
80
+ backgroundColor="card_light"
81
+ tag='thead'
28
82
  >
29
- <td>{'Value 1'}</td>
30
- <td>{'Value 2'}</td>
31
- <td>{'Value 3'}</td>
83
+ <tr>
84
+ <th>{'Column 1'}</th>
85
+ <th>{'Column 2'}</th>
86
+ <th>{'Column 3'}</th>
87
+ </tr>
32
88
  </Background>
33
- <tr>
34
- <td>{'Value 1'}</td>
35
- <td>{'Value 2'}</td>
36
- <td>{'Value 3'}</td>
37
- </tr>
38
- <tr>
39
- <td>{'Value 1'}</td>
40
- <td>{'Value 2'}</td>
41
- <td>{'Value 3'}</td>
42
- </tr>
43
- <Background
44
- backgroundColor="warning_subtle"
45
- tag='tr'
46
- >
47
- <td>{'Value 1'}</td>
48
- <td>{'Value 2'}</td>
49
- <td>{'Value 3'}</td>
50
- </Background>
51
- <tr>
52
- <td>{'Value 1'}</td>
53
- <td>{'Value 2'}</td>
54
- <td>{'Value 3'}</td>
55
- </tr>
56
- </tbody>
57
- </Table>
89
+ <tbody>
90
+ <tr>
91
+ <td>{'Value 1'}</td>
92
+ <td>{'Value 2'}</td>
93
+ <td>{'Value 3'}</td>
94
+ </tr>
95
+ <tr>
96
+ <td>{'Value 1'}</td>
97
+ <td>{'Value 2'}</td>
98
+ <td>{'Value 3'}</td>
99
+ </tr>
100
+ <tr>
101
+ <td>{'Value 1'}</td>
102
+ <td>{'Value 2'}</td>
103
+ <td>{'Value 3'}</td>
104
+ </tr>
105
+ <tr>
106
+ <td>{'Value 1'}</td>
107
+ <td>{'Value 2'}</td>
108
+ <td>{'Value 3'}</td>
109
+ </tr>
110
+ <tr>
111
+ <td>{'Value 1'}</td>
112
+ <td>{'Value 2'}</td>
113
+ <td>{'Value 3'}</td>
114
+ </tr>
115
+ <tr>
116
+ <td>{'Value 1'}</td>
117
+ <td>{'Value 2'}</td>
118
+ <td>{'Value 3'}</td>
119
+ </tr>
120
+ </tbody>
121
+ </Table>
122
+ </div>
58
123
  </div>
59
124
  )
60
125
  }
61
126
 
62
- export default TableWithBackgroundKit
127
+ export default TableWithBackgroundKit