@fluentui/react-text 9.0.0-rc.6 → 9.0.0-rc.9
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 +125 -4
- package/CHANGELOG.md +92 -55
- package/dist/{react-text.d.ts → index.d.ts} +26 -28
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/components/Body/Body.js +4 -4
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.js +4 -4
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.js +4 -4
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.js +4 -4
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +4 -4
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.js +4 -4
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/useText.js +6 -6
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Title1/Title1.js +4 -4
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +4 -4
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +4 -4
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Body/Body.js +12 -3
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.js +12 -3
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +12 -3
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.js +12 -3
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +12 -3
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js +12 -3
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +6 -6
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +12 -3
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +12 -3
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +12 -3
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/package.json +8 -8
- 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 -13
- package/lib/components/Body/index.d.ts +0 -1
- package/lib/components/Caption/Caption.d.ts +0 -13
- package/lib/components/Caption/index.d.ts +0 -1
- package/lib/components/Display/Display.d.ts +0 -13
- package/lib/components/Display/index.d.ts +0 -1
- package/lib/components/Headline/Headline.d.ts +0 -13
- package/lib/components/Headline/index.d.ts +0 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +0 -13
- package/lib/components/LargeTitle/index.d.ts +0 -1
- package/lib/components/Subheadline/Subheadline.d.ts +0 -13
- 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 -11
- package/lib/components/Title1/Title1.d.ts +0 -13
- package/lib/components/Title1/index.d.ts +0 -1
- package/lib/components/Title2/Title2.d.ts +0 -13
- package/lib/components/Title2/index.d.ts +0 -1
- package/lib/components/Title3/Title3.d.ts +0 -13
- package/lib/components/Title3/index.d.ts +0 -1
- package/lib/components/wrapper.d.ts +0 -8
- package/lib/index.d.ts +0 -11
- 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 -13
- package/lib-commonjs/components/Body/index.d.ts +0 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +0 -13
- package/lib-commonjs/components/Caption/index.d.ts +0 -1
- package/lib-commonjs/components/Display/Display.d.ts +0 -13
- package/lib-commonjs/components/Display/index.d.ts +0 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +0 -13
- package/lib-commonjs/components/Headline/index.d.ts +0 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -13
- package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -13
- 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 -11
- package/lib-commonjs/components/Title1/Title1.d.ts +0 -13
- package/lib-commonjs/components/Title1/index.d.ts +0 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +0 -13
- package/lib-commonjs/components/Title2/index.d.ts +0 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +0 -13
- 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 -11
- 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
@@ -97,85 +97,83 @@ export declare const textClassName = "fui-Text";
|
|
97
97
|
|
98
98
|
export declare const textClassNames: SlotClassNames<TextSlots>;
|
99
99
|
|
100
|
-
|
100
|
+
/**
|
101
|
+
* Text Props
|
102
|
+
*/
|
103
|
+
export declare type TextProps = ComponentProps<TextSlots> & {
|
101
104
|
/**
|
102
105
|
* Wraps the text content on white spaces.
|
103
106
|
*
|
104
|
-
* @
|
107
|
+
* @default true
|
105
108
|
*/
|
106
|
-
wrap
|
109
|
+
wrap?: boolean;
|
107
110
|
/**
|
108
111
|
* Truncate overflowing text for block displays.
|
109
112
|
*
|
110
|
-
* @
|
113
|
+
* @default false
|
111
114
|
*/
|
112
|
-
truncate
|
115
|
+
truncate?: boolean;
|
113
116
|
/**
|
114
117
|
* Applies a block display for the content.
|
115
118
|
*
|
116
|
-
* @
|
119
|
+
* @default false
|
117
120
|
*/
|
118
|
-
block
|
121
|
+
block?: boolean;
|
119
122
|
/**
|
120
123
|
* Applies the italic font style to the content.
|
121
124
|
*
|
122
|
-
* @
|
125
|
+
* @default false
|
123
126
|
*/
|
124
|
-
italic
|
127
|
+
italic?: boolean;
|
125
128
|
/**
|
126
129
|
* Applies the underline text decoration to the content.
|
127
130
|
*
|
128
|
-
* @
|
131
|
+
* @default false
|
129
132
|
*/
|
130
|
-
underline
|
133
|
+
underline?: boolean;
|
131
134
|
/**
|
132
135
|
* Applies the strikethrough text decoration to the content.
|
133
136
|
*
|
134
|
-
* @
|
137
|
+
* @default false
|
135
138
|
*/
|
136
|
-
strikethrough
|
139
|
+
strikethrough?: boolean;
|
137
140
|
/**
|
138
141
|
* Applies font size and line height based on the theme tokens.
|
139
142
|
*
|
140
|
-
* @
|
143
|
+
* @default 300
|
141
144
|
*/
|
142
|
-
size
|
145
|
+
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
143
146
|
/**
|
144
147
|
* Applies the font family to the content.
|
145
148
|
*
|
146
|
-
* @
|
149
|
+
* @default base
|
147
150
|
*/
|
148
|
-
font
|
151
|
+
font?: 'base' | 'monospace' | 'numeric';
|
149
152
|
/**
|
150
153
|
* Applies font weight to the content.
|
151
154
|
*
|
152
|
-
* @
|
155
|
+
* @default regular
|
153
156
|
*/
|
154
|
-
weight
|
157
|
+
weight?: 'regular' | 'medium' | 'semibold';
|
155
158
|
/**
|
156
159
|
* Aligns text based on the parent container.
|
157
160
|
*
|
158
|
-
* @
|
161
|
+
* @default start
|
159
162
|
*/
|
160
|
-
align
|
163
|
+
align?: 'start' | 'center' | 'end' | 'justify';
|
161
164
|
};
|
162
165
|
|
163
|
-
/**
|
164
|
-
* Text Props
|
165
|
-
*/
|
166
|
-
export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
|
167
|
-
|
168
166
|
/**
|
169
167
|
* Text slots
|
170
168
|
*/
|
171
169
|
export declare type TextSlots = {
|
172
|
-
root: Slot<'span', '
|
170
|
+
root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;
|
173
171
|
};
|
174
172
|
|
175
173
|
/**
|
176
174
|
* State used in rendering Text
|
177
175
|
*/
|
178
|
-
export declare type TextState = ComponentState<TextSlots> &
|
176
|
+
export declare type TextState = ComponentState<TextSlots> & Required<Pick<TextProps, 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'>>;
|
179
177
|
|
180
178
|
declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
|
181
179
|
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `bodyClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "fkhj508",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "figsok6",
|
21
|
+
"Bg96gwp": "f1i3iumi"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Body typography variant
|
@@ -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,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `captionClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "fy9rknc",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "figsok6",
|
21
|
+
"Bg96gwp": "fwrc4pm"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Caption typography variant
|
@@ -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,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `displayClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "fpyltcb",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "f1ivgwrt"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Display typography variant
|
@@ -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,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `headlineClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "f1pp30po",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "f106mvju"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Headline typography variant
|
@@ -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,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `largeTitleClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "f15afnhw",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "fr3w3wp"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Large Title typography variant
|
@@ -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,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `subheadlineClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "fod5ikn",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "faaz57k"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Subheadline typography variant
|
@@ -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 +1 @@
|
|
1
|
-
{"version":3,"file":"Text.types.js","sourceRoot":"../src/","sources":["components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', '
|
1
|
+
{"version":3,"file":"Text.types.js","sourceRoot":"../src/","sources":["components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;\n};\n\n/**\n * Text Props\n */\nexport type TextProps = ComponentProps<TextSlots> & {\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @default false\n */\n truncate?: boolean;\n\n /**\n * Applies a block display for the content.\n *\n * @default false\n */\n block?: boolean;\n\n /**\n * Applies the italic font style to the content.\n *\n * @default false\n */\n italic?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @default false\n */\n underline?: boolean;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @default false\n */\n strikethrough?: boolean;\n\n /**\n * Applies font size and line height based on the theme tokens.\n *\n * @default 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the font family to the content.\n *\n * @default base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies font weight to the content.\n *\n * @default regular\n */\n weight?: 'regular' | 'medium' | 'semibold';\n\n /**\n * Aligns text based on the parent container.\n *\n * @default start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n};\n\n/**\n * State used in rendering Text\n */\nexport type TextState = ComponentState<TextSlots> &\n Required<\n Pick<\n TextProps,\n 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'\n >\n >;\n"]}
|
@@ -26,16 +26,16 @@ export const useText_unstable = (props, ref) => {
|
|
26
26
|
} = props;
|
27
27
|
const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
28
28
|
const state = {
|
29
|
-
|
30
|
-
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
29
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
31
30
|
block: block !== null && block !== void 0 ? block : false,
|
31
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
32
32
|
italic: italic !== null && italic !== void 0 ? italic : false,
|
33
|
-
underline: underline !== null && underline !== void 0 ? underline : false,
|
34
|
-
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
35
33
|
size: size !== null && size !== void 0 ? size : 300,
|
36
|
-
|
34
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
35
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
36
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
37
37
|
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
38
|
-
|
38
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
39
39
|
components: {
|
40
40
|
root: 'span'
|
41
41
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAC3F,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,KAAlB;AAAyB,IAAA,MAAzB;AAAiC,IAAA,SAAjC;AAA4C,IAAA,aAA5C;AAA2D,IAAA,IAA3D;AAAiE,IAAA,IAAjE;AAAuE,IAAA,MAAvE;AAA+E,IAAA;AAA/E,MAAyF,KAA/F;AACA,QAAM,EAAE,GAAG,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,
|
1
|
+
{"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAC3F,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,KAAlB;AAAyB,IAAA,MAAzB;AAAiC,IAAA,SAAjC;AAA4C,IAAA,aAA5C;AAA2D,IAAA,IAA3D;AAAiE,IAAA,IAAjE;AAAuE,IAAA,MAAvE;AAA+E,IAAA;AAA/E,MAAyF,KAA/F;AACA,QAAM,EAAE,GAAG,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OADO;AAEvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAFO;AAGvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,MAHS;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GALS;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAPC;AAQvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KARD;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IAVS;AAYvB,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAZW;AAcvB,IAAA,IAAI,EAAE,qBAAqB,CAAC,EAAD,EAAK;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAAL;AAdJ,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"sourceRoot":"../src/"}
|
@@ -1,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `title1ClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "fccw675",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "f1ebx5kk"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Title 1 typography variant
|
@@ -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,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `title2ClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "fojgt09",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "fcen8rp"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"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);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Title 2 typography variant
|
@@ -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/"}
|
@@ -1,6 +1,6 @@
|
|
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
4
|
/**
|
5
5
|
* @deprecated Use `title3ClassNames.root` instead.
|
6
6
|
*/
|
@@ -17,11 +17,11 @@ const useStyles = /*#__PURE__*/__styles({
|
|
17
17
|
"root": {
|
18
18
|
"Bahqtrf": "fk6fouc",
|
19
19
|
"Be2twd7": "f1x0m3f5",
|
20
|
-
"
|
21
|
-
"
|
20
|
+
"Bhrd7zp": "fl43uef",
|
21
|
+
"Bg96gwp": "fb86gi6"
|
22
22
|
}
|
23
23
|
}, {
|
24
|
-
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".
|
24
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
|
25
25
|
});
|
26
26
|
/**
|
27
27
|
* Text wrapper component for the Title 3 typography variant
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,gBAA3B;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["components/Title3/Title3.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 `title3ClassNames.root` instead.\n */\nexport const title3ClassName = 'fui-Title3';\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
|
@@ -7,9 +7,9 @@ exports.Body = exports.bodyClassNames = exports.bodyClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `bodyClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.bodyClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "fkhj508",
|
30
|
+
"Bhrd7zp": "figsok6",
|
31
|
+
"Bg96gwp": "f1i3iumi"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Body typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,aAAA,GAAgB,UAAhB;AACA,OAAA,CAAA,cAAA,GAA4C;AACvD,EAAA,IAAI,EAAE;AADiD,CAA5C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,OAAA,CAAA,cAAA,CAAe,IAF2C;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAd,CAA5C","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/"}
|
@@ -7,9 +7,9 @@ exports.Caption = exports.captionClassNames = exports.captionClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `captionClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.captionClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "fy9rknc",
|
30
|
+
"Bhrd7zp": "figsok6",
|
31
|
+
"Bg96gwp": "fwrc4pm"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Caption typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AACA,OAAA,CAAA,iBAAA,GAA+C;AAC1D,EAAA,IAAI,EAAE;AADoD,CAA/C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAAA,CAAkB,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","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/"}
|
@@ -7,9 +7,9 @@ exports.Display = exports.displayClassNames = exports.displayClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `displayClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.displayClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "fpyltcb",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "f1ivgwrt"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Display typography variant
|
29
38
|
*/
|