@uifabricshared/theming-react-native 0.12.24 → 0.13.3
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/CHANGELOG.json +153 -1
- package/CHANGELOG.md +47 -2
- package/lib/NativeModule/ThemingModule.types.js +1 -0
- package/lib/NativeModule/getHostSettings.js.map +1 -1
- package/lib/NativeModule/index.js +1 -0
- package/lib/NativeModule/index.js.map +1 -1
- package/lib/Theme.types.js +1 -0
- package/lib/ThemeLayer.js +3 -1
- package/lib/ThemeLayer.js.map +1 -1
- package/lib/ThemeProvider.js.map +1 -1
- package/lib/ThemeProvider.types.d.ts +1 -0
- package/lib/ThemeProvider.types.d.ts.map +1 -1
- package/lib/ThemeProvider.types.js +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib-commonjs/BaselinePlatformDefaults.js +1 -0
- package/lib-commonjs/BaselinePlatformDefaults.js.map +1 -1
- package/lib-commonjs/Global.js +2 -1
- package/lib-commonjs/Global.js.map +1 -1
- package/lib-commonjs/NativeModule/ThemingModule.js +2 -1
- package/lib-commonjs/NativeModule/ThemingModule.js.map +1 -1
- package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +3 -2
- package/lib-commonjs/NativeModule/ThemingModuleHelpers.js.map +1 -1
- package/lib-commonjs/NativeModule/getHostSettings.js +1 -0
- package/lib-commonjs/NativeModule/getHostSettings.js.map +1 -1
- package/lib-commonjs/NativeModule/index.js +13 -5
- package/lib-commonjs/NativeModule/index.js.map +1 -1
- package/lib-commonjs/TSUtils.js +1 -0
- package/lib-commonjs/TSUtils.js.map +1 -1
- package/lib-commonjs/ThemeContext.js +19 -5
- package/lib-commonjs/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeLayer.js +21 -6
- package/lib-commonjs/ThemeLayer.js.map +1 -1
- package/lib-commonjs/ThemeProvider.js +18 -4
- package/lib-commonjs/ThemeProvider.js.map +1 -1
- package/lib-commonjs/ThemeProvider.types.d.ts +1 -0
- package/lib-commonjs/ThemeProvider.types.d.ts.map +1 -1
- package/lib-commonjs/index.js +23 -13
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/platform/PlatformDefaults.js +2 -1
- package/lib-commonjs/platform/PlatformDefaults.js.map +1 -1
- package/lib-commonjs/platform/PlatformDefaults.native.js +2 -1
- package/lib-commonjs/platform/PlatformDefaults.native.js.map +1 -1
- package/lib-commonjs/platform/index.js +11 -4
- package/lib-commonjs/platform/index.js.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,159 @@
|
|
|
2
2
|
"name": "@uifabricshared/theming-react-native",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 18 Dec 2021 04:11:32 GMT",
|
|
6
|
+
"tag": "@uifabricshared/theming-react-native_v0.13.3",
|
|
7
|
+
"version": "0.13.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "afoxman@microsoft.com",
|
|
12
|
+
"package": "@uifabricshared/theming-react-native",
|
|
13
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789",
|
|
14
|
+
"comment": "Update to TypeScript 4.5.4."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@uifabricshared/theming-react-native",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.3",
|
|
20
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@uifabricshared/theming-react-native",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/win32-theme to v0.14.3",
|
|
26
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@uifabricshared/theming-react-native",
|
|
31
|
+
"comment": "Bump @uifabricshared/theme-registry to v0.7.1",
|
|
32
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@uifabricshared/theming-react-native",
|
|
37
|
+
"comment": "Bump @uifabricshared/theming-ramp to v0.16.1",
|
|
38
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"date": "Fri, 17 Dec 2021 01:26:42 GMT",
|
|
45
|
+
"tag": "@uifabricshared/theming-react-native_v0.13.2",
|
|
46
|
+
"version": "0.13.2",
|
|
47
|
+
"comments": {
|
|
48
|
+
"patch": [
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@uifabricshared/theming-react-native",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.2",
|
|
53
|
+
"commit": "511aeb31982a5fb9dd2f7196c0c7217cc4a3dbc6"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@uifabricshared/theming-react-native",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/win32-theme to v0.14.2",
|
|
59
|
+
"commit": "511aeb31982a5fb9dd2f7196c0c7217cc4a3dbc6"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Thu, 16 Dec 2021 23:00:57 GMT",
|
|
66
|
+
"tag": "@uifabricshared/theming-react-native_v0.13.1",
|
|
67
|
+
"version": "0.13.1",
|
|
68
|
+
"comments": {
|
|
69
|
+
"none": [
|
|
70
|
+
{
|
|
71
|
+
"author": "dannyvv@microsoft.com",
|
|
72
|
+
"package": "@uifabricshared/theming-react-native",
|
|
73
|
+
"commit": "25b3989739737bc598a5d699a941af4c0b4a421f",
|
|
74
|
+
"comment": "📦 applying package updates ***NO_CI***"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"date": "Thu, 16 Dec 2021 19:10:31 GMT",
|
|
81
|
+
"tag": "@uifabricshared/theming-react-native_v0.13.1",
|
|
82
|
+
"version": "0.13.1",
|
|
83
|
+
"comments": {
|
|
84
|
+
"patch": [
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@uifabricshared/theming-react-native",
|
|
88
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.1",
|
|
89
|
+
"commit": "6a9f067ae2510481b6ff3512c10c08e7de84f86e"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@uifabricshared/theming-react-native",
|
|
94
|
+
"comment": "Bump @fluentui-react-native/win32-theme to v0.14.1",
|
|
95
|
+
"commit": "6a9f067ae2510481b6ff3512c10c08e7de84f86e"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"date": "Wed, 17 Nov 2021 19:28:07 GMT",
|
|
102
|
+
"tag": "@uifabricshared/theming-react-native_v0.13.0",
|
|
103
|
+
"version": "0.13.0",
|
|
104
|
+
"comments": {
|
|
105
|
+
"minor": [
|
|
106
|
+
{
|
|
107
|
+
"comment": "Update to react-native 0.64",
|
|
108
|
+
"author": "afoxman@microsoft.com",
|
|
109
|
+
"commit": "f16d742b5c2d5b97e49ac1ef7b740cbf89fc42e6",
|
|
110
|
+
"package": "@uifabricshared/theming-react-native"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"patch": [
|
|
114
|
+
{
|
|
115
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.0",
|
|
116
|
+
"author": "afoxman@microsoft.com",
|
|
117
|
+
"commit": "f16d742b5c2d5b97e49ac1ef7b740cbf89fc42e6",
|
|
118
|
+
"package": "@uifabricshared/theming-react-native"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"comment": "Bump @fluentui-react-native/win32-theme to v0.14.0",
|
|
122
|
+
"author": "afoxman@microsoft.com",
|
|
123
|
+
"commit": "f16d742b5c2d5b97e49ac1ef7b740cbf89fc42e6",
|
|
124
|
+
"package": "@uifabricshared/theming-react-native"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"comment": "Bump @uifabricshared/theming-ramp to v0.16.0",
|
|
128
|
+
"author": "afoxman@microsoft.com",
|
|
129
|
+
"commit": "f16d742b5c2d5b97e49ac1ef7b740cbf89fc42e6",
|
|
130
|
+
"package": "@uifabricshared/theming-react-native"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"comment": "Bump @uifabricshared/theme-registry to v0.7.0",
|
|
134
|
+
"author": "afoxman@microsoft.com",
|
|
135
|
+
"commit": "f16d742b5c2d5b97e49ac1ef7b740cbf89fc42e6",
|
|
136
|
+
"package": "@uifabricshared/theming-react-native"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"date": "Thu, 11 Nov 2021 23:17:41 GMT",
|
|
143
|
+
"tag": "@uifabricshared/theming-react-native_v0.12.24",
|
|
144
|
+
"version": "0.12.24",
|
|
145
|
+
"comments": {
|
|
146
|
+
"none": [
|
|
147
|
+
{
|
|
148
|
+
"comment": "Rename uifabricshared/eslint-config-rules to fluentui-react-native/eslint-config-rules",
|
|
149
|
+
"author": "ruaraki@microsoft.com",
|
|
150
|
+
"commit": "110fba2a1721a914501404f6040f07656307549e",
|
|
151
|
+
"package": "@uifabricshared/theming-react-native"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"date": "Tue, 09 Nov 2021 23:04:33 GMT",
|
|
6
158
|
"tag": "@uifabricshared/theming-react-native_v0.12.24",
|
|
7
159
|
"version": "0.12.24",
|
|
8
160
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
# Change Log - @uifabricshared/theming-react-native
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 18 Dec 2021 04:11:32 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.13.3
|
|
8
|
+
|
|
9
|
+
Sat, 18 Dec 2021 04:11:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Update to TypeScript 4.5.4. (afoxman@microsoft.com)
|
|
14
|
+
- Bump @fluentui-react-native/default-theme to v0.9.3
|
|
15
|
+
- Bump @fluentui-react-native/win32-theme to v0.14.3
|
|
16
|
+
- Bump @uifabricshared/theme-registry to v0.7.1
|
|
17
|
+
- Bump @uifabricshared/theming-ramp to v0.16.1
|
|
18
|
+
|
|
19
|
+
## 0.13.2
|
|
20
|
+
|
|
21
|
+
Fri, 17 Dec 2021 01:26:42 GMT
|
|
22
|
+
|
|
23
|
+
### Patches
|
|
24
|
+
|
|
25
|
+
- Bump @fluentui-react-native/default-theme to v0.9.2
|
|
26
|
+
- Bump @fluentui-react-native/win32-theme to v0.14.2
|
|
27
|
+
|
|
28
|
+
## 0.13.1
|
|
29
|
+
|
|
30
|
+
Thu, 16 Dec 2021 19:10:31 GMT
|
|
31
|
+
|
|
32
|
+
### Patches
|
|
33
|
+
|
|
34
|
+
- Bump @fluentui-react-native/default-theme to v0.9.1
|
|
35
|
+
- Bump @fluentui-react-native/win32-theme to v0.14.1
|
|
36
|
+
|
|
37
|
+
## 0.13.0
|
|
38
|
+
|
|
39
|
+
Wed, 17 Nov 2021 19:28:07 GMT
|
|
40
|
+
|
|
41
|
+
### Minor changes
|
|
42
|
+
|
|
43
|
+
- Update to react-native 0.64 (afoxman@microsoft.com)
|
|
44
|
+
|
|
45
|
+
### Patches
|
|
46
|
+
|
|
47
|
+
- Bump @fluentui-react-native/default-theme to v0.9.0 (afoxman@microsoft.com)
|
|
48
|
+
- Bump @fluentui-react-native/win32-theme to v0.14.0 (afoxman@microsoft.com)
|
|
49
|
+
- Bump @uifabricshared/theming-ramp to v0.16.0 (afoxman@microsoft.com)
|
|
50
|
+
- Bump @uifabricshared/theme-registry to v0.7.0 (afoxman@microsoft.com)
|
|
51
|
+
|
|
7
52
|
## 0.12.24
|
|
8
53
|
|
|
9
|
-
Tue, 09 Nov 2021 23:
|
|
54
|
+
Tue, 09 Nov 2021 23:04:33 GMT
|
|
10
55
|
|
|
11
56
|
### Patches
|
|
12
57
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,KAAa;;IAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,KAAa;;IAChD,OAAO,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
package/lib/Theme.types.js
CHANGED
package/lib/ThemeLayer.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/lib/ThemeLayer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAoB5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IAAgC,8BAAiC;IAAjE;QAAA,qEAkDC;QA3CC,iEAAiE;QAC1D,kBAAY,GAAwC,UAAC,IAAY;YACtE,2DAA2D;YAC3D,IAAI,IAAI,KAAK,KAAI,CAAC,gBAAgB,EAAE;gBAClC,KAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,C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,SAAS,CAAC,CAAC,CAAC;YACzE,CAAC;SACF,CAAC;QAEF,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QACjD,OAAO;YACL,aAAa,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;QACtD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9C,IAAM,aAAa,GAAG,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAyB,CAAC;IAE9F,oFAAoF;IACpF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,iBAAiB,IAAG,aAAa,CAAiC,CACzG,CAAC,CAAC,CAAC,CACF,aAAa,CACd,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.types.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B"}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { addThemeRegistryListener, removeThemeRegistryListener, setTheme, getTheme, augmentPlatformTheme } from './Global';
|
|
2
|
+
export * from './Theme.types';
|
|
2
3
|
export { ThemeLayer } from './ThemeLayer';
|
|
3
4
|
export * from './platform';
|
|
4
5
|
export * from './ThemeProvider';
|
|
6
|
+
export * from './ThemeProvider.types';
|
|
5
7
|
export * from './ThemeContext';
|
|
6
8
|
export * from './NativeModule';
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC3H,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAoB,UAAU,EAAE,MAAM,cAAc,CAAC;AAC5D,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBaselinePlatformTheme = void 0;
|
|
3
4
|
var default_theme_1 = require("@fluentui-react-native/default-theme");
|
|
4
5
|
function getBaselinePlatformTheme() {
|
|
5
6
|
return default_theme_1.defaultFluentTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":";;;AACA,sEAA0E;AAE1E,SAAgB,wBAAwB;IACtC,OAAO,kCAAkB,CAAC;AAC5B,CAAC;AAFD,4DAEC"}
|
package/lib-commonjs/Global.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.augmentPlatformTheme = exports.getTheme = exports.removeThemeRegistryListener = exports.addThemeRegistryListener = exports.setTheme = exports.setThemeRegistry = exports.getThemeRegistry = void 0;
|
|
3
4
|
var platform_1 = require("./platform");
|
|
4
5
|
var _registry;
|
|
5
6
|
/**
|
|
@@ -8,7 +9,7 @@ var _registry;
|
|
|
8
9
|
*/
|
|
9
10
|
function getThemeRegistry() {
|
|
10
11
|
if (!_registry) {
|
|
11
|
-
_registry = platform_1.createPlatformThemeRegistry();
|
|
12
|
+
_registry = (0, platform_1.createPlatformThemeRegistry)();
|
|
12
13
|
}
|
|
13
14
|
return _registry;
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":";;;AACA,uCAAyD;AAGzD,IAAI,SAAwB,CAAC;AAE7B;;;GAGG;AACH,SAAgB,gBAAgB;IAC9B,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,IAAA,sCAA2B,GAAE,CAAC;KAC3C;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AALD,4CAKC;AAED;;;;;;;;;GASG;AACH,SAAgB,gBAAgB,CAAC,QAAuB;IACtD,SAAS,GAAG,QAAQ,CAAC;AACvB,CAAC;AAFD,4CAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,UAAgE,EAAE,IAAa,EAAE,MAAe;IACvH,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC;AAFD,4BAEC;AAED;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,QAA6B;IACpE,OAAO,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACvD,CAAC;AAFD,4DAEC;AAED;;;GAGG;AACH,SAAgB,2BAA2B,CAAC,QAA6B;IACvE,OAAO,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAC1D,CAAC;AAFD,kEAEC;AAED;;;GAGG;AACH,SAAgB,QAAQ,CAAC,IAAa;IACpC,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAFD,4BAEC;AAED;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,UAAyB;IAC5D,gBAAgB,EAAE,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;AACxD,CAAC;AAFD,oDAEC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemingModuleHelper = void 0;
|
|
3
4
|
var ThemingModuleHelpers_1 = require("./ThemingModuleHelpers");
|
|
4
5
|
var win32_theme_1 = require("@fluentui-react-native/win32-theme");
|
|
5
|
-
exports.ThemingModuleHelper = ThemingModuleHelpers_1.createThemingModuleHelper.apply(void 0, win32_theme_1.getThemingModule());
|
|
6
|
+
exports.ThemingModuleHelper = ThemingModuleHelpers_1.createThemingModuleHelper.apply(void 0, (0, win32_theme_1.getThemingModule)());
|
|
6
7
|
//# sourceMappingURL=ThemingModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemingModule.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemingModule.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModule.ts"],"names":[],"mappings":";;;AAAA,+DAAmE;AACnE,kEAAsE;AAEzD,QAAA,mBAAmB,GAAG,gDAAyB,eAAI,IAAA,8BAAgB,GAAE,EAAE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createThemingModuleHelper = exports.translateOfficeTheme = void 0;
|
|
3
4
|
var theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
4
5
|
var BaselinePlatformDefaults_1 = require("../BaselinePlatformDefaults");
|
|
5
6
|
var win32_theme_1 = require("@fluentui-react-native/win32-theme");
|
|
@@ -24,7 +25,7 @@ function ensurePalette(module, paletteCache, palette) {
|
|
|
24
25
|
}
|
|
25
26
|
function translateOfficeTheme(module, cache, id, themeName) {
|
|
26
27
|
var palette = ensurePalette(module, cache, id);
|
|
27
|
-
return win32_theme_1.createPartialOfficeTheme(module, themeName, palette);
|
|
28
|
+
return (0, win32_theme_1.createPartialOfficeTheme)(module, themeName, palette);
|
|
28
29
|
}
|
|
29
30
|
exports.translateOfficeTheme = translateOfficeTheme;
|
|
30
31
|
function createThemingModuleHelper(themingModule, emitter) {
|
|
@@ -38,7 +39,7 @@ function createThemingModuleHelper(themingModule, emitter) {
|
|
|
38
39
|
});
|
|
39
40
|
return {
|
|
40
41
|
getPlatformDefaults: function (themeId) {
|
|
41
|
-
return theming_ramp_1.resolvePartialTheme(BaselinePlatformDefaults_1.getBaselinePlatformTheme(), translateOfficeTheme(themingModule, paletteCache, themeId, _hostTheme));
|
|
42
|
+
return (0, theming_ramp_1.resolvePartialTheme)((0, BaselinePlatformDefaults_1.getBaselinePlatformTheme)(), translateOfficeTheme(themingModule, paletteCache, themeId, _hostTheme));
|
|
42
43
|
},
|
|
43
44
|
getPlatformThemeDefinition: function (themeId) {
|
|
44
45
|
return function (_parent) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemingModuleHelpers.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemingModuleHelpers.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":";;;AAAA,6DAA0F;AAE1F,wEAAuE;AACvE,kEAM4C;AAI5C,SAAS,WAAW,CAAC,OAAqC;IACxD,OAAQ,OAAwB,CAAC,OAAO,KAAK,SAAS,CAAC;AACzD,CAAC;AAED,SAAS,oBAAoB,CAAC,MAA2B,EAAE,KAAmB,EAAE,OAAe;IAC7F,IAAM,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE;QAC9B,KAAK,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;KAC/B;AACH,CAAC;AAED,IAAM,kBAAkB,GAAG,UAAC,OAAgB;IAC1C,OAAO,OAAO,IAAI,aAAa,CAAC;AAClC,CAAC,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B,EAAE,YAA0B,EAAE,OAAgB;IAC9F,IAAM,GAAG,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACxC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;QACtB,oBAAoB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;KACjD;IACD,OAAO,YAAY,CAAC,GAAG,CAAC,IAAK,EAAoB,CAAC;AACpD,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAA2B,EAAE,KAAmB,EAAE,EAAW,EAAE,SAAkB;IACpH,IAAM,OAAO,GAAG,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IACjD,OAAO,IAAA,sCAAwB,EAAC,MAAM,EAAE,SAAS,EA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|
|
3
|
+
exports.getHostSettingsWin32 = void 0;
|
|
3
4
|
function getHostSettingsWin32(theme) {
|
|
4
5
|
var _a;
|
|
5
6
|
return ((_a = theme.host) === null || _a === void 0 ? void 0 : _a.palette) ? theme.host : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":";;;AAEA,SAAgB,oBAAoB,CAAC,KAAa;;IAChD,OAAO,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC;AAFD,oDAEC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
__exportStar(require("./ThemingModule"), exports);
|
|
14
|
+
__exportStar(require("./ThemingModule.types"), exports);
|
|
15
|
+
__exportStar(require("./getHostSettings"), exports);
|
|
8
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC"}
|
package/lib-commonjs/TSUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSUtils.js","sourceRoot":"","sources":["../src/TSUtils.ts"],"names":[],"mappings":";AAAA,oBAAoB
|
|
1
|
+
{"version":3,"file":"TSUtils.js","sourceRoot":"","sources":["../src/TSUtils.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAiBpB,uDAAuD;AACvD,SAAgB,OAAO,CAAC,MAAc,EAAE,EAAsC;IAC5E,KAAK,IAAM,SAAS,IAAI,MAAM,EAAE;QAC9B,IAAI,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,QAAQ,EAAE;YAC7E,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;SAClC;KACF;AACH,CAAC;AAND,0BAMC"}
|
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.useThemeRegistry = exports.ThemeRegistryContext = exports.useTheme = exports.ThemeContext = void 0;
|
|
10
23
|
var React = __importStar(require("react"));
|
|
11
24
|
var theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
12
|
-
exports
|
|
13
|
-
exports
|
|
25
|
+
Object.defineProperty(exports, "ThemeContext", { enumerable: true, get: function () { return theming_ramp_1.ThemeContext; } });
|
|
26
|
+
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return theming_ramp_1.useTheme; } });
|
|
14
27
|
exports.ThemeRegistryContext = React.createContext(undefined);
|
|
15
|
-
|
|
28
|
+
var useThemeRegistry = function () { return React.useContext(exports.ThemeRegistryContext); };
|
|
29
|
+
exports.useThemeRegistry = useThemeRegistry;
|
|
16
30
|
//# sourceMappingURL=ThemeContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../src/ThemeContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../src/ThemeContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,6DAAsE;AAA7D,4GAAA,YAAY,OAAA;AAAE,wGAAA,QAAQ,OAAA;AAElB,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAAgB,SAAS,CAAC,CAAC;AAC3E,IAAM,gBAAgB,GAAG,cAAM,OAAA,KAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,EAAtC,CAAsC,CAAC;AAAhE,QAAA,gBAAgB,oBAAgD"}
|
|
@@ -3,23 +3,38 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
15
29
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
16
30
|
if (mod && mod.__esModule) return mod;
|
|
17
31
|
var result = {};
|
|
18
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
19
|
-
result
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
20
34
|
return result;
|
|
21
35
|
};
|
|
22
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ThemeLayer = void 0;
|
|
23
38
|
var React = __importStar(require("react"));
|
|
24
39
|
var Global_1 = require("./Global");
|
|
25
40
|
var theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
@@ -62,7 +77,7 @@ var ThemeLayer = /** @class */ (function (_super) {
|
|
|
62
77
|
/** helper to register if this is the first time and to update the filter if necessary */
|
|
63
78
|
_this._ensureCallbackRegistration = function (themeName) {
|
|
64
79
|
if (_this._registeredTheme === undefined) {
|
|
65
|
-
Global_1.addThemeRegistryListener(_this);
|
|
80
|
+
(0, Global_1.addThemeRegistryListener)(_this);
|
|
66
81
|
}
|
|
67
82
|
_this._registeredTheme = themeName;
|
|
68
83
|
};
|
|
@@ -71,7 +86,7 @@ var ThemeLayer = /** @class */ (function (_super) {
|
|
|
71
86
|
/** standard cleanup handler to ensure we unregister */
|
|
72
87
|
ThemeLayer.prototype.componentWillUnmount = function () {
|
|
73
88
|
if (this._registeredTheme !== undefined) {
|
|
74
|
-
Global_1.removeThemeRegistryListener(this);
|
|
89
|
+
(0, Global_1.removeThemeRegistryListener)(this);
|
|
75
90
|
this._registeredTheme = undefined;
|
|
76
91
|
}
|
|
77
92
|
};
|
|
@@ -84,7 +99,7 @@ var ThemeLayer = /** @class */ (function (_super) {
|
|
|
84
99
|
if (themeName !== undefined || theme === undefined) {
|
|
85
100
|
themeName = themeName || '';
|
|
86
101
|
_this._ensureCallbackRegistration(themeName);
|
|
87
|
-
theme = Global_1.getTheme(themeName);
|
|
102
|
+
theme = (0, Global_1.getTheme)(themeName);
|
|
88
103
|
return React.createElement(theming_ramp_1.ThemeContext.Provider, { value: theme }, _this.props.children(theme));
|
|
89
104
|
}
|
|
90
105
|
// otherwise in consumer mode just push the current theme to the children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,mCAA2F;AAE3F,6DAA4D;AAoB5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IAAgC,8BAAiC;IAAjE;QAAA,qEAkDC;QA3CC,iEAAiE;QAC1D,kBAAY,GAAwC,UAAC,IAAY;YACtE,2DAA2D;YAC3D,IAAI,IAAI,KAAK,KAAI,CAAC,gBAAgB,EAAE;gBAClC,KAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,CAAC;QA8BF,yFAAyF;QACjF,iCAA2B,GAAG,UAAC,SAAiB;YACtD,IAAI,KAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;gBACvC,IAAA,iCAAwB,EAAC,KAAI,CAAC,CAAC;aAChC;YACD,KAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QACpC,CAAC,CAAC;;IACJ,CAAC;IAnCC,uDAAuD;IAChD,yCAAoB,GAA3B;QACE,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;YACvC,IAAA,oCAA2B,EAAC,IAAI,CAAC,CAAC;YAClC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;SACnC;IACH,CAAC;IAEM,2BAAM,GAAb;QAAA,iBAkBC;QAjBC,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;QACrC,OAAO,CACL,oBAAC,2BAAY,CAAC,QAAQ,QACnB,UAAC,KAAc;YACd,mGAAmG;YACnG,gBAAgB;YAChB,IAAI,SAAS,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,EAAE;gBAClD,SAAS,GAAG,SAAS,IAAI,EAAE,CAAC;gBAC5B,KAAI,CAAC,2BAA2B,CAAC,SAAS,CAAC,CAAC;gBAC5C,KAAK,GAAG,IAAA,iBAAQ,EAAC,SAAS,CAAC,CAAC;gBAC5B,OAAO,oBAAC,2BAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,KAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAyB,CAAC;aAClG;YACD,yEAAyE;YACzE,OAAO,KAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC,CACqB,CACzB,CAAC;IACJ,CAAC;IASH,iBAAC;AAAD,CAAC,AAlDD,CAAgC,KAAK,CAAC,SAAS,GAkD9C;AAlDY,gCAAU"}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.ThemeProvider = void 0;
|
|
10
23
|
var React = __importStar(require("react"));
|
|
11
24
|
var ThemeContext_1 = require("./ThemeContext");
|
|
12
25
|
var Global_1 = require("./Global");
|
|
13
26
|
var theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
14
|
-
|
|
27
|
+
var ThemeProvider = function (props) {
|
|
15
28
|
var registryFromProps = props.registry, _a = props.theme, themeName = _a === void 0 ? '' : _a, children = props.children;
|
|
16
|
-
var registryToUse = registryFromProps || ThemeContext_1.useThemeRegistry() || Global_1.getThemeRegistry();
|
|
29
|
+
var registryToUse = registryFromProps || (0, ThemeContext_1.useThemeRegistry)() || (0, Global_1.getThemeRegistry)();
|
|
17
30
|
var _b = React.useState(registryToUse.getTheme(themeName)), theme = _b[0], setThemeState = _b[1];
|
|
18
31
|
React.useEffect(function () {
|
|
19
32
|
setThemeState(registryToUse.getTheme(themeName));
|
|
@@ -31,4 +44,5 @@ exports.ThemeProvider = function (props) {
|
|
|
31
44
|
// note `registryFromProps` came from props and it's not the same as `registryToUse`
|
|
32
45
|
return registryFromProps ? (React.createElement(ThemeContext_1.ThemeRegistryContext.Provider, { value: registryFromProps }, themeProvider)) : (themeProvider);
|
|
33
46
|
};
|
|
47
|
+
exports.ThemeProvider = ThemeProvider;
|
|
34
48
|
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;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AACJ,CAAC,CAAC;AA5BW,QAAA,aAAa,iBA4BxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"ThemeProvider.types.d.ts","sourceRoot":"","sources":["../src/ThemeProvider.types.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ThemeLayer = exports.augmentPlatformTheme = exports.getTheme = exports.setTheme = exports.removeThemeRegistryListener = exports.addThemeRegistryListener = void 0;
|
|
6
14
|
var Global_1 = require("./Global");
|
|
7
|
-
exports
|
|
8
|
-
exports
|
|
9
|
-
exports
|
|
10
|
-
exports
|
|
11
|
-
exports
|
|
15
|
+
Object.defineProperty(exports, "addThemeRegistryListener", { enumerable: true, get: function () { return Global_1.addThemeRegistryListener; } });
|
|
16
|
+
Object.defineProperty(exports, "removeThemeRegistryListener", { enumerable: true, get: function () { return Global_1.removeThemeRegistryListener; } });
|
|
17
|
+
Object.defineProperty(exports, "setTheme", { enumerable: true, get: function () { return Global_1.setTheme; } });
|
|
18
|
+
Object.defineProperty(exports, "getTheme", { enumerable: true, get: function () { return Global_1.getTheme; } });
|
|
19
|
+
Object.defineProperty(exports, "augmentPlatformTheme", { enumerable: true, get: function () { return Global_1.augmentPlatformTheme; } });
|
|
20
|
+
__exportStar(require("./Theme.types"), exports);
|
|
12
21
|
var ThemeLayer_1 = require("./ThemeLayer");
|
|
13
|
-
exports
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
Object.defineProperty(exports, "ThemeLayer", { enumerable: true, get: function () { return ThemeLayer_1.ThemeLayer; } });
|
|
23
|
+
__exportStar(require("./platform"), exports);
|
|
24
|
+
__exportStar(require("./ThemeProvider"), exports);
|
|
25
|
+
__exportStar(require("./ThemeProvider.types"), exports);
|
|
26
|
+
__exportStar(require("./ThemeContext"), exports);
|
|
27
|
+
__exportStar(require("./NativeModule"), exports);
|
|
18
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mCAA2H;AAAlH,kHAAA,wBAAwB,OAAA;AAAE,qHAAA,2BAA2B,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,8GAAA,oBAAoB,OAAA;AACxG,gDAA8B;AAC9B,2CAA4D;AAAjC,wGAAA,UAAU,OAAA;AACrC,6CAA2B;AAC3B,kDAAgC;AAChC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPlatformThemeRegistry = void 0;
|
|
3
4
|
var BaselinePlatformDefaults_1 = require("../BaselinePlatformDefaults");
|
|
4
5
|
var theme_registry_1 = require("@uifabricshared/theme-registry");
|
|
5
6
|
var theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
6
7
|
function createPlatformThemeRegistry(_themeId, _module) {
|
|
7
|
-
return theme_registry_1.createThemeRegistry(BaselinePlatformDefaults_1.getBaselinePlatformTheme(), theming_ramp_1.resolvePartialTheme);
|
|
8
|
+
return (0, theme_registry_1.createThemeRegistry)((0, BaselinePlatformDefaults_1.getBaselinePlatformTheme)(), theming_ramp_1.resolvePartialTheme);
|
|
8
9
|
}
|
|
9
10
|
exports.createPlatformThemeRegistry = createPlatformThemeRegistry;
|
|
10
11
|
//# sourceMappingURL=PlatformDefaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformDefaults.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlatformDefaults.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":";;;AAAA,wEAAuE;AACvE,iEAAqE;AACrE,6DAAmE;AAGnE,SAAgB,2BAA2B,CAAC,QAAiB,EAAE,OAA8B;IAC3F,OAAO,IAAA,oCAAmB,EAAC,IAAA,mDAAwB,GAAE,EAAE,kCAAmB,CAAC,CAAC;AAC9E,CAAC;AAFD,kEAEC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPlatformThemeRegistry = void 0;
|
|
3
4
|
var NativeModule_1 = require("../NativeModule");
|
|
4
5
|
var theme_registry_1 = require("@uifabricshared/theme-registry");
|
|
5
6
|
var theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
6
7
|
function createPlatformThemeRegistry(platformThemeId, module) {
|
|
7
8
|
if (module === void 0) { module = NativeModule_1.ThemingModuleHelper; }
|
|
8
|
-
var registry = theme_registry_1.createThemeRegistry(module.getPlatformDefaults(platformThemeId), theming_ramp_1.resolvePartialTheme);
|
|
9
|
+
var registry = (0, theme_registry_1.createThemeRegistry)(module.getPlatformDefaults(platformThemeId), theming_ramp_1.resolvePartialTheme);
|
|
9
10
|
module.addListener(function () {
|
|
10
11
|
registry.updatePlatformDefaults(module.getPlatformDefaults(platformThemeId));
|
|
11
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformDefaults.native.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlatformDefaults.native.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":";;;AAAA,gDAA4E;AAC5E,iEAAqE;AACrE,6DAAmE;AAEnE,SAAgB,2BAA2B,CAAC,eAAwB,EAAE,MAAkD;IAAlD,uBAAA,EAAA,SAA+B,kCAAmB;IACtH,IAAM,QAAQ,GAAG,IAAA,oCAAmB,EAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,kCAAmB,CAAC,CAAC;IACvG,MAAM,CAAC,WAAW,CAAC;QACjB,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAND,kEAMC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
13
|
+
__exportStar(require("./PlatformDefaults"), exports);
|
|
7
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uifabricshared/theming-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "A library of functions which produce React Native styles from a Theme",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"author": "",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@fluentui-react-native/default-theme": ">=0.
|
|
28
|
-
"@fluentui-react-native/win32-theme": ">=0.
|
|
29
|
-
"@uifabricshared/theme-registry": ">=0.
|
|
30
|
-
"@uifabricshared/theming-ramp": ">=0.
|
|
27
|
+
"@fluentui-react-native/default-theme": ">=0.9.3 <1.0.0",
|
|
28
|
+
"@fluentui-react-native/win32-theme": ">=0.14.3 <1.0.0",
|
|
29
|
+
"@uifabricshared/theme-registry": ">=0.7.1 <1.0.0",
|
|
30
|
+
"@uifabricshared/theming-ramp": ">=0.16.1 <1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
|
33
34
|
"@types/jest": "^26.0.0",
|
|
34
|
-
"@types/react": "
|
|
35
|
-
"react": "16.13.1",
|
|
36
|
-
"react-native": "^0.63.4",
|
|
37
|
-
"typescript": "3.8.3",
|
|
35
|
+
"@types/react": "^17.0.2",
|
|
38
36
|
"@uifabricshared/build-native": "^0.1.1",
|
|
39
|
-
"
|
|
37
|
+
"react": "17.0.1",
|
|
38
|
+
"react-native": "^0.64.3",
|
|
39
|
+
"typescript": "4.5.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"react": ">=
|
|
43
|
-
"react-native": ">=0.
|
|
42
|
+
"react": ">=17.0.1",
|
|
43
|
+
"react-native": ">=0.64.3"
|
|
44
44
|
}
|
|
45
45
|
}
|