@fluentui/react-text 9.0.0-rc.9 → 9.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 (135) hide show
  1. package/CHANGELOG.json +131 -1
  2. package/CHANGELOG.md +51 -2
  3. package/README.md +4 -4
  4. package/dist/index.d.ts +37 -81
  5. package/lib/Body1.js +2 -0
  6. package/lib/Body1.js.map +1 -0
  7. package/lib/Caption1.js +2 -0
  8. package/lib/Caption1.js.map +1 -0
  9. package/lib/Caption2.js +2 -0
  10. package/lib/Caption2.js.map +1 -0
  11. package/lib/Subtitle1.js +2 -0
  12. package/lib/Subtitle1.js.map +1 -0
  13. package/lib/Subtitle2.js +2 -0
  14. package/lib/Subtitle2.js.map +1 -0
  15. package/lib/components/{Body/Body.js → Body1/Body1.js} +7 -12
  16. package/lib/components/Body1/Body1.js.map +1 -0
  17. package/lib/components/Body1/index.js +2 -0
  18. package/lib/components/Body1/index.js.map +1 -0
  19. package/lib/components/{Caption/Caption.js → Caption1/Caption1.js} +7 -12
  20. package/lib/components/Caption1/Caption1.js.map +1 -0
  21. package/lib/components/Caption1/index.js +2 -0
  22. package/lib/components/Caption1/index.js.map +1 -0
  23. package/lib/components/Caption2/Caption2.js +31 -0
  24. package/lib/components/Caption2/Caption2.js.map +1 -0
  25. package/lib/components/Caption2/index.js +2 -0
  26. package/lib/components/Caption2/index.js.map +1 -0
  27. package/lib/components/Display/Display.js +0 -5
  28. package/lib/components/Display/Display.js.map +1 -1
  29. package/lib/components/LargeTitle/LargeTitle.js +0 -5
  30. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  31. package/lib/components/{Headline/Headline.js → Subtitle1/Subtitle1.js} +7 -12
  32. package/lib/components/Subtitle1/Subtitle1.js.map +1 -0
  33. package/lib/components/Subtitle1/index.js +2 -0
  34. package/lib/components/Subtitle1/index.js.map +1 -0
  35. package/lib/components/{Subheadline/Subheadline.js → Subtitle2/Subtitle2.js} +7 -12
  36. package/lib/components/Subtitle2/Subtitle2.js.map +1 -0
  37. package/lib/components/Subtitle2/index.js +2 -0
  38. package/lib/components/Subtitle2/index.js.map +1 -0
  39. package/lib/components/Text/Text.js.map +1 -1
  40. package/lib/components/Text/Text.types.js.map +1 -1
  41. package/lib/components/Text/renderText.js.map +1 -1
  42. package/lib/components/Text/useText.js.map +1 -1
  43. package/lib/components/Text/useTextStyles.js +0 -5
  44. package/lib/components/Text/useTextStyles.js.map +1 -1
  45. package/lib/components/Title1/Title1.js +0 -5
  46. package/lib/components/Title1/Title1.js.map +1 -1
  47. package/lib/components/Title2/Title2.js +0 -5
  48. package/lib/components/Title2/Title2.js.map +1 -1
  49. package/lib/components/Title3/Title3.js +0 -5
  50. package/lib/components/Title3/Title3.js.map +1 -1
  51. package/lib/components/wrapper.js.map +1 -1
  52. package/lib/index.js +11 -11
  53. package/lib/index.js.map +1 -1
  54. package/lib-commonjs/{Body.js → Body1.js} +2 -2
  55. package/lib-commonjs/Body1.js.map +1 -0
  56. package/lib-commonjs/{Headline.js → Caption1.js} +2 -2
  57. package/lib-commonjs/Caption1.js.map +1 -0
  58. package/lib-commonjs/{Caption.js → Caption2.js} +2 -2
  59. package/lib-commonjs/Caption2.js.map +1 -0
  60. package/lib-commonjs/Subtitle1.js +10 -0
  61. package/lib-commonjs/Subtitle1.js.map +1 -0
  62. package/lib-commonjs/Subtitle2.js +10 -0
  63. package/lib-commonjs/Subtitle2.js.map +1 -0
  64. package/lib-commonjs/components/{Body/Body.js → Body1/Body1.js} +8 -13
  65. package/lib-commonjs/components/Body1/Body1.js.map +1 -0
  66. package/lib-commonjs/components/{Body → Body1}/index.js +1 -1
  67. package/lib-commonjs/components/Body1/index.js.map +1 -0
  68. package/lib-commonjs/components/{Caption/Caption.js → Caption1/Caption1.js} +8 -13
  69. package/lib-commonjs/components/Caption1/Caption1.js.map +1 -0
  70. package/lib-commonjs/components/{Caption → Caption1}/index.js +1 -1
  71. package/lib-commonjs/components/Caption1/index.js.map +1 -0
  72. package/lib-commonjs/components/Caption2/Caption2.js +41 -0
  73. package/lib-commonjs/components/Caption2/Caption2.js.map +1 -0
  74. package/lib-commonjs/components/{Headline → Caption2}/index.js +1 -1
  75. package/lib-commonjs/components/Caption2/index.js.map +1 -0
  76. package/lib-commonjs/components/Display/Display.js +1 -6
  77. package/lib-commonjs/components/Display/Display.js.map +1 -1
  78. package/lib-commonjs/components/LargeTitle/LargeTitle.js +1 -6
  79. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  80. package/lib-commonjs/components/{Headline/Headline.js → Subtitle1/Subtitle1.js} +8 -13
  81. package/lib-commonjs/components/Subtitle1/Subtitle1.js.map +1 -0
  82. package/lib-commonjs/components/{Subheadline → Subtitle1}/index.js +1 -1
  83. package/lib-commonjs/components/Subtitle1/index.js.map +1 -0
  84. package/lib-commonjs/components/{Subheadline/Subheadline.js → Subtitle2/Subtitle2.js} +8 -13
  85. package/lib-commonjs/components/Subtitle2/Subtitle2.js.map +1 -0
  86. package/lib-commonjs/components/Subtitle2/index.js +10 -0
  87. package/lib-commonjs/components/Subtitle2/index.js.map +1 -0
  88. package/lib-commonjs/components/Text/Text.js.map +1 -1
  89. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  90. package/lib-commonjs/components/Text/useText.js.map +1 -1
  91. package/lib-commonjs/components/Text/useTextStyles.js +1 -6
  92. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  93. package/lib-commonjs/components/Title1/Title1.js +1 -6
  94. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  95. package/lib-commonjs/components/Title2/Title2.js +1 -6
  96. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  97. package/lib-commonjs/components/Title3/Title3.js +1 -6
  98. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  99. package/lib-commonjs/components/wrapper.js.map +1 -1
  100. package/lib-commonjs/index.js +30 -76
  101. package/lib-commonjs/index.js.map +1 -1
  102. package/package.json +6 -8
  103. package/lib/Body.js +0 -2
  104. package/lib/Body.js.map +0 -1
  105. package/lib/Caption.js +0 -2
  106. package/lib/Caption.js.map +0 -1
  107. package/lib/Headline.js +0 -2
  108. package/lib/Headline.js.map +0 -1
  109. package/lib/Subheadline.js +0 -2
  110. package/lib/Subheadline.js.map +0 -1
  111. package/lib/components/Body/Body.js.map +0 -1
  112. package/lib/components/Body/index.js +0 -2
  113. package/lib/components/Body/index.js.map +0 -1
  114. package/lib/components/Caption/Caption.js.map +0 -1
  115. package/lib/components/Caption/index.js +0 -2
  116. package/lib/components/Caption/index.js.map +0 -1
  117. package/lib/components/Headline/Headline.js.map +0 -1
  118. package/lib/components/Headline/index.js +0 -2
  119. package/lib/components/Headline/index.js.map +0 -1
  120. package/lib/components/Subheadline/Subheadline.js.map +0 -1
  121. package/lib/components/Subheadline/index.js +0 -2
  122. package/lib/components/Subheadline/index.js.map +0 -1
  123. package/lib-commonjs/Body.js.map +0 -1
  124. package/lib-commonjs/Caption.js.map +0 -1
  125. package/lib-commonjs/Headline.js.map +0 -1
  126. package/lib-commonjs/Subheadline.js +0 -10
  127. package/lib-commonjs/Subheadline.js.map +0 -1
  128. package/lib-commonjs/components/Body/Body.js.map +0 -1
  129. package/lib-commonjs/components/Body/index.js.map +0 -1
  130. package/lib-commonjs/components/Caption/Caption.js.map +0 -1
  131. package/lib-commonjs/components/Caption/index.js.map +0 -1
  132. package/lib-commonjs/components/Headline/Headline.js.map +0 -1
  133. package/lib-commonjs/components/Headline/index.js.map +0 -1
  134. package/lib-commonjs/components/Subheadline/Subheadline.js.map +0 -1
  135. package/lib-commonjs/components/Subheadline/index.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,137 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 23 May 2022 12:10:18 GMT",
5
+ "date": "Tue, 28 Jun 2022 15:08:30 GMT",
6
+ "tag": "@fluentui/react-text_v9.0.0",
7
+ "version": "9.0.0",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "lingfangao@hotmail.com",
12
+ "package": "@fluentui/react-text",
13
+ "commit": "675acea49c97f10837ddee9b8c4350ca27750125",
14
+ "comment": "Bump Griffel dependencies"
15
+ },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-text",
19
+ "commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
20
+ "comment": "Update 9.0.0-rc dependencies to use caret range"
21
+ }
22
+ ],
23
+ "none": [
24
+ {
25
+ "author": "mgodbolt@microsoft.com",
26
+ "package": "@fluentui/react-text",
27
+ "commit": "36d25e965ca50f24f8f1a1be8deede690ca70b93",
28
+ "comment": "chore: Convert Text to index based stories"
29
+ }
30
+ ],
31
+ "patch": [
32
+ {
33
+ "author": "lingfangao@hotmail.com",
34
+ "package": "@fluentui/react-text",
35
+ "commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
36
+ "comment": "feat: Initial 9.0.0 release"
37
+ },
38
+ {
39
+ "author": "beachball",
40
+ "package": "@fluentui/react-text",
41
+ "comment": "Bump @fluentui/react-theme to v9.0.0",
42
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
43
+ },
44
+ {
45
+ "author": "beachball",
46
+ "package": "@fluentui/react-text",
47
+ "comment": "Bump @fluentui/react-utilities to v9.0.0",
48
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
49
+ },
50
+ {
51
+ "author": "beachball",
52
+ "package": "@fluentui/react-text",
53
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
54
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ "date": "Thu, 23 Jun 2022 14:25:31 GMT",
61
+ "tag": "@fluentui/react-text_v9.0.0-rc.12",
62
+ "version": "9.0.0-rc.12",
63
+ "comments": {
64
+ "prerelease": [
65
+ {
66
+ "author": "beachball",
67
+ "package": "@fluentui/react-text",
68
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
69
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
70
+ }
71
+ ]
72
+ }
73
+ },
74
+ {
75
+ "date": "Tue, 31 May 2022 21:28:49 GMT",
76
+ "tag": "@fluentui/react-text_v9.0.0-rc.11",
77
+ "version": "9.0.0-rc.11",
78
+ "comments": {
79
+ "prerelease": [
80
+ {
81
+ "author": "olfedias@microsoft.com",
82
+ "package": "@fluentui/react-text",
83
+ "commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
84
+ "comment": "chore: Update Griffel to latest version"
85
+ },
86
+ {
87
+ "author": "beachball",
88
+ "package": "@fluentui/react-text",
89
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
90
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
91
+ },
92
+ {
93
+ "author": "beachball",
94
+ "package": "@fluentui/react-text",
95
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
96
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ {
102
+ "date": "Mon, 23 May 2022 18:56:49 GMT",
103
+ "tag": "@fluentui/react-text_v9.0.0-rc.10",
104
+ "version": "9.0.0-rc.10",
105
+ "comments": {
106
+ "prerelease": [
107
+ {
108
+ "author": "39736248+andrefcdias@users.noreply.github.com",
109
+ "package": "@fluentui/react-text",
110
+ "commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
111
+ "comment": "fix: Change typography wrapper component names to match new design spec"
112
+ },
113
+ {
114
+ "author": "Humberto.Morimoto@microsoft.com",
115
+ "package": "@fluentui/react-text",
116
+ "commit": "9c239eaf77f2f5e3246bb16904d263001a26c726",
117
+ "comment": "Text: Ordering types alphabetically."
118
+ },
119
+ {
120
+ "author": "beachball",
121
+ "package": "@fluentui/react-text",
122
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
123
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
124
+ },
125
+ {
126
+ "author": "beachball",
127
+ "package": "@fluentui/react-text",
128
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
129
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
130
+ }
131
+ ]
132
+ }
133
+ },
134
+ {
135
+ "date": "Mon, 23 May 2022 12:13:52 GMT",
6
136
  "tag": "@fluentui/react-text_v9.0.0-rc.9",
7
137
  "version": "9.0.0-rc.9",
8
138
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,61 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Mon, 23 May 2022 12:10:18 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 28 Jun 2022 15:08:30 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0)
8
+
9
+ Tue, 28 Jun 2022 15:08:30 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.12..@fluentui/react-text_v9.0.0)
11
+
12
+ ### Patches
13
+
14
+ - feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
16
+ - Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
17
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
18
+
19
+ ### Changes
20
+
21
+ - Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
22
+ - Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
23
+
24
+ ## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.12)
25
+
26
+ Thu, 23 Jun 2022 14:25:31 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.11..@fluentui/react-text_v9.0.0-rc.12)
28
+
29
+ ### Changes
30
+
31
+ - Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
32
+
33
+ ## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.11)
34
+
35
+ Tue, 31 May 2022 21:28:49 GMT
36
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.10..@fluentui/react-text_v9.0.0-rc.11)
37
+
38
+ ### Changes
39
+
40
+ - chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
41
+ - Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
42
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
43
+
44
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.10)
45
+
46
+ Mon, 23 May 2022 18:56:49 GMT
47
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.9..@fluentui/react-text_v9.0.0-rc.10)
48
+
49
+ ### Changes
50
+
51
+ - fix: Change typography wrapper component names to match new design spec ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by 39736248+andrefcdias@users.noreply.github.com)
52
+ - Text: Ordering types alphabetically. ([PR #23120](https://github.com/microsoft/fluentui/pull/23120) by Humberto.Morimoto@microsoft.com)
53
+ - Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
54
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
55
+
7
56
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.9)
8
57
 
9
- Mon, 23 May 2022 12:10:18 GMT
58
+ Mon, 23 May 2022 12:13:52 GMT
10
59
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.8..@fluentui/react-text_v9.0.0-rc.9)
11
60
 
