@czi-sds/components 23.1.0 → 23.2.1

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.
package/dist/index.cjs.js CHANGED
@@ -526,7 +526,7 @@ const Spaces = {
526
526
  xs: 6,
527
527
  s: 8,
528
528
  m: 12,
529
- default: 12,
529
+ default: 8,
530
530
  l: 16,
531
531
  xl: 24,
532
532
  xxl: 32,
@@ -811,7 +811,7 @@ const SDSPaletteLight = (appTheme) => {
811
811
  backgroundPrimaryDark: appTheme.colors.gray[900],
812
812
  backgroundPrimaryInverse: appTheme.colors.gray[900],
813
813
  backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 40),
814
- backgroundSecondaryOnDark: addOpacityToHex(appTheme.colors.gray[700], 62),
814
+ backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[700], 62),
815
815
  backgroundSecondaryInverse: appTheme.colors.gray[700],
816
816
  backgroundTertiary: appTheme.colors.gray[100],
817
817
  borderOnFill: appTheme.colors.gray[50],
@@ -819,27 +819,23 @@ const SDSPaletteLight = (appTheme) => {
819
819
  borderPrimaryDisabled: appTheme.colors.gray[300],
820
820
  borderPrimaryDisabledOnDark: appTheme.colors.gray[600],
821
821
  borderPrimaryDisabledInverse: appTheme.colors.gray[600],
822
- borderPrimaryHover: appTheme.colors.gray[900],
823
- borderPrimaryHoverOnDark: appTheme.colors.gray[50],
822
+ borderPrimaryInteraction: appTheme.colors.gray[900],
823
+ borderPrimaryInteractionOnDark: appTheme.colors.gray[50],
824
824
  borderPrimaryHoverInverse: appTheme.colors.gray[50],
825
825
  borderPrimaryOnDark: appTheme.colors.gray[300],
826
826
  borderPrimaryInverse: appTheme.colors.gray[300],
827
- borderPrimaryPressed: appTheme.colors.gray[900],
828
- borderPrimaryPressedOnDark: appTheme.colors.gray[50],
829
827
  borderPrimaryPressedInverse: appTheme.colors.gray[50],
830
828
  borderSecondary: appTheme.colors.gray[300],
831
829
  divider: appTheme.colors.gray[200],
832
830
  dividerOnDark: appTheme.colors.gray[700],
833
831
  dividerInverse: appTheme.colors.gray[700],
834
- fillDisabled: appTheme.colors.gray[200],
835
- fillHover: addOpacityToHex(appTheme.colors.gray[300], 20),
836
- fillHoverOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
837
- fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
838
- fillOpen: addOpacityToHex(appTheme.colors.gray[300], 20),
839
- fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
832
+ fillDisabled: appTheme.colors.gray[100],
833
+ fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 20),
834
+ fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 20),
835
+ fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 20),
840
836
  fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
841
- fillPressed: addOpacityToHex(appTheme.colors.gray[300], 20),
842
- fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 34),
837
+ fillPressed: addOpacityToHex(appTheme.colors.gray[300], 30),
838
+ fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 24),
843
839
  fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 34),
844
840
  fillPrimary: appTheme.colors.gray[50],
845
841
  fillSelected: appTheme.colors.gray[900],
@@ -851,16 +847,15 @@ const SDSPaletteLight = (appTheme) => {
851
847
  ornamentPrimaryOnDark: appTheme.colors.gray[50],
852
848
  ornamentPrimaryInverse: appTheme.colors.gray[50],
853
849
  ornamentSecondary: appTheme.colors.gray[600],
854
- ornamentSecondaryHover: appTheme.colors.gray[900],
855
- ornamentSecondaryHoverOnDark: appTheme.colors.gray[50],
850
+ ornamentSecondaryInteraction: appTheme.colors.gray[900],
851
+ ornamentSecondaryInteractionOnDark: appTheme.colors.gray[50],
856
852
  ornamentSecondaryHoverInverse: appTheme.colors.gray[50],
857
853
  ornamentSecondaryOnDark: appTheme.colors.gray[300],
858
854
  ornamentSecondaryInverse: appTheme.colors.gray[300],
859
- ornamentSecondaryPressed: appTheme.colors.gray[900],
860
- ornamentSecondaryPressedOnDark: appTheme.colors.gray[50],
861
855
  ornamentSecondaryPressedInverse: appTheme.colors.gray[50],
862
- surface: appTheme.colors.gray[50],
863
- surfaceOnDark: appTheme.colors.gray[900],
856
+ surfacePrimary: appTheme.colors.gray[50],
857
+ surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 20),
858
+ surfacePrimaryDark: appTheme.colors.gray[900],
864
859
  surfaceInverse: appTheme.colors.gray[900],
865
860
  textDisabled: appTheme.colors.gray[300],
866
861
  textDisabledOnDark: appTheme.colors.gray[600],
