@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
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getLinkCss as getComponentCss$
|
|
6
|
+
import { getLinkCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -16,7 +16,7 @@ class DSRLinkSocial extends Component {
|
|
|
16
16
|
render() {
|
|
17
17
|
splitChildren(this.props.children);
|
|
18
18
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
19
|
-
const style = minifyCss(getComponentCss$
|
|
19
|
+
const style = minifyCss(getComponentCss$M(this.props.icon, this.props.iconSource, 'primary', this.props.hideLabel, !this.props.href, this.props.compact, this.props.theme));
|
|
20
20
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
21
21
|
href: this.props.href,
|
|
22
22
|
target: this.props.target,
|
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getLinkTileModelSignatureCss as getComponentCss$
|
|
6
|
+
import { getLinkTileModelSignatureCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { PModelSignature } from '../components/model-signature.wrapper.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -34,7 +34,7 @@ class DSRLinkTileModelSignature extends Component {
|
|
|
34
34
|
tabIndex: -1,
|
|
35
35
|
'aria-hidden': 'true',
|
|
36
36
|
};
|
|
37
|
-
const style = minifyCss(getComponentCss$
|
|
37
|
+
const style = minifyCss(getComponentCss$L(this.props.aspectRatio, this.props.weight, this.props.linkDirection, !!this.props.description));
|
|
38
38
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("a", { ...overlayLinkProps }), jsxs("div", { className: "header", children: [jsx(PModelSignature, { theme: "dark", model: this.props.model }), jsx("slot", { name: "header" })] }), jsx("div", { className: "media", children: jsx("slot", {}) }), jsxs("div", { className: "footer", children: [jsx(this.props.headingTag, { children: this.props.heading }), this.props.description && jsx("p", { children: this.props.description }), jsxs("div", { className: "link-group", role: "group", children: [jsx("slot", { name: "primary" }), jsx("slot", { name: "secondary" })] })] })] })] }), manipulatedChildren] }));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getLinkTileProductCss as getComponentCss$
|
|
6
|
+
import { getLinkTileProductCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { anchorSlot, headerSlot } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
9
9
|
|
|
@@ -24,7 +24,7 @@ class DSRLinkTileProduct extends Component {
|
|
|
24
24
|
const headingId = 'heading';
|
|
25
25
|
const priceId = 'price';
|
|
26
26
|
const descriptionId = 'description';
|
|
27
|
-
const style = minifyCss(getComponentCss$
|
|
27
|
+
const style = minifyCss(getComponentCss$K(this.props.likeButton, !this.props.href, !!this.props.priceOriginal, !!this.props.description, this.props.aspectRatio, this.props.theme));
|
|
28
28
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [this.props.href ? (jsx("a", { className: "anchor", href: this.props.href, target: this.props.target, rel: this.props.rel, "aria-labelledby": `${headingId} ${priceId}`, "aria-describedby": `${headerId} ${descriptionId}` })) : (jsx("slot", { name: anchorSlot })), jsxs("div", { id: headerId, className: "header", children: [jsx("slot", { name: headerSlot }), this.props.likeButton && (jsx(PButtonPure, { className: "button", type: "button", icon: this.props.liked ? 'heart-filled' : 'heart', hideLabel: true, theme: this.props.theme, children: this.props.liked ? 'Remove from wishlist' : 'Add to wishlist' }))] }), jsx("div", { className: "image", children: jsx("slot", {}) }), jsxs("div", { className: "wrapper", children: [this.props.heading && (jsx("h3", { id: headingId, className: "heading", children: this.props.heading })), this.props.price && (jsx("p", { id: priceId, className: "price", children: this.props.priceOriginal ? (jsxs(Fragment, { children: [jsx("span", { className: "sr-only", children: "sale price" }), this.props.price, jsx("span", { className: "sr-only", children: "original price" }), jsx("s", { children: this.props.priceOriginal })] })) : (this.props.price) })), this.props.description && (jsx("p", { id: descriptionId, className: "description", children: this.props.description }))] })] })] }), this.props.children] }));
|
|
29
29
|
}
|
|
30
30
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs
CHANGED
|
@@ -3,16 +3,18 @@ import { Component, createElement } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getLinkTileCss as getComponentCss$
|
|
6
|
+
import { getLinkTileCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { PLink } from '../components/link.wrapper.mjs';
|
|
8
8
|
import { PLinkPure } from '../components/link-pure.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @slot {"name": "header", "description": "Renders a header section above the content area." }
|
|
12
12
|
* @slot {"name": "", "description": "Default slot for the img or picture tag." }
|
|
13
|
+
* @slot {"name": "footer", "description": "Renders a footer section below the description." }
|
|
13
14
|
*/
|
|
14
15
|
class DSRLinkTile extends Component {
|
|
15
16
|
host;
|
|
17
|
+
hasFooterSlot = false;
|
|
16
18
|
render() {
|
|
17
19
|
splitChildren(this.props.children);
|
|
18
20
|
const linkProps = {
|
|
@@ -28,8 +30,8 @@ class DSRLinkTile extends Component {
|
|
|
28
30
|
};
|
|
29
31
|
const link = (createElement(PLink, { ...sharedLinkProps, ...linkProps, key: "link-or-button", className: "link-or-button" }, this.props.label));
|
|
30
32
|
const linkPure = (createElement(PLinkPure, { ...sharedLinkProps, ...linkProps, key: "link-or-button-pure", className: "link-or-button-pure", hideLabel: true, icon: "arrow-right" }, this.props.label));
|
|
31
|
-
const style = minifyCss(getComponentCss$
|
|
32
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("a", { ...sharedLinkProps, tabIndex: -1, "aria-hidden": "true" }), jsx("slot", { name: "header" }), jsx("div", { className: "media", children: jsx("slot", {}) }), jsxs("div", { className: "footer", children: [jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? linkPure : link) : [linkPure, link]] })] })] }), this.props.children] }));
|
|
33
|
+
const style = minifyCss(getComponentCss$J(this.props.aspectRatio, this.props.size, this.props.weight, this.props.background, this.props.align, this.props.compact, this.props.gradient, this.props.hasFooterSlot));
|
|
34
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("a", { ...sharedLinkProps, tabIndex: -1, "aria-hidden": "true" }), jsx("slot", { name: "header" }), jsx("div", { className: "media", children: jsx("slot", {}) }), jsxs("div", { className: "footer", children: [jsx("p", { children: this.props.description }), jsx("slot", { name: "footer" }), typeof this.props.compact === 'boolean' ? (this.props.compact ? linkPure : link) : [linkPure, link]] })] })] }), this.props.children] }));
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getLinkCss as getComponentCss$
|
|
6
|
+
import { getLinkCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ class DSRLink extends Component {
|
|
|
15
15
|
render() {
|
|
16
16
|
splitChildren(this.props.children);
|
|
17
17
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
18
|
-
const style = minifyCss(getComponentCss$
|
|
18
|
+
const style = minifyCss(getComponentCss$M(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, !this.props.href, this.props.compact, this.props.theme));
|
|
19
19
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
20
20
|
href: this.props.href,
|
|
21
21
|
target: this.props.target,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
|
-
import { getMarqueCss as getComponentCss$
|
|
4
|
+
import { getMarqueCss as getComponentCss$I } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
5
|
import { getInnerManifest, buildSrcSet, buildImgSrc, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-wordmark" instead. */
|
|
@@ -21,7 +21,7 @@ class DSRMarque extends Component {
|
|
|
21
21
|
jsx("source", { srcSet: buildSrcSet(innerManifest, this.props.size, 'webp'), type: "image/webp" }, "webp"),
|
|
22
22
|
jsx("source", { srcSet: buildSrcSet(innerManifest, this.props.size, 'png'), type: "image/png" }, "png"),
|
|
23
23
|
], jsx("img", { src: buildImgSrc(innerManifest), alt: "Porsche" })] }));
|
|
24
|
-
const style = minifyCss(getComponentCss$
|
|
24
|
+
const style = minifyCss(getComponentCss$I(this.props.size));
|
|
25
25
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (picture) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: picture })) })] }) }));
|
|
26
26
|
}
|
|
27
27
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getModalCss as getComponentCss$
|
|
6
|
+
import { getModalCss as getComponentCss$H } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@ class DSRModal extends Component {
|
|
|
32
32
|
const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
33
33
|
// TODO: why do we validate only when opened?
|
|
34
34
|
if (this.props.open) ;
|
|
35
|
-
const style = minifyCss(getComponentCss$
|
|
35
|
+
const style = minifyCss(getComponentCss$H(this.props.open, this.props.backdrop, this.props.fullscreen, hasDismissButton, hasHeader, hasFooter, this.props.theme));
|
|
36
36
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { inert: !this.props.open, tabIndex: -1, ...parseAndGetAriaAttributes({
|
|
37
37
|
'aria-modal': true,
|
|
38
38
|
...(hasHeader && { 'aria-label': this.props.ariaLabel }),
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
-
import { getModelSignatureCss as getComponentCss$
|
|
5
|
+
import { getModelSignatureCss as getComponentCss$G } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { getSvgUrl } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -14,7 +14,7 @@ class DSRModelSignature extends Component {
|
|
|
14
14
|
splitChildren(this.props.children);
|
|
15
15
|
const fetchPriority = this.props.fetchPriority !== 'auto' ? this.props.fetchPriority : null;
|
|
16
16
|
const loading = this.props.lazy === true ? 'lazy' : null;
|
|
17
|
-
const style = minifyCss(getComponentCss$
|
|
17
|
+
const style = minifyCss(getComponentCss$G(this.props.model, this.props.safeZone, this.props.size, this.props.color, this.props.theme));
|
|
18
18
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx("slot", {}), jsx("img", { fetchPriority: fetchPriority, loading: loading, src: getSvgUrl(this.props.model), alt: this.props.model })] })] }), this.props.children] }));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
-
import { getMultiSelectOptionCss as getComponentCss$
|
|
5
|
+
import { getMultiSelectOptionCss as getComponentCss$F } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @slot {"name": "", "description": "Default slot for the option text." }
|
|
@@ -13,7 +13,7 @@ class DSRMultiSelectOption extends Component {
|
|
|
13
13
|
splitChildren(this.props.children);
|
|
14
14
|
const { theme = 'light', selected: isSelected, highlighted, hidden } = this.props;
|
|
15
15
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
16
|
-
const style = minifyCss(getComponentCss$
|
|
16
|
+
const style = minifyCss(getComponentCss$F(theme, isDisabled, isSelected));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } })
|
|
18
18
|
// TODO: get rid of ARIA sprouting and use `elementInternals` API when AXE-CORE supports it: https://github.com/dequelabs/axe-core/issues/4259
|
|
19
19
|
, "// TODO: get rid of ARIA sprouting and use `elementInternals` API when AXE-CORE supports it: https://github.com/dequelabs/axe-core/issues/4259", jsx(Fragment, { children: jsxs("div", { className: Object.entries({
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getMultiSelectCss as getComponentCss$
|
|
6
|
+
import { getMultiSelectCss as getComponentCss$D } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getHasNativePopoverSupport, getSelectedOptionValues, getComboboxAriaAttributes, getSelectedOptionsString, labelId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
@@ -64,8 +64,8 @@ class DSRMultiSelect extends Component {
|
|
|
64
64
|
const descriptionId = this.props.description ? 'description' : undefined;
|
|
65
65
|
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
66
66
|
const ariaDescribedBy = [descriptionId, selectMessageId].filter(Boolean).join(' ');
|
|
67
|
-
const style = minifyCss(getComponentCss$
|
|
68
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [jsx("span", { children: getSelectedOptionsString(otherChildren) }), this.props.currentValue && (jsx(PButtonPure, { type: "button", className: "button", icon: "close", hideLabel: true, theme: this.props.theme, disabled: this.props.disabled, children: "Reset selection" })), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme }), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, "aria-multiselectable": "true", onPointerMove: this.props.onPointerMove, children: [!this.props.hasFilterResults && jsx(NoResultsOption, {}), jsx("slot", {})] })] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
67
|
+
const style = minifyCss(getComponentCss$D(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact, this.props.theme));
|
|
68
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, onBlur: this.props.onComboBlur, children: [jsx("span", { children: getSelectedOptionsString(otherChildren) }), this.props.currentValue && (jsx(PButtonPure, { type: "button", className: "button", icon: "close", hideLabel: true, theme: this.props.theme, disabled: this.props.disabled, children: "Reset selection" })), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, onBlur: (e) => e.stopPropagation(), role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme, onBlur: (e) => e.stopPropagation() }), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, "aria-multiselectable": "true", onPointerMove: this.props.onPointerMove, children: [!this.props.hasFilterResults && jsx(NoResultsOption, {}), jsx("slot", {})] })] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
-
import { getOptgroupCss as getComponentCss$
|
|
5
|
+
import { getOptgroupCss as getComponentCss$E } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @slot {"name": "", "description": "Default slot for the optgroup content." }
|
|
@@ -13,7 +13,7 @@ class DSROptgroup extends Component {
|
|
|
13
13
|
splitChildren(this.props.children);
|
|
14
14
|
const { theme = 'light', hidden } = this.props;
|
|
15
15
|
const labelId = 'label';
|
|
16
|
-
const style = minifyCss(getComponentCss$
|
|
16
|
+
const style = minifyCss(getComponentCss$E(this.props.disabled, theme));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "group", "aria-disabled": this.props.disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, "aria-labelledby": labelId, children: [jsx("span", { id: labelId, role: "presentation", children: this.props.label }), jsx("slot", {})] }) })] }), this.props.children] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
-
import { getPaginationCss as getComponentCss$
|
|
5
|
+
import { getPaginationCss as getComponentCss$C } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { getTotalPages, createPaginationItems, getCurrentActivePage, ItemType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ class DSRPagination extends Component {
|
|
|
18
18
|
pageTotal,
|
|
19
19
|
showLastPage: this.props.showLastPage,
|
|
20
20
|
});
|
|
21
|
-
const style = minifyCss(getComponentCss$
|
|
21
|
+
const style = minifyCss(getComponentCss$C(this.props.activePage, pageTotal, this.props.showLastPage, this.props.theme));
|
|
22
22
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("nav", { "aria-label": this.props.allyLabel || this.props.intl.root, children: jsx("ul", { children: paginationItems.map((pageModel, index) => {
|
|
23
23
|
const { type, isActive, value, isBeforeCurrent, isAfterCurrent, isBeforeBeforeCurrent, isAfterAfterCurrent, } = pageModel;
|
|
24
24
|
const spanProps = {
|
|
@@ -45,6 +45,8 @@ class DSRPagination extends Component {
|
|
|
45
45
|
}).map(([key, value]) => value && key).filter(Boolean).join(' '), children: jsx("span", { ...spanProps, tabIndex: 0, "aria-label": `${this.props.allyLabelPage || this.props.intl.page} ${value}`, "aria-current": isActive ? 'page' : null, children: value }) }, value));
|
|
46
46
|
case ItemType.NEXT:
|
|
47
47
|
return (jsx("li", { className: "next", children: jsx("span", { ...spanProps, "aria-label": this.props.allyLabelNext || this.props.intl.next, "aria-disabled": isActive ? null : 'true', children: jsx(PIcon, { ...iconProps, name: "arrow-right" }) }) }, "next"));
|
|
48
|
+
default:
|
|
49
|
+
return null;
|
|
48
50
|
}
|
|
49
51
|
}) }) })] }) }));
|
|
50
52
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getPinCodeCss as getComponentCss$
|
|
6
|
+
import { getPinCodeCss as getComponentCss$B } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { labelId, descriptionId, isCurrentInput } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { LoadingMessage } from './loading-message.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
@@ -37,9 +37,9 @@ class DSRPinCode extends Component {
|
|
|
37
37
|
// reset array of input elements
|
|
38
38
|
this.inputElements = [];
|
|
39
39
|
const currentInputId = 'current-input';
|
|
40
|
-
const style = minifyCss(getComponentCss$
|
|
40
|
+
const style = minifyCss(getComponentCss$B(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.length, this.props.compact, this.props.theme));
|
|
41
41
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: currentInputId, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [Array.from(new Array(this.props.length), (_, index) => (jsx("input", { name: this.props.name, form: this.props.form, ...(isCurrentInput(index, this.props.value, this.props.length) && { id: currentInputId }), type: this.props.type === 'number' ? 'text' : this.props.type, "aria-label": `${index + 1}-${this.props.length}`, "aria-describedby": `${labelId} ${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading ? 'true' : null, autoComplete: "one-time-code", pattern: "\\d*", inputMode: "numeric" // get numeric keyboard on mobile
|
|
42
|
-
, defaultValue: this.props.value[index] === ' ' ? null : this.props.value[index], disabled: this.props.disabled, required: this.props.required }, index))), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
42
|
+
, defaultValue: this.props.value[index] === ' ' ? null : this.props.value[index], disabled: this.props.disabled, required: this.props.required, onBlur: this.props.onInputBlur }, index))), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getPopoverCss as getComponentCss$
|
|
6
|
+
import { getPopoverCss as getComponentCss$A } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getHasNativePopoverSupport, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
@@ -25,7 +25,7 @@ class DSRPopover extends Component {
|
|
|
25
25
|
render() {
|
|
26
26
|
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
27
27
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
28
|
-
const style = minifyCss(getComponentCss$
|
|
28
|
+
const style = minifyCss(getComponentCss$A(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
|
|
29
29
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("slot", { name: "button" })) : (jsxs("button", { type: "button", ...parseAndGetAriaAttributes({
|
|
30
30
|
...parseAndGetAriaAttributes(this.props.aria),
|
|
31
31
|
...{ 'aria-expanded': this.props.isOpen },
|
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
-
import { getRadioButtonWrapperCss as getComponentCss$
|
|
6
|
+
import { getRadioButtonWrapperCss as getComponentCss$z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { LoadingMessage } from './loading-message.mjs';
|
|
8
8
|
import { StateMessage } from './state-message.mjs';
|
|
9
9
|
import { LegacyLabel } from './legacy-label.mjs';
|
|
@@ -13,6 +13,8 @@ import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
|
13
13
|
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
|
|
14
14
|
* @slot {"name": "", "description": "Default slot for the input." }
|
|
15
15
|
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
|
|
16
|
+
*
|
|
17
|
+
* @deprecated since v3.30.0, will be removed with next major release. Please use `p-radio-group` instead.
|
|
16
18
|
*/
|
|
17
19
|
class DSRRadioButtonWrapper extends Component {
|
|
18
20
|
host;
|
|
@@ -22,7 +24,7 @@ class DSRRadioButtonWrapper extends Component {
|
|
|
22
24
|
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
23
25
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
24
26
|
const isLoading = this.props.loading && !(typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && (otherChildren[0]?.props.checked || otherChildren[0]?.props.defaultChecked)); // spinner is only displayed when radio is not checked already
|
|
25
|
-
const style = minifyCss(getComponentCss$
|
|
27
|
+
const style = minifyCss(getComponentCss$z(this.props.hideLabel, this.props.state, disabled, isLoading, this.props.theme));
|
|
26
28
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, isLoading: isLoading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), isLoading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: isLoading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
27
29
|
}
|
|
28
30
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import '../../provider.mjs';
|
|
4
|
+
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
+
import { getRadioGroupOptionCss as getComponentCss$y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { descriptionId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
|
+
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
8
|
+
import { Label } from './label.mjs';
|
|
9
|
+
import { messageId } from './state-message.mjs';
|
|
10
|
+
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
11
|
+
|
|
12
|
+
class DSRRadioGroupOption extends Component {
|
|
13
|
+
host;
|
|
14
|
+
initialLoading = false;
|
|
15
|
+
inputElement;
|
|
16
|
+
render() {
|
|
17
|
+
const { theme = 'light', selected: isSelected, name, state } = this.props;
|
|
18
|
+
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
19
|
+
const isOptionLoading = this.props.loading && !isSelected;
|
|
20
|
+
const isLoading = isOptionLoading || this.props.loadingParent;
|
|
21
|
+
const id = 'radio-group-option';
|
|
22
|
+
const style = minifyCss(getComponentCss$y(isDisabled, isLoading, state, theme));
|
|
23
|
+
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label, hasDescription: false, host: null, label: this.props.label, htmlFor: id, isDisabled: isDisabled, isLoading: isLoading, stopClickPropagation: true }), jsxs("div", { className: "wrapper", children: [jsx("input", { tabIndex: isSelected && !isDisabled ? 0 : -1, id: id, type: "radio", name: name, checked: isSelected, disabled: isDisabled || isLoading, value: this.props.value, onClick: (e) => {
|
|
24
|
+
e.stopPropagation();
|
|
25
|
+
e.stopImmediatePropagation();
|
|
26
|
+
}, onBlur: this.props.onBlur, "aria-describedby": isLoading ? loadingId : `${descriptionId} ${messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": isDisabled || isLoading ? 'true' : null }), isOptionLoading && !this.props.loadingParent && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" }))] }), !this.props.loadingParent && (jsx(LoadingMessage, { loading: isOptionLoading, initialLoading: this.props.initialLoading }))] }) })] }) }));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { DSRRadioGroupOption };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import '../../provider.mjs';
|
|
4
|
+
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
|
+
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
|
+
import { getRadioGroupCss as getComponentCss$x } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
+
import { LoadingMessage } from './loading-message.mjs';
|
|
8
|
+
import { Label } from './label.mjs';
|
|
9
|
+
import { StateMessage } from './state-message.mjs';
|
|
10
|
+
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
14
|
+
* @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
15
|
+
* @slot {"name": "", "description": "Default slot for the p-radio-group-option tags." }
|
|
16
|
+
* @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed."}
|
|
17
|
+
*/
|
|
18
|
+
class DSRRadioGroup extends Component {
|
|
19
|
+
host;
|
|
20
|
+
// The "name" property is reflected as an attribute to ensure compatibility with native form submission.
|
|
21
|
+
// In the React wrapper, all props are synced as properties on the element ref, so reflecting "name" as an attribute ensures it is properly handled in the form submission process.
|
|
22
|
+
internals;
|
|
23
|
+
initialLoading = false;
|
|
24
|
+
defaultValue;
|
|
25
|
+
radioGroupOptions = [];
|
|
26
|
+
preventOptionUpdate = false; // Used to prevent value watcher from updating options when options are already updated
|
|
27
|
+
formResetCallback() {
|
|
28
|
+
// triggers value watcher
|
|
29
|
+
}
|
|
30
|
+
formDisabledCallback() {
|
|
31
|
+
}
|
|
32
|
+
formStateRestoreCallback() {
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
36
|
+
const id = 'radio-group';
|
|
37
|
+
const style = minifyCss(getComponentCss$x(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.direction, this.props.theme));
|
|
38
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: id, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", role: "radiogroup", "aria-labelledby": id, children: [jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { DSRRadioGroup };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -56,7 +56,7 @@ class DSRSelect extends Component {
|
|
|
56
56
|
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
57
57
|
const ariaDescribedBy = [descriptionId, selectMessageId].filter(Boolean).join(' ');
|
|
58
58
|
const style = minifyCss(getComponentCss$q(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact, this.props.theme));
|
|
59
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [this.props.slottedImagePath && jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: getSelectedOptionString(otherChildren) }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [this.props.filter && (jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme })), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, onPointerMove: this.props.onPointerMove, children: [this.props.filter && !this.props.hasFilterResults && jsx(NoResultsOption, {}), jsx("slot", {})] })] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
59
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, onBlur: this.props.onComboBlur, children: [this.props.slottedImagePath && jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: getSelectedOptionString(otherChildren) }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsxs("div", { id: popoverId, popover: "manual", tabIndex: -1, onBlur: (e) => e.stopPropagation(), role: "dialog", "aria-label": this.props.label, "aria-hidden": this.props.isOpen ? null : 'true', children: [this.props.filter && (jsx(PInputSearch, { className: "filter", name: "filter", label: "Filter options", hideLabel: true, autoComplete: "off", clear: true, indicator: true, compact: true, theme: this.props.theme, onBlur: (e) => e.stopPropagation() })), jsxs("div", { className: "options", role: "listbox", "aria-label": this.props.label, onPointerMove: this.props.onPointerMove, children: [this.props.filter && !this.props.hasFilterResults && jsx(NoResultsOption, {}), jsx("slot", {})] })] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
60
60
|
}
|
|
61
61
|
getSelectedOptionImagePath = (options) => {
|
|
62
62
|
return (options
|
|
@@ -53,6 +53,8 @@ export { PPagination } from './lib/components/pagination.wrapper.mjs';
|
|
|
53
53
|
export { PPinCode } from './lib/components/pin-code.wrapper.mjs';
|
|
54
54
|
export { PPopover } from './lib/components/popover.wrapper.mjs';
|
|
55
55
|
export { PRadioButtonWrapper } from './lib/components/radio-button-wrapper.wrapper.mjs';
|
|
56
|
+
export { PRadioGroup } from './lib/components/radio-group.wrapper.mjs';
|
|
57
|
+
export { PRadioGroupOption } from './lib/components/radio-group-option.wrapper.mjs';
|
|
56
58
|
export { PScroller } from './lib/components/scroller.wrapper.mjs';
|
|
57
59
|
export { PSegmentedControl } from './lib/components/segmented-control.wrapper.mjs';
|
|
58
60
|
export { PSegmentedControlItem } from './lib/components/segmented-control-item.wrapper.mjs';
|
|
@@ -42,7 +42,7 @@ export type PAccordionProps = BaseProps & {
|
|
|
42
42
|
*/
|
|
43
43
|
theme?: Theme;
|
|
44
44
|
};
|
|
45
|
-
export declare const PAccordion: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
45
|
+
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
46
46
|
/**
|
|
47
47
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
48
48
|
*/
|
|
@@ -43,7 +43,7 @@ export type PBannerProps = BaseProps & {
|
|
|
43
43
|
*/
|
|
44
44
|
width?: BannerWidth;
|
|
45
45
|
};
|
|
46
|
-
export declare const PBanner: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
46
|
+
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
47
47
|
/**
|
|
48
48
|
* Description of the banner.
|
|
49
49
|
*/
|
|
@@ -6,7 +6,7 @@ export type PButtonGroupProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
8
8
|
};
|
|
9
|
-
export declare const PButtonGroup: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
9
|
+
export declare const PButtonGroup: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
10
10
|
/**
|
|
11
11
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
12
12
|
*/
|
|
@@ -71,7 +71,7 @@ export type PButtonPureProps = BaseProps & {
|
|
|
71
71
|
*/
|
|
72
72
|
weight?: ButtonPureWeight;
|
|
73
73
|
};
|
|
74
|
-
export declare const PButtonPure: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
74
|
+
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
75
75
|
/**
|
|
76
76
|
* Display button in active state.
|
|
77
77
|
*/
|
|
@@ -62,7 +62,7 @@ export type PButtonTileProps = BaseProps & {
|
|
|
62
62
|
*/
|
|
63
63
|
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
64
64
|
};
|
|
65
|
-
export declare const PButtonTile: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
65
|
+
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
66
66
|
/**
|
|
67
67
|
* Alignment of button and description.
|
|
68
68
|
*/
|
|
@@ -54,7 +54,7 @@ export type PButtonProps = BaseProps & {
|
|
|
54
54
|
*/
|
|
55
55
|
variant?: ButtonVariant;
|
|
56
56
|
};
|
|
57
|
-
export declare const PButton: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
57
|
+
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
58
58
|
/**
|
|
59
59
|
* Add ARIA attributes.
|
|
60
60
|
*/
|
|
@@ -22,7 +22,7 @@ export type PCanvasProps = BaseProps & {
|
|
|
22
22
|
*/
|
|
23
23
|
theme?: Theme;
|
|
24
24
|
};
|
|
25
|
-
export declare const PCanvas: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
25
|
+
export declare const PCanvas: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
26
26
|
/**
|
|
27
27
|
* Emitted when the sidebar end requests to be dismissed.
|
|
28
28
|
*/
|
|
@@ -87,7 +87,7 @@ export type PCarouselProps = BaseProps & {
|
|
|
87
87
|
*/
|
|
88
88
|
wrapContent?: boolean;
|
|
89
89
|
};
|
|
90
|
-
export declare const PCarousel: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
90
|
+
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
91
91
|
/**
|
|
92
92
|
* Defines which slide to be active (zero-based numbering).
|
|
93
93
|
*/
|
|
@@ -27,7 +27,7 @@ export type PCheckboxWrapperProps = BaseProps & {
|
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
|
|
30
|
-
export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
30
|
+
export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
33
33
|
*/
|