playbook_ui 14.1.0.pre.alpha.PBNTR455ganttchartPOC3569 → 14.1.0.pre.alpha.PBNTR462starratingdefaultvalue3579

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +3 -3
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -1
  5. data/app/pb_kits/playbook/pb_badge/_badge.scss +9 -0
  6. data/app/pb_kits/playbook/pb_badge/_badge.tsx +8 -3
  7. data/app/pb_kits/playbook/pb_badge/badge.rb +1 -1
  8. data/app/pb_kits/playbook/pb_badge/badge.test.js +17 -11
  9. data/app/pb_kits/playbook/pb_badge/docs/_badge_notification.html.erb +13 -0
  10. data/app/pb_kits/playbook/pb_badge/docs/_badge_notification.jsx +31 -12
  11. data/app/pb_kits/playbook/pb_button/_button.tsx +4 -1
  12. data/app/pb_kits/playbook/pb_button/button.html.erb +1 -1
  13. data/app/pb_kits/playbook/pb_button/button.rb +4 -0
  14. data/app/pb_kits/playbook/pb_date_time/dateTime.test.js +2 -2
  15. data/app/pb_kits/playbook/pb_dialog/_close_icon.tsx +5 -1
  16. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +3 -1
  17. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +4 -1
  18. data/app/pb_kits/playbook/pb_dialog/dialog.rb +3 -0
  19. data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +20 -1
  20. data/app/pb_kits/playbook/pb_dialog/dialogHelper.js +21 -0
  21. data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +4 -2
  22. data/app/pb_kits/playbook/pb_dialog/dialog_footer.rb +10 -1
  23. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
  24. data/app/pb_kits/playbook/pb_dialog/dialog_header.rb +4 -0
  25. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +1 -5
  26. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +13 -0
  27. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.jsx +46 -0
  28. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.md +3 -0
  29. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +2 -1
  30. data/app/pb_kits/playbook/pb_dialog/docs/index.js +1 -0
  31. data/app/pb_kits/playbook/pb_filter/filter.rb +1 -1
  32. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -0
  33. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +43 -25
  34. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +6 -2
  35. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -2
  36. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +4 -4
  37. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +4 -0
  38. data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -1
  39. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +0 -2
  40. data/app/pb_kits/playbook/pb_pagination/_pagination.scss +49 -13
  41. data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +164 -0
  42. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx +19 -0
  43. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +1 -0
  44. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +62 -0
  45. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -0
  46. data/app/pb_kits/playbook/pb_pagination/docs/data.js +23 -0
  47. data/app/pb_kits/playbook/pb_pagination/docs/example.yml +3 -1
  48. data/app/pb_kits/playbook/pb_pagination/docs/index.js +2 -0
  49. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +0 -7
  50. data/app/pb_kits/playbook/pb_popover/_popover.tsx +10 -5
  51. data/app/pb_kits/playbook/pb_star_rating/index.js +88 -41
  52. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +4 -2
  53. data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +19 -0
  54. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_display.tsx +0 -2
  55. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_interactive.tsx +0 -1
  56. data/app/pb_kits/playbook/pb_time/_time.tsx +12 -8
  57. data/app/pb_kits/playbook/pb_time/time.html.erb +3 -3
  58. data/app/pb_kits/playbook/pb_time/time.rb +4 -0
  59. data/app/pb_kits/playbook/tokens/_container.scss +21 -0
  60. data/app/pb_kits/playbook/utilities/_min_width.scss +45 -0
  61. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -0
  62. data/app/pb_kits/playbook/utilities/globalProps.ts +20 -3
  63. data/app/pb_kits/playbook/utilities/icons/allicons.tsx +59 -0
  64. data/app/pb_kits/playbook/utilities/icons/clock.svg +9 -0
  65. data/app/pb_kits/playbook/utilities/icons/spinner.svg +3 -0
  66. data/app/pb_kits/playbook/utilities/icons/times.svg +3 -0
  67. data/dist/chunks/_typeahead-nSyn1ajB.js +22 -0
  68. data/dist/chunks/_weekday_stacked-iq_X37be.js +45 -0
  69. data/dist/chunks/{lib-XlOB2yGW.js → lib-D9uVVKnh.js} +2 -2
  70. data/dist/chunks/{pb_form_validation-mwEv7D-z.js → pb_form_validation-u2wnZ3oe.js} +1 -1
  71. data/dist/chunks/vendor.js +1 -1
  72. data/dist/playbook-doc.js +1 -1
  73. data/dist/playbook-rails-react-bindings.js +1 -1
  74. data/dist/playbook-rails.js +1 -1
  75. data/dist/playbook.css +1 -1
  76. data/lib/playbook/classnames.rb +1 -0
  77. data/lib/playbook/spacing.rb +31 -2
  78. data/lib/playbook/version.rb +1 -1
  79. metadata +25 -9
  80. data/dist/chunks/_typeahead-B6CmTH6o.js +0 -22
  81. data/dist/chunks/_weekday_stacked-CNZpeoOR.js +0 -45
  82. /data/app/pb_kits/playbook/pb_pagination/docs/{_pagination_default.md → _pagination_default_rails.md} +0 -0
