@porsche-design-system/components-react 3.24.0 → 3.25.0-rc.1

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 (103) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
  3. package/cjs/lib/components/button.wrapper.cjs +3 -3
  4. package/cjs/lib/components/sheet.wrapper.cjs +29 -0
  5. package/cjs/public-api.cjs +2 -0
  6. package/esm/lib/components/button-pure.wrapper.d.ts +8 -0
  7. package/esm/lib/components/button-pure.wrapper.mjs +3 -3
  8. package/esm/lib/components/button.wrapper.d.ts +8 -0
  9. package/esm/lib/components/button.wrapper.mjs +3 -3
  10. package/esm/lib/components/index.d.ts +1 -0
  11. package/esm/lib/components/sheet.wrapper.d.ts +72 -0
  12. package/esm/lib/components/sheet.wrapper.mjs +27 -0
  13. package/esm/lib/types.d.ts +7 -0
  14. package/esm/public-api.mjs +1 -0
  15. package/package.json +2 -2
  16. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +163 -109
  17. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
  18. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.cjs +4 -4
  19. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.cjs +40 -0
  20. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -0
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -0
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +3 -1
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -1
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +2 -2
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -2
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -2
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -1
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -1
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -1
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -2
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +39 -0
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +2 -2
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +3 -3
  34. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +3 -3
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
  36. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +113 -60
  37. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
  38. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.mjs +4 -4
  39. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.mjs +38 -0
  40. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
  41. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
  42. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
  43. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +4 -2
  44. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
  45. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +4 -2
  46. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
  47. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +5 -3
  48. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -3
  49. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +4 -4
  50. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
  51. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
  52. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
  53. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
  54. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
  55. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
  56. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
  57. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
  58. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +2 -2
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.mjs +2 -2
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +2 -2
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +2 -2
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +2 -2
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +2 -2
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +2 -2
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -2
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -2
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -2
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +4 -4
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -2
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +4 -4
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -3
  83. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -2
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -2
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +3 -3
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +2 -2
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +2 -2
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -3
  89. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +4 -4
  90. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +37 -0
  91. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -2
  92. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +3 -3
  93. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +3 -3
  94. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
  95. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +8 -0
  96. package/ssr/esm/lib/components/button.wrapper.d.ts +8 -0
  97. package/ssr/esm/lib/components/index.d.ts +1 -0
  98. package/ssr/esm/lib/components/sheet.wrapper.d.ts +72 -0
  99. package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
  100. package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
  101. package/ssr/esm/lib/dsr-components/carousel.d.ts +1 -0
  102. package/ssr/esm/lib/dsr-components/sheet.d.ts +14 -0
  103. package/ssr/esm/lib/types.d.ts +7 -0
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef, useRef } from 'react';
4
+ import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
+ import { syncRef } from '../../utils.mjs';
6
+ import { DSRSheet } from '../dsr-components/sheet.mjs';
7
+
8
+ const PSheet = /*#__PURE__*/ forwardRef(({ aria, disableBackdropClick = false, dismissButton = true, onDismiss, onMotionHiddenEnd, onMotionVisibleEnd, open = false, theme, className, children, ...rest }, ref) => {
9
+ const elementRef = useRef(undefined);
10
+ useEventCallback(elementRef, 'dismiss', onDismiss);
11
+ useEventCallback(elementRef, 'motionHiddenEnd', onMotionHiddenEnd);
12
+ useEventCallback(elementRef, 'motionVisibleEnd', onMotionVisibleEnd);
13
+ const WebComponentTag = usePrefix('p-sheet');
14
+ const propsToSync = [aria, disableBackdropClick, dismissButton, open, theme || useTheme()];
15
+ useBrowserLayoutEffect(() => {
16
+ const { current } = elementRef;
17
+ ['aria', 'disableBackdropClick', 'dismissButton', 'open', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
+ }, propsToSync);
19
+ const props = {
20
+ ...rest,
21
+ // @ts-ignore
22
+ ...(!process.browser
23
+ ? {
24
+ children: (jsx(DSRSheet, { aria, disableBackdropClick, dismissButton, open, theme: theme || useTheme(), children })),
25
+ }
26
+ : {
27
+ children,
28
+ suppressHydrationWarning: true,
29
+ }),
30
+ 'data-ssr': '',
31
+ class: useMergedClass(elementRef, className),
32
+ ref: syncRef(elementRef, ref)
33
+ };
34
+ // @ts-ignore
35
+ return jsx(WebComponentTag, { ...props });
36
+ });
37
+
38
+ export { PSheet };
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getAccordionCss as getComponentCss$19 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getAccordionCss as getComponentCss$1a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { PIcon } from '../components/icon.wrapper.mjs';
9
9
 
10
10
  /**
@@ -20,7 +20,7 @@ class DSRAccordion extends Component {
20
20
  const buttonId = 'accordion-control';
21
21
  const contentId = 'accordion-panel';
22
22
  const Heading = this.props.tag || this.props.headingTag;
23
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$19(this.props.size, this.props.compact, this.props.open, this.props.theme, this.props.sticky)));
23
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$1a(this.props.size, this.props.compact, this.props.open, this.props.theme, this.props.sticky)));
24
24
  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] }));
25
25
  }
26
26
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getBannerCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getBannerCss as getComponentCss$19 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { PInlineNotification } from '../components/inline-notification.wrapper.mjs';
9
9
 
10
10
  /**
@@ -24,7 +24,7 @@ class DSRBanner extends Component {
24
24
  render() {
25
25
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
26
26
  const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
27
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$18(this.props.open)));
27
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$19(this.props.open)));
28
28
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs(PInlineNotification, { heading: this.props.heading, headingTag: this.props.headingTag, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": this.props.open ? 'false' : 'true', 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] }));
29
29
  }
30
30
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getButtonGroupCss as getComponentCss$17 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getButtonGroupCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
 
8
8
  /**
9
9
  * @slot {"name": "", "description": "Default slot for the buttons to group." }
@@ -12,7 +12,7 @@ class DSRButtonGroup extends Component {
12
12
  host;
13
13
  render() {
14
14
  splitChildren(this.props.children);
15
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$17(this.props.direction)));
15
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$18(this.props.direction)));
16
16
  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] }));
17
17
  }
18
18
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getButtonPureCss as getComponentCss$16 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getButtonPureCss as getComponentCss$17 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { isDisabledOrLoading, hasVisibleIcon, getButtonPureAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
9
9
  import { loadingId, LoadingMessage } from './loading-message.mjs';
10
10
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -15,6 +15,8 @@ import { PSpinner } from '../components/spinner.wrapper.mjs';
15
15
  */
16
16
  class DSRButtonPure extends Component {
17
17
  host;
18
+ // In the React wrapper, all props are synced as properties on the element ref, so reflecting "form" as an attribute ensures it is properly handled in the form submission process.
19
+ internals;
18
20
  initialLoading = false;
19
21
  get isDisabledOrLoading() {
20
22
  return isDisabledOrLoading(this.props.disabled, this.props.loading);
@@ -28,7 +30,7 @@ class DSRButtonPure extends Component {
28
30
  size: 'inherit',
29
31
  theme: this.props.theme,
30
32
  };
31
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$16(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.underline, this.props.theme)));
33
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$17(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.underline, this.props.theme)));
32
34
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { ...getButtonPureAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, name: this.props.name, value: this.props.value, "aria-describedby": this.props.loading ? loadingId : undefined, children: [this.props.loading ? (jsx(PSpinner, { ...iconProps, "aria-hidden": "true" })) : (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", {}) })] }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
33
35
  }
34
36
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getButtonTileCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getButtonTileCss as getComponentCss$16 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { isDisabledOrLoading } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
9
9
  import { PButton } from '../components/button.wrapper.mjs';
10
10
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
@@ -28,7 +28,7 @@ class DSRButtonTile extends Component {
28
28
  };
29
29
  const button = (createElement(PButton, { ...buttonProps, icon: this.props.icon, key: "link-or-button", className: "link-or-button" }, this.props.label));
30
30
  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));
