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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a9291f49ac045055567a7467e7a215ceb588218f8f3d6779088848340964ee3
4
- data.tar.gz: cc09327d3bc4ba91c31f73bea082ad8051c6ab26784ef19f461ec1c0caf62924
3
+ metadata.gz: 71dc76821c0c875363dbf67c1969a0f24eb0c5ea2fdb791b70c0d95a6732a3d5
4
+ data.tar.gz: d95d190f3644e074b60828cf363fb37d99338050a29b4ab847ebe5bf99fe55f3
5
5
  SHA512:
6
- metadata.gz: ddb268ad685b64e4fbdf64bc3d2d20eaae16a6e31f0fa9d095abd53d01c82ed3eaad51022cbf81172fcebd3b259e91b83aacf5fc52ae61f5a2d2f2da92d2aa88
7
- data.tar.gz: ce7b1b023da1876a66aa654a928bc1d0dff129f0f32b01b3d80dc73ce5b652a8d3002a2f4782f70588993649d709d7b2eb1ae4cf3839eb2fb04eabb5bd0b7d46
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={{