carbon-react 104.38.2 → 104.41.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.
@@ -8,9 +8,7 @@ const StyledDraggableContainer = styled.div`
8
8
  const StyledDraggableItem = styled.div`
9
9
  display: flex;
10
10
  align-items: center;
11
- border-bottom: 1px solid ${({
12
- theme
13
- }) => theme.draggableItem.border};
11
+ border-bottom: 1px solid var(--colorsUtilityMajor050);
14
12
  ${padding}
15
13
  cursor: move;
16
14
 
@@ -1,2 +1,3 @@
1
+ export function getSpacing(prop: any): any;
1
2
  export default GridItemStyle;
2
3
  declare const GridItemStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,10 +3,9 @@ import { grid, flexbox } from "styled-system";
3
3
  import styledSystemPropTypes from "@styled-system/prop-types";
4
4
  import { padding } from "@styled-system/space";
5
5
  import PropTypes from "prop-types";
6
- import { baseTheme } from "../../../style/themes";
7
6
  import { filterStyledSystemPaddingProps } from "../../../style/utils";
8
7
 
9
- function responsiveGridItem(responsiveSettings, theme) {
8
+ function responsiveGridItem(responsiveSettings) {
10
9
  return responsiveSettings.map(setting => {
11
10
  const {
12
11
  alignSelf,
@@ -26,24 +25,59 @@ function responsiveGridItem(responsiveSettings, theme) {
26
25
  justify-self: ${justifySelf || "stretch"};
27
26
  grid-column: ${gridColumn};
28
27
  grid-row: ${gridRow};
29
- padding: ${getSpacing(p, theme)};
30
- padding-left: ${getSpacing(pl, theme)};
31
- padding-right: ${getSpacing(pr, theme)};
32
- padding-top: ${getSpacing(pt, theme)};
33
- padding-bottom: ${getSpacing(pb, theme)};
28
+ padding: ${getSpacing(p)};
29
+ padding-left: ${getSpacing(pl)};
30
+ padding-right: ${getSpacing(pr)};
31
+ padding-top: ${getSpacing(pt)};
32
+ padding-bottom: ${getSpacing(pb)};
34
33
  }
35
34
  `;
36
35
  });
37
36
  }
38
37
 
39
- function getSpacing(prop, theme) {
40
- if (prop && typeof prop === "number") {
41
- return `${theme.space[prop]}px`;
38
+ export function getSpacing(prop) {
39
+ if (typeof prop === "number") {
40
+ switch (prop) {
41
+ case 0:
42
+ return "var(--spacing000)";
43
+
44
+ case 1:
45
+ return "var(--spacing100)";
46
+
47
+ case 2:
48
+ return "var(--spacing200)";
49
+
50
+ case 3:
51
+ return "var(--spacing300)";
52
+
53
+ case 4:
54
+ return "var(--spacing400)";
55
+
56
+ case 5:
57
+ return "var(--spacing500)";
58
+
59
+ case 6:
60
+ return "var(--spacing600)";
61
+
62
+ case 7:
63
+ return "var(--spacing700)";
64
+
65
+ case 8:
66
+ return "var(--spacing800)";
67
+
68
+ case 9:
69
+ return "var(--spacing900)";
70
+
71
+ case 10:
72
+ return "var(--spacing1000)";
73
+
74
+ default:
75
+ return "var(--spacing100)";
76
+ }
42
77
  }
43
78
 
44
79
  return prop;
45
80
  }
46
-
47
81
  const paddingPropTypes = filterStyledSystemPaddingProps(styledSystemPropTypes.space);
48
82
  const GridItemStyle = styled.div`
49
83
  margin: 0;
@@ -70,10 +104,9 @@ const GridItemStyle = styled.div`
70
104
  gridColumn
71
105
  })}
72
106
  ${({
73
- responsiveSettings,
74
- theme
107
+ responsiveSettings
75
108
  }) => responsiveSettings && css`
76
- ${responsiveGridItem(responsiveSettings, theme)};
109
+ ${responsiveGridItem(responsiveSettings)};
77
110
  `}
78
111
  `;
79
112
  GridItemStyle.propTypes = {
@@ -93,7 +126,6 @@ GridItemStyle.propTypes = {
93
126
  };
94
127
  GridItemStyle.defaultProps = {
95
128
  gridColumn: "1 / 13",
96
- gridRow: "auto",
97
- theme: baseTheme
129
+ gridRow: "auto"
98
130
  };
99
131
  export default GridItemStyle;
@@ -1,23 +1,17 @@
1
1
  import React from "react";
2
2
  import styled from "styled-components";
3
- import { toColor } from "../../../style/utils/color";
4
- import { baseTheme } from "../../../style/themes";
5
3
  const StyledPlaceHolder = styled.div`
6
4
  overflow: hidden;
7
5
  position: relative;
8
6
  height: 152px;
9
7
  min-width: 152px;
10
- background-color: ${({
11
- theme
12
- }) => theme.editorLinkPreview.background};
8
+ background-color: var(--colorsUtilityMajor025);
13
9
  `;
14
10
  const Circle = styled.div`
15
11
  height: 22px;
16
12
  width: 22px;
17
13
  border-radius: 50%;
18
- background-color: ${({
19
- theme
20
- }) => theme.editorLinkPreview.hoverBackground};
14
+ background-color: var(--colorsUtilityMajor100);
21
15
  position: absolute;
22
16
  left: 22px;
23
17
  top: 30px;
@@ -27,9 +21,8 @@ const Square = styled.div`
27
21
  width: 200px;
28
22
  transform: rotate(45deg);
29
23
  background-color: ${({
30
- color,
31
- theme
32
- }) => toColor(theme, color)};
24
+ color
25
+ }) => color};
33
26
  position: absolute;
34
27
  border-radius: 2%;
35
28
  top: ${({
@@ -39,24 +32,15 @@ const Square = styled.div`
39
32
  left
40
33
  }) => left};
41
34
  `;
42
- StyledPlaceHolder.defaultProps = {
43
- theme: baseTheme
44
- };
45
- Circle.defaultProps = {
46
- theme: baseTheme
47
- };
48
- Square.defaultProps = {
49
- theme: baseTheme
50
- };
51
35
 
52
36
  const Placeholder = () => /*#__PURE__*/React.createElement(StyledPlaceHolder, {
53
37
  "data-component": "link preview image placeholder"
54
38
  }, /*#__PURE__*/React.createElement(Circle, null), /*#__PURE__*/React.createElement(Square, {
55
- color: "slateTint90",
39
+ color: "var(--colorsUtilityMajor050)",
56
40
  top: "120px",
57
41
  left: "-64px"
58
42
  }), /*#__PURE__*/React.createElement(Square, {
59
- color: "slateTint75",
43
+ color: "var(--colorsUtilityMajor150)",
60
44
  top: "96px",
61
45
  left: "16px"
62
46
  }));
@@ -1,5 +1,4 @@
1
1
  import styled, { css } from "styled-components";
2
- import { baseTheme } from "../../style/themes";
3
2
  import PreviewBars, { StyledPreview } from "../preview/preview.style";
4
3
  const StyledLinkPreview = styled.a`
5
4
  display: flex;
@@ -8,22 +7,21 @@ const StyledLinkPreview = styled.a`
8
7
  outline: none;
9
8
 
10
9
  ${({
11
- theme,
12
10
  as
13
11
  }) => css`
14
- border: 1px solid ${theme.editorLinkPreview.border};
15
- background-color: ${theme.editorLinkPreview.background};
16
- color: ${theme.text.color};
12
+ border: 1px solid var(--colorsUtilityMajor050);
13
+ background-color: var(--colorsUtilityMajor025);
14
+ color: var(--colorsUtilityYin090);
17
15
 
18
16
  ${as !== "div" && css`
19
17
  :focus {
20
- outline: 2px solid ${theme.colors.focus};
18
+ outline: 2px solid var(--colorsSemanticFocus500);
21
19
  outline-offset: -1px;
22
20
  }
23
21
 
24
22
  :hover {
25
23
  cursor: pointer;
26
- background-color: ${theme.editorLinkPreview.hoverBackground};
24
+ background-color: var(--colorsUtilityMajor100);
27
25
  }
28
26
  `}
29
27
  `}
@@ -81,14 +79,6 @@ const StyledUrl = styled.div`
81
79
  font-weight: 400;
82
80
  font-size: 14px;
83
81
  line-height: 21px;
84
- color: ${({
85
- theme
86
- }) => theme.editorLinkPreview.url};
82
+ color: var(--colorsUtilityMajor400);
87
83
  `;
88
- StyledLinkPreview.defaultProps = {
89
- theme: baseTheme
90
- };
91
- StyledUrl.defaultProps = {
92
- theme: baseTheme
93
- };
94
84
  export { StyledLinkPreview, StyledCloseIconWrapper, StyledPreviewWrapper, StyledTitle, StyledDescription, StyledUrl };
@@ -1,5 +1,4 @@
1
1
  export const PopoverContainerWrapperStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export const PopoverContainerIcon: import("styled-components").StyledComponent<typeof IconButton, any, {}, never>;
3
2
  export const PopoverContainerHeaderStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
4
3
  export const PopoverContainerContentStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
5
4
  export const PopoverContainerCloseIcon: import("styled-components").StyledComponent<typeof IconButton, any, {}, never>;
@@ -7,13 +7,6 @@ const PopoverContainerWrapperStyle = styled.div`
7
7
  position: relative;
8
8
  display: inline-block;
9
9
  `;
10
- const PopoverContainerIcon = styled(IconButton)`
11
- ${StyledIcon} {
12
- color: ${({
13
- theme
14
- }) => theme.popoverContainer.iconColor};
15
- }
16
- `;
17
10
  const PopoverContainerHeaderStyle = styled.div`
18
11
  display: flex;
19
12
  justify-content: space-between;
@@ -23,12 +16,8 @@ const PopoverContainerHeaderStyle = styled.div`
23
16
  const PopoverContainerContentStyle = styled.div`
24
17
  ${padding}
25
18
 
26
- background: ${({
27
- theme
28
- }) => theme.colors.white};
29
- box-shadow: ${({
30
- theme
31
- }) => theme.shadows.depth1};
19
+ background: var(--colorsUtilityYang100);
20
+ box-shadow: var(--boxShadow100);
32
21
  min-width: 300px;
33
22
  position: absolute;
34
23
  z-index: ${({
@@ -74,9 +63,7 @@ const PopoverContainerContentStyle = styled.div`
74
63
  `;
75
64
  const PopoverContainerOpenIcon = styled(IconButton)`
76
65
  ${StyledIcon} {
77
- color: ${({
78
- theme
79
- }) => theme.popoverContainer.iconColor};
66
+ color: var(--colorsActionMinor500);
80
67
  }
81
68
  `;
82
69
  const PopoverContainerCloseIcon = styled(IconButton)`
@@ -85,9 +72,7 @@ const PopoverContainerCloseIcon = styled(IconButton)`
85
72
  right: 24px;
86
73
 
87
74
  ${StyledIcon} {
88
- color: ${({
89
- theme
90
- }) => theme.popoverContainer.iconColor};
75
+ color: var(--colorsActionMinor500);
91
76
  }
92
77
  `;
93
78
  const PopoverContainerTitleStyle = styled.div`
@@ -97,13 +82,4 @@ const PopoverContainerTitleStyle = styled.div`
97
82
  PopoverContainerContentStyle.defaultProps = {
98
83
  theme: baseTheme
99
84
  };
100
- PopoverContainerIcon.defaultProps = {
101
- theme: baseTheme
102
- };
103
- PopoverContainerCloseIcon.defaultProps = {
104
- theme: baseTheme
105
- };
106
- PopoverContainerOpenIcon.defaultProps = {
107
- theme: baseTheme
108
- };
109
- export { PopoverContainerWrapperStyle, PopoverContainerIcon, PopoverContainerHeaderStyle, PopoverContainerContentStyle, PopoverContainerCloseIcon, PopoverContainerTitleStyle, PopoverContainerOpenIcon };
85
+ export { PopoverContainerWrapperStyle, PopoverContainerHeaderStyle, PopoverContainerContentStyle, PopoverContainerCloseIcon, PopoverContainerTitleStyle, PopoverContainerOpenIcon };
@@ -8,9 +8,7 @@ const shimmer = keyframes`
8
8
  `;
9
9
  const PreviewStyle = styled.span`
10
10
  animation: ${shimmer} 2s ease infinite;
11
- background: ${({
12
- theme
13
- }) => theme.colors.previewBackground};
11
+ background: var(--colorsUtilityMajor150);
14
12
  display: block;
15
13
  height: 15px;
16
14
  opacity: 0.6;
@@ -26,7 +24,4 @@ export const StyledPreview = styled.div`
26
24
  StyledPreview.defaultProps = {
27
25
  theme: baseTheme
28
26
  };
29
- PreviewStyle.defaultProps = {
30
- theme: baseTheme
31
- };
32
27
  export default PreviewStyle;
@@ -433,16 +433,6 @@ declare function _default(palette: any): {
433
433
  colorsComponentsMenuYin090: string;
434
434
  colorsComponentsMenuYang100: string;
435
435
  colorsComponentsMenuYang080: string;
436
- colorsComponentsNavigation500: string;
437
- colorsComponentsNavigation600: string;
438
- colorsComponentsNavigation700: string;
439
- colorsComponentsNavigationTransparent: string;
440
- colorsComponentsNavigationYin100: string;
441
- colorsComponentsNavigationYin030: string;
442
- colorsComponentsNavigationYin055: string;
443
- colorsComponentsNavigationYin065: string;
444
- colorsComponentsNavigationYin090: string;
445
- colorsComponentsNavigationYang100: string;
446
436
  colorsUtilityMajor100: string;
447
437
  colorsUtilityMajor150: string;
448
438
  colorsUtilityMajor200: string;
@@ -566,6 +556,7 @@ declare function _default(palette: any): {
566
556
  sizing075: string;
567
557
  sizingLogowidth: string;
568
558
  sizing010: string;
559
+ spacing1000: string;
569
560
  borderWidth100: string;
570
561
  borderWidth200: string;
571
562
  borderWidth300: string;
@@ -610,6 +601,9 @@ declare function _default(palette: any): {
610
601
  typographyButtonLabelS: string;
611
602
  typographyButtonLabelM: string;
612
603
  typographyButtonLabelL: string;
604
+ typographyCardSelectTitleM: string;
605
+ typographyCardSelectSubtitleM: string;
606
+ typographyCardSelectParagraphM: string;
613
607
  typographyDatePickerCalendarDateM: string;
614
608
  typographyDatePickerCalendarDayM: string;
615
609
  typographyDatePickerCalendarMonthM: string;
@@ -70,16 +70,6 @@ declare var _default: {
70
70
  colorsComponentsMenuYin090: string;
71
71
  colorsComponentsMenuYang100: string;
72
72
  colorsComponentsMenuYang080: string;
73
- colorsComponentsNavigation500: string;
74
- colorsComponentsNavigation600: string;
75
- colorsComponentsNavigation700: string;
76
- colorsComponentsNavigationTransparent: string;
77
- colorsComponentsNavigationYin100: string;
78
- colorsComponentsNavigationYin030: string;
79
- colorsComponentsNavigationYin055: string;
80
- colorsComponentsNavigationYin065: string;
81
- colorsComponentsNavigationYin090: string;
82
- colorsComponentsNavigationYang100: string;
83
73
  colorsUtilityMajor100: string;
84
74
  colorsUtilityMajor150: string;
85
75
  colorsUtilityMajor200: string;
@@ -224,6 +214,7 @@ declare var _default: {
224
214
  spacing700: string;
225
215
  spacing800: string;
226
216
  spacing900: string;
217
+ spacing1000: string;
227
218
  spacing000: string;
228
219
  spacing025: string;
229
220
  spacing050: string;
@@ -273,6 +264,9 @@ declare var _default: {
273
264
  typographyButtonLabelS: string;
274
265
  typographyButtonLabelM: string;
275
266
  typographyButtonLabelL: string;
267
+ typographyCardSelectTitleM: string;
268
+ typographyCardSelectSubtitleM: string;
269
+ typographyCardSelectParagraphM: string;
276
270
  typographyDatePickerCalendarDateM: string;
277
271
  typographyDatePickerCalendarDayM: string;
278
272
  typographyDatePickerCalendarMonthM: string;
@@ -22,9 +22,7 @@ exports.StyledDraggableContainer = StyledDraggableContainer;
22
22
  const StyledDraggableItem = _styledComponents.default.div`
23
23
  display: flex;
24
24
  align-items: center;
25
- border-bottom: 1px solid ${({
26
- theme
27
- }) => theme.draggableItem.border};
25
+ border-bottom: 1px solid var(--colorsUtilityMajor050);
28
26
  ${_styledSystem.padding}
29
27
  cursor: move;
30
28
 
@@ -1,2 +1,3 @@
1
+ export function getSpacing(prop: any): any;
1
2
  export default GridItemStyle;
2
3
  declare const GridItemStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.getSpacing = getSpacing;
6
7
  exports.default = void 0;
7
8
 
8
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
@@ -15,8 +16,6 @@ var _space = require("@styled-system/space");
15
16
 
16
17
  var _propTypes2 = _interopRequireDefault(require("prop-types"));
17
18
 
18
- var _themes = require("../../../style/themes");
19
-
20
19
  var _utils = require("../../../style/utils");
21
20
 
22
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -25,7 +24,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
25
24
 
26
25
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
26
 
28
- function responsiveGridItem(responsiveSettings, theme) {
27
+ function responsiveGridItem(responsiveSettings) {
29
28
  return responsiveSettings.map(setting => {
30
29
  const {
31
30
  alignSelf,
@@ -45,19 +44,55 @@ function responsiveGridItem(responsiveSettings, theme) {
45
44
  justify-self: ${justifySelf || "stretch"};
46
45
  grid-column: ${gridColumn};
47
46
  grid-row: ${gridRow};
48
- padding: ${getSpacing(p, theme)};
49
- padding-left: ${getSpacing(pl, theme)};
50
- padding-right: ${getSpacing(pr, theme)};
51
- padding-top: ${getSpacing(pt, theme)};
52
- padding-bottom: ${getSpacing(pb, theme)};
47
+ padding: ${getSpacing(p)};
48
+ padding-left: ${getSpacing(pl)};
49
+ padding-right: ${getSpacing(pr)};
50
+ padding-top: ${getSpacing(pt)};
51
+ padding-bottom: ${getSpacing(pb)};
53
52
  }
54
53
  `;
55
54
  });
56
55
  }
57
56
 
58
- function getSpacing(prop, theme) {
59
- if (prop && typeof prop === "number") {
60
- return `${theme.space[prop]}px`;
57
+ function getSpacing(prop) {
58
+ if (typeof prop === "number") {
59
+ switch (prop) {
60
+ case 0:
61
+ return "var(--spacing000)";
62
+
63
+ case 1:
64
+ return "var(--spacing100)";
65
+
66
+ case 2:
67
+ return "var(--spacing200)";
68
+
69
+ case 3:
70
+ return "var(--spacing300)";
71
+
72
+ case 4:
73
+ return "var(--spacing400)";
74
+
75
+ case 5:
76
+ return "var(--spacing500)";
77
+
78
+ case 6:
79
+ return "var(--spacing600)";
80
+
81
+ case 7:
82
+ return "var(--spacing700)";
83
+
84
+ case 8:
85
+ return "var(--spacing800)";
86
+
87
+ case 9:
88
+ return "var(--spacing900)";
89
+
90
+ case 10:
91
+ return "var(--spacing1000)";
92
+
93
+ default:
94
+ return "var(--spacing100)";
95
+ }
61
96
  }
62
97
 
63
98
  return prop;
@@ -89,10 +124,9 @@ const GridItemStyle = _styledComponents.default.div`
89
124
  gridColumn
90
125
  })}
91
126
  ${({
92
- responsiveSettings,
93
- theme
127
+ responsiveSettings
94
128
  }) => responsiveSettings && (0, _styledComponents.css)`
95
- ${responsiveGridItem(responsiveSettings, theme)};
129
+ ${responsiveGridItem(responsiveSettings)};
96
130
  `}
97
131
  `;
98
132
  GridItemStyle.propTypes = {
@@ -112,8 +146,7 @@ GridItemStyle.propTypes = {
112
146
  };
113
147
  GridItemStyle.defaultProps = {
114
148
  gridColumn: "1 / 13",
115
- gridRow: "auto",
116
- theme: _themes.baseTheme
149
+ gridRow: "auto"
117
150
  };
118
151
  var _default = GridItemStyle;
119
152
  exports.default = _default;
@@ -9,10 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
11
 
12
- var _color = require("../../../style/utils/color");
13
-
14
- var _themes = require("../../../style/themes");
15
-
16
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
13
 
18
14
  const StyledPlaceHolder = _styledComponents.default.div`
@@ -20,17 +16,13 @@ const StyledPlaceHolder = _styledComponents.default.div`
20
16
  position: relative;
21
17
  height: 152px;
22
18
  min-width: 152px;
23
- background-color: ${({
24
- theme
25
- }) => theme.editorLinkPreview.background};
19
+ background-color: var(--colorsUtilityMajor025);
26
20
  `;
27
21
  const Circle = _styledComponents.default.div`
28
22
  height: 22px;
29
23
  width: 22px;
30
24
  border-radius: 50%;
31
- background-color: ${({
32
- theme
33
- }) => theme.editorLinkPreview.hoverBackground};
25
+ background-color: var(--colorsUtilityMajor100);
34
26
  position: absolute;
35
27
  left: 22px;
36
28
  top: 30px;
@@ -40,9 +32,8 @@ const Square = _styledComponents.default.div`
40
32
  width: 200px;
41
33
  transform: rotate(45deg);
42
34
  background-color: ${({
43
- color,
44
- theme
45
- }) => (0, _color.toColor)(theme, color)};
35
+ color
36
+ }) => color};
46
37
  position: absolute;
47
38
  border-radius: 2%;
48
39
  top: ${({
@@ -52,24 +43,15 @@ const Square = _styledComponents.default.div`
52
43
  left
53
44
  }) => left};
54
45
  `;
55
- StyledPlaceHolder.defaultProps = {
56
- theme: _themes.baseTheme
57
- };
58
- Circle.defaultProps = {
59
- theme: _themes.baseTheme
60
- };
61
- Square.defaultProps = {
62
- theme: _themes.baseTheme
63
- };
64
46
 
65
47
  const Placeholder = () => /*#__PURE__*/_react.default.createElement(StyledPlaceHolder, {
66
48
  "data-component": "link preview image placeholder"
67
49
  }, /*#__PURE__*/_react.default.createElement(Circle, null), /*#__PURE__*/_react.default.createElement(Square, {
68
- color: "slateTint90",
50
+ color: "var(--colorsUtilityMajor050)",
69
51
  top: "120px",
70
52
  left: "-64px"
71
53
  }), /*#__PURE__*/_react.default.createElement(Square, {
72
- color: "slateTint75",
54
+ color: "var(--colorsUtilityMajor150)",
73
55
  top: "96px",
74
56
  left: "16px"
75
57
  }));
@@ -7,8 +7,6 @@ exports.StyledUrl = exports.StyledDescription = exports.StyledTitle = exports.St
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _themes = require("../../style/themes");
11
-
12
10
  var _preview = _interopRequireWildcard(require("../preview/preview.style"));
13
11
 
14
12
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -22,22 +20,21 @@ const StyledLinkPreview = _styledComponents.default.a`
22
20
  outline: none;
23
21
 
24
22
  ${({
25
- theme,
26
23
  as
27
24
  }) => (0, _styledComponents.css)`
28
- border: 1px solid ${theme.editorLinkPreview.border};
29
- background-color: ${theme.editorLinkPreview.background};
30
- color: ${theme.text.color};
25
+ border: 1px solid var(--colorsUtilityMajor050);
26
+ background-color: var(--colorsUtilityMajor025);
27
+ color: var(--colorsUtilityYin090);
31
28
 
32
29
  ${as !== "div" && (0, _styledComponents.css)`
33
30
  :focus {
34
- outline: 2px solid ${theme.colors.focus};
31
+ outline: 2px solid var(--colorsSemanticFocus500);
35
32
  outline-offset: -1px;
36
33
  }
37
34
 
38
35
  :hover {
39
36
  cursor: pointer;
40
- background-color: ${theme.editorLinkPreview.hoverBackground};
37
+ background-color: var(--colorsUtilityMajor100);
41
38
  }
42
39
  `}
43
40
  `}
@@ -100,14 +97,6 @@ const StyledUrl = _styledComponents.default.div`
100
97
  font-weight: 400;
101
98
  font-size: 14px;
102
99
  line-height: 21px;
103
- color: ${({
104
- theme
105
- }) => theme.editorLinkPreview.url};
100
+ color: var(--colorsUtilityMajor400);
106
101
  `;
107
- exports.StyledUrl = StyledUrl;
108
- StyledLinkPreview.defaultProps = {
109
- theme: _themes.baseTheme
110
- };
111
- StyledUrl.defaultProps = {
112
- theme: _themes.baseTheme
113
- };
102
+ exports.StyledUrl = StyledUrl;
@@ -1,5 +1,4 @@
1
1
  export const PopoverContainerWrapperStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export const PopoverContainerIcon: import("styled-components").StyledComponent<typeof IconButton, any, {}, never>;
3
2
  export const PopoverContainerHeaderStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
4
3
  export const PopoverContainerContentStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
5
4
  export const PopoverContainerCloseIcon: import("styled-components").StyledComponent<typeof IconButton, any, {}, never>;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.PopoverContainerOpenIcon = exports.PopoverContainerTitleStyle = exports.PopoverContainerCloseIcon = exports.PopoverContainerContentStyle = exports.PopoverContainerHeaderStyle = exports.PopoverContainerIcon = exports.PopoverContainerWrapperStyle = void 0;
6
+ exports.PopoverContainerOpenIcon = exports.PopoverContainerTitleStyle = exports.PopoverContainerCloseIcon = exports.PopoverContainerContentStyle = exports.PopoverContainerHeaderStyle = exports.PopoverContainerWrapperStyle = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
@@ -22,14 +22,6 @@ const PopoverContainerWrapperStyle = _styledComponents.default.div`
22
22
  display: inline-block;
23
23
  `;
24
24
  exports.PopoverContainerWrapperStyle = PopoverContainerWrapperStyle;
25
- const PopoverContainerIcon = (0, _styledComponents.default)(_iconButton.default)`
26
- ${_icon.default} {
27
- color: ${({
28
- theme
29
- }) => theme.popoverContainer.iconColor};
30
- }
31
- `;
32
- exports.PopoverContainerIcon = PopoverContainerIcon;
33
25
  const PopoverContainerHeaderStyle = _styledComponents.default.div`
34
26
  display: flex;
35
27
  justify-content: space-between;
@@ -40,12 +32,8 @@ exports.PopoverContainerHeaderStyle = PopoverContainerHeaderStyle;
40
32
  const PopoverContainerContentStyle = _styledComponents.default.div`
41
33
  ${_styledSystem.padding}
42
34
 
43
- background: ${({
44
- theme
45
- }) => theme.colors.white};
46
- box-shadow: ${({
47
- theme
48
- }) => theme.shadows.depth1};
35
+ background: var(--colorsUtilityYang100);
36
+ box-shadow: var(--boxShadow100);
49
37
  min-width: 300px;
50
38
  position: absolute;
51
39
  z-index: ${({
@@ -92,9 +80,7 @@ const PopoverContainerContentStyle = _styledComponents.default.div`
92
80
  exports.PopoverContainerContentStyle = PopoverContainerContentStyle;
93
81
  const PopoverContainerOpenIcon = (0, _styledComponents.default)(_iconButton.default)`
94
82
  ${_icon.default} {
95
- color: ${({
96
- theme
97
- }) => theme.popoverContainer.iconColor};
83
+ color: var(--colorsActionMinor500);
98
84
  }
99
85
  `;
100
86
  exports.PopoverContainerOpenIcon = PopoverContainerOpenIcon;
@@ -104,9 +90,7 @@ const PopoverContainerCloseIcon = (0, _styledComponents.default)(_iconButton.def
104
90
  right: 24px;
105
91
 
106
92
  ${_icon.default} {
107
- color: ${({
108
- theme
109
- }) => theme.popoverContainer.iconColor};
93
+ color: var(--colorsActionMinor500);
110
94
  }
111
95
  `;
112
96
  exports.PopoverContainerCloseIcon = PopoverContainerCloseIcon;
@@ -117,13 +101,4 @@ const PopoverContainerTitleStyle = _styledComponents.default.div`
117
101
  exports.PopoverContainerTitleStyle = PopoverContainerTitleStyle;
118
102
  PopoverContainerContentStyle.defaultProps = {
119
103
  theme: _themes.baseTheme
120
- };
121
- PopoverContainerIcon.defaultProps = {
122
- theme: _themes.baseTheme
123
- };
124
- PopoverContainerCloseIcon.defaultProps = {
125
- theme: _themes.baseTheme
126
- };
127
- PopoverContainerOpenIcon.defaultProps = {
128
- theme: _themes.baseTheme
129
104
  };
@@ -24,9 +24,7 @@ const shimmer = (0, _styledComponents.keyframes)`
24
24
  `;
25
25
  const PreviewStyle = _styledComponents.default.span`
26
26
  animation: ${shimmer} 2s ease infinite;
27
- background: ${({
28
- theme
29
- }) => theme.colors.previewBackground};
27
+ background: var(--colorsUtilityMajor150);
30
28
  display: block;
31
29
  height: 15px;
32
30
  opacity: 0.6;
@@ -43,8 +41,5 @@ exports.StyledPreview = StyledPreview;
43
41
  StyledPreview.defaultProps = {
44
42
  theme: _base.default
45
43
  };
46
- PreviewStyle.defaultProps = {
47
- theme: _base.default
48
- };
49
44
  var _default = PreviewStyle;
50
45
  exports.default = _default;
@@ -433,16 +433,6 @@ declare function _default(palette: any): {
433
433
  colorsComponentsMenuYin090: string;
434
434
  colorsComponentsMenuYang100: string;
435
435
  colorsComponentsMenuYang080: string;
436
- colorsComponentsNavigation500: string;
437
- colorsComponentsNavigation600: string;
438
- colorsComponentsNavigation700: string;
439
- colorsComponentsNavigationTransparent: string;
440
- colorsComponentsNavigationYin100: string;
441
- colorsComponentsNavigationYin030: string;
442
- colorsComponentsNavigationYin055: string;
443
- colorsComponentsNavigationYin065: string;
444
- colorsComponentsNavigationYin090: string;
445
- colorsComponentsNavigationYang100: string;
446
436
  colorsUtilityMajor100: string;
447
437
  colorsUtilityMajor150: string;
448
438
  colorsUtilityMajor200: string;
@@ -566,6 +556,7 @@ declare function _default(palette: any): {
566
556
  sizing075: string;
567
557
  sizingLogowidth: string;
568
558
  sizing010: string;
559
+ spacing1000: string;
569
560
  borderWidth100: string;
570
561
  borderWidth200: string;
571
562
  borderWidth300: string;
@@ -610,6 +601,9 @@ declare function _default(palette: any): {
610
601
  typographyButtonLabelS: string;
611
602
  typographyButtonLabelM: string;
612
603
  typographyButtonLabelL: string;
604
+ typographyCardSelectTitleM: string;
605
+ typographyCardSelectSubtitleM: string;
606
+ typographyCardSelectParagraphM: string;
613
607
  typographyDatePickerCalendarDateM: string;
614
608
  typographyDatePickerCalendarDayM: string;
615
609
  typographyDatePickerCalendarMonthM: string;
@@ -70,16 +70,6 @@ declare var _default: {
70
70
  colorsComponentsMenuYin090: string;
71
71
  colorsComponentsMenuYang100: string;
72
72
  colorsComponentsMenuYang080: string;
73
- colorsComponentsNavigation500: string;
74
- colorsComponentsNavigation600: string;
75
- colorsComponentsNavigation700: string;
76
- colorsComponentsNavigationTransparent: string;
77
- colorsComponentsNavigationYin100: string;
78
- colorsComponentsNavigationYin030: string;
79
- colorsComponentsNavigationYin055: string;
80
- colorsComponentsNavigationYin065: string;
81
- colorsComponentsNavigationYin090: string;
82
- colorsComponentsNavigationYang100: string;
83
73
  colorsUtilityMajor100: string;
84
74
  colorsUtilityMajor150: string;
85
75
  colorsUtilityMajor200: string;
@@ -224,6 +214,7 @@ declare var _default: {
224
214
  spacing700: string;
225
215
  spacing800: string;
226
216
  spacing900: string;
217
+ spacing1000: string;
227
218
  spacing000: string;
228
219
  spacing025: string;
229
220
  spacing050: string;
@@ -273,6 +264,9 @@ declare var _default: {
273
264
  typographyButtonLabelS: string;
274
265
  typographyButtonLabelM: string;
275
266
  typographyButtonLabelL: string;
267
+ typographyCardSelectTitleM: string;
268
+ typographyCardSelectSubtitleM: string;
269
+ typographyCardSelectParagraphM: string;
276
270
  typographyDatePickerCalendarDateM: string;
277
271
  typographyDatePickerCalendarDayM: string;
278
272
  typographyDatePickerCalendarMonthM: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.38.2",
3
+ "version": "104.41.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {
@@ -157,7 +157,7 @@
157
157
  "dependencies": {
158
158
  "@octokit/rest": "^18.12.0",
159
159
  "@popperjs/core": "^2.9.0",
160
- "@sage/design-tokens": "^1.92.0",
160
+ "@sage/design-tokens": "^1.93.0",
161
161
  "@styled-system/prop-types": "^5.1.5",
162
162
  "@tippyjs/react": "^4.2.5",
163
163
  "@types/styled-system": "^5.1.11",