@fluentui/react-text 0.0.0-nightlyfc5cfdc52420220215.1 → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/CHANGELOG.json +368 -10
  2. package/CHANGELOG.md +174 -54
  3. package/README.md +4 -4
  4. package/dist/{react-text.d.ts → index.d.ts} +61 -56
  5. package/{lib → dist}/tsdoc-metadata.json +0 -0
  6. package/lib/Body1.js +2 -0
  7. package/lib/Body1.js.map +1 -0
  8. package/lib/Caption1.js +2 -0
  9. package/lib/Caption1.js.map +1 -0
  10. package/lib/Caption2.js +2 -0
  11. package/lib/Caption2.js.map +1 -0
  12. package/lib/Display.js.map +1 -1
  13. package/lib/LargeTitle.js.map +1 -1
  14. package/lib/Subtitle1.js +2 -0
  15. package/lib/Subtitle1.js.map +1 -0
  16. package/lib/Subtitle2.js +2 -0
  17. package/lib/Subtitle2.js.map +1 -0
  18. package/lib/Text.js.map +1 -1
  19. package/lib/Title1.js.map +1 -1
  20. package/lib/Title2.js.map +1 -1
  21. package/lib/Title3.js.map +1 -1
  22. package/lib/components/Body1/Body1.js +31 -0
  23. package/lib/components/Body1/Body1.js.map +1 -0
  24. package/lib/components/Body1/index.js +2 -0
  25. package/lib/components/Body1/index.js.map +1 -0
  26. package/lib/components/Caption1/Caption1.js +31 -0
  27. package/lib/components/Caption1/Caption1.js.map +1 -0
  28. package/lib/components/Caption1/index.js +2 -0
  29. package/lib/components/Caption1/index.js.map +1 -0
  30. package/lib/components/Caption2/Caption2.js +31 -0
  31. package/lib/components/Caption2/Caption2.js.map +1 -0
  32. package/lib/components/Caption2/index.js +2 -0
  33. package/lib/components/Caption2/index.js.map +1 -0
  34. package/lib/components/Display/Display.js +8 -6
  35. package/lib/components/Display/Display.js.map +1 -1
  36. package/lib/components/Display/index.js.map +1 -1
  37. package/lib/components/LargeTitle/LargeTitle.js +8 -6
  38. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  39. package/lib/components/LargeTitle/index.js.map +1 -1
  40. package/lib/components/Subtitle1/Subtitle1.js +31 -0
  41. package/lib/components/Subtitle1/Subtitle1.js.map +1 -0
  42. package/lib/components/Subtitle1/index.js +2 -0
  43. package/lib/components/Subtitle1/index.js.map +1 -0
  44. package/lib/components/Subtitle2/Subtitle2.js +31 -0
  45. package/lib/components/Subtitle2/Subtitle2.js.map +1 -0
  46. package/lib/components/Subtitle2/index.js +2 -0
  47. package/lib/components/Subtitle2/index.js.map +1 -0
  48. package/lib/components/Text/Text.js.map +1 -1
  49. package/lib/components/Text/Text.types.js.map +1 -1
  50. package/lib/components/Text/index.js.map +1 -1
  51. package/lib/components/Text/renderText.js.map +1 -1
  52. package/lib/components/Text/useText.js +6 -6
  53. package/lib/components/Text/useText.js.map +1 -1
  54. package/lib/components/Text/useTextStyles.js +4 -2
  55. package/lib/components/Text/useTextStyles.js.map +1 -1
  56. package/lib/components/Title1/Title1.js +8 -6
  57. package/lib/components/Title1/Title1.js.map +1 -1
  58. package/lib/components/Title1/index.js.map +1 -1
  59. package/lib/components/Title2/Title2.js +8 -6
  60. package/lib/components/Title2/Title2.js.map +1 -1
  61. package/lib/components/Title2/index.js.map +1 -1
  62. package/lib/components/Title3/Title3.js +8 -6
  63. package/lib/components/Title3/Title3.js.map +1 -1
  64. package/lib/components/Title3/index.js.map +1 -1
  65. package/lib/components/wrapper.js.map +1 -1
  66. package/lib/index.js +11 -10
  67. package/lib/index.js.map +1 -1
  68. package/lib-commonjs/{Body.js → Body1.js} +2 -2
  69. package/lib-commonjs/Body1.js.map +1 -0
  70. package/lib-commonjs/{Headline.js → Caption1.js} +2 -2
  71. package/lib-commonjs/Caption1.js.map +1 -0
  72. package/lib-commonjs/{Caption.js → Caption2.js} +2 -2
  73. package/lib-commonjs/Caption2.js.map +1 -0
  74. package/lib-commonjs/Display.js.map +1 -1
  75. package/lib-commonjs/LargeTitle.js.map +1 -1
  76. package/lib-commonjs/Subtitle1.js +10 -0
  77. package/lib-commonjs/Subtitle1.js.map +1 -0
  78. package/lib-commonjs/Subtitle2.js +10 -0
  79. package/lib-commonjs/Subtitle2.js.map +1 -0
  80. package/lib-commonjs/Text.js.map +1 -1
  81. package/lib-commonjs/Title1.js.map +1 -1
  82. package/lib-commonjs/Title2.js.map +1 -1
  83. package/lib-commonjs/Title3.js.map +1 -1
  84. package/lib-commonjs/components/Body1/Body1.js +41 -0
  85. package/lib-commonjs/components/Body1/Body1.js.map +1 -0
  86. package/lib-commonjs/components/{Body → Body1}/index.js +1 -1
  87. package/lib-commonjs/components/Body1/index.js.map +1 -0
  88. package/lib-commonjs/components/Caption1/Caption1.js +41 -0
  89. package/lib-commonjs/components/Caption1/Caption1.js.map +1 -0
  90. package/lib-commonjs/components/{Headline → Caption1}/index.js +1 -1
  91. package/lib-commonjs/components/Caption1/index.js.map +1 -0
  92. package/lib-commonjs/components/Caption2/Caption2.js +41 -0
  93. package/lib-commonjs/components/Caption2/Caption2.js.map +1 -0
  94. package/lib-commonjs/components/{Caption → Caption2}/index.js +1 -1
  95. package/lib-commonjs/components/Caption2/index.js.map +1 -0
  96. package/lib-commonjs/components/Display/Display.js +17 -6
  97. package/lib-commonjs/components/Display/Display.js.map +1 -1
  98. package/lib-commonjs/components/Display/index.js.map +1 -1
  99. package/lib-commonjs/components/LargeTitle/LargeTitle.js +17 -6
  100. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  101. package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
  102. package/lib-commonjs/components/Subtitle1/Subtitle1.js +41 -0
  103. package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -0
  104. package/lib-commonjs/components/{Subheadline → Subtitle1}/index.js +1 -1
  105. package/lib-commonjs/components/Subtitle1/index.js.map +1 -0
  106. package/lib-commonjs/components/Subtitle2/Subtitle2.js +41 -0
  107. package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -0
  108. package/lib-commonjs/components/Subtitle2/index.js +10 -0
  109. package/lib-commonjs/components/Subtitle2/index.js.map +1 -0
  110. package/lib-commonjs/components/Text/Text.js.map +1 -1
  111. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  112. package/lib-commonjs/components/Text/index.js.map +1 -1
  113. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  114. package/lib-commonjs/components/Text/useText.js +6 -6
  115. package/lib-commonjs/components/Text/useText.js.map +1 -1
  116. package/lib-commonjs/components/Text/useTextStyles.js +5 -3
  117. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  118. package/lib-commonjs/components/Title1/Title1.js +17 -6
  119. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  120. package/lib-commonjs/components/Title1/index.js.map +1 -1
  121. package/lib-commonjs/components/Title2/Title2.js +17 -6
  122. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  123. package/lib-commonjs/components/Title2/index.js.map +1 -1
  124. package/lib-commonjs/components/Title3/Title3.js +17 -6
  125. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  126. package/lib-commonjs/components/Title3/index.js.map +1 -1
  127. package/lib-commonjs/components/wrapper.js.map +1 -1
  128. package/lib-commonjs/index.js +173 -11
  129. package/lib-commonjs/index.js.map +1 -1
  130. package/package.json +17 -21
  131. package/lib/Body.d.ts +0 -1
  132. package/lib/Body.js +0 -2
  133. package/lib/Body.js.map +0 -1
  134. package/lib/Caption.d.ts +0 -1
  135. package/lib/Caption.js +0 -2
  136. package/lib/Caption.js.map +0 -1
  137. package/lib/Display.d.ts +0 -1
  138. package/lib/Headline.d.ts +0 -1
  139. package/lib/Headline.js +0 -2
  140. package/lib/Headline.js.map +0 -1
  141. package/lib/LargeTitle.d.ts +0 -1
  142. package/lib/Subheadline.d.ts +0 -1
  143. package/lib/Subheadline.js +0 -2
  144. package/lib/Subheadline.js.map +0 -1
  145. package/lib/Text.d.ts +0 -1
  146. package/lib/Title1.d.ts +0 -1
  147. package/lib/Title2.d.ts +0 -1
  148. package/lib/Title3.d.ts +0 -1
  149. package/lib/components/Body/Body.d.ts +0 -7
  150. package/lib/components/Body/Body.js +0 -29
  151. package/lib/components/Body/Body.js.map +0 -1
  152. package/lib/components/Body/index.d.ts +0 -1
  153. package/lib/components/Body/index.js +0 -2
  154. package/lib/components/Body/index.js.map +0 -1
  155. package/lib/components/Caption/Caption.d.ts +0 -7
  156. package/lib/components/Caption/Caption.js +0 -29
  157. package/lib/components/Caption/Caption.js.map +0 -1
  158. package/lib/components/Caption/index.d.ts +0 -1
  159. package/lib/components/Caption/index.js +0 -2
  160. package/lib/components/Caption/index.js.map +0 -1
  161. package/lib/components/Display/Display.d.ts +0 -7
  162. package/lib/components/Display/index.d.ts +0 -1
  163. package/lib/components/Headline/Headline.d.ts +0 -7
  164. package/lib/components/Headline/Headline.js +0 -29
  165. package/lib/components/Headline/Headline.js.map +0 -1
  166. package/lib/components/Headline/index.d.ts +0 -1
  167. package/lib/components/Headline/index.js +0 -2
  168. package/lib/components/Headline/index.js.map +0 -1
  169. package/lib/components/LargeTitle/LargeTitle.d.ts +0 -7
  170. package/lib/components/LargeTitle/index.d.ts +0 -1
  171. package/lib/components/Subheadline/Subheadline.d.ts +0 -7
  172. package/lib/components/Subheadline/Subheadline.js +0 -29
  173. package/lib/components/Subheadline/Subheadline.js.map +0 -1
  174. package/lib/components/Subheadline/index.d.ts +0 -1
  175. package/lib/components/Subheadline/index.js +0 -2
  176. package/lib/components/Subheadline/index.js.map +0 -1
  177. package/lib/components/Text/Text.d.ts +0 -6
  178. package/lib/components/Text/Text.types.d.ts +0 -78
  179. package/lib/components/Text/index.d.ts +0 -5
  180. package/lib/components/Text/renderText.d.ts +0 -5
  181. package/lib/components/Text/useText.d.ts +0 -12
  182. package/lib/components/Text/useTextStyles.d.ts +0 -6
  183. package/lib/components/Title1/Title1.d.ts +0 -7
  184. package/lib/components/Title1/index.d.ts +0 -1
  185. package/lib/components/Title2/Title2.d.ts +0 -7
  186. package/lib/components/Title2/index.d.ts +0 -1
  187. package/lib/components/Title3/Title3.d.ts +0 -7
  188. package/lib/components/Title3/index.d.ts +0 -1
  189. package/lib/components/wrapper.d.ts +0 -8
  190. package/lib/index.d.ts +0 -10
  191. package/lib/typographyStyles/index.d.ts +0 -2
  192. package/lib/typographyStyles/index.js +0 -3
  193. package/lib/typographyStyles/index.js.map +0 -1
  194. package/lib/typographyStyles/typographyStyles.d.ts +0 -13
  195. package/lib/typographyStyles/typographyStyles.js +0 -60
  196. package/lib/typographyStyles/typographyStyles.js.map +0 -1
  197. package/lib-commonjs/Body.d.ts +0 -1
  198. package/lib-commonjs/Body.js.map +0 -1
  199. package/lib-commonjs/Caption.d.ts +0 -1
  200. package/lib-commonjs/Caption.js.map +0 -1
  201. package/lib-commonjs/Display.d.ts +0 -1
  202. package/lib-commonjs/Headline.d.ts +0 -1
  203. package/lib-commonjs/Headline.js.map +0 -1
  204. package/lib-commonjs/LargeTitle.d.ts +0 -1
  205. package/lib-commonjs/Subheadline.d.ts +0 -1
  206. package/lib-commonjs/Subheadline.js +0 -10
  207. package/lib-commonjs/Subheadline.js.map +0 -1
  208. package/lib-commonjs/Text.d.ts +0 -1
  209. package/lib-commonjs/Title1.d.ts +0 -1
  210. package/lib-commonjs/Title2.d.ts +0 -1
  211. package/lib-commonjs/Title3.d.ts +0 -1
  212. package/lib-commonjs/components/Body/Body.d.ts +0 -7
  213. package/lib-commonjs/components/Body/Body.js +0 -30
  214. package/lib-commonjs/components/Body/Body.js.map +0 -1
  215. package/lib-commonjs/components/Body/index.d.ts +0 -1
  216. package/lib-commonjs/components/Body/index.js.map +0 -1
  217. package/lib-commonjs/components/Caption/Caption.d.ts +0 -7
  218. package/lib-commonjs/components/Caption/Caption.js +0 -30
  219. package/lib-commonjs/components/Caption/Caption.js.map +0 -1
  220. package/lib-commonjs/components/Caption/index.d.ts +0 -1
  221. package/lib-commonjs/components/Caption/index.js.map +0 -1
  222. package/lib-commonjs/components/Display/Display.d.ts +0 -7
  223. package/lib-commonjs/components/Display/index.d.ts +0 -1
  224. package/lib-commonjs/components/Headline/Headline.d.ts +0 -7
  225. package/lib-commonjs/components/Headline/Headline.js +0 -30
  226. package/lib-commonjs/components/Headline/Headline.js.map +0 -1
  227. package/lib-commonjs/components/Headline/index.d.ts +0 -1
  228. package/lib-commonjs/components/Headline/index.js.map +0 -1
  229. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -7
  230. package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
  231. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -7
  232. package/lib-commonjs/components/Subheadline/Subheadline.js +0 -30
  233. package/lib-commonjs/components/Subheadline/Subheadline.js.map +0 -1
  234. package/lib-commonjs/components/Subheadline/index.d.ts +0 -1
  235. package/lib-commonjs/components/Subheadline/index.js.map +0 -1
  236. package/lib-commonjs/components/Text/Text.d.ts +0 -6
  237. package/lib-commonjs/components/Text/Text.types.d.ts +0 -78
  238. package/lib-commonjs/components/Text/index.d.ts +0 -5
  239. package/lib-commonjs/components/Text/renderText.d.ts +0 -5
  240. package/lib-commonjs/components/Text/useText.d.ts +0 -12
  241. package/lib-commonjs/components/Text/useTextStyles.d.ts +0 -6
  242. package/lib-commonjs/components/Title1/Title1.d.ts +0 -7
  243. package/lib-commonjs/components/Title1/index.d.ts +0 -1
  244. package/lib-commonjs/components/Title2/Title2.d.ts +0 -7
  245. package/lib-commonjs/components/Title2/index.d.ts +0 -1
  246. package/lib-commonjs/components/Title3/Title3.d.ts +0 -7
  247. package/lib-commonjs/components/Title3/index.d.ts +0 -1
  248. package/lib-commonjs/components/wrapper.d.ts +0 -8
  249. package/lib-commonjs/index.d.ts +0 -10
  250. package/lib-commonjs/typographyStyles/index.d.ts +0 -2
  251. package/lib-commonjs/typographyStyles/index.js +0 -11
  252. package/lib-commonjs/typographyStyles/index.js.map +0 -1
  253. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +0 -13
  254. package/lib-commonjs/typographyStyles/typographyStyles.js +0 -68
  255. package/lib-commonjs/typographyStyles/typographyStyles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;AAEA,EAAA,sBAAsB,CAAC,KAAD,CAAtB;AAEA,SAAO,mBAAmB,CAAC,KAAD,CAA1B,CALkF,CAMlF;AACD,CAPmD,CAA7C;AASP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAClF,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAQ,GAAR,CAA9B;EAEA,sBAAsB,CAAC,KAAD,CAAtB;EAEA,OAAO,mBAAmB,CAAC,KAAD,CAA1B,CALkF,CAMlF;AACD,CAPmD,CAA7C;AASP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Text.types.js","sourceRoot":"../src/","sources":["components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;\n};\n\n/**\n * Text Props\n */\nexport type TextProps = ComponentProps<TextSlots> & {\n /**\n * Aligns text based on the parent container.\n *\n * @default start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Applies a block display for the content.\n *\n * @default false\n */\n block?: boolean;\n\n /**\n * Applies the font family to the content.\n *\n * @default base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies the italic font style to the content.\n *\n * @default false\n */\n italic?: boolean;\n\n /**\n * Applies font size and line height based on the theme 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';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAI,KAAD,IAAqB;AACtD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAY,KAAZ,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["components/Text/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAI,KAAD,IAAqB;EACtD,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAY,KAAZ,CAArC;EAEA,oBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAAP;AACD,CAJM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlots<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"sourceRoot":"../src/"}
@@ -26,16 +26,16 @@ export const useText_unstable = (props, ref) => {
26
26
  } = props;
27
27
  const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
28
28
  const state = {
29
- wrap: wrap !== null && wrap !== void 0 ? wrap : true,
30
- truncate: truncate !== null && truncate !== void 0 ? truncate : false,
29
+ align: align !== null && align !== void 0 ? align : 'start',
31
30
  block: block !== null && block !== void 0 ? block : false,
31
+ font: font !== null && font !== void 0 ? font : 'base',
32
32
  italic: italic !== null && italic !== void 0 ? italic : false,
33
- underline: underline !== null && underline !== void 0 ? underline : false,
34
- strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
35
33
  size: size !== null && size !== void 0 ? size : 300,
36
- font: font !== null && font !== void 0 ? font : 'base',
34
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
35
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
36
+ underline: underline !== null && underline !== void 0 ? underline : false,
37
37
  weight: weight !== null && weight !== void 0 ? weight : 'regular',
38
- align: align !== null && align !== void 0 ? align : 'start',
38
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
39
39
  components: {
40
40
  root: 'span'
41
41
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;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AAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;IAKvB,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GALS;IAMvB,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;IAOvB,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAPC;IAQvB,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KARD;IASvB,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;IAUvB,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IAVS;IAYvB,UAAU,EAAE;MAAE,IAAI,EAAE;IAAR,CAZW;IAcvB,IAAI,EAAE,qBAAqB,CAAC,EAAD,EAAK;MAC9B,GAD8B;MAE9B,GAAG,KAF2B;MAG9B;IAH8B,CAAL;EAdJ,CAAzB;EAqBA,OAAO,KAAP;AACD,CA1BM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,8 @@
1
1
  import { __styles, mergeClasses, shorthands } from '@griffel/react';
2
2
  import { tokens } from '@fluentui/react-theme';
3
- export const textClassName = 'fui-Text';
3
+ export const textClassNames = {
4
+ root: 'fui-Text'
5
+ };
4
6
  /**
5
7
  * Styles for the root slot
6
8
  */
@@ -108,7 +110,7 @@ const useStyles = /*#__PURE__*/__styles({
108
110
 
109
111
  export const useTextStyles_unstable = state => {
110
112
  const styles = useStyles();
111
- state.root.className = mergeClasses(textClassName, 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.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
113
+ 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.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
112
114
  return state;
113
115
  };
114
116
  //# sourceMappingURL=useTextStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,aAAa,GAAG,UAAtB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6FA;;AAEG;;;AACH,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAgC;AACpE,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,aADiC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C,YArBH,EAsBjC,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cAtBL,EAuBjC,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAvBF,EAwBjC,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBC,EAyBjC,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBH,EA0BjC,KAAK,CAAC,IAAN,CAAW,SA1BsB,CAAnC;EA6BA,OAAO,KAAP;AACD,CAjCM","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.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"],"sourceRoot":"../src/"}
@@ -1,7 +1,9 @@
1
1
  import { __styles } from '@griffel/react';
2
- import { typographyStyles } from '../../typographyStyles/index';
3
2
  import { createWrapper } from '../wrapper';
4
- export const title1ClassName = 'fui-Title1';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
+ export const title1ClassNames = {
5
+ root: 'fui-Title1'
6
+ };
5
7
  /**
6
8
  * Styles for the root slot
7
9
  */
@@ -10,11 +12,11 @@ const useStyles = /*#__PURE__*/__styles({
10
12
  "root": {
11
13
  "Bahqtrf": "fk6fouc",
12
14
  "Be2twd7": "fccw675",
13
- "Bg96gwp": "f1ebx5kk",
14
- "Bhrd7zp": "fl43uef"
15
+ "Bhrd7zp": "fl43uef",
16
+ "Bg96gwp": "f1ebx5kk"
15
17
  }
16
18
  }, {
17
- "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
19
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}"]
18
20
  });
19
21
  /**
20
22
  * Text wrapper component for the Title 1 typography variant
@@ -23,7 +25,7 @@ const useStyles = /*#__PURE__*/__styles({
23
25
 
24
26
  export const Title1 = /*#__PURE__*/createWrapper({
25
27
  useStyles,
26
- className: title1ClassName,
28
+ className: title1ClassNames.root,
27
29
  displayName: 'Title1'
28
30
  });
29
31
  //# sourceMappingURL=Title1.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourceRoot":""}
1
+ {"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,gBAAgB,GAA8B;EACzD,IAAI,EAAE;AADmD,CAApD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;EACvE,SADuE;EAEvE,SAAS,EAAE,gBAAgB,CAAC,IAF2C;EAGvE,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title1/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Title1/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from './Title1';\n"]}
@@ -1,7 +1,9 @@
1
1
  import { __styles } from '@griffel/react';
2
- import { typographyStyles } from '../../typographyStyles/index';
3
2
  import { createWrapper } from '../wrapper';
4
- export const title2ClassName = 'fui-Title2';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
+ export const title2ClassNames = {
5
+ root: 'fui-Title2'
6
+ };
5
7
  /**
6
8
  * Styles for the root slot
7
9
  */
@@ -10,11 +12,11 @@ const useStyles = /*#__PURE__*/__styles({
10
12
  "root": {
11
13
  "Bahqtrf": "fk6fouc",
12
14
  "Be2twd7": "fojgt09",
13
- "Bg96gwp": "fcen8rp",
14
- "Bhrd7zp": "fl43uef"
15
+ "Bhrd7zp": "fl43uef",
16
+ "Bg96gwp": "fcen8rp"
15
17
  }
16
18
  }, {
17
- "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
19
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}"]
18
20
  });
19
21
  /**
20
22
  * Text wrapper component for the Title 2 typography variant
@@ -23,7 +25,7 @@ const useStyles = /*#__PURE__*/__styles({
23
25
 
24
26
  export const Title2 = /*#__PURE__*/createWrapper({
25
27
  useStyles,
26
- className: title2ClassName,
28
+ className: title2ClassNames.root,
27
29
  displayName: 'Title2'
28
30
  });
29
31
  //# sourceMappingURL=Title2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourceRoot":""}
1
+ {"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,gBAAgB,GAA8B;EACzD,IAAI,EAAE;AADmD,CAApD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;EACvE,SADuE;EAEvE,SAAS,EAAE,gBAAgB,CAAC,IAF2C;EAGvE,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title2/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Title2/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from './Title2';\n"]}
@@ -1,7 +1,9 @@
1
1
  import { __styles } from '@griffel/react';
2
- import { typographyStyles } from '../../typographyStyles/index';
3
2
  import { createWrapper } from '../wrapper';
4
- export const title3ClassName = 'fui-Title3';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
+ export const title3ClassNames = {
5
+ root: 'fui-Title3'
6
+ };
5
7
  /**
6
8
  * Styles for the root slot
7
9
  */
@@ -10,11 +12,11 @@ const useStyles = /*#__PURE__*/__styles({
10
12
  "root": {
11
13
  "Bahqtrf": "fk6fouc",
12
14
  "Be2twd7": "f1x0m3f5",
13
- "Bg96gwp": "fb86gi6",
14
- "Bhrd7zp": "fl43uef"
15
+ "Bhrd7zp": "fl43uef",
16
+ "Bg96gwp": "fb86gi6"
15
17
  }
16
18
  }, {
17
- "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
19
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
18
20
  });
19
21
  /**
20
22
  * Text wrapper component for the Title 3 typography variant
@@ -23,7 +25,7 @@ const useStyles = /*#__PURE__*/__styles({
23
25
 
24
26
  export const Title3 = /*#__PURE__*/createWrapper({
25
27
  useStyles,
26
- className: title3ClassName,
28
+ className: title3ClassNames.root,
27
29
  displayName: 'Title3'
28
30
  });
29
31
  //# sourceMappingURL=Title3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourceRoot":""}
1
+ {"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,gBAAgB,GAA8B;EACzD,IAAI,EAAE;AADmD,CAApD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;EACvE,SADuE;EAEvE,SAAS,EAAE,gBAAgB,CAAC,IAF2C;EAGvE,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title3/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Title3/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from './Title3';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,mBAAT,EAA8B,gBAA9B,EAAgD,sBAAhD,QAA8E,SAA9E;AAMA,OAAM,SAAU,aAAV,CAAwB,OAAxB,EAIL;AACC,QAAM;AAAE,IAAA,SAAF;AAAa,IAAA,SAAb;AAAwB,IAAA;AAAxB,MAAwC,OAA9C;AACA,QAAM,OAAO,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACrF,UAAM,MAAM,GAAG,SAAS,EAAxB;AACA,UAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAqB,GAArB,CAA9B;AAEA,IAAA,sBAAsB,CAAC,KAAD,CAAtB;AAEA,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,SAAD,EAAY,KAAK,CAAC,IAAN,CAAW,SAAvB,EAAkC,MAAM,CAAC,IAAzC,EAA+C,KAAK,CAAC,SAArD,CAAnC;AAEA,WAAO,mBAAmB,CAAC,KAAD,CAA1B;AACD,GATsD,CAAvD;AAUA,EAAA,OAAO,CAAC,WAAR,GAAsB,WAAtB;AAEA,SAAO,OAAP;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["components/wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,mBAAT,EAA8B,gBAA9B,EAAgD,sBAAhD,QAA8E,SAA9E;AAMA,OAAM,SAAU,aAAV,CAAwB,OAAxB,EAIL;EACC,MAAM;IAAE,SAAF;IAAa,SAAb;IAAwB;EAAxB,IAAwC,OAA9C;EACA,MAAM,OAAO,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;IACrF,MAAM,MAAM,GAAG,SAAS,EAAxB;IACA,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,EAAqB,GAArB,CAA9B;IAEA,sBAAsB,CAAC,KAAD,CAAtB;IAEA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,SAAD,EAAY,KAAK,CAAC,IAAN,CAAW,SAAvB,EAAkC,MAAM,CAAC,IAAzC,EAA+C,KAAK,CAAC,SAArD,CAAnC;IAEA,OAAO,mBAAmB,CAAC,KAAD,CAA1B;EACD,CATsD,CAAvD;EAUA,OAAO,CAAC,WAAR,GAAsB,WAAtB;EAEA,OAAO,OAAP;AACD","sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@griffel/react';\nimport { renderText_unstable, useText_unstable, useTextStyles_unstable } from '../Text';\nimport type { TextProps } from '../Text';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;\n\nexport function createWrapper(options: {\n className: string;\n displayName: string;\n useStyles: () => Record<'root', string>;\n}): React.FunctionComponent<TextWrapperProps> {\n const { useStyles, className, displayName } = options;\n const Wrapper: ForwardRefComponent<TextWrapperProps> = React.forwardRef((props, ref) => {\n const styles = useStyles();\n const state = useText_unstable(props as TextProps, ref);\n\n useTextStyles_unstable(state);\n\n state.root.className = mergeClasses(className, state.root.className, styles.root, props.className);\n\n return renderText_unstable(state);\n });\n Wrapper.displayName = displayName;\n\n return Wrapper;\n}\n"],"sourceRoot":"../src/"}
package/lib/index.js CHANGED
@@ -1,11 +1,12 @@
1
- export * from './Text';
2
- export * from './Display';
3
- export * from './LargeTitle';
4
- export * from './Title1';
5
- export * from './Title2';
6
- export * from './Title3';
7
- export * from './Headline';
8
- export * from './Subheadline';
9
- export * from './Body';
10
- export * from './Caption';
1
+ export { Text, renderText_unstable, textClassNames, useTextStyles_unstable, useText_unstable } from './Text';
2
+ export { Display, displayClassNames } from './Display';
3
+ export { LargeTitle, largeTitleClassNames } from './LargeTitle';
4
+ export { Title1, title1ClassNames } from './Title1';
5
+ export { Title2, title2ClassNames } from './Title2';
6
+ export { Title3, title3ClassNames } from './Title3';
7
+ export { Subtitle1, subtitle1ClassNames } from './Subtitle1';
8
+ export { Subtitle2, subtitle2ClassNames } from './Subtitle2';
9
+ export { Body1, body1ClassNames } from './Body1';
10
+ export { Caption1, caption1ClassNames } from './Caption1';
11
+ export { Caption2, caption2ClassNames } from './Caption2';
11
12
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,cAAc,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE7G,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { Text, renderText_unstable, textClassNames, useTextStyles_unstable, useText_unstable } from './Text';\nexport type { TextProps, TextSlots, TextState } from './Text';\nexport { Display, displayClassNames } from './Display';\nexport { LargeTitle, largeTitleClassNames } from './LargeTitle';\nexport { Title1, title1ClassNames } from './Title1';\nexport { Title2, title2ClassNames } from './Title2';\nexport { Title3, title3ClassNames } from './Title3';\nexport { Subtitle1, subtitle1ClassNames } from './Subtitle1';\nexport { Subtitle2, subtitle2ClassNames } from './Subtitle2';\nexport { Body1, body1ClassNames } from './Body1';\nexport { Caption1, caption1ClassNames } from './Caption1';\nexport { Caption2, caption2ClassNames } from './Caption2';\n"]}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./components/Body/index"), exports);
10
- //# sourceMappingURL=Body.js.map
9
+ tslib_1.__exportStar(require("./components/Body1/index"), exports);
10
+ //# sourceMappingURL=Body1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Body1.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Body1/index';\n"],"sourceRoot":"../src/"}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./components/Headline/index"), exports);
10
- //# sourceMappingURL=Headline.js.map
9
+ tslib_1.__exportStar(require("./components/Caption1/index"), exports);
10
+ //# sourceMappingURL=Caption1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Caption1.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Caption1/index';\n"],"sourceRoot":"../src/"}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./components/Caption/index"), exports);
10
- //# sourceMappingURL=Caption.js.map
9
+ tslib_1.__exportStar(require("./components/Caption2/index"), exports);
10
+ //# sourceMappingURL=Caption2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Caption2.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Caption2/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Display.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["Display.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Display/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/LargeTitle.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["LargeTitle.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/LargeTitle/index';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./components/Subtitle1/index"), exports);
10
+ //# sourceMappingURL=Subtitle1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Subtitle1.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,8BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Subtitle1/index';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./components/Subtitle2/index"), exports);
10
+ //# sourceMappingURL=Subtitle2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Subtitle2.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,8BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Subtitle2/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Text.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["Text.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Text/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Title1.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["Title1.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Title1/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Title2.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["Title2.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Title2/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Title3.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["Title3.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Title3/index';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Body1 = exports.body1ClassNames = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
+
14
+ exports.body1ClassNames = {
15
+ root: 'fui-Body1'
16
+ };
17
+ /**
18
+ * Styles for the root slot
19
+ */
20
+
21
+ const useStyles = /*#__PURE__*/react_1.__styles({
22
+ "root": {
23
+ "Bahqtrf": "fk6fouc",
24
+ "Be2twd7": "fkhj508",
25
+ "Bhrd7zp": "figsok6",
26
+ "Bg96gwp": "f1i3iumi"
27
+ }
28
+ }, {
29
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
30
+ });
31
+ /**
32
+ * Text wrapper component for the Body1 typography variant
33
+ */
34
+
35
+
36
+ exports.Body1 = /*#__PURE__*/wrapper_1.createWrapper({
37
+ useStyles,
38
+ className: exports.body1ClassNames.root,
39
+ displayName: 'Body1'
40
+ });
41
+ //# sourceMappingURL=Body1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Body1/Body1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAA6C;EACxD,IAAI,EAAE;AADkD,CAA7C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,KAAA,gBAA6C,SAAA,CAAA,aAAA,CAAc;EACtE,SADsE;EAEtE,SAAS,EAAE,OAAA,CAAA,eAAA,CAAgB,IAF2C;EAGtE,WAAW,EAAE;AAHyD,CAAd,CAA7C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const body1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body1,\n});\n\n/**\n * Text wrapper component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"sourceRoot":"../src/"}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./Body"), exports);
9
+ tslib_1.__exportStar(require("./Body1"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Body1/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Body1';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Caption1 = exports.caption1ClassNames = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
+
14
+ exports.caption1ClassNames = {
15
+ root: 'fui-Caption1'
16
+ };
17
+ /**
18
+ * Styles for the root slot
19
+ */
20
+
21
+ const useStyles = /*#__PURE__*/react_1.__styles({
22
+ "root": {
23
+ "Bahqtrf": "fk6fouc",
24
+ "Be2twd7": "fy9rknc",
25
+ "Bhrd7zp": "figsok6",
26
+ "Bg96gwp": "fwrc4pm"
27
+ }
28
+ }, {
29
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
30
+ });
31
+ /**
32
+ * Text wrapper component for the Caption1 typography variant
33
+ */
34
+
35
+
36
+ exports.Caption1 = /*#__PURE__*/wrapper_1.createWrapper({
37
+ useStyles,
38
+ className: exports.caption1ClassNames.root,
39
+ displayName: 'Caption1'
40
+ });
41
+ //# sourceMappingURL=Caption1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Caption1/Caption1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAEa,OAAA,CAAA,kBAAA,GAAgD;EAC3D,IAAI,EAAE;AADqD,CAAhD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;EACzE,SADyE;EAEzE,SAAS,EAAE,OAAA,CAAA,kBAAA,CAAmB,IAF2C;EAGzE,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const caption1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Caption1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption1,\n});\n\n/**\n * Text wrapper component for the Caption1 typography variant\n */\nexport const Caption1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: caption1ClassNames.root,\n displayName: 'Caption1',\n});\n"],"sourceRoot":"../src/"}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./Headline"), exports);
9
+ tslib_1.__exportStar(require("./Caption1"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Caption1/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Caption1';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Caption2 = exports.caption2ClassNames = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
+
14
+ exports.caption2ClassNames = {
15
+ root: 'fui-Caption2'
16
+ };
17
+ /**
18
+ * Styles for the root slot
19
+ */
20
+
21
+ const useStyles = /*#__PURE__*/react_1.__styles({
22
+ "root": {
23
+ "Bahqtrf": "fk6fouc",
24
+ "Be2twd7": "f13mqy1h",
25
+ "Bhrd7zp": "figsok6",
26
+ "Bg96gwp": "fcpl73t"
27
+ }
28
+ }, {
29
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fcpl73t{line-height:var(--lineHeightBase100);}"]
30
+ });
31
+ /**
32
+ * Text wrapper component for the Caption2 typography variant
33
+ */
34
+
35
+
36
+ exports.Caption2 = /*#__PURE__*/wrapper_1.createWrapper({
37
+ useStyles,
38
+ className: exports.caption2ClassNames.root,
39
+ displayName: 'Caption2'
40
+ });
41
+ //# sourceMappingURL=Caption2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Caption2/Caption2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAEa,OAAA,CAAA,kBAAA,GAAgD;EAC3D,IAAI,EAAE;AADqD,CAAhD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;EACzE,SADyE;EAEzE,SAAS,EAAE,OAAA,CAAA,kBAAA,CAAmB,IAF2C;EAGzE,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const caption2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Caption2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption2,\n});\n\n/**\n * Text wrapper component for the Caption2 typography variant\n */\nexport const Caption2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: caption2ClassNames.root,\n displayName: 'Caption2',\n});\n"],"sourceRoot":"../src/"}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./Caption"), exports);
9
+ tslib_1.__exportStar(require("./Caption2"), exports);
10
10
  //# sourceMappingURL=index.js.map