31
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$15(isDisabledOrLoading(this.props.disabled, this.props.loading), this.props.aspectRatio, this.props.size, this.props.weight, this.props.background, this.props.align, this.props.compact, this.props.gradient, this.props.disabled)));
31
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$16(isDisabledOrLoading(this.props.disabled, this.props.loading), this.props.aspectRatio, this.props.size, this.props.weight, this.props.background, this.props.align, this.props.compact, this.props.gradient, this.props.disabled)));
32
32
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("slot", { name: "header" }), jsx("div", { className: "media", children: jsx("slot", {}) }), jsxs("div", { className: "footer", children: [jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? buttonPure : button) : [buttonPure, button]] })] })] }), this.props.children] }));
33
33
  }
34
34
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getButtonCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getButtonCss as getComponentCss$15 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { getButtonAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
9
9
  import { loadingId, LoadingMessage } from './loading-message.mjs';
10
10
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -15,10 +15,12 @@ import { PSpinner } from '../components/spinner.wrapper.mjs';
15
15
  */
16
16
  class DSRButton extends Component {
17
17
  host;
18
+ // In the React wrapper, all props are synced as properties on the element ref, so reflecting "form" as an attribute ensures it is properly handled in the form submission process.
19
+ internals;
18
20
  initialLoading = false;
19
21
  render() {
20
22
  splitChildren(this.props.children);
21
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$14(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.compact, this.props.theme)));
23
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$15(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.compact, this.props.theme)));
22
24
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, name: this.props.name, value: this.props.value, "aria-describedby": this.props.loading ? loadingId : undefined, children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" })), 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.theme, "aria-hidden": "true" })), jsx("span", { className: "label", children: jsx("slot", {}) })] }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
23
25
  }
24
26
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getCanvasCss as getComponentCss$13 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getCanvasCss as getComponentCss$14 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { PButton } from '../components/button.wrapper.mjs';
9
9
  import { PCrest } from '../components/crest.wrapper.mjs';
10
10
  import { PFlyout } from '../components/flyout.wrapper.mjs';
@@ -40,7 +40,7 @@ class DSRCanvas extends Component {
40
40
  const hasSidebarEnd = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end').length > 0;
41
41
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
42
42
  const hasBackground = namedSlotChildren.filter(({ props: { slot } }) => slot === 'background').length > 0;
43
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$13(this.props.theme, this.props.sidebarStartOpen, this.props.sidebarEndOpen)));
43
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$14(this.props.theme, this.props.sidebarStartOpen, this.props.sidebarEndOpen)));
44
44
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "root", children: [jsxs("header", { className: "header", tabIndex: -1, children: [jsxs("div", { className: "blur", children: [jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {}), jsx("div", {})] }), jsxs("div", { className: "header__area header__area--start", children: [!this.props.sidebarStartOpen && (jsxs(PButton, { theme: this.props.theme, icon: "sidebar", variant: "ghost", compact: true, "hide-label": "true", aria: { 'aria-expanded': this.props.sidebarStartOpen }, children: [this.props.sidebarStartOpen ? 'Close' : 'Open', " navigation sidebar"] })), jsx("slot", { name: "header-start" })] }), jsx(PCrest, { className: "header__crest" }), jsx(PWordmark, { className: "header__wordmark", size: "inherit", theme: this.props.theme }), jsx("div", { className: "header__area header__area--end", children: jsx("slot", { name: "header-end" }) })] }), this.props.isMediaQueryS && (jsx("aside", { className: "sidebar sidebar--start", inert: !this.props.sidebarStartOpen, "aria-label": `Navigation sidebar ${this.props.sidebarStartOpen ? 'open' : 'closed'}`, tabIndex: -1, children: jsxs("div", { className: "sidebar__scroller", children: [jsxs("div", { className: "sidebar__header sidebar__header--start", children: [jsxs(PButton, { theme: this.props.theme, icon: "sidebar", variant: "ghost", compact: true, "hide-label": "true", aria: { 'aria-expanded': this.props.sidebarStartOpen }, children: [this.props.sidebarStartOpen ? 'Close' : 'Open', " navigation sidebar"] }), hasTitle && (jsx("h2", { children: jsx("slot", { name: "title" }) }))] }), jsx("div", { className: "sidebar__content", children: jsx("slot", { name: "sidebar-start" }) })] }) })), jsx("main", { className: "main", children: jsx("slot", {}) }), hasSidebarEnd && this.props.isMediaQueryM && (jsx("aside", { className: "sidebar sidebar--end", inert: !this.props.sidebarEndOpen, "aria-label": `Settings sidebar ${this.props.sidebarEndOpen ? 'open' : 'closed'}`, tabIndex: -1, children: jsxs("div", { className: "sidebar__scroller", children: [jsx("div", { className: "sidebar__header sidebar__header--end", children: jsxs(PButton, { theme: this.props.theme, icon: "close", variant: "ghost", compact: true, "hide-label": "true", aria: { 'aria-expanded': this.props.sidebarEndOpen }, children: [this.props.sidebarEndOpen ? 'Close' : 'Open', " settings sidebar"] }) }), jsx("div", { className: "sidebar__content", children: jsx("slot", { name: "sidebar-end" }) })] }) })), hasFooter && (jsx("footer", { className: "footer", children: jsx("slot", { name: "footer" }) })), hasBackground && jsx("slot", { name: "background" })] }), !this.props.isMediaQueryS && (jsxs(PFlyout, { className: "flyout-start", theme: this.props.theme, open: this.props.sidebarStartOpen, position: "start", children: [hasTitle && (jsx("h2", { slot: "header", children: jsx("slot", { name: "title" }) })), jsx("slot", { name: "sidebar-start" })] })), hasSidebarEnd && !this.props.isMediaQueryM && (jsx(PFlyout, { className: "flyout-end", theme: this.props.theme, open: this.props.sidebarEndOpen, position: "end", children: jsx("slot", { name: "sidebar-end" }) }))] })] }), this.props.children] }));
45
45
  }
46
46
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getCarouselCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getCarouselCss as getComponentCss$13 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { isInfinitePagination, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
9
9
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
10
10
  import { PLinkPure } from '../components/link-pure.wrapper.mjs';
@@ -26,11 +26,13 @@ class DSRCarousel extends Component {
26
26
  btnNext;
27
27
  paginationEl;
28
28
  slides = [];
29
+ get parsedSlidesPerPage() {
30
+ }
29
31
  get splideSlides() {
30
32
  return this.props.splide.Components.Elements.slides;
31
33
  }
32
34
  get hasNavigation() {
33
- return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
35
+ return this.props.parsedSlidesPerPage === 'auto' || this.props.amountOfPages > 1;
34
36
  }
35
37
  render() {
36
38
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
@@ -48,7 +50,7 @@ class DSRCarousel extends Component {
48
50
  // 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
49
51
  };
50
52
  const headingId = 'heading';
51
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$12(this.props.gradientColor, hasHeadingPropOrSlot, hasDescriptionPropOrSlot, hasControlsSlot, this.props.headingSize, this.props.width,
53
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$13(this.props.gradientColor, hasHeadingPropOrSlot, hasDescriptionPropOrSlot, hasControlsSlot, this.props.headingSize, this.props.width,
52
54
  // flip boolean values of disablePagination since it is the inverse of pagination
53
55
  this.props.disablePagination
54
56
  ? typeof this.props.disablePagination === 'object'
@@ -4,10 +4,10 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getCheckboxWrapperCss as getComponentCss$11 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getCheckboxWrapperCss as getComponentCss$12 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { LoadingMessage } from './loading-message.mjs';
9
- import { StateMessage } from './state-message.mjs';
10
9
  import { Label } from './label.mjs';
10
+ import { StateMessage } from './state-message.mjs';
11
11
  import { PSpinner } from '../components/spinner.wrapper.mjs';
12
12
 
13
13
  /**
@@ -22,7 +22,7 @@ class DSRCheckboxWrapper extends Component {
22
22
  render() {
23
23
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
24
24
  const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
25
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$11(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme)));
25
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$12(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme)));
26
26
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, isLoading: this.props.loading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxs("div", { className: "wrapper", children: [jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
27
27
  }
28
28
  }
@@ -4,10 +4,10 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getCheckboxCss as getComponentCss$10 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getCheckboxCss as getComponentCss$11 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { LoadingMessage } from './loading-message.mjs';
9
- import { messageId, StateMessage } from './state-message.mjs';
10
9
  import { Label, descriptionId } from './label.mjs';
10
+ import { messageId, StateMessage } from './state-message.mjs';
11
11
  import { PSpinner } from '../components/spinner.wrapper.mjs';
12
12
 
13
13
  /**
@@ -23,7 +23,7 @@ class DSRCheckbox extends Component {
23
23
  defaultChecked;
24
24
  checkboxInputElement;
25
25
  formResetCallback() {
26
- this.props.internals.setFormValue(this.props.defaultChecked ? this.props.value : undefined);
26
+ this.props.internals?.setFormValue(this.props.defaultChecked ? this.props.value : undefined);
27
27
  }
28
28
  formDisabledCallback() {
29
29
  }
@@ -32,7 +32,7 @@ class DSRCheckbox extends Component {
32
32
  render() {
33
33
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
34
34
  const id = 'checkbox';
35
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$10(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme)));
35
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$11(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme)));
36
36
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx(Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required }), jsxs("div", { className: "wrapper", children: [jsx("input", { type: "checkbox", id: id, "aria-describedby": `${descriptionId} ${messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsx(LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
37
37
  }
38
38
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getContentWrapperCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getContentWrapperCss as getComponentCss$10 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
 
8
8
  /**
9
9
  * @slot {"name": "", "description": "Default slot for main content." }
@@ -13,7 +13,7 @@ class DSRContentWrapper extends Component {
13
13
  host;
14
14
  render() {
15
15
  splitChildren(this.props.children);
16
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$$(this.props.width)));
16
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$10(this.props.width)));
17
17
  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] }));
18
18
  }
19
19
  }
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.mjs';
4
4
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
5
- import { getCrestCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getCrestCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
  import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
7
7
 
8
8
  const { width, height } = crestSize;
@@ -10,7 +10,7 @@ class DSRCrest extends Component {
10
10
  host;
11
11
  render() {
12
12
  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: buildCrestImgSrc(), width: width, height: height, alt: "Porsche" })] }));
13
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$_()));
13
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$$()));
14
14
  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 })) })] }) }));
15
15
  }
16
16
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getDisplayCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getDisplayCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
 
9
9
  /**
@@ -18,7 +18,7 @@ class DSRDisplay extends Component {
18
18
  right: 'end',
19
19
  };
20
20
  const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
21
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Z(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
21
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$_(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
22
22
  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] }));
23
23
  }
24
24
  }
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { Component } from 'react';
3
3
  import { minifyCss } from '../../minifyCss.mjs';
4
4
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
5
- import { getDividerCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getDividerCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  class DSRDivider extends Component {
8
8
  host;
@@ -12,7 +12,7 @@ class DSRDivider extends Component {
12
12
  'neutral-contrast-medium': 'contrast-medium',
13
13
  'neutral-contrast-high': 'contrast-high',
14
14
  };
15
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
15
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Z((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
16
16
  return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
17
17
  }
18
18
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getFieldsetWrapperCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getFieldsetWrapperCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { messageId, StateMessage } from './state-message.mjs';
8
8
  import { Required } from './required.mjs';
9
9
 
@@ -19,7 +19,7 @@ class DSRFieldsetWrapper extends Component {
19
19
  render() {
20
20
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
21
21
  const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
22
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$X(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
22
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
23
23
  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", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
24
24
  }
25
25
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getFieldsetCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getFieldsetCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { messageId, StateMessage } from './state-message.mjs';
8
8
  import { Required } from './required.mjs';
9
9
 
@@ -17,7 +17,7 @@ class DSRFieldset extends Component {
17
17
  render() {
18
18
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
19
19
  const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
20
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$W(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
20
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$X(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
21
21
  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", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
22
22
  }
23
23
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getFlexItemCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getFlexItemCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
 
8
8
  /**
9
9
  * @slot {"name": "", "description": "Default slot for the main content." }
@@ -13,7 +13,7 @@ class DSRFlexItem extends Component {
13
13
  host;
14
14
  render() {
15
15
  splitChildren(this.props.children);
16
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$V(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
16
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$W(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
17
17
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
18
18
  }
19
19
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getFlexCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getFlexCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
 
8
8
  /**
9
9
  * @slot {"name": "", "description": "Default slot for the flex items." }
@@ -13,7 +13,7 @@ class DSRFlex extends Component {
13
13
  host;
14
14
  render() {
15
15
  splitChildren(this.props.children);
16
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$U(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
16
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$V(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
17
17
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
18
18
  }
19
19
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getFlyoutMultilevelItemCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getFlyoutMultilevelItemCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
9
9
 
10
10
  /**
@@ -23,7 +23,7 @@ class DSRFlyoutMultilevelItem extends Component {
23
23
  }
24
24
  render() {
25
25
  splitChildren(this.props.children);
26
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.primary, this.props.secondary, this.props.cascade, this.theme)));
26
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.primary, this.props.secondary, this.props.cascade, this.theme)));
27
27
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(PButtonPure, { inert: this.props.primary || this.props.cascade, className: "button", type: "button", size: "medium", alignLabel: "start", stretch: true, icon: "arrow-head-right", active: this.props.secondary, aria: { 'aria-expanded': this.props.secondary }, theme: this.theme, children: this.props.label }), jsx(PButtonPure, { className: "back", type: "button", size: "small", alignLabel: "end", stretch: true, icon: "arrow-left", theme: this.theme, hideLabel: { base: true, s: false }, children: this.props.label }), jsx("h2", { children: this.props.label }), jsx("div", { className: "drawer", children: jsx("div", { className: "scroller", children: jsx("slot", {}) }) })] })] }), this.props.children] }));
28
28
  }
29
29
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getFlyoutMultilevelCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getFlyoutMultilevelCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { updateFlyoutMultiLevelItemState, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
9
9
  import { PButton } from '../components/button.wrapper.mjs';
10
10
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
@@ -32,7 +32,7 @@ class DSRFlyoutMultilevel extends Component {
32
32
  }
33
33
  render() {
34
34
  splitChildren(this.props.children);
35
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.open, this.primary, this.isSecondaryDrawerVisible, this.props.theme)));
35
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$U(this.props.open, this.primary, this.isSecondaryDrawerVisible, this.props.theme)));
36
36
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { inert: !this.props.open, ...parseAndGetAriaAttributes(this.props.aria), children: jsxs("div", { className: "drawer", children: [jsx(PButtonPure, { className: "back", type: "button", size: "small", alignLabel: "end", stretch: true, icon: "arrow-left", theme: this.props.theme, hideLabel: true, children: "Back" }), jsx(PButton, { className: "dismiss-mobile", type: "button", variant: "ghost", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss flyout" }), jsx(PButtonPure, { className: "dismiss-desktop", type: "button", size: "medium", icon: "close", hideLabel: true, theme: this.props.theme, children: "Dismiss flyout" }), jsx("div", { className: "scroller", children: jsx("slot", {}) })] }) })] }), this.props.children] }));
37
37
  }
38
38
  }
@@ -4,7 +4,7 @@ import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
6
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
7
- import { getFlyoutCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { getFlyoutCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
8
8
  import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
9
9
  import { PButton } from '../components/button.wrapper.mjs';
10
10
 
@@ -34,7 +34,7 @@ class DSRFlyout extends Component {
34
34
  const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
35
35
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
36
36
  const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
37
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.open, (positionDeprecationMap[this.props.position] || this.props.position), hasHeader, hasFooter, hasSubFooter, this.props.footerBehavior, this.props.theme)));
37
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.open, (positionDeprecationMap[this.props.position] || this.props.position), hasHeader, hasFooter, hasSubFooter, this.props.footerBehavior, this.props.theme)));
38
38
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("dialog", { tabIndex: -1, ...parseAndGetAriaAttributes({
39
39
  'aria-modal': true,
40
40
  ...{ 'aria-label': hasHeader ? namedSlotChildren.find(({ props: { slot } }) => slot === 'header')?.props.children : 'Flyout' },
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getGridItemCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getGridItemCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
 
8
8
  /**
9
9
  * @slot {"name": "", "description": "Default slot to render the content." }
@@ -14,7 +14,7 @@ class DSRGridItem extends Component {
14
14
  host;
15
15
  render() {
16
16
  splitChildren(this.props.children);
17
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q(this.props.size, this.props.offset)));
17
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.size, this.props.offset)));
18
18
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
19
19
  }
20
20
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getGridCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getGridCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
 
8
8
  /**
9
9
  * @slot {"name": "", "description": "Default slot to render p-grid-item tags." }
@@ -17,7 +17,7 @@ class DSRGrid extends Component {
17
17
  const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
18
18
  ? { ...child, props: { ...child.props, gutter: this.props.gutter } }
19
19
  : child);
20
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P(this.props.direction, this.props.wrap)));
20
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q(this.props.direction, this.props.wrap)));
21
21
  return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), manipulatedChildren] }));
22
22
  }
23
23
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getHeadingCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getHeadingCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getHeadingTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
 
9
9
  /**
@@ -18,7 +18,7 @@ class DSRHeading extends Component {
18
18
  right: 'end',
19
19
  };
20
20
  const TagType = getHeadingTagType(null, this.props.size, this.props.tag);
21
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
21
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
22
22
  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] }));
23
23
  }
24
24
  }
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
5
  import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
6
- import { getHeadlineCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getHeadlineCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { getHeadlineTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
 
9
9
  /**
@@ -20,7 +20,7 @@ class DSRHeadline extends Component {
20
20
  right: 'end',
21
21
  };
22
22
  const TagType = getHeadlineTagType(null, this.props.variant, this.props.tag);
23
- const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N(this.props.variant, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
23
+ const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.variant, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
24
24
  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] }));
25
25
  }
26
26
  }