@porsche-design-system/components-react 3.17.0-rc.1 → 3.17.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
14
14
 
15
15
  ### [Unreleased]
16
16
 
17
+ ### [3.17.0-rc.2] - 2024-08-01
18
+
19
+ #### Fixed
20
+
21
+ - `Optgoup`: hydration error in Next.js SSR context
22
+ ([#3432](https://github.com/porsche-design-system/porsche-design-system/pull/3432))
23
+ - `Select`: ensure slotted image width
24
+ ([#3432](https://github.com/porsche-design-system/porsche-design-system/pull/3432))
25
+
17
26
  ### [3.17.0-rc.1] - 2024-07-31
18
27
 
19
28
  #### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-react",
3
- "version": "3.17.0-rc.1",
3
+ "version": "3.17.0-rc.2",
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.17.0-rc.1"
20
+ "@porsche-design-system/components-js": "3.17.0-rc.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=18.0.0 <19.0.0",
@@ -7729,6 +7729,7 @@ const getComponentCss$z = (theme) => {
7729
7729
  '::slotted(img)': {
7730
7730
  height: fontLineHeight,
7731
7731
  borderRadius: borderRadiusSmall,
7732
+ width: 'auto',
7732
7733
  },
7733
7734
  }),
7734
7735
  ...getOptionStyles(theme),
@@ -15,8 +15,11 @@ class DSROptgroup extends react.Component {
15
15
  render() {
16
16
  splitChildren.splitChildren(this.props.children);
17
17
  const { theme = 'light', hidden } = this.props;
18
- minifyCss.minifyCss(stripFocusAndHoverStyles.stripFocusAndHoverStyles(stylesEntry.getOptgroupCss(this.props.disabled, theme)));
19
- return (jsxRuntime.jsx(jsxRuntime.Fragment, {}));
18
+ const style = minifyCss.minifyCss(stripFocusAndHoverStyles.stripFocusAndHoverStyles(stylesEntry.getOptgroupCss(this.props.disabled, theme)));
19
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { role: "group", className: Object.entries({
20
+ optgroup: true,
21
+ 'optgroup--disabled': this.props.disabled,
22
+ }).map(([key, value]) => value && key).filter(Boolean).join(' '), "aria-disabled": this.props.disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, "aria-labelledby": "label", children: [jsxRuntime.jsx("span", { className: "label", role: "presentation", id: "label", children: this.props.label }), jsxRuntime.jsx("slot", {})] }) })] }), this.props.children] }));
20
23
  }
21
24
  }
22
25
 
@@ -7727,6 +7727,7 @@ const getComponentCss$z = (theme) => {
7727
7727
  '::slotted(img)': {
7728
7728
  height: fontLineHeight,
7729
7729
  borderRadius: borderRadiusSmall,
7730
+ width: 'auto',
7730
7731
  },
7731
7732
  }),
7732
7733
  ...getOptionStyles(theme),
@@ -1,4 +1,4 @@
1
- import { jsx, Fragment } from 'react/jsx-runtime';
1
+ 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';
@@ -13,8 +13,11 @@ class DSROptgroup extends Component {
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
15
  const { theme = 'light', hidden } = this.props;
16
- minifyCss(stripFocusAndHoverStyles(getComponentCss$y(this.props.disabled, theme)));
17
- return (jsx(Fragment, {}));
16
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$y(this.props.disabled, theme)));
17
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { role: "group", className: Object.entries({
18
+ optgroup: true,
19
+ 'optgroup--disabled': this.props.disabled,
20
+ }).map(([key, value]) => value && key).filter(Boolean).join(' '), "aria-disabled": this.props.disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, "aria-labelledby": "label", children: [jsx("span", { className: "label", role: "presentation", id: "label", children: this.props.label }), jsx("slot", {})] }) })] }), this.props.children] }));
18
21
  }
19
22
  }
20
23
 
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import { OptgroupInternalHTMLProps } from '@porsche-design-system/components/dist/utils';
2
+ import { type OptgroupInternalHTMLProps } from '@porsche-design-system/components/dist/utils';
3
3
  /**
4
4
  * @slot {"name": "", "description": "Default slot for the optgroup content." }
5
5
  */