@porsche-design-system/components-react 3.1.0-rc.1 → 3.1.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 +20 -0
- package/esm/lib/components/flyout.wrapper.js +23 -0
- package/esm/public-api.js +1 -0
- package/lib/components/flyout.wrapper.d.ts +48 -0
- package/lib/components/flyout.wrapper.js +25 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/types.d.ts +9 -0
- package/package.json +2 -2
- package/public-api.js +2 -0
- package/ssr/components/dist/styles/esm/styles-entry.js +121 -40
- package/ssr/components/dist/utils/esm/utils-entry.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +39 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +88 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +105 -25
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +37 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +86 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +1 -0
- package/ssr/lib/components/flyout.wrapper.d.ts +48 -0
- package/ssr/lib/components/index.d.ts +1 -0
- package/ssr/lib/dsr-components/flyout.d.ts +14 -0
- package/ssr/lib/types.d.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
9
9
|
|
|
10
10
|
### [Unreleased]
|
|
11
11
|
|
|
12
|
+
### [3.1.0-rc.2] - 2023-06-09
|
|
13
|
+
|
|
14
|
+
#### Changed
|
|
15
|
+
|
|
16
|
+
- `Crest` replaced final assets and meta icons
|
|
17
|
+
([#2595](https://github.com/porsche-design-system/porsche-design-system/pull/2595))
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- `Flyout` ([#2547](https://github.com/porsche-design-system/porsche-design-system/pull/2547))
|
|
22
|
+
|
|
23
|
+
#### Fixed
|
|
24
|
+
|
|
25
|
+
- Wrong validation during SSR hydration of `Link Tile` and `Select Wrapper`
|
|
26
|
+
([#2588](https://github.com/porsche-design-system/porsche-design-system/pull/2588))
|
|
27
|
+
- `Modal` scrollable modal does not jump to top on changes within dialog
|
|
28
|
+
([#2574](https://github.com/porsche-design-system/porsche-design-system/pull/2574))
|
|
29
|
+
- Unnecessary lifecycles are prevented when prop values do not change for complex values
|
|
30
|
+
([#2574](https://github.com/porsche-design-system/porsche-design-system/pull/2574))
|
|
31
|
+
|
|
12
32
|
### [3.1.0-rc.1] - 2023-06-02
|
|
13
33
|
|
|
14
34
|
#### Added
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, useRef } from 'react';
|
|
3
|
+
import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
|
|
4
|
+
import { syncRef } from '../../utils.js';
|
|
5
|
+
|
|
6
|
+
const PFlyout = forwardRef(({ aria, onDismiss, open = false, position = 'right', theme = 'light', className, ...rest }, ref) => {
|
|
7
|
+
const elementRef = useRef();
|
|
8
|
+
useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
9
|
+
const WebComponentTag = usePrefix('p-flyout');
|
|
10
|
+
const propsToSync = [aria, open, position, theme];
|
|
11
|
+
useBrowserLayoutEffect(() => {
|
|
12
|
+
const { current } = elementRef;
|
|
13
|
+
['aria', 'open', 'position', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
|
+
}, propsToSync);
|
|
15
|
+
const props = {
|
|
16
|
+
...rest,
|
|
17
|
+
class: useMergedClass(elementRef, className),
|
|
18
|
+
ref: syncRef(elementRef, ref)
|
|
19
|
+
};
|
|
20
|
+
return jsx(WebComponentTag, { ...props });
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export { PFlyout };
|
package/esm/public-api.js
CHANGED
|
@@ -15,6 +15,7 @@ export { PFieldset } from './lib/components/fieldset.wrapper.js';
|
|
|
15
15
|
export { PFieldsetWrapper } from './lib/components/fieldset-wrapper.wrapper.js';
|
|
16
16
|
export { PFlex } from './lib/components/flex.wrapper.js';
|
|
17
17
|
export { PFlexItem } from './lib/components/flex-item.wrapper.js';
|
|
18
|
+
export { PFlyout } from './lib/components/flyout.wrapper.js';
|
|
18
19
|
export { PGrid } from './lib/components/grid.wrapper.js';
|
|
19
20
|
export { PGridItem } from './lib/components/grid-item.wrapper.js';
|
|
20
21
|
export { PHeading } from './lib/components/heading.wrapper.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import type { SelectedAriaAttributes, FlyoutAriaAttribute, FlyoutPosition, Theme } from '../types';
|
|
3
|
+
export type PFlyoutProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Add ARIA attributes.
|
|
6
|
+
*/
|
|
7
|
+
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
8
|
+
/**
|
|
9
|
+
* Emitted when the component requests to be dismissed.
|
|
10
|
+
*/
|
|
11
|
+
onDismiss?: (event: CustomEvent<void>) => void;
|
|
12
|
+
/**
|
|
13
|
+
* If true, the flyout is open.
|
|
14
|
+
*/
|
|
15
|
+
open: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The position of the flyout
|
|
18
|
+
*/
|
|
19
|
+
position?: FlyoutPosition;
|
|
20
|
+
/**
|
|
21
|
+
* Adapts the flyout color depending on the theme.
|
|
22
|
+
*/
|
|
23
|
+
theme?: Theme;
|
|
24
|
+
};
|
|
25
|
+
export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
26
|
+
/**
|
|
27
|
+
* Add ARIA attributes.
|
|
28
|
+
*/
|
|
29
|
+
aria?: SelectedAriaAttributes<FlyoutAriaAttribute>;
|
|
30
|
+
/**
|
|
31
|
+
* Emitted when the component requests to be dismissed.
|
|
32
|
+
*/
|
|
33
|
+
onDismiss?: (event: CustomEvent<void>) => void;
|
|
34
|
+
/**
|
|
35
|
+
* If true, the flyout is open.
|
|
36
|
+
*/
|
|
37
|
+
open: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The position of the flyout
|
|
40
|
+
*/
|
|
41
|
+
position?: FlyoutPosition;
|
|
42
|
+
/**
|
|
43
|
+
* Adapts the flyout color depending on the theme.
|
|
44
|
+
*/
|
|
45
|
+
theme?: Theme;
|
|
46
|
+
} & {
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var hooks = require('../../hooks.js');
|
|
6
|
+
var utils = require('../../utils.js');
|
|
7
|
+
|
|
8
|
+
const PFlyout = react.forwardRef(({ aria, onDismiss, open = false, position = 'right', theme = 'light', className, ...rest }, ref) => {
|
|
9
|
+
const elementRef = react.useRef();
|
|
10
|
+
hooks.useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
11
|
+
const WebComponentTag = hooks.usePrefix('p-flyout');
|
|
12
|
+
const propsToSync = [aria, open, position, theme];
|
|
13
|
+
hooks.useBrowserLayoutEffect(() => {
|
|
14
|
+
const { current } = elementRef;
|
|
15
|
+
['aria', 'open', 'position', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
|
+
}, propsToSync);
|
|
17
|
+
const props = {
|
|
18
|
+
...rest,
|
|
19
|
+
class: hooks.useMergedClass(elementRef, className),
|
|
20
|
+
ref: utils.syncRef(elementRef, ref)
|
|
21
|
+
};
|
|
22
|
+
return jsxRuntime.jsx(WebComponentTag, { ...props });
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.PFlyout = PFlyout;
|
|
@@ -14,6 +14,7 @@ export * from './fieldset.wrapper';
|
|
|
14
14
|
export * from './fieldset-wrapper.wrapper';
|
|
15
15
|
export * from './flex.wrapper';
|
|
16
16
|
export * from './flex-item.wrapper';
|
|
17
|
+
export * from './flyout.wrapper';
|
|
17
18
|
export * from './grid.wrapper';
|
|
18
19
|
export * from './grid-item.wrapper';
|
|
19
20
|
export * from './heading.wrapper';
|
package/lib/types.d.ts
CHANGED
|
@@ -757,6 +757,15 @@ declare const FLEX_ITEM_FLEXS: readonly [
|
|
|
757
757
|
"equal"
|
|
758
758
|
];
|
|
759
759
|
export type FlexItemFlex = typeof FLEX_ITEM_FLEXS[number];
|
|
760
|
+
declare const FLYOUT_POSITIONS: readonly [
|
|
761
|
+
"left",
|
|
762
|
+
"right"
|
|
763
|
+
];
|
|
764
|
+
export type FlyoutPosition = (typeof FLYOUT_POSITIONS)[number];
|
|
765
|
+
declare const FLYOUT_ARIA_ATTRIBUTES: readonly [
|
|
766
|
+
"aria-label"
|
|
767
|
+
];
|
|
768
|
+
export type FlyoutAriaAttribute = (typeof FLYOUT_ARIA_ATTRIBUTES)[number];
|
|
760
769
|
declare const GRID_DIRECTIONS: readonly [
|
|
761
770
|
"row",
|
|
762
771
|
"row-reverse",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-react",
|
|
3
|
-
"version": "3.1.0-rc.
|
|
3
|
+
"version": "3.1.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.1.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.1.0-rc.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=17.0.0 <19.0.0",
|
package/public-api.js
CHANGED
|
@@ -17,6 +17,7 @@ var fieldset_wrapper = require('./lib/components/fieldset.wrapper.js');
|
|
|
17
17
|
var fieldsetWrapper_wrapper = require('./lib/components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
var flex_wrapper = require('./lib/components/flex.wrapper.js');
|
|
19
19
|
var flexItem_wrapper = require('./lib/components/flex-item.wrapper.js');
|
|
20
|
+
var flyout_wrapper = require('./lib/components/flyout.wrapper.js');
|
|
20
21
|
var grid_wrapper = require('./lib/components/grid.wrapper.js');
|
|
21
22
|
var gridItem_wrapper = require('./lib/components/grid-item.wrapper.js');
|
|
22
23
|
var heading_wrapper = require('./lib/components/heading.wrapper.js');
|
|
@@ -87,6 +88,7 @@ exports.PFieldset = fieldset_wrapper.PFieldset;
|
|
|
87
88
|
exports.PFieldsetWrapper = fieldsetWrapper_wrapper.PFieldsetWrapper;
|
|
88
89
|
exports.PFlex = flex_wrapper.PFlex;
|
|
89
90
|
exports.PFlexItem = flexItem_wrapper.PFlexItem;
|
|
91
|
+
exports.PFlyout = flyout_wrapper.PFlyout;
|
|
90
92
|
exports.PGrid = grid_wrapper.PGrid;
|
|
91
93
|
exports.PGridItem = gridItem_wrapper.PGridItem;
|
|
92
94
|
exports.PHeading = heading_wrapper.PHeading;
|
|
@@ -3816,6 +3816,24 @@ const getBackfaceVisibilityJssStyle = () => ({
|
|
|
3816
3816
|
backfaceVisibility: 'hidden',
|
|
3817
3817
|
WebkitBackfaceVisibility: 'hidden',
|
|
3818
3818
|
});
|
|
3819
|
+
/**
|
|
3820
|
+
* Generates JSS styles for a frosted glass background.
|
|
3821
|
+
* @param {boolean} isVisible - Determines if the frosted glass effect is visible.
|
|
3822
|
+
* @param {string} duration - The duration of the transition animation.
|
|
3823
|
+
* @param {string} timingFn - The timing function of the transition animation. (default: 'cubic-bezier(.16,1,.3,1)')
|
|
3824
|
+
* @returns {JssStyle} - The JSS styles for the frosted glass background.
|
|
3825
|
+
*/
|
|
3826
|
+
const getFrostedGlassBackgroundJssStyles = (isVisible, duration, timingFn = 'cubic-bezier(.16,1,.3,1)') => {
|
|
3827
|
+
return {
|
|
3828
|
+
// workaround via pseudo element to fix stacking (black) background in safari
|
|
3829
|
+
'&::before': Object.assign(Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading, pointerEvents: 'none' }), (isVisible
|
|
3830
|
+
? Object.assign({ opacity: 1 }, frostedGlassStyle) : {
|
|
3831
|
+
opacity: 0,
|
|
3832
|
+
backdropFilter: 'blur(0px)',
|
|
3833
|
+
WebkitBackdropFilter: 'blur(0px)',
|
|
3834
|
+
})), { transition: `opacity ${duration} ${timingFn}, backdrop-filter ${duration} ${timingFn}, --webkit-backdrop-filter ${duration} ${timingFn}` }),
|
|
3835
|
+
};
|
|
3836
|
+
};
|
|
3819
3837
|
|
|
3820
3838
|
const hostHiddenStyles = {
|
|
3821
3839
|
'&([hidden])': {
|
|
@@ -3915,7 +3933,7 @@ const formatObjectOutput = (value) => {
|
|
|
3915
3933
|
|
|
3916
3934
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3917
3935
|
|
|
3918
|
-
const getComponentCss$
|
|
3936
|
+
const getComponentCss$Z = (size, compact, open, theme) => {
|
|
3919
3937
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
3920
3938
|
return getCss({
|
|
3921
3939
|
'@global': {
|
|
@@ -3987,6 +4005,7 @@ const getComponentCss$Y = (size, compact, open, theme) => {
|
|
|
3987
4005
|
|
|
3988
4006
|
const TOAST_Z_INDEX = 999999;
|
|
3989
4007
|
const MODAL_Z_INDEX = 99999;
|
|
4008
|
+
const FLYOUT_Z_INDEX = 99998;
|
|
3990
4009
|
const POPOVER_Z_INDEX = 9999;
|
|
3991
4010
|
const BANNER_Z_INDEX = 99;
|
|
3992
4011
|
|
|
@@ -3999,7 +4018,7 @@ const duration$1 = `var(${cssVariableAnimationDuration},${ANIMATION_DURATION$1}m
|
|
|
3999
4018
|
const easeInQuad$1 = 'cubic-bezier(0.45,0,0.55,1)';
|
|
4000
4019
|
const easeOutQuad$1 = 'cubic-bezier(0.5,1,0.89,1)';
|
|
4001
4020
|
const topBottomFallback = '56px';
|
|
4002
|
-
const getComponentCss$
|
|
4021
|
+
const getComponentCss$Y = (isOpen) => {
|
|
4003
4022
|
return getCss({
|
|
4004
4023
|
'@global': {
|
|
4005
4024
|
':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed', bottom: `var(${cssVariableBottom},${topBottomFallback})`, left: gridExtendedOffsetBase, right: gridExtendedOffsetBase, margin: 0, padding: 0, width: 'auto', maxWidth: '100%', zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})` }, dropShadowHighStyle), { borderRadius: borderRadiusSmall }), (isOpen
|
|
@@ -4038,7 +4057,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4038
4057
|
return groupDirectionJssStyles[direction];
|
|
4039
4058
|
};
|
|
4040
4059
|
|
|
4041
|
-
const getComponentCss$
|
|
4060
|
+
const getComponentCss$X = (direction) => {
|
|
4042
4061
|
return getCss({
|
|
4043
4062
|
'@global': {
|
|
4044
4063
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4111,7 +4130,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4111
4130
|
}));
|
|
4112
4131
|
};
|
|
4113
4132
|
|
|
4114
|
-
const getComponentCss$
|
|
4133
|
+
const getComponentCss$W = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
4115
4134
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4116
4135
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
|
|
4117
4136
|
appearance: 'none',
|
|
@@ -4234,7 +4253,7 @@ align, compact, hasGradient, isDisabled) => {
|
|
|
4234
4253
|
}));
|
|
4235
4254
|
};
|
|
4236
4255
|
|
|
4237
|
-
const getComponentCss$
|
|
4256
|
+
const getComponentCss$V = (isDisabledOrLoading, ...args) => {
|
|
4238
4257
|
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4239
4258
|
return getCss(Object.assign(Object.assign({}, buttonLinkTileStyles), { root: Object.assign(Object.assign({}, buttonLinkTileStyles.root), { cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer' }) }));
|
|
4240
4259
|
};
|
|
@@ -4306,7 +4325,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4306
4325
|
};
|
|
4307
4326
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4308
4327
|
};
|
|
4309
|
-
const getComponentCss$
|
|
4328
|
+
const getComponentCss$U = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
4310
4329
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4311
4330
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4312
4331
|
const isPrimary = variant === 'primary';
|
|
@@ -4345,7 +4364,7 @@ const spacingMap = {
|
|
|
4345
4364
|
basic: gridBasicOffset,
|
|
4346
4365
|
extended: gridExtendedOffset,
|
|
4347
4366
|
};
|
|
4348
|
-
const getComponentCss$
|
|
4367
|
+
const getComponentCss$T = (width, hasPagination, alignHeader, theme) => {
|
|
4349
4368
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
4350
4369
|
const { canvasTextColor } = getHighContrastColors();
|
|
4351
4370
|
const isHeaderAlignCenter = alignHeader === 'center';
|
|
@@ -4506,7 +4525,7 @@ const getInlineSVGBackgroundImage = (path) => {
|
|
|
4506
4525
|
return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
|
|
4507
4526
|
};
|
|
4508
4527
|
|
|
4509
|
-
const getComponentCss$
|
|
4528
|
+
const getComponentCss$S = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
4510
4529
|
const { canvasColor } = getHighContrastColors();
|
|
4511
4530
|
const checkedIconColor = isHighContrastMode
|
|
4512
4531
|
? canvasColor
|
|
@@ -4548,7 +4567,7 @@ const widthMap = {
|
|
|
4548
4567
|
basic: gridBasicOffset,
|
|
4549
4568
|
extended: gridExtendedOffset,
|
|
4550
4569
|
};
|
|
4551
|
-
const getComponentCss$
|
|
4570
|
+
const getComponentCss$R = (width) => {
|
|
4552
4571
|
return getCss({
|
|
4553
4572
|
'@global': {
|
|
4554
4573
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4581,7 +4600,7 @@ const getDimensionStyle = {
|
|
|
4581
4600
|
width: 'inherit',
|
|
4582
4601
|
height: 'inherit',
|
|
4583
4602
|
};
|
|
4584
|
-
const getComponentCss$
|
|
4603
|
+
const getComponentCss$Q = () => {
|
|
4585
4604
|
return getCss({
|
|
4586
4605
|
'@global': {
|
|
4587
4606
|
':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, boxSizing: 'content-box' }, getDimensionStyle), hostHiddenStyles))),
|
|
@@ -4637,7 +4656,7 @@ const sizeMap$4 = {
|
|
|
4637
4656
|
medium: fontSizeDisplayMedium,
|
|
4638
4657
|
large: fontSizeDisplayLarge,
|
|
4639
4658
|
};
|
|
4640
|
-
const getComponentCss$
|
|
4659
|
+
const getComponentCss$P = (size, align, color, ellipsis, theme) => {
|
|
4641
4660
|
return getCss({
|
|
4642
4661
|
'@global': {
|
|
4643
4662
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4651,7 +4670,7 @@ const getComponentCss$O = (size, align, color, ellipsis, theme) => {
|
|
|
4651
4670
|
});
|
|
4652
4671
|
};
|
|
4653
4672
|
|
|
4654
|
-
const getComponentCss$
|
|
4673
|
+
const getComponentCss$O = (color, orientation, theme) => {
|
|
4655
4674
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
4656
4675
|
const colorMap = {
|
|
4657
4676
|
'contrast-low': contrastLowColor,
|
|
@@ -4666,7 +4685,7 @@ const getComponentCss$N = (color, orientation, theme) => {
|
|
|
4666
4685
|
});
|
|
4667
4686
|
};
|
|
4668
4687
|
|
|
4669
|
-
const getComponentCss$
|
|
4688
|
+
const getComponentCss$N = (state, labelSize, hasLabel, theme) => {
|
|
4670
4689
|
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
4671
4690
|
margin: 0,
|
|
4672
4691
|
padding: 0,
|
|
@@ -4680,7 +4699,7 @@ const getComponentCss$M = (state, labelSize, hasLabel, theme) => {
|
|
|
4680
4699
|
})));
|
|
4681
4700
|
};
|
|
4682
4701
|
|
|
4683
|
-
const getComponentCss$
|
|
4702
|
+
const getComponentCss$M = (state, labelSize, hasLabel, theme) => {
|
|
4684
4703
|
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
4685
4704
|
margin: 0,
|
|
4686
4705
|
padding: 0,
|
|
@@ -4704,7 +4723,7 @@ const flexItemWidths = {
|
|
|
4704
4723
|
full: 100,
|
|
4705
4724
|
auto: 'auto',
|
|
4706
4725
|
};
|
|
4707
|
-
const getComponentCss$
|
|
4726
|
+
const getComponentCss$L = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
4708
4727
|
return getCss({
|
|
4709
4728
|
'@global': {
|
|
4710
4729
|
':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
@@ -4722,7 +4741,7 @@ const getComponentCss$K = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
4722
4741
|
});
|
|
4723
4742
|
};
|
|
4724
4743
|
|
|
4725
|
-
const getComponentCss$
|
|
4744
|
+
const getComponentCss$K = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
4726
4745
|
return getCss({
|
|
4727
4746
|
'@global': {
|
|
4728
4747
|
':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
@@ -4740,6 +4759,74 @@ const getComponentCss$J = (inline, wrap, direction, justifyContent, alignItems,
|
|
|
4740
4759
|
});
|
|
4741
4760
|
};
|
|
4742
4761
|
|
|
4762
|
+
const flyoutBoxShadowColor = 'rgba(204, 204, 204, 0.35)';
|
|
4763
|
+
const flyoutBoxShadowColorDark = 'rgba(0, 0, 0, 0.6)';
|
|
4764
|
+
const headerShadowClass = 'header--shadow';
|
|
4765
|
+
const footerShadowClass = 'footer--shadow';
|
|
4766
|
+
const flyoutTransitionDuration = '0.5s';
|
|
4767
|
+
const flyoutTransitionTimingFunction = 'cubic-bezier(0.77, 0, 0.175, 1)';
|
|
4768
|
+
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
4769
|
+
const maxWidthDefault = '1180px';
|
|
4770
|
+
const minWidthDefault = '320px';
|
|
4771
|
+
const getComponentCss$J = (isOpen, position, hasHeader, hasFooter, hasSubFooter, theme) => {
|
|
4772
|
+
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
4773
|
+
const { contrastHighColor: darkThemeContrastHighColor } = getThemedColors('dark');
|
|
4774
|
+
const isPositionLeft = position === 'left';
|
|
4775
|
+
const contentPadding = `${spacingStaticMedium} ${spacingFluidLarge} ${spacingStaticMedium} ${spacingFluidLarge}`;
|
|
4776
|
+
const shadowColor = isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor;
|
|
4777
|
+
const transparentColor = isThemeDark(theme) ? 'rgba(14, 14, 18, 0)' : 'rgba(255, 255, 255, 0)';
|
|
4778
|
+
return getCss(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule({
|
|
4779
|
+
':host': Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'fixed', zIndex: FLYOUT_Z_INDEX }, (isOpen
|
|
4780
|
+
? {
|
|
4781
|
+
visibility: 'inherit',
|
|
4782
|
+
}
|
|
4783
|
+
: {
|
|
4784
|
+
visibility: 'hidden',
|
|
4785
|
+
transition: `visibility 0s linear ${flyoutTransitionDuration}`,
|
|
4786
|
+
})), getInsetJssStyle()), getFrostedGlassBackgroundJssStyles(isOpen, flyoutTransitionDuration)), hostHiddenStyles),
|
|
4787
|
+
}), header: Object.assign(Object.assign({ display: 'flex' }, (hasHeader && {
|
|
4788
|
+
flexDirection: 'row-reverse',
|
|
4789
|
+
})), { justifyContent: 'flex-end', background: backgroundColor, position: 'sticky', top: 0 }), [`${headerShadowClass}`]: {
|
|
4790
|
+
boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px 5px 10px`,
|
|
4791
|
+
} }, (hasHeader && {
|
|
4792
|
+
'header-content': {
|
|
4793
|
+
flex: 'auto',
|
|
4794
|
+
padding: `${spacingStaticMedium} 0 ${spacingStaticMedium} ${spacingFluidLarge}`,
|
|
4795
|
+
},
|
|
4796
|
+
})), { dismiss: Object.assign({ margin: spacingStaticMedium, height: 'fit-content', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
|
|
4797
|
+
'&:hover': {
|
|
4798
|
+
background: darkThemeContrastHighColor,
|
|
4799
|
+
borderColor: darkThemeContrastHighColor,
|
|
4800
|
+
},
|
|
4801
|
+
})), root: Object.assign(Object.assign({ color: primaryColor, display: 'flex', flexDirection: 'column', position: 'relative', [isPositionLeft ? 'marginRight' : 'marginLeft']: 'auto', boxSizing: 'border-box' }, (hasSubFooter && {
|
|
4802
|
+
overflowY: 'auto',
|
|
4803
|
+
overscrollBehaviorY: 'none',
|
|
4804
|
+
})), { height: '100%', minWidth: minWidthDefault, maxWidth: `var(${cssVariableMaxWidth}, ${maxWidthDefault})`, background: backgroundColor, opacity: isOpen ? 1 : 0, transform: isOpen ? 'initial' : `translate3d(${isPositionLeft ? '-100%' : '100%'}, 0, 0)`, transition: `opacity ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction} ${isOpen ? '0s' : flyoutTransitionDuration}, transform ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction}`, boxShadow: `${isPositionLeft ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)` }), content: Object.assign({ padding: contentPadding }, (!hasSubFooter && {
|
|
4805
|
+
overflowY: 'auto',
|
|
4806
|
+
WebkitOverflowScrolling: 'touch',
|
|
4807
|
+
backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
|
|
4808
|
+
backgroundPosition: 'bottom center, top center, bottom center, top center',
|
|
4809
|
+
backgroundRepeat: 'no-repeat',
|
|
4810
|
+
backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
|
|
4811
|
+
backgroundAttachment: 'local, local, scroll, scroll',
|
|
4812
|
+
overscrollBehaviorY: 'none',
|
|
4813
|
+
})) }), (hasFooter && {
|
|
4814
|
+
footer: {
|
|
4815
|
+
background: backgroundColor,
|
|
4816
|
+
padding: contentPadding,
|
|
4817
|
+
position: 'sticky',
|
|
4818
|
+
bottom: 0,
|
|
4819
|
+
},
|
|
4820
|
+
[`${footerShadowClass}`]: {
|
|
4821
|
+
boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px -5px 10px`,
|
|
4822
|
+
},
|
|
4823
|
+
})), (hasSubFooter && {
|
|
4824
|
+
['sub-footer']: {
|
|
4825
|
+
padding: contentPadding,
|
|
4826
|
+
},
|
|
4827
|
+
})));
|
|
4828
|
+
};
|
|
4829
|
+
|
|
4743
4830
|
const gutter$1 = `calc(${gridGap} / 2)`;
|
|
4744
4831
|
const gridItemWidths = [
|
|
4745
4832
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
@@ -5151,14 +5238,7 @@ const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) =>
|
|
|
5151
5238
|
: {
|
|
5152
5239
|
visibility: 'hidden',
|
|
5153
5240
|
transition: 'visibility 0s linear .2s',
|
|
5154
|
-
})), hostHiddenStyles), {
|
|
5155
|
-
// workaround via pseudo element to fix stacking (black) background in safari
|
|
5156
|
-
'&::before': Object.assign(Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed' }, getInsetJssStyle()), { background: themeDarkBackgroundShading, pointerEvents: 'none' }), (isOpen
|
|
5157
|
-
? Object.assign({ opacity: 1 }, frostedGlassStyle) : {
|
|
5158
|
-
opacity: 0,
|
|
5159
|
-
backdropFilter: 'blur(0px)',
|
|
5160
|
-
WebkitBackdropFilter: 'blur(0px)',
|
|
5161
|
-
})), { transition: `opacity ${duration} ${transitionTimingFunction}, backdrop-filter ${duration} ${transitionTimingFunction},--webkit-backdrop-filter ${duration} ${transitionTimingFunction}` }) }))), { overflowY: 'auto' }),
|
|
5241
|
+
})), hostHiddenStyles), getFrostedGlassBackgroundJssStyles(isOpen, duration)))), { overflowY: 'auto' }),
|
|
5162
5242
|
'::slotted': addImportantToEachRule(Object.assign({}, mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
|
|
5163
5243
|
[`&(.${stretchToFullModalWidthClassName}`]: {
|
|
5164
5244
|
'&:first-child)': {
|
|
@@ -6514,22 +6594,23 @@ const getComponentCss = (size, theme) => {
|
|
|
6514
6594
|
});
|
|
6515
6595
|
};
|
|
6516
6596
|
|
|
6517
|
-
exports.getAccordionCss = getComponentCss$
|
|
6518
|
-
exports.getBannerCss = getComponentCss$
|
|
6519
|
-
exports.getButtonCss = getComponentCss$
|
|
6520
|
-
exports.getButtonGroupCss = getComponentCss$
|
|
6521
|
-
exports.getButtonPureCss = getComponentCss$
|
|
6522
|
-
exports.getButtonTileCss = getComponentCss$
|
|
6523
|
-
exports.getCarouselCss = getComponentCss$
|
|
6524
|
-
exports.getCheckboxWrapperCss = getComponentCss$
|
|
6525
|
-
exports.getContentWrapperCss = getComponentCss$
|
|
6526
|
-
exports.getCrestCss = getComponentCss$
|
|
6527
|
-
exports.getDisplayCss = getComponentCss$
|
|
6528
|
-
exports.getDividerCss = getComponentCss$
|
|
6529
|
-
exports.getFieldsetCss = getComponentCss$
|
|
6530
|
-
exports.getFieldsetWrapperCss = getComponentCss$
|
|
6531
|
-
exports.getFlexCss = getComponentCss$
|
|
6532
|
-
exports.getFlexItemCss = getComponentCss$
|
|
6597
|
+
exports.getAccordionCss = getComponentCss$Z;
|
|
6598
|
+
exports.getBannerCss = getComponentCss$Y;
|
|
6599
|
+
exports.getButtonCss = getComponentCss$U;
|
|
6600
|
+
exports.getButtonGroupCss = getComponentCss$X;
|
|
6601
|
+
exports.getButtonPureCss = getComponentCss$W;
|
|
6602
|
+
exports.getButtonTileCss = getComponentCss$V;
|
|
6603
|
+
exports.getCarouselCss = getComponentCss$T;
|
|
6604
|
+
exports.getCheckboxWrapperCss = getComponentCss$S;
|
|
6605
|
+
exports.getContentWrapperCss = getComponentCss$R;
|
|
6606
|
+
exports.getCrestCss = getComponentCss$Q;
|
|
6607
|
+
exports.getDisplayCss = getComponentCss$P;
|
|
6608
|
+
exports.getDividerCss = getComponentCss$O;
|
|
6609
|
+
exports.getFieldsetCss = getComponentCss$M;
|
|
6610
|
+
exports.getFieldsetWrapperCss = getComponentCss$N;
|
|
6611
|
+
exports.getFlexCss = getComponentCss$K;
|
|
6612
|
+
exports.getFlexItemCss = getComponentCss$L;
|
|
6613
|
+
exports.getFlyoutCss = getComponentCss$J;
|
|
6533
6614
|
exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
|
|
6534
6615
|
exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
|
|
6535
6616
|
exports.getGridCss = getComponentCss$H;
|
|
@@ -3686,7 +3686,7 @@ getMediaQueryMin('xxl');
|
|
|
3686
3686
|
typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');
|
|
3687
3687
|
|
|
3688
3688
|
const CDN_BASE_URL$3 = (typeof window !== 'undefined' && window.PORSCHE_DESIGN_SYSTEM_CDN === 'cn' ? 'https://cdn.ui.porsche.cn' : 'https://cdn.ui.porsche.com') + '/porsche-design-system/crest';
|
|
3689
|
-
const CRESTS_MANIFEST = { "porscheCrest": { "1x": { "png": "porsche-crest.min.
|
|
3689
|
+
const CRESTS_MANIFEST = { "porscheCrest": { "1x": { "png": "porsche-crest.min.d76137cf8cf94822b7aedb534ba88418@1x.png", "webp": "porsche-crest.min.0d0cc89ae5ee57c4c15bd0dbbcbfe5d0@1x.webp" }, "2x": { "png": "porsche-crest.min.8a292fbd35a5155789ddd011585e05c4@2x.png", "webp": "porsche-crest.min.2245c45e99be5a46b4b56e73c43d5c63@2x.webp" }, "3x": { "png": "porsche-crest.min.18d6f02003b0829bac939fade88fd4e6@3x.png", "webp": "porsche-crest.min.19b429278b158b5cb5aa6ce80751e3fe@3x.webp" } } };
|
|
3690
3690
|
const crestCdnBaseUrl = CDN_BASE_URL$3 ;
|
|
3691
3691
|
const crestInnerManifest = CRESTS_MANIFEST.porscheCrest;
|
|
3692
3692
|
const buildCrestSrcSet = (format) => {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var hooks = require('../../hooks.js');
|
|
6
|
+
var utils = require('../../utils.js');
|
|
7
|
+
var flyout = require('../dsr-components/flyout.js');
|
|
8
|
+
|
|
9
|
+
const PFlyout = react.forwardRef(({ aria, onDismiss, open = false, position = 'right', theme = 'light', className, children, ...rest }, ref) => {
|
|
10
|
+
const elementRef = react.useRef();
|
|
11
|
+
hooks.useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
12
|
+
const WebComponentTag = hooks.usePrefix('p-flyout');
|
|
13
|
+
const propsToSync = [aria, open, position, theme];
|
|
14
|
+
hooks.useBrowserLayoutEffect(() => {
|
|
15
|
+
const { current } = elementRef;
|
|
16
|
+
['aria', 'open', 'position', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
|
+
}, propsToSync);
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
if (!process.browser) {
|
|
20
|
+
className = className ? `${className} ssr` : 'ssr';
|
|
21
|
+
}
|
|
22
|
+
const props = {
|
|
23
|
+
...rest,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
...(!process.browser
|
|
26
|
+
? {
|
|
27
|
+
children: (jsxRuntime.jsx(flyout.DSRFlyout, { ...{ aria, open, position, theme, children } })),
|
|
28
|
+
}
|
|
29
|
+
: {
|
|
30
|
+
children,
|
|
31
|
+
suppressHydrationWarning: true,
|
|
32
|
+
}),
|
|
33
|
+
class: hooks.useMergedClass(elementRef, className),
|
|
34
|
+
ref: utils.syncRef(elementRef, ref)
|
|
35
|
+
};
|
|
36
|
+
return jsxRuntime.jsx(WebComponentTag, { ...props });
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
exports.PFlyout = PFlyout;
|
|
@@ -17,6 +17,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
17
17
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
require('../components/flex.wrapper.js');
|
|
19
19
|
require('../components/flex-item.wrapper.js');
|
|
20
|
+
require('../components/flyout.wrapper.js');
|
|
20
21
|
require('../components/grid.wrapper.js');
|
|
21
22
|
require('../components/grid-item.wrapper.js');
|
|
22
23
|
require('../components/heading.wrapper.js');
|
|
@@ -17,6 +17,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
17
17
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
require('../components/flex.wrapper.js');
|
|
19
19
|
require('../components/flex-item.wrapper.js');
|
|
20
|
+
require('../components/flyout.wrapper.js');
|
|
20
21
|
require('../components/grid.wrapper.js');
|
|
21
22
|
require('../components/grid-item.wrapper.js');
|
|
22
23
|
require('../components/heading.wrapper.js');
|
package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js
CHANGED
|
@@ -17,6 +17,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
17
17
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
require('../components/flex.wrapper.js');
|
|
19
19
|
require('../components/flex-item.wrapper.js');
|
|
20
|
+
require('../components/flyout.wrapper.js');
|
|
20
21
|
require('../components/grid.wrapper.js');
|
|
21
22
|
require('../components/grid-item.wrapper.js');
|
|
22
23
|
require('../components/heading.wrapper.js');
|
package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js
CHANGED
|
@@ -18,6 +18,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
18
18
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
19
19
|
require('../components/flex.wrapper.js');
|
|
20
20
|
require('../components/flex-item.wrapper.js');
|
|
21
|
+
require('../components/flyout.wrapper.js');
|
|
21
22
|
require('../components/grid.wrapper.js');
|
|
22
23
|
require('../components/grid-item.wrapper.js');
|
|
23
24
|
require('../components/heading.wrapper.js');
|
|
@@ -17,6 +17,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
17
17
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
require('../components/flex.wrapper.js');
|
|
19
19
|
require('../components/flex-item.wrapper.js');
|
|
20
|
+
require('../components/flyout.wrapper.js');
|
|
20
21
|
require('../components/grid.wrapper.js');
|
|
21
22
|
require('../components/grid-item.wrapper.js');
|
|
22
23
|
require('../components/heading.wrapper.js');
|
|
@@ -17,6 +17,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
17
17
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
require('../components/flex.wrapper.js');
|
|
19
19
|
require('../components/flex-item.wrapper.js');
|
|
20
|
+
require('../components/flyout.wrapper.js');
|
|
20
21
|
require('../components/grid.wrapper.js');
|
|
21
22
|
require('../components/grid-item.wrapper.js');
|
|
22
23
|
require('../components/heading.wrapper.js');
|
|
@@ -72,7 +73,6 @@ class DSRCarousel extends react.Component {
|
|
|
72
73
|
super(...arguments);
|
|
73
74
|
this.slides = [];
|
|
74
75
|
}
|
|
75
|
-
// we need to prevent splide reinitialization via splide.refresh() when activeSlideIndex is changed from outside
|
|
76
76
|
render() {
|
|
77
77
|
var _a;
|
|
78
78
|
const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js
CHANGED
|
@@ -17,6 +17,7 @@ require('../components/fieldset.wrapper.js');
|
|
|
17
17
|
require('../components/fieldset-wrapper.wrapper.js');
|
|
18
18
|
require('../components/flex.wrapper.js');
|
|
19
19
|
require('../components/flex-item.wrapper.js');
|
|
20
|
+
require('../components/flyout.wrapper.js');
|
|
20
21
|
require('../components/grid.wrapper.js');
|
|
21
22
|
require('../components/grid-item.wrapper.js');
|
|
22
23
|
require('../components/heading.wrapper.js');
|