@fluentui/react-text 9.0.0-rc.7 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.json +211 -1
  2. package/CHANGELOG.md +76 -2
  3. package/README.md +4 -4
  4. package/dist/index.d.ts +50 -96
  5. package/lib/Body1.js +2 -0
  6. package/lib/Body1.js.map +1 -0
  7. package/lib/Caption1.js +2 -0
  8. package/lib/Caption1.js.map +1 -0
  9. package/lib/Caption2.js +2 -0
  10. package/lib/Caption2.js.map +1 -0
  11. package/lib/Subtitle1.js +2 -0
  12. package/lib/Subtitle1.js.map +1 -0
  13. package/lib/Subtitle2.js +2 -0
  14. package/lib/Subtitle2.js.map +1 -0
  15. package/lib/components/{Body/Body.js → Body1/Body1.js} +7 -12
  16. package/lib/components/Body1/Body1.js.map +1 -0
  17. package/lib/components/Body1/index.js +2 -0
  18. package/lib/components/Body1/index.js.map +1 -0
  19. package/lib/components/{Caption/Caption.js → Caption1/Caption1.js} +7 -12
  20. package/lib/components/Caption1/Caption1.js.map +1 -0
  21. package/lib/components/Caption1/index.js +2 -0
  22. package/lib/components/Caption1/index.js.map +1 -0
  23. package/lib/components/Caption2/Caption2.js +31 -0
  24. package/lib/components/Caption2/Caption2.js.map +1 -0
  25. package/lib/components/Caption2/index.js +2 -0
  26. package/lib/components/Caption2/index.js.map +1 -0
  27. package/lib/components/Display/Display.js +0 -5
  28. package/lib/components/Display/Display.js.map +1 -1
  29. package/lib/components/LargeTitle/LargeTitle.js +0 -5
  30. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  31. package/lib/components/{Headline/Headline.js → Subtitle1/Subtitle1.js} +7 -12
  32. package/lib/components/Subtitle1/Subtitle1.js.map +1 -0
  33. package/lib/components/Subtitle1/index.js +2 -0
  34. package/lib/components/Subtitle1/index.js.map +1 -0
  35. package/lib/components/{Subheadline/Subheadline.js → Subtitle2/Subtitle2.js} +7 -12
  36. package/lib/components/Subtitle2/Subtitle2.js.map +1 -0
  37. package/lib/components/Subtitle2/index.js +2 -0
  38. package/lib/components/Subtitle2/index.js.map +1 -0
  39. package/lib/components/Text/Text.js.map +1 -1
  40. package/lib/components/Text/Text.types.js.map +1 -1
  41. package/lib/components/Text/renderText.js.map +1 -1
  42. package/lib/components/Text/useText.js +6 -6
  43. package/lib/components/Text/useText.js.map +1 -1
  44. package/lib/components/Text/useTextStyles.js +0 -5
  45. package/lib/components/Text/useTextStyles.js.map +1 -1
  46. package/lib/components/Title1/Title1.js +0 -5
  47. package/lib/components/Title1/Title1.js.map +1 -1
  48. package/lib/components/Title2/Title2.js +0 -5
  49. package/lib/components/Title2/Title2.js.map +1 -1
  50. package/lib/components/Title3/Title3.js +0 -5
  51. package/lib/components/Title3/Title3.js.map +1 -1
  52. package/lib/components/wrapper.js.map +1 -1
  53. package/lib/index.js +11 -11
  54. package/lib/index.js.map +1 -1
  55. package/lib-commonjs/{Body.js → Body1.js} +2 -2
  56. package/lib-commonjs/Body1.js.map +1 -0
  57. package/lib-commonjs/{Headline.js → Caption1.js} +2 -2
  58. package/lib-commonjs/Caption1.js.map +1 -0
  59. package/lib-commonjs/{Caption.js → Caption2.js} +2 -2
  60. package/lib-commonjs/Caption2.js.map +1 -0
  61. package/lib-commonjs/Subtitle1.js +10 -0
  62. package/lib-commonjs/Subtitle1.js.map +1 -0
  63. package/lib-commonjs/Subtitle2.js +10 -0
  64. package/lib-commonjs/Subtitle2.js.map +1 -0
  65. package/lib-commonjs/components/{Body/Body.js → Body1/Body1.js} +8 -13
  66. package/lib-commonjs/components/Body1/Body1.js.map +1 -0
  67. package/lib-commonjs/components/{Body → Body1}/index.js +1 -1
  68. package/lib-commonjs/components/Body1/index.js.map +1 -0
  69. package/lib-commonjs/components/{Caption/Caption.js → Caption1/Caption1.js} +8 -13
  70. package/lib-commonjs/components/Caption1/Caption1.js.map +1 -0
  71. package/lib-commonjs/components/{Caption → Caption1}/index.js +1 -1
  72. package/lib-commonjs/components/Caption1/index.js.map +1 -0
  73. package/lib-commonjs/components/Caption2/Caption2.js +41 -0
  74. package/lib-commonjs/components/Caption2/Caption2.js.map +1 -0
  75. package/lib-commonjs/components/{Headline → Caption2}/index.js +1 -1
  76. package/lib-commonjs/components/Caption2/index.js.map +1 -0
  77. package/lib-commonjs/components/Display/Display.js +1 -6
  78. package/lib-commonjs/components/Display/Display.js.map +1 -1
  79. package/lib-commonjs/components/LargeTitle/LargeTitle.js +1 -6
  80. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  81. package/lib-commonjs/components/{Headline/Headline.js → Subtitle1/Subtitle1.js} +8 -13
  82. package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -0
  83. package/lib-commonjs/components/{Subheadline → Subtitle1}/index.js +1 -1
  84. package/lib-commonjs/components/Subtitle1/index.js.map +1 -0
  85. package/lib-commonjs/components/{Subheadline/Subheadline.js → Subtitle2/Subtitle2.js} +8 -13
  86. package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -0
  87. package/lib-commonjs/components/Subtitle2/index.js +10 -0
  88. package/lib-commonjs/components/Subtitle2/index.js.map +1 -0
  89. package/lib-commonjs/components/Text/Text.js.map +1 -1
  90. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  91. package/lib-commonjs/components/Text/useText.js +6 -6
  92. package/lib-commonjs/components/Text/useText.js.map +1 -1
  93. package/lib-commonjs/components/Text/useTextStyles.js +1 -6
  94. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  95. package/lib-commonjs/components/Title1/Title1.js +1 -6
  96. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  97. package/lib-commonjs/components/Title2/Title2.js +1 -6
  98. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  99. package/lib-commonjs/components/Title3/Title3.js +1 -6
  100. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  101. package/lib-commonjs/components/wrapper.js.map +1 -1
  102. package/lib-commonjs/index.js +30 -76
  103. package/lib-commonjs/index.js.map +1 -1
  104. package/package.json +6 -8
  105. package/lib/Body.js +0 -2
  106. package/lib/Body.js.map +0 -1
  107. package/lib/Caption.js +0 -2
  108. package/lib/Caption.js.map +0 -1
  109. package/lib/Headline.js +0 -2
  110. package/lib/Headline.js.map +0 -1
  111. package/lib/Subheadline.js +0 -2
  112. package/lib/Subheadline.js.map +0 -1
  113. package/lib/components/Body/Body.js.map +0 -1
  114. package/lib/components/Body/index.js +0 -2
  115. package/lib/components/Body/index.js.map +0 -1
  116. package/lib/components/Caption/Caption.js.map +0 -1
  117. package/lib/components/Caption/index.js +0 -2
  118. package/lib/components/Caption/index.js.map +0 -1
  119. package/lib/components/Headline/Headline.js.map +0 -1
  120. package/lib/components/Headline/index.js +0 -2
  121. package/lib/components/Headline/index.js.map +0 -1
  122. package/lib/components/Subheadline/Subheadline.js.map +0 -1
  123. package/lib/components/Subheadline/index.js +0 -2
  124. package/lib/components/Subheadline/index.js.map +0 -1
  125. package/lib-commonjs/Body.js.map +0 -1
  126. package/lib-commonjs/Caption.js.map +0 -1
  127. package/lib-commonjs/Headline.js.map +0 -1
  128. package/lib-commonjs/Subheadline.js +0 -10
  129. package/lib-commonjs/Subheadline.js.map +0 -1
  130. package/lib-commonjs/components/Body/Body.js.map +0 -1
  131. package/lib-commonjs/components/Body/index.js.map +0 -1
  132. package/lib-commonjs/components/Caption/Caption.js.map +0 -1
  133. package/lib-commonjs/components/Caption/index.js.map +0 -1
  134. package/lib-commonjs/components/Headline/Headline.js.map +0 -1
  135. package/lib-commonjs/components/Headline/index.js.map +0 -1
  136. package/lib-commonjs/components/Subheadline/Subheadline.js.map +0 -1
  137. package/lib-commonjs/components/Subheadline/index.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,217 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 04 May 2022 13:24:01 GMT",
5
+ "date": "Tue, 28 Jun 2022 15:08:30 GMT",
6
+ "tag": "@fluentui/react-text_v9.0.0",
7
+ "version": "9.0.0",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "lingfangao@hotmail.com",
12
+ "package": "@fluentui/react-text",
13
+ "commit": "675acea49c97f10837ddee9b8c4350ca27750125",
14
+ "comment": "Bump Griffel dependencies"
15
+ },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-text",
19
+ "commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
20
+ "comment": "Update 9.0.0-rc dependencies to use caret range"
21
+ }
22
+ ],
23
+ "none": [
24
+ {
25
+ "author": "mgodbolt@microsoft.com",
26
+ "package": "@fluentui/react-text",
27
+ "commit": "36d25e965ca50f24f8f1a1be8deede690ca70b93",
28
+ "comment": "chore: Convert Text to index based stories"
29
+ }
30
+ ],
31
+ "patch": [
32
+ {
33
+ "author": "lingfangao@hotmail.com",
34
+ "package": "@fluentui/react-text",
35
+ "commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
36
+ "comment": "feat: Initial 9.0.0 release"
37
+ },
38
+ {
39
+ "author": "beachball",
40
+ "package": "@fluentui/react-text",
41
+ "comment": "Bump @fluentui/react-theme to v9.0.0",
42
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
43
+ },
44
+ {
45
+ "author": "beachball",
46
+ "package": "@fluentui/react-text",
47
+ "comment": "Bump @fluentui/react-utilities to v9.0.0",
48
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
49
+ },
50
+ {
51
+ "author": "beachball",
52
+ "package": "@fluentui/react-text",
53
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
54
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ "date": "Thu, 23 Jun 2022 14:25:31 GMT",
61
+ "tag": "@fluentui/react-text_v9.0.0-rc.12",
62
+ "version": "9.0.0-rc.12",
63
+ "comments": {
64
+ "prerelease": [
65
+ {
66
+ "author": "beachball",
67
+ "package": "@fluentui/react-text",
68
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
69
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
70
+ }
71
+ ]
72
+ }
73
+ },
74
+ {
75
+ "date": "Tue, 31 May 2022 21:28:49 GMT",
76
+ "tag": "@fluentui/react-text_v9.0.0-rc.11",
77
+ "version": "9.0.0-rc.11",
78
+ "comments": {
79
+ "prerelease": [
80
+ {
81
+ "author": "olfedias@microsoft.com",
82
+ "package": "@fluentui/react-text",
83
+ "commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
84
+ "comment": "chore: Update Griffel to latest version"
85
+ },
86
+ {
87
+ "author": "beachball",
88
+ "package": "@fluentui/react-text",
89
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
90
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
91
+ },
92
+ {
93
+ "author": "beachball",
94
+ "package": "@fluentui/react-text",
95
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
96
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "date": "Mon, 23 May 2022 18:56:49 GMT",
103
+ "tag": "@fluentui/react-text_v9.0.0-rc.10",
104
+ "version": "9.0.0-rc.10",
105
+ "comments": {
106
+ "prerelease": [
107
+ {
108
+ "author": "39736248+andrefcdias@users.noreply.github.com",
109
+ "package": "@fluentui/react-text",
110
+ "commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
111
+ "comment": "fix: Change typography wrapper component names to match new design spec"
112
+ },
113
+ {
114
+ "author": "Humberto.Morimoto@microsoft.com",
115
+ "package": "@fluentui/react-text",
116
+ "commit": "9c239eaf77f2f5e3246bb16904d263001a26c726",
117
+ "comment": "Text: Ordering types alphabetically."
118
+ },
119
+ {
120
+ "author": "beachball",
121
+ "package": "@fluentui/react-text",
122
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
123
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
124
+ },
125
+ {
126
+ "author": "beachball",
127
+ "package": "@fluentui/react-text",
128
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
129
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
130
+ }
131
+ ]
132
+ }
133
+ },
134
+ {
135
+ "date": "Mon, 23 May 2022 12:13:52 GMT",
136
+ "tag": "@fluentui/react-text_v9.0.0-rc.9",
137
+ "version": "9.0.0-rc.9",
138
+ "comments": {
139
+ "prerelease": [
140
+ {
141
+ "author": "olfedias@microsoft.com",
142
+ "package": "@fluentui/react-text",
143
+ "commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
144
+ "comment": "chore: Update Griffel to latest version"
145
+ },
146
+ {
147
+ "author": "Humberto.Morimoto@microsoft.com",
148
+ "package": "@fluentui/react-text",
149
+ "commit": "cab7ae0f9667d278f6e4b3463f4890fe8bf63ca8",
150
+ "comment": "Removing TextCommons type."
151
+ },
152
+ {
153
+ "author": "olfedias@microsoft.com",
154
+ "package": "@fluentui/react-text",
155
+ "commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
156
+ "comment": "chore: Update Griffel to latest version"
157
+ },
158
+ {
159
+ "author": "beachball",
160
+ "package": "@fluentui/react-text",
161
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
162
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
163
+ },
164
+ {
165
+ "author": "beachball",
166
+ "package": "@fluentui/react-text",
167
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
168
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
169
+ },
170
+ {
171
+ "author": "beachball",
172
+ "package": "@fluentui/react-text",
173
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
174
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
175
+ }
176
+ ],
177
+ "none": [
178
+ {
179
+ "author": "t-emmajiang@microsoft.com",
180
+ "package": "@fluentui/react-text",
181
+ "commit": "d1b79b83dbffbc0242d8f463715741efec9bf5dd",
182
+ "comment": "fixing typo in Text best practices"
183
+ }
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "date": "Thu, 05 May 2022 18:26:30 GMT",
189
+ "tag": "@fluentui/react-text_v9.0.0-rc.8",
190
+ "version": "9.0.0-rc.8",
191
+ "comments": {
192
+ "prerelease": [
193
+ {
194
+ "author": "beachball",
195
+ "package": "@fluentui/react-text",
196
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.7",
197
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
198
+ },
199
+ {
200
+ "author": "beachball",
201
+ "package": "@fluentui/react-text",
202
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
203
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
204
+ },
205
+ {
206
+ "author": "beachball",
207
+ "package": "@fluentui/react-text",
208
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5",
209
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
210
+ }
211
+ ]
212
+ }
213
+ },
214
+ {
215
+ "date": "Wed, 04 May 2022 13:26:33 GMT",
6
216
  "tag": "@fluentui/react-text_v9.0.0-rc.7",
7
217
  "version": "9.0.0-rc.7",
8
218
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,86 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Wed, 04 May 2022 13:24:01 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 28 Jun 2022 15:08:30 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0)
8
+
9
+ Tue, 28 Jun 2022 15:08:30 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.12..@fluentui/react-text_v9.0.0)
11
+
12
+ ### Patches
13
+
14
+ - feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
16
+ - Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
17
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
18
+
19
+ ### Changes
20
+
21
+ - Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
22
+ - Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
23
+
24
+ ## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.12)
25
+
26
+ Thu, 23 Jun 2022 14:25:31 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.11..@fluentui/react-text_v9.0.0-rc.12)
28
+
29
+ ### Changes
30
+
31
+ - Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
32
+
33
+ ## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.11)
34
+
35
+ Tue, 31 May 2022 21:28:49 GMT
36
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.10..@fluentui/react-text_v9.0.0-rc.11)
37
+
38
+ ### Changes
39
+
40
+ - chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
41
+ - Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
42
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
43
+
44
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.10)
45
+
46
+ Mon, 23 May 2022 18:56:49 GMT
47
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.9..@fluentui/react-text_v9.0.0-rc.10)
48
+
49
+ ### Changes
50
+
51
+ - 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)
52
+ - Text: Ordering types alphabetically. ([PR #23120](https://github.com/microsoft/fluentui/pull/23120) by Humberto.Morimoto@microsoft.com)
53
+ - Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
54
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
55
+
56
+ ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.9)
57
+
58
+ Mon, 23 May 2022 12:13:52 GMT
59
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.8..@fluentui/react-text_v9.0.0-rc.9)
60
+
61
+ ### Changes
62
+
63
+ - chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
64
+ - Removing TextCommons type. ([PR #22971](https://github.com/microsoft/fluentui/pull/22971) by Humberto.Morimoto@microsoft.com)
65
+ - chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
66
+ - Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
67
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
68
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
69
+
70
+ ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.8)
71
+
72
+ Thu, 05 May 2022 18:26:30 GMT
73
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.7..@fluentui/react-text_v9.0.0-rc.8)
74
+
75
+ ### Changes
76
+
77
+ - Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
78
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
79
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
80
+
7
81
  ## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.7)
