@porsche-design-system/components-react 3.0.0-rc.0 → 3.0.0-rc.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 (53) hide show
  1. package/CHANGELOG.md +87 -25
  2. package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +35 -26
  3. package/esm/lib/components/checkbox-wrapper.wrapper.js +3 -3
  4. package/esm/lib/components/icon.wrapper.js +1 -1
  5. package/esm/lib/components/scroller.wrapper.js +3 -3
  6. package/lib/components/checkbox-wrapper.wrapper.d.ts +8 -0
  7. package/lib/components/checkbox-wrapper.wrapper.js +3 -3
  8. package/lib/components/icon.wrapper.js +1 -1
  9. package/lib/components/scroller.wrapper.d.ts +15 -7
  10. package/lib/components/scroller.wrapper.js +3 -3
  11. package/lib/types.d.ts +219 -191
  12. package/package.json +2 -2
  13. package/ssr/components/dist/styles/esm/styles-entry.js +408 -266
  14. package/ssr/components/dist/utils/esm/utils-entry.js +90 -83
  15. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +4 -4
  16. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
  17. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  18. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +38 -0
  19. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +0 -1
  20. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -2
  21. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +62 -2
  22. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +2 -1
  23. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -1
  24. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
  25. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
  26. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +34 -0
  27. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
  28. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -1
  29. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -1
  30. package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -1
  31. package/ssr/esm/components/dist/styles/esm/styles-entry.js +408 -267
  32. package/ssr/esm/components/dist/utils/esm/utils-entry.js +82 -83
  33. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +4 -4
  34. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
  35. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
  36. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +36 -0
  37. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +0 -1
  38. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -2
  39. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +62 -2
  40. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +3 -2
  41. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -1
  42. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +2 -2
  43. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +3 -2
  44. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +32 -0
  45. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
  46. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -1
  47. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -1
  48. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +1 -1
  49. package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +8 -0
  50. package/ssr/lib/components/scroller.wrapper.d.ts +15 -7
  51. package/ssr/lib/components/select-wrapper-dropdown.wrapper.d.ts +30 -0
  52. package/ssr/lib/dsr-components/select-wrapper.d.ts +0 -1
  53. package/ssr/lib/types.d.ts +219 -191
@@ -4,6 +4,8 @@ const isDisabledOrLoading = (disabled, loading) => {
4
4
 
5
5
  const hasWindow = typeof window !== 'undefined';
6
6
 
7
+ const isHighContrastMode = hasWindow && window.matchMedia && matchMedia('(forced-colors: active)').matches;
8
+
7
9
  const attributeMutationMap = new Map();
8
10
  hasWindow &&
9
11
  new MutationObserver((mutations) => {
@@ -39,6 +41,8 @@ const borderRadiusSmall = '4px';
39
41
 
40
42
  const borderRadiusMedium = '8px';
41
43
 
44
+ const borderRadiusLarge = '12px';
45
+
42
46
  const borderWidthBase = '2px';
43
47
 
44
48
  const _dropShadowBackgroundColor = 'rgba(0, 0, 0, 0.16)';
@@ -105,12 +109,6 @@ const fontWeightSemiBold = 600;
105
109
 
106
110
  const fontWeightBold = 700;
107
111
 
108
- const fontWeight = {
109
- regular: fontWeightRegular,
110
- semiBold: fontWeightSemiBold,
111
- bold: fontWeightBold,
112
- };
113
-
114
112
  const fontStyleNormal = 'normal';
115
113
 
116
114
  const fontVariant = 'normal';
@@ -518,25 +516,6 @@ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symb
518
516
 
519
517
  var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof$1(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$1(document)) === 'object' && document.nodeType === 9;
520
518
 
521
- var isProduction = process.env.NODE_ENV === 'production';
522
- function warning(condition, message) {
523
- if (!isProduction) {
524
- if (condition) {
525
- return;
526
- }
527
-
528
- var text = "Warning: " + message;
529
-
530
- if (typeof console !== 'undefined') {
531
- console.warn(text);
532
- }
533
-
534
- try {
535
- throw Error(text);
536
- } catch (x) {}
537
- }
538
- }
539
-
540
519
  function _typeof(obj) {
541
520
  "@babel/helpers - typeof";
542
521
 
@@ -643,9 +622,7 @@ function createRule(name, decl, options) {
643
622
  var rule = jss.plugins.onCreateRule(name, declCopy, options);
644
623
  if (rule) return rule; // It is an at-rule and it has no instance.
645
624
 
646
- if (name[0] === '@') {
647
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Unknown rule " + name) : void 0;
648
- }
625
+ if (name[0] === '@') ;
649
626
 
650
627
  return null;
651
628
  }
@@ -846,9 +823,7 @@ function () {
846
823
 
847
824
  var sheet = this.options.sheet;
848
825
 
849
- if (sheet && sheet.attached) {
850
- process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
851
- }
826
+ if (sheet && sheet.attached) ;
852
827
 
853
828
  return this;
854
829
  };
@@ -1094,7 +1069,6 @@ function () {
1094
1069
  this.name = nameMatch[1];
1095
1070
  } else {
1096
1071
  this.name = 'noname';
1097
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Bad keyframes name " + key) : void 0;
1098
1072
  }
1099
1073
 
1100
1074
  this.key = this.type + "-" + this.name;
@@ -1153,8 +1127,6 @@ var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
1153
1127
  if (name in keyframes) {
1154
1128
  return keyframes[name];
1155
1129
  }
1156
-
1157
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
1158
1130
  return match;
1159
1131
  });
1160
1132
  }
@@ -1979,8 +1951,6 @@ function () {
1979
1951
  for (var name in plugin) {
1980
1952
  if (name in registry) {
1981
1953
  registry[name].push(plugin[name]);
1982
- } else {
1983
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
1984
1954
  }
1985
1955
  }
1986
1956
 
@@ -2122,8 +2092,6 @@ if (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multip
2122
2092
  // the module.
2123
2093
 
2124
2094
  var moduleId = globalThis$1[ns]++;
2125
-
2126
- var maxRules = 1e10;
2127
2095
  /**
2128
2096
  * Returns a function which generates unique class names based on counters.
2129
2097
  * When new generator function is created, rule counter is reseted.
@@ -2140,10 +2108,6 @@ var createGenerateId = function createGenerateId(options) {
2140
2108
  var generateId = function generateId(rule, sheet) {
2141
2109
  ruleCounter += 1;
2142
2110
 
2143
- if (ruleCounter > maxRules) {
2144
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
2145
- }
2146
-
2147
2111
  var jssId = '';
2148
2112
  var prefix = '';
2149
2113
 
@@ -2239,7 +2203,6 @@ var removeProperty = function removeProperty(cssRule, prop) {
2239
2203
  cssRule.style.removeProperty(prop);
2240
2204
  }
2241
2205
  } catch (err) {
2242
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
2243
2206
  }
2244
2207
  };
2245
2208
  /**
@@ -2353,10 +2316,6 @@ function findPrevNode(options) {
2353
2316
  node: comment.nextSibling
2354
2317
  };
2355
2318
  } // If user specifies an insertion point and it can't be found in the document -
2356
- // bad specificity issues may appear.
2357
-
2358
-
2359
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
2360
2319
  }
2361
2320
 
2362
2321
  return false;
@@ -2379,7 +2338,7 @@ function insertStyle(style, options) {
2379
2338
  if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
2380
2339
  var insertionPointElement = insertionPoint;
2381
2340
  var parentNode = insertionPointElement.parentNode;
2382
- if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? warning(false, '[JSS] Insertion point is not in the DOM.') : void 0;
2341
+ if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);
2383
2342
  return;
2384
2343
  }
2385
2344
 
@@ -2404,7 +2363,6 @@ var _insertRule = function insertRule(container, rule, index) {
2404
2363
  container.appendRule(rule);
2405
2364
  }
2406
2365
  } catch (err) {
2407
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] " + err.message) : void 0;
2408
2366
  return false;
2409
2367
  }
2410
2368
 
@@ -2825,8 +2783,6 @@ function () {
2825
2783
  entry.refs++;
2826
2784
  return entry.sheet;
2827
2785
  }
2828
-
2829
- warning(false, "[JSS] SheetsManager: can't find sheet to manage");
2830
2786
  return undefined;
2831
2787
  };
2832
2788
 
@@ -2838,8 +2794,6 @@ function () {
2838
2794
  entry.refs--;
2839
2795
  if (entry.refs === 0) entry.sheet.detach();
2840
2796
  }
2841
- } else {
2842
- warning(false, "SheetsManager: can't find sheet to unmanage");
2843
2797
  }
2844
2798
  };
2845
2799
 
@@ -3181,8 +3135,6 @@ function jssNested() {
3181
3135
  if (rule) {
3182
3136
  return rule.selector;
3183
3137
  }
3184
-
3185
- process.env.NODE_ENV !== "production" ? warning(false, "[JSS] Could not find the referenced rule \"" + key + "\" in \"" + (container.options.meta || container.toString()) + "\".") : void 0;
3186
3138
  return key;
3187
3139
  };
3188
3140
  }
@@ -3274,6 +3226,10 @@ function jssNested() {
3274
3226
  };
3275
3227
  }
3276
3228
 
3229
+ function getDefaultExportFromCjs (x) {
3230
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3231
+ }
3232
+
3277
3233
  function getAugmentedNamespace(n) {
3278
3234
  if (n.__esModule) return n;
3279
3235
  var f = n.default;
@@ -3335,7 +3291,7 @@ var _tslib$1 = {};
3335
3291
  return t;
3336
3292
  };
3337
3293
  return exports.__assign.apply(this, arguments);
3338
- };
3294
+ };
3339
3295
  } (_tslib$1));
3340
3296
 
3341
3297
  var require$$1 = /*@__PURE__*/getAugmentedNamespace(jss_esm);
@@ -3695,6 +3651,8 @@ function jssCombineAndSortMQ(options) {
3695
3651
 
3696
3652
  var dist = jssCombineAndSortMQ;
3697
3653
 
3654
+ var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(dist);
3655
+
3698
3656
  /* Auto Generated Start */
3699
3657
  const themeLight = {
3700
3658
  primaryColor: '#010205',
@@ -3777,8 +3735,21 @@ const themes = {
3777
3735
  'dark': themeDark
3778
3736
  };
3779
3737
  /* Auto Generated End */
3738
+ const schemeHighContrastMerged = {
3739
+ disabledColor: 'GrayText',
3740
+ focusColor: 'Highlight',
3741
+ };
3742
+ const schemeHighContrast = {
3743
+ canvasColor: 'Canvas',
3744
+ canvasTextColor: 'CanvasText',
3745
+ highlightColor: 'Highlight',
3746
+ linkColor: 'LinkText',
3747
+ };
3780
3748
  const getThemedColors = (theme) => {
3781
- return themes[theme];
3749
+ return isHighContrastMode ? Object.assign(Object.assign({}, themes[theme]), schemeHighContrastMerged) : themes[theme];
3750
+ };
3751
+ const getHighContrastColors = () => {
3752
+ return schemeHighContrast;
3782
3753
  };
3783
3754
  const getInvertedThemedColors = (theme) => {
3784
3755
  return getThemedColors(isThemeDark(theme) ? 'light' : 'dark');
@@ -3825,36 +3796,20 @@ const focusPseudoJssStyle = {
3825
3796
  outline: 0,
3826
3797
  },
3827
3798
  };
3828
- const getTextHiddenJssStyle = (isHidden) => isHidden
3829
- ? getScreenReaderOnlyJssStyle()
3830
- : {
3831
- position: 'static',
3832
- width: 'auto',
3833
- height: 'auto',
3834
- margin: 0,
3835
- overflow: 'visible',
3836
- clip: 'auto',
3837
- clipPath: 'none',
3838
- whiteSpace: 'normal',
3839
- };
3840
- const getFormTextHiddenJssStyle = (isHidden) => (Object.assign(Object.assign({}, getTextHiddenJssStyle(isHidden)), { width: 'fit-content' }));
3841
- const getFormCheckboxRadioHiddenJssStyle = (isHidden) => (Object.assign(Object.assign({}, getTextHiddenJssStyle(isHidden)), { width: 'auto', padding: `2px 0 0 ${spacingStaticSmall}` }));
3842
3799
  /**
3843
- * Screen reader only styles to hide (text-)contents visually in the browser but grant access for screen readers
3800
+ * Returns a JSS style object that can be used to visually hide text in the browser, while still allowing it to be accessed by screen readers.
3801
+ * @param {boolean} isHidden - A boolean value indicating whether the text should be hidden or not. Defaults to true.
3802
+ * @param {JssStyle} isShownJssStyle - Additional styles applied when isHidden = false
3803
+ * @returns {JssStyle} - A JSS style object containing styles depending on the value of isHidden and isShownJssStyle.
3844
3804
  */
3845
- const getScreenReaderOnlyJssStyle = () => {
3846
- return {
3805
+ const getHiddenTextJssStyle = (isHidden = true, isShownJssStyle) => isHidden
3806
+ ? {
3847
3807
  position: 'absolute',
3808
+ width: 0,
3848
3809
  height: '1px',
3849
- width: '1px',
3850
- border: '0',
3851
- margin: '-1px',
3852
- overflow: 'hidden',
3853
- clip: 'rect(1px,1px,1px,1px)',
3854
- clipPath: 'inset(50%)',
3855
- whiteSpace: 'nowrap',
3856
- };
3857
- };
3810
+ textIndent: '-999999px',
3811
+ }
3812
+ : Object.assign({ position: 'static', width: 'auto', height: 'auto', textIndent: 0 }, isShownJssStyle);
3858
3813
  const getBackfaceVisibilityJssStyle = () => ({
3859
3814
  backfaceVisibility: 'hidden',
3860
3815
  WebkitBackfaceVisibility: 'hidden',
@@ -3876,13 +3831,20 @@ const hoverMediaQuery = (style) =>
3876
3831
  ({ '@media(hover:hover)': style }) // used for prod build, yarn start and unit tests
3877
3832
  ; // used for staging build in e2e and vrt tests
3878
3833
 
3834
+ const getSchemedHighContrastMediaQuery = (light, dark) => {
3835
+ return {
3836
+ '@media (forced-colors: active) and (prefers-color-scheme: light)': light,
3837
+ '@media (forced-colors: active) and (prefers-color-scheme: dark)': dark,
3838
+ };
3839
+ };
3840
+
3879
3841
  // NOTE: handpicked selection of plugins from jss-preset-default
3880
3842
  const jss = createJss({
3881
3843
  plugins: [
3882
3844
  jssGlobal(),
3883
3845
  jssNested(),
3884
3846
  camelCase(),
3885
- dist({ combineMediaQueries: true }),
3847
+ jssPluginSortMediaQueries({ combineMediaQueries: true }),
3886
3848
  ],
3887
3849
  });
3888
3850
  const getCss = (jssStyles) => jss
@@ -3953,14 +3915,14 @@ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3953
3915
 
3954
3916
  const getComponentCss$Y = (size, compact, open, theme) => {
3955
3917
  const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
3956
- const border = `1px solid ${contrastLowColor}`;
3957
- return getCss(Object.assign(Object.assign({ '@global': {
3958
- ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
3959
- button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', margin: '2px 0', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeight.semiBold }), buildResponsiveStyles(size, (s) => ({
3960
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3961
- // @ts-ignore
3962
- fontSize: fontSizeText[s],
3963
- padding: compact ? '4px 0' : `${s === 'medium' ? '20px' : '12px'} 0`,
3918
+ return getCss({
3919
+ '@global': {
3920
+ ':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'block' }, (!compact && {
3921
+ borderBottom: `1px solid ${contrastLowColor}`,
3922
+ })), hostHiddenStyles)),
3923
+ button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeightSemiBold }), buildResponsiveStyles(size, (s) => ({
3924
+ fontSize: s === 'medium' ? fontSizeTextMedium : fontSizeTextSmall,
3925
+ padding: `${compact ? '4px' : s === 'medium' ? '20px' : '12px'} 0`,
3964
3926
  }))), mergeDeep({
3965
3927
  '&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
3966
3928
  ? {
@@ -3983,41 +3945,37 @@ const getComponentCss$Y = (size, compact, open, theme) => {
3983
3945
  }, '&:not(:focus-visible)::before': {
3984
3946
  border: 0,
3985
3947
  } }),
3986
- } }, (!compact && {
3987
- root: {
3988
- borderBottom: border,
3989
3948
  },
3990
- })), { heading: {
3949
+ heading: {
3991
3950
  margin: 0,
3992
- padding: 0,
3993
- }, icon: {
3951
+ padding: '0 0 2px',
3952
+ },
3953
+ icon: {
3994
3954
  width: fontLineHeight,
3995
3955
  height: fontLineHeight,
3996
- transformOrigin: '50% 50%',
3997
3956
  transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
3998
3957
  transition: getTransition('transform'),
3999
- }, collapsible: Object.assign({ color: primaryColor, padding: 0, overflow: 'hidden' }, (open
3958
+ },
3959
+ collapsible: Object.assign({ color: primaryColor, overflow: 'hidden' }, (open
4000
3960
  ? {
4001
3961
  height: 'auto',
4002
3962
  paddingBottom: compact ? spacingStaticSmall : '24px',
4003
3963
  visibility: 'visible',
4004
- transition: getTransition('height') + `,visibility ${transitionDuration}`,
4005
- animation: `$open ${transitionDuration} ease forwards`,
3964
+ transition: getTransition('height') + ',' + getTransition('padding-bottom'),
3965
+ animation: `$open 0s ${transitionDuration} forwards`, // delay overflow change and have `overflow: visible` after transition
4006
3966
  }
4007
3967
  : {
4008
3968
  height: 0,
4009
3969
  visibility: 'hidden',
4010
- transition: getTransition('height') + `,visibility ${transitionDuration} linear ${transitionDuration}`,
4011
- })),
3970
+ transition: getTransition('height') + `,visibility 0s linear ${transitionDuration}`,
3971
+ })),
4012
3972
  // TODO: this doesn't get shortened and results in `keyframes-open` for some unknown reason
4013
3973
  '@keyframes open': {
4014
- '0%,99%': {
4015
- overflow: 'hidden',
4016
- },
4017
- '100%': {
3974
+ to: {
4018
3975
  overflow: 'visible',
4019
3976
  },
4020
- } }));
3977
+ },
3978
+ });
4021
3979
  };
4022
3980
 
4023
3981
  const TOAST_Z_INDEX = 999999;
@@ -4113,7 +4071,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4113
4071
  fontSize: getFontSizeText(sizeValue),
4114
4072
  })))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'absolute', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4115
4073
  right: hideLabelValue ? offsetVertical : offsetHorizontal,
4116
- left: hideLabelValue || hasIcon ? offsetVertical : offsetHorizontal,
4074
+ left: hideLabelValue ? offsetVertical : offsetHorizontal,
4117
4075
  }))), { borderRadius: borderRadiusSmall, transition: getTransition('background-color') }), (active && Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }))) }), (!isDisabledOrLoading &&
4118
4076
  hoverMediaQuery({
4119
4077
  '&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
@@ -4132,6 +4090,12 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4132
4090
  flexShrink: '0',
4133
4091
  width: fontLineHeight,
4134
4092
  height: fontLineHeight,
4093
+ // workaround for Safari to optimize vertical alignment of icons
4094
+ // TODO: check if this is still needed after optimized icons are included
4095
+ '@supports (width: round(down, 1px, 1px))': {
4096
+ width: `round(down, ${fontLineHeight}, 1px)`,
4097
+ height: `round(down, ${fontLineHeight}, 1px)`,
4098
+ },
4135
4099
  },
4136
4100
  label: mergeDeep(buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
4137
4101
  order: alignLabelValue === 'left' ? -1 : 0,
@@ -4208,7 +4172,7 @@ const getTileBaseStyles = (aspectRatio, isDisabled) => {
4208
4172
  },
4209
4173
  },
4210
4174
  })),
4211
- root: Object.assign(Object.assign({ position: 'relative', height: 0, overflow: 'hidden', transform: 'translate3d(0,0,0)', borderRadius: borderRadiusMedium, color: getThemedTypographyColor('dark', 'primary') }, buildResponsiveStyles(aspectRatio, (ratio) => ({
4175
+ root: Object.assign(Object.assign({ position: 'relative', overflow: 'hidden', transform: 'translate3d(0,0,0)', borderRadius: borderRadiusLarge, color: getThemedTypographyColor('dark', 'primary') }, buildResponsiveStyles(aspectRatio, (ratio) => ({
4212
4176
  paddingTop: aspectRatioPaddingMap[ratio],
4213
4177
  }))), (!isDisabled &&
4214
4178
  hoverMediaQuery({
@@ -4224,7 +4188,7 @@ const getTileBaseStyles = (aspectRatio, isDisabled) => {
4224
4188
  display: 'flex',
4225
4189
  justifyItems: 'start',
4226
4190
  gap: spacingStaticMedium,
4227
- borderRadius: borderRadiusMedium,
4191
+ borderRadius: borderRadiusLarge,
4228
4192
  '@media (forced-colors: active)': {
4229
4193
  background: 'rgba(0,0,0,0.7)',
4230
4194
  },
@@ -4271,6 +4235,7 @@ const { primaryColor: darkThemePrimaryColor$1 } = getThemedColors('dark');
4271
4235
  const { primaryColor: lightThemePrimaryColor$1 } = getThemedColors('light');
4272
4236
  const getVariantColors = (variant, theme) => {
4273
4237
  const { primaryColor, contrastHighColor, contrastMediumColor, hoverColor } = getThemedColors(theme);
4238
+ const { canvasColor } = getHighContrastColors();
4274
4239
  const colors = {
4275
4240
  primary: {
4276
4241
  textColor: theme === 'dark' ? lightThemePrimaryColor$1 : darkThemePrimaryColor$1,
@@ -4283,7 +4248,7 @@ const getVariantColors = (variant, theme) => {
4283
4248
  textColor: primaryColor,
4284
4249
  borderColor: primaryColor,
4285
4250
  borderColorHover: contrastMediumColor,
4286
- backgroundColor: 'transparent',
4251
+ backgroundColor: isHighContrastMode ? canvasColor : 'transparent',
4287
4252
  backgroundColorHover: hoverColor,
4288
4253
  },
4289
4254
  };
@@ -4307,18 +4272,8 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4307
4272
  },
4308
4273
  })), (!isDisabledOrLoading &&
4309
4274
  hoverMediaQuery({
4310
- '&:hover': Object.assign({ backgroundColor: backgroundColorHover, borderColor: borderColorHover }, (!isPrimary && frostedGlassStyle)),
4311
- }))), label: Object.assign({}, buildResponsiveStyles(hideLabel, (hideLabelValue) => hideLabelValue
4312
- ? {
4313
- width: 0,
4314
- height: '1px',
4315
- textIndent: '-999999px',
4316
- }
4317
- : {
4318
- width: 'auto',
4319
- height: 'auto',
4320
- textIndent: 0,
4321
- })) }, (hasIcon && {
4275
+ '&:hover': Object.assign({ backgroundColor: backgroundColorHover, borderColor: isHighContrastMode ? focusColor : borderColorHover }, (!isPrimary && frostedGlassStyle)),
4276
+ }))), label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle) }, (hasIcon && {
4322
4277
  icon: {
4323
4278
  width: fontLineHeight,
4324
4279
  height: fontLineHeight,
@@ -4328,16 +4283,17 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4328
4283
 
4329
4284
  const getDisabledColors = (variant, loading, theme) => {
4330
4285
  const { contrastMediumColor, contrastHighColor, disabledColor, hoverColor } = getThemedColors(theme);
4286
+ const { canvasColor } = getHighContrastColors();
4331
4287
  const colors = {
4332
4288
  primary: {
4333
- textColor: contrastHighColor,
4334
- borderColor: loading ? contrastHighColor : disabledColor,
4335
- backgroundColor: loading ? contrastHighColor : disabledColor,
4289
+ textColor: isHighContrastMode ? disabledColor : contrastHighColor,
4290
+ borderColor: isHighContrastMode ? disabledColor : loading ? contrastHighColor : disabledColor,
4291
+ backgroundColor: isHighContrastMode ? canvasColor : loading ? contrastHighColor : disabledColor,
4336
4292
  },
4337
4293
  secondary: {
4338
4294
  textColor: disabledColor,
4339
- borderColor: loading ? contrastMediumColor : disabledColor,
4340
- backgroundColor: loading ? hoverColor : 'transparent',
4295
+ borderColor: isHighContrastMode ? disabledColor : loading ? contrastMediumColor : disabledColor,
4296
+ backgroundColor: isHighContrastMode ? canvasColor : loading ? hoverColor : 'transparent',
4341
4297
  },
4342
4298
  };
4343
4299
  return colors[variant === 'tertiary' ? 'secondary' : variant];
@@ -4383,6 +4339,7 @@ const spacingMap = {
4383
4339
  };
4384
4340
  const getComponentCss$S = (width, hasPagination, alignHeader, theme) => {
4385
4341
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
4342
+ const { canvasTextColor } = getHighContrastColors();
4386
4343
  const isHeaderAlignCenter = alignHeader === 'center';
4387
4344
  return getCss(Object.assign({ '@global': {
4388
4345
  ':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', boxSizing: 'content-box' }, hostHiddenStyles)),
@@ -4393,22 +4350,18 @@ const getComponentCss$S = (width, hasPagination, alignHeader, theme) => {
4393
4350
  [mediaQueryS]: isHeaderAlignCenter
4394
4351
  ? {
4395
4352
  gridColumn: 2,
4396
- textAlign: 'center', // relevant when text becomes multiline
4397
4353
  }
4398
4354
  : {
4399
4355
  gridColumn: '1 / 3',
4400
4356
  },
4401
4357
  }),
4402
- }, header: {
4403
- display: 'grid',
4404
- padding: `0 ${spacingMap[width].base}`,
4405
- [mediaQueryS]: Object.assign(Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
4358
+ }, header: Object.assign(Object.assign({ display: 'grid', padding: `0 ${spacingMap[width].base}` }, (isHeaderAlignCenter && {
4359
+ textAlign: 'center',
4360
+ })), { [mediaQueryS]: Object.assign(Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
4406
4361
  justifyItems: 'center', // relevant when max-width of heading or description is reached
4407
- })), { padding: `0 ${spacingMap[width].s}` }),
4408
- [mediaQueryXXL]: {
4362
+ })), { padding: `0 ${spacingMap[width].s}` }), [mediaQueryXXL]: {
4409
4363
  padding: `0 ${spacingMap[width].xxl}`,
4410
- },
4411
- }, nav: {
4364
+ } }), nav: {
4412
4365
  display: 'none',
4413
4366
  [mediaQueryS]: {
4414
4367
  display: 'flex',
@@ -4439,21 +4392,21 @@ const getComponentCss$S = (width, hasPagination, alignHeader, theme) => {
4439
4392
  } }),
4440
4393
  '&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
4441
4394
  '&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
4442
- '&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
4395
+ '&__sr': getHiddenTextJssStyle(), // appears in the DOM when sliding
4443
4396
  } }, (hasPagination && {
4444
4397
  pagination: Object.assign(Object.assign({}, buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
4445
4398
  display: hasPaginationValue ? 'flex' : 'none',
4446
4399
  }))), { justifyContent: 'center', gap: spacingStaticSmall }),
4447
4400
  bullet: {
4448
4401
  borderRadius: borderRadiusSmall,
4449
- background: contrastMediumColor,
4402
+ background: isHighContrastMode ? canvasTextColor : contrastMediumColor,
4450
4403
  // set transition to have the same speed as switching slides in splide
4451
4404
  transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
4452
4405
  width: '8px',
4453
4406
  height: '8px',
4454
4407
  },
4455
4408
  [bulletActiveClass]: {
4456
- background: primaryColor,
4409
+ background: isHighContrastMode ? canvasTextColor : primaryColor,
4457
4410
  width: '20px',
4458
4411
  },
4459
4412
  })));
@@ -4481,12 +4434,18 @@ const getFunctionalComponentStateMessageStyles = (theme, state) => {
4481
4434
  };
4482
4435
  };
4483
4436
 
4484
- const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, theme) => {
4437
+ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme) => {
4485
4438
  const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
4486
4439
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
4487
- const uncheckedColor = isDisabled ? disabledColor : formStateColor || contrastMediumColor;
4440
+ const { canvasTextColor } = getHighContrastColors();
4441
+ const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
4442
+ const uncheckedColor = disabledOrLoading ? disabledColor : formStateColor || contrastMediumColor;
4488
4443
  const uncheckedHoverColor = formStateHoverColor || primaryColor;
4489
- const checkedColor = isDisabled ? disabledColor : formStateColor || primaryColor;
4444
+ const checkedColor = isHighContrastMode
4445
+ ? canvasTextColor
4446
+ : disabledOrLoading
4447
+ ? disabledColor
4448
+ : formStateColor || primaryColor;
4490
4449
  const checkedHoverColor = formStateHoverColor || contrastHighColor;
4491
4450
  return Object.assign(Object.assign({ '@global': {
4492
4451
  ':host': addImportantToEachRule(Object.assign(Object.assign({}, hostHiddenStyles), { display: 'block' })),
@@ -4503,56 +4462,77 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, theme) => {
4503
4462
  WebkitAppearance: 'none',
4504
4463
  appearance: 'none',
4505
4464
  boxSizing: 'content-box',
4506
- backgroundSize: fontLineHeight,
4507
- backgroundColor: 'transparent',
4465
+ background: `transparent 0% 0% / ${fontLineHeight}`,
4508
4466
  transition: ['border-color', 'background-color'].map(getTransition).join(),
4509
4467
  border: `2px solid ${uncheckedColor}`,
4510
4468
  outline: 0,
4511
- cursor: isDisabled ? 'not-allowed' : 'pointer',
4469
+ cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
4512
4470
  }, '&(input:checked)': {
4471
+ // background-image is merged in later
4513
4472
  borderColor: checkedColor,
4514
4473
  backgroundColor: checkedColor,
4515
- } }, (!isDisabled && Object.assign(Object.assign({}, hoverMediaQuery({
4516
- '&(input:hover), .text:hover ~ &(input)': {
4517
- borderColor: uncheckedHoverColor,
4518
- },
4519
- '&(input:checked:hover), .text:hover ~ &(input:checked)': {
4520
- borderColor: checkedHoverColor,
4521
- backgroundColor: checkedHoverColor,
4522
- },
4523
- })), { '&(input:focus)::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-6)), { border: `${borderWidthBase} solid ${focusColor}` }), '&(input:focus:not(:focus-visible))::before': {
4474
+ } }, (!disabledOrLoading && Object.assign(Object.assign({}, (!isHighContrastMode &&
4475
+ hoverMediaQuery({
4476
+ '&(input:hover), .text:hover ~ &(input)': {
4477
+ borderColor: uncheckedHoverColor,
4478
+ },
4479
+ '&(input:checked:hover), .text:hover ~ &(input:checked)': {
4480
+ borderColor: checkedHoverColor,
4481
+ backgroundColor: checkedHoverColor,
4482
+ },
4483
+ }))), (!isDisabled && {
4484
+ '&(input:focus)::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-6)), { border: `${borderWidthBase} solid ${focusColor}` }),
4485
+ '&(input:focus:not(:focus-visible))::before': {
4524
4486
  borderColor: 'transparent',
4525
- } })))),
4487
+ },
4488
+ }))))),
4526
4489
  label: {
4527
4490
  position: 'relative',
4528
4491
  display: 'flex',
4529
4492
  alignItems: 'flex-start',
4530
4493
  },
