playbook_ui_docs 14.13.0.pre.alpha.advsncedtablefix6185 → 14.13.0.pre.alpha.pbntr799collapsiblerowswithcustomclick6117
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 +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +26 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +10 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +16 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +35 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +42 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +13 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +15 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +0 -7
- data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -1
- data/dist/playbook-doc.js +1 -1
- metadata +13 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +0 -75
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx +0 -18
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46f220029d479ed4d6e5b795ef54adde354a008090d0e52d034497a17b1fcfee
|
4
|
+
data.tar.gz: 44d3003dc1e8b1807b52e6f5f121ed9de2f0dc1f34fd3eb5e53f3f68e4b24da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f93e0a74adcfc807bfd344da86db77993c98ed5d2d9643605150e25deb2115aa4d5096c352f2613c9238f4abb791ffc665713efb13e1bc16e5d868dba30eea
|
7
|
+
data.tar.gz: 604444865002cb0d43fdf5005d8018a9778898ece5a31003f59a69f9aa3025a71b87fa799b49eb808ea63582a1a00edb4484538ee2405843ca43a7f327345955
|
@@ -30,7 +30,6 @@ examples:
|
|
30
30
|
- advanced_table_pagination_with_props: Pagination Props
|
31
31
|
- advanced_table_column_headers: Multi-Header Columns
|
32
32
|
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
33
|
-
- advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
|
34
33
|
# - advanced_table_no_subrows: Table with No Subrows
|
35
34
|
- advanced_table_selectable_rows: Selectable Rows
|
36
35
|
- advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
|
@@ -19,5 +19,4 @@ export { default as AdvancedTableSelectableRowsNoSubrows } from './_advanced_tab
|
|
19
19
|
export { default as AdvancedTableNoSubrows } from './_advanced_table_no_subrows.jsx'
|
20
20
|
export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_selectable_rows_header.jsx'
|
21
21
|
export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
|
22
|
-
export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
|
23
|
-
export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
|
22
|
+
export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Add Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
image_alt: "Add Sophia Carden",
|
7
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
8
|
+
action: "add",
|
9
|
+
}) %>
|
10
|
+
|
11
|
+
<%= pb_rails("avatar_action_button", props: {
|
12
|
+
link_aria_label: "Remove Sophia Carden",
|
13
|
+
name: "Sophia Carden",
|
14
|
+
image_alt: "Remove Sophia Carden",
|
15
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
16
|
+
action: "remove",
|
17
|
+
}) %>
|
18
|
+
|
19
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonActions = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
action="add"
|
9
|
+
imageAlt="Add Sophia Carden"
|
10
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
11
|
+
linkAriaLabel="Add Sophia Carden"
|
12
|
+
name="Sophia Carden"
|
13
|
+
{...props}
|
14
|
+
/>
|
15
|
+
<AvatarActionButton
|
16
|
+
action="remove"
|
17
|
+
imageAlt="Remove Sophia Carden"
|
18
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
19
|
+
linkAriaLabel="Remove Sophia Carden"
|
20
|
+
name="Sophia Carden"
|
21
|
+
{...props}
|
22
|
+
/>
|
23
|
+
</div>
|
24
|
+
)
|
25
|
+
|
26
|
+
export default AvatarActionButtonActions
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonDefault = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
imageAlt="Sophia Carden"
|
9
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
10
|
+
linkAriaLabel="Sophia Carden"
|
11
|
+
name="Sophia Carden"
|
12
|
+
{...props}
|
13
|
+
/>
|
14
|
+
</div>
|
15
|
+
)
|
16
|
+
|
17
|
+
export default AvatarActionButtonDefault
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonOnClick = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
imageAlt="Sophia Carden"
|
9
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
10
|
+
linkAriaLabel="Alert Sophia Carden"
|
11
|
+
linkUrl="https://www.google.com"
|
12
|
+
name="Sophia Carden"
|
13
|
+
onClick={() => alert('clicked!')}
|
14
|
+
{...props}
|
15
|
+
/>
|
16
|
+
</div>
|
17
|
+
)
|
18
|
+
|
19
|
+
export default AvatarActionButtonOnClick
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Alert Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
id: "clickable",
|
7
|
+
link_url: "http://www.google.com",
|
8
|
+
image_alt: "Sophia Carden",
|
9
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
10
|
+
}) %>
|
11
|
+
|
12
|
+
<%= javascript_tag do %>
|
13
|
+
document.querySelector('#clickable').addEventListener('click', () => alert('clickable clicked!'))
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
</div>
|
data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
image_alt: "Sophia Carden",
|
7
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
8
|
+
placement: "bottom_left"
|
9
|
+
}) %>
|
10
|
+
|
11
|
+
<%= pb_rails("avatar_action_button", props: {
|
12
|
+
link_aria_label: "Sophia Carden",
|
13
|
+
name: "Sophia Carden",
|
14
|
+
image_alt: "Sophia Carden",
|
15
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
16
|
+
placement: "bottom_right"
|
17
|
+
}) %>
|
18
|
+
|
19
|
+
<%= pb_rails("avatar_action_button", props: {
|
20
|
+
link_aria_label: "Sophia Carden",
|
21
|
+
name: "Sophia Carden",
|
22
|
+
image_alt: "Sophia Carden",
|
23
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
24
|
+
placement: "top_left"
|
25
|
+
}) %>
|
26
|
+
|
27
|
+
<%= pb_rails("avatar_action_button", props: {
|
28
|
+
link_aria_label: "Sophia Carden",
|
29
|
+
name: "Sophia Carden",
|
30
|
+
image_alt: "Sophia Carden",
|
31
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
32
|
+
placement: "top_right"
|
33
|
+
}) %>
|
34
|
+
|
35
|
+
</div>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonPlacement = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
imageAlt="Sophia Carden"
|
9
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
10
|
+
linkAriaLabel="Sophia Carden"
|
11
|
+
name="Sophia Carden"
|
12
|
+
placement="bottom_left"
|
13
|
+
{...props}
|
14
|
+
/>
|
15
|
+
<AvatarActionButton
|
16
|
+
imageAlt="Sophia Carden"
|
17
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
18
|
+
linkAriaLabel="Sophia Carden"
|
19
|
+
name="Sophia Carden"
|
20
|
+
placement="bottom_right"
|
21
|
+
{...props}
|
22
|
+
/>
|
23
|
+
<AvatarActionButton
|
24
|
+
imageAlt="Sophia Carden"
|
25
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
26
|
+
linkAriaLabel="Sophia Carden"
|
27
|
+
name="Sophia Carden"
|
28
|
+
placement="top_left"
|
29
|
+
{...props}
|
30
|
+
/>
|
31
|
+
<AvatarActionButton
|
32
|
+
imageAlt="Sophia Carden"
|
33
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
34
|
+
linkAriaLabel="Sophia Carden"
|
35
|
+
name="Sophia Carden"
|
36
|
+
placement="top_right"
|
37
|
+
{...props}
|
38
|
+
/>
|
39
|
+
</div>
|
40
|
+
)
|
41
|
+
|
42
|
+
export default AvatarActionButtonPlacement
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
link_url: "http://www.google.com",
|
7
|
+
image_alt: "Sophia Carden",
|
8
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
9
|
+
tooltip_text: "Tooltip Text",
|
10
|
+
tooltip_id: "avatar_1",
|
11
|
+
}) %>
|
12
|
+
|
13
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
examples:
|
2
|
+
|
3
|
+
rails:
|
4
|
+
- avatar_action_button_default: Default
|
5
|
+
- avatar_action_button_placement: Placement
|
6
|
+
- avatar_action_button_actions: Actions
|
7
|
+
- avatar_action_button_onclick: On Click
|
8
|
+
- avatar_action_button_tooltip: Tooltip
|
9
|
+
|
10
|
+
|
11
|
+
react:
|
12
|
+
- avatar_action_button_default: Default
|
13
|
+
- avatar_action_button_placement: Placement
|
14
|
+
- avatar_action_button_actions: Actions
|
15
|
+
- avatar_action_button_on_click: On Click
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { default as AvatarActionButtonDefault } from './_avatar_action_button_default.jsx'
|
2
|
+
export { default as AvatarActionButtonPlacement } from './_avatar_action_button_placement.jsx'
|
3
|
+
export { default as AvatarActionButtonActions } from './_avatar_action_button_actions.jsx'
|
4
|
+
export { default as AvatarActionButtonOnClick } from './_avatar_action_button_on_click.jsx'
|
@@ -10,4 +10,3 @@ export { default as BarGraphStacked } from './_bar_graph_stacked.jsx'
|
|
10
10
|
export { default as BarGraphNegativeNumbers } from './_bar_graph_negative_numbers.jsx'
|
11
11
|
export { default as BarGraphSecondaryYAxis } from './_bar_graph_secondary_y_axis.jsx'
|
12
12
|
export { default as BarGraphHorizontal } from './_bar_graph_horizontal.jsx'
|
13
|
-
export { default as BarGraphPbStyles } from './_bar_graph_pb_styles.jsx'
|
@@ -3,11 +3,9 @@ examples:
|
|
3
3
|
rails:
|
4
4
|
- progress_pills_default: Default
|
5
5
|
- progress_pills_status: Status
|
6
|
-
- progress_pills_full_width: Full Container Width
|
7
6
|
|
8
7
|
|
9
8
|
|
10
9
|
react:
|
11
10
|
- progress_pills_default: Default
|
12
11
|
- progress_pills_status: Status
|
13
|
-
- progress_pills_full_width: Full Container Width
|