carbon-react 106.6.4 → 106.6.5

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.
@@ -2,53 +2,13 @@ export default Heading;
2
2
  declare class Heading extends React.Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
- /**
6
- * Returns the help component.
7
- *
8
- * @method help
9
- * @return {Object} JSX
10
- */
11
- get help(): Object;
12
- /**
13
- * Returns the back button.
14
- *
15
- * @method back
16
- * @return {Object} JSX
17
- */
18
- get back(): Object;
19
- /**
20
- * Returns the subheader.
21
- *
22
- * @method subheader
23
- * @return {Object} JSX
24
- */
25
- get subheader(): Object;
26
- /**
27
- * Returns the separator if enabled and needed.
28
- *
29
- * @method separator
30
- * @return {Object} JSX
31
- */
32
- get separator(): Object;
33
- /**
34
- * Returns the separator if enabled and needed.
35
- *
36
- * @method divider
37
- * @return {Object} JSX
38
- */
39
- get divider(): Object;
40
- /**
41
- * Returns pills if provided
42
- *
43
- * @method pills
44
- * @return {Object} JSX
45
- */
46
- get pills(): Object;
47
- /**
48
- * @method render
49
- * @return {Object} JSX
50
- */
51
- render(): Object;
5
+ get help(): JSX.Element | null;
6
+ get back(): JSX.Element | null;
7
+ get subheader(): JSX.Element | null;
8
+ get separator(): JSX.Element | null;
9
+ get divider(): JSX.Element | null;
10
+ get pills(): JSX.Element | null;
11
+ render(): JSX.Element | null;
52
12
  }
53
13
  declare namespace Heading {
54
14
  const propTypes: {
@@ -41,14 +41,7 @@ let Heading = /*#__PURE__*/function (_React$Component) {
41
41
 
42
42
  _createClass(Heading, [{
43
43
  key: "help",
44
- get:
45
- /**
46
- * Returns the help component.
47
- *
48
- * @method help
49
- * @return {Object} JSX
50
- */
51
- function () {
44
+ get: function () {
52
45
  if (!this.props.help && !this.props.helpLink) {
53
46
  return null;
54
47
  }
@@ -60,13 +53,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
60
53
  ariaLabel: this.props.helpAriaLabel
61
54
  }, this.props.help);
62
55
  }
63
- /**
64
- * Returns the back button.
65
- *
66
- * @method back
67
- * @return {Object} JSX
68
- */
69
-
70
56
  }, {
71
57
  key: "back",
72
58
  get: function () {
@@ -95,13 +81,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
95
81
  divider: this.props.divider
96
82
  }));
97
83
  }
98
- /**
99
- * Returns the subheader.
100
- *
101
- * @method subheader
102
- * @return {Object} JSX
103
- */
104
-
105
84
  }, {
106
85
  key: "subheader",
107
86
  get: function () {
@@ -116,25 +95,11 @@ let Heading = /*#__PURE__*/function (_React$Component) {
116
95
  hasSeparator: this.props.separator
117
96
  }, this.props.subheader);
118
97
  }
119
- /**
120
- * Returns the separator if enabled and needed.
121
- *
122
- * @method separator
123
- * @return {Object} JSX
124
- */
125
-
126
98
  }, {
127
99
  key: "separator",
128
100
  get: function () {
129
101
  return this.props.separator ? /*#__PURE__*/React.createElement(StyledSeparator, null) : null;
130
102
  }
131
- /**
132
- * Returns the separator if enabled and needed.
133
- *
134
- * @method divider
135
- * @return {Object} JSX
136
- */
137
-
138
103
  }, {
139
104
  key: "divider",
140
105
  get: function () {
@@ -142,13 +107,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
142
107
  "data-element": "divider"
143
108
  }) : null;
144
109
  }
145
- /**
146
- * Returns pills if provided
147
- *
148
- * @method pills
149
- * @return {Object} JSX
150
- */
151
-
152
110
  }, {
153
111
  key: "pills",
154
112
  get: function () {
@@ -156,11 +114,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
156
114
  "data-element": "pills"
157
115
  }, this.props.pills) : null;
158
116
  }
159
- /**
160
- * @method render
161
- * @return {Object} JSX
162
- */
163
-
164
117
  }, {
165
118
  key: "render",
166
119
  value: function render() {
@@ -2,53 +2,13 @@ export default Heading;
2
2
  declare class Heading extends React.Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
- /**
6
- * Returns the help component.
7
- *
8
- * @method help
9
- * @return {Object} JSX
10
- */
11
- get help(): Object;
12
- /**
13
- * Returns the back button.
14
- *
15
- * @method back
16
- * @return {Object} JSX
17
- */
18
- get back(): Object;
19
- /**
20
- * Returns the subheader.
21
- *
22
- * @method subheader
23
- * @return {Object} JSX
24
- */
25
- get subheader(): Object;
26
- /**
27
- * Returns the separator if enabled and needed.
28
- *
29
- * @method separator
30
- * @return {Object} JSX
31
- */
32
- get separator(): Object;
33
- /**
34
- * Returns the separator if enabled and needed.
35
- *
36
- * @method divider
37
- * @return {Object} JSX
38
- */
39
- get divider(): Object;
40
- /**
41
- * Returns pills if provided
42
- *
43
- * @method pills
44
- * @return {Object} JSX
45
- */
46
- get pills(): Object;
47
- /**
48
- * @method render
49
- * @return {Object} JSX
50
- */
51
- render(): Object;
5
+ get help(): JSX.Element | null;
6
+ get back(): JSX.Element | null;
7
+ get subheader(): JSX.Element | null;
8
+ get separator(): JSX.Element | null;
9
+ get divider(): JSX.Element | null;
10
+ get pills(): JSX.Element | null;
11
+ render(): JSX.Element | null;
52
12
  }
53
13
  declare namespace Heading {
54
14
  const propTypes: {
@@ -56,14 +56,7 @@ let Heading = /*#__PURE__*/function (_React$Component) {
56
56
 
57
57
  _createClass(Heading, [{
58
58
  key: "help",
59
- get:
60
- /**
61
- * Returns the help component.
62
- *
63
- * @method help
64
- * @return {Object} JSX
65
- */
66
- function () {
59
+ get: function () {
67
60
  if (!this.props.help && !this.props.helpLink) {
68
61
  return null;
69
62
  }
@@ -75,13 +68,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
75
68
  ariaLabel: this.props.helpAriaLabel
76
69
  }, this.props.help);
77
70
  }
78
- /**
79
- * Returns the back button.
80
- *
81
- * @method back
82
- * @return {Object} JSX
83
- */
84
-
85
71
  }, {
86
72
  key: "back",
87
73
  get: function () {
@@ -110,13 +96,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
110
96
  divider: this.props.divider
111
97
  }));
112
98
  }
113
- /**
114
- * Returns the subheader.
115
- *
116
- * @method subheader
117
- * @return {Object} JSX
118
- */
119
-
120
99
  }, {
121
100
  key: "subheader",
122
101
  get: function () {
@@ -131,25 +110,11 @@ let Heading = /*#__PURE__*/function (_React$Component) {
131
110
  hasSeparator: this.props.separator
132
111
  }, this.props.subheader);
133
112
  }
134
- /**
135
- * Returns the separator if enabled and needed.
136
- *
137
- * @method separator
138
- * @return {Object} JSX
139
- */
140
-
141
113
  }, {
142
114
  key: "separator",
143
115
  get: function () {
144
116
  return this.props.separator ? /*#__PURE__*/_react.default.createElement(_heading.StyledSeparator, null) : null;
145
117
  }
146
- /**
147
- * Returns the separator if enabled and needed.
148
- *
149
- * @method divider
150
- * @return {Object} JSX
151
- */
152
-
153
118
  }, {
154
119
  key: "divider",
155
120
  get: function () {
@@ -157,13 +122,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
157
122
  "data-element": "divider"
158
123
  }) : null;
159
124
  }
160
- /**
161
- * Returns pills if provided
162
- *
163
- * @method pills
164
- * @return {Object} JSX
165
- */
166
-
167
125
  }, {
168
126
  key: "pills",
169
127
  get: function () {
@@ -171,11 +129,6 @@ let Heading = /*#__PURE__*/function (_React$Component) {
171
129
  "data-element": "pills"
172
130
  }, this.props.pills) : null;
173
131
  }
174
- /**
175
- * @method render
176
- * @return {Object} JSX
177
- */
178
-
179
132
  }, {
180
133
  key: "render",
181
134
  value: function render() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "106.6.4",
3
+ "version": "106.6.5",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {