@fluentui/react-text 9.3.1 → 9.3.2

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 (306) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +46 -1
  3. package/CHANGELOG.md +16 -2
  4. package/lib/Body1.js.map +1 -1
  5. package/lib/Body1Strong.js.map +1 -1
  6. package/lib/Body1Stronger.js.map +1 -1
  7. package/lib/Body2.js.map +1 -1
  8. package/lib/Caption1.js.map +1 -1
  9. package/lib/Caption1Strong.js.map +1 -1
  10. package/lib/Caption1Stronger.js.map +1 -1
  11. package/lib/Caption2.js.map +1 -1
  12. package/lib/Caption2Strong.js.map +1 -1
  13. package/lib/Display.js.map +1 -1
  14. package/lib/LargeTitle.js.map +1 -1
  15. package/lib/Subtitle1.js.map +1 -1
  16. package/lib/Subtitle2.js.map +1 -1
  17. package/lib/Subtitle2Stronger.js.map +1 -1
  18. package/lib/Text.js.map +1 -1
  19. package/lib/Title1.js.map +1 -1
  20. package/lib/Title2.js.map +1 -1
  21. package/lib/Title3.js.map +1 -1
  22. package/lib/components/Text/Text.js.map +1 -1
  23. package/lib/components/Text/Text.types.js.map +1 -1
  24. package/lib/components/Text/index.js.map +1 -1
  25. package/lib/components/Text/renderText.js +1 -3
  26. package/lib/components/Text/renderText.js.map +1 -1
  27. package/lib/components/Text/useText.js +3 -2
  28. package/lib/components/Text/useText.js.map +1 -1
  29. package/lib/components/Text/useTextStyles.js.map +1 -1
  30. package/lib/components/presets/Body1/Body1.js.map +1 -1
  31. package/lib/components/presets/Body1/index.js.map +1 -1
  32. package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  33. package/lib/components/presets/Body1Strong/index.js.map +1 -1
  34. package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  35. package/lib/components/presets/Body1Stronger/index.js.map +1 -1
  36. package/lib/components/presets/Body2/Body2.js.map +1 -1
  37. package/lib/components/presets/Body2/index.js.map +1 -1
  38. package/lib/components/presets/Caption1/Caption1.js.map +1 -1
  39. package/lib/components/presets/Caption1/index.js.map +1 -1
  40. package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  41. package/lib/components/presets/Caption1Strong/index.js.map +1 -1
  42. package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  43. package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
  44. package/lib/components/presets/Caption2/Caption2.js.map +1 -1
  45. package/lib/components/presets/Caption2/index.js.map +1 -1
  46. package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  47. package/lib/components/presets/Caption2Strong/index.js.map +1 -1
  48. package/lib/components/presets/Display/Display.js.map +1 -1
  49. package/lib/components/presets/Display/index.js.map +1 -1
  50. package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  51. package/lib/components/presets/LargeTitle/index.js.map +1 -1
  52. package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  53. package/lib/components/presets/Subtitle1/index.js.map +1 -1
  54. package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  55. package/lib/components/presets/Subtitle2/index.js.map +1 -1
  56. package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  57. package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
  58. package/lib/components/presets/Title1/Title1.js.map +1 -1
  59. package/lib/components/presets/Title1/index.js.map +1 -1
  60. package/lib/components/presets/Title2/Title2.js.map +1 -1
  61. package/lib/components/presets/Title2/index.js.map +1 -1
  62. package/lib/components/presets/Title3/Title3.js.map +1 -1
  63. package/lib/components/presets/Title3/index.js.map +1 -1
  64. package/lib/components/presets/createPreset.js.map +1 -1
  65. package/lib/index.js.map +1 -1
  66. package/lib-commonjs/Body1.js +5 -4
  67. package/lib-commonjs/Body1.js.map +1 -1
  68. package/lib-commonjs/Body1Strong.js +5 -4
  69. package/lib-commonjs/Body1Strong.js.map +1 -1
  70. package/lib-commonjs/Body1Stronger.js +5 -4
  71. package/lib-commonjs/Body1Stronger.js.map +1 -1
  72. package/lib-commonjs/Body2.js +5 -4
  73. package/lib-commonjs/Body2.js.map +1 -1
  74. package/lib-commonjs/Caption1.js +5 -4
  75. package/lib-commonjs/Caption1.js.map +1 -1
  76. package/lib-commonjs/Caption1Strong.js +5 -4
  77. package/lib-commonjs/Caption1Strong.js.map +1 -1
  78. package/lib-commonjs/Caption1Stronger.js +5 -4
  79. package/lib-commonjs/Caption1Stronger.js.map +1 -1
  80. package/lib-commonjs/Caption2.js +5 -4
  81. package/lib-commonjs/Caption2.js.map +1 -1
  82. package/lib-commonjs/Caption2Strong.js +5 -4
  83. package/lib-commonjs/Caption2Strong.js.map +1 -1
  84. package/lib-commonjs/Display.js +5 -4
  85. package/lib-commonjs/Display.js.map +1 -1
  86. package/lib-commonjs/LargeTitle.js +5 -4
  87. package/lib-commonjs/LargeTitle.js.map +1 -1
  88. package/lib-commonjs/Subtitle1.js +5 -4
  89. package/lib-commonjs/Subtitle1.js.map +1 -1
  90. package/lib-commonjs/Subtitle2.js +5 -4
  91. package/lib-commonjs/Subtitle2.js.map +1 -1
  92. package/lib-commonjs/Subtitle2Stronger.js +5 -4
  93. package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
  94. package/lib-commonjs/Text.js +5 -4
  95. package/lib-commonjs/Text.js.map +1 -1
  96. package/lib-commonjs/Title1.js +5 -4
  97. package/lib-commonjs/Title1.js.map +1 -1
  98. package/lib-commonjs/Title2.js +5 -4
  99. package/lib-commonjs/Title2.js.map +1 -1
  100. package/lib-commonjs/Title3.js +5 -4
  101. package/lib-commonjs/Title3.js.map +1 -1
  102. package/lib-commonjs/components/Text/Text.js +19 -21
  103. package/lib-commonjs/components/Text/Text.js.map +1 -1
  104. package/lib-commonjs/components/Text/Text.types.js +3 -2
  105. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  106. package/lib-commonjs/components/Text/index.js +9 -8
  107. package/lib-commonjs/components/Text/index.js.map +1 -1
  108. package/lib-commonjs/components/Text/renderText.js +13 -18
  109. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  110. package/lib-commonjs/components/Text/useText.js +35 -51
  111. package/lib-commonjs/components/Text/useText.js.map +1 -1
  112. package/lib-commonjs/components/Text/useTextStyles.js +163 -114
  113. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  114. package/lib-commonjs/components/presets/Body1/Body1.js +34 -25
  115. package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
  116. package/lib-commonjs/components/presets/Body1/index.js +5 -4
  117. package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
  118. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +34 -25
  119. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  120. package/lib-commonjs/components/presets/Body1Strong/index.js +5 -4
  121. package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
  122. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +34 -25
  123. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  124. package/lib-commonjs/components/presets/Body1Stronger/index.js +5 -4
  125. package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
  126. package/lib-commonjs/components/presets/Body2/Body2.js +34 -25
  127. package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
  128. package/lib-commonjs/components/presets/Body2/index.js +5 -4
  129. package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
  130. package/lib-commonjs/components/presets/Caption1/Caption1.js +34 -25
  131. package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
  132. package/lib-commonjs/components/presets/Caption1/index.js +5 -4
  133. package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
  134. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +34 -25
  135. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  136. package/lib-commonjs/components/presets/Caption1Strong/index.js +5 -4
  137. package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
  138. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +34 -25
  139. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  140. package/lib-commonjs/components/presets/Caption1Stronger/index.js +5 -4
  141. package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
  142. package/lib-commonjs/components/presets/Caption2/Caption2.js +34 -25
  143. package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
  144. package/lib-commonjs/components/presets/Caption2/index.js +5 -4
  145. package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
  146. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +34 -25
  147. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  148. package/lib-commonjs/components/presets/Caption2Strong/index.js +5 -4
  149. package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
  150. package/lib-commonjs/components/presets/Display/Display.js +34 -25
  151. package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
  152. package/lib-commonjs/components/presets/Display/index.js +5 -4
  153. package/lib-commonjs/components/presets/Display/index.js.map +1 -1
  154. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +34 -25
  155. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  156. package/lib-commonjs/components/presets/LargeTitle/index.js +5 -4
  157. package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
  158. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +34 -25
  159. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  160. package/lib-commonjs/components/presets/Subtitle1/index.js +5 -4
  161. package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
  162. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +34 -25
  163. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  164. package/lib-commonjs/components/presets/Subtitle2/index.js +5 -4
  165. package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
  166. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +34 -25
  167. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  168. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +5 -4
  169. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
  170. package/lib-commonjs/components/presets/Title1/Title1.js +34 -25
  171. package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
  172. package/lib-commonjs/components/presets/Title1/index.js +5 -4
  173. package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
  174. package/lib-commonjs/components/presets/Title2/Title2.js +34 -25
  175. package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
  176. package/lib-commonjs/components/presets/Title2/index.js +5 -4
  177. package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
  178. package/lib-commonjs/components/presets/Title3/Title3.js +34 -25
  179. package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
  180. package/lib-commonjs/components/presets/Title3/index.js +5 -4
  181. package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
  182. package/lib-commonjs/components/presets/createPreset.js +21 -22
  183. package/lib-commonjs/components/presets/createPreset.js.map +1 -1
  184. package/lib-commonjs/index.js +69 -256
  185. package/lib-commonjs/index.js.map +1 -1
  186. package/package.json +8 -7
  187. package/lib-amd/Body1.js +0 -6
  188. package/lib-amd/Body1.js.map +0 -1
  189. package/lib-amd/Body1Strong.js +0 -6
  190. package/lib-amd/Body1Strong.js.map +0 -1
  191. package/lib-amd/Body1Stronger.js +0 -6
  192. package/lib-amd/Body1Stronger.js.map +0 -1
  193. package/lib-amd/Body2.js +0 -6
  194. package/lib-amd/Body2.js.map +0 -1
  195. package/lib-amd/Caption1.js +0 -6
  196. package/lib-amd/Caption1.js.map +0 -1
  197. package/lib-amd/Caption1Strong.js +0 -6
  198. package/lib-amd/Caption1Strong.js.map +0 -1
  199. package/lib-amd/Caption1Stronger.js +0 -6
  200. package/lib-amd/Caption1Stronger.js.map +0 -1
  201. package/lib-amd/Caption2.js +0 -6
  202. package/lib-amd/Caption2.js.map +0 -1
  203. package/lib-amd/Caption2Strong.js +0 -6
  204. package/lib-amd/Caption2Strong.js.map +0 -1
  205. package/lib-amd/Display.js +0 -6
  206. package/lib-amd/Display.js.map +0 -1
  207. package/lib-amd/LargeTitle.js +0 -6
  208. package/lib-amd/LargeTitle.js.map +0 -1
  209. package/lib-amd/Subtitle1.js +0 -6
  210. package/lib-amd/Subtitle1.js.map +0 -1
  211. package/lib-amd/Subtitle2.js +0 -6
  212. package/lib-amd/Subtitle2.js.map +0 -1
  213. package/lib-amd/Subtitle2Stronger.js +0 -6
  214. package/lib-amd/Subtitle2Stronger.js.map +0 -1
  215. package/lib-amd/Text.js +0 -6
  216. package/lib-amd/Text.js.map +0 -1
  217. package/lib-amd/Title1.js +0 -6
  218. package/lib-amd/Title1.js.map +0 -1
  219. package/lib-amd/Title2.js +0 -6
  220. package/lib-amd/Title2.js.map +0 -1
  221. package/lib-amd/Title3.js +0 -6
  222. package/lib-amd/Title3.js.map +0 -1
  223. package/lib-amd/components/Text/Text.js +0 -18
  224. package/lib-amd/components/Text/Text.js.map +0 -1
  225. package/lib-amd/components/Text/Text.types.js +0 -5
  226. package/lib-amd/components/Text/Text.types.js.map +0 -1
  227. package/lib-amd/components/Text/index.js +0 -10
  228. package/lib-amd/components/Text/index.js.map +0 -1
  229. package/lib-amd/components/Text/renderText.js +0 -14
  230. package/lib-amd/components/Text/renderText.js.map +0 -1
  231. package/lib-amd/components/Text/useText.js +0 -36
  232. package/lib-amd/components/Text/useText.js.map +0 -1
  233. package/lib-amd/components/Text/useTextStyles.js +0 -103
  234. package/lib-amd/components/Text/useTextStyles.js.map +0 -1
  235. package/lib-amd/components/presets/Body1/Body1.js +0 -23
  236. package/lib-amd/components/presets/Body1/Body1.js.map +0 -1
  237. package/lib-amd/components/presets/Body1/index.js +0 -6
  238. package/lib-amd/components/presets/Body1/index.js.map +0 -1
  239. package/lib-amd/components/presets/Body1Strong/Body1Strong.js +0 -23
  240. package/lib-amd/components/presets/Body1Strong/Body1Strong.js.map +0 -1
  241. package/lib-amd/components/presets/Body1Strong/index.js +0 -6
  242. package/lib-amd/components/presets/Body1Strong/index.js.map +0 -1
  243. package/lib-amd/components/presets/Body1Stronger/Body1Stronger.js +0 -23
  244. package/lib-amd/components/presets/Body1Stronger/Body1Stronger.js.map +0 -1
  245. package/lib-amd/components/presets/Body1Stronger/index.js +0 -6
  246. package/lib-amd/components/presets/Body1Stronger/index.js.map +0 -1
  247. package/lib-amd/components/presets/Body2/Body2.js +0 -23
  248. package/lib-amd/components/presets/Body2/Body2.js.map +0 -1
  249. package/lib-amd/components/presets/Body2/index.js +0 -6
  250. package/lib-amd/components/presets/Body2/index.js.map +0 -1
  251. package/lib-amd/components/presets/Caption1/Caption1.js +0 -23
  252. package/lib-amd/components/presets/Caption1/Caption1.js.map +0 -1
  253. package/lib-amd/components/presets/Caption1/index.js +0 -6
  254. package/lib-amd/components/presets/Caption1/index.js.map +0 -1
  255. package/lib-amd/components/presets/Caption1Strong/Caption1Strong.js +0 -23
  256. package/lib-amd/components/presets/Caption1Strong/Caption1Strong.js.map +0 -1
  257. package/lib-amd/components/presets/Caption1Strong/index.js +0 -6
  258. package/lib-amd/components/presets/Caption1Strong/index.js.map +0 -1
  259. package/lib-amd/components/presets/Caption1Stronger/Caption1Stronger.js +0 -23
  260. package/lib-amd/components/presets/Caption1Stronger/Caption1Stronger.js.map +0 -1
  261. package/lib-amd/components/presets/Caption1Stronger/index.js +0 -6
  262. package/lib-amd/components/presets/Caption1Stronger/index.js.map +0 -1
  263. package/lib-amd/components/presets/Caption2/Caption2.js +0 -23
  264. package/lib-amd/components/presets/Caption2/Caption2.js.map +0 -1
  265. package/lib-amd/components/presets/Caption2/index.js +0 -6
  266. package/lib-amd/components/presets/Caption2/index.js.map +0 -1
  267. package/lib-amd/components/presets/Caption2Strong/Caption2Strong.js +0 -23
  268. package/lib-amd/components/presets/Caption2Strong/Caption2Strong.js.map +0 -1
  269. package/lib-amd/components/presets/Caption2Strong/index.js +0 -6
  270. package/lib-amd/components/presets/Caption2Strong/index.js.map +0 -1
  271. package/lib-amd/components/presets/Display/Display.js +0 -23
  272. package/lib-amd/components/presets/Display/Display.js.map +0 -1
  273. package/lib-amd/components/presets/Display/index.js +0 -6
  274. package/lib-amd/components/presets/Display/index.js.map +0 -1
  275. package/lib-amd/components/presets/LargeTitle/LargeTitle.js +0 -23
  276. package/lib-amd/components/presets/LargeTitle/LargeTitle.js.map +0 -1
  277. package/lib-amd/components/presets/LargeTitle/index.js +0 -6
  278. package/lib-amd/components/presets/LargeTitle/index.js.map +0 -1
  279. package/lib-amd/components/presets/Subtitle1/Subtitle1.js +0 -23
  280. package/lib-amd/components/presets/Subtitle1/Subtitle1.js.map +0 -1
  281. package/lib-amd/components/presets/Subtitle1/index.js +0 -6
  282. package/lib-amd/components/presets/Subtitle1/index.js.map +0 -1
  283. package/lib-amd/components/presets/Subtitle2/Subtitle2.js +0 -23
  284. package/lib-amd/components/presets/Subtitle2/Subtitle2.js.map +0 -1
  285. package/lib-amd/components/presets/Subtitle2/index.js +0 -6
  286. package/lib-amd/components/presets/Subtitle2/index.js.map +0 -1
  287. package/lib-amd/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +0 -23
  288. package/lib-amd/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +0 -1
  289. package/lib-amd/components/presets/Subtitle2Stronger/index.js +0 -6
  290. package/lib-amd/components/presets/Subtitle2Stronger/index.js.map +0 -1
  291. package/lib-amd/components/presets/Title1/Title1.js +0 -23
  292. package/lib-amd/components/presets/Title1/Title1.js.map +0 -1
  293. package/lib-amd/components/presets/Title1/index.js +0 -6
  294. package/lib-amd/components/presets/Title1/index.js.map +0 -1
  295. package/lib-amd/components/presets/Title2/Title2.js +0 -23
  296. package/lib-amd/components/presets/Title2/Title2.js.map +0 -1
  297. package/lib-amd/components/presets/Title2/index.js +0 -6
  298. package/lib-amd/components/presets/Title2/index.js.map +0 -1
  299. package/lib-amd/components/presets/Title3/Title3.js +0 -23
  300. package/lib-amd/components/presets/Title3/Title3.js.map +0 -1
  301. package/lib-amd/components/presets/Title3/index.js +0 -6
  302. package/lib-amd/components/presets/Title3/index.js.map +0 -1
  303. package/lib-amd/components/presets/createPreset.js +0 -19
  304. package/lib-amd/components/presets/createPreset.js.map +0 -1
  305. package/lib-amd/index.js +0 -45
  306. package/lib-amd/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","require","useText_1","renderText_1","useTextStyles_1","react_shared_contexts_1","exports","Text","forwardRef","props","ref","state","useText_unstable","useTextStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderText_unstable","displayName"],"sources":["../src/packages/react-components/react-text/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';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_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 const { useTextStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(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,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,SAAA,gBAAAD,OAAA;AACA,MAAAE,YAAA,gBAAAF,OAAA;AACA,MAAAG,eAAA,gBAAAH,OAAA;AAGA,MAAAI,uBAAA,gBAAAJ,OAAA;AAEA;;;AAGaK,OAAA,CAAAC,IAAI,gBAAmCP,KAAK,CAACQ,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAClF,MAAMC,KAAK,GAAGT,SAAA,CAAAU,gBAAgB,CAACH,KAAK,EAAEC,GAAG,CAAC;EAE1CN,eAAA,CAAAS,sBAAsB,CAACF,KAAK,CAAC;EAE7B,MAAM;IAAEE,sBAAsB,EAAEC;EAAe,CAAE,GAAGT,uBAAA,CAAAU,4BAA4B,EAAE;EAClFD,eAAe,CAACH,KAAK,CAAC;EAEtB,OAAOR,YAAA,CAAAa,mBAAmB,CAACL,KAAK,CAAC;EACjC;AACF,CAAC,CAAmC;;AAEpCL,OAAA,CAAAC,IAAI,CAACU,WAAW,GAAG,MAAM"}
1
+ {"version":3,"sources":["../../../lib/components/Text/Text.js"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n useTextStyles_unstable(state);\n const {\n useTextStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n});\n\nText.displayName = 'Text';\n//# sourceMappingURL=Text.js.map"],"names":["Text","React","forwardRef","props","ref","state","useText_unstable","useTextStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderText_unstable","displayName"],"mappings":";;;;+BAQaA;;aAAAA;;;6DARU;yBACU;4BACG;+BACG;qCACM;AAItC,MAAMA,OAAO,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IAChE,MAAMC,QAAQC,IAAAA,yBAAgB,EAACH,OAAOC;IACtCG,IAAAA,qCAAsB,EAACF;IACvB,MAAM,EACJE,wBAAwBC,gBAAe,EACxC,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,+BAAmB,EAACL;AAC3B,qFAAqF;AACvF;AAEAL,KAAKW,WAAW,GAAG,QACnB,gCAAgC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
5
+ //# sourceMappingURL=Text.types.js.map
6
+
6
7
  //# sourceMappingURL=Text.types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/packages/react-components/react-text/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":""}
1
+ {"version":3,"sources":["../../../lib/components/Text/Text.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=Text.types.js.map"],"names":[],"mappings":";;;;CACA,sCAAsC"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- const tslib_1 = /*#__PURE__*/require("tslib");
7
- tslib_1.__exportStar(require("./Text"), exports);
8
- tslib_1.__exportStar(require("./Text.types"), exports);
9
- tslib_1.__exportStar(require("./renderText"), exports);
10
- tslib_1.__exportStar(require("./useText"), exports);
11
- tslib_1.__exportStar(require("./useTextStyles"), exports);
5
+ const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
+ _exportStar(require("./Text"), exports);
7
+ _exportStar(require("./Text.types"), exports);
8
+ _exportStar(require("./renderText"), exports);
9
+ _exportStar(require("./useText"), exports);
10
+ _exportStar(require("./useTextStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
12
+
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["tslib_1","__exportStar","require","exports"],"sources":["../src/packages/react-components/react-text/src/components/Text/index.ts"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,YAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,kBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,kBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,eAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,qBAAAC,OAAA"}
1
+ {"version":3,"sources":["../../../lib/components/Text/index.js"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
@@ -1,22 +1,17 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderText_unstable", {
6
+ enumerable: true,
7
+ get: ()=>renderText_unstable
5
8
  });
6
- exports.renderText_unstable = void 0;
7
- const React = /*#__PURE__*/require("react");
8
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
- /**
10
- * Render the final JSX of Text
11
- */
12
- const renderText_unstable = state => {
13
- const {
14
- slots,
15
- slotProps
16
- } = react_utilities_1.getSlots(state);
17
- return React.createElement(slots.root, {
18
- ...slotProps.root
19
- });
20
- };
21
- exports.renderText_unstable = renderText_unstable;
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactUtilities = require("@fluentui/react-utilities");
12
+ const renderText_unstable = (state)=>{
13
+ const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
14
+ return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root);
15
+ }; //# sourceMappingURL=renderText.js.map
16
+
22
17
  //# sourceMappingURL=renderText.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","require","react_utilities_1","renderText_unstable","state","slots","slotProps","getSlots","createElement","root","exports"],"sources":["../src/packages/react-components/react-text/src/components/Text/renderText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } 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 } = getSlots<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,iBAAA,gBAAAD,OAAA;AAGA;;;AAGO,MAAME,mBAAmB,GAAIC,KAAgB,IAAI;EACtD,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,iBAAA,CAAAK,QAAQ,CAAYH,KAAK,CAAC;EAEvD,OAAOJ,KAAA,CAAAQ,aAAA,CAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,EAAI;AAC3C,CAAC;AAJYC,OAAA,CAAAP,mBAAmB,GAAAA,mBAAA"}
1
+ {"version":3,"sources":["../../../lib/components/Text/renderText.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(slots.root, slotProps.root);\n};\n//# sourceMappingURL=renderText.js.map"],"names":["renderText_unstable","state","slots","slotProps","getSlots","React","createElement","root"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;gCACE;AAIlB,MAAMA,sBAAsBC,CAAAA,QAAS;IAC1C,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI;AACpE,GACA,sCAAsC"}
@@ -1,55 +1,39 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useText_unstable", {
6
+ enumerable: true,
7
+ get: ()=>useText_unstable
5
8
  });
6
- exports.useText_unstable = void 0;
7
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
- /**
9
- * Create the state required to render Text.
10
- *
11
- * The returned state can be modified with hooks such as useTextStyles_unstable,
12
- * before being passed to renderText_unstable.
13
- *
14
- * @param props - props from this instance of Text
15
- * @param ref - reference to root HTMLElement of Text
16
- */
17
- const useText_unstable = (props, ref) => {
18
- var _a;
19
- const {
20
- wrap,
21
- truncate,
22
- block,
23
- italic,
24
- underline,
25
- strikethrough,
26
- size,
27
- font,
28
- weight,
29
- align
30
- } = props;
31
- const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
32
- const state = {
33
- align: align !== null && align !== void 0 ? align : 'start',
34
- block: block !== null && block !== void 0 ? block : false,
35
- font: font !== null && font !== void 0 ? font : 'base',
36
- italic: italic !== null && italic !== void 0 ? italic : false,
37
- size: size !== null && size !== void 0 ? size : 300,
38
- strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
39
- truncate: truncate !== null && truncate !== void 0 ? truncate : false,
40
- underline: underline !== null && underline !== void 0 ? underline : false,
41
- weight: weight !== null && weight !== void 0 ? weight : 'regular',
42
- wrap: wrap !== null && wrap !== void 0 ? wrap : true,
43
- components: {
44
- root: 'span'
45
- },
46
- root: react_utilities_1.getNativeElementProps(as, {
47
- ref,
48
- ...props,
49
- as
50
- })
51
- };
52
- return state;
53
- };
54
- exports.useText_unstable = useText_unstable;
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactUtilities = require("@fluentui/react-utilities");
12
+ const useText_unstable = (props, ref)=>{
13
+ const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = props;
14
+ var _props_as;
15
+ const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';
16
+ const state = {
17
+ align: align !== null && align !== void 0 ? align : 'start',
18
+ block: block !== null && block !== void 0 ? block : false,
19
+ font: font !== null && font !== void 0 ? font : 'base',
20
+ italic: italic !== null && italic !== void 0 ? italic : false,
21
+ size: size !== null && size !== void 0 ? size : 300,
22
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
23
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
24
+ underline: underline !== null && underline !== void 0 ? underline : false,
25
+ weight: weight !== null && weight !== void 0 ? weight : 'regular',
26
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
27
+ components: {
28
+ root: 'span'
29
+ },
30
+ root: (0, _reactUtilities.getNativeElementProps)(as, {
31
+ ref,
32
+ ...props,
33
+ as
34
+ })
35
+ };
36
+ return state;
37
+ }; //# sourceMappingURL=useText.js.map
38
+
55
39
  //# sourceMappingURL=useText.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_utilities_1","require","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","_a","state","components","root","getNativeElementProps","exports"],"sources":["../src/packages/react-components/react-text/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":";;;;;;AACA,MAAAA,iBAAA,gBAAAC,OAAA;AAGA;;;;;;;;;AASO,MAAMC,gBAAgB,GAAGA,CAACC,KAAgB,EAAEC,GAA2B,KAAe;;EAC3F,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAEC,SAAS;IAAEC,aAAa;IAAEC,IAAI;IAAEC,IAAI;IAAEC,MAAM;IAAEC;EAAK,CAAE,GAAGX,KAAK;EACpG,MAAMY,EAAE,GAAG,CAAAC,EAAA,GAAAb,KAAK,CAACY,EAAE,cAAAC,EAAA,cAAAA,EAAA,GAAI,MAAM;EAE7B,MAAMC,KAAK,GAAc;IACvBH,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,OAAO;IACvBP,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,KAAK;IACrBK,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,MAAM;IACpBJ,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,KAAK;IACvBG,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,GAAG;IACjBD,aAAa,EAAEA,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAI,KAAK;IACrCJ,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,KAAK;IAC3BG,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,KAAK;IAC7BI,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,SAAS;IAC3BR,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,IAAI;IAElBa,UAAU,EAAE;MAAEC,IAAI,EAAE;IAAM,CAAE;IAE5BA,IAAI,EAAEnB,iBAAA,CAAAoB,qBAAqB,CAACL,EAAE,EAAE;MAC9BX,GAAG;MACH,GAAGD,KAAK;MACRY;KACD;GACF;EAED,OAAOE,KAAK;AACd,CAAC;AA1BYI,OAAA,CAAAnB,gBAAgB,GAAAA,gBAAA"}
1
+ {"version":3,"sources":["../../../lib/components/Text/useText.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\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, ref) => {\n const {\n wrap,\n truncate,\n block,\n italic,\n underline,\n strikethrough,\n size,\n font,\n weight,\n align\n } = props;\n var _props_as;\n const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';\n const state = {\n align: align !== null && align !== void 0 ? align : 'start',\n block: block !== null && block !== void 0 ? block : false,\n font: font !== null && font !== void 0 ? font : 'base',\n italic: italic !== null && italic !== void 0 ? italic : false,\n size: size !== null && size !== void 0 ? size : 300,\n strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,\n truncate: truncate !== null && truncate !== void 0 ? truncate : false,\n underline: underline !== null && underline !== void 0 ? underline : false,\n weight: weight !== null && weight !== void 0 ? weight : 'regular',\n wrap: wrap !== null && wrap !== void 0 ? wrap : true,\n components: {\n root: 'span'\n },\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as\n })\n };\n return state;\n};\n//# sourceMappingURL=useText.js.map"],"names":["useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","_props_as","as","state","components","root","getNativeElementProps"],"mappings":";;;;+BAWaA;;aAAAA;;;6DAXU;gCACe;AAU/B,MAAMA,mBAAmB,CAACC,OAAOC,MAAQ;IAC9C,MAAM,EACJC,KAAI,EACJC,SAAQ,EACRC,MAAK,EACLC,OAAM,EACNC,UAAS,EACTC,cAAa,EACbC,KAAI,EACJC,KAAI,EACJC,OAAM,EACNC,MAAK,EACN,GAAGX;IACJ,IAAIY;IACJ,MAAMC,KAAK,AAACD,CAAAA,YAAYZ,MAAMa,EAAE,AAAD,MAAO,IAAI,IAAID,cAAc,KAAK,IAAIA,YAAY,MAAM;IACvF,MAAME,QAAQ;QACZH,OAAOA,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAIA,QAAQ,OAAO;QAC3DP,OAAOA,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAIA,QAAQ,KAAK;QACzDK,MAAMA,SAAS,IAAI,IAAIA,SAAS,KAAK,IAAIA,OAAO,MAAM;QACtDJ,QAAQA,WAAW,IAAI,IAAIA,WAAW,KAAK,IAAIA,SAAS,KAAK;QAC7DG,MAAMA,SAAS,IAAI,IAAIA,SAAS,KAAK,IAAIA,OAAO,GAAG;QACnDD,eAAeA,kBAAkB,IAAI,IAAIA,kBAAkB,KAAK,IAAIA,gBAAgB,KAAK;QACzFJ,UAAUA,aAAa,IAAI,IAAIA,aAAa,KAAK,IAAIA,WAAW,KAAK;QACrEG,WAAWA,cAAc,IAAI,IAAIA,cAAc,KAAK,IAAIA,YAAY,KAAK;QACzEI,QAAQA,WAAW,IAAI,IAAIA,WAAW,KAAK,IAAIA,SAAS,SAAS;QACjER,MAAMA,SAAS,IAAI,IAAIA,SAAS,KAAK,IAAIA,OAAO,IAAI;QACpDa,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,IAAAA,qCAAqB,EAACJ,IAAI;YAC9BZ;YACA,GAAGD,KAAK;YACRa;QACF;IACF;IACA,OAAOC;AACT,GACA,mCAAmC"}
@@ -1,123 +1,172 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ textClassNames: ()=>textClassNames,
13
+ useTextStyles_unstable: ()=>useTextStyles_unstable
5
14
  });
6
- exports.useTextStyles_unstable = exports.textClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
9
- exports.textClassNames = {
10
- root: 'fui-Text'
15
+ const _react = require("@griffel/react");
16
+ const textClassNames = {
17
+ root: 'fui-Text'
11
18
  };
12
19
  /**
13
20
  * Styles for the root slot
14
- */
15
- const useStyles = /*#__PURE__*/react_1.__styles({
16
- root: {
17
- Bahqtrf: "fk6fouc",
18
- Be2twd7: "fkhj508",
19
- Bg96gwp: "f1i3iumi",
20
- Bhrd7zp: "figsok6",
21
- fsow6f: "fpgzoln",
22
- mc9l5x: "f1w7gpdv",
23
- Huce71: "f6juhto",
24
- B68tc82: "f1mtd64y",
25
- Bmxbyg5: "f1y7q3j9",
26
- ygn44y: "f2jf649"
27
- },
28
- nowrap: {
29
- Huce71: "fz5stix",
30
- B68tc82: "f1p9o1ba",
31
- Bmxbyg5: "f1sil6mw"
32
- },
33
- truncate: {
34
- ygn44y: "f1cmbuwj"
35
- },
36
- block: {
37
- mc9l5x: "ftgm304"
38
- },
39
- italic: {
40
- B80ckks: "f1j4dglz"
41
- },
42
- underline: {
43
- w71qe1: "f13mvf36"
44
- },
45
- strikethrough: {
46
- w71qe1: "fv5q2k7"
47
- },
48
- strikethroughUnderline: {
49
- w71qe1: "f1drk4o6"
50
- },
51
- base100: {
52
- Be2twd7: "f13mqy1h",
53
- Bg96gwp: "fcpl73t"
54
- },
55
- base200: {
56
- Be2twd7: "fy9rknc",
57
- Bg96gwp: "fwrc4pm"
58
- },
59
- base400: {
60
- Be2twd7: "fod5ikn",
61
- Bg96gwp: "faaz57k"
62
- },
63
- base500: {
64
- Be2twd7: "f1pp30po",
65
- Bg96gwp: "f106mvju"
66
- },
67
- base600: {
68
- Be2twd7: "f1x0m3f5",
69
- Bg96gwp: "fb86gi6"
70
- },
71
- hero700: {
72
- Be2twd7: "fojgt09",
73
- Bg96gwp: "fcen8rp"
74
- },
75
- hero800: {
76
- Be2twd7: "fccw675",
77
- Bg96gwp: "f1ebx5kk"
78
- },
79
- hero900: {
80
- Be2twd7: "f15afnhw",
81
- Bg96gwp: "fr3w3wp"
82
- },
83
- hero1000: {
84
- Be2twd7: "fpyltcb",
85
- Bg96gwp: "f1ivgwrt"
86
- },
87
- monospace: {
88
- Bahqtrf: "f1fedwem"
89
- },
90
- numeric: {
91
- Bahqtrf: "f1uq0ln5"
92
- },
93
- weightMedium: {
94
- Bhrd7zp: "fdj6btp"
95
- },
96
- weightSemibold: {
97
- Bhrd7zp: "fl43uef"
98
- },
99
- weightBold: {
100
- Bhrd7zp: "flh3ekv"
101
- },
102
- alignCenter: {
103
- fsow6f: "f17mccla"
104
- },
105
- alignEnd: {
106
- fsow6f: "f12ymhq5"
107
- },
108
- alignJustify: {
109
- fsow6f: "f1j59e10"
110
- }
21
+ */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
22
+ root: {
23
+ Bahqtrf: "fk6fouc",
24
+ Be2twd7: "fkhj508",
25
+ Bg96gwp: "f1i3iumi",
26
+ Bhrd7zp: "figsok6",
27
+ fsow6f: "fpgzoln",
28
+ mc9l5x: "f1w7gpdv",
29
+ Huce71: "f6juhto",
30
+ B68tc82: "f1mtd64y",
31
+ Bmxbyg5: "f1y7q3j9",
32
+ ygn44y: "f2jf649"
33
+ },
34
+ nowrap: {
35
+ Huce71: "fz5stix",
36
+ B68tc82: "f1p9o1ba",
37
+ Bmxbyg5: "f1sil6mw"
38
+ },
39
+ truncate: {
40
+ ygn44y: "f1cmbuwj"
41
+ },
42
+ block: {
43
+ mc9l5x: "ftgm304"
44
+ },
45
+ italic: {
46
+ B80ckks: "f1j4dglz"
47
+ },
48
+ underline: {
49
+ w71qe1: "f13mvf36"
50
+ },
51
+ strikethrough: {
52
+ w71qe1: "fv5q2k7"
53
+ },
54
+ strikethroughUnderline: {
55
+ w71qe1: "f1drk4o6"
56
+ },
57
+ base100: {
58
+ Be2twd7: "f13mqy1h",
59
+ Bg96gwp: "fcpl73t"
60
+ },
61
+ base200: {
62
+ Be2twd7: "fy9rknc",
63
+ Bg96gwp: "fwrc4pm"
64
+ },
65
+ base400: {
66
+ Be2twd7: "fod5ikn",
67
+ Bg96gwp: "faaz57k"
68
+ },
69
+ base500: {
70
+ Be2twd7: "f1pp30po",
71
+ Bg96gwp: "f106mvju"
72
+ },
73
+ base600: {
74
+ Be2twd7: "f1x0m3f5",
75
+ Bg96gwp: "fb86gi6"
76
+ },
77
+ hero700: {
78
+ Be2twd7: "fojgt09",
79
+ Bg96gwp: "fcen8rp"
80
+ },
81
+ hero800: {
82
+ Be2twd7: "fccw675",
83
+ Bg96gwp: "f1ebx5kk"
84
+ },
85
+ hero900: {
86
+ Be2twd7: "f15afnhw",
87
+ Bg96gwp: "fr3w3wp"
88
+ },
89
+ hero1000: {
90
+ Be2twd7: "fpyltcb",
91
+ Bg96gwp: "f1ivgwrt"
92
+ },
93
+ monospace: {
94
+ Bahqtrf: "f1fedwem"
95
+ },
96
+ numeric: {
97
+ Bahqtrf: "f1uq0ln5"
98
+ },
99
+ weightMedium: {
100
+ Bhrd7zp: "fdj6btp"
101
+ },
102
+ weightSemibold: {
103
+ Bhrd7zp: "fl43uef"
104
+ },
105
+ weightBold: {
106
+ Bhrd7zp: "flh3ekv"
107
+ },
108
+ alignCenter: {
109
+ fsow6f: "f17mccla"
110
+ },
111
+ alignEnd: {
112
+ fsow6f: "f12ymhq5"
113
+ },
114
+ alignJustify: {
115
+ fsow6f: "f1j59e10"
116
+ }
111
117
  }, {
112
- d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1mtd64y{overflow-x:visible;}", ".f1y7q3j9{overflow-y:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".f13mvf36{text-decoration-line:underline;}", ".fv5q2k7{text-decoration-line:line-through;}", ".f1drk4o6{text-decoration-line:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".flh3ekv{font-weight:var(--fontWeightBold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
118
+ d: [
119
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
120
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
121
+ ".f1i3iumi{line-height:var(--lineHeightBase300);}",
122
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
123
+ ".fpgzoln{text-align:start;}",
124
+ ".f1w7gpdv{display:inline;}",
125
+ ".f6juhto{white-space:normal;}",
126
+ ".f1mtd64y{overflow-x:visible;}",
127
+ ".f1y7q3j9{overflow-y:visible;}",
128
+ ".f2jf649{text-overflow:clip;}",
129
+ ".fz5stix{white-space:nowrap;}",
130
+ ".f1p9o1ba{overflow-x:hidden;}",
131
+ ".f1sil6mw{overflow-y:hidden;}",
132
+ ".f1cmbuwj{text-overflow:ellipsis;}",
133
+ ".ftgm304{display:block;}",
134
+ ".f1j4dglz{font-style:italic;}",
135
+ ".f13mvf36{text-decoration-line:underline;}",
136
+ ".fv5q2k7{text-decoration-line:line-through;}",
137
+ ".f1drk4o6{text-decoration-line:line-through underline;}",
138
+ ".f13mqy1h{font-size:var(--fontSizeBase100);}",
139
+ ".fcpl73t{line-height:var(--lineHeightBase100);}",
140
+ ".fy9rknc{font-size:var(--fontSizeBase200);}",
141
+ ".fwrc4pm{line-height:var(--lineHeightBase200);}",
142
+ ".fod5ikn{font-size:var(--fontSizeBase400);}",
143
+ ".faaz57k{line-height:var(--lineHeightBase400);}",
144
+ ".f1pp30po{font-size:var(--fontSizeBase500);}",
145
+ ".f106mvju{line-height:var(--lineHeightBase500);}",
146
+ ".f1x0m3f5{font-size:var(--fontSizeBase600);}",
147
+ ".fb86gi6{line-height:var(--lineHeightBase600);}",
148
+ ".fojgt09{font-size:var(--fontSizeHero700);}",
149
+ ".fcen8rp{line-height:var(--lineHeightHero700);}",
150
+ ".fccw675{font-size:var(--fontSizeHero800);}",
151
+ ".f1ebx5kk{line-height:var(--lineHeightHero800);}",
152
+ ".f15afnhw{font-size:var(--fontSizeHero900);}",
153
+ ".fr3w3wp{line-height:var(--lineHeightHero900);}",
154
+ ".fpyltcb{font-size:var(--fontSizeHero1000);}",
155
+ ".f1ivgwrt{line-height:var(--lineHeightHero1000);}",
156
+ ".f1fedwem{font-family:var(--fontFamilyMonospace);}",
157
+ ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",
158
+ ".fdj6btp{font-weight:var(--fontWeightMedium);}",
159
+ ".fl43uef{font-weight:var(--fontWeightSemibold);}",
160
+ ".flh3ekv{font-weight:var(--fontWeightBold);}",
161
+ ".f17mccla{text-align:center;}",
162
+ ".f12ymhq5{text-align:end;}",
163
+ ".f1j59e10{text-align:justify;}"
164
+ ]
113
165
  });
114
- /**
115
- * Apply styling to the Text slots based on the state
116
- */
117
- const useTextStyles_unstable = state => {
118
- const styles = useStyles();
119
- state.root.className = react_1.mergeClasses(exports.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.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
120
- return state;
121
- };
122
- exports.useTextStyles_unstable = useTextStyles_unstable;
166
+ const useTextStyles_unstable = (state)=>{
167
+ const styles = useStyles();
168
+ state.root.className = (0, _react.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.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
169
+ return state;
170
+ }; //# sourceMappingURL=useTextStyles.js.map
171
+
123
172
  //# sourceMappingURL=useTextStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_1","require","react_theme_1","exports","textClassNames","root","useStyles","__styles","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","mergeClasses","wrap","size","font","weight","align"],"sources":["../src/packages/react-components/react-text/src/components/Text/useTextStyles.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":"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"}
1
+ {"version":3,"sources":["../../../lib/components/Text/useTextStyles.js"],"sourcesContent":["import { __styles, 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 */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fkhj508\",\n Bg96gwp: \"f1i3iumi\",\n Bhrd7zp: \"figsok6\",\n fsow6f: \"fpgzoln\",\n mc9l5x: \"f1w7gpdv\",\n Huce71: \"f6juhto\",\n B68tc82: \"f1mtd64y\",\n Bmxbyg5: \"f1y7q3j9\",\n ygn44y: \"f2jf649\"\n },\n nowrap: {\n Huce71: \"fz5stix\",\n B68tc82: \"f1p9o1ba\",\n Bmxbyg5: \"f1sil6mw\"\n },\n truncate: {\n ygn44y: \"f1cmbuwj\"\n },\n block: {\n mc9l5x: \"ftgm304\"\n },\n italic: {\n B80ckks: \"f1j4dglz\"\n },\n underline: {\n w71qe1: \"f13mvf36\"\n },\n strikethrough: {\n w71qe1: \"fv5q2k7\"\n },\n strikethroughUnderline: {\n w71qe1: \"f1drk4o6\"\n },\n base100: {\n Be2twd7: \"f13mqy1h\",\n Bg96gwp: \"fcpl73t\"\n },\n base200: {\n Be2twd7: \"fy9rknc\",\n Bg96gwp: \"fwrc4pm\"\n },\n base400: {\n Be2twd7: \"fod5ikn\",\n Bg96gwp: \"faaz57k\"\n },\n base500: {\n Be2twd7: \"f1pp30po\",\n Bg96gwp: \"f106mvju\"\n },\n base600: {\n Be2twd7: \"f1x0m3f5\",\n Bg96gwp: \"fb86gi6\"\n },\n hero700: {\n Be2twd7: \"fojgt09\",\n Bg96gwp: \"fcen8rp\"\n },\n hero800: {\n Be2twd7: \"fccw675\",\n Bg96gwp: \"f1ebx5kk\"\n },\n hero900: {\n Be2twd7: \"f15afnhw\",\n Bg96gwp: \"fr3w3wp\"\n },\n hero1000: {\n Be2twd7: \"fpyltcb\",\n Bg96gwp: \"f1ivgwrt\"\n },\n monospace: {\n Bahqtrf: \"f1fedwem\"\n },\n numeric: {\n Bahqtrf: \"f1uq0ln5\"\n },\n weightMedium: {\n Bhrd7zp: \"fdj6btp\"\n },\n weightSemibold: {\n Bhrd7zp: \"fl43uef\"\n },\n weightBold: {\n Bhrd7zp: \"flh3ekv\"\n },\n alignCenter: {\n fsow6f: \"f17mccla\"\n },\n alignEnd: {\n fsow6f: \"f12ymhq5\"\n },\n alignJustify: {\n fsow6f: \"f1j59e10\"\n }\n}, {\n d: [\".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".fpgzoln{text-align:start;}\", \".f1w7gpdv{display:inline;}\", \".f6juhto{white-space:normal;}\", \".f1mtd64y{overflow-x:visible;}\", \".f1y7q3j9{overflow-y:visible;}\", \".f2jf649{text-overflow:clip;}\", \".fz5stix{white-space:nowrap;}\", \".f1p9o1ba{overflow-x:hidden;}\", \".f1sil6mw{overflow-y:hidden;}\", \".f1cmbuwj{text-overflow:ellipsis;}\", \".ftgm304{display:block;}\", \".f1j4dglz{font-style:italic;}\", \".f13mvf36{text-decoration-line:underline;}\", \".fv5q2k7{text-decoration-line:line-through;}\", \".f1drk4o6{text-decoration-line:line-through underline;}\", \".f13mqy1h{font-size:var(--fontSizeBase100);}\", \".fcpl73t{line-height:var(--lineHeightBase100);}\", \".fy9rknc{font-size:var(--fontSizeBase200);}\", \".fwrc4pm{line-height:var(--lineHeightBase200);}\", \".fod5ikn{font-size:var(--fontSizeBase400);}\", \".faaz57k{line-height:var(--lineHeightBase400);}\", \".f1pp30po{font-size:var(--fontSizeBase500);}\", \".f106mvju{line-height:var(--lineHeightBase500);}\", \".f1x0m3f5{font-size:var(--fontSizeBase600);}\", \".fb86gi6{line-height:var(--lineHeightBase600);}\", \".fojgt09{font-size:var(--fontSizeHero700);}\", \".fcen8rp{line-height:var(--lineHeightHero700);}\", \".fccw675{font-size:var(--fontSizeHero800);}\", \".f1ebx5kk{line-height:var(--lineHeightHero800);}\", \".f15afnhw{font-size:var(--fontSizeHero900);}\", \".fr3w3wp{line-height:var(--lineHeightHero900);}\", \".fpyltcb{font-size:var(--fontSizeHero1000);}\", \".f1ivgwrt{line-height:var(--lineHeightHero1000);}\", \".f1fedwem{font-family:var(--fontFamilyMonospace);}\", \".f1uq0ln5{font-family:var(--fontFamilyNumeric);}\", \".fdj6btp{font-weight:var(--fontWeightMedium);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".flh3ekv{font-weight:var(--fontWeightBold);}\", \".f17mccla{text-align:center;}\", \".f12ymhq5{text-align:end;}\", \".f1j59e10{text-align:justify;}\"]\n});\n/**\n * Apply styling to the Text slots based on the state\n */\nexport 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.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);\n return state;\n};\n//# sourceMappingURL=useTextStyles.js.map"],"names":["textClassNames","useTextStyles_unstable","root","useStyles","__styles","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","state","styles","className","mergeClasses","wrap","size","font","weight","align"],"mappings":"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"}