playbook_ui 15.7.0.pre.rc.3 → 15.7.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_bar_graph/_bar_graph.tsx +6 -0
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +6 -0
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +6 -0
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +6 -0
- data/dist/chunks/_typeahead-X3EqK1nR.js +6 -0
- data/dist/chunks/lib-BHYZzndy.js +29 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +8 -8
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/pb_doc_helper.rb +3 -0
- data/lib/playbook/version.rb +1 -1
- metadata +4 -4
- data/dist/chunks/_typeahead-CbjBmIDu.js +0 -6
- data/dist/chunks/lib-DxDBrGZX.js +0 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71dc76821c0c875363dbf67c1969a0f24eb0c5ea2fdb791b70c0d95a6732a3d5
|
|
4
|
+
data.tar.gz: d95d190f3644e074b60828cf363fb37d99338050a29b4ab847ebe5bf99fe55f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ea3c249a93b41caa33133053b9fccb280d01b539c4bc61516e7a231174ef7cb879d35d756bb4fea03f4e5d35d7f52d39b593a49a7b0374f509a724a27fc86d3
|
|
7
|
+
data.tar.gz: aed75a53ce523d6736b2e8ab00986472f1068f7c2f8e1f5c50194d10003ccccc1e31320a2d45fa59da4e31b6539c84a9d768112f6cf541274cac96dda9468347
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { globalProps } from "../utilities/globalProps";
|
|
3
3
|
import { buildAriaProps, buildDataProps, buildHtmlProps } from "../utilities/props";
|
|
4
|
+
import { deprecatedKitWarning } from "../utilities/deprecated";
|
|
4
5
|
|
|
5
6
|
import HighchartsReact from "highcharts-react-official";
|
|
6
7
|
import Highcharts from "highcharts";
|
|
@@ -172,6 +173,11 @@ if (Array.isArray(axisTitle) && axisTitle.length > 1 && axisTitle[1].name) {
|
|
|
172
173
|
setOptions(merge(staticOptions, customOptions));
|
|
173
174
|
}, [chartData]);
|
|
174
175
|
|
|
176
|
+
useEffect(() => {
|
|
177
|
+
// Warn about deprecated kit
|
|
178
|
+
deprecatedKitWarning('BarGraph', 'Please use "PbBarGraph" instead.');
|
|
179
|
+
}, []);
|
|
180
|
+
|
|
175
181
|
return (
|
|
176
182
|
<HighchartsReact
|
|
177
183
|
containerProps={{
|
|
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import HighchartsReact from "highcharts-react-official";
|
|
4
4
|
import highchartsMore from "highcharts/highcharts-more";
|
|
5
|
+
import { deprecatedKitWarning } from "../utilities/deprecated";
|
|
5
6
|
|
|
6
7
|
import Highcharts from "highcharts";
|
|
7
8
|
|
|
@@ -184,6 +185,11 @@ const CircleChart = ({
|
|
|
184
185
|
setOptions(merge(staticOptions, customOptions));
|
|
185
186
|
}, [chartData]);
|
|
186
187
|
|
|
188
|
+
useEffect(() => {
|
|
189
|
+
// Warn about deprecated kit
|
|
190
|
+
deprecatedKitWarning('CircleChart', 'Please use "PbCircleChart" instead.');
|
|
191
|
+
}, []);
|
|
192
|
+
|
|
187
193
|
|
|
188
194
|
return (
|
|
189
195
|
<>
|
|
@@ -10,6 +10,7 @@ import solidGauge from "highcharts/modules/solid-gauge";
|
|
|
10
10
|
import defaultColors from "../tokens/exports/_colors.module.scss";
|
|
11
11
|
import typography from "../tokens/exports/_typography.module.scss";
|
|
12
12
|
|
|
13
|
+
import { deprecatedKitWarning } from "../utilities/deprecated";
|
|
13
14
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../utilities/props";
|
|
14
15
|
import { globalProps } from "../utilities/globalProps";
|
|
15
16
|
import { GenericObject } from "../types";
|
|
@@ -191,6 +192,11 @@ const Gauge = ({
|
|
|
191
192
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
192
193
|
}, [chartData]);
|
|
193
194
|
|
|
195
|
+
useEffect(() => {
|
|
196
|
+
// Warn about deprecated kit
|
|
197
|
+
deprecatedKitWarning('Gauge', 'Please use "PbGaugeChart" instead.');
|
|
198
|
+
}, []);
|
|
199
|
+
|
|
194
200
|
return (
|
|
195
201
|
<HighchartsReact
|
|
196
202
|
containerProps={{
|
|
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from "react";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { globalProps } from "../utilities/globalProps";
|
|
4
4
|
import { buildAriaProps, buildDataProps, buildHtmlProps } from "../utilities/props";
|
|
5
|
+
import { deprecatedKitWarning} from "../utilities/deprecated";
|
|
5
6
|
|
|
6
7
|
import HighchartsReact from "highcharts-react-official";
|
|
7
8
|
import Highcharts from "highcharts";
|
|
@@ -142,6 +143,11 @@ const LineGraph = ({
|
|
|
142
143
|
setOptions(merge(staticOptions, customOptions));
|
|
143
144
|
}, [chartData]);
|
|
144
145
|
|
|
146
|
+
useEffect(() => {
|
|
147
|
+
// Warn about deprecated kit
|
|
148
|
+
deprecatedKitWarning('LineGraph', 'Please use "PbLineGraph" instead.');
|
|
149
|
+
}, []);
|
|
150
|
+
|
|
145
151
|
return (
|
|
146
152
|
<HighchartsReact
|
|
147
153
|
containerProps={{
|