carbon-react 102.21.0 → 102.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,28 +22,28 @@ const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
22
22
  theme,
23
23
  align
24
24
  }) => (0, _styledComponents.css)`
25
- background-color: ${theme.colors.secondary};
25
+ background-color: var(--colorsActionMajorYang100);
26
26
  min-width: ${({
27
27
  minWidth
28
28
  }) => minWidth}px;
29
29
  white-space: nowrap;
30
30
  z-index: ${theme.zIndex.popover};
31
+ box-shadow: var(--boxShadow100);
31
32
 
32
33
  ${_button.default} {
33
- background-color: ${theme.colors.secondary};
34
- border: 1px solid ${theme.colors.secondary};
35
- color: ${theme.colors.white};
34
+ background-color: var(--colorsActionMajorYang100);
35
+ border: 1px solid var(--colorsActionMajorTransparent);
36
+ color: var(--colorsActionMajor500);
36
37
  display: block;
37
38
  margin-left: 0;
38
- margin-top: 3px;
39
- margin-bottom: 3px;
40
39
  min-width: 100%;
41
40
  text-align: ${align};
42
41
  z-index: ${theme.zIndex.overlay};
43
42
 
44
43
  &:focus,
45
44
  &:hover {
46
- background-color: ${theme.colors.tertiary};
45
+ color: var(--colorsActionMajorYang100);
46
+ background-color: var(--colorsActionMajor600);
47
47
  }
48
48
 
49
49
  & + & {
@@ -27,23 +27,32 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
27
27
  buttonType,
28
28
  disabled,
29
29
  displayed,
30
- size,
31
- theme
30
+ size
32
31
  }) => (0, _styledComponents.css)`
33
32
  ${!disabled && displayed ? (0, _styledComponents.css)`
34
- background-color: ${theme.colors.secondary};
35
- border-color: ${theme.colors.secondary};
33
+ background-color: var(--colorsActionMajor500);
34
+ border-color: var(--colorsActionMajor500);
36
35
 
37
36
  &,
38
37
  ${_icon.default} {
39
- color: ${theme.colors.white};
38
+ color: var(--colorsActionMajorYang100);
40
39
  }
41
40
 
42
41
  &:focus {
43
- border-left-color: ${theme.colors.secondary};
42
+ border-left-color: var(--colorsSemanticFocus500);
44
43
  }
45
44
  ` : ""}
46
- ${!disabled && buttonType === "primary" && `border-left-color: ${theme.colors.secondary};`}
45
+ ${!disabled && buttonType === "primary" && `position: relative;
46
+ &::before {
47
+ content: '';
48
+ width: 2px;
49
+ height: 100%;
50
+ background: var(--colorsActionMajorYang100);
51
+ position: absolute;
52
+ left: -2px;
53
+ z-index: 2;
54
+ }
55
+ `}
47
56
  ${buttonType === "secondary" && "border-left-width: 0;"}
48
57
  padding: 0 ${horizontalPaddingSizes[size]}px;
49
58
 
@@ -25,9 +25,7 @@ const StyledSplitButton = _styledComponents.default.div`
25
25
  margin: 0;
26
26
 
27
27
  &:focus {
28
- border: 3px solid ${({
29
- theme
30
- }) => theme.colors.focus};
28
+ border: 3px solid var(--colorsSemanticFocus500);
31
29
  outline: none;
32
30
  margin: -1px;
33
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "102.21.0",
3
+ "version": "102.22.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {