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.
- package/esm/__internal__/input/input-presentation.style.js +1 -0
- package/esm/__internal__/input/input.style.js +1 -0
- package/esm/components/action-popover/action-popover.style.js +3 -0
- package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/esm/components/badge/badge.style.js +1 -1
- package/esm/components/batch-selection/batch-selection.style.js +6 -0
- package/esm/components/box/box.component.d.ts +3 -0
- package/esm/components/box/box.component.js +4 -0
- package/esm/components/button/button.style.js +10 -9
- package/esm/components/button-bar/button-bar.style.js +19 -0
- package/esm/components/button-minor/button-minor.style.js +42 -40
- package/esm/components/button-toggle/button-toggle.component.js +2 -1
- package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/esm/components/button-toggle/button-toggle.style.js +31 -13
- package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
- package/esm/components/card/__internal__/card-context/index.js +2 -0
- package/esm/components/card/card-footer/card-footer.component.js +9 -2
- package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/esm/components/card/card-footer/card-footer.style.js +10 -1
- package/esm/components/card/card.component.d.ts +3 -2
- package/esm/components/card/card.component.js +10 -1
- package/esm/components/card/card.style.d.ts +2 -1
- package/esm/components/card/card.style.js +3 -1
- package/esm/components/carousel/carousel.component.js +1 -1
- package/esm/components/carousel/carousel.style.js +4 -2
- package/esm/components/carousel/slide/slide.style.js +2 -0
- package/esm/components/checkbox/checkbox.style.js +2 -0
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/esm/components/date/__internal__/navbar/button.style.js +2 -0
- package/esm/components/dialog/dialog.style.js +5 -0
- package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
- package/esm/components/drawer/drawer.style.js +1 -0
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/esm/components/flat-table/flat-table.component.js +56 -2
- package/esm/components/flat-table/flat-table.style.js +101 -1
- package/esm/components/flat-table/sort/sort.style.js +1 -0
- package/esm/components/icon-button/icon-button.style.js +1 -0
- package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
- package/esm/components/link/link.style.js +1 -0
- package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
- package/esm/components/link-preview/link-preview.style.js +1 -0
- package/esm/components/loader/loader-square.style.js +5 -0
- package/esm/components/loader-bar/loader-bar.style.js +1 -0
- package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/esm/components/menu/menu.style.js +13 -6
- package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
- package/esm/components/message/message.style.js +2 -0
- package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
- package/esm/components/note/note.style.js +1 -0
- package/esm/components/numeral-date/numeral-date.component.js +2 -0
- package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/esm/components/numeral-date/numeral-date.style.js +12 -0
- package/esm/components/pager/pager.style.js +2 -0
- package/esm/components/pill/pill.style.js +5 -15
- package/esm/components/pod/pod.style.js +6 -0
- package/esm/components/popover-container/popover-container.style.js +1 -0
- package/esm/components/portrait/portrait-gravatar.component.js +1 -1
- package/esm/components/portrait/portrait-initials.component.js +1 -1
- package/esm/components/portrait/portrait.component.js +1 -1
- package/esm/components/portrait/portrait.style.js +1 -3
- package/esm/components/profile/profile.component.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
- package/esm/components/radio-button/radio-button.style.js +1 -1
- package/esm/components/search/search-button.style.js +5 -0
- package/esm/components/search/search.style.js +7 -0
- package/esm/components/select/select-list/select-list-container.style.js +1 -0
- package/esm/components/split-button/split-button-children.style.d.ts +1 -0
- package/esm/components/split-button/split-button-children.style.js +28 -0
- package/esm/components/split-button/split-button-toggle.style.js +6 -1
- package/esm/components/split-button/split-button.style.js +5 -2
- package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/esm/components/text-editor/text-editor.style.js +3 -0
- package/esm/components/tile/tile.component.d.ts +3 -1
- package/esm/components/tile/tile.component.js +3 -1
- package/esm/components/tile/tile.style.d.ts +1 -1
- package/esm/components/tile/tile.style.js +4 -1
- package/esm/components/tile-select/tile-select.style.d.ts +1 -0
- package/esm/components/tile-select/tile-select.style.js +8 -0
- package/esm/components/tooltip/tooltip.style.js +1 -0
- package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
- package/lib/__internal__/input/input-presentation.style.js +1 -0
- package/lib/__internal__/input/input.style.js +1 -0
- package/lib/components/action-popover/action-popover.style.js +3 -0
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/batch-selection/batch-selection.style.js +6 -0
- package/lib/components/box/box.component.d.ts +3 -0
- package/lib/components/box/box.component.js +4 -0
- package/lib/components/button/button.style.js +10 -9
- package/lib/components/button-bar/button-bar.style.js +19 -0
- package/lib/components/button-minor/button-minor.style.js +42 -40
- package/lib/components/button-toggle/button-toggle.component.js +2 -1
- package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/lib/components/button-toggle/button-toggle.style.js +31 -13
- package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
- package/lib/components/card/__internal__/card-context/index.js +14 -0
- package/lib/components/card/__internal__/card-context/package.json +6 -0
- package/lib/components/card/card-footer/card-footer.component.js +14 -2
- package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/lib/components/card/card-footer/card-footer.style.js +10 -1
- package/lib/components/card/card.component.d.ts +3 -2
- package/lib/components/card/card.component.js +11 -1
- package/lib/components/card/card.style.d.ts +2 -1
- package/lib/components/card/card.style.js +3 -1
- package/lib/components/carousel/carousel.component.js +1 -1
- package/lib/components/carousel/carousel.style.js +4 -2
- package/lib/components/carousel/slide/slide.style.js +2 -0
- package/lib/components/checkbox/checkbox.style.js +2 -0
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/lib/components/date/__internal__/navbar/button.style.js +2 -0
- package/lib/components/dialog/dialog.style.js +5 -0
- package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
- package/lib/components/drawer/drawer.style.js +1 -0
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/lib/components/flat-table/flat-table.component.js +60 -2
- package/lib/components/flat-table/flat-table.style.js +102 -1
- package/lib/components/flat-table/sort/sort.style.js +1 -0
- package/lib/components/icon-button/icon-button.style.js +1 -0
- package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
- package/lib/components/link/link.style.js +1 -0
- package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
- package/lib/components/link-preview/link-preview.style.js +1 -0
- package/lib/components/loader/loader-square.style.js +5 -0
- package/lib/components/loader-bar/loader-bar.style.js +1 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/lib/components/menu/menu.style.js +13 -6
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
- package/lib/components/message/message.style.js +2 -0
- package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
- package/lib/components/note/note.style.js +1 -0
- package/lib/components/numeral-date/numeral-date.component.js +2 -0
- package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/lib/components/numeral-date/numeral-date.style.js +12 -0
- package/lib/components/pager/pager.style.js +2 -0
- package/lib/components/pill/pill.style.js +5 -15
- package/lib/components/pod/pod.style.js +6 -0
- package/lib/components/popover-container/popover-container.style.js +1 -0
- package/lib/components/portrait/portrait-gravatar.component.js +1 -1
- package/lib/components/portrait/portrait-initials.component.js +1 -1
- package/lib/components/portrait/portrait.component.js +1 -1
- package/lib/components/portrait/portrait.style.js +1 -3
- package/lib/components/profile/profile.component.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
- package/lib/components/radio-button/radio-button.style.js +1 -1
- package/lib/components/search/search-button.style.js +5 -0
- package/lib/components/search/search.style.js +7 -0
- package/lib/components/select/select-list/select-list-container.style.js +1 -0
- package/lib/components/split-button/split-button-children.style.d.ts +1 -0
- package/lib/components/split-button/split-button-children.style.js +30 -1
- package/lib/components/split-button/split-button-toggle.style.js +6 -1
- package/lib/components/split-button/split-button.style.js +5 -2
- package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/lib/components/text-editor/text-editor.style.js +3 -0
- package/lib/components/tile/tile.component.d.ts +3 -1
- package/lib/components/tile/tile.component.js +3 -1
- package/lib/components/tile/tile.style.d.ts +1 -1
- package/lib/components/tile/tile.style.js +4 -1
- package/lib/components/tile-select/tile-select.style.d.ts +1 -0
- package/lib/components/tile-select/tile-select.style.js +8 -0
- package/lib/components/tooltip/tooltip.style.js +1 -0
- package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
- package/package.json +1 -1
|
@@ -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
|
+
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) {
|
|
@@ -73,7 +73,7 @@ const StyledProgressBar = _styledComponents.default.span`
|
|
|
73
73
|
progress,
|
|
74
74
|
error
|
|
75
75
|
})};
|
|
76
|
-
border-radius:
|
|
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:
|
|
127
|
+
border-radius: var(--borderRadius400);
|
|
128
128
|
width: calc(${length} * ${progress && progress / 100});
|
|
129
129
|
min-width: 2px;
|
|
130
130
|
height: ${getHeight(size)};
|
|
@@ -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;
|
|
@@ -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" && `
|
|
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:
|
|
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
|
`}
|
package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js
CHANGED
|
@@ -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;
|