@fluentui-react-native/framework 0.14.17 → 0.15.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/babel.config.js +1 -1
  3. package/lib/compose.d.ts +27 -12
  4. package/lib/compose.js +2 -2
  5. package/lib/compose.js.map +1 -1
  6. package/lib/compressible.d.ts +5 -2
  7. package/lib/compressible.js +8 -8
  8. package/lib/compressible.js.map +1 -1
  9. package/lib/compressible.test.d.ts +1 -1
  10. package/lib/compressible.test.js +67 -59
  11. package/lib/compressible.test.js.map +1 -1
  12. package/lib/index.d.ts +76 -6
  13. package/lib/index.js +16 -2
  14. package/lib/themeHelper.d.ts +1 -1
  15. package/lib/themeHelper.js +6 -6
  16. package/lib/themeHelper.js.map +1 -1
  17. package/lib/useFluentTheme.d.ts +1 -1
  18. package/lib/useFluentTheme.js +2 -2
  19. package/lib/useFluentTheme.js.map +1 -1
  20. package/lib/useStyling.d.ts +15 -4
  21. package/lib/useStyling.js +4 -4
  22. package/lib/useStyling.js.map +1 -1
  23. package/lib/useTokens.d.ts +1 -1
  24. package/lib/useTokens.js +2 -2
  25. package/lib/useTokens.js.map +1 -1
  26. package/lib-commonjs/compose.d.ts +27 -12
  27. package/lib-commonjs/compose.js +7 -8
  28. package/lib-commonjs/compose.js.map +1 -1
  29. package/lib-commonjs/compressible.d.ts +5 -2
  30. package/lib-commonjs/compressible.js +12 -13
  31. package/lib-commonjs/compressible.js.map +1 -1
  32. package/lib-commonjs/compressible.test.d.ts +1 -1
  33. package/lib-commonjs/compressible.test.js +134 -91
  34. package/lib-commonjs/compressible.test.js.map +1 -1
  35. package/lib-commonjs/index.d.ts +76 -6
  36. package/lib-commonjs/index.js +283 -55
  37. package/lib-commonjs/index.js.map +1 -1
  38. package/lib-commonjs/themeHelper.d.ts +1 -1
  39. package/lib-commonjs/themeHelper.js +9 -9
  40. package/lib-commonjs/themeHelper.js.map +1 -1
  41. package/lib-commonjs/useFluentTheme.d.ts +1 -1
  42. package/lib-commonjs/useFluentTheme.js +7 -8
  43. package/lib-commonjs/useFluentTheme.js.map +1 -1
  44. package/lib-commonjs/useStyling.d.ts +15 -4
  45. package/lib-commonjs/useStyling.js +10 -11
  46. package/lib-commonjs/useStyling.js.map +1 -1
  47. package/lib-commonjs/useTokens.d.ts +1 -1
  48. package/lib-commonjs/useTokens.js +33 -13
  49. package/lib-commonjs/useTokens.js.map +1 -1
  50. package/package.json +68 -66
  51. package/src/compressible.test.tsx +15 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # Change Log - @fluentui-react-native/framework
2
2
 
3
+ ## 0.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d7adbdd: # Migration from Beachball to Changesets
8
+
9
+ This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
10
+
11
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
12
+
13
+ ## What Changed
14
+
15
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
16
+
17
+ - ❌ 440+ beachball change files from `change/` directory
18
+ - ❌ `beachball` package dependency
19
+ - ❌ Beachball scripts from `package.json`
20
+ - ❌ `beachball.config.js` configuration file
21
+ - ❌ Beachball publish steps from Azure Pipelines
22
+
23
+ ## New Workflow
24
+
25
+ ✅ **Create changes**: Run `yarn changeset` to document changes
26
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
27
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
28
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
29
+
30
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
31
+
32
+ ### Patch Changes
33
+
34
+ - d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
35
+ - Updated dependencies [d7adbdd]
36
+ - Updated dependencies [d1d8c26]
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
46
+
3
47
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:40 GMT and should not be manually modified. -->
4
48
 
