playbook_ui_docs 14.10.0.pre.alpha.play16825301 → 14.10.0.pre.rc.0
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/_advanced_table_beta_sort.html.erb +3 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -4
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +49 -53
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +36 -29
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +0 -6
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -39
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +0 -90
- data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.html.erb +0 -8
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +0 -9
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx +1 -3
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx +1 -4
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx +1 -1
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +5 -25
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.html.erb +1 -17
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +0 -15
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.md +1 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +2 -8
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +3 -9
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +1 -4
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -9
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -7
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.html.erb +5 -4
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.jsx +4 -4
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.md +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +2 -9
- data/dist/playbook-doc.js +1 -1
- metadata +4 -49
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +0 -36
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb +0 -43
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx +0 -60
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb +0 -58
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx +0 -74
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -50
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +0 -57
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +0 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json +0 -5600
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.md +0 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.html.erb +0 -10
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +0 -42
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_description.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.html.erb +0 -9
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.html.erb +0 -7
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.html.erb +0 -119
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +0 -174
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.html.erb +0 -15
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width_rails.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.html.erb +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.html.erb +0 -63
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +0 -97
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +0 -88
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +0 -77
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +0 -87
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +0 -5
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +0 -75
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +0 -108
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +0 -94
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md +0 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx +0 -83
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx +0 -120
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +0 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx +0 -106
- /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_border_radius_react.md → _skeleton_loading_border_radius.md} +0 -0
- /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_height_width_react.md → _skeleton_loading_height_width.md} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c66ed8e52fddcdc129f13bada17484e99d4960f7fcc69945ce5b434993bffd
|
4
|
+
data.tar.gz: 2d52ca11b3fd6ed8260d73e1f3c8b09ac71feef593016680d293d594f788dd2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c0439c5ad64372cbb1edf660902e66f2a9d09415bfb7457734ba05c0f10848ed08184c634f4d748979525c1c43b4db60c18c2df4b1d7c0f54832c5e5e92937
|
7
|
+
data.tar.gz: ba275df94e320f1ef3aee4a821d549dbe6b9abee3cf99b389a8a448bdd8fed1d345262d1088faf593c8d0868dccb4b1c3102cfb9702163800be5247ee51a357a
|
@@ -49,9 +49,11 @@
|
|
49
49
|
label: "Graduated Students",
|
50
50
|
}
|
51
51
|
]
|
52
|
+
|
53
|
+
subrow_headers = ["Quarter", "Month", "Day"]
|
52
54
|
%>
|
53
55
|
|
54
56
|
<%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions }) do %>
|
55
57
|
<%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
|
56
|
-
<%= pb_rails("advanced_table/table_body", props: { id: "beta_sort", table_data: @table_data, column_definitions: column_definitions, enable_toggle_expansion: "all" }) %>
|
58
|
+
<%= pb_rails("advanced_table/table_body", props: { id: "beta_sort", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
|
57
59
|
<% end %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb
CHANGED
@@ -36,5 +36,5 @@
|
|
36
36
|
|
37
37
|
<%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions }) do %>
|
38
38
|
<%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
|
39
|
-
<%= pb_rails("advanced_table/table_body", props: { id: "
|
39
|
+
<%= pb_rails("advanced_table/table_body", props: { id: "subrow_headers", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
|
40
40
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
`subrow_headers` is an optional prop that if present will add header rows at each level of the nested data. The prop takes an array of strings, each string being the text for each header row. The array of strings must be in the order in which they need to be rendered in the UI according to depth.
|
2
2
|
|
3
|
-
`enable_toggle_expansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enable_toggle_expansion` is a string that can be "all", "header" or "none". If set to "all", the toggle
|
3
|
+
`enable_toggle_expansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enable_toggle_expansion` is a string that can be "all", "header" or "none". If set to "all", the toggle exapansion button will appear in the table header as well as in the subRow headers. If set to "header" button will only appear in header and NOT in subRow headers. This is set to "header" by default.
|
@@ -2,12 +2,8 @@ examples:
|
|
2
2
|
rails:
|
3
3
|
- advanced_table_beta: Default (Required Props)
|
4
4
|
- advanced_table_beta_subrow_headers: SubRow Headers
|
5
|
-
- advanced_table_collapsible_trail_rails: Collapsible Trail
|
6
5
|
- advanced_table_beta_sort: Enable Sorting
|
7
6
|
- advanced_table_custom_cell_rails: Custom Components for Cells
|
8
|
-
- advanced_table_column_headers: Multi-Header Columns
|
9
|
-
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
10
|
-
|
11
7
|
|
12
8
|
react:
|
13
9
|
- advanced_table_default: Default (Required Props)
|
@@ -22,7 +18,3 @@ examples:
|
|
22
18
|
- advanced_table_inline_row_loading: Inline Row Loading
|
23
19
|
- advanced_table_responsive: Responsive Tables
|
24
20
|
- advanced_table_custom_cell: Custom Components for Cells
|
25
|
-
- advanced_table_pagination: Pagination
|
26
|
-
- advanced_table_pagination_with_props: Pagination Props
|
27
|
-
- advanced_table_column_headers: Multi-Header Columns
|
28
|
-
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
@@ -10,7 +10,3 @@ export { default as AdvancedTableTableProps } from './_advanced_table_table_prop
|
|
10
10
|
export { default as AdvancedTableInlineRowLoading } from './_advanced_table_inline_row_loading.jsx'
|
11
11
|
export { default as AdvancedTableResponsive } from './_advanced_table_responsive.jsx'
|
12
12
|
export { default as AdvancedTableCustomCell } from './_advanced_table_custom_cell.jsx'
|
13
|
-
export { default as AdvancedTablePagination } from './_advanced_table_pagination.jsx'
|
14
|
-
export { default as AdvancedTablePaginationWithProps } from './_advanced_table_pagination_with_props.jsx'
|
15
|
-
export { default as AdvancedTableColumnHeaders } from './_advanced_table_column_headers.jsx'
|
16
|
-
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
@@ -1,70 +1,66 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
import ReactDOMServer from 'react-dom/server'
|
3
|
-
import BarGraph from '../_bar_graph'
|
4
|
-
import Icon from '../../pb_icon/_icon'
|
5
2
|
|
6
|
-
|
7
|
-
{
|
8
|
-
name: 'Role',
|
9
|
-
data: [0, 200, 300, 654, 656],
|
10
|
-
},
|
11
|
-
{
|
12
|
-
name: 'Company',
|
13
|
-
data: [150, 524, 320, 440, 500],
|
14
|
-
},
|
15
|
-
]
|
3
|
+
import BarGraph from '../_bar_graph'
|
16
4
|
|
17
|
-
const
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
}
|
5
|
+
const chartData = [{
|
6
|
+
name: 'Installation',
|
7
|
+
data: [1475, 200, 3000, 654, 656],
|
8
|
+
}, {
|
9
|
+
name: 'Manufacturing',
|
10
|
+
data: [4434, 524, 2320, 440, 500],
|
11
|
+
}, {
|
12
|
+
name: 'Sales & Distribution',
|
13
|
+
data: [3387, 743, 1344, 434, 440],
|
14
|
+
}, {
|
15
|
+
name: 'Project Development',
|
16
|
+
data: [3227, 878, 999, 780, 1000],
|
17
|
+
}, {
|
18
|
+
name: 'Other',
|
19
|
+
data: [1111, 677, 3245, 500, 200],
|
20
|
+
}]
|
24
21
|
|
25
22
|
const barGraphOptions = {
|
26
|
-
|
27
|
-
|
23
|
+
subtitle: {
|
24
|
+
text: "Overwritten subtitle",
|
25
|
+
style: {
|
26
|
+
color: "red"
|
27
|
+
}
|
28
28
|
},
|
29
29
|
xAxis: {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
49
|
-
|
50
|
-
fontSize: '1.4em',
|
51
|
-
},
|
52
|
-
y: 42,
|
53
|
-
},
|
54
|
-
},
|
55
|
-
legend: {
|
56
|
-
itemMarginTop: 62,
|
57
|
-
},
|
30
|
+
labels: {
|
31
|
+
useHTML: true,
|
32
|
+
formatter: function() {
|
33
|
+
switch (this.value) {
|
34
|
+
case 'Jan':
|
35
|
+
return `<i class="far fa-apple-whole"></i> ${this.value}`
|
36
|
+
case 'Feb':
|
37
|
+
return `<i class="far fa-strawberry"></i> ${this.value}`
|
38
|
+
case 'Mar':
|
39
|
+
return `<i class="far fa-lemon"></i> ${this.value}`
|
40
|
+
case 'Apr':
|
41
|
+
return `<i class="far fa-pear"></i> ${this.value}`
|
42
|
+
case 'May':
|
43
|
+
return `<i class="far fa-peach"></i> ${this.value}`
|
44
|
+
default:
|
45
|
+
return ''
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
58
50
|
}
|
59
51
|
|
60
|
-
const BarGraphCustom = () => (
|
52
|
+
const BarGraphCustom = (props) => (
|
61
53
|
<div>
|
62
54
|
<BarGraph
|
55
|
+
axisTitle="Number of Employees"
|
63
56
|
chartData={chartData}
|
64
57
|
customOptions={barGraphOptions}
|
65
|
-
id="
|
66
|
-
|
58
|
+
id="bar-custom"
|
59
|
+
subTitle="Subtitle to replace"
|
67
60
|
title="Bar Graph with Custom Overrides"
|
61
|
+
xAxisCategories={['Jan', 'Feb', 'Mar', 'Apr', 'May']}
|
62
|
+
yAxisMin={0}
|
63
|
+
{...props}
|
68
64
|
/>
|
69
65
|
</div>
|
70
66
|
)
|
@@ -1,42 +1,49 @@
|
|
1
1
|
<% data = [{
|
2
|
-
|
3
|
-
|
2
|
+
name: 'Installation',
|
3
|
+
data: [1475,200,3000,654,656]
|
4
4
|
}, {
|
5
|
-
|
6
|
-
|
5
|
+
name: 'Manufacturing',
|
6
|
+
data: [4434,524,2320,440,500]
|
7
|
+
}, {
|
8
|
+
name: 'Sales & Distribution',
|
9
|
+
data: [3387,743,1344,434,440,]
|
10
|
+
}, {
|
11
|
+
name: 'Project Development',
|
12
|
+
data: [3227,878,999,780,1000]
|
13
|
+
}, {
|
14
|
+
name: 'Other',
|
15
|
+
data: [1111,677,3245,500,200]
|
7
16
|
}] %>
|
8
17
|
|
9
18
|
<% bar_graph_options = {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
raw(pb_rails("icon", props: { icon: "frown", color: "error", size: "2x" })),
|
17
|
-
raw(pb_rails("icon", props: { icon: "frown", color: "warning", size: "2x" })),
|
18
|
-
raw(pb_rails("icon", props: { icon: "frown-open", color: "neutral", size: "2x" })),
|
19
|
-
raw(pb_rails("icon", props: { icon: "smile", color: "category_7", size: "2x" })),
|
20
|
-
raw(pb_rails("icon", props: { icon: "smile-beam", color: "success", size: "2x" }))
|
21
|
-
],
|
22
|
-
labels: {
|
23
|
-
useHTML: true,
|
24
|
-
sytle: {
|
25
|
-
fontSize: '1.4em',
|
19
|
+
customOptions: {
|
20
|
+
subtitle: {
|
21
|
+
text: "Overwritten subtitle",
|
22
|
+
style: {
|
23
|
+
color: "red"
|
24
|
+
}
|
26
25
|
},
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
xAxis: {
|
27
|
+
categories: [
|
28
|
+
'<i class="far fa-apple-whole"></i> Jan',
|
29
|
+
'<i class="far fa-strawberry"></i> Feb',
|
30
|
+
'<i class="far fa-lemon"></i> Mar',
|
31
|
+
'<i class="far fa-pear"></i> Apr',
|
32
|
+
'<i class="far fa-peach"></i> May'
|
33
|
+
],
|
34
|
+
labels: {
|
35
|
+
useHTML: true,
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
34
39
|
} %>
|
35
40
|
|
36
41
|
<%= pb_rails("bar_graph", props: {
|
42
|
+
axis_title: 'Number of Employees',
|
37
43
|
chart_data: data,
|
38
44
|
id: "bar-default",
|
39
|
-
|
45
|
+
y_axis_min: 0,
|
46
|
+
subtitle: 'Subtitle to replace',
|
40
47
|
title: 'Bar Graph with Custom Overrides',
|
41
48
|
custom_options: bar_graph_options
|
42
|
-
}) %>
|
49
|
+
}) %>
|
@@ -13,7 +13,6 @@ const BreadCrumbsDefault = (props) => {
|
|
13
13
|
<Icon
|
14
14
|
icon="home"
|
15
15
|
size="1x"
|
16
|
-
{...props}
|
17
16
|
/>
|
18
17
|
<BreadCrumbItem
|
19
18
|
{...props}
|
@@ -23,13 +22,11 @@ const BreadCrumbsDefault = (props) => {
|
|
23
22
|
size="4"
|
24
23
|
tag="span"
|
25
24
|
text="Home"
|
26
|
-
{...props}
|
27
25
|
/>
|
28
26
|
</BreadCrumbItem>
|
29
27
|
<Icon
|
30
28
|
icon="users"
|
31
29
|
size="1x"
|
32
|
-
{...props}
|
33
30
|
/>
|
34
31
|
<Link
|
35
32
|
{...props}
|
@@ -39,20 +36,17 @@ const BreadCrumbsDefault = (props) => {
|
|
39
36
|
size="4"
|
40
37
|
tag="span"
|
41
38
|
text="Users"
|
42
|
-
{...props}
|
43
39
|
/>
|
44
40
|
</Link>
|
45
41
|
<Icon
|
46
42
|
icon="user"
|
47
43
|
size="1x"
|
48
|
-
{...props}
|
49
44
|
/>
|
50
45
|
<Link {...props}>
|
51
46
|
<Title
|
52
47
|
size="4"
|
53
48
|
tag="span"
|
54
49
|
text="User"
|
55
|
-
{...props}
|
56
50
|
/>
|
57
51
|
</Link>
|
58
52
|
</BreadCrumbs>
|
@@ -67,42 +67,4 @@
|
|
67
67
|
<%= pb_rails("card/card_body", props: { padding: "md", }) do %>
|
68
68
|
Body
|
69
69
|
<% end %>
|
70
|
-
<% end %>
|
71
|
-
|
72
|
-
<%= pb_rails("title", props: { text: "Status Colors", tag: "h4", size: 4, margin_bottom: "sm" }) %>
|
73
|
-
|
74
|
-
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
75
|
-
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "success" }) do %>
|
76
|
-
<%= pb_rails("body", props: { text: "Success", dark: true }) %>
|
77
|
-
<% end %>
|
78
|
-
<%= pb_rails("card/card_body", props: { padding: "md" }) do %>
|
79
|
-
Body
|
80
|
-
<% end %>
|
81
|
-
<% end %>
|
82
|
-
|
83
|
-
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
84
|
-
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "error" }) do %>
|
85
|
-
<%= pb_rails("body", props: { text: "Error", dark: true }) %>
|
86
|
-
<% end %>
|
87
|
-
<%= pb_rails("card/card_body", props: { padding: "md" }) do %>
|
88
|
-
Body
|
89
|
-
<% end %>
|
90
|
-
<% end %>
|
91
|
-
|
92
|
-
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
93
|
-
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "success_subtle" }) do %>
|
94
|
-
<%= pb_rails("body", props: { text: "Success Subtle" }) %>
|
95
|
-
<% end %>
|
96
|
-
<%= pb_rails("card/card_body", props: { padding: "md" }) do %>
|
97
|
-
Body
|
98
|
-
<% end %>
|
99
|
-
<% end %>
|
100
|
-
|
101
|
-
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
102
|
-
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "error_subtle" }) do %>
|
103
|
-
<%= pb_rails("body", props: { text: "Error Subtle"}) %>
|
104
|
-
<% end %>
|
105
|
-
<%= pb_rails("card/card_body", props: { padding: "md" }) do %>
|
106
|
-
Body
|
107
|
-
<% end %>
|
108
|
-
<% end %>
|
70
|
+
<% end %>
|
@@ -181,96 +181,6 @@ const CardHeader = (props) => {
|
|
181
181
|
/>
|
182
182
|
</Card.Body>
|
183
183
|
</Card>
|
184
|
-
|
185
|
-
<Title
|
186
|
-
{...props}
|
187
|
-
marginBottom='sm'
|
188
|
-
size={4}
|
189
|
-
tag="h4"
|
190
|
-
text="Status Colors"
|
191
|
-
/>
|
192
|
-
|
193
|
-
<Card
|
194
|
-
{...props}
|
195
|
-
marginBottom='sm'
|
196
|
-
padding="none"
|
197
|
-
>
|
198
|
-
<Card.Header
|
199
|
-
headerColor="success"
|
200
|
-
>
|
201
|
-
<Body
|
202
|
-
dark
|
203
|
-
text="Success"
|
204
|
-
/>
|
205
|
-
</Card.Header>
|
206
|
-
<Card.Body>
|
207
|
-
<Body
|
208
|
-
{...props}
|
209
|
-
text="Body"
|
210
|
-
/>
|
211
|
-
</Card.Body>
|
212
|
-
</Card>
|
213
|
-
|
214
|
-
<Card
|
215
|
-
{...props}
|
216
|
-
marginBottom='sm'
|
217
|
-
padding="none"
|
218
|
-
>
|
219
|
-
<Card.Header
|
220
|
-
headerColor="error"
|
221
|
-
>
|
222
|
-
<Body
|
223
|
-
dark
|
224
|
-
text="Error"
|
225
|
-
/>
|
226
|
-
</Card.Header>
|
227
|
-
<Card.Body>
|
228
|
-
<Body
|
229
|
-
{...props}
|
230
|
-
text="Body"
|
231
|
-
/>
|
232
|
-
</Card.Body>
|
233
|
-
</Card>
|
234
|
-
|
235
|
-
<Card
|
236
|
-
{...props}
|
237
|
-
marginBottom='sm'
|
238
|
-
padding="none"
|
239
|
-
>
|
240
|
-
<Card.Header
|
241
|
-
headerColor="success_subtle"
|
242
|
-
>
|
243
|
-
<Body
|
244
|
-
text="Success Subtle"
|
245
|
-
/>
|
246
|
-
</Card.Header>
|
247
|
-
<Card.Body>
|
248
|
-
<Body
|
249
|
-
{...props}
|
250
|
-
text="Body"
|
251
|
-
/>
|
252
|
-
</Card.Body>
|
253
|
-
</Card>
|
254
|
-
|
255
|
-
<Card
|
256
|
-
{...props}
|
257
|
-
marginBottom='sm'
|
258
|
-
padding="none"
|
259
|
-
>
|
260
|
-
<Card.Header
|
261
|
-
headerColor="error_subtle"
|
262
|
-
>
|
263
|
-
<Body
|
264
|
-
text="Error Subtle"
|
265
|
-
/>
|
266
|
-
</Card.Header>
|
267
|
-
<Card.Body>
|
268
|
-
<Body
|
269
|
-
{...props}
|
270
|
-
text="Body"
|
271
|
-
/>
|
272
|
-
</Card.Body>
|
273
|
-
</Card>
|
274
184
|
</>
|
275
185
|
)
|
276
186
|
}
|
@@ -1 +1 @@
|
|
1
|
-
Card headers pass category, product,
|
1
|
+
Card headers pass category, product, and background colors only. List of all category, product, and background colors can be viewed <a href="https://playbook.powerapp.cloud/visual_guidelines/colors" target="_blank">here</a>.
|
@@ -10,11 +10,3 @@
|
|
10
10
|
link: "https://google.com",
|
11
11
|
new_window: true
|
12
12
|
}) %>
|
13
|
-
<br/>
|
14
|
-
<%= pb_rails("circle_icon_button", props: {
|
15
|
-
icon: "info",
|
16
|
-
variant: "secondary",
|
17
|
-
aria: { label: "Link to Playbook in new window" },
|
18
|
-
link: "https://playbook.powerapp.cloud/",
|
19
|
-
target: "child"
|
20
|
-
}) %>
|
@@ -21,15 +21,6 @@ const CircleIconButtonLink = (props) => (
|
|
21
21
|
{...props}
|
22
22
|
/>
|
23
23
|
|
24
|
-
<br/>
|
25
|
-
|
26
|
-
<CircleIconButton
|
27
|
-
aria={{ label: "Link to Playbook in new window" }}
|
28
|
-
icon="info"
|
29
|
-
link="https://playbook.powerapp.cloud/"
|
30
|
-
target="child"
|
31
|
-
variant="secondary"
|
32
|
-
/>
|
33
24
|
</div>
|
34
25
|
)
|
35
26
|
|
@@ -25,10 +25,7 @@ const FileUploadCustomDescription = (props) => {
|
|
25
25
|
{...props}
|
26
26
|
/>
|
27
27
|
<FileUpload
|
28
|
-
accept={
|
29
|
-
"application/pdf": [".pdf"],
|
30
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
|
31
|
-
}}
|
28
|
+
accept={['application/pdf','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']}
|
32
29
|
acceptedFilesDescription="Adobe (.pdf) and Microsoft (.xslx)"
|
33
30
|
onFilesAccepted={handleOnFilesAccepted}
|
34
31
|
{...props}
|
@@ -18,7 +18,7 @@ const AcceptedFilesList = ({ files }) => (
|
|
18
18
|
const RejectedFilesList = ({ files }) => (
|
19
19
|
<List>
|
20
20
|
{files.map((file) => (
|
21
|
-
<ListItem key={file.
|
21
|
+
<ListItem key={file.name}><Body color="error">{`${file.name} (file too large)`}</Body></ListItem>
|
22
22
|
))}
|
23
23
|
</List>
|
24
24
|
)
|
@@ -17,60 +17,47 @@ const GaugeComplex = (props) => (
|
|
17
17
|
gap="sm"
|
18
18
|
padding="xl"
|
19
19
|
wrap
|
20
|
-
{...props}
|
21
20
|
>
|
22
21
|
<FlexItem
|
23
22
|
flex={1}
|
24
23
|
grow
|
25
|
-
{...props}
|
26
24
|
>
|
27
25
|
<Card
|
28
26
|
maxWidth="xs"
|
29
27
|
padding="md"
|
30
|
-
{...props}
|
31
28
|
>
|
32
29
|
<Title
|
33
30
|
paddingBottom="sm"
|
34
31
|
size={4}
|
35
32
|
text="Abandoned Calls"
|
36
|
-
{...props}
|
37
33
|
/>
|
38
|
-
<Flex
|
39
|
-
align="stretch"
|
40
|
-
{...props}
|
41
|
-
>
|
34
|
+
<Flex align="stretch">
|
42
35
|
<Flex
|
43
36
|
marginRight="sm"
|
44
37
|
orientation="column"
|
45
|
-
{...props}
|
46
38
|
>
|
47
39
|
<Body
|
48
40
|
color="light"
|
49
41
|
paddingBottom="sm"
|
50
42
|
text="Total Abandoned"
|
51
|
-
{...props}
|
52
43
|
/>
|
53
44
|
<Flex
|
54
45
|
align="baseline"
|
55
46
|
paddingBottom="xs"
|
56
|
-
{...props}
|
57
47
|
>
|
58
48
|
<Title
|
59
49
|
size={1}
|
60
50
|
text="39"
|
61
|
-
{...props}
|
62
51
|
/>
|
63
52
|
<Title
|
64
53
|
color="light"
|
65
54
|
size={3}
|
66
55
|
text="calls"
|
67
|
-
{...props}
|
68
56
|
/>
|
69
57
|
</Flex>
|
70
58
|
<Caption
|
71
59
|
size="xs"
|
72
60
|
text="of 390"
|
73
|
-
{...props}
|
74
61
|
/>
|
75
62
|
</Flex>
|
76
63
|
|
@@ -78,29 +65,22 @@ const GaugeComplex = (props) => (
|
|
78
65
|
alignSelf="stretch"
|
79
66
|
marginRight="sm"
|
80
67
|
orientation="vertical"
|
81
|
-
{...props}
|
82
68
|
/>
|
83
69
|
|
84
70
|
<Flex
|
85
71
|
orientation="column"
|
86
72
|
wrap
|
87
|
-
{...props}
|
88
73
|
>
|
89
74
|
<Body
|
90
75
|
color="light"
|
91
76
|
text="% Abandoned"
|
92
|
-
|
93
|
-
|
94
|
-
<Flex
|
95
|
-
wrap
|
96
|
-
{...props}
|
97
|
-
>
|
77
|
+
/>
|
78
|
+
<Flex wrap>
|
98
79
|
<FlexItem
|
99
80
|
fixedSize="150px"
|
100
81
|
overflow="hidden"
|
101
82
|
shrink
|
102
|
-
|
103
|
-
>
|
83
|
+
>
|
104
84
|
<Gauge
|
105
85
|
chartData={data}
|
106
86
|
disableAnimation
|
@@ -110,7 +90,7 @@ const GaugeComplex = (props) => (
|
|
110
90
|
{...props}
|
111
91
|
/>
|
112
92
|
</FlexItem>
|
113
|
-
</Flex>
|
93
|
+
</Flex>
|
114
94
|
</Flex>
|
115
95
|
</Flex>
|
116
96
|
</Card>
|
data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.html.erb
CHANGED
@@ -24,20 +24,4 @@
|
|
24
24
|
state: "PA",
|
25
25
|
zipcode: "19382",
|
26
26
|
territory: "PHL",
|
27
|
-
}) %>
|
28
|
-
|
29
|
-
<br>
|
30
|
-
<br>
|
31
|
-
|
32
|
-
<%= pb_rails("home_address_street", props: {
|
33
|
-
address: "70 Prospect Ave",
|
34
|
-
address_cont: "Apt M18",
|
35
|
-
city: "West Chester",
|
36
|
-
emphasis: "none",
|
37
|
-
home_id: 8250263,
|
38
|
-
home_url: "https://powerhrg.com/",
|
39
|
-
house_style: "Colonial",
|
40
|
-
state: "PA",
|
41
|
-
zipcode: "19382",
|
42
|
-
territory: "PHL",
|
43
|
-
}) %>
|
27
|
+
}) %>
|