@clayui/tabs 3.82.0 → 3.83.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.js CHANGED
@@ -49,12 +49,12 @@ function List(_ref) {
49
49
 
50
50
  var _useNavigation = (0, _shared.useNavigation)({
51
51
  activation: activation,
52
- containeRef: tabsRef,
52
+ containerRef: tabsRef,
53
53
  orientation: 'horizontal'
54
54
  }),
55
- onKeyDown = _useNavigation.onKeyDown;
55
+ navigationProps = _useNavigation.navigationProps;
56
56
 
57
- return /*#__PURE__*/_react.default.createElement("ul", _extends({}, otherProps, {
57
+ return /*#__PURE__*/_react.default.createElement("ul", _extends({}, otherProps, navigationProps, {
58
58
  className: (0, _classnames.default)('nav', {
59
59
  'nav-justified': justified
60
60
  }, !displayType ? {
@@ -64,7 +64,6 @@ function List(_ref) {
64
64
  'nav-tabs': displayType === 'basic',
65
65
  'nav-underline': displayType === 'underline'
66
66
  }, className),
67
- onKeyDown: onKeyDown,
68
67
  ref: tabsRef,
69
68
  role: "tablist"
70
69
  }), _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.82.0",
3
+ "version": "3.83.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.82.0",
29
+ "@clayui/shared": "^3.83.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": "ee9029ba2b53a94656be608165a77497b2b6708a"
40
+ "gitHead": "9b7680bbf4487ceba9b2ff6521fab431c79e97d9"
41
41
  }
package/src/List.tsx CHANGED
@@ -68,15 +68,16 @@ export function List({
68
68
  }: IProps) {
69
69
  const tabsRef = useRef<HTMLUListElement>(null);
70
70
 
71
- const {onKeyDown} = useNavigation({
71
+ const {navigationProps} = useNavigation({
72
72
  activation,
73
- containeRef: tabsRef,
73
+ containerRef: tabsRef,
74
74
  orientation: 'horizontal',
75
75
  });
76
76
 
77
77
  return (
78
78
  <ul
79
79
  {...otherProps}
80
+ {...navigationProps}
80
81
  className={classNames(
81
82
  'nav',
82
83
  {'nav-justified': justified},
@@ -92,7 +93,6 @@ export function List({
92
93
 
93
94
  className
94
95
  )}
95
- onKeyDown={onKeyDown}
96
96
  ref={tabsRef}
97
97
  role="tablist"
98
98
  >