@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
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs
CHANGED
|
@@ -18,6 +18,8 @@ class DSRSheet extends react.Component {
|
|
|
18
18
|
host;
|
|
19
19
|
dialog;
|
|
20
20
|
scroller;
|
|
21
|
+
sheet;
|
|
22
|
+
swipeHandleButton;
|
|
21
23
|
hasHeader;
|
|
22
24
|
// Tracks whether the current pointer gesture started inside the panel (not on the backdrop). Lets `onClickDialog`
|
|
23
25
|
// skip dismissal when a selection is dragged out of the panel and released on the backdrop.
|
|
@@ -28,11 +30,20 @@ class DSRSheet extends react.Component {
|
|
|
28
30
|
show: () => utilsEntry.showDialog(this.props.dialog, this.props.scroller),
|
|
29
31
|
hide: () => this.props.dialog?.close(),
|
|
30
32
|
});
|
|
33
|
+
swipeController = utilsEntry.createSheetSwipeController({
|
|
34
|
+
getDialog: () => this.props.dialog,
|
|
35
|
+
getScroller: () => this.props.scroller,
|
|
36
|
+
getSheet: () => this.props.sheet,
|
|
37
|
+
getSwipeHandle: () => this.props.swipeHandleButton,
|
|
38
|
+
isOpen: () => this.props.open,
|
|
39
|
+
hasSwipeHandle: () => !!this.props.swipeHandle,
|
|
40
|
+
onSwipeDismiss: () => this.props.dismissDialog('swipe'),
|
|
41
|
+
});
|
|
31
42
|
render() {
|
|
32
43
|
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
33
44
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
34
45
|
if (this.props.open) ;
|
|
35
|
-
const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getSheetCss, this.props.open, this.props.background, this.props.dismissButton);
|
|
46
|
+
const style = getCachedMinifiedCss.getCachedMinifiedCss(stylesEntry.getSheetCss, this.props.open, this.props.background, this.props.dismissButton, this.props.swipeHandle);
|
|
36
47
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootclonable: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(dialogBase.DialogBase
|
|
37
48
|
// `inert` (not `aria-hidden`) removes the panel from the a11y tree AND prevents focus while closed / during the
|
|
38
49
|
// fade-out. Using `aria-hidden` here triggers a browser warning when a focusable descendant still holds focus
|
|
@@ -43,7 +54,7 @@ class DSRSheet extends react.Component {
|
|
|
43
54
|
// fade-out. Using `aria-hidden` here triggers a browser warning when a focusable descendant still holds focus
|
|
44
55
|
// during the closing transition ("Blocked aria-hidden on an element because its descendant retained focus").
|
|
45
56
|
// `inert` avoids that and mirrors the pattern used by `p-modal` / `p-popover` / `p-drilldown`.
|
|
46
|
-
inert: !this.props.open, dismissable: this.props.dismissButton ?? undefined, containerClass: "sheet", header: hasHeader ? jsxRuntime.jsx("slot", { name: "header" }) : undefined, ariaAttributes: utilsEntry.parseAndGetAriaAttributes({
|
|
57
|
+
inert: !this.props.open, dismissable: this.props.dismissButton ?? undefined, swipeHandle: this.props.swipeHandle ? (jsxRuntime.jsx("button", { className: "swipe-handle", type: "button", tabIndex: this.props.dismissButton ? -1 : undefined, "aria-hidden": this.props.dismissButton ? 'true' : undefined, children: jsxRuntime.jsx("span", { children: "Dismiss sheet" }) })) : undefined, containerClass: "sheet", header: hasHeader ? jsxRuntime.jsx("slot", { name: "header" }) : undefined, ariaAttributes: utilsEntry.parseAndGetAriaAttributes({
|
|
47
58
|
'aria-modal': true,
|
|
48
59
|
...(hasHeader && {
|
|
49
60
|
'aria-label': namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0 && namedSlotChildren.find(({ props: { slot } }) => slot === 'header')?.props.children,
|
|
@@ -51,7 +62,7 @@ class DSRSheet extends react.Component {
|
|
|
51
62
|
...utilsEntry.parseAndGetAriaAttributes(this.props.aria),
|
|
52
63
|
}), children: jsxRuntime.jsx("slot", {}) })] }), this.props.children] }));
|
|
53
64
|
}
|
|
54
|
-
onDialogCancel = (e) => utilsEntry.onCancelDialog(e, () => this.props.dismissDialog('escape'), !this.props.dismissButton);
|
|
65
|
+
onDialogCancel = (e) => utilsEntry.onCancelDialog(e, () => this.props.dismissDialog('escape'), !this.props.dismissButton && !this.props.swipeHandle);
|
|
55
66
|
onDialogBackdropClick = (e) => utilsEntry.onClickDialog(e, () => this.props.dismissDialog('backdrop'), this.props.disableBackdropClick, this.props.isPointerDownInside);
|
|
56
67
|
onDismissButtonClick = () => this.props.dismissDialog('dismiss-button');
|
|
57
68
|
}
|
|
@@ -361,11 +361,11 @@ function _typeof(o) {
|
|
|
361
361
|
}, _typeof(o);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
function toPrimitive(t,
|
|
364
|
+
function toPrimitive(t, e) {
|
|
365
365
|
if ("object" != _typeof(t) || !t) return t;
|
|
366
|
-
var
|
|
367
|
-
if (void 0 !==
|
|
368
|
-
var i =
|
|
366
|
+
var r;
|
|
367
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
368
|
+
var i = r.call(t, e);
|
|
369
369
|
if ("object" != _typeof(i)) return i;
|
|
370
370
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
371
371
|
}
|
|
@@ -3913,11 +3913,11 @@ const cssVarSummaryTopDeprecated = '--p-accordion-position-sticky-top'; // depre
|
|
|
3913
3913
|
/**
|
|
3914
3914
|
* @css-variable {"name": "--p-accordion-px", "description": "Horizontal padding of the accordion.", "defaultValue": "16px"}
|
|
3915
3915
|
*/
|
|
3916
|
-
const cssVarPaddingInline$
|
|
3916
|
+
const cssVarPaddingInline$6 = '--p-accordion-px';
|
|
3917
3917
|
/**
|
|
3918
3918
|
* @css-variable {"name": "--p-accordion-py", "description": "Vertical padding of the accordion.", "defaultValue": "16px"}
|
|
3919
3919
|
*/
|
|
3920
|
-
const cssVarPaddingBlock$
|
|
3920
|
+
const cssVarPaddingBlock$5 = '--p-accordion-py';
|
|
3921
3921
|
const iconMarker = getInlineSVGBackgroundImage(`<path d="m12 15.125h-.001l-.005-.006-6.494-5.476.642-.768 5.858 4.94 5.858-4.94.642.769-6.497 5.477z"/>`);
|
|
3922
3922
|
const backgroundMap$1 = {
|
|
3923
3923
|
canvas: ref(colorCanvas),
|
|
@@ -3998,7 +3998,7 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
3998
3998
|
gridTemplate: `repeat(2, auto) / ${hasSummaryBefore ? 'auto ' : ''}${isIconAlignedStart ? 'auto minmax(0, 1fr)' : 'minmax(0, 1fr) auto'}${hasSummaryAfter ? ' auto ' : ''}`,
|
|
3999
3999
|
columnGap: gap,
|
|
4000
4000
|
alignItems: 'center',
|
|
4001
|
-
padding: `${ref(cssVarPaddingBlock$
|
|
4001
|
+
padding: `${ref(cssVarPaddingBlock$5, background === 'none' ? '0' : paddingBlock)} ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)}`,
|
|
4002
4002
|
background: backgroundMap$1[background],
|
|
4003
4003
|
...(background === 'frosted' && {
|
|
4004
4004
|
WebkitBackdropFilter: ref(blurFrosted),
|
|
@@ -4008,7 +4008,7 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4008
4008
|
...forcedColorsMediaQuery({
|
|
4009
4009
|
outline: '1px solid CanvasText',
|
|
4010
4010
|
outlineOffset: background === 'none' ? '0' : '-1px',
|
|
4011
|
-
padding: `${ref(cssVarPaddingBlock$
|
|
4011
|
+
padding: `${ref(cssVarPaddingBlock$5, paddingBlock)} ${ref(cssVarPaddingInline$6, paddingInline)}`,
|
|
4012
4012
|
}),
|
|
4013
4013
|
'&::details-content': addImportantToEachRule({
|
|
4014
4014
|
display: 'contents', // allows <details> to be used as grid layout
|
|
@@ -4033,8 +4033,8 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4033
4033
|
opacity: 1,
|
|
4034
4034
|
paddingTop,
|
|
4035
4035
|
zIndex: 2, // Ensure details are above summary when using custom padding
|
|
4036
|
-
paddingInline: `${ref(cssVarPaddingInline$
|
|
4037
|
-
marginInline: `calc(-1 * ${ref(cssVarPaddingInline$
|
|
4036
|
+
paddingInline: `${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)}`,
|
|
4037
|
+
marginInline: `calc(-1 * ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)})`,
|
|
4038
4038
|
// as soon as all browsers support calc-size(auto) to be transitionable, we can remove the grid-template-rows rule and animation
|
|
4039
4039
|
gridTemplateRows: '1fr',
|
|
4040
4040
|
visibility: 'inherit', // since `::details-content` and `allow-discrete` transition doesn't work in Safari we need to take care ourselves for visibility state to be a11y compliant
|
|
@@ -4051,8 +4051,8 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4051
4051
|
gridTemplateColumns: 'subgrid',
|
|
4052
4052
|
alignItems: 'center',
|
|
4053
4053
|
cursor: 'pointer',
|
|
4054
|
-
padding: `${ref(cssVarPaddingBlock$
|
|
4055
|
-
margin: `calc(-1 * ${ref(cssVarPaddingBlock$
|
|
4054
|
+
padding: `${ref(cssVarPaddingBlock$5, background === 'none' ? '0' : paddingBlock)} ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)}`,
|
|
4055
|
+
margin: `calc(-1 * ${ref(cssVarPaddingBlock$5, background === 'none' ? '0' : paddingBlock)}) calc(-1 * ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)})`,
|
|
4056
4056
|
...(isSticky &&
|
|
4057
4057
|
(background === 'canvas' || background === 'surface') && {
|
|
4058
4058
|
position: 'sticky',
|
|
@@ -4661,8 +4661,10 @@ const getVisibilityJssStyle = (hideLabel) => {
|
|
|
4661
4661
|
};
|
|
4662
4662
|
const offsetVertical = '-2px';
|
|
4663
4663
|
const offsetHorizontal = '-4px';
|
|
4664
|
-
const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
|
|
4664
|
+
const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor, cssVarPaddingInline, cssVarPaddingBlock, cssVarHoverInsetInline, cssVarHoverInsetBlock) => {
|
|
4665
4665
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4666
|
+
const hoverInsetBlock = ref(cssVarHoverInsetBlock, offsetVertical);
|
|
4667
|
+
const hoverInsetInline = ref(cssVarHoverInsetInline, offsetHorizontal);
|
|
4666
4668
|
return {
|
|
4667
4669
|
'@global': {
|
|
4668
4670
|
':host': {
|
|
@@ -4680,6 +4682,9 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4680
4682
|
},
|
|
4681
4683
|
root: {
|
|
4682
4684
|
all: 'unset',
|
|
4685
|
+
boxSizing: 'border-box',
|
|
4686
|
+
paddingInline: ref(cssVarPaddingInline, '0'),
|
|
4687
|
+
paddingBlock: ref(cssVarPaddingBlock, '0'),
|
|
4683
4688
|
display: 'flex',
|
|
4684
4689
|
width: '100%',
|
|
4685
4690
|
cursor: 'pointer',
|
|
@@ -4703,11 +4708,11 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4703
4708
|
'&::before': {
|
|
4704
4709
|
content: '""',
|
|
4705
4710
|
position: 'absolute', // mobile Safari -> prevent lagging active state
|
|
4706
|
-
top:
|
|
4707
|
-
bottom:
|
|
4711
|
+
top: hoverInsetBlock,
|
|
4712
|
+
bottom: hoverInsetBlock,
|
|
4708
4713
|
...buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
4709
|
-
right: hideLabelValue ?
|
|
4710
|
-
left: hideLabelValue ?
|
|
4714
|
+
right: hideLabelValue ? ref(cssVarHoverInsetInline, hoverInsetBlock) : hoverInsetInline,
|
|
4715
|
+
left: hideLabelValue ? ref(cssVarHoverInsetInline, hoverInsetBlock) : hoverInsetInline,
|
|
4711
4716
|
borderRadius: hideLabelValue ? ref(radiusFull) : ref(radiusLg),
|
|
4712
4717
|
})),
|
|
4713
4718
|
transition: getTransition('background-color'),
|
|
@@ -4715,6 +4720,10 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4715
4720
|
WebkitBackdropFilter: ref(blurFrosted),
|
|
4716
4721
|
backdropFilter: ref(blurFrosted),
|
|
4717
4722
|
backgroundColor: ref(colorFrosted),
|
|
4723
|
+
...forcedColorsMediaQuery({
|
|
4724
|
+
outline: '2px solid Highlight',
|
|
4725
|
+
outlineOffset: '-2px',
|
|
4726
|
+
}),
|
|
4718
4727
|
}),
|
|
4719
4728
|
},
|
|
4720
4729
|
...(!isDisabledOrLoading &&
|
|
@@ -4754,9 +4763,25 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4754
4763
|
};
|
|
4755
4764
|
};
|
|
4756
4765
|
|
|
4766
|
+
/**
|
|
4767
|
+
* @css-variable {"name": "--p-button-pure-px", "description": "Horizontal padding of the button. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
4768
|
+
*/
|
|
4769
|
+
const cssVarPaddingInline$5 = '--p-button-pure-px';
|
|
4770
|
+
/**
|
|
4771
|
+
* @css-variable {"name": "--p-button-pure-py", "description": "Vertical padding of the button. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
4772
|
+
*/
|
|
4773
|
+
const cssVarPaddingBlock$4 = '--p-button-pure-py';
|
|
4774
|
+
/**
|
|
4775
|
+
* @css-variable {"name": "--p-button-pure-hover-inset-x", "description": "Horizontal inset of the hover, active and focus indicator.", "defaultValue": "-4px"}
|
|
4776
|
+
*/
|
|
4777
|
+
const cssVarHoverInsetInline$1 = '--p-button-pure-hover-inset-x';
|
|
4778
|
+
/**
|
|
4779
|
+
* @css-variable {"name": "--p-button-pure-hover-inset-y", "description": "Vertical inset of the hover, active and focus indicator.", "defaultValue": "-2px"}
|
|
4780
|
+
*/
|
|
4781
|
+
const cssVarHoverInsetBlock$1 = '--p-button-pure-hover-inset-y';
|
|
4757
4782
|
const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline) => {
|
|
4758
4783
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4759
|
-
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, false), {
|
|
4784
|
+
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, false, cssVarPaddingInline$5, cssVarPaddingBlock$4, cssVarHoverInsetInline$1, cssVarHoverInsetBlock$1), {
|
|
4760
4785
|
root: {
|
|
4761
4786
|
...(isDisabled && {
|
|
4762
4787
|
color: ref(colorContrastLow),
|
|
@@ -4924,6 +4949,24 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4924
4949
|
});
|
|
4925
4950
|
};
|
|
4926
4951
|
|
|
4952
|
+
/**
|
|
4953
|
+
* Lets the anchor cover its nearest positioned ancestor. Its radius is set via the given CSS variable, e.g. to the one of
|
|
4954
|
+
* the card it covers.
|
|
4955
|
+
*/
|
|
4956
|
+
const getCoverStyles = (cssVarCoverRadius) => ({
|
|
4957
|
+
content: '""',
|
|
4958
|
+
position: 'absolute',
|
|
4959
|
+
inset: 0,
|
|
4960
|
+
zIndex: 1,
|
|
4961
|
+
borderRadius: ref(cssVarCoverRadius, '0'),
|
|
4962
|
+
});
|
|
4963
|
+
/**
|
|
4964
|
+
* Same as `getHiddenTextJssStyle()`, but without positioning, since the label would otherwise be the containing block
|
|
4965
|
+
* of the covering area of a slotted anchor.
|
|
4966
|
+
*/
|
|
4967
|
+
const getCoverHiddenTextJssStyle = (isHidden) => isHidden
|
|
4968
|
+
? { ...getHiddenTextJssStyle(true), position: 'static', clip: 'auto', color: 'transparent' }
|
|
4969
|
+
: getHiddenTextJssStyle(false, { color: 'inherit' });
|
|
4927
4970
|
const getVariantColors = (variant, cssVariableBackground, cssVariableForeground) => {
|
|
4928
4971
|
const colors = {
|
|
4929
4972
|
primary: {
|
|
@@ -4947,13 +4990,17 @@ const getVariantColors = (variant, cssVariableBackground, cssVariableForeground)
|
|
|
4947
4990
|
};
|
|
4948
4991
|
return colors[variant];
|
|
4949
4992
|
};
|
|
4950
|
-
const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, isCompact, cssVariableInternalScaling, cssVariableBackground, cssVariableForeground, cssVarPaddingInline, cssVarPaddingBlock, cssVarGap, cssVarRadius) => {
|
|
4993
|
+
const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, isCompact, cssVariableInternalScaling, cssVariableBackground, cssVariableForeground, cssVarPaddingInline, cssVarPaddingBlock, cssVarGap, cssVarRadius, isCover = false, cssVarCoverRadius = '') => {
|
|
4951
4994
|
const { textColor, textColorHover, backgroundColor, backgroundColorHover } = getVariantColors(variant, cssVariableBackground, cssVariableForeground);
|
|
4952
4995
|
const hasIcon = hasVisibleIcon(icon, iconSource) || isTruthyForAnyBreakpoint(hideLabel);
|
|
4953
4996
|
const paddingBlock = `calc(28px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 6px)`;
|
|
4954
4997
|
const paddingInline = `calc(33.6px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 16px)`;
|
|
4955
4998
|
const gap = `calc(11.2px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 4px)`;
|
|
4956
4999
|
const iconMarginInlineStart = `calc(-1 * (11.2px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 4px))`;
|
|
5000
|
+
const spacingStyles = buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
5001
|
+
padding: `${ref(cssVarPaddingBlock, paddingBlock)} ${ref(cssVarPaddingInline, hideLabelValue ? paddingBlock : paddingInline)}`,
|
|
5002
|
+
gap: ref(cssVarGap, hideLabelValue ? 0 : gap),
|
|
5003
|
+
}));
|
|
4957
5004
|
return {
|
|
4958
5005
|
'@global': {
|
|
4959
5006
|
':host': {
|
|
@@ -4973,24 +5020,29 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4973
5020
|
},
|
|
4974
5021
|
root: {
|
|
4975
5022
|
all: 'unset',
|
|
4976
|
-
display: 'flex',
|
|
4977
|
-
justifyContent: 'center',
|
|
5023
|
+
display: isCover ? 'grid' : 'flex',
|
|
5024
|
+
...(!isCover && { justifyContent: 'center' }),
|
|
4978
5025
|
width: '100%', // Allows for setting a width on the host
|
|
4979
5026
|
minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
|
|
4980
5027
|
boxSizing: 'border-box',
|
|
4981
|
-
|
|
4982
|
-
|
|
5028
|
+
...(!isCover && {
|
|
5029
|
+
WebkitBackdropFilter: ref(blurFrosted),
|
|
5030
|
+
backdropFilter: ref(blurFrosted),
|
|
5031
|
+
}),
|
|
4983
5032
|
font: `${ref(fontWeightNormal$1)} ${ref(typescaleSm$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
|
|
4984
5033
|
borderRadius: 'inherit',
|
|
4985
|
-
|
|
4986
|
-
|
|
5034
|
+
// creates new stacking context (for slotted anchor + focus), omitted when covering, since it would be the
|
|
5035
|
+
// containing block of the covering area
|
|
5036
|
+
...(!isCover && {
|
|
5037
|
+
transform: 'translate3d(0,0,0)',
|
|
5038
|
+
backgroundColor,
|
|
5039
|
+
}),
|
|
4987
5040
|
color: textColor,
|
|
4988
5041
|
cursor: 'pointer',
|
|
4989
|
-
transition:
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
})),
|
|
5042
|
+
transition: isCover
|
|
5043
|
+
? getTransition('color')
|
|
5044
|
+
: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`,
|
|
5045
|
+
...(!isCover && spacingStyles),
|
|
4994
5046
|
...forcedColorsMediaQuery({
|
|
4995
5047
|
forcedColorAdjust: 'none',
|
|
4996
5048
|
boxShadow: 'inset 0 0 0 2px LinkText',
|
|
@@ -5008,18 +5060,56 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
5008
5060
|
}),
|
|
5009
5061
|
},
|
|
5010
5062
|
}),
|
|
5011
|
-
...(!hasSlottedAnchor &&
|
|
5012
|
-
|
|
5013
|
-
|
|
5063
|
+
...(!hasSlottedAnchor &&
|
|
5064
|
+
(isCover
|
|
5065
|
+
? {
|
|
5066
|
+
// the anchor covers its nearest positioned ancestor, which also renders the focus ring around it
|
|
5067
|
+
'&::before': getCoverStyles(cssVarCoverRadius),
|
|
5068
|
+
'&:focus-visible': { outline: 'none' },
|
|
5069
|
+
'&:focus-visible::before': getFocusBaseStyles(),
|
|
5070
|
+
}
|
|
5071
|
+
: {
|
|
5072
|
+
'&:focus-visible': getFocusBaseStyles(),
|
|
5073
|
+
})),
|
|
5014
5074
|
...(!isDisabledOrLoading &&
|
|
5015
5075
|
hoverMediaQuery({
|
|
5016
5076
|
'&:hover': {
|
|
5017
5077
|
color: textColorHover,
|
|
5018
|
-
backgroundColor: backgroundColorHover,
|
|
5078
|
+
...(!isCover && { backgroundColor: backgroundColorHover }),
|
|
5019
5079
|
},
|
|
5080
|
+
...(isCover && {
|
|
5081
|
+
'&:hover .backdrop': {
|
|
5082
|
+
backgroundColor: backgroundColorHover,
|
|
5083
|
+
},
|
|
5084
|
+
}),
|
|
5020
5085
|
})),
|
|
5021
5086
|
},
|
|
5022
|
-
|
|
5087
|
+
...(isCover && {
|
|
5088
|
+
// without `transform` and `backdrop-filter` on the root, it is no containing block of the covering area, so
|
|
5089
|
+
// background and content are stacked in the same grid cell instead of being positioned
|
|
5090
|
+
backdrop: {
|
|
5091
|
+
gridArea: '1/1',
|
|
5092
|
+
borderRadius: 'inherit',
|
|
5093
|
+
WebkitBackdropFilter: ref(blurFrosted),
|
|
5094
|
+
backdropFilter: ref(blurFrosted),
|
|
5095
|
+
backgroundColor,
|
|
5096
|
+
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
5097
|
+
...forcedColorsMediaQuery({
|
|
5098
|
+
boxShadow: 'inset 0 0 0 2px LinkText',
|
|
5099
|
+
...addImportantToEachRule({
|
|
5100
|
+
background: 'Canvas',
|
|
5101
|
+
}),
|
|
5102
|
+
}),
|
|
5103
|
+
},
|
|
5104
|
+
content: {
|
|
5105
|
+
gridArea: '1/1',
|
|
5106
|
+
zIndex: 1, // above the backdrop, since `backdrop-filter` creates a stacking context
|
|
5107
|
+
display: 'flex',
|
|
5108
|
+
justifyContent: 'center',
|
|
5109
|
+
...spacingStyles,
|
|
5110
|
+
},
|
|
5111
|
+
}),
|
|
5112
|
+
label: buildResponsiveBooleanStyles(hideLabel, isCover ? getCoverHiddenTextJssStyle : getHiddenTextJssStyle),
|
|
5023
5113
|
...(hasIcon && {
|
|
5024
5114
|
icon: {
|
|
5025
5115
|
font: `${ref(typescaleSm$1)} ${ref(fontPorscheNext$1)}`, // needed for correct width/height definition based on ex-unit
|
|
@@ -5049,11 +5139,11 @@ const cssVarForeground$1 = '--p-button-fg';
|
|
|
5049
5139
|
/**
|
|
5050
5140
|
* @css-variable {"name": "--p-button-px", "description": "Horizontal padding of the button.", "defaultValue": ""}
|
|
5051
5141
|
*/
|
|
5052
|
-
const cssVarPaddingInline$
|
|
5142
|
+
const cssVarPaddingInline$4 = '--p-button-px';
|
|
5053
5143
|
/**
|
|
5054
5144
|
* @css-variable {"name": "--p-button-py", "description": "Vertical padding of the button.", "defaultValue": ""}
|
|
5055
5145
|
*/
|
|
5056
|
-
const cssVarPaddingBlock$
|
|
5146
|
+
const cssVarPaddingBlock$3 = '--p-button-py';
|
|
5057
5147
|
/**
|
|
5058
5148
|
* @css-variable {"name": "--p-button-gap", "description": "Gap between the button's content (label and icon).", "defaultValue": ""}
|
|
5059
5149
|
*/
|
|
@@ -5064,7 +5154,7 @@ const cssVarGap$2 = '--p-button-gap';
|
|
|
5064
5154
|
const cssVarRadius$2 = '--p-button-radius';
|
|
5065
5155
|
const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, isLoading, isCompact) => {
|
|
5066
5156
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
5067
|
-
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling, cssVarBackground$1, cssVarForeground$1, cssVarPaddingInline$
|
|
5157
|
+
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling, cssVarBackground$1, cssVarForeground$1, cssVarPaddingInline$4, cssVarPaddingBlock$3, cssVarGap$2, cssVarRadius$2), {
|
|
5068
5158
|
root: {
|
|
5069
5159
|
...(disabledOrLoading && {
|
|
5070
5160
|
cursor: 'not-allowed',
|
|
@@ -5446,7 +5536,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
5446
5536
|
/**
|
|
5447
5537
|
* @css-variable {"name": "--p-carousel-px", "description": "Defines the logical inline start and end padding of the carousel, the extra space is used to show parts of the next/previous slide. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
|
|
5448
5538
|
*/
|
|
5449
|
-
const cssVarPaddingInline$
|
|
5539
|
+
const cssVarPaddingInline$3 = '--p-carousel-px';
|
|
5450
5540
|
/**
|
|
5451
5541
|
* @css-variable {"name": "--p-carousel-ps", "description": "Defines the logical inline start padding of the carousel, the extra space is used to show parts of the next/previous slide. Needs to be used in combination with `--p-carousel-px` or `--p-carousel-pe`. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
|
|
5452
5542
|
*/
|
|
@@ -5565,17 +5655,17 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5565
5655
|
},
|
|
5566
5656
|
header: {
|
|
5567
5657
|
display: 'grid',
|
|
5568
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5569
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5658
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5659
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5570
5660
|
[mediaQueryS]: {
|
|
5571
5661
|
gridTemplateColumns: 'minmax(0px,1fr) auto',
|
|
5572
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5573
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5662
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5663
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5574
5664
|
...(hasNavigation && { columnGap: ref(spacingStaticMd) }),
|
|
5575
5665
|
},
|
|
5576
5666
|
[mediaQueryXXL]: {
|
|
5577
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5578
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5667
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5668
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5579
5669
|
},
|
|
5580
5670
|
},
|
|
5581
5671
|
nav: {
|
|
@@ -5613,15 +5703,15 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5613
5703
|
// !important is necessary to override inline styles set by splide library
|
|
5614
5704
|
...addImportantToEachRule({
|
|
5615
5705
|
paddingBlock: '0px',
|
|
5616
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5617
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5706
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5707
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5618
5708
|
[mediaQueryS]: {
|
|
5619
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5620
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5709
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5710
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5621
5711
|
},
|
|
5622
5712
|
[mediaQueryXXL]: {
|
|
5623
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5624
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5713
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5714
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5625
5715
|
},
|
|
5626
5716
|
}),
|
|
5627
5717
|
'&--draggable': {
|
|
@@ -5948,6 +6038,11 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
|
|
|
5948
6038
|
'&:empty': {
|
|
5949
6039
|
display: 'none', // prevents outer spacing caused by parents grid gap, in case no label value is defined (although it has to be set to be a11y compliant)
|
|
5950
6040
|
},
|
|
6041
|
+
// only on <label>, not description spans or non-clickable headings (e.g. radio-group / segmented-control use tag="div")
|
|
6042
|
+
// prevents Chromium from moving selection to the label on repeated clicks, which hides the input caret (#3891)
|
|
6043
|
+
'&:is(label)': {
|
|
6044
|
+
userSelect: 'none',
|
|
6045
|
+
},
|
|
5951
6046
|
// styling for the description
|
|
5952
6047
|
'&:is(span)': {
|
|
5953
6048
|
cursor: 'unset',
|
|
@@ -7236,6 +7331,10 @@ const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
|
7236
7331
|
});
|
|
7237
7332
|
};
|
|
7238
7333
|
|
|
7334
|
+
/**
|
|
7335
|
+
* @css-variable {"name": "--p-fieldset-label-mb", "description": "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.", "defaultValue": "16px"}
|
|
7336
|
+
*/
|
|
7337
|
+
const cssVarLabelMarginBottom = '--p-fieldset-label-mb';
|
|
7239
7338
|
const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
7240
7339
|
return getCss({
|
|
7241
7340
|
'@global': {
|
|
@@ -7253,7 +7352,7 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
7253
7352
|
...(hasLabel && {
|
|
7254
7353
|
legend: {
|
|
7255
7354
|
all: 'unset',
|
|
7256
|
-
marginBottom: ref(spacingStaticMd),
|
|
7355
|
+
marginBottom: ref(cssVarLabelMarginBottom, ref(spacingStaticMd)),
|
|
7257
7356
|
color: ref(colorPrimary),
|
|
7258
7357
|
font: `${labelSize === 'small' ? ref(fontWeightSemibold) : ref(fontWeightNormal$1)} ${labelSize === 'small' ? ref(typescaleSm$1) : ref(typescaleMd)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
|
|
7259
7358
|
},
|
|
@@ -7820,8 +7919,24 @@ const getComponentCss$H = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
7820
7919
|
});
|
|
7821
7920
|
};
|
|
7822
7921
|
|
|
7922
|
+
/**
|
|
7923
|
+
* @css-variable {"name": "--p-link-pure-px", "description": "Horizontal padding of the link. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
7924
|
+
*/
|
|
7925
|
+
const cssVarPaddingInline$2 = '--p-link-pure-px';
|
|
7926
|
+
/**
|
|
7927
|
+
* @css-variable {"name": "--p-link-pure-py", "description": "Vertical padding of the link. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
7928
|
+
*/
|
|
7929
|
+
const cssVarPaddingBlock$2 = '--p-link-pure-py';
|
|
7930
|
+
/**
|
|
7931
|
+
* @css-variable {"name": "--p-link-pure-hover-inset-x", "description": "Horizontal inset of the hover, active and focus indicator.", "defaultValue": "-4px"}
|
|
7932
|
+
*/
|
|
7933
|
+
const cssVarHoverInsetInline = '--p-link-pure-hover-inset-x';
|
|
7934
|
+
/**
|
|
7935
|
+
* @css-variable {"name": "--p-link-pure-hover-inset-y", "description": "Vertical inset of the hover, active and focus indicator.", "defaultValue": "-2px"}
|
|
7936
|
+
*/
|
|
7937
|
+
const cssVarHoverInsetBlock = '--p-link-pure-hover-inset-y';
|
|
7823
7938
|
const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
|
|
7824
|
-
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor), hasSlottedAnchor && {
|
|
7939
|
+
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor, cssVarPaddingInline$2, cssVarPaddingBlock$2, cssVarHoverInsetInline, cssVarHoverInsetBlock), hasSlottedAnchor && {
|
|
7825
7940
|
'@global': addImportantToEachRule({
|
|
7826
7941
|
'::slotted': {
|
|
7827
7942
|
'&(a)': {
|
|
@@ -7830,9 +7945,11 @@ const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideL
|
|
|
7830
7945
|
'&(a)::before': {
|
|
7831
7946
|
content: '""',
|
|
7832
7947
|
position: 'fixed',
|
|
7833
|
-
insetBlock: offsetVertical,
|
|
7948
|
+
insetBlock: ref(cssVarHoverInsetBlock, offsetVertical),
|
|
7834
7949
|
...buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
7835
|
-
insetInline: hideLabelValue
|
|
7950
|
+
insetInline: hideLabelValue
|
|
7951
|
+
? ref(cssVarHoverInsetInline, ref(cssVarHoverInsetBlock, offsetVertical))
|
|
7952
|
+
: ref(cssVarHoverInsetInline, offsetHorizontal),
|
|
7836
7953
|
borderRadius: hideLabelValue ? ref(radiusFull) : ref(radiusLg),
|
|
7837
7954
|
})),
|
|
7838
7955
|
},
|
|
@@ -8153,8 +8270,12 @@ const cssVarGap$1 = '--p-link-gap';
|
|
|
8153
8270
|
* @css-variable {"name": "--p-link-radius", "description": "Radius of the link", "defaultValue": ""}
|
|
8154
8271
|
*/
|
|
8155
8272
|
const cssVarRadius$1 = '--p-link-radius';
|
|
8156
|
-
|
|
8157
|
-
|
|
8273
|
+
/**
|
|
8274
|
+
* @css-variable {"name": "--p-link-cover-radius", "description": "Corner radius of the clickable area and its focus ring when `cover` is set, e.g. the radius of the card the link covers.", "defaultValue": "0"}
|
|
8275
|
+
*/
|
|
8276
|
+
const cssVarCoverRadius = '--p-link-cover-radius';
|
|
8277
|
+
const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, isCompact, isCover = false) => {
|
|
8278
|
+
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, isCompact, cssVariableInternalLinkScaling, cssVarBackground, cssVarForeground, cssVarPaddingInline$1, cssVarPaddingBlock$1, cssVarGap$1, cssVarRadius$1, isCover, cssVarCoverRadius), {
|
|
8158
8279
|
label: {
|
|
8159
8280
|
clip: addImportantToRule('unset'), // to overrule breakpoint customizable hide-label style
|
|
8160
8281
|
},
|
|
@@ -8164,18 +8285,20 @@ const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
8164
8285
|
'&(a)': {
|
|
8165
8286
|
all: 'unset',
|
|
8166
8287
|
},
|
|
8167
|
-
'&(a)::before':
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8288
|
+
'&(a)::before': isCover
|
|
8289
|
+
? getCoverStyles(cssVarCoverRadius)
|
|
8290
|
+
: {
|
|
8291
|
+
content: '""',
|
|
8292
|
+
position: 'fixed',
|
|
8293
|
+
inset: 0,
|
|
8294
|
+
...mergeDeep(buildResponsiveBooleanStyles(isCompact, (compactValue) => ({
|
|
8295
|
+
borderRadius: ref(cssVarRadius$1, compactValue ? ref(radiusLg) : ref(radiusXl)),
|
|
8296
|
+
})), buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
8297
|
+
...(hideLabelValue && {
|
|
8298
|
+
borderRadius: ref(cssVarRadius$1, ref(radiusFull)),
|
|
8299
|
+
}),
|
|
8300
|
+
}))),
|
|
8301
|
+
},
|
|
8179
8302
|
'&(a:focus-visible)::before': getFocusBaseStyles(),
|
|
8180
8303
|
},
|
|
8181
8304
|
}),
|
|
@@ -9448,7 +9571,7 @@ const cssVarRefPaddingBottom = '--ref-p-sheet-pb';
|
|
|
9448
9571
|
* @css-variable {"name": "--ref-p-sheet-px", "description": "Exposes the internally used padding-inline of the Sheet as read only CSS variable. When slotting e.g. a media container, this variable can be used to stretch the element to the full horizontal size of the Sheet."}
|
|
9449
9572
|
*/
|
|
9450
9573
|
const cssVarRefPaddingInline = '--ref-p-sheet-px';
|
|
9451
|
-
const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
9574
|
+
const getComponentCss$n = (isOpen, background, hasDismissButton, hasSwipeHandle = false) => {
|
|
9452
9575
|
return getCss({
|
|
9453
9576
|
'@global': {
|
|
9454
9577
|
':host': {
|
|
@@ -9489,6 +9612,52 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
|
9489
9612
|
...(hasDismissButton && {
|
|
9490
9613
|
dismiss: getDialogDismissButtonJssStyle(background),
|
|
9491
9614
|
}),
|
|
9615
|
+
...(hasSwipeHandle && {
|
|
9616
|
+
'swipe-handle': {
|
|
9617
|
+
all: 'unset',
|
|
9618
|
+
boxSizing: 'border-box',
|
|
9619
|
+
position: 'absolute',
|
|
9620
|
+
top: 0,
|
|
9621
|
+
insetInline: 0,
|
|
9622
|
+
marginInline: 'auto',
|
|
9623
|
+
width: '48px',
|
|
9624
|
+
height: '24px',
|
|
9625
|
+
display: 'grid',
|
|
9626
|
+
placeItems: 'center',
|
|
9627
|
+
cursor: 'grab',
|
|
9628
|
+
touchAction: 'none', // hands touch drags on the handle to Pointer Events instead of native panning
|
|
9629
|
+
'&:active': {
|
|
9630
|
+
cursor: 'grabbing',
|
|
9631
|
+
},
|
|
9632
|
+
zIndex: 5,
|
|
9633
|
+
borderRadius: ref(radiusSm),
|
|
9634
|
+
'&::before': {
|
|
9635
|
+
content: '""',
|
|
9636
|
+
width: '36px',
|
|
9637
|
+
height: '5px',
|
|
9638
|
+
borderRadius: ref(radiusFull),
|
|
9639
|
+
background: ref(colorContrastMedium),
|
|
9640
|
+
transition: getTransition('background-color'),
|
|
9641
|
+
},
|
|
9642
|
+
...hoverMediaQuery({
|
|
9643
|
+
'&:hover::before': {
|
|
9644
|
+
background: ref(colorContrastHigh),
|
|
9645
|
+
...forcedColorsMediaQuery({
|
|
9646
|
+
background: 'ButtonText',
|
|
9647
|
+
}),
|
|
9648
|
+
},
|
|
9649
|
+
}),
|
|
9650
|
+
'&:focus-visible': getFocusBaseStyles(-2),
|
|
9651
|
+
...forcedColorsMediaQuery({
|
|
9652
|
+
forcedColorAdjust: 'none',
|
|
9653
|
+
'&::before': {
|
|
9654
|
+
background: 'ButtonText',
|
|
9655
|
+
outline: '1px solid ButtonBorder',
|
|
9656
|
+
},
|
|
9657
|
+
}),
|
|
9658
|
+
'& span': getHiddenTextJssStyle(),
|
|
9659
|
+
},
|
|
9660
|
+
}),
|
|
9492
9661
|
});
|
|
9493
9662
|
};
|
|
9494
9663
|
|