8
82
 
9
- Wed, 04 May 2022 13:24:01 GMT
83
+ Wed, 04 May 2022 13:26:33 GMT
10
84
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.6..@fluentui/react-text_v9.0.0-rc.7)
11
85
 
12
86
  ### 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
- <Headline as="h1">Headline</Headline>
78
- <Subheadline as="h2">Subheadline</Subheadline>
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>Headline</h1>
88
- <h2>Subheadline</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 Body typography variant
10
+ * Text wrapper component for the Body1 typography variant
11
11
  */
12
- declare const Body_2: FunctionComponent<TextWrapperProps>;
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 Caption typography variant
17
+ * Text wrapper component for the Caption1 typography variant
24
18
  */
25
- export declare const Caption: FunctionComponent<TextWrapperProps>;
19
+ export declare const Caption1: FunctionComponent<TextWrapperProps>;
20
+
21
+ export declare const caption1ClassNames: SlotClassNames<TextSlots>;
26
22
 
27
23
  /**
28
- * @deprecated Use `captionClassNames.root` instead.
24
+ * Text wrapper component for the Caption2 typography variant
29
25
  */
30
- export declare const captionClassName = "fui-Caption";
26
+ export declare const Caption2: FunctionComponent<TextWrapperProps>;
31
27
 
32
- export declare const captionClassNames: SlotClassNames<TextSlots>;
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 Subheadline typography variant
50
+ * Text wrapper component for the Subtitle1 typography variant
77
51
  */
78
- export declare const Subheadline: FunctionComponent<TextWrapperProps>;
52
+ export declare const Subtitle1: FunctionComponent<TextWrapperProps>;
53
+
54
+ export declare const subtitle1ClassNames: SlotClassNames<TextSlots>;
79
55
 
80
56
  /**
81
- * @deprecated Use `subheadlineClassNames.root` instead.
57
+ * Text wrapper component for the Subtitle2 typography variant
82
58
  */
83
- export declare const subheadlineClassName = "fui-Subheadline";
59
+ export declare const Subtitle2: FunctionComponent<TextWrapperProps>;
84
60
 
85
- export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
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
- declare type TextCommons = {
71
+ /**
72
+ * Text Props
73
+ */
74
+ export declare type TextProps = ComponentProps<TextSlots> & {
101
75
  /**
102
- * Wraps the text content on white spaces.
76
+ * Aligns text based on the parent container.
103
77
  *
104
- * @defaultValue true
78
+ * @default start
105
79
  */
106
- wrap: boolean;
80
+ align?: 'start' | 'center' | 'end' | 'justify';
107
81
  /**
108
- * Truncate overflowing text for block displays.
82
+ * Applies a block display for the content.
109
83
  *
110
- * @defaultValue false
84
+ * @default false
111
85
  */
112
- truncate: boolean;
86
+ block?: boolean;
113
87
  /**
114
- * Applies a block display for the content.
88
+ * Applies the font family to the content.
115
89
  *
116
- * @defaultValue false
90
+ * @default base
117
91
  */
118
- block: boolean;
92
+ font?: 'base' | 'monospace' | 'numeric';
119
93
  /**
120
94
  * Applies the italic font style to the content.
121
95
  *
122
- * @defaultValue false
96
+ * @default false
123
97
  */
124
- italic: boolean;
98
+ italic?: boolean;
125
99
  /**
126
- * Applies the underline text decoration to the content.
100
+ * Applies font size and line height based on the theme tokens.
127
101
  *
128
- * @defaultValue false
102
+ * @default 300
129
103
  */
130
- underline: boolean;
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
- * @defaultValue false
108
+ * @default false
135
109
  */
136
- strikethrough: boolean;
110
+ strikethrough?: boolean;
137
111
  /**
138
- * Applies font size and line height based on the theme tokens.
112
+ * Truncate overflowing text for block displays.
139
113
  *
140
- * @defaultValue 300
114
+ * @default false
141
115
  */
142
- size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
116
+ truncate?: boolean;
143
117
  /**
144
- * Applies the font family to the content.
118
+ * Applies the underline text decoration to the content.
145
119
  *
146
- * @defaultValue base
120
+ * @default false
147
121
  */
148
- font: 'base' | 'monospace' | 'numeric';
122
+ underline?: boolean;
149
123
  /**
150
124
  * Applies font weight to the content.
151
125
  *
152
- * @defaultValue regular
126
+ * @default regular
153
127
  */
154
- weight: 'regular' | 'medium' | 'semibold';
128
+ weight?: 'regular' | 'medium' | 'semibold';
155
129
  /**
156
- * Aligns text based on the parent container.
130
+ * Wraps the text content on white spaces.
157
131
  *
158
- * @defaultValue start
132
+ * @default true
159
133
  */
160
- align: 'start' | 'center' | 'end' | 'justify';
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', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
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> & TextCommons;
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
@@ -0,0 +1,2 @@
1
+ export * from './components/Body1/index';
2
+ //# sourceMappingURL=Body1.js.map
@@ -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"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Caption1/index';
2
+ //# sourceMappingURL=Caption1.js.map
@@ -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"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Caption2/index';
2
+ //# sourceMappingURL=Caption2.js.map
@@ -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"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Subtitle1/index';
2
+ //# sourceMappingURL=Subtitle1.js.map
@@ -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"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Subtitle2/index';
2
+ //# sourceMappingURL=Subtitle2.js.map
@@ -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
- * @deprecated Use `bodyClassNames.root` instead.
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 Body typography variant
22
+ * Text wrapper component for the Body1 typography variant
28
23
  */
29
24
 
30
25
 
31
- export const Body = /*#__PURE__*/createWrapper({
26
+ export const Body1 = /*#__PURE__*/createWrapper({
32
27
  useStyles,
33
- className: bodyClassNames.root,
34
- displayName: 'Body'
28
+ className: body1ClassNames.root,
29
+ displayName: 'Body1'
35
30
  });
36
- //# sourceMappingURL=Body.js.map
31
+ //# sourceMappingURL=Body1.js.map