playbook_ui 15.6.0.pre.alpha.play265012865 → 15.6.0.pre.alpha.play265012993

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +1 -1
  3. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  4. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  5. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +2 -2
  6. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +10 -8
  7. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +0 -1
  8. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +0 -3
  9. data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +24 -0
  10. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +181 -3
  11. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  12. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +316 -15
  13. data/app/pb_kits/playbook/pb_draggable/context/types.ts +1 -1
  14. data/app/pb_kits/playbook/pb_legend/_legend.tsx +0 -1
  15. data/app/pb_kits/playbook/pb_legend/legend.html.erb +1 -0
  16. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
  17. data/app/pb_kits/playbook/pb_select/_select.tsx +8 -3
  18. data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
  19. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb +16 -0
  20. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx +30 -0
  21. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.md +1 -0
  22. data/app/pb_kits/playbook/pb_select/docs/example.yml +2 -0
  23. data/app/pb_kits/playbook/pb_select/docs/index.js +1 -0
  24. data/app/pb_kits/playbook/pb_select/select.html.erb +2 -2
  25. data/app/pb_kits/playbook/pb_select/select.rb +3 -1
  26. data/app/pb_kits/playbook/pb_select/select.test.js +23 -0
  27. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
  28. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
  29. data/app/pb_kits/playbook/tokens/_colors.scss +2 -1
  30. data/app/pb_kits/playbook/utilities/deprecated.ts +11 -3
  31. data/dist/chunks/_typeahead-DMyvWpig.js +6 -0
  32. data/dist/chunks/lib-DDDLiZuu.js +29 -0
  33. data/dist/chunks/vendor.js +2 -2
  34. data/dist/playbook-rails-react-bindings.js +1 -1
  35. data/dist/playbook-rails.js +1 -1
  36. data/dist/playbook.css +1 -1
  37. data/lib/playbook/forms/builder/collection_select_field.rb +9 -1
  38. data/lib/playbook/forms/builder/select_field.rb +9 -1
  39. data/lib/playbook/forms/builder/time_zone_select_field.rb +9 -1
  40. data/lib/playbook/pb_kit_helper.rb +35 -0
  41. data/lib/playbook/version.rb +1 -1
  42. metadata +7 -5
  43. data/app/pb_kits/playbook/utilities/DEPRECATION_WARNINGS.md +0 -82
  44. data/dist/chunks/_typeahead-Mjy3POtc.js +0 -6
  45. data/dist/chunks/lib-CgpqUb6l.js +0 -29
@@ -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
  /**