@plesk/ui-library 3.43.0 → 3.43.1

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.
@@ -21,32 +21,36 @@ const TabListItem = _ref => {
21
21
  icon,
22
22
  onActivate,
23
23
  onClose,
24
- component: Tag = 'a',
24
+ component = 'a',
25
25
  style = {},
26
26
  ...tabProps
27
27
  } = tab.props;
28
28
  const closable = typeof onClose === 'function';
29
- tabProps.tabIndex = isFake ? -1 : tabProps.tabIndex || 0;
30
- if (!isFake) {
31
- tabProps.onKeyDown = wrapFunction(tabProps.onKeyDown, e => {
29
+ const linkProps = isFake ? {
30
+ tabIndex: -1
31
+ } : {
32
+ tabIndex: tabProps.tabIndex || 0,
33
+ onClick,
34
+ onKeyDown: wrapFunction(tabProps.onKeyDown, e => {
32
35
  if (e.key === 'Enter') {
33
36
  e.currentTarget.click();
34
37
  }
35
- });
36
- }
38
+ }),
39
+ role: 'tab',
40
+ 'aria-selected': selected || undefined,
41
+ ...tabProps
42
+ };
43
+ const Tag = isFake ? 'a' : component;
37
44
  return /*#__PURE__*/_jsx("li", {
38
45
  className: classNames(`${baseClassName}__tab`, selected && `${baseClassName}__tab--selected`, closable && `${baseClassName}__tab--closable`),
39
46
  role: isFake ? undefined : 'presentation',
40
47
  children: /*#__PURE__*/_jsxs(Tag, {
41
48
  className: `${baseClassName}__link`,
42
- role: isFake ? undefined : 'tab',
43
- "aria-selected": selected || undefined,
44
- onClick: onClick,
45
49
  style: {
46
50
  width: monospacedWidth || undefined,
47
51
  ...style
48
52
  },
49
- ...tabProps,
53
+ ...linkProps,
50
54
  children: [/*#__PURE__*/_jsx(TabIcon, {
51
55
  icon: icon,
52
56
  baseClassName: baseClassName
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Copyright 1999-2025. WebPros International GmbH. All rights reserved.
2
2
  import svg4everybody from 'svg4everybody';
3
- const version = "3.43.0";
3
+ const version = "3.43.1";
4
4
  export * from './publicPath';
5
5
  export { version };
6
6
  export * from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plesk/ui-library",
3
- "version": "3.43.0",
3
+ "version": "3.43.1",
4
4
  "description": "Plesk UI Library",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",