@fluentui/react-text 9.74.7-experimental.cli-api.20261006-ccaa611d58.0 → 9.75.0-experimental.css-modules.20261031-810ab07afb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/CHANGELOG.md +29 -9
  2. package/README.md +8 -0
  3. package/lib/components/Text/Text.js.map +1 -1
  4. package/lib/components/Text/Text.module.css +119 -0
  5. package/lib/components/Text/Text.types.js.map +1 -1
  6. package/lib/components/Text/index.js.map +1 -1
  7. package/lib/components/Text/renderText.js +2 -2
  8. package/lib/components/Text/renderText.js.map +1 -1
  9. package/lib/components/Text/useText.js.map +1 -1
  10. package/lib/components/Text/useTextStyles.styles.css.js +9 -0
  11. package/lib/components/Text/useTextStyles.styles.css.js.map +1 -0
  12. package/lib/components/Text/useTextStyles.styles.raw.css.js +9 -0
  13. package/lib/components/Text/useTextStyles.styles.raw.css.js.map +1 -0
  14. package/lib/components/Text/useTextStyles.styles.raw.js.map +1 -1
  15. package/lib/components/presets/Body1/Body1.js.map +1 -1
  16. package/lib/components/presets/Body1/index.js.map +1 -1
  17. package/lib/components/presets/Body1/useBody1Styles.styles.css.js +7 -0
  18. package/lib/components/presets/Body1/useBody1Styles.styles.css.js.map +1 -0
  19. package/lib/components/presets/Body1/useBody1Styles.styles.raw.css.js +7 -0
  20. package/lib/components/presets/Body1/useBody1Styles.styles.raw.css.js.map +1 -0
  21. package/lib/components/presets/Body1/useBody1Styles.styles.raw.js.map +1 -1
  22. package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  23. package/lib/components/presets/Body1Strong/index.js.map +1 -1
  24. package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.css.js +7 -0
  25. package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.css.js.map +1 -0
  26. package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.css.js +7 -0
  27. package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.css.js.map +1 -0
  28. package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.js.map +1 -1
  29. package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  30. package/lib/components/presets/Body1Stronger/index.js.map +1 -1
  31. package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.css.js +7 -0
  32. package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.css.js.map +1 -0
  33. package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.css.js +7 -0
  34. package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.css.js.map +1 -0
  35. package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.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/Body2/useBody2Styles.styles.css.js +7 -0
  39. package/lib/components/presets/Body2/useBody2Styles.styles.css.js.map +1 -0
  40. package/lib/components/presets/Body2/useBody2Styles.styles.raw.css.js +7 -0
  41. package/lib/components/presets/Body2/useBody2Styles.styles.raw.css.js.map +1 -0
  42. package/lib/components/presets/Body2/useBody2Styles.styles.raw.js.map +1 -1
  43. package/lib/components/presets/Caption1/Caption1.js.map +1 -1
  44. package/lib/components/presets/Caption1/index.js.map +1 -1
  45. package/lib/components/presets/Caption1/useCaption1Styles.styles.css.js +7 -0
  46. package/lib/components/presets/Caption1/useCaption1Styles.styles.css.js.map +1 -0
  47. package/lib/components/presets/Caption1/useCaption1Styles.styles.raw.css.js +7 -0
  48. package/lib/components/presets/Caption1/useCaption1Styles.styles.raw.css.js.map +1 -0
  49. package/lib/components/presets/Caption1/useCaption1Styles.styles.raw.js.map +1 -1
  50. package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  51. package/lib/components/presets/Caption1Strong/index.js.map +1 -1
  52. package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.css.js +7 -0
  53. package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.css.js.map +1 -0
  54. package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.css.js +7 -0
  55. package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.css.js.map +1 -0
  56. package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.js.map +1 -1
  57. package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  58. package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
  59. package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.css.js +7 -0
  60. package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.css.js.map +1 -0
  61. package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.css.js +7 -0
  62. package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.css.js.map +1 -0
  63. package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.js.map +1 -1
  64. package/lib/components/presets/Caption2/Caption2.js.map +1 -1
  65. package/lib/components/presets/Caption2/index.js.map +1 -1
  66. package/lib/components/presets/Caption2/useCaption2Styles.styles.css.js +7 -0
  67. package/lib/components/presets/Caption2/useCaption2Styles.styles.css.js.map +1 -0
  68. package/lib/components/presets/Caption2/useCaption2Styles.styles.raw.css.js +7 -0
  69. package/lib/components/presets/Caption2/useCaption2Styles.styles.raw.css.js.map +1 -0
  70. package/lib/components/presets/Caption2/useCaption2Styles.styles.raw.js.map +1 -1
  71. package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  72. package/lib/components/presets/Caption2Strong/index.js.map +1 -1
  73. package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.css.js +7 -0
  74. package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.css.js.map +1 -0
  75. package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.css.js +7 -0
  76. package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.css.js.map +1 -0
  77. package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.js.map +1 -1
  78. package/lib/components/presets/Display/Display.js.map +1 -1
  79. package/lib/components/presets/Display/index.js.map +1 -1
  80. package/lib/components/presets/Display/useDisplayStyles.styles.css.js +7 -0
  81. package/lib/components/presets/Display/useDisplayStyles.styles.css.js.map +1 -0
  82. package/lib/components/presets/Display/useDisplayStyles.styles.raw.css.js +7 -0
  83. package/lib/components/presets/Display/useDisplayStyles.styles.raw.css.js.map +1 -0
  84. package/lib/components/presets/Display/useDisplayStyles.styles.raw.js.map +1 -1
  85. package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  86. package/lib/components/presets/LargeTitle/index.js.map +1 -1
  87. package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.css.js +7 -0
  88. package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.css.js.map +1 -0
  89. package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.css.js +7 -0
  90. package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.css.js.map +1 -0
  91. package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.js.map +1 -1
  92. package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  93. package/lib/components/presets/Subtitle1/index.js.map +1 -1
  94. package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.css.js +7 -0
  95. package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.css.js.map +1 -0
  96. package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.css.js +7 -0
  97. package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.css.js.map +1 -0
  98. package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.js.map +1 -1
  99. package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  100. package/lib/components/presets/Subtitle2/index.js.map +1 -1
  101. package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.css.js +7 -0
  102. package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.css.js.map +1 -0
  103. package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.css.js +7 -0
  104. package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.css.js.map +1 -0
  105. package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.js.map +1 -1
  106. package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  107. package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
  108. package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.css.js +7 -0
  109. package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.css.js.map +1 -0
  110. package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.css.js +7 -0
  111. package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.css.js.map +1 -0
  112. package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.js.map +1 -1
  113. package/lib/components/presets/TextPresets.module.css +96 -0
  114. package/lib/components/presets/Title1/Title1.js.map +1 -1
  115. package/lib/components/presets/Title1/index.js.map +1 -1
  116. package/lib/components/presets/Title1/useTitle1Styles.styles.css.js +7 -0
  117. package/lib/components/presets/Title1/useTitle1Styles.styles.css.js.map +1 -0
  118. package/lib/components/presets/Title1/useTitle1Styles.styles.raw.css.js +7 -0
  119. package/lib/components/presets/Title1/useTitle1Styles.styles.raw.css.js.map +1 -0
  120. package/lib/components/presets/Title1/useTitle1Styles.styles.raw.js.map +1 -1
  121. package/lib/components/presets/Title2/Title2.js.map +1 -1
  122. package/lib/components/presets/Title2/index.js.map +1 -1
  123. package/lib/components/presets/Title2/useTitle2Styles.styles.css.js +7 -0
  124. package/lib/components/presets/Title2/useTitle2Styles.styles.css.js.map +1 -0
  125. package/lib/components/presets/Title2/useTitle2Styles.styles.raw.css.js +7 -0
  126. package/lib/components/presets/Title2/useTitle2Styles.styles.raw.css.js.map +1 -0
  127. package/lib/components/presets/Title2/useTitle2Styles.styles.raw.js.map +1 -1
  128. package/lib/components/presets/Title3/Title3.js.map +1 -1
  129. package/lib/components/presets/Title3/index.js.map +1 -1
  130. package/lib/components/presets/Title3/useTitle3Styles.styles.css.js +7 -0
  131. package/lib/components/presets/Title3/useTitle3Styles.styles.css.js.map +1 -0
  132. package/lib/components/presets/Title3/useTitle3Styles.styles.raw.css.js +7 -0
  133. package/lib/components/presets/Title3/useTitle3Styles.styles.raw.css.js.map +1 -0
  134. package/lib/components/presets/Title3/useTitle3Styles.styles.raw.js.map +1 -1
  135. package/lib/components/presets/createPreset.js.map +1 -1
  136. package/lib-commonjs/Body1.cjs +3 -3
  137. package/lib-commonjs/Body1Strong.cjs +3 -3
  138. package/lib-commonjs/Body1Stronger.cjs +3 -3
  139. package/lib-commonjs/Body2.cjs +3 -3
  140. package/lib-commonjs/Caption1.cjs +3 -3
  141. package/lib-commonjs/Caption1Strong.cjs +3 -3
  142. package/lib-commonjs/Caption1Stronger.cjs +3 -3
  143. package/lib-commonjs/Caption2.cjs +3 -3
  144. package/lib-commonjs/Caption2Strong.cjs +3 -3
  145. package/lib-commonjs/Display.cjs +3 -3
  146. package/lib-commonjs/LargeTitle.cjs +3 -3
  147. package/lib-commonjs/Subtitle1.cjs +3 -3
  148. package/lib-commonjs/Subtitle2.cjs +3 -3
  149. package/lib-commonjs/Subtitle2Stronger.cjs +3 -3
  150. package/lib-commonjs/Text.cjs +6 -6
  151. package/lib-commonjs/Title1.cjs +3 -3
  152. package/lib-commonjs/Title2.cjs +3 -3
  153. package/lib-commonjs/Title3.cjs +3 -3
  154. package/lib-commonjs/components/Text/Text.cjs.map +1 -1
  155. package/lib-commonjs/components/Text/Text.module.css +119 -0
  156. package/lib-commonjs/components/Text/Text.types.cjs.map +1 -1
  157. package/lib-commonjs/components/Text/index.cjs +6 -6
  158. package/lib-commonjs/components/Text/index.cjs.map +1 -1
  159. package/lib-commonjs/components/Text/renderText.cjs.map +1 -1
  160. package/lib-commonjs/components/Text/useText.cjs.map +1 -1
  161. package/lib-commonjs/components/Text/useTextStyles.styles.cjs +3 -3
  162. package/lib-commonjs/components/Text/useTextStyles.styles.cjs.map +1 -1
  163. package/lib-commonjs/components/Text/useTextStyles.styles.css.cjs +28 -0
  164. package/lib-commonjs/components/Text/useTextStyles.styles.css.cjs.map +1 -0
  165. package/lib-commonjs/components/Text/useTextStyles.styles.raw.cjs +3 -3
  166. package/lib-commonjs/components/Text/useTextStyles.styles.raw.cjs.map +1 -1
  167. package/lib-commonjs/components/Text/useTextStyles.styles.raw.css.cjs +28 -0
  168. package/lib-commonjs/components/Text/useTextStyles.styles.raw.css.cjs.map +1 -0
  169. package/lib-commonjs/components/presets/Body1/Body1.cjs.map +1 -1
  170. package/lib-commonjs/components/presets/Body1/index.cjs +3 -3
  171. package/lib-commonjs/components/presets/Body1/index.cjs.map +1 -1
  172. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.cjs +3 -3
  173. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.cjs.map +1 -1
  174. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.css.cjs +26 -0
  175. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.css.cjs.map +1 -0
  176. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.raw.cjs +3 -3
  177. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.raw.cjs.map +1 -1
  178. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.raw.css.cjs +26 -0
  179. package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.raw.css.cjs.map +1 -0
  180. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.cjs.map +1 -1
  181. package/lib-commonjs/components/presets/Body1Strong/index.cjs +3 -3
  182. package/lib-commonjs/components/presets/Body1Strong/index.cjs.map +1 -1
  183. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.cjs +3 -3
  184. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.cjs.map +1 -1
  185. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.css.cjs +26 -0
  186. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.css.cjs.map +1 -0
  187. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.cjs +3 -3
  188. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.cjs.map +1 -1
  189. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.css.cjs +26 -0
  190. package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.css.cjs.map +1 -0
  191. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.cjs.map +1 -1
  192. package/lib-commonjs/components/presets/Body1Stronger/index.cjs +3 -3
  193. package/lib-commonjs/components/presets/Body1Stronger/index.cjs.map +1 -1
  194. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.cjs +3 -3
  195. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.cjs.map +1 -1
  196. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.css.cjs +26 -0
  197. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.css.cjs.map +1 -0
  198. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.cjs +3 -3
  199. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.cjs.map +1 -1
  200. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.css.cjs +26 -0
  201. package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.css.cjs.map +1 -0
  202. package/lib-commonjs/components/presets/Body2/Body2.cjs.map +1 -1
  203. package/lib-commonjs/components/presets/Body2/index.cjs +3 -3
  204. package/lib-commonjs/components/presets/Body2/index.cjs.map +1 -1
  205. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.cjs +3 -3
  206. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.cjs.map +1 -1
  207. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.css.cjs +26 -0
  208. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.css.cjs.map +1 -0
  209. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.raw.cjs +3 -3
  210. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.raw.cjs.map +1 -1
  211. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.raw.css.cjs +26 -0
  212. package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.raw.css.cjs.map +1 -0
  213. package/lib-commonjs/components/presets/Caption1/Caption1.cjs.map +1 -1
  214. package/lib-commonjs/components/presets/Caption1/index.cjs +3 -3
  215. package/lib-commonjs/components/presets/Caption1/index.cjs.map +1 -1
  216. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.cjs +3 -3
  217. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.cjs.map +1 -1
  218. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.css.cjs +26 -0
  219. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.css.cjs.map +1 -0
  220. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.raw.cjs +3 -3
  221. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.raw.cjs.map +1 -1
  222. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.raw.css.cjs +26 -0
  223. package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.raw.css.cjs.map +1 -0
  224. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.cjs.map +1 -1
  225. package/lib-commonjs/components/presets/Caption1Strong/index.cjs +3 -3
  226. package/lib-commonjs/components/presets/Caption1Strong/index.cjs.map +1 -1
  227. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.cjs +3 -3
  228. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.cjs.map +1 -1
  229. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.css.cjs +26 -0
  230. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.css.cjs.map +1 -0
  231. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.cjs +3 -3
  232. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.cjs.map +1 -1
  233. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.css.cjs +26 -0
  234. package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.css.cjs.map +1 -0
  235. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.cjs.map +1 -1
  236. package/lib-commonjs/components/presets/Caption1Stronger/index.cjs +3 -3
  237. package/lib-commonjs/components/presets/Caption1Stronger/index.cjs.map +1 -1
  238. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.cjs +3 -3
  239. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.cjs.map +1 -1
  240. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.css.cjs +26 -0
  241. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.css.cjs.map +1 -0
  242. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.cjs +3 -3
  243. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.cjs.map +1 -1
  244. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.css.cjs +26 -0
  245. package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.css.cjs.map +1 -0
  246. package/lib-commonjs/components/presets/Caption2/Caption2.cjs.map +1 -1
  247. package/lib-commonjs/components/presets/Caption2/index.cjs +3 -3
  248. package/lib-commonjs/components/presets/Caption2/index.cjs.map +1 -1
  249. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.cjs +3 -3
  250. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.cjs.map +1 -1
  251. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.css.cjs +26 -0
  252. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.css.cjs.map +1 -0
  253. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.raw.cjs +3 -3
  254. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.raw.cjs.map +1 -1
  255. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.raw.css.cjs +26 -0
  256. package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.raw.css.cjs.map +1 -0
  257. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.cjs.map +1 -1
  258. package/lib-commonjs/components/presets/Caption2Strong/index.cjs +3 -3
  259. package/lib-commonjs/components/presets/Caption2Strong/index.cjs.map +1 -1
  260. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.cjs +3 -3
  261. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.cjs.map +1 -1
  262. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.css.cjs +26 -0
  263. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.css.cjs.map +1 -0
  264. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.cjs +3 -3
  265. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.cjs.map +1 -1
  266. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.css.cjs +26 -0
  267. package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.css.cjs.map +1 -0
  268. package/lib-commonjs/components/presets/Display/Display.cjs.map +1 -1
  269. package/lib-commonjs/components/presets/Display/index.cjs +3 -3
  270. package/lib-commonjs/components/presets/Display/index.cjs.map +1 -1
  271. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.cjs +3 -3
  272. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.cjs.map +1 -1
  273. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.css.cjs +26 -0
  274. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.css.cjs.map +1 -0
  275. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.raw.cjs +3 -3
  276. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.raw.cjs.map +1 -1
  277. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.raw.css.cjs +26 -0
  278. package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.raw.css.cjs.map +1 -0
  279. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.cjs.map +1 -1
  280. package/lib-commonjs/components/presets/LargeTitle/index.cjs +3 -3
  281. package/lib-commonjs/components/presets/LargeTitle/index.cjs.map +1 -1
  282. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.cjs +3 -3
  283. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.cjs.map +1 -1
  284. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.css.cjs +26 -0
  285. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.css.cjs.map +1 -0
  286. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.cjs +3 -3
  287. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.cjs.map +1 -1
  288. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.css.cjs +26 -0
  289. package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.css.cjs.map +1 -0
  290. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.cjs.map +1 -1
  291. package/lib-commonjs/components/presets/Subtitle1/index.cjs +3 -3
  292. package/lib-commonjs/components/presets/Subtitle1/index.cjs.map +1 -1
  293. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.cjs +3 -3
  294. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.cjs.map +1 -1
  295. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.css.cjs +26 -0
  296. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.css.cjs.map +1 -0
  297. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.cjs +3 -3
  298. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.cjs.map +1 -1
  299. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.css.cjs +26 -0
  300. package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.css.cjs.map +1 -0
  301. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.cjs.map +1 -1
  302. package/lib-commonjs/components/presets/Subtitle2/index.cjs +3 -3
  303. package/lib-commonjs/components/presets/Subtitle2/index.cjs.map +1 -1
  304. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.cjs +3 -3
  305. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.cjs.map +1 -1
  306. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.css.cjs +26 -0
  307. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.css.cjs.map +1 -0
  308. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.cjs +3 -3
  309. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.cjs.map +1 -1
  310. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.css.cjs +26 -0
  311. package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.css.cjs.map +1 -0
  312. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.cjs.map +1 -1
  313. package/lib-commonjs/components/presets/Subtitle2Stronger/index.cjs +3 -3
  314. package/lib-commonjs/components/presets/Subtitle2Stronger/index.cjs.map +1 -1
  315. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.cjs +3 -3
  316. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.cjs.map +1 -1
  317. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.css.cjs +26 -0
  318. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.css.cjs.map +1 -0
  319. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.cjs +3 -3
  320. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.cjs.map +1 -1
  321. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.css.cjs +26 -0
  322. package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.css.cjs.map +1 -0
  323. package/lib-commonjs/components/presets/TextPresets.module.css +96 -0
  324. package/lib-commonjs/components/presets/Title1/Title1.cjs.map +1 -1
  325. package/lib-commonjs/components/presets/Title1/index.cjs +3 -3
  326. package/lib-commonjs/components/presets/Title1/index.cjs.map +1 -1
  327. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.cjs +3 -3
  328. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.cjs.map +1 -1
  329. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.css.cjs +26 -0
  330. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.css.cjs.map +1 -0
  331. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.raw.cjs +3 -3
  332. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.raw.cjs.map +1 -1
  333. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.raw.css.cjs +26 -0
  334. package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.raw.css.cjs.map +1 -0
  335. package/lib-commonjs/components/presets/Title2/Title2.cjs.map +1 -1
  336. package/lib-commonjs/components/presets/Title2/index.cjs +3 -3
  337. package/lib-commonjs/components/presets/Title2/index.cjs.map +1 -1
  338. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.cjs +3 -3
  339. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.cjs.map +1 -1
  340. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.css.cjs +26 -0
  341. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.css.cjs.map +1 -0
  342. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.raw.cjs +3 -3
  343. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.raw.cjs.map +1 -1
  344. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.raw.css.cjs +26 -0
  345. package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.raw.css.cjs.map +1 -0
  346. package/lib-commonjs/components/presets/Title3/Title3.cjs.map +1 -1
  347. package/lib-commonjs/components/presets/Title3/index.cjs +3 -3
  348. package/lib-commonjs/components/presets/Title3/index.cjs.map +1 -1
  349. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.cjs +3 -3
  350. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.cjs.map +1 -1
  351. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.css.cjs +26 -0
  352. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.css.cjs.map +1 -0
  353. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.raw.cjs +3 -3
  354. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.raw.cjs.map +1 -1
  355. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.raw.css.cjs +26 -0
  356. package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.raw.css.cjs.map +1 -0
  357. package/lib-commonjs/components/presets/createPreset.cjs.map +1 -1
  358. package/lib-commonjs/index.cjs +40 -40
  359. package/lib-commonjs/index.cjs.map +1 -1
  360. package/package.json +12 -12
  361. package/dist/metadata/api/api-root.json +0 -1
  362. package/dist/metadata/index.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"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' | 'strong' | 'b' | 'em' | 'i'>;\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":"AA0FA;;CAEC,GACD,WAMI"}
