@fluentui-react-native/framework 0.16.0 → 0.17.0
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/.cache/tsconfig.tsbuildinfo +1 -1
- package/CHANGELOG.md +50 -0
- package/lib/compose.d.ts +1 -1
- package/lib/compose.d.ts.map +1 -1
- package/lib/compose.js +1 -1
- package/lib/compose.js.map +1 -1
- package/lib/compressible.d.ts +4 -4
- package/lib/compressible.d.ts.map +1 -1
- package/lib/compressible.js.map +1 -1
- package/lib/compressible.test.js +3 -4
- package/lib/compressible.test.js.map +1 -1
- package/lib/index.d.ts +13 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -8
- package/lib/index.js.map +1 -1
- package/lib/themeHelper.d.ts +1 -1
- package/lib/themeHelper.d.ts.map +1 -1
- package/lib/themeHelper.js +1 -1
- package/lib/themeHelper.js.map +1 -1
- package/lib/useFluentTheme.d.ts +1 -1
- package/lib/useFluentTheme.d.ts.map +1 -1
- package/lib/useFluentTheme.js +1 -1
- package/lib/useFluentTheme.js.map +1 -1
- package/lib/useStyling.d.ts +1 -1
- package/lib/useStyling.d.ts.map +1 -1
- package/lib/useStyling.js +1 -1
- package/lib/useStyling.js.map +1 -1
- package/lib/useTokens.d.ts +2 -2
- package/lib/useTokens.d.ts.map +1 -1
- package/lib/useTokens.js +1 -1
- package/lib/useTokens.js.map +1 -1
- package/package.json +11 -13
- package/src/compose.ts +2 -2
- package/src/compressible.test.tsx +5 -6
- package/src/compressible.ts +7 -7
- package/src/index.ts +13 -14
- package/src/themeHelper.ts +2 -2
- package/src/useFluentTheme.ts +2 -2
- package/src/useStyling.ts +2 -2
- package/src/useTokens.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/framework
|
|
2
2
|
|
|
3
|
+
## 0.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e2a4065: rework framework rendering to prepare for new component structure
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 801d8b1: Switch to the released typescript 7
|
|
12
|
+
- 5b5afea: Remove depcheck script, allow jest to run tests with platform module suffixes
|
|
13
|
+
- d2690c9: Move theme type definitions into the `@fluentui-react-native/design` package under the new `@fluentui-react-native/design/theming` submodule export. The `@fluentui-react-native/theme-types` package is now a thin compatibility shim that re-exports from `@fluentui-react-native/design/theming`, and all in-repo consumers now reference the new submodule.
|
|
14
|
+
- Updated dependencies [e37b04b]
|
|
15
|
+
- Updated dependencies [01ed385]
|
|
16
|
+
- Updated dependencies [1eef74e]
|
|
17
|
+
- Updated dependencies [801d8b1]
|
|
18
|
+
- Updated dependencies [e2a4065]
|
|
19
|
+
- Updated dependencies [80bf14d]
|
|
20
|
+
- Updated dependencies [b28f021]
|
|
21
|
+
- Updated dependencies [1b45589]
|
|
22
|
+
- Updated dependencies [5b5afea]
|
|
23
|
+
- Updated dependencies [c1de024]
|
|
24
|
+
- Updated dependencies [d2690c9]
|
|
25
|
+
- Updated dependencies [03ba7ef]
|
|
26
|
+
- Updated dependencies [9d2bb3e]
|
|
27
|
+
- @fluentui-react-native/design@0.2.0
|
|
28
|
+
- @fluentui-react-native/framework-base@0.5.0
|
|
29
|
+
- @fluentui-react-native/composition@0.14.0
|
|
30
|
+
- @fluentui-react-native/use-styling@0.16.0
|
|
31
|
+
- @fluentui-react-native/default-theme@0.27.6
|
|
32
|
+
- @fluentui-react-native/use-tokens@0.9.0
|
|
33
|
+
- @fluentui-react-native/use-slots@0.13.0
|
|
34
|
+
- @fluentui-react-native/tokens@0.24.6
|
|
35
|
+
|
|
36
|
+
## 0.16.1
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- 6c2d6e6: Update packages to esm, with new builds with project references
|
|
41
|
+
- Updated dependencies [6c2d6e6]
|
|
42
|
+
- Updated dependencies [6805bf5]
|
|
43
|
+
- @fluentui-react-native/composition@0.13.1
|
|
44
|
+
- @fluentui-react-native/use-styling@0.15.1
|
|
45
|
+
- @fluentui-react-native/default-theme@0.27.5
|
|
46
|
+
- @fluentui-react-native/use-tokens@0.8.1
|
|
47
|
+
- @fluentui-react-native/use-slots@0.12.1
|
|
48
|
+
- @fluentui-react-native/theme-types@0.44.5
|
|
49
|
+
- @fluentui-react-native/use-slot@0.8.1
|
|
50
|
+
- @fluentui-react-native/framework-base@0.4.1
|
|
51
|
+
- @fluentui-react-native/tokens@0.24.5
|
|
52
|
+
|
|
3
53
|
## 0.16.0
|
|
4
54
|
|
|
5
55
|
### Minor Changes
|
package/lib/compose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
|
|
2
|
-
import type { Theme } from '@fluentui-react-native/
|
|
2
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
3
3
|
import type { ObjectBase } from '@fluentui-react-native/framework-base';
|
|
4
4
|
/**
|
|
5
5
|
* This is an object used purely for configuring the typings on composable. It is not necessary to define
|
package/lib/compose.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCA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C;AAEF,MAAM,MAAM,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,SAAS,UAAU,IAAI,uBAAuB,CACjH,MAAM,EACN,UAAU,EACV,OAAO,EACP,KAAK,EACL,QAAQ,CACT,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,wBAAgB,OAAO,CAAC,CAAC,EACvB,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,EAClG,IAAI,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,GACpG,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAEhG"}
|
package/lib/compose.js
CHANGED
package/lib/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA8C5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG;IAErG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
package/lib/compressible.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
2
|
-
import type { StagedRender } from '@fluentui-react-native/framework-base';
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
3
2
|
import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
|
-
import type { UseTokens } from './useTokens
|
|
3
|
+
import type { UseTokens } from './useTokens';
|
|
4
|
+
import type { LegacyFunctionComponent } from '@fluentui-react-native/framework-base';
|
|
5
5
|
/**
|
|
6
6
|
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
7
|
* and also have customize functionality.
|
|
@@ -9,5 +9,5 @@ import type { UseTokens } from './useTokens.ts';
|
|
|
9
9
|
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
10
|
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
11
|
*/
|
|
12
|
-
export declare function compressible<TProps, TTokens>(fn:
|
|
12
|
+
export declare function compressible<TProps, TTokens>(fn: (props: TProps, useTokens: UseTokens<TTokens>) => LegacyFunctionComponent<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
|
|
13
13
|
//# sourceMappingURL=compressible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.d.ts","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compressible.d.ts","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAEnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAC1C,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,uBAAuB,CAAC,MAAM,CAAC,EACrF,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,GAC5B,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAY/C"}
|
package/lib/compressible.js.map
CHANGED
|
@@ -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,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAOxE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAqF,EACrF,SAA6B;IAI7B,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,EAAE,CAAC,KAAe,EAAE,SAAS,CAAC,CAAC;IACnF,MAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAA6B,CAAC;IAE/E,SAAS,CAAC,SAAS,GAAG,CAAC,GAAG,MAAgC,EAAE,EAAE;QAC5D,MAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,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,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui-react-native/framework-base/jsx-runtime";
|
|
2
2
|
import { act } from 'react';
|
|
3
3
|
import { Text, View } from 'react-native';
|
|
4
|
-
import { mergeStyles } from '@fluentui-react-native/framework-base';
|
|
5
|
-
import { useSlot } from '@fluentui-react-native/use-slot';
|
|
4
|
+
import { mergeStyles, useSlot } from '@fluentui-react-native/framework-base';
|
|
6
5
|
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
7
6
|
import * as renderer from 'react-test-renderer';
|
|
8
|
-
import { compressible } from './compressible
|
|
9
|
-
import { buildUseTokens } from './useTokens
|
|
7
|
+
import { compressible } from './compressible';
|
|
8
|
+
import { buildUseTokens } from './useTokens';
|
|
10
9
|
const useVariantTokens = buildUseTokens({
|
|
11
10
|
color: 'black',
|
|
12
11
|
fontSize: 12,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAe7C,MAAM,gBAAgB,GAAG,cAAc,CAAoB;IACzD,KAAK,EAAE,OAAO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AS,GAAG,QAAQ,CAAC,MAAM,CACzB,MAAC,IAAI,eACH,KAAC,KAAK,IAAC,UAAU,EAAC,SAAS,GAAG,EAC9B,KAAC,KAAK,IAAC,UAAU,EAAC,SAAS,EAAC,WAAW,EAAC,UAAU,GAAG,IAChD,CACR,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,IAAI,SAAqC,CAAC;QAC1C,GAAG,CAAC,GAAG,EAAE;YACP,SAAS,GAAG,QAAQ,CAAC,MAAM,CACzB,MAAC,IAAI,eACH,KAAC,KAAK,IAAC,UAAU,EAAC,cAAc,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAC,gBAAgB,GAAG,EACzF,KAAC,KAAK,IAAC,UAAU,EAAC,eAAe,EAAC,WAAW,EAAC,wBAAwB,GAAG,IACpE,CACR,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -4,22 +4,21 @@ export type { StyleProp } from '@fluentui-react-native/framework-base';
|
|
|
4
4
|
export { mergeProps, mergeStyles } from '@fluentui-react-native/framework-base';
|
|
5
5
|
export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
|
|
6
6
|
export type { FontStyleTokens, FontTokens, FontVariantTokens, IBackgroundColorTokens, IBorderTokens, IColorTokens, IForegroundColorTokens, IShadowTokens, LayoutTokens, TokenBuilder, } from '@fluentui-react-native/tokens';
|
|
7
|
-
export { useSlot } from '@fluentui-react-native/
|
|
8
|
-
export {
|
|
9
|
-
export type { ComposableFunction, FinalRender, NativeReactType, SlotFn, StagedRender } from '@fluentui-react-native/framework-base';
|
|
7
|
+
export { renderSlot, stagedComponent, withSlots, useSlot } from '@fluentui-react-native/framework-base';
|
|
8
|
+
export type { RenderType as NativeReactType } from '@fluentui-react-native/framework-base';
|
|
10
9
|
export { buildUseSlots } from '@fluentui-react-native/use-slots';
|
|
11
10
|
export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from '@fluentui-react-native/use-slots';
|
|
12
11
|
export { immutableMerge, immutableMergeCore, processImmutable } from '@fluentui-react-native/framework-base';
|
|
13
12
|
export type { BuiltinRecursionHandlers, CustomRecursionHandler, MergeOptions, ObjectBase, RecursionHandler, RecursionOption, } from '@fluentui-react-native/framework-base';
|
|
14
|
-
export { ThemeContext, useTheme } from '@fluentui-react-native/
|
|
15
|
-
export type { AliasColorTokens, AppearanceOptions, Color, FontFamilies, FontFamily, FontFamilyValue, FontSize, FontSizeValuePoints, FontSizes, FontWeight, FontWeightValue, FontWeights, OfficePalette, Palette, PaletteBackgroundColors, PaletteTextColors, PartialPalette, PartialTheme, PartialTypography, Spacing, TextStyling, Theme, ThemeColorDefinition, ThemeOptions, Typography, Variant, VariantValue, Variants, } from '@fluentui-react-native/
|
|
16
|
-
export { compose } from './compose
|
|
17
|
-
export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose
|
|
18
|
-
export { compressible } from './compressible
|
|
19
|
-
export { useFluentTheme } from './useFluentTheme
|
|
20
|
-
export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling
|
|
21
|
-
export { buildProps, buildUseStyling } from './useStyling
|
|
22
|
-
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling
|
|
23
|
-
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens
|
|
24
|
-
export type { UseTokens, CustomizableComponent } from './useTokens
|
|
13
|
+
export { ThemeContext, useTheme } from '@fluentui-react-native/design/theming';
|
|
14
|
+
export type { AliasColorTokens, AppearanceOptions, Color, FontFamilies, FontFamily, FontFamilyValue, FontSize, FontSizeValuePoints, FontSizes, FontWeight, FontWeightValue, FontWeights, OfficePalette, Palette, PaletteBackgroundColors, PaletteTextColors, PartialPalette, PartialTheme, PartialTypography, Spacing, TextStyling, Theme, ThemeColorDefinition, ThemeOptions, Typography, Variant, VariantValue, Variants, } from '@fluentui-react-native/design/theming';
|
|
15
|
+
export { compose } from './compose';
|
|
16
|
+
export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose';
|
|
17
|
+
export { compressible } from './compressible';
|
|
18
|
+
export { useFluentTheme } from './useFluentTheme';
|
|
19
|
+
export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
|
|
20
|
+
export { buildProps, buildUseStyling } from './useStyling';
|
|
21
|
+
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
|
|
22
|
+
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
|
|
23
|
+
export type { UseTokens, CustomizableComponent } from './useTokens';
|
|
25
24
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEjG,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OA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E,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC9G,YAAY,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export { getMemoCache, getTypedMemoCache, memoize } from '@fluentui-react-native/framework-base';
|
|
2
2
|
export { mergeProps, mergeStyles } from '@fluentui-react-native/framework-base';
|
|
3
3
|
export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
|
|
4
|
-
export { useSlot } from '@fluentui-react-native/
|
|
5
|
-
export { renderSlot, stagedComponent, withSlots } from '@fluentui-react-native/framework-base';
|
|
4
|
+
export { renderSlot, stagedComponent, withSlots, useSlot } from '@fluentui-react-native/framework-base';
|
|
6
5
|
export { buildUseSlots } from '@fluentui-react-native/use-slots';
|
|
7
6
|
export { immutableMerge, immutableMergeCore, processImmutable } from '@fluentui-react-native/framework-base';
|
|
8
|
-
export { ThemeContext, useTheme } from '@fluentui-react-native/
|
|
9
|
-
export { compose } from './compose
|
|
10
|
-
export { compressible } from './compressible
|
|
11
|
-
export { useFluentTheme } from './useFluentTheme
|
|
12
|
-
export { buildProps, buildUseStyling } from './useStyling
|
|
13
|
-
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens
|
|
7
|
+
export { ThemeContext, useTheme } from '@fluentui-react-native/design/theming';
|
|
8
|
+
export { compose } from './compose';
|
|
9
|
+
export { compressible } from './compressible';
|
|
10
|
+
export { useFluentTheme } from './useFluentTheme';
|
|
11
|
+
export { buildProps, buildUseStyling } from './useStyling';
|
|
12
|
+
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGjG,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGjG,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGxG,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAU7G,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAgC/E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/themeHelper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
import type { ThemeHelper } from '@fluentui-react-native/use-styling';
|
|
3
3
|
export declare const themeHelper: ThemeHelper<Theme>;
|
|
4
4
|
//# sourceMappingURL=themeHelper.d.ts.map
|
package/lib/themeHelper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeHelper.d.ts","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"themeHelper.d.ts","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAItE,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,KAAK,CAM1C,CAAC"}
|
package/lib/themeHelper.js
CHANGED
package/lib/themeHelper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE;IAChC,gBAAgB,EAAE,CAAC,KAAY,EAAE,IAAY,EAAE,EAAE;QAC/C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC;QAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC"}
|
package/lib/useFluentTheme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
/**
|
|
3
3
|
* Attempts to obtain a theme via the react context, failing that the default fluent theme will be returned. Used to ensure some theme
|
|
4
4
|
* object is provided for looking up color (and other) theme values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFluentTheme.d.ts","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useFluentTheme.d.ts","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAGnE;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAEtC"}
|
package/lib/useFluentTheme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
|
|
2
|
-
import { useTheme } from '@fluentui-react-native/
|
|
2
|
+
import { useTheme } from '@fluentui-react-native/design/theming';
|
|
3
3
|
/**
|
|
4
4
|
* Attempts to obtain a theme via the react context, failing that the default fluent theme will be returned. Used to ensure some theme
|
|
5
5
|
* object is provided for looking up color (and other) theme values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,EAAE,IAAI,kBAAkB,CAAC;AAC1C,CAAC"}
|
package/lib/useStyling.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* as to be dependent on the core theme type
|
|
4
4
|
*/
|
|
5
5
|
export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
|
-
import type { Theme } from '@fluentui-react-native/
|
|
6
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
7
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>;
|
package/lib/useStyling.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.d.ts","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,oC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CAAC,MAAM,EAAE,UAAU,CAAC,CAGhC"}
|
package/lib/useStyling.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase } from '@fluentui-react-native/use-styling';
|
|
2
|
-
import { themeHelper } from './themeHelper
|
|
2
|
+
import { themeHelper } from './themeHelper';
|
|
3
3
|
export function buildProps(fn, keys) {
|
|
4
4
|
return buildPropsBase(fn, keys);
|
|
5
5
|
}
|
package/lib/useStyling.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
3
|
-
import type { TokenSettings } from './useStyling
|
|
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>;
|
|
6
6
|
export type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
package/lib/useTokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAIpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGpH,MAAM,MAAM,SAAS,CAAC,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,wBAAgB,cAAc,CAAC,OAAO,EAAE,GAAG,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,CAE/F"}
|
package/lib/useTokens.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
2
|
-
import { themeHelper } from './themeHelper
|
|
2
|
+
import { themeHelper } from './themeHelper';
|
|
3
3
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
export function buildUseTokens(...tokens) {
|
|
5
5
|
return buildUseTokensCore(themeHelper.getComponentInfo, ...tokens);
|
package/lib/useTokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;AAMpH,MAAM,UAAU,cAAc,CAAU,GAAG,MAAgC;IACzE,OAAO,kBAAkB,CAAC,WAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,CAAC,CAAC;AACrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Component framework used by fluentui react native controls",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "",
|
|
@@ -22,9 +22,8 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "
|
|
25
|
+
"build": "tsc -b",
|
|
26
26
|
"clean": "fluentui-scripts clean",
|
|
27
|
-
"depcheck": "fluentui-scripts depcheck",
|
|
28
27
|
"format": "fluentui-scripts format",
|
|
29
28
|
"lint": "fluentui-scripts lint",
|
|
30
29
|
"start-test": "fluentui-scripts jest-watch",
|
|
@@ -33,15 +32,14 @@
|
|
|
33
32
|
"update-snapshots": "fluentui-scripts jest -u"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@fluentui-react-native/composition": "0.
|
|
37
|
-
"@fluentui-react-native/default-theme": "0.27.
|
|
38
|
-
"@fluentui-react-native/
|
|
39
|
-
"@fluentui-react-native/
|
|
40
|
-
"@fluentui-react-native/tokens": "0.24.
|
|
41
|
-
"@fluentui-react-native/use-
|
|
42
|
-
"@fluentui-react-native/use-
|
|
43
|
-
"@fluentui-react-native/use-
|
|
44
|
-
"@fluentui-react-native/use-tokens": "0.8.0"
|
|
35
|
+
"@fluentui-react-native/composition": "0.14.0",
|
|
36
|
+
"@fluentui-react-native/default-theme": "0.27.6",
|
|
37
|
+
"@fluentui-react-native/design": "0.2.0",
|
|
38
|
+
"@fluentui-react-native/framework-base": "0.5.0",
|
|
39
|
+
"@fluentui-react-native/tokens": "0.24.6",
|
|
40
|
+
"@fluentui-react-native/use-slots": "0.13.0",
|
|
41
|
+
"@fluentui-react-native/use-styling": "0.16.0",
|
|
42
|
+
"@fluentui-react-native/use-tokens": "0.9.0"
|
|
45
43
|
},
|
|
46
44
|
"devDependencies": {
|
|
47
45
|
"@babel/core": "^7.20.0",
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
"@react-native-community/cli-platform-ios": "^20.0.0",
|
|
52
50
|
"@react-native/babel-preset": "^0.81.0",
|
|
53
51
|
"@react-native/metro-config": "^0.81.0",
|
|
54
|
-
"@rnx-kit/cli": "^2.0.
|
|
52
|
+
"@rnx-kit/cli": "^2.0.2",
|
|
55
53
|
"@types/react": "~19.1.4",
|
|
56
54
|
"@types/react-test-renderer": "^19.1.0",
|
|
57
55
|
"react": "19.1.4",
|
package/src/compose.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
|
|
2
2
|
import { composeFactory } from '@fluentui-react-native/composition';
|
|
3
|
-
import type { Theme } from '@fluentui-react-native/
|
|
3
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
4
4
|
import type { ObjectBase } from '@fluentui-react-native/framework-base';
|
|
5
5
|
|
|
6
|
-
import { themeHelper } from './themeHelper
|
|
6
|
+
import { themeHelper } from './themeHelper';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This is an object used purely for configuring the typings on composable. It is not necessary to define
|
|
@@ -4,15 +4,14 @@ import { act } from 'react';
|
|
|
4
4
|
import type { TextProps, TextStyle } from 'react-native';
|
|
5
5
|
import { Text, View } from 'react-native';
|
|
6
6
|
|
|
7
|
-
import { mergeStyles } from '@fluentui-react-native/framework-base';
|
|
8
|
-
import type { Theme } from '@fluentui-react-native/
|
|
9
|
-
import { useSlot } from '@fluentui-react-native/use-slot';
|
|
7
|
+
import { mergeStyles, useSlot } from '@fluentui-react-native/framework-base';
|
|
8
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
10
9
|
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
11
10
|
import * as renderer from 'react-test-renderer';
|
|
12
11
|
|
|
13
|
-
import { compressible } from './compressible
|
|
14
|
-
import { buildUseTokens } from './useTokens
|
|
15
|
-
import type { UseTokens } from './useTokens
|
|
12
|
+
import { compressible } from './compressible';
|
|
13
|
+
import { buildUseTokens } from './useTokens';
|
|
14
|
+
import type { UseTokens } from './useTokens';
|
|
16
15
|
|
|
17
16
|
type Variant = 'normal' | 'header' | 'caption';
|
|
18
17
|
interface VariantTextTokens {
|
package/src/compressible.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
2
|
-
import type { StagedRender } from '@fluentui-react-native/framework-base';
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
3
2
|
import { stagedComponent } from '@fluentui-react-native/framework-base';
|
|
4
3
|
import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
5
4
|
|
|
6
|
-
import type { TokenSettings } from './useStyling
|
|
7
|
-
import type { UseTokens } from './useTokens
|
|
5
|
+
import type { TokenSettings } from './useStyling';
|
|
6
|
+
import type { UseTokens } from './useTokens';
|
|
7
|
+
import type { LegacyFunctionComponent } from '@fluentui-react-native/framework-base';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
@@ -14,13 +14,13 @@ import type { UseTokens } from './useTokens.ts';
|
|
|
14
14
|
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
15
15
|
*/
|
|
16
16
|
export function compressible<TProps, TTokens>(
|
|
17
|
-
fn:
|
|
17
|
+
fn: (props: TProps, useTokens: UseTokens<TTokens>) => LegacyFunctionComponent<TProps>,
|
|
18
18
|
useTokens: UseTokens<TTokens>,
|
|
19
19
|
): CustomizableComponent<TProps, TTokens, Theme> {
|
|
20
20
|
type ThisComponent = CustomizableComponent<TProps, TTokens, Theme>;
|
|
21
21
|
|
|
22
|
-
const injectedWrapper = (props: TProps) => fn(props, useTokens);
|
|
23
|
-
const component = stagedComponent(injectedWrapper) as ThisComponent;
|
|
22
|
+
const injectedWrapper = (props: Partial<TProps>) => fn(props as TProps, useTokens);
|
|
23
|
+
const component = stagedComponent(injectedWrapper) as unknown as ThisComponent;
|
|
24
24
|
|
|
25
25
|
component.customize = (...tokens: TokenSettings<TTokens>[]) => {
|
|
26
26
|
const useTokensNew = useTokens.customize(...tokens);
|
package/src/index.ts
CHANGED
|
@@ -32,9 +32,8 @@ export type {
|
|
|
32
32
|
TokenBuilder,
|
|
33
33
|
} from '@fluentui-react-native/tokens';
|
|
34
34
|
|
|
35
|
-
export { useSlot } from '@fluentui-react-native/
|
|
36
|
-
export {
|
|
37
|
-
export type { ComposableFunction, FinalRender, NativeReactType, SlotFn, StagedRender } from '@fluentui-react-native/framework-base';
|
|
35
|
+
export { renderSlot, stagedComponent, withSlots, useSlot } from '@fluentui-react-native/framework-base';
|
|
36
|
+
export type { RenderType as NativeReactType } from '@fluentui-react-native/framework-base';
|
|
38
37
|
|
|
39
38
|
export { buildUseSlots } from '@fluentui-react-native/use-slots';
|
|
40
39
|
export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from '@fluentui-react-native/use-slots';
|
|
@@ -49,7 +48,7 @@ export type {
|
|
|
49
48
|
RecursionOption,
|
|
50
49
|
} from '@fluentui-react-native/framework-base';
|
|
51
50
|
|
|
52
|
-
export { ThemeContext, useTheme } from '@fluentui-react-native/
|
|
51
|
+
export { ThemeContext, useTheme } from '@fluentui-react-native/design/theming';
|
|
53
52
|
export type {
|
|
54
53
|
AliasColorTokens,
|
|
55
54
|
AppearanceOptions,
|
|
@@ -79,9 +78,9 @@ export type {
|
|
|
79
78
|
Variant,
|
|
80
79
|
VariantValue,
|
|
81
80
|
Variants,
|
|
82
|
-
} from '@fluentui-react-native/
|
|
81
|
+
} from '@fluentui-react-native/design/theming';
|
|
83
82
|
|
|
84
|
-
export { compose } from './compose
|
|
83
|
+
export { compose } from './compose';
|
|
85
84
|
export type {
|
|
86
85
|
ComposableComponent,
|
|
87
86
|
ComposeOptions,
|
|
@@ -91,11 +90,11 @@ export type {
|
|
|
91
90
|
ExtractStatics,
|
|
92
91
|
ExtractTokens,
|
|
93
92
|
UseSlots,
|
|
94
|
-
} from './compose
|
|
95
|
-
export { compressible } from './compressible
|
|
96
|
-
export { useFluentTheme } from './useFluentTheme
|
|
97
|
-
export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling
|
|
98
|
-
export { buildProps, buildUseStyling } from './useStyling
|
|
99
|
-
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling
|
|
100
|
-
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens
|
|
101
|
-
export type { UseTokens, CustomizableComponent } from './useTokens
|
|
93
|
+
} from './compose';
|
|
94
|
+
export { compressible } from './compressible';
|
|
95
|
+
export { useFluentTheme } from './useFluentTheme';
|
|
96
|
+
export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
|
|
97
|
+
export { buildProps, buildUseStyling } from './useStyling';
|
|
98
|
+
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
|
|
99
|
+
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
|
|
100
|
+
export type { UseTokens, CustomizableComponent } from './useTokens';
|
package/src/themeHelper.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
import type { ThemeHelper } from '@fluentui-react-native/use-styling';
|
|
3
3
|
|
|
4
|
-
import { useFluentTheme } from './useFluentTheme
|
|
4
|
+
import { useFluentTheme } from './useFluentTheme';
|
|
5
5
|
|
|
6
6
|
export const themeHelper: ThemeHelper<Theme> = {
|
|
7
7
|
useTheme: () => useFluentTheme(),
|
package/src/useFluentTheme.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
|
|
2
|
-
import type { Theme } from '@fluentui-react-native/
|
|
3
|
-
import { useTheme } from '@fluentui-react-native/
|
|
2
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
3
|
+
import { useTheme } from '@fluentui-react-native/design/theming';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Attempts to obtain a theme via the react context, failing that the default fluent theme will be returned. Used to ensure some theme
|
package/src/useStyling.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* as to be dependent on the core theme type
|
|
4
4
|
*/
|
|
5
5
|
export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
|
-
import type { Theme } from '@fluentui-react-native/
|
|
6
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
7
7
|
import type {
|
|
8
8
|
TokensFromTheme as TokensFromThemeBase,
|
|
9
9
|
TokenSettings as TokenSettingsBase,
|
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
} from '@fluentui-react-native/use-styling';
|
|
14
14
|
import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase } from '@fluentui-react-native/use-styling';
|
|
15
15
|
|
|
16
|
-
import { themeHelper } from './themeHelper
|
|
16
|
+
import { themeHelper } from './themeHelper';
|
|
17
17
|
|
|
18
18
|
export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
19
19
|
|
package/src/useTokens.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
3
3
|
import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
|
|
5
|
-
import { themeHelper } from './themeHelper
|
|
6
|
-
import type { TokenSettings } from './useStyling
|
|
5
|
+
import { themeHelper } from './themeHelper';
|
|
6
|
+
import type { TokenSettings } from './useStyling';
|
|
7
7
|
|
|
8
8
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
9
9
|
|