4531
- }, text: Object.assign(Object.assign(Object.assign({ order: 1, cursor: isDisabled ? 'default' : 'pointer' }, textSmallStyle), { color: isDisabled ? disabledColor : primaryColor, transition: getTransition('color') }), buildResponsiveStyles(hideLabel, getFormCheckboxRadioHiddenJssStyle)) }, getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state));
4494
+ }, text: Object.assign(Object.assign(Object.assign({ order: 1, cursor: disabledOrLoading ? 'default' : 'pointer' }, textSmallStyle), { color: disabledOrLoading ? disabledColor : primaryColor, transition: getTransition('color') }), buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { padding: `2px 0 0 ${spacingStaticSmall}` }))) }, getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state));
4532
4495
  };
4533
4496
 
4534
4497
  const getInlineSVGBackgroundImage = (path) => {
4535
4498
  return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
4536
4499
  };
4537
4500
 
4538
- const getComponentCss$R = (hideLabel, state, isDisabled, theme) => {
4539
- const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
4540
- const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
4541
- return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
4542
- '@global': {
4543
- '::slotted': addImportantToEachRule(Object.assign({ '&(input)': {
4501
+ const getComponentCss$R = (hideLabel, state, isDisabled, isLoading, theme) => {
4502
+ const { canvasColor } = getHighContrastColors();
4503
+ const checkedIconColor = isHighContrastMode
4504
+ ? canvasColor
4505
+ : getInvertedThemedColors(theme).primaryColor.replace(/#/g, '%23');
4506
+ const indeterminateIconColor = isHighContrastMode
4507
+ ? canvasColor
4508
+ : getThemedColors(theme).primaryColor.replace(/#/g, '%23');
4509
+ return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, isLoading, theme), Object.assign({ '@global': {
4510
+ '::slotted': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ '&(input)': {
4544
4511
  borderRadius: borderRadiusSmall,
4545
- }, '&(input:checked)': {
4512
+ } }, (!isLoading && {
4513
+ '&(input:checked)': {
4546
4514
  backgroundImage: getInlineSVGBackgroundImage(`<path fill="${checkedIconColor}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`),
4547
- }, '&(input:indeterminate)': {
4515
+ },
4516
+ })), { '&(input:indeterminate)': {
4548
4517
  backgroundImage: getInlineSVGBackgroundImage(`<path fill="${indeterminateIconColor}" d="m20,11v2H4v-2h16Z"/>`),
4549
- } }, (!isDisabled && {
4518
+ } }), (!isDisabled && {
4550
4519
  '&(input:focus)::before': {
4551
4520
  borderRadius: borderRadiusMedium,
4552
4521
  },
4553
4522
  }))),
4523
+ } }, (isLoading && {
4524
+ spinner: {
4525
+ position: 'absolute',
4526
+ top: `calc(${fontLineHeight}/2 + 2px)`,
4527
+ left: `calc(${fontLineHeight}/2 + 2px)`,
4528
+ transform: 'translate(-50%, -50%)',
4529
+ height: fontLineHeight,
4530
+ width: fontLineHeight,
4531
+ fontFamily,
4532
+ fontSize: '1rem',
4533
+ cursor: 'not-allowed',
4554
4534
  },
4555
- }));
4535
+ }))));
4556
4536
  };
4557
4537
 
4558
4538
  const widthMap = {
@@ -4581,19 +4561,33 @@ const getComponentCss$Q = (width) => {
4581
4561
  });
4582
4562
  };
4583
4563
 
4564
+ const crestSize = {
4565
+ width: 30,
4566
+ height: 40,
4567
+ };
4568
+
4569
+ const { width, height } = crestSize;
4570
+ const getDimensionStyle = {
4571
+ maxWidth: `${width}px`,
4572
+ maxHeight: `${height}px`,
4573
+ width: 'inherit',
4574
+ height: 'inherit',
4575
+ };
4584
4576
  const getComponentCss$P = () => {
4585
4577
  return getCss({
4586
4578
  '@global': {
4587
- ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
4588
- a: Object.assign({ display: 'block', textDecoration: 'none' }, focusPseudoJssStyle),
4579
+ ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, boxSizing: 'content-box' }, getDimensionStyle), hostHiddenStyles))),
4580
+ a: Object.assign(Object.assign({ display: 'block', textDecoration: 'none' }, getDimensionStyle), focusPseudoJssStyle),
4589
4581
  picture: {
4590
4582
  display: 'block',
4591
- width: '30px',
4592
- height: '40px',
4583
+ width: `min(${width}px, 100%)`,
4584
+ height: `min(${height}px, 100%)`,
4593
4585
  },
4594
4586
  img: {
4595
4587
  display: 'block',
4596
- width: '100%',
4588
+ maxWidth: '100%',
4589
+ maxHeight: '100%',
4590
+ width: 'auto',
4597
4591
  height: 'auto',
4598
4592
  },
4599
4593
  },
@@ -4659,7 +4653,7 @@ const getComponentCss$N = (color, orientation, theme) => {
4659
4653
  return getCss({
4660
4654
  '@global': {
4661
4655
  ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
4662
- hr: Object.assign({ margin: 0, padding: 0, border: 'none', textAlign: 'left', background: colorMap[color] }, buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' })),
4656
+ hr: Object.assign({ margin: 0, padding: 0, border: 'none', textAlign: 'left', background: isHighContrastMode ? getHighContrastColors().canvasTextColor : colorMap[color] }, buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' })),
4663
4657
  },
4664
4658
  });
4665
4659
  };
@@ -4910,10 +4904,12 @@ const getComponentCss$E = (color, size, theme) => {
4910
4904
  const isSizeInherit = size === 'inherit';
4911
4905
  const isDark = isThemeDark(theme);
4912
4906
  return getCss({
4913
- '@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0 }, (!isColorInherit && {
4914
- filter: filter[theme][color],
4915
- WebkitAnimation: `${isDark ? keyFramesDark : keyFramesLight} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
4916
- })), (isSizeInherit
4907
+ '@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0 }, (!isColorInherit && Object.assign(Object.assign({ filter: filter[theme][color] }, (isHighContrastMode &&
4908
+ getSchemedHighContrastMediaQuery({
4909
+ filter: filter.light[color],
4910
+ }, {
4911
+ filter: filter.dark[color],
4912
+ }))), { WebkitAnimation: `${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`} 1ms` }))), (isSizeInherit
4917
4913
  ? {
4918
4914
  width: size,
4919
4915
  height: size,
@@ -4923,7 +4919,7 @@ const getComponentCss$E = (color, size, theme) => {
4923
4919
  height: fontLineHeight,
4924
4920
  font: `${sizeMap$2[size]} ${fontFamily}`,
4925
4921
  })) }, (!isColorInherit && {
4926
- [`@keyframes ${isDark ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
4922
+ [`@keyframes ${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`}`]: forceRerenderAnimationStyle,
4927
4923
  })),
4928
4924
  });
4929
4925
  };
@@ -4942,20 +4938,14 @@ const getBackgroundColor = (state, theme) => {
4942
4938
  return colorMap[state];
4943
4939
  };
4944
4940
  const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
4945
- return {
4946
- display: 'grid',
4941
+ return Object.assign(Object.assign({ display: 'grid',
4947
4942
  // 2 columns for content and optional close button
4948
- gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
4949
- gap: spacingStaticMedium,
4950
- placeItems: 'start',
4951
- padding: spacingStaticMedium,
4952
- background: getBackgroundColor(state, theme),
4953
- borderRadius: borderRadiusSmall,
4954
- [mediaQueryMinS$1]: {
4943
+ gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`, gap: spacingStaticMedium, placeItems: 'start', padding: spacingStaticMedium, background: getBackgroundColor(state, theme), borderRadius: borderRadiusSmall }, (isHighContrastMode && {
4944
+ outline: '1px solid transparent',
4945
+ })), { [mediaQueryMinS$1]: {
4955
4946
  // 4 columns are for icon, content, optional action button and optional close button
4956
4947
  gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
4957
- },
4958
- };
4948
+ } });
4959
4949
  };
4960
4950
  const getNotificationIconJssStyle = () => ({
4961
4951
  [mediaQueryMaxS$1]: {
@@ -4992,7 +4982,6 @@ const getComponentCss$D = (state, hasAction, hasClose, theme) => {
4992
4982
 
4993
4983
  const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
4994
4984
  const { focusColor } = getThemedColors(theme);
4995
- const hasIcon = hasVisibleIcon(icon, iconSource);
4996
4985
  return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
4997
4986
  '@global': addImportantToEachRule({
4998
4987
  '::slotted': {
@@ -5002,7 +4991,7 @@ const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, a
5002
4991
  // (https://bugs.webkit.org/show_bug.cgi?id=178237)
5003
4992
  '&(a)::before': Object.assign({ content: '""', position: 'fixed', top: offsetVertical, bottom: offsetVertical, borderRadius: borderRadiusSmall }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
5004
4993
  right: hideLabelValue ? offsetVertical : offsetHorizontal,
5005
- left: hideLabelValue || hasIcon ? offsetVertical : offsetHorizontal,
4994
+ left: hideLabelValue ? offsetVertical : offsetHorizontal,
5006
4995
  }))),
5007
4996
  '&(a:focus)::before': {
5008
4997
  border: `${borderWidthBase} solid ${focusColor}`,
@@ -5019,8 +5008,12 @@ const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, a
5019
5008
 
5020
5009
  const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
5021
5010
  const { focusColor } = getThemedColors(theme);
5022
- return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
5023
- '@global': addImportantToEachRule({
5011
+ const { linkColor } = getHighContrastColors();
5012
+ return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && Object.assign(Object.assign({}, (isHighContrastMode && {
5013
+ root: {
5014
+ borderColor: linkColor,
5015
+ },
5016
+ })), { '@global': addImportantToEachRule({
5024
5017
  '::slotted': {
5025
5018
  '&(a)': Object.assign(Object.assign({}, getResetInitialStylesForSlottedAnchor), { outline: 0, textDecoration: 'none', font: 'inherit', color: 'inherit' }),
5026
5019
  // The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
@@ -5038,10 +5031,10 @@ const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAncho
5038
5031
  border: 0,
5039
5032
  },
5040
5033
  },
5041
- }),
5042
- }))));
5034
+ }) })))));
5043
5035
  };
5044
5036
 
5037
+ // array is redefined instead of using the one from in model-signature
5045
5038
  const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
5046
5039
 
5047
5040
  const getComponentCss$A = (aspectRatio, weight, direction, hasDescription) => {
@@ -5093,7 +5086,7 @@ const getComponentCss$y = (size) => {
5093
5086
 
5094
5087
  const mediaQueryXl = getMediaQueryMin('xl');
5095
5088
  const { backgroundColor, primaryColor: lightThemePrimaryColor } = getThemedColors('light');
5096
- const { primaryColor: darkThemePrimaryColor } = getThemedColors('dark');
5089
+ const { primaryColor: darkThemePrimaryColor, contrastHighColor: darkThemeContrastHighColor } = getThemedColors('dark');
5097
5090
  const transitionTimingFunction = 'cubic-bezier(.16,1,.3,1)';
5098
5091
  const stretchToFullModalWidthClassName = 'stretch-to-full-modal-width';
5099
5092
  const getFullscreenJssStyles = (fullscreen) => {
@@ -5176,7 +5169,7 @@ const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) =>
5176
5169
  transition: `opacity ${duration} ${transitionTimingFunction},transform ${duration} ${transitionTimingFunction}`,
5177
5170
  padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
5178
5171
  background: backgroundColor,
5179
- outline: 0,
5172
+ outline: isHighContrastMode ? '1px solid transparent' : 0,
5180
5173
  '&:focus::before': Object.assign({ content: '""', position: 'fixed', border: `${borderWidthBase} solid`, pointerEvents: 'none' }, buildResponsiveStyles(isFullscreen, (fullscreenValue) => (Object.assign({ borderRadius: fullscreenValue ? 0 : '12px', borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor }, getInsetJssStyle(fullscreenValue ? 0 : -4))))),
5181
5174
  '&:not(:focus-visible)::before': {
5182
5175
  border: 0,
@@ -5191,13 +5184,15 @@ const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) =>
5191
5184
  })), (hasDismissButton && {
5192
5185
  dismiss: Object.assign({ position: 'absolute', top: '8px', right: '8px', border: `2px solid ${backgroundColor}`, borderRadius: '4px', background: backgroundColor }, hoverMediaQuery({
5193
5186
  '&:hover': {
5194
- background: 'transparent',
5195
- borderColor: 'transparent',
5187
+ background: darkThemeContrastHighColor,
5188
+ borderColor: darkThemeContrastHighColor,
5196
5189
  },
5197
5190
  })),
5198
5191
  })));
5199
5192
  };
5200
5193
 
5194
+ const modelSignatureHeight = 36;
5195
+
5201
5196
  const colorToFilterMap = {
5202
5197
  light: {
5203
5198
  primary: filterLightPrimary,
@@ -5217,8 +5212,18 @@ const getComponentCss$w = (size, color, theme) => {
5217
5212
  const isColorInherit = color === 'inherit';
5218
5213
  return getCss({
5219
5214
  '@global': {
5220
- ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
5221
- img: Object.assign(Object.assign({ display: 'block', pointerEvents: 'none' }, (!isColorInherit && { filter: colorToFilterMap[theme][color] })), (isSizeInherit && { height: size })),
5215
+ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ maxWidth: '100%', maxHeight: '100%' }, (!isSizeInherit && {
5216
+ width: 'inherit',
5217
+ height: 'inherit',
5218
+ // TODO: we need a width map of all signatures to ensure same fluid behavior like implemented fro crest + wordmark
5219
+ maxHeight: `${modelSignatureHeight}px`,
5220
+ })), hostHiddenStyles))),
5221
+ img: Object.assign(Object.assign({ display: 'block', maxWidth: '100%', maxHeight: '100%', pointerEvents: 'none' }, (!isColorInherit && Object.assign({ filter: colorToFilterMap[theme][color] }, (isHighContrastMode &&
5222
+ getSchemedHighContrastMediaQuery({
5223
+ filter: colorToFilterMap.light[color],
5224
+ }, {
5225
+ filter: colorToFilterMap.dark[color],
5226
+ }))))), (isSizeInherit && { height: size })),
5222
5227
  },
5223
5228
  });
5224
5229
  };
@@ -5278,7 +5283,7 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
5278
5283
  };
5279
5284
 
5280
5285
  const { backgroundColor: backgroundColorThemeLight, primaryColor: primaryColorThemeLight } = getThemedColors('light');
5281
- const mediaQueryForcedColors = '@media (forced-colors: active)';
5286
+ const { canvasColor, canvasTextColor } = getHighContrastColors();
5282
5287
  const directionPositionMap = {
5283
5288
  top: {
5284
5289
  bottom: '100%',
@@ -5303,8 +5308,6 @@ const directionPositionMap = {
5303
5308
  };
5304
5309
  const borderWidth = '12px';
5305
5310
  const transparentColor = 'transparent';
5306
- const canvas = 'canvas';
5307
- const canvasText = 'canvastext';
5308
5311
  const join = (...arr) => arr.join(' ');
5309
5312
  const directionArrowMap = {
5310
5313
  top: {
@@ -5312,40 +5315,36 @@ const directionArrowMap = {
5312
5315
  left: '50%',
5313
5316
  transform: 'translateX(-50%)',
5314
5317
  borderWidth: join(borderWidth, borderWidth, 0),
5315
- borderColor: join(backgroundColorThemeLight, transparentColor, transparentColor),
5316
- [mediaQueryForcedColors]: {
5317
- borderColor: join(canvasText, canvas, canvas),
5318
- },
5318
+ borderColor: isHighContrastMode
5319
+ ? join(canvasTextColor, canvasColor, canvasColor)
5320
+ : join(backgroundColorThemeLight, transparentColor, transparentColor),
5319
5321
  },
5320
5322
  right: {
5321
5323
  top: '50%',
5322
5324
  right: 0,
5323
5325
  transform: 'translateY(-50%)',
5324
5326
  borderWidth: join(borderWidth, borderWidth, borderWidth, 0),
5325
- borderColor: join(transparentColor, backgroundColorThemeLight, transparentColor, transparentColor),
5326
- [mediaQueryForcedColors]: {
5327
- borderColor: join(canvas, canvasText, canvas, canvas),
5328
- },
5327
+ borderColor: isHighContrastMode
5328
+ ? join(canvasColor, canvasTextColor, canvasColor, canvasColor)
5329
+ : join(transparentColor, backgroundColorThemeLight, transparentColor, transparentColor),
5329
5330
  },
5330
5331
  bottom: {
5331
5332
  bottom: 0,
5332
5333
  left: '50%',
5333
5334
  transform: 'translateX(-50%)',
5334
5335
  borderWidth: join(0, borderWidth, borderWidth),
5335
- borderColor: join(transparentColor, transparentColor, backgroundColorThemeLight),
5336
- [mediaQueryForcedColors]: {
5337
- borderColor: join(canvas, canvas, canvasText),
5338
- },
5336
+ borderColor: isHighContrastMode
5337
+ ? join(canvasColor, canvasColor, canvasTextColor)
5338
+ : join(transparentColor, transparentColor, backgroundColorThemeLight),
5339
5339
  },
5340
5340
  left: {
5341
5341
  top: '50%',
5342
5342
  left: 0,
5343
5343
  transform: 'translateY(-50%)',
5344
5344
  borderWidth: join(borderWidth, 0, borderWidth, borderWidth),
5345
- borderColor: join(transparentColor, transparentColor, transparentColor, backgroundColorThemeLight),
5346
- [mediaQueryForcedColors]: {
5347
- borderColor: join(canvas, canvas, canvas, canvasText),
5348
- },
5345
+ borderColor: isHighContrastMode
5346
+ ? join(canvasColor, canvasColor, canvasColor, canvasTextColor)
5347
+ : join(transparentColor, transparentColor, transparentColor, backgroundColorThemeLight),
5349
5348
  },
5350
5349
  };
5351
5350
  const getComponentCss$u = (direction, theme) => {
@@ -5364,7 +5363,7 @@ const getComponentCss$u = (direction, theme) => {
5364
5363
  borderColor: 'transparent',
5365
5364
  } }),
5366
5365
  },
5367
- label: getTextHiddenJssStyle(true),
5366
+ label: getHiddenTextJssStyle(),
5368
5367
  icon: {
5369
5368
  display: 'inline-block',
5370
5369
  transform: 'translate3d(0,0,0)', // Fixes movement on hover in Safari
@@ -5383,9 +5382,9 @@ const getComponentCss$u = (direction, theme) => {
5383
5382
  ,
5384
5383
  '&::before': Object.assign({ content: '""', position: 'absolute', borderStyle: 'solid' }, directionArrowMap[direction]),
5385
5384
  },
5386
- popover: Object.assign(Object.assign(Object.assign({ position: 'absolute', maxWidth: 'min(90vw, 27rem)', width: 'max-content', boxSizing: 'border-box', background: backgroundColorThemeLight, padding: '8px 16px', pointerEvents: 'auto' }, directionPositionMap[direction]), textSmallStyle), { listStyleType: 'none', color: primaryColorThemeLight, whiteSpace: 'inherit', borderRadius: borderRadiusSmall, [mediaQueryForcedColors]: {
5387
- outline: `1px solid ${canvasText}`,
5388
- } }),
5385
+ popover: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'absolute', maxWidth: 'min(90vw, 27rem)', width: 'max-content', boxSizing: 'border-box', background: backgroundColorThemeLight, padding: '8px 16px', pointerEvents: 'auto' }, directionPositionMap[direction]), textSmallStyle), { listStyleType: 'none', color: primaryColorThemeLight, whiteSpace: 'inherit', borderRadius: borderRadiusSmall }), (isHighContrastMode && {
5386
+ outline: `1px solid ${canvasTextColor}`,
5387
+ })),
5389
5388
  '@keyframes fadeIn': {
5390
5389
  from: {
5391
5390
  opacity: 0,
@@ -5398,8 +5397,10 @@ const getComponentCss$u = (direction, theme) => {
5398
5397
  };
5399
5398
 
5400
5399
  const getComponentCss$t = (hideLabel, state, isDisabled, theme) => {
5401
- const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
5402
- return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
5400
+ const checkedIconColor = isHighContrastMode
5401
+ ? getHighContrastColors().canvasColor
5402
+ : getInvertedThemedColors(theme).primaryColor.replace(/#/g, '%23');
5403
+ return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, false, theme), {
5403
5404
  '@global': {
5404
5405
  '::slotted': addImportantToEachRule(Object.assign({ '&(input)': {
5405
5406
  borderRadius: '50%',
@@ -5517,10 +5518,11 @@ const ICON_SIZE = pxToRemWithUnit(24);
5517
5518
  const ICON_MARGIN = pxToRemWithUnit(4);
5518
5519
  const getColors$2 = (isDisabled, isSelected, theme) => {
5519
5520
  const { primaryColor, contrastMediumColor, disabledColor, contrastLowColor } = getThemedColors(theme);
5521
+ const { highlightColor } = getHighContrastColors();
5520
5522
  return {
5521
5523
  buttonColor: isDisabled ? disabledColor : primaryColor,
5522
5524
  labelColor: isDisabled ? disabledColor : contrastMediumColor,
5523
- borderColor: isSelected ? primaryColor : contrastLowColor,
5525
+ borderColor: isSelected ? (isHighContrastMode ? highlightColor : primaryColor) : contrastLowColor,
5524
5526
  hoverBorderColor: primaryColor,
5525
5527
  };
5526
5528
  };
@@ -5566,6 +5568,7 @@ const getComponentCss$q = (maxWidth) => {
5566
5568
  },
5567
5569
  });
5568
5570
  };
5571
+
5569
5572
  const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
5570
5573
  const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
5571
5574
  const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
@@ -5599,7 +5602,7 @@ const getLabelStyles = (child, isDisabled, hideLabel, state, theme, counterOrUni
5599
5602
  flexDirection: 'column',
5600
5603
  gap: spacingStaticXSmall,
5601
5604
  position: 'relative',
5602
- '&__text': Object.assign(Object.assign(Object.assign(Object.assign({ display: 'block' }, buildResponsiveStyles(hideLabel, getFormTextHiddenJssStyle)), textSmallStyle), { color: isDisabled ? disabledColor : primaryColor, transition: getTransition('color'), '&+&': Object.assign({ marginTop: `-${spacingStaticXSmall}`, fontSize: fontSizeTextXSmall }, (!isDisabled && {
5605
+ '&__text': Object.assign(Object.assign(Object.assign(Object.assign({ display: 'block' }, buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { width: 'fit-content' }))), textSmallStyle), { color: isDisabled ? disabledColor : primaryColor, transition: getTransition('color'), '&+&': Object.assign({ marginTop: `-${spacingStaticXSmall}`, fontSize: fontSizeTextXSmall }, (!isDisabled && {
5603
5606
  color: contrastHighColor,
5604
5607
  })) }), hoverMediaQuery({
5605
5608
  '&:hover': {
@@ -5616,14 +5619,10 @@ const getLabelStyles = (child, isDisabled, hideLabel, state, theme, counterOrUni
5616
5619
  })),
5617
5620
  }));
5618
5621
  };
5619
- const ICON_SPACE = `${24 + 13 * 2 + 2}px`; // 24px = icon width, 13px * 2 = padding, 2px = border
5620
- const getComponentCss$p = (isDisabled, hideLabel, state, theme) => {
5621
- return getCss(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule(Object.assign({ ':host': Object.assign({ display: 'block' }, hostHiddenStyles) }, getBaseChildStyles('select', state, theme, {
5622
- position: 'static',
5623
- zIndex: 0,
5624
- cursor: 'pointer',
5625
- padding: `8px ${ICON_SPACE} 8px ${spacingStaticMedium}`,
5626
- }))), root: {
5622
+
5623
+ const OPTION_HEIGHT = 40; // optgroups are higher and ignored
5624
+ const getComponentCss$p = (isDisabled, native, hideLabel, state, theme) => {
5625
+ return getCss(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule(Object.assign({ ':host': Object.assign({ display: 'block' }, hostHiddenStyles) }, getBaseChildStyles('select', state, theme, Object.assign({ position: 'static', zIndex: 0, cursor: 'pointer', padding: `8px calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2) 8px ${spacingStaticMedium}` }, (!native && !isDisabled && { borderColor: 'transparent' }))))), root: {
5627
5626
  display: 'block',
5628
5627
  position: 'relative',
5629
5628
  } }, getLabelStyles('select', isDisabled, hideLabel, state, theme, {
@@ -5640,6 +5639,129 @@ const getComponentCss$p = (isDisabled, hideLabel, state, theme) => {
5640
5639
  })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)));
5641
5640
  };
5642
5641
 
5642
+ const dropdownPositionVar = '--p-internal-dropdown-position';
5643
+ const getButtonStyles = (direction, isOpen, state, theme) => {
5644
+ const { primaryColor, disabledColor, contrastMediumColor } = getThemedColors(theme);
5645
+ const { formStateHoverColor, formStateColor } = getThemedFormStateColors(theme, state);
5646
+ const isDirectionDown = direction === 'down';
5647
+ return {
5648
+ '@global': {
5649
+ button: Object.assign(Object.assign(Object.assign({ position: 'absolute', top: 0, height: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`, width: '100%', font: textSmallStyle.font.replace('ex', 'ex + 6px'), padding: 0, background: 'transparent', border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall, outline: '0', cursor: 'pointer', transition: getTransition('border-color'), '&:focus, &:focus ~ ul': {
5650
+ borderColor: primaryColor,
5651
+ } }, hoverMediaQuery({
5652
+ '&:not(:disabled):not(:focus):hover': {
5653
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5654
+ },
5655
+ })), { '&:disabled': {
5656
+ cursor: 'not-allowed',
5657
+ borderColor: disabledColor,
5658
+ } }), (isOpen && {
5659
+ [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
5660
+ [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
5661
+ })),
5662
+ },
5663
+ };
5664
+ };
5665
+ const getFilterStyles = (direction, isOpen, state, disabled, theme) => {
5666
+ const { primaryColor, backgroundColor, disabledColor, contrastMediumColor } = getThemedColors(theme);
5667
+ const { formStateHoverColor, formStateColor } = getThemedFormStateColors(theme, state);
5668
+ const isDirectionDown = direction === 'down';
5669
+ const placeHolderJssStyle = {
5670
+ opacity: 1,
5671
+ color: disabled ? disabledColor : primaryColor,
5672
+ };
5673
+ return {
5674
+ '@global': {
5675
+ input: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'block', position: 'absolute', zIndex: 1, bottom: '2px', left: '2px', width: `calc(100% - (${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`, height: `calc(${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`, font: textSmallStyle.font.replace('ex', 'ex + 6px'), padding: `13px ${spacingStaticMedium}`, outline: '0', appearance: 'none', boxSizing: 'border-box', border: '0', borderRadius: borderRadiusSmall, opacity: 0 }, textSmallStyle), { textIndent: 0, cursor: disabled ? 'not-allowed' : 'text', color: primaryColor, background: backgroundColor, '&::placeholder': placeHolderJssStyle, '&::-webkit-input-placeholder': placeHolderJssStyle, '&::-moz-placeholder': placeHolderJssStyle, '&:not(:disabled):focus': {
5676
+ opacity: 1,
5677
+ '&+span, &~ ul': {
5678
+ borderColor: primaryColor,
5679
+ },
5680
+ } }), hoverMediaQuery({
5681
+ '&:not(:disabled)': {
5682
+ '&+span:hover': {
5683
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5684
+ },
5685
+ '&:hover': {
5686
+ '&+span, &~ul': {
5687
+ borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
5688
+ },
5689
+ },
5690
+ },
5691
+ })), { '&+span': Object.assign(Object.assign(Object.assign({
5692
+ // for focus outline and clicking arrow since input ends left of the icon
5693
+ position: 'absolute' }, getInsetJssStyle()), { transition: getTransition('border-color'), pointerEvents: 'all', cursor: disabled ? 'not-allowed' : 'pointer', border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`, borderRadius: borderRadiusSmall }), (isOpen && {
5694
+ [isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
5695
+ [isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
5696
+ })) }),
5697
+ },
5698
+ };
5699
+ };
5700
+ const getListStyles = (direction, theme) => {
5701
+ const isDirectionDown = direction === 'down';
5702
+ const { primaryColor, backgroundColor, contrastMediumColor, contrastHighColor, backgroundSurfaceColor, disabledColor, } = getThemedColors(theme);
5703
+ const { highlightColor } = getHighContrastColors();
5704
+ return {
5705
+ '@global': {
5706
+ ul: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', flexDirection: 'column', gap: spacingStaticSmall, position: `var(${dropdownPositionVar})`, padding: '6px', margin: 0, background: backgroundColor }, textSmallStyle), { zIndex: 10, left: 0, right: 0, [isDirectionDown ? 'top' : 'bottom']: 'calc(100% - 2px)', boxSizing: 'border-box', maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`, overflowY: 'auto', WebkitOverflowScrolling: 'touch', scrollBehavior: 'smooth', border: `2px solid ${primaryColor}`, [isDirectionDown ? 'borderTop' : 'borderBottom']: addImportantToRule(`1px solid ${contrastMediumColor}`) }), (isDirectionDown
5707
+ ? ['borderBottomLeftRadius', 'borderBottomRightRadius']
5708
+ : ['borderTopLeftRadius', 'borderTopRightRadius']).reduce((result, curr) => (Object.assign(Object.assign({}, result), { [curr]: borderRadiusSmall })), {})), { scrollbarWidth: 'thin', scrollbarColor: 'auto', transition: getTransition('border-color'), transform: 'translate3d(0,0,0)' }),
5709
+ },
5710
+ option: Object.assign(Object.assign({ display: 'flex', justifyContent: 'space-between', gap: '12px', padding: `${spacingStaticSmall} 12px`, flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`, color: contrastHighColor, cursor: 'pointer', textAlign: 'left', wordBreak: 'break-word', boxSizing: 'border-box', borderRadius: borderRadiusSmall, transition: ['background-color', 'color'].map(getTransition).join(), '&[role=status]': {
5711
+ cursor: 'not-allowed',
5712
+ }, '&__sr': getHiddenTextJssStyle() }, hoverMediaQuery({
5713
+ '&:not([aria-disabled]):not([role=status]):hover': {
5714
+ color: isHighContrastMode ? highlightColor : primaryColor,
5715
+ background: backgroundSurfaceColor,
5716
+ },
5717
+ })), { '&--highlighted, &--selected': {
5718
+ color: isHighContrastMode ? highlightColor : primaryColor,
5719
+ background: backgroundSurfaceColor,
5720
+ }, '&--selected': {
5721
+ cursor: 'default',
5722
+ pointerEvents: 'none',
5723
+ }, '&--disabled': {
5724
+ cursor: 'not-allowed',
5725
+ color: disabledColor,
5726
+ }, '&--hidden': {
5727
+ display: 'none',
5728
+ } }),
5729
+ optgroup: {
5730
+ display: 'block',
5731
+ padding: '3px 14px',
5732
+ fontWeight: fontWeightSemiBold,
5733
+ '&:not(:first-child)': {
5734
+ marginTop: spacingStaticSmall,
5735
+ },
5736
+ '&~$option': {
5737
+ paddingLeft: '24px',
5738
+ },
5739
+ },
5740
+ };
5741
+ };
5742
+ const getComponentCss$o = (direction, isOpen, state, disabled, filter, theme) => {
5743
+ const { primaryColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
5744
+ const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
5745
+ return getCss(
5746
+ // merge because of global styles
5747
+ mergeDeep({
5748
+ '@global': {
5749
+ ':host': Object.assign({ [dropdownPositionVar]: 'absolute', display: 'block', position: `var(${dropdownPositionVar})`, font: textSmallStyle.font.replace('ex', 'ex + 6px'), marginTop: `calc(-1 * (${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`, paddingTop: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`, left: 0, right: 0, color: disabled ? disabledColor : formStateColor || contrastMediumColor }, (!disabled &&
5750
+ !isHighContrastMode &&
5751
+ hoverMediaQuery({
5752
+ '&(:hover)': {
5753
+ color: formStateHoverColor || primaryColor,
5754
+ },
5755
+ }))),
5756
+ },
5757
+ 'sr-text': {
5758
+ display: 'none',
5759
+ },
5760
+ }, filter
5761
+ ? getFilterStyles(direction, isOpen, state, disabled, theme)
5762
+ : getButtonStyles(direction, isOpen, state, theme), isOpen && getListStyles(direction, theme)));
5763
+ };
5764
+
5643
5765
  const sizeSmall = '48px';
5644
5766
  const sizeMedium = '72px';
5645
5767
  const sizeLarge = '104px';
@@ -5653,6 +5775,7 @@ const getComponentCss$n = (size, theme) => {
5653
5775
  const strokeDasharray = '57'; // C = 2πR
5654
5776
  const animationDuration = 'var(--p-animation-duration, 2s)';
5655
5777
  const { primaryColor, contrastMediumColor } = getThemedColors(theme);
5778
+ const { canvasColor, canvasTextColor } = getHighContrastColors();
5656
5779
  return getCss({
5657
5780
  '@global': {
5658
5781
  ':host': addImportantToEachRule(Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, hostHiddenStyles)),
@@ -5665,13 +5788,13 @@ const getComponentCss$n = (size, theme) => {
5665
5788
  },
5666
5789
  circle: {
5667
5790
  '&:first-child': {
5668
- stroke: contrastMediumColor,
5791
+ stroke: isHighContrastMode ? canvasTextColor : contrastMediumColor,
5669
5792
  animation: `$rotate ${animationDuration} linear infinite`, // needs to rotate to eliminate stutter in safari
5670
5793
  },
5671
5794
  '&:last-child': {
5672
5795
  transformOrigin: '0 0',
5673
5796
  animation: `$dash ${animationDuration} ease-in-out infinite`,
5674
- stroke: primaryColor,
5797
+ stroke: isHighContrastMode ? canvasColor : primaryColor,
5675
5798
  strokeDasharray: strokeDasharray
5676
5799
  ,
5677
5800
  strokeLinecap: 'round',
@@ -5701,7 +5824,7 @@ const getComponentCss$n = (size, theme) => {
5701
5824
  },
5702
5825
  },
5703
5826
  root: Object.assign(Object.assign({ display: 'block' }, buildResponsiveStyles(size, (s) => sizeMap$1[s])), { margin: 0, padding: 0, boxSizing: 'border-box', strokeWidth: 1.5 }),
5704
- 'sr-only': getScreenReaderOnlyJssStyle(),
5827
+ 'sr-only': getHiddenTextJssStyle(),
5705
5828
  });
5706
5829
  };
5707
5830
 
@@ -5764,7 +5887,7 @@ const getComponentCss$m = (state, disabled, theme) => {
5764
5887
  height: fontLineHeight,
5765
5888
  width: fontLineHeight,
5766
5889
  },
5767
- })), { 'sr-only': getScreenReaderOnlyJssStyle() }));
5890
+ })), { 'sr-only': getHiddenTextJssStyle() }));
5768
5891
  };
5769
5892
 
5770
5893
  const getComponentCss$l = (size) => {
@@ -5779,17 +5902,28 @@ const getComponentCss$l = (size) => {
5779
5902
  const getColors$1 = (checked, disabled, loading, theme) => {
5780
5903
  const { primaryColor, contrastMediumColor, successColor, successColorDarken, disabledColor } = getThemedColors(theme);
5781
5904
  const { backgroundColor: lightThemeBackgroundColor } = getThemedColors('light');
5782
- const checkedColor = successColor;
5905
+ const { canvasColor, canvasTextColor } = getHighContrastColors();
5906
+ const checkedColor = isHighContrastMode ? canvasTextColor : successColor;
5783
5907
  const disabledOrLoadingColor = isDisabledOrLoading(disabled, loading) && disabledColor;
5784
5908
  return {
5785
5909
  buttonBorderColor: disabledOrLoadingColor || (checked ? checkedColor : contrastMediumColor),
5786
- buttonBorderColorHover: checked ? successColorDarken : primaryColor,
5910
+ buttonBorderColorHover: checked ? (isHighContrastMode ? primaryColor : successColorDarken) : primaryColor,
5787
5911
  buttonBackgroundColor: checked ? disabledOrLoadingColor || checkedColor : 'transparent',
5788
- buttonBackgroundColorHover: checked ? successColorDarken : 'transparent',
5912
+ buttonBackgroundColorHover: checked ? (isHighContrastMode ? checkedColor : successColorDarken) : 'transparent',
5789
5913
  toggleBackgroundColor: (loading && 'transparent') ||
5790
5914
  (disabled && !checked && disabledColor) ||
5791
- (checked ? lightThemeBackgroundColor : primaryColor),
5792
- toggleBackgroundColorHover: checked ? lightThemeBackgroundColor : primaryColor,
5915
+ (checked
5916
+ ? isHighContrastMode
5917
+ ? canvasColor
5918
+ : lightThemeBackgroundColor
5919
+ : isHighContrastMode
5920
+ ? canvasTextColor
5921
+ : primaryColor),
5922
+ toggleBackgroundColorHover: checked
5923
+ ? lightThemeBackgroundColor
5924
+ : isHighContrastMode
5925
+ ? canvasTextColor
5926
+ : primaryColor,
5793
5927
  textColor: disabledOrLoadingColor || primaryColor,
5794
5928
  };
5795
5929
  };
@@ -5843,7 +5977,7 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
5843
5977
  },
5844
5978
  })), { label: Object.assign(Object.assign(Object.assign({}, textSmallStyle), { paddingTop: '2px', minWidth: 0, minHeight: 0, color: textColor }), mergeDeep(buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
5845
5979
  order: alignLabelValue === 'left' ? -1 : 0,
5846
- })), buildResponsiveStyles(hideLabel, getTextHiddenJssStyle))) }));
5980
+ })), buildResponsiveStyles(hideLabel, getHiddenTextJssStyle))) }));
5847
5981
  };
5848
5982
 
