@porsche-design-system/components-react 3.29.0 → 3.30.0-rc.1
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 +60 -0
- package/OSS_NOTICE +1635 -2257
- package/cjs/lib/components/checkbox.wrapper.cjs +2 -1
- package/cjs/lib/components/flyout.wrapper.cjs +3 -3
- package/cjs/lib/components/multi-select.wrapper.cjs +3 -1
- package/cjs/lib/components/pin-code.wrapper.cjs +5 -3
- package/cjs/lib/components/radio-button-wrapper.wrapper.cjs +1 -0
- package/cjs/lib/components/radio-group-option.wrapper.cjs +26 -0
- package/cjs/lib/components/radio-group.wrapper.cjs +28 -0
- package/cjs/lib/components/segmented-control.wrapper.cjs +3 -1
- package/cjs/lib/components/select.wrapper.cjs +3 -1
- package/cjs/public-api.cjs +4 -0
- package/esm/BaseProps.d.ts +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +1 -1
- package/esm/lib/components/banner.wrapper.d.ts +1 -1
- package/esm/lib/components/button-group.wrapper.d.ts +1 -1
- package/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/button-tile.wrapper.d.ts +1 -1
- package/esm/lib/components/button.wrapper.d.ts +1 -1
- package/esm/lib/components/canvas.wrapper.d.ts +1 -1
- package/esm/lib/components/carousel.wrapper.d.ts +1 -1
- package/esm/lib/components/checkbox-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/checkbox.wrapper.d.ts +16 -6
- package/esm/lib/components/checkbox.wrapper.mjs +2 -1
- package/esm/lib/components/content-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/crest.wrapper.d.ts +1 -1
- package/esm/lib/components/display.wrapper.d.ts +1 -1
- package/esm/lib/components/divider.wrapper.d.ts +1 -1
- package/esm/lib/components/drilldown-item.wrapper.d.ts +1 -1
- package/esm/lib/components/drilldown-link.wrapper.d.ts +1 -1
- package/esm/lib/components/drilldown.wrapper.d.ts +1 -1
- package/esm/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/fieldset.wrapper.d.ts +1 -1
- package/esm/lib/components/flag.wrapper.d.ts +1 -1
- package/esm/lib/components/flex-item.wrapper.d.ts +1 -1
- package/esm/lib/components/flex.wrapper.d.ts +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +10 -2
- package/esm/lib/components/flyout.wrapper.mjs +3 -3
- package/esm/lib/components/grid-item.wrapper.d.ts +1 -1
- package/esm/lib/components/grid.wrapper.d.ts +1 -1
- package/esm/lib/components/heading.wrapper.d.ts +1 -1
- package/esm/lib/components/headline.wrapper.d.ts +1 -1
- package/esm/lib/components/icon.wrapper.d.ts +1 -1
- package/esm/lib/components/index.d.ts +2 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +1 -1
- package/esm/lib/components/input-date.wrapper.d.ts +1 -1
- package/esm/lib/components/input-email.wrapper.d.ts +1 -1
- package/esm/lib/components/input-number.wrapper.d.ts +1 -1
- package/esm/lib/components/input-password.wrapper.d.ts +1 -1
- package/esm/lib/components/input-search.wrapper.d.ts +1 -1
- package/esm/lib/components/input-tel.wrapper.d.ts +1 -1
- package/esm/lib/components/input-text.wrapper.d.ts +1 -1
- package/esm/lib/components/input-time.wrapper.d.ts +1 -1
- package/esm/lib/components/input-url.wrapper.d.ts +1 -1
- package/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/link-social.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile-model-signature.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile-product.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile.wrapper.d.ts +1 -1
- package/esm/lib/components/link.wrapper.d.ts +1 -1
- package/esm/lib/components/marque.wrapper.d.ts +1 -1
- package/esm/lib/components/modal.wrapper.d.ts +1 -1
- package/esm/lib/components/model-signature.wrapper.d.ts +1 -1
- package/esm/lib/components/multi-select-option.wrapper.d.ts +1 -1
- package/esm/lib/components/multi-select.wrapper.d.ts +18 -2
- package/esm/lib/components/multi-select.wrapper.mjs +3 -1
- package/esm/lib/components/optgroup.wrapper.d.ts +1 -1
- package/esm/lib/components/pagination.wrapper.d.ts +1 -1
- package/esm/lib/components/pin-code.wrapper.d.ts +28 -4
- package/esm/lib/components/pin-code.wrapper.mjs +5 -3
- package/esm/lib/components/popover.wrapper.d.ts +1 -1
- package/esm/lib/components/radio-button-wrapper.wrapper.d.ts +2 -1
- package/esm/lib/components/radio-button-wrapper.wrapper.mjs +1 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +37 -0
- package/esm/lib/components/radio-group-option.wrapper.mjs +24 -0
- package/esm/lib/components/radio-group.wrapper.d.ts +136 -0
- package/esm/lib/components/radio-group.wrapper.mjs +26 -0
- package/esm/lib/components/scroller.wrapper.d.ts +1 -1
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +1 -1
- package/esm/lib/components/segmented-control.wrapper.d.ts +20 -4
- package/esm/lib/components/segmented-control.wrapper.mjs +3 -1
- package/esm/lib/components/select-option.wrapper.d.ts +1 -1
- package/esm/lib/components/select-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/select.wrapper.d.ts +18 -2
- package/esm/lib/components/select.wrapper.mjs +3 -1
- package/esm/lib/components/sheet.wrapper.d.ts +1 -1
- package/esm/lib/components/spinner.wrapper.d.ts +1 -1
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -1
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
- package/esm/lib/components/switch.wrapper.d.ts +1 -1
- package/esm/lib/components/table-body.wrapper.d.ts +1 -1
- package/esm/lib/components/table-cell.wrapper.d.ts +1 -1
- package/esm/lib/components/table-head-cell.wrapper.d.ts +1 -1
- package/esm/lib/components/table-head-row.wrapper.d.ts +1 -1
- package/esm/lib/components/table-head.wrapper.d.ts +1 -1
- package/esm/lib/components/table-row.wrapper.d.ts +1 -1
- package/esm/lib/components/table.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs-bar.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs-item.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs.wrapper.d.ts +1 -1
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +1 -1
- package/esm/lib/components/tag.wrapper.d.ts +1 -1
- package/esm/lib/components/text-field-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/text-list-item.wrapper.d.ts +1 -1
- package/esm/lib/components/text-list.wrapper.d.ts +1 -1
- package/esm/lib/components/text.wrapper.d.ts +1 -1
- package/esm/lib/components/textarea-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/textarea.wrapper.d.ts +1 -1
- package/esm/lib/components/toast.wrapper.d.ts +1 -1
- package/esm/lib/components/wordmark.wrapper.d.ts +1 -1
- package/esm/lib/types.d.ts +46 -5
- package/esm/public-api.mjs +2 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +477 -181
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox.wrapper.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.cjs +6 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.cjs +36 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group.wrapper.cjs +39 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +4 -0
- 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/label.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +32 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +44 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +4 -0
- package/ssr/esm/BaseProps.d.ts +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +421 -127
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox.wrapper.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.mjs +3 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.mjs +6 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.mjs +34 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group.wrapper.mjs +37 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.mjs +3 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.mjs +3 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +5 -3
- 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 +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +30 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +42 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +2 -0
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/banner.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button-group.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/button.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/checkbox-wrapper.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +16 -6
- package/ssr/esm/lib/components/content-wrapper.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/crest.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/display.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/divider.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/flag.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/flex-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/flex.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +10 -2
- package/ssr/esm/lib/components/grid-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/grid.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/heading.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/headline.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/icon.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/index.d.ts +2 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-social.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-tile-model-signature.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/link.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/marque.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/modal.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +18 -2
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +28 -4
- package/ssr/esm/lib/components/popover.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/radio-button-wrapper.wrapper.d.ts +2 -1
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +37 -0
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +136 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +20 -4
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/select-wrapper-dropdown.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/select-wrapper.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/select.wrapper.d.ts +18 -2
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/switch.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-body.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-head-row.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-head.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table-row.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/table.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/tag.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text-field-wrapper.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text-list-item.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/text.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/textarea-wrapper.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/toast.wrapper.d.ts +1 -1
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/radio-button-wrapper.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +19 -0
- package/ssr/esm/lib/types.d.ts +46 -5
- package/tailwindcss/index.css +6 -6
|
@@ -3882,7 +3882,7 @@ hasWindow &&
|
|
|
3882
3882
|
const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
|
|
3883
3883
|
|
|
3884
3884
|
// index.ts
|
|
3885
|
-
var MODEL_SIGNATURES_MANIFEST = { "718": { "src": "718.493a9e3.svg", "width": 79, "height": 26 }, "911": { "src": "911.b68f913.svg", "width": 94, "height": 25 }, "boxster": { "src": "boxster.c321738.svg", "width": 239, "height": 26 }, "cayenne": { "src": "cayenne.2556201.svg", "width": 245, "height": 35 }, "cayman": { "src": "cayman.cc89196.svg", "width": 229, "height": 35 }, "macan": { "src": "macan.a1844f4.svg", "width": 196, "height": 26 }, "panamera": { "src": "panamera.6dae809.svg", "width": 260, "height": 25 }, "taycan": { "src": "taycan.df444c6.svg", "width": 167, "height": 36 }, "turbo-s": { "src": "turbo-s.73f1e10.svg", "width": 199, "height": 25 }, "turbo": { "src": "turbo.6a4084a.svg", "width": 143, "height": 25 } };
|
|
3885
|
+
var MODEL_SIGNATURES_MANIFEST = { "718": { "src": "718.493a9e3.svg", "width": 79, "height": 26 }, "911": { "src": "911.b68f913.svg", "width": 94, "height": 25 }, "boxster": { "src": "boxster.c321738.svg", "width": 239, "height": 26 }, "cayenne": { "src": "cayenne.2556201.svg", "width": 245, "height": 35 }, "cayman": { "src": "cayman.cc89196.svg", "width": 229, "height": 35 }, "gt3-rs": { "src": "gt3-rs.03ac3ee.svg", "width": 238, "height": 25 }, "gt3": { "src": "gt3.bd3186c.svg", "width": 151, "height": 25 }, "gts": { "src": "gts.99bd35e.svg", "width": 121, "height": 25 }, "macan": { "src": "macan.a1844f4.svg", "width": 196, "height": 26 }, "panamera": { "src": "panamera.6dae809.svg", "width": 260, "height": 25 }, "taycan": { "src": "taycan.df444c6.svg", "width": 167, "height": 36 }, "turbo-s": { "src": "turbo-s.73f1e10.svg", "width": 199, "height": 25 }, "turbo": { "src": "turbo.6a4084a.svg", "width": 143, "height": 25 } };
|
|
3886
3886
|
|
|
3887
3887
|
const hasDocument = typeof document !== 'undefined';
|
|
3888
3888
|
|
|
@@ -3925,7 +3925,7 @@ const formatObjectOutput = (value) => {
|
|
|
3925
3925
|
|
|
3926
3926
|
const OPTION_LIST_SAFE_ZONE = 6;
|
|
3927
3927
|
|
|
3928
|
-
const getComponentCss$
|
|
3928
|
+
const getComponentCss$1n = (size, compact, open, theme, sticky) => {
|
|
3929
3929
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
3930
3930
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
3931
3931
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4097,7 +4097,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4097
4097
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4098
4098
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4099
4099
|
const topBottomFallback = '56px';
|
|
4100
|
-
const getComponentCss$
|
|
4100
|
+
const getComponentCss$1m = (isOpen) => {
|
|
4101
4101
|
return getCss({
|
|
4102
4102
|
'@global': {
|
|
4103
4103
|
':host': {
|
|
@@ -4169,7 +4169,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4169
4169
|
return groupDirectionJssStyles[direction];
|
|
4170
4170
|
};
|
|
4171
4171
|
|
|
4172
|
-
const getComponentCss$
|
|
4172
|
+
const getComponentCss$1l = (direction) => {
|
|
4173
4173
|
return getCss({
|
|
4174
4174
|
'@global': {
|
|
4175
4175
|
':host': {
|
|
@@ -4322,7 +4322,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4322
4322
|
};
|
|
4323
4323
|
};
|
|
4324
4324
|
|
|
4325
|
-
const getComponentCss$
|
|
4325
|
+
const getComponentCss$1k = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4326
4326
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4327
4327
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4328
4328
|
root: {
|
|
@@ -4360,12 +4360,17 @@ const getFontWeight = (weight) => {
|
|
|
4360
4360
|
return fontWeightMap[weight];
|
|
4361
4361
|
};
|
|
4362
4362
|
|
|
4363
|
-
const getComponentCss$
|
|
4363
|
+
const getComponentCss$1j = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
|
|
4364
4364
|
const isTopAligned = align === 'top';
|
|
4365
4365
|
return getCss({
|
|
4366
4366
|
'@global': {
|
|
4367
4367
|
':host': {
|
|
4368
|
-
display: '
|
|
4368
|
+
display: 'flex',
|
|
4369
|
+
alignItems: 'stretch',
|
|
4370
|
+
// Safari workaround to scale the tile properly
|
|
4371
|
+
'@supports (-webkit-hyphens: auto)': {
|
|
4372
|
+
alignItems: 'baseline',
|
|
4373
|
+
},
|
|
4369
4374
|
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
4370
4375
|
...addImportantToEachRule({
|
|
4371
4376
|
...colorSchemeStyles,
|
|
@@ -4384,6 +4389,10 @@ const getComponentCss$1h = (isDisabledOrLoading, aspectRatio, size, weight, back
|
|
|
4384
4389
|
gridArea: `${isTopAligned ? 4 : 2}/2`,
|
|
4385
4390
|
zIndex: 3,
|
|
4386
4391
|
},
|
|
4392
|
+
'&[name="footer"]': {
|
|
4393
|
+
gridRow: 2,
|
|
4394
|
+
zIndex: 3,
|
|
4395
|
+
},
|
|
4387
4396
|
},
|
|
4388
4397
|
'::slotted(:is(img,picture,video))': addImportantToEachRule({
|
|
4389
4398
|
display: 'block',
|
|
@@ -4419,7 +4428,10 @@ const getComponentCss$1h = (isDisabledOrLoading, aspectRatio, size, weight, back
|
|
|
4419
4428
|
})),
|
|
4420
4429
|
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4421
4430
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
4422
|
-
|
|
4431
|
+
// Safari workaround to scale the tile properly
|
|
4432
|
+
'@supports (-webkit-hyphens: auto)': {
|
|
4433
|
+
height: '100%',
|
|
4434
|
+
},
|
|
4423
4435
|
display: 'grid',
|
|
4424
4436
|
gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
|
|
4425
4437
|
...(hasGradient &&
|
|
@@ -4463,21 +4475,23 @@ const getComponentCss$1h = (isDisabledOrLoading, aspectRatio, size, weight, back
|
|
|
4463
4475
|
},
|
|
4464
4476
|
footer: {
|
|
4465
4477
|
gridArea: `${isTopAligned ? 2 : 4}/2`,
|
|
4466
|
-
display: 'flex',
|
|
4467
|
-
gap: spacingStaticMedium,
|
|
4468
|
-
justifyContent: 'space-between',
|
|
4469
4478
|
...buildResponsiveStyles(compact, (compactValue) => compactValue
|
|
4470
4479
|
? {
|
|
4471
|
-
|
|
4472
|
-
|
|
4480
|
+
display: 'grid',
|
|
4481
|
+
gridTemplateColumns: '1fr auto',
|
|
4482
|
+
columnGap: spacingStaticMedium,
|
|
4473
4483
|
}
|
|
4474
4484
|
: {
|
|
4475
|
-
|
|
4485
|
+
display: 'flex',
|
|
4476
4486
|
flexDirection: 'column',
|
|
4487
|
+
alignItems: 'start',
|
|
4477
4488
|
}),
|
|
4478
4489
|
},
|
|
4479
4490
|
'link-or-button-pure': {
|
|
4480
4491
|
zIndex: 5,
|
|
4492
|
+
gridColumn: 2,
|
|
4493
|
+
gridRow: hasFooterSlot && !isTopAligned ? 2 : 1,
|
|
4494
|
+
alignSelf: 'center',
|
|
4481
4495
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4482
4496
|
display: compactValue ? 'inline-block' : 'none',
|
|
4483
4497
|
})),
|
|
@@ -4485,6 +4499,7 @@ const getComponentCss$1h = (isDisabledOrLoading, aspectRatio, size, weight, back
|
|
|
4485
4499
|
'link-or-button': {
|
|
4486
4500
|
minHeight: '54px', // prevent content shift
|
|
4487
4501
|
zIndex: 5,
|
|
4502
|
+
marginTop: spacingStaticMedium,
|
|
4488
4503
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4489
4504
|
display: compactValue ? 'none' : 'inline-block',
|
|
4490
4505
|
})),
|
|
@@ -4529,7 +4544,8 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4529
4544
|
const { focusColor } = getThemedColors(theme);
|
|
4530
4545
|
const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
|
|
4531
4546
|
const scalingVar = `var(${cssVariableInternalScaling}, var(--p-internal-scaling-factor))`;
|
|
4532
|
-
const borderCompensation = variant === 'ghost' ? `+ ${borderWidthBase}` : ''; // Compensate for missing border in ghost variant (Fixes border backdrop-filter blur rendering issue in safari)
|
|
4547
|
+
const borderCompensation = variant === 'ghost' && !isHighContrastMode ? `+ ${borderWidthBase}` : ''; // Compensate for missing border in ghost variant (Fixes border backdrop-filter blur rendering issue in safari)
|
|
4548
|
+
const borderStyle = `${borderWidthBase} solid ${borderColor}`;
|
|
4533
4549
|
const paddingBlock = `calc(${scalingVar} * 0.8125 * ${SCALING_BASE_VALUE} ${borderCompensation})`; // 0.8125 * SCALING_BASE_VALUE corresponds to 13px
|
|
4534
4550
|
const paddingInline = `max(calc(${scalingVar} * 1.625 * ${SCALING_BASE_VALUE} ${borderCompensation}), ${variant === 'ghost' ? '6px' : '4px'})`; // 1.625 * SCALING_BASE_VALUE corresponds to 26px
|
|
4535
4551
|
const gap = `clamp(2px, calc(${scalingVar} * 0.5 * ${SCALING_BASE_VALUE}), 16px)`; // 0.5 * SCALING_BASE_VALUE corresponds to 8px
|
|
@@ -4561,8 +4577,11 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4561
4577
|
textDecoration: 'none',
|
|
4562
4578
|
...textSmallStyle,
|
|
4563
4579
|
...(variant === 'ghost'
|
|
4564
|
-
? {
|
|
4565
|
-
|
|
4580
|
+
? {
|
|
4581
|
+
...frostedGlassStyle,
|
|
4582
|
+
border: isHighContrastMode ? borderStyle : 'none',
|
|
4583
|
+
} // We can't use a border in the ghost variant due to rendering issues with backdrop-filter in safari
|
|
4584
|
+
: { border: borderStyle }),
|
|
4566
4585
|
borderRadius: borderRadiusSmall,
|
|
4567
4586
|
transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
|
|
4568
4587
|
backgroundColor,
|
|
@@ -4630,7 +4649,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4630
4649
|
};
|
|
4631
4650
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4632
4651
|
};
|
|
4633
|
-
const getComponentCss$
|
|
4652
|
+
const getComponentCss$1i = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
|
|
4634
4653
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4635
4654
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4636
4655
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4706,7 +4725,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
|
|
|
4706
4725
|
const mediaQueryM = getMediaQueryMin('m');
|
|
4707
4726
|
// others
|
|
4708
4727
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4709
|
-
const getComponentCss$
|
|
4728
|
+
const getComponentCss$1h = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
4710
4729
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
|
|
4711
4730
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4712
4731
|
return getCss({
|
|
@@ -5085,7 +5104,7 @@ const getGradient = (theme, gradientColorTheme) => {
|
|
|
5085
5104
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5086
5105
|
`rgba(${gradientColor},0)`);
|
|
5087
5106
|
};
|
|
5088
|
-
const getComponentCss$
|
|
5107
|
+
const getComponentCss$1g = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
|
|
5089
5108
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
5090
5109
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
5091
5110
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5537,13 +5556,13 @@ const getFunctionalComponentStateMessageStyles = (theme, state, additionalDefaul
|
|
|
5537
5556
|
};
|
|
5538
5557
|
};
|
|
5539
5558
|
|
|
5540
|
-
const getCheckedSVGBackgroundImage$
|
|
5559
|
+
const getCheckedSVGBackgroundImage$3 = (fill) => {
|
|
5541
5560
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`);
|
|
5542
5561
|
};
|
|
5543
5562
|
const getIndeterminateSVGBackgroundImage$1 = (fill) => {
|
|
5544
5563
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5545
5564
|
};
|
|
5546
|
-
const getComponentCss$
|
|
5565
|
+
const getComponentCss$1f = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5547
5566
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
5548
5567
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
5549
5568
|
const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
|
|
@@ -5568,16 +5587,16 @@ const getComponentCss$1d = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
|
5568
5587
|
// TODO: is it somehow useful possible to make following styles configurable by parameter?
|
|
5569
5588
|
...(!isLoading && {
|
|
5570
5589
|
'&(input:checked)': {
|
|
5571
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5590
|
+
backgroundImage: getCheckedSVGBackgroundImage$3(checkedIconColor),
|
|
5572
5591
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5573
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5592
|
+
backgroundImage: getCheckedSVGBackgroundImage$3(checkedIconColorDark),
|
|
5574
5593
|
}),
|
|
5575
5594
|
// This is a workaround for Blink based browsers, which do not reflect the high contrast system colors (e.g.: "Canvas" and "CanvasText") when added to background SVG's.
|
|
5576
5595
|
...(isHighContrastMode &&
|
|
5577
5596
|
getSchemedHighContrastMediaQuery({
|
|
5578
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5597
|
+
backgroundImage: getCheckedSVGBackgroundImage$3('white'),
|
|
5579
5598
|
}, {
|
|
5580
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5599
|
+
backgroundImage: getCheckedSVGBackgroundImage$3('black'),
|
|
5581
5600
|
})),
|
|
5582
5601
|
},
|
|
5583
5602
|
'&(input:indeterminate)': {
|
|
@@ -5700,7 +5719,7 @@ const getCheckboxBaseStyles = (theme, isDisabled, isLoading, state, compact) =>
|
|
|
5700
5719
|
};
|
|
5701
5720
|
};
|
|
5702
5721
|
|
|
5703
|
-
const getCheckedSVGBackgroundImage$
|
|
5722
|
+
const getCheckedSVGBackgroundImage$2 = (fill) => {
|
|
5704
5723
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`);
|
|
5705
5724
|
};
|
|
5706
5725
|
const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
|
|
@@ -5726,18 +5745,18 @@ const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
|
|
|
5726
5745
|
return {
|
|
5727
5746
|
borderColor: checkedColor,
|
|
5728
5747
|
backgroundColor: checkedColor,
|
|
5729
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5748
|
+
backgroundImage: getCheckedSVGBackgroundImage$2(checkedIconColor),
|
|
5730
5749
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5731
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5750
|
+
backgroundImage: getCheckedSVGBackgroundImage$2(checkedIconColorDark),
|
|
5732
5751
|
borderColor: checkedColorDark,
|
|
5733
5752
|
backgroundColor: checkedColorDark,
|
|
5734
5753
|
}),
|
|
5735
5754
|
// This is a workaround for Blink based browsers, which do not reflect the high contrast system colors (e.g.: "Canvas" and "CanvasText") when added to background SVG's.
|
|
5736
5755
|
...(isHighContrastMode &&
|
|
5737
5756
|
getSchemedHighContrastMediaQuery({
|
|
5738
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5757
|
+
backgroundImage: getCheckedSVGBackgroundImage$2('white'),
|
|
5739
5758
|
}, {
|
|
5740
|
-
backgroundImage: getCheckedSVGBackgroundImage$
|
|
5759
|
+
backgroundImage: getCheckedSVGBackgroundImage$2('black'),
|
|
5741
5760
|
})),
|
|
5742
5761
|
};
|
|
5743
5762
|
};
|
|
@@ -5745,7 +5764,7 @@ const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
|
|
|
5745
5764
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5746
5765
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5747
5766
|
};
|
|
5748
|
-
const getComponentCss$
|
|
5767
|
+
const getComponentCss$1e = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
|
|
5749
5768
|
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5750
5769
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
5751
5770
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -6037,7 +6056,7 @@ const getUnitCounterJssStyle = (isDisabled, isReadonly, theme) => {
|
|
|
6037
6056
|
const cssVarInternalInputBaseScaling = '--p-internal-input-base-scaling';
|
|
6038
6057
|
// Determines the scaling factor for the input-number size. In "compact" mode, it uses 0.5 to achieve a 36px input-number (compact size).
|
|
6039
6058
|
// Defaults to 1 for the standard size and can be overridden by the CSS variable `cssVarInternalInputBaseScaling`.
|
|
6040
|
-
const getScalingVar = (compact) => `var(${cssVarInternalInputBaseScaling}, ${compact ? 0.5 : 1})`;
|
|
6059
|
+
const getScalingVar$1 = (compact) => `var(${cssVarInternalInputBaseScaling}, ${compact ? 0.5 : 1})`;
|
|
6041
6060
|
/**
|
|
6042
6061
|
* @css-variable {"name": "--ref-p-input-slotted-padding", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `padding` in oder to adjust the alignment correctly."}
|
|
6043
6062
|
*/
|
|
@@ -6047,7 +6066,7 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
|
|
|
6047
6066
|
*/
|
|
6048
6067
|
const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
|
|
6049
6068
|
const getFunctionalComponentInputBaseStyles = (disabled, loading, hideLabel, state, compact, readOnly, theme, additionalInputJssStyle) => {
|
|
6050
|
-
const scalingVar = getScalingVar(compact);
|
|
6069
|
+
const scalingVar = getScalingVar$1(compact);
|
|
6051
6070
|
const paddingBlock = `max(2px, ${formElementPaddingVertical} * ${scalingVar})`;
|
|
6052
6071
|
const paddingInline = `max(2px, ${formElementPaddingHorizontal} * ${scalingVar})`;
|
|
6053
6072
|
const height = `max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px))`;
|
|
@@ -6384,7 +6403,7 @@ const widthMap = {
|
|
|
6384
6403
|
basic: gridBasicOffset,
|
|
6385
6404
|
extended: gridExtendedOffset,
|
|
6386
6405
|
};
|
|
6387
|
-
const getComponentCss$
|
|
6406
|
+
const getComponentCss$1d = (width) => {
|
|
6388
6407
|
return getCss({
|
|
6389
6408
|
'@global': {
|
|
6390
6409
|
':host': {
|
|
@@ -6426,7 +6445,7 @@ const getDimensionStyle = {
|
|
|
6426
6445
|
width: 'inherit',
|
|
6427
6446
|
height: 'inherit',
|
|
6428
6447
|
};
|
|
6429
|
-
const getComponentCss$
|
|
6448
|
+
const getComponentCss$1c = () => {
|
|
6430
6449
|
return getCss({
|
|
6431
6450
|
'@global': {
|
|
6432
6451
|
':host': {
|
|
@@ -6525,7 +6544,7 @@ const sizeMap$5 = {
|
|
|
6525
6544
|
medium: fontSizeDisplayMedium,
|
|
6526
6545
|
large: fontSizeDisplayLarge,
|
|
6527
6546
|
};
|
|
6528
|
-
const getComponentCss$
|
|
6547
|
+
const getComponentCss$1b = (size, align, color, ellipsis, theme) => {
|
|
6529
6548
|
return getCss({
|
|
6530
6549
|
'@global': {
|
|
6531
6550
|
':host': {
|
|
@@ -6543,7 +6562,7 @@ const getComponentCss$19 = (size, align, color, ellipsis, theme) => {
|
|
|
6543
6562
|
});
|
|
6544
6563
|
};
|
|
6545
6564
|
|
|
6546
|
-
const getComponentCss$
|
|
6565
|
+
const getComponentCss$1a = (color, orientation, theme) => {
|
|
6547
6566
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6548
6567
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
6549
6568
|
const colorMap = {
|
|
@@ -6604,7 +6623,7 @@ const easingOpen = 'in';
|
|
|
6604
6623
|
const dialogDurationClose = 'short';
|
|
6605
6624
|
const backdropDurationClose = 'moderate';
|
|
6606
6625
|
const easingClose = 'out';
|
|
6607
|
-
const getComponentCss$
|
|
6626
|
+
const getComponentCss$19 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6608
6627
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6609
6628
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6610
6629
|
return getCss({
|
|
@@ -6851,7 +6870,7 @@ const getComponentCss$17 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme
|
|
|
6851
6870
|
});
|
|
6852
6871
|
};
|
|
6853
6872
|
|
|
6854
|
-
const getComponentCss$
|
|
6873
|
+
const getComponentCss$18 = (isPrimary, isSecondary, isCascade) => {
|
|
6855
6874
|
return getCss({
|
|
6856
6875
|
'@global': {
|
|
6857
6876
|
'@keyframes slide-up-mobile': {
|
|
@@ -7082,7 +7101,7 @@ const getComponentCss$16 = (isPrimary, isSecondary, isCascade) => {
|
|
|
7082
7101
|
});
|
|
7083
7102
|
};
|
|
7084
7103
|
|
|
7085
|
-
const getComponentCss$
|
|
7104
|
+
const getComponentCss$17 = (hasSlottedAnchor, isActive) => {
|
|
7086
7105
|
const anchorJssStyle = {
|
|
7087
7106
|
all: 'unset',
|
|
7088
7107
|
padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
|
|
@@ -7134,7 +7153,7 @@ const getComponentCss$15 = (hasSlottedAnchor, isActive) => {
|
|
|
7134
7153
|
});
|
|
7135
7154
|
};
|
|
7136
7155
|
|
|
7137
|
-
const getComponentCss$
|
|
7156
|
+
const getComponentCss$16 = (state, labelSize, hasLabel, theme) => {
|
|
7138
7157
|
return getCss({
|
|
7139
7158
|
'@global': {
|
|
7140
7159
|
':host': {
|
|
@@ -7171,7 +7190,7 @@ const getComponentCss$14 = (state, labelSize, hasLabel, theme) => {
|
|
|
7171
7190
|
});
|
|
7172
7191
|
};
|
|
7173
7192
|
|
|
7174
|
-
const getComponentCss$
|
|
7193
|
+
const getComponentCss$15 = (state, labelSize, hasLabel, theme) => {
|
|
7175
7194
|
return getCss({
|
|
7176
7195
|
'@global': {
|
|
7177
7196
|
':host': {
|
|
@@ -7216,7 +7235,7 @@ const sizeMap$4 = {
|
|
|
7216
7235
|
large: fontSizeTextLarge,
|
|
7217
7236
|
'x-large': fontSizeTextXLarge,
|
|
7218
7237
|
};
|
|
7219
|
-
const getComponentCss$
|
|
7238
|
+
const getComponentCss$14 = (size) => {
|
|
7220
7239
|
return getCss({
|
|
7221
7240
|
'@global': {
|
|
7222
7241
|
':host': {
|
|
@@ -7258,7 +7277,7 @@ const flexItemWidths = {
|
|
|
7258
7277
|
full: 100,
|
|
7259
7278
|
auto: 'auto',
|
|
7260
7279
|
};
|
|
7261
|
-
const getComponentCss$
|
|
7280
|
+
const getComponentCss$13 = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
7262
7281
|
return getCss({
|
|
7263
7282
|
'@global': {
|
|
7264
7283
|
':host': addImportantToEachRule({
|
|
@@ -7280,7 +7299,7 @@ const getComponentCss$11 = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
7280
7299
|
});
|
|
7281
7300
|
};
|
|
7282
7301
|
|
|
7283
|
-
const getComponentCss$
|
|
7302
|
+
const getComponentCss$12 = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
7284
7303
|
return getCss({
|
|
7285
7304
|
'@global': {
|
|
7286
7305
|
':host': {
|
|
@@ -7477,7 +7496,7 @@ const cssVarRefPaddingTop = '--ref-p-flyout-pt';
|
|
|
7477
7496
|
const cssVarRefPaddingInline = '--ref-p-flyout-px';
|
|
7478
7497
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
7479
7498
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
7480
|
-
const getComponentCss
|
|
7499
|
+
const getComponentCss$11 = (isOpen, backdrop, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
|
|
7481
7500
|
const isPositionStart = position === 'start' || position === 'left';
|
|
7482
7501
|
const isFooterFixed = footerBehavior === 'fixed';
|
|
7483
7502
|
return getCss({
|
|
@@ -7537,7 +7556,7 @@ const getComponentCss$$ = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
|
|
|
7537
7556
|
},
|
|
7538
7557
|
}),
|
|
7539
7558
|
},
|
|
7540
|
-
dialog: getDialogJssStyle(isOpen, theme),
|
|
7559
|
+
dialog: getDialogJssStyle(isOpen, theme, backdrop),
|
|
7541
7560
|
},
|
|
7542
7561
|
scroller: {
|
|
7543
7562
|
...getScrollerJssStyle(isPositionStart ? 'start' : 'end', theme),
|
|
@@ -7589,7 +7608,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
7589
7608
|
const gridItemWidths = [
|
|
7590
7609
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
7591
7610
|
];
|
|
7592
|
-
const getComponentCss$
|
|
7611
|
+
const getComponentCss$10 = (size, offset) => {
|
|
7593
7612
|
return getCss({
|
|
7594
7613
|
'@global': {
|
|
7595
7614
|
':host': addImportantToEachRule({
|
|
@@ -7609,7 +7628,7 @@ const getComponentCss$_ = (size, offset) => {
|
|
|
7609
7628
|
};
|
|
7610
7629
|
|
|
7611
7630
|
const gutter = `calc(${gridGap} / -2)`;
|
|
7612
|
-
const getComponentCss
|
|
7631
|
+
const getComponentCss$$ = (direction, wrap) => {
|
|
7613
7632
|
return getCss({
|
|
7614
7633
|
'@global': {
|
|
7615
7634
|
':host': {
|
|
@@ -7635,7 +7654,7 @@ const sizeMap$3 = {
|
|
|
7635
7654
|
'x-large': fontSizeHeadingXLarge,
|
|
7636
7655
|
'xx-large': fontSizeHeadingXXLarge,
|
|
7637
7656
|
};
|
|
7638
|
-
const getComponentCss$
|
|
7657
|
+
const getComponentCss$_ = (size, align, color, ellipsis, theme) => {
|
|
7639
7658
|
return getCss({
|
|
7640
7659
|
'@global': {
|
|
7641
7660
|
':host': {
|
|
@@ -7695,7 +7714,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
7695
7714
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
7696
7715
|
};
|
|
7697
7716
|
};
|
|
7698
|
-
const getComponentCss$
|
|
7717
|
+
const getComponentCss$Z = (variant, align, color, ellipsis, theme) => {
|
|
7699
7718
|
return getCss({
|
|
7700
7719
|
'@global': {
|
|
7701
7720
|
':host': {
|
|
@@ -7806,7 +7825,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7806
7825
|
name === 'return' ||
|
|
7807
7826
|
name === 'send'));
|
|
7808
7827
|
};
|
|
7809
|
-
const getComponentCss$
|
|
7828
|
+
const getComponentCss$Y = (name, source, color, size, theme) => {
|
|
7810
7829
|
const isColorInherit = color === 'inherit';
|
|
7811
7830
|
const isSizeInherit = size === 'inherit';
|
|
7812
7831
|
const isDark = isThemeDark(theme);
|
|
@@ -7925,7 +7944,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
7925
7944
|
...headingSmallStyle,
|
|
7926
7945
|
...getTextJssStyle(theme),
|
|
7927
7946
|
});
|
|
7928
|
-
const getComponentCss$
|
|
7947
|
+
const getComponentCss$X = (state, hasAction, hasClose, theme) => {
|
|
7929
7948
|
return getCss({
|
|
7930
7949
|
'@global': {
|
|
7931
7950
|
':host': {
|
|
@@ -7972,7 +7991,7 @@ const getComponentCss$V = (state, hasAction, hasClose, theme) => {
|
|
|
7972
7991
|
/**
|
|
7973
7992
|
* @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."}
|
|
7974
7993
|
*/
|
|
7975
|
-
const getComponentCss$
|
|
7994
|
+
const getComponentCss$W = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
|
|
7976
7995
|
return getCss({
|
|
7977
7996
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7978
7997
|
textOverflow: 'ellipsis',
|
|
@@ -7995,7 +8014,7 @@ const getComponentCss$U = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
7995
8014
|
/**
|
|
7996
8015
|
* @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."}
|
|
7997
8016
|
*/
|
|
7998
|
-
const getComponentCss$
|
|
8017
|
+
const getComponentCss$V = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
|
|
7999
8018
|
return getCss({
|
|
8000
8019
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8001
8020
|
textOverflow: 'ellipsis',
|
|
@@ -8015,7 +8034,7 @@ const getComponentCss$T = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8015
8034
|
/**
|
|
8016
8035
|
* @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."}
|
|
8017
8036
|
*/
|
|
8018
|
-
const getComponentCss$
|
|
8037
|
+
const getComponentCss$U = (disabled, loading, hideLabel, state, compact, readOnly, theme, controls) => {
|
|
8019
8038
|
return getCss({
|
|
8020
8039
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8021
8040
|
textOverflow: 'ellipsis',
|
|
@@ -8040,7 +8059,7 @@ const getComponentCss$S = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8040
8059
|
/**
|
|
8041
8060
|
* @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."}
|
|
8042
8061
|
*/
|
|
8043
|
-
const getComponentCss$
|
|
8062
|
+
const getComponentCss$T = (disabled, loading, hideLabel, state, toggle, compact, readOnly, theme) => {
|
|
8044
8063
|
return getCss({
|
|
8045
8064
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8046
8065
|
'&[type="text"]': {
|
|
@@ -8063,7 +8082,7 @@ const getComponentCss$R = (disabled, loading, hideLabel, state, toggle, compact,
|
|
|
8063
8082
|
/**
|
|
8064
8083
|
* @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."}
|
|
8065
8084
|
*/
|
|
8066
|
-
const getComponentCss$
|
|
8085
|
+
const getComponentCss$S = (disabled, loading, hideLabel, state, compact, readOnly, theme, clear) => {
|
|
8067
8086
|
return getCss({
|
|
8068
8087
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8069
8088
|
textOverflow: 'ellipsis',
|
|
@@ -8087,7 +8106,7 @@ const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8087
8106
|
/**
|
|
8088
8107
|
* @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."}
|
|
8089
8108
|
*/
|
|
8090
|
-
const getComponentCss$
|
|
8109
|
+
const getComponentCss$R = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
|
|
8091
8110
|
return getCss({
|
|
8092
8111
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8093
8112
|
textOverflow: 'ellipsis',
|
|
@@ -8107,7 +8126,7 @@ const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8107
8126
|
/**
|
|
8108
8127
|
* @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."}
|
|
8109
8128
|
*/
|
|
8110
|
-
const getComponentCss$
|
|
8129
|
+
const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnly, theme, counter) => {
|
|
8111
8130
|
return getCss({
|
|
8112
8131
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8113
8132
|
textOverflow: 'ellipsis',
|
|
@@ -8133,7 +8152,7 @@ const getComponentCss$O = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8133
8152
|
/**
|
|
8134
8153
|
* @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."}
|
|
8135
8154
|
*/
|
|
8136
|
-
const getComponentCss$
|
|
8155
|
+
const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
|
|
8137
8156
|
return getCss({
|
|
8138
8157
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8139
8158
|
textOverflow: 'ellipsis',
|
|
@@ -8156,7 +8175,7 @@ const getComponentCss$N = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8156
8175
|
/**
|
|
8157
8176
|
* @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."}
|
|
8158
8177
|
*/
|
|
8159
|
-
const getComponentCss$
|
|
8178
|
+
const getComponentCss$O = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
|
|
8160
8179
|
return getCss({
|
|
8161
8180
|
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
8162
8181
|
textOverflow: 'ellipsis',
|
|
@@ -8169,7 +8188,7 @@ const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
8169
8188
|
});
|
|
8170
8189
|
};
|
|
8171
8190
|
|
|
8172
|
-
const getComponentCss$
|
|
8191
|
+
const getComponentCss$N = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
8173
8192
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
8174
8193
|
'@global': addImportantToEachRule({
|
|
8175
8194
|
'::slotted': {
|
|
@@ -8198,7 +8217,7 @@ const getComponentCss$L = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
8198
8217
|
};
|
|
8199
8218
|
|
|
8200
8219
|
const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
|
|
8201
|
-
const getComponentCss$
|
|
8220
|
+
const getComponentCss$M = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, compact, theme) => {
|
|
8202
8221
|
const { linkColor } = getHighContrastColors();
|
|
8203
8222
|
const isPrimary = variant === 'primary';
|
|
8204
8223
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, compact, cssVariableInternalLinkScaling, theme), {
|
|
@@ -8240,12 +8259,17 @@ const getComponentCss$K = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
8240
8259
|
}));
|
|
8241
8260
|
};
|
|
8242
8261
|
|
|
8243
|
-
const getComponentCss$
|
|
8262
|
+
const getComponentCss$L = (aspectRatio, weight, // to get deprecated semibold typed
|
|
8244
8263
|
direction, hasDescription) => {
|
|
8245
8264
|
return getCss({
|
|
8246
8265
|
'@global': {
|
|
8247
8266
|
':host': {
|
|
8248
|
-
display: '
|
|
8267
|
+
display: 'flex',
|
|
8268
|
+
alignItems: 'stretch',
|
|
8269
|
+
// Safari workaround to scale the tile properly
|
|
8270
|
+
'@supports (-webkit-hyphens: auto)': {
|
|
8271
|
+
alignItems: 'baseline',
|
|
8272
|
+
},
|
|
8249
8273
|
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
8250
8274
|
...addImportantToEachRule({
|
|
8251
8275
|
...colorSchemeStyles,
|
|
@@ -8305,7 +8329,10 @@ direction, hasDescription) => {
|
|
|
8305
8329
|
aspectRatio: aspectRatioValue.replace(':', '/'), // mapping of the deprecated aspect-ratio with ':'
|
|
8306
8330
|
})),
|
|
8307
8331
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
8308
|
-
|
|
8332
|
+
// Safari workaround to scale the tile properly
|
|
8333
|
+
'@supports (-webkit-hyphens: auto)': {
|
|
8334
|
+
height: '100%',
|
|
8335
|
+
},
|
|
8309
8336
|
display: 'grid',
|
|
8310
8337
|
gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
|
|
8311
8338
|
'&::after': {
|
|
@@ -8374,7 +8401,7 @@ const getMultilineEllipsis = (lineClamp) => {
|
|
|
8374
8401
|
overflow: 'hidden',
|
|
8375
8402
|
};
|
|
8376
8403
|
};
|
|
8377
|
-
const getComponentCss$
|
|
8404
|
+
const getComponentCss$K = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
|
|
8378
8405
|
const { primaryColor, contrastHighColor, contrastMediumColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
8379
8406
|
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
8380
8407
|
return getCss({
|
|
@@ -8513,13 +8540,18 @@ const getComponentCss$I = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
8513
8540
|
});
|
|
8514
8541
|
};
|
|
8515
8542
|
|
|
8516
|
-
const getComponentCss$
|
|
8517
|
-
background, align, compact, hasGradient, isDisabled) => {
|
|
8543
|
+
const getComponentCss$J = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
8544
|
+
background, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
|
|
8518
8545
|
const isTopAligned = align === 'top';
|
|
8519
8546
|
return getCss({
|
|
8520
8547
|
'@global': {
|
|
8521
8548
|
':host': {
|
|
8522
|
-
display: '
|
|
8549
|
+
display: 'flex',
|
|
8550
|
+
alignItems: 'stretch',
|
|
8551
|
+
// Safari workaround to scale the tile properly
|
|
8552
|
+
'@supports (-webkit-hyphens: auto)': {
|
|
8553
|
+
alignItems: 'baseline',
|
|
8554
|
+
},
|
|
8523
8555
|
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
8524
8556
|
...addImportantToEachRule({
|
|
8525
8557
|
...colorSchemeStyles,
|
|
@@ -8538,6 +8570,10 @@ background, align, compact, hasGradient, isDisabled) => {
|
|
|
8538
8570
|
gridArea: `${isTopAligned ? 4 : 2}/2`,
|
|
8539
8571
|
zIndex: 3,
|
|
8540
8572
|
},
|
|
8573
|
+
'&[name="footer"]': {
|
|
8574
|
+
gridRow: 2,
|
|
8575
|
+
zIndex: 3,
|
|
8576
|
+
},
|
|
8541
8577
|
},
|
|
8542
8578
|
'::slotted(:is(img,picture,video))': addImportantToEachRule({
|
|
8543
8579
|
display: 'block',
|
|
@@ -8572,7 +8608,10 @@ background, align, compact, hasGradient, isDisabled) => {
|
|
|
8572
8608
|
aspectRatio: aspectRatioValue.replace(':', '/'), // mapping of the deprecated aspect-ratio with ':'
|
|
8573
8609
|
})),
|
|
8574
8610
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
8575
|
-
|
|
8611
|
+
// Safari workaround to scale the tile properly
|
|
8612
|
+
'@supports (-webkit-hyphens: auto)': {
|
|
8613
|
+
height: '100%',
|
|
8614
|
+
},
|
|
8576
8615
|
display: 'grid',
|
|
8577
8616
|
gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
|
|
8578
8617
|
...(hasGradient &&
|
|
@@ -8615,21 +8654,23 @@ background, align, compact, hasGradient, isDisabled) => {
|
|
|
8615
8654
|
},
|
|
8616
8655
|
footer: {
|
|
8617
8656
|
gridArea: `${isTopAligned ? 2 : 4}/2`,
|
|
8618
|
-
display: 'flex',
|
|
8619
|
-
gap: spacingStaticMedium,
|
|
8620
|
-
justifyContent: 'space-between',
|
|
8621
8657
|
...buildResponsiveStyles(compact, (compactValue) => compactValue
|
|
8622
8658
|
? {
|
|
8623
|
-
|
|
8624
|
-
|
|
8659
|
+
display: 'grid',
|
|
8660
|
+
gridTemplateColumns: '1fr auto',
|
|
8661
|
+
columnGap: spacingStaticMedium,
|
|
8625
8662
|
}
|
|
8626
8663
|
: {
|
|
8627
|
-
|
|
8664
|
+
display: 'flex',
|
|
8628
8665
|
flexDirection: 'column',
|
|
8666
|
+
alignItems: 'start',
|
|
8629
8667
|
}),
|
|
8630
8668
|
},
|
|
8631
8669
|
'link-or-button-pure': {
|
|
8632
8670
|
zIndex: 5,
|
|
8671
|
+
gridColumn: 2,
|
|
8672
|
+
gridRow: hasFooterSlot && !isTopAligned ? 2 : 1,
|
|
8673
|
+
alignSelf: 'center',
|
|
8633
8674
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
8634
8675
|
display: compactValue ? 'inline-block' : 'none',
|
|
8635
8676
|
})),
|
|
@@ -8637,6 +8678,7 @@ background, align, compact, hasGradient, isDisabled) => {
|
|
|
8637
8678
|
'link-or-button': {
|
|
8638
8679
|
minHeight: '54px', // prevent content shift
|
|
8639
8680
|
zIndex: 5,
|
|
8681
|
+
marginTop: spacingStaticMedium,
|
|
8640
8682
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
8641
8683
|
display: compactValue ? 'none' : 'inline-block',
|
|
8642
8684
|
})),
|
|
@@ -8654,7 +8696,7 @@ const baseSizes = {
|
|
|
8654
8696
|
height: '72px',
|
|
8655
8697
|
},
|
|
8656
8698
|
};
|
|
8657
|
-
const getComponentCss$
|
|
8699
|
+
const getComponentCss$I = (size) => {
|
|
8658
8700
|
return getCss({
|
|
8659
8701
|
'@global': {
|
|
8660
8702
|
':host': {
|
|
@@ -8709,7 +8751,7 @@ const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-
|
|
|
8709
8751
|
const safeZoneVertical = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
|
|
8710
8752
|
const safeZoneHorizontal = `${spacingFluidLarge}`;
|
|
8711
8753
|
const cssClassNameStretchToFullModalWidth = 'stretch-to-full-modal-width';
|
|
8712
|
-
const getComponentCss$
|
|
8754
|
+
const getComponentCss$H = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
|
|
8713
8755
|
return getCss({
|
|
8714
8756
|
'@global': {
|
|
8715
8757
|
':host': {
|
|
@@ -8847,7 +8889,7 @@ const getThemedColor = (color, themedColors) => {
|
|
|
8847
8889
|
};
|
|
8848
8890
|
return colorMap[color];
|
|
8849
8891
|
};
|
|
8850
|
-
const getComponentCss$
|
|
8892
|
+
const getComponentCss$G = (model, safeZone, size, color, theme) => {
|
|
8851
8893
|
const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
|
|
8852
8894
|
const isSizeInherit = size === 'inherit';
|
|
8853
8895
|
return getCss({
|
|
@@ -8892,7 +8934,7 @@ const getComponentCss$E = (model, safeZone, size, color, theme) => {
|
|
|
8892
8934
|
};
|
|
8893
8935
|
|
|
8894
8936
|
const cssVarInternalMultiSelectOptionScaling = '--p-internal-multi-select-option-scaling';
|
|
8895
|
-
const getComponentCss$
|
|
8937
|
+
const getComponentCss$F = (theme, isDisabled, selected) => {
|
|
8896
8938
|
return getCss({
|
|
8897
8939
|
'@global': {
|
|
8898
8940
|
':host': {
|
|
@@ -8926,7 +8968,7 @@ const getComponentCss$D = (theme, isDisabled, selected) => {
|
|
|
8926
8968
|
|
|
8927
8969
|
const cssVarInternalOptgroupScaling = '--p-internal-optgroup-scaling';
|
|
8928
8970
|
const scalingVar = `var(${cssVarInternalOptgroupScaling}, 1)`;
|
|
8929
|
-
const getComponentCss$
|
|
8971
|
+
const getComponentCss$E = (isDisabled, theme) => {
|
|
8930
8972
|
const { primaryColor, disabledColor } = getThemedColors(theme);
|
|
8931
8973
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark } = getThemedColors('dark');
|
|
8932
8974
|
const padding = `max(2px, ${scalingVar} * ${spacingStaticSmall}) max(4px, ${scalingVar} * 12px)`;
|
|
@@ -8965,7 +9007,7 @@ const getComponentCss$C = (isDisabled, theme) => {
|
|
|
8965
9007
|
};
|
|
8966
9008
|
|
|
8967
9009
|
const cssVarInternalMultiSelectScaling = '--p-internal-multi-select-scaling';
|
|
8968
|
-
const getComponentCss$
|
|
9010
|
+
const getComponentCss$D = (isOpen, isDisabled, hideLabel, state, compact, theme) => {
|
|
8969
9011
|
const scalingVar = `var(${cssVarInternalMultiSelectScaling}, ${compact ? 0.5 : 1})`;
|
|
8970
9012
|
return getCss({
|
|
8971
9013
|
'@global': {
|
|
@@ -9015,7 +9057,7 @@ const disabledCursorStyle = {
|
|
|
9015
9057
|
pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
|
|
9016
9058
|
};
|
|
9017
9059
|
const hiddenStyle = { display: 'none' };
|
|
9018
|
-
const getComponentCss$
|
|
9060
|
+
const getComponentCss$C = (activePage, pageTotal, showLastPage, theme) => {
|
|
9019
9061
|
const { primaryColor, disabledColor, hoverColor } = getThemedColors(theme);
|
|
9020
9062
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
9021
9063
|
return getCss({
|
|
@@ -9151,41 +9193,29 @@ const removeStyles = (selector, styles) => Object.fromEntries(Object.entries(sty
|
|
|
9151
9193
|
return [key, value];
|
|
9152
9194
|
}));
|
|
9153
9195
|
|
|
9154
|
-
const
|
|
9155
|
-
|
|
9196
|
+
const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
|
|
9197
|
+
const getScalingVar = (compact) => `var(${cssVarInternalPinCodeScaling}, ${compact ? 0.5 : 1})`;
|
|
9198
|
+
const getComponentCss$B = (hideLabel, state, isDisabled, isLoading, length, compact, theme) => {
|
|
9199
|
+
const scalingVar = getScalingVar(compact);
|
|
9200
|
+
const dimension = `max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px))`;
|
|
9201
|
+
const gap = `max(${spacingStaticXSmall}, ${scalingVar} * ${spacingStaticSmall})`;
|
|
9202
|
+
const paddingBlock = `max(2px, ${formElementPaddingVertical} * ${scalingVar})`;
|
|
9203
|
+
// 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.
|
|
9204
|
+
const minWidth = `max(1rem, calc(${dimension} - ${borderWidthBase}*2 - ${paddingBlock}*2))`;
|
|
9156
9205
|
const inputStyles = removeStyles('input[readonly]', removeSlottedSelector(getSlottedTextFieldTextareaSelectStyles('input', state, isLoading, theme, {
|
|
9157
|
-
// TODO: move into getSlottedTextFieldTextareaSelectStyles()
|
|
9158
|
-
padding: `${formElementPaddingVertical} ${spacingStaticXSmall}`,
|
|
9159
9206
|
// TODO: move into getSlottedTextFieldTextareaSelectStyles() via parameter, e.g. textAlign=center|start
|
|
9160
9207
|
textAlign: 'center',
|
|
9161
|
-
// TODO: move into getSlottedTextFieldTextareaSelectStyles() via parameter, e.g. size=max|min
|
|
9162
|
-
maxWidth: inputSize,
|
|
9163
|
-
// 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.
|
|
9164
|
-
minWidth: `calc(1rem + ${borderWidthBase}*2 + ${spacingStaticSmall}*2)`,
|
|
9165
|
-
...(length > 4 && {
|
|
9166
|
-
[getMediaQueryMax('xs')]: {
|
|
9167
|
-
// TODO: instead of having dedicated css rules depending on length we should try to implement a fluid one fits all solution
|
|
9168
|
-
maxWidth: 'auto',
|
|
9169
|
-
width: `calc((276px - (${spacingStaticSmall} * ${length - 1})) / ${length})`, // calculate the max with of the inputs that fit into grid in viewport base (276px)
|
|
9170
|
-
},
|
|
9171
|
-
}),
|
|
9172
9208
|
// TODO: move into getSlottedTextFieldTextareaSelectStyles() via parameter, e.g. isLoading
|
|
9173
9209
|
...(isLoading && {
|
|
9174
9210
|
opacity: 0.2, // TODO: not in sync with e.g. checkbox/radio-button loading style
|
|
9175
9211
|
cursor: 'not-allowed',
|
|
9176
9212
|
}),
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
'&:nth-of-type(1)': { gridArea: '1/1' },
|
|
9184
|
-
'&:nth-of-type(2)': { gridArea: '1/2' },
|
|
9185
|
-
'&:nth-of-type(3)': { gridArea: '1/3' },
|
|
9186
|
-
'&:nth-of-type(4)': { gridArea: '1/4' },
|
|
9187
|
-
'&:nth-of-type(5)': { gridArea: '1/5' },
|
|
9188
|
-
'&:nth-of-type(6)': { gridArea: '1/6' },
|
|
9213
|
+
height: dimension,
|
|
9214
|
+
minWidth,
|
|
9215
|
+
maxWidth: dimension,
|
|
9216
|
+
width: 'auto',
|
|
9217
|
+
padding: paddingBlock,
|
|
9218
|
+
boxSizing: 'content-box',
|
|
9189
9219
|
})));
|
|
9190
9220
|
return getCss({
|
|
9191
9221
|
'@global': {
|
|
@@ -9205,17 +9235,20 @@ const getComponentCss$z = (hideLabel, state, isDisabled, isLoading, length, them
|
|
|
9205
9235
|
gap: spacingStaticXSmall,
|
|
9206
9236
|
},
|
|
9207
9237
|
wrapper: {
|
|
9238
|
+
position: 'relative',
|
|
9208
9239
|
display: 'grid',
|
|
9209
|
-
gridTemplateColumns: `repeat(${length},
|
|
9240
|
+
gridTemplateColumns: `repeat(${length}, 1fr)`,
|
|
9210
9241
|
justifySelf: 'flex-start',
|
|
9211
|
-
gap
|
|
9242
|
+
gap,
|
|
9212
9243
|
},
|
|
9213
9244
|
...(isLoading && {
|
|
9214
9245
|
spinner: {
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9246
|
+
position: 'absolute',
|
|
9247
|
+
top: '50%',
|
|
9248
|
+
left: '50%',
|
|
9249
|
+
transform: 'translate(-50%, -50%)',
|
|
9250
|
+
width: dimension,
|
|
9251
|
+
height: dimension,
|
|
9219
9252
|
pointerEvents: 'none',
|
|
9220
9253
|
},
|
|
9221
9254
|
}),
|
|
@@ -9231,7 +9264,7 @@ const getComponentCss$z = (hideLabel, state, isDisabled, isLoading, length, them
|
|
|
9231
9264
|
const POPOVER_SAFE_ZONE = 8;
|
|
9232
9265
|
|
|
9233
9266
|
const { canvasTextColor } = getHighContrastColors();
|
|
9234
|
-
const getComponentCss$
|
|
9267
|
+
const getComponentCss$A = (theme) => {
|
|
9235
9268
|
const { hoverColor, backgroundColor, primaryColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
9236
9269
|
const { hoverColor: hoverColorDark, primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
9237
9270
|
const shadowColor = 'rgba(0,0,0,0.3)';
|
|
@@ -9335,10 +9368,10 @@ const getComponentCss$y = (theme) => {
|
|
|
9335
9368
|
});
|
|
9336
9369
|
};
|
|
9337
9370
|
|
|
9338
|
-
const getCheckedSVGBackgroundImage = (fill) => {
|
|
9371
|
+
const getCheckedSVGBackgroundImage$1 = (fill) => {
|
|
9339
9372
|
return getInlineSVGBackgroundImage(`<circle fill="${fill}" cx="12" cy="12" r="6"/>`);
|
|
9340
9373
|
};
|
|
9341
|
-
const getComponentCss$
|
|
9374
|
+
const getComponentCss$z = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
9342
9375
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
9343
9376
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
9344
9377
|
return getCss({
|
|
@@ -9361,16 +9394,16 @@ const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
|
9361
9394
|
// TODO: is it somehow useful possible to make following styles configurable by paramter?
|
|
9362
9395
|
...(!isLoading && {
|
|
9363
9396
|
'&(input:checked)': {
|
|
9364
|
-
backgroundImage: getCheckedSVGBackgroundImage(checkedIconColor),
|
|
9397
|
+
backgroundImage: getCheckedSVGBackgroundImage$1(checkedIconColor),
|
|
9365
9398
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9366
|
-
backgroundImage: getCheckedSVGBackgroundImage(checkedIconColorDark),
|
|
9399
|
+
backgroundImage: getCheckedSVGBackgroundImage$1(checkedIconColorDark),
|
|
9367
9400
|
}),
|
|
9368
9401
|
// This is a workaround for Blink based browsers, which do not reflect the high contrast system colors (e.g.: "Canvas" and "CanvasText") when added to background SVG's.
|
|
9369
9402
|
...(isHighContrastMode &&
|
|
9370
9403
|
getSchemedHighContrastMediaQuery({
|
|
9371
|
-
backgroundImage: getCheckedSVGBackgroundImage('white'),
|
|
9404
|
+
backgroundImage: getCheckedSVGBackgroundImage$1('white'),
|
|
9372
9405
|
}, {
|
|
9373
|
-
backgroundImage: getCheckedSVGBackgroundImage('black'),
|
|
9406
|
+
backgroundImage: getCheckedSVGBackgroundImage$1('black'),
|
|
9374
9407
|
})),
|
|
9375
9408
|
},
|
|
9376
9409
|
}),
|
|
@@ -9419,6 +9452,267 @@ const getComponentCss$x = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
|
9419
9452
|
});
|
|
9420
9453
|
};
|
|
9421
9454
|
|
|
9455
|
+
const cssVarInternalRadioGroupOptionScaling = '--p-internal-radio-group-option-scaling';
|
|
9456
|
+
const getCheckedSVGBackgroundImage = (fill) => {
|
|
9457
|
+
return getInlineSVGBackgroundImage(`<circle fill="${fill}" cx="12" cy="12" r="6"/>`);
|
|
9458
|
+
};
|
|
9459
|
+
const getComponentCss$y = (disabled, loading, state, theme) => {
|
|
9460
|
+
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
9461
|
+
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
9462
|
+
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
9463
|
+
const { formStateColor: formStateColorDark, formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
|
|
9464
|
+
const { canvasTextColor } = getHighContrastColors();
|
|
9465
|
+
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
9466
|
+
// TODO: needs to be extracted into a color function
|
|
9467
|
+
const uncheckedColor = disabledOrLoading ? disabledColor : formStateColor || contrastMediumColor;
|
|
9468
|
+
const uncheckedColorDark = disabledOrLoading ? disabledColorDark : formStateColorDark || contrastMediumColorDark;
|
|
9469
|
+
const uncheckedHoverColor = formStateHoverColor || primaryColor;
|
|
9470
|
+
const uncheckedHoverColorDark = formStateHoverColorDark || primaryColorDark;
|
|
9471
|
+
const checkedColor = isHighContrastMode
|
|
9472
|
+
? canvasTextColor
|
|
9473
|
+
: disabledOrLoading
|
|
9474
|
+
? disabledColor
|
|
9475
|
+
: formStateColor || primaryColor;
|
|
9476
|
+
const checkedColorDark = isHighContrastMode
|
|
9477
|
+
? canvasTextColor
|
|
9478
|
+
: disabledOrLoading
|
|
9479
|
+
? disabledColorDark
|
|
9480
|
+
: formStateColorDark || primaryColorDark;
|
|
9481
|
+
const checkedHoverColor = formStateHoverColor || contrastHighColor;
|
|
9482
|
+
const checkedHoverColorDark = formStateHoverColorDark || contrastHighColorDark;
|
|
9483
|
+
const minDimension = `calc(${SCALING_BASE_VALUE} * 0.75)`;
|
|
9484
|
+
const scalingVar = `var(${cssVarInternalRadioGroupOptionScaling}, 1)`;
|
|
9485
|
+
const dimension = `max(${minDimension}, ${scalingVar} * (${fontLineHeight}))`;
|
|
9486
|
+
const dimensionFull = `calc(${dimension} + ${borderWidthBase} * 2)`; // Calculates the total size of the checkbox including its borders.
|
|
9487
|
+
const minimumTouchTargetSize = '24px'; // Minimum touch target size to comply with accessibility guidelines.
|
|
9488
|
+
const touchTargetSizeDiff = `calc(${minimumTouchTargetSize} - ${dimensionFull})`; // Difference between the minimum touch target size and the radio button full size.
|
|
9489
|
+
const inset = `calc(-${borderWidthBase} - max(0px, ${touchTargetSizeDiff} / 2))`; // Positions the radio button '::before' pseudo-element with a negative offset to align it with the touch target.
|
|
9490
|
+
const paddingInlineStart = `calc(${spacingStaticSmall} - (max(0px, ${touchTargetSizeDiff})))`;
|
|
9491
|
+
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
9492
|
+
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
9493
|
+
const paddingTop = `calc((${dimensionFull} - ${fontLineHeight}) / 2)`; // Vertically centers the radio button label relative to the radio button size.
|
|
9494
|
+
const height = `calc(max(${fontLineHeight}, ${dimensionFull}))`; // Ensures the wrapper height matches either the font's line height or the full size of the radio-group, whichever is larger.
|
|
9495
|
+
return getCss({
|
|
9496
|
+
'@global': {
|
|
9497
|
+
':host': {
|
|
9498
|
+
...addImportantToEachRule({
|
|
9499
|
+
...colorSchemeStyles,
|
|
9500
|
+
...hostHiddenStyles,
|
|
9501
|
+
}),
|
|
9502
|
+
display: 'block',
|
|
9503
|
+
},
|
|
9504
|
+
input: {
|
|
9505
|
+
gridArea: '1/1',
|
|
9506
|
+
borderRadius: '50%',
|
|
9507
|
+
position: 'relative',
|
|
9508
|
+
width: dimension,
|
|
9509
|
+
height: dimension,
|
|
9510
|
+
font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
|
|
9511
|
+
display: 'block',
|
|
9512
|
+
margin: 0,
|
|
9513
|
+
padding: 0,
|
|
9514
|
+
WebkitAppearance: 'none', // iOS safari
|
|
9515
|
+
appearance: 'none',
|
|
9516
|
+
boxSizing: 'content-box',
|
|
9517
|
+
background: `transparent 0% 0% / ${fontLineHeight}`,
|
|
9518
|
+
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
9519
|
+
border: `${borderWidthBase} solid ${uncheckedColor}`,
|
|
9520
|
+
outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style (in case getFocusJssStyle() condition is not matching)
|
|
9521
|
+
...(disabledOrLoading
|
|
9522
|
+
? {
|
|
9523
|
+
pointerEvents: 'none', // to prevent form element becomes clickable/toggleable
|
|
9524
|
+
}
|
|
9525
|
+
: {
|
|
9526
|
+
cursor: 'pointer',
|
|
9527
|
+
}),
|
|
9528
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9529
|
+
borderColor: uncheckedColorDark,
|
|
9530
|
+
}),
|
|
9531
|
+
'&::before': {
|
|
9532
|
+
// Ensures the touch target is at least '24px', even if the radio button is smaller than the minimum touch target size.
|
|
9533
|
+
// This pseudo-element expands the clickable area without affecting the visual size of the radio button itself.
|
|
9534
|
+
content: '""',
|
|
9535
|
+
position: 'absolute',
|
|
9536
|
+
inset,
|
|
9537
|
+
},
|
|
9538
|
+
},
|
|
9539
|
+
'input:checked': {
|
|
9540
|
+
borderColor: checkedColor,
|
|
9541
|
+
backgroundColor: checkedColor,
|
|
9542
|
+
backgroundSize: dimension,
|
|
9543
|
+
backgroundImage: getCheckedSVGBackgroundImage(checkedIconColor),
|
|
9544
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9545
|
+
borderColor: checkedColorDark,
|
|
9546
|
+
backgroundColor: checkedColorDark,
|
|
9547
|
+
backgroundImage: getCheckedSVGBackgroundImage(checkedIconColorDark),
|
|
9548
|
+
}),
|
|
9549
|
+
// This is a workaround for Blink-based browsers, which do not reflect the high contrast system colors (e.g.: "Canvas" and "CanvasText") when added to background SVG's.
|
|
9550
|
+
...(isHighContrastMode &&
|
|
9551
|
+
getSchemedHighContrastMediaQuery({
|
|
9552
|
+
backgroundImage: getCheckedSVGBackgroundImage('white'),
|
|
9553
|
+
}, {
|
|
9554
|
+
backgroundImage: getCheckedSVGBackgroundImage('black'),
|
|
9555
|
+
})),
|
|
9556
|
+
},
|
|
9557
|
+
...(!disabledOrLoading &&
|
|
9558
|
+
!isHighContrastMode &&
|
|
9559
|
+
hoverMediaQuery({
|
|
9560
|
+
'input:hover,label:hover~.wrapper input': {
|
|
9561
|
+
borderColor: uncheckedHoverColor,
|
|
9562
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9563
|
+
borderColor: uncheckedHoverColorDark,
|
|
9564
|
+
}),
|
|
9565
|
+
},
|
|
9566
|
+
'input:checked:hover,label:hover~.wrapper input:checked': {
|
|
9567
|
+
borderColor: checkedHoverColor,
|
|
9568
|
+
backgroundColor: checkedHoverColor,
|
|
9569
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9570
|
+
borderColor: checkedHoverColorDark,
|
|
9571
|
+
backgroundColor: checkedHoverColorDark,
|
|
9572
|
+
}),
|
|
9573
|
+
},
|
|
9574
|
+
'label:hover~.wrapper input': supportsChromiumMediaQuery({
|
|
9575
|
+
transition: 'unset', // Fixes a chrome bug where transition properties are stuck on hover
|
|
9576
|
+
}),
|
|
9577
|
+
})),
|
|
9578
|
+
...(!disabled && {
|
|
9579
|
+
'input::-moz-focus-inner': {
|
|
9580
|
+
border: 0, // reset ua-style (for FF)
|
|
9581
|
+
},
|
|
9582
|
+
'input:focus': {
|
|
9583
|
+
outline: 0, // reset ua-style (for older browsers)
|
|
9584
|
+
},
|
|
9585
|
+
'input:focus-visible': {
|
|
9586
|
+
outline: `${borderWidthBase} solid ${focusColor}`,
|
|
9587
|
+
outlineOffset: '2px',
|
|
9588
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9589
|
+
outlineColor: focusColorDark,
|
|
9590
|
+
}),
|
|
9591
|
+
},
|
|
9592
|
+
}),
|
|
9593
|
+
...preventFoucOfNestedElementsStyles,
|
|
9594
|
+
},
|
|
9595
|
+
root: {
|
|
9596
|
+
display: 'grid',
|
|
9597
|
+
gridTemplateColumns: 'auto minmax(0, 1fr)',
|
|
9598
|
+
rowGap: spacingStaticXSmall,
|
|
9599
|
+
},
|
|
9600
|
+
wrapper: {
|
|
9601
|
+
...textSmallStyle,
|
|
9602
|
+
display: 'grid',
|
|
9603
|
+
gridArea: '1/1',
|
|
9604
|
+
minWidth: minimumTouchTargetSize,
|
|
9605
|
+
minHeight: minimumTouchTargetSize,
|
|
9606
|
+
justifyContent: 'center',
|
|
9607
|
+
alignItems: 'center',
|
|
9608
|
+
alignSelf: 'flex-start', // in case label becomes multiline
|
|
9609
|
+
...(isDisabledOrLoading(disabled, loading) && {
|
|
9610
|
+
cursor: 'not-allowed',
|
|
9611
|
+
}),
|
|
9612
|
+
height,
|
|
9613
|
+
},
|
|
9614
|
+
...(loading && {
|
|
9615
|
+
spinner: {
|
|
9616
|
+
position: 'relative', // ensure correct stacking, can be removed as soon as focus for input is handled with outline
|
|
9617
|
+
gridArea: '1/1',
|
|
9618
|
+
placeSelf: 'center',
|
|
9619
|
+
width: dimension,
|
|
9620
|
+
height: dimension,
|
|
9621
|
+
font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
|
|
9622
|
+
pointerEvents: 'none',
|
|
9623
|
+
},
|
|
9624
|
+
}),
|
|
9625
|
+
// .label / .required
|
|
9626
|
+
...getFunctionalComponentLabelStyles(disabled || loading, false, theme, {
|
|
9627
|
+
gridArea: '1/2',
|
|
9628
|
+
}, {
|
|
9629
|
+
paddingTop,
|
|
9630
|
+
paddingInlineStart,
|
|
9631
|
+
}),
|
|
9632
|
+
// .loading
|
|
9633
|
+
...getFunctionalComponentLoadingMessageStyles(),
|
|
9634
|
+
});
|
|
9635
|
+
};
|
|
9636
|
+
|
|
9637
|
+
const cssVarInternalRadioGroupScaling = '--p-internal-radio-group-scaling';
|
|
9638
|
+
const groupRadioGroupDirectionJssStyles = {
|
|
9639
|
+
column: {
|
|
9640
|
+
flexFlow: 'column nowrap',
|
|
9641
|
+
alignItems: 'stretch',
|
|
9642
|
+
},
|
|
9643
|
+
row: {
|
|
9644
|
+
flexFlow: 'row wrap',
|
|
9645
|
+
alignItems: 'start',
|
|
9646
|
+
},
|
|
9647
|
+
};
|
|
9648
|
+
const getRadioGroupDirectionJssStyles = (direction) => {
|
|
9649
|
+
return groupRadioGroupDirectionJssStyles[direction];
|
|
9650
|
+
};
|
|
9651
|
+
const getComponentCss$x = (disabled, loading, hideLabel, state, compact, direction, theme) => {
|
|
9652
|
+
const scalingVar = `var(${cssVarInternalRadioGroupScaling}, ${compact ? 0.5 : 1})`;
|
|
9653
|
+
const { primaryColor } = getThemedColors(theme);
|
|
9654
|
+
const { primaryColor: primaryColorDark } = getThemedColors('dark');
|
|
9655
|
+
const { formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
9656
|
+
const { formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
|
|
9657
|
+
const hoverStyles = {
|
|
9658
|
+
borderColor: formStateHoverColor || primaryColor,
|
|
9659
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9660
|
+
borderColor: formStateHoverColorDark || primaryColorDark,
|
|
9661
|
+
}),
|
|
9662
|
+
};
|
|
9663
|
+
const dimension = `max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px))`;
|
|
9664
|
+
const columnGap = `max(${spacingStaticSmall}, ${scalingVar} * ${spacingStaticMedium})`;
|
|
9665
|
+
const rowGap = `max(${spacingStaticXSmall}, ${scalingVar} * ${spacingStaticSmall})`;
|
|
9666
|
+
return getCss({
|
|
9667
|
+
'@global': {
|
|
9668
|
+
':host': {
|
|
9669
|
+
...addImportantToEachRule({
|
|
9670
|
+
...colorSchemeStyles,
|
|
9671
|
+
...hostHiddenStyles,
|
|
9672
|
+
}),
|
|
9673
|
+
[`${cssVarInternalRadioGroupOptionScaling}`]: scalingVar,
|
|
9674
|
+
},
|
|
9675
|
+
...preventFoucOfNestedElementsStyles,
|
|
9676
|
+
},
|
|
9677
|
+
root: {
|
|
9678
|
+
display: 'grid',
|
|
9679
|
+
justifySelf: 'flex-start',
|
|
9680
|
+
rowGap: spacingStaticXSmall,
|
|
9681
|
+
},
|
|
9682
|
+
wrapper: {
|
|
9683
|
+
alignItems: 'start',
|
|
9684
|
+
position: 'relative',
|
|
9685
|
+
display: 'flex',
|
|
9686
|
+
...buildResponsiveStyles(direction, getRadioGroupDirectionJssStyles),
|
|
9687
|
+
columnGap,
|
|
9688
|
+
rowGap,
|
|
9689
|
+
},
|
|
9690
|
+
...(loading && {
|
|
9691
|
+
spinner: {
|
|
9692
|
+
position: 'absolute',
|
|
9693
|
+
top: '50%',
|
|
9694
|
+
left: '50%',
|
|
9695
|
+
transform: 'translate(-50%, -50%)',
|
|
9696
|
+
width: dimension,
|
|
9697
|
+
height: dimension,
|
|
9698
|
+
pointerEvents: 'none',
|
|
9699
|
+
},
|
|
9700
|
+
}),
|
|
9701
|
+
// .label / .required
|
|
9702
|
+
...getFunctionalComponentLabelStyles(disabled, hideLabel, theme, !disabled && {
|
|
9703
|
+
...hoverMediaQuery({
|
|
9704
|
+
'&:hover~.wrapper': hoverStyles,
|
|
9705
|
+
}),
|
|
9706
|
+
cursor: 'inherit', // the label is not clickable
|
|
9707
|
+
}),
|
|
9708
|
+
// .message
|
|
9709
|
+
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
9710
|
+
// .loading
|
|
9711
|
+
...getFunctionalComponentLoadingMessageStyles(),
|
|
9712
|
+
'sr-only': getHiddenTextJssStyle(),
|
|
9713
|
+
});
|
|
9714
|
+
};
|
|
9715
|
+
|
|
9422
9716
|
const prevNextWrapperWidth = `calc(${fontLineHeight} + 24px)`;
|
|
9423
9717
|
const getComponentCss$w = (isNextHidden, isPrevHidden, alignScrollIndicator, hasScrollbar, theme) => {
|
|
9424
9718
|
const actionPrevNextStyles = {
|
|
@@ -11522,4 +11816,4 @@ const getComponentCss = (size, theme) => {
|
|
|
11522
11816
|
});
|
|
11523
11817
|
};
|
|
11524
11818
|
|
|
11525
|
-
export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$
|
|
11819
|
+
export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$1n as getAccordionCss, getComponentCss$1m as getBannerCss, getComponentCss$1i as getButtonCss, getComponentCss$1l as getButtonGroupCss, getComponentCss$1k as getButtonPureCss, getComponentCss$1j as getButtonTileCss, getComponentCss$1h as getCanvasCss, getComponentCss$1g as getCarouselCss, getComponentCss$1e as getCheckboxCss, getComponentCss$1f as getCheckboxWrapperCss, getComponentCss$1d as getContentWrapperCss, getComponentCss$1c as getCrestCss, getComponentCss$1b as getDisplayCss, getComponentCss$1a as getDividerCss, getComponentCss$19 as getDrilldownCss, getComponentCss$18 as getDrilldownItemCss, getComponentCss$17 as getDrilldownLinkCss, getComponentCss$15 as getFieldsetCss, getComponentCss$16 as getFieldsetWrapperCss, getComponentCss$14 as getFlagCss, getComponentCss$12 as getFlexCss, getComponentCss$13 as getFlexItemCss, getComponentCss$11 as getFlyoutCss, getFunctionalComponentInputBaseStyles, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentNoResultsOptionStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$$ as getGridCss, getComponentCss$10 as getGridItemCss, getComponentCss$_ as getHeadingCss, getComponentCss$Z as getHeadlineCss, getComponentCss$Y as getIconCss, getComponentCss$X as getInlineNotificationCss, getComponentCss$W as getInputDateCss, getComponentCss$V as getInputEmailCss, getComponentCss$U as getInputNumberCss, getComponentCss$T as getInputPasswordCss, getComponentCss$S as getInputSearchCss, getComponentCss$R as getInputTelCss, getComponentCss$Q as getInputTextCss, getComponentCss$P as getInputTimeCss, getComponentCss$O as getInputUrlCss, getComponentCss$M as getLinkCss, getComponentCss$N as getLinkPureCss, getComponentCss$M as getLinkSocialCss, getComponentCss$J as getLinkTileCss, getComponentCss$L as getLinkTileModelSignatureCss, getComponentCss$K as getLinkTileProductCss, getComponentCss$I as getMarqueCss, getComponentCss$H as getModalCss, getComponentCss$G as getModelSignatureCss, getComponentCss$D as getMultiSelectCss, getComponentCss$F as getMultiSelectOptionCss, getComponentCss$E as getOptgroupCss, getComponentCss$C as getPaginationCss, getComponentCss$B as getPinCodeCss, getComponentCss$A as getPopoverCss, getComponentCss$z as getRadioButtonWrapperCss, getComponentCss$x as getRadioGroupCss, getComponentCss$y as getRadioGroupOptionCss, getScalingVar$1 as getScalingVar, getComponentCss$w as getScrollerCss, getComponentCss$u as getSegmentedControlCss, getComponentCss$v as getSegmentedControlItemCss, getComponentCss$q as getSelectCss, getComponentCss$r as getSelectOptionCss, getComponentCss$s as getSelectWrapperCss, getComponentCss$t as getSelectWrapperDropdownCss, getComponentCss$p as getSheetCss, getComponentCss$o as getSpinnerCss, getComponentCss$m as getStepperHorizontalCss, getComponentCss$n as getStepperHorizontalItemCss, getComponentCss$l as getSwitchCss, getComponentCss$k as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$j as getTableCss, getComponentCss$h as getTableHeadCellCss, getComponentCss$f as getTableHeadCss, getComponentCss$g as getTableHeadRowCss, getComponentCss$e as getTableRowCss, getComponentCss$d as getTabsBarCss, getComponentCss$b as getTabsCss, getComponentCss$c as getTabsItemCss, getComponentCss$9 as getTagCss, getComponentCss$a as getTagDismissibleCss, getComponentCss$5 as getTextCss, getComponentCss$8 as getTextFieldWrapperCss, getComponentCss$7 as getTextListCss, getComponentCss$6 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$4 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|