@porsche-design-system/components-react 3.17.0 → 3.18.0

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 (287) hide show
  1. package/CHANGELOG.md +73 -35
  2. package/cjs/hooks.cjs +1 -0
  3. package/cjs/lib/components/textarea.wrapper.cjs +29 -0
  4. package/cjs/public-api.cjs +2 -0
  5. package/esm/hooks.mjs +1 -0
  6. package/esm/lib/components/index.d.ts +1 -0
  7. package/esm/lib/components/textarea.wrapper.d.ts +198 -0
  8. package/esm/lib/components/textarea.wrapper.mjs +27 -0
  9. package/esm/lib/types.d.ts +25 -0
  10. package/esm/public-api.mjs +1 -0
  11. package/package.json +2 -2
  12. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +390 -236
  13. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +13 -1
  14. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/hooks.cjs +1 -0
  15. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.cjs +1 -4
  16. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +1 -4
  17. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.cjs +1 -4
  18. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +1 -4
  19. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.cjs +1 -4
  20. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.cjs +1 -4
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/canvas.wrapper.cjs +1 -4
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.cjs +1 -4
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.cjs +1 -4
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.cjs +1 -4
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.cjs +1 -4
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -4
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.cjs +1 -4
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.cjs +1 -4
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.cjs +1 -4
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.cjs +1 -4
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.cjs +1 -4
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-multilevel-item.wrapper.cjs +1 -4
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-multilevel.wrapper.cjs +1 -4
  34. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +1 -4
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.cjs +1 -4
  36. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.cjs +1 -4
  37. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +1 -4
  38. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.cjs +1 -4
  39. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -4
  40. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.cjs +1 -4
  41. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +1 -4
  42. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.cjs +1 -4
  43. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.cjs +1 -4
  44. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-product.wrapper.cjs +1 -4
  45. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.cjs +1 -4
  46. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.cjs +1 -4
  47. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.cjs +1 -4
  48. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.cjs +1 -4
  49. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.cjs +1 -4
  50. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select-option.wrapper.cjs +1 -4
  51. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.cjs +1 -4
  52. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/optgroup.wrapper.cjs +1 -4
  53. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.cjs +1 -4
  54. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.cjs +1 -4
  55. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.cjs +1 -4
  56. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.cjs +1 -4
  57. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.cjs +1 -4
  58. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control-item.wrapper.cjs +1 -4
  59. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.cjs +1 -4
  60. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select-option.wrapper.cjs +1 -4
  61. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.cjs +1 -4
  62. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.cjs +1 -4
  63. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.cjs +1 -4
  64. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +1 -4
  65. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal-item.wrapper.cjs +1 -4
  66. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.cjs +1 -4
  67. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.cjs +1 -4
  68. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table-body.wrapper.cjs +1 -4
  69. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table-cell.wrapper.cjs +1 -4
  70. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-cell.wrapper.cjs +1 -4
  71. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-row.wrapper.cjs +1 -4
  72. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table-head.wrapper.cjs +1 -4
  73. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table-row.wrapper.cjs +1 -4
  74. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.cjs +1 -4
  75. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.cjs +1 -4
  76. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-item.wrapper.cjs +1 -4
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.cjs +1 -4
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tag-dismissible.wrapper.cjs +1 -4
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.cjs +1 -4
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.cjs +1 -4
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.cjs +1 -4
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.cjs +1 -4
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +1 -4
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.cjs +1 -4
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.cjs +39 -0
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/toast.wrapper.cjs +1 -4
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.cjs +1 -4
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -0
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -0
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +1 -0
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +1 -0
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -0
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -0
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +3 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -0
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.cjs +1 -0
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.cjs +1 -0
  98. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +4 -3
  99. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +3 -2
  100. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -0
  101. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +1 -0
  102. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -0
  103. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +1 -0
  104. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +1 -0
  105. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -0
  106. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +4 -3
  107. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -0
  108. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -1
  109. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +1 -0
  110. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -0
  111. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -0
  112. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -0
  113. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +5 -4
  114. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -0
  115. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +1 -0
  116. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
  117. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -0
  118. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -1
  119. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -0
  120. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +1 -0
  121. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -0
  122. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -0
  123. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +1 -0
  124. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -0
  125. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -0
  126. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -0
  127. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +1 -0
  128. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -0
  129. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -0
  130. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +40 -0
  131. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
  132. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +320 -167
  133. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +13 -2
  134. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -0
  135. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.mjs +1 -4
  136. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +1 -4
  137. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.mjs +1 -4
  138. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +1 -4
  139. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.mjs +1 -4
  140. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.mjs +1 -4
  141. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/canvas.wrapper.mjs +1 -4
  142. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.mjs +1 -4
  143. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.mjs +1 -4
  144. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.mjs +1 -4
  145. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.mjs +1 -4
  146. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -4
  147. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.mjs +1 -4
  148. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.mjs +1 -4
  149. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.mjs +1 -4
  150. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.mjs +1 -4
  151. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.mjs +1 -4
  152. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-multilevel-item.wrapper.mjs +1 -4
  153. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-multilevel.wrapper.mjs +1 -4
  154. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +1 -4
  155. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.mjs +1 -4
  156. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.mjs +1 -4
  157. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +1 -4
  158. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.mjs +1 -4
  159. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -4
  160. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.mjs +1 -4
  161. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +1 -4
  162. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.mjs +1 -4
  163. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.mjs +1 -4
  164. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-product.wrapper.mjs +1 -4
  165. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.mjs +1 -4
  166. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.mjs +1 -4
  167. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.mjs +1 -4
  168. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.mjs +1 -4
  169. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.mjs +1 -4
  170. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select-option.wrapper.mjs +1 -4
  171. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.mjs +1 -4
  172. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/optgroup.wrapper.mjs +1 -4
  173. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.mjs +1 -4
  174. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.mjs +1 -4
  175. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.mjs +1 -4
  176. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.mjs +1 -4
  177. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.mjs +1 -4
  178. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control-item.wrapper.mjs +1 -4
  179. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.mjs +1 -4
  180. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-option.wrapper.mjs +1 -4
  181. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.mjs +1 -4
  182. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.mjs +1 -4
  183. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.mjs +1 -4
  184. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +1 -4
  185. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal-item.wrapper.mjs +1 -4
  186. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.mjs +1 -4
  187. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.mjs +1 -4
  188. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-body.wrapper.mjs +1 -4
  189. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-cell.wrapper.mjs +1 -4
  190. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-cell.wrapper.mjs +1 -4
  191. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-row.wrapper.mjs +1 -4
  192. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head.wrapper.mjs +1 -4
  193. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-row.wrapper.mjs +1 -4
  194. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.mjs +1 -4
  195. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.mjs +1 -4
  196. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-item.wrapper.mjs +1 -4
  197. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.mjs +1 -4
  198. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag-dismissible.wrapper.mjs +1 -4
  199. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.mjs +1 -4
  200. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.mjs +1 -4
  201. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.mjs +1 -4
  202. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.mjs +1 -4
  203. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +1 -4
  204. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.mjs +1 -4
  205. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.mjs +37 -0
  206. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/toast.wrapper.mjs +1 -4
  207. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.mjs +1 -4
  208. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +3 -2
  209. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -2
  210. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
  211. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
  212. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +3 -2
  213. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +3 -2
  214. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +3 -2
  215. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +5 -3
  216. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -2
  217. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
  218. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
  219. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
  220. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
  221. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
  222. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
  223. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
  224. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
  225. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +3 -2
  226. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.mjs +3 -2
  227. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +6 -5
  228. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
  229. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
  230. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
  231. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
  232. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
  233. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +5 -4
  234. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +3 -2
  235. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +3 -2
  236. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +3 -2
  237. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +3 -2
  238. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +3 -2
  239. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +3 -2
  240. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
  241. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +6 -5
  242. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
  243. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +3 -2
  244. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +4 -3
  245. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
  246. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +3 -2
  247. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -2
  248. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +3 -2
  249. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -2
  250. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +7 -6
  251. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +3 -2
  252. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +2 -2
  253. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +3 -2
  254. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +3 -2
  255. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -2
  256. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +4 -3
  257. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
  258. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +1 -0
  259. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +3 -2
  260. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +3 -2
  261. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +3 -2
  262. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs +2 -2
  263. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +2 -2
  264. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +3 -2
  265. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.mjs +2 -2
  266. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs +2 -2
  267. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs +2 -2
  268. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +3 -2
  269. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +3 -2
  270. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs +2 -2
  271. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +3 -2
  272. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +3 -2
  273. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +3 -2
  274. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +3 -2
  275. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.mjs +2 -2
  276. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.mjs +2 -2
  277. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +2 -2
  278. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +2 -2
  279. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +38 -0
  280. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
  281. package/ssr/esm/lib/components/index.d.ts +1 -0
  282. package/ssr/esm/lib/components/textarea.wrapper.d.ts +198 -0
  283. package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +1 -1
  284. package/ssr/esm/lib/dsr-components/select-option.d.ts +1 -1
  285. package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +1 -1
  286. package/ssr/esm/lib/dsr-components/textarea.d.ts +16 -0
  287. package/ssr/esm/lib/types.d.ts +25 -0
@@ -3604,6 +3604,21 @@ const motionEasingMap = {
3604
3604
  out: motionEasingOut,
3605
3605
  linear: 'linear',
3606
3606
  };
3607
+ /**
3608
+ * Base value used for spacing calculations
3609
+ *
3610
+ * This constant defines the base value of 16 pixels, which serves as a
3611
+ * standard unit for calculating relative sizes. By multiplying this base
3612
+ * value with scaling factors and proportions, you can derive consistent
3613
+ * and proportional dimensions and spacings throughout the design.
3614
+ *
3615
+ * Example:
3616
+ * const spacing = scalingFactor * proportion * SCALING_BASE_VALUE;
3617
+ */
3618
+ const SCALING_BASE_VALUE = '16px';
3619
+ const dismissButtonJssStyle = {
3620
+ '--p-internal-button-scaling': 0,
3621
+ };
3607
3622
  const cssVariableTransitionDuration = '--p-transition-duration';
3608
3623
  const cssVariableAnimationDuration = '--p-animation-duration';
3609
3624
  const getTransition = (cssProperty, duration = 'short', easing = 'base', delay) => {
@@ -3613,9 +3628,10 @@ const addImportantToRule = (value) => `${value} !important`;
3613
3628
  const addImportantToEachRule = (input) => {
3614
3629
  return Object.entries(input).reduce((result, [key, value]) => value === null
3615
3630
  ? result
3616
- : ((result[key] =
3617
- typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3618
- result), {});
3631
+ : // @ts-expect-error: Type string can't be used to index type JssStyle
3632
+ ((result[key] =
3633
+ typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3634
+ result), {});
3619
3635
  };
3620
3636
  // TODO: this is workaround, in order the colors to be bundled in the main bundle, we need to have at least one function here, which is used in project and which calls "getThemedColors"
3621
3637
  // TODO: This mechanism needs to be investigated as part of refactoring
@@ -3744,6 +3760,12 @@ const prefersColorSchemeDarkMediaQuery = (theme, style) => {
3744
3760
  return isThemeAuto(theme) && { '@media (prefers-color-scheme: dark)': style };
3745
3761
  };
3746
3762
 
3763
+ const preventFoucOfNestedElementsStyles = {
3764
+ ':not(:defined,[data-ssr])': {
3765
+ visibility: 'hidden',
3766
+ },
3767
+ };
3768
+
3747
3769
  const getSchemedHighContrastMediaQuery = (light, dark) => {
3748
3770
  return {
3749
3771
  '@media (forced-colors: active) and (prefers-color-scheme: light)': light,
@@ -3931,7 +3953,7 @@ const formatObjectOutput = (value) => {
3931
3953
  'value, ' +
3932
3954
  formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '');
3933
3955
 
3934
- const getComponentCss$17 = (size, compact, open, theme, sticky) => {
3956
+ const getComponentCss$18 = (size, compact, open, theme, sticky) => {
3935
3957
  const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
3936
3958
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
3937
3959
  const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
@@ -3954,6 +3976,7 @@ const getComponentCss$17 = (size, compact, open, theme, sticky) => {
3954
3976
  ...hostHiddenStyles,
3955
3977
  }),
3956
3978
  },
3979
+ ...preventFoucOfNestedElementsStyles,
3957
3980
  button: {
3958
3981
  display: 'flex',
3959
3982
  position: 'relative',
@@ -4100,7 +4123,7 @@ const cssVariableTop = '--p-banner-position-top';
4100
4123
  const cssVariableBottom = '--p-banner-position-bottom';
4101
4124
  const cssVariableZIndex = '--p-internal-banner-z-index';
4102
4125
  const topBottomFallback = '56px';
4103
- const getComponentCss$16 = (isOpen) => {
4126
+ const getComponentCss$17 = (isOpen) => {
4104
4127
  return getCss({
4105
4128
  '@global': {
4106
4129
  ':host': {
@@ -4153,6 +4176,7 @@ const getComponentCss$16 = (isOpen) => {
4153
4176
  ...hostHiddenStyles,
4154
4177
  }),
4155
4178
  },
4179
+ ...preventFoucOfNestedElementsStyles,
4156
4180
  },
4157
4181
  });
4158
4182
  };
@@ -4171,7 +4195,7 @@ const getGroupDirectionJssStyles = (direction) => {
4171
4195
  return groupDirectionJssStyles[direction];
4172
4196
  };
4173
4197
 
4174
- const getComponentCss$15 = (direction) => {
4198
+ const getComponentCss$16 = (direction) => {
4175
4199
  return getCss({
4176
4200
  '@global': {
4177
4201
  ':host': {
@@ -4238,6 +4262,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4238
4262
  ...(!responsiveStretch && { verticalAlign: 'top' }),
4239
4263
  })),
4240
4264
  },
4265
+ ...preventFoucOfNestedElementsStyles,
4241
4266
  },
4242
4267
  root: {
4243
4268
  display: 'flex',
@@ -4323,7 +4348,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
4323
4348
  };
4324
4349
  };
4325
4350
 
4326
- const getComponentCss$14 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
4351
+ const getComponentCss$15 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
4327
4352
  const hasIcon = hasVisibleIcon(icon, iconSource);
4328
4353
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
4329
4354
  root: {
@@ -4361,7 +4386,7 @@ const getFontWeight = (weight) => {
4361
4386
  return fontWeightMap[weight];
4362
4387
  };
4363
4388
 
4364
- const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
4389
+ const getComponentCss$14 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
4365
4390
  const isTopAligned = align === 'top';
4366
4391
  return getCss({
4367
4392
  '@global': {
@@ -4373,6 +4398,7 @@ const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, back
4373
4398
  ...hostHiddenStyles,
4374
4399
  }),
4375
4400
  },
4401
+ ...preventFoucOfNestedElementsStyles,
4376
4402
  slot: {
4377
4403
  display: 'block',
4378
4404
  '&:not([name])': {
@@ -4385,12 +4411,12 @@ const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, back
4385
4411
  zIndex: 3,
4386
4412
  },
4387
4413
  },
4388
- '::slotted(:is(img,picture))': addImportantToEachRule({
4414
+ '::slotted(:is(img,picture,video))': addImportantToEachRule({
4389
4415
  display: 'block',
4390
4416
  width: '100%',
4391
4417
  height: '100%',
4392
4418
  }),
4393
- '::slotted(img)': addImportantToEachRule({
4419
+ '::slotted(:is(img,video))': addImportantToEachRule({
4394
4420
  objectFit: 'cover',
4395
4421
  }),
4396
4422
  a: {
@@ -4455,6 +4481,7 @@ const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, back
4455
4481
  })),
4456
4482
  },
4457
4483
  media: {
4484
+ position: 'relative', // necessary if custom `position: absolute` style is added to media elements
4458
4485
  gridArea: '1/1/-1 /-1',
4459
4486
  zIndex: 1,
4460
4487
  overflow: 'hidden', // relevant for scaling of nested image
@@ -4521,14 +4548,18 @@ const getVariantColors = (variant, theme) => {
4521
4548
  };
4522
4549
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4523
4550
  };
4524
- const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, compact, theme) => {
4551
+ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, compact, cssVariableInternalScaling, theme) => {
4525
4552
  const isPrimary = variant === 'primary';
4526
4553
  const { textColor, borderColor, borderColorHover, backgroundColor, backgroundColorHover } = getVariantColors(variant, theme);
4527
4554
  const { textColor: textColorDark, borderColor: borderColorDark, borderColorHover: borderColorHoverDark, backgroundColor: backgroundColorDark, backgroundColorHover: backgroundColorHoverDark, } = getVariantColors(variant, 'dark');
4528
4555
  const { focusColor } = getThemedColors(theme);
4529
4556
  const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
4530
- const paddingBlock = compact ? '4px' : '13px';
4531
- const paddingInline = compact ? '12px' : '26px';
4557
+ const scalingVar = `var(${cssVariableInternalScaling}, ${compact ? 'calc(4 / 13)' : 1})`; // Compact mode needs to have 4px paddingBlock thus this scaling factor
4558
+ const borderCompensation = variant === 'ghost' ? `+ ${borderWidthBase}` : ''; // Compensate for missing border in ghost variant (Fixes border backdrop-filter blur rendering issue in safari)
4559
+ const paddingBlock = `calc(${scalingVar} * 0.8125 * ${SCALING_BASE_VALUE} ${borderCompensation})`; // 0.8125 * SCALING_BASE_VALUE corresponds to 13px
4560
+ const paddingInline = `max(calc(${scalingVar} * 1.625 * ${SCALING_BASE_VALUE} ${borderCompensation}), ${variant === 'ghost' ? '6px' : '4px'})`; // 1.625 * SCALING_BASE_VALUE corresponds to 26px
4561
+ const gap = `clamp(2px, calc(${scalingVar} * 0.5 * ${SCALING_BASE_VALUE}), 16px)`; // 0.5 * SCALING_BASE_VALUE corresponds to 8px
4562
+ const iconMarginInlineStart = `clamp(-16px, calc(${scalingVar} * -0.5 * ${SCALING_BASE_VALUE}), -2px)`; // -0.5 * SCALING_BASE_VALUE corresponds to -8px
4532
4563
  return {
4533
4564
  '@global': {
4534
4565
  ':host': {
@@ -4536,32 +4567,36 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4536
4567
  ...addImportantToEachRule({
4537
4568
  verticalAlign: 'top',
4538
4569
  outline: 0, // custom element is able to delegate the focus
4570
+ borderRadius: borderRadiusSmall,
4539
4571
  ...colorSchemeStyles,
4540
4572
  ...hostHiddenStyles,
4541
4573
  }),
4542
4574
  },
4575
+ ...preventFoucOfNestedElementsStyles,
4543
4576
  },
4544
4577
  root: {
4545
4578
  display: 'flex',
4546
4579
  alignItems: 'flex-start',
4547
4580
  justifyContent: 'center',
4548
- width: '100%',
4581
+ width: '100%', // Allows for setting a width on the host
4582
+ minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
4549
4583
  boxSizing: 'border-box',
4550
4584
  textAlign: 'start',
4551
4585
  WebkitAppearance: 'none', // iOS safari
4552
4586
  appearance: 'none',
4553
4587
  textDecoration: 'none',
4554
- border: `${borderWidthBase} solid ${borderColor}`,
4588
+ ...textSmallStyle,
4589
+ ...(variant === 'ghost'
4590
+ ? { ...frostedGlassStyle, border: 'none' } // We can't use a border in the ghost variant due to rendering issues with backdrop-filter in safari
4591
+ : { border: `${borderWidthBase} solid ${borderColor}` }),
4555
4592
  borderRadius: borderRadiusSmall,
4556
4593
  transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
4557
4594
  backgroundColor,
4558
- ...(variant === 'ghost' && { ...frostedGlassStyle, backgroundClip: 'padding-box' }), // background color overlays border-color otherwise
4559
4595
  color: textColor,
4560
- ...textSmallStyle,
4561
4596
  transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`,
4562
4597
  ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4563
4598
  padding: hideLabelValue ? paddingBlock : `${paddingBlock} ${paddingInline}`,
4564
- gap: hideLabelValue ? 0 : compact ? '6px' : spacingStaticSmall,
4599
+ gap: hideLabelValue ? 0 : gap,
4565
4600
  })),
4566
4601
  ...(!hasSlottedAnchor && getFocusJssStyle(theme)),
4567
4602
  ...(!isDisabledOrLoading &&
@@ -4588,13 +4623,14 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4588
4623
  width: fontLineHeight, // ensure space is already reserved until icon component is loaded (ssr)
4589
4624
  height: fontLineHeight, // ensure space is already reserved until icon component is loaded (ssr)
4590
4625
  ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4591
- marginInlineStart: hideLabelValue ? 0 : compact ? '-6px' : '-8px', // compensate white space of svg icon and optimize visual alignment
4626
+ marginInlineStart: hideLabelValue ? 0 : iconMarginInlineStart, // compensate white space of svg icon and optimize visual alignment
4592
4627
  })),
4593
4628
  },
4594
4629
  }),
4595
4630
  };
4596
4631
  };
4597
4632
 
4633
+ const cssVariableInternalButtonScaling = '--p-internal-button-scaling';
4598
4634
  const getDisabledColors = (variant, loading, theme) => {
4599
4635
  const { contrastMediumColor, contrastHighColor, disabledColor, hoverColor, backgroundFrostedColor } = getThemedColors(theme);
4600
4636
  const { canvasColor } = getHighContrastColors();
@@ -4617,12 +4653,12 @@ const getDisabledColors = (variant, loading, theme) => {
4617
4653
  };
4618
4654
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4619
4655
  };
4620
- const getComponentCss$12 = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
4656
+ const getComponentCss$13 = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
4621
4657
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
4622
4658
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
4623
4659
  const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
4624
4660
  const isPrimary = variant === 'primary';
4625
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, compact, theme), {
4661
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, compact, cssVariableInternalButtonScaling, theme), {
4626
4662
  root: {
4627
4663
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
4628
4664
  ...(disabledOrLoading && {
@@ -4681,7 +4717,7 @@ const sidebarWidths = {
4681
4717
  medium: '320px',
4682
4718
  large: '480px', // TODO: won't work at viewport 1000px when both sidebars are opened
4683
4719
  };
4684
- const getComponentCss$11 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndOpen, sidebarEndWidth) => {
4720
+ const getComponentCss$12 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndOpen, sidebarEndWidth) => {
4685
4721
  return getCss({
4686
4722
  '@global': {
4687
4723
  ':host': {
@@ -4691,6 +4727,7 @@ const getComponentCss$11 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndO
4691
4727
  ...hostHiddenStyles,
4692
4728
  }),
4693
4729
  },
4730
+ ...preventFoucOfNestedElementsStyles,
4694
4731
  ':is(header, main, footer, aside)': {
4695
4732
  padding: gridProductiveGap,
4696
4733
  boxSizing: 'border-box',
@@ -4790,7 +4827,7 @@ const backfaceVisibilityJssStyle = {
4790
4827
  backfaceVisibility: 'hidden',
4791
4828
  WebkitBackfaceVisibility: 'hidden',
4792
4829
  };
4793
- const getComponentCss$10 = (hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation) => {
4830
+ const getComponentCss$11 = (hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation) => {
4794
4831
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
4795
4832
  const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
4796
4833
  const { canvasTextColor } = getHighContrastColors();
@@ -4807,6 +4844,7 @@ const getComponentCss$10 = (hasHeading, hasDescription, hasControlsSlot, heading
4807
4844
  ...hostHiddenStyles,
4808
4845
  }),
4809
4846
  },
4847
+ ...preventFoucOfNestedElementsStyles,
4810
4848
  ...(hasControlsSlot && {
4811
4849
  ['slot[name="controls"]']: {
4812
4850
  display: 'block',
@@ -5221,7 +5259,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
5221
5259
  const getIndeterminateSVGBackgroundImage = (fill) => {
5222
5260
  return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
5223
5261
  };
5224
- const getComponentCss$$ = (hideLabel, state, isDisabled, isLoading, theme) => {
5262
+ const getComponentCss$10 = (hideLabel, state, isDisabled, isLoading, theme) => {
5225
5263
  const { canvasColor } = getHighContrastColors();
5226
5264
  const checkedIconColor = isHighContrastMode
5227
5265
  ? canvasColor
@@ -5244,6 +5282,7 @@ const getComponentCss$$ = (hideLabel, state, isDisabled, isLoading, theme) => {
5244
5282
  ...hostHiddenStyles,
5245
5283
  }),
5246
5284
  },
5285
+ ...preventFoucOfNestedElementsStyles,
5247
5286
  // ::slotted(input)
5248
5287
  ...addImportantToEachRule(mergeDeep(getSlottedCheckboxRadioButtonStyles(state, isDisabled, isLoading, theme), {
5249
5288
  '::slotted': {
@@ -5316,7 +5355,7 @@ const widthMap = {
5316
5355
  basic: gridBasicOffset,
5317
5356
  extended: gridExtendedOffset,
5318
5357
  };
5319
- const getComponentCss$_ = (width) => {
5358
+ const getComponentCss$$ = (width) => {
5320
5359
  return getCss({
5321
5360
  '@global': {
5322
5361
  ':host': {
@@ -5358,7 +5397,7 @@ const getDimensionStyle = {
5358
5397
  width: 'inherit',
5359
5398
  height: 'inherit',
5360
5399
  };
5361
- const getComponentCss$Z = () => {
5400
+ const getComponentCss$_ = () => {
5362
5401
  return getCss({
5363
5402
  '@global': {
5364
5403
  ':host': {
@@ -5457,7 +5496,7 @@ const sizeMap$4 = {
5457
5496
  medium: fontSizeDisplayMedium,
5458
5497
  large: fontSizeDisplayLarge,
5459
5498
  };
5460
- const getComponentCss$Y = (size, align, color, ellipsis, theme) => {
5499
+ const getComponentCss$Z = (size, align, color, ellipsis, theme) => {
5461
5500
  return getCss({
5462
5501
  '@global': {
5463
5502
  ':host': {
@@ -5475,7 +5514,7 @@ const getComponentCss$Y = (size, align, color, ellipsis, theme) => {
5475
5514
  });
5476
5515
  };
5477
5516
 
5478
- const getComponentCss$X = (color, orientation, theme) => {
5517
+ const getComponentCss$Y = (color, orientation, theme) => {
5479
5518
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
5480
5519
  const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
5481
5520
  const colorMap = {
@@ -5518,7 +5557,7 @@ const getComponentCss$X = (color, orientation, theme) => {
5518
5557
  });
5519
5558
  };
5520
5559
 
5521
- const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5560
+ const getComponentCss$X = (state, labelSize, hasLabel, theme) => {
5522
5561
  return getCss({
5523
5562
  '@global': {
5524
5563
  ':host': {
@@ -5528,6 +5567,7 @@ const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5528
5567
  ...hostHiddenStyles,
5529
5568
  }),
5530
5569
  },
5570
+ ...preventFoucOfNestedElementsStyles,
5531
5571
  fieldset: {
5532
5572
  margin: 0,
5533
5573
  padding: 0,
@@ -5554,7 +5594,7 @@ const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5554
5594
  });
5555
5595
  };
5556
5596
 
5557
- const getComponentCss$V = (state, labelSize, hasLabel, theme) => {
5597
+ const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5558
5598
  return getCss({
5559
5599
  '@global': {
5560
5600
  ':host': {
@@ -5564,6 +5604,7 @@ const getComponentCss$V = (state, labelSize, hasLabel, theme) => {
5564
5604
  ...hostHiddenStyles,
5565
5605
  }),
5566
5606
  },
5607
+ ...preventFoucOfNestedElementsStyles,
5567
5608
  fieldset: {
5568
5609
  margin: 0,
5569
5610
  padding: 0,
@@ -5600,7 +5641,7 @@ const flexItemWidths = {
5600
5641
  full: 100,
5601
5642
  auto: 'auto',
5602
5643
  };
5603
- const getComponentCss$U = (width, offset, alignSelf, grow, shrink, flex) => {
5644
+ const getComponentCss$V = (width, offset, alignSelf, grow, shrink, flex) => {
5604
5645
  return getCss({
5605
5646
  '@global': {
5606
5647
  ':host': addImportantToEachRule({
@@ -5622,7 +5663,7 @@ const getComponentCss$U = (width, offset, alignSelf, grow, shrink, flex) => {
5622
5663
  });
5623
5664
  };
5624
5665
 
5625
- const getComponentCss$T = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5666
+ const getComponentCss$U = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5626
5667
  return getCss({
5627
5668
  '@global': {
5628
5669
  ':host': {
@@ -5663,7 +5704,7 @@ const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
5663
5704
  const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
5664
5705
  const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
5665
5706
  const mediaQueryEnhancedView = getMediaQueryMin('s');
5666
- const getComponentCss$S = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
5707
+ const getComponentCss$T = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
5667
5708
  const { backgroundColor } = getThemedColors(theme);
5668
5709
  const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
5669
5710
  const frostedGlassBackgroundColor = isThemeDark(theme)
@@ -5683,6 +5724,7 @@ const getComponentCss$S = (isPrimaryScrollerVisible, isSecondaryScrollerVisible,
5683
5724
  ...hostHiddenStyles,
5684
5725
  }),
5685
5726
  },
5727
+ ...preventFoucOfNestedElementsStyles,
5686
5728
  dialog: {
5687
5729
  ...getFlyoutDialogResetJssStyle(),
5688
5730
  inset: '0',
@@ -5802,7 +5844,7 @@ const getContentJssStyle = () => {
5802
5844
 
5803
5845
  const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
5804
5846
  const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
5805
- const getComponentCss$R = (isSecondaryScrollerVisible, theme) => {
5847
+ const getComponentCss$S = (isSecondaryScrollerVisible, theme) => {
5806
5848
  const { primaryColor, backgroundSurfaceColor, hoverColor } = getThemedColors(theme);
5807
5849
  const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
5808
5850
  const frostedGlassBackgroundColor = isThemeDark(theme)
@@ -5829,6 +5871,7 @@ const getComponentCss$R = (isSecondaryScrollerVisible, theme) => {
5829
5871
  ...hostHiddenStyles,
5830
5872
  }),
5831
5873
  },
5874
+ ...preventFoucOfNestedElementsStyles,
5832
5875
  '::slotted(:is(h1, h2, h3, h4, h5, h6))': addImportantToEachRule({
5833
5876
  ...headingSmallStyle,
5834
5877
  margin: 0,
@@ -6108,19 +6151,9 @@ const getDialogTransitionJssStyle = (isVisible, slideIn) => {
6108
6151
  transition: `${getTransition('opacity', duration, easing)}, ${getTransition('transform', duration, easing)}`,
6109
6152
  };
6110
6153
  };
6111
- const getDismissButtonJssStyle = (theme, isOpen, applyAutoFocusHack = false) => {
6112
- const { backgroundSurfaceColor } = getThemedColors(theme);
6113
- const { backgroundSurfaceColor: backgroundSurfaceColorDark } = getThemedColors('dark');
6154
+ const getDialogDismissButtonJssStyle = (isOpen, applyAutoFocusHack = false) => {
6114
6155
  return {
6115
- width: 'fit-content',
6116
- height: 'fit-content',
6117
- border: `2px solid ${backgroundSurfaceColor}`, // needed to enlarge button slightly without affecting the hover area (are equal now).
6118
- borderRadius: borderRadiusSmall,
6119
- background: backgroundSurfaceColor,
6120
- ...prefersColorSchemeDarkMediaQuery(theme, {
6121
- background: backgroundSurfaceColorDark,
6122
- borderColor: backgroundSurfaceColorDark,
6123
- }),
6156
+ ...dismissButtonJssStyle,
6124
6157
  // we need to ensure that the dismiss button, which gets auto focused by `.showModal()`, to always be in the
6125
6158
  // viewport (or off the view on the start-hand side) before the dialog transition starts otherwise the transition
6126
6159
  // won't work in all cases, e.g. `dir="rtl"` and `<p-flyout position="end" />`. Because auto focus would force the
@@ -6162,7 +6195,7 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
6162
6195
  const cssVariableWidth$2 = '--p-flyout-width';
6163
6196
  // TODO: we shouldn't expose --p-flyout-max-width
6164
6197
  const cssVariableMaxWidth = '--p-flyout-max-width';
6165
- const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter, theme) => {
6198
+ const getComponentCss$R = (isOpen, position, hasHeader, hasFooter, hasSubFooter, theme) => {
6166
6199
  const isPositionStart = position === 'start' || position === 'left';
6167
6200
  return getCss({
6168
6201
  '@global': {
@@ -6174,6 +6207,7 @@ const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
6174
6207
  ...hostHiddenStyles,
6175
6208
  }),
6176
6209
  },
6210
+ ...preventFoucOfNestedElementsStyles,
6177
6211
  slot: {
6178
6212
  display: 'block',
6179
6213
  '&:first-of-type': {
@@ -6220,7 +6254,7 @@ const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
6220
6254
  maxWidth: `var(${cssVariableMaxWidth},1180px)`,
6221
6255
  },
6222
6256
  dismiss: {
6223
- ...getDismissButtonJssStyle(theme, isOpen, !isPositionStart),
6257
+ ...getDialogDismissButtonJssStyle(isOpen, !isPositionStart),
6224
6258
  gridArea: '1/3',
6225
6259
  zIndex: 4, // ensures dismiss button is above everything
6226
6260
  position: 'sticky',
@@ -6236,7 +6270,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
6236
6270
  const gridItemWidths = [
6237
6271
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
6238
6272
  ];
6239
- const getComponentCss$P = (size, offset) => {
6273
+ const getComponentCss$Q = (size, offset) => {
6240
6274
  return getCss({
6241
6275
  '@global': {
6242
6276
  ':host': addImportantToEachRule({
@@ -6256,7 +6290,7 @@ const getComponentCss$P = (size, offset) => {
6256
6290
  };
6257
6291
 
6258
6292
  const gutter = `calc(${gridGap} / -2)`;
6259
- const getComponentCss$O = (direction, wrap) => {
6293
+ const getComponentCss$P = (direction, wrap) => {
6260
6294
  return getCss({
6261
6295
  '@global': {
6262
6296
  ':host': {
@@ -6282,7 +6316,7 @@ const sizeMap$3 = {
6282
6316
  'x-large': fontSizeHeadingXLarge,
6283
6317
  'xx-large': fontSizeHeadingXXLarge,
6284
6318
  };
6285
- const getComponentCss$N = (size, align, color, ellipsis, theme) => {
6319
+ const getComponentCss$O = (size, align, color, ellipsis, theme) => {
6286
6320
  return getCss({
6287
6321
  '@global': {
6288
6322
  ':host': {
@@ -6342,7 +6376,7 @@ const getTextSizeJssStyle = (textSize) => {
6342
6376
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
6343
6377
  };
6344
6378
  };
6345
- const getComponentCss$M = (variant, align, color, ellipsis, theme) => {
6379
+ const getComponentCss$N = (variant, align, color, ellipsis, theme) => {
6346
6380
  return getCss({
6347
6381
  '@global': {
6348
6382
  ':host': {
@@ -6450,7 +6484,7 @@ const isFlippableIcon = (name, source) => {
6450
6484
  name === 'logout' ||
6451
6485
  name === 'send'));
6452
6486
  };
6453
- const getComponentCss$L = (name, source, color, size, theme) => {
6487
+ const getComponentCss$M = (name, source, color, size, theme) => {
6454
6488
  const isColorInherit = color === 'inherit';
6455
6489
  const isSizeInherit = size === 'inherit';
6456
6490
  const isDark = isThemeDark(theme);
@@ -6542,6 +6576,7 @@ const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
6542
6576
  };
6543
6577
  };
6544
6578
  const getNotificationIconJssStyle = () => ({
6579
+ marginTop: '2px', // To be center aligned with close button
6545
6580
  [mediaQueryMaxS$2]: {
6546
6581
  display: 'none',
6547
6582
  },
@@ -6550,6 +6585,7 @@ const getNotificationContentJssStyle = () => ({
6550
6585
  display: 'grid',
6551
6586
  gap: spacingStaticXSmall,
6552
6587
  maxWidth: '50rem',
6588
+ marginTop: '2px', // To be center aligned with close button
6553
6589
  [mediaQueryMinS$1]: {
6554
6590
  marginLeft: `-${spacingStaticSmall}`,
6555
6591
  },
@@ -6567,7 +6603,7 @@ const getHeadingJssStyle = (theme) => ({
6567
6603
  ...headingSmallStyle,
6568
6604
  ...getTextJssStyle(theme),
6569
6605
  });
6570
- const getComponentCss$K = (state, hasAction, hasClose, theme) => {
6606
+ const getComponentCss$L = (state, hasAction, hasClose, theme) => {
6571
6607
  return getCss({
6572
6608
  '@global': {
6573
6609
  ':host': {
@@ -6578,6 +6614,7 @@ const getComponentCss$K = (state, hasAction, hasClose, theme) => {
6578
6614
  ...hostHiddenStyles,
6579
6615
  }),
6580
6616
  },
6617
+ ...preventFoucOfNestedElementsStyles,
6581
6618
  [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
6582
6619
  'slot[name="heading"]': getHeadingJssStyle(theme),
6583
6620
  },
@@ -6590,15 +6627,23 @@ const getComponentCss$K = (state, hasAction, hasClose, theme) => {
6590
6627
  content: getNotificationContentJssStyle(),
6591
6628
  ...(hasAction && {
6592
6629
  action: {
6630
+ marginTop: borderWidthBase, // To visually align with close button
6593
6631
  [mediaQueryMaxS$1]: {
6594
6632
  gridRowStart: 2,
6595
6633
  },
6596
6634
  },
6597
6635
  }),
6636
+ close: {
6637
+ ...dismissButtonJssStyle,
6638
+ mixBlendMode: isThemeDark(theme) ? 'plus-lighter' : 'multiply',
6639
+ ...prefersColorSchemeDarkMediaQuery(theme, {
6640
+ mixBlendMode: 'plus-lighter',
6641
+ }),
6642
+ },
6598
6643
  });
6599
6644
  };
6600
6645
 
6601
- const getComponentCss$J = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6646
+ const getComponentCss$K = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6602
6647
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
6603
6648
  '@global': addImportantToEachRule({
6604
6649
  '::slotted': {
@@ -6626,10 +6671,11 @@ const getComponentCss$J = (icon, iconSource, active, stretch, size, hideLabel, a
6626
6671
  }));
6627
6672
  };
6628
6673
 
6629
- const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, compact, theme) => {
6674
+ const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
6675
+ const getComponentCss$J = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, compact, theme) => {
6630
6676
  const { linkColor } = getHighContrastColors();
6631
6677
  const isPrimary = variant === 'primary';
6632
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, compact, theme), {
6678
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, compact, cssVariableInternalLinkScaling, theme), {
6633
6679
  label: {
6634
6680
  clip: addImportantToRule('unset'), // to overrule breakpoint customizable hide-label style
6635
6681
  },
@@ -6659,7 +6705,7 @@ const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6659
6705
  '&(a)::before': {
6660
6706
  content: '""',
6661
6707
  position: 'fixed',
6662
- inset: '-2px',
6708
+ inset: variant === 'ghost' ? '0px' : '-2px', // Variant ghost has no border to compensate
6663
6709
  borderRadius: borderRadiusSmall,
6664
6710
  },
6665
6711
  ...getFocusJssStyle(theme, { slotted: 'a', pseudo: true }),
@@ -6668,7 +6714,7 @@ const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6668
6714
  }));
6669
6715
  };
6670
6716
 
6671
- const getComponentCss$H = (aspectRatio, weight, // to get deprecated semibold typed
6717
+ const getComponentCss$I = (aspectRatio, weight, // to get deprecated semibold typed
6672
6718
  direction, hasDescription) => {
6673
6719
  return getCss({
6674
6720
  '@global': {
@@ -6680,6 +6726,7 @@ direction, hasDescription) => {
6680
6726
  ...hostHiddenStyles,
6681
6727
  }),
6682
6728
  },
6729
+ ...preventFoucOfNestedElementsStyles,
6683
6730
  slot: {
6684
6731
  '&:not([name])': {
6685
6732
  display: 'block',
@@ -6694,12 +6741,12 @@ direction, hasDescription) => {
6694
6741
  pointerEvents: 'auto',
6695
6742
  },
6696
6743
  },
6697
- '::slotted(:is(img,picture))': addImportantToEachRule({
6744
+ '::slotted(:is(img,picture,video))': addImportantToEachRule({
6698
6745
  display: 'block',
6699
6746
  width: '100%',
6700
6747
  height: '100%',
6701
6748
  }),
6702
- '::slotted(img)': addImportantToEachRule({
6749
+ '::slotted(:is(img,video))': addImportantToEachRule({
6703
6750
  objectFit: 'cover',
6704
6751
  }),
6705
6752
  a: {
@@ -6761,6 +6808,7 @@ direction, hasDescription) => {
6761
6808
  gap: spacingFluidSmall,
6762
6809
  },
6763
6810
  media: {
6811
+ position: 'relative', // necessary if custom `position: absolute` style is added to media elements
6764
6812
  gridArea: '1/1/-1 /-1',
6765
6813
  zIndex: 1,
6766
6814
  overflow: 'hidden', // relevant for scaling of nested image
@@ -6800,7 +6848,7 @@ const getMultilineEllipsis = (lineClamp) => {
6800
6848
  overflow: 'hidden',
6801
6849
  };
6802
6850
  };
6803
- const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
6851
+ const getComponentCss$H = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
6804
6852
  const { primaryColor, contrastHighColor, contrastMediumColor, backgroundSurfaceColor } = getThemedColors(theme);
6805
6853
  const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
6806
6854
  return getCss({
@@ -6813,6 +6861,7 @@ const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
6813
6861
  ...hostHiddenStyles,
6814
6862
  }),
6815
6863
  },
6864
+ ...preventFoucOfNestedElementsStyles,
6816
6865
  [`slot[name="${headerSlot}"]`]: {
6817
6866
  display: 'block', // to ensure correct like button positioning when slot is unused
6818
6867
  },
@@ -6938,7 +6987,7 @@ const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
6938
6987
  });
6939
6988
  };
6940
6989
 
6941
- const getComponentCss$F = (aspectRatio, size, weight, // to get deprecated semibold typed
6990
+ const getComponentCss$G = (aspectRatio, size, weight, // to get deprecated semibold typed
6942
6991
  background, align, compact, hasGradient, isDisabled) => {
6943
6992
  const isTopAligned = align === 'top';
6944
6993
  return getCss({
@@ -6951,6 +7000,7 @@ background, align, compact, hasGradient, isDisabled) => {
6951
7000
  ...hostHiddenStyles,
6952
7001
  }),
6953
7002
  },
7003
+ ...preventFoucOfNestedElementsStyles,
6954
7004
  slot: {
6955
7005
  display: 'block',
6956
7006
  '&:not([name])': {
@@ -6963,12 +7013,12 @@ background, align, compact, hasGradient, isDisabled) => {
6963
7013
  zIndex: 3,
6964
7014
  },
6965
7015
  },
6966
- '::slotted(:is(img,picture))': addImportantToEachRule({
7016
+ '::slotted(:is(img,picture,video))': addImportantToEachRule({
6967
7017
  display: 'block',
6968
7018
  width: '100%',
6969
7019
  height: '100%',
6970
7020
  }),
6971
- '::slotted(img)': addImportantToEachRule({
7021
+ '::slotted(:is(img,video))': addImportantToEachRule({
6972
7022
  objectFit: 'cover',
6973
7023
  }),
6974
7024
  a: {
@@ -7031,6 +7081,7 @@ background, align, compact, hasGradient, isDisabled) => {
7031
7081
  })),
7032
7082
  },
7033
7083
  media: {
7084
+ position: 'relative', // necessary if custom `position: absolute` style is added to media elements
7034
7085
  gridArea: '1/1/-1 /-1',
7035
7086
  zIndex: 1,
7036
7087
  overflow: 'hidden', // relevant for scaling of nested image
@@ -7077,7 +7128,7 @@ const baseSizes = {
7077
7128
  height: '72px',
7078
7129
  },
7079
7130
  };
7080
- const getComponentCss$E = (size) => {
7131
+ const getComponentCss$F = (size) => {
7081
7132
  return getCss({
7082
7133
  '@global': {
7083
7134
  ':host': {
@@ -7127,7 +7178,7 @@ const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-
7127
7178
  const safeZoneVertical = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
7128
7179
  const safeZoneHorizontal = `${spacingFluidLarge}`;
7129
7180
  const cssClassNameStretchToFullModalWidth = 'stretch-to-full-modal-width';
7130
- const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
7181
+ const getComponentCss$E = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
7131
7182
  return getCss({
7132
7183
  '@global': {
7133
7184
  ':host': {
@@ -7138,6 +7189,7 @@ const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHe
7138
7189
  ...hostHiddenStyles,
7139
7190
  }),
7140
7191
  },
7192
+ ...preventFoucOfNestedElementsStyles,
7141
7193
  // TODO: why not available to Flyout too?
7142
7194
  // TODO: discussable if so many styles are a good thing, since we could also expose one or two CSS variables with which a stretch to full width is possible too
7143
7195
  '::slotted': addImportantToEachRule(mergeDeep({
@@ -7233,7 +7285,7 @@ const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHe
7233
7285
  },
7234
7286
  ...(hasDismissButton && {
7235
7287
  dismiss: {
7236
- ...getDismissButtonJssStyle(theme, isOpen),
7288
+ ...getDialogDismissButtonJssStyle(isOpen),
7237
7289
  gridArea: '1/3',
7238
7290
  zIndex: 2, // ensures dismiss button is above sticky footer, header and content
7239
7291
  position: 'sticky',
@@ -7264,7 +7316,7 @@ const getThemedColor = (color, themedColors) => {
7264
7316
  };
7265
7317
  return colorMap[color];
7266
7318
  };
7267
- const getComponentCss$C = (model, safeZone, size, color, theme) => {
7319
+ const getComponentCss$D = (model, safeZone, size, color, theme) => {
7268
7320
  const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
7269
7321
  const isSizeInherit = size === 'inherit';
7270
7322
  return getCss({
@@ -7309,7 +7361,7 @@ const getComponentCss$C = (model, safeZone, size, color, theme) => {
7309
7361
  };
7310
7362
 
7311
7363
  const cssVariableMultiSelectPaddingInlineStart = '--p-internal-multi-select-option-padding-left';
7312
- const getComponentCss$B = (theme) => {
7364
+ const getComponentCss$C = (theme) => {
7313
7365
  const { primaryColor, contrastHighColor, backgroundSurfaceColor, disabledColor, contrastLowColor } = getThemedColors(theme);
7314
7366
  const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, contrastHighColor: contrastHighColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
7315
7367
  const { highlightColor } = getHighContrastColors();
@@ -7319,6 +7371,7 @@ const getComponentCss$B = (theme) => {
7319
7371
  scrollMarginTop: spacingStaticSmall, // Creates top margin when navigating with keyboard and list is scrolled automatically
7320
7372
  ...hostHiddenStyles,
7321
7373
  }),
7374
+ ...preventFoucOfNestedElementsStyles,
7322
7375
  },
7323
7376
  option: {
7324
7377
  display: 'flex',
@@ -7442,6 +7495,9 @@ const getSlottedTextFieldTextareaSelectStyles = (child, state, isLoading, theme,
7442
7495
  }),
7443
7496
  ...additionalDefaultJssStyle,
7444
7497
  },
7498
+ ['::slotted(:not(input[type="password"]))']: {
7499
+ textOverflow: 'ellipsis',
7500
+ },
7445
7501
  ...(!isLoading &&
7446
7502
  hoverMediaQuery({
7447
7503
  // with the media query the selector has higher priority and overrides disabled styles
@@ -7523,7 +7579,7 @@ const getUnitCounterJssStyle = (isDisabled, theme) => {
7523
7579
 
7524
7580
  const INTERNAL_MULTI_SELECT_SLOT = 'internal-select';
7525
7581
 
7526
- const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
7582
+ const getComponentCss$B = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
7527
7583
  const { contrastHighColor } = getThemedColors(theme);
7528
7584
  const { contrastHighColor: contrastHighColorDark } = getThemedColors('dark');
7529
7585
  return getCss({
@@ -7535,6 +7591,7 @@ const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWi
7535
7591
  ...hostHiddenStyles,
7536
7592
  }),
7537
7593
  },
7594
+ ...preventFoucOfNestedElementsStyles,
7538
7595
  ...(isWithinForm &&
7539
7596
  addImportantToEachRule({
7540
7597
  [`::slotted([slot=${INTERNAL_MULTI_SELECT_SLOT}])`]: {
@@ -7550,6 +7607,8 @@ const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWi
7550
7607
  root: {
7551
7608
  display: 'grid',
7552
7609
  gap: spacingStaticXSmall,
7610
+ // min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
7611
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
7553
7612
  ...(isWithinForm && {
7554
7613
  position: 'relative', // Necessary for native HTML validation box positioning (internal-select)
7555
7614
  }),
@@ -7719,19 +7778,23 @@ const getListStyles$2 = (isOpen, direction, theme) => {
7719
7778
 
7720
7779
  const cssVariableSelectPaddingInlineStart = '--p-internal-select-option-padding-left';
7721
7780
  // TODO: Enforce order of slotted text, img
7722
- const getComponentCss$z = (theme) => {
7781
+ const getComponentCss$A = (theme) => {
7723
7782
  return getCss({
7724
- '@global': addImportantToEachRule({
7725
- ':host': {
7726
- scrollMargin: '6px', // Aligns option when list is scrolled by navigating with keyboard
7727
- ...hostHiddenStyles,
7728
- },
7729
- '::slotted(img)': {
7730
- height: fontLineHeight,
7731
- borderRadius: borderRadiusSmall,
7732
- width: 'auto',
7733
- },
7734
- }),
7783
+ '@global': {
7784
+ ...addImportantToEachRule({
7785
+ ':host': {
7786
+ // TODO: display is missing
7787
+ scrollMargin: '6px', // Aligns option when list is scrolled by navigating with keyboard
7788
+ ...hostHiddenStyles,
7789
+ },
7790
+ '::slotted(img)': {
7791
+ height: fontLineHeight,
7792
+ borderRadius: borderRadiusSmall,
7793
+ width: 'auto',
7794
+ },
7795
+ }),
7796
+ ...preventFoucOfNestedElementsStyles,
7797
+ },
7735
7798
  ...getOptionStyles(theme),
7736
7799
  icon: {
7737
7800
  marginInlineStart: 'auto',
@@ -7807,7 +7870,7 @@ const getOptionStyles = (theme) => {
7807
7870
  };
7808
7871
  };
7809
7872
 
7810
- const getComponentCss$y = (isDisabled, theme) => getCss({
7873
+ const getComponentCss$z = (isDisabled, theme) => getCss({
7811
7874
  '@global': {
7812
7875
  ':host': addImportantToEachRule({
7813
7876
  ...colorSchemeStyles,
@@ -7858,7 +7921,7 @@ const disabledCursorStyle = {
7858
7921
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
7859
7922
  };
7860
7923
  const hiddenStyle = { display: 'none' };
7861
- const getComponentCss$x = (activePage, pageTotal, showLastPage, theme) => {
7924
+ const getComponentCss$y = (activePage, pageTotal, showLastPage, theme) => {
7862
7925
  const { primaryColor, disabledColor, hoverColor } = getThemedColors(theme);
7863
7926
  const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
7864
7927
  return getCss({
@@ -7870,6 +7933,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage, theme) => {
7870
7933
  ...hostHiddenStyles,
7871
7934
  }),
7872
7935
  },
7936
+ ...preventFoucOfNestedElementsStyles,
7873
7937
  nav: {
7874
7938
  display: 'flex',
7875
7939
  justifyContent: 'center',
@@ -7993,7 +8057,7 @@ const removeStyles = (selector, styles) => Object.fromEntries(Object.entries(sty
7993
8057
  return [key, value];
7994
8058
  }));
7995
8059
 
7996
- const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, isWithinForm, length, theme) => {
8060
+ const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, isWithinForm, length, theme) => {
7997
8061
  const inputSize = `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`; // equivalent to calculation of input height within form-styles
7998
8062
  const inputStyles = removeStyles('input[readonly]', removeSlottedSelector(getSlottedTextFieldTextareaSelectStyles('input', state, isLoading, theme, {
7999
8063
  // TODO: move into getSlottedTextFieldTextareaSelectStyles()
@@ -8035,6 +8099,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, isWithinForm
8035
8099
  ...hostHiddenStyles,
8036
8100
  }),
8037
8101
  },
8102
+ ...preventFoucOfNestedElementsStyles,
8038
8103
  // input
8039
8104
  ...inputStyles,
8040
8105
  ...(isWithinForm &&
@@ -8174,7 +8239,7 @@ const getDirectionArrowMap = (theme) => {
8174
8239
  },
8175
8240
  };
8176
8241
  };
8177
- const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
8242
+ const getComponentCss$w = (direction, isNativePopoverCase, theme) => {
8178
8243
  const { hoverColor, backgroundColor, primaryColor, backgroundSurfaceColor } = getThemedColors(theme);
8179
8244
  const { hoverColor: hoverColorDark, primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
8180
8245
  const shadowColor = 'rgba(0,0,0,0.3)';
@@ -8189,6 +8254,7 @@ const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
8189
8254
  ...hostHiddenStyles,
8190
8255
  }),
8191
8256
  },
8257
+ ...preventFoucOfNestedElementsStyles,
8192
8258
  p: {
8193
8259
  ...textSmallStyle,
8194
8260
  margin: 0,
@@ -8284,7 +8350,7 @@ const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
8284
8350
  const getCheckedSVGBackgroundImage = (fill) => {
8285
8351
  return getInlineSVGBackgroundImage(`<circle fill="${fill}" cx="12" cy="12" r="6"/>`);
8286
8352
  };
8287
- const getComponentCss$u = (hideLabel, state, isDisabled, isLoading, theme) => {
8353
+ const getComponentCss$v = (hideLabel, state, isDisabled, isLoading, theme) => {
8288
8354
  const checkedIconColor = isHighContrastMode
8289
8355
  ? getHighContrastColors().canvasColor
8290
8356
  : escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
@@ -8300,6 +8366,7 @@ const getComponentCss$u = (hideLabel, state, isDisabled, isLoading, theme) => {
8300
8366
  ...hostHiddenStyles,
8301
8367
  }),
8302
8368
  },
8369
+ ...preventFoucOfNestedElementsStyles,
8303
8370
  // ::slotted(input)
8304
8371
  ...addImportantToEachRule(mergeDeep(getSlottedCheckboxRadioButtonStyles(state, isDisabled, isLoading, theme), {
8305
8372
  '::slotted': {
@@ -8382,21 +8449,7 @@ const getGradient = (theme, gradientColorTheme) => {
8382
8449
  `rgba(${gradientColor},0)`);
8383
8450
  };
8384
8451
  const prevNextWrapperWidth = `calc(${fontLineHeight} + 24px)`;
8385
- const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
8386
- const { backgroundColor, backgroundSurfaceColor, hoverColor } = getThemedColors(theme);
8387
- const { backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
8388
- const backgroundColorLight = {
8389
- 'background-base': backgroundColor,
8390
- 'background-surface': backgroundSurfaceColor,
8391
- };
8392
- const backgroundColorMap = {
8393
- auto: backgroundColorLight,
8394
- light: backgroundColorLight,
8395
- dark: {
8396
- 'background-base': backgroundSurfaceColorDark,
8397
- 'background-surface': backgroundColorDark,
8398
- },
8399
- };
8452
+ const getComponentCss$u = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
8400
8453
  const actionPrevNextStyles = {
8401
8454
  position: 'absolute',
8402
8455
  top: 0,
@@ -8404,7 +8457,6 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8404
8457
  direction: 'ltr',
8405
8458
  width: prevNextWrapperWidth,
8406
8459
  padding: '4px 0',
8407
- pointerEvents: 'none',
8408
8460
  display: 'flex',
8409
8461
  alignItems: scrollIndicatorPosition === 'center' ? 'center' : 'flex-start',
8410
8462
  };
@@ -8418,36 +8470,7 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8418
8470
  ...hostHiddenStyles,
8419
8471
  }),
8420
8472
  },
8421
- button: {
8422
- display: 'flex',
8423
- pointerEvents: 'auto',
8424
- alignItems: 'center',
8425
- justifyContent: 'center',
8426
- ...textSmallStyle,
8427
- height: `calc(${fontLineHeight} + 4px)`,
8428
- width: `calc(${fontLineHeight} + 4px)`,
8429
- border: 0,
8430
- outline: 0,
8431
- cursor: 'pointer',
8432
- background: backgroundColorMap[theme][gradientColor],
8433
- ...prefersColorSchemeDarkMediaQuery(theme, {
8434
- background: backgroundColorMap.dark[gradientColor],
8435
- }),
8436
- borderRadius: borderRadiusSmall,
8437
- ...frostedGlassStyle,
8438
- visibility: 'hidden',
8439
- ...(!isThemeDark(theme) && dropShadowLowStyle),
8440
- ...hoverMediaQuery({
8441
- transition: getTransition('background-color'),
8442
- '&:hover': {
8443
- ...frostedGlassStyle,
8444
- background: hoverColor,
8445
- ...prefersColorSchemeDarkMediaQuery(theme, {
8446
- background: hoverColorDark,
8447
- }),
8448
- },
8449
- }),
8450
- },
8473
+ ...preventFoucOfNestedElementsStyles,
8451
8474
  },
8452
8475
  root: {
8453
8476
  position: 'relative',
@@ -8502,7 +8525,7 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8502
8525
  background: `linear-gradient(to right, ${getGradient('dark', gradientColor)} 100%)`,
8503
8526
  }),
8504
8527
  visibility: isPrevHidden ? 'hidden' : 'inherit',
8505
- '& button': {
8528
+ '& .action-button': {
8506
8529
  marginLeft: '8px',
8507
8530
  // hide buttons on mobile (actually devices not supporting hover)
8508
8531
  ...hoverMediaQuery({
@@ -8519,7 +8542,7 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8519
8542
  background: `linear-gradient(to left, ${getGradient('dark', gradientColor)} 100%)`,
8520
8543
  }),
8521
8544
  visibility: isNextHidden ? 'hidden' : 'inherit',
8522
- '& button': {
8545
+ '& .action-button': {
8523
8546
  marginRight: '8px',
8524
8547
  // hide buttons on mobile (actually devices not supporting hover)
8525
8548
  ...hoverMediaQuery({
@@ -8527,6 +8550,10 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8527
8550
  }),
8528
8551
  },
8529
8552
  },
8553
+ 'action-button': {
8554
+ ...dismissButtonJssStyle,
8555
+ ...(!isThemeDark(theme) && dropShadowLowStyle),
8556
+ },
8530
8557
  icon: {
8531
8558
  '&:dir(rtl)': {
8532
8559
  transform: 'scaleX(-1)',
@@ -8549,7 +8576,7 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
8549
8576
  };
8550
8577
  };
8551
8578
  const getItemPadding = (hasIconAndSlottedContent) => hasIconAndSlottedContent ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`;
8552
- const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
8579
+ const getComponentCss$t = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
8553
8580
  const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
8554
8581
  const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
8555
8582
  return getCss({
@@ -8561,6 +8588,7 @@ const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
8561
8588
  ...hostHiddenStyles,
8562
8589
  }),
8563
8590
  },
8591
+ ...preventFoucOfNestedElementsStyles,
8564
8592
  // All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
8565
8593
  button: {
8566
8594
  position: 'relative',
@@ -8622,7 +8650,7 @@ const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
8622
8650
 
8623
8651
  const MIN_ITEM_WIDTH = 46;
8624
8652
  const MAX_ITEM_WIDTH = 220;
8625
- const getComponentCss$r = (maxWidth, columns) => {
8653
+ const getComponentCss$s = (maxWidth, columns) => {
8626
8654
  maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
8627
8655
  return getCss({
8628
8656
  '@global': {
@@ -8925,7 +8953,7 @@ const getListStyles$1 = (direction, theme) => {
8925
8953
  },
8926
8954
  };
8927
8955
  };
8928
- const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativePopoverCase, theme) => {
8956
+ const getComponentCss$r = (direction, isOpen, state, disabled, filter, isNativePopoverCase, theme) => {
8929
8957
  return getCss(
8930
8958
  // merge because of global styles
8931
8959
  mergeDeep({
@@ -8934,6 +8962,7 @@ const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativeP
8934
8962
  display: 'block',
8935
8963
  position: 'relative',
8936
8964
  },
8965
+ ...preventFoucOfNestedElementsStyles,
8937
8966
  },
8938
8967
  'sr-text': {
8939
8968
  display: 'none',
@@ -8948,7 +8977,7 @@ const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativeP
8948
8977
  : getButtonStyles$1(direction, isOpen, state, theme), isOpen && getListStyles$1(direction, theme)));
8949
8978
  };
8950
8979
 
8951
- const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
8980
+ const getComponentCss$q = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
8952
8981
  return getCss({
8953
8982
  '@global': {
8954
8983
  ':host': {
@@ -8958,6 +8987,7 @@ const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, them
8958
8987
  ...hostHiddenStyles,
8959
8988
  }),
8960
8989
  },
8990
+ ...preventFoucOfNestedElementsStyles,
8961
8991
  // ::slotted(select)
8962
8992
  ...addImportantToEachRule(getSlottedTextFieldTextareaSelectStyles('select', state, false, theme, {
8963
8993
  gridArea: '1/1/1/-1',
@@ -8974,6 +9004,8 @@ const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, them
8974
9004
  root: {
8975
9005
  display: 'grid',
8976
9006
  gap: spacingStaticXSmall,
9007
+ // min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
9008
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
8977
9009
  },
8978
9010
  wrapper: {
8979
9011
  display: 'grid',
@@ -9005,13 +9037,17 @@ const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, them
9005
9037
 
9006
9038
  const INTERNAL_SELECT_SLOT = 'internal-select';
9007
9039
 
9008
- const getComponentCss$o = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
9040
+ const getComponentCss$p = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
9009
9041
  return getCss({
9010
9042
  '@global': {
9011
- ':host': addImportantToEachRule({
9012
- ...colorSchemeStyles,
9013
- ...hostHiddenStyles,
9014
- }),
9043
+ ':host': {
9044
+ display: 'block',
9045
+ ...addImportantToEachRule({
9046
+ ...colorSchemeStyles,
9047
+ ...hostHiddenStyles,
9048
+ }),
9049
+ },
9050
+ ...preventFoucOfNestedElementsStyles,
9015
9051
  ...(isWithinForm &&
9016
9052
  addImportantToEachRule({
9017
9053
  [`::slotted([slot=${INTERNAL_SELECT_SLOT}])`]: {
@@ -9027,6 +9063,8 @@ const getComponentCss$o = (direction, isOpen, isDisabled, hideLabel, state, isWi
9027
9063
  root: {
9028
9064
  display: 'grid',
9029
9065
  gap: spacingStaticXSmall,
9066
+ // min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
9067
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
9030
9068
  ...(isWithinForm && {
9031
9069
  position: 'relative', // Necessary for native HTML validation box positioning (internal-select)
9032
9070
  }),
@@ -9192,7 +9230,7 @@ const sizeMap$1 = {
9192
9230
  large: { height: sizeLarge, width: sizeLarge },
9193
9231
  inherit: { height: 'inherit', width: 'inherit' },
9194
9232
  };
9195
- const getComponentCss$n = (size, theme) => {
9233
+ const getComponentCss$o = (size, theme) => {
9196
9234
  const strokeDasharray = '57'; // C = 2πR
9197
9235
  const animationDuration = `var(${cssVariableAnimationDuration}, ${motionDurationVeryLong})`;
9198
9236
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
@@ -9289,7 +9327,7 @@ const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
9289
9327
  ];
9290
9328
  return svgNumberedCirclePaths[stepCount];
9291
9329
  };
9292
- const getComponentCss$m = (state, disabled, theme) => {
9330
+ const getComponentCss$n = (state, disabled, theme) => {
9293
9331
  const { primaryColor, hoverColor, disabledColor } = getThemedColors(theme);
9294
9332
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
9295
9333
  const isStateCurrent = state === 'current';
@@ -9324,6 +9362,7 @@ const getComponentCss$m = (state, disabled, theme) => {
9324
9362
  },
9325
9363
  }),
9326
9364
  },
9365
+ ...preventFoucOfNestedElementsStyles,
9327
9366
  button: {
9328
9367
  display: 'flex',
9329
9368
  position: 'relative',
@@ -9382,7 +9421,7 @@ const getComponentCss$m = (state, disabled, theme) => {
9382
9421
  });
9383
9422
  };
9384
9423
 
9385
- const getComponentCss$l = (size) => {
9424
+ const getComponentCss$m = (size) => {
9386
9425
  return getCss({
9387
9426
  '@global': {
9388
9427
  ':host': {
@@ -9392,6 +9431,7 @@ const getComponentCss$l = (size) => {
9392
9431
  ...hostHiddenStyles,
9393
9432
  }),
9394
9433
  },
9434
+ ...preventFoucOfNestedElementsStyles,
9395
9435
  },
9396
9436
  scroller: {
9397
9437
  ...textSmallStyle,
@@ -9428,7 +9468,7 @@ const getColors$1 = (checked, disabled, loading, theme) => {
9428
9468
  textColor: disabledOrLoadingColor || primaryColor,
9429
9469
  };
9430
9470
  };
9431
- const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
9471
+ const getComponentCss$l = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
9432
9472
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
9433
9473
  const { buttonBorderColor: buttonBorderColorDark, buttonBorderColorHover: buttonBorderColorHoverDark, buttonBackgroundColor: buttonBackgroundColorDark, buttonBackgroundColorHover: buttonBackgroundColorHoverDark, toggleBackgroundColor: toggleBackgroundColorDark, toggleBackgroundColorHover: toggleBackgroundColorHoverDark, textColor: textColorDark, } = getColors$1(checked, disabled, loading, 'dark');
9434
9474
  return getCss({
@@ -9449,6 +9489,7 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
9449
9489
  })),
9450
9490
  }),
9451
9491
  },
9492
+ ...preventFoucOfNestedElementsStyles,
9452
9493
  button: {
9453
9494
  display: 'flex',
9454
9495
  alignItems: 'center',
@@ -9533,7 +9574,7 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
9533
9574
  });
9534
9575
  };
9535
9576
 
9536
- const getComponentCss$j = () => {
9577
+ const getComponentCss$k = () => {
9537
9578
  return getCss({
9538
9579
  '@global': {
9539
9580
  ':host': {
@@ -9544,7 +9585,7 @@ const getComponentCss$j = () => {
9544
9585
  });
9545
9586
  };
9546
9587
 
9547
- const getComponentCss$i = (multiline) => {
9588
+ const getComponentCss$j = (multiline) => {
9548
9589
  return getCss({
9549
9590
  '@global': {
9550
9591
  ':host': {
@@ -9569,7 +9610,7 @@ const isSortable = (active, direction) => {
9569
9610
  const cssVariableTableHoverColor = '--p-internal-table-hover-color';
9570
9611
  const cssVariableTableBorderColor = '--p-internal-table-border-color';
9571
9612
  const cssVariableTableHeadCellIconFilter = '--p-internal-table-head-cell-icon-filter';
9572
- const getComponentCss$h = (theme) => {
9613
+ const getComponentCss$i = (theme) => {
9573
9614
  const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
9574
9615
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, } = doGetThemedColors('dark');
9575
9616
  return getCss({
@@ -9587,6 +9628,7 @@ const getComponentCss$h = (theme) => {
9587
9628
  }),
9588
9629
  }),
9589
9630
  },
9631
+ ...preventFoucOfNestedElementsStyles,
9590
9632
  '::slotted(*)': addImportantToEachRule({
9591
9633
  [cssVariableTableHoverColor]: hoverColor,
9592
9634
  [cssVariableTableBorderColor]: contrastLowColor,
@@ -9619,7 +9661,7 @@ const getComponentCss$h = (theme) => {
9619
9661
  const { hoverColor } = getThemedColors('light'); // hover color and focus color are the same for light and dark
9620
9662
  const buttonBeforeOffsetVertical = '-2px';
9621
9663
  const buttonBeforeOffsetHorizontal = '-4px';
9622
- const getComponentCss$g = (active, direction, hideLabel, multiline) => {
9664
+ const getComponentCss$h = (active, direction, hideLabel, multiline) => {
9623
9665
  const sortable = isSortable(active, direction);
9624
9666
  return getCss({
9625
9667
  '@global': {
@@ -9632,6 +9674,7 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
9632
9674
  ...hostHiddenStyles,
9633
9675
  }),
9634
9676
  },
9677
+ ...preventFoucOfNestedElementsStyles,
9635
9678
  ...(sortable
9636
9679
  ? {
9637
9680
  button: {
@@ -9695,7 +9738,7 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
9695
9738
  });
9696
9739
  };
9697
9740
 
9698
- const getComponentCss$f = () => {
9741
+ const getComponentCss$g = () => {
9699
9742
  return getCss({
9700
9743
  '@global': {
9701
9744
  ':host': {
@@ -9706,7 +9749,7 @@ const getComponentCss$f = () => {
9706
9749
  });
9707
9750
  };
9708
9751
 
9709
- const getComponentCss$e = () => {
9752
+ const getComponentCss$f = () => {
9710
9753
  return getCss({
9711
9754
  '@global': {
9712
9755
  ':host': {
@@ -9722,7 +9765,7 @@ const getComponentCss$e = () => {
9722
9765
  });
9723
9766
  };
9724
9767
 
9725
- const getComponentCss$d = () => {
9768
+ const getComponentCss$e = () => {
9726
9769
  return getCss({
9727
9770
  '@global': {
9728
9771
  ':host': {
@@ -9747,7 +9790,7 @@ const getComponentCss$d = () => {
9747
9790
  const scrollerAnimatedCssClass = 'scroller--animated';
9748
9791
  const targetSelectors = ['a', 'button'];
9749
9792
  const transformSelector = (selector) => targetSelectors.map((tag) => selector.replace(/\[role]/g, tag)).join();
9750
- const getComponentCss$c = (size, weight, theme) => {
9793
+ const getComponentCss$d = (size, weight, theme) => {
9751
9794
  const { primaryColor, hoverColor } = getThemedColors(theme);
9752
9795
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark } = getThemedColors('dark');
9753
9796
  const barJssStyle = {
@@ -9775,6 +9818,7 @@ const getComponentCss$c = (size, weight, theme) => {
9775
9818
  ...hostHiddenStyles,
9776
9819
  }),
9777
9820
  },
9821
+ ...preventFoucOfNestedElementsStyles,
9778
9822
  ...addImportantToEachRule({
9779
9823
  '::slotted': {
9780
9824
  // TODO: produces duplicated css code in SSR context, we should try to make use of multiple selector like
@@ -9878,7 +9922,7 @@ const getComponentCss$c = (size, weight, theme) => {
9878
9922
  });
9879
9923
  };
9880
9924
 
9881
- const getComponentCss$b = (theme) => {
9925
+ const getComponentCss$c = (theme) => {
9882
9926
  const { primaryColor } = getThemedColors(theme);
9883
9927
  const { primaryColor: primaryColorDark } = getThemedColors('dark');
9884
9928
  return getCss({
@@ -9899,7 +9943,7 @@ const getComponentCss$b = (theme) => {
9899
9943
  });
9900
9944
  };
9901
9945
 
9902
- const getComponentCss$a = () => {
9946
+ const getComponentCss$b = () => {
9903
9947
  return getCss({
9904
9948
  '@global': {
9905
9949
  ':host': {
@@ -9909,6 +9953,7 @@ const getComponentCss$a = () => {
9909
9953
  ...hostHiddenStyles,
9910
9954
  }),
9911
9955
  },
9956
+ ...preventFoucOfNestedElementsStyles,
9912
9957
  },
9913
9958
  root: {
9914
9959
  marginBottom: '8px',
@@ -9930,7 +9975,7 @@ const getThemedBackgroundColor = (tagColor, themedColors) => {
9930
9975
  return colorMap[tagColor];
9931
9976
  };
9932
9977
 
9933
- const getComponentCss$9 = (color, hasLabel, theme) => {
9978
+ const getComponentCss$a = (color, hasLabel, theme) => {
9934
9979
  const themedColors = getThemedColors(theme);
9935
9980
  const themedColorsDark = getThemedColors('dark');
9936
9981
  const { primaryColor, hoverColor, contrastHighColor } = themedColors;
@@ -9948,6 +9993,7 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
9948
9993
  ...hostHiddenStyles,
9949
9994
  }),
9950
9995
  },
9996
+ ...preventFoucOfNestedElementsStyles,
9951
9997
  button: {
9952
9998
  display: 'flex',
9953
9999
  position: 'relative',
@@ -10030,7 +10076,7 @@ const getColors = (tagColor, theme) => {
10030
10076
  backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
10031
10077
  };
10032
10078
  };
10033
- const getComponentCss$8 = (tagColor, compact, isFocusable, hasIcon, theme) => {
10079
+ const getComponentCss$9 = (tagColor, compact, isFocusable, hasIcon, theme) => {
10034
10080
  const { textColor, backgroundColor, backgroundHoverColor } = getColors(tagColor, theme);
10035
10081
  const { textColor: textColorDark, backgroundColor: backgroundColorDark, backgroundHoverColor: backgroundHoverColorDark, } = getColors(tagColor, 'dark');
10036
10082
  const isBackgroundFrosted = tagColor === 'background-frosted';
@@ -10045,6 +10091,7 @@ const getComponentCss$8 = (tagColor, compact, isFocusable, hasIcon, theme) => {
10045
10091
  ...hostHiddenStyles,
10046
10092
  }),
10047
10093
  },
10094
+ ...preventFoucOfNestedElementsStyles,
10048
10095
  span: {
10049
10096
  position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
10050
10097
  display: 'flex',
@@ -10121,7 +10168,7 @@ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
10121
10168
 
10122
10169
  const cssVariableInputPaddingStart = '--p-internal-text-field-input-padding-start';
10123
10170
  const cssVariableInputPaddingEnd = '--p-internal-text-field-input-padding-end';
10124
- const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
10171
+ const getComponentCss$8 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
10125
10172
  const isSearch = isType(inputType, 'search');
10126
10173
  const isPassword = isType(inputType, 'password');
10127
10174
  const isNumber = isType(inputType, 'number');
@@ -10140,6 +10187,7 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
10140
10187
  ...hostHiddenStyles,
10141
10188
  }),
10142
10189
  },
10190
+ ...preventFoucOfNestedElementsStyles,
10143
10191
  // ::slotted(input)
10144
10192
  ...addImportantToEachRule({
10145
10193
  ...getSlottedTextFieldTextareaSelectStyles('input', state, false, theme, {
@@ -10179,6 +10227,8 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
10179
10227
  : formElementPaddingHorizontal,
10180
10228
  display: 'grid',
10181
10229
  gap: spacingStaticXSmall,
10230
+ // min width is needed for showing at least 1 character in very narrow containers. The "2rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
10231
+ minWidth: `calc(2rem + ${formElementPaddingHorizontal} + ${borderWidthBase}*2 + ${hasUnitOrVisibleCounter || isSearch || isPassword || isCalendarOrTimeWithCustomIndicator ? getCalculatedFormElementPaddingHorizontal(isSearch ? 2 : 1) : '0px'})`,
10182
10232
  },
10183
10233
  wrapper: {
10184
10234
  display: 'grid',
@@ -10236,7 +10286,7 @@ const cssVariableUnorderedPseudoContent = '--p-internal-text-list-unordered-pseu
10236
10286
  const cssVariableOrderedGridColumn = '--p-internal-text-list-ordered-grid-column';
10237
10287
  const cssVariableOrderedPseudoSuffix = '--p-internal-text-list-ordered-pseudo-suffix';
10238
10288
  const counter = 'p-text-list-counter';
10239
- const getComponentCss$6 = (type, theme) => {
10289
+ const getComponentCss$7 = (type, theme) => {
10240
10290
  const isOrderedList = isListTypeOrdered(type);
10241
10291
  return getCss({
10242
10292
  '@global': {
@@ -10280,7 +10330,7 @@ const getComponentCss$6 = (type, theme) => {
10280
10330
  });
10281
10331
  };
10282
10332
 
10283
- const getComponentCss$5 = () => {
10333
+ const getComponentCss$6 = () => {
10284
10334
  return getCss({
10285
10335
  '@global': {
10286
10336
  ':host': {
@@ -10318,7 +10368,7 @@ const sizeMap = {
10318
10368
  large: fontSizeTextLarge,
10319
10369
  'x-large': fontSizeTextXLarge,
10320
10370
  };
10321
- const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
10371
+ const getComponentCss$5 = (size, weight, align, color, ellipsis, theme) => {
10322
10372
  return getCss({
10323
10373
  '@global': {
10324
10374
  ':host': {
@@ -10337,7 +10387,7 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
10337
10387
  });
10338
10388
  };
10339
10389
 
10340
- const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10390
+ const getComponentCss$4 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10341
10391
  return getCss({
10342
10392
  '@global': {
10343
10393
  ':host': {
@@ -10347,6 +10397,7 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10347
10397
  ...hostHiddenStyles,
10348
10398
  }),
10349
10399
  },
10400
+ ...preventFoucOfNestedElementsStyles,
10350
10401
  // ::slotted(textarea)
10351
10402
  ...mergeDeep(addImportantToEachRule(getSlottedTextFieldTextareaSelectStyles('textarea', state, false, theme, {
10352
10403
  gridArea: '1/1',
@@ -10389,6 +10440,107 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10389
10440
  });
10390
10441
  };
10391
10442
 
10443
+ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, resize, theme) => {
10444
+ const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
10445
+ const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
10446
+ const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
10447
+ const { formStateColor: formStateColorDark, formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
10448
+ return getCss({
10449
+ '@global': {
10450
+ ':host': {
10451
+ display: 'block',
10452
+ ...addImportantToEachRule({
10453
+ ...colorSchemeStyles,
10454
+ ...hostHiddenStyles,
10455
+ }),
10456
+ },
10457
+ ...preventFoucOfNestedElementsStyles,
10458
+ textarea: {
10459
+ resize,
10460
+ display: 'block',
10461
+ width: '100%',
10462
+ height: 'auto',
10463
+ margin: 0,
10464
+ outline: 0,
10465
+ WebkitAppearance: 'none', // iOS safari
10466
+ appearance: 'none',
10467
+ boxSizing: 'border-box',
10468
+ border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
10469
+ borderRadius: borderRadiusSmall,
10470
+ background: 'transparent',
10471
+ textIndent: 0,
10472
+ color: primaryColor,
10473
+ transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transitions between e.g. disabled states
10474
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10475
+ borderColor: formStateColorDark || contrastMediumColorDark,
10476
+ color: primaryColorDark,
10477
+ }),
10478
+ gridArea: '1/1',
10479
+ font: textSmallStyle.font, // to override line-height
10480
+ padding: hasCounter
10481
+ ? `12px ${formElementPaddingHorizontal} ${spacingStaticLarge}`
10482
+ : `12px ${formElementPaddingHorizontal}`,
10483
+ // TODO: getFocusJssStyle() can't be re-used because focus style differs for form elements
10484
+ '&:focus': {
10485
+ borderColor: primaryColor,
10486
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10487
+ borderColor: primaryColorDark,
10488
+ }),
10489
+ },
10490
+ '&:disabled': {
10491
+ cursor: 'not-allowed',
10492
+ color: disabledColor,
10493
+ borderColor: disabledColor,
10494
+ WebkitTextFillColor: disabledColor,
10495
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10496
+ color: disabledColorDark,
10497
+ borderColor: disabledColorDark,
10498
+ WebkitTextFillColor: disabledColorDark,
10499
+ }),
10500
+ },
10501
+ '&[readonly]': {
10502
+ borderColor: contrastLowColor,
10503
+ background: contrastLowColor,
10504
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10505
+ borderColor: contrastLowColorDark,
10506
+ background: contrastLowColorDark,
10507
+ }),
10508
+ },
10509
+ },
10510
+ ...hoverMediaQuery({
10511
+ // with the media query the selector has higher priority and overrides disabled styles
10512
+ ['textarea:not(:disabled):not(:focus):not([readonly]):hover,label:hover~.wrapper textarea:not(:disabled):not(:focus):not([readonly])']: {
10513
+ borderColor: formStateHoverColor || primaryColor,
10514
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10515
+ borderColor: formStateHoverColorDark || primaryColorDark,
10516
+ }),
10517
+ },
10518
+ }),
10519
+ },
10520
+ root: {
10521
+ display: 'grid',
10522
+ gap: spacingStaticXSmall,
10523
+ },
10524
+ wrapper: {
10525
+ display: 'grid',
10526
+ },
10527
+ ...(hasCounter && {
10528
+ counter: {
10529
+ ...getUnitCounterJssStyle(isDisabled, theme),
10530
+ gridArea: '1/1',
10531
+ placeSelf: 'flex-end',
10532
+ padding: `6px calc(${formElementPaddingHorizontal} + ${borderWidthBase})`,
10533
+ },
10534
+ // TODO: maybe we should extract it as functional component too
10535
+ 'sr-only': getHiddenTextJssStyle(),
10536
+ }),
10537
+ // .label / .required
10538
+ ...getFunctionalComponentLabelStyles(isDisabled, hideLabel, theme),
10539
+ // .message
10540
+ ...getFunctionalComponentStateMessageStyles(theme, state),
10541
+ });
10542
+ };
10543
+
10392
10544
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
10393
10545
  const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
10394
10546
  const ANIMATION_DURATION = motionDurationModerate;
@@ -10430,6 +10582,7 @@ const getComponentCss$1 = () => {
10430
10582
  ...colorSchemeStyles,
10431
10583
  ...hostHiddenStyles,
10432
10584
  }),
10585
+ ...preventFoucOfNestedElementsStyles,
10433
10586
  '@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
10434
10587
  '@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
10435
10588
  },
@@ -10496,79 +10649,80 @@ const getComponentCss = (size, theme) => {
10496
10649
  });
10497
10650
  };
10498
10651
 
10499
- exports.getAccordionCss = getComponentCss$17;
10500
- exports.getBannerCss = getComponentCss$16;
10501
- exports.getButtonCss = getComponentCss$12;
10502
- exports.getButtonGroupCss = getComponentCss$15;
10503
- exports.getButtonPureCss = getComponentCss$14;
10504
- exports.getButtonTileCss = getComponentCss$13;
10505
- exports.getCanvasCss = getComponentCss$11;
10506
- exports.getCarouselCss = getComponentCss$10;
10507
- exports.getCheckboxWrapperCss = getComponentCss$$;
10508
- exports.getContentWrapperCss = getComponentCss$_;
10509
- exports.getCrestCss = getComponentCss$Z;
10510
- exports.getDisplayCss = getComponentCss$Y;
10511
- exports.getDividerCss = getComponentCss$X;
10512
- exports.getFieldsetCss = getComponentCss$V;
10513
- exports.getFieldsetWrapperCss = getComponentCss$W;
10514
- exports.getFlexCss = getComponentCss$T;
10515
- exports.getFlexItemCss = getComponentCss$U;
10516
- exports.getFlyoutCss = getComponentCss$Q;
10517
- exports.getFlyoutMultilevelCss = getComponentCss$S;
10518
- exports.getFlyoutMultilevelItemCss = getComponentCss$R;
10652
+ exports.getAccordionCss = getComponentCss$18;
10653
+ exports.getBannerCss = getComponentCss$17;
10654
+ exports.getButtonCss = getComponentCss$13;
10655
+ exports.getButtonGroupCss = getComponentCss$16;
10656
+ exports.getButtonPureCss = getComponentCss$15;
10657
+ exports.getButtonTileCss = getComponentCss$14;
10658
+ exports.getCanvasCss = getComponentCss$12;
10659
+ exports.getCarouselCss = getComponentCss$11;
10660
+ exports.getCheckboxWrapperCss = getComponentCss$10;
10661
+ exports.getContentWrapperCss = getComponentCss$$;
10662
+ exports.getCrestCss = getComponentCss$_;
10663
+ exports.getDisplayCss = getComponentCss$Z;
10664
+ exports.getDividerCss = getComponentCss$Y;
10665
+ exports.getFieldsetCss = getComponentCss$W;
10666
+ exports.getFieldsetWrapperCss = getComponentCss$X;
10667
+ exports.getFlexCss = getComponentCss$U;
10668
+ exports.getFlexItemCss = getComponentCss$V;
10669
+ exports.getFlyoutCss = getComponentCss$R;
10670
+ exports.getFlyoutMultilevelCss = getComponentCss$T;
10671
+ exports.getFlyoutMultilevelItemCss = getComponentCss$S;
10519
10672
  exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
10520
10673
  exports.getFunctionalComponentLoadingMessageStyles = getFunctionalComponentLoadingMessageStyles;
10521
10674
  exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
10522
10675
  exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
10523
- exports.getGridCss = getComponentCss$O;
10524
- exports.getGridItemCss = getComponentCss$P;
10525
- exports.getHeadingCss = getComponentCss$N;
10526
- exports.getHeadlineCss = getComponentCss$M;
10527
- exports.getIconCss = getComponentCss$L;
10528
- exports.getInlineNotificationCss = getComponentCss$K;
10529
- exports.getLinkCss = getComponentCss$I;
10530
- exports.getLinkPureCss = getComponentCss$J;
10531
- exports.getLinkSocialCss = getComponentCss$I;
10532
- exports.getLinkTileCss = getComponentCss$F;
10533
- exports.getLinkTileModelSignatureCss = getComponentCss$H;
10534
- exports.getLinkTileProductCss = getComponentCss$G;
10535
- exports.getMarqueCss = getComponentCss$E;
10536
- exports.getModalCss = getComponentCss$D;
10537
- exports.getModelSignatureCss = getComponentCss$C;
10538
- exports.getMultiSelectCss = getComponentCss$A;
10539
- exports.getMultiSelectOptionCss = getComponentCss$B;
10540
- exports.getOptgroupCss = getComponentCss$y;
10541
- exports.getPaginationCss = getComponentCss$x;
10542
- exports.getPinCodeCss = getComponentCss$w;
10543
- exports.getPopoverCss = getComponentCss$v;
10544
- exports.getRadioButtonWrapperCss = getComponentCss$u;
10545
- exports.getScrollerCss = getComponentCss$t;
10546
- exports.getSegmentedControlCss = getComponentCss$r;
10547
- exports.getSegmentedControlItemCss = getComponentCss$s;
10548
- exports.getSelectCss = getComponentCss$o;
10549
- exports.getSelectOptionCss = getComponentCss$z;
10550
- exports.getSelectWrapperCss = getComponentCss$p;
10551
- exports.getSelectWrapperDropdownCss = getComponentCss$q;
10552
- exports.getSpinnerCss = getComponentCss$n;
10553
- exports.getStepperHorizontalCss = getComponentCss$l;
10554
- exports.getStepperHorizontalItemCss = getComponentCss$m;
10555
- exports.getSwitchCss = getComponentCss$k;
10556
- exports.getTableBodyCss = getComponentCss$j;
10557
- exports.getTableCellCss = getComponentCss$i;
10558
- exports.getTableCss = getComponentCss$h;
10559
- exports.getTableHeadCellCss = getComponentCss$g;
10560
- exports.getTableHeadCss = getComponentCss$e;
10561
- exports.getTableHeadRowCss = getComponentCss$f;
10562
- exports.getTableRowCss = getComponentCss$d;
10563
- exports.getTabsBarCss = getComponentCss$c;
10564
- exports.getTabsCss = getComponentCss$a;
10565
- exports.getTabsItemCss = getComponentCss$b;
10566
- exports.getTagCss = getComponentCss$8;
10567
- exports.getTagDismissibleCss = getComponentCss$9;
10568
- exports.getTextCss = getComponentCss$4;
10569
- exports.getTextFieldWrapperCss = getComponentCss$7;
10570
- exports.getTextListCss = getComponentCss$6;
10571
- exports.getTextListItemCss = getComponentCss$5;
10572
- exports.getTextareaWrapperCss = getComponentCss$3;
10676
+ exports.getGridCss = getComponentCss$P;
10677
+ exports.getGridItemCss = getComponentCss$Q;
10678
+ exports.getHeadingCss = getComponentCss$O;
10679
+ exports.getHeadlineCss = getComponentCss$N;
10680
+ exports.getIconCss = getComponentCss$M;
10681
+ exports.getInlineNotificationCss = getComponentCss$L;
10682
+ exports.getLinkCss = getComponentCss$J;
10683
+ exports.getLinkPureCss = getComponentCss$K;
10684
+ exports.getLinkSocialCss = getComponentCss$J;
10685
+ exports.getLinkTileCss = getComponentCss$G;
10686
+ exports.getLinkTileModelSignatureCss = getComponentCss$I;
10687
+ exports.getLinkTileProductCss = getComponentCss$H;
10688
+ exports.getMarqueCss = getComponentCss$F;
10689
+ exports.getModalCss = getComponentCss$E;
10690
+ exports.getModelSignatureCss = getComponentCss$D;
10691
+ exports.getMultiSelectCss = getComponentCss$B;
10692
+ exports.getMultiSelectOptionCss = getComponentCss$C;
10693
+ exports.getOptgroupCss = getComponentCss$z;
10694
+ exports.getPaginationCss = getComponentCss$y;
10695
+ exports.getPinCodeCss = getComponentCss$x;
10696
+ exports.getPopoverCss = getComponentCss$w;
10697
+ exports.getRadioButtonWrapperCss = getComponentCss$v;
10698
+ exports.getScrollerCss = getComponentCss$u;
10699
+ exports.getSegmentedControlCss = getComponentCss$s;
10700
+ exports.getSegmentedControlItemCss = getComponentCss$t;
10701
+ exports.getSelectCss = getComponentCss$p;
10702
+ exports.getSelectOptionCss = getComponentCss$A;
10703
+ exports.getSelectWrapperCss = getComponentCss$q;
10704
+ exports.getSelectWrapperDropdownCss = getComponentCss$r;
10705
+ exports.getSpinnerCss = getComponentCss$o;
10706
+ exports.getStepperHorizontalCss = getComponentCss$m;
10707
+ exports.getStepperHorizontalItemCss = getComponentCss$n;
10708
+ exports.getSwitchCss = getComponentCss$l;
10709
+ exports.getTableBodyCss = getComponentCss$k;
10710
+ exports.getTableCellCss = getComponentCss$j;
10711
+ exports.getTableCss = getComponentCss$i;
10712
+ exports.getTableHeadCellCss = getComponentCss$h;
10713
+ exports.getTableHeadCss = getComponentCss$f;
10714
+ exports.getTableHeadRowCss = getComponentCss$g;
10715
+ exports.getTableRowCss = getComponentCss$e;
10716
+ exports.getTabsBarCss = getComponentCss$d;
10717
+ exports.getTabsCss = getComponentCss$b;
10718
+ exports.getTabsItemCss = getComponentCss$c;
10719
+ exports.getTagCss = getComponentCss$9;
10720
+ exports.getTagDismissibleCss = getComponentCss$a;
10721
+ exports.getTextCss = getComponentCss$5;
10722
+ exports.getTextFieldWrapperCss = getComponentCss$8;
10723
+ exports.getTextListCss = getComponentCss$7;
10724
+ exports.getTextListItemCss = getComponentCss$6;
10725
+ exports.getTextareaCss = getComponentCss$3;
10726
+ exports.getTextareaWrapperCss = getComponentCss$4;
10573
10727
  exports.getToastCss = getComponentCss$1;
10574
10728
  exports.getWordmarkCss = getComponentCss;