@fluentui/react-text 0.0.0-nightlya372ad979820211103.1 → 0.0.0-nightlya54302c0b220211124.1
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 +67 -16
- package/CHANGELOG.md +23 -10
- package/dist/react-text.d.ts +20 -0
- package/lib/components/Body/Body.d.ts +1 -0
- package/lib/components/Body/Body.js +5 -3
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.d.ts +1 -0
- package/lib/components/Caption/Caption.js +5 -3
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.d.ts +1 -0
- package/lib/components/Display/Display.js +5 -3
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +1 -0
- package/lib/components/Headline/Headline.js +5 -3
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +1 -0
- package/lib/components/LargeTitle/LargeTitle.js +5 -3
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.d.ts +1 -0
- package/lib/components/Subheadline/Subheadline.js +5 -3
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/Text.js +2 -2
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/renderText.js +6 -7
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +20 -19
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +1 -0
- package/lib/components/Text/useTextStyles.js +5 -4
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +1 -0
- package/lib/components/Title1/Title1.js +5 -3
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.d.ts +1 -0
- package/lib/components/Title2/Title2.js +5 -3
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.d.ts +1 -0
- package/lib/components/Title3/Title3.js +5 -3
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/wrapper.d.ts +1 -0
- package/lib/components/wrapper.js +9 -6
- package/lib/components/wrapper.js.map +1 -1
- package/lib/typographyStyles/typographyStyles.js +54 -72
- package/lib/typographyStyles/typographyStyles.js.map +1 -1
- package/lib-commonjs/Body.js +1 -1
- package/lib-commonjs/Caption.js +1 -1
- package/lib-commonjs/Display.js +1 -1
- package/lib-commonjs/Headline.js +1 -1
- package/lib-commonjs/LargeTitle.js +1 -1
- package/lib-commonjs/Subheadline.js +1 -1
- package/lib-commonjs/Text.js +1 -1
- package/lib-commonjs/Title1.js +1 -1
- package/lib-commonjs/Title2.js +1 -1
- package/lib-commonjs/Title3.js +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +1 -0
- package/lib-commonjs/components/Body/Body.js +9 -7
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Body/index.js +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +1 -0
- package/lib-commonjs/components/Caption/Caption.js +9 -7
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Caption/index.js +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +1 -0
- package/lib-commonjs/components/Display/Display.js +9 -7
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +1 -0
- package/lib-commonjs/components/Headline/Headline.js +9 -7
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/Headline/index.js +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +1 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -7
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +1 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +9 -7
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Subheadline/index.js +1 -1
- package/lib-commonjs/components/Text/Text.js +6 -6
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +1 -1
- package/lib-commonjs/components/Text/renderText.js +8 -10
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +21 -21
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +1 -0
- package/lib-commonjs/components/Text/useTextStyles.js +8 -7
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.d.ts +1 -0
- package/lib-commonjs/components/Title1/Title1.js +9 -7
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +1 -0
- package/lib-commonjs/components/Title2/Title2.js +9 -7
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +1 -0
- package/lib-commonjs/components/Title3/Title3.js +9 -7
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js +1 -1
- package/lib-commonjs/components/wrapper.d.ts +1 -0
- package/lib-commonjs/components/wrapper.js +12 -9
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/typographyStyles/index.js +1 -1
- package/lib-commonjs/typographyStyles/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/typographyStyles.js +54 -72
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
- package/package.json +9 -9
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -16
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -27
- package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -1,9 +1,10 @@
|
|
1
1
|
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
|
+
export const textClassName = 'fui-Text';
|
2
3
|
/**
|
3
4
|
* Styles for the root slot
|
4
5
|
*/
|
5
6
|
|
6
|
-
|
7
|
+
const useStyles = /*#__PURE__*/__styles({
|
7
8
|
"root": {
|
8
9
|
"Bahqtrf": "fk6fouc",
|
9
10
|
"Be2twd7": "fkhj508",
|
@@ -102,9 +103,9 @@ var useStyles = /*#__PURE__*/__styles({
|
|
102
103
|
*/
|
103
104
|
|
104
105
|
|
105
|
-
export
|
106
|
-
|
107
|
-
state.root.className = mergeClasses(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);
|
106
|
+
export const useTextStyles = state => {
|
107
|
+
const styles = useStyles();
|
108
|
+
state.root.className = mergeClasses(textClassName, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
|
108
109
|
return state;
|
109
110
|
};
|
110
111
|
//# sourceMappingURL=useTextStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA;;AAEG;;AACH,
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA,OAAO,MAAM,aAAa,GAAG,UAAtB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6FA;;AAEG;;;AACH,OAAO,MAAM,aAAa,GAAI,KAAD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jC,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YArBH,EAsBjC,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cAtBL,EAuBjC,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAvBF,EAwBjC,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBC,EAyBjC,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBH,EA0BjC,KAAK,CAAC,IAAN,CAAW,SA1BsB,CAAnC;AA6BA,SAAO,KAAP;AACD,CAjCM","sourceRoot":""}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { __styles } from '@fluentui/react-make-styles';
|
2
2
|
import { typographyStyles } from '../../typographyStyles/index';
|
3
3
|
import { createWrapper } from '../wrapper';
|
4
|
+
export const title1ClassName = 'fui-Title1';
|
4
5
|
/**
|
5
6
|
* Styles for the root slot
|
6
7
|
*/
|
7
8
|
|
8
|
-
|
9
|
+
const useStyles = /*#__PURE__*/__styles({
|
9
10
|
"root": {
|
10
11
|
"Bahqtrf": "fk6fouc",
|
11
12
|
"Be2twd7": "fccw675",
|
@@ -20,8 +21,9 @@ var useStyles = /*#__PURE__*/__styles({
|
|
20
21
|
*/
|
21
22
|
|
22
23
|
|
23
|
-
export
|
24
|
-
useStyles
|
24
|
+
export const Title1 = /*#__PURE__*/createWrapper({
|
25
|
+
useStyles,
|
26
|
+
className: title1ClassName,
|
25
27
|
displayName: 'Title1'
|
26
28
|
});
|
27
29
|
//# sourceMappingURL=Title1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,
|
1
|
+
{"version":3,"sources":["../../../src/components/Title1/Title1.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;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,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourceRoot":""}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { __styles } from '@fluentui/react-make-styles';
|
2
2
|
import { typographyStyles } from '../../typographyStyles/index';
|
3
3
|
import { createWrapper } from '../wrapper';
|
4
|
+
export const title2ClassName = 'fui-Title2';
|
4
5
|
/**
|
5
6
|
* Styles for the root slot
|
6
7
|
*/
|
7
8
|
|
8
|
-
|
9
|
+
const useStyles = /*#__PURE__*/__styles({
|
9
10
|
"root": {
|
10
11
|
"Bahqtrf": "fk6fouc",
|
11
12
|
"Be2twd7": "fojgt09",
|
@@ -20,8 +21,9 @@ var useStyles = /*#__PURE__*/__styles({
|
|
20
21
|
*/
|
21
22
|
|
22
23
|
|
23
|
-
export
|
24
|
-
useStyles
|
24
|
+
export const Title2 = /*#__PURE__*/createWrapper({
|
25
|
+
useStyles,
|
26
|
+
className: title2ClassName,
|
25
27
|
displayName: 'Title2'
|
26
28
|
});
|
27
29
|
//# sourceMappingURL=Title2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,
|
1
|
+
{"version":3,"sources":["../../../src/components/Title2/Title2.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;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,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourceRoot":""}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { __styles } from '@fluentui/react-make-styles';
|
2
2
|
import { typographyStyles } from '../../typographyStyles/index';
|
3
3
|
import { createWrapper } from '../wrapper';
|
4
|
+
export const title3ClassName = 'fui-Title3';
|
4
5
|
/**
|
5
6
|
* Styles for the root slot
|
6
7
|
*/
|
7
8
|
|
8
|
-
|
9
|
+
const useStyles = /*#__PURE__*/__styles({
|
9
10
|
"root": {
|
10
11
|
"Bahqtrf": "fk6fouc",
|
11
12
|
"Be2twd7": "f1x0m3f5",
|
@@ -20,8 +21,9 @@ var useStyles = /*#__PURE__*/__styles({
|
|
20
21
|
*/
|
21
22
|
|
22
23
|
|
23
|
-
export
|
24
|
-
useStyles
|
24
|
+
export const Title3 = /*#__PURE__*/createWrapper({
|
25
|
+
useStyles,
|
26
|
+
className: title3ClassName,
|
25
27
|
displayName: 'Title3'
|
26
28
|
});
|
27
29
|
//# sourceMappingURL=Title3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,
|
1
|
+
{"version":3,"sources":["../../../src/components/Title3/Title3.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA,OAAO,MAAM,eAAe,GAAG,YAAxB;AAEP;;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,eAF4D;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAD,CAAjE","sourceRoot":""}
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import type { TextProps } from '../Text';
|
3
3
|
export declare type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;
|
4
4
|
export declare function createWrapper(options: {
|
5
|
+
className: string;
|
5
6
|
displayName: string;
|
6
7
|
useStyles: () => Record<'root', string>;
|
7
8
|
}): React.FunctionComponent<TextWrapperProps>;
|
@@ -2,13 +2,16 @@ import * as React from 'react';
|
|
2
2
|
import { mergeClasses } from '@fluentui/react-make-styles';
|
3
3
|
import { renderText, useText, useTextStyles } from '../Text';
|
4
4
|
export function createWrapper(options) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
const {
|
6
|
+
useStyles,
|
7
|
+
className,
|
8
|
+
displayName
|
9
|
+
} = options;
|
10
|
+
const Wrapper = /*#__PURE__*/React.forwardRef((props, ref) => {
|
11
|
+
const styles = useStyles();
|
12
|
+
const state = useText(props, ref);
|
10
13
|
useTextStyles(state);
|
11
|
-
state.root.className = mergeClasses(state.root.className, styles.root, props.className);
|
14
|
+
state.root.className = mergeClasses(className, state.root.className, styles.root, props.className);
|
12
15
|
return renderText(state);
|
13
16
|
});
|
14
17
|
Wrapper.displayName = displayName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,6BAA7B;AACA,SAAS,UAAT,EAAqB,OAArB,EAA8B,aAA9B,QAAmD,SAAnD;AAMA,OAAM,SAAU,aAAV,CAAwB,OAAxB,
|
1
|
+
{"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,6BAA7B;AACA,SAAS,UAAT,EAAqB,OAArB,EAA8B,aAA9B,QAAmD,SAAnD;AAMA,OAAM,SAAU,aAAV,CAAwB,OAAxB,EAIL;AACC,QAAM;AAAE,IAAA,SAAF;AAAa,IAAA,SAAb;AAAwB,IAAA;AAAxB,MAAwC,OAA9C;AACA,QAAM,OAAO,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACrF,UAAM,MAAM,GAAG,SAAS,EAAxB;AACA,UAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAqB,GAArB,CAArB;AAEA,IAAA,aAAa,CAAC,KAAD,CAAb;AAEA,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,SAAD,EAAY,KAAK,CAAC,IAAN,CAAW,SAAvB,EAAkC,MAAM,CAAC,IAAzC,EAA+C,KAAK,CAAC,SAArD,CAAnC;AAEA,WAAO,UAAU,CAAC,KAAD,CAAjB;AACD,GATsD,CAAvD;AAUA,EAAA,OAAO,CAAC,WAAR,GAAsB,WAAtB;AAEA,SAAO,OAAP;AACD","sourceRoot":""}
|
@@ -1,76 +1,58 @@
|
|
1
1
|
/**
|
2
2
|
* Make-styles rules for the typography variants
|
3
3
|
*/
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
};
|
28
|
-
export
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
};
|
52
|
-
export
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
};
|
59
|
-
};
|
60
|
-
export var largeTitle = function (theme) {
|
61
|
-
return {
|
62
|
-
fontFamily: theme.fontFamilyBase,
|
63
|
-
fontSize: theme.fontSizeHero900,
|
64
|
-
lineHeight: theme.lineHeightHero900,
|
65
|
-
fontWeight: theme.fontWeightSemibold
|
66
|
-
};
|
67
|
-
};
|
68
|
-
export var display = function (theme) {
|
69
|
-
return {
|
70
|
-
fontFamily: theme.fontFamilyBase,
|
71
|
-
fontSize: theme.fontSizeHero1000,
|
72
|
-
lineHeight: theme.lineHeightHero1000,
|
73
|
-
fontWeight: theme.fontWeightSemibold
|
74
|
-
};
|
75
|
-
};
|
4
|
+
export const caption = theme => ({
|
5
|
+
fontFamily: theme.fontFamilyBase,
|
6
|
+
fontSize: theme.fontSizeBase200,
|
7
|
+
lineHeight: theme.lineHeightBase200,
|
8
|
+
fontWeight: theme.fontWeightRegular
|
9
|
+
});
|
10
|
+
export const body = theme => ({
|
11
|
+
fontFamily: theme.fontFamilyBase,
|
12
|
+
fontSize: theme.fontSizeBase300,
|
13
|
+
lineHeight: theme.lineHeightBase300,
|
14
|
+
fontWeight: theme.fontWeightRegular
|
15
|
+
});
|
16
|
+
export const subheadline = theme => ({
|
17
|
+
fontFamily: theme.fontFamilyBase,
|
18
|
+
fontSize: theme.fontSizeBase400,
|
19
|
+
lineHeight: theme.lineHeightBase400,
|
20
|
+
fontWeight: theme.fontWeightSemibold
|
21
|
+
});
|
22
|
+
export const headline = theme => ({
|
23
|
+
fontFamily: theme.fontFamilyBase,
|
24
|
+
fontSize: theme.fontSizeBase500,
|
25
|
+
lineHeight: theme.lineHeightBase500,
|
26
|
+
fontWeight: theme.fontWeightSemibold
|
27
|
+
});
|
28
|
+
export const title3 = theme => ({
|
29
|
+
fontFamily: theme.fontFamilyBase,
|
30
|
+
fontSize: theme.fontSizeBase600,
|
31
|
+
lineHeight: theme.lineHeightBase600,
|
32
|
+
fontWeight: theme.fontWeightSemibold
|
33
|
+
});
|
34
|
+
export const title2 = theme => ({
|
35
|
+
fontFamily: theme.fontFamilyBase,
|
36
|
+
fontSize: theme.fontSizeHero700,
|
37
|
+
lineHeight: theme.lineHeightHero700,
|
38
|
+
fontWeight: theme.fontWeightSemibold
|
39
|
+
});
|
40
|
+
export const title1 = theme => ({
|
41
|
+
fontFamily: theme.fontFamilyBase,
|
42
|
+
fontSize: theme.fontSizeHero800,
|
43
|
+
lineHeight: theme.lineHeightHero800,
|
44
|
+
fontWeight: theme.fontWeightSemibold
|
45
|
+
});
|
46
|
+
export const largeTitle = theme => ({
|
47
|
+
fontFamily: theme.fontFamilyBase,
|
48
|
+
fontSize: theme.fontSizeHero900,
|
49
|
+
lineHeight: theme.lineHeightHero900,
|
50
|
+
fontWeight: theme.fontWeightSemibold
|
51
|
+
});
|
52
|
+
export const display = theme => ({
|
53
|
+
fontFamily: theme.fontFamilyBase,
|
54
|
+
fontSize: theme.fontSizeHero1000,
|
55
|
+
lineHeight: theme.lineHeightHero1000,
|
56
|
+
fontWeight: theme.fontWeightSemibold
|
57
|
+
});
|
76
58
|
//# sourceMappingURL=typographyStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/typographyStyles/typographyStyles.ts"],"names":[],"mappings":"AAGA;;AAEG;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../src/typ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MAAM,MAAM,GAAuC,KAAK,KAAK;AAClE,EAAA,UAAU,EAAE,KAAK,CAAC,cADgD;AAElE,EAAA,QAAQ,EAAE,KAAK,CAAC,eAFkD;AAGlE,EAAA,UAAU,EAAE,KAAK,CAAC,iBAHgD;AAIlE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJgD,CAAL,CAAxD;AAMP,OAAO,MAAM,MAAM,GAAuC,KAAK,KAAK;AAClE,EAAA,UAAU,EAAE,KAAK,CAAC,cADgD;AAElE,EAAA,QAAQ,EAAE,KAAK,CAAC,eAFkD;AAGlE,EAAA,UAAU,EAAE,KAAK,CAAC,iBAHgD;AAIlE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJgD,CAAL,CAAxD;AAMP,OAAO,MAAM,UAAU,GAAuC,KAAK,KAAK;AACtE,EAAA,UAAU,EAAE,KAAK,CAAC,cADoD;AAEtE,EAAA,QAAQ,EAAE,KAAK,CAAC,eAFsD;AAGtE,EAAA,UAAU,EAAE,KAAK,CAAC,iBAHoD;AAItE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJoD,CAAL,CAA5D;AAMP,OAAO,MAAM,OAAO,GAAuC,KAAK,KAAK;AACnE,EAAA,UAAU,EAAE,KAAK,CAAC,cADiD;AAEnE,EAAA,QAAQ,EAAE,KAAK,CAAC,gBAFmD;AAGnE,EAAA,UAAU,EAAE,KAAK,CAAC,kBAHiD;AAInE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJiD,CAAL,CAAzD","sourceRoot":""}
|
package/lib-commonjs/Body.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Body/index"), exports);
|
10
10
|
//# sourceMappingURL=Body.js.map
|
package/lib-commonjs/Caption.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Caption/index"), exports);
|
10
10
|
//# sourceMappingURL=Caption.js.map
|
package/lib-commonjs/Display.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Display/index"), exports);
|
10
10
|
//# sourceMappingURL=Display.js.map
|
package/lib-commonjs/Headline.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Headline/index"), exports);
|
10
10
|
//# sourceMappingURL=Headline.js.map
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/LargeTitle/index"), exports);
|
10
10
|
//# sourceMappingURL=LargeTitle.js.map
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Subheadline/index"), exports);
|
10
10
|
//# sourceMappingURL=Subheadline.js.map
|
package/lib-commonjs/Text.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Text/index"), exports);
|
10
10
|
//# sourceMappingURL=Text.js.map
|
package/lib-commonjs/Title1.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Title1/index"), exports);
|
10
10
|
//# sourceMappingURL=Title1.js.map
|
package/lib-commonjs/Title2.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Title2/index"), exports);
|
10
10
|
//# sourceMappingURL=Title2.js.map
|
package/lib-commonjs/Title3.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
|
7
|
-
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
9
|
tslib_1.__exportStar(require("./components/Title3/index"), exports);
|
10
10
|
//# sourceMappingURL=Title3.js.map
|
@@ -3,19 +3,20 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Body = void 0;
|
6
|
+
exports.Body = exports.bodyClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.bodyClassName = 'fui-Body';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
20
|
"root": {}
|
20
21
|
}, {});
|
21
22
|
/**
|
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
24
25
|
|
25
26
|
|
26
27
|
exports.Body = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
28
|
+
useStyles,
|
29
|
+
className: exports.bodyClassName,
|
28
30
|
displayName: 'Body'
|
29
31
|
});
|
30
32
|
//# sourceMappingURL=Body.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,OAAA,CAAA,aAF0D;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAd,CAA5C","sourceRoot":""}
|
@@ -3,19 +3,20 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Caption = void 0;
|
6
|
+
exports.Caption = exports.captionClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.captionClassName = 'fui-Caption';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
20
|
"root": {}
|
20
21
|
}, {});
|
21
22
|
/**
|
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
24
25
|
|
25
26
|
|
26
27
|
exports.Caption = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
28
|
+
useStyles,
|
29
|
+
className: exports.captionClassName,
|
28
30
|
displayName: 'Caption'
|
29
31
|
});
|
30
32
|
//# sourceMappingURL=Caption.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourceRoot":""}
|
@@ -3,19 +3,20 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Display = void 0;
|
6
|
+
exports.Display = exports.displayClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.displayClassName = 'fui-Display';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
20
|
"root": {}
|
20
21
|
}, {});
|
21
22
|
/**
|
@@ -24,7 +25,8 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
24
25
|
|
25
26
|
|
26
27
|
exports.Display = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
28
|
+
useStyles,
|
29
|
+
className: exports.displayClassName,
|
28
30
|
displayName: 'Display'
|
29
31
|
});
|
30
32
|
//# sourceMappingURL=Display.js.map
|