@fluentui-react-native/framework 0.15.0 → 0.15.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.
@@ -1,283 +1,55 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- exports.patchTokens =
4
- exports.customizable =
5
- exports.buildUseTokens =
6
- exports.applyTokenLayers =
7
- exports.applyPropsToTokens =
8
- exports.buildUseStyling =
9
- exports.buildProps =
10
- exports.useFluentTheme =
11
- exports.compressible =
12
- exports.compose =
13
- exports.useTheme =
14
- exports.ThemeContext =
15
- exports.processImmutable =
16
- exports.immutableMergeCore =
17
- exports.immutableMerge =
18
- exports.buildUseSlots =
19
- exports.withSlots =
20
- exports.stagedComponent =
21
- exports.renderSlot =
22
- exports.useSlot =
23
- exports.tokenBuilder =
24
- exports.textTokens =
25
- exports.shadowTokens =
26
- exports.shadowStyles =
27
- exports.layoutTokens =
28
- exports.layoutStyles =
29
- exports.getPaletteFromTheme =
30
- exports.foregroundColorTokens =
31
- exports.fontStyles =
32
- exports.colorTokens =
33
- exports.borderTokens =
34
- exports.borderStyles =
35
- exports.backgroundColorTokens =
36
- exports.mergeStyles =
37
- exports.mergeProps =
38
- exports.memoize =
39
- exports.getTypedMemoCache =
40
- exports.getMemoCache =
41
- void 0;
42
- const framework_base_1 = require('@fluentui-react-native/framework-base');
43
- Object.defineProperty(exports, 'getMemoCache', {
44
- enumerable: true,
45
- get: function () {
46
- return framework_base_1.getMemoCache;
47
- },
48
- });
49
- Object.defineProperty(exports, 'getTypedMemoCache', {
50
- enumerable: true,
51
- get: function () {
52
- return framework_base_1.getTypedMemoCache;
53
- },
54
- });
55
- Object.defineProperty(exports, 'memoize', {
56
- enumerable: true,
57
- get: function () {
58
- return framework_base_1.memoize;
59
- },
60
- });
61
- const framework_base_2 = require('@fluentui-react-native/framework-base');
62
- Object.defineProperty(exports, 'mergeProps', {
63
- enumerable: true,
64
- get: function () {
65
- return framework_base_2.mergeProps;
66
- },
67
- });
68
- Object.defineProperty(exports, 'mergeStyles', {
69
- enumerable: true,
70
- get: function () {
71
- return framework_base_2.mergeStyles;
72
- },
73
- });
74
- const tokens_1 = require('@fluentui-react-native/tokens');
75
- Object.defineProperty(exports, 'backgroundColorTokens', {
76
- enumerable: true,
77
- get: function () {
78
- return tokens_1.backgroundColorTokens;
79
- },
80
- });
81
- Object.defineProperty(exports, 'borderStyles', {
82
- enumerable: true,
83
- get: function () {
84
- return tokens_1.borderStyles;
85
- },
86
- });
87
- Object.defineProperty(exports, 'borderTokens', {
88
- enumerable: true,
89
- get: function () {
90
- return tokens_1.borderTokens;
91
- },
92
- });
93
- Object.defineProperty(exports, 'colorTokens', {
94
- enumerable: true,
95
- get: function () {
96
- return tokens_1.colorTokens;
97
- },
98
- });
99
- Object.defineProperty(exports, 'fontStyles', {
100
- enumerable: true,
101
- get: function () {
102
- return tokens_1.fontStyles;
103
- },
104
- });
105
- Object.defineProperty(exports, 'foregroundColorTokens', {
106
- enumerable: true,
107
- get: function () {
108
- return tokens_1.foregroundColorTokens;
109
- },
110
- });
111
- Object.defineProperty(exports, 'getPaletteFromTheme', {
112
- enumerable: true,
113
- get: function () {
114
- return tokens_1.getPaletteFromTheme;
115
- },
116
- });
117
- Object.defineProperty(exports, 'layoutStyles', {
118
- enumerable: true,
119
- get: function () {
120
- return tokens_1.layoutStyles;
121
- },
122
- });
123
- Object.defineProperty(exports, 'layoutTokens', {
124
- enumerable: true,
125
- get: function () {
126
- return tokens_1.layoutTokens;
127
- },
128
- });
129
- Object.defineProperty(exports, 'shadowStyles', {
130
- enumerable: true,
131
- get: function () {
132
- return tokens_1.shadowStyles;
133
- },
134
- });
135
- Object.defineProperty(exports, 'shadowTokens', {
136
- enumerable: true,
137
- get: function () {
138
- return tokens_1.shadowTokens;
139
- },
140
- });
141
- Object.defineProperty(exports, 'textTokens', {
142
- enumerable: true,
143
- get: function () {
144
- return tokens_1.textTokens;
145
- },
146
- });
147
- Object.defineProperty(exports, 'tokenBuilder', {
148
- enumerable: true,
149
- get: function () {
150
- return tokens_1.tokenBuilder;
151
- },
152
- });
153
- const use_slot_1 = require('@fluentui-react-native/use-slot');
154
- Object.defineProperty(exports, 'useSlot', {
155
- enumerable: true,
156
- get: function () {
157
- return use_slot_1.useSlot;
158
- },
159
- });
160
- const framework_base_3 = require('@fluentui-react-native/framework-base');
161
- Object.defineProperty(exports, 'renderSlot', {
162
- enumerable: true,
163
- get: function () {
164
- return framework_base_3.renderSlot;
165
- },
166
- });
167
- Object.defineProperty(exports, 'stagedComponent', {
168
- enumerable: true,
169
- get: function () {
170
- return framework_base_3.stagedComponent;
171
- },
172
- });
173
- Object.defineProperty(exports, 'withSlots', {
174
- enumerable: true,
175
- get: function () {
176
- return framework_base_3.withSlots;
177
- },
178
- });
179
- const use_slots_1 = require('@fluentui-react-native/use-slots');
180
- Object.defineProperty(exports, 'buildUseSlots', {
181
- enumerable: true,
182
- get: function () {
183
- return use_slots_1.buildUseSlots;
184
- },
185
- });
186
- const framework_base_4 = require('@fluentui-react-native/framework-base');
187
- Object.defineProperty(exports, 'immutableMerge', {
188
- enumerable: true,
189
- get: function () {
190
- return framework_base_4.immutableMerge;
191
- },
192
- });
193
- Object.defineProperty(exports, 'immutableMergeCore', {
194
- enumerable: true,
195
- get: function () {
196
- return framework_base_4.immutableMergeCore;
197
- },
198
- });
199
- Object.defineProperty(exports, 'processImmutable', {
200
- enumerable: true,
201
- get: function () {
202
- return framework_base_4.processImmutable;
203
- },
204
- });
205
- const theme_types_1 = require('@fluentui-react-native/theme-types');
206
- Object.defineProperty(exports, 'ThemeContext', {
207
- enumerable: true,
208
- get: function () {
209
- return theme_types_1.ThemeContext;
210
- },
211
- });
212
- Object.defineProperty(exports, 'useTheme', {
213
- enumerable: true,
214
- get: function () {
215
- return theme_types_1.useTheme;
216
- },
217
- });
218
- const compose_1 = require('./compose');
219
- Object.defineProperty(exports, 'compose', {
220
- enumerable: true,
221
- get: function () {
222
- return compose_1.compose;
223
- },
224
- });
225
- const compressible_1 = require('./compressible');
226
- Object.defineProperty(exports, 'compressible', {
227
- enumerable: true,
228
- get: function () {
229
- return compressible_1.compressible;
230
- },
231
- });
232
- const useFluentTheme_1 = require('./useFluentTheme');
233
- Object.defineProperty(exports, 'useFluentTheme', {
234
- enumerable: true,
235
- get: function () {
236
- return useFluentTheme_1.useFluentTheme;
237
- },
238
- });
239
- const useStyling_1 = require('./useStyling');
240
- Object.defineProperty(exports, 'buildProps', {
241
- enumerable: true,
242
- get: function () {
243
- return useStyling_1.buildProps;
244
- },
245
- });
246
- Object.defineProperty(exports, 'buildUseStyling', {
247
- enumerable: true,
248
- get: function () {
249
- return useStyling_1.buildUseStyling;
250
- },
251
- });
252
- const useTokens_1 = require('./useTokens');
253
- Object.defineProperty(exports, 'applyPropsToTokens', {
254
- enumerable: true,
255
- get: function () {
256
- return useTokens_1.applyPropsToTokens;
257
- },
258
- });
259
- Object.defineProperty(exports, 'applyTokenLayers', {
260
- enumerable: true,
261
- get: function () {
262
- return useTokens_1.applyTokenLayers;
263
- },
264
- });
265
- Object.defineProperty(exports, 'buildUseTokens', {
266
- enumerable: true,
267
- get: function () {
268
- return useTokens_1.buildUseTokens;
269
- },
270
- });
271
- Object.defineProperty(exports, 'customizable', {
272
- enumerable: true,
273
- get: function () {
274
- return useTokens_1.customizable;
275
- },
276
- });
277
- Object.defineProperty(exports, 'patchTokens', {
278
- enumerable: true,
279
- get: function () {
280
- return useTokens_1.patchTokens;
281
- },
282
- });
283
- //# sourceMappingURL=index.js.map
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.patchTokens = exports.customizable = exports.buildUseTokens = exports.applyTokenLayers = exports.applyPropsToTokens = exports.buildUseStyling = exports.buildProps = exports.useFluentTheme = exports.compressible = exports.compose = exports.useTheme = exports.ThemeContext = exports.processImmutable = exports.immutableMergeCore = exports.immutableMerge = exports.buildUseSlots = exports.withSlots = exports.stagedComponent = exports.renderSlot = exports.useSlot = 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.getTypedMemoCache = exports.getMemoCache = void 0;
4
+ const framework_base_1 = require("@fluentui-react-native/framework-base");
5
+ Object.defineProperty(exports, "getMemoCache", { enumerable: true, get: function () { return framework_base_1.getMemoCache; } });
6
+ Object.defineProperty(exports, "getTypedMemoCache", { enumerable: true, get: function () { return framework_base_1.getTypedMemoCache; } });
7
+ Object.defineProperty(exports, "memoize", { enumerable: true, get: function () { return framework_base_1.memoize; } });
8
+ const framework_base_2 = require("@fluentui-react-native/framework-base");
9
+ Object.defineProperty(exports, "mergeProps", { enumerable: true, get: function () { return framework_base_2.mergeProps; } });
10
+ Object.defineProperty(exports, "mergeStyles", { enumerable: true, get: function () { return framework_base_2.mergeStyles; } });
11
+ const tokens_1 = require("@fluentui-react-native/tokens");
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; } });
25
+ const use_slot_1 = require("@fluentui-react-native/use-slot");
26
+ Object.defineProperty(exports, "useSlot", { enumerable: true, get: function () { return use_slot_1.useSlot; } });
27
+ const framework_base_3 = require("@fluentui-react-native/framework-base");
28
+ Object.defineProperty(exports, "renderSlot", { enumerable: true, get: function () { return framework_base_3.renderSlot; } });
29
+ Object.defineProperty(exports, "stagedComponent", { enumerable: true, get: function () { return framework_base_3.stagedComponent; } });
30
+ Object.defineProperty(exports, "withSlots", { enumerable: true, get: function () { return framework_base_3.withSlots; } });
31
+ const use_slots_1 = require("@fluentui-react-native/use-slots");
32
+ Object.defineProperty(exports, "buildUseSlots", { enumerable: true, get: function () { return use_slots_1.buildUseSlots; } });
33
+ const framework_base_4 = require("@fluentui-react-native/framework-base");
34
+ Object.defineProperty(exports, "immutableMerge", { enumerable: true, get: function () { return framework_base_4.immutableMerge; } });
35
+ Object.defineProperty(exports, "immutableMergeCore", { enumerable: true, get: function () { return framework_base_4.immutableMergeCore; } });
36
+ Object.defineProperty(exports, "processImmutable", { enumerable: true, get: function () { return framework_base_4.processImmutable; } });
37
+ const theme_types_1 = require("@fluentui-react-native/theme-types");
38
+ Object.defineProperty(exports, "ThemeContext", { enumerable: true, get: function () { return theme_types_1.ThemeContext; } });
39
+ Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return theme_types_1.useTheme; } });
40
+ const compose_1 = require("./compose");
41
+ Object.defineProperty(exports, "compose", { enumerable: true, get: function () { return compose_1.compose; } });
42
+ const compressible_1 = require("./compressible");
43
+ Object.defineProperty(exports, "compressible", { enumerable: true, get: function () { return compressible_1.compressible; } });
44
+ const useFluentTheme_1 = require("./useFluentTheme");
45
+ Object.defineProperty(exports, "useFluentTheme", { enumerable: true, get: function () { return useFluentTheme_1.useFluentTheme; } });
46
+ const useStyling_1 = require("./useStyling");
47
+ Object.defineProperty(exports, "buildProps", { enumerable: true, get: function () { return useStyling_1.buildProps; } });
48
+ Object.defineProperty(exports, "buildUseStyling", { enumerable: true, get: function () { return useStyling_1.buildUseStyling; } });
49
+ const useTokens_1 = require("./useTokens");
50
+ Object.defineProperty(exports, "applyPropsToTokens", { enumerable: true, get: function () { return useTokens_1.applyPropsToTokens; } });
51
+ Object.defineProperty(exports, "applyTokenLayers", { enumerable: true, get: function () { return useTokens_1.applyTokenLayers; } });
52
+ Object.defineProperty(exports, "buildUseTokens", { enumerable: true, get: function () { return useTokens_1.buildUseTokens; } });
53
+ Object.defineProperty(exports, "customizable", { enumerable: true, get: function () { return useTokens_1.customizable; } });
54
+ Object.defineProperty(exports, "patchTokens", { enumerable: true, get: function () { return useTokens_1.patchTokens; } });
55
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  import type { Theme } from '@fluentui-react-native/theme-types';
2
2
  import type { ThemeHelper } from '@fluentui-react-native/use-styling';
3
3
  export declare const themeHelper: ThemeHelper<Theme>;
4
- //# sourceMappingURL=themeHelper.d.ts.map
4
+ //# sourceMappingURL=themeHelper.d.ts.map
@@ -1,12 +1,12 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.themeHelper = void 0;
4
- const useFluentTheme_1 = require('./useFluentTheme');
4
+ const useFluentTheme_1 = require("./useFluentTheme");
5
5
  exports.themeHelper = {
6
- useTheme: () => (0, useFluentTheme_1.useFluentTheme)(),
7
- getComponentInfo: (theme, name) => {
8
- const components = theme.components || {};
9
- return components[name];
10
- },
6
+ useTheme: () => (0, useFluentTheme_1.useFluentTheme)(),
7
+ getComponentInfo: (theme, name) => {
8
+ const components = theme.components || {};
9
+ return components[name];
10
+ },
11
11
  };
12
- //# sourceMappingURL=themeHelper.js.map
12
+ //# sourceMappingURL=themeHelper.js.map
@@ -5,4 +5,4 @@ import type { Theme } from '@fluentui-react-native/theme-types';
5
5
  * @returns - a valid Theme object
6
6
  */
7
7
  export declare function useFluentTheme(): Theme;
8
- //# sourceMappingURL=useFluentTheme.d.ts.map
8
+ //# sourceMappingURL=useFluentTheme.d.ts.map
@@ -1,14 +1,14 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useFluentTheme = useFluentTheme;
4
- const default_theme_1 = require('@fluentui-react-native/default-theme');
5
- const theme_types_1 = require('@fluentui-react-native/theme-types');
4
+ const default_theme_1 = require("@fluentui-react-native/default-theme");
5
+ const theme_types_1 = require("@fluentui-react-native/theme-types");
6
6
  /**
7
7
  * Attempts to obtain a theme via the react context, failing that the default fluent theme will be returned. Used to ensure some theme
8
8
  * object is provided for looking up color (and other) theme values
9
9
  * @returns - a valid Theme object
10
10
  */
11
11
  function useFluentTheme() {
12
- return (0, theme_types_1.useTheme)() || default_theme_1.defaultFluentTheme;
12
+ return (0, theme_types_1.useTheme)() || default_theme_1.defaultFluentTheme;
13
13
  }
14
- //# sourceMappingURL=useFluentTheme.js.map
14
+ //# sourceMappingURL=useFluentTheme.js.map
@@ -4,18 +4,9 @@
4
4
  */
5
5
  export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
6
  import type { Theme } from '@fluentui-react-native/theme-types';
7
- import type {
8
- TokensFromTheme as TokensFromThemeBase,
9
- TokenSettings as TokenSettingsBase,
10
- UseStylingOptions as UseStylingOptionsBase,
11
- UseStyling,
12
- BuildPropsBase,
13
- } from '@fluentui-react-native/use-styling';
7
+ import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
14
8
  export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
15
- export declare function buildProps<TProps, TTokens>(
16
- fn: (tokens: TTokens, theme: Theme) => TProps,
17
- keys?: (keyof TTokens)[],
18
- ): BuildProps<TProps, TTokens>;
9
+ export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
19
10
  export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
20
11
  export type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
21
12
  export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
@@ -24,7 +15,5 @@ export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBa
24
15
  *
25
16
  * @param options - options which drive behavior for the generated styling hook
26
17
  */
27
- export declare function buildUseStyling<TProps, TSlotProps, TTokens>(
28
- options: UseStylingOptions<TProps, TSlotProps, TTokens>,
29
- ): UseStyling<TProps, TSlotProps>;
30
- //# sourceMappingURL=useStyling.d.ts.map
18
+ export declare function buildUseStyling<TProps, TSlotProps, TTokens>(options: UseStylingOptions<TProps, TSlotProps, TTokens>): UseStyling<TProps, TSlotProps>;
19
+ //# sourceMappingURL=useStyling.d.ts.map
@@ -1,11 +1,11 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildProps = buildProps;
4
4
  exports.buildUseStyling = buildUseStyling;
5
- const use_styling_1 = require('@fluentui-react-native/use-styling');
6
- const themeHelper_1 = require('./themeHelper');
5
+ const use_styling_1 = require("@fluentui-react-native/use-styling");
6
+ const themeHelper_1 = require("./themeHelper");
7
7
  function buildProps(fn, keys) {
8
- return (0, use_styling_1.buildProps)(fn, keys);
8
+ return (0, use_styling_1.buildProps)(fn, keys);
9
9
  }
10
10
  /**
11
11
  * Construct a useStyling hook which returns styled slot props based on props and tokens defined in options and in the theme
@@ -13,7 +13,7 @@ function buildProps(fn, keys) {
13
13
  * @param options - options which drive behavior for the generated styling hook
14
14
  */
15
15
  function buildUseStyling(options) {
16
- // create a cache instance for this use styling implementation
17
- return (0, use_styling_1.buildUseStyling)(options, themeHelper_1.themeHelper);
16
+ // create a cache instance for this use styling implementation
17
+ return (0, use_styling_1.buildUseStyling)(options, themeHelper_1.themeHelper);
18
18
  }
19
- //# sourceMappingURL=useStyling.js.map
19
+ //# sourceMappingURL=useStyling.js.map
@@ -5,4 +5,4 @@ export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from
5
5
  export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
6
6
  export type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
7
7
  export declare function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens>;
8
- //# sourceMappingURL=useTokens.d.ts.map
8
+ //# sourceMappingURL=useTokens.d.ts.map
@@ -1,35 +1,15 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.patchTokens = exports.customizable = exports.applyPropsToTokens = exports.applyTokenLayers = void 0;
4
4
  exports.buildUseTokens = buildUseTokens;
5
- const use_tokens_1 = require('@fluentui-react-native/use-tokens');
6
- const themeHelper_1 = require('./themeHelper');
7
- const use_tokens_2 = require('@fluentui-react-native/use-tokens');
8
- Object.defineProperty(exports, 'applyTokenLayers', {
9
- enumerable: true,
10
- get: function () {
11
- return use_tokens_2.applyTokenLayers;
12
- },
13
- });
14
- Object.defineProperty(exports, 'applyPropsToTokens', {
15
- enumerable: true,
16
- get: function () {
17
- return use_tokens_2.applyPropsToTokens;
18
- },
19
- });
20
- Object.defineProperty(exports, 'customizable', {
21
- enumerable: true,
22
- get: function () {
23
- return use_tokens_2.customizable;
24
- },
25
- });
26
- Object.defineProperty(exports, 'patchTokens', {
27
- enumerable: true,
28
- get: function () {
29
- return use_tokens_2.patchTokens;
30
- },
31
- });
5
+ const use_tokens_1 = require("@fluentui-react-native/use-tokens");
6
+ const themeHelper_1 = require("./themeHelper");
7
+ const use_tokens_2 = require("@fluentui-react-native/use-tokens");
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; } });
32
12
  function buildUseTokens(...tokens) {
33
- return (0, use_tokens_1.buildUseTokens)(themeHelper_1.themeHelper.getComponentInfo, ...tokens);
13
+ return (0, use_tokens_1.buildUseTokens)(themeHelper_1.themeHelper.getComponentInfo, ...tokens);
34
14
  }
35
- //# sourceMappingURL=useTokens.js.map
15
+ //# sourceMappingURL=useTokens.js.map
package/package.json CHANGED
@@ -1,75 +1,76 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/framework",
3
- "version": "0.15.0",
3
+ "version": "0.15.3",
4
4
  "description": "Component framework used by fluentui react native controls",
5
+ "license": "MIT",
6
+ "author": "",
5
7
  "repository": {
6
8
  "type": "git",
7
9
  "url": "https://github.com/microsoft/fluentui-react-native.git",
8
10
  "directory": "packages/framework/framework"
9
11
  },
10
- "license": "MIT",
11
- "author": "",
12
+ "main": "lib-commonjs/index.js",
13
+ "module": "lib/index.js",
14
+ "types": "lib/index.d.ts",
12
15
  "exports": {
13
16
  ".": {
14
17
  "types": "./lib/index.d.ts",
15
18
  "import": "./lib/index.js",
16
- "require": "./lib-commonjs/index.js"
19
+ "require": "./lib-commonjs/index.js",
20
+ "default": "./src/index.ts"
17
21
  }
18
22
  },
19
- "main": "lib-commonjs/index.js",
20
- "module": "lib/index.js",
21
- "types": "lib/index.d.ts",
22
23
  "scripts": {
23
24
  "build": "fluentui-scripts build",
24
25
  "build-cjs": "tsgo --outDir lib-commonjs",
25
- "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
26
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
26
27
  "clean": "fluentui-scripts clean",
27
28
  "depcheck": "fluentui-scripts depcheck",
28
- "lint": "fluentui-scripts eslint",
29
+ "format": "fluentui-scripts format",
30
+ "lint": "fluentui-scripts lint",
29
31
  "lint-package": "fluentui-scripts lint-package",
30
- "prettier": "fluentui-scripts prettier",
31
32
  "start-test": "fluentui-scripts jest-watch",
32
33
  "start:tester": "rnx-cli start",
33
34
  "test": "fluentui-scripts jest",
34
35
  "update-snapshots": "fluentui-scripts jest -u"
35
36
  },
36
37
  "dependencies": {
37
- "@fluentui-react-native/composition": "0.12.0",
38
- "@fluentui-react-native/default-theme": "0.27.0",
39
- "@fluentui-react-native/framework-base": "0.3.0",
40
- "@fluentui-react-native/theme-types": "0.44.0",
41
- "@fluentui-react-native/tokens": "0.24.0",
42
- "@fluentui-react-native/use-slot": "0.7.0",
43
- "@fluentui-react-native/use-slots": "0.11.0",
44
- "@fluentui-react-native/use-styling": "0.14.0",
45
- "@fluentui-react-native/use-tokens": "0.7.0"
38
+ "@fluentui-react-native/composition": "0.12.3",
39
+ "@fluentui-react-native/default-theme": "0.27.3",
40
+ "@fluentui-react-native/framework-base": "0.3.3",
41
+ "@fluentui-react-native/theme-types": "0.44.3",
42
+ "@fluentui-react-native/tokens": "0.24.3",
43
+ "@fluentui-react-native/use-slot": "0.7.3",
44
+ "@fluentui-react-native/use-slots": "0.11.3",
45
+ "@fluentui-react-native/use-styling": "0.14.3",
46
+ "@fluentui-react-native/use-tokens": "0.7.3"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@babel/core": "^7.20.0",
49
50
  "@fluentui-react-native/babel-config": "0.1.1",
50
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
51
- "@fluentui-react-native/jest-config": "0.1.1",
51
+ "@fluentui-react-native/jest-config": "0.1.0",
52
52
  "@fluentui-react-native/kit-config": "0.1.2",
53
- "@fluentui-react-native/scripts": "0.1.2",
53
+ "@fluentui-react-native/lint-config-rules": "0.1.3",
54
+ "@fluentui-react-native/scripts": "0.1.0",
54
55
  "@react-native-community/cli": "^20.0.0",
55
56
  "@react-native-community/cli-platform-android": "^20.0.0",
56
57
  "@react-native-community/cli-platform-ios": "^20.0.0",
57
58
  "@react-native/babel-preset": "^0.81.0",
58
59
  "@react-native/metro-config": "^0.81.0",
59
- "@rnx-kit/cli": "^1.0.0",
60
- "@types/react": "~19.1.0",
60
+ "@rnx-kit/cli": "^1.1.0",
61
+ "@types/react": "~19.1.4",
61
62
  "@types/react-test-renderer": "^19.1.0",
62
- "react": "19.1.0",
63
- "react-native": "^0.81.0",
63
+ "react": "19.1.4",
64
+ "react-native": "^0.81.6",
64
65
  "react-native-macos": "^0.81.0",
65
66
  "react-native-windows": "^0.81.0",
66
- "react-test-renderer": "19.1.0"
67
+ "react-test-renderer": "19.1.4"
67
68
  },
68
69
  "peerDependencies": {
69
70
  "@office-iss/react-native-win32": "^0.74.0",
70
- "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
71
- "react": "18.2.0 || 19.0.0 || 19.1.0",
72
- "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
71
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.4",
72
+ "react": "18.2.0 || 19.0.0 || 19.1.4",
73
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.6",
73
74
  "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
74
75
  "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
75
76
  },
package/eslint.config.js DELETED
@@ -1,3 +0,0 @@
1
- const baseConfig = require('@fluentui-react-native/eslint-config-rules');
2
-
3
- module.exports = baseConfig;