primereact 7.0.0 → 7.0.1

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 (120) hide show
  1. package/button/button.cjs.js +23 -24
  2. package/button/button.cjs.min.js +1 -1
  3. package/button/button.esm.js +23 -24
  4. package/button/button.esm.min.js +1 -1
  5. package/button/button.js +23 -24
  6. package/button/button.min.js +1 -1
  7. package/confirmdialog/confirmdialog.d.ts +2 -2
  8. package/core/core.js +25 -26
  9. package/core/core.min.js +2 -2
  10. package/multiselect/multiselect.cjs.js +1 -2
  11. package/multiselect/multiselect.cjs.min.js +1 -1
  12. package/multiselect/multiselect.esm.js +1 -2
  13. package/multiselect/multiselect.esm.min.js +1 -1
  14. package/multiselect/multiselect.js +1 -2
  15. package/multiselect/multiselect.min.js +1 -1
  16. package/package.json +1 -1
  17. package/primereact.all.cjs.js +10 -12
  18. package/primereact.all.cjs.min.js +1 -1
  19. package/primereact.all.esm.js +10 -12
  20. package/primereact.all.esm.min.js +1 -1
  21. package/primereact.all.js +10 -12
  22. package/primereact.all.min.js +1 -1
  23. package/resources/primereact.css +94 -95
  24. package/resources/primereact.min.css +1 -1
  25. package/resources/themes/arya-blue/theme.css +2 -2
  26. package/resources/themes/arya-green/theme.css +2 -2
  27. package/resources/themes/arya-orange/theme.css +2 -2
  28. package/resources/themes/arya-purple/theme.css +2 -2
  29. package/resources/themes/bootstrap4-dark-blue/theme.css +2 -2
  30. package/resources/themes/bootstrap4-dark-purple/theme.css +2 -2
  31. package/resources/themes/bootstrap4-light-blue/theme.css +2 -2
  32. package/resources/themes/bootstrap4-light-purple/theme.css +2 -2
  33. package/resources/themes/fluent-light/theme.css +2 -2
  34. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  35. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  36. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  37. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  38. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  39. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  40. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  41. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  42. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  43. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  44. package/resources/themes/lara-dark-blue/theme.css +5671 -0
  45. package/resources/themes/lara-dark-indigo/theme.css +2 -2
  46. package/resources/themes/lara-dark-purple/theme.css +79 -79
  47. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  48. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  49. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  50. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  51. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  52. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  53. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  54. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  55. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  56. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  57. package/resources/themes/lara-dark-teal/theme.css +5671 -0
  58. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  59. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  60. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  61. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  62. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  63. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  64. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  65. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  66. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  67. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  68. package/resources/themes/lara-light-blue/theme.css +5671 -0
  69. package/resources/themes/lara-light-indigo/theme.css +85 -85
  70. package/resources/themes/lara-light-purple/theme.css +85 -85
  71. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  72. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  73. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  74. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  75. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  76. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  77. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  78. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  79. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  80. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  81. package/resources/themes/lara-light-teal/theme.css +5671 -0
  82. package/resources/themes/luna-amber/theme.css +2 -2
  83. package/resources/themes/luna-blue/theme.css +2 -2
  84. package/resources/themes/luna-green/theme.css +2 -2
  85. package/resources/themes/luna-pink/theme.css +2 -2
  86. package/resources/themes/md-dark-deeppurple/theme.css +2 -2
  87. package/resources/themes/md-dark-indigo/theme.css +2 -2
  88. package/resources/themes/md-light-deeppurple/theme.css +12 -6
  89. package/resources/themes/md-light-indigo/theme.css +2 -2
  90. package/resources/themes/mdc-dark-deeppurple/theme.css +2 -2
  91. package/resources/themes/mdc-dark-indigo/theme.css +2 -2
  92. package/resources/themes/mdc-light-deeppurple/theme.css +2 -2
  93. package/resources/themes/mdc-light-indigo/theme.css +2 -2
  94. package/resources/themes/nova/theme.css +2 -2
  95. package/resources/themes/nova-accent/theme.css +2 -2
  96. package/resources/themes/nova-alt/theme.css +2 -2
  97. package/resources/themes/rhea/theme.css +2 -2
  98. package/resources/themes/saga-blue/theme.css +2 -2
  99. package/resources/themes/saga-green/theme.css +2 -2
  100. package/resources/themes/saga-orange/theme.css +2 -2
  101. package/resources/themes/saga-purple/theme.css +2 -2
  102. package/resources/themes/tailwind-light/theme.css +2 -2
  103. package/resources/themes/vela-blue/theme.css +2 -2
  104. package/resources/themes/vela-green/theme.css +2 -2
  105. package/resources/themes/vela-orange/theme.css +2 -2
  106. package/resources/themes/vela-purple/theme.css +2 -2
  107. package/tooltip/tooltip.min.css +1 -1
  108. package/treetable/treetable.cjs.js +2 -2
  109. package/treetable/treetable.cjs.min.js +1 -1
  110. package/treetable/treetable.esm.js +2 -2
  111. package/treetable/treetable.esm.min.js +1 -1
  112. package/treetable/treetable.js +2 -2
  113. package/treetable/treetable.min.js +1 -1
  114. package/utils/utils.cjs.js +2 -2
  115. package/utils/utils.cjs.min.js +1 -1
  116. package/utils/utils.esm.js +2 -2
  117. package/utils/utils.esm.min.js +1 -1
  118. package/utils/utils.js +2 -2
  119. package/utils/utils.min.js +1 -1
  120. package/web-types.json +1 -1
