@porsche-design-system/components-react 4.0.0-rc.1 → 4.0.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 (161) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/OSS_NOTICE +195 -855
  3. package/README.md +0 -5
  4. package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
  5. package/cjs/lib/components/segmented-control.wrapper.cjs +3 -3
  6. package/esm/hooks.mjs +1 -1
  7. package/esm/lib/components/segmented-control.wrapper.d.ts +10 -0
  8. package/esm/lib/components/segmented-control.wrapper.mjs +3 -3
  9. package/esm/lib/types.d.ts +29 -25
  10. package/global-styles/cn/index.css +42 -39
  11. package/global-styles/color-scheme.css +24 -24
  12. package/global-styles/index.css +42 -39
  13. package/global-styles/variables.css +18 -15
  14. package/package.json +3 -3
  15. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +497 -249
  16. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +47 -12
  17. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.cjs +4 -4
  18. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
  19. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +14 -9
  20. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
  21. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +3 -2
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +13 -9
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +3 -1
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +4 -5
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/notification-base.cjs +10 -0
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +5 -2
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -2
  34. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +4 -2
  35. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
  36. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +8 -4
  37. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +6 -5
  38. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
  39. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -3
  40. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
  41. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
  42. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
  43. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +4 -24
  44. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
  45. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +4 -2
  46. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +497 -250
  47. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +45 -13
  48. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
  49. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.mjs +4 -4
  50. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
  51. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +14 -9
  52. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
  53. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
  54. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
  55. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +5 -4
  56. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
  57. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
  58. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +13 -9
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +4 -2
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +5 -6
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/notification-base.mjs +8 -0
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +6 -3
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -2
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +5 -3
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +10 -6
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +7 -6
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +1 -3
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +4 -24
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +5 -3
  83. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +10 -0
  84. package/ssr/esm/lib/dsr-components/accordion.d.ts +1 -0
  85. package/ssr/esm/lib/dsr-components/banner.d.ts +6 -2
  86. package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
  87. package/ssr/esm/lib/dsr-components/button-tile.d.ts +1 -0
  88. package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
  89. package/ssr/esm/lib/dsr-components/canvas.d.ts +1 -0
  90. package/ssr/esm/lib/dsr-components/carousel.d.ts +1 -0
  91. package/ssr/esm/lib/dsr-components/checkbox.d.ts +1 -0
  92. package/ssr/esm/lib/dsr-components/crest.d.ts +1 -0
  93. package/ssr/esm/lib/dsr-components/display.d.ts +1 -0
  94. package/ssr/esm/lib/dsr-components/divider.d.ts +1 -0
  95. package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +1 -0
  96. package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +1 -0
  97. package/ssr/esm/lib/dsr-components/drilldown.d.ts +1 -0
  98. package/ssr/esm/lib/dsr-components/fieldset.d.ts +1 -0
  99. package/ssr/esm/lib/dsr-components/flag.d.ts +1 -0
  100. package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
  101. package/ssr/esm/lib/dsr-components/heading.d.ts +1 -0
  102. package/ssr/esm/lib/dsr-components/icon.d.ts +1 -0
  103. package/ssr/esm/lib/dsr-components/inline-notification.d.ts +4 -2
  104. package/ssr/esm/lib/dsr-components/input-base.d.ts +1 -0
  105. package/ssr/esm/lib/dsr-components/input-date.d.ts +1 -0
  106. package/ssr/esm/lib/dsr-components/input-email.d.ts +1 -0
  107. package/ssr/esm/lib/dsr-components/input-month.d.ts +1 -0
  108. package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
  109. package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
  110. package/ssr/esm/lib/dsr-components/input-search.d.ts +1 -0
  111. package/ssr/esm/lib/dsr-components/input-tel.d.ts +1 -0
  112. package/ssr/esm/lib/dsr-components/input-text.d.ts +1 -0
  113. package/ssr/esm/lib/dsr-components/input-time.d.ts +1 -0
  114. package/ssr/esm/lib/dsr-components/input-url.d.ts +1 -0
  115. package/ssr/esm/lib/dsr-components/input-week.d.ts +1 -0
  116. package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
  117. package/ssr/esm/lib/dsr-components/link-pure.d.ts +1 -0
  118. package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +1 -0
  119. package/ssr/esm/lib/dsr-components/link-tile.d.ts +1 -0
  120. package/ssr/esm/lib/dsr-components/link.d.ts +1 -0
  121. package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
  122. package/ssr/esm/lib/dsr-components/model-signature.d.ts +1 -0
  123. package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +1 -0
  124. package/ssr/esm/lib/dsr-components/multi-select.d.ts +1 -0
  125. package/ssr/esm/lib/dsr-components/notification-base.d.ts +14 -0
  126. package/ssr/esm/lib/dsr-components/optgroup.d.ts +1 -0
  127. package/ssr/esm/lib/dsr-components/pagination.d.ts +1 -0
  128. package/ssr/esm/lib/dsr-components/pin-code.d.ts +1 -0
  129. package/ssr/esm/lib/dsr-components/popover.d.ts +1 -0
  130. package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +1 -0
  131. package/ssr/esm/lib/dsr-components/radio-group.d.ts +1 -0
  132. package/ssr/esm/lib/dsr-components/scroller.d.ts +1 -0
  133. package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +1 -0
  134. package/ssr/esm/lib/dsr-components/segmented-control.d.ts +1 -0
  135. package/ssr/esm/lib/dsr-components/select-option.d.ts +1 -0
  136. package/ssr/esm/lib/dsr-components/select.d.ts +1 -0
  137. package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
  138. package/ssr/esm/lib/dsr-components/spinner.d.ts +1 -0
  139. package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +1 -0
  140. package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +1 -0
  141. package/ssr/esm/lib/dsr-components/switch.d.ts +1 -0
  142. package/ssr/esm/lib/dsr-components/table-body.d.ts +1 -0
  143. package/ssr/esm/lib/dsr-components/table-cell.d.ts +1 -0
  144. package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +1 -0
  145. package/ssr/esm/lib/dsr-components/table-head-row.d.ts +1 -0
  146. package/ssr/esm/lib/dsr-components/table-head.d.ts +1 -0
  147. package/ssr/esm/lib/dsr-components/table-row.d.ts +1 -0
  148. package/ssr/esm/lib/dsr-components/table.d.ts +1 -0
  149. package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +1 -0
  150. package/ssr/esm/lib/dsr-components/tabs-item.d.ts +1 -0
  151. package/ssr/esm/lib/dsr-components/tabs.d.ts +1 -0
  152. package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +1 -0
  153. package/ssr/esm/lib/dsr-components/tag.d.ts +1 -0
  154. package/ssr/esm/lib/dsr-components/text-list-item.d.ts +1 -0
  155. package/ssr/esm/lib/dsr-components/text-list.d.ts +1 -0
  156. package/ssr/esm/lib/dsr-components/text.d.ts +1 -0
  157. package/ssr/esm/lib/dsr-components/textarea.d.ts +1 -0
  158. package/ssr/esm/lib/dsr-components/toast.d.ts +1 -0
  159. package/ssr/esm/lib/dsr-components/wordmark.d.ts +1 -0
  160. package/ssr/esm/lib/types.d.ts +29 -25
  161. package/tailwindcss/index.css +277 -78
@@ -64,6 +64,8 @@ const colorInfo = 'var(--p-color-info)';
64
64
 
65
65
  const colorInfoFrosted = 'var(--p-color-info-frosted)';
66
66
 
67
+ const colorInfoFrostedSoft = 'var(--p-color-info-frosted-soft)';
68
+
67
69
  const colorInfoMedium = 'var(--p-color-info-medium)';
68
70
 
69
71
  const colorSuccess = 'var(--p-color-success)';
@@ -80,6 +82,8 @@ const colorWarning = 'var(--p-color-warning)';
80
82
 
81
83
  const colorWarningFrosted = 'var(--p-color-warning-frosted)';
82
84
 
85
+ const colorWarningFrostedSoft = 'var(--p-color-warning-frosted-soft)';
86
+
83
87
  const colorWarningMedium = 'var(--p-color-warning-medium)';
84
88
 
85
89
  const fontPorscheNext$1 = 'var(--p-font-porsche-next)';
@@ -136,6 +140,8 @@ const spacingFluidSm = 'var(--p-spacing-fluid-sm)';
136
140
 
137
141
  const spacingFluidXs = 'var(--p-spacing-fluid-xs)';
138
142
 
143
+ const spacingStatic2Xs = 'var(--p-spacing-static-2xs)';
144
+
139
145
  const spacingStaticMd = 'var(--p-spacing-static-md)';
140
146
 
141
147
  const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
@@ -3769,7 +3775,7 @@ const OPTION_LIST_SAFE_ZONE = 6;
3769
3775
 
3770
3776
  const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
3771
3777
 
3772
- const prefix = `[Porsche Design System v${"4.0.0-rc.1"}]` // this part isn't covered by unit tests
3778
+ const prefix = `[Porsche Design System v${"4.0.0"}]` // this part isn't covered by unit tests
3773
3779
  ;
3774
3780
  const consoleError = (...messages) => {
3775
3781
  console.error(prefix, ...messages);
@@ -4135,105 +4141,33 @@ const weightMap = {
4135
4141
  bold: fontWeightBold,
4136
4142
  };
4137
4143
 
4138
- /**
4139
- * @css-variable {"name": "--p-banner-max-w", "description": "Defines the maximum width of the Banner.", "defaultValue": "100ch"}
4140
- */
4141
- const cssVarMaxWidth = '--p-banner-max-w';
4142
- /**
4143
- * @css-variable {"name": "--p-banner-top", "description": "Defines the distance from the top of the viewport. Only takes effect when the `position` property is set to `top` (at the respective breakpoint).", "defaultValue": "56px"}
4144
- */
4145
- const cssVarTop = '--p-banner-top';
4146
- /**
4147
- * @css-variable {"name": "--p-banner-bottom", "description": "Defines the distance from the bottom of the viewport. Only takes effect when the `position` property is set to `bottom` (at the respective breakpoint).", "defaultValue": "56px"}
4148
- */
4149
- const cssVarBottom = '--p-banner-bottom';
4150
- /**
4151
- * @css-variable {"name": "--p-banner-inset-x", "description": "Defines the horizontal offset of the Banner from the edges of the viewport.", "defaultValue": "max(22px, 10.625vw - 12px)"}
4152
- */
4153
- const cssVarInsetX = '--p-banner-inset-x';
4154
- const cssVarPositionTop = '--p-banner-position-top'; // deprecated (aliased)
4155
- const cssVarPositionBottom = '--p-banner-position-bottom'; // deprecated (aliased)
4156
- const topBottomFallback = '56px';
4157
- const cssVariableZIndex = '--p-internal-banner-z-index';
4158
- const getComponentCss$18 = (isOpen, position, state, hasDismissButton) => {
4159
- const duration = isOpen ? 'moderate' : 'short';
4160
- const easing = isOpen ? 'in' : 'out';
4161
- const transition = `visibility 0s linear var(${cssVariableTransitionDuration},${isOpen ? '0s' : motionDurationMap[duration]}),${getTransition('transform', duration, easing)}`;
4162
- return getCss({
4144
+ const getFunctionalComponentNotificationBaseStyles = (state, hasAction, hasDismissButton, hasHeadingOrHeadingSlot) => {
4145
+ return {
4163
4146
  '@global': {
4164
- ':host': {
4165
- display: 'contents',
4166
- ...addImportantToEachRule({
4167
- ...hostHiddenStyles,
4168
- }),
4169
- },
4170
- ...preventFoucOfNestedElementsStyles,
4171
- 'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
4172
- all: 'unset',
4173
- display: 'block',
4174
- gridArea: '1/2',
4175
- font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4176
- color: colorPrimary,
4177
- },
4178
- 'slot[name="description"],p': {
4147
+ ...(hasHeadingOrHeadingSlot && {
4148
+ 'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
4149
+ all: 'unset',
4150
+ gridArea: '1/2',
4151
+ font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4152
+ color: colorPrimary,
4153
+ },
4154
+ }),
4155
+ 'slot:not([name]),slot[name="description"],p': {
4179
4156
  all: 'unset',
4180
- display: 'block',
4181
- gridArea: '2/2',
4182
- marginTop: spacingStaticXs$1,
4157
+ gridArea: hasHeadingOrHeadingSlot ? '2/2' : '1/2',
4158
+ marginTop: hasHeadingOrHeadingSlot ? spacingStaticXs$1 : '0px',
4183
4159
  font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4184
4160
  color: colorPrimary,
4185
4161
  },
4186
- '[popover]': {
4187
- all: 'unset',
4188
- position: 'fixed',
4189
- zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, // Fallback for browsers lacking `transition-behavior: allow-discrete` — keeps the banner visible during fade-out after leaving the top layer.
4190
- ...buildResponsiveStyles(position, (v) => ({
4191
- ...(v === 'top' && {
4192
- insetBlock: `var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback})) auto`,
4193
- ...(!isOpen && {
4194
- transform: `translate3d(-50%,calc(-100% - var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback}))),0)`,
4195
- }),
4196
- }),
4197
- ...(v === 'bottom' && {
4198
- insetBlock: `auto var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback}))`,
4199
- ...(!isOpen && {
4200
- transform: `translate3d(-50%,calc(var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback})) + 100%),0)`,
4201
- }),
4202
- }),
4203
- })),
4204
- left: '50vw',
4205
- width: `min(calc(100vw - 2 * var(${cssVarInsetX},${gridExtendedOffsetBase})),var(${cssVarMaxWidth},100ch))`,
4206
- '&:popover-open': {
4207
- overlay: 'auto',
4208
- },
4209
- '&::backdrop': {
4210
- display: 'none',
4211
- },
4212
- visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
4213
- pointerEvents: 'none', // element can't be interacted with mouse
4214
- ...(isOpen && {
4215
- visibility: 'inherit',
4216
- pointerEvents: 'inherit',
4217
- transform: 'translate3d(-50%,0,0)',
4218
- }),
4219
- transition,
4220
- // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4221
- '@supports (transition-behavior: allow-discrete)': {
4222
- transition: `${transition},${getTransition('overlay', duration, easing)} allow-discrete`,
4223
- },
4224
- },
4225
4162
  },
4226
- banner: {
4163
+ notification: {
4227
4164
  display: 'grid',
4228
- gridTemplateColumns: `auto minmax(0, 1fr) auto auto`,
4229
- padding: spacingStaticMd,
4165
+ gridTemplate: `repeat(3, auto) / auto minmax(0, 1fr) repeat(2, auto)`,
4166
+ padding: `calc(${spacingStaticSm$1} + ${spacingFluidSm})`,
4230
4167
  borderRadius: `var(${legacyRadiusMedium}, ${radius2Xl})`,
4231
4168
  background: notificationBackgroundMap[state],
4232
4169
  WebkitBackdropFilter: blurFrosted,
4233
4170
  backdropFilter: blurFrosted,
4234
- boxShadow: shadowLg,
4235
- opacity: isOpen ? 1 : 0, // it's necessary to spit up opacity transition from [popover], otherwise frosted effect won't render
4236
- transition: getTransition('opacity', duration, easing),
4237
4171
  ...forcedColorsMediaQuery({
4238
4172
  outline: '2px solid CanvasText',
4239
4173
  outlineOffset: '-2px',
@@ -4241,7 +4175,7 @@ const getComponentCss$18 = (isOpen, position, state, hasDismissButton) => {
4241
4175
  '&::before': {
4242
4176
  [getMediaQueryMin('s')]: {
4243
4177
  gridArea: '1/1',
4244
- placeSelf: 'center',
4178
+ placeSelf: hasHeadingOrHeadingSlot ? 'center' : 'flex-start',
4245
4179
  content: '""',
4246
4180
  width: '1.5rem',
4247
4181
  height: '1.5rem',
@@ -4257,12 +4191,107 @@ const getComponentCss$18 = (isOpen, position, state, hasDismissButton) => {
4257
4191
  },
4258
4192
  ...(hasDismissButton && {
4259
4193
  dismiss: {
4260
- gridArea: `1/4/3`,
4261
- marginTop: `calc(-1 * ${spacingStaticXs$1})`,
4262
- marginInlineEnd: `calc(-1 * ${spacingStaticXs$1})`,
4263
- marginInlineStart: spacingStaticMd,
4194
+ gridArea: `1/4/-1`,
4195
+ alignSelf: 'flex-start',
4196
+ marginBlock: `calc(-6 * ${spacingStatic2Xs})`,
4197
+ marginInline: `${spacingStaticMd} calc(-6 * ${spacingStatic2Xs})`,
4264
4198
  },
4265
4199
  }),
4200
+ ...(hasAction && {
4201
+ action: {
4202
+ gridArea: '3/1/auto/-1',
4203
+ marginTop: spacingStaticMd,
4204
+ [getMediaQueryMin('s')]: {
4205
+ gridArea: '1/3',
4206
+ marginTop: '0px',
4207
+ marginInlineStart: spacingStaticMd,
4208
+ },
4209
+ },
4210
+ }),
4211
+ };
4212
+ };
4213
+
4214
+ /**
4215
+ * @css-variable {"name": "--p-banner-max-w", "description": "Defines the maximum width of the Banner.", "defaultValue": "100ch"}
4216
+ */
4217
+ const cssVarMaxWidth = '--p-banner-max-w';
4218
+ /**
4219
+ * @css-variable {"name": "--p-banner-top", "description": "Defines the distance from the top of the viewport. Only takes effect when the `position` property is set to `top` (at the respective breakpoint).", "defaultValue": "56px"}
4220
+ */
4221
+ const cssVarTop = '--p-banner-top';
4222
+ /**
4223
+ * @css-variable {"name": "--p-banner-bottom", "description": "Defines the distance from the bottom of the viewport. Only takes effect when the `position` property is set to `bottom` (at the respective breakpoint).", "defaultValue": "56px"}
4224
+ */
4225
+ const cssVarBottom = '--p-banner-bottom';
4226
+ /**
4227
+ * @css-variable {"name": "--p-banner-inset-x", "description": "Defines the horizontal offset of the Banner from the edges of the viewport.", "defaultValue": "max(22px, 10.625vw - 12px)"}
4228
+ */
4229
+ const cssVarInsetX = '--p-banner-inset-x';
4230
+ const cssVarPositionTop = '--p-banner-position-top'; // deprecated (aliased)
4231
+ const cssVarPositionBottom = '--p-banner-position-bottom'; // deprecated (aliased)
4232
+ const topBottomFallback = '56px';
4233
+ const cssVariableZIndex = '--_p-banner-a';
4234
+ const getComponentCss$18 = (isOpen, position, state, hasDismissButton, hasHeadingOrHeadingSlot) => {
4235
+ const duration = isOpen ? 'moderate' : 'short';
4236
+ const easing = isOpen ? 'in' : 'out';
4237
+ const transition = `visibility 0s linear var(${cssVariableTransitionDuration},${isOpen ? '0s' : motionDurationMap[duration]}),${getTransition('transform', duration, easing)}`;
4238
+ return getCss({
4239
+ ...mergeDeep({
4240
+ '@global': {
4241
+ ':host': {
4242
+ display: 'contents',
4243
+ ...addImportantToEachRule({
4244
+ ...hostHiddenStyles,
4245
+ }),
4246
+ },
4247
+ ...preventFoucOfNestedElementsStyles,
4248
+ '[popover]': {
4249
+ all: 'unset',
4250
+ position: 'fixed',
4251
+ zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, // Fallback for browsers lacking `transition-behavior: allow-discrete` — keeps the banner visible during fade-out after leaving the top layer.
4252
+ ...buildResponsiveStyles(position, (v) => ({
4253
+ ...(v === 'top' && {
4254
+ insetBlock: `var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback})) auto`,
4255
+ ...(!isOpen && {
4256
+ transform: `translate3d(-50%,calc(-100% - var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback}))),0)`,
4257
+ }),
4258
+ }),
4259
+ ...(v === 'bottom' && {
4260
+ insetBlock: `auto var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback}))`,
4261
+ ...(!isOpen && {
4262
+ transform: `translate3d(-50%,calc(var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback})) + 100%),0)`,
4263
+ }),
4264
+ }),
4265
+ })),
4266
+ left: '50vw',
4267
+ width: `min(calc(100vw - 2 * var(${cssVarInsetX},${gridExtendedOffsetBase})),var(${cssVarMaxWidth},100ch))`,
4268
+ '&:popover-open': {
4269
+ overlay: 'auto',
4270
+ },
4271
+ '&::backdrop': {
4272
+ display: 'none',
4273
+ },
4274
+ visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
4275
+ pointerEvents: 'none', // element can't be interacted with mouse
4276
+ ...(isOpen && {
4277
+ visibility: 'inherit',
4278
+ pointerEvents: 'inherit',
4279
+ transform: 'translate3d(-50%,0,0)',
4280
+ }),
4281
+ transition,
4282
+ // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4283
+ '@supports (transition-behavior: allow-discrete)': {
4284
+ transition: `${transition},${getTransition('overlay', duration, easing)} allow-discrete`,
4285
+ },
4286
+ },
4287
+ },
4288
+ }, {
4289
+ notification: {
4290
+ boxShadow: shadowLg,
4291
+ opacity: isOpen ? 1 : 0, // it's necessary to spit up opacity transition from [popover], otherwise frosted effect won't render
4292
+ transition: getTransition('opacity', duration, easing),
4293
+ },
4294
+ }, getFunctionalComponentNotificationBaseStyles(state, false, hasDismissButton, hasHeadingOrHeadingSlot)),
4266
4295
  });
4267
4296
  };
4268
4297
 
@@ -4574,9 +4603,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4574
4603
  verticalAlign: 'top',
4575
4604
  ...mergeDeep(buildResponsiveStyles(isCompact, (compactValue) => ({
4576
4605
  [`${cssVariableInternalScaling}`]: compactValue ? 0.64285714 : 1,
4577
- '--p-internal-border-radius': compactValue ? radiusLg : radiusXl,
4606
+ '--_p-link-button-a': compactValue ? radiusLg : radiusXl,
4578
4607
  })), buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4579
- borderRadius: addImportantToRule(`var(${legacyRadiusSmall}, ${hideLabelValue ? radiusFull : 'var(--p-internal-border-radius)'})`),
4608
+ borderRadius: addImportantToRule(`var(${legacyRadiusSmall}, ${hideLabelValue ? radiusFull : 'var(--_p-link-button-a)'})`),
4580
4609
  }))),
4581
4610
  ...addImportantToEachRule({
4582
4611
  ...hostHiddenStyles,
@@ -4641,7 +4670,7 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4641
4670
  };
4642
4671
  };
4643
4672
 
4644
- const cssVariableInternalButtonScaling = '--p-internal-button-scaling';
4673
+ const cssVariableInternalButtonScaling = '--_p-button-a';
4645
4674
  const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, isLoading, isCompact) => {
4646
4675
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
4647
4676
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling), {
@@ -4692,11 +4721,249 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4692
4721
  };
4693
4722
 
4694
4723
  const palette = {
4724
+ light: {
4725
+ green: {
4726
+ '50': 'hsl(115 29.7% 92.7%)',
4727
+ '100': 'hsl(114 30.3% 87.1%)',
4728
+ '200': 'hsl(116 29.2% 81.2%)',
4729
+ '300': 'hsl(115 29.6% 75.5%)',
4730
+ '400': 'hsl(116 29.9% 69.8%)',
4731
+ '500': 'hsl(116 30.1% 64.1%)',
4732
+ '600': 'hsl(115 30% 56.9%)',
4733
+ '700': 'hsl(115 30.4% 49.6%)',
4734
+ '800': 'hsl(115 40.7% 42.4%)',
4735
+ '900': 'hsl(115 55.3% 35.1%)',
4736
+ '950': 'hsl(115 77.5% 27.8%)',
4737
+ '50a': 'hsl(115 77.5% 27.8% / 0.1)',
4738
+ '100a': 'hsl(115 77.5% 27.8% / 0.18)',
4739
+ '200a': 'hsl(115 77.5% 27.8% / 0.26)',
4740
+ '300a': 'hsl(115 77.5% 27.8% / 0.34)',
4741
+ '400a': 'hsl(115 77.5% 27.8% / 0.42)',
4742
+ '500a': 'hsl(115 77.5% 27.8% / 0.5)',
4743
+ '600a': 'hsl(115 77.5% 27.8% / 0.6)',
4744
+ '700a': 'hsl(115 77.5% 27.8% / 0.7)',
4745
+ '800a': 'hsl(115 77.5% 27.8% / 0.8)',
4746
+ '900a': 'hsl(115 77.5% 27.8% / 0.9)',
4747
+ '950a': 'hsl(115 77.5% 27.8%)',
4748
+ },
4749
+ red: {
4750
+ '50': 'hsl(0 53.3% 94.1%)',
4751
+ '100': 'hsl(358 55.6% 89.4%)',
4752
+ '200': 'hsl(359 53.8% 84.7%)',
4753
+ '300': 'hsl(358 54.9% 80%)',
4754
+ '400': 'hsl(358 54% 75.3%)',
4755
+ '500': 'hsl(357 54.7% 70.6%)',
4756
+ '600': 'hsl(358 54.4% 64.7%)',
4757
+ '700': 'hsl(357 54.3% 58.8%)',
4758
+ '800': 'hsl(357 54.4% 52.7%)',
4759
+ '900': 'hsl(357 61.5% 46.9%)',
4760
+ '950': 'hsl(357 78% 41%)',
4761
+ '50a': 'hsl(357 78% 41% / 0.1)',
4762
+ '100a': 'hsl(357 78% 41% / 0.18)',
4763
+ '200a': 'hsl(357 78% 41% / 0.26)',
4764
+ '300a': 'hsl(357 78% 41% / 0.34)',
4765
+ '400a': 'hsl(357 78% 41% / 0.42)',
4766
+ '500a': 'hsl(357 78% 41% / 0.5)',
4767
+ '600a': 'hsl(357 78% 41% / 0.6)',
4768
+ '700a': 'hsl(357 78% 41% / 0.7)',
4769
+ '800a': 'hsl(357 78% 41% / 0.8)',
4770
+ '900a': 'hsl(357 78% 41% / 0.9)',
4771
+ '950a': 'hsl(357 78% 41%)',
4772
+ },
4773
+ yellow: {
4774
+ '50': 'hsl(25 51.5% 93.5%)',
4775
+ '100': 'hsl(27 50.8% 88%)',
4776
+ '200': 'hsl(27 50% 82.7%)',
4777
+ '300': 'hsl(27 50.9% 77.6%)',
4778
+ '400': 'hsl(27 50.4% 72.4%)',
4779
+ '500': 'hsl(28 50.9% 67.3%)',
4780
+ '600': 'hsl(28 50.5% 60.4%)',
4781
+ '700': 'hsl(28 50.6% 53.9%)',
4782
+ '800': 'hsl(27 56.2% 47.5%)',
4783
+ '900': 'hsl(28 73.9% 40.6%)',
4784
+ '950': 'hsl(28 97.7% 34.1%)',
4785
+ '50a': 'hsl(28 97.7% 34.1% / 0.1)',
4786
+ '100a': 'hsl(28 97.7% 34.1% / 0.18)',
4787
+ '200a': 'hsl(28 97.7% 34.1% / 0.26)',
4788
+ '300a': 'hsl(28 97.7% 34.1% / 0.34)',
4789
+ '400a': 'hsl(28 97.7% 34.1% / 0.42)',
4790
+ '500a': 'hsl(28 97.7% 34.1% / 0.5)',
4791
+ '600a': 'hsl(28 97.7% 34.1% / 0.6)',
4792
+ '700a': 'hsl(28 97.7% 34.1% / 0.7)',
4793
+ '800a': 'hsl(28 97.7% 34.1% / 0.8)',
4794
+ '900a': 'hsl(28 97.7% 34.1% / 0.9)',
4795
+ '950a': 'hsl(28 97.7% 34.1%)',
4796
+ },
4797
+ blue: {
4798
+ '50': 'hsl(229 84% 95.1%)',
4799
+ '100': 'hsl(229 82.2% 91.2%)',
4800
+ '200': 'hsl(228 84.6% 87.3%)',
4801
+ '300': 'hsl(228 83.5% 83.3%)',
4802
+ '400': 'hsl(228 82.9% 79.4%)',
4803
+ '500': 'hsl(228 83.9% 75.7%)',
4804
+ '600': 'hsl(228 82.7% 70.6%)',
4805
+ '700': 'hsl(228 82.9% 65.7%)',
4806
+ '800': 'hsl(228 83% 60.8%)',
4807
+ '900': 'hsl(228 83.1% 55.9%)',
4808
+ '950': 'hsl(228 83.2% 51%)',
4809
+ '50a': 'hsl(228 83.2% 51% / 0.1)',
4810
+ '100a': 'hsl(228 83.2% 51% / 0.18)',
4811
+ '200a': 'hsl(228 83.2% 51% / 0.26)',
4812
+ '300a': 'hsl(228 83.2% 51% / 0.34)',
4813
+ '400a': 'hsl(228 83.2% 51% / 0.42)',
4814
+ '500a': 'hsl(228 83.2% 51% / 0.5)',
4815
+ '600a': 'hsl(228 83.2% 51% / 0.6)',
4816
+ '700a': 'hsl(228 83.2% 51% / 0.7)',
4817
+ '800a': 'hsl(228 83.2% 51% / 0.8)',
4818
+ '900a': 'hsl(228 83.2% 51% / 0.9)',
4819
+ '950a': 'hsl(228 83.2% 51%)',
4820
+ },
4821
+ grey: {
4822
+ '50': 'hsl(240 10% 95%)',
4823
+ '100': 'hsl(240 8.1% 92.7%)',
4824
+ '200': 'hsl(225 5.7% 86.3%)',
4825
+ '300': 'hsl(240 2.7% 78.2%)',
4826
+ '400': 'hsl(240 1.9% 68.8%)',
4827
+ '500': 'hsl(240 0.9% 57.6%)',
4828
+ '600': 'hsl(240 0.8% 47.8%)',
4829
+ '700': 'hsl(240 1.6% 37.8%)',
4830
+ '800': 'hsl(240 2.2% 27.3%)',
4831
+ '900': 'hsl(240 4.8% 16.5%)',
4832
+ '950': 'hsl(225 66.7% 1.2%)',
4833
+ '50a': 'hsl(234 9.8% 60% / 0.06)',
4834
+ '100a': 'hsl(240 5% 70% / 0.148)',
4835
+ '200a': 'hsl(236 6.5% 42% / 0.236)',
4836
+ '300a': 'hsl(234 6% 32.9% / 0.324)',
4837
+ '400a': 'hsl(233 6.6% 23.9% / 0.412)',
4838
+ '500a': 'hsl(240 5.3% 14.9% / 0.5)',
4839
+ '600a': 'hsl(240 6.1% 7% / 0.6)',
4840
+ '700a': 'hsl(240 7.1% 11% / 0.7)',
4841
+ '800a': 'hsl(240 8.7% 9% / 0.8)',
4842
+ '900a': 'hsl(240 11.1% 7.1% / 0.9)',
4843
+ '950a': 'hsl(240 15.4% 5.1%)',
4844
+ },
4845
+ },
4695
4846
  dark: {
4847
+ green: {
4848
+ '50': 'hsl(157 33.3% 10.6%)',
4849
+ '100': 'hsl(158 47.1% 13.3%)',
4850
+ '200': 'hsl(157 58% 15.9%)',
4851
+ '300': 'hsl(157 64.6% 18.8%)',
4852
+ '400': 'hsl(157 69.1% 21.6%)',
4853
+ '500': 'hsl(157 72.6% 24.3%)',
4854
+ '600': 'hsl(157 76.1% 27.8%)',
4855
+ '700': 'hsl(157 78.7% 31.4%)',
4856
+ '800': 'hsl(157 81.8% 34.5%)',
4857
+ '900': 'hsl(157 83.5% 38%)',
4858
+ '950': 'hsl(157 84.9% 41.6%)',
4859
+ '50a': 'hsl(157 84.9% 41.6% / 0.1)',
4860
+ '100a': 'hsl(157 84.9% 41.6% / 0.18)',
4861
+ '200a': 'hsl(157 84.9% 41.6% / 0.26)',
4862
+ '300a': 'hsl(157 84.9% 41.6% / 0.34)',
4863
+ '400a': 'hsl(157 84.9% 41.6% / 0.42)',
4864
+ '500a': 'hsl(157 84.9% 41.6% / 0.5)',
4865
+ '600a': 'hsl(157 84.9% 41.6% / 0.6)',
4866
+ '700a': 'hsl(157 84.9% 41.6% / 0.7)',
4867
+ '800a': 'hsl(157 84.9% 41.6% / 0.8)',
4868
+ '900a': 'hsl(157 84.9% 41.6% / 0.9)',
4869
+ '950a': 'hsl(157 84.9% 41.6%)',
4870
+ },
4871
+ red: {
4872
+ '50': 'hsl(0 28.1% 12.5%)',
4873
+ '100': 'hsl(0 39.5% 16.9%)',
4874
+ '200': 'hsl(0 45% 21.4%)',
4875
+ '300': 'hsl(0 48.5% 25.9%)',
4876
+ '400': 'hsl(0 51.6% 30%)',
4877
+ '500': 'hsl(0 53.4% 34.5%)',
4878
+ '600': 'hsl(0 54.9% 40%)',
4879
+ '700': 'hsl(0 56.9% 45.5%)',
4880
+ '800': 'hsl(0 60% 51%)',
4881
+ '900': 'hsl(0 76.6% 56.5%)',
4882
+ '950': 'hsl(0 96.9% 62%)',
4883
+ '50a': 'hsl(0 96.9% 62% / 0.1)',
4884
+ '100a': 'hsl(0 96.9% 62% / 0.18)',
4885
+ '200a': 'hsl(0 96.9% 62% / 0.26)',
4886
+ '300a': 'hsl(0 96.9% 62% / 0.34)',
4887
+ '400a': 'hsl(0 96.9% 62% / 0.42)',
4888
+ '500a': 'hsl(0 96.9% 62% / 0.5)',
4889
+ '600a': 'hsl(0 96.9% 62% / 0.6)',
4890
+ '700a': 'hsl(0 96.9% 62% / 0.7)',
4891
+ '800a': 'hsl(0 96.9% 62% / 0.8)',
4892
+ '900a': 'hsl(0 96.9% 62% / 0.9)',
4893
+ '950a': 'hsl(0 96.9% 62%)',
4894
+ },
4895
+ yellow: {
4896
+ '50': 'hsl(29 34.4% 12%)',
4897
+ '100': 'hsl(28 45.7% 15.9%)',
4898
+ '200': 'hsl(28 52.5% 19.8%)',
4899
+ '300': 'hsl(28 57% 23.7%)',
4900
+ '400': 'hsl(28 60.3% 27.6%)',
4901
+ '500': 'hsl(28 62.7% 31.6%)',
4902
+ '600': 'hsl(28 65.6% 36.5%)',
4903
+ '700': 'hsl(28 66.8% 41.4%)',
4904
+ '800': 'hsl(28 68.6% 46.3%)',
4905
+ '900': 'hsl(28 72.7% 51.2%)',
4906
+ '950': 'hsl(28 90.2% 56.1%)',
4907
+ '50a': 'hsl(28 90.2% 56.1% / 0.1)',
4908
+ '100a': 'hsl(28 90.2% 56.1% / 0.18)',
4909
+ '200a': 'hsl(28 90.2% 56.1% / 0.26)',
4910
+ '300a': 'hsl(28 90.2% 56.1% / 0.34)',
4911
+ '400a': 'hsl(28 90.2% 56.1% / 0.42)',
4912
+ '500a': 'hsl(28 90.2% 56.1% / 0.5)',
4913
+ '600a': 'hsl(28 90.2% 56.1% / 0.6)',
4914
+ '700a': 'hsl(28 90.2% 56.1% / 0.7)',
4915
+ '800a': 'hsl(28 90.2% 56.1% / 0.8)',
4916
+ '900a': 'hsl(28 90.2% 56.1% / 0.9)',
4917
+ '950a': 'hsl(28 90.2% 56.1%)',
4918
+ },
4919
+ blue: {
4920
+ '50': 'hsl(211 37.7% 12%)',
4921
+ '100': 'hsl(210 52.5% 15.7%)',
4922
+ '200': 'hsl(210 61.6% 19.4%)',
4923
+ '300': 'hsl(210 66.4% 23.3%)',
4924
+ '400': 'hsl(210 71% 27.1%)',
4925
+ '500': 'hsl(210 73.4% 31%)',
4926
+ '600': 'hsl(210 76.8% 35.5%)',
4927
+ '700': 'hsl(210 78.6% 40.4%)',
4928
+ '800': 'hsl(210 80.9% 45.1%)',
4929
+ '900': 'hsl(210 81.9% 49.8%)',
4930
+ '950': 'hsl(210 100% 54.5%)',
4931
+ '50a': 'hsl(210 100% 54.5% / 0.1)',
4932
+ '100a': 'hsl(210 100% 54.5% / 0.18)',
4933
+ '200a': 'hsl(210 100% 54.5% / 0.26)',
4934
+ '300a': 'hsl(210 100% 54.5% / 0.34)',
4935
+ '400a': 'hsl(210 100% 54.5% / 0.42)',
4936
+ '500a': 'hsl(210 100% 54.5% / 0.5)',
4937
+ '600a': 'hsl(210 100% 54.5% / 0.6)',
4938
+ '700a': 'hsl(210 100% 54.5% / 0.7)',
4939
+ '800a': 'hsl(210 100% 54.5% / 0.8)',
4940
+ '900a': 'hsl(210 100% 54.5% / 0.9)',
4941
+ '950a': 'hsl(210 100% 54.5%)',
4942
+ },
4696
4943
  grey: {
4944
+ '50': 'hsl(225 66.7% 1.2%)',
4945
+ '100': 'hsl(240 2% 10%)',
4946
+ '200': 'hsl(240 1.3% 15.5%)',
4947
+ '300': 'hsl(240 0.8% 23.7%)',
4948
+ '400': 'hsl(240 0.6% 34.3%)',
4949
+ '500': 'hsl(240 0.4% 47.6%)',
4950
+ '600': 'hsl(240 0.5% 57.5%)',
4951
+ '700': 'hsl(240 0.6% 67.3%)',
4952
+ '800': 'hsl(240 0.9% 77.1%)',
4953
+ '900': 'hsl(240 3% 87.1%)',
4697
4954
  '950': 'hsl(225 100% 99%)',
4955
+ '50a': 'hsl(225 66.7% 1.2% / 0.08)',
4698
4956
  '100a': 'hsl(240 3.7% 26.5% / 0.154)',
4699
- '200a': 'hsl(240 2% 43% / 0.228)'},
4957
+ '200a': 'hsl(240 2% 43% / 0.228)',
4958
+ '300a': 'hsl(240 1.5% 61.8% / 0.302)',
4959
+ '400a': 'hsl(240 2.9% 79.4% / 0.376)',
4960
+ '500a': 'hsl(240 12.5% 96.9% / 0.45)',
4961
+ '600a': 'hsl(240 12.5% 96.9% / 0.56)',
4962
+ '700a': 'hsl(240 12.5% 96.9% / 0.67)',
4963
+ '800a': 'hsl(240 12.5% 96.9% / 0.78)',
4964
+ '900a': 'hsl(240 12.5% 96.9% / 0.89)',
4965
+ '950a': 'hsl(225 100% 99%)',
4966
+ },
4700
4967
  },
4701
4968
  };
4702
4969
 
@@ -5032,6 +5299,10 @@ const cssVarPaddingInlineStart = '--p-carousel-ps';
5032
5299
  * @css-variable {"name": "--p-carousel-pe", "description": "Defines the logical inline end padding of the carousel, the extra space is used to show parts of the next/previous slide. Needs to be used in combination with `--p-carousel-px` or `--p-carousel-ps`. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
5033
5300
  */
5034
5301
  const cssVarPaddingInlineEnd = '--p-carousel-pe';
5302
+ /**
5303
+ * @css-variable {"name": "--p-carousel-prev-next-color-scheme", "description": "Color Scheme applied to the navigation (prev/next buttons)"}
5304
+ */
5305
+ const cssVariablePrevNextColorScheme = '--p-carousel-prev-next-color-scheme';
5035
5306
  const cssVariableGradientColorWidth = '--p-gradient-color-width';
5036
5307
  const carouselTransitionDuration = motionDurationModerate;
5037
5308
  const paginationInfiniteStartCaseClass = 'pagination--infinite';
@@ -5157,6 +5428,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
5157
5428
  gap: spacingStaticXs$1,
5158
5429
  alignSelf: 'flex-start', // relevant in case slot="header" becomes higher than nav group
5159
5430
  },
5431
+ colorScheme: `var(${cssVariablePrevNextColorScheme})`,
5160
5432
  },
5161
5433
  btn: {
5162
5434
  padding: spacingStaticSm$1,
@@ -5360,7 +5632,7 @@ const cssVarCheckboxIconColor = '--p-checkbox-icon-color';
5360
5632
  /**
5361
5633
  * Internal CSS variables
5362
5634
  */
5363
- const cssVarInternalCheckboxScaling = '--__p-checkbox-scaling';
5635
+ const cssVarInternalCheckboxScaling = '--_p-checkbox-scaling';
5364
5636
 
5365
5637
  const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5366
5638
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
@@ -5509,6 +5781,11 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
5509
5781
  ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `calc(-1 * ${spacingStaticXs$1})` })),
5510
5782
  marginTop: `calc(-1 * ${spacingStaticXs$1})`,
5511
5783
  },
5784
+ '& > slot[name="label"]::slotted(*)': {
5785
+ ...addImportantToEachRule({
5786
+ display: 'inline',
5787
+ }),
5788
+ },
5512
5789
  ...additionalDefaultJssStyle,
5513
5790
  },
5514
5791
  // .required
@@ -5611,7 +5888,7 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
5611
5888
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
5612
5889
  */
5613
5890
  const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
5614
- const cssVarInternalInputBaseScaling = '--p-internal-input-base-scaling';
5891
+ const cssVarInternalInputBaseScaling = '--_p-input-base-a';
5615
5892
  const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel, state, isCompact, readOnly, additionalInputJssStyle, additionalHostJssStyle) => {
5616
5893
  const wrapperBorderWidth = '1px';
5617
5894
  const wrapperHeight = `calc(var(${cssVarInternalInputBaseScaling}) * 3.5rem)`;
@@ -5785,7 +6062,7 @@ const getIconJssStyle = (isOpen) => {
5785
6062
  const getOptionJssStyle = (componentName, cssVarScalingName) => {
5786
6063
  const gap = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
5787
6064
  const paddingBlock = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
5788
- const paddingInline = `var(--p-internal-${componentName}-padding-left, calc(16.8px * (var(${cssVarScalingName}) - 0.64285714) + 6px)) calc(16.8px * (var(${cssVarScalingName}) - 0.64285714) + 6px)`;
6065
+ const paddingInline = `var(--_p-${componentName}-b, calc(16.8px * (var(${cssVarScalingName}) - 0.64285714) + 6px)) calc(16.8px * (var(${cssVarScalingName}) - 0.64285714) + 6px)`;
5789
6066
  return {
5790
6067
  display: 'flex',
5791
6068
  gap,
@@ -6022,11 +6299,11 @@ const getComponentCss$$ = (color, orientation) => {
6022
6299
  const cssVariableGridTemplate = '--p-drilldown-grid-template';
6023
6300
  const cssVariableGap = '--p-drilldown-gap';
6024
6301
  // private css variables
6025
- const cssVarColorPrimary = '--_p-a';
6026
- const cssVarColorBackgroundBase = '--_p-b';
6027
- const cssVarColorBackgroundSurface = '--_p-c';
6028
- const cssVarColorBackgroundShading = '--_p-d';
6029
- const cssVarColorBackgroundScroller = '--_p-f';
6302
+ const cssVarColorPrimary = '--_p-drilldown-a';
6303
+ const cssVarColorBackgroundBase = '--_p-drilldown-b';
6304
+ const cssVarColorBackgroundSurface = '--_p-drilldown-c';
6305
+ const cssVarColorBackgroundShading = '--_p-drilldown-d';
6306
+ const cssVarColorBackgroundScroller = '--_p-drilldown-f';
6030
6307
  const scrollerWidthDesktop = 'clamp(338px, 210px + 18vw, 640px)';
6031
6308
  const mediaQueryMobile = getMediaQueryMax('s');
6032
6309
  const mediaQueryDesktop = getMediaQueryMin('s');
@@ -6621,7 +6898,7 @@ const getComponentCss$W = (size) => {
6621
6898
  });
6622
6899
  };
6623
6900
 
6624
- const cssVarBackgroundColor = '--_a';
6901
+ const cssVarBackgroundColor = '--_p-dialog-a';
6625
6902
  const dialogHostJssStyle = (background) => {
6626
6903
  return {
6627
6904
  '--pds-internal-grid-outer-column': `calc(${spacingFluidLg} - ${gridGap})`,
@@ -6688,8 +6965,12 @@ const getDialogBackdropTransitionJssStyle = (isVisible, backdrop = 'blur') => {
6688
6965
  const getScrollerJssStyle = (position) => {
6689
6966
  // ensures scrollbar color is set correctly (e.g. when scrollbar is shown on backdrop, on flyout/modal surface or with Auto Dark Mode)
6690
6967
  const backgroundLight = 'rgba(255,255,255,.01)';
6968
+ const backgroundDark = 'rgba(0,0,0,.01)';
6691
6969
  const background = {
6692
- light: backgroundLight};
6970
+ light: backgroundLight,
6971
+ dark: backgroundDark,
6972
+ auto: backgroundLight,
6973
+ };
6693
6974
  return {
6694
6975
  position: 'absolute',
6695
6976
  isolation: 'isolate', // creates new stacking context to show scrollbars on top of header/footer areas (on iOS/iPadOS)
@@ -6721,7 +7002,6 @@ const dialogGridJssStyle = () => {
6721
7002
  paddingTop: dialogPaddingTop,
6722
7003
  paddingBottom: dialogPaddingBottom,
6723
7004
  alignContent: 'flex-start',
6724
- overflow: 'clip',
6725
7005
  };
6726
7006
  };
6727
7007
  const getDialogColorJssStyle = () => {
@@ -6760,15 +7040,7 @@ const getDialogDismissButtonJssStyle = () => {
6760
7040
  marginTop: `calc(-1 * ${dialogPaddingTop} + ${spacingFluidSm})`,
6761
7041
  marginInlineEnd: spacingFluidSm,
6762
7042
  placeSelf: 'flex-start flex-end',
6763
- '&::after': {
6764
- content: '""',
6765
- display: 'block',
6766
- position: 'absolute',
6767
- inset: `calc(-1 * ${spacingFluidSm}) calc(-1 * ${spacingFluidSm}) -50px -50px`,
6768
- pointerEvents: 'none',
6769
- zIndex: -1,
6770
- background: `radial-gradient(circle at top right, hsla(from var(${cssVarBackgroundColor}) h s l / 0.35) 0%, transparent 70%)`,
6771
- },
7043
+ boxShadow: `0px 0px 30px hsla(from var(${cssVarBackgroundColor}) h s l / 0.35)`
6772
7044
  };
6773
7045
  };
6774
7046
  const getSlotJssStyle = () => {
@@ -7054,8 +7326,8 @@ const getComponentCss$T = (name, source, color, size) => {
7054
7326
  });
7055
7327
  };
7056
7328
 
7057
- const getComponentCss$S = (state, hasAction, hasDismissButton) => {
7058
- return getCss({
7329
+ const getComponentCss$S = (state, hasAction, hasDismissButton, hasHeadingOrHeadingSlot) => {
7330
+ return getCss(mergeDeep({
7059
7331
  '@global': {
7060
7332
  ':host': {
7061
7333
  display: 'block',
@@ -7064,71 +7336,8 @@ const getComponentCss$S = (state, hasAction, hasDismissButton) => {
7064
7336
  }),
7065
7337
  },
7066
7338
  ...preventFoucOfNestedElementsStyles,
7067
- 'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
7068
- all: 'unset',
7069
- display: 'block',
7070
- gridArea: '1/2',
7071
- font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7072
- color: colorPrimary,
7073
- },
7074
- 'slot:not([name]),p': {
7075
- all: 'unset',
7076
- display: 'block',
7077
- gridArea: '2/2',
7078
- marginTop: spacingStaticXs$1,
7079
- font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7080
- color: colorPrimary,
7081
- },
7082
7339
  },
7083
- notification: {
7084
- display: 'grid',
7085
- gridTemplateColumns: `auto minmax(0, 1fr) auto auto`,
7086
- padding: spacingStaticMd,
7087
- borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
7088
- background: notificationBackgroundMap[state],
7089
- WebkitBackdropFilter: blurFrosted,
7090
- backdropFilter: blurFrosted,
7091
- ...forcedColorsMediaQuery({
7092
- outline: '2px solid CanvasText',
7093
- outlineOffset: '-2px',
7094
- }),
7095
- '&::before': {
7096
- [getMediaQueryMin('s')]: {
7097
- gridArea: '1/1',
7098
- placeSelf: 'center',
7099
- content: '""',
7100
- width: '1.5rem',
7101
- height: '1.5rem',
7102
- marginInlineEnd: spacingStaticSm$1,
7103
- background: notificationColorMap[state],
7104
- WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
7105
- mask: `${notificationIconMap[state]} center/contain no-repeat`,
7106
- ...forcedColorsMediaQuery({
7107
- background: 'CanvasText',
7108
- }),
7109
- },
7110
- },
7111
- },
7112
- ...(hasDismissButton && {
7113
- dismiss: {
7114
- gridArea: `1/4/3`,
7115
- marginTop: `calc(-1 * ${spacingStaticXs$1})`,
7116
- marginInlineEnd: `calc(-1 * ${spacingStaticXs$1})`,
7117
- marginInlineStart: spacingStaticMd,
7118
- },
7119
- }),
7120
- ...(hasAction && {
7121
- action: {
7122
- gridArea: '3/1/auto/-1',
7123
- marginTop: spacingStaticMd,
7124
- [getMediaQueryMin('s')]: {
7125
- gridArea: '1/3',
7126
- marginTop: 0,
7127
- marginInlineStart: spacingStaticMd,
7128
- },
7129
- },
7130
- }),
7131
- });
7340
+ }, getFunctionalComponentNotificationBaseStyles(state, hasAction, hasDismissButton, hasHeadingOrHeadingSlot)));
7132
7341
  };
7133
7342
 
7134
7343
  // CSS Variables defined in base input
@@ -7396,9 +7605,9 @@ const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideL
7396
7605
  content: '""',
7397
7606
  position: 'fixed',
7398
7607
  insetBlock: offsetVertical,
7399
- borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
7400
7608
  ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
7401
7609
  insetInline: hideLabelValue ? offsetVertical : offsetHorizontal,
7610
+ borderRadius: `var(${legacyRadiusSmall}, ${hideLabelValue ? radiusFull : radiusLg})`,
7402
7611
  })),
7403
7612
  },
7404
7613
  '&(a:focus-visible)::before': getFocusBaseStyles(),
@@ -7692,7 +7901,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7692
7901
  });
7693
7902
  };
7694
7903
 
7695
- const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
7904
+ const cssVariableInternalLinkScaling = '--_p-link-a';
7696
7905
  const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, isCompact) => {
7697
7906
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, isCompact, cssVariableInternalLinkScaling), {
7698
7907
  label: {
@@ -7858,7 +8067,7 @@ const getComponentCss$B = (model, safeZone, size, color) => {
7858
8067
  });
7859
8068
  };
7860
8069
 
7861
- const cssVarInternalMultiSelectOptionScaling = '--p-internal-multi-select-option-scaling';
8070
+ const cssVarInternalMultiSelectOptionScaling = '--_p-multi-select-option-a';
7862
8071
  const getComponentCss$A = (isDisabled, selected) => {
7863
8072
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
7864
8073
  const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
@@ -7886,7 +8095,7 @@ const getComponentCss$A = (isDisabled, selected) => {
7886
8095
  });
7887
8096
  };
7888
8097
 
7889
- const cssVarInternalOptgroupScaling = '--p-internal-optgroup-scaling';
8098
+ const cssVarInternalOptgroupScaling = '--_p-optgroup-a';
7890
8099
  const paddingBlock = `calc(11.2px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 4px)`;
