@fluentui/react-text 0.0.0-nightly0025eeb82020211108.1

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 (244) hide show
  1. package/CHANGELOG.json +1283 -0
  2. package/CHANGELOG.md +472 -0
  3. package/LICENSE +15 -0
  4. package/MIGRATION.md +680 -0
  5. package/README.md +99 -0
  6. package/Spec.md +162 -0
  7. package/assets/typography-examples.gif +0 -0
  8. package/dist/react-text.d.ts +183 -0
  9. package/lib/Body.d.ts +1 -0
  10. package/lib/Body.js +2 -0
  11. package/lib/Body.js.map +1 -0
  12. package/lib/Caption.d.ts +1 -0
  13. package/lib/Caption.js +2 -0
  14. package/lib/Caption.js.map +1 -0
  15. package/lib/Display.d.ts +1 -0
  16. package/lib/Display.js +2 -0
  17. package/lib/Display.js.map +1 -0
  18. package/lib/Headline.d.ts +1 -0
  19. package/lib/Headline.js +2 -0
  20. package/lib/Headline.js.map +1 -0
  21. package/lib/LargeTitle.d.ts +1 -0
  22. package/lib/LargeTitle.js +2 -0
  23. package/lib/LargeTitle.js.map +1 -0
  24. package/lib/Subheadline.d.ts +1 -0
  25. package/lib/Subheadline.js +2 -0
  26. package/lib/Subheadline.js.map +1 -0
  27. package/lib/Text.d.ts +1 -0
  28. package/lib/Text.js +2 -0
  29. package/lib/Text.js.map +1 -0
  30. package/lib/Title1.d.ts +1 -0
  31. package/lib/Title1.js +2 -0
  32. package/lib/Title1.js.map +1 -0
  33. package/lib/Title2.d.ts +1 -0
  34. package/lib/Title2.js +2 -0
  35. package/lib/Title2.js.map +1 -0
  36. package/lib/Title3.d.ts +1 -0
  37. package/lib/Title3.js +2 -0
  38. package/lib/Title3.js.map +1 -0
  39. package/lib/common/isConformant.d.ts +4 -0
  40. package/lib/common/isConformant.js +16 -0
  41. package/lib/common/isConformant.js.map +1 -0
  42. package/lib/components/Body/Body.d.ts +7 -0
  43. package/lib/components/Body/Body.js +29 -0
  44. package/lib/components/Body/Body.js.map +1 -0
  45. package/lib/components/Body/index.d.ts +1 -0
  46. package/lib/components/Body/index.js +2 -0
  47. package/lib/components/Body/index.js.map +1 -0
  48. package/lib/components/Caption/Caption.d.ts +7 -0
  49. package/lib/components/Caption/Caption.js +29 -0
  50. package/lib/components/Caption/Caption.js.map +1 -0
  51. package/lib/components/Caption/index.d.ts +1 -0
  52. package/lib/components/Caption/index.js +2 -0
  53. package/lib/components/Caption/index.js.map +1 -0
  54. package/lib/components/Display/Display.d.ts +7 -0
  55. package/lib/components/Display/Display.js +29 -0
  56. package/lib/components/Display/Display.js.map +1 -0
  57. package/lib/components/Display/index.d.ts +1 -0
  58. package/lib/components/Display/index.js +2 -0
  59. package/lib/components/Display/index.js.map +1 -0
  60. package/lib/components/Headline/Headline.d.ts +7 -0
  61. package/lib/components/Headline/Headline.js +29 -0
  62. package/lib/components/Headline/Headline.js.map +1 -0
  63. package/lib/components/Headline/index.d.ts +1 -0
  64. package/lib/components/Headline/index.js +2 -0
  65. package/lib/components/Headline/index.js.map +1 -0
  66. package/lib/components/LargeTitle/LargeTitle.d.ts +7 -0
  67. package/lib/components/LargeTitle/LargeTitle.js +29 -0
  68. package/lib/components/LargeTitle/LargeTitle.js.map +1 -0
  69. package/lib/components/LargeTitle/index.d.ts +1 -0
  70. package/lib/components/LargeTitle/index.js +2 -0
  71. package/lib/components/LargeTitle/index.js.map +1 -0
  72. package/lib/components/Subheadline/Subheadline.d.ts +7 -0
  73. package/lib/components/Subheadline/Subheadline.js +29 -0
  74. package/lib/components/Subheadline/Subheadline.js.map +1 -0
  75. package/lib/components/Subheadline/index.d.ts +1 -0
  76. package/lib/components/Subheadline/index.js +2 -0
  77. package/lib/components/Subheadline/index.js.map +1 -0
  78. package/lib/components/Text/Text.d.ts +6 -0
  79. package/lib/components/Text/Text.js +15 -0
  80. package/lib/components/Text/Text.js.map +1 -0
  81. package/lib/components/Text/Text.types.d.ts +77 -0
  82. package/lib/components/Text/Text.types.js +2 -0
  83. package/lib/components/Text/Text.types.js.map +1 -0
  84. package/lib/components/Text/index.d.ts +5 -0
  85. package/lib/components/Text/index.js +6 -0
  86. package/lib/components/Text/index.js.map +1 -0
  87. package/lib/components/Text/renderText.d.ts +5 -0
  88. package/lib/components/Text/renderText.js +14 -0
  89. package/lib/components/Text/renderText.js.map +1 -0
  90. package/lib/components/Text/useText.d.ts +12 -0
  91. package/lib/components/Text/useText.js +50 -0
  92. package/lib/components/Text/useText.js.map +1 -0
  93. package/lib/components/Text/useTextStyles.d.ts +6 -0
  94. package/lib/components/Text/useTextStyles.js +111 -0
  95. package/lib/components/Text/useTextStyles.js.map +1 -0
  96. package/lib/components/Title1/Title1.d.ts +7 -0
  97. package/lib/components/Title1/Title1.js +29 -0
  98. package/lib/components/Title1/Title1.js.map +1 -0
  99. package/lib/components/Title1/index.d.ts +1 -0
  100. package/lib/components/Title1/index.js +2 -0
  101. package/lib/components/Title1/index.js.map +1 -0
  102. package/lib/components/Title2/Title2.d.ts +7 -0
  103. package/lib/components/Title2/Title2.js +29 -0
  104. package/lib/components/Title2/Title2.js.map +1 -0
  105. package/lib/components/Title2/index.d.ts +1 -0
  106. package/lib/components/Title2/index.js +2 -0
  107. package/lib/components/Title2/index.js.map +1 -0
  108. package/lib/components/Title3/Title3.d.ts +7 -0
  109. package/lib/components/Title3/Title3.js +29 -0
  110. package/lib/components/Title3/Title3.js.map +1 -0
  111. package/lib/components/Title3/index.d.ts +1 -0
  112. package/lib/components/Title3/index.js +2 -0
  113. package/lib/components/Title3/index.js.map +1 -0
  114. package/lib/components/wrapper.d.ts +8 -0
  115. package/lib/components/wrapper.js +20 -0
  116. package/lib/components/wrapper.js.map +1 -0
  117. package/lib/index.d.ts +10 -0
  118. package/lib/index.js +11 -0
  119. package/lib/index.js.map +1 -0
  120. package/lib/tsdoc-metadata.json +11 -0
  121. package/lib/typographyStyles/index.d.ts +2 -0
  122. package/lib/typographyStyles/index.js +3 -0
  123. package/lib/typographyStyles/index.js.map +1 -0
  124. package/lib/typographyStyles/typographyStyles.d.ts +14 -0
  125. package/lib/typographyStyles/typographyStyles.js +58 -0
  126. package/lib/typographyStyles/typographyStyles.js.map +1 -0
  127. package/lib-commonjs/Body.d.ts +1 -0
  128. package/lib-commonjs/Body.js +10 -0
  129. package/lib-commonjs/Body.js.map +1 -0
  130. package/lib-commonjs/Caption.d.ts +1 -0
  131. package/lib-commonjs/Caption.js +10 -0
  132. package/lib-commonjs/Caption.js.map +1 -0
  133. package/lib-commonjs/Display.d.ts +1 -0
  134. package/lib-commonjs/Display.js +10 -0
  135. package/lib-commonjs/Display.js.map +1 -0
  136. package/lib-commonjs/Headline.d.ts +1 -0
  137. package/lib-commonjs/Headline.js +10 -0
  138. package/lib-commonjs/Headline.js.map +1 -0
  139. package/lib-commonjs/LargeTitle.d.ts +1 -0
  140. package/lib-commonjs/LargeTitle.js +10 -0
  141. package/lib-commonjs/LargeTitle.js.map +1 -0
  142. package/lib-commonjs/Subheadline.d.ts +1 -0
  143. package/lib-commonjs/Subheadline.js +10 -0
  144. package/lib-commonjs/Subheadline.js.map +1 -0
  145. package/lib-commonjs/Text.d.ts +1 -0
  146. package/lib-commonjs/Text.js +10 -0
  147. package/lib-commonjs/Text.js.map +1 -0
  148. package/lib-commonjs/Title1.d.ts +1 -0
  149. package/lib-commonjs/Title1.js +10 -0
  150. package/lib-commonjs/Title1.js.map +1 -0
  151. package/lib-commonjs/Title2.d.ts +1 -0
  152. package/lib-commonjs/Title2.js +10 -0
  153. package/lib-commonjs/Title2.js.map +1 -0
  154. package/lib-commonjs/Title3.d.ts +1 -0
  155. package/lib-commonjs/Title3.js +10 -0
  156. package/lib-commonjs/Title3.js.map +1 -0
  157. package/lib-commonjs/common/isConformant.d.ts +4 -0
  158. package/lib-commonjs/common/isConformant.js +27 -0
  159. package/lib-commonjs/common/isConformant.js.map +1 -0
  160. package/lib-commonjs/components/Body/Body.d.ts +7 -0
  161. package/lib-commonjs/components/Body/Body.js +32 -0
  162. package/lib-commonjs/components/Body/Body.js.map +1 -0
  163. package/lib-commonjs/components/Body/index.d.ts +1 -0
  164. package/lib-commonjs/components/Body/index.js +10 -0
  165. package/lib-commonjs/components/Body/index.js.map +1 -0
  166. package/lib-commonjs/components/Caption/Caption.d.ts +7 -0
  167. package/lib-commonjs/components/Caption/Caption.js +32 -0
  168. package/lib-commonjs/components/Caption/Caption.js.map +1 -0
  169. package/lib-commonjs/components/Caption/index.d.ts +1 -0
  170. package/lib-commonjs/components/Caption/index.js +10 -0
  171. package/lib-commonjs/components/Caption/index.js.map +1 -0
  172. package/lib-commonjs/components/Display/Display.d.ts +7 -0
  173. package/lib-commonjs/components/Display/Display.js +32 -0
  174. package/lib-commonjs/components/Display/Display.js.map +1 -0
  175. package/lib-commonjs/components/Display/index.d.ts +1 -0
  176. package/lib-commonjs/components/Display/index.js +10 -0
  177. package/lib-commonjs/components/Display/index.js.map +1 -0
  178. package/lib-commonjs/components/Headline/Headline.d.ts +7 -0
  179. package/lib-commonjs/components/Headline/Headline.js +32 -0
  180. package/lib-commonjs/components/Headline/Headline.js.map +1 -0
  181. package/lib-commonjs/components/Headline/index.d.ts +1 -0
  182. package/lib-commonjs/components/Headline/index.js +10 -0
  183. package/lib-commonjs/components/Headline/index.js.map +1 -0
  184. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +7 -0
  185. package/lib-commonjs/components/LargeTitle/LargeTitle.js +32 -0
  186. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -0
  187. package/lib-commonjs/components/LargeTitle/index.d.ts +1 -0
  188. package/lib-commonjs/components/LargeTitle/index.js +10 -0
  189. package/lib-commonjs/components/LargeTitle/index.js.map +1 -0
  190. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +7 -0
  191. package/lib-commonjs/components/Subheadline/Subheadline.js +32 -0
  192. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -0
  193. package/lib-commonjs/components/Subheadline/index.d.ts +1 -0
  194. package/lib-commonjs/components/Subheadline/index.js +10 -0
  195. package/lib-commonjs/components/Subheadline/index.js.map +1 -0
  196. package/lib-commonjs/components/Text/Text.d.ts +6 -0
  197. package/lib-commonjs/components/Text/Text.js +26 -0
  198. package/lib-commonjs/components/Text/Text.js.map +1 -0
  199. package/lib-commonjs/components/Text/Text.types.d.ts +77 -0
  200. package/lib-commonjs/components/Text/Text.types.js +6 -0
  201. package/lib-commonjs/components/Text/Text.types.js.map +1 -0
  202. package/lib-commonjs/components/Text/index.d.ts +5 -0
  203. package/lib-commonjs/components/Text/index.js +18 -0
  204. package/lib-commonjs/components/Text/index.js.map +1 -0
  205. package/lib-commonjs/components/Text/renderText.d.ts +5 -0
  206. package/lib-commonjs/components/Text/renderText.js +25 -0
  207. package/lib-commonjs/components/Text/renderText.js.map +1 -0
  208. package/lib-commonjs/components/Text/useText.d.ts +12 -0
  209. package/lib-commonjs/components/Text/useText.js +60 -0
  210. package/lib-commonjs/components/Text/useText.js.map +1 -0
  211. package/lib-commonjs/components/Text/useTextStyles.d.ts +6 -0
  212. package/lib-commonjs/components/Text/useTextStyles.js +121 -0
  213. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -0
  214. package/lib-commonjs/components/Title1/Title1.d.ts +7 -0
  215. package/lib-commonjs/components/Title1/Title1.js +32 -0
  216. package/lib-commonjs/components/Title1/Title1.js.map +1 -0
  217. package/lib-commonjs/components/Title1/index.d.ts +1 -0
  218. package/lib-commonjs/components/Title1/index.js +10 -0
  219. package/lib-commonjs/components/Title1/index.js.map +1 -0
  220. package/lib-commonjs/components/Title2/Title2.d.ts +7 -0
  221. package/lib-commonjs/components/Title2/Title2.js +32 -0
  222. package/lib-commonjs/components/Title2/Title2.js.map +1 -0
  223. package/lib-commonjs/components/Title2/index.d.ts +1 -0
  224. package/lib-commonjs/components/Title2/index.js +10 -0
  225. package/lib-commonjs/components/Title2/index.js.map +1 -0
  226. package/lib-commonjs/components/Title3/Title3.d.ts +7 -0
  227. package/lib-commonjs/components/Title3/Title3.js +32 -0
  228. package/lib-commonjs/components/Title3/Title3.js.map +1 -0
  229. package/lib-commonjs/components/Title3/index.d.ts +1 -0
  230. package/lib-commonjs/components/Title3/index.js +10 -0
  231. package/lib-commonjs/components/Title3/index.js.map +1 -0
  232. package/lib-commonjs/components/wrapper.d.ts +8 -0
  233. package/lib-commonjs/components/wrapper.js +32 -0
  234. package/lib-commonjs/components/wrapper.js.map +1 -0
  235. package/lib-commonjs/index.d.ts +10 -0
  236. package/lib-commonjs/index.js +28 -0
  237. package/lib-commonjs/index.js.map +1 -0
  238. package/lib-commonjs/typographyStyles/index.d.ts +2 -0
  239. package/lib-commonjs/typographyStyles/index.js +11 -0
  240. package/lib-commonjs/typographyStyles/index.js.map +1 -0
  241. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +14 -0
  242. package/lib-commonjs/typographyStyles/typographyStyles.js +91 -0
  243. package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -0
  244. package/package.json +64 -0
@@ -0,0 +1,29 @@
1
+ import { __styles } from '@fluentui/react-make-styles';
2
+ import { typographyStyles } from '../../typographyStyles/index';
3
+ import { createWrapper } from '../wrapper';
4
+ export const captionClassName = 'fui-Caption';
5
+ /**
6
+ * Styles for the root slot
7
+ */
8
+
9
+ const useStyles = /*#__PURE__*/__styles({
10
+ "root": {
11
+ "Bahqtrf": "fk6fouc",
12
+ "Be2twd7": "fy9rknc",
13
+ "Bg96gwp": "fwrc4pm",
14
+ "Bhrd7zp": "figsok6"
15
+ }
16
+ }, {
17
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}"]
18
+ });
19
+ /**
20
+ * Text wrapper component for the Caption typography variant
21
+ */
22
+
23
+
24
+ export const Caption = /*#__PURE__*/createWrapper({
25
+ useStyles,
26
+ className: captionClassName,
27
+ displayName: 'Caption'
28
+ });
29
+ //# sourceMappingURL=Caption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,gBAAgB,GAAG,aAAzB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,OAAO,gBAAwC,aAAa,CAAC;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAD,CAAlE","sourceRoot":""}
@@ -0,0 +1 @@
1
+ export * from './Caption';
@@ -0,0 +1,2 @@
1
+ export * from './Caption';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Caption/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const displayClassName = "fui-Display";
4
+ /**
5
+ * Text wrapper component for the Display typography variant
6
+ */
7
+ export declare const Display: FunctionComponent<TextWrapperProps>;
@@ -0,0 +1,29 @@
1
+ import { __styles } from '@fluentui/react-make-styles';
2
+ import { typographyStyles } from '../../typographyStyles/index';
3
+ import { createWrapper } from '../wrapper';
4
+ export const displayClassName = 'fui-Display';
5
+ /**
6
+ * Styles for the root slot
7
+ */
8
+
9
+ const useStyles = /*#__PURE__*/__styles({
10
+ "root": {
11
+ "Bahqtrf": "fk6fouc",
12
+ "Be2twd7": "fpyltcb",
13
+ "Bg96gwp": "f1ivgwrt",
14
+ "Bhrd7zp": "fl43uef"
15
+ }
16
+ }, {
17
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
18
+ });
19
+ /**
20
+ * Text wrapper component for the Display typography variant
21
+ */
22
+
23
+
24
+ export const Display = /*#__PURE__*/createWrapper({
25
+ useStyles,
26
+ className: displayClassName,
27
+ displayName: 'Display'
28
+ });
29
+ //# sourceMappingURL=Display.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Display/Display.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,gBAAgB,GAAG,aAAzB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,OAAO,gBAAwC,aAAa,CAAC;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAD,CAAlE","sourceRoot":""}
@@ -0,0 +1 @@
1
+ export * from './Display';
@@ -0,0 +1,2 @@
1
+ export * from './Display';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Display/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const headlineClassName = "fui-Headline";
4
+ /**
5
+ * Text wrapper component for the Headline typography variant
6
+ */
7
+ export declare const Headline: FunctionComponent<TextWrapperProps>;
@@ -0,0 +1,29 @@
1
+ import { __styles } from '@fluentui/react-make-styles';
2
+ import { typographyStyles } from '../../typographyStyles/index';
3
+ import { createWrapper } from '../wrapper';
4
+ export const headlineClassName = 'fui-Headline';
5
+ /**
6
+ * Styles for the root slot
7
+ */
8
+
9
+ const useStyles = /*#__PURE__*/__styles({
10
+ "root": {
11
+ "Bahqtrf": "fk6fouc",
12
+ "Be2twd7": "f1pp30po",
13
+ "Bg96gwp": "f106mvju",
14
+ "Bhrd7zp": "fl43uef"
15
+ }
16
+ }, {
17
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
18
+ });
19
+ /**
20
+ * Text wrapper component for the Headline typography variant
21
+ */
22
+
23
+
24
+ export const Headline = /*#__PURE__*/createWrapper({
25
+ useStyles,
26
+ className: headlineClassName,
27
+ displayName: 'Headline'
28
+ });
29
+ //# sourceMappingURL=Headline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,iBAAiB,GAAG,cAA1B;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,QAAQ,gBAAwC,aAAa,CAAC;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,iBAF8D;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAD,CAAnE","sourceRoot":""}
@@ -0,0 +1 @@
1
+ export * from './Headline';
@@ -0,0 +1,2 @@
1
+ export * from './Headline';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Headline/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const largeTitleClassName = "fui-LargeTitle";
4
+ /**
5
+ * Text wrapper component for the Large Title typography variant
6
+ */
7
+ export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
@@ -0,0 +1,29 @@
1
+ import { __styles } from '@fluentui/react-make-styles';
2
+ import { typographyStyles } from '../../typographyStyles/index';
3
+ import { createWrapper } from '../wrapper';
4
+ export const largeTitleClassName = 'fui-LargeTitle';
5
+ /**
6
+ * Styles for the root slot
7
+ */
8
+
9
+ const useStyles = /*#__PURE__*/__styles({
10
+ "root": {
11
+ "Bahqtrf": "fk6fouc",
12
+ "Be2twd7": "f15afnhw",
13
+ "Bg96gwp": "fr3w3wp",
14
+ "Bhrd7zp": "fl43uef"
15
+ }
16
+ }, {
17
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
18
+ });
19
+ /**
20
+ * Text wrapper component for the Large Title typography variant
21
+ */
22
+
23
+
24
+ export const LargeTitle = /*#__PURE__*/createWrapper({
25
+ useStyles,
26
+ className: largeTitleClassName,
27
+ displayName: 'LargeTitle'
28
+ });
29
+ //# sourceMappingURL=LargeTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,mBAAmB,GAAG,gBAA5B;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,UAAU,gBAAwC,aAAa,CAAC;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,mBAFgE;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAD,CAArE","sourceRoot":""}
@@ -0,0 +1 @@
1
+ export * from './LargeTitle';
@@ -0,0 +1,2 @@
1
+ export * from './LargeTitle';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LargeTitle/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const subheadlineClassName = "fui-Subheadline";
4
+ /**
5
+ * Text wrapper component for the Subheadline typography variant
6
+ */
7
+ export declare const Subheadline: FunctionComponent<TextWrapperProps>;
@@ -0,0 +1,29 @@
1
+ import { __styles } from '@fluentui/react-make-styles';
2
+ import { typographyStyles } from '../../typographyStyles/index';
3
+ import { createWrapper } from '../wrapper';
4
+ export const subheadlineClassName = 'fui-Subheadline';
5
+ /**
6
+ * Styles for the root slot
7
+ */
8
+
9
+ const useStyles = /*#__PURE__*/__styles({
10
+ "root": {
11
+ "Bahqtrf": "fk6fouc",
12
+ "Be2twd7": "fod5ikn",
13
+ "Bg96gwp": "faaz57k",
14
+ "Bhrd7zp": "fl43uef"
15
+ }
16
+ }, {
17
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
18
+ });
19
+ /**
20
+ * Text wrapper component for the Subheadline typography variant
21
+ */
22
+
23
+
24
+ export const Subheadline = /*#__PURE__*/createWrapper({
25
+ useStyles,
26
+ className: subheadlineClassName,
27
+ displayName: 'Subheadline'
28
+ });
29
+ //# sourceMappingURL=Subheadline.js.map
@@ -0,0 +1 @@
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,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,WAAW,gBAAwC,aAAa,CAAC;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,oBAFiE;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAD,CAAtE","sourceRoot":""}
@@ -0,0 +1 @@
1
+ export * from './Subheadline';
@@ -0,0 +1,2 @@
1
+ export * from './Subheadline';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Subheadline/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { TextProps } from './Text.types';
2
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
+ /**
4
+ * Typography and styling abstraction component used to ensure consistency of text.
5
+ */
6
+ export declare const Text: ForwardRefComponent<TextProps>;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { useText } from './useText';
3
+ import { renderText } from './renderText';
4
+ import { useTextStyles } from './useTextStyles';
5
+ /**
6
+ * Typography and styling abstraction component used to ensure consistency of text.
7
+ */
8
+
9
+ export const Text = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useText(props, ref);
11
+ useTextStyles(state);
12
+ return renderText(state); // Work around some small mismatches in inferred types which don't matter in practice
13
+ });
14
+ Text.displayName = 'Text';
15
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
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;AAIA;;AAEG;;AACH,OAAO,MAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAQ,GAAR,CAArB;AAEA,EAAA,aAAa,CAAC,KAAD,CAAb;AAEA,SAAO,UAAU,CAAC,KAAD,CAAjB,CALkF,CAMlF;AACD,CAPmD,CAA7C;AASP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -0,0 +1,77 @@
1
+ import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
2
+ /**
3
+ * Text slots
4
+ */
5
+ export declare type TextSlots = {
6
+ root: IntrinsicShorthandProps<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
7
+ };
8
+ export declare type TextCommons = {
9
+ /**
10
+ * Wraps the text content on white spaces.
11
+ *
12
+ * @defaultValue true
13
+ */
14
+ wrap: boolean;
15
+ /**
16
+ * Truncate overflowing text for block displays.
17
+ *
18
+ * @defaultValue false
19
+ */
20
+ truncate: boolean;
21
+ /**
22
+ * Applies a block display for the content.
23
+ *
24
+ * @defaultValue false
25
+ */
26
+ block: boolean;
27
+ /**
28
+ * Applies the italic font style to the content.
29
+ *
30
+ * @defaultValue false
31
+ */
32
+ italic: boolean;
33
+ /**
34
+ * Applies the underline text decoration to the content.
35
+ *
36
+ * @defaultValue false
37
+ */
38
+ underline: boolean;
39
+ /**
40
+ * Applies the strikethrough text decoration to the content.
41
+ *
42
+ * @defaultValue false
43
+ */
44
+ strikethrough: boolean;
45
+ /**
46
+ * Applies font size and line height based on the theme tokens.
47
+ *
48
+ * @defaultValue 300
49
+ */
50
+ size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
51
+ /**
52
+ * Applies the font family to the content.
53
+ *
54
+ * @defaultValue base
55
+ */
56
+ font: 'base' | 'monospace' | 'numeric';
57
+ /**
58
+ * Applies font weight to the content.
59
+ *
60
+ * @defaultValue regular
61
+ */
62
+ weight: 'regular' | 'medium' | 'semibold';
63
+ /**
64
+ * Aligns text based on the parent container.
65
+ *
66
+ * @defaultValue start
67
+ */
68
+ align: 'start' | 'center' | 'end' | 'justify';
69
+ };
70
+ /**
71
+ * Text Props
72
+ */
73
+ export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
74
+ /**
75
+ * State used in rendering Text
76
+ */
77
+ export declare type TextState = ComponentState<TextSlots> & TextCommons;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Text.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './Text';
2
+ export * from './Text.types';
3
+ export * from './renderText';
4
+ export * from './useText';
5
+ export * from './useTextStyles';
@@ -0,0 +1,6 @@
1
+ export * from './Text';
2
+ export * from './Text.types';
3
+ export * from './renderText';
4
+ export * from './useText';
5
+ export * from './useTextStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TextState } from './Text.types';
2
+ /**
3
+ * Render the final JSX of Text
4
+ */
5
+ export declare const renderText: (state: TextState) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { getSlots } from '@fluentui/react-utilities';
3
+ /**
4
+ * Render the final JSX of Text
5
+ */
6
+
7
+ export const renderText = state => {
8
+ const {
9
+ slots,
10
+ slotProps
11
+ } = getSlots(state);
12
+ return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
13
+ };
14
+ //# sourceMappingURL=renderText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,UAAU,GAAI,KAAD,IAAqB;AAC7C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAY,KAAZ,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import type { TextProps, TextState } from './Text.types';
3
+ /**
4
+ * Create the state required to render Text.
5
+ *
6
+ * The returned state can be modified with hooks such as useTextStyles,
7
+ * before being passed to renderText.
8
+ *
9
+ * @param props - props from this instance of Text
10
+ * @param ref - reference to root HTMLElement of Text
11
+ */
12
+ export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
@@ -0,0 +1,50 @@
1
+ import { getNativeElementProps } from '@fluentui/react-utilities';
2
+ /**
3
+ * Create the state required to render Text.
4
+ *
5
+ * The returned state can be modified with hooks such as useTextStyles,
6
+ * before being passed to renderText.
7
+ *
8
+ * @param props - props from this instance of Text
9
+ * @param ref - reference to root HTMLElement of Text
10
+ */
11
+
12
+ export const useText = (props, ref) => {
13
+ var _a;
14
+
15
+ const {
16
+ wrap,
17
+ truncate,
18
+ block,
19
+ italic,
20
+ underline,
21
+ strikethrough,
22
+ size,
23
+ font,
24
+ weight,
25
+ align
26
+ } = props;
27
+ const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
28
+ const state = {
29
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
30
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
31
+ block: block !== null && block !== void 0 ? block : false,
32
+ italic: italic !== null && italic !== void 0 ? italic : false,
33
+ underline: underline !== null && underline !== void 0 ? underline : false,
34
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
35
+ size: size !== null && size !== void 0 ? size : 300,
36
+ font: font !== null && font !== void 0 ? font : 'base',
37
+ weight: weight !== null && weight !== void 0 ? weight : 'regular',
38
+ align: align !== null && align !== void 0 ? align : 'start',
39
+ components: {
40
+ root: 'span'
41
+ },
42
+ root: getNativeElementProps(as, {
43
+ ref,
44
+ ...props,
45
+ as
46
+ })
47
+ };
48
+ return state;
49
+ };
50
+ //# sourceMappingURL=useText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,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,qBAAqB,CAAC,EAAD,EAAK;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAAL;AAdJ,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM","sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ import type { TextState } from './Text.types';
2
+ export declare const textClassName = "fui-Text";
3
+ /**
4
+ * Apply styling to the Text slots based on the state
5
+ */
6
+ export declare const useTextStyles: (state: TextState) => TextState;
@@ -0,0 +1,111 @@
1
+ import { __styles, mergeClasses } from '@fluentui/react-make-styles';
2
+ export const textClassName = 'fui-Text';
3
+ /**
4
+ * Styles for the root slot
5
+ */
6
+
7
+ const useStyles = /*#__PURE__*/__styles({
8
+ "root": {
9
+ "Bahqtrf": "fk6fouc",
10
+ "Be2twd7": "fkhj508",
11
+ "Bg96gwp": "f1i3iumi",
12
+ "Bhrd7zp": "figsok6",
13
+ "fsow6f": "fpgzoln",
14
+ "mc9l5x": "f1w7gpdv",
15
+ "Huce71": "f6juhto",
16
+ "Bpg54ce": "f1gl81tg",
17
+ "ygn44y": "f2jf649"
18
+ },
19
+ "nowrap": {
20
+ "Huce71": "fz5stix",
21
+ "Bpg54ce": "f1a3p1vp"
22
+ },
23
+ "truncate": {
24
+ "ygn44y": "f1cmbuwj"
25
+ },
26
+ "block": {
27
+ "mc9l5x": "ftgm304"
28
+ },
29
+ "italic": {
30
+ "B80ckks": "f1j4dglz"
31
+ },
32
+ "underline": {
33
+ "dwov6y": "fctto54"
34
+ },
35
+ "strikethrough": {
36
+ "dwov6y": "f1y2xhd0"
37
+ },
38
+ "strikethroughUnderline": {
39
+ "dwov6y": "f13legbo"
40
+ },
41
+ "base100": {
42
+ "Be2twd7": "f13mqy1h",
43
+ "Bg96gwp": "fcpl73t"
44
+ },
45
+ "base200": {
46
+ "Be2twd7": "fy9rknc",
47
+ "Bg96gwp": "fwrc4pm"
48
+ },
49
+ "base400": {
50
+ "Be2twd7": "fod5ikn",
51
+ "Bg96gwp": "faaz57k"
52
+ },
53
+ "base500": {
54
+ "Be2twd7": "f1pp30po",
55
+ "Bg96gwp": "f106mvju"
56
+ },
57
+ "base600": {
58
+ "Be2twd7": "f1x0m3f5",
59
+ "Bg96gwp": "fb86gi6"
60
+ },
61
+ "hero700": {
62
+ "Be2twd7": "fojgt09",
63
+ "Bg96gwp": "fcen8rp"
64
+ },
65
+ "hero800": {
66
+ "Be2twd7": "fccw675",
67
+ "Bg96gwp": "f1ebx5kk"
68
+ },
69
+ "hero900": {
70
+ "Be2twd7": "f15afnhw",
71
+ "Bg96gwp": "fr3w3wp"
72
+ },
73
+ "hero1000": {
74
+ "Be2twd7": "fpyltcb",
75
+ "Bg96gwp": "f1ivgwrt"
76
+ },
77
+ "monospace": {
78
+ "Bahqtrf": "f1fedwem"
79
+ },
80
+ "numeric": {
81
+ "Bahqtrf": "f1uq0ln5"
82
+ },
83
+ "weightMedium": {
84
+ "Bhrd7zp": "fdj6btp"
85
+ },
86
+ "weightSemibold": {
87
+ "Bhrd7zp": "fl43uef"
88
+ },
89
+ "alignCenter": {
90
+ "fsow6f": "f17mccla"
91
+ },
92
+ "alignEnd": {
93
+ "fsow6f": "f12ymhq5"
94
+ },
95
+ "alignJustify": {
96
+ "fsow6f": "f1j59e10"
97
+ }
98
+ }, {
99
+ "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;}"]
100
+ });
101
+ /**
102
+ * Apply styling to the Text slots based on the state
103
+ */
104
+
105
+
106
+ export const useTextStyles = state => {
107
+ const styles = useStyles();
108
+ state.root.className = mergeClasses(textClassName, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
109
+ return state;
110
+ };
111
+ //# sourceMappingURL=useTextStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA,OAAO,MAAM,aAAa,GAAG,UAAtB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6FA;;AAEG;;;AACH,OAAO,MAAM,aAAa,GAAI,KAAD,IAAgC;AAC3D,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,aADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,IAAN,KAAe,KAAf,IAAwB,MAAM,CAAC,MAHE,EAIjC,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJQ,EAKjC,KAAK,CAAC,KAAN,IAAe,MAAM,CAAC,KALW,EAMjC,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MANU,EAOjC,KAAK,CAAC,SAAN,IAAmB,MAAM,CAAC,SAPO,EAQjC,KAAK,CAAC,aAAN,IAAuB,MAAM,CAAC,aARG,EASjC,KAAK,CAAC,SAAN,IAAmB,KAAK,CAAC,aAAzB,IAA0C,MAAM,CAAC,sBAThB,EAUjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAVI,EAWjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAXI,EAYjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAZI,EAajC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAbI,EAcjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAdI,EAejC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAfI,EAgBjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAhBI,EAiBjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAjBI,EAkBjC,KAAK,CAAC,IAAN,KAAe,IAAf,IAAuB,MAAM,CAAC,QAlBG,EAmBjC,KAAK,CAAC,IAAN,KAAe,WAAf,IAA8B,MAAM,CAAC,SAnBJ,EAoBjC,KAAK,CAAC,IAAN,KAAe,SAAf,IAA4B,MAAM,CAAC,OApBF,EAqBjC,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YArBH,EAsBjC,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cAtBL,EAuBjC,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAvBF,EAwBjC,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBC,EAyBjC,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBH,EA0BjC,KAAK,CAAC,IAAN,CAAW,SA1BsB,CAAnC;AA6BA,SAAO,KAAP;AACD,CAjCM","sourceRoot":""}
@@ -0,0 +1,7 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import { TextWrapperProps } from '../wrapper';
3
+ export declare const title1ClassName = "fui-Title1";
4
+ /**
5
+ * Text wrapper component for the Title 1 typography variant
6
+ */
7
+ export declare const Title1: FunctionComponent<TextWrapperProps>;