@porsche-design-system/components-react 3.28.0-rc.1 → 3.28.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/LICENSE.md CHANGED
@@ -21,7 +21,7 @@ update this licensing agreement at any time.
21
21
  Subject to the terms of this Agreement, Porsche grants you a limited, worldwide, royalty-free, non-assignable,
22
22
  non-transferable, non-sublicensable, and non-exclusive license to use the Porsche Design System Assets solely to
23
23
  develop, test, and distribute software applications, websites, and interfaces on behalf of Porsche that are available
24
- via www.porsche.com or any associated websites or other Porsche software (“Applications”).
24
+ via [https://porsche.com](https://porsche.com) or any associated websites or other Porsche software (“Applications”).
25
25
 
26
26
  ### License Restrictions
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-react",
3
- "version": "3.28.0-rc.1",
3
+ "version": "3.28.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.28.0-rc.1"
20
+ "@porsche-design-system/components-js": "3.28.0-rc.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "ag-grid-community": ">= 33.0.0 <34.0.0",
@@ -4098,6 +4098,10 @@ const getBannerPopoverResetStyles = () => {
4098
4098
  };
4099
4099
  };
4100
4100
 
4101
+ /**
4102
+ * @css-variable {"name": "--p-banner-position-top", "description": "Position top of banner", "defaultValue": "56px"}
4103
+ * @css-variable {"name": "--p-banner-position-bottom", "description": "Position bottom of banner. Only has an effect below breakpoint 's'.", "defaultValue": "56px"}
4104
+ */
4101
4105
  const cssVariableTop = '--p-banner-position-top';
4102
4106
  const cssVariableBottom = '--p-banner-position-bottom';
4103
4107
  const cssVariableZIndex = '--p-internal-banner-z-index';
@@ -5036,6 +5040,9 @@ const getComponentCss$16 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
5036
5040
  });
5037
5041
  };
5038
5042
 
5043
+ /**
5044
+ * @css-variable {"name": "--p-carousel-prev-next-filter", "description": "CSS Filter applied to the navigation (prev/next buttons)", "defaultValue": "none"}
5045
+ */
5039
5046
  const cssVariablePrevNextFilter = '--p-carousel-prev-next-filter';
5040
5047
  const cssVariableGradientColorWidth = '--p-gradient-color-width';
5041
5048
  const carouselTransitionDuration = motionDurationModerate;
@@ -6925,6 +6932,9 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
6925
6932
  };
6926
6933
  };
6927
6934
 
6935
+ /**
6936
+ * @css-variable {"name": "--p-flyout-width", "description": "Width of the flyout.", "defaultValue": "auto"}
6937
+ */
6928
6938
  const cssVariableWidth$2 = '--p-flyout-width';
6929
6939
  // TODO: we shouldn't expose --p-flyout-max-width
6930
6940
  const cssVariableMaxWidth = '--p-flyout-max-width';
@@ -7525,7 +7535,7 @@ const getUnitCounterJssStyle = (isDisabled, isReadonly, theme) => {
7525
7535
  }),
7526
7536
  ...(isReadonly && {
7527
7537
  color: contrastHighColor,
7528
- })
7538
+ }),
7529
7539
  };
7530
7540
  };
7531
7541
 
@@ -8175,6 +8185,11 @@ const getComponentCss$G = (size) => {
8175
8185
  });
8176
8186
  };
8177
8187
 
8188
+ /**
8189
+ * @css-variable {"name": "--p-modal-width", "description": "Width of the modal.", "defaultValue": "auto"}
8190
+ * @css-variable {"name": "--p-modal-spacing-top", "description": "Spacing of the modal to the top.", "defaultValue": "clamp(16px, 10vh, 192px)"}
8191
+ * @css-variable {"name": "--p-modal-spacing-bottom", "description": "Spacing of the modal to the bottom.", "defaultValue": "clamp(16px, 10vh, 192px)"}
8192
+ */
8178
8193
  const cssVariableWidth$1 = '--p-modal-width';
8179
8194
  const cssVariableSpacingTop = '--p-modal-spacing-top'; // TODO: maybe --p-modal-spacing-block-start would be more precise?
8180
8195
  const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-modal-spacing-block-end would be more precise?
@@ -11175,6 +11190,9 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, hasCounter,
11175
11190
  });
11176
11191
  };
11177
11192
 
11193
+ /**
11194
+ * @css-variable {"name": "--p-toast-position-bottom", "description": "Defines the spacing between the toast and the bottom edge of its container.", "defaultValue": "56px"}
11195
+ */
11178
11196
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
11179
11197
  const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
