@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
@@ -3602,6 +3602,21 @@ const motionEasingMap = {
3602
3602
  out: motionEasingOut,
3603
3603
  linear: 'linear',
3604
3604
  };
3605
+ /**
3606
+ * Base value used for spacing calculations
3607
+ *
3608
+ * This constant defines the base value of 16 pixels, which serves as a
3609
+ * standard unit for calculating relative sizes. By multiplying this base
3610
+ * value with scaling factors and proportions, you can derive consistent
3611
+ * and proportional dimensions and spacings throughout the design.
3612
+ *
3613
+ * Example:
3614
+ * const spacing = scalingFactor * proportion * SCALING_BASE_VALUE;
3615
+ */
3616
+ const SCALING_BASE_VALUE = '16px';
3617
+ const dismissButtonJssStyle = {
3618
+ '--p-internal-button-scaling': 0,
3619
+ };
3605
3620
  const cssVariableTransitionDuration = '--p-transition-duration';
3606
3621
  const cssVariableAnimationDuration = '--p-animation-duration';
3607
3622
  const getTransition = (cssProperty, duration = 'short', easing = 'base', delay) => {
@@ -3611,9 +3626,10 @@ const addImportantToRule = (value) => `${value} !important`;
3611
3626
  const addImportantToEachRule = (input) => {
3612
3627
  return Object.entries(input).reduce((result, [key, value]) => value === null
3613
3628
  ? result
3614
- : ((result[key] =
3615
- typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3616
- result), {});
3629
+ : // @ts-expect-error: Type string can't be used to index type JssStyle
3630
+ ((result[key] =
3631
+ typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3632
+ result), {});
3617
3633
  };
3618
3634
  // 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"
3619
3635
  // TODO: This mechanism needs to be investigated as part of refactoring
@@ -3742,6 +3758,12 @@ const prefersColorSchemeDarkMediaQuery = (theme, style) => {
3742
3758
  return isThemeAuto(theme) && { '@media (prefers-color-scheme: dark)': style };
3743
3759
  };
3744
3760
 
3761
+ const preventFoucOfNestedElementsStyles = {
3762
+ ':not(:defined,[data-ssr])': {
3763
+ visibility: 'hidden',
3764
+ },
3765
+ };
3766
+
3745
3767
  const getSchemedHighContrastMediaQuery = (light, dark) => {
3746
3768
  return {
3747
3769
  '@media (forced-colors: active) and (prefers-color-scheme: light)': light,
@@ -3929,7 +3951,7 @@ const formatObjectOutput = (value) => {
3929
3951
  'value, ' +
3930
3952
  formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '');
3931
3953
 
3932
- const getComponentCss$17 = (size, compact, open, theme, sticky) => {
3954
+ const getComponentCss$18 = (size, compact, open, theme, sticky) => {
3933
3955
  const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
3934
3956
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
3935
3957
  const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
@@ -3952,6 +3974,7 @@ const getComponentCss$17 = (size, compact, open, theme, sticky) => {
3952
3974
  ...hostHiddenStyles,
3953
3975
  }),
3954
3976
  },
3977
+ ...preventFoucOfNestedElementsStyles,
3955
3978
  button: {
3956
3979
  display: 'flex',
3957
3980
  position: 'relative',
@@ -4098,7 +4121,7 @@ const cssVariableTop = '--p-banner-position-top';
4098
4121
  const cssVariableBottom = '--p-banner-position-bottom';
4099
4122
  const cssVariableZIndex = '--p-internal-banner-z-index';
4100
4123
  const topBottomFallback = '56px';
4101
- const getComponentCss$16 = (isOpen) => {
4124
+ const getComponentCss$17 = (isOpen) => {
4102
4125
  return getCss({
4103
4126
  '@global': {
4104
4127
  ':host': {
@@ -4151,6 +4174,7 @@ const getComponentCss$16 = (isOpen) => {
4151
4174
  ...hostHiddenStyles,
4152
4175
  }),
4153
4176
  },
4177
+ ...preventFoucOfNestedElementsStyles,
4154
4178
  },
4155
4179
  });
4156
4180
  };
@@ -4169,7 +4193,7 @@ const getGroupDirectionJssStyles = (direction) => {
4169
4193
  return groupDirectionJssStyles[direction];
4170
4194
  };
4171
4195
 
4172
- const getComponentCss$15 = (direction) => {
4196
+ const getComponentCss$16 = (direction) => {
4173
4197
  return getCss({
4174
4198
  '@global': {
4175
4199
  ':host': {
@@ -4236,6 +4260,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4236
4260
  ...(!responsiveStretch && { verticalAlign: 'top' }),
4237
4261
  })),
4238
4262
  },
4263
+ ...preventFoucOfNestedElementsStyles,
4239
4264
  },
4240
4265
  root: {
4241
4266
  display: 'flex',
@@ -4321,7 +4346,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
4321
4346
  };
4322
4347
  };
4323
4348
 
4324
- const getComponentCss$14 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
4349
+ const getComponentCss$15 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
4325
4350
  const hasIcon = hasVisibleIcon(icon, iconSource);
4326
4351
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
4327
4352
  root: {
@@ -4359,7 +4384,7 @@ const getFontWeight = (weight) => {
4359
4384
  return fontWeightMap[weight];
4360
4385
  };
4361
4386
 
4362
- const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
4387
+ const getComponentCss$14 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
4363
4388
  const isTopAligned = align === 'top';
4364
4389
  return getCss({
4365
4390
  '@global': {
@@ -4371,6 +4396,7 @@ const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, back
4371
4396
  ...hostHiddenStyles,
4372
4397
  }),
4373
4398
  },
4399
+ ...preventFoucOfNestedElementsStyles,
4374
4400
  slot: {
4375
4401
  display: 'block',
4376
4402
  '&:not([name])': {
@@ -4383,12 +4409,12 @@ const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, back
4383
4409
  zIndex: 3,
4384
4410
  },
4385
4411
  },
4386
- '::slotted(:is(img,picture))': addImportantToEachRule({
4412
+ '::slotted(:is(img,picture,video))': addImportantToEachRule({
4387
4413
  display: 'block',
4388
4414
  width: '100%',
4389
4415
  height: '100%',
4390
4416
  }),
4391
- '::slotted(img)': addImportantToEachRule({
4417
+ '::slotted(:is(img,video))': addImportantToEachRule({
4392
4418
  objectFit: 'cover',
4393
4419
  }),
4394
4420
  a: {
@@ -4453,6 +4479,7 @@ const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, back
4453
4479
  })),
4454
4480
  },
4455
4481
  media: {
4482
+ position: 'relative', // necessary if custom `position: absolute` style is added to media elements
4456
4483
  gridArea: '1/1/-1 /-1',
4457
4484
  zIndex: 1,
4458
4485
  overflow: 'hidden', // relevant for scaling of nested image
@@ -4519,14 +4546,18 @@ const getVariantColors = (variant, theme) => {
4519
4546
  };
4520
4547
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4521
4548
  };
4522
- const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, compact, theme) => {
4549
+ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, compact, cssVariableInternalScaling, theme) => {
4523
4550
  const isPrimary = variant === 'primary';
4524
4551
  const { textColor, borderColor, borderColorHover, backgroundColor, backgroundColorHover } = getVariantColors(variant, theme);
4525
4552
  const { textColor: textColorDark, borderColor: borderColorDark, borderColorHover: borderColorHoverDark, backgroundColor: backgroundColorDark, backgroundColorHover: backgroundColorHoverDark, } = getVariantColors(variant, 'dark');
4526
4553
  const { focusColor } = getThemedColors(theme);
4527
4554
  const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
4528
- const paddingBlock = compact ? '4px' : '13px';
4529
- const paddingInline = compact ? '12px' : '26px';
4555
+ const scalingVar = `var(${cssVariableInternalScaling}, ${compact ? 'calc(4 / 13)' : 1})`; // Compact mode needs to have 4px paddingBlock thus this scaling factor
4556
+ const borderCompensation = variant === 'ghost' ? `+ ${borderWidthBase}` : ''; // Compensate for missing border in ghost variant (Fixes border backdrop-filter blur rendering issue in safari)
4557
+ const paddingBlock = `calc(${scalingVar} * 0.8125 * ${SCALING_BASE_VALUE} ${borderCompensation})`; // 0.8125 * SCALING_BASE_VALUE corresponds to 13px
4558
+ const paddingInline = `max(calc(${scalingVar} * 1.625 * ${SCALING_BASE_VALUE} ${borderCompensation}), ${variant === 'ghost' ? '6px' : '4px'})`; // 1.625 * SCALING_BASE_VALUE corresponds to 26px
4559
+ const gap = `clamp(2px, calc(${scalingVar} * 0.5 * ${SCALING_BASE_VALUE}), 16px)`; // 0.5 * SCALING_BASE_VALUE corresponds to 8px
4560
+ const iconMarginInlineStart = `clamp(-16px, calc(${scalingVar} * -0.5 * ${SCALING_BASE_VALUE}), -2px)`; // -0.5 * SCALING_BASE_VALUE corresponds to -8px
4530
4561
  return {
4531
4562
  '@global': {
4532
4563
  ':host': {
@@ -4534,32 +4565,36 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4534
4565
  ...addImportantToEachRule({
4535
4566
  verticalAlign: 'top',
4536
4567
  outline: 0, // custom element is able to delegate the focus
4568
+ borderRadius: borderRadiusSmall,
4537
4569
  ...colorSchemeStyles,
4538
4570
  ...hostHiddenStyles,
4539
4571
  }),
4540
4572
  },
4573
+ ...preventFoucOfNestedElementsStyles,
4541
4574
  },
4542
4575
  root: {
4543
4576
  display: 'flex',
4544
4577
  alignItems: 'flex-start',
4545
4578
  justifyContent: 'center',
4546
- width: '100%',
4579
+ width: '100%', // Allows for setting a width on the host
4580
+ minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
4547
4581
  boxSizing: 'border-box',
4548
4582
  textAlign: 'start',
4549
4583
  WebkitAppearance: 'none', // iOS safari
4550
4584
  appearance: 'none',
4551
4585
  textDecoration: 'none',
4552
- border: `${borderWidthBase} solid ${borderColor}`,
4586
+ ...textSmallStyle,
4587
+ ...(variant === 'ghost'
4588
+ ? { ...frostedGlassStyle, border: 'none' } // We can't use a border in the ghost variant due to rendering issues with backdrop-filter in safari
4589
+ : { border: `${borderWidthBase} solid ${borderColor}` }),
4553
4590
  borderRadius: borderRadiusSmall,
4554
4591
  transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
4555
4592
  backgroundColor,
4556
- ...(variant === 'ghost' && { ...frostedGlassStyle, backgroundClip: 'padding-box' }), // background color overlays border-color otherwise
4557
4593
  color: textColor,
4558
- ...textSmallStyle,
4559
4594
  transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`,
4560
4595
  ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4561
4596
  padding: hideLabelValue ? paddingBlock : `${paddingBlock} ${paddingInline}`,
4562
- gap: hideLabelValue ? 0 : compact ? '6px' : spacingStaticSmall,
4597
+ gap: hideLabelValue ? 0 : gap,
4563
4598
  })),
4564
4599
  ...(!hasSlottedAnchor && getFocusJssStyle(theme)),
4565
4600
  ...(!isDisabledOrLoading &&
@@ -4586,13 +4621,14 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4586
4621
  width: fontLineHeight, // ensure space is already reserved until icon component is loaded (ssr)
4587
4622
  height: fontLineHeight, // ensure space is already reserved until icon component is loaded (ssr)
4588
4623
  ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4589
- marginInlineStart: hideLabelValue ? 0 : compact ? '-6px' : '-8px', // compensate white space of svg icon and optimize visual alignment
4624
+ marginInlineStart: hideLabelValue ? 0 : iconMarginInlineStart, // compensate white space of svg icon and optimize visual alignment
4590
4625
  })),
4591
4626
  },
4592
4627
  }),
4593
4628
  };
4594
4629
  };
4595
4630
 
4631
+ const cssVariableInternalButtonScaling = '--p-internal-button-scaling';
4596
4632
  const getDisabledColors = (variant, loading, theme) => {
4597
4633
  const { contrastMediumColor, contrastHighColor, disabledColor, hoverColor, backgroundFrostedColor } = getThemedColors(theme);
4598
4634
  const { canvasColor } = getHighContrastColors();
@@ -4615,12 +4651,12 @@ const getDisabledColors = (variant, loading, theme) => {
4615
4651
  };
4616
4652
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4617
4653
  };
4618
- const getComponentCss$12 = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
4654
+ const getComponentCss$13 = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
4619
4655
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
4620
4656
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
4621
4657
  const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
4622
4658
  const isPrimary = variant === 'primary';
4623
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, compact, theme), {
4659
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, compact, cssVariableInternalButtonScaling, theme), {
4624
4660
  root: {
4625
4661
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
4626
4662
  ...(disabledOrLoading && {
@@ -4679,7 +4715,7 @@ const sidebarWidths = {
4679
4715
  medium: '320px',
4680
4716
  large: '480px', // TODO: won't work at viewport 1000px when both sidebars are opened
4681
4717
  };
4682
- const getComponentCss$11 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndOpen, sidebarEndWidth) => {
4718
+ const getComponentCss$12 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndOpen, sidebarEndWidth) => {
4683
4719
  return getCss({
4684
4720
  '@global': {
4685
4721
  ':host': {
@@ -4689,6 +4725,7 @@ const getComponentCss$11 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndO
4689
4725
  ...hostHiddenStyles,
4690
4726
  }),
4691
4727
  },
4728
+ ...preventFoucOfNestedElementsStyles,
4692
4729
  ':is(header, main, footer, aside)': {
4693
4730
  padding: gridProductiveGap,
4694
4731
  boxSizing: 'border-box',
@@ -4788,7 +4825,7 @@ const backfaceVisibilityJssStyle = {
4788
4825
  backfaceVisibility: 'hidden',
4789
4826
  WebkitBackfaceVisibility: 'hidden',
4790
4827
  };
4791
- const getComponentCss$10 = (hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation) => {
4828
+ const getComponentCss$11 = (hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation) => {
4792
4829
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
4793
4830
  const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
4794
4831
  const { canvasTextColor } = getHighContrastColors();
@@ -4805,6 +4842,7 @@ const getComponentCss$10 = (hasHeading, hasDescription, hasControlsSlot, heading
4805
4842
  ...hostHiddenStyles,
4806
4843
  }),
4807
4844
  },
4845
+ ...preventFoucOfNestedElementsStyles,
4808
4846
  ...(hasControlsSlot && {
4809
4847
  ['slot[name="controls"]']: {
4810
4848
  display: 'block',
@@ -5219,7 +5257,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
5219
5257
  const getIndeterminateSVGBackgroundImage = (fill) => {
5220
5258
  return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
5221
5259
  };
5222
- const getComponentCss$$ = (hideLabel, state, isDisabled, isLoading, theme) => {
5260
+ const getComponentCss$10 = (hideLabel, state, isDisabled, isLoading, theme) => {
5223
5261
  const { canvasColor } = getHighContrastColors();
5224
5262
  const checkedIconColor = isHighContrastMode
5225
5263
  ? canvasColor
@@ -5242,6 +5280,7 @@ const getComponentCss$$ = (hideLabel, state, isDisabled, isLoading, theme) => {
5242
5280
  ...hostHiddenStyles,
5243
5281
  }),
5244
5282
  },
5283
+ ...preventFoucOfNestedElementsStyles,
5245
5284
  // ::slotted(input)
5246
5285
  ...addImportantToEachRule(mergeDeep(getSlottedCheckboxRadioButtonStyles(state, isDisabled, isLoading, theme), {
5247
5286
  '::slotted': {
@@ -5314,7 +5353,7 @@ const widthMap = {
5314
5353
  basic: gridBasicOffset,
5315
5354
  extended: gridExtendedOffset,
5316
5355
  };
5317
- const getComponentCss$_ = (width) => {
5356
+ const getComponentCss$$ = (width) => {
5318
5357
  return getCss({
5319
5358
  '@global': {
5320
5359
  ':host': {
@@ -5356,7 +5395,7 @@ const getDimensionStyle = {
5356
5395
  width: 'inherit',
5357
5396
  height: 'inherit',
5358
5397
  };
5359
- const getComponentCss$Z = () => {
5398
+ const getComponentCss$_ = () => {
5360
5399
  return getCss({
5361
5400
  '@global': {
5362
5401
  ':host': {
@@ -5455,7 +5494,7 @@ const sizeMap$4 = {
5455
5494
  medium: fontSizeDisplayMedium,
5456
5495
  large: fontSizeDisplayLarge,
5457
5496
  };
5458
- const getComponentCss$Y = (size, align, color, ellipsis, theme) => {
5497
+ const getComponentCss$Z = (size, align, color, ellipsis, theme) => {
5459
5498
  return getCss({
5460
5499
  '@global': {
5461
5500
  ':host': {
@@ -5473,7 +5512,7 @@ const getComponentCss$Y = (size, align, color, ellipsis, theme) => {
5473
5512
  });
5474
5513
  };
5475
5514
 
5476
- const getComponentCss$X = (color, orientation, theme) => {
5515
+ const getComponentCss$Y = (color, orientation, theme) => {
5477
5516
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
5478
5517
  const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
5479
5518
  const colorMap = {
@@ -5516,7 +5555,7 @@ const getComponentCss$X = (color, orientation, theme) => {
5516
5555
  });
5517
5556
  };
5518
5557
 
5519
- const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5558
+ const getComponentCss$X = (state, labelSize, hasLabel, theme) => {
5520
5559
  return getCss({
5521
5560
  '@global': {
5522
5561
  ':host': {
@@ -5526,6 +5565,7 @@ const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5526
5565
  ...hostHiddenStyles,
5527
5566
  }),
5528
5567
  },
5568
+ ...preventFoucOfNestedElementsStyles,
5529
5569
  fieldset: {
5530
5570
  margin: 0,
5531
5571
  padding: 0,
@@ -5552,7 +5592,7 @@ const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5552
5592
  });
5553
5593
  };
5554
5594
 
5555
- const getComponentCss$V = (state, labelSize, hasLabel, theme) => {
5595
+ const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
5556
5596
  return getCss({
5557
5597
  '@global': {
5558
5598
  ':host': {
@@ -5562,6 +5602,7 @@ const getComponentCss$V = (state, labelSize, hasLabel, theme) => {
5562
5602
  ...hostHiddenStyles,
5563
5603
  }),
5564
5604
  },
5605
+ ...preventFoucOfNestedElementsStyles,
5565
5606
  fieldset: {
5566
5607
  margin: 0,
5567
5608
  padding: 0,
@@ -5598,7 +5639,7 @@ const flexItemWidths = {
5598
5639
  full: 100,
5599
5640
  auto: 'auto',
5600
5641
  };
5601
- const getComponentCss$U = (width, offset, alignSelf, grow, shrink, flex) => {
5642
+ const getComponentCss$V = (width, offset, alignSelf, grow, shrink, flex) => {
5602
5643
  return getCss({
5603
5644
  '@global': {
5604
5645
  ':host': addImportantToEachRule({
@@ -5620,7 +5661,7 @@ const getComponentCss$U = (width, offset, alignSelf, grow, shrink, flex) => {
5620
5661
  });
5621
5662
  };
5622
5663
 
5623
- const getComponentCss$T = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5664
+ const getComponentCss$U = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5624
5665
  return getCss({
5625
5666
  '@global': {
5626
5667
  ':host': {
@@ -5661,7 +5702,7 @@ const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
5661
5702
  const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
5662
5703
  const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
5663
5704
  const mediaQueryEnhancedView = getMediaQueryMin('s');
5664
- const getComponentCss$S = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
5705
+ const getComponentCss$T = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
5665
5706
  const { backgroundColor } = getThemedColors(theme);
5666
5707
  const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
5667
5708
  const frostedGlassBackgroundColor = isThemeDark(theme)
@@ -5681,6 +5722,7 @@ const getComponentCss$S = (isPrimaryScrollerVisible, isSecondaryScrollerVisible,
5681
5722
  ...hostHiddenStyles,
5682
5723
  }),
5683
5724
  },
5725
+ ...preventFoucOfNestedElementsStyles,
5684
5726
  dialog: {
5685
5727
  ...getFlyoutDialogResetJssStyle(),
5686
5728
  inset: '0',
@@ -5800,7 +5842,7 @@ const getContentJssStyle = () => {
5800
5842
 
5801
5843
  const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
5802
5844
  const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
5803
- const getComponentCss$R = (isSecondaryScrollerVisible, theme) => {
5845
+ const getComponentCss$S = (isSecondaryScrollerVisible, theme) => {
5804
5846
  const { primaryColor, backgroundSurfaceColor, hoverColor } = getThemedColors(theme);
5805
5847
  const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
5806
5848
  const frostedGlassBackgroundColor = isThemeDark(theme)
@@ -5827,6 +5869,7 @@ const getComponentCss$R = (isSecondaryScrollerVisible, theme) => {
5827
5869
  ...hostHiddenStyles,
5828
5870
  }),
5829
5871
  },
5872
+ ...preventFoucOfNestedElementsStyles,
5830
5873
  '::slotted(:is(h1, h2, h3, h4, h5, h6))': addImportantToEachRule({
5831
5874
  ...headingSmallStyle,
5832
5875
  margin: 0,
@@ -6106,19 +6149,9 @@ const getDialogTransitionJssStyle = (isVisible, slideIn) => {
6106
6149
  transition: `${getTransition('opacity', duration, easing)}, ${getTransition('transform', duration, easing)}`,
6107
6150
  };
6108
6151
  };
6109
- const getDismissButtonJssStyle = (theme, isOpen, applyAutoFocusHack = false) => {
6110
- const { backgroundSurfaceColor } = getThemedColors(theme);
6111
- const { backgroundSurfaceColor: backgroundSurfaceColorDark } = getThemedColors('dark');
6152
+ const getDialogDismissButtonJssStyle = (isOpen, applyAutoFocusHack = false) => {
6112
6153
  return {
6113
- width: 'fit-content',
6114
- height: 'fit-content',
6115
- border: `2px solid ${backgroundSurfaceColor}`, // needed to enlarge button slightly without affecting the hover area (are equal now).
6116
- borderRadius: borderRadiusSmall,
6117
- background: backgroundSurfaceColor,
6118
- ...prefersColorSchemeDarkMediaQuery(theme, {
6119
- background: backgroundSurfaceColorDark,
6120
- borderColor: backgroundSurfaceColorDark,
6121
- }),
6154
+ ...dismissButtonJssStyle,
6122
6155
  // we need to ensure that the dismiss button, which gets auto focused by `.showModal()`, to always be in the
6123
6156
  // viewport (or off the view on the start-hand side) before the dialog transition starts otherwise the transition
6124
6157
  // won't work in all cases, e.g. `dir="rtl"` and `<p-flyout position="end" />`. Because auto focus would force the
@@ -6160,7 +6193,7 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
6160
6193
  const cssVariableWidth$2 = '--p-flyout-width';
6161
6194
  // TODO: we shouldn't expose --p-flyout-max-width
6162
6195
  const cssVariableMaxWidth = '--p-flyout-max-width';
6163
- const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter, theme) => {
6196
+ const getComponentCss$R = (isOpen, position, hasHeader, hasFooter, hasSubFooter, theme) => {
6164
6197
  const isPositionStart = position === 'start' || position === 'left';
6165
6198
  return getCss({
6166
6199
  '@global': {
@@ -6172,6 +6205,7 @@ const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
6172
6205
  ...hostHiddenStyles,
6173
6206
  }),
6174
6207
  },
6208
+ ...preventFoucOfNestedElementsStyles,
6175
6209
  slot: {
6176
6210
  display: 'block',
6177
6211
  '&:first-of-type': {
@@ -6218,7 +6252,7 @@ const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
6218
6252
  maxWidth: `var(${cssVariableMaxWidth},1180px)`,
6219
6253
  },
6220
6254
  dismiss: {
6221
- ...getDismissButtonJssStyle(theme, isOpen, !isPositionStart),
6255
+ ...getDialogDismissButtonJssStyle(isOpen, !isPositionStart),
6222
6256
  gridArea: '1/3',
6223
6257
  zIndex: 4, // ensures dismiss button is above everything
6224
6258
  position: 'sticky',
@@ -6234,7 +6268,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
6234
6268
  const gridItemWidths = [
6235
6269
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
6236
6270
  ];
6237
- const getComponentCss$P = (size, offset) => {
6271
+ const getComponentCss$Q = (size, offset) => {
6238
6272
  return getCss({
6239
6273
  '@global': {
6240
6274
  ':host': addImportantToEachRule({
@@ -6254,7 +6288,7 @@ const getComponentCss$P = (size, offset) => {
6254
6288
  };
6255
6289
 
6256
6290
  const gutter = `calc(${gridGap} / -2)`;
6257
- const getComponentCss$O = (direction, wrap) => {
6291
+ const getComponentCss$P = (direction, wrap) => {
6258
6292
  return getCss({
6259
6293
  '@global': {
6260
6294
  ':host': {
@@ -6280,7 +6314,7 @@ const sizeMap$3 = {
6280
6314
  'x-large': fontSizeHeadingXLarge,
6281
6315
  'xx-large': fontSizeHeadingXXLarge,
6282
6316
  };
6283
- const getComponentCss$N = (size, align, color, ellipsis, theme) => {
6317
+ const getComponentCss$O = (size, align, color, ellipsis, theme) => {
6284
6318
  return getCss({
6285
6319
  '@global': {
6286
6320
  ':host': {
@@ -6340,7 +6374,7 @@ const getTextSizeJssStyle = (textSize) => {
6340
6374
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
6341
6375
  };
6342
6376
  };
6343
- const getComponentCss$M = (variant, align, color, ellipsis, theme) => {
6377
+ const getComponentCss$N = (variant, align, color, ellipsis, theme) => {
6344
6378
  return getCss({
6345
6379
  '@global': {
6346
6380
  ':host': {
@@ -6448,7 +6482,7 @@ const isFlippableIcon = (name, source) => {
6448
6482
  name === 'logout' ||
6449
6483
  name === 'send'));
6450
6484
  };
6451
- const getComponentCss$L = (name, source, color, size, theme) => {
6485
+ const getComponentCss$M = (name, source, color, size, theme) => {
6452
6486
  const isColorInherit = color === 'inherit';
6453
6487
  const isSizeInherit = size === 'inherit';
6454
6488
  const isDark = isThemeDark(theme);
@@ -6540,6 +6574,7 @@ const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
6540
6574
  };
6541
6575
  };
6542
6576
  const getNotificationIconJssStyle = () => ({
6577
+ marginTop: '2px', // To be center aligned with close button
6543
6578
  [mediaQueryMaxS$2]: {
6544
6579
  display: 'none',
6545
6580
  },
@@ -6548,6 +6583,7 @@ const getNotificationContentJssStyle = () => ({
6548
6583
  display: 'grid',
6549
6584
  gap: spacingStaticXSmall,
6550
6585
  maxWidth: '50rem',
6586
+ marginTop: '2px', // To be center aligned with close button
6551
6587
  [mediaQueryMinS$1]: {
6552
6588
  marginLeft: `-${spacingStaticSmall}`,
6553
6589
  },
@@ -6565,7 +6601,7 @@ const getHeadingJssStyle = (theme) => ({
6565
6601
  ...headingSmallStyle,
6566
6602
  ...getTextJssStyle(theme),
6567
6603
  });
6568
- const getComponentCss$K = (state, hasAction, hasClose, theme) => {
6604
+ const getComponentCss$L = (state, hasAction, hasClose, theme) => {
6569
6605
  return getCss({
6570
6606
  '@global': {
6571
6607
  ':host': {
@@ -6576,6 +6612,7 @@ const getComponentCss$K = (state, hasAction, hasClose, theme) => {
6576
6612
  ...hostHiddenStyles,
6577
6613
  }),
6578
6614
  },
6615
+ ...preventFoucOfNestedElementsStyles,
6579
6616
  [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
6580
6617
  'slot[name="heading"]': getHeadingJssStyle(theme),
6581
6618
  },
@@ -6588,15 +6625,23 @@ const getComponentCss$K = (state, hasAction, hasClose, theme) => {
6588
6625
  content: getNotificationContentJssStyle(),
6589
6626
  ...(hasAction && {
6590
6627
  action: {
6628
+ marginTop: borderWidthBase, // To visually align with close button
6591
6629
  [mediaQueryMaxS$1]: {
6592
6630
  gridRowStart: 2,
6593
6631
  },
6594
6632
  },
6595
6633
  }),
6634
+ close: {
6635
+ ...dismissButtonJssStyle,
6636
+ mixBlendMode: isThemeDark(theme) ? 'plus-lighter' : 'multiply',
6637
+ ...prefersColorSchemeDarkMediaQuery(theme, {
6638
+ mixBlendMode: 'plus-lighter',
6639
+ }),
6640
+ },
6596
6641
  });
6597
6642
  };
6598
6643
 
6599
- const getComponentCss$J = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6644
+ const getComponentCss$K = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6600
6645
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
6601
6646
  '@global': addImportantToEachRule({
6602
6647
  '::slotted': {
@@ -6624,10 +6669,11 @@ const getComponentCss$J = (icon, iconSource, active, stretch, size, hideLabel, a
6624
6669
  }));
6625
6670
  };
6626
6671
 
6627
- const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, compact, theme) => {
6672
+ const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
6673
+ const getComponentCss$J = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, compact, theme) => {
6628
6674
  const { linkColor } = getHighContrastColors();
6629
6675
  const isPrimary = variant === 'primary';
6630
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, compact, theme), {
6676
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, compact, cssVariableInternalLinkScaling, theme), {
6631
6677
  label: {
6632
6678
  clip: addImportantToRule('unset'), // to overrule breakpoint customizable hide-label style
6633
6679
  },
@@ -6657,7 +6703,7 @@ const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6657
6703
  '&(a)::before': {
6658
6704
  content: '""',
6659
6705
  position: 'fixed',
6660
- inset: '-2px',
6706
+ inset: variant === 'ghost' ? '0px' : '-2px', // Variant ghost has no border to compensate
6661
6707
  borderRadius: borderRadiusSmall,
6662
6708
  },
6663
6709
  ...getFocusJssStyle(theme, { slotted: 'a', pseudo: true }),
@@ -6666,7 +6712,7 @@ const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAncho
6666
6712
  }));
6667
6713
  };
6668
6714
 
6669
- const getComponentCss$H = (aspectRatio, weight, // to get deprecated semibold typed
6715
+ const getComponentCss$I = (aspectRatio, weight, // to get deprecated semibold typed
6670
6716
  direction, hasDescription) => {
6671
6717
  return getCss({
6672
6718
  '@global': {
@@ -6678,6 +6724,7 @@ direction, hasDescription) => {
6678
6724
  ...hostHiddenStyles,
6679
6725
  }),
6680
6726
  },
6727
+ ...preventFoucOfNestedElementsStyles,
6681
6728
  slot: {
6682
6729
  '&:not([name])': {
6683
6730
  display: 'block',
@@ -6692,12 +6739,12 @@ direction, hasDescription) => {
6692
6739
  pointerEvents: 'auto',
6693
6740
  },
6694
6741
  },
6695
- '::slotted(:is(img,picture))': addImportantToEachRule({
6742
+ '::slotted(:is(img,picture,video))': addImportantToEachRule({
6696
6743
  display: 'block',
6697
6744
  width: '100%',
6698
6745
  height: '100%',
6699
6746
  }),
6700
- '::slotted(img)': addImportantToEachRule({
6747
+ '::slotted(:is(img,video))': addImportantToEachRule({
6701
6748
  objectFit: 'cover',
6702
6749
  }),
6703
6750
  a: {
@@ -6759,6 +6806,7 @@ direction, hasDescription) => {
6759
6806
  gap: spacingFluidSmall,
6760
6807
  },
6761
6808
  media: {
6809
+ position: 'relative', // necessary if custom `position: absolute` style is added to media elements
6762
6810
  gridArea: '1/1/-1 /-1',
6763
6811
  zIndex: 1,
6764
6812
  overflow: 'hidden', // relevant for scaling of nested image
@@ -6798,7 +6846,7 @@ const getMultilineEllipsis = (lineClamp) => {
6798
6846
  overflow: 'hidden',
6799
6847
  };
6800
6848
  };
6801
- const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
6849
+ const getComponentCss$H = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
6802
6850
  const { primaryColor, contrastHighColor, contrastMediumColor, backgroundSurfaceColor } = getThemedColors(theme);
6803
6851
  const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
6804
6852
  return getCss({
@@ -6811,6 +6859,7 @@ const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
6811
6859
  ...hostHiddenStyles,
6812
6860
  }),
6813
6861
  },
6862
+ ...preventFoucOfNestedElementsStyles,
6814
6863
  [`slot[name="${headerSlot}"]`]: {
6815
6864
  display: 'block', // to ensure correct like button positioning when slot is unused
6816
6865
  },
@@ -6936,7 +6985,7 @@ const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
6936
6985
  });
6937
6986
  };
6938
6987
 
6939
- const getComponentCss$F = (aspectRatio, size, weight, // to get deprecated semibold typed
6988
+ const getComponentCss$G = (aspectRatio, size, weight, // to get deprecated semibold typed
6940
6989
  background, align, compact, hasGradient, isDisabled) => {
6941
6990
  const isTopAligned = align === 'top';
6942
6991
  return getCss({
@@ -6949,6 +6998,7 @@ background, align, compact, hasGradient, isDisabled) => {
6949
6998
  ...hostHiddenStyles,
6950
6999
  }),
6951
7000
  },
7001
+ ...preventFoucOfNestedElementsStyles,
6952
7002
  slot: {
6953
7003
  display: 'block',
6954
7004
  '&:not([name])': {
@@ -6961,12 +7011,12 @@ background, align, compact, hasGradient, isDisabled) => {
6961
7011
  zIndex: 3,
6962
7012
  },
6963
7013
  },
6964
- '::slotted(:is(img,picture))': addImportantToEachRule({
7014
+ '::slotted(:is(img,picture,video))': addImportantToEachRule({
6965
7015
  display: 'block',
6966
7016
  width: '100%',
6967
7017
  height: '100%',
6968
7018
  }),
6969
- '::slotted(img)': addImportantToEachRule({
7019
+ '::slotted(:is(img,video))': addImportantToEachRule({
6970
7020
  objectFit: 'cover',
6971
7021
  }),
6972
7022
  a: {
@@ -7029,6 +7079,7 @@ background, align, compact, hasGradient, isDisabled) => {
7029
7079
  })),
7030
7080
  },
7031
7081
  media: {
7082
+ position: 'relative', // necessary if custom `position: absolute` style is added to media elements
7032
7083
  gridArea: '1/1/-1 /-1',
7033
7084
  zIndex: 1,
7034
7085
  overflow: 'hidden', // relevant for scaling of nested image
@@ -7075,7 +7126,7 @@ const baseSizes = {
7075
7126
  height: '72px',
7076
7127
  },
7077
7128
  };
7078
- const getComponentCss$E = (size) => {
7129
+ const getComponentCss$F = (size) => {
7079
7130
  return getCss({
7080
7131
  '@global': {
7081
7132
  ':host': {
@@ -7125,7 +7176,7 @@ const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-
7125
7176
  const safeZoneVertical = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
7126
7177
  const safeZoneHorizontal = `${spacingFluidLarge}`;
7127
7178
  const cssClassNameStretchToFullModalWidth = 'stretch-to-full-modal-width';
7128
- const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
7179
+ const getComponentCss$E = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
7129
7180
  return getCss({
7130
7181
  '@global': {
7131
7182
  ':host': {
@@ -7136,6 +7187,7 @@ const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHe
7136
7187
  ...hostHiddenStyles,
7137
7188
  }),
7138
7189
  },
7190
+ ...preventFoucOfNestedElementsStyles,
7139
7191
  // TODO: why not available to Flyout too?
7140
7192
  // 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
7141
7193
  '::slotted': addImportantToEachRule(mergeDeep({
@@ -7231,7 +7283,7 @@ const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHe
7231
7283
  },
7232
7284
  ...(hasDismissButton && {
7233
7285
  dismiss: {
7234
- ...getDismissButtonJssStyle(theme, isOpen),
7286
+ ...getDialogDismissButtonJssStyle(isOpen),
7235
7287
  gridArea: '1/3',
7236
7288
  zIndex: 2, // ensures dismiss button is above sticky footer, header and content
7237
7289
  position: 'sticky',
@@ -7262,7 +7314,7 @@ const getThemedColor = (color, themedColors) => {
7262
7314
  };
7263
7315
  return colorMap[color];
7264
7316
  };
7265
- const getComponentCss$C = (model, safeZone, size, color, theme) => {
7317
+ const getComponentCss$D = (model, safeZone, size, color, theme) => {
7266
7318
  const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
7267
7319
  const isSizeInherit = size === 'inherit';
7268
7320
  return getCss({
@@ -7307,7 +7359,7 @@ const getComponentCss$C = (model, safeZone, size, color, theme) => {
7307
7359
  };
7308
7360
 
7309
7361
  const cssVariableMultiSelectPaddingInlineStart = '--p-internal-multi-select-option-padding-left';
7310
- const getComponentCss$B = (theme) => {
7362
+ const getComponentCss$C = (theme) => {
7311
7363
  const { primaryColor, contrastHighColor, backgroundSurfaceColor, disabledColor, contrastLowColor } = getThemedColors(theme);
7312
7364
  const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, contrastHighColor: contrastHighColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
7313
7365
  const { highlightColor } = getHighContrastColors();
@@ -7317,6 +7369,7 @@ const getComponentCss$B = (theme) => {
7317
7369
  scrollMarginTop: spacingStaticSmall, // Creates top margin when navigating with keyboard and list is scrolled automatically
7318
7370
  ...hostHiddenStyles,
7319
7371
  }),
7372
+ ...preventFoucOfNestedElementsStyles,
7320
7373
  },
7321
7374
  option: {
7322
7375
  display: 'flex',
@@ -7440,6 +7493,9 @@ const getSlottedTextFieldTextareaSelectStyles = (child, state, isLoading, theme,
7440
7493
  }),
7441
7494
  ...additionalDefaultJssStyle,
7442
7495
  },
7496
+ ['::slotted(:not(input[type="password"]))']: {
7497
+ textOverflow: 'ellipsis',
7498
+ },
7443
7499
  ...(!isLoading &&
7444
7500
  hoverMediaQuery({
7445
7501
  // with the media query the selector has higher priority and overrides disabled styles
@@ -7521,7 +7577,7 @@ const getUnitCounterJssStyle = (isDisabled, theme) => {
7521
7577
 
7522
7578
  const INTERNAL_MULTI_SELECT_SLOT = 'internal-select';
7523
7579
 
7524
- const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
7580
+ const getComponentCss$B = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
7525
7581
  const { contrastHighColor } = getThemedColors(theme);
7526
7582
  const { contrastHighColor: contrastHighColorDark } = getThemedColors('dark');
7527
7583
  return getCss({
@@ -7533,6 +7589,7 @@ const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWi
7533
7589
  ...hostHiddenStyles,
7534
7590
  }),
7535
7591
  },
7592
+ ...preventFoucOfNestedElementsStyles,
7536
7593
  ...(isWithinForm &&
7537
7594
  addImportantToEachRule({
7538
7595
  [`::slotted([slot=${INTERNAL_MULTI_SELECT_SLOT}])`]: {
@@ -7548,6 +7605,8 @@ const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWi
7548
7605
  root: {
7549
7606
  display: 'grid',
7550
7607
  gap: spacingStaticXSmall,
7608
+ // 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.
7609
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
7551
7610
  ...(isWithinForm && {
7552
7611
  position: 'relative', // Necessary for native HTML validation box positioning (internal-select)
7553
7612
  }),
@@ -7717,19 +7776,23 @@ const getListStyles$2 = (isOpen, direction, theme) => {
7717
7776
 
7718
7777
  const cssVariableSelectPaddingInlineStart = '--p-internal-select-option-padding-left';
7719
7778
  // TODO: Enforce order of slotted text, img
7720
- const getComponentCss$z = (theme) => {
7779
+ const getComponentCss$A = (theme) => {
7721
7780
  return getCss({
7722
- '@global': addImportantToEachRule({
7723
- ':host': {
7724
- scrollMargin: '6px', // Aligns option when list is scrolled by navigating with keyboard
7725
- ...hostHiddenStyles,
7726
- },
7727
- '::slotted(img)': {
7728
- height: fontLineHeight,
7729
- borderRadius: borderRadiusSmall,
7730
- width: 'auto',
7731
- },
7732
- }),
7781
+ '@global': {
7782
+ ...addImportantToEachRule({
7783
+ ':host': {
7784
+ // TODO: display is missing
7785
+ scrollMargin: '6px', // Aligns option when list is scrolled by navigating with keyboard
7786
+ ...hostHiddenStyles,
7787
+ },
7788
+ '::slotted(img)': {
7789
+ height: fontLineHeight,
7790
+ borderRadius: borderRadiusSmall,
7791
+ width: 'auto',
7792
+ },
7793
+ }),
7794
+ ...preventFoucOfNestedElementsStyles,
7795
+ },
7733
7796
  ...getOptionStyles(theme),
7734
7797
  icon: {
7735
7798
  marginInlineStart: 'auto',
@@ -7805,7 +7868,7 @@ const getOptionStyles = (theme) => {
7805
7868
  };
7806
7869
  };
7807
7870
 
7808
- const getComponentCss$y = (isDisabled, theme) => getCss({
7871
+ const getComponentCss$z = (isDisabled, theme) => getCss({
7809
7872
  '@global': {
7810
7873
  ':host': addImportantToEachRule({
7811
7874
  ...colorSchemeStyles,
@@ -7856,7 +7919,7 @@ const disabledCursorStyle = {
7856
7919
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
7857
7920
  };
7858
7921
  const hiddenStyle = { display: 'none' };
7859
- const getComponentCss$x = (activePage, pageTotal, showLastPage, theme) => {
7922
+ const getComponentCss$y = (activePage, pageTotal, showLastPage, theme) => {
7860
7923
  const { primaryColor, disabledColor, hoverColor } = getThemedColors(theme);
7861
7924
  const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
7862
7925
  return getCss({
@@ -7868,6 +7931,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage, theme) => {
7868
7931
  ...hostHiddenStyles,
7869
7932
  }),
7870
7933
  },
7934
+ ...preventFoucOfNestedElementsStyles,
7871
7935
  nav: {
7872
7936
  display: 'flex',
7873
7937
  justifyContent: 'center',
@@ -7991,7 +8055,7 @@ const removeStyles = (selector, styles) => Object.fromEntries(Object.entries(sty
7991
8055
  return [key, value];
7992
8056
  }));
7993
8057
 
7994
- const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, isWithinForm, length, theme) => {
8058
+ const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, isWithinForm, length, theme) => {
7995
8059
  const inputSize = `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`; // equivalent to calculation of input height within form-styles
7996
8060
  const inputStyles = removeStyles('input[readonly]', removeSlottedSelector(getSlottedTextFieldTextareaSelectStyles('input', state, isLoading, theme, {
7997
8061
  // TODO: move into getSlottedTextFieldTextareaSelectStyles()
@@ -8033,6 +8097,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, isWithinForm
8033
8097
  ...hostHiddenStyles,
8034
8098
  }),
8035
8099
  },
8100
+ ...preventFoucOfNestedElementsStyles,
8036
8101
  // input
8037
8102
  ...inputStyles,
8038
8103
  ...(isWithinForm &&
@@ -8172,7 +8237,7 @@ const getDirectionArrowMap = (theme) => {
8172
8237
  },
8173
8238
  };
8174
8239
  };
8175
- const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
8240
+ const getComponentCss$w = (direction, isNativePopoverCase, theme) => {
8176
8241
  const { hoverColor, backgroundColor, primaryColor, backgroundSurfaceColor } = getThemedColors(theme);
8177
8242
  const { hoverColor: hoverColorDark, primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
8178
8243
  const shadowColor = 'rgba(0,0,0,0.3)';
@@ -8187,6 +8252,7 @@ const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
8187
8252
  ...hostHiddenStyles,
8188
8253
  }),
8189
8254
  },
8255
+ ...preventFoucOfNestedElementsStyles,
8190
8256
  p: {
8191
8257
  ...textSmallStyle,
8192
8258
  margin: 0,
@@ -8282,7 +8348,7 @@ const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
8282
8348
  const getCheckedSVGBackgroundImage = (fill) => {
8283
8349
  return getInlineSVGBackgroundImage(`<circle fill="${fill}" cx="12" cy="12" r="6"/>`);
8284
8350
  };
8285
- const getComponentCss$u = (hideLabel, state, isDisabled, isLoading, theme) => {
8351
+ const getComponentCss$v = (hideLabel, state, isDisabled, isLoading, theme) => {
8286
8352
  const checkedIconColor = isHighContrastMode
8287
8353
  ? getHighContrastColors().canvasColor
8288
8354
  : escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
@@ -8298,6 +8364,7 @@ const getComponentCss$u = (hideLabel, state, isDisabled, isLoading, theme) => {
8298
8364
  ...hostHiddenStyles,
8299
8365
  }),
8300
8366
  },
8367
+ ...preventFoucOfNestedElementsStyles,
8301
8368
  // ::slotted(input)
8302
8369
  ...addImportantToEachRule(mergeDeep(getSlottedCheckboxRadioButtonStyles(state, isDisabled, isLoading, theme), {
8303
8370
  '::slotted': {
@@ -8380,21 +8447,7 @@ const getGradient = (theme, gradientColorTheme) => {
8380
8447
  `rgba(${gradientColor},0)`);
8381
8448
  };
8382
8449
  const prevNextWrapperWidth = `calc(${fontLineHeight} + 24px)`;
8383
- const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
8384
- const { backgroundColor, backgroundSurfaceColor, hoverColor } = getThemedColors(theme);
8385
- const { backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
8386
- const backgroundColorLight = {
8387
- 'background-base': backgroundColor,
8388
- 'background-surface': backgroundSurfaceColor,
8389
- };
8390
- const backgroundColorMap = {
8391
- auto: backgroundColorLight,
8392
- light: backgroundColorLight,
8393
- dark: {
8394
- 'background-base': backgroundSurfaceColorDark,
8395
- 'background-surface': backgroundColorDark,
8396
- },
8397
- };
8450
+ const getComponentCss$u = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
8398
8451
  const actionPrevNextStyles = {
8399
8452
  position: 'absolute',
8400
8453
  top: 0,
@@ -8402,7 +8455,6 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8402
8455
  direction: 'ltr',
8403
8456
  width: prevNextWrapperWidth,
8404
8457
  padding: '4px 0',
8405
- pointerEvents: 'none',
8406
8458
  display: 'flex',
8407
8459
  alignItems: scrollIndicatorPosition === 'center' ? 'center' : 'flex-start',
8408
8460
  };
@@ -8416,36 +8468,7 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8416
8468
  ...hostHiddenStyles,
8417
8469
  }),
8418
8470
  },
8419
- button: {
8420
- display: 'flex',
8421
- pointerEvents: 'auto',
8422
- alignItems: 'center',
8423
- justifyContent: 'center',
8424
- ...textSmallStyle,
8425
- height: `calc(${fontLineHeight} + 4px)`,
8426
- width: `calc(${fontLineHeight} + 4px)`,
8427
- border: 0,
8428
- outline: 0,
8429
- cursor: 'pointer',
8430
- background: backgroundColorMap[theme][gradientColor],
8431
- ...prefersColorSchemeDarkMediaQuery(theme, {
8432
- background: backgroundColorMap.dark[gradientColor],
8433
- }),
8434
- borderRadius: borderRadiusSmall,
8435
- ...frostedGlassStyle,
8436
- visibility: 'hidden',
8437
- ...(!isThemeDark(theme) && dropShadowLowStyle),
8438
- ...hoverMediaQuery({
8439
- transition: getTransition('background-color'),
8440
- '&:hover': {
8441
- ...frostedGlassStyle,
8442
- background: hoverColor,
8443
- ...prefersColorSchemeDarkMediaQuery(theme, {
8444
- background: hoverColorDark,
8445
- }),
8446
- },
8447
- }),
8448
- },
8471
+ ...preventFoucOfNestedElementsStyles,
8449
8472
  },
8450
8473
  root: {
8451
8474
  position: 'relative',
@@ -8500,7 +8523,7 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8500
8523
  background: `linear-gradient(to right, ${getGradient('dark', gradientColor)} 100%)`,
8501
8524
  }),
8502
8525
  visibility: isPrevHidden ? 'hidden' : 'inherit',
8503
- '& button': {
8526
+ '& .action-button': {
8504
8527
  marginLeft: '8px',
8505
8528
  // hide buttons on mobile (actually devices not supporting hover)
8506
8529
  ...hoverMediaQuery({
@@ -8517,7 +8540,7 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8517
8540
  background: `linear-gradient(to left, ${getGradient('dark', gradientColor)} 100%)`,
8518
8541
  }),
8519
8542
  visibility: isNextHidden ? 'hidden' : 'inherit',
8520
- '& button': {
8543
+ '& .action-button': {
8521
8544
  marginRight: '8px',
8522
8545
  // hide buttons on mobile (actually devices not supporting hover)
8523
8546
  ...hoverMediaQuery({
@@ -8525,6 +8548,10 @@ const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
8525
8548
  }),
8526
8549
  },
8527
8550
  },
8551
+ 'action-button': {
8552
+ ...dismissButtonJssStyle,
8553
+ ...(!isThemeDark(theme) && dropShadowLowStyle),
8554
+ },
8528
8555
  icon: {
8529
8556
  '&:dir(rtl)': {
8530
8557
  transform: 'scaleX(-1)',
@@ -8547,7 +8574,7 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
8547
8574
  };
8548
8575
  };
8549
8576
  const getItemPadding = (hasIconAndSlottedContent) => hasIconAndSlottedContent ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`;
8550
- const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
8577
+ const getComponentCss$t = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
8551
8578
  const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
8552
8579
  const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
8553
8580
  return getCss({
@@ -8559,6 +8586,7 @@ const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
8559
8586
  ...hostHiddenStyles,
8560
8587
  }),
8561
8588
  },
8589
+ ...preventFoucOfNestedElementsStyles,
8562
8590
  // All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
8563
8591
  button: {
8564
8592
  position: 'relative',
@@ -8620,7 +8648,7 @@ const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
8620
8648
 
8621
8649
  const MIN_ITEM_WIDTH = 46;
8622
8650
  const MAX_ITEM_WIDTH = 220;
8623
- const getComponentCss$r = (maxWidth, columns) => {
8651
+ const getComponentCss$s = (maxWidth, columns) => {
8624
8652
  maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
8625
8653
  return getCss({
8626
8654
  '@global': {
@@ -8923,7 +8951,7 @@ const getListStyles$1 = (direction, theme) => {
8923
8951
  },
8924
8952
  };
8925
8953
  };
8926
- const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativePopoverCase, theme) => {
8954
+ const getComponentCss$r = (direction, isOpen, state, disabled, filter, isNativePopoverCase, theme) => {
8927
8955
  return getCss(
8928
8956
  // merge because of global styles
8929
8957
  mergeDeep({
@@ -8932,6 +8960,7 @@ const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativeP
8932
8960
  display: 'block',
8933
8961
  position: 'relative',
8934
8962
  },
8963
+ ...preventFoucOfNestedElementsStyles,
8935
8964
  },
8936
8965
  'sr-text': {
8937
8966
  display: 'none',
@@ -8946,7 +8975,7 @@ const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativeP
8946
8975
  : getButtonStyles$1(direction, isOpen, state, theme), isOpen && getListStyles$1(direction, theme)));
8947
8976
  };
8948
8977
 
8949
- const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
8978
+ const getComponentCss$q = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
8950
8979
  return getCss({
8951
8980
  '@global': {
8952
8981
  ':host': {
@@ -8956,6 +8985,7 @@ const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, them
8956
8985
  ...hostHiddenStyles,
8957
8986
  }),
8958
8987
  },
8988
+ ...preventFoucOfNestedElementsStyles,
8959
8989
  // ::slotted(select)
8960
8990
  ...addImportantToEachRule(getSlottedTextFieldTextareaSelectStyles('select', state, false, theme, {
8961
8991
  gridArea: '1/1/1/-1',
@@ -8972,6 +9002,8 @@ const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, them
8972
9002
  root: {
8973
9003
  display: 'grid',
8974
9004
  gap: spacingStaticXSmall,
9005
+ // 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.
9006
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
8975
9007
  },
8976
9008
  wrapper: {
8977
9009
  display: 'grid',
@@ -9003,13 +9035,17 @@ const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, them
9003
9035
 
9004
9036
  const INTERNAL_SELECT_SLOT = 'internal-select';
9005
9037
 
9006
- const getComponentCss$o = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
9038
+ const getComponentCss$p = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
9007
9039
  return getCss({
9008
9040
  '@global': {
9009
- ':host': addImportantToEachRule({
9010
- ...colorSchemeStyles,
9011
- ...hostHiddenStyles,
9012
- }),
9041
+ ':host': {
9042
+ display: 'block',
9043
+ ...addImportantToEachRule({
9044
+ ...colorSchemeStyles,
9045
+ ...hostHiddenStyles,
9046
+ }),
9047
+ },
9048
+ ...preventFoucOfNestedElementsStyles,
9013
9049
  ...(isWithinForm &&
9014
9050
  addImportantToEachRule({
9015
9051
  [`::slotted([slot=${INTERNAL_SELECT_SLOT}])`]: {
@@ -9025,6 +9061,8 @@ const getComponentCss$o = (direction, isOpen, isDisabled, hideLabel, state, isWi
9025
9061
  root: {
9026
9062
  display: 'grid',
9027
9063
  gap: spacingStaticXSmall,
9064
+ // 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.
9065
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
9028
9066
  ...(isWithinForm && {
9029
9067
  position: 'relative', // Necessary for native HTML validation box positioning (internal-select)
9030
9068
  }),
@@ -9190,7 +9228,7 @@ const sizeMap$1 = {
9190
9228
  large: { height: sizeLarge, width: sizeLarge },
9191
9229
  inherit: { height: 'inherit', width: 'inherit' },
9192
9230
  };
9193
- const getComponentCss$n = (size, theme) => {
9231
+ const getComponentCss$o = (size, theme) => {
9194
9232
  const strokeDasharray = '57'; // C = 2πR
9195
9233
  const animationDuration = `var(${cssVariableAnimationDuration}, ${motionDurationVeryLong})`;
9196
9234
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
@@ -9287,7 +9325,7 @@ const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
9287
9325
  ];
9288
9326
  return svgNumberedCirclePaths[stepCount];
9289
9327
  };
9290
- const getComponentCss$m = (state, disabled, theme) => {
9328
+ const getComponentCss$n = (state, disabled, theme) => {
9291
9329
  const { primaryColor, hoverColor, disabledColor } = getThemedColors(theme);
9292
9330
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
9293
9331
  const isStateCurrent = state === 'current';
@@ -9322,6 +9360,7 @@ const getComponentCss$m = (state, disabled, theme) => {
9322
9360
  },
9323
9361
  }),
9324
9362
  },
9363
+ ...preventFoucOfNestedElementsStyles,
9325
9364
  button: {
9326
9365
  display: 'flex',
9327
9366
  position: 'relative',
@@ -9380,7 +9419,7 @@ const getComponentCss$m = (state, disabled, theme) => {
9380
9419
  });
9381
9420
  };
9382
9421
 
9383
- const getComponentCss$l = (size) => {
9422
+ const getComponentCss$m = (size) => {
9384
9423
  return getCss({
9385
9424
  '@global': {
9386
9425
  ':host': {
@@ -9390,6 +9429,7 @@ const getComponentCss$l = (size) => {
9390
9429
  ...hostHiddenStyles,
9391
9430
  }),
9392
9431
  },
9432
+ ...preventFoucOfNestedElementsStyles,
9393
9433
  },
9394
9434
  scroller: {
9395
9435
  ...textSmallStyle,
@@ -9426,7 +9466,7 @@ const getColors$1 = (checked, disabled, loading, theme) => {
9426
9466
  textColor: disabledOrLoadingColor || primaryColor,
9427
9467
  };
9428
9468
  };
9429
- const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
9469
+ const getComponentCss$l = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
9430
9470
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
9431
9471
  const { buttonBorderColor: buttonBorderColorDark, buttonBorderColorHover: buttonBorderColorHoverDark, buttonBackgroundColor: buttonBackgroundColorDark, buttonBackgroundColorHover: buttonBackgroundColorHoverDark, toggleBackgroundColor: toggleBackgroundColorDark, toggleBackgroundColorHover: toggleBackgroundColorHoverDark, textColor: textColorDark, } = getColors$1(checked, disabled, loading, 'dark');
9432
9472
  return getCss({
@@ -9447,6 +9487,7 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
9447
9487
  })),
9448
9488
  }),
9449
9489
  },
9490
+ ...preventFoucOfNestedElementsStyles,
9450
9491
  button: {
9451
9492
  display: 'flex',
9452
9493
  alignItems: 'center',
@@ -9531,7 +9572,7 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
9531
9572
  });
9532
9573
  };
9533
9574
 
9534
- const getComponentCss$j = () => {
9575
+ const getComponentCss$k = () => {
9535
9576
  return getCss({
9536
9577
  '@global': {
9537
9578
  ':host': {
@@ -9542,7 +9583,7 @@ const getComponentCss$j = () => {
9542
9583
  });
9543
9584
  };
9544
9585
 
9545
- const getComponentCss$i = (multiline) => {
9586
+ const getComponentCss$j = (multiline) => {
9546
9587
  return getCss({
9547
9588
  '@global': {
9548
9589
  ':host': {
@@ -9567,7 +9608,7 @@ const isSortable = (active, direction) => {
9567
9608
  const cssVariableTableHoverColor = '--p-internal-table-hover-color';
9568
9609
  const cssVariableTableBorderColor = '--p-internal-table-border-color';
9569
9610
  const cssVariableTableHeadCellIconFilter = '--p-internal-table-head-cell-icon-filter';
9570
- const getComponentCss$h = (theme) => {
9611
+ const getComponentCss$i = (theme) => {
9571
9612
  const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
9572
9613
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, } = doGetThemedColors('dark');
9573
9614
  return getCss({
@@ -9585,6 +9626,7 @@ const getComponentCss$h = (theme) => {
9585
9626
  }),
9586
9627
  }),
9587
9628
  },
9629
+ ...preventFoucOfNestedElementsStyles,
9588
9630
  '::slotted(*)': addImportantToEachRule({
9589
9631
  [cssVariableTableHoverColor]: hoverColor,
9590
9632
  [cssVariableTableBorderColor]: contrastLowColor,
@@ -9617,7 +9659,7 @@ const getComponentCss$h = (theme) => {
9617
9659
  const { hoverColor } = getThemedColors('light'); // hover color and focus color are the same for light and dark
9618
9660
  const buttonBeforeOffsetVertical = '-2px';
9619
9661
  const buttonBeforeOffsetHorizontal = '-4px';
9620
- const getComponentCss$g = (active, direction, hideLabel, multiline) => {
9662
+ const getComponentCss$h = (active, direction, hideLabel, multiline) => {
9621
9663
  const sortable = isSortable(active, direction);
9622
9664
  return getCss({
9623
9665
  '@global': {
@@ -9630,6 +9672,7 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
9630
9672
  ...hostHiddenStyles,
9631
9673
  }),
9632
9674
  },
9675
+ ...preventFoucOfNestedElementsStyles,
9633
9676
  ...(sortable
9634
9677
  ? {
9635
9678
  button: {
@@ -9693,7 +9736,7 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
9693
9736
  });
9694
9737
  };
9695
9738
 
9696
- const getComponentCss$f = () => {
9739
+ const getComponentCss$g = () => {
9697
9740
  return getCss({
9698
9741
  '@global': {
9699
9742
  ':host': {
@@ -9704,7 +9747,7 @@ const getComponentCss$f = () => {
9704
9747
  });
9705
9748
  };
9706
9749
 
9707
- const getComponentCss$e = () => {
9750
+ const getComponentCss$f = () => {
9708
9751
  return getCss({
9709
9752
  '@global': {
9710
9753
  ':host': {
@@ -9720,7 +9763,7 @@ const getComponentCss$e = () => {
9720
9763
  });
9721
9764
  };
9722
9765
 
9723
- const getComponentCss$d = () => {
9766
+ const getComponentCss$e = () => {
9724
9767
  return getCss({
9725
9768
  '@global': {
9726
9769
  ':host': {
@@ -9745,7 +9788,7 @@ const getComponentCss$d = () => {
9745
9788
  const scrollerAnimatedCssClass = 'scroller--animated';
9746
9789
  const targetSelectors = ['a', 'button'];
9747
9790
  const transformSelector = (selector) => targetSelectors.map((tag) => selector.replace(/\[role]/g, tag)).join();
9748
- const getComponentCss$c = (size, weight, theme) => {
9791
+ const getComponentCss$d = (size, weight, theme) => {
9749
9792
  const { primaryColor, hoverColor } = getThemedColors(theme);
9750
9793
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark } = getThemedColors('dark');
9751
9794
  const barJssStyle = {
@@ -9773,6 +9816,7 @@ const getComponentCss$c = (size, weight, theme) => {
9773
9816
  ...hostHiddenStyles,
9774
9817
  }),
9775
9818
  },
9819
+ ...preventFoucOfNestedElementsStyles,
9776
9820
  ...addImportantToEachRule({
9777
9821
  '::slotted': {
9778
9822
  // TODO: produces duplicated css code in SSR context, we should try to make use of multiple selector like
@@ -9876,7 +9920,7 @@ const getComponentCss$c = (size, weight, theme) => {
9876
9920
  });
9877
9921
  };
9878
9922
 
9879
- const getComponentCss$b = (theme) => {
9923
+ const getComponentCss$c = (theme) => {
9880
9924
  const { primaryColor } = getThemedColors(theme);
9881
9925
  const { primaryColor: primaryColorDark } = getThemedColors('dark');
9882
9926
  return getCss({
@@ -9897,7 +9941,7 @@ const getComponentCss$b = (theme) => {
9897
9941
  });
9898
9942
  };
9899
9943
 
9900
- const getComponentCss$a = () => {
9944
+ const getComponentCss$b = () => {
9901
9945
  return getCss({
9902
9946
  '@global': {
9903
9947
  ':host': {
@@ -9907,6 +9951,7 @@ const getComponentCss$a = () => {
9907
9951
  ...hostHiddenStyles,
9908
9952
  }),
9909
9953
  },
9954
+ ...preventFoucOfNestedElementsStyles,
9910
9955
  },
9911
9956
  root: {
9912
9957
  marginBottom: '8px',
@@ -9928,7 +9973,7 @@ const getThemedBackgroundColor = (tagColor, themedColors) => {
9928
9973
  return colorMap[tagColor];
9929
9974
  };
9930
9975
 
9931
- const getComponentCss$9 = (color, hasLabel, theme) => {
9976
+ const getComponentCss$a = (color, hasLabel, theme) => {
9932
9977
  const themedColors = getThemedColors(theme);
9933
9978
  const themedColorsDark = getThemedColors('dark');
9934
9979
  const { primaryColor, hoverColor, contrastHighColor } = themedColors;
@@ -9946,6 +9991,7 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
9946
9991
  ...hostHiddenStyles,
9947
9992
  }),
9948
9993
  },
9994
+ ...preventFoucOfNestedElementsStyles,
9949
9995
  button: {
9950
9996
  display: 'flex',
9951
9997
  position: 'relative',
@@ -10028,7 +10074,7 @@ const getColors = (tagColor, theme) => {
10028
10074
  backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
10029
10075
  };
10030
10076
  };
10031
- const getComponentCss$8 = (tagColor, compact, isFocusable, hasIcon, theme) => {
10077
+ const getComponentCss$9 = (tagColor, compact, isFocusable, hasIcon, theme) => {
10032
10078
  const { textColor, backgroundColor, backgroundHoverColor } = getColors(tagColor, theme);
10033
10079
  const { textColor: textColorDark, backgroundColor: backgroundColorDark, backgroundHoverColor: backgroundHoverColorDark, } = getColors(tagColor, 'dark');
10034
10080
  const isBackgroundFrosted = tagColor === 'background-frosted';
@@ -10043,6 +10089,7 @@ const getComponentCss$8 = (tagColor, compact, isFocusable, hasIcon, theme) => {
10043
10089
  ...hostHiddenStyles,
10044
10090
  }),
10045
10091
  },
10092
+ ...preventFoucOfNestedElementsStyles,
10046
10093
  span: {
10047
10094
  position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
10048
10095
  display: 'flex',
@@ -10119,7 +10166,7 @@ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
10119
10166
 
10120
10167
  const cssVariableInputPaddingStart = '--p-internal-text-field-input-padding-start';
10121
10168
  const cssVariableInputPaddingEnd = '--p-internal-text-field-input-padding-end';
10122
- const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
10169
+ const getComponentCss$8 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
10123
10170
  const isSearch = isType(inputType, 'search');
10124
10171
  const isPassword = isType(inputType, 'password');
10125
10172
  const isNumber = isType(inputType, 'number');
@@ -10138,6 +10185,7 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
10138
10185
  ...hostHiddenStyles,
10139
10186
  }),
10140
10187
  },
10188
+ ...preventFoucOfNestedElementsStyles,
10141
10189
  // ::slotted(input)
10142
10190
  ...addImportantToEachRule({
10143
10191
  ...getSlottedTextFieldTextareaSelectStyles('input', state, false, theme, {
@@ -10177,6 +10225,8 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
10177
10225
  : formElementPaddingHorizontal,
10178
10226
  display: 'grid',
10179
10227
  gap: spacingStaticXSmall,
10228
+ // 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.
10229
+ minWidth: `calc(2rem + ${formElementPaddingHorizontal} + ${borderWidthBase}*2 + ${hasUnitOrVisibleCounter || isSearch || isPassword || isCalendarOrTimeWithCustomIndicator ? getCalculatedFormElementPaddingHorizontal(isSearch ? 2 : 1) : '0px'})`,
10180
10230
  },
10181
10231
  wrapper: {
10182
10232
  display: 'grid',
@@ -10234,7 +10284,7 @@ const cssVariableUnorderedPseudoContent = '--p-internal-text-list-unordered-pseu
10234
10284
  const cssVariableOrderedGridColumn = '--p-internal-text-list-ordered-grid-column';
10235
10285
  const cssVariableOrderedPseudoSuffix = '--p-internal-text-list-ordered-pseudo-suffix';
10236
10286
  const counter = 'p-text-list-counter';
10237
- const getComponentCss$6 = (type, theme) => {
10287
+ const getComponentCss$7 = (type, theme) => {
10238
10288
  const isOrderedList = isListTypeOrdered(type);
10239
10289
  return getCss({
10240
10290
  '@global': {
@@ -10278,7 +10328,7 @@ const getComponentCss$6 = (type, theme) => {
10278
10328
  });
10279
10329
  };
10280
10330
 
10281
- const getComponentCss$5 = () => {
10331
+ const getComponentCss$6 = () => {
10282
10332
  return getCss({
10283
10333
  '@global': {
10284
10334
  ':host': {
@@ -10316,7 +10366,7 @@ const sizeMap = {
10316
10366
  large: fontSizeTextLarge,
10317
10367
  'x-large': fontSizeTextXLarge,
10318
10368
  };
10319
- const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
10369
+ const getComponentCss$5 = (size, weight, align, color, ellipsis, theme) => {
10320
10370
  return getCss({
10321
10371
  '@global': {
10322
10372
  ':host': {
@@ -10335,7 +10385,7 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
10335
10385
  });
10336
10386
  };
10337
10387
 
10338
- const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10388
+ const getComponentCss$4 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10339
10389
  return getCss({
10340
10390
  '@global': {
10341
10391
  ':host': {
@@ -10345,6 +10395,7 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10345
10395
  ...hostHiddenStyles,
10346
10396
  }),
10347
10397
  },
10398
+ ...preventFoucOfNestedElementsStyles,
10348
10399
  // ::slotted(textarea)
10349
10400
  ...mergeDeep(addImportantToEachRule(getSlottedTextFieldTextareaSelectStyles('textarea', state, false, theme, {
10350
10401
  gridArea: '1/1',
@@ -10387,6 +10438,107 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
10387
10438
  });
10388
10439
  };
10389
10440
 
10441
+ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, resize, theme) => {
10442
+ const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
10443
+ const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
10444
+ const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
10445
+ const { formStateColor: formStateColorDark, formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
10446
+ return getCss({
10447
+ '@global': {
10448
+ ':host': {
10449
+ display: 'block',
10450
+ ...addImportantToEachRule({
10451
+ ...colorSchemeStyles,
10452
+ ...hostHiddenStyles,
10453
+ }),
10454
+ },
10455
+ ...preventFoucOfNestedElementsStyles,
10456
+ textarea: {
10457
+ resize,
10458
+ display: 'block',
10459
+ width: '100%',
10460
+ height: 'auto',
10461
+ margin: 0,
10462
+ outline: 0,
10463
+ WebkitAppearance: 'none', // iOS safari
10464
+ appearance: 'none',
10465
+ boxSizing: 'border-box',
10466
+ border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
10467
+ borderRadius: borderRadiusSmall,
10468
+ background: 'transparent',
10469
+ textIndent: 0,
10470
+ color: primaryColor,
10471
+ transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transitions between e.g. disabled states
10472
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10473
+ borderColor: formStateColorDark || contrastMediumColorDark,
10474
+ color: primaryColorDark,
10475
+ }),
10476
+ gridArea: '1/1',
10477
+ font: textSmallStyle.font, // to override line-height
10478
+ padding: hasCounter
10479
+ ? `12px ${formElementPaddingHorizontal} ${spacingStaticLarge}`
10480
+ : `12px ${formElementPaddingHorizontal}`,
10481
+ // TODO: getFocusJssStyle() can't be re-used because focus style differs for form elements
10482
+ '&:focus': {
10483
+ borderColor: primaryColor,
10484
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10485
+ borderColor: primaryColorDark,
10486
+ }),
10487
+ },
10488
+ '&:disabled': {
10489
+ cursor: 'not-allowed',
10490
+ color: disabledColor,
10491
+ borderColor: disabledColor,
10492
+ WebkitTextFillColor: disabledColor,
10493
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10494
+ color: disabledColorDark,
10495
+ borderColor: disabledColorDark,
10496
+ WebkitTextFillColor: disabledColorDark,
10497
+ }),
10498
+ },
10499
+ '&[readonly]': {
10500
+ borderColor: contrastLowColor,
10501
+ background: contrastLowColor,
10502
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10503
+ borderColor: contrastLowColorDark,
10504
+ background: contrastLowColorDark,
10505
+ }),
10506
+ },
10507
+ },
10508
+ ...hoverMediaQuery({
10509
+ // with the media query the selector has higher priority and overrides disabled styles
10510
+ ['textarea:not(:disabled):not(:focus):not([readonly]):hover,label:hover~.wrapper textarea:not(:disabled):not(:focus):not([readonly])']: {
10511
+ borderColor: formStateHoverColor || primaryColor,
10512
+ ...prefersColorSchemeDarkMediaQuery(theme, {
10513
+ borderColor: formStateHoverColorDark || primaryColorDark,
10514
+ }),
10515
+ },
10516
+ }),
10517
+ },
10518
+ root: {
10519
+ display: 'grid',
10520
+ gap: spacingStaticXSmall,
10521
+ },
10522
+ wrapper: {
10523
+ display: 'grid',
10524
+ },
10525
+ ...(hasCounter && {
10526
+ counter: {
10527
+ ...getUnitCounterJssStyle(isDisabled, theme),
10528
+ gridArea: '1/1',
10529
+ placeSelf: 'flex-end',
10530
+ padding: `6px calc(${formElementPaddingHorizontal} + ${borderWidthBase})`,
10531
+ },
10532
+ // TODO: maybe we should extract it as functional component too
10533
+ 'sr-only': getHiddenTextJssStyle(),
10534
+ }),
10535
+ // .label / .required
10536
+ ...getFunctionalComponentLabelStyles(isDisabled, hideLabel, theme),
10537
+ // .message
10538
+ ...getFunctionalComponentStateMessageStyles(theme, state),
10539
+ });
10540
+ };
10541
+
10390
10542
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
10391
10543
  const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
10392
10544
  const ANIMATION_DURATION = motionDurationModerate;
@@ -10428,6 +10580,7 @@ const getComponentCss$1 = () => {
10428
10580
  ...colorSchemeStyles,
10429
10581
  ...hostHiddenStyles,
10430
10582
  }),
10583
+ ...preventFoucOfNestedElementsStyles,
10431
10584
  '@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
10432
10585
  '@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
10433
10586
  },
@@ -10494,4 +10647,4 @@ const getComponentCss = (size, theme) => {
10494
10647
  });
10495
10648
  };
10496
10649
 
10497
- export { getComponentCss$17 as getAccordionCss, getComponentCss$16 as getBannerCss, getComponentCss$12 as getButtonCss, getComponentCss$15 as getButtonGroupCss, getComponentCss$14 as getButtonPureCss, getComponentCss$13 as getButtonTileCss, getComponentCss$11 as getCanvasCss, getComponentCss$10 as getCarouselCss, getComponentCss$$ as getCheckboxWrapperCss, getComponentCss$_ as getContentWrapperCss, getComponentCss$Z as getCrestCss, getComponentCss$Y as getDisplayCss, getComponentCss$X as getDividerCss, getComponentCss$V as getFieldsetCss, getComponentCss$W as getFieldsetWrapperCss, getComponentCss$T as getFlexCss, getComponentCss$U as getFlexItemCss, getComponentCss$Q as getFlyoutCss, getComponentCss$S as getFlyoutMultilevelCss, getComponentCss$R as getFlyoutMultilevelItemCss, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$O as getGridCss, getComponentCss$P as getGridItemCss, getComponentCss$N as getHeadingCss, getComponentCss$M as getHeadlineCss, getComponentCss$L as getIconCss, getComponentCss$K as getInlineNotificationCss, getComponentCss$I as getLinkCss, getComponentCss$J as getLinkPureCss, getComponentCss$I as getLinkSocialCss, getComponentCss$F as getLinkTileCss, getComponentCss$H as getLinkTileModelSignatureCss, getComponentCss$G as getLinkTileProductCss, getComponentCss$E as getMarqueCss, getComponentCss$D as getModalCss, getComponentCss$C as getModelSignatureCss, getComponentCss$A as getMultiSelectCss, getComponentCss$B as getMultiSelectOptionCss, getComponentCss$y as getOptgroupCss, getComponentCss$x as getPaginationCss, getComponentCss$w as getPinCodeCss, getComponentCss$v as getPopoverCss, getComponentCss$u as getRadioButtonWrapperCss, getComponentCss$t as getScrollerCss, getComponentCss$r as getSegmentedControlCss, getComponentCss$s as getSegmentedControlItemCss, getComponentCss$o as getSelectCss, getComponentCss$z as getSelectOptionCss, getComponentCss$p as getSelectWrapperCss, getComponentCss$q as getSelectWrapperDropdownCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
10650
+ export { getComponentCss$18 as getAccordionCss, getComponentCss$17 as getBannerCss, getComponentCss$13 as getButtonCss, getComponentCss$16 as getButtonGroupCss, getComponentCss$15 as getButtonPureCss, getComponentCss$14 as getButtonTileCss, getComponentCss$12 as getCanvasCss, getComponentCss$11 as getCarouselCss, getComponentCss$10 as getCheckboxWrapperCss, getComponentCss$$ as getContentWrapperCss, getComponentCss$_ as getCrestCss, getComponentCss$Z as getDisplayCss, getComponentCss$Y as getDividerCss, getComponentCss$W as getFieldsetCss, getComponentCss$X as getFieldsetWrapperCss, getComponentCss$U as getFlexCss, getComponentCss$V as getFlexItemCss, getComponentCss$R as getFlyoutCss, getComponentCss$T as getFlyoutMultilevelCss, getComponentCss$S as getFlyoutMultilevelItemCss, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$P as getGridCss, getComponentCss$Q as getGridItemCss, getComponentCss$O as getHeadingCss, getComponentCss$N as getHeadlineCss, getComponentCss$M as getIconCss, getComponentCss$L as getInlineNotificationCss, getComponentCss$J as getLinkCss, getComponentCss$K as getLinkPureCss, getComponentCss$J as getLinkSocialCss, getComponentCss$G as getLinkTileCss, getComponentCss$I as getLinkTileModelSignatureCss, getComponentCss$H as getLinkTileProductCss, getComponentCss$F as getMarqueCss, getComponentCss$E as getModalCss, getComponentCss$D as getModelSignatureCss, getComponentCss$B as getMultiSelectCss, getComponentCss$C as getMultiSelectOptionCss, getComponentCss$z as getOptgroupCss, getComponentCss$y as getPaginationCss, getComponentCss$x as getPinCodeCss, getComponentCss$w as getPopoverCss, getComponentCss$v as getRadioButtonWrapperCss, getComponentCss$u as getScrollerCss, getComponentCss$s as getSegmentedControlCss, getComponentCss$t as getSegmentedControlItemCss, getComponentCss$p as getSelectCss, getComponentCss$A as getSelectOptionCss, getComponentCss$q as getSelectWrapperCss, getComponentCss$r as getSelectWrapperDropdownCss, getComponentCss$o as getSpinnerCss, getComponentCss$m as getStepperHorizontalCss, getComponentCss$n as getStepperHorizontalItemCss, getComponentCss$l as getSwitchCss, getComponentCss$k as getTableBodyCss, getComponentCss$j as getTableCellCss, getComponentCss$i as getTableCss, getComponentCss$h as getTableHeadCellCss, getComponentCss$f as getTableHeadCss, getComponentCss$g as getTableHeadRowCss, getComponentCss$e as getTableRowCss, getComponentCss$d as getTabsBarCss, getComponentCss$b as getTabsCss, getComponentCss$c as getTabsItemCss, getComponentCss$9 as getTagCss, getComponentCss$a as getTagDismissibleCss, getComponentCss$5 as getTextCss, getComponentCss$8 as getTextFieldWrapperCss, getComponentCss$7 as getTextListCss, getComponentCss$6 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$4 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };