@fluentui/react-text 9.0.0-rc.5 → 9.0.0-rc.8
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 +128 -1
- package/CHANGELOG.md +87 -51
- package/dist/{react-text.d.ts → index.d.ts} +51 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/components/Body/Body.js +12 -5
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.js +12 -5
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.js +12 -5
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.js +12 -5
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +12 -5
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.js +12 -5
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +8 -1
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.js +12 -5
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +12 -5
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +12 -5
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/index.js +11 -10
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Body/Body.js +21 -5
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.js +21 -5
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +21 -5
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.js +21 -5
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +21 -5
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js +21 -5
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -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.js +21 -5
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +21 -5
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +21 -5
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/index.js +219 -11
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -19
- package/lib/Body.d.ts +0 -1
- package/lib/Caption.d.ts +0 -1
- package/lib/Display.d.ts +0 -1
- package/lib/Headline.d.ts +0 -1
- package/lib/LargeTitle.d.ts +0 -1
- package/lib/Subheadline.d.ts +0 -1
- package/lib/Text.d.ts +0 -1
- package/lib/Title1.d.ts +0 -1
- package/lib/Title2.d.ts +0 -1
- package/lib/Title3.d.ts +0 -1
- package/lib/components/Body/Body.d.ts +0 -7
- package/lib/components/Body/index.d.ts +0 -1
- package/lib/components/Caption/Caption.d.ts +0 -7
- package/lib/components/Caption/index.d.ts +0 -1
- package/lib/components/Display/Display.d.ts +0 -7
- package/lib/components/Display/index.d.ts +0 -1
- package/lib/components/Headline/Headline.d.ts +0 -7
- package/lib/components/Headline/index.d.ts +0 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +0 -7
- package/lib/components/LargeTitle/index.d.ts +0 -1
- package/lib/components/Subheadline/Subheadline.d.ts +0 -7
- package/lib/components/Subheadline/index.d.ts +0 -1
- package/lib/components/Text/Text.d.ts +0 -6
- package/lib/components/Text/Text.types.d.ts +0 -78
- package/lib/components/Text/index.d.ts +0 -5
- package/lib/components/Text/renderText.d.ts +0 -5
- package/lib/components/Text/useText.d.ts +0 -12
- package/lib/components/Text/useTextStyles.d.ts +0 -6
- package/lib/components/Title1/Title1.d.ts +0 -7
- package/lib/components/Title1/index.d.ts +0 -1
- package/lib/components/Title2/Title2.d.ts +0 -7
- package/lib/components/Title2/index.d.ts +0 -1
- package/lib/components/Title3/Title3.d.ts +0 -7
- package/lib/components/Title3/index.d.ts +0 -1
- package/lib/components/wrapper.d.ts +0 -8
- package/lib/index.d.ts +0 -10
- package/lib/typographyStyles/index.d.ts +0 -2
- package/lib/typographyStyles/index.js +0 -3
- package/lib/typographyStyles/index.js.map +0 -1
- package/lib/typographyStyles/typographyStyles.d.ts +0 -13
- package/lib/typographyStyles/typographyStyles.js +0 -60
- package/lib/typographyStyles/typographyStyles.js.map +0 -1
- package/lib-commonjs/Body.d.ts +0 -1
- package/lib-commonjs/Caption.d.ts +0 -1
- package/lib-commonjs/Display.d.ts +0 -1
- package/lib-commonjs/Headline.d.ts +0 -1
- package/lib-commonjs/LargeTitle.d.ts +0 -1
- package/lib-commonjs/Subheadline.d.ts +0 -1
- package/lib-commonjs/Text.d.ts +0 -1
- package/lib-commonjs/Title1.d.ts +0 -1
- package/lib-commonjs/Title2.d.ts +0 -1
- package/lib-commonjs/Title3.d.ts +0 -1
- package/lib-commonjs/components/Body/Body.d.ts +0 -7
- package/lib-commonjs/components/Body/index.d.ts +0 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +0 -7
- package/lib-commonjs/components/Caption/index.d.ts +0 -1
- package/lib-commonjs/components/Display/Display.d.ts +0 -7
- package/lib-commonjs/components/Display/index.d.ts +0 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +0 -7
- package/lib-commonjs/components/Headline/index.d.ts +0 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -7
- package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -7
- package/lib-commonjs/components/Subheadline/index.d.ts +0 -1
- package/lib-commonjs/components/Text/Text.d.ts +0 -6
- package/lib-commonjs/components/Text/Text.types.d.ts +0 -78
- package/lib-commonjs/components/Text/index.d.ts +0 -5
- package/lib-commonjs/components/Text/renderText.d.ts +0 -5
- package/lib-commonjs/components/Text/useText.d.ts +0 -12
- package/lib-commonjs/components/Text/useTextStyles.d.ts +0 -6
- package/lib-commonjs/components/Title1/Title1.d.ts +0 -7
- package/lib-commonjs/components/Title1/index.d.ts +0 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +0 -7
- package/lib-commonjs/components/Title2/index.d.ts +0 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +0 -7
- package/lib-commonjs/components/Title3/index.d.ts +0 -1
- package/lib-commonjs/components/wrapper.d.ts +0 -8
- package/lib-commonjs/index.d.ts +0 -10
- package/lib-commonjs/typographyStyles/index.d.ts +0 -2
- package/lib-commonjs/typographyStyles/index.js +0 -11
- package/lib-commonjs/typographyStyles/index.js.map +0 -1
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +0 -13
- package/lib-commonjs/typographyStyles/typographyStyles.js +0 -68
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +0 -1
@@ -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
|
*
|
File without changes
|
@@ -1,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "fkhj508",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "figsok6",
|
21
|
+
"Bg96gwp": "f1i3iumi"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Body typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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.body1,\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,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "fy9rknc",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "figsok6",
|
21
|
+
"Bg96gwp": "fwrc4pm"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Caption typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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.caption1,\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,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "fpyltcb",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "f1ivgwrt"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Display typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "f1pp30po",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "f106mvju"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f106mvju{line-height:var(--lineHeightBase500);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Headline typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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.subtitle1,\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,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "f15afnhw",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "fr3w3wp"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Large Title typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "fod5ikn",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "faaz57k"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".faaz57k{line-height:var(--lineHeightBase400);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Subheadline typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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.subtitle2,\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,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,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
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
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "fccw675",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "f1ebx5kk"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Title 1 typography variant
|
@@ -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,
|
1
|
+
{"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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/"}
|
@@ -1,7 +1,14 @@
|
|
1
1
|
import { __styles } from '@griffel/react';
|
2
|
-
import { typographyStyles } from '../../typographyStyles/index';
|
3
2
|
import { createWrapper } from '../wrapper';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
4
|
+
/**
|
5
|
+
* @deprecated Use `title2ClassNames.root` instead.
|
6
|
+
*/
|
7
|
+
|
4
8
|
export const title2ClassName = 'fui-Title2';
|
9
|
+
export const title2ClassNames = {
|
10
|
+
root: 'fui-Title2'
|
11
|
+
};
|
5
12
|
/**
|
6
13
|
* Styles for the root slot
|
7
14
|
*/
|
@@ -10,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
10
17
|
"root": {
|
11
18
|
"Bahqtrf": "fk6fouc",
|
12
19
|
"Be2twd7": "fojgt09",
|
13
|
-
"
|
14
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "fcen8rp"
|
15
22
|
}
|
16
23
|
}, {
|
17
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}"]
|
18
25
|
});
|
19
26
|
/**
|
20
27
|
* Text wrapper component for the Title 2 typography variant
|
@@ -23,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
23
30
|
|
24
31
|
export const Title2 = /*#__PURE__*/createWrapper({
|
25
32
|
useStyles,
|
26
|
-
className:
|
33
|
+
className: title2ClassNames.root,
|
27
34
|
displayName: 'Title2'
|
28
35
|
});
|
29
36
|
//# sourceMappingURL=Title2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,aAAT,QAAgD,YAAhD;AAGA,SAAS,gBAAT,QAAiC,uBAAjC;AAEA;;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title2ClassNames.root` instead.\n */\nexport const title2ClassName = 'fui-Title2';\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
|