@porsche-design-system/components-react 4.2.0-rc.3 → 4.2.0-rc.5
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 -0
- package/cjs/lib/components/flyout.wrapper.cjs +3 -3
- package/esm/lib/components/flyout.wrapper.d.ts +11 -1
- package/esm/lib/components/flyout.wrapper.mjs +3 -3
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +116 -62
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +139 -21
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +6 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +116 -62
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +136 -22
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +7 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +7 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +7 -1
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +11 -1
- package/ssr/esm/lib/dsr-components/banner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.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 { getSheetCss as getComponentCss$n } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
-
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
|
+
import { createTopLayerController, parseAndGetAriaAttributes, showDialog } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
import { DialogBase } from './dialog-base.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -17,6 +17,12 @@ class DSRSheet extends Component {
|
|
|
17
17
|
dialog;
|
|
18
18
|
scroller;
|
|
19
19
|
hasHeader;
|
|
20
|
+
topLayer = createTopLayerController({
|
|
21
|
+
getElement: () => this.props.dialog,
|
|
22
|
+
isShown: () => !!this.props.dialog?.open,
|
|
23
|
+
show: () => showDialog(this.props.dialog, this.props.scroller),
|
|
24
|
+
hide: () => this.props.dialog?.close(),
|
|
25
|
+
});
|
|
20
26
|
render() {
|
|
21
27
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
22
28
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { SelectedAriaAttributes, FlyoutAriaAttribute, FlyoutBackdrop, FlyoutBackground, FlyoutFooterBehavior, FlyoutMotionHiddenEndEventDetail, FlyoutMotionVisibleEndEventDetail, FlyoutPosition } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, FlyoutAriaAttribute, FlyoutBackdrop, FlyoutBackground, FlyoutFooterBehavior, BreakpointCustomizable, FlyoutMotionHiddenEndEventDetail, FlyoutMotionVisibleEndEventDetail, FlyoutPosition } from '../types';
|
|
3
3
|
export type PFlyoutProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Sets ARIA attributes.
|
|
@@ -25,6 +25,11 @@ export type PFlyoutProps = BaseProps & {
|
|
|
25
25
|
* @default 'sticky'
|
|
26
26
|
*/
|
|
27
27
|
footerBehavior?: FlyoutFooterBehavior;
|
|
28
|
+
/**
|
|
29
|
+
* If true the flyout stretches to the full viewport width with squared corners. Useful for smaller viewports where the flyout would otherwise fill the screen but still show rounded corners.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
fullscreen?: BreakpointCustomizable<boolean>;
|
|
28
33
|
/**
|
|
29
34
|
* Emitted when the component requests to be dismissed.
|
|
30
35
|
*/
|
|
@@ -73,6 +78,11 @@ export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
73
78
|
* @default 'sticky'
|
|
74
79
|
*/
|
|
75
80
|
footerBehavior?: FlyoutFooterBehavior;
|
|
81
|
+
/**
|
|
82
|
+
* If true the flyout stretches to the full viewport width with squared corners. Useful for smaller viewports where the flyout would otherwise fill the screen but still show rounded corners.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
fullscreen?: BreakpointCustomizable<boolean>;
|
|
76
86
|
/**
|
|
77
87
|
* Emitted when the component requests to be dismissed.
|
|
78
88
|
*/
|
|
@@ -14,8 +14,8 @@ type LabelProps = {
|
|
|
14
14
|
isLoading?: boolean;
|
|
15
15
|
isDisabled?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* If true,
|
|
18
|
-
*
|
|
17
|
+
* If true, clicks on the label use `htmlFor` only and do not bubble to the host.
|
|
18
|
+
* Clicks on the `label-after` slot are also stopped so they do not trigger host handlers (e.g. radio selection).
|
|
19
19
|
*/
|
|
20
20
|
stopClickPropagation?: boolean;
|
|
21
21
|
};
|