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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/CHANGELOG.json +368 -10
  2. package/CHANGELOG.md +174 -54
  3. package/README.md +4 -4
  4. package/dist/{react-text.d.ts → index.d.ts} +61 -56
  5. package/{lib → dist}/tsdoc-metadata.json +0 -0
  6. package/lib/Body1.js +2 -0
  7. package/lib/Body1.js.map +1 -0
  8. package/lib/Caption1.js +2 -0
  9. package/lib/Caption1.js.map +1 -0
  10. package/lib/Caption2.js +2 -0
  11. package/lib/Caption2.js.map +1 -0
  12. package/lib/Subtitle1.js +2 -0
  13. package/lib/Subtitle1.js.map +1 -0
  14. package/lib/Subtitle2.js +2 -0
  15. package/lib/Subtitle2.js.map +1 -0
  16. package/lib/components/Body1/Body1.js +31 -0
  17. package/lib/components/Body1/Body1.js.map +1 -0
  18. package/lib/components/Body1/index.js +2 -0
  19. package/lib/components/Body1/index.js.map +1 -0
  20. package/lib/components/Caption1/Caption1.js +31 -0
  21. package/lib/components/Caption1/Caption1.js.map +1 -0
  22. package/lib/components/Caption1/index.js +2 -0
  23. package/lib/components/Caption1/index.js.map +1 -0
  24. package/lib/components/Caption2/Caption2.js +31 -0
  25. package/lib/components/Caption2/Caption2.js.map +1 -0
  26. package/lib/components/Caption2/index.js +2 -0
  27. package/lib/components/Caption2/index.js.map +1 -0
  28. package/lib/components/Display/Display.js +8 -6
  29. package/lib/components/Display/Display.js.map +1 -1
  30. package/lib/components/LargeTitle/LargeTitle.js +8 -6
  31. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  32. package/lib/components/Subtitle1/Subtitle1.js +31 -0
  33. package/lib/components/Subtitle1/Subtitle1.js.map +1 -0
  34. package/lib/components/Subtitle1/index.js +2 -0
  35. package/lib/components/Subtitle1/index.js.map +1 -0
  36. package/lib/components/Subtitle2/Subtitle2.js +31 -0
  37. package/lib/components/Subtitle2/Subtitle2.js.map +1 -0
  38. package/lib/components/Subtitle2/index.js +2 -0
  39. package/lib/components/Subtitle2/index.js.map +1 -0
  40. package/lib/components/Text/Text.js.map +1 -1
  41. package/lib/components/Text/Text.types.js.map +1 -1
  42. package/lib/components/Text/renderText.js.map +1 -1
  43. package/lib/components/Text/useText.js +6 -6
  44. package/lib/components/Text/useText.js.map +1 -1
  45. package/lib/components/Text/useTextStyles.js +4 -2
  46. package/lib/components/Text/useTextStyles.js.map +1 -1
  47. package/lib/components/Title1/Title1.js +8 -6
  48. package/lib/components/Title1/Title1.js.map +1 -1
  49. package/lib/components/Title2/Title2.js +8 -6
  50. package/lib/components/Title2/Title2.js.map +1 -1
  51. package/lib/components/Title3/Title3.js +8 -6
  52. package/lib/components/Title3/Title3.js.map +1 -1
  53. package/lib/components/wrapper.js.map +1 -1
  54. package/lib/index.js +11 -10
  55. package/lib/index.js.map +1 -1
  56. package/lib-commonjs/{Body.js → Body1.js} +2 -2
  57. package/lib-commonjs/Body1.js.map +1 -0
  58. package/lib-commonjs/{Headline.js → Caption1.js} +2 -2
  59. package/lib-commonjs/Caption1.js.map +1 -0
  60. package/lib-commonjs/{Caption.js → Caption2.js} +2 -2
  61. package/lib-commonjs/Caption2.js.map +1 -0
  62. package/lib-commonjs/Subtitle1.js +10 -0
  63. package/lib-commonjs/Subtitle1.js.map +1 -0
  64. package/lib-commonjs/Subtitle2.js +10 -0
  65. package/lib-commonjs/Subtitle2.js.map +1 -0
  66. package/lib-commonjs/components/Body1/Body1.js +41 -0
  67. package/lib-commonjs/components/Body1/Body1.js.map +1 -0
  68. package/lib-commonjs/components/{Body → Body1}/index.js +1 -1
  69. package/lib-commonjs/components/Body1/index.js.map +1 -0
  70. package/lib-commonjs/components/Caption1/Caption1.js +41 -0
  71. package/lib-commonjs/components/Caption1/Caption1.js.map +1 -0
  72. package/lib-commonjs/components/{Headline → Caption1}/index.js +1 -1
  73. package/lib-commonjs/components/Caption1/index.js.map +1 -0
  74. package/lib-commonjs/components/Caption2/Caption2.js +41 -0
  75. package/lib-commonjs/components/Caption2/Caption2.js.map +1 -0
  76. package/lib-commonjs/components/{Caption → Caption2}/index.js +1 -1
  77. package/lib-commonjs/components/Caption2/index.js.map +1 -0
  78. package/lib-commonjs/components/Display/Display.js +17 -6
  79. package/lib-commonjs/components/Display/Display.js.map +1 -1
  80. package/lib-commonjs/components/LargeTitle/LargeTitle.js +17 -6
  81. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  82. package/lib-commonjs/components/Subtitle1/Subtitle1.js +41 -0
  83. package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -0
  84. package/lib-commonjs/components/{Subheadline → Subtitle1}/index.js +1 -1
  85. package/lib-commonjs/components/Subtitle1/index.js.map +1 -0
  86. package/lib-commonjs/components/Subtitle2/Subtitle2.js +41 -0
  87. package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -0
  88. package/lib-commonjs/components/Subtitle2/index.js +10 -0
  89. package/lib-commonjs/components/Subtitle2/index.js.map +1 -0
  90. package/lib-commonjs/components/Text/Text.js.map +1 -1
  91. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  92. package/lib-commonjs/components/Text/useText.js +6 -6
  93. package/lib-commonjs/components/Text/useText.js.map +1 -1
  94. package/lib-commonjs/components/Text/useTextStyles.js +5 -3
  95. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  96. package/lib-commonjs/components/Title1/Title1.js +17 -6
  97. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  98. package/lib-commonjs/components/Title2/Title2.js +17 -6
  99. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  100. package/lib-commonjs/components/Title3/Title3.js +17 -6
  101. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  102. package/lib-commonjs/components/wrapper.js.map +1 -1
  103. package/lib-commonjs/index.js +173 -11
  104. package/lib-commonjs/index.js.map +1 -1
  105. package/package.json +17 -21
  106. package/lib/Body.d.ts +0 -1
  107. package/lib/Body.js +0 -2
  108. package/lib/Body.js.map +0 -1
  109. package/lib/Caption.d.ts +0 -1
  110. package/lib/Caption.js +0 -2
  111. package/lib/Caption.js.map +0 -1
  112. package/lib/Display.d.ts +0 -1
  113. package/lib/Headline.d.ts +0 -1
  114. package/lib/Headline.js +0 -2
  115. package/lib/Headline.js.map +0 -1
  116. package/lib/LargeTitle.d.ts +0 -1
  117. package/lib/Subheadline.d.ts +0 -1
  118. package/lib/Subheadline.js +0 -2
  119. package/lib/Subheadline.js.map +0 -1
  120. package/lib/Text.d.ts +0 -1
  121. package/lib/Title1.d.ts +0 -1
  122. package/lib/Title2.d.ts +0 -1
  123. package/lib/Title3.d.ts +0 -1
  124. package/lib/components/Body/Body.d.ts +0 -7
  125. package/lib/components/Body/Body.js +0 -29
  126. package/lib/components/Body/Body.js.map +0 -1
  127. package/lib/components/Body/index.d.ts +0 -1
  128. package/lib/components/Body/index.js +0 -2
  129. package/lib/components/Body/index.js.map +0 -1
  130. package/lib/components/Caption/Caption.d.ts +0 -7
  131. package/lib/components/Caption/Caption.js +0 -29
  132. package/lib/components/Caption/Caption.js.map +0 -1
  133. package/lib/components/Caption/index.d.ts +0 -1
  134. package/lib/components/Caption/index.js +0 -2
  135. package/lib/components/Caption/index.js.map +0 -1
  136. package/lib/components/Display/Display.d.ts +0 -7
  137. package/lib/components/Display/index.d.ts +0 -1
  138. package/lib/components/Headline/Headline.d.ts +0 -7
  139. package/lib/components/Headline/Headline.js +0 -29
  140. package/lib/components/Headline/Headline.js.map +0 -1
  141. package/lib/components/Headline/index.d.ts +0 -1
  142. package/lib/components/Headline/index.js +0 -2
  143. package/lib/components/Headline/index.js.map +0 -1
  144. package/lib/components/LargeTitle/LargeTitle.d.ts +0 -7
  145. package/lib/components/LargeTitle/index.d.ts +0 -1
  146. package/lib/components/Subheadline/Subheadline.d.ts +0 -7
  147. package/lib/components/Subheadline/Subheadline.js +0 -29
  148. package/lib/components/Subheadline/Subheadline.js.map +0 -1
  149. package/lib/components/Subheadline/index.d.ts +0 -1
  150. package/lib/components/Subheadline/index.js +0 -2
  151. package/lib/components/Subheadline/index.js.map +0 -1
  152. package/lib/components/Text/Text.d.ts +0 -6
  153. package/lib/components/Text/Text.types.d.ts +0 -78
  154. package/lib/components/Text/index.d.ts +0 -5
  155. package/lib/components/Text/renderText.d.ts +0 -5
  156. package/lib/components/Text/useText.d.ts +0 -12
  157. package/lib/components/Text/useTextStyles.d.ts +0 -6
  158. package/lib/components/Title1/Title1.d.ts +0 -7
  159. package/lib/components/Title1/index.d.ts +0 -1
  160. package/lib/components/Title2/Title2.d.ts +0 -7
  161. package/lib/components/Title2/index.d.ts +0 -1
  162. package/lib/components/Title3/Title3.d.ts +0 -7
  163. package/lib/components/Title3/index.d.ts +0 -1
  164. package/lib/components/wrapper.d.ts +0 -8
  165. package/lib/index.d.ts +0 -10
  166. package/lib/typographyStyles/index.d.ts +0 -2
  167. package/lib/typographyStyles/index.js +0 -3
  168. package/lib/typographyStyles/index.js.map +0 -1
  169. package/lib/typographyStyles/typographyStyles.d.ts +0 -13
  170. package/lib/typographyStyles/typographyStyles.js +0 -60
  171. package/lib/typographyStyles/typographyStyles.js.map +0 -1
  172. package/lib-commonjs/Body.d.ts +0 -1
  173. package/lib-commonjs/Body.js.map +0 -1
  174. package/lib-commonjs/Caption.d.ts +0 -1
  175. package/lib-commonjs/Caption.js.map +0 -1
  176. package/lib-commonjs/Display.d.ts +0 -1
  177. package/lib-commonjs/Headline.d.ts +0 -1
  178. package/lib-commonjs/Headline.js.map +0 -1
  179. package/lib-commonjs/LargeTitle.d.ts +0 -1
  180. package/lib-commonjs/Subheadline.d.ts +0 -1
  181. package/lib-commonjs/Subheadline.js +0 -10
  182. package/lib-commonjs/Subheadline.js.map +0 -1
  183. package/lib-commonjs/Text.d.ts +0 -1
  184. package/lib-commonjs/Title1.d.ts +0 -1
  185. package/lib-commonjs/Title2.d.ts +0 -1
  186. package/lib-commonjs/Title3.d.ts +0 -1
  187. package/lib-commonjs/components/Body/Body.d.ts +0 -7
  188. package/lib-commonjs/components/Body/Body.js +0 -30
  189. package/lib-commonjs/components/Body/Body.js.map +0 -1
  190. package/lib-commonjs/components/Body/index.d.ts +0 -1
  191. package/lib-commonjs/components/Body/index.js.map +0 -1
  192. package/lib-commonjs/components/Caption/Caption.d.ts +0 -7
  193. package/lib-commonjs/components/Caption/Caption.js +0 -30
  194. package/lib-commonjs/components/Caption/Caption.js.map +0 -1
  195. package/lib-commonjs/components/Caption/index.d.ts +0 -1
  196. package/lib-commonjs/components/Caption/index.js.map +0 -1
  197. package/lib-commonjs/components/Display/Display.d.ts +0 -7
  198. package/lib-commonjs/components/Display/index.d.ts +0 -1
  199. package/lib-commonjs/components/Headline/Headline.d.ts +0 -7
  200. package/lib-commonjs/components/Headline/Headline.js +0 -30
  201. package/lib-commonjs/components/Headline/Headline.js.map +0 -1
  202. package/lib-commonjs/components/Headline/index.d.ts +0 -1
  203. package/lib-commonjs/components/Headline/index.js.map +0 -1
  204. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -7
  205. package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
  206. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -7
  207. package/lib-commonjs/components/Subheadline/Subheadline.js +0 -30
  208. package/lib-commonjs/components/Subheadline/Subheadline.js.map +0 -1
  209. package/lib-commonjs/components/Subheadline/index.d.ts +0 -1
  210. package/lib-commonjs/components/Subheadline/index.js.map +0 -1
  211. package/lib-commonjs/components/Text/Text.d.ts +0 -6
  212. package/lib-commonjs/components/Text/Text.types.d.ts +0 -78
  213. package/lib-commonjs/components/Text/index.d.ts +0 -5
  214. package/lib-commonjs/components/Text/renderText.d.ts +0 -5
  215. package/lib-commonjs/components/Text/useText.d.ts +0 -12
  216. package/lib-commonjs/components/Text/useTextStyles.d.ts +0 -6
  217. package/lib-commonjs/components/Title1/Title1.d.ts +0 -7
  218. package/lib-commonjs/components/Title1/index.d.ts +0 -1
  219. package/lib-commonjs/components/Title2/Title2.d.ts +0 -7
  220. package/lib-commonjs/components/Title2/index.d.ts +0 -1
  221. package/lib-commonjs/components/Title3/Title3.d.ts +0 -7
  222. package/lib-commonjs/components/Title3/index.d.ts +0 -1
  223. package/lib-commonjs/components/wrapper.d.ts +0 -8
  224. package/lib-commonjs/index.d.ts +0 -10
  225. package/lib-commonjs/typographyStyles/index.d.ts +0 -2
  226. package/lib-commonjs/typographyStyles/index.js +0 -11
  227. package/lib-commonjs/typographyStyles/index.js.map +0 -1
  228. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +0 -13
  229. package/lib-commonjs/typographyStyles/typographyStyles.js +0 -68
  230. package/lib-commonjs/typographyStyles/typographyStyles.js.map +0 -1
