@fluentui-react-native/themed-stylesheet 1.7.5 → 1.7.6
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 +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/themedStyleSheet.js +1 -1
- package/lib/themedStyleSheet.js.map +1 -1
- package/lib-commonjs/themedStyleSheet.js +2 -2
- package/lib-commonjs/themedStyleSheet.js.map +1 -1
- package/package.json +2 -2
- package/src/themedStyleSheet.ts +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/themed-stylesheet",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 16 Jul 2025 20:02:38 GMT",
|
|
6
|
+
"version": "1.7.6",
|
|
7
|
+
"tag": "@fluentui-react-native/themed-stylesheet_v1.7.6",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jasonmo@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/themed-stylesheet",
|
|
13
|
+
"commit": "6ed0a256caf94e287c6a9120ec5d0458bd5c7bfc",
|
|
14
|
+
"comment": "create common framework-base package to share common utiltities more broadly"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 15 Jul 2025 23:26:54 GMT",
|
|
6
21
|
"version": "1.7.5",
|
|
7
22
|
"tag": "@fluentui-react-native/themed-stylesheet_v1.7.5",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/themed-stylesheet
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Wed, 16 Jul 2025 20:02:38 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.7.6
|
|
8
|
+
|
|
9
|
+
Wed, 16 Jul 2025 20:02:38 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- create common framework-base package to share common utiltities more broadly (jasonmo@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 1.7.5
|
|
8
16
|
|
|
9
|
-
Tue, 15 Jul 2025 23:
|
|
17
|
+
Tue, 15 Jul 2025 23:26:54 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/themedStyleSheet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { getMemoCache } from '@fluentui-react-native/
|
|
2
|
+
import { getMemoCache } from '@fluentui-react-native/framework-base';
|
|
3
3
|
/**
|
|
4
4
|
* A convenience wrapper to create style sheets which depend upon values in a theme, and use them in a manner
|
|
5
5
|
* where they are built and cached once per theme. The return value of this routine will be a function
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themedStyleSheet.js","sourceRoot":"","sources":["../src/themedStyleSheet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"themedStyleSheet.js","sourceRoot":"","sources":["../src/themedStyleSheet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAYrE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,UAAU,gBAAgB,CAC9B,SAAkD;IAElD,iDAAiD;IACjD,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAE7B,wCAAwC;IACxC,OAAO,CAAC,KAAa,EAAE,EAAE;QACvB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.themedStyleSheet = void 0;
|
|
4
4
|
const react_native_1 = require("react-native");
|
|
5
|
-
const
|
|
5
|
+
const framework_base_1 = require("@fluentui-react-native/framework-base");
|
|
6
6
|
/**
|
|
7
7
|
* A convenience wrapper to create style sheets which depend upon values in a theme, and use them in a manner
|
|
8
8
|
* where they are built and cached once per theme. The return value of this routine will be a function
|
|
@@ -33,7 +33,7 @@ const memo_cache_1 = require("@fluentui-react-native/memo-cache");
|
|
|
33
33
|
*/
|
|
34
34
|
function themedStyleSheet(generator) {
|
|
35
35
|
// create a memo cache for this themed stylesheet
|
|
36
|
-
const cache = (0,
|
|
36
|
+
const cache = (0, framework_base_1.getMemoCache)();
|
|
37
37
|
// now return a theme => styles function
|
|
38
38
|
return (theme) => {
|
|
39
39
|
return cache(() => react_native_1.StyleSheet.create(generator(theme)), [theme])[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themedStyleSheet.js","sourceRoot":"","sources":["../src/themedStyleSheet.ts"],"names":[],"mappings":";;;AACA,+CAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"themedStyleSheet.js","sourceRoot":"","sources":["../src/themedStyleSheet.ts"],"names":[],"mappings":";;;AACA,+CAA0C;AAE1C,0EAAqE;AAYrE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,SAAgB,gBAAgB,CAC9B,SAAkD;IAElD,iDAAiD;IACjD,MAAM,KAAK,GAAG,IAAA,6BAAY,GAAE,CAAC;IAE7B,wCAAwC;IACxC,OAAO,CAAC,KAAa,EAAE,EAAE;QACvB,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,yBAAU,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC,CAAC;AACJ,CAAC;AAVD,4CAUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/themed-stylesheet",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"description": "Helper for using react-native StyleSheets with themes",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"author": "",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluentui-react-native/
|
|
38
|
+
"@fluentui-react-native/framework-base": "0.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.20.0",
|
package/src/themedStyleSheet.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ViewStyle, TextStyle, ImageStyle } from 'react-native';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { getMemoCache } from '@fluentui-react-native/
|
|
4
|
+
import { getMemoCache } from '@fluentui-react-native/framework-base';
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
7
7
|
type ObjectBase = {};
|