playbook_ui 14.1.0.pre.alpha.PLAY15063617 → 14.1.0.pre.alpha.fixaction3547

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -2
  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_avatar_action_button/_avatar_action_button.scss +2 -2
  6. data/app/pb_kits/playbook/pb_badge/_badge.scss +0 -9
  7. data/app/pb_kits/playbook/pb_badge/_badge.tsx +3 -8
  8. data/app/pb_kits/playbook/pb_badge/badge.rb +1 -1
  9. data/app/pb_kits/playbook/pb_badge/badge.test.js +11 -17
  10. data/app/pb_kits/playbook/pb_badge/docs/_badge_notification.html.erb +0 -13
  11. data/app/pb_kits/playbook/pb_badge/docs/_badge_notification.jsx +12 -31
  12. data/app/pb_kits/playbook/pb_button/_button.tsx +1 -4
  13. data/app/pb_kits/playbook/pb_button/button.html.erb +1 -1
  14. data/app/pb_kits/playbook/pb_button/button.rb +0 -4
  15. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +1 -1
  16. data/app/pb_kits/playbook/pb_date_time/dateTime.test.js +2 -2
  17. data/app/pb_kits/playbook/pb_dialog/_close_icon.tsx +1 -5
  18. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +1 -3
  19. data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +1 -20
  20. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
  21. data/app/pb_kits/playbook/pb_dialog/dialog_header.rb +0 -4
  22. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +5 -1
  23. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
  24. data/app/pb_kits/playbook/pb_dialog/docs/index.js +0 -1
  25. data/app/pb_kits/playbook/pb_filter/filter.rb +1 -1
  26. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
  27. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +25 -43
  28. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +2 -6
  29. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -2
  30. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +4 -4
  31. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +0 -4
  32. data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -1
  33. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +2 -0
  34. data/app/pb_kits/playbook/pb_pagination/_pagination.scss +13 -49
  35. data/app/pb_kits/playbook/pb_pagination/docs/example.yml +1 -3
  36. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +7 -0
  37. data/app/pb_kits/playbook/pb_popover/_popover.tsx +5 -10
  38. data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +76 -50
  39. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -1
  40. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +1 -2
  41. data/app/pb_kits/playbook/pb_star_rating/index.js +41 -78
  42. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +2 -4
  43. data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +0 -17
  44. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_display.tsx +2 -0
  45. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_interactive.tsx +1 -0
  46. data/app/pb_kits/playbook/pb_time/_time.tsx +8 -12
  47. data/app/pb_kits/playbook/pb_time/time.html.erb +3 -3
  48. data/app/pb_kits/playbook/pb_time/time.rb +0 -4
  49. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -1
  50. data/app/pb_kits/playbook/utilities/globalProps.ts +3 -20
  51. data/dist/chunks/_typeahead-D-4y9pbv.js +22 -0
  52. data/dist/chunks/_weekday_stacked-D5SswkOC.js +45 -0
  53. data/dist/chunks/{lib-DErGXNy3.js → lib-BE0Z3F7x.js} +2 -2
  54. data/dist/chunks/{pb_form_validation-BC6kh7Hu.js → pb_form_validation-TzZQ0Flx.js} +1 -1
  55. data/dist/chunks/vendor.js +1 -1
  56. data/dist/menu.yml +0 -4
  57. data/dist/playbook-doc.js +1 -1
  58. data/dist/playbook-rails-react-bindings.js +1 -1
  59. data/dist/playbook-rails.js +1 -1
  60. data/dist/playbook.css +1 -1
  61. data/lib/playbook/classnames.rb +0 -1
  62. data/lib/playbook/spacing.rb +2 -31
  63. data/lib/playbook/version.rb +1 -1
  64. metadata +9 -31
  65. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.jsx +0 -46
  66. data/app/pb_kits/playbook/pb_gantt_chart/_gantt_chart.scss +0 -3
  67. data/app/pb_kits/playbook/pb_gantt_chart/_gantt_chart.tsx +0 -72
  68. data/app/pb_kits/playbook/pb_gantt_chart/docs/_gantt_chart_default.jsx +0 -53
  69. data/app/pb_kits/playbook/pb_gantt_chart/docs/example.yml +0 -7
  70. data/app/pb_kits/playbook/pb_gantt_chart/docs/index.js +0 -1
  71. data/app/pb_kits/playbook/pb_gantt_chart/gantt_chart.test.jsx +0 -19
  72. data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +0 -164
  73. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx +0 -19
  74. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +0 -1
  75. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +0 -62
  76. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +0 -1
  77. data/app/pb_kits/playbook/pb_pagination/docs/data.js +0 -23
  78. data/app/pb_kits/playbook/pb_pagination/docs/index.js +0 -2
  79. data/app/pb_kits/playbook/pb_rich_text_editor/_previewer_mixin.scss +0 -132
  80. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx +0 -73
  81. data/app/pb_kits/playbook/tokens/_container.scss +0 -21
  82. data/app/pb_kits/playbook/utilities/_min_width.scss +0 -45
  83. data/app/pb_kits/playbook/utilities/icons/allicons.tsx +0 -59
  84. data/app/pb_kits/playbook/utilities/icons/clock.svg +0 -9
  85. data/app/pb_kits/playbook/utilities/icons/spinner.svg +0 -3
  86. data/app/pb_kits/playbook/utilities/icons/times.svg +0 -3
  87. data/dist/chunks/_typeahead-Cq7RLPBA.js +0 -22
  88. data/dist/chunks/_weekday_stacked-Cykj5kLZ.js +0 -45
  89. /data/app/pb_kits/playbook/pb_pagination/docs/{_pagination_default_rails.md → _pagination_default.md} +0 -0
@@ -1 +1 @@
1
- import{P as PbEnhancedElement,d as debounce}from"./lib-DErGXNy3.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-BE0Z3F7x.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-Cykj5kLZ.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-Cq7RLPBA.js";import"./lib-DErGXNy3.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
1
+ import"./_weekday_stacked-D5SswkOC.js";import"./lazysizes-B7xYodB-.js";import"./_typeahead-D-4y9pbv.js";import"./lib-BE0Z3F7x.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-trix";import"trix";import"react-is";
data/dist/menu.yml CHANGED
@@ -111,9 +111,6 @@ kits:
111
111
  platforms: *1
112
112
  description:
113
113
  status: stable
114
- - name: gantt_chart
115
- platforms: *2
116
- status: beta
117
114
  - name: line_graph
118
115
  platforms: *1
119
116
  description: Line graphs are used to show changes in data over time.
@@ -569,4 +566,3 @@ kits:
569
566
  with avatar, titles, name and territory. This is a versatile kit with features
570
567
  than can be added to display more info.
571
568
  status: stable
572
-