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
package/primereact.all.js CHANGED
@@ -273,7 +273,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
273
273
  key: "getOuterWidth",
274
274
  value: function getOuterWidth(el, margin) {
275
275
  if (el) {
276
- var width = el.offsetWidth;
276
+ var width = el.offsetWidth || el.getBoundingClientRect().width;
277
277
 
278
278
  if (margin) {
279
279
  var style = getComputedStyle(el);
@@ -289,7 +289,7 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
289
289
  key: "getOuterHeight",
290
290
  value: function getOuterHeight(el, margin) {
291
291
  if (el) {
292
- var height = el.offsetHeight;
292
+ var height = el.offsetHeight || el.getBoundingClientRect().height;
293
293
 
294
294
  if (margin) {
295
295
  var style = getComputedStyle(el);
@@ -4120,15 +4120,14 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
4120
4120
  }, {
4121
4121
  key: "renderIcon",
4122
4122
  value: function renderIcon() {
4123
- var _classNames;
4124
-
4125
4123
  var icon = this.props.loading ? this.props.loadingIcon : this.props.icon;
4126
-
4127
- var iconType = _typeof(icon);
4128
-
4129
- var className = classNames('p-button-icon p-c', (_classNames = {
4130
- 'p-button-loading-icon': this.props.loading
4131
- }, _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));
4124
+ var className = classNames('p-button-icon p-c', {
4125
+ 'p-button-loading-icon': this.props.loading,
4126
+ 'p-button-icon-left': this.props.iconPos === 'left' && this.props.label,
4127
+ 'p-button-icon-right': this.props.iconPos === 'right' && this.props.label,
4128
+ 'p-button-icon-top': this.props.iconPos === 'top' && this.props.label,
4129
+ 'p-button-icon-bottom': this.props.iconPos === 'bottom' && this.props.label
4130
+ });
4132
4131
  return IconUtils.getJSXIcon(icon, {
4133
4132
  className: className
4134
4133
  }, {
@@ -34074,11 +34073,10 @@ var primereact = (function (exports, React, reactTransitionGroup, ReactDOM) {
34074
34073
  }
34075
34074
  }, {
34076
34075
  key: "onOverlayEntered",
34077
- value: function onOverlayEntered(callback) {
34076
+ value: function onOverlayEntered() {
34078
34077
  this.bindDocumentClickListener();
34079
34078
  this.bindScrollListener();
34080
34079
  this.bindResizeListener();
34081
- callback && callback();
34082
34080
  this.props.onShow && this.props.onShow();
34083
34081
  }
34084
34082
  }, {