@fluentui/react-text 9.3.11 → 9.3.13

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 (293) hide show
  1. package/CHANGELOG.json +73 -1
  2. package/CHANGELOG.md +27 -2
  3. package/lib/Body1.js +0 -1
  4. package/lib/Body1.js.map +1 -1
  5. package/lib/Body1Strong.js +0 -1
  6. package/lib/Body1Strong.js.map +1 -1
  7. package/lib/Body1Stronger.js +0 -1
  8. package/lib/Body1Stronger.js.map +1 -1
  9. package/lib/Body2.js +0 -1
  10. package/lib/Body2.js.map +1 -1
  11. package/lib/Caption1.js +0 -1
  12. package/lib/Caption1.js.map +1 -1
  13. package/lib/Caption1Strong.js +0 -1
  14. package/lib/Caption1Strong.js.map +1 -1
  15. package/lib/Caption1Stronger.js +0 -1
  16. package/lib/Caption1Stronger.js.map +1 -1
  17. package/lib/Caption2.js +0 -1
  18. package/lib/Caption2.js.map +1 -1
  19. package/lib/Caption2Strong.js +0 -1
  20. package/lib/Caption2Strong.js.map +1 -1
  21. package/lib/Display.js +0 -1
  22. package/lib/Display.js.map +1 -1
  23. package/lib/LargeTitle.js +0 -1
  24. package/lib/LargeTitle.js.map +1 -1
  25. package/lib/Subtitle1.js +0 -1
  26. package/lib/Subtitle1.js.map +1 -1
  27. package/lib/Subtitle2.js +0 -1
  28. package/lib/Subtitle2.js.map +1 -1
  29. package/lib/Subtitle2Stronger.js +0 -1
  30. package/lib/Subtitle2Stronger.js.map +1 -1
  31. package/lib/Text.js +0 -1
  32. package/lib/Text.js.map +1 -1
  33. package/lib/Title1.js +0 -1
  34. package/lib/Title1.js.map +1 -1
  35. package/lib/Title2.js +0 -1
  36. package/lib/Title2.js.map +1 -1
  37. package/lib/Title3.js +0 -1
  38. package/lib/Title3.js.map +1 -1
  39. package/lib/components/Text/Text.js +6 -9
  40. package/lib/components/Text/Text.js.map +1 -1
  41. package/lib/components/Text/Text.types.js +1 -2
  42. package/lib/components/Text/Text.types.js.map +1 -1
  43. package/lib/components/Text/index.js +0 -1
  44. package/lib/components/Text/index.js.map +1 -1
  45. package/lib/components/Text/renderText.js +4 -9
  46. package/lib/components/Text/renderText.js.map +1 -1
  47. package/lib/components/Text/useText.js +25 -38
  48. package/lib/components/Text/useText.js.map +1 -1
  49. package/lib/components/Text/useTextStyles.styles.js.map +1 -1
  50. package/lib/components/presets/Body1/Body1.js +4 -6
  51. package/lib/components/presets/Body1/Body1.js.map +1 -1
  52. package/lib/components/presets/Body1/index.js +0 -1
  53. package/lib/components/presets/Body1/index.js.map +1 -1
  54. package/lib/components/presets/Body1/useBody1Styles.styles.js.map +1 -1
  55. package/lib/components/presets/Body1Strong/Body1Strong.js +4 -6
  56. package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  57. package/lib/components/presets/Body1Strong/index.js +0 -1
  58. package/lib/components/presets/Body1Strong/index.js.map +1 -1
  59. package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +1 -1
  60. package/lib/components/presets/Body1Stronger/Body1Stronger.js +4 -6
  61. package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  62. package/lib/components/presets/Body1Stronger/index.js +0 -1
  63. package/lib/components/presets/Body1Stronger/index.js.map +1 -1
  64. package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +1 -1
  65. package/lib/components/presets/Body2/Body2.js +4 -6
  66. package/lib/components/presets/Body2/Body2.js.map +1 -1
  67. package/lib/components/presets/Body2/index.js +0 -1
  68. package/lib/components/presets/Body2/index.js.map +1 -1
  69. package/lib/components/presets/Body2/useBody2Styles.styles.js.map +1 -1
  70. package/lib/components/presets/Caption1/Caption1.js +4 -6
  71. package/lib/components/presets/Caption1/Caption1.js.map +1 -1
  72. package/lib/components/presets/Caption1/index.js +0 -1
  73. package/lib/components/presets/Caption1/index.js.map +1 -1
  74. package/lib/components/presets/Caption1/useCaption1Styles.styles.js.map +1 -1
  75. package/lib/components/presets/Caption1Strong/Caption1Strong.js +4 -6
  76. package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  77. package/lib/components/presets/Caption1Strong/index.js +0 -1
  78. package/lib/components/presets/Caption1Strong/index.js.map +1 -1
  79. package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +1 -1
  80. package/lib/components/presets/Caption1Stronger/Caption1Stronger.js +4 -6
  81. package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  82. package/lib/components/presets/Caption1Stronger/index.js +0 -1
  83. package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
  84. package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +1 -1
  85. package/lib/components/presets/Caption2/Caption2.js +4 -6
  86. package/lib/components/presets/Caption2/Caption2.js.map +1 -1
  87. package/lib/components/presets/Caption2/index.js +0 -1
  88. package/lib/components/presets/Caption2/index.js.map +1 -1
  89. package/lib/components/presets/Caption2/useCaption2Styles.styles.js.map +1 -1
  90. package/lib/components/presets/Caption2Strong/Caption2Strong.js +4 -6
  91. package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  92. package/lib/components/presets/Caption2Strong/index.js +0 -1
  93. package/lib/components/presets/Caption2Strong/index.js.map +1 -1
  94. package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +1 -1
  95. package/lib/components/presets/Display/Display.js +4 -6
  96. package/lib/components/presets/Display/Display.js.map +1 -1
  97. package/lib/components/presets/Display/index.js +0 -1
  98. package/lib/components/presets/Display/index.js.map +1 -1
  99. package/lib/components/presets/Display/useDisplayStyles.styles.js.map +1 -1
  100. package/lib/components/presets/LargeTitle/LargeTitle.js +4 -6
  101. package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  102. package/lib/components/presets/LargeTitle/index.js +0 -1
  103. package/lib/components/presets/LargeTitle/index.js.map +1 -1
  104. package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +1 -1
  105. package/lib/components/presets/Subtitle1/Subtitle1.js +4 -6
  106. package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  107. package/lib/components/presets/Subtitle1/index.js +0 -1
  108. package/lib/components/presets/Subtitle1/index.js.map +1 -1
  109. package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +1 -1
  110. package/lib/components/presets/Subtitle2/Subtitle2.js +4 -6
  111. package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  112. package/lib/components/presets/Subtitle2/index.js +0 -1
  113. package/lib/components/presets/Subtitle2/index.js.map +1 -1
  114. package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +1 -1
  115. package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +4 -6
  116. package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  117. package/lib/components/presets/Subtitle2Stronger/index.js +0 -1
  118. package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
  119. package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +1 -1
  120. package/lib/components/presets/Title1/Title1.js +4 -6
  121. package/lib/components/presets/Title1/Title1.js.map +1 -1
  122. package/lib/components/presets/Title1/index.js +0 -1
  123. package/lib/components/presets/Title1/index.js.map +1 -1
  124. package/lib/components/presets/Title1/useTitle1Styles.styles.js.map +1 -1
  125. package/lib/components/presets/Title2/Title2.js +4 -6
  126. package/lib/components/presets/Title2/Title2.js.map +1 -1
  127. package/lib/components/presets/Title2/index.js +0 -1
  128. package/lib/components/presets/Title2/index.js.map +1 -1
  129. package/lib/components/presets/Title2/useTitle2Styles.styles.js.map +1 -1
  130. package/lib/components/presets/Title3/Title3.js +4 -6
  131. package/lib/components/presets/Title3/Title3.js.map +1 -1
  132. package/lib/components/presets/Title3/index.js +0 -1
  133. package/lib/components/presets/Title3/index.js.map +1 -1
  134. package/lib/components/presets/Title3/useTitle3Styles.styles.js.map +1 -1
  135. package/lib/components/presets/createPreset.js +10 -15
  136. package/lib/components/presets/createPreset.js.map +1 -1
  137. package/lib/index.js +0 -1
  138. package/lib/index.js.map +1 -1
  139. package/lib-commonjs/Body1.js +0 -3
  140. package/lib-commonjs/Body1.js.map +1 -1
  141. package/lib-commonjs/Body1Strong.js +0 -3
  142. package/lib-commonjs/Body1Strong.js.map +1 -1
  143. package/lib-commonjs/Body1Stronger.js +0 -3
  144. package/lib-commonjs/Body1Stronger.js.map +1 -1
  145. package/lib-commonjs/Body2.js +0 -3
  146. package/lib-commonjs/Body2.js.map +1 -1
  147. package/lib-commonjs/Caption1.js +0 -3
  148. package/lib-commonjs/Caption1.js.map +1 -1
  149. package/lib-commonjs/Caption1Strong.js +0 -3
  150. package/lib-commonjs/Caption1Strong.js.map +1 -1
  151. package/lib-commonjs/Caption1Stronger.js +0 -3
  152. package/lib-commonjs/Caption1Stronger.js.map +1 -1
  153. package/lib-commonjs/Caption2.js +0 -3
  154. package/lib-commonjs/Caption2.js.map +1 -1
  155. package/lib-commonjs/Caption2Strong.js +0 -3
  156. package/lib-commonjs/Caption2Strong.js.map +1 -1
  157. package/lib-commonjs/Display.js +0 -3
  158. package/lib-commonjs/Display.js.map +1 -1
  159. package/lib-commonjs/LargeTitle.js +0 -3
  160. package/lib-commonjs/LargeTitle.js.map +1 -1
  161. package/lib-commonjs/Subtitle1.js +0 -3
  162. package/lib-commonjs/Subtitle1.js.map +1 -1
  163. package/lib-commonjs/Subtitle2.js +0 -3
  164. package/lib-commonjs/Subtitle2.js.map +1 -1
  165. package/lib-commonjs/Subtitle2Stronger.js +0 -3
  166. package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
  167. package/lib-commonjs/Text.js +0 -3
  168. package/lib-commonjs/Text.js.map +1 -1
  169. package/lib-commonjs/Title1.js +0 -3
  170. package/lib-commonjs/Title1.js.map +1 -1
  171. package/lib-commonjs/Title2.js +0 -3
  172. package/lib-commonjs/Title2.js.map +1 -1
  173. package/lib-commonjs/Title3.js +0 -3
  174. package/lib-commonjs/Title3.js.map +1 -1
  175. package/lib-commonjs/components/Text/Text.js +1 -3
  176. package/lib-commonjs/components/Text/Text.js.map +1 -1
  177. package/lib-commonjs/components/Text/Text.types.js +0 -3
  178. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  179. package/lib-commonjs/components/Text/index.js +0 -3
  180. package/lib-commonjs/components/Text/index.js.map +1 -1
  181. package/lib-commonjs/components/Text/renderText.js +1 -3
  182. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  183. package/lib-commonjs/components/Text/useText.js +1 -3
  184. package/lib-commonjs/components/Text/useText.js.map +1 -1
  185. package/lib-commonjs/components/Text/useTextStyles.styles.js +0 -2
  186. package/lib-commonjs/components/Text/useTextStyles.styles.js.map +1 -1
  187. package/lib-commonjs/components/presets/Body1/Body1.js +2 -4
  188. package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
  189. package/lib-commonjs/components/presets/Body1/index.js +0 -3
  190. package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
  191. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.js +0 -2
  192. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.js.map +1 -1
  193. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +2 -4
  194. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  195. package/lib-commonjs/components/presets/Body1Strong/index.js +0 -3
  196. package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
  197. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.js +0 -2
  198. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +1 -1
  199. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +2 -4
  200. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  201. package/lib-commonjs/components/presets/Body1Stronger/index.js +0 -3
  202. package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
  203. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js +0 -2
  204. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +1 -1
  205. package/lib-commonjs/components/presets/Body2/Body2.js +2 -4
  206. package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
  207. package/lib-commonjs/components/presets/Body2/index.js +0 -3
  208. package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
  209. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.js +0 -2
  210. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.js.map +1 -1
  211. package/lib-commonjs/components/presets/Caption1/Caption1.js +2 -4
  212. package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
  213. package/lib-commonjs/components/presets/Caption1/index.js +0 -3
  214. package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
  215. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.js +0 -2
  216. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.js.map +1 -1
  217. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +2 -4
  218. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  219. package/lib-commonjs/components/presets/Caption1Strong/index.js +0 -3
  220. package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
  221. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js +0 -2
  222. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +1 -1
  223. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +2 -4
  224. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  225. package/lib-commonjs/components/presets/Caption1Stronger/index.js +0 -3
  226. package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
  227. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.js +0 -2
  228. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +1 -1
  229. package/lib-commonjs/components/presets/Caption2/Caption2.js +2 -4
  230. package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
  231. package/lib-commonjs/components/presets/Caption2/index.js +0 -3
  232. package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
  233. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.js +0 -2
  234. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.js.map +1 -1
  235. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +2 -4
  236. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  237. package/lib-commonjs/components/presets/Caption2Strong/index.js +0 -3
  238. package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
  239. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js +0 -2
  240. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +1 -1
  241. package/lib-commonjs/components/presets/Display/Display.js +2 -4
  242. package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
  243. package/lib-commonjs/components/presets/Display/index.js +0 -3
  244. package/lib-commonjs/components/presets/Display/index.js.map +1 -1
  245. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.js +0 -2
  246. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.js.map +1 -1
  247. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +2 -4
  248. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  249. package/lib-commonjs/components/presets/LargeTitle/index.js +0 -3
  250. package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
  251. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.js +0 -2
  252. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +1 -1
  253. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +2 -4
  254. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  255. package/lib-commonjs/components/presets/Subtitle1/index.js +0 -3
  256. package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
  257. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.js +0 -2
  258. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +1 -1
  259. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +2 -4
  260. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  261. package/lib-commonjs/components/presets/Subtitle2/index.js +0 -3
  262. package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
  263. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.js +0 -2
  264. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +1 -1
  265. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +2 -4
  266. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  267. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +0 -3
  268. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
  269. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js +0 -2
  270. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +1 -1
  271. package/lib-commonjs/components/presets/Title1/Title1.js +2 -4
  272. package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
  273. package/lib-commonjs/components/presets/Title1/index.js +0 -3
  274. package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
  275. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.js +0 -2
  276. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.js.map +1 -1
  277. package/lib-commonjs/components/presets/Title2/Title2.js +2 -4
  278. package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
  279. package/lib-commonjs/components/presets/Title2/index.js +0 -3
  280. package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
  281. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.js +0 -2
  282. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.js.map +1 -1
  283. package/lib-commonjs/components/presets/Title3/Title3.js +2 -4
  284. package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
  285. package/lib-commonjs/components/presets/Title3/index.js +0 -3
  286. package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
  287. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.js +0 -2
  288. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.js.map +1 -1
  289. package/lib-commonjs/components/presets/createPreset.js +1 -3
  290. package/lib-commonjs/components/presets/createPreset.js.map +1 -1
  291. package/lib-commonjs/index.js +0 -3
  292. package/lib-commonjs/index.js.map +1 -1
  293. package/package.json +7 -7
package/CHANGELOG.json CHANGED
@@ -2,7 +2,79 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 25 May 2023 09:57:45 GMT",
5
+ "date": "Tue, 20 Jun 2023 12:34:51 GMT",
6
+ "tag": "@fluentui/react-text_v9.3.13",
7
+ "version": "9.3.13",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui/react-text",
13
+ "comment": "Bump @fluentui/react-shared-contexts to v9.5.1",
14
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-text",
19
+ "comment": "Bump @fluentui/react-theme to v9.1.9",
20
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-text",
25
+ "comment": "Bump @fluentui/react-utilities to v9.9.3",
26
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-text",
31
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7",
32
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-text",
37
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23",
38
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Wed, 31 May 2023 06:46:21 GMT",
45
+ "tag": "@fluentui/react-text_v9.3.12",
46
+ "version": "9.3.12",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "seanmonahan@microsoft.com",
51
+ "package": "@fluentui/react-text",
52
+ "commit": "d640b972d7ac86bfb76ae6c6329f12cdd33b3b7c",
53
+ "comment": "chore: Update Griffel to v1.5.7."
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-text",
58
+ "comment": "Bump @fluentui/react-utilities to v9.9.2",
59
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-text",
64
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6",
65
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-text",
70
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
71
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "date": "Thu, 25 May 2023 10:00:48 GMT",
6
78
  "tag": "@fluentui/react-text_v9.3.11",
7
79
  "version": "9.3.11",
8
80
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,37 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Thu, 25 May 2023 09:57:45 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 12:34:51 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.3.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.13)
8
+
9
+ Tue, 20 Jun 2023 12:34:51 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.12..@fluentui/react-text_v9.3.13)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-shared-contexts to v9.5.1 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
15
+ - Bump @fluentui/react-theme to v9.1.9 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
16
+ - Bump @fluentui/react-utilities to v9.9.3 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
17
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
18
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
19
+
20
+ ## [9.3.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.12)
21
+
22
+ Wed, 31 May 2023 06:46:21 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.11..@fluentui/react-text_v9.3.12)
24
+
25
+ ### Patches
26
+
27
+ - chore: Update Griffel to v1.5.7. ([PR #27925](https://github.com/microsoft/fluentui/pull/27925) by seanmonahan@microsoft.com)
28
+ - Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
29
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
30
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
31
+
7
32
  ## [9.3.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.11)
8
33
 
9
- Thu, 25 May 2023 09:57:45 GMT
34
+ Thu, 25 May 2023 10:00:48 GMT
10
35
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.10..@fluentui/react-text_v9.3.11)
11
36
 
12
37
  ### Patches
package/lib/Body1.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Body1/index';
2
- //# sourceMappingURL=Body1.js.map
package/lib/Body1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Body1.ts"],"sourcesContent":["export * from './components/presets/Body1/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Body1.ts"],"sourcesContent":["export * from './components/presets/Body1/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Body1Strong/index';
2
- //# sourceMappingURL=Body1Strong.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Body1Strong.ts"],"sourcesContent":["export * from './components/presets/Body1Strong/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Body1Strong.ts"],"sourcesContent":["export * from './components/presets/Body1Strong/index';\n"],"names":[],"mappings":"AAAA,cAAc,yCAAyC"}
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Body1Stronger/index';
2
- //# sourceMappingURL=Body1Stronger.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Body1Stronger.ts"],"sourcesContent":["export * from './components/presets/Body1Stronger/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Body1Stronger.ts"],"sourcesContent":["export * from './components/presets/Body1Stronger/index';\n"],"names":[],"mappings":"AAAA,cAAc,2CAA2C"}
package/lib/Body2.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Body2/index';
2
- //# sourceMappingURL=Body2.js.map
package/lib/Body2.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Body2.ts"],"sourcesContent":["export * from './components/presets/Body2/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Body2.ts"],"sourcesContent":["export * from './components/presets/Body2/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
package/lib/Caption1.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Caption1/index';
2
- //# sourceMappingURL=Caption1.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Caption1.ts"],"sourcesContent":["export * from './components/presets/Caption1/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Caption1.ts"],"sourcesContent":["export * from './components/presets/Caption1/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Caption1Strong/index';
2
- //# sourceMappingURL=Caption1Strong.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Caption1Strong.ts"],"sourcesContent":["export * from './components/presets/Caption1Strong/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Caption1Strong.ts"],"sourcesContent":["export * from './components/presets/Caption1Strong/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Caption1Stronger/index';
2
- //# sourceMappingURL=Caption1Stronger.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Caption1Stronger.ts"],"sourcesContent":["export * from './components/presets/Caption1Stronger/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Caption1Stronger.ts"],"sourcesContent":["export * from './components/presets/Caption1Stronger/index';\n"],"names":[],"mappings":"AAAA,cAAc,8CAA8C"}
package/lib/Caption2.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Caption2/index';
2
- //# sourceMappingURL=Caption2.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Caption2.ts"],"sourcesContent":["export * from './components/presets/Caption2/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Caption2.ts"],"sourcesContent":["export * from './components/presets/Caption2/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Caption2Strong/index';
2
- //# sourceMappingURL=Caption2Strong.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Caption2Strong.ts"],"sourcesContent":["export * from './components/presets/Caption2Strong/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Caption2Strong.ts"],"sourcesContent":["export * from './components/presets/Caption2Strong/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
package/lib/Display.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Display/index';
2
- //# sourceMappingURL=Display.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Display.ts"],"sourcesContent":["export * from './components/presets/Display/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Display.ts"],"sourcesContent":["export * from './components/presets/Display/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
package/lib/LargeTitle.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/LargeTitle/index';
2
- //# sourceMappingURL=LargeTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/LargeTitle.ts"],"sourcesContent":["export * from './components/presets/LargeTitle/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["LargeTitle.ts"],"sourcesContent":["export * from './components/presets/LargeTitle/index';\n"],"names":[],"mappings":"AAAA,cAAc,wCAAwC"}
package/lib/Subtitle1.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Subtitle1/index';
2
- //# sourceMappingURL=Subtitle1.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Subtitle1.ts"],"sourcesContent":["export * from './components/presets/Subtitle1/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Subtitle1.ts"],"sourcesContent":["export * from './components/presets/Subtitle1/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
package/lib/Subtitle2.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Subtitle2/index';
2
- //# sourceMappingURL=Subtitle2.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Subtitle2.ts"],"sourcesContent":["export * from './components/presets/Subtitle2/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Subtitle2.ts"],"sourcesContent":["export * from './components/presets/Subtitle2/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Subtitle2Stronger/index';
2
- //# sourceMappingURL=Subtitle2Stronger.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Subtitle2Stronger.ts"],"sourcesContent":["export * from './components/presets/Subtitle2Stronger/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Subtitle2Stronger.ts"],"sourcesContent":["export * from './components/presets/Subtitle2Stronger/index';\n"],"names":[],"mappings":"AAAA,cAAc,+CAA+C"}
package/lib/Text.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/Text/index';
2
- //# sourceMappingURL=Text.js.map
package/lib/Text.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Text.ts"],"sourcesContent":["export * from './components/Text/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Text.ts"],"sourcesContent":["export * from './components/Text/index';\n"],"names":[],"mappings":"AAAA,cAAc,0BAA0B"}
package/lib/Title1.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Title1/index';
2
- //# sourceMappingURL=Title1.js.map
package/lib/Title1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Title1.ts"],"sourcesContent":["export * from './components/presets/Title1/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Title1.ts"],"sourcesContent":["export * from './components/presets/Title1/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
package/lib/Title2.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Title2/index';
2
- //# sourceMappingURL=Title2.js.map
package/lib/Title2.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Title2.ts"],"sourcesContent":["export * from './components/presets/Title2/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Title2.ts"],"sourcesContent":["export * from './components/presets/Title2/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
package/lib/Title3.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/presets/Title3/index';
2
- //# sourceMappingURL=Title3.js.map
package/lib/Title3.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Title3.ts"],"sourcesContent":["export * from './components/presets/Title3/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Title3.ts"],"sourcesContent":["export * from './components/presets/Title3/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
@@ -5,14 +5,11 @@ import { useTextStyles_unstable } from './useTextStyles.styles';
5
5
  import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
6
6
  /**
7
7
  * Typography and styling abstraction component used to ensure consistency of text.
8
- */
9
- export const Text = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useText_unstable(props, ref);
11
- useTextStyles_unstable(state);
12
- useCustomStyleHook_unstable('useTextStyles_unstable')(state);
13
- return renderText_unstable(state);
14
- // Work around some small mismatches in inferred types which don't matter in practice
8
+ */ export const Text = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
+ const state = useText_unstable(props, ref);
10
+ useTextStyles_unstable(state);
11
+ useCustomStyleHook_unstable('useTextStyles_unstable')(state);
12
+ return renderText_unstable(state);
13
+ // Work around some small mismatches in inferred types which don't matter in practice
15
14
  });
