@porsche-design-system/components-react 4.7.0-rc.0 → 4.8.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 (210) hide show
  1. package/CHANGELOG.md +87 -1
  2. package/cjs/hooks.cjs +1 -5
  3. package/cjs/lib/components/checkbox.wrapper.cjs +3 -3
  4. package/cjs/lib/components/input-date.wrapper.cjs +3 -3
  5. package/cjs/lib/components/input-email.wrapper.cjs +3 -3
  6. package/cjs/lib/components/input-month.wrapper.cjs +3 -3
  7. package/cjs/lib/components/input-number.wrapper.cjs +3 -3
  8. package/cjs/lib/components/input-password.wrapper.cjs +3 -3
  9. package/cjs/lib/components/input-tel.wrapper.cjs +3 -3
  10. package/cjs/lib/components/input-text.wrapper.cjs +3 -3
  11. package/cjs/lib/components/input-time.wrapper.cjs +3 -3
  12. package/cjs/lib/components/input-url.wrapper.cjs +3 -3
  13. package/cjs/lib/components/input-week.wrapper.cjs +3 -3
  14. package/cjs/lib/components/multi-select.wrapper.cjs +3 -3
  15. package/cjs/lib/components/select.wrapper.cjs +3 -3
  16. package/cjs/lib/components/switch.wrapper.cjs +3 -3
  17. package/cjs/lib/components/textarea.wrapper.cjs +3 -3
  18. package/esm/hooks.d.ts +0 -3
  19. package/esm/hooks.mjs +2 -5
  20. package/esm/lib/components/checkbox.wrapper.d.ts +9 -1
  21. package/esm/lib/components/checkbox.wrapper.mjs +3 -3
  22. package/esm/lib/components/input-date.wrapper.d.ts +9 -1
  23. package/esm/lib/components/input-date.wrapper.mjs +3 -3
  24. package/esm/lib/components/input-email.wrapper.d.ts +9 -1
  25. package/esm/lib/components/input-email.wrapper.mjs +3 -3
  26. package/esm/lib/components/input-month.wrapper.d.ts +9 -1
  27. package/esm/lib/components/input-month.wrapper.mjs +3 -3
  28. package/esm/lib/components/input-number.wrapper.d.ts +9 -1
  29. package/esm/lib/components/input-number.wrapper.mjs +3 -3
  30. package/esm/lib/components/input-password.wrapper.d.ts +9 -1
  31. package/esm/lib/components/input-password.wrapper.mjs +3 -3
  32. package/esm/lib/components/input-search.wrapper.d.ts +2 -2
  33. package/esm/lib/components/input-tel.wrapper.d.ts +9 -1
  34. package/esm/lib/components/input-tel.wrapper.mjs +3 -3
  35. package/esm/lib/components/input-text.wrapper.d.ts +9 -1
  36. package/esm/lib/components/input-text.wrapper.mjs +3 -3
  37. package/esm/lib/components/input-time.wrapper.d.ts +9 -1
  38. package/esm/lib/components/input-time.wrapper.mjs +3 -3
  39. package/esm/lib/components/input-url.wrapper.d.ts +9 -1
  40. package/esm/lib/components/input-url.wrapper.mjs +3 -3
  41. package/esm/lib/components/input-week.wrapper.d.ts +9 -1
  42. package/esm/lib/components/input-week.wrapper.mjs +3 -3
  43. package/esm/lib/components/link-pure.wrapper.d.ts +2 -2
  44. package/esm/lib/components/link-tile-product.wrapper.d.ts +2 -2
  45. package/esm/lib/components/link.wrapper.d.ts +2 -2
  46. package/esm/lib/components/multi-select.wrapper.d.ts +9 -1
  47. package/esm/lib/components/multi-select.wrapper.mjs +3 -3
  48. package/esm/lib/components/select.wrapper.d.ts +9 -1
  49. package/esm/lib/components/select.wrapper.mjs +3 -3
  50. package/esm/lib/components/switch.wrapper.d.ts +9 -1
  51. package/esm/lib/components/switch.wrapper.mjs +3 -3
  52. package/esm/lib/components/textarea.wrapper.d.ts +9 -1
  53. package/esm/lib/components/textarea.wrapper.mjs +3 -3
  54. package/esm/lib/types.d.ts +22 -1
  55. package/package.json +2 -2
  56. package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
  57. package/skills/pds-knowledge-react/SKILL.md +3 -3
  58. package/skills/pds-knowledge-react/references/components/p-carousel/examples/DynamicSlides.tsx +1 -0
  59. package/skills/pds-knowledge-react/references/components/p-carousel/examples/FocusOnCenterSlide.tsx +1 -0
  60. package/skills/pds-knowledge-react/references/components/p-carousel/examples/JumpToSlide.tsx +1 -0
  61. package/skills/pds-knowledge-react/references/components/p-checkbox/accessibility.md +14 -0
  62. package/skills/pds-knowledge-react/references/components/p-checkbox/p-checkbox.md +12 -0
  63. package/skills/pds-knowledge-react/references/components/p-input-date/accessibility.md +14 -0
  64. package/skills/pds-knowledge-react/references/components/p-input-date/p-input-date.md +12 -0
  65. package/skills/pds-knowledge-react/references/components/p-input-email/accessibility.md +14 -0
  66. package/skills/pds-knowledge-react/references/components/p-input-email/p-input-email.md +12 -0
  67. package/skills/pds-knowledge-react/references/components/p-input-month/accessibility.md +14 -0
  68. package/skills/pds-knowledge-react/references/components/p-input-month/p-input-month.md +12 -0
  69. package/skills/pds-knowledge-react/references/components/p-input-number/accessibility.md +14 -0
  70. package/skills/pds-knowledge-react/references/components/p-input-number/p-input-number.md +12 -0
  71. package/skills/pds-knowledge-react/references/components/p-input-password/accessibility.md +14 -0
  72. package/skills/pds-knowledge-react/references/components/p-input-password/p-input-password.md +12 -0
  73. package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +2 -1
  74. package/skills/pds-knowledge-react/references/components/p-input-tel/accessibility.md +14 -0
  75. package/skills/pds-knowledge-react/references/components/p-input-tel/p-input-tel.md +12 -0
  76. package/skills/pds-knowledge-react/references/components/p-input-text/accessibility.md +14 -0
  77. package/skills/pds-knowledge-react/references/components/p-input-text/p-input-text.md +12 -0
  78. package/skills/pds-knowledge-react/references/components/p-input-time/accessibility.md +14 -0
  79. package/skills/pds-knowledge-react/references/components/p-input-time/p-input-time.md +12 -0
  80. package/skills/pds-knowledge-react/references/components/p-input-url/accessibility.md +14 -0
  81. package/skills/pds-knowledge-react/references/components/p-input-url/p-input-url.md +12 -0
  82. package/skills/pds-knowledge-react/references/components/p-input-week/accessibility.md +14 -0
  83. package/skills/pds-knowledge-react/references/components/p-input-week/p-input-week.md +12 -0
  84. package/skills/pds-knowledge-react/references/components/p-link/p-link.md +2 -2
  85. package/skills/pds-knowledge-react/references/components/p-link-pure/p-link-pure.md +2 -2
  86. package/skills/pds-knowledge-react/references/components/p-link-tile-product/p-link-tile-product.md +2 -2
  87. package/skills/pds-knowledge-react/references/components/p-multi-select/accessibility.md +22 -0
  88. package/skills/pds-knowledge-react/references/components/p-multi-select/p-multi-select.md +14 -2
  89. package/skills/pds-knowledge-react/references/components/p-pin-code/p-pin-code.md +11 -3
  90. package/skills/pds-knowledge-react/references/components/p-select/accessibility.md +22 -0
  91. package/skills/pds-knowledge-react/references/components/p-select/p-select.md +14 -2
  92. package/skills/pds-knowledge-react/references/components/p-switch/accessibility.md +18 -0
  93. package/skills/pds-knowledge-react/references/components/p-switch/p-switch.md +12 -0
  94. package/skills/pds-knowledge-react/references/components/p-textarea/accessibility.md +14 -0
  95. package/skills/pds-knowledge-react/references/components/p-textarea/p-textarea.md +12 -0
  96. package/skills/pds-knowledge-react/references/deprecations.md +4 -4
  97. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +18 -105
  98. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +78 -156
  99. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/hooks.cjs +1 -5
  100. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox.wrapper.cjs +4 -4
  101. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-date.wrapper.cjs +4 -4
  102. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.cjs +4 -4
  103. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-month.wrapper.cjs +4 -4
  104. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.cjs +4 -4
  105. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.cjs +4 -4
  106. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-tel.wrapper.cjs +4 -4
  107. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.cjs +4 -4
  108. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-time.wrapper.cjs +4 -4
  109. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-url.wrapper.cjs +4 -4
  110. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-week.wrapper.cjs +4 -4
  111. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.cjs +4 -4
  112. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.cjs +4 -4
  113. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.cjs +4 -4
  114. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.cjs +4 -4
  115. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  116. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.cjs +2 -2
  117. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +1 -1
  118. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +1 -1
  119. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +1 -1
  120. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +1 -1
  121. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +1 -1
  122. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +1 -1
  123. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -1
  124. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +1 -1
  125. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +1 -1
  126. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +1 -1
  127. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +1 -1
  128. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
  129. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +1 -1
  130. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -1
  131. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
  132. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -3
  133. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +0 -1
  134. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
  135. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +0 -1
  136. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -2
  137. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +0 -1
  138. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +0 -1
  139. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
  140. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +18 -105
  141. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +78 -150
  142. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +2 -5
  143. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox.wrapper.mjs +4 -4
  144. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-date.wrapper.mjs +4 -4
  145. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.mjs +4 -4
  146. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-month.wrapper.mjs +4 -4
  147. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.mjs +4 -4
  148. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.mjs +4 -4
  149. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-tel.wrapper.mjs +4 -4
  150. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.mjs +4 -4
  151. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-time.wrapper.mjs +4 -4
  152. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-url.wrapper.mjs +4 -4
  153. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-week.wrapper.mjs +4 -4
  154. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.mjs +4 -4
  155. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.mjs +4 -4
  156. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.mjs +4 -4
  157. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.mjs +4 -4
  158. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -2
  159. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +3 -3
  160. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +1 -1
  161. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +1 -1
  162. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +1 -1
  163. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +1 -1
  164. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +1 -1
  165. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +1 -1
  166. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -1
  167. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +1 -1
  168. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +1 -1
  169. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +1 -1
  170. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +1 -1
  171. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
  172. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +1 -1
  173. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
  174. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +2 -2
  175. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -4
  176. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +0 -1
  177. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -2
  178. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +0 -1
  179. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -2
  180. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +0 -1
  181. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +0 -1
  182. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +2 -2
  183. package/ssr/esm/hooks.d.ts +0 -3
  184. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +9 -1
  185. package/ssr/esm/lib/components/input-date.wrapper.d.ts +9 -1
  186. package/ssr/esm/lib/components/input-email.wrapper.d.ts +9 -1
  187. package/ssr/esm/lib/components/input-month.wrapper.d.ts +9 -1
  188. package/ssr/esm/lib/components/input-number.wrapper.d.ts +9 -1
  189. package/ssr/esm/lib/components/input-password.wrapper.d.ts +9 -1
  190. package/ssr/esm/lib/components/input-search.wrapper.d.ts +2 -2
  191. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +9 -1
  192. package/ssr/esm/lib/components/input-text.wrapper.d.ts +9 -1
  193. package/ssr/esm/lib/components/input-time.wrapper.d.ts +9 -1
  194. package/ssr/esm/lib/components/input-url.wrapper.d.ts +9 -1
  195. package/ssr/esm/lib/components/input-week.wrapper.d.ts +9 -1
  196. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +2 -2
  197. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +2 -2
  198. package/ssr/esm/lib/components/link.wrapper.d.ts +2 -2
  199. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +9 -1
  200. package/ssr/esm/lib/components/select.wrapper.d.ts +9 -1
  201. package/ssr/esm/lib/components/switch.wrapper.d.ts +9 -1
  202. package/ssr/esm/lib/components/textarea.wrapper.d.ts +9 -1
  203. package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
  204. package/ssr/esm/lib/dsr-components/link-pure.d.ts +1 -1
  205. package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +1 -1
  206. package/ssr/esm/lib/dsr-components/link.d.ts +1 -1
  207. package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +0 -1
  208. package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +0 -1
  209. package/ssr/esm/lib/dsr-components/tabs.d.ts +0 -1
  210. package/ssr/esm/lib/types.d.ts +22 -1
@@ -3181,15 +3181,6 @@ function requireDist () {
3181
3181
  var distExports = requireDist();
3182
3182
  var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
3183
3183
 
3184
- // NOTE: these utils are in the same file on purpose
3185
- // to force them being bundled into our core chunk
3186
- const getTagName = (el) => el.tagName.toLowerCase();
3187
- const getTagNameWithoutPrefix = (host) => {
3188
- const tagName = getTagName(host);
3189
- const [, tagNameWithoutPrefix = ''] = /^(?:[a-z0-9-]+-)?(p-[a-z-]+)$/.exec(tagName) || [];
3190
- return (tagNameWithoutPrefix || tagName); // return tagName as fallback for default tags
3191
- };
3192
-
3193
3184
  const parseCssTimeToMs = (value) => {
3194
3185
  const trimmed = value.trim();
3195
3186
  const num = Number.parseFloat(trimmed);
@@ -3224,8 +3215,6 @@ const isDisabledOrLoading = (disabled, loading) => {
3224
3215
  return disabled || loading;
3225
3216
  };
3226
3217
 
3227
- const isElementOfKind = (element, tagName) => getTagNameWithoutPrefix(element) === tagName;
3228
-
3229
3218
  const parseJSONAttribute = (attribute) => {
3230
3219
  // Input is object, e.g. { 'aria-label': 'Some label' }
3231
3220
  if (typeof attribute !== 'string') {
@@ -3270,9 +3259,8 @@ const getButtonBaseAriaAttributes = (isDisabled, isLoading) => {
3270
3259
  };
3271
3260
  };
3272
3261
 
3273
- const getComboboxAriaAttributes = (isOpen, isRequired, labelId, messageId, descriptionId, listboxId) => {
3262
+ const getComboboxAriaAttributes = (isOpen, isRequired, messageId, descriptionId, listboxId) => {
3274
3263
  return {
3275
- 'aria-labelledby': labelId || null,
3276
3264
  'aria-describedby': setAriaIDREF(messageId, descriptionId),
3277
3265
  'aria-haspopup': 'listbox',
3278
3266
  'aria-expanded': isOpen ? 'true' : 'false',
@@ -3412,15 +3400,11 @@ const parseJSONBoolean = (prop) =>
3412
3400
  // TODO: [v5] obsolete once objects can only be set via property, since Stencil coerces booleans itself then, see #4708
3413
3401
  (prop === '' ? true : parse(prop));
3414
3402
 
3415
- // NOTE: handpicked selection of plugins from jss-preset-default
3416
- createJss({
3417
- plugins: [
3418
- jssGlobal(),
3419
- jssNested(),
3420
- camelCase(),
3421
- jssPluginSortMediaQueries({ combineMediaQueries: true }),
3422
- ],
3423
- });
3403
+ /**
3404
+ * Checks if the current environment supports the constructable stylesheets feature.
3405
+ *
3406
+ * @returns {boolean} `true` if constructable stylesheets are supported, `false` otherwise.
3407
+ */
3424
3408
  const supportsConstructableStylesheets = () => {
3425
3409
  try {
3426
3410
  return typeof new CSSStyleSheet().replaceSync === 'function';
@@ -3431,7 +3415,17 @@ const supportsConstructableStylesheets = () => {
3431
3415
  };
3432
3416
  // determine it once
3433
3417
  supportsConstructableStylesheets();
3434
- // TODO: Use function from ./jss (Causes bundling issues)
3418
+
3419
+ // NOTE: handpicked selection of plugins from jss-preset-default
3420
+ createJss({
3421
+ plugins: [
3422
+ jssGlobal(),
3423
+ jssNested(),
3424
+ camelCase(),
3425
+ jssPluginSortMediaQueries({ combineMediaQueries: true }),
3426
+ ],
3427
+ });
3428
+ // TODO: Use function from ./supportsConstructableStylesheets (Causes bundling issues)
3435
3429
  (() => {
3436
3430
  try {
3437
3431
  return typeof new CSSStyleSheet().replaceSync === 'function';
@@ -3528,12 +3522,6 @@ const hasShowPickerSupport = () => (hasDocument &&
3528
3522
  'showPicker' in HTMLInputElement.prototype &&
3529
3523
  CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
3530
3524
 
3531
- const prefix = `[Porsche Design System v${"4.7.0-rc.0"}]` // this part isn't covered by unit tests
3532
- ;
3533
- const consoleError$1 = (...messages) => {
3534
- console.error(prefix, ...messages);
3535
- };
3536
-
3537
3525
  /**
3538
3526
  * Checks if the current environment supports the native Popover API.
3539
3527
  *
@@ -3636,94 +3624,7 @@ const formatObjectOutput = (value) => {
3636
3624
  .replace(/(})/g, ' $1') // add space before following: }
3637
3625
  .replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
3638
3626
  };
3639
- const formatArrayOutput = (value) => {
3640
- return JSON.stringify(value.map((x) => (x === undefined ? `${x}` : x))) // wrap undefined in quotes to not convert it to null
3641
- .replace(/'/g, '') // remove single quotes
3642
- .replace(/"/g, "'") // replace double quotes with single quotes
3643
- .replace(/'(undefined)'/, '$1') // remove quotes around undefined
3644
- .replace(/,/g, ', '); // add space after comma
3645
- };
3646
- const printErrorMessage = ({ propName, propValue, // TODO: might be nicer if this is always a string
3647
- propType, componentName, instance, }) => {
3648
- consoleError$1(`Invalid property '${propName}' with value '${internalValidateProps.formatObjectOutput(propValue)}' supplied to ${componentName}, expected one of: ${propType}.`, instance.host);
3649
- };
3650
- const isValueNotOfType = (propValue, propType) => {
3651
- return propValue !== undefined && typeof propValue !== propType;
3652
- };
3653
- const validateValueOfType = (propName, propValue, propType) => {
3654
- if (internalValidateProps.isValueNotOfType(propValue, propType)) {
3655
- return { propName, propValue, propType };
3656
- }
3657
- return undefined;
3658
- };
3659
- const getBreakpointCustomizableStructure = (allowedValues) => {
3660
- return breakpointCustomizableTemplate.replace(/value/g, allowedValues !== 'boolean' && allowedValues !== 'number'
3661
- ? internalValidateProps
3662
- .formatArrayOutput(allowedValues)
3663
- .replace(/\[/g, '(') // starting inline type literal array
3664
- .replace(/]/g, ')[]') // ending inline type literal array
3665
- .replace(/,/g, ' |') // replace commas with a pipe
3666
- : allowedValues);
3667
- };
3668
- const getAriaStructure = (allowedAriaAttributes) => {
3669
- return internalValidateProps
3670
- .formatObjectOutput(allowedAriaAttributes.reduce((prev, key) => ({
3671
- ...prev,
3672
- [key]: 'value',
3673
- }), {}))
3674
- .replace(/":/g, '"?:') // add optional modifier on keys before colon
3675
- .replace(/"/g, "'"); // replace double quotes with single quotes
3676
- };
3677
- const getShapeStructure = (shapeStructure) => {
3678
- return internalValidateProps
3679
- .formatObjectOutput(Object.keys(shapeStructure).reduce((prev, key) => ({ ...prev, [key]: shapeStructure[key].name }), {}))
3680
- .replace(/"/g, ''); // remove double quotes
3681
- };
3682
- const isBreakpointCustomizableValueInvalid = (value, allowedValues) => {
3683
- return allowedValues === 'boolean' || allowedValues === 'number'
3684
- ? internalValidateProps.isValueNotOfType(value, allowedValues)
3685
- : !allowedValues.includes(value);
3686
- };
3687
- /**
3688
- * Validates an array using a provided validator function and returns the first encountered validation error.
3689
- *
3690
- * @param {string} propName - The name of the property being validated.
3691
- * @param {any} arr - The input to be validated.
3692
- * @param {ValidatorFunction} validator - The validator function that checks each array item.
3693
- * @returns {ValidationError | undefined} The first encountered validation error object, or undefined if the array is valid.
3694
- */
3695
- const isValidArray = (propName, arr, validator) => {
3696
- const validationError = Array.isArray(arr)
3697
- ? validator(propName, arr.find((item) => validator(propName, item)))
3698
- : {
3699
- propName,
3700
- propValue: arr,
3701
- // Derive propType for the error message by invoking the validator with a value that is
3702
- // guaranteed to fail. `null` works for most built-in validators (string/number/boolean),
3703
- // but not for `AllowedTypes.null` itself, so fall back to a unique Symbol which fails
3704
- // every typeof-based validator.
3705
- propType: (validator(propName, null) ?? validator(propName, Symbol('invalid')))?.propType,
3706
- };
3707
- if (validationError) {
3708
- return { ...validationError, propType: `${validationError.propType}[]` };
3709
- }
3710
- return undefined;
3711
- };
3712
- const internalValidateProps = {
3713
- isValueNotOfType,
3714
- formatArrayOutput,
3715
- formatObjectOutput,
3716
- printErrorMessage,
3717
- validateValueOfType,
3718
- isValidArray,
3719
- isBreakpointCustomizableValueInvalid,
3720
- getBreakpointCustomizableStructure,
3721
- getAriaStructure,
3722
- getShapeStructure,
3723
- };
3724
- const breakpointCustomizableTemplate = `value, ${internalValidateProps
3725
- .formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {}))
3726
- .replace(/"/g, '')}`;
3627
+ `value, ${formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '')}`;
3727
3628
 
3728
3629
  /** Supported market locales (BCP47). Source of truth for the `locale` prop API; list may evolve. */
3729
3630
  const MARKET_LOCALES = [
@@ -3914,12 +3815,34 @@ const AI_TAG_LOCALES_DEPRECATED = [
3914
3815
  ...new Set([...MARKET_LOCALES, ...AI_TAG_LOCALES_DEPRECATED]),
3915
3816
  ];
3916
3817
  const normalizeAiTagLocale = (locale) => locale.replace(/-/g, '_');
3917
- /** First language subtag; maps Norwegian Bokmål `nb` → `no` (translation key). */
3818
+ /**
3819
+ * Translation key for a locale.
3820
+ * Usually the first language subtag. Special cases:
3821
+ * - Norwegian Bokmål `nb` → `no`
3822
+ * - Chinese `zh-CN` / `zh-HK` / `zh-TW` → `zhCN` / `zhHK` / `zhTW` (distinct legal copy)
3823
+ */
3824
+ const ZH_REGION_TRANSLATION_KEYS = {
3825
+ CN: 'zhCN',
3826
+ HK: 'zhHK',
3827
+ TW: 'zhTW',
3828
+ };
3918
3829
  const getAiTagLanguage = (locale) => {
3919
- const language = normalizeAiTagLocale(locale).split('_')[0] ?? '';
3920
- return language === 'nb' ? 'no' : language;
3830
+ const [language, region] = normalizeAiTagLocale(locale).split('_');
3831
+ if (language === 'nb') {
3832
+ return 'no';
3833
+ }
3834
+ if (language === 'zh' && region && region in ZH_REGION_TRANSLATION_KEYS) {
3835
+ return ZH_REGION_TRANSLATION_KEYS[region];
3836
+ }
3837
+ return language ?? '';
3921
3838
  };
3922
3839
  const AI_TAG_TRANSLATIONS = {
3840
+ ar: {
3841
+ short: 'AI',
3842
+ long: 'الذكاء الاصطناعي',
3843
+ generated: 'مُنشأ بواسطة الذكاء الاصطناعي',
3844
+ modified: 'مُعدَّل بواسطة الذكاء الاصطناعي',
3845
+ },
3923
3846
  bg: {
3924
3847
  short: 'ИИ',
3925
3848
  long: 'изкуствен интелект',
@@ -3991,6 +3914,18 @@ const AI_TAG_TRANSLATIONS = {
3991
3914
  generated: "Generato dall'IA",
3992
3915
  modified: "Modificato dall'IA",
3993
3916
  },
3917
+ ja: {
3918
+ short: 'AI',
3919
+ long: '人工知能',
3920
+ generated: 'AIによる生成',
3921
+ modified: 'AIによる修正',
3922
+ },
3923
+ ko: {
3924
+ short: 'AI',
3925
+ long: '인공지능',
3926
+ generated: '인공지능 생성',
3927
+ modified: '인공지능 수정',
3928
+ },
3994
3929
  lt: {
3995
3930
  short: 'DI',
3996
3931
  long: 'dirbtinis intelektas',
@@ -4047,7 +3982,7 @@ const AI_TAG_TRANSLATIONS = {
4047
3982
  generated: 'Сгенерировано ИИ',
4048
3983
  modified: 'Изменено ИИ',
4049
3984
  },
4050
- sk: { short: 'AI', long: 'umelá inteligencia', generated: 'Vytvořeno AI', modified: 'Upravené AI' },
3985
+ sk: { short: 'AI', long: 'umelá inteligencia', generated: 'Vytvorené AI', modified: 'Upravené AI' },
4051
3986
  sl: { short: 'UI', long: 'umetna inteligenca', generated: 'Ustvarjeno z UI', modified: 'Spremenjeno z UI' },
4052
3987
  sr: { short: 'AI', long: 'veštačka inteligencija', generated: 'AI-generisano', modified: 'AI-modifikovano' },
4053
3988
  sv: {
@@ -4068,6 +4003,24 @@ const AI_TAG_TRANSLATIONS = {
4068
4003
  generated: 'Згенеровано ШІ',
4069
4004
  modified: 'Змінено ШІ',
4070
4005
  },
4006
+ zhCN: {
4007
+ short: 'AI',
4008
+ long: '人工智能',
4009
+ generated: 'AI生成',
4010
+ modified: 'AI润色',
4011
+ },
4012
+ zhHK: {
4013
+ short: 'AI',
4014
+ long: '人工智能',
4015
+ generated: '由 AI 生成的',
4016
+ modified: '經 AI 修改的',
4017
+ },
4018
+ zhTW: {
4019
+ short: 'AI',
4020
+ long: '人工智慧',
4021
+ generated: 'AI生成',
4022
+ modified: 'AI修改',
4023
+ },
4071
4024
  };
4072
4025
  const resolveAiTagTranslationLanguage = (locale) => {
4073
4026
  const language = getAiTagLanguage(locale);
@@ -4150,33 +4103,6 @@ const getDisplayTagType = (host, size, tag) => {
4150
4103
  }
4151
4104
  return displaySizeToTagMap[size] || 'h1';
4152
4105
  };
4153
- /**
4154
- * Recursively updates the state of a drilldown item's parent elements by traversing up the DOM tree.
4155
- *
4156
- * @param {HTMLPDrilldownItemElement} activeItem - The current drilldown item being updated.
4157
- * @param {'primary' | 'secondary' | 'cascade'} prop - The property of the drilldown item to update.
4158
- * @param {boolean} value - The new state value to apply.
4159
- */
4160
- const traverseTreeAndUpdateState = (activeItem, prop, value) => {
4161
- if (isElementOfKind(activeItem, 'p-drilldown-item')) {
4162
- activeItem[prop] = value;
4163
- internalDrilldown.traverseTreeAndUpdateState(activeItem.parentElement, 'cascade', value);
4164
- }
4165
- };
4166
- const internalDrilldown = {
4167
- traverseTreeAndUpdateState,
4168
- };
4169
- /**
4170
- * Updates the state of the drilldown and its children based on the provided activeItem and value.
4171
- *
4172
- * @param {string | undefined} activeItem - The drilldown-item element which is currently active (which has the activeIdentifier as identifier). If undefined, updates the root element.
4173
- * @param {boolean} value - The new state value to apply.
4174
- * @returns {void}
4175
- */
4176
- const updateDrilldownItemState = (activeItem, value) => {
4177
- activeItem.secondary = value;
4178
- internalDrilldown.traverseTreeAndUpdateState(activeItem.parentElement, 'primary', value);
4179
- };
4180
4106
  const getFieldsetAriaAttributes = (isRequired, isInvalid, aria) => {
4181
4107
  const ariaAttrs = parseAndGetAriaAttributes(aria);
4182
4108
  return {
@@ -4355,6 +4281,7 @@ const isCurrentInput = (index, value, length) => {
4355
4281
  }
4356
4282
  return index === firstWhitespaceIndex; // Some value is entered: set current-input id on the first input element which does not have a value
4357
4283
  };
4284
+ const getPinCodeInputAriaLabel = (index, length) => `${index + 1} of ${length}`;
4358
4285
  const getSegmentedControlItemAriaAttributes = (isSelected, isDisabled, state, message, ariaProp) => ({
4359
4286
  ...getButtonBaseAriaAttributes(isDisabled, false),
4360
4287
  ...(state !== 'none' && parseAndGetAriaAttributes({ 'aria-description': message })),
@@ -4396,8 +4323,9 @@ const getStepperHorizontalIconName = (state) => {
4396
4323
  return state === 'complete' ? 'success' : 'warning';
4397
4324
  };
4398
4325
 
4399
- const getSwitchButtonAriaAttributes = (isDisabled, isLoading, isChecked) => {
4326
+ const getSwitchButtonAriaAttributes = (isDisabled, isLoading, isChecked, aria) => {
4400
4327
  return {
4328
+ ...parseAndGetAriaAttributes(aria),
4401
4329
  ...getButtonBaseAriaAttributes(isDisabled, isLoading),
4402
4330
  'aria-checked': isChecked ? 'true' : 'false',
4403
4331
  };
@@ -4434,4 +4362,4 @@ const getTextTagType = (host, tag) => {
4434
4362
  return tag;
4435
4363
  };
4436
4364
 
4437
- export { AI_TAG_LOCALES_DEPRECATED, AI_TAG_TRANSLATIONS, DISPLAY_TAGS, HEADING_TAGS, ItemType, MARKET_LOCALES, TEXT_TAGS, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildFlagUrl, buildIconUrl, consoleError$1 as consoleError, createPaginationItems, createRange, createTopLayerController, crestSize, descriptionId, displaySizeToTagMap, getAiTagLanguage, getAiTagTranslation, getBannerAriaAttributes, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getComboboxAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getFieldsetAriaAttributes, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getInlineNotificationAriaAttributes, getListboxAriaAttributes, getMaxTransitionDurationMs, getParsedTileCompact, getSanitizedActiveTabIndex, getSegmentedControlItemAriaAttributes, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTagName, getTagNameWithoutPrefix, getTextTagType, getTotalPages, hasDocument, hasShowPickerSupport, hasSpecificDirectChildTag, hasVisibleIcon, hasWindow$1 as hasWindow, headerSlot, internalDrilldown, isCurrentInput, isDialogBackdropTarget, isDisabledOrLoading, isElementOfKind, isInfinitePagination, isListTypeOrdered, isSortable, isStateCompleteOrWarning, isUrl, labelId, mergeInputNativeAria, normalizeAiTagLocale, observedNodesMap, onCancelDialog, onClickDialog, parseAndGetAriaAttributes, parseJSONAttribute, parseJSONBoolean, resolveAiTagTranslationLanguage, setAriaIDREF, showDialog, supportsConstructableStylesheets, supportsNativePopover, supportsOverlayTransition, tempDiv, tempIcon, tempLabel, traverseTreeAndUpdateState, updateDrilldownItemState };
4365
+ export { AI_TAG_LOCALES_DEPRECATED, AI_TAG_TRANSLATIONS, DISPLAY_TAGS, HEADING_TAGS, ItemType, MARKET_LOCALES, TEXT_TAGS, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildFlagUrl, buildIconUrl, createPaginationItems, createRange, createTopLayerController, crestSize, descriptionId, displaySizeToTagMap, getAiTagLanguage, getAiTagTranslation, getBannerAriaAttributes, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getComboboxAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getFieldsetAriaAttributes, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getInlineNotificationAriaAttributes, getListboxAriaAttributes, getMaxTransitionDurationMs, getParsedTileCompact, getPinCodeInputAriaLabel, getSanitizedActiveTabIndex, getSegmentedControlItemAriaAttributes, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTextTagType, getTotalPages, hasDocument, hasShowPickerSupport, hasSpecificDirectChildTag, hasVisibleIcon, hasWindow$1 as hasWindow, headerSlot, isCurrentInput, isDialogBackdropTarget, isDisabledOrLoading, isInfinitePagination, isListTypeOrdered, isSortable, isStateCompleteOrWarning, isUrl, labelId, mergeInputNativeAria, normalizeAiTagLocale, observedNodesMap, onCancelDialog, onClickDialog, parseAndGetAriaAttributes, parseJSONAttribute, parseJSONBoolean, resolveAiTagTranslationLanguage, setAriaIDREF, showDialog, supportsConstructableStylesheets, supportsNativePopover, supportsOverlayTransition, tempDiv, tempIcon, tempLabel };
@@ -52,7 +52,7 @@ const useMergedClass = (ref, className) => {
52
52
  };
53
53
  const useBrowserLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
54
54
  const useToastManager = () => {
55
- const tagName = internalHooks.usePrefix('p-toast');
55
+ const tagName = usePrefix('p-toast');
56
56
  return {
57
57
  addMessage: (message) => {
58
58
  const toast = document.body.querySelector(tagName);
@@ -60,8 +60,5 @@ const useToastManager = () => {
60
60
  },
61
61
  };
62
62
  };
63
- const internalHooks = {
64
- usePrefix,
65
- };
66
63
 
67
- export { internalHooks, skipCheckForPorscheDesignSystemProviderDuringTests, useBrowserLayoutEffect, useEventCallback, useMergedClass, usePrefix, useToastManager };
64
+ export { skipCheckForPorscheDesignSystemProviderDuringTests, useBrowserLayoutEffect, useEventCallback, useMergedClass, usePrefix, useToastManager };
@@ -5,22 +5,22 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRCheckbox } from '../dsr-components/checkbox.mjs';
7
7
 
8
- const PCheckbox = /*#__PURE__*/ forwardRef(({ checked = false, compact = false, disabled = false, form, hideLabel = false, indeterminate = false, label = '', loading = false, message = '', name = '', onBlur, onChange, required = false, state = 'none', value = 'on', className, children, ...rest }, ref) => {
8
+ const PCheckbox = /*#__PURE__*/ forwardRef(({ aria, checked = false, compact = false, disabled = false, form, hideLabel = false, indeterminate = false, label = '', loading = false, message = '', name = '', onBlur, onChange, required = false, state = 'none', value = 'on', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  const WebComponentTag = usePrefix('p-checkbox');
13
- const propsToSync = [checked, compact, disabled, form, hideLabel, indeterminate, label, loading, message, name, required, state, value];
13
+ const propsToSync = [aria, checked, compact, disabled, form, hideLabel, indeterminate, label, loading, message, name, required, state, value];
14
14
  useBrowserLayoutEffect(() => {
15
15
  const { current } = elementRef;
16
- ['checked', 'compact', 'disabled', 'form', 'hideLabel', 'indeterminate', 'label', 'loading', 'message', 'name', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
+ ['aria', 'checked', 'compact', 'disabled', 'form', 'hideLabel', 'indeterminate', 'label', 'loading', 'message', 'name', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
17
  }, propsToSync);
18
18
  const props = {
19
19
  ...rest,
20
20
  // @ts-ignore
21
21
  ...(!process.browser
22
22
  ? {
23
- children: (jsx(DSRCheckbox, { checked, compact, disabled, form, hideLabel, indeterminate, label, loading, message, name, required, state, value, children })),
23
+ children: (jsx(DSRCheckbox, { aria, checked, compact, disabled, form, hideLabel, indeterminate, label, loading, message, name, required, state, value, children })),
24
24
  }
25
25
  : {
26
26
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputDate } from '../dsr-components/input-date.mjs';
7
7
 
8
- const PInputDate = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, readOnly = false, required = false, state = 'none', step = 1, value = '', className, children, ...rest }, ref) => {
8
+ const PInputDate = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, readOnly = false, required = false, state = 'none', step = 1, value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-date');
14
- const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value];
14
+ const propsToSync = [aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputDate, { autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value, children })),
24
+ children: (jsx(DSRInputDate, { aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputEmail } from '../dsr-components/input-email.mjs';
7
7
 
8
- const PInputEmail = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = false, label = '', loading = false, maxLength, message = '', minLength, multiple = false, name, onBlur, onChange, onInput, pattern, placeholder = '', readOnly = false, required = false, state = 'none', value = '', className, children, ...rest }, ref) => {
8
+ const PInputEmail = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = false, label = '', loading = false, maxLength, message = '', minLength, multiple = false, name, onBlur, onChange, onInput, pattern, placeholder = '', readOnly = false, required = false, state = 'none', value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-email');
14
- const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, value];
14
+ const propsToSync = [aria, autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'maxLength', 'message', 'minLength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'maxLength', 'message', 'minLength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputEmail, { autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, value, children })),
24
+ children: (jsx(DSRInputEmail, { aria, autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputMonth } from '../dsr-components/input-month.mjs';
7
7
 
8
- const PInputMonth = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, readOnly = false, required = false, state = 'none', step = 1, value = '', className, children, ...rest }, ref) => {
8
+ const PInputMonth = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, readOnly = false, required = false, state = 'none', step = 1, value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-month');
14
- const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value];
14
+ const propsToSync = [aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputMonth, { autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value, children })),
24
+ children: (jsx(DSRInputMonth, { aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputNumber } from '../dsr-components/input-number.mjs';
7
7
 
8
- const PInputNumber = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, controls = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', step = 1, value = '', className, children, ...rest }, ref) => {
8
+ const PInputNumber = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, controls = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', step = 1, value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-number');
14
- const propsToSync = [autoComplete, compact, controls, description, disabled, form, hideLabel, label, loading, max, message, min, name, placeholder, readOnly, required, state, step, value];
14
+ const propsToSync = [aria, autoComplete, compact, controls, description, disabled, form, hideLabel, label, loading, max, message, min, name, placeholder, readOnly, required, state, step, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'controls', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'placeholder', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'controls', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'placeholder', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputNumber, { autoComplete, compact, controls, description, disabled, form, hideLabel, label, loading, max, message, min, name, placeholder, readOnly, required, state, step, value, children })),
24
+ children: (jsx(DSRInputNumber, { aria, autoComplete, compact, controls, description, disabled, form, hideLabel, label, loading, max, message, min, name, placeholder, readOnly, required, state, step, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputPassword } from '../dsr-components/input-password.mjs';
7
7
 
8
- const PInputPassword = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', toggle = false, value = '', className, children, ...rest }, ref) => {
8
+ const PInputPassword = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', toggle = false, value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-password');
14
- const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, state, toggle, value];
14
+ const propsToSync = [aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, state, toggle, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'state', 'toggle', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'state', 'toggle', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputPassword, { autoComplete, compact, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, state, toggle, value, children })),
24
+ children: (jsx(DSRInputPassword, { aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, state, toggle, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputTel } from '../dsr-components/input-tel.mjs';
7
7
 
8
- const PInputTel = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, pattern, placeholder = '', readOnly = false, required = false, state = 'none', value = '', className, children, ...rest }, ref) => {
8
+ const PInputTel = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, pattern, placeholder = '', readOnly = false, required = false, state = 'none', value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-tel');
14
- const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, name, pattern, placeholder, readOnly, required, state, value];
14
+ const propsToSync = [aria, autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, name, pattern, placeholder, readOnly, required, state, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputTel, { autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, name, pattern, placeholder, readOnly, required, state, value, children })),
24
+ children: (jsx(DSRInputTel, { aria, autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, name, pattern, placeholder, readOnly, required, state, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputText } from '../dsr-components/input-text.mjs';
7
7
 
8
- const PInputText = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, counter = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, spellCheck, state = 'none', value = '', className, children, ...rest }, ref) => {
8
+ const PInputText = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, counter = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, spellCheck, state = 'none', value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-text');
14
- const propsToSync = [autoComplete, compact, counter, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, spellCheck, state, value];
14
+ const propsToSync = [aria, autoComplete, compact, counter, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, spellCheck, state, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'counter', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'spellCheck', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'counter', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'spellCheck', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputText, { autoComplete, compact, counter, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, spellCheck, state, value, children })),
24
+ children: (jsx(DSRInputText, { aria, autoComplete, compact, counter, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, spellCheck, state, value, children })),
25
25
  }
26
26
  : {
27
27
  children,
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRInputTime } from '../dsr-components/input-time.mjs';
7
7
 
8
- const PInputTime = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, readOnly = false, required = false, state = 'none', step = 60, value = '', className, children, ...rest }, ref) => {
8
+ const PInputTime = /*#__PURE__*/ forwardRef(({ aria, autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, readOnly = false, required = false, state = 'none', step = 60, value = '', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'blur', onBlur);
11
11
  useEventCallback(elementRef, 'change', onChange);
12
12
  useEventCallback(elementRef, 'input', onInput);
13
13
  const WebComponentTag = usePrefix('p-input-time');
14
- const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value];
14
+ const propsToSync = [aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value];
15
15
  useBrowserLayoutEffect(() => {
16
16
  const { current } = elementRef;
17
- ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
+ ['aria', 'autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'readOnly', 'required', 'state', 'step', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
18
  }, propsToSync);
19
19
  const props = {
20
20
  ...rest,
21
21
  // @ts-ignore
22
22
  ...(!process.browser
23
23
  ? {
24
- children: (jsx(DSRInputTime, { autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value, children })),
24
+ children: (jsx(DSRInputTime, { aria, autoComplete, compact, description, disabled, form, hideLabel, label, loading, max, message, min, name, readOnly, required, state, step, value, children })),
25
25
  }
26
26
  : {
27
27
  children,