@react-navigation/native 8.0.0-alpha.22 → 8.0.0-alpha.23
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/lib/module/theming/MaterialFallbackTheme.js +28 -0
- package/lib/module/theming/MaterialFallbackTheme.js.map +1 -0
- package/lib/module/theming/MaterialTheme.android.js +7 -3
- package/lib/module/theming/MaterialTheme.android.js.map +1 -1
- package/lib/module/theming/MaterialTheme.js +1 -15
- package/lib/module/theming/MaterialTheme.js.map +1 -1
- package/lib/module/useLinking.native.js +0 -1
- package/lib/module/useLinking.native.js.map +1 -1
- package/lib/typescript/src/theming/MaterialFallbackTheme.d.ts +127 -0
- package/lib/typescript/src/theming/MaterialFallbackTheme.d.ts.map +1 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts +124 -0
- package/lib/typescript/src/theming/MaterialTheme.android.d.ts.map +1 -1
- package/lib/typescript/src/theming/MaterialTheme.d.ts +1 -113
- package/lib/typescript/src/theming/MaterialTheme.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/theming/MaterialFallbackTheme.tsx +29 -0
- package/src/theming/MaterialTheme.android.tsx +18 -3
- package/src/theming/MaterialTheme.tsx +4 -19
- package/src/useLinking.native.tsx +0 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { fonts } from "./fonts.js";
|
|
4
|
+
export const MaterialLightFallbackTheme = {
|
|
5
|
+
dark: false,
|
|
6
|
+
colors: {
|
|
7
|
+
primary: '#6750a4',
|
|
8
|
+
background: '#f3edf7',
|
|
9
|
+
card: '#fef7ff',
|
|
10
|
+
text: '#1d1b20',
|
|
11
|
+
border: '#cac4d0',
|
|
12
|
+
notification: '#ba1a1a'
|
|
13
|
+
},
|
|
14
|
+
fonts
|
|
15
|
+
};
|
|
16
|
+
export const MaterialDarkFallbackTheme = {
|
|
17
|
+
dark: true,
|
|
18
|
+
colors: {
|
|
19
|
+
primary: '#d0bcff',
|
|
20
|
+
background: '#211f26',
|
|
21
|
+
card: '#141218',
|
|
22
|
+
text: '#e6e0e9',
|
|
23
|
+
border: '#49454f',
|
|
24
|
+
notification: '#ffb4ab'
|
|
25
|
+
},
|
|
26
|
+
fonts
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=MaterialFallbackTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fonts","MaterialLightFallbackTheme","dark","colors","primary","background","card","text","border","notification","MaterialDarkFallbackTheme"],"sourceRoot":"../../../src","sources":["theming/MaterialFallbackTheme.tsx"],"mappings":";;AAEA,SAASA,KAAK,QAAQ,YAAS;AAE/B,OAAO,MAAMC,0BAA0B,GAAG;EACxCC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE;IACNC,OAAO,EAAE,SAAS;IAClBC,UAAU,EAAE,SAAS;IACrBC,IAAI,EAAE,SAAS;IACfC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE,SAAS;IACjBC,YAAY,EAAE;EAChB,CAAC;EACDT;AACF,CAA0B;AAE1B,OAAO,MAAMU,yBAAyB,GAAG;EACvCR,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE;IACNC,OAAO,EAAE,SAAS;IAClBC,UAAU,EAAE,SAAS;IACrBC,IAAI,EAAE,SAAS;IACfC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE,SAAS;IACjBC,YAAY,EAAE;EAChB,CAAC;EACDT;AACF,CAA0B","ignoreList":[]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { PlatformColor } from 'react-native';
|
|
3
|
+
import { Platform, PlatformColor } from 'react-native';
|
|
4
4
|
import { fonts } from "./fonts.js";
|
|
5
|
-
|
|
5
|
+
import { MaterialDarkFallbackTheme, MaterialLightFallbackTheme } from "./MaterialFallbackTheme.js";
|
|
6
|
+
const isDynamicThemeSupported = Platform.OS === 'android' && Platform.Version >= 34;
|
|
7
|
+
const MaterialLightDynamicTheme = {
|
|
6
8
|
dark: false,
|
|
7
9
|
colors: {
|
|
8
10
|
primary: PlatformColor('@android:color/system_primary_light'),
|
|
@@ -14,7 +16,7 @@ export const MaterialLightTheme = {
|
|
|
14
16
|
},
|
|
15
17
|
fonts
|
|
16
18
|
};
|
|
17
|
-
|
|
19
|
+
const MaterialDarkDynamicTheme = {
|
|
18
20
|
dark: true,
|
|
19
21
|
colors: {
|
|
20
22
|
primary: PlatformColor('@android:color/system_primary_dark'),
|
|
@@ -26,4 +28,6 @@ export const MaterialDarkTheme = {
|
|
|
26
28
|
},
|
|
27
29
|
fonts
|
|
28
30
|
};
|
|
31
|
+
export const MaterialLightTheme = isDynamicThemeSupported ? MaterialLightDynamicTheme : MaterialLightFallbackTheme;
|
|
32
|
+
export const MaterialDarkTheme = isDynamicThemeSupported ? MaterialDarkDynamicTheme : MaterialDarkFallbackTheme;
|
|
29
33
|
//# sourceMappingURL=MaterialTheme.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlatformColor","fonts","
|
|
1
|
+
{"version":3,"names":["Platform","PlatformColor","fonts","MaterialDarkFallbackTheme","MaterialLightFallbackTheme","isDynamicThemeSupported","OS","Version","MaterialLightDynamicTheme","dark","colors","primary","background","card","text","border","notification","MaterialDarkDynamicTheme","MaterialLightTheme","MaterialDarkTheme"],"sourceRoot":"../../../src","sources":["theming/MaterialTheme.android.tsx"],"mappings":";;AACA,SAASA,QAAQ,EAAEC,aAAa,QAAQ,cAAc;AAEtD,SAASC,KAAK,QAAQ,YAAS;AAC/B,SACEC,yBAAyB,EACzBC,0BAA0B,QACrB,4BAAyB;AAEhC,MAAMC,uBAAuB,GAC3BL,QAAQ,CAACM,EAAE,KAAK,SAAS,IAAIN,QAAQ,CAACO,OAAO,IAAI,EAAE;AAErD,MAAMC,yBAAyB,GAAG;EAChCC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE;IACNC,OAAO,EAAEV,aAAa,CAAC,qCAAqC,CAAC;IAC7DW,UAAU,EAAEX,aAAa,CAAC,+CAA+C,CAAC;IAC1EY,IAAI,EAAEZ,aAAa,CAAC,wCAAwC,CAAC;IAC7Da,IAAI,EAAEb,aAAa,CAAC,wCAAwC,CAAC;IAC7Dc,MAAM,EAAEd,aAAa,CAAC,6CAA6C,CAAC;IACpEe,YAAY,EAAEf,aAAa,CAAC,mCAAmC;EACjE,CAAC;EACDC;AACF,CAA0B;AAE1B,MAAMe,wBAAwB,GAAG;EAC/BR,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE;IACNC,OAAO,EAAEV,aAAa,CAAC,oCAAoC,CAAC;IAC5DW,UAAU,EAAEX,aAAa,CAAC,8CAA8C,CAAC;IACzEY,IAAI,EAAEZ,aAAa,CAAC,uCAAuC,CAAC;IAC5Da,IAAI,EAAEb,aAAa,CAAC,uCAAuC,CAAC;IAC5Dc,MAAM,EAAEd,aAAa,CAAC,4CAA4C,CAAC;IACnEe,YAAY,EAAEf,aAAa,CAAC,kCAAkC;EAChE,CAAC;EACDC;AACF,CAA0B;AAE1B,OAAO,MAAMgB,kBAAkB,GAAGb,uBAAuB,GACrDG,yBAAyB,GACzBJ,0BAA0B;AAE9B,OAAO,MAAMe,iBAAiB,GAAGd,uBAAuB,GACpDY,wBAAwB,GACxBd,yBAAyB","ignoreList":[]}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
export const MaterialLightTheme = {
|
|
5
|
-
dark: false,
|
|
6
|
-
get colors() {
|
|
7
|
-
throw new Error('MaterialLightTheme is only supported on Android');
|
|
8
|
-
},
|
|
9
|
-
fonts
|
|
10
|
-
};
|
|
11
|
-
export const MaterialDarkTheme = {
|
|
12
|
-
dark: true,
|
|
13
|
-
get colors() {
|
|
14
|
-
throw new Error('MaterialDarkTheme is only supported on Android');
|
|
15
|
-
},
|
|
16
|
-
fonts
|
|
17
|
-
};
|
|
3
|
+
export { MaterialDarkFallbackTheme as MaterialDarkTheme, MaterialLightFallbackTheme as MaterialLightTheme } from "./MaterialFallbackTheme.js";
|
|
18
4
|
//# sourceMappingURL=MaterialTheme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["MaterialDarkFallbackTheme","MaterialDarkTheme","MaterialLightFallbackTheme","MaterialLightTheme"],"sourceRoot":"../../../src","sources":["theming/MaterialTheme.tsx"],"mappings":";;AAAA,SACEA,yBAAyB,IAAIC,iBAAiB,EAC9CC,0BAA0B,IAAIC,kBAAkB,QAC3C,4BAAyB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getActionFromState","getActionFromStateDefault","getStateFromPath","getStateFromPathDefault","useNavigationIndependentTree","React","Linking","Platform","getStateFromHref","linkingHandlers","Set","useLinking","ref","enabled","prefixes","filter","config","getInitialURL","Promise","race","resolve","setTimeout","subscribe","listener","callback","url","subscription","addEventListener","remove","independent","useEffect","process","env","NODE_ENV","undefined","handler","Symbol","add","timer","size","has","console","error","OS","join","trim","clearTimeout","delete","enabledRef","useRef","prefixesRef","filterRef","configRef","getInitialURLRef","getStateFromPathRef","getActionFromStateRef","current","getStateFromURL","useCallback","e","getInitialState","state","then","thenable","onfulfilled","navigation","REACT_NAVIGATION_DEVTOOLS","get","listeners","forEach","type","action","dispatch","warn","message","resetRoot"],"sourceRoot":"../../src","sources":["useLinking.native.tsx"],"mappings":";;AAAA,SACEA,kBAAkB,IAAIC,yBAAyB,EAC/CC,gBAAgB,IAAIC,uBAAuB,EAG3CC,4BAA4B,QACvB,wBAAwB;AAC/B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAEhD,SAASC,gBAAgB,QAAQ,uBAAoB;AAMrD,MAAMC,eAAe,GAAG,IAAIC,GAAG,CAAS,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,aAAa;IACxCqC,mBAAmB,CAACE,OAAO,GAAGtD,gBAAgB;IAC9CqD,qBAAqB,CAACC,OAAO,GAAGxD,kBAAkB;EACpD,CAAC,CAAC;EAEF,MAAMyD,eAAe,GAAGpD,KAAK,CAACqD,WAAW,CACtCjC,GAA8B,IAAK;IAClC,IAAI,CAACA,GAAG,EAAE;MACR,OAAOS,SAAS;IAClB;IAEA,IAAI;MACF,OAAO1B,gBAAgB,CAACiB,GAAG,EAAE;QAC3BX,QAAQ,EAAEoC,WAAW,CAACM,OAAO;QAC7BzC,MAAM,EAAEoC,SAAS,CAACK,OAAO;QACzBxC,MAAM,EAAEoC,SAAS,CAACI,OAAO;QACzBtD,gBAAgB,EAAEoD,mBAAmB,CAACE;MACxC,CAAC,CAAC;IACJ,CAAC,CAAC,OAAOG,CAAC,EAAE;
|
|
1
|
+
{"version":3,"names":["getActionFromState","getActionFromStateDefault","getStateFromPath","getStateFromPathDefault","useNavigationIndependentTree","React","Linking","Platform","getStateFromHref","linkingHandlers","Set","useLinking","ref","enabled","prefixes","filter","config","getInitialURL","Promise","race","resolve","setTimeout","subscribe","listener","callback","url","subscription","addEventListener","remove","independent","useEffect","process","env","NODE_ENV","undefined","handler","Symbol","add","timer","size","has","console","error","OS","join","trim","clearTimeout","delete","enabledRef","useRef","prefixesRef","filterRef","configRef","getInitialURLRef","getStateFromPathRef","getActionFromStateRef","current","getStateFromURL","useCallback","e","getInitialState","state","then","thenable","onfulfilled","navigation","REACT_NAVIGATION_DEVTOOLS","get","listeners","forEach","type","action","dispatch","warn","message","resetRoot"],"sourceRoot":"../../src","sources":["useLinking.native.tsx"],"mappings":";;AAAA,SACEA,kBAAkB,IAAIC,yBAAyB,EAC/CC,gBAAgB,IAAIC,uBAAuB,EAG3CC,4BAA4B,QACvB,wBAAwB;AAC/B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAEhD,SAASC,gBAAgB,QAAQ,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AEU,SAAS,CAAC,CAAC;EAExD,OAAO;IACLsC;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare const MaterialLightFallbackTheme: {
|
|
2
|
+
readonly dark: false;
|
|
3
|
+
readonly colors: {
|
|
4
|
+
readonly primary: "#6750a4";
|
|
5
|
+
readonly background: "#f3edf7";
|
|
6
|
+
readonly card: "#fef7ff";
|
|
7
|
+
readonly text: "#1d1b20";
|
|
8
|
+
readonly border: "#cac4d0";
|
|
9
|
+
readonly notification: "#ba1a1a";
|
|
10
|
+
};
|
|
11
|
+
readonly fonts: {
|
|
12
|
+
readonly regular: {
|
|
13
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
14
|
+
readonly fontWeight: "400";
|
|
15
|
+
};
|
|
16
|
+
readonly medium: {
|
|
17
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
18
|
+
readonly fontWeight: "500";
|
|
19
|
+
};
|
|
20
|
+
readonly bold: {
|
|
21
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
22
|
+
readonly fontWeight: "600";
|
|
23
|
+
};
|
|
24
|
+
readonly heavy: {
|
|
25
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
26
|
+
readonly fontWeight: "700";
|
|
27
|
+
};
|
|
28
|
+
} | {
|
|
29
|
+
readonly regular: {
|
|
30
|
+
readonly fontFamily: "System";
|
|
31
|
+
readonly fontWeight: "400";
|
|
32
|
+
};
|
|
33
|
+
readonly medium: {
|
|
34
|
+
readonly fontFamily: "System";
|
|
35
|
+
readonly fontWeight: "500";
|
|
36
|
+
};
|
|
37
|
+
readonly bold: {
|
|
38
|
+
readonly fontFamily: "System";
|
|
39
|
+
readonly fontWeight: "600";
|
|
40
|
+
};
|
|
41
|
+
readonly heavy: {
|
|
42
|
+
readonly fontFamily: "System";
|
|
43
|
+
readonly fontWeight: "700";
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
readonly regular: {
|
|
47
|
+
readonly fontFamily: "sans-serif";
|
|
48
|
+
readonly fontWeight: "normal";
|
|
49
|
+
};
|
|
50
|
+
readonly medium: {
|
|
51
|
+
readonly fontFamily: "sans-serif-medium";
|
|
52
|
+
readonly fontWeight: "normal";
|
|
53
|
+
};
|
|
54
|
+
readonly bold: {
|
|
55
|
+
readonly fontFamily: "sans-serif";
|
|
56
|
+
readonly fontWeight: "600";
|
|
57
|
+
};
|
|
58
|
+
readonly heavy: {
|
|
59
|
+
readonly fontFamily: "sans-serif";
|
|
60
|
+
readonly fontWeight: "700";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare const MaterialDarkFallbackTheme: {
|
|
65
|
+
readonly dark: true;
|
|
66
|
+
readonly colors: {
|
|
67
|
+
readonly primary: "#d0bcff";
|
|
68
|
+
readonly background: "#211f26";
|
|
69
|
+
readonly card: "#141218";
|
|
70
|
+
readonly text: "#e6e0e9";
|
|
71
|
+
readonly border: "#49454f";
|
|
72
|
+
readonly notification: "#ffb4ab";
|
|
73
|
+
};
|
|
74
|
+
readonly fonts: {
|
|
75
|
+
readonly regular: {
|
|
76
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
77
|
+
readonly fontWeight: "400";
|
|
78
|
+
};
|
|
79
|
+
readonly medium: {
|
|
80
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
81
|
+
readonly fontWeight: "500";
|
|
82
|
+
};
|
|
83
|
+
readonly bold: {
|
|
84
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
85
|
+
readonly fontWeight: "600";
|
|
86
|
+
};
|
|
87
|
+
readonly heavy: {
|
|
88
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
89
|
+
readonly fontWeight: "700";
|
|
90
|
+
};
|
|
91
|
+
} | {
|
|
92
|
+
readonly regular: {
|
|
93
|
+
readonly fontFamily: "System";
|
|
94
|
+
readonly fontWeight: "400";
|
|
95
|
+
};
|
|
96
|
+
readonly medium: {
|
|
97
|
+
readonly fontFamily: "System";
|
|
98
|
+
readonly fontWeight: "500";
|
|
99
|
+
};
|
|
100
|
+
readonly bold: {
|
|
101
|
+
readonly fontFamily: "System";
|
|
102
|
+
readonly fontWeight: "600";
|
|
103
|
+
};
|
|
104
|
+
readonly heavy: {
|
|
105
|
+
readonly fontFamily: "System";
|
|
106
|
+
readonly fontWeight: "700";
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
readonly regular: {
|
|
110
|
+
readonly fontFamily: "sans-serif";
|
|
111
|
+
readonly fontWeight: "normal";
|
|
112
|
+
};
|
|
113
|
+
readonly medium: {
|
|
114
|
+
readonly fontFamily: "sans-serif-medium";
|
|
115
|
+
readonly fontWeight: "normal";
|
|
116
|
+
};
|
|
117
|
+
readonly bold: {
|
|
118
|
+
readonly fontFamily: "sans-serif";
|
|
119
|
+
readonly fontWeight: "600";
|
|
120
|
+
};
|
|
121
|
+
readonly heavy: {
|
|
122
|
+
readonly fontFamily: "sans-serif";
|
|
123
|
+
readonly fontWeight: "700";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=MaterialFallbackTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialFallbackTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialFallbackTheme.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWb,CAAC;AAE3B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWZ,CAAC"}
|
|
@@ -1,4 +1,66 @@
|
|
|
1
1
|
export declare const MaterialLightTheme: {
|
|
2
|
+
readonly dark: false;
|
|
3
|
+
readonly colors: {
|
|
4
|
+
readonly primary: "#6750a4";
|
|
5
|
+
readonly background: "#f3edf7";
|
|
6
|
+
readonly card: "#fef7ff";
|
|
7
|
+
readonly text: "#1d1b20";
|
|
8
|
+
readonly border: "#cac4d0";
|
|
9
|
+
readonly notification: "#ba1a1a";
|
|
10
|
+
};
|
|
11
|
+
readonly fonts: {
|
|
12
|
+
readonly regular: {
|
|
13
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
14
|
+
readonly fontWeight: "400";
|
|
15
|
+
};
|
|
16
|
+
readonly medium: {
|
|
17
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
18
|
+
readonly fontWeight: "500";
|
|
19
|
+
};
|
|
20
|
+
readonly bold: {
|
|
21
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
22
|
+
readonly fontWeight: "600";
|
|
23
|
+
};
|
|
24
|
+
readonly heavy: {
|
|
25
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
26
|
+
readonly fontWeight: "700";
|
|
27
|
+
};
|
|
28
|
+
} | {
|
|
29
|
+
readonly regular: {
|
|
30
|
+
readonly fontFamily: "System";
|
|
31
|
+
readonly fontWeight: "400";
|
|
32
|
+
};
|
|
33
|
+
readonly medium: {
|
|
34
|
+
readonly fontFamily: "System";
|
|
35
|
+
readonly fontWeight: "500";
|
|
36
|
+
};
|
|
37
|
+
readonly bold: {
|
|
38
|
+
readonly fontFamily: "System";
|
|
39
|
+
readonly fontWeight: "600";
|
|
40
|
+
};
|
|
41
|
+
readonly heavy: {
|
|
42
|
+
readonly fontFamily: "System";
|
|
43
|
+
readonly fontWeight: "700";
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
readonly regular: {
|
|
47
|
+
readonly fontFamily: "sans-serif";
|
|
48
|
+
readonly fontWeight: "normal";
|
|
49
|
+
};
|
|
50
|
+
readonly medium: {
|
|
51
|
+
readonly fontFamily: "sans-serif-medium";
|
|
52
|
+
readonly fontWeight: "normal";
|
|
53
|
+
};
|
|
54
|
+
readonly bold: {
|
|
55
|
+
readonly fontFamily: "sans-serif";
|
|
56
|
+
readonly fontWeight: "600";
|
|
57
|
+
};
|
|
58
|
+
readonly heavy: {
|
|
59
|
+
readonly fontFamily: "sans-serif";
|
|
60
|
+
readonly fontWeight: "700";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
} | {
|
|
2
64
|
readonly dark: false;
|
|
3
65
|
readonly colors: {
|
|
4
66
|
readonly primary: import("react-native").OpaqueColorValue;
|
|
@@ -62,6 +124,68 @@ export declare const MaterialLightTheme: {
|
|
|
62
124
|
};
|
|
63
125
|
};
|
|
64
126
|
export declare const MaterialDarkTheme: {
|
|
127
|
+
readonly dark: true;
|
|
128
|
+
readonly colors: {
|
|
129
|
+
readonly primary: "#d0bcff";
|
|
130
|
+
readonly background: "#211f26";
|
|
131
|
+
readonly card: "#141218";
|
|
132
|
+
readonly text: "#e6e0e9";
|
|
133
|
+
readonly border: "#49454f";
|
|
134
|
+
readonly notification: "#ffb4ab";
|
|
135
|
+
};
|
|
136
|
+
readonly fonts: {
|
|
137
|
+
readonly regular: {
|
|
138
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
139
|
+
readonly fontWeight: "400";
|
|
140
|
+
};
|
|
141
|
+
readonly medium: {
|
|
142
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
143
|
+
readonly fontWeight: "500";
|
|
144
|
+
};
|
|
145
|
+
readonly bold: {
|
|
146
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
147
|
+
readonly fontWeight: "600";
|
|
148
|
+
};
|
|
149
|
+
readonly heavy: {
|
|
150
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
151
|
+
readonly fontWeight: "700";
|
|
152
|
+
};
|
|
153
|
+
} | {
|
|
154
|
+
readonly regular: {
|
|
155
|
+
readonly fontFamily: "System";
|
|
156
|
+
readonly fontWeight: "400";
|
|
157
|
+
};
|
|
158
|
+
readonly medium: {
|
|
159
|
+
readonly fontFamily: "System";
|
|
160
|
+
readonly fontWeight: "500";
|
|
161
|
+
};
|
|
162
|
+
readonly bold: {
|
|
163
|
+
readonly fontFamily: "System";
|
|
164
|
+
readonly fontWeight: "600";
|
|
165
|
+
};
|
|
166
|
+
readonly heavy: {
|
|
167
|
+
readonly fontFamily: "System";
|
|
168
|
+
readonly fontWeight: "700";
|
|
169
|
+
};
|
|
170
|
+
} | {
|
|
171
|
+
readonly regular: {
|
|
172
|
+
readonly fontFamily: "sans-serif";
|
|
173
|
+
readonly fontWeight: "normal";
|
|
174
|
+
};
|
|
175
|
+
readonly medium: {
|
|
176
|
+
readonly fontFamily: "sans-serif-medium";
|
|
177
|
+
readonly fontWeight: "normal";
|
|
178
|
+
};
|
|
179
|
+
readonly bold: {
|
|
180
|
+
readonly fontFamily: "sans-serif";
|
|
181
|
+
readonly fontWeight: "600";
|
|
182
|
+
};
|
|
183
|
+
readonly heavy: {
|
|
184
|
+
readonly fontFamily: "sans-serif";
|
|
185
|
+
readonly fontWeight: "700";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
} | {
|
|
65
189
|
readonly dark: true;
|
|
66
190
|
readonly colors: {
|
|
67
191
|
readonly primary: import("react-native").OpaqueColorValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialTheme.android.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.android.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MaterialTheme.android.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.android.tsx"],"names":[],"mappings":"AAsCA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAED,CAAC;AAE/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAED,CAAC"}
|
|
@@ -1,114 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const MaterialLightTheme: {
|
|
3
|
-
readonly dark: false;
|
|
4
|
-
readonly colors: Theme["colors"];
|
|
5
|
-
readonly fonts: {
|
|
6
|
-
readonly regular: {
|
|
7
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
8
|
-
readonly fontWeight: "400";
|
|
9
|
-
};
|
|
10
|
-
readonly medium: {
|
|
11
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
12
|
-
readonly fontWeight: "500";
|
|
13
|
-
};
|
|
14
|
-
readonly bold: {
|
|
15
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
16
|
-
readonly fontWeight: "600";
|
|
17
|
-
};
|
|
18
|
-
readonly heavy: {
|
|
19
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
20
|
-
readonly fontWeight: "700";
|
|
21
|
-
};
|
|
22
|
-
} | {
|
|
23
|
-
readonly regular: {
|
|
24
|
-
readonly fontFamily: "System";
|
|
25
|
-
readonly fontWeight: "400";
|
|
26
|
-
};
|
|
27
|
-
readonly medium: {
|
|
28
|
-
readonly fontFamily: "System";
|
|
29
|
-
readonly fontWeight: "500";
|
|
30
|
-
};
|
|
31
|
-
readonly bold: {
|
|
32
|
-
readonly fontFamily: "System";
|
|
33
|
-
readonly fontWeight: "600";
|
|
34
|
-
};
|
|
35
|
-
readonly heavy: {
|
|
36
|
-
readonly fontFamily: "System";
|
|
37
|
-
readonly fontWeight: "700";
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
readonly regular: {
|
|
41
|
-
readonly fontFamily: "sans-serif";
|
|
42
|
-
readonly fontWeight: "normal";
|
|
43
|
-
};
|
|
44
|
-
readonly medium: {
|
|
45
|
-
readonly fontFamily: "sans-serif-medium";
|
|
46
|
-
readonly fontWeight: "normal";
|
|
47
|
-
};
|
|
48
|
-
readonly bold: {
|
|
49
|
-
readonly fontFamily: "sans-serif";
|
|
50
|
-
readonly fontWeight: "600";
|
|
51
|
-
};
|
|
52
|
-
readonly heavy: {
|
|
53
|
-
readonly fontFamily: "sans-serif";
|
|
54
|
-
readonly fontWeight: "700";
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare const MaterialDarkTheme: {
|
|
59
|
-
readonly dark: true;
|
|
60
|
-
readonly colors: Theme["colors"];
|
|
61
|
-
readonly fonts: {
|
|
62
|
-
readonly regular: {
|
|
63
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
64
|
-
readonly fontWeight: "400";
|
|
65
|
-
};
|
|
66
|
-
readonly medium: {
|
|
67
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
68
|
-
readonly fontWeight: "500";
|
|
69
|
-
};
|
|
70
|
-
readonly bold: {
|
|
71
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
72
|
-
readonly fontWeight: "600";
|
|
73
|
-
};
|
|
74
|
-
readonly heavy: {
|
|
75
|
-
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
76
|
-
readonly fontWeight: "700";
|
|
77
|
-
};
|
|
78
|
-
} | {
|
|
79
|
-
readonly regular: {
|
|
80
|
-
readonly fontFamily: "System";
|
|
81
|
-
readonly fontWeight: "400";
|
|
82
|
-
};
|
|
83
|
-
readonly medium: {
|
|
84
|
-
readonly fontFamily: "System";
|
|
85
|
-
readonly fontWeight: "500";
|
|
86
|
-
};
|
|
87
|
-
readonly bold: {
|
|
88
|
-
readonly fontFamily: "System";
|
|
89
|
-
readonly fontWeight: "600";
|
|
90
|
-
};
|
|
91
|
-
readonly heavy: {
|
|
92
|
-
readonly fontFamily: "System";
|
|
93
|
-
readonly fontWeight: "700";
|
|
94
|
-
};
|
|
95
|
-
} | {
|
|
96
|
-
readonly regular: {
|
|
97
|
-
readonly fontFamily: "sans-serif";
|
|
98
|
-
readonly fontWeight: "normal";
|
|
99
|
-
};
|
|
100
|
-
readonly medium: {
|
|
101
|
-
readonly fontFamily: "sans-serif-medium";
|
|
102
|
-
readonly fontWeight: "normal";
|
|
103
|
-
};
|
|
104
|
-
readonly bold: {
|
|
105
|
-
readonly fontFamily: "sans-serif";
|
|
106
|
-
readonly fontWeight: "600";
|
|
107
|
-
};
|
|
108
|
-
readonly heavy: {
|
|
109
|
-
readonly fontFamily: "sans-serif";
|
|
110
|
-
readonly fontWeight: "700";
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
1
|
+
export { MaterialDarkFallbackTheme as MaterialDarkTheme, MaterialLightFallbackTheme as MaterialLightTheme, } from './MaterialFallbackTheme';
|
|
114
2
|
//# sourceMappingURL=MaterialTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MaterialTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,IAAI,iBAAiB,EAC9C,0BAA0B,IAAI,kBAAkB,GACjD,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAM9C,wBAAgB,UAAU,CAAC,SAAS,SAAS,aAAa,EACxD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAC9D,EACE,OAAc,EACd,QAAgB,EAChB,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAQC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,cAAc,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAM9C,wBAAgB,UAAU,CAAC,SAAS,SAAS,aAAa,EACxD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAC9D,EACE,OAAc,EACd,QAAgB,EAChB,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAQC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,cAAc,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyKjC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/native",
|
|
3
3
|
"description": "React Native integration for React Navigation",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.23",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"react-navigation",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "cef7e4a852c141d745cb9aa5b6ffe56546cb659d"
|
|
124
124
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Theme } from '@react-navigation/core';
|
|
2
|
+
|
|
3
|
+
import { fonts } from './fonts';
|
|
4
|
+
|
|
5
|
+
export const MaterialLightFallbackTheme = {
|
|
6
|
+
dark: false,
|
|
7
|
+
colors: {
|
|
8
|
+
primary: '#6750a4',
|
|
9
|
+
background: '#f3edf7',
|
|
10
|
+
card: '#fef7ff',
|
|
11
|
+
text: '#1d1b20',
|
|
12
|
+
border: '#cac4d0',
|
|
13
|
+
notification: '#ba1a1a',
|
|
14
|
+
},
|
|
15
|
+
fonts,
|
|
16
|
+
} as const satisfies Theme;
|
|
17
|
+
|
|
18
|
+
export const MaterialDarkFallbackTheme = {
|
|
19
|
+
dark: true,
|
|
20
|
+
colors: {
|
|
21
|
+
primary: '#d0bcff',
|
|
22
|
+
background: '#211f26',
|
|
23
|
+
card: '#141218',
|
|
24
|
+
text: '#e6e0e9',
|
|
25
|
+
border: '#49454f',
|
|
26
|
+
notification: '#ffb4ab',
|
|
27
|
+
},
|
|
28
|
+
fonts,
|
|
29
|
+
} as const satisfies Theme;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import type { Theme } from '@react-navigation/core';
|
|
2
|
-
import { PlatformColor } from 'react-native';
|
|
2
|
+
import { Platform, PlatformColor } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { fonts } from './fonts';
|
|
5
|
+
import {
|
|
6
|
+
MaterialDarkFallbackTheme,
|
|
7
|
+
MaterialLightFallbackTheme,
|
|
8
|
+
} from './MaterialFallbackTheme';
|
|
5
9
|
|
|
6
|
-
|
|
10
|
+
const isDynamicThemeSupported =
|
|
11
|
+
Platform.OS === 'android' && Platform.Version >= 34;
|
|
12
|
+
|
|
13
|
+
const MaterialLightDynamicTheme = {
|
|
7
14
|
dark: false,
|
|
8
15
|
colors: {
|
|
9
16
|
primary: PlatformColor('@android:color/system_primary_light'),
|
|
@@ -16,7 +23,7 @@ export const MaterialLightTheme = {
|
|
|
16
23
|
fonts,
|
|
17
24
|
} as const satisfies Theme;
|
|
18
25
|
|
|
19
|
-
|
|
26
|
+
const MaterialDarkDynamicTheme = {
|
|
20
27
|
dark: true,
|
|
21
28
|
colors: {
|
|
22
29
|
primary: PlatformColor('@android:color/system_primary_dark'),
|
|
@@ -28,3 +35,11 @@ export const MaterialDarkTheme = {
|
|
|
28
35
|
},
|
|
29
36
|
fonts,
|
|
30
37
|
} as const satisfies Theme;
|
|
38
|
+
|
|
39
|
+
export const MaterialLightTheme = isDynamicThemeSupported
|
|
40
|
+
? MaterialLightDynamicTheme
|
|
41
|
+
: MaterialLightFallbackTheme;
|
|
42
|
+
|
|
43
|
+
export const MaterialDarkTheme = isDynamicThemeSupported
|
|
44
|
+
? MaterialDarkDynamicTheme
|
|
45
|
+
: MaterialDarkFallbackTheme;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const MaterialLightTheme = {
|
|
6
|
-
dark: false,
|
|
7
|
-
get colors(): Theme['colors'] {
|
|
8
|
-
throw new Error('MaterialLightTheme is only supported on Android');
|
|
9
|
-
},
|
|
10
|
-
fonts,
|
|
11
|
-
} as const satisfies Theme;
|
|
12
|
-
|
|
13
|
-
export const MaterialDarkTheme = {
|
|
14
|
-
dark: true,
|
|
15
|
-
get colors(): Theme['colors'] {
|
|
16
|
-
throw new Error('MaterialDarkTheme is only supported on Android');
|
|
17
|
-
},
|
|
18
|
-
fonts,
|
|
19
|
-
} as const satisfies Theme;
|
|
1
|
+
export {
|
|
2
|
+
MaterialDarkFallbackTheme as MaterialDarkTheme,
|
|
3
|
+
MaterialLightFallbackTheme as MaterialLightTheme,
|
|
4
|
+
} from './MaterialFallbackTheme';
|