playbook_ui 13.19.0.pre.alpha.PBNTR211tablekitsubcomponentsreact2318 → 13.19.0.pre.alpha.play1141iconkitusinglibrary2264
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/index.js +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +4 -4
- data/app/pb_kits/playbook/pb_table/_table.tsx +67 -99
- data/app/pb_kits/playbook/pb_table/_table_row.tsx +47 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +25 -24
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -7
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -3
- data/app/pb_kits/playbook/pb_table/styles/_content.scss +3 -3
- data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +15 -15
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +3 -3
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +11 -11
- data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +15 -15
- data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +15 -15
- data/app/pb_kits/playbook/pb_table/styles/_reset.scss +3 -3
- data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +4 -4
- data/app/pb_kits/playbook/pb_table/styles/_sticky_header.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_striped.scss +4 -4
- data/app/pb_kits/playbook/pb_table/styles/_structure.scss +8 -22
- data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +7 -7
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +14 -14
- data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +15 -15
- data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +4 -3
- data/app/pb_kits/playbook/pb_table/table.html.erb +2 -12
- data/app/pb_kits/playbook/pb_table/table.rb +0 -3
- data/app/pb_kits/playbook/pb_table/table.test.js +1 -142
- data/app/pb_kits/playbook/pb_table/table_header.html.erb +39 -49
- data/app/pb_kits/playbook/pb_table/table_header.rb +1 -8
- data/app/pb_kits/playbook/pb_table/table_row.html.erb +7 -17
- data/app/pb_kits/playbook/pb_table/table_row.rb +1 -8
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/version.rb +1 -1
- metadata +3 -20
- data/app/pb_kits/playbook/pb_table/SubKits/_table_body.tsx +0 -64
- data/app/pb_kits/playbook/pb_table/SubKits/_table_cell.tsx +0 -66
- data/app/pb_kits/playbook/pb_table/SubKits/_table_head.tsx +0 -64
- data/app/pb_kits/playbook/pb_table/SubKits/_table_header.tsx +0 -66
- data/app/pb_kits/playbook/pb_table/SubKits/_table_row.tsx +0 -74
- data/app/pb_kits/playbook/pb_table/SubKits/index.tsx +0 -5
- data/app/pb_kits/playbook/pb_table/docs/_table_div.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_div.jsx +0 -47
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx +0 -47
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx +0 -48
- data/app/pb_kits/playbook/pb_table/table_body.html.erb +0 -17
- data/app/pb_kits/playbook/pb_table/table_body.rb +0 -15
- data/app/pb_kits/playbook/pb_table/table_cell.html.erb +0 -17
- data/app/pb_kits/playbook/pb_table/table_cell.rb +0 -17
- data/app/pb_kits/playbook/pb_table/table_head.html.erb +0 -17
- data/app/pb_kits/playbook/pb_table/table_head.rb +0 -15
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.19.0.pre.alpha.
|
4
|
+
version: 13.19.0.pre.alpha.play1141iconkitusinglibrary2264
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-03-
|
12
|
+
date: 2024-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -2220,14 +2220,9 @@ files:
|
|
2220
2220
|
- app/pb_kits/playbook/pb_stat_value/stat_value.html.erb
|
2221
2221
|
- app/pb_kits/playbook/pb_stat_value/stat_value.rb
|
2222
2222
|
- app/pb_kits/playbook/pb_stat_value/stat_value.test.js
|
2223
|
-
- app/pb_kits/playbook/pb_table/SubKits/_table_body.tsx
|
2224
|
-
- app/pb_kits/playbook/pb_table/SubKits/_table_cell.tsx
|
2225
|
-
- app/pb_kits/playbook/pb_table/SubKits/_table_head.tsx
|
2226
|
-
- app/pb_kits/playbook/pb_table/SubKits/_table_header.tsx
|
2227
|
-
- app/pb_kits/playbook/pb_table/SubKits/_table_row.tsx
|
2228
|
-
- app/pb_kits/playbook/pb_table/SubKits/index.tsx
|
2229
2223
|
- app/pb_kits/playbook/pb_table/_table.scss
|
2230
2224
|
- app/pb_kits/playbook/pb_table/_table.tsx
|
2225
|
+
- app/pb_kits/playbook/pb_table/_table_row.tsx
|
2231
2226
|
- app/pb_kits/playbook/pb_table/docs/_description.md
|
2232
2227
|
- app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb
|
2233
2228
|
- app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx
|
@@ -2250,8 +2245,6 @@ files:
|
|
2250
2245
|
- app/pb_kits/playbook/pb_table/docs/_table_data_table.md
|
2251
2246
|
- app/pb_kits/playbook/pb_table/docs/_table_disable_hover.html.erb
|
2252
2247
|
- app/pb_kits/playbook/pb_table/docs/_table_disable_hover.jsx
|
2253
|
-
- app/pb_kits/playbook/pb_table/docs/_table_div.html.erb
|
2254
|
-
- app/pb_kits/playbook/pb_table/docs/_table_div.jsx
|
2255
2248
|
- app/pb_kits/playbook/pb_table/docs/_table_header.html.erb
|
2256
2249
|
- app/pb_kits/playbook/pb_table/docs/_table_header.md
|
2257
2250
|
- app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb
|
@@ -2294,10 +2287,6 @@ files:
|
|
2294
2287
|
- app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
|
2295
2288
|
- app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
|
2296
2289
|
- app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
|
2297
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb
|
2298
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
|
2299
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
|
2300
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx
|
2301
2290
|
- app/pb_kits/playbook/pb_table/docs/example.yml
|
2302
2291
|
- app/pb_kits/playbook/pb_table/docs/index.js
|
2303
2292
|
- app/pb_kits/playbook/pb_table/index.ts
|
@@ -2324,12 +2313,6 @@ files:
|
|
2324
2313
|
- app/pb_kits/playbook/pb_table/table.html.erb
|
2325
2314
|
- app/pb_kits/playbook/pb_table/table.rb
|
2326
2315
|
- app/pb_kits/playbook/pb_table/table.test.js
|
2327
|
-
- app/pb_kits/playbook/pb_table/table_body.html.erb
|
2328
|
-
- app/pb_kits/playbook/pb_table/table_body.rb
|
2329
|
-
- app/pb_kits/playbook/pb_table/table_cell.html.erb
|
2330
|
-
- app/pb_kits/playbook/pb_table/table_cell.rb
|
2331
|
-
- app/pb_kits/playbook/pb_table/table_head.html.erb
|
2332
|
-
- app/pb_kits/playbook/pb_table/table_head.rb
|
2333
2316
|
- app/pb_kits/playbook/pb_table/table_header.html.erb
|
2334
2317
|
- app/pb_kits/playbook/pb_table/table_header.rb
|
2335
2318
|
- app/pb_kits/playbook/pb_table/table_row.html.erb
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import classnames from "classnames";
|
3
|
-
import {
|
4
|
-
buildAriaProps,
|
5
|
-
buildDataProps,
|
6
|
-
buildHtmlProps,
|
7
|
-
} from "../../utilities/props";
|
8
|
-
import { globalProps } from "../../utilities/globalProps";
|
9
|
-
|
10
|
-
type TableBodyPropTypes = {
|
11
|
-
aria?: { [key: string]: string };
|
12
|
-
children: React.ReactNode[] | React.ReactNode;
|
13
|
-
className: string;
|
14
|
-
data?: { [key: string]: string };
|
15
|
-
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
16
|
-
id?: string;
|
17
|
-
tag?: "table" | "div";
|
18
|
-
};
|
19
|
-
|
20
|
-
const TableBody = (props: TableBodyPropTypes) => {
|
21
|
-
const {
|
22
|
-
aria = {},
|
23
|
-
children,
|
24
|
-
className,
|
25
|
-
data = {},
|
26
|
-
htmlOptions = {},
|
27
|
-
id,
|
28
|
-
tag = "table",
|
29
|
-
} = props;
|
30
|
-
|
31
|
-
const ariaProps = buildAriaProps(aria);
|
32
|
-
const dataProps = buildDataProps(data);
|
33
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
34
|
-
const classes = classnames("pb_table_tbody", globalProps(props), className);
|
35
|
-
const isTableTag = tag === "table";
|
36
|
-
|
37
|
-
return (
|
38
|
-
<>
|
39
|
-
{isTableTag ? (
|
40
|
-
<tbody
|
41
|
-
{...ariaProps}
|
42
|
-
{...dataProps}
|
43
|
-
{...htmlProps}
|
44
|
-
className={classes}
|
45
|
-
id={id}
|
46
|
-
>
|
47
|
-
{children}
|
48
|
-
</tbody>
|
49
|
-
) : (
|
50
|
-
<div
|
51
|
-
{...ariaProps}
|
52
|
-
{...dataProps}
|
53
|
-
{...htmlProps}
|
54
|
-
className={classes}
|
55
|
-
id={id}
|
56
|
-
>
|
57
|
-
{children}
|
58
|
-
</div>
|
59
|
-
)}
|
60
|
-
</>
|
61
|
-
);
|
62
|
-
};
|
63
|
-
|
64
|
-
export default TableBody;
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import classnames from "classnames";
|
3
|
-
import {
|
4
|
-
buildAriaProps,
|
5
|
-
buildDataProps,
|
6
|
-
buildHtmlProps,
|
7
|
-
} from "../../utilities/props";
|
8
|
-
import { globalProps } from "../../utilities/globalProps";
|
9
|
-
|
10
|
-
type TableCellPropTypes = {
|
11
|
-
aria?: { [key: string]: string };
|
12
|
-
children: React.ReactNode[] | React.ReactNode;
|
13
|
-
className: string;
|
14
|
-
data?: { [key: string]: string };
|
15
|
-
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
16
|
-
id?: string;
|
17
|
-
tag?: "table" | "div";
|
18
|
-
text?: string
|
19
|
-
};
|
20
|
-
|
21
|
-
const TableCell = (props: TableCellPropTypes) => {
|
22
|
-
const {
|
23
|
-
aria = {},
|
24
|
-
children,
|
25
|
-
className,
|
26
|
-
data = {},
|
27
|
-
htmlOptions = {},
|
28
|
-
id,
|
29
|
-
tag = "table",
|
30
|
-
text,
|
31
|
-
} = props;
|
32
|
-
|
33
|
-
const ariaProps = buildAriaProps(aria);
|
34
|
-
const dataProps = buildDataProps(data);
|
35
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
36
|
-
const classes = classnames("pb_table_td", globalProps(props), className);
|
37
|
-
const isTableTag = tag === "table";
|
38
|
-
|
39
|
-
return (
|
40
|
-
<>
|
41
|
-
{isTableTag ? (
|
42
|
-
<td
|
43
|
-
{...ariaProps}
|
44
|
-
{...dataProps}
|
45
|
-
{...htmlProps}
|
46
|
-
className={classes}
|
47
|
-
id={id}
|
48
|
-
>
|
49
|
-
{text || children}
|
50
|
-
</td>
|
51
|
-
) : (
|
52
|
-
<div
|
53
|
-
{...ariaProps}
|
54
|
-
{...dataProps}
|
55
|
-
{...htmlProps}
|
56
|
-
className={classes}
|
57
|
-
id={id}
|
58
|
-
>
|
59
|
-
{text || children}
|
60
|
-
</div>
|
61
|
-
)}
|
62
|
-
</>
|
63
|
-
);
|
64
|
-
};
|
65
|
-
|
66
|
-
export default TableCell;
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import classnames from "classnames";
|
3
|
-
import {
|
4
|
-
buildAriaProps,
|
5
|
-
buildDataProps,
|
6
|
-
buildHtmlProps,
|
7
|
-
} from "../../utilities/props";
|
8
|
-
import { globalProps } from "../../utilities/globalProps";
|
9
|
-
|
10
|
-
type TableHeadPropTypes = {
|
11
|
-
aria?: { [key: string]: string };
|
12
|
-
children: React.ReactNode[] | React.ReactNode;
|
13
|
-
className: string;
|
14
|
-
data?: { [key: string]: string };
|
15
|
-
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
16
|
-
id?: string;
|
17
|
-
tag?: "table" | "div";
|
18
|
-
};
|
19
|
-
|
20
|
-
const TableHead = (props: TableHeadPropTypes) => {
|
21
|
-
const {
|
22
|
-
aria = {},
|
23
|
-
children,
|
24
|
-
className,
|
25
|
-
data = {},
|
26
|
-
htmlOptions = {},
|
27
|
-
id,
|
28
|
-
tag = "table",
|
29
|
-
} = props;
|
30
|
-
|
31
|
-
const ariaProps = buildAriaProps(aria);
|
32
|
-
const dataProps = buildDataProps(data);
|
33
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
34
|
-
const classes = classnames("pb_table_thead", globalProps(props), className);
|
35
|
-
const isTableTag = tag === "table";
|
36
|
-
|
37
|
-
return (
|
38
|
-
<>
|
39
|
-
{isTableTag ? (
|
40
|
-
<thead
|
41
|
-
{...ariaProps}
|
42
|
-
{...dataProps}
|
43
|
-
{...htmlProps}
|
44
|
-
className={classes}
|
45
|
-
id={id}
|
46
|
-
>
|
47
|
-
{children}
|
48
|
-
</thead>
|
49
|
-
) : (
|
50
|
-
<div
|
51
|
-
{...ariaProps}
|
52
|
-
{...dataProps}
|
53
|
-
{...htmlProps}
|
54
|
-
className={classes}
|
55
|
-
id={id}
|
56
|
-
>
|
57
|
-
{children}
|
58
|
-
</div>
|
59
|
-
)}
|
60
|
-
</>
|
61
|
-
);
|
62
|
-
};
|
63
|
-
|
64
|
-
export default TableHead;
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import classnames from "classnames";
|
3
|
-
import {
|
4
|
-
buildAriaProps,
|
5
|
-
buildDataProps,
|
6
|
-
buildHtmlProps,
|
7
|
-
} from "../../utilities/props";
|
8
|
-
import { globalProps } from "../../utilities/globalProps";
|
9
|
-
|
10
|
-
type TableHeaderPropTypes = {
|
11
|
-
aria?: { [key: string]: string };
|
12
|
-
children: React.ReactNode[] | React.ReactNode;
|
13
|
-
className: string;
|
14
|
-
data?: { [key: string]: string };
|
15
|
-
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
16
|
-
id?: string;
|
17
|
-
tag?: "table" | "div";
|
18
|
-
text?: string;
|
19
|
-
};
|
20
|
-
|
21
|
-
const TableHeader = (props: TableHeaderPropTypes) => {
|
22
|
-
const {
|
23
|
-
aria = {},
|
24
|
-
children,
|
25
|
-
className,
|
26
|
-
data = {},
|
27
|
-
htmlOptions = {},
|
28
|
-
id,
|
29
|
-
tag = "table",
|
30
|
-
text
|
31
|
-
} = props;
|
32
|
-
|
33
|
-
const ariaProps = buildAriaProps(aria);
|
34
|
-
const dataProps = buildDataProps(data);
|
35
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
36
|
-
const classes = classnames("pb_table_th", globalProps(props), className);
|
37
|
-
const isTableTag = tag === "table";
|
38
|
-
|
39
|
-
return (
|
40
|
-
<>
|
41
|
-
{isTableTag ? (
|
42
|
-
<th
|
43
|
-
{...ariaProps}
|
44
|
-
{...dataProps}
|
45
|
-
{...htmlProps}
|
46
|
-
className={classes}
|
47
|
-
id={id}
|
48
|
-
>
|
49
|
-
{text || children}
|
50
|
-
</th>
|
51
|
-
) : (
|
52
|
-
<div
|
53
|
-
{...ariaProps}
|
54
|
-
{...dataProps}
|
55
|
-
{...htmlProps}
|
56
|
-
className={classes}
|
57
|
-
id={id}
|
58
|
-
>
|
59
|
-
{text || children}
|
60
|
-
</div>
|
61
|
-
)}
|
62
|
-
</>
|
63
|
-
);
|
64
|
-
};
|
65
|
-
|
66
|
-
export default TableHeader;
|
@@ -1,74 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import classnames from "classnames";
|
3
|
-
import {
|
4
|
-
buildAriaProps,
|
5
|
-
buildCss,
|
6
|
-
buildDataProps,
|
7
|
-
buildHtmlProps,
|
8
|
-
} from "../../utilities/props";
|
9
|
-
import { globalProps } from "../../utilities/globalProps";
|
10
|
-
|
11
|
-
type TableRowPropTypes = {
|
12
|
-
aria?: { [key: string]: string };
|
13
|
-
children: React.ReactNode[] | React.ReactNode;
|
14
|
-
className: string;
|
15
|
-
data?: { [key: string]: string };
|
16
|
-
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
17
|
-
id?: string;
|
18
|
-
sideHighlightColor: string;
|
19
|
-
tag?: "table" | "div";
|
20
|
-
};
|
21
|
-
|
22
|
-
const TableRow = (props: TableRowPropTypes) => {
|
23
|
-
const {
|
24
|
-
aria = {},
|
25
|
-
children,
|
26
|
-
className,
|
27
|
-
data = {},
|
28
|
-
htmlOptions = {},
|
29
|
-
id,
|
30
|
-
sideHighlightColor = "none",
|
31
|
-
tag = "table",
|
32
|
-
} = props;
|
33
|
-
|
34
|
-
const ariaProps = buildAriaProps(aria);
|
35
|
-
const dataProps = buildDataProps(data);
|
36
|
-
const htmlProps = buildHtmlProps(htmlOptions);
|
37
|
-
const sideHighlightClass =
|
38
|
-
sideHighlightColor != "" ? `side_highlight_${sideHighlightColor}` : null;
|
39
|
-
const classes = classnames(
|
40
|
-
buildCss("pb_table_row_kit", sideHighlightClass),
|
41
|
-
"pb_table_tr",
|
42
|
-
globalProps(props),
|
43
|
-
className
|
44
|
-
);
|
45
|
-
const isTableTag = tag === "table";
|
46
|
-
|
47
|
-
return (
|
48
|
-
<>
|
49
|
-
{isTableTag ? (
|
50
|
-
<tr
|
51
|
-
{...ariaProps}
|
52
|
-
{...dataProps}
|
53
|
-
{...htmlProps}
|
54
|
-
className={classes}
|
55
|
-
id={id}
|
56
|
-
>
|
57
|
-
{children}
|
58
|
-
</tr>
|
59
|
-
) : (
|
60
|
-
<div
|
61
|
-
{...ariaProps}
|
62
|
-
{...dataProps}
|
63
|
-
{...htmlProps}
|
64
|
-
className={classes}
|
65
|
-
id={id}
|
66
|
-
>
|
67
|
-
{children}
|
68
|
-
</div>
|
69
|
-
)}
|
70
|
-
</>
|
71
|
-
);
|
72
|
-
};
|
73
|
-
|
74
|
-
export default TableRow;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { default as TableHead } from './_table_head';
|
2
|
-
export { default as TableHeader } from './_table_header';
|
3
|
-
export { default as TableBody } from './_table_body';
|
4
|
-
export { default as TableRow } from './_table_row';
|
5
|
-
export { default as TableCell } from './_table_cell';
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= pb_rails("table", props: { size: "sm", tag: "div" }) do %>
|
2
|
-
<div class="pb_table_thead">
|
3
|
-
<div class="pb_table_tr">
|
4
|
-
<div class="pb_table_th">Column 1</div>
|
5
|
-
<div class="pb_table_th">Column 2</div>
|
6
|
-
<div class="pb_table_th">Column 3</div>
|
7
|
-
<div class="pb_table_th">Column 4</div>
|
8
|
-
<div class="pb_table_th">Column 5</div>
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
<div class="pb_table_tbody">
|
12
|
-
<div class="pb_table_tr">
|
13
|
-
<div class="pb_table_td">Value 1</div>
|
14
|
-
<div class="pb_table_td">Value 2</div>
|
15
|
-
<div class="pb_table_td">Value 3</div>
|
16
|
-
<div class="pb_table_td">Value 4</div>
|
17
|
-
<div class="pb_table_td">Value 5</div>
|
18
|
-
</div>
|
19
|
-
<div class="pb_table_tr">
|
20
|
-
<div class="pb_table_td">Value 1</div>
|
21
|
-
<div class="pb_table_td">Value 2</div>
|
22
|
-
<div class="pb_table_td">Value 3</div>
|
23
|
-
<div class="pb_table_td">Value 4</div>
|
24
|
-
<div class="pb_table_td">Value 5</div>
|
25
|
-
</div>
|
26
|
-
<div class="pb_table_tr">
|
27
|
-
<div class="pb_table_td">Value 1</div>
|
28
|
-
<div class="pb_table_td">Value 2</div>
|
29
|
-
<div class="pb_table_td">Value 3</div>
|
30
|
-
<div class="pb_table_td">Value 4</div>
|
31
|
-
<div class="pb_table_td">Value 5</div>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
<% end %>
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Table from '../_table'
|
3
|
-
|
4
|
-
const TableDiv = (props) => {
|
5
|
-
return (
|
6
|
-
<Table
|
7
|
-
size="sm"
|
8
|
-
tag="div"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<div className="pb_table_thead">
|
12
|
-
<div className="pb_table_tr">
|
13
|
-
<div className="pb_table_th">{'Column 1'}</div>
|
14
|
-
<div className="pb_table_th">{'Column 2'}</div>
|
15
|
-
<div className="pb_table_th">{'Column 3'}</div>
|
16
|
-
<div className="pb_table_th">{'Column 4'}</div>
|
17
|
-
<div className="pb_table_th">{'Column 5'}</div>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
<div className="pb_table_tbody">
|
21
|
-
<div className="pb_table_tr">
|
22
|
-
<div className="pb_table_td">{'Value 1'}</div>
|
23
|
-
<div className="pb_table_td">{'Value 2'}</div>
|
24
|
-
<div className="pb_table_td">{'Value 3'}</div>
|
25
|
-
<div className="pb_table_td">{'Value 4'}</div>
|
26
|
-
<div className="pb_table_td">{'Value 5'}</div>
|
27
|
-
</div>
|
28
|
-
<div className="pb_table_tr">
|
29
|
-
<div className="pb_table_td">{'Value 1'}</div>
|
30
|
-
<div className="pb_table_td">{'Value 2'}</div>
|
31
|
-
<div className="pb_table_td">{'Value 3'}</div>
|
32
|
-
<div className="pb_table_td">{'Value 4'}</div>
|
33
|
-
<div className="pb_table_td">{'Value 5'}</div>
|
34
|
-
</div>
|
35
|
-
<div className="pb_table_tr">
|
36
|
-
<div className="pb_table_td">{'Value 1'}</div>
|
37
|
-
<div className="pb_table_td">{'Value 2'}</div>
|
38
|
-
<div className="pb_table_td">{'Value 3'}</div>
|
39
|
-
<div className="pb_table_td">{'Value 4'}</div>
|
40
|
-
<div className="pb_table_td">{'Value 5'}</div>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
</Table>
|
44
|
-
)
|
45
|
-
}
|
46
|
-
|
47
|
-
export default TableDiv
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= pb_rails("table", props: { size: "sm" }) do %>
|
2
|
-
<%= pb_rails("table/table_head") do %>
|
3
|
-
<%= pb_rails("table/table_row") do %>
|
4
|
-
<%= pb_rails("table/table_header", props: { text: "Column 1"}) %>
|
5
|
-
<%= pb_rails("table/table_header", props: { text: "Column 2"}) %>
|
6
|
-
<%= pb_rails("table/table_header", props: { text: "Column 3"}) %>
|
7
|
-
<%= pb_rails("table/table_header", props: { text: "Column 4"}) %>
|
8
|
-
<%= pb_rails("table/table_header", props: { text: "Column 5"}) %>
|
9
|
-
<% end %>
|
10
|
-
<% end %>
|
11
|
-
<%= pb_rails("table/table_body") do %>
|
12
|
-
<%= pb_rails("table/table_row") do %>
|
13
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
14
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
15
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
16
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
17
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
18
|
-
<% end %>
|
19
|
-
<%= pb_rails("table/table_row") do %>
|
20
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
21
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
22
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
23
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
24
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
25
|
-
<% end %>
|
26
|
-
<%= pb_rails("table/table_row") do %>
|
27
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
28
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
29
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
30
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
31
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
32
|
-
<% end %>
|
33
|
-
<% end %>
|
34
|
-
<% end %>
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Table from '../_table'
|
4
|
-
|
5
|
-
const TableWithSubcomponents = (props) => {
|
6
|
-
return (
|
7
|
-
<Table
|
8
|
-
size="sm"
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<Table.Head>
|
12
|
-
<Table.Row>
|
13
|
-
<Table.Header>{'Column 1'}</Table.Header>
|
14
|
-
<Table.Header>{'Column 2'}</Table.Header>
|
15
|
-
<Table.Header>{'Column 3'}</Table.Header>
|
16
|
-
<Table.Header>{'Column 4'}</Table.Header>
|
17
|
-
<Table.Header>{'Column 5'}</Table.Header>
|
18
|
-
</Table.Row>
|
19
|
-
</Table.Head>
|
20
|
-
<Table.Body>
|
21
|
-
<Table.Row>
|
22
|
-
<Table.Cell>{'Value 1'}</Table.Cell>
|
23
|
-
<Table.Cell>{'Value 2'}</Table.Cell>
|
24
|
-
<Table.Cell>{'Value 3'}</Table.Cell>
|
25
|
-
<Table.Cell>{'Value 4'}</Table.Cell>
|
26
|
-
<Table.Cell>{'Value 5'}</Table.Cell>
|
27
|
-
</Table.Row>
|
28
|
-
<Table.Row>
|
29
|
-
<Table.Cell>{'Value 1'}</Table.Cell>
|
30
|
-
<Table.Cell>{'Value 2'}</Table.Cell>
|
31
|
-
<Table.Cell>{'Value 3'}</Table.Cell>
|
32
|
-
<Table.Cell>{'Value 4'}</Table.Cell>
|
33
|
-
<Table.Cell>{'Value 5'}</Table.Cell>
|
34
|
-
</Table.Row>
|
35
|
-
<Table.Row>
|
36
|
-
<Table.Cell>{'Value 1'}</Table.Cell>
|
37
|
-
<Table.Cell>{'Value 2'}</Table.Cell>
|
38
|
-
<Table.Cell>{'Value 3'}</Table.Cell>
|
39
|
-
<Table.Cell>{'Value 4'}</Table.Cell>
|
40
|
-
<Table.Cell>{'Value 5'}</Table.Cell>
|
41
|
-
</Table.Row>
|
42
|
-
</Table.Body>
|
43
|
-
</Table>
|
44
|
-
)
|
45
|
-
}
|
46
|
-
|
47
|
-
export default TableWithSubcomponents
|
@@ -1,34 +0,0 @@
|
|
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 %>
|
@@ -1,48 +0,0 @@
|
|
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
|