1
+ {"version":3,"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' | 'strong' | 'b' | 'em' | 'i'>;\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":"AA0FA;;CAEC,GACD,WAMI"}
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Text: function() {
12
+ get Text () {
13
13
  return _Text.Text;
14
14
  },
15
- renderText_unstable: function() {
15
+ get renderText_unstable () {
16
16
  return _renderText.renderText_unstable;
17
17
  },
18
- textClassNames: function() {
18
+ get textClassNames () {
19
19
  return _useTextStylesstyles.textClassNames;
20
20
  },
21
- useTextStyles_unstable: function() {
21
+ get useTextStyles_unstable () {
22
22
  return _useTextStylesstyles.useTextStyles_unstable;
23
23
  },
24
- useText_unstable: function() {
24
+ get useText_unstable () {
25
25
  return _useText.useText_unstable;
26
26
  }
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Text/index.ts"],"sourcesContent":["export { Text } from './Text';\nexport type { TextPresetProps, TextProps, TextSlots, TextState } from './Text.types';\nexport { renderText_unstable } from './renderText';\nexport { useText_unstable } from './useText';\nexport { textClassNames, useTextStyles_unstable } from './useTextStyles.styles';\n"],"names":["Text","renderText_unstable","useText_unstable","textClassNames","useTextStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,UAAI;;;eAEJC,+BAAmB;;;eAEnBE,mCAAc;;;eAAEC,2CAAsB;;;eADtCF,yBAAgB;;;sBAHJ,YAAS;4BAEM,kBAAe;yBAClB,eAAY;qCACU,4BAAyB"}
1
+ {"version":3,"sources":["../../../src/components/Text/index.ts"],"sourcesContent":["export { Text } from './Text';\nexport type { TextPresetProps, TextProps, TextSlots, TextState } from './Text.types';\nexport { renderText_unstable } from './renderText';\nexport { useText_unstable } from './useText';\nexport { textClassNames, useTextStyles_unstable } from './useTextStyles.styles';\n"],"names":["Text","renderText_unstable","useText_unstable","textClassNames","useTextStyles_unstable"],"mappings":";;;;;;;;;;;;eAASA,UAAI;;;eAEJC,+BAAmB;;;eAEnBE,mCAAc;;;eAAEC,2CAAsB;;;eADtCF,yBAAgB;;;sBAHJ,YAAS;4BAEM,kBAAe;yBAClB,eAAY;qCACU,4BAAyB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Text/renderText.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } 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): JSXElement => {\n assertSlots<TextSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderText_unstable","state","root"],"mappings":";;;;;;;;;;4BACA,gDAAiD;gCAErB,4BAA4B;AAOjD,MAAMC,sBAAsB,CAACC;QAClCF,2BAAAA,EAAuBE;IAEvB,OAAA,WAAA,OAAO,eAAA,EAACA,MAAMC,IAAI,EAAA,CAAA;AACpB,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } 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): JSXElement => {\n assertSlots<TextSlots>(state);\n\n return <state.root />;\n};\n"],"names":["assertSlots","renderText_unstable","state","root"],"mappings":";;;;;;;;;;;gCACA,gDAAiD,GAEjD,SAASA,WAAW,QAAQ,4BAA4B;AAOjD,MAAMC,sBAAsB,CAACC;QAClCF,2BAAAA,EAAuBE;IAEvB,OAAA,WAAA,OAAO,eAAA,EAACA,MAAMC,IAAI,EAAA,CAAA;AACpB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Text/useText.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } 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\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: slot.always(\n getIntrinsicElementProps('span', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLHeadingElement & HTMLPreElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref as React.Ref<HTMLHeadingElement & HTMLPreElement>,\n ...props,\n }),\n { elementType: 'span' },\n ),\n };\n\n return state;\n};\n"],"names":["getIntrinsicElementProps","slot","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","state","components","root","always","elementType"],"mappings":";;;;+BAaaE;;;;;;gCAZkC,4BAA4B;AAYpE,yBAAyB,CAACC,OAAkBC;IACjD,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,MAAM,EAAEC,SAAS,EAAEC,aAAa,EAAEC,IAAI,EAAEC,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAE,GAAGX;IAE/F,MAAMY,QAAmB;QACvBD,OAAOA,UAAAA,QAAAA,UAAAA,KAAAA,IAAAA,QAAS;QAChBP,OAAOA,UAAAA,QAAAA,UAAAA,KAAAA,IAAAA,QAAS;QAChBK,MAAMA,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAAQ;QACdJ,QAAQA,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,SAAU;QAClBG,MAAMA,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAAQ;QACdD,eAAeA,kBAAAA,QAAAA,kBAAAA,KAAAA,IAAAA,gBAAiB;QAChCJ,UAAUA,aAAAA,QAAAA,aAAAA,KAAAA,IAAAA,WAAY;QACtBG,WAAWA,cAAAA,QAAAA,cAAAA,KAAAA,IAAAA,YAAa;QACxBI,QAAQA,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,SAAU;QAClBR,MAAMA,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAAQ;QAEdW,YAAY;YAAEC,MAAM;QAAO;QAE3BA,MAAMhB,oBAAAA,CAAKiB,MAAM,KACflB,wCAAAA,EAAyB,QAAQ;YAC/B,SAAS;YACT,iGAAiG;YACjG,4FAA4F;YAC5FI,KAAKA;YACL,GAAGD,KAAK;QACV,IACA;YAAEgB,aAAa;QAAO;IAE1B;IAEA,OAAOJ;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/Text/useText.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } 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\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: slot.always(\n getIntrinsicElementProps('span', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLHeadingElement & HTMLPreElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: ref as React.Ref<HTMLHeadingElement & HTMLPreElement>,\n ...props,\n }),\n { elementType: 'span' },\n ),\n };\n\n return state;\n};\n"],"names":["getIntrinsicElementProps","slot","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","state","components","root","always","elementType"],"mappings":";;;;+BAaaE;;;;;;gCAZkC,4BAA4B;AAYpE,yBAAyB,CAACC,OAAkBC;IACjD,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,MAAM,EAAEC,SAAS,EAAEC,aAAa,EAAEC,IAAI,EAAEC,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAE,GAAGX;IAE/F,MAAMY,QAAmB;QACvBD,KAAK,EAAEA,UAAAA,QAAAA,UAAAA,KAAAA,IAAAA,QAAS;QAChBP,KAAK,EAAEA,UAAAA,QAAAA,UAAAA,KAAAA,IAAAA,QAAS;QAChBK,IAAI,EAAEA,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAAQ;QACdJ,MAAM,EAAEA,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,SAAU;QAClBG,IAAI,EAAEA,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAAQ;QACdD,aAAa,EAAEA,kBAAAA,QAAAA,kBAAAA,KAAAA,IAAAA,gBAAiB;QAChCJ,QAAQ,EAAEA,aAAAA,QAAAA,aAAAA,KAAAA,IAAAA,WAAY;QACtBG,SAAS,EAAEA,cAAAA,QAAAA,cAAAA,KAAAA,IAAAA,YAAa;QACxBI,MAAM,EAAEA,WAAAA,QAAAA,WAAAA,KAAAA,IAAAA,SAAU;QAClBR,IAAI,EAAEA,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAAQ;QAEdW,YAAY;YAAEC,MAAM;QAAO;QAE3BA,MAAMhB,oBAAAA,CAAKiB,MAAM,KACflB,wCAAAA,EAAyB,QAAQ;YAC/B,SAAS;YACT,iGAAiG;YACjG,4FAA4F;YAC5FI,KAAKA;YACL,GAAGD,KAAK;QACV,IACA;YAAEgB,aAAa;QAAO;IAE1B;IAEA,OAAOJ;AACT,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- textClassNames: function() {
13
+ get textClassNames () {
14
14
  return textClassNames;
15
15
  },
16
- useTextStyles_unstable: function() {
16
+ get useTextStyles_unstable () {
17
17
  return useTextStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useTextStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } 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 overflow: 'visible',\n textOverflow: 'clip'\n },\n nowrap: {\n whiteSpace: 'nowrap',\n 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 // eslint-disable-next-line react-hooks/immutability\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"],"names":["__styles","mergeClasses","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","Bpg54ce","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","p","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"mappings":"AAAA,YAAY;;;;;;;;;;;;IAGCG,cAAc;;;IAsGV0C,sBAAsB;;;;uBAxGE,gBAAgB;AAElD,uBAAuB;IAC1BzC,IAAI,EAAE;AACV,CAAC;AACD;;CAEA,GAAI,MAAMC,SAAS,GAAA,WAAA,OAAGL,eAAA,EAAA;IAAAI,IAAA,EAAA;QAAAE,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,MAAA,EAAA;QAAAL,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAG,QAAA,EAAA;QAAAF,MAAA,EAAA;IAAA;IAAAG,KAAA,EAAA;QAAAR,MAAA,EAAA;IAAA;IAAAS,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,SAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,aAAA,EAAA;QAAAD,MAAA,EAAA;IAAA;IAAAE,sBAAA,EAAA;QAAAF,MAAA,EAAA;IAAA;IAAAG,OAAA,EAAA;QAAAnB,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAmB,OAAA,EAAA;QAAApB,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAA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Q,EAAEY,KAAK,CAACK,IAAI,KAAK,WAAW,IAAIJ,MAAM,CAACZ,SAAS,EAAEW,KAAK,CAACK,IAAI,KAAK,SAAS,IAAIJ,MAAM,CAACX,OAAO,EAAEU,KAAK,CAACM,MAAM,KAAK,QAAQ,IAAIL,MAAM,CAACV,YAAY,EAAES,KAAK,CAACM,MAAM,KAAK,UAAU,IAAIL,MAAM,CAACT,cAAc,EAAEQ,KAAK,CAACM,MAAM,KAAK,MAAM,IAAIL,MAAM,CAACR,UAAU,EAAEO,KAAK,CAACO,KAAK,KAAK,QAAQ,IAAIN,MAAM,CAACP,WAAW,EAAEM,KAAK,CAACO,KAAK,KAAK,KAAK,IAAIN,MAAM,CAACN,QAAQ,EAAEK,KAAK,CAACO,KAAK,KAAK,SAAS,IAAIN,MAAM,CAACL,YAAY,EAAEI,KAAK,CAAC1C,IAAI,CAAC4C,SAAS,CAAC;IACllC,OAAOF,KAAK;AAChB,CAAC"}
1
+ {"version":3,"sources":["useTextStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } 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 overflow: 'visible',\n textOverflow: 'clip'\n },\n nowrap: {\n whiteSpace: 'nowrap',\n 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 // eslint-disable-next-line react-hooks/immutability\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"],"names":["__styles","mergeClasses","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","Bpg54ce","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","p","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"mappings":"AAAA,YAAY;;;;;;;;;;;;QAGCG,cAAc;;;QAsGV0C,sBAAsB;;;;uBAxGE,gBAAgB;AAElD,uBAAuB;IAC1BzC,IAAI,EAAE;AACV,CAAC;AACD;;CAEA,GAAI,MAAMC,SAAS,GAAA,WAAA,OAAGL,eAAA,EAAA;IAAAI,IAAA,EAAA;QAAAE,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,MAAA,EAAA;QAAAL,MAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAG,QAAA,EAAA;QAAAF,MAAA,EAAA;IAAA;IAAAG,KAAA,EAAA;QAAAR,MAAA,EAAA;IAAA;IAAAS,MAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;IAAAC,SAAA,EAAA;QAAAC,MAAA,EAAA;IAAA;IAAAC,aAAA,EAAA;QAAAD,MAAA,EAAA;IAAA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Ee,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACf,OAAO,EAAEc,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACd,OAAO,EAAEa,KAAK,CAACI,IAAI,KAAK,IAAI,IAAIH,MAAM,CAACb,QAAQ,EAAEY,KAAK,CAACK,IAAI,KAAK,WAAW,IAAIJ,MAAM,CAACZ,SAAS,EAAEW,KAAK,CAACK,IAAI,KAAK,SAAS,IAAIJ,MAAM,CAACX,OAAO,EAAEU,KAAK,CAACM,MAAM,KAAK,QAAQ,IAAIL,MAAM,CAACV,YAAY,EAAES,KAAK,CAACM,MAAM,KAAK,UAAU,IAAIL,MAAM,CAACT,cAAc,EAAEQ,KAAK,CAACM,MAAM,KAAK,MAAM,IAAIL,MAAM,CAACR,UAAU,EAAEO,KAAK,CAACO,KAAK,KAAK,QAAQ,IAAIN,MAAM,CAACP,WAAW,EAAEM,KAAK,CAACO,KAAK,KAAK,KAAK,IAAIN,MAAM,CAACN,QAAQ,EAAEK,KAAK,CAACO,KAAK,KAAK,SAAS,IAAIN,MAAM,CAACL,YAAY,EAAEI,KAAK,CAAC1C,IAAI,CAAC4C,SAAS,CAAC;IACllC,OAAOF,KAAK;AAChB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get textClassNames () {
13
+ return textClassNames;
14
+ },
15
+ get useTextStyles_unstable () {
16
+ return useTextStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _Textmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Text.module.css"));
22
+ const textClassNames = {
23
+ root: 'fui-Text'
24
+ };
25
+ const useTextStyles_unstable = (state)=>{
26
+ state.root.className = (0, _clsx.clsx)(textClassNames.root, _Textmodulecss.default.root, state.wrap === false && _Textmodulecss.default.nowrap, state.truncate && _Textmodulecss.default.truncate, state.block && _Textmodulecss.default.block, state.italic && _Textmodulecss.default.italic, state.underline && _Textmodulecss.default.underline, state.strikethrough && _Textmodulecss.default.strikethrough, _Textmodulecss.default[`size${state.size}`], _Textmodulecss.default[state.font], _Textmodulecss.default[state.weight], _Textmodulecss.default[state.align], state.root.className);
27
+ return state;
28
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Text/useTextStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\nimport styles from './Text.module.css';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n state.root.className = clsx(\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 styles[`size${state.size}`],\n styles[state.font],\n styles[state.weight],\n styles[state.align],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","textClassNames","root","useTextStyles_unstable","state","className","wrap","nowrap","truncate","block","italic","underline","strikethrough","size","font","weight","align"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;wEAGT,oBAAoB;AAEhC,uBAAkD;IACvDC,MAAM;AACR,EAAE;AAEK,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,OAAGN,UAAAA,EACrBE,eAAeC,IAAI,EACnBF,sBAAAA,CAAOE,IAAI,EACXE,MAAME,IAAI,KAAK,SAASN,sBAAAA,CAAOO,MAAM,EACrCH,MAAMI,QAAQ,IAAIR,sBAAAA,CAAOQ,QAAQ,EACjCJ,MAAMK,KAAK,IAAIT,sBAAAA,CAAOS,KAAK,EAC3BL,MAAMM,MAAM,IAAIV,sBAAAA,CAAOU,MAAM,EAC7BN,MAAMO,SAAS,IAAIX,sBAAAA,CAAOW,SAAS,EACnCP,MAAMQ,aAAa,IAAIZ,sBAAAA,CAAOY,aAAa,EAC3CZ,sBAAM,CAAC,CAAC,IAAI,EAAEI,MAAMS,IAAI,EAAE,CAAC,EAC3Bb,sBAAM,CAACI,MAAMU,IAAI,CAAC,EAClBd,sBAAM,CAACI,MAAMW,MAAM,CAAC,EACpBf,sBAAM,CAACI,MAAMY,KAAK,CAAC,EACnBZ,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- textClassNames: function() {
13
+ get textClassNames () {
14
14
  return textClassNames;
15
15
  },
16
- useTextStyles_unstable: function() {
16
+ get useTextStyles_unstable () {
17
17
  return useTextStyles_unstable;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Text/useTextStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport type { 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 overflow: 'visible',\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n 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 // eslint-disable-next-line react-hooks/immutability\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"],"names":["makeStyles","mergeClasses","tokens","textClassNames","root","useStyles","fontFamily","fontFamilyBase","fontSize","fontSizeBase300","lineHeight","lineHeightBase300","fontWeight","fontWeightRegular","textAlign","display","whiteSpace","overflow","textOverflow","nowrap","truncate","block","italic","fontStyle","underline","textDecorationLine","strikethrough","strikethroughUnderline","base100","fontSizeBase100","lineHeightBase100","base200","fontSizeBase200","lineHeightBase200","base400","fontSizeBase400","lineHeightBase400","base500","fontSizeBase500","lineHeightBase500","base600","fontSizeBase600","lineHeightBase600","hero700","fontSizeHero700","lineHeightHero700","hero800","fontSizeHero800","lineHeightHero800","hero900","fontSizeHero900","lineHeightHero900","hero1000","fontSizeHero1000","lineHeightHero1000","monospace","fontFamilyMonospace","numeric","fontFamilyNumeric","weightMedium","fontWeightMedium","weightSemibold","fontWeightSemibold","weightBold","fontWeightBold","alignCenter","alignEnd","alignJustify","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"mappings":"AAAA;;;;;;;;;;;;IAOaG,cAAAA;;;0BA0GAiE;eAAAA;;;uBA/G4B,iBAAiB;4BACnC,wBAAwB;A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ACpCmC,MAAMI,IAAI,KAAK,OAAOH,OAAOjC,OAAO,EACpCgC,MAAMI,IAAI,KAAK,OAAOH,OAAO9B,OAAO,EACpC6B,MAAMI,IAAI,KAAK,OAAOH,OAAO3B,OAAO,EACpC0B,MAAMI,IAAI,KAAK,OAAOH,OAAOxB,OAAO,EACpCuB,MAAMI,IAAI,KAAK,OAAOH,OAAOrB,OAAO,EACpCoB,MAAMI,IAAI,KAAK,QAAQH,OAAOlB,QAAQ,EACtCiB,MAAMK,IAAI,KAAK,eAAeJ,OAAOf,SAAS,EAC9Cc,MAAMK,IAAI,KAAK,aAAaJ,OAAOb,OAAO,EAC1CY,MAAMM,MAAM,KAAK,YAAYL,OAAOX,YAAY,EAChDU,MAAMM,MAAM,KAAK,cAAcL,OAAOT,cAAc,EACpDQ,MAAMM,MAAM,KAAK,UAAUL,OAAOP,UAAU,EAC5CM,MAAMO,KAAK,KAAK,YAAYN,OAAOL,WAAW,EAC9CI,MAAMO,KAAK,KAAK,SAASN,OAAOJ,QAAQ,EACxCG,MAAMO,KAAK,KAAK,aAAaN,OAAOH,YAAY,EAChDE,MAAMjE,IAAI,CAACmE,SAAS;IAGtB,OAAOF;AACT,EAAE"}
1
+ {"version":3,"sources":["../../../src/components/Text/useTextStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport type { 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 overflow: 'visible',\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n 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 // eslint-disable-next-line react-hooks/immutability\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"],"names":["makeStyles","mergeClasses","tokens","textClassNames","root","useStyles","fontFamily","fontFamilyBase","fontSize","fontSizeBase300","lineHeight","lineHeightBase300","fontWeight","fontWeightRegular","textAlign","display","whiteSpace","overflow","textOverflow","nowrap","truncate","block","italic","fontStyle","underline","textDecorationLine","strikethrough","strikethroughUnderline","base100","fontSizeBase100","lineHeightBase100","base200","fontSizeBase200","lineHeightBase200","base400","fontSizeBase400","lineHeightBase400","base500","fontSizeBase500","lineHeightBase500","base600","fontSizeBase600","lineHeightBase600","hero700","fontSizeHero700","lineHeightHero700","hero800","fontSizeHero800","lineHeightHero800","hero900","fontSizeHero900","lineHeightHero900","hero1000","fontSizeHero1000","lineHeightHero1000","monospace","fontFamilyMonospace","numeric","fontFamilyNumeric","weightMedium","fontWeightMedium","weightSemibold","fontWeightSemibold","weightBold","fontWeightBold","alignCenter","alignEnd","alignJustify","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"mappings":"AAAA;;;;;;;;;;;;QAOaG;;;QA0GAiE;;;;uBA/G4B,iBAAiB;4BACnC,wBAAwB;AAIxC,uBAAkD;IACvDhE,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,M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AMI,IAAI,KAAK,OAAOH,OAAO9B,OAAO,EACpC6B,MAAMI,IAAI,KAAK,OAAOH,OAAO3B,OAAO,EACpC0B,MAAMI,IAAI,KAAK,OAAOH,OAAOxB,OAAO,EACpCuB,MAAMI,IAAI,KAAK,OAAOH,OAAOrB,OAAO,EACpCoB,MAAMI,IAAI,KAAK,QAAQH,OAAOlB,QAAQ,EACtCiB,MAAMK,IAAI,KAAK,eAAeJ,OAAOf,SAAS,EAC9Cc,MAAMK,IAAI,KAAK,aAAaJ,OAAOb,OAAO,EAC1CY,MAAMM,MAAM,KAAK,YAAYL,OAAOX,YAAY,EAChDU,MAAMM,MAAM,KAAK,cAAcL,OAAOT,cAAc,EACpDQ,MAAMM,MAAM,KAAK,UAAUL,OAAOP,UAAU,EAC5CM,MAAMO,KAAK,KAAK,YAAYN,OAAOL,WAAW,EAC9CI,MAAMO,KAAK,KAAK,SAASN,OAAOJ,QAAQ,EACxCG,MAAMO,KAAK,KAAK,aAAaN,OAAOH,YAAY,EAChDE,MAAMjE,IAAI,CAACmE,SAAS;IAGtB,OAAOF;AACT,EAAE"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get textClassNames () {
13
+ return textClassNames;
14
+ },
15
+ get useTextStyles_unstable () {
16
+ return useTextStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _clsx = require("clsx");
21
+ const _Textmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Text.module.css"));
22
+ const textClassNames = {
23
+ root: 'fui-Text'
24
+ };
25
+ const useTextStyles_unstable = (state)=>{
26
+ state.root.className = (0, _clsx.clsx)(textClassNames.root, _Textmodulecss.default.root, state.wrap === false && _Textmodulecss.default.nowrap, state.truncate && _Textmodulecss.default.truncate, state.block && _Textmodulecss.default.block, state.italic && _Textmodulecss.default.italic, state.underline && _Textmodulecss.default.underline, state.strikethrough && _Textmodulecss.default.strikethrough, _Textmodulecss.default[`size${state.size}`], _Textmodulecss.default[state.font], _Textmodulecss.default[state.weight], _Textmodulecss.default[state.align], state.root.className);
27
+ return state;
28
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Text/useTextStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\nimport styles from './Text.module.css';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n state.root.className = clsx(\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 styles[`size${state.size}`],\n styles[state.font],\n styles[state.weight],\n styles[state.align],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","textClassNames","root","useTextStyles_unstable","state","className","wrap","nowrap","truncate","block","italic","underline","strikethrough","size","font","weight","align"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;wEAGT,oBAAoB;AAEhC,uBAAkD;IACvDC,MAAM;AACR,EAAE;AAEK,MAAMC,yBAAyB,CAACC;IACrCA,MAAMF,IAAI,CAACG,SAAS,OAAGN,UAAAA,EACrBE,eAAeC,IAAI,EACnBF,sBAAAA,CAAOE,IAAI,EACXE,MAAME,IAAI,KAAK,SAASN,sBAAAA,CAAOO,MAAM,EACrCH,MAAMI,QAAQ,IAAIR,sBAAAA,CAAOQ,QAAQ,EACjCJ,MAAMK,KAAK,IAAIT,sBAAAA,CAAOS,KAAK,EAC3BL,MAAMM,MAAM,IAAIV,sBAAAA,CAAOU,MAAM,EAC7BN,MAAMO,SAAS,IAAIX,sBAAAA,CAAOW,SAAS,EACnCP,MAAMQ,aAAa,IAAIZ,sBAAAA,CAAOY,aAAa,EAC3CZ,sBAAM,CAAC,CAAC,IAAI,EAAEI,MAAMS,IAAI,EAAE,CAAC,EAC3Bb,sBAAM,CAACI,MAAMU,IAAI,CAAC,EAClBd,sBAAM,CAACI,MAAMW,MAAM,CAAC,EACpBf,sBAAM,CAACI,MAAMY,KAAK,CAAC,EACnBZ,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1/Body1.tsx"],"sourcesContent":["'use client';\n\nimport type * as React 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: React.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":"AAAA;;;;;;;;;;;8BAG6B,qBAAkB;sCAEC,6BAA0B;AAKnE,MAAMG,YAAkDH,0BAAAA,EAAa;IAC1EI,WAAWF,oCAAAA;IACXG,WAAWJ,qCAAAA,CAAgBK,IAAI;IAC/BC,aAAa;AACf,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1/Body1.tsx"],"sourcesContent":["'use client';\n\nimport type * as React 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: React.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":"AAAA;;;;;;;;;;;8BAG6B,qBAAkB;sCAEC,6BAA0B;AAKnE,MAAMG,YAAkDH,0BAAAA,EAAa;IAC1EI,WAAWF,oCAAAA;IACXG,WAAWJ,qCAAAA,CAAgBK,IAAI;IAC/BC,aAAa;AACf,GAAG"}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Body1: function() {
12
+ get Body1 () {
13
13
  return _Body1.Body1;
14
14
  },
15
- body1ClassNames: function() {
15
+ get body1ClassNames () {
16
16
  return _useBody1Stylesstyles.body1ClassNames;
17
17
  }
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1/index.ts"],"sourcesContent":["export { Body1 } from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"names":["Body1","body1ClassNames"],"mappings":";;;;;;;;;;;;eAASA,YAAK;;;eACLC,qCAAe;;;uBADF,aAAU;sCACA,6BAA0B"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1/index.ts"],"sourcesContent":["export { Body1 } from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"names":["Body1","body1ClassNames"],"mappings":";;;;;;;;;;;;eAASA,YAAK;;;eACLC,qCAAe;;;uBADF,aAAU;sCACA,6BAA0B"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- body1ClassNames: function() {
13
+ get body1ClassNames () {
14
14
  return body1ClassNames;
15
15
  },
16
- useBody1Styles: function() {
16
+ get useBody1Styles () {
17
17
  return useBody1Styles;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useBody1Styles.styles.js"],"sourcesContent":["'use client';\nimport { 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"],"names":["__styles","typographyStyles","body1ClassNames","root","useBody1Styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;;mBAGgB;;;kBAKG;;;;uBAPJ,gBAAgB;AAEpC,MAAME,kBAAkB;IAC3BC,IAAI,EAAE;AACV,CAAC;AAGU,MAAMC,iBAAc,WAAA,OAAGJ,eAAA,EAAA;IAAAG,IAAA,EAAA;QAAAE,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAEjC,CAAC"}
1
+ {"version":3,"sources":["useBody1Styles.styles.js"],"sourcesContent":["'use client';\nimport { 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"],"names":["__styles","typographyStyles","body1ClassNames","root","useBody1Styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;;;;;;;;;uBACe,gBAAgB;AAEpC,MAAME,eAAe,GAAG;IAC3BC,IAAI,EAAE;AACV,CAAC;AAGU,MAAMC,cAAc,GAAA,WAAA,OAAGJ,eAAA,EAAA;IAAAG,IAAA,EAAA;QAAAE,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAEjC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get body1ClassNames () {
13
+ return body1ClassNames;
14
+ },
15
+ get useBody1Styles () {
16
+ return useBody1Styles;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _TextPresetsmodulecss = /*#__PURE__*/ _interop_require_default._(require("../TextPresets.module.css"));
21
+ const body1ClassNames = {
22
+ root: 'fui-Body1'
23
+ };
24
+ const useBody1Styles = ()=>({
25
+ root: _TextPresetsmodulecss.default.body1
26
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1/useBody1Styles.styles.css.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots } from '../../Text/Text.types';\nimport styles from '../TextPresets.module.css';\n\nexport const body1ClassNames: SlotClassNames<TextSlots> = { root: 'fui-Body1' };\nexport const useBody1Styles = (): Record<'root', string> => ({ root: styles.body1 });\n"],"names":["styles","body1ClassNames","root","useBody1Styles","body1"],"mappings":";;;;;;;;;;;;;;;;;;;+EAEmB,4BAA4B;AAExC,MAAMC,kBAA6C;IAAEC,MAAM;AAAY,EAAE;AACzE,MAAMC,iBAAiB,IAA+B,CAAA;QAAED,MAAMF,6BAAAA,CAAOI,KAAK;KAAC,CAAA,EAAG"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- body1ClassNames: function() {
13
+ get body1ClassNames () {
14
14
  return body1ClassNames;
15
15
  },
16
- useBody1Styles: function() {
16
+ get useBody1Styles () {
17
17
  return useBody1Styles;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1/useBody1Styles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@griffel/react';\nimport type { 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"],"names":["makeStyles","typographyStyles","body1ClassNames","root","useBody1Styles","body1"],"mappings":"AAAA;;;;;;;;;;;;mBAOaE;;;kBAOAE;;;;uBAZc,iBAAiB;4BAGX,wBAAwB;AAElD,MAAMF,kBAA6C;IACxDC,MAAM;AACR,EAAE;AAKK,MAAMC,qBAAiBJ,iBAAAA,EAAW;IACvCG,MAAMF,4BAAAA,CAAiBI,KAAK;AAC9B,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1/useBody1Styles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@griffel/react';\nimport type { 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"],"names":["makeStyles","typographyStyles","body1ClassNames","root","useBody1Styles","body1"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;uBAE2B,iBAAiB;4BAGX,wBAAwB;AAElD,MAAME,kBAA6C;IACxDC,MAAM;AACR,EAAE;AAKK,MAAMC,qBAAiBJ,iBAAAA,EAAW;IACvCG,MAAMF,4BAAAA,CAAiBI,KAAK;AAC9B,GAAG"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get body1ClassNames () {
13
+ return body1ClassNames;
14
+ },
15
+ get useBody1Styles () {
16
+ return useBody1Styles;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _TextPresetsmodulecss = /*#__PURE__*/ _interop_require_default._(require("../TextPresets.module.css"));
21
+ const body1ClassNames = {
22
+ root: 'fui-Body1'
23
+ };
24
+ const useBody1Styles = ()=>({
25
+ root: _TextPresetsmodulecss.default.body1
26
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1/useBody1Styles.styles.css.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots } from '../../Text/Text.types';\nimport styles from '../TextPresets.module.css';\n\nexport const body1ClassNames: SlotClassNames<TextSlots> = { root: 'fui-Body1' };\nexport const useBody1Styles = (): Record<'root', string> => ({ root: styles.body1 });\n"],"names":["styles","body1ClassNames","root","useBody1Styles","body1"],"mappings":";;;;;;;;;;;;;;;;;;;+EAEmB,4BAA4B;AAExC,MAAMC,kBAA6C;IAAEC,MAAM;AAAY,EAAE;AACzE,MAAMC,iBAAiB,IAA+B,CAAA;QAAED,MAAMF,6BAAAA,CAAOI,KAAK;KAAC,CAAA,EAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1Strong/Body1Strong.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1StrongClassNames, useBody1StrongStyles } from './useBody1StrongStyles.styles';\n\n/**\n * Text preset component for the Body1Strong typography variant\n */\nexport const Body1Strong: React.FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1StrongStyles,\n className: body1StrongClassNames.root,\n displayName: 'Body1Strong',\n});\n"],"names":["createPreset","body1StrongClassNames","useBody1StrongStyles","Body1Strong","useStyles","className","root","displayName"],"mappings":"AAAA;;;;;;;;;;;8BAG6B,qBAAkB;4CAEa,mCAAgC;AAKrF,MAAMG,kBAAwDH,0BAAAA,EAAa;IAChFI,WAAWF,gDAAAA;IACXG,WAAWJ,iDAAAA,CAAsBK,IAAI;IACrCC,aAAa;AACf,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1Strong/Body1Strong.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1StrongClassNames, useBody1StrongStyles } from './useBody1StrongStyles.styles';\n\n/**\n * Text preset component for the Body1Strong typography variant\n */\nexport const Body1Strong: React.FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1StrongStyles,\n className: body1StrongClassNames.root,\n displayName: 'Body1Strong',\n});\n"],"names":["createPreset","body1StrongClassNames","useBody1StrongStyles","Body1Strong","useStyles","className","root","displayName"],"mappings":"AAAA;;;;;;;;;;;8BAG6B,qBAAkB;4CAEa,mCAAgC;AAKrF,MAAMG,kBAAwDH,0BAAAA,EAAa;IAChFI,WAAWF,gDAAAA;IACXG,WAAWJ,iDAAAA,CAAsBK,IAAI;IACrCC,aAAa;AACf,GAAG"}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Body1Strong: function() {
12
+ get Body1Strong () {
13
13
  return _Body1Strong.Body1Strong;
14
14
  },
15
- body1StrongClassNames: function() {
15
+ get body1StrongClassNames () {
16
16
  return _useBody1StrongStylesstyles.body1StrongClassNames;
17
17
  }
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1Strong/index.ts"],"sourcesContent":["export { Body1Strong } from './Body1Strong';\nexport { body1StrongClassNames } from './useBody1StrongStyles.styles';\n"],"names":["Body1Strong","body1StrongClassNames"],"mappings":";;;;;;;;;;;;eAASA,wBAAW;;;eACXC,iDAAqB;;;6BADF,mBAAgB;4CACN,mCAAgC"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1Strong/index.ts"],"sourcesContent":["export { Body1Strong } from './Body1Strong';\nexport { body1StrongClassNames } from './useBody1StrongStyles.styles';\n"],"names":["Body1Strong","body1StrongClassNames"],"mappings":";;;;;;;;;;;;eAASA,wBAAW;;;eACXC,iDAAqB;;;6BADF,mBAAgB;4CACN,mCAAgC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- body1StrongClassNames: function() {
13
+ get body1StrongClassNames () {
14
14
  return body1StrongClassNames;
15
15
  },
16
- useBody1StrongStyles: function() {
16
+ get useBody1StrongStyles () {
17
17
  return useBody1StrongStyles;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["useBody1StrongStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles } from \"@griffel/react\";\nimport { typographyStyles } from \"@fluentui/react-theme\";\nexport const body1StrongClassNames = {\n root: 'fui-Body1Strong'\n};\n/**\n * Styles for the root slot\n */ export const useBody1StrongStyles = makeStyles({\n root: typographyStyles.body1Strong\n});\n"],"names":["__styles","typographyStyles","body1StrongClassNames","root","useBody1StrongStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;;yBAGsB;;;wBAKG;;;;uBAPV,gBAAgB;AAEpC,MAAME,wBAAwB;IACjCC,IAAI,EAAE;AACV,CAAC;AAGU,MAAMC,uBAAoB,WAAA,OAAGJ,eAAA,EAAA;IAAAG,IAAA,EAAA;QAAAE,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAEvC,CAAC"}
1
+ {"version":3,"sources":["useBody1StrongStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles } from \"@griffel/react\";\nimport { typographyStyles } from \"@fluentui/react-theme\";\nexport const body1StrongClassNames = {\n root: 'fui-Body1Strong'\n};\n/**\n * Styles for the root slot\n */ export const useBody1StrongStyles = makeStyles({\n root: typographyStyles.body1Strong\n});\n"],"names":["__styles","typographyStyles","body1StrongClassNames","root","useBody1StrongStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"mappings":"AAAA,YAAY;;;;;;;;;;;;;;;;;;;uBACe,gBAAgB;AAEpC,MAAME,qBAAqB,GAAG;IACjCC,IAAI,EAAE;AACV,CAAC;AAGU,MAAMC,oBAAoB,GAAA,WAAA,OAAGJ,eAAA,EAAA;IAAAG,IAAA,EAAA;QAAAE,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;QAAAC,OAAA,EAAA;IAAA;AAAA,GAAA;IAAAC,CAAA,EAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA,CAEvC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get body1StrongClassNames () {
13
+ return body1StrongClassNames;
14
+ },
15
+ get useBody1StrongStyles () {
16
+ return useBody1StrongStyles;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _TextPresetsmodulecss = /*#__PURE__*/ _interop_require_default._(require("../TextPresets.module.css"));
21
+ const body1StrongClassNames = {
22
+ root: 'fui-Body1Strong'
23
+ };
24
+ const useBody1StrongStyles = ()=>({
25
+ root: _TextPresetsmodulecss.default.body1Strong
26
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1Strong/useBody1StrongStyles.styles.css.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots } from '../../Text/Text.types';\nimport styles from '../TextPresets.module.css';\n\nexport const body1StrongClassNames: SlotClassNames<TextSlots> = { root: 'fui-Body1Strong' };\nexport const useBody1StrongStyles = (): Record<'root', string> => ({ root: styles.body1Strong });\n"],"names":["styles","body1StrongClassNames","root","useBody1StrongStyles","body1Strong"],"mappings":";;;;;;;;;;;;;;;;;;;+EAEmB,4BAA4B;AAExC,MAAMC,wBAAmD;IAAEC,MAAM;AAAkB,EAAE;AACrF,MAAMC,uBAAuB,IAA+B,CAAA;QAAED,MAAMF,6BAAAA,CAAOI,WAAW;KAAC,CAAA,EAAG"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- body1StrongClassNames: function() {
13
+ get body1StrongClassNames () {
14
14
  return body1StrongClassNames;
15
15
  },
16
- useBody1StrongStyles: function() {
16
+ get useBody1StrongStyles () {
17
17
  return useBody1StrongStyles;
18
18
  }
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1Strong/useBody1StrongStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots } from '../../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const body1StrongClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1Strong',\n};\n\n/**\n * Styles for the root slot\n */\nexport const useBody1StrongStyles = makeStyles({\n root: typographyStyles.body1Strong,\n});\n"],"names":["makeStyles","typographyStyles","body1StrongClassNames","root","useBody1StrongStyles","body1Strong"],"mappings":"AAAA;;;;;;;;;;;;yBAOaE;;;wBAOAE;;;;uBAZc,iBAAiB;4BAGX,wBAAwB;AAElD,MAAMF,wBAAmD;IAC9DC,MAAM;AACR,EAAE;AAKK,MAAMC,2BAAuBJ,iBAAAA,EAAW;IAC7CG,MAAMF,4BAAAA,CAAiBI,WAAW;AACpC,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1Strong/useBody1StrongStyles.styles.ts"],"sourcesContent":["'use client';\n\nimport { makeStyles } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots } from '../../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const body1StrongClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1Strong',\n};\n\n/**\n * Styles for the root slot\n */\nexport const useBody1StrongStyles = makeStyles({\n root: typographyStyles.body1Strong,\n});\n"],"names":["makeStyles","typographyStyles","body1StrongClassNames","root","useBody1StrongStyles","body1Strong"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;uBAE2B,iBAAiB;4BAGX,wBAAwB;AAElD,MAAME,wBAAmD;IAC9DC,MAAM;AACR,EAAE;AAKK,MAAMC,2BAAuBJ,iBAAAA,EAAW;IAC7CG,MAAMF,4BAAAA,CAAiBI,WAAW;AACpC,GAAG"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get body1StrongClassNames () {
13
+ return body1StrongClassNames;
14
+ },
15
+ get useBody1StrongStyles () {
16
+ return useBody1StrongStyles;
17
+ }
18
+ });
19
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
+ const _TextPresetsmodulecss = /*#__PURE__*/ _interop_require_default._(require("../TextPresets.module.css"));
21
+ const body1StrongClassNames = {
22
+ root: 'fui-Body1Strong'
23
+ };
24
+ const useBody1StrongStyles = ()=>({
25
+ root: _TextPresetsmodulecss.default.body1Strong
26
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1Strong/useBody1StrongStyles.styles.css.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots } from '../../Text/Text.types';\nimport styles from '../TextPresets.module.css';\n\nexport const body1StrongClassNames: SlotClassNames<TextSlots> = { root: 'fui-Body1Strong' };\nexport const useBody1StrongStyles = (): Record<'root', string> => ({ root: styles.body1Strong });\n"],"names":["styles","body1StrongClassNames","root","useBody1StrongStyles","body1Strong"],"mappings":";;;;;;;;;;;;;;;;;;;+EAEmB,4BAA4B;AAExC,MAAMC,wBAAmD;IAAEC,MAAM;AAAkB,EAAE;AACrF,MAAMC,uBAAuB,IAA+B,CAAA;QAAED,MAAMF,6BAAAA,CAAOI,WAAW;KAAC,CAAA,EAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/presets/Body1Stronger/Body1Stronger.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1StrongerClassNames, useBody1StrongerStyles } from './useBody1StrongerStyles.styles';\n\n/**\n * Text preset component for the Body1Stronger typography variant\n */\nexport const Body1Stronger: React.FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1StrongerStyles,\n className: body1StrongerClassNames.root,\n displayName: 'Body1Stronger',\n});\n"],"names":["createPreset","body1StrongerClassNames","useBody1StrongerStyles","Body1Stronger","useStyles","className","root","displayName"],"mappings":"AAAA;;;;;;;;;;;8BAG6B,qBAAkB;8CAEiB,qCAAkC;AAK3F,MAAMG,oBAA0DH,0BAAAA,EAAa;IAClFI,WAAWF,oDAAAA;IACXG,WAAWJ,qDAAAA,CAAwBK,IAAI;IACvCC,aAAa;AACf,GAAG"}
1
+ {"version":3,"sources":["../../../../src/components/presets/Body1Stronger/Body1Stronger.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1StrongerClassNames, useBody1StrongerStyles } from './useBody1StrongerStyles.styles';\n\n/**\n * Text preset component for the Body1Stronger typography variant\n */\nexport const Body1Stronger: React.FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1StrongerStyles,\n className: body1StrongerClassNames.root,\n displayName: 'Body1Stronger',\n});\n"],"names":["createPreset","body1StrongerClassNames","useBody1StrongerStyles","Body1Stronger","useStyles","className","root","displayName"],"mappings":"AAAA;;;;;;;;;;;8BAG6B,qBAAkB;8CAEiB,qCAAkC;AAK3F,MAAMG,oBAA0DH,0BAAAA,EAAa;IAClFI,WAAWF,oDAAAA;IACXG,WAAWJ,qDAAAA,CAAwBK,IAAI;IACvCC,aAAa;AACf,GAAG"}