@fluentui-react-native/framework 0.8.29 → 0.8.30
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/compressible.d.ts +7 -0
- package/lib/compressible.js +7 -0
- package/lib/compressible.js.map +1 -1
- package/lib/useTokens.js.map +1 -1
- package/lib-commonjs/compressible.d.ts +7 -0
- package/lib-commonjs/compressible.js +7 -0
- package/lib-commonjs/compressible.js.map +1 -1
- package/lib-commonjs/useTokens.js.map +1 -1
- package/package.json +1 -1
- package/src/compressible.ts +8 -1
- package/src/useTokens.ts +1 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 30 Dec 2022 16:07:32 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/framework_v0.8.30",
|
|
7
|
+
"version": "0.8.30",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/framework",
|
|
13
|
+
"commit": "8aefb1921c84f220ddf5c5def669c5ab9a036219",
|
|
14
|
+
"comment": "Update Compressible documentation"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 29 Dec 2022 03:47:47 GMT",
|
|
6
21
|
"tag": "@fluentui-react-native/framework_v0.8.29",
|
|
7
22
|
"version": "0.8.29",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/framework
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 30 Dec 2022 16:07:32 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.8.30
|
|
8
|
+
|
|
9
|
+
Fri, 30 Dec 2022 16:07:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Update Compressible documentation (sanajmi@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.8.29
|
|
8
16
|
|
|
9
|
-
Thu, 29 Dec 2022 03:
|
|
17
|
+
Thu, 29 Dec 2022 03:47:47 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/compressible.d.ts
CHANGED
|
@@ -2,4 +2,11 @@ import { Theme } from '@fluentui-react-native/theme-types';
|
|
|
2
2
|
import { StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
import { UseTokens } from './useTokens';
|
|
5
|
+
/**
|
|
6
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
|
+
* and also have customize functionality.
|
|
8
|
+
* @param fn StagedRender function that defines your component
|
|
9
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
|
+
*/
|
|
5
12
|
export declare function compressible<TProps, TTokens>(fn: StagedRender<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
|
package/lib/compressible.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { stagedComponent } from '@fluentui-react-native/use-slot';
|
|
2
|
+
/**
|
|
3
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
4
|
+
* and also have customize functionality.
|
|
5
|
+
* @param fn StagedRender function that defines your component
|
|
6
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
7
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
8
|
+
*/
|
|
2
9
|
export function compressible(fn, useTokens) {
|
|
3
10
|
var injectedWrapper = function (props) { return fn(props, useTokens); };
|
|
4
11
|
var component = stagedComponent(injectedWrapper);
|
package/lib/compressible.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAKhF,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAKhF;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/lib/useTokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAA8B,MAAM,mCAAmC,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAA8B,MAAM,mCAAmC,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAKpH,MAAM,UAAU,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,kBAAkB,8BAAC,WAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC"}
|
|
@@ -2,4 +2,11 @@ import { Theme } from '@fluentui-react-native/theme-types';
|
|
|
2
2
|
import { StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
import { UseTokens } from './useTokens';
|
|
5
|
+
/**
|
|
6
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
|
+
* and also have customize functionality.
|
|
8
|
+
* @param fn StagedRender function that defines your component
|
|
9
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
|
+
*/
|
|
5
12
|
export declare function compressible<TProps, TTokens>(fn: StagedRender<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.compressible = void 0;
|
|
4
4
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
5
|
+
/**
|
|
6
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
|
+
* and also have customize functionality.
|
|
8
|
+
* @param fn StagedRender function that defines your component
|
|
9
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
|
+
*/
|
|
5
12
|
function compressible(fn, useTokens) {
|
|
6
13
|
var injectedWrapper = function (props) { return fn(props, useTokens); };
|
|
7
14
|
var component = (0, use_slot_1.stagedComponent)(injectedWrapper);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AACA,4DAAgF;AAKhF,SAAgB,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAfD,oCAeC"}
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AACA,4DAAgF;AAKhF;;;;;;GAMG;AACH,SAAgB,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAfD,oCAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AAAA,gEAAqH;AACrH,6CAA4C;AAI5C,gEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;
|
|
1
|
+
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AAAA,gEAAqH;AACrH,6CAA4C;AAI5C,gEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;AAKxE,SAAgB,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,2BAAkB,2CAAC,yBAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC;AAFD,wCAEC"}
|
package/package.json
CHANGED
package/src/compressible.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { Theme } from '@fluentui-react-native/theme-types';
|
|
2
2
|
import { stagedComponent, StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
|
-
import { UseTokens } from './useTokens';
|
|
5
4
|
import { TokenSettings } from './useStyling';
|
|
5
|
+
import { UseTokens } from './useTokens';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
9
|
+
* and also have customize functionality.
|
|
10
|
+
* @param fn StagedRender function that defines your component
|
|
11
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
12
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
13
|
+
*/
|
|
7
14
|
export function compressible<TProps, TTokens>(
|
|
8
15
|
fn: StagedRender<TProps>,
|
|
9
16
|
useTokens: UseTokens<TTokens>,
|
package/src/useTokens.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { TokenSettings } from './useStyling';
|
|
|
5
5
|
|
|
6
6
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
7
7
|
|
|
8
|
+
// A hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
8
9
|
export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
|
|
9
10
|
|
|
10
11
|
export function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens> {
|