carbon-react 106.1.7 → 106.2.2
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/dialog-full-screen/dialog-full-screen.d.ts +2 -2
- package/esm/components/form/form.style.js +7 -0
- package/esm/components/typography/typography.component.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.d.ts +2 -2
- 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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { ModalProps } from "../modal/modal";
|
|
3
3
|
|
|
4
4
|
export interface DialogFullScreenProps extends ModalProps {
|
|
5
5
|
/** Prop to specify the aria-describedby property of the DialogFullscreen component */
|
|
@@ -18,7 +18,7 @@ export interface DialogFullScreenProps extends ModalProps {
|
|
|
18
18
|
/** Child elements */
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
/** Reference to the scrollable content element */
|
|
21
|
-
contentRef
|
|
21
|
+
contentRef?:
|
|
22
22
|
| React.MutableRefObject<HTMLElement>
|
|
23
23
|
| (() => React.MutableRefObject<HTMLElement>);
|
|
24
24
|
/** Disables auto focus functionality on child elements */
|
|
@@ -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":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { ModalProps } from "../modal/modal";
|
|
3
3
|
|
|
4
4
|
export interface DialogFullScreenProps extends ModalProps {
|
|
5
5
|
/** Prop to specify the aria-describedby property of the DialogFullscreen component */
|
|
@@ -18,7 +18,7 @@ export interface DialogFullScreenProps extends ModalProps {
|
|
|
18
18
|
/** Child elements */
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
/** Reference to the scrollable content element */
|
|
21
|
-
contentRef
|
|
21
|
+
contentRef?:
|
|
22
22
|
| React.MutableRefObject<HTMLElement>
|
|
23
23
|
| (() => React.MutableRefObject<HTMLElement>);
|
|
24
24
|
/** Disables auto focus functionality on child elements */
|
|
@@ -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.
|
|
3
|
+
"version": "106.2.2",
|
|
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",
|