7891
8100
  const paddingInline = `calc(16.8px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 6px)`;
7892
8101
  const gap = `calc(11.2px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 4px)`;
@@ -7898,8 +8107,8 @@ const getComponentCss$z = (isDisabled) => {
7898
8107
  ...hostHiddenStyles,
7899
8108
  }),
7900
8109
  '::slotted(*)': {
7901
- '--p-internal-select-option-padding-left': paddingSlottedInlineStart,
7902
- '--p-internal-multi-select-option-padding-left': paddingSlottedInlineStart,
8110
+ '--_p-select-option-b': paddingSlottedInlineStart,
8111
+ '--_p-multi-select-option-b': paddingSlottedInlineStart,
7903
8112
  },
7904
8113
  '[role="group"]': {
7905
8114
  display: 'flex',
@@ -7917,7 +8126,7 @@ const getComponentCss$z = (isDisabled) => {
7917
8126
  });
7918
8127
  };
7919
8128
 
7920
- const cssVarInternalMultiSelectScaling = '--p-internal-multi-select-scaling';
8129
+ const cssVarInternalMultiSelectScaling = '--_p-multi-select-a';
7921
8130
  const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
7922
8131
  return getCss({
7923
8132
  '@global': {
@@ -7960,8 +8169,8 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
7960
8169
  });
7961
8170
  };
7962
8171
 
7963
- const mediaQueryMinS$1 = getMediaQueryMin('s');
7964
- const mediaQueryMaxS$1 = getMediaQueryMax('s');
8172
+ const mediaQueryMinS = getMediaQueryMin('s');
8173
+ const mediaQueryMaxS = getMediaQueryMax('s');
7965
8174
  const disabledCursorStyle = {
7966
8175
  cursor: 'default',
7967
8176
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
@@ -7987,7 +8196,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
7987
8196
  gap: spacingStaticXs$1,
7988
8197
  margin: 0,
7989
8198
  padding: 0,
7990
- [mediaQueryMinS$1]: {
8199
+ [mediaQueryMinS]: {
7991
8200
  gap: spacingStaticSm$1,
7992
8201
  },
7993
8202
  },
@@ -7995,7 +8204,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
7995
8204
  listStyleType: 'none',
7996
8205
  ...(pageTotal > 5 && {
7997
8206
  // max 5 items including ellipsis at the same time on mobile
7998
- [mediaQueryMaxS$1]: {
8207
+ [mediaQueryMaxS]: {
7999
8208
  [activePage < 4
8000
8209
  ? // we are at the start, so let's hide start ellipsis and 2 items before end ellipsis
8001
8210
  '&.ellip-start,&:nth-child(6),&:nth-child(7),&:not(.ellip):nth-child(8)'
@@ -8014,7 +8223,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8014
8223
  })),
8015
8224
  },
8016
8225
  }),
8017
- [mediaQueryMinS$1]: {
8226
+ [mediaQueryMinS]: {
8018
8227
  ...(pageTotal < 8
8019
8228
  ? { '&.ellip': hiddenStyle }
8020
8229
  : // max 7 items including ellipsis at the same time on tablet
@@ -8081,7 +8290,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8081
8290
  });
8082
8291
  };
8083
8292
 
8084
- const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
8293
+ const cssVarInternalPinCodeScaling = '--_p-pin-code-a';
8085
8294
  const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCompact) => {
8086
8295
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8087
8296
  const gap = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
@@ -8254,7 +8463,7 @@ const getComponentCss$v = () => {
8254
8463
  });
8255
8464
  };
8256
8465
 
