carbon-react 104.43.1 → 104.46.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.
@@ -41,7 +41,7 @@ const StyledAdvancedColorPickerPreview = styled.div`
41
41
  `;
42
42
  const DialogStyle = styled(Dialog)`
43
43
  ${DialogContentStyle} {
44
- padding: 18px 18px 18px 17px;
44
+ padding: var(--spacing200);
45
45
  }
46
46
 
47
47
  ${DialogInnerContentStyle} {
@@ -72,7 +72,7 @@ const DialogStyle = styled(Dialog)`
72
72
  }
73
73
 
74
74
  [data-component="icon"] {
75
- color: var(--colorsActionMinorYin065);
75
+ color: var(--colorsActionMinor500);
76
76
  }
77
77
  `;
78
78
  export { StyledAdvancedColorPickerWrapper, StyledAdvancedColorPickerCell, StyledAdvancedColorPickerPreview, DialogStyle };
@@ -231,7 +231,7 @@ const StyledDayPicker = styled.div`
231
231
  color: var(--colorsActionMajorYin090);
232
232
  line-height: var(--sizing500);
233
233
  height: var(--sizing500);
234
- //font: var(--typographyDatePickerCalendarMonthM); to be implemented
234
+ //font: var(--typographyDatePickerCalendarMonthM); font assets to be updated part of FE-4975
235
235
  font-size: 16px;
236
236
  font-weight: 800;
237
237
 
@@ -243,13 +243,13 @@ const StyledDayPicker = styled.div`
243
243
 
244
244
  .DayPicker-Day {
245
245
  min-width: var(--sizing500);
246
- height: 36px; //var(--sizing450); to be implemented
246
+ height: var(--sizing450);
247
247
  padding: 0;
248
248
  background-color: var(--colorsUtilityYang100);
249
249
  cursor: pointer;
250
250
  border: none;
251
- //font-family: var(--fontFamiliesDefault); token value to be updated
252
- //font: var(--typographyDatePickerCalendarDateM); to be implemented
251
+ //font-family: var(--fontFamiliesDefault); font assets to be updated part of FE-4975
252
+ //font: var(--typographyDatePickerCalendarDateM); font assets to be updated part of FE-4975
253
253
  font-weight: var(--fontWeights700);
254
254
  font-size: var(--fontSizes100);
255
255
  line-height: var(--lineHeights500);
@@ -9,7 +9,7 @@ const StyledWeekday = styled.div`
9
9
  color: var(--colorsActionMinor400);
10
10
  text-transform: uppercase;
11
11
  font-size: 12px;
12
- //font: var(--typographyDatePickerCalendarDayM) to be implemented
12
+ //font: var(--typographyDatePickerCalendarDayM) font assets to be updated part of FE-4975
13
13
  text-align: center;
14
14
  padding: 20px 0 5px;
15
15
  box-sizing: border-box;
@@ -16,7 +16,7 @@ const StyledDateRange = styled.div`
16
16
  }
17
17
 
18
18
  & ${StyledDateInput}:first-child {
19
- margin-right: 15px;
19
+ margin-right: var(--spacing150);
20
20
  }
21
21
 
22
22
  ${StyledLabelContainer} {
@@ -27,30 +27,25 @@ const StyledDetailContent = styled.div`
27
27
  `}
28
28
  `;
29
29
  const StyledDetailIcon = styled(Icon)`
30
- ${({
31
- theme
32
- }) => css`
33
- position: absolute;
34
- color: ${theme.palette.slateTint(50)};
30
+ position: absolute;
31
+ color: var(--colorsUtilityYin065);
32
+ height: ${iconSize};
33
+ width: ${iconSize};
34
+ top: -1px;
35
+ vertical-align: top;
36
+
37
+ // StyledSvgIcon
38
+ span {
35
39
  height: ${iconSize};
36
40
  width: ${iconSize};
37
- top: -1px;
38
- vertical-align: top;
39
-
40
- // StyledSvgIcon
41
- span {
42
- height: ${iconSize};
43
- width: ${iconSize};
44
- vertical-align: middle;
45
- }
46
- `}
41
+ vertical-align: middle;
42
+ }
47
43
  `;
48
44
  const StyledDetailFootnote = styled.div`
49
45
  ${({
50
- hasIcon,
51
- theme
46
+ hasIcon
52
47
  }) => css`
53
- color: ${theme.palette.slateTint(20)};
48
+ color: var(--colorsUtilityYin055);
54
49
  font-size: 13px;
55
50
  position: relative;
56
51
  margin-top: -2px;
@@ -63,10 +58,4 @@ const StyledDetailFootnote = styled.div`
63
58
  StyledDetail.defaultProps = {
64
59
  theme: baseTheme
65
60
  };
66
- StyledDetailIcon.defaultProps = {
67
- theme: baseTheme
68
- };
69
- StyledDetailFootnote.defaultProps = {
70
- theme: baseTheme
71
- };
72
61
  export { StyledDetail, StyledDetailContent, StyledDetailIcon, StyledDetailFootnote };
@@ -6,9 +6,7 @@ export const StyledSettingsRow = styled.div`
6
6
  ${margin}
7
7
 
8
8
  clear: both;
9
- color: ${({
10
- theme
11
- }) => theme.palette.slateTint(20)};
9
+ color: var(--colorsUtilityYin055);
12
10
  display: flex;
13
11
  font-size: 14px;
14
12
  justify-content: space-between;
@@ -18,9 +16,7 @@ export const StyledSettingsRow = styled.div`
18
16
  ${({
19
17
  hasDivider
20
18
  }) => hasDivider && css`
21
- border-bottom: 1px solid ${({
22
- theme
23
- }) => theme.palette.slateTint(90)};
19
+ border-bottom: 1px solid var(--colorsUtilityMajor050);
24
20
  padding-bottom: 30px;
25
21
  `}
26
22
 
@@ -29,9 +25,7 @@ export const StyledSettingsRow = styled.div`
29
25
  }
30
26
 
31
27
  ${StyledHeadingTitle} {
32
- color: ${({
33
- theme
34
- }) => theme.palette.slate};
28
+ color: var(--colorsUtilityYin090);
35
29
  font-size: 15px;
36
30
  font-weight: bold;
37
31
  line-height: 18px;
@@ -18,7 +18,7 @@ const StyledSimpleColorInput = styled(SimpleColorInput)`
18
18
 
19
19
  &:focus + ${StyledColorSampleBox} {
20
20
  box-shadow: inset 0px 0px 0px var(--borderWidth200)
21
- var(--colorsActionMajorYang100);
21
+ var(--colorsUtilityYang100);
22
22
  border: 2px solid var(--colorsSemanticFocus500);
23
23
  }
24
24
  `;
@@ -10,8 +10,8 @@ const getIconColor = color => {
10
10
  greenMultiplier = 587,
11
11
  blueMultiplier = 114;
12
12
  const contrast = (Math.round(r * redMultiplier) + Math.round(g * greenMultiplier) + Math.round(b * blueMultiplier)) / 1000;
13
- if (contrast < 128) return "var(--colorsActionMajorYang100)";
14
- return "var(--colorsActionMajorYin090)";
13
+ if (contrast < 128) return "var(--colorsUtilityYang100)";
14
+ return "var(--colorsUtilityYin090)";
15
15
  };
16
16
 
17
17
  const StyledTickIcon = styled(Icon)`
@@ -72,7 +72,7 @@ const StyledAdvancedColorPickerPreview = _styledComponents.default.div`
72
72
  exports.StyledAdvancedColorPickerPreview = StyledAdvancedColorPickerPreview;
73
73
  const DialogStyle = (0, _styledComponents.default)(_dialog2.default)`
74
74
  ${_dialog.DialogContentStyle} {
75
- padding: 18px 18px 18px 17px;
75
+ padding: var(--spacing200);
76
76
  }
77
77
 
78
78
  ${_dialog.DialogInnerContentStyle} {
@@ -103,7 +103,7 @@ const DialogStyle = (0, _styledComponents.default)(_dialog2.default)`
103
103
  }
104
104
 
105
105
  [data-component="icon"] {
106
- color: var(--colorsActionMinorYin065);
106
+ color: var(--colorsActionMinor500);
107
107
  }
108
108
  `;
109
109
  exports.DialogStyle = DialogStyle;
@@ -242,7 +242,7 @@ const StyledDayPicker = _styledComponents.default.div`
242
242
  color: var(--colorsActionMajorYin090);
243
243
  line-height: var(--sizing500);
244
244
  height: var(--sizing500);
245
- //font: var(--typographyDatePickerCalendarMonthM); to be implemented
245
+ //font: var(--typographyDatePickerCalendarMonthM); font assets to be updated part of FE-4975
246
246
  font-size: 16px;
247
247
  font-weight: 800;
248
248
 
@@ -254,13 +254,13 @@ const StyledDayPicker = _styledComponents.default.div`
254
254
 
255
255
  .DayPicker-Day {
256
256
  min-width: var(--sizing500);
257
- height: 36px; //var(--sizing450); to be implemented
257
+ height: var(--sizing450);
258
258
  padding: 0;
259
259
  background-color: var(--colorsUtilityYang100);
260
260
  cursor: pointer;
261
261
  border: none;
262
- //font-family: var(--fontFamiliesDefault); token value to be updated
263
- //font: var(--typographyDatePickerCalendarDateM); to be implemented
262
+ //font-family: var(--fontFamiliesDefault); font assets to be updated part of FE-4975
263
+ //font: var(--typographyDatePickerCalendarDateM); font assets to be updated part of FE-4975
264
264
  font-weight: var(--fontWeights700);
265
265
  font-size: var(--fontSizes100);
266
266
  line-height: var(--lineHeights500);
@@ -19,7 +19,7 @@ const StyledWeekday = _styledComponents.default.div`
19
19
  color: var(--colorsActionMinor400);
20
20
  text-transform: uppercase;
21
21
  font-size: 12px;
22
- //font: var(--typographyDatePickerCalendarDayM) to be implemented
22
+ //font: var(--typographyDatePickerCalendarDayM) font assets to be updated part of FE-4975
23
23
  text-align: center;
