@redocly/theme 0.69.0-next.3 → 0.69.0-next.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.
@@ -116,7 +116,7 @@ function MenuItemImpl(props) {
116
116
  deprecated: item.deprecated,
117
117
  httpVerb: item.httpVerb || '',
118
118
  });
119
- const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { $active: item.active, $deprecated: item.deprecated, $depth: depth, $withChevron: hasChevron, $isSeparator: isSeparator, onClick: handleOnClick, onKeyDown: handleExpandOnEnter, ref: labelRef, role: item.link ? 'none' : 'link', tabIndex: !item.link ? 0 : undefined, "data-testid": "menu-item-label", "data-active": item.active },
119
+ const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { $active: item.active, $deprecated: item.deprecated, $depth: depth, $withChevron: hasChevron, $isSeparator: isSeparator, onClick: handleOnClick, onKeyDown: handleExpandOnEnter, ref: labelRef, role: item.link || isSeparator ? 'none' : 'link', tabIndex: !item.link && !isSeparator ? 0 : undefined, "data-testid": "menu-item-label", "data-active": item.active },
120
120
  hasChevron ? react_1.default.createElement(ChevronWrapper, null, chevron) : null,
121
121
  react_1.default.createElement(MenuItemIcon, { icon: item.icon, srcSet: item.srcSet }),
122
122
  react_1.default.createElement(MenuItemLabelTextWrapper, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.69.0-next.3",
3
+ "version": "0.69.0-next.5",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -73,7 +73,7 @@
73
73
  "dependencies": {
74
74
  "@tanstack/react-query": "5.62.3",
75
75
  "@tanstack/react-virtual": "3.13.0",
76
- "@xyflow/react": "^12.8.2",
76
+ "@xyflow/react": "12.8.3",
77
77
  "copy-to-clipboard": "3.3.3",
78
78
  "file-saver": "2.0.5",
79
79
  "highlight-words-core": "1.2.2",
@@ -88,6 +88,15 @@
88
88
  "react-date-picker": "11.0.0",
89
89
  "@redocly/config": "0.53.1"
90
90
  },
91
+ "nx": {
92
+ "targets": {
93
+ "vitest:test": {
94
+ "dependsOn": [
95
+ "build"
96
+ ]
97
+ }
98
+ }
99
+ },
91
100
  "scripts": {
92
101
  "watch": "tsgo -p tsconfig.build.json && (concurrently \"tsgo -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
93
102
  "ts:check": "tsgo --noEmit --skipLibCheck",
@@ -122,8 +122,8 @@ function MenuItemImpl(props: React.PropsWithChildren<MenuItemProps>): JSX.Elemen
122
122
  onClick={handleOnClick}
123
123
  onKeyDown={handleExpandOnEnter}
124
124
  ref={labelRef}
125
- role={item.link ? 'none' : 'link'}
126
- tabIndex={!item.link ? 0 : undefined}
125
+ role={item.link || isSeparator ? 'none' : 'link'}
126
+ tabIndex={!item.link && !isSeparator ? 0 : undefined}
127
127
  data-testid="menu-item-label"
128
128
  data-active={item.active}
129
129
  >