@fluentui/react-text 9.0.0-rc.8 → 9.0.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 +205 -1
- package/CHANGELOG.md +75 -2
- package/README.md +4 -4
- package/dist/index.d.ts +50 -96
- package/lib/Body1.js +2 -0
- package/lib/Body1.js.map +1 -0
- package/lib/Caption1.js +2 -0
- package/lib/Caption1.js.map +1 -0
- package/lib/Caption2.js +2 -0
- package/lib/Caption2.js.map +1 -0
- package/lib/Subtitle1.js +2 -0
- package/lib/Subtitle1.js.map +1 -0
- package/lib/Subtitle2.js +2 -0
- package/lib/Subtitle2.js.map +1 -0
- package/lib/components/{Body/Body.js → Body1/Body1.js} +7 -12
- package/lib/components/Body1/Body1.js.map +1 -0
- package/lib/components/Body1/index.js +2 -0
- package/lib/components/Body1/index.js.map +1 -0
- package/lib/components/{Caption/Caption.js → Caption1/Caption1.js} +7 -12
- package/lib/components/Caption1/Caption1.js.map +1 -0
- package/lib/components/Caption1/index.js +2 -0
- package/lib/components/Caption1/index.js.map +1 -0
- package/lib/components/Caption2/Caption2.js +31 -0
- package/lib/components/Caption2/Caption2.js.map +1 -0
- package/lib/components/Caption2/index.js +2 -0
- package/lib/components/Caption2/index.js.map +1 -0
- package/lib/components/Display/Display.js +0 -5
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +0 -5
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/{Headline/Headline.js → Subtitle1/Subtitle1.js} +7 -12
- package/lib/components/Subtitle1/Subtitle1.js.map +1 -0
- package/lib/components/Subtitle1/index.js +2 -0
- package/lib/components/Subtitle1/index.js.map +1 -0
- package/lib/components/{Subheadline/Subheadline.js → Subtitle2/Subtitle2.js} +7 -12
- package/lib/components/Subtitle2/Subtitle2.js.map +1 -0
- package/lib/components/Subtitle2/index.js +2 -0
- package/lib/components/Subtitle2/index.js.map +1 -0
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +6 -6
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +0 -5
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.js +0 -5
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +0 -5
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +0 -5
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/wrapper.js.map +1 -1
- package/lib/index.js +11 -11
- package/lib/index.js.map +1 -1
- package/lib-commonjs/{Body.js → Body1.js} +2 -2
- package/lib-commonjs/Body1.js.map +1 -0
- package/lib-commonjs/{Headline.js → Caption1.js} +2 -2
- package/lib-commonjs/Caption1.js.map +1 -0
- package/lib-commonjs/{Caption.js → Caption2.js} +2 -2
- package/lib-commonjs/Caption2.js.map +1 -0
- package/lib-commonjs/Subtitle1.js +10 -0
- package/lib-commonjs/Subtitle1.js.map +1 -0
- package/lib-commonjs/Subtitle2.js +10 -0
- package/lib-commonjs/Subtitle2.js.map +1 -0
- package/lib-commonjs/components/{Body/Body.js → Body1/Body1.js} +8 -13
- package/lib-commonjs/components/Body1/Body1.js.map +1 -0
- package/lib-commonjs/components/{Body → Body1}/index.js +1 -1
- package/lib-commonjs/components/Body1/index.js.map +1 -0
- package/lib-commonjs/components/{Caption/Caption.js → Caption1/Caption1.js} +8 -13
- package/lib-commonjs/components/Caption1/Caption1.js.map +1 -0
- package/lib-commonjs/components/{Caption → Caption1}/index.js +1 -1
- package/lib-commonjs/components/Caption1/index.js.map +1 -0
- package/lib-commonjs/components/Caption2/Caption2.js +41 -0
- package/lib-commonjs/components/Caption2/Caption2.js.map +1 -0
- package/lib-commonjs/components/{Headline → Caption2}/index.js +1 -1
- package/lib-commonjs/components/Caption2/index.js.map +1 -0
- package/lib-commonjs/components/Display/Display.js +1 -6
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +1 -6
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/{Headline/Headline.js → Subtitle1/Subtitle1.js} +8 -13
- package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -0
- package/lib-commonjs/components/{Subheadline → Subtitle1}/index.js +1 -1
- package/lib-commonjs/components/Subtitle1/index.js.map +1 -0
- package/lib-commonjs/components/{Subheadline/Subheadline.js → Subtitle2/Subtitle2.js} +8 -13
- package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -0
- package/lib-commonjs/components/Subtitle2/index.js +10 -0
- package/lib-commonjs/components/Subtitle2/index.js.map +1 -0
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +6 -6
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +1 -6
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +1 -6
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +1 -6
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +1 -6
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +30 -76
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +6 -8
- package/lib/Body.js +0 -2
- package/lib/Body.js.map +0 -1
- package/lib/Caption.js +0 -2
- package/lib/Caption.js.map +0 -1
- package/lib/Headline.js +0 -2
- package/lib/Headline.js.map +0 -1
- package/lib/Subheadline.js +0 -2
- package/lib/Subheadline.js.map +0 -1
- package/lib/components/Body/Body.js.map +0 -1
- package/lib/components/Body/index.js +0 -2
- package/lib/components/Body/index.js.map +0 -1
- package/lib/components/Caption/Caption.js.map +0 -1
- package/lib/components/Caption/index.js +0 -2
- package/lib/components/Caption/index.js.map +0 -1
- package/lib/components/Headline/Headline.js.map +0 -1
- package/lib/components/Headline/index.js +0 -2
- package/lib/components/Headline/index.js.map +0 -1
- package/lib/components/Subheadline/Subheadline.js.map +0 -1
- package/lib/components/Subheadline/index.js +0 -2
- package/lib/components/Subheadline/index.js.map +0 -1
- package/lib-commonjs/Body.js.map +0 -1
- package/lib-commonjs/Caption.js.map +0 -1
- package/lib-commonjs/Headline.js.map +0 -1
- package/lib-commonjs/Subheadline.js +0 -10
- package/lib-commonjs/Subheadline.js.map +0 -1
- package/lib-commonjs/components/Body/Body.js.map +0 -1
- package/lib-commonjs/components/Body/index.js.map +0 -1
- package/lib-commonjs/components/Caption/Caption.js.map +0 -1
- package/lib-commonjs/components/Caption/index.js.map +0 -1
- package/lib-commonjs/components/Headline/Headline.js.map +0 -1
- package/lib-commonjs/components/Headline/index.js.map +0 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +0 -1
- package/lib-commonjs/components/Subheadline/index.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,211 @@
|
|
2
2
|
"name": "@fluentui/react-text",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Tue, 28 Jun 2022 17:37:53 GMT",
|
6
|
+
"tag": "@fluentui/react-text_v9.0.1",
|
7
|
+
"version": "9.0.1",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "lingfangao@hotmail.com",
|
12
|
+
"package": "@fluentui/react-text",
|
13
|
+
"commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b",
|
14
|
+
"comment": "fix: Use caret dependency range for Griffel"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-text",
|
19
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10",
|
20
|
+
"commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"date": "Tue, 28 Jun 2022 15:13:19 GMT",
|
27
|
+
"tag": "@fluentui/react-text_v9.0.0",
|
28
|
+
"version": "9.0.0",
|
29
|
+
"comments": {
|
30
|
+
"prerelease": [
|
31
|
+
{
|
32
|
+
"author": "lingfangao@hotmail.com",
|
33
|
+
"package": "@fluentui/react-text",
|
34
|
+
"commit": "675acea49c97f10837ddee9b8c4350ca27750125",
|
35
|
+
"comment": "Bump Griffel dependencies"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"author": "lingfangao@hotmail.com",
|
39
|
+
"package": "@fluentui/react-text",
|
40
|
+
"commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
|
41
|
+
"comment": "Update 9.0.0-rc dependencies to use caret range"
|
42
|
+
}
|
43
|
+
],
|
44
|
+
"none": [
|
45
|
+
{
|
46
|
+
"author": "mgodbolt@microsoft.com",
|
47
|
+
"package": "@fluentui/react-text",
|
48
|
+
"commit": "36d25e965ca50f24f8f1a1be8deede690ca70b93",
|
49
|
+
"comment": "chore: Convert Text to index based stories"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"patch": [
|
53
|
+
{
|
54
|
+
"author": "lingfangao@hotmail.com",
|
55
|
+
"package": "@fluentui/react-text",
|
56
|
+
"commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
|
57
|
+
"comment": "feat: Initial 9.0.0 release"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"author": "beachball",
|
61
|
+
"package": "@fluentui/react-text",
|
62
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0",
|
63
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"author": "beachball",
|
67
|
+
"package": "@fluentui/react-text",
|
68
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0",
|
69
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"author": "beachball",
|
73
|
+
"package": "@fluentui/react-text",
|
74
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
|
75
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
76
|
+
}
|
77
|
+
]
|
78
|
+
}
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"date": "Thu, 23 Jun 2022 14:25:31 GMT",
|
82
|
+
"tag": "@fluentui/react-text_v9.0.0-rc.12",
|
83
|
+
"version": "9.0.0-rc.12",
|
84
|
+
"comments": {
|
85
|
+
"prerelease": [
|
86
|
+
{
|
87
|
+
"author": "beachball",
|
88
|
+
"package": "@fluentui/react-text",
|
89
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
|
90
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
91
|
+
}
|
92
|
+
]
|
93
|
+
}
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"date": "Tue, 31 May 2022 21:28:49 GMT",
|
97
|
+
"tag": "@fluentui/react-text_v9.0.0-rc.11",
|
98
|
+
"version": "9.0.0-rc.11",
|
99
|
+
"comments": {
|
100
|
+
"prerelease": [
|
101
|
+
{
|
102
|
+
"author": "olfedias@microsoft.com",
|
103
|
+
"package": "@fluentui/react-text",
|
104
|
+
"commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
|
105
|
+
"comment": "chore: Update Griffel to latest version"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"author": "beachball",
|
109
|
+
"package": "@fluentui/react-text",
|
110
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
|
111
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"author": "beachball",
|
115
|
+
"package": "@fluentui/react-text",
|
116
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
|
117
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"date": "Mon, 23 May 2022 18:56:49 GMT",
|
124
|
+
"tag": "@fluentui/react-text_v9.0.0-rc.10",
|
125
|
+
"version": "9.0.0-rc.10",
|
126
|
+
"comments": {
|
127
|
+
"prerelease": [
|
128
|
+
{
|
129
|
+
"author": "39736248+andrefcdias@users.noreply.github.com",
|
130
|
+
"package": "@fluentui/react-text",
|
131
|
+
"commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
|
132
|
+
"comment": "fix: Change typography wrapper component names to match new design spec"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
136
|
+
"package": "@fluentui/react-text",
|
137
|
+
"commit": "9c239eaf77f2f5e3246bb16904d263001a26c726",
|
138
|
+
"comment": "Text: Ordering types alphabetically."
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"author": "beachball",
|
142
|
+
"package": "@fluentui/react-text",
|
143
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
|
144
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"author": "beachball",
|
148
|
+
"package": "@fluentui/react-text",
|
149
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
|
150
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
151
|
+
}
|
152
|
+
]
|
153
|
+
}
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"date": "Mon, 23 May 2022 12:13:52 GMT",
|
157
|
+
"tag": "@fluentui/react-text_v9.0.0-rc.9",
|
158
|
+
"version": "9.0.0-rc.9",
|
159
|
+
"comments": {
|
160
|
+
"prerelease": [
|
161
|
+
{
|
162
|
+
"author": "olfedias@microsoft.com",
|
163
|
+
"package": "@fluentui/react-text",
|
164
|
+
"commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
|
165
|
+
"comment": "chore: Update Griffel to latest version"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
169
|
+
"package": "@fluentui/react-text",
|
170
|
+
"commit": "cab7ae0f9667d278f6e4b3463f4890fe8bf63ca8",
|
171
|
+
"comment": "Removing TextCommons type."
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"author": "olfedias@microsoft.com",
|
175
|
+
"package": "@fluentui/react-text",
|
176
|
+
"commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
|
177
|
+
"comment": "chore: Update Griffel to latest version"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"author": "beachball",
|
181
|
+
"package": "@fluentui/react-text",
|
182
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
|
183
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"author": "beachball",
|
187
|
+
"package": "@fluentui/react-text",
|
188
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
|
189
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"author": "beachball",
|
193
|
+
"package": "@fluentui/react-text",
|
194
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
|
195
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
196
|
+
}
|
197
|
+
],
|
198
|
+
"none": [
|
199
|
+
{
|
200
|
+
"author": "t-emmajiang@microsoft.com",
|
201
|
+
"package": "@fluentui/react-text",
|
202
|
+
"commit": "d1b79b83dbffbc0242d8f463715741efec9bf5dd",
|
203
|
+
"comment": "fixing typo in Text best practices"
|
204
|
+
}
|
205
|
+
]
|
206
|
+
}
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"date": "Thu, 05 May 2022 18:26:30 GMT",
|
6
210
|
"tag": "@fluentui/react-text_v9.0.0-rc.8",
|
7
211
|
"version": "9.0.0-rc.8",
|
8
212
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,85 @@
|
|
1
1
|
# Change Log - @fluentui/react-text
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 28 Jun 2022 17:37:53 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.1)
|
8
|
+
|
9
|
+
Tue, 28 Jun 2022 17:37:53 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0..@fluentui/react-text_v9.0.1)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- fix: Use caret dependency range for Griffel ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by lingfangao@hotmail.com)
|
15
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
|
16
|
+
|
17
|
+
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0)
|
18
|
+
|
19
|
+
Tue, 28 Jun 2022 15:13:19 GMT
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.12..@fluentui/react-text_v9.0.0)
|
21
|
+
|
22
|
+
### Patches
|
23
|
+
|
24
|
+
- feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
|
25
|
+
- Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
26
|
+
- Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
27
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
28
|
+
|
29
|
+
### Changes
|
30
|
+
|
31
|
+
- Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
|
32
|
+
- Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
|
33
|
+
|
34
|
+
## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.12)
|
35
|
+
|
36
|
+
Thu, 23 Jun 2022 14:25:31 GMT
|
37
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.11..@fluentui/react-text_v9.0.0-rc.12)
|
38
|
+
|
39
|
+
### Changes
|
40
|
+
|
41
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
42
|
+
|
43
|
+
## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.11)
|
44
|
+
|
45
|
+
Tue, 31 May 2022 21:28:49 GMT
|
46
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.10..@fluentui/react-text_v9.0.0-rc.11)
|
47
|
+
|
48
|
+
### Changes
|
49
|
+
|
50
|
+
- chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
|
51
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
52
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
53
|
+
|
54
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.10)
|
55
|
+
|
56
|
+
Mon, 23 May 2022 18:56:49 GMT
|
57
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.9..@fluentui/react-text_v9.0.0-rc.10)
|
58
|
+
|
59
|
+
### Changes
|
60
|
+
|
61
|
+
- fix: Change typography wrapper component names to match new design spec ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by 39736248+andrefcdias@users.noreply.github.com)
|
62
|
+
- Text: Ordering types alphabetically. ([PR #23120](https://github.com/microsoft/fluentui/pull/23120) by Humberto.Morimoto@microsoft.com)
|
63
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
64
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
65
|
+
|
66
|
+
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.9)
|
67
|
+
|
68
|
+
Mon, 23 May 2022 12:13:52 GMT
|
69
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.8..@fluentui/react-text_v9.0.0-rc.9)
|
70
|
+
|
71
|
+
### Changes
|
72
|
+
|
73
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
74
|
+
- Removing TextCommons type. ([PR #22971](https://github.com/microsoft/fluentui/pull/22971) by Humberto.Morimoto@microsoft.com)
|
75
|
+
- chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
|
76
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
77
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
78
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
79
|
+
|
7
80
|
## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.8)
|
8
81
|
|
9
|
-
Thu, 05 May 2022 18:
|
82
|
+
Thu, 05 May 2022 18:26:30 GMT
|
10
83
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.7..@fluentui/react-text_v9.0.0-rc.8)
|
11
84
|
|
12
85
|
### Changes
|
package/README.md
CHANGED
@@ -74,8 +74,8 @@ By default, Text and all the typography wrappers render a `<span>` element. You
|
|
74
74
|
|
75
75
|
```html
|
76
76
|
<div>
|
77
|
-
<
|
78
|
-
<
|
77
|
+
<Subtitle1 as="h1">Subtitle1</Subtitle1>
|
78
|
+
<Subtitle2 as="h2">Subtitle2</Subtitle2>
|
79
79
|
<Text as="p">This is simple example</Text>
|
80
80
|
</div>
|
81
81
|
```
|
@@ -84,8 +84,8 @@ This will result in the following DOM structure:
|
|
84
84
|
|
85
85
|
```html
|
86
86
|
<div>
|
87
|
-
<h1>
|
88
|
-
<h2>
|
87
|
+
<h1>Subtitle1</h1>
|
88
|
+
<h2>Subtitle2</h2>
|
89
89
|
<p>This is simple example</p>
|
90
90
|
</div>
|
91
91
|
```
|
package/dist/index.d.ts
CHANGED
@@ -7,64 +7,38 @@ import type { Slot } from '@fluentui/react-utilities';
|
|
7
7
|
import { SlotClassNames } from '@fluentui/react-utilities';
|
8
8
|
|
9
9
|
/**
|
10
|
-
* Text wrapper component for the
|
10
|
+
* Text wrapper component for the Body1 typography variant
|
11
11
|
*/
|
12
|
-
declare const
|
13
|
-
export { Body_2 as Body }
|
12
|
+
export declare const Body1: FunctionComponent<TextWrapperProps>;
|
14
13
|
|
15
|
-
|
16
|
-
* @deprecated Use `bodyClassNames.root` instead.
|
17
|
-
*/
|
18
|
-
export declare const bodyClassName = "fui-Body";
|
19
|
-
|
20
|
-
export declare const bodyClassNames: SlotClassNames<TextSlots>;
|
14
|
+
export declare const body1ClassNames: SlotClassNames<TextSlots>;
|
21
15
|
|
22
16
|
/**
|
23
|
-
* Text wrapper component for the
|
17
|
+
* Text wrapper component for the Caption1 typography variant
|
24
18
|
*/
|
25
|
-
export declare const
|
19
|
+
export declare const Caption1: FunctionComponent<TextWrapperProps>;
|
20
|
+
|
21
|
+
export declare const caption1ClassNames: SlotClassNames<TextSlots>;
|
26
22
|
|
27
23
|
/**
|
28
|
-
*
|
24
|
+
* Text wrapper component for the Caption2 typography variant
|
29
25
|
*/
|
30
|
-
export declare const
|
26
|
+
export declare const Caption2: FunctionComponent<TextWrapperProps>;
|
31
27
|
|
32
|
-
export declare const
|
28
|
+
export declare const caption2ClassNames: SlotClassNames<TextSlots>;
|
33
29
|
|
34
30
|
/**
|
35
31
|
* Text wrapper component for the Display typography variant
|
36
32
|
*/
|
37
33
|
export declare const Display: FunctionComponent<TextWrapperProps>;
|
38
34
|
|
39
|
-
/**
|
40
|
-
* @deprecated Use `displayClassNames.root` instead.
|
41
|
-
*/
|
42
|
-
export declare const displayClassName = "fui-Display";
|
43
|
-
|
44
35
|
export declare const displayClassNames: SlotClassNames<TextSlots>;
|
45
36
|
|
46
|
-
/**
|
47
|
-
* Text wrapper component for the Headline typography variant
|
48
|
-
*/
|
49
|
-
export declare const Headline: FunctionComponent<TextWrapperProps>;
|
50
|
-
|
51
|
-
/**
|
52
|
-
* @deprecated Use `headlineClassNames.root` instead.
|
53
|
-
*/
|
54
|
-
export declare const headlineClassName = "fui-Headline";
|
55
|
-
|
56
|
-
export declare const headlineClassNames: SlotClassNames<TextSlots>;
|
57
|
-
|
58
37
|
/**
|
59
38
|
* Text wrapper component for the Large Title typography variant
|
60
39
|
*/
|
61
40
|
export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
|
62
41
|
|
63
|
-
/**
|
64
|
-
* @deprecated Use `largeTitleClassNames.root` instead.
|
65
|
-
*/
|
66
|
-
export declare const largeTitleClassName = "fui-LargeTitle";
|
67
|
-
|
68
42
|
export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
|
69
43
|
|
70
44
|
/**
|
@@ -73,16 +47,18 @@ export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
|
|
73
47
|
export declare const renderText_unstable: (state: TextState) => JSX.Element;
|
74
48
|
|
75
49
|
/**
|
76
|
-
* Text wrapper component for the
|
50
|
+
* Text wrapper component for the Subtitle1 typography variant
|
77
51
|
*/
|
78
|
-
export declare const
|
52
|
+
export declare const Subtitle1: FunctionComponent<TextWrapperProps>;
|
53
|
+
|
54
|
+
export declare const subtitle1ClassNames: SlotClassNames<TextSlots>;
|
79
55
|
|
80
56
|
/**
|
81
|
-
*
|
57
|
+
* Text wrapper component for the Subtitle2 typography variant
|
82
58
|
*/
|
83
|
-
export declare const
|
59
|
+
export declare const Subtitle2: FunctionComponent<TextWrapperProps>;
|
84
60
|
|
85
|
-
export declare const
|
61
|
+
export declare const subtitle2ClassNames: SlotClassNames<TextSlots>;
|
86
62
|
|
87
63
|
/**
|
88
64
|
* Typography and styling abstraction component used to ensure consistency of text.
|
@@ -90,92 +66,85 @@ export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
|
|
90
66
|
declare const Text_2: ForwardRefComponent<TextProps>;
|
91
67
|
export { Text_2 as Text }
|
92
68
|
|
93
|
-
/**
|
94
|
-
* @deprecated Use `textClassNames.root` instead.
|
95
|
-
*/
|
96
|
-
export declare const textClassName = "fui-Text";
|
97
|
-
|
98
69
|
export declare const textClassNames: SlotClassNames<TextSlots>;
|
99
70
|
|
100
|
-
|
71
|
+
/**
|
72
|
+
* Text Props
|
73
|
+
*/
|
74
|
+
export declare type TextProps = ComponentProps<TextSlots> & {
|
101
75
|
/**
|
102
|
-
*
|
76
|
+
* Aligns text based on the parent container.
|
103
77
|
*
|
104
|
-
* @
|
78
|
+
* @default start
|
105
79
|
*/
|
106
|
-
|
80
|
+
align?: 'start' | 'center' | 'end' | 'justify';
|
107
81
|
/**
|
108
|
-
*
|
82
|
+
* Applies a block display for the content.
|
109
83
|
*
|
110
|
-
* @
|
84
|
+
* @default false
|
111
85
|
*/
|
112
|
-
|
86
|
+
block?: boolean;
|
113
87
|
/**
|
114
|
-
* Applies
|
88
|
+
* Applies the font family to the content.
|
115
89
|
*
|
116
|
-
* @
|
90
|
+
* @default base
|
117
91
|
*/
|
118
|
-
|
92
|
+
font?: 'base' | 'monospace' | 'numeric';
|
119
93
|
/**
|
120
94
|
* Applies the italic font style to the content.
|
121
95
|
*
|
122
|
-
* @
|
96
|
+
* @default false
|
123
97
|
*/
|
124
|
-
italic
|
98
|
+
italic?: boolean;
|
125
99
|
/**
|
126
|
-
* Applies
|
100
|
+
* Applies font size and line height based on the theme tokens.
|
127
101
|
*
|
128
|
-
* @
|
102
|
+
* @default 300
|
129
103
|
*/
|
130
|
-
|
104
|
+
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
131
105
|
/**
|
132
106
|
* Applies the strikethrough text decoration to the content.
|
133
107
|
*
|
134
|
-
* @
|
108
|
+
* @default false
|
135
109
|
*/
|
136
|
-
strikethrough
|
110
|
+
strikethrough?: boolean;
|
137
111
|
/**
|
138
|
-
*
|
112
|
+
* Truncate overflowing text for block displays.
|
139
113
|
*
|
140
|
-
* @
|
114
|
+
* @default false
|
141
115
|
*/
|
142
|
-
|
116
|
+
truncate?: boolean;
|
143
117
|
/**
|
144
|
-
* Applies the
|
118
|
+
* Applies the underline text decoration to the content.
|
145
119
|
*
|
146
|
-
* @
|
120
|
+
* @default false
|
147
121
|
*/
|
148
|
-
|
122
|
+
underline?: boolean;
|
149
123
|
/**
|
150
124
|
* Applies font weight to the content.
|
151
125
|
*
|
152
|
-
* @
|
126
|
+
* @default regular
|
153
127
|
*/
|
154
|
-
weight
|
128
|
+
weight?: 'regular' | 'medium' | 'semibold';
|
155
129
|
/**
|
156
|
-
*
|
130
|
+
* Wraps the text content on white spaces.
|
157
131
|
*
|
158
|
-
* @
|
132
|
+
* @default true
|
159
133
|
*/
|
160
|
-
|
134
|
+
wrap?: boolean;
|
161
135
|
};
|
162
136
|
|
163
|
-
/**
|
164
|
-
* Text Props
|
165
|
-
*/
|
166
|
-
export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
|
167
|
-
|
168
137
|
/**
|
169
138
|
* Text slots
|
170
139
|
*/
|
171
140
|
export declare type TextSlots = {
|
172
|
-
root: Slot<'span', '
|
141
|
+
root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;
|
173
142
|
};
|
174
143
|
|
175
144
|
/**
|
176
145
|
* State used in rendering Text
|
177
146
|
*/
|
178
|
-
export declare type TextState = ComponentState<TextSlots> &
|
147
|
+
export declare type TextState = ComponentState<TextSlots> & Required<Pick<TextProps, 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'>>;
|
179
148
|
|
180
149
|
declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
|
181
150
|
|
@@ -184,11 +153,6 @@ declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
|
|
184
153
|
*/
|
185
154
|
export declare const Title1: FunctionComponent<TextWrapperProps>;
|
186
155
|
|
187
|
-
/**
|
188
|
-
* @deprecated Use `title1ClassNames.root` instead.
|
189
|
-
*/
|
190
|
-
export declare const title1ClassName = "fui-Title1";
|
191
|
-
|
192
156
|
export declare const title1ClassNames: SlotClassNames<TextSlots>;
|
193
157
|
|
194
158
|
/**
|
@@ -196,11 +160,6 @@ export declare const title1ClassNames: SlotClassNames<TextSlots>;
|
|
196
160
|
*/
|
197
161
|
export declare const Title2: FunctionComponent<TextWrapperProps>;
|
198
162
|
|
199
|
-
/**
|
200
|
-
* @deprecated Use `title2ClassNames.root` instead.
|
201
|
-
*/
|
202
|
-
export declare const title2ClassName = "fui-Title2";
|
203
|
-
|
204
163
|
export declare const title2ClassNames: SlotClassNames<TextSlots>;
|
205
164
|
|
206
165
|
/**
|
@@ -208,11 +167,6 @@ export declare const title2ClassNames: SlotClassNames<TextSlots>;
|
|
208
167
|
*/
|
209
168
|
export declare const Title3: FunctionComponent<TextWrapperProps>;
|
210
169
|
|
211
|
-
/**
|
212
|
-
* @deprecated Use `title3ClassNames.root` instead.
|
213
|
-
*/
|
214
|
-
export declare const title3ClassName = "fui-Title3";
|
215
|
-
|
216
170
|
export declare const title3ClassNames: SlotClassNames<TextSlots>;
|
217
171
|
|
218
172
|
/**
|
package/lib/Body1.js
ADDED
package/lib/Body1.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Body1.js","sourceRoot":"../src/","sources":["Body1.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Body1/index';\n"]}
|
package/lib/Caption1.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Caption1.js","sourceRoot":"../src/","sources":["Caption1.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/Caption1/index';\n"]}
|
package/lib/Caption2.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Caption2.js","sourceRoot":"../src/","sources":["Caption2.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/Caption2/index';\n"]}
|
package/lib/Subtitle1.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Subtitle1.js","sourceRoot":"../src/","sources":["Subtitle1.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/Subtitle1/index';\n"]}
|
package/lib/Subtitle2.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Subtitle2.js","sourceRoot":"../src/","sources":["Subtitle2.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/Subtitle2/index';\n"]}
|
@@ -1,13 +1,8 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
2
|
import { createWrapper } from '../wrapper';
|
3
3
|
import { typographyStyles } from '@fluentui/react-theme';
|
4
|
-
|
5
|
-
|
6
|
-
*/
|
7
|
-
|
8
|
-
export const bodyClassName = 'fui-Body';
|
9
|
-
export const bodyClassNames = {
|
10
|
-
root: 'fui-Body'
|
4
|
+
export const body1ClassNames = {
|
5
|
+
root: 'fui-Body1'
|
11
6
|
};
|
12
7
|
/**
|
13
8
|
* Styles for the root slot
|
@@ -24,13 +19,13 @@ const useStyles = /*#__PURE__*/__styles({
|
|
24
19
|
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
|
25
20
|
});
|
26
21
|
/**
|
27
|
-
* Text wrapper component for the
|
22
|
+
* Text wrapper component for the Body1 typography variant
|
28
23
|
*/
|
29
24
|
|
30
25
|
|
31
|
-
export const
|
26
|
+
export const Body1 = /*#__PURE__*/createWrapper({
|
32
27
|
useStyles,
|
33
|
-
className:
|
34
|
-
displayName: '
|
28
|
+
className: body1ClassNames.root,
|
29
|
+
displayName: 'Body1'
|
35
30
|
});
|
36
|
-
//# sourceMappingURL=
|
31
|
+
//# sourceMappingURL=Body1.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["components/Body1/Body1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,eAAe,GAA8B;EACxD,IAAI,EAAE;AADkD,CAAnD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,KAAK,gBAAwC,aAAa,CAAC;EACtE,SADsE;EAEtE,SAAS,EAAE,eAAe,CAAC,IAF2C;EAGtE,WAAW,EAAE;AAHyD,CAAD,CAAhE","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\nexport const body1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body1,\n});\n\n/**\n * Text wrapper component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"sourceRoot":"../src/"}
|