@clayui/tabs 3.92.0 → 3.94.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/lib/List.d.ts +1 -1
- package/lib/List.js +3 -2
- package/package.json +3 -3
- package/src/List.tsx +3 -2
package/lib/List.d.ts
CHANGED
package/lib/List.js
CHANGED
|
@@ -38,7 +38,8 @@ var List = /*#__PURE__*/_react.default.forwardRef(function List(_ref, ref) {
|
|
|
38
38
|
active = _ref.active,
|
|
39
39
|
children = _ref.children,
|
|
40
40
|
className = _ref.className,
|
|
41
|
-
|
|
41
|
+
_ref$displayType = _ref.displayType,
|
|
42
|
+
displayType = _ref$displayType === void 0 ? null : _ref$displayType,
|
|
42
43
|
justified = _ref.justified,
|
|
43
44
|
__ = _ref.modern,
|
|
44
45
|
onActiveChange = _ref.onActiveChange,
|
|
@@ -83,7 +84,7 @@ var List = /*#__PURE__*/_react.default.forwardRef(function List(_ref, ref) {
|
|
|
83
84
|
return /*#__PURE__*/_react.default.createElement("ul", _extends({}, otherProps, navigationProps, {
|
|
84
85
|
className: (0, _classnames.default)('nav nav-tabs', {
|
|
85
86
|
'nav-justified': justified
|
|
86
|
-
}, className),
|
|
87
|
+
}, _defineProperty({}, "nav-tabs-".concat(displayType), displayType === 'light'), className),
|
|
87
88
|
ref: tabsRef,
|
|
88
89
|
role: "tablist"
|
|
89
90
|
}), _react.default.Children.map(children, function (child, index) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/tabs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.94.0",
|
|
4
4
|
"description": "ClayTabs component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@clayui/shared": "^3.
|
|
29
|
+
"@clayui/shared": "^3.94.0",
|
|
30
30
|
"classnames": "^2.2.6"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"browserslist": [
|
|
38
38
|
"extends browserslist-config-clay"
|
|
39
39
|
],
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "763516104f08bd49c182555c343e288a8fc06015"
|
|
41
41
|
}
|
package/src/List.tsx
CHANGED
|
@@ -31,7 +31,7 @@ export interface IProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
|
31
31
|
/**
|
|
32
32
|
* @ignore
|
|
33
33
|
*/
|
|
34
|
-
displayType?: null | 'basic' | 'underline';
|
|
34
|
+
displayType?: null | 'basic' | 'light' | 'underline';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @ignore
|
|
@@ -65,7 +65,7 @@ export const List = React.forwardRef<HTMLUListElement, IProps>(function List(
|
|
|
65
65
|
active,
|
|
66
66
|
children,
|
|
67
67
|
className,
|
|
68
|
-
displayType
|
|
68
|
+
displayType = null,
|
|
69
69
|
justified,
|
|
70
70
|
modern: __,
|
|
71
71
|
onActiveChange,
|
|
@@ -114,6 +114,7 @@ export const List = React.forwardRef<HTMLUListElement, IProps>(function List(
|
|
|
114
114
|
className={classNames(
|
|
115
115
|
'nav nav-tabs',
|
|
116
116
|
{'nav-justified': justified},
|
|
117
|
+
{[`nav-tabs-${displayType}`]: displayType === 'light'},
|
|
117
118
|
className
|
|
118
119
|
)}
|
|
119
120
|
ref={tabsRef}
|