@porsche-design-system/components-react 3.0.0-alpha.1 → 3.0.0-alpha.2

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 (115) hide show
  1. package/CHANGELOG.md +49 -3
  2. package/OSS_NOTICE +65234 -2280
  3. package/esm/lib/components/carousel.wrapper.js +3 -3
  4. package/esm/lib/components/content-wrapper.wrapper.js +1 -1
  5. package/esm/lib/components/divider.wrapper.js +1 -1
  6. package/esm/lib/components/model-signature.wrapper.js +22 -0
  7. package/esm/public-api.js +1 -0
  8. package/lib/components/carousel.wrapper.d.ts +21 -3
  9. package/lib/components/carousel.wrapper.js +3 -3
  10. package/lib/components/content-wrapper.wrapper.js +1 -1
  11. package/lib/components/divider.wrapper.js +1 -1
  12. package/lib/components/index.d.ts +1 -0
  13. package/lib/components/model-signature.wrapper.d.ts +38 -0
  14. package/lib/components/model-signature.wrapper.js +24 -0
  15. package/lib/components/text-list.wrapper.d.ts +6 -6
  16. package/lib/types.d.ts +76 -37
  17. package/package.json +2 -2
  18. package/public-api.js +2 -0
  19. package/ssr/components/dist/styles/esm/styles-entry.js +263 -188
  20. package/ssr/components/dist/utils/esm/utils-entry.js +23 -6
  21. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +4 -4
  22. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
  23. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
  24. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +37 -0
  25. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +2 -4
  26. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
  27. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +1 -0
  28. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
  29. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
  30. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +3 -2
  31. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
  32. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
  33. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
  34. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
  35. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
  36. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +1 -0
  37. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +17 -0
  38. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +1 -0
  39. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
  40. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
  41. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
  42. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -0
  43. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
  44. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
  45. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
  46. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  47. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  48. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  49. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
  50. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
  51. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
  52. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
  53. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -0
  54. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -3
  55. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +5 -7
  56. package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +2 -0
  57. package/ssr/esm/components/dist/styles/esm/styles-entry.js +236 -162
  58. package/ssr/esm/components/dist/utils/esm/utils-entry.js +21 -7
  59. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +4 -4
  60. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
  61. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
  62. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +35 -0
  63. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +2 -4
  64. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +3 -2
  65. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -2
  66. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -2
  67. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +3 -2
  68. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +3 -2
  69. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +4 -3
  70. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +2 -2
  71. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -2
  72. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +2 -2
  73. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +2 -2
  74. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -2
  75. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -2
  76. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -2
  77. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +2 -2
  78. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -2
  79. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +2 -2
  80. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +2 -2
  81. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
  82. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +3 -2
  83. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +3 -2
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +3 -2
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +3 -2
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +3 -2
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +2 -2
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +3 -2
  89. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +15 -0
  90. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +1 -0
  91. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
  92. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
  93. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
  94. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +1 -0
  95. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
  96. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
  97. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
  98. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
  99. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -0
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +2 -4
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +6 -8
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +1 -0
  109. package/ssr/lib/components/carousel.wrapper.d.ts +21 -3
  110. package/ssr/lib/components/index.d.ts +1 -0
  111. package/ssr/lib/components/model-signature.wrapper.d.ts +38 -0
  112. package/ssr/lib/components/text-list.wrapper.d.ts +6 -6
  113. package/ssr/lib/dsr-components/model-signature.d.ts +5 -0
  114. package/ssr/lib/dsr-components/text-list-item.d.ts +1 -2
  115. package/ssr/lib/types.d.ts +76 -37
@@ -238,6 +238,8 @@ const spacingStaticLarge = '32px';
238
238
 
239
239
  const spacingFluidXSmall = 'clamp(4px, 0.25vw + 3px, 8px)';
240
240
 
241
+ const spacingFluidSmall = 'clamp(8px, 0.5vw + 6px, 16px)';
242
+
241
243
  const themeDarkBackgroundShading = 'rgba(1, 2, 5, 0.67)';
242
244
 
243
245
  const _displayFontPartA = `${fontStyleItalic} ${fontVariant} ${fontWeightSemiBold$1} `;
@@ -266,6 +268,10 @@ const headingLargeStyle = {
266
268
  font: `${_headingFontPartA}${fontSizeHeadingLarge}${_headingFontPartB}`,
267
269
  };
268
270
 
271
+ const headingXLargeStyle = {
272
+ font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
273
+ };
274
+
269
275
  const headingXXLargeStyle = {
270
276
  font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
271
277
  };
