@porsche-design-system/components-react 4.0.0-rc.0 → 4.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +125 -0
- package/OSS_NOTICE +195 -855
- package/README.md +0 -5
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/banner.wrapper.cjs +3 -3
- package/cjs/lib/components/segmented-control.wrapper.cjs +3 -3
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/esm/lib/components/banner.wrapper.mjs +3 -3
- package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/esm/lib/components/button.wrapper.d.ts +14 -0
- package/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/esm/lib/components/display.wrapper.d.ts +8 -0
- package/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/esm/lib/components/segmented-control.wrapper.d.ts +28 -0
- package/esm/lib/components/segmented-control.wrapper.mjs +3 -3
- package/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/select.wrapper.d.ts +20 -0
- package/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/esm/lib/components/table.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +14 -0
- package/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/esm/lib/types.d.ts +34 -25
- package/global-styles/cn/index.css +43 -39
- package/global-styles/color-scheme.css +24 -24
- package/global-styles/index.css +43 -39
- package/global-styles/variables.css +19 -15
- package/package.json +5 -3
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1043 -847
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +58 -84
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +18 -8
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +13 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/notification-base.cjs +10 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +5 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +8 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +6 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +4 -24
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +4 -2
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1043 -848
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +54 -83
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +18 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +14 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +5 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/notification-base.mjs +8 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +10 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +7 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +4 -24
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +5 -3
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/accordion.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/banner.d.ts +8 -4
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/canvas.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/carousel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/crest.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/display.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/divider.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/drilldown.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/fieldset.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flag.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/heading.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/icon.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/inline-notification.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-base.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-date.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-month.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-time.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-url.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-week.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/model-signature.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/notification-base.d.ts +14 -0
- package/ssr/esm/lib/dsr-components/optgroup.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/pagination.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/scroller.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/select-option.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/select.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/spinner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/switch.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-body.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-cell.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-head-row.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-head.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table-row.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/table.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tabs-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tabs.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/tag.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/text-list-item.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/text-list.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/textarea.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/toast.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/wordmark.d.ts +1 -0
- package/ssr/esm/lib/types.d.ts +34 -25
- package/tailwindcss/index.css +350 -92
|
@@ -3185,7 +3185,7 @@ var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports
|
|
|
3185
3185
|
const getTagName = (el) => el.tagName.toLowerCase();
|
|
3186
3186
|
const getTagNameWithoutPrefix = (host) => {
|
|
3187
3187
|
const tagName = getTagName(host);
|
|
3188
|
-
const [, tagNameWithoutPrefix = ''] = /^(?:[a-
|
|
3188
|
+
const [, tagNameWithoutPrefix = ''] = /^(?:[a-z0-9-]+-)?(p-[a-z-]+)$/.exec(tagName) || [];
|
|
3189
3189
|
return (tagNameWithoutPrefix || tagName); // return tagName as fallback for default tags
|
|
3190
3190
|
};
|
|
3191
3191
|
|
|
@@ -3250,36 +3250,50 @@ const parseAndGetAriaAttributes = (rawAttributes) => {
|
|
|
3250
3250
|
}
|
|
3251
3251
|
return undefined;
|
|
3252
3252
|
};
|
|
3253
|
+
/**
|
|
3254
|
+
* Builds a space-separated IDREF string from conditional ID entries.
|
|
3255
|
+
* Returns `null` when no IDs are truthy — safe for JSX attribute assignment.
|
|
3256
|
+
*/
|
|
3257
|
+
const setAriaIDREF = (...ids) => {
|
|
3258
|
+
const result = ids.filter(Boolean).join(' ');
|
|
3259
|
+
return result || null;
|
|
3260
|
+
};
|
|
3253
3261
|
|
|
3254
3262
|
const getButtonBaseAriaAttributes = (isDisabled, isLoading) => {
|
|
3255
3263
|
return {
|
|
3256
3264
|
'aria-disabled': isDisabledOrLoading(isDisabled, isLoading) ? 'true' : null,
|
|
3257
3265
|
};
|
|
3258
3266
|
};
|
|
3259
|
-
|
|
3260
|
-
const getComboboxAriaAttributes = (isOpen, isRequired, labelId, descriptionId,
|
|
3267
|
+
|
|
3268
|
+
const getComboboxAriaAttributes = (isOpen, isRequired, labelId, messageId, descriptionId, listboxId) => {
|
|
3261
3269
|
return {
|
|
3262
3270
|
'aria-labelledby': labelId || null,
|
|
3263
|
-
'aria-describedby': descriptionId
|
|
3271
|
+
'aria-describedby': setAriaIDREF(messageId, descriptionId),
|
|
3264
3272
|
'aria-haspopup': 'listbox',
|
|
3265
3273
|
'aria-expanded': isOpen ? 'true' : 'false',
|
|
3266
3274
|
'aria-required': isRequired ? 'true' : 'false',
|
|
3267
|
-
'aria-controls':
|
|
3275
|
+
'aria-controls': listboxId || null,
|
|
3276
|
+
};
|
|
3277
|
+
};
|
|
3278
|
+
const getListboxAriaAttributes = (isRequired, labelId, messageId, descriptionId, multiselectable) => {
|
|
3279
|
+
return {
|
|
3280
|
+
role: 'listbox',
|
|
3281
|
+
'aria-labelledby': labelId || null,
|
|
3282
|
+
'aria-describedby': setAriaIDREF(messageId, descriptionId),
|
|
3283
|
+
'aria-required': isRequired ? 'true' : 'false',
|
|
3284
|
+
'aria-multiselectable': multiselectable ? 'true' : 'false',
|
|
3268
3285
|
};
|
|
3269
3286
|
};
|
|
3270
|
-
|
|
3271
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 2px instead. */
|
|
3272
|
-
const borderWidthBase = '2px';
|
|
3273
3287
|
|
|
3274
3288
|
const fontPorscheNext = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
3275
3289
|
|
|
3276
3290
|
/** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
|
|
3277
3291
|
const fontFamily = fontPorscheNext;
|
|
3278
3292
|
|
|
3279
|
-
const leadingNormal = 'calc(6px + 2.125ex)';
|
|
3293
|
+
const leadingNormal$1 = 'calc(6px + 2.125ex)';
|
|
3280
3294
|
|
|
3281
3295
|
/** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
|
|
3282
|
-
const fontLineHeight = leadingNormal;
|
|
3296
|
+
const fontLineHeight = leadingNormal$1;
|
|
3283
3297
|
|
|
3284
3298
|
const typescaleSm = '1rem';
|
|
3285
3299
|
|
|
@@ -3438,7 +3452,7 @@ const hasShowPickerSupport = () => (hasDocument &&
|
|
|
3438
3452
|
'showPicker' in HTMLInputElement.prototype &&
|
|
3439
3453
|
CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
|
|
3440
3454
|
|
|
3441
|
-
const prefix = `[Porsche Design System v${"4.0.0-rc.
|
|
3455
|
+
const prefix = `[Porsche Design System v${"4.0.0-rc.2"}]` // this part isn't covered by unit tests
|
|
3442
3456
|
;
|
|
3443
3457
|
const consoleError$1 = (...messages) => {
|
|
3444
3458
|
console.error(prefix, ...messages);
|
|
@@ -3459,64 +3473,6 @@ const supportsNativePopover = () => {
|
|
|
3459
3473
|
const hasNativePopoverSupport = supportsNativePopover();
|
|
3460
3474
|
// getter for easy mocking
|
|
3461
3475
|
const getHasNativePopoverSupport = () => hasNativePopoverSupport;
|
|
3462
|
-
|
|
3463
|
-
/*
|
|
3464
|
-
Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
|
|
3465
|
-
*/
|
|
3466
|
-
var __defProp = Object.defineProperty;
|
|
3467
|
-
var __export = (target, all) => {
|
|
3468
|
-
for (var name in all)
|
|
3469
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
3470
|
-
};
|
|
3471
|
-
|
|
3472
|
-
// src/utils/result.ts
|
|
3473
|
-
var result_exports = {};
|
|
3474
|
-
__export(result_exports, {
|
|
3475
|
-
err: () => err,
|
|
3476
|
-
map: () => map,
|
|
3477
|
-
ok: () => ok,
|
|
3478
|
-
unwrap: () => unwrap,
|
|
3479
|
-
unwrapErr: () => unwrapErr
|
|
3480
|
-
});
|
|
3481
|
-
var ok = (value) => ({
|
|
3482
|
-
isOk: true,
|
|
3483
|
-
isErr: false,
|
|
3484
|
-
value
|
|
3485
|
-
});
|
|
3486
|
-
var err = (value) => ({
|
|
3487
|
-
isOk: false,
|
|
3488
|
-
isErr: true,
|
|
3489
|
-
value
|
|
3490
|
-
});
|
|
3491
|
-
function map(result, fn) {
|
|
3492
|
-
if (result.isOk) {
|
|
3493
|
-
const val = fn(result.value);
|
|
3494
|
-
if (val instanceof Promise) {
|
|
3495
|
-
return val.then((newVal) => ok(newVal));
|
|
3496
|
-
} else {
|
|
3497
|
-
return ok(val);
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
if (result.isErr) {
|
|
3501
|
-
const value = result.value;
|
|
3502
|
-
return err(value);
|
|
3503
|
-
}
|
|
3504
|
-
throw "should never get here";
|
|
3505
|
-
}
|
|
3506
|
-
var unwrap = (result) => {
|
|
3507
|
-
if (result.isOk) {
|
|
3508
|
-
return result.value;
|
|
3509
|
-
} else {
|
|
3510
|
-
throw result.value;
|
|
3511
|
-
}
|
|
3512
|
-
};
|
|
3513
|
-
var unwrapErr = (result) => {
|
|
3514
|
-
if (result.isErr) {
|
|
3515
|
-
return result.value;
|
|
3516
|
-
} else {
|
|
3517
|
-
throw result.value;
|
|
3518
|
-
}
|
|
3519
|
-
};
|
|
3520
3476
|
const headerSlot = 'header';
|
|
3521
3477
|
const anchorSlot = 'anchor';
|
|
3522
3478
|
|
|
@@ -3617,6 +3573,14 @@ const internalValidateProps = {
|
|
|
3617
3573
|
const breakpointCustomizableTemplate = `value, ${internalValidateProps
|
|
3618
3574
|
.formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {}))
|
|
3619
3575
|
.replace(/"/g, '')}`;
|
|
3576
|
+
const getBannerAriaAttributes = (state, heading) => {
|
|
3577
|
+
const isAlert = state === 'warning' || state === 'error';
|
|
3578
|
+
return {
|
|
3579
|
+
role: isAlert ? 'alert' : 'status',
|
|
3580
|
+
'aria-live': isAlert ? 'assertive' : 'polite',
|
|
3581
|
+
'aria-label': heading || null,
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3620
3584
|
const getButtonPureAriaAttributes = (isDisabled, isLoading, aria) => {
|
|
3621
3585
|
return {
|
|
3622
3586
|
...parseAndGetAriaAttributes(aria),
|
|
@@ -3765,22 +3729,12 @@ const buildIconUrl = (iconNameOrSource = DEFAULT_ICON_NAME) => {
|
|
|
3765
3729
|
}
|
|
3766
3730
|
return buildIconUrl(DEFAULT_ICON_NAME);
|
|
3767
3731
|
};
|
|
3768
|
-
const
|
|
3769
|
-
const iconMap = {
|
|
3770
|
-
info: 'information-filled',
|
|
3771
|
-
warning: 'warning-filled',
|
|
3772
|
-
success: 'success-filled',
|
|
3773
|
-
error: 'error-filled',
|
|
3774
|
-
};
|
|
3775
|
-
return iconMap[state];
|
|
3776
|
-
};
|
|
3777
|
-
const getContentAriaAttributes = (state, labelId, descriptionId) => {
|
|
3732
|
+
const getInlineNotificationAriaAttributes = (state, heading) => {
|
|
3778
3733
|
const isAlert = state === 'warning' || state === 'error';
|
|
3779
3734
|
return {
|
|
3780
3735
|
role: isAlert ? 'alert' : 'status',
|
|
3781
3736
|
'aria-live': isAlert ? 'assertive' : 'polite',
|
|
3782
|
-
'aria-
|
|
3783
|
-
'aria-describedby': descriptionId,
|
|
3737
|
+
'aria-label': heading || null,
|
|
3784
3738
|
};
|
|
3785
3739
|
};
|
|
3786
3740
|
const getSvgUrl = (model) => {
|
|
@@ -3917,7 +3871,7 @@ const tempDiv = hasDocument ? document.createElement('div') : undefined;
|
|
|
3917
3871
|
if (tempDiv) {
|
|
3918
3872
|
tempDiv.style.position = 'absolute';
|
|
3919
3873
|
tempDiv.style.visibility = 'hidden';
|
|
3920
|
-
tempDiv.style.border =
|
|
3874
|
+
tempDiv.style.border = '1px solid';
|
|
3921
3875
|
tempDiv.style.boxSizing = 'border-box';
|
|
3922
3876
|
tempDiv.style.font = BUTTON_FONT.replace(fontFamily, tempFont);
|
|
3923
3877
|
}
|
|
@@ -3947,6 +3901,23 @@ const getSwitchButtonAriaAttributes = (isDisabled, isLoading, isChecked) => {
|
|
|
3947
3901
|
const isSortable = (active, direction) => {
|
|
3948
3902
|
return active !== undefined && direction !== undefined;
|
|
3949
3903
|
};
|
|
3904
|
+
/**
|
|
3905
|
+
* Clamps and validates a tab index against the available tabs array.
|
|
3906
|
+
* Returns `undefined` if the index is out of range or invalid.
|
|
3907
|
+
* @internal
|
|
3908
|
+
*/
|
|
3909
|
+
const getSanitizedActiveTabIndex = (tabIndex, tabs) => {
|
|
3910
|
+
const maxIndex = tabs.length - 1; // can be -1 without children
|
|
3911
|
+
if (tabIndex === undefined ||
|
|
3912
|
+
tabIndex === null ||
|
|
3913
|
+
!Number.isInteger(tabIndex) ||
|
|
3914
|
+
maxIndex < 0 ||
|
|
3915
|
+
tabIndex < 0 ||
|
|
3916
|
+
tabIndex > maxIndex) {
|
|
3917
|
+
return undefined;
|
|
3918
|
+
}
|
|
3919
|
+
return tabIndex;
|
|
3920
|
+
};
|
|
3950
3921
|
const isListTypeOrdered = (type) => {
|
|
3951
3922
|
return type !== 'unordered';
|
|
3952
3923
|
};
|
|
@@ -3959,4 +3930,4 @@ const getTextTagType = (host, tag) => {
|
|
|
3959
3930
|
return tag;
|
|
3960
3931
|
};
|
|
3961
3932
|
|
|
3962
|
-
export { DISPLAY_TAGS, HEADING_TAGS, ItemType, TEXT_TAGS, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildFlagUrl, buildIconUrl, consoleError$1 as consoleError, createPaginationItems, createRange, crestSize, descriptionId, displaySizeToTagMap, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getComboboxAriaAttributes,
|
|
3933
|
+
export { DISPLAY_TAGS, HEADING_TAGS, ItemType, TEXT_TAGS, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildFlagUrl, buildIconUrl, consoleError$1 as consoleError, createPaginationItems, createRange, crestSize, descriptionId, displaySizeToTagMap, getBannerAriaAttributes, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getComboboxAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getFieldsetAriaAttributes, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getInlineNotificationAriaAttributes, getListboxAriaAttributes, getSanitizedActiveTabIndex, getSegmentedControlItemAriaAttributes, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTagName, getTagNameWithoutPrefix, getTextTagType, getTotalPages, hasDocument, hasShowPickerSupport, hasSpecificDirectChildTag, hasVisibleIcon, hasWindow$1 as hasWindow, headerSlot, internalDrilldown, isCurrentInput, isDisabledOrLoading, isElementOfKind, isInfinitePagination, isListTypeOrdered, isSortable, isStateCompleteOrWarning, isUrl, labelId, observedNodesMap, parseAndGetAriaAttributes, parseJSONAttribute, setAriaIDREF, supportsConstructableStylesheets, supportsNativePopover, tempDiv, tempIcon, tempLabel, traverseTreeAndUpdateState, updateDrilldownItemState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useContext, useEffect, useRef, useMemo, useLayoutEffect } from 'react';
|
|
3
3
|
import { PorscheDesignSystemContext } from './provider.mjs';
|
|
4
4
|
import { getMergedClassName } from './utils.mjs';
|
|
5
5
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs
CHANGED
|
@@ -5,22 +5,21 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRBanner } from '../dsr-components/banner.mjs';
|
|
7
7
|
|
|
8
|
-
const PBanner = /*#__PURE__*/ forwardRef(({ description = '', dismissButton = true, heading = '', headingTag = 'h5', onDismiss, open = false, state = 'info', className, children, ...rest }, ref) => {
|
|
8
|
+
const PBanner = /*#__PURE__*/ forwardRef(({ description = '', dismissButton = true, heading = '', headingTag = 'h5', onDismiss, open = false, position = { base: 'bottom', s: 'top' }, state = 'info', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
11
11
|
const WebComponentTag = usePrefix('p-banner');
|
|
12
|
-
const propsToSync = [description, dismissButton, heading, headingTag, open, state];
|
|
12
|
+
const propsToSync = [description, dismissButton, heading, headingTag, open, position, state];
|
|
13
13
|
useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['description', 'dismissButton', 'heading', 'headingTag', 'open', 'state'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['description', 'dismissButton', 'heading', 'headingTag', 'open', 'position', 'state'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
...(!process.browser
|
|
21
21
|
? {
|
|
22
|
-
|
|
23
|
-
children: (jsx(DSRBanner, { description, dismissButton, heading, headingTag, open, state, children })),
|
|
22
|
+
children: (jsx(DSRBanner, { description, dismissButton, heading, headingTag, open, position, state, children })),
|
|
24
23
|
}
|
|
25
24
|
: {
|
|
26
25
|
children,
|
|
@@ -5,22 +5,22 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRSegmentedControl } from '../dsr-components/segmented-control.mjs';
|
|
7
7
|
|
|
8
|
-
const PSegmentedControl = /*#__PURE__*/ forwardRef(({ columns = 'auto', compact = false, description = '', disabled = false, form, hideLabel = false, label = '', message = '', name, onBlur, onChange, required = false, state = 'none', value, className, children, ...rest }, ref) => {
|
|
8
|
+
const PSegmentedControl = /*#__PURE__*/ forwardRef(({ columns = 'auto', compact = false, description = '', disabled = false, form, hideLabel = false, label = '', message = '', name, noWrap = false, onBlur, onChange, required = false, state = 'none', value, className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
useEventCallback(elementRef, 'blur', onBlur);
|
|
11
11
|
useEventCallback(elementRef, 'change', onChange);
|
|
12
12
|
const WebComponentTag = usePrefix('p-segmented-control');
|
|
13
|
-
const propsToSync = [columns, compact, description, disabled, form, hideLabel, label, message, name, required, state, value];
|
|
13
|
+
const propsToSync = [columns, compact, description, disabled, form, hideLabel, label, message, name, noWrap, required, state, value];
|
|
14
14
|
useBrowserLayoutEffect(() => {
|
|
15
15
|
const { current } = elementRef;
|
|
16
|
-
['columns', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'message', 'name', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
|
+
['columns', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'message', 'name', 'noWrap', 'required', 'state', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
17
|
}, propsToSync);
|
|
18
18
|
const props = {
|
|
19
19
|
...rest,
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
...(!process.browser
|
|
22
22
|
? {
|
|
23
|
-
children: (jsx(DSRSegmentedControl, { columns, compact, description, disabled, form, hideLabel, label, message, name, required, state, value, children })),
|
|
23
|
+
children: (jsx(DSRSegmentedControl, { columns, compact, description, disabled, form, hideLabel, label, message, name, noWrap, required, state, value, children })),
|
|
24
24
|
}
|
|
25
25
|
: {
|
|
26
26
|
children,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs
CHANGED
|
@@ -19,7 +19,7 @@ class DSRAccordion extends Component {
|
|
|
19
19
|
hasSummaryBefore;
|
|
20
20
|
hasSummaryAfter;
|
|
21
21
|
render() {
|
|
22
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
22
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
23
23
|
const hasSummary = namedSlotChildren.filter(({ props: { slot } }) => slot === 'summary').length > 0;
|
|
24
24
|
const hasSummaryBefore = namedSlotChildren.filter(({ props: { slot } }) => slot === 'summary-before').length > 0;
|
|
25
25
|
const hasSummaryAfter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'summary-after').length > 0;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs
CHANGED
|
@@ -4,22 +4,32 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getBannerCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { getBannerAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { NotificationBase } from './notification-base.mjs';
|
|
9
|
+
import { PButton } from '../components/button.wrapper.mjs';
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
|
-
* @slot {"name": "heading", "description": "Defines the heading
|
|
11
|
-
* @slot {"name": "
|
|
12
|
+
* @slot {"name": "heading", "description": "Defines the heading of the banner. Can be used as an alternative to the `heading` prop for rich content." }
|
|
13
|
+
* @slot {"name": "", "description": "Default slot for the banner description content." }
|
|
14
|
+
* @slot {"name": "description", "description": "Deprecated: Use the default slot instead.", "isDeprecated": true }
|
|
12
15
|
*
|
|
13
16
|
* @controlled {"props": ["open"], "event": "dismiss"}
|
|
14
17
|
*/
|
|
15
18
|
class DSRBanner extends Component {
|
|
16
19
|
host;
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
refPopover;
|
|
21
|
+
refDismiss;
|
|
22
|
+
hasHeadingSlot;
|
|
23
|
+
hasDescriptionSlot;
|
|
19
24
|
render() {
|
|
20
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
21
|
-
const
|
|
22
|
-
|
|
25
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
26
|
+
const hasHeadingSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0;
|
|
27
|
+
const hasDescriptionSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0;
|
|
28
|
+
const headingText = this.props.heading ? this.props.heading : namedSlotChildren.find(({ props: { slot } }) => slot === 'heading')?.props.children;
|
|
29
|
+
const style = minifyCss(getComponentCss$18(this.props.open, this.props.position, this.props.state, this.props.dismissButton, !!(this.props.heading || hasHeadingSlot)));
|
|
30
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { popover: "manual", "aria-hidden": this.props.open ? 'false' : 'true', ...getBannerAriaAttributes(this.props.state, headingText), children: jsx(NotificationBase, { heading: this.props.heading, headingTag: this.props.headingTag, hasHeadingSlot: hasHeadingSlot, description: this.props.description, hasDescriptionSlot: hasDescriptionSlot, ...(this.props.dismissButton && {
|
|
31
|
+
dismissButton: (jsx(PButton, { className: "dismiss", type: "button", variant: "secondary", icon: "close", hideLabel: true, compact: true, ...(headingText ? { aria: { 'aria-description': headingText } } : {}), children: "Close banner" })),
|
|
32
|
+
}) }) })] }), this.props.children] }));
|
|
23
33
|
}
|
|
24
34
|
}
|
|
25
35
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getButtonCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { getButtonAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
9
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
10
10
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
@@ -20,7 +20,7 @@ class DSRButton extends Component {
|
|
|
20
20
|
render() {
|
|
21
21
|
splitChildren(this.props.children);
|
|
22
22
|
const style = minifyCss(getComponentCss$15(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.compact));
|
|
23
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, name: this.props.name, value: this.props.value, "aria-describedby": this.props.loading ? loadingId : undefined, children: [this.props.loading && jsx(PSpinner, { className: "spinner",
|
|
23
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, name: this.props.name, value: this.props.value, "aria-describedby": this.props.loading ? loadingId : undefined, children: [this.props.loading && jsx(PSpinner, { className: "spinner", "aria-hidden": "true" }), hasVisibleIcon(this.props.icon, this.props.iconSource) && (jsx(PIcon, { className: "icon", name: this.props.iconSource ? undefined : this.props.icon, source: this.props.iconSource, color: "inherit", "aria-hidden": "true" })), jsx("span", { className: "label", children: jsx("slot", {}) })] }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs
CHANGED
|
@@ -28,7 +28,7 @@ class DSRCanvas extends Component {
|
|
|
28
28
|
hasFooter;
|
|
29
29
|
hasBackground;
|
|
30
30
|
render() {
|
|
31
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
31
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
32
32
|
const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
33
33
|
const hasSidebarEnd = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end').length > 0;
|
|
34
34
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs
CHANGED
|
@@ -32,7 +32,7 @@ class DSRCarousel extends Component {
|
|
|
32
32
|
return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
35
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
36
36
|
const hasHeadingPropOrSlot = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0);
|
|
37
37
|
const hasDescriptionPropOrSlot = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0);
|
|
38
38
|
const hasControlsSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'controls').length > 0;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getCheckboxCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
8
|
-
import { LoadingMessage } from './loading-message.mjs';
|
|
7
|
+
import { setAriaIDREF } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
10
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
@@ -33,10 +33,11 @@ class DSRCheckbox extends Component {
|
|
|
33
33
|
formStateRestoreCallback() {
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
36
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
37
|
+
const selectMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
37
38
|
const id = 'x';
|
|
38
39
|
const style = minifyCss(getComponentCss$12(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact));
|
|
39
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsxs("div", { className: "wrapper", children: [jsxs("div", { className: "input-wrapper", children: [jsx("input", { type: "checkbox", id: id, "aria-describedby":
|
|
40
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsxs("div", { className: "wrapper", children: [jsxs("div", { className: "input-wrapper", children: [jsx("input", { type: "checkbox", id: id, "aria-describedby": setAriaIDREF(this.props.loading && loadingId, selectMessageId), "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && jsx(PSpinner, { className: "spinner", "aria-hidden": "true" })] }), 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, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required })] }), 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, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getCrestCss as getComponentCss$11 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import { buildCrestSrcSet,
|
|
5
|
+
import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
const { width, height } = crestSize;
|
|
8
8
|
class DSRCrest extends Component {
|
|
@@ -18,7 +18,7 @@ class DSRDrilldownItem extends Component {
|
|
|
18
18
|
hasSlottedHeader;
|
|
19
19
|
hasSlottedButton;
|
|
20
20
|
render() {
|
|
21
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
21
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
22
22
|
const hasSlottedHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
23
23
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
24
24
|
const style = minifyCss(getComponentCss$Z(this.props.primary, this.props.secondary, this.props.cascade));
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { messageId, StateMessage } from './state-message.mjs';
|
|
|
15
15
|
class DSRFieldset extends Component {
|
|
16
16
|
host;
|
|
17
17
|
render() {
|
|
18
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
18
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
19
19
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
20
20
|
const style = minifyCss(getComponentCss$X(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0)));
|
|
21
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, ...getFieldsetAriaAttributes(this.props.required, this.props.state === 'error', this.props.aria), children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), 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, host: null })] })] }), this.props.children] }));
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getFlagCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { buildFlagUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRFlag extends Component {
|
|
8
8
|
host;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs
CHANGED
|
@@ -25,7 +25,7 @@ class DSRFlyout extends Component {
|
|
|
25
25
|
hasFooter;
|
|
26
26
|
hasSubFooter;
|
|
27
27
|
render() {
|
|
28
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
28
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
29
29
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
30
30
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
31
31
|
const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getIconCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { buildIconUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRIcon extends Component {
|
|
8
8
|
host;
|
|
@@ -4,26 +4,28 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getInlineNotificationCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { getInlineNotificationAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { NotificationBase } from './notification-base.mjs';
|
|
8
9
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
9
10
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
10
|
-
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @slot {"name": "heading", "description": "
|
|
14
|
-
* @slot {"name": "", "description": "Default slot
|
|
13
|
+
* @slot {"name": "heading", "description": "Defines the heading of the inline notification. Can be used as an alternative to the `heading` prop for rich content." }
|
|
14
|
+
* @slot {"name": "", "description": "Default slot for the inline notification description content." }
|
|
15
15
|
*/
|
|
16
16
|
class DSRInlineNotification extends Component {
|
|
17
17
|
host;
|
|
18
|
+
hasHeadingSlot;
|
|
18
19
|
render() {
|
|
19
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
21
|
+
const hasHeadingSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0;
|
|
22
|
+
const headingText = this.props.heading ? this.props.heading : namedSlotChildren.find(({ props: { slot } }) => slot === 'heading')?.props.children;
|
|
23
|
+
const style = minifyCss(getComponentCss$S(this.props.state, !!this.props.actionLabel, this.props.dismissButton, !!(this.props.heading || hasHeadingSlot)));
|
|
24
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(NotificationBase, { ...getInlineNotificationAriaAttributes(this.props.state, headingText), heading: this.props.heading, headingTag: this.props.headingTag, hasHeadingSlot: hasHeadingSlot, description: this.props.description, ...(this.props.actionLabel && {
|
|
25
|
+
actionLabel: (jsx(PButtonPure, { className: "action", icon: this.props.actionIcon, loading: this.props.actionLoading, children: this.props.actionLabel })),
|
|
26
|
+
}), ...(this.props.dismissButton && {
|
|
27
|
+
dismissButton: (jsx(PButton, { className: "dismiss", type: "button", variant: "secondary", icon: "close", hideLabel: true, compact: true, ...(headingText ? { aria: { 'aria-description': headingText } } : {}), children: "Close notification" })),
|
|
28
|
+
}) })] }), this.props.children] }));
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../provider.mjs';
|
|
5
|
-
import { descriptionId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
5
|
+
import { descriptionId, setAriaIDREF } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
7
7
|
import { Label } from './label.mjs';
|
|
8
8
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
@@ -19,7 +19,9 @@ id, label, description, loading, initialLoading, required, disabled, state, mess
|
|
|
19
19
|
// refElement,
|
|
20
20
|
start, end, }) => {
|
|
21
21
|
const { namedSlotChildren } = splitChildren(children);
|
|
22
|
-
|
|
22
|
+
const inputDescriptionId = (description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
|
|
23
|
+
const inputMessageId = (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state) ? messageId : undefined;
|
|
24
|
+
return (jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: !!label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: !!description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: label, description: description, htmlFor: id, isRequired: required, isLoading: loading, isDisabled: disabled }), jsxs("div", { className: "wrapper", children: [jsx("slot", { name: "start" }), start, jsx("input", { "aria-describedby": setAriaIDREF(loading && loadingId, inputMessageId, inputDescriptionId), "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": disabled || loading ? 'true' : null, "aria-readonly": readOnly ? 'true' : null, id: id, name: name, form: form, type: type, required: required, placeholder: placeholder || null, maxLength: maxLength, minLength: minLength, spellCheck: spellCheck, max: max, min: min, step: step, defaultValue: value, readOnly: readOnly, autoComplete: autoComplete, disabled: disabled, pattern: pattern, multiple: multiple, dir: "auto" // This overwrites the default: let the browser now decide in which direction the value should be placed.
|
|
23
25
|
}), end, jsx("slot", { name: "end" }), loading && jsx(PSpinner, { "aria-hidden": "true" })] }), jsx(StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, host: null }), jsx(LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
|
|
24
26
|
};
|
|
25
27
|
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getLinkCss as getComponentCss$D } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { parseAndGetAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs
CHANGED
|
@@ -22,7 +22,7 @@ class DSRModal extends Component {
|
|
|
22
22
|
hasHeader;
|
|
23
23
|
hasFooter;
|
|
24
24
|
render() {
|
|
25
|
-
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
25
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
26
26
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
27
27
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
28
28
|
this.props.disableCloseButton ? false : this.props.dismissButton;
|