playbook_ui 14.22.0.pre.alpha.PLAY22958843 → 14.22.0.pre.alpha.customheaderat8564

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 (84) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +7 -6
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/SubRowHeaderRow.tsx +11 -32
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -6
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +8 -10
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -2
  8. data/app/pb_kits/playbook/pb_badge/_badge.scss +6 -5
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
  15. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
  17. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
  18. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -32
  19. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
  20. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
  21. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
  22. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
  23. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -31
  24. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
  25. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
  26. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
  27. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
  28. data/app/pb_kits/playbook/pb_circle_chart/circleChartTheme.ts +1 -36
  29. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
  30. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
  31. data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
  32. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
  33. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
  34. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
  35. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
  36. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
  37. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +6 -3
  38. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
  39. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
  40. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
  43. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
  45. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
  46. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
  47. data/app/pb_kits/playbook/pb_table/_table.tsx +4 -4
  48. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +8 -8
  49. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +1 -1
  50. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +12 -12
  51. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +3 -3
  52. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +12 -12
  53. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +3 -3
  54. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
  55. data/app/pb_kits/playbook/pb_tooltip/index.js +36 -59
  56. data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -9
  57. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
  58. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -3
  59. data/dist/chunks/{_typeahead-CuwY9iVi.js → _typeahead-B7FRYVtS.js} +3 -3
  60. data/dist/chunks/_weekday_stacked-CEJcIpjK.js +45 -0
  61. data/dist/chunks/{lib-DYpq0k8j.js → lib-Carqm8Ip.js} +1 -1
  62. data/dist/chunks/{pb_form_validation-BUOKwfvW.js → pb_form_validation-DqRmTS8m.js} +1 -1
  63. data/dist/chunks/vendor.js +1 -1
  64. data/dist/menu.yml +8 -68
  65. data/dist/playbook-doc.js +2 -2
  66. data/dist/playbook-rails-react-bindings.js +1 -1
  67. data/dist/playbook-rails.js +1 -1
  68. data/dist/playbook.css +1 -1
  69. data/lib/playbook/version.rb +1 -1
  70. metadata +15 -20
  71. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.jsx +0 -65
  72. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.md +0 -5
  73. data/app/pb_kits/playbook/pb_bar_graph/barGraphTheme.ts +0 -106
  74. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
  75. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
  76. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
  77. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
  78. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
  79. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input.html.erb +0 -18
  80. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_rails.md +0 -1
  81. data/dist/chunks/_circle_chart-BjcInQNv.js +0 -1
  82. data/dist/chunks/_weekday_stacked-C3EeTZ8D.js +0 -45
  83. /data/app/pb_kits/playbook/pb_tooltip/docs/{_tooltip_click_open_react.md → _tooltip_click_open.md} +0 -0
  84. /data/app/pb_kits/playbook/pb_typeahead/docs/{_typeahead_preserve_input_react.md → _typeahead_preserve_input.md} +0 -0
@@ -1,142 +1,114 @@
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'
4
+
5
5
  import Title from '../../pb_title/_title'
6
6
 
7
- const dataFirst = [
7
+ const data = [
8
8
  {
9
9
  name: 'Waiting for Calls',
10
- y: 41,
10
+ value: 41,
11
11
  },
12
12
  {
13
13
  name: 'On Call',
14
- y: 49,
14
+ value: 49,
15
15
  },
16
16
  {
17
17
  name: 'After Call',
18
- y: 10,
18
+ value: 10,
19
19
  },
20
20
  ]
21
21
 
22
- const dataSecond = [{
22
+ const dataFirst = [{
23
23
  name: 'Bugs',
24
- y: 8,
24
+ value: 8,
25
+
25
26
  },
26
27
  {
27
28
  name: 'Chores',
28
- y: 1,
29
+ value: 1,
30
+
29
31
  },
30
32
  {
31
33
  name: 'Stories',
32
- y: 12,
33
- }]
34
+ value: 12,
35
+ },
36
+ ]
34
37
 
35
- const dataThird = [
38
+ const dataSecond = [
36
39
  {
37
40
  name: 'Queued',
38
- y: 7,
41
+ value: 7,
39
42
  },
40
43
  {
41
44
  name: 'In Progress',
42
- y: 6,
45
+ value: 6,
43
46
  },
44
47
  {
45
48
  name: 'Validation',
46
- y: 3,
49
+ value: 3,
47
50
  },
48
51
  {
49
52
  name: 'Done',
50
- y: 6,
53
+ value: 6,
51
54
  },
52
55
  ]
53
56
 
54
- const CircleChartLegendPosition = (props) => {
55
- const chartOptionsFirst = {
56
- title: { text: "Alignment of Legend" },
57
- series: [{ data: dataFirst }],
58
- legend: {
59
- align: 'right',
60
- verticalAlign: 'top'
61
- },
62
- plotOptions: {
63
- pie: {
64
- showInLegend: true
65
- }
66
- }
67
- }
68
-
69
- const chartOptionsSecond = {
70
- title: { text: "Layout of Legend" },
71
- series: [{ data: dataSecond }],
72
- legend: {
73
- layout: 'vertical'
74
- },
75
- plotOptions: {
76
- pie: {
77
- showInLegend: true
78
- }
79
- }
80
- }
81
-
82
- const chartOptionsThird = {
83
- title: { text: "Offset of Legend" },
84
- series: [{ data: dataThird }],
85
- legend: {
86
- layout: 'vertical',
87
- x: 100,
88
- y: 10
89
- },
90
- plotOptions: {
91
- pie: {
92
- showInLegend: true
93
- }
94
- }
95
- }
96
-
97
- const optionsFirst = Highcharts.merge({}, circleChartTheme, chartOptionsFirst)
98
- const optionsSecond = Highcharts.merge({}, circleChartTheme, chartOptionsSecond)
99
- const optionsThird = Highcharts.merge({}, circleChartTheme, chartOptionsThird)
100
57
 
101
- return (
102
- <div>
103
- <Title
104
- paddingY="sm"
105
- size={4}
106
- tag="h4"
107
- text="align | verticalAlign"
108
- {...props}
109
- />
110
- <HighchartsReact
111
- highcharts={Highcharts}
112
- options={optionsFirst}
113
- />
114
-
115
- <Title
116
- paddingY="sm"
117
- size={4}
118
- tag="h4"
119
- text="layout"
120
- {...props}
121
- />
122
- <HighchartsReact
123
- highcharts={Highcharts}
124
- options={optionsSecond}
125
- />
126
-
127
- <Title
128
- paddingY="sm"
129
- size={4}
130
- tag="h4"
131
- text="x | y"
132
- {...props}
133
- />
134
- <HighchartsReact
135
- highcharts={Highcharts}
136
- options={optionsThird}
137
- />
138
- </div>
139
- )
140
- }
58
+ const CircleChartLegendPosition = (props) => (
59
+ <div>
60
+ <Title
61
+ paddingBottom="sm"
62
+ paddingTop="sm"
63
+ size={4}
64
+ tag="h4"
65
+ text="align | verticalAlign"
66
+ />
67
+ <CircleChart
68
+ align='right'
69
+ chartData={data}
70
+ id="legend-position-circle"
71
+ legend
72
+ paddingBottom="sm"
73
+ title="Alignment of Legend"
74
+ verticalAlign="top"
75
+ {...props}
76
+ />
77
+ <Title
78
+ paddingBottom="sm"
79
+ paddingTop="sm"
80
+ size={4}
81
+ tag="h4"
82
+ text="layout"
83
+ />
84
+ <CircleChart
85
+ chartData={dataFirst}
86
+ id="legend-position-circle-1"
87
+ layout="vertical"
88
+ legend
89
+ paddingBottom="sm"
90
+ paddingTop="sm"
91
+ title="Layout of Legend"
92
+ {...props}
93
+ />
94
+ <Title
95
+ paddingBottom="sm"
96
+ paddingTop="sm"
97
+ size={4}
98
+ tag="h4"
99
+ text="x | y"
100
+ />
101
+ <CircleChart
102
+ chartData={dataSecond}
103
+ id="legend-position-circle-2"
104
+ layout="vertical"
105
+ legend
106
+ title="Offset of Legend"
107
+ x={100}
108
+ y={10}
109
+ {...props}
110
+ />
111
+ </div>
112
+ )
141
113
 
142
114
  export default CircleChartLegendPosition
@@ -6,9 +6,12 @@
6
6
  `x` **Type**: Number (defaults to 0)
7
7
  `y` **Type**: Number (defaults to 0)
8
8
 
9
- `layout` determines the position of the legend items
9
+ -
10
+
11
+ - `layout` determines the position of the legend items
10
12
  `layout: proximate` will place the legend items as close as possible to the graphs they're representing. It will also determine whether to place the legend above/below or on the side of the plot area, if the legend is in a corner.
11
13
 
12
- `x` offsets the legend relative to its horizontal alignment. Negative x moves it to the left, positive x moves it to the right
14
+ - `x` offsets the legend relative to its horizontal alignmnet. Negative x moves it to the left, positive x moves it to the right
15
+
13
16
 
14
- `y` offsets the legend relative to its vertical alignment. Negative y moves it up, positive y moves it down.
17
+ - `y` offsets the legend relative to its vertical alignmnet. Negative y moves it up, positive y moves it down.
@@ -1,37 +1,36 @@
1
1
  import React, { useState } 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
  import Button from '../../pb_button/_button'
6
5
 
7
6
  const CircleChartLiveData = (props) => {
8
7
  const [data, setData] = useState([
9
8
  {
10
9
  name: 'Waiting for Calls',
11
- y: 41,
10
+ value: 41,
12
11
  },
13
12
  {
14
13
  name: 'On Call',
15
- y: 49,
14
+ value: 49,
16
15
  },
17
16
  {
18
17
  name: 'After Call',
19
- y: 10,
18
+ value: 10,
20
19
  },
21
20
  ])
22
21
 
23
22
  const data2 = [
24
23
  {
25
24
  name: 'Waiting for Calls',
26
- y: 48,
25
+ value: 48,
27
26
  },
28
27
  {
29
28
  name: 'On Call',
30
- y: 12,
29
+ value: 12,
31
30
  },
32
31
  {
33
32
  name: 'After Call',
34
- y: 140,
33
+ value: 140,
35
34
  },
36
35
  ]
37
36
 
@@ -39,12 +38,6 @@ const CircleChartLiveData = (props) => {
39
38
  setData(data2)
40
39
  }
41
40
 
42
- const chartOptions = {
43
- series: [{ data: data }],
44
- }
45
-
46
- const options = Highcharts.merge({}, circleChartTheme, chartOptions)
47
-
48
41
  return (
49
42
  <div>
50
43
  <Button
@@ -52,12 +45,13 @@ const CircleChartLiveData = (props) => {
52
45
  text="Update Value"
53
46
  {...props}
54
47
  />
55
- <HighchartsReact
56
- highcharts={Highcharts}
57
- options={options}
48
+ <CircleChart
49
+ chartData={data}
50
+ id="circle-chart-live-data"
51
+ {...props}
58
52
  />
59
53
  </div>
60
54
  )
61
55
  }
62
56
 
63
- export default CircleChartLiveData
57
+ export default CircleChartLiveData
@@ -0,0 +1,38 @@
1
+ import React from 'react'
2
+ import circleChartTheme from '../circleChartTheme'
3
+ import Highcharts from "highcharts"
4
+ import HighchartsReact from "highcharts-react-official"
5
+
6
+ const data = [
7
+ {
8
+ name: 'Waiting for Calls',
9
+ y: 41,
10
+ },
11
+ {
12
+ name: 'On Call',
13
+ y: 49,
14
+ },
15
+ {
16
+ name: 'After Call',
17
+ y: 10,
18
+ },
19
+ ]
20
+
21
+ const baseOptions = {
22
+ series: [{ data: data }],
23
+ }
24
+
25
+ const CircleChartPbStyles = () => {
26
+ const options = Highcharts.merge({}, circleChartTheme, baseOptions )
27
+
28
+ return (
29
+ <div>
30
+ <HighchartsReact
31
+ highcharts={Highcharts}
32
+ options={options}
33
+ />
34
+ </div>
35
+ );
36
+ };
37
+
38
+ export default CircleChartPbStyles;
@@ -0,0 +1 @@
1
+ You don't need to use the Circle Chart Kit to apply Playbook styles to your Highcharts circle chart. Just import circleChartTheme.ts and merge it with your chart options—Playbook’s styling will apply automatically.
@@ -1,45 +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 dataRounded = [
7
6
  {
8
7
  name: 'Waiting for Calls',
9
- y: 41,
8
+ value: 41,
10
9
  },
11
10
  {
12
11
  name: 'On Call',
13
- y: 49,
12
+ value: 49,
14
13
  },
15
14
  {
16
15
  name: 'After Call',
17
- y: 10,
16
+ value: 10,
18
17
  },
19
18
  ]
20
19
 
21
- const CircleChartRounded = () => {
22
- const chartOptions = {
23
- series: [{ data: dataRounded }],
24
- plotOptions: {
25
- pie: {
26
- borderColor: null,
27
- borderWidth: 20,
28
- innerSize: '100%',
29
- },
30
- },
31
- }
32
-
33
- const options = Highcharts.merge({}, circleChartTheme, chartOptions)
34
-
35
- return (
36
- <div>
37
- <HighchartsReact
38
- highcharts={Highcharts}
39
- options={options}
40
- />
41
- </div>
42
- )
43
- }
20
+ const CircleChartRounded = (props) => (
21
+ <div>
22
+ <CircleChart
23
+ chartData={dataRounded}
24
+ id="default-test-rounded"
25
+ innerSize="lg"
26
+ rounded
27
+ {...props}
28
+ />
29
+ </div>
30
+ )
44
31
 
45
- export default CircleChartRounded
32
+ export default CircleChartRounded
@@ -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"
@@ -104,8 +104,8 @@ const Table = (props: TableProps): React.ReactElement => {
104
104
 
105
105
  stickyLeftColumn.forEach((colId, index) => {
106
106
  const isLastColumn = index === stickyLeftColumn.length - 1;
107
- const header = document.querySelector(`th[data-sticky-id="${colId}"]`);
108
- const cells = document.querySelectorAll(`td[data-sticky-id="${colId}"]`);
107
+ const header = document.querySelector(`th[id="${colId}"]`);
108
+ const cells = document.querySelectorAll(`td[id="${colId}"]`);
109
109
 
110
110
  if (header) {
111
111
  header.classList.add('sticky');
@@ -155,8 +155,8 @@ const Table = (props: TableProps): React.ReactElement => {
155
155
 
156
156
  stickyRightColumnReversed.forEach((colId, index) => {
157
157
  const isLastColumn = index === stickyRightColumn.length - 1;
158
- const header = document.querySelector(`th[data-sticky-id="${colId}"]`);
159
- const cells = document.querySelectorAll(`td[data-sticky-id="${colId}"]`);
158
+ const header = document.querySelector(`th[id="${colId}"]`);
159
+ const cells = document.querySelectorAll(`td[id="${colId}"]`);
160
160
 
161
161
  if (header) {
162
162
  header.classList.add('sticky');