@porsche-design-system/components-react 4.8.0-rc.1 → 4.9.0-rc.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 (189) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/package.json +2 -2
  3. package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
  4. package/skills/pds-knowledge-react/SKILL.md +3 -3
  5. package/skills/pds-knowledge-react/references/components/p-banner/p-banner.md +2 -2
  6. package/skills/pds-knowledge-react/references/components/p-carousel/p-carousel.md +1 -1
  7. package/skills/pds-knowledge-react/references/components/p-crest/p-crest.md +1 -1
  8. package/skills/pds-knowledge-react/references/components/p-display/p-display.md +1 -1
  9. package/skills/pds-knowledge-react/references/components/p-fieldset/p-fieldset.md +2 -2
  10. package/skills/pds-knowledge-react/references/components/p-flyout/p-flyout.md +1 -3
  11. package/skills/pds-knowledge-react/references/components/p-heading/p-heading.md +1 -1
  12. package/skills/pds-knowledge-react/references/components/p-icon/p-icon.md +39 -0
  13. package/skills/pds-knowledge-react/references/components/p-inline-notification/p-inline-notification.md +1 -1
  14. package/skills/pds-knowledge-react/references/components/p-input-date/p-input-date.md +1 -1
  15. package/skills/pds-knowledge-react/references/components/p-input-email/p-input-email.md +1 -1
  16. package/skills/pds-knowledge-react/references/components/p-input-month/p-input-month.md +1 -1
  17. package/skills/pds-knowledge-react/references/components/p-input-number/p-input-number.md +1 -1
  18. package/skills/pds-knowledge-react/references/components/p-input-password/p-input-password.md +1 -1
  19. package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +1 -1
  20. package/skills/pds-knowledge-react/references/components/p-input-tel/p-input-tel.md +1 -1
  21. package/skills/pds-knowledge-react/references/components/p-input-text/p-input-text.md +1 -1
  22. package/skills/pds-knowledge-react/references/components/p-input-time/p-input-time.md +1 -1
  23. package/skills/pds-knowledge-react/references/components/p-input-week/p-input-week.md +1 -1
  24. package/skills/pds-knowledge-react/references/components/p-modal/p-modal.md +1 -3
  25. package/skills/pds-knowledge-react/references/components/p-sheet/p-sheet.md +1 -3
  26. package/skills/pds-knowledge-react/references/components/p-text/p-text.md +1 -1
  27. package/skills/pds-knowledge-react/references/components/p-toast/p-toast.md +2 -2
  28. package/skills/pds-knowledge-react/references/deprecations.md +4 -4
  29. package/skills/pds-knowledge-react/references/styles/emotion.md +9 -3
  30. package/skills/pds-knowledge-react/references/styles/scss.md +9 -3
  31. package/skills/pds-knowledge-react/references/styles/tailwindcss.md +9 -3
  32. package/skills/pds-knowledge-react/references/styles/vanilla-extract.md +9 -3
  33. package/skills/pds-knowledge-react/references/stylesheets.md +22 -10
  34. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +42 -12
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/getCachedMinifiedCss.cjs +62 -0
  36. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -2
  37. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/ai-tag.cjs +2 -2
  38. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +2 -2
  39. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -2
  40. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +2 -2
  41. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -2
  42. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +2 -2
  43. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
  44. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +2 -2
  45. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.cjs +2 -2
  46. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -2
  47. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.cjs +2 -2
  48. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
  49. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.cjs +2 -2
  50. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.cjs +2 -2
  51. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +2 -2
  52. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.cjs +2 -2
  53. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +2 -2
  54. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +2 -2
  55. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.cjs +2 -2
  56. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +2 -2
  57. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +2 -2
  58. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +2 -2
  59. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +2 -2
  60. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +2 -2
  61. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +2 -2
  62. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +2 -2
  63. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +2 -2
  64. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +2 -2
  65. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +2 -2
  66. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +2 -2
  67. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +2 -2
  68. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +2 -2
  69. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +2 -2
  70. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +2 -2
  71. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +2 -2
  72. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +2 -2
  73. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.cjs +2 -2
  74. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +2 -2
  75. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -2
  76. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.cjs +2 -2
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +2 -2
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -2
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +4 -2
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +2 -2
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +2 -2
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +2 -2
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +2 -2
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +2 -2
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +2 -2
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -2
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +2 -2
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +2 -2
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +2 -2
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +2 -2
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.cjs +2 -2
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.cjs +2 -2
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +2 -2
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.cjs +2 -2
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.cjs +2 -2
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.cjs +2 -2
  98. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +2 -2
  99. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +2 -2
  100. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.cjs +2 -2
  101. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +2 -2
  102. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +2 -2
  103. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +2 -2
  104. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.cjs +2 -2
  105. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.cjs +2 -2
  106. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +2 -2
  107. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +2 -2
  108. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.cjs +4 -2
  109. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.cjs +2 -2
  110. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +42 -12
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/getCachedMinifiedCss.mjs +58 -0
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/ai-tag.mjs +2 -2
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -2
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -2
  121. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
  122. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
  123. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
  124. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
  125. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
  126. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
  127. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
  128. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +2 -2
  129. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
  130. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
  131. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
  132. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
  133. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +2 -2
  134. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +2 -2
  135. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +2 -2
  136. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +2 -2
  137. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +2 -2
  138. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +2 -2
  139. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +2 -2
  140. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +2 -2
  141. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +2 -2
  142. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +2 -2
  143. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +2 -2
  144. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +2 -2
  145. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +2 -2
  146. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +2 -2
  147. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -2
  148. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -2
  149. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
  150. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -2
  151. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +2 -2
  152. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
  153. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -2
  154. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
  155. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +4 -2
  156. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +2 -2
  157. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +2 -2
  158. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -2
  159. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -2
  160. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +2 -2
  161. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +2 -2
  162. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -2
  163. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +2 -2
  164. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
  165. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +2 -2
  166. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +2 -2
  167. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +2 -2
  168. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs +2 -2
  169. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +2 -2
  170. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +2 -2
  171. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.mjs +2 -2
  172. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs +2 -2
  173. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs +2 -2
  174. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +2 -2
  175. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +2 -2
  176. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs +2 -2
  177. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +2 -2
  178. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +2 -2
  179. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +2 -2
  180. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.mjs +2 -2
  181. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.mjs +2 -2
  182. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +2 -2
  183. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +2 -2
  184. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.mjs +4 -2
  185. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.mjs +2 -2
  186. package/ssr/esm/getCachedMinifiedCss.d.ts +23 -0
  187. package/stylesheets/cn/index.css +1 -1
  188. package/stylesheets/index.css +1 -1
  189. package/stylesheets/variables.css +1 -1
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
9
9
 
@@ -15,7 +15,7 @@ class DSRHeading extends react.Component {
15
15
  render() {
16
16
  splitChildren.splitChildren(this.props.children);
17
17
  const TagType = utilsEntry.getHeadingTagType(null, this.props.size, this.props.tag);
18
- const style = minifyCss.minifyCss(stylesEntry.getHeadingCss(this.props.size, this.props.weight, this.props.align, this.props.color, this.props.hyphens, this.props.ellipsis));
18
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getHeadingCss, this.props.size, this.props.weight, this.props.align, this.props.color, this.props.hyphens, this.props.ellipsis);
19
19
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(TagType, { className: "root", children: jsxRuntime.jsx("slot", {}) })] }), this.props.children] }));
20
20
  }
21
21
  }
@@ -2,14 +2,14 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
- var minifyCss = require('../../minifyCss.cjs');
5
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
6
6
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
7
7
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
8
8
 
9
9
  class DSRIcon extends react.Component {
10
10
  host;
11
11
  render() {
12
- const style = minifyCss.minifyCss(stylesEntry.getIconCss(this.props.name, this.props.source, this.props.color, this.props.size));
12
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getIconCss, this.props.name, this.props.source, this.props.color, this.props.size);
13
13
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx("img", { src: utilsEntry.buildIconUrl(this.props.source || this.props.name), width: 24, height: 24, loading: "lazy", alt: utilsEntry.parseAndGetAriaAttributes(this.props.aria)?.['aria-label'] ?? '' })] }) }));
14
14
  }
