@fluentui-react-native/framework 0.6.2 → 0.6.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 +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/useStyling.d.ts +2 -2
- package/lib/useStyling.js.map +1 -1
- package/lib-commonjs/useStyling.d.ts +2 -2
- package/lib-commonjs/useStyling.js.map +1 -1
- package/package.json +4 -4
- package/src/useStyling.ts +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 20 Oct 2021 03:44:36 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/framework_v0.6.3",
|
|
7
|
+
"version": "0.6.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Revert \"Add props to buildProps (#1039)\"",
|
|
12
|
+
"author": "ruaraki@microsoft.com",
|
|
13
|
+
"commit": "273f5addbeb5abeaec0b517e5416f52d8878152f",
|
|
14
|
+
"package": "@fluentui-react-native/framework"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 19 Oct 2021 20:23:36 GMT",
|
|
6
21
|
"tag": "@fluentui-react-native/framework_v0.6.2",
|
|
7
22
|
"version": "0.6.2",
|
|
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 Wed, 20 Oct 2021 03:44:36 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.6.3
|
|
8
|
+
|
|
9
|
+
Wed, 20 Oct 2021 03:44:36 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Revert "Add props to buildProps (#1039)" (ruaraki@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.6.2
|
|
8
16
|
|
|
9
|
-
Tue, 19 Oct 2021 20:
|
|
17
|
+
Tue, 19 Oct 2021 20:23:36 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/useStyling.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
6
|
import { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
7
7
|
import { Theme } from '@fluentui-react-native/theme-types';
|
|
8
|
-
export declare type BuildProps<TProps, TTokens
|
|
9
|
-
export declare function buildProps<TProps, TTokens
|
|
8
|
+
export declare type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
9
|
+
export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
|
|
10
10
|
export declare type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
|
|
11
11
|
export declare type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
|
|
12
12
|
export declare type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
|
package/lib/useStyling.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,eAAe,IAAI,mBAAmB,EAEtC,UAAU,IAAI,cAAc,GAE7B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,UAAU,UAAU,CACxB,
|
|
1
|
+
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,eAAe,IAAI,mBAAmB,EAEtC,UAAU,IAAI,cAAc,GAE7B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,UAAU,UAAU,CACxB,EAA6C,EAC7C,IAAwB;IAExB,OAAO,cAAc,CAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC;AAMD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAuD;IAEvD,8DAA8D;IAC9D,OAAO,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
6
|
import { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
7
7
|
import { Theme } from '@fluentui-react-native/theme-types';
|
|
8
|
-
export declare type BuildProps<TProps, TTokens
|
|
9
|
-
export declare function buildProps<TProps, TTokens
|
|
8
|
+
export declare type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
9
|
+
export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
|
|
10
10
|
export declare type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
|
|
11
11
|
export declare type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
|
|
12
12
|
export declare type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":";;AAKA,kEAQ4C;AAE5C,6CAA4C;AAI5C,SAAgB,UAAU,CACxB,
|
|
1
|
+
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":";;AAKA,kEAQ4C;AAE5C,6CAA4C;AAI5C,SAAgB,UAAU,CACxB,EAA6C,EAC7C,IAAwB;IAExB,OAAO,wBAAc,CAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC;AALD,gCAKC;AAMD;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,OAAuD;IAEvD,8DAA8D;IAC9D,OAAO,6BAAmB,CAAC,OAAO,EAAE,yBAAW,CAAC,CAAC;AACnD,CAAC;AALD,0CAKC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Component framework used by fluentui react native controls",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"prettier-fix": "fluentui-scripts prettier --fix true"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@fluentui-react-native/composition": ">=0.6.
|
|
25
|
-
"@fluentui-react-native/default-theme": ">=0.8.
|
|
24
|
+
"@fluentui-react-native/composition": ">=0.6.11 <1.0.0",
|
|
25
|
+
"@fluentui-react-native/default-theme": ">=0.8.8 <1.0.0",
|
|
26
26
|
"@fluentui-react-native/immutable-merge": "^1.1.3",
|
|
27
27
|
"@fluentui-react-native/merge-props": ">=0.3.4 <1.0.0",
|
|
28
28
|
"@fluentui-react-native/theme-types": ">=0.12.3 <1.0.0",
|
|
29
|
-
"@fluentui-react-native/use-styling": ">=0.7.
|
|
29
|
+
"@fluentui-react-native/use-styling": ">=0.7.1 <1.0.0",
|
|
30
30
|
"@fluentui-react-native/use-slot": ">=0.1.6 <1.0.0",
|
|
31
31
|
"@fluentui-react-native/use-slots": ">=0.5.8 <1.0.0",
|
|
32
32
|
"@fluentui-react-native/use-tokens": ">=0.1.6 <1.0.0",
|
package/src/useStyling.ts
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
import { Theme } from '@fluentui-react-native/theme-types';
|
|
16
16
|
import { themeHelper } from './themeHelper';
|
|
17
17
|
|
|
18
|
-
export type BuildProps<TProps, TTokens
|
|
18
|
+
export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
19
19
|
|
|
20
|
-
export function buildProps<TProps, TTokens
|
|
21
|
-
fn: (tokens: TTokens, theme: Theme
|
|
22
|
-
keys?: (keyof TTokens
|
|
23
|
-
): BuildProps<TProps, TTokens
|
|
24
|
-
return buildPropsBase<TProps, TTokens, Theme
|
|
20
|
+
export function buildProps<TProps, TTokens>(
|
|
21
|
+
fn: (tokens: TTokens, theme: Theme) => TProps,
|
|
22
|
+
keys?: (keyof TTokens)[],
|
|
23
|
+
): BuildProps<TProps, TTokens> {
|
|
24
|
+
return buildPropsBase<TProps, TTokens, Theme>(fn, keys);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
|