@porsche-design-system/components-react 4.8.0 → 4.9.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
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getRadioGroupCss as getComponentCss$t } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { descriptionId, labelId, setAriaIDREF, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { LoadingMessage, loadingId } from './loading-message.mjs';
@@ -42,7 +42,7 @@ class DSRRadioGroup extends Component {
42
42
  const { namedSlotChildren} = splitChildren(this.props.children);
43
43
  const inputDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
44
44
  const inputMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
45
- const style = minifyCss(getComponentCss$t(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.direction));
45
+ const style = getCachedMinifiedCss(getComponentCss$t, this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.direction);
46
46
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { className: "root", disabled: this.props.disabled, ...getFieldsetAriaAttributes(this.props.required, this.props.state === 'error', { role: 'radiogroup' }), "aria-describedby": setAriaIDREF(this.props.loading && loadingId, inputMessageId, inputDescriptionId), "aria-labelledby": (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) ? labelId : null, children: [jsx(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, tag: "div", label: this.props.label, description: this.props.description, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), this.props.loading && jsx(PSpinner, { className: "spinner", "aria-hidden": "true" })] }), jsx(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 }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
47
47
  }
48
48
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getScrollerCss as getComponentCss$s } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
@@ -18,7 +18,7 @@ class DSRScroller extends Component {
18
18
  sentinelRight;
19
19
  render() {
20
20
  splitChildren(this.props.children);
21
- const style = minifyCss(getComponentCss$s(this.props.isIndicatorPrevVisible, this.props.isIndicatorNextVisible, this.props.sticky, this.props.scrollbar, this.props.compact));
21
+ const style = getCachedMinifiedCss(getComponentCss$s, this.props.isIndicatorPrevVisible, this.props.isIndicatorNextVisible, this.props.sticky, this.props.scrollbar, this.props.compact);
22
22
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("span", { className: "prev" }), jsx("span", { className: "next" }), jsxs("div", { className: "scroll", ...parseAndGetAriaAttributes(this.props.aria), tabIndex: this.props.isIndicatorPrevVisible || this.props.isIndicatorNextVisible ? 0 : null, children: [jsx("span", { className: "sentinel" }), jsx("slot", {}), jsx("span", { className: "sentinel" })] })] })] }), this.props.children] }));
23
23
  }
24
24
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getSegmentedControlItemCss as getComponentCss$r } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getSegmentedControlItemAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -17,7 +17,7 @@ class DSRSegmentedControlItem extends Component {
17
17
  const hasIcon = !!this.props.icon || !!this.props.iconSource;
18
18
  const hasSlottedContent = !!children.length;
19
19
  const isDisabled = this.props.disabled || this.props.disabledParent;
20
- const style = minifyCss(getComponentCss$r(this.props.compact, isDisabled, this.props.selected, this.props.state, hasIcon, hasSlottedContent));
20
+ const style = getCachedMinifiedCss(getComponentCss$r, this.props.compact, isDisabled, this.props.selected, this.props.state, hasIcon, hasSlottedContent);
21
21
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("button", { type: "button", ...getSegmentedControlItemAriaAttributes(this.props.selected, this.props.disabled, this.props.state, this.props.message, this.props.aria), children: [this.props.label && jsx("span", { children: this.props.label }), hasIcon && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.icon, source: this.props.iconSource, color: "inherit", "aria-hidden": "true" })), jsx("slot", {})] }) })] }), this.props.children] }));
22
22
  }
23
23
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getSegmentedControlCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { descriptionId, labelId, setAriaIDREF, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { Label } from './label.mjs';
@@ -42,7 +42,7 @@ class DSRSegmentedControl extends Component {
42
42
  const itemWidths = this.props.noWrap ? undefined : { minWidth: 100, maxWidth: 100 };
43
43
  const fieldDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
44
44
  const fieldMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
45
- const style = minifyCss(getComponentCss$q(itemWidths?.minWidth, itemWidths?.maxWidth, this.props.columns, this.props.disabled, this.props.hideLabel, this.props.state, this.props.noWrap));
45
+ const style = getCachedMinifiedCss(getComponentCss$q, itemWidths?.minWidth, itemWidths?.maxWidth, this.props.columns, this.props.disabled, this.props.hideLabel, this.props.state, this.props.noWrap);
46
46
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { className: "root", disabled: this.props.disabled, ...getFieldsetAriaAttributes(this.props.required, this.props.state === 'error'), "aria-labelledby": (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) ? labelId : null, "aria-describedby": setAriaIDREF(fieldMessageId, fieldDescriptionId), children: [jsx(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, tag: "div", label: this.props.label, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), this.props.noWrap ? (jsx(PScroller, { className: "scroller", children: jsx("slot", {}) })) : (jsx("slot", {})), jsx(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 })] })] }), manipulatedChildren] }));
47
47
  }
48
48
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getSelectOptionCss as getComponentCss$p } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PIcon } from '../components/icon.wrapper.mjs';
8
8
 
@@ -15,7 +15,7 @@ class DSRSelectOption extends Component {
15
15
  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(getComponentCss$p(isDisabled));
18
+ const style = getCachedMinifiedCss(getComponentCss$p, isDisabled);
19
19
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [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", jsx(Fragment, { children: jsxs("div", { className: Object.entries({
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getSelectCss as getComponentCss$o } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getHasNativePopoverSupport, descriptionId, getComboboxAriaAttributes, parseAndGetAriaAttributes, getListboxAriaAttributes, labelId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { Label } from './label.mjs';
@@ -67,7 +67,7 @@ class DSRSelect extends Component {
67
67
  const listboxId = 'listbox';
68
68
  const selectDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
69
69
  const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
70
- const style = minifyCss(getComponentCss$o(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact));
70
+ const style = getCachedMinifiedCss(getComponentCss$o, this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact);
71
71
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(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 }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId,
72
72
  // only needed for Safari to recognize focus state on click
73
73
  tabIndex: 0, ...parseAndGetAriaAttributes(this.props.aria), ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, selectMessageId, selectDescriptionId, listboxId), "aria-autocomplete": "none", disabled: this.props.disabled, onBlur: this.props.onComboBlur, children: [hasCustomSelectedSlot ? (jsx("slot", { name: "selected" })) : (jsxs(Fragment, { children: [this.selectedOption?.querySelector?.('img') && (jsx("img", { src: this.selectedOption.querySelector('img').src, alt: "" })), jsx("span", { children: this.selectedOption?.textContent ?? '' })] })), jsx(PIcon, { className: "icon", name: "arrow-head-down", color: "primary", "aria-hidden": "true" })] }), jsxs("div", { popover: "manual", tabIndex: 0, children: [this.props.filter && !hasCustomFilterSlot && (jsxs(Fragment, { children: [jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, onBlur: (e) => e.stopPropagation() }), jsx(FilterStatusAnnouncer, { message: this.props.filterStatusMessage })] })), hasCustomFilterSlot && jsx("slot", { name: "filter" }), jsxs("div", { id: listboxId, className: "options", ...getListboxAriaAttributes(this.props.required, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && labelId, selectMessageId, selectDescriptionId, false), tabIndex: -1, onPointerMove: this.props.onPointerMove, onBlur: (e) => e.stopPropagation(), children: [this.props.filter && !this.props.hasFilterResults && jsx(NoResultsOption, {}), jsx("slot", { name: "options-status" }), jsx("slot", {})] })] }), jsx(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] }));
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getSheetCss as getComponentCss$n } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { createTopLayerController, parseAndGetAriaAttributes, onCancelDialog, onClickDialog, showDialog } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
  import { DialogBase } from './dialog-base.mjs';
@@ -30,7 +30,7 @@ class DSRSheet extends Component {
30
30
  const { namedSlotChildren} = splitChildren(this.props.children);
31
31
  const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
32
32
  if (this.props.open) ;
33
- const style = minifyCss(getComponentCss$n(this.props.open, this.props.background, this.props.dismissButton));
33
+ const style = getCachedMinifiedCss(getComponentCss$n, this.props.open, this.props.background, this.props.dismissButton);
34
34
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(DialogBase
35
35
  // `inert` (not `aria-hidden`) removes the panel from the a11y tree AND prevents focus while closed / during the
36
36
  // fade-out. Using `aria-hidden` here triggers a browser warning when a focusable descendant still holds focus
@@ -1,13 +1,13 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
- import { minifyCss } from '../../minifyCss.mjs';
3
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
4
4
  import { getSpinnerCss as getComponentCss$m } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
5
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
6
6
 
7
7
  class DSRSpinner extends Component {
8
8
  host;
9
9
  render() {
10
- const style = minifyCss(getComponentCss$m(this.props.color, this.props.size));
10
+ const style = getCachedMinifiedCss(getComponentCss$m, this.props.color, this.props.size);
11
11
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { role: "alert", "aria-live": "assertive", ...parseAndGetAriaAttributes(this.props.aria), children: [jsx("span", { className: "sr-only", children: "\u00A0" }), jsxs("svg", { viewBox: "-16 -16 32 32", width: "100%", height: "100%", focusable: "false", "aria-hidden": "true", children: [jsx("circle", { r: "11" }), jsx("circle", { r: "11" })] })] })] }) }));
12
12
  }
13
13
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getStepperHorizontalItemCss as getComponentCss$l } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { isStateCompleteOrWarning, getStepperHorizontalIconName } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -14,7 +14,7 @@ class DSRStepperHorizontalItem extends Component {
14
14
  host;
15
15
  render() {
16
16
  splitChildren(this.props.children);
17
- const style = minifyCss(getComponentCss$l(this.props.state, this.props.disabled));
17
+ const style = getCachedMinifiedCss(getComponentCss$l, this.props.state, this.props.disabled);
18
18
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("button", { type: "button", "aria-disabled": !this.props.state || this.props.disabled ? 'true' : null, "aria-current": this.props.state === 'current' ? 'step' : null, children: [isStateCompleteOrWarning(this.props.state) ? (jsx(PIcon, { className: "icon", name: getStepperHorizontalIconName(this.props.state), size: "inherit", color: getStepperHorizontalIconName(this.props.state), "aria-hidden": "true" })) : (jsx("span", { className: "icon", "aria-hidden": "true" })), this.props.state && jsxs("span", { className: "sr-only", children: [this.props.state, ": "] }), jsx("slot", {})] }) })] }), this.props.children] }));
19
19
  }
20
20
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getStepperHorizontalCss as getComponentCss$k } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PScroller } from '../components/scroller.wrapper.mjs';
8
8
 
@@ -19,7 +19,7 @@ class DSRStepperHorizontal extends Component {
19
19
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
20
20
  ? { ...child, props: { ...child.props, theme: this.props.theme } }
21
21
  : child);
22
- const style = minifyCss(getComponentCss$k(this.props.size));
22
+ const style = getCachedMinifiedCss(getComponentCss$k, this.props.size);
23
23
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx(PScroller, { className: "scroller", aria: { role: 'list' }, children: jsx("slot", {}) }) })] }), manipulatedChildren] }));
24
24
  }
25
25
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getSwitchCss as getComponentCss$j } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getSwitchButtonAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { loadingId, LoadingMessage } from './loading-message.mjs';
@@ -19,7 +19,7 @@ class DSRSwitch extends Component {
19
19
  render() {
20
20
  splitChildren(this.props.children);
21
21
  const id = 'x';
22
- const style = minifyCss(getComponentCss$j(this.props.alignLabel, this.props.hideLabel, this.props.stretch, this.props.checked, this.props.disabled, this.props.loading, this.props.compact));
22
+ const style = getCachedMinifiedCss(getComponentCss$j, this.props.alignLabel, this.props.hideLabel, this.props.stretch, this.props.checked, this.props.disabled, this.props.loading, this.props.compact);
23
23
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx("button", { ...getSwitchButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.checked, this.props.aria), id: id, type: "button", role: "switch", "aria-describedby": this.props.loading ? loadingId : null, children: jsx("span", { className: "toggle", children: this.props.loading && jsx(PSpinner, { className: "spinner", "aria-hidden": "true" }) }) }), jsx("label", { htmlFor: id, children: jsx("slot", {}) }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
24
24
  }
25
25
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTableBodyCss as getComponentCss$i } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTableBody extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$i());
14
+ const style = getCachedMinifiedCss(getComponentCss$i);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTableCellCss as getComponentCss$g } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTableCell extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$g(this.props.multiline));
14
+ const style = getCachedMinifiedCss(getComponentCss$g, this.props.multiline);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getTableHeadCellCss as getComponentCss$f } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { isSortable } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -15,7 +15,7 @@ class DSRTableHeadCell extends Component {
15
15
  render() {
16
16
  splitChildren(this.props.children);
17
17
  const { active, direction } = this.props.sort || {};
18
- const style = minifyCss(getComponentCss$f(active, direction, this.props.hideLabel, this.props.multiline));
18
+ const style = getCachedMinifiedCss(getComponentCss$f, active, direction, this.props.hideLabel, this.props.multiline);
19
19
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: isSortable(active, direction) ? (jsxs("button", { type: "button", children: [jsx("slot", {}), jsx(PIcon, { className: "icon", color: "inherit", size: "x-small", name: "arrow-up", "aria-hidden": "true" })] })) : (jsx("span", { children: jsx("slot", {}) })) })] }), this.props.children] }));
20
20
  }
21
21
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTableHeadRowCss as getComponentCss$e } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTableHeadRow extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$e());
14
+ const style = getCachedMinifiedCss(getComponentCss$e);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTableHeadCss as getComponentCss$d } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTableHead extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$d());
14
+ const style = getCachedMinifiedCss(getComponentCss$d);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTableRowCss as getComponentCss$c } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTableRow extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$c());
14
+ const style = getCachedMinifiedCss(getComponentCss$c);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getTableCss as getComponentCss$h } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PScroller } from '../components/scroller.wrapper.mjs';
8
8
 
@@ -19,7 +19,7 @@ class DSRTable extends Component {
19
19
  const tableAttr = this.props.caption
20
20
  ? { 'aria-label': this.props.caption }
21
21
  : hasSlottedCaption && { 'aria-labelledby': captionId };
22
- const style = minifyCss(getComponentCss$h(this.props.compact, this.props.layout));
22
+ const style = getCachedMinifiedCss(getComponentCss$h, this.props.compact, this.props.layout);
23
23
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedCaption && (jsx("div", { id: captionId, className: "caption", children: jsx("slot", { name: "caption" }) })), jsx(PScroller, { scrollbar: true, compact: this.props.compact, sticky: this.props.sticky, children: jsx("div", { className: "table", role: "table", ...tableAttr, children: jsx("slot", {}) }) })] })] }), this.props.children] }));
24
24
  }
25
25
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getTabsBarCss as getComponentCss$b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getSanitizedActiveTabIndex, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PScroller } from '../components/scroller.wrapper.mjs';
@@ -22,7 +22,7 @@ class DSRTabsBar extends Component {
22
22
  resizeObserver;
23
23
  render() {
24
24
  const { children} = splitChildren(this.props.children);
25
- const style = minifyCss(getComponentCss$b(this.props.background, this.props.size, this.props.compact, getSanitizedActiveTabIndex(this.props.activeTabIndex, children)));
25
+ const style = getCachedMinifiedCss(getComponentCss$b, this.props.background, this.props.size, this.props.compact, getSanitizedActiveTabIndex(this.props.activeTabIndex, children));
26
26
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", compact: this.props.compact, ...(this.props.isTabList && {
27
27
  aria: {
28
28
  role: 'tablist',
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTabsItemCss as getComponentCss$a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTabsItem extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$a());
14
+ const style = getCachedMinifiedCss(getComponentCss$a);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getTabsCss as getComponentCss$9 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PTabsBar } from '../components/tabs-bar.wrapper.mjs';
8
8
 
@@ -19,7 +19,7 @@ class DSRTabs extends Component {
19
19
  const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
20
20
  ? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
21
21
  : child);
22
- const style = minifyCss(getComponentCss$9());
22
+ const style = getCachedMinifiedCss(getComponentCss$9);
23
23
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PTabsBar, { className: "root", size: this.props.size, background: this.props.background, compact: this.props.compact, activeTabIndex: this.props.activeTabIndex, aria: this.props.aria, children: otherChildren.map((tab, index) => (jsx("button", { type: "button", children: typeof tab === 'object' && 'props' in tab && tab.props.label }, index))) }), jsx("slot", {})] })] }), manipulatedChildren] }));
24
24
  }
25
25
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getTagDismissibleCss as getComponentCss$8 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -14,7 +14,7 @@ class DSRTagDismissible extends Component {
14
14
  host;
15
15
  render() {
16
16
  splitChildren(this.props.children);
17
- const style = minifyCss(getComponentCss$8(!!this.props.label, this.props.compact));
17
+ const style = getCachedMinifiedCss(getComponentCss$8, !!this.props.label, this.props.compact);
18
18
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { type: "button", ...parseAndGetAriaAttributes(this.props.aria), children: [jsx("span", { className: "sr-only", children: "Remove:" }), jsxs("span", { children: [this.props.label && jsx("span", { className: "label", children: this.props.label }), jsx("slot", {})] }), jsx("span", { className: "icon", children: jsx(PIcon, { name: "close", "aria-hidden": "true" }) })] })] }), this.props.children] }));
19
19
  }
20
20
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
- import { minifyCss } from '../../minifyCss.mjs';
5
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
6
6
  import { getTagCss as getComponentCss$7 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getDirectChildHTMLElement } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -15,7 +15,7 @@ class DSRTag extends Component {
15
15
  render() {
16
16
  splitChildren(this.props.children);
17
17
  const hasIcon = this.props.icon !== 'none' || !!this.props.iconSource;
18
- const style = minifyCss(getComponentCss$7(this.props.variant, this.props.compact, !!getDirectChildHTMLElement(null, 'a,button'), hasIcon));
18
+ const style = getCachedMinifiedCss(getComponentCss$7, this.props.variant, this.props.compact, !!getDirectChildHTMLElement(null, 'a,button'), hasIcon);
19
19
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("span", { children: [hasIcon && (jsx(PIcon, { className: "icon", ...(this.props.icon !== 'none' && { name: this.props.icon }), source: this.props.iconSource, color: "inherit", size: "x-small", "aria-hidden": "true" })), jsx("slot", {})] })] }), this.props.children] }));
20
20
  }
21
21
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTextListItemCss as getComponentCss$5 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ class DSRTextListItem extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$5());
14
+ const style = getCachedMinifiedCss(getComponentCss$5);
15
15
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
16
16
  }
17
17
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTextListCss as getComponentCss$6 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { isListTypeOrdered } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
@@ -13,7 +13,7 @@ class DSRTextList extends Component {
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
15
  const TagType = isListTypeOrdered(this.props.type) ? 'ol' : 'ul';
16
- const style = minifyCss(getComponentCss$6(this.props.type));
16
+ const style = getCachedMinifiedCss(getComponentCss$6, this.props.type);
17
17
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { children: jsx("slot", {}) })] }), this.props.children] }));
18
18
  }
19
19
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTextCss as getComponentCss$4 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { getTextTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
@@ -13,7 +13,7 @@ class DSRText extends Component {
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
15
  const TagType = getTextTagType(null, this.props.tag);
16
- const style = minifyCss(getComponentCss$4(this.props.size, this.props.weight, this.props.align, this.props.color, this.props.hyphens, this.props.ellipsis));
16
+ const style = getCachedMinifiedCss(getComponentCss$4, this.props.size, this.props.weight, this.props.align, this.props.color, this.props.hyphens, this.props.ellipsis);
17
17
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
18
18
  }
19
19
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
- import { minifyCss } from '../../minifyCss.mjs';
4
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
5
5
  import { getTextareaCss as getComponentCss$3 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { descriptionId, setAriaIDREF, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
  import { Label } from './label.mjs';
@@ -37,7 +37,7 @@ class DSRTextarea extends Component {
37
37
  const id = 'textarea';
38
38
  const textareaDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
39
39
  const textareaMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
40
- const style = minifyCss(getComponentCss$3(this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.compact, this.props.counter, this.props.resize));
40
+ const style = getCachedMinifiedCss(getComponentCss$3, this.props.disabled, this.props.readOnly, this.props.hideLabel, this.props.state, this.props.compact, this.props.counter, this.props.resize);
41
41
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(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, htmlFor: id, label: this.props.label, description: this.props.description, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [jsx("textarea", { ...parseAndGetAriaAttributes(this.props.aria), "aria-describedby": setAriaIDREF(textareaMessageId, textareaDescriptionId), "aria-invalid": this.props.state === 'error' ? 'true' : null, id: id, onBlur: this.props.onBlur, name: this.props.name, defaultValue: this.parsedValue, form: this.props.form, disabled: this.props.disabled, required: this.props.required, placeholder: this.props.placeholder, maxLength: this.props.maxLength, minLength: this.props.minLength, rows: this.props.rows, readOnly: this.props.readOnly, spellCheck: this.props.spellCheck, autoComplete: this.props.autoComplete, wrap: this.props.wrap }), this.props.counter && (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", "aria-live": "polite", children: this.props.maxLength
42
42
  ? `You have ${this.props.maxLength - this.parsedValue.length} out of ${this.props.maxLength} characters left`
43
43
  : `${this.parsedValue.length} characters entered` }), jsx("span", { className: "counter", "aria-hidden": "true", children: this.props.maxLength ? `${this.parsedValue.length}/${this.props.maxLength}` : `${this.parsedValue.length}` })] }))] }), jsx(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] }));
