@porsche-design-system/components-react 3.9.0 → 3.10.0-rc.0

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 (129) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/cjs/lib/components/flyout-navigation-item.wrapper.cjs +25 -0
  3. package/cjs/lib/components/flyout-navigation.wrapper.cjs +27 -0
  4. package/cjs/lib/components/pagination.wrapper.cjs +1 -1
  5. package/cjs/lib/components/text-field-wrapper.wrapper.cjs +3 -3
  6. package/cjs/public-api.cjs +4 -0
  7. package/esm/lib/components/flyout-navigation-item.wrapper.d.ts +11 -0
  8. package/esm/lib/components/flyout-navigation-item.wrapper.mjs +23 -0
  9. package/esm/lib/components/flyout-navigation.wrapper.d.ts +56 -0
  10. package/esm/lib/components/flyout-navigation.wrapper.mjs +25 -0
  11. package/esm/lib/components/index.d.ts +2 -0
  12. package/esm/lib/components/pagination.wrapper.d.ts +4 -2
  13. package/esm/lib/components/pagination.wrapper.mjs +1 -1
  14. package/esm/lib/components/text-field-wrapper.wrapper.d.ts +8 -0
  15. package/esm/lib/components/text-field-wrapper.wrapper.mjs +3 -3
  16. package/esm/lib/types.d.ts +9 -0
  17. package/esm/public-api.mjs +2 -0
  18. package/package.json +2 -2
  19. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +712 -253
  20. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +80 -69
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation-item.wrapper.cjs +39 -0
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation.wrapper.cjs +41 -0
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.cjs +1 -1
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.cjs +4 -4
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -0
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +2 -0
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -0
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +2 -0
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -0
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +3 -1
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +2 -0
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.cjs +94 -0
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.cjs +92 -0
  34. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +2 -0
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +2 -0
  36. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +2 -0
  37. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +2 -0
  38. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +2 -0
  39. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +2 -0
  40. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +2 -0
  41. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +2 -0
  42. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +2 -0
  43. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -0
  44. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +16 -11
  45. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -0
  46. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -0
  47. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +2 -0
  48. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +2 -0
  49. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +2 -0
  50. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +6 -1
  51. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +2 -0
  52. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +2 -0
  53. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +2 -0
  54. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +2 -0
  55. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +2 -0
  56. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +2 -0
  57. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +2 -0
  58. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +2 -0
  59. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +2 -0
  60. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +2 -0
  61. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +2 -0
  62. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +4 -2
  63. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/minifyCss.cjs +7 -1
  64. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +4 -0
  65. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +695 -238
  66. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +80 -69
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation-item.wrapper.mjs +37 -0
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation.wrapper.mjs +39 -0
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.mjs +1 -1
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.mjs +4 -4
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +4 -2
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +4 -2
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +4 -2
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +4 -2
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +4 -2
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +5 -3
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +4 -2
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
  83. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.mjs +92 -0
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.mjs +90 -0
  89. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -0
  90. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -0
  91. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +2 -0
  92. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +2 -0
  93. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +2 -0
  94. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +2 -0
  95. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -0
  96. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -0
  97. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -0
  98. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +2 -0
  99. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +17 -12
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -0
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -0
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +2 -0
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -0
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -0
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +6 -1
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +2 -0
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -0
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +2 -0
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +2 -0
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +2 -0
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +2 -0
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +2 -0
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +2 -0
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +2 -0
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +2 -0
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +2 -0
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +4 -2
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/minifyCss.mjs +7 -1
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +2 -0
  120. package/ssr/esm/lib/components/flyout-navigation-item.wrapper.d.ts +11 -0
  121. package/ssr/esm/lib/components/flyout-navigation.wrapper.d.ts +56 -0
  122. package/ssr/esm/lib/components/index.d.ts +2 -0
  123. package/ssr/esm/lib/components/pagination.wrapper.d.ts +4 -2
  124. package/ssr/esm/lib/components/text-field-wrapper.wrapper.d.ts +8 -0
  125. package/ssr/esm/lib/dsr-components/flyout-navigation-item.d.ts +8 -0
  126. package/ssr/esm/lib/dsr-components/flyout-navigation.d.ts +7 -0
  127. package/ssr/esm/lib/dsr-components/pagination.d.ts +0 -2
  128. package/ssr/esm/lib/dsr-components/select-wrapper-dropdown.d.ts +3 -0
  129. package/ssr/esm/lib/types.d.ts +9 -0
@@ -1,9 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const isDisabledOrLoading = (disabled, loading) => {
4
- return disabled || loading;
5
- };
6
-
7
3
  function _extends() {
8
4
  _extends = Object.assign ? Object.assign.bind() : function (target) {
9
5
  for (var i = 1; i < arguments.length; i++) {
@@ -2356,18 +2352,18 @@ function getDynamicStyles(styles) {
2356
2352
  var index = createJss();
2357
2353
 
2358
2354
  var jss_esm = /*#__PURE__*/Object.freeze({
2359
- __proto__: null,
2360
- RuleList: RuleList,
2361
- SheetsManager: SheetsManager,
2362
- SheetsRegistry: SheetsRegistry,
2363
- create: createJss,
2364
- createGenerateId: createGenerateId,
2365
- createRule: createRule,
2366
- default: index,
2367
- getDynamicStyles: getDynamicStyles,
2368
- hasCSSTOMSupport: hasCSSTOMSupport,
2369
- sheets: sheets,
2370
- toCssValue: toCssValue
2355
+ __proto__: null,
2356
+ RuleList: RuleList,
2357
+ SheetsManager: SheetsManager,
2358
+ SheetsRegistry: SheetsRegistry,
2359
+ create: createJss,
2360
+ createGenerateId: createGenerateId,
2361
+ createRule: createRule,
2362
+ default: index,
2363
+ getDynamicStyles: getDynamicStyles,
2364
+ hasCSSTOMSupport: hasCSSTOMSupport,
2365
+ sheets: sheets,
2366
+ toCssValue: toCssValue
2371
2367
  });
2372
2368
 
2373
2369
  var at = '@global';
@@ -3157,6 +3153,10 @@ var dist = jssCombineAndSortMQ;
3157
3153
 
3158
3154
  var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(dist);
3159
3155
 
3156
+ const isDisabledOrLoading = (disabled, loading) => {
3157
+ return disabled || loading;
3158
+ };
3159
+
3160
3160
  const hasWindow = typeof window !== 'undefined';
3161
3161
 
3162
3162
  const isHighContrastMode = hasWindow && window.matchMedia?.('(forced-colors: active)').matches;
@@ -4058,22 +4058,25 @@ const formatObjectOutput = (value) => {
4058
4058
 
4059
4059
  const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4060
4060
 
4061
- const getComponentCss$10 = (size, compact, open, theme) => {
4061
+ const getComponentCss$12 = (size, compact, open, theme) => {
4062
4062
  const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
4063
4063
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
4064
4064
  return getCss({
4065
4065
  '@global': {
4066
- ':host': addImportantToEachRule({
4066
+ ':host': {
4067
4067
  display: 'block',
4068
- ...(!compact && {
4069
- borderBottom: `1px solid ${contrastLowColor}`,
4070
- ...prefersColorSchemeDarkMediaQuery(theme, {
4071
- borderColor: contrastLowColorDark,
4068
+ ...addImportantToEachRule({
4069
+ ...(!compact && {
4070
+ borderBottom: `1px solid ${contrastLowColor}`,
4071
+ ...prefersColorSchemeDarkMediaQuery(theme, {
4072
+ borderColor: contrastLowColorDark,
4073
+ }),
4072
4074
  }),
4075
+ '&(:only-of-type)': { borderBottom: 0 },
4076
+ ...colorSchemeStyles,
4077
+ ...hostHiddenStyles,
4073
4078
  }),
4074
- ...colorSchemeStyles,
4075
- ...hostHiddenStyles,
4076
- }),
4079
+ },
4077
4080
  button: {
4078
4081
  display: 'flex',
4079
4082
  position: 'relative',
@@ -4198,7 +4201,7 @@ const cssVariableTop = '--p-banner-position-top';
4198
4201
  const cssVariableBottom = '--p-banner-position-bottom';
4199
4202
  const cssVariableZIndex = '--p-internal-banner-z-index';
4200
4203
  const topBottomFallback = '56px';
4201
- const getComponentCss$$ = (isOpen) => {
4204
+ const getComponentCss$11 = (isOpen) => {
4202
4205
  return getCss({
4203
4206
  '@global': {
4204
4207
  ':host': addImportantToEachRule({
@@ -4261,7 +4264,7 @@ const getGroupDirectionJssStyles = (direction) => {
4261
4264
  return groupDirectionJssStyles[direction];
4262
4265
  };
4263
4266
 
4264
- const getComponentCss$_ = (direction) => {
4267
+ const getComponentCss$10 = (direction) => {
4265
4268
  return getCss({
4266
4269
  '@global': {
4267
4270
  ':host': {
@@ -4415,7 +4418,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4415
4418
  };
4416
4419
  };
4417
4420
 
4418
- const getComponentCss$Z = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4421
+ const getComponentCss$$ = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4419
4422
  const hasIcon = hasVisibleIcon(icon, iconSource);
4420
4423
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), {
4421
4424
  root: {
@@ -4592,7 +4595,7 @@ background, align, compact, hasGradient, isDisabled) => {
4592
4595
  });
4593
4596
  };
4594
4597
 
4595
- const getComponentCss$Y = (isDisabledOrLoading, ...args) => {
4598
+ const getComponentCss$_ = (isDisabledOrLoading, ...args) => {
4596
4599
  const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
4597
4600
  return getCss({
4598
4601
  ...buttonLinkTileStyles,
@@ -4728,7 +4731,7 @@ const getDisabledColors = (variant, loading, theme) => {
4728
4731
  };
4729
4732
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4730
4733
  };
4731
- const getComponentCss$X = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
4734
+ const getComponentCss$Z = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
4732
4735
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
4733
4736
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
4734
4737
  const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
@@ -4800,53 +4803,57 @@ const spacingMap = {
4800
4803
  basic: gridBasicOffset,
4801
4804
  extended: gridExtendedOffset,
4802
4805
  };
4803
- const getComponentCss$W = (width, hasPagination, isInfinitePagination, alignHeader, theme) => {
4806
+ const getComponentCss$Y = (width, hasPagination, isInfinitePagination, alignHeader, theme) => {
4804
4807
  const { primaryColor, contrastMediumColor, focusColor } = getThemedColors(theme);
4805
4808
  const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
4806
4809
  const { canvasTextColor } = getHighContrastColors();
4807
4810
  const isHeaderAlignCenter = alignHeader === 'center';
4808
4811
  return getCss({
4809
4812
  '@global': {
4810
- ':host': addImportantToEachRule({
4813
+ ':host': {
4811
4814
  display: 'flex',
4812
- gap: spacingFluidMedium,
4813
- flexDirection: 'column',
4814
- boxSizing: 'content-box',
4815
- ...colorSchemeStyles,
4816
- ...hostHiddenStyles,
4817
- }),
4818
- '::slotted(*)': {
4819
- borderRadius: addImportantToRule(`var(--p-carousel-border-radius, ${borderRadiusLarge})`),
4820
- },
4821
- '::slotted(*:focus-visible)': addImportantToEachRule({
4822
- outline: `${borderWidthBase} solid ${focusColor}`,
4823
- ...prefersColorSchemeDarkMediaQuery(theme, {
4824
- outlineColor: focusColorDark,
4825
- }),
4826
- outlineOffset: '2px',
4827
- }),
4828
- [selectorHeading]: addImportantToEachRule({
4829
- ...headingXLargeStyle,
4830
- maxWidth: '56.25rem',
4831
- margin: 0,
4832
- }),
4833
- [selectorDescription]: addImportantToEachRule({
4834
- ...textSmallStyle,
4835
- maxWidth: '34.375rem',
4836
- margin: `${spacingFluidXSmall} 0 0`,
4837
- }),
4838
- [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
4839
- color: primaryColor,
4840
- ...prefersColorSchemeDarkMediaQuery(theme, {
4841
- color: primaryColorDark,
4815
+ ...addImportantToEachRule({
4816
+ gap: spacingFluidMedium,
4817
+ flexDirection: 'column',
4818
+ boxSizing: 'content-box',
4819
+ ...colorSchemeStyles,
4820
+ ...hostHiddenStyles,
4842
4821
  }),
4843
- [mediaQueryS]: isHeaderAlignCenter
4844
- ? {
4845
- gridColumn: 2,
4846
- }
4847
- : {
4848
- gridColumn: '1 / 3',
4849
- },
4822
+ },
4823
+ ...addImportantToEachRule({
4824
+ '::slotted(*)': {
4825
+ borderRadius: `var(--p-carousel-border-radius, ${borderRadiusLarge})`,
4826
+ },
4827
+ '::slotted(*:focus-visible)': {
4828
+ outline: `${borderWidthBase} solid ${focusColor}`,
4829
+ ...prefersColorSchemeDarkMediaQuery(theme, {
4830
+ outlineColor: focusColorDark,
4831
+ }),
4832
+ outlineOffset: '2px',
4833
+ },
4834
+ [selectorHeading]: {
4835
+ ...headingXLargeStyle,
4836
+ maxWidth: '56.25rem',
4837
+ margin: 0,
4838
+ },
4839
+ [selectorDescription]: {
4840
+ ...textSmallStyle,
4841
+ maxWidth: '34.375rem',
4842
+ margin: `${spacingFluidXSmall} 0 0`,
4843
+ },
4844
+ [`${selectorHeading},${selectorDescription}`]: {
4845
+ color: primaryColor,
4846
+ ...prefersColorSchemeDarkMediaQuery(theme, {
4847
+ color: primaryColorDark,
4848
+ }),
4849
+ [mediaQueryS]: isHeaderAlignCenter
4850
+ ? {
4851
+ gridColumn: 2,
4852
+ }
4853
+ : {
4854
+ gridColumn: '1 / 3',
4855
+ },
4856
+ },
4850
4857
  }),
4851
4858
  },
4852
4859
  header: {
@@ -5204,7 +5211,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
5204
5211
  const getIndeterminateSVGBackgroundImage = (fill) => {
5205
5212
  return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
5206
5213
  };
5207
- const getComponentCss$V = (hideLabel, state, isDisabled, isLoading, theme) => {
5214
+ const getComponentCss$X = (hideLabel, state, isDisabled, isLoading, theme) => {
5208
5215
  const { canvasColor } = getHighContrastColors();
5209
5216
  const checkedIconColor = isHighContrastMode
5210
5217
  ? canvasColor
@@ -5302,7 +5309,7 @@ const widthMap = {
5302
5309
  basic: gridBasicOffset,
5303
5310
  extended: gridExtendedOffset,
5304
5311
  };
5305
- const getComponentCss$U = (width) => {
5312
+ const getComponentCss$W = (width) => {
5306
5313
  return getCss({
5307
5314
  '@global': {
5308
5315
  ':host': {
@@ -5344,7 +5351,7 @@ const getDimensionStyle = {
5344
5351
  width: 'inherit',
5345
5352
  height: 'inherit',
5346
5353
  };
5347
- const getComponentCss$T = () => {
5354
+ const getComponentCss$V = () => {
5348
5355
  return getCss({
5349
5356
  '@global': {
5350
5357
  ':host': {
@@ -5432,7 +5439,7 @@ const sizeMap$4 = {
5432
5439
  medium: fontSizeDisplayMedium,
5433
5440
  large: fontSizeDisplayLarge,
5434
5441
  };
5435
- const getComponentCss$S = (size, align, color, ellipsis, theme) => {
5442
+ const getComponentCss$U = (size, align, color, ellipsis, theme) => {
5436
5443
  return getCss({
5437
5444
  '@global': {
5438
5445
  ':host': {
@@ -5452,7 +5459,7 @@ const getComponentCss$S = (size, align, color, ellipsis, theme) => {
5452
5459
  });
5453
5460
  };
5454
5461
 
5455
- const getComponentCss$R = (color, orientation, theme) => {
5462
+ const getComponentCss$T = (color, orientation, theme) => {
5456
5463
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
5457
5464
  const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
5458
5465
  const colorMap = {
@@ -5495,14 +5502,16 @@ const getComponentCss$R = (color, orientation, theme) => {
5495
5502
  });
5496
5503
  };
5497
5504
 
5498
- const getComponentCss$Q = (state, labelSize, hasLabel, theme) => {
5505
+ const getComponentCss$S = (state, labelSize, hasLabel, theme) => {
5499
5506
  return getCss({
5500
5507
  '@global': {
5501
- ':host': addImportantToEachRule({
5508
+ ':host': {
5502
5509
  display: 'block',
5503
- ...colorSchemeStyles,
5504
- ...hostHiddenStyles,
5505
- }),
5510
+ ...addImportantToEachRule({
5511
+ ...colorSchemeStyles,
5512
+ ...hostHiddenStyles,
5513
+ }),
5514
+ },
5506
5515
  fieldset: {
5507
5516
  margin: 0,
5508
5517
  padding: 0,
@@ -5529,14 +5538,16 @@ const getComponentCss$Q = (state, labelSize, hasLabel, theme) => {
5529
5538
  });
5530
5539
  };
5531
5540
 
5532
- const getComponentCss$P = (state, labelSize, hasLabel, theme) => {
5541
+ const getComponentCss$R = (state, labelSize, hasLabel, theme) => {
5533
5542
  return getCss({
5534
5543
  '@global': {
5535
- ':host': addImportantToEachRule({
5544
+ ':host': {
5536
5545
  display: 'block',
5537
- ...colorSchemeStyles,
5538
- ...hostHiddenStyles,
5539
- }),
5546
+ ...addImportantToEachRule({
5547
+ ...colorSchemeStyles,
5548
+ ...hostHiddenStyles,
5549
+ }),
5550
+ },
5540
5551
  fieldset: {
5541
5552
  margin: 0,
5542
5553
  padding: 0,
@@ -5573,7 +5584,7 @@ const flexItemWidths = {
5573
5584
  full: 100,
5574
5585
  auto: 'auto',
5575
5586
  };
5576
- const getComponentCss$O = (width, offset, alignSelf, grow, shrink, flex) => {
5587
+ const getComponentCss$Q = (width, offset, alignSelf, grow, shrink, flex) => {
5577
5588
  return getCss({
5578
5589
  '@global': {
5579
5590
  ':host': addImportantToEachRule({
@@ -5595,23 +5606,393 @@ const getComponentCss$O = (width, offset, alignSelf, grow, shrink, flex) => {
5595
5606
  });
5596
5607
  };
5597
5608
 
5598
- const getComponentCss$N = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5609
+ const getComponentCss$P = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5599
5610
  return getCss({
5600
5611
  '@global': {
5601
- ':host': addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
5602
- display: inlineResponsive ? 'inline-flex' : 'flex',
5603
- })), buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
5604
- flexDirection: flexDirectionResponsive,
5605
- })), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
5606
- justifyContent: justifyContentResponsive,
5607
- })), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
5608
- alignItems: alignItemsResponsive,
5609
- })), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
5610
- alignContent: alignContentResponsive,
5611
- })))),
5612
+ ':host': {
5613
+ ...buildResponsiveStyles(inline, (inlineResponsive) => ({
5614
+ display: inlineResponsive ? 'inline-flex' : 'flex',
5615
+ })),
5616
+ ...addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
5617
+ flexDirection: flexDirectionResponsive,
5618
+ })), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
5619
+ justifyContent: justifyContentResponsive,
5620
+ })), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
5621
+ alignItems: alignItemsResponsive,
5622
+ })), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
5623
+ alignContent: alignContentResponsive,
5624
+ })))),
5625
+ },
5626
+ },
5627
+ });
5628
+ };
5629
+
5630
+ const cssVariableVisibility = '--p-internal-flyout-navigation-visibility';
5631
+ const cssVariableVisibilityTransitionDuration = '--p-internal-flyout-navigation-visibility-transition-duration';
5632
+ const frostedGlassHeaderHeight = '4rem';
5633
+ const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
5634
+ const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
5635
+ const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
5636
+ const mediaQueryEnhancedView = getMediaQueryMin('s');
5637
+ const getComponentCss$O = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
5638
+ const { backgroundColor } = getThemedColors(theme);
5639
+ const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
5640
+ const frostedGlassBackgroundColor = isThemeDark(theme)
5641
+ ? frostedGlassBackgroundColorDark$1
5642
+ : frostedGlassBackgroundColorLight$1;
5643
+ return getCss({
5644
+ '@global': {
5645
+ ':host': {
5646
+ display: 'block',
5647
+ ...addImportantToEachRule({
5648
+ ...(!isPrimaryScrollerVisible && {
5649
+ [cssVariableVisibility]: 'hidden',
5650
+ [cssVariableVisibilityTransitionDuration]: motionDurationLong,
5651
+ }),
5652
+ ...getBackdropJssStyle(isPrimaryScrollerVisible, 'long', theme),
5653
+ ...colorSchemeStyles,
5654
+ ...hostHiddenStyles,
5655
+ }),
5656
+ },
5657
+ dialog: {
5658
+ position: 'fixed',
5659
+ ...getInsetJssStyle(),
5660
+ display: 'grid',
5661
+ width: 'auto',
5662
+ height: '100vh',
5663
+ maxWidth: '100vw',
5664
+ maxHeight: '100vh',
5665
+ margin: 0,
5666
+ padding: 0,
5667
+ border: 0,
5668
+ visibility: 'inherit',
5669
+ background: 'none',
5670
+ overflow: 'hidden',
5671
+ ...(isPrimaryScrollerVisible
5672
+ ? {
5673
+ transform: 'translate3d(0, 0, 0)',
5674
+ transition: `${getTransition('transform', 'long', 'in')}`,
5675
+ }
5676
+ : {
5677
+ transform: 'translate3d(-100%, 0, 0)',
5678
+ transition: `${getTransition('transform', 'long', 'out')}`,
5679
+ }),
5680
+ [mediaQueryEnhancedView]: {
5681
+ gridTemplateColumns: `repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${scrollerWidthEnhancedView}) auto`,
5682
+ gridTemplateRows: '100vh',
5683
+ insetInlineEnd: 'auto', // to have correct dialog dimensions for ideal transitions
5684
+ },
5685
+ '&:dir(rtl)': {
5686
+ ...(!isPrimaryScrollerVisible && {
5687
+ transform: 'translate3d(100%, 0, 0)', // use correct transitions in rtl mode
5688
+ }),
5689
+ },
5690
+ '&:focus-visible': {
5691
+ outline: 'none', // ua-style reset
5692
+ },
5693
+ '&::backdrop': {
5694
+ // to improve browser backwards compatibility we visually style the backdrop on the :host,
5695
+ // although it's not on the #top-layer like it would be for modern browsers supporting ::backdrop
5696
+ opacity: 0, // to support backdrop click for modern browsers supporting ::backdrop
5697
+ },
5698
+ },
5699
+ },
5700
+ scroller: {
5701
+ gridArea: '1/1',
5702
+ overflow: 'auto',
5703
+ // cssVariableVisibility ensures secondary scroller is not tabbable when whole flyout-navigation is closed
5704
+ // on mobile we need to decide if secondary scroller needs to be visible or not, on desktop it's not necessary but also doesn't harm
5705
+ visibility: `var(${cssVariableVisibility},${isSecondaryScrollerVisible ? 'hidden' : 'visible'})`,
5706
+ transition: `${getTransition('left', 'long', isSecondaryScrollerVisible ? 'in' : 'out')}, visibility 0s linear var(${cssVariableTransitionDuration}, ${!isPrimaryScrollerVisible || isSecondaryScrollerVisible ? motionDurationLong : '0s'})`,
5707
+ // it's important to define background-color for each scroller to have correct scrollbar coloring
5708
+ backgroundColor,
5709
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5710
+ backgroundColor: backgroundColorDark,
5711
+ }),
5712
+ [mediaQueryEnhancedView]: {
5713
+ visibility: 'inherit',
5714
+ transition: 'initial',
5715
+ },
5716
+ // simulates frosted glass header, to be visually in sync with header of secondary scroller
5717
+ '&::before': {
5718
+ content: '""',
5719
+ display: 'block',
5720
+ position: 'sticky',
5721
+ top: 0,
5722
+ zIndex: 1,
5723
+ height: frostedGlassHeaderHeight,
5724
+ backgroundColor: frostedGlassBackgroundColor,
5725
+ WebkitBackdropFilter: 'blur(8px)',
5726
+ backdropFilter: 'blur(8px)',
5727
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5728
+ backgroundColor: frostedGlassBackgroundColorDark$1,
5729
+ }),
5730
+ [mediaQueryEnhancedView]: {
5731
+ display: 'none',
5732
+ },
5733
+ },
5734
+ },
5735
+ content: {
5736
+ display: 'flex',
5737
+ flexDirection: 'column',
5738
+ gap: spacingFluidXSmall,
5739
+ padding: `${spacingFluidSmall} ${spacingFluidLarge} ${spacingFluidLarge}`,
5740
+ [mediaQueryEnhancedView]: {
5741
+ padding: `${spacingFluidMedium} ${spacingFluidLarge} ${spacingFluidLarge}`,
5742
+ },
5743
+ },
5744
+ // header is needed to keep position of dismiss button in sync with header of secondary scroller
5745
+ header: {
5746
+ position: 'relative',
5747
+ zIndex: 3,
5748
+ gridArea: '1/1',
5749
+ alignSelf: 'flex-start',
5750
+ justifySelf: 'flex-end',
5751
+ marginInlineEnd: `calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
5752
+ height: frostedGlassHeaderHeight,
5753
+ display: 'flex',
5754
+ alignItems: 'center',
5755
+ [mediaQueryEnhancedView]: {
5756
+ marginInlineEnd: 0,
5757
+ gridArea: '1/-1',
5758
+ placeSelf: 'flex-start',
5759
+ },
5760
+ },
5761
+ dismiss: {
5762
+ padding: spacingFluidSmall,
5763
+ [mediaQueryEnhancedView]: {
5764
+ '--p-internal-icon-filter': 'invert(1)',
5765
+ margin: spacingFluidSmall,
5766
+ padding: spacingStaticSmall,
5767
+ },
5612
5768
  },
5613
5769
  });
5614
5770
  };
5771
+ // TODO: getBackdropJssStyle can be shared with flyout and modal
5772
+ /**
5773
+ * Generates JSS styles for a frosted glass background.
5774
+ * @param {boolean} isVisible - Determines if the frosted glass effect is visible.
5775
+ * @param {string} duration - The duration of the transition animation.
5776
+ * @param {Theme} theme - The theme to be used
5777
+ * @returns {JssStyle} - The JSS styles for the frosted glass backdrop.
5778
+ */
5779
+ const getBackdropJssStyle = (isVisible, duration, theme) => {
5780
+ return {
5781
+ position: 'fixed',
5782
+ ...getInsetJssStyle(),
5783
+ zIndex: FLYOUT_Z_INDEX,
5784
+ ...(isVisible
5785
+ ? {
5786
+ visibility: 'visible',
5787
+ pointerEvents: 'auto',
5788
+ ...frostedGlassStyle,
5789
+ // TODO: background shading is missing in getThemedColors(theme).backgroundShading
5790
+ background: isThemeDark(theme) ? themeDarkBackgroundShading : themeLightBackgroundShading,
5791
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5792
+ background: themeDarkBackgroundShading,
5793
+ }),
5794
+ }
5795
+ : {
5796
+ visibility: 'hidden',
5797
+ pointerEvents: 'none',
5798
+ WebkitBackdropFilter: 'blur(0px)',
5799
+ backdropFilter: 'blur(0px)',
5800
+ background: 'none',
5801
+ }),
5802
+ transition: `${getTransition('background', duration, 'base')}, ${getTransition('backdrop-filter', duration, 'base')}, ${getTransition('-webkit-backdrop-filter', duration, 'base')}, visibility 0s linear var(${cssVariableTransitionDuration}, ${isVisible ? '0s' : motionDurationLong})`,
5803
+ };
5804
+ };
5805
+ const getContentJssStyle = () => {
5806
+ return {
5807
+ display: 'flex',
5808
+ flexDirection: 'column',
5809
+ gap: spacingFluidXSmall,
5810
+ padding: `${spacingFluidSmall} ${spacingFluidLarge} ${spacingFluidLarge}`,
5811
+ [mediaQueryEnhancedView]: {
5812
+ padding: `${spacingFluidMedium} ${spacingFluidLarge} ${spacingFluidLarge}`,
5813
+ },
5814
+ };
5815
+ };
5816
+
5817
+ const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
5818
+ const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
5819
+ const getComponentCss$N = (isSecondaryScrollerVisible, theme) => {
5820
+ const { primaryColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
5821
+ const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, focusColor: focusColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
5822
+ const frostedGlassBackgroundColor = isThemeDark(theme)
5823
+ ? frostedGlassBackgroundColorDark
5824
+ : frostedGlassBackgroundColorLight;
5825
+ const fadeInOutTransition = isSecondaryScrollerVisible
5826
+ ? {
5827
+ opacity: 1,
5828
+ transition: `${getTransition('opacity', 'veryLong', 'in', 'short')}`,
5829
+ [mediaQueryEnhancedView]: {
5830
+ transition: `${getTransition('opacity', 'veryLong', 'in')}`,
5831
+ },
5832
+ }
5833
+ : {
5834
+ opacity: 0,
5835
+ transition: `${getTransition('opacity', 'short', 'out')}`,
5836
+ };
5837
+ return getCss({
5838
+ '@global': {
5839
+ ':host': {
5840
+ display: 'block',
5841
+ ...addImportantToEachRule({
5842
+ ...colorSchemeStyles,
5843
+ ...hostHiddenStyles,
5844
+ }),
5845
+ },
5846
+ '::slotted(:is(h1, h2, h3, h4, h5, h6))': addImportantToEachRule({
5847
+ ...headingSmallStyle,
5848
+ margin: 0,
5849
+ color: primaryColor,
5850
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5851
+ color: primaryColorDark,
5852
+ }),
5853
+ }),
5854
+ '::slotted(:is(h1, h2, h3, h4, h5, h6):not(:first-child))': addImportantToEachRule({
5855
+ margin: `${spacingFluidSmall} 0 0`,
5856
+ }),
5857
+ '::slotted(p)': addImportantToEachRule({
5858
+ ...textSmallStyle,
5859
+ margin: 0,
5860
+ color: primaryColor,
5861
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5862
+ color: primaryColorDark,
5863
+ }),
5864
+ }),
5865
+ // TODO: how can we easily re-use getHoverStyle() and getFocusStyle() with ::slotted(a) selector?
5866
+ '::slotted(a)': {
5867
+ ...addImportantToEachRule({
5868
+ ...textSmallStyle,
5869
+ display: 'block',
5870
+ textDecoration: 'none',
5871
+ cursor: 'pointer',
5872
+ color: primaryColor,
5873
+ borderRadius: borderRadiusSmall,
5874
+ marginLeft: `-${spacingStaticXSmall}`,
5875
+ marginRight: `-${spacingStaticXSmall}`,
5876
+ padding: `2px ${spacingStaticXSmall}`,
5877
+ transition: `background var(${cssVariableTransitionDuration}, ${motionDurationShort}) ${motionEasingBase}`,
5878
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5879
+ color: primaryColorDark,
5880
+ }),
5881
+ }),
5882
+ },
5883
+ ...hoverMediaQuery({
5884
+ '::slotted(a:hover)': addImportantToEachRule({
5885
+ background: hoverColor,
5886
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5887
+ background: hoverColorDark,
5888
+ }),
5889
+ }),
5890
+ }),
5891
+ '::slotted(a[aria-current])': addImportantToEachRule({
5892
+ background: hoverColor,
5893
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5894
+ background: hoverColorDark,
5895
+ }),
5896
+ }),
5897
+ '::slotted(a:focus)': addImportantToEachRule({
5898
+ outline: `${borderWidthBase} solid ${focusColor}`,
5899
+ outlineOffset: '-2px',
5900
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5901
+ outlineColor: focusColorDark,
5902
+ }),
5903
+ }),
5904
+ '::slotted(a:focus:not(:focus-visible))': addImportantToEachRule({
5905
+ outlineColor: 'transparent',
5906
+ }),
5907
+ },
5908
+ button: {
5909
+ width: 'auto',
5910
+ padding: spacingFluidSmall,
5911
+ margin: `0 calc(${spacingFluidSmall} * -1)`,
5912
+ },
5913
+ scroller: {
5914
+ position: 'fixed',
5915
+ ...getInsetJssStyle(),
5916
+ // "cssVariableTransitionDuration" ensures closing animation of secondary scroller is given when whole flyout-navigation gets closed
5917
+ // "cssVariableVisibility" ensures secondary scroller is not tabbable when whole flyout-navigation is closed
5918
+ ...(isSecondaryScrollerVisible
5919
+ ? {
5920
+ zIndex: 2,
5921
+ transform: 'translate3d(0, 0, 0)',
5922
+ visibility: `var(${cssVariableVisibility},visible)`,
5923
+ transition: `${getTransition('transform', 'long', 'in')}, visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},0s))`,
5924
+ }
5925
+ : {
5926
+ zIndex: 1,
5927
+ transform: 'translate3d(100%, 0, 0)',
5928
+ visibility: `var(${cssVariableVisibility},hidden)`,
5929
+ transition: `${getTransition('transform', 'long', 'out')}, visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},${motionDurationLong}))`,
5930
+ }),
5931
+ width: '100vw',
5932
+ boxSizing: 'border-box',
5933
+ overflow: 'auto',
5934
+ ...dropShadowHighStyle,
5935
+ // it's important to define background-color for each scroller to have correct scrollbar coloring
5936
+ backgroundColor: backgroundSurfaceColor,
5937
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5938
+ backgroundColor: backgroundSurfaceColorDark,
5939
+ }),
5940
+ [mediaQueryEnhancedView]: {
5941
+ boxShadow: 'none',
5942
+ insetInlineStart: `calc(${scrollerWidthEnhancedView} - 1px)`,
5943
+ width: scrollerWidthEnhancedView,
5944
+ transform: addImportantToRule('initial'),
5945
+ transition: `visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},0s))`,
5946
+ },
5947
+ '&:dir(rtl)': {
5948
+ ...(!isSecondaryScrollerVisible && {
5949
+ transform: 'translate3d(-100%, 0, 0)', // use correct transitions in rtl mode for mobile view
5950
+ }),
5951
+ },
5952
+ },
5953
+ // header needs to be placed within scroller to ensure scrollbars are fully visible
5954
+ header: {
5955
+ position: 'sticky',
5956
+ top: 0,
5957
+ zIndex: 1,
5958
+ height: frostedGlassHeaderHeight,
5959
+ padding: `0 ${spacingFluidLarge}`,
5960
+ display: 'grid',
5961
+ gridTemplateColumns: '4rem minmax(0, 1fr) 4rem',
5962
+ alignItems: 'center',
5963
+ gap: spacingFluidSmall,
5964
+ WebkitBackdropFilter: 'blur(8px)',
5965
+ backdropFilter: 'blur(8px)',
5966
+ backgroundColor: frostedGlassBackgroundColor,
5967
+ ...fadeInOutTransition,
5968
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5969
+ backgroundColor: frostedGlassBackgroundColorDark,
5970
+ }),
5971
+ [mediaQueryEnhancedView]: {
5972
+ display: 'none',
5973
+ },
5974
+ },
5975
+ back: {
5976
+ justifySelf: 'flex-start',
5977
+ padding: spacingFluidSmall,
5978
+ marginInlineStart: `calc(${spacingFluidSmall} * -1)`,
5979
+ },
5980
+ heading: {
5981
+ ...headingMediumStyle,
5982
+ margin: 0,
5983
+ padding: 0,
5984
+ overflow: 'hidden',
5985
+ textAlign: 'center',
5986
+ whiteSpace: 'nowrap',
5987
+ textOverflow: 'ellipsis',
5988
+ color: primaryColor,
5989
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5990
+ color: primaryColorDark,
5991
+ }),
5992
+ },
5993
+ content: mergeDeep(getContentJssStyle(), fadeInOutTransition),
5994
+ });
5995
+ };
5615
5996
 
5616
5997
  const headerShadowClass = 'header--shadow';
5617
5998
  const footerShadowClass$1 = 'footer--shadow';
@@ -5783,16 +6164,18 @@ const gutter = `calc(${gridGap} / -2)`;
5783
6164
  const getComponentCss$K = (direction, wrap) => {
5784
6165
  return getCss({
5785
6166
  '@global': {
5786
- ':host': addImportantToEachRule({
6167
+ ':host': {
5787
6168
  display: 'flex',
5788
- flex: 'auto',
5789
- width: 'auto',
5790
- marginLeft: gutter,
5791
- marginRight: gutter,
5792
- ...colorSchemeStyles,
5793
- ...hostHiddenStyles,
5794
- ...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
5795
- }),
6169
+ ...addImportantToEachRule({
6170
+ flex: 'auto',
6171
+ width: 'auto',
6172
+ marginLeft: gutter,
6173
+ marginRight: gutter,
6174
+ ...colorSchemeStyles,
6175
+ ...hostHiddenStyles,
6176
+ ...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
6177
+ }),
6178
+ },
5796
6179
  },
5797
6180
  });
5798
6181
  };
@@ -5955,6 +6338,7 @@ const forceRerenderAnimationStyle = {
5955
6338
  };
5956
6339
  const keyFramesLight = 'rerender-light';
5957
6340
  const keyFramesDark = 'rerender-dark';
6341
+ const cssVariableFilter = '--p-internal-icon-filter';
5958
6342
  const getComponentCss$H = (color, size, theme) => {
5959
6343
  const isColorInherit = color === 'inherit';
5960
6344
  const isSizeInherit = size === 'inherit';
@@ -5975,9 +6359,9 @@ const getComponentCss$H = (color, size, theme) => {
5975
6359
  padding: 0,
5976
6360
  pointerEvents: 'none',
5977
6361
  ...(!isColorInherit && {
5978
- filter: filterMap[theme][color],
6362
+ filter: `var(${cssVariableFilter},${filterMap[theme][color]})`,
5979
6363
  ...prefersColorSchemeDarkMediaQuery(theme, {
5980
- filter: filterMap.dark[color],
6364
+ filter: `var(${cssVariableFilter},${filterMap.dark[color]})`,
5981
6365
  }),
5982
6366
  ...(isHighContrastMode &&
5983
6367
  getSchemedHighContrastMediaQuery({
@@ -6006,7 +6390,7 @@ const getComponentCss$H = (color, size, theme) => {
6006
6390
  };
6007
6391
 
6008
6392
  const mediaQueryMinS$1 = getMediaQueryMin('s');
6009
- const mediaQueryMaxS$1 = getMediaQueryMax('s');
6393
+ const mediaQueryMaxS$2 = getMediaQueryMax('s');
6010
6394
  const getBackgroundColor = (state, theme) => {
6011
6395
  const { infoSoftColor, successSoftColor, errorSoftColor, warningSoftColor } = getThemedColors(theme);
6012
6396
  const colorMap = {
@@ -6020,7 +6404,7 @@ const getBackgroundColor = (state, theme) => {
6020
6404
  };
6021
6405
  const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
6022
6406
  return {
6023
- display: 'grid',
6407
+ // display: 'grid', // NOTE: display property is moved into component styled to not apply !important keyword
6024
6408
  // 2 columns for content and optional close button
6025
6409
  gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
6026
6410
  gap: spacingStaticMedium,
@@ -6041,7 +6425,7 @@ const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
6041
6425
  };
6042
6426
  };
6043
6427
  const getNotificationIconJssStyle = () => ({
6044
- [mediaQueryMaxS$1]: {
6428
+ [mediaQueryMaxS$2]: {
6045
6429
  display: 'none',
6046
6430
  },
6047
6431
  });
@@ -6054,15 +6438,18 @@ const getNotificationContentJssStyle = () => ({
6054
6438
  },
6055
6439
  });
6056
6440
 
6057
- const mediaQueryMaxS = getMediaQueryMax('s');
6441
+ const mediaQueryMaxS$1 = getMediaQueryMax('s');
6058
6442
  const getComponentCss$G = (state, hasAction, hasClose, theme) => {
6059
6443
  return getCss({
6060
6444
  '@global': {
6061
- ':host': addImportantToEachRule({
6062
- ...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
6063
- ...colorSchemeStyles,
6064
- ...hostHiddenStyles,
6065
- }),
6445
+ ':host': {
6446
+ display: 'grid',
6447
+ ...addImportantToEachRule({
6448
+ ...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
6449
+ ...colorSchemeStyles,
6450
+ ...hostHiddenStyles,
6451
+ }),
6452
+ },
6066
6453
  h5: headingSmallStyle,
6067
6454
  p: textSmallStyle,
6068
6455
  'h5,p': {
@@ -6077,7 +6464,7 @@ const getComponentCss$G = (state, hasAction, hasClose, theme) => {
6077
6464
  content: getNotificationContentJssStyle(),
6078
6465
  ...(hasAction && {
6079
6466
  action: {
6080
- [mediaQueryMaxS]: {
6467
+ [mediaQueryMaxS$1]: {
6081
6468
  gridRowStart: 2,
6082
6469
  },
6083
6470
  },
@@ -6358,11 +6745,12 @@ const getComponentCss$A = (isOpen, isFullscreen, hasDismissButton, hasHeader, ha
6358
6745
  return getCss({
6359
6746
  '@global': {
6360
6747
  ':host': {
6748
+ display: 'flex',
6749
+ overflowY: 'auto',
6361
6750
  ...addImportantToEachRule({
6362
6751
  position: 'fixed',
6363
6752
  ...getInsetJssStyle(),
6364
6753
  zIndex: MODAL_Z_INDEX,
6365
- display: 'flex',
6366
6754
  alignItems: 'center',
6367
6755
  justifyContent: 'center',
6368
6756
  flexWrap: 'wrap',
@@ -6378,7 +6766,6 @@ const getComponentCss$A = (isOpen, isFullscreen, hasDismissButton, hasHeader, ha
6378
6766
  ...hostHiddenStyles,
6379
6767
  ...getFrostedGlassBackgroundJssStyles(isOpen, duration, theme),
6380
6768
  }),
6381
- overflowY: 'auto', // overrideable
6382
6769
  },
6383
6770
  '::slotted': addImportantToEachRule(mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
6384
6771
  [`&(.${stretchToFullModalWidthClassName}`]: {
@@ -6941,6 +7328,7 @@ const getListStyles$1 = (isOpen, direction, theme) => {
6941
7328
  };
6942
7329
 
6943
7330
  const mediaQueryMinS = getMediaQueryMin('s');
7331
+ const mediaQueryMaxS = getMediaQueryMax('s');
6944
7332
  // button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
6945
7333
  // and text scale 200% works (almost) on mobile viewports too
6946
7334
  const buttonSize = `clamp(36px, calc(${fontLineHeight} + 10vw - 20px), 40px)`;
@@ -6948,7 +7336,8 @@ const disabledCursorStyle = {
6948
7336
  cursor: 'default',
6949
7337
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
6950
7338
  };
6951
- const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
7339
+ const hiddenStyle = { display: 'none' };
7340
+ const getComponentCss$w = (activePage, pageTotal, showLastPage, theme) => {
6952
7341
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
6953
7342
  const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
6954
7343
  return getCss({
@@ -6964,9 +7353,6 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
6964
7353
  display: 'flex',
6965
7354
  justifyContent: 'center',
6966
7355
  userSelect: 'none',
6967
- ...buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
6968
- counterReset: `size ${n}`,
6969
- })),
6970
7356
  },
6971
7357
  ul: {
6972
7358
  display: 'flex',
@@ -6979,13 +7365,43 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
6979
7365
  },
6980
7366
  li: {
6981
7367
  listStyleType: 'none',
6982
- [mediaQueryMinS]: {
6983
- '&:first-child': {
6984
- marginInlineEnd: spacingStaticSmall,
6985
- },
6986
- '&:last-child': {
6987
- marginInlineStart: spacingStaticSmall,
7368
+ ...(pageTotal > 5 && {
7369
+ // max 5 items including ellipsis at the same time on mobile
7370
+ [mediaQueryMaxS]: {
7371
+ [activePage < 4
7372
+ ? // we are at the start, so let's hide start ellipsis and 2 items before end ellipsis
7373
+ '&.ellip-start,&:nth-child(6),&:nth-child(7),&:not(.ellip):nth-child(8)'
7374
+ : pageTotal - activePage < 3
7375
+ ? // we are at the end, so let's hide end ellipsis and 2 items after start ellipsis
7376
+ '&.ellip-end, &.ellip-start + &:not(.current), &.ellip-start + &:not(.current) + &:not(.current)'
7377
+ : // we are at in the middle, so let's hide elements after start and before end ellipsis
7378
+ '&.ellip-start + &:not(.current), &.current-1, &.current\\+1, &.current\\+1 + &:not(.ellip)']: hiddenStyle,
7379
+ // without last page we need to adjust end page handling
7380
+ ...(!showLastPage &&
7381
+ (pageTotal - activePage < 2
7382
+ ? { [`&.current-2${pageTotal - activePage === 1 ? ',&.current-1' : ''}`]: hiddenStyle }
7383
+ : activePage > 2 && {
7384
+ '&.current\\+1,&.current\\+2': hiddenStyle,
7385
+ '&.ellip-end': { display: 'initial' },
7386
+ })),
6988
7387
  },
7388
+ }),
7389
+ [mediaQueryMinS]: {
7390
+ // prev
7391
+ '&:first-child': { marginInlineEnd: spacingStaticSmall },
7392
+ // next
7393
+ '&:last-child': { marginInlineStart: spacingStaticSmall },
7394
+ ...(pageTotal < 8
7395
+ ? { '&.ellip': hiddenStyle }
7396
+ : // max 7 items including ellipsis at the same time on tablet
7397
+ {
7398
+ // we are at the start, so let's hide start ellipsis
7399
+ ...(activePage <= 4 && { '&.ellip-start': hiddenStyle }),
7400
+ // we are at the end, so let's hide end ellipsis
7401
+ ...(pageTotal - activePage < 4 && { '&.ellip-end:nth-last-child(3)': hiddenStyle }),
7402
+ // we are at the end without last page, so let's hide end ellipsis
7403
+ ...(pageTotal - activePage < 3 && { '&.ellip-end:nth-last-child(2)': hiddenStyle }),
7404
+ }),
6989
7405
  },
6990
7406
  },
6991
7407
  span: {
@@ -7034,7 +7450,7 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
7034
7450
  color: primaryColorDark,
7035
7451
  borderColor: primaryColorDark,
7036
7452
  }),
7037
- '&:not(.ellipsis):focus::before': getInsetJssStyle(-6),
7453
+ '&:not(.ellipsis):focus::before': getInsetJssStyle(-6), // adjust for missing 2px border
7038
7454
  },
7039
7455
  '&[aria-disabled]': {
7040
7456
  ...disabledCursorStyle,
@@ -7241,13 +7657,13 @@ const getComponentCss$u = (direction, isNative, theme) => {
7241
7657
  return getCss({
7242
7658
  '@global': {
7243
7659
  ':host': {
7660
+ display: 'inline-block',
7661
+ verticalAlign: 'top',
7244
7662
  ...addImportantToEachRule({
7245
7663
  position: 'relative',
7246
- display: 'inline-block',
7247
7664
  ...colorSchemeStyles,
7248
7665
  ...hostHiddenStyles,
7249
7666
  }),
7250
- verticalAlign: 'top',
7251
7667
  },
7252
7668
  p: {
7253
7669
  ...textSmallStyle,
@@ -7649,11 +8065,13 @@ const getComponentCss$r = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
7649
8065
  const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
7650
8066
  return getCss({
7651
8067
  '@global': {
7652
- ':host': addImportantToEachRule({
8068
+ ':host': {
7653
8069
  display: 'block',
7654
- outline: 0,
7655
- ...hostHiddenStyles,
7656
- }),
8070
+ ...addImportantToEachRule({
8071
+ outline: 0,
8072
+ ...hostHiddenStyles,
8073
+ }),
8074
+ },
7657
8075
  // All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
7658
8076
  button: {
7659
8077
  position: 'relative',
@@ -7735,16 +8153,18 @@ const getComponentCss$q = (maxWidth, columns) => {
7735
8153
  maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
7736
8154
  return getCss({
7737
8155
  '@global': {
7738
- ':host': addImportantToEachRule({
8156
+ ':host': {
7739
8157
  display: 'grid',
7740
- gridAutoRows: '1fr',
7741
- ...buildResponsiveStyles(columns, (col) => ({
7742
- gridTemplateColumns: col === 'auto' ? `repeat(auto-fit, ${maxWidth}px)` : `repeat(${col}, minmax(0, 1fr))`,
7743
- })),
7744
- gap: '6px',
7745
- ...colorSchemeStyles,
7746
- ...hostHiddenStyles,
7747
- }),
8158
+ ...addImportantToEachRule({
8159
+ gridAutoRows: '1fr',
8160
+ ...buildResponsiveStyles(columns, (col) => ({
8161
+ gridTemplateColumns: col === 'auto' ? `repeat(auto-fit, ${maxWidth}px)` : `repeat(${col}, minmax(0, 1fr))`,
8162
+ })),
8163
+ gap: '6px',
8164
+ ...colorSchemeStyles,
8165
+ ...hostHiddenStyles,
8166
+ }),
8167
+ },
7748
8168
  },
7749
8169
  });
7750
8170
  };
@@ -8024,7 +8444,7 @@ const getListStyles = (direction, theme) => {
8024
8444
  },
8025
8445
  };
8026
8446
  };
8027
- const getComponentCss$p = (direction, isOpen, state, disabled, filter, theme) => {
8447
+ const getComponentCss$p = (direction, isOpen, state, disabled, filter, isNativePopover, theme) => {
8028
8448
  return getCss(
8029
8449
  // merge because of global styles
8030
8450
  mergeDeep({
@@ -8037,6 +8457,23 @@ const getComponentCss$p = (direction, isOpen, state, disabled, filter, theme) =>
8037
8457
  'sr-text': {
8038
8458
  display: 'none',
8039
8459
  },
8460
+ ...(isNativePopover && {
8461
+ popover: {
8462
+ position: 'absolute',
8463
+ bottom: 'auto',
8464
+ border: 'none',
8465
+ background: 'none',
8466
+ pointerEvents: 'all',
8467
+ padding: 0,
8468
+ margin: 0,
8469
+ overflow: 'initial',
8470
+ height: 'auto',
8471
+ maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`,
8472
+ '&:-internal-popover-in-top-layer::backdrop': {
8473
+ display: 'none',
8474
+ },
8475
+ },
8476
+ }),
8040
8477
  }, filter
8041
8478
  ? getFilterStyles(direction, isOpen, state, disabled, theme)
8042
8479
  : getButtonStyles(direction, isOpen, state, theme), isOpen && getListStyles(direction, theme)));
@@ -8116,12 +8553,14 @@ const getComponentCss$n = (size, theme) => {
8116
8553
  const lastHighContrastStrokeColor = isHighContrastMode && canvasColor;
8117
8554
  return getCss({
8118
8555
  '@global': {
8119
- ':host': addImportantToEachRule({
8556
+ ':host': {
8120
8557
  display: 'inline-flex',
8121
- verticalAlign: 'top',
8122
- ...colorSchemeStyles,
8123
- ...hostHiddenStyles,
8124
- }),
8558
+ ...addImportantToEachRule({
8559
+ verticalAlign: 'top',
8560
+ ...colorSchemeStyles,
8561
+ ...hostHiddenStyles,
8562
+ }),
8563
+ },
8125
8564
  svg: {
8126
8565
  display: 'block',
8127
8566
  fill: 'none',
@@ -8360,16 +8799,20 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
8360
8799
  const { focusColor: focusColorDark } = getThemedColors('dark');
8361
8800
  return getCss({
8362
8801
  '@global': {
8363
- ':host': addImportantToEachRule({
8364
- outline: 0,
8365
- ...colorSchemeStyles,
8366
- ...hostHiddenStyles,
8802
+ ':host': {
8367
8803
  ...buildResponsiveStyles(stretch, (stretchValue) => ({
8368
8804
  display: stretchValue ? 'block' : 'inline-block',
8369
- width: stretchValue ? '100%' : 'auto',
8370
- ...(!stretchValue && { verticalAlign: 'top' }),
8371
8805
  })),
8372
- }),
8806
+ ...addImportantToEachRule({
8807
+ outline: 0,
8808
+ ...colorSchemeStyles,
8809
+ ...hostHiddenStyles,
8810
+ ...buildResponsiveStyles(stretch, (stretchValue) => ({
8811
+ width: stretchValue ? '100%' : 'auto',
8812
+ ...(!stretchValue && { verticalAlign: 'top' }),
8813
+ })),
8814
+ }),
8815
+ },
8373
8816
  },
8374
8817
  root: {
8375
8818
  display: 'flex',
@@ -8480,10 +8923,10 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
8480
8923
  const getComponentCss$j = () => {
8481
8924
  return getCss({
8482
8925
  '@global': {
8483
- ':host': addImportantToEachRule({
8926
+ ':host': {
8484
8927
  display: 'table-row-group',
8485
- ...hostHiddenStyles,
8486
- }),
8928
+ ...addImportantToEachRule(hostHiddenStyles),
8929
+ },
8487
8930
  },
8488
8931
  });
8489
8932
  };
@@ -8492,14 +8935,14 @@ const getComponentCss$i = (multiline) => {
8492
8935
  return getCss({
8493
8936
  '@global': {
8494
8937
  ':host': {
8938
+ display: 'table-cell',
8939
+ verticalAlign: 'middle',
8495
8940
  ...addImportantToEachRule({
8496
- display: 'table-cell',
8497
8941
  padding: spacingFluidSmall,
8498
8942
  margin: 0,
8499
8943
  whiteSpace: multiline ? 'normal' : 'nowrap',
8500
8944
  ...hostHiddenStyles,
8501
8945
  }),
8502
- verticalAlign: 'middle',
8503
8946
  },
8504
8947
  },
8505
8948
  });
@@ -8518,17 +8961,19 @@ const getComponentCss$h = (theme) => {
8518
8961
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, } = doGetThemedColors('dark');
8519
8962
  return getCss({
8520
8963
  '@global': {
8521
- ':host': addImportantToEachRule({
8964
+ ':host': {
8522
8965
  display: 'block',
8523
- ...textSmallStyle,
8524
- color: primaryColor,
8525
- textAlign: 'start',
8526
- ...colorSchemeStyles,
8527
- ...hostHiddenStyles,
8528
- ...prefersColorSchemeDarkMediaQuery(theme, {
8529
- color: primaryColorDark,
8966
+ ...addImportantToEachRule({
8967
+ ...textSmallStyle,
8968
+ color: primaryColor,
8969
+ textAlign: 'start',
8970
+ ...colorSchemeStyles,
8971
+ ...hostHiddenStyles,
8972
+ ...prefersColorSchemeDarkMediaQuery(theme, {
8973
+ color: primaryColorDark,
8974
+ }),
8530
8975
  }),
8531
- }),
8976
+ },
8532
8977
  '::slotted(*)': addImportantToEachRule({
8533
8978
  [cssVariableTableHoverColor]: hoverColor,
8534
8979
  [cssVariableTableBorderColor]: contrastLowColor,
@@ -8565,13 +9010,15 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
8565
9010
  const sortable = isSortable(active, direction);
8566
9011
  return getCss({
8567
9012
  '@global': {
8568
- ':host': addImportantToEachRule({
9013
+ ':host': {
8569
9014
  display: 'table-cell',
8570
- padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
8571
- verticalAlign: 'bottom',
8572
- whiteSpace: multiline ? 'normal' : 'nowrap',
8573
- ...hostHiddenStyles,
8574
- }),
9015
+ ...addImportantToEachRule({
9016
+ padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
9017
+ verticalAlign: 'bottom',
9018
+ whiteSpace: multiline ? 'normal' : 'nowrap',
9019
+ ...hostHiddenStyles,
9020
+ }),
9021
+ },
8575
9022
  ...(sortable
8576
9023
  ? {
8577
9024
  button: {
@@ -8645,10 +9092,10 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
8645
9092
  const getComponentCss$f = () => {
8646
9093
  return getCss({
8647
9094
  '@global': {
8648
- ':host': addImportantToEachRule({
9095
+ ':host': {
8649
9096
  display: 'table-row',
8650
- ...hostHiddenStyles,
8651
- }),
9097
+ ...addImportantToEachRule(hostHiddenStyles),
9098
+ },
8652
9099
  },
8653
9100
  });
8654
9101
  };
@@ -8656,13 +9103,15 @@ const getComponentCss$f = () => {
8656
9103
  const getComponentCss$e = () => {
8657
9104
  return getCss({
8658
9105
  '@global': {
8659
- ':host': addImportantToEachRule({
9106
+ ':host': {
8660
9107
  display: 'table-header-group',
8661
- fontSize: fontSizeTextXSmall,
8662
- lineHeight: fontLineHeight,
8663
- fontWeight: fontWeightSemiBold,
8664
- ...hostHiddenStyles,
8665
- }),
9108
+ ...addImportantToEachRule({
9109
+ fontSize: fontSizeTextXSmall,
9110
+ lineHeight: fontLineHeight,
9111
+ fontWeight: fontWeightSemiBold,
9112
+ ...hostHiddenStyles,
9113
+ }),
9114
+ },
8666
9115
  },
8667
9116
  });
8668
9117
  };
@@ -8670,19 +9119,21 @@ const getComponentCss$e = () => {
8670
9119
  const getComponentCss$d = () => {
8671
9120
  return getCss({
8672
9121
  '@global': {
8673
- ':host': addImportantToEachRule({
9122
+ ':host': {
8674
9123
  display: 'table-row',
8675
- borderTop: `1px solid var(${cssVariableTableBorderColor})`,
8676
- borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
8677
- transition: getTransition('background'),
8678
- ...hostHiddenStyles,
8679
- ...hoverMediaQuery({
8680
- '&(:hover)': {
8681
- // ...frostedGlassStyle, // will result in not smooth transition when applied
8682
- background: `var(${cssVariableTableHoverColor})`,
8683
- },
9124
+ ...addImportantToEachRule({
9125
+ borderTop: `1px solid var(${cssVariableTableBorderColor})`,
9126
+ borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
9127
+ transition: getTransition('background'),
9128
+ ...hostHiddenStyles,
9129
+ ...hoverMediaQuery({
9130
+ '&(:hover)': {
9131
+ // ...frostedGlassStyle, // will result in not smooth transition when applied
9132
+ background: `var(${cssVariableTableHoverColor})`,
9133
+ },
9134
+ }),
8684
9135
  }),
8685
- }),
9136
+ },
8686
9137
  },
8687
9138
  });
8688
9139
  };
@@ -8826,26 +9277,28 @@ const getComponentCss$b = (theme) => {
8826
9277
  const { primaryColor: primaryColorDark, focusColor: focusColorDark } = getThemedColors('dark');
8827
9278
  return getCss({
8828
9279
  '@global': {
8829
- ':host': addImportantToEachRule({
9280
+ ':host': {
8830
9281
  display: 'block',
8831
- position: 'relative',
8832
- color: primaryColor,
8833
- outline: 0,
8834
- ...hostHiddenStyles,
8835
- ...prefersColorSchemeDarkMediaQuery(theme, {
8836
- color: primaryColorDark,
8837
- }),
8838
- '&(:focus:focus-visible)::before': {
8839
- content: '""',
8840
- position: 'absolute',
8841
- ...getInsetJssStyle(-4),
8842
- border: `${borderWidthBase} solid ${focusColor}`,
8843
- borderRadius: borderRadiusSmall,
9282
+ ...addImportantToEachRule({
9283
+ position: 'relative',
9284
+ color: primaryColor,
9285
+ outline: 0,
9286
+ ...hostHiddenStyles,
8844
9287
  ...prefersColorSchemeDarkMediaQuery(theme, {
8845
- borderColor: focusColorDark,
9288
+ color: primaryColorDark,
8846
9289
  }),
8847
- },
8848
- }),
9290
+ '&(:focus:focus-visible)::before': {
9291
+ content: '""',
9292
+ position: 'absolute',
9293
+ ...getInsetJssStyle(-4),
9294
+ border: `${borderWidthBase} solid ${focusColor}`,
9295
+ borderRadius: borderRadiusSmall,
9296
+ ...prefersColorSchemeDarkMediaQuery(theme, {
9297
+ borderColor: focusColorDark,
9298
+ }),
9299
+ },
9300
+ }),
9301
+ },
8849
9302
  },
8850
9303
  });
8851
9304
  };
@@ -9083,14 +9536,14 @@ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
9083
9536
 
9084
9537
  const cssVariableInputPaddingStart = '--p-internal-text-field-input-padding-start';
9085
9538
  const cssVariableInputPaddingEnd = '--p-internal-text-field-input-padding-end';
9086
- const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, theme) => {
9539
+ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
9087
9540
  const isSearch = isType(inputType, 'search');
9088
9541
  const isPassword = isType(inputType, 'password');
9089
9542
  const isNumber = isType(inputType, 'number');
9090
9543
  const isCalendar = isType(inputType, 'date') || isType(inputType, 'week') || isType(inputType, 'month');
9091
9544
  const isTime = isType(inputType, 'time');
9092
9545
  const isSearchOrPassword = isSearch || (isPassword && showPasswordToggle);
9093
- const isSearchWithoutForm = isSearch && !isWithinForm;
9546
+ const isSearchWithoutFormOrSubmitButton = isSearch && (!isWithinForm || !hasSubmitButton);
9094
9547
  const isSearchWithForm = isSearch && isWithinForm;
9095
9548
  const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
9096
9549
  return getCss({
@@ -9123,11 +9576,11 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
9123
9576
  }),
9124
9577
  },
9125
9578
  root: {
9126
- [cssVariableInputPaddingStart]: isSearchWithoutForm
9579
+ [cssVariableInputPaddingStart]: isSearchWithoutFormOrSubmitButton
9127
9580
  ? getCalculatedFormElementPaddingHorizontal(1)
9128
9581
  : formElementPaddingHorizontal,
9129
9582
  [cssVariableInputPaddingEnd]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
9130
- ? getCalculatedFormElementPaddingHorizontal(isSearchWithForm ? 2 : 1)
9583
+ ? getCalculatedFormElementPaddingHorizontal(isSearchWithForm && hasSubmitButton ? 2 : 1)
9131
9584
  : formElementPaddingHorizontal,
9132
9585
  display: 'grid',
9133
9586
  gap: spacingStaticXSmall,
@@ -9148,7 +9601,7 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
9148
9601
  },
9149
9602
  },
9150
9603
  }),
9151
- ...(isSearchWithoutForm && {
9604
+ ...(isSearchWithoutFormOrSubmitButton && {
9152
9605
  // TODO: extract for multi-select, select-wrapper and text-field (not gridArea and placeSelf) like done for unit class
9153
9606
  icon: {
9154
9607
  gridArea: '1/2',
@@ -9235,25 +9688,29 @@ const getComponentCss$6 = (type, theme) => {
9235
9688
 
9236
9689
  const getComponentCss$5 = () => {
9237
9690
  return getCss({
9238
- '@global': addImportantToEachRule({
9691
+ '@global': {
9239
9692
  ':host': {
9240
9693
  display: 'grid',
9241
- gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
9242
- columnGap: spacingStaticMedium,
9243
- font: 'inherit',
9244
- color: 'inherit',
9245
- ...hostHiddenStyles,
9246
- },
9247
- '::slotted(*)': {
9248
- [cssVariableUnorderedGridColumn]: '.625rem',
9249
- [cssVariableUnorderedPseudoContent]: '"–"',
9250
- [cssVariableOrderedGridColumn]: '2rem',
9251
- [cssVariableOrderedPseudoSuffix]: '""', // don't show ::before suffix "." (nested ordered list)
9252
- },
9253
- '::slotted(*:last-child)': {
9254
- gridColumn: 2,
9694
+ ...addImportantToEachRule({
9695
+ gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
9696
+ columnGap: spacingStaticMedium,
9697
+ font: 'inherit',
9698
+ color: 'inherit',
9699
+ ...hostHiddenStyles,
9700
+ }),
9255
9701
  },
9256
- }),
9702
+ ...addImportantToEachRule({
9703
+ '::slotted(*)': {
9704
+ [cssVariableUnorderedGridColumn]: '.625rem',
9705
+ [cssVariableUnorderedPseudoContent]: '"–"',
9706
+ [cssVariableOrderedGridColumn]: '2rem',
9707
+ [cssVariableOrderedPseudoSuffix]: '""', // don't show ::before suffix "." (nested ordered list)
9708
+ },
9709
+ '::slotted(*:last-child)': {
9710
+ gridColumn: 2,
9711
+ },
9712
+ }),
9713
+ },
9257
9714
  });
9258
9715
  };
9259
9716
 
@@ -9442,23 +9899,25 @@ const getComponentCss = (size, theme) => {
9442
9899
  });
9443
9900
  };
9444
9901
 
9445
- exports.getAccordionCss = getComponentCss$10;
9446
- exports.getBannerCss = getComponentCss$$;
9447
- exports.getButtonCss = getComponentCss$X;
9448
- exports.getButtonGroupCss = getComponentCss$_;
9449
- exports.getButtonPureCss = getComponentCss$Z;
9450
- exports.getButtonTileCss = getComponentCss$Y;
9451
- exports.getCarouselCss = getComponentCss$W;
9452
- exports.getCheckboxWrapperCss = getComponentCss$V;
9453
- exports.getContentWrapperCss = getComponentCss$U;
9454
- exports.getCrestCss = getComponentCss$T;
9455
- exports.getDisplayCss = getComponentCss$S;
9456
- exports.getDividerCss = getComponentCss$R;
9457
- exports.getFieldsetCss = getComponentCss$P;
9458
- exports.getFieldsetWrapperCss = getComponentCss$Q;
9459
- exports.getFlexCss = getComponentCss$N;
9460
- exports.getFlexItemCss = getComponentCss$O;
9902
+ exports.getAccordionCss = getComponentCss$12;
9903
+ exports.getBannerCss = getComponentCss$11;
9904
+ exports.getButtonCss = getComponentCss$Z;
9905
+ exports.getButtonGroupCss = getComponentCss$10;
9906
+ exports.getButtonPureCss = getComponentCss$$;
9907
+ exports.getButtonTileCss = getComponentCss$_;
9908
+ exports.getCarouselCss = getComponentCss$Y;
9909
+ exports.getCheckboxWrapperCss = getComponentCss$X;
9910
+ exports.getContentWrapperCss = getComponentCss$W;
9911
+ exports.getCrestCss = getComponentCss$V;
9912
+ exports.getDisplayCss = getComponentCss$U;
9913
+ exports.getDividerCss = getComponentCss$T;
9914
+ exports.getFieldsetCss = getComponentCss$R;
9915
+ exports.getFieldsetWrapperCss = getComponentCss$S;
9916
+ exports.getFlexCss = getComponentCss$P;
9917
+ exports.getFlexItemCss = getComponentCss$Q;
9461
9918
  exports.getFlyoutCss = getComponentCss$M;
9919
+ exports.getFlyoutNavigationCss = getComponentCss$O;
9920
+ exports.getFlyoutNavigationItemCss = getComponentCss$N;
9462
9921
  exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
9463
9922
  exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
9464
9923
  exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;