15
15
  }
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var fcDismissButton = require('./fc-dismiss-button.cjs');
@@ -22,7 +22,7 @@ class DSRInlineNotification extends react.Component {
22
22
  const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
23
23
  const hasHeadingSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0;
24
24
  const headingText = this.props.heading ? this.props.heading : namedSlotChildren.find(({ props: { slot } }) => slot === 'heading')?.props.children;
25
- const style = minifyCss.minifyCss(stylesEntry.getInlineNotificationCss(this.props.state, !!this.props.actionLabel, this.props.dismissButton, !!(this.props.heading || hasHeadingSlot)));
25
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInlineNotificationCss, this.props.state, !!this.props.actionLabel, this.props.dismissButton, !!(this.props.heading || hasHeadingSlot));
26
26
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(notificationBase.NotificationBase, { ...utilsEntry.getInlineNotificationAriaAttributes(this.props.state, headingText), heading: this.props.heading, headingTag: this.props.headingTag, hasHeadingSlot: hasHeadingSlot, description: this.props.description, ...(this.props.actionLabel && {
27
27
  actionLabel: (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { className: "action", icon: this.props.actionIcon, loading: this.props.actionLoading, children: this.props.actionLabel })),
28
28
  }), ...(this.props.dismissButton && {
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
@@ -40,7 +40,7 @@ class DSRInputDate extends react.Component {
40
40
  }
41
41
  render() {
42
42
  splitChildren.splitChildren(this.props.children);
43
- const style = minifyCss.minifyCss(stylesEntry.getInputDateCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
43
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputDateCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
44
44
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-date", name: this.props.name, form: this.props.form, type: "date", required: this.props.required, max: this.props.max, min: this.props.min, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(utilsEntry.hasShowPickerSupport() && {
45
45
  end: (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: "calendar", disabled: this.props.disabled || this.props.readOnly, children: "Open date picker" })),
46
46
  }) })] }), this.props.children] }));
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var icon_wrapper = require('../components/icon.wrapper.cjs');
10
10
  var inputBase = require('./input-base.cjs');
@@ -39,7 +39,7 @@ class DSRInputEmail extends react.Component {
39
39
  }
40
40
  render() {
41
41
  splitChildren.splitChildren(this.props.children);
42
- const style = minifyCss.minifyCss(stylesEntry.getInputEmailCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
42
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputEmailCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
43
43
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-email", name: this.props.name, form: this.props.form, type: "email", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, pattern: this.props.pattern, multiple: this.props.multiple, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(this.props.indicator && {
44
44
  start: jsxRuntime.jsx(icon_wrapper.PIcon, { "aria-hidden": "true", name: "email", color: "contrast-low" }),
45
45
  }) })] }), this.props.children] }));
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
@@ -40,7 +40,7 @@ class DSRInputMonth extends react.Component {
40
40
  }
41
41
  render() {
42
42
  splitChildren.splitChildren(this.props.children);
43
- const style = minifyCss.minifyCss(stylesEntry.getInputMonthCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
43
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputMonthCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
44
44
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-month", name: this.props.name, form: this.props.form, type: "month", required: this.props.required, max: this.props.max, min: this.props.min, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(utilsEntry.hasShowPickerSupport() && {
45
45
  end: (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: "calendar", disabled: this.props.disabled || this.props.readOnly, children: "Open date picker" })),
46
46
  }) })] }), this.props.children] }));
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
10
10
  var inputBase = require('./input-base.cjs');
@@ -39,7 +39,7 @@ class DSRInputNumber extends react.Component {
39
39
  }
40
40
  render() {
41
41
  splitChildren.splitChildren(this.props.children);
42
- const style = minifyCss.minifyCss(stylesEntry.getInputNumberCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.controls));
42
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputNumberCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.controls);
43
43
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-number" // prevent React default scroll-to-[increment|decrement] on number inputs
44
44
  , name: this.props.name, form: this.props.form, type: "number", required: this.props.required, placeholder: this.props.placeholder, max: this.props.max, min: this.props.min, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(this.props.controls && {
45
45
  end: (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(buttonPure_wrapper.PButtonPure, { tabIndex: -1, hideLabel: true, className: "button", type: "button", icon: "minus", disabled: this.props.disabled || this.props.readOnly, children: ["Decrement value by ", this.props.step] }), jsxRuntime.jsxs(buttonPure_wrapper.PButtonPure, { tabIndex: -1, hideLabel: true, className: "button", type: "button", icon: "plus", disabled: this.props.disabled || this.props.readOnly, children: ["Increment value by ", this.props.step] })] })),
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
10
10
  var inputBase = require('./input-base.cjs');
@@ -40,7 +40,7 @@ class DSRInputPassword extends react.Component {
40
40
  }
41
41
  render() {
42
42
  splitChildren.splitChildren(this.props.children);
43
- const style = minifyCss.minifyCss(stylesEntry.getInputPasswordCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.toggle, this.props.compact, this.props.readOnly));
43
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputPasswordCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.toggle, this.props.compact, this.props.readOnly);
44
44
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-password", name: this.props.name, form: this.props.form, type: this.props.showPassword ? 'text' : 'password', required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, end: this.props.toggle && (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: this.props.showPassword ? 'view-off' : 'view', disabled: this.props.disabled, aria: { 'aria-pressed': this.props.showPassword ? 'true' : 'false' }, children: "Toggle password visibility" })) })] }), this.props.children] }));
45
45
  }
46
46
  }
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
10
10
  var icon_wrapper = require('../components/icon.wrapper.cjs');
@@ -41,7 +41,7 @@ class DSRInputSearch extends react.Component {
41
41
  }
42
42
  render() {
43
43
  splitChildren.splitChildren(this.props.children);
44
- const style = minifyCss.minifyCss(stylesEntry.getInputSearchCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.clear));
44
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputSearchCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.clear);
45
45
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-search", name: this.props.name, form: this.props.form, type: "search", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(this.props.indicator && {
46
46
  start: jsxRuntime.jsx(icon_wrapper.PIcon, { "aria-hidden": "true", name: "search", color: "contrast-medium" }),
47
47
  }), ...(this.props.clear && {
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var icon_wrapper = require('../components/icon.wrapper.cjs');
10
10
  var inputBase = require('./input-base.cjs');
@@ -39,7 +39,7 @@ class DSRInputTel extends react.Component {
39
39
  }
40
40
  render() {
41
41
  splitChildren.splitChildren(this.props.children);
42
- const style = minifyCss.minifyCss(stylesEntry.getInputTelCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
42
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputTelCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
43
43
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-tel", name: this.props.name, form: this.props.form, type: "tel", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, pattern: this.props.pattern, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(this.props.indicator && {
44
44
  start: jsxRuntime.jsx(icon_wrapper.PIcon, { "aria-hidden": "true", name: "phone", color: "contrast-low" }),
45
45
  }) })] }), this.props.children] }));
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
  var inputBase = require('./input-base.cjs');
9
9
 
@@ -37,7 +37,7 @@ class DSRInputText extends react.Component {
37
37
  }
38
38
  render() {
39
39
  splitChildren.splitChildren(this.props.children);
40
- const style = minifyCss.minifyCss(stylesEntry.getInputTextCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.counter));
40
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputTextCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly, this.props.counter);
41
41
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-text", name: this.props.name, form: this.props.form, type: "text", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, spellCheck: this.props.spellCheck, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(this.props.inputMode !== '' && { inputMode: this.props.inputMode }), ...(this.props.counter && {
42
42
  end: (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
43
43
  ? `You have ${this.props.maxLength - this.parsedValue.length} out of ${this.props.maxLength} characters left`
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
@@ -40,7 +40,7 @@ class DSRInputTime extends react.Component {
40
40
  }
41
41
  render() {
42
42
  splitChildren.splitChildren(this.props.children);
43
- const style = minifyCss.minifyCss(stylesEntry.getInputTimeCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
43
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputTimeCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
44
44
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-time", name: this.props.name, form: this.props.form, type: "time", required: this.props.required, max: this.props.max, min: this.props.min, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(utilsEntry.hasShowPickerSupport() && {
45
45
  end: (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: "clock", disabled: this.props.disabled || this.props.readOnly, children: "Open time picker" })),
46
46
  }) })] }), this.props.children] }));
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var icon_wrapper = require('../components/icon.wrapper.cjs');
10
10
  var inputBase = require('./input-base.cjs');
@@ -39,7 +39,7 @@ class DSRInputUrl extends react.Component {
39
39
  }
40
40
  render() {
41
41
  splitChildren.splitChildren(this.props.children);
42
- const style = minifyCss.minifyCss(stylesEntry.getInputUrlCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
42
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputUrlCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
43
43
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-url", name: this.props.name, form: this.props.form, type: "url", required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, loading: this.props.loading, pattern: this.props.pattern, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(this.props.indicator && {
44
44
  start: jsxRuntime.jsx(icon_wrapper.PIcon, { "aria-hidden": "true", name: "linked", color: "contrast-low" }),
45
45
  }) })] }), this.props.children] }));
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
@@ -40,7 +40,7 @@ class DSRInputWeek extends react.Component {
40
40
  }
41
41
  render() {
42
42
  splitChildren.splitChildren(this.props.children);
43
- const style = minifyCss.minifyCss(stylesEntry.getInputWeekCss(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly));
43
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getInputWeekCss, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.readOnly);
44
44
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(inputBase.InputBase, { children: this.props.children, host: null, label: this.props.label, description: this.props.description, id: "input-week", name: this.props.name, form: this.props.form, type: "week", required: this.props.required, max: this.props.max, min: this.props.min, value: this.parsedValue, readOnly: this.props.readOnly, autoComplete: this.props.autoComplete, disabled: this.props.disabled, state: this.props.state, message: this.props.message, step: this.props.step, loading: this.props.loading, initialLoading: this.props.initialLoading, aria: this.props.aria, ...(utilsEntry.hasShowPickerSupport() && {
45
45
  end: (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { tabIndex: this.props.disabled ? -1 : null, hideLabel: true, className: "button", type: "button", icon: "calendar", disabled: this.props.disabled || this.props.readOnly, children: "Open date picker" })),
46
46
  }) })] }), this.props.children] }));
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var icon_wrapper = require('../components/icon.wrapper.cjs');
@@ -18,7 +18,7 @@ class DSRLinkPure extends react.Component {
18
18
  splitChildren.splitChildren(this.props.children);
19
19
  const TagType = this.props.href === undefined ? 'span' : 'a';
20
20
  const hasIcon = utilsEntry.hasVisibleIcon(this.props.icon, this.props.iconSource);
21
- const style = minifyCss.minifyCss(stylesEntry.getLinkPureCss(this.props.icon, this.props.iconSource, this.props.active, this.props.stretch, this.props.size, this.props.color, this.props.hideLabel, this.props.alignLabel, this.props.underline, !this.props.href));
21
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getLinkPureCss, this.props.icon, this.props.iconSource, this.props.active, this.props.stretch, this.props.size, this.props.color, this.props.hideLabel, this.props.alignLabel, this.props.underline, !this.props.href);
22
22
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(TagType, { className: "root", ...(TagType === 'a' && {
23
23
  href: this.props.href,
24
24
  target: this.props.target,
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
@@ -26,7 +26,7 @@ class DSRLinkTileProduct extends react.Component {
26
26
  const headingId = 'heading';
27
27
  const priceId = 'price';
28
28
  const descriptionId = 'description';
29
- const style = minifyCss.minifyCss(stylesEntry.getLinkTileProductCss(this.props.likeButton, !this.props.href, !!this.props.priceOriginal, !!this.props.description, this.props.aspectRatio));
29
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getLinkTileProductCss, this.props.likeButton, !this.props.href, !!this.props.priceOriginal, !!this.props.description, this.props.aspectRatio);
30
30
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [this.props.href ? (jsxRuntime.jsx("a", { className: "anchor", href: this.props.href, target: this.props.target, rel: this.props.rel, "aria-labelledby": `${headingId} ${priceId}`, "aria-describedby": `${headerId} ${descriptionId}` })) : (jsxRuntime.jsx("slot", { name: utilsEntry.anchorSlot })), jsxRuntime.jsxs("div", { id: headerId, className: "header", children: [jsxRuntime.jsx("slot", { name: utilsEntry.headerSlot }), this.props.likeButton && (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { className: "button", type: "button", icon: this.props.liked ? 'heart-filled' : 'heart', hideLabel: true, children: this.props.liked ? 'Remove from wishlist' : 'Add to wishlist' }))] }), jsxRuntime.jsx("div", { className: "image", children: jsxRuntime.jsx("slot", {}) }), jsxRuntime.jsxs("div", { className: "wrapper", children: [this.props.heading && (jsxRuntime.jsx("h3", { id: headingId, className: "heading", children: this.props.heading })), this.props.price && (jsxRuntime.jsx("p", { id: priceId, className: "price", children: this.props.priceOriginal ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: "sr-only", children: "sale price" }), this.props.price, jsxRuntime.jsx("span", { className: "sr-only", children: "original price" }), jsxRuntime.jsx("s", { children: this.props.priceOriginal })] })) : (this.props.price) })), this.props.description && (jsxRuntime.jsx("p", { id: descriptionId, className: "description", children: this.props.description }))] })] })] }), this.props.children] }));
31
31
  }
32
32
  }
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var link_wrapper = require('../components/link.wrapper.cjs');
@@ -32,7 +32,7 @@ class DSRLinkTile extends react.Component {
32
32
  };
33
33
  const link = (react.createElement(link_wrapper.PLink, { ...sharedLinkProps, ...linkProps, key: "link-or-button", className: "link-or-button" }, this.props.label));
34
34
  const linkCompact = (react.createElement(link_wrapper.PLink, { ...sharedLinkProps, ...linkProps, hideLabel: true, icon: "arrow-right", key: "link-or-button-pure", compact: true, className: "link-or-button-pure" }, this.props.label));
35
- const style = minifyCss.minifyCss(stylesEntry.getLinkTileCss(this.props.aspectRatio, this.props.size, this.props.weight, this.props.align, parsedCompact, this.props.gradient, this.props.hasFooterSlot));
35
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getLinkTileCss, this.props.aspectRatio, this.props.size, this.props.weight, this.props.align, parsedCompact, this.props.gradient, this.props.hasFooterSlot);
36
36
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx("a", { ...sharedLinkProps, tabIndex: -1, "aria-hidden": "true" }), jsxRuntime.jsx("slot", { name: "header" }), jsxRuntime.jsx("div", { className: "media", children: jsxRuntime.jsx("slot", {}) }), jsxRuntime.jsxs("div", { className: "footer", children: [jsxRuntime.jsx("p", { children: this.props.description }), jsxRuntime.jsx("slot", { name: "footer" }), typeof parsedCompact === 'boolean' ? (parsedCompact ? linkCompact : link) : [linkCompact, link]] })] })] }), this.props.children] }));
37
37
  }
38
38
  }
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var icon_wrapper = require('../components/icon.wrapper.cjs');
@@ -17,7 +17,7 @@ class DSRLink extends react.Component {
17
17
  render() {
18
18
  splitChildren.splitChildren(this.props.children);
19
19
  const TagType = this.props.href === undefined ? 'span' : 'a';
20
- const style = minifyCss.minifyCss(stylesEntry.getLinkCss(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, !this.props.href, this.props.compact));
20
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getLinkCss, this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, !this.props.href, this.props.compact);
21
21
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(TagType, { className: "root", ...(TagType === 'a' && {
22
22
  href: this.props.href,
23
23
  target: this.props.target,
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
9
9
  var dialogBase = require('./dialog-base.cjs');
@@ -37,7 +37,7 @@ class DSRModal extends react.Component {
37
37
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
38
38
  this.props.disableCloseButton ? false : this.props.dismissButton;
39
39
  // TODO: why do we validate only when opened?
40
- const style = minifyCss.minifyCss(stylesEntry.getModalCss(this.props.open, this.props.background, this.props.backdrop, this.props.fullscreen, this.props.dismissButton, hasHeader, hasFooter));
40
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getModalCss, this.props.open, this.props.background, this.props.backdrop, this.props.fullscreen, this.props.dismissButton, hasHeader, hasFooter);
41
41
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(dialogBase.DialogBase
42
42
  // `inert` (not `aria-hidden`) removes the panel from the a11y tree AND prevents focus while closed / during the
43
43
  // fade-out. Using `aria-hidden` here triggers a browser warning when a focusable descendant still holds focus
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
9
9
 
@@ -16,7 +16,7 @@ class DSRModelSignature extends react.Component {
16
16
  splitChildren.splitChildren(this.props.children);
17
17
  const fetchPriority = this.props.fetchPriority !== 'auto' ? this.props.fetchPriority : null;
18
18
  const loading = this.props.lazy === true ? 'lazy' : null;
19
- const style = minifyCss.minifyCss(stylesEntry.getModelSignatureCss(this.props.model, this.props.safeZone, this.props.size, this.props.color));
19
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getModelSignatureCss, this.props.model, this.props.safeZone, this.props.size, this.props.color);
20
20
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("slot", {}), jsxRuntime.jsx("img", { fetchPriority: fetchPriority, loading: loading, src: utilsEntry.getSvgUrl(this.props.model), alt: this.props.model })] })] }), this.props.children] }));
21
21
  }
22
22
  }
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
 
9
9
  /**
@@ -15,7 +15,7 @@ class DSRMultiSelectOption extends react.Component {
15
15
  splitChildren.splitChildren(this.props.children);
16
16
  const { selected: isSelected, highlighted, hidden } = this.props;
17
17
  const isDisabled = this.props.disabled || this.props.disabledParent;
18
- const style = minifyCss.minifyCss(stylesEntry.getMultiSelectOptionCss(isDisabled, isSelected));
18
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getMultiSelectOptionCss, isDisabled, isSelected);
19
19
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } })
20
20
  // TODO: get rid of ARIA sprouting and use `elementInternals` API when AXE-CORE supports it: https://github.com/dequelabs/axe-core/issues/4259
21
21
  , "// TODO: get rid of ARIA sprouting and use `elementInternals` API when AXE-CORE supports it: https://github.com/dequelabs/axe-core/issues/4259", jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: Object.entries({
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var buttonPure_wrapper = require('../components/button-pure.wrapper.cjs');
@@ -77,7 +77,7 @@ class DSRMultiSelect extends react.Component {
77
77
  const listboxId = 'listbox';
78
78
  const selectDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? utilsEntry.descriptionId : undefined;
79
79
  const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? stateMessage.messageId : undefined;
80
- const style = minifyCss.minifyCss(stylesEntry.getMultiSelectCss(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact));
80
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getMultiSelectCss, this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact);
81
81
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxRuntime.jsxs("button", { ...utilsEntry.parseAndGetAriaAttributes(this.props.aria), "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, tabIndex: 0, ...utilsEntry.getComboboxAriaAttributes(this.props.isOpen, this.props.required, selectMessageId, selectDescriptionId, listboxId), disabled: this.props.disabled, onBlur: this.props.onComboBlur, children: [hasCustomSelectedSlot ? (jsxRuntime.jsx("slot", { name: "selected" })) : (jsxRuntime.jsx("span", { children: this.selectedOptions.map((option) => (option.textContent ?? '').toString().trim()).join(', ') })), this.props.value?.length > 0 && (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { type: "button", className: "button", icon: "close", hideLabel: true, disabled: this.props.disabled, children: "Reset selection" })), jsxRuntime.jsx(icon_wrapper.PIcon, { className: "icon", name: "arrow-head-down", color: "primary", "aria-hidden": "true" })] }), jsxRuntime.jsxs("div", { popover: "manual", tabIndex: 0, children: [hasCustomFilterSlot ? (jsxRuntime.jsx("slot", { name: "filter" })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(inputSearch_wrapper.PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, onBlur: (e) => e.stopPropagation() }), jsxRuntime.jsx(filterStatusAnnouncer.FilterStatusAnnouncer, { message: this.props.filterStatusMessage })] })), jsxRuntime.jsxs("div", { id: listboxId, className: "options", ...utilsEntry.getListboxAriaAttributes(this.props.required, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && utilsEntry.labelId, selectMessageId, selectDescriptionId, true), onPointerMove: this.props.onPointerMove, onBlur: (e) => e.stopPropagation(), children: [!this.props.hasFilterResults && jsxRuntime.jsx(noResultsOption.NoResultsOption, {}), jsxRuntime.jsx("slot", { name: "options-status" }), jsxRuntime.jsx("slot", {})] })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null })] })] }), this.props.children] }));
82
82
  }
83
83
  }
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
 
9
9
  /**
@@ -15,7 +15,7 @@ class DSROptgroup extends react.Component {
15
15
  splitChildren.splitChildren(this.props.children);
16
16
  const { hidden } = this.props;
17
17
  const labelId = 'label';
18
- const style = minifyCss.minifyCss(stylesEntry.getOptgroupCss(this.props.disabled));
18
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getOptgroupCss, this.props.disabled);
19
19
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { role: "group", "aria-disabled": this.props.disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, "aria-labelledby": labelId, children: [jsxRuntime.jsx("span", { id: labelId, role: "presentation", children: this.props.label }), jsxRuntime.jsx("slot", {})] }) })] }), this.props.children] }));
20
20
  }
21
21
  }
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
9
9
  var icon_wrapper = require('../components/icon.wrapper.cjs');
@@ -20,7 +20,7 @@ class DSRPagination extends react.Component {
20
20
  pageTotal,
21
21
  showLastPage: this.props.showLastPage,
22
22
  });
23
- const style = minifyCss.minifyCss(stylesEntry.getPaginationCss(this.props.activePage, pageTotal, this.props.showLastPage));
23
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getPaginationCss, this.props.activePage, pageTotal, this.props.showLastPage);
24
24
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx("nav", { "aria-label": this.props.intl.root, children: jsxRuntime.jsx("ul", { children: paginationItems.map((pageModel, index) => {
25
25
  const { type, isActive, value, isBeforeCurrent, isAfterCurrent, isBeforeBeforeCurrent, isAfterAfterCurrent, } = pageModel;
26
26
  const spanProps = {
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
10
10
  var loadingMessage = require('./loading-message.cjs');
@@ -47,7 +47,7 @@ class DSRPinCode extends react.Component {
47
47
  const currentInputId = 'current-input';
48
48
  const inputDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? utilsEntry.descriptionId : undefined;
49
49
  const inputMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? stateMessage.messageId : undefined;
50
- const style = minifyCss.minifyCss(stylesEntry.getPinCodeCss(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.length, this.props.compact));
50
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getPinCodeCss, this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.length, this.props.compact);
51
51
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { className: "root", disabled: this.props.disabled, ...utilsEntry.getFieldsetAriaAttributes(this.props.required, this.props.state === 'error'), "aria-describedby": utilsEntry.setAriaIDREF(this.props.loading && loadingMessage.loadingId, inputMessageId, inputDescriptionId), "aria-labelledby": (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) ? utilsEntry.labelId : null, children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: currentInputId, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxRuntime.jsxs("div", { className: "wrapper", dir: "ltr", children: [Array.from(new Array(this.props.length), (_, index) => (jsxRuntime.jsx("input", { name: this.props.name, form: this.props.form, ...(utilsEntry.isCurrentInput(index, this.parsedValue, this.props.length) && { id: currentInputId }), type: this.props.type === 'number' ? 'text' : this.props.type, "aria-label": utilsEntry.getPinCodeInputAriaLabel(index, this.props.length), "aria-describedby": utilsEntry.setAriaIDREF(inputMessageId), "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading ? 'true' : null, autoComplete: "one-time-code", pattern: "\\d*", inputMode: "numeric" // get numeric keyboard on mobile
52
52
  , defaultValue: this.parsedValue[index] === ' ' ? null : this.parsedValue[index], disabled: this.props.disabled, required: this.props.required, onFocus: this.props.onInputFocus, onMouseUp: this.props.onInputMouseUp, onBlur: this.props.onInputBlur }, index))), this.props.loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
53
53
  }
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var splitChildren = require('../../splitChildren.cjs');
5
5
  var react = require('react');
6
- var minifyCss = require('../../minifyCss.cjs');
6
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
7
7
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
8
8
  var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entry.cjs');
9
9
 
@@ -79,9 +79,11 @@ class DSRPopover extends react.Component {
79
79
  const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
80
80
  const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
81
81
  const id = 'popover';
82
- const style = minifyCss.minifyCss(stylesEntry.getPopoverCss(this.props.effectiveOpen, this.props.compact, this.props.isInitialRender).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
82
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(getPopoverTriggerCss, this.props.effectiveOpen, this.props.compact, this.props.isInitialRender);
83
83
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasSlottedButton ? (jsxRuntime.jsx("slot", { name: "button" })) : (jsxRuntime.jsx("button", { type: "button", "aria-label": "More information", "aria-details": id, ...utilsEntry.parseAndGetAriaAttributes(this.props.aria), "aria-expanded": this.props.effectiveOpen ? 'true' : 'false' })), jsxRuntime.jsxs("div", { id: id, popover: "manual", inert: !this.props.effectiveOpen, children: [jsxRuntime.jsx("div", { className: "arrow" }), this.props.description ? jsxRuntime.jsx("p", { children: this.props.description }) : jsxRuntime.jsx("slot", {})] })] })] }), this.props.children] }));
84
84
  }
85
85
  }
86
+ // module-level, because getCachedMinifiedCss() caches per function reference
87
+ const getPopoverTriggerCss = (...args) => stylesEntry.getPopoverCss(...args).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4');
86
88
 
87
89
  exports.DSRPopover = DSRPopover;
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
5
  require('../../provider.cjs');
6
6
  var splitChildren = require('../../splitChildren.cjs');
7
- var minifyCss = require('../../minifyCss.cjs');
7
+ var getCachedMinifiedCss = require('../../getCachedMinifiedCss.cjs');
8
8
  var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-entry.cjs');
9
9
  var loadingMessage = require('./loading-message.cjs');
10
10
  var label = require('./label.cjs');
@@ -27,7 +27,7 @@ class DSRRadioGroupOption extends react.Component {
27
27
  const isOptionLoading = this.props.loading && !isSelected;
28
28
  const isLoading = isOptionLoading || this.props.loadingParent;
29
29
  const id = 'radio-group-option';
30
- const style = minifyCss.minifyCss(stylesEntry.getRadioGroupOptionCss(isDisabled, isLoading, state));
30
+ const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getRadioGroupOptionCss, isDisabled, isLoading, state);
31
31
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("input", { id: id, type: "radio", name: name, checked: isSelected, disabled: isDisabled || isLoading, value: this.props.value, onClick: (e) => {
32
32
  e.stopPropagation();
33
33
  }, onBlur: this.props.onBlur, "aria-describedby": isLoading ? loadingMessage.loadingId : null, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": isDisabled || isLoading ? 'true' : null }), isOptionLoading && !this.props.loadingParent && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", "aria-hidden": "true" }))] }), jsxRuntime.jsx(label.Label, { hasLabel: this.props.label, hasDescription: false, host: null, label: this.props.label, htmlFor: id, isDisabled: isDisabled, isLoading: isLoading, stopClickPropagation: true }), !this.props.loadingParent && (jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: isOptionLoading, initialLoading: this.props.initialLoading }))] }) })] }), this.props.children] }));