@idealyst/navigation 1.0.87 → 1.0.89
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/navigation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.89",
|
|
4
4
|
"description": "Cross-platform navigation library for React and React Native",
|
|
5
5
|
"readme": "README.md",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"publish:npm": "npm publish"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@idealyst/components": "^1.0.
|
|
47
|
-
"@idealyst/theme": "^1.0.
|
|
46
|
+
"@idealyst/components": "^1.0.89",
|
|
47
|
+
"@idealyst/theme": "^1.0.89",
|
|
48
48
|
"@react-navigation/bottom-tabs": ">=7.0.0",
|
|
49
49
|
"@react-navigation/drawer": ">=7.0.0",
|
|
50
50
|
"@react-navigation/native": ">=7.0.0",
|
|
@@ -60,16 +60,17 @@
|
|
|
60
60
|
"react-router-dom": ">=6.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@idealyst/components": "^1.0.
|
|
64
|
-
"@idealyst/datagrid": "^1.0.
|
|
65
|
-
"@idealyst/datepicker": "^1.0.
|
|
66
|
-
"@idealyst/theme": "^1.0.
|
|
63
|
+
"@idealyst/components": "^1.0.89",
|
|
64
|
+
"@idealyst/datagrid": "^1.0.89",
|
|
65
|
+
"@idealyst/datepicker": "^1.0.89",
|
|
66
|
+
"@idealyst/theme": "^1.0.89",
|
|
67
67
|
"@types/react": "^19.1.8",
|
|
68
68
|
"@types/react-dom": "^19.1.6",
|
|
69
69
|
"react": "^19.1.0",
|
|
70
70
|
"react-native": "^0.80.1",
|
|
71
71
|
"react-native-unistyles": "^3.0.10",
|
|
72
72
|
"react-router": "7.9.1",
|
|
73
|
+
"react-router-dom": "7.9.1",
|
|
73
74
|
"typescript": "^5.0.0"
|
|
74
75
|
},
|
|
75
76
|
"files": [
|
|
@@ -65,7 +65,7 @@ export const DefaultTabLayout: React.FC<DefaultTabLayoutProps> = ({
|
|
|
65
65
|
return (
|
|
66
66
|
<Button
|
|
67
67
|
key={route.path}
|
|
68
|
-
|
|
68
|
+
type={isActive ? 'contained' : 'outlined'}
|
|
69
69
|
intent={isActive ? 'primary' : undefined}
|
|
70
70
|
size="sm"
|
|
71
71
|
onPress={() => navigator.navigate({
|
|
@@ -81,12 +81,12 @@ export const DefaultTabLayout: React.FC<DefaultTabLayoutProps> = ({
|
|
|
81
81
|
<Icon
|
|
82
82
|
name={icon as any}
|
|
83
83
|
size="sm"
|
|
84
|
-
color=
|
|
84
|
+
color='blue'
|
|
85
85
|
/>
|
|
86
86
|
)}
|
|
87
87
|
<Text
|
|
88
88
|
size="sm"
|
|
89
|
-
color={
|
|
89
|
+
color={'primary'}
|
|
90
90
|
weight={isActive ? 'semibold' : 'medium'}
|
|
91
91
|
>
|
|
92
92
|
{label}
|
package/src/router/index.ts
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
//
|
|
2
|
-
// This
|
|
3
|
-
|
|
1
|
+
// Export all React Router modules from a centralized location
|
|
2
|
+
// This prevents duplication issues when multiple packages need React Router
|
|
3
|
+
|
|
4
|
+
// Re-export everything from react-router-dom
|
|
5
|
+
// This includes all react-router exports plus the DOM-specific ones
|
|
6
|
+
import {
|
|
7
|
+
BrowserRouter,
|
|
8
|
+
HashRouter,
|
|
9
|
+
MemoryRouter,
|
|
10
|
+
Router,
|
|
11
|
+
useNavigate,
|
|
12
|
+
useLocation,
|
|
13
|
+
useParams,
|
|
14
|
+
useSearchParams,
|
|
15
|
+
Navigate,
|
|
16
|
+
Outlet,
|
|
17
|
+
Route,
|
|
18
|
+
Routes,
|
|
19
|
+
Link,
|
|
20
|
+
NavLink
|
|
21
|
+
} from 'react-router-dom'
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
BrowserRouter,
|
|
26
|
+
HashRouter,
|
|
27
|
+
MemoryRouter,
|
|
28
|
+
Router,
|
|
29
|
+
useNavigate,
|
|
30
|
+
useLocation,
|
|
31
|
+
useParams,
|
|
32
|
+
useSearchParams,
|
|
33
|
+
Navigate,
|
|
34
|
+
Outlet,
|
|
35
|
+
Route,
|
|
36
|
+
Routes,
|
|
37
|
+
Link,
|
|
38
|
+
NavLink
|
|
39
|
+
};
|
package/src/router/index.web.ts
CHANGED
|
@@ -3,4 +3,37 @@
|
|
|
3
3
|
|
|
4
4
|
// Re-export everything from react-router-dom
|
|
5
5
|
// This includes all react-router exports plus the DOM-specific ones
|
|
6
|
-
|
|
6
|
+
import {
|
|
7
|
+
BrowserRouter,
|
|
8
|
+
HashRouter,
|
|
9
|
+
MemoryRouter,
|
|
10
|
+
Router,
|
|
11
|
+
useNavigate,
|
|
12
|
+
useLocation,
|
|
13
|
+
useParams,
|
|
14
|
+
useSearchParams,
|
|
15
|
+
Navigate,
|
|
16
|
+
Outlet,
|
|
17
|
+
Route,
|
|
18
|
+
Routes,
|
|
19
|
+
Link,
|
|
20
|
+
NavLink
|
|
21
|
+
} from 'react-router-dom'
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
BrowserRouter,
|
|
26
|
+
HashRouter,
|
|
27
|
+
MemoryRouter,
|
|
28
|
+
Router,
|
|
29
|
+
useNavigate,
|
|
30
|
+
useLocation,
|
|
31
|
+
useParams,
|
|
32
|
+
useSearchParams,
|
|
33
|
+
Navigate,
|
|
34
|
+
Outlet,
|
|
35
|
+
Route,
|
|
36
|
+
Routes,
|
|
37
|
+
Link,
|
|
38
|
+
NavLink
|
|
39
|
+
};
|