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