@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
|
@@ -363,11 +363,11 @@ function _typeof(o) {
|
|
|
363
363
|
}, _typeof(o);
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
function toPrimitive(t,
|
|
366
|
+
function toPrimitive(t, e) {
|
|
367
367
|
if ("object" != _typeof(t) || !t) return t;
|
|
368
|
-
var
|
|
369
|
-
if (void 0 !==
|
|
370
|
-
var i =
|
|
368
|
+
var r;
|
|
369
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
370
|
+
var i = r.call(t, e);
|
|
371
371
|
if ("object" != _typeof(i)) return i;
|
|
372
372
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
373
373
|
}
|
|
@@ -3915,11 +3915,11 @@ const cssVarSummaryTopDeprecated = '--p-accordion-position-sticky-top'; // depre
|
|
|
3915
3915
|
/**
|
|
3916
3916
|
* @css-variable {"name": "--p-accordion-px", "description": "Horizontal padding of the accordion.", "defaultValue": "16px"}
|
|
3917
3917
|
*/
|
|
3918
|
-
const cssVarPaddingInline$
|
|
3918
|
+
const cssVarPaddingInline$6 = '--p-accordion-px';
|
|
3919
3919
|
/**
|
|
3920
3920
|
* @css-variable {"name": "--p-accordion-py", "description": "Vertical padding of the accordion.", "defaultValue": "16px"}
|
|
3921
3921
|
*/
|
|
3922
|
-
const cssVarPaddingBlock$
|
|
3922
|
+
const cssVarPaddingBlock$5 = '--p-accordion-py';
|
|
3923
3923
|
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"/>`);
|
|
3924
3924
|
const backgroundMap$1 = {
|
|
3925
3925
|
canvas: ref(colorCanvas),
|
|
@@ -4000,7 +4000,7 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4000
4000
|
gridTemplate: `repeat(2, auto) / ${hasSummaryBefore ? 'auto ' : ''}${isIconAlignedStart ? 'auto minmax(0, 1fr)' : 'minmax(0, 1fr) auto'}${hasSummaryAfter ? ' auto ' : ''}`,
|
|
4001
4001
|
columnGap: gap,
|
|
4002
4002
|
alignItems: 'center',
|
|
4003
|
-
padding: `${ref(cssVarPaddingBlock$
|
|
4003
|
+
padding: `${ref(cssVarPaddingBlock$5, background === 'none' ? '0' : paddingBlock)} ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)}`,
|
|
4004
4004
|
background: backgroundMap$1[background],
|
|
4005
4005
|
...(background === 'frosted' && {
|
|
4006
4006
|
WebkitBackdropFilter: ref(blurFrosted),
|
|
@@ -4010,7 +4010,7 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4010
4010
|
...forcedColorsMediaQuery({
|
|
4011
4011
|
outline: '1px solid CanvasText',
|
|
4012
4012
|
outlineOffset: background === 'none' ? '0' : '-1px',
|
|
4013
|
-
padding: `${ref(cssVarPaddingBlock$
|
|
4013
|
+
padding: `${ref(cssVarPaddingBlock$5, paddingBlock)} ${ref(cssVarPaddingInline$6, paddingInline)}`,
|
|
4014
4014
|
}),
|
|
4015
4015
|
'&::details-content': addImportantToEachRule({
|
|
4016
4016
|
display: 'contents', // allows <details> to be used as grid layout
|
|
@@ -4035,8 +4035,8 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4035
4035
|
opacity: 1,
|
|
4036
4036
|
paddingTop,
|
|
4037
4037
|
zIndex: 2, // Ensure details are above summary when using custom padding
|
|
4038
|
-
paddingInline: `${ref(cssVarPaddingInline$
|
|
4039
|
-
marginInline: `calc(-1 * ${ref(cssVarPaddingInline$
|
|
4038
|
+
paddingInline: `${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)}`,
|
|
4039
|
+
marginInline: `calc(-1 * ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)})`,
|
|
4040
4040
|
// as soon as all browsers support calc-size(auto) to be transitionable, we can remove the grid-template-rows rule and animation
|
|
4041
4041
|
gridTemplateRows: '1fr',
|
|
4042
4042
|
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
|
|
@@ -4053,8 +4053,8 @@ const getComponentCss$1a = (alignMarker, background, isCompact, indent, isOpen,
|
|
|
4053
4053
|
gridTemplateColumns: 'subgrid',
|
|
4054
4054
|
alignItems: 'center',
|
|
4055
4055
|
cursor: 'pointer',
|
|
4056
|
-
padding: `${ref(cssVarPaddingBlock$
|
|
4057
|
-
margin: `calc(-1 * ${ref(cssVarPaddingBlock$
|
|
4056
|
+
padding: `${ref(cssVarPaddingBlock$5, background === 'none' ? '0' : paddingBlock)} ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)}`,
|
|
4057
|
+
margin: `calc(-1 * ${ref(cssVarPaddingBlock$5, background === 'none' ? '0' : paddingBlock)}) calc(-1 * ${ref(cssVarPaddingInline$6, background === 'none' ? '0' : paddingInline)})`,
|
|
4058
4058
|
...(isSticky &&
|
|
4059
4059
|
(background === 'canvas' || background === 'surface') && {
|
|
4060
4060
|
position: 'sticky',
|
|
@@ -4663,8 +4663,10 @@ const getVisibilityJssStyle = (hideLabel) => {
|
|
|
4663
4663
|
};
|
|
4664
4664
|
const offsetVertical = '-2px';
|
|
4665
4665
|
const offsetHorizontal = '-4px';
|
|
4666
|
-
const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
|
|
4666
|
+
const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor, cssVarPaddingInline, cssVarPaddingBlock, cssVarHoverInsetInline, cssVarHoverInsetBlock) => {
|
|
4667
4667
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4668
|
+
const hoverInsetBlock = ref(cssVarHoverInsetBlock, offsetVertical);
|
|
4669
|
+
const hoverInsetInline = ref(cssVarHoverInsetInline, offsetHorizontal);
|
|
4668
4670
|
return {
|
|
4669
4671
|
'@global': {
|
|
4670
4672
|
':host': {
|
|
@@ -4682,6 +4684,9 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4682
4684
|
},
|
|
4683
4685
|
root: {
|
|
4684
4686
|
all: 'unset',
|
|
4687
|
+
boxSizing: 'border-box',
|
|
4688
|
+
paddingInline: ref(cssVarPaddingInline, '0'),
|
|
4689
|
+
paddingBlock: ref(cssVarPaddingBlock, '0'),
|
|
4685
4690
|
display: 'flex',
|
|
4686
4691
|
width: '100%',
|
|
4687
4692
|
cursor: 'pointer',
|
|
@@ -4705,11 +4710,11 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4705
4710
|
'&::before': {
|
|
4706
4711
|
content: '""',
|
|
4707
4712
|
position: 'absolute', // mobile Safari -> prevent lagging active state
|
|
4708
|
-
top:
|
|
4709
|
-
bottom:
|
|
4713
|
+
top: hoverInsetBlock,
|
|
4714
|
+
bottom: hoverInsetBlock,
|
|
4710
4715
|
...buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
4711
|
-
right: hideLabelValue ?
|
|
4712
|
-
left: hideLabelValue ?
|
|
4716
|
+
right: hideLabelValue ? ref(cssVarHoverInsetInline, hoverInsetBlock) : hoverInsetInline,
|
|
4717
|
+
left: hideLabelValue ? ref(cssVarHoverInsetInline, hoverInsetBlock) : hoverInsetInline,
|
|
4713
4718
|
borderRadius: hideLabelValue ? ref(radiusFull) : ref(radiusLg),
|
|
4714
4719
|
})),
|
|
4715
4720
|
transition: getTransition('background-color'),
|
|
@@ -4717,6 +4722,10 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4717
4722
|
WebkitBackdropFilter: ref(blurFrosted),
|
|
4718
4723
|
backdropFilter: ref(blurFrosted),
|
|
4719
4724
|
backgroundColor: ref(colorFrosted),
|
|
4725
|
+
...forcedColorsMediaQuery({
|
|
4726
|
+
outline: '2px solid Highlight',
|
|
4727
|
+
outlineOffset: '-2px',
|
|
4728
|
+
}),
|
|
4720
4729
|
}),
|
|
4721
4730
|
},
|
|
4722
4731
|
...(!isDisabledOrLoading &&
|
|
@@ -4756,9 +4765,25 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4756
4765
|
};
|
|
4757
4766
|
};
|
|
4758
4767
|
|
|
4768
|
+
/**
|
|
4769
|
+
* @css-variable {"name": "--p-button-pure-px", "description": "Horizontal padding of the button. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
4770
|
+
*/
|
|
4771
|
+
const cssVarPaddingInline$5 = '--p-button-pure-px';
|
|
4772
|
+
/**
|
|
4773
|
+
* @css-variable {"name": "--p-button-pure-py", "description": "Vertical padding of the button. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
4774
|
+
*/
|
|
4775
|
+
const cssVarPaddingBlock$4 = '--p-button-pure-py';
|
|
4776
|
+
/**
|
|
4777
|
+
* @css-variable {"name": "--p-button-pure-hover-inset-x", "description": "Horizontal inset of the hover, active and focus indicator.", "defaultValue": "-4px"}
|
|
4778
|
+
*/
|
|
4779
|
+
const cssVarHoverInsetInline$1 = '--p-button-pure-hover-inset-x';
|
|
4780
|
+
/**
|
|
4781
|
+
* @css-variable {"name": "--p-button-pure-hover-inset-y", "description": "Vertical inset of the hover, active and focus indicator.", "defaultValue": "-2px"}
|
|
4782
|
+
*/
|
|
4783
|
+
const cssVarHoverInsetBlock$1 = '--p-button-pure-hover-inset-y';
|
|
4759
4784
|
const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline) => {
|
|
4760
4785
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4761
|
-
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, false), {
|
|
4786
|
+
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, false, cssVarPaddingInline$5, cssVarPaddingBlock$4, cssVarHoverInsetInline$1, cssVarHoverInsetBlock$1), {
|
|
4762
4787
|
root: {
|
|
4763
4788
|
...(isDisabled && {
|
|
4764
4789
|
color: ref(colorContrastLow),
|
|
@@ -4926,6 +4951,24 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4926
4951
|
});
|
|
4927
4952
|
};
|
|
4928
4953
|
|
|
4954
|
+
/**
|
|
4955
|
+
* Lets the anchor cover its nearest positioned ancestor. Its radius is set via the given CSS variable, e.g. to the one of
|
|
4956
|
+
* the card it covers.
|
|
4957
|
+
*/
|
|
4958
|
+
const getCoverStyles = (cssVarCoverRadius) => ({
|
|
4959
|
+
content: '""',
|
|
4960
|
+
position: 'absolute',
|
|
4961
|
+
inset: 0,
|
|
4962
|
+
zIndex: 1,
|
|
4963
|
+
borderRadius: ref(cssVarCoverRadius, '0'),
|
|
4964
|
+
});
|
|
4965
|
+
/**
|
|
4966
|
+
* Same as `getHiddenTextJssStyle()`, but without positioning, since the label would otherwise be the containing block
|
|
4967
|
+
* of the covering area of a slotted anchor.
|
|
4968
|
+
*/
|
|
4969
|
+
const getCoverHiddenTextJssStyle = (isHidden) => isHidden
|
|
4970
|
+
? { ...getHiddenTextJssStyle(true), position: 'static', clip: 'auto', color: 'transparent' }
|
|
4971
|
+
: getHiddenTextJssStyle(false, { color: 'inherit' });
|
|
4929
4972
|
const getVariantColors = (variant, cssVariableBackground, cssVariableForeground) => {
|
|
4930
4973
|
const colors = {
|
|
4931
4974
|
primary: {
|
|
@@ -4949,13 +4992,17 @@ const getVariantColors = (variant, cssVariableBackground, cssVariableForeground)
|
|
|
4949
4992
|
};
|
|
4950
4993
|
return colors[variant];
|
|
4951
4994
|
};
|
|
4952
|
-
const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, isCompact, cssVariableInternalScaling, cssVariableBackground, cssVariableForeground, cssVarPaddingInline, cssVarPaddingBlock, cssVarGap, cssVarRadius) => {
|
|
4995
|
+
const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrLoading, hasSlottedAnchor, isCompact, cssVariableInternalScaling, cssVariableBackground, cssVariableForeground, cssVarPaddingInline, cssVarPaddingBlock, cssVarGap, cssVarRadius, isCover = false, cssVarCoverRadius = '') => {
|
|
4953
4996
|
const { textColor, textColorHover, backgroundColor, backgroundColorHover } = getVariantColors(variant, cssVariableBackground, cssVariableForeground);
|
|
4954
4997
|
const hasIcon = hasVisibleIcon(icon, iconSource) || isTruthyForAnyBreakpoint(hideLabel);
|
|
4955
4998
|
const paddingBlock = `calc(28px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 6px)`;
|
|
4956
4999
|
const paddingInline = `calc(33.6px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 16px)`;
|
|
4957
5000
|
const gap = `calc(11.2px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 4px)`;
|
|
4958
5001
|
const iconMarginInlineStart = `calc(-1 * (11.2px * (${ref(cssVariableInternalScaling)} - 0.64285714) + 4px))`;
|
|
5002
|
+
const spacingStyles = buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
5003
|
+
padding: `${ref(cssVarPaddingBlock, paddingBlock)} ${ref(cssVarPaddingInline, hideLabelValue ? paddingBlock : paddingInline)}`,
|
|
5004
|
+
gap: ref(cssVarGap, hideLabelValue ? 0 : gap),
|
|
5005
|
+
}));
|
|
4959
5006
|
return {
|
|
4960
5007
|
'@global': {
|
|
4961
5008
|
':host': {
|
|
@@ -4975,24 +5022,29 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4975
5022
|
},
|
|
4976
5023
|
root: {
|
|
4977
5024
|
all: 'unset',
|
|
4978
|
-
display: 'flex',
|
|
4979
|
-
justifyContent: 'center',
|
|
5025
|
+
display: isCover ? 'grid' : 'flex',
|
|
5026
|
+
...(!isCover && { justifyContent: 'center' }),
|
|
4980
5027
|
width: '100%', // Allows for setting a width on the host
|
|
4981
5028
|
minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
|
|
4982
5029
|
boxSizing: 'border-box',
|
|
4983
|
-
|
|
4984
|
-
|
|
5030
|
+
...(!isCover && {
|
|
5031
|
+
WebkitBackdropFilter: ref(blurFrosted),
|
|
5032
|
+
backdropFilter: ref(blurFrosted),
|
|
5033
|
+
}),
|
|
4985
5034
|
font: `${ref(fontWeightNormal$1)} ${ref(typescaleSm$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
|
|
4986
5035
|
borderRadius: 'inherit',
|
|
4987
|
-
|
|
4988
|
-
|
|
5036
|
+
// creates new stacking context (for slotted anchor + focus), omitted when covering, since it would be the
|
|
5037
|
+
// containing block of the covering area
|
|
5038
|
+
...(!isCover && {
|
|
5039
|
+
transform: 'translate3d(0,0,0)',
|
|
5040
|
+
backgroundColor,
|
|
5041
|
+
}),
|
|
4989
5042
|
color: textColor,
|
|
4990
5043
|
cursor: 'pointer',
|
|
4991
|
-
transition:
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
})),
|
|
5044
|
+
transition: isCover
|
|
5045
|
+
? getTransition('color')
|
|
5046
|
+
: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`,
|
|
5047
|
+
...(!isCover && spacingStyles),
|
|
4996
5048
|
...forcedColorsMediaQuery({
|
|
4997
5049
|
forcedColorAdjust: 'none',
|
|
4998
5050
|
boxShadow: 'inset 0 0 0 2px LinkText',
|
|
@@ -5010,18 +5062,56 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
5010
5062
|
}),
|
|
5011
5063
|
},
|
|
5012
5064
|
}),
|
|
5013
|
-
...(!hasSlottedAnchor &&
|
|
5014
|
-
|
|
5015
|
-
|
|
5065
|
+
...(!hasSlottedAnchor &&
|
|
5066
|
+
(isCover
|
|
5067
|
+
? {
|
|
5068
|
+
// the anchor covers its nearest positioned ancestor, which also renders the focus ring around it
|
|
5069
|
+
'&::before': getCoverStyles(cssVarCoverRadius),
|
|
5070
|
+
'&:focus-visible': { outline: 'none' },
|
|
5071
|
+
'&:focus-visible::before': getFocusBaseStyles(),
|
|
5072
|
+
}
|
|
5073
|
+
: {
|
|
5074
|
+
'&:focus-visible': getFocusBaseStyles(),
|
|
5075
|
+
})),
|
|
5016
5076
|
...(!isDisabledOrLoading &&
|
|
5017
5077
|
hoverMediaQuery({
|
|
5018
5078
|
'&:hover': {
|
|
5019
5079
|
color: textColorHover,
|
|
5020
|
-
backgroundColor: backgroundColorHover,
|
|
5080
|
+
...(!isCover && { backgroundColor: backgroundColorHover }),
|
|
5021
5081
|
},
|
|
5082
|
+
...(isCover && {
|
|
5083
|
+
'&:hover .backdrop': {
|
|
5084
|
+
backgroundColor: backgroundColorHover,
|
|
5085
|
+
},
|
|
5086
|
+
}),
|
|
5022
5087
|
})),
|
|
5023
5088
|
},
|
|
5024
|
-
|
|
5089
|
+
...(isCover && {
|
|
5090
|
+
// without `transform` and `backdrop-filter` on the root, it is no containing block of the covering area, so
|
|
5091
|
+
// background and content are stacked in the same grid cell instead of being positioned
|
|
5092
|
+
backdrop: {
|
|
5093
|
+
gridArea: '1/1',
|
|
5094
|
+
borderRadius: 'inherit',
|
|
5095
|
+
WebkitBackdropFilter: ref(blurFrosted),
|
|
5096
|
+
backdropFilter: ref(blurFrosted),
|
|
5097
|
+
backgroundColor,
|
|
5098
|
+
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
5099
|
+
...forcedColorsMediaQuery({
|
|
5100
|
+
boxShadow: 'inset 0 0 0 2px LinkText',
|
|
5101
|
+
...addImportantToEachRule({
|
|
5102
|
+
background: 'Canvas',
|
|
5103
|
+
}),
|
|
5104
|
+
}),
|
|
5105
|
+
},
|
|
5106
|
+
content: {
|
|
5107
|
+
gridArea: '1/1',
|
|
5108
|
+
zIndex: 1, // above the backdrop, since `backdrop-filter` creates a stacking context
|
|
5109
|
+
display: 'flex',
|
|
5110
|
+
justifyContent: 'center',
|
|
5111
|
+
...spacingStyles,
|
|
5112
|
+
},
|
|
5113
|
+
}),
|
|
5114
|
+
label: buildResponsiveBooleanStyles(hideLabel, isCover ? getCoverHiddenTextJssStyle : getHiddenTextJssStyle),
|
|
5025
5115
|
...(hasIcon && {
|
|
5026
5116
|
icon: {
|
|
5027
5117
|
font: `${ref(typescaleSm$1)} ${ref(fontPorscheNext$1)}`, // needed for correct width/height definition based on ex-unit
|
|
@@ -5051,11 +5141,11 @@ const cssVarForeground$1 = '--p-button-fg';
|
|
|
5051
5141
|
/**
|
|
5052
5142
|
* @css-variable {"name": "--p-button-px", "description": "Horizontal padding of the button.", "defaultValue": ""}
|
|
5053
5143
|
*/
|
|
5054
|
-
const cssVarPaddingInline$
|
|
5144
|
+
const cssVarPaddingInline$4 = '--p-button-px';
|
|
5055
5145
|
/**
|
|
5056
5146
|
* @css-variable {"name": "--p-button-py", "description": "Vertical padding of the button.", "defaultValue": ""}
|
|
5057
5147
|
*/
|
|
5058
|
-
const cssVarPaddingBlock$
|
|
5148
|
+
const cssVarPaddingBlock$3 = '--p-button-py';
|
|
5059
5149
|
/**
|
|
5060
5150
|
* @css-variable {"name": "--p-button-gap", "description": "Gap between the button's content (label and icon).", "defaultValue": ""}
|
|
5061
5151
|
*/
|
|
@@ -5066,7 +5156,7 @@ const cssVarGap$2 = '--p-button-gap';
|
|
|
5066
5156
|
const cssVarRadius$2 = '--p-button-radius';
|
|
5067
5157
|
const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, isLoading, isCompact) => {
|
|
5068
5158
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
5069
|
-
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling, cssVarBackground$1, cssVarForeground$1, cssVarPaddingInline$
|
|
5159
|
+
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling, cssVarBackground$1, cssVarForeground$1, cssVarPaddingInline$4, cssVarPaddingBlock$3, cssVarGap$2, cssVarRadius$2), {
|
|
5070
5160
|
root: {
|
|
5071
5161
|
...(disabledOrLoading && {
|
|
5072
5162
|
cursor: 'not-allowed',
|
|
@@ -5448,7 +5538,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
5448
5538
|
/**
|
|
5449
5539
|
* @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": ""}
|
|
5450
5540
|
*/
|
|
5451
|
-
const cssVarPaddingInline$
|
|
5541
|
+
const cssVarPaddingInline$3 = '--p-carousel-px';
|
|
5452
5542
|
/**
|
|
5453
5543
|
* @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": ""}
|
|
5454
5544
|
*/
|
|
@@ -5567,17 +5657,17 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5567
5657
|
},
|
|
5568
5658
|
header: {
|
|
5569
5659
|
display: 'grid',
|
|
5570
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5571
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5660
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5661
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5572
5662
|
[mediaQueryS]: {
|
|
5573
5663
|
gridTemplateColumns: 'minmax(0px,1fr) auto',
|
|
5574
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5575
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5664
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5665
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5576
5666
|
...(hasNavigation && { columnGap: ref(spacingStaticMd) }),
|
|
5577
5667
|
},
|
|
5578
5668
|
[mediaQueryXXL]: {
|
|
5579
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5580
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5669
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5670
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5581
5671
|
},
|
|
5582
5672
|
},
|
|
5583
5673
|
nav: {
|
|
@@ -5615,15 +5705,15 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5615
5705
|
// !important is necessary to override inline styles set by splide library
|
|
5616
5706
|
...addImportantToEachRule({
|
|
5617
5707
|
paddingBlock: '0px',
|
|
5618
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5619
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5708
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5709
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].base)),
|
|
5620
5710
|
[mediaQueryS]: {
|
|
5621
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5622
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5711
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5712
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].s)),
|
|
5623
5713
|
},
|
|
5624
5714
|
[mediaQueryXXL]: {
|
|
5625
|
-
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$
|
|
5626
|
-
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$
|
|
5715
|
+
paddingInlineStart: ref(cssVarPaddingInlineStart, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5716
|
+
paddingInlineEnd: ref(cssVarPaddingInlineEnd, ref(cssVarPaddingInline$3, spacingMap[width].xxl)),
|
|
5627
5717
|
},
|
|
5628
5718
|
}),
|
|
5629
5719
|
'&--draggable': {
|
|
@@ -5950,6 +6040,11 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
|
|
|
5950
6040
|
'&:empty': {
|
|
5951
6041
|
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)
|
|
5952
6042
|
},
|
|
6043
|
+
// only on <label>, not description spans or non-clickable headings (e.g. radio-group / segmented-control use tag="div")
|
|
6044
|
+
// prevents Chromium from moving selection to the label on repeated clicks, which hides the input caret (#3891)
|
|
6045
|
+
'&:is(label)': {
|
|
6046
|
+
userSelect: 'none',
|
|
6047
|
+
},
|
|
5953
6048
|
// styling for the description
|
|
5954
6049
|
'&:is(span)': {
|
|
5955
6050
|
cursor: 'unset',
|
|
@@ -7238,6 +7333,10 @@ const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
|
7238
7333
|
});
|
|
7239
7334
|
};
|
|
7240
7335
|
|
|
7336
|
+
/**
|
|
7337
|
+
* @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"}
|
|
7338
|
+
*/
|
|
7339
|
+
const cssVarLabelMarginBottom = '--p-fieldset-label-mb';
|
|
7241
7340
|
const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
7242
7341
|
return getCss({
|
|
7243
7342
|
'@global': {
|
|
@@ -7255,7 +7354,7 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
7255
7354
|
...(hasLabel && {
|
|
7256
7355
|
legend: {
|
|
7257
7356
|
all: 'unset',
|
|
7258
|
-
marginBottom: ref(spacingStaticMd),
|
|
7357
|
+
marginBottom: ref(cssVarLabelMarginBottom, ref(spacingStaticMd)),
|
|
7259
7358
|
color: ref(colorPrimary),
|
|
7260
7359
|
font: `${labelSize === 'small' ? ref(fontWeightSemibold) : ref(fontWeightNormal$1)} ${labelSize === 'small' ? ref(typescaleSm$1) : ref(typescaleMd)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
|
|
7261
7360
|
},
|
|
@@ -7822,8 +7921,24 @@ const getComponentCss$H = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
7822
7921
|
});
|
|
7823
7922
|
};
|
|
7824
7923
|
|
|
7924
|
+
/**
|
|
7925
|
+
* @css-variable {"name": "--p-link-pure-px", "description": "Horizontal padding of the link. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
7926
|
+
*/
|
|
7927
|
+
const cssVarPaddingInline$2 = '--p-link-pure-px';
|
|
7928
|
+
/**
|
|
7929
|
+
* @css-variable {"name": "--p-link-pure-py", "description": "Vertical padding of the link. Enlarges the clickable and focusable area.", "defaultValue": "0px"}
|
|
7930
|
+
*/
|
|
7931
|
+
const cssVarPaddingBlock$2 = '--p-link-pure-py';
|
|
7932
|
+
/**
|
|
7933
|
+
* @css-variable {"name": "--p-link-pure-hover-inset-x", "description": "Horizontal inset of the hover, active and focus indicator.", "defaultValue": "-4px"}
|
|
7934
|
+
*/
|
|
7935
|
+
const cssVarHoverInsetInline = '--p-link-pure-hover-inset-x';
|
|
7936
|
+
/**
|
|
7937
|
+
* @css-variable {"name": "--p-link-pure-hover-inset-y", "description": "Vertical inset of the hover, active and focus indicator.", "defaultValue": "-2px"}
|
|
7938
|
+
*/
|
|
7939
|
+
const cssVarHoverInsetBlock = '--p-link-pure-hover-inset-y';
|
|
7825
7940
|
const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
|
|
7826
|
-
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor), hasSlottedAnchor && {
|
|
7941
|
+
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor, cssVarPaddingInline$2, cssVarPaddingBlock$2, cssVarHoverInsetInline, cssVarHoverInsetBlock), hasSlottedAnchor && {
|
|
7827
7942
|
'@global': addImportantToEachRule({
|
|
7828
7943
|
'::slotted': {
|
|
7829
7944
|
'&(a)': {
|
|
@@ -7832,9 +7947,11 @@ const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideL
|
|
|
7832
7947
|
'&(a)::before': {
|
|
7833
7948
|
content: '""',
|
|
7834
7949
|
position: 'fixed',
|
|
7835
|
-
insetBlock: offsetVertical,
|
|
7950
|
+
insetBlock: ref(cssVarHoverInsetBlock, offsetVertical),
|
|
7836
7951
|
...buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
7837
|
-
insetInline: hideLabelValue
|
|
7952
|
+
insetInline: hideLabelValue
|
|
7953
|
+
? ref(cssVarHoverInsetInline, ref(cssVarHoverInsetBlock, offsetVertical))
|
|
7954
|
+
: ref(cssVarHoverInsetInline, offsetHorizontal),
|
|
7838
7955
|
borderRadius: hideLabelValue ? ref(radiusFull) : ref(radiusLg),
|
|
7839
7956
|
})),
|
|
7840
7957
|
},
|
|
@@ -8155,8 +8272,12 @@ const cssVarGap$1 = '--p-link-gap';
|
|
|
8155
8272
|
* @css-variable {"name": "--p-link-radius", "description": "Radius of the link", "defaultValue": ""}
|
|
8156
8273
|
*/
|
|
8157
8274
|
const cssVarRadius$1 = '--p-link-radius';
|
|
8158
|
-
|
|
8159
|
-
|
|
8275
|
+
/**
|
|
8276
|
+
* @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"}
|
|
8277
|
+
*/
|
|
8278
|
+
const cssVarCoverRadius = '--p-link-cover-radius';
|
|
8279
|
+
const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, isCompact, isCover = false) => {
|
|
8280
|
+
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, isCompact, cssVariableInternalLinkScaling, cssVarBackground, cssVarForeground, cssVarPaddingInline$1, cssVarPaddingBlock$1, cssVarGap$1, cssVarRadius$1, isCover, cssVarCoverRadius), {
|
|
8160
8281
|
label: {
|
|
8161
8282
|
clip: addImportantToRule('unset'), // to overrule breakpoint customizable hide-label style
|
|
8162
8283
|
},
|
|
@@ -8166,18 +8287,20 @@ const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
8166
8287
|
'&(a)': {
|
|
8167
8288
|
all: 'unset',
|
|
8168
8289
|
},
|
|
8169
|
-
'&(a)::before':
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8290
|
+
'&(a)::before': isCover
|
|
8291
|
+
? getCoverStyles(cssVarCoverRadius)
|
|
8292
|
+
: {
|
|
8293
|
+
content: '""',
|
|
8294
|
+
position: 'fixed',
|
|
8295
|
+
inset: 0,
|
|
8296
|
+
...mergeDeep(buildResponsiveBooleanStyles(isCompact, (compactValue) => ({
|
|
8297
|
+
borderRadius: ref(cssVarRadius$1, compactValue ? ref(radiusLg) : ref(radiusXl)),
|
|
8298
|
+
})), buildResponsiveBooleanStyles(hideLabel, (hideLabelValue) => ({
|
|
8299
|
+
...(hideLabelValue && {
|
|
8300
|
+
borderRadius: ref(cssVarRadius$1, ref(radiusFull)),
|
|
8301
|
+
}),
|
|
8302
|
+
}))),
|
|
8303
|
+
},
|
|
8181
8304
|
'&(a:focus-visible)::before': getFocusBaseStyles(),
|
|
8182
8305
|
},
|
|
8183
8306
|
}),
|
|
@@ -9450,7 +9573,7 @@ const cssVarRefPaddingBottom = '--ref-p-sheet-pb';
|
|
|
9450
9573
|
* @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."}
|
|
9451
9574
|
*/
|
|
9452
9575
|
const cssVarRefPaddingInline = '--ref-p-sheet-px';
|
|
9453
|
-
const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
9576
|
+
const getComponentCss$n = (isOpen, background, hasDismissButton, hasSwipeHandle = false) => {
|
|
9454
9577
|
return getCss({
|
|
9455
9578
|
'@global': {
|
|
9456
9579
|
':host': {
|
|
@@ -9491,6 +9614,52 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
|
9491
9614
|
...(hasDismissButton && {
|
|
9492
9615
|
dismiss: getDialogDismissButtonJssStyle(background),
|
|
9493
9616
|
}),
|
|
9617
|
+
...(hasSwipeHandle && {
|
|
9618
|
+
'swipe-handle': {
|
|
9619
|
+
all: 'unset',
|
|
9620
|
+
boxSizing: 'border-box',
|
|
9621
|
+
position: 'absolute',
|
|
9622
|
+
top: 0,
|
|
9623
|
+
insetInline: 0,
|
|
9624
|
+
marginInline: 'auto',
|
|
9625
|
+
width: '48px',
|
|
9626
|
+
height: '24px',
|
|
9627
|
+
display: 'grid',
|
|
9628
|
+
placeItems: 'center',
|
|
9629
|
+
cursor: 'grab',
|
|
9630
|
+
touchAction: 'none', // hands touch drags on the handle to Pointer Events instead of native panning
|
|
9631
|
+
'&:active': {
|
|
9632
|
+
cursor: 'grabbing',
|
|
9633
|
+
},
|
|
9634
|
+
zIndex: 5,
|
|
9635
|
+
borderRadius: ref(radiusSm),
|
|
9636
|
+
'&::before': {
|
|
9637
|
+
content: '""',
|
|
9638
|
+
width: '36px',
|
|
9639
|
+
height: '5px',
|
|
9640
|
+
borderRadius: ref(radiusFull),
|
|
9641
|
+
background: ref(colorContrastMedium),
|
|
9642
|
+
transition: getTransition('background-color'),
|
|
9643
|
+
},
|
|
9644
|
+
...hoverMediaQuery({
|
|
9645
|
+
'&:hover::before': {
|
|
9646
|
+
background: ref(colorContrastHigh),
|
|
9647
|
+
...forcedColorsMediaQuery({
|
|
9648
|
+
background: 'ButtonText',
|
|
9649
|
+
}),
|
|
9650
|
+
},
|
|
9651
|
+
}),
|
|
9652
|
+
'&:focus-visible': getFocusBaseStyles(-2),
|
|
9653
|
+
...forcedColorsMediaQuery({
|
|
9654
|
+
forcedColorAdjust: 'none',
|
|
9655
|
+
'&::before': {
|
|
9656
|
+
background: 'ButtonText',
|
|
9657
|
+
outline: '1px solid ButtonBorder',
|
|
9658
|
+
},
|
|
9659
|
+
}),
|
|
9660
|
+
'& span': getHiddenTextJssStyle(),
|
|
9661
|
+
},
|
|
9662
|
+
}),
|
|
9494
9663
|
});
|
|
9495
9664
|
};
|
|
9496
9665
|
|