@porsche-design-system/components-react 3.29.0-rc.1 → 3.29.0-rc.3

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 (124) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
  3. package/cjs/lib/components/input-email.wrapper.cjs +29 -0
  4. package/cjs/public-api.cjs +2 -0
  5. package/esm/hooks.mjs +1 -1
  6. package/esm/lib/components/index.d.ts +1 -0
  7. package/esm/lib/components/input-email.wrapper.d.ts +200 -0
  8. package/esm/lib/components/input-email.wrapper.mjs +27 -0
  9. package/esm/lib/components/input-number.wrapper.d.ts +31 -31
  10. package/esm/lib/components/input-password.wrapper.d.ts +35 -35
  11. package/esm/lib/components/input-search.wrapper.d.ts +31 -31
  12. package/esm/lib/components/input-text.wrapper.d.ts +35 -35
  13. package/esm/lib/components/textarea.wrapper.d.ts +37 -37
  14. package/esm/lib/types.d.ts +4 -27
  15. package/esm/public-api.mjs +1 -0
  16. package/package.json +8 -8
  17. package/partials/esm/index.mjs +1 -0
  18. package/partials/package.json +3 -3
  19. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +85 -74
  20. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +7 -3
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.cjs +40 -0
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -1
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -1
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.cjs +1 -1
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +2 -2
  34. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +43 -0
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -2
  36. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -1
  37. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
  38. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
  39. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
  40. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
  41. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -1
  42. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
  43. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -1
  44. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
  45. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -1
  46. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
  47. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
  48. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
  49. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
  50. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
  51. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
  52. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -1
  53. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +1 -1
  54. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
  55. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
  56. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +57 -47
  57. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +7 -3
  58. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.mjs +38 -0
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -3
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +3 -3
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +3 -3
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -3
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -3
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +3 -3
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +3 -3
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +3 -3
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +3 -3
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +3 -3
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +3 -3
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
  83. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +3 -3
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +3 -3
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +3 -3
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +2 -2
  89. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +41 -0
  90. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -2
  91. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -1
  92. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
  93. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
  94. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
  95. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
  96. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
  97. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +1 -1
  98. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
  99. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -1
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -2
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +1 -1
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
  112. package/ssr/esm/lib/components/index.d.ts +1 -0
  113. package/ssr/esm/lib/components/input-email.wrapper.d.ts +200 -0
  114. package/ssr/esm/lib/components/input-number.wrapper.d.ts +31 -31
  115. package/ssr/esm/lib/components/input-password.wrapper.d.ts +35 -35
  116. package/ssr/esm/lib/components/input-search.wrapper.d.ts +31 -31
  117. package/ssr/esm/lib/components/input-text.wrapper.d.ts +35 -35
  118. package/ssr/esm/lib/components/textarea.wrapper.d.ts +37 -37
  119. package/ssr/esm/lib/dsr-components/input-base.d.ts +2 -0
  120. package/ssr/esm/lib/dsr-components/input-email.d.ts +19 -0
  121. package/ssr/esm/lib/types.d.ts +4 -27
  122. package/partials/index.js +0 -12
  123. /package/partials/{index.cjs → cjs/index.cjs} +0 -0
  124. /package/partials/{index.d.ts → esm/index.d.ts} +0 -0
@@ -2731,11 +2731,15 @@ function getDefaultExportFromCjs (x) {
2731
2731
  }
2732
2732
 
2733
2733
  function getAugmentedNamespace(n) {
2734
- if (n.__esModule) return n;
2734
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
2735
2735
  var f = n.default;
2736
2736
  if (typeof f == "function") {
2737
2737
  var a = function a () {
2738
- if (this instanceof a) {
2738
+ var isInstance = false;
2739
+ try {
2740
+ isInstance = this instanceof a;
2741
+ } catch {}
2742
+ if (isInstance) {
2739
2743
  return Reflect.construct(f, arguments, this.constructor);
2740
2744
  }
2741
2745
  return f.apply(this, arguments);
@@ -3635,7 +3639,7 @@ const addImportantToEachRule = (input) => {
3635
3639
  ? result
3636
3640
  : // @ts-expect-error: Type string can't be used to index type JssStyle
3637
3641
  ((result[key] =
3638
- // biome-ignore lint/style/noCommaOperator: to be refactored
3642
+ // biome-ignore lint/complexity/noCommaOperator: to be refactored
3639
3643
  typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
3640
3644
  result), {});
3641
3645
  };
@@ -3809,7 +3813,6 @@ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
3809
3813
  // NOTE: taken from https://stackoverflow.com/a/48218209
3810
3814
  const mergeDeep = (...objects) => {
3811
3815
  return objects.reduce((prev, obj) => {
3812
- // biome-ignore lint/complexity/noForEach: to be refactored
3813
3816
  Object.keys(obj).forEach((key) => {
3814
3817
  const pVal = prev[key];
3815
3818
  const oVal = obj[key];
@@ -3892,20 +3895,6 @@ const supportsChromiumMediaQuery = (style) => ({
3892
3895
  '@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm)': style,
3893
3896
  });
3894
3897
 
3895
- /**
3896
- * Checks if the current environment supports the native Popover API.
3897
- *
3898
- * @returns {boolean} `true` if the native Popover API is supported, `false` otherwise.
3899
- */
3900
- const supportsNativePopover = () => {
3901
- if (!hasWindow) {
3902
- return false;
3903
- }
3904
- return Object.prototype.hasOwnProperty.call(HTMLElement.prototype, 'popover');
3905
- };
3906
- // determine it once
3907
- supportsNativePopover();
3908
-
3909
3898
  const hasDocument = typeof document !== 'undefined';
3910
3899
 
3911
3900
  const isThemeAuto = (theme) => {
@@ -3932,7 +3921,7 @@ const formatObjectOutput = (value) => {
3932
3921
 
3933
3922
  const OPTION_LIST_SAFE_ZONE = 6;
3934
3923
 
3935
- const getComponentCss$1f = (size, compact, open, theme, sticky) => {
3924
+ const getComponentCss$1g = (size, compact, open, theme, sticky) => {
3936
3925
  const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
3937
3926
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
3938
3927
  const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
@@ -4104,7 +4093,7 @@ const cssVariableTop = '--p-banner-position-top';
4104
4093
  const cssVariableBottom = '--p-banner-position-bottom';
4105
4094
  const cssVariableZIndex = '--p-internal-banner-z-index';
4106
4095
  const topBottomFallback = '56px';
4107
- const getComponentCss$1e = (isOpen) => {
4096
+ const getComponentCss$1f = (isOpen) => {
4108
4097
  return getCss({
4109
4098
  '@global': {
4110
4099
  ':host': {
@@ -4176,7 +4165,7 @@ const getGroupDirectionJssStyles = (direction) => {
4176
4165
  return groupDirectionJssStyles[direction];
4177
4166
  };
4178
4167
 
4179
- const getComponentCss$1d = (direction) => {
4168
+ const getComponentCss$1e = (direction) => {
4180
4169
  return getCss({
4181
4170
  '@global': {
4182
4171
  ':host': {
@@ -4329,7 +4318,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
4329
4318
  };
4330
4319
  };
4331
4320
 
4332
- const getComponentCss$1c = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
4321
+ const getComponentCss$1d = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
4333
4322
  const hasIcon = hasVisibleIcon(icon, iconSource);
4334
4323
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
4335
4324
  root: {
@@ -4367,7 +4356,7 @@ const getFontWeight = (weight) => {
4367
4356
  return fontWeightMap[weight];
4368
4357
  };
4369
4358
 
4370
- const getComponentCss$1b = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
4359
+ const getComponentCss$1c = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
4371
4360
  const isTopAligned = align === 'top';
4372
4361
  return getCss({
4373
4362
  '@global': {
@@ -4637,7 +4626,7 @@ const getDisabledColors = (variant, loading, theme) => {
4637
4626
  };
4638
4627
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4639
4628
  };
4640
- const getComponentCss$1a = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
4629
+ const getComponentCss$1b = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
4641
4630
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
4642
4631
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
4643
4632
  const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
@@ -4713,7 +4702,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
4713
4702
  const mediaQueryM = getMediaQueryMin('m');
4714
4703
  // others
4715
4704
  const spacingBase = gridGap.replace('36px', '24px');
4716
- const getComponentCss$19 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
4705
+ const getComponentCss$1a = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
4717
4706
  const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
4718
4707
  const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
4719
4708
  return getCss({
@@ -5092,7 +5081,7 @@ const getGradient$1 = (theme, gradientColorTheme) => {
5092
5081
  `rgba(${gradientColor},0.3) 68%,` +
5093
5082
  `rgba(${gradientColor},0)`);
5094
5083
  };
5095
- const getComponentCss$18 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
5084
+ const getComponentCss$19 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
5096
5085
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
5097
5086
  const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
5098
5087
  const { canvasTextColor } = getHighContrastColors();
@@ -5550,7 +5539,7 @@ const getCheckedSVGBackgroundImage$2 = (fill) => {
5550
5539
  const getIndeterminateSVGBackgroundImage$1 = (fill) => {
5551
5540
  return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
5552
5541
  };
5553
- const getComponentCss$17 = (hideLabel, state, isDisabled, isLoading, theme) => {
5542
+ const getComponentCss$18 = (hideLabel, state, isDisabled, isLoading, theme) => {
5554
5543
  const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
5555
5544
  const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
5556
5545
  const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
@@ -5752,7 +5741,7 @@ const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
5752
5741
  const getIndeterminateSVGBackgroundImage = (fill) => {
5753
5742
  return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
5754
5743
  };
5755
- const getComponentCss$16 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
5744
+ const getComponentCss$17 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
5756
5745
  const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
5757
5746
  const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
5758
5747
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
@@ -6176,7 +6165,7 @@ const widthMap = {
6176
6165
  basic: gridBasicOffset,
6177
6166
  extended: gridExtendedOffset,
6178
6167
  };
6179
- const getComponentCss$15 = (width) => {
6168
+ const getComponentCss$16 = (width) => {
6180
6169
  return getCss({
6181
6170
  '@global': {
6182
6171
  ':host': {
@@ -6218,7 +6207,7 @@ const getDimensionStyle = {
6218
6207
  width: 'inherit',
6219
6208
  height: 'inherit',
6220
6209
  };
6221
- const getComponentCss$14 = () => {
6210
+ const getComponentCss$15 = () => {
6222
6211
  return getCss({
6223
6212
  '@global': {
6224
6213
  ':host': {
@@ -6317,7 +6306,7 @@ const sizeMap$4 = {
6317
6306
  medium: fontSizeDisplayMedium,
6318
6307
  large: fontSizeDisplayLarge,
6319
6308
  };
6320
- const getComponentCss$13 = (size, align, color, ellipsis, theme) => {
6309
+ const getComponentCss$14 = (size, align, color, ellipsis, theme) => {
6321
6310
  return getCss({
6322
6311
  '@global': {
6323
6312
  ':host': {
@@ -6335,7 +6324,7 @@ const getComponentCss$13 = (size, align, color, ellipsis, theme) => {
6335
6324
  });
6336
6325
  };
6337
6326
 
6338
- const getComponentCss$12 = (color, orientation, theme) => {
6327
+ const getComponentCss$13 = (color, orientation, theme) => {
6339
6328
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
6340
6329
  const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
6341
6330
  const colorMap = {
@@ -6396,7 +6385,7 @@ const easingOpen = 'in';
6396
6385
  const dialogDurationClose = 'short';
6397
6386
  const backdropDurationClose = 'moderate';
6398
6387
  const easingClose = 'out';
6399
- const getComponentCss$11 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
6388
+ const getComponentCss$12 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
6400
6389
  const { primaryColor, backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
6401
6390
  const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
6402
6391
  return getCss({
@@ -6643,7 +6632,7 @@ const getComponentCss$11 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme
6643
6632
  });
6644
6633
  };
6645
6634
 
6646
- const getComponentCss$10 = (isPrimary, isSecondary, isCascade) => {
6635
+ const getComponentCss$11 = (isPrimary, isSecondary, isCascade) => {
6647
6636
  return getCss({
6648
6637
  '@global': {
6649
6638
  '@keyframes slide-up-mobile': {
@@ -6874,7 +6863,7 @@ const getComponentCss$10 = (isPrimary, isSecondary, isCascade) => {
6874
6863
  });
6875
6864
  };
6876
6865
 
6877
- const getComponentCss$$ = (hasSlottedAnchor, isActive) => {
6866
+ const getComponentCss$10 = (hasSlottedAnchor, isActive) => {
6878
6867
  const anchorJssStyle = {
6879
6868
  all: 'unset',
6880
6869
  padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
@@ -6926,7 +6915,7 @@ const getComponentCss$$ = (hasSlottedAnchor, isActive) => {
6926
6915
  });
6927
6916
  };
6928
6917
 
6929
- const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
6918
+ const getComponentCss$$ = (state, labelSize, hasLabel, theme) => {
6930
6919
  return getCss({
6931
6920
  '@global': {
6932
6921
  ':host': {
@@ -6963,7 +6952,7 @@ const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
6963
6952
  });
6964
6953
  };
6965
6954
 
6966
- const getComponentCss$Z = (state, labelSize, hasLabel, theme) => {
6955
+ const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
6967
6956
  return getCss({
6968
6957
  '@global': {
6969
6958
  ':host': {
@@ -7010,7 +6999,7 @@ const flexItemWidths = {
7010
6999
  full: 100,
7011
7000
  auto: 'auto',
7012
7001
  };
7013
- const getComponentCss$Y = (width, offset, alignSelf, grow, shrink, flex) => {
7002
+ const getComponentCss$Z = (width, offset, alignSelf, grow, shrink, flex) => {
7014
7003
  return getCss({
7015
7004
  '@global': {
7016
7005
  ':host': addImportantToEachRule({
@@ -7032,7 +7021,7 @@ const getComponentCss$Y = (width, offset, alignSelf, grow, shrink, flex) => {
7032
7021
  });
7033
7022
  };
7034
7023
 
7035
- const getComponentCss$X = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
7024
+ const getComponentCss$Y = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
7036
7025
  return getCss({
7037
7026
  '@global': {
7038
7027
  ':host': {
@@ -7229,7 +7218,7 @@ const cssVarRefPaddingTop = '--ref-p-flyout-pt';
7229
7218
  const cssVarRefPaddingInline = '--ref-p-flyout-px';
7230
7219
  // TODO: we shouldn't expose --p-flyout-max-width
7231
7220
  const cssVariableMaxWidth = '--p-flyout-max-width';
7232
- const getComponentCss$W = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
7221
+ const getComponentCss$X = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
7233
7222
  const isPositionStart = position === 'start' || position === 'left';
7234
7223
  const isFooterFixed = footerBehavior === 'fixed';
7235
7224
  return getCss({
@@ -7341,7 +7330,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
7341
7330
  const gridItemWidths = [
7342
7331
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
7343
7332
  ];
7344
- const getComponentCss$V = (size, offset) => {
7333
+ const getComponentCss$W = (size, offset) => {
7345
7334
  return getCss({
7346
7335
  '@global': {
7347
7336
  ':host': addImportantToEachRule({
@@ -7361,7 +7350,7 @@ const getComponentCss$V = (size, offset) => {
7361
7350
  };
7362
7351
 
7363
7352
  const gutter = `calc(${gridGap} / -2)`;
7364
- const getComponentCss$U = (direction, wrap) => {
7353
+ const getComponentCss$V = (direction, wrap) => {
7365
7354
  return getCss({
7366
7355
  '@global': {
7367
7356
  ':host': {
@@ -7387,7 +7376,7 @@ const sizeMap$3 = {
7387
7376
  'x-large': fontSizeHeadingXLarge,
7388
7377
  'xx-large': fontSizeHeadingXXLarge,
7389
7378
  };
7390
- const getComponentCss$T = (size, align, color, ellipsis, theme) => {
7379
+ const getComponentCss$U = (size, align, color, ellipsis, theme) => {
7391
7380
  return getCss({
7392
7381
  '@global': {
7393
7382
  ':host': {
@@ -7447,7 +7436,7 @@ const getTextSizeJssStyle = (textSize) => {
7447
7436
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
7448
7437
  };
7449
7438
  };
7450
- const getComponentCss$S = (variant, align, color, ellipsis, theme) => {
7439
+ const getComponentCss$T = (variant, align, color, ellipsis, theme) => {
7451
7440
  return getCss({
7452
7441
  '@global': {
7453
7442
  ':host': {
@@ -7558,7 +7547,7 @@ const isFlippableIcon = (name, source) => {
7558
7547
  name === 'return' ||
7559
7548
  name === 'send'));
7560
7549
  };
7561
- const getComponentCss$R = (name, source, color, size, theme) => {
7550
+ const getComponentCss$S = (name, source, color, size, theme) => {
7562
7551
  const isColorInherit = color === 'inherit';
7563
7552
  const isSizeInherit = size === 'inherit';
7564
7553
  const isDark = isThemeDark(theme);
@@ -7677,7 +7666,7 @@ const getHeadingJssStyle = (theme) => ({
7677
7666
  ...headingSmallStyle,
7678
7667
  ...getTextJssStyle(theme),
7679
7668
  });
7680
- const getComponentCss$Q = (state, hasAction, hasClose, theme) => {
7669
+ const getComponentCss$R = (state, hasAction, hasClose, theme) => {
7681
7670
  return getCss({
7682
7671
  '@global': {
7683
7672
  ':host': {
@@ -7717,6 +7706,26 @@ const getComponentCss$Q = (state, hasAction, hasClose, theme) => {
7717
7706
  });
7718
7707
  };
7719
7708
 
7709
+ // CSS Variables defined in base input
7710
+ /**
7711
+ * @css-variable {"name": "--ref-p-input-slotted-padding", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `padding` in oder to adjust the alignment correctly."}
7712
+ */
7713
+ /**
7714
+ * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7715
+ */
7716
+ const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
7717
+ return getCss({
7718
+ ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
7719
+ textOverflow: 'ellipsis',
7720
+ MozAppearance: 'textfield',
7721
+ '&::-webkit-inner-spin-button, &::-webkit-outer-spin-button': {
7722
+ WebkitAppearance: 'none',
7723
+ },
7724
+ }),
7725
+ 'sr-only': getHiddenTextJssStyle(),
7726
+ });
7727
+ };
7728
+
7720
7729
  // CSS Variables defined in base input
7721
7730
  /**
7722
7731
  * @css-variable {"name": "--ref-p-input-slotted-padding", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `padding` in oder to adjust the alignment correctly."}
@@ -9497,6 +9506,7 @@ const getComponentCss$w = (gradientColor, isNextHidden, isPrevHidden, alignScrol
9497
9506
  };
9498
9507
 
9499
9508
  const ITEM_PADDING = '17px';
9509
+ const { font: BUTTON_FONT } = textSmallStyle;
9500
9510
  const ICON_SIZE = '1.5rem';
9501
9511
  const ICON_MARGIN = '.25rem';
9502
9512
  const getColors$2 = (isDisabled, isSelected, theme) => {
@@ -11498,4 +11508,4 @@ const getComponentCss = (size, theme) => {
11498
11508
  });
11499
11509
  };
11500
11510
 
11501
- export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$1f as getAccordionCss, getComponentCss$1e as getBannerCss, getComponentCss$1a as getButtonCss, getComponentCss$1d as getButtonGroupCss, getComponentCss$1c as getButtonPureCss, getComponentCss$1b as getButtonTileCss, getComponentCss$19 as getCanvasCss, getComponentCss$18 as getCarouselCss, getComponentCss$16 as getCheckboxCss, getComponentCss$17 as getCheckboxWrapperCss, getComponentCss$15 as getContentWrapperCss, getComponentCss$14 as getCrestCss, getComponentCss$13 as getDisplayCss, getComponentCss$12 as getDividerCss, getComponentCss$11 as getDrilldownCss, getComponentCss$10 as getDrilldownItemCss, getComponentCss$$ as getDrilldownLinkCss, getComponentCss$Z as getFieldsetCss, getComponentCss$_ as getFieldsetWrapperCss, getComponentCss$X as getFlexCss, getComponentCss$Y as getFlexItemCss, getComponentCss$W as getFlyoutCss, getFunctionalComponentInputBaseStyles, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$U as getGridCss, getComponentCss$V as getGridItemCss, getComponentCss$T as getHeadingCss, getComponentCss$S as getHeadlineCss, getComponentCss$R as getIconCss, getComponentCss$Q as getInlineNotificationCss, getComponentCss$P as getInputNumberCss, getComponentCss$O as getInputPasswordCss, getComponentCss$N as getInputSearchCss, getComponentCss$M as getInputTextCss, getComponentCss$K as getLinkCss, getComponentCss$L as getLinkPureCss, getComponentCss$K as getLinkSocialCss, getComponentCss$H as getLinkTileCss, getComponentCss$J as getLinkTileModelSignatureCss, getComponentCss$I as getLinkTileProductCss, getComponentCss$G as getMarqueCss, getComponentCss$F as getModalCss, getComponentCss$E as getModelSignatureCss, getComponentCss$C as getMultiSelectCss, getComponentCss$D as getMultiSelectOptionCss, getComponentCss$B as getOptgroupCss, getComponentCss$A as getPaginationCss, getComponentCss$z as getPinCodeCss, getComponentCss$y as getPopoverCss, getComponentCss$x as getRadioButtonWrapperCss, getScalingVar, getComponentCss$w as getScrollerCss, getComponentCss$u as getSegmentedControlCss, getComponentCss$v as getSegmentedControlItemCss, getComponentCss$q as getSelectCss, getComponentCss$r as getSelectOptionCss, getComponentCss$s as getSelectWrapperCss, getComponentCss$t as getSelectWrapperDropdownCss, getComponentCss$p as getSheetCss, getComponentCss$o as getSpinnerCss, getComponentCss$m as getStepperHorizontalCss, getComponentCss$n as getStepperHorizontalItemCss, getComponentCss$l as getSwitchCss, getComponentCss$k as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$j as getTableCss, getComponentCss$h as getTableHeadCellCss, getComponentCss$f as getTableHeadCss, getComponentCss$g as getTableHeadRowCss, getComponentCss$e as getTableRowCss, getComponentCss$d as getTabsBarCss, getComponentCss$b as getTabsCss, getComponentCss$c as getTabsItemCss, getComponentCss$9 as getTagCss, getComponentCss$a as getTagDismissibleCss, getComponentCss$5 as getTextCss, getComponentCss$8 as getTextFieldWrapperCss, getComponentCss$7 as getTextListCss, getComponentCss$6 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$4 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
11511
+ export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$1g as getAccordionCss, getComponentCss$1f as getBannerCss, getComponentCss$1b as getButtonCss, getComponentCss$1e as getButtonGroupCss, getComponentCss$1d as getButtonPureCss, getComponentCss$1c as getButtonTileCss, getComponentCss$1a as getCanvasCss, getComponentCss$19 as getCarouselCss, getComponentCss$17 as getCheckboxCss, getComponentCss$18 as getCheckboxWrapperCss, getComponentCss$16 as getContentWrapperCss, getComponentCss$15 as getCrestCss, getComponentCss$14 as getDisplayCss, getComponentCss$13 as getDividerCss, getComponentCss$12 as getDrilldownCss, getComponentCss$11 as getDrilldownItemCss, getComponentCss$10 as getDrilldownLinkCss, getComponentCss$_ as getFieldsetCss, getComponentCss$$ as getFieldsetWrapperCss, getComponentCss$Y as getFlexCss, getComponentCss$Z as getFlexItemCss, getComponentCss$X as getFlyoutCss, getFunctionalComponentInputBaseStyles, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$V as getGridCss, getComponentCss$W as getGridItemCss, getComponentCss$U as getHeadingCss, getComponentCss$T as getHeadlineCss, getComponentCss$S as getIconCss, getComponentCss$R as getInlineNotificationCss, getComponentCss$Q as getInputEmailCss, getComponentCss$P as getInputNumberCss, getComponentCss$O as getInputPasswordCss, getComponentCss$N as getInputSearchCss, getComponentCss$M as getInputTextCss, getComponentCss$K as getLinkCss, getComponentCss$L as getLinkPureCss, getComponentCss$K as getLinkSocialCss, getComponentCss$H as getLinkTileCss, getComponentCss$J as getLinkTileModelSignatureCss, getComponentCss$I as getLinkTileProductCss, getComponentCss$G as getMarqueCss, getComponentCss$F as getModalCss, getComponentCss$E as getModelSignatureCss, getComponentCss$C as getMultiSelectCss, getComponentCss$D as getMultiSelectOptionCss, getComponentCss$B as getOptgroupCss, getComponentCss$A as getPaginationCss, getComponentCss$z as getPinCodeCss, getComponentCss$y as getPopoverCss, getComponentCss$x as getRadioButtonWrapperCss, getScalingVar, getComponentCss$w as getScrollerCss, getComponentCss$u as getSegmentedControlCss, getComponentCss$v as getSegmentedControlItemCss, getComponentCss$q as getSelectCss, getComponentCss$r as getSelectOptionCss, getComponentCss$s as getSelectWrapperCss, getComponentCss$t as getSelectWrapperDropdownCss, getComponentCss$p as getSheetCss, getComponentCss$o as getSpinnerCss, getComponentCss$m as getStepperHorizontalCss, getComponentCss$n as getStepperHorizontalItemCss, getComponentCss$l as getSwitchCss, getComponentCss$k as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$j as getTableCss, getComponentCss$h as getTableHeadCellCss, getComponentCss$f as getTableHeadCss, getComponentCss$g as getTableHeadRowCss, getComponentCss$e as getTableRowCss, getComponentCss$d as getTabsBarCss, getComponentCss$b as getTabsCss, getComponentCss$c as getTabsItemCss, getComponentCss$9 as getTagCss, getComponentCss$a as getTagDismissibleCss, getComponentCss$5 as getTextCss, getComponentCss$8 as getTextFieldWrapperCss, getComponentCss$7 as getTextListCss, getComponentCss$6 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$4 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
@@ -2731,11 +2731,15 @@ function getDefaultExportFromCjs (x) {
2731
2731
  }
2732
2732
 
2733
2733
  function getAugmentedNamespace(n) {
2734
- if (n.__esModule) return n;
2734
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
2735
2735
  var f = n.default;
2736
2736
  if (typeof f == "function") {
2737
2737
  var a = function a () {
2738
- if (this instanceof a) {
2738
+ var isInstance = false;
2739
+ try {
2740
+ isInstance = this instanceof a;
2741
+ } catch {}
2742
+ if (isInstance) {
2739
2743
  return Reflect.construct(f, arguments, this.constructor);
2740
2744
  }
2741
2745
  return f.apply(this, arguments);
@@ -3509,7 +3513,7 @@ const supportsNativePopover = () => {
3509
3513
  if (!hasWindow$1) {
3510
3514
  return false;
3511
3515
  }
3512
- return Object.prototype.hasOwnProperty.call(HTMLElement.prototype, 'popover');
3516
+ return Object.hasOwn(HTMLElement.prototype, 'popover');
3513
3517
  };
3514
3518
  // determine it once
3515
3519
  const hasNativePopoverSupport = supportsNativePopover();
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useContext, useEffect, useRef, useMemo, useLayoutEffect } from 'react';
2
+ import { useLayoutEffect, useEffect, useContext, useRef, useMemo } from 'react';
3
3
  import { PorscheDesignSystemContext } from './provider.mjs';
4
4
  import { getMergedClassName } from './utils.mjs';
5
5
 
@@ -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 { DSRInputEmail } from '../dsr-components/input-email.mjs';
7
+
8
+ const PInputEmail = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = false, label = '', loading = false, maxLength, message = '', minLength, multiple = false, name, onBlur, onChange, onInput, pattern, placeholder = '', readOnly = false, required = false, state = 'none', theme, value = '', className, children, ...rest }, ref) => {
9
+ const elementRef = useRef(undefined);
10
+ useEventCallback(elementRef, 'blur', onBlur);
11
+ useEventCallback(elementRef, 'change', onChange);
12
+ useEventCallback(elementRef, 'input', onInput);
13
+ const WebComponentTag = usePrefix('p-input-email');
14
+ const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, theme || useTheme(), value];
15
+ useBrowserLayoutEffect(() => {
16
+ const { current } = elementRef;
17
+ ['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'maxLength', 'message', 'minLength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'state', 'theme', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
+ }, propsToSync);
19
+ const props = {
20
+ ...rest,
21
+ // @ts-ignore
22
+ ...(!process.browser
23
+ ? {
24
+ children: (jsx(DSRInputEmail, { autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, theme: theme || useTheme(), value, 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 { PInputEmail };
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getAccordionCss as getComponentCss$1f } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getAccordionCss as getComponentCss$1g } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PIcon } from '../components/icon.wrapper.mjs';
8
8
 
9
9
  /**
@@ -19,7 +19,7 @@ class DSRAccordion extends Component {
19
19
  const buttonId = 'accordion-control';
20
20
  const contentId = 'accordion-panel';
21
21
  const Heading = this.props.tag || this.props.headingTag;
22
- const style = minifyCss(getComponentCss$1f(this.props.size, this.props.compact, this.props.open, this.props.theme, this.props.sticky));
22
+ const style = minifyCss(getComponentCss$1g(this.props.size, this.props.compact, this.props.open, this.props.theme, this.props.sticky));
23
23
  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] }));
24
24
  }
25
25
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getBannerCss as getComponentCss$1e } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getBannerCss as getComponentCss$1f } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PInlineNotification } from '../components/inline-notification.wrapper.mjs';
8
8
 
9
9
  /**
@@ -21,9 +21,9 @@ class DSRBanner extends Component {
21
21
  return this.props.persistent ? false : this.props.dismissButton;
22
22
  }
23
23
  render() {
24
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
24
+ const { namedSlotChildren} = splitChildren(this.props.children);
25
25
  const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
26
- const style = minifyCss(getComponentCss$1e(this.props.open));
26
+ const style = minifyCss(getComponentCss$1f(this.props.open));
27
27
  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] }));
28
28
  }
29
29
  }
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { splitChildren } from '../../splitChildren.mjs';
3
3
  import { Component } from 'react';
4
4
  import { minifyCss } from '../../minifyCss.mjs';
5
- import { getButtonGroupCss as getComponentCss$1d } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
5
+ import { getButtonGroupCss as getComponentCss$1e } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
6
 
7
7
  /**
8
8
  * @slot {"name": "", "description": "Default slot for the buttons to group." }
@@ -11,7 +11,7 @@ class DSRButtonGroup extends Component {
11
11
  host;
12
12
  render() {
13
13
  splitChildren(this.props.children);
14
- const style = minifyCss(getComponentCss$1d(this.props.direction));
14
+ const style = minifyCss(getComponentCss$1e(this.props.direction));
15
15
  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] }));
16
16
  }
17
17
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getButtonPureCss as getComponentCss$1c } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getButtonPureCss as getComponentCss$1d } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { isDisabledOrLoading, hasVisibleIcon, getButtonPureAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { loadingId, LoadingMessage } from './loading-message.mjs';
9
9
  import { PIcon } from '../components/icon.wrapper.mjs';
@@ -29,7 +29,7 @@ class DSRButtonPure extends Component {
29
29
  size: 'inherit',
30
30
  theme: this.props.theme,
31
31
  };
32
- const style = minifyCss(getComponentCss$1c(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
+ const style = minifyCss(getComponentCss$1d(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
33
  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] }));
34
34
  }
35
35
  }
@@ -3,7 +3,7 @@ import { Component, createElement } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getButtonTileCss as getComponentCss$1b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getButtonTileCss as getComponentCss$1c } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { isDisabledOrLoading } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PButton } from '../components/button.wrapper.mjs';
9
9
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
@@ -27,7 +27,7 @@ class DSRButtonTile extends Component {
27
27
  };
28
28
  const button = (createElement(PButton, { ...buttonProps, icon: this.props.icon, key: "link-or-button", className: "link-or-button" }, this.props.label));
29
29
  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));
30
- const style = minifyCss(getComponentCss$1b(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));
30
+ const style = minifyCss(getComponentCss$1c(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
31
  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] }));
32
32
  }
33
33
  }
@@ -3,8 +3,8 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getButtonCss as getComponentCss$1a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
- import { getButtonAriaAttributes, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
6
+ import { getButtonCss as getComponentCss$1b } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
+ import { hasVisibleIcon, getButtonAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { loadingId, LoadingMessage } from './loading-message.mjs';
9
9
  import { PIcon } from '../components/icon.wrapper.mjs';
10
10
  import { PSpinner } from '../components/spinner.wrapper.mjs';
@@ -19,7 +19,7 @@ class DSRButton extends Component {
19
19
  initialLoading = false;
20
20
  render() {
21
21
  splitChildren(this.props.children);
22
- const style = minifyCss(getComponentCss$1a(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
+ const style = minifyCss(getComponentCss$1b(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
23
  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] }));
24
24
  }
25
25
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getCanvasCss as getComponentCss$19 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getCanvasCss as getComponentCss$1a } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { PButton } from '../components/button.wrapper.mjs';
8
8
  import { PCrest } from '../components/crest.wrapper.mjs';
9
9
  import { PFlyout } from '../components/flyout.wrapper.mjs';
@@ -38,13 +38,13 @@ class DSRCanvas extends Component {
38
38
  // private header: any;
39
39
  //
40
40
  render() {
41
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
41
+ const { namedSlotChildren} = splitChildren(this.props.children);
42
42
  const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
43
43
  const hasSidebarEnd = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end').length > 0;
44
44
  const hasSidebarEndHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end-header').length > 0;
45
45
  const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
46
46
  const hasBackground = namedSlotChildren.filter(({ props: { slot } }) => slot === 'background').length > 0;
47
- const style = minifyCss(getComponentCss$19(this.props.theme, this.props.sidebarStartOpen, this.props.sidebarEndOpen));
47
+ const style = minifyCss(getComponentCss$1a(this.props.theme, this.props.sidebarStartOpen, this.props.sidebarEndOpen));
48
48
  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: [jsxs("div", { className: "sidebar__header sidebar__header--end", children: [jsx("slot", { name: "sidebar-end-header" }), 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 && (jsxs(PFlyout, { className: "flyout-end", theme: this.props.theme, open: this.props.sidebarEndOpen, position: "end", children: [hasSidebarEndHeader && jsx("slot", { slot: "header", name: "sidebar-end-header" }), jsx("slot", { name: "sidebar-end" })] }))] })] }), this.props.children] }));
49
49
  }
50
50
  }
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  import '../../provider.mjs';
4
4
  import { splitChildren } from '../../splitChildren.mjs';
5
5
  import { minifyCss } from '../../minifyCss.mjs';
6
- import { getCarouselCss as getComponentCss$18 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
6
+ import { getCarouselCss as getComponentCss$19 } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
7
7
  import { isInfinitePagination, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
8
8
  import { PButtonPure } from '../components/button-pure.wrapper.mjs';
9
9
  import { PLinkPure } from '../components/link-pure.wrapper.mjs';
@@ -32,7 +32,7 @@ class DSRCarousel extends Component {
32
32
  return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
33
33
  }
34
34
  render() {
35
- const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
35
+ const { namedSlotChildren, otherChildren } = splitChildren(this.props.children);
36
36
  const alignHeaderDeprecationMap = {
37
37
  left: 'start',
38
38
  };
@@ -47,7 +47,7 @@ class DSRCarousel extends Component {
47
47
  // 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
48
48
  };
49
49
  const headingId = 'heading';
50
- const style = minifyCss(getComponentCss$18(this.props.gradientColor, hasHeadingPropOrSlot, hasDescriptionPropOrSlot, hasControlsSlot, this.props.headingSize, this.props.width,
50
+ const style = minifyCss(getComponentCss$19(this.props.gradientColor, hasHeadingPropOrSlot, hasDescriptionPropOrSlot, hasControlsSlot, this.props.headingSize, this.props.width,
51
51
  // flip boolean values of disablePagination since it is the inverse of pagination
52
52
  this.props.disablePagination
53
53
  ? typeof this.props.disablePagination === 'object'