16
-
17
15
  Text.displayName = 'Text';
18
- //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useText_unstable","renderText_unstable","useTextStyles_unstable","useCustomStyleHook_unstable","Text","forwardRef","props","ref","state","displayName"],"sources":["../../../src/components/Text/Text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles.styles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTextStyles_unstable')(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,gBAAgB,QAAQ;AACjC,SAASC,mBAAmB,QAAQ;AACpC,SAASC,sBAAsB,QAAQ;AAGvC,SAASC,2BAA2B,QAAQ;AAE5C;;;AAGA,OAAO,MAAMC,IAAA,gBAAuCL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACnF,MAAMC,KAAA,GAAQR,gBAAA,CAAiBM,KAAA,EAAOC,GAAA;EAEtCL,sBAAA,CAAuBM,KAAA;EAEvBL,2BAAA,CAA4B,0BAA0BK,KAAA;EAEtD,OAAOP,mBAAA,CAAoBO,KAAA;EAC3B;AACF;;AAEAJ,IAAA,CAAKK,WAAW,GAAG"}
1
+ {"version":3,"sources":["Text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles.styles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTextStyles_unstable')(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"names":["React","useText_unstable","renderText_unstable","useTextStyles_unstable","useCustomStyleHook_unstable","Text","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,sBAAsB,QAAQ,yBAAyB;AAGhE,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,qBAAuCL,MAAMM,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACnF,MAAMC,QAAQR,iBAAiBM,OAAOC;IAEtCL,uBAAuBM;IAEvBL,4BAA4B,0BAA0BK;IAEtD,OAAOP,oBAAoBO;AAC3B,qFAAqF;AACvF,GAAqC;AAErCJ,KAAKK,WAAW,GAAG"}
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Text.types.js.map
1
+ export { };
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/Text/Text.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;\n};\n\n/**\n * Text Props\n */\nexport type TextProps = ComponentProps<TextSlots> & {\n /**\n * Aligns text based on the parent container.\n *\n * @default start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Applies a block display for the content.\n *\n * @default false\n */\n block?: boolean;\n\n /**\n * Applies the font family to the content.\n *\n * @default base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies the italic font style to the content.\n *\n * @default false\n */\n italic?: boolean;\n\n /**\n * Applies font size and line height based on the theme typography tokens.\n *\n * @default 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @default false\n */\n strikethrough?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @default false\n */\n\n truncate?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @default false\n */\n underline?: boolean;\n\n /**\n * Applies font weight to the content.\n *\n * @default regular\n */\n weight?: 'regular' | 'medium' | 'semibold' | 'bold';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\n\n/**\n * TextPreset Props\n */\nexport type TextPresetProps = Omit<TextProps, 'font' | 'size' | 'weight'>;\n\n/**\n * State used in rendering Text\n */\nexport type TextState = ComponentState<TextSlots> &\n Required<\n Pick<\n TextProps,\n 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'\n >\n >;\n"],"mappings":"AAAA"}
1
+ {"version":3,"sources":["Text.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;\n};\n\n/**\n * Text Props\n */\nexport type TextProps = ComponentProps<TextSlots> & {\n /**\n * Aligns text based on the parent container.\n *\n * @default start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Applies a block display for the content.\n *\n * @default false\n */\n block?: boolean;\n\n /**\n * Applies the font family to the content.\n *\n * @default base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies the italic font style to the content.\n *\n * @default false\n */\n italic?: boolean;\n\n /**\n * Applies font size and line height based on the theme typography tokens.\n *\n * @default 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @default false\n */\n strikethrough?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @default false\n */\n\n truncate?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @default false\n */\n underline?: boolean;\n\n /**\n * Applies font weight to the content.\n *\n * @default regular\n */\n weight?: 'regular' | 'medium' | 'semibold' | 'bold';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\n\n/**\n * TextPreset Props\n */\nexport type TextPresetProps = Omit<TextProps, 'font' | 'size' | 'weight'>;\n\n/**\n * State used in rendering Text\n */\nexport type TextState = ComponentState<TextSlots> &\n Required<\n Pick<\n TextProps,\n 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'\n >\n >;\n"],"names":[],"mappings":"AAAA,WAmGI"}
@@ -3,4 +3,3 @@ export * from './Text.types';
3
3
  export * from './renderText';
4
4
  export * from './useText';
5
5
  export * from './useTextStyles.styles';
6
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/Text/index.ts"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles.styles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,yBAAyB"}
@@ -1,13 +1,8 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
1
+ /** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
2
2
  import { getSlotsNext } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of Text
5
- */
6
- export const renderText_unstable = state => {
7
- const {
8
- slots,
9
- slotProps
10
- } = getSlotsNext(state);
11
- return /*#__PURE__*/createElement(slots.root, slotProps.root);
5
+ */ export const renderText_unstable = (state)=>{
6
+ const { slots , slotProps } = getSlotsNext(state);
7
+ return /*#__PURE__*/ createElement(slots.root, slotProps.root);
12
8
  };
13
- //# sourceMappingURL=renderText.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","getSlotsNext","renderText_unstable","state","slots","slotProps","root"],"sources":["../../../src/components/Text/renderText.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlotsNext<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAG7B;;;AAGA,OAAO,MAAMC,mBAAA,GAAuBC,KAAA,IAAqB;EACvD,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGJ,YAAA,CAAwBE,KAAA;EAErD,oBAAOH,aAbT,CAaUI,KAAA,CAAME,IAAI,EAAKD,SAAA,CAAUC,IAAI;AACvC"}
1
+ {"version":3,"sources":["renderText.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlotsNext<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"names":["createElement","getSlotsNext","renderText_unstable","state","slots","slotProps","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,YAAY,QAAQ,4BAA4B;AAGzD;;CAEC,GACD,OAAO,MAAMC,sBAAsB,CAACC,QAAqB;IACvD,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGJ,aAAwBE;IAErD,qBAAO,AAbT,cAaUC,MAAME,IAAI,EAAKD,UAAUC,IAAI;AACvC,EAAE"}
@@ -8,42 +8,29 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
8
8
  *
9
9
  * @param props - props from this instance of Text
10
10
  * @param ref - reference to root HTMLElement of Text
11
- */
12
- export const useText_unstable = (props, ref) => {
13
- const {
14
- wrap,
15
- truncate,
16
- block,
17
- italic,
18
- underline,
19
- strikethrough,
20
- size,
21
- font,
22
- weight,
23
- align
24
- } = props;
25
- var _props_as;
26
- const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';
27
- const state = {
28
- align: align !== null && align !== void 0 ? align : 'start',
29
- block: block !== null && block !== void 0 ? block : false,
30
- font: font !== null && font !== void 0 ? font : 'base',
31
- italic: italic !== null && italic !== void 0 ? italic : false,
32
- size: size !== null && size !== void 0 ? size : 300,
33
- strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
34
- truncate: truncate !== null && truncate !== void 0 ? truncate : false,
35
- underline: underline !== null && underline !== void 0 ? underline : false,
36
- weight: weight !== null && weight !== void 0 ? weight : 'regular',
37
- wrap: wrap !== null && wrap !== void 0 ? wrap : true,
38
- components: {
39
- root: 'span'
40
- },
41
- root: getNativeElementProps(as, {
42
- ref,
43
- ...props,
44
- as
45
- })
46
- };
47
- return state;
11
+ */ export const useText_unstable = (props, ref)=>{
12
+ const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = props;
13
+ var _props_as;
14
+ const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';
15
+ const state = {
16
+ align: align !== null && align !== void 0 ? align : 'start',
17
+ block: block !== null && block !== void 0 ? block : false,
18
+ font: font !== null && font !== void 0 ? font : 'base',
19
+ italic: italic !== null && italic !== void 0 ? italic : false,
20
+ size: size !== null && size !== void 0 ? size : 300,
21
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
22
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
23
+ underline: underline !== null && underline !== void 0 ? underline : false,
24
+ weight: weight !== null && weight !== void 0 ? weight : 'regular',
25
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
26
+ components: {
27
+ root: 'span'
28
+ },
29
+ root: getNativeElementProps(as, {
30
+ ref,
31
+ ...props,
32
+ as
33
+ })
34
+ };
35
+ return state;
48
36
  };
49
- //# sourceMappingURL=useText.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","_props_as","as","state","components","root"],"sources":["../../../src/components/Text/useText.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAGtC;;;;;;;;;AASA,OAAO,MAAMC,gBAAA,GAAmBA,CAACC,KAAA,EAAkBC,GAAA,KAA2C;EAC5F,MAAM;IAAEC,IAAA;IAAMC,QAAA;IAAUC,KAAA;IAAOC,MAAA;IAAQC,SAAA;IAAWC,aAAA;IAAeC,IAAA;IAAMC,IAAA;IAAMC,MAAA;IAAQC;EAAK,CAAE,GAAGX,KAAA;MACpFY,SAAA;EAAX,MAAMC,EAAA,GAAK,CAAAD,SAAA,GAAAZ,KAAA,CAAMa,EAAE,cAARD,SAAA,cAAAA,SAAA,GAAY,MAAM;EAE7B,MAAME,KAAA,GAAmB;IACvBH,KAAA,EAAOA,KAAA,aAAAA,KAAA,cAAAA,KAAA,GAAS,OAAO;IACvBP,KAAA,EAAOA,KAAA,aAAAA,KAAA,cAAAA,KAAA,GAAS,KAAK;IACrBK,IAAA,EAAMA,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAQ,MAAM;IACpBJ,MAAA,EAAQA,MAAA,aAAAA,MAAA,cAAAA,MAAA,GAAU,KAAK;IACvBG,IAAA,EAAMA,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAQ,GAAG;IACjBD,aAAA,EAAeA,aAAA,aAAAA,aAAA,cAAAA,aAAA,GAAiB,KAAK;IACrCJ,QAAA,EAAUA,QAAA,aAAAA,QAAA,cAAAA,QAAA,GAAY,KAAK;IAC3BG,SAAA,EAAWA,SAAA,aAAAA,SAAA,cAAAA,SAAA,GAAa,KAAK;IAC7BI,MAAA,EAAQA,MAAA,aAAAA,MAAA,cAAAA,MAAA,GAAU,SAAS;IAC3BR,IAAA,EAAMA,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAQ,IAAI;IAElBa,UAAA,EAAY;MAAEC,IAAA,EAAM;IAAO;IAE3BA,IAAA,EAAMlB,qBAAA,CAAsBe,EAAA,EAAI;MAC9BZ,GAAA;MACA,GAAGD,KAAK;MACRa;IACF;EACF;EAEA,OAAOC,KAAA;AACT"}
1
+ {"version":3,"sources":["useText.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"names":["React","getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,QAAQ,4BAA4B;AAGlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,mBAAmB,CAACC,OAAkBC,MAA2C;IAC5F,MAAM,EAAEC,KAAI,EAAEC,SAAQ,EAAEC,MAAK,EAAEC,OAAM,EAAEC,UAAS,EAAEC,cAAa,EAAEC,KAAI,EAAEC,KAAI,EAAEC,OAAM,EAAEC,MAAK,EAAE,GAAGX;QACpFA;IAAX,MAAMY,KAAKZ,CAAAA,YAAAA,MAAMY,EAAE,cAARZ,uBAAAA,YAAY,MAAM;IAE7B,MAAMa,QAAmB;QACvBF,OAAOA,kBAAAA,mBAAAA,QAAS,OAAO;QACvBP,OAAOA,kBAAAA,mBAAAA,QAAS,KAAK;QACrBK,MAAMA,iBAAAA,kBAAAA,OAAQ,MAAM;QACpBJ,QAAQA,mBAAAA,oBAAAA,SAAU,KAAK;QACvBG,MAAMA,iBAAAA,kBAAAA,OAAQ,GAAG;QACjBD,eAAeA,0BAAAA,2BAAAA,gBAAiB,KAAK;QACrCJ,UAAUA,qBAAAA,sBAAAA,WAAY,KAAK;QAC3BG,WAAWA,sBAAAA,uBAAAA,YAAa,KAAK;QAC7BI,QAAQA,mBAAAA,oBAAAA,SAAU,SAAS;QAC3BR,MAAMA,iBAAAA,kBAAAA,OAAQ,IAAI;QAElBY,YAAY;YAAEC,MAAM;QAAO;QAE3BA,MAAMjB,sBAAsBc,IAAI;YAC9BX;YACA,GAAGD,KAAK;YACRY;QACF;IACF;IAEA,OAAOC;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","mergeClasses","shorthands","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","ygn44y","nowrap","truncate","block","italic","B80ckks","underline","w71qe1","strikethrough","strikethroughUnderline","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","monospace","numeric","weightMedium","weightSemibold","weightBold","alignCenter","alignEnd","alignJustify","d","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"sources":["../../../src/components/Text/useTextStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n weightBold: {\n fontWeight: tokens.fontWeightBold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.weight === 'bold' && styles.weightBold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ;AACrD,SAASC,MAAM,QAAQ;AAIvB,OAAO,MAAMC,cAAA,GAA4C;EACvDC,IAAA,EAAM;AACR;AAEA;;;AAGA,MAAMC,SAAA,gBAAYN,QAAA;EAAAK,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,MAAA;IAAAJ,MAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAG,QAAA;IAAAF,MAAA;EAA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W,EAC9CK,KAAA,CAAMO,KAAK,KAAK,SAASN,MAAA,CAAOL,QAAQ,EACxCI,KAAA,CAAMO,KAAK,KAAK,aAAaN,MAAA,CAAOJ,YAAY,EAChDG,KAAA,CAAMxC,IAAI,CAAC0C,SAAS;EAGtB,OAAOF,KAAA;AACT"}
1
+ {"version":3,"names":["__styles","mergeClasses","shorthands","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","ygn44y","nowrap","truncate","block","italic","B80ckks","underline","w71qe1","strikethrough","strikethroughUnderline","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","monospace","numeric","weightMedium","weightSemibold","weightBold","alignCenter","alignEnd","alignJustify","d","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"sources":["useTextStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const textClassNames = {\n root: 'fui-Text'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip'\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden')\n },\n truncate: {\n textOverflow: 'ellipsis'\n },\n block: {\n display: 'block'\n },\n italic: {\n fontStyle: 'italic'\n },\n underline: {\n textDecorationLine: 'underline'\n },\n strikethrough: {\n textDecorationLine: 'line-through'\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline'\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold\n },\n weightBold: {\n fontWeight: tokens.fontWeightBold\n },\n alignCenter: {\n textAlign: 'center'\n },\n alignEnd: {\n textAlign: 'end'\n },\n alignJustify: {\n textAlign: 'justify'\n }\n});\n/**\n * Apply styling to the Text slots based on the state\n */ export const useTextStyles_unstable = (state)=>{\n const styles = useStyles();\n state.root.className = mergeClasses(textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignE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EAAEc,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACd,OAAO,EAAEa,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACb,OAAO,EAAEY,KAAK,CAACI,IAAI,KAAK,IAAI,IAAIH,MAAM,CAACZ,QAAQ,EAAEW,KAAK,CAACK,IAAI,KAAK,WAAW,IAAIJ,MAAM,CAACX,SAAS,EAAEU,KAAK,CAACK,IAAI,KAAK,SAAS,IAAIJ,MAAM,CAACV,OAAO,EAAES,KAAK,CAACM,MAAM,KAAK,QAAQ,IAAIL,MAAM,CAACT,YAAY,EAAEQ,KAAK,CAACM,MAAM,KAAK,UAAU,IAAIL,MAAM,CAACR,cAAc,EAAEO,KAAK,CAACM,MAAM,KAAK,MAAM,IAAIL,MAAM,CAACP,UAAU,EAAEM,KAAK,CAACO,KAAK,KAAK,QAAQ,IAAIN,MAAM,CAACN,WAAW,EAAEK,KAAK,CAACO,KAAK,KAAK,KAAK,IAAIN,MAAM,CAACL,QAAQ,EAAEI,KAAK,CAACO,KAAK,KAAK,SAAS,IAAIN,MAAM,CAACJ,YAAY,EAAEG,KAAK,CAACxC,IAAI,CAAC0C,SAAS,CAAC;EACllC,OAAOF,KAAK;AAChB,CAAC"}
@@ -2,10 +2,8 @@ import { createPreset } from '../createPreset';
2
2
  import { body1ClassNames, useBody1Styles } from './useBody1Styles.styles';
3
3
  /**
4
4
  * Text preset component for the Body1 typography variant
5
- */
6
- export const Body1 = /*#__PURE__*/createPreset({
7
- useStyles: useBody1Styles,
8
- className: body1ClassNames.root,
9
- displayName: 'Body1'
5
+ */ export const Body1 = createPreset({
6
+ useStyles: useBody1Styles,
7
+ className: body1ClassNames.root,
8
+ displayName: 'Body1'
10
9
  });
11
- //# sourceMappingURL=Body1.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createPreset","body1ClassNames","useBody1Styles","Body1","useStyles","className","root","displayName"],"sources":["../../../../src/components/presets/Body1/Body1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1ClassNames, useBody1Styles } from './useBody1Styles.styles';\n\n/**\n * Text preset component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1Styles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"mappings":"AACA,SAASA,YAAY,QAAQ;AAE7B,SAASC,eAAe,EAAEC,cAAc,QAAQ;AAEhD;;;AAGA,OAAO,MAAMC,KAAA,gBAA4CH,YAAA,CAAa;EACpEI,SAAA,EAAWF,cAAA;EACXG,SAAA,EAAWJ,eAAA,CAAgBK,IAAI;EAC/BC,WAAA,EAAa;AACf"}
1
+ {"version":3,"sources":["Body1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1ClassNames, useBody1Styles } from './useBody1Styles.styles';\n\n/**\n * Text preset component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1Styles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"names":["createPreset","body1ClassNames","useBody1Styles","Body1","useStyles","className","root","displayName"],"mappings":"AACA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,SAASC,eAAe,EAAEC,cAAc,QAAQ,0BAA0B;AAE1E;;CAEC,GACD,OAAO,MAAMC,QAA4CH,aAAa;IACpEI,WAAWF;IACXG,WAAWJ,gBAAgBK,IAAI;IAC/BC,aAAa;AACf,GAAG"}
@@ -1,3 +1,2 @@
1
1
  export * from './Body1';
2
2
  export { body1ClassNames } from './useBody1Styles.styles';
3
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["body1ClassNames"],"sources":["../../../../src/components/presets/Body1/index.ts"],"sourcesContent":["export * from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"mappings":"AAAA,cAAc;AACd,SAASA,eAAe,QAAQ"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"names":["body1ClassNames"],"mappings":"AAAA,cAAc,UAAU;AACxB,SAASA,eAAe,QAAQ,0BAA0B"}
@@ -1 +1 @@
1
- {"version":3,"names":["__styles","typographyStyles","body1ClassNames","root","useBody1Styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"sources":["../../../../src/components/presets/Body1/useBody1Styles.styles.ts"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport type { 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 */\nexport const useBody1Styles = makeStyles({\n root: typographyStyles.body1,\n});\n"],"mappings":"AAAA,SAAAA,QAAA,QAA2B;AAG3B,SAASC,gBAAgB,QAAQ;AAEjC,OAAO,MAAMC,eAAA,GAA6C;EACxDC,IAAA,EAAM;AACR;AAEA;;;AAGA,OAAO,MAAMC,cAAA,gBAAiBJ,QAAA;EAAAG,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAE9B"}
1
+ {"version":3,"names":["__styles","typographyStyles","body1ClassNames","root","useBody1Styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"sources":["useBody1Styles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const body1ClassNames = {\n root: 'fui-Body1'\n};\n/**\n * Styles for the root slot\n */ export const useBody1Styles = makeStyles({\n root: typographyStyles.body1\n});\n"],"mappings":"AAAA,SAAAA,QAAA,QAA2B,gBAAgB;AAC3C,SAASC,gBAAgB,QAAQ,uBAAuB;AACxD,OAAO,MAAMC,eAAe,GAAG;EAC3BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,cAAc,gBAAGJ,QAAA;EAAAG,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,CAEjC,CAAC"}