@porsche-design-system/components-react 3.10.0-rc.0 → 3.10.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 +12 -0
- package/cjs/lib/components/link-tile-product.wrapper.cjs +26 -0
- package/cjs/public-api.cjs +2 -0
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +96 -0
- package/esm/lib/components/link-tile-product.wrapper.mjs +24 -0
- package/esm/lib/types.d.ts +9 -0
- package/esm/public-api.mjs +1 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +230 -58
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-product.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +92 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +201 -30
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +3 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-product.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +90 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +96 -0
- package/ssr/esm/lib/dsr-components/flyout-navigation.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +6 -0
- package/ssr/esm/lib/types.d.ts +9 -0
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
30
30
|
import '../components/link-social.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile.wrapper.mjs';
|
|
32
32
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
33
34
|
import '../components/marque.wrapper.mjs';
|
|
34
35
|
import '../components/modal.wrapper.mjs';
|
|
35
36
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import '../components/wordmark.wrapper.mjs';
|
|
|
69
70
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getButtonTileCss as getComponentCss
|
|
73
|
+
import { getButtonTileCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { isDisabledOrLoading } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
75
76
|
class DSRButtonTile extends Component {
|
|
@@ -87,7 +88,7 @@ class DSRButtonTile extends Component {
|
|
|
87
88
|
};
|
|
88
89
|
const button = (createElement(PButton, { ...buttonProps, icon: this.props.icon, key: "link-or-button", className: "link-or-button" }, this.props.label));
|
|
89
90
|
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));
|
|
90
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss
|
|
91
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$$(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)));
|
|
91
92
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: "image-container", children: jsx("slot", {}) }), jsxs("div", { className: "content", children: [jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? buttonPure : button) : [buttonPure, button]] })] })] }), this.props.children] }));
|
|
92
93
|
}
|
|
93
94
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,14 +70,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getButtonCss as getComponentCss$
|
|
73
|
+
import { getButtonCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { getButtonAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
75
76
|
class DSRButton extends Component {
|
|
76
77
|
host;
|
|
77
78
|
render() {
|
|
78
79
|
splitChildren(this.props.children);
|
|
79
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
80
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$_(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.theme)));
|
|
80
81
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), 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, children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, aria: { 'aria-label': 'Loading state' } })), 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", {}) })] })] }), this.props.children] }));
|
|
81
82
|
}
|
|
82
83
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import { PLinkPure } from '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getCarouselCss as getComponentCss$
|
|
73
|
+
import { getCarouselCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { isInfinitePagination } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
75
76
|
class DSRCarousel extends Component {
|
|
@@ -96,7 +97,7 @@ class DSRCarousel extends Component {
|
|
|
96
97
|
theme: this.props.theme,
|
|
97
98
|
// 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
|
|
98
99
|
};
|
|
99
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
100
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Z(this.props.width,
|
|
100
101
|
// flip boolean values of disablePagination since it is the inverse of pagination
|
|
101
102
|
this.props.disablePagination
|
|
102
103
|
? typeof this.props.disablePagination === 'object'
|
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getCheckboxWrapperCss as getComponentCss$
|
|
73
|
+
import { getCheckboxWrapperCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { StateMessage } from './state-message.mjs';
|
|
74
75
|
import { Label } from './label.mjs';
|
|
75
76
|
|
|
@@ -79,7 +80,7 @@ class DSRCheckboxWrapper extends Component {
|
|
|
79
80
|
render() {
|
|
80
81
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
81
82
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
82
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
83
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme)));
|
|
83
84
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", 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, 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: { 'aria-label': `Loading state of ${this.props.label}` } }))] }), 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] }));
|
|
84
85
|
}
|
|
85
86
|
}
|
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getContentWrapperCss as getComponentCss$
|
|
6
|
+
import { getContentWrapperCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRContentWrapper extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$X(this.props.width)));
|
|
14
14
|
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] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getCrestCss as getComponentCss$
|
|
5
|
+
import { getCrestCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
|
|
8
8
|
const { width, height } = crestSize;
|
|
@@ -10,7 +10,7 @@ class DSRCrest extends Component {
|
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
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(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$W()));
|
|
14
14
|
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
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getDisplayCss as getComponentCss$
|
|
6
|
+
import { getDisplayCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
class DSRDisplay extends Component {
|
|
@@ -15,7 +15,7 @@ class DSRDisplay extends Component {
|
|
|
15
15
|
right: 'end',
|
|
16
16
|
};
|
|
17
17
|
const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
|
|
18
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
18
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$V(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
|
|
19
19
|
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] }));
|
|
20
20
|
}
|
|
21
21
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getDividerCss as getComponentCss$
|
|
5
|
+
import { getDividerCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRDivider extends Component {
|
|
8
8
|
host;
|
|
@@ -12,7 +12,7 @@ class DSRDivider extends Component {
|
|
|
12
12
|
'neutral-contrast-medium': 'contrast-medium',
|
|
13
13
|
'neutral-contrast-high': 'contrast-high',
|
|
14
14
|
};
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$U((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
|
|
16
16
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFieldsetWrapperCss as getComponentCss$
|
|
6
|
+
import { getFieldsetWrapperCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
8
8
|
import { Required } from './required.mjs';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ class DSRFieldsetWrapper extends Component {
|
|
|
13
13
|
render() {
|
|
14
14
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
15
15
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
16
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
16
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFieldsetCss as getComponentCss$
|
|
6
|
+
import { getFieldsetCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
8
8
|
import { Required } from './required.mjs';
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ class DSRFieldset extends Component {
|
|
|
12
12
|
render() {
|
|
13
13
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
14
14
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
|
|
16
16
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
|
17
17
|
}
|
|
18
18
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFlexItemCss as getComponentCss$
|
|
6
|
+
import { getFlexItemCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
9
9
|
class DSRFlexItem extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFlexCss as getComponentCss$
|
|
6
|
+
import { getFlexCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
9
9
|
class DSRFlex extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getFlyoutNavigationItemCss as getComponentCss$
|
|
73
|
+
import { getFlyoutNavigationItemCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
|
|
74
75
|
class DSRFlyoutNavigationItem extends Component {
|
|
75
76
|
host;
|
|
@@ -81,7 +82,7 @@ class DSRFlyoutNavigationItem extends Component {
|
|
|
81
82
|
}
|
|
82
83
|
render() {
|
|
83
84
|
splitChildren(this.props.children);
|
|
84
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
85
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.open, this.theme)));
|
|
85
86
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PButtonPure, { className: "button", type: "button", size: "medium", alignLabel: "start", stretch: true, icon: "arrow-head-right", active: this.open, aria: { 'aria-expanded': this.open }, theme: this.theme, children: this.props.label }), jsxs("div", { className: "scroller",
|
|
86
87
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
87
88
|
/* @ts-ignore */
|
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,9 +70,10 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getFlyoutNavigationCss as getComponentCss$
|
|
73
|
+
import { getFlyoutNavigationCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
76
|
+
/** __Experimental__ */
|
|
75
77
|
class DSRFlyoutNavigation extends Component {
|
|
76
78
|
host;
|
|
77
79
|
// TODO: shouldn't open prop be changed internally too?
|
|
@@ -79,7 +81,7 @@ class DSRFlyoutNavigation extends Component {
|
|
|
79
81
|
flyoutNavigationItemElements = [];
|
|
80
82
|
render() {
|
|
81
83
|
splitChildren(this.props.children);
|
|
82
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
84
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P(this.props.open, !!this.props.activeIdentifier, this.props.theme)));
|
|
83
85
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("dialog", {
|
|
84
86
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
85
87
|
/* @ts-ignore */
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getFlyoutCss as getComponentCss$
|
|
73
|
+
import { getFlyoutCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
75
76
|
class DSRFlyout extends Component {
|
|
@@ -92,7 +93,7 @@ class DSRFlyout extends Component {
|
|
|
92
93
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
93
94
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
94
95
|
const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
|
|
95
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
96
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N(this.props.open, (positionDeprecationMap[this.props.position] || this.props.position), hasFooter, hasSubFooter, this.props.theme)));
|
|
96
97
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { className: "root", role: "dialog", ...parseAndGetAriaAttributes({
|
|
97
98
|
'aria-modal': true,
|
|
98
99
|
'aria-hidden': !this.props.open,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getGridItemCss as getComponentCss$
|
|
6
|
+
import { getGridItemCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRGridItem extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.size, this.props.offset)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getGridCss as getComponentCss$
|
|
6
|
+
import { getGridCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRGrid extends Component {
|
|
@@ -13,7 +13,7 @@ class DSRGrid extends Component {
|
|
|
13
13
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
14
14
|
? { ...child, props: { ...child.props, gutter: this.props.gutter } }
|
|
15
15
|
: child);
|
|
16
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
16
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.direction, this.props.wrap)));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), manipulatedChildren] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getHeadingCss as getComponentCss$
|
|
6
|
+
import { getHeadingCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getHeadingTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
class DSRHeading extends Component {
|
|
@@ -15,7 +15,7 @@ class DSRHeading extends Component {
|
|
|
15
15
|
right: 'end',
|
|
16
16
|
};
|
|
17
17
|
const TagType = getHeadingTagType(null, this.props.size, this.props.tag);
|
|
18
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
18
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
|
|
19
19
|
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] }));
|
|
20
20
|
}
|
|
21
21
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getHeadlineCss as getComponentCss$
|
|
6
|
+
import { getHeadlineCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getHeadlineTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
@@ -16,7 +16,7 @@ class DSRHeadline extends Component {
|
|
|
16
16
|
right: 'end',
|
|
17
17
|
};
|
|
18
18
|
const TagType = getHeadlineTagType(null, this.props.variant, this.props.tag);
|
|
19
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
19
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.variant, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
|
|
20
20
|
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] }));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getIconCss as getComponentCss$
|
|
5
|
+
import { getIconCss as getComponentCss$I } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { buildIconUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
|
|
8
8
|
class DSRIcon extends Component {
|
|
@@ -16,7 +16,7 @@ class DSRIcon extends Component {
|
|
|
16
16
|
'neutral-contrast-high': 'contrast-high',
|
|
17
17
|
'notification-neutral': 'notification-info',
|
|
18
18
|
};
|
|
19
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
19
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I((deprecationMap[this.props.color] || this.props.color), this.props.size, this.props.theme)));
|
|
20
20
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("img", { src: buildIconUrl(this.props.source || this.props.name), width: 24, height: 24, loading: "lazy", alt: parseAndGetAriaAttributes(this.props.aria)?.['aria-label'] ?? '' })] }) }));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getInlineNotificationCss as getComponentCss$
|
|
73
|
+
import { getInlineNotificationCss as getComponentCss$H } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { getInlineNotificationIconName, getContentAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
75
76
|
class DSRInlineNotification extends Component {
|
|
@@ -82,7 +83,7 @@ class DSRInlineNotification extends Component {
|
|
|
82
83
|
const bannerId = 'banner';
|
|
83
84
|
const labelId = 'label';
|
|
84
85
|
const descriptionId = 'description';
|
|
85
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
86
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$H(this.props.state, !!this.props.actionLabel, this.hasDismissButton, this.props.theme)));
|
|
86
87
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PIcon, { className: "icon", name: getInlineNotificationIconName(this.props.state), color: `notification-${this.props.state}`, theme: this.props.theme, "aria-hidden": "true" }), jsxs("div", { id: bannerId, className: "content", ...getContentAriaAttributes(this.props.state, labelId, descriptionId), children: [(this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0) && jsx("h5", { id: labelId, children: this.props.heading || jsx("slot", { name: "heading" }) }), jsx("p", { id: descriptionId, children: this.props.description || jsx("slot", {}) })] }), this.props.actionLabel && (jsx(PButtonPure, { className: "action", theme: this.props.theme, icon: this.props.actionIcon, loading: this.props.actionLoading, children: this.props.actionLabel })), this.hasDismissButton && (jsx(PButtonPure, { className: "close", type: "button", icon: "close", theme: this.props.theme, hideLabel: true, "aria-controls": bannerId, children: "Close notification" }))] })] }), this.props.children] }));
|
|
87
88
|
}
|
|
88
89
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getLinkPureCss as getComponentCss$
|
|
73
|
+
import { getLinkPureCss as getComponentCss$G } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
74
75
|
|
|
75
76
|
class DSRLinkPure extends Component {
|
|
@@ -78,7 +79,7 @@ class DSRLinkPure extends Component {
|
|
|
78
79
|
splitChildren(this.props.children);
|
|
79
80
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
80
81
|
const hasIcon = hasVisibleIcon(this.props.icon, this.props.iconSource);
|
|
81
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
82
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$G(this.props.icon, this.props.iconSource, this.props.active, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.underline, !this.props.href, this.props.theme)));
|
|
82
83
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
83
84
|
href: this.props.href,
|
|
84
85
|
target: this.props.target,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getLinkCss as getComponentCss$
|
|
73
|
+
import { getLinkCss as getComponentCss$F } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
|
|
74
75
|
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social icon instead. */
|
|
75
76
|
class DSRLinkSocial extends Component {
|
|
@@ -77,7 +78,7 @@ class DSRLinkSocial extends Component {
|
|
|
77
78
|
render() {
|
|
78
79
|
splitChildren(this.props.children);
|
|
79
80
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
80
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
81
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$F(this.props.icon, this.props.iconSource, 'primary', this.props.hideLabel, !this.props.href, this.props.theme)));
|
|
81
82
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
82
83
|
href: this.props.href,
|
|
83
84
|
target: this.props.target,
|
|
@@ -29,6 +29,7 @@ import '../components/link-pure.wrapper.mjs';
|
|
|
29
29
|
import '../components/link-social.wrapper.mjs';
|
|
30
30
|
import '../components/link-tile.wrapper.mjs';
|
|
31
31
|
import '../components/link-tile-model-signature.wrapper.mjs';
|
|
32
|
+
import '../components/link-tile-product.wrapper.mjs';
|
|
32
33
|
import '../components/marque.wrapper.mjs';
|
|
33
34
|
import '../components/modal.wrapper.mjs';
|
|
34
35
|
import { PModelSignature } from '../components/model-signature.wrapper.mjs';
|
|
@@ -69,7 +70,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
69
70
|
import { Component } from 'react';
|
|
70
71
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
71
72
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
72
|
-
import { getLinkTileModelSignatureCss as getComponentCss$
|
|
73
|
+
import { getLinkTileModelSignatureCss as getComponentCss$E } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
73
74
|
|
|
74
75
|
class DSRLinkTileModelSignature extends Component {
|
|
75
76
|
host;
|
|
@@ -94,7 +95,7 @@ class DSRLinkTileModelSignature extends Component {
|
|
|
94
95
|
tabIndex: -1,
|
|
95
96
|
'aria-hidden': 'true',
|
|
96
97
|
};
|
|
97
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
98
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$E(this.props.aspectRatio, this.props.weight, this.props.linkDirection, !!this.props.description)));
|
|
98
99
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: "image-container", children: jsx("slot", {}) }), jsx("div", { className: "signature", children: jsx(PModelSignature, { theme: "dark", model: this.props.model }) }), jsxs("div", { className: "content", children: [jsx("a", { ...overlayLinkProps }), jsx(this.props.headingTag, { className: "heading", children: this.props.heading }), this.props.description && jsx("p", { className: "description", children: this.props.description }), jsxs("div", { className: "link-group", role: "group", children: [jsx("slot", { name: "primary" }), jsx("slot", { name: "secondary" })] })] })] })] }), manipulatedChildren] }));
|
|
99
100
|
}
|
|
100
101
|
}
|