5
49
  <!-- Start content -->
package/babel.config.js CHANGED
@@ -1,4 +1,4 @@
1
1
  module.exports = {
2
- presets: [['module:@react-native/babel-preset', { runtime: 'classic' }]],
2
+ presets: [['module:@react-native/babel-preset', { runtime: 'automatic' }]],
3
3
  babelrcRoots: ['experiments/*'],
4
4
  };
package/lib/compose.d.ts CHANGED
@@ -6,32 +6,47 @@ import type { ObjectBase } from '@fluentui-react-native/framework-base';
6
6
  * the type via the IComposableType interface, this is simply the format used to extract the type info.
7
7
  */
8
8
  export interface ComposeType<TProps, TSlotProps, TTokens, TStatics = ObjectBase> {
9
- props: TProps;
10
- slotProps: TSlotProps;
11
- tokens: TTokens;
12
- statics: TStatics;
9
+ props: TProps;
10
+ slotProps: TSlotProps;
11
+ tokens: TTokens;
12
+ statics: TStatics;
13
13
  }
14
14
  /** fragments used in type extraction */
15
15
  type PropsFragment<TProps> = {
16
- props: TProps;
16
+ props: TProps;
17
17
  };
18
18
  type SlotPropsFragment<TSlotProps> = {
19
- slotProps: TSlotProps;
19
+ slotProps: TSlotProps;
20
20
  };
21
21
  type TokensFragment<TTokens> = {
22
- tokens: TTokens;
22
+ tokens: TTokens;
23
23
  };
24
24
  type StaticsFragment<TStatics extends ObjectBase> = {
25
- statics: TStatics;
25
+ statics: TStatics;
26
26
  };
27
27
  /** Extraction types that get the various interface types from IComposableType */
28
28
  export type ExtractProps<T> = T extends PropsFragment<infer U> ? U : never;
29
29
  export type ExtractSlotProps<T> = T extends SlotPropsFragment<infer U> ? U : never;
30
30
  export type ExtractTokens<T> = T extends TokensFragment<infer U> ? U : ObjectBase;
31
31
  export type ExtractStatics<T> = T extends StaticsFragment<infer U> ? U : ObjectBase;
32
- export type ComposeOptions<TProps, TSlotProps, TTokens, TStatics extends ObjectBase> = ComposeFactoryOptions<TProps, TSlotProps, TTokens, Theme, TStatics>;
33
- export type ComposableComponent<TProps, TSlotProps, TTokens, TStatics extends ObjectBase> = ComposeFactoryComponent<TProps, TSlotProps, TTokens, Theme, TStatics>;
32
+ export type ComposeOptions<TProps, TSlotProps, TTokens, TStatics extends ObjectBase> = ComposeFactoryOptions<
33
+ TProps,
34
+ TSlotProps,
35
+ TTokens,
36
+ Theme,
37
+ TStatics
38
+ >;
39
+ export type ComposableComponent<TProps, TSlotProps, TTokens, TStatics extends ObjectBase> = ComposeFactoryComponent<
40
+ TProps,
41
+ TSlotProps,
42
+ TTokens,
43
+ Theme,
44
+ TStatics
45
+ >;
34
46
  export type UseSlots<T> = UseStyledSlots<ExtractProps<T>, ExtractSlotProps<T>>;
35
- 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>>;
47
+ export declare function compose<T>(
48
+ options: ComposeOptions<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>,
49
+ base?: ComposableComponent<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>,
50
+ ): ComposableComponent<ExtractProps<T>, ExtractSlotProps<T>, ExtractTokens<T>, ExtractStatics<T>>;
36
51
  export {};
37
- //# sourceMappingURL=compose.d.ts.map
52
+ //# sourceMappingURL=compose.d.ts.map
package/lib/compose.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { composeFactory } from '@fluentui-react-native/composition';
2
2
  import { themeHelper } from './themeHelper';
