carbon-react 118.1.1 → 118.2.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.
Files changed (180) hide show
  1. package/esm/__internal__/input/input-presentation.style.js +1 -0
  2. package/esm/__internal__/input/input.style.js +1 -0
  3. package/esm/components/action-popover/action-popover.style.js +3 -0
  4. package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
  5. package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
  6. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
  7. package/esm/components/badge/badge.style.js +1 -1
  8. package/esm/components/batch-selection/batch-selection.style.js +6 -0
  9. package/esm/components/box/box.component.d.ts +3 -0
  10. package/esm/components/box/box.component.js +4 -0
  11. package/esm/components/button/button.style.js +10 -9
  12. package/esm/components/button-bar/button-bar.style.js +19 -0
  13. package/esm/components/button-minor/button-minor.style.js +42 -40
  14. package/esm/components/button-toggle/button-toggle.component.js +2 -1
  15. package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
  16. package/esm/components/button-toggle/button-toggle.style.js +31 -13
  17. package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
  18. package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
  19. package/esm/components/card/__internal__/card-context/index.js +2 -0
  20. package/esm/components/card/card-footer/card-footer.component.js +9 -2
  21. package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
  22. package/esm/components/card/card-footer/card-footer.style.js +10 -1
  23. package/esm/components/card/card.component.d.ts +3 -2
  24. package/esm/components/card/card.component.js +10 -1
  25. package/esm/components/card/card.style.d.ts +2 -1
  26. package/esm/components/card/card.style.js +3 -1
  27. package/esm/components/carousel/carousel.component.js +1 -1
  28. package/esm/components/carousel/carousel.style.js +4 -2
  29. package/esm/components/carousel/slide/slide.style.js +2 -0
  30. package/esm/components/checkbox/checkbox.style.js +2 -0
  31. package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
  32. package/esm/components/date/__internal__/navbar/button.style.js +2 -0
  33. package/esm/components/dialog/dialog.style.js +5 -0
  34. package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
  35. package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
  36. package/esm/components/drawer/drawer.style.js +1 -0
  37. package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
  38. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
  39. package/esm/components/flat-table/flat-table.component.js +56 -2
  40. package/esm/components/flat-table/flat-table.style.js +101 -1
  41. package/esm/components/flat-table/sort/sort.style.js +1 -0
  42. package/esm/components/icon-button/icon-button.style.js +1 -0
  43. package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
  44. package/esm/components/link/link.style.js +1 -0
  45. package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
  46. package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
  47. package/esm/components/link-preview/link-preview.style.js +1 -0
  48. package/esm/components/loader/loader-square.style.js +5 -0
  49. package/esm/components/loader-bar/loader-bar.style.js +1 -0
  50. package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
  51. package/esm/components/menu/menu.style.js +13 -6
  52. package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
  53. package/esm/components/message/message.style.js +2 -0
  54. package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
  55. package/esm/components/note/note.style.js +1 -0
  56. package/esm/components/numeral-date/numeral-date.component.js +2 -0
  57. package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
  58. package/esm/components/numeral-date/numeral-date.style.js +12 -0
  59. package/esm/components/pager/pager.style.js +2 -0
  60. package/esm/components/pill/pill.style.js +5 -15
  61. package/esm/components/pod/pod.style.js +6 -0
  62. package/esm/components/popover-container/popover-container.style.js +1 -0
  63. package/esm/components/portrait/portrait-gravatar.component.js +1 -1
  64. package/esm/components/portrait/portrait-initials.component.js +1 -1
  65. package/esm/components/portrait/portrait.component.js +1 -1
  66. package/esm/components/portrait/portrait.style.js +1 -3
  67. package/esm/components/profile/profile.component.js +1 -1
  68. package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
  69. package/esm/components/radio-button/radio-button.style.js +1 -1
  70. package/esm/components/search/search-button.style.js +5 -0
  71. package/esm/components/search/search.style.js +7 -0
  72. package/esm/components/select/select-list/select-list-container.style.js +1 -0
  73. package/esm/components/split-button/split-button-children.style.d.ts +1 -0
  74. package/esm/components/split-button/split-button-children.style.js +28 -0
  75. package/esm/components/split-button/split-button-toggle.style.js +6 -1
  76. package/esm/components/split-button/split-button.style.js +5 -2
  77. package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
  78. package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
  79. package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
  80. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
  81. package/esm/components/text-editor/text-editor.style.js +3 -0
  82. package/esm/components/tile/tile.component.d.ts +3 -1
  83. package/esm/components/tile/tile.component.js +3 -1
  84. package/esm/components/tile/tile.style.d.ts +1 -1
  85. package/esm/components/tile/tile.style.js +4 -1
  86. package/esm/components/tile-select/tile-select.style.d.ts +1 -0
  87. package/esm/components/tile-select/tile-select.style.js +8 -0
  88. package/esm/components/tooltip/tooltip.style.js +1 -0
  89. package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
  90. package/lib/__internal__/input/input-presentation.style.js +1 -0
  91. package/lib/__internal__/input/input.style.js +1 -0
  92. package/lib/components/action-popover/action-popover.style.js +3 -0
  93. package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
  94. package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
  95. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
  96. package/lib/components/badge/badge.style.js +1 -1
  97. package/lib/components/batch-selection/batch-selection.style.js +6 -0
  98. package/lib/components/box/box.component.d.ts +3 -0
  99. package/lib/components/box/box.component.js +4 -0
  100. package/lib/components/button/button.style.js +10 -9
  101. package/lib/components/button-bar/button-bar.style.js +19 -0
  102. package/lib/components/button-minor/button-minor.style.js +42 -40
  103. package/lib/components/button-toggle/button-toggle.component.js +2 -1
  104. package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
  105. package/lib/components/button-toggle/button-toggle.style.js +31 -13
  106. package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
  107. package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
  108. package/lib/components/card/__internal__/card-context/index.js +14 -0
  109. package/lib/components/card/__internal__/card-context/package.json +6 -0
  110. package/lib/components/card/card-footer/card-footer.component.js +14 -2
  111. package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
  112. package/lib/components/card/card-footer/card-footer.style.js +10 -1
  113. package/lib/components/card/card.component.d.ts +3 -2
  114. package/lib/components/card/card.component.js +11 -1
  115. package/lib/components/card/card.style.d.ts +2 -1
  116. package/lib/components/card/card.style.js +3 -1
  117. package/lib/components/carousel/carousel.component.js +1 -1
  118. package/lib/components/carousel/carousel.style.js +4 -2
  119. package/lib/components/carousel/slide/slide.style.js +2 -0
  120. package/lib/components/checkbox/checkbox.style.js +2 -0
  121. package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
  122. package/lib/components/date/__internal__/navbar/button.style.js +2 -0
  123. package/lib/components/dialog/dialog.style.js +5 -0
  124. package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
  125. package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
  126. package/lib/components/drawer/drawer.style.js +1 -0
  127. package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
  128. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
  129. package/lib/components/flat-table/flat-table.component.js +60 -2
  130. package/lib/components/flat-table/flat-table.style.js +102 -1
  131. package/lib/components/flat-table/sort/sort.style.js +1 -0
  132. package/lib/components/icon-button/icon-button.style.js +1 -0
  133. package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
  134. package/lib/components/link/link.style.js +1 -0
  135. package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
  136. package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
  137. package/lib/components/link-preview/link-preview.style.js +1 -0
  138. package/lib/components/loader/loader-square.style.js +5 -0
  139. package/lib/components/loader-bar/loader-bar.style.js +1 -0
  140. package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
  141. package/lib/components/menu/menu.style.js +13 -6
  142. package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
  143. package/lib/components/message/message.style.js +2 -0
  144. package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
  145. package/lib/components/note/note.style.js +1 -0
  146. package/lib/components/numeral-date/numeral-date.component.js +2 -0
  147. package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
  148. package/lib/components/numeral-date/numeral-date.style.js +12 -0
  149. package/lib/components/pager/pager.style.js +2 -0
  150. package/lib/components/pill/pill.style.js +5 -15
  151. package/lib/components/pod/pod.style.js +6 -0
  152. package/lib/components/popover-container/popover-container.style.js +1 -0
  153. package/lib/components/portrait/portrait-gravatar.component.js +1 -1
  154. package/lib/components/portrait/portrait-initials.component.js +1 -1
  155. package/lib/components/portrait/portrait.component.js +1 -1
  156. package/lib/components/portrait/portrait.style.js +1 -3
  157. package/lib/components/profile/profile.component.js +1 -1
  158. package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
  159. package/lib/components/radio-button/radio-button.style.js +1 -1
  160. package/lib/components/search/search-button.style.js +5 -0
  161. package/lib/components/search/search.style.js +7 -0
  162. package/lib/components/select/select-list/select-list-container.style.js +1 -0
  163. package/lib/components/split-button/split-button-children.style.d.ts +1 -0
  164. package/lib/components/split-button/split-button-children.style.js +30 -1
  165. package/lib/components/split-button/split-button-toggle.style.js +6 -1
  166. package/lib/components/split-button/split-button.style.js +5 -2
  167. package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
  168. package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
  169. package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
  170. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
  171. package/lib/components/text-editor/text-editor.style.js +3 -0
  172. package/lib/components/tile/tile.component.d.ts +3 -1
  173. package/lib/components/tile/tile.component.js +3 -1
  174. package/lib/components/tile/tile.style.d.ts +1 -1
  175. package/lib/components/tile/tile.style.js +4 -1
  176. package/lib/components/tile-select/tile-select.style.d.ts +1 -0
  177. package/lib/components/tile-select/tile-select.style.js +8 -0
  178. package/lib/components/tooltip/tooltip.style.js +1 -0
  179. package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
  180. package/package.json +1 -1
@@ -35,7 +35,7 @@ const Portrait = ({
35
35
  gravatar,
36
36
  iconType = "individual",
37
37
  initials,
38
- shape = "square",
38
+ shape = "circle",
39
39
  size = "M",
40
40
  src,
41
41
  onClick,
@@ -47,7 +47,7 @@ function stylingForShape({
47
47
  }) {
48
48
  let cssString = "overflow: hidden;";
49
49
  if (shape === "square") cssString += "border-radius: 0px;";
50
- if (shape === "circle") cssString += "border-radius: 50%;";
50
+ if (shape === "circle") cssString += "border-radius: var(--borderRadiusCircle);";
51
51
  return (0, _styledComponents.css)`
52
52
  ${cssString}
53
53
  `;
@@ -69,7 +69,6 @@ function stylingForIcon({
69
69
  return (0, _styledComponents.css)`
70
70
  background-color: ${backgroundColor};
71
71
  color: ${color};
72
-
73
72
  ::before {
74
73
  font-size: ${params === null || params === void 0 ? void 0 : params.iconDimensions}px;
75
74
  }
@@ -90,7 +89,6 @@ const StyledPortraitInitials = _styledComponents.default.div`
90
89
  ${stylingForSize}
91
90
  ${stylingForShape}
92
91
  outline: 1px solid var(--colorsUtilityMajor200);
93
-
94
92
  /* Styling for safari. This ensures that there is no outline on the component but that a border is still present
95
93
  to achieve the same styling as Chrome and Firefox */
96
94
  @media not all and (min-resolution: 0.001dpcm) {
@@ -47,7 +47,7 @@ const Profile = ({
47
47
  alt: getInitials(),
48
48
  initials: getInitials(),
49
49
  size: size,
50
- shape: "square",
50
+ shape: "circle",
51
51
  "data-element": "user-image"
52
52
  });
53
53
  }
@@ -73,7 +73,7 @@ const StyledProgressBar = _styledComponents.default.span`
73
73
  progress,
74
74
  error
75
75
  })};
76
- border-radius: 25px;
76
+ border-radius: var(--borderRadius400);
77
77
  overflow-x: hidden;
78
78
  height: ${getHeight(size)};
79
79
  width: 100%;
@@ -124,7 +124,7 @@ const InnerBar = _styledComponents.default.span`
124
124
  progress,
125
125
  error
126
126
  })};
127
- border-radius: 25px;
127
+ border-radius: var(--borderRadius400);
128
128
  width: calc(${length} * ${progress && progress / 100});
129
129
  min-width: 2px;
130
130
  height: ${getHeight(size)};
@@ -54,7 +54,7 @@ const RadioButtonStyle = (0, _styledComponents.default)(_checkbox.default)`
54
54
  }
55
55
 
56
56
  ${_checkableInputSvgWrapper.default}, svg {
57
- border-radius: 50%;
57
+ border-radius: var(--borderRadiusCircle);
58
58
  }
59
59
 
60
60
  ${_checkableInput.StyledCheckableInput},
@@ -29,6 +29,11 @@ const StyledSearchButton = _styledComponents.default.div`
29
29
  & ${_button.default} {
30
30
  background-color: var(--colorsActionMajor500);
31
31
  border-color: var(--colorsActionMajorTransparent);
32
+ border-bottom-left-radius: var(--borderRadius000);
33
+ border-top-left-radius: var(--borderRadius000);
34
+ border-bottom-right-radius: var(--borderRadius050);
35
+ border-top-right-radius: var(--borderRadius050);
36
+
32
37
  :hover {
33
38
  background: var(--colorsActionMajor600);
34
39
  border-color: var(--colorsActionMajorTransparent);
@@ -73,6 +73,7 @@ const StyledSearch = _styledComponents.default.div`
73
73
  }
74
74
  `}
75
75
 
76
+
76
77
  ${_input.default} {
77
78
  ::-moz-placeholder {
78
79
  color: var(--colorsUtilityYin055);
@@ -99,6 +100,12 @@ const StyledSearch = _styledComponents.default.div`
99
100
 
100
101
  ${_inputPresentation.default} {
101
102
  background-color: ${searchHasValue || isFocused ? "var(--colorsUtilityYang100)" : "transparent"};
103
+
104
+ ${showSearchButton && (0, _styledComponents.css)`
105
+ border-top-right-radius: var(--borderRadius000);
106
+ border-bottom-right-radius: var(--borderRadius000);
107
+ `}
108
+
102
109
  flex: 1;
103
110
  font-size: 14px;
104
111
  font-weight: 700;
@@ -26,6 +26,7 @@ const StyledSelectListContainer = _styledComponents.default.div`
26
26
  display: flex;
27
27
  flex-wrap: wrap;
28
28
  align-items: flex-start;
29
+ border-radius: var(--borderRadius050);
29
30
 
30
31
  ${({
31
32
  isLoading
@@ -1,4 +1,5 @@
1
1
  import { ThemeObject } from "../../style/themes/base";
2
+ export declare const borderRadiusStyling = "\n > {\n &:first-child:last-child {\n border-radius: var(--borderRadius100);\n }\n\n &:first-child:not(:last-child) {\n border-top-left-radius: var(--borderRadius100);\n border-top-right-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius000);\n }\n\n &:not(:first-child):not(:last-child) {\n border-radius: var(--borderRadius000);\n }\n\n &:last-child:not(:first-child) {\n border-top-right-radius: var(--borderRadius000);\n border-top-left-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius100);\n }\n }\n";
2
3
  declare type StyledSplitButtonChildrenContainerProps = {
3
4
  theme: ThemeObject;
4
5
  align: "left" | "right";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = exports.borderRadiusStyling = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
@@ -17,7 +17,34 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
17
17
 
18
18
  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; }
19
19
 
20
+ const borderRadiusStyling = `
21
+ > {
22
+ &:first-child:last-child {
23
+ border-radius: var(--borderRadius100);
24
+ }
25
+
26
+ &:first-child:not(:last-child) {
27
+ border-top-left-radius: var(--borderRadius100);
28
+ border-top-right-radius: var(--borderRadius100);
29
+ border-bottom-right-radius: var(--borderRadius000);
30
+ border-bottom-left-radius: var(--borderRadius000);
31
+ }
32
+
33
+ &:not(:first-child):not(:last-child) {
34
+ border-radius: var(--borderRadius000);
35
+ }
36
+
37
+ &:last-child:not(:first-child) {
38
+ border-top-right-radius: var(--borderRadius000);
39
+ border-top-left-radius: var(--borderRadius000);
40
+ border-bottom-left-radius: var(--borderRadius100);
41
+ border-bottom-right-radius: var(--borderRadius100);
42
+ }
43
+ }
44
+ `;
45
+ exports.borderRadiusStyling = borderRadiusStyling;
20
46
  const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
47
+ border-radius: var(--borderRadius100);
21
48
  ${({
22
49
  theme,
23
50
  align,
@@ -29,6 +56,8 @@ const StyledSplitButtonChildrenContainer = _styledComponents.default.div`
29
56
  z-index: ${theme.zIndex.popover};
30
57
  box-shadow: var(--boxShadow100);
31
58
 
59
+ ${borderRadiusStyling}
60
+
32
61
  ${_button.default} {
33
62
  border: 1px solid var(--colorsActionMajorTransparent);
34
63
  display: block;
@@ -29,6 +29,9 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
29
29
  displayed,
30
30
  size
31
31
  }) => (0, _styledComponents.css)`
32
+ border-top-left-radius: var(--borderRadius000);
33
+ border-bottom-left-radius: var(--borderRadius000);
34
+
32
35
  ${!disabled && displayed ? (0, _styledComponents.css)`
33
36
  background-color: var(--colorsActionMajor500);
34
37
  border-color: var(--colorsActionMajor500);
@@ -42,7 +45,8 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
42
45
  border-left-color: var(--colorsSemanticFocus500);
43
46
  }
44
47
  ` : ""}
45
- ${!disabled && buttonType === "primary" && `position: relative;
48
+ ${!disabled && buttonType === "primary" && `
49
+ position: relative;
46
50
  &::before {
47
51
  content: '';
48
52
  width: 2px;
@@ -53,6 +57,7 @@ const StyledSplitButtonToggle = (0, _styledComponents.default)(_button.default)`
53
57
  z-index: 2;
54
58
  }
55
59
  `}
60
+
56
61
  ${buttonType === "secondary" && "border-left-width: 0;"}
57
62
  padding: 0 ${horizontalPaddingSizes[size]}px;
58
63
 
@@ -17,13 +17,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  const StyledSplitButton = _styledComponents.default.div`
19
19
  ${_styledSystem.margin}
20
-
21
20
  display: inline-block;
22
21
  position: relative;
23
22
 
23
+ ${_button.default}:first-of-type {
24
+ border-top-right-radius: var(--borderRadius000);
25
+ border-bottom-right-radius: var(--borderRadius000);
26
+ }
27
+
24
28
  & > ${_button.default} {
25
29
  margin: 0;
26
-
27
30
  &:focus {
28
31
  border: 3px solid var(--colorsSemanticFocus500);
29
32
  outline: none;
@@ -38,7 +38,7 @@ const StyledSwitchSlider = _styledComponents.default.span`
38
38
  width: 64px;
39
39
  min-width: fit-content;
40
40
  z-index: 2;
41
- border-radius: 90px;
41
+ border-radius: var(--borderRadius400);
42
42
  border-style: solid;
43
43
  border-color: var(--colorsActionMinor400);
44
44
  border-width: var(--borderWidth200);
@@ -92,7 +92,6 @@ const StyledSwitchSlider = _styledComponents.default.span`
92
92
  `}
93
93
 
94
94
  ${size === "large" && (0, _styledComponents.css)`
95
- border-radius: 30px;
96
95
  &::before {
97
96
  height: 32px;
98
97
  width: 32px;
@@ -45,6 +45,17 @@ const StyledTitleContent = _styledComponents.default.span`
45
45
  display: flex;
46
46
  width: 100%;
47
47
  justify-content: ${align === "right" ? "flex-end" : "flex-start"};
48
+ border-top-left-radius: var(--borderRadius100);
49
+ border-bottom-left-radius: var(--borderRadius100);
50
+ border-bottom-right-radius: var(--borderRadius000);
51
+ border-top-right-radius: var(--borderRadius000);
52
+ `}
53
+
54
+ ${position === "top" && (0, _styledComponents.css)`
55
+ border-top-left-radius: var(--borderRadius100);
56
+ border-top-right-radius: var(--borderRadius100);
57
+ border-bottom-right-radius: var(--borderRadius000);
58
+ border-bottom-left-radius: var(--borderRadius000);
48
59
  `}
49
60
 
50
61
  ${hasHref && (0, _styledComponents.css)`
@@ -105,8 +116,7 @@ const StyledTitleContent = _styledComponents.default.span`
105
116
  padding: 10px 16px;
106
117
 
107
118
  ${borders && `padding-bottom: 9px;`}
108
- `}
109
-
119
+ `}
110
120
 
111
121
  ${(warning || info) && (0, _styledComponents.css)`
112
122
  outline: 1px solid;
@@ -225,6 +235,8 @@ exports.StyledTitleContent = StyledTitleContent;
225
235
  const tabTitleStyles = (0, _styledComponents.css)`
226
236
  background-color: transparent;
227
237
  display: inline-block;
238
+ border-top-left-radius: var(--borderRadius100);
239
+ border-top-right-radius: var(--borderRadius100);
228
240
  font-weight: bold;
229
241
  position: relative;
230
242
  border: none;
@@ -238,6 +250,14 @@ const tabTitleStyles = (0, _styledComponents.css)`
238
250
  position
239
251
  }) => position === "top" && "white-space: nowrap"};
240
252
 
253
+ ${({
254
+ position
255
+ }) => (0, _styledComponents.css)`
256
+ ${position === "left" && (0, _styledComponents.css)`
257
+ border-top-right-radius: var(--borderRadius000);
258
+ `}
259
+ `}
260
+
241
261
  a:visited {
242
262
  color: inherit;
243
263
  }
@@ -25,6 +25,11 @@ const StyledTabsHeaderWrapper = _styledComponents.default.div`
25
25
  box-sizing: border-box;
26
26
  padding: 3px;
27
27
 
28
+ button[data-element="select-tab"] {
29
+ border-top-left-radius: var(--borderRadius100);
30
+ border-bottom-left-radius: var(--borderRadius100);
31
+ }
32
+
28
33
  ${!isInSidebar && (0, _styledComponents.css)`
29
34
  min-width: 20%;
30
35
  `}
@@ -19,6 +19,7 @@ const StyledToolbarButton = _styledComponents.default.button.attrs({
19
19
  type: "button"
20
20
  })`
21
21
  background-color: inherit;
22
+ border-radius: var(--borderRadius050);
22
23
  border: none;
23
24
  cursor: pointer;
24
25
  width: 32px;
@@ -36,10 +37,12 @@ const StyledToolbarButton = _styledComponents.default.button.attrs({
36
37
  :active {
37
38
  outline: 2px solid var(--colorsSemanticFocus500);
38
39
  outline-offset: -2px;
40
+ border-radius: var(--borderRadius050);
39
41
  }
40
42
 
41
43
  :hover {
42
44
  background-color: var(--colorsActionMinor200);
45
+ border-radius: var(--borderRadius050);
43
46
  }
44
47
 
45
48
  ${isActive && (0, _styledComponents.css)`
@@ -28,6 +28,8 @@ StyledEditorWrapper.defaultProps = {
28
28
  theme: _base.default
29
29
  };
30
30
  const StyledEditorContainer = _styledComponents.default.div`
31
+ border-radius: var(--borderRadius050);
32
+
31
33
  ${({
32
34
  hasError,
33
35
  rows,
@@ -79,6 +81,7 @@ const StyledEditorOutline = _styledComponents.default.div`
79
81
  isFocused,
80
82
  hasError
81
83
  }) => (0, _styledComponents.css)`
84
+ border-radius: var(--borderRadius050);
82
85
  outline: none;
83
86
  min-width: 320px;
84
87
 
@@ -24,6 +24,8 @@ export interface TileProps extends SpaceProps, WidthProps {
24
24
  borderWidth?: Extract<DesignTokensType, `borderWidth${string}`>;
25
25
  /** Sets the border variant that should be used */
26
26
  borderVariant?: "default" | "selected" | "positive" | "negative" | "caution" | "info";
27
+ /** Sets the level of roundness of the corners, "default" is 8px and "large" is 16px */
28
+ roundness?: "default" | "large";
27
29
  }
28
- export declare const Tile: ({ variant, p, children, orientation, width, ...props }: TileProps) => JSX.Element;
30
+ export declare const Tile: ({ variant, p, children, orientation, width, roundness, ...props }: TileProps) => JSX.Element;
29
31
  export default Tile;
@@ -21,6 +21,7 @@ const Tile = ({
21
21
  children,
22
22
  orientation = "horizontal",
23
23
  width,
24
+ roundness = "default",
24
25
  ...props
25
26
  }) => {
26
27
  const isHorizontal = orientation === "horizontal";
@@ -60,7 +61,8 @@ const Tile = ({
60
61
  width: width,
61
62
  "data-component": "tile",
62
63
  isHorizontal: isHorizontal,
63
- p: p
64
+ p: p,
65
+ roundness: roundness
64
66
  }, props), wrappedChildren);
65
67
  };
66
68
 
@@ -6,7 +6,7 @@ interface TileContentProps {
6
6
  width?: string | number;
7
7
  }
8
8
  declare const TileContent: import("styled-components").StyledComponent<"div", any, TileContentProps, never>;
9
- declare const StyledTile: import("styled-components").StyledComponent<"div", any, Pick<TileProps, "width" | "variant" | "borderWidth" | "borderVariant"> & {
9
+ declare const StyledTile: import("styled-components").StyledComponent<"div", any, Pick<TileProps, "width" | "variant" | "roundness" | "borderWidth" | "borderVariant"> & {
10
10
  isHorizontal?: boolean | undefined;
11
11
  } & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
12
12
  export { StyledTile, TileContent };
@@ -102,12 +102,15 @@ const StyledTile = _styledComponents.default.div`
102
102
  borderWidth = "borderWidth100",
103
103
  isHorizontal,
104
104
  variant,
105
- width
105
+ width,
106
+ roundness
106
107
  }) => (0, _styledComponents.css)`
107
108
  ${_styledSystem.space}
108
109
 
109
110
  box-sizing: border-box;
110
111
  border: var(--${borderWidth}) solid ${getBorderColor(borderVariant)};
112
+ border-radius: ${roundness === "default" ? "var(--borderRadius100)" : "var(--borderRadius200)"};
113
+ overflow: hidden;
111
114
 
112
115
  ${variant === "tile" && (0, _styledComponents.css)`
113
116
  background-color: var(--colorsUtilityYang100);
@@ -8,6 +8,7 @@ declare const StyledDescription: import("styled-components").StyledComponent<"p"
8
8
  declare const StyledTileSelect: import("styled-components").StyledComponent<"div", any, {
9
9
  checked?: boolean | undefined;
10
10
  disabled?: boolean | undefined;
11
+ hasAccordion?: boolean | undefined;
11
12
  }, never>;
12
13
  declare const StyledFocusWrapper: import("styled-components").StyledComponent<"div", any, {
13
14
  checked?: boolean | undefined;
@@ -59,6 +59,7 @@ exports.StyledDescription = StyledDescription;
59
59
  const StyledTileSelect = _styledComponents.default.div`
60
60
  background: var(--colorsActionMinorYang100);
61
61
  padding: 24px;
62
+
62
63
  ${({
63
64
  checked
64
65
  }) => checked && (0, _styledComponents.css)`
@@ -85,6 +86,9 @@ const StyledFocusWrapper = _styledComponents.default.div`
85
86
  }) => (0, _styledComponents.css)`
86
87
  position: relative;
87
88
  border: 1px solid var(--colorsActionMinor250);
89
+ border-radius: var(--borderRadius100);
90
+ overflow: hidden;
91
+
88
92
  ${checked && (0, _styledComponents.css)`
89
93
  border-color: var(--colorsActionMajor500);
90
94
  z-index: 10;
@@ -102,6 +106,7 @@ const StyledTileSelectContainer = _styledComponents.default.div`
102
106
 
103
107
  width: 100%;
104
108
  position: relative;
109
+
105
110
  & + & ${StyledFocusWrapper} {
106
111
  margin-top: -1px;
107
112
  }
@@ -127,6 +132,9 @@ const StyledAccordionFooterWrapper = _styledComponents.default.div`
127
132
  z-index: 200;
128
133
  left: -12px;
129
134
 
135
+ border-bottom-right-radius: var(--borderRadius100);
136
+ border-bottom-left-radius: var(--borderRadius100);
137
+
130
138
  ${({
131
139
  accordionExpanded
132
140
  }) => `
@@ -44,6 +44,7 @@ const StyledTooltip = _styledComponents.default.div`
44
44
  right: auto;
45
45
  max-width: 300px;
46
46
  width: max-content;
47
+ border-radius: var(--borderRadius050);
47
48
  position: absolute;
48
49
  animation: ${fadeIn} 0.2s linear;
49
50
  z-index: ${theme.zIndex.popover}; // TODO (tokens): implement elevation tokens - FE-4437
@@ -60,6 +60,7 @@ const StyledVerticalMenuItem = _styledComponents.default.div`
60
60
  }) => active && (0, _styledComponents.css)`
61
61
  &:before {
62
62
  background: var(--colorsComponentsLeftnavWinterStandardSelected);
63
+ border-radius: var(--borderRadius100);
63
64
  content: "";
64
65
  height: calc(100% - 16px);
65
66
  left: 24px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "118.1.1",
3
+ "version": "118.2.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",