carbon-react 106.1.6 → 106.2.1
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/README.md +1 -1
- package/esm/components/flat-table/flat-table.style.js +2 -1
- package/esm/components/form/form.style.js +7 -0
- package/esm/components/typography/typography.component.js +1 -1
- package/lib/components/flat-table/flat-table.style.js +2 -1
- package/lib/components/form/form.style.js +8 -0
- package/lib/components/typography/typography.component.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Carbon [](https://www.npmjs.com/package/carbon-react)
|
|
1
|
+
# Carbon [](https://www.npmjs.com/package/carbon-react) [](https://github.com/Sage/carbon/actions/workflows/cypress.yml)
|
|
2
2
|
|
|
3
3
|
Carbon is a [React](https://facebook.github.io/react/) component library developed by Sage.
|
|
4
4
|
|
|
@@ -75,7 +75,7 @@ const StyledFlatTable = styled.table`
|
|
|
75
75
|
${StyledFlatTableRow}:hover {
|
|
76
76
|
${StyledFlatTableCell},
|
|
77
77
|
${StyledFlatTableRowHeader},
|
|
78
|
-
${StyledFlatTableCheckbox} {
|
|
78
|
+
${StyledFlatTableCheckbox}:not(th) {
|
|
79
79
|
background-color: var(--colorsUtilityMajor025);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -198,6 +198,7 @@ const StyledFlatTableFooter = styled.div`
|
|
|
198
198
|
}) => hasStickyFooter && css`
|
|
199
199
|
position: sticky;
|
|
200
200
|
bottom: 0px;
|
|
201
|
+
z-index: ${baseTheme.zIndex.overlay + 1};
|
|
201
202
|
`}
|
|
202
203
|
`;
|
|
203
204
|
export { StyledFlatTableWrapper, StyledFlatTable, StyledFlatTableFooter, StyledTableContainer };
|
|
@@ -9,6 +9,7 @@ import { FieldsetStyle } from "../fieldset/fieldset.style";
|
|
|
9
9
|
import StyledInlineInputs from "../inline-inputs/inline-inputs.style";
|
|
10
10
|
import { FORM_BUTTON_ALIGNMENTS } from "./form.config";
|
|
11
11
|
import StyledSearch from "../search/search.style";
|
|
12
|
+
import StyledTextarea from "../textarea/textarea.style";
|
|
12
13
|
export const StyledFormContent = styled.div`
|
|
13
14
|
${({
|
|
14
15
|
stickyFooter
|
|
@@ -72,6 +73,7 @@ export const StyledForm = styled.form`
|
|
|
72
73
|
fieldSpacing
|
|
73
74
|
}) => css`
|
|
74
75
|
&
|
|
76
|
+
${StyledTextarea},
|
|
75
77
|
${StyledFormField},
|
|
76
78
|
${StyledFieldset},
|
|
77
79
|
${FieldsetStyle},
|
|
@@ -80,6 +82,11 @@ export const StyledForm = styled.form`
|
|
|
80
82
|
margin-bottom: ${formBottomMargins(fieldSpacing)};
|
|
81
83
|
}
|
|
82
84
|
|
|
85
|
+
${StyledTextarea}
|
|
86
|
+
${StyledFormField} {
|
|
87
|
+
margin-bottom: 4px;
|
|
88
|
+
}
|
|
89
|
+
|
|
83
90
|
${StyledInlineInputs} {
|
|
84
91
|
${StyledFormField} {
|
|
85
92
|
margin-bottom: 0;
|
|
@@ -108,7 +108,6 @@ const getWeight = variant => {
|
|
|
108
108
|
case "h1":
|
|
109
109
|
case "segment-header":
|
|
110
110
|
case "segment-header-small":
|
|
111
|
-
case "strong":
|
|
112
111
|
return "900";
|
|
113
112
|
|
|
114
113
|
case "h2":
|
|
@@ -117,6 +116,7 @@ const getWeight = variant => {
|
|
|
117
116
|
case "segment-subheader-alt":
|
|
118
117
|
case "b":
|
|
119
118
|
case "em":
|
|
119
|
+
case "strong":
|
|
120
120
|
return "700";
|
|
121
121
|
|
|
122
122
|
case "h4":
|
|
@@ -99,7 +99,7 @@ const StyledFlatTable = _styledComponents.default.table`
|
|
|
99
99
|
${_flatTableRow.default}:hover {
|
|
100
100
|
${_flatTableCell.StyledFlatTableCell},
|
|
101
101
|
${_flatTableRowHeader.StyledFlatTableRowHeader},
|
|
102
|
-
${_flatTableCheckbox.default} {
|
|
102
|
+
${_flatTableCheckbox.default}:not(th) {
|
|
103
103
|
background-color: var(--colorsUtilityMajor025);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -224,6 +224,7 @@ const StyledFlatTableFooter = _styledComponents.default.div`
|
|
|
224
224
|
}) => hasStickyFooter && (0, _styledComponents.css)`
|
|
225
225
|
position: sticky;
|
|
226
226
|
bottom: 0px;
|
|
227
|
+
z-index: ${_themes.baseTheme.zIndex.overlay + 1};
|
|
227
228
|
`}
|
|
228
229
|
`;
|
|
229
230
|
exports.StyledFlatTableFooter = StyledFlatTableFooter;
|
|
@@ -27,6 +27,8 @@ var _form = require("./form.config");
|
|
|
27
27
|
|
|
28
28
|
var _search = _interopRequireDefault(require("../search/search.style"));
|
|
29
29
|
|
|
30
|
+
var _textarea = _interopRequireDefault(require("../textarea/textarea.style"));
|
|
31
|
+
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
33
|
|
|
32
34
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -98,6 +100,7 @@ const StyledForm = _styledComponents.default.form`
|
|
|
98
100
|
fieldSpacing
|
|
99
101
|
}) => (0, _styledComponents.css)`
|
|
100
102
|
&
|
|
103
|
+
${_textarea.default},
|
|
101
104
|
${_formField.default},
|
|
102
105
|
${_fieldset.StyledFieldset},
|
|
103
106
|
${_fieldset2.FieldsetStyle},
|
|
@@ -106,6 +109,11 @@ const StyledForm = _styledComponents.default.form`
|
|
|
106
109
|
margin-bottom: ${formBottomMargins(fieldSpacing)};
|
|
107
110
|
}
|
|
108
111
|
|
|
112
|
+
${_textarea.default}
|
|
113
|
+
${_formField.default} {
|
|
114
|
+
margin-bottom: 4px;
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
${_inlineInputs.default} {
|
|
110
118
|
${_formField.default} {
|
|
111
119
|
margin-bottom: 0;
|
|
@@ -126,7 +126,6 @@ const getWeight = variant => {
|
|
|
126
126
|
case "h1":
|
|
127
127
|
case "segment-header":
|
|
128
128
|
case "segment-header-small":
|
|
129
|
-
case "strong":
|
|
130
129
|
return "900";
|
|
131
130
|
|
|
132
131
|
case "h2":
|
|
@@ -135,6 +134,7 @@ const getWeight = variant => {
|
|
|
135
134
|
case "segment-subheader-alt":
|
|
136
135
|
case "b":
|
|
137
136
|
case "em":
|
|
137
|
+
case "strong":
|
|
138
138
|
return "700";
|
|
139
139
|
|
|
140
140
|
case "h4":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "106.1
|
|
3
|
+
"version": "106.2.1",
|
|
4
4
|
"description": "A library of reusable React components for easily building user interfaces.",
|
|
5
5
|
"engineStrict": true,
|
|
6
6
|
"engines": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"conventional-changelog-conventionalcommits": "^4.5.0",
|
|
112
112
|
"core-js": "^3.20.3",
|
|
113
113
|
"cross-env": "^5.2.0",
|
|
114
|
-
"cypress": "^9.
|
|
114
|
+
"cypress": "^9.6.0",
|
|
115
115
|
"cypress-axe": "^0.14.0",
|
|
116
116
|
"cypress-cucumber-preprocessor": "^4.3.1",
|
|
117
117
|
"cypress-each": "^1.11.0",
|