@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,7 +1,3 @@
1
- const isDisabledOrLoading = (disabled, loading) => {
2
- return disabled || loading;
3
- };
4
-
5
1
  function _extends() {
6
2
  _extends = Object.assign ? Object.assign.bind() : function (target) {
7
3
  for (var i = 1; i < arguments.length; i++) {
@@ -2354,18 +2350,18 @@ function getDynamicStyles(styles) {
2354
2350
  var index = createJss();
2355
2351
 
2356
2352
  var jss_esm = /*#__PURE__*/Object.freeze({
2357
- __proto__: null,
2358
- RuleList: RuleList,
2359
- SheetsManager: SheetsManager,
2360
- SheetsRegistry: SheetsRegistry,
2361
- create: createJss,
2362
- createGenerateId: createGenerateId,
2363
- createRule: createRule,
2364
- default: index,
2365
- getDynamicStyles: getDynamicStyles,
2366
- hasCSSTOMSupport: hasCSSTOMSupport,
2367
- sheets: sheets,
2368
- toCssValue: toCssValue
2353
+ __proto__: null,
2354
+ RuleList: RuleList,
2355
+ SheetsManager: SheetsManager,
2356
+ SheetsRegistry: SheetsRegistry,
2357
+ create: createJss,
2358
+ createGenerateId: createGenerateId,
2359
+ createRule: createRule,
2360
+ default: index,
2361
+ getDynamicStyles: getDynamicStyles,
2362
+ hasCSSTOMSupport: hasCSSTOMSupport,
2363
+ sheets: sheets,
2364
+ toCssValue: toCssValue
2369
2365
  });
2370
2366
 
2371
2367
  var at = '@global';
@@ -3155,6 +3151,10 @@ var dist = jssCombineAndSortMQ;
3155
3151
 
3156
3152
  var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(dist);
3157
3153
 
3154
+ const isDisabledOrLoading = (disabled, loading) => {
3155
+ return disabled || loading;
3156
+ };
3157
+
3158
3158
  const hasWindow = typeof window !== 'undefined';
3159
3159
 
3160
3160
  const isHighContrastMode = hasWindow && window.matchMedia?.('(forced-colors: active)').matches;
@@ -4056,22 +4056,25 @@ const formatObjectOutput = (value) => {
4056
4056
 
4057
4057
  const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
4058
4058
 
4059
- const getComponentCss$10 = (size, compact, open, theme) => {
4059
+ const getComponentCss$12 = (size, compact, open, theme) => {
4060
4060
  const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
4061
4061
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
4062
4062
  return getCss({
4063
4063
  '@global': {
4064
- ':host': addImportantToEachRule({
4064
+ ':host': {
4065
4065
  display: 'block',
4066
- ...(!compact && {
4067
- borderBottom: `1px solid ${contrastLowColor}`,
4068
- ...prefersColorSchemeDarkMediaQuery(theme, {
4069
- borderColor: contrastLowColorDark,
4066
+ ...addImportantToEachRule({
4067
+ ...(!compact && {
4068
+ borderBottom: `1px solid ${contrastLowColor}`,
4069
+ ...prefersColorSchemeDarkMediaQuery(theme, {
4070
+ borderColor: contrastLowColorDark,
4071
+ }),
4070
4072
  }),
4073
+ '&(:only-of-type)': { borderBottom: 0 },
4074
+ ...colorSchemeStyles,
4075
+ ...hostHiddenStyles,
4071
4076
  }),
4072
- ...colorSchemeStyles,
4073
- ...hostHiddenStyles,
4074
- }),
4077
+ },
4075
4078
  button: {
4076
4079
  display: 'flex',
4077
4080
  position: 'relative',
@@ -4196,7 +4199,7 @@ const cssVariableTop = '--p-banner-position-top';
4196
4199
  const cssVariableBottom = '--p-banner-position-bottom';
4197
4200
  const cssVariableZIndex = '--p-internal-banner-z-index';
4198
4201
  const topBottomFallback = '56px';
4199
- const getComponentCss$$ = (isOpen) => {
4202
+ const getComponentCss$11 = (isOpen) => {
4200
4203
  return getCss({
4201
4204
  '@global': {
4202
4205
  ':host': addImportantToEachRule({
@@ -4259,7 +4262,7 @@ const getGroupDirectionJssStyles = (direction) => {
4259
4262
  return groupDirectionJssStyles[direction];
4260
4263
  };
4261
4264
 
4262
- const getComponentCss$_ = (direction) => {
4265
+ const getComponentCss$10 = (direction) => {
4263
4266
  return getCss({
4264
4267
  '@global': {
4265
4268
  ':host': {
@@ -4413,7 +4416,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4413
4416
  };
4414
4417
  };
4415
4418
 
4416
- const getComponentCss$Z = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4419
+ const getComponentCss$$ = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
4417
4420
  const hasIcon = hasVisibleIcon(icon, iconSource);
4418
4421
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), {
4419
4422
  root: {
@@ -4590,7 +4593,7 @@ background, align, compact, hasGradient, isDisabled) => {
4590
4593
  });
4591
4594
  };
4592
4595
 
4593
- const getComponentCss$Y = (isDisabledOrLoading, ...args) => {
4596
+ const getComponentCss$_ = (isDisabledOrLoading, ...args) => {
4594
4597
  const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
4595
4598
  return getCss({
4596
4599
  ...buttonLinkTileStyles,
@@ -4726,7 +4729,7 @@ const getDisabledColors = (variant, loading, theme) => {
4726
4729
  };
4727
4730
  return colors[variant === 'tertiary' ? 'secondary' : variant];
4728
4731
  };
4729
- const getComponentCss$X = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
4732
+ const getComponentCss$Z = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
4730
4733
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
4731
4734
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
4732
4735
  const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
@@ -4798,53 +4801,57 @@ const spacingMap = {
4798
4801
  basic: gridBasicOffset,
4799
4802
  extended: gridExtendedOffset,
4800
4803
  };
4801
- const getComponentCss$W = (width, hasPagination, isInfinitePagination, alignHeader, theme) => {
4804
+ const getComponentCss$Y = (width, hasPagination, isInfinitePagination, alignHeader, theme) => {
4802
4805
  const { primaryColor, contrastMediumColor, focusColor } = getThemedColors(theme);
4803
4806
  const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
4804
4807
  const { canvasTextColor } = getHighContrastColors();
4805
4808
  const isHeaderAlignCenter = alignHeader === 'center';
4806
4809
  return getCss({
4807
4810
  '@global': {
4808
- ':host': addImportantToEachRule({
4811
+ ':host': {
4809
4812
  display: 'flex',
4810
- gap: spacingFluidMedium,
4811
- flexDirection: 'column',
4812
- boxSizing: 'content-box',
4813
- ...colorSchemeStyles,
4814
- ...hostHiddenStyles,
4815
- }),
4816
- '::slotted(*)': {
4817
- borderRadius: addImportantToRule(`var(--p-carousel-border-radius, ${borderRadiusLarge})`),
4818
- },
4819
- '::slotted(*:focus-visible)': addImportantToEachRule({
4820
- outline: `${borderWidthBase} solid ${focusColor}`,
4821
- ...prefersColorSchemeDarkMediaQuery(theme, {
4822
- outlineColor: focusColorDark,
4823
- }),
4824
- outlineOffset: '2px',
4825
- }),
4826
- [selectorHeading]: addImportantToEachRule({
4827
- ...headingXLargeStyle,
4828
- maxWidth: '56.25rem',
4829
- margin: 0,
4830
- }),
4831
- [selectorDescription]: addImportantToEachRule({
4832
- ...textSmallStyle,
4833
- maxWidth: '34.375rem',
4834
- margin: `${spacingFluidXSmall} 0 0`,
4835
- }),
4836
- [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
4837
- color: primaryColor,
4838
- ...prefersColorSchemeDarkMediaQuery(theme, {
4839
- color: primaryColorDark,
4813
+ ...addImportantToEachRule({
4814
+ gap: spacingFluidMedium,
4815
+ flexDirection: 'column',
4816
+ boxSizing: 'content-box',
4817
+ ...colorSchemeStyles,
4818
+ ...hostHiddenStyles,
4840
4819
  }),
4841
- [mediaQueryS]: isHeaderAlignCenter
4842
- ? {
4843
- gridColumn: 2,
4844
- }
4845
- : {
4846
- gridColumn: '1 / 3',
4847
- },
4820
+ },
4821
+ ...addImportantToEachRule({
4822
+ '::slotted(*)': {
4823
+ borderRadius: `var(--p-carousel-border-radius, ${borderRadiusLarge})`,
4824
+ },
4825
+ '::slotted(*:focus-visible)': {
4826
+ outline: `${borderWidthBase} solid ${focusColor}`,
4827
+ ...prefersColorSchemeDarkMediaQuery(theme, {
4828
+ outlineColor: focusColorDark,
4829
+ }),
4830
+ outlineOffset: '2px',
4831
+ },
4832
+ [selectorHeading]: {
4833
+ ...headingXLargeStyle,
4834
+ maxWidth: '56.25rem',
4835
+ margin: 0,
4836
+ },
4837
+ [selectorDescription]: {
4838
+ ...textSmallStyle,
4839
+ maxWidth: '34.375rem',
4840
+ margin: `${spacingFluidXSmall} 0 0`,
4841
+ },
4842
+ [`${selectorHeading},${selectorDescription}`]: {
4843
+ color: primaryColor,
4844
+ ...prefersColorSchemeDarkMediaQuery(theme, {
4845
+ color: primaryColorDark,
4846
+ }),
4847
+ [mediaQueryS]: isHeaderAlignCenter
4848
+ ? {
4849
+ gridColumn: 2,
4850
+ }
4851
+ : {
4852
+ gridColumn: '1 / 3',
4853
+ },
4854
+ },
4848
4855
  }),
4849
4856
  },
4850
4857
  header: {
@@ -5202,7 +5209,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
5202
5209
  const getIndeterminateSVGBackgroundImage = (fill) => {
5203
5210
  return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
5204
5211
  };
5205
- const getComponentCss$V = (hideLabel, state, isDisabled, isLoading, theme) => {
5212
+ const getComponentCss$X = (hideLabel, state, isDisabled, isLoading, theme) => {
5206
5213
  const { canvasColor } = getHighContrastColors();
5207
5214
  const checkedIconColor = isHighContrastMode
5208
5215
  ? canvasColor
@@ -5300,7 +5307,7 @@ const widthMap = {
5300
5307
  basic: gridBasicOffset,
5301
5308
  extended: gridExtendedOffset,
5302
5309
  };
5303
- const getComponentCss$U = (width) => {
5310
+ const getComponentCss$W = (width) => {
5304
5311
  return getCss({
5305
5312
  '@global': {
5306
5313
  ':host': {
@@ -5342,7 +5349,7 @@ const getDimensionStyle = {
5342
5349
  width: 'inherit',
5343
5350
  height: 'inherit',
5344
5351
  };
5345
- const getComponentCss$T = () => {
5352
+ const getComponentCss$V = () => {
5346
5353
  return getCss({
5347
5354
  '@global': {
5348
5355
  ':host': {
@@ -5430,7 +5437,7 @@ const sizeMap$4 = {
5430
5437
  medium: fontSizeDisplayMedium,
5431
5438
  large: fontSizeDisplayLarge,
5432
5439
  };
5433
- const getComponentCss$S = (size, align, color, ellipsis, theme) => {
5440
+ const getComponentCss$U = (size, align, color, ellipsis, theme) => {
5434
5441
  return getCss({
5435
5442
  '@global': {
5436
5443
  ':host': {
@@ -5450,7 +5457,7 @@ const getComponentCss$S = (size, align, color, ellipsis, theme) => {
5450
5457
  });
5451
5458
  };
5452
5459
 
5453
- const getComponentCss$R = (color, orientation, theme) => {
5460
+ const getComponentCss$T = (color, orientation, theme) => {
5454
5461
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
5455
5462
  const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
5456
5463
  const colorMap = {
@@ -5493,14 +5500,16 @@ const getComponentCss$R = (color, orientation, theme) => {
5493
5500
  });
5494
5501
  };
5495
5502
 
5496
- const getComponentCss$Q = (state, labelSize, hasLabel, theme) => {
5503
+ const getComponentCss$S = (state, labelSize, hasLabel, theme) => {
5497
5504
  return getCss({
5498
5505
  '@global': {
5499
- ':host': addImportantToEachRule({
5506
+ ':host': {
5500
5507
  display: 'block',
5501
- ...colorSchemeStyles,
5502
- ...hostHiddenStyles,
5503
- }),
5508
+ ...addImportantToEachRule({
5509
+ ...colorSchemeStyles,
5510
+ ...hostHiddenStyles,
5511
+ }),
5512
+ },
5504
5513
  fieldset: {
5505
5514
  margin: 0,
5506
5515
  padding: 0,
@@ -5527,14 +5536,16 @@ const getComponentCss$Q = (state, labelSize, hasLabel, theme) => {
5527
5536
  });
5528
5537
  };
5529
5538
 
5530
- const getComponentCss$P = (state, labelSize, hasLabel, theme) => {
5539
+ const getComponentCss$R = (state, labelSize, hasLabel, theme) => {
5531
5540
  return getCss({
5532
5541
  '@global': {
5533
- ':host': addImportantToEachRule({
5542
+ ':host': {
5534
5543
  display: 'block',
5535
- ...colorSchemeStyles,
5536
- ...hostHiddenStyles,
5537
- }),
5544
+ ...addImportantToEachRule({
5545
+ ...colorSchemeStyles,
5546
+ ...hostHiddenStyles,
5547
+ }),
5548
+ },
5538
5549
  fieldset: {
5539
5550
  margin: 0,
5540
5551
  padding: 0,
@@ -5571,7 +5582,7 @@ const flexItemWidths = {
5571
5582
  full: 100,
5572
5583
  auto: 'auto',
5573
5584
  };
5574
- const getComponentCss$O = (width, offset, alignSelf, grow, shrink, flex) => {
5585
+ const getComponentCss$Q = (width, offset, alignSelf, grow, shrink, flex) => {
5575
5586
  return getCss({
5576
5587
  '@global': {
5577
5588
  ':host': addImportantToEachRule({
@@ -5593,23 +5604,393 @@ const getComponentCss$O = (width, offset, alignSelf, grow, shrink, flex) => {
5593
5604
  });
5594
5605
  };
5595
5606
 
5596
- const getComponentCss$N = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5607
+ const getComponentCss$P = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
5597
5608
  return getCss({
5598
5609
  '@global': {
5599
- ':host': addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
5600
- display: inlineResponsive ? 'inline-flex' : 'flex',
5601
- })), buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
5602
- flexDirection: flexDirectionResponsive,
5603
- })), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
5604
- justifyContent: justifyContentResponsive,
5605
- })), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
5606
- alignItems: alignItemsResponsive,
5607
- })), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
5608
- alignContent: alignContentResponsive,
5609
- })))),
5610
+ ':host': {
5611
+ ...buildResponsiveStyles(inline, (inlineResponsive) => ({
5612
+ display: inlineResponsive ? 'inline-flex' : 'flex',
5613
+ })),
5614
+ ...addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
5615
+ flexDirection: flexDirectionResponsive,
5616
+ })), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
5617
+ justifyContent: justifyContentResponsive,
5618
+ })), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
5619
+ alignItems: alignItemsResponsive,
5620
+ })), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
5621
+ alignContent: alignContentResponsive,
5622
+ })))),
5623
+ },
5624
+ },
5625
+ });
5626
+ };
5627
+
5628
+ const cssVariableVisibility = '--p-internal-flyout-navigation-visibility';
5629
+ const cssVariableVisibilityTransitionDuration = '--p-internal-flyout-navigation-visibility-transition-duration';
5630
+ const frostedGlassHeaderHeight = '4rem';
5631
+ const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
5632
+ const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
5633
+ const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
5634
+ const mediaQueryEnhancedView = getMediaQueryMin('s');
5635
+ const getComponentCss$O = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
5636
+ const { backgroundColor } = getThemedColors(theme);
5637
+ const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
5638
+ const frostedGlassBackgroundColor = isThemeDark(theme)
5639
+ ? frostedGlassBackgroundColorDark$1
5640
+ : frostedGlassBackgroundColorLight$1;
5641
+ return getCss({
5642
+ '@global': {
5643
+ ':host': {
5644
+ display: 'block',
5645
+ ...addImportantToEachRule({
5646
+ ...(!isPrimaryScrollerVisible && {
5647
+ [cssVariableVisibility]: 'hidden',
5648
+ [cssVariableVisibilityTransitionDuration]: motionDurationLong,
5649
+ }),
5650
+ ...getBackdropJssStyle(isPrimaryScrollerVisible, 'long', theme),
5651
+ ...colorSchemeStyles,
5652
+ ...hostHiddenStyles,
5653
+ }),
5654
+ },
5655
+ dialog: {
5656
+ position: 'fixed',
5657
+ ...getInsetJssStyle(),
5658
+ display: 'grid',
5659
+ width: 'auto',
5660
+ height: '100vh',
5661
+ maxWidth: '100vw',
5662
+ maxHeight: '100vh',
5663
+ margin: 0,
5664
+ padding: 0,
5665
+ border: 0,
5666
+ visibility: 'inherit',
5667
+ background: 'none',
5668
+ overflow: 'hidden',
5669
+ ...(isPrimaryScrollerVisible
5670
+ ? {
5671
+ transform: 'translate3d(0, 0, 0)',
5672
+ transition: `${getTransition('transform', 'long', 'in')}`,
5673
+ }
5674
+ : {
5675
+ transform: 'translate3d(-100%, 0, 0)',
5676
+ transition: `${getTransition('transform', 'long', 'out')}`,
5677
+ }),
5678
+ [mediaQueryEnhancedView]: {
5679
+ gridTemplateColumns: `repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${scrollerWidthEnhancedView}) auto`,
5680
+ gridTemplateRows: '100vh',
5681
+ insetInlineEnd: 'auto', // to have correct dialog dimensions for ideal transitions
5682
+ },
5683
+ '&:dir(rtl)': {
5684
+ ...(!isPrimaryScrollerVisible && {
5685
+ transform: 'translate3d(100%, 0, 0)', // use correct transitions in rtl mode
5686
+ }),
5687
+ },
5688
+ '&:focus-visible': {
5689
+ outline: 'none', // ua-style reset
5690
+ },
5691
+ '&::backdrop': {
5692
+ // to improve browser backwards compatibility we visually style the backdrop on the :host,
5693
+ // although it's not on the #top-layer like it would be for modern browsers supporting ::backdrop
5694
+ opacity: 0, // to support backdrop click for modern browsers supporting ::backdrop
5695
+ },
5696
+ },
5697
+ },
5698
+ scroller: {
5699
+ gridArea: '1/1',
5700
+ overflow: 'auto',
5701
+ // cssVariableVisibility ensures secondary scroller is not tabbable when whole flyout-navigation is closed
5702
+ // 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
5703
+ visibility: `var(${cssVariableVisibility},${isSecondaryScrollerVisible ? 'hidden' : 'visible'})`,
5704
+ transition: `${getTransition('left', 'long', isSecondaryScrollerVisible ? 'in' : 'out')}, visibility 0s linear var(${cssVariableTransitionDuration}, ${!isPrimaryScrollerVisible || isSecondaryScrollerVisible ? motionDurationLong : '0s'})`,
5705
+ // it's important to define background-color for each scroller to have correct scrollbar coloring
5706
+ backgroundColor,
5707
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5708
+ backgroundColor: backgroundColorDark,
5709
+ }),
5710
+ [mediaQueryEnhancedView]: {
5711
+ visibility: 'inherit',
5712
+ transition: 'initial',
5713
+ },
5714
+ // simulates frosted glass header, to be visually in sync with header of secondary scroller
5715
+ '&::before': {
5716
+ content: '""',
5717
+ display: 'block',
5718
+ position: 'sticky',
5719
+ top: 0,
5720
+ zIndex: 1,
5721
+ height: frostedGlassHeaderHeight,
5722
+ backgroundColor: frostedGlassBackgroundColor,
5723
+ WebkitBackdropFilter: 'blur(8px)',
5724
+ backdropFilter: 'blur(8px)',
5725
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5726
+ backgroundColor: frostedGlassBackgroundColorDark$1,
5727
+ }),
5728
+ [mediaQueryEnhancedView]: {
5729
+ display: 'none',
5730
+ },
5731
+ },
5732
+ },
5733
+ content: {
5734
+ display: 'flex',
5735
+ flexDirection: 'column',
5736
+ gap: spacingFluidXSmall,
5737
+ padding: `${spacingFluidSmall} ${spacingFluidLarge} ${spacingFluidLarge}`,
5738
+ [mediaQueryEnhancedView]: {
5739
+ padding: `${spacingFluidMedium} ${spacingFluidLarge} ${spacingFluidLarge}`,
5740
+ },
5741
+ },
5742
+ // header is needed to keep position of dismiss button in sync with header of secondary scroller
5743
+ header: {
5744
+ position: 'relative',
5745
+ zIndex: 3,
5746
+ gridArea: '1/1',
5747
+ alignSelf: 'flex-start',
5748
+ justifySelf: 'flex-end',
5749
+ marginInlineEnd: `calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
5750
+ height: frostedGlassHeaderHeight,
5751
+ display: 'flex',
5752
+ alignItems: 'center',
5753
+ [mediaQueryEnhancedView]: {
5754
+ marginInlineEnd: 0,
5755
+ gridArea: '1/-1',
5756
+ placeSelf: 'flex-start',
5757
+ },
5758
+ },
5759
+ dismiss: {
5760
+ padding: spacingFluidSmall,
5761
+ [mediaQueryEnhancedView]: {
5762
+ '--p-internal-icon-filter': 'invert(1)',
5763
+ margin: spacingFluidSmall,
5764
+ padding: spacingStaticSmall,
5765
+ },
5610
5766
  },
5611
5767
  });
5612
5768
  };
5769
+ // TODO: getBackdropJssStyle can be shared with flyout and modal
5770
+ /**
5771
+ * Generates JSS styles for a frosted glass background.
5772
+ * @param {boolean} isVisible - Determines if the frosted glass effect is visible.
5773
+ * @param {string} duration - The duration of the transition animation.
5774
+ * @param {Theme} theme - The theme to be used
5775
+ * @returns {JssStyle} - The JSS styles for the frosted glass backdrop.
5776
+ */
5777
+ const getBackdropJssStyle = (isVisible, duration, theme) => {
5778
+ return {
5779
+ position: 'fixed',
5780
+ ...getInsetJssStyle(),
5781
+ zIndex: FLYOUT_Z_INDEX,
5782
+ ...(isVisible
5783
+ ? {
5784
+ visibility: 'visible',
5785
+ pointerEvents: 'auto',
5786
+ ...frostedGlassStyle,
5787
+ // TODO: background shading is missing in getThemedColors(theme).backgroundShading
5788
+ background: isThemeDark(theme) ? themeDarkBackgroundShading : themeLightBackgroundShading,
5789
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5790
+ background: themeDarkBackgroundShading,
5791
+ }),
5792
+ }
5793
+ : {
5794
+ visibility: 'hidden',
5795
+ pointerEvents: 'none',
5796
+ WebkitBackdropFilter: 'blur(0px)',
5797
+ backdropFilter: 'blur(0px)',
5798
+ background: 'none',
5799
+ }),
5800
+ transition: `${getTransition('background', duration, 'base')}, ${getTransition('backdrop-filter', duration, 'base')}, ${getTransition('-webkit-backdrop-filter', duration, 'base')}, visibility 0s linear var(${cssVariableTransitionDuration}, ${isVisible ? '0s' : motionDurationLong})`,
5801
+ };
5802
+ };
5803
+ const getContentJssStyle = () => {
5804
+ return {
5805
+ display: 'flex',
5806
+ flexDirection: 'column',
5807
+ gap: spacingFluidXSmall,
5808
+ padding: `${spacingFluidSmall} ${spacingFluidLarge} ${spacingFluidLarge}`,
5809
+ [mediaQueryEnhancedView]: {
5810
+ padding: `${spacingFluidMedium} ${spacingFluidLarge} ${spacingFluidLarge}`,
5811
+ },
5812
+ };
5813
+ };
5814
+
5815
+ const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
5816
+ const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
5817
+ const getComponentCss$N = (isSecondaryScrollerVisible, theme) => {
5818
+ const { primaryColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
5819
+ const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, focusColor: focusColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
5820
+ const frostedGlassBackgroundColor = isThemeDark(theme)
5821
+ ? frostedGlassBackgroundColorDark
5822
+ : frostedGlassBackgroundColorLight;
5823
+ const fadeInOutTransition = isSecondaryScrollerVisible
5824
+ ? {
5825
+ opacity: 1,
5826
+ transition: `${getTransition('opacity', 'veryLong', 'in', 'short')}`,
5827
+ [mediaQueryEnhancedView]: {
5828
+ transition: `${getTransition('opacity', 'veryLong', 'in')}`,
5829
+ },
5830
+ }
5831
+ : {
5832
+ opacity: 0,
5833
+ transition: `${getTransition('opacity', 'short', 'out')}`,
5834
+ };
5835
+ return getCss({
5836
+ '@global': {
5837
+ ':host': {
5838
+ display: 'block',
5839
+ ...addImportantToEachRule({
5840
+ ...colorSchemeStyles,
5841
+ ...hostHiddenStyles,
5842
+ }),
5843
+ },
5844
+ '::slotted(:is(h1, h2, h3, h4, h5, h6))': addImportantToEachRule({
5845
+ ...headingSmallStyle,
5846
+ margin: 0,
5847
+ color: primaryColor,
5848
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5849
+ color: primaryColorDark,
5850
+ }),
5851
+ }),
5852
+ '::slotted(:is(h1, h2, h3, h4, h5, h6):not(:first-child))': addImportantToEachRule({
5853
+ margin: `${spacingFluidSmall} 0 0`,
5854
+ }),
5855
+ '::slotted(p)': addImportantToEachRule({
5856
+ ...textSmallStyle,
5857
+ margin: 0,
5858
+ color: primaryColor,
5859
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5860
+ color: primaryColorDark,
5861
+ }),
5862
+ }),
5863
+ // TODO: how can we easily re-use getHoverStyle() and getFocusStyle() with ::slotted(a) selector?
5864
+ '::slotted(a)': {
5865
+ ...addImportantToEachRule({
5866
+ ...textSmallStyle,
5867
+ display: 'block',
5868
+ textDecoration: 'none',
5869
+ cursor: 'pointer',
5870
+ color: primaryColor,
5871
+ borderRadius: borderRadiusSmall,
5872
+ marginLeft: `-${spacingStaticXSmall}`,
5873
+ marginRight: `-${spacingStaticXSmall}`,
5874
+ padding: `2px ${spacingStaticXSmall}`,
5875
+ transition: `background var(${cssVariableTransitionDuration}, ${motionDurationShort}) ${motionEasingBase}`,
5876
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5877
+ color: primaryColorDark,
5878
+ }),
5879
+ }),
5880
+ },
5881
+ ...hoverMediaQuery({
5882
+ '::slotted(a:hover)': addImportantToEachRule({
5883
+ background: hoverColor,
5884
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5885
+ background: hoverColorDark,
5886
+ }),
5887
+ }),
5888
+ }),
5889
+ '::slotted(a[aria-current])': addImportantToEachRule({
5890
+ background: hoverColor,
5891
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5892
+ background: hoverColorDark,
5893
+ }),
5894
+ }),
5895
+ '::slotted(a:focus)': addImportantToEachRule({
5896
+ outline: `${borderWidthBase} solid ${focusColor}`,
5897
+ outlineOffset: '-2px',
5898
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5899
+ outlineColor: focusColorDark,
5900
+ }),
5901
+ }),
5902
+ '::slotted(a:focus:not(:focus-visible))': addImportantToEachRule({
5903
+ outlineColor: 'transparent',
5904
+ }),
5905
+ },
5906
+ button: {
5907
+ width: 'auto',
5908
+ padding: spacingFluidSmall,
5909
+ margin: `0 calc(${spacingFluidSmall} * -1)`,
5910
+ },
5911
+ scroller: {
5912
+ position: 'fixed',
5913
+ ...getInsetJssStyle(),
5914
+ // "cssVariableTransitionDuration" ensures closing animation of secondary scroller is given when whole flyout-navigation gets closed
5915
+ // "cssVariableVisibility" ensures secondary scroller is not tabbable when whole flyout-navigation is closed
5916
+ ...(isSecondaryScrollerVisible
5917
+ ? {
5918
+ zIndex: 2,
5919
+ transform: 'translate3d(0, 0, 0)',
5920
+ visibility: `var(${cssVariableVisibility},visible)`,
5921
+ transition: `${getTransition('transform', 'long', 'in')}, visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},0s))`,
5922
+ }
5923
+ : {
5924
+ zIndex: 1,
5925
+ transform: 'translate3d(100%, 0, 0)',
5926
+ visibility: `var(${cssVariableVisibility},hidden)`,
5927
+ transition: `${getTransition('transform', 'long', 'out')}, visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},${motionDurationLong}))`,
5928
+ }),
5929
+ width: '100vw',
5930
+ boxSizing: 'border-box',
5931
+ overflow: 'auto',
5932
+ ...dropShadowHighStyle,
5933
+ // it's important to define background-color for each scroller to have correct scrollbar coloring
5934
+ backgroundColor: backgroundSurfaceColor,
5935
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5936
+ backgroundColor: backgroundSurfaceColorDark,
5937
+ }),
5938
+ [mediaQueryEnhancedView]: {
5939
+ boxShadow: 'none',
5940
+ insetInlineStart: `calc(${scrollerWidthEnhancedView} - 1px)`,
5941
+ width: scrollerWidthEnhancedView,
5942
+ transform: addImportantToRule('initial'),
5943
+ transition: `visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},0s))`,
5944
+ },
5945
+ '&:dir(rtl)': {
5946
+ ...(!isSecondaryScrollerVisible && {
5947
+ transform: 'translate3d(-100%, 0, 0)', // use correct transitions in rtl mode for mobile view
5948
+ }),
5949
+ },
5950
+ },
5951
+ // header needs to be placed within scroller to ensure scrollbars are fully visible
5952
+ header: {
5953
+ position: 'sticky',
5954
+ top: 0,
5955
+ zIndex: 1,
5956
+ height: frostedGlassHeaderHeight,
5957
+ padding: `0 ${spacingFluidLarge}`,
5958
+ display: 'grid',
5959
+ gridTemplateColumns: '4rem minmax(0, 1fr) 4rem',
5960
+ alignItems: 'center',
5961
+ gap: spacingFluidSmall,
5962
+ WebkitBackdropFilter: 'blur(8px)',
5963
+ backdropFilter: 'blur(8px)',
5964
+ backgroundColor: frostedGlassBackgroundColor,
5965
+ ...fadeInOutTransition,
5966
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5967
+ backgroundColor: frostedGlassBackgroundColorDark,
5968
+ }),
5969
+ [mediaQueryEnhancedView]: {
5970
+ display: 'none',
5971
+ },
5972
+ },
5973
+ back: {
5974
+ justifySelf: 'flex-start',
5975
+ padding: spacingFluidSmall,
5976
+ marginInlineStart: `calc(${spacingFluidSmall} * -1)`,
5977
+ },
5978
+ heading: {
5979
+ ...headingMediumStyle,
5980
+ margin: 0,
5981
+ padding: 0,
5982
+ overflow: 'hidden',
5983
+ textAlign: 'center',
5984
+ whiteSpace: 'nowrap',
5985
+ textOverflow: 'ellipsis',
5986
+ color: primaryColor,
5987
+ ...prefersColorSchemeDarkMediaQuery(theme, {
5988
+ color: primaryColorDark,
5989
+ }),
5990
+ },
5991
+ content: mergeDeep(getContentJssStyle(), fadeInOutTransition),
5992
+ });
5993
+ };
5613
5994
 
5614
5995
  const headerShadowClass = 'header--shadow';
5615
5996
  const footerShadowClass$1 = 'footer--shadow';
@@ -5781,16 +6162,18 @@ const gutter = `calc(${gridGap} / -2)`;
5781
6162
  const getComponentCss$K = (direction, wrap) => {
5782
6163
  return getCss({
5783
6164
  '@global': {
5784
- ':host': addImportantToEachRule({
6165
+ ':host': {
5785
6166
  display: 'flex',
5786
- flex: 'auto',
5787
- width: 'auto',
5788
- marginLeft: gutter,
5789
- marginRight: gutter,
5790
- ...colorSchemeStyles,
5791
- ...hostHiddenStyles,
5792
- ...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
5793
- }),
6167
+ ...addImportantToEachRule({
6168
+ flex: 'auto',
6169
+ width: 'auto',
6170
+ marginLeft: gutter,
6171
+ marginRight: gutter,
6172
+ ...colorSchemeStyles,
6173
+ ...hostHiddenStyles,
6174
+ ...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
6175
+ }),
6176
+ },
5794
6177
  },
5795
6178
  });
5796
6179
  };
@@ -5953,6 +6336,7 @@ const forceRerenderAnimationStyle = {
5953
6336
  };
5954
6337
  const keyFramesLight = 'rerender-light';
5955
6338
  const keyFramesDark = 'rerender-dark';
6339
+ const cssVariableFilter = '--p-internal-icon-filter';
5956
6340
  const getComponentCss$H = (color, size, theme) => {
5957
6341
  const isColorInherit = color === 'inherit';
5958
6342
  const isSizeInherit = size === 'inherit';
@@ -5973,9 +6357,9 @@ const getComponentCss$H = (color, size, theme) => {
5973
6357
  padding: 0,
5974
6358
  pointerEvents: 'none',
5975
6359
  ...(!isColorInherit && {
5976
- filter: filterMap[theme][color],
6360
+ filter: `var(${cssVariableFilter},${filterMap[theme][color]})`,
5977
6361
  ...prefersColorSchemeDarkMediaQuery(theme, {
5978
- filter: filterMap.dark[color],
6362
+ filter: `var(${cssVariableFilter},${filterMap.dark[color]})`,
5979
6363
  }),
5980
6364
  ...(isHighContrastMode &&
5981
6365
  getSchemedHighContrastMediaQuery({
@@ -6004,7 +6388,7 @@ const getComponentCss$H = (color, size, theme) => {
6004
6388
  };
6005
6389
 
6006
6390
  const mediaQueryMinS$1 = getMediaQueryMin('s');
6007
- const mediaQueryMaxS$1 = getMediaQueryMax('s');
6391
+ const mediaQueryMaxS$2 = getMediaQueryMax('s');
6008
6392
  const getBackgroundColor = (state, theme) => {
6009
6393
  const { infoSoftColor, successSoftColor, errorSoftColor, warningSoftColor } = getThemedColors(theme);
6010
6394
  const colorMap = {
@@ -6018,7 +6402,7 @@ const getBackgroundColor = (state, theme) => {
6018
6402
  };
6019
6403
  const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
6020
6404
  return {
6021
- display: 'grid',
6405
+ // display: 'grid', // NOTE: display property is moved into component styled to not apply !important keyword
6022
6406
  // 2 columns for content and optional close button
6023
6407
  gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
6024
6408
  gap: spacingStaticMedium,
@@ -6039,7 +6423,7 @@ const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
6039
6423
  };
6040
6424
  };
6041
6425
  const getNotificationIconJssStyle = () => ({
6042
- [mediaQueryMaxS$1]: {
6426
+ [mediaQueryMaxS$2]: {
6043
6427
  display: 'none',
6044
6428
  },
6045
6429
  });
@@ -6052,15 +6436,18 @@ const getNotificationContentJssStyle = () => ({
6052
6436
  },
6053
6437
  });
6054
6438
 
6055
- const mediaQueryMaxS = getMediaQueryMax('s');
6439
+ const mediaQueryMaxS$1 = getMediaQueryMax('s');
6056
6440
  const getComponentCss$G = (state, hasAction, hasClose, theme) => {
6057
6441
  return getCss({
6058
6442
  '@global': {
6059
- ':host': addImportantToEachRule({
6060
- ...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
6061
- ...colorSchemeStyles,
6062
- ...hostHiddenStyles,
6063
- }),
6443
+ ':host': {
6444
+ display: 'grid',
6445
+ ...addImportantToEachRule({
6446
+ ...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
6447
+ ...colorSchemeStyles,
6448
+ ...hostHiddenStyles,
6449
+ }),
6450
+ },
6064
6451
  h5: headingSmallStyle,
6065
6452
  p: textSmallStyle,
6066
6453
  'h5,p': {
@@ -6075,7 +6462,7 @@ const getComponentCss$G = (state, hasAction, hasClose, theme) => {
6075
6462
  content: getNotificationContentJssStyle(),
6076
6463
  ...(hasAction && {
6077
6464
  action: {
6078
- [mediaQueryMaxS]: {
6465
+ [mediaQueryMaxS$1]: {
6079
6466
  gridRowStart: 2,
6080
6467
  },
6081
6468
  },
@@ -6356,11 +6743,12 @@ const getComponentCss$A = (isOpen, isFullscreen, hasDismissButton, hasHeader, ha
6356
6743
  return getCss({
6357
6744
  '@global': {
6358
6745
  ':host': {
6746
+ display: 'flex',
6747
+ overflowY: 'auto',
6359
6748
  ...addImportantToEachRule({
6360
6749
  position: 'fixed',
6361
6750
  ...getInsetJssStyle(),
6362
6751
  zIndex: MODAL_Z_INDEX,
6363
- display: 'flex',
6364
6752
  alignItems: 'center',
6365
6753
  justifyContent: 'center',
6366
6754
  flexWrap: 'wrap',
@@ -6376,7 +6764,6 @@ const getComponentCss$A = (isOpen, isFullscreen, hasDismissButton, hasHeader, ha
6376
6764
  ...hostHiddenStyles,
6377
6765
  ...getFrostedGlassBackgroundJssStyles(isOpen, duration, theme),
6378
6766
  }),
6379
- overflowY: 'auto', // overrideable
6380
6767
  },
6381
6768
  '::slotted': addImportantToEachRule(mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
6382
6769
  [`&(.${stretchToFullModalWidthClassName}`]: {
@@ -6939,6 +7326,7 @@ const getListStyles$1 = (isOpen, direction, theme) => {
6939
7326
  };
6940
7327
 
6941
7328
  const mediaQueryMinS = getMediaQueryMin('s');
7329
+ const mediaQueryMaxS = getMediaQueryMax('s');
6942
7330
  // button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
6943
7331
  // and text scale 200% works (almost) on mobile viewports too
6944
7332
  const buttonSize = `clamp(36px, calc(${fontLineHeight} + 10vw - 20px), 40px)`;
@@ -6946,7 +7334,8 @@ const disabledCursorStyle = {
6946
7334
  cursor: 'default',
6947
7335
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
6948
7336
  };
6949
- const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
7337
+ const hiddenStyle = { display: 'none' };
7338
+ const getComponentCss$w = (activePage, pageTotal, showLastPage, theme) => {
6950
7339
  const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
6951
7340
  const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
6952
7341
  return getCss({
@@ -6962,9 +7351,6 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
6962
7351
  display: 'flex',
6963
7352
  justifyContent: 'center',
6964
7353
  userSelect: 'none',
6965
- ...buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
6966
- counterReset: `size ${n}`,
6967
- })),
6968
7354
  },
6969
7355
  ul: {
6970
7356
  display: 'flex',
@@ -6977,13 +7363,43 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
6977
7363
  },
6978
7364
  li: {
6979
7365
  listStyleType: 'none',
6980
- [mediaQueryMinS]: {
6981
- '&:first-child': {
6982
- marginInlineEnd: spacingStaticSmall,
6983
- },
6984
- '&:last-child': {
6985
- marginInlineStart: spacingStaticSmall,
7366
+ ...(pageTotal > 5 && {
7367
+ // max 5 items including ellipsis at the same time on mobile
7368
+ [mediaQueryMaxS]: {
7369
+ [activePage < 4
7370
+ ? // we are at the start, so let's hide start ellipsis and 2 items before end ellipsis
7371
+ '&.ellip-start,&:nth-child(6),&:nth-child(7),&:not(.ellip):nth-child(8)'
7372
+ : pageTotal - activePage < 3
7373
+ ? // we are at the end, so let's hide end ellipsis and 2 items after start ellipsis
7374
+ '&.ellip-end, &.ellip-start + &:not(.current), &.ellip-start + &:not(.current) + &:not(.current)'
7375
+ : // we are at in the middle, so let's hide elements after start and before end ellipsis
7376
+ '&.ellip-start + &:not(.current), &.current-1, &.current\\+1, &.current\\+1 + &:not(.ellip)']: hiddenStyle,
7377
+ // without last page we need to adjust end page handling
7378
+ ...(!showLastPage &&
7379
+ (pageTotal - activePage < 2
7380
+ ? { [`&.current-2${pageTotal - activePage === 1 ? ',&.current-1' : ''}`]: hiddenStyle }
7381
+ : activePage > 2 && {
7382
+ '&.current\\+1,&.current\\+2': hiddenStyle,
7383
+ '&.ellip-end': { display: 'initial' },
7384
+ })),
6986
7385
  },
7386
+ }),
7387
+ [mediaQueryMinS]: {
7388
+ // prev
7389
+ '&:first-child': { marginInlineEnd: spacingStaticSmall },
7390
+ // next
7391
+ '&:last-child': { marginInlineStart: spacingStaticSmall },
7392
+ ...(pageTotal < 8
7393
+ ? { '&.ellip': hiddenStyle }
7394
+ : // max 7 items including ellipsis at the same time on tablet
7395
+ {
7396
+ // we are at the start, so let's hide start ellipsis
7397
+ ...(activePage <= 4 && { '&.ellip-start': hiddenStyle }),
7398
+ // we are at the end, so let's hide end ellipsis
7399
+ ...(pageTotal - activePage < 4 && { '&.ellip-end:nth-last-child(3)': hiddenStyle }),
7400
+ // we are at the end without last page, so let's hide end ellipsis
7401
+ ...(pageTotal - activePage < 3 && { '&.ellip-end:nth-last-child(2)': hiddenStyle }),
7402
+ }),
6987
7403
  },
6988
7404
  },
6989
7405
  span: {
@@ -7032,7 +7448,7 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
7032
7448
  color: primaryColorDark,
7033
7449
  borderColor: primaryColorDark,
7034
7450
  }),
7035
- '&:not(.ellipsis):focus::before': getInsetJssStyle(-6),
7451
+ '&:not(.ellipsis):focus::before': getInsetJssStyle(-6), // adjust for missing 2px border
7036
7452
  },
7037
7453
  '&[aria-disabled]': {
7038
7454
  ...disabledCursorStyle,
@@ -7239,13 +7655,13 @@ const getComponentCss$u = (direction, isNative, theme) => {
7239
7655
  return getCss({
7240
7656
  '@global': {
7241
7657
  ':host': {
7658
+ display: 'inline-block',
7659
+ verticalAlign: 'top',
7242
7660
  ...addImportantToEachRule({
7243
7661
  position: 'relative',
7244
- display: 'inline-block',
7245
7662
  ...colorSchemeStyles,
7246
7663
  ...hostHiddenStyles,
7247
7664
  }),
7248
- verticalAlign: 'top',
7249
7665
  },
7250
7666
  p: {
7251
7667
  ...textSmallStyle,
@@ -7647,11 +8063,13 @@ const getComponentCss$r = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
7647
8063
  const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
7648
8064
  return getCss({
7649
8065
  '@global': {
7650
- ':host': addImportantToEachRule({
8066
+ ':host': {
7651
8067
  display: 'block',
7652
- outline: 0,
7653
- ...hostHiddenStyles,
7654
- }),
8068
+ ...addImportantToEachRule({
8069
+ outline: 0,
8070
+ ...hostHiddenStyles,
8071
+ }),
8072
+ },
7655
8073
  // All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
7656
8074
  button: {
7657
8075
  position: 'relative',
@@ -7733,16 +8151,18 @@ const getComponentCss$q = (maxWidth, columns) => {
7733
8151
  maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
7734
8152
  return getCss({
7735
8153
  '@global': {
7736
- ':host': addImportantToEachRule({
8154
+ ':host': {
7737
8155
  display: 'grid',
7738
- gridAutoRows: '1fr',
7739
- ...buildResponsiveStyles(columns, (col) => ({
7740
- gridTemplateColumns: col === 'auto' ? `repeat(auto-fit, ${maxWidth}px)` : `repeat(${col}, minmax(0, 1fr))`,
7741
- })),
7742
- gap: '6px',
7743
- ...colorSchemeStyles,
7744
- ...hostHiddenStyles,
7745
- }),
8156
+ ...addImportantToEachRule({
8157
+ gridAutoRows: '1fr',
8158
+ ...buildResponsiveStyles(columns, (col) => ({
8159
+ gridTemplateColumns: col === 'auto' ? `repeat(auto-fit, ${maxWidth}px)` : `repeat(${col}, minmax(0, 1fr))`,
8160
+ })),
8161
+ gap: '6px',
8162
+ ...colorSchemeStyles,
8163
+ ...hostHiddenStyles,
8164
+ }),
8165
+ },
7746
8166
  },
7747
8167
  });
7748
8168
  };
@@ -8022,7 +8442,7 @@ const getListStyles = (direction, theme) => {
8022
8442
  },
8023
8443
  };
8024
8444
  };
8025
- const getComponentCss$p = (direction, isOpen, state, disabled, filter, theme) => {
8445
+ const getComponentCss$p = (direction, isOpen, state, disabled, filter, isNativePopover, theme) => {
8026
8446
  return getCss(
8027
8447
  // merge because of global styles
8028
8448
  mergeDeep({
@@ -8035,6 +8455,23 @@ const getComponentCss$p = (direction, isOpen, state, disabled, filter, theme) =>
8035
8455
  'sr-text': {
8036
8456
  display: 'none',
8037
8457
  },
8458
+ ...(isNativePopover && {
8459
+ popover: {
8460
+ position: 'absolute',
8461
+ bottom: 'auto',
8462
+ border: 'none',
8463
+ background: 'none',
8464
+ pointerEvents: 'all',
8465
+ padding: 0,
8466
+ margin: 0,
8467
+ overflow: 'initial',
8468
+ height: 'auto',
8469
+ maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`,
8470
+ '&:-internal-popover-in-top-layer::backdrop': {
8471
+ display: 'none',
8472
+ },
8473
+ },
8474
+ }),
8038
8475
  }, filter
8039
8476
  ? getFilterStyles(direction, isOpen, state, disabled, theme)
8040
8477
  : getButtonStyles(direction, isOpen, state, theme), isOpen && getListStyles(direction, theme)));
@@ -8114,12 +8551,14 @@ const getComponentCss$n = (size, theme) => {
8114
8551
  const lastHighContrastStrokeColor = isHighContrastMode && canvasColor;
8115
8552
  return getCss({
8116
8553
  '@global': {
8117
- ':host': addImportantToEachRule({
8554
+ ':host': {
8118
8555
  display: 'inline-flex',
8119
- verticalAlign: 'top',
8120
- ...colorSchemeStyles,
8121
- ...hostHiddenStyles,
8122
- }),
8556
+ ...addImportantToEachRule({
8557
+ verticalAlign: 'top',
8558
+ ...colorSchemeStyles,
8559
+ ...hostHiddenStyles,
8560
+ }),
8561
+ },
8123
8562
  svg: {
8124
8563
  display: 'block',
8125
8564
  fill: 'none',
@@ -8358,16 +8797,20 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
8358
8797
  const { focusColor: focusColorDark } = getThemedColors('dark');
8359
8798
  return getCss({
8360
8799
  '@global': {
8361
- ':host': addImportantToEachRule({
8362
- outline: 0,
8363
- ...colorSchemeStyles,
8364
- ...hostHiddenStyles,
8800
+ ':host': {
8365
8801
  ...buildResponsiveStyles(stretch, (stretchValue) => ({
8366
8802
  display: stretchValue ? 'block' : 'inline-block',
8367
- width: stretchValue ? '100%' : 'auto',
8368
- ...(!stretchValue && { verticalAlign: 'top' }),
8369
8803
  })),
8370
- }),
8804
+ ...addImportantToEachRule({
8805
+ outline: 0,
8806
+ ...colorSchemeStyles,
8807
+ ...hostHiddenStyles,
8808
+ ...buildResponsiveStyles(stretch, (stretchValue) => ({
8809
+ width: stretchValue ? '100%' : 'auto',
8810
+ ...(!stretchValue && { verticalAlign: 'top' }),
8811
+ })),
8812
+ }),
8813
+ },
8371
8814
  },
8372
8815
  root: {
8373
8816
  display: 'flex',
@@ -8478,10 +8921,10 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
8478
8921
  const getComponentCss$j = () => {
8479
8922
  return getCss({
8480
8923
  '@global': {
8481
- ':host': addImportantToEachRule({
8924
+ ':host': {
8482
8925
  display: 'table-row-group',
8483
- ...hostHiddenStyles,
8484
- }),
8926
+ ...addImportantToEachRule(hostHiddenStyles),
8927
+ },
8485
8928
  },
8486
8929
  });
8487
8930
  };
@@ -8490,14 +8933,14 @@ const getComponentCss$i = (multiline) => {
8490
8933
  return getCss({
8491
8934
  '@global': {
8492
8935
  ':host': {
8936
+ display: 'table-cell',
8937
+ verticalAlign: 'middle',
8493
8938
  ...addImportantToEachRule({
8494
- display: 'table-cell',
8495
8939
  padding: spacingFluidSmall,
8496
8940
  margin: 0,
8497
8941
  whiteSpace: multiline ? 'normal' : 'nowrap',
8498
8942
  ...hostHiddenStyles,
8499
8943
  }),
8500
- verticalAlign: 'middle',
8501
8944
  },
8502
8945
  },
8503
8946
  });
@@ -8516,17 +8959,19 @@ const getComponentCss$h = (theme) => {
8516
8959
  const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, } = doGetThemedColors('dark');
8517
8960
  return getCss({
8518
8961
  '@global': {
8519
- ':host': addImportantToEachRule({
8962
+ ':host': {
8520
8963
  display: 'block',
8521
- ...textSmallStyle,
8522
- color: primaryColor,
8523
- textAlign: 'start',
8524
- ...colorSchemeStyles,
8525
- ...hostHiddenStyles,
8526
- ...prefersColorSchemeDarkMediaQuery(theme, {
8527
- color: primaryColorDark,
8964
+ ...addImportantToEachRule({
8965
+ ...textSmallStyle,
8966
+ color: primaryColor,
8967
+ textAlign: 'start',
8968
+ ...colorSchemeStyles,
8969
+ ...hostHiddenStyles,
8970
+ ...prefersColorSchemeDarkMediaQuery(theme, {
8971
+ color: primaryColorDark,
8972
+ }),
8528
8973
  }),
8529
- }),
8974
+ },
8530
8975
  '::slotted(*)': addImportantToEachRule({
8531
8976
  [cssVariableTableHoverColor]: hoverColor,
8532
8977
  [cssVariableTableBorderColor]: contrastLowColor,
@@ -8563,13 +9008,15 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
8563
9008
  const sortable = isSortable(active, direction);
8564
9009
  return getCss({
8565
9010
  '@global': {
8566
- ':host': addImportantToEachRule({
9011
+ ':host': {
8567
9012
  display: 'table-cell',
8568
- padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
8569
- verticalAlign: 'bottom',
8570
- whiteSpace: multiline ? 'normal' : 'nowrap',
8571
- ...hostHiddenStyles,
8572
- }),
9013
+ ...addImportantToEachRule({
9014
+ padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
9015
+ verticalAlign: 'bottom',
9016
+ whiteSpace: multiline ? 'normal' : 'nowrap',
9017
+ ...hostHiddenStyles,
9018
+ }),
9019
+ },
8573
9020
  ...(sortable
8574
9021
  ? {
8575
9022
  button: {
@@ -8643,10 +9090,10 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
8643
9090
  const getComponentCss$f = () => {
8644
9091
  return getCss({
8645
9092
  '@global': {
8646
- ':host': addImportantToEachRule({
9093
+ ':host': {
8647
9094
  display: 'table-row',
8648
- ...hostHiddenStyles,
8649
- }),
9095
+ ...addImportantToEachRule(hostHiddenStyles),
9096
+ },
8650
9097
  },
8651
9098
  });
8652
9099
  };
@@ -8654,13 +9101,15 @@ const getComponentCss$f = () => {
8654
9101
  const getComponentCss$e = () => {
8655
9102
  return getCss({
8656
9103
  '@global': {
8657
- ':host': addImportantToEachRule({
9104
+ ':host': {
8658
9105
  display: 'table-header-group',
8659
- fontSize: fontSizeTextXSmall,
8660
- lineHeight: fontLineHeight,
8661
- fontWeight: fontWeightSemiBold,
8662
- ...hostHiddenStyles,
8663
- }),
9106
+ ...addImportantToEachRule({
9107
+ fontSize: fontSizeTextXSmall,
9108
+ lineHeight: fontLineHeight,
9109
+ fontWeight: fontWeightSemiBold,
9110
+ ...hostHiddenStyles,
9111
+ }),
9112
+ },
8664
9113
  },
8665
9114
  });
8666
9115
  };
@@ -8668,19 +9117,21 @@ const getComponentCss$e = () => {
8668
9117
  const getComponentCss$d = () => {
8669
9118
  return getCss({
8670
9119
  '@global': {
8671
- ':host': addImportantToEachRule({
9120
+ ':host': {
8672
9121
  display: 'table-row',
8673
- borderTop: `1px solid var(${cssVariableTableBorderColor})`,
8674
- borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
8675
- transition: getTransition('background'),
8676
- ...hostHiddenStyles,
8677
- ...hoverMediaQuery({
8678
- '&(:hover)': {
8679
- // ...frostedGlassStyle, // will result in not smooth transition when applied
8680
- background: `var(${cssVariableTableHoverColor})`,
8681
- },
9122
+ ...addImportantToEachRule({
9123
+ borderTop: `1px solid var(${cssVariableTableBorderColor})`,
9124
+ borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
9125
+ transition: getTransition('background'),
9126
+ ...hostHiddenStyles,
9127
+ ...hoverMediaQuery({
9128
+ '&(:hover)': {
9129
+ // ...frostedGlassStyle, // will result in not smooth transition when applied
9130
+ background: `var(${cssVariableTableHoverColor})`,
9131
+ },
9132
+ }),
8682
9133
  }),
8683
- }),
9134
+ },
8684
9135
  },
8685
9136
  });
8686
9137
  };
@@ -8824,26 +9275,28 @@ const getComponentCss$b = (theme) => {
8824
9275
  const { primaryColor: primaryColorDark, focusColor: focusColorDark } = getThemedColors('dark');
8825
9276
  return getCss({
8826
9277
  '@global': {
8827
- ':host': addImportantToEachRule({
9278
+ ':host': {
8828
9279
  display: 'block',
8829
- position: 'relative',
8830
- color: primaryColor,
8831
- outline: 0,
8832
- ...hostHiddenStyles,
8833
- ...prefersColorSchemeDarkMediaQuery(theme, {
8834
- color: primaryColorDark,
8835
- }),
8836
- '&(:focus:focus-visible)::before': {
8837
- content: '""',
8838
- position: 'absolute',
8839
- ...getInsetJssStyle(-4),
8840
- border: `${borderWidthBase} solid ${focusColor}`,
8841
- borderRadius: borderRadiusSmall,
9280
+ ...addImportantToEachRule({
9281
+ position: 'relative',
9282
+ color: primaryColor,
9283
+ outline: 0,
9284
+ ...hostHiddenStyles,
8842
9285
  ...prefersColorSchemeDarkMediaQuery(theme, {
8843
- borderColor: focusColorDark,
9286
+ color: primaryColorDark,
8844
9287
  }),
8845
- },
8846
- }),
9288
+ '&(:focus:focus-visible)::before': {
9289
+ content: '""',
9290
+ position: 'absolute',
9291
+ ...getInsetJssStyle(-4),
9292
+ border: `${borderWidthBase} solid ${focusColor}`,
9293
+ borderRadius: borderRadiusSmall,
9294
+ ...prefersColorSchemeDarkMediaQuery(theme, {
9295
+ borderColor: focusColorDark,
9296
+ }),
9297
+ },
9298
+ }),
9299
+ },
8847
9300
  },
8848
9301
  });
8849
9302
  };
@@ -9081,14 +9534,14 @@ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
9081
9534
 
9082
9535
  const cssVariableInputPaddingStart = '--p-internal-text-field-input-padding-start';
9083
9536
  const cssVariableInputPaddingEnd = '--p-internal-text-field-input-padding-end';
9084
- const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, theme) => {
9537
+ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
9085
9538
  const isSearch = isType(inputType, 'search');
9086
9539
  const isPassword = isType(inputType, 'password');
9087
9540
  const isNumber = isType(inputType, 'number');
9088
9541
  const isCalendar = isType(inputType, 'date') || isType(inputType, 'week') || isType(inputType, 'month');
9089
9542
  const isTime = isType(inputType, 'time');
9090
9543
  const isSearchOrPassword = isSearch || (isPassword && showPasswordToggle);
9091
- const isSearchWithoutForm = isSearch && !isWithinForm;
9544
+ const isSearchWithoutFormOrSubmitButton = isSearch && (!isWithinForm || !hasSubmitButton);
9092
9545
  const isSearchWithForm = isSearch && isWithinForm;
9093
9546
  const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
9094
9547
  return getCss({
@@ -9121,11 +9574,11 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
9121
9574
  }),
9122
9575
  },
9123
9576
  root: {
9124
- [cssVariableInputPaddingStart]: isSearchWithoutForm
9577
+ [cssVariableInputPaddingStart]: isSearchWithoutFormOrSubmitButton
9125
9578
  ? getCalculatedFormElementPaddingHorizontal(1)
9126
9579
  : formElementPaddingHorizontal,
9127
9580
  [cssVariableInputPaddingEnd]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
9128
- ? getCalculatedFormElementPaddingHorizontal(isSearchWithForm ? 2 : 1)
9581
+ ? getCalculatedFormElementPaddingHorizontal(isSearchWithForm && hasSubmitButton ? 2 : 1)
9129
9582
  : formElementPaddingHorizontal,
9130
9583
  display: 'grid',
9131
9584
  gap: spacingStaticXSmall,
@@ -9146,7 +9599,7 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
9146
9599
  },
9147
9600
  },
9148
9601
  }),
9149
- ...(isSearchWithoutForm && {
9602
+ ...(isSearchWithoutFormOrSubmitButton && {
9150
9603
  // TODO: extract for multi-select, select-wrapper and text-field (not gridArea and placeSelf) like done for unit class
9151
9604
  icon: {
9152
9605
  gridArea: '1/2',
@@ -9233,25 +9686,29 @@ const getComponentCss$6 = (type, theme) => {
9233
9686
 
9234
9687
  const getComponentCss$5 = () => {
9235
9688
  return getCss({
9236
- '@global': addImportantToEachRule({
9689
+ '@global': {
9237
9690
  ':host': {
9238
9691
  display: 'grid',
9239
- gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
9240
- columnGap: spacingStaticMedium,
9241
- font: 'inherit',
9242
- color: 'inherit',
9243
- ...hostHiddenStyles,
9244
- },
9245
- '::slotted(*)': {
9246
- [cssVariableUnorderedGridColumn]: '.625rem',
9247
- [cssVariableUnorderedPseudoContent]: '"–"',
9248
- [cssVariableOrderedGridColumn]: '2rem',
9249
- [cssVariableOrderedPseudoSuffix]: '""', // don't show ::before suffix "." (nested ordered list)
9250
- },
9251
- '::slotted(*:last-child)': {
9252
- gridColumn: 2,
9692
+ ...addImportantToEachRule({
9693
+ gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
9694
+ columnGap: spacingStaticMedium,
9695
+ font: 'inherit',
9696
+ color: 'inherit',
9697
+ ...hostHiddenStyles,
9698
+ }),
9253
9699
  },
9254
- }),
9700
+ ...addImportantToEachRule({
9701
+ '::slotted(*)': {
9702
+ [cssVariableUnorderedGridColumn]: '.625rem',
9703
+ [cssVariableUnorderedPseudoContent]: '"–"',
9704
+ [cssVariableOrderedGridColumn]: '2rem',
9705
+ [cssVariableOrderedPseudoSuffix]: '""', // don't show ::before suffix "." (nested ordered list)
9706
+ },
9707
+ '::slotted(*:last-child)': {
9708
+ gridColumn: 2,
9709
+ },
9710
+ }),
9711
+ },
9255
9712
  });
9256
9713
  };
9257
9714
 
@@ -9440,4 +9897,4 @@ const getComponentCss = (size, theme) => {
9440
9897
  });
9441
9898
  };
9442
9899
 
9443
- export { getComponentCss$10 as getAccordionCss, getComponentCss$$ as getBannerCss, getComponentCss$X as getButtonCss, getComponentCss$_ as getButtonGroupCss, getComponentCss$Z as getButtonPureCss, getComponentCss$Y as getButtonTileCss, getComponentCss$W as getCarouselCss, getComponentCss$V as getCheckboxWrapperCss, getComponentCss$U as getContentWrapperCss, getComponentCss$T as getCrestCss, getComponentCss$S as getDisplayCss, getComponentCss$R as getDividerCss, getComponentCss$P as getFieldsetCss, getComponentCss$Q as getFieldsetWrapperCss, getComponentCss$N as getFlexCss, getComponentCss$O as getFlexItemCss, getComponentCss$M as getFlyoutCss, getFunctionalComponentLabelStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$K as getGridCss, getComponentCss$L as getGridItemCss, getComponentCss$J as getHeadingCss, getComponentCss$I as getHeadlineCss, getComponentCss$H as getIconCss, getComponentCss$G as getInlineNotificationCss, getComponentCss$E as getLinkCss, getComponentCss$F as getLinkPureCss, getComponentCss$E as getLinkSocialCss, getComponentCss$C as getLinkTileCss, getComponentCss$D as getLinkTileModelSignatureCss, getComponentCss$B as getMarqueCss, getComponentCss$A as getModalCss, getComponentCss$z as getModelSignatureCss, getComponentCss$x as getMultiSelectCss, getComponentCss$y as getMultiSelectOptionCss, getComponentCss$w as getPaginationCss, getComponentCss$v as getPinCodeCss, getComponentCss$u as getPopoverCss, getComponentCss$t as getRadioButtonWrapperCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$p as getSelectWrapperDropdownCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
9900
+ export { getComponentCss$12 as getAccordionCss, getComponentCss$11 as getBannerCss, getComponentCss$Z as getButtonCss, getComponentCss$10 as getButtonGroupCss, getComponentCss$$ as getButtonPureCss, getComponentCss$_ as getButtonTileCss, getComponentCss$Y as getCarouselCss, getComponentCss$X as getCheckboxWrapperCss, getComponentCss$W as getContentWrapperCss, getComponentCss$V as getCrestCss, getComponentCss$U as getDisplayCss, getComponentCss$T as getDividerCss, getComponentCss$R as getFieldsetCss, getComponentCss$S as getFieldsetWrapperCss, getComponentCss$P as getFlexCss, getComponentCss$Q as getFlexItemCss, getComponentCss$M as getFlyoutCss, getComponentCss$O as getFlyoutNavigationCss, getComponentCss$N as getFlyoutNavigationItemCss, getFunctionalComponentLabelStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$K as getGridCss, getComponentCss$L as getGridItemCss, getComponentCss$J as getHeadingCss, getComponentCss$I as getHeadlineCss, getComponentCss$H as getIconCss, getComponentCss$G as getInlineNotificationCss, getComponentCss$E as getLinkCss, getComponentCss$F as getLinkPureCss, getComponentCss$E as getLinkSocialCss, getComponentCss$C as getLinkTileCss, getComponentCss$D as getLinkTileModelSignatureCss, getComponentCss$B as getMarqueCss, getComponentCss$A as getModalCss, getComponentCss$z as getModelSignatureCss, getComponentCss$x as getMultiSelectCss, getComponentCss$y as getMultiSelectOptionCss, getComponentCss$w as getPaginationCss, getComponentCss$v as getPinCodeCss, getComponentCss$u as getPopoverCss, getComponentCss$t as getRadioButtonWrapperCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$p as getSelectWrapperDropdownCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };