@fluentui/react-text 9.0.0-rc.3 → 9.0.0-rc.6

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 (70) hide show
  1. package/CHANGELOG.json +108 -1
  2. package/CHANGELOG.md +36 -2
  3. package/dist/react-text.d.ts +51 -0
  4. package/lib/components/Body/Body.d.ts +6 -0
  5. package/lib/components/Body/Body.js +8 -1
  6. package/lib/components/Body/Body.js.map +1 -1
  7. package/lib/components/Caption/Caption.d.ts +6 -0
  8. package/lib/components/Caption/Caption.js +8 -1
  9. package/lib/components/Caption/Caption.js.map +1 -1
  10. package/lib/components/Display/Display.d.ts +6 -0
  11. package/lib/components/Display/Display.js +8 -1
  12. package/lib/components/Display/Display.js.map +1 -1
  13. package/lib/components/Headline/Headline.d.ts +6 -0
  14. package/lib/components/Headline/Headline.js +8 -1
  15. package/lib/components/Headline/Headline.js.map +1 -1
  16. package/lib/components/LargeTitle/LargeTitle.d.ts +6 -0
  17. package/lib/components/LargeTitle/LargeTitle.js +8 -1
  18. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  19. package/lib/components/Subheadline/Subheadline.d.ts +6 -0
  20. package/lib/components/Subheadline/Subheadline.js +8 -1
  21. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  22. package/lib/components/Text/useTextStyles.d.ts +6 -1
  23. package/lib/components/Text/useTextStyles.js +8 -1
  24. package/lib/components/Text/useTextStyles.js.map +1 -1
  25. package/lib/components/Title1/Title1.d.ts +6 -0
  26. package/lib/components/Title1/Title1.js +8 -1
  27. package/lib/components/Title1/Title1.js.map +1 -1
  28. package/lib/components/Title2/Title2.d.ts +6 -0
  29. package/lib/components/Title2/Title2.js +8 -1
  30. package/lib/components/Title2/Title2.js.map +1 -1
  31. package/lib/components/Title3/Title3.d.ts +6 -0
  32. package/lib/components/Title3/Title3.js +8 -1
  33. package/lib/components/Title3/Title3.js.map +1 -1
  34. package/lib/index.d.ts +11 -10
  35. package/lib/index.js +11 -10
  36. package/lib/index.js.map +1 -1
  37. package/lib-commonjs/components/Body/Body.d.ts +6 -0
  38. package/lib-commonjs/components/Body/Body.js +9 -2
  39. package/lib-commonjs/components/Body/Body.js.map +1 -1
  40. package/lib-commonjs/components/Caption/Caption.d.ts +6 -0
  41. package/lib-commonjs/components/Caption/Caption.js +9 -2
  42. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  43. package/lib-commonjs/components/Display/Display.d.ts +6 -0
  44. package/lib-commonjs/components/Display/Display.js +9 -2
  45. package/lib-commonjs/components/Display/Display.js.map +1 -1
  46. package/lib-commonjs/components/Headline/Headline.d.ts +6 -0
  47. package/lib-commonjs/components/Headline/Headline.js +9 -2
  48. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  49. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +6 -0
  50. package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -2
  51. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  52. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +6 -0
  53. package/lib-commonjs/components/Subheadline/Subheadline.js +9 -2
  54. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  55. package/lib-commonjs/components/Text/useTextStyles.d.ts +6 -1
  56. package/lib-commonjs/components/Text/useTextStyles.js +9 -2
  57. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  58. package/lib-commonjs/components/Title1/Title1.d.ts +6 -0
  59. package/lib-commonjs/components/Title1/Title1.js +9 -2
  60. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  61. package/lib-commonjs/components/Title2/Title2.d.ts +6 -0
  62. package/lib-commonjs/components/Title2/Title2.js +9 -2
  63. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  64. package/lib-commonjs/components/Title3/Title3.d.ts +6 -0
  65. package/lib-commonjs/components/Title3/Title3.js +9 -2
  66. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  67. package/lib-commonjs/index.d.ts +11 -10
  68. package/lib-commonjs/index.js +219 -11
  69. package/lib-commonjs/index.js.map +1 -1
  70. package/package.json +13 -15
package/CHANGELOG.json CHANGED
@@ -2,7 +2,114 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 18 Feb 2022 13:33:50 GMT",
5
+ "date": "Tue, 19 Apr 2022 19:14:11 GMT",
6
+ "tag": "@fluentui/react-text_v9.0.0-rc.6",
7
+ "version": "9.0.0-rc.6",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "seanmonahan@microsoft.com",
12
+ "package": "@fluentui/react-text",
13
+ "commit": "086a675fd0c648944ff4048450190a0a13467de3",
14
+ "comment": "Add static classnames to Text"
15
+ },
16
+ {
17
+ "author": "olfedias@microsoft.com",
18
+ "package": "@fluentui/react-text",
19
+ "commit": "e569d6e04d83cbcc6225e61db52ff81d2addd363",
20
+ "comment": "chore: Update Griffel to latest version"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-text",
25
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.5",
26
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-text",
31
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
32
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-text",
37
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4",
38
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
39
+ }
40
+ ],
41
+ "none": [
42
+ {
43
+ "author": "mgodbolt@microsoft.com",
44
+ "package": "@fluentui/react-text",
45
+ "commit": "905e46db07ada986fd7885531f72a71b7bbaabdc",
46
+ "comment": "create v9 api extractor config and set all v9 packags to use it, suppress forgotten export"
47
+ },
48
+ {
49
+ "author": "martinhochel@microsoft.com",
50
+ "package": "@fluentui/react-text",
51
+ "commit": "320b8bbba1e498c65d011f3fae09dee98e7a11bb",
52
+ "comment": "refactor: autofix no export star at index file for cxe-prg packages"
53
+ },
54
+ {
55
+ "author": "elcraig@microsoft.com",
56
+ "package": "@fluentui/react-text",
57
+ "commit": "b7f17e976f9e058f39c9fce4f0f9bb6eb4dfa577",
58
+ "comment": "Update React dev deps and hoist them to the repo root"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ {
64
+ "date": "Fri, 04 Mar 2022 05:17:31 GMT",
65
+ "tag": "@fluentui/react-text_v9.0.0-rc.5",
66
+ "version": "9.0.0-rc.5",
67
+ "comments": {
68
+ "prerelease": [
69
+ {
70
+ "author": "dzearing@microsoft.com",
71
+ "package": "@fluentui/react-text",
72
+ "commit": "f2f1c0ea948cc3517eeb442c05433eb0918def29",
73
+ "comment": "Adding explicit export maps on all consumer packages for FUIR 8 and 9."
74
+ },
75
+ {
76
+ "author": "beachball",
77
+ "package": "@fluentui/react-text",
78
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.4",
79
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
80
+ },
81
+ {
82
+ "author": "beachball",
83
+ "package": "@fluentui/react-text",
84
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.5",
85
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ {
91
+ "date": "Tue, 01 Mar 2022 02:17:39 GMT",
92
+ "tag": "@fluentui/react-text_v9.0.0-rc.4",
93
+ "version": "9.0.0-rc.4",
94
+ "comments": {
95
+ "prerelease": [
96
+ {
97
+ "author": "olfedias@microsoft.com",
98
+ "package": "@fluentui/react-text",
99
+ "commit": "084d7408855f3e52b67cbca172da1acef9dcb98f",
100
+ "comment": "fix: Add react-theme as dependency"
101
+ },
102
+ {
103
+ "author": "beachball",
104
+ "package": "@fluentui/react-text",
105
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
106
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
107
+ }
108
+ ]
109
+ }
110
+ },
111
+ {
112
+ "date": "Fri, 18 Feb 2022 13:35:36 GMT",
6
113
  "tag": "@fluentui/react-text_v9.0.0-rc.3",
7
114
  "version": "9.0.0-rc.3",
8
115
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,46 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Fri, 18 Feb 2022 13:33:50 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 19 Apr 2022 19:14:11 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.6)
8
+
9
+ Tue, 19 Apr 2022 19:14:11 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.5..@fluentui/react-text_v9.0.0-rc.6)
11
+
12
+ ### Changes
13
+
14
+ - Add static classnames to Text ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
15
+ - chore: Update Griffel to latest version ([PR #21976](https://github.com/microsoft/fluentui/pull/21976) by olfedias@microsoft.com)
16
+ - Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
18
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
19
+
20
+ ## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.5)
21
+
22
+ Fri, 04 Mar 2022 05:17:31 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.4..@fluentui/react-text_v9.0.0-rc.5)
24
+
25
+ ### Changes
26
+
27
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
28
+ - Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
29
+ - Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
30
+
31
+ ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.4)
32
+
33
+ Tue, 01 Mar 2022 02:17:39 GMT
34
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.3..@fluentui/react-text_v9.0.0-rc.4)
35
+
36
+ ### Changes
37
+
38
+ - fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
39
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
40
+
7
41
  ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.3)
8
42
 
9
- Fri, 18 Feb 2022 13:33:50 GMT
43
+ Fri, 18 Feb 2022 13:35:36 GMT
10
44
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.0.0-rc.1..@fluentui/react-text_v9.0.0-rc.3)
11
45
 
12
46
  ### Changes
@@ -4,6 +4,7 @@ import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
4
  import type { FunctionComponent } from 'react';
5
5
  import * as React_2 from 'react';
6
6
  import type { Slot } from '@fluentui/react-utilities';
7
+ import { SlotClassNames } from '@fluentui/react-utilities';
7
8
 
8
9
  /**
9
10
  * Text wrapper component for the Body typography variant
@@ -11,36 +12,61 @@ import type { Slot } from '@fluentui/react-utilities';
11
12
  declare const Body_2: FunctionComponent<TextWrapperProps>;
12
13
  export { Body_2 as Body }
13
14
 
15
+ /**
16
+ * @deprecated Use `bodyClassNames.root` instead.
17
+ */
14
18
  export declare const bodyClassName = "fui-Body";
15
19
 
20
+ export declare const bodyClassNames: SlotClassNames<TextSlots>;
21
+
16
22
  /**
17
23
  * Text wrapper component for the Caption typography variant
18
24
  */
19
25
  export declare const Caption: FunctionComponent<TextWrapperProps>;
20
26
 
27
+ /**
28
+ * @deprecated Use `captionClassNames.root` instead.
29
+ */
21
30
  export declare const captionClassName = "fui-Caption";
22
31
 
32
+ export declare const captionClassNames: SlotClassNames<TextSlots>;
33
+
23
34
  /**
24
35
  * Text wrapper component for the Display typography variant
25
36
  */
26
37
  export declare const Display: FunctionComponent<TextWrapperProps>;
27
38
 
39
+ /**
40
+ * @deprecated Use `displayClassNames.root` instead.
41
+ */
28
42
  export declare const displayClassName = "fui-Display";
29
43
 
44
+ export declare const displayClassNames: SlotClassNames<TextSlots>;
45
+
30
46
  /**
31
47
  * Text wrapper component for the Headline typography variant
32
48
  */
33
49
  export declare const Headline: FunctionComponent<TextWrapperProps>;
34
50
 
51
+ /**
52
+ * @deprecated Use `headlineClassNames.root` instead.
53
+ */
35
54
  export declare const headlineClassName = "fui-Headline";
36
55
 
56
+ export declare const headlineClassNames: SlotClassNames<TextSlots>;
57
+
37
58
  /**
38
59
  * Text wrapper component for the Large Title typography variant
39
60
  */
40
61
  export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
41
62
 
63
+ /**
64
+ * @deprecated Use `largeTitleClassNames.root` instead.
65
+ */
42
66
  export declare const largeTitleClassName = "fui-LargeTitle";
43
67
 
68
+ export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
69
+
44
70
  /**
45
71
  * Render the final JSX of Text
46
72
  */
@@ -51,16 +77,26 @@ export declare const renderText_unstable: (state: TextState) => JSX.Element;
51
77
  */
52
78
  export declare const Subheadline: FunctionComponent<TextWrapperProps>;
53
79
 
80
+ /**
81
+ * @deprecated Use `subheadlineClassNames.root` instead.
82
+ */
54
83
  export declare const subheadlineClassName = "fui-Subheadline";
55
84
 
85
+ export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
86
+
56
87
  /**
57
88
  * Typography and styling abstraction component used to ensure consistency of text.
58
89
  */
59
90
  declare const Text_2: ForwardRefComponent<TextProps>;
60
91
  export { Text_2 as Text }
61
92
 
93
+ /**
94
+ * @deprecated Use `textClassNames.root` instead.
95
+ */
62
96
  export declare const textClassName = "fui-Text";
63
97
 
98
+ export declare const textClassNames: SlotClassNames<TextSlots>;
99
+
64
100
  declare type TextCommons = {
65
101
  /**
66
102
  * Wraps the text content on white spaces.
@@ -148,22 +184,37 @@ declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
148
184
  */
149
185
  export declare const Title1: FunctionComponent<TextWrapperProps>;
150
186
 
187
+ /**
188
+ * @deprecated Use `title1ClassNames.root` instead.
189
+ */
151
190
  export declare const title1ClassName = "fui-Title1";
152
191
 
192
+ export declare const title1ClassNames: SlotClassNames<TextSlots>;
193
+
153
194
  /**
154
195
  * Text wrapper component for the Title 2 typography variant
155
196
  */
156
197
  export declare const Title2: FunctionComponent<TextWrapperProps>;
157
198
 
199
+ /**
200
+ * @deprecated Use `title2ClassNames.root` instead.
201
+ */
158
202
  export declare const title2ClassName = "fui-Title2";
159
203
 
204
+ export declare const title2ClassNames: SlotClassNames<TextSlots>;
205
+
160
206
  /**
161
207
  * Text wrapper component for the Title 3 typography variant
162
208
  */
163
209
  export declare const Title3: FunctionComponent<TextWrapperProps>;
164
210
 
211
+ /**
212
+ * @deprecated Use `title3ClassNames.root` instead.
213
+ */
165
214
  export declare const title3ClassName = "fui-Title3";
166
215
 
216
+ export declare const title3ClassNames: SlotClassNames<TextSlots>;
217
+
167
218
  /**
168
219
  * Create the state required to render Text.
169
220
  *
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `bodyClassNames.root` instead.
7
+ */
3
8
  export declare const bodyClassName = "fui-Body";
9
+ export declare const bodyClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Body typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `bodyClassNames.root` instead.
6
+ */
7
+
4
8
  export const bodyClassName = 'fui-Body';
9
+ export const bodyClassNames = {
10
+ root: 'fui-Body'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Body = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: bodyClassName,
33
+ className: bodyClassNames.root,
27
34
  displayName: 'Body'
28
35
  });
29
36
  //# sourceMappingURL=Body.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,aAAa,GAAG,UAAtB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,IAAI,gBAAwC,aAAa,CAAC;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,aAF0D;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAD,CAA/D","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const bodyClassName = 'fui-Body';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: bodyClassName,\n displayName: 'Body',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,aAAa,GAAG,UAAtB;AACP,OAAO,MAAM,cAAc,GAA8B;AACvD,EAAA,IAAI,EAAE;AADiD,CAAlD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,IAAI,gBAAwC,aAAa,CAAC;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,cAAc,CAAC,IAF2C;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAD,CAA/D","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `bodyClassNames.root` instead.\n */\nexport const bodyClassName = 'fui-Body';\nexport const bodyClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: bodyClassNames.root,\n displayName: 'Body',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `captionClassNames.root` instead.
7
+ */
3
8
  export declare const captionClassName = "fui-Caption";
9
+ export declare const captionClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Caption typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `captionClassNames.root` instead.
6
+ */
7
+
4
8
  export const captionClassName = 'fui-Caption';
9
+ export const captionClassNames = {
10
+ root: 'fui-Caption'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Caption = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: captionClassName,
33
+ className: captionClassNames.root,
27
34
  displayName: 'Caption'
28
35
  });
29
36
  //# sourceMappingURL=Caption.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const captionClassName = 'fui-Caption';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: captionClassName,\n displayName: 'Caption',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,GAAG,aAAzB;AACP,OAAO,MAAM,iBAAiB,GAA8B;AAC1D,EAAA,IAAI,EAAE;AADoD,CAArD;AAIP;;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,iBAAiB,CAAC,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAD,CAAlE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `captionClassNames.root` instead.\n */\nexport const captionClassName = 'fui-Caption';\nexport const captionClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Caption',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: captionClassNames.root,\n displayName: 'Caption',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `displayClassNames.root` instead.
7
+ */
3
8
  export declare const displayClassName = "fui-Display";
9
+ export declare const displayClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Display typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `displayClassNames.root` instead.
6
+ */
7
+
4
8
  export const displayClassName = 'fui-Display';
9
+ export const displayClassNames = {
10
+ root: 'fui-Display'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Display = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: displayClassName,
33
+ className: displayClassNames.root,
27
34
  displayName: 'Display'
28
35
  });
29
36
  //# sourceMappingURL=Display.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const displayClassName = 'fui-Display';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: displayClassName,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,GAAG,aAAzB;AACP,OAAO,MAAM,iBAAiB,GAA8B;AAC1D,EAAA,IAAI,EAAE;AADoD,CAArD;AAIP;;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,iBAAiB,CAAC,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAD,CAAlE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `displayClassNames.root` instead.\n */\nexport const displayClassName = 'fui-Display';\nexport const displayClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Display',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: displayClassNames.root,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `headlineClassNames.root` instead.
7
+ */
3
8
  export declare const headlineClassName = "fui-Headline";
9
+ export declare const headlineClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Headline typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `headlineClassNames.root` instead.
6
+ */
7
+
4
8
  export const headlineClassName = 'fui-Headline';
9
+ export const headlineClassNames = {
10
+ root: 'fui-Headline'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Headline = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: headlineClassName,
33
+ className: headlineClassNames.root,
27
34
  displayName: 'Headline'
28
35
  });
29
36
  //# sourceMappingURL=Headline.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const headlineClassName = 'fui-Headline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassName,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAG,cAA1B;AACP,OAAO,MAAM,kBAAkB,GAA8B;AAC3D,EAAA,IAAI,EAAE;AADqD,CAAtD;AAIP;;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,kBAAkB,CAAC,IAF2C;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAD,CAAnE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `headlineClassNames.root` instead.\n */\nexport const headlineClassName = 'fui-Headline';\nexport const headlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Headline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassNames.root,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `largeTitleClassNames.root` instead.
7
+ */
3
8
  export declare const largeTitleClassName = "fui-LargeTitle";
9
+ export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Large Title typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `largeTitleClassNames.root` instead.
6
+ */
7
+
4
8
  export const largeTitleClassName = 'fui-LargeTitle';
9
+ export const largeTitleClassNames = {
10
+ root: 'fui-LargeTitle'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const LargeTitle = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: largeTitleClassName,
33
+ className: largeTitleClassNames.root,
27
34
  displayName: 'LargeTitle'
28
35
  });
29
36
  //# sourceMappingURL=LargeTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const largeTitleClassName = 'fui-LargeTitle';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.largeTitle,\n});\n\n/**\n * Text wrapper component for the Large Title typography variant\n */\nexport const LargeTitle: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: largeTitleClassName,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAG,gBAA5B;AACP,OAAO,MAAM,oBAAoB,GAA8B;AAC7D,EAAA,IAAI,EAAE;AADuD,CAAxD;AAIP;;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,oBAAoB,CAAC,IAF2C;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAD,CAArE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `largeTitleClassNames.root` instead.\n */\nexport const largeTitleClassName = 'fui-LargeTitle';\nexport const largeTitleClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-LargeTitle',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.largeTitle,\n});\n\n/**\n * Text wrapper component for the Large Title typography variant\n */\nexport const LargeTitle: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: largeTitleClassNames.root,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `subheadlineClassNames.root` instead.
7
+ */
3
8
  export declare const subheadlineClassName = "fui-Subheadline";
9
+ export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Subheadline typography variant
6
12
  */
@@ -1,7 +1,14 @@
1
1
  import { __styles } from '@griffel/react';
2
2
  import { typographyStyles } from '../../typographyStyles/index';
3
3
  import { createWrapper } from '../wrapper';
4
+ /**
5
+ * @deprecated Use `subheadlineClassNames.root` instead.
6
+ */
7
+
4
8
  export const subheadlineClassName = 'fui-Subheadline';
9
+ export const subheadlineClassNames = {
10
+ root: 'fui-Subheadline'
11
+ };
5
12
  /**
6
13
  * Styles for the root slot
7
14
  */
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
23
30
 
24
31
  export const Subheadline = /*#__PURE__*/createWrapper({
25
32
  useStyles,
26
- className: subheadlineClassName,
33
+ className: subheadlineClassNames.root,
27
34
  displayName: 'Subheadline'
28
35
  });
29
36
  //# sourceMappingURL=Subheadline.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const subheadlineClassName = 'fui-Subheadline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassName,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;AACP,OAAO,MAAM,qBAAqB,GAA8B;AAC9D,EAAA,IAAI,EAAE;AADwD,CAAzD;AAIP;;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,qBAAqB,CAAC,IAF2C;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAD,CAAtE","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `subheadlineClassNames.root` instead.\n */\nexport const subheadlineClassName = 'fui-Subheadline';\nexport const subheadlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Subheadline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassNames.root,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,10 @@
1
- import type { TextState } from './Text.types';
1
+ import type { TextSlots, TextState } from './Text.types';
2
+ import { SlotClassNames } from '@fluentui/react-utilities';
3
+ /**
4
+ * @deprecated Use `textClassNames.root` instead.
5
+ */
2
6
  export declare const textClassName = "fui-Text";
7
+ export declare const textClassNames: SlotClassNames<TextSlots>;
3
8
  /**
4
9
  * Apply styling to the Text slots based on the state
5
10
  */
@@ -1,6 +1,13 @@
1
1
  import { __styles, mergeClasses, shorthands } from '@griffel/react';
2
2
  import { tokens } from '@fluentui/react-theme';
3
+ /**
4
+ * @deprecated Use `textClassNames.root` instead.
5
+ */
6
+
3
7
  export const textClassName = 'fui-Text';
8
+ export const textClassNames = {
9
+ root: 'fui-Text'
10
+ };
4
11
  /**
5
12
  * Styles for the root slot
6
13
  */
@@ -108,7 +115,7 @@ const useStyles = /*#__PURE__*/__styles({
108
115
 
109
116
  export const useTextStyles_unstable = state => {
110
117
  const styles = useStyles();
111
- 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);
118
+ state.root.className = mergeClasses(textClassNames.root, 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);
112
119
  return state;
113
120
  };
114
121
  //# sourceMappingURL=useTextStyles.js.map