5849
5983
  const getComponentCss$j = () => {
@@ -5875,11 +6009,12 @@ const getComponentCss$h = (theme) => {
5875
6009
  return getCss({
5876
6010
  '@global': {
5877
6011
  ':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ display: 'block' }, textSmallStyle), { color: primaryColor, textAlign: 'left' }), hostHiddenStyles)),
5878
- '::slotted(*)': addImportantToEachRule({
5879
- [cssVariableTableHoverColor]: hoverColor,
5880
- [cssVariableTableBorderColor]: contrastLowColor,
5881
- [cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none',
5882
- }),
6012
+ '::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariableTableHoverColor]: hoverColor, [cssVariableTableBorderColor]: contrastLowColor, [cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none' }, (isHighContrastMode &&
6013
+ getSchemedHighContrastMediaQuery({
6014
+ [cssVariableTableHeadCellIconFilter]: 'none',
6015
+ }, {
6016
+ [cssVariableTableHeadCellIconFilter]: 'invert(100%)',
6017
+ })))),
5883
6018
  },
5884
6019
  caption: {
5885
6020
  marginBottom: spacingFluidMedium,
@@ -5924,7 +6059,7 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
5924
6059
  } }),
5925
6060
  }
5926
6061
  : hideLabel && {
5927
- span: Object.assign(Object.assign({}, getTextHiddenJssStyle(true)), { display: 'block', border: 0 }),
6062
+ span: Object.assign(Object.assign({}, getHiddenTextJssStyle()), { display: 'block', border: 0 }),
5928
6063
  })) }, (sortable && {
5929
6064
  icon: {
5930
6065
  transition: getTransition('opacity'),
@@ -5994,10 +6129,10 @@ const getComponentCss$c = (size, weight, theme) => {
5994
6129
  display: 'block',
5995
6130
  position: 'absolute',
5996
6131
  width: 0,
5997
- height: weight === 'semi-bold' ? '2px' : '1.5px',
6132
+ height: '2px',
5998
6133
  left: 0,
5999
- bottom: '-4px',
6000
- background: primaryColor,
6134
+ bottom: isHighContrastMode ? '0' : '-2px',
6135
+ background: isHighContrastMode ? getHighContrastColors().canvasTextColor : primaryColor,
6001
6136
  '&--enable-transition': {
6002
6137
  willChange: 'width',
6003
6138
  transition: `transform ${tabsTransitionDuration},width ${tabsTransitionDuration}`,
@@ -6058,7 +6193,7 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
6058
6193
  const backgroundColor = getThemedBackgroundColor(color, themedColors);
6059
6194
  return getCss(Object.assign(Object.assign({ '@global': {
6060
6195
  ':host': addImportantToEachRule(Object.assign({ display: 'inline-block', verticalAlign: 'top', outline: 0 }, hostHiddenStyles)),
6061
- button: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', alignItems: 'center', gap: '12px', minHeight: '54px', padding: '4px 0 4px 12px', borderRadius: borderRadiusSmall, border: 0, cursor: 'pointer', background: backgroundColor, color: primaryColor, textAlign: 'left' }, textSmallStyle), { outline: 0 }), getTagFocusJssStyle(themedColors)), hoverMediaQuery({
6196
+ button: Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', alignItems: 'center', gap: '12px', minHeight: '54px', padding: '4px 0 4px 12px', borderRadius: borderRadiusSmall, border: 0, cursor: 'pointer', background: backgroundColor, color: primaryColor, textAlign: 'left' }, textSmallStyle), { outline: isHighContrastMode ? '1px solid transparent' : 0 }), getTagFocusJssStyle(themedColors)), hoverMediaQuery({
6062
6197
  '&:hover > .icon': {
6063
6198
  backgroundColor: hoverColor,
6064
6199
  },
@@ -6075,7 +6210,7 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
6075
6210
  marginRight: '10px',
6076
6211
  transition: getTransition('background-color'),
6077
6212
  borderRadius: borderRadiusSmall,
6078
- }, 'sr-only': getScreenReaderOnlyJssStyle() }));
6213
+ }, 'sr-only': getHiddenTextJssStyle() }));
6079
6214
  };
6080
6215
 
6081
6216
  const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
@@ -6108,7 +6243,9 @@ const getComponentCss$8 = (tagColor, isFocusable, theme) => {
6108
6243
  return getCss({
6109
6244
  '@global': {
6110
6245
  ':host': Object.assign({ display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)),
6111
- span: Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isFocusable &&
6246
+ span: Object.assign(Object.assign({ display: 'flex', gap: '2px', alignItems: 'center', position: 'relative', padding: '4px 9px', borderRadius: borderRadiusSmall, background: backgroundColor, color: primaryColor, font: textXSmallStyle.font, whiteSpace: 'nowrap' }, (isHighContrastMode && {
6247
+ outline: '1px solid transparent',
6248
+ })), (isFocusable &&
6112
6249
  hoverMediaQuery({
6113
6250
  transition: getTransition('background-color'),
6114
6251
  '&:hover': {
@@ -6201,7 +6338,7 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
6201
6338
  },
6202
6339
  })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)), {
6203
6340
  // TODO: could be made conditional if we had hasUnit
6204
- 'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
6341
+ 'sr-only': Object.assign(Object.assign({}, getHiddenTextJssStyle()), { padding: 0 }) }));
6205
6342
  };
6206
6343
 
6207
6344
  /** @deprecated */
@@ -6298,7 +6435,7 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
6298
6435
  color: contrastMediumColor,
6299
6436
  },
6300
6437
  })), getFunctionalComponentRequiredStyles()), getFunctionalComponentStateMessageStyles(theme, state)), (hasCounter && {
6301
- 'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }),
6438
+ 'sr-only': Object.assign(Object.assign({}, getHiddenTextJssStyle()), { padding: 0 }),
6302
6439
  })));
6303
6440
  };
6304
6441
 
@@ -6352,15 +6489,19 @@ const getComponentCss$1 = () => {
6352
6489
  const getComponentCss = (size, theme) => {
6353
6490
  return getCss({
6354
6491
  '@global': {
6355
- ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, boxSizing: 'content-box' }, (!(size === 'inherit') && { height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)' })), hostHiddenStyles))),
6356
- a: Object.assign({ display: 'block', textDecoration: 'none', height: 'inherit' }, focusPseudoJssStyle),
6357
- svg: {
6492
+ ':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, maxWidth: '100%', maxHeight: '100%', boxSizing: 'content-box' }, (!(size === 'inherit') && { height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)' })), hostHiddenStyles))),
6493
+ 'a, svg': {
6358
6494
  display: 'block',
6495
+ maxWidth: '100%',
6496
+ maxHeight: '100%',
6359
6497
  height: 'inherit',
6360
- fill: getThemedColors(theme).primaryColor,
6498
+ },
6499
+ a: Object.assign({ textDecoration: 'none' }, focusPseudoJssStyle),
6500
+ svg: {
6501
+ fill: isHighContrastMode ? getHighContrastColors().canvasTextColor : getThemedColors(theme).primaryColor,
6361
6502
  },
6362
6503
  },
6363
6504
  });
6364
6505
  };
6365
6506
 
6366
- export { getComponentCss$Y as getAccordionCss, getComponentCss$X as getBannerCss, getComponentCss$T as getButtonCss, getComponentCss$W as getButtonGroupCss, getComponentCss$V as getButtonPureCss, getComponentCss$U as getButtonTileCss, getComponentCss$S as getCarouselCss, getComponentCss$R as getCheckboxWrapperCss, getComponentCss$Q as getContentWrapperCss, getComponentCss$P as getCrestCss, getComponentCss$O as getDisplayCss, getComponentCss$N as getDividerCss, getComponentCss$L as getFieldsetCss, getComponentCss$M as getFieldsetWrapperCss, getComponentCss$J as getFlexCss, getComponentCss$K as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$H as getGridCss, getComponentCss$I as getGridItemCss, getComponentCss$G as getHeadingCss, getComponentCss$F as getHeadlineCss, getComponentCss$E as getIconCss, getComponentCss$D as getInlineNotificationCss, getComponentCss$B as getLinkCss, getComponentCss$C as getLinkPureCss, getComponentCss$B as getLinkSocialCss, getComponentCss$z as getLinkTileCss, getComponentCss$A as getLinkTileModelSignatureCss, getComponentCss$y as getMarqueCss, getComponentCss$x as getModalCss, getComponentCss$w as getModelSignatureCss, getComponentCss$v as getPaginationCss, getComponentCss$u as getPopoverCss, getComponentCss$t as getRadioButtonWrapperCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$p as getSelectWrapperCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
6507
+ export { getComponentCss$Y as getAccordionCss, getComponentCss$X as getBannerCss, getComponentCss$T as getButtonCss, getComponentCss$W as getButtonGroupCss, getComponentCss$V as getButtonPureCss, getComponentCss$U as getButtonTileCss, getComponentCss$S as getCarouselCss, getComponentCss$R as getCheckboxWrapperCss, getComponentCss$Q as getContentWrapperCss, getComponentCss$P as getCrestCss, getComponentCss$O as getDisplayCss, getComponentCss$N as getDividerCss, getComponentCss$L as getFieldsetCss, getComponentCss$M as getFieldsetWrapperCss, getComponentCss$J as getFlexCss, getComponentCss$K as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$H as getGridCss, getComponentCss$I as getGridItemCss, getComponentCss$G as getHeadingCss, getComponentCss$F as getHeadlineCss, getComponentCss$E as getIconCss, getComponentCss$D as getInlineNotificationCss, getComponentCss$B as getLinkCss, getComponentCss$C as getLinkPureCss, getComponentCss$B as getLinkSocialCss, getComponentCss$z as getLinkTileCss, getComponentCss$A as getLinkTileModelSignatureCss, getComponentCss$y as getMarqueCss, getComponentCss$x as getModalCss, getComponentCss$w as getModelSignatureCss, getComponentCss$v as getPaginationCss, getComponentCss$u as getPopoverCss, getComponentCss$t as getRadioButtonWrapperCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$p as getSelectWrapperCss, getComponentCss$o as getSelectWrapperDropdownCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };