@fluentui-react-native/framework 0.8.36 → 0.8.38

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 CHANGED
@@ -2,7 +2,130 @@
2
2
  "name": "@fluentui-react-native/framework",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 25 Jan 2023 21:28:23 GMT",
5
+ "date": "Wed, 01 Feb 2023 22:30:10 GMT",
6
+ "tag": "@fluentui-react-native/framework_v0.8.38",
7
+ "version": "0.8.38",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@fluentui-react-native/framework",
13
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910",
14
+ "comment": "Enable @typescript-eslint/consistent-type-imports"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/framework",
19
+ "comment": "Bump @fluentui-react-native/composition to v0.8.2",
20
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/framework",
25
+ "comment": "Bump @fluentui-react-native/default-theme to v0.16.28",
26
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui-react-native/framework",
31
+ "comment": "Bump @fluentui-react-native/immutable-merge to v1.1.8",
32
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui-react-native/framework",
37
+ "comment": "Bump @fluentui-react-native/merge-props to v0.5.2",
38
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui-react-native/framework",
43
+ "comment": "Bump @fluentui-react-native/theme-types to v0.30.2",
44
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui-react-native/framework",
49
+ "comment": "Bump @fluentui-react-native/use-styling to v0.9.2",
50
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui-react-native/framework",
55
+ "comment": "Bump @fluentui-react-native/use-slot to v0.3.2",
56
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui-react-native/framework",
61
+ "comment": "Bump @fluentui-react-native/use-slots to v0.7.2",
62
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui-react-native/framework",
67
+ "comment": "Bump @fluentui-react-native/use-tokens to v0.3.2",
68
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui-react-native/framework",
73
+ "comment": "Bump @fluentui-react-native/memo-cache to v1.1.8",
74
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui-react-native/framework",
79
+ "comment": "Bump @fluentui-react-native/tokens to v0.20.7",
80
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ "date": "Mon, 30 Jan 2023 15:17:31 GMT",
87
+ "tag": "@fluentui-react-native/framework_v0.8.37",
88
+ "version": "0.8.37",
89
+ "comments": {
90
+ "none": [
91
+ {
92
+ "author": "4123478+tido64@users.noreply.github.com",
93
+ "package": "@fluentui-react-native/framework",
94
+ "commit": "4de4c2b37c835ebd9af015ff767f9dd68452f786",
95
+ "comment": "Migrate to align-deps"
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ {
101
+ "date": "Mon, 30 Jan 2023 07:12:38 GMT",
102
+ "tag": "@fluentui-react-native/framework_v0.8.37",
103
+ "version": "0.8.37",
104
+ "comments": {
105
+ "patch": [
106
+ {
107
+ "author": "beachball",
108
+ "package": "@fluentui-react-native/framework",
109
+ "comment": "Bump @fluentui-react-native/default-theme to v0.16.27",
110
+ "commit": "f6f403b2efe86a229448a618b043601ceefd9a5f"
111
+ },
112
+ {
113
+ "author": "beachball",
114
+ "package": "@fluentui-react-native/framework",
115
+ "comment": "Bump @fluentui-react-native/theme-types to v0.30.1",
116
+ "commit": "f6f403b2efe86a229448a618b043601ceefd9a5f"
117
+ },
118
+ {
119
+ "author": "beachball",
120
+ "package": "@fluentui-react-native/framework",
121
+ "comment": "Bump @fluentui-react-native/tokens to v0.20.6",
122
+ "commit": "f6f403b2efe86a229448a618b043601ceefd9a5f"
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ {
128
+ "date": "Wed, 25 Jan 2023 21:31:18 GMT",
6
129
  "tag": "@fluentui-react-native/framework_v0.8.36",
7
130
  "version": "0.8.36",
8
131
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,41 @@
1
1
  # Change Log - @fluentui-react-native/framework
2
2
 
3
- This log was last generated on Wed, 25 Jan 2023 21:28:23 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 01 Feb 2023 22:30:10 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.8.38
8
+
9
+ Wed, 01 Feb 2023 22:30:10 GMT
10
+
11
+ ### Patches
12
+
13
+ - Enable @typescript-eslint/consistent-type-imports (30809111+acoates-ms@users.noreply.github.com)
14
+ - Bump @fluentui-react-native/composition to v0.8.2
15
+ - Bump @fluentui-react-native/default-theme to v0.16.28
16
+ - Bump @fluentui-react-native/immutable-merge to v1.1.8
17
+ - Bump @fluentui-react-native/merge-props to v0.5.2
18
+ - Bump @fluentui-react-native/theme-types to v0.30.2
19
+ - Bump @fluentui-react-native/use-styling to v0.9.2
20
+ - Bump @fluentui-react-native/use-slot to v0.3.2
21
+ - Bump @fluentui-react-native/use-slots to v0.7.2
22
+ - Bump @fluentui-react-native/use-tokens to v0.3.2
23
+ - Bump @fluentui-react-native/memo-cache to v1.1.8
24
+ - Bump @fluentui-react-native/tokens to v0.20.7
25
+
26
+ ## 0.8.37
27
+
28
+ Mon, 30 Jan 2023 07:12:38 GMT
29
+
30
+ ### Patches
31
+
32
+ - Bump @fluentui-react-native/default-theme to v0.16.27
33
+ - Bump @fluentui-react-native/theme-types to v0.30.1
34
+ - Bump @fluentui-react-native/tokens to v0.20.6
35
+
7
36
  ## 0.8.36
8
37
 
9
- Wed, 25 Jan 2023 21:28:23 GMT
38
+ Wed, 25 Jan 2023 21:31:18 GMT
10
39
 
11
40
  ### Patches
12
41
 
package/lib/compose.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
2
- import { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
2
+ import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
3
3
  /**
4
4
  * This is an object used purely for configuring the typings on composable. It is not necessary to define
5
5
  * the type via the IComposableType interface, this is simply the format used to extract the type info.
@@ -11,25 +11,25 @@ export interface ComposeType<TProps, TSlotProps, TTokens, TStatics = object> {
11
11
  statics: TStatics;
12
12
  }
13
13
  /** fragments used in type extraction */
14
- declare type PropsFragment<TProps> = {
14
+ type PropsFragment<TProps> = {
15
15
  props: TProps;
16
16
  };
17
- declare type SlotPropsFragment<TSlotProps> = {
17
+ type SlotPropsFragment<TSlotProps> = {
18
18
  slotProps: TSlotProps;
19
19
  };
20
- declare type TokensFragment<TTokens> = {
20
+ type TokensFragment<TTokens> = {
21
21
  tokens: TTokens;
22
22
  };
23
- declare type StaticsFragment<TStatics extends object> = {
23
+ type StaticsFragment<TStatics extends object> = {
24
24
  statics: TStatics;
25
25
  };
26
26
  /** Extraction types that get the various interface types from IComposableType */
27
- export declare type ExtractProps<T> = T extends PropsFragment<infer U> ? U : never;
28
- export declare type ExtractSlotProps<T> = T extends SlotPropsFragment<infer U> ? U : never;
29
- export declare type ExtractTokens<T> = T extends TokensFragment<infer U> ? U : object;
30
- export declare type ExtractStatics<T> = T extends StaticsFragment<infer U> ? U : object;
31
- export declare type ComposeOptions<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryOptions<TProps, TSlotProps, TTokens, Theme, TStatics>;
32
- export declare type ComposableComponent<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryComponent<TProps, TSlotProps, TTokens, Theme, TStatics>;
33
- export declare type UseSlots<T> = UseStyledSlots<ExtractProps<T>, ExtractSlotProps<T>>;
27
+ export type ExtractProps<T> = T extends PropsFragment<infer U> ? U : never;
28
+ export type ExtractSlotProps<T> = T extends SlotPropsFragment<infer U> ? U : never;
29
+ export type ExtractTokens<T> = T extends TokensFragment<infer U> ? U : object;
30
+ export type ExtractStatics<T> = T extends StaticsFragment<infer U> ? U : object;
31
+ export type ComposeOptions<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryOptions<TProps, TSlotProps, TTokens, Theme, TStatics>;
32
+ export type ComposableComponent<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryComponent<TProps, TSlotProps, TTokens, Theme, TStatics>;
33
+ export type UseSlots<T> = UseStyledSlots<ExtractProps<T>, ExtractSlotProps<T>>;
34
34
  export declare function compose<T>(options: ComposeOptions<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>, base?: ComposableComponent<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>): ComposableComponent<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>;
35
35
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAkE,MAAM,oCAAoC,CAAC;AACpI,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAoD5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG;IAErG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAoD5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG;IAErG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
@@ -1,7 +1,7 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
2
- import { StagedRender } from '@fluentui-react-native/use-slot';
3
- import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
4
- import { UseTokens } from './useTokens';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
2
+ import type { StagedRender } from '@fluentui-react-native/use-slot';
3
+ import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
4
+ import type { UseTokens } from './useTokens';
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.
@@ -1 +1 @@
1
- {"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAKhF;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { __assign, __rest } from "tslib";
2
- /** @jsx withSlots */
3
2
  import { buildUseTokens } from './useTokens';
4
3
  import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
5
4
  import { Text, View } from 'react-native';
@@ -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,mCA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theme-types';
1
+ import type { ThemeHelper } from '@fluentui-react-native/use-styling';
2
+ import type { Theme } from '@fluentui-react-native/theme-types';
3
3
  export declare const themeHelper: ThemeHelper<Theme>;
@@ -1,4 +1,4 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
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.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAS,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,EAAE,IAAI,kBAAkB,EAAE,CAAC;AAC5C,CAAC"}
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,oCAAoC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,EAAE,IAAI,kBAAkB,EAAE,CAAC;AAC5C,CAAC"}
@@ -3,13 +3,13 @@
3
3
  * as to be dependent on the core theme type
4
4
  */
5
5
  export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
- import { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
7
- import { Theme } from '@fluentui-react-native/theme-types';
8
- export declare type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
6
+ import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
7
+ import type { Theme } from '@fluentui-react-native/theme-types';
8
+ export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
9
9
  export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
10
- export declare type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
11
- export declare type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
12
- export declare type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
10
+ export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
11
+ export type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
12
+ export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
13
13
  /**
14
14
  * Construct a useStyling hook which returns styled slot props based on props and tokens defined in options and in the theme
15
15
  *
package/lib/useStyling.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase, } from '@fluentui-react-native/use-styling';
1
+ import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase } from '@fluentui-react-native/use-styling';
2
2
  import { themeHelper } from './themeHelper';
3
3
  export function buildProps(fn, keys) {
4
4
  return buildPropsBase(fn, keys);
@@ -1 +1 @@
1
- {"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,eAAe,IAAI,mBAAmB,EAEtC,UAAU,IAAI,cAAc,GAE7B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,UAAU,UAAU,CACxB,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"}
1
+ {"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAYA,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"}
@@ -1,6 +1,6 @@
1
- import { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
2
- import { Theme } from '@fluentui-react-native/theme-types';
3
- import { TokenSettings } from './useStyling';
1
+ import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
2
+ import type { Theme } from '@fluentui-react-native/theme-types';
3
+ import type { TokenSettings } from './useStyling';
4
4
  export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
5
- export declare type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
5
+ export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
6
6
  export declare function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens>;
@@ -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;AAKpH,MAAM,UAAU,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,kBAAkB,8BAAC,WAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC"}
1
+ {"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAKpH,MAAM,UAAU,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,kBAAkB,8BAAC,WAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
2
- import { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
2
+ import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
3
3
  /**
4
4
  * This is an object used purely for configuring the typings on composable. It is not necessary to define
5
5
  * the type via the IComposableType interface, this is simply the format used to extract the type info.
@@ -11,25 +11,25 @@ export interface ComposeType<TProps, TSlotProps, TTokens, TStatics = object> {
11
11
  statics: TStatics;
12
12
  }
13
13
  /** fragments used in type extraction */
14
- declare type PropsFragment<TProps> = {
14
+ type PropsFragment<TProps> = {
15
15
  props: TProps;
16
16
  };
17
- declare type SlotPropsFragment<TSlotProps> = {
17
+ type SlotPropsFragment<TSlotProps> = {
18
18
  slotProps: TSlotProps;
19
19
  };
20
- declare type TokensFragment<TTokens> = {
20
+ type TokensFragment<TTokens> = {
21
21
  tokens: TTokens;
22
22
  };
23
- declare type StaticsFragment<TStatics extends object> = {
23
+ type StaticsFragment<TStatics extends object> = {
24
24
  statics: TStatics;
25
25
  };
26
26
  /** Extraction types that get the various interface types from IComposableType */
27
- export declare type ExtractProps<T> = T extends PropsFragment<infer U> ? U : never;
28
- export declare type ExtractSlotProps<T> = T extends SlotPropsFragment<infer U> ? U : never;
29
- export declare type ExtractTokens<T> = T extends TokensFragment<infer U> ? U : object;
30
- export declare type ExtractStatics<T> = T extends StaticsFragment<infer U> ? U : object;
31
- export declare type ComposeOptions<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryOptions<TProps, TSlotProps, TTokens, Theme, TStatics>;
32
- export declare type ComposableComponent<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryComponent<TProps, TSlotProps, TTokens, Theme, TStatics>;
33
- export declare type UseSlots<T> = UseStyledSlots<ExtractProps<T>, ExtractSlotProps<T>>;
27
+ export type ExtractProps<T> = T extends PropsFragment<infer U> ? U : never;
28
+ export type ExtractSlotProps<T> = T extends SlotPropsFragment<infer U> ? U : never;
29
+ export type ExtractTokens<T> = T extends TokensFragment<infer U> ? U : object;
30
+ export type ExtractStatics<T> = T extends StaticsFragment<infer U> ? U : object;
31
+ export type ComposeOptions<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryOptions<TProps, TSlotProps, TTokens, Theme, TStatics>;
32
+ export type ComposableComponent<TProps, TSlotProps, TTokens, TStatics extends object> = ComposeFactoryComponent<TProps, TSlotProps, TTokens, Theme, TStatics>;
33
+ export type UseSlots<T> = UseStyledSlots<ExtractProps<T>, ExtractSlotProps<T>>;
34
34
  export declare function compose<T>(options: ComposeOptions<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>, base?: ComposableComponent<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>): ComposableComponent<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>;
35
35
  export {};
@@ -1 +1 @@
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
+ {"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":";;;AAEA,kEAAoE;AACpE,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,7 +1,7 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
2
- import { StagedRender } from '@fluentui-react-native/use-slot';
3
- import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
4
- import { UseTokens } from './useTokens';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
2
+ import type { StagedRender } from '@fluentui-react-native/use-slot';
3
+ import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
4
+ import type { UseTokens } from './useTokens';
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.
@@ -1 +1 @@
1
- {"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AACA,4DAAgF;AAKhF;;;;;;GAMG;AACH,SAAgB,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAfD,oCAeC"}
1
+ {"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AAEA,4DAAkE;AAKlE;;;;;;GAMG;AACH,SAAgB,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAfD,oCAeC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- /** @jsx withSlots */
5
4
  var useTokens_1 = require("./useTokens");
6
5
  var use_tokens_1 = require("@fluentui-react-native/use-tokens");
7
6
  var react_native_1 = require("react-native");
@@ -32,15 +31,15 @@ var VariantText = (0, compressible_1.compressible)(function (props, useTokens) {
32
31
  // get the tokens
33
32
  var _b = useTokens(theme), tokens = _b[0], cache = _b[1];
34
33
  // 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 = (0, tslib_1.__rest)(props, ["variant", "style"]);
34
+ var _c = props.variant, variant = _c === void 0 ? tokens.defaultType : _c, style = props.style, rest = tslib_1.__rest(props, ["variant", "style"]);
36
35
  // now apply the alternate layer tokens as appropriate
37
36
  _a = (0, use_tokens_1.applyTokenLayers)(tokens, ['normal', 'header', 'caption'], cache, function (layer) { return layer === variant; }), tokens = _a[0], cache = _a[1];
38
37
  // merge styles together with what is passed in
39
38
  var mergedStyle = (0, merge_props_1.mergeStyles)({ color: tokens.color, fontSize: tokens.fontSize, fontWeight: tokens.fontWeight }, style);
40
39
  // now get the slot
41
- var InnerText = (0, use_slot_1.useSlot)(react_native_1.Text, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, rest), { style: mergedStyle }));
40
+ var InnerText = (0, use_slot_1.useSlot)(react_native_1.Text, tslib_1.__assign(tslib_1.__assign({}, rest), { style: mergedStyle }));
42
41
  return function (extra, children) {
43
- return (0, use_slot_1.withSlots)(InnerText, (0, tslib_1.__assign)({}, extra), children);
42
+ return (0, use_slot_1.withSlots)(InnerText, tslib_1.__assign({}, extra), children);
44
43
  };
45
44
  }, useVariantTokens);
46
45
  var SuperHeader = VariantText.customize({ header: { fontSize: 24, color: 'purple' } });
@@ -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,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AAM,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"}
@@ -1,3 +1,3 @@
1
- import { ThemeHelper } from '@fluentui-react-native/use-styling';
2
- import { Theme } from '@fluentui-react-native/theme-types';
1
+ import type { ThemeHelper } from '@fluentui-react-native/use-styling';
2
+ import type { Theme } from '@fluentui-react-native/theme-types';
3
3
  export declare const themeHelper: ThemeHelper<Theme>;
@@ -1,4 +1,4 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
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.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":";;;AAAA,sEAA0E;AAC1E,kEAAqE;AAErE;;;;GAIG;AACH,SAAgB,cAAc;IAC5B,OAAO,IAAA,sBAAQ,GAAE,IAAI,IAAA,kCAAkB,GAAE,CAAC;AAC5C,CAAC;AAFD,wCAEC"}
1
+ {"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":";;;AAAA,sEAA0E;AAE1E,kEAA8D;AAE9D;;;;GAIG;AACH,SAAgB,cAAc;IAC5B,OAAO,IAAA,sBAAQ,GAAE,IAAI,IAAA,kCAAkB,GAAE,CAAC;AAC5C,CAAC;AAFD,wCAEC"}
@@ -3,13 +3,13 @@
3
3
  * as to be dependent on the core theme type
4
4
  */
5
5
  export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
- import { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
7
- import { Theme } from '@fluentui-react-native/theme-types';
8
- export declare type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
6
+ import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
7
+ import type { Theme } from '@fluentui-react-native/theme-types';
8
+ export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
9
9
  export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
10
- export declare type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
11
- export declare type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
12
- export declare type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
10
+ export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
11
+ export type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
12
+ export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
13
13
  /**
14
14
  * Construct a useStyling hook which returns styled slot props based on props and tokens defined in options and in the theme
15
15
  *
@@ -1 +1 @@
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
+ {"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":";;;AAYA,kEAA0H;AAE1H,6CAA4C;AAI5C,SAAgB,UAAU,CACxB,EAA6C,EAC7C,IAAwB;IAExB,OAAO,IAAA,wBAAc,EAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC;AALD,gCAKC;AAMD;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,OAAuD;IAEvD,8DAA8D;IAC9D,OAAO,IAAA,6BAAmB,EAAC,OAAO,EAAE,yBAAW,CAAC,CAAC;AACnD,CAAC;AALD,0CAKC"}
@@ -1,6 +1,6 @@
1
- import { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
2
- import { Theme } from '@fluentui-react-native/theme-types';
3
- import { TokenSettings } from './useStyling';
1
+ import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
2
+ import type { Theme } from '@fluentui-react-native/theme-types';
3
+ import type { TokenSettings } from './useStyling';
4
4
  export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
5
- export declare type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
5
+ export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
6
6
  export declare function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens>;
@@ -14,7 +14,7 @@ function buildUseTokens() {
14
14
  for (var _i = 0; _i < arguments.length; _i++) {
15
15
  tokens[_i] = arguments[_i];
16
16
  }
17
- return use_tokens_1.buildUseTokens.apply(void 0, (0, tslib_1.__spreadArray)([themeHelper_1.themeHelper.getComponentInfo], tokens, false));
17
+ return use_tokens_1.buildUseTokens.apply(void 0, tslib_1.__spreadArray([themeHelper_1.themeHelper.getComponentInfo], tokens, false));
18
18
  }
19
19
  exports.buildUseTokens = buildUseTokens;
20
20
  //# sourceMappingURL=useTokens.js.map
@@ -1 +1 @@
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;AAKxE,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"}
1
+ {"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AACA,gEAAyF;AACzF,6CAA4C;AAI5C,gEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;AAKxE,SAAgB,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,2BAAkB,sCAAC,yBAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC;AAFD,wCAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/framework",
3
- "version": "0.8.36",
3
+ "version": "0.8.38",
4
4
  "description": "Component framework used by fluentui react native controls",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -24,17 +24,17 @@
24
24
  "directory": "packages/framework/framework"
25
25
  },
26
26
  "dependencies": {
27
- "@fluentui-react-native/composition": ">=0.8.1 <1.0.0",
28
- "@fluentui-react-native/default-theme": ">=0.16.26 <1.0.0",
29
- "@fluentui-react-native/immutable-merge": "^1.1.7",
30
- "@fluentui-react-native/merge-props": ">=0.5.1 <1.0.0",
31
- "@fluentui-react-native/theme-types": ">=0.30.0 <1.0.0",
32
- "@fluentui-react-native/use-styling": ">=0.9.1 <1.0.0",
33
- "@fluentui-react-native/use-slot": ">=0.3.1 <1.0.0",
34
- "@fluentui-react-native/use-slots": ">=0.7.1 <1.0.0",
35
- "@fluentui-react-native/use-tokens": ">=0.3.1 <1.0.0",
36
- "@fluentui-react-native/memo-cache": "^1.1.7",
37
- "@fluentui-react-native/tokens": ">=0.20.5 <1.0.0",
27
+ "@fluentui-react-native/composition": ">=0.8.2 <1.0.0",
28
+ "@fluentui-react-native/default-theme": ">=0.16.28 <1.0.0",
29
+ "@fluentui-react-native/immutable-merge": "^1.1.8",
30
+ "@fluentui-react-native/merge-props": ">=0.5.2 <1.0.0",
31
+ "@fluentui-react-native/theme-types": ">=0.30.2 <1.0.0",
32
+ "@fluentui-react-native/use-styling": ">=0.9.2 <1.0.0",
33
+ "@fluentui-react-native/use-slot": ">=0.3.2 <1.0.0",
34
+ "@fluentui-react-native/use-slots": ">=0.7.2 <1.0.0",
35
+ "@fluentui-react-native/use-tokens": ">=0.3.2 <1.0.0",
36
+ "@fluentui-react-native/memo-cache": "^1.1.8",
37
+ "@fluentui-react-native/tokens": ">=0.20.7 <1.0.0",
38
38
  "tslib": "^2.3.1"
39
39
  },
40
40
  "devDependencies": {
@@ -43,26 +43,29 @@
43
43
  "@types/react": "^17.0.2",
44
44
  "@types/react-native": "^0.68.0",
45
45
  "react": "17.0.2",
46
- "react-dom": "17.0.2",
47
46
  "react-native": "^0.68.0"
48
47
  },
49
48
  "peerDependencies": {
50
49
  "react": "17.0.2",
51
- "react-dom": "17.0.2",
52
50
  "react-native": "^0.68.0"
53
51
  },
54
52
  "author": "",
55
53
  "license": "MIT",
56
54
  "rnx-kit": {
57
- "reactNativeVersion": "^0.68",
58
- "reactNativeDevVersion": "^0.68",
59
55
  "kitType": "library",
60
- "capabilities": [
61
- "core",
62
- "core-android",
63
- "core-ios",
64
- "react",
65
- "react-dom"
66
- ]
56
+ "alignDeps": {
57
+ "presets": [
58
+ "microsoft/react-native"
59
+ ],
60
+ "requirements": [
61
+ "react-native@0.68"
62
+ ],
63
+ "capabilities": [
64
+ "core",
65
+ "core-android",
66
+ "core-ios",
67
+ "react"
68
+ ]
69
+ }
67
70
  }
68
71
  }
package/src/compose.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
2
- import { composeFactory, ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
2
+ import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
3
+ import { composeFactory } from '@fluentui-react-native/composition';
3
4
  import { themeHelper } from './themeHelper';
4
5
 
5
6
  /**
@@ -1,9 +1,11 @@
1
1
  /** @jsx withSlots */
2
- import { buildUseTokens, UseTokens } from './useTokens';
2
+ import type { UseTokens } from './useTokens';
3
+ import { buildUseTokens } from './useTokens';
3
4
  import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
4
- import { TextProps, TextStyle, Text, View } from 'react-native';
5
+ import type { TextProps, TextStyle } from 'react-native';
6
+ import { Text, View } from 'react-native';
5
7
  import { compressible } from './compressible';
6
- import { Theme } from '@fluentui-react-native/theme-types';
8
+ import type { Theme } from '@fluentui-react-native/theme-types';
7
9
  import { mergeStyles } from '@fluentui-react-native/merge-props';
8
10
  import { useSlot, withSlots } from '@fluentui-react-native/use-slot';
9
11
  import * as React from 'react';
@@ -1,8 +1,9 @@
1
- import { Theme } from '@fluentui-react-native/theme-types';
2
- import { stagedComponent, StagedRender } from '@fluentui-react-native/use-slot';
3
- import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
4
- import { TokenSettings } from './useStyling';
5
- import { UseTokens } from './useTokens';
1
+ import type { Theme } from '@fluentui-react-native/theme-types';
2
+ import type { StagedRender } from '@fluentui-react-native/use-slot';
3
+ import { stagedComponent } from '@fluentui-react-native/use-slot';
4
+ import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
5
+ import type { TokenSettings } from './useStyling';
6
+ import type { UseTokens } from './useTokens';
6
7
 
7
8
  /**
8
9
  * Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
@@ -1,5 +1,5 @@
1
- import { ThemeHelper } from '@fluentui-react-native/use-styling';
2
- import { Theme } from '@fluentui-react-native/theme-types';
1
+ import type { ThemeHelper } from '@fluentui-react-native/use-styling';
2
+ import type { Theme } from '@fluentui-react-native/theme-types';
3
3
  import { useFluentTheme } from './useFluentTheme';
4
4
 
5
5
  export const themeHelper: ThemeHelper<Theme> = {
@@ -1,5 +1,6 @@
1
1
  import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
2
- import { Theme, useTheme } from '@fluentui-react-native/theme-types';
2
+ import type { Theme } from '@fluentui-react-native/theme-types';
3
+ import { useTheme } from '@fluentui-react-native/theme-types';
3
4
 
4
5
  /**
5
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,16 +3,15 @@
3
3
  * as to be dependent on the core theme type
4
4
  */
5
5
  export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
- import {
6
+ import type {
7
7
  TokensFromTheme as TokensFromThemeBase,
8
8
  TokenSettings as TokenSettingsBase,
9
9
  UseStylingOptions as UseStylingOptionsBase,
10
- buildUseStyling as buildUseStylingBase,
11
10
  UseStyling,
12
- buildProps as buildPropsBase,
13
11
  BuildPropsBase,
14
12
  } from '@fluentui-react-native/use-styling';
15
- import { Theme } from '@fluentui-react-native/theme-types';
13
+ import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase } from '@fluentui-react-native/use-styling';
14
+ import type { Theme } from '@fluentui-react-native/theme-types';
16
15
  import { themeHelper } from './themeHelper';
17
16
 
18
17
  export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
package/src/useTokens.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { buildUseTokens as buildUseTokensCore, UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
1
+ import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
2
+ import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use-tokens';
2
3
  import { themeHelper } from './themeHelper';
3
- import { Theme } from '@fluentui-react-native/theme-types';
4
- import { TokenSettings } from './useStyling';
4
+ import type { Theme } from '@fluentui-react-native/theme-types';
5
+ import type { TokenSettings } from './useStyling';
5
6
 
6
7
  export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
7
8