@fluentui/react-text 0.0.0-nightlyb8537fb52c20211129.1 → 0.0.0-nightlyb8663b78ad20220207.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 +63 -13
- package/CHANGELOG.md +14 -8
- package/MIGRATION.md +153 -103
- package/dist/react-text.d.ts +7 -7
- package/lib/components/Body/Body.js +1 -1
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.js +1 -1
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.js +1 -1
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +1 -1
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.js +1 -1
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/Text.js +6 -6
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.d.ts +2 -2
- package/lib/components/Text/renderText.d.ts +1 -1
- package/lib/components/Text/renderText.js +3 -2
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.d.ts +3 -3
- package/lib/components/Text/useText.js +3 -3
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +1 -1
- package/lib/components/Text/useTextStyles.js +11 -8
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.js +1 -1
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +1 -1
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +1 -1
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/wrapper.js +5 -5
- package/lib/components/wrapper.js.map +1 -1
- package/lib/typographyStyles/typographyStyles.d.ts +10 -11
- package/lib/typographyStyles/typographyStyles.js +56 -54
- package/lib/typographyStyles/typographyStyles.js.map +1 -1
- package/lib-commonjs/components/Body/Body.js +2 -4
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.js +2 -4
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +2 -4
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.js +2 -4
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +2 -4
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js +2 -4
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +3 -3
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.d.ts +2 -2
- package/lib-commonjs/components/Text/renderText.d.ts +1 -1
- package/lib-commonjs/components/Text/renderText.js +5 -4
- 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 +5 -5
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +16 -12
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +2 -4
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +2 -4
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +2 -4
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/wrapper.js +5 -5
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +10 -11
- package/lib-commonjs/typographyStyles/typographyStyles.js +56 -79
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
- package/package.json +6 -8
@@ -4,88 +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
|
-
const caption = theme => ({
|
12
|
-
fontFamily: theme.fontFamilyBase,
|
13
|
-
fontSize: theme.fontSizeBase200,
|
14
|
-
lineHeight: theme.lineHeightBase200,
|
15
|
-
fontWeight: theme.fontWeightRegular
|
16
|
-
});
|
17
|
-
|
18
|
-
exports.caption = caption;
|
19
|
-
|
20
|
-
const body = theme => ({
|
21
|
-
fontFamily: theme.fontFamilyBase,
|
22
|
-
fontSize: theme.fontSizeBase300,
|
23
|
-
lineHeight: theme.lineHeightBase300,
|
24
|
-
fontWeight: theme.fontWeightRegular
|
25
|
-
});
|
26
|
-
|
27
|
-
exports.body = body;
|
28
|
-
|
29
|
-
const subheadline = theme => ({
|
30
|
-
fontFamily: theme.fontFamilyBase,
|
31
|
-
fontSize: theme.fontSizeBase400,
|
32
|
-
lineHeight: theme.lineHeightBase400,
|
33
|
-
fontWeight: theme.fontWeightSemibold
|
34
|
-
});
|
35
|
-
|
36
|
-
exports.subheadline = subheadline;
|
37
|
-
|
38
|
-
const headline = theme => ({
|
39
|
-
fontFamily: theme.fontFamilyBase,
|
40
|
-
fontSize: theme.fontSizeBase500,
|
41
|
-
lineHeight: theme.lineHeightBase500,
|
42
|
-
fontWeight: theme.fontWeightSemibold
|
43
|
-
});
|
44
|
-
|
45
|
-
exports.headline = headline;
|
46
|
-
|
47
|
-
const title3 = theme => ({
|
48
|
-
fontFamily: theme.fontFamilyBase,
|
49
|
-
fontSize: theme.fontSizeBase600,
|
50
|
-
lineHeight: theme.lineHeightBase600,
|
51
|
-
fontWeight: theme.fontWeightSemibold
|
52
|
-
});
|
53
|
-
|
54
|
-
exports.title3 = title3;
|
55
|
-
|
56
|
-
const title2 = theme => ({
|
57
|
-
fontFamily: theme.fontFamilyBase,
|
58
|
-
fontSize: theme.fontSizeHero700,
|
59
|
-
lineHeight: theme.lineHeightHero700,
|
60
|
-
fontWeight: theme.fontWeightSemibold
|
61
|
-
});
|
62
|
-
|
63
|
-
exports.title2 = title2;
|
64
|
-
|
65
|
-
const title1 = theme => ({
|
66
|
-
fontFamily: theme.fontFamilyBase,
|
67
|
-
fontSize: theme.fontSizeHero800,
|
68
|
-
lineHeight: theme.lineHeightHero800,
|
69
|
-
fontWeight: theme.fontWeightSemibold
|
70
|
-
});
|
71
|
-
|
72
|
-
exports.title1 = title1;
|
73
|
-
|
74
|
-
const largeTitle = theme => ({
|
75
|
-
fontFamily: theme.fontFamilyBase,
|
76
|
-
fontSize: theme.fontSizeHero900,
|
77
|
-
lineHeight: theme.lineHeightHero900,
|
78
|
-
fontWeight: theme.fontWeightSemibold
|
79
|
-
});
|
80
|
-
|
81
|
-
exports.largeTitle = largeTitle;
|
82
|
-
|
83
|
-
const display = theme => ({
|
84
|
-
fontFamily: theme.fontFamilyBase,
|
85
|
-
fontSize: theme.fontSizeHero1000,
|
86
|
-
lineHeight: theme.lineHeightHero1000,
|
87
|
-
fontWeight: theme.fontWeightSemibold
|
88
|
-
});
|
89
13
|
|
90
|
-
exports.
|
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
|
19
|
+
};
|
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
|
25
|
+
};
|
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
|
31
|
+
};
|
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
|
37
|
+
};
|
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
|
43
|
+
};
|
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
|
49
|
+
};
|
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
|
55
|
+
};
|
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
|
67
|
+
};
|
91
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":";;;;;;;AAAA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAGA;;AAEG;;;AACU,OAAA,CAAA,OAAA,GAAwB;AACnC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADgB;AAEnC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eAFkB;AAGnC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,iBAHgB;AAInC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJgB,CAAxB;AAMA,OAAA,CAAA,IAAA,GAAqB;AAChC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADa;AAEhC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eAFe;AAGhC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,iBAHa;AAIhC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJa,CAArB;AAMA,OAAA,CAAA,WAAA,GAA4B;AACvC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADoB;AAEvC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eAFsB;AAGvC,EAAA,UAAU,EAAE,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,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eAFqB;AAGtC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,iBAHmB;AAItC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJmB,CAA3B;AAMA,OAAA,CAAA,OAAA,GAAwB;AACnC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADgB;AAEnC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,gBAFkB;AAGnC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,kBAHgB;AAInC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJgB,CAAxB","sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-nightlyb8663b78ad20220207.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,18 +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
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": "
|
25
|
+
"storybook": "node ../../scripts/storybook/runner",
|
26
26
|
"type-check": "tsc -b tsconfig.json"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
|
-
"@fluentui/babel-make-styles": "0.0.0-nightlyb8537fb52c20211129.1",
|
30
29
|
"@fluentui/eslint-plugin": "*",
|
31
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlyb8537fb52c20211129.1",
|
32
30
|
"@fluentui/react-conformance": "*",
|
33
|
-
"@fluentui/react-conformance-
|
31
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightlyb8663b78ad20220207.1",
|
34
32
|
"@fluentui/scripts": "^1.0.0",
|
35
33
|
"@types/enzyme": "3.10.3",
|
36
34
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
@@ -44,8 +42,8 @@
|
|
44
42
|
"react-test-renderer": "^16.3.0"
|
45
43
|
},
|
46
44
|
"dependencies": {
|
47
|
-
"@
|
48
|
-
"@fluentui/react-utilities": "0.0.0-
|
45
|
+
"@griffel/react": "1.0.0",
|
46
|
+
"@fluentui/react-utilities": "0.0.0-nightlyb8663b78ad20220207.1",
|
49
47
|
"tslib": "^2.1.0"
|
50
48
|
},
|
51
49
|
"peerDependencies": {
|