@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/esm/lib/components/flyout.wrapper.js +23 -0
  3. package/esm/public-api.js +1 -0
  4. package/lib/components/flyout.wrapper.d.ts +48 -0
  5. package/lib/components/flyout.wrapper.js +25 -0
  6. package/lib/components/index.d.ts +1 -0
  7. package/lib/types.d.ts +9 -0
  8. package/package.json +2 -2
  9. package/public-api.js +2 -0
  10. package/ssr/components/dist/styles/esm/styles-entry.js +121 -40
  11. package/ssr/components/dist/utils/esm/utils-entry.js +1 -1
  12. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +39 -0
  13. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
  14. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +1 -0
  15. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
  16. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +1 -0
  17. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
  18. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +1 -1
  19. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +1 -0
  20. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +88 -0
  21. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
  22. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
  23. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
  24. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
  25. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
  26. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
  27. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +1 -0
  28. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +1 -0
  29. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
  30. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +1 -1
  31. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
  32. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -0
  33. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
  34. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
  35. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
  36. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  37. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  38. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  39. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
  40. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
  41. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
  42. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
  43. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -0
  44. package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +2 -0
  45. package/ssr/esm/components/dist/styles/esm/styles-entry.js +105 -25
  46. package/ssr/esm/components/dist/utils/esm/utils-entry.js +1 -1
  47. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +37 -0
  48. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +3 -2
  49. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -2
  50. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -2
  51. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +3 -2
  52. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +3 -2
  53. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +3 -2
  54. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +3 -3
  55. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -2
  56. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -2
  57. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +2 -2
  58. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +2 -2
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +2 -2
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -2
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +2 -2
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -2
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -2
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +86 -0
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +1 -0
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +1 -0
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +1 -1
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -0
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  83. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -0
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +1 -0
  89. package/ssr/lib/components/flyout.wrapper.d.ts +48 -0
  90. package/ssr/lib/components/index.d.ts +1 -0
  91. package/ssr/lib/dsr-components/flyout.d.ts +14 -0
  92. package/ssr/lib/types.d.ts +9 -0
@@ -0,0 +1,37 @@
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
+ import { DSRFlyout } from '../dsr-components/flyout.js';
6
+
7
+ const PFlyout = forwardRef(({ aria, onDismiss, open = false, position = 'right', theme = 'light', className, children, ...rest }, ref) => {
8
+ const elementRef = useRef();
9
+ useEventCallback(elementRef, 'dismiss', onDismiss);
10
+ const WebComponentTag = usePrefix('p-flyout');
11
+ const propsToSync = [aria, open, position, theme];
12
+ useBrowserLayoutEffect(() => {
13
+ const { current } = elementRef;
14
+ ['aria', 'open', 'position', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
+ }, propsToSync);
16
+ // @ts-ignore
17
+ if (!process.browser) {
18
+ className = className ? `${className} ssr` : 'ssr';
19
+ }
20
+ const props = {
21
+ ...rest,
22
+ // @ts-ignore
23
+ ...(!process.browser
24
+ ? {
25
+ children: (jsx(DSRFlyout, { ...{ aria, open, position, theme, children } })),
26
+ }
27
+ : {
28
+ children,
29
+ suppressHydrationWarning: true,
30
+ }),
31
+ class: useMergedClass(elementRef, className),
32
+ ref: syncRef(elementRef, ref)
33
+ };
34
+ return jsx(WebComponentTag, { ...props });
35
+ });
36
+
37
+ export { PFlyout };
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -63,7 +64,7 @@ import { splitChildren } from '../../splitChildren.js';
63
64
  import { Component } from 'react';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getAccordionCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getAccordionCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
 
68
69
  class DSRAccordion extends Component {
69
70
  render() {
@@ -71,7 +72,7 @@ class DSRAccordion extends Component {
71
72
  const buttonId = 'accordion-control';
72
73
  const contentId = 'accordion-panel';
73
74
  const Heading = this.props.tag;
74
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.size, this.props.compact, this.props.open, this.props.theme)));
75
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Z(this.props.size, this.props.compact, this.props.open, this.props.theme)));
75
76
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(Heading, { className: "heading", children: jsxs("button", { id: buttonId, type: "button", "aria-expanded": this.props.open ? 'true' : 'false', "aria-controls": contentId, children: [this.props.heading || jsx("slot", { name: "heading" }), jsx("span", { className: "icon-container", children: jsx(PIcon, { className: "icon", name: this.props.open ? 'minus' : 'plus', theme: this.props.theme, size: "xx-small", "aria-hidden": "true" }) })] }) }), jsx("div", { id: contentId, className: "collapsible", role: "region", "aria-labelledby": buttonId, children: jsx("div", { children: jsx("slot", {}) }) })] })] }), this.props.children] }));
76
77
  }
77
78
  }
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -63,7 +64,7 @@ import { splitChildren } from '../../splitChildren.js';
63
64
  import { Component } from 'react';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getBannerCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getBannerCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
 
68
69
  class DSRBanner extends Component {
69
70
  get hasDismissButton() {
@@ -72,7 +73,7 @@ class DSRBanner extends Component {
72
73
  render() {
73
74
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
74
75
  const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
75
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$X(this.props.open)));
76
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.open)));
76
77
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PInlineNotification, { heading: this.props.heading, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": !this.props.open ? 'true' : 'false', children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0 ? (jsx("slot", { name: "heading", slot: "heading" })) : (hasTitleSlot && jsx("slot", { name: "title", slot: "heading" })), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsx("slot", { name: "description" })] })] }), this.props.children] }));
77
78
  }
78
79
  }
@@ -3,12 +3,12 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getButtonGroupCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getButtonGroupCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
 
8
8
  class DSRButtonGroup extends Component {
9
9
  render() {
10
10
  splitChildren(this.props.children);
11
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$W(this.props.direction)));
11
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$X(this.props.direction)));
12
12
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { role: "group", children: jsx("slot", {}) })] }), this.props.children] }));
13
13
  }
14
14
  }
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -63,7 +64,7 @@ import { splitChildren } from '../../splitChildren.js';
63
64
  import { Component } from 'react';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getButtonPureCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getButtonPureCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
  import { isDisabledOrLoading, hasVisibleIcon, getButtonPureAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
68
69
 
69
70
  class DSRButtonPure extends Component {
@@ -79,7 +80,7 @@ class DSRButtonPure extends Component {
79
80
  size: 'inherit',
80
81
  theme: this.props.theme,
81
82
  };
82
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$V(this.props.icon, this.props.iconSource, this.props.active, this.props.loading, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.theme)));
83
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$W(this.props.icon, this.props.iconSource, this.props.active, this.props.loading, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.theme)));
83
84
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { ...getButtonPureAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, children: [this.props.loading ? (jsx(PSpinner, { aria: { 'aria-label': 'Loading state' }, ...iconProps })) : (hasIcon && (jsx(PIcon, { ...iconProps, name: this.props.icon, source: this.props.iconSource, color: this.isDisabledOrLoading ? 'state-disabled' : 'primary', theme: this.props.theme, "aria-hidden": "true" }))), jsx("span", { className: "label", children: jsx("slot", {}) })] })] }), this.props.children] }));
84
85
  }
85
86
  }
@@ -16,6 +16,7 @@ import '../components/fieldset.wrapper.js';
16
16
  import '../components/fieldset-wrapper.wrapper.js';
17
17
  import '../components/flex.wrapper.js';
18
18
  import '../components/flex-item.wrapper.js';
19
+ import '../components/flyout.wrapper.js';
19
20
  import '../components/grid.wrapper.js';
20
21
  import '../components/grid-item.wrapper.js';
21
22
  import '../components/heading.wrapper.js';
@@ -63,7 +64,7 @@ import '../components/wordmark.wrapper.js';
63
64
  import { splitChildren } from '../../splitChildren.js';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getButtonTileCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getButtonTileCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
  import { isDisabledOrLoading } from '../../../../../../components/dist/utils/esm/utils-entry.js';
68
69
 
69
70
  class DSRButtonTile extends Component {
@@ -80,7 +81,7 @@ class DSRButtonTile extends Component {
80
81
  };
81
82
  const button = (createElement(PButton, { ...buttonProps, icon: this.props.icon, key: "link-or-button", className: "link-or-button" }, this.props.label));
82
83
  const buttonPure = (createElement(PButtonPure, { ...buttonProps, key: "link-or-button-pure", className: "link-or-button-pure", hideLabel: true, icon: this.props.icon === 'none' ? 'arrow-right' : this.props.icon }, this.props.label));
83
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$U(isDisabledOrLoading(this.props.disabled, this.props.loading), this.props.aspectRatio, this.props.size, this.props.weight, this.props.align, this.props.compact, this.props.gradient, this.props.disabled)));
84
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$V(isDisabledOrLoading(this.props.disabled, this.props.loading), this.props.aspectRatio, this.props.size, this.props.weight, this.props.align, this.props.compact, this.props.gradient, this.props.disabled)));
84
85
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: "image-container", children: jsx("slot", {}) }), jsxs("div", { className: "content", children: [jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? buttonPure : button) : [buttonPure, button]] })] })] }), this.props.children] }));
85
86
  }
86
87
  }
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -63,13 +64,13 @@ import { splitChildren } from '../../splitChildren.js';
63
64
  import { Component } from 'react';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getButtonCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getButtonCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
  import { getButtonAriaAttributes, getLinkButtonThemeForIcon, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.js';
68
69
 
69
70
  class DSRButton extends Component {
70
71
  render() {
71
72
  splitChildren(this.props.children);
72
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.theme)));
73
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$U(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.theme)));
73
74
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: getLinkButtonThemeForIcon(this.props.variant, this.props.theme), aria: { 'aria-label': 'Loading state:' } })), hasVisibleIcon(this.props.icon, this.props.iconSource) && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.iconSource ? undefined : this.props.icon, source: this.props.iconSource, color: this.props.disabled ? (this.props.variant === 'primary' ? 'contrast-high' : 'state-disabled') : 'primary', theme: !this.props.disabled ? getLinkButtonThemeForIcon(this.props.variant, this.props.theme) : this.props.theme, "aria-hidden": "true" })), jsx("span", { className: "label", children: jsx("slot", {}) })] })] }), this.props.children] }));
74
75
  }
75
76
  }
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -63,14 +64,13 @@ import { splitChildren } from '../../splitChildren.js';
63
64
  import { Component } from 'react';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getCarouselCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getCarouselCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
 
68
69
  class DSRCarousel extends Component {
69
70
  constructor() {
70
71
  super(...arguments);
71
72
  this.slides = [];
72
73
  }
73
- // we need to prevent splide reinitialization via splide.refresh() when activeSlideIndex is changed from outside
74
74
  render() {
75
75
  var _a;
76
76
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
@@ -81,7 +81,7 @@ class DSRCarousel extends Component {
81
81
  theme: this.props.theme,
82
82
  // 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
83
83
  };
84
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.width,
84
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.width,
85
85
  // flip boolean values of disablePagination since it is the inverse of pagination
86
86
  this.props.disablePagination
87
87
  ? typeof this.props.disablePagination === 'object'
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -63,14 +64,14 @@ import { splitChildren } from '../../splitChildren.js';
63
64
  import { Component } from 'react';
64
65
  import { minifyCss } from '../../minifyCss.js';
65
66
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
66
- import { getCheckboxWrapperCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
+ import { getCheckboxWrapperCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.js';
67
68
  import { StateMessage } from './state-message.js';
68
69
 
69
70
  class DSRCheckboxWrapper extends Component {
70
71
  render() {
71
72
  var _a;
72
73
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
73
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.hideLabel, this.props.state, typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && ((_a = otherChildren[0]) === null || _a === void 0 ? void 0 : _a.props.disabled), this.props.loading, this.props.theme)));
74
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.hideLabel, this.props.state, typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && ((_a = otherChildren[0]) === null || _a === void 0 ? void 0 : _a.props.disabled), this.props.loading, this.props.theme)));
74
75
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { "aria-disabled": this.props.loading ? 'true' : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "text", children: this.props.label || jsx("slot", { name: "label" }) })), jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, aria: { 'aria-label': `Loading state of ${this.props.label}` } }))] }), (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) && (jsx(StateMessage, { state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }))] })] }), this.props.children] }));
75
76
  }
76
77
  }
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getContentWrapperCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getContentWrapperCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
 
8
8
  /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
9
9
  class DSRContentWrapper extends Component {
10
10
  render() {
11
11
  splitChildren(this.props.children);
12
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q(this.props.width)));
12
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.width)));
13
13
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
14
14
  }
15
15
  }
@@ -2,14 +2,14 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.js';
4
4
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
5
- import { getCrestCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.js';
5
+ import { getCrestCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
6
  import { buildCrestSrcSet, crestCdnBaseUrl, crestInnerManifest, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.js';
7
7
 
8
8
  const { width, height } = crestSize;
9
9
  class DSRCrest extends Component {
10
10
  render() {
11
11
  const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: `${crestCdnBaseUrl}/${crestInnerManifest['2x'].png}`, width: width, height: height, alt: "Porsche" })] }));
12
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P()));
12
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q()));
13
13
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (picture) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: picture })) })] }) }));
14
14
  }
15
15
  }
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getDisplayCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getDisplayCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
  import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.js';
8
8
 
9
9
  class DSRDisplay extends Component {
10
10
  render() {
11
11
  splitChildren(this.props.children);
12
12
  const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
13
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
13
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
14
14
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
15
15
  }
16
16
  }
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.js';
4
4
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
5
- import { getDividerCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.js';
5
+ import { getDividerCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
6
 
7
7
  class DSRDivider extends Component {
8
8
  render() {
@@ -11,7 +11,7 @@ class DSRDivider extends Component {
11
11
  'neutral-contrast-medium': 'contrast-medium',
12
12
  'neutral-contrast-high': 'contrast-high',
13
13
  };
14
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
14
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
15
15
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
16
16
  }
17
17
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getFieldsetWrapperCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getFieldsetWrapperCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
  import { StateMessage } from './state-message.js';
8
8
  import { Required } from './required.js';
9
9
 
@@ -13,7 +13,7 @@ class DSRFieldsetWrapper extends Component {
13
13
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
14
14
  const messageId = 'message';
15
15
  const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
16
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
16
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
17
17
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), hasMessageValue && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: "light", host: null }))] })] }), this.props.children] }));
18
18
  }
19
19
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getFieldsetCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getFieldsetCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
  import { StateMessage } from './state-message.js';
8
8
  import { Required } from './required.js';
9
9
 
@@ -12,7 +12,7 @@ class DSRFieldset extends Component {
12
12
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
13
13
  const messageId = 'message';
14
14
  const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
15
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
15
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
16
16
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), hasMessageValue && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: "light", host: null }))] })] }), this.props.children] }));
17
17
  }
18
18
  }
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getFlexItemCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getFlexItemCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
 
8
8
  /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
9
9
  class DSRFlexItem extends Component {
10
10
  render() {
11
11
  splitChildren(this.props.children);
12
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
12
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
13
13
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
14
14
  }
15
15
  }
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.js';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
6
- import { getFlexCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.js';
6
+ import { getFlexCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.js';
7
7
 
8
8
  /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
9
9
  class DSRFlex extends Component {
10
10
  render() {
11
11
  splitChildren(this.props.children);
12
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
12
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
13
13
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
14
14
  }
15
15
  }
@@ -0,0 +1,86 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import '../components/accordion.wrapper.js';
3
+ import '../components/banner.wrapper.js';
4
+ import '../components/button.wrapper.js';
5
+ import '../components/button-group.wrapper.js';
6
+ import { PButtonPure } from '../components/button-pure.wrapper.js';
7
+ import '../components/button-tile.wrapper.js';
8
+ import '../components/carousel.wrapper.js';
9
+ import '../components/checkbox-wrapper.wrapper.js';
10
+ import '../components/content-wrapper.wrapper.js';
11
+ import '../components/crest.wrapper.js';
12
+ import '../components/display.wrapper.js';
13
+ import '../components/divider.wrapper.js';
14
+ import '../components/fieldset.wrapper.js';
15
+ import '../components/fieldset-wrapper.wrapper.js';
16
+ import '../components/flex.wrapper.js';
17
+ import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
19
+ import '../components/grid.wrapper.js';
20
+ import '../components/grid-item.wrapper.js';
21
+ import '../components/heading.wrapper.js';
22
+ import '../components/headline.wrapper.js';
23
+ import '../components/icon.wrapper.js';
24
+ import '../components/inline-notification.wrapper.js';
25
+ import '../components/link.wrapper.js';
26
+ import '../components/link-pure.wrapper.js';
27
+ import '../components/link-social.wrapper.js';
28
+ import '../components/link-tile.wrapper.js';
29
+ import '../components/link-tile-model-signature.wrapper.js';
30
+ import '../components/marque.wrapper.js';
31
+ import '../components/modal.wrapper.js';
32
+ import '../components/model-signature.wrapper.js';
33
+ import '../components/pagination.wrapper.js';
34
+ import '../components/popover.wrapper.js';
35
+ import '../components/radio-button-wrapper.wrapper.js';
36
+ import '../components/scroller.wrapper.js';
37
+ import '../components/segmented-control.wrapper.js';
38
+ import '../components/segmented-control-item.wrapper.js';
39
+ import '../components/select-wrapper.wrapper.js';
40
+ import '../components/spinner.wrapper.js';
41
+ import '../components/stepper-horizontal.wrapper.js';
42
+ import '../components/stepper-horizontal-item.wrapper.js';
43
+ import '../components/switch.wrapper.js';
44
+ import '../components/table.wrapper.js';
45
+ import '../components/table-body.wrapper.js';
46
+ import '../components/table-cell.wrapper.js';
47
+ import '../components/table-head.wrapper.js';
48
+ import '../components/table-head-cell.wrapper.js';
49
+ import '../components/table-head-row.wrapper.js';
50
+ import '../components/table-row.wrapper.js';
51
+ import '../components/tabs.wrapper.js';
52
+ import '../components/tabs-bar.wrapper.js';
53
+ import '../components/tabs-item.wrapper.js';
54
+ import '../components/tag.wrapper.js';
55
+ import '../components/tag-dismissible.wrapper.js';
56
+ import '../components/text.wrapper.js';
57
+ import '../components/text-field-wrapper.wrapper.js';
58
+ import '../components/text-list.wrapper.js';
59
+ import '../components/text-list-item.wrapper.js';
60
+ import '../components/textarea-wrapper.wrapper.js';
61
+ import '../components/toast.wrapper.js';
62
+ import '../components/wordmark.wrapper.js';
63
+ import { splitChildren } from '../../splitChildren.js';
64
+ import { Component } from 'react';
65
+ import { minifyCss } from '../../minifyCss.js';
66
+ import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
67
+ import { getFlyoutCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.js';
68
+ import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
69
+
70
+ class DSRFlyout extends Component {
71
+ render() {
72
+ const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
73
+ const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
74
+ const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
75
+ const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
76
+ const dismissBtn = (jsx(PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss flyout" }));
77
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.open, this.props.position, hasHeader, hasFooter, hasSubFooter, this.props.theme)));
78
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { className: "root", role: "dialog", ...parseAndGetAriaAttributes({
79
+ 'aria-modal': true,
80
+ 'aria-hidden': !this.props.open,
81
+ ...parseAndGetAriaAttributes(this.props.aria),
82
+ }), tabIndex: -1, ...(hasSubFooter && { onScroll: this.props.onScroll }), children: [jsxs("div", { className: "header", children: [dismissBtn, hasHeader && (jsx("div", { className: "header-content", children: jsx("slot", { name: "header" }) }))] }), jsx("div", { className: "content", children: jsx("slot", {}) }), hasFooter && (jsx("div", { className: "footer", children: jsx("slot", { name: "footer" }) })), hasSubFooter && (jsx("div", { className: "sub-footer", children: jsx("slot", { name: "sub-footer" }) }))] }) })] }), this.props.children] }));
83
+ }
84
+ }
85
+
86
+ export { DSRFlyout };
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -16,6 +16,7 @@ import '../components/fieldset.wrapper.js';
16
16
  import '../components/fieldset-wrapper.wrapper.js';
17
17
  import '../components/flex.wrapper.js';
18
18
  import '../components/flex-item.wrapper.js';
19
+ import '../components/flyout.wrapper.js';
19
20
  import '../components/grid.wrapper.js';
20
21
  import '../components/grid-item.wrapper.js';
21
22
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';
@@ -72,7 +73,6 @@ class DSRScroller extends Component {
72
73
  this.isPrevHidden = true;
73
74
  this.isNextHidden = true;
74
75
  }
75
- // should only update if scrollable
76
76
  render() {
77
77
  var _a;
78
78
  splitChildren(this.props.children);
@@ -15,6 +15,7 @@ import '../components/fieldset.wrapper.js';
15
15
  import '../components/fieldset-wrapper.wrapper.js';
16
16
  import '../components/flex.wrapper.js';
17
17
  import '../components/flex-item.wrapper.js';
18
+ import '../components/flyout.wrapper.js';
18
19
  import '../components/grid.wrapper.js';
19
20
  import '../components/grid-item.wrapper.js';
20
21
  import '../components/heading.wrapper.js';