playbook_ui_docs 14.22.0.pre.alpha.play2253rowlevelcoloringadvancedtablerails8971 → 14.22.0.pre.alpha.play2261highchartsbargraphimportedstyles8730
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 +6 -8
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +2 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +2 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +3 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
- data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +6 -3
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
- data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +3 -3
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
- data/dist/playbook-doc.js +2 -2
- metadata +9 -15
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -46
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -7
- data/app/pb_kits/playbook/pb_body/docs/_body_truncate_react.md +0 -4
- data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
- data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_title/docs/_title_truncate_react.md +0 -4
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling_react.md → _advanced_table_row_styling.md} +0 -0
- /data/app/pb_kits/playbook/pb_body/docs/{_body_truncate_rails.md → _body_truncate.md} +0 -0
- /data/app/pb_kits/playbook/pb_title/docs/{_title_truncate_rails.md → _title_truncate.md} +0 -0
- /data/app/pb_kits/playbook/pb_tooltip/docs/{_tooltip_click_open_react.md → _tooltip_click_open.md} +0 -0
@@ -1,61 +1,47 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataWithLabels = [
|
7
6
|
{
|
8
7
|
name: 'Facebook',
|
9
|
-
|
8
|
+
value: 2498,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'YouTube',
|
13
|
-
|
12
|
+
value: 2000,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'WhatsApp',
|
17
|
-
|
16
|
+
value: 2000,
|
18
17
|
},
|
19
18
|
{
|
20
19
|
name: 'Facebook Messenger',
|
21
|
-
|
20
|
+
value: 1300,
|
22
21
|
},
|
23
22
|
{
|
24
23
|
name: 'WeChat',
|
25
|
-
|
24
|
+
value: 1165,
|
26
25
|
},
|
27
26
|
{
|
28
27
|
name: 'Instagram',
|
29
|
-
|
28
|
+
value: 1000,
|
30
29
|
},
|
31
30
|
{
|
32
31
|
name: 'Tik Tok',
|
33
|
-
|
32
|
+
value: 800,
|
34
33
|
},
|
35
34
|
]
|
36
35
|
|
37
|
-
const CircleChartWithLabels = () =>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
50
|
-
|
51
|
-
return (
|
52
|
-
<div>
|
53
|
-
<HighchartsReact
|
54
|
-
highcharts={Highcharts}
|
55
|
-
options={options}
|
56
|
-
/>
|
57
|
-
</div>
|
58
|
-
)
|
59
|
-
}
|
36
|
+
const CircleChartWithLabels = (props) => (
|
37
|
+
<div>
|
38
|
+
<CircleChart
|
39
|
+
chartData={dataWithLabels}
|
40
|
+
dataLabels
|
41
|
+
id="with-labels-example"
|
42
|
+
{...props}
|
43
|
+
/>
|
44
|
+
</div>
|
45
|
+
)
|
60
46
|
|
61
|
-
export default CircleChartWithLabels
|
47
|
+
export default CircleChartWithLabels
|
@@ -1,41 +1,32 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataWithLegend = [{
|
7
6
|
name: 'Bugs',
|
8
|
-
|
7
|
+
value: 8,
|
8
|
+
|
9
9
|
},
|
10
10
|
{
|
11
11
|
name: 'Chores',
|
12
|
-
|
12
|
+
value: 1,
|
13
|
+
|
13
14
|
},
|
14
15
|
{
|
15
16
|
name: 'Stories',
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
const CircleChartWithLegendKit = () => {
|
20
|
-
const chartOptions = {
|
21
|
-
series: [{ data: dataWithLegend }],
|
22
|
-
plotOptions: {
|
23
|
-
pie: {
|
24
|
-
showInLegend: true
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
const options = Highcharts.merge({}, circleChartTheme, chartOptions)
|
17
|
+
value: 12,
|
18
|
+
},
|
19
|
+
]
|
30
20
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
21
|
+
const CircleChartWithLegendKit = (props) => (
|
22
|
+
<div>
|
23
|
+
<CircleChart
|
24
|
+
chartData={dataWithLegend}
|
25
|
+
id="with-legend-example"
|
26
|
+
legend
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
</div>
|
30
|
+
)
|
40
31
|
|
41
|
-
export default CircleChartWithLegendKit
|
32
|
+
export default CircleChartWithLegendKit
|
@@ -1,55 +1,47 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
|
3
|
-
import
|
4
|
-
import HighchartsReact from "highcharts-react-official"
|
2
|
+
|
3
|
+
import CircleChart from '../_circle_chart'
|
5
4
|
|
6
5
|
const dataWithTitle = [
|
7
6
|
{
|
8
7
|
name: 'Facebook',
|
9
|
-
|
8
|
+
value: 2498,
|
10
9
|
},
|
11
10
|
{
|
12
11
|
name: 'YouTube',
|
13
|
-
|
12
|
+
value: 2000,
|
14
13
|
},
|
15
14
|
{
|
16
15
|
name: 'WhatsApp',
|
17
|
-
|
16
|
+
value: 2000,
|
18
17
|
},
|
19
18
|
{
|
20
19
|
name: 'Facebook Messenger',
|
21
|
-
|
20
|
+
value: 1300,
|
22
21
|
},
|
23
22
|
{
|
24
23
|
name: 'WeChat',
|
25
|
-
|
24
|
+
value: 1165,
|
26
25
|
},
|
27
26
|
{
|
28
27
|
name: 'Instagram',
|
29
|
-
|
28
|
+
value: 1000,
|
30
29
|
},
|
31
30
|
{
|
32
31
|
name: 'Tik Tok',
|
33
|
-
|
32
|
+
value: 800,
|
34
33
|
},
|
35
34
|
]
|
36
35
|
|
37
|
-
const
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<HighchartsReact
|
48
|
-
highcharts={Highcharts}
|
49
|
-
options={options}
|
50
|
-
/>
|
51
|
-
</div>
|
52
|
-
)
|
53
|
-
}
|
36
|
+
const CircleChartWithLegendKit = (props) => (
|
37
|
+
<div>
|
38
|
+
<CircleChart
|
39
|
+
chartData={dataWithTitle}
|
40
|
+
id="with-title-example"
|
41
|
+
title="Active Users on Social Media"
|
42
|
+
{...props}
|
43
|
+
/>
|
44
|
+
</div>
|
45
|
+
)
|
54
46
|
|
55
|
-
export default
|
47
|
+
export default CircleChartWithLegendKit
|
@@ -9,3 +9,4 @@ export { default as CircleChartLegendPosition } from './_circle_chart_legend_pos
|
|
9
9
|
export { default as CircleChartWithTitle } from './_circle_chart_with_title.jsx'
|
10
10
|
export { default as CircleChartInnerSizes } from './_circle_chart_inner_sizes.jsx'
|
11
11
|
export { default as CircleChartCustomTooltip } from "./_circle_chart_custom_tooltip.jsx"
|
12
|
+
export { default as CircleChartPbStyles } from "./_circle_chart_pb_styles.jsx"
|
@@ -20,7 +20,7 @@ const TitleTruncate = (props) => {
|
|
20
20
|
marginBottom="md"
|
21
21
|
size={4}
|
22
22
|
text={lorem}
|
23
|
-
truncate=
|
23
|
+
truncate="1"
|
24
24
|
{...props}
|
25
25
|
/>
|
26
26
|
|
@@ -32,7 +32,7 @@ const TitleTruncate = (props) => {
|
|
32
32
|
marginBottom="md"
|
33
33
|
size={4}
|
34
34
|
text={lorem}
|
35
|
-
truncate=
|
35
|
+
truncate="2"
|
36
36
|
{...props}
|
37
37
|
/>
|
38
38
|
|
@@ -43,7 +43,7 @@ const TitleTruncate = (props) => {
|
|
43
43
|
<Title
|
44
44
|
size={4}
|
45
45
|
text={lorem}
|
46
|
-
truncate=
|
46
|
+
truncate="3"
|
47
47
|
{...props}
|
48
48
|
/>
|
49
49
|
</Flex>
|