playbook_ui 15.6.0.pre.alpha.play265012865 → 15.6.0.pre.alpha.play265012910
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 +1 -1
- data/app/pb_kits/playbook/pb_legend/_legend.tsx +0 -1
- data/app/pb_kits/playbook/pb_legend/legend.html.erb +1 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
- data/app/pb_kits/playbook/utilities/deprecated.ts +11 -3
- data/dist/chunks/_typeahead-CnPLuGbe.js +6 -0
- data/dist/chunks/vendor.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/pb_kit_helper.rb +31 -0
- data/lib/playbook/version.rb +1 -1
- metadata +3 -4
- data/app/pb_kits/playbook/utilities/DEPRECATION_WARNINGS.md +0 -82
- data/dist/chunks/_typeahead-Mjy3POtc.js +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e093a237701012d80b9c37c5be72e74df5c14e15a001d45a812b6cec3ffe341d
|
|
4
|
+
data.tar.gz: 410e0352979d11d39b3d43111e0403641a33c8e42a3e3002ab70eda18b9bbb71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b8a92fec8ea139d05795845db08d04c0d82163ba45d3eb3504a10c34df8918ae96f95a24225e3823b450e36143051c49668d71605bc811395d2dc29f595fc78
|
|
7
|
+
data.tar.gz: 9e3d30a64b3e8700789c63334252114f7070eaac866af69f183a40d89d8e456ffc413d9bd3fc66cb0177b6fa5515e6b4131e1ee92020012950c5371e55121015
|
|
@@ -171,7 +171,7 @@ if (Array.isArray(axisTitle) && axisTitle.length > 1 && axisTitle[1].name) {
|
|
|
171
171
|
|
|
172
172
|
useEffect(() => {
|
|
173
173
|
// Warn about deprecated kit (only once per page load, dev mode only)
|
|
174
|
-
deprecatedKitWarning('BarGraph', '
|
|
174
|
+
deprecatedKitWarning('BarGraph', 'Please use "PbBarGraph" instead.');
|
|
175
175
|
}, []);
|
|
176
176
|
|
|
177
177
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Error shows that the radio option must be selected or is invalid (
|
|
1
|
+
Error shows that the radio option must be selected or is invalid (i.e. when used in a form it signals a user to fix an error).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Select w/ Error shows that
|
|
1
|
+
Select w/ Error shows that an option must be selected or is invalid (i.e. when used in a form it signals a user to fix an error).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Text Input w/ Error shows that the
|
|
1
|
+
Text Input w/ Error shows that the input must be filled out (i.e. when used in a form it signals a user to fix an error).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Textarea w/ Error shows that the
|
|
1
|
+
Textarea w/ Error shows that the input must be filled out (i.e. when used in a form it signals a user to fix an error).
|
|
@@ -50,10 +50,18 @@ export const deprecatedKitWarning = (
|
|
|
50
50
|
// Mark this kit as warned
|
|
51
51
|
warnedKits.add(kitName);
|
|
52
52
|
|
|
53
|
-
//
|
|
54
|
-
const
|
|
53
|
+
// Build the warning message
|
|
54
|
+
const baseMessage = `PLAYBOOK DEPRECATION WARNING
|
|
55
|
+
----------------------------
|
|
56
|
+
The "${kitName}" kit is deprecated and will be removed in a future version.`;
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
const fullMessage = message
|
|
59
|
+
? `${baseMessage} ${message}`
|
|
60
|
+
: `${baseMessage} Please migrate to the recommended alternative
|
|
61
|
+
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
console.warn(fullMessage);
|
|
57
65
|
};
|
|
58
66
|
|
|
59
67
|
/**
|