@fluentui/react-text 9.0.0-alpha.9 → 9.0.0-beta.4

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 (283) hide show
  1. package/CHANGELOG.json +744 -1
  2. package/CHANGELOG.md +254 -2
  3. package/dist/react-text.d.ts +61 -49
  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/components/Body/Body.d.ts +4 -1
  15. package/lib/components/Body/Body.js +10 -8
  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 +4 -1
  19. package/lib/components/Caption/Caption.js +10 -8
  20. package/lib/components/Caption/Caption.js.map +1 -1
  21. package/lib/components/Caption/index.js.map +1 -1
  22. package/lib/components/Display/Display.d.ts +4 -1
  23. package/lib/components/Display/Display.js +10 -8
  24. package/lib/components/Display/Display.js.map +1 -1
  25. package/lib/components/Display/index.js.map +1 -1
  26. package/lib/components/Headline/Headline.d.ts +4 -1
  27. package/lib/components/Headline/Headline.js +10 -8
  28. package/lib/components/Headline/Headline.js.map +1 -1
  29. package/lib/components/Headline/index.js.map +1 -1
  30. package/lib/components/LargeTitle/LargeTitle.d.ts +4 -1
  31. package/lib/components/LargeTitle/LargeTitle.js +10 -8
  32. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  33. package/lib/components/LargeTitle/index.js.map +1 -1
  34. package/lib/components/Subheadline/Subheadline.d.ts +4 -1
  35. package/lib/components/Subheadline/Subheadline.js +10 -8
  36. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  37. package/lib/components/Subheadline/index.js.map +1 -1
  38. package/lib/components/Text/Text.d.ts +2 -2
  39. package/lib/components/Text/Text.js +3 -3
  40. package/lib/components/Text/Text.js.map +1 -1
  41. package/lib/components/Text/Text.types.d.ts +20 -29
  42. package/lib/components/Text/Text.types.js.map +1 -1
  43. package/lib/components/Text/index.js.map +1 -1
  44. package/lib/components/Text/renderText.js +7 -8
  45. package/lib/components/Text/renderText.js.map +1 -1
  46. package/lib/components/Text/useText.d.ts +1 -2
  47. package/lib/components/Text/useText.js +37 -8
  48. package/lib/components/Text/useText.js.map +1 -1
  49. package/lib/components/Text/useTextStyles.d.ts +1 -0
  50. package/lib/components/Text/useTextStyles.js +32 -31
  51. package/lib/components/Text/useTextStyles.js.map +1 -1
  52. package/lib/components/Title1/Title1.d.ts +4 -1
  53. package/lib/components/Title1/Title1.js +10 -8
  54. package/lib/components/Title1/Title1.js.map +1 -1
  55. package/lib/components/Title1/index.js.map +1 -1
  56. package/lib/components/Title2/Title2.d.ts +4 -1
  57. package/lib/components/Title2/Title2.js +10 -8
  58. package/lib/components/Title2/Title2.js.map +1 -1
  59. package/lib/components/Title2/index.js.map +1 -1
  60. package/lib/components/Title3/Title3.d.ts +4 -1
  61. package/lib/components/Title3/Title3.js +10 -8
  62. package/lib/components/Title3/Title3.js.map +1 -1
  63. package/lib/components/Title3/index.js.map +1 -1
  64. package/lib/components/wrapper.d.ts +3 -3
  65. package/lib/components/wrapper.js +9 -6
  66. package/lib/components/wrapper.js.map +1 -1
  67. package/lib/index.js.map +1 -1
  68. package/lib/typographyStyles/index.js.map +1 -1
  69. package/lib/typographyStyles/typographyStyles.js +54 -72
  70. package/lib/typographyStyles/typographyStyles.js.map +1 -1
  71. package/lib-commonjs/Body.js +1 -1
  72. package/lib-commonjs/Body.js.map +1 -1
  73. package/lib-commonjs/Caption.js +1 -1
  74. package/lib-commonjs/Caption.js.map +1 -1
  75. package/lib-commonjs/Display.js +1 -1
  76. package/lib-commonjs/Display.js.map +1 -1
  77. package/lib-commonjs/Headline.js +1 -1
  78. package/lib-commonjs/Headline.js.map +1 -1
  79. package/lib-commonjs/LargeTitle.js +1 -1
  80. package/lib-commonjs/LargeTitle.js.map +1 -1
  81. package/lib-commonjs/Subheadline.js +1 -1
  82. package/lib-commonjs/Subheadline.js.map +1 -1
  83. package/lib-commonjs/Text.js +1 -1
  84. package/lib-commonjs/Text.js.map +1 -1
  85. package/lib-commonjs/Title1.js +1 -1
  86. package/lib-commonjs/Title1.js.map +1 -1
  87. package/lib-commonjs/Title2.js +1 -1
  88. package/lib-commonjs/Title2.js.map +1 -1
  89. package/lib-commonjs/Title3.js +1 -1
  90. package/lib-commonjs/Title3.js.map +1 -1
  91. package/lib-commonjs/components/Body/Body.d.ts +4 -1
  92. package/lib-commonjs/components/Body/Body.js +9 -7
  93. package/lib-commonjs/components/Body/Body.js.map +1 -1
  94. package/lib-commonjs/components/Body/index.js +1 -1
  95. package/lib-commonjs/components/Body/index.js.map +1 -1
  96. package/lib-commonjs/components/Caption/Caption.d.ts +4 -1
  97. package/lib-commonjs/components/Caption/Caption.js +9 -7
  98. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  99. package/lib-commonjs/components/Caption/index.js +1 -1
  100. package/lib-commonjs/components/Caption/index.js.map +1 -1
  101. package/lib-commonjs/components/Display/Display.d.ts +4 -1
  102. package/lib-commonjs/components/Display/Display.js +9 -7
  103. package/lib-commonjs/components/Display/Display.js.map +1 -1
  104. package/lib-commonjs/components/Display/index.js +1 -1
  105. package/lib-commonjs/components/Display/index.js.map +1 -1
  106. package/lib-commonjs/components/Headline/Headline.d.ts +4 -1
  107. package/lib-commonjs/components/Headline/Headline.js +9 -7
  108. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  109. package/lib-commonjs/components/Headline/index.js +1 -1
  110. package/lib-commonjs/components/Headline/index.js.map +1 -1
  111. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +4 -1
  112. package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -7
  113. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  114. package/lib-commonjs/components/LargeTitle/index.js +1 -1
  115. package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
  116. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +4 -1
  117. package/lib-commonjs/components/Subheadline/Subheadline.js +9 -7
  118. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  119. package/lib-commonjs/components/Subheadline/index.js +1 -1
  120. package/lib-commonjs/components/Subheadline/index.js.map +1 -1
  121. package/lib-commonjs/components/Text/Text.d.ts +2 -2
  122. package/lib-commonjs/components/Text/Text.js +7 -7
  123. package/lib-commonjs/components/Text/Text.js.map +1 -1
  124. package/lib-commonjs/components/Text/Text.types.d.ts +20 -29
  125. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  126. package/lib-commonjs/components/Text/index.js +1 -1
  127. package/lib-commonjs/components/Text/index.js.map +1 -1
  128. package/lib-commonjs/components/Text/renderText.js +8 -10
  129. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  130. package/lib-commonjs/components/Text/useText.d.ts +1 -2
  131. package/lib-commonjs/components/Text/useText.js +38 -9
  132. package/lib-commonjs/components/Text/useText.js.map +1 -1
  133. package/lib-commonjs/components/Text/useTextStyles.d.ts +1 -0
  134. package/lib-commonjs/components/Text/useTextStyles.js +35 -34
  135. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  136. package/lib-commonjs/components/Title1/Title1.d.ts +4 -1
  137. package/lib-commonjs/components/Title1/Title1.js +9 -7
  138. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  139. package/lib-commonjs/components/Title1/index.js +1 -1
  140. package/lib-commonjs/components/Title1/index.js.map +1 -1
  141. package/lib-commonjs/components/Title2/Title2.d.ts +4 -1
  142. package/lib-commonjs/components/Title2/Title2.js +9 -7
  143. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  144. package/lib-commonjs/components/Title2/index.js +1 -1
  145. package/lib-commonjs/components/Title2/index.js.map +1 -1
  146. package/lib-commonjs/components/Title3/Title3.d.ts +4 -1
  147. package/lib-commonjs/components/Title3/Title3.js +9 -7
  148. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  149. package/lib-commonjs/components/Title3/index.js +1 -1
  150. package/lib-commonjs/components/Title3/index.js.map +1 -1
  151. package/lib-commonjs/components/wrapper.d.ts +3 -3
  152. package/lib-commonjs/components/wrapper.js +12 -9
  153. package/lib-commonjs/components/wrapper.js.map +1 -1
  154. package/lib-commonjs/index.js +1 -1
  155. package/lib-commonjs/index.js.map +1 -1
  156. package/lib-commonjs/typographyStyles/index.js +1 -1
  157. package/lib-commonjs/typographyStyles/index.js.map +1 -1
  158. package/lib-commonjs/typographyStyles/typographyStyles.js +54 -72
  159. package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
  160. package/package.json +11 -10
  161. package/lib/common/isConformant.d.ts +0 -4
  162. package/lib/common/isConformant.js +0 -9
  163. package/lib/common/isConformant.js.map +0 -1
  164. package/lib-amd/Body.d.ts +0 -1
  165. package/lib-amd/Body.js +0 -6
  166. package/lib-amd/Body.js.map +0 -1
  167. package/lib-amd/Caption.d.ts +0 -1
  168. package/lib-amd/Caption.js +0 -6
  169. package/lib-amd/Caption.js.map +0 -1
  170. package/lib-amd/Display.d.ts +0 -1
  171. package/lib-amd/Display.js +0 -6
  172. package/lib-amd/Display.js.map +0 -1
  173. package/lib-amd/Headline.d.ts +0 -1
  174. package/lib-amd/Headline.js +0 -6
  175. package/lib-amd/Headline.js.map +0 -1
  176. package/lib-amd/LargeTitle.d.ts +0 -1
  177. package/lib-amd/LargeTitle.js +0 -6
  178. package/lib-amd/LargeTitle.js.map +0 -1
  179. package/lib-amd/Subheadline.d.ts +0 -1
  180. package/lib-amd/Subheadline.js +0 -6
  181. package/lib-amd/Subheadline.js.map +0 -1
  182. package/lib-amd/Text.d.ts +0 -1
  183. package/lib-amd/Text.js +0 -6
  184. package/lib-amd/Text.js.map +0 -1
  185. package/lib-amd/Title1.d.ts +0 -1
  186. package/lib-amd/Title1.js +0 -6
  187. package/lib-amd/Title1.js.map +0 -1
  188. package/lib-amd/Title2.d.ts +0 -1
  189. package/lib-amd/Title2.js +0 -6
  190. package/lib-amd/Title2.js.map +0 -1
  191. package/lib-amd/Title3.d.ts +0 -1
  192. package/lib-amd/Title3.js +0 -6
  193. package/lib-amd/Title3.js.map +0 -1
  194. package/lib-amd/common/isConformant.d.ts +0 -4
  195. package/lib-amd/common/isConformant.js +0 -14
  196. package/lib-amd/common/isConformant.js.map +0 -1
  197. package/lib-amd/components/Body/Body.d.ts +0 -4
  198. package/lib-amd/components/Body/Body.js +0 -16
  199. package/lib-amd/components/Body/Body.js.map +0 -1
  200. package/lib-amd/components/Body/index.d.ts +0 -1
  201. package/lib-amd/components/Body/index.js +0 -6
  202. package/lib-amd/components/Body/index.js.map +0 -1
  203. package/lib-amd/components/Caption/Caption.d.ts +0 -4
  204. package/lib-amd/components/Caption/Caption.js +0 -16
  205. package/lib-amd/components/Caption/Caption.js.map +0 -1
  206. package/lib-amd/components/Caption/index.d.ts +0 -1
  207. package/lib-amd/components/Caption/index.js +0 -6
  208. package/lib-amd/components/Caption/index.js.map +0 -1
  209. package/lib-amd/components/Display/Display.d.ts +0 -4
  210. package/lib-amd/components/Display/Display.js +0 -16
  211. package/lib-amd/components/Display/Display.js.map +0 -1
  212. package/lib-amd/components/Display/index.d.ts +0 -1
  213. package/lib-amd/components/Display/index.js +0 -6
  214. package/lib-amd/components/Display/index.js.map +0 -1
  215. package/lib-amd/components/Headline/Headline.d.ts +0 -4
  216. package/lib-amd/components/Headline/Headline.js +0 -16
  217. package/lib-amd/components/Headline/Headline.js.map +0 -1
  218. package/lib-amd/components/Headline/index.d.ts +0 -1
  219. package/lib-amd/components/Headline/index.js +0 -6
  220. package/lib-amd/components/Headline/index.js.map +0 -1
  221. package/lib-amd/components/LargeTitle/LargeTitle.d.ts +0 -4
  222. package/lib-amd/components/LargeTitle/LargeTitle.js +0 -16
  223. package/lib-amd/components/LargeTitle/LargeTitle.js.map +0 -1
  224. package/lib-amd/components/LargeTitle/index.d.ts +0 -1
  225. package/lib-amd/components/LargeTitle/index.js +0 -6
  226. package/lib-amd/components/LargeTitle/index.js.map +0 -1
  227. package/lib-amd/components/Subheadline/Subheadline.d.ts +0 -4
  228. package/lib-amd/components/Subheadline/Subheadline.js +0 -16
  229. package/lib-amd/components/Subheadline/Subheadline.js.map +0 -1
  230. package/lib-amd/components/Subheadline/index.d.ts +0 -1
  231. package/lib-amd/components/Subheadline/index.js +0 -6
  232. package/lib-amd/components/Subheadline/index.js.map +0 -1
  233. package/lib-amd/components/Text/Text.d.ts +0 -6
  234. package/lib-amd/components/Text/Text.js +0 -15
  235. package/lib-amd/components/Text/Text.js.map +0 -1
  236. package/lib-amd/components/Text/Text.types.d.ts +0 -86
  237. package/lib-amd/components/Text/Text.types.js +0 -5
  238. package/lib-amd/components/Text/Text.types.js.map +0 -1
  239. package/lib-amd/components/Text/index.d.ts +0 -5
  240. package/lib-amd/components/Text/index.js +0 -10
  241. package/lib-amd/components/Text/index.js.map +0 -1
  242. package/lib-amd/components/Text/renderText.d.ts +0 -5
  243. package/lib-amd/components/Text/renderText.js +0 -14
  244. package/lib-amd/components/Text/renderText.js.map +0 -1
  245. package/lib-amd/components/Text/useText.d.ts +0 -13
  246. package/lib-amd/components/Text/useText.js +0 -25
  247. package/lib-amd/components/Text/useText.js.map +0 -1
  248. package/lib-amd/components/Text/useTextStyles.d.ts +0 -5
  249. package/lib-amd/components/Text/useTextStyles.js +0 -110
  250. package/lib-amd/components/Text/useTextStyles.js.map +0 -1
  251. package/lib-amd/components/Title1/Title1.d.ts +0 -4
  252. package/lib-amd/components/Title1/Title1.js +0 -16
  253. package/lib-amd/components/Title1/Title1.js.map +0 -1
  254. package/lib-amd/components/Title1/index.d.ts +0 -1
  255. package/lib-amd/components/Title1/index.js +0 -6
  256. package/lib-amd/components/Title1/index.js.map +0 -1
  257. package/lib-amd/components/Title2/Title2.d.ts +0 -4
  258. package/lib-amd/components/Title2/Title2.js +0 -16
  259. package/lib-amd/components/Title2/Title2.js.map +0 -1
  260. package/lib-amd/components/Title2/index.d.ts +0 -1
  261. package/lib-amd/components/Title2/index.js +0 -6
  262. package/lib-amd/components/Title2/index.js.map +0 -1
  263. package/lib-amd/components/Title3/Title3.d.ts +0 -4
  264. package/lib-amd/components/Title3/Title3.js +0 -16
  265. package/lib-amd/components/Title3/Title3.js.map +0 -1
  266. package/lib-amd/components/Title3/index.d.ts +0 -1
  267. package/lib-amd/components/Title3/index.js +0 -6
  268. package/lib-amd/components/Title3/index.js.map +0 -1
  269. package/lib-amd/components/wrapper.d.ts +0 -8
  270. package/lib-amd/components/wrapper.js +0 -19
  271. package/lib-amd/components/wrapper.js.map +0 -1
  272. package/lib-amd/index.d.ts +0 -10
  273. package/lib-amd/index.js +0 -15
  274. package/lib-amd/index.js.map +0 -1
  275. package/lib-amd/typographyStyles/index.d.ts +0 -2
  276. package/lib-amd/typographyStyles/index.js +0 -7
  277. package/lib-amd/typographyStyles/index.js.map +0 -1
  278. package/lib-amd/typographyStyles/typographyStyles.d.ts +0 -14
  279. package/lib-amd/typographyStyles/typographyStyles.js +0 -72
  280. package/lib-amd/typographyStyles/typographyStyles.js.map +0 -1
  281. package/lib-commonjs/common/isConformant.d.ts +0 -4
  282. package/lib-commonjs/common/isConformant.js +0 -19
  283. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -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,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Text"), exports);
10
10
 
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -5,22 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.renderText = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
11
  /**
14
12
  * Render the final JSX of Text
15
13
  */
16
14
 
17
15
 
18
- var renderText = function (state) {
19
- var _a = react_utilities_1.getSlotsCompat(state),
20
- slots = _a.slots,
21
- slotProps = _a.slotProps;
22
-
23
- return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), state.children);
16
+ const renderText = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state);
21
+ return React.createElement(slots.root, Object.assign({}, slotProps.root));
24
22
  };
25
23
 
26
24
  exports.renderText = renderText;
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,UAAU,GAAG,UAAC,KAAD,EAAiB;AACnC,MAAA,EAAA,GAAuB,iBAAA,CAAA,cAAA,CAAe,KAAf,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EAAiC,KAAK,CAAC,QAAvC,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","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,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,UAAU,GAAI,KAAD,IAAqB;AAC7C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","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;
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useText = void 0;
7
7
 
8
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
-
10
- var mergeProps = /*#__PURE__*/react_utilities_1.makeMergeProps();
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
9
  /**
12
10
  * Create the state required to render Text.
13
11
  *
@@ -16,14 +14,45 @@ var mergeProps = /*#__PURE__*/react_utilities_1.makeMergeProps();
16
14
  *
17
15
  * @param props - props from this instance of Text
18
16
  * @param ref - reference to root HTMLElement of Text
19
- * @param defaultProps - (optional) default prop values provided by the implementing type
20
17
  */
21
18
 
22
- var useText = function (props, ref, defaultProps) {
23
- var state = mergeProps({
24
- ref: ref,
25
- as: 'span'
26
- }, defaultProps, props);
19
+
20
+ const useText = (props, ref) => {
21
+ var _a;
22
+
23
+ const {
24
+ wrap,
25
+ truncate,
26
+ block,
27
+ italic,
28
+ underline,
29
+ strikethrough,
30
+ size,
31
+ font,
32
+ weight,
33
+ align
34
+ } = props;
35
+ const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
36
+ const state = {
37
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
38
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
39
+ block: block !== null && block !== void 0 ? block : false,
40
+ italic: italic !== null && italic !== void 0 ? italic : false,
41
+ underline: underline !== null && underline !== void 0 ? underline : false,
42
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
43
+ size: size !== null && size !== void 0 ? size : 300,
44
+ font: font !== null && font !== void 0 ? font : 'base',
45
+ weight: weight !== null && weight !== void 0 ? weight : 'regular',
46
+ align: align !== null && align !== void 0 ? align : 'start',
47
+ components: {
48
+ root: 'span'
49
+ },
50
+ root: react_utilities_1.getNativeElementProps(as, {
51
+ ref,
52
+ ...props,
53
+ as
54
+ })
55
+ };
27
56
  return state;
28
57
  };
29
58
 
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGA,IAAM,UAAU,gBAAG,iBAAA,CAAA,cAAA,EAAnB;AAEA;;;;;;;;;AASG;;AACI,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;;AAAM,OAAA,CAAA,OAAA,GAAO,OAAP","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,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,OAAO,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAClF,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,KAAlB;AAAyB,IAAA,MAAzB;AAAiC,IAAA,SAAjC;AAA4C,IAAA,aAA5C;AAA2D,IAAA,IAA3D;AAAiE,IAAA,IAAjE;AAAuE,IAAA,MAAvE;AAA+E,IAAA;AAA/E,MAAyF,KAA/F;AACA,QAAM,EAAE,GAAA,CAAA,EAAA,GAAG,KAAK,CAAC,EAAT,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,EAAX,GAAe,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IADS;AAEvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAFC;AAGvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAHO;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KALD;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GAPS;AAQvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,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,iBAAA,CAAA,qBAAA,CAAsB,EAAtB,EAA0B;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAA1B;AAdiB,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM;;AAAM,OAAA,CAAA,OAAA,GAAO,OAAP","sourceRoot":""}
@@ -1,4 +1,5 @@
1
1
  import type { TextState } from './Text.types';
2
+ export declare const textClassName = "fui-Text";
2
3
  /**
3
4
  * Apply styling to the Text slots based on the state
4
5
  */
@@ -3,20 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTextStyles = void 0;
6
+ exports.useTextStyles = exports.textClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
+
10
+ exports.textClassName = 'fui-Text';
9
11
  /**
10
12
  * Styles for the root slot
11
13
  */
12
14
 
13
-
14
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
15
+ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
15
16
  "root": {
16
- "Bahqtrf": "f1kx028l",
17
- "Be2twd7": "flcnb0",
18
- "Bg96gwp": "f1syuwty",
19
- "Bhrd7zp": "f1du0uop",
17
+ "Bahqtrf": "fk6fouc",
18
+ "Be2twd7": "fkhj508",
19
+ "Bg96gwp": "f1i3iumi",
20
+ "Bhrd7zp": "figsok6",
20
21
  "fsow6f": "fpgzoln",
21
22
  "mc9l5x": "f1w7gpdv",
22
23
  "Huce71": "f6juhto",
@@ -46,52 +47,52 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
46
47
  "dwov6y": "f13legbo"
47
48
  },
48
49
  "base100": {
49
- "Be2twd7": "f13f9tl5",
50
- "Bg96gwp": "f1afc3pw"
50
+ "Be2twd7": "f13mqy1h",
51
+ "Bg96gwp": "fcpl73t"
51
52
  },
52
53
  "base200": {
53
- "Be2twd7": "ft25vac",
54
- "Bg96gwp": "f6u047o"
54
+ "Be2twd7": "fy9rknc",
55
+ "Bg96gwp": "fwrc4pm"
55
56
  },
56
57
  "base400": {
57
- "Be2twd7": "f1y5x3qd",
58
- "Bg96gwp": "f1r32vcg"
58
+ "Be2twd7": "fod5ikn",
59
+ "Bg96gwp": "faaz57k"
59
60
  },
60
61
  "base500": {
61
- "Be2twd7": "fyhtp3d",
62
- "Bg96gwp": "f5biviy"
62
+ "Be2twd7": "f1pp30po",
63
+ "Bg96gwp": "f106mvju"
63
64
  },
64
65
  "base600": {
65
- "Be2twd7": "f4boefw",
66
- "Bg96gwp": "f14n33p9"
66
+ "Be2twd7": "f1x0m3f5",
67
+ "Bg96gwp": "fb86gi6"
67
68
  },
68
69
  "hero700": {
69
- "Be2twd7": "f1hydpcw",
70
- "Bg96gwp": "fnqitsm"
70
+ "Be2twd7": "fojgt09",
71
+ "Bg96gwp": "fcen8rp"
71
72
  },
72
73
  "hero800": {
73
- "Be2twd7": "fhm3ba7",
74
- "Bg96gwp": "f171aabn"
74
+ "Be2twd7": "fccw675",
75
+ "Bg96gwp": "f1ebx5kk"
75
76
  },
76
77
  "hero900": {
77
- "Be2twd7": "fsnqw2a",
78
- "Bg96gwp": "f1iavbok"
78
+ "Be2twd7": "f15afnhw",
79
+ "Bg96gwp": "fr3w3wp"
79
80
  },
80
81
  "hero1000": {
81
- "Be2twd7": "f9gixcf",
82
- "Bg96gwp": "f123viq0"
82
+ "Be2twd7": "fpyltcb",
83
+ "Bg96gwp": "f1ivgwrt"
83
84
  },
84
85
  "monospace": {
85
- "Bahqtrf": "fr87dsh"
86
+ "Bahqtrf": "f1fedwem"
86
87
  },
87
88
  "numeric": {
88
- "Bahqtrf": "f1hn491d"
89
+ "Bahqtrf": "f1uq0ln5"
89
90
  },
90
91
  "weightMedium": {
91
- "Bhrd7zp": "f1ac3mzv"
92
+ "Bhrd7zp": "fdj6btp"
92
93
  },
93
94
  "weightSemibold": {
94
- "Bhrd7zp": "fss2gpl"
95
+ "Bhrd7zp": "fl43uef"
95
96
  },
96
97
  "alignCenter": {
97
98
  "fsow6f": "f17mccla"
@@ -103,16 +104,16 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
103
104
  "fsow6f": "f1j59e10"
104
105
  }
105
106
  }, {
106
- "d": [".f1kx028l{font-family:var(--global-type-fontFamilies-base);}", ".flcnb0{font-size:var(--global-type-fontSizes-base-300);}", ".f1syuwty{line-height:var(--global-type-lineHeights-base-300);}", ".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1gl81tg{overflow:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1a3p1vp{overflow:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".fctto54{-webkit-text-decoration:underline;text-decoration:underline;}", ".f1y2xhd0{-webkit-text-decoration:line-through;text-decoration:line-through;}", ".f13legbo{-webkit-text-decoration:line-through underline;text-decoration:line-through underline;}", ".f13f9tl5{font-size:var(--global-type-fontSizes-base-100);}", ".f1afc3pw{line-height:var(--global-type-lineHeights-base-100);}", ".ft25vac{font-size:var(--global-type-fontSizes-base-200);}", ".f6u047o{line-height:var(--global-type-lineHeights-base-200);}", ".f1y5x3qd{font-size:var(--global-type-fontSizes-base-400);}", ".f1r32vcg{line-height:var(--global-type-lineHeights-base-400);}", ".fyhtp3d{font-size:var(--global-type-fontSizes-base-500);}", ".f5biviy{line-height:var(--global-type-lineHeights-base-500);}", ".f4boefw{font-size:var(--global-type-fontSizes-base-600);}", ".f14n33p9{line-height:var(--global-type-lineHeights-base-600);}", ".f1hydpcw{font-size:var(--global-type-fontSizes-hero-700);}", ".fnqitsm{line-height:var(--global-type-lineHeights-hero-700);}", ".fhm3ba7{font-size:var(--global-type-fontSizes-hero-800);}", ".f171aabn{line-height:var(--global-type-lineHeights-hero-800);}", ".fsnqw2a{font-size:var(--global-type-fontSizes-hero-900);}", ".f1iavbok{line-height:var(--global-type-lineHeights-hero-900);}", ".f9gixcf{font-size:var(--global-type-fontSizes-hero-1000);}", ".f123viq0{line-height:var(--global-type-lineHeights-hero-1000);}", ".fr87dsh{font-family:var(--global-type-fontFamilies-monospace);}", ".f1hn491d{font-family:var(--global-type-fontFamilies-numeric);}", ".f1ac3mzv{font-weight:var(--global-type-fontWeights-medium);}", ".fss2gpl{font-weight:var(--global-type-fontWeights-semibold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
107
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1gl81tg{overflow:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1a3p1vp{overflow:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".fctto54{-webkit-text-decoration:underline;text-decoration:underline;}", ".f1y2xhd0{-webkit-text-decoration:line-through;text-decoration:line-through;}", ".f13legbo{-webkit-text-decoration:line-through underline;text-decoration:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
107
108
  });
108
109
  /**
109
110
  * Apply styling to the Text slots based on the state
110
111
  */
111
112
 
112
113
 
113
- var useTextStyles = function (state) {
114
- var styles = useStyles();
115
- state.className = react_make_styles_1.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);
114
+ const useTextStyles = state => {
115
+ const styles = useStyles();
116
+ state.root.className = react_make_styles_1.mergeClasses(exports.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);
116
117
  return state;
117
118
  };
118
119
 
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAGA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;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;;;AACI,IAAM,aAAa,GAAG,UAAC,KAAD,EAAiB;AAC5C,MAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,SAAN,GAAkB,mBAAA,CAAA,YAAA,CAChB,MAAM,CAAC,IADS,EAEhB,KAAK,CAAC,IAAN,KAAe,KAAf,IAAwB,MAAM,CAAC,MAFf,EAGhB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAHT,EAIhB,KAAK,CAAC,KAAN,IAAe,MAAM,CAAC,KAJN,EAKhB,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MALP,EAMhB,KAAK,CAAC,SAAN,IAAmB,MAAM,CAAC,SANV,EAOhB,KAAK,CAAC,aAAN,IAAuB,MAAM,CAAC,aAPd,EAQhB,KAAK,CAAC,SAAN,IAAmB,KAAK,CAAC,aAAzB,IAA0C,MAAM,CAAC,sBARjC,EAShB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OATb,EAUhB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAVb,EAWhB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAXb,EAYhB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAZb,EAahB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAbb,EAchB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAdb,EAehB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAfb,EAgBhB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAhBb,EAiBhB,KAAK,CAAC,IAAN,KAAe,IAAf,IAAuB,MAAM,CAAC,QAjBd,EAkBhB,KAAK,CAAC,IAAN,KAAe,WAAf,IAA8B,MAAM,CAAC,SAlBrB,EAmBhB,KAAK,CAAC,IAAN,KAAe,SAAf,IAA4B,MAAM,CAAC,OAnBnB,EAoBhB,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YApBpB,EAqBhB,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cArBtB,EAsBhB,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAtBnB,EAuBhB,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAvBhB,EAwBhB,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAxBpB,EAyBhB,KAAK,CAAC,SAzBU,CAAlB;AA4BA,SAAO,KAAP;AACD,CA/BM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","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":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;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;;;AACI,MAAM,aAAa,GAAI,KAAD,IAAgC;AAC3D,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,aADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,IAAN,KAAe,KAAf,IAAwB,MAAM,CAAC,MAHV,EAIrB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJJ,EAKrB,KAAK,CAAC,KAAN,IAAe,MAAM,CAAC,KALD,EAMrB,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MANF,EAOrB,KAAK,CAAC,SAAN,IAAmB,MAAM,CAAC,SAPL,EAQrB,KAAK,CAAC,aAAN,IAAuB,MAAM,CAAC,aART,EASrB,KAAK,CAAC,SAAN,IAAmB,KAAK,CAAC,aAAzB,IAA0C,MAAM,CAAC,sBAT5B,EAUrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAVR,EAWrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAXR,EAYrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAZR,EAarB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAbR,EAcrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAdR,EAerB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAfR,EAgBrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAhBR,EAiBrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAjBR,EAkBrB,KAAK,CAAC,IAAN,KAAe,IAAf,IAAuB,MAAM,CAAC,QAlBT,EAmBrB,KAAK,CAAC,IAAN,KAAe,WAAf,IAA8B,MAAM,CAAC,SAnBhB,EAoBrB,KAAK,CAAC,IAAN,KAAe,SAAf,IAA4B,MAAM,CAAC,OApBd,EAqBrB,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YArBf,EAsBrB,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cAtBjB,EAuBrB,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAvBd,EAwBrB,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBX,EAyBrB,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBf,EA0BrB,KAAK,CAAC,IAAN,CAAW,SA1BU,CAAvB;AA6BA,SAAO,KAAP;AACD,CAjCM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","sourceRoot":""}
@@ -1,4 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const title1ClassName = "fui-Title1";
1
4
  /**
2
5
  * Text wrapper component for the Title 1 typography variant
3
6
  */
4
- export declare const Title1: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
7
+ export declare const Title1: FunctionComponent<TextWrapperProps>;
@@ -3,19 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Title1 = void 0;
6
+ exports.Title1 = exports.title1ClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.title1ClassName = 'fui-Title1';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
+ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
20
  "root": {}
20
21
  }, {});
21
22
  /**
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
24
25
 
25
26
 
26
27
  exports.Title1 = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
28
+ useStyles,
29
+ className: exports.title1ClassName,
28
30
  displayName: 'Title1'
29
31
  });
30
32
  //# sourceMappingURL=Title1.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title1/Title1.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,MAAA,gBAAS,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAT","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,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Title1"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title1/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Title1';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Title1/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,4 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const title2ClassName = "fui-Title2";
1
4
  /**
2
5
  * Text wrapper component for the Title 2 typography variant
3
6
  */
4
- export declare const Title2: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
7
+ export declare const Title2: FunctionComponent<TextWrapperProps>;
@@ -3,19 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Title2 = void 0;
6
+ exports.Title2 = exports.title2ClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.title2ClassName = 'fui-Title2';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
+ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
20
  "root": {}
20
21
  }, {});
21
22
  /**
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
24
25
 
25
26
 
26
27
  exports.Title2 = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
28
+ useStyles,
29
+ className: exports.title2ClassName,
28
30
  displayName: 'Title2'
29
31
  });
30
32
  //# sourceMappingURL=Title2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title2/Title2.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,MAAA,gBAAS,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAT","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,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Title2"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title2/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Title2';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Title2/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,4 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const title3ClassName = "fui-Title3";
1
4
  /**
2
5
  * Text wrapper component for the Title 3 typography variant
3
6
  */
4
- export declare const Title3: import("react").ForwardRefExoticComponent<import("../wrapper").Props & import("react").RefAttributes<HTMLElement>>;
7
+ export declare const Title3: FunctionComponent<TextWrapperProps>;
@@ -3,19 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Title3 = void 0;
6
+ exports.Title3 = exports.title3ClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.title3ClassName = 'fui-Title3';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
+ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
20
  "root": {}
20
21
  }, {});
21
22
  /**
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
24
25
 
25
26
 
26
27
  exports.Title3 = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
28
+ useStyles,
29
+ className: exports.title3ClassName,
28
30
  displayName: 'Title3'
29
31
  });
30
32
  //# sourceMappingURL=Title3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title3/Title3.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,MAAA,gBAAS,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAAT","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,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Title3"), exports);
10
10
  //# sourceMappingURL=index.js.map