playbook_ui 14.15.0.pre.alpha.play1910emptystatekitreactbeta6579 → 14.15.0.pre.alpha.play1917lodashremoval2of36615

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +2 -4
  3. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +1 -1
  5. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +2 -1
  6. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +1 -1
  7. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.tsx +1 -1
  8. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.tsx +1 -1
  9. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.tsx +1 -1
  10. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +1 -1
  11. data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -1
  12. data/app/pb_kits/playbook/pb_popover/popover.test.js +1 -1
  13. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +2 -3
  14. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon_rails.html.erb +22 -0
  15. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +1 -0
  16. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +1 -1
  17. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +16 -4
  18. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +66 -0
  19. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md +1 -0
  20. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +1 -1
  22. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +1 -0
  23. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
  24. data/app/pb_kits/playbook/utilities/object.test.js +139 -1
  25. data/app/pb_kits/playbook/utilities/object.ts +74 -0
  26. data/app/pb_kits/playbook/utilities/text.ts +1 -1
  27. data/dist/chunks/_typeahead-CdVbIURO.js +36 -0
  28. data/dist/chunks/_weekday_stacked-BSTKfYPJ.js +45 -0
  29. data/dist/chunks/{lib-5OzNgeeu.js → lib-e7oBFFDo.js} +2 -2
  30. data/dist/chunks/{pb_form_validation-DGhKbZtO.js → pb_form_validation-CMXevI1t.js} +1 -1
  31. data/dist/chunks/vendor.js +1 -1
  32. data/dist/menu.yml +0 -8
  33. data/dist/playbook-doc.js +1 -1
  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/version.rb +1 -1
  38. metadata +9 -15
  39. data/app/pb_kits/playbook/pb_empty_state/_empty_state.scss +0 -38
  40. data/app/pb_kits/playbook/pb_empty_state/_empty_state.tsx +0 -199
  41. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +0 -38
  42. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +0 -19
  43. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +0 -35
  44. data/app/pb_kits/playbook/pb_empty_state/docs/example.yml +0 -7
  45. data/app/pb_kits/playbook/pb_empty_state/docs/index.js +0 -3
  46. data/app/pb_kits/playbook/pb_empty_state/empty_state.test.jsx +0 -17
  47. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.erb +0 -10
  48. data/dist/chunks/_typeahead-D2Wtk1Vx.js +0 -36
  49. data/dist/chunks/_weekday_stacked-toeDpRDd.js +0 -45
@@ -1 +1 @@
1
- import{P as PbEnhancedElement,d as debounce}from"./lib-5OzNgeeu.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-e7oBFFDo.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-toeDpRDd.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-D2Wtk1Vx.js";import"./lib-5OzNgeeu.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
1
+ import"./_weekday_stacked-BSTKfYPJ.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-CdVbIURO.js";import"./lib-e7oBFFDo.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
data/dist/menu.yml CHANGED
@@ -904,11 +904,3 @@ kits:
904
904
  icons_used: false
905
905
  react_rendered: false
906
906
  enhanced_element_used: false
907
- - category: empty_state
908
- components:
909
- - name: empty_state
910
- platforms: react_only
911
- status: beta
912
- icons_used: false
913
- react_rendered: false
914
- enhanced_element_used: false