carbon-react 142.12.0 → 142.13.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__/character-count/character-count.style.js +1 -1
- package/esm/__internal__/fieldset/fieldset.style.js +2 -2
- package/esm/__internal__/label/label.style.js +2 -2
- package/esm/__internal__/validation-message/validation-message.style.js +1 -1
- package/esm/components/accordion/accordion.style.js +2 -2
- package/esm/components/action-popover/action-popover.style.js +1 -1
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/esm/components/badge/badge.style.js +1 -1
- package/esm/components/button/button.style.js +1 -1
- package/esm/components/button-toggle/button-toggle.style.js +1 -1
- package/esm/components/card/card-footer/card-footer.style.js +1 -1
- package/esm/components/content/content.style.js +1 -1
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/esm/components/definition-list/dd/dd.component.js +1 -0
- package/esm/components/definition-list/definition-list.style.js +1 -1
- package/esm/components/definition-list/dl.component.js +1 -0
- package/esm/components/definition-list/dt/dt.component.js +1 -0
- package/esm/components/duelling-picklist/duelling-picklist.style.js +1 -1
- package/esm/components/fieldset/fieldset.style.js +2 -2
- package/esm/components/file-input/__internal__/file-upload-status/file-upload-status.style.js +1 -1
- package/esm/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +1 -1
- package/esm/components/flat-table/flat-table-head/flat-table-head.style.js +1 -1
- package/esm/components/flat-table/flat-table-header/flat-table-header.style.js +1 -1
- package/esm/components/form/__internal__/form-summary.style.js +1 -1
- package/esm/components/form/required-fields-indicator/required-fields-indicator.component.js +1 -1
- package/esm/components/link-preview/link-preview.style.js +1 -1
- package/esm/components/loader-spinner/loader-spinner.component.js +1 -1
- package/esm/components/loader-star/loader-star.component.js +1 -1
- package/esm/components/menu/menu-item/menu-item.style.js +2 -2
- package/esm/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/esm/components/note/note.style.js +2 -2
- package/esm/components/pill/pill.style.js +1 -1
- package/esm/components/pod/pod.style.js +1 -1
- package/esm/components/popover-container/popover-container.component.js +19 -26
- package/esm/components/popover-container/popover-container.style.js +34 -30
- package/esm/components/portrait/portrait.style.js +1 -1
- package/esm/components/profile/profile.style.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.style.js +1 -1
- package/esm/components/search/search.style.js +2 -2
- package/esm/components/select/__internal__/select-list/select-list.style.js +1 -1
- package/esm/components/select/__internal__/select-textbox/select-textbox.style.js +1 -1
- package/esm/components/select/__internal__/utils/matching-text.style.js +1 -1
- package/esm/components/select/option-row/option-row.style.js +1 -1
- package/esm/components/step-flow/step-flow-title/step-flow-title.component.js +1 -1
- package/esm/components/step-flow/step-flow.component.js +1 -1
- package/esm/components/switch/__internal__/switch-slider.style.js +1 -1
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +1 -1
- package/esm/components/text-editor/__internal__/editor-link/editor-link.style.js +1 -1
- package/esm/components/textbox/__internal__/prefix.style.js +1 -1
- package/esm/components/tile-select/tile-select.style.js +2 -2
- package/esm/components/time/time.style.js +1 -1
- package/esm/components/typography/typography.style.js +2 -2
- package/esm/components/vertical-menu/vertical-menu.style.js +2 -2
- package/esm/style/fonts.css +2 -2
- package/esm/style/global-style.js +6 -6
- package/lib/__internal__/character-count/character-count.style.js +1 -1
- package/lib/__internal__/fieldset/fieldset.style.js +2 -2
- package/lib/__internal__/label/label.style.js +2 -2
- package/lib/__internal__/validation-message/validation-message.style.js +1 -1
- package/lib/components/accordion/accordion.style.js +2 -2
- package/lib/components/action-popover/action-popover.style.js +1 -1
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/button/button.style.js +1 -1
- package/lib/components/button-toggle/button-toggle.style.js +1 -1
- package/lib/components/card/card-footer/card-footer.style.js +1 -1
- package/lib/components/content/content.style.js +1 -1
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +1 -1
- package/lib/components/definition-list/dd/dd.component.js +1 -0
- package/lib/components/definition-list/definition-list.style.js +1 -1
- package/lib/components/definition-list/dl.component.js +1 -0
- package/lib/components/definition-list/dt/dt.component.js +1 -0
- package/lib/components/duelling-picklist/duelling-picklist.style.js +1 -1
- package/lib/components/fieldset/fieldset.style.js +2 -2
- package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.style.js +1 -1
- package/lib/components/flat-table/flat-table-checkbox/flat-table-checkbox.style.js +1 -1
- package/lib/components/flat-table/flat-table-head/flat-table-head.style.js +1 -1
- package/lib/components/flat-table/flat-table-header/flat-table-header.style.js +1 -1
- package/lib/components/form/__internal__/form-summary.style.js +1 -1
- package/lib/components/form/required-fields-indicator/required-fields-indicator.component.js +1 -1
- package/lib/components/link-preview/link-preview.style.js +1 -1
- package/lib/components/loader-spinner/loader-spinner.component.js +1 -1
- package/lib/components/loader-star/loader-star.component.js +1 -1
- package/lib/components/menu/menu-item/menu-item.style.js +2 -2
- package/lib/components/menu/menu-segment-title/menu-segment-title.style.js +1 -1
- package/lib/components/note/note.style.js +2 -2
- package/lib/components/pill/pill.style.js +1 -1
- package/lib/components/pod/pod.style.js +1 -1
- package/lib/components/popover-container/popover-container.component.js +18 -25
- package/lib/components/popover-container/popover-container.style.js +36 -30
- package/lib/components/portrait/portrait.style.js +1 -1
- package/lib/components/profile/profile.style.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +1 -1
- package/lib/components/search/search.style.js +2 -2
- package/lib/components/select/__internal__/select-list/select-list.style.js +1 -1
- package/lib/components/select/__internal__/select-textbox/select-textbox.style.js +1 -1
- package/lib/components/select/__internal__/utils/matching-text.style.js +1 -1
- package/lib/components/select/option-row/option-row.style.js +1 -1
- package/lib/components/step-flow/step-flow-title/step-flow-title.component.js +1 -1
- package/lib/components/step-flow/step-flow.component.js +1 -1
- package/lib/components/switch/__internal__/switch-slider.style.js +1 -1
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +1 -1
- package/lib/components/text-editor/__internal__/editor-link/editor-link.style.js +1 -1
- package/lib/components/textbox/__internal__/prefix.style.js +1 -1
- package/lib/components/tile-select/tile-select.style.js +2 -2
- package/lib/components/time/time.style.js +1 -1
- package/lib/components/typography/typography.style.js +2 -2
- package/lib/components/vertical-menu/vertical-menu.style.js +2 -2
- package/lib/style/fonts.css +2 -2
- package/lib/style/global-style.js +6 -6
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ export const StepFlowTitle = ({
|
|
|
26
26
|
variant: titleVariant || titleVariantContext || "h1",
|
|
27
27
|
"data-element": "title-text"
|
|
28
28
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
29
|
-
fontWeight: "
|
|
29
|
+
fontWeight: "700",
|
|
30
30
|
fontSize: "var(--fontSizes600)",
|
|
31
31
|
lineHeight: "var(--sizing375)",
|
|
32
32
|
variant: "span",
|
|
@@ -90,7 +90,7 @@ const StepFlow = /*#__PURE__*/forwardRef(({
|
|
|
90
90
|
"aria-hidden": "true"
|
|
91
91
|
}, locale.stepFlow.stepLabel(validatedCurrentStep, totalSteps));
|
|
92
92
|
return /*#__PURE__*/React.createElement(StyledStepFlow, _extends({}, rest, tagComponent("step-flow", rest)), /*#__PURE__*/React.createElement(StyledStepContent, null, category ? /*#__PURE__*/React.createElement(StyledStepContentText, null, /*#__PURE__*/React.createElement(Typography, {
|
|
93
|
-
fontWeight: "
|
|
93
|
+
fontWeight: "400",
|
|
94
94
|
fontSize: "var(--fontSizes100)",
|
|
95
95
|
lineHeight: "var(--sizing250)",
|
|
96
96
|
variant: "span",
|
|
@@ -227,7 +227,7 @@ const tabTitleStyles = css`
|
|
|
227
227
|
display: inline-block;
|
|
228
228
|
border-top-left-radius: var(--borderRadius100);
|
|
229
229
|
border-top-right-radius: var(--borderRadius100);
|
|
230
|
-
font-weight:
|
|
230
|
+
font-weight: 500;
|
|
231
231
|
position: relative;
|
|
232
232
|
border: none;
|
|
233
233
|
cursor: pointer;
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import InputSizes from "../../../__internal__/input/input-sizes.style";
|
|
3
3
|
const StyledPrefix = styled.span`
|
|
4
4
|
align-self: center;
|
|
5
|
-
font-weight:
|
|
5
|
+
font-weight: 700;
|
|
6
6
|
margin-left: ${({
|
|
7
7
|
size
|
|
8
8
|
}) => InputSizes[size].horizontalPadding}; // margin must match the original component padding
|
|
@@ -8,7 +8,7 @@ import { baseTheme } from "../../style/themes";
|
|
|
8
8
|
import addFocusStyling from "../../style/utils/add-focus-styling";
|
|
9
9
|
const StyledTitle = styled.h3`
|
|
10
10
|
font-size: 16px;
|
|
11
|
-
font-weight:
|
|
11
|
+
font-weight: 700;
|
|
12
12
|
margin: 0;
|
|
13
13
|
margin-right: 16px;
|
|
14
14
|
margin-bottom: 8px;
|
|
@@ -16,7 +16,7 @@ const StyledTitle = styled.h3`
|
|
|
16
16
|
`;
|
|
17
17
|
const StyledSubtitle = styled.h4`
|
|
18
18
|
font-size: 14px;
|
|
19
|
-
font-weight:
|
|
19
|
+
font-weight: 500;
|
|
20
20
|
margin: 0;
|
|
21
21
|
margin-right: 16px;
|
|
22
22
|
margin-bottom: 8px;
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import Label from "../../__internal__/label";
|
|
3
3
|
export const StyledLabel = styled(Label)`
|
|
4
4
|
label {
|
|
5
|
-
font-weight: var(--
|
|
5
|
+
font-weight: var(--fontWeights400);
|
|
6
6
|
}
|
|
7
7
|
`;
|
|
8
8
|
export const StyledHintText = styled.div`
|
|
@@ -88,7 +88,7 @@ const getWeight = variant => {
|
|
|
88
88
|
case "h1":
|
|
89
89
|
case "segment-header":
|
|
90
90
|
case "segment-header-small":
|
|
91
|
-
return "
|
|
91
|
+
return "700";
|
|
92
92
|
case "h2":
|
|
93
93
|
case "h3":
|
|
94
94
|
case "segment-subheader":
|
|
@@ -96,7 +96,7 @@ const getWeight = variant => {
|
|
|
96
96
|
case "b":
|
|
97
97
|
case "em":
|
|
98
98
|
case "strong":
|
|
99
|
-
return "
|
|
99
|
+
return "500";
|
|
100
100
|
case "h4":
|
|
101
101
|
case "h5":
|
|
102
102
|
case "p":
|
|
@@ -22,7 +22,7 @@ export const StyledVerticalMenuItem = styled.div`
|
|
|
22
22
|
display: flex;
|
|
23
23
|
border: none;
|
|
24
24
|
align-items: center;
|
|
25
|
-
font-weight:
|
|
25
|
+
font-weight: 500;
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
color: var(--colorsComponentsLeftnavWinterStandardContent);
|
|
@@ -73,7 +73,7 @@ StyledVerticalMenuItem.defaultProps = {
|
|
|
73
73
|
theme: baseTheme
|
|
74
74
|
};
|
|
75
75
|
export const StyledTitle = styled.h3`
|
|
76
|
-
font-weight:
|
|
76
|
+
font-weight: 500;
|
|
77
77
|
font-size: 14px;
|
|
78
78
|
line-height: 21px;
|
|
79
79
|
margin: 0;
|
package/esm/style/fonts.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@font-face {
|
|
20
20
|
font-family: "Sage UI";
|
|
21
21
|
font-style: normal;
|
|
22
|
-
font-weight:
|
|
22
|
+
font-weight: 500;
|
|
23
23
|
src: url("~@sage/design-tokens/assets/fonts/sageui-medium.woff2") format("woff2"),
|
|
24
24
|
url("~@sage/design-tokens/assets/fonts/sageui-medium.woff") format("woff"),
|
|
25
25
|
url("~@sage/design-tokens/assets/fonts/sageui-medium.ttf") format("truetype"),
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@font-face {
|
|
30
30
|
font-family: "Sage UI";
|
|
31
31
|
font-style: normal;
|
|
32
|
-
font-weight:
|
|
32
|
+
font-weight: 700;
|
|
33
33
|
src: url("~@sage/design-tokens/assets/fonts/sageui-bold.woff2") format("woff2"),
|
|
34
34
|
url("~@sage/design-tokens/assets/fonts/sageui-bold.woff") format("woff"),
|
|
35
35
|
url("~@sage/design-tokens/assets/fonts/sageui-bold.ttf") format("truetype"),
|
|
@@ -15,12 +15,12 @@ const GlobalStyle = createGlobalStyle`
|
|
|
15
15
|
font-family: inherit;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
h1, .h1 { font-size: 24px; font-weight:
|
|
19
|
-
h2, .h2 { font-size: 22px; font-weight:
|
|
20
|
-
h3, .h3 { font-size: 20px; font-weight:
|
|
21
|
-
h4, .h4 { font-size: 18px; font-weight:
|
|
22
|
-
h5, .h5 { font-size: 16px; font-weight:
|
|
23
|
-
h6, .h6 { font-size: 14px; font-weight:
|
|
18
|
+
h1, .h1 { font-size: 24px; font-weight: 700; line-height: 32px; }
|
|
19
|
+
h2, .h2 { font-size: 22px; font-weight: 500; margin-bottom: 26px; }
|
|
20
|
+
h3, .h3 { font-size: 20px; font-weight: 500; margin-bottom: 24px; }
|
|
21
|
+
h4, .h4 { font-size: 18px; font-weight: 500; margin-bottom: 22px; }
|
|
22
|
+
h5, .h5 { font-size: 16px; font-weight: 500; margin-bottom: 20px; }
|
|
23
|
+
h6, .h6 { font-size: 14px; font-weight: 500; margin-bottom: 18px; }
|
|
24
24
|
|
|
25
25
|
[data-element=${TAB_GUARD_TOP}], [data-element=${TAB_GUARD_BOTTOM}] {
|
|
26
26
|
position: fixed;
|
|
@@ -23,7 +23,7 @@ const StyledCharacterCount = exports.StyledCharacterCount = _styledComponents.de
|
|
|
23
23
|
${({
|
|
24
24
|
isOverLimit
|
|
25
25
|
}) => isOverLimit && (0, _styledComponents.css)`
|
|
26
|
-
font-weight: var(--
|
|
26
|
+
font-weight: var(--fontWeights500);
|
|
27
27
|
`}
|
|
28
28
|
`;
|
|
29
29
|
const VisuallyHiddenCharacterCount = exports.VisuallyHiddenCharacterCount = _styledComponents.default.div`
|
|
@@ -35,7 +35,7 @@ const StyledLegendContent = exports.StyledLegendContent = _styledComponents.defa
|
|
|
35
35
|
content: "*";
|
|
36
36
|
line-height: 24px;
|
|
37
37
|
color: var(--colorsSemanticNegative500);
|
|
38
|
-
font-weight: var(--
|
|
38
|
+
font-weight: var(--fontWeights500);
|
|
39
39
|
margin-left: var(--spacing050);
|
|
40
40
|
position: relative;
|
|
41
41
|
top: 1px;
|
|
@@ -67,7 +67,7 @@ const StyledLegend = exports.StyledLegend = _styledComponents.default.legend`
|
|
|
67
67
|
align-items: center;
|
|
68
68
|
margin-bottom: var(--spacing100);
|
|
69
69
|
padding: 0;
|
|
70
|
-
font-weight: var(--
|
|
70
|
+
font-weight: var(--fontWeights500);
|
|
71
71
|
color: var(--colorsUtilityYin090);
|
|
72
72
|
${({
|
|
73
73
|
inline,
|
|
@@ -10,7 +10,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
10
10
|
const StyledLabel = _styledComponents.default.label`
|
|
11
11
|
color: var(--colorsUtilityYin090);
|
|
12
12
|
display: block;
|
|
13
|
-
font-weight: var(--
|
|
13
|
+
font-weight: var(--fontWeights500);
|
|
14
14
|
|
|
15
15
|
${({
|
|
16
16
|
isRequired
|
|
@@ -18,7 +18,7 @@ const StyledLabel = _styledComponents.default.label`
|
|
|
18
18
|
::after {
|
|
19
19
|
content: "*";
|
|
20
20
|
color: var(--colorsSemanticNegative500);
|
|
21
|
-
font-weight: var(--
|
|
21
|
+
font-weight: var(--fontWeights500);
|
|
22
22
|
margin-left: var(--spacing050);
|
|
23
23
|
}
|
|
24
24
|
`}
|
|
@@ -12,7 +12,7 @@ const StyledValidationMessage = _styledComponents.default.p`
|
|
|
12
12
|
isWarning
|
|
13
13
|
}) => (0, _styledComponents.css)`
|
|
14
14
|
color: ${isWarning ? "var(--colorsSemanticCaution600)" : "var(--colorsSemanticNegative500)"};
|
|
15
|
-
font-weight: ${isWarning ? "normal" : "
|
|
15
|
+
font-weight: ${isWarning ? "normal" : "500"};
|
|
16
16
|
margin-top: 0px;
|
|
17
17
|
margin-bottom: 8px;
|
|
18
18
|
`}
|
|
@@ -62,7 +62,7 @@ const StyledAccordionTitle = exports.StyledAccordionTitle = _styledComponents.de
|
|
|
62
62
|
size,
|
|
63
63
|
variant
|
|
64
64
|
}) => size === "small" || variant === "subtle" ? "var(--fontSizes200)" : "var(--fontSizes400)"};
|
|
65
|
-
font-weight:
|
|
65
|
+
font-weight: 500;
|
|
66
66
|
line-height: 1;
|
|
67
67
|
user-select: none;
|
|
68
68
|
margin: 0;
|
|
@@ -170,7 +170,7 @@ const StyledAccordionTitleContainer = exports.StyledAccordionTitleContainer = _s
|
|
|
170
170
|
|
|
171
171
|
${buttonHeading && (0, _styledComponents.css)`
|
|
172
172
|
box-sizing: border-box;
|
|
173
|
-
font-weight:
|
|
173
|
+
font-weight: 500;
|
|
174
174
|
text-decoration: none;
|
|
175
175
|
font-size: var(--fontSizes100);
|
|
176
176
|
min-height: var(--spacing500);
|
package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js
CHANGED
|
@@ -22,7 +22,7 @@ const StyledNavigationItem = _styledComponents.default.li`
|
|
|
22
22
|
color: var(--colorsUtilityYin090);
|
|
23
23
|
background-color: transparent;
|
|
24
24
|
border-left: var(--sizing050) solid var(--colorsActionMinor100);
|
|
25
|
-
font-weight:
|
|
25
|
+
font-weight: 500;
|
|
26
26
|
padding: 12px 24px;
|
|
27
27
|
border-top-right-radius: var(--borderRadius100);
|
|
28
28
|
border-bottom-right-radius: var(--borderRadius100);
|
|
@@ -28,7 +28,7 @@ const StyledBadgeWrapper = exports.StyledBadgeWrapper = _styledComponents.defaul
|
|
|
28
28
|
display: inline-block;
|
|
29
29
|
`;
|
|
30
30
|
const StyledCounter = exports.StyledCounter = _styledComponents.default.div`
|
|
31
|
-
font-weight:
|
|
31
|
+
font-weight: 500;
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
margin-top: -1px;
|
|
34
34
|
`;
|
|
@@ -33,7 +33,7 @@ const StyledCardFooter = _styledComponents.default.div`
|
|
|
33
33
|
border-top-width: 1px;
|
|
34
34
|
border-top-style: solid;
|
|
35
35
|
font-size: 14px;
|
|
36
|
-
font-weight:
|
|
36
|
+
font-weight: 500;
|
|
37
37
|
margin: ${marginSizes[spacing]};
|
|
38
38
|
display: flex;
|
|
39
39
|
${roundness === "default" && (0, _styledComponents.css)`
|
|
@@ -40,7 +40,7 @@ const StyledContentTitle = exports.StyledContentTitle = _styledComponents.defaul
|
|
|
40
40
|
}) => {
|
|
41
41
|
return (0, _styledComponents.css)`
|
|
42
42
|
display: ${inline ? "inline-block" : "block"};
|
|
43
|
-
font-weight:
|
|
43
|
+
font-weight: 500;
|
|
44
44
|
width: ${titleWidth && `calc(${titleWidth}% - 30px)`};
|
|
45
45
|
text-align: ${!inline && align};
|
|
46
46
|
|
|
@@ -272,7 +272,7 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
272
272
|
border: none;
|
|
273
273
|
//font-family: var(--fontFamiliesDefault); font assets to be updated part of FE-4975
|
|
274
274
|
//font: var(--typographyDatePickerCalendarDateM); font assets to be updated part of FE-4975
|
|
275
|
-
font-weight: var(--
|
|
275
|
+
font-weight: var(--fontWeights500);
|
|
276
276
|
font-size: var(--fontSizes100);
|
|
277
277
|
line-height: var(--lineHeights500);
|
|
278
278
|
border-radius: var(--borderRadius400);
|
|
@@ -25,6 +25,7 @@ const Dd = ({
|
|
|
25
25
|
} = (0, _react.useContext)(_dl.default);
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_definitionList.StyledDd, _extends({
|
|
27
27
|
"data-element": "dd",
|
|
28
|
+
"data-role": "dd",
|
|
28
29
|
asSingleColumn: asSingleColumn,
|
|
29
30
|
ddTextAlign: ddTextAlign,
|
|
30
31
|
mb: mb || 2
|
|
@@ -38,7 +38,7 @@ StyledDl.defaultProps = {
|
|
|
38
38
|
const StyledDt = exports.StyledDt = _styledComponents.default.dt`
|
|
39
39
|
${_styledSystem.space}
|
|
40
40
|
font-size: var(--fontSizes100);
|
|
41
|
-
font-weight:
|
|
41
|
+
font-weight: 500;
|
|
42
42
|
color: var(--colorsUtilityYin090);
|
|
43
43
|
${({
|
|
44
44
|
asSingleColumn
|
|
@@ -21,6 +21,7 @@ const Dl = ({
|
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_definitionList.StyledDl, _extends({
|
|
22
22
|
w: w,
|
|
23
23
|
"data-component": "dl",
|
|
24
|
+
"data-role": "dl",
|
|
24
25
|
asSingleColumn: asSingleColumn
|
|
25
26
|
}, rest), /*#__PURE__*/_react.default.createElement(_dl.default.Provider, {
|
|
26
27
|
value: {
|
|
@@ -26,6 +26,7 @@ const Dt = ({
|
|
|
26
26
|
} = rest;
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement(_definitionList.StyledDt, _extends({
|
|
28
28
|
"data-element": "dt",
|
|
29
|
+
"data-role": "dt",
|
|
29
30
|
mb: mb || asSingleColumn ? undefined : 2,
|
|
30
31
|
pr: pr || asSingleColumn ? undefined : 3,
|
|
31
32
|
dtTextAlign: dtTextAlign,
|
|
@@ -35,7 +35,7 @@ const StyledLabelContainer = exports.StyledLabelContainer = _styledComponents.de
|
|
|
35
35
|
margin-bottom: 16px;
|
|
36
36
|
`;
|
|
37
37
|
const StyledLabel = exports.StyledLabel = _styledComponents.default.p`
|
|
38
|
-
font-weight:
|
|
38
|
+
font-weight: 500;
|
|
39
39
|
font-size: 12px;
|
|
40
40
|
letter-spacing: 1;
|
|
41
41
|
margin: 0;
|
|
@@ -36,7 +36,7 @@ const StyledLegend = exports.StyledLegend = _styledComponents.default.legend`
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
margin-bottom: 32px;
|
|
38
38
|
font-size: 20px;
|
|
39
|
-
font-weight: var(--
|
|
39
|
+
font-weight: var(--fontWeights500);
|
|
40
40
|
color: var(--colorsUtilityYin090);
|
|
41
41
|
line-height: 24px;
|
|
42
42
|
margin-right: 4px;
|
|
@@ -48,7 +48,7 @@ const StyledLegend = exports.StyledLegend = _styledComponents.default.legend`
|
|
|
48
48
|
content: "*";
|
|
49
49
|
line-height: 24px;
|
|
50
50
|
color: var(--colorsSemanticNegative500);
|
|
51
|
-
font-weight: var(--
|
|
51
|
+
font-weight: var(--fontWeights500);
|
|
52
52
|
margin-left: var(--spacing100);
|
|
53
53
|
position: relative;
|
|
54
54
|
top: 1px;
|
package/lib/components/file-input/__internal__/file-upload-status/file-upload-status.style.js
CHANGED
|
@@ -80,7 +80,7 @@ const StyledFileUploadStatus = exports.StyledFileUploadStatus = _styledComponent
|
|
|
80
80
|
border: var(--${borderWidthToken}) solid var(--${colorToken});
|
|
81
81
|
${hasError && `&& ${_typography.default} {
|
|
82
82
|
color: var(--${colorToken});
|
|
83
|
-
font-weight:
|
|
83
|
+
font-weight: 400;
|
|
84
84
|
}`}
|
|
85
85
|
`;
|
|
86
86
|
}}
|
|
@@ -74,7 +74,7 @@ const StyledPreviewWrapper = exports.StyledPreviewWrapper = _styledComponents.de
|
|
|
74
74
|
const StyledTitle = exports.StyledTitle = _styledComponents.default.div`
|
|
75
75
|
white-space: nowrap;
|
|
76
76
|
text-overflow: ellipsis;
|
|
77
|
-
font-weight:
|
|
77
|
+
font-weight: 500;
|
|
78
78
|
font-size: 14px;
|
|
79
79
|
line-height: 21px;
|
|
80
80
|
`;
|
|
@@ -30,7 +30,7 @@ const LoaderSpinner = ({
|
|
|
30
30
|
const renderSpinnerLabel = /*#__PURE__*/_react.default.createElement(_loaderSpinner.StyledLabel, {
|
|
31
31
|
"data-role": "visible-label",
|
|
32
32
|
variant: "span",
|
|
33
|
-
fontWeight: "
|
|
33
|
+
fontWeight: "400",
|
|
34
34
|
size: size,
|
|
35
35
|
color: isLabelDark ? "var(--colorsUtilityYin090);" : "var(--colorsActionMajorYang100);",
|
|
36
36
|
fontSize: size === "extra-large" ? "var(--sizing200)" : "var(--sizing175)",
|
|
@@ -23,7 +23,7 @@ const LoaderStar = ({
|
|
|
23
23
|
const label = /*#__PURE__*/_react.default.createElement(_loaderStar.StyledLabel, {
|
|
24
24
|
"data-role": "visible-label",
|
|
25
25
|
variant: "span",
|
|
26
|
-
fontWeight: "
|
|
26
|
+
fontWeight: "400"
|
|
27
27
|
}, loaderStarLabel || locale.loaderStar.loading());
|
|
28
28
|
return /*#__PURE__*/_react.default.createElement(_loaderStar.StyledLoaderStarWrapper, _extends({
|
|
29
29
|
role: "status"
|
|
@@ -108,7 +108,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a.attrs({
|
|
|
108
108
|
display: flex;
|
|
109
109
|
align-items: center;
|
|
110
110
|
font-size: 14px;
|
|
111
|
-
font-weight:
|
|
111
|
+
font-weight: 500;
|
|
112
112
|
min-height: 40px;
|
|
113
113
|
position: relative;
|
|
114
114
|
box-shadow: none;
|
|
@@ -259,7 +259,7 @@ const StyledMenuItemWrapper = _styledComponents.default.a.attrs({
|
|
|
259
259
|
${_link.StyledLink} a,
|
|
260
260
|
${_link.StyledLink} button,
|
|
261
261
|
${_link.StyledLink} [data-component="icon"] {
|
|
262
|
-
font-weight:
|
|
262
|
+
font-weight: 500;
|
|
263
263
|
text-decoration: none;
|
|
264
264
|
${!hasInput && `color: ${_menu.default[menuType].color};`}
|
|
265
265
|
}
|
|
@@ -50,7 +50,7 @@ const StyledInlineControl = exports.StyledInlineControl = _styledComponents.defa
|
|
|
50
50
|
min-width: fit-content;
|
|
51
51
|
`;
|
|
52
52
|
const StyledTitle = exports.StyledTitle = _styledComponents.default.header`
|
|
53
|
-
font-weight:
|
|
53
|
+
font-weight: 700;
|
|
54
54
|
font-size: 16px;
|
|
55
55
|
line-height: 21px;
|
|
56
56
|
padding-bottom: 16px;
|
|
@@ -58,7 +58,7 @@ const StyledTitle = exports.StyledTitle = _styledComponents.default.header`
|
|
|
58
58
|
const StyledFooterContent = exports.StyledFooterContent = _styledComponents.default.div`
|
|
59
59
|
line-height: 21px;
|
|
60
60
|
align-items: baseline;
|
|
61
|
-
font-weight:
|
|
61
|
+
font-weight: 500;
|
|
62
62
|
|
|
63
63
|
${({
|
|
64
64
|
hasName
|
|
@@ -349,7 +349,7 @@ const StyledSubtitle = exports.StyledSubtitle = _styledComponents.default.h5`
|
|
|
349
349
|
const StyledTitle = exports.StyledTitle = _styledComponents.default.h4`
|
|
350
350
|
display: inline;
|
|
351
351
|
font-size: 18px;
|
|
352
|
-
font-weight:
|
|
352
|
+
font-weight: 500;
|
|
353
353
|
`;
|
|
354
354
|
StyledPod.defaultProps = {
|
|
355
355
|
theme: _themes.baseTheme
|