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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f00eed8d72dd338dfb0665fdbc61354194cc91f5cdf0755368f84f909c8d251
4
- data.tar.gz: 31c851467170e08092848d43f25a82f61ce30c41aba7814eada0d8a663319806
3
+ metadata.gz: e093a237701012d80b9c37c5be72e74df5c14e15a001d45a812b6cec3ffe341d
4
+ data.tar.gz: 410e0352979d11d39b3d43111e0403641a33c8e42a3e3002ab70eda18b9bbb71
5
5
  SHA512:
6
- metadata.gz: 9ed414cfd8bf2656d273e36c8ad280b64ced9172ae1914b42aaa652b4799738834f0d36206059a892f4cffa272af41ecfeaaeb0325e18f014bce04a78d697388
7
- data.tar.gz: 2e155137b2e170bc7704c3a3419d61b9ae9da0f21d5505fdff5552e4d175433656e9cd9fe6d7fae829e903999b1917c02de35a382107d38aace4eee21e297581
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', '[Playbook] The "BarGraph" kit is deprecated. Please use "PbBarGraph" instead.');
174
+ deprecatedKitWarning('BarGraph', 'Please use "PbBarGraph" instead.');
175
175
  }, []);
176
176
 
177
177
  useEffect(() => {
@@ -34,7 +34,6 @@ const Legend = (props: LegendProps) => {
34
34
  } = props
35
35
 
36
36
  useEffect(() => {
37
- console.log('TESTING ------------------------')
38
37
  deprecatedKitWarning('Legend')
39
38
  }, [])
40
39
 
@@ -1,3 +1,4 @@
1
+ <%== deprecated_kit_warning('Legend') %>
1
2
  <%= pb_content_tag do %>
2
3
  <%= pb_rails("body", props: {color: object.body_color}) do %>
3
4
  <span style="<%= object.custom_color %>" class=<%= object.custom_color_class %>></span>
@@ -1 +1 @@
1
- Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
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 the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
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 radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
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 radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
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
- // Log the warning
54
- const defaultMessage = `[PLAYBOOK] The "${kitName}" kit is deprecated and will be removed in a future version. Please migrate to the recommended alternative.`;
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
- console.warn(message || defaultMessage);
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
  /**