@@ -973,7 +968,7 @@ const SDSPaletteDark = (appTheme) => {
973
968
  backgroundPrimaryDark: appTheme.colors.gray[75],
974
969
  backgroundPrimaryInverse: appTheme.colors.gray[75],
975
970
  backgroundSecondary: addOpacityToHex(appTheme.colors.gray[100], 60),
976
- backgroundSecondaryOnDark: addOpacityToHex(appTheme.colors.gray[100], 60),
971
+ backgroundSecondaryDark: addOpacityToHex(appTheme.colors.gray[100], 60),
977
972
  backgroundSecondaryInverse: addOpacityToHex(appTheme.colors.gray[100], 60),
978
973
  backgroundTertiary: appTheme.colors.gray[100],
979
974
  borderOnFill: appTheme.colors.gray[900],
@@ -981,27 +976,23 @@ const SDSPaletteDark = (appTheme) => {
981
976
  borderPrimaryDisabled: appTheme.colors.gray[300],
982
977
  borderPrimaryDisabledOnDark: appTheme.colors.gray[300],
983
978
  borderPrimaryDisabledInverse: appTheme.colors.gray[300],
984
- borderPrimaryHover: appTheme.colors.gray[900],
985
- borderPrimaryHoverOnDark: appTheme.colors.gray[900],
979
+ borderPrimaryInteraction: appTheme.colors.gray[900],
980
+ borderPrimaryInteractionOnDark: appTheme.colors.gray[900],
986
981
  borderPrimaryHoverInverse: appTheme.colors.gray[900],
987
982
  borderPrimaryOnDark: appTheme.colors.gray[600],
988
983
  borderPrimaryInverse: appTheme.colors.gray[600],
989
- borderPrimaryPressed: appTheme.colors.gray[900],
990
- borderPrimaryPressedOnDark: appTheme.colors.gray[900],
991
984
  borderPrimaryPressedInverse: appTheme.colors.gray[900],
992
985
  borderSecondary: appTheme.colors.gray[300],
993
986
  divider: appTheme.colors.gray[200],
994
987
  dividerOnDark: appTheme.colors.gray[200],
995
988
  dividerInverse: appTheme.colors.gray[200],
996
- fillDisabled: appTheme.colors.gray[200],
997
- fillHover: addOpacityToHex(appTheme.colors.gray[300], 32),
998
- fillHoverOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
989
+ fillDisabled: appTheme.colors.gray[100],
990
+ fillInteraction: addOpacityToHex(appTheme.colors.gray[300], 32),
991
+ fillInteractionOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
999
992
  fillHoverInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
1000
- fillOpen: addOpacityToHex(appTheme.colors.gray[300], 32),
1001
- fillOpenOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
1002
993
  fillOpenInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
1003
- fillPressed: addOpacityToHex(appTheme.colors.gray[300], 32),
1004
- fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 32),
994
+ fillPressed: addOpacityToHex(appTheme.colors.gray[300], 40),
995
+ fillPressedOnDark: addOpacityToHex(appTheme.colors.gray[300], 40),
1005
996
  fillPressedInverse: addOpacityToHex(appTheme.colors.gray[300], 32),
1006
997
  fillPrimary: appTheme.colors.gray[100],
1007
998
  fillSelected: appTheme.colors.gray[900],
@@ -1013,16 +1004,15 @@ const SDSPaletteDark = (appTheme) => {
1013
1004
  ornamentPrimaryOnDark: appTheme.colors.gray[900],
1014
1005
  ornamentPrimaryInverse: appTheme.colors.gray[50],
1015
1006
  ornamentSecondary: appTheme.colors.gray[600],
1016
- ornamentSecondaryHover: appTheme.colors.gray[900],
1017
- ornamentSecondaryHoverOnDark: appTheme.colors.gray[900],
1007
+ ornamentSecondaryInteraction: appTheme.colors.gray[900],
1008
+ ornamentSecondaryInteractionOnDark: appTheme.colors.gray[900],
1018
1009
  ornamentSecondaryHoverInverse: appTheme.colors.gray[900],
1019
1010
  ornamentSecondaryOnDark: appTheme.colors.gray[600],
1020
1011
  ornamentSecondaryInverse: appTheme.colors.gray[600],
1021
- ornamentSecondaryPressed: appTheme.colors.gray[900],
1022
- ornamentSecondaryPressedOnDark: appTheme.colors.gray[900],
1023
1012
  ornamentSecondaryPressedInverse: appTheme.colors.gray[900],
1024
- surface: appTheme.colors.gray[100],
1025
- surfaceOnDark: appTheme.colors.gray[100],
1013
+ surfacePrimary: appTheme.colors.gray[100],
1014
+ surfaceSecondary: addOpacityToHex(appTheme.colors.gray[300], 32),
1015
+ surfacePrimaryDark: appTheme.colors.gray[100],
1026
1016
  surfaceInverse: appTheme.colors.gray[100],
1027
1017
  textDisabled: appTheme.colors.gray[300],
1028
1018
  textDisabledOnDark: appTheme.colors.gray[300],
@@ -1404,7 +1394,7 @@ function focusVisibleA11yStyle(props) {
1404
1394
  const semanticColors = getSemanticColors(props);
1405
1395
  return `
1406
1396
  &.Mui-focusVisible, &:focus-visible {
1407
- outline: 2px solid ${semanticColors?.base?.borderPrimaryHover};
1397
+ outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
1408
1398
  outline-offset: 1px;
1409
1399
  }
1410
1400
  `;
@@ -1613,7 +1603,7 @@ const StyledAccordionHeader = styled__default.default(material.AccordionSummary,
1613
1603
  &:hover {
1614
1604
  & .${material.accordionSummaryClasses.expandIconWrapper} {
1615
1605
  svg {
1616
- color: ${semanticColors?.base?.ornamentSecondaryHover};
1606
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
1617
1607
  }
1618
1608
  }
1619
1609
  }
@@ -5114,12 +5104,12 @@ const Minimal = (props) => {
5114
5104
  }
5115
5105
 
5116
5106
  &:hover {
5117
- background-color: ${semanticColors?.base?.fillHover};
5107
+ background-color: ${semanticColors?.base?.fillInteraction};
5118
5108
  }
5119
5109
 
5120
5110
  &:active {
5121
5111
  color: ${semanticColors?.accent?.textActionPressed};
5122
- background-color: ${semanticColors?.base?.fillHover};
5112
+ background-color: ${semanticColors?.base?.fillInteraction};
5123
5113
 
5124
5114
  svg {
5125
5115
  color: ${semanticColors?.accent?.ornamentPressed};
@@ -5226,7 +5216,7 @@ const primary$2 = (props) => {
5226
5216
  }
5227
5217
 
5228
5218
  &:hover {
5229
- background: ${semanticColors?.base?.fillHover};
5219
+ background: ${semanticColors?.base?.fillInteraction};
5230
5220
  color: ${semanticColors?.accent?.ornamentHover};
5231
5221
 
5232
5222
  svg {
@@ -5254,7 +5244,7 @@ const secondary$2 = (props) => {
5254
5244
  }
5255
5245
 
5256
5246
  &:hover {
5257
- background: ${semanticColors?.base?.fillHover};
5247
+ background: ${semanticColors?.base?.fillInteraction};
5258
5248
  color: ${semanticColors?.accent?.ornamentHover};
5259
5249
 
5260
5250
  svg {
@@ -5283,19 +5273,19 @@ const tertiary = (props) => {
5283
5273
 
5284
5274
  &:hover {
5285
5275
  background: none;
5286
- color: ${semanticColors?.base?.ornamentSecondaryHover};
5276
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
5287
5277
 
5288
5278
  svg {
5289
- color: ${semanticColors?.base?.ornamentSecondaryHover};
5279
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
5290
5280
  }
5291
5281
  }
5292
5282
 
5293
5283
  &:active {
5294
5284
  background: none;
5295
- color: ${semanticColors?.base?.ornamentSecondaryPressed};
5285
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
5296
5286
 
5297
5287
  svg {
5298
- color: ${semanticColors?.base?.ornamentSecondaryPressed};
5288
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
5299
5289
  }
5300
5290
  }
5301
5291
  `;
@@ -5515,7 +5505,7 @@ const applyIntentColor$2 = (props, intent) => {
5515
5505
  .${material.inputAdornmentClasses.root} .${material.buttonBaseClasses.root}:last-of-type {
5516
5506
  cursor: default;
5517
5507
  svg {
5518
- color: ${semanticColors?.base?.ornamentSecondaryPressed};
5508
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
5519
5509
  }
5520
5510
  }
5521
5511
  }
@@ -5581,9 +5571,6 @@ const StyledSearchBase = styled__default.default(material.TextField, {
5581
5571
  const semanticColors = getSemanticColors(props);
5582
5572
  const corners = getCorners(props);
5583
5573
  return react.css `
5584
- margin-top: ${spaces?.m}px;
5585
- margin-bottom: ${spaces?.m}px;
5586
- margin-right: ${spaces?.xl}px;
5587
5574
  min-width: 120px;
5588
5575
  display: block;
5589
5576
 
@@ -5632,7 +5619,8 @@ const StyledSearchBase = styled__default.default(material.TextField, {
5632
5619
 
5633
5620
  &:hover {
5634
5621
  svg {
5635
- color: ${semanticColors?.base?.ornamentSecondaryHover} !important;
5622
+ color: ${semanticColors?.base
5623
+ ?.ornamentSecondaryInteraction} !important;
5636
5624
  }
5637
5625
  }
5638
5626
 
@@ -5652,7 +5640,7 @@ const StyledSearchBase = styled__default.default(material.TextField, {
5652
5640
  }
5653
5641
 
5654
5642
  .${material.outlinedInputClasses.root}:hover {
5655
- background-color: ${semanticColors?.base?.fillHover};
5643
+ background-color: ${semanticColors?.base?.fillInteraction};
5656
5644
 
5657
5645
  & .${material.buttonBaseClasses.root}:last-of-type {
5658
5646
  svg {
@@ -5660,7 +5648,7 @@ const StyledSearchBase = styled__default.default(material.TextField, {
5660
5648
  }
5661
5649
  }
5662
5650
  .${material.outlinedInputClasses.notchedOutline} {
5663
- border: 1px solid ${semanticColors?.base?.borderPrimaryHover};
5651
+ border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
5664
5652
  }
5665
5653
  }
5666
5654
 
@@ -5674,13 +5662,13 @@ const StyledSearchBase = styled__default.default(material.TextField, {
5674
5662
  .${material.inputAdornmentClasses.root} .${material.buttonBaseClasses.root}:last-of-type {
5675
5663
  cursor: default;
5676
5664
  svg {
5677
- color: ${semanticColors?.base?.ornamentSecondaryPressed};
5665
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
5678
5666
  }
5679
5667
  }
5680
5668
  }
5681
5669
 
5682
5670
  &.user-is-tabbing .${material.outlinedInputClasses.root}:focus-within {
5683
- outline: 2px solid ${semanticColors?.base?.borderPrimaryHover};
5671
+ outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
5684
5672
  outline-offset: 1px;
5685
5673
  }
5686
5674
 
@@ -5719,10 +5707,10 @@ const StyledMenuItem$1 = styled__default.default(material.MenuItem) `
5719
5707
  opacity: 1;
5720
5708
 
5721
5709
  &:hover, &.${material.menuItemClasses.focusVisible} {
5722
- background-color: ${semanticColors?.base?.fillHover};
5710
+ background-color: ${semanticColors?.base?.fillInteraction};
5723
5711
 
5724
5712
  &[aria-selected="true"] {
5725
- background-color: ${semanticColors?.base?.fillHover};
5713
+ background-color: ${semanticColors?.base?.fillInteraction};
5726
5714
  }
5727
5715
  }
5728
5716
  }
@@ -5739,7 +5727,7 @@ const StyledMenuItem$1 = styled__default.default(material.MenuItem) `
5739
5727
  background-color: unset !important;
5740
5728
 
5741
5729
  &:hover {
5742
- background-color: ${semanticColors?.base?.fillHover} !important;
5730
+ background-color: ${semanticColors?.base?.fillInteraction} !important;
5743
5731
  }
5744
5732
 
5745
5733
  ${StyledIcon$1}, ${DotIcon} {
@@ -5752,16 +5740,16 @@ const StyledMenuItem$1 = styled__default.default(material.MenuItem) `
5752
5740
  }
5753
5741
 
5754
5742
  &:hover {
5755
- background-color: ${semanticColors?.base?.fillHover};
5743
+ background-color: ${semanticColors?.base?.fillInteraction};
5756
5744
  ${StyledIcon$1}, ${DotIcon} {
5757
5745
  color: ${selected ? semanticColors?.base?.ornamentPrimary : semanticColors?.base?.ornamentSecondary};
5758
5746
  }
5759
5747
  }
5760
5748
 
5761
5749
  &.Mui-selected.MuiListItem-root.MuiListItem-button {
5762
- background-color: ${semanticColors?.base?.surface};
5750
+ background-color: ${semanticColors?.base?.surfacePrimary};
5763
5751
  &:hover {
5764
- background-color: ${semanticColors?.base?.fillHover};
5752
+ background-color: ${semanticColors?.base?.fillInteraction};
5765
5753
  }
5766
5754
  }
5767
5755
 
@@ -6100,7 +6088,7 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
6100
6088
  // look at the useDetectUserTabbing hook.
6101
6089
  &[data-user-is-tabbing="true"]:focus-within {
6102
6090
  border-radius: 4px;
6103
- outline: 2px solid ${semanticColors?.base?.borderPrimaryHover};
6091
+ outline: 2px solid ${semanticColors?.base?.borderPrimaryInteraction};
6104
6092
  outline-offset: 1px;
6105
6093
  }
6106
6094
 
@@ -6125,11 +6113,11 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
6125
6113
  min-height: unset;
6126
6114
 
6127
6115
  &.${material.autocompleteClasses.focused} {
6128
- background-color: ${semanticColors?.base?.fillHover};
6116
+ background-color: ${semanticColors?.base?.fillInteraction};
6129
6117
  }
6130
6118
 
6131
6119
  &[aria-selected="true"] {
6132
- background-color: ${semanticColors?.base?.surface};
6120
+ background-color: ${semanticColors?.base?.surfacePrimary};
6133
6121
  }
6134
6122
 
6135
6123
  &[aria-disabled="true"] {
@@ -6137,7 +6125,7 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
6137
6125
  }
6138
6126
 
6139
6127
  &[aria-selected="true"].${material.autocompleteClasses.focused} {
6140
- background-color: ${semanticColors?.base?.fillHover};
6128
+ background-color: ${semanticColors?.base?.fillInteraction};
6141
6129
  }
6142
6130
  }
6143
6131
 
@@ -6151,7 +6139,7 @@ const StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
6151
6139
  .${material.autocompleteClasses.groupLabel} {
6152
6140
  top: 0;
6153
6141
  color: ${semanticColors?.base?.textSecondary};
6154
- background-color: ${semanticColors?.base?.surface};
6142
+ background-color: ${semanticColors?.base?.surfacePrimary};
6155
6143
  padding: 0 ${spaces?.m}px;
6156
6144
  }
6157
6145
 
@@ -6219,7 +6207,7 @@ const StyledPaper$3 = styled__default.default(material.Paper) `
6219
6207
  return `
6220
6208
  background-image: none;
6221
6209
  padding: ${spaces?.xs}px 0;
6222
- background-color: ${semanticColors?.base?.surface};
6210
+ background-color: ${semanticColors?.base?.surfacePrimary};
6223
6211
  border: ${borders?.none};
6224
6212
  outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000", 15)};
6225
6213
  border-radius: ${corners?.l}px;
@@ -6231,9 +6219,10 @@ const StyledPaper$3 = styled__default.default(material.Paper) `
6231
6219
  const StyledMenuItemDetails = styled__default.default("div") `
6232
6220
  ${fontBodyXxs$1}
6233
6221
  ${(props) => {
6222
+ const { disabled } = props;
6234
6223
  const semanticColors = getSemanticColors(props);
6235
6224
  return `
6236
- color: ${semanticColors?.base?.textSecondary};
6225
+ color: ${disabled ? semanticColors?.base?.textDisabled : semanticColors?.base?.textSecondary};
6237
6226
  white-space: pre-wrap;
6238
6227
  `;
6239
6228
  }}
@@ -6398,15 +6387,15 @@ const AutocompleteBase = (props) => {
6398
6387
  }
6399
6388
  function defaultRenderOption(optionProps, option, { selected }) {
6400
6389
  let MenuItemContent;
6401
- const { component, details, count, icon, sdsIconProps, ...restOptionProps } = option;
6390
+ const { component, details, count, icon, sdsIconProps, disabled: optionDisabled, ...restOptionProps } = option;
6402
6391
  const menuItemLabel = getOptionLabel(option);
6403
6392
  if (component) {
6404
6393
  MenuItemContent = component;
6405
6394
  }
6406
6395
  else {
6407
- MenuItemContent = (jsxRuntime.jsxs(StyledMenuItemText, { children: [menuItemLabel, details && (jsxRuntime.jsx(StyledMenuItemDetails, { className: "menuItem-details", children: details }))] }));
6396
+ MenuItemContent = (jsxRuntime.jsxs(StyledMenuItemText, { children: [menuItemLabel, details && (jsxRuntime.jsx(StyledMenuItemDetails, { disabled: optionDisabled, className: "menuItem-details", children: details }))] }));
6408
6397
  }
6409
- return (React.createElement(MenuItem, __assign({ column: count, disabled: optionProps["aria-disabled"] === true, icon: icon, sdsIconProps: sdsIconProps, isMultiSelect: multiple, selected: selected }, optionProps, restOptionProps, { key: option.name }), MenuItemContent));
6398
+ return (React.createElement(MenuItem, __assign({ column: count, disabled: optionDisabled || optionProps["aria-disabled"] === true, icon: icon, sdsIconProps: sdsIconProps, isMultiSelect: multiple, selected: selected }, optionProps, restOptionProps, { key: option.name }), MenuItemContent));
6410
6399
  }
6411
6400
  };
6412
6401
 
@@ -6490,7 +6479,7 @@ const StyledPopper$2 = styled__default.default(material.Popper, {
6490
6479
  const borders = getBorders(props);
6491
6480
  const semanticColors = getSemanticColors(props);
6492
6481
  return `
6493
- background-color: ${semanticColors?.base?.surface};
6482
+ background-color: ${semanticColors?.base?.surfacePrimary};
6494
6483
  background-image: none;
6495
6484
  border: ${borders?.none};
6496
6485
  border-radius: ${corners?.l}px;
@@ -6517,7 +6506,7 @@ const StyledPaper$2 = styled__default.default(material.Paper, {
6517
6506
  const shadows = getShadows(props);
6518
6507
  const semanticColors = getSemanticColors(props);
6519
6508
  return `
6520
- background-color: ${semanticColors?.base?.surface};
6509
+ background-color: ${semanticColors?.base?.surfacePrimary};
6521
6510
  background-image: none;
6522
6511
  box-shadow: ${shadows?.none};
6523
6512
  margin: 0;
@@ -6561,7 +6550,7 @@ const StyledColumnIcon = material.styled("span") `
6561
6550
  const iconSizes = getIconSizes(props);
6562
6551
  const semanticColors = getSemanticColors(props);
6563
6552
  return `
6564
- background-color: ${semanticColors?.base?.surface};
6553
+ background-color: ${semanticColors?.base?.surfacePrimary};
6565
6554
  position: absolute;
6566
6555
  right: -${spaces?.xs}px;
6567
6556
  top: -${spaces?.xxxs}px;
@@ -6951,7 +6940,7 @@ const StyledButtonToggle = styled__default.default(ButtonIcon, {
6951
6940
  const { sdsStage } = props;
6952
6941
  const semanticColors = getSemanticColors(props);
6953
6942
  return `
6954
- background-color: ${sdsStage === "on" ? semanticColors?.base?.fillOpen : "transparent"};
6943
+ background-color: ${sdsStage === "on" ? semanticColors?.base?.fillInteraction : "transparent"};
6955
6944
  `;
6956
6945
  }}
6957
6946
  `;
@@ -7138,7 +7127,7 @@ const dark$1 = (props) => {
7138
7127
  const semanticColors = getSemanticColors(props);
7139
7128
  return css$1.css `
7140
7129
  ${fontHeaderXs(props)}
7141
- background-color: ${semanticColors?.base?.surfaceOnDark};
7130
+ background-color: ${semanticColors?.base?.surfacePrimaryDark};
7142
7131
  color: ${semanticColors?.base?.textPrimaryOnDark};
7143
7132
  padding: ${spaces?.s}px ${spaces?.m}px;
7144
7133
  `;
@@ -7148,7 +7137,7 @@ const light$1 = (props) => {
7148
7137
  const semanticColors = getSemanticColors(props);
7149
7138
  return css$1.css `
7150
7139
  ${fontBodyXs$2(props)}
7151
- background-color: ${semanticColors?.base?.surface};
7140
+ background-color: ${semanticColors?.base?.surfacePrimary};
7152
7141
  color: ${semanticColors?.base?.textPrimary};
7153
7142
  padding: ${spaces?.s}px ${spaces?.m}px;
7154
7143
  `;
@@ -7223,8 +7212,8 @@ const arrowCss = (props) => {
7223
7212
  /* (bethbertozzi): !important is needed to fight inline style */
7224
7213
  left: ${arrowOffset}px !important;
7225
7214
  color: ${hasInvertedStyle || inverted || sdsStyle === "dark"
7226
- ? semanticColors?.base?.surfaceOnDark
7227
- : semanticColors?.base?.surface};
7215
+ ? semanticColors?.base?.surfacePrimaryDark
7216
+ : semanticColors?.base?.surfacePrimary};
7228
7217
  &:before {
7229
7218
  box-sizing: border-box;
7230
7219
  width: 12px;
@@ -7647,7 +7636,7 @@ const StyledTableHeader$1 = styled__default.default("th", {
7647
7636
  }
7648
7637
 
7649
7638
  & svg {
7650
- color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.ornamentSecondaryHover};
7639
+ color: ${active ? semanticColors?.accent?.ornamentHover : semanticColors?.base?.ornamentSecondaryInteraction};
7651
7640
  }
7652
7641
  }
7653
7642
  `;
@@ -7883,6 +7872,21 @@ const StyledHeaderTitle = styled__default.default("div", {
7883
7872
  `;
7884
7873
  }}
7885
7874
  `;
7875
+ const StyledHeaderSubTitle = styled__default.default("div", {
7876
+ shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
7877
+ }) `
7878
+ ${fontBodyXxs$1}
7879
+
7880
+ ${(props) => {
7881
+ const spaces = getSpaces(props);
7882
+ const semanticColors = getSemanticColors(props);
7883
+ return `
7884
+ color: ${semanticColors?.base?.textSecondary};
7885
+ padding-right: ${spaces?.m}px;
7886
+ padding-top: ${spaces?.xxxs}px;
7887
+ `;
7888
+ }}
7889
+ `;
7886
7890
  const StyledDropdownMenuAutocompleteWrapper = styled__default.default("div", {
7887
7891
  shouldForwardProp: (prop) => !doNotForwardProps$v.includes(prop)
7888
7892
  }) `
@@ -7929,7 +7933,7 @@ const StyledPopper = styled__default.default(material.Popper, {
7929
7933
  const shadows = getShadows(props);
7930
7934
  const semanticColors = getSemanticColors(props);
7931
7935
  return `
7932
- background-color: ${semanticColors?.base?.surface};
7936
+ background-color: ${semanticColors?.base?.surfacePrimary};
7933
7937
  background-image: none;
7934
7938
  border: ${borders?.none};
7935
7939
  border-radius: ${corners?.l}px;
@@ -7952,7 +7956,7 @@ const StyledPaper$1 = styled__default.default(material.Paper, {
7952
7956
  border: none !important;
7953
7957
  outline: 1px solid ${addOpacityToHex(semanticColors?.base?.borderSecondary || "#000000", 15)};
7954
7958
  border-radius: ${corners?.l}px;
7955
- background-color: ${semanticColors?.base?.surface};
7959
+ background-color: ${semanticColors?.base?.surfacePrimary};
7956
7960
  background-image: none;
7957
7961
  margin: 0;
7958
7962
  padding: 0 0 ${spaces?.xs}px 0;
@@ -7991,9 +7995,15 @@ const StyledDropdownMenuHeader = styled__default.default("div") `
7991
7995
  const spaces = getSpaces(props);
7992
7996
  const semanticColors = getSemanticColors(props);
7993
7997
  return `
7998
+ & > div {
7999
+ display: flex;
8000
+ flex-direction: row;
8001
+ align-items: center;
8002
+ justify-content: space-between;
8003
+ }
8004
+
7994
8005
  display: flex;
7995
- align-items: center;
7996
- justify-content: space-between;
8006
+ flex-direction: column;
7997
8007
  padding: ${spaces?.xs}px ${spaces?.m}px ${search ? spaces?.xs : spaces?.s}px;
7998
8008
  ${search && `border-bottom: solid 1px ${semanticColors?.base?.divider};`}
7999
8009
  `;
@@ -8008,7 +8018,7 @@ const DEFAULT_POPPER_BASE_PROPS = {
8008
8018
  };
8009
8019
  const DropdownMenu = (props) => {
8010
8020
  const theme = material.useTheme();
8011
- const { anchorEl, id, InputBaseProps, open = false, PopperComponent = StyledPopper, PaperComponent = StyledPaper$1, PopperPlacement = "bottom-start", PopperBaseProps = {}, isSearchAutoFocus = true, search = false, title, headerComponentSlot, label = "Search", children, options, onClickAway = noop, ClickAwayListenerProps, width = MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, onOpen, onClose, ...rest } = props;
8021
+ const { anchorEl, id, InputBaseProps, open = false, PopperComponent = StyledPopper, PaperComponent = StyledPaper$1, PopperPlacement = "bottom-start", PopperBaseProps = {}, isSearchAutoFocus = true, search = false, title, subTitle, headerComponentSlot, label = "Search", children, options, onClickAway = noop, ClickAwayListenerProps, width = MINIMUM_DROPDOWN_MENU_POPPER_WIDTH, onOpen, onClose, ...rest } = props;
8012
8022
  const isMultiColumn = "options" in (options?.[0] || EMPTY_OBJECT);
8013
8023
  // (masoudmanson): The DropdownMenu's Popper component should have a minimum
8014
8024
  // width of MINIMUM_DROPDOWN_MENU_POPPER_WIDTH pixels if the DropdownMenu is
@@ -8038,7 +8048,7 @@ const DropdownMenu = (props) => {
8038
8048
  ], open: open, anchorEl: anchorEl, placement: PopperPlacement }, PopperBaseProps, {
8039
8049
  // (masoudmanson): To override the width of the Popper,
8040
8050
  // the sx prop's value must be set after spreading the PopperBaseProps.
8041
- sx: dropdownMenuPopperSx, children: jsxRuntime.jsx(PaperComponent, { children: jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs(StyledDropdownMenuAutocompleteWrapper, { search: search, titleValue: !!(title || headerComponentSlot), children: [(title || headerComponentSlot) && (jsxRuntime.jsxs(StyledDropdownMenuHeader, { search: search, children: [title && jsxRuntime.jsx(StyledHeaderTitle, { children: title }), headerComponentSlot && jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerComponentSlot })] })), anchorEl && (jsxRuntime.jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop, onOpen: onOpen, onClose: onClose }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
8051
+ sx: dropdownMenuPopperSx, children: jsxRuntime.jsx(PaperComponent, { children: jsxRuntime.jsx(material.ClickAwayListener, __assign({ onClickAway: onClickAway }, ClickAwayListenerProps, { children: jsxRuntime.jsxs(StyledDropdownMenuAutocompleteWrapper, { search: search, titleValue: !!(title || headerComponentSlot), children: [(title || headerComponentSlot) && (jsxRuntime.jsxs(StyledDropdownMenuHeader, { search: search, children: [jsxRuntime.jsxs("div", { children: [title && jsxRuntime.jsx(StyledHeaderTitle, { children: title }), headerComponentSlot && jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerComponentSlot })] }), title && subTitle && (jsxRuntime.jsx(StyledHeaderSubTitle, { children: subTitle }))] })), anchorEl && (jsxRuntime.jsx(Autocomplete, __assign({ label: label, search: search, title: title, open: open, options: options, PopperBaseProps: DEFAULT_POPPER_BASE_PROPS, disablePortal: true, onClickAway: noop, onClick: noop, onOpen: onOpen, onClose: onClose }, rest, { InputBaseProps: DefaultInputBaseProps }))), children] }) })) }) })));
8042
8052
  };
8043
8053
 
8044
8054
  const doNotForwardProps$u = [
@@ -8096,12 +8106,13 @@ const inputDropdownStyles = (props) => {
8096
8106
  }
8097
8107
 
8098
8108
  &:hover {
8099
- background-color: ${semanticColors?.base?.fillHover};
8100
- box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryHover};
8109
+ background-color: ${semanticColors?.base?.fillInteraction};
8110
+ box-shadow: inset 0 0 0 1px
8111
+ ${semanticColors?.base?.borderPrimaryInteraction};
8101
8112
  color: ${semanticColors?.base?.textPrimary};
8102
8113
 
8103
8114
  path {
8104
- fill: ${semanticColors?.base?.ornamentSecondaryHover};
8115
+ fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
8105
8116
  }
8106
8117
 
8107
8118
  .styled-label {
@@ -8115,7 +8126,7 @@ const inputDropdownStyles = (props) => {
8115
8126
  color: ${semanticColors?.base?.textPrimary};
8116
8127
 
8117
8128
  path {
8118
- fill: ${semanticColors?.base?.ornamentSecondaryPressed};
8129
+ fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
8119
8130
  }
8120
8131
  }
8121
8132
 
@@ -8167,12 +8178,12 @@ const minimal$1 = (props) => {
8167
8178
  }
8168
8179
 
8169
8180
  &:hover {
8170
- background-color: ${semanticColors?.base?.fillHover};
8181
+ background-color: ${semanticColors?.base?.fillInteraction};
8171
8182
  border: none;
8172
8183
  color: ${semanticColors?.base?.textPrimary};
8173
8184
 
8174
8185
  path {
8175
- fill: ${semanticColors?.base?.ornamentSecondaryHover};
8186
+ fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
8176
8187
  }
8177
8188
 
8178
8189
  .styled-label {
@@ -8181,7 +8192,7 @@ const minimal$1 = (props) => {
8181
8192
  }
8182
8193
 
8183
8194
  &:active {
8184
- background-color: ${semanticColors?.base?.fillHover};
8195
+ background-color: ${semanticColors?.base?.fillInteraction};
8185
8196
  border: none;
8186
8197
  }
8187
8198
  `;
@@ -8251,7 +8262,7 @@ const isOpen = (props) => {
8251
8262
  : ""}
8252
8263
 
8253
8264
  path {
8254
- fill: ${semanticColors?.base?.ornamentSecondaryPressed};
8265
+ fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
8255
8266
  }
8256
8267
 
8257
8268
  box-shadow: ${sdsStyle === "minimal"
@@ -8259,15 +8270,15 @@ const isOpen = (props) => {
8259
8270
  : `inset 0 0 0 1px ${semanticColors?.[inputColor]?.border}`};
8260
8271
 
8261
8272
  background-color: ${sdsStyle === "minimal"
8262
- ? semanticColors?.base?.fillOpen
8273
+ ? semanticColors?.base?.fillInteraction
8263
8274
  : "transparent"};
8264
8275
 
8265
8276
  &:hover {
8266
8277
  path {
8267
- fill: ${semanticColors?.base?.ornamentSecondaryHover};
8278
+ fill: ${semanticColors?.base?.ornamentSecondaryInteraction};
8268
8279
  }
8269
8280
 
8270
- border-color: ${semanticColors?.base?.borderPrimaryHover};
8281
+ border-color: ${semanticColors?.base?.borderPrimaryInteraction};
8271
8282
  }
8272
8283
  `;
8273
8284
  };
@@ -8277,11 +8288,13 @@ const applyIntentColor$1 = (props, intent) => {
8277
8288
  box-shadow: inset 0 0 0 1px ${semanticColors?.[intent]?.border};
8278
8289
 
8279
8290
  &:hover {
8280
- box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryHover};
8291
+ box-shadow: inset 0 0 0 1px
8292
+ ${semanticColors?.base?.borderPrimaryInteraction};
8281
8293
  }
8282
8294
 
8283
8295
  &:active {
8284
- box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryPressed};
8296
+ box-shadow: inset 0 0 0 1px
8297
+ ${semanticColors?.base?.borderPrimaryInteraction};
8285
8298
  }
8286
8299
  `;
8287
8300
  };
@@ -8845,7 +8858,6 @@ const tagSizeS = (props) => {
8845
8858
  const semanticColors = getSemanticColors(props);
8846
8859
  return react.css `
8847
8860
  height: unset;
8848
- margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
8849
8861
 
8850
8862
  .MuiChip-label {
8851
8863
  ${fontBodyXxxs$1(props)}
@@ -8855,7 +8867,7 @@ const tagSizeS = (props) => {
8855
8867
  .MuiSvgIcon-root {
8856
8868
  height: ${iconSizes?.xs.height}px;
8857
8869
  width: ${iconSizes?.xs.width}px;
8858
- margin: 0 ${spaces?.xxs}px 0 -${spaces?.xxxs}px;
8870
+ margin: 0 ${spaces?.xxs}px 0 0;
8859
8871
  }
8860
8872
 
8861
8873
  .MuiChip-deleteIcon {
@@ -8873,7 +8885,6 @@ const tagSizeL = (props) => {
8873
8885
  const semanticColors = getSemanticColors(props);
8874
8886
  return react.css `
8875
8887
  height: unset;
8876
- margin: 0 ${spaces?.xxs}px ${spaces?.xs}px 0;
8877
8888
 
8878
8889
  .MuiChip-label {
8879
8890
  ${fontBodyXs$2(props)}
@@ -8883,7 +8894,7 @@ const tagSizeL = (props) => {
8883
8894
  .MuiSvgIcon-root {
8884
8895
  height: ${iconSizes?.l.height}px;
8885
8896
  width: ${iconSizes?.l.width}px;
8886
- margin: 0 ${spaces?.xxs}px 0 -${spaces?.xxxs}px;
8897
+ margin: 0 ${spaces?.xxs}px 0 0px;
8887
8898
  }
8888
8899
 
8889
8900
  .MuiChip-deleteIcon {
@@ -8900,9 +8911,11 @@ const rounded = (props) => {
8900
8911
  const spaces = getSpaces(props);
8901
8912
  const { sdsSize = "s", icon } = props;
8902
8913
  const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
8914
+ const rightPadding = sdsSize === "l" && icon ? spaces?.s : spaces?.xs;
8903
8915
  return react.css `
8904
8916
  border-radius: ${corners?.rounded}px;
8905
- padding: ${topBottomPadding}px ${spaces?.s}px;
8917
+ padding: ${topBottomPadding}px ${rightPadding}px ${topBottomPadding}px
8918
+ ${spaces?.xs}px;
8906
8919
 
8907
8920
  &:after {
8908
8921
  content: "";
@@ -8917,7 +8930,7 @@ const square = (props) => {
8917
8930
  const topBottomPadding = sdsSize === "s" ? spaces?.xxxs : icon ? spaces?.xxs : spaces?.xs;
8918
8931
  return react.css `
8919
8932
  border-radius: ${corners?.m}px;
8920
- padding: ${topBottomPadding}px ${spaces?.s}px;
8933
+ padding: ${topBottomPadding}px ${spaces?.xs}px;
8921
8934
 
8922
8935
  &:after {
8923
8936
  content: "";
@@ -8945,54 +8958,51 @@ const secondary = (props) => {
8945
8958
  return createTypeCss(props, "secondary");
8946
8959
  };
8947
8960
  function generatePrimaryTagColors(intent, colors, semanticColors) {
8948
- if (intent || colors.length) {
8949
- intent = intent || "neutral";
8950
- return {
8951
- background: colors.length >= 2 ? colors[1] : semanticColors?.[intent].fillPrimary,
8952
- backgroundClicked: colors.length >= 2
8953
- ? material.darken(colors[1], 0.3)
8954
- : semanticColors?.[intent].fillPressed,
8955
- backgroundHover: colors.length >= 2
8956
- ? material.darken(colors[1], 0.15)
8957
- : semanticColors?.[intent].fillHover,
8958
- iconColor: colors.length > 2 ? colors[2] : semanticColors?.base?.ornamentOnFill,
8959
- label: colors.length ? colors[0] : semanticColors?.base?.textOnFill
8960
- };
8961
- }
8962
- else {
8963
- return {
8964
- background: semanticColors?.neutral.fillPrimary,
8965
- backgroundClicked: semanticColors?.neutral.fillPressed,
8966
- backgroundHover: semanticColors?.neutral.fillHover,
8967
- iconColor: semanticColors?.base?.ornamentOnFill,
8968
- label: semanticColors?.base?.textOnFill
8969
- };
8970
- }
8961
+ const effectiveIntent = intent || "neutral";
8962
+ const intentColors = semanticColors?.[effectiveIntent];
8963
+ const hasCustomColors = colors.length >= 2;
8964
+ return {
8965
+ background: hasCustomColors ? colors[1] : intentColors?.fillPrimary,
8966
+ backgroundClicked: hasCustomColors
8967
+ ? material.darken(colors[1], 0.3)
8968
+ : intentColors?.fillPressed,
8969
+ backgroundHover: hasCustomColors
8970
+ ? material.darken(colors[1], 0.15)
8971
+ : intentColors?.fillHover,
8972
+ iconColor: hasCustomColors
8973
+ ? colors[2]
8974
+ : semanticColors?.base?.ornamentOnFill,
8975
+ label: colors.length > 0 ? colors[0] : semanticColors?.base?.textOnFill,
8976
+ borderColor: material.alpha(semanticColors?.neutral.border || "#000", 0.6)
8977
+ };
8971
8978
  }
8972
- function generateSecondaryTagColors(intent, colors, semanticColors) {
8973
- if (intent || colors.length) {
8974
- intent = intent || "neutral";
8975
- return {
8976
- background: colors.length >= 2 ? colors[1] : semanticColors?.[intent].fillSecondary,
8977
- backgroundClicked: colors.length >= 2
8978
- ? material.darken(colors[1], 0.3)
8979
- : semanticColors?.[intent].fillPressed,
8980
- backgroundHover: colors.length >= 2
8981
- ? material.darken(colors[1], 0.15)
8982
- : semanticColors?.[intent].fillHover,
8983
- iconColor: colors.length > 2 ? colors[2] : semanticColors?.[intent].ornament,
8984
- label: colors.length ? colors[0] : semanticColors?.[intent].text
8985
- };
8986
- }
8987
- else {
8988
- return {
8989
- background: semanticColors?.neutral.fillSecondary,
8990
- backgroundClicked: semanticColors?.neutral.fillPressed,
8991
- backgroundHover: semanticColors?.neutral.fillHover,
8992
- iconColor: semanticColors?.neutral.ornament,
8993
- label: semanticColors?.neutral.fillPressed
8994
- };
8995
- }
8979
+ function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
8980
+ if (!theme || !theme.palette)
8981
+ return material.alpha(intentColors?.border || "#000", 0.6);
8982
+ if (effectiveIntent === "negative" && theme.palette.mode === "dark")
8983
+ return material.alpha(intentColors?.border || "#000", 0.65);
8984
+ if (effectiveIntent === "notice" && theme.palette.mode === "light")
8985
+ return material.alpha(intentColors?.border || "#000", 0.85);
8986
+ return material.alpha(intentColors?.border || "#000", 0.6);
8987
+ }
8988
+ function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme$4) {
8989
+ const effectiveIntent = intent || "neutral";
8990
+ const intentColors = semanticColors?.[effectiveIntent];
8991
+ const hasCustomColors = colors.length >= 2;
8992
+ return {
8993
+ background: hasCustomColors ? colors[1] : intentColors?.fillSecondary,
8994
+ backgroundClicked: hasCustomColors
8995
+ ? material.darken(colors[1], 0.3)
8996
+ : intentColors?.fillPressed,
8997
+ backgroundHover: hasCustomColors
8998
+ ? material.darken(colors[1], 0.15)
8999
+ : intentColors?.fillHover,
9000
+ iconColor: hasCustomColors ? colors[2] : intentColors?.ornament,
9001
+ label: colors.length > 0 ? colors[0] : intentColors?.text,
9002
+ borderColor: hasCustomColors
9003
+ ? material.alpha(colors[1], 0.6)
9004
+ : getSecondaryBorderColor(effectiveIntent, theme, intentColors)
9005
+ };
8996
9006
  }
8997
9007
  function createTypeCss(props, type) {
8998
9008
  const semanticColors = getSemanticColors(props);
@@ -9000,12 +9010,16 @@ function createTypeCss(props, type) {
9000
9010
  const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
9001
9011
  const typeToColors = {
9002
9012
  primary: generatePrimaryTagColors(intent, colors, semanticColors),
9003
- secondary: generateSecondaryTagColors(intent, colors, semanticColors)
9013
+ secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
9004
9014
  };
9005
9015
  const typeColors = typeToColors[type];
9006
9016
  return react.css `
9007
9017
  ${focusVisibleA11yStyle(props)}
9008
9018
 
9019
+ ${type === "secondary" &&
9020
+ react.css `
9021
+ box-shadow: inset 0 0 0 1px ${typeColors.borderColor};
9022
+ `}
9009
9023
  background-color: ${typeColors.background};
9010
9024
  position: relative;
9011
9025
 
@@ -9019,6 +9033,7 @@ function createTypeCss(props, type) {
9019
9033
 
9020
9034
  &:hover,
9021
9035
  &:active {
9036
+ box-shadow: none;
9022
9037
  .MuiChip-label {
9023
9038
  color: ${semanticColors?.base?.textPrimaryInverse};
9024
9039
  }
@@ -9210,6 +9225,9 @@ const StyledChipsWrapper = styled__default.default("div") `
9210
9225
  const spaces = getSpaces(props);
9211
9226
  return `
9212
9227
  margin-top: ${spaces?.s}px;
9228
+ display: flex;
9229
+ flex-wrap: wrap;
9230
+ gap: ${spaces?.xxs}px;
9213
9231
  `;
9214
9232
  }}
9215
9233
  `;
@@ -9364,30 +9382,38 @@ const doNotForwardProps$r = [
9364
9382
  "cardSdsType",
9365
9383
  "classes",
9366
9384
  ];
9367
- const StyledCard = styled__default.default(material.Card, {
9368
- shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
9369
- }) `
9370
- ${(props) => {
9371
- const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
9372
- const semanticColors = getSemanticColors(props);
9373
- const corners = getCorners(props);
9374
- const shadows = getShadows(props);
9375
- const flexDirection = sdsType === "wide" && visualElementType === "image"
9385
+ const getFlexDirection = (sdsType, visualElementType, imagePosition) => {
9386
+ return sdsType === "wide" && visualElementType === "image"
9376
9387
  ? imagePosition === "left"
9377
9388
  ? "row"
9378
9389
  : "row-reverse"
9379
9390
  : visualElementType === "icon"
9380
9391
  ? "row"
9381
9392
  : "column";
9382
- const showDecorativeBorder = visualElementType === "image"
9393
+ };
9394
+ const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorder, imagePadding) => {
9395
+ return visualElementType === "image"
9383
9396
  ? boundingBox && decorativeBorder && imagePadding
9384
9397
  : boundingBox && decorativeBorder;
9398
+ };
9399
+ const StyledCard = styled__default.default(material.Card, {
9400
+ shouldForwardProp: (prop) => !doNotForwardProps$r.includes(prop)
9401
+ }) `
9402
+ ${(props) => {
9403
+ const { imagePosition = "left", sdsType = "wide", boundingBox = true, decorativeBorder = false, imagePadding = false, visualElementType, clickableCard = false, } = props;
9404
+ const semanticColors = getSemanticColors(props);
9405
+ const corners = getCorners(props);
9406
+ const shadows = getShadows(props);
9407
+ const spaces = getSpaces(props);
9408
+ const flexDirection = getFlexDirection(sdsType, visualElementType, imagePosition);
9409
+ const showDecorativeBorder = getShowDecorativeBorder(visualElementType, boundingBox, decorativeBorder, imagePadding);
9385
9410
  return react.css `
9411
+ position: relative;
9386
9412
  display: flex;
9387
9413
  background-color: transparent;
9388
9414
  background-image: none;
9389
9415
  flex-direction: ${flexDirection};
9390
- overflow: auto;
9416
+ overflow: visible;
9391
9417
  box-shadow: none;
9392
9418
  border-radius: ${corners?.xl}px;
9393
9419
 
@@ -9406,16 +9432,47 @@ const StyledCard = styled__default.default(material.Card, {
9406
9432
  background-color: ${semanticColors?.base?.backgroundPrimary};
9407
9433
  `}
9408
9434
 
9435
+ ${showDecorativeBorder &&
9436
+ react.css `
9437
+ &:before {
9438
+ content: "";
9439
+ position: absolute;
9440
+ background-color: ${semanticColors?.accent?.border};
9441
+
9442
+ ${sdsType === "wide" &&
9443
+ react.css `
9444
+ top: -1px;
9445
+ bottom: -1px;
9446
+ left: -1px;
9447
+ width: ${spaces?.xs}px;
9448
+ border-top-left-radius: ${corners?.xl}px;
9449
+ border-bottom-left-radius: ${corners?.xl}px;
9450
+ `}
9451
+
9452
+ ${sdsType === "narrow" &&
9453
+ react.css `
9454
+ height: ${spaces?.xs}px;
9455
+ top: -1px;
9456
+ left: -1px;
9457
+ right: -1px;
9458
+ border-top-left-radius: ${corners?.xl}px;
9459
+ border-top-right-radius: ${corners?.xl}px;
9460
+ `}
9461
+ }
9462
+ `}
9463
+
9409
9464
  ${sdsType === "wide" &&
9410
9465
  showDecorativeBorder &&
9411
9466
  react.css `
9412
- border-left: 4px solid ${semanticColors?.accent?.border};
9467
+ border-top-left-radius: ${corners?.l}px;
9468
+ border-bottom-left-radius: ${corners?.l}px;
9413
9469
  `}
9414
9470
 
9415
9471
  ${sdsType === "narrow" &&
9416
9472
  showDecorativeBorder &&
9417
9473
  react.css `
9418
- border-top: 4px solid ${semanticColors?.accent?.border};
9474
+ border-top-left-radius: ${corners?.l}px;
9475
+ border-top-right-radius: ${corners?.l}px;
9419
9476
  `}
9420
9477
  `;
9421
9478
  }}
@@ -9448,7 +9505,7 @@ const StyledCardActionArea = styled__default.default(Button, {
9448
9505
 
9449
9506
  &:hover,
9450
9507
  &:active {
9451
- background-color: ${semanticColors?.base?.surface};
9508
+ background-color: ${semanticColors?.base?.surfacePrimary};
9452
9509
  }
9453
9510
  `;
9454
9511
  }}
@@ -9688,9 +9745,13 @@ const StyledImageMediaWrapper = material.styled("div", {
9688
9745
  ${(props) => {
9689
9746
  const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left", } = props;
9690
9747
  const spaces = getSpaces(props);
9748
+ const corners = getCorners(props);
9691
9749
  return material.css `
9692
9750
  display: flex;
9693
9751
  align-items: start;
9752
+ border-top-left-radius: calc(${corners?.xl}px - 1px);
9753
+ border-bottom-left-radius: calc(${corners?.xl}px - 1px);
9754
+ overflow: hidden;
9694
9755
 
9695
9756
  ${boundingBox
9696
9757
  ? imagePadding
@@ -9725,6 +9786,8 @@ const StyledImageMediaWrapper = material.styled("div", {
9725
9786
  `}
9726
9787
 
9727
9788
  justify-content: center;
9789
+ border-top-left-radius: calc(${corners?.xl}px - 1px);
9790
+ border-top-right-radius: calc(${corners?.xl}px - 1px);
9728
9791
  `}
9729
9792
  `;
9730
9793
  }}
@@ -9865,7 +9928,7 @@ const StyledPaper = styled__default.default(material.Paper, {
9865
9928
  const semanticColors = getSemanticColors(props);
9866
9929
  const isSmall = sdsSize === "xs" || sdsSize === "s";
9867
9930
  return `
9868
- background-color: ${semanticColors?.base?.surface};
9931
+ background-color: ${semanticColors?.base?.surfacePrimary};
9869
9932
  background-image: none;
9870
9933
  box-shadow: ${shadows?.l};
9871
9934
  max-height: calc(100vh - ${2 * (spaces?.xxxl || 40)}px);
@@ -10507,12 +10570,11 @@ const disabledStyles$1 = (props) => {
10507
10570
  const StyledFormControlLabel$1 = styled__default.default(material.FormControlLabel) `
10508
10571
  ${(props) => {
10509
10572
  const { disabled } = props;
10510
- const spaces = getSpaces(props);
10511
10573
  const semanticColors = getSemanticColors(props);
10512
10574
  const borders = getBorders(props);
10513
10575
  return `
10514
10576
  align-items: start;
10515
- margin-bottom: ${spaces?.l}px;
10577
+ margin-bottom: 0;
10516
10578
  margin-left: 0;
10517
10579
  margin-right: 0;
10518
10580
  width: fit-content;
@@ -10520,7 +10582,7 @@ const StyledFormControlLabel$1 = styled__default.default(material.FormControlLab
10520
10582
  &:hover {
10521
10583
  ${StyledCheckboxDefaultIcon} {
10522
10584
  border: ${borders?.base?.hover};
10523
- background-color: ${disabled ? "transparent" : semanticColors?.base?.fillHover};
10585
+ background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
10524
10586
  }
10525
10587
 
10526
10588
  ${StyledCheckboxCheckedIcon} {
@@ -10694,19 +10756,18 @@ const disabledStyles = (props) => {
10694
10756
  const StyledFormControlLabel = styled__default.default(material.FormControlLabel) `
10695
10757
  ${(props) => {
10696
10758
  const { disabled } = props;
10697
- const spaces = getSpaces(props);
10698
10759
  const semanticColors = getSemanticColors(props);
10699
10760
  return `
10700
10761
  align-items: start;
10701
- margin-bottom: ${spaces?.l}px;
10762
+ margin-bottom: 0;
10702
10763
  margin-left: 0;
10703
10764
  margin-right: 0;
10704
10765
  width: fit-content;
10705
10766
 
10706
10767
  &:hover {
10707
10768
  ${StyledRadioDefaultIcon} {
10708
- border: 1px solid ${semanticColors?.base?.borderPrimaryHover};
10709
- background-color: ${disabled ? "transparent" : semanticColors?.base?.fillHover};
10769
+ border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
10770
+ background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
10710
10771
  }
10711
10772
 
10712
10773
  ${StyledRadioCheckedIcon} {
@@ -10716,7 +10777,7 @@ const StyledFormControlLabel = styled__default.default(material.FormControlLabel
10716
10777
 
10717
10778
  &:active {
10718
10779
  ${StyledRadioDefaultIcon} {
10719
- border: 1px solid ${semanticColors?.base?.borderPrimaryPressed};
10780
+ border: 1px solid ${semanticColors?.base?.borderPrimaryInteraction};
10720
10781
  }
10721
10782
 
10722
10783
  ${StyledRadioCheckedIcon} {
@@ -11010,12 +11071,12 @@ const textArea = (props) => {
11010
11071
  };
11011
11072
  const StyledLabel$2 = styled__default.default("label") `
11012
11073
  display: block;
11013
- ${fontBodyS$1}
11074
+ ${fontBodySemiboldXxxs}
11014
11075
 
11015
11076
  ${(props) => {
11016
11077
  const spaces = getSpaces(props);
11017
11078
  return `
11018
- margin-bottom: ${spaces?.xxs}px;
11079
+ margin-bottom: ${spaces?.s}px;
11019
11080
  `;
11020
11081
  }}
11021
11082
  `;
@@ -11031,8 +11092,6 @@ const StyledInputBase = styled__default.default(material.TextField, {
11031
11092
  const corners = getCorners(props);
11032
11093
  const semanticColors = getSemanticColors(props);
11033
11094
  return react.css `
11034
- margin-bottom: ${spaces?.l}px;
11035
- margin-right: ${spaces?.m}px;
11036
11095
  display: block;
11037
11096
 
11038
11097
  .${material.outlinedInputClasses.root} {
@@ -11069,7 +11128,7 @@ const StyledInputBase = styled__default.default(material.TextField, {
11069
11128
  .${material.outlinedInputClasses.root}:hover
11070
11129
  .${material.outlinedInputClasses.notchedOutline} {
11071
11130
  border: ${borders?.base?.hover};
11072
- background-color: ${semanticColors?.base?.fillHover};
11131
+ background-color: ${semanticColors?.base?.fillInteraction};
11073
11132
  }
11074
11133
 
11075
11134
  .${material.outlinedInputClasses.root}.${material.outlinedInputClasses.focused}
@@ -11248,7 +11307,7 @@ const toggleOff = (props) => {
11248
11307
  }
11249
11308
 
11250
11309
  &:hover {
11251
- background-color: ${semanticColors?.base?.fillHover};
11310
+ background-color: ${semanticColors?.base?.fillInteraction};
11252
11311
  }
11253
11312
  }
11254
11313
 
@@ -11270,7 +11329,7 @@ const toggleOff = (props) => {
11270
11329
  outline: ${borders?.base?.hover};
11271
11330
 
11272
11331
  .${material.switchClasses.thumb} {
11273
- color: ${semanticColors?.base?.ornamentSecondaryHover};
11332
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
11274
11333
  }
11275
11334
  }`}
11276
11335
  `;
@@ -11302,6 +11361,123 @@ const InputToggle = (props) => {
11302
11361
  return (jsxRuntime.jsx(Toggle, __assign({ checked: finalChecked, color: "primary", onChange: handleChange, value: labelValue }, rest)));
11303
11362
  };
11304
11363
 
11364
+ const StyledIntentMessage = styled__default.default.div `
11365
+ display: flex;
11366
+ flex-direction: column;
11367
+ ${(props) => {
11368
+ const spaces = getSpaces(props);
11369
+ const semanticColors = getSemanticColors(props);
11370
+ const borderThickness = 2;
11371
+ const borderColor = props.borderIntent
11372
+ ? semanticColors?.[props.borderIntent]?.border
11373
+ : "transparent";
11374
+ return `
11375
+ gap: ${spaces?.s}px;
11376
+ position: relative;
11377
+
11378
+ &::before {
11379
+ content: "";
11380
+ position: absolute;
11381
+ left: -${(spaces?.xs || 0) + borderThickness}px;
11382
+ top: 0;
11383
+ bottom: 0;
11384
+ width: ${borderThickness}px;
11385
+ background-color: ${borderColor};
11386
+ display: ${props.hasBorder ? "block" : "none"};
11387
+ }
11388
+ `;
11389
+ }}
11390
+ `;
11391
+ const StyledMessageItem = styled__default.default.div `
11392
+ ${fontBodySemiboldXxxs}
11393
+ display: flex;
11394
+ align-items: start;
11395
+
11396
+ ${(props) => {
11397
+ const spaces = getSpaces(props);
11398
+ const semanticColors = getSemanticColors(props);
11399
+ const intentColors = semanticColors?.[props.intent];
11400
+ return `
11401
+ gap: ${spaces?.xs}px;
11402
+ color: ${intentColors?.text};
11403
+
11404
+ svg {
11405
+ margin-top: ${spaces?.xxxs}px;
11406
+ fill: ${intentColors?.ornament};
11407
+ path {
11408
+ fill: ${intentColors?.ornament};
11409
+ }
11410
+ }
11411
+ `;
11412
+ }}
11413
+ `;
11414
+
11415
+ const DEFAULT_INTENT_PRIORITY = {
11416
+ negative: 0,
11417
+ notice: 1,
11418
+ positive: 2
11419
+ };
11420
+ const IntentMessage = (props) => {
11421
+ const { messages = [], children, border = false, autoOrder = true, orderBy, ...rest } = props;
11422
+ // const priorities = React.useMemo(() => {
11423
+ // return orderBy
11424
+ // ? orderBy.reduce(
11425
+ // (acc, intent, index) => {
11426
+ // acc[intent] = index;
11427
+ // return acc;
11428
+ // },
11429
+ // {} as Record<IntentMessageIntent, number>
11430
+ // )
11431
+ // : DEFAULT_INTENT_PRIORITY;
11432
+ // }, [orderBy]);
11433
+ const priorities = orderBy
11434
+ ? Object.fromEntries(orderBy.map((value, index) => [value, index]))
11435
+ : DEFAULT_INTENT_PRIORITY;
11436
+ /**
11437
+ * Determines the left border color based on message intent priority.
11438
+ * When multiple IntentMessage items are rendered together, the border color
11439
+ * corresponds to the highest-priority intent present.
11440
+ */
11441
+ const borderColorIntent = React__namespace.default.useMemo(() => {
11442
+ if (!messages || messages.length === 0)
11443
+ return undefined;
11444
+ // Find the message with the highest priority (lowest number)
11445
+ const highestPriorityMessage = messages.reduce((prev, current) => {
11446
+ const priorityPrev = priorities[prev.intent] ?? 999;
11447
+ const priorityCurrent = priorities[current.intent] ?? 999;
11448
+ return priorityPrev <= priorityCurrent ? prev : current;
11449
+ });
11450
+ return highestPriorityMessage.intent;
11451
+ }, [messages, priorities]);
11452
+ const getIcon = (item) => {
11453
+ const { icon, intent } = item;
11454
+ if (icon) {
11455
+ if (typeof icon !== "string") {
11456
+ return icon;
11457
+ }
11458
+ return jsxRuntime.jsx(Icon, { sdsIcon: icon, sdsSize: "xs" });
11459
+ }
11460
+ switch (intent) {
11461
+ case "positive":
11462
+ return jsxRuntime.jsx(Icon, { sdsIcon: "CheckCircle", sdsSize: "xs" });
11463
+ case "negative":
11464
+ case "notice":
11465
+ default:
11466
+ return jsxRuntime.jsx(Icon, { sdsIcon: "ExclamationMarkCircle", sdsSize: "xs" });
11467
+ }
11468
+ };
11469
+ const sortedMessages = React__namespace.default.useMemo(() => {
11470
+ if (!autoOrder)
11471
+ return messages;
11472
+ return [...messages].sort((a, b) => {
11473
+ const priorityA = priorities[a.intent] ?? 999;
11474
+ const priorityB = priorities[b.intent] ?? 999;
11475
+ return priorityA - priorityB;
11476
+ });
11477
+ }, [messages, autoOrder, priorities]);
11478
+ return (jsxRuntime.jsxs(StyledIntentMessage, __assign({ borderIntent: borderColorIntent, hasBorder: border }, rest, { children: [children, sortedMessages.map((message, index) => (jsxRuntime.jsxs(StyledMessageItem, { intent: message.intent, children: [getIcon(message), jsxRuntime.jsx("span", { children: message.text })] }, index)))] })));
11479
+ };
11480
+
11305
11481
  const LegendContainer = styled__default.default("div") `
11306
11482
  display: flex;
11307
11483
  flex-wrap: wrap;
@@ -11743,7 +11919,7 @@ const StyledMenu = styled__default.default(material.Menu) `
11743
11919
  const corners = getCorners(props);
11744
11920
  const semanticColors = getSemanticColors(props);
11745
11921
  return `
11746
- background-color: ${semanticColors?.base?.surface};
11922
+ background-color: ${semanticColors?.base?.surfacePrimary};
11747
11923
  background-image: none;
11748
11924
  padding: ${spaces?.xs}px;
11749
11925
  border-radius: ${corners?.l}px;
@@ -18081,7 +18257,7 @@ const NarrowNavItemLinkStyles = (props) => {
18081
18257
  ? semanticColors?.base.textPrimaryOnDark
18082
18258
  : semanticColors?.base.textPrimary};
18083
18259
  background: ${props.hasInvertedStyle
18084
- ? semanticColors?.base.backgroundSecondaryOnDark
18260
+ ? semanticColors?.base.backgroundSecondaryDark
18085
18261
  : semanticColors?.base.backgroundSecondary};
18086
18262
  }
18087
18263
  `;
@@ -18107,11 +18283,11 @@ const StyledNavItemLink = styled__default.default(Link, {
18107
18283
 
18108
18284
  &:hover {
18109
18285
  color: ${props.hasInvertedStyle
18110
- ? semanticColors?.base.textPrimaryOnDark
18111
- : semanticColors?.base.textPrimary};
18286
+ ? semanticColors?.base?.textPrimaryOnDark
18287
+ : semanticColors?.base?.textPrimary};
18112
18288
  background-color: ${props.hasInvertedStyle
18113
- ? semanticColors?.base.fillHoverOnDark
18114
- : semanticColors?.base.fillHover};
18289
+ ? semanticColors?.base?.fillInteractionOnDark
18290
+ : semanticColors?.base?.fillInteraction};
18115
18291
  text-decoration: none;
18116
18292
  }
18117
18293
 
@@ -18665,7 +18841,7 @@ const StyledSearch = styled__default.default(InputSearch, {
18665
18841
  &:hover {
18666
18842
  fieldset {
18667
18843
  border-color: ${hasInvertedStyle
18668
- ? semanticColors?.base?.borderPrimaryHoverOnDark
18844
+ ? semanticColors?.base?.borderPrimaryInteractionOnDark
18669
18845
  : ""} !important;
18670
18846
  }
18671
18847
 
@@ -18683,7 +18859,7 @@ const StyledSearch = styled__default.default(InputSearch, {
18683
18859
  &.Mui-focused {
18684
18860
  fieldset {
18685
18861
  border-color: ${hasInvertedStyle
18686
- ? semanticColors?.base?.borderPrimaryPressedOnDark
18862
+ ? semanticColors?.base?.borderPrimaryInteractionOnDark
18687
18863
  : ""} !important;
18688
18864
  }
18689
18865
 
@@ -18878,8 +19054,8 @@ const StyledAccordion = styled__default.default(Accordion, {
18878
19054
  ? semanticColors?.base.ornamentSecondaryOnDark
18879
19055
  : semanticColors?.base.ornamentSecondary;
18880
19056
  const ChevronOpenColor = hasInvertedStyle
18881
- ? semanticColors?.base?.ornamentSecondaryPressedOnDark
18882
- : semanticColors?.base.ornamentSecondaryPressed;
19057
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
19058
+ : semanticColors?.base.ornamentSecondaryInteraction;
18883
19059
  return material.css `
18884
19060
  & > .MuiButtonBase-root {
18885
19061
  padding: ${spaces?.s}px ${spaces?.l}px !important;
@@ -18944,16 +19120,16 @@ const StyledAccordion = styled__default.default(Accordion, {
18944
19120
  width: 100%;
18945
19121
  box-shadow: none;
18946
19122
  background: ${hasInvertedStyle
18947
- ? semanticColors?.base.fillHoverOnDark
18948
- : semanticColors?.base.fillHover};
19123
+ ? semanticColors?.base.fillInteractionOnDark
19124
+ : semanticColors?.base.fillInteraction};
18949
19125
  color: ${hasInvertedStyle
18950
19126
  ? semanticColors?.base.textPrimaryOnDark
18951
19127
  : semanticColors?.base.textPrimary};
18952
19128
 
18953
19129
  svg {
18954
19130
  color: ${hasInvertedStyle
18955
- ? semanticColors?.base?.ornamentSecondaryHoverOnDark
18956
- : semanticColors?.base.ornamentSecondaryHover} !important;
19131
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
19132
+ : semanticColors?.base.ornamentSecondaryInteraction} !important;
18957
19133
  }
18958
19134
  }
18959
19135
 
@@ -19156,8 +19332,8 @@ const StyledHoverDrawerItem = styled__default.default(Button, {
19156
19332
  box-shadow: none;
19157
19333
  cursor: pointer;
19158
19334
  background: ${hasInvertedStyle
19159
- ? semanticColors?.base.fillHoverOnDark
19160
- : semanticColors?.base.fillHover};
19335
+ ? semanticColors?.base.fillInteractionOnDark
19336
+ : semanticColors?.base.fillInteraction};
19161
19337
  svg {
19162
19338
  color: ${semanticColors?.accent?.ornament};
19163
19339
  }
@@ -19331,8 +19507,8 @@ const NarrowPrimaryNavItem = (props) => {
19331
19507
  const semanticColors = getSemanticColors(props);
19332
19508
  const corners = getCorners(props);
19333
19509
  const ChevronHoverColor = hasInvertedStyle
19334
- ? semanticColors?.base?.ornamentSecondaryHoverOnDark
19335
- : semanticColors?.base.ornamentSecondaryHover;
19510
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
19511
+ : semanticColors?.base.ornamentSecondaryInteraction;
19336
19512
  return react.css `
19337
19513
  border-radius: ${corners?.l}px;
19338
19514
  justify-content: start;
@@ -19357,8 +19533,8 @@ const NarrowPrimaryNavItem = (props) => {
19357
19533
  `
19358
19534
  : react.css `
19359
19535
  background: ${hasInvertedStyle
19360
- ? semanticColors?.base.fillHoverOnDark
19361
- : semanticColors?.base.fillHover};
19536
+ ? semanticColors?.base.fillInteractionOnDark
19537
+ : semanticColors?.base.fillInteraction};
19362
19538
  `}
19363
19539
  box-shadow: none;
19364
19540
 
@@ -19390,11 +19566,11 @@ styled__default.default(Button, {
19390
19566
  ? semanticColors?.base.ornamentSecondaryOnDark
19391
19567
  : semanticColors?.base.ornamentSecondary;
19392
19568
  const ChevronHoverColor = hasInvertedStyle
19393
- ? semanticColors?.base?.ornamentSecondaryHoverOnDark
19394
- : semanticColors?.base.ornamentSecondaryHover;
19569
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
19570
+ : semanticColors?.base.ornamentSecondaryInteraction;
19395
19571
  const ChevronOpenColor = hasInvertedStyle
19396
- ? semanticColors?.base.ornamentSecondaryPressedOnDark
19397
- : semanticColors?.base.ornamentSecondaryPressed;
19572
+ ? semanticColors?.base.ornamentSecondaryInteractionOnDark
19573
+ : semanticColors?.base.ornamentSecondaryInteraction;
19398
19574
  return react.css `
19399
19575
  border: none;
19400
19576
  padding: ${spaces?.xxxs}px ${spaces?.m}px;
@@ -19411,8 +19587,8 @@ styled__default.default(Button, {
19411
19587
 
19412
19588
  &:hover {
19413
19589
  background: ${hasInvertedStyle
19414
- ? semanticColors?.base.fillHoverOnDark
19415
- : semanticColors?.base.fillHover} !important;
19590
+ ? semanticColors?.base.fillInteractionOnDark
19591
+ : semanticColors?.base.fillInteraction} !important;
19416
19592
  box-shadow: none;
19417
19593
 
19418
19594
  ${StyledLabel$1} {
@@ -19492,8 +19668,8 @@ const NarrowNavItemStyles = (props) => {
19492
19668
  const semanticColors = getSemanticColors(props);
19493
19669
  const corners = getCorners(props);
19494
19670
  const ChevronHoverColor = hasInvertedStyle
19495
- ? semanticColors?.base?.ornamentSecondaryHoverOnDark
19496
- : semanticColors?.base.ornamentSecondaryHover;
19671
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
19672
+ : semanticColors?.base?.ornamentSecondaryInteraction;
19497
19673
  return react.css `
19498
19674
  ${active ? fontBodySemiboldL(props) : fontBodyMediumL(props)}
19499
19675
  border-radius: ${corners?.l}px;
@@ -19520,8 +19696,8 @@ const NarrowNavItemStyles = (props) => {
19520
19696
  `
19521
19697
  : react.css `
19522
19698
  background: ${hasInvertedStyle
19523
- ? semanticColors?.base.fillHoverOnDark
19524
- : semanticColors?.base.fillHover};
19699
+ ? semanticColors?.base.fillInteractionOnDark
19700
+ : semanticColors?.base.fillInteraction};
19525
19701
  `}
19526
19702
  box-shadow: none;
19527
19703
 
@@ -19561,11 +19737,11 @@ const UnifiedNavItem = styled__default.default(Button, {
19561
19737
  ? semanticColors?.base.ornamentSecondaryOnDark
19562
19738
  : semanticColors?.base.ornamentSecondary;
19563
19739
  const ChevronHoverColor = hasInvertedStyle
19564
- ? semanticColors?.base?.ornamentSecondaryHoverOnDark
19565
- : semanticColors?.base.ornamentSecondaryHover;
19740
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
19741
+ : semanticColors?.base.ornamentSecondaryInteraction;
19566
19742
  const ChevronOpenColor = hasInvertedStyle
19567
- ? semanticColors?.base.ornamentSecondaryPressedOnDark
19568
- : semanticColors?.base.ornamentSecondaryPressed;
19743
+ ? semanticColors?.base.ornamentSecondaryInteractionOnDark
19744
+ : semanticColors?.base.ornamentSecondaryInteraction;
19569
19745
  return [
19570
19746
  navVariant === "secondary" &&
19571
19747
  (active ? fontBodySemiboldS(props) : fontBodyMediumS(props)),
@@ -19593,8 +19769,8 @@ const UnifiedNavItem = styled__default.default(Button, {
19593
19769
 
19594
19770
  &:hover {
19595
19771
  background: ${hasInvertedStyle
19596
- ? semanticColors?.base.fillHoverOnDark
19597
- : semanticColors?.base.fillHover} !important;
19772
+ ? semanticColors?.base.fillInteractionOnDark
19773
+ : semanticColors?.base.fillInteraction} !important;
19598
19774
  box-shadow: none;
19599
19775
 
19600
19776
  ${navVariant === "primary" && StyledLabel} {
@@ -19689,7 +19865,7 @@ const StyledSectionHeader = styled__default.default(ListSubheader, {
19689
19865
  ? semanticColors?.base.backgroundPrimaryDark
19690
19866
  : semanticColors?.base.backgroundPrimary;
19691
19867
  }
19692
- return semanticColors?.base?.surface;
19868
+ return semanticColors?.base?.surfacePrimary;
19693
19869
  }
19694
19870
  function getTextColor() {
19695
19871
  if (isNarrow) {
@@ -19750,7 +19926,7 @@ const StyledAccordionSection = styled__default.default("div", {
19750
19926
  border-radius: ${corners?.xl}px;
19751
19927
  padding: ${spaces?.l}px;
19752
19928
  background-color: ${hasInvertedStyle
19753
- ? semanticColors?.base?.backgroundSecondaryOnDark
19929
+ ? semanticColors?.base?.backgroundSecondaryDark
19754
19930
  : semanticColors?.base?.backgroundSecondary};
19755
19931
  `;
19756
19932
  }
@@ -20386,8 +20562,8 @@ const NarrowStyledTextItem = (props) => {
20386
20562
  &:hover {
20387
20563
  box-shadow: none;
20388
20564
  background: ${hasInvertedStyle
20389
- ? semanticColors?.base.fillHoverOnDark
20390
- : semanticColors?.base.fillHover};
20565
+ ? semanticColors?.base.fillInteractionOnDark
20566
+ : semanticColors?.base.fillInteraction};
20391
20567
  }
20392
20568
  `;
20393
20569
  };
@@ -20419,11 +20595,11 @@ styled__default.default(Button, {
20419
20595
  ? semanticColors?.base.ornamentSecondaryOnDark
20420
20596
  : semanticColors?.base.ornamentSecondary;
20421
20597
  const ChevronHoverColor = hasInvertedStyle
20422
- ? semanticColors?.base?.ornamentSecondaryHoverOnDark
20423
- : semanticColors?.base.ornamentSecondaryHover;
20598
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
20599
+ : semanticColors?.base.ornamentSecondaryInteraction;
20424
20600
  const ChevronOpenColor = hasInvertedStyle
20425
- ? semanticColors?.base?.ornamentSecondaryPressedOnDark
20426
- : semanticColors?.base.ornamentSecondaryPressed;
20601
+ ? semanticColors?.base?.ornamentSecondaryInteractionOnDark
20602
+ : semanticColors?.base.ornamentSecondaryInteraction;
20427
20603
  return [
20428
20604
  open ? fontBodySemiboldS(props) : fontBodyMediumS(props),
20429
20605
  react.css `
@@ -20444,8 +20620,8 @@ styled__default.default(Button, {
20444
20620
 
20445
20621
  &:hover {
20446
20622
  background: ${hasInvertedStyle
20447
- ? semanticColors?.base.fillHoverOnDark
20448
- : semanticColors?.base.fillHover};
20623
+ ? semanticColors?.base.fillInteractionOnDark
20624
+ : semanticColors?.base.fillInteraction};
20449
20625
  box-shadow: none;
20450
20626
 
20451
20627
  color: ${hasInvertedStyle
@@ -20997,7 +21173,7 @@ const StyledTabs$1 = styled__default.default(material.Tabs, {
20997
21173
  const StyledTab$1 = styled__default.default(material.Tab, {
20998
21174
  shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop)
20999
21175
  }) `
21000
- ${fontBodyXs$2}
21176
+ ${fontBodyMediumXs}
21001
21177
 
21002
21178
  ${(props) => {
21003
21179
  const spaces = getSpaces(props);
@@ -21024,20 +21200,20 @@ const StyledTab$1 = styled__default.default(material.Tab, {
21024
21200
  left: 0;
21025
21201
  width: ${spaces?.xxxs}px;
21026
21202
  height: 100%;
21027
- background-color: ${semanticColors?.base?.borderPrimaryHover};
21203
+ background-color: ${semanticColors?.base?.borderPrimaryInteraction};
21028
21204
  display: none;
21029
21205
  border-radius: ${spaces?.xxxs}px;
21030
21206
  }
21031
21207
  &:hover {
21032
21208
  color: ${semanticColors?.base?.textPrimary};
21033
- background-color: ${semanticColors?.base?.fillHover};
21209
+ background-color: ${semanticColors?.base?.fillInteraction};
21034
21210
  &:before {
21035
21211
  display: block;
21036
21212
  }
21037
21213
  }
21038
21214
  &.Mui-selected {
21039
21215
  color: ${semanticColors?.base?.textPrimary};
21040
- font-weight: 500;
21216
+ font-weight: 600;
21041
21217
  }
21042
21218
  &.MuiButtonBase-root {
21043
21219
  text-align: left;
@@ -21394,7 +21570,7 @@ const StyledPaginationButton = styled__default.default(Button) `
21394
21570
 
21395
21571
  &:hover {
21396
21572
  & .MuiSvgIcon-root {
21397
- color: ${semanticColors?.base?.ornamentSecondaryHover}
21573
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction}
21398
21574
  }
21399
21575
  }
21400
21576
  `;
@@ -21430,10 +21606,10 @@ const StyledPaginationChevronList = styled__default.default("li", {
21430
21606
  }
21431
21607
 
21432
21608
  &:hover {
21433
- background-color: ${disabled ? "transparent" : semanticColors?.base?.fillHover};
21609
+ background-color: ${disabled ? "transparent" : semanticColors?.base?.fillInteraction};
21434
21610
 
21435
21611
  & .MuiSvgIcon-root {
21436
- color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryHover}
21612
+ color: ${disabled ? semanticColors?.base?.ornamentDisabled : semanticColors?.base?.ornamentSecondaryInteraction}
21437
21613
  }
21438
21614
  }
21439
21615
 
@@ -21455,28 +21631,29 @@ const StyledPagination = styled__default.default("ul", {
21455
21631
  `;
21456
21632
  const selectedPageStyle = (props) => {
21457
21633
  const semanticColors = getSemanticColors(props);
21458
- return `
21459
- background-color: ${semanticColors?.base?.fillOpen};
21634
+ return react.css `
21635
+ background-color: ${semanticColors?.base?.fillInteraction};
21460
21636
  color: ${semanticColors?.base?.textPrimary};
21461
- font-weight: 500;
21462
21637
  box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
21463
21638
 
21464
21639
  &:hover {
21465
21640
  box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderSecondary};
21466
21641
  }
21642
+
21643
+ ${fontTabularSemiboldS(props)}
21467
21644
  `;
21468
21645
  };
21469
21646
  const Page = styled__default.default("li", {
21470
21647
  shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop)
21471
21648
  }) `
21472
- ${fontTabularS}
21649
+ ${fontTabularMediumS}
21473
21650
 
21474
21651
  ${(props) => {
21475
21652
  const { selected, sdsStyle } = props;
21476
21653
  const spaces = getSpaces(props);
21477
21654
  const corners = getCorners(props);
21478
21655
  const semanticColors = getSemanticColors(props);
21479
- return `
21656
+ return react.css `
21480
21657
  color: ${semanticColors?.base?.textSecondary};
21481
21658
  cursor: pointer;
21482
21659
  list-style: none;
@@ -21490,15 +21667,15 @@ const Page = styled__default.default("li", {
21490
21667
  border-radius: ${sdsStyle === "round" ? corners?.rounded : corners?.l}px;
21491
21668
  user-select: none;
21492
21669
  &:hover {
21493
- background-color: ${semanticColors?.base?.fillHover};
21670
+ background-color: ${semanticColors?.base?.fillInteraction};
21494
21671
  color: ${semanticColors?.base?.textPrimary};
21495
21672
  }
21496
21673
 
21497
- &:nth-last-of-type(-n+2) {
21674
+ &:nth-last-of-type(-n + 2) {
21498
21675
  margin-right: 0;
21499
21676
  }
21500
21677
 
21501
- ${selected && selectedPageStyle(props)};
21678
+ ${selected && selectedPageStyle(props)}
21502
21679
  ${focusVisibleA11yStyle(props)}
21503
21680
  `;
21504
21681
  }}
@@ -21821,7 +21998,7 @@ const StyledSegmentedControl = styled__default.default(material.ToggleButtonGrou
21821
21998
  padding: ${spaces?.xxxs}px;
21822
21999
 
21823
22000
  &:hover {
21824
- box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryHover};
22001
+ box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryInteraction};
21825
22002
  }
21826
22003
 
21827
22004
  .${material.toggleButtonClasses.root}.${material.toggleButtonClasses.disabled} {
@@ -21829,13 +22006,13 @@ const StyledSegmentedControl = styled__default.default(material.ToggleButtonGrou
21829
22006
  }
21830
22007
 
21831
22008
  .${material.toggleButtonClasses.root}.${material.toggleButtonClasses.selected} {
21832
- background-color: ${semanticColors?.base?.fillOpen};
22009
+ background-color: ${semanticColors?.base?.fillInteraction};
21833
22010
  color: ${semanticColors?.accent?.ornamentSelected};
21834
22011
  border-color: ${semanticColors?.base?.borderPrimary};
21835
22012
 
21836
22013
  &:hover {
21837
- background-color: ${semanticColors?.base?.fillHover};
21838
- color: ${semanticColors?.base?.ornamentSecondaryHover};
22014
+ background-color: ${semanticColors?.base?.fillInteraction};
22015
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
21839
22016
  }
21840
22017
  }
21841
22018
 
@@ -21851,8 +22028,8 @@ const StyledSegmentedControl = styled__default.default(material.ToggleButtonGrou
21851
22028
 
21852
22029
  &:hover {
21853
22030
  border-color: ${semanticColors?.base?.borderPrimary};
21854
- background-color: ${semanticColors?.base?.fillHover};
21855
- color: ${semanticColors?.base?.ornamentSecondaryHover};
22031
+ background-color: ${semanticColors?.base?.fillInteraction};
22032
+ color: ${semanticColors?.base?.ornamentSecondaryInteraction};
21856
22033
  }
21857
22034
  }
21858
22035
  `;
@@ -21935,6 +22112,7 @@ const disabledStyled = (props) => {
21935
22112
 
21936
22113
  & span, & div {
21937
22114
  color: ${semanticColors?.base?.textDisabled};
22115
+ background-color: transparent !important;
21938
22116
  }
21939
22117
 
21940
22118
  .cell-component {
@@ -21943,11 +22121,12 @@ const disabledStyled = (props) => {
21943
22121
  user-select: none;
21944
22122
  & div {
21945
22123
  color: ${semanticColors?.base?.textDisabled};
21946
- background-color: ${semanticColors?.base?.backgroundSecondary};
22124
+ background-color: transparent;
21947
22125
  }
21948
22126
 
21949
22127
  & .MuiChip-root {
21950
22128
  background-color: ${semanticColors?.base?.fillDisabled};
22129
+ box-shadow: inset 0 0 0 1px ${semanticColors?.base?.borderPrimaryDisabled} !important;
21951
22130
 
21952
22131
  & span {
21953
22132
  color: ${semanticColors?.base?.textDisabled} !important;
@@ -21966,7 +22145,7 @@ const hoverStyled = (props) => {
21966
22145
  const semanticColors = getSemanticColors(props);
21967
22146
  return `
21968
22147
  &:hover {
21969
- background-color: ${semanticColors?.base?.fillHover};
22148
+ background-color: ${semanticColors?.base?.fillInteraction};
21970
22149
  }
21971
22150
  `;
21972
22151
  };
@@ -22067,8 +22246,8 @@ const StyledTab = styled__default.default(material.Tab, {
22067
22246
  color: ${semanticColors?.base?.textSecondary};
22068
22247
 
22069
22248
  &:hover {
22070
- box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryHover};
22071
- background-color: ${semanticColors?.base?.fillOpen};
22249
+ box-shadow: inset 0 -2px 0 0 ${semanticColors?.base?.borderPrimaryInteraction};
22250
+ background-color: ${semanticColors?.base?.fillInteraction};
22072
22251
  border-top-right-radius: ${corners?.l}px;
22073
22252
  border-top-left-radius: ${corners?.l}px;
22074
22253
 
@@ -22098,7 +22277,7 @@ const StyledTab = styled__default.default(material.Tab, {
22098
22277
  function tabFontMixin(props) {
22099
22278
  const { sdsSize } = props;
22100
22279
  const isLarge = sdsSize === "large";
22101
- return isLarge ? fontBodyS$1(props) : fontBodyXs$2(props);
22280
+ return isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props);
22102
22281
  }
22103
22282
  const StyledWrapper = styled__default.default("div") `
22104
22283
  ${(props) => {
@@ -22117,7 +22296,7 @@ const StyledCount = styled__default.default("span") `
22117
22296
  const { sdsSize } = props;
22118
22297
  const isLarge = sdsSize === "large";
22119
22298
  return react.css `
22120
- ${isLarge ? fontBodyS$1(props) : fontBodyXs$2(props)}
22299
+ ${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
22121
22300
  `;
22122
22301
  }}
22123
22302
  `;
@@ -22126,9 +22305,9 @@ const StyledLabelTextWrapper = styled__default.default("span") `
22126
22305
  const { sdsSize, selected } = props;
22127
22306
  const isLarge = sdsSize === "large";
22128
22307
  return react.css `
22129
- ${isLarge ? fontBodyS$1(props) : fontBodyXs$2(props)}
22308
+ ${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
22130
22309
  ${selected &&
22131
- (isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props))}
22310
+ (isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props))}
22132
22311
  position: absolute;
22133
22312
  `;
22134
22313
  }}
@@ -22138,7 +22317,7 @@ const StyledLabelTextWrapperShadow = styled__default.default("span") `
22138
22317
  const { sdsSize } = props;
22139
22318
  const isLarge = sdsSize === "large";
22140
22319
  return react.css `
22141
- ${isLarge ? fontBodyMediumS(props) : fontBodyMediumXs(props)}
22320
+ ${isLarge ? fontBodySemiboldS(props) : fontBodySemiboldXs(props)}
22142
22321
  visibility: hidden;
22143
22322
  opacity: 0;
22144
22323
  `;
@@ -25818,7 +25997,7 @@ Object.assign(chroma, {
25818
25997
  const generateDiscreteColors = (count, options = {}) => {
25819
25998
  if (count === 0)
25820
25999
  return [];
25821
- const { isDarkMode = false, start = 250, rotations = 0.85, gamma = 0.7, lightness = [0.4, 0.7], correctLightness = true, } = options;
26000
+ const { isDarkMode = false, start = 240, rotations = 0.85, gamma = 1, lightness = [0.4, 0.7], correctLightness = true, } = options;
25822
26001
  let scale = chroma
25823
26002
  .cubehelix()
25824
26003
  .start(start)
@@ -25888,6 +26067,7 @@ exports.InputSearch = InputSearch;
25888
26067
  exports.InputSlider = InputSlider;
25889
26068
  exports.InputText = InputText;
25890
26069
  exports.InputToggle = InputToggle;
26070
+ exports.IntentMessage = IntentMessage;
25891
26071
  exports.Legend = Legend;
25892
26072
  exports.Link = Link;
25893
26073
  exports.List = List;