@fluentui/react-text 9.0.0-alpha.18 → 9.0.0-alpha.21

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 (233) hide show
  1. package/CHANGELOG.json +142 -5
  2. package/CHANGELOG.md +47 -6
  3. package/dist/react-text.d.ts +42 -51
  4. package/lib/Body.js.map +1 -1
  5. package/lib/Caption.js.map +1 -1
  6. package/lib/Display.js.map +1 -1
  7. package/lib/Headline.js.map +1 -1
  8. package/lib/LargeTitle.js.map +1 -1
  9. package/lib/Subheadline.js.map +1 -1
  10. package/lib/Text.js.map +1 -1
  11. package/lib/Title1.js.map +1 -1
  12. package/lib/Title2.js.map +1 -1
  13. package/lib/Title3.js.map +1 -1
  14. package/lib/common/isConformant.js.map +1 -1
  15. package/lib/components/Body/Body.d.ts +3 -1
  16. package/lib/components/Body/Body.js.map +1 -1
  17. package/lib/components/Body/index.js.map +1 -1
  18. package/lib/components/Caption/Caption.d.ts +3 -1
  19. package/lib/components/Caption/Caption.js.map +1 -1
  20. package/lib/components/Caption/index.js.map +1 -1
  21. package/lib/components/Display/Display.d.ts +3 -1
  22. package/lib/components/Display/Display.js.map +1 -1
  23. package/lib/components/Display/index.js.map +1 -1
  24. package/lib/components/Headline/Headline.d.ts +3 -1
  25. package/lib/components/Headline/Headline.js.map +1 -1
  26. package/lib/components/Headline/index.js.map +1 -1
  27. package/lib/components/LargeTitle/LargeTitle.d.ts +3 -1
  28. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  29. package/lib/components/LargeTitle/index.js.map +1 -1
  30. package/lib/components/Subheadline/Subheadline.d.ts +3 -1
  31. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  32. package/lib/components/Subheadline/index.js.map +1 -1
  33. package/lib/components/Text/Text.d.ts +1 -1
  34. package/lib/components/Text/Text.js.map +1 -1
  35. package/lib/components/Text/Text.types.d.ts +20 -29
  36. package/lib/components/Text/Text.types.js.map +1 -1
  37. package/lib/components/Text/index.js.map +1 -1
  38. package/lib/components/Text/renderText.js +3 -3
  39. package/lib/components/Text/renderText.js.map +1 -1
  40. package/lib/components/Text/useText.d.ts +1 -2
  41. package/lib/components/Text/useText.js +36 -8
  42. package/lib/components/Text/useText.js.map +1 -1
  43. package/lib/components/Text/useTextStyles.js +1 -1
  44. package/lib/components/Text/useTextStyles.js.map +1 -1
  45. package/lib/components/Title1/Title1.d.ts +3 -1
  46. package/lib/components/Title1/Title1.js.map +1 -1
  47. package/lib/components/Title1/index.js.map +1 -1
  48. package/lib/components/Title2/Title2.d.ts +3 -1
  49. package/lib/components/Title2/Title2.js.map +1 -1
  50. package/lib/components/Title2/index.js.map +1 -1
  51. package/lib/components/Title3/Title3.d.ts +3 -1
  52. package/lib/components/Title3/Title3.js.map +1 -1
  53. package/lib/components/Title3/index.js.map +1 -1
  54. package/lib/components/wrapper.d.ts +2 -3
  55. package/lib/components/wrapper.js +1 -1
  56. package/lib/components/wrapper.js.map +1 -1
  57. package/lib/index.js.map +1 -1
  58. package/lib/typographyStyles/index.js.map +1 -1
  59. package/lib/typographyStyles/typographyStyles.js.map +1 -1
  60. package/lib-commonjs/Body.js.map +1 -1
  61. package/lib-commonjs/Caption.js.map +1 -1
  62. package/lib-commonjs/Display.js.map +1 -1
  63. package/lib-commonjs/Headline.js.map +1 -1
  64. package/lib-commonjs/LargeTitle.js.map +1 -1
  65. package/lib-commonjs/Subheadline.js.map +1 -1
  66. package/lib-commonjs/Text.js.map +1 -1
  67. package/lib-commonjs/Title1.js.map +1 -1
  68. package/lib-commonjs/Title2.js.map +1 -1
  69. package/lib-commonjs/Title3.js.map +1 -1
  70. package/lib-commonjs/common/isConformant.js.map +1 -1
  71. package/lib-commonjs/components/Body/Body.d.ts +3 -1
  72. package/lib-commonjs/components/Body/Body.js.map +1 -1
  73. package/lib-commonjs/components/Body/index.js.map +1 -1
  74. package/lib-commonjs/components/Caption/Caption.d.ts +3 -1
  75. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  76. package/lib-commonjs/components/Caption/index.js.map +1 -1
  77. package/lib-commonjs/components/Display/Display.d.ts +3 -1
  78. package/lib-commonjs/components/Display/Display.js.map +1 -1
  79. package/lib-commonjs/components/Display/index.js.map +1 -1
  80. package/lib-commonjs/components/Headline/Headline.d.ts +3 -1
  81. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  82. package/lib-commonjs/components/Headline/index.js.map +1 -1
  83. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +3 -1
  84. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  85. package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
  86. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +3 -1
  87. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  88. package/lib-commonjs/components/Subheadline/index.js.map +1 -1
  89. package/lib-commonjs/components/Text/Text.d.ts +1 -1
  90. package/lib-commonjs/components/Text/Text.js.map +1 -1
  91. package/lib-commonjs/components/Text/Text.types.d.ts +20 -29
  92. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  93. package/lib-commonjs/components/Text/index.js.map +1 -1
  94. package/lib-commonjs/components/Text/renderText.js +2 -2
  95. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  96. package/lib-commonjs/components/Text/useText.d.ts +1 -2
  97. package/lib-commonjs/components/Text/useText.js +37 -8
  98. package/lib-commonjs/components/Text/useText.js.map +1 -1
  99. package/lib-commonjs/components/Text/useTextStyles.js +1 -1
  100. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  101. package/lib-commonjs/components/Title1/Title1.d.ts +3 -1
  102. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  103. package/lib-commonjs/components/Title1/index.js.map +1 -1
  104. package/lib-commonjs/components/Title2/Title2.d.ts +3 -1
  105. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  106. package/lib-commonjs/components/Title2/index.js.map +1 -1
  107. package/lib-commonjs/components/Title3/Title3.d.ts +3 -1
  108. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  109. package/lib-commonjs/components/Title3/index.js.map +1 -1
  110. package/lib-commonjs/components/wrapper.d.ts +2 -3
  111. package/lib-commonjs/components/wrapper.js +1 -1
  112. package/lib-commonjs/components/wrapper.js.map +1 -1
  113. package/lib-commonjs/index.js.map +1 -1
  114. package/lib-commonjs/typographyStyles/index.js.map +1 -1
  115. package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
  116. package/package.json +7 -7
  117. package/lib-amd/Body.d.ts +0 -1
  118. package/lib-amd/Body.js +0 -6
  119. package/lib-amd/Body.js.map +0 -1
  120. package/lib-amd/Caption.d.ts +0 -1
  121. package/lib-amd/Caption.js +0 -6
  122. package/lib-amd/Caption.js.map +0 -1
  123. package/lib-amd/Display.d.ts +0 -1
  124. package/lib-amd/Display.js +0 -6
  125. package/lib-amd/Display.js.map +0 -1
  126. package/lib-amd/Headline.d.ts +0 -1
  127. package/lib-amd/Headline.js +0 -6
  128. package/lib-amd/Headline.js.map +0 -1
  129. package/lib-amd/LargeTitle.d.ts +0 -1
  130. package/lib-amd/LargeTitle.js +0 -6
  131. package/lib-amd/LargeTitle.js.map +0 -1
  132. package/lib-amd/Subheadline.d.ts +0 -1
  133. package/lib-amd/Subheadline.js +0 -6
  134. package/lib-amd/Subheadline.js.map +0 -1
  135. package/lib-amd/Text.d.ts +0 -1
  136. package/lib-amd/Text.js +0 -6
  137. package/lib-amd/Text.js.map +0 -1
  138. package/lib-amd/Title1.d.ts +0 -1
  139. package/lib-amd/Title1.js +0 -6
  140. package/lib-amd/Title1.js.map +0 -1
  141. package/lib-amd/Title2.d.ts +0 -1
  142. package/lib-amd/Title2.js +0 -6
  143. package/lib-amd/Title2.js.map +0 -1
  144. package/lib-amd/Title3.d.ts +0 -1
  145. package/lib-amd/Title3.js +0 -6
  146. package/lib-amd/Title3.js.map +0 -1
  147. package/lib-amd/common/isConformant.d.ts +0 -4
  148. package/lib-amd/common/isConformant.js +0 -20
  149. package/lib-amd/common/isConformant.js.map +0 -1
  150. package/lib-amd/components/Body/Body.d.ts +0 -4
  151. package/lib-amd/components/Body/Body.js +0 -16
  152. package/lib-amd/components/Body/Body.js.map +0 -1
  153. package/lib-amd/components/Body/index.d.ts +0 -1
  154. package/lib-amd/components/Body/index.js +0 -6
  155. package/lib-amd/components/Body/index.js.map +0 -1
  156. package/lib-amd/components/Caption/Caption.d.ts +0 -4
  157. package/lib-amd/components/Caption/Caption.js +0 -16
  158. package/lib-amd/components/Caption/Caption.js.map +0 -1
  159. package/lib-amd/components/Caption/index.d.ts +0 -1
  160. package/lib-amd/components/Caption/index.js +0 -6
  161. package/lib-amd/components/Caption/index.js.map +0 -1
  162. package/lib-amd/components/Display/Display.d.ts +0 -4
  163. package/lib-amd/components/Display/Display.js +0 -16
  164. package/lib-amd/components/Display/Display.js.map +0 -1
  165. package/lib-amd/components/Display/index.d.ts +0 -1
  166. package/lib-amd/components/Display/index.js +0 -6
  167. package/lib-amd/components/Display/index.js.map +0 -1
  168. package/lib-amd/components/Headline/Headline.d.ts +0 -4
  169. package/lib-amd/components/Headline/Headline.js +0 -16
  170. package/lib-amd/components/Headline/Headline.js.map +0 -1
  171. package/lib-amd/components/Headline/index.d.ts +0 -1
  172. package/lib-amd/components/Headline/index.js +0 -6
  173. package/lib-amd/components/Headline/index.js.map +0 -1
  174. package/lib-amd/components/LargeTitle/LargeTitle.d.ts +0 -4
  175. package/lib-amd/components/LargeTitle/LargeTitle.js +0 -16
  176. package/lib-amd/components/LargeTitle/LargeTitle.js.map +0 -1
  177. package/lib-amd/components/LargeTitle/index.d.ts +0 -1
  178. package/lib-amd/components/LargeTitle/index.js +0 -6
  179. package/lib-amd/components/LargeTitle/index.js.map +0 -1
  180. package/lib-amd/components/Subheadline/Subheadline.d.ts +0 -4
  181. package/lib-amd/components/Subheadline/Subheadline.js +0 -16
  182. package/lib-amd/components/Subheadline/Subheadline.js.map +0 -1
  183. package/lib-amd/components/Subheadline/index.d.ts +0 -1
  184. package/lib-amd/components/Subheadline/index.js +0 -6
  185. package/lib-amd/components/Subheadline/index.js.map +0 -1
  186. package/lib-amd/components/Text/Text.d.ts +0 -6
  187. package/lib-amd/components/Text/Text.js +0 -15
  188. package/lib-amd/components/Text/Text.js.map +0 -1
  189. package/lib-amd/components/Text/Text.types.d.ts +0 -86
  190. package/lib-amd/components/Text/Text.types.js +0 -5
  191. package/lib-amd/components/Text/Text.types.js.map +0 -1
  192. package/lib-amd/components/Text/index.d.ts +0 -5
  193. package/lib-amd/components/Text/index.js +0 -10
  194. package/lib-amd/components/Text/index.js.map +0 -1
  195. package/lib-amd/components/Text/renderText.d.ts +0 -5
  196. package/lib-amd/components/Text/renderText.js +0 -14
  197. package/lib-amd/components/Text/renderText.js.map +0 -1
  198. package/lib-amd/components/Text/useText.d.ts +0 -13
  199. package/lib-amd/components/Text/useText.js +0 -25
  200. package/lib-amd/components/Text/useText.js.map +0 -1
  201. package/lib-amd/components/Text/useTextStyles.d.ts +0 -5
  202. package/lib-amd/components/Text/useTextStyles.js +0 -110
  203. package/lib-amd/components/Text/useTextStyles.js.map +0 -1
  204. package/lib-amd/components/Title1/Title1.d.ts +0 -4
  205. package/lib-amd/components/Title1/Title1.js +0 -16
  206. package/lib-amd/components/Title1/Title1.js.map +0 -1
  207. package/lib-amd/components/Title1/index.d.ts +0 -1
  208. package/lib-amd/components/Title1/index.js +0 -6
  209. package/lib-amd/components/Title1/index.js.map +0 -1
  210. package/lib-amd/components/Title2/Title2.d.ts +0 -4
  211. package/lib-amd/components/Title2/Title2.js +0 -16
  212. package/lib-amd/components/Title2/Title2.js.map +0 -1
  213. package/lib-amd/components/Title2/index.d.ts +0 -1
  214. package/lib-amd/components/Title2/index.js +0 -6
  215. package/lib-amd/components/Title2/index.js.map +0 -1
  216. package/lib-amd/components/Title3/Title3.d.ts +0 -4
  217. package/lib-amd/components/Title3/Title3.js +0 -16
  218. package/lib-amd/components/Title3/Title3.js.map +0 -1
  219. package/lib-amd/components/Title3/index.d.ts +0 -1
  220. package/lib-amd/components/Title3/index.js +0 -6
  221. package/lib-amd/components/Title3/index.js.map +0 -1
  222. package/lib-amd/components/wrapper.d.ts +0 -8
  223. package/lib-amd/components/wrapper.js +0 -19
  224. package/lib-amd/components/wrapper.js.map +0 -1
  225. package/lib-amd/index.d.ts +0 -10
  226. package/lib-amd/index.js +0 -15
  227. package/lib-amd/index.js.map +0 -1
  228. package/lib-amd/typographyStyles/index.d.ts +0 -2
  229. package/lib-amd/typographyStyles/index.js +0 -7
  230. package/lib-amd/typographyStyles/index.js.map +0 -1
  231. package/lib-amd/typographyStyles/typographyStyles.d.ts +0 -14
  232. package/lib-amd/typographyStyles/typographyStyles.js +0 -72
  233. package/lib-amd/typographyStyles/typographyStyles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":"AAAA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAA8B,YAA9B;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,WAAW,gBAAG,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAjC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline = createWrapper({ useStyles, displayName: 'Subheadline' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Subheadline/Subheadline.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,WAAW,gBAAwC,aAAa,CAAC;AAC5E,EAAA,SAAS,EAAA,SADmE;AAE5E,EAAA,WAAW,EAAE;AAF+D,CAAD,CAAtE","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Subheadline/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC","sourcesContent":["export * from './Subheadline';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Subheadline/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -3,4 +3,4 @@ import type { TextProps } from './Text.types';
3
3
  /**
4
4
  * Typography and styling abstraction component used to ensure consistency of text.
5
5
  */
6
- export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
6
+ export declare const Text: React.FunctionComponent<TextProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAGA;;AAEG;;AACH,OAAO,IAAM,IAAI,gBAAG,KAAK,CAAC,UAAN,CAAyC,UAAC,KAAD,EAAQ,GAAR,EAAW;AACtE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAQ,GAAR,CAArB;AAEA,EAAA,aAAa,CAAC,KAAD,CAAb;AACA,SAAO,UAAU,CAAC,KAAD,CAAjB;AACD,CALmB,CAAb;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourcesContent":["import * as React from 'react';\nimport { useText } from './useText';\nimport { renderText } from './renderText';\nimport { useTextStyles } from './useTextStyles';\nimport type { TextProps } from './Text.types';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text = React.forwardRef<HTMLElement, TextProps>((props, ref) => {\n const state = useText(props, ref);\n\n useTextStyles(state);\n return renderText(state);\n});\n\nText.displayName = 'Text';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAGA;;AAEG;;AACH,OAAO,IAAM,IAAI,gBAAuC,KAAK,CAAC,UAAN,CAGtD,UAAC,KAAD,EAAQ,GAAR,EAAW;AACX,MAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAQ,GAAR,CAArB;AAEA,EAAA,aAAa,CAAC,KAAD,CAAb;AAEA,SAAO,UAAU,CAAC,KAAD,CAAjB;AACD,CATuD,CAAjD;AAWP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -1,86 +1,77 @@
1
- import * as React from 'react';
2
- import type { ComponentPropsCompat, ComponentStateCompat } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
3
2
  /**
4
- * Text Props
3
+ * Text slots
5
4
  */
6
- export interface TextProps extends ComponentPropsCompat, React.HTMLAttributes<HTMLElement> {
5
+ export declare type TextSlots = {
6
+ root: IntrinsicShorthandProps<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
7
+ };
8
+ export declare type TextCommons = {
7
9
  /**
8
10
  * Wraps the text content on white spaces.
9
11
  *
10
12
  * @defaultValue true
11
13
  */
12
- wrap?: boolean;
14
+ wrap: boolean;
13
15
  /**
14
16
  * Truncate overflowing text for block displays.
15
17
  *
16
18
  * @defaultValue false
17
19
  */
18
- truncate?: boolean;
20
+ truncate: boolean;
19
21
  /**
20
22
  * Applies a block display for the content.
21
23
  *
22
24
  * @defaultValue false
23
25
  */
24
- block?: boolean;
26
+ block: boolean;
25
27
  /**
26
28
  * Applies the italic font style to the content.
27
29
  *
28
30
  * @defaultValue false
29
31
  */
30
- italic?: boolean;
32
+ italic: boolean;
31
33
  /**
32
34
  * Applies the underline text decoration to the content.
33
35
  *
34
36
  * @defaultValue false
35
37
  */
36
- underline?: boolean;
38
+ underline: boolean;
37
39
  /**
38
40
  * Applies the strikethrough text decoration to the content.
39
41
  *
40
42
  * @defaultValue false
41
43
  */
42
- strikethrough?: boolean;
44
+ strikethrough: boolean;
43
45
  /**
44
46
  * Applies font size and line height based on the theme tokens.
45
47
  *
46
48
  * @defaultValue 300
47
49
  */
48
- size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
50
+ size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
49
51
  /**
50
52
  * Applies the font family to the content.
51
53
  *
52
54
  * @defaultValue base
53
55
  */
54
- font?: 'base' | 'monospace' | 'numeric';
56
+ font: 'base' | 'monospace' | 'numeric';
55
57
  /**
56
58
  * Applies font weight to the content.
57
59
  *
58
60
  * @defaultValue regular
59
61
  */
60
- weight?: 'regular' | 'medium' | 'semibold';
62
+ weight: 'regular' | 'medium' | 'semibold';
61
63
  /**
62
64
  * Aligns text based on the parent container.
63
65
  *
64
66
  * @defaultValue start
65
67
  */
66
- align?: 'start' | 'center' | 'end' | 'justify';
67
- /**
68
- * Component to be rendered as.
69
- *
70
- * @defaultValue span
71
- */
72
- as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre';
73
- }
68
+ align: 'start' | 'center' | 'end' | 'justify';
69
+ };
74
70
  /**
75
- * Names of TextProps that have a default value in useText
71
+ * Text Props
76
72
  */
77
- export declare type TextDefaultedProps = never;
73
+ export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
78
74
  /**
79
75
  * State used in rendering Text
80
76
  */
81
- export interface TextState extends ComponentStateCompat<TextProps, TextDefaultedProps> {
82
- /**
83
- * Ref to the root element
84
- */
85
- ref: React.Ref<HTMLElement>;
86
- }
77
+ export declare type TextState = ComponentState<TextSlots> & TextCommons;
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.js","sourceRoot":"../src/","sources":["components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { ComponentPropsCompat, ComponentStateCompat } from '@fluentui/react-utilities';\n\n/**\n * Text Props\n */\nexport interface TextProps extends ComponentPropsCompat, React.HTMLAttributes<HTMLElement> {\n /**\n * Wraps the text content on white spaces.\n *\n * @defaultValue true\n */\n wrap?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @defaultValue false\n */\n truncate?: boolean;\n\n /**\n * Applies a block display for the content.\n *\n * @defaultValue false\n */\n block?: boolean;\n\n /**\n * Applies the italic font style to the content.\n *\n * @defaultValue false\n */\n italic?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @defaultValue false\n */\n underline?: boolean;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @defaultValue false\n */\n strikethrough?: boolean;\n\n /**\n * Applies font size and line height based on the theme tokens.\n *\n * @defaultValue 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the font family to the content.\n *\n * @defaultValue base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies font weight to the content.\n *\n * @defaultValue regular\n */\n weight?: 'regular' | 'medium' | 'semibold';\n\n /**\n * Aligns text based on the parent container.\n *\n * @defaultValue start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Component to be rendered as.\n *\n * @defaultValue span\n */\n as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre';\n}\n\n/**\n * Names of TextProps that have a default value in useText\n */\nexport type TextDefaultedProps = never;\n\n/**\n * State used in rendering Text\n */\nexport interface TextState extends ComponentStateCompat<TextProps, TextDefaultedProps> {\n /**\n * Ref to the root element\n */\n ref: React.Ref<HTMLElement>;\n}\n"]}
1
+ {"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
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
+ {"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,15 +1,15 @@
1
1
  import { __assign } from "tslib";
2
2
  import * as React from 'react';
3
- import { getSlotsCompat } from '@fluentui/react-utilities';
3
+ import { getSlots } from '@fluentui/react-utilities';
4
4
  /**
5
5
  * Render the final JSX of Text
6
6
  */
7
7
 
8
8
  export var renderText = function (state) {
9
- var _a = getSlotsCompat(state),
9
+ var _a = getSlots(state),
10
10
  slots = _a.slots,
11
11
  slotProps = _a.slotProps;
12
12
 
13
- return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root), state.children);
13
+ return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root));
14
14
  };
15
15
  //# sourceMappingURL=renderText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/renderText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,2BAA/B;AAGA;;AAEG;;AACH,OAAO,IAAM,UAAU,GAAG,UAAC,KAAD,EAAiB;AACnC,MAAA,EAAA,GAAuB,cAAc,CAAC,KAAD,CAArC;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EAAiC,KAAK,CAAC,QAAvC,CAAP;AACD,CAJM","sourcesContent":["import * as React from 'react';\nimport { getSlotsCompat } from '@fluentui/react-utilities';\nimport type { TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText = (state: TextState) => {\n const { slots, slotProps } = getSlotsCompat(state);\n\n return <slots.root {...slotProps.root}>{state.children}</slots.root>;\n};\n"],"sourceRoot":"../src/"}
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,IAAM,UAAU,GAAG,UAAC,KAAD,EAAiB;AACnC,MAAA,EAAA,GAAuB,QAAQ,CAAY,KAAZ,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -8,6 +8,5 @@ import type { TextProps, TextState } from './Text.types';
8
8
  *
9
9
  * @param props - props from this instance of Text
10
10
  * @param ref - reference to root HTMLElement of Text
11
- * @param defaultProps - (optional) default prop values provided by the implementing type
12
11
  */
13
- export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>, defaultProps?: TextProps | undefined) => TextState;
12
+ export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
@@ -1,5 +1,5 @@
1
- import { makeMergeProps } from '@fluentui/react-utilities';
2
- var mergeProps = /*#__PURE__*/makeMergeProps();
1
+ import { __assign } from "tslib";
2
+ import { getNativeElementProps } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Create the state required to render Text.
5
5
  *
@@ -8,14 +8,42 @@ var mergeProps = /*#__PURE__*/makeMergeProps();
8
8
  *
9
9
  * @param props - props from this instance of Text
10
10
  * @param ref - reference to root HTMLElement of Text
11
- * @param defaultProps - (optional) default prop values provided by the implementing type
12
11
  */
13
12
 
14
- export var useText = function (props, ref, defaultProps) {
15
- var state = mergeProps({
16
- ref: ref,
17
- as: 'span'
18
- }, defaultProps, props);
13
+ export var useText = function (props, ref) {
14
+ var _a;
15
+
16
+ var wrap = props.wrap,
17
+ truncate = props.truncate,
18
+ block = props.block,
19
+ italic = props.italic,
20
+ underline = props.underline,
21
+ strikethrough = props.strikethrough,
22
+ size = props.size,
23
+ font = props.font,
24
+ weight = props.weight,
25
+ align = props.align;
26
+ var as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
27
+ var state = {
28
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
29
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
30
+ block: block !== null && block !== void 0 ? block : false,
31
+ italic: italic !== null && italic !== void 0 ? italic : false,
32
+ underline: underline !== null && underline !== void 0 ? underline : false,
33
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
34
+ size: size !== null && size !== void 0 ? size : 300,
35
+ font: font !== null && font !== void 0 ? font : 'base',
36
+ weight: weight !== null && weight !== void 0 ? weight : 'regular',
37
+ align: align !== null && align !== void 0 ? align : 'start',
38
+ components: {
39
+ root: 'span'
40
+ },
41
+ root: getNativeElementProps(as, __assign(__assign({
42
+ ref: ref
43
+ }, props), {
44
+ as: as
45
+ }))
46
+ };
19
47
  return state;
20
48
  };
21
49
  //# sourceMappingURL=useText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":"AACA,SAAS,cAAT,QAA+B,2BAA/B;AAGA,IAAM,UAAU,gBAAG,cAAc,EAAjC;AAEA;;;;;;;;;AASG;;AACH,OAAO,IAAM,OAAO,GAAG,UAAC,KAAD,EAAmB,GAAnB,EAAgD,YAAhD,EAAwE;AAC7F,MAAM,KAAK,GAAG,UAAU,CACtB;AACE,IAAA,GAAG,EAAA,GADL;AAEE,IAAA,EAAE,EAAE;AAFN,GADsB,EAKtB,YALsB,EAMtB,KANsB,CAAxB;AASA,SAAO,KAAP;AACD,CAXM","sourcesContent":["import * as React from 'react';\nimport { makeMergeProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\nconst mergeProps = makeMergeProps<TextState>();\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles,\n * before being passed to renderText.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n * @param defaultProps - (optional) default prop values provided by the implementing type\n */\nexport const useText = (props: TextProps, ref: React.Ref<HTMLElement>, defaultProps?: TextProps): TextState => {\n const state = mergeProps(\n {\n ref,\n as: 'span',\n },\n defaultProps,\n props,\n );\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":";AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,IAAM,OAAO,GAAG,UAAC,KAAD,EAAmB,GAAnB,EAA8C;;;AAC3D,MAAA,IAAI,GAAmF,KAAK,CAAxF,IAAJ;AAAA,MAAM,QAAQ,GAAyE,KAAK,CAA9E,QAAd;AAAA,MAAgB,KAAK,GAAkE,KAAK,CAAvE,KAArB;A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AJ,GAAA,IAAA,GAAQ,MARS;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OAVO;AAYvB,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAZW;AAcvB,IAAA,IAAI,EAAE,qBAAqB,CAAC,EAAD,EAAG,QAAA,CAAA,QAAA,CAAA;AAC5B,MAAA,GAAG,EAAA;AADyB,KAAA,EAEzB,KAFyB,CAAA,EAEpB;AACR,MAAA,EAAE,EAAA;AADM,KAFoB,CAAH;AAdJ,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM","sourceRoot":""}
@@ -104,7 +104,7 @@ var useStyles = /*#__PURE__*/__styles({
104
104
 
105
105
  export var useTextStyles = function (state) {
106
106
  var styles = useStyles();
107
- state.className = mergeClasses(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.className);
107
+ state.root.className = mergeClasses(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);
108
108
  return state;
109
109
  };
110
110
  //# sourceMappingURL=useTextStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA;;AAEG;;AACH,IAAM,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,EAAlB;AA6FA;;AAEG;;;AACH,OAAO,IAAM,aAAa,GAAG,UAAC,KAAD,EAAiB;AAC5C,MAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,SAAN,GAAkB,YA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AAM,CAAC,cArBV,EAsB5B,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAtBP,EAuB5B,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAvBJ,EAwB5B,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAxBR,EAyB5B,KAAK,CAAC,SAzBsB,CAA9B;AA4BA,SAAO,KAAP;AACD,CA/BM","sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-make-styles';\nimport type { TextState } from './Text.types';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.base[300],\n lineHeight: theme.global.type.lineHeights.base[300],\n fontWeight: theme.global.type.fontWeights.regular,\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 textDecoration: 'underline',\n },\n strikethrough: {\n textDecoration: 'line-through',\n },\n strikethroughUnderline: {\n textDecoration: 'line-through underline',\n },\n base100: theme => ({\n fontSize: theme.global.type.fontSizes.base[100],\n lineHeight: theme.global.type.lineHeights.base[100],\n }),\n base200: theme => ({\n fontSize: theme.global.type.fontSizes.base[200],\n lineHeight: theme.global.type.lineHeights.base[200],\n }),\n base400: theme => ({\n fontSize: theme.global.type.fontSizes.base[400],\n lineHeight: theme.global.type.lineHeights.base[400],\n }),\n base500: theme => ({\n fontSize: theme.global.type.fontSizes.base[500],\n lineHeight: theme.global.type.lineHeights.base[500],\n }),\n base600: theme => ({\n fontSize: theme.global.type.fontSizes.base[600],\n lineHeight: theme.global.type.lineHeights.base[600],\n }),\n hero700: theme => ({\n fontSize: theme.global.type.fontSizes.hero[700],\n lineHeight: theme.global.type.lineHeights.hero[700],\n }),\n hero800: theme => ({\n fontSize: theme.global.type.fontSizes.hero[800],\n lineHeight: theme.global.type.lineHeights.hero[800],\n }),\n hero900: theme => ({\n fontSize: theme.global.type.fontSizes.hero[900],\n lineHeight: theme.global.type.lineHeights.hero[900],\n }),\n hero1000: theme => ({\n fontSize: theme.global.type.fontSizes.hero[1000],\n lineHeight: theme.global.type.lineHeights.hero[1000],\n }),\n monospace: theme => ({\n fontFamily: theme.global.type.fontFamilies.monospace,\n }),\n numeric: theme => ({\n fontFamily: theme.global.type.fontFamilies.numeric,\n }),\n weightMedium: theme => ({\n fontWeight: theme.global.type.fontWeights.medium,\n }),\n weightSemibold: theme => ({\n fontWeight: theme.global.type.fontWeights.semibold,\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 = (state: TextState): TextState => {\n const styles = useStyles();\n state.className = mergeClasses(\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.className,\n );\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources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
  * Text wrapper component for the Title 1 typography variant
3
5
  */
4
- export declare const Title1: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Title1: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":"AAAA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAA8B,YAA9B;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAG,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAA5B","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Title1' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAwC,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAjE","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title1/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Title 2 typography variant
3
5
  */
4
- export declare const Title2: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Title2: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":"AAAA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAA8B,YAA9B;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAG,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAA5B","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Title2' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAwC,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAjE","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title2/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Title 3 typography variant
3
5
  */
4
- export declare const Title3: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Title3: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":"AAAA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAA8B,YAA9B;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAG,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAA5B","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Title3' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAwC,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAjE","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title3/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { TextProps } from '../Text';
3
- export interface Props extends Omit<TextProps, 'font' | 'size'> {
4
- }
3
+ export declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
5
4
  export declare function createWrapper(options: {
6
5
  displayName: string;
7
6
  useStyles: () => Record<'root', string>;
8
- }): React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
7
+ }): React.FunctionComponent<TextWrapperProps>;
@@ -8,7 +8,7 @@ export function createWrapper(options) {
8
8
  var styles = useStyles();
9
9
  var state = useText(props, ref);
10
10
  useTextStyles(state);
11
- state.className = mergeClasses(state.className, styles.root, props.className);
11
+ state.root.className = mergeClasses(state.root.className, styles.root, props.className);
12
12
  return renderText(state);
13
13
  });