3
3
  export function compose(options, base) {
4
- return composeFactory(options, themeHelper, base);
4
+ return composeFactory(options, themeHelper, base);
5
5
  }
6
- //# sourceMappingURL=compose.js.map
6
+ //# sourceMappingURL=compose.js.map
@@ -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,eAAe,CAAC;AA8C5C,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":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA8C5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG,EACL;IAChG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AAAA,CACnD"}
@@ -9,5 +9,8 @@ import type { UseTokens } from './useTokens';
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: StagedRender<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
13
- //# sourceMappingURL=compressible.d.ts.map
12
+ export declare function compressible<TProps, TTokens>(
13
+ fn: StagedRender<TProps>,
14
+ useTokens: UseTokens<TTokens>,
15
+ ): CustomizableComponent<TProps, TTokens, Theme>;
16
+ //# sourceMappingURL=compressible.d.ts.map
@@ -7,12 +7,12 @@ import { stagedComponent } from '@fluentui-react-native/framework-base';
7
7
  * @returns A tree compressed function component with the `.customize` method exposed to it
8
8
  */
9
9
  export function compressible(fn, useTokens) {
10
- const injectedWrapper = (props) => fn(props, useTokens);
11
- const component = stagedComponent(injectedWrapper);
12
- component.customize = (...tokens) => {
13
- const useTokensNew = useTokens.customize(...tokens);
14
- return compressible(fn, useTokensNew);
15
- };
16
- return component;
10
+ const injectedWrapper = (props) => fn(props, useTokens);
11
+ const component = stagedComponent(injectedWrapper);
12
+ component.customize = (...tokens) => {
13
+ const useTokensNew = useTokens.customize(...tokens);
14
+ return compressible(fn, useTokensNew);
15
+ };
16
+ return component;
17
17
  }
18
- //# sourceMappingURL=compressible.js.map
18
+ //# sourceMappingURL=compressible.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAMxE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,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"}
1
+ {"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAMxE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B,EACkB;IAG/C,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG,CAAC,GAAG,MAAgC,EAAE,EAAE,CAAC;QAC7D,MAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IAAA,CACvC,CAAC;IAEF,OAAO,SAAS,CAAC;AAAA,CAClB"}
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=compressible.test.d.ts.map
2
+ //# sourceMappingURL=compressible.test.d.ts.map
@@ -1,79 +1,87 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from '@fluentui-react-native/framework-base/jsx-runtime';
2
+ import { act } from 'react';
1
3
  import { Text, View } from 'react-native';
2
4
  import { mergeStyles } from '@fluentui-react-native/framework-base';
3
5
  import { useSlot } from '@fluentui-react-native/use-slot';
4
- import { withSlots } from '@fluentui-react-native/framework-base';
5
6
  import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
6
7
  import * as renderer from 'react-test-renderer';
7
8
  import { compressible } from './compressible';
8
9
  import { buildUseTokens } from './useTokens';
9
10
  const useVariantTokens = buildUseTokens({
10
- color: 'black',
11
- fontSize: 12,
12
- fontWeight: '500',
13
- defaultType: 'normal',
14
- header: {
15
- color: 'blue',
16
- fontSize: 16,
17
- fontWeight: '700',
18
- },
19
- caption: {
20
- color: 'gray',
21
- fontWeight: '300',
22
- },
11
+ color: 'black',
12
+ fontSize: 12,
13
+ fontWeight: '500',
14
+ defaultType: 'normal',
15
+ header: {
16
+ color: 'blue',
17
+ fontSize: 16,
18
+ fontWeight: '700',
19
+ },
20
+ caption: {
21
+ color: 'gray',
22
+ fontWeight: '300',
23
+ },
23
24
  });
24
25
  const VariantText = compressible((props, useTokens) => {
25
- // fake theme here
26
- const theme = {};
27
- // get the tokens
28
- let [tokens, cache] = useTokens(theme);
29
- // split the props, defaulting the variant type to the default type from the tokens
30
- const { variant = tokens.defaultType, style, ...rest } = props;
31
- // now apply the alternate layer tokens as appropriate
32
- [tokens, cache] = applyTokenLayers(tokens, ['normal', 'header', 'caption'], cache, (layer) => layer === variant);
33
- // merge styles together with what is passed in
34
- const mergedStyle = mergeStyles({ color: tokens.color, fontSize: tokens.fontSize, fontWeight: tokens.fontWeight }, style);
35
- // now get the slot
36
- const InnerText = useSlot(Text, { ...rest, style: mergedStyle });
37
- return (extra, children) => {
38
- return withSlots(InnerText, { ...extra }, children);
39
- };
26
+ // fake theme here
27
+ const theme = {};
28
+ // get the tokens
29
+ let [tokens, cache] = useTokens(theme);
30
+ // split the props, defaulting the variant type to the default type from the tokens
31
+ const { variant = tokens.defaultType, style, ...rest } = props;
32
+ // now apply the alternate layer tokens as appropriate
33
+ [tokens, cache] = applyTokenLayers(tokens, ['normal', 'header', 'caption'], cache, (layer) => layer === variant);
34
+ // merge styles together with what is passed in
35
+ const mergedStyle = mergeStyles({ color: tokens.color, fontSize: tokens.fontSize, fontWeight: tokens.fontWeight }, style);
36
+ // now get the slot
37
+ const InnerText = useSlot(Text, { ...rest, style: mergedStyle });
38
+ return (extra, children) => {
39
+ return _jsx(InnerText, { ...extra, children: children });
40
+ };
40
41
  }, useVariantTokens);
41
42
  const SuperHeader = VariantText.customize({ header: { fontSize: 24, color: 'purple' } });
42
43
  const useLabelTokens = buildUseTokens({
43
- headerVariant: 'header',
44
- captionVariant: 'caption',
44
+ headerVariant: 'header',
45
+ captionVariant: 'caption',
45
46
  });
46
47
  const Label = compressible((props, useTokens) => {
47
- const theme = {};
48
- const [tokens] = useTokens(theme);
49
- const { headerText, captionText, headerSlot, captionSlot } = props;
50
- const Header = useSlot(headerSlot || VariantText, { variant: tokens.headerVariant });
51
- const Caption = useSlot(captionSlot || VariantText, { variant: tokens.captionVariant });
52
- return () => {
53
- if (captionText) {
54
- return (withSlots(View, null,
55
- withSlots(Header, null, headerText),
56
- withSlots(Caption, null, captionText)));
57
- }
58
- return withSlots(Header, null, headerText);
59
- };
48
+ const theme = {};
49
+ const [tokens] = useTokens(theme);
50
+ const { headerText, captionText, headerSlot, captionSlot } = props;
51
+ const Header = useSlot(headerSlot || VariantText, { variant: tokens.headerVariant });
52
+ const Caption = useSlot(captionSlot || VariantText, { variant: tokens.captionVariant });
53
+ return () => {
54
+ if (captionText) {
55
+ return _jsxs(View, { children: [_jsx(Header, { children: headerText }), _jsx(Caption, { children: captionText })] });
56
+ }
57
+ return _jsx(Header, { children: headerText });
58
+ };
60
59
  }, useLabelTokens);
61
60
  describe('compressible tests', () => {
62
- it('Two labels, one with caption and one without', () => {
63
- const tree = renderer
64
- .create(withSlots(View, null,
65
- withSlots(Label, { headerText: "Header1" }),
66
- withSlots(Label, { headerText: "Header2", captionText: "Caption2" })))
67
- .toJSON();
68
- expect(tree).toMatchSnapshot();
61
+ it('Two labels, one with caption and one without', () => {
62
+ let component;
63
+ act(() => {
64
+ component = renderer.create(
65
+ _jsxs(View, {
66
+ children: [_jsx(Label, { headerText: 'Header1' }), _jsx(Label, { headerText: 'Header2', captionText: 'Caption2' })],
67
+ }),
68
+ );
69
69
  });
70
- it('Two labels, one plugging in SuperHeader instead', () => {
71
- const tree = renderer
72
- .create(withSlots(View, null,
73
- withSlots(Label, { headerText: "Super Header", headerSlot: SuperHeader, captionText: "Normal caption" }),
74
- withSlots(Label, { headerText: "Normal Header", captionText: "Another normal caption" })))
75
- .toJSON();
76
- expect(tree).toMatchSnapshot();
70
+ expect(component.toJSON()).toMatchSnapshot();
71
+ });
72
+ it('Two labels, one plugging in SuperHeader instead', () => {
73
+ let component;
74
+ act(() => {
75
+ component = renderer.create(
76
+ _jsxs(View, {
77
+ children: [
78
+ _jsx(Label, { headerText: 'Super Header', headerSlot: SuperHeader, captionText: 'Normal caption' }),
79
+ _jsx(Label, { headerText: 'Normal Header', captionText: 'Another normal caption' }),
80
+ ],
81
+ }),
82
+ );
77
83
  });
84
+ expect(component.toJSON()).toMatchSnapshot();
85
+ });
78
86
  });
79
- //# sourceMappingURL=compressible.test.js.map
87
+ //# sourceMappingURL=compressible.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,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;IACd,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,YAAY,CAC9B,CAAC,KAAuB,EAAE,SAAuC,EAAE,EAAE;IACnE,kBAAkB;IAClB,MAAM,KAAK,GAAU,EAAW,CAAC;IACjC,iBAAiB;IACjB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,SAAS,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zB,MAAC,IAAI;oBACH,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;oBACpE,CACR,CAAC;QAAA,CACH,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -2,19 +2,89 @@ export type { GetMemoValue, GetTypedMemoValue } from '@fluentui-react-native/fra
2
2
  export { getMemoCache, getTypedMemoCache, memoize } from '@fluentui-react-native/framework-base';
3
3
  export type { StyleProp } from '@fluentui-react-native/framework-base';
4
4
  export { mergeProps, mergeStyles } from '@fluentui-react-native/framework-base';
5
- export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
6
- export type { FontStyleTokens, FontTokens, FontVariantTokens, IBackgroundColorTokens, IBorderTokens, IColorTokens, IForegroundColorTokens, IShadowTokens, LayoutTokens, TokenBuilder, } from '@fluentui-react-native/tokens';
5
+ export {
6
+ backgroundColorTokens,
7
+ borderStyles,
8
+ borderTokens,
9
+ colorTokens,
10
+ fontStyles,
11
+ foregroundColorTokens,
12
+ getPaletteFromTheme,
13
+ layoutStyles,
14
+ layoutTokens,
15
+ shadowStyles,
16
+ shadowTokens,
17
+ textTokens,
18
+ tokenBuilder,
19
+ } from '@fluentui-react-native/tokens';
20
+ export type {
21
+ FontStyleTokens,
22
+ FontTokens,
23
+ FontVariantTokens,
24
+ IBackgroundColorTokens,
25
+ IBorderTokens,
26
+ IColorTokens,
27
+ IForegroundColorTokens,
28
+ IShadowTokens,
29
+ LayoutTokens,
30
+ TokenBuilder,
31
+ } from '@fluentui-react-native/tokens';
7
32
  export { useSlot } from '@fluentui-react-native/use-slot';
8
33
  export { renderSlot, stagedComponent, withSlots } from '@fluentui-react-native/framework-base';
9
34
  export type { ComposableFunction, FinalRender, NativeReactType, SlotFn, StagedRender } from '@fluentui-react-native/framework-base';
10
35
  export { buildUseSlots } from '@fluentui-react-native/use-slots';
11
36
  export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from '@fluentui-react-native/use-slots';
12
37
  export { immutableMerge, immutableMergeCore, processImmutable } from '@fluentui-react-native/framework-base';
13
- export type { BuiltinRecursionHandlers, CustomRecursionHandler, MergeOptions, ObjectBase, RecursionHandler, RecursionOption, } from '@fluentui-react-native/framework-base';
38
+ export type {
39
+ BuiltinRecursionHandlers,
40
+ CustomRecursionHandler,
41
+ MergeOptions,
42
+ ObjectBase,
43
+ RecursionHandler,
44
+ RecursionOption,
45
+ } from '@fluentui-react-native/framework-base';
14
46
  export { ThemeContext, useTheme } from '@fluentui-react-native/theme-types';
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/theme-types';
47
+ export type {
48
+ AliasColorTokens,
49
+ AppearanceOptions,
50
+ Color,
51
+ FontFamilies,
52
+ FontFamily,
53
+ FontFamilyValue,
54
+ FontSize,
55
+ FontSizeValuePoints,
56
+ FontSizes,
57
+ FontWeight,
58
+ FontWeightValue,
59
+ FontWeights,
60
+ OfficePalette,
61
+ Palette,
62
+ PaletteBackgroundColors,
63
+ PaletteTextColors,
64
+ PartialPalette,
65
+ PartialTheme,
66
+ PartialTypography,
67
+ Spacing,
68
+ TextStyling,
69
+ Theme,
70
+ ThemeColorDefinition,
71
+ ThemeOptions,
72
+ Typography,
73
+ Variant,
74
+ VariantValue,
75
+ Variants,
76
+ } from '@fluentui-react-native/theme-types';
16
77
  export { compose } from './compose';
17
- export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose';
78
+ export type {
79
+ ComposableComponent,
80
+ ComposeOptions,
81
+ ComposeType,
82
+ ExtractProps,
83
+ ExtractSlotProps,
84
+ ExtractStatics,
85
+ ExtractTokens,
86
+ UseSlots,
87
+ } from './compose';
18
88
  export { compressible } from './compressible';
19
89
  export { useFluentTheme } from './useFluentTheme';
20
90
  export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
@@ -22,4 +92,4 @@ export { buildProps, buildUseStyling } from './useStyling';
22
92
  export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
23
93
  export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
24
94
  export type { UseTokens, CustomizableComponent } from './useTokens';
25
- //# sourceMappingURL=index.d.ts.map
95
+ //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,6 +1,20 @@
1
1
  export { getMemoCache, getTypedMemoCache, memoize } from '@fluentui-react-native/framework-base';
2
2
  export { mergeProps, mergeStyles } from '@fluentui-react-native/framework-base';
3
- export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
3
+ export {
4
+ backgroundColorTokens,
5
+ borderStyles,
6
+ borderTokens,
7
+ colorTokens,
8
+ fontStyles,
9
+ foregroundColorTokens,
10
+ getPaletteFromTheme,
11
+ layoutStyles,
12
+ layoutTokens,
13
+ shadowStyles,
14
+ shadowTokens,
15
+ textTokens,
16
+ tokenBuilder,
17
+ } from '@fluentui-react-native/tokens';
4
18
  export { useSlot } from '@fluentui-react-native/use-slot';
5
19
  export { renderSlot, stagedComponent, withSlots } from '@fluentui-react-native/framework-base';
6
20
  export { buildUseSlots } from '@fluentui-react-native/use-slots';
@@ -11,4 +25,4 @@ export { compressible } from './compressible';
11
25
  export { useFluentTheme } from './useFluentTheme';
12
26
  export { buildProps, buildUseStyling } from './useStyling';
13
27
  export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
14
- //# sourceMappingURL=index.js.map
28
+ //# 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,9 +1,9 @@
1
1
  import { useFluentTheme } from './useFluentTheme';
2
2
  export const themeHelper = {
3
- useTheme: () => useFluentTheme(),
4
- getComponentInfo: (theme, name) => {
5
- const components = theme.components || {};
6
- return components[name];
7
- },
3
+ useTheme: () => useFluentTheme(),
4
+ getComponentInfo: (theme, name) => {
5
+ const components = theme.components || {};
6
+ return components[name];
7
+ },
8
8
  };
9
- //# sourceMappingURL=themeHelper.js.map
9
+ //# sourceMappingURL=themeHelper.js.map
@@ -1 +1 @@
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"}
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,CAAC;QAChD,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC;QAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAAA,CACzB;CACF,CAAC"}
@@ -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
@@ -6,6 +6,6 @@ import { useTheme } from '@fluentui-react-native/theme-types';
6
6
  * @returns - a valid Theme object
7
7
  */
8
8
  export function useFluentTheme() {
9
- return useTheme() || defaultFluentTheme;
9
+ return useTheme() || defaultFluentTheme;
10
10
  }
11
- //# sourceMappingURL=useFluentTheme.js.map
11
+ //# sourceMappingURL=useFluentTheme.js.map
@@ -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,oCAAoC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,EAAE,IAAI,kBAAkB,CAAC;AAC1C,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,GAAU;IACtC,OAAO,QAAQ,EAAE,IAAI,kBAAkB,CAAC;AAAA,CACzC"}
@@ -4,9 +4,18 @@
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 { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
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';
8
14
  export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
9
- export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
15
+ export declare function buildProps<TProps, TTokens>(
16
+ fn: (tokens: TTokens, theme: Theme) => TProps,
17
+ keys?: (keyof TTokens)[],
18
+ ): BuildProps<TProps, TTokens>;
10
19
  export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
11
20
  export type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
12
21
  export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
@@ -15,5 +24,7 @@ export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBa
15
24
  *
16
25
  * @param options - options which drive behavior for the generated styling hook
17
26
  */
18
- export declare function buildUseStyling<TProps, TSlotProps, TTokens>(options: UseStylingOptions<TProps, TSlotProps, TTokens>): UseStyling<TProps, TSlotProps>;
19
- //# sourceMappingURL=useStyling.d.ts.map
27
+ export declare function buildUseStyling<TProps, TSlotProps, TTokens>(
28
+ options: UseStylingOptions<TProps, TSlotProps, TTokens>,
29
+ ): UseStyling<TProps, TSlotProps>;
30
+ //# sourceMappingURL=useStyling.d.ts.map
package/lib/useStyling.js CHANGED
@@ -1,7 +1,7 @@
1
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
- return buildPropsBase(fn, keys);
4
+ return buildPropsBase(fn, keys);
5
5
  }
6
6
  /**
7
7
  * Construct a useStyling hook which returns styled slot props based on props and tokens defined in options and in the theme
@@ -9,7 +9,7 @@ export function buildProps(fn, keys) {
9
9
  * @param options - options which drive behavior for the generated styling hook
10
10
  */
11
11
  export function buildUseStyling(options) {
12
- // create a cache instance for this use styling implementation
13
- return buildUseStylingBase(options, themeHelper);
12
+ // create a cache instance for this use styling implementation
13
+ return buildUseStylingBase(options, themeHelper);
14
14
  }
15
- //# sourceMappingURL=useStyling.js.map
15
+ //# sourceMappingURL=useStyling.js.map
@@ -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,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":"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,EACK;IAC7B,OAAO,cAAc,CAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAAA,CACzD;AAMD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAuD,EACvB;IAChC,8DAA8D;IAC9D,OAAO,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AAAA,CAClD"}
@@ -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
package/lib/useTokens.js CHANGED
@@ -2,6 +2,6 @@ import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use
2
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
- return buildUseTokensCore(themeHelper.getComponentInfo, ...tokens);
5
+ return buildUseTokensCore(themeHelper.getComponentInfo, ...tokens);
6
6
  }
7
- //# sourceMappingURL=useTokens.js.map
7
+ //# sourceMappingURL=useTokens.js.map
@@ -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,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"}
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,EAAsB;IAC/F,OAAO,kBAAkB,CAAC,WAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,CAAC,CAAC;AAAA,CACpE"}