@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
@@ -236,6 +236,8 @@ const spacingStaticLarge = '32px';
236
236
 
237
237
  const spacingFluidXSmall = 'clamp(4px, 0.25vw + 3px, 8px)';
238
238
 
239
+ const spacingFluidSmall = 'clamp(8px, 0.5vw + 6px, 16px)';
240
+
239
241
  const themeDarkBackgroundShading = 'rgba(1, 2, 5, 0.67)';
240
242
 
241
243
  const _displayFontPartA = `${fontStyleItalic} ${fontVariant} ${fontWeightSemiBold$1} `;
@@ -264,6 +266,10 @@ const headingLargeStyle = {
264
266
  font: `${_headingFontPartA}${fontSizeHeadingLarge}${_headingFontPartB}`,
265
267
  };
266
268
 
269
+ const headingXLargeStyle = {
270
+ font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
271
+ };
272
+
267
273
  const headingXXLargeStyle = {
268
274
  font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
269
275
  };
@@ -5786,7 +5792,7 @@ const formatObjectOutput = (value) => {
5786
5792
 
5787
5793
  const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
5788
5794
 
5789
- const getComponentCss$S = (size, compact, open, theme) => {
5795
+ const getComponentCss$T = (size, compact, open, theme) => {
5790
5796
  const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
5791
5797
  const border = `1px solid ${contrastLowColor}`;
5792
5798
  return getCss(Object.assign(Object.assign({ '@global': {
@@ -5942,12 +5948,12 @@ const widthMap = {
5942
5948
  extended: 'extended',
5943
5949
  basic: 'basic',
5944
5950
  };
5945
- const getComponentCss$R = (width) => {
5951
+ const getComponentCss$S = (width) => {
5946
5952
  return getCss({
5947
5953
  '@global': {
5948
5954
  ':host': Object.assign(Object.assign({
5949
5955
  // TODO: Why is nothing set as important here?
5950
- [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)), {
5956
+ [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)), {
5951
5957
  [mediaQueryBase]: {
5952
5958
  bottom: `var(${bannerPositionBottomVar})`,
5953
5959
  },
@@ -5975,37 +5981,19 @@ const getDirectionJssStyle = (direction) => {
5975
5981
  column: {
5976
5982
  flexFlow: 'column nowrap',
5977
5983
  alignItems: 'stretch',
5978
- marginRight: 0,
5979
- marginLeft: 0,
5980
5984
  },
5981
5985
  row: {
5982
5986
  flexFlow: 'row wrap',
5983
5987
  alignItems: 'center',
5984
- marginRight: `-${spacingStaticSmall}`,
5985
- marginLeft: `-${spacingStaticSmall}`,
5986
- },
5987
- };
5988
- return style[direction];
5989
- };
5990
- const getDirectionSlottedJssStyle = (direction) => {
5991
- const style = {
5992
- column: {
5993
- marginRight: 0,
5994
- marginLeft: 0,
5995
- },
5996
- row: {
5997
- marginRight: spacingStaticSmall,
5998
- marginLeft: spacingStaticSmall,
5999
5988
  },
6000
5989
  };
6001
5990
  return style[direction];
6002
5991
  };
6003
- const getComponentCss$Q = (direction) => {
5992
+ const getComponentCss$R = (direction) => {
6004
5993
  return getCss({
6005
5994
  '@global': {
6006
5995
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
6007
- div: Object.assign({ display: 'flex', marginTop: `-${spacingStaticMedium}` }, buildResponsiveStyles(direction, getDirectionJssStyle)),
6008
- '::slotted(*)': addImportantToEachRule(Object.assign({ marginTop: spacingStaticMedium }, buildResponsiveStyles(direction, getDirectionSlottedJssStyle))),
5996
+ div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getDirectionJssStyle)),
6009
5997
  },
6010
5998
  });
6011
5999
  };
@@ -6039,7 +6027,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6039
6027
  alignItems: stretchValue ? 'center' : 'flex-start',
6040
6028
  })), buildResponsiveStyles(size, (sizeValue) => ({
6041
6029
  fontSize: getFontSizeText(sizeValue),
6042
- })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'fixed', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6030
+ })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'absolute', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
6043
6031
  right: hideLabelValue ? offsetVertical : offsetHorizontal,
6044
6032
  left: hideLabelValue || hasIcon ? offsetVertical : offsetHorizontal,
6045
6033
  }))), { borderRadius: borderRadiusSmall, transition: getTransition('background-color') }), (active && Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }))) }), (!isDisabledOrLoading &&
@@ -6067,7 +6055,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
6067
6055
  }));
6068
6056
  };
6069
6057
 
6070
- const getComponentCss$P = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
6058
+ const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
6071
6059
  const hasIcon = hasVisibleIcon(icon, iconSource);
6072
6060
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
6073
6061
  appearance: 'none',
@@ -6165,7 +6153,7 @@ const getDisabledColors = (variant, loading, theme) => {
6165
6153
  };
6166
6154
  return colors[variant === 'tertiary' ? 'secondary' : variant];
6167
6155
  };
6168
- const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
6156
+ const getComponentCss$P = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
6169
6157
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
6170
6158
  const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
6171
6159
  const isPrimary = variant === 'primary';
@@ -6190,28 +6178,76 @@ const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loadi
6190
6178
  })) })));
6191
6179
  };
6192
6180
 
6181
+ const carouselTransitionDuration = 400;
6193
6182
  const bulletActiveClass = 'bullet--active';
6183
+ const selectorHeading = 'h2,::slotted([slot=heading])';
6184
+ const selectorDescription = 'p,::slotted([slot=description])';
6194
6185
  const mediaQueryS = getMediaQueryMin('s');
6195
- const mediaQueryXl$1 = getMediaQueryMin('xl');
6196
- const getComponentCss$N = (wrapContent, disablePagination, theme) => {
6197
- const { primaryColor, disabledColor } = getThemedColors(theme);
6186
+ const mediaQueryXXL = getMediaQueryMin('xxl');
6187
+ // we need an explicit grid template, therefor we need to calculate the button group width
6188
+ const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
6189
+ // + 2px, compensates hover offset of button-pure
6190
+ const buttonGroupWidth = `calc(${buttonSize$1} * 2 + ${spacingStaticXSmall} + 2px)`;
6191
+ // we don't need to abstract spacing definitions since component content-wrapper is deprecated and will be removed soon
6192
+ const gridColumn1FrS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
6193
+ const gridColumn1FrXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
6194
+ const spacingMap = {
6195
+ basic: {
6196
+ padding: `0 ${gridSafeZoneBase}`,
6197
+ [mediaQueryS]: {
6198
+ padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${gridColumn1FrS})`,
6199
+ },
6200
+ [mediaQueryXXL]: {
6201
+ padding: `0 calc(${gridSafeZoneXXL} + ${gridGap} + ${gridColumn1FrXXL})`,
6202
+ },
6203
+ },
6204
+ extended: {
6205
+ padding: `0 ${gridSafeZoneBase}`,
6206
+ [mediaQueryXXL]: {
6207
+ padding: `0 ${gridSafeZoneXXL}`,
6208
+ },
6209
+ },
6210
+ };
6211
+ const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
6212
+ const { primaryColor, contrastMediumColor } = getThemedColors(theme);
6213
+ const isHeaderAlignCenter = alignHeader === 'center';
6198
6214
  return getCss(Object.assign({ '@global': {
6199
- ':host': addImportantToEachRule(Object.assign({ display: 'grid', maxWidth: gridWidthMax, marginLeft: 'auto', marginRight: 'auto', gap: pxToRemWithUnit(24), gridAutoFlow: 'row', [mediaQueryXl$1]: {
6200
- gap: pxToRemWithUnit(32),
6201
- } }, hostHiddenStyles)),
6202
- 'h2,::slotted([slot=heading])': addImportantToEachRule(Object.assign(Object.assign({}, headingMediumStyle), { margin: 0, color: primaryColor, maxWidth: pxToRemWithUnit(900) })),
6203
- 'p,::slotted([slot=description])': addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { margin: 0, color: primaryColor, maxWidth: pxToRemWithUnit(550), gridColumn: 1 })),
6215
+ ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', maxWidth: gridWidthMax,
6216
+ // relevant for viewport width > 2560px
6217
+ paddingLeft: `calc(50% - ${gridWidthMax} / 2)`, paddingRight: `calc(50% - ${gridWidthMax} / 2)`, boxSizing: 'content-box' }, hostHiddenStyles)),
6218
+ [selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
6219
+ [selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
6220
+ [`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
6221
+ color: primaryColor,
6222
+ [mediaQueryS]: isHeaderAlignCenter
6223
+ ? {
6224
+ gridColumn: 2,
6225
+ textAlign: 'center', // relevant when text becomes multiline
6226
+ }
6227
+ : {
6228
+ gridColumn: '1 / 3',
6229
+ },
6230
+ }),
6231
+ }, header: Object.assign({ display: 'grid' }, mergeDeep(spacingMap[width], {
6232
+ [mediaQueryS]: Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
6233
+ justifyItems: 'center', // relevant when max-width of heading or description is reached
6234
+ })),
6235
+ })), nav: {
6236
+ display: 'none',
6237
+ [mediaQueryS]: {
6238
+ display: 'flex',
6239
+ gap: spacingStaticXSmall,
6240
+ gridArea: '1 / 3 / 3 / auto',
6241
+ alignItems: 'end',
6242
+ },
6243
+ }, btn: {
6244
+ padding: spacingStaticSmall,
6204
6245
  }, splide: {
6205
6246
  overflow: 'hidden',
6206
6247
  // visibility: 'hidden',
6207
- '&__track': Object.assign(Object.assign({ cursor: 'grab' }, (wrapContent &&
6208
- addImportantToEachRule({
6209
- // TODO: 0 calc(${gridSafeZoneBase} + ${gridGap})
6210
- padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
6211
- [mediaQueryXl$1]: {
6212
- padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
6213
- },
6214
- }))), { '&--draggable': {
6248
+ '&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(Object.assign(Object.assign({}, spacingMap[width]), { [getMediaQueryMax('xs')]: {
6249
+ paddingRight: `calc(${gridSafeZoneBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
6250
+ } }))), { '&--draggable': {
6215
6251
  userSelect: 'none',
6216
6252
  WebkitUserSelect: 'none',
6217
6253
  WebkitTouchCallout: 'none',
@@ -6219,42 +6255,21 @@ const getComponentCss$N = (wrapContent, disablePagination, theme) => {
6219
6255
  '&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
6220
6256
  '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
6221
6257
  '&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
6222
- },
6223
- // .splide.is-initialized,
6224
- // .splide.is-rendered {
6225
- // visibility: visible,
6226
- // }
6227
- // .splide.is-initialized:not(.is-active) .splide__list {
6228
- // display: block,
6229
- // }
6230
- header: {
6231
- display: 'grid',
6232
- gap: gridGap,
6233
- padding: wrapContent ? `0 ${gridSafeZoneBase}` : null,
6234
- [mediaQueryS]: {
6235
- gridTemplateColumns: `minmax(0px, 1fr) ${pxToRemWithUnit(80)}`,
6236
- position: 'relative',
6237
- minHeight: pxToRemWithUnit(40), // actual height of prev/next buttons
6238
- },
6239
- }, nav: {
6240
- display: 'none',
6241
- [mediaQueryS]: {
6242
- display: 'grid',
6243
- gridAutoFlow: 'column',
6244
- position: 'absolute',
6245
- right: wrapContent ? gridSafeZoneBase : 0,
6246
- bottom: 0,
6247
- },
6248
- }, btn: {
6249
- padding: pxToRemWithUnit(8),
6250
- } }, (disablePagination !== true && {
6251
- 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) }),
6258
+ } }, (!disablePagination && {
6259
+ pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (disablePaginationValue) => ({
6260
+ display: disablePaginationValue ? 'none' : 'flex',
6261
+ }))), { justifyContent: 'center', gap: spacingStaticSmall }),
6252
6262
  bullet: {
6253
- borderRadius: pxToRemWithUnit(4),
6254
- background: disabledColor,
6263
+ borderRadius: borderRadiusSmall,
6264
+ background: contrastMediumColor,
6265
+ // set transition to have the same speed as switching slides in splide
6266
+ transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
6267
+ width: '8px',
6268
+ height: '8px',
6255
6269
  },
6256
6270
  [bulletActiveClass]: {
6257
6271
  background: primaryColor,
6272
+ width: '20px',
6258
6273
  },
6259
6274
  })));
6260
6275
  };
@@ -6335,7 +6350,7 @@ const getInlineSVGBackgroundImage = (path) => {
6335
6350
  return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
6336
6351
  };
6337
6352
 
6338
- const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
6353
+ const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
6339
6354
  const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
6340
6355
  const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
6341
6356
  return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
@@ -6355,7 +6370,7 @@ const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
6355
6370
  }));
6356
6371
  };
6357
6372
 
6358
- const getComponentCss$L = (width) => {
6373
+ const getComponentCss$M = (width) => {
6359
6374
  return getCss({
6360
6375
  '@global': {
6361
6376
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6420,7 +6435,7 @@ const sizeMap$5 = {
6420
6435
  medium: fontSizeDisplayMedium,
6421
6436
  large: fontSizeDisplayLarge,
6422
6437
  };
6423
- const getComponentCss$K = (size, align, color, ellipsis, theme) => {
6438
+ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
6424
6439
  return getCss({
6425
6440
  '@global': {
6426
6441
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6434,12 +6449,15 @@ const getComponentCss$K = (size, align, color, ellipsis, theme) => {
6434
6449
  });
6435
6450
  };
6436
6451
 
6437
- const getComponentCss$J = (color, orientation, theme) => {
6452
+ const getComponentCss$K = (color, orientation, theme) => {
6438
6453
  const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
6439
6454
  const colorMap = {
6440
6455
  'neutral-contrast-low': contrastLowColor,
6441
6456
  'neutral-contrast-medium': contrastMediumColor,
6442
6457
  'neutral-contrast-high': contrastHighColor,
6458
+ 'contrast-low': contrastLowColor,
6459
+ 'contrast-medium': contrastMediumColor,
6460
+ 'contrast-high': contrastHighColor,
6443
6461
  };
6444
6462
  return getCss({
6445
6463
  '@global': {
@@ -6449,7 +6467,7 @@ const getComponentCss$J = (color, orientation, theme) => {
6449
6467
  });
6450
6468
  };
6451
6469
 
6452
- const getComponentCss$I = (state, labelSize, hasLabel, theme) => {
6470
+ const getComponentCss$J = (state, labelSize, hasLabel, theme) => {
6453
6471
  return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
6454
6472
  margin: 0,
6455
6473
  padding: 0,
@@ -6473,7 +6491,7 @@ const flexItemWidths = {
6473
6491
  full: 100,
6474
6492
  auto: 'auto',
6475
6493
  };
6476
- const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
6494
+ const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
6477
6495
  return getCss({
6478
6496
  '@global': {
6479
6497
  ':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
@@ -6491,7 +6509,7 @@ const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
6491
6509
  });
6492
6510
  };
6493
6511
 
6494
- const getComponentCss$G = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
6512
+ const getComponentCss$H = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
6495
6513
  return getCss({
6496
6514
  '@global': {
6497
6515
  ':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
@@ -6513,7 +6531,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
6513
6531
  const gridItemWidths = [
6514
6532
  0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
6515
6533
  ];
6516
- const getComponentCss$F = (size, offset) => {
6534
+ const getComponentCss$G = (size, offset) => {
6517
6535
  return getCss({
6518
6536
  '@global': {
6519
6537
  ':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
@@ -6527,7 +6545,7 @@ const getComponentCss$F = (size, offset) => {
6527
6545
  };
6528
6546
 
6529
6547
  const gutter = `calc(${gridGap} / -2)`;
6530
- const getComponentCss$E = (direction, wrap) => {
6548
+ const getComponentCss$F = (direction, wrap) => {
6531
6549
  return getCss({
6532
6550
  '@global': {
6533
6551
  ':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 }))))),
@@ -6543,7 +6561,7 @@ const sizeMap$4 = {
6543
6561
  'xx-large': fontSizeHeadingXXLarge,
6544
6562
  'xxx-large': fontSizeHeadingXXXLarge,
6545
6563
  };
6546
- const getComponentCss$D = (size, align, color, ellipsis, theme) => {
6564
+ const getComponentCss$E = (size, align, color, ellipsis, theme) => {
6547
6565
  return getCss({
6548
6566
  '@global': {
6549
6567
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6596,7 +6614,7 @@ const getTextSizeJssStyle = (textSize) => {
6596
6614
  fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
6597
6615
  };
6598
6616
  };
6599
- const getComponentCss$C = (variant, align, color, ellipsis, theme) => {
6617
+ const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
6600
6618
  return getCss({
6601
6619
  '@global': {
6602
6620
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
@@ -6618,34 +6636,34 @@ const sizeMap$3 = {
6618
6636
  'x-large': fontSizeTextXLarge,
6619
6637
  };
6620
6638
  // TODO, use Tuple to reduce chunk size
6621
- const filterLightPrimary = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6622
- const filterLightContrastLow = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6623
- const filterLightContrastMedium = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6624
- const filterLightContrastHigh = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6639
+ const filterLightPrimary$1 = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
6640
+ const filterLightContrastLow$1 = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
6641
+ const filterLightContrastMedium$1 = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
6642
+ const filterLightContrastHigh$1 = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
6625
6643
  const filterLightNotificationSuccess = 'invert(62%) sepia(61%) saturate(551%) hue-rotate(86deg) brightness(86%) contrast(80%)';
6626
6644
  const filterLightNotificationWarning = 'invert(74%) sepia(91%) saturate(343%) hue-rotate(348deg) brightness(92%) contrast(86%)';
6627
6645
  const filterLightNotificationError = 'invert(25%) sepia(62%) saturate(2003%) hue-rotate(335deg) brightness(100%) contrast(97%)';
6628
6646
  const filterLightNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6629
- const filterDarkPrimary = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6630
- const filterDarkContrastLow = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6631
- const filterDarkContrastMedium = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6632
- const filterDarkContrastHigh = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6647
+ const filterDarkPrimary$1 = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
6648
+ const filterDarkContrastLow$1 = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
6649
+ const filterDarkContrastMedium$1 = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
6650
+ const filterDarkContrastHigh$1 = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
6633
6651
  const filterDarkNotificationSuccess = 'invert(59%) sepia(22%) saturate(1342%) hue-rotate(86deg) brightness(96%) contrast(88%)';
6634
6652
  const filterDarkNotificationWarning = 'invert(72%) sepia(94%) saturate(303%) hue-rotate(354deg) brightness(89%) contrast(94%)';
6635
6653
  const filterDarkNotificationError = 'invert(28%) sepia(34%) saturate(3133%) hue-rotate(333deg) brightness(95%) contrast(100%)';
6636
6654
  const filterDarkNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
6637
6655
  const filter = {
6638
6656
  light: {
6639
- primary: filterLightPrimary,
6640
- brand: filterLightPrimary,
6641
- default: filterLightPrimary,
6642
- disabled: filterLightContrastMedium,
6643
- 'contrast-low': filterLightContrastLow,
6644
- 'neutral-contrast-low': filterLightContrastLow,
6645
- 'contrast-medium': filterLightContrastMedium,
6646
- 'neutral-contrast-medium': filterLightContrastMedium,
6647
- 'contrast-high': filterLightContrastHigh,
6648
- 'neutral-contrast-high': filterLightContrastHigh,
6657
+ primary: filterLightPrimary$1,
6658
+ brand: filterLightPrimary$1,
6659
+ default: filterLightPrimary$1,
6660
+ disabled: filterLightContrastMedium$1,
6661
+ 'contrast-low': filterLightContrastLow$1,
6662
+ 'neutral-contrast-low': filterLightContrastLow$1,
6663
+ 'contrast-medium': filterLightContrastMedium$1,
6664
+ 'neutral-contrast-medium': filterLightContrastMedium$1,
6665
+ 'contrast-high': filterLightContrastHigh$1,
6666
+ 'neutral-contrast-high': filterLightContrastHigh$1,
6649
6667
  'notification-success': filterLightNotificationSuccess,
6650
6668
  'notification-warning': filterLightNotificationWarning,
6651
6669
  'notification-error': filterLightNotificationError,
@@ -6653,16 +6671,16 @@ const filter = {
6653
6671
  'notification-neutral': filterLightNotificationInfo, // deprecated
6654
6672
  },
6655
6673
  dark: {
6656
- primary: filterDarkPrimary,
6657
- brand: filterDarkPrimary,
6658
- default: filterDarkPrimary,
6659
- disabled: filterDarkContrastMedium,
6660
- 'contrast-low': filterDarkContrastLow,
6661
- 'neutral-contrast-low': filterDarkContrastLow,
6662
- 'contrast-medium': filterDarkContrastMedium,
6663
- 'neutral-contrast-medium': filterDarkContrastMedium,
6664
- 'contrast-high': filterDarkContrastHigh,
6665
- 'neutral-contrast-high': filterDarkContrastHigh,
6674
+ primary: filterDarkPrimary$1,
6675
+ brand: filterDarkPrimary$1,
6676
+ default: filterDarkPrimary$1,
6677
+ disabled: filterDarkContrastMedium$1,
6678
+ 'contrast-low': filterDarkContrastLow$1,
6679
+ 'neutral-contrast-low': filterDarkContrastLow$1,
6680
+ 'contrast-medium': filterDarkContrastMedium$1,
6681
+ 'neutral-contrast-medium': filterDarkContrastMedium$1,
6682
+ 'contrast-high': filterDarkContrastHigh$1,
6683
+ 'neutral-contrast-high': filterDarkContrastHigh$1,
6666
6684
  'notification-success': filterDarkNotificationSuccess,
6667
6685
  'notification-warning': filterDarkNotificationWarning,
6668
6686
  'notification-error': filterDarkNotificationError,
@@ -6680,7 +6698,7 @@ const forceRerenderAnimationStyle = {
6680
6698
  };
6681
6699
  const keyFramesLight = 'rerender-light';
6682
6700
  const keyFramesDark = 'rerender-dark';
6683
- const getComponentCss$B = (color, size, theme) => {
6701
+ const getComponentCss$C = (color, size, theme) => {
6684
6702
  const isColorInherit = color === 'inherit';
6685
6703
  const isSizeInherit = size === 'inherit';
6686
6704
  return getCss({
@@ -6746,7 +6764,7 @@ const getNotificationContentJssStyle = () => ({
6746
6764
  });
6747
6765
 
6748
6766
  const mediaQueryMaxS = getMediaQueryMax('s');
6749
- const getComponentCss$A = (state, hasAction, hasClose, theme) => {
6767
+ const getComponentCss$B = (state, hasAction, hasClose, theme) => {
6750
6768
  return getCss(Object.assign({ '@global': {
6751
6769
  ':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
6752
6770
  h5: headingSmallStyle,
@@ -6764,7 +6782,7 @@ const getComponentCss$A = (state, hasAction, hasClose, theme) => {
6764
6782
  })));
6765
6783
  };
6766
6784
 
6767
- const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6785
+ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
6768
6786
  const { focusColor } = getThemedColors(theme);
6769
6787
  const hasIcon = hasVisibleIcon(icon, iconSource);
6770
6788
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
@@ -6796,7 +6814,7 @@ const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, a
6796
6814
  } })));
6797
6815
  };
6798
6816
 
6799
- const getComponentCss$y = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
6817
+ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
6800
6818
  const { focusColor } = getThemedColors(theme);
6801
6819
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
6802
6820
  '@global': addImportantToEachRule({
@@ -6869,7 +6887,7 @@ const sizeMap$2 = {
6869
6887
  },
6870
6888
  default: { fontSize: '1.25rem' },
6871
6889
  };
6872
- const getComponentCss$x = (aspectRatio, size, weight, align, compact, hasGradient) => {
6890
+ const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradient) => {
6873
6891
  const isTopAligned = align === 'top';
6874
6892
  const paddingSizeXS = pxToRemWithUnit(24);
6875
6893
  const gradientPadding = pxToRemWithUnit(72);
@@ -6923,7 +6941,7 @@ const baseSizes = {
6923
6941
  height: '72px',
6924
6942
  },
6925
6943
  };
6926
- const getComponentCss$w = (size) => {
6944
+ const getComponentCss$x = (size) => {
6927
6945
  return getCss({
6928
6946
  '@global': {
6929
6947
  ':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
@@ -6991,7 +7009,7 @@ const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
6991
7009
  marginBottom: marginPx,
6992
7010
  } });
6993
7011
  };
6994
- const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7012
+ const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
6995
7013
  const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
6996
7014
  return getCss(Object.assign(Object.assign({ '@global': {
6997
7015
  ':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
@@ -7049,6 +7067,41 @@ const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
7049
7067
  } }));
7050
7068
  };
7051
7069
 
7070
+ const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
7071
+ // copied from icon-styles
7072
+ const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
7073
+ const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
7074
+ const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
7075
+ const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
7076
+ const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
7077
+ const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
7078
+ const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
7079
+ const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
7080
+ const colorToFilterMap = {
7081
+ light: {
7082
+ primary: filterLightPrimary,
7083
+ 'contrast-low': filterLightContrastLow,
7084
+ 'contrast-medium': filterLightContrastMedium,
7085
+ 'contrast-high': filterLightContrastHigh,
7086
+ },
7087
+ dark: {
7088
+ primary: filterDarkPrimary,
7089
+ 'contrast-low': filterDarkContrastLow,
7090
+ 'contrast-medium': filterDarkContrastMedium,
7091
+ 'contrast-high': filterDarkContrastHigh,
7092
+ },
7093
+ };
7094
+ const getComponentCss$v = (size, color, theme) => {
7095
+ const isSizeInherit = size === 'inherit';
7096
+ const isColorInherit = color === 'inherit';
7097
+ return getCss({
7098
+ '@global': {
7099
+ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
7100
+ img: Object.assign(Object.assign({ display: 'block', pointerEvents: 'none' }, (!isColorInherit && { filter: colorToFilterMap[theme][color] })), (isSizeInherit && { height: size })),
7101
+ },
7102
+ });
7103
+ };
7104
+
7052
7105
  const mediaQueryMinS = getMediaQueryMin('s');
7053
7106
  // button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
7054
7107
  // and text scale 200% works (almost) on mobile viewports too
@@ -7252,17 +7305,24 @@ const gradientColorMap = {
7252
7305
  };
7253
7306
  const getGradient = (theme, gradientColorTheme) => {
7254
7307
  const gradientColor = gradientColorMap[theme][gradientColorTheme];
7255
- return (`rgba(${gradientColor},1) 0%,` +
7256
- `rgba(${gradientColor},0.9) 10%,` +
7257
- `rgba(${gradientColor},0.668116) 40%,` +
7258
- `rgba(${gradientColor},0.331884) 60%,` +
7259
- `rgba(${gradientColor},0.0816599) 80%,` +
7308
+ return (`rgba(${gradientColor},1) 20%,` +
7309
+ `rgba(${gradientColor},0.6) 48%,` +
7310
+ `rgba(${gradientColor},0.3) 68%,` +
7260
7311
  `rgba(${gradientColor},0)`);
7261
7312
  };
7262
7313
  const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
7263
- const { backgroundColor, backgroundSurfaceColor, focusColor } = getThemedColors('light');
7264
- const { hoverColor } = getThemedColors(theme);
7314
+ const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
7265
7315
  const isDarkTheme = isThemeDark(theme);
7316
+ const backgroundColorMap = {
7317
+ dark: {
7318
+ default: backgroundSurfaceColor,
7319
+ surface: backgroundColor,
7320
+ },
7321
+ light: {
7322
+ default: backgroundColor,
7323
+ surface: backgroundSurfaceColor,
7324
+ },
7325
+ };
7266
7326
  const actionPrevNextStyles = {
7267
7327
  position: 'relative',
7268
7328
  padding: '4px 0',
@@ -7273,19 +7333,17 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
7273
7333
  return getCss({
7274
7334
  '@global': {
7275
7335
  ':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
7276
- 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({
7336
+ 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({
7277
7337
  transition: getTransition('background-color'),
7278
- '&:hover': Object.assign({ background: hoverColor }, (isDarkTheme && {
7279
- '& > .icon': {
7280
- filter: 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)', // TODO: this is not shared from icon?
7281
- },
7282
- })),
7338
+ '&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
7283
7339
  })),
7284
7340
  },
7285
- root: Object.assign(Object.assign({ display: 'grid', gridTemplateColumns: '48px minmax(0, 1fr) 48px' }, hoverMediaQuery({
7286
- // distinguish gradient width on mobile and desktop
7287
- gridTemplateColumns: '64px minmax(0, 1fr) 64px',
7288
- })), { margin: '0 -4px', height: 'inherit' }),
7341
+ root: {
7342
+ display: 'grid',
7343
+ gridTemplateColumns: `calc(${fontLineHeight} + 24px) minmax(0, 1fr) calc(${fontLineHeight} + 24px)`,
7344
+ margin: '0 -4px',
7345
+ height: 'inherit',
7346
+ },
7289
7347
  'scroll-area': {
7290
7348
  gridArea: '1 / 1 / 1 / -1',
7291
7349
  padding: '4px',
@@ -7797,7 +7855,9 @@ const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.re
7797
7855
  const getComponentCss$b = (size, weight, theme) => {
7798
7856
  const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
7799
7857
  return getCss({
7800
- '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative', transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7858
+ '@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
7859
+ // TODO: probably not needed because there is no style with position: fixed
7860
+ transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
7801
7861
  // would be nice to use shared selector like '::slotted([role])'
7802
7862
  // but this doesn't work reliably when rendering in browser
7803
7863
  [transformSelector('::slotted([role])')]: {
@@ -8076,36 +8136,50 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
8076
8136
  'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
8077
8137
  };
8078
8138
 
8079
- const cssVariableOrderedSuffix = '--p-internal-text-list-item-ordered-suffix';
8080
- const cssVariableUnorderedWidth = '--p-internal-text-list-item-unordered-width';
8081
- const cssVariableUnorderedHeight = '--p-internal-text-list-item-unordered-height';
8082
- const cssVariableUnorderedTop = '--p-internal-text-list-item-unordered-top';
8083
- const getComponentCss$5 = (listType, orderType) => {
8084
- const isOrdered = listType === 'ordered';
8085
- const beforeJssStyles = {
8086
- position: 'absolute',
8087
- left: 0,
8088
- };
8139
+ const isListTypeOrdered = (listType) => listType === 'ordered';
8140
+ const isOrderTypeNumbered = (orderType) => orderType === 'numbered';
8141
+
8142
+ const cssVariablePseudoSuffix = '--p-internal-text-list-pseudo-suffix';
8143
+ const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
8144
+ const cssVariablePaddingBottom = '--p-internal-text-list-padding-bottom';
8145
+ const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-padding-left';
8146
+ const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
8147
+ const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
8148
+ const counter = 'p-text-list-counter';
8149
+ const getComponentCss$5 = (listType, orderType, theme) => {
8150
+ const isOrderedList = isListTypeOrdered(listType);
8089
8151
  return getCss({
8090
8152
  '@global': {
8091
- ':host': addImportantToEachRule(Object.assign(Object.assign({ position: 'relative', display: 'list-item', color: 'inherit', listStyleType: 'none', paddingLeft: pxToRemWithUnit(isOrdered ? 40 : 24) }, hostHiddenStyles), { '&:before': isOrdered
8092
- ? 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' }) })),
8093
- '::slotted(*)': {
8094
- [cssVariableOrderedSuffix]: '""',
8095
- [cssVariableUnorderedWidth]: pxToRemWithUnit(8),
8096
- [cssVariableUnorderedHeight]: '1px',
8097
- [cssVariableUnorderedTop]: 'calc(1.5em / 2)',
8098
- },
8153
+ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
8154
+ 'ol,ul': Object.assign(Object.assign({}, textSmallStyle), { color: getThemedColors(theme).primaryColor, margin: 0, padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
8155
+ ? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
8156
+ : `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "" (root unordered list)
8157
+ }`, listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')` }),
8158
+ // css selector for text-list-item
8159
+ '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariablePaddingTop]: spacingStaticXSmall,
8160
+ // TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
8161
+ [cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
8162
+ '&::before': {
8163
+ content: `counters(${counter},'.',${isOrderTypeNumbered(orderType) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
8164
+ counterIncrement: counter,
8165
+ position: 'absolute',
8166
+ top: 0,
8167
+ left: 0,
8168
+ transform: 'translate(-100%,0)',
8169
+ },
8170
+ }))),
8099
8171
  },
8100
8172
  });
8101
8173
  };
8102
8174
 
8103
- const getComponentCss$4 = (theme) => {
8175
+ const getComponentCss$4 = () => {
8104
8176
  return getCss({
8105
- '@global': {
8106
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: 'section' }, hostHiddenStyles))),
8107
- '[role]': Object.assign({ display: 'block', padding: 0, margin: 0, color: getThemedColors(theme).primaryColor }, textSmallStyle),
8108
- },
8177
+ '@global': addImportantToEachRule({
8178
+ ':host': Object.assign({ display: 'list-item', position: 'relative', font: 'inherit', color: 'inherit', listStyleType: 'inherit', paddingLeft: spacingStaticMedium }, hostHiddenStyles),
8179
+ '::slotted(*)': {
8180
+ [cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
8181
+ },
8182
+ }),
8109
8183
  });
8110
8184
  };
8111
8185
 
@@ -8181,4 +8255,4 @@ const getComponentCss = () => {
8181
8255
  });
8182
8256
  };
8183
8257
 
8184
- export { getComponentCss$S as getAccordionCss, getComponentCss$R as getBannerCss, getComponentCss$O as getButtonCss, getComponentCss$Q as getButtonGroupCss, getComponentCss$P as getButtonPureCss, getComponentCss$N as getCarouselCss, getComponentCss$M as getCheckboxWrapperCss, getComponentCss$L as getContentWrapperCss, getComponentCss$K as getDisplayCss, getComponentCss$J as getDividerCss, getComponentCss$I as getFieldsetWrapperCss, getComponentCss$G as getFlexCss, getComponentCss$H as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$E as getGridCss, getComponentCss$F as getGridItemCss, getComponentCss$D as getHeadingCss, getComponentCss$C as getHeadlineCss, getComponentCss$B as getIconCss, getComponentCss$A as getInlineNotificationCss, getComponentCss$y as getLinkCss, getComponentCss$z as getLinkPureCss, getComponentCss$y as getLinkSocialCss, getComponentCss$x as getLinkTileCss, getComponentCss$w as getMarqueCss, getComponentCss$v as getModalCss, getComponentCss$u as getPaginationCss, getComponentCss$t as getPopoverCss, getComponentCss$s as getRadioButtonWrapperCss, getComponentCss$r as getScrollerCss, getComponentCss$p as getSegmentedControlCss, getComponentCss$q as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$m as getSpinnerCss, getComponentCss$k as getStepperHorizontalCss, getComponentCss$l as getStepperHorizontalItemCss, getComponentCss$j as getSwitchCss, getComponentCss$i as getTableBodyCss, getComponentCss$h as getTableCellCss, getComponentCss$c as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$b as getTabsBarCss, getComponentCss$9 as getTabsCss, getComponentCss$a as getTabsItemCss, getComponentCss$7 as getTagCss, getComponentCss$8 as getTagDismissibleCss, getComponentCss$3 as getTextCss, getComponentCss$6 as getTextFieldWrapperCss, getComponentCss$4 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$2 as getTextareaWrapperCss, getComponentCss as getToastCss };
8258
+ export { getComponentCss$T as getAccordionCss, getComponentCss$S as getBannerCss, getComponentCss$P as getButtonCss, getComponentCss$R as getButtonGroupCss, getComponentCss$Q as getButtonPureCss, getComponentCss$O as getCarouselCss, getComponentCss$N as getCheckboxWrapperCss, getComponentCss$M as getContentWrapperCss, getComponentCss$L as getDisplayCss, getComponentCss$K as getDividerCss, getComponentCss$J as getFieldsetWrapperCss, getComponentCss$H as getFlexCss, getComponentCss$I as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$F as getGridCss, getComponentCss$G as getGridItemCss, getComponentCss$E as getHeadingCss, getComponentCss$D as getHeadlineCss, getComponentCss$C as getIconCss, getComponentCss$B as getInlineNotificationCss, getComponentCss$z as getLinkCss, getComponentCss$A as getLinkPureCss, getComponentCss$z as getLinkSocialCss, getComponentCss$y as getLinkTileCss, getComponentCss$x as getMarqueCss, getComponentCss$w as getModalCss, getComponentCss$v as getModelSignatureCss, getComponentCss$u as getPaginationCss, getComponentCss$t as getPopoverCss, getComponentCss$s as getRadioButtonWrapperCss, getComponentCss$r as getScrollerCss, getComponentCss$p as getSegmentedControlCss, getComponentCss$q as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$m as getSpinnerCss, getComponentCss$k as getStepperHorizontalCss, getComponentCss$l as getStepperHorizontalItemCss, getComponentCss$j as getSwitchCss, getComponentCss$i as getTableBodyCss, getComponentCss$h as getTableCellCss, getComponentCss$c as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$b as getTabsBarCss, getComponentCss$9 as getTabsCss, getComponentCss$a as getTabsItemCss, getComponentCss$7 as getTagCss, getComponentCss$8 as getTagDismissibleCss, getComponentCss$3 as getTextCss, getComponentCss$6 as getTextFieldWrapperCss, getComponentCss$5 as getTextListCss, getComponentCss$4 as getTextListItemCss, getComponentCss$2 as getTextareaWrapperCss, getComponentCss as getToastCss };