@fluentui-react-native/framework 0.9.2 → 0.9.4
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 +97 -1
- package/CHANGELOG.md +29 -2
- package/lib/compose.d.ts +1 -1
- package/lib/compose.js.map +1 -1
- package/lib/compressible.js.map +1 -1
- package/lib/compressible.test.js +4 -4
- package/lib/compressible.test.js.map +1 -1
- package/lib/themeHelper.d.ts +1 -1
- package/lib/themeHelper.js.map +1 -1
- package/lib/useStyling.d.ts +1 -1
- package/lib/useStyling.js.map +1 -1
- package/lib/useTokens.d.ts +1 -1
- package/lib/useTokens.js.map +1 -1
- package/lib-commonjs/compose.d.ts +1 -1
- package/lib-commonjs/compose.js.map +1 -1
- package/lib-commonjs/compressible.js.map +1 -1
- package/lib-commonjs/compressible.test.js +4 -4
- package/lib-commonjs/compressible.test.js.map +1 -1
- package/lib-commonjs/themeHelper.d.ts +1 -1
- package/lib-commonjs/themeHelper.js.map +1 -1
- package/lib-commonjs/useStyling.d.ts +1 -1
- package/lib-commonjs/useStyling.js.map +1 -1
- package/lib-commonjs/useTokens.d.ts +1 -1
- package/lib-commonjs/useTokens.js.map +1 -1
- package/package.json +10 -10
- package/src/compose.ts +2 -1
- package/src/compressible.test.tsx +9 -7
- package/src/compressible.ts +1 -0
- package/src/themeHelper.ts +2 -1
- package/src/useStyling.ts +2 -1
- package/src/useTokens.ts +2 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,103 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri,
|
|
5
|
+
"date": "Fri, 03 Mar 2023 06:44:56 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/framework_v0.9.4",
|
|
7
|
+
"version": "0.9.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/framework",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.17.4",
|
|
14
|
+
"commit": "4659b74650377d2f746a81a321346a481816a5af"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/framework",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.30.4",
|
|
20
|
+
"commit": "4659b74650377d2f746a81a321346a481816a5af"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/framework",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.20.11",
|
|
26
|
+
"commit": "4659b74650377d2f746a81a321346a481816a5af"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Fri, 24 Feb 2023 20:39:58 GMT",
|
|
33
|
+
"tag": "@fluentui-react-native/framework_v0.9.3",
|
|
34
|
+
"version": "0.9.3",
|
|
35
|
+
"comments": {
|
|
36
|
+
"patch": [
|
|
37
|
+
{
|
|
38
|
+
"author": "78454019+lyzhan7@users.noreply.github.com",
|
|
39
|
+
"package": "@fluentui-react-native/framework",
|
|
40
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2",
|
|
41
|
+
"comment": "Order imports"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui-react-native/framework",
|
|
46
|
+
"comment": "Bump @fluentui-react-native/composition to v0.8.4",
|
|
47
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/framework",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.17.3",
|
|
53
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui-react-native/framework",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/merge-props to v0.5.3",
|
|
59
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/framework",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.30.3",
|
|
65
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/framework",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/use-styling to v0.9.4",
|
|
71
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/framework",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.3.4",
|
|
77
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui-react-native/framework",
|
|
82
|
+
"comment": "Bump @fluentui-react-native/use-slots to v0.7.4",
|
|
83
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@fluentui-react-native/framework",
|
|
88
|
+
"comment": "Bump @fluentui-react-native/use-tokens to v0.3.4",
|
|
89
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@fluentui-react-native/framework",
|
|
94
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.20.10",
|
|
95
|
+
"commit": "743bd1507af336a62946361f3fe3c800ae5bd4c2"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"date": "Fri, 24 Feb 2023 02:22:40 GMT",
|
|
6
102
|
"tag": "@fluentui-react-native/framework_v0.9.2",
|
|
7
103
|
"version": "0.9.2",
|
|
8
104
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,39 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/framework
|
|
2
2
|
|
|
3
|
-
This log was last generated on Fri,
|
|
3
|
+
This log was last generated on Fri, 03 Mar 2023 06:44:56 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.9.4
|
|
8
|
+
|
|
9
|
+
Fri, 03 Mar 2023 06:44:56 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/default-theme to v0.17.4
|
|
14
|
+
- Bump @fluentui-react-native/theme-types to v0.30.4
|
|
15
|
+
- Bump @fluentui-react-native/tokens to v0.20.11
|
|
16
|
+
|
|
17
|
+
## 0.9.3
|
|
18
|
+
|
|
19
|
+
Fri, 24 Feb 2023 20:39:58 GMT
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Order imports (78454019+lyzhan7@users.noreply.github.com)
|
|
24
|
+
- Bump @fluentui-react-native/composition to v0.8.4
|
|
25
|
+
- Bump @fluentui-react-native/default-theme to v0.17.3
|
|
26
|
+
- Bump @fluentui-react-native/merge-props to v0.5.3
|
|
27
|
+
- Bump @fluentui-react-native/theme-types to v0.30.3
|
|
28
|
+
- Bump @fluentui-react-native/use-styling to v0.9.4
|
|
29
|
+
- Bump @fluentui-react-native/use-slot to v0.3.4
|
|
30
|
+
- Bump @fluentui-react-native/use-slots to v0.7.4
|
|
31
|
+
- Bump @fluentui-react-native/use-tokens to v0.3.4
|
|
32
|
+
- Bump @fluentui-react-native/tokens to v0.20.10
|
|
33
|
+
|
|
7
34
|
## 0.9.2
|
|
8
35
|
|
|
9
|
-
Fri, 24 Feb 2023 02:
|
|
36
|
+
Fri, 24 Feb 2023 02:22:40 GMT
|
|
10
37
|
|
|
11
38
|
### Patches
|
|
12
39
|
|
package/lib/compose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
1
|
import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
|
|
2
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
3
3
|
/**
|
|
4
4
|
* This is an object used purely for configuring the typings on composable. It is not necessary to define
|
|
5
5
|
* the type via the IComposableType interface, this is simply the format used to extract the type info.
|
package/lib/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAoD5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG;IAErG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
package/lib/compressible.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMlE;;;;;;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/compressible.test.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import { buildUseTokens } from './useTokens';
|
|
3
|
-
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
4
2
|
import { Text, View } from 'react-native';
|
|
5
|
-
import { compressible } from './compressible';
|
|
6
3
|
import { mergeStyles } from '@fluentui-react-native/merge-props';
|
|
7
4
|
import { useSlot, withSlots } from '@fluentui-react-native/use-slot';
|
|
8
|
-
import
|
|
5
|
+
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
9
6
|
import { mount } from 'enzyme';
|
|
7
|
+
import toJson from 'enzyme-to-json';
|
|
8
|
+
import { compressible } from './compressible';
|
|
9
|
+
import { buildUseTokens } from './useTokens';
|
|
10
10
|
var useVariantTokens = buildUseTokens({
|
|
11
11
|
color: 'black',
|
|
12
12
|
fontSize: 12,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAe7C,IAAM,gBAAgB,GAAG,cAAc,CAAoB;IACzD,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC;AAEH,IAAM,WAAW,GAAG,YAAY,CAC9B,UAAC,KAAuB,EAAE,SAAuC;;IAC/D,kBAAkB;IAClB,IAAM,KAAK,GAAU,EAAW,CAAC;IACjC,iBAAiB;IACb,IAAA,KAAkB,SAAS,CAAC,KAAK,CAAC,EAAjC,MAAM,QAAA,EAAE,KAAK,QAAoB,CAAC;IACvC,mFAAmF;IAC3E,IAAA,KAAiD,KAAK,QAA1B,EAA5B,OAAO,mBAAG,MAAM,CAAC,WAAW,KAAA,EAAE,KAAK,GAAc,KAAK,MAAnB,EAAK,IAAI,UAAK,KAAK,EAAxD,oBAAgD,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F,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/themeHelper.d.ts
CHANGED
package/lib/themeHelper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,IAAM,WAAW,GAAuB;IAC7C,QAAQ,EAAE,cAAM,OAAA,cAAc,EAAE,EAAhB,CAAgB;IAChC,gBAAgB,EAAE,UAAC,KAAY,EAAE,IAAY;QAC3C,IAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC;QAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC"}
|
package/lib/useStyling.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* as to be dependent on the core theme type
|
|
4
4
|
*/
|
|
5
5
|
export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
|
-
import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
7
6
|
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
7
|
+
import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
8
8
|
export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
9
9
|
export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
|
|
10
10
|
export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
|
package/lib/useStyling.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAE1H,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"}
|
package/lib/useTokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
2
1
|
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
3
3
|
import type { TokenSettings } from './useStyling';
|
|
4
4
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
5
5
|
export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
|
package/lib/useTokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEzF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
1
|
import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
|
|
2
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
3
3
|
/**
|
|
4
4
|
* This is an object used purely for configuring the typings on composable. It is not necessary to define
|
|
5
5
|
* the type via the IComposableType interface, this is simply the format used to extract the type info.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":";;;AACA,kEAAoE;AAGpE,6CAA4C;AAoD5C,SAAgB,OAAO,CACrB,OAAkG,EAClG,IAAqG;IAErG,OAAO,IAAA,4BAAc,EAAC,OAAO,EAAE,yBAAW,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC;AALD,0BAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AAEA,4DAAkE;
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AAEA,4DAAkE;AAMlE;;;;;;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,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
-
var useTokens_1 = require("./useTokens");
|
|
5
|
-
var use_tokens_1 = require("@fluentui-react-native/use-tokens");
|
|
6
4
|
var react_native_1 = require("react-native");
|
|
7
|
-
var compressible_1 = require("./compressible");
|
|
8
5
|
var merge_props_1 = require("@fluentui-react-native/merge-props");
|
|
9
6
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
10
|
-
var
|
|
7
|
+
var use_tokens_1 = require("@fluentui-react-native/use-tokens");
|
|
11
8
|
var enzyme_1 = require("enzyme");
|
|
9
|
+
var enzyme_to_json_1 = require("enzyme-to-json");
|
|
10
|
+
var compressible_1 = require("./compressible");
|
|
11
|
+
var useTokens_1 = require("./useTokens");
|
|
12
12
|
var useVariantTokens = (0, useTokens_1.buildUseTokens)({
|
|
13
13
|
color: 'black',
|
|
14
14
|
fontSize: 12,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";;;AAGA,6CAA0C;AAE1C,kEAAiE;AAEjE,4DAAqE;AACrE,gEAAqE;AACrE,iCAA+B;AAC/B,iDAAoC;AAEpC,+CAA8C;AAC9C,yCAA6C;AAe7C,IAAM,gBAAgB,GAAG,IAAA,0BAAc,EAAoB;IACzD,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC;AAEH,IAAM,WAAW,GAAG,IAAA,2BAAY,EAC9B,UAAC,KAAuB,EAAE,SAAuC;;IAC/D,kBAAkB;IAClB,IAAM,KAAK,GAAU,EAAW,CAAC;IACjC,iBAAiB;IACb,IAAA,KAAkB,SAAS,CAAC,KAAK,CAAC,EAAjC,MAAM,QAAA,EAAE,KAAK,QAAoB,CAAC;IACvC,mFAAmF;IAC3E,IAAA,KAAiD,KAAK,QAA1B,EAA5B,OAAO,mBAAG,MAAM,CAAC,WAAW,KAAA,EAAE,KAAK,GAAc,KAAK,MAAnB,EAAK,IAAI,kBAAK,KAAK,EAAxD,oBAAgD,CAAF,CAAW;IAC/D,sDAAsD;IACtD,KAAkB,IAAA,6BAAgB,EAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,UAAC,KAAK,IAAK,OAAA,KAAK,KAAK,OAAO,EAAjB,CAAiB,CAAC,EAA/G,MAAM,QAAA,EAAE,KAAK,QAAA,CAAmG;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../src/themeHelper.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":";;;AAGA,mDAAkD;AAErC,QAAA,WAAW,GAAuB;IAC7C,QAAQ,EAAE,cAAM,OAAA,IAAA,+BAAc,GAAE,EAAhB,CAAgB;IAChC,gBAAgB,EAAE,UAAC,KAAY,EAAE,IAAY;QAC3C,IAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC;QAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* as to be dependent on the core theme type
|
|
4
4
|
*/
|
|
5
5
|
export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
|
-
import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
7
6
|
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
7
|
+
import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
8
8
|
export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
9
9
|
export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
|
|
10
10
|
export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":";;;AAaA,kEAA0H;AAE1H,6CAA4C;AAI5C,SAAgB,UAAU,CACxB,EAA6C,EAC7C,IAAwB;IAExB,OAAO,IAAA,wBAAc,EAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC;AALD,gCAKC;AAMD;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,OAAuD;IAEvD,8DAA8D;IAC9D,OAAO,IAAA,6BAAmB,EAAC,OAAO,EAAE,yBAAW,CAAC,CAAC;AACnD,CAAC;AALD,0CAKC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
2
1
|
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
3
3
|
import type { TokenSettings } from './useStyling';
|
|
4
4
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
5
5
|
export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AAEA,gEAAyF;AAEzF,6CAA4C;AAG5C,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,sCAAC,yBAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC;AAFD,wCAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Component framework used by fluentui react native controls",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"directory": "packages/framework/framework"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@fluentui-react-native/composition": ">=0.8.
|
|
28
|
-
"@fluentui-react-native/default-theme": ">=0.17.
|
|
27
|
+
"@fluentui-react-native/composition": ">=0.8.4 <1.0.0",
|
|
28
|
+
"@fluentui-react-native/default-theme": ">=0.17.4 <1.0.0",
|
|
29
29
|
"@fluentui-react-native/immutable-merge": "^1.1.8",
|
|
30
|
-
"@fluentui-react-native/merge-props": ">=0.5.
|
|
31
|
-
"@fluentui-react-native/theme-types": ">=0.30.
|
|
32
|
-
"@fluentui-react-native/use-styling": ">=0.9.
|
|
33
|
-
"@fluentui-react-native/use-slot": ">=0.3.
|
|
34
|
-
"@fluentui-react-native/use-slots": ">=0.7.
|
|
35
|
-
"@fluentui-react-native/use-tokens": ">=0.3.
|
|
30
|
+
"@fluentui-react-native/merge-props": ">=0.5.3 <1.0.0",
|
|
31
|
+
"@fluentui-react-native/theme-types": ">=0.30.4 <1.0.0",
|
|
32
|
+
"@fluentui-react-native/use-styling": ">=0.9.4 <1.0.0",
|
|
33
|
+
"@fluentui-react-native/use-slot": ">=0.3.4 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/use-slots": ">=0.7.4 <1.0.0",
|
|
35
|
+
"@fluentui-react-native/use-tokens": ">=0.3.4 <1.0.0",
|
|
36
36
|
"@fluentui-react-native/memo-cache": "^1.1.8",
|
|
37
|
-
"@fluentui-react-native/tokens": ">=0.20.
|
|
37
|
+
"@fluentui-react-native/tokens": ">=0.20.11 <1.0.0",
|
|
38
38
|
"tslib": "^2.3.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
package/src/compose.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
1
|
import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
|
|
3
2
|
import { composeFactory } from '@fluentui-react-native/composition';
|
|
3
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
4
|
+
|
|
4
5
|
import { themeHelper } from './themeHelper';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/** @jsx withSlots */
|
|
2
|
-
import
|
|
3
|
-
import { buildUseTokens } from './useTokens';
|
|
4
|
-
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
2
|
+
import * as React from 'react';
|
|
5
3
|
import type { TextProps, TextStyle } from 'react-native';
|
|
6
4
|
import { Text, View } from 'react-native';
|
|
7
|
-
|
|
8
|
-
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
5
|
+
|
|
9
6
|
import { mergeStyles } from '@fluentui-react-native/merge-props';
|
|
7
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
10
8
|
import { useSlot, withSlots } from '@fluentui-react-native/use-slot';
|
|
11
|
-
import
|
|
12
|
-
import toJson from 'enzyme-to-json';
|
|
9
|
+
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
13
10
|
import { mount } from 'enzyme';
|
|
11
|
+
import toJson from 'enzyme-to-json';
|
|
12
|
+
|
|
13
|
+
import { compressible } from './compressible';
|
|
14
|
+
import { buildUseTokens } from './useTokens';
|
|
15
|
+
import type { UseTokens } from './useTokens';
|
|
14
16
|
|
|
15
17
|
type Variant = 'normal' | 'header' | 'caption';
|
|
16
18
|
interface VariantTextTokens {
|
package/src/compressible.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Theme } from '@fluentui-react-native/theme-types';
|
|
|
2
2
|
import type { StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { stagedComponent } from '@fluentui-react-native/use-slot';
|
|
4
4
|
import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
5
|
+
|
|
5
6
|
import type { TokenSettings } from './useStyling';
|
|
6
7
|
import type { UseTokens } from './useTokens';
|
|
7
8
|
|
package/src/themeHelper.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { ThemeHelper } from '@fluentui-react-native/use-styling';
|
|
2
1
|
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { ThemeHelper } from '@fluentui-react-native/use-styling';
|
|
3
|
+
|
|
3
4
|
import { useFluentTheme } from './useFluentTheme';
|
|
4
5
|
|
|
5
6
|
export const themeHelper: ThemeHelper<Theme> = {
|
package/src/useStyling.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* as to be dependent on the core theme type
|
|
4
4
|
*/
|
|
5
5
|
export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
6
7
|
import type {
|
|
7
8
|
TokensFromTheme as TokensFromThemeBase,
|
|
8
9
|
TokenSettings as TokenSettingsBase,
|
|
@@ -11,7 +12,7 @@ import type {
|
|
|
11
12
|
BuildPropsBase,
|
|
12
13
|
} from '@fluentui-react-native/use-styling';
|
|
13
14
|
import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase } from '@fluentui-react-native/use-styling';
|
|
14
|
-
|
|
15
|
+
|
|
15
16
|
import { themeHelper } from './themeHelper';
|
|
16
17
|
|
|
17
18
|
export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
package/src/useTokens.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
1
2
|
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
2
3
|
import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
4
|
+
|
|
3
5
|
import { themeHelper } from './themeHelper';
|
|
4
|
-
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
5
6
|
import type { TokenSettings } from './useStyling';
|
|
6
7
|
|
|
7
8
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|