@fluentui/react-text 9.0.0-rc.5 → 9.0.0-rc.8
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 +128 -1
- package/CHANGELOG.md +87 -51
- package/dist/{react-text.d.ts → index.d.ts} +51 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/components/Body/Body.js +12 -5
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.js +12 -5
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.js +12 -5
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.js +12 -5
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +12 -5
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.js +12 -5
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +8 -1
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.js +12 -5
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +12 -5
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +12 -5
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/index.js +11 -10
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Body/Body.js +21 -5
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.js +21 -5
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +21 -5
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.js +21 -5
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +21 -5
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js +21 -5
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +9 -2
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +21 -5
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +21 -5
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +21 -5
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/index.js +219 -11
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -19
- package/lib/Body.d.ts +0 -1
- package/lib/Caption.d.ts +0 -1
- package/lib/Display.d.ts +0 -1
- package/lib/Headline.d.ts +0 -1
- package/lib/LargeTitle.d.ts +0 -1
- package/lib/Subheadline.d.ts +0 -1
- package/lib/Text.d.ts +0 -1
- package/lib/Title1.d.ts +0 -1
- package/lib/Title2.d.ts +0 -1
- package/lib/Title3.d.ts +0 -1
- package/lib/components/Body/Body.d.ts +0 -7
- package/lib/components/Body/index.d.ts +0 -1
- package/lib/components/Caption/Caption.d.ts +0 -7
- package/lib/components/Caption/index.d.ts +0 -1
- package/lib/components/Display/Display.d.ts +0 -7
- package/lib/components/Display/index.d.ts +0 -1
- package/lib/components/Headline/Headline.d.ts +0 -7
- package/lib/components/Headline/index.d.ts +0 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +0 -7
- package/lib/components/LargeTitle/index.d.ts +0 -1
- package/lib/components/Subheadline/Subheadline.d.ts +0 -7
- package/lib/components/Subheadline/index.d.ts +0 -1
- package/lib/components/Text/Text.d.ts +0 -6
- package/lib/components/Text/Text.types.d.ts +0 -78
- package/lib/components/Text/index.d.ts +0 -5
- package/lib/components/Text/renderText.d.ts +0 -5
- package/lib/components/Text/useText.d.ts +0 -12
- package/lib/components/Text/useTextStyles.d.ts +0 -6
- package/lib/components/Title1/Title1.d.ts +0 -7
- package/lib/components/Title1/index.d.ts +0 -1
- package/lib/components/Title2/Title2.d.ts +0 -7
- package/lib/components/Title2/index.d.ts +0 -1
- package/lib/components/Title3/Title3.d.ts +0 -7
- package/lib/components/Title3/index.d.ts +0 -1
- package/lib/components/wrapper.d.ts +0 -8
- package/lib/index.d.ts +0 -10
- package/lib/typographyStyles/index.d.ts +0 -2
- package/lib/typographyStyles/index.js +0 -3
- package/lib/typographyStyles/index.js.map +0 -1
- package/lib/typographyStyles/typographyStyles.d.ts +0 -13
- package/lib/typographyStyles/typographyStyles.js +0 -60
- package/lib/typographyStyles/typographyStyles.js.map +0 -1
- package/lib-commonjs/Body.d.ts +0 -1
- package/lib-commonjs/Caption.d.ts +0 -1
- package/lib-commonjs/Display.d.ts +0 -1
- package/lib-commonjs/Headline.d.ts +0 -1
- package/lib-commonjs/LargeTitle.d.ts +0 -1
- package/lib-commonjs/Subheadline.d.ts +0 -1
- package/lib-commonjs/Text.d.ts +0 -1
- package/lib-commonjs/Title1.d.ts +0 -1
- package/lib-commonjs/Title2.d.ts +0 -1
- package/lib-commonjs/Title3.d.ts +0 -1
- package/lib-commonjs/components/Body/Body.d.ts +0 -7
- package/lib-commonjs/components/Body/index.d.ts +0 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +0 -7
- package/lib-commonjs/components/Caption/index.d.ts +0 -1
- package/lib-commonjs/components/Display/Display.d.ts +0 -7
- package/lib-commonjs/components/Display/index.d.ts +0 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +0 -7
- package/lib-commonjs/components/Headline/index.d.ts +0 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -7
- package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -7
- package/lib-commonjs/components/Subheadline/index.d.ts +0 -1
- package/lib-commonjs/components/Text/Text.d.ts +0 -6
- package/lib-commonjs/components/Text/Text.types.d.ts +0 -78
- package/lib-commonjs/components/Text/index.d.ts +0 -5
- package/lib-commonjs/components/Text/renderText.d.ts +0 -5
- package/lib-commonjs/components/Text/useText.d.ts +0 -12
- package/lib-commonjs/components/Text/useTextStyles.d.ts +0 -6
- package/lib-commonjs/components/Title1/Title1.d.ts +0 -7
- package/lib-commonjs/components/Title1/index.d.ts +0 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +0 -7
- package/lib-commonjs/components/Title2/index.d.ts +0 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +0 -7
- package/lib-commonjs/components/Title3/index.d.ts +0 -1
- package/lib-commonjs/components/wrapper.d.ts +0 -8
- package/lib-commonjs/index.d.ts +0 -10
- package/lib-commonjs/typographyStyles/index.d.ts +0 -2
- package/lib-commonjs/typographyStyles/index.js +0 -11
- package/lib-commonjs/typographyStyles/index.js.map +0 -1
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +0 -13
- package/lib-commonjs/typographyStyles/typographyStyles.js +0 -68
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title2ClassNames.root` instead.\n */\nexport const title2ClassName = 'fui-Title2';\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
|
@@ -3,20 +3,36 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Title3 = exports.title3ClassName = void 0;
|
6
|
+
exports.Title3 = exports.title3ClassNames = exports.title3ClassName = void 0;
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
11
|
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
+
/**
|
14
|
+
* @deprecated Use `title3ClassNames.root` instead.
|
15
|
+
*/
|
16
|
+
|
17
|
+
|
14
18
|
exports.title3ClassName = 'fui-Title3';
|
19
|
+
exports.title3ClassNames = {
|
20
|
+
root: 'fui-Title3'
|
21
|
+
};
|
15
22
|
/**
|
16
23
|
* Styles for the root slot
|
17
24
|
*/
|
18
25
|
|
19
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "f1x0m3f5",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "fb86gi6"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
|
35
|
+
});
|
20
36
|
/**
|
21
37
|
* Text wrapper component for the Title 3 typography variant
|
22
38
|
*/
|
@@ -24,7 +40,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
|
24
40
|
|
25
41
|
exports.Title3 = /*#__PURE__*/wrapper_1.createWrapper({
|
26
42
|
useStyles,
|
27
|
-
className: exports.
|
43
|
+
className: exports.title3ClassNames.root,
|
28
44
|
displayName: 'Title3'
|
29
45
|
});
|
30
46
|
//# sourceMappingURL=Title3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title3ClassNames.root` instead.\n */\nexport const title3ClassName = 'fui-Title3';\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
|
package/lib-commonjs/index.js
CHANGED
@@ -3,26 +3,234 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.captionClassNames = exports.captionClassName = exports.Caption = exports.bodyClassNames = exports.bodyClassName = exports.Body = exports.subheadlineClassNames = exports.subheadlineClassName = exports.Subheadline = exports.headlineClassNames = exports.headlineClassName = exports.Headline = exports.title3ClassNames = exports.title3ClassName = exports.Title3 = exports.title2ClassNames = exports.title2ClassName = exports.Title2 = exports.title1ClassNames = exports.title1ClassName = exports.Title1 = exports.largeTitleClassNames = exports.largeTitleClassName = exports.LargeTitle = exports.displayClassNames = exports.displayClassName = exports.Display = exports.useText_unstable = exports.useTextStyles_unstable = exports.textClassNames = exports.textClassName = exports.renderText_unstable = exports.Text = void 0;
|
7
|
+
/* eslint-disable deprecation/deprecation -- https://github.com/microsoft/fluentui/pull/21960#issuecomment-1068991851 */
|
6
8
|
|
7
|
-
|
9
|
+
var Text_1 = /*#__PURE__*/require("./Text");
|
8
10
|
|
9
|
-
|
11
|
+
Object.defineProperty(exports, "Text", {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () {
|
14
|
+
return Text_1.Text;
|
15
|
+
}
|
16
|
+
});
|
17
|
+
Object.defineProperty(exports, "renderText_unstable", {
|
18
|
+
enumerable: true,
|
19
|
+
get: function () {
|
20
|
+
return Text_1.renderText_unstable;
|
21
|
+
}
|
22
|
+
});
|
23
|
+
Object.defineProperty(exports, "textClassName", {
|
24
|
+
enumerable: true,
|
25
|
+
get: function () {
|
26
|
+
return Text_1.textClassName;
|
27
|
+
}
|
28
|
+
});
|
29
|
+
Object.defineProperty(exports, "textClassNames", {
|
30
|
+
enumerable: true,
|
31
|
+
get: function () {
|
32
|
+
return Text_1.textClassNames;
|
33
|
+
}
|
34
|
+
});
|
35
|
+
Object.defineProperty(exports, "useTextStyles_unstable", {
|
36
|
+
enumerable: true,
|
37
|
+
get: function () {
|
38
|
+
return Text_1.useTextStyles_unstable;
|
39
|
+
}
|
40
|
+
});
|
41
|
+
Object.defineProperty(exports, "useText_unstable", {
|
42
|
+
enumerable: true,
|
43
|
+
get: function () {
|
44
|
+
return Text_1.useText_unstable;
|
45
|
+
}
|
46
|
+
});
|
47
|
+
|
48
|
+
var Display_1 = /*#__PURE__*/require("./Display");
|
49
|
+
|
50
|
+
Object.defineProperty(exports, "Display", {
|
51
|
+
enumerable: true,
|
52
|
+
get: function () {
|
53
|
+
return Display_1.Display;
|
54
|
+
}
|
55
|
+
});
|
56
|
+
Object.defineProperty(exports, "displayClassName", {
|
57
|
+
enumerable: true,
|
58
|
+
get: function () {
|
59
|
+
return Display_1.displayClassName;
|
60
|
+
}
|
61
|
+
});
|
62
|
+
Object.defineProperty(exports, "displayClassNames", {
|
63
|
+
enumerable: true,
|
64
|
+
get: function () {
|
65
|
+
return Display_1.displayClassNames;
|
66
|
+
}
|
67
|
+
});
|
68
|
+
|
69
|
+
var LargeTitle_1 = /*#__PURE__*/require("./LargeTitle");
|
70
|
+
|
71
|
+
Object.defineProperty(exports, "LargeTitle", {
|
72
|
+
enumerable: true,
|
73
|
+
get: function () {
|
74
|
+
return LargeTitle_1.LargeTitle;
|
75
|
+
}
|
76
|
+
});
|
77
|
+
Object.defineProperty(exports, "largeTitleClassName", {
|
78
|
+
enumerable: true,
|
79
|
+
get: function () {
|
80
|
+
return LargeTitle_1.largeTitleClassName;
|
81
|
+
}
|
82
|
+
});
|
83
|
+
Object.defineProperty(exports, "largeTitleClassNames", {
|
84
|
+
enumerable: true,
|
85
|
+
get: function () {
|
86
|
+
return LargeTitle_1.largeTitleClassNames;
|
87
|
+
}
|
88
|
+
});
|
89
|
+
|
90
|
+
var Title1_1 = /*#__PURE__*/require("./Title1");
|
91
|
+
|
92
|
+
Object.defineProperty(exports, "Title1", {
|
93
|
+
enumerable: true,
|
94
|
+
get: function () {
|
95
|
+
return Title1_1.Title1;
|
96
|
+
}
|
97
|
+
});
|
98
|
+
Object.defineProperty(exports, "title1ClassName", {
|
99
|
+
enumerable: true,
|
100
|
+
get: function () {
|
101
|
+
return Title1_1.title1ClassName;
|
102
|
+
}
|
103
|
+
});
|
104
|
+
Object.defineProperty(exports, "title1ClassNames", {
|
105
|
+
enumerable: true,
|
106
|
+
get: function () {
|
107
|
+
return Title1_1.title1ClassNames;
|
108
|
+
}
|
109
|
+
});
|
10
110
|
|
11
|
-
|
111
|
+
var Title2_1 = /*#__PURE__*/require("./Title2");
|
12
112
|
|
13
|
-
|
113
|
+
Object.defineProperty(exports, "Title2", {
|
114
|
+
enumerable: true,
|
115
|
+
get: function () {
|
116
|
+
return Title2_1.Title2;
|
117
|
+
}
|
118
|
+
});
|
119
|
+
Object.defineProperty(exports, "title2ClassName", {
|
120
|
+
enumerable: true,
|
121
|
+
get: function () {
|
122
|
+
return Title2_1.title2ClassName;
|
123
|
+
}
|
124
|
+
});
|
125
|
+
Object.defineProperty(exports, "title2ClassNames", {
|
126
|
+
enumerable: true,
|
127
|
+
get: function () {
|
128
|
+
return Title2_1.title2ClassNames;
|
129
|
+
}
|
130
|
+
});
|
14
131
|
|
15
|
-
|
132
|
+
var Title3_1 = /*#__PURE__*/require("./Title3");
|
16
133
|
|
17
|
-
|
134
|
+
Object.defineProperty(exports, "Title3", {
|
135
|
+
enumerable: true,
|
136
|
+
get: function () {
|
137
|
+
return Title3_1.Title3;
|
138
|
+
}
|
139
|
+
});
|
140
|
+
Object.defineProperty(exports, "title3ClassName", {
|
141
|
+
enumerable: true,
|
142
|
+
get: function () {
|
143
|
+
return Title3_1.title3ClassName;
|
144
|
+
}
|
145
|
+
});
|
146
|
+
Object.defineProperty(exports, "title3ClassNames", {
|
147
|
+
enumerable: true,
|
148
|
+
get: function () {
|
149
|
+
return Title3_1.title3ClassNames;
|
150
|
+
}
|
151
|
+
});
|
18
152
|
|
19
|
-
|
153
|
+
var Headline_1 = /*#__PURE__*/require("./Headline");
|
20
154
|
|
21
|
-
|
155
|
+
Object.defineProperty(exports, "Headline", {
|
156
|
+
enumerable: true,
|
157
|
+
get: function () {
|
158
|
+
return Headline_1.Headline;
|
159
|
+
}
|
160
|
+
});
|
161
|
+
Object.defineProperty(exports, "headlineClassName", {
|
162
|
+
enumerable: true,
|
163
|
+
get: function () {
|
164
|
+
return Headline_1.headlineClassName;
|
165
|
+
}
|
166
|
+
});
|
167
|
+
Object.defineProperty(exports, "headlineClassNames", {
|
168
|
+
enumerable: true,
|
169
|
+
get: function () {
|
170
|
+
return Headline_1.headlineClassNames;
|
171
|
+
}
|
172
|
+
});
|
22
173
|
|
23
|
-
|
174
|
+
var Subheadline_1 = /*#__PURE__*/require("./Subheadline");
|
24
175
|
|
25
|
-
|
176
|
+
Object.defineProperty(exports, "Subheadline", {
|
177
|
+
enumerable: true,
|
178
|
+
get: function () {
|
179
|
+
return Subheadline_1.Subheadline;
|
180
|
+
}
|
181
|
+
});
|
182
|
+
Object.defineProperty(exports, "subheadlineClassName", {
|
183
|
+
enumerable: true,
|
184
|
+
get: function () {
|
185
|
+
return Subheadline_1.subheadlineClassName;
|
186
|
+
}
|
187
|
+
});
|
188
|
+
Object.defineProperty(exports, "subheadlineClassNames", {
|
189
|
+
enumerable: true,
|
190
|
+
get: function () {
|
191
|
+
return Subheadline_1.subheadlineClassNames;
|
192
|
+
}
|
193
|
+
});
|
194
|
+
|
195
|
+
var Body_1 = /*#__PURE__*/require("./Body");
|
196
|
+
|
197
|
+
Object.defineProperty(exports, "Body", {
|
198
|
+
enumerable: true,
|
199
|
+
get: function () {
|
200
|
+
return Body_1.Body;
|
201
|
+
}
|
202
|
+
});
|
203
|
+
Object.defineProperty(exports, "bodyClassName", {
|
204
|
+
enumerable: true,
|
205
|
+
get: function () {
|
206
|
+
return Body_1.bodyClassName;
|
207
|
+
}
|
208
|
+
});
|
209
|
+
Object.defineProperty(exports, "bodyClassNames", {
|
210
|
+
enumerable: true,
|
211
|
+
get: function () {
|
212
|
+
return Body_1.bodyClassNames;
|
213
|
+
}
|
214
|
+
});
|
215
|
+
|
216
|
+
var Caption_1 = /*#__PURE__*/require("./Caption");
|
26
217
|
|
27
|
-
|
218
|
+
Object.defineProperty(exports, "Caption", {
|
219
|
+
enumerable: true,
|
220
|
+
get: function () {
|
221
|
+
return Caption_1.Caption;
|
222
|
+
}
|
223
|
+
});
|
224
|
+
Object.defineProperty(exports, "captionClassName", {
|
225
|
+
enumerable: true,
|
226
|
+
get: function () {
|
227
|
+
return Caption_1.captionClassName;
|
228
|
+
}
|
229
|
+
});
|
230
|
+
Object.defineProperty(exports, "captionClassNames", {
|
231
|
+
enumerable: true,
|
232
|
+
get: function () {
|
233
|
+
return Caption_1.captionClassNames;
|
234
|
+
}
|
235
|
+
});
|
28
236
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AACA,IAAA,MAAA,gBAAA,OAAA,CAAA,QAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,MAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,IAAA;AAAI;AAAJ,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,aAAA;AAAa;AAAb,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,gBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,cAAA;AAAc;AAAd,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,wBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,sBAAA;AAAsB;AAAtB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,kBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,gBAAA;AAAgB;AAAhB,CAAA;;AAGF,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ourcesContent":["/* eslint-disable deprecation/deprecation -- https://github.com/microsoft/fluentui/pull/21960#issuecomment-1068991851 */\nexport {\n Text,\n renderText_unstable,\n textClassName,\n textClassNames,\n useTextStyles_unstable,\n useText_unstable,\n} from './Text';\nexport type { TextProps, TextSlots, TextState } from './Text';\nexport { Display, displayClassName, displayClassNames } from './Display';\nexport { LargeTitle, largeTitleClassName, largeTitleClassNames } from './LargeTitle';\nexport { Title1, title1ClassName, title1ClassNames } from './Title1';\nexport { Title2, title2ClassName, title2ClassNames } from './Title2';\nexport { Title3, title3ClassName, title3ClassNames } from './Title3';\nexport { Headline, headlineClassName, headlineClassNames } from './Headline';\nexport { Subheadline, subheadlineClassName, subheadlineClassNames } from './Subheadline';\nexport { Body, bodyClassName, bodyClassNames } from './Body';\nexport { Caption, captionClassName, captionClassNames } from './Caption';\n"],"sourceRoot":"../src/"}
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "9.0.0-rc.
|
3
|
+
"version": "9.0.0-rc.8",
|
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",
|
7
|
-
"typings": "
|
7
|
+
"typings": "dist/index.d.ts",
|
8
8
|
"sideEffects": false,
|
9
9
|
"repository": {
|
10
10
|
"type": "git",
|
@@ -21,30 +21,20 @@
|
|
21
21
|
"start": "yarn storybook",
|
22
22
|
"test": "jest --passWithNoTests",
|
23
23
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
24
|
-
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node
|
25
|
-
"storybook": "node
|
24
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/react-text/src && yarn docs",
|
25
|
+
"storybook": "node ../../../scripts/storybook/runner",
|
26
26
|
"type-check": "tsc -b tsconfig.json"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
30
|
"@fluentui/react-conformance": "*",
|
31
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
32
|
-
"@fluentui/scripts": "^1.0.0"
|
33
|
-
"@types/enzyme": "3.10.3",
|
34
|
-
"@types/enzyme-adapter-react-16": "1.0.3",
|
35
|
-
"@types/react": "16.9.42",
|
36
|
-
"@types/react-dom": "16.9.10",
|
37
|
-
"@types/react-test-renderer": "^16.0.0",
|
38
|
-
"enzyme": "~3.10.0",
|
39
|
-
"enzyme-adapter-react-16": "^1.15.0",
|
40
|
-
"react": "16.8.6",
|
41
|
-
"react-dom": "16.8.6",
|
42
|
-
"react-test-renderer": "^16.3.0"
|
31
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.5",
|
32
|
+
"@fluentui/scripts": "^1.0.0"
|
43
33
|
},
|
44
34
|
"dependencies": {
|
45
|
-
"@griffel/react": "1.0.
|
46
|
-
"@fluentui/react-theme": "9.0.0-rc.
|
47
|
-
"@fluentui/react-utilities": "9.0.0-rc.
|
35
|
+
"@griffel/react": "1.0.3",
|
36
|
+
"@fluentui/react-theme": "9.0.0-rc.7",
|
37
|
+
"@fluentui/react-utilities": "9.0.0-rc.8",
|
48
38
|
"tslib": "^2.1.0"
|
49
39
|
},
|
50
40
|
"peerDependencies": {
|
package/lib/Body.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Body/index';
|
package/lib/Caption.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Caption/index';
|
package/lib/Display.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Display/index';
|
package/lib/Headline.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Headline/index';
|
package/lib/LargeTitle.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/LargeTitle/index';
|
package/lib/Subheadline.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Subheadline/index';
|
package/lib/Text.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Text/index';
|
package/lib/Title1.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title1/index';
|
package/lib/Title2.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title2/index';
|
package/lib/Title3.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title3/index';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const bodyClassName = "fui-Body";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Body typography variant
|
6
|
-
*/
|
7
|
-
export declare const Body: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Body';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const captionClassName = "fui-Caption";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Caption typography variant
|
6
|
-
*/
|
7
|
-
export declare const Caption: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Caption';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const displayClassName = "fui-Display";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Display typography variant
|
6
|
-
*/
|
7
|
-
export declare const Display: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Display';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const headlineClassName = "fui-Headline";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Headline typography variant
|
6
|
-
*/
|
7
|
-
export declare const Headline: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Headline';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const largeTitleClassName = "fui-LargeTitle";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Large Title typography variant
|
6
|
-
*/
|
7
|
-
export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './LargeTitle';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const subheadlineClassName = "fui-Subheadline";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Subheadline typography variant
|
6
|
-
*/
|
7
|
-
export declare const Subheadline: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Subheadline';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { TextProps } from './Text.types';
|
2
|
-
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
3
|
-
/**
|
4
|
-
* Typography and styling abstraction component used to ensure consistency of text.
|
5
|
-
*/
|
6
|
-
export declare const Text: ForwardRefComponent<TextProps>;
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
|
-
/**
|
3
|
-
* Text slots
|
4
|
-
*/
|
5
|
-
export declare type TextSlots = {
|
6
|
-
root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
|
7
|
-
};
|
8
|
-
declare type TextCommons = {
|
9
|
-
/**
|
10
|
-
* Wraps the text content on white spaces.
|
11
|
-
*
|
12
|
-
* @defaultValue true
|
13
|
-
*/
|
14
|
-
wrap: boolean;
|
15
|
-
/**
|
16
|
-
* Truncate overflowing text for block displays.
|
17
|
-
*
|
18
|
-
* @defaultValue false
|
19
|
-
*/
|
20
|
-
truncate: boolean;
|
21
|
-
/**
|
22
|
-
* Applies a block display for the content.
|
23
|
-
*
|
24
|
-
* @defaultValue false
|
25
|
-
*/
|
26
|
-
block: boolean;
|
27
|
-
/**
|
28
|
-
* Applies the italic font style to the content.
|
29
|
-
*
|
30
|
-
* @defaultValue false
|
31
|
-
*/
|
32
|
-
italic: boolean;
|
33
|
-
/**
|
34
|
-
* Applies the underline text decoration to the content.
|
35
|
-
*
|
36
|
-
* @defaultValue false
|
37
|
-
*/
|
38
|
-
underline: boolean;
|
39
|
-
/**
|
40
|
-
* Applies the strikethrough text decoration to the content.
|
41
|
-
*
|
42
|
-
* @defaultValue false
|
43
|
-
*/
|
44
|
-
strikethrough: boolean;
|
45
|
-
/**
|
46
|
-
* Applies font size and line height based on the theme tokens.
|
47
|
-
*
|
48
|
-
* @defaultValue 300
|
49
|
-
*/
|
50
|
-
size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
51
|
-
/**
|
52
|
-
* Applies the font family to the content.
|
53
|
-
*
|
54
|
-
* @defaultValue base
|
55
|
-
*/
|
56
|
-
font: 'base' | 'monospace' | 'numeric';
|
57
|
-
/**
|
58
|
-
* Applies font weight to the content.
|
59
|
-
*
|
60
|
-
* @defaultValue regular
|
61
|
-
*/
|
62
|
-
weight: 'regular' | 'medium' | 'semibold';
|
63
|
-
/**
|
64
|
-
* Aligns text based on the parent container.
|
65
|
-
*
|
66
|
-
* @defaultValue start
|
67
|
-
*/
|
68
|
-
align: 'start' | 'center' | 'end' | 'justify';
|
69
|
-
};
|
70
|
-
/**
|
71
|
-
* Text Props
|
72
|
-
*/
|
73
|
-
export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
|
74
|
-
/**
|
75
|
-
* State used in rendering Text
|
76
|
-
*/
|
77
|
-
export declare type TextState = ComponentState<TextSlots> & TextCommons;
|
78
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { TextProps, TextState } from './Text.types';
|
3
|
-
/**
|
4
|
-
* Create the state required to render Text.
|
5
|
-
*
|
6
|
-
* The returned state can be modified with hooks such as useTextStyles_unstable,
|
7
|
-
* before being passed to renderText_unstable.
|
8
|
-
*
|
9
|
-
* @param props - props from this instance of Text
|
10
|
-
* @param ref - reference to root HTMLElement of Text
|
11
|
-
*/
|
12
|
-
export declare const useText_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const title1ClassName = "fui-Title1";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Title 1 typography variant
|
6
|
-
*/
|
7
|
-
export declare const Title1: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Title1';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const title2ClassName = "fui-Title2";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Title 2 typography variant
|
6
|
-
*/
|
7
|
-
export declare const Title2: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Title2';
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
export declare const title3ClassName = "fui-Title3";
|
4
|
-
/**
|
5
|
-
* Text wrapper component for the Title 3 typography variant
|
6
|
-
*/
|
7
|
-
export declare const Title3: FunctionComponent<TextWrapperProps>;
|