@@ -269,7 +269,7 @@ var DomHandler = /*#__PURE__*/function () {
269
269
  key: "getOuterWidth",
270
270
  value: function getOuterWidth(el, margin) {
271
271
  if (el) {
272
- var width = el.offsetWidth;
272
+ var width = el.offsetWidth || el.getBoundingClientRect().width;
273
273
 
274
274
  if (margin) {
275
275
  var style = getComputedStyle(el);
@@ -285,7 +285,7 @@ var DomHandler = /*#__PURE__*/function () {
285
285
  key: "getOuterHeight",
286
286
  value: function getOuterHeight(el, margin) {
287
287
  if (el) {
288
- var height = el.offsetHeight;
288
+ var height = el.offsetHeight || el.getBoundingClientRect().height;
289
289
 
290
290
  if (margin) {
291
291
  var style = getComputedStyle(el);
@@ -4116,15 +4116,14 @@ var ButtonComponent = /*#__PURE__*/function (_Component) {
4116
4116
  }, {
4117
4117
  key: "renderIcon",
4118
4118
  value: function renderIcon() {
4119
- var _classNames;
4120
-
4121
4119
  var icon = this.props.loading ? this.props.loadingIcon : this.props.icon;
4122
-
4123
- var iconType = _typeof(icon);
4124
-
4125
- var className = classNames('p-button-icon p-c', (_classNames = {
4126
- 'p-button-loading-icon': this.props.loading
4127
- }, _defineProperty(_classNames, "".concat(icon), iconType === 'string'), _defineProperty(_classNames, 'p-button-icon-left', this.props.iconPos === 'left' && this.props.label), _defineProperty(_classNames, 'p-button-icon-right', this.props.iconPos === 'right' && this.props.label), _defineProperty(_classNames, 'p-button-icon-top', this.props.iconPos === 'top' && this.props.label), _defineProperty(_classNames, 'p-button-icon-bottom', this.props.iconPos === 'bottom' && this.props.label), _classNames));
4120
+ var className = classNames('p-button-icon p-c', {
4121
+ 'p-button-loading-icon': this.props.loading,
4122
+ 'p-button-icon-left': this.props.iconPos === 'left' && this.props.label,
4123
+ 'p-button-icon-right': this.props.iconPos === 'right' && this.props.label,
4124
+ 'p-button-icon-top': this.props.iconPos === 'top' && this.props.label,
4125
+ 'p-button-icon-bottom': this.props.iconPos === 'bottom' && this.props.label
4126
+ });
4128
4127
  return IconUtils.getJSXIcon(icon, {
4129
4128
  className: className
4130
4129
  }, {
@@ -34070,11 +34069,10 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
34070
34069
  }
34071
34070
  }, {
34072
34071
  key: "onOverlayEntered",
34073
- value: function onOverlayEntered(callback) {
34072
+ value: function onOverlayEntered() {
34074
34073
  this.bindDocumentClickListener();
34075
34074
  this.bindScrollListener();
34076
34075
  this.bindResizeListener();
34077
- callback && callback();
34078
34076
  this.props.onShow && this.props.onShow();
34079
34077
  }
34080
34078
  }, {