@porsche-design-system/components-react 3.27.3 → 3.28.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 +30 -0
- package/cjs/lib/components/{flyout-multilevel-item.wrapper.cjs → drilldown-item.wrapper.cjs} +3 -3
- package/cjs/lib/components/drilldown-link.wrapper.cjs +26 -0
- package/cjs/lib/components/{flyout-multilevel.wrapper.cjs → drilldown.wrapper.cjs} +3 -3
- package/cjs/lib/components/input-password.wrapper.cjs +29 -0
- package/cjs/public-api.cjs +8 -4
- package/{ssr/esm/lib/components/flyout-multilevel-item.wrapper.d.ts → esm/lib/components/drilldown-item.wrapper.d.ts} +6 -6
- package/esm/lib/components/{flyout-multilevel-item.wrapper.mjs → drilldown-item.wrapper.mjs} +3 -3
- package/esm/lib/components/drilldown-link.wrapper.d.ts +56 -0
- package/esm/lib/components/drilldown-link.wrapper.mjs +24 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +56 -0
- package/esm/lib/components/{flyout-multilevel.wrapper.mjs → drilldown.wrapper.mjs} +3 -3
- package/esm/lib/components/index.d.ts +4 -2
- package/esm/lib/components/input-password.wrapper.d.ts +176 -0
- package/esm/lib/components/input-password.wrapper.mjs +27 -0
- package/esm/lib/types.d.ts +24 -10
- package/esm/public-api.mjs +4 -2
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +629 -457
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +18 -9
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel-item.wrapper.cjs → drilldown-item.wrapper.cjs} +5 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/drilldown-link.wrapper.cjs +37 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel.wrapper.cjs → drilldown.wrapper.cjs} +5 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +34 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.cjs +25 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/{flyout-multilevel.cjs → drilldown.cjs} +9 -10
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +42 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +3 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/legacy-label.cjs +14 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +8 -4
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +601 -431
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +16 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel-item.wrapper.mjs → drilldown-item.wrapper.mjs} +5 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/drilldown-link.wrapper.mjs +35 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel.wrapper.mjs → drilldown.wrapper.mjs} +5 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +32 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +23 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/{flyout-multilevel.mjs → drilldown.mjs} +11 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +40 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +4 -10
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/legacy-label.mjs +12 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +4 -2
- package/{esm/lib/components/flyout-multilevel-item.wrapper.d.ts → ssr/esm/lib/components/drilldown-item.wrapper.d.ts} +6 -6
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +56 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +56 -0
- package/ssr/esm/lib/components/index.d.ts +4 -2
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +176 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +16 -0
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +10 -0
- package/ssr/esm/lib/dsr-components/{flyout-multilevel.d.ts → drilldown.d.ts} +3 -3
- package/ssr/esm/lib/dsr-components/input-password.d.ts +17 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +2 -6
- package/ssr/esm/lib/dsr-components/legacy-label.d.ts +14 -0
- package/ssr/esm/lib/types.d.ts +24 -10
- package/esm/lib/components/flyout-multilevel.wrapper.d.ts +0 -56
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.cjs +0 -33
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/stripFocusAndHoverStyles.cjs +0 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +0 -31
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/stripFocusAndHoverStyles.mjs +0 -6
- package/ssr/esm/lib/components/flyout-multilevel.wrapper.d.ts +0 -56
- package/ssr/esm/lib/dsr-components/flyout-multilevel-item.d.ts +0 -14
- package/ssr/esm/stripFocusAndHoverStyles.d.ts +0 -1
|
@@ -3228,6 +3228,8 @@ const parseJSONAttribute = (attribute) => {
|
|
|
3228
3228
|
return attribute;
|
|
3229
3229
|
}
|
|
3230
3230
|
return JSON.parse(attribute
|
|
3231
|
+
// Convert colon to tmp colon
|
|
3232
|
+
.replace(/(?<=['"]\s*\w+[\s\w]*):/g, '__tmp-colon__')
|
|
3231
3233
|
// Convert single quotes to double quotes except the ones which are escaped by backslash
|
|
3232
3234
|
.replace(/\\'/g, '__escaped_single_quote__')
|
|
3233
3235
|
.replace(/'/g, '"')
|
|
@@ -3235,7 +3237,9 @@ const parseJSONAttribute = (attribute) => {
|
|
|
3235
3237
|
// Remove string escapes except the ones followed by unicode u0027
|
|
3236
3238
|
.replace(/([^\\])\\(?!u0027)/g, '$1')
|
|
3237
3239
|
// Wrap keys in double quotes
|
|
3238
|
-
.replace(/[\s"]?([\w-]+)[\s"]?:/g, '"$1":')
|
|
3240
|
+
.replace(/[\s"]?([\w-]+)[\s"]?:/g, '"$1":')
|
|
3241
|
+
// Convert tmp colon to real colon after all other replacements
|
|
3242
|
+
.replace(/__tmp-colon__/g, ':'));
|
|
3239
3243
|
};
|
|
3240
3244
|
|
|
3241
3245
|
const hasWindow$1 = typeof window !== 'undefined';
|
|
@@ -3579,6 +3583,9 @@ const isInfinitePagination = (amountOfPages) => {
|
|
|
3579
3583
|
return amountOfPages > INFINITE_BULLET_THRESHOLD;
|
|
3580
3584
|
};
|
|
3581
3585
|
|
|
3586
|
+
const labelId = 'label';
|
|
3587
|
+
const descriptionId = 'description';
|
|
3588
|
+
|
|
3582
3589
|
const buildCrestSrcSet = (format) => {
|
|
3583
3590
|
return Object.entries(CRESTS_MANIFEST.porscheCrest)
|
|
3584
3591
|
.map(([resolution, fileName]) => `${getCDNBaseURL()}/crest/${fileName[format]} ${resolution}`)
|
|
@@ -3609,25 +3616,25 @@ const getDisplayTagType = (host, size, tag) => {
|
|
|
3609
3616
|
return displaySizeToTagMap[size] || 'h1';
|
|
3610
3617
|
};
|
|
3611
3618
|
/**
|
|
3612
|
-
* Updates the state of the
|
|
3619
|
+
* Updates the state of the drilldown and its children based on the provided activeItem and value.
|
|
3613
3620
|
*
|
|
3614
|
-
* @param {string | undefined} activeItem - The
|
|
3621
|
+
* @param {string | undefined} activeItem - The drilldown-item element which is currently active (which has the activeIdentifier as identifier). If undefined, updates the root element.
|
|
3615
3622
|
* @param {boolean} value - The new state value to apply.
|
|
3616
3623
|
* @returns {void}
|
|
3617
3624
|
*/
|
|
3618
|
-
const
|
|
3625
|
+
const updateDrilldownItemState = (activeItem, value) => {
|
|
3619
3626
|
activeItem.secondary = value;
|
|
3620
3627
|
traverseTreeAndUpdateState(activeItem.parentElement, 'primary', value);
|
|
3621
3628
|
};
|
|
3622
3629
|
/**
|
|
3623
|
-
* Recursively updates the state of a
|
|
3630
|
+
* Recursively updates the state of a drilldown item's parent elements by traversing up the DOM tree.
|
|
3624
3631
|
*
|
|
3625
|
-
* @param {
|
|
3626
|
-
* @param {'primary' | 'secondary' | 'cascade'} prop - The property of the
|
|
3632
|
+
* @param {HTMLPDrilldownItemElement} activeItem - The current drilldown item being updated.
|
|
3633
|
+
* @param {'primary' | 'secondary' | 'cascade'} prop - The property of the drilldown item to update.
|
|
3627
3634
|
* @param {boolean} value - The new state value to apply.
|
|
3628
3635
|
*/
|
|
3629
3636
|
const traverseTreeAndUpdateState = (activeItem, prop, value) => {
|
|
3630
|
-
if (isElementOfKind(activeItem, 'p-
|
|
3637
|
+
if (isElementOfKind(activeItem, 'p-drilldown-item')) {
|
|
3631
3638
|
activeItem[prop] = value;
|
|
3632
3639
|
traverseTreeAndUpdateState(activeItem.parentElement, 'cascade', value);
|
|
3633
3640
|
}
|
|
@@ -3909,4 +3916,4 @@ const getTextTagType = (host, tag) => {
|
|
|
3909
3916
|
return tag;
|
|
3910
3917
|
};
|
|
3911
3918
|
|
|
3912
|
-
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, ItemType, TEXT_TAGS, _hasShowPickerSupport, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildIconUrl, buildImgSrc, buildSrcSet, createPaginationItems, createRange, crestSize, debounce, displaySizeToTagMap, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getClosestHTMLElement, getComboboxAriaAttributes, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getListAriaAttributes, getOptionAriaAttributes, getRole, getSegmentedControlItemAriaAttributes, getSelectedOptionMap, getSelectedOptionString, getSelectedOptionValues, getSelectedOptions, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTagName, getTagNameWithoutPrefix, getTextTagType, getTotalPages, hasDocument, hasLocateAction, hasSpecificDirectChildTag, hasVisibleIcon, hasWindow$1 as hasWindow, headerSlot, isCurrentInput, isCustomDropdown, isDisabledOrLoading, isElementOfKind, isInfinitePagination, isListTypeOrdered, isScrollable, isSortable, isStateCompleteOrWarning, isTouchDevice, isType, isUrl, isWithinForm, observedNodesMap, parseAndGetAriaAttributes, parseJSONAttribute, scrollAreaClass, showCustomCalendarOrTimeIndicator, supportsConstructableStylesheets, supportsNativePopover, tempDiv, tempIcon, tempLabel, traverseTreeAndUpdateState,
|
|
3919
|
+
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, ItemType, TEXT_TAGS, _hasShowPickerSupport, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildIconUrl, buildImgSrc, buildSrcSet, createPaginationItems, createRange, crestSize, debounce, descriptionId, displaySizeToTagMap, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getClosestHTMLElement, getComboboxAriaAttributes, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getListAriaAttributes, getOptionAriaAttributes, getRole, getSegmentedControlItemAriaAttributes, getSelectedOptionMap, getSelectedOptionString, getSelectedOptionValues, getSelectedOptions, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTagName, getTagNameWithoutPrefix, getTextTagType, getTotalPages, hasDocument, hasLocateAction, hasSpecificDirectChildTag, hasVisibleIcon, hasWindow$1 as hasWindow, headerSlot, isCurrentInput, isCustomDropdown, isDisabledOrLoading, isElementOfKind, isInfinitePagination, isListTypeOrdered, isScrollable, isSortable, isStateCompleteOrWarning, isTouchDevice, isType, isUrl, isWithinForm, labelId, observedNodesMap, parseAndGetAriaAttributes, parseJSONAttribute, scrollAreaClass, showCustomCalendarOrTimeIndicator, supportsConstructableStylesheets, supportsNativePopover, tempDiv, tempIcon, tempLabel, traverseTreeAndUpdateState, updateDrilldownItemState };
|
|
@@ -3,11 +3,11 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, useRef } from 'react';
|
|
4
4
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { DSRDrilldownItem } from '../dsr-components/drilldown-item.mjs';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const PDrilldownItem = /*#__PURE__*/ forwardRef(({ cascade = false, identifier, label, primary = false, secondary = false, className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
|
-
const WebComponentTag = usePrefix('p-
|
|
10
|
+
const WebComponentTag = usePrefix('p-drilldown-item');
|
|
11
11
|
const propsToSync = [cascade, identifier, label, primary, secondary];
|
|
12
12
|
useBrowserLayoutEffect(() => {
|
|
13
13
|
const { current } = elementRef;
|
|
@@ -18,7 +18,7 @@ const PFlyoutMultilevelItem = /*#__PURE__*/ forwardRef(({ cascade = false, ident
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
...(!process.browser
|
|
20
20
|
? {
|
|
21
|
-
children: (jsx(
|
|
21
|
+
children: (jsx(DSRDrilldownItem, { cascade, identifier, label, primary, secondary, children })),
|
|
22
22
|
}
|
|
23
23
|
: {
|
|
24
24
|
children,
|
|
@@ -32,4 +32,4 @@ const PFlyoutMultilevelItem = /*#__PURE__*/ forwardRef(({ cascade = false, ident
|
|
|
32
32
|
return jsx(WebComponentTag, { ...props });
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { PDrilldownItem };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
|
+
import { syncRef } from '../../utils.mjs';
|
|
6
|
+
import { DSRDrilldownLink } from '../dsr-components/drilldown-link.mjs';
|
|
7
|
+
|
|
8
|
+
const PDrilldownLink = /*#__PURE__*/ forwardRef(({ active = false, aria, download, href, rel, target = '_self', className, children, ...rest }, ref) => {
|
|
9
|
+
const elementRef = useRef(undefined);
|
|
10
|
+
const WebComponentTag = usePrefix('p-drilldown-link');
|
|
11
|
+
const propsToSync = [active, aria, download, href, rel, target];
|
|
12
|
+
useBrowserLayoutEffect(() => {
|
|
13
|
+
const { current } = elementRef;
|
|
14
|
+
['active', 'aria', 'download', 'href', 'rel', 'target'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
}, propsToSync);
|
|
16
|
+
const props = {
|
|
17
|
+
...rest,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
...(!process.browser
|
|
20
|
+
? {
|
|
21
|
+
children: (jsx(DSRDrilldownLink, { active, aria, download, href, rel, target, children })),
|
|
22
|
+
}
|
|
23
|
+
: {
|
|
24
|
+
children,
|
|
25
|
+
suppressHydrationWarning: true,
|
|
26
|
+
}),
|
|
27
|
+
'data-ssr': '',
|
|
28
|
+
class: useMergedClass(elementRef, className),
|
|
29
|
+
ref: syncRef(elementRef, ref)
|
|
30
|
+
};
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return jsx(WebComponentTag, { ...props });
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { PDrilldownLink };
|
|
@@ -3,13 +3,13 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, useRef } from 'react';
|
|
4
4
|
import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { DSRDrilldown } from '../dsr-components/drilldown.mjs';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const PDrilldown = /*#__PURE__*/ forwardRef(({ activeIdentifier, aria, onDismiss, onUpdate, open = false, theme, className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
11
11
|
useEventCallback(elementRef, 'update', onUpdate);
|
|
12
|
-
const WebComponentTag = usePrefix('p-
|
|
12
|
+
const WebComponentTag = usePrefix('p-drilldown');
|
|
13
13
|
const propsToSync = [activeIdentifier, aria, open, theme || useTheme()];
|
|
14
14
|
useBrowserLayoutEffect(() => {
|
|
15
15
|
const { current } = elementRef;
|
|
@@ -20,7 +20,7 @@ const PFlyoutMultilevel = /*#__PURE__*/ forwardRef(({ activeIdentifier, aria, on
|
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
...(!process.browser
|
|
22
22
|
? {
|
|
23
|
-
children: (jsx(
|
|
23
|
+
children: (jsx(DSRDrilldown, { activeIdentifier, aria, open, theme: theme || useTheme(), children })),
|
|
24
24
|
}
|
|
25
25
|
: {
|
|
26
26
|
children,
|
|
@@ -34,4 +34,4 @@ const PFlyoutMultilevel = /*#__PURE__*/ forwardRef(({ activeIdentifier, aria, on
|
|
|
34
34
|
return jsx(WebComponentTag, { ...props });
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { PDrilldown };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
|
+
import { syncRef } from '../../utils.mjs';
|
|
6
|
+
import { DSRInputPassword } from '../dsr-components/input-password.mjs';
|
|
7
|
+
|
|
8
|
+
const PInputPassword = /*#__PURE__*/ forwardRef(({ autoComplete = '', compact = false, description = '', disabled = false, form, hideLabel = false, label = '', maxLength, message = '', minLength, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', theme, toggle = false, value = '', className, children, ...rest }, ref) => {
|
|
9
|
+
const elementRef = useRef(undefined);
|
|
10
|
+
useEventCallback(elementRef, 'blur', onBlur);
|
|
11
|
+
useEventCallback(elementRef, 'change', onChange);
|
|
12
|
+
useEventCallback(elementRef, 'input', onInput);
|
|
13
|
+
const WebComponentTag = usePrefix('p-input-password');
|
|
14
|
+
const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, maxLength, message, minLength, name, placeholder, readOnly, required, state, theme || useTheme(), toggle, value];
|
|
15
|
+
useBrowserLayoutEffect(() => {
|
|
16
|
+
const { current } = elementRef;
|
|
17
|
+
['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'state', 'theme', 'toggle', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
18
|
+
}, propsToSync);
|
|
19
|
+
const props = {
|
|
20
|
+
...rest,
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
...(!process.browser
|
|
23
|
+
? {
|
|
24
|
+
children: (jsx(DSRInputPassword, { autoComplete, compact, description, disabled, form, hideLabel, label, maxLength, message, minLength, name, placeholder, readOnly, required, state, theme: theme || useTheme(), toggle, value, children })),
|
|
25
|
+
}
|
|
26
|
+
: {
|
|
27
|
+
children,
|
|
28
|
+
suppressHydrationWarning: true,
|
|
29
|
+
}),
|
|
30
|
+
'data-ssr': '',
|
|
31
|
+
class: useMergedClass(elementRef, className),
|
|
32
|
+
ref: syncRef(elementRef, ref)
|
|
33
|
+
};
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
return jsx(WebComponentTag, { ...props });
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { PInputPassword };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs
CHANGED
|
@@ -3,8 +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 {
|
|
7
|
-
import { getAccordionCss as getComponentCss$1a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getAccordionCss as getComponentCss$1c } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -20,7 +19,7 @@ class DSRAccordion extends Component {
|
|
|
20
19
|
const buttonId = 'accordion-control';
|
|
21
20
|
const contentId = 'accordion-panel';
|
|
22
21
|
const Heading = this.props.tag || this.props.headingTag;
|
|
23
|
-
const style = minifyCss(
|
|
22
|
+
const style = minifyCss(getComponentCss$1c(this.props.size, this.props.compact, this.props.open, this.props.theme, this.props.sticky));
|
|
24
23
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(Heading, { className: "heading", children: jsxs("button", { id: buttonId, type: "button", "aria-expanded": this.props.open ? 'true' : 'false', "aria-controls": contentId, children: [this.props.heading || jsx("slot", { name: "heading" }), jsx("span", { className: "icon-container", children: jsx(PIcon, { className: "icon", name: this.props.open ? 'minus' : 'plus', theme: this.props.theme, size: "xx-small", "aria-hidden": "true" }) })] }) }), jsx("div", { id: contentId, className: "collapsible", role: "region", "aria-labelledby": buttonId, children: jsx("div", { children: jsx("slot", {}) }) })] })] }), this.props.children] }));
|
|
25
24
|
}
|
|
26
25
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs
CHANGED
|
@@ -3,8 +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 {
|
|
7
|
-
import { getBannerCss as getComponentCss$19 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getBannerCss as getComponentCss$1b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PInlineNotification } from '../components/inline-notification.wrapper.mjs';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -24,7 +23,7 @@ class DSRBanner extends Component {
|
|
|
24
23
|
render() {
|
|
25
24
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
26
25
|
const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
27
|
-
const style = minifyCss(
|
|
26
|
+
const style = minifyCss(getComponentCss$1b(this.props.open));
|
|
28
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs(PInlineNotification, { heading: this.props.heading, headingTag: this.props.headingTag, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": this.props.open ? 'false' : 'true', children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0 ? (jsx("slot", { name: "heading", slot: "heading" })) : (hasTitleSlot && jsx("slot", { name: "title", slot: "heading" })), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsx("slot", { name: "description" })] }) })] }), this.props.children] }));
|
|
29
28
|
}
|
|
30
29
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs
CHANGED
|
@@ -2,8 +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 {
|
|
6
|
-
import { getButtonGroupCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
+
import { getButtonGroupCss as getComponentCss$1a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @slot {"name": "", "description": "Default slot for the buttons to group." }
|
|
@@ -12,7 +11,7 @@ class DSRButtonGroup extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$1a(this.props.direction));
|
|
16
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { role: "group", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
16
|
}
|
|
18
17
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs
CHANGED
|
@@ -3,8 +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 {
|
|
7
|
-
import { getButtonPureCss as getComponentCss$17 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getButtonPureCss as getComponentCss$19 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { isDisabledOrLoading, hasVisibleIcon, getButtonPureAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
10
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -30,7 +29,7 @@ class DSRButtonPure extends Component {
|
|
|
30
29
|
size: 'inherit',
|
|
31
30
|
theme: this.props.theme,
|
|
32
31
|
};
|
|
33
|
-
const style = minifyCss(
|
|
32
|
+
const style = minifyCss(getComponentCss$19(this.props.icon, this.props.iconSource, this.props.active, this.props.loading, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.underline, this.props.theme));
|
|
34
33
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { ...getButtonPureAriaAttributes(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, { ...iconProps, "aria-hidden": "true" })) : (hasIcon && (jsx(PIcon, { ...iconProps, name: this.props.icon, source: this.props.iconSource, color: this.isDisabledOrLoading ? 'state-disabled' : 'primary', theme: this.props.theme, "aria-hidden": "true" }))), jsx("span", { className: "label", children: jsx("slot", {}) })] }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
35
34
|
}
|
|
36
35
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs
CHANGED
|
@@ -3,8 +3,7 @@ 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 {
|
|
7
|
-
import { getButtonTileCss as getComponentCss$16 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getButtonTileCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { isDisabledOrLoading } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
10
9
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
@@ -28,7 +27,7 @@ class DSRButtonTile extends Component {
|
|
|
28
27
|
};
|
|
29
28
|
const button = (createElement(PButton, { ...buttonProps, icon: this.props.icon, key: "link-or-button", className: "link-or-button" }, this.props.label));
|
|
30
29
|
const buttonPure = (createElement(PButtonPure, { ...buttonProps, key: "link-or-button-pure", className: "link-or-button-pure", hideLabel: true, icon: this.props.icon === 'none' ? 'arrow-right' : this.props.icon }, this.props.label));
|
|
31
|
-
const style = minifyCss(
|
|
30
|
+
const style = minifyCss(getComponentCss$18(isDisabledOrLoading(this.props.disabled, this.props.loading), this.props.aspectRatio, this.props.size, this.props.weight, this.props.background, this.props.align, this.props.compact, this.props.gradient, this.props.disabled));
|
|
32
31
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [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 ? buttonPure : button) : [buttonPure, button]] })] })] }), this.props.children] }));
|
|
33
32
|
}
|
|
34
33
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs
CHANGED
|
@@ -3,8 +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 {
|
|
7
|
-
import { getButtonCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getButtonCss as getComponentCss$17 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { getButtonAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
10
9
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -20,7 +19,7 @@ class DSRButton extends Component {
|
|
|
20
19
|
initialLoading = false;
|
|
21
20
|
render() {
|
|
22
21
|
splitChildren(this.props.children);
|
|
23
|
-
const style = minifyCss(
|
|
22
|
+
const style = minifyCss(getComponentCss$17(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
|
|
24
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", size: "inherit", theme: this.props.theme, "aria-hidden": "true" })), hasVisibleIcon(this.props.icon, this.props.iconSource) && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.iconSource ? undefined : this.props.icon, source: this.props.iconSource, color: this.props.disabled ? (this.props.variant === 'primary' ? 'contrast-high' : 'state-disabled') : 'primary', theme: this.props.theme, "aria-hidden": "true" })), jsx("span", { className: "label", children: jsx("slot", {}) })] }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
25
24
|
}
|
|
26
25
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs
CHANGED
|
@@ -3,8 +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 {
|
|
7
|
-
import { getCanvasCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getCanvasCss as getComponentCss$16 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
9
8
|
import { PCrest } from '../components/crest.wrapper.mjs';
|
|
10
9
|
import { PFlyout } from '../components/flyout.wrapper.mjs';
|
|
@@ -43,7 +42,7 @@ class DSRCanvas extends Component {
|
|
|
43
42
|
const hasSidebarEndHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end-header').length > 0;
|
|
44
43
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
45
44
|
const hasBackground = namedSlotChildren.filter(({ props: { slot } }) => slot === 'background').length > 0;
|
|
46
|
-
const style = minifyCss(
|
|
45
|
+
const style = minifyCss(getComponentCss$16(this.props.theme, this.props.sidebarStartOpen, this.props.sidebarEndOpen));
|
|
47
46
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "root", children: [jsxs("header", { className: "header", tabIndex: -1, children: [jsxs("div", { className: "blur", children: [jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {})] }), jsxs("div", { className: "header__area header__area--start", children: [!this.props.sidebarStartOpen && (jsxs(PButton, { theme: this.props.theme, icon: "sidebar", variant: "ghost", compact: true, "hide-label": "true", aria: { 'aria-expanded': this.props.sidebarStartOpen }, children: [this.props.sidebarStartOpen ? 'Close' : 'Open', " navigation sidebar"] })), jsx("slot", { name: "header-start" })] }), jsx(PCrest, { className: "header__crest" }), jsx(PWordmark, { className: "header__wordmark", size: "inherit", theme: this.props.theme }), jsx("div", { className: "header__area header__area--end", children: jsx("slot", { name: "header-end" }) })] }), this.props.isMediaQueryS && (jsx("aside", { className: "sidebar sidebar--start", inert: !this.props.sidebarStartOpen, "aria-label": `Navigation sidebar ${this.props.sidebarStartOpen ? 'open' : 'closed'}`, tabIndex: -1, children: jsxs("div", { className: "sidebar__scroller", children: [jsxs("div", { className: "sidebar__header sidebar__header--start", children: [jsxs(PButton, { theme: this.props.theme, icon: "sidebar", variant: "ghost", compact: true, "hide-label": "true", aria: { 'aria-expanded': this.props.sidebarStartOpen }, children: [this.props.sidebarStartOpen ? 'Close' : 'Open', " navigation sidebar"] }), hasTitle && (jsx("h2", { children: jsx("slot", { name: "title" }) }))] }), jsx("div", { className: "sidebar__content", children: jsx("slot", { name: "sidebar-start" }) })] }) })), jsx("main", { className: "main", children: jsx("slot", {}) }), hasSidebarEnd && this.props.isMediaQueryM && (jsx("aside", { className: "sidebar sidebar--end", inert: !this.props.sidebarEndOpen, "aria-label": `Settings sidebar ${this.props.sidebarEndOpen ? 'open' : 'closed'}`, tabIndex: -1, children: jsxs("div", { className: "sidebar__scroller", children: [jsxs("div", { className: "sidebar__header sidebar__header--end", children: [jsx("slot", { name: "sidebar-end-header" }), jsxs(PButton, { theme: this.props.theme, icon: "close", variant: "ghost", compact: true, "hide-label": "true", aria: { 'aria-expanded': this.props.sidebarEndOpen }, children: [this.props.sidebarEndOpen ? 'Close' : 'Open', " settings sidebar"] })] }), jsx("div", { className: "sidebar__content", children: jsx("slot", { name: "sidebar-end" }) })] }) })), hasFooter && (jsx("footer", { className: "footer", children: jsx("slot", { name: "footer" }) })), hasBackground && jsx("slot", { name: "background" })] }), !this.props.isMediaQueryS && (jsxs(PFlyout, { className: "flyout-start", theme: this.props.theme, open: this.props.sidebarStartOpen, position: "start", children: [hasTitle && (jsx("h2", { slot: "header", children: jsx("slot", { name: "title" }) })), jsx("slot", { name: "sidebar-start" })] })), hasSidebarEnd && !this.props.isMediaQueryM && (jsxs(PFlyout, { className: "flyout-end", theme: this.props.theme, open: this.props.sidebarEndOpen, position: "end", children: [hasSidebarEndHeader && jsx("slot", { slot: "header", name: "sidebar-end-header" }), jsx("slot", { name: "sidebar-end" })] }))] })] }), this.props.children] }));
|
|
48
47
|
}
|
|
49
48
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs
CHANGED
|
@@ -3,8 +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 {
|
|
7
|
-
import { getCarouselCss as getComponentCss$13 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getCarouselCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { isInfinitePagination, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
10
9
|
import { PLinkPure } from '../components/link-pure.wrapper.mjs';
|
|
@@ -48,14 +47,14 @@ class DSRCarousel extends Component {
|
|
|
48
47
|
// 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
|
|
49
48
|
};
|
|
50
49
|
const headingId = 'heading';
|
|
51
|
-
const style = minifyCss(
|
|
50
|
+
const style = minifyCss(getComponentCss$15(this.props.gradientColor, hasHeadingPropOrSlot, hasDescriptionPropOrSlot, hasControlsSlot, this.props.headingSize, this.props.width,
|
|
52
51
|
// flip boolean values of disablePagination since it is the inverse of pagination
|
|
53
52
|
this.props.disablePagination
|
|
54
53
|
? typeof this.props.disablePagination === 'object'
|
|
55
54
|
? Object.fromEntries(Object.entries(this.props.disablePagination).map(([key, value]) => [key, !value]))
|
|
56
55
|
: !this.props.disablePagination
|
|
57
56
|
: this.props.pagination, isInfinitePagination(this.props.focusOnCenterSlide ? this.slides.length : this.props.amountOfPages), (alignHeaderDeprecationMap[this.props.alignHeader] ||
|
|
58
|
-
this.props.alignHeader), this.props.theme, (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length), this.props.alignControls))
|
|
57
|
+
this.props.alignHeader), this.props.theme, (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length), this.props.alignControls));
|
|
59
58
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "header", children: [hasHeadingPropOrSlot &&
|
|
60
59
|
(this.props.heading ? (jsx("h2", { className: "heading", id: headingId, children: this.props.heading })) : (jsx("div", { className: "heading", id: headingId, children: jsx("slot", { name: "heading" }) }))), hasDescriptionPropOrSlot && (this.props.description ? jsx("p", { children: this.props.description }) : jsx("slot", { name: "description" })), hasControlsSlot && jsx("slot", { name: "controls" }), jsxs("div", { className: "nav", children: [this.props.skipLinkTarget && (jsx(PLinkPure, { href: this.props.skipLinkTarget, theme: this.props.theme, icon: "arrow-last", className: "btn skip-link", alignLabel: "start", hideLabel: true, children: "Skip carousel entries" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsx(PButtonPure, { ...btnProps, icon: "arrow-left" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsx(PButtonPure, { ...btnProps, icon: "arrow-right" }))] })] }), jsx("div", { id: "splide", className: "splide", ...parseAndGetAriaAttributes({
|
|
61
60
|
'aria-labelledby': hasHeadingPropOrSlot && !this.props.aria ? headingId : undefined,
|
|
@@ -3,11 +3,10 @@ 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 {
|
|
7
|
-
import { getCheckboxWrapperCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { getCheckboxWrapperCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { LoadingMessage } from './loading-message.mjs';
|
|
9
|
-
import { Label } from './label.mjs';
|
|
10
8
|
import { StateMessage } from './state-message.mjs';
|
|
9
|
+
import { LegacyLabel } from './legacy-label.mjs';
|
|
11
10
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
12
11
|
|
|
13
12
|
/**
|
|
@@ -22,8 +21,8 @@ class DSRCheckboxWrapper extends Component {
|
|
|
22
21
|
render() {
|
|
23
22
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
24
23
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
25
|
-
const style = minifyCss(
|
|
26
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(
|
|
24
|
+
const style = minifyCss(getComponentCss$14(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme));
|
|
25
|
+
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: this.props.loading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", 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] }));
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs
CHANGED
|
@@ -3,10 +3,10 @@ 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 {
|
|
7
|
-
import {
|
|
6
|
+
import { getCheckboxCss as getComponentCss$13 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
+
import { descriptionId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { LoadingMessage } from './loading-message.mjs';
|
|
9
|
-
import { Label
|
|
9
|
+
import { Label } from './label.mjs';
|
|
10
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ class DSRCheckbox extends Component {
|
|
|
32
32
|
render() {
|
|
33
33
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
34
34
|
const id = 'checkbox';
|
|
35
|
-
const style = minifyCss(
|
|
35
|
+
const style = minifyCss(getComponentCss$13(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
|
|
36
36
|
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, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required }), jsxs("div", { className: "wrapper", children: [jsx("input", { type: "checkbox", id: id, "aria-describedby": `${descriptionId} ${messageId}`, "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", 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] }));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -2,8 +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 {
|
|
6
|
-
import { getContentWrapperCss as getComponentCss$10 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
+
import { getContentWrapperCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @slot {"name": "", "description": "Default slot for main content." }
|
|
@@ -13,7 +12,7 @@ class DSRContentWrapper extends Component {
|
|
|
13
12
|
host;
|
|
14
13
|
render() {
|
|
15
14
|
splitChildren(this.props.children);
|
|
16
|
-
const style = minifyCss(
|
|
15
|
+
const style = minifyCss(getComponentCss$12(this.props.width));
|
|
17
16
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
18
17
|
}
|
|
19
18
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs
CHANGED
|
@@ -1,8 +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 {
|
|
5
|
-
import { getCrestCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
4
|
+
import { getCrestCss as getComponentCss$11 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
5
|
import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
6
|
|
|
8
7
|
const { width, height } = crestSize;
|
|
@@ -10,7 +9,7 @@ class DSRCrest extends Component {
|
|
|
10
9
|
host;
|
|
11
10
|
render() {
|
|
12
11
|
const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: buildCrestImgSrc(), width: width, height: height, alt: "Porsche" })] }));
|
|
13
|
-
const style = minifyCss(
|
|
12
|
+
const style = minifyCss(getComponentCss$11());
|
|
14
13
|
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 })) })] }) }));
|
|
15
14
|
}
|
|
16
15
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs
CHANGED
|
@@ -2,8 +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 {
|
|
6
|
-
import { getDisplayCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
+
import { getDisplayCss as getComponentCss$10 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -18,7 +17,7 @@ class DSRDisplay extends Component {
|
|
|
18
17
|
right: 'end',
|
|
19
18
|
};
|
|
20
19
|
const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
|
|
21
|
-
const style = minifyCss(
|
|
20
|
+
const style = minifyCss(getComponentCss$10(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme));
|
|
22
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
23
22
|
}
|
|
24
23
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import { getDividerCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
4
|
+
import { getDividerCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
5
|
|
|
7
6
|
class DSRDivider extends Component {
|
|
8
7
|
host;
|
|
@@ -12,7 +11,7 @@ class DSRDivider extends Component {
|
|
|
12
11
|
'neutral-contrast-medium': 'contrast-medium',
|
|
13
12
|
'neutral-contrast-high': 'contrast-high',
|
|
14
13
|
};
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$$((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme));
|
|
16
15
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { getDrilldownItemCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
+
import { PButtonPure } from '../components/button-pure.wrapper.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @slot {"name": "", "description": "Default slot for the main content." }
|
|
11
|
+
* @slot {"name": "button", "description": "Shows a custom button to reach a deeper level of the navigation structure." } *
|
|
12
|
+
* @slot {"name": "header", "description": "Shows a custom header section on mobile view" } *
|
|
13
|
+
* @experimental
|
|
14
|
+
*/
|
|
15
|
+
class DSRDrilldownItem extends Component {
|
|
16
|
+
host;
|
|
17
|
+
scroller;
|
|
18
|
+
hasSlottedHeader;
|
|
19
|
+
hasSlottedButton;
|
|
20
|
+
get theme() {
|
|
21
|
+
return this.props.theme || 'light'; // default as fallback (internal private prop is controlled by drilldown)
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
25
|
+
const hasSlottedHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
26
|
+
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
27
|
+
const style = minifyCss(getComponentCss$Z(this.props.primary, this.props.secondary, this.props.cascade));
|
|
28
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("slot", { name: "button" })) : (jsx(PButtonPure, { inert: this.props.primary || this.props.cascade, className: "button", type: "button", size: "medium", alignLabel: "start", stretch: true, icon: "arrow-head-right", active: this.props.secondary, aria: { 'aria-expanded': this.props.secondary }, theme: this.theme, children: this.props.label })), jsx(PButtonPure, { className: "back", type: "button", size: "small", alignLabel: "end", stretch: true, icon: "arrow-left", theme: this.theme, hideLabel: { base: true, s: false }, children: this.props.label }), hasSlottedHeader ? jsx("slot", { name: "header" }) : jsx("h2", { children: this.props.label }), jsx("div", { className: "drawer", children: jsx("div", { className: "scroller", children: jsx("slot", {}) }) })] })] }), this.props.children] }));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { DSRDrilldownItem };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { splitChildren } from '../../splitChildren.mjs';
|
|
3
|
+
import { Component } from 'react';
|
|
4
|
+
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
+
import { getDrilldownLinkCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
+
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @slot {"name": "", "description": "Default slot to render the link label." }
|
|
10
|
+
*
|
|
11
|
+
* @experimental
|
|
12
|
+
*/
|
|
13
|
+
class DSRDrilldownLink extends Component {
|
|
14
|
+
host;
|
|
15
|
+
render() {
|
|
16
|
+
splitChildren(this.props.children);
|
|
17
|
+
const hasSlottedAnchor = this.props.href === undefined;
|
|
18
|
+
const style = minifyCss(getComponentCss$Y(hasSlottedAnchor, this.props.active));
|
|
19
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: hasSlottedAnchor ? (jsx("slot", {})) : (jsx("a", { href: this.props.href, target: this.props.target, download: this.props.download, rel: this.props.rel, "aria-current": this.props.active ? 'true' : 'false', ...parseAndGetAriaAttributes(this.props.aria), children: jsx("slot", {}) })) })] }), this.props.children] }));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { DSRDrilldownLink };
|