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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -8
  3. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +1 -1
  4. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +1 -1
  5. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +1 -1
  6. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +1 -1
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +1 -1
  8. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +1 -1
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +2 -1
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +1 -1
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +2 -1
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +1 -1
  15. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +3 -3
  16. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
  17. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
  18. data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
  19. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
  20. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
  21. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
  22. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
  23. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
  24. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +6 -3
  25. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
  26. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
  27. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
  28. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
  29. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
  30. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
  31. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
  32. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
  33. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
  34. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +3 -3
  35. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
  36. data/dist/playbook-doc.js +2 -2
  37. metadata +9 -15
  38. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -46
  39. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -7
  40. data/app/pb_kits/playbook/pb_body/docs/_body_truncate_react.md +0 -4
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
  43. data/app/pb_kits/playbook/pb_title/docs/_title_truncate_react.md +0 -4
  44. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
  45. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
  46. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling_react.md → _advanced_table_row_styling.md} +0 -0
  47. /data/app/pb_kits/playbook/pb_body/docs/{_body_truncate_rails.md → _body_truncate.md} +0 -0
  48. /data/app/pb_kits/playbook/pb_title/docs/{_title_truncate_rails.md → _title_truncate.md} +0 -0
  49. /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
- import circleChartTheme from '../circleChartTheme'
3
- import Highcharts from "highcharts"
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
- y: 2498,
8
+ value: 2498,
10
9
  },
11
10
  {
12
11
  name: 'YouTube',
13
- y: 2000,
12
+ value: 2000,
14
13
  },
15
14
  {
16
15
  name: 'WhatsApp',
17
- y: 2000,
16
+ value: 2000,
18
17
  },
19
18
  {
20
19
  name: 'Facebook Messenger',
21
- y: 1300,
20
+ value: 1300,
22
21
  },
23
22
  {
24
23
  name: 'WeChat',
25
- y: 1165,
24
+ value: 1165,
26
25
  },
27
26
  {
28
27
  name: 'Instagram',
29
- y: 1000,
28
+ value: 1000,
30
29
  },
31
30
  {
32
31
  name: 'Tik Tok',
33
- y: 800,
32
+ value: 800,
34
33
  },
35
34
  ]
36
35
 
37
- const CircleChartWithLabels = () => {
38
- const chartOptions = {
39
- series: [{ data: dataWithLabels }],
40
- plotOptions: {
41
- pie: {
42
- dataLabels: {
43
- enabled: true,
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
- import circleChartTheme from '../circleChartTheme'
3
- import Highcharts from "highcharts"
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
- y: 8,
7
+ value: 8,
8
+
9
9
  },
10
10
  {
11
11
  name: 'Chores',
12
- y: 1,
12
+ value: 1,
13
+
13
14
  },
14
15
  {
15
16
  name: 'Stories',
16
- y: 12,
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
- return (
32
- <div>
33
- <HighchartsReact
34
- highcharts={Highcharts}
35
- options={options}
36
- />
37
- </div>
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
- import circleChartTheme from '../circleChartTheme'
3
- import Highcharts from "highcharts"
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
- y: 2498,
8
+ value: 2498,
10
9
  },
11
10
  {
12
11
  name: 'YouTube',
13
- y: 2000,
12
+ value: 2000,
14
13
  },
15
14
  {
16
15
  name: 'WhatsApp',
17
- y: 2000,
16
+ value: 2000,
18
17
  },
19
18
  {
20
19
  name: 'Facebook Messenger',
21
- y: 1300,
20
+ value: 1300,
22
21
  },
23
22
  {
24
23
  name: 'WeChat',
25
- y: 1165,
24
+ value: 1165,
26
25
  },
27
26
  {
28
27
  name: 'Instagram',
29
- y: 1000,
28
+ value: 1000,
30
29
  },
31
30
  {
32
31
  name: 'Tik Tok',
33
- y: 800,
32
+ value: 800,
34
33
  },
35
34
  ]
36
35
 
37
- const CircleChartWithTitle = () => {
38
- const chartOptions = {
39
- title: { text: "Active Users on Social Media" },
40
- series: [{ data: dataWithTitle }],
41
- }
42
-
43
- const options = Highcharts.merge({}, circleChartTheme, chartOptions)
44
-
45
- return (
46
- <div>
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 CircleChartWithTitle
47
+ export default CircleChartWithLegendKit
@@ -14,6 +14,7 @@ examples:
14
14
 
15
15
  react:
16
16
  - circle_chart_default: Default Style
17
+ - circle_chart_pb_styles: Playbook Styles
17
18
  - circle_chart_live_data: Live Data
18
19
  - circle_chart_rounded: Rounded Corners
19
20
  - circle_chart_block: Accepts Any Block
@@ -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={1}
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={2}
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={3}
46
+ truncate="3"
47
47
  {...props}
48
48
  />
49
49
  </Flex>
@@ -9,7 +9,6 @@ examples:
9
9
  - tooltip_with_icon_circle: Icon Circle Tooltip
10
10
  - tooltip_delay_rails: Delay
11
11
  - tooltip_show_tooltip: Show Tooltip
12
- - tooltip_click_open: Click to Open
13
12
 
14
13
  react:
15
14
  - tooltip_default_react: Default