11180
11198
  const ANIMATION_DURATION = motionDurationModerate;
@@ -10,7 +10,7 @@ var inlineNotification_wrapper = require('../components/inline-notification.wrap
10
10
 
11
11
  /**
12
12
  * @slot {"name": "heading", "description": "Defines the heading used in the banner. Can be used alternatively to the heading prop. Can be used for rich content.", "hasAltProp": true }
13
- * @slot {"name": "title", "description": "Defines the title used in the banner. Can be used alternatively to the heading prop. Can be used for rich content.", "hasAltProp": true }
13
+ * @slot {"name": "title", "description": "Please use the heading prop or slot=\"heading\" instead.", "hasAltProp": true, "isDeprecated": true }
14
14
  * @slot {"name": "description", "description": "Defines the description used in the banner. Can be used alternatively to the description prop. Can be used for rich content.", "hasAltProp": true }
15
15
  *
16
16
  * @controlled {"props": ["open"], "event": "dismiss"}
@@ -33,10 +33,12 @@ class DSRCanvas extends react.Component {
33
33
  hasSidebarEndHeader;
34
34
  hasFooter;
35
35
  hasBackground;
36
- sidebarStart;
37
- sidebarEnd;
38
- root;
39
- header;
36
+ // TODO: Produces bug when using text-field-wrapper which looses focus
37
+ // private sidebarStart: any;
38
+ // private sidebarEnd: any;
39
+ // private root: any;
40
+ // private header: any;
41
+ //
40
42
  render() {
41
43
  const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
42
44
  const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
@@ -10,7 +10,7 @@ var utilsEntry = require('../../../../../../components/dist/utils/esm/utils-entr
10
10
  var icon_wrapper = require('../components/icon.wrapper.cjs');
11
11
 
12
12
  /**
13
- * @slot {"name": "", "description": "Default slot to render the link label." }
13
+ * @slot {"name": "", "description": "Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the href prop." }
14
14
  */
15
15
  class DSRLink extends react.Component {
16
16
  host;
@@ -4096,6 +4096,10 @@ const getBannerPopoverResetStyles = () => {
4096
4096
  };
4097
4097
  };
4098
4098
 
4099
+ /**
4100
+ * @css-variable {"name": "--p-banner-position-top", "description": "Position top of banner", "defaultValue": "56px"}
4101
+ * @css-variable {"name": "--p-banner-position-bottom", "description": "Position bottom of banner. Only has an effect below breakpoint 's'.", "defaultValue": "56px"}
4102
+ */
4099
4103
  const cssVariableTop = '--p-banner-position-top';
4100
4104
  const cssVariableBottom = '--p-banner-position-bottom';
4101
4105
  const cssVariableZIndex = '--p-internal-banner-z-index';
@@ -5034,6 +5038,9 @@ const getComponentCss$16 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
5034
5038
  });
5035
5039
  };
5036
5040
 
5041
+ /**
5042
+ * @css-variable {"name": "--p-carousel-prev-next-filter", "description": "CSS Filter applied to the navigation (prev/next buttons)", "defaultValue": "none"}
5043
+ */
5037
5044
  const cssVariablePrevNextFilter = '--p-carousel-prev-next-filter';
5038
5045
  const cssVariableGradientColorWidth = '--p-gradient-color-width';
5039
5046
  const carouselTransitionDuration = motionDurationModerate;
@@ -6923,6 +6930,9 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
6923
6930
  };
6924
6931
  };
6925
6932
 
6933
+ /**
6934
+ * @css-variable {"name": "--p-flyout-width", "description": "Width of the flyout.", "defaultValue": "auto"}
6935
+ */
6926
6936
  const cssVariableWidth$2 = '--p-flyout-width';
6927
6937
  // TODO: we shouldn't expose --p-flyout-max-width
6928
6938
  const cssVariableMaxWidth = '--p-flyout-max-width';
@@ -7523,7 +7533,7 @@ const getUnitCounterJssStyle = (isDisabled, isReadonly, theme) => {
7523
7533
  }),
7524
7534
  ...(isReadonly && {
7525
7535
  color: contrastHighColor,
7526
- })
7536
+ }),
7527
7537
  };
7528
7538
  };
7529
7539
 
@@ -8173,6 +8183,11 @@ const getComponentCss$G = (size) => {
8173
8183
  });
8174
8184
  };
8175
8185
 
8186
+ /**
8187
+ * @css-variable {"name": "--p-modal-width", "description": "Width of the modal.", "defaultValue": "auto"}
8188
+ * @css-variable {"name": "--p-modal-spacing-top", "description": "Spacing of the modal to the top.", "defaultValue": "clamp(16px, 10vh, 192px)"}
8189
+ * @css-variable {"name": "--p-modal-spacing-bottom", "description": "Spacing of the modal to the bottom.", "defaultValue": "clamp(16px, 10vh, 192px)"}
8190
+ */
8176
8191
  const cssVariableWidth$1 = '--p-modal-width';
8177
8192
  const cssVariableSpacingTop = '--p-modal-spacing-top'; // TODO: maybe --p-modal-spacing-block-start would be more precise?
8178
8193
  const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-modal-spacing-block-end would be more precise?
@@ -11173,6 +11188,9 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, hasCounter,
11173
11188
  });
11174
11189
  };
11175
11190
 
11191
+ /**
11192
+ * @css-variable {"name": "--p-toast-position-bottom", "description": "Defines the spacing between the toast and the bottom edge of its container.", "defaultValue": "56px"}
11193
+ */
11176
11194
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
11177
11195
  const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
11178
11196
  const ANIMATION_DURATION = motionDurationModerate;
@@ -8,7 +8,7 @@ import { PInlineNotification } from '../components/inline-notification.wrapper.m
8
8
 
9
9
  /**
10
10
  * @slot {"name": "heading", "description": "Defines the heading used in the banner. Can be used alternatively to the heading prop. Can be used for rich content.", "hasAltProp": true }
11
- * @slot {"name": "title", "description": "Defines the title used in the banner. Can be used alternatively to the heading prop. Can be used for rich content.", "hasAltProp": true }
11
+ * @slot {"name": "title", "description": "Please use the heading prop or slot=\"heading\" instead.", "hasAltProp": true, "isDeprecated": true }
12
12
  * @slot {"name": "description", "description": "Defines the description used in the banner. Can be used alternatively to the description prop. Can be used for rich content.", "hasAltProp": true }
13
13
  *
14
14
  * @controlled {"props": ["open"], "event": "dismiss"}
@@ -31,10 +31,12 @@ class DSRCanvas extends Component {
31
31
  hasSidebarEndHeader;
32
32
  hasFooter;
33
33
  hasBackground;
34
- sidebarStart;
35
- sidebarEnd;
36
- root;
37
- header;
34
+ // TODO: Produces bug when using text-field-wrapper which looses focus
35
+ // private sidebarStart: any;
36
+ // private sidebarEnd: any;
37
+ // private root: any;
38
+ // private header: any;
39
+ //
38
40
  render() {
39
41
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
40
42
  const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
@@ -8,7 +8,7 @@ import { parseAndGetAriaAttributes, hasVisibleIcon } from '../../../../../../com
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
9
9
 
10
10
  /**
11
- * @slot {"name": "", "description": "Default slot to render the link label." }
11
+ * @slot {"name": "", "description": "Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the href prop." }
12
12
  */
13
13
  class DSRLink extends Component {
14
14
  host;
@@ -1,7 +1,7 @@
1
1
  import { Component } from 'react';
2
2
  /**
3
3
  * @slot {"name": "heading", "description": "Defines the heading used in the banner. Can be used alternatively to the heading prop. Can be used for rich content.", "hasAltProp": true }
4
- * @slot {"name": "title", "description": "Defines the title used in the banner. Can be used alternatively to the heading prop. Can be used for rich content.", "hasAltProp": true }
4
+ * @slot {"name": "title", "description": "Please use the heading prop or slot=\"heading\" instead.", "hasAltProp": true, "isDeprecated": true }
5
5
  * @slot {"name": "description", "description": "Defines the description used in the banner. Can be used alternatively to the description prop. Can be used for rich content.", "hasAltProp": true }
6
6
  *
7
7
  * @controlled {"props": ["open"], "event": "dismiss"}
@@ -21,9 +21,5 @@ export declare class DSRCanvas extends Component<any> {
21
21
  private hasSidebarEndHeader;
22
22
  private hasFooter;
23
23
  private hasBackground;
24
- private sidebarStart;
25
- private sidebarEnd;
26
- private root;
27
- private header;
28
24
  render(): JSX.Element;
29
25
  }
@@ -1,6 +1,6 @@
1
1
  import { Component } from 'react';
2
2
  /**
3
- * @slot {"name": "", "description": "Default slot to render the link label." }
3
+ * @slot {"name": "", "description": "Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the href prop." }
4
4
  */
5
5
  export declare class DSRLink extends Component<any> {
6
6
  host: HTMLElement;