@porsche-design-system/components-vue 4.7.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 (95) hide show
  1. package/CHANGELOG.md +85 -1
  2. package/cjs/lib/components/CheckboxWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  3. package/cjs/lib/components/InputDateWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  4. package/cjs/lib/components/InputEmailWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  5. package/cjs/lib/components/InputMonthWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  6. package/cjs/lib/components/InputNumberWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  7. package/cjs/lib/components/InputPasswordWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  8. package/cjs/lib/components/InputTelWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  9. package/cjs/lib/components/InputTextWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  10. package/cjs/lib/components/InputTimeWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  11. package/cjs/lib/components/InputUrlWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  12. package/cjs/lib/components/InputWeekWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  13. package/cjs/lib/components/MultiSelectWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  14. package/cjs/lib/components/SelectWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  15. package/cjs/lib/components/SwitchWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  16. package/cjs/lib/components/TextareaWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  17. package/esm/lib/components/CheckboxWrapper.vue.d.ts +5 -1
  18. package/esm/lib/components/CheckboxWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  19. package/esm/lib/components/InputDateWrapper.vue.d.ts +5 -1
  20. package/esm/lib/components/InputDateWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  21. package/esm/lib/components/InputEmailWrapper.vue.d.ts +5 -1
  22. package/esm/lib/components/InputEmailWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  23. package/esm/lib/components/InputMonthWrapper.vue.d.ts +5 -1
  24. package/esm/lib/components/InputMonthWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  25. package/esm/lib/components/InputNumberWrapper.vue.d.ts +5 -1
  26. package/esm/lib/components/InputNumberWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  27. package/esm/lib/components/InputPasswordWrapper.vue.d.ts +5 -1
  28. package/esm/lib/components/InputPasswordWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  29. package/esm/lib/components/InputSearchWrapper.vue.d.ts +1 -1
  30. package/esm/lib/components/InputTelWrapper.vue.d.ts +5 -1
  31. package/esm/lib/components/InputTelWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  32. package/esm/lib/components/InputTextWrapper.vue.d.ts +5 -1
  33. package/esm/lib/components/InputTextWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  34. package/esm/lib/components/InputTimeWrapper.vue.d.ts +5 -1
  35. package/esm/lib/components/InputTimeWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  36. package/esm/lib/components/InputUrlWrapper.vue.d.ts +5 -1
  37. package/esm/lib/components/InputUrlWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  38. package/esm/lib/components/InputWeekWrapper.vue.d.ts +5 -1
  39. package/esm/lib/components/InputWeekWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  40. package/esm/lib/components/LinkPureWrapper.vue.d.ts +1 -1
  41. package/esm/lib/components/LinkTileProductWrapper.vue.d.ts +1 -1
  42. package/esm/lib/components/LinkWrapper.vue.d.ts +1 -1
  43. package/esm/lib/components/MultiSelectWrapper.vue.d.ts +5 -1
  44. package/esm/lib/components/MultiSelectWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  45. package/esm/lib/components/SelectWrapper.vue.d.ts +5 -1
  46. package/esm/lib/components/SelectWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  47. package/esm/lib/components/SwitchWrapper.vue.d.ts +5 -1
  48. package/esm/lib/components/SwitchWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  49. package/esm/lib/components/TextareaWrapper.vue.d.ts +5 -1
  50. package/esm/lib/components/TextareaWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  51. package/esm/lib/types.d.ts +22 -1
  52. package/package.json +2 -2
  53. package/skills/pds-audit-deprecations-vue/SKILL.md +2 -2
  54. package/skills/pds-knowledge-vue/SKILL.md +2 -2
  55. package/skills/pds-knowledge-vue/references/components/p-carousel/examples/DynamicSlides.vue +1 -0
  56. package/skills/pds-knowledge-vue/references/components/p-carousel/examples/FocusOnCenterSlide.vue +1 -0
  57. package/skills/pds-knowledge-vue/references/components/p-carousel/examples/JumpToSlide.vue +1 -0
  58. package/skills/pds-knowledge-vue/references/components/p-checkbox/accessibility.md +14 -0
  59. package/skills/pds-knowledge-vue/references/components/p-checkbox/p-checkbox.md +12 -0
  60. package/skills/pds-knowledge-vue/references/components/p-input-date/accessibility.md +14 -0
  61. package/skills/pds-knowledge-vue/references/components/p-input-date/p-input-date.md +12 -0
  62. package/skills/pds-knowledge-vue/references/components/p-input-email/accessibility.md +14 -0
  63. package/skills/pds-knowledge-vue/references/components/p-input-email/p-input-email.md +12 -0
  64. package/skills/pds-knowledge-vue/references/components/p-input-month/accessibility.md +14 -0
  65. package/skills/pds-knowledge-vue/references/components/p-input-month/p-input-month.md +12 -0
  66. package/skills/pds-knowledge-vue/references/components/p-input-number/accessibility.md +14 -0
  67. package/skills/pds-knowledge-vue/references/components/p-input-number/p-input-number.md +12 -0
  68. package/skills/pds-knowledge-vue/references/components/p-input-password/accessibility.md +14 -0
  69. package/skills/pds-knowledge-vue/references/components/p-input-password/p-input-password.md +12 -0
  70. package/skills/pds-knowledge-vue/references/components/p-input-search/p-input-search.md +2 -1
  71. package/skills/pds-knowledge-vue/references/components/p-input-tel/accessibility.md +14 -0
  72. package/skills/pds-knowledge-vue/references/components/p-input-tel/p-input-tel.md +12 -0
  73. package/skills/pds-knowledge-vue/references/components/p-input-text/accessibility.md +14 -0
  74. package/skills/pds-knowledge-vue/references/components/p-input-text/p-input-text.md +12 -0
  75. package/skills/pds-knowledge-vue/references/components/p-input-time/accessibility.md +14 -0
  76. package/skills/pds-knowledge-vue/references/components/p-input-time/p-input-time.md +12 -0
  77. package/skills/pds-knowledge-vue/references/components/p-input-url/accessibility.md +14 -0
  78. package/skills/pds-knowledge-vue/references/components/p-input-url/p-input-url.md +12 -0
  79. package/skills/pds-knowledge-vue/references/components/p-input-week/accessibility.md +14 -0
  80. package/skills/pds-knowledge-vue/references/components/p-input-week/p-input-week.md +12 -0
  81. package/skills/pds-knowledge-vue/references/components/p-link/p-link.md +2 -2
  82. package/skills/pds-knowledge-vue/references/components/p-link-pure/p-link-pure.md +2 -2
  83. package/skills/pds-knowledge-vue/references/components/p-link-tile-product/p-link-tile-product.md +2 -2
  84. package/skills/pds-knowledge-vue/references/components/p-multi-select/accessibility.md +22 -0
  85. package/skills/pds-knowledge-vue/references/components/p-multi-select/p-multi-select.md +14 -2
  86. package/skills/pds-knowledge-vue/references/components/p-pin-code/p-pin-code.md +11 -3
  87. package/skills/pds-knowledge-vue/references/components/p-select/accessibility.md +22 -0
  88. package/skills/pds-knowledge-vue/references/components/p-select/p-select.md +14 -2
  89. package/skills/pds-knowledge-vue/references/components/p-switch/accessibility.md +18 -0
  90. package/skills/pds-knowledge-vue/references/components/p-switch/p-switch.md +12 -0
  91. package/skills/pds-knowledge-vue/references/components/p-textarea/accessibility.md +14 -0
  92. package/skills/pds-knowledge-vue/references/components/p-textarea/p-textarea.md +12 -0
  93. package/skills/pds-knowledge-vue/references/deprecations.md +4 -4
  94. package/vanilla-extract/cjs/focus/deprecated/getFocusStyle.cjs +0 -1
  95. package/vanilla-extract/esm/focus/deprecated/getFocusStyle.mjs +0 -1
