@porsche-design-system/components-react 4.10.0 → 4.11.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.
- package/CHANGELOG.md +110 -9
- package/cjs/lib/components/link.wrapper.cjs +3 -3
- package/cjs/lib/components/popover.wrapper.cjs +3 -3
- package/cjs/lib/components/sheet.wrapper.cjs +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +2 -2
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/link.wrapper.mjs +3 -3
- package/esm/lib/components/popover.wrapper.d.ts +10 -0
- package/esm/lib/components/popover.wrapper.mjs +3 -3
- package/esm/lib/components/sheet.wrapper.d.ts +12 -2
- package/esm/lib/components/sheet.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +7 -3
- package/package.json +2 -2
- package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
- package/skills/pds-knowledge-react/SKILL.md +8 -7
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/InteractiveElementsInSummary.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-accordion/examples/StickySummary.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-ai-tag/examples/WithinRadioGroup.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-ai-tag/examples/WithinTable.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-banner/examples/Customization.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-banner/p-banner.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-button-pure/p-button-pure.md +9 -0
- package/skills/pds-knowledge-react/references/components/p-carousel/p-carousel.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-fieldset/p-fieldset.md +7 -9
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/CustomStyling.tsx +3 -3
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-flyout/examples/StickyTop.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-inline-notification/p-inline-notification.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +26 -8
- package/skills/pds-knowledge-react/references/components/p-link/examples/Cover.tsx +20 -0
- package/skills/pds-knowledge-react/references/components/p-link/p-link.md +3 -0
- package/skills/pds-knowledge-react/references/components/p-link-pure/p-link-pure.md +39 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/AlertDialog.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/examples/Scrollable.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-popover/p-popover.md +4 -2
- package/skills/pds-knowledge-react/references/components/p-sheet/examples/Default.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-sheet/p-sheet.md +6 -3
- package/skills/pds-knowledge-react/references/components/p-table/examples/CaptionSlot.tsx +1 -1
- package/skills/pds-knowledge-react/references/components/p-toast/p-toast.md +2 -2
- package/skills/pds-knowledge-react/references/deprecations.md +4 -4
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/dialog.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/feedback/inline.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/{footer.md → footer/extended.md} +9 -8
- package/skills/pds-knowledge-react/references/examples/patterns/footer/simple.md +75 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/booking.md +479 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/contact.md +211 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/personal-details.md +253 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/search-combobox-link-list.md +363 -0
- package/skills/pds-knowledge-react/references/examples/patterns/forms/search-combobox-option-list.md +499 -0
- package/skills/pds-knowledge-react/references/examples/patterns/header/overlay.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/header/stacked.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/feature-tour.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/local-market-switch.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/popover/priority-navigation.md +2 -1
- package/skills/pds-knowledge-react/references/examples/patterns/tile/call-to-action.md +71 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/category.md +60 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/disclosure.md +84 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/equipment-stacked.md +54 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/equipment.md +69 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/image.md +64 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-navigation.md +52 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-selection.md +66 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/model-teaser.md +78 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/product.md +92 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/vehicle-listing.md +107 -0
- package/skills/pds-knowledge-react/references/examples/patterns/tile/video.md +114 -0
- package/skills/pds-knowledge-react/references/examples/templates/admin-panel.md +1 -0
- package/skills/pds-knowledge-react/references/examples/templates/landing-page.md +4 -3
- package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/no-video.md +1166 -0
- package/skills/pds-knowledge-react/references/examples/templates/personalized-mailing/video.md +1252 -0
- package/skills/pds-knowledge-react/references/examples.md +50 -1
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +239 -70
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +424 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +14 -3
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +239 -70
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +411 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/dialog-base.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +15 -4
- package/ssr/esm/public-api.d.ts +8696 -5
- package/skills/pds-knowledge-react/references/components/p-input-search/examples/AriaCombobox.tsx +0 -35
- package/ssr/esm/BaseProps.d.ts +0 -2
- package/ssr/esm/getCachedMinifiedCss.d.ts +0 -23
- package/ssr/esm/hooks.d.ts +0 -15
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +0 -98
- package/ssr/esm/lib/components/ai-tag.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/banner.wrapper.d.ts +0 -86
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +0 -158
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +0 -140
- package/ssr/esm/lib/components/button.wrapper.d.ts +0 -118
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +0 -54
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +0 -166
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +0 -160
- package/ssr/esm/lib/components/crest.wrapper.d.ts +0 -32
- package/ssr/esm/lib/components/display.wrapper.d.ts +0 -57
- package/ssr/esm/lib/components/divider.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +0 -53
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +0 -60
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +0 -50
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +0 -66
- package/ssr/esm/lib/components/flag.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +0 -110
- package/ssr/esm/lib/components/heading.wrapper.d.ts +0 -76
- package/ssr/esm/lib/components/icon.wrapper.d.ts +0 -52
- package/ssr/esm/lib/components/index.d.ts +0 -74
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +0 -102
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +0 -228
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +0 -220
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +0 -210
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +0 -220
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +0 -218
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +0 -200
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +0 -138
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +0 -104
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +0 -126
- package/ssr/esm/lib/components/link.wrapper.d.ts +0 -98
- package/ssr/esm/lib/components/modal.wrapper.d.ts +0 -100
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +0 -68
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +0 -156
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +0 -64
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +0 -160
- package/ssr/esm/lib/components/popover.wrapper.d.ts +0 -58
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +0 -43
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +0 -148
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +0 -62
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +0 -58
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +0 -148
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +0 -25
- package/ssr/esm/lib/components/select.wrapper.d.ts +0 -164
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +0 -80
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +0 -26
- package/ssr/esm/lib/components/switch.wrapper.d.ts +0 -94
- package/ssr/esm/lib/components/table-body.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +0 -17
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +0 -36
- package/ssr/esm/lib/components/table-head-row.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-head.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table-row.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/table.wrapper.d.ts +0 -54
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +0 -70
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +0 -15
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +0 -72
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +0 -34
- package/ssr/esm/lib/components/tag.wrapper.d.ts +0 -46
- package/ssr/esm/lib/components/text-list-item.wrapper.d.ts +0 -5
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +0 -18
- package/ssr/esm/lib/components/text.wrapper.d.ts +0 -78
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +0 -238
- package/ssr/esm/lib/components/toast.wrapper.d.ts +0 -3
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +0 -42
- package/ssr/esm/lib/dsr-components/accordion.d.ts +0 -18
- package/ssr/esm/lib/dsr-components/ai-tag.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/banner.d.ts +0 -20
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/button.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/canvas.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/carousel.d.ts +0 -27
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/crest.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/dialog-base.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/display.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/divider.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/drilldown.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/fc-dismiss-button.d.ts +0 -16
- package/ssr/esm/lib/dsr-components/fieldset.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/filter-status-announcer.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/flag.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/flyout.d.ts +0 -26
- package/ssr/esm/lib/dsr-components/heading.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/icon.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/inline-notification.d.ts +0 -11
- package/ssr/esm/lib/dsr-components/input-base.d.ts +0 -38
- package/ssr/esm/lib/dsr-components/input-date.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-email.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-month.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-number.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-password.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/input-search.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-text.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-time.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-url.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/input-week.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/label.d.ts +0 -24
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/link.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/loading-message.d.ts +0 -8
- package/ssr/esm/lib/dsr-components/modal.d.ts +0 -23
- package/ssr/esm/lib/dsr-components/model-signature.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +0 -40
- package/ssr/esm/lib/dsr-components/no-results-option.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/notification-base.d.ts +0 -14
- package/ssr/esm/lib/dsr-components/optgroup.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/pagination.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/popover.d.ts +0 -27
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +0 -13
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +0 -22
- package/ssr/esm/lib/dsr-components/required.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/scroller.d.ts +0 -15
- package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +0 -21
- package/ssr/esm/lib/dsr-components/select-option.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/select.d.ts +0 -41
- package/ssr/esm/lib/dsr-components/sheet.d.ts +0 -20
- package/ssr/esm/lib/dsr-components/spinner.d.ts +0 -6
- package/ssr/esm/lib/dsr-components/state-message.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/switch.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/table-body.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-cell.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head-row.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-head.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table-row.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/table.d.ts +0 -10
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +0 -17
- package/ssr/esm/lib/dsr-components/tabs-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/tabs.d.ts +0 -12
- package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/tag.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text-list-item.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text-list.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/text.d.ts +0 -9
- package/ssr/esm/lib/dsr-components/textarea.d.ts +0 -19
- package/ssr/esm/lib/dsr-components/toast.d.ts +0 -7
- package/ssr/esm/lib/dsr-components/wordmark.d.ts +0 -6
- package/ssr/esm/lib/types.d.ts +0 -1862
- package/ssr/esm/minifyCss.d.ts +0 -1
- package/ssr/esm/provider.d.ts +0 -10
- package/ssr/esm/splitChildren.d.ts +0 -17
- package/ssr/esm/utils.d.ts +0 -4
|
@@ -112,6 +112,15 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
112
112
|
| --- | --- | --- | --- |
|
|
113
113
|
| _(default)_ | no | — | Default slot for the button label. |
|
|
114
114
|
|
|
115
|
+
### CSS Variables
|
|
116
|
+
|
|
117
|
+
| CSS Variable | Default | Description |
|
|
118
|
+
| --- | --- | --- |
|
|
119
|
+
| `--p-button-pure-px` | `0px` | Horizontal padding of the button. Enlarges the clickable and focusable area. |
|
|
120
|
+
| `--p-button-pure-py` | `0px` | Vertical padding of the button. Enlarges the clickable and focusable area. |
|
|
121
|
+
| `--p-button-pure-hover-inset-x` | `-4px` | Horizontal inset of the hover, active and focus indicator. |
|
|
122
|
+
| `--p-button-pure-hover-inset-y` | `-2px` | Vertical inset of the hover, active and focus indicator. |
|
|
123
|
+
|
|
115
124
|
## Examples
|
|
116
125
|
|
|
117
126
|
| Example | When to use | File |
|
|
@@ -16,7 +16,7 @@ Therefore, the `p-carousel`'s content has to be divided into multiple parts or s
|
|
|
16
16
|
>
|
|
17
17
|
> This component has limited support for dynamic property changes due to the way it is implemented.
|
|
18
18
|
>
|
|
19
|
-
> If you need to use a specific property dynamically, please open a [feature request](https://designsystem.porsche.com/v4.
|
|
19
|
+
> If you need to use a specific property dynamically, please open a [feature request](https://designsystem.porsche.com/v4.11.0-rc.0/help/feature-request/).
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# p-fieldset
|
|
2
2
|
|
|
3
|
-
The `p-fieldset` is a grouping component for wrapping contextual associated form elements. Its visible part is an HTML *legend* element, which can be seen like a headline for describing the meaning of a form block.
|
|
3
|
+
The `p-fieldset` is a grouping component for wrapping contextual associated form elements. Its visible part is an HTML *legend* element, which can be seen like a headline for describing the meaning of a form block.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -21,14 +21,6 @@ The `p-fieldset` is a grouping component for wrapping contextual associated form
|
|
|
21
21
|
- Don't use to hide important information or fields that users need to complete a form.
|
|
22
22
|
- Don't rely solely on field sets to improve the usability of your forms or page layouts.
|
|
23
23
|
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Behavior
|
|
27
|
-
|
|
28
|
-
### Sections including form elements
|
|
29
|
-
|
|
30
|
-
[Form pattern guideline](https://designsystem.porsche.com/v4.10.0/patterns/forms/).
|
|
31
|
-
|
|
32
24
|
## Accessibility support
|
|
33
25
|
|
|
34
26
|
### ARIA enhancements
|
|
@@ -82,6 +74,12 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
82
74
|
| _(default)_ | no | — | Default slot for the main content. |
|
|
83
75
|
| `message` | no | — | Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed. |
|
|
84
76
|
|
|
77
|
+
### CSS Variables
|
|
78
|
+
|
|
79
|
+
| CSS Variable | Default | Description |
|
|
80
|
+
| --- | --- | --- |
|
|
81
|
+
| `--p-fieldset-label-mb` | `16px` | Bottom margin of the fieldset label. It is recommended to apply an existing Porsche Design System spacing token, e.g. the CSS declaration `--p-fieldset-label-mb: var(--p-spacing-static-sm)`, the Tailwind CSS arbitrary property `[--p-fieldset-label-mb:var(--spacing-static-sm)]` or the equivalent SCSS/JS token. |
|
|
82
|
+
|
|
85
83
|
## Examples
|
|
86
84
|
|
|
87
85
|
| Example | When to use | File |
|
package/skills/pds-knowledge-react/references/components/p-flyout/examples/CustomStyling.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { PButton, PButtonPure,
|
|
3
|
+
import { PButton, PButtonPure, PFlyout, PHeading, PText } from '@porsche-design-system/components-react';
|
|
4
4
|
|
|
5
5
|
export const Example = () => {
|
|
6
6
|
const [open, setOpen] = useState(false);
|
|
@@ -22,9 +22,9 @@ export const Example = () => {
|
|
|
22
22
|
<div className="-mt-(--ref-p-flyout-pt) -mx-(--ref-p-flyout-px) h-[300px]">
|
|
23
23
|
<img className="w-full h-full object-cover" src="assets/lights.jpg" alt="Some image description" />
|
|
24
24
|
</div>
|
|
25
|
-
<
|
|
25
|
+
<PHeading className="mt-fluid-md" size="3xl" tag="h2">
|
|
26
26
|
Some heading
|
|
27
|
-
</
|
|
27
|
+
</PHeading>
|
|
28
28
|
<PText className="mt-fluid-sm">
|
|
29
29
|
Some paragraph.
|
|
30
30
|
</PText>
|
|
@@ -19,7 +19,7 @@ export const Example = () => {
|
|
|
19
19
|
</PButton>
|
|
20
20
|
|
|
21
21
|
<PFlyout open={open} aria={{'aria-label': 'Some Heading'}} onDismiss={onDismiss}>
|
|
22
|
-
<PHeading slot="header" size="
|
|
22
|
+
<PHeading slot="header" size="lg" tag="h2">
|
|
23
23
|
Some Heading
|
|
24
24
|
</PHeading>
|
|
25
25
|
<PText>
|
|
@@ -19,7 +19,7 @@ export const Example = () => {
|
|
|
19
19
|
</PButton>
|
|
20
20
|
|
|
21
21
|
<PFlyout open={open} aria={{'aria-label': 'Some Heading'}} onDismiss={onDismiss}>
|
|
22
|
-
<PHeading slot="header" size="
|
|
22
|
+
<PHeading slot="header" size="lg" tag="h2">
|
|
23
23
|
Some Heading
|
|
24
24
|
</PHeading>
|
|
25
25
|
<div className="grid grid-cols-[2fr_1fr] gap-static-md items-start">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The `p-inline-notification` is a controlled component that provides action-based feedback messages (e.g. after performing a task) or to convey informational and/or critical notification like some site related topics.
|
|
4
4
|
|
|
5
|
-
Review the [notification decision tree](https://designsystem.porsche.com/v4.
|
|
5
|
+
Review the [notification decision tree](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
6
6
|
|
|
7
7
|
# Inline Notification
|
|
8
8
|
|
|
@@ -63,7 +63,8 @@ Use the `aria` property to pass supported attributes to the **native `<input>` i
|
|
|
63
63
|
| --- | --- |
|
|
64
64
|
| `role` | Overrides the implicit role when needed (e.g. `combobox` for an autocomplete pattern alongside a separate listbox). |
|
|
65
65
|
| `aria-autocomplete` | Indicates whether and how the component predicts text (`none`, `inline`, `list`, `both`). |
|
|
66
|
-
| `aria-
|
|
66
|
+
| `aria-activedescendant` | Identifies the currently highlighted suggestion. Pass the element itself when it lives outside the shadow tree. |
|
|
67
|
+
| `aria-controls` | Identifies the element(s) whose contents or presence are controlled by the input (e.g. the suggestion list). Pass the element, or a list of elements, when it lives outside the shadow tree. |
|
|
67
68
|
| `aria-expanded` | Indicates whether the suggestion popup or related surface is expanded or collapsed. |
|
|
68
69
|
| `aria-haspopup` | Indicates that activating the input triggers a popup (e.g. `listbox`, `dialog`). |
|
|
69
70
|
| `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
|
|
@@ -92,15 +93,16 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
|
|
|
92
93
|
|
|
93
94
|
### Combobox and suggestion lists
|
|
94
95
|
|
|
95
|
-
For a search field that controls a separate list of
|
|
96
|
+
A working list of choices that writes the selected one back into the field lives in the [search combobox option list example](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/forms/#search-combobox-option-list). When a match is a page of its own, the [search combobox link list example](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/forms/#search-combobox-link-list) keeps the results as links inside a dialog. Both patterns use a dealer search as an integration example. For a search field that controls a separate list of choices and writes the choice back into the field, set the `aria` property so the input exposes the expected semantics supported by this component, for example:
|
|
96
97
|
|
|
97
98
|
- `role: 'combobox'`
|
|
98
|
-
- `aria-controls` referring to the id
|
|
99
|
+
- `aria-controls` referring to the controlled region. A string id does not resolve across the shadow boundary; pass the element (or a list of elements) instead: `aria={{ 'aria-controls': listElement, 'aria-activedescendant': activeElement }}`. That sets `ariaControlsElements` and `ariaActiveDescendantElement` on the native `<input>`
|
|
100
|
+
- `aria-activedescendant` referring to the highlighted suggestion, again as an element when that suggestion is outside the shadow tree
|
|
99
101
|
- `aria-expanded` reflecting open/closed state
|
|
100
102
|
- `aria-haspopup` indicating the presence of a popup (e.g. `listbox`)
|
|
101
103
|
- `aria-autocomplete` as required by your pattern
|
|
102
104
|
|
|
103
|
-
Associate the suggestion list and keyboard interaction in the host application according to the [ARIA combobox pattern](https://www.w3.org/WAI/ARIA/apg/patterns/combobox
|
|
105
|
+
Associate the suggestion list and keyboard interaction in the host application according to the [ARIA combobox pattern](https://www.w3.org/WAI/ARIA/apg/patterns/combobox) you implement there.
|
|
104
106
|
|
|
105
107
|
### Common do's and don'ts
|
|
106
108
|
|
|
@@ -113,24 +115,41 @@ Associate the suggestion list and keyboard interaction in the host application a
|
|
|
113
115
|
|
|
114
116
|
## Limitations
|
|
115
117
|
|
|
116
|
-
|
|
118
|
+
A string id in `aria-controls` or `aria-activedescendant` cannot name an element across the shadow boundary. Pass the element instead (`aria={{ 'aria-controls': listElement, 'aria-activedescendant': activeElement }}`) and the component sets `ariaControlsElements` and `ariaActiveDescendantElement` on the native `<input>`. `aria-owns` is not forwarded.
|
|
117
119
|
|
|
118
120
|
| ARIA | Support |
|
|
119
121
|
| --- | --- |
|
|
120
122
|
| `aria-owns` | 🚫 |
|
|
121
|
-
| `aria-
|
|
123
|
+
| `aria-controls` | String id only inside the same tree. An element, or a list of elements, crosses the shadow boundary. |
|
|
124
|
+
| `aria-activedescendant` | String id only inside the same tree. An element crosses the shadow boundary. |
|
|
122
125
|
|
|
123
126
|
## Integration examples
|
|
124
127
|
|
|
125
128
|
See [accessibility integration examples](./accessibility.md) for paired anti-pattern and recommended implementations.
|
|
126
129
|
|
|
130
|
+
## Notes
|
|
131
|
+
|
|
132
|
+
### Used as a Combobox
|
|
133
|
+
|
|
134
|
+
A search field with a result list composed with [`p-popover`](../p-popover/p-popover.md) is provided as different patterns:
|
|
135
|
+
|
|
136
|
+
### The combobox option list pattern
|
|
137
|
+
|
|
138
|
+
The [search combobox option list](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/forms/#search-combobox-option-list) pattern shows this with a dealer search as an integration example. Typing filters the options, the arrow keys move a highlight, and Enter or the search button writes the highlighted option into the field.
|
|
139
|
+
|
|
140
|
+
### The combobox link list pattern
|
|
141
|
+
|
|
142
|
+
The [search combobox link list](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/forms/#search-combobox-link-list) pattern uses the same field when a match is a page of its own, also demonstrated with a dealer search integration example. The results stay real links inside a dialog, the arrow keys move a highlight, and Enter or a click opens the highlighted page.
|
|
143
|
+
|
|
144
|
+
Both patterns pass the controlled region and the highlighted item as elements on the `aria` prop (`'aria-controls': listOrDialog`, `'aria-activedescendant': activeElement`). A string id would not resolve from inside the input's shadow tree; the element reference sets `ariaControlsElements` and `ariaActiveDescendantElement` on the native `<input>`.
|
|
145
|
+
|
|
127
146
|
## API
|
|
128
147
|
|
|
129
148
|
### Properties
|
|
130
149
|
|
|
131
150
|
| Property | Type | Default | Description |
|
|
132
151
|
| --- | --- | --- | --- |
|
|
133
|
-
| `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`). |
|
|
152
|
+
| `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`). `aria-controls` and `aria-activedescendant` also accept an element reference (or, for `aria-controls`, a list of elements) so the relationship crosses the shadow boundary. |
|
|
134
153
|
| `autoComplete` | `string` | `undefined` | Provides the browser with a data type hint to enable relevant autofill suggestions. |
|
|
135
154
|
| `clear` | `boolean` | `false` | Shows a clear button (×) inside the field that resets the value to empty when clicked. |
|
|
136
155
|
| `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
|
|
@@ -184,4 +203,3 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
184
203
|
| Default | Minimal default configuration. | [./examples/Default.tsx](./examples/Default.tsx) |
|
|
185
204
|
| Form | The `p-input-search` can be integrated into a form in two ways: **controlled** or **uncontrolled**, depending on your needs. | [./examples/Form.tsx](./examples/Form.tsx) |
|
|
186
205
|
| Slots | Use named slots when `label`, `description` or `message` need markup such as a link. | [./examples/Slots.tsx](./examples/Slots.tsx) |
|
|
187
|
-
| Used as a Combobox | You can pass an `aria` property to expose extra semantics on the **native input** (see [accessibility](./p-input-search.md)). | [./examples/AriaCombobox.tsx](./examples/AriaCombobox.tsx) |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PHeading, PLink, PText } from '@porsche-design-system/components-react';
|
|
3
|
+
|
|
4
|
+
export const Example = () => {
|
|
5
|
+
return (
|
|
6
|
+
<>
|
|
7
|
+
<div className="relative isolate flex flex-col items-start gap-static-md max-w-[400px] p-fluid-md rounded-3xl bg-surface [--p-link-cover-radius:var(--radius-3xl)]">
|
|
8
|
+
<PHeading tag="h3" size="md">
|
|
9
|
+
Porsche Approved
|
|
10
|
+
</PHeading>
|
|
11
|
+
<PText>
|
|
12
|
+
Pre-owned vehicles that meet the highest standards, with a warranty of up to 24 months.
|
|
13
|
+
</PText>
|
|
14
|
+
<PLink href="https://porsche.com" variant="primary" cover={true}>
|
|
15
|
+
Discover more
|
|
16
|
+
</PLink>
|
|
17
|
+
</div>
|
|
18
|
+
</>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
@@ -81,6 +81,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
81
81
|
| --- | --- | --- | --- |
|
|
82
82
|
| `aria` | `LinkAriaAttribute` | `undefined` | Sets ARIA attributes on the link element to improve accessibility for screen readers. |
|
|
83
83
|
| `compact` | `boolean`<br>`BreakpointCustomizable<boolean>` | `false` | Reduces the link's padding and height for denser layouts. Supports responsive breakpoint values. |
|
|
84
|
+
| `cover` | `boolean` | `false` | Stretches the clickable area of the link over its nearest positioned ancestor, e.g. a card, which also renders the focus ring around it. Its corners follow `--p-link-cover-radius`. Content within that area is covered, so independent interactive elements have to be placed above it, e.g. via `position: relative; z-index: 2`. |
|
|
84
85
|
| `download` | `string` | `undefined` | Sets the native `download` attribute to trigger a file download. Only applies when `href` is set. |
|
|
85
86
|
| `hideLabel` | `boolean`<br>`BreakpointCustomizable<boolean>` | `false` | Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values. |
|
|
86
87
|
| `href` | `string` | `undefined` | When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text. |
|
|
@@ -106,6 +107,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
106
107
|
| `--p-link-py` | — | Vertical padding of the link. |
|
|
107
108
|
| `--p-link-gap` | — | Gap between the link's content (label and icon). |
|
|
108
109
|
| `--p-link-radius` | — | Radius of the link |
|
|
110
|
+
| `--p-link-cover-radius` | `0` | Corner radius of the clickable area and its focus ring when `cover` is set, e.g. the radius of the card the link covers. |
|
|
109
111
|
|
|
110
112
|
## Examples
|
|
111
113
|
|
|
@@ -114,3 +116,4 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
114
116
|
| Default | Minimal default configuration. | [./examples/Default.tsx](./examples/Default.tsx) |
|
|
115
117
|
| Framework routing (anchor nesting) | To support custom anchor tags (e.g. framework specific routing) you can provide them as a **slotted element** of the component. | [./examples/FrameworkRouting.tsx](./examples/FrameworkRouting.tsx) |
|
|
116
118
|
| Link with specific icon | If an icon needs to be implemented, just set another predefined icon. | [./examples/Icon.tsx](./examples/Icon.tsx) |
|
|
119
|
+
| Cover a card | With `cover`, the clickable area of the link stretches over its nearest positioned ancestor, e.g. a card with `position: relative`, so the whole card navigates without a second, hidden link. | [./examples/Cover.tsx](./examples/Cover.tsx) |
|
|
@@ -76,6 +76,36 @@ If the text of a link does not clearly indicate what the link's target is, add a
|
|
|
76
76
|
|
|
77
77
|
See [accessibility integration examples](./accessibility.md) for paired anti-pattern and recommended implementations.
|
|
78
78
|
|
|
79
|
+
## Notes
|
|
80
|
+
|
|
81
|
+
### Framework specific router with "active state" support
|
|
82
|
+
|
|
83
|
+
Examples how to use the component together with a framework specific router with "active state" support.
|
|
84
|
+
|
|
85
|
+
### Angular
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<p-link-pure [active]="rla.isActive">
|
|
89
|
+
<a routerLink="/path/to/heaven" routerLinkActive #rla="routerLinkActive"></a>
|
|
90
|
+
</p-link-pure>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### React
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
<PLinkPure active={isActive}>
|
|
97
|
+
<Link to="/path/to/heaven">Some label</Link>
|
|
98
|
+
</PLinkPure>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### VueJs
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
<router-link :to="/path/to/heaven" v-slot="{ href, navigate, isActive }">
|
|
105
|
+
<p-link-pure :href="href" @click="navigate" :active="isActive">Some label</p-link-pure>
|
|
106
|
+
</router-link>
|
|
107
|
+
```
|
|
108
|
+
|
|
79
109
|
## API
|
|
80
110
|
|
|
81
111
|
### Properties
|
|
@@ -103,6 +133,15 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
103
133
|
| --- | --- | --- | --- |
|
|
104
134
|
| _(default)_ | no | — | Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the `href` prop, but not in combination with it. |
|
|
105
135
|
|
|
136
|
+
### CSS Variables
|
|
137
|
+
|
|
138
|
+
| CSS Variable | Default | Description |
|
|
139
|
+
| --- | --- | --- |
|
|
140
|
+
| `--p-link-pure-px` | `0px` | Horizontal padding of the link. Enlarges the clickable and focusable area. |
|
|
141
|
+
| `--p-link-pure-py` | `0px` | Vertical padding of the link. Enlarges the clickable and focusable area. |
|
|
142
|
+
| `--p-link-pure-hover-inset-x` | `-4px` | Horizontal inset of the hover, active and focus indicator. |
|
|
143
|
+
| `--p-link-pure-hover-inset-y` | `-2px` | Vertical inset of the hover, active and focus indicator. |
|
|
144
|
+
|
|
106
145
|
## Examples
|
|
107
146
|
|
|
108
147
|
| Example | When to use | File |
|
|
@@ -110,5 +149,4 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
110
149
|
| Default | Minimal default configuration. | [./examples/Default.tsx](./examples/Default.tsx) |
|
|
111
150
|
| Link with specific icon | If another icon needs to be implemented, just replace the default icon with another predefined icon. | [./examples/Icon.tsx](./examples/Icon.tsx) |
|
|
112
151
|
| Framework routing (anchor nesting) | To support custom anchor tags (e.g. framework specific routing) you can provide them as a **slotted element** (recommended) of the component. | [./examples/FrameworkRouting.tsx](./examples/FrameworkRouting.tsx) |
|
|
113
|
-
| Framework specific router with "active state" support | Examples how to use the component together with a framework specific router with "active state" support. | — |
|
|
114
152
|
| Link Pure with custom clickable/focusable area | Sometimes it might be useful to enlarge the clickable/focusable area of a link to fulfill accessibility guidelines. | [./examples/CustomClickableArea.tsx](./examples/CustomClickableArea.tsx) |
|
|
@@ -19,7 +19,7 @@ export const Example = () => {
|
|
|
19
19
|
</PButton>
|
|
20
20
|
|
|
21
21
|
<PModal open={open} aria={{'role': 'alertdialog'}} disableBackdropClick={true} onDismiss={onDismiss}>
|
|
22
|
-
<PHeading slot="header" size="
|
|
22
|
+
<PHeading slot="header" size="lg" tag="h2">
|
|
23
23
|
Some important Heading
|
|
24
24
|
</PHeading>
|
|
25
25
|
<PText>
|
|
@@ -19,7 +19,7 @@ export const Example = () => {
|
|
|
19
19
|
</PButton>
|
|
20
20
|
|
|
21
21
|
<PModal open={open} aria={{'aria-label': 'Some Heading'}} onDismiss={onDismiss}>
|
|
22
|
-
<PHeading slot="header" size="
|
|
22
|
+
<PHeading slot="header" size="lg" tag="h2">
|
|
23
23
|
Some Heading
|
|
24
24
|
</PHeading>
|
|
25
25
|
<PText>
|
|
@@ -19,7 +19,7 @@ export const Example = () => {
|
|
|
19
19
|
</PButton>
|
|
20
20
|
|
|
21
21
|
<PModal open={open} aria={{'aria-label': 'Some Heading'}} onDismiss={onDismiss}>
|
|
22
|
-
<PHeading slot="header" size="
|
|
22
|
+
<PHeading slot="header" size="lg" tag="h2">
|
|
23
23
|
Some Heading
|
|
24
24
|
</PHeading>
|
|
25
25
|
<PText>
|
|
@@ -4,9 +4,9 @@ The `p-popover` component displays additional contextual content in an overlay a
|
|
|
4
4
|
|
|
5
5
|
By default, the Popover works **uncontrolled**: it manages its own visibility and toggles open or closed when its info button (or a slotted trigger) is clicked. It is dismissed on outside click, on `Escape`, or when keyboard focus leaves the Popover.
|
|
6
6
|
|
|
7
|
-
Alternatively, the Popover can be used in a **controlled** mode by setting the `open` prop together with a slotted `button` (the default info button does not toggle in this mode). In this mode you own the open state: the Popover only emits the `dismiss` event when the user requests to close it (via `Escape`, an outside click or when keyboard focus leaves the Popover), and you decide whether to update `open` in response.
|
|
7
|
+
Alternatively, the Popover can be used in a **controlled** mode by setting the `open` prop together with a slotted `button` or another trigger element (the default info button does not toggle in this mode). In this mode you own the open state: the Popover only emits the `dismiss` event when the user requests to close it (via `Escape`, an outside click or when keyboard focus leaves the Popover), and you decide whether to update `open` in response.
|
|
8
8
|
|
|
9
|
-
**Hint:** The `p-popover` utilizes the [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) and gets rendered on the `#top-layer` which enables it to be shown correctly even when used e.g. within a scroll container.
|
|
9
|
+
**Hint:** The `p-popover` utilizes the [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) and gets rendered on the `#top-layer` which enables it to be shown correctly even when used e.g. within a scroll container. Set `arrow={false}` to drop the arrow and the extra offset it adds, which keeps a wide trigger (such as an input search field) flush with the panel.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
@@ -15,6 +15,7 @@ Alternatively, the Popover can be used in a **controlled** mode by setting the `
|
|
|
15
15
|
- Use it to display additional information that is not necessary for task completion or to provide further explanation about a workflow.
|
|
16
16
|
- Position popovers in a way that they do not block related content.
|
|
17
17
|
- Choose a preferred direction in which the popover should open, or it will automatically open in the direction with the most available space.
|
|
18
|
+
- Hide the arrow with `arrow={false}` when the popover is anchored to a wide control, such as a search field, so the panel sits close to the trigger.
|
|
18
19
|
- Use it consistently throughout your site.
|
|
19
20
|
|
|
20
21
|
### Don't:
|
|
@@ -76,6 +77,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
76
77
|
| Property | Type | Default | Description |
|
|
77
78
|
| --- | --- | --- | --- |
|
|
78
79
|
| `aria` | `PopoverAriaAttribute` | `undefined` | Sets ARIA attributes on the popover panel to improve accessibility for screen readers. |
|
|
80
|
+
| `arrow` | `boolean` | `true` | Shows the arrow that points at the trigger. When `false`, the panel keeps a small gap and is not offset by the arrow thickness. |
|
|
79
81
|
| `compact` | `boolean` | `undefined` | Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces. |
|
|
80
82
|
| `description` | `string` | `undefined` | Sets the text content displayed inside the popover panel when it is open, providing contextual help or information. Takes precedence over the default slot when both are provided. |
|
|
81
83
|
| `direction` | `'top'` `'right'` `'bottom'` `'left'` | `'bottom'` | Sets the preferred direction for the popover to open relative to its trigger button. Falls back to the direction with the most available viewport space. |
|
|
@@ -19,7 +19,7 @@ export const Example = () => {
|
|
|
19
19
|
</PButton>
|
|
20
20
|
|
|
21
21
|
<PSheet open={open} aria={{'aria-label': 'Some Heading'}} onDismiss={onDismiss}>
|
|
22
|
-
<PHeading slot="header" size="
|
|
22
|
+
<PHeading slot="header" size="lg" tag="h2">
|
|
23
23
|
Some Heading
|
|
24
24
|
</PHeading>
|
|
25
25
|
<PText>
|
|
@@ -42,8 +42,9 @@ The `Sheet` component uses the native `dialog` element to provide a modal dialog
|
|
|
42
42
|
|
|
43
43
|
| Key / state | Function |
|
|
44
44
|
| --- | --- |
|
|
45
|
-
| `Tab`, `Shift-Tab` | Moves focus to the next (or previous) focusable element inside the dialog. Focus is trapped (browser behavior). |
|
|
46
|
-
| `ESC` | Closes the dialog. |
|
|
45
|
+
| `Tab`, `Shift-Tab` | Moves focus to the next (or previous) focusable element inside the dialog. Focus is trapped (browser behavior). When `swipe-handle` is set and the dismiss button is shown, the handle is removed from this sequence. |
|
|
46
|
+
| `ESC` | Closes the dialog. This stays available when `swipe-handle` is set, including when the dismiss button is hidden. |
|
|
47
|
+
| `Enter`, `Space` | Activates the focused dismiss button or, when the dismiss button is hidden, the swipe handle. |
|
|
47
48
|
| `focus` on trigger element | The focus is returned to the trigger element after closing the dialog (browser behavior). |
|
|
48
49
|
|
|
49
50
|
### ARIA enhancements
|
|
@@ -60,6 +61,7 @@ The `Sheet` component uses the native `dialog` element to provide a modal dialog
|
|
|
60
61
|
| ARIA | Usage |
|
|
61
62
|
| --- | --- |
|
|
62
63
|
| `aria-label="STRING"` | Defines the accessible name if no `aria` property is provided, uses the contents of the header slot and falls back to a fixed name. |
|
|
64
|
+
| `aria-hidden="true"` | Hides the swipe handle from assistive technologies while the dismiss button is shown, which closes the sheet for them. Without the dismiss button, the swipe handle is exposed as a button. |
|
|
63
65
|
|
|
64
66
|
## Development considerations
|
|
65
67
|
|
|
@@ -88,12 +90,13 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
|
|
|
88
90
|
| `disableBackdropClick` | `boolean` | `false` | When enabled, clicking the backdrop will not close the sheet. |
|
|
89
91
|
| `dismissButton` | `boolean` | `true` | Shows a dismiss button in the sheet header so users can manually close it. |
|
|
90
92
|
| `open` _(required)_ | `boolean` | `false` | Controls whether the sheet panel slides in from the bottom and is visible to the user. |
|
|
93
|
+
| `swipeHandle` | `boolean` | `false` | Shows a swipe handle and lets a downward drag close the sheet when its content is scrolled to the top. |
|
|
91
94
|
|
|
92
95
|
### Events
|
|
93
96
|
|
|
94
97
|
| Event | Type | Description |
|
|
95
98
|
| --- | --- | --- |
|
|
96
|
-
| `dismiss` | `CustomEvent<SheetDismissEventDetail>`<br>`{ reason: 'dismiss-button' | 'backdrop' | 'escape' }` | Emitted when the user closes the sheet via the dismiss button, backdrop click, or
|
|
99
|
+
| `dismiss` | `CustomEvent<SheetDismissEventDetail>`<br>`{ reason: 'dismiss-button' | 'backdrop' | 'escape' | 'swipe' }` | Emitted when the user closes the sheet via the dismiss button, swipe handle, backdrop click, Escape key, or a downward swipe. The event detail identifies which was used. |
|
|
97
100
|
| `motionHiddenEnd` | `CustomEvent<SheetMotionHiddenEndEventDetail>`<br>`TransitionEvent` | Emitted after the sheet's close transition has fully completed and the panel is hidden. |
|
|
98
101
|
| `motionVisibleEnd` | `CustomEvent<SheetMotionVisibleEndEventDetail>`<br>`TransitionEvent` | Emitted after the sheet's open transition has fully completed and the panel is visible. |
|
|
99
102
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The `p-toast` component manages both, the queue and display of toast messages. Therefore, you can only have a single instance of this component within your application. Its messages are rendered on the `#top-layer` which ensures the element to be on top of the page, independent of where `p-toast` is placed in the DOM hierarchy (z-index is not relevant anymore and won't have any effect).
|
|
4
4
|
|
|
5
|
-
Review the [notification decision tree](https://designsystem.porsche.com/v4.
|
|
5
|
+
Review the [notification decision tree](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
6
6
|
|
|
7
7
|
Queuing messages on `p-toast` component happens via its `addMessage()` method. For Angular users, we offer the injectable `ToastManager` service; for React and Vue, there is the `useToastManager()` hook (a composable in Vue). All expose the `addMessage()` method, which needs to be called with a parameter that has the following structure:
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ type ToastMessage = {
|
|
|
15
15
|
|
|
16
16
|
The bottom position of the `p-toast` can be adjusted via the `--p-toast-position-bottom` CSS variable.
|
|
17
17
|
|
|
18
|
-
For more information about the Usage of the `p-toast` checkout the [Notification](https://designsystem.porsche.com/v4.
|
|
18
|
+
For more information about the Usage of the `p-toast` checkout the [Notification](https://designsystem.porsche.com/v4.11.0-rc.0/patterns/notifications/introduction/) page.
|
|
19
19
|
|
|
20
20
|
## Accessibility support
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Deprecated API
|
|
2
2
|
|
|
3
|
-
Every deprecated Porsche Design System API in `4.
|
|
3
|
+
Every deprecated Porsche Design System API in `4.11.0-rc.0`, indexed by what is deprecated rather than by which component owns it. Use it to check an existing codebase; use the component and styling references to build with the current API.
|
|
4
4
|
|
|
5
5
|
Deprecated APIs still work in this version. Each will be removed in the next major release, so usage is a compatibility risk rather than a present-day defect — except where a message says an API has no effect anymore, which means the behavior is already gone and only the declaration remains.
|
|
6
6
|
|
|
@@ -675,12 +675,12 @@ Derived from the Tailwind theme exposed by `@porsche-design-system/components-re
|
|
|
675
675
|
|
|
676
676
|
## Tokens
|
|
677
677
|
|
|
678
|
-
No deprecations in `4.
|
|
678
|
+
No deprecations in `4.11.0-rc.0`. Derived from the design-token API exposed by `@porsche-design-system/components-react/tokens`, which was checked and found to carry none — this is a verified result, not an omission.
|
|
679
679
|
|
|
680
680
|
## Icons
|
|
681
681
|
|
|
682
|
-
No deprecations in `4.
|
|
682
|
+
No deprecations in `4.11.0-rc.0`. Derived from the `p-icon` `name` values exposed by `@porsche-design-system/components-react`, which was checked and found to carry none — this is a verified result, not an omission.
|
|
683
683
|
|
|
684
684
|
## Stylesheets
|
|
685
685
|
|
|
686
|
-
No deprecations in `4.
|
|
686
|
+
No deprecations in `4.11.0-rc.0`. Derived from the global CSS exposed by `@porsche-design-system/components-react/index.css`, including `@porsche-design-system/components-react/variables.css` and `@porsche-design-system/components-react/color-scheme.css`, which was checked and found to carry none — this is a verified result, not an omission.
|
|
@@ -4,13 +4,14 @@ A trigger button opens the same rating-and-comment flow inside a dialog, keeping
|
|
|
4
4
|
|
|
5
5
|
- **Type:** Pattern
|
|
6
6
|
- **Components:** [`p-button`](../../../components/p-button/p-button.md), [`p-heading`](../../../components/p-heading/p-heading.md), [`p-modal`](../../../components/p-modal/p-modal.md), [`p-segmented-control`](../../../components/p-segmented-control/p-segmented-control.md), [`p-text`](../../../components/p-text/p-text.md), [`p-textarea`](../../../components/p-textarea/p-textarea.md)
|
|
7
|
+
- **Color schemes:** light and dark – see Conventions
|
|
7
8
|
- **Conventions and stylesheet:** shared by all examples, see [examples.md](../../../examples.md)
|
|
8
9
|
|
|
9
10
|
## Markup
|
|
10
11
|
|
|
11
12
|
```html
|
|
12
13
|
<html lang="en">
|
|
13
|
-
<body>
|
|
14
|
+
<body class="bg-canvas">
|
|
14
15
|
<main id="main" class="grid-template gap-y-fluid-xl py-fluid-lg">
|
|
15
16
|
<section class="col-wide grid gap-fluid-md">
|
|
16
17
|
<p-heading tag="h1" size="xl">Feedback in a dialog</p-heading>
|
|
@@ -4,13 +4,14 @@ The rating sits directly in the page flow, typically at the end of the content,
|
|
|
4
4
|
|
|
5
5
|
- **Type:** Pattern
|
|
6
6
|
- **Components:** [`p-button`](../../../components/p-button/p-button.md), [`p-heading`](../../../components/p-heading/p-heading.md), [`p-segmented-control`](../../../components/p-segmented-control/p-segmented-control.md), [`p-text`](../../../components/p-text/p-text.md), [`p-textarea`](../../../components/p-textarea/p-textarea.md)
|
|
7
|
+
- **Color schemes:** light and dark – see Conventions
|
|
7
8
|
- **Conventions and stylesheet:** shared by all examples, see [examples.md](../../../examples.md)
|
|
8
9
|
|
|
9
10
|
## Markup
|
|
10
11
|
|
|
11
12
|
```html
|
|
12
13
|
<html lang="en">
|
|
13
|
-
<body>
|
|
14
|
+
<body class="bg-canvas">
|
|
14
15
|
<main id="main" class="grid-template gap-y-fluid-xl py-fluid-lg">
|
|
15
16
|
<section class="col-wide grid gap-fluid-md">
|
|
16
17
|
<p-heading tag="h1" size="xl">Inline feedback</p-heading>
|
package/skills/pds-knowledge-react/references/examples/patterns/{footer.md → footer/extended.md}
RENAMED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
# Footer
|
|
1
|
+
# Footer: Extended
|
|
2
2
|
|
|
3
|
-
The footer
|
|
3
|
+
The footer of a site. Besides the legal information – consumption and emission disclaimers, the wordmark, the copyright and the legal links – it offers the delivery country, the site navigation in columns, social media and payment service providers, so users can reach key information from wherever they are on the site. All texts and links are placeholders: the legal texts, the legal links and the pages they lead to, such as the imprint or the privacy policy, differ by market and have to be checked for each one.
|
|
4
4
|
|
|
5
5
|
- **Type:** Pattern
|
|
6
|
-
- **Components:** [`p-flag`](
|
|
7
|
-
- **
|
|
6
|
+
- **Components:** [`p-flag`](../../../components/p-flag/p-flag.md), [`p-heading`](../../../components/p-heading/p-heading.md), [`p-link-pure`](../../../components/p-link-pure/p-link-pure.md), [`p-select`](../../../components/p-select/p-select.md), [`p-text`](../../../components/p-text/p-text.md), [`p-wordmark`](../../../components/p-wordmark/p-wordmark.md)
|
|
7
|
+
- **Color schemes:** light and dark – see Conventions
|
|
8
|
+
- **Conventions and stylesheet:** shared by all examples, see [examples.md](../../../examples.md)
|
|
8
9
|
|
|
9
10
|
## Markup
|
|
10
11
|
|
|
11
12
|
```html
|
|
12
13
|
<html lang="en">
|
|
13
|
-
<body>
|
|
14
|
+
<body class="bg-canvas">
|
|
14
15
|
<main id="main"></main>
|
|
15
16
|
<footer class="grid-template py-fluid-lg bg-surface">
|
|
16
17
|
<form
|
|
@@ -151,7 +152,7 @@ The footer serves as a universal navigation and information hub located at the b
|
|
|
151
152
|
class="col-extended grid sm:grid-cols-[auto_minmax(0,1fr)] items-center gap-x-fluid-lg gap-y-static-lg"
|
|
152
153
|
aria-label="Social media and payment service providers"
|
|
153
154
|
>
|
|
154
|
-
<div class="flex gap-fluid-md">
|
|
155
|
+
<div class="flex flex-wrap gap-fluid-md">
|
|
155
156
|
<p-link-pure class="p-static-sm -m-static-sm" icon="logo-instagram" hide-label="true" size="md">
|
|
156
157
|
<a href="#">Instagram</a>
|
|
157
158
|
</p-link-pure>
|
|
@@ -223,8 +224,8 @@ The footer serves as a universal navigation and information hub located at the b
|
|
|
223
224
|
</article>
|
|
224
225
|
<div class="col-extended grid gap-fluid-md justify-items-center mt-fluid-md">
|
|
225
226
|
<p-wordmark></p-wordmark>
|
|
226
|
-
<p-text size="2xs" color="contrast-medium">© 2026 Porsche Sales and Marketplace, Inc.</p-text>
|
|
227
|
-
<ul class="flex flex-wrap justify-center gap-fluid-md">
|
|
227
|
+
<p-text size="2xs" color="contrast-medium" align="center">© 2026 Porsche Sales and Marketplace, Inc.</p-text>
|
|
228
|
+
<ul class="flex flex-wrap justify-center gap-fluid-md text-center">
|
|
228
229
|
<li>
|
|
229
230
|
<p-link-pure icon="none" size="xs" underline><a href="#">Legal notice</a></p-link-pure>
|
|
230
231
|
</li>
|