@@ -1,6 +1,6 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
- import { minifyCss } from '../../minifyCss.mjs';
3
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
4
4
  import { getToastCss as getComponentCss$1 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
5
 
6
6
  class DSRToast extends Component {
@@ -8,9 +8,11 @@ class DSRToast extends Component {
8
8
  toastItemElement;
9
9
  render() {
10
10
  const toast = false;
11
- const style = minifyCss(getComponentCss$1().replace(/(:host {[\S\s]+?})[\S\s]+/, '$1'));
11
+ const style = getCachedMinifiedCss(getToastHostCss);
12
12
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: toast })] }) }));
13
13
  }
14
14
  }
15
+ // module-level, because getCachedMinifiedCss() caches per function reference
16
+ const getToastHostCss = () => getComponentCss$1().replace(/(:host {[\S\s]+?})[\S\s]+/, '$1');
15
17
 
16
18
  export { DSRToast };
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
- import { minifyCss } from '../../minifyCss.mjs';
3
+ import { getCachedMinifiedCss } from '../../getCachedMinifiedCss.mjs';
4
4
  import { getWordmarkCss as getComponentCss } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
5
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
6
6
 
@@ -9,7 +9,7 @@ class DSRWordmark extends Component {
9
9
  render() {
10
10
  // optimized with SVGO, see docs in assets folder
11
11
  const svg = (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 4500 300", children: [jsx("title", { children: "Porsche" }), jsx("path", { d: "M502 221c48.1 0 74-25.9 74-74V74c0-48.1-25.9-74-74-74H0v300h68v-79h434zm6-143v65c0 7.8-4.2 12-12 12H68V66h428c7.8 0 12 4.2 12 12zm228 222c-48.1 0-74-25.9-74-74V74c0-48.1 25.9-74 74-74h417c48.1 0 74 25.9 74 74v152c0 48.1-25.9 74-74 74H736zm411-66c7.8 0 12-4.2 12-12V78c0-7.8-4.2-12-12-12H742c-7.8 0-12 4.2-12 12v144c0 7.8 4.2 12 12 12h405zm675-36c39.844 16.757 67.853 56.1 68 102h-68c0-54-25-79-79-79h-361v79h-68V0h502c48.1 0 74 25.9 74 74v50.14c0 46.06-23.75 71.76-68 73.86zm-12-43c7.8 0 12-4.2 12-12V78c0-7.8-4.2-12-12-12h-428v89h428zm162-81c0-48.1 25.9-74 74-74h492v56h-486c-7.8 0-12 4.2-12 12v42c0 7.8 4.2 12 12 12h422c48.1 0 74 25.9 74 74v30c0 48.1-25.9 74-74 74h-492v-56h486c7.8 0 12-4.2 12-12v-42c0-7.8-4.2-12-12-12h-422c-48.1 0-74-25.9-74-74V74zm661 0c0-48.1 25.9-74 74-74h480v66h-474c-7.8 0-12 4.2-12 12v144c0 7.8 4.2 12 12 12h474v66h-480c-48.1 0-74-25.9-74-74V74zM3817 0v300h-68V183h-407v117h-68V0h68v117h407V0h68zm156 56v66h527v56h-527v66h527v56h-595V0h595v56h-527z" })] }));
12
- const style = minifyCss(getComponentCss(this.props.size));
12
+ const style = getCachedMinifiedCss(getComponentCss, this.props.size);
13
13
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (svg) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: svg })) })] }) }));
14
14
  }
15
15
  }