@nethru/ui 1.0.23 → 1.0.24

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.
@@ -20,7 +20,7 @@ export default function ReferenceChipList({
20
20
  return reference.href ? /*#__PURE__*/_jsx(Link, {
21
21
  href: reference.href,
22
22
  underline: "none",
23
- onClick: onClick,
23
+ onClick: event => onClick(reference.id, event),
24
24
  children: /*#__PURE__*/_jsx(ReferenceChip, {
25
25
  name: reference.name,
26
26
  sx: chipStyles,
@@ -28,7 +28,7 @@ export default function ReferenceChipList({
28
28
  })
29
29
  }, index) : /*#__PURE__*/_jsx(ReferenceChip, {
30
30
  name: reference.name,
31
- onClick: onClick,
31
+ onClick: event => onClick(reference.id, event),
32
32
  sx: {
33
33
  cursor: 'default',
34
34
  ...chipStyles
@@ -48,7 +48,7 @@ function ReferenceChip({
48
48
  label: name,
49
49
  size: "small",
50
50
  sx: {
51
- fontSize: '14px',
51
+ fontSize: '13px',
52
52
  ...sx
53
53
  },
54
54
  ...props
@@ -91,7 +91,7 @@ function updateActiveItems(draft, menu, href) {
91
91
  function updateActiveSection(sections) {
92
92
  if (!sections) return;
93
93
  for (let section of sections) {
94
- if (section.href === href) {
94
+ if (href.indexOf(section.href) === 0) {
95
95
  draft.activeSecondaryItem = section.id;
96
96
  return true;
97
97
  }
@@ -104,7 +104,7 @@ function updateActiveItems(draft, menu, href) {
104
104
  function updateActiveSubmenuItems(id, submenu) {
105
105
  if (!submenu) return;
106
106
  for (let item of submenu) {
107
- if (item.href === href) {
107
+ if (href.indexOf(item.href) === 0) {
108
108
  if (!(id in draft.menuTrees)) draft.menuTrees[id] = emptyState();
109
109
  draft.activeSecondaryItem = item.id;
110
110
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "/dist"
@@ -25,7 +25,7 @@
25
25
  "immer": "^10.0.3",
26
26
  "react": "^18.2.0",
27
27
  "react-dom": "^18.2.0",
28
- "react-router-dom": "^6.20.0",
28
+ "react-router-dom": "^6.20.1",
29
29
  "react-scripts": "5.0.1"
30
30
  },
31
31
  "scripts": {