@fluentui-react-native/framework 0.14.16 → 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.
- package/CHANGELOG.md +44 -0
- package/babel.config.js +1 -1
- package/lib/compose.d.ts +27 -12
- package/lib/compose.js +2 -2
- package/lib/compose.js.map +1 -1
- package/lib/compressible.d.ts +5 -2
- package/lib/compressible.js +8 -8
- package/lib/compressible.js.map +1 -1
- package/lib/compressible.test.d.ts +1 -1
- package/lib/compressible.test.js +67 -59
- package/lib/compressible.test.js.map +1 -1
- package/lib/index.d.ts +76 -6
- package/lib/index.js +16 -2
- package/lib/themeHelper.d.ts +1 -1
- package/lib/themeHelper.js +6 -6
- package/lib/themeHelper.js.map +1 -1
- package/lib/useFluentTheme.d.ts +1 -1
- package/lib/useFluentTheme.js +2 -2
- package/lib/useFluentTheme.js.map +1 -1
- package/lib/useStyling.d.ts +15 -4
- package/lib/useStyling.js +4 -4
- package/lib/useStyling.js.map +1 -1
- package/lib/useTokens.d.ts +1 -1
- package/lib/useTokens.js +2 -2
- package/lib/useTokens.js.map +1 -1
- package/lib-commonjs/compose.d.ts +27 -12
- package/lib-commonjs/compose.js +7 -8
- package/lib-commonjs/compose.js.map +1 -1
- package/lib-commonjs/compressible.d.ts +5 -2
- package/lib-commonjs/compressible.js +12 -13
- package/lib-commonjs/compressible.js.map +1 -1
- package/lib-commonjs/compressible.test.d.ts +1 -1
- package/lib-commonjs/compressible.test.js +134 -91
- package/lib-commonjs/compressible.test.js.map +1 -1
- package/lib-commonjs/index.d.ts +76 -6
- package/lib-commonjs/index.js +283 -55
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/themeHelper.d.ts +1 -1
- package/lib-commonjs/themeHelper.js +9 -9
- package/lib-commonjs/themeHelper.js.map +1 -1
- package/lib-commonjs/useFluentTheme.d.ts +1 -1
- package/lib-commonjs/useFluentTheme.js +7 -8
- package/lib-commonjs/useFluentTheme.js.map +1 -1
- package/lib-commonjs/useStyling.d.ts +15 -4
- package/lib-commonjs/useStyling.js +10 -11
- package/lib-commonjs/useStyling.js.map +1 -1
- package/lib-commonjs/useTokens.d.ts +1 -1
- package/lib-commonjs/useTokens.js +33 -13
- package/lib-commonjs/useTokens.js.map +1 -1
- package/package.json +68 -66
- 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
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
16
|
+
props: TProps;
|
|
17
17
|
};
|
|
18
18
|
type SlotPropsFragment<TSlotProps> = {
|
|
19
|
-
|
|
19
|
+
slotProps: TSlotProps;
|
|
20
20
|
};
|
|
21
21
|
type TokensFragment<TTokens> = {
|
|
22
|
-
|
|
22
|
+
tokens: TTokens;
|
|
23
23
|
};
|
|
24
24
|
type StaticsFragment<TStatics extends ObjectBase> = {
|
|
25
|
-
|
|
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<
|
|
33
|
-
|
|
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>(
|
|
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
|
-
|
|
4
|
+
return composeFactory(options, themeHelper, base);
|
|
5
5
|
}
|
|
6
|
-
//# sourceMappingURL=compose.js.map
|
|
6
|
+
//# sourceMappingURL=compose.js.map
|
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,eAAe,CAAC;AA8C5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG;
|
|
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"}
|
package/lib/compressible.d.ts
CHANGED
|
@@ -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>(
|
|
13
|
-
|
|
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
|
package/lib/compressible.js
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
package/lib/compressible.js.map
CHANGED
|
@@ -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;
|
|
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
|
package/lib/compressible.test.js
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
44
|
-
|
|
44
|
+
headerVariant: 'header',
|
|
45
|
+
captionVariant: 'caption',
|
|
45
46
|
});
|
|
46
47
|
const Label = compressible((props, useTokens) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":"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"}
|
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 {
|
|
6
|
-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
package/lib/themeHelper.d.ts
CHANGED
|
@@ -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
|
package/lib/themeHelper.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useFluentTheme } from './useFluentTheme';
|
|
2
2
|
export const themeHelper = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
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,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;
|
|
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"}
|
package/lib/useFluentTheme.d.ts
CHANGED
package/lib/useFluentTheme.js
CHANGED
|
@@ -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
|
-
|
|
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;
|
|
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"}
|
package/lib/useStyling.d.ts
CHANGED
|
@@ -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 {
|
|
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>(
|
|
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>(
|
|
19
|
-
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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
|
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,eAAe,CAAC;AAI5C,MAAM,UAAU,UAAU,CACxB,EAA6C,EAC7C,IAAwB;
|
|
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"}
|
package/lib/useTokens.d.ts
CHANGED
|
@@ -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
|
-
|
|
5
|
+
return buildUseTokensCore(themeHelper.getComponentInfo, ...tokens);
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=useTokens.js.map
|
|
7
|
+
//# sourceMappingURL=useTokens.js.map
|
package/lib/useTokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":"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;
|
|
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"}
|