@fluentui/react-text 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.1
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 +227 -16
- package/CHANGELOG.md +59 -10
- package/MIGRATION.md +153 -103
- package/dist/react-text.d.ts +28 -8
- package/lib/components/Body/Body.d.ts +1 -0
- package/lib/components/Body/Body.js +6 -4
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.d.ts +1 -0
- package/lib/components/Caption/Caption.js +6 -4
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.d.ts +1 -0
- package/lib/components/Display/Display.js +6 -4
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +1 -0
- package/lib/components/Headline/Headline.js +6 -4
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +1 -0
- package/lib/components/LargeTitle/LargeTitle.js +6 -4
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.d.ts +1 -0
- package/lib/components/Subheadline/Subheadline.js +6 -4
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/Text.js +7 -7
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.d.ts +4 -3
- package/lib/components/Text/renderText.d.ts +1 -1
- package/lib/components/Text/renderText.js +7 -7
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.d.ts +3 -3
- package/lib/components/Text/useText.js +22 -21
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +2 -1
- package/lib/components/Text/useTextStyles.js +15 -11
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +1 -0
- package/lib/components/Title1/Title1.js +6 -4
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.d.ts +1 -0
- package/lib/components/Title2/Title2.js +6 -4
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.d.ts +1 -0
- package/lib/components/Title3/Title3.js +6 -4
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/wrapper.d.ts +1 -0
- package/lib/components/wrapper.js +13 -10
- package/lib/components/wrapper.js.map +1 -1
- package/lib/typographyStyles/typographyStyles.d.ts +10 -11
- package/lib/typographyStyles/typographyStyles.js +55 -71
- package/lib/typographyStyles/typographyStyles.js.map +1 -1
- package/lib-commonjs/Body.js +1 -1
- package/lib-commonjs/Caption.js +1 -1
- package/lib-commonjs/Display.js +1 -1
- package/lib-commonjs/Headline.js +1 -1
- package/lib-commonjs/LargeTitle.js +1 -1
- package/lib-commonjs/Subheadline.js +1 -1
- package/lib-commonjs/Text.js +1 -1
- package/lib-commonjs/Title1.js +1 -1
- package/lib-commonjs/Title2.js +1 -1
- package/lib-commonjs/Title3.js +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +1 -0
- package/lib-commonjs/components/Body/Body.js +9 -9
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Body/index.js +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +1 -0
- package/lib-commonjs/components/Caption/Caption.js +9 -9
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Caption/index.js +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +1 -0
- package/lib-commonjs/components/Display/Display.js +9 -9
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +1 -0
- package/lib-commonjs/components/Headline/Headline.js +9 -9
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/Headline/index.js +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +1 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -9
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +1 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +9 -9
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Subheadline/index.js +1 -1
- package/lib-commonjs/components/Text/Text.js +8 -8
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.d.ts +4 -3
- package/lib-commonjs/components/Text/index.js +1 -1
- package/lib-commonjs/components/Text/renderText.d.ts +1 -1
- package/lib-commonjs/components/Text/renderText.js +11 -12
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.d.ts +3 -3
- package/lib-commonjs/components/Text/useText.js +25 -25
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +2 -1
- package/lib-commonjs/components/Text/useTextStyles.js +19 -14
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.d.ts +1 -0
- package/lib-commonjs/components/Title1/Title1.js +9 -9
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +1 -0
- package/lib-commonjs/components/Title2/Title2.js +9 -9
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +1 -0
- package/lib-commonjs/components/Title3/Title3.js +9 -9
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js +1 -1
- package/lib-commonjs/components/wrapper.d.ts +1 -0
- package/lib-commonjs/components/wrapper.js +14 -11
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/typographyStyles/index.js +1 -1
- package/lib-commonjs/typographyStyles/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +10 -11
- package/lib-commonjs/typographyStyles/typographyStyles.js +48 -89
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
- package/package.json +8 -10
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -16
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -27
- package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -5,21 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.createWrapper = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
|
-
|
10
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
11
11
|
|
12
|
-
|
12
|
+
const Text_1 = /*#__PURE__*/require("../Text");
|
13
13
|
|
14
14
|
function createWrapper(options) {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
15
|
+
const {
|
16
|
+
useStyles,
|
17
|
+
className,
|
18
|
+
displayName
|
19
|
+
} = options;
|
20
|
+
const Wrapper = React.forwardRef((props, ref) => {
|
21
|
+
const styles = useStyles();
|
22
|
+
const state = Text_1.useText_unstable(props, ref);
|
23
|
+
Text_1.useTextStyles_unstable(state);
|
24
|
+
state.root.className = react_1.mergeClasses(className, state.root.className, styles.root, props.className);
|
25
|
+
return Text_1.renderText_unstable(state);
|
23
26
|
});
|
24
27
|
Wrapper.displayName = displayName;
|
25
28
|
return Wrapper;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":";;;;;;;AAAA,
|
1
|
+
{"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,MAAA,gBAAA,OAAA,CAAA,SAAA,CAAA;;AAMA,SAAgB,aAAhB,CAA8B,OAA9B,EAIC;AACC,QAAM;AAAE,IAAA,SAAF;AAAa,IAAA,SAAb;AAAwB,IAAA;AAAxB,MAAwC,OAA9C;AACA,QAAM,OAAO,GAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACrF,UAAM,MAAM,GAAG,SAAS,EAAxB;AACA,UAAM,KAAK,GAAG,MAAA,CAAA,gBAAA,CAAiB,KAAjB,EAAqC,GAArC,CAAd;AAEA,IAAA,MAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,SAAb,EAAwB,KAAK,CAAC,IAAN,CAAW,SAAnC,EAA8C,MAAM,CAAC,IAArD,EAA2D,KAAK,CAAC,SAAjE,CAAvB;AAEA,WAAO,MAAA,CAAA,mBAAA,CAAoB,KAApB,CAAP;AACD,GATsD,CAAvD;AAUA,EAAA,OAAO,CAAC,WAAR,GAAsB,WAAtB;AAEA,SAAO,OAAP;AACD;;AAnBD,OAAA,CAAA,aAAA,GAAA,aAAA","sourceRoot":""}
|
package/lib-commonjs/index.js
CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.typographyStyles = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const typographyStyles = /*#__PURE__*/require("./typographyStyles");
|
9
9
|
|
10
10
|
exports.typographyStyles = typographyStyles;
|
11
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/typographyStyles/index.ts"],"names":[],"mappings":";;;;;;;AAAA,
|
1
|
+
{"version":3,"sources":["../../src/typographyStyles/index.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,gBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACS,OAAA,CAAA,gBAAA,GAAA,gBAAA","sourceRoot":""}
|
@@ -1,14 +1,13 @@
|
|
1
|
-
import type {
|
2
|
-
import type { Theme } from '@fluentui/react-theme';
|
1
|
+
import type { GriffelStyle } from '@griffel/react';
|
3
2
|
/**
|
4
3
|
* Make-styles rules for the typography variants
|
5
4
|
*/
|
6
|
-
export declare const caption:
|
7
|
-
export declare const body:
|
8
|
-
export declare const subheadline:
|
9
|
-
export declare const headline:
|
10
|
-
export declare const title3:
|
11
|
-
export declare const title2:
|
12
|
-
export declare const title1:
|
13
|
-
export declare const largeTitle:
|
14
|
-
export declare const display:
|
5
|
+
export declare const caption: GriffelStyle;
|
6
|
+
export declare const body: GriffelStyle;
|
7
|
+
export declare const subheadline: GriffelStyle;
|
8
|
+
export declare const headline: GriffelStyle;
|
9
|
+
export declare const title3: GriffelStyle;
|
10
|
+
export declare const title2: GriffelStyle;
|
11
|
+
export declare const title1: GriffelStyle;
|
12
|
+
export declare const largeTitle: GriffelStyle;
|
13
|
+
export declare const display: GriffelStyle;
|
@@ -4,106 +4,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.display = exports.largeTitle = exports.title1 = exports.title2 = exports.title3 = exports.headline = exports.subheadline = exports.body = exports.caption = void 0;
|
7
|
+
|
8
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
7
9
|
/**
|
8
10
|
* Make-styles rules for the typography variants
|
9
11
|
*/
|
10
12
|
|
11
|
-
var caption = function (theme) {
|
12
|
-
return {
|
13
|
-
fontFamily: theme.fontFamilyBase,
|
14
|
-
fontSize: theme.fontSizeBase200,
|
15
|
-
lineHeight: theme.lineHeightBase200,
|
16
|
-
fontWeight: theme.fontWeightRegular
|
17
|
-
};
|
18
|
-
};
|
19
|
-
|
20
|
-
exports.caption = caption;
|
21
13
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
fontWeight: theme.fontWeightRegular
|
28
|
-
};
|
14
|
+
exports.caption = {
|
15
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
16
|
+
fontSize: react_theme_1.tokens.fontSizeBase200,
|
17
|
+
lineHeight: react_theme_1.tokens.lineHeightBase200,
|
18
|
+
fontWeight: react_theme_1.tokens.fontWeightRegular
|
29
19
|
};
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
fontFamily: theme.fontFamilyBase,
|
36
|
-
fontSize: theme.fontSizeBase400,
|
37
|
-
lineHeight: theme.lineHeightBase400,
|
38
|
-
fontWeight: theme.fontWeightSemibold
|
39
|
-
};
|
20
|
+
exports.body = {
|
21
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
22
|
+
fontSize: react_theme_1.tokens.fontSizeBase300,
|
23
|
+
lineHeight: react_theme_1.tokens.lineHeightBase300,
|
24
|
+
fontWeight: react_theme_1.tokens.fontWeightRegular
|
40
25
|
};
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
fontFamily: theme.fontFamilyBase,
|
47
|
-
fontSize: theme.fontSizeBase500,
|
48
|
-
lineHeight: theme.lineHeightBase500,
|
49
|
-
fontWeight: theme.fontWeightSemibold
|
50
|
-
};
|
26
|
+
exports.subheadline = {
|
27
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
28
|
+
fontSize: react_theme_1.tokens.fontSizeBase400,
|
29
|
+
lineHeight: react_theme_1.tokens.lineHeightBase400,
|
30
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
51
31
|
};
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
fontFamily: theme.fontFamilyBase,
|
58
|
-
fontSize: theme.fontSizeBase600,
|
59
|
-
lineHeight: theme.lineHeightBase600,
|
60
|
-
fontWeight: theme.fontWeightSemibold
|
61
|
-
};
|
32
|
+
exports.headline = {
|
33
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
34
|
+
fontSize: react_theme_1.tokens.fontSizeBase500,
|
35
|
+
lineHeight: react_theme_1.tokens.lineHeightBase500,
|
36
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
62
37
|
};
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
fontFamily: theme.fontFamilyBase,
|
69
|
-
fontSize: theme.fontSizeHero700,
|
70
|
-
lineHeight: theme.lineHeightHero700,
|
71
|
-
fontWeight: theme.fontWeightSemibold
|
72
|
-
};
|
38
|
+
exports.title3 = {
|
39
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
40
|
+
fontSize: react_theme_1.tokens.fontSizeBase600,
|
41
|
+
lineHeight: react_theme_1.tokens.lineHeightBase600,
|
42
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
73
43
|
};
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
fontFamily: theme.fontFamilyBase,
|
80
|
-
fontSize: theme.fontSizeHero800,
|
81
|
-
lineHeight: theme.lineHeightHero800,
|
82
|
-
fontWeight: theme.fontWeightSemibold
|
83
|
-
};
|
44
|
+
exports.title2 = {
|
45
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
46
|
+
fontSize: react_theme_1.tokens.fontSizeHero700,
|
47
|
+
lineHeight: react_theme_1.tokens.lineHeightHero700,
|
48
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
84
49
|
};
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
fontFamily: theme.fontFamilyBase,
|
91
|
-
fontSize: theme.fontSizeHero900,
|
92
|
-
lineHeight: theme.lineHeightHero900,
|
93
|
-
fontWeight: theme.fontWeightSemibold
|
94
|
-
};
|
50
|
+
exports.title1 = {
|
51
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
52
|
+
fontSize: react_theme_1.tokens.fontSizeHero800,
|
53
|
+
lineHeight: react_theme_1.tokens.lineHeightHero800,
|
54
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
95
55
|
};
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
56
|
+
exports.largeTitle = {
|
57
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
58
|
+
fontSize: react_theme_1.tokens.fontSizeHero900,
|
59
|
+
lineHeight: react_theme_1.tokens.lineHeightHero900,
|
60
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
61
|
+
};
|
62
|
+
exports.display = {
|
63
|
+
fontFamily: react_theme_1.tokens.fontFamilyBase,
|
64
|
+
fontSize: react_theme_1.tokens.fontSizeHero1000,
|
65
|
+
lineHeight: react_theme_1.tokens.lineHeightHero1000,
|
66
|
+
fontWeight: react_theme_1.tokens.fontWeightSemibold
|
106
67
|
};
|
107
|
-
|
108
|
-
exports.display = display;
|
109
68
|
//# sourceMappingURL=typographyStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/typographyStyles/typographyStyles.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../src/typographyStyles/typographyStyles.ts"],"names":[],"mappings":"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","sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "9.0.0-
|
3
|
+
"version": "9.0.0-rc.1",
|
4
4
|
"description": "Text is a typography and styling abstraction component that can be used to ensure the consistency of all text across your application.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -19,17 +19,16 @@
|
|
19
19
|
"just": "just-scripts",
|
20
20
|
"lint": "just-scripts lint",
|
21
21
|
"start": "yarn storybook",
|
22
|
-
"test": "jest",
|
22
|
+
"test": "jest --passWithNoTests",
|
23
23
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
24
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-text/src && yarn docs",
|
25
|
-
"storybook": "
|
24
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-text/src && yarn docs",
|
25
|
+
"storybook": "node ../../scripts/storybook/runner",
|
26
|
+
"type-check": "tsc -b tsconfig.json"
|
26
27
|
},
|
27
28
|
"devDependencies": {
|
28
|
-
"@fluentui/babel-make-styles": "9.0.0-nightly.f81b28ceb3.1",
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
|
-
"@fluentui/jest-serializer-make-styles": "9.0.0-nightly.f81b28ceb3.1",
|
31
30
|
"@fluentui/react-conformance": "*",
|
32
|
-
"@fluentui/react-conformance-
|
31
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.1",
|
33
32
|
"@fluentui/scripts": "^1.0.0",
|
34
33
|
"@types/enzyme": "3.10.3",
|
35
34
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
@@ -43,8 +42,8 @@
|
|
43
42
|
"react-test-renderer": "^16.3.0"
|
44
43
|
},
|
45
44
|
"dependencies": {
|
46
|
-
"@
|
47
|
-
"@fluentui/react-utilities": "9.0.0-
|
45
|
+
"@griffel/react": "1.0.0",
|
46
|
+
"@fluentui/react-utilities": "9.0.0-rc.1",
|
48
47
|
"tslib": "^2.1.0"
|
49
48
|
},
|
50
49
|
"peerDependencies": {
|
@@ -54,7 +53,6 @@
|
|
54
53
|
"react-dom": ">=16.8.0 <18.0.0"
|
55
54
|
},
|
56
55
|
"beachball": {
|
57
|
-
"tag": "beta",
|
58
56
|
"disallowedChangeTypes": [
|
59
57
|
"major",
|
60
58
|
"minor",
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
|
2
|
-
import makeStylesTests from '@fluentui/react-conformance-make-styles';
|
3
|
-
export function isConformant(testInfo) {
|
4
|
-
var defaultOptions = {
|
5
|
-
asPropHandlesRef: true,
|
6
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
7
|
-
extraTests: makeStylesTests,
|
8
|
-
testOptions: {
|
9
|
-
'make-styles-overrides-win': {
|
10
|
-
callCount: 2
|
11
|
-
}
|
12
|
-
}
|
13
|
-
};
|
14
|
-
baseIsConformant(defaultOptions, testInfo);
|
15
|
-
}
|
16
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,eAH+C;AAI3D,IAAA,WAAW,EAAE;AACX,mCAA6B;AAC3B,QAAA,SAAS,EAAE;AADgB;AADlB;AAJ8C,GAA7D;AAaA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.isConformant = void 0;
|
7
|
-
|
8
|
-
var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
|
9
|
-
|
10
|
-
var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
|
11
|
-
|
12
|
-
function isConformant(testInfo) {
|
13
|
-
var defaultOptions = {
|
14
|
-
asPropHandlesRef: true,
|
15
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
16
|
-
extraTests: react_conformance_make_styles_1.default,
|
17
|
-
testOptions: {
|
18
|
-
'make-styles-overrides-win': {
|
19
|
-
callCount: 2
|
20
|
-
}
|
21
|
-
}
|
22
|
-
};
|
23
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
24
|
-
}
|
25
|
-
|
26
|
-
exports.isConformant = isConformant;
|
27
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA,OAH+C;AAI3D,IAAA,WAAW,EAAE;AACX,mCAA6B;AAC3B,QAAA,SAAS,EAAE;AADgB;AADlB;AAJ8C,GAA7D;AAaA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAjBD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|