@porsche-design-system/components-react 3.15.0-rc.0 → 3.15.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 +9 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1 -1
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -11
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1 -1
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -11
- package/ssr/esm/lib/dsr-components/modal.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.15.0-rc.1] - 2024-04-17
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- Partials: `getMetaTagsAndIconLinks`, `getComponentChunkLinks`, `getIconLinks` and `getFontLinks` support new format option `js`
|
|
22
|
+
([#3179](https://github.com/porsche-design-system/porsche-design-system/pull/3179))
|
|
23
|
+
|
|
17
24
|
### [3.15.0-rc.0] - 2024-04-05
|
|
18
25
|
|
|
19
26
|
#### Changed
|
|
@@ -23,6 +30,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
23
30
|
|
|
24
31
|
### Fixed
|
|
25
32
|
|
|
33
|
+
- `Modal`: Missing box-shadow on sticky footer when slotted content changes
|
|
34
|
+
([#3154](https://github.com/porsche-design-system/porsche-design-system/pull/3154))
|
|
26
35
|
- `Select`: Hydration error in Next.js when using slotted `img`
|
|
27
36
|
([#3162](https://github.com/porsche-design-system/porsche-design-system/pull/3162))
|
|
28
37
|
- `Text Field Wrapper`, `Textarea Wrapper`: Dynamic changes of `showCounter` and `maxLength` are reflected. The counter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-react",
|
|
3
|
-
"version": "3.15.0-rc.
|
|
3
|
+
"version": "3.15.0-rc.1",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.15.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.15.0-rc.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=18.0.0 <19.0.0",
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs
CHANGED
|
@@ -79,16 +79,6 @@ var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entr
|
|
|
79
79
|
|
|
80
80
|
class DSRModal extends react.Component {
|
|
81
81
|
host;
|
|
82
|
-
scrollContainerEl; // Necessary to avoid stacking background bug in safari
|
|
83
|
-
focusedElBeforeOpen;
|
|
84
|
-
dismissBtn;
|
|
85
|
-
hasHeader;
|
|
86
|
-
hasFooter;
|
|
87
|
-
footer;
|
|
88
|
-
dialog;
|
|
89
|
-
get hasDismissButton() {
|
|
90
|
-
return this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
91
|
-
}
|
|
92
82
|
render() {
|
|
93
83
|
const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
94
84
|
const hasHeader = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0);
|
|
@@ -101,7 +91,7 @@ class DSRModal extends react.Component {
|
|
|
101
91
|
'aria-label': this.props.heading,
|
|
102
92
|
'aria-hidden': !this.props.open,
|
|
103
93
|
...utilsEntry.parseAndGetAriaAttributes(this.props.aria),
|
|
104
|
-
}), tabIndex: -1, inert: this.props.open ? null : '', children: [hasDismissButton && (jsxRuntime.jsx("div", { className: "controls", children: jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss modal" }) })), hasHeader && (jsxRuntime.jsx("div", { className: "header", children: this.props.heading ? jsxRuntime.jsx("h2", { children: this.props.heading }) : jsxRuntime.jsx("slot", { name: "heading" }) })), jsxRuntime.jsx("div", { className: "content", children: jsxRuntime.jsx("slot", {}) }), hasFooter && (jsxRuntime.jsx("div", { className: "footer", children: jsxRuntime.jsx("slot", { name: "footer" }) }))] }) }) })] }), this.props.children] }));
|
|
94
|
+
}), tabIndex: -1, inert: this.props.open ? null : '', children: [hasDismissButton && (jsxRuntime.jsx("div", { className: "controls", children: jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss modal" }) })), hasHeader && (jsxRuntime.jsx("div", { className: "header", children: this.props.heading ? jsxRuntime.jsx("h2", { children: this.props.heading }) : jsxRuntime.jsx("slot", { name: "heading" }) }, "heading")), jsxRuntime.jsx("div", { className: "content", children: jsxRuntime.jsx("slot", {}) }), hasFooter && (jsxRuntime.jsx("div", { className: "footer", children: jsxRuntime.jsx("slot", { name: "footer" }) }, "footer"))] }) }) })] }), this.props.children] }));
|
|
105
95
|
}
|
|
106
96
|
}
|
|
107
97
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs
CHANGED
|
@@ -77,16 +77,6 @@ import { parseAndGetAriaAttributes } from '../../../../../../components/dist/uti
|
|
|
77
77
|
|
|
78
78
|
class DSRModal extends Component {
|
|
79
79
|
host;
|
|
80
|
-
scrollContainerEl; // Necessary to avoid stacking background bug in safari
|
|
81
|
-
focusedElBeforeOpen;
|
|
82
|
-
dismissBtn;
|
|
83
|
-
hasHeader;
|
|
84
|
-
hasFooter;
|
|
85
|
-
footer;
|
|
86
|
-
dialog;
|
|
87
|
-
get hasDismissButton() {
|
|
88
|
-
return this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
89
|
-
}
|
|
90
80
|
render() {
|
|
91
81
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
92
82
|
const hasHeader = (this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0);
|
|
@@ -99,7 +89,7 @@ class DSRModal extends Component {
|
|
|
99
89
|
'aria-label': this.props.heading,
|
|
100
90
|
'aria-hidden': !this.props.open,
|
|
101
91
|
...parseAndGetAriaAttributes(this.props.aria),
|
|
102
|
-
}), tabIndex: -1, inert: this.props.open ? null : '', children: [hasDismissButton && (jsx("div", { className: "controls", children: jsx(PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss modal" }) })), hasHeader && (jsx("div", { className: "header", children: this.props.heading ? jsx("h2", { children: this.props.heading }) : jsx("slot", { name: "heading" }) })), jsx("div", { className: "content", children: jsx("slot", {}) }), hasFooter && (jsx("div", { className: "footer", children: jsx("slot", { name: "footer" }) }))] }) }) })] }), this.props.children] }));
|
|
92
|
+
}), tabIndex: -1, inert: this.props.open ? null : '', children: [hasDismissButton && (jsx("div", { className: "controls", children: jsx(PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss modal" }) })), hasHeader && (jsx("div", { className: "header", children: this.props.heading ? jsx("h2", { children: this.props.heading }) : jsx("slot", { name: "heading" }) }, "heading")), jsx("div", { className: "content", children: jsx("slot", {}) }), hasFooter && (jsx("div", { className: "footer", children: jsx("slot", { name: "footer" }) }, "footer"))] }) }) })] }), this.props.children] }));
|
|
103
93
|
}
|
|
104
94
|
}
|
|
105
95
|
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
export declare class DSRModal extends Component<any> {
|
|
3
3
|
host: HTMLElement;
|
|
4
|
-
private scrollContainerEl;
|
|
5
|
-
private focusedElBeforeOpen;
|
|
6
|
-
private dismissBtn;
|
|
7
|
-
private hasHeader;
|
|
8
|
-
private hasFooter;
|
|
9
|
-
private footer;
|
|
10
|
-
private dialog;
|
|
11
|
-
private get hasDismissButton();
|
|
12
4
|
render(): JSX.Element;
|
|
13
5
|
}
|