@@ -1 +1 @@
1
- import{P as PbEnhancedElement,d as debounce}from"./lib-XlOB2yGW.js";const KIT_SELECTOR='[class^="pb_"][class*="_kit"]';const ERROR_MESSAGE_SELECTOR=".pb_body_kit_negative";const FORM_SELECTOR='form[data-pb-form-validation="true"]';const REQUIRED_FIELDS_SELECTOR="input[required],textarea[required],select[required]";const FIELD_EVENTS=["change","valid","invalid"];class PbFormValidation extends PbEnhancedElement{static get selector(){return FORM_SELECTOR}connect(){this.formValidationFields.forEach((field=>{FIELD_EVENTS.forEach((e=>{field.addEventListener(e,debounce((event=>{this.validateFormField(event)}),250),false)}))}))}validateFormField(event){event.preventDefault();const{target:target}=event;target.setCustomValidity("");const isValid=event.target.validity.valid;if(isValid){this.clearError(target)}else{this.showValidationMessage(target)}}showValidationMessage(target){const{parentElement:parentElement}=target;this.clearError(target);parentElement.closest(KIT_SELECTOR).classList.add("error");const errorMessageContainer=this.errorMessageContainer;if(target.dataset.message)target.setCustomValidity(target.dataset.message);errorMessageContainer.innerHTML=target.validationMessage;parentElement.appendChild(errorMessageContainer)}clearError(target){const{parentElement:parentElement}=target;parentElement.closest(KIT_SELECTOR).classList.remove("error");const errorMessageContainer=parentElement.querySelector(ERROR_MESSAGE_SELECTOR);if(errorMessageContainer)errorMessageContainer.remove()}get errorMessageContainer(){const errorContainer=document.createElement("div");const kitClassName=ERROR_MESSAGE_SELECTOR.replace(/\./,"");errorContainer.classList.add(kitClassName);return errorContainer}get formValidationFields(){return this._formValidationFields=this._formValidationFields||this.element.querySelectorAll(REQUIRED_FIELDS_SELECTOR)}}window.PbFormValidation=PbFormValidation;
1
+ import{P as PbEnhancedElement,d as debounce}from"./lib-D9uVVKnh.js";const KIT_SELECTOR='[class^="pb_"][class*="_kit"]';const ERROR_MESSAGE_SELECTOR=".pb_body_kit_negative";const FORM_SELECTOR='form[data-pb-form-validation="true"]';const REQUIRED_FIELDS_SELECTOR="input[required],textarea[required],select[required]";const FIELD_EVENTS=["change","valid","invalid"];class PbFormValidation extends PbEnhancedElement{static get selector(){return FORM_SELECTOR}connect(){this.formValidationFields.forEach((field=>{FIELD_EVENTS.forEach((e=>{field.addEventListener(e,debounce((event=>{this.validateFormField(event)}),250),false)}))}))}validateFormField(event){event.preventDefault();const{target:target}=event;target.setCustomValidity("");const isValid=event.target.validity.valid;if(isValid){this.clearError(target)}else{this.showValidationMessage(target)}}showValidationMessage(target){const{parentElement:parentElement}=target;this.clearError(target);parentElement.closest(KIT_SELECTOR).classList.add("error");const errorMessageContainer=this.errorMessageContainer;if(target.dataset.message)target.setCustomValidity(target.dataset.message);errorMessageContainer.innerHTML=target.validationMessage;parentElement.appendChild(errorMessageContainer)}clearError(target){const{parentElement:parentElement}=target;parentElement.closest(KIT_SELECTOR).classList.remove("error");const errorMessageContainer=parentElement.querySelector(ERROR_MESSAGE_SELECTOR);if(errorMessageContainer)errorMessageContainer.remove()}get errorMessageContainer(){const errorContainer=document.createElement("div");const kitClassName=ERROR_MESSAGE_SELECTOR.replace(/\./,"");errorContainer.classList.add(kitClassName);return errorContainer}get formValidationFields(){return this._formValidationFields=this._formValidationFields||this.element.querySelectorAll(REQUIRED_FIELDS_SELECTOR)}}window.PbFormValidation=PbFormValidation;
@@ -1 +1 @@
1
- import"./_weekday_stacked-CNZpeoOR.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-B6CmTH6o.js";import"./lib-XlOB2yGW.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
1
+ import"./_weekday_stacked-iq_X37be.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-nSyn1ajB.js";import"./lib-D9uVVKnh.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";