@admin-layout/tailwind-ui 12.0.16-alpha.31 → 12.0.16-alpha.36

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/components/PageContainer/PageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+DtD,CAAC"}
1
+ {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/components/PageContainer/PageContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgEtD,CAAC"}
@@ -12,7 +12,8 @@ import {jsx,jsxs}from'react/jsx-runtime';import {useState,useEffect}from'react';
12
12
  useEffect(() => {
13
13
  if (tabList && tabList.length > 0) {
14
14
  const currentPath = location.pathname;
15
- const matchedTab = tabList.find(tab => currentPath === tab.path);
15
+ // Find a tab where the current path starts with the tab's path (to handle child routes)
16
+ const matchedTab = tabList.find(tab => currentPath.startsWith(tab.path));
16
17
  const defaultKey = tabList[0]?.path;
17
18
  setActiveTabKey(matchedTab ? matchedTab.path : defaultKey);
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"PageContainer.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/tailwind-ui",
3
- "version": "12.0.16-alpha.31",
3
+ "version": "12.0.16-alpha.36",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -28,7 +28,7 @@
28
28
  "watch": "npm run build:lib:watch"
29
29
  },
30
30
  "dependencies": {
31
- "@admin-layout/client": "12.0.16-alpha.31",
31
+ "@admin-layout/client": "12.0.16-alpha.36",
32
32
  "@radix-ui/react-accordion": "^1.2.0",
33
33
  "@radix-ui/react-alert-dialog": "^1.1.1",
34
34
  "@radix-ui/react-aspect-ratio": "^1.1.0",
@@ -86,5 +86,5 @@
86
86
  "typescript": {
87
87
  "definition": "lib/index.d.ts"
88
88
  },
89
- "gitHead": "751668a2d5be3856d10801461ddb9bab115bcf34"
89
+ "gitHead": "5aa0a447ed0dc9f84bd1b6a6dcab85bf0e7c57d4"
90
90
  }