@fluentui/react-text 9.0.0-rc.5 → 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.
- package/CHANGELOG.json +60 -1
- package/CHANGELOG.md +15 -2
- package/dist/react-text.d.ts +51 -0
- package/lib/components/Body/Body.d.ts +6 -0
- package/lib/components/Body/Body.js +8 -1
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.d.ts +6 -0
- package/lib/components/Caption/Caption.js +8 -1
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.d.ts +6 -0
- package/lib/components/Display/Display.js +8 -1
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +6 -0
- package/lib/components/Headline/Headline.js +8 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +6 -0
- package/lib/components/LargeTitle/LargeTitle.js +8 -1
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.d.ts +6 -0
- package/lib/components/Subheadline/Subheadline.js +8 -1
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +6 -1
- package/lib/components/Text/useTextStyles.js +8 -1
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +6 -0
- package/lib/components/Title1/Title1.js +8 -1
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.d.ts +6 -0
- package/lib/components/Title2/Title2.js +8 -1
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.d.ts +6 -0
- package/lib/components/Title3/Title3.js +8 -1
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/index.d.ts +11 -10
- package/lib/index.js +11 -10
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +6 -0
- package/lib-commonjs/components/Body/Body.js +9 -2
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +6 -0
- package/lib-commonjs/components/Caption/Caption.js +9 -2
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +6 -0
- package/lib-commonjs/components/Display/Display.js +9 -2
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +6 -0
- package/lib-commonjs/components/Headline/Headline.js +9 -2
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +6 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -2
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +6 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +9 -2
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +6 -1
- package/lib-commonjs/components/Text/useTextStyles.js +9 -2
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.d.ts +6 -0
- package/lib-commonjs/components/Title1/Title1.js +9 -2
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +6 -0
- package/lib-commonjs/components/Title2/Title2.js +9 -2
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +6 -0
- package/lib-commonjs/components/Title3/Title3.js +9 -2
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/index.d.ts +11 -10
- package/lib-commonjs/index.js +219 -11
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +6 -16
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,66 @@
|
|
2
2
|
"name": "@fluentui/react-text",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
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",
|
6
65
|
"tag": "@fluentui/react-text_v9.0.0-rc.5",
|
7
66
|
"version": "9.0.0-rc.5",
|
8
67
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,25 @@
|
|
1
1
|
# Change Log - @fluentui/react-text
|
2
2
|
|
3
|
-
This log was last generated on
|
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
|
+
|
7
20
|
## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.0.0-rc.5)
|
8
21
|
|
9
|
-
Fri, 04 Mar 2022 05:
|
22
|
+
Fri, 04 Mar 2022 05:17:31 GMT
|
10
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)
|
11
24
|
|
12
25
|
### Changes
|
package/dist/react-text.d.ts
CHANGED
@@ -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:
|
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;
|
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:
|
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;
|
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:
|
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;
|
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:
|
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;
|
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:
|
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;
|
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:
|
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;
|
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(
|
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
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;
|
1
|
+
{"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":"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","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\n/**\n * @deprecated Use `textClassNames.root` instead.\n */\nexport const textClassName = 'fui-Text';\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\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 `title1ClassNames.root` instead.
|
7
|
+
*/
|
3
8
|
export declare const title1ClassName = "fui-Title1";
|
9
|
+
export declare const title1ClassNames: SlotClassNames<TextSlots>;
|
4
10
|
/**
|
5
11
|
* Text wrapper component for the Title 1 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 `title1ClassNames.root` instead.
|
6
|
+
*/
|
7
|
+
|
4
8
|
export const title1ClassName = 'fui-Title1';
|
9
|
+
export const title1ClassNames = {
|
10
|
+
root: 'fui-Title1'
|
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 Title1 = /*#__PURE__*/createWrapper({
|
25
32
|
useStyles,
|
26
|
-
className:
|
33
|
+
className: title1ClassNames.root,
|
27
34
|
displayName: 'Title1'
|
28
35
|
});
|
29
36
|
//# sourceMappingURL=Title1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;
|
1
|
+
{"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAIA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,YAAxB;AACP,OAAO,MAAM,gBAAgB,GAA8B;AACzD,EAAA,IAAI,EAAE;AADmD,CAApD;AAIP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,MAAM,MAAM,gBAAwC,aAAa,CAAC;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,gBAAgB,CAAC,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","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 `title1ClassNames.root` instead.\n */\nexport const title1ClassName = 'fui-Title1';\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"],"sourceRoot":"../src/"}
|