@porsche-design-system/components-react 3.27.2 → 3.28.0-rc.0
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 +26 -1
- 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 +623 -451
- 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 +595 -425
- 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
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs
CHANGED
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getOptgroupCss as getComponentCss$B } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -14,7 +13,7 @@ class DSROptgroup extends Component {
|
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
14
|
const { theme = 'light', hidden } = this.props;
|
|
16
15
|
const labelId = 'label';
|
|
17
|
-
const style = minifyCss(
|
|
16
|
+
const style = minifyCss(getComponentCss$B(this.props.disabled, theme));
|
|
18
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "group", "aria-disabled": this.props.disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, "aria-labelledby": labelId, children: [jsx("span", { id: labelId, role: "presentation", children: this.props.label }), jsx("slot", {})] }) })] }), this.props.children] }));
|
|
19
18
|
}
|
|
20
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
-
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getPaginationCss as getComponentCss$A } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
import { getTotalPages, createPaginationItems, getCurrentActivePage, ItemType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
7
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -19,7 +18,7 @@ class DSRPagination extends Component {
|
|
|
19
18
|
pageTotal,
|
|
20
19
|
showLastPage: this.props.showLastPage,
|
|
21
20
|
});
|
|
22
|
-
const style = minifyCss(
|
|
21
|
+
const style = minifyCss(getComponentCss$A(this.props.activePage, pageTotal, this.props.showLastPage, this.props.theme));
|
|
23
22
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("nav", { "aria-label": this.props.allyLabel || this.props.intl.root, children: jsx("ul", { children: paginationItems.map((pageModel, index) => {
|
|
24
23
|
const { type, isActive, value, isBeforeCurrent, isAfterCurrent, isBeforeBeforeCurrent, isAfterAfterCurrent, } = pageModel;
|
|
25
24
|
const spanProps = {
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs
CHANGED
|
@@ -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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getPinCodeCss as getComponentCss$z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
|
-
import { isCurrentInput } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
|
+
import { isCurrentInput, labelId, descriptionId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { LoadingMessage } from './loading-message.mjs';
|
|
10
|
-
import { Label
|
|
9
|
+
import { Label } from './label.mjs';
|
|
11
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
12
11
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
13
12
|
|
|
@@ -38,7 +37,7 @@ class DSRPinCode extends Component {
|
|
|
38
37
|
// reset array of input elements
|
|
39
38
|
this.inputElements = [];
|
|
40
39
|
const currentInputId = 'current-input';
|
|
41
|
-
const style = minifyCss(
|
|
40
|
+
const style = minifyCss(getComponentCss$z(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.length, this.props.theme));
|
|
42
41
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: currentInputId, isRequired: this.props.required, isLoading: this.props.loading, isDisabled: this.props.disabled }), jsxs("div", { className: "wrapper", children: [Array.from(new Array(this.props.length), (_, index) => (jsx("input", { name: this.props.name, form: this.props.form, ...(isCurrentInput(index, this.props.value, this.props.length) && { id: currentInputId }), type: this.props.type === 'number' ? 'text' : this.props.type, "aria-label": `${index + 1}-${this.props.length}`, "aria-describedby": `${labelId} ${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading ? 'true' : null, autoComplete: "one-time-code", pattern: "\\d*", inputMode: "numeric" // get numeric keyboard on mobile
|
|
43
42
|
, defaultValue: this.props.value[index] === ' ' ? null : this.props.value[index], disabled: this.props.disabled, required: this.props.required }, index))), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
44
43
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getPopoverCss as getComponentCss$y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { getHasNativePopoverSupport, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -21,7 +20,7 @@ class DSRPopover extends Component {
|
|
|
21
20
|
hasNativePopoverSupport = getHasNativePopoverSupport();
|
|
22
21
|
render() {
|
|
23
22
|
splitChildren(this.props.children);
|
|
24
|
-
const style = minifyCss(
|
|
23
|
+
const style = minifyCss(getComponentCss$y(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
|
|
25
24
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { type: "button", ...parseAndGetAriaAttributes({
|
|
26
25
|
...parseAndGetAriaAttributes(this.props.aria),
|
|
27
26
|
...{ 'aria-expanded': this.props.isOpen },
|
|
@@ -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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getRadioButtonWrapperCss as getComponentCss$x } 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
|
/**
|
|
@@ -23,8 +22,8 @@ class DSRRadioButtonWrapper extends Component {
|
|
|
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
24
|
const isLoading = this.props.loading && !(typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && (otherChildren[0]?.props.checked || otherChildren[0]?.props.defaultChecked)); // spinner is only displayed when radio is not checked already
|
|
26
|
-
const style = minifyCss(
|
|
27
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(
|
|
25
|
+
const style = minifyCss(getComponentCss$x(this.props.hideLabel, this.props.state, disabled, isLoading, this.props.theme));
|
|
26
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, isLoading: isLoading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), isLoading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: isLoading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getScrollerCss as getComponentCss$w } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { scrollAreaClass, parseAndGetAriaAttributes, isScrollable } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
@@ -27,7 +26,7 @@ class DSRScroller extends Component {
|
|
|
27
26
|
return (jsx("div", { className: direction === 'next' ? 'action-next' : 'action-prev', children: jsx(PButton, { className: "action-button", variant: "ghost", "hide-label": "true", icon: direction === 'next' ? 'arrow-head-right' : 'arrow-head-left', type: "button", tabIndex: -1, theme: this.props.theme, dir: "ltr" // Otherwise icon will be flipped which doesn't make sense in this use case
|
|
28
27
|
, children: direction }) }, direction));
|
|
29
28
|
};
|
|
30
|
-
const style = minifyCss(
|
|
29
|
+
const style = minifyCss(getComponentCss$w(deprecationMap[this.props.gradientColorScheme] || this.props.gradientColor, this.isNextHidden, this.isPrevHidden, this.props.scrollIndicatorPosition || this.props.alignScrollIndicator, this.props.scrollbar, this.props.theme));
|
|
31
30
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: scrollAreaClass, children: jsxs("div", { className: "scroll-wrapper", role: parseAndGetAriaAttributes(this.props.aria)?.role || null, tabIndex: isScrollable(this.isPrevHidden, this.isNextHidden) ? 0 : null, children: [jsx("slot", {}), jsx("div", { className: "trigger" }), jsx("div", { className: "trigger" })] }) }), ['prev', 'next'].map(renderPrevNextButton)] })] }), this.props.children] }));
|
|
32
31
|
}
|
|
33
32
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getSegmentedControlItemCss as getComponentCss$v } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { getSegmentedControlItemAriaAttributes, getIconColor } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -19,8 +18,8 @@ class DSRSegmentedControlItem extends Component {
|
|
|
19
18
|
const hasIcon = !!this.props.icon || !!this.props.iconSource;
|
|
20
19
|
const hasSlottedContent = !!children.length;
|
|
21
20
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
22
|
-
const style = minifyCss(
|
|
23
|
-
))
|
|
21
|
+
const style = minifyCss(getComponentCss$v(isDisabled, this.props.selected, hasIcon, hasSlottedContent, this.props.theme || 'light' // default as fallback
|
|
22
|
+
));
|
|
24
23
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("button", { type: "button", ...getSegmentedControlItemAriaAttributes(this.props.selected, this.props.disabled, this.props.aria), children: [this.props.label && jsx("span", { children: this.props.label }), hasIcon && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.icon, source: this.props.iconSource, color: getIconColor(this.props.disabled), theme: this.props.theme || 'light', "aria-hidden": "true" })), jsx("slot", {})] }) })] }), this.props.children] }));
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getSegmentedControlCss as getComponentCss$u } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -26,7 +25,7 @@ class DSRSegmentedControl extends Component {
|
|
|
26
25
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
27
26
|
? { ...child, props: { ...child.props, selected: child.props?.value === this.props.value, backgroundColor: this.props.backgroundColor, theme: this.props.theme } }
|
|
28
27
|
: child);
|
|
29
|
-
const style = minifyCss(
|
|
28
|
+
const style = minifyCss(getComponentCss$u(100, this.props.columns));
|
|
30
29
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), manipulatedChildren] }));
|
|
31
30
|
}
|
|
32
31
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getSelectOptionCss as getComponentCss$r } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { getOptionAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -17,7 +16,7 @@ class DSRSelectOption extends Component {
|
|
|
17
16
|
splitChildren(this.props.children);
|
|
18
17
|
const { theme = 'light', selected, highlighted, hidden } = this.props;
|
|
19
18
|
const isDisabled = this.props.disabled || this.props.disabledParent;
|
|
20
|
-
const style = minifyCss(
|
|
19
|
+
const style = minifyCss(getComponentCss$r(theme));
|
|
21
20
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "option", className: {
|
|
22
21
|
option: true,
|
|
23
22
|
'option--selected': selected,
|
|
@@ -2,7 +2,6 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import '../../provider.mjs';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
|
-
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getSelectWrapperDropdownCss as getComponentCss$t } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
import { getHasNativePopoverSupport, getSelectedOptionMap } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
7
|
|
|
@@ -24,7 +23,7 @@ class DSRSelectWrapperDropdown extends Component {
|
|
|
24
23
|
const inputId = 'filter';
|
|
25
24
|
this.props.description && 'description';
|
|
26
25
|
const buttonId = 'value';
|
|
27
|
-
const style = minifyCss(
|
|
26
|
+
const style = minifyCss(getComponentCss$t(this.isOpen, this.props.state, this.props.disabled, this.props.filter, this.props.theme));
|
|
28
27
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.filter ? ([
|
|
29
28
|
jsx("input", { id: inputId, type: "text", role: "combobox", disabled: this.props.disabled, placeholder: getSelectedOptionMap(this.optionMaps)?.value || null, autoComplete: "off", defaultValue: this.searchString }, "input"),
|
|
30
29
|
jsx("span", {
|
|
@@ -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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getSelectWrapperCss as getComponentCss$s } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { isCustomDropdown } from '../../../../../../components/dist/utils/esm/utils-entry.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 { PIcon } from '../components/icon.wrapper.mjs';
|
|
12
11
|
import { PSelectWrapperDropdown } from '../components/select-wrapper-dropdown.wrapper.mjs';
|
|
13
12
|
|
|
@@ -25,8 +24,8 @@ class DSRSelectWrapper extends Component {
|
|
|
25
24
|
const hasCustomDropdown = isCustomDropdown(this.props.filter, this.props.native);
|
|
26
25
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
27
26
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
28
|
-
const style = minifyCss(
|
|
29
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(
|
|
27
|
+
const style = minifyCss(getComponentCss$s(disabled, hasCustomDropdown, this.props.hideLabel, this.props.state, this.props.theme));
|
|
28
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", 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, description: this.props.description, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" }), hasCustomDropdown && !disabled && (jsx(PSelectWrapperDropdown, { className: "dropdown", selectRef: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props, label: this.props.label || namedSlotChildren.find(({ props: { slot } }) => slot === 'label')?.props.children, message: this.props.message || namedSlotChildren.find(({ props: { slot } }) => slot === 'message')?.props.children, description: this.props.description || namedSlotChildren.find(({ props: { slot } }) => slot === 'description')?.props.children, state: this.props.state, direction: this.props.dropdownDirection, filter: this.props.filter, theme: this.props.theme, required: false, disabled: disabled, onOpenChange: (isOpen) => this.props.iconElement.classList.toggle('icon--open', isOpen) }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -3,10 +3,9 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getSelectCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
|
-
import { getHasNativePopoverSupport, getSelectedOptionString, getComboboxAriaAttributes, getListAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
|
-
import { Label
|
|
7
|
+
import { getHasNativePopoverSupport, getSelectedOptionString, getComboboxAriaAttributes, getListAriaAttributes, labelId } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { Label } from './label.mjs';
|
|
10
9
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
10
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
12
11
|
|
|
@@ -52,7 +51,7 @@ class DSRSelect extends Component {
|
|
|
52
51
|
const initialStatusId = 'initial-status';
|
|
53
52
|
const ariaDescribedBy = [descriptionId, selectMessageId, initialStatusId].filter(Boolean).join(' ');
|
|
54
53
|
const selectedOption = getSelectedOptionString(otherChildren);
|
|
55
|
-
const style = minifyCss(
|
|
54
|
+
const style = minifyCss(getComponentCss$q(this.props.isOpen, this.props.disabled, this.props.hideLabel, this.props.state, this.props.compact, this.props.theme, !!this.props.slottedImagePath));
|
|
56
55
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, description: this.props.description, htmlFor: buttonId, isRequired: this.props.required, isDisabled: this.props.disabled }), jsxs("button", { "aria-invalid": this.props.state === 'error' ? 'true' : null, type: "button", role: "combobox", id: buttonId, ...getComboboxAriaAttributes(this.props.isOpen, this.props.required, labelId, ariaDescribedBy, popoverId), disabled: this.props.disabled, children: [this.props.slottedImagePath && jsx("img", { src: this.props.slottedImagePath, alt: "" }), jsx("span", { children: selectedOption }), jsx(PIcon, { className: "icon", name: "arrow-head-down", theme: this.props.theme, color: this.props.disabled ? 'state-disabled' : 'primary', "aria-hidden": "true" })] }), jsx("div", { id: popoverId, popover: "manual", tabIndex: -1, ...getListAriaAttributes(this.props.label, this.props.required, false, this.props.isOpen), children: jsx("slot", {}) }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx("span", { className: "sr-only", role: "status", "aria-live": "assertive", "aria-relevant": "additions text", children: this.props.srHighlightedOptionText })] })] }), this.props.children] }));
|
|
57
56
|
}
|
|
58
57
|
getSelectedOptionImagePath = (options) => {
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getSheetCss as getComponentCss$p } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PButton } from '../components/button.wrapper.mjs';
|
|
@@ -23,7 +22,7 @@ class DSRSheet extends Component {
|
|
|
23
22
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
24
23
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
25
24
|
if (this.props.open) ;
|
|
26
|
-
const style = minifyCss(
|
|
25
|
+
const style = minifyCss(getComponentCss$p(this.props.open, this.props.dismissButton, this.props.theme));
|
|
27
26
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { inert: !this.props.open, tabIndex: -1, ...parseAndGetAriaAttributes({
|
|
28
27
|
'aria-modal': true,
|
|
29
28
|
...(hasHeader && {
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
4
|
import { getSpinnerCss as getComponentCss$o } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
5
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
6
|
|
|
8
7
|
class DSRSpinner extends Component {
|
|
9
8
|
host;
|
|
10
9
|
render() {
|
|
11
|
-
const style = minifyCss(
|
|
10
|
+
const style = minifyCss(getComponentCss$o(this.props.size, this.props.theme));
|
|
12
11
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("span", { className: "root", role: "alert", "aria-live": "assertive", ...parseAndGetAriaAttributes(this.props.aria), children: [jsx("span", { className: "sr-only", children: "\u00A0" }), jsxs("svg", { viewBox: "-16 -16 32 32", width: "100%", height: "100%", focusable: "false", "aria-hidden": "true", children: [jsx("circle", { r: "9" }), jsx("circle", { r: "9" })] })] })] }) }));
|
|
13
12
|
}
|
|
14
13
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getStepperHorizontalItemCss as getComponentCss$n } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { isStateCompleteOrWarning, getStepperHorizontalIconName } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -15,7 +14,7 @@ class DSRStepperHorizontalItem extends Component {
|
|
|
15
14
|
host;
|
|
16
15
|
render() {
|
|
17
16
|
splitChildren(this.props.children);
|
|
18
|
-
const style = minifyCss(
|
|
17
|
+
const style = minifyCss(getComponentCss$n(this.props.state, this.props.disabled, this.props.theme || 'light'));
|
|
19
18
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("button", { type: "button", "aria-disabled": !this.props.state || this.props.disabled ? 'true' : null, "aria-current": this.props.state === 'current' ? 'step' : null, children: [isStateCompleteOrWarning(this.props.state) && (jsx(PIcon, { className: "icon", name: getStepperHorizontalIconName(this.props.state), size: "inherit", theme: this.props.theme || 'light', color: this.props.disabled ? 'state-disabled' : `notification-${getStepperHorizontalIconName(this.props.state)}`, "aria-hidden": "true" })), this.props.state && jsxs("span", { className: "sr-only", children: [this.props.state, ": "] }), jsx("slot", {})] }) })] }), this.props.children] }));
|
|
20
19
|
}
|
|
21
20
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getStepperHorizontalCss as getComponentCss$m } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
9
8
|
|
|
@@ -20,7 +19,7 @@ class DSRStepperHorizontal extends Component {
|
|
|
20
19
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
21
20
|
? { ...child, props: { ...child.props, theme: this.props.theme } }
|
|
22
21
|
: child);
|
|
23
|
-
const style = minifyCss(
|
|
22
|
+
const style = minifyCss(getComponentCss$m(this.props.size));
|
|
24
23
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx(PScroller, { className: "scroller", aria: { role: 'list' }, theme: this.props.theme, children: jsx("slot", {}) }) })] }), manipulatedChildren] }));
|
|
25
24
|
}
|
|
26
25
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getSwitchCss as getComponentCss$l } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { getSwitchButtonAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { loadingId, LoadingMessage } from './loading-message.mjs';
|
|
@@ -19,7 +18,7 @@ class DSRSwitch extends Component {
|
|
|
19
18
|
initialLoading = false;
|
|
20
19
|
render() {
|
|
21
20
|
splitChildren(this.props.children);
|
|
22
|
-
const style = minifyCss(
|
|
21
|
+
const style = minifyCss(getComponentCss$l(this.props.alignLabel, this.props.hideLabel, this.props.stretch, this.props.checked, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
|
|
23
22
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx("button", { ...getSwitchButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.checked), id: "switch", type: "button", role: "switch", "aria-labelledby": "label" // only relevant for axe-core because of https://github.com/dequelabs/axe-core/issues/1393
|
|
24
23
|
, "aria-describedby": this.props.loading ? loadingId : undefined, children: jsx("span", { className: "toggle", children: this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" })) }) }), jsx("label", { id: "label", htmlFor: "switch", children: jsx("slot", {}) }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
25
24
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs
CHANGED
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getTableBodyCss as getComponentCss$k } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -12,7 +11,7 @@ class DSRTableBody extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$k());
|
|
16
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
16
|
}
|
|
18
17
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs
CHANGED
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getTableCellCss as getComponentCss$i } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -12,7 +11,7 @@ class DSRTableCell extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$i(this.props.multiline));
|
|
16
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getTableHeadCellCss as getComponentCss$h } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { isSortable } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -16,7 +15,7 @@ class DSRTableHeadCell extends Component {
|
|
|
16
15
|
render() {
|
|
17
16
|
splitChildren(this.props.children);
|
|
18
17
|
const { active, direction } = this.props.sort || {};
|
|
19
|
-
const style = minifyCss(
|
|
18
|
+
const style = minifyCss(getComponentCss$h(active, direction, this.props.hideLabel, this.props.multiline));
|
|
20
19
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: isSortable(active, direction) ? (jsxs("button", { type: "button", children: [jsx("slot", {}), jsx(PIcon, { className: "icon", color: "inherit", size: "x-small", name: "arrow-up", "aria-hidden": "true" })] })) : (jsx("span", { children: jsx("slot", {}) })) })] }), this.props.children] }));
|
|
21
20
|
}
|
|
22
21
|
}
|
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getTableHeadRowCss as getComponentCss$g } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -12,7 +11,7 @@ class DSRTableHeadRow extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$g());
|
|
16
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
16
|
}
|
|
18
17
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs
CHANGED
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getTableHeadCss as getComponentCss$f } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -12,7 +11,7 @@ class DSRTableHead extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$f());
|
|
16
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
16
|
}
|
|
18
17
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs
CHANGED
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getTableRowCss as getComponentCss$e } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -12,7 +11,7 @@ class DSRTableRow extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
14
|
+
const style = minifyCss(getComponentCss$e());
|
|
16
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
17
16
|
}
|
|
18
17
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getTableCss as getComponentCss$j } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
9
8
|
|
|
@@ -20,7 +19,7 @@ class DSRTable extends Component {
|
|
|
20
19
|
const tableAttr = this.props.caption
|
|
21
20
|
? { 'aria-label': this.props.caption }
|
|
22
21
|
: hasSlottedCaption && { 'aria-labelledby': captionId };
|
|
23
|
-
const style = minifyCss(
|
|
22
|
+
const style = minifyCss(getComponentCss$j(this.props.compact, this.props.layout, this.props.theme));
|
|
24
23
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedCaption && (jsx("div", { id: captionId, className: "caption", children: jsx("slot", { name: "caption" }) })), jsx(PScroller, { scrollbar: true, theme: this.props.theme, children: jsx("div", { className: "table", role: "table", ...tableAttr, children: jsx("slot", {}) }) })] })] }), this.props.children] }));
|
|
25
24
|
}
|
|
26
25
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs
CHANGED
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getTabsBarCss as getComponentCss$d } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
9
8
|
|
|
@@ -47,7 +46,7 @@ class DSRTabsBar extends Component {
|
|
|
47
46
|
const deprecationMap = {
|
|
48
47
|
semibold: 'semi-bold',
|
|
49
48
|
};
|
|
50
|
-
const style = minifyCss(
|
|
49
|
+
const style = minifyCss(getComponentCss$d(this.props.size, (deprecationMap[this.props.weight] || this.props.weight), this.props.theme));
|
|
51
50
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", ...(this.props.areTabsButtons && { aria: { role: 'tablist' } }), theme: this.props.theme, gradientColorScheme: this.props.gradientColorScheme, gradientColor: this.props.gradientColor, alignScrollIndicator: "top", children: [jsx("slot", {}), jsx("span", { className: "bar" })] })] }), manipulatedChildren] }));
|
|
52
51
|
}
|
|
53
52
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs
CHANGED
|
@@ -2,7 +2,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
5
|
import { getTabsItemCss as getComponentCss$c } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -12,8 +11,8 @@ class DSRTabsItem extends Component {
|
|
|
12
11
|
host;
|
|
13
12
|
render() {
|
|
14
13
|
splitChildren(this.props.children);
|
|
15
|
-
const style = minifyCss(
|
|
16
|
-
))
|
|
14
|
+
const style = minifyCss(getComponentCss$c(this.props.theme || 'light' // default as fallback
|
|
15
|
+
));
|
|
17
16
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getTabsCss as getComponentCss$b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { PTabsBar } from '../components/tabs-bar.wrapper.mjs';
|
|
9
8
|
|
|
@@ -20,7 +19,7 @@ class DSRTabs extends Component {
|
|
|
20
19
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
21
20
|
? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
|
|
22
21
|
: child);
|
|
23
|
-
const style = minifyCss(
|
|
22
|
+
const style = minifyCss(getComponentCss$b());
|
|
24
23
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PTabsBar, { className: "root", size: this.props.size, weight: this.props.weight, theme: this.props.theme, gradientColorScheme: this.props.gradientColorScheme, gradientColor: this.props.gradientColor, activeTabIndex: this.props.activeTabIndex, children: otherChildren.map((tab, index) => (jsx("button", { type: "button", children: typeof tab === 'object' && 'props' in tab && tab.props.label }, index))) }), jsx("slot", {})] })] }), manipulatedChildren] }));
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getTagDismissibleCss as getComponentCss$a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -18,7 +17,7 @@ class DSRTagDismissible extends Component {
|
|
|
18
17
|
const deprecationMap = {
|
|
19
18
|
'background-default': 'background-base',
|
|
20
19
|
};
|
|
21
|
-
const style = minifyCss(
|
|
20
|
+
const style = minifyCss(getComponentCss$a((deprecationMap[this.props.color] || this.props.color), !!this.props.label, this.props.theme));
|
|
22
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { type: "button", ...parseAndGetAriaAttributes(this.props.aria), children: [jsx("span", { className: "sr-only", children: "Remove:" }), jsxs("span", { children: [this.props.label && jsx("span", { className: "label", children: this.props.label }), jsx("slot", {})] }), jsx(PIcon, { className: "icon", name: "close", theme: this.props.theme, "aria-hidden": "true" })] })] }), this.props.children] }));
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -3,7 +3,6 @@ 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 { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
7
6
|
import { getTagCss as getComponentCss$9 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
8
7
|
import { getDirectChildHTMLElement } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
9
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
@@ -24,7 +23,7 @@ class DSRTag extends Component {
|
|
|
24
23
|
'notification-success': 'notification-success-soft',
|
|
25
24
|
'notification-error': 'notification-error-soft',
|
|
26
25
|
};
|
|
27
|
-
const style = minifyCss(
|
|
26
|
+
const style = minifyCss(getComponentCss$9((deprecationMap[this.props.color] || this.props.color), this.props.compact, !!getDirectChildHTMLElement(null, 'a,button'), hasIcon, this.props.theme));
|
|
28
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("span", { children: [hasIcon && (jsx(PIcon, { className: "icon", name: this.props.icon, source: this.props.iconSource, color: "primary", size: "x-small", theme: this.props.theme, "aria-hidden": "true" })), jsx("slot", {})] })] }), this.props.children] }));
|
|
29
28
|
}
|
|
30
29
|
}
|