@@ -675,6 +675,11 @@ declare const BUTTON_ARIA_ATTRIBUTES: readonly [
675
675
  "aria-haspopup"
676
676
  ];
677
677
  export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
678
+ declare const FORM_FIELD_ARIA_ATTRIBUTES: readonly [
679
+ "aria-label",
680
+ "aria-description"
681
+ ];
682
+ export type FormFieldAriaAttribute = (typeof FORM_FIELD_ARIA_ATTRIBUTES)[number];
678
683
  declare const LINK_ARIA_ATTRIBUTES: readonly [
679
684
  "aria-label",
680
685
  "aria-description",
@@ -735,6 +740,7 @@ declare const TILE_ALIGNS: readonly [
735
740
  ];
736
741
  export type TileAlign = (typeof TILE_ALIGNS)[number];
737
742
  export type MultiSelectState = FormState;
743
+ export type MultiSelectAriaAttribute = FormFieldAriaAttribute;
738
744
  export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
739
745
  export type MultiSelectChangeEventDetail = {
740
746
  name: string;
@@ -744,6 +750,7 @@ export type MultiSelectToggleEventDetail = {
744
750
  open: boolean;
745
751
  };
746
752
  export type SelectState = FormState;
753
+ export type SelectAriaAttribute = FormFieldAriaAttribute;
747
754
  export type SelectDropdownDirection = SelectComponentsDropdownDirection;
748
755
  export type SelectChangeEventDetail = {
749
756
  name: string;
@@ -1082,6 +1089,7 @@ declare const CAROUSEL_ALIGN_CONTROLS: readonly [
1082
1089
  ];
1083
1090
  export type CarouselAlignControls = (typeof CAROUSEL_ALIGN_CONTROLS)[number];
1084
1091
  export type CheckboxState = FormState;
1092
+ export type CheckboxAriaAttribute = FormFieldAriaAttribute;
1085
1093
  export type CheckboxBlurEventDetail = Event;
1086
1094
  export type CheckboxChangeEventDetail = Event;
1087
1095
  export type CrestTarget = LinkTarget;
@@ -1310,22 +1318,27 @@ declare const INLINE_NOTIFICATION_HEADING_TAGS: readonly [
1310
1318
  ];
1311
1319
  export type InlineNotificationHeadingTag = (typeof INLINE_NOTIFICATION_HEADING_TAGS)[number];
1312
1320
  export type InputDateState = FormState;
1321
+ export type InputDateAriaAttribute = FormFieldAriaAttribute;
1313
1322
  export type InputDateChangeEventDetail = Event;
1314
1323
  export type InputDateBlurEventDetail = Event;
1315
1324
  export type InputDateInputEventDetail = InputEvent;
1316
1325
  export type InputEmailState = FormState;
1326
+ export type InputEmailAriaAttribute = FormFieldAriaAttribute;
1317
1327
  export type InputEmailChangeEventDetail = Event;
1318
1328
  export type InputEmailBlurEventDetail = Event;
1319
1329
  export type InputEmailInputEventDetail = InputEvent;
1320
1330
  export type InputMonthState = FormState;
1331
+ export type InputMonthAriaAttribute = FormFieldAriaAttribute;
1321
1332
  export type InputMonthChangeEventDetail = Event;
1322
1333
  export type InputMonthBlurEventDetail = Event;
1323
1334
  export type InputMonthInputEventDetail = InputEvent;
1324
1335
  export type InputNumberState = FormState;
1336
+ export type InputNumberAriaAttribute = FormFieldAriaAttribute;
1325
1337
  export type InputNumberChangeEventDetail = Event;
1326
1338
  export type InputNumberBlurEventDetail = Event;
1327
1339
  export type InputNumberInputEventDetail = InputEvent;
1328
1340
  export type InputPasswordState = FormState;
1341
+ export type InputPasswordAriaAttribute = FormFieldAriaAttribute;
1329
1342
  export type InputPasswordChangeEventDetail = Event;
1330
1343
  export type InputPasswordBlurEventDetail = Event;
1331
1344
  export type InputPasswordInputEventDetail = InputEvent;
@@ -1339,26 +1352,32 @@ declare const INPUT_SEARCH_ARIA_ATTRIBUTES: readonly [
1339
1352
  "aria-controls",
1340
1353
  "aria-expanded",
1341
1354
  "aria-haspopup",
1342
- "aria-label"
1355
+ "aria-label",
1356
+ "aria-description"
1343
1357
  ];
1344
1358
  export type InputSearchAriaAttribute = (typeof INPUT_SEARCH_ARIA_ATTRIBUTES)[number];
1345
1359
  export type InputTelState = FormState;
1360
+ export type InputTelAriaAttribute = FormFieldAriaAttribute;
1346
1361
  export type InputTelChangeEventDetail = Event;
1347
1362
  export type InputTelBlurEventDetail = Event;
1348
1363
  export type InputTelInputEventDetail = InputEvent;
1349
1364
  export type InputTextState = FormState;
1365
+ export type InputTextAriaAttribute = FormFieldAriaAttribute;
1350
1366
  export type InputTextChangeEventDetail = Event;
1351
1367
  export type InputTextBlurEventDetail = Event;
1352
1368
  export type InputTextInputEventDetail = InputEvent;
1353
1369
  export type InputTimeState = FormState;
1370
+ export type InputTimeAriaAttribute = FormFieldAriaAttribute;
1354
1371
  export type InputTimeChangeEventDetail = Event;
1355
1372
  export type InputTimeBlurEventDetail = Event;
1356
1373
  export type InputTimeInputEventDetail = InputEvent;
1357
1374
  export type InputUrlState = FormState;
1375
+ export type InputUrlAriaAttribute = FormFieldAriaAttribute;
1358
1376
  export type InputUrlChangeEventDetail = Event;
1359
1377
  export type InputUrlBlurEventDetail = Event;
1360
1378
  export type InputUrlInputEventDetail = InputEvent;
1361
1379
  export type InputWeekState = FormState;
1380
+ export type InputWeekAriaAttribute = FormFieldAriaAttribute;
1362
1381
  export type InputWeekChangeEventDetail = Event;
1363
1382
  export type InputWeekBlurEventDetail = Event;
1364
1383
  export type InputWeekInputEventDetail = InputEvent;
@@ -1644,6 +1663,7 @@ declare const STEPPER_ITEM_STATES: readonly [
1644
1663
  ];
1645
1664
  export type StepperHorizontalItemState = (typeof STEPPER_ITEM_STATES)[number];
1646
1665
  export type SwitchAlignLabel = AlignLabel;
1666
+ export type SwitchAriaAttribute = FormFieldAriaAttribute;
1647
1667
  export type SwitchUpdateEventDetail = {
1648
1668
  checked: boolean;
1649
1669
  };
@@ -1802,6 +1822,7 @@ declare const TEXT_LIST_TYPES: readonly [
1802
1822
  ];
1803
1823
  export type TextListType = (typeof TEXT_LIST_TYPES)[number];
1804
1824
  export type TextareaState = FormState;
1825
+ export type TextareaAriaAttribute = FormFieldAriaAttribute;
1805
1826
  declare const TEXTAREA_WRAPS: readonly [
1806
1827
  "hard",
1807
1828
  "soft",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "4.7.0",
3
+ "version": "4.8.0-rc.0",
4
4
  "description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
5
5
  "keywords": [
6
6
  "porsche",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/porsche-design-system/porsche-design-system"
22
22
  },
23
23
  "dependencies": {
24
- "@porsche-design-system/components-js": "4.7.0"
24
+ "@porsche-design-system/components-js": "4.8.0-rc.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "ag-grid-enterprise": ">= 36.0.0 <37.0.0",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: pds-audit-deprecations-vue
3
3
  description: Audit an existing vue project for deprecated Porsche Design System (PDS) API usage — components, props, prop values, events, slots, CSS variables, tokens and styling-package aliases. Produces a JSON report and a Markdown report rendered from it, every finding carrying quoted evidence, a concrete fix and a derived confidence. Read-only apart from its two report files.
4
- compatibility: Requires the pds-knowledge-vue skill, which ships alongside this one in @porsche-design-system/components-vue@4.7.0. The audited project must depend on that exact version.
4
+ compatibility: Requires the pds-knowledge-vue skill, which ships alongside this one in @porsche-design-system/components-vue@4.8.0-rc.0. The audited project must depend on that exact version.
5
5
  disable-model-invocation: true
6
6
  ---
7
7
 
@@ -135,7 +135,7 @@ Every finding carries:
135
135
  - `evidence` — every location where the project **uses** the API, each with a project-relative path, a line number and the source line **quoted verbatim**. The quote is not decoration: it is what lets a reader, or a later fix, confirm the finding against the file instead of trusting it.
136
136
  - `anchor` on a location — the line that proves that usage is PDS, with its own path, line and quoted source. The import, the resolved SCSS `@use` **including one injected by build config**, the Tailwind `@theme` import, or the PDS root at the far end of a wrapper chain. Record it whenever it is not the evidence line itself; it is frequently in another file, and it is the only truthful place to put `vite.config.ts` for a stylesheet that names PDS nowhere. Omit it only where the usage anchors itself, as a `--p-` custom property does.
137
137
  - `remediation` — a `replacement` with the exact `from` and `to` spelling whenever the index documents an unambiguous one, plus an `instruction` in words. Where the index documents no replacement, say so plainly in the instruction rather than inventing one.
138
- - `sources` — the knowledge-skill reference the fact came from, as a path relative to that skill’s root, at version `4.7.0`.
138
+ - `sources` — the knowledge-skill reference the fact came from, as a path relative to that skill’s root, at version `4.8.0-rc.0`.
139
139
  - the index entry’s message as `deprecationMessage`, verbatim, when it has one. Some say an API has no effect anymore; that wording matters to whoever reads the finding, so do not paraphrase it.
140
140
 
141
141
  An evidence `line` is the **usage** — the attribute, tag, custom property or alias reference itself. Never the `import`, `@use` or `@theme` that anchored it, never the wrapper call it arrived through, and never the declaration line of a constant it resolved from — including a key inside an object that is applied to the element as a whole, which is such a declaration and not a usage. For such an object, the evidence line is the element it is applied to. Where a component is reached through a local binding, the evidence line is the reference to the PDS binding, not the render of the local alias. Those lines are real and they matter, which is exactly why the anchor has a field of its own: counted as locations instead, they inflate a finding by however many anchors it happens to have, and occurrence count is a sort key in §8 — so two runs of an unchanged project stop being comparable.
@@ -15,11 +15,11 @@ Prefer Porsche Design System components and tokens for new UI, even when the use
15
15
 
16
16
  This skill currently covers components, global stylesheets and theming, tokens, styling integrations, and the deprecated API index. It does not yet include complete getting-started, setup, and installation guidance; the v3-to-v4 migration guide; the changelog; partials; patterns and templates; the AG Grid theme; or the Storefront’s Must Know and Help sections.
17
17
 
18
- Before using documentation outside this skill or the installed package, match it to the installed PDS version. This skill was generated for `4.7.0`; prefer the [exact-version Porsche Design System Storefront](https://designsystem.porsche.com/v4.7.0/). Major-version URLs such as `/v4/` always serve the latest v4 release and may describe APIs or setup introduced after the installed version. Use them only as a fallback and verify relevant details against the installed package.
18
+ Before using documentation outside this skill or the installed package, match it to the installed PDS version. This skill was generated for `4.8.0-rc.0`; prefer the [exact-version Porsche Design System Storefront](https://designsystem.porsche.com/v4.8.0-rc.0/). Major-version URLs such as `/v4/` always serve the latest v4 release and may describe APIs or setup introduced after the installed version. Use them only as a fallback and verify relevant details against the installed package.
19
19
 
20
20
  For runnable patterns and templates, consult the [Porsche Design System examples repository](https://github.com/porsche-design-system/examples), selecting a release tag or commit that matches the installed package instead of assuming its default branch is compatible. For release-specific changes, read `../../CHANGELOG.md`.
21
21
 
22
- For exact API facts, inspect the installed typings and metadata first. When readable implementation details are necessary, use the [exact-version component source](https://github.com/porsche-design-system/porsche-design-system/tree/v4.7.0/packages/components/src/components) under the repository's `packages/components/src/components/<component>` directory. Do not use the default branch, which may represent a newer release.
22
+ For exact API facts, inspect the installed typings and metadata first. When readable implementation details are necessary, use the [exact-version component source](https://github.com/porsche-design-system/porsche-design-system/tree/v4.8.0-rc.0/packages/components/src/components) under the repository's `packages/components/src/components/<component>` directory. Do not use the default branch, which may represent a newer release.
23
23
 
24
24
  For deployed browser behavior, inspect component requests in the Network panel. Treat these minified, content-hashed CDN artifacts as a debugging fallback; use the exact-version repository source for readable implementation details.
25
25
 
@@ -28,6 +28,7 @@ const onRemoveClick = (): void => {
28
28
  align-items: center;
29
29
  justify-content: center;
30
30
  background: #00b0f4;
31
+ color: #000;
31
32
  height: 150px;
32
33
  }
33
34
  </style>
@@ -44,6 +44,7 @@ const onCarouselUpdate = (event: CustomEvent<CarouselUpdateEventDetail>) => {
44
44
  align-items: center;
45
45
  justify-content: center;
46
46
  background: #00b0f4;
47
+ color: #000;
47
48
  transition: background 0.3s ease;
48
49
  height: 150px;
49
50
  }
@@ -37,6 +37,7 @@ const onButtonClick = (e: MouseEvent): void => {
37
37
  align-items: center;
38
38
  justify-content: center;
39
39
  background: #00b0f4;
40
+ color: #000;
40
41
  height: 150px;
41
42
  }
42
43
  </style>
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PCheckbox name="terms" label="I accept the terms" aria-label="Accessible name" aria-description="Additional context"></PCheckbox>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PCheckbox name="terms" label="I accept the terms" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PCheckbox>
17
+ ```
18
+
5
19
  ### Hidden label without accessible name
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -45,6 +45,15 @@ A `label` is a caption which informs the user what information a particular form
45
45
 
46
46
  ### ARIA enhancements
47
47
 
48
+ #### External **ARIA** provided by the `aria` property:
49
+
50
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
51
+
52
+ | ARIA | Usage |
53
+ | --- | --- |
54
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
55
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
56
+
48
57
  #### Internal **ARIA** that is managed by the component:
49
58
 
50
59
  | ARIA | Usage |
@@ -62,10 +71,12 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
62
71
 
63
72
  ### Common do's and don'ts
64
73
 
74
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
65
75
  - **Do** provide a clear `label` that describes what the checkbox controls.
66
76
  - **Do** use the component state/message API so validation and status changes are announced.
67
77
  - **Do** use clear error wording that helps users recover.
68
78
  - **Don't** use `hide-label` without an accessible name.
79
+ - **Don't** add native `aria-*` attributes directly on the component host.
69
80
  - **Don't** use `hide-label` when it is not clear what the checkbox controls.
70
81
 
71
82
  ## Integration examples
@@ -78,6 +89,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
78
89
 
79
90
  | Property | Type | Default | Description |
80
91
  | --- | --- | --- | --- |
92
+ | `aria` | `CheckboxAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native checkbox to improve accessibility for screen readers. |
81
93
  | `checked` | `boolean` | `false` | Reflects the checkbox's current checked state and allows setting the initial checked value on load. |
82
94
  | `compact` | `boolean` | `false` | Reduces the checkbox size and spacing for a more compact layout. |
83
95
  | `disabled` | `boolean` | `false` | Disables the checkbox, preventing all interaction. The value is not submitted with the form. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputDate name="date" label="Date of birth" aria-label="Accessible name" aria-description="Additional context"></PInputDate>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputDate name="date" label="Date of birth" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputDate>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -46,6 +46,15 @@ A `label` is a caption which informs the user what information a particular form
46
46
 
47
47
  ### ARIA enhancements
48
48
 
49
+ #### External **ARIA** provided by the `aria` property:
50
+
51
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
52
+
53
+ | ARIA | Usage |
54
+ | --- | --- |
55
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
56
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
57
+
49
58
  #### Internal **ARIA** that is managed by the component:
50
59
 
51
60
  | ARIA | Usage |
@@ -64,11 +73,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
64
73
 
65
74
  ### Common do's and don'ts
66
75
 
76
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
67
77
  - **Do** keep a persistent label and use helper/description text when additional context is required.
68
78
  - **Do** use the component state/message API so validation and status changes are announced.
69
79
  - **Do** use clear error wording that helps users recover.
70
80
  - **Don't** rely on placeholder text as the only label.
71
81
  - **Don't** use `hide-label` without an accessible name.
82
+ - **Don't** add native `aria-*` attributes directly on the component host.
72
83
 
73
84
  ## Limitations
74
85
 
@@ -89,6 +100,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
89
100
 
90
101
  | Property | Type | Default | Description |
91
102
  | --- | --- | --- | --- |
103
+ | `aria` | `InputDateAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
92
104
  | `autoComplete` | `string` | `undefined` | Provides the browser with a date autofill hint (e.g. `autocomplete='bday'` for a birthday field). |
93
105
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
94
106
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputEmail name="email" label="Email address" aria-label="Accessible name" aria-description="Additional context"></PInputEmail>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputEmail name="email" label="Email address" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputEmail>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -47,6 +47,15 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
47
47
 
48
48
  ### ARIA enhancements
49
49
 
50
+ #### External **ARIA** provided by the `aria` property:
51
+
52
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
53
+
54
+ | ARIA | Usage |
55
+ | --- | --- |
56
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
57
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
58
+
50
59
  #### Internal **ARIA** that is managed by the component:
51
60
 
52
61
  | ARIA | Usage |
@@ -65,11 +74,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
65
74
 
66
75
  ### Common do's and don'ts
67
76
 
77
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
68
78
  - **Do** keep a persistent label and use helper/description text when additional context is required.
69
79
  - **Do** use the component state/message API so validation and status changes are announced.
70
80
  - **Do** use clear error wording that helps users recover.
71
81
  - **Don't** rely on placeholder text as the only label.
72
82
  - **Don't** use `hide-label` without an accessible name.
83
+ - **Don't** add native `aria-*` attributes directly on the component host.
73
84
 
74
85
  ## Limitations
75
86
 
@@ -90,6 +101,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
90
101
 
91
102
  | Property | Type | Default | Description |
92
103
  | --- | --- | --- | --- |
104
+ | `aria` | `InputEmailAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
93
105
  | `autoComplete` | `string` | `undefined` | Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='email'`). |
94
106
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
95
107
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputMonth name="month" label="Start month" aria-label="Accessible name" aria-description="Additional context"></PInputMonth>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputMonth name="month" label="Start month" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputMonth>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -46,6 +46,15 @@ A `label` is a caption which informs the user what information a particular form
46
46
 
47
47
  ### ARIA enhancements
48
48
 
49
+ #### External **ARIA** provided by the `aria` property:
50
+
51
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
52
+
53
+ | ARIA | Usage |
54
+ | --- | --- |
55
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
56
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
57
+
49
58
  #### Internal **ARIA** that is managed by the component:
50
59
 
51
60
  | ARIA | Usage |
@@ -64,11 +73,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
64
73
 
65
74
  ### Common do's and don'ts
66
75
 
76
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
67
77
  - **Do** keep a persistent label and use helper/description text when additional context is required.
68
78
  - **Do** use the component state/message API so validation and status changes are announced.
69
79
  - **Do** use clear error wording that helps users recover.
70
80
  - **Don't** rely on placeholder text as the only label.
71
81
  - **Don't** use `hide-label` without an accessible name.
82
+ - **Don't** add native `aria-*` attributes directly on the component host.
72
83
 
73
84
  ## Limitations
74
85
 
@@ -89,6 +100,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
89
100
 
90
101
  | Property | Type | Default | Description |
91
102
  | --- | --- | --- | --- |
103
+ | `aria` | `InputMonthAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
92
104
  | `autoComplete` | `string` | `undefined` | Provides the browser with a month/year autofill hint. |
93
105
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
94
106
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputNumber name="quantity" label="Quantity" aria-label="Accessible name" aria-description="Additional context"></PInputNumber>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputNumber name="quantity" label="Quantity" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputNumber>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -48,6 +48,15 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
48
48
 
49
49
  ### ARIA enhancements
50
50
 
51
+ #### External **ARIA** provided by the `aria` property:
52
+
53
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
54
+
55
+ | ARIA | Usage |
56
+ | --- | --- |
57
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
58
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
59
+
51
60
  #### Internal **ARIA** that is managed by the component:
52
61
 
53
62
  | ARIA | Usage |
@@ -70,11 +79,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
70
79
 
71
80
  ### Common do's and don'ts
72
81
 
82
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
73
83
  - **Do** keep a persistent label and spell out unit abbreviations in the `description` prop.
74
84
  - **Do** use the component state/message API so validation and status changes are announced.
75
85
  - **Do** use clear error wording that helps users recover.
76
86
  - **Don't** rely on placeholder text or the `unit` prop alone for accessible context.
77
87
  - **Don't** use `hide-label` without an accessible name.
88
+ - **Don't** add native `aria-*` attributes directly on the component host.
78
89
 
79
90
  ## Limitations
80
91
 
@@ -95,6 +106,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
95
106
 
96
107
  | Property | Type | Default | Description |
97
108
  | --- | --- | --- | --- |
109
+ | `aria` | `InputNumberAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
98
110
  | `autoComplete` | `string` | `undefined` | Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='postal-code'`). |
99
111
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
100
112
  | `controls` | `boolean` | `false` | Shows increment/decrement spin buttons inside the field to adjust the numeric value by clicking. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputPassword name="password" label="Password" aria-label="Accessible name" aria-description="Additional context"></PInputPassword>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputPassword name="password" label="Password" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputPassword>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -46,6 +46,15 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
46
46
 
47
47
  ### ARIA enhancements
48
48
 
49
+ #### External **ARIA** provided by the `aria` property:
50
+
51
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
52
+
53
+ | ARIA | Usage |
54
+ | --- | --- |
55
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
56
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
57
+
49
58
  #### Internal **ARIA** that is managed by the component:
50
59
 
51
60
  | ARIA | Usage |
@@ -65,11 +74,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
65
74
 
66
75
  ### Common do's and don'ts
67
76
 
77
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
68
78
  - **Do** keep a persistent label and use helper/description text when additional context is required.
69
79
  - **Do** use the component state/message API so validation and status changes are announced.
70
80
  - **Do** use clear error wording that helps users recover.
71
81
  - **Don't** rely on placeholder text as the only label.
72
82
  - **Don't** use `hide-label` without an accessible name.
83
+ - **Don't** add native `aria-*` attributes directly on the component host.
73
84
 
74
85
  ## Limitations
75
86
 
@@ -90,6 +101,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
90
101
 
91
102
  | Property | Type | Default | Description |
92
103
  | --- | --- | --- | --- |
104
+ | `aria` | `InputPasswordAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
93
105
  | `autoComplete` | `string` | `undefined` | Provides the browser with a password autofill hint (e.g. `autocomplete='current-password'` or `autocomplete='new-password'`). |
94
106
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
95
107
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -63,6 +63,7 @@ Use the `aria` property to pass supported attributes to the **native `<input>` i
63
63
  | `aria-expanded` | Indicates whether the suggestion popup or related surface is expanded or collapsed. |
64
64
  | `aria-haspopup` | Indicates that activating the input triggers a popup (e.g. `listbox`, `dialog`). |
65
65
  | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
66
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
66
67
 
67
68
  You can pass a JSON object on the element (vanilla JS) or use your framework’s prop binding, for example `aria={{ role: 'combobox', 'aria-expanded': isOpen, 'aria-haspopup': 'listbox' }}`.
68
69
 
@@ -125,7 +126,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
125
126
 
126
127
  | Property | Type | Default | Description |
127
128
  | --- | --- | --- | --- |
128
- | `aria` | `InputSearchAriaAttribute` | `undefined` | Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`). |
129
+ | `aria` | `InputSearchAriaAttribute` | `undefined` | Sets additional ARIA attributes on the search input, useful for combobox patterns (e.g. `role="combobox"`, `aria-expanded`) and extra labelling (`aria-label`, `aria-description`). |
129
130
  | `autoComplete` | `string` | `undefined` | Provides the browser with a data type hint to enable relevant autofill suggestions. |
130
131
  | `clear` | `boolean` | `false` | Shows a clear button (×) inside the field that resets the value to empty when clicked. |
131
132
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputTel name="phone" label="Phone number" aria-label="Accessible name" aria-description="Additional context"></PInputTel>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputTel name="phone" label="Phone number" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputTel>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -47,6 +47,15 @@ The `p-input-tel` component is specifically designed for collecting telephone nu
47
47
 
48
48
  ### ARIA enhancements
49
49
 
50
+ #### External **ARIA** provided by the `aria` property:
51
+
52
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
53
+
54
+ | ARIA | Usage |
55
+ | --- | --- |
56
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
57
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
58
+
50
59
  #### Internal **ARIA** that is managed by the component:
51
60
 
52
61
  | ARIA | Usage |
@@ -65,11 +74,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
65
74
 
66
75
  ### Common do's and don'ts
67
76
 
77
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
68
78
  - **Do** keep a persistent label and use helper/description text when additional context is required.
69
79
  - **Do** use the component state/message API so validation and status changes are announced.
70
80
  - **Do** use clear error wording that helps users recover.
71
81
  - **Don't** rely on placeholder text as the only label.
72
82
  - **Don't** use `hide-label` without an accessible name.
83
+ - **Don't** add native `aria-*` attributes directly on the component host.
73
84
 
74
85
  ## Limitations
75
86
 
@@ -90,6 +101,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
90
101
 
91
102
  | Property | Type | Default | Description |
92
103
  | --- | --- | --- | --- |
104
+ | `aria` | `InputTelAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
93
105
  | `autoComplete` | `string` | `undefined` | Provides the browser with a phone number autofill hint (e.g. `autocomplete='tel'`). |
94
106
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
95
107
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |