@porsche-design-system/components-react 4.0.0-rc.0 → 4.0.0-rc.2
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 +125 -0
- package/OSS_NOTICE +195 -855
- package/README.md +0 -5
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/banner.wrapper.cjs +3 -3
- package/cjs/lib/components/segmented-control.wrapper.cjs +3 -3
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/esm/lib/components/banner.wrapper.mjs +3 -3
- package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/esm/lib/components/button.wrapper.d.ts +14 -0
- package/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/esm/lib/components/display.wrapper.d.ts +8 -0
- package/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/esm/lib/components/segmented-control.wrapper.d.ts +28 -0
- package/esm/lib/components/segmented-control.wrapper.mjs +3 -3
- package/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/select.wrapper.d.ts +20 -0
- package/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/esm/lib/components/table.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +14 -0
- package/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/esm/lib/types.d.ts +34 -25
- package/global-styles/cn/index.css +43 -39
- package/global-styles/color-scheme.css +24 -24
- package/global-styles/index.css +43 -39
- package/global-styles/variables.css +19 -15
- package/package.json +5 -3
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1043 -847
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +58 -84
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +18 -8
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +13 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/notification-base.cjs +10 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +5 -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/radio-group-option.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +8 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +6 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +4 -24
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +4 -2
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1043 -848
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +54 -83
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +18 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +14 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +5 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/notification-base.mjs +8 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +6 -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/radio-group-option.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +10 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +7 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +4 -24
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +5 -3
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/accordion.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/banner.d.ts +8 -4
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/canvas.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/carousel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/crest.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/display.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/divider.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/drilldown.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/fieldset.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flag.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/heading.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/icon.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/inline-notification.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-base.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-date.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-month.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-time.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-url.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-week.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/model-signature.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/notification-base.d.ts +14 -0
- package/ssr/esm/lib/dsr-components/optgroup.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/pagination.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/scroller.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/select-option.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/select.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/spinner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/switch.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-body.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-cell.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-head-row.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-head.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-row.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tabs-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tabs.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tag.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/text-list-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/text-list.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/textarea.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/toast.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/wordmark.d.ts +1 -0
- package/ssr/esm/lib/types.d.ts +34 -25
- package/tailwindcss/index.css +350 -92
|
@@ -1,358 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const blurFrosted$1 = 'blur(32px)';
|
|
4
|
-
|
|
5
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use backdropFilter: blurFrosted instead */
|
|
6
|
-
const frostedGlassStyle = {
|
|
7
|
-
WebkitBackdropFilter: blurFrosted$1,
|
|
8
|
-
backdropFilter: blurFrosted$1,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 2px instead. */
|
|
12
|
-
const borderWidthBase = '2px';
|
|
13
|
-
|
|
14
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 1px instead. */
|
|
15
|
-
const borderWidthThin = '1px';
|
|
16
|
-
|
|
17
|
-
const fontPorscheNext$1 = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
18
|
-
|
|
19
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
|
|
20
|
-
const fontFamily = fontPorscheNext$1;
|
|
21
|
-
|
|
22
|
-
const leadingNormal$1 = 'calc(6px + 2.125ex)';
|
|
23
|
-
|
|
24
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
|
|
25
|
-
const fontLineHeight = leadingNormal$1;
|
|
26
|
-
|
|
27
|
-
const typescaleLg$1 = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
|
|
28
|
-
|
|
29
|
-
const typescaleMd$1 = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
|
|
30
|
-
|
|
31
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
|
|
32
|
-
const fontSizeHeadingMedium = typescaleMd$1;
|
|
33
|
-
|
|
34
|
-
const typescaleSm$1 = '1rem';
|
|
35
|
-
|
|
36
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
37
|
-
const fontSizeHeadingSmall = typescaleSm$1;
|
|
38
|
-
|
|
39
|
-
const typescaleXl$1 = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
|
|
40
|
-
|
|
41
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
|
|
42
|
-
const fontSizeHeadingXLarge = typescaleXl$1;
|
|
43
|
-
|
|
44
|
-
const typescale2Xl$1 = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
|
|
45
|
-
|
|
46
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xl instead. */
|
|
47
|
-
const fontSizeHeadingXXLarge = typescale2Xl$1;
|
|
48
|
-
|
|
49
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
|
|
50
|
-
const fontSizeTextLarge = typescaleLg$1;
|
|
51
|
-
|
|
52
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
|
|
53
|
-
const fontSizeTextMedium = typescaleMd$1;
|
|
54
|
-
|
|
55
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
56
|
-
const fontSizeTextSmall = typescaleSm$1;
|
|
57
|
-
|
|
58
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
|
|
59
|
-
const fontSizeTextXLarge = typescaleXl$1;
|
|
60
|
-
|
|
61
|
-
const typescaleXs$2 = '.875rem';
|
|
62
|
-
|
|
63
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
|
|
64
|
-
const fontSizeTextXSmall = typescaleXs$2;
|
|
65
|
-
|
|
66
|
-
const typescale2Xs$1 = '.75rem';
|
|
67
|
-
|
|
68
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xs instead. */
|
|
69
|
-
const fontSizeTextXXSmall = typescale2Xs$1;
|
|
70
|
-
|
|
71
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale variables instead. */
|
|
72
|
-
const fontSizeText$1 = {
|
|
73
|
-
xxSmall: fontSizeTextXXSmall,
|
|
74
|
-
xSmall: fontSizeTextXSmall,
|
|
75
|
-
small: fontSizeTextSmall,
|
|
76
|
-
medium: fontSizeTextMedium,
|
|
77
|
-
large: fontSizeTextLarge,
|
|
78
|
-
xLarge: fontSizeTextXLarge,
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
82
|
-
const fontStyleNormal = 'normal';
|
|
83
|
-
|
|
84
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
85
|
-
const fontVariant = 'normal';
|
|
86
|
-
|
|
87
|
-
const fontWeightNormal$1 = 400;
|
|
88
|
-
|
|
89
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
|
|
90
|
-
const fontWeightRegular = fontWeightNormal$1;
|
|
91
|
-
|
|
92
|
-
const fontWeightSemibold$1 = 600;
|
|
93
|
-
|
|
94
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightSemibold instead. */
|
|
95
|
-
const fontWeightSemiBold = fontWeightSemibold$1;
|
|
96
|
-
|
|
97
|
-
const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
|
|
98
|
-
'hsla(0,0%,0%,.8) 8.1%,' +
|
|
99
|
-
'hsla(0,0%,0%,.8) 15.5%,' +
|
|
100
|
-
'hsla(0,0%,0%,.8) 22.5%,' +
|
|
101
|
-
'hsla(0,0%,0%,.78) 29%,' +
|
|
102
|
-
'hsla(0,0%,0%,.73) 35.3%,' +
|
|
103
|
-
'hsla(0,0%,0%,.67) 41.2%,' +
|
|
104
|
-
'hsla(0,0%,0%,.6) 47.1%,' +
|
|
105
|
-
'hsla(0,0%,0%,.52) 52.9%,' +
|
|
106
|
-
'hsla(0,0%,0%,.44) 58.8%,' +
|
|
107
|
-
'hsla(0,0%,0%,.33) 64.7%,' +
|
|
108
|
-
'hsla(0,0%,0%,.22) 71%,' +
|
|
109
|
-
'hsla(0,0%,0%,.12) 77.5%,' +
|
|
110
|
-
'hsla(0,0%,0%,.05) 84.5%,' +
|
|
111
|
-
'hsla(0,0%,0%,.011) 91.9%,' +
|
|
112
|
-
'hsla(0,0%,0%,0) 100%';
|
|
113
|
-
|
|
114
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
|
|
115
|
-
const gradientToBottomStyle = {
|
|
116
|
-
background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
/** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
|
|
120
|
-
const gradientToTopStyle = {
|
|
121
|
-
background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const breakpointBase = 0;
|
|
125
|
-
|
|
126
|
-
const breakpointLg = 1300;
|
|
127
|
-
|
|
128
|
-
const breakpointL = breakpointLg;
|
|
129
|
-
|
|
130
|
-
const breakpointMd = 1000;
|
|
131
|
-
|
|
132
|
-
const breakpointM = breakpointMd;
|
|
133
|
-
|
|
134
|
-
const breakpointSm = 760;
|
|
135
|
-
|
|
136
|
-
const breakpointS = breakpointSm;
|
|
137
|
-
|
|
138
|
-
const breakpointXl = 1760;
|
|
139
|
-
|
|
140
|
-
const breakpointXL = breakpointXl;
|
|
141
|
-
|
|
142
|
-
const breakpointXs = 480;
|
|
143
|
-
|
|
144
|
-
const breakpointXS = breakpointXs;
|
|
145
|
-
|
|
146
|
-
const breakpoint2Xl = 1920;
|
|
147
|
-
|
|
148
|
-
const breakpointXXL = breakpoint2Xl;
|
|
149
|
-
|
|
150
|
-
const breakpoint = {
|
|
151
|
-
base: breakpointBase,
|
|
152
|
-
xs: breakpointXS,
|
|
153
|
-
s: breakpointS,
|
|
154
|
-
m: breakpointM,
|
|
155
|
-
l: breakpointL,
|
|
156
|
-
xl: breakpointXL,
|
|
157
|
-
xxl: breakpointXXL,
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
function getMediaQueryMin(min) {
|
|
161
|
-
return `@media(min-width:${breakpoint[min]}px)`;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
165
|
-
|
|
166
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
|
|
167
|
-
const spacingFluidMedium = spacingFluidMd;
|
|
168
|
-
|
|
169
|
-
const gridGap = spacingFluidMedium;
|
|
170
|
-
|
|
171
|
-
const _gridWidthMax = '2560px';
|
|
172
|
-
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
173
|
-
const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
|
|
174
|
-
const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
|
|
175
|
-
const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
|
|
176
|
-
|
|
177
|
-
const columnMap = {
|
|
178
|
-
narrow: 4,
|
|
179
|
-
basic: 2,
|
|
180
|
-
extended: 1,
|
|
181
|
-
};
|
|
182
|
-
const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
|
|
183
|
-
const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
|
|
184
|
-
const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
|
|
185
|
-
const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
|
|
186
|
-
const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
|
|
187
|
-
|
|
188
|
-
const gridFullOffset = _gridPadding;
|
|
189
|
-
|
|
190
|
-
const gridWideOffsetBase = _gridSafeZoneBase;
|
|
191
|
-
|
|
192
|
-
const gridWideOffsetS = _gridSafeZoneS;
|
|
193
|
-
|
|
194
|
-
const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
|
|
195
|
-
|
|
196
|
-
const gridWideOffset = {
|
|
197
|
-
base: gridWideOffsetBase,
|
|
198
|
-
s: gridWideOffsetS,
|
|
199
|
-
xxl: gridWideOffsetXXL,
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
const gridExtendedOffsetBase = _gridSafeZoneBase;
|
|
203
|
-
|
|
204
|
-
const gridExtendedOffsetS = _getGridOffsetS('extended');
|
|
205
|
-
|
|
206
|
-
const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
|
|
207
|
-
|
|
208
|
-
const gridExtendedOffset = {
|
|
209
|
-
base: gridExtendedOffsetBase,
|
|
210
|
-
s: gridExtendedOffsetS,
|
|
211
|
-
xxl: gridExtendedOffsetXXL,
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
const gridBasicOffsetBase = _gridSafeZoneBase;
|
|
215
|
-
|
|
216
|
-
const gridBasicOffsetS = _getGridOffsetS('basic');
|
|
217
|
-
|
|
218
|
-
const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
|
|
219
|
-
|
|
220
|
-
const gridBasicOffset = {
|
|
221
|
-
base: gridBasicOffsetBase,
|
|
222
|
-
s: gridBasicOffsetS,
|
|
223
|
-
xxl: gridBasicOffsetXXL,
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
227
|
-
|
|
228
|
-
function getMediaQueryMax(max) {
|
|
229
|
-
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
const durationLg = '.6s';
|
|
233
|
-
|
|
234
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationLg instead. */
|
|
235
|
-
const motionDurationLong = durationLg;
|
|
236
|
-
|
|
237
|
-
const durationMd$1 = '.4s';
|
|
238
|
-
|
|
239
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
|
|
240
|
-
const motionDurationModerate = durationMd$1;
|
|
241
|
-
|
|
242
|
-
const durationSm$1 = '.25s';
|
|
243
|
-
|
|
244
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationSm instead. */
|
|
245
|
-
const motionDurationShort = durationSm$1;
|
|
246
|
-
|
|
247
|
-
const durationXl$1 = '1.2s';
|
|
248
|
-
|
|
249
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationXl instead. */
|
|
250
|
-
const motionDurationVeryLong = durationXl$1;
|
|
251
|
-
|
|
252
|
-
const easeInOut = 'cubic-bezier(.25,.1,.25,1)';
|
|
253
|
-
|
|
254
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use easeInOut instead. */
|
|
255
|
-
const motionEasingBase = easeInOut;
|
|
256
|
-
|
|
257
|
-
const easeIn = 'cubic-bezier(0,0,.2,1)';
|
|
258
|
-
|
|
259
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
|
|
260
|
-
const motionEasingIn = easeIn;
|
|
261
|
-
|
|
262
|
-
const easeOut = 'cubic-bezier(.4,0,.5,1)';
|
|
263
|
-
|
|
264
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
|
|
265
|
-
const motionEasingOut = easeOut;
|
|
266
|
-
|
|
267
|
-
const shadowLg = '0px 8px 40px rgba(0,0,0,.16)';
|
|
268
|
-
|
|
269
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use boxShadow: shadowLg instead. */
|
|
270
|
-
const dropShadowHighStyle = {
|
|
271
|
-
boxShadow: shadowLg,
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
const spacingFluidLg = 'clamp(32px, 2.75vw + 23px, 76px)';
|
|
275
|
-
|
|
276
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidLg instead. */
|
|
277
|
-
const spacingFluidLarge = spacingFluidLg;
|
|
278
|
-
|
|
279
|
-
const spacingFluidSm = 'clamp(8px, 0.5vw + 6px, 16px)';
|
|
280
|
-
|
|
281
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidSm instead. */
|
|
282
|
-
const spacingFluidSmall = spacingFluidSm;
|
|
283
|
-
|
|
284
|
-
const spacingFluidXs = 'clamp(4px, 0.25vw + 3px, 8px)';
|
|
285
|
-
|
|
286
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidXs instead. */
|
|
287
|
-
const spacingFluidXSmall = spacingFluidXs;
|
|
288
|
-
|
|
289
|
-
const spacingStaticMd$1 = '16px';
|
|
290
|
-
|
|
291
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticMd instead. */
|
|
292
|
-
const spacingStaticMedium = spacingStaticMd$1;
|
|
293
|
-
|
|
294
|
-
const spacingStaticSm$2 = '8px';
|
|
295
|
-
|
|
296
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticSm instead. */
|
|
297
|
-
const spacingStaticSmall = spacingStaticSm$2;
|
|
298
|
-
|
|
299
|
-
const spacingStaticXs$3 = '4px';
|
|
300
|
-
|
|
301
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticXs instead. */
|
|
302
|
-
const spacingStaticXSmall = spacingStaticXs$3;
|
|
303
|
-
|
|
304
|
-
const spacingStaticXs$2 = spacingStaticXs$3;
|
|
305
|
-
|
|
306
|
-
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
307
|
-
const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
308
|
-
|
|
309
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingSm instead. */
|
|
310
|
-
const headingSmallStyle = {
|
|
311
|
-
font: `${_headingFontPartA}${fontSizeHeadingSmall}${_headingFontPartB}`,
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingMd instead. */
|
|
315
|
-
const headingMediumStyle = {
|
|
316
|
-
font: `${_headingFontPartA}${fontSizeHeadingMedium}${_headingFontPartB}`,
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingXl instead. */
|
|
320
|
-
const headingXLargeStyle = {
|
|
321
|
-
font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeading2Xl instead. */
|
|
325
|
-
const headingXXLargeStyle = {
|
|
326
|
-
font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
330
|
-
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
331
|
-
|
|
332
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseText2Xs instead. */
|
|
333
|
-
const textXXSmallStyle = {
|
|
334
|
-
font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
|
|
338
|
-
const textXSmallStyle = {
|
|
339
|
-
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
|
|
343
|
-
const textSmallStyle = {
|
|
344
|
-
font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextMd instead. */
|
|
348
|
-
const textMediumStyle = {
|
|
349
|
-
font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
const proseTextSmStyle = {
|
|
353
|
-
font: `normal normal ${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
354
|
-
};
|
|
355
|
-
|
|
356
3
|
const alphaDisabled = 0.4;
|
|
357
4
|
|
|
358
5
|
const blurFrosted = 'var(--p-blur-frosted)';
|
|
@@ -417,6 +64,8 @@ const colorInfo = 'var(--p-color-info)';
|
|
|
417
64
|
|
|
418
65
|
const colorInfoFrosted = 'var(--p-color-info-frosted)';
|
|
419
66
|
|
|
67
|
+
const colorInfoFrostedSoft = 'var(--p-color-info-frosted-soft)';
|
|
68
|
+
|
|
420
69
|
const colorInfoMedium = 'var(--p-color-info-medium)';
|
|
421
70
|
|
|
422
71
|
const colorSuccess = 'var(--p-color-success)';
|
|
@@ -433,11 +82,13 @@ const colorWarning = 'var(--p-color-warning)';
|
|
|
433
82
|
|
|
434
83
|
const colorWarningFrosted = 'var(--p-color-warning-frosted)';
|
|
435
84
|
|
|
85
|
+
const colorWarningFrostedSoft = 'var(--p-color-warning-frosted-soft)';
|
|
86
|
+
|
|
436
87
|
const colorWarningMedium = 'var(--p-color-warning-medium)';
|
|
437
88
|
|
|
438
|
-
const fontPorscheNext = 'var(--p-font-porsche-next)';
|
|
89
|
+
const fontPorscheNext$1 = 'var(--p-font-porsche-next)';
|
|
439
90
|
|
|
440
|
-
const leadingNormal = 'var(--p-leading-normal)';
|
|
91
|
+
const leadingNormal$1 = 'var(--p-leading-normal)';
|
|
441
92
|
|
|
442
93
|
const typescale2Xl = 'var(--p-typescale-2xl)';
|
|
443
94
|
|
|
@@ -453,7 +104,7 @@ const typescaleLg = 'var(--p-typescale-lg)';
|
|
|
453
104
|
|
|
454
105
|
const typescaleMd = 'var(--p-typescale-md)';
|
|
455
106
|
|
|
456
|
-
const typescaleSm = 'var(--p-typescale-sm)';
|
|
107
|
+
const typescaleSm$1 = 'var(--p-typescale-sm)';
|
|
457
108
|
|
|
458
109
|
const typescaleXl = 'var(--p-typescale-xl)';
|
|
459
110
|
|
|
@@ -461,16 +112,36 @@ const typescaleXs$1 = 'var(--p-typescale-xs)';
|
|
|
461
112
|
|
|
462
113
|
const fontWeightBold = 'var(--p-font-weight-bold)';
|
|
463
114
|
|
|
464
|
-
const fontWeightNormal = 'var(--p-font-weight-normal)';
|
|
115
|
+
const fontWeightNormal$1 = 'var(--p-font-weight-normal)';
|
|
465
116
|
|
|
466
117
|
const fontWeightSemibold = 'var(--p-font-weight-semibold)';
|
|
467
118
|
|
|
468
|
-
const
|
|
119
|
+
const durationLg = 'var(--p-duration-lg)';
|
|
120
|
+
|
|
121
|
+
const durationMd$1 = 'var(--p-duration-md)';
|
|
469
122
|
|
|
470
123
|
const durationSm = 'var(--p-duration-sm)';
|
|
471
124
|
|
|
472
125
|
const durationXl = 'var(--p-duration-xl)';
|
|
473
126
|
|
|
127
|
+
const easeIn$1 = 'var(--p-ease-in)';
|
|
128
|
+
|
|
129
|
+
const easeInOut = 'var(--p-ease-in-out)';
|
|
130
|
+
|
|
131
|
+
const easeOut$1 = 'var(--p-ease-out)';
|
|
132
|
+
|
|
133
|
+
const shadowLg = 'var(--p-shadow-lg)';
|
|
134
|
+
|
|
135
|
+
const spacingFluidLg = 'var(--p-spacing-fluid-lg)';
|
|
136
|
+
|
|
137
|
+
const spacingFluidMd$1 = 'var(--p-spacing-fluid-md)';
|
|
138
|
+
|
|
139
|
+
const spacingFluidSm = 'var(--p-spacing-fluid-sm)';
|
|
140
|
+
|
|
141
|
+
const spacingFluidXs = 'var(--p-spacing-fluid-xs)';
|
|
142
|
+
|
|
143
|
+
const spacingStatic2Xs = 'var(--p-spacing-static-2xs)';
|
|
144
|
+
|
|
474
145
|
const spacingStaticMd = 'var(--p-spacing-static-md)';
|
|
475
146
|
|
|
476
147
|
const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
|
|
@@ -482,20 +153,17 @@ const forcedColorsMediaQuery = (style) => {
|
|
|
482
153
|
};
|
|
483
154
|
|
|
484
155
|
const motionDurationMap = {
|
|
485
|
-
short:
|
|
486
|
-
moderate:
|
|
487
|
-
long:
|
|
488
|
-
veryLong:
|
|
156
|
+
short: durationSm,
|
|
157
|
+
moderate: durationMd$1,
|
|
158
|
+
long: durationLg,
|
|
159
|
+
veryLong: durationXl,
|
|
489
160
|
};
|
|
490
161
|
const motionEasingMap = {
|
|
491
|
-
base:
|
|
492
|
-
in:
|
|
493
|
-
out:
|
|
162
|
+
base: easeInOut,
|
|
163
|
+
in: easeIn$1,
|
|
164
|
+
out: easeOut$1,
|
|
494
165
|
linear: 'linear',
|
|
495
166
|
};
|
|
496
|
-
const dismissButtonJssStyle = {
|
|
497
|
-
'--p-internal-button-scaling': 0.5,
|
|
498
|
-
};
|
|
499
167
|
const cssVariableTransitionDuration = '--p-transition-duration';
|
|
500
168
|
const cssVariableAnimationDuration = '--p-animation-duration';
|
|
501
169
|
const getAnimation = (name, duration = 'short', easing = 'base') => {
|
|
@@ -516,7 +184,7 @@ const addImportantToEachRule = (input) => {
|
|
|
516
184
|
};
|
|
517
185
|
const getFocusBaseStyles = (offset = 2) => {
|
|
518
186
|
return {
|
|
519
|
-
outline:
|
|
187
|
+
outline: `2px solid ${colorFocus}`,
|
|
520
188
|
outlineOffset: `${offset}px`,
|
|
521
189
|
...forcedColorsMediaQuery({
|
|
522
190
|
outlineColor: 'Highlight',
|
|
@@ -584,6 +252,14 @@ const hoverMediaQuery = (style) => {
|
|
|
584
252
|
return { '@media(hover:hover)': style };
|
|
585
253
|
};
|
|
586
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Utility to wrap JSS styles in `@media (pointer: coarse)`,
|
|
257
|
+
* which targets touch devices with an imprecise pointer.
|
|
258
|
+
*/
|
|
259
|
+
const pointerCoarseMediaQuery = (style) => {
|
|
260
|
+
return { '@media(pointer:coarse)': style };
|
|
261
|
+
};
|
|
262
|
+
|
|
587
263
|
function _extends() {
|
|
588
264
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
589
265
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -3759,15 +3435,209 @@ function requireDist () {
|
|
|
3759
3435
|
};
|
|
3760
3436
|
}
|
|
3761
3437
|
|
|
3762
|
-
dist = jssCombineAndSortMQ;
|
|
3763
|
-
return dist;
|
|
3764
|
-
}
|
|
3438
|
+
dist = jssCombineAndSortMQ;
|
|
3439
|
+
return dist;
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
var distExports = requireDist();
|
|
3443
|
+
var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
3444
|
+
|
|
3445
|
+
const isDisabledOrLoading = (disabled, loading) => {
|
|
3446
|
+
return disabled || loading;
|
|
3447
|
+
};
|
|
3448
|
+
|
|
3449
|
+
const fontPorscheNext = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
3450
|
+
|
|
3451
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
|
|
3452
|
+
const fontFamily = fontPorscheNext;
|
|
3453
|
+
|
|
3454
|
+
const leadingNormal = 'calc(6px + 2.125ex)';
|
|
3455
|
+
|
|
3456
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
|
|
3457
|
+
const fontLineHeight = leadingNormal;
|
|
3458
|
+
|
|
3459
|
+
const typescaleSm = '1rem';
|
|
3460
|
+
|
|
3461
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
3462
|
+
const fontSizeTextSmall = typescaleSm;
|
|
3463
|
+
|
|
3464
|
+
const typescaleXs = '.875rem';
|
|
3465
|
+
|
|
3466
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
|
|
3467
|
+
const fontSizeTextXSmall = typescaleXs;
|
|
3468
|
+
|
|
3469
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
3470
|
+
const fontStyleNormal = 'normal';
|
|
3471
|
+
|
|
3472
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
3473
|
+
const fontVariant = 'normal';
|
|
3474
|
+
|
|
3475
|
+
const fontWeightNormal = 400;
|
|
3476
|
+
|
|
3477
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
|
|
3478
|
+
const fontWeightRegular = fontWeightNormal;
|
|
3479
|
+
|
|
3480
|
+
const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
|
|
3481
|
+
'hsla(0,0%,0%,.8) 8.1%,' +
|
|
3482
|
+
'hsla(0,0%,0%,.8) 15.5%,' +
|
|
3483
|
+
'hsla(0,0%,0%,.8) 22.5%,' +
|
|
3484
|
+
'hsla(0,0%,0%,.78) 29%,' +
|
|
3485
|
+
'hsla(0,0%,0%,.73) 35.3%,' +
|
|
3486
|
+
'hsla(0,0%,0%,.67) 41.2%,' +
|
|
3487
|
+
'hsla(0,0%,0%,.6) 47.1%,' +
|
|
3488
|
+
'hsla(0,0%,0%,.52) 52.9%,' +
|
|
3489
|
+
'hsla(0,0%,0%,.44) 58.8%,' +
|
|
3490
|
+
'hsla(0,0%,0%,.33) 64.7%,' +
|
|
3491
|
+
'hsla(0,0%,0%,.22) 71%,' +
|
|
3492
|
+
'hsla(0,0%,0%,.12) 77.5%,' +
|
|
3493
|
+
'hsla(0,0%,0%,.05) 84.5%,' +
|
|
3494
|
+
'hsla(0,0%,0%,.011) 91.9%,' +
|
|
3495
|
+
'hsla(0,0%,0%,0) 100%';
|
|
3496
|
+
|
|
3497
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
|
|
3498
|
+
const gradientToBottomStyle = {
|
|
3499
|
+
background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
/** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
|
|
3503
|
+
const gradientToTopStyle = {
|
|
3504
|
+
background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
|
|
3505
|
+
};
|
|
3506
|
+
|
|
3507
|
+
const breakpointBase = 0;
|
|
3508
|
+
|
|
3509
|
+
const breakpointLg = 1300;
|
|
3510
|
+
|
|
3511
|
+
const breakpointL = breakpointLg;
|
|
3512
|
+
|
|
3513
|
+
const breakpointMd = 1000;
|
|
3514
|
+
|
|
3515
|
+
const breakpointM = breakpointMd;
|
|
3516
|
+
|
|
3517
|
+
const breakpointSm = 760;
|
|
3518
|
+
|
|
3519
|
+
const breakpointS = breakpointSm;
|
|
3520
|
+
|
|
3521
|
+
const breakpointXl = 1760;
|
|
3522
|
+
|
|
3523
|
+
const breakpointXL = breakpointXl;
|
|
3524
|
+
|
|
3525
|
+
const breakpointXs = 480;
|
|
3526
|
+
|
|
3527
|
+
const breakpointXS = breakpointXs;
|
|
3528
|
+
|
|
3529
|
+
const breakpoint2Xl = 1920;
|
|
3530
|
+
|
|
3531
|
+
const breakpointXXL = breakpoint2Xl;
|
|
3532
|
+
|
|
3533
|
+
const breakpoint = {
|
|
3534
|
+
base: breakpointBase,
|
|
3535
|
+
xs: breakpointXS,
|
|
3536
|
+
s: breakpointS,
|
|
3537
|
+
m: breakpointM,
|
|
3538
|
+
l: breakpointL,
|
|
3539
|
+
xl: breakpointXL,
|
|
3540
|
+
xxl: breakpointXXL,
|
|
3541
|
+
};
|
|
3542
|
+
|
|
3543
|
+
function getMediaQueryMin(min) {
|
|
3544
|
+
return `@media(min-width:${breakpoint[min]}px)`;
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
3548
|
+
|
|
3549
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
|
|
3550
|
+
const spacingFluidMedium = spacingFluidMd;
|
|
3551
|
+
|
|
3552
|
+
const gridGap = spacingFluidMedium;
|
|
3553
|
+
|
|
3554
|
+
const _gridWidthMax = '2560px';
|
|
3555
|
+
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
3556
|
+
const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
|
|
3557
|
+
const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
|
|
3558
|
+
const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
|
|
3559
|
+
|
|
3560
|
+
const columnMap = {
|
|
3561
|
+
narrow: 4,
|
|
3562
|
+
basic: 2,
|
|
3563
|
+
extended: 1,
|
|
3564
|
+
};
|
|
3565
|
+
const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
|
|
3566
|
+
const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
|
|
3567
|
+
const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
|
|
3568
|
+
const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
|
|
3569
|
+
const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
|
|
3570
|
+
|
|
3571
|
+
const gridFullOffset = _gridPadding;
|
|
3572
|
+
|
|
3573
|
+
const gridWideOffsetBase = _gridSafeZoneBase;
|
|
3574
|
+
|
|
3575
|
+
const gridWideOffsetS = _gridSafeZoneS;
|
|
3576
|
+
|
|
3577
|
+
const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
|
|
3578
|
+
|
|
3579
|
+
const gridWideOffset = {
|
|
3580
|
+
base: gridWideOffsetBase,
|
|
3581
|
+
s: gridWideOffsetS,
|
|
3582
|
+
xxl: gridWideOffsetXXL,
|
|
3583
|
+
};
|
|
3584
|
+
|
|
3585
|
+
const gridExtendedOffsetBase = _gridSafeZoneBase;
|
|
3586
|
+
|
|
3587
|
+
const gridExtendedOffsetS = _getGridOffsetS('extended');
|
|
3588
|
+
|
|
3589
|
+
const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
|
|
3590
|
+
|
|
3591
|
+
const gridExtendedOffset = {
|
|
3592
|
+
base: gridExtendedOffsetBase,
|
|
3593
|
+
s: gridExtendedOffsetS,
|
|
3594
|
+
xxl: gridExtendedOffsetXXL,
|
|
3595
|
+
};
|
|
3596
|
+
|
|
3597
|
+
const gridBasicOffsetBase = _gridSafeZoneBase;
|
|
3598
|
+
|
|
3599
|
+
const gridBasicOffsetS = _getGridOffsetS('basic');
|
|
3600
|
+
|
|
3601
|
+
const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
|
|
3602
|
+
|
|
3603
|
+
const gridBasicOffset = {
|
|
3604
|
+
base: gridBasicOffsetBase,
|
|
3605
|
+
s: gridBasicOffsetS,
|
|
3606
|
+
xxl: gridBasicOffsetXXL,
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
3610
|
+
|
|
3611
|
+
function getMediaQueryMax(max) {
|
|
3612
|
+
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
3613
|
+
}
|
|
3614
|
+
|
|
3615
|
+
const durationMd = '.4s';
|
|
3616
|
+
|
|
3617
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
|
|
3618
|
+
const motionDurationModerate = durationMd;
|
|
3619
|
+
|
|
3620
|
+
const easeIn = 'cubic-bezier(0,0,.2,1)';
|
|
3621
|
+
|
|
3622
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
|
|
3623
|
+
const motionEasingIn = easeIn;
|
|
3624
|
+
|
|
3625
|
+
const easeOut = 'cubic-bezier(.4,0,.5,1)';
|
|
3765
3626
|
|
|
3766
|
-
|
|
3767
|
-
|
|
3627
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
|
|
3628
|
+
const motionEasingOut = easeOut;
|
|
3768
3629
|
|
|
3769
|
-
const
|
|
3770
|
-
|
|
3630
|
+
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
3631
|
+
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
3632
|
+
|
|
3633
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
|
|
3634
|
+
const textXSmallStyle = {
|
|
3635
|
+
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
3636
|
+
};
|
|
3637
|
+
|
|
3638
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
|
|
3639
|
+
const textSmallStyle = {
|
|
3640
|
+
font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
|
|
3771
3641
|
};
|
|
3772
3642
|
|
|
3773
3643
|
const parseJSON = (prop) => {
|
|
@@ -3905,7 +3775,7 @@ const OPTION_LIST_SAFE_ZONE = 6;
|
|
|
3905
3775
|
|
|
3906
3776
|
const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
|
|
3907
3777
|
|
|
3908
|
-
const prefix = `[Porsche Design System v${"4.0.0-rc.
|
|
3778
|
+
const prefix = `[Porsche Design System v${"4.0.0-rc.2"}]` // this part isn't covered by unit tests
|
|
3909
3779
|
;
|
|
3910
3780
|
const consoleError = (...messages) => {
|
|
3911
3781
|
console.error(prefix, ...messages);
|
|
@@ -4044,7 +3914,7 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4044
3914
|
const paddingBlock = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
|
|
4045
3915
|
const paddingInline = `calc(11.2px * (${compactFactor} - 0.64285714) + 12px)`;
|
|
4046
3916
|
const gap = `calc(11.2px * (${compactFactor} - 0.64285714) + 4px)`;
|
|
4047
|
-
const
|
|
3917
|
+
const paddingTop = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
|
|
4048
3918
|
const isIconAlignedStart = alignMarker === 'start';
|
|
4049
3919
|
return getCss({
|
|
4050
3920
|
'@global': {
|
|
@@ -4093,12 +3963,12 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4093
3963
|
font: 'inherit',
|
|
4094
3964
|
fontWeight: fontWeightSemibold,
|
|
4095
3965
|
...buildResponsiveStyles(size, (sizeValue) => ({
|
|
4096
|
-
fontSize: sizeValue === 'medium' ? typescaleMd : typescaleSm,
|
|
3966
|
+
fontSize: sizeValue === 'medium' ? typescaleMd : typescaleSm$1,
|
|
4097
3967
|
})),
|
|
4098
3968
|
},
|
|
4099
3969
|
details: {
|
|
4100
3970
|
all: 'unset',
|
|
4101
|
-
font: `${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`, // enables font inheritance for slotted content
|
|
3971
|
+
font: `${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`, // enables font inheritance for slotted content
|
|
4102
3972
|
color: colorPrimary, // enables color inheritance for slotted content
|
|
4103
3973
|
display: 'grid',
|
|
4104
3974
|
gridTemplate: `repeat(2, auto) / ${hasSummaryBefore ? 'auto ' : ''}${isIconAlignedStart ? 'auto minmax(0, 1fr)' : 'minmax(0, 1fr) auto'}${hasSummaryAfter ? ' auto ' : ''}`,
|
|
@@ -4106,7 +3976,10 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4106
3976
|
alignItems: 'center',
|
|
4107
3977
|
padding: `var(${cssVarPaddingBlock}, ${background === 'none' ? '0' : paddingBlock}) var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline})`,
|
|
4108
3978
|
background: backgroundMap$1[background],
|
|
4109
|
-
...(background === 'frosted' &&
|
|
3979
|
+
...(background === 'frosted' && {
|
|
3980
|
+
WebkitBackdropFilter: blurFrosted,
|
|
3981
|
+
backdropFilter: blurFrosted,
|
|
3982
|
+
}),
|
|
4110
3983
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusXl})`,
|
|
4111
3984
|
...forcedColorsMediaQuery({
|
|
4112
3985
|
outline: '1px solid CanvasText',
|
|
@@ -4126,12 +3999,15 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4126
3999
|
gridTemplateRows: '0fr',
|
|
4127
4000
|
visibility: 'hidden', // 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
|
|
4128
4001
|
// as soon as all browsers are supporting `allow-discrete` reliable, visibility transition shouldn't be necessary anymore
|
|
4129
|
-
transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationMap[duration]}), ${getTransition('grid-template-rows', duration, easing)}, ${getTransition('
|
|
4002
|
+
transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationMap[duration]}), ${getTransition('grid-template-rows', duration, easing)}, ${getTransition('padding-top', duration, easing)}, ${getTransition('opacity', duration, easing)}`,
|
|
4130
4003
|
},
|
|
4131
4004
|
'&[open]': {
|
|
4132
4005
|
'& > div': {
|
|
4133
4006
|
opacity: 1,
|
|
4134
|
-
|
|
4007
|
+
paddingTop,
|
|
4008
|
+
zIndex: 2, // Ensure details are above summary when using custom padding
|
|
4009
|
+
paddingInline: `var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline})`,
|
|
4010
|
+
marginInline: `calc(-1 * var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline}))`,
|
|
4135
4011
|
// as soon as all browsers support calc-size(auto) to be transitionable, we can remove the grid-template-rows rule and animation
|
|
4136
4012
|
gridTemplateRows: '1fr',
|
|
4137
4013
|
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
|
|
@@ -4201,93 +4077,6 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4201
4077
|
const TOAST_Z_INDEX = 999999;
|
|
4202
4078
|
const BANNER_Z_INDEX = 99;
|
|
4203
4079
|
|
|
4204
|
-
const getBannerPopoverResetStyles = () => {
|
|
4205
|
-
return {
|
|
4206
|
-
position: 'fixed',
|
|
4207
|
-
margin: 0,
|
|
4208
|
-
padding: 0,
|
|
4209
|
-
inset: 'auto', // ua popover reset
|
|
4210
|
-
width: 'auto', // ua popover reset
|
|
4211
|
-
height: 'auto', // ua popover reset
|
|
4212
|
-
maxWidth: '100%', // If component is wrapped in container with maxWidth
|
|
4213
|
-
border: '0', // ua popover reset
|
|
4214
|
-
outline: '0', // ua popover reset
|
|
4215
|
-
overflow: 'visible', // ua popover reset
|
|
4216
|
-
};
|
|
4217
|
-
};
|
|
4218
|
-
|
|
4219
|
-
/**
|
|
4220
|
-
* @css-variable {"name": "--p-banner-position-top", "description": "Position top of banner", "defaultValue": "56px"}
|
|
4221
|
-
* @css-variable {"name": "--p-banner-position-bottom", "description": "Position bottom of banner. Only has an effect below breakpoint 's'.", "defaultValue": "56px"}
|
|
4222
|
-
*/
|
|
4223
|
-
const cssVariableTop = '--p-banner-position-top';
|
|
4224
|
-
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4225
|
-
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4226
|
-
const topBottomFallback = '56px';
|
|
4227
|
-
const getComponentCss$18 = (isOpen) => {
|
|
4228
|
-
const easing = isOpen ? 'in' : 'out';
|
|
4229
|
-
const transition = `visibility 0s linear var(${cssVariableTransitionDuration}, ${isOpen ? '0s' : motionDurationLong}), ${getTransition('transform', 'moderate', easing)}`;
|
|
4230
|
-
const transitionChild = `${getTransition('opacity', 'moderate', easing)}`;
|
|
4231
|
-
return getCss({
|
|
4232
|
-
'@global': {
|
|
4233
|
-
':host': {
|
|
4234
|
-
display: 'block',
|
|
4235
|
-
...addImportantToEachRule({
|
|
4236
|
-
all: 'unset',
|
|
4237
|
-
...getBannerPopoverResetStyles(),
|
|
4238
|
-
inset: `auto ${gridExtendedOffsetBase} var(${cssVariableBottom},${topBottomFallback})`,
|
|
4239
|
-
zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
|
|
4240
|
-
borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`, // needed for rounded box-shadow
|
|
4241
|
-
'&::backdrop': {
|
|
4242
|
-
display: 'none',
|
|
4243
|
-
},
|
|
4244
|
-
'& > :first-child': {
|
|
4245
|
-
opacity: 0,
|
|
4246
|
-
...dropShadowHighStyle,
|
|
4247
|
-
...(isOpen
|
|
4248
|
-
? {
|
|
4249
|
-
opacity: 1,
|
|
4250
|
-
}
|
|
4251
|
-
: {
|
|
4252
|
-
opacity: 0,
|
|
4253
|
-
}),
|
|
4254
|
-
transition: transitionChild,
|
|
4255
|
-
// // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
|
|
4256
|
-
'@supports (transition-behavior: allow-discrete)': {
|
|
4257
|
-
transition: `${transitionChild}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
|
|
4258
|
-
},
|
|
4259
|
-
},
|
|
4260
|
-
...(isOpen
|
|
4261
|
-
? {
|
|
4262
|
-
visibility: 'inherit',
|
|
4263
|
-
pointerEvents: 'inherit',
|
|
4264
|
-
transform: 'translate3d(0,0,0)',
|
|
4265
|
-
}
|
|
4266
|
-
: {
|
|
4267
|
-
visibility: 'hidden',
|
|
4268
|
-
pointerEvents: 'none',
|
|
4269
|
-
transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
|
|
4270
|
-
}),
|
|
4271
|
-
transition,
|
|
4272
|
-
// during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
|
|
4273
|
-
'@supports (transition-behavior: allow-discrete)': {
|
|
4274
|
-
transition: `${transition}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
|
|
4275
|
-
},
|
|
4276
|
-
[getMediaQueryMin('s')]: {
|
|
4277
|
-
inset: `var(${cssVariableTop},${topBottomFallback}) ${gridExtendedOffsetS} auto`,
|
|
4278
|
-
...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
|
|
4279
|
-
},
|
|
4280
|
-
[getMediaQueryMin('xxl')]: {
|
|
4281
|
-
insetInline: gridExtendedOffsetXXL,
|
|
4282
|
-
},
|
|
4283
|
-
...hostHiddenStyles,
|
|
4284
|
-
}),
|
|
4285
|
-
},
|
|
4286
|
-
...preventFoucOfNestedElementsStyles,
|
|
4287
|
-
},
|
|
4288
|
-
});
|
|
4289
|
-
};
|
|
4290
|
-
|
|
4291
4080
|
const colorMap$3 = {
|
|
4292
4081
|
primary: colorPrimary,
|
|
4293
4082
|
'contrast-higher': colorContrastHigher,
|
|
@@ -4302,17 +4091,38 @@ const colorMap$3 = {
|
|
|
4302
4091
|
inherit: 'currentcolor',
|
|
4303
4092
|
};
|
|
4304
4093
|
|
|
4094
|
+
const notificationBackgroundMap = {
|
|
4095
|
+
info: colorInfoFrosted,
|
|
4096
|
+
warning: colorWarningFrosted,
|
|
4097
|
+
success: colorSuccessFrosted,
|
|
4098
|
+
error: colorErrorFrosted,
|
|
4099
|
+
};
|
|
4100
|
+
|
|
4101
|
+
const notificationColorMap = {
|
|
4102
|
+
info: colorInfo,
|
|
4103
|
+
warning: colorWarning,
|
|
4104
|
+
success: colorSuccess,
|
|
4105
|
+
error: colorError,
|
|
4106
|
+
};
|
|
4107
|
+
|
|
4108
|
+
const notificationIconMap = {
|
|
4109
|
+
info: getInlineSVGBackgroundImage('<path d="M12 3c-4.95 0-9 4.05-9 9s4.05 9 9 9 9-4.05 9-9-4.05-9-9-9m-.75 4.5h1.5V9h-1.5zm1.5 8.5h-1.5v-6h1.5z"/>'),
|
|
4110
|
+
warning: getInlineSVGBackgroundImage('<path d="M21.58 18.26 13.3 3.75A1.5 1.5 0 0 0 12 3a1.5 1.5 0 0 0-1.3.75l-8.28 14.5a1.5 1.5 0 0 0 0 1.5c.28.47.76.75 1.3.75h16.56a1.5 1.5 0 0 0 1.3-2.25M13 17.5h-2v-2h2zm-.4-3.5h-1.2L11 8.5h2z"/>'),
|
|
4111
|
+
success: getInlineSVGBackgroundImage('<path d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18m-1.26 12.69-3.8-3.8 1.07-1.05 2.73 2.73 5.25-5.26 1.06 1.06z"/>'),
|
|
4112
|
+
error: getInlineSVGBackgroundImage('<path d="M18 3H6a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h4l2 2 2-2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5 3.5-.4 5.5h-1.2L11 6.5zm-2 7h2v2h-2z"/>'),
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4305
4115
|
const sizeMap$1 = {
|
|
4306
4116
|
'xx-small': typescale2Xs, // deprecated (alias)
|
|
4307
4117
|
'x-small': typescaleXs$1, // deprecated (alias)
|
|
4308
|
-
small: typescaleSm, // deprecated (alias)
|
|
4118
|
+
small: typescaleSm$1, // deprecated (alias)
|
|
4309
4119
|
medium: typescaleMd, // deprecated (alias)
|
|
4310
4120
|
large: typescaleLg, // deprecated (alias)
|
|
4311
4121
|
'x-large': typescaleXl, // deprecated (alias)
|
|
4312
4122
|
'xx-large': typescale2Xl, // deprecated (alias)
|
|
4313
4123
|
'2xs': typescale2Xs,
|
|
4314
4124
|
xs: typescaleXs$1,
|
|
4315
|
-
sm: typescaleSm,
|
|
4125
|
+
sm: typescaleSm$1,
|
|
4316
4126
|
md: typescaleMd,
|
|
4317
4127
|
lg: typescaleLg,
|
|
4318
4128
|
xl: typescaleXl,
|
|
@@ -4324,13 +4134,167 @@ const sizeMap$1 = {
|
|
|
4324
4134
|
};
|
|
4325
4135
|
|
|
4326
4136
|
const weightMap = {
|
|
4327
|
-
regular: fontWeightNormal, // deprecated
|
|
4137
|
+
regular: fontWeightNormal$1, // deprecated
|
|
4328
4138
|
'semi-bold': fontWeightSemibold, // deprecated
|
|
4329
|
-
normal: fontWeightNormal,
|
|
4139
|
+
normal: fontWeightNormal$1,
|
|
4330
4140
|
semibold: fontWeightSemibold,
|
|
4331
4141
|
bold: fontWeightBold,
|
|
4332
4142
|
};
|
|
4333
4143
|
|
|
4144
|
+
const getFunctionalComponentNotificationBaseStyles = (state, hasAction, hasDismissButton, hasHeadingOrHeadingSlot) => {
|
|
4145
|
+
return {
|
|
4146
|
+
'@global': {
|
|
4147
|
+
...(hasHeadingOrHeadingSlot && {
|
|
4148
|
+
'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
|
|
4149
|
+
all: 'unset',
|
|
4150
|
+
gridArea: '1/2',
|
|
4151
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4152
|
+
color: colorPrimary,
|
|
4153
|
+
},
|
|
4154
|
+
}),
|
|
4155
|
+
'slot:not([name]),slot[name="description"],p': {
|
|
4156
|
+
all: 'unset',
|
|
4157
|
+
gridArea: hasHeadingOrHeadingSlot ? '2/2' : '1/2',
|
|
4158
|
+
marginTop: hasHeadingOrHeadingSlot ? spacingStaticXs$1 : '0px',
|
|
4159
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4160
|
+
color: colorPrimary,
|
|
4161
|
+
},
|
|
4162
|
+
},
|
|
4163
|
+
notification: {
|
|
4164
|
+
display: 'grid',
|
|
4165
|
+
gridTemplate: `repeat(3, auto) / auto minmax(0, 1fr) repeat(2, auto)`,
|
|
4166
|
+
padding: `calc(${spacingStaticSm$1} + ${spacingFluidSm})`,
|
|
4167
|
+
borderRadius: `var(${legacyRadiusMedium}, ${radius2Xl})`,
|
|
4168
|
+
background: notificationBackgroundMap[state],
|
|
4169
|
+
WebkitBackdropFilter: blurFrosted,
|
|
4170
|
+
backdropFilter: blurFrosted,
|
|
4171
|
+
...forcedColorsMediaQuery({
|
|
4172
|
+
outline: '2px solid CanvasText',
|
|
4173
|
+
outlineOffset: '-2px',
|
|
4174
|
+
}),
|
|
4175
|
+
'&::before': {
|
|
4176
|
+
[getMediaQueryMin('s')]: {
|
|
4177
|
+
gridArea: '1/1',
|
|
4178
|
+
placeSelf: hasHeadingOrHeadingSlot ? 'center' : 'flex-start',
|
|
4179
|
+
content: '""',
|
|
4180
|
+
width: '1.5rem',
|
|
4181
|
+
height: '1.5rem',
|
|
4182
|
+
marginInlineEnd: spacingStaticSm$1,
|
|
4183
|
+
background: notificationColorMap[state],
|
|
4184
|
+
WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
4185
|
+
mask: `${notificationIconMap[state]} center/contain no-repeat`,
|
|
4186
|
+
...forcedColorsMediaQuery({
|
|
4187
|
+
background: 'CanvasText',
|
|
4188
|
+
}),
|
|
4189
|
+
},
|
|
4190
|
+
},
|
|
4191
|
+
},
|
|
4192
|
+
...(hasDismissButton && {
|
|
4193
|
+
dismiss: {
|
|
4194
|
+
gridArea: `1/4/-1`,
|
|
4195
|
+
alignSelf: 'flex-start',
|
|
4196
|
+
marginBlock: `calc(-6 * ${spacingStatic2Xs})`,
|
|
4197
|
+
marginInline: `${spacingStaticMd} calc(-6 * ${spacingStatic2Xs})`,
|
|
4198
|
+
},
|
|
4199
|
+
}),
|
|
4200
|
+
...(hasAction && {
|
|
4201
|
+
action: {
|
|
4202
|
+
gridArea: '3/1/auto/-1',
|
|
4203
|
+
marginTop: spacingStaticMd,
|
|
4204
|
+
[getMediaQueryMin('s')]: {
|
|
4205
|
+
gridArea: '1/3',
|
|
4206
|
+
marginTop: '0px',
|
|
4207
|
+
marginInlineStart: spacingStaticMd,
|
|
4208
|
+
},
|
|
4209
|
+
},
|
|
4210
|
+
}),
|
|
4211
|
+
};
|
|
4212
|
+
};
|
|
4213
|
+
|
|
4214
|
+
/**
|
|
4215
|
+
* @css-variable {"name": "--p-banner-max-w", "description": "Defines the maximum width of the Banner.", "defaultValue": "100ch"}
|
|
4216
|
+
*/
|
|
4217
|
+
const cssVarMaxWidth = '--p-banner-max-w';
|
|
4218
|
+
/**
|
|
4219
|
+
* @css-variable {"name": "--p-banner-top", "description": "Defines the distance from the top of the viewport. Only takes effect when the `position` property is set to `top` (at the respective breakpoint).", "defaultValue": "56px"}
|
|
4220
|
+
*/
|
|
4221
|
+
const cssVarTop = '--p-banner-top';
|
|
4222
|
+
/**
|
|
4223
|
+
* @css-variable {"name": "--p-banner-bottom", "description": "Defines the distance from the bottom of the viewport. Only takes effect when the `position` property is set to `bottom` (at the respective breakpoint).", "defaultValue": "56px"}
|
|
4224
|
+
*/
|
|
4225
|
+
const cssVarBottom = '--p-banner-bottom';
|
|
4226
|
+
/**
|
|
4227
|
+
* @css-variable {"name": "--p-banner-inset-x", "description": "Defines the horizontal offset of the Banner from the edges of the viewport.", "defaultValue": "max(22px, 10.625vw - 12px)"}
|
|
4228
|
+
*/
|
|
4229
|
+
const cssVarInsetX = '--p-banner-inset-x';
|
|
4230
|
+
const cssVarPositionTop = '--p-banner-position-top'; // deprecated (aliased)
|
|
4231
|
+
const cssVarPositionBottom = '--p-banner-position-bottom'; // deprecated (aliased)
|
|
4232
|
+
const topBottomFallback = '56px';
|
|
4233
|
+
const cssVariableZIndex = '--_p-banner-a';
|
|
4234
|
+
const getComponentCss$18 = (isOpen, position, state, hasDismissButton, hasHeadingOrHeadingSlot) => {
|
|
4235
|
+
const duration = isOpen ? 'moderate' : 'short';
|
|
4236
|
+
const easing = isOpen ? 'in' : 'out';
|
|
4237
|
+
const transition = `visibility 0s linear var(${cssVariableTransitionDuration},${isOpen ? '0s' : motionDurationMap[duration]}),${getTransition('transform', duration, easing)}`;
|
|
4238
|
+
return getCss({
|
|
4239
|
+
...mergeDeep({
|
|
4240
|
+
'@global': {
|
|
4241
|
+
':host': {
|
|
4242
|
+
display: 'contents',
|
|
4243
|
+
...addImportantToEachRule({
|
|
4244
|
+
...hostHiddenStyles,
|
|
4245
|
+
}),
|
|
4246
|
+
},
|
|
4247
|
+
...preventFoucOfNestedElementsStyles,
|
|
4248
|
+
'[popover]': {
|
|
4249
|
+
all: 'unset',
|
|
4250
|
+
position: 'fixed',
|
|
4251
|
+
zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, // Fallback for browsers lacking `transition-behavior: allow-discrete` — keeps the banner visible during fade-out after leaving the top layer.
|
|
4252
|
+
...buildResponsiveStyles(position, (v) => ({
|
|
4253
|
+
...(v === 'top' && {
|
|
4254
|
+
insetBlock: `var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback})) auto`,
|
|
4255
|
+
...(!isOpen && {
|
|
4256
|
+
transform: `translate3d(-50%,calc(-100% - var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback}))),0)`,
|
|
4257
|
+
}),
|
|
4258
|
+
}),
|
|
4259
|
+
...(v === 'bottom' && {
|
|
4260
|
+
insetBlock: `auto var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback}))`,
|
|
4261
|
+
...(!isOpen && {
|
|
4262
|
+
transform: `translate3d(-50%,calc(var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback})) + 100%),0)`,
|
|
4263
|
+
}),
|
|
4264
|
+
}),
|
|
4265
|
+
})),
|
|
4266
|
+
left: '50vw',
|
|
4267
|
+
width: `min(calc(100vw - 2 * var(${cssVarInsetX},${gridExtendedOffsetBase})),var(${cssVarMaxWidth},100ch))`,
|
|
4268
|
+
'&:popover-open': {
|
|
4269
|
+
overlay: 'auto',
|
|
4270
|
+
},
|
|
4271
|
+
'&::backdrop': {
|
|
4272
|
+
display: 'none',
|
|
4273
|
+
},
|
|
4274
|
+
visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
|
|
4275
|
+
pointerEvents: 'none', // element can't be interacted with mouse
|
|
4276
|
+
...(isOpen && {
|
|
4277
|
+
visibility: 'inherit',
|
|
4278
|
+
pointerEvents: 'inherit',
|
|
4279
|
+
transform: 'translate3d(-50%,0,0)',
|
|
4280
|
+
}),
|
|
4281
|
+
transition,
|
|
4282
|
+
// during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
|
|
4283
|
+
'@supports (transition-behavior: allow-discrete)': {
|
|
4284
|
+
transition: `${transition},${getTransition('overlay', duration, easing)} allow-discrete`,
|
|
4285
|
+
},
|
|
4286
|
+
},
|
|
4287
|
+
},
|
|
4288
|
+
}, {
|
|
4289
|
+
notification: {
|
|
4290
|
+
boxShadow: shadowLg,
|
|
4291
|
+
opacity: isOpen ? 1 : 0, // it's necessary to spit up opacity transition from [popover], otherwise frosted effect won't render
|
|
4292
|
+
transition: getTransition('opacity', duration, easing),
|
|
4293
|
+
},
|
|
4294
|
+
}, getFunctionalComponentNotificationBaseStyles(state, false, hasDismissButton, hasHeadingOrHeadingSlot)),
|
|
4295
|
+
});
|
|
4296
|
+
};
|
|
4297
|
+
|
|
4334
4298
|
// Needed for slotted anchor and hidden label, which then enlarges the hidden label to equal host size and indents the text to be visually hidden.
|
|
4335
4299
|
const getVisibilityJssStyle = (hideLabel) => {
|
|
4336
4300
|
return hideLabel
|
|
@@ -4371,7 +4335,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4371
4335
|
cursor: 'pointer',
|
|
4372
4336
|
color: colorMap$3[color],
|
|
4373
4337
|
textDecoration: underline ? 'underline' : 'none',
|
|
4374
|
-
font: `${fontWeightNormal} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
|
|
4338
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4375
4339
|
...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
|
|
4376
4340
|
gap: hidelabelValue ? 0 : spacingStaticXs$1,
|
|
4377
4341
|
})), buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
@@ -4459,7 +4423,7 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
|
|
|
4459
4423
|
icon: {
|
|
4460
4424
|
position: 'absolute',
|
|
4461
4425
|
top: 0,
|
|
4462
|
-
left: `calc(50% - ${leadingNormal} / 2)`,
|
|
4426
|
+
left: `calc(50% - ${leadingNormal$1} / 2)`,
|
|
4463
4427
|
},
|
|
4464
4428
|
}),
|
|
4465
4429
|
// .loading
|
|
@@ -4518,7 +4482,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4518
4482
|
all: 'unset',
|
|
4519
4483
|
zIndex: 3,
|
|
4520
4484
|
maxWidth: '34.375rem',
|
|
4521
|
-
|
|
4485
|
+
font: `${fontWeightNormal$1} ${typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4522
4486
|
color: colorPrimary,
|
|
4523
4487
|
hyphens: 'inherit',
|
|
4524
4488
|
...mergeDeep(buildResponsiveStyles(size, (v) => ({
|
|
@@ -4530,7 +4494,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4530
4494
|
},
|
|
4531
4495
|
root: {
|
|
4532
4496
|
display: 'grid',
|
|
4533
|
-
gridTemplate: `${
|
|
4497
|
+
gridTemplate: `${spacingFluidMd$1} auto minmax(0px, 1fr) auto ${spacingFluidMd$1}/${spacingFluidMd$1} minmax(0px, 1fr) ${spacingFluidMd$1}`,
|
|
4534
4498
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
4535
4499
|
// Safari workaround to scale the tile properly
|
|
4536
4500
|
'@supports (-webkit-hyphens: auto)': {
|
|
@@ -4549,14 +4513,14 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4549
4513
|
? {
|
|
4550
4514
|
gridArea: '1/1/3/-1',
|
|
4551
4515
|
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
4552
|
-
marginBottom: `calc(${
|
|
4516
|
+
marginBottom: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4553
4517
|
borderStartStartRadius: 'inherit',
|
|
4554
4518
|
borderStartEndRadius: 'inherit',
|
|
4555
4519
|
}
|
|
4556
4520
|
: {
|
|
4557
4521
|
gridArea: '4/1/6/-1',
|
|
4558
4522
|
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
4559
|
-
marginTop: `calc(${
|
|
4523
|
+
marginTop: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4560
4524
|
borderEndStartRadius: 'inherit',
|
|
4561
4525
|
borderEndEndRadius: 'inherit',
|
|
4562
4526
|
}),
|
|
@@ -4582,7 +4546,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4582
4546
|
? {
|
|
4583
4547
|
display: 'grid',
|
|
4584
4548
|
gridTemplateColumns: 'minmax(0,1fr) auto',
|
|
4585
|
-
columnGap:
|
|
4549
|
+
columnGap: spacingStaticMd,
|
|
4586
4550
|
}
|
|
4587
4551
|
: {
|
|
4588
4552
|
display: 'flex',
|
|
@@ -4602,7 +4566,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4602
4566
|
'link-or-button': {
|
|
4603
4567
|
minHeight: '54px', // prevent content shift
|
|
4604
4568
|
zIndex: 5,
|
|
4605
|
-
marginTop:
|
|
4569
|
+
marginTop: spacingStaticMd,
|
|
4606
4570
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4607
4571
|
display: compactValue ? 'none' : 'inline-block',
|
|
4608
4572
|
})),
|
|
@@ -4639,9 +4603,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4639
4603
|
verticalAlign: 'top',
|
|
4640
4604
|
...mergeDeep(buildResponsiveStyles(isCompact, (compactValue) => ({
|
|
4641
4605
|
[`${cssVariableInternalScaling}`]: compactValue ? 0.64285714 : 1,
|
|
4642
|
-
'--
|
|
4606
|
+
'--_p-link-button-a': compactValue ? radiusLg : radiusXl,
|
|
4643
4607
|
})), buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
4644
|
-
borderRadius: addImportantToRule(`var(${legacyRadiusSmall}, ${hideLabelValue ? radiusFull : 'var(--
|
|
4608
|
+
borderRadius: addImportantToRule(`var(${legacyRadiusSmall}, ${hideLabelValue ? radiusFull : 'var(--_p-link-button-a)'})`),
|
|
4645
4609
|
}))),
|
|
4646
4610
|
...addImportantToEachRule({
|
|
4647
4611
|
...hostHiddenStyles,
|
|
@@ -4656,8 +4620,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4656
4620
|
width: '100%', // Allows for setting a width on the host
|
|
4657
4621
|
minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
|
|
4658
4622
|
boxSizing: 'border-box',
|
|
4659
|
-
|
|
4660
|
-
|
|
4623
|
+
WebkitBackdropFilter: blurFrosted,
|
|
4624
|
+
backdropFilter: blurFrosted,
|
|
4625
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4661
4626
|
borderRadius: 'inherit',
|
|
4662
4627
|
transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
|
|
4663
4628
|
backgroundColor,
|
|
@@ -4694,8 +4659,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4694
4659
|
label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle),
|
|
4695
4660
|
...(hasIcon && {
|
|
4696
4661
|
icon: {
|
|
4697
|
-
|
|
4698
|
-
|
|
4662
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width/height definition based on ex-unit
|
|
4663
|
+
width: leadingNormal$1, // ensure space is already reserved until icon component is loaded (ssr)
|
|
4664
|
+
height: leadingNormal$1, // ensure space is already reserved until icon component is loaded (ssr)
|
|
4699
4665
|
...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
4700
4666
|
marginInlineStart: hideLabelValue ? 0 : iconMarginInlineStart, // compensate white space of svg icon and optimize visual alignment
|
|
4701
4667
|
})),
|
|
@@ -4704,7 +4670,7 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4704
4670
|
};
|
|
4705
4671
|
};
|
|
4706
4672
|
|
|
4707
|
-
const cssVariableInternalButtonScaling = '--
|
|
4673
|
+
const cssVariableInternalButtonScaling = '--_p-button-a';
|
|
4708
4674
|
const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, isLoading, isCompact) => {
|
|
4709
4675
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
4710
4676
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling), {
|
|
@@ -4722,9 +4688,6 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
|
|
|
4722
4688
|
},
|
|
4723
4689
|
...(isLoading && {
|
|
4724
4690
|
spinner: {
|
|
4725
|
-
width: fontLineHeight,
|
|
4726
|
-
height: fontLineHeight,
|
|
4727
|
-
pointerEvents: 'none',
|
|
4728
4691
|
position: 'absolute',
|
|
4729
4692
|
top: '50%',
|
|
4730
4693
|
left: '50%',
|
|
@@ -4758,11 +4721,249 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
|
|
|
4758
4721
|
};
|
|
4759
4722
|
|
|
4760
4723
|
const palette = {
|
|
4724
|
+
light: {
|
|
4725
|
+
green: {
|
|
4726
|
+
'50': 'hsl(115 29.7% 92.7%)',
|
|
4727
|
+
'100': 'hsl(114 30.3% 87.1%)',
|
|
4728
|
+
'200': 'hsl(116 29.2% 81.2%)',
|
|
4729
|
+
'300': 'hsl(115 29.6% 75.5%)',
|
|
4730
|
+
'400': 'hsl(116 29.9% 69.8%)',
|
|
4731
|
+
'500': 'hsl(116 30.1% 64.1%)',
|
|
4732
|
+
'600': 'hsl(115 30% 56.9%)',
|
|
4733
|
+
'700': 'hsl(115 30.4% 49.6%)',
|
|
4734
|
+
'800': 'hsl(115 40.7% 42.4%)',
|
|
4735
|
+
'900': 'hsl(115 55.3% 35.1%)',
|
|
4736
|
+
'950': 'hsl(115 77.5% 27.8%)',
|
|
4737
|
+
'50a': 'hsl(115 77.5% 27.8% / 0.1)',
|
|
4738
|
+
'100a': 'hsl(115 77.5% 27.8% / 0.18)',
|
|
4739
|
+
'200a': 'hsl(115 77.5% 27.8% / 0.26)',
|
|
4740
|
+
'300a': 'hsl(115 77.5% 27.8% / 0.34)',
|
|
4741
|
+
'400a': 'hsl(115 77.5% 27.8% / 0.42)',
|
|
4742
|
+
'500a': 'hsl(115 77.5% 27.8% / 0.5)',
|
|
4743
|
+
'600a': 'hsl(115 77.5% 27.8% / 0.6)',
|
|
4744
|
+
'700a': 'hsl(115 77.5% 27.8% / 0.7)',
|
|
4745
|
+
'800a': 'hsl(115 77.5% 27.8% / 0.8)',
|
|
4746
|
+
'900a': 'hsl(115 77.5% 27.8% / 0.9)',
|
|
4747
|
+
'950a': 'hsl(115 77.5% 27.8%)',
|
|
4748
|
+
},
|
|
4749
|
+
red: {
|
|
4750
|
+
'50': 'hsl(0 53.3% 94.1%)',
|
|
4751
|
+
'100': 'hsl(358 55.6% 89.4%)',
|
|
4752
|
+
'200': 'hsl(359 53.8% 84.7%)',
|
|
4753
|
+
'300': 'hsl(358 54.9% 80%)',
|
|
4754
|
+
'400': 'hsl(358 54% 75.3%)',
|
|
4755
|
+
'500': 'hsl(357 54.7% 70.6%)',
|
|
4756
|
+
'600': 'hsl(358 54.4% 64.7%)',
|
|
4757
|
+
'700': 'hsl(357 54.3% 58.8%)',
|
|
4758
|
+
'800': 'hsl(357 54.4% 52.7%)',
|
|
4759
|
+
'900': 'hsl(357 61.5% 46.9%)',
|
|
4760
|
+
'950': 'hsl(357 78% 41%)',
|
|
4761
|
+
'50a': 'hsl(357 78% 41% / 0.1)',
|
|
4762
|
+
'100a': 'hsl(357 78% 41% / 0.18)',
|
|
4763
|
+
'200a': 'hsl(357 78% 41% / 0.26)',
|
|
4764
|
+
'300a': 'hsl(357 78% 41% / 0.34)',
|
|
4765
|
+
'400a': 'hsl(357 78% 41% / 0.42)',
|
|
4766
|
+
'500a': 'hsl(357 78% 41% / 0.5)',
|
|
4767
|
+
'600a': 'hsl(357 78% 41% / 0.6)',
|
|
4768
|
+
'700a': 'hsl(357 78% 41% / 0.7)',
|
|
4769
|
+
'800a': 'hsl(357 78% 41% / 0.8)',
|
|
4770
|
+
'900a': 'hsl(357 78% 41% / 0.9)',
|
|
4771
|
+
'950a': 'hsl(357 78% 41%)',
|
|
4772
|
+
},
|
|
4773
|
+
yellow: {
|
|
4774
|
+
'50': 'hsl(25 51.5% 93.5%)',
|
|
4775
|
+
'100': 'hsl(27 50.8% 88%)',
|
|
4776
|
+
'200': 'hsl(27 50% 82.7%)',
|
|
4777
|
+
'300': 'hsl(27 50.9% 77.6%)',
|
|
4778
|
+
'400': 'hsl(27 50.4% 72.4%)',
|
|
4779
|
+
'500': 'hsl(28 50.9% 67.3%)',
|
|
4780
|
+
'600': 'hsl(28 50.5% 60.4%)',
|
|
4781
|
+
'700': 'hsl(28 50.6% 53.9%)',
|
|
4782
|
+
'800': 'hsl(27 56.2% 47.5%)',
|
|
4783
|
+
'900': 'hsl(28 73.9% 40.6%)',
|
|
4784
|
+
'950': 'hsl(28 97.7% 34.1%)',
|
|
4785
|
+
'50a': 'hsl(28 97.7% 34.1% / 0.1)',
|
|
4786
|
+
'100a': 'hsl(28 97.7% 34.1% / 0.18)',
|
|
4787
|
+
'200a': 'hsl(28 97.7% 34.1% / 0.26)',
|
|
4788
|
+
'300a': 'hsl(28 97.7% 34.1% / 0.34)',
|
|
4789
|
+
'400a': 'hsl(28 97.7% 34.1% / 0.42)',
|
|
4790
|
+
'500a': 'hsl(28 97.7% 34.1% / 0.5)',
|
|
4791
|
+
'600a': 'hsl(28 97.7% 34.1% / 0.6)',
|
|
4792
|
+
'700a': 'hsl(28 97.7% 34.1% / 0.7)',
|
|
4793
|
+
'800a': 'hsl(28 97.7% 34.1% / 0.8)',
|
|
4794
|
+
'900a': 'hsl(28 97.7% 34.1% / 0.9)',
|
|
4795
|
+
'950a': 'hsl(28 97.7% 34.1%)',
|
|
4796
|
+
},
|
|
4797
|
+
blue: {
|
|
4798
|
+
'50': 'hsl(229 84% 95.1%)',
|
|
4799
|
+
'100': 'hsl(229 82.2% 91.2%)',
|
|
4800
|
+
'200': 'hsl(228 84.6% 87.3%)',
|
|
4801
|
+
'300': 'hsl(228 83.5% 83.3%)',
|
|
4802
|
+
'400': 'hsl(228 82.9% 79.4%)',
|
|
4803
|
+
'500': 'hsl(228 83.9% 75.7%)',
|
|
4804
|
+
'600': 'hsl(228 82.7% 70.6%)',
|
|
4805
|
+
'700': 'hsl(228 82.9% 65.7%)',
|
|
4806
|
+
'800': 'hsl(228 83% 60.8%)',
|
|
4807
|
+
'900': 'hsl(228 83.1% 55.9%)',
|
|
4808
|
+
'950': 'hsl(228 83.2% 51%)',
|
|
4809
|
+
'50a': 'hsl(228 83.2% 51% / 0.1)',
|
|
4810
|
+
'100a': 'hsl(228 83.2% 51% / 0.18)',
|
|
4811
|
+
'200a': 'hsl(228 83.2% 51% / 0.26)',
|
|
4812
|
+
'300a': 'hsl(228 83.2% 51% / 0.34)',
|
|
4813
|
+
'400a': 'hsl(228 83.2% 51% / 0.42)',
|
|
4814
|
+
'500a': 'hsl(228 83.2% 51% / 0.5)',
|
|
4815
|
+
'600a': 'hsl(228 83.2% 51% / 0.6)',
|
|
4816
|
+
'700a': 'hsl(228 83.2% 51% / 0.7)',
|
|
4817
|
+
'800a': 'hsl(228 83.2% 51% / 0.8)',
|
|
4818
|
+
'900a': 'hsl(228 83.2% 51% / 0.9)',
|
|
4819
|
+
'950a': 'hsl(228 83.2% 51%)',
|
|
4820
|
+
},
|
|
4821
|
+
grey: {
|
|
4822
|
+
'50': 'hsl(240 10% 95%)',
|
|
4823
|
+
'100': 'hsl(240 8.1% 92.7%)',
|
|
4824
|
+
'200': 'hsl(225 5.7% 86.3%)',
|
|
4825
|
+
'300': 'hsl(240 2.7% 78.2%)',
|
|
4826
|
+
'400': 'hsl(240 1.9% 68.8%)',
|
|
4827
|
+
'500': 'hsl(240 0.9% 57.6%)',
|
|
4828
|
+
'600': 'hsl(240 0.8% 47.8%)',
|
|
4829
|
+
'700': 'hsl(240 1.6% 37.8%)',
|
|
4830
|
+
'800': 'hsl(240 2.2% 27.3%)',
|
|
4831
|
+
'900': 'hsl(240 4.8% 16.5%)',
|
|
4832
|
+
'950': 'hsl(225 66.7% 1.2%)',
|
|
4833
|
+
'50a': 'hsl(234 9.8% 60% / 0.06)',
|
|
4834
|
+
'100a': 'hsl(240 5% 70% / 0.148)',
|
|
4835
|
+
'200a': 'hsl(236 6.5% 42% / 0.236)',
|
|
4836
|
+
'300a': 'hsl(234 6% 32.9% / 0.324)',
|
|
4837
|
+
'400a': 'hsl(233 6.6% 23.9% / 0.412)',
|
|
4838
|
+
'500a': 'hsl(240 5.3% 14.9% / 0.5)',
|
|
4839
|
+
'600a': 'hsl(240 6.1% 7% / 0.6)',
|
|
4840
|
+
'700a': 'hsl(240 7.1% 11% / 0.7)',
|
|
4841
|
+
'800a': 'hsl(240 8.7% 9% / 0.8)',
|
|
4842
|
+
'900a': 'hsl(240 11.1% 7.1% / 0.9)',
|
|
4843
|
+
'950a': 'hsl(240 15.4% 5.1%)',
|
|
4844
|
+
},
|
|
4845
|
+
},
|
|
4761
4846
|
dark: {
|
|
4847
|
+
green: {
|
|
4848
|
+
'50': 'hsl(157 33.3% 10.6%)',
|
|
4849
|
+
'100': 'hsl(158 47.1% 13.3%)',
|
|
4850
|
+
'200': 'hsl(157 58% 15.9%)',
|
|
4851
|
+
'300': 'hsl(157 64.6% 18.8%)',
|
|
4852
|
+
'400': 'hsl(157 69.1% 21.6%)',
|
|
4853
|
+
'500': 'hsl(157 72.6% 24.3%)',
|
|
4854
|
+
'600': 'hsl(157 76.1% 27.8%)',
|
|
4855
|
+
'700': 'hsl(157 78.7% 31.4%)',
|
|
4856
|
+
'800': 'hsl(157 81.8% 34.5%)',
|
|
4857
|
+
'900': 'hsl(157 83.5% 38%)',
|
|
4858
|
+
'950': 'hsl(157 84.9% 41.6%)',
|
|
4859
|
+
'50a': 'hsl(157 84.9% 41.6% / 0.1)',
|
|
4860
|
+
'100a': 'hsl(157 84.9% 41.6% / 0.18)',
|
|
4861
|
+
'200a': 'hsl(157 84.9% 41.6% / 0.26)',
|
|
4862
|
+
'300a': 'hsl(157 84.9% 41.6% / 0.34)',
|
|
4863
|
+
'400a': 'hsl(157 84.9% 41.6% / 0.42)',
|
|
4864
|
+
'500a': 'hsl(157 84.9% 41.6% / 0.5)',
|
|
4865
|
+
'600a': 'hsl(157 84.9% 41.6% / 0.6)',
|
|
4866
|
+
'700a': 'hsl(157 84.9% 41.6% / 0.7)',
|
|
4867
|
+
'800a': 'hsl(157 84.9% 41.6% / 0.8)',
|
|
4868
|
+
'900a': 'hsl(157 84.9% 41.6% / 0.9)',
|
|
4869
|
+
'950a': 'hsl(157 84.9% 41.6%)',
|
|
4870
|
+
},
|
|
4871
|
+
red: {
|
|
4872
|
+
'50': 'hsl(0 28.1% 12.5%)',
|
|
4873
|
+
'100': 'hsl(0 39.5% 16.9%)',
|
|
4874
|
+
'200': 'hsl(0 45% 21.4%)',
|
|
4875
|
+
'300': 'hsl(0 48.5% 25.9%)',
|
|
4876
|
+
'400': 'hsl(0 51.6% 30%)',
|
|
4877
|
+
'500': 'hsl(0 53.4% 34.5%)',
|
|
4878
|
+
'600': 'hsl(0 54.9% 40%)',
|
|
4879
|
+
'700': 'hsl(0 56.9% 45.5%)',
|
|
4880
|
+
'800': 'hsl(0 60% 51%)',
|
|
4881
|
+
'900': 'hsl(0 76.6% 56.5%)',
|
|
4882
|
+
'950': 'hsl(0 96.9% 62%)',
|
|
4883
|
+
'50a': 'hsl(0 96.9% 62% / 0.1)',
|
|
4884
|
+
'100a': 'hsl(0 96.9% 62% / 0.18)',
|
|
4885
|
+
'200a': 'hsl(0 96.9% 62% / 0.26)',
|
|
4886
|
+
'300a': 'hsl(0 96.9% 62% / 0.34)',
|
|
4887
|
+
'400a': 'hsl(0 96.9% 62% / 0.42)',
|
|
4888
|
+
'500a': 'hsl(0 96.9% 62% / 0.5)',
|
|
4889
|
+
'600a': 'hsl(0 96.9% 62% / 0.6)',
|
|
4890
|
+
'700a': 'hsl(0 96.9% 62% / 0.7)',
|
|
4891
|
+
'800a': 'hsl(0 96.9% 62% / 0.8)',
|
|
4892
|
+
'900a': 'hsl(0 96.9% 62% / 0.9)',
|
|
4893
|
+
'950a': 'hsl(0 96.9% 62%)',
|
|
4894
|
+
},
|
|
4895
|
+
yellow: {
|
|
4896
|
+
'50': 'hsl(29 34.4% 12%)',
|
|
4897
|
+
'100': 'hsl(28 45.7% 15.9%)',
|
|
4898
|
+
'200': 'hsl(28 52.5% 19.8%)',
|
|
4899
|
+
'300': 'hsl(28 57% 23.7%)',
|
|
4900
|
+
'400': 'hsl(28 60.3% 27.6%)',
|
|
4901
|
+
'500': 'hsl(28 62.7% 31.6%)',
|
|
4902
|
+
'600': 'hsl(28 65.6% 36.5%)',
|
|
4903
|
+
'700': 'hsl(28 66.8% 41.4%)',
|
|
4904
|
+
'800': 'hsl(28 68.6% 46.3%)',
|
|
4905
|
+
'900': 'hsl(28 72.7% 51.2%)',
|
|
4906
|
+
'950': 'hsl(28 90.2% 56.1%)',
|
|
4907
|
+
'50a': 'hsl(28 90.2% 56.1% / 0.1)',
|
|
4908
|
+
'100a': 'hsl(28 90.2% 56.1% / 0.18)',
|
|
4909
|
+
'200a': 'hsl(28 90.2% 56.1% / 0.26)',
|
|
4910
|
+
'300a': 'hsl(28 90.2% 56.1% / 0.34)',
|
|
4911
|
+
'400a': 'hsl(28 90.2% 56.1% / 0.42)',
|
|
4912
|
+
'500a': 'hsl(28 90.2% 56.1% / 0.5)',
|
|
4913
|
+
'600a': 'hsl(28 90.2% 56.1% / 0.6)',
|
|
4914
|
+
'700a': 'hsl(28 90.2% 56.1% / 0.7)',
|
|
4915
|
+
'800a': 'hsl(28 90.2% 56.1% / 0.8)',
|
|
4916
|
+
'900a': 'hsl(28 90.2% 56.1% / 0.9)',
|
|
4917
|
+
'950a': 'hsl(28 90.2% 56.1%)',
|
|
4918
|
+
},
|
|
4919
|
+
blue: {
|
|
4920
|
+
'50': 'hsl(211 37.7% 12%)',
|
|
4921
|
+
'100': 'hsl(210 52.5% 15.7%)',
|
|
4922
|
+
'200': 'hsl(210 61.6% 19.4%)',
|
|
4923
|
+
'300': 'hsl(210 66.4% 23.3%)',
|
|
4924
|
+
'400': 'hsl(210 71% 27.1%)',
|
|
4925
|
+
'500': 'hsl(210 73.4% 31%)',
|
|
4926
|
+
'600': 'hsl(210 76.8% 35.5%)',
|
|
4927
|
+
'700': 'hsl(210 78.6% 40.4%)',
|
|
4928
|
+
'800': 'hsl(210 80.9% 45.1%)',
|
|
4929
|
+
'900': 'hsl(210 81.9% 49.8%)',
|
|
4930
|
+
'950': 'hsl(210 100% 54.5%)',
|
|
4931
|
+
'50a': 'hsl(210 100% 54.5% / 0.1)',
|
|
4932
|
+
'100a': 'hsl(210 100% 54.5% / 0.18)',
|
|
4933
|
+
'200a': 'hsl(210 100% 54.5% / 0.26)',
|
|
4934
|
+
'300a': 'hsl(210 100% 54.5% / 0.34)',
|
|
4935
|
+
'400a': 'hsl(210 100% 54.5% / 0.42)',
|
|
4936
|
+
'500a': 'hsl(210 100% 54.5% / 0.5)',
|
|
4937
|
+
'600a': 'hsl(210 100% 54.5% / 0.6)',
|
|
4938
|
+
'700a': 'hsl(210 100% 54.5% / 0.7)',
|
|
4939
|
+
'800a': 'hsl(210 100% 54.5% / 0.8)',
|
|
4940
|
+
'900a': 'hsl(210 100% 54.5% / 0.9)',
|
|
4941
|
+
'950a': 'hsl(210 100% 54.5%)',
|
|
4942
|
+
},
|
|
4762
4943
|
grey: {
|
|
4944
|
+
'50': 'hsl(225 66.7% 1.2%)',
|
|
4945
|
+
'100': 'hsl(240 2% 10%)',
|
|
4946
|
+
'200': 'hsl(240 1.3% 15.5%)',
|
|
4947
|
+
'300': 'hsl(240 0.8% 23.7%)',
|
|
4948
|
+
'400': 'hsl(240 0.6% 34.3%)',
|
|
4949
|
+
'500': 'hsl(240 0.4% 47.6%)',
|
|
4950
|
+
'600': 'hsl(240 0.5% 57.5%)',
|
|
4951
|
+
'700': 'hsl(240 0.6% 67.3%)',
|
|
4952
|
+
'800': 'hsl(240 0.9% 77.1%)',
|
|
4953
|
+
'900': 'hsl(240 3% 87.1%)',
|
|
4763
4954
|
'950': 'hsl(225 100% 99%)',
|
|
4955
|
+
'50a': 'hsl(225 66.7% 1.2% / 0.08)',
|
|
4764
4956
|
'100a': 'hsl(240 3.7% 26.5% / 0.154)',
|
|
4765
|
-
'200a': 'hsl(240 2% 43% / 0.228)'
|
|
4957
|
+
'200a': 'hsl(240 2% 43% / 0.228)',
|
|
4958
|
+
'300a': 'hsl(240 1.5% 61.8% / 0.302)',
|
|
4959
|
+
'400a': 'hsl(240 2.9% 79.4% / 0.376)',
|
|
4960
|
+
'500a': 'hsl(240 12.5% 96.9% / 0.45)',
|
|
4961
|
+
'600a': 'hsl(240 12.5% 96.9% / 0.56)',
|
|
4962
|
+
'700a': 'hsl(240 12.5% 96.9% / 0.67)',
|
|
4963
|
+
'800a': 'hsl(240 12.5% 96.9% / 0.78)',
|
|
4964
|
+
'900a': 'hsl(240 12.5% 96.9% / 0.89)',
|
|
4965
|
+
'950a': 'hsl(225 100% 99%)',
|
|
4966
|
+
},
|
|
4766
4967
|
},
|
|
4767
4968
|
};
|
|
4768
4969
|
|
|
@@ -4772,8 +4973,6 @@ const colorFrostedSoftDark = palette.dark.grey['100a'];
|
|
|
4772
4973
|
|
|
4773
4974
|
const colorPrimaryDark = palette.dark.grey["950"];
|
|
4774
4975
|
|
|
4775
|
-
const typescaleXs = '.875rem';
|
|
4776
|
-
|
|
4777
4976
|
const spacingStaticSm = '8px';
|
|
4778
4977
|
|
|
4779
4978
|
const spacingStaticXs = '4px';
|
|
@@ -4857,7 +5056,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
4857
5056
|
h2: {
|
|
4858
5057
|
all: 'unset',
|
|
4859
5058
|
padding: spacingStaticXs, // preserve enough spacing for focus state
|
|
4860
|
-
font:
|
|
5059
|
+
font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4861
5060
|
color: colorPrimary,
|
|
4862
5061
|
textOverflow: 'ellipsis',
|
|
4863
5062
|
overflow: 'hidden',
|
|
@@ -4904,13 +5103,13 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
4904
5103
|
gridTemplateColumns: 'minmax(0,1fr) auto minmax(0,1fr)',
|
|
4905
5104
|
gap: spacingBase,
|
|
4906
5105
|
alignItems: 'center',
|
|
4907
|
-
padding: `${
|
|
5106
|
+
padding: `${spacingStaticSm$1} ${spacingBase}`,
|
|
4908
5107
|
'&:focus-visible': {
|
|
4909
5108
|
outline: 'none',
|
|
4910
5109
|
},
|
|
4911
5110
|
'&__area': {
|
|
4912
5111
|
display: 'flex',
|
|
4913
|
-
gap:
|
|
5112
|
+
gap: spacingStaticSm$1,
|
|
4914
5113
|
alignItems: 'center',
|
|
4915
5114
|
'&--start': {
|
|
4916
5115
|
justifyContent: 'flex-start',
|
|
@@ -5008,7 +5207,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
5008
5207
|
footer: {
|
|
5009
5208
|
zIndex: 5,
|
|
5010
5209
|
gridArea: 'footer',
|
|
5011
|
-
padding: `${spacingBase} ${spacingBase} ${
|
|
5210
|
+
padding: `${spacingBase} ${spacingBase} ${spacingFluidSm}`,
|
|
5012
5211
|
position: 'sticky',
|
|
5013
5212
|
bottom: 0,
|
|
5014
5213
|
'&::before': {
|
|
@@ -5056,12 +5255,12 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
5056
5255
|
'&__header': {
|
|
5057
5256
|
zIndex: 9999999,
|
|
5058
5257
|
display: 'flex',
|
|
5059
|
-
gap:
|
|
5258
|
+
gap: spacingStaticSm$1,
|
|
5060
5259
|
alignItems: 'center',
|
|
5061
5260
|
position: 'sticky',
|
|
5062
5261
|
top: `calc(-1 * ${spacingBase})`,
|
|
5063
5262
|
margin: `calc(-1 * ${spacingBase}) calc(-1 * ${spacingBase}) ${spacingBase}`,
|
|
5064
|
-
padding: `${
|
|
5263
|
+
padding: `${spacingStaticSm$1} ${spacingBase}`,
|
|
5065
5264
|
minHeight: '56px',
|
|
5066
5265
|
boxSizing: 'border-box',
|
|
5067
5266
|
'&--start': {
|
|
@@ -5100,6 +5299,10 @@ const cssVarPaddingInlineStart = '--p-carousel-ps';
|
|
|
5100
5299
|
* @css-variable {"name": "--p-carousel-pe", "description": "Defines the logical inline end 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-ps`. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
|
|
5101
5300
|
*/
|
|
5102
5301
|
const cssVarPaddingInlineEnd = '--p-carousel-pe';
|
|
5302
|
+
/**
|
|
5303
|
+
* @css-variable {"name": "--p-carousel-prev-next-color-scheme", "description": "Color Scheme applied to the navigation (prev/next buttons)"}
|
|
5304
|
+
*/
|
|
5305
|
+
const cssVariablePrevNextColorScheme = '--p-carousel-prev-next-color-scheme';
|
|
5103
5306
|
const cssVariableGradientColorWidth = '--p-gradient-color-width';
|
|
5104
5307
|
const carouselTransitionDuration = motionDurationModerate;
|
|
5105
5308
|
const paginationInfiniteStartCaseClass = 'pagination--infinite';
|
|
@@ -5142,7 +5345,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5142
5345
|
':host': {
|
|
5143
5346
|
display: 'flex',
|
|
5144
5347
|
...addImportantToEachRule({
|
|
5145
|
-
gap:
|
|
5348
|
+
gap: spacingFluidMd$1, // TODO: maybe it's better to style by margin on .splide, then styles would be part of shadow dom
|
|
5146
5349
|
flexDirection: 'column',
|
|
5147
5350
|
boxSizing: 'content-box', // ensures padding is added to host instead of subtracted
|
|
5148
5351
|
...hostHiddenStyles,
|
|
@@ -5183,20 +5386,20 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5183
5386
|
...(hasHeading && {
|
|
5184
5387
|
[selectorHeading]: {
|
|
5185
5388
|
maxWidth: '56.25rem',
|
|
5186
|
-
margin: `0 0 ${hasDescription ? 0 :
|
|
5187
|
-
|
|
5389
|
+
margin: `0 0 ${hasDescription ? 0 : spacingFluidMd$1}`,
|
|
5390
|
+
font: `${fontWeightNormal$1} ${headingSize === 'xx-large' ? typescale2Xl : typescaleXl} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5188
5391
|
},
|
|
5189
5392
|
'::slotted([slot=heading])': {
|
|
5190
5393
|
margin: 0, // reset ua-style
|
|
5191
|
-
|
|
5394
|
+
font: `${fontWeightNormal$1} ${headingSize === 'xx-large' ? typescale2Xl : typescaleXl} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5192
5395
|
},
|
|
5193
5396
|
}),
|
|
5194
5397
|
// p,::slotted([slot=description])
|
|
5195
5398
|
...(hasDescription && {
|
|
5196
5399
|
[selectorDescription]: {
|
|
5197
5400
|
maxWidth: '34.375rem',
|
|
5198
|
-
margin: `${
|
|
5199
|
-
|
|
5401
|
+
margin: `${spacingFluidSm} 0 ${spacingFluidMd$1}`,
|
|
5402
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5200
5403
|
},
|
|
5201
5404
|
}),
|
|
5202
5405
|
}),
|
|
@@ -5209,7 +5412,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5209
5412
|
gridTemplateColumns: 'minmax(0px,1fr) auto',
|
|
5210
5413
|
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5211
5414
|
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5212
|
-
...(hasNavigation && { columnGap:
|
|
5415
|
+
...(hasNavigation && { columnGap: spacingStaticMd }),
|
|
5213
5416
|
},
|
|
5214
5417
|
[mediaQueryXXL]: {
|
|
5215
5418
|
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
|
|
@@ -5222,12 +5425,13 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5222
5425
|
gridRowStart: '3',
|
|
5223
5426
|
gridColumnEnd: '-1',
|
|
5224
5427
|
display: 'flex',
|
|
5225
|
-
gap:
|
|
5428
|
+
gap: spacingStaticXs$1,
|
|
5226
5429
|
alignSelf: 'flex-start', // relevant in case slot="header" becomes higher than nav group
|
|
5227
5430
|
},
|
|
5431
|
+
colorScheme: `var(${cssVariablePrevNextColorScheme})`,
|
|
5228
5432
|
},
|
|
5229
5433
|
btn: {
|
|
5230
|
-
padding:
|
|
5434
|
+
padding: spacingStaticSm$1,
|
|
5231
5435
|
},
|
|
5232
5436
|
'skip-link': {
|
|
5233
5437
|
// :focus must be used in this case, because :focus-visible is just matched on the focusable element itself, not on the host element.
|
|
@@ -5428,14 +5632,14 @@ const cssVarCheckboxIconColor = '--p-checkbox-icon-color';
|
|
|
5428
5632
|
/**
|
|
5429
5633
|
* Internal CSS variables
|
|
5430
5634
|
*/
|
|
5431
|
-
const cssVarInternalCheckboxScaling = '--
|
|
5635
|
+
const cssVarInternalCheckboxScaling = '--_p-checkbox-scaling';
|
|
5432
5636
|
|
|
5433
5637
|
const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
|
|
5434
5638
|
const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
5435
5639
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
5436
|
-
const checkboxBorderWidth =
|
|
5640
|
+
const checkboxBorderWidth = '1px';
|
|
5437
5641
|
const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
|
|
5438
|
-
const checkboxMarginBlock = `max(0px, calc((${
|
|
5642
|
+
const checkboxMarginBlock = `max(0px, calc((${leadingNormal$1} - ${checkboxDimension}) / 2))`;
|
|
5439
5643
|
const checkboxTouchInset = `calc(-${checkboxBorderWidth} - max(0px, calc(24px - ${checkboxDimension}) / 2))`;
|
|
5440
5644
|
return {
|
|
5441
5645
|
all: 'unset',
|
|
@@ -5444,7 +5648,7 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
|
|
|
5444
5648
|
height: checkboxDimension,
|
|
5445
5649
|
marginBlock: checkboxMarginBlock,
|
|
5446
5650
|
boxSizing: 'border-box',
|
|
5447
|
-
font: `${
|
|
5651
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
|
|
5448
5652
|
background: `var(${cssVarCheckboxBackgroundColor},${formStateBackgroundColor})`,
|
|
5449
5653
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
5450
5654
|
border: `${checkboxBorderWidth} solid var(${cssVarCheckboxBorderColor},${formStateBorderColor})`,
|
|
@@ -5538,8 +5742,8 @@ const getFunctionalComponentLabelAfterStyles = () => {
|
|
|
5538
5742
|
verticalAlign: 'top',
|
|
5539
5743
|
'&::slotted(*)': {
|
|
5540
5744
|
...addImportantToEachRule({
|
|
5541
|
-
marginInlineStart: spacingStaticXs$
|
|
5542
|
-
})
|
|
5745
|
+
marginInlineStart: spacingStaticXs$1,
|
|
5746
|
+
}),
|
|
5543
5747
|
},
|
|
5544
5748
|
},
|
|
5545
5749
|
};
|
|
@@ -5555,7 +5759,7 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
|
|
|
5555
5759
|
...additionalLabelWrapperJssStyle,
|
|
5556
5760
|
},
|
|
5557
5761
|
label: {
|
|
5558
|
-
|
|
5762
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5559
5763
|
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
5560
5764
|
color: colorPrimary,
|
|
5561
5765
|
...(isDisabledOrLoading && {
|
|
@@ -5572,10 +5776,15 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
|
|
|
5572
5776
|
// styling for the description
|
|
5573
5777
|
'&:is(span)': {
|
|
5574
5778
|
cursor: 'unset',
|
|
5575
|
-
fontSize: typescaleXs,
|
|
5779
|
+
fontSize: typescaleXs$1,
|
|
5576
5780
|
color: colorContrastHigh,
|
|
5577
|
-
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop:
|
|
5578
|
-
marginTop:
|
|
5781
|
+
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `calc(-1 * ${spacingStaticXs$1})` })),
|
|
5782
|
+
marginTop: `calc(-1 * ${spacingStaticXs$1})`,
|
|
5783
|
+
},
|
|
5784
|
+
'& > slot[name="label"]::slotted(*)': {
|
|
5785
|
+
...addImportantToEachRule({
|
|
5786
|
+
display: 'inline',
|
|
5787
|
+
}),
|
|
5579
5788
|
},
|
|
5580
5789
|
...additionalDefaultJssStyle,
|
|
5581
5790
|
},
|
|
@@ -5588,8 +5797,8 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
|
|
|
5588
5797
|
return {
|
|
5589
5798
|
message: {
|
|
5590
5799
|
display: 'flex',
|
|
5591
|
-
gap:
|
|
5592
|
-
|
|
5800
|
+
gap: spacingStaticXs$1,
|
|
5801
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5593
5802
|
color: getThemedFormStateColors(state).formStateColor,
|
|
5594
5803
|
transition: `${getTransition('color')}, ${getTransition('opacity')}`,
|
|
5595
5804
|
...additionalDefaultJssStyle,
|
|
@@ -5610,7 +5819,7 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
|
|
|
5610
5819
|
const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact) => {
|
|
5611
5820
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
5612
5821
|
const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
|
|
5613
|
-
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${
|
|
5822
|
+
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
|
|
5614
5823
|
const labelPaddingInlineStart = `calc(11.2px * (var(${cssVarInternalCheckboxScaling}) - 0.64285714) + 4px)`;
|
|
5615
5824
|
return getCss({
|
|
5616
5825
|
'@global': {
|
|
@@ -5632,7 +5841,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
|
|
|
5632
5841
|
},
|
|
5633
5842
|
root: {
|
|
5634
5843
|
display: 'grid',
|
|
5635
|
-
rowGap:
|
|
5844
|
+
rowGap: spacingStaticXs$1,
|
|
5636
5845
|
},
|
|
5637
5846
|
wrapper: {
|
|
5638
5847
|
position: 'relative',
|
|
@@ -5644,7 +5853,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
|
|
|
5644
5853
|
alignItems: 'center',
|
|
5645
5854
|
display: 'grid',
|
|
5646
5855
|
alignSelf: 'flex-start',
|
|
5647
|
-
minHeight:
|
|
5856
|
+
minHeight: leadingNormal$1, // necessary for compact mode
|
|
5648
5857
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
5649
5858
|
...(isDisabled && getDisabledBaseStyles()),
|
|
5650
5859
|
},
|
|
@@ -5679,9 +5888,9 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
|
|
|
5679
5888
|
* @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
|
|
5680
5889
|
*/
|
|
5681
5890
|
const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
|
|
5682
|
-
const cssVarInternalInputBaseScaling = '--
|
|
5891
|
+
const cssVarInternalInputBaseScaling = '--_p-input-base-a';
|
|
5683
5892
|
const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel, state, isCompact, readOnly, additionalInputJssStyle, additionalHostJssStyle) => {
|
|
5684
|
-
const wrapperBorderWidth =
|
|
5893
|
+
const wrapperBorderWidth = '1px';
|
|
5685
5894
|
const wrapperHeight = `calc(var(${cssVarInternalInputBaseScaling}) * 3.5rem)`;
|
|
5686
5895
|
const wrapperPaddingInline = `calc(22.4px * (var(${cssVarInternalInputBaseScaling}) - 0.64285714) + 8px)`;
|
|
5687
5896
|
const wrapperGap = `calc(22.4px * (var(${cssVarInternalInputBaseScaling}) - 0.64285714) + 4px)`;
|
|
@@ -5714,14 +5923,14 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
|
|
|
5714
5923
|
alignItems: 'center',
|
|
5715
5924
|
width: 'max(100%, 2ch)', // show at least 2 characters in very narrow containers
|
|
5716
5925
|
height: '100%',
|
|
5717
|
-
font:
|
|
5926
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / calc(${leadingNormal$1} + 6px) ${fontPorscheNext$1}`, // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
5718
5927
|
textOverflow: 'ellipsis',
|
|
5719
5928
|
...additionalInputJssStyle,
|
|
5720
5929
|
},
|
|
5721
5930
|
},
|
|
5722
5931
|
root: {
|
|
5723
5932
|
display: 'grid',
|
|
5724
|
-
gap:
|
|
5933
|
+
gap: spacingStaticXs$1,
|
|
5725
5934
|
},
|
|
5726
5935
|
wrapper: {
|
|
5727
5936
|
display: 'flex',
|
|
@@ -5781,7 +5990,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5781
5990
|
const cssVarTextColor = `--p-${componentName}-text-color`;
|
|
5782
5991
|
const cssVarBorderColor = `--p-${componentName}-border-color`;
|
|
5783
5992
|
const { formStateBorderColor, formStateBorderHoverColor, formStateBackgroundColor } = getThemedFormStateColors(state);
|
|
5784
|
-
const borderWidth =
|
|
5993
|
+
const borderWidth = '1px';
|
|
5785
5994
|
const height = `calc(var(${cssVarScalingName}) * 3.5rem)`;
|
|
5786
5995
|
const paddingInline = `calc(22.4px * (var(${cssVarScalingName}) - 0.64285714) + 8px)`;
|
|
5787
5996
|
const gap = `calc(22.4px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
@@ -5797,7 +6006,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5797
6006
|
border: `${borderWidth} solid var(${cssVarBorderColor}, ${isOpen ? formStateBorderHoverColor : formStateBorderColor})`,
|
|
5798
6007
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
5799
6008
|
background: `var(${cssVarBackgroundColor}, ${formStateBackgroundColor})`,
|
|
5800
|
-
font:
|
|
6009
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5801
6010
|
color: `var(${cssVarTextColor}, ${colorPrimary})`,
|
|
5802
6011
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
5803
6012
|
...(isDisabled && getDisabledBaseStyles()),
|
|
@@ -5814,9 +6023,9 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5814
6023
|
};
|
|
5815
6024
|
|
|
5816
6025
|
const getButtonImageJssStyle = {
|
|
5817
|
-
font: `${
|
|
6026
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct calculations based on ex-unit
|
|
5818
6027
|
width: 'auto',
|
|
5819
|
-
height:
|
|
6028
|
+
height: leadingNormal$1,
|
|
5820
6029
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
5821
6030
|
};
|
|
5822
6031
|
|
|
@@ -5853,14 +6062,14 @@ const getIconJssStyle = (isOpen) => {
|
|
|
5853
6062
|
const getOptionJssStyle = (componentName, cssVarScalingName) => {
|
|
5854
6063
|
const gap = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
5855
6064
|
const paddingBlock = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
5856
|
-
const paddingInline = `var(--
|
|
6065
|
+
const paddingInline = `var(--_p-${componentName}-b, calc(16.8px * (var(${cssVarScalingName}) - 0.64285714) + 6px)) calc(16.8px * (var(${cssVarScalingName}) - 0.64285714) + 6px)`;
|
|
5857
6066
|
return {
|
|
5858
6067
|
display: 'flex',
|
|
5859
6068
|
gap,
|
|
5860
6069
|
paddingBlock,
|
|
5861
6070
|
paddingInline,
|
|
5862
|
-
minHeight:
|
|
5863
|
-
|
|
6071
|
+
minHeight: leadingNormal$1, // preserves height for empty option
|
|
6072
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5864
6073
|
color: colorContrastHigh,
|
|
5865
6074
|
cursor: 'pointer',
|
|
5866
6075
|
textAlign: 'start',
|
|
@@ -5928,7 +6137,7 @@ const getPopoverJssStyle = (isOpen, cssVarScalingName, optionHeight) => {
|
|
|
5928
6137
|
overflow: 'hidden auto',
|
|
5929
6138
|
scrollbarWidth: 'thin', // firefox
|
|
5930
6139
|
scrollbarColor: 'auto', // firefox
|
|
5931
|
-
animation: `var(${cssVariableAnimationDuration}, ${
|
|
6140
|
+
animation: `var(${cssVariableAnimationDuration}, ${durationSm}) ${keyframesName} ${easeInOut} forwards`,
|
|
5932
6141
|
filter: 'drop-shadow(0 0 8px rgba(0,0,0,0.15))',
|
|
5933
6142
|
background: colorCanvas,
|
|
5934
6143
|
border: `1px solid ${colorContrastLow}`,
|
|
@@ -6042,7 +6251,7 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
|
|
|
6042
6251
|
root: {
|
|
6043
6252
|
all: 'unset',
|
|
6044
6253
|
display: 'block',
|
|
6045
|
-
font: `${fontWeightNormal} ${typescale5Xl}/${leadingNormal} ${fontPorscheNext}`,
|
|
6254
|
+
font: `${fontWeightNormal$1} ${typescale5Xl}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6046
6255
|
...buildResponsiveStyles(size, (v) => ({
|
|
6047
6256
|
fontSize: sizeMap[v],
|
|
6048
6257
|
})),
|
|
@@ -6090,11 +6299,11 @@ const getComponentCss$$ = (color, orientation) => {
|
|
|
6090
6299
|
const cssVariableGridTemplate = '--p-drilldown-grid-template';
|
|
6091
6300
|
const cssVariableGap = '--p-drilldown-gap';
|
|
6092
6301
|
// private css variables
|
|
6093
|
-
const cssVarColorPrimary = '--_p-a';
|
|
6094
|
-
const cssVarColorBackgroundBase = '--_p-b';
|
|
6095
|
-
const cssVarColorBackgroundSurface = '--_p-c';
|
|
6096
|
-
const cssVarColorBackgroundShading = '--_p-d';
|
|
6097
|
-
const cssVarColorBackgroundScroller = '--_p-f';
|
|
6302
|
+
const cssVarColorPrimary = '--_p-drilldown-a';
|
|
6303
|
+
const cssVarColorBackgroundBase = '--_p-drilldown-b';
|
|
6304
|
+
const cssVarColorBackgroundSurface = '--_p-drilldown-c';
|
|
6305
|
+
const cssVarColorBackgroundShading = '--_p-drilldown-d';
|
|
6306
|
+
const cssVarColorBackgroundScroller = '--_p-drilldown-f';
|
|
6098
6307
|
const scrollerWidthDesktop = 'clamp(338px, 210px + 18vw, 640px)';
|
|
6099
6308
|
const mediaQueryMobile = getMediaQueryMax('s');
|
|
6100
6309
|
const mediaQueryDesktop = getMediaQueryMin('s');
|
|
@@ -6108,14 +6317,14 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6108
6317
|
return getCss({
|
|
6109
6318
|
'@global': {
|
|
6110
6319
|
'@keyframes slide-up-mobile': {
|
|
6111
|
-
from: { transform: `translate3d(0,${
|
|
6320
|
+
from: { transform: `translate3d(0,${spacingFluidMd$1},0)` },
|
|
6112
6321
|
to: { transform: 'translate3d(0,0,0)' },
|
|
6113
6322
|
},
|
|
6114
6323
|
// unfortunately, it's not possible to use transform animation like in mobile view
|
|
6115
6324
|
// because then a new stacking context within scroll container would be initialized
|
|
6116
6325
|
// causing the slotted scroll container to become invisible
|
|
6117
6326
|
'@keyframes slide-up-desktop': {
|
|
6118
|
-
from: { marginBlockStart:
|
|
6327
|
+
from: { marginBlockStart: spacingFluidMd$1 },
|
|
6119
6328
|
to: { marginBlockStart: '0px' },
|
|
6120
6329
|
},
|
|
6121
6330
|
':host': {
|
|
@@ -6133,7 +6342,7 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6133
6342
|
...preventFoucOfNestedElementsStyles,
|
|
6134
6343
|
'::slotted(*)': {
|
|
6135
6344
|
[cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
|
|
6136
|
-
[cssVariableGap]:
|
|
6345
|
+
[cssVariableGap]: spacingFluidXs, // reset css variable to prevent inheritance
|
|
6137
6346
|
},
|
|
6138
6347
|
dialog: {
|
|
6139
6348
|
all: 'unset',
|
|
@@ -6144,7 +6353,8 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6144
6353
|
...(isOpen
|
|
6145
6354
|
? {
|
|
6146
6355
|
visibility: 'inherit',
|
|
6147
|
-
|
|
6356
|
+
WebkitBackdropFilter: blurFrosted,
|
|
6357
|
+
backdropFilter: blurFrosted,
|
|
6148
6358
|
background: `var(${cssVarColorBackgroundShading})`,
|
|
6149
6359
|
transition: `${getTransition('background', backdropDurationOpen, easingOpen)}, ${getTransition('backdrop-filter', backdropDurationOpen, easingOpen)}, ${getTransition('-webkit-backdrop-filter', backdropDurationOpen, easingOpen)}`,
|
|
6150
6360
|
}
|
|
@@ -6164,13 +6374,13 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6164
6374
|
zIndex: 0,
|
|
6165
6375
|
display: 'grid',
|
|
6166
6376
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6167
|
-
gap: `var(${cssVariableGap},${
|
|
6377
|
+
gap: `var(${cssVariableGap},${spacingFluidXs})`,
|
|
6168
6378
|
alignContent: 'start',
|
|
6169
6379
|
alignItems: 'start',
|
|
6170
6380
|
boxSizing: 'border-box',
|
|
6171
6381
|
minHeight: '100%',
|
|
6172
6382
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6173
|
-
paddingBlockEnd:
|
|
6383
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6174
6384
|
...(isPrimary && {
|
|
6175
6385
|
animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
|
|
6176
6386
|
}),
|
|
@@ -6181,13 +6391,13 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6181
6391
|
gridArea: '3/2/auto/-2',
|
|
6182
6392
|
display: 'grid',
|
|
6183
6393
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6184
|
-
gap: `var(${cssVariableGap},${isPrimary ?
|
|
6394
|
+
gap: `var(${cssVariableGap},${isPrimary ? spacingFluidXs : spacingFluidMd$1})`,
|
|
6185
6395
|
alignContent: 'start',
|
|
6186
6396
|
alignItems: 'start',
|
|
6187
6397
|
boxSizing: 'border-box',
|
|
6188
6398
|
minHeight: '100%',
|
|
6189
6399
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6190
|
-
paddingBlockEnd:
|
|
6400
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6191
6401
|
animation: getAnimation('slide-up-desktop', 'moderate', 'base'),
|
|
6192
6402
|
}),
|
|
6193
6403
|
},
|
|
@@ -6226,12 +6436,12 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6226
6436
|
},
|
|
6227
6437
|
}),
|
|
6228
6438
|
[mediaQueryMobile]: {
|
|
6229
|
-
gridTemplate: `${
|
|
6439
|
+
gridTemplate: `${spacingFluidMd$1} auto ${spacingFluidLg} minmax(0, 1fr)/${spacingFluidLg} auto minmax(0, 1fr) auto ${spacingFluidLg}`,
|
|
6230
6440
|
background: `var(${cssVarColorBackgroundBase})`,
|
|
6231
6441
|
},
|
|
6232
6442
|
[mediaQueryDesktop]: {
|
|
6233
6443
|
width: isSecondaryScrollerVisible ? `calc(${scrollerWidthDesktop} * 2)` : scrollerWidthDesktop,
|
|
6234
|
-
gridTemplate: `${
|
|
6444
|
+
gridTemplate: `${spacingFluidMd$1} auto minmax(0, 1fr)/repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${spacingFluidLg} minmax(0, 1fr) ${spacingFluidLg})`,
|
|
6235
6445
|
background: `var(${cssVarColorBackgroundBase})`,
|
|
6236
6446
|
...(isSecondaryScrollerVisible && {
|
|
6237
6447
|
background: `linear-gradient(90deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 50%,var(${cssVarColorBackgroundSurface}) 50%,var(${cssVarColorBackgroundSurface}) 100%)`,
|
|
@@ -6321,9 +6531,9 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6321
6531
|
'--p-color-frosted': colorFrostedDark,
|
|
6322
6532
|
'--p-color-frosted-soft': colorFrostedSoftDark,
|
|
6323
6533
|
position: 'absolute',
|
|
6324
|
-
insetInlineStart: `calc(100% + ${
|
|
6325
|
-
insetBlockStart:
|
|
6326
|
-
padding:
|
|
6534
|
+
insetInlineStart: `calc(100% + ${spacingFluidSm})`,
|
|
6535
|
+
insetBlockStart: spacingFluidSm,
|
|
6536
|
+
padding: spacingStaticSm$1,
|
|
6327
6537
|
},
|
|
6328
6538
|
},
|
|
6329
6539
|
back: {
|
|
@@ -6332,11 +6542,10 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6332
6542
|
isPrimary && {
|
|
6333
6543
|
[mediaQueryMobile]: {
|
|
6334
6544
|
display: 'block',
|
|
6335
|
-
marginTop: '2px', // compensate negative margin of ::pseudo background of button-pure
|
|
6336
6545
|
gridArea: '2/2',
|
|
6337
6546
|
width: 'fit-content',
|
|
6338
6547
|
height: 'fit-content',
|
|
6339
|
-
placeSelf: '
|
|
6548
|
+
placeSelf: 'center',
|
|
6340
6549
|
zIndex: 2,
|
|
6341
6550
|
},
|
|
6342
6551
|
}),
|
|
@@ -6348,15 +6557,15 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6348
6557
|
return getCss({
|
|
6349
6558
|
'@global': {
|
|
6350
6559
|
'@keyframes slide-up-mobile': {
|
|
6351
|
-
from: { transform: `translate3d(0,${
|
|
6560
|
+
from: { transform: `translate3d(0,${spacingFluidMd$1},0)` },
|
|
6352
6561
|
to: { transform: 'translate3d(0,0,0)' },
|
|
6353
6562
|
},
|
|
6354
6563
|
'@keyframes slide-up-desktop-primary': {
|
|
6355
|
-
from: { marginBlockStart:
|
|
6564
|
+
from: { marginBlockStart: spacingFluidMd$1 },
|
|
6356
6565
|
to: { marginBlockStart: '0px' },
|
|
6357
6566
|
},
|
|
6358
6567
|
'@keyframes slide-up-desktop-secondary': {
|
|
6359
|
-
from: { marginBlockStart:
|
|
6568
|
+
from: { marginBlockStart: spacingFluidMd$1 },
|
|
6360
6569
|
to: { marginBlockStart: '0px' },
|
|
6361
6570
|
},
|
|
6362
6571
|
':host': {
|
|
@@ -6396,13 +6605,13 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6396
6605
|
zIndex: 0,
|
|
6397
6606
|
display: 'grid',
|
|
6398
6607
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6399
|
-
gap: `var(${cssVariableGap},${
|
|
6608
|
+
gap: `var(${cssVariableGap},${spacingFluidXs})`,
|
|
6400
6609
|
alignContent: 'start',
|
|
6401
6610
|
alignItems: 'start',
|
|
6402
6611
|
boxSizing: 'border-box',
|
|
6403
6612
|
minHeight: '100%',
|
|
6404
6613
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6405
|
-
paddingBlockEnd:
|
|
6614
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6406
6615
|
animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
|
|
6407
6616
|
}),
|
|
6408
6617
|
...((isPrimary || isCascade) && {
|
|
@@ -6414,18 +6623,18 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6414
6623
|
gridArea: '3/2/auto/-2',
|
|
6415
6624
|
display: 'grid',
|
|
6416
6625
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6417
|
-
gap: `var(${cssVariableGap},${
|
|
6626
|
+
gap: `var(${cssVariableGap},${spacingFluidXs})`,
|
|
6418
6627
|
alignContent: 'start',
|
|
6419
6628
|
alignItems: 'start',
|
|
6420
6629
|
boxSizing: 'border-box',
|
|
6421
6630
|
minHeight: '100%',
|
|
6422
6631
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6423
|
-
paddingBlockEnd:
|
|
6632
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6424
6633
|
animation: getAnimation(`slide-up-desktop-${isPrimary ? 'primary' : 'secondary'}`, 'moderate', 'base'),
|
|
6425
6634
|
}),
|
|
6426
6635
|
...(isSecondary && {
|
|
6427
6636
|
gridArea: '2/2/auto/-2',
|
|
6428
|
-
paddingBlockEnd:
|
|
6637
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6429
6638
|
}),
|
|
6430
6639
|
...(isCascade && {
|
|
6431
6640
|
display: 'contents',
|
|
@@ -6437,13 +6646,13 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6437
6646
|
display: 'none',
|
|
6438
6647
|
[mediaQueryMobile]: {
|
|
6439
6648
|
...(isSecondary && {
|
|
6440
|
-
|
|
6649
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6441
6650
|
display: 'block',
|
|
6442
6651
|
gridArea: '2/3',
|
|
6443
6652
|
placeSelf: 'center',
|
|
6444
6653
|
zIndex: 2,
|
|
6445
6654
|
margin: 0,
|
|
6446
|
-
paddingInline:
|
|
6655
|
+
paddingInline: spacingStaticMd,
|
|
6447
6656
|
maxWidth: '100%',
|
|
6448
6657
|
boxSizing: 'border-box',
|
|
6449
6658
|
whiteSpace: 'nowrap',
|
|
@@ -6468,7 +6677,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6468
6677
|
}),
|
|
6469
6678
|
'::slotted(*)': {
|
|
6470
6679
|
[cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
|
|
6471
|
-
[cssVariableGap]:
|
|
6680
|
+
[cssVariableGap]: spacingFluidXs, // reset css variable to prevent inheritance
|
|
6472
6681
|
},
|
|
6473
6682
|
},
|
|
6474
6683
|
// drawer subgrid in combination with scroller grid ensures no content squeezing during slide up animation, potentially caused by scrollbar
|
|
@@ -6486,7 +6695,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6486
6695
|
inset: 0,
|
|
6487
6696
|
insetInlineStart: scrollerWidthDesktop,
|
|
6488
6697
|
display: 'grid',
|
|
6489
|
-
gridTemplate: `${
|
|
6698
|
+
gridTemplate: `${spacingFluidMd$1} minmax(0, 1fr)/${spacingFluidLg} minmax(0, 1fr) ${spacingFluidLg}`,
|
|
6490
6699
|
}),
|
|
6491
6700
|
...((isPrimary || isCascade) && {
|
|
6492
6701
|
display: 'contents',
|
|
@@ -6545,8 +6754,8 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6545
6754
|
// TODO: not sure if this is ideal, since the consumer won't be able to change it when used with a custom
|
|
6546
6755
|
// grid-template, maybe <p-drilldown-button slot="button" /> would be an option, similar to <p-drilldown-link />
|
|
6547
6756
|
gridColumn: '1/-1',
|
|
6548
|
-
padding:
|
|
6549
|
-
margin: `0 calc(${
|
|
6757
|
+
padding: spacingFluidSm,
|
|
6758
|
+
margin: `0 calc(${spacingFluidSm} * -1)`,
|
|
6550
6759
|
}),
|
|
6551
6760
|
},
|
|
6552
6761
|
back: {
|
|
@@ -6564,7 +6773,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6564
6773
|
},
|
|
6565
6774
|
[mediaQueryDesktop]: {
|
|
6566
6775
|
gridArea: '2/2',
|
|
6567
|
-
marginBottom:
|
|
6776
|
+
marginBottom: spacingFluidMd$1,
|
|
6568
6777
|
width: 'fit-content',
|
|
6569
6778
|
height: 'fit-content',
|
|
6570
6779
|
marginInlineStart: '-4px', // improve visual alignment and compensate white space of arrow-left icon
|
|
@@ -6580,10 +6789,10 @@ const anchorHoverJssStyle = {
|
|
|
6580
6789
|
const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
6581
6790
|
const anchorJssStyle = {
|
|
6582
6791
|
all: 'unset',
|
|
6583
|
-
padding: `calc(${
|
|
6584
|
-
margin: `-2px calc(${
|
|
6792
|
+
padding: `calc(${spacingFluidSm} + 2px) calc(${spacingFluidSm} + 4px)`, // aligned with link-pure
|
|
6793
|
+
margin: `-2px calc(${spacingFluidSm} * -1 - 4px)`, // aligned with link-pure
|
|
6585
6794
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`, // needed for focus outline
|
|
6586
|
-
font:
|
|
6795
|
+
font: `${fontWeightNormal$1} ${typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6587
6796
|
color: `var(${cssVarColorPrimary})`,
|
|
6588
6797
|
textDecoration: 'underline',
|
|
6589
6798
|
textDecorationColor: isActive ? 'inherit' : 'transparent',
|
|
@@ -6639,16 +6848,16 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
6639
6848
|
...(hasLabel && {
|
|
6640
6849
|
legend: {
|
|
6641
6850
|
all: 'unset',
|
|
6642
|
-
marginBottom:
|
|
6851
|
+
marginBottom: spacingStaticMd,
|
|
6643
6852
|
color: colorPrimary,
|
|
6644
|
-
|
|
6853
|
+
font: `${labelSize === 'small' ? fontWeightSemibold : fontWeightNormal$1} ${labelSize === 'small' ? typescaleSm$1 : typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6645
6854
|
},
|
|
6646
6855
|
}),
|
|
6647
6856
|
},
|
|
6648
6857
|
...getFunctionalComponentRequiredStyles(),
|
|
6649
6858
|
...mergeDeep(getFunctionalComponentStateMessageStyles(state), {
|
|
6650
6859
|
message: {
|
|
6651
|
-
marginTop:
|
|
6860
|
+
marginTop: spacingStaticMd,
|
|
6652
6861
|
},
|
|
6653
6862
|
}),
|
|
6654
6863
|
});
|
|
@@ -6659,7 +6868,7 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
6659
6868
|
*/
|
|
6660
6869
|
const cssVarSize$2 = '--p-flag-size';
|
|
6661
6870
|
const getComponentCss$W = (size) => {
|
|
6662
|
-
const dimension = `var(${cssVarSize$2},${leadingNormal})`;
|
|
6871
|
+
const dimension = `var(${cssVarSize$2},${leadingNormal$1})`;
|
|
6663
6872
|
return getCss({
|
|
6664
6873
|
'@global': {
|
|
6665
6874
|
':host': {
|
|
@@ -6680,7 +6889,7 @@ const getComponentCss$W = (size) => {
|
|
|
6680
6889
|
pointerEvents: 'none', // disable dragging/ghosting of images
|
|
6681
6890
|
width: dimension,
|
|
6682
6891
|
height: dimension,
|
|
6683
|
-
fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
|
|
6892
|
+
fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
|
|
6684
6893
|
...buildResponsiveStyles(size, (s) => ({
|
|
6685
6894
|
fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
|
|
6686
6895
|
})),
|
|
@@ -6689,11 +6898,11 @@ const getComponentCss$W = (size) => {
|
|
|
6689
6898
|
});
|
|
6690
6899
|
};
|
|
6691
6900
|
|
|
6692
|
-
const cssVarBackgroundColor = '--
|
|
6901
|
+
const cssVarBackgroundColor = '--_p-dialog-a';
|
|
6693
6902
|
const dialogHostJssStyle = (background) => {
|
|
6694
6903
|
return {
|
|
6695
|
-
'--pds-internal-grid-outer-column': `calc(${
|
|
6696
|
-
'--pds-internal-grid-margin': `calc(${
|
|
6904
|
+
'--pds-internal-grid-outer-column': `calc(${spacingFluidLg} - ${gridGap})`,
|
|
6905
|
+
'--pds-internal-grid-margin': `calc(${spacingFluidLg} * -1)`,
|
|
6697
6906
|
'--pds-internal-grid-width-min': 'auto',
|
|
6698
6907
|
'--pds-internal-grid-width-max': 'none',
|
|
6699
6908
|
[cssVarBackgroundColor]: background === 'surface' ? colorSurface : colorCanvas,
|
|
@@ -6735,7 +6944,10 @@ const getDialogBackdropTransitionJssStyle = (isVisible, backdrop = 'blur') => {
|
|
|
6735
6944
|
visibility: 'inherit',
|
|
6736
6945
|
pointerEvents: 'auto',
|
|
6737
6946
|
background: colorBackdrop,
|
|
6738
|
-
...(isBackdropBlur &&
|
|
6947
|
+
...(isBackdropBlur && {
|
|
6948
|
+
WebkitBackdropFilter: blurFrosted,
|
|
6949
|
+
backdropFilter: blurFrosted,
|
|
6950
|
+
}),
|
|
6739
6951
|
}
|
|
6740
6952
|
: {
|
|
6741
6953
|
visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
|
|
@@ -6753,8 +6965,12 @@ const getDialogBackdropTransitionJssStyle = (isVisible, backdrop = 'blur') => {
|
|
|
6753
6965
|
const getScrollerJssStyle = (position) => {
|
|
6754
6966
|
// ensures scrollbar color is set correctly (e.g. when scrollbar is shown on backdrop, on flyout/modal surface or with Auto Dark Mode)
|
|
6755
6967
|
const backgroundLight = 'rgba(255,255,255,.01)';
|
|
6968
|
+
const backgroundDark = 'rgba(0,0,0,.01)';
|
|
6756
6969
|
const background = {
|
|
6757
|
-
light: backgroundLight
|
|
6970
|
+
light: backgroundLight,
|
|
6971
|
+
dark: backgroundDark,
|
|
6972
|
+
auto: backgroundLight,
|
|
6973
|
+
};
|
|
6758
6974
|
return {
|
|
6759
6975
|
position: 'absolute',
|
|
6760
6976
|
isolation: 'isolate', // creates new stacking context to show scrollbars on top of header/footer areas (on iOS/iPadOS)
|
|
@@ -6774,15 +6990,15 @@ const getScrollerJssStyle = (position) => {
|
|
|
6774
6990
|
};
|
|
6775
6991
|
};
|
|
6776
6992
|
const dialogBorderRadius = `var(${legacyRadiusLarge}, ${radiusXl})`;
|
|
6777
|
-
const dialogPaddingTop =
|
|
6778
|
-
const dialogPaddingBottom = `calc(${
|
|
6779
|
-
const dialogPaddingInline =
|
|
6993
|
+
const dialogPaddingTop = spacingFluidMd$1;
|
|
6994
|
+
const dialogPaddingBottom = `calc(${spacingFluidSm} + ${spacingFluidMd$1})`;
|
|
6995
|
+
const dialogPaddingInline = spacingFluidLg;
|
|
6780
6996
|
const dialogGridJssStyle = () => {
|
|
6781
6997
|
return {
|
|
6782
6998
|
position: 'relative',
|
|
6783
6999
|
display: 'grid',
|
|
6784
|
-
gridTemplate: `auto/${
|
|
6785
|
-
gap: `${
|
|
7000
|
+
gridTemplate: `auto/${spacingFluidSm} minmax(0,1fr) ${spacingFluidSm}`,
|
|
7001
|
+
gap: `${spacingFluidMd$1} calc(${spacingFluidLg} - ${spacingFluidSm})`,
|
|
6786
7002
|
paddingTop: dialogPaddingTop,
|
|
6787
7003
|
paddingBottom: dialogPaddingBottom,
|
|
6788
7004
|
alignContent: 'flex-start',
|
|
@@ -6820,20 +7036,11 @@ const getDialogDismissButtonJssStyle = () => {
|
|
|
6820
7036
|
gridArea: '1/3',
|
|
6821
7037
|
zIndex: 5, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
|
|
6822
7038
|
position: 'sticky',
|
|
6823
|
-
top:
|
|
6824
|
-
marginTop: `calc(-1 * ${dialogPaddingTop} + ${
|
|
6825
|
-
marginInlineEnd:
|
|
7039
|
+
top: spacingFluidSm,
|
|
7040
|
+
marginTop: `calc(-1 * ${dialogPaddingTop} + ${spacingFluidSm})`,
|
|
7041
|
+
marginInlineEnd: spacingFluidSm,
|
|
6826
7042
|
placeSelf: 'flex-start flex-end',
|
|
6827
|
-
|
|
6828
|
-
content: '""',
|
|
6829
|
-
display: 'block',
|
|
6830
|
-
position: 'absolute',
|
|
6831
|
-
inset: `calc(-1 * ${spacingFluidSmall}) calc(-1 * ${spacingFluidSmall}) -50px -50px`,
|
|
6832
|
-
pointerEvents: 'none',
|
|
6833
|
-
zIndex: -1,
|
|
6834
|
-
borderRadius: dialogBorderRadius,
|
|
6835
|
-
background: `radial-gradient(circle at top right, hsla(from var(${cssVarBackgroundColor}) h s l / 0.35) 0%, transparent 70%)`,
|
|
6836
|
-
},
|
|
7043
|
+
boxShadow: `0px 0px 30px hsla(from var(${cssVarBackgroundColor}) h s l / 0.35)`
|
|
6837
7044
|
};
|
|
6838
7045
|
};
|
|
6839
7046
|
const getSlotJssStyle = () => {
|
|
@@ -6846,7 +7053,7 @@ const getSlotJssStyle = () => {
|
|
|
6846
7053
|
};
|
|
6847
7054
|
const getSlotHeaderJssStyle = () => {
|
|
6848
7055
|
const paddingTop = dialogPaddingTop;
|
|
6849
|
-
const paddingBottom =
|
|
7056
|
+
const paddingBottom = spacingStaticMd;
|
|
6850
7057
|
return {
|
|
6851
7058
|
gridColumn: '1/-1',
|
|
6852
7059
|
zIndex: 1, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
|
|
@@ -6881,7 +7088,8 @@ const getSlotFooterJssStyle = () => {
|
|
|
6881
7088
|
inset: `calc(${paddingBlock} - ${offset}) calc(${dialogPaddingInline} - ${offset})`,
|
|
6882
7089
|
background: colorFrosted,
|
|
6883
7090
|
borderRadius: radius3Xl,
|
|
6884
|
-
|
|
7091
|
+
WebkitBackdropFilter: blurFrosted,
|
|
7092
|
+
backdropFilter: blurFrosted,
|
|
6885
7093
|
},
|
|
6886
7094
|
};
|
|
6887
7095
|
};
|
|
@@ -7008,7 +7216,7 @@ const getComponentCss$U = (size, weight, align, color, hyphens, ellipsis) => {
|
|
|
7008
7216
|
root: {
|
|
7009
7217
|
all: 'unset',
|
|
7010
7218
|
display: 'block',
|
|
7011
|
-
font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal} ${fontPorscheNext}`,
|
|
7219
|
+
font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7012
7220
|
...buildResponsiveStyles(size, (v) => ({
|
|
7013
7221
|
fontSize: sizeMap$1[v],
|
|
7014
7222
|
})),
|
|
@@ -7075,7 +7283,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7075
7283
|
name === 'send'));
|
|
7076
7284
|
};
|
|
7077
7285
|
const getComponentCss$T = (name, source, color, size) => {
|
|
7078
|
-
const dimension = `var(${cssVarSize$1},${leadingNormal})`;
|
|
7286
|
+
const dimension = `var(${cssVarSize$1},${leadingNormal$1})`;
|
|
7079
7287
|
const mask = `url("${buildIconUrl(source || name)}") center/contain no-repeat`;
|
|
7080
7288
|
return getCss({
|
|
7081
7289
|
'@global': {
|
|
@@ -7098,7 +7306,7 @@ const getComponentCss$T = (name, source, color, size) => {
|
|
|
7098
7306
|
pointerEvents: 'none', // disable dragging/ghosting of images
|
|
7099
7307
|
width: dimension,
|
|
7100
7308
|
height: dimension,
|
|
7101
|
-
fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
|
|
7309
|
+
fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
|
|
7102
7310
|
...buildResponsiveStyles(size, (s) => ({
|
|
7103
7311
|
fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
|
|
7104
7312
|
})),
|
|
@@ -7118,97 +7326,18 @@ const getComponentCss$T = (name, source, color, size) => {
|
|
|
7118
7326
|
});
|
|
7119
7327
|
};
|
|
7120
7328
|
|
|
7121
|
-
const
|
|
7122
|
-
|
|
7123
|
-
const getBackgroundColor = (state) => {
|
|
7124
|
-
const colorMap = {
|
|
7125
|
-
info: colorInfoFrosted,
|
|
7126
|
-
warning: colorWarningFrosted,
|
|
7127
|
-
success: colorSuccessFrosted,
|
|
7128
|
-
error: colorErrorFrosted,
|
|
7129
|
-
};
|
|
7130
|
-
return colorMap[state];
|
|
7131
|
-
};
|
|
7132
|
-
const getNotificationRootJssStyle = (state, hasAction, hasClose) => {
|
|
7133
|
-
return {
|
|
7134
|
-
// display: 'grid', // NOTE: display property is moved into component styled to not apply !important keyword
|
|
7135
|
-
// 2 columns for content and optional close button
|
|
7136
|
-
gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
|
|
7137
|
-
gap: spacingStaticMedium,
|
|
7138
|
-
placeItems: 'start',
|
|
7139
|
-
padding: spacingStaticMedium,
|
|
7140
|
-
...frostedGlassStyle,
|
|
7141
|
-
background: getBackgroundColor(state),
|
|
7142
|
-
borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
|
|
7143
|
-
[mediaQueryMinS$1]: {
|
|
7144
|
-
// 4 columns are for icon, content, optional action button and optional close button
|
|
7145
|
-
gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
|
|
7146
|
-
},
|
|
7147
|
-
...forcedColorsMediaQuery({
|
|
7148
|
-
outline: '2px solid CanvasText',
|
|
7149
|
-
outlineOffset: '-2px',
|
|
7150
|
-
}),
|
|
7151
|
-
};
|
|
7152
|
-
};
|
|
7153
|
-
const getNotificationIconJssStyle = () => ({
|
|
7154
|
-
marginTop: '2px', // To be center aligned with close button
|
|
7155
|
-
[mediaQueryMaxS$2]: {
|
|
7156
|
-
display: 'none',
|
|
7157
|
-
},
|
|
7158
|
-
});
|
|
7159
|
-
const getNotificationContentJssStyle = () => ({
|
|
7160
|
-
display: 'grid',
|
|
7161
|
-
gap: spacingStaticXSmall,
|
|
7162
|
-
marginTop: '2px', // To be center aligned with close button
|
|
7163
|
-
[mediaQueryMinS$1]: {
|
|
7164
|
-
marginLeft: `-${spacingStaticSmall}`,
|
|
7165
|
-
},
|
|
7166
|
-
});
|
|
7167
|
-
|
|
7168
|
-
const INLINE_NOTIFICATION_HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
7169
|
-
|
|
7170
|
-
const mediaQueryMaxS$1 = getMediaQueryMax('s');
|
|
7171
|
-
const getTextJssStyle = {
|
|
7172
|
-
margin: 0,
|
|
7173
|
-
color: colorPrimary,
|
|
7174
|
-
};
|
|
7175
|
-
const getHeadingJssStyle = {
|
|
7176
|
-
...headingSmallStyle,
|
|
7177
|
-
...getTextJssStyle,
|
|
7178
|
-
};
|
|
7179
|
-
const getComponentCss$S = (state, hasAction, hasClose) => {
|
|
7180
|
-
return getCss({
|
|
7329
|
+
const getComponentCss$S = (state, hasAction, hasDismissButton, hasHeadingOrHeadingSlot) => {
|
|
7330
|
+
return getCss(mergeDeep({
|
|
7181
7331
|
'@global': {
|
|
7182
7332
|
':host': {
|
|
7183
|
-
display: '
|
|
7333
|
+
display: 'block',
|
|
7184
7334
|
...addImportantToEachRule({
|
|
7185
|
-
...getNotificationRootJssStyle(state, hasAction, hasClose),
|
|
7186
7335
|
...hostHiddenStyles,
|
|
7187
7336
|
}),
|
|
7188
7337
|
},
|
|
7189
7338
|
...preventFoucOfNestedElementsStyles,
|
|
7190
|
-
[`::slotted(:is(${INLINE_NOTIFICATION_HEADING_TAGS.join()}))`]: addImportantToEachRule({
|
|
7191
|
-
all: 'unset',
|
|
7192
|
-
}),
|
|
7193
|
-
'slot[name="heading"]': getHeadingJssStyle,
|
|
7194
|
-
},
|
|
7195
|
-
heading: getHeadingJssStyle,
|
|
7196
|
-
description: {
|
|
7197
|
-
...textSmallStyle,
|
|
7198
|
-
...getTextJssStyle,
|
|
7199
7339
|
},
|
|
7200
|
-
|
|
7201
|
-
content: getNotificationContentJssStyle(),
|
|
7202
|
-
...(hasAction && {
|
|
7203
|
-
action: {
|
|
7204
|
-
marginTop: borderWidthBase, // To visually align with close button
|
|
7205
|
-
[mediaQueryMaxS$1]: {
|
|
7206
|
-
gridRowStart: 2,
|
|
7207
|
-
},
|
|
7208
|
-
},
|
|
7209
|
-
}),
|
|
7210
|
-
close: dismissButtonJssStyle,
|
|
7211
|
-
});
|
|
7340
|
+
}, getFunctionalComponentNotificationBaseStyles(state, hasAction, hasDismissButton, hasHeadingOrHeadingSlot)));
|
|
7212
7341
|
};
|
|
7213
7342
|
|
|
7214
7343
|
// CSS Variables defined in base input
|
|
@@ -7361,16 +7490,16 @@ const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
7361
7490
|
|
|
7362
7491
|
const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
|
|
7363
7492
|
// TODO: basic button/icon padding can already be set within style function instead of on component style level
|
|
7364
|
-
const formButtonOrIconPadding =
|
|
7493
|
+
const formButtonOrIconPadding = spacingStaticXs$1;
|
|
7365
7494
|
// TODO: if we'd use 12px instead, it wouldn't be necessary for textarea to have a custom vertical padding,
|
|
7366
7495
|
// unfortunately line-height alignment breaks for a select element for some reasons then
|
|
7367
7496
|
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
7368
|
-
const formElementPaddingVertical =
|
|
7497
|
+
const formElementPaddingVertical = spacingStaticSm$1;
|
|
7369
7498
|
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
7370
|
-
const formElementPaddingHorizontal =
|
|
7499
|
+
const formElementPaddingHorizontal = spacingStaticMd;
|
|
7371
7500
|
const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
|
|
7372
7501
|
// when applied, font-family and font-size needs to be set too for correct calculation of ex-unit ($fontLineHeight)
|
|
7373
|
-
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${
|
|
7502
|
+
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${leadingNormal$1} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
|
|
7374
7503
|
};
|
|
7375
7504
|
const getUnitCounterJssStyle = () => {
|
|
7376
7505
|
return {
|
|
@@ -7380,7 +7509,7 @@ const getUnitCounterJssStyle = () => {
|
|
|
7380
7509
|
whiteSpace: 'nowrap',
|
|
7381
7510
|
overflow: 'hidden',
|
|
7382
7511
|
textOverflow: 'ellipsis',
|
|
7383
|
-
font:
|
|
7512
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7384
7513
|
color: colorContrastHigh,
|
|
7385
7514
|
};
|
|
7386
7515
|
};
|
|
@@ -7476,9 +7605,9 @@ const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideL
|
|
|
7476
7605
|
content: '""',
|
|
7477
7606
|
position: 'fixed',
|
|
7478
7607
|
insetBlock: offsetVertical,
|
|
7479
|
-
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
7480
7608
|
...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
7481
7609
|
insetInline: hideLabelValue ? offsetVertical : offsetHorizontal,
|
|
7610
|
+
borderRadius: `var(${legacyRadiusSmall}, ${hideLabelValue ? radiusFull : radiusLg})`,
|
|
7482
7611
|
})),
|
|
7483
7612
|
},
|
|
7484
7613
|
'&(a:focus-visible)::before': getFocusBaseStyles(),
|
|
@@ -7532,7 +7661,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7532
7661
|
[`&([slot="${headerSlot}"])`]: {
|
|
7533
7662
|
display: 'flex',
|
|
7534
7663
|
flexWrap: 'wrap',
|
|
7535
|
-
gap:
|
|
7664
|
+
gap: spacingFluidXs,
|
|
7536
7665
|
},
|
|
7537
7666
|
},
|
|
7538
7667
|
'::slotted(:is(img,picture))': {
|
|
@@ -7557,7 +7686,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7557
7686
|
overflow: 'hidden', // TODO: discussable if we should prevent text to overflow .root, – e.g. it also prevents a popover from being shown correctly
|
|
7558
7687
|
boxSizing: 'border-box',
|
|
7559
7688
|
borderRadius: `var(${legacyRadiusLarge}, ${radius4Xl})`,
|
|
7560
|
-
padding:
|
|
7689
|
+
padding: spacingFluidSm,
|
|
7561
7690
|
color: colorPrimary,
|
|
7562
7691
|
backgroundColor: colorSurface,
|
|
7563
7692
|
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
@@ -7572,7 +7701,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7572
7701
|
}),
|
|
7573
7702
|
header: {
|
|
7574
7703
|
display: 'flex',
|
|
7575
|
-
gap:
|
|
7704
|
+
gap: spacingFluidSm,
|
|
7576
7705
|
justifyContent: 'space-between',
|
|
7577
7706
|
alignItems: 'flex-start',
|
|
7578
7707
|
},
|
|
@@ -7584,11 +7713,11 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7584
7713
|
}),
|
|
7585
7714
|
image: {
|
|
7586
7715
|
aspectRatio: '8/9',
|
|
7587
|
-
margin: `${
|
|
7716
|
+
margin: `${spacingFluidSm} auto ${spacingFluidXs}`,
|
|
7588
7717
|
overflow: 'hidden',
|
|
7589
7718
|
transition: getTransition('transform', 'moderate'),
|
|
7590
7719
|
[getMediaQueryMin('s')]: {
|
|
7591
|
-
padding: `0 ${
|
|
7720
|
+
padding: `0 ${spacingFluidMd$1}`, // ensures image is not getting to large
|
|
7592
7721
|
},
|
|
7593
7722
|
...hoverMediaQuery({
|
|
7594
7723
|
'.root:hover &': {
|
|
@@ -7604,25 +7733,25 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7604
7733
|
},
|
|
7605
7734
|
heading: {
|
|
7606
7735
|
margin: '0 0 2px', // ua-style reset
|
|
7607
|
-
|
|
7736
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7608
7737
|
...getMultilineEllipsis(3),
|
|
7609
7738
|
},
|
|
7610
7739
|
price: {
|
|
7611
7740
|
margin: 0, // ua-style reset
|
|
7612
|
-
|
|
7741
|
+
font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7613
7742
|
...(hasPriceOriginal && {
|
|
7614
7743
|
display: 'flex',
|
|
7615
7744
|
flexWrap: 'wrap',
|
|
7616
7745
|
justifyContent: 'center',
|
|
7617
|
-
columnGap:
|
|
7746
|
+
columnGap: spacingFluidXs,
|
|
7618
7747
|
}),
|
|
7619
7748
|
},
|
|
7620
7749
|
...(hasDescription && {
|
|
7621
7750
|
description: {
|
|
7622
7751
|
margin: 0, // ua-style reset
|
|
7623
|
-
|
|
7624
|
-
...getMultilineEllipsis(2),
|
|
7752
|
+
font: `${fontWeightNormal$1} ${typescale2Xs} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7625
7753
|
color: colorContrastHigh,
|
|
7754
|
+
...getMultilineEllipsis(2),
|
|
7626
7755
|
},
|
|
7627
7756
|
}),
|
|
7628
7757
|
...(hasPriceOriginal && {
|
|
@@ -7682,7 +7811,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7682
7811
|
all: 'unset',
|
|
7683
7812
|
zIndex: 3,
|
|
7684
7813
|
maxWidth: '34.375rem',
|
|
7685
|
-
|
|
7814
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7686
7815
|
color: colorPrimary,
|
|
7687
7816
|
hyphens: 'inherit',
|
|
7688
7817
|
...mergeDeep(buildResponsiveStyles(size, (v) => ({
|
|
@@ -7694,7 +7823,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7694
7823
|
},
|
|
7695
7824
|
root: {
|
|
7696
7825
|
display: 'grid',
|
|
7697
|
-
gridTemplate: `${
|
|
7826
|
+
gridTemplate: `${spacingFluidMd$1} auto minmax(0px, 1fr) auto ${spacingFluidMd$1}/${spacingFluidMd$1} minmax(0px, 1fr) ${spacingFluidMd$1}`,
|
|
7698
7827
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
7699
7828
|
// Safari workaround to scale the tile properly
|
|
7700
7829
|
'@supports (-webkit-hyphens: auto)': {
|
|
@@ -7712,14 +7841,14 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7712
7841
|
? {
|
|
7713
7842
|
gridArea: '1/1/3/-1',
|
|
7714
7843
|
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
7715
|
-
marginBottom: `calc(${
|
|
7844
|
+
marginBottom: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7716
7845
|
borderStartStartRadius: 'inherit',
|
|
7717
7846
|
borderStartEndRadius: 'inherit',
|
|
7718
7847
|
}
|
|
7719
7848
|
: {
|
|
7720
7849
|
gridArea: '4/1/6/-1',
|
|
7721
7850
|
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
7722
|
-
marginTop: `calc(${
|
|
7851
|
+
marginTop: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7723
7852
|
borderEndStartRadius: 'inherit',
|
|
7724
7853
|
borderEndEndRadius: 'inherit',
|
|
7725
7854
|
}),
|
|
@@ -7744,7 +7873,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7744
7873
|
? {
|
|
7745
7874
|
display: 'grid',
|
|
7746
7875
|
gridTemplateColumns: 'minmax(0,1fr) auto',
|
|
7747
|
-
columnGap:
|
|
7876
|
+
columnGap: spacingStaticMd,
|
|
7748
7877
|
}
|
|
7749
7878
|
: {
|
|
7750
7879
|
display: 'flex',
|
|
@@ -7764,7 +7893,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7764
7893
|
'link-or-button': {
|
|
7765
7894
|
minHeight: '54px', // prevent content shift
|
|
7766
7895
|
zIndex: 5,
|
|
7767
|
-
marginTop:
|
|
7896
|
+
marginTop: spacingStaticMd,
|
|
7768
7897
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
7769
7898
|
display: compactValue ? 'none' : 'inline-block',
|
|
7770
7899
|
})),
|
|
@@ -7772,7 +7901,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7772
7901
|
});
|
|
7773
7902
|
};
|
|
7774
7903
|
|
|
7775
|
-
const cssVariableInternalLinkScaling = '--
|
|
7904
|
+
const cssVariableInternalLinkScaling = '--_p-link-a';
|
|
7776
7905
|
const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, isCompact) => {
|
|
7777
7906
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, isCompact, cssVariableInternalLinkScaling), {
|
|
7778
7907
|
label: {
|
|
@@ -7896,7 +8025,7 @@ const colorMap = {
|
|
|
7896
8025
|
'contrast-low': colorContrastLow,
|
|
7897
8026
|
'contrast-medium': colorContrastMedium,
|
|
7898
8027
|
'contrast-high': colorContrastHigh,
|
|
7899
|
-
inherit: '
|
|
8028
|
+
inherit: 'currentcolor',
|
|
7900
8029
|
};
|
|
7901
8030
|
const getComponentCss$B = (model, safeZone, size, color) => {
|
|
7902
8031
|
const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
|
|
@@ -7911,11 +8040,10 @@ const getComponentCss$B = (model, safeZone, size, color) => {
|
|
|
7911
8040
|
// width + height style can't be !important atm to be backwards compatible with e.g. `<p-model-signature size="inherit" style="height: 50px"/>`
|
|
7912
8041
|
width: `var(${cssVariableWidth},${isSizeInherit ? 'auto' : `${width}px`})`,
|
|
7913
8042
|
height: `var(${cssVariableHeight},auto)`,
|
|
7914
|
-
color: `var(${cssVariableColor},${colorMap[color]})`,
|
|
7915
8043
|
...addImportantToEachRule({
|
|
7916
8044
|
mask: `url(${getSvgUrl(model)}) no-repeat left top / contain`,
|
|
7917
8045
|
aspectRatio: `${width} / ${safeZone ? 36 : height}`, // 36px is the max-height for SVG model signature creation
|
|
7918
|
-
background:
|
|
8046
|
+
background: `var(${cssVariableColor},${colorMap[color]})`, // color="inherit" will use currentcolor for inheritance
|
|
7919
8047
|
...forcedColorsMediaQuery({
|
|
7920
8048
|
background: 'CanvasText',
|
|
7921
8049
|
}),
|
|
@@ -7939,10 +8067,10 @@ const getComponentCss$B = (model, safeZone, size, color) => {
|
|
|
7939
8067
|
});
|
|
7940
8068
|
};
|
|
7941
8069
|
|
|
7942
|
-
const cssVarInternalMultiSelectOptionScaling = '--
|
|
8070
|
+
const cssVarInternalMultiSelectOptionScaling = '--_p-multi-select-option-a';
|
|
7943
8071
|
const getComponentCss$A = (isDisabled, selected) => {
|
|
7944
8072
|
const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
|
|
7945
|
-
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${
|
|
8073
|
+
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
|
|
7946
8074
|
return getCss({
|
|
7947
8075
|
'@global': {
|
|
7948
8076
|
':host': {
|
|
@@ -7967,7 +8095,7 @@ const getComponentCss$A = (isDisabled, selected) => {
|
|
|
7967
8095
|
});
|
|
7968
8096
|
};
|
|
7969
8097
|
|
|
7970
|
-
const cssVarInternalOptgroupScaling = '--
|
|
8098
|
+
const cssVarInternalOptgroupScaling = '--_p-optgroup-a';
|
|
7971
8099
|
const paddingBlock = `calc(11.2px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 4px)`;
|
|
7972
8100
|
const paddingInline = `calc(16.8px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 6px)`;
|
|
7973
8101
|
const gap = `calc(11.2px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 4px)`;
|
|
@@ -7979,8 +8107,8 @@ const getComponentCss$z = (isDisabled) => {
|
|
|
7979
8107
|
...hostHiddenStyles,
|
|
7980
8108
|
}),
|
|
7981
8109
|
'::slotted(*)': {
|
|
7982
|
-
'--
|
|
7983
|
-
'--
|
|
8110
|
+
'--_p-select-option-b': paddingSlottedInlineStart,
|
|
8111
|
+
'--_p-multi-select-option-b': paddingSlottedInlineStart,
|
|
7984
8112
|
},
|
|
7985
8113
|
'[role="group"]': {
|
|
7986
8114
|
display: 'flex',
|
|
@@ -7990,7 +8118,7 @@ const getComponentCss$z = (isDisabled) => {
|
|
|
7990
8118
|
'[role="presentation"]': {
|
|
7991
8119
|
paddingBlock,
|
|
7992
8120
|
paddingInline,
|
|
7993
|
-
font:
|
|
8121
|
+
font: `${fontWeightSemibold} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7994
8122
|
color: colorPrimary,
|
|
7995
8123
|
...(isDisabled && getDisabledBaseStyles()),
|
|
7996
8124
|
},
|
|
@@ -7998,7 +8126,7 @@ const getComponentCss$z = (isDisabled) => {
|
|
|
7998
8126
|
});
|
|
7999
8127
|
};
|
|
8000
8128
|
|
|
8001
|
-
const cssVarInternalMultiSelectScaling = '--
|
|
8129
|
+
const cssVarInternalMultiSelectScaling = '--_p-multi-select-a';
|
|
8002
8130
|
const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
8003
8131
|
return getCss({
|
|
8004
8132
|
'@global': {
|
|
@@ -8025,9 +8153,9 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
8025
8153
|
},
|
|
8026
8154
|
root: {
|
|
8027
8155
|
display: 'grid',
|
|
8028
|
-
gap:
|
|
8156
|
+
gap: spacingStaticXs$1,
|
|
8029
8157
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
|
|
8030
|
-
minWidth: `calc(1rem + ${formElementPaddingHorizontal} +
|
|
8158
|
+
minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
|
|
8031
8159
|
},
|
|
8032
8160
|
filter: getFilterJssStyle(cssVarInternalMultiSelectScaling),
|
|
8033
8161
|
options: getOptionsJssStyle(cssVarInternalMultiSelectScaling),
|
|
@@ -8065,11 +8193,11 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8065
8193
|
},
|
|
8066
8194
|
ul: {
|
|
8067
8195
|
display: 'flex',
|
|
8068
|
-
gap:
|
|
8196
|
+
gap: spacingStaticXs$1,
|
|
8069
8197
|
margin: 0,
|
|
8070
8198
|
padding: 0,
|
|
8071
8199
|
[mediaQueryMinS]: {
|
|
8072
|
-
gap:
|
|
8200
|
+
gap: spacingStaticSm$1,
|
|
8073
8201
|
},
|
|
8074
8202
|
},
|
|
8075
8203
|
li: {
|
|
@@ -8119,7 +8247,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8119
8247
|
minWidth: '2.25rem',
|
|
8120
8248
|
height: '2.25rem',
|
|
8121
8249
|
boxSizing: 'border-box',
|
|
8122
|
-
|
|
8250
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
8123
8251
|
whiteSpace: 'nowrap',
|
|
8124
8252
|
cursor: 'pointer',
|
|
8125
8253
|
backgroundColor: 'transparent',
|
|
@@ -8129,7 +8257,8 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8129
8257
|
outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style
|
|
8130
8258
|
...hoverMediaQuery({
|
|
8131
8259
|
'&:not([aria-disabled]):not(.ellipsis):hover': {
|
|
8132
|
-
|
|
8260
|
+
WebkitBackdropFilter: blurFrosted,
|
|
8261
|
+
backdropFilter: blurFrosted,
|
|
8133
8262
|
background: colorFrosted,
|
|
8134
8263
|
...forcedColorsMediaQuery({
|
|
8135
8264
|
outline: '2px solid CanvasText',
|
|
@@ -8161,11 +8290,11 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8161
8290
|
});
|
|
8162
8291
|
};
|
|
8163
8292
|
|
|
8164
|
-
const cssVarInternalPinCodeScaling = '--
|
|
8293
|
+
const cssVarInternalPinCodeScaling = '--_p-pin-code-a';
|
|
8165
8294
|
const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCompact) => {
|
|
8166
8295
|
const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
8167
8296
|
const gap = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
|
|
8168
|
-
const inputBorderWidth =
|
|
8297
|
+
const inputBorderWidth = '1px';
|
|
8169
8298
|
const inputDimension = `calc(var(${cssVarInternalPinCodeScaling}) * 3.5rem)`;
|
|
8170
8299
|
const inputPadding = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
|
|
8171
8300
|
const inputMinWidth = `calc(1ch + ${inputPadding} * 2 + ${inputBorderWidth} * 2)`;
|
|
@@ -8192,7 +8321,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
|
|
|
8192
8321
|
border: `${inputBorderWidth} solid ${formStateBorderColor}`,
|
|
8193
8322
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
8194
8323
|
background: formStateBackgroundColor,
|
|
8195
|
-
font:
|
|
8324
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / calc(${leadingNormal$1} + 6px) ${fontPorscheNext$1}`, // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
8196
8325
|
color: colorPrimary,
|
|
8197
8326
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
8198
8327
|
textOverflow: 'ellipsis',
|
|
@@ -8214,7 +8343,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
|
|
|
8214
8343
|
root: {
|
|
8215
8344
|
all: 'unset',
|
|
8216
8345
|
display: 'grid',
|
|
8217
|
-
gap:
|
|
8346
|
+
gap: spacingStaticXs$1,
|
|
8218
8347
|
},
|
|
8219
8348
|
wrapper: {
|
|
8220
8349
|
position: 'relative',
|
|
@@ -8268,20 +8397,21 @@ const getComponentCss$v = () => {
|
|
|
8268
8397
|
},
|
|
8269
8398
|
...preventFoucOfNestedElementsStyles,
|
|
8270
8399
|
p: {
|
|
8271
|
-
|
|
8400
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
8272
8401
|
margin: 0,
|
|
8273
8402
|
},
|
|
8274
8403
|
button: {
|
|
8275
8404
|
all: 'unset',
|
|
8276
8405
|
display: 'block',
|
|
8277
|
-
font: `${
|
|
8278
|
-
width:
|
|
8279
|
-
height:
|
|
8406
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width/height definition based on ex-unit
|
|
8407
|
+
width: leadingNormal$1, // width needed to improve ssr support
|
|
8408
|
+
height: leadingNormal$1, // height needed to improve ssr support
|
|
8280
8409
|
borderRadius: radiusFull,
|
|
8281
8410
|
cursor: 'pointer',
|
|
8282
8411
|
backgroundColor: colorFrosted,
|
|
8283
8412
|
transition: getTransition('background-color'),
|
|
8284
|
-
|
|
8413
|
+
WebkitBackdropFilter: blurFrosted,
|
|
8414
|
+
backdropFilter: blurFrosted,
|
|
8285
8415
|
...hoverMediaQuery({
|
|
8286
8416
|
'&:hover': {
|
|
8287
8417
|
backgroundColor: colorFrostedSoft,
|
|
@@ -8295,7 +8425,7 @@ const getComponentCss$v = () => {
|
|
|
8295
8425
|
pointerEvents: 'none',
|
|
8296
8426
|
filter: `drop-shadow(0 0 16px ${shadowColor})`,
|
|
8297
8427
|
backdropFilter: 'drop-shadow(0 0 transparent)', // workaround for Firefox bug not rendering PDS frosted glass correctly when nested inside CSS filter: https://bugzilla.mozilla.org/show_bug.cgi?id=1797051
|
|
8298
|
-
animation: `var(${cssVariableAnimationDuration}, ${
|
|
8428
|
+
animation: `var(${cssVariableAnimationDuration}, ${durationSm}) fade-in ${easeInOut} forwards`,
|
|
8299
8429
|
'&:not(:popover-open)': {
|
|
8300
8430
|
display: 'none', // ensures popover is not flickering when closed in some situations
|
|
8301
8431
|
},
|
|
@@ -8319,11 +8449,11 @@ const getComponentCss$v = () => {
|
|
|
8319
8449
|
maxWidth: `min(calc(100dvw - ${POPOVER_SAFE_ZONE * 2}px), 48ch)`,
|
|
8320
8450
|
width: 'max-content', // ensures in older browsers correct width
|
|
8321
8451
|
boxSizing: 'border-box',
|
|
8322
|
-
padding: `${
|
|
8452
|
+
padding: `${spacingStaticSm$1} ${spacingStaticMd}`,
|
|
8323
8453
|
pointerEvents: 'auto',
|
|
8324
8454
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusLg})`,
|
|
8325
|
-
...textSmallStyle,
|
|
8326
8455
|
background: colorCanvas,
|
|
8456
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
8327
8457
|
color: colorPrimary,
|
|
8328
8458
|
...forcedColorsMediaQuery({
|
|
8329
8459
|
outline: '2px solid CanvasText',
|
|
@@ -8333,16 +8463,16 @@ const getComponentCss$v = () => {
|
|
|
8333
8463
|
});
|
|
8334
8464
|
};
|
|
8335
8465
|
|
|
8336
|
-
const cssVarInternalRadioGroupOptionScaling = '--
|
|
8466
|
+
const cssVarInternalRadioGroupOptionScaling = '--_p-radio-group-option-a';
|
|
8337
8467
|
const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>`);
|
|
8338
8468
|
const getComponentCss$u = (disabled, loading, state) => {
|
|
8339
8469
|
const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
8340
8470
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
8341
|
-
const radioBorderWidth =
|
|
8471
|
+
const radioBorderWidth = '1px';
|
|
8342
8472
|
const radioDimension = `calc(var(${cssVarInternalRadioGroupOptionScaling}) * 1.75rem)`;
|
|
8343
|
-
const radioMarginBlock = `max(0px, calc((${
|
|
8473
|
+
const radioMarginBlock = `max(0px, calc((${leadingNormal$1} - ${radioDimension}) / 2))`;
|
|
8344
8474
|
const radioTouchInset = `calc(-${radioBorderWidth} - max(0px, calc(24px - ${radioDimension}) / 2))`;
|
|
8345
|
-
const labelPaddingTop = `max(0px, calc((${radioDimension} - ${
|
|
8475
|
+
const labelPaddingTop = `max(0px, calc((${radioDimension} - ${leadingNormal$1}) / 2))`;
|
|
8346
8476
|
const labelPaddingInlineStart = `calc(11.2px * (var(${cssVarInternalRadioGroupOptionScaling}) - 0.64285714) + 4px)`;
|
|
8347
8477
|
return getCss({
|
|
8348
8478
|
'@global': {
|
|
@@ -8361,7 +8491,7 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8361
8491
|
height: radioDimension,
|
|
8362
8492
|
marginBlock: radioMarginBlock,
|
|
8363
8493
|
boxSizing: 'border-box',
|
|
8364
|
-
font: `${
|
|
8494
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
|
|
8365
8495
|
background: formStateBackgroundColor,
|
|
8366
8496
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
8367
8497
|
border: `${radioBorderWidth} solid ${formStateBorderColor}`,
|
|
@@ -8407,14 +8537,14 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8407
8537
|
root: {
|
|
8408
8538
|
display: 'grid',
|
|
8409
8539
|
gridTemplateColumns: 'auto minmax(0, 1fr)',
|
|
8410
|
-
rowGap:
|
|
8540
|
+
rowGap: spacingStaticXs$1,
|
|
8411
8541
|
},
|
|
8412
8542
|
wrapper: {
|
|
8413
8543
|
position: 'relative',
|
|
8414
8544
|
display: 'flex',
|
|
8415
8545
|
alignItems: 'center',
|
|
8416
8546
|
alignSelf: 'flex-start',
|
|
8417
|
-
minHeight:
|
|
8547
|
+
minHeight: leadingNormal$1, // necessary for compact mode
|
|
8418
8548
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
8419
8549
|
...(disabled && getDisabledBaseStyles()),
|
|
8420
8550
|
},
|
|
@@ -8437,7 +8567,7 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8437
8567
|
});
|
|
8438
8568
|
};
|
|
8439
8569
|
|
|
8440
|
-
const cssVarInternalRadioGroupScaling = '--
|
|
8570
|
+
const cssVarInternalRadioGroupScaling = '--_p-radio-group-a';
|
|
8441
8571
|
const groupRadioGroupDirectionJssStyles = {
|
|
8442
8572
|
column: {
|
|
8443
8573
|
flexFlow: 'column nowrap',
|
|
@@ -8475,7 +8605,7 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
|
|
|
8475
8605
|
all: 'unset',
|
|
8476
8606
|
display: 'grid',
|
|
8477
8607
|
justifySelf: 'flex-start',
|
|
8478
|
-
rowGap:
|
|
8608
|
+
rowGap: spacingStaticXs$1,
|
|
8479
8609
|
},
|
|
8480
8610
|
wrapper: {
|
|
8481
8611
|
alignItems: 'start',
|
|
@@ -8569,6 +8699,10 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
|
|
|
8569
8699
|
...(hasScrollbar && {
|
|
8570
8700
|
marginTop: `calc(-1 * ${scrollbarWidth})`,
|
|
8571
8701
|
}),
|
|
8702
|
+
...(hasScrollbar &&
|
|
8703
|
+
pointerCoarseMediaQuery({
|
|
8704
|
+
marginTop: 0,
|
|
8705
|
+
})),
|
|
8572
8706
|
display: 'grid',
|
|
8573
8707
|
alignSelf: 'center',
|
|
8574
8708
|
width: '1.5rem',
|
|
@@ -8612,7 +8746,8 @@ isSticky, hasScrollbar, isCompact) => {
|
|
|
8612
8746
|
: !isIndicatorNextVisible
|
|
8613
8747
|
? 'left'
|
|
8614
8748
|
: 'both';
|
|
8615
|
-
const mask = `${getSmoothMask(fadeEdges)} 0 0/auto no-repeat
|
|
8749
|
+
const mask = `${getSmoothMask(fadeEdges)} 0 0/auto no-repeat`;
|
|
8750
|
+
const scrollbarMask = `linear-gradient(black,black) 0 bottom/auto ${scrollbarWidth} no-repeat`;
|
|
8616
8751
|
return getCss({
|
|
8617
8752
|
'@global': {
|
|
8618
8753
|
':host': {
|
|
@@ -8643,13 +8778,25 @@ isSticky, hasScrollbar, isCompact) => {
|
|
|
8643
8778
|
gridTemplateColumns: `${safeZone} minmax(auto,1fr) ${safeZone}`,
|
|
8644
8779
|
margin: `calc(-1 * ${safeZone})`, // compensate padding to ensure that `:host` is aligned with other elements
|
|
8645
8780
|
padding: `${safeZone} 0px${hasScrollbar ? ` calc(${safeZone} + ${scrollbarWidth})` : ''}`, // ensure enough space is available for focus ring of slotted elements (horizontal space is given by `.sentinel`)
|
|
8781
|
+
scrollbarWidth: hasScrollbar ? 'thin' : 'none',
|
|
8782
|
+
// Override for touch devices to avoid issues with ios not rendering mask at all when using multiple mask layers
|
|
8783
|
+
...(hasScrollbar &&
|
|
8784
|
+
pointerCoarseMediaQuery({
|
|
8785
|
+
padding: `${safeZone} 0px`,
|
|
8786
|
+
})),
|
|
8646
8787
|
outline: 'none', // focus ring is applied to `.root`, it would be cut off by the mask if applied to `.scroll`
|
|
8647
8788
|
overflow: 'auto hidden',
|
|
8648
8789
|
...(fadeEdges !== 'none' && {
|
|
8649
|
-
WebkitMask: mask, // necessary for Sogou browser support :-)
|
|
8650
|
-
mask,
|
|
8790
|
+
WebkitMask: hasScrollbar ? `${mask},${scrollbarMask}` : mask, // necessary for Sogou browser support :-)
|
|
8791
|
+
mask: hasScrollbar ? `${mask},${scrollbarMask}` : mask,
|
|
8651
8792
|
}),
|
|
8652
|
-
|
|
8793
|
+
// Override for touch devices to avoid issues with ios not rendering mask at all when using multiple mask layers
|
|
8794
|
+
...(fadeEdges !== 'none' &&
|
|
8795
|
+
hasScrollbar &&
|
|
8796
|
+
pointerCoarseMediaQuery({
|
|
8797
|
+
WebkitMask: mask,
|
|
8798
|
+
mask: mask,
|
|
8799
|
+
})),
|
|
8653
8800
|
},
|
|
8654
8801
|
// as soon as `@container scroll-state(scrollable: left)` has better browser support we can get rid of sentinel and IntersectionObserver
|
|
8655
8802
|
sentinel: {
|
|
@@ -8667,7 +8814,7 @@ isSticky, hasScrollbar, isCompact) => {
|
|
|
8667
8814
|
});
|
|
8668
8815
|
};
|
|
8669
8816
|
|
|
8670
|
-
const cssVarInternalSegmentedControlScaling = '--
|
|
8817
|
+
const cssVarInternalSegmentedControlScaling = '--_p-segmented-control-a';
|
|
8671
8818
|
const getScalingVar = (compact) => `var(${cssVarInternalSegmentedControlScaling}, ${compact ? 0.5 : 1})`;
|
|
8672
8819
|
const ICON_OFFSET = '4px';
|
|
8673
8820
|
const ICON_SIZE = '1.5rem';
|
|
@@ -8679,7 +8826,7 @@ const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
|
|
|
8679
8826
|
const padding = hasIconAndSlottedContent
|
|
8680
8827
|
? `${verticalPadding} ${horizontalPadding} ${verticalPadding} ${verticalPadding}`
|
|
8681
8828
|
: `${verticalPadding} ${horizontalPadding}`;
|
|
8682
|
-
const dimension = `calc(max(${
|
|
8829
|
+
const dimension = `calc(max(${leadingNormal$1}, ${scalingVar} * (${leadingNormal$1} + 10px)) + (${verticalPadding} + 1px) * 2)`;
|
|
8683
8830
|
return { padding, dimension };
|
|
8684
8831
|
};
|
|
8685
8832
|
const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, hasSlottedContent) => {
|
|
@@ -8704,7 +8851,7 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
|
|
|
8704
8851
|
minHeight: dimension,
|
|
8705
8852
|
minWidth: dimension,
|
|
8706
8853
|
padding: padding,
|
|
8707
|
-
border:
|
|
8854
|
+
border: `1px solid ${isSelected ? formStateBorderHoverColor : formStateBorderColor}`,
|
|
8708
8855
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
8709
8856
|
background: formStateBackgroundColor,
|
|
8710
8857
|
color: colorPrimary,
|
|
@@ -8752,7 +8899,10 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
|
|
|
8752
8899
|
}),
|
|
8753
8900
|
});
|
|
8754
8901
|
};
|
|
8755
|
-
|
|
8902
|
+
|
|
8903
|
+
const MIN_ITEM_WIDTH = 46;
|
|
8904
|
+
const MAX_ITEM_WIDTH = 220;
|
|
8905
|
+
const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, state, noWrap) => {
|
|
8756
8906
|
return getCss({
|
|
8757
8907
|
'@global': {
|
|
8758
8908
|
':host': {
|
|
@@ -8765,18 +8915,20 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
|
|
|
8765
8915
|
'slot:not([name])': {
|
|
8766
8916
|
display: 'grid',
|
|
8767
8917
|
gridAutoRows: '1fr', // for equal height
|
|
8768
|
-
...
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
:
|
|
8772
|
-
|
|
8918
|
+
...(noWrap
|
|
8919
|
+
? { gridAutoFlow: 'column', gridAutoColumns: 'max-content' }
|
|
8920
|
+
: buildResponsiveStyles(columns, (col) => ({
|
|
8921
|
+
gridTemplateColumns: col === 'auto'
|
|
8922
|
+
? `repeat(auto-fit, ${(maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && minWidth) || maxWidth}px)`
|
|
8923
|
+
: `repeat(${col}, minmax(0, 1fr))`,
|
|
8924
|
+
}))),
|
|
8773
8925
|
gap: '6px',
|
|
8774
8926
|
},
|
|
8775
8927
|
},
|
|
8776
8928
|
root: {
|
|
8777
8929
|
all: 'unset',
|
|
8778
8930
|
display: 'grid',
|
|
8779
|
-
gap:
|
|
8931
|
+
gap: spacingStaticXs$1,
|
|
8780
8932
|
},
|
|
8781
8933
|
// .label / .required
|
|
8782
8934
|
...getFunctionalComponentLabelStyles(disabled, false, hideLabel, {
|
|
@@ -8784,10 +8936,15 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
|
|
|
8784
8936
|
}),
|
|
8785
8937
|
// .message
|
|
8786
8938
|
...getFunctionalComponentStateMessageStyles(state),
|
|
8939
|
+
...(noWrap && {
|
|
8940
|
+
scroller: {
|
|
8941
|
+
margin: `-${spacingStaticXs$1} 0`,
|
|
8942
|
+
},
|
|
8943
|
+
}),
|
|
8787
8944
|
});
|
|
8788
8945
|
};
|
|
8789
8946
|
|
|
8790
|
-
const cssVarInternalSelectOptionScaling = '--
|
|
8947
|
+
const cssVarInternalSelectOptionScaling = '--_p-select-option-a';
|
|
8791
8948
|
const getComponentCss$p = (isDisabled) => {
|
|
8792
8949
|
return getCss({
|
|
8793
8950
|
'@global': {
|
|
@@ -8812,7 +8969,7 @@ const getComponentCss$p = (isDisabled) => {
|
|
|
8812
8969
|
});
|
|
8813
8970
|
};
|
|
8814
8971
|
|
|
8815
|
-
const cssVarInternalSelectScaling = '--
|
|
8972
|
+
const cssVarInternalSelectScaling = '--_p-select-a';
|
|
8816
8973
|
const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
8817
8974
|
return getCss({
|
|
8818
8975
|
'@global': {
|
|
@@ -8840,9 +8997,9 @@ const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
8840
8997
|
},
|
|
8841
8998
|
root: {
|
|
8842
8999
|
display: 'grid',
|
|
8843
|
-
gap:
|
|
9000
|
+
gap: spacingStaticXs$1,
|
|
8844
9001
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
|
|
8845
|
-
minWidth: `calc(1rem + ${formElementPaddingHorizontal} +
|
|
9002
|
+
minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
|
|
8846
9003
|
},
|
|
8847
9004
|
filter: getFilterJssStyle(cssVarInternalSelectScaling),
|
|
8848
9005
|
options: getOptionsJssStyle(cssVarInternalSelectScaling),
|
|
@@ -8899,7 +9056,7 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
|
8899
9056
|
...getDialogTransitionJssStyle(isOpen, '^'),
|
|
8900
9057
|
width: '100%',
|
|
8901
9058
|
alignSelf: 'flex-end',
|
|
8902
|
-
marginBlockStart:
|
|
9059
|
+
marginBlockStart: spacingFluidLg, // ensures minimal space at the top to visualize paper sheet like border top radius in case sheet becomes scrollable
|
|
8903
9060
|
borderTopLeftRadius: dialogBorderRadius,
|
|
8904
9061
|
borderTopRightRadius: dialogBorderRadius,
|
|
8905
9062
|
...forcedColorsMediaQuery({
|
|
@@ -8925,7 +9082,7 @@ const cssVarColor = '--p-spinner-color';
|
|
|
8925
9082
|
*/
|
|
8926
9083
|
const cssVarTrackColor = '--p-spinner-track-color';
|
|
8927
9084
|
const getComponentCss$m = (color, size) => {
|
|
8928
|
-
const dimension = `var(${cssVarSize},${leadingNormal})`;
|
|
9085
|
+
const dimension = `var(${cssVarSize},${leadingNormal$1})`;
|
|
8929
9086
|
const strokeDasharray = '69'; // C = 2πR
|
|
8930
9087
|
const animationDuration = `var(${cssVariableAnimationDuration}, ${durationXl})`;
|
|
8931
9088
|
return getCss({
|
|
@@ -8962,7 +9119,7 @@ const getComponentCss$m = (color, size) => {
|
|
|
8962
9119
|
div: {
|
|
8963
9120
|
width: dimension,
|
|
8964
9121
|
height: dimension,
|
|
8965
|
-
fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
|
|
9122
|
+
fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
|
|
8966
9123
|
...buildResponsiveStyles(size, (s) => ({
|
|
8967
9124
|
fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
|
|
8968
9125
|
})),
|
|
@@ -9034,18 +9191,19 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
9034
9191
|
paddingBlock: '6px',
|
|
9035
9192
|
width: 'max-content',
|
|
9036
9193
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
9037
|
-
font:
|
|
9038
|
-
fontSize: 'inherit', // necessary because of all: unset
|
|
9194
|
+
font: `${fontWeightNormal$1} inherit / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9039
9195
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusFull})`,
|
|
9040
9196
|
...(isStateCurrent && {
|
|
9041
|
-
|
|
9197
|
+
WebkitBackdropFilter: blurFrosted,
|
|
9198
|
+
backdropFilter: blurFrosted,
|
|
9042
9199
|
background: colorFrosted,
|
|
9043
9200
|
}),
|
|
9044
9201
|
...(!isDisabled &&
|
|
9045
9202
|
hoverMediaQuery({
|
|
9046
9203
|
transition: getTransition('background-color'),
|
|
9047
9204
|
'&:hover': {
|
|
9048
|
-
|
|
9205
|
+
WebkitBackdropFilter: blurFrosted,
|
|
9206
|
+
backdropFilter: blurFrosted,
|
|
9049
9207
|
background: colorFrosted,
|
|
9050
9208
|
},
|
|
9051
9209
|
})),
|
|
@@ -9062,10 +9220,9 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
9062
9220
|
},
|
|
9063
9221
|
},
|
|
9064
9222
|
icon: {
|
|
9065
|
-
font:
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
height: fontLineHeight,
|
|
9223
|
+
font: `inherit ${fontPorscheNext$1}`, // necessary because of all: unset and to correctly calculate width/height based on ex-unit
|
|
9224
|
+
width: leadingNormal$1,
|
|
9225
|
+
height: leadingNormal$1,
|
|
9069
9226
|
forcedColorAdjust: 'none',
|
|
9070
9227
|
...(isStateCurrentOrUndefined && {
|
|
9071
9228
|
display: 'grid',
|
|
@@ -9105,13 +9262,13 @@ const getComponentCss$k = (size) => {
|
|
|
9105
9262
|
},
|
|
9106
9263
|
scroller: {
|
|
9107
9264
|
placeSelf: 'flex-start', // ensures scroller doesn't get stretched in x- or y-axis in case the stepper-horizontal is taller than the scroller (e.g. when placed in flex or grid context)
|
|
9108
|
-
|
|
9109
|
-
...buildResponsiveStyles(size, (s) => ({ fontSize:
|
|
9265
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9266
|
+
...buildResponsiveStyles(size, (s) => ({ fontSize: sizeMap$1[s] })),
|
|
9110
9267
|
},
|
|
9111
9268
|
});
|
|
9112
9269
|
};
|
|
9113
9270
|
|
|
9114
|
-
const cssVarInternalSwitchScaling = '--
|
|
9271
|
+
const cssVarInternalSwitchScaling = '--_p-switch-a';
|
|
9115
9272
|
const getColors$1 = (checked, loading) => {
|
|
9116
9273
|
return {
|
|
9117
9274
|
buttonBorderColor: checked ? colorSuccessLow : colorContrastLow,
|
|
@@ -9125,12 +9282,12 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9125
9282
|
const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, toggleBackgroundColor, textColor } = getColors$1(isChecked, isLoading);
|
|
9126
9283
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
9127
9284
|
const gap = `calc(11.2px * (var(${cssVarInternalSwitchScaling}) - 0.64285714) + 4px)`;
|
|
9128
|
-
const buttonBorderWidth =
|
|
9285
|
+
const buttonBorderWidth = '1px';
|
|
9129
9286
|
const buttonWidth = `calc(var(${cssVarInternalSwitchScaling}) * 3rem)`;
|
|
9130
9287
|
const buttonHeight = `calc(var(${cssVarInternalSwitchScaling}) * 1.75rem)`;
|
|
9131
|
-
const buttonMarginBlock = `max(0px, calc((${
|
|
9288
|
+
const buttonMarginBlock = `max(0px, calc((${leadingNormal$1} - ${buttonHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
|
|
9132
9289
|
const buttonTouchInset = `calc(-${buttonBorderWidth} - max(0px, calc(24px - ${buttonHeight}) / 2))`; // Positions the switch ::before pseudo-element with a negative offset to align it with the touch target.
|
|
9133
|
-
const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${
|
|
9290
|
+
const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${leadingNormal$1}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
|
|
9134
9291
|
const toggleDimension = `calc(var(${cssVarInternalSwitchScaling}) * 1.25rem)`;
|
|
9135
9292
|
const toggleTranslateX = `calc(var(${cssVarInternalSwitchScaling}) * .1875rem)`;
|
|
9136
9293
|
return getCss({
|
|
@@ -9143,7 +9300,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9143
9300
|
...addImportantToEachRule({
|
|
9144
9301
|
...(isDisabled && getDisabledBaseStyles()),
|
|
9145
9302
|
outline: 0, // custom element is able to delegate the focus
|
|
9146
|
-
font: `${
|
|
9303
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct gap definition based on ex-unit
|
|
9147
9304
|
gap,
|
|
9148
9305
|
...hostHiddenStyles,
|
|
9149
9306
|
...buildResponsiveStyles(isStretched, (stretchValue) => ({
|
|
@@ -9164,7 +9321,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9164
9321
|
width: buttonWidth,
|
|
9165
9322
|
height: buttonHeight,
|
|
9166
9323
|
marginBlock: buttonMarginBlock,
|
|
9167
|
-
font: `${
|
|
9324
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
|
|
9168
9325
|
border: `${buttonBorderWidth} solid ${buttonBorderColor}`,
|
|
9169
9326
|
borderRadius: radiusFull,
|
|
9170
9327
|
background: buttonBackgroundColor,
|
|
@@ -9190,7 +9347,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9190
9347
|
},
|
|
9191
9348
|
},
|
|
9192
9349
|
label: {
|
|
9193
|
-
|
|
9350
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9194
9351
|
minWidth: 0, // prevents flex child to overflow max available parent size
|
|
9195
9352
|
minHeight: 0, // prevents flex child to overflow max available parent size
|
|
9196
9353
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
@@ -9252,10 +9409,10 @@ const cssVarScrollIndicatorTop = '--p-table-scroll-indicator-top';
|
|
|
9252
9409
|
* @css-variable {"name": "--p-table-scroll-indicator-bottom", "description": "Defines the distance from the bottom of the viewport at which the scroll indicator sticks when scrolling up and `sticky` is enabled.", "defaultValue": "0px"}
|
|
9253
9410
|
*/
|
|
9254
9411
|
const cssVarScrollIndicatorBottom = '--p-table-scroll-indicator-bottom';
|
|
9255
|
-
const cssVariableTablePadding = '--
|
|
9256
|
-
const cssVariableTableHoverColor = '--
|
|
9257
|
-
const cssVariableTableBorderColor = '--
|
|
9258
|
-
const cssVariableTableBorderWidth = '--
|
|
9412
|
+
const cssVariableTablePadding = '--_p-table-a';
|
|
9413
|
+
const cssVariableTableHoverColor = '--_p-table-b';
|
|
9414
|
+
const cssVariableTableBorderColor = '--_p-table-c';
|
|
9415
|
+
const cssVariableTableBorderWidth = '--_p-table-d';
|
|
9259
9416
|
const getComponentCss$h = (isCompact, layout) => {
|
|
9260
9417
|
return getCss({
|
|
9261
9418
|
'@global': {
|
|
@@ -9266,11 +9423,10 @@ const getComponentCss$h = (isCompact, layout) => {
|
|
|
9266
9423
|
'--p-scroller-indicator-bottom': `var(${cssVarScrollIndicatorBottom},0px)`,
|
|
9267
9424
|
[cssVariableTableHoverColor]: colorFrosted,
|
|
9268
9425
|
[cssVariableTableBorderColor]: colorContrastLow,
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
}),
|
|
9426
|
+
[cssVariableTablePadding]: isCompact ? spacingStaticSm$1 : spacingFluidSm,
|
|
9427
|
+
[cssVariableTableBorderWidth]: '1px',
|
|
9272
9428
|
...hostHiddenStyles,
|
|
9273
|
-
|
|
9429
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9274
9430
|
color: colorPrimary,
|
|
9275
9431
|
textAlign: 'start',
|
|
9276
9432
|
}),
|
|
@@ -9278,7 +9434,7 @@ const getComponentCss$h = (isCompact, layout) => {
|
|
|
9278
9434
|
...preventFoucOfNestedElementsStyles,
|
|
9279
9435
|
},
|
|
9280
9436
|
caption: {
|
|
9281
|
-
marginBottom:
|
|
9437
|
+
marginBottom: spacingFluidMd$1,
|
|
9282
9438
|
},
|
|
9283
9439
|
table: {
|
|
9284
9440
|
display: 'table',
|
|
@@ -9303,7 +9459,7 @@ const getComponentCss$g = (multiline) => {
|
|
|
9303
9459
|
display: 'table-cell',
|
|
9304
9460
|
verticalAlign: 'middle',
|
|
9305
9461
|
...addImportantToEachRule({
|
|
9306
|
-
padding: `var(${cssVariableTablePadding}
|
|
9462
|
+
padding: `var(${cssVariableTablePadding})`,
|
|
9307
9463
|
margin: 0,
|
|
9308
9464
|
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
9309
9465
|
...hostHiddenStyles,
|
|
@@ -9327,7 +9483,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9327
9483
|
':host': {
|
|
9328
9484
|
display: 'table-cell',
|
|
9329
9485
|
...addImportantToEachRule({
|
|
9330
|
-
padding: `2px var(${cssVariableTablePadding}, ${
|
|
9486
|
+
padding: `2px var(${cssVariableTablePadding}, ${spacingFluidSm}) var(${cssVariableTablePadding}, ${spacingFluidSm})`,
|
|
9331
9487
|
verticalAlign: 'bottom',
|
|
9332
9488
|
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
9333
9489
|
...hostHiddenStyles,
|
|
@@ -9339,7 +9495,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9339
9495
|
button: {
|
|
9340
9496
|
position: 'relative',
|
|
9341
9497
|
display: 'flex',
|
|
9342
|
-
gap:
|
|
9498
|
+
gap: spacingStaticXs$1,
|
|
9343
9499
|
width: 'auto',
|
|
9344
9500
|
margin: 0, // Removes default button margin on safari 15
|
|
9345
9501
|
padding: 0,
|
|
@@ -9353,6 +9509,9 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9353
9509
|
border: 0,
|
|
9354
9510
|
zIndex: 0,
|
|
9355
9511
|
cursor: 'pointer',
|
|
9512
|
+
'&:focus, &:focus-visible': {
|
|
9513
|
+
outline: 'none',
|
|
9514
|
+
},
|
|
9356
9515
|
// TODO: re-think if ::before is still needed
|
|
9357
9516
|
'&::before': {
|
|
9358
9517
|
content: '""',
|
|
@@ -9369,7 +9528,8 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9369
9528
|
},
|
|
9370
9529
|
},
|
|
9371
9530
|
'&:hover::before': {
|
|
9372
|
-
|
|
9531
|
+
WebkitBackdropFilter: blurFrosted,
|
|
9532
|
+
backdropFilter: blurFrosted,
|
|
9373
9533
|
backgroundColor: colorFrosted,
|
|
9374
9534
|
},
|
|
9375
9535
|
}),
|
|
@@ -9412,9 +9572,7 @@ const getComponentCss$d = () => {
|
|
|
9412
9572
|
':host': {
|
|
9413
9573
|
display: 'table-header-group',
|
|
9414
9574
|
...addImportantToEachRule({
|
|
9415
|
-
|
|
9416
|
-
lineHeight: fontLineHeight,
|
|
9417
|
-
fontWeight: fontWeightSemiBold,
|
|
9575
|
+
font: `${fontWeightSemibold} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9418
9576
|
borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
|
|
9419
9577
|
...hostHiddenStyles,
|
|
9420
9578
|
}),
|
|
@@ -9433,7 +9591,7 @@ const getComponentCss$c = () => {
|
|
|
9433
9591
|
':host': {
|
|
9434
9592
|
display: 'table-row',
|
|
9435
9593
|
...addImportantToEachRule({
|
|
9436
|
-
borderBottom: `var(${cssVariableTableBorderWidth}
|
|
9594
|
+
borderBottom: `var(${cssVariableTableBorderWidth}) solid var(${cssVariableTableBorderColor})`,
|
|
9437
9595
|
transition: getTransition('background'),
|
|
9438
9596
|
...hostHiddenStyles,
|
|
9439
9597
|
...hoverMediaQuery({
|
|
@@ -9448,16 +9606,25 @@ const getComponentCss$c = () => {
|
|
|
9448
9606
|
});
|
|
9449
9607
|
};
|
|
9450
9608
|
|
|
9609
|
+
const animatingAttribute = 'data-animating';
|
|
9610
|
+
|
|
9451
9611
|
const backgroundMap = {
|
|
9452
9612
|
canvas: colorCanvas,
|
|
9453
9613
|
surface: colorSurface,
|
|
9454
9614
|
frosted: colorFrosted,
|
|
9455
9615
|
};
|
|
9456
9616
|
const fontSizeText = {
|
|
9457
|
-
small: typescaleSm,
|
|
9617
|
+
small: typescaleSm$1,
|
|
9458
9618
|
medium: typescaleMd,
|
|
9459
9619
|
};
|
|
9460
|
-
const getComponentCss$b = (background, size, isCompact) => {
|
|
9620
|
+
const getComponentCss$b = (background, size, isCompact, activeTabIndex) => {
|
|
9621
|
+
const hasActive = activeTabIndex !== undefined;
|
|
9622
|
+
// :nth-child is 1-based
|
|
9623
|
+
const nth = hasActive ? activeTabIndex + 1 : 0;
|
|
9624
|
+
const activeSelector = `&(a:nth-child(${nth})),&(button:nth-child(${nth}))`;
|
|
9625
|
+
const notActiveHoverSelector = hasActive
|
|
9626
|
+
? `&(a:not(:nth-child(${nth})):hover),&(button:not(:nth-child(${nth})):hover)`
|
|
9627
|
+
: '&(a:hover),&(button:hover)';
|
|
9461
9628
|
return getCss({
|
|
9462
9629
|
'@global': {
|
|
9463
9630
|
':host': {
|
|
@@ -9479,24 +9646,33 @@ const getComponentCss$b = (background, size, isCompact) => {
|
|
|
9479
9646
|
...(background === 'none' && {
|
|
9480
9647
|
background: colorFrosted,
|
|
9481
9648
|
}),
|
|
9482
|
-
font: `${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`,
|
|
9649
|
+
font: `${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9483
9650
|
...buildResponsiveStyles(size, (sizeValue) => ({
|
|
9484
9651
|
fontSize: fontSizeText[sizeValue],
|
|
9485
9652
|
})),
|
|
9486
9653
|
color: colorPrimary,
|
|
9487
|
-
transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
|
|
9488
9654
|
},
|
|
9489
9655
|
'&(a:focus-visible),&(button:focus-visible)': getFocusBaseStyles(),
|
|
9490
9656
|
...hoverMediaQuery({
|
|
9491
|
-
|
|
9657
|
+
[notActiveHoverSelector]: {
|
|
9658
|
+
// Only applied on hover since applying it globally causes the active tab to visually flash when navigating in SPAs (where the tabs-bar persist across routes but the children tabs change).
|
|
9659
|
+
transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
|
|
9492
9660
|
background: colorFrostedStrong,
|
|
9493
9661
|
},
|
|
9494
9662
|
}),
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9663
|
+
...(hasActive && {
|
|
9664
|
+
[activeSelector]: {
|
|
9665
|
+
color: colorCanvas,
|
|
9666
|
+
},
|
|
9667
|
+
// Transition color and background when animation is playing
|
|
9668
|
+
[`&(a:nth-child(${nth})[${animatingAttribute}]),&(button:nth-child(${nth})[${animatingAttribute}])`]: {
|
|
9669
|
+
transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd$1}`,
|
|
9670
|
+
},
|
|
9671
|
+
// Apply background only when no active animation is playing
|
|
9672
|
+
[`&(a:nth-child(${nth}):not([${animatingAttribute}])),&(button:nth-child(${nth}):not([${animatingAttribute}]))`]: {
|
|
9673
|
+
background: colorPrimary,
|
|
9674
|
+
},
|
|
9675
|
+
}),
|
|
9500
9676
|
...forcedColorsMediaQuery({
|
|
9501
9677
|
'&(a),&(button)': {
|
|
9502
9678
|
forcedColorAdjust: 'none',
|
|
@@ -9510,9 +9686,11 @@ const getComponentCss$b = (background, size, isCompact) => {
|
|
|
9510
9686
|
color: 'ButtonText',
|
|
9511
9687
|
boxShadow: 'inset 0 0 0 2px ButtonBorder',
|
|
9512
9688
|
},
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9689
|
+
...(hasActive && {
|
|
9690
|
+
[activeSelector]: {
|
|
9691
|
+
transition: 'unset',
|
|
9692
|
+
},
|
|
9693
|
+
}),
|
|
9516
9694
|
}),
|
|
9517
9695
|
},
|
|
9518
9696
|
}),
|
|
@@ -9579,7 +9757,7 @@ const getComponentCss$9 = () => {
|
|
|
9579
9757
|
});
|
|
9580
9758
|
};
|
|
9581
9759
|
|
|
9582
|
-
const cssVarInternalTagDismissibleScaling = '--
|
|
9760
|
+
const cssVarInternalTagDismissibleScaling = '--_p-tag-dismissible-a';
|
|
9583
9761
|
const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
9584
9762
|
const buttonPaddingBlock = hasLabel
|
|
9585
9763
|
? `calc(16.8px * (var(${cssVarInternalTagDismissibleScaling}) - 0.64285714))`
|
|
@@ -9611,7 +9789,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9611
9789
|
background: colorFrosted,
|
|
9612
9790
|
color: colorPrimary,
|
|
9613
9791
|
textAlign: 'start',
|
|
9614
|
-
|
|
9792
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9615
9793
|
...hoverMediaQuery({
|
|
9616
9794
|
'&:hover > .icon': {
|
|
9617
9795
|
backgroundColor: colorFrosted,
|
|
@@ -9629,7 +9807,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9629
9807
|
display: 'block',
|
|
9630
9808
|
marginBottom: '-4px',
|
|
9631
9809
|
color: colorContrastHigh,
|
|
9632
|
-
fontSize:
|
|
9810
|
+
fontSize: typescaleXs$1,
|
|
9633
9811
|
},
|
|
9634
9812
|
}),
|
|
9635
9813
|
icon: {
|
|
@@ -9646,25 +9824,37 @@ const colorTextMap = {
|
|
|
9646
9824
|
primary: colorCanvas,
|
|
9647
9825
|
secondary: colorPrimary,
|
|
9648
9826
|
info: colorCanvas,
|
|
9827
|
+
'info-frosted': colorPrimary,
|
|
9649
9828
|
success: colorCanvas,
|
|
9829
|
+
'success-frosted': colorPrimary,
|
|
9650
9830
|
warning: colorCanvas,
|
|
9831
|
+
'warning-frosted': colorPrimary,
|
|
9651
9832
|
error: colorCanvas,
|
|
9833
|
+
'error-frosted': colorPrimary,
|
|
9652
9834
|
};
|
|
9653
9835
|
const colorBackgroundMap = {
|
|
9654
9836
|
primary: colorPrimary,
|
|
9655
9837
|
secondary: colorFrostedStrong,
|
|
9656
9838
|
info: colorInfo,
|
|
9839
|
+
'info-frosted': colorInfoFrosted,
|
|
9657
9840
|
success: colorSuccess,
|
|
9841
|
+
'success-frosted': colorSuccessFrosted,
|
|
9658
9842
|
warning: colorWarning,
|
|
9843
|
+
'warning-frosted': colorWarningFrosted,
|
|
9659
9844
|
error: colorError,
|
|
9845
|
+
'error-frosted': colorErrorFrosted,
|
|
9660
9846
|
};
|
|
9661
9847
|
const colorBackgroundHoverMap = {
|
|
9662
9848
|
primary: colorContrastHigh,
|
|
9663
9849
|
secondary: colorFrosted,
|
|
9664
9850
|
info: colorInfoMedium,
|
|
9851
|
+
'info-frosted': colorInfoFrostedSoft,
|
|
9665
9852
|
success: colorSuccessMedium,
|
|
9853
|
+
'success-frosted': colorSuccessFrostedSoft,
|
|
9666
9854
|
warning: colorWarningMedium,
|
|
9855
|
+
'warning-frosted': colorWarningFrostedSoft,
|
|
9667
9856
|
error: colorErrorMedium,
|
|
9857
|
+
'error-frosted': colorErrorFrostedSoft,
|
|
9668
9858
|
};
|
|
9669
9859
|
const getColors = (variant) => {
|
|
9670
9860
|
return {
|
|
@@ -9690,10 +9880,16 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
|
|
|
9690
9880
|
position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
|
|
9691
9881
|
display: 'flex',
|
|
9692
9882
|
gap: '2px',
|
|
9693
|
-
padding: compact
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9883
|
+
padding: compact
|
|
9884
|
+
? `${spacingStatic2Xs} ${spacingStaticSm$1}`
|
|
9885
|
+
: `${spacingStaticXs} calc(12 * ${spacingStatic2Xs})`,
|
|
9886
|
+
borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXs} + (${leadingNormal$1} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
|
|
9887
|
+
font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9888
|
+
...((variant === 'secondary' ||
|
|
9889
|
+
variant === 'info-frosted' ||
|
|
9890
|
+
variant === 'success-frosted' ||
|
|
9891
|
+
variant === 'warning-frosted' ||
|
|
9892
|
+
variant === 'error-frosted') && {
|
|
9697
9893
|
WebkitBackdropFilter: blurFrosted,
|
|
9698
9894
|
backdropFilter: blurFrosted,
|
|
9699
9895
|
}),
|
|
@@ -9748,13 +9944,13 @@ const isListTypeNumbered = (type) => {
|
|
|
9748
9944
|
return type === 'numbered';
|
|
9749
9945
|
};
|
|
9750
9946
|
|
|
9751
|
-
const
|
|
9752
|
-
const
|
|
9753
|
-
const
|
|
9754
|
-
const
|
|
9755
|
-
const
|
|
9756
|
-
const
|
|
9757
|
-
const
|
|
9947
|
+
const cssVariableOrderedGridColumn = '--_p-text-list-a';
|
|
9948
|
+
const cssVariableOrderedPseudoSuffix = '--_p-text-list-b';
|
|
9949
|
+
const cssVariablePaddingBottom = '--_p-text-list-c';
|
|
9950
|
+
const cssVariablePaddingTop = '--_p-text-list-d';
|
|
9951
|
+
const cssVariablePseudoSpace = '--_p-text-list-e';
|
|
9952
|
+
const cssVariableUnorderedGridColumn = '--_p-text-list-f';
|
|
9953
|
+
const cssVariableUnorderedPseudoContent = '--_p-text-list-g';
|
|
9758
9954
|
const counter = 'p-text-list-counter';
|
|
9759
9955
|
const getComponentCss$6 = (type) => {
|
|
9760
9956
|
const isOrderedList = isListTypeOrdered(type);
|
|
@@ -9768,7 +9964,7 @@ const getComponentCss$6 = (type) => {
|
|
|
9768
9964
|
}),
|
|
9769
9965
|
},
|
|
9770
9966
|
'ol,ul': {
|
|
9771
|
-
|
|
9967
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9772
9968
|
margin: 0,
|
|
9773
9969
|
padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) 0`,
|
|
9774
9970
|
listStyleType: 'none',
|
|
@@ -9776,8 +9972,8 @@ const getComponentCss$6 = (type) => {
|
|
|
9776
9972
|
},
|
|
9777
9973
|
// css selector for text-list-item
|
|
9778
9974
|
'::slotted(*)': addImportantToEachRule({
|
|
9779
|
-
[cssVariablePaddingTop]:
|
|
9780
|
-
[cssVariablePaddingBottom]:
|
|
9975
|
+
[cssVariablePaddingTop]: spacingStaticXs$1, // padding top for nested list
|
|
9976
|
+
[cssVariablePaddingBottom]: spacingStaticMd, // padding bottom for nested list, TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
|
|
9781
9977
|
[cssVariablePseudoSpace]: isOrderedList
|
|
9782
9978
|
? `var(${cssVariableOrderedGridColumn},1.5rem)`
|
|
9783
9979
|
: `var(${cssVariableUnorderedGridColumn},.375rem)`,
|
|
@@ -9803,7 +9999,7 @@ const getComponentCss$5 = () => {
|
|
|
9803
9999
|
display: 'grid',
|
|
9804
10000
|
...addImportantToEachRule({
|
|
9805
10001
|
gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
|
|
9806
|
-
columnGap:
|
|
10002
|
+
columnGap: spacingStaticMd,
|
|
9807
10003
|
font: 'inherit', // ensures style can't be overwritten from outside
|
|
9808
10004
|
color: 'inherit', // ensures style can't be overwritten from outside
|
|
9809
10005
|
...hostHiddenStyles,
|
|
@@ -9845,7 +10041,7 @@ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
|
|
|
9845
10041
|
root: {
|
|
9846
10042
|
all: 'unset',
|
|
9847
10043
|
display: 'block',
|
|
9848
|
-
font: `${weightMap[weight]} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
|
|
10044
|
+
font: `${weightMap[weight]} ${typescaleSm$1}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9849
10045
|
...buildResponsiveStyles(size, (v) => ({
|
|
9850
10046
|
fontSize: sizeMap$1[v],
|
|
9851
10047
|
})),
|
|
@@ -9865,7 +10061,7 @@ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
|
|
|
9865
10061
|
});
|
|
9866
10062
|
};
|
|
9867
10063
|
|
|
9868
|
-
const cssVarInternalTextareaScaling = '--
|
|
10064
|
+
const cssVarInternalTextareaScaling = '--_p-textarea-a';
|
|
9869
10065
|
/**
|
|
9870
10066
|
* @css-variable {"name":"--p-textarea-field-sizing","description":"Controls CSS `field-sizing` for textarea.","defaultValue":"unset"}
|
|
9871
10067
|
* @css-variable {"name":"--p-textarea-min-width","description":"Minimum width of the textarea.","defaultValue":"52px"}
|
|
@@ -9877,7 +10073,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9877
10073
|
const textareaMinHeight = `calc(var(${cssVarInternalTextareaScaling}) * 3.5rem)`;
|
|
9878
10074
|
const textareaPaddingBlock = `calc(28px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 5px)`;
|
|
9879
10075
|
const textareaPaddingInline = `calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 8px)`;
|
|
9880
|
-
const textareaPaddingBottom = `calc(${
|
|
10076
|
+
const textareaPaddingBottom = `calc(${leadingNormal$1} + calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px))`;
|
|
9881
10077
|
const counterMarginBottom = `calc(11.2px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px)`;
|
|
9882
10078
|
const { formStateBorderColor, formStateBackgroundColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
9883
10079
|
return getCss({
|
|
@@ -9901,14 +10097,14 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9901
10097
|
maxWidth: 'var(--p-textarea-max-width, unset)',
|
|
9902
10098
|
minHeight: `var(--p-textarea-min-height, ${textareaMinHeight})`,
|
|
9903
10099
|
maxHeight: 'var(--p-textarea-max-height, unset)',
|
|
9904
|
-
border:
|
|
10100
|
+
border: `1px solid ${formStateBorderColor}`,
|
|
9905
10101
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
9906
10102
|
background: formStateBackgroundColor,
|
|
9907
10103
|
color: colorPrimary,
|
|
9908
10104
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character.
|
|
9909
10105
|
boxSizing: 'border-box',
|
|
9910
10106
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
9911
|
-
font:
|
|
10107
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9912
10108
|
padding: hasCounter
|
|
9913
10109
|
? `${textareaPaddingBlock} ${textareaPaddingInline} ${textareaPaddingBottom}`
|
|
9914
10110
|
: `${textareaPaddingBlock} ${textareaPaddingInline}`,
|
|
@@ -9932,7 +10128,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9932
10128
|
},
|
|
9933
10129
|
root: {
|
|
9934
10130
|
display: 'grid',
|
|
9935
|
-
gap:
|
|
10131
|
+
gap: spacingStaticXs$1,
|
|
9936
10132
|
},
|
|
9937
10133
|
wrapper: {
|
|
9938
10134
|
display: 'grid',
|
|
@@ -9959,11 +10155,11 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9959
10155
|
* @css-variable {"name": "--p-toast-position-bottom", "description": "Defines the spacing between the toast and the bottom edge of its container.", "defaultValue": "56px"}
|
|
9960
10156
|
*/
|
|
9961
10157
|
const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
|
|
9962
|
-
const cssVariablePositionBottomInternal = '--_p-a';
|
|
10158
|
+
const cssVariablePositionBottomInternal = '--_p-toast-a';
|
|
9963
10159
|
const ANIMATION_DURATION = motionDurationModerate;
|
|
9964
10160
|
const duration = ANIMATION_DURATION;
|
|
9965
10161
|
const getKeyframes = (direction, outsideStyle) => {
|
|
9966
|
-
const insideStyle = {
|
|
10162
|
+
const insideStyle = { transform: 'translate3d(0,0,0)' };
|
|
9967
10163
|
return direction === 'in'
|
|
9968
10164
|
? {
|
|
9969
10165
|
from: outsideStyle,
|
|
@@ -9975,7 +10171,6 @@ const getKeyframes = (direction, outsideStyle) => {
|
|
|
9975
10171
|
};
|
|
9976
10172
|
};
|
|
9977
10173
|
const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
|
|
9978
|
-
opacity: 0,
|
|
9979
10174
|
transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
|
|
9980
10175
|
});
|
|
9981
10176
|
const toastCloseClassName = 'close';
|
|
@@ -10085,6 +10280,7 @@ exports.getFunctionalComponentLabelAfterStyles = getFunctionalComponentLabelAfte
|
|
|
10085
10280
|
exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
|
|
10086
10281
|
exports.getFunctionalComponentLoadingMessageStyles = getFunctionalComponentLoadingMessageStyles;
|
|
10087
10282
|
exports.getFunctionalComponentNoResultsOptionStyles = getFunctionalComponentNoResultsOptionStyles;
|
|
10283
|
+
exports.getFunctionalComponentNotificationBaseStyles = getFunctionalComponentNotificationBaseStyles;
|
|
10088
10284
|
exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
|
|
10089
10285
|
exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
|
|
10090
10286
|
exports.getHeadingCss = getComponentCss$U;
|