@@ -1,78 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- /**
3
- * Text slots
4
- */
5
- export declare type TextSlots = {
6
- root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
7
- };
8
- 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;
78
- export {};
@@ -1,5 +0,0 @@
1
- export * from './Text';
2
- export * from './Text.types';
3
- export * from './renderText';
4
- export * from './useText';
5
- export * from './useTextStyles';
@@ -1,5 +0,0 @@
1
- import type { TextState } from './Text.types';
2
- /**
3
- * Render the final JSX of Text
4
- */
5
- export declare const renderText_unstable: (state: TextState) => JSX.Element;
@@ -1,12 +0,0 @@
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_unstable,
7
- * before being passed to renderText_unstable.
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_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
@@ -1,6 +0,0 @@
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_unstable: (state: TextState) => TextState;
@@ -1,7 +0,0 @@
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>;
@@ -1 +0,0 @@
1
- export * from './Title1';
@@ -1,7 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- export declare const title2ClassName = "fui-Title2";
4
- /**
5
- * Text wrapper component for the Title 2 typography variant
6
- */
7
- export declare const Title2: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Title2';
@@ -1,7 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- export declare const title3ClassName = "fui-Title3";
4
- /**
5
- * Text wrapper component for the Title 3 typography variant
6
- */
7
- export declare const Title3: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Title3';
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { TextProps } from '../Text';
3
- export declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
4
- export declare function createWrapper(options: {
5
- className: string;
6
- displayName: string;
7
- useStyles: () => Record<'root', string>;
8
- }): React.FunctionComponent<TextWrapperProps>;
@@ -1,10 +0,0 @@
1
- export * from './Text';
2
- export * from './Display';
3
- export * from './LargeTitle';
4
- export * from './Title1';
5
- export * from './Title2';
6
- export * from './Title3';
7
- export * from './Headline';
8
- export * from './Subheadline';
9
- export * from './Body';
10
- export * from './Caption';
@@ -1,2 +0,0 @@
1
- import * as typographyStyles from './typographyStyles';
2
- export { typographyStyles };
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.typographyStyles = void 0;
7
-
8
- const typographyStyles = /*#__PURE__*/require("./typographyStyles");
9
-
10
- exports.typographyStyles = typographyStyles;
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["typographyStyles/index.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,gBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACS,OAAA,CAAA,gBAAA,GAAA,gBAAA","sourcesContent":["import * as typographyStyles from './typographyStyles';\nexport { typographyStyles };\n"],"sourceRoot":"../src/"}
@@ -1,13 +0,0 @@
1
- import type { GriffelStyle } from '@griffel/react';
2
- /**
3
- * Make-styles rules for the typography variants
4
- */
5
- export declare const caption: GriffelStyle;
6
- export declare const body: GriffelStyle;
7
- export declare const subheadline: GriffelStyle;
8
- export declare const headline: GriffelStyle;
9
- export declare const title3: GriffelStyle;
10
- export declare const title2: GriffelStyle;
11
- export declare const title1: GriffelStyle;
12
- export declare const largeTitle: GriffelStyle;
13
- export declare const display: GriffelStyle;
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.display = exports.largeTitle = exports.title1 = exports.title2 = exports.title3 = exports.headline = exports.subheadline = exports.body = exports.caption = void 0;
7
-
8
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
9
- /**
10
- * Make-styles rules for the typography variants
11
- */
12
-
13
-
14
- exports.caption = {
15
- fontFamily: react_theme_1.tokens.fontFamilyBase,
16
- fontSize: react_theme_1.tokens.fontSizeBase200,
17
- lineHeight: react_theme_1.tokens.lineHeightBase200,
18
- fontWeight: react_theme_1.tokens.fontWeightRegular
19
- };
20
- exports.body = {
21
- fontFamily: react_theme_1.tokens.fontFamilyBase,
22
- fontSize: react_theme_1.tokens.fontSizeBase300,
23
- lineHeight: react_theme_1.tokens.lineHeightBase300,
24
- fontWeight: react_theme_1.tokens.fontWeightRegular
25
- };
26
- exports.subheadline = {
27
- fontFamily: react_theme_1.tokens.fontFamilyBase,
28
- fontSize: react_theme_1.tokens.fontSizeBase400,
29
- lineHeight: react_theme_1.tokens.lineHeightBase400,
30
- fontWeight: react_theme_1.tokens.fontWeightSemibold
31
- };
32
- exports.headline = {
33
- fontFamily: react_theme_1.tokens.fontFamilyBase,
34
- fontSize: react_theme_1.tokens.fontSizeBase500,
35
- lineHeight: react_theme_1.tokens.lineHeightBase500,
36
- fontWeight: react_theme_1.tokens.fontWeightSemibold
37
- };
38
- exports.title3 = {
39
- fontFamily: react_theme_1.tokens.fontFamilyBase,
40
- fontSize: react_theme_1.tokens.fontSizeBase600,
41
- lineHeight: react_theme_1.tokens.lineHeightBase600,
42
- fontWeight: react_theme_1.tokens.fontWeightSemibold
43
- };
44
- exports.title2 = {
45
- fontFamily: react_theme_1.tokens.fontFamilyBase,
46
- fontSize: react_theme_1.tokens.fontSizeHero700,
47
- lineHeight: react_theme_1.tokens.lineHeightHero700,
48
- fontWeight: react_theme_1.tokens.fontWeightSemibold
49
- };
50
- exports.title1 = {
51
- fontFamily: react_theme_1.tokens.fontFamilyBase,
52
- fontSize: react_theme_1.tokens.fontSizeHero800,
53
- lineHeight: react_theme_1.tokens.lineHeightHero800,
54
- fontWeight: react_theme_1.tokens.fontWeightSemibold
55
- };
56
- exports.largeTitle = {
57
- fontFamily: react_theme_1.tokens.fontFamilyBase,
58
- fontSize: react_theme_1.tokens.fontSizeHero900,
59
- lineHeight: react_theme_1.tokens.lineHeightHero900,
60
- fontWeight: react_theme_1.tokens.fontWeightSemibold
61
- };
62
- exports.display = {
63
- fontFamily: react_theme_1.tokens.fontFamilyBase,
64
- fontSize: react_theme_1.tokens.fontSizeHero1000,
65
- lineHeight: react_theme_1.tokens.lineHeightHero1000,
66
- fontWeight: react_theme_1.tokens.fontWeightSemibold
67
- };
68
- //# sourceMappingURL=typographyStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["typographyStyles/typographyStyles.ts"],"names":[],"mappings":"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","sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport type { GriffelStyle } from '@griffel/react';\n\n/**\n * Make-styles rules for the typography variants\n */\nexport const caption: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n fontWeight: tokens.fontWeightRegular,\n};\nexport const body: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n};\nexport const subheadline: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const headline: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const title3: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const title2: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const title1: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const largeTitle: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const display: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n fontWeight: tokens.fontWeightSemibold,\n};\n"],"sourceRoot":"../src/"}