@desynova-digital/components 8.19.54 → 8.19.55
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/molecules/tabs/tabs.js +10 -9
- package/package.json +2 -2
package/molecules/tabs/tabs.js
CHANGED
|
@@ -171,14 +171,15 @@ var Tabs = function (_React$Component) {
|
|
|
171
171
|
var parentTabRef = _react2.default.createRef();
|
|
172
172
|
|
|
173
173
|
return _react2.default.createElement(
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
_react2.default.Fragment,
|
|
175
|
+
null,
|
|
176
176
|
_react2.default.createElement(
|
|
177
177
|
TabLink,
|
|
178
178
|
{
|
|
179
179
|
ref: parentTabRef,
|
|
180
180
|
selected: this.state.selectedIndex === index,
|
|
181
181
|
allowPointerEvents: true,
|
|
182
|
+
key: tab.props.label,
|
|
182
183
|
theme: this.props.theme,
|
|
183
184
|
className: this.state.selectedIndex === index ? 'tab-list-item active' : 'tab-list-item' },
|
|
184
185
|
tab.props.label,
|
|
@@ -186,7 +187,7 @@ var Tabs = function (_React$Component) {
|
|
|
186
187
|
OptionList,
|
|
187
188
|
{ className: 'option-list', style: {} },
|
|
188
189
|
tab.props.children.map(function (nestedTab, nestedIndex) {
|
|
189
|
-
return _react2.default.createElement(
|
|
190
|
+
return nestedTab ? _react2.default.createElement(
|
|
190
191
|
'div',
|
|
191
192
|
{
|
|
192
193
|
key: nestedTab.props.label,
|
|
@@ -196,7 +197,7 @@ var Tabs = function (_React$Component) {
|
|
|
196
197
|
return _this2.changeNestedTab(nestedIndex, index);
|
|
197
198
|
} },
|
|
198
199
|
nestedTab.props.label
|
|
199
|
-
);
|
|
200
|
+
) : null;
|
|
200
201
|
})
|
|
201
202
|
)
|
|
202
203
|
)
|
|
@@ -219,20 +220,20 @@ var Tabs = function (_React$Component) {
|
|
|
219
220
|
return val1.props.index - val2.props.index;
|
|
220
221
|
}).map(function (tab, index) {
|
|
221
222
|
return _react2.default.createElement(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
!
|
|
223
|
+
_react2.default.Fragment,
|
|
224
|
+
null,
|
|
225
|
+
!tab.props.abstract ? _react2.default.createElement(
|
|
225
226
|
TabLink,
|
|
226
227
|
{
|
|
227
228
|
onClick: function onClick() {
|
|
228
229
|
return _this3.changeTab(index);
|
|
229
230
|
},
|
|
231
|
+
key: tab.props.label,
|
|
230
232
|
selected: selectedIndex === index,
|
|
231
233
|
theme: _this3.props.theme,
|
|
232
234
|
className: selectedIndex === index ? 'tab-list-item active' : 'tab-list-item' },
|
|
233
235
|
tab.props.label
|
|
234
|
-
),
|
|
235
|
-
tab.props.children && _this3.renderNestedTabs(tab, index)
|
|
236
|
+
) : _this3.renderNestedTabs(tab, index)
|
|
236
237
|
);
|
|
237
238
|
})
|
|
238
239
|
),
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.55",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "8.19.
|
|
10
|
+
"@desynova-digital/tokens": "8.19.55",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|