@@ -5788,7 +5794,7 @@ const formatObjectOutput = (value) => {
5788
5794
 
5789
5795
  const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5790
5796
 
5791
- const getComponentCss$S = (size, compact, open, theme) => {
5797
+ const getComponentCss$T = (size, compact, open, theme) => {
5792
5798
  const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
5793
5799
  const border = `1px solid ${contrastLowColor}`;
5794
5800
  return getCss(Object.assign(Object.assign({ '@global': {
@@ -5944,12 +5950,12 @@ const widthMap = {
5944
5950
  extended: 'extended',
5945
5951
  basic: 'basic',
5946
5952
  };
5947
- const getComponentCss$R = (width) => {
5953
+ const getComponentCss$S = (width) => {
5948
5954
  return getCss({
5949
5955
  '@global': {
5950
5956
  ':host': Object.assign(Object.assign({
5951
5957
  // TODO: Why is nothing set as important here?
5952
- [bannerPositionTopVar]: bannerOffset, [bannerPositionBottomVar]: bannerOffset, display: 'block', position: `var(${bannerPositionTypeVar},fixed)`, zIndex: `var(${bannerZIndexVar},${BANNER_Z_INDEX})`, opacity: 0, left: 0, right: 0, willChange: 'opacity,transform' }, mergeDeep(addImportantToEachRule(Object.assign(Object.assign({}, getContentWrapperStyle(widthMap[width])), hostHiddenStyles)), {
5958
+ [bannerPositionTopVar]: bannerOffset, [bannerPositionBottomVar]: bannerOffset, position: `var(${bannerPositionTypeVar},fixed)`, zIndex: `var(${bannerZIndexVar},${BANNER_Z_INDEX})`, opacity: 0, left: 0, right: 0, willChange: 'opacity,transform' }, mergeDeep(addImportantToEachRule(Object.assign(Object.assign({}, getContentWrapperStyle(widthMap[width])), hostHiddenStyles)), {
5953
5959
  [mediaQueryBase]: {
5954
5960
  bottom: `var(${bannerPositionBottomVar})`,
5955
5961
  },
@@ -5977,37 +5983,19 @@ const getDirectionJssStyle = (direction) => {
5977
5983
  column: {
5978
5984
  flexFlow: 'column nowrap',
5979
5985
  alignItems: 'stretch',
5980
- marginRight: 0,
5981
- marginLeft: 0,
5982
5986
  },
5983
5987
  row: {
5984
5988
  flexFlow: 'row wrap',
5985
5989
  alignItems: 'center',
5986
- marginRight: `-${spacingStaticSmall}`,
5987
- marginLeft: `-${spacingStaticSmall}`,
5988
- },
5989
- };
5990
- return style[direction];
5991
- };
5992
- const getDirectionSlottedJssStyle = (direction) => {
5993
- const style = {
5994
- column: {
5995
- marginRight: 0,
5996
- marginLeft: 0,
5997
- },
5998
- row: {
5999
- marginRight: spacingStaticSmall,
6000
- marginLeft: spacingStaticSmall,
6001
5990
  },
6002
5991
  };
6003
5992
  return style[direction];
6004
5993
  };
6005
- const getComponentCss$Q = (direction) => {
5994
+ const getComponentCss$R = (direction) => {
6006
5995
  return getCss({
6007
5996
  '@global': {
6008
5997
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
6009
- div: Object.assign({ display: 'flex', marginTop: `-${spacingStaticMedium}` }, buildResponsiveStyles(direction, getDirectionJssStyle)),
6010
- '::slotted(*)': addImportantToEachRule(Object.assign({ marginTop: spacingStaticMedium }, buildResponsiveStyles(direction, getDirectionSlottedJssStyle))),
5998
+ div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getDirectionJssStyle)),
6011
5999
  },
6012
6000
  });
6013
6001
  };
@@ -6041,7 +6029,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6041
6029
  alignItems: stretchValue ? 'center' : 'flex-start',
6042
6030
  })), buildResponsiveStyles(size, (sizeValue) => ({
6043
6031
  fontSize: getFontSizeText(sizeValue),
6044
- })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6032
+ })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'absolute', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6045
6033
  right: hideLabelValue ? offsetVertical : offsetHorizontal,
6046
6034
  left: hideLabelValue || hasIcon ? offsetVertical : offsetHorizontal,
6047
6035
  }))), { borderRadius: borderRadiusSmall, transition: getTransition('background-color') }), (active && Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }))) }), (!isDisabledOrLoading &&
@@ -6069,7 +6057,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6069
6057
  }));
6070
6058
  };
6071
6059
 
6072
- const getComponentCss$P = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
6060
+ const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
6073
6061
  const hasIcon = hasVisibleIcon(icon, iconSource);
6074
6062
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
6075
6063
  appearance: 'none',
@@ -6167,7 +6155,7 @@ const getDisabledColors = (variant, loading, theme) => {
6167
6155
  };
6168
6156
  return colors[variant === 'tertiary' ? 'secondary' : variant];
6169
6157
  };
6170
- const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
6158
+ const getComponentCss$P = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
6171
6159
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
6172
6160
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
6173
6161
  const isPrimary = variant === 'primary';
@@ -6192,28 +6180,76 @@ const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loadi
6192
6180
  })) })));
6193
6181
  };
6194
6182
 
6183
+ const carouselTransitionDuration = 400;
6195
6184
  const bulletActiveClass = 'bullet--active';
6185
+ const selectorHeading = 'h2,::slotted([slot=heading])';
6186
+ const selectorDescription = 'p,::slotted([slot=description])';
6196
6187
  const mediaQueryS = getMediaQueryMin('s');
6197
- const mediaQueryXl$1 = getMediaQueryMin('xl');
6198
- const getComponentCss$N = (wrapContent, disablePagination, theme) => {
6199
- const { primaryColor, disabledColor } = getThemedColors(theme);
6188
+ const mediaQueryXXL = getMediaQueryMin('xxl');
6189
+ // we need an explicit grid template, therefor we need to calculate the button group width
6190
+ const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
6191
+ // + 2px, compensates hover offset of button-pure
6192
+ const buttonGroupWidth = `calc(${buttonSize$1} * 2 + ${spacingStaticXSmall} + 2px)`;
6193
+ // we don't need to abstract spacing definitions since component content-wrapper is deprecated and will be removed soon
6194
+ const gridColumn1FrS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
6195
+ const gridColumn1FrXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
6196
+ const spacingMap = {
6197
+ basic: {
6198
+ padding: `0 ${gridSafeZoneBase}`,
6199
+ [mediaQueryS]: {
6200
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${gridColumn1FrS})`,
6201
+ },
6202
+ [mediaQueryXXL]: {
6203
+ padding: `0 calc(${gridSafeZoneXXL} + ${gridGap} + ${gridColumn1FrXXL})`,
6204
+ },
6205
+ },
6206
+ extended: {
6207
+ padding: `0 ${gridSafeZoneBase}`,
6208
+ [mediaQueryXXL]: {
6209
+ padding: `0 ${gridSafeZoneXXL}`,
6210
+ },
6211
+ },
6212
+ };
6213
+ const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
6214
+ const { primaryColor, contrastMediumColor } = getThemedColors(theme);
6215
+ const isHeaderAlignCenter = alignHeader === 'center';
6200
6216
  return getCss(Object.assign({ '@global': {
6201
- ':host': addImportantToEachRule(Object.assign({ display: 'grid', maxWidth: gridWidthMax, marginLeft: 'auto', marginRight: 'auto', gap: pxToRemWithUnit(24), gridAutoFlow: 'row', [mediaQueryXl$1]: {
6202
- gap: pxToRemWithUnit(32),
6203
- } }, hostHiddenStyles)),
6204
- 'h2,::slotted([slot=heading])': addImportantToEachRule(Object.assign(Object.assign({}, headingMediumStyle), { margin: 0, color: primaryColor, maxWidth: pxToRemWithUnit(900) })),
6205
- 'p,::slotted([slot=description])': addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { margin: 0, color: primaryColor, maxWidth: pxToRemWithUnit(550), gridColumn: 1 })),
6217
+ ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', maxWidth: gridWidthMax,
6218
+ // relevant for viewport width > 2560px
6219
+ paddingLeft: `calc(50% - ${gridWidthMax} / 2)`, paddingRight: `calc(50% - ${gridWidthMax} / 2)`, boxSizing: 'content-box' }, hostHiddenStyles)),
6220
+ [selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
6221
+ [selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
6222
+ [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
6223
+ color: primaryColor,
6224
+ [mediaQueryS]: isHeaderAlignCenter
6225
+ ? {
6226
+ gridColumn: 2,
6227
+ textAlign: 'center', // relevant when text becomes multiline
6228
+ }
6229
+ : {
6230
+ gridColumn: '1 / 3',
6231
+ },
6232
+ }),
6233
+ }, header: Object.assign({ display: 'grid' }, mergeDeep(spacingMap[width], {
6234
+ [mediaQueryS]: Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
6235
+ justifyItems: 'center', // relevant when max-width of heading or description is reached
6236
+ })),
6237
+ })), nav: {
6238
+ display: 'none',
6239
+ [mediaQueryS]: {
6240
+ display: 'flex',
6241
+ gap: spacingStaticXSmall,
6242
+ gridArea: '1 / 3 / 3 / auto',
6243
+ alignItems: 'end',
6244
+ },
6245
+ }, btn: {
6246
+ padding: spacingStaticSmall,
6206
6247
  }, splide: {
6207
6248
  overflow: 'hidden',
6208
6249
  // visibility: 'hidden',
6209
- '&__track': Object.assign(Object.assign({ cursor: 'grab' }, (wrapContent &&
6210
- addImportantToEachRule({
6211
- // TODO: 0 calc(${gridSafeZoneBase} + ${gridGap})
6212
- padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
6213
- [mediaQueryXl$1]: {
6214
- padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
6215
- },
6216
- }))), { '&--draggable': {
6250
+ '&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(Object.assign(Object.assign({}, spacingMap[width]), { [getMediaQueryMax('xs')]: {
6251
+ paddingRight: `calc(${gridSafeZoneBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
6252
+ } }))), { '&--draggable': {
6217
6253
  userSelect: 'none',
6218
6254
  WebkitUserSelect: 'none',
6219
6255
  WebkitTouchCallout: 'none',
@@ -6221,42 +6257,21 @@ const getComponentCss$N = (wrapContent, disablePagination, theme) => {
6221
6257
  '&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
6222
6258
  '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
6223
6259
  '&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
6224
- },
6225
- // .splide.is-initialized,
6226
- // .splide.is-rendered {
6227
- // visibility: visible,
6228
- // }
6229
- // .splide.is-initialized:not(.is-active) .splide__list {
6230
- // display: block,
6231
- // }
6232
- header: {
6233
- display: 'grid',
6234
- gap: gridGap,
6235
- padding: wrapContent ? `0 ${gridSafeZoneBase}` : null,
6236
- [mediaQueryS]: {
6237
- gridTemplateColumns: `minmax(0px, 1fr) ${pxToRemWithUnit(80)}`,
6238
- position: 'relative',
6239
- minHeight: pxToRemWithUnit(40), // actual height of prev/next buttons
6240
- },
6241
- }, nav: {
6242
- display: 'none',
6243
- [mediaQueryS]: {
6244
- display: 'grid',
6245
- gridAutoFlow: 'column',
6246
- position: 'absolute',
6247
- right: wrapContent ? gridSafeZoneBase : 0,
6248
- bottom: 0,
6249
- },
6250
- }, btn: {
6251
- padding: pxToRemWithUnit(8),
6252
- } }, (disablePagination !== true && {
6253
- pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (value) => ({ display: value ? 'none' : 'grid' }))), { gridAutoColumns: pxToRemWithUnit(8), gridAutoFlow: 'column', justifyContent: 'center', gap: pxToRemWithUnit(8), height: pxToRemWithUnit(8) }),
6260
+ } }, (!disablePagination && {
6261
+ pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (disablePaginationValue) => ({
6262
+ display: disablePaginationValue ? 'none' : 'flex',
6263
+ }))), { justifyContent: 'center', gap: spacingStaticSmall }),
6254
6264
  bullet: {
6255
- borderRadius: pxToRemWithUnit(4),
6256
- background: disabledColor,
6265
+ borderRadius: borderRadiusSmall,
6266
+ background: contrastMediumColor,
6267
+ // set transition to have the same speed as switching slides in splide
6268
+ transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
6269
+ width: '8px',
6270
+ height: '8px',
6257
6271
  },
6258
6272
  [bulletActiveClass]: {
6259
6273
  background: primaryColor,
6274
+ width: '20px',
6260
6275
  },
6261
6276
  })));
6262
6277
  };
@@ -6337,7 +6352,7 @@ const getInlineSVGBackgroundImage = (path) => {
6337
6352
  return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
6338
6353
  };
6339
6354
 
6340
- const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
6355
+ const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
6341
6356
  const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
6342
6357
  const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
6343
6358
  return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
@@ -6357,7 +6372,7 @@ const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
6357
6372
  }));
6358
6373
  };
6359
6374
 
6360
- const getComponentCss$L = (width) => {
6375
+ const getComponentCss$M = (width) => {
6361
6376
  return getCss({
6362
6377
  '@global': {
6363
6378
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6422,7 +6437,7 @@ const sizeMap$5 = {
6422
6437
  medium: fontSizeDisplayMedium,
6423
6438
  large: fontSizeDisplayLarge,
6424
6439
  };
6425
- const getComponentCss$K = (size, align, color, ellipsis, theme) => {
6440
+ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
6426
6441
  return getCss({
6427
6442
  '@global': {
6428
6443
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6436,12 +6451,15 @@ const getComponentCss$K = (size, align, color, ellipsis, theme) => {
6436
6451
  });
6437
6452
  };
6438
6453
 
6439
- const getComponentCss$J = (color, orientation, theme) => {
6454
+ const getComponentCss$K = (color, orientation, theme) => {
6440
6455
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
6441
6456
  const colorMap = {
6442
6457
  'neutral-contrast-low': contrastLowColor,
6443
6458
  'neutral-contrast-medium': contrastMediumColor,
6444
6459
  'neutral-contrast-high': contrastHighColor,
6460
+ 'contrast-low': contrastLowColor,
6461
+ 'contrast-medium': contrastMediumColor,
6462
+ 'contrast-high': contrastHighColor,
6445
6463
  };
6446
6464
  return getCss({
6447
6465
  '@global': {
@@ -6451,7 +6469,7 @@ const getComponentCss$J = (color, orientation, theme) => {
6451
6469
  });
6452
6470
  };
6453
6471
 
6454
- const getComponentCss$I = (state, labelSize, hasLabel, theme) => {
6472
+ const getComponentCss$J = (state, labelSize, hasLabel, theme) => {
6455
6473
  return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
6456
6474
  margin: 0,
6457
6475
  padding: 0,
@@ -6475,7 +6493,7 @@ const flexItemWidths = {
6475
6493
  full: 100,
6476
6494
  auto: 'auto',
6477
6495
  };
6478
- const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
6496
+ const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
6479
6497
  return getCss({
6480
6498
  '@global': {
6481
6499
  ':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
@@ -6493,7 +6511,7 @@ const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
6493
6511
  });
6494
6512
  };
6495
6513
 
6496
- const getComponentCss$G = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
6514
+ const getComponentCss$H = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
6497
6515
  return getCss({
6498
6516
  '@global': {
6499
6517
  ':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
@@ -6515,7 +6533,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
6515
6533
  const gridItemWidths = [
6516
6534
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
6517
6535
  ];
6518
- const getComponentCss$F = (size, offset) => {
6536
+ const getComponentCss$G = (size, offset) => {
6519
6537
  return getCss({
6520
6538
  '@global': {
6521
6539
  ':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
@@ -6529,7 +6547,7 @@ const getComponentCss$F = (size, offset) => {
6529
6547
  };
6530
6548
 
6531
6549
  const gutter = `calc(${gridGap} / -2)`;
6532
- const getComponentCss$E = (direction, wrap) => {
6550
+ const getComponentCss$F = (direction, wrap) => {
6533
6551
  return getCss({
6534
6552
  '@global': {
6535
6553
  ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'flex', flex: 'auto', width: 'auto', marginLeft: gutter, marginRight: gutter }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))))),
@@ -6545,7 +6563,7 @@ const sizeMap$4 = {
6545
6563
  'xx-large': fontSizeHeadingXXLarge,
6546
6564
  'xxx-large': fontSizeHeadingXXXLarge,
6547
6565
  };
6548
- const getComponentCss$D = (size, align, color, ellipsis, theme) => {
6566
+ const getComponentCss$E = (size, align, color, ellipsis, theme) => {
6549
6567
  return getCss({
6550
6568
  '@global': {
6551
6569
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6598,7 +6616,7 @@ const getTextSizeJssStyle = (textSize) => {
6598
6616
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
6599
6617
  };
6600
6618
  };
6601
- const getComponentCss$C = (variant, align, color, ellipsis, theme) => {
6619
+ const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
6602
6620
  return getCss({
6603
6621
  '@global': {
6604
6622
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6620,34 +6638,34 @@ const sizeMap$3 = {
6620
6638
  'x-large': fontSizeTextXLarge,
6621
6639
  };
6622
6640
  // TODO, use Tuple to reduce chunk size
6623
- const filterLightPrimary = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6624
- const filterLightContrastLow = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6625
- const filterLightContrastMedium = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6626
- const filterLightContrastHigh = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6641
+ const filterLightPrimary$1 = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6642
+ const filterLightContrastLow$1 = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6643
+ const filterLightContrastMedium$1 = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6644
+ const filterLightContrastHigh$1 = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6627
6645
  const filterLightNotificationSuccess = 'invert(62%) sepia(61%) saturate(551%) hue-rotate(86deg) brightness(86%) contrast(80%)';
6628
6646
  const filterLightNotificationWarning = 'invert(74%) sepia(91%) saturate(343%) hue-rotate(348deg) brightness(92%) contrast(86%)';
6629
6647
  const filterLightNotificationError = 'invert(25%) sepia(62%) saturate(2003%) hue-rotate(335deg) brightness(100%) contrast(97%)';
6630
6648
  const filterLightNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6631
- const filterDarkPrimary = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6632
- const filterDarkContrastLow = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6633
- const filterDarkContrastMedium = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6634
- const filterDarkContrastHigh = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6649
+ const filterDarkPrimary$1 = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6650
+ const filterDarkContrastLow$1 = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6651
+ const filterDarkContrastMedium$1 = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6652
+ const filterDarkContrastHigh$1 = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6635
6653
  const filterDarkNotificationSuccess = 'invert(59%) sepia(22%) saturate(1342%) hue-rotate(86deg) brightness(96%) contrast(88%)';
6636
6654
  const filterDarkNotificationWarning = 'invert(72%) sepia(94%) saturate(303%) hue-rotate(354deg) brightness(89%) contrast(94%)';
6637
6655
  const filterDarkNotificationError = 'invert(28%) sepia(34%) saturate(3133%) hue-rotate(333deg) brightness(95%) contrast(100%)';
6638
6656
  const filterDarkNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6639
6657
  const filter = {
6640
6658
  light: {
6641
- primary: filterLightPrimary,
6642
- brand: filterLightPrimary,
6643
- default: filterLightPrimary,
6644
- disabled: filterLightContrastMedium,
6645
- 'contrast-low': filterLightContrastLow,
6646
- 'neutral-contrast-low': filterLightContrastLow,
6647
- 'contrast-medium': filterLightContrastMedium,
6648
- 'neutral-contrast-medium': filterLightContrastMedium,
6649
- 'contrast-high': filterLightContrastHigh,
6650
- 'neutral-contrast-high': filterLightContrastHigh,
6659
+ primary: filterLightPrimary$1,
6660
+ brand: filterLightPrimary$1,
6661
+ default: filterLightPrimary$1,
6662
+ disabled: filterLightContrastMedium$1,
6663
+ 'contrast-low': filterLightContrastLow$1,
6664
+ 'neutral-contrast-low': filterLightContrastLow$1,
6665
+ 'contrast-medium': filterLightContrastMedium$1,
6666
+ 'neutral-contrast-medium': filterLightContrastMedium$1,
6667
+ 'contrast-high': filterLightContrastHigh$1,
6668
+ 'neutral-contrast-high': filterLightContrastHigh$1,
6651
6669
  'notification-success': filterLightNotificationSuccess,
6652
6670
  'notification-warning': filterLightNotificationWarning,
6653
6671
  'notification-error': filterLightNotificationError,
@@ -6655,16 +6673,16 @@ const filter = {
6655
6673
  'notification-neutral': filterLightNotificationInfo, // deprecated
6656
6674
  },
6657
6675
  dark: {
6658
- primary: filterDarkPrimary,
6659
- brand: filterDarkPrimary,
6660
- default: filterDarkPrimary,
6661
- disabled: filterDarkContrastMedium,
6662
- 'contrast-low': filterDarkContrastLow,
6663
- 'neutral-contrast-low': filterDarkContrastLow,
6664
- 'contrast-medium': filterDarkContrastMedium,
6665
- 'neutral-contrast-medium': filterDarkContrastMedium,
6666
- 'contrast-high': filterDarkContrastHigh,
6667
- 'neutral-contrast-high': filterDarkContrastHigh,
6676
+ primary: filterDarkPrimary$1,
6677
+ brand: filterDarkPrimary$1,
6678
+ default: filterDarkPrimary$1,
6679
+ disabled: filterDarkContrastMedium$1,
6680
+ 'contrast-low': filterDarkContrastLow$1,
6681
+ 'neutral-contrast-low': filterDarkContrastLow$1,
6682
+ 'contrast-medium': filterDarkContrastMedium$1,
6683
+ 'neutral-contrast-medium': filterDarkContrastMedium$1,
6684
+ 'contrast-high': filterDarkContrastHigh$1,
6685
+ 'neutral-contrast-high': filterDarkContrastHigh$1,
6668
6686
  'notification-success': filterDarkNotificationSuccess,
6669
6687
  'notification-warning': filterDarkNotificationWarning,
6670
6688
  'notification-error': filterDarkNotificationError,
@@ -6682,7 +6700,7 @@ const forceRerenderAnimationStyle = {
6682
6700
  };
6683
6701
  const keyFramesLight = 'rerender-light';
6684
6702
  const keyFramesDark = 'rerender-dark';
6685
- const getComponentCss$B = (color, size, theme) => {
6703
+ const getComponentCss$C = (color, size, theme) => {
6686
6704
  const isColorInherit = color === 'inherit';
6687
6705
  const isSizeInherit = size === 'inherit';
6688
6706
  return getCss({
@@ -6748,7 +6766,7 @@ const getNotificationContentJssStyle = () => ({
6748
6766
  });
6749
6767
 
6750
6768
  const mediaQueryMaxS = getMediaQueryMax('s');
6751
- const getComponentCss$A = (state, hasAction, hasClose, theme) => {
6769
+ const getComponentCss$B = (state, hasAction, hasClose, theme) => {
6752
6770
  return getCss(Object.assign({ '@global': {
6753
6771
  ':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
6754
6772
  h5: headingSmallStyle,
@@ -6766,7 +6784,7 @@ const getComponentCss$A = (state, hasAction, hasClose, theme) => {
6766
6784
  })));
6767
6785
  };
6768
6786
 
6769
- const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6787
+ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6770
6788
  const { focusColor } = getThemedColors(theme);
6771
6789
  const hasIcon = hasVisibleIcon(icon, iconSource);
6772
6790
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
@@ -6798,7 +6816,7 @@ const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, a
6798
6816
  } })));
6799
6817
  };
6800
6818
 
6801
- const getComponentCss$y = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
6819
+ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
6802
6820
  const { focusColor } = getThemedColors(theme);
6803
6821
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
6804
6822
  '@global': addImportantToEachRule({
@@ -6871,7 +6889,7 @@ const sizeMap$2 = {
6871
6889
  },
6872
6890
  default: { fontSize: '1.25rem' },
6873
6891
  };
6874
- const getComponentCss$x = (aspectRatio, size, weight, align, compact, hasGradient) => {
6892
+ const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradient) => {
6875
6893
  const isTopAligned = align === 'top';
6876
6894
  const paddingSizeXS = pxToRemWithUnit(24);
6877
6895
  const gradientPadding = pxToRemWithUnit(72);
@@ -6925,7 +6943,7 @@ const baseSizes = {
6925
6943
  height: '72px',
6926
6944
  },
6927
6945
  };
6928
- const getComponentCss$w = (size) => {
6946
+ const getComponentCss$x = (size) => {
6929
6947
  return getCss({
6930
6948
  '@global': {
6931
6949
  ':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
@@ -6993,7 +7011,7 @@ const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
6993
7011
  marginBottom: marginPx,
6994
7012
  } });
6995
7013
  };
6996
- const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7014
+ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
6997
7015
  const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
6998
7016
  return getCss(Object.assign(Object.assign({ '@global': {
6999
7017
  ':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle()), { zIndex: MODAL_Z_INDEX, display: 'flex', alignItems: 'center', justifyContent: 'center', flexWrap: 'wrap' }), (open
@@ -7051,6 +7069,41 @@ const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7051
7069
  } }));
7052
7070
  };
7053
7071
 
7072
+ const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
7073
+ // copied from icon-styles
7074
+ const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
7075
+ const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
7076
+ const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
7077
+ const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
7078
+ const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
7079
+ const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
7080
+ const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
7081
+ const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
7082
+ const colorToFilterMap = {
7083
+ light: {
7084
+ primary: filterLightPrimary,
7085
+ 'contrast-low': filterLightContrastLow,
7086
+ 'contrast-medium': filterLightContrastMedium,
7087
+ 'contrast-high': filterLightContrastHigh,
7088
+ },
7089
+ dark: {
7090
+ primary: filterDarkPrimary,
7091
+ 'contrast-low': filterDarkContrastLow,
7092
+ 'contrast-medium': filterDarkContrastMedium,
7093
+ 'contrast-high': filterDarkContrastHigh,
7094
+ },
7095
+ };
7096
+ const getComponentCss$v = (size, color, theme) => {
7097
+ const isSizeInherit = size === 'inherit';
7098
+ const isColorInherit = color === 'inherit';
7099
+ return getCss({
7100
+ '@global': {
7101
+ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
7102
+ img: Object.assign(Object.assign({ display: 'block', pointerEvents: 'none' }, (!isColorInherit && { filter: colorToFilterMap[theme][color] })), (isSizeInherit && { height: size })),
7103
+ },
7104
+ });
7105
+ };
7106
+
7054
7107
  const mediaQueryMinS = getMediaQueryMin('s');
7055
7108
  // button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
7056
7109
  // and text scale 200% works (almost) on mobile viewports too
@@ -7254,17 +7307,24 @@ const gradientColorMap = {
7254
7307
  };
7255
7308
  const getGradient = (theme, gradientColorTheme) => {
7256
7309
  const gradientColor = gradientColorMap[theme][gradientColorTheme];
7257
- return (`rgba(${gradientColor},1) 0%,` +
7258
- `rgba(${gradientColor},0.9) 10%,` +
7259
- `rgba(${gradientColor},0.668116) 40%,` +
7260
- `rgba(${gradientColor},0.331884) 60%,` +
7261
- `rgba(${gradientColor},0.0816599) 80%,` +
7310
+ return (`rgba(${gradientColor},1) 20%,` +
7311
+ `rgba(${gradientColor},0.6) 48%,` +
7312
+ `rgba(${gradientColor},0.3) 68%,` +
7262
7313
  `rgba(${gradientColor},0)`);
7263
7314
  };
7264
7315
  const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
7265
- const { backgroundColor, backgroundSurfaceColor, focusColor } = getThemedColors('light');
7266
- const { hoverColor } = getThemedColors(theme);
7316
+ const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
7267
7317
  const isDarkTheme = isThemeDark(theme);
7318
+ const backgroundColorMap = {
7319
+ dark: {
7320
+ default: backgroundSurfaceColor,
7321
+ surface: backgroundColor,
7322
+ },
7323
+ light: {
7324
+ default: backgroundColor,
7325
+ surface: backgroundSurfaceColor,
7326
+ },
7327
+ };
7268
7328
  const actionPrevNextStyles = {
7269
7329
  position: 'relative',
7270
7330
  padding: '4px 0',
@@ -7275,19 +7335,17 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7275
7335
  return getCss({
7276
7336
  '@global': {
7277
7337
  ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
7278
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: gradientColorTheme === 'surface' ? backgroundSurfaceColor : backgroundColor, borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
7338
+ button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: backgroundColorMap[theme][gradientColorTheme], borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
7279
7339
  transition: getTransition('background-color'),
7280
- '&:hover': Object.assign({ background: hoverColor }, (isDarkTheme && {
7281
- '& > .icon': {
7282
- filter: 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)', // TODO: this is not shared from icon?
7283
- },
7284
- })),
7340
+ '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7285
7341
  })),
7286
7342
  },
7287
- root: Object.assign(Object.assign({ display: 'grid', gridTemplateColumns: '48px minmax(0, 1fr) 48px' }, hoverMediaQuery({
7288
- // distinguish gradient width on mobile and desktop
7289
- gridTemplateColumns: '64px minmax(0, 1fr) 64px',
7290
- })), { margin: '0 -4px', height: 'inherit' }),
7343
+ root: {
7344
+ display: 'grid',
7345
+ gridTemplateColumns: `calc(${fontLineHeight} + 24px) minmax(0, 1fr) calc(${fontLineHeight} + 24px)`,
7346
+ margin: '0 -4px',
7347
+ height: 'inherit',
7348
+ },
7291
7349
  'scroll-area': {
7292
7350
  gridArea: '1 / 1 / 1 / -1',
7293
7351
  padding: '4px',
@@ -7799,7 +7857,9 @@ const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.re
7799
7857
  const getComponentCss$b = (size, weight, theme) => {
7800
7858
  const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
7801
7859
  return getCss({
7802
- '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative', transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7860
+ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
7861
+ // TODO: probably not needed because there is no style with position: fixed
7862
+ transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7803
7863
  // would be nice to use shared selector like '::slotted([role])'
7804
7864
  // but this doesn't work reliably when rendering in browser
7805
7865
  [transformSelector('::slotted([role])')]: {
@@ -8078,36 +8138,50 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8078
8138
  'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
8079
8139
  };
8080
8140
 
8081
- const cssVariableOrderedSuffix = '--p-internal-text-list-item-ordered-suffix';
8082
- const cssVariableUnorderedWidth = '--p-internal-text-list-item-unordered-width';
8083
- const cssVariableUnorderedHeight = '--p-internal-text-list-item-unordered-height';
8084
- const cssVariableUnorderedTop = '--p-internal-text-list-item-unordered-top';
8085
- const getComponentCss$5 = (listType, orderType) => {
8086
- const isOrdered = listType === 'ordered';
8087
- const beforeJssStyles = {
8088
- position: 'absolute',
8089
- left: 0,
8090
- };
8141
+ const isListTypeOrdered = (listType) => listType === 'ordered';
8142
+ const isOrderTypeNumbered = (orderType) => orderType === 'numbered';
8143
+
8144
+ const cssVariablePseudoSuffix = '--p-internal-text-list-pseudo-suffix';
8145
+ const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
8146
+ const cssVariablePaddingBottom = '--p-internal-text-list-padding-bottom';
8147
+ const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-padding-left';
8148
+ const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
8149
+ const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
8150
+ const counter = 'p-text-list-counter';
8151
+ const getComponentCss$5 = (listType, orderType, theme) => {
8152
+ const isOrderedList = isListTypeOrdered(listType);
8091
8153
  return getCss({
8092
8154
  '@global': {
8093
- ':host': addImportantToEachRule(Object.assign(Object.assign({ position: 'relative', display: 'list-item', color: 'inherit', listStyleType: 'none', paddingLeft: pxToRemWithUnit(isOrdered ? 40 : 24) }, hostHiddenStyles), { '&:before': isOrdered
8094
- ? Object.assign(Object.assign(Object.assign({}, beforeJssStyles), { content: `counters(section,".",${orderType === 'numbered' ? 'decimal' : 'lower-latin'}) var(${cssVariableOrderedSuffix},".")`, top: 0, width: pxToRemWithUnit(24), height: 'auto', counterIncrement: 'section', textAlign: 'right', backgroundColor: 'transparent' }), textSmallStyle) : Object.assign(Object.assign({}, beforeJssStyles), { content: '""', width: `var(${cssVariableUnorderedWidth},${pxToRemWithUnit(4)})`, height: `var(${cssVariableUnorderedHeight},${pxToRemWithUnit(4)})`, top: `var(${cssVariableUnorderedTop},calc(1.5em / 2 - 0.125em))`, backgroundColor: 'currentColor' }) })),
8095
- '::slotted(*)': {
8096
- [cssVariableOrderedSuffix]: '""',
8097
- [cssVariableUnorderedWidth]: pxToRemWithUnit(8),
8098
- [cssVariableUnorderedHeight]: '1px',
8099
- [cssVariableUnorderedTop]: 'calc(1.5em / 2)',
8100
- },
8155
+ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
8156
+ 'ol,ul': Object.assign(Object.assign({}, textSmallStyle), { color: getThemedColors(theme).primaryColor, margin: 0, padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
8157
+ ? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
8158
+ : `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "" (root unordered list)
8159
+ }`, listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')` }),
8160
+ // css selector for text-list-item
8161
+ '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariablePaddingTop]: spacingStaticXSmall,
8162
+ // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
8163
+ [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
8164
+ '&::before': {
8165
+ content: `counters(${counter},'.',${isOrderTypeNumbered(orderType) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
8166
+ counterIncrement: counter,
8167
+ position: 'absolute',
8168
+ top: 0,
8169
+ left: 0,
8170
+ transform: 'translate(-100%,0)',
8171
+ },
8172
+ }))),
8101
8173
  },
8102
8174
  });
8103
8175
  };
8104
8176
 
8105
- const getComponentCss$4 = (theme) => {
8177
+ const getComponentCss$4 = () => {
8106
8178
  return getCss({
8107
- '@global': {
8108
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: 'section' }, hostHiddenStyles))),
8109
- '[role]': Object.assign({ display: 'block', padding: 0, margin: 0, color: getThemedColors(theme).primaryColor }, textSmallStyle),
8110
- },
8179
+ '@global': addImportantToEachRule({
8180
+ ':host': Object.assign({ display: 'list-item', position: 'relative', font: 'inherit', color: 'inherit', listStyleType: 'inherit', paddingLeft: spacingStaticMedium }, hostHiddenStyles),
8181
+ '::slotted(*)': {
8182
+ [cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
8183
+ },
8184
+ }),
8111
8185
  });
8112
8186
  };
8113
8187
 
@@ -8183,33 +8257,34 @@ const getComponentCss = () => {
8183
8257
  });
8184
8258
  };
8185
8259
 
8186
- exports.getAccordionCss = getComponentCss$S;
8187
- exports.getBannerCss = getComponentCss$R;
8188
- exports.getButtonCss = getComponentCss$O;
8189
- exports.getButtonGroupCss = getComponentCss$Q;
8190
- exports.getButtonPureCss = getComponentCss$P;
8191
- exports.getCarouselCss = getComponentCss$N;
8192
- exports.getCheckboxWrapperCss = getComponentCss$M;
8193
- exports.getContentWrapperCss = getComponentCss$L;
8194
- exports.getDisplayCss = getComponentCss$K;
8195
- exports.getDividerCss = getComponentCss$J;
8196
- exports.getFieldsetWrapperCss = getComponentCss$I;
8197
- exports.getFlexCss = getComponentCss$G;
8198
- exports.getFlexItemCss = getComponentCss$H;
8260
+ exports.getAccordionCss = getComponentCss$T;
8261
+ exports.getBannerCss = getComponentCss$S;
8262
+ exports.getButtonCss = getComponentCss$P;
8263
+ exports.getButtonGroupCss = getComponentCss$R;
8264
+ exports.getButtonPureCss = getComponentCss$Q;
8265
+ exports.getCarouselCss = getComponentCss$O;
8266
+ exports.getCheckboxWrapperCss = getComponentCss$N;
8267
+ exports.getContentWrapperCss = getComponentCss$M;
8268
+ exports.getDisplayCss = getComponentCss$L;
8269
+ exports.getDividerCss = getComponentCss$K;
8270
+ exports.getFieldsetWrapperCss = getComponentCss$J;
8271
+ exports.getFlexCss = getComponentCss$H;
8272
+ exports.getFlexItemCss = getComponentCss$I;
8199
8273
  exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
8200
8274
  exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
8201
- exports.getGridCss = getComponentCss$E;
8202
- exports.getGridItemCss = getComponentCss$F;
8203
- exports.getHeadingCss = getComponentCss$D;
8204
- exports.getHeadlineCss = getComponentCss$C;
8205
- exports.getIconCss = getComponentCss$B;
8206
- exports.getInlineNotificationCss = getComponentCss$A;
8207
- exports.getLinkCss = getComponentCss$y;
8208
- exports.getLinkPureCss = getComponentCss$z;
8209
- exports.getLinkSocialCss = getComponentCss$y;
8210
- exports.getLinkTileCss = getComponentCss$x;
8211
- exports.getMarqueCss = getComponentCss$w;
8212
- exports.getModalCss = getComponentCss$v;
8275
+ exports.getGridCss = getComponentCss$F;
8276
+ exports.getGridItemCss = getComponentCss$G;
8277
+ exports.getHeadingCss = getComponentCss$E;
8278
+ exports.getHeadlineCss = getComponentCss$D;
8279
+ exports.getIconCss = getComponentCss$C;
8280
+ exports.getInlineNotificationCss = getComponentCss$B;
8281
+ exports.getLinkCss = getComponentCss$z;
8282
+ exports.getLinkPureCss = getComponentCss$A;
8283
+ exports.getLinkSocialCss = getComponentCss$z;
8284
+ exports.getLinkTileCss = getComponentCss$y;
8285
+ exports.getMarqueCss = getComponentCss$x;
8286
+ exports.getModalCss = getComponentCss$w;
8287
+ exports.getModelSignatureCss = getComponentCss$v;
8213
8288
  exports.getPaginationCss = getComponentCss$u;
8214
8289
  exports.getPopoverCss = getComponentCss$t;
8215
8290
  exports.getRadioButtonWrapperCss = getComponentCss$s;
@@ -8235,7 +8310,7 @@ exports.getTagCss = getComponentCss$7;
8235
8310
  exports.getTagDismissibleCss = getComponentCss$8;
8236
8311
  exports.getTextCss = getComponentCss$3;
8237
8312
  exports.getTextFieldWrapperCss = getComponentCss$6;
8238
- exports.getTextListCss = getComponentCss$4;
8239
- exports.getTextListItemCss = getComponentCss$5;
8313
+ exports.getTextListCss = getComponentCss$5;
8314
+ exports.getTextListItemCss = getComponentCss$4;
8240
8315
  exports.getTextareaWrapperCss = getComponentCss$2;
8241
8316
  exports.getToastCss = getComponentCss;