12
61
  ### Changes
package/README.md CHANGED
@@ -74,8 +74,8 @@ By default, Text and all the typography wrappers render a `<span>` element. You
74
74
 
75
75
  ```html
76
76
  <div>
77
- <Headline as="h1">Headline</Headline>
78
- <Subheadline as="h2">Subheadline</Subheadline>
77
+ <Subtitle1 as="h1">Subtitle1</Subtitle1>
78
+ <Subtitle2 as="h2">Subtitle2</Subtitle2>
79
79
  <Text as="p">This is simple example</Text>
80
80
  </div>
81
81
  ```
@@ -84,8 +84,8 @@ This will result in the following DOM structure:
84
84
 
85
85
  ```html
86
86
  <div>
87
- <h1>Headline</h1>
88
- <h2>Subheadline</h2>
87
+ <h1>Subtitle1</h1>
88
+ <h2>Subtitle2</h2>
89
89
  <p>This is simple example</p>
90
90
  </div>
91
91
  ```
package/dist/index.d.ts CHANGED
@@ -7,64 +7,38 @@ import type { Slot } from '@fluentui/react-utilities';
7
7
  import { SlotClassNames } from '@fluentui/react-utilities';
8
8
 
9
9
  /**
10
- * Text wrapper component for the Body typography variant
10
+ * Text wrapper component for the Body1 typography variant
11
11
  */
12
- declare const Body_2: FunctionComponent<TextWrapperProps>;
13
- export { Body_2 as Body }
12
+ export declare const Body1: FunctionComponent<TextWrapperProps>;
14
13
 
15
- /**
16
- * @deprecated Use `bodyClassNames.root` instead.
17
- */
18
- export declare const bodyClassName = "fui-Body";
19
-
20
- export declare const bodyClassNames: SlotClassNames<TextSlots>;
14
+ export declare const body1ClassNames: SlotClassNames<TextSlots>;
21
15
 
22
16
  /**
23
- * Text wrapper component for the Caption typography variant
17
+ * Text wrapper component for the Caption1 typography variant
24
18
  */
25
- export declare const Caption: FunctionComponent<TextWrapperProps>;
19
+ export declare const Caption1: FunctionComponent<TextWrapperProps>;
20
+
21
+ export declare const caption1ClassNames: SlotClassNames<TextSlots>;
26
22
 
27
23
  /**
28
- * @deprecated Use `captionClassNames.root` instead.
24
+ * Text wrapper component for the Caption2 typography variant
29
25
  */
30
- export declare const captionClassName = "fui-Caption";
26
+ export declare const Caption2: FunctionComponent<TextWrapperProps>;
31
27
 
32
- export declare const captionClassNames: SlotClassNames<TextSlots>;
28
+ export declare const caption2ClassNames: SlotClassNames<TextSlots>;
33
29
 
34
30
  /**
35
31
  * Text wrapper component for the Display typography variant
36
32
  */
37
33
  export declare const Display: FunctionComponent<TextWrapperProps>;
38
34
 
39
- /**
40
- * @deprecated Use `displayClassNames.root` instead.
41
- */
42
- export declare const displayClassName = "fui-Display";
43
-
44
35
  export declare const displayClassNames: SlotClassNames<TextSlots>;
45
36
 
46
- /**
47
- * Text wrapper component for the Headline typography variant
48
- */
49
- export declare const Headline: FunctionComponent<TextWrapperProps>;
50
-
51
- /**
52
- * @deprecated Use `headlineClassNames.root` instead.
53
- */
54
- export declare const headlineClassName = "fui-Headline";
55
-
56
- export declare const headlineClassNames: SlotClassNames<TextSlots>;
57
-
58
37
  /**
59
38
  * Text wrapper component for the Large Title typography variant
60
39
  */
61
40
  export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
62
41
 
63
- /**
64
- * @deprecated Use `largeTitleClassNames.root` instead.
65
- */
66
- export declare const largeTitleClassName = "fui-LargeTitle";
67
-
68
42
  export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
69
43
 
70
44
  /**
@@ -73,16 +47,18 @@ export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
73
47
  export declare const renderText_unstable: (state: TextState) => JSX.Element;
74
48
 
75
49
  /**
76
- * Text wrapper component for the Subheadline typography variant
50
+ * Text wrapper component for the Subtitle1 typography variant
77
51
  */
78
- export declare const Subheadline: FunctionComponent<TextWrapperProps>;
52
+ export declare const Subtitle1: FunctionComponent<TextWrapperProps>;
53
+
54
+ export declare const subtitle1ClassNames: SlotClassNames<TextSlots>;
79
55
 
80
56
  /**
81
- * @deprecated Use `subheadlineClassNames.root` instead.
57
+ * Text wrapper component for the Subtitle2 typography variant
82
58
  */
83
- export declare const subheadlineClassName = "fui-Subheadline";
59
+ export declare const Subtitle2: FunctionComponent<TextWrapperProps>;
84
60
 
85
- export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
61
+ export declare const subtitle2ClassNames: SlotClassNames<TextSlots>;
86
62
 
87
63
  /**
88
64
  * Typography and styling abstraction component used to ensure consistency of text.
@@ -90,11 +66,6 @@ export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
90
66
  declare const Text_2: ForwardRefComponent<TextProps>;
91
67
  export { Text_2 as Text }
92
68
 
93
- /**
94
- * @deprecated Use `textClassNames.root` instead.
95
- */
96
- export declare const textClassName = "fui-Text";
97
-
98
69
  export declare const textClassNames: SlotClassNames<TextSlots>;
99
70
 
100
71
  /**
@@ -102,23 +73,23 @@ export declare const textClassNames: SlotClassNames<TextSlots>;
102
73
  */
103
74
  export declare type TextProps = ComponentProps<TextSlots> & {
104
75
  /**
105
- * Wraps the text content on white spaces.
76
+ * Aligns text based on the parent container.
106
77
  *
107
- * @default true
78
+ * @default start
108
79
  */
109
- wrap?: boolean;
80
+ align?: 'start' | 'center' | 'end' | 'justify';
110
81
  /**
111
- * Truncate overflowing text for block displays.
82
+ * Applies a block display for the content.
112
83
  *
113
84
  * @default false
114
85
  */
115
- truncate?: boolean;
86
+ block?: boolean;
116
87
  /**
117
- * Applies a block display for the content.
88
+ * Applies the font family to the content.
118
89
  *
119
- * @default false
90
+ * @default base
120
91
  */
121
- block?: boolean;
92
+ font?: 'base' | 'monospace' | 'numeric';
122
93
  /**
123
94
  * Applies the italic font style to the content.
124
95
  *
@@ -126,11 +97,11 @@ export declare type TextProps = ComponentProps<TextSlots> & {
126
97
  */
127
98
  italic?: boolean;
128
99
  /**
129
- * Applies the underline text decoration to the content.
100
+ * Applies font size and line height based on the theme tokens.
130
101
  *
131
- * @default false
102
+ * @default 300
132
103
  */
133
- underline?: boolean;
104
+ size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
134
105
  /**
135
106
  * Applies the strikethrough text decoration to the content.
136
107
  *
@@ -138,17 +109,17 @@ export declare type TextProps = ComponentProps<TextSlots> & {
138
109
  */
139
110
  strikethrough?: boolean;
140
111
  /**
141
- * Applies font size and line height based on the theme tokens.
112
+ * Truncate overflowing text for block displays.
142
113
  *
143
- * @default 300
114
+ * @default false
144
115
  */
145
- size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
116
+ truncate?: boolean;
146
117
  /**
147
- * Applies the font family to the content.
118
+ * Applies the underline text decoration to the content.
148
119
  *
149
- * @default base
120
+ * @default false
150
121
  */
151
- font?: 'base' | 'monospace' | 'numeric';
122
+ underline?: boolean;
152
123
  /**
153
124
  * Applies font weight to the content.
154
125
  *
@@ -156,11 +127,11 @@ export declare type TextProps = ComponentProps<TextSlots> & {
156
127
  */
157
128
  weight?: 'regular' | 'medium' | 'semibold';
158
129
  /**
159
- * Aligns text based on the parent container.
130
+ * Wraps the text content on white spaces.
160
131
  *
161
- * @default start
132
+ * @default true
162
133
  */
163
- align?: 'start' | 'center' | 'end' | 'justify';
134
+ wrap?: boolean;
164
135
  };
165
136
 
166
137
  /**
@@ -182,11 +153,6 @@ declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
182
153
  */
183
154
  export declare const Title1: FunctionComponent<TextWrapperProps>;
184
155
 
185
- /**
186
- * @deprecated Use `title1ClassNames.root` instead.
187
- */
188
- export declare const title1ClassName = "fui-Title1";
189
-
190
156
  export declare const title1ClassNames: SlotClassNames<TextSlots>;
191
157
 
192
158
  /**
@@ -194,11 +160,6 @@ export declare const title1ClassNames: SlotClassNames<TextSlots>;
194
160
  */
195
161
  export declare const Title2: FunctionComponent<TextWrapperProps>;
196
162
 
197
- /**
198
- * @deprecated Use `title2ClassNames.root` instead.
199
- */
200
- export declare const title2ClassName = "fui-Title2";
201
-
202
163
  export declare const title2ClassNames: SlotClassNames<TextSlots>;
203
164
 
204
165
  /**
@@ -206,11 +167,6 @@ export declare const title2ClassNames: SlotClassNames<TextSlots>;
206
167
  */
207
168
  export declare const Title3: FunctionComponent<TextWrapperProps>;
208
169
 
209
- /**
210
- * @deprecated Use `title3ClassNames.root` instead.
211
- */
212
- export declare const title3ClassName = "fui-Title3";
213
-
214
170
  export declare const title3ClassNames: SlotClassNames<TextSlots>;
215
171
 
216
172
  /**
package/lib/Body1.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './components/Body1/index';
2
+ //# sourceMappingURL=Body1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body1.js","sourceRoot":"../src/","sources":["Body1.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Body1/index';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Caption1/index';
2
+ //# sourceMappingURL=Caption1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Caption1.js","sourceRoot":"../src/","sources":["Caption1.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/Caption1/index';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Caption2/index';
2
+ //# sourceMappingURL=Caption2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Caption2.js","sourceRoot":"../src/","sources":["Caption2.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/Caption2/index';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Subtitle1/index';
2
+ //# sourceMappingURL=Subtitle1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subtitle1.js","sourceRoot":"../src/","sources":["Subtitle1.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/Subtitle1/index';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './components/Subtitle2/index';
2
+ //# sourceMappingURL=Subtitle2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subtitle2.js","sourceRoot":"../src/","sources":["Subtitle2.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/Subtitle2/index';\n"]}
@@ -1,13 +1,8 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { createWrapper } from '../wrapper';
3
3
  import { typographyStyles } from '@fluentui/react-theme';
4
- /**
5
- * @deprecated Use `bodyClassNames.root` instead.
6
- */
7
-
8
- export const bodyClassName = 'fui-Body';
9
- export const bodyClassNames = {
10
- root: 'fui-Body'
4
+ export const body1ClassNames = {
5
+ root: 'fui-Body1'
11
6
  };
12
7
  /**
13
8
  * Styles for the root slot
@@ -24,13 +19,13 @@ const useStyles = /*#__PURE__*/__styles({
24
19
  "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
25
20
  });
26
21
  /**
27
- * Text wrapper component for the Body typography variant
22
+ * Text wrapper component for the Body1 typography variant
28
23
  */
29
24
 
30
25
 
31
- export const Body = /*#__PURE__*/createWrapper({
26
+ export const Body1 = /*#__PURE__*/createWrapper({
32
27
  useStyles,
33
- className: bodyClassNames.root,
34
- displayName: 'Body'
28
+ className: body1ClassNames.root,
29
+ displayName: 'Body1'
35
30
  });
36
- //# sourceMappingURL=Body.js.map
31
+ //# sourceMappingURL=Body1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Body1/Body1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,eAAe,GAA8B;EACxD,IAAI,EAAE;AADkD,CAAnD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,KAAK,gBAAwC,aAAa,CAAC;EACtE,SADsE;EAEtE,SAAS,EAAE,eAAe,CAAC,IAF2C;EAGtE,WAAW,EAAE;AAHyD,CAAD,CAAhE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const body1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body1,\n});\n\n/**\n * Text wrapper component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export * from './Body1';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Body1/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './Body1';\n"]}
@@ -1,13 +1,8 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { createWrapper } from '../wrapper';
3
3
  import { typographyStyles } from '@fluentui/react-theme';
4
- /**
5
- * @deprecated Use `captionClassNames.root` instead.
6
- */
7
-
8
- export const captionClassName = 'fui-Caption';
9
- export const captionClassNames = {
10
- root: 'fui-Caption'
4
+ export const caption1ClassNames = {
5
+ root: 'fui-Caption1'
11
6
  };
12
7
  /**
13
8
  * Styles for the root slot
@@ -24,13 +19,13 @@ const useStyles = /*#__PURE__*/__styles({
24
19
  "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
25
20
  });
26
21
  /**
27
- * Text wrapper component for the Caption typography variant
22
+ * Text wrapper component for the Caption1 typography variant
28
23
  */
29
24
 
30
25
 
31
- export const Caption = /*#__PURE__*/createWrapper({
26
+ export const Caption1 = /*#__PURE__*/createWrapper({
32
27
  useStyles,
33
- className: captionClassNames.root,
34
- displayName: 'Caption'
28
+ className: caption1ClassNames.root,
29
+ displayName: 'Caption1'
35
30
  });
36
- //# sourceMappingURL=Caption.js.map
31
+ //# sourceMappingURL=Caption1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Caption1/Caption1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,kBAAkB,GAA8B;EAC3D,IAAI,EAAE;AADqD,CAAtD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,QAAQ,gBAAwC,aAAa,CAAC;EACzE,SADyE;EAEzE,SAAS,EAAE,kBAAkB,CAAC,IAF2C;EAGzE,WAAW,EAAE;AAH4D,CAAD,CAAnE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const caption1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Caption1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption1,\n});\n\n/**\n * Text wrapper component for the Caption1 typography variant\n */\nexport const Caption1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: caption1ClassNames.root,\n displayName: 'Caption1',\n});\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export * from './Caption1';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Caption1/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC","sourcesContent":["export * from './Caption1';\n"]}
@@ -0,0 +1,31 @@
1
+ import { __styles } from '@griffel/react';
2
+ import { createWrapper } from '../wrapper';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
+ export const caption2ClassNames = {
5
+ root: 'fui-Caption2'
6
+ };
7
+ /**
8
+ * Styles for the root slot
9
+ */
10
+
11
+ const useStyles = /*#__PURE__*/__styles({
12
+ "root": {
13
+ "Bahqtrf": "fk6fouc",
14
+ "Be2twd7": "f13mqy1h",
15
+ "Bhrd7zp": "figsok6",
16
+ "Bg96gwp": "fcpl73t"
17
+ }
18
+ }, {
19
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fcpl73t{line-height:var(--lineHeightBase100);}"]
20
+ });
21
+ /**
22
+ * Text wrapper component for the Caption2 typography variant
23
+ */
24
+
25
+
26
+ export const Caption2 = /*#__PURE__*/createWrapper({
27
+ useStyles,
28
+ className: caption2ClassNames.root,
29
+ displayName: 'Caption2'
30
+ });
31
+ //# sourceMappingURL=Caption2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Caption2/Caption2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA,OAAO,MAAM,kBAAkB,GAA8B;EAC3D,IAAI,EAAE;AADqD,CAAtD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,QAAQ,gBAAwC,aAAa,CAAC;EACzE,SADyE;EAEzE,SAAS,EAAE,kBAAkB,CAAC,IAF2C;EAGzE,WAAW,EAAE;AAH4D,CAAD,CAAnE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const caption2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Caption2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption2,\n});\n\n/**\n * Text wrapper component for the Caption2 typography variant\n */\nexport const Caption2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: caption2ClassNames.root,\n displayName: 'Caption2',\n});\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ export * from './Caption2';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Caption2/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC","sourcesContent":["export * from './Caption2';\n"]}
@@ -1,11 +1,6 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { createWrapper } from '../wrapper';
3
3
  import { typographyStyles } from '@fluentui/react-theme';
4
- /**
5
- * @deprecated Use `displayClassNames.root` instead.
6
- */
7
-
8
- export const displayClassName = 'fui-Display';
9
4
  export const displayClassNames = {
10
5
  root: 'fui-Display'
11
6
  };