8257
- const cssVarInternalRadioGroupOptionScaling = '--p-internal-radio-group-option-scaling';
8466
+ const cssVarInternalRadioGroupOptionScaling = '--_p-radio-group-option-a';
8258
8467
  const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>`);
8259
8468
  const getComponentCss$u = (disabled, loading, state) => {
8260
8469
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
@@ -8358,7 +8567,7 @@ const getComponentCss$u = (disabled, loading, state) => {
8358
8567
  });
8359
8568
  };
8360
8569
 
8361
- const cssVarInternalRadioGroupScaling = '--p-internal-radio-group-scaling';
8570
+ const cssVarInternalRadioGroupScaling = '--_p-radio-group-a';
8362
8571
  const groupRadioGroupDirectionJssStyles = {
8363
8572
  column: {
8364
8573
  flexFlow: 'column nowrap',
@@ -8605,7 +8814,7 @@ isSticky, hasScrollbar, isCompact) => {
8605
8814
  });
8606
8815
  };
8607
8816
 
8608
- const cssVarInternalSegmentedControlScaling = '--p-internal-segmented-control-scaling';
8817
+ const cssVarInternalSegmentedControlScaling = '--_p-segmented-control-a';
8609
8818
  const getScalingVar = (compact) => `var(${cssVarInternalSegmentedControlScaling}, ${compact ? 0.5 : 1})`;
8610
8819
  const ICON_OFFSET = '4px';
8611
8820
  const ICON_SIZE = '1.5rem';
@@ -8690,7 +8899,10 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
8690
8899
  }),
8691
8900
  });
8692
8901
  };
8693
- const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, state) => {
8902
+
8903
+ const MIN_ITEM_WIDTH = 46;
8904
+ const MAX_ITEM_WIDTH = 220;
8905
+ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, state, noWrap) => {
8694
8906
  return getCss({
8695
8907
  '@global': {
8696
8908
  ':host': {
@@ -8703,11 +8915,13 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8703
8915
  'slot:not([name])': {
8704
8916
  display: 'grid',
8705
8917
  gridAutoRows: '1fr', // for equal height
8706
- ...buildResponsiveStyles(columns, (col) => ({
8707
- gridTemplateColumns: col === 'auto'
8708
- ? `repeat(auto-fit, ${maxWidth}px)`
8709
- : `repeat(${col}, minmax(0, 1fr))`,
8710
- })),
8918
+ ...(noWrap
8919
+ ? { gridAutoFlow: 'column', gridAutoColumns: 'max-content' }
8920
+ : buildResponsiveStyles(columns, (col) => ({
8921
+ gridTemplateColumns: col === 'auto'
8922
+ ? `repeat(auto-fit, ${(maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && minWidth) || maxWidth}px)`
8923
+ : `repeat(${col}, minmax(0, 1fr))`,
8924
+ }))),
8711
8925
  gap: '6px',
8712
8926
  },
8713
8927
  },
@@ -8722,10 +8936,15 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8722
8936
  }),
8723
8937
  // .message
8724
8938
  ...getFunctionalComponentStateMessageStyles(state),
8939
+ ...(noWrap && {
8940
+ scroller: {
8941
+ margin: `-${spacingStaticXs$1} 0`,
8942
+ },
8943
+ }),
8725
8944
  });
8726
8945
  };
8727
8946
 
8728
- const cssVarInternalSelectOptionScaling = '--p-internal-select-option-scaling';
8947
+ const cssVarInternalSelectOptionScaling = '--_p-select-option-a';
8729
8948
  const getComponentCss$p = (isDisabled) => {
8730
8949
  return getCss({
8731
8950
  '@global': {
@@ -8750,7 +8969,7 @@ const getComponentCss$p = (isDisabled) => {
8750
8969
  });
8751
8970
  };
8752
8971
 
8753
- const cssVarInternalSelectScaling = '--p-internal-select-scaling';
8972
+ const cssVarInternalSelectScaling = '--_p-select-a';
8754
8973
  const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8755
8974
  return getCss({
8756
8975
  '@global': {
@@ -9049,7 +9268,7 @@ const getComponentCss$k = (size) => {
9049
9268
  });
9050
9269
  };
9051
9270
 
9052
- const cssVarInternalSwitchScaling = '--p-internal-switch-scaling';
9271
+ const cssVarInternalSwitchScaling = '--_p-switch-a';
9053
9272
  const getColors$1 = (checked, loading) => {
9054
9273
  return {
9055
9274
  buttonBorderColor: checked ? colorSuccessLow : colorContrastLow,
@@ -9190,10 +9409,10 @@ const cssVarScrollIndicatorTop = '--p-table-scroll-indicator-top';
9190
9409
  * @css-variable {"name": "--p-table-scroll-indicator-bottom", "description": "Defines the distance from the bottom of the viewport at which the scroll indicator sticks when scrolling up and `sticky` is enabled.", "defaultValue": "0px"}
9191
9410
  */
9192
9411
  const cssVarScrollIndicatorBottom = '--p-table-scroll-indicator-bottom';
9193
- const cssVariableTablePadding = '--_a';
9194
- const cssVariableTableHoverColor = '--_b';
9195
- const cssVariableTableBorderColor = '--_c';
9196
- const cssVariableTableBorderWidth = '--_d';
9412
+ const cssVariableTablePadding = '--_p-table-a';
9413
+ const cssVariableTableHoverColor = '--_p-table-b';
9414
+ const cssVariableTableBorderColor = '--_p-table-c';
9415
+ const cssVariableTableBorderWidth = '--_p-table-d';
9197
9416
  const getComponentCss$h = (isCompact, layout) => {
9198
9417
  return getCss({
9199
9418
  '@global': {
@@ -9204,9 +9423,8 @@ const getComponentCss$h = (isCompact, layout) => {
9204
9423
  '--p-scroller-indicator-bottom': `var(${cssVarScrollIndicatorBottom},0px)`,
9205
9424
  [cssVariableTableHoverColor]: colorFrosted,
9206
9425
  [cssVariableTableBorderColor]: colorContrastLow,
9207
- ...(isCompact && {
9208
- [cssVariableTablePadding]: spacingStaticSm$1,
9209
- }),
9426
+ [cssVariableTablePadding]: isCompact ? spacingStaticSm$1 : spacingFluidSm,
9427
+ [cssVariableTableBorderWidth]: '1px',
9210
9428
  ...hostHiddenStyles,
9211
9429
  font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9212
9430
  color: colorPrimary,
@@ -9241,7 +9459,7 @@ const getComponentCss$g = (multiline) => {
9241
9459
  display: 'table-cell',
9242
9460
  verticalAlign: 'middle',
9243
9461
  ...addImportantToEachRule({
9244
- padding: `var(${cssVariableTablePadding}, ${spacingFluidSm})`,
9462
+ padding: `var(${cssVariableTablePadding})`,
9245
9463
  margin: 0,
9246
9464
  whiteSpace: multiline ? 'normal' : 'nowrap',
9247
9465
  ...hostHiddenStyles,
@@ -9373,7 +9591,7 @@ const getComponentCss$c = () => {
9373
9591
  ':host': {
9374
9592
  display: 'table-row',
9375
9593
  ...addImportantToEachRule({
9376
- borderBottom: `var(${cssVariableTableBorderWidth},1px) solid var(${cssVariableTableBorderColor})`,
9594
+ borderBottom: `var(${cssVariableTableBorderWidth}) solid var(${cssVariableTableBorderColor})`,
9377
9595
  transition: getTransition('background'),
9378
9596
  ...hostHiddenStyles,
9379
9597
  ...hoverMediaQuery({
@@ -9388,7 +9606,8 @@ const getComponentCss$c = () => {
9388
9606
  });
9389
9607
  };
9390
9608
 
9391
- const delayTabStyleAttribute = 'data-delay';
9609
+ const animatingAttribute = 'data-animating';
9610
+
9392
9611
  const backgroundMap = {
9393
9612
  canvas: colorCanvas,
9394
9613
  surface: colorSurface,
@@ -9398,7 +9617,14 @@ const fontSizeText = {
9398
9617
  small: typescaleSm$1,
9399
9618
  medium: typescaleMd,
9400
9619
  };
9401
- const getComponentCss$b = (background, size, isCompact) => {
9620
+ const getComponentCss$b = (background, size, isCompact, activeTabIndex) => {
9621
+ const hasActive = activeTabIndex !== undefined;
9622
+ // :nth-child is 1-based
9623
+ const nth = hasActive ? activeTabIndex + 1 : 0;
9624
+ const activeSelector = `&(a:nth-child(${nth})),&(button:nth-child(${nth}))`;
9625
+ const notActiveHoverSelector = hasActive
9626
+ ? `&(a:not(:nth-child(${nth})):hover),&(button:not(:nth-child(${nth})):hover)`
9627
+ : '&(a:hover),&(button:hover)';
9402
9628
  return getCss({
9403
9629
  '@global': {
9404
9630
  ':host': {
@@ -9428,20 +9654,25 @@ const getComponentCss$b = (background, size, isCompact) => {
9428
9654
  },
9429
9655
  '&(a:focus-visible),&(button:focus-visible)': getFocusBaseStyles(),
9430
9656
  ...hoverMediaQuery({
9431
- '&(a:not([aria-current="true"]):hover),&(button:not([aria-selected="true"]):hover)': {
9657
+ [notActiveHoverSelector]: {
9432
9658
  // Only applied on hover since applying it globally causes the active tab to visually flash when navigating in SPAs (where the tabs-bar persist across routes but the children tabs change).
9433
9659
  transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
9434
9660
  background: colorFrostedStrong,
9435
9661
  },
9436
9662
  }),
9437
- // The data attribute is applied before the tabs switching animation runs in the utils to delay the selected tab styles until the animation is finished
9438
- [`&(a[${delayTabStyleAttribute}]),&(button[${delayTabStyleAttribute}])`]: {
9439
- transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd$1}`, // the background shall be changed immediately after the bar transition has finished
9440
- },
9441
- '&(a[aria-current="true"]),&(button[aria-selected="true"])': {
9442
- color: colorCanvas,
9443
- background: colorPrimary,
9444
- },
9663
+ ...(hasActive && {
9664
+ [activeSelector]: {
9665
+ color: colorCanvas,
9666
+ },
9667
+ // Transition color and background when animation is playing
9668
+ [`&(a:nth-child(${nth})[${animatingAttribute}]),&(button:nth-child(${nth})[${animatingAttribute}])`]: {
9669
+ transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd$1}`,
9670
+ },
9671
+ // Apply background only when no active animation is playing
9672
+ [`&(a:nth-child(${nth}):not([${animatingAttribute}])),&(button:nth-child(${nth}):not([${animatingAttribute}]))`]: {
9673
+ background: colorPrimary,
9674
+ },
9675
+ }),
9445
9676
  ...forcedColorsMediaQuery({
9446
9677
  '&(a),&(button)': {
9447
9678
  forcedColorAdjust: 'none',
@@ -9455,9 +9686,11 @@ const getComponentCss$b = (background, size, isCompact) => {
9455
9686
  color: 'ButtonText',
9456
9687
  boxShadow: 'inset 0 0 0 2px ButtonBorder',
9457
9688
  },
9458
- '&(a[aria-current="true"]),&(button[aria-selected="true"])': {
9459
- transition: 'unset',
9460
- },
9689
+ ...(hasActive && {
9690
+ [activeSelector]: {
9691
+ transition: 'unset',
9692
+ },
9693
+ }),
9461
9694
  }),
9462
9695
  },
9463
9696
  }),
@@ -9524,7 +9757,7 @@ const getComponentCss$9 = () => {
9524
9757
  });
9525
9758
  };
9526
9759
 
9527
- const cssVarInternalTagDismissibleScaling = '--p-internal-tag-dismissible-scaling';
9760
+ const cssVarInternalTagDismissibleScaling = '--_p-tag-dismissible-a';
9528
9761
  const getComponentCss$8 = (hasLabel, isCompact) => {
9529
9762
  const buttonPaddingBlock = hasLabel
9530
9763
  ? `calc(16.8px * (var(${cssVarInternalTagDismissibleScaling}) - 0.64285714))`
@@ -9591,25 +9824,37 @@ const colorTextMap = {
9591
9824
  primary: colorCanvas,
9592
9825
  secondary: colorPrimary,
9593
9826
  info: colorCanvas,
9827
+ 'info-frosted': colorPrimary,
9594
9828
  success: colorCanvas,
9829
+ 'success-frosted': colorPrimary,
9595
9830
  warning: colorCanvas,
9831
+ 'warning-frosted': colorPrimary,
9596
9832
  error: colorCanvas,
9833
+ 'error-frosted': colorPrimary,
9597
9834
  };
9598
9835
  const colorBackgroundMap = {
9599
9836
  primary: colorPrimary,
9600
9837
  secondary: colorFrostedStrong,
9601
9838
  info: colorInfo,
9839
+ 'info-frosted': colorInfoFrosted,
9602
9840
  success: colorSuccess,
9841
+ 'success-frosted': colorSuccessFrosted,
9603
9842
  warning: colorWarning,
9843
+ 'warning-frosted': colorWarningFrosted,
9604
9844
  error: colorError,
9845
+ 'error-frosted': colorErrorFrosted,
9605
9846
  };
9606
9847
  const colorBackgroundHoverMap = {
9607
9848
  primary: colorContrastHigh,
9608
9849
  secondary: colorFrosted,
9609
9850
  info: colorInfoMedium,
9851
+ 'info-frosted': colorInfoFrostedSoft,
9610
9852
  success: colorSuccessMedium,
9853
+ 'success-frosted': colorSuccessFrostedSoft,
9611
9854
  warning: colorWarningMedium,
9855
+ 'warning-frosted': colorWarningFrostedSoft,
9612
9856
  error: colorErrorMedium,
9857
+ 'error-frosted': colorErrorFrostedSoft,
9613
9858
  };
9614
9859
  const getColors = (variant) => {
9615
9860
  return {
@@ -9635,10 +9880,16 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
9635
9880
  position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
9636
9881
  display: 'flex',
9637
9882
  gap: '2px',
9638
- padding: compact ? '1px 6px' : `${spacingStaticXs} 9px`,
9883
+ padding: compact
9884
+ ? `${spacingStatic2Xs} ${spacingStaticSm$1}`
9885
+ : `${spacingStaticXs} calc(12 * ${spacingStatic2Xs})`,
9639
9886
  borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXs} + (${leadingNormal$1} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
9640
9887
  font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9641
- ...(variant === 'secondary' && {
9888
+ ...((variant === 'secondary' ||
9889
+ variant === 'info-frosted' ||
9890
+ variant === 'success-frosted' ||
9891
+ variant === 'warning-frosted' ||
9892
+ variant === 'error-frosted') && {
9642
9893
  WebkitBackdropFilter: blurFrosted,
9643
9894
  backdropFilter: blurFrosted,
9644
9895
  }),
@@ -9693,13 +9944,13 @@ const isListTypeNumbered = (type) => {
9693
9944
  return type === 'numbered';
9694
9945
  };
9695
9946
 
9696
- const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
9697
- const cssVariablePaddingBottom = '--p-internal-text-list-padding-bottom';
9698
- const cssVariablePseudoSpace = '--p-internal-text-list-pseudo-space';
9699
- const cssVariableUnorderedGridColumn = '--p-internal-text-list-unordered-grid-column';
9700
- const cssVariableUnorderedPseudoContent = '--p-internal-text-list-unordered-pseudo-content';
9701
- const cssVariableOrderedGridColumn = '--p-internal-text-list-ordered-grid-column';
9702
- const cssVariableOrderedPseudoSuffix = '--p-internal-text-list-ordered-pseudo-suffix';
9947
+ const cssVariableOrderedGridColumn = '--_p-text-list-a';
9948
+ const cssVariableOrderedPseudoSuffix = '--_p-text-list-b';
9949
+ const cssVariablePaddingBottom = '--_p-text-list-c';
9950
+ const cssVariablePaddingTop = '--_p-text-list-d';
9951
+ const cssVariablePseudoSpace = '--_p-text-list-e';
9952
+ const cssVariableUnorderedGridColumn = '--_p-text-list-f';
9953
+ const cssVariableUnorderedPseudoContent = '--_p-text-list-g';
9703
9954
  const counter = 'p-text-list-counter';
9704
9955
  const getComponentCss$6 = (type) => {
9705
9956
  const isOrderedList = isListTypeOrdered(type);
@@ -9810,7 +10061,7 @@ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
9810
10061
  });
9811
10062
  };
9812
10063
 
9813
- const cssVarInternalTextareaScaling = '--p-internal-textarea-scaling';
10064
+ const cssVarInternalTextareaScaling = '--_p-textarea-a';
9814
10065
  /**
9815
10066
  * @css-variable {"name":"--p-textarea-field-sizing","description":"Controls CSS `field-sizing` for textarea.","defaultValue":"unset"}
9816
10067
  * @css-variable {"name":"--p-textarea-min-width","description":"Minimum width of the textarea.","defaultValue":"52px"}
@@ -9900,18 +10151,15 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
9900
10151
  });
9901
10152
  };
9902
10153
 
9903
- getMediaQueryMin('s');
9904
- getMediaQueryMax('s');
9905
-
9906
10154
  /**
9907
10155
  * @css-variable {"name": "--p-toast-position-bottom", "description": "Defines the spacing between the toast and the bottom edge of its container.", "defaultValue": "56px"}
9908
10156
  */
9909
10157
  const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
9910
- const cssVariablePositionBottomInternal = '--_p-a';
10158
+ const cssVariablePositionBottomInternal = '--_p-toast-a';
9911
10159
  const ANIMATION_DURATION = motionDurationModerate;
9912
10160
  const duration = ANIMATION_DURATION;
9913
10161
  const getKeyframes = (direction, outsideStyle) => {
9914
- const insideStyle = { opacity: 1, transform: 'translate3d(0,0,0)' };
10162
+ const insideStyle = { transform: 'translate3d(0,0,0)' };
9915
10163
  return direction === 'in'
9916
10164
  ? {
9917
10165
  from: outsideStyle,
@@ -9923,7 +10171,6 @@ const getKeyframes = (direction, outsideStyle) => {
9923
10171
  };
9924
10172
  };
9925
10173
  const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
9926
- opacity: 0,
9927
10174
  transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
9928
10175
  });
9929
10176
  const toastCloseClassName = 'close';
@@ -10033,6 +10280,7 @@ exports.getFunctionalComponentLabelAfterStyles = getFunctionalComponentLabelAfte
10033
10280
  exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
10034
10281
  exports.getFunctionalComponentLoadingMessageStyles = getFunctionalComponentLoadingMessageStyles;
10035
10282
  exports.getFunctionalComponentNoResultsOptionStyles = getFunctionalComponentNoResultsOptionStyles;
10283
+ exports.getFunctionalComponentNotificationBaseStyles = getFunctionalComponentNotificationBaseStyles;
10036
10284
  exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
10037
10285
  exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
10038
10286
  exports.getHeadingCss = getComponentCss$U;