14
14
  Wrapper.displayName = displayName;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,6BAA7B;AACA,SAAS,UAAT,EAAqB,OAArB,EAA8B,aAA9B,QAAmD,SAAnD;AAKA,OAAM,SAAU,aAAV,CAAwB,OAAxB,EAAiG;AAC7F,MAAA,SAAS,GAAkB,OAAO,CAAzB,SAAT;AAAA,MAAW,WAAW,GAAK,OAAO,CAAZ,WAAtB;AACR,MAAM,OAAO,gBAAG,KAAK,CAAC,UAAN,CAAqC,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,QAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAQ,GAAR,CAArB;AACA,IAAA,aAAa,CAAC,KAAD,CAAb;AAEA,IAAA,KAAK,CAAC,SAAN,GAAkB,YAAY,CAAC,KAAK,CAAC,SAAP,EAAkB,MAAM,CAAC,IAAzB,EAA+B,KAAK,CAAC,SAArC,CAA9B;AAEA,WAAO,UAAU,CAAC,KAAD,CAAjB;AACD,GARe,CAAhB;AASA,EAAA,OAAO,CAAC,WAAR,GAAsB,WAAtB;AAEA,SAAO,OAAP;AACD","sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@fluentui/react-make-styles';\nimport { renderText, useText, useTextStyles } from '../Text';\nimport type { TextProps } from '../Text';\n\nexport interface Props extends Omit<TextProps, 'font' | 'size'> {}\n\nexport function createWrapper(options: { displayName: string; useStyles: () => Record<'root', string> }) {\n const { useStyles, displayName } = options;\n const Wrapper = React.forwardRef<HTMLElement, Props>((props, ref) => {\n const styles = useStyles();\n const state = useText(props, ref);\n useTextStyles(state);\n\n state.className = mergeClasses(state.className, styles.root, props.className);\n\n return renderText(state);\n });\n Wrapper.displayName = displayName;\n\n return Wrapper;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,6BAA7B;AACA,SAAS,UAAT,EAAqB,OAArB,EAA8B,aAA9B,QAAmD,SAAnD;AAKA,OAAM,SAAU,aAAV,CAAwB,OAAxB,EAGL;AACS,MAAA,SAAS,GAAkB,OAAO,CAAzB,SAAT;AAAA,MAAW,WAAW,GAAK,OAAO,CAAZ,WAAtB;AACR,MAAM,OAAO,gBAAG,KAAK,CAAC,UAAN,CAAgD,UAAC,KAAD,EAAQ,GAAR,EAAW;AACzE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,QAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAqB,GAArB,CAArB;AAEA,IAAA,aAAa,CAAC,KAAD,CAAb;AAEA,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,KAAK,CAAC,IAAN,CAAW,SAAZ,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,SAA1C,CAAnC;AAEA,WAAO,UAAU,CAAC,KAAD,CAAjB;AACD,GATe,CAAhB;AAUA,EAAA,OAAO,CAAC,WAAR,GAAsB,WAAtB;AAEA,SAAO,OAAP;AACD","sourceRoot":""}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["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","sourcesContent":["export * from './Text';\nexport * from './Display';\nexport * from './LargeTitle';\nexport * from './Title1';\nexport * from './Title2';\nexport * from './Title3';\nexport * from './Headline';\nexport * from './Subheadline';\nexport * from './Body';\nexport * from './Caption';\n"]}
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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["typographyStyles/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import * as typographyStyles from './typographyStyles';\nexport { typographyStyles };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typographyStyles/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["typographyStyles/typographyStyles.ts"],"names":[],"mappings":"AAGA;;AAEG;AACH,OAAO,IAAM,OAAO,GAAuC,UAAA,KAAA,EAAK;AAAI,SAAC;AACnE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,YAAlB,CAA+B,IADwB;AAEnE,IAAA,QAAQ,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,SAAlB,CAA4B,IAA5B,CAAiC,GAAjC,CAFyD;AAGnE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B,IAA9B,CAAmC,GAAnC,CAHuD;AAInE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B;AAJyB,GAAD;AAKlE,CALK;AAMP,OAAO,IAAM,IAAI,GAAuC,U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from '@fluentui/react-theme';\n\n/**\n * Make-styles rules for the typography variants\n */\nexport const caption: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.base[200],\n lineHeight: theme.global.type.lineHeights.base[200],\n fontWeight: theme.global.type.fontWeights.regular,\n});\nexport const body: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.base[300],\n lineHeight: theme.global.type.lineHeights.base[300],\n fontWeight: theme.global.type.fontWeights.regular,\n});\nexport const subheadline: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.base[400],\n lineHeight: theme.global.type.lineHeights.base[400],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\nexport const headline: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.base[500],\n lineHeight: theme.global.type.lineHeights.base[500],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\nexport const title3: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.base[600],\n lineHeight: theme.global.type.lineHeights.base[600],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\nexport const title2: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.hero[700],\n lineHeight: theme.global.type.lineHeights.hero[700],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\nexport const title1: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.hero[800],\n lineHeight: theme.global.type.lineHeights.hero[800],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\nexport const largeTitle: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.hero[900],\n lineHeight: theme.global.type.lineHeights.hero[900],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\nexport const display: MakeStylesStyleFunctionRule<Theme> = theme => ({\n fontFamily: theme.global.type.fontFamilies.base,\n fontSize: theme.global.type.fontSizes.hero[1000],\n lineHeight: theme.global.type.lineHeights.hero[1000],\n fontWeight: theme.global.type.fontWeights.semibold,\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../src/typographyStyles/typographyStyles.ts"],"names":[],"mappings":"AAGA;;AAEG;AACH,OAAO,IAAM,OAAO,GAAuC,UAAA,KAAA,EAAK;AAAI,SAAC;AACnE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,YAAlB,CAA+B,IADwB;AAEnE,IAAA,QAAQ,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,SAAlB,CAA4B,IAA5B,CAAiC,GAAjC,CAFyD;AAGnE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B,IAA9B,CAAmC,GAAnC,CAHuD;AAInE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B;AAJyB,GAAD;AAKlE,CALK;AAMP,OAAO,IAAM,IAAI,GAAuC,UAAA,KAAA,EAAK;AAAI,SAAC;AAChE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,YAAlB,CAA+B,IADqB;AAEhE,IAAA,QAAQ,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,SAAlB,CAA4B,IAA5B,CAAiC,GAAjC,CAFsD;AAGhE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B,IAA9B,CAAmC,GAAnC,CAHoD;AAIhE,IAAA,UAAU,EAAE,KAAK,CAAC,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Aa,IAAb,CAAkB,YAAlB,CAA+B,IAD2B;AAEtE,IAAA,QAAQ,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,SAAlB,CAA4B,IAA5B,CAAiC,GAAjC,CAF4D;AAGtE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B,IAA9B,CAAmC,GAAnC,CAH0D;AAItE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B;AAJ4B,GAAD;AAKrE,CALK;AAMP,OAAO,IAAM,OAAO,GAAuC,UAAA,KAAA,EAAK;AAAI,SAAC;AACnE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,YAAlB,CAA+B,IADwB;AAEnE,IAAA,QAAQ,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,SAAlB,CAA4B,IAA5B,CAAiC,IAAjC,CAFyD;AAGnE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B,IAA9B,CAAmC,IAAnC,CAHuD;AAInE,IAAA,UAAU,EAAE,KAAK,CAAC,MAAN,CAAa,IAAb,CAAkB,WAAlB,CAA8B;AAJyB,GAAD;AAKlE,CALK","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["Body.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Body/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../src/Body.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["Caption.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Caption/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../src/Caption.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"sources":["../src/Display.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["Headline.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Headline/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../src/Headline.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
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/"}
1
+ {"version":3,"sources":["../src/LargeTitle.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["Subheadline.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gCAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './components/Subheadline/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../src/Subheadline.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gCAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"sources":["../src/Text.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"sources":["../src/Title1.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
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
+ {"version":3,"sources":["../src/Title2.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
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/"}
1
+ {"version":3,"sources":["../src/Title3.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA,OAH+C;AAI3D,IAAA,WAAW,EAAE;AACX,mCAA6B;AAC3B,QAAA,SAAS,EAAE;AADgB;AADlB;AAJ8C,GAA7D;AAaA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAjBD,OAAA,CAAA,YAAA,GAAA,YAAA","sourcesContent":["import { isConformant as baseIsConformant } from '@fluentui/react-conformance';\nimport type { IsConformantOptions, TestObject } from '@fluentui/react-conformance';\nimport makeStylesTests from '@fluentui/react-conformance-make-styles';\n\nexport function isConformant<TProps = {}>(\n testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & { componentPath?: string },\n) {\n const defaultOptions: Partial<IsConformantOptions<TProps>> = {\n asPropHandlesRef: true,\n componentPath: module!.parent!.filename.replace('.test', ''),\n extraTests: makeStylesTests as TestObject<TProps>,\n testOptions: {\n 'make-styles-overrides-win': {\n callCount: 2,\n },\n // TODO: https://github.com/microsoft/fluentui/issues/19618\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } as any,\n };\n\n baseIsConformant(defaultOptions, testInfo);\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA,OAH+C;AAI3D,IAAA,WAAW,EAAE;AACX,mCAA6B;AAC3B,QAAA,SAAS,EAAE;AADgB;AADlB;AAJ8C,GAA7D;AAaA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAjBD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Body typography variant
3
5
  */
4
- export declare const Body: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Body: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAAO,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAP","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body = createWrapper({ useStyles, displayName: 'Body' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAA5C","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Body/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Body';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Body/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Caption typography variant
3
5
  */
4
- export declare const Caption: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Caption: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAAU,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAV","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption = createWrapper({ useStyles, displayName: 'Caption' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAA/C","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Caption/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Caption';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Caption/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Display typography variant
3
5
  */
4
- export declare const Display: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Display: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAAU,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAV","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display = createWrapper({ useStyles, displayName: 'Display' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAA/C","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Display/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Display';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Display/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Headline typography variant
3
5
  */
4
- export declare const Headline: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const Headline: FunctionComponent<TextWrapperProps>;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAW,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAX","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline = createWrapper({ useStyles, displayName: 'Headline' });\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SAAS,EAAA,SADgE;AAEzE,EAAA,WAAW,EAAE;AAF4D,CAAd,CAAhD","sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Headline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Headline';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Headline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,4 +1,6 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
1
3
  /**
2
4
  * Text wrapper component for the Large Title typography variant
3
5
  */
4
- export declare const LargeTitle: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
6
+ export declare const LargeTitle: FunctionComponent<TextWrapperProps>;