@fluentui-react-native/framework 0.7.3 → 0.7.7
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 +211 -1
- package/CHANGELOG.md +59 -2
- package/lib/compressible.test.js.map +1 -1
- package/lib/useTokens.js +2 -2
- package/lib/useTokens.js.map +1 -1
- package/lib-commonjs/compose.js +2 -1
- package/lib-commonjs/compose.js.map +1 -1
- package/lib-commonjs/compressible.js +2 -1
- package/lib-commonjs/compressible.js.map +1 -1
- package/lib-commonjs/compressible.test.js +22 -22
- package/lib-commonjs/compressible.test.js.map +1 -1
- package/lib-commonjs/index.js +33 -32
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/themeHelper.js +2 -1
- package/lib-commonjs/themeHelper.js.map +1 -1
- package/lib-commonjs/useFluentTheme.js +2 -1
- package/lib-commonjs/useFluentTheme.js.map +1 -1
- package/lib-commonjs/useStyling.js +3 -2
- package/lib-commonjs/useStyling.js.map +1 -1
- package/lib-commonjs/useTokens.js +6 -5
- package/lib-commonjs/useTokens.js.map +1 -1
- package/package.json +18 -13
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,217 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 21 Dec 2021 20:54:12 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/framework_v0.7.7",
|
|
7
|
+
"version": "0.7.7",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/framework",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/composition to v0.7.5",
|
|
14
|
+
"commit": "a7d19d410d5714e2bdb61529d2687182061020a5"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/framework",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.2.5",
|
|
20
|
+
"commit": "a7d19d410d5714e2bdb61529d2687182061020a5"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/framework",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/use-slots to v0.6.5",
|
|
26
|
+
"commit": "a7d19d410d5714e2bdb61529d2687182061020a5"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Mon, 20 Dec 2021 22:56:01 GMT",
|
|
33
|
+
"tag": "@fluentui-react-native/framework_v0.7.6",
|
|
34
|
+
"version": "0.7.6",
|
|
35
|
+
"comments": {
|
|
36
|
+
"patch": [
|
|
37
|
+
{
|
|
38
|
+
"author": "ruaraki@microsoft.com",
|
|
39
|
+
"package": "@fluentui-react-native/framework",
|
|
40
|
+
"commit": "f4a5b4f5c9c190400e3e34c4a33b3ed30696d41e",
|
|
41
|
+
"comment": "Add repository property to all package.json files"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui-react-native/framework",
|
|
46
|
+
"comment": "Bump @fluentui-react-native/composition to v0.7.4",
|
|
47
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/framework",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.4",
|
|
53
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui-react-native/framework",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/immutable-merge to v1.1.6",
|
|
59
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/framework",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/merge-props to v0.4.2",
|
|
65
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/framework",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.13.1",
|
|
71
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/framework",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/use-styling to v0.8.2",
|
|
77
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui-react-native/framework",
|
|
82
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.2.4",
|
|
83
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@fluentui-react-native/framework",
|
|
88
|
+
"comment": "Bump @fluentui-react-native/use-slots to v0.6.4",
|
|
89
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@fluentui-react-native/framework",
|
|
94
|
+
"comment": "Bump @fluentui-react-native/use-tokens to v0.2.2",
|
|
95
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"author": "beachball",
|
|
99
|
+
"package": "@fluentui-react-native/framework",
|
|
100
|
+
"comment": "Bump @fluentui-react-native/memo-cache to v1.1.7",
|
|
101
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"author": "beachball",
|
|
105
|
+
"package": "@fluentui-react-native/framework",
|
|
106
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.11.3",
|
|
107
|
+
"commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"date": "Sat, 18 Dec 2021 04:15:04 GMT",
|
|
114
|
+
"tag": "@fluentui-react-native/framework_v0.7.5",
|
|
115
|
+
"version": "0.7.5",
|
|
116
|
+
"comments": {
|
|
117
|
+
"patch": [
|
|
118
|
+
{
|
|
119
|
+
"author": "afoxman@microsoft.com",
|
|
120
|
+
"package": "@fluentui-react-native/framework",
|
|
121
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789",
|
|
122
|
+
"comment": "Update to TypeScript 4.5.4."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"author": "beachball",
|
|
126
|
+
"package": "@fluentui-react-native/framework",
|
|
127
|
+
"comment": "Bump @fluentui-react-native/composition to v0.7.3",
|
|
128
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"author": "beachball",
|
|
132
|
+
"package": "@fluentui-react-native/framework",
|
|
133
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.3",
|
|
134
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"author": "beachball",
|
|
138
|
+
"package": "@fluentui-react-native/framework",
|
|
139
|
+
"comment": "Bump @fluentui-react-native/immutable-merge to v1.1.5",
|
|
140
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"author": "beachball",
|
|
144
|
+
"package": "@fluentui-react-native/framework",
|
|
145
|
+
"comment": "Bump @fluentui-react-native/merge-props to v0.4.1",
|
|
146
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"author": "beachball",
|
|
150
|
+
"package": "@fluentui-react-native/framework",
|
|
151
|
+
"comment": "Bump @fluentui-react-native/use-styling to v0.8.1",
|
|
152
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"author": "beachball",
|
|
156
|
+
"package": "@fluentui-react-native/framework",
|
|
157
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.2.3",
|
|
158
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"author": "beachball",
|
|
162
|
+
"package": "@fluentui-react-native/framework",
|
|
163
|
+
"comment": "Bump @fluentui-react-native/use-slots to v0.6.3",
|
|
164
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"author": "beachball",
|
|
168
|
+
"package": "@fluentui-react-native/framework",
|
|
169
|
+
"comment": "Bump @fluentui-react-native/use-tokens to v0.2.1",
|
|
170
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"author": "beachball",
|
|
174
|
+
"package": "@fluentui-react-native/framework",
|
|
175
|
+
"comment": "Bump @fluentui-react-native/memo-cache to v1.1.6",
|
|
176
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"author": "beachball",
|
|
180
|
+
"package": "@fluentui-react-native/framework",
|
|
181
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.11.2",
|
|
182
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"date": "Fri, 17 Dec 2021 22:06:58 GMT",
|
|
189
|
+
"tag": "@fluentui-react-native/framework_v0.7.4",
|
|
190
|
+
"version": "0.7.4",
|
|
191
|
+
"comments": {
|
|
192
|
+
"patch": [
|
|
193
|
+
{
|
|
194
|
+
"author": "beachball",
|
|
195
|
+
"package": "@fluentui-react-native/framework",
|
|
196
|
+
"comment": "Bump @fluentui-react-native/composition to v0.7.2",
|
|
197
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"author": "beachball",
|
|
201
|
+
"package": "@fluentui-react-native/framework",
|
|
202
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.2.2",
|
|
203
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"author": "beachball",
|
|
207
|
+
"package": "@fluentui-react-native/framework",
|
|
208
|
+
"comment": "Bump @fluentui-react-native/use-slots to v0.6.2",
|
|
209
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"date": "Fri, 17 Dec 2021 19:53:21 GMT",
|
|
6
216
|
"tag": "@fluentui-react-native/framework_v0.7.3",
|
|
7
217
|
"version": "0.7.3",
|
|
8
218
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,69 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/framework
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 21 Dec 2021 20:54:12 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.7.7
|
|
8
|
+
|
|
9
|
+
Tue, 21 Dec 2021 20:54:12 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/composition to v0.7.5
|
|
14
|
+
- Bump @fluentui-react-native/use-slot to v0.2.5
|
|
15
|
+
- Bump @fluentui-react-native/use-slots to v0.6.5
|
|
16
|
+
|
|
17
|
+
## 0.7.6
|
|
18
|
+
|
|
19
|
+
Mon, 20 Dec 2021 22:56:01 GMT
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- Add repository property to all package.json files (ruaraki@microsoft.com)
|
|
24
|
+
- Bump @fluentui-react-native/composition to v0.7.4
|
|
25
|
+
- Bump @fluentui-react-native/default-theme to v0.9.4
|
|
26
|
+
- Bump @fluentui-react-native/immutable-merge to v1.1.6
|
|
27
|
+
- Bump @fluentui-react-native/merge-props to v0.4.2
|
|
28
|
+
- Bump @fluentui-react-native/theme-types to v0.13.1
|
|
29
|
+
- Bump @fluentui-react-native/use-styling to v0.8.2
|
|
30
|
+
- Bump @fluentui-react-native/use-slot to v0.2.4
|
|
31
|
+
- Bump @fluentui-react-native/use-slots to v0.6.4
|
|
32
|
+
- Bump @fluentui-react-native/use-tokens to v0.2.2
|
|
33
|
+
- Bump @fluentui-react-native/memo-cache to v1.1.7
|
|
34
|
+
- Bump @fluentui-react-native/tokens to v0.11.3
|
|
35
|
+
|
|
36
|
+
## 0.7.5
|
|
37
|
+
|
|
38
|
+
Sat, 18 Dec 2021 04:15:04 GMT
|
|
39
|
+
|
|
40
|
+
### Patches
|
|
41
|
+
|
|
42
|
+
- Update to TypeScript 4.5.4. (afoxman@microsoft.com)
|
|
43
|
+
- Bump @fluentui-react-native/composition to v0.7.3
|
|
44
|
+
- Bump @fluentui-react-native/default-theme to v0.9.3
|
|
45
|
+
- Bump @fluentui-react-native/immutable-merge to v1.1.5
|
|
46
|
+
- Bump @fluentui-react-native/merge-props to v0.4.1
|
|
47
|
+
- Bump @fluentui-react-native/use-styling to v0.8.1
|
|
48
|
+
- Bump @fluentui-react-native/use-slot to v0.2.3
|
|
49
|
+
- Bump @fluentui-react-native/use-slots to v0.6.3
|
|
50
|
+
- Bump @fluentui-react-native/use-tokens to v0.2.1
|
|
51
|
+
- Bump @fluentui-react-native/memo-cache to v1.1.6
|
|
52
|
+
- Bump @fluentui-react-native/tokens to v0.11.2
|
|
53
|
+
|
|
54
|
+
## 0.7.4
|
|
55
|
+
|
|
56
|
+
Fri, 17 Dec 2021 22:06:58 GMT
|
|
57
|
+
|
|
58
|
+
### Patches
|
|
59
|
+
|
|
60
|
+
- Bump @fluentui-react-native/composition to v0.7.2
|
|
61
|
+
- Bump @fluentui-react-native/use-slot to v0.2.2
|
|
62
|
+
- Bump @fluentui-react-native/use-slots to v0.6.2
|
|
63
|
+
|
|
7
64
|
## 0.7.3
|
|
8
65
|
|
|
9
|
-
Fri, 17 Dec 2021 19:
|
|
66
|
+
Fri, 17 Dec 2021 19:53:21 GMT
|
|
10
67
|
|
|
11
68
|
### Patches
|
|
12
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";AAAA,qBAAqB;AACrB,OAAO,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAwB,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,O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AE;IAC7B,iDAAiD;IACjD,EAAE,CAAC,8CAA8C,EAAE;QACjD,IAAM,IAAI,GAAG,KAAK,CAChB,UAAC,IAAI;YACH,UAAC,KAAK,IAAC,UAAU,EAAC,SAAS,GAAG;YAC9B,UAAC,KAAK,IAAC,UAAU,EAAC,SAAS,EAAC,WAAW,EAAC,UAAU,GAAG,CAChD,CACR,CAAC;QACF,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE;QACpD,IAAM,IAAI,GAAG,KAAK,CAChB,UAAC,IAAI;YACH,UAAC,KAAK,IAAC,UAAU,EAAC,cAAc,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAC,gBAAgB,GAAG;YACzF,UAAC,KAAK,IAAC,UAAU,EAAC,eAAe,EAAC,WAAW,EAAC,wBAAwB,GAAG,CACpE,CACR,CAAC;QACF,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/useTokens.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __spreadArray } from "tslib";
|
|
2
2
|
import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
3
3
|
import { themeHelper } from './themeHelper';
|
|
4
4
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
@@ -7,6 +7,6 @@ export function buildUseTokens() {
|
|
|
7
7
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8
8
|
tokens[_i] = arguments[_i];
|
|
9
9
|
}
|
|
10
|
-
return buildUseTokensCore.apply(void 0,
|
|
10
|
+
return buildUseTokensCore.apply(void 0, __spreadArray([themeHelper.getComponentInfo], tokens, false));
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=useTokens.js.map
|
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;AAIpH,MAAM,UAAU,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,kBAAkB
|
|
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;AAIpH,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"}
|
package/lib-commonjs/compose.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compose = void 0;
|
|
3
4
|
var composition_1 = require("@fluentui-react-native/composition");
|
|
4
5
|
var themeHelper_1 = require("./themeHelper");
|
|
5
6
|
function compose(options, base) {
|
|
6
|
-
return composition_1.composeFactory(options, themeHelper_1.themeHelper, base);
|
|
7
|
+
return (0, composition_1.composeFactory)(options, themeHelper_1.themeHelper, base);
|
|
7
8
|
}
|
|
8
9
|
exports.compose = compose;
|
|
9
10
|
//# sourceMappingURL=compose.js.map
|
|
@@ -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,kEAAoI;AACpI,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,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compressible = void 0;
|
|
3
4
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
4
5
|
function compressible(fn, useTokens) {
|
|
5
6
|
var injectedWrapper = function (props) { return fn(props, useTokens); };
|
|
6
|
-
var component = use_slot_1.stagedComponent(injectedWrapper);
|
|
7
|
+
var component = (0, use_slot_1.stagedComponent)(injectedWrapper);
|
|
7
8
|
component.customize = function () {
|
|
8
9
|
var tokens = [];
|
|
9
10
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -10,7 +10,7 @@ var merge_props_1 = require("@fluentui-react-native/merge-props");
|
|
|
10
10
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
11
11
|
var enzyme_to_json_1 = require("enzyme-to-json");
|
|
12
12
|
var enzyme_1 = require("enzyme");
|
|
13
|
-
var useVariantTokens = useTokens_1.buildUseTokens({
|
|
13
|
+
var useVariantTokens = (0, useTokens_1.buildUseTokens)({
|
|
14
14
|
color: 'black',
|
|
15
15
|
fontSize: 12,
|
|
16
16
|
fontWeight: '500',
|
|
@@ -25,62 +25,62 @@ var useVariantTokens = useTokens_1.buildUseTokens({
|
|
|
25
25
|
fontWeight: '300',
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
|
-
var VariantText = compressible_1.compressible(function (props, useTokens) {
|
|
28
|
+
var VariantText = (0, compressible_1.compressible)(function (props, useTokens) {
|
|
29
29
|
var _a;
|
|
30
30
|
// fake theme here
|
|
31
31
|
var theme = {};
|
|
32
32
|
// get the tokens
|
|
33
33
|
var _b = useTokens(theme), tokens = _b[0], cache = _b[1];
|
|
34
34
|
// split the props, defaulting the variant type to the default type from the tokens
|
|
35
|
-
var _c = props.variant, variant = _c === void 0 ? tokens.defaultType : _c, style = props.style, rest = tslib_1.__rest(props, ["variant", "style"]);
|
|
35
|
+
var _c = props.variant, variant = _c === void 0 ? tokens.defaultType : _c, style = props.style, rest = (0, tslib_1.__rest)(props, ["variant", "style"]);
|
|
36
36
|
// now apply the alternate layer tokens as appropriate
|
|
37
|
-
_a = use_tokens_1.applyTokenLayers(tokens, ['normal', 'header', 'caption'], cache, function (layer) { return layer === variant; }), tokens = _a[0], cache = _a[1];
|
|
37
|
+
_a = (0, use_tokens_1.applyTokenLayers)(tokens, ['normal', 'header', 'caption'], cache, function (layer) { return layer === variant; }), tokens = _a[0], cache = _a[1];
|
|
38
38
|
// merge styles together with what is passed in
|
|
39
|
-
var mergedStyle = merge_props_1.mergeStyles({ color: tokens.color, fontSize: tokens.fontSize, fontWeight: tokens.fontWeight }, style);
|
|
39
|
+
var mergedStyle = (0, merge_props_1.mergeStyles)({ color: tokens.color, fontSize: tokens.fontSize, fontWeight: tokens.fontWeight }, style);
|
|
40
40
|
// now get the slot
|
|
41
|
-
var InnerText = use_slot_1.useSlot(react_native_1.Text, tslib_1.__assign(tslib_1.__assign({}, rest), { style: mergedStyle }));
|
|
41
|
+
var InnerText = (0, use_slot_1.useSlot)(react_native_1.Text, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { style: mergedStyle }));
|
|
42
42
|
return function (extra, children) {
|
|
43
|
-
return use_slot_1.withSlots(InnerText, tslib_1.__assign({}, extra), children);
|
|
43
|
+
return (0, use_slot_1.withSlots)(InnerText, (0, tslib_1.__assign)({}, extra), children);
|
|
44
44
|
};
|
|
45
45
|
}, useVariantTokens);
|
|
46
46
|
var SuperHeader = VariantText.customize({ header: { fontSize: 24, color: 'purple' } });
|
|
47
|
-
var useLabelTokens = useTokens_1.buildUseTokens({
|
|
47
|
+
var useLabelTokens = (0, useTokens_1.buildUseTokens)({
|
|
48
48
|
headerVariant: 'header',
|
|
49
49
|
captionVariant: 'caption',
|
|
50
50
|
});
|
|
51
|
-
var Label = compressible_1.compressible(function (props, useTokens) {
|
|
51
|
+
var Label = (0, compressible_1.compressible)(function (props, useTokens) {
|
|
52
52
|
var theme = {};
|
|
53
53
|
var tokens = useTokens(theme)[0];
|
|
54
54
|
var headerText = props.headerText, captionText = props.captionText, headerSlot = props.headerSlot, captionSlot = props.captionSlot;
|
|
55
|
-
var Header = use_slot_1.useSlot(headerSlot || VariantText, { variant: tokens.headerVariant });
|
|
56
|
-
var Caption = use_slot_1.useSlot(captionSlot || VariantText, { variant: tokens.captionVariant });
|
|
55
|
+
var Header = (0, use_slot_1.useSlot)(headerSlot || VariantText, { variant: tokens.headerVariant });
|
|
56
|
+
var Caption = (0, use_slot_1.useSlot)(captionSlot || VariantText, { variant: tokens.captionVariant });
|
|
57
57
|
return function () {
|
|
58
58
|
if (captionText) {
|
|
59
|
-
return (use_slot_1.withSlots(react_native_1.View, null,
|
|
60
|
-
use_slot_1.withSlots(Header, null, headerText),
|
|
61
|
-
use_slot_1.withSlots(Caption, null, captionText)));
|
|
59
|
+
return ((0, use_slot_1.withSlots)(react_native_1.View, null,
|
|
60
|
+
(0, use_slot_1.withSlots)(Header, null, headerText),
|
|
61
|
+
(0, use_slot_1.withSlots)(Caption, null, captionText)));
|
|
62
62
|
}
|
|
63
|
-
return use_slot_1.withSlots(Header, null, headerText);
|
|
63
|
+
return (0, use_slot_1.withSlots)(Header, null, headerText);
|
|
64
64
|
};
|
|
65
65
|
}, useLabelTokens);
|
|
66
66
|
/**
|
|
67
67
|
* this wrapper solves the (so-far) inexplicable type errors from the matchers in typescript
|
|
68
68
|
*/
|
|
69
69
|
function snapshotTestTree(tree) {
|
|
70
|
-
expect(enzyme_to_json_1.default(tree)).toMatchSnapshot();
|
|
70
|
+
expect((0, enzyme_to_json_1.default)(tree)).toMatchSnapshot();
|
|
71
71
|
}
|
|
72
72
|
describe('compressible tests', function () {
|
|
73
73
|
/** first render the component with no updates */
|
|
74
74
|
it('Two labels, one with caption and one without', function () {
|
|
75
|
-
var tree = enzyme_1.mount(use_slot_1.withSlots(react_native_1.View, null,
|
|
76
|
-
use_slot_1.withSlots(Label, { headerText: "Header1" }),
|
|
77
|
-
use_slot_1.withSlots(Label, { headerText: "Header2", captionText: "Caption2" })));
|
|
75
|
+
var tree = (0, enzyme_1.mount)((0, use_slot_1.withSlots)(react_native_1.View, null,
|
|
76
|
+
(0, use_slot_1.withSlots)(Label, { headerText: "Header1" }),
|
|
77
|
+
(0, use_slot_1.withSlots)(Label, { headerText: "Header2", captionText: "Caption2" })));
|
|
78
78
|
snapshotTestTree(tree);
|
|
79
79
|
});
|
|
80
80
|
it('Two labels, one plugging in SuperHeader instead', function () {
|
|
81
|
-
var tree = enzyme_1.mount(use_slot_1.withSlots(react_native_1.View, null,
|
|
82
|
-
use_slot_1.withSlots(Label, { headerText: "Super Header", headerSlot: SuperHeader, captionText: "Normal caption" }),
|
|
83
|
-
use_slot_1.withSlots(Label, { headerText: "Normal Header", captionText: "Another normal caption" })));
|
|
81
|
+
var tree = (0, enzyme_1.mount)((0, use_slot_1.withSlots)(react_native_1.View, null,
|
|
82
|
+
(0, use_slot_1.withSlots)(Label, { headerText: "Super Header", headerSlot: SuperHeader, captionText: "Normal caption" }),
|
|
83
|
+
(0, use_slot_1.withSlots)(Label, { headerText: "Normal Header", captionText: "Another normal caption" })));
|
|
84
84
|
snapshotTestTree(tree);
|
|
85
85
|
});
|
|
86
86
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";;;AAAA,qBAAqB;AACrB,yCAAwD;AACxD,gEAAqE;AACrE,6CAAgE;AAChE,+CAA8C;AAE9C,kEAAiE;AACjE,4DAAqE;AAErE,iDAAoC;AACpC,iCAA+B;AAc/B,IAAM,gBAAgB,GAAG,0BAAc,
|
|
1
|
+
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";;;AAAA,qBAAqB;AACrB,yCAAwD;AACxD,gEAAqE;AACrE,6CAAgE;AAChE,+CAA8C;AAE9C,kEAAiE;AACjE,4DAAqE;AAErE,iDAAoC;AACpC,iCAA+B;AAc/B,IAAM,gBAAgB,GAAG,IAAA,0BAAc,EAAoB;IACzD,KAAK,EAAE,OAAO;IACd,QAAQ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C,IAAS;IAChC,MAAM,CAAC,IAAA,wBAAM,EAAC,IAAI,CAAC,CAAS,CAAC,eAAe,EAAE,CAAC;AAClD,CAAC;AAED,QAAQ,CAAC,oBAAoB,EAAE;IAC7B,iDAAiD;IACjD,EAAE,CAAC,8CAA8C,EAAE;QACjD,IAAM,IAAI,GAAG,IAAA,cAAK,EAChB,0BAAC,mBAAI;YACH,0BAAC,KAAK,IAAC,UAAU,EAAC,SAAS,GAAG;YAC9B,0BAAC,KAAK,IAAC,UAAU,EAAC,SAAS,EAAC,WAAW,EAAC,UAAU,GAAG,CAChD,CACR,CAAC;QACF,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE;QACpD,IAAM,IAAI,GAAG,IAAA,cAAK,EAChB,0BAAC,mBAAI;YACH,0BAAC,KAAK,IAAC,UAAU,EAAC,cAAc,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAC,gBAAgB,GAAG;YACzF,0BAAC,KAAK,IAAC,UAAU,EAAC,eAAe,EAAC,WAAW,EAAC,wBAAwB,GAAG,CACpE,CACR,CAAC;QACF,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTheme = exports.ThemeContext = exports.processImmutable = exports.immutableMergeCore = exports.immutableMerge = exports.buildUseSlots = exports.withSlots = exports.useSlot = exports.stagedComponent = exports.renderSlot = exports.tokenBuilder = exports.textTokens = exports.shadowTokens = exports.shadowStyles = exports.layoutTokens = exports.layoutStyles = exports.getPaletteFromTheme = exports.foregroundColorTokens = exports.fontStyles = exports.colorTokens = exports.borderTokens = exports.borderStyles = exports.backgroundColorTokens = exports.mergeStyles = exports.mergeProps = exports.memoize = exports.getMemoCache = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var memo_cache_1 = require("@fluentui-react-native/memo-cache");
|
|
5
|
-
exports
|
|
6
|
-
exports
|
|
6
|
+
Object.defineProperty(exports, "getMemoCache", { enumerable: true, get: function () { return memo_cache_1.getMemoCache; } });
|
|
7
|
+
Object.defineProperty(exports, "memoize", { enumerable: true, get: function () { return memo_cache_1.memoize; } });
|
|
7
8
|
var merge_props_1 = require("@fluentui-react-native/merge-props");
|
|
8
|
-
exports
|
|
9
|
-
exports
|
|
9
|
+
Object.defineProperty(exports, "mergeProps", { enumerable: true, get: function () { return merge_props_1.mergeProps; } });
|
|
10
|
+
Object.defineProperty(exports, "mergeStyles", { enumerable: true, get: function () { return merge_props_1.mergeStyles; } });
|
|
10
11
|
var tokens_1 = require("@fluentui-react-native/tokens");
|
|
11
|
-
exports
|
|
12
|
-
exports
|
|
13
|
-
exports
|
|
14
|
-
exports
|
|
15
|
-
exports
|
|
16
|
-
exports
|
|
17
|
-
exports
|
|
18
|
-
exports
|
|
19
|
-
exports
|
|
20
|
-
exports
|
|
21
|
-
exports
|
|
22
|
-
exports
|
|
23
|
-
exports
|
|
12
|
+
Object.defineProperty(exports, "backgroundColorTokens", { enumerable: true, get: function () { return tokens_1.backgroundColorTokens; } });
|
|
13
|
+
Object.defineProperty(exports, "borderStyles", { enumerable: true, get: function () { return tokens_1.borderStyles; } });
|
|
14
|
+
Object.defineProperty(exports, "borderTokens", { enumerable: true, get: function () { return tokens_1.borderTokens; } });
|
|
15
|
+
Object.defineProperty(exports, "colorTokens", { enumerable: true, get: function () { return tokens_1.colorTokens; } });
|
|
16
|
+
Object.defineProperty(exports, "fontStyles", { enumerable: true, get: function () { return tokens_1.fontStyles; } });
|
|
17
|
+
Object.defineProperty(exports, "foregroundColorTokens", { enumerable: true, get: function () { return tokens_1.foregroundColorTokens; } });
|
|
18
|
+
Object.defineProperty(exports, "getPaletteFromTheme", { enumerable: true, get: function () { return tokens_1.getPaletteFromTheme; } });
|
|
19
|
+
Object.defineProperty(exports, "layoutStyles", { enumerable: true, get: function () { return tokens_1.layoutStyles; } });
|
|
20
|
+
Object.defineProperty(exports, "layoutTokens", { enumerable: true, get: function () { return tokens_1.layoutTokens; } });
|
|
21
|
+
Object.defineProperty(exports, "shadowStyles", { enumerable: true, get: function () { return tokens_1.shadowStyles; } });
|
|
22
|
+
Object.defineProperty(exports, "shadowTokens", { enumerable: true, get: function () { return tokens_1.shadowTokens; } });
|
|
23
|
+
Object.defineProperty(exports, "textTokens", { enumerable: true, get: function () { return tokens_1.textTokens; } });
|
|
24
|
+
Object.defineProperty(exports, "tokenBuilder", { enumerable: true, get: function () { return tokens_1.tokenBuilder; } });
|
|
24
25
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
25
|
-
exports
|
|
26
|
-
exports
|
|
27
|
-
exports
|
|
28
|
-
exports
|
|
26
|
+
Object.defineProperty(exports, "renderSlot", { enumerable: true, get: function () { return use_slot_1.renderSlot; } });
|
|
27
|
+
Object.defineProperty(exports, "stagedComponent", { enumerable: true, get: function () { return use_slot_1.stagedComponent; } });
|
|
28
|
+
Object.defineProperty(exports, "useSlot", { enumerable: true, get: function () { return use_slot_1.useSlot; } });
|
|
29
|
+
Object.defineProperty(exports, "withSlots", { enumerable: true, get: function () { return use_slot_1.withSlots; } });
|
|
29
30
|
var use_slots_1 = require("@fluentui-react-native/use-slots");
|
|
30
|
-
exports
|
|
31
|
+
Object.defineProperty(exports, "buildUseSlots", { enumerable: true, get: function () { return use_slots_1.buildUseSlots; } });
|
|
31
32
|
var immutable_merge_1 = require("@fluentui-react-native/immutable-merge");
|
|
32
|
-
exports
|
|
33
|
-
exports
|
|
34
|
-
exports
|
|
33
|
+
Object.defineProperty(exports, "immutableMerge", { enumerable: true, get: function () { return immutable_merge_1.immutableMerge; } });
|
|
34
|
+
Object.defineProperty(exports, "immutableMergeCore", { enumerable: true, get: function () { return immutable_merge_1.immutableMergeCore; } });
|
|
35
|
+
Object.defineProperty(exports, "processImmutable", { enumerable: true, get: function () { return immutable_merge_1.processImmutable; } });
|
|
35
36
|
var theme_types_1 = require("@fluentui-react-native/theme-types");
|
|
36
|
-
exports
|
|
37
|
-
exports
|
|
38
|
-
tslib_1.__exportStar(require("./compose"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./compressible"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./useFluentTheme"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./useStyling"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./useTokens"), exports);
|
|
37
|
+
Object.defineProperty(exports, "ThemeContext", { enumerable: true, get: function () { return theme_types_1.ThemeContext; } });
|
|
38
|
+
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return theme_types_1.useTheme; } });
|
|
39
|
+
(0, tslib_1.__exportStar)(require("./compose"), exports);
|
|
40
|
+
(0, tslib_1.__exportStar)(require("./compressible"), exports);
|
|
41
|
+
(0, tslib_1.__exportStar)(require("./useFluentTheme"), exports);
|
|
42
|
+
(0, tslib_1.__exportStar)(require("./useStyling"), exports);
|
|
43
|
+
(0, tslib_1.__exportStar)(require("./useTokens"), exports);
|
|
43
44
|
//# 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,gEAAwF;AAAjE,0GAAA,YAAY,OAAA;AAAE,qGAAA,OAAO,OAAA;AAE5C,kEAAwF;AAApE,yGAAA,UAAU,OAAA;AAAE,0GAAA,WAAW,OAAA;AAE3C,wDAcuC;AAbrC,+GAAA,qBAAqB,OAAA;AACrB,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,qGAAA,WAAW,OAAA;AACX,oGAAA,UAAU,OAAA;AACV,+GAAA,qBAAqB,OAAA;AACrB,6GAAA,mBAAmB,OAAA;AACnB,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,oGAAA,UAAU,OAAA;AACV,sGAAA,YAAY,OAAA;AAed,4DAAkG;AAAzF,sGAAA,UAAU,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,mGAAA,OAAO,OAAA;AAAE,qGAAA,SAAS,OAAA;AAGxD,8DAAiE;AAAxD,0GAAA,aAAa,OAAA;AAGtB,0EAA8G;AAArG,iHAAA,cAAc,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAAE,mHAAA,gBAAgB,OAAA;AAS7D,kEAA4E;AAAnE,2GAAA,YAAY,OAAA;AAAE,uGAAA,QAAQ,OAAA;AAkC/B,yDAA0B;AAC1B,8DAA+B;AAC/B,gEAAiC;AACjC,4DAA6B;AAC7B,2DAA4B"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.themeHelper = void 0;
|
|
3
4
|
var useFluentTheme_1 = require("./useFluentTheme");
|
|
4
5
|
exports.themeHelper = {
|
|
5
|
-
useTheme: function () { return useFluentTheme_1.useFluentTheme(); },
|
|
6
|
+
useTheme: function () { return (0, useFluentTheme_1.useFluentTheme)(); },
|
|
6
7
|
getComponentInfo: function (theme, name) {
|
|
7
8
|
var components = theme.components || {};
|
|
8
9
|
return components[name];
|
|
@@ -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":";;;AAEA,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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFluentTheme = void 0;
|
|
3
4
|
var default_theme_1 = require("@fluentui-react-native/default-theme");
|
|
4
5
|
var theme_types_1 = require("@fluentui-react-native/theme-types");
|
|
5
6
|
/**
|
|
@@ -8,7 +9,7 @@ var theme_types_1 = require("@fluentui-react-native/theme-types");
|
|
|
8
9
|
* @returns - a valid Theme object
|
|
9
10
|
*/
|
|
10
11
|
function useFluentTheme() {
|
|
11
|
-
return theme_types_1.useTheme() || default_theme_1.defaultFluentTheme;
|
|
12
|
+
return (0, theme_types_1.useTheme)() || default_theme_1.defaultFluentTheme;
|
|
12
13
|
}
|
|
13
14
|
exports.useFluentTheme = useFluentTheme;
|
|
14
15
|
//# sourceMappingURL=useFluentTheme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":";;;AAAA,sEAA0E;AAC1E,kEAAqE;AAErE;;;;GAIG;AACH,SAAgB,cAAc;IAC5B,OAAO,IAAA,sBAAQ,GAAE,IAAI,kCAAkB,CAAC;AAC1C,CAAC;AAFD,wCAEC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildUseStyling = exports.buildProps = void 0;
|
|
3
4
|
var use_styling_1 = require("@fluentui-react-native/use-styling");
|
|
4
5
|
var themeHelper_1 = require("./themeHelper");
|
|
5
6
|
function buildProps(fn, keys) {
|
|
6
|
-
return use_styling_1.buildProps(fn, keys);
|
|
7
|
+
return (0, use_styling_1.buildProps)(fn, keys);
|
|
7
8
|
}
|
|
8
9
|
exports.buildProps = buildProps;
|
|
9
10
|
/**
|
|
@@ -13,7 +14,7 @@ exports.buildProps = buildProps;
|
|
|
13
14
|
*/
|
|
14
15
|
function buildUseStyling(options) {
|
|
15
16
|
// create a cache instance for this use styling implementation
|
|
16
|
-
return use_styling_1.buildUseStyling(options, themeHelper_1.themeHelper);
|
|
17
|
+
return (0, use_styling_1.buildUseStyling)(options, themeHelper_1.themeHelper);
|
|
17
18
|
}
|
|
18
19
|
exports.buildUseStyling = buildUseStyling;
|
|
19
20
|
//# sourceMappingURL=useStyling.js.map
|
|
@@ -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":";;;AAKA,kEAQ4C;AAE5C,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,19 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildUseTokens = exports.patchTokens = exports.customizable = exports.applyPropsToTokens = exports.applyTokenLayers = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var use_tokens_1 = require("@fluentui-react-native/use-tokens");
|
|
5
6
|
var themeHelper_1 = require("./themeHelper");
|
|
6
7
|
var use_tokens_2 = require("@fluentui-react-native/use-tokens");
|
|
7
|
-
exports
|
|
8
|
-
exports
|
|
9
|
-
exports
|
|
10
|
-
exports
|
|
8
|
+
Object.defineProperty(exports, "applyTokenLayers", { enumerable: true, get: function () { return use_tokens_2.applyTokenLayers; } });
|
|
9
|
+
Object.defineProperty(exports, "applyPropsToTokens", { enumerable: true, get: function () { return use_tokens_2.applyPropsToTokens; } });
|
|
10
|
+
Object.defineProperty(exports, "customizable", { enumerable: true, get: function () { return use_tokens_2.customizable; } });
|
|
11
|
+
Object.defineProperty(exports, "patchTokens", { enumerable: true, get: function () { return use_tokens_2.patchTokens; } });
|
|
11
12
|
function buildUseTokens() {
|
|
12
13
|
var tokens = [];
|
|
13
14
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
14
15
|
tokens[_i] = arguments[_i];
|
|
15
16
|
}
|
|
16
|
-
return use_tokens_1.buildUseTokens.apply(void 0, tslib_1.
|
|
17
|
+
return use_tokens_1.buildUseTokens.apply(void 0, (0, tslib_1.__spreadArray)([themeHelper_1.themeHelper.getComponentInfo], tokens, false));
|
|
17
18
|
}
|
|
18
19
|
exports.buildUseTokens = buildUseTokens;
|
|
19
20
|
//# sourceMappingURL=useTokens.js.map
|
|
@@ -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":";;;;AAAA,gEAAqH;AACrH,6CAA4C;AAI5C,gEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;AAIxE,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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Component framework used by fluentui react native controls",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -20,19 +20,24 @@
|
|
|
20
20
|
"prettier": "fluentui-scripts prettier",
|
|
21
21
|
"prettier-fix": "fluentui-scripts prettier --fix true"
|
|
22
22
|
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
26
|
+
"directory": "packages/framework/framework"
|
|
27
|
+
},
|
|
23
28
|
"dependencies": {
|
|
24
|
-
"@fluentui-react-native/composition": ">=0.7.
|
|
25
|
-
"@fluentui-react-native/default-theme": ">=0.9.
|
|
26
|
-
"@fluentui-react-native/immutable-merge": "^1.1.
|
|
27
|
-
"@fluentui-react-native/merge-props": ">=0.4.
|
|
28
|
-
"@fluentui-react-native/theme-types": ">=0.13.
|
|
29
|
-
"@fluentui-react-native/use-styling": ">=0.8.
|
|
30
|
-
"@fluentui-react-native/use-slot": ">=0.2.
|
|
31
|
-
"@fluentui-react-native/use-slots": ">=0.6.
|
|
32
|
-
"@fluentui-react-native/use-tokens": ">=0.2.
|
|
33
|
-
"@fluentui-react-native/memo-cache": "^1.1.
|
|
34
|
-
"@fluentui-react-native/tokens": ">=0.11.
|
|
35
|
-
"tslib": "^
|
|
29
|
+
"@fluentui-react-native/composition": ">=0.7.5 <1.0.0",
|
|
30
|
+
"@fluentui-react-native/default-theme": ">=0.9.4 <1.0.0",
|
|
31
|
+
"@fluentui-react-native/immutable-merge": "^1.1.6",
|
|
32
|
+
"@fluentui-react-native/merge-props": ">=0.4.2 <1.0.0",
|
|
33
|
+
"@fluentui-react-native/theme-types": ">=0.13.1 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/use-styling": ">=0.8.2 <1.0.0",
|
|
35
|
+
"@fluentui-react-native/use-slot": ">=0.2.5 <1.0.0",
|
|
36
|
+
"@fluentui-react-native/use-slots": ">=0.6.5 <1.0.0",
|
|
37
|
+
"@fluentui-react-native/use-tokens": ">=0.2.2 <1.0.0",
|
|
38
|
+
"@fluentui-react-native/memo-cache": "^1.1.7",
|
|
39
|
+
"@fluentui-react-native/tokens": ">=0.11.3 <1.0.0",
|
|
40
|
+
"tslib": "^2.3.1"
|
|
36
41
|
},
|
|
37
42
|
"devDependencies": {
|
|
38
43
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|