24
24
  padding: 20px 0 5px;
25
25
  box-sizing: border-box;
@@ -31,7 +31,7 @@ const StyledDateRange = _styledComponents.default.div`
31
31
  }
32
32
 
33
33
  & ${_date.default}:first-child {
34
- margin-right: 15px;
34
+ margin-right: var(--spacing150);
35
35
  }
36
36
 
37
37
  ${_labelStyle.StyledLabelContainer} {
@@ -46,31 +46,26 @@ const StyledDetailContent = _styledComponents.default.div`
46
46
  `;
47
47
  exports.StyledDetailContent = StyledDetailContent;
48
48
  const StyledDetailIcon = (0, _styledComponents.default)(_icon.default)`
49
- ${({
50
- theme
51
- }) => (0, _styledComponents.css)`
52
- position: absolute;
53
- color: ${theme.palette.slateTint(50)};
49
+ position: absolute;
50
+ color: var(--colorsUtilityYin065);
51
+ height: ${iconSize};
52
+ width: ${iconSize};
53
+ top: -1px;
54
+ vertical-align: top;
55
+
56
+ // StyledSvgIcon
57
+ span {
54
58
  height: ${iconSize};
55
59
  width: ${iconSize};
56
- top: -1px;
57
- vertical-align: top;
58
-
59
- // StyledSvgIcon
60
- span {
61
- height: ${iconSize};
62
- width: ${iconSize};
63
- vertical-align: middle;
64
- }
65
- `}
60
+ vertical-align: middle;
61
+ }
66
62
  `;
67
63
  exports.StyledDetailIcon = StyledDetailIcon;
68
64
  const StyledDetailFootnote = _styledComponents.default.div`
69
65
  ${({
70
- hasIcon,
71
- theme
66
+ hasIcon
72
67
  }) => (0, _styledComponents.css)`
73
- color: ${theme.palette.slateTint(20)};
68
+ color: var(--colorsUtilityYin055);
74
69
  font-size: 13px;
75
70
  position: relative;
76
71
  margin-top: -2px;
@@ -83,10 +78,4 @@ const StyledDetailFootnote = _styledComponents.default.div`
83
78
  exports.StyledDetailFootnote = StyledDetailFootnote;
84
79
  StyledDetail.defaultProps = {
85
80
  theme: _themes.baseTheme
86
- };
87
- StyledDetailIcon.defaultProps = {
88
- theme: _themes.baseTheme
89
- };
90
- StyledDetailFootnote.defaultProps = {
91
- theme: _themes.baseTheme
92
81
  };
@@ -23,9 +23,7 @@ const StyledSettingsRow = _styledComponents.default.div`
23
23
  ${_styledSystem.margin}
24
24
 
25
25
  clear: both;
26
- color: ${({
27
- theme
28
- }) => theme.palette.slateTint(20)};
26
+ color: var(--colorsUtilityYin055);
29
27
  display: flex;
30
28
  font-size: 14px;
31
29
  justify-content: space-between;
@@ -35,9 +33,7 @@ const StyledSettingsRow = _styledComponents.default.div`
35
33
  ${({
36
34
  hasDivider
37
35
  }) => hasDivider && (0, _styledComponents.css)`
38
- border-bottom: 1px solid ${({
39
- theme
40
- }) => theme.palette.slateTint(90)};
36
+ border-bottom: 1px solid var(--colorsUtilityMajor050);
41
37
  padding-bottom: 30px;
42
38
  `}
43
39
 
@@ -46,9 +42,7 @@ const StyledSettingsRow = _styledComponents.default.div`
46
42
  }
47
43
 
48
44
  ${_heading.StyledHeadingTitle} {
49
- color: ${({
50
- theme
51
- }) => theme.palette.slate};
45
+ color: var(--colorsUtilityYin090);
52
46
  font-size: 15px;
53
47
  font-weight: bold;
54
48
  line-height: 18px;
@@ -30,7 +30,7 @@ const StyledSimpleColorInput = (0, _styledComponents.default)(_input.Input)`
30
30
 
31
31
  &:focus + ${_colorSampleBox.default} {
32
32
  box-shadow: inset 0px 0px 0px var(--borderWidth200)
33
- var(--colorsActionMajorYang100);
33
+ var(--colorsUtilityYang100);
34
34
  border: 2px solid var(--colorsSemanticFocus500);
35
35
  }
36
36
  `;
@@ -25,8 +25,8 @@ const getIconColor = color => {
25
25
  greenMultiplier = 587,
26
26
  blueMultiplier = 114;
27
27
  const contrast = (Math.round(r * redMultiplier) + Math.round(g * greenMultiplier) + Math.round(b * blueMultiplier)) / 1000;
28
- if (contrast < 128) return "var(--colorsActionMajorYang100)";
29
- return "var(--colorsActionMajorYin090)";
28
+ if (contrast < 128) return "var(--colorsUtilityYang100)";
29
+ return "var(--colorsUtilityYin090)";
30
30
  };
31
31
 
32
32
  const StyledTickIcon = (0, _styledComponents.default)(_icon.default)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.43.1",
3
+ "version": "104.46.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {