@fluentui/react-text 0.0.0-nightly050f89bf0020211102.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 +1277 -0
- package/CHANGELOG.md +471 -0
- package/LICENSE +15 -0
- package/MIGRATION.md +680 -0
- package/README.md +99 -0
- package/Spec.md +162 -0
- package/assets/typography-examples.gif +0 -0
- package/dist/react-text.d.ts +163 -0
- package/lib/Body.d.ts +1 -0
- package/lib/Body.js +2 -0
- package/lib/Body.js.map +1 -0
- package/lib/Caption.d.ts +1 -0
- package/lib/Caption.js +2 -0
- package/lib/Caption.js.map +1 -0
- package/lib/Display.d.ts +1 -0
- package/lib/Display.js +2 -0
- package/lib/Display.js.map +1 -0
- package/lib/Headline.d.ts +1 -0
- package/lib/Headline.js +2 -0
- package/lib/Headline.js.map +1 -0
- package/lib/LargeTitle.d.ts +1 -0
- package/lib/LargeTitle.js +2 -0
- package/lib/LargeTitle.js.map +1 -0
- package/lib/Subheadline.d.ts +1 -0
- package/lib/Subheadline.js +2 -0
- package/lib/Subheadline.js.map +1 -0
- package/lib/Text.d.ts +1 -0
- package/lib/Text.js +2 -0
- package/lib/Text.js.map +1 -0
- package/lib/Title1.d.ts +1 -0
- package/lib/Title1.js +2 -0
- package/lib/Title1.js.map +1 -0
- package/lib/Title2.d.ts +1 -0
- package/lib/Title2.js +2 -0
- package/lib/Title2.js.map +1 -0
- package/lib/Title3.d.ts +1 -0
- package/lib/Title3.js +2 -0
- package/lib/Title3.js.map +1 -0
- package/lib/common/isConformant.d.ts +4 -0
- package/lib/common/isConformant.js +16 -0
- package/lib/common/isConformant.js.map +1 -0
- package/lib/components/Body/Body.d.ts +6 -0
- package/lib/components/Body/Body.js +27 -0
- package/lib/components/Body/Body.js.map +1 -0
- package/lib/components/Body/index.d.ts +1 -0
- package/lib/components/Body/index.js +2 -0
- package/lib/components/Body/index.js.map +1 -0
- package/lib/components/Caption/Caption.d.ts +6 -0
- package/lib/components/Caption/Caption.js +27 -0
- package/lib/components/Caption/Caption.js.map +1 -0
- package/lib/components/Caption/index.d.ts +1 -0
- package/lib/components/Caption/index.js +2 -0
- package/lib/components/Caption/index.js.map +1 -0
- package/lib/components/Display/Display.d.ts +6 -0
- package/lib/components/Display/Display.js +27 -0
- package/lib/components/Display/Display.js.map +1 -0
- package/lib/components/Display/index.d.ts +1 -0
- package/lib/components/Display/index.js +2 -0
- package/lib/components/Display/index.js.map +1 -0
- package/lib/components/Headline/Headline.d.ts +6 -0
- package/lib/components/Headline/Headline.js +27 -0
- package/lib/components/Headline/Headline.js.map +1 -0
- package/lib/components/Headline/index.d.ts +1 -0
- package/lib/components/Headline/index.js +2 -0
- package/lib/components/Headline/index.js.map +1 -0
- package/lib/components/LargeTitle/LargeTitle.d.ts +6 -0
- package/lib/components/LargeTitle/LargeTitle.js +27 -0
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -0
- package/lib/components/LargeTitle/index.d.ts +1 -0
- package/lib/components/LargeTitle/index.js +2 -0
- package/lib/components/LargeTitle/index.js.map +1 -0
- package/lib/components/Subheadline/Subheadline.d.ts +6 -0
- package/lib/components/Subheadline/Subheadline.js +27 -0
- package/lib/components/Subheadline/Subheadline.js.map +1 -0
- package/lib/components/Subheadline/index.d.ts +1 -0
- package/lib/components/Subheadline/index.js +2 -0
- package/lib/components/Subheadline/index.js.map +1 -0
- package/lib/components/Text/Text.d.ts +6 -0
- package/lib/components/Text/Text.js +15 -0
- package/lib/components/Text/Text.js.map +1 -0
- package/lib/components/Text/Text.types.d.ts +77 -0
- package/lib/components/Text/Text.types.js +2 -0
- package/lib/components/Text/Text.types.js.map +1 -0
- package/lib/components/Text/index.d.ts +5 -0
- package/lib/components/Text/index.js +6 -0
- package/lib/components/Text/index.js.map +1 -0
- package/lib/components/Text/renderText.d.ts +5 -0
- package/lib/components/Text/renderText.js +15 -0
- package/lib/components/Text/renderText.js.map +1 -0
- package/lib/components/Text/useText.d.ts +12 -0
- package/lib/components/Text/useText.js +49 -0
- package/lib/components/Text/useText.js.map +1 -0
- package/lib/components/Text/useTextStyles.d.ts +5 -0
- package/lib/components/Text/useTextStyles.js +110 -0
- package/lib/components/Text/useTextStyles.js.map +1 -0
- package/lib/components/Title1/Title1.d.ts +6 -0
- package/lib/components/Title1/Title1.js +27 -0
- package/lib/components/Title1/Title1.js.map +1 -0
- package/lib/components/Title1/index.d.ts +1 -0
- package/lib/components/Title1/index.js +2 -0
- package/lib/components/Title1/index.js.map +1 -0
- package/lib/components/Title2/Title2.d.ts +6 -0
- package/lib/components/Title2/Title2.js +27 -0
- package/lib/components/Title2/Title2.js.map +1 -0
- package/lib/components/Title2/index.d.ts +1 -0
- package/lib/components/Title2/index.js +2 -0
- package/lib/components/Title2/index.js.map +1 -0
- package/lib/components/Title3/Title3.d.ts +6 -0
- package/lib/components/Title3/Title3.js +27 -0
- package/lib/components/Title3/Title3.js.map +1 -0
- package/lib/components/Title3/index.d.ts +1 -0
- package/lib/components/Title3/index.js +2 -0
- package/lib/components/Title3/index.js.map +1 -0
- package/lib/components/wrapper.d.ts +7 -0
- package/lib/components/wrapper.js +17 -0
- package/lib/components/wrapper.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/lib/typographyStyles/index.d.ts +2 -0
- package/lib/typographyStyles/index.js +3 -0
- package/lib/typographyStyles/index.js.map +1 -0
- package/lib/typographyStyles/typographyStyles.d.ts +14 -0
- package/lib/typographyStyles/typographyStyles.js +76 -0
- package/lib/typographyStyles/typographyStyles.js.map +1 -0
- package/lib-commonjs/Body.d.ts +1 -0
- package/lib-commonjs/Body.js +10 -0
- package/lib-commonjs/Body.js.map +1 -0
- package/lib-commonjs/Caption.d.ts +1 -0
- package/lib-commonjs/Caption.js +10 -0
- package/lib-commonjs/Caption.js.map +1 -0
- package/lib-commonjs/Display.d.ts +1 -0
- package/lib-commonjs/Display.js +10 -0
- package/lib-commonjs/Display.js.map +1 -0
- package/lib-commonjs/Headline.d.ts +1 -0
- package/lib-commonjs/Headline.js +10 -0
- package/lib-commonjs/Headline.js.map +1 -0
- package/lib-commonjs/LargeTitle.d.ts +1 -0
- package/lib-commonjs/LargeTitle.js +10 -0
- package/lib-commonjs/LargeTitle.js.map +1 -0
- package/lib-commonjs/Subheadline.d.ts +1 -0
- package/lib-commonjs/Subheadline.js +10 -0
- package/lib-commonjs/Subheadline.js.map +1 -0
- package/lib-commonjs/Text.d.ts +1 -0
- package/lib-commonjs/Text.js +10 -0
- package/lib-commonjs/Text.js.map +1 -0
- package/lib-commonjs/Title1.d.ts +1 -0
- package/lib-commonjs/Title1.js +10 -0
- package/lib-commonjs/Title1.js.map +1 -0
- package/lib-commonjs/Title2.d.ts +1 -0
- package/lib-commonjs/Title2.js +10 -0
- package/lib-commonjs/Title2.js.map +1 -0
- package/lib-commonjs/Title3.d.ts +1 -0
- package/lib-commonjs/Title3.js +10 -0
- package/lib-commonjs/Title3.js.map +1 -0
- package/lib-commonjs/common/isConformant.d.ts +4 -0
- package/lib-commonjs/common/isConformant.js +27 -0
- package/lib-commonjs/common/isConformant.js.map +1 -0
- package/lib-commonjs/components/Body/Body.d.ts +6 -0
- package/lib-commonjs/components/Body/Body.js +30 -0
- package/lib-commonjs/components/Body/Body.js.map +1 -0
- package/lib-commonjs/components/Body/index.d.ts +1 -0
- package/lib-commonjs/components/Body/index.js +10 -0
- package/lib-commonjs/components/Body/index.js.map +1 -0
- package/lib-commonjs/components/Caption/Caption.d.ts +6 -0
- package/lib-commonjs/components/Caption/Caption.js +30 -0
- package/lib-commonjs/components/Caption/Caption.js.map +1 -0
- package/lib-commonjs/components/Caption/index.d.ts +1 -0
- package/lib-commonjs/components/Caption/index.js +10 -0
- package/lib-commonjs/components/Caption/index.js.map +1 -0
- package/lib-commonjs/components/Display/Display.d.ts +6 -0
- package/lib-commonjs/components/Display/Display.js +30 -0
- package/lib-commonjs/components/Display/Display.js.map +1 -0
- package/lib-commonjs/components/Display/index.d.ts +1 -0
- package/lib-commonjs/components/Display/index.js +10 -0
- package/lib-commonjs/components/Display/index.js.map +1 -0
- package/lib-commonjs/components/Headline/Headline.d.ts +6 -0
- package/lib-commonjs/components/Headline/Headline.js +30 -0
- package/lib-commonjs/components/Headline/Headline.js.map +1 -0
- package/lib-commonjs/components/Headline/index.d.ts +1 -0
- package/lib-commonjs/components/Headline/index.js +10 -0
- package/lib-commonjs/components/Headline/index.js.map +1 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +6 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +30 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -0
- package/lib-commonjs/components/LargeTitle/index.d.ts +1 -0
- package/lib-commonjs/components/LargeTitle/index.js +10 -0
- package/lib-commonjs/components/LargeTitle/index.js.map +1 -0
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +6 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +30 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -0
- package/lib-commonjs/components/Subheadline/index.d.ts +1 -0
- package/lib-commonjs/components/Subheadline/index.js +10 -0
- package/lib-commonjs/components/Subheadline/index.js.map +1 -0
- package/lib-commonjs/components/Text/Text.d.ts +6 -0
- package/lib-commonjs/components/Text/Text.js +26 -0
- package/lib-commonjs/components/Text/Text.js.map +1 -0
- package/lib-commonjs/components/Text/Text.types.d.ts +77 -0
- package/lib-commonjs/components/Text/Text.types.js +6 -0
- package/lib-commonjs/components/Text/Text.types.js.map +1 -0
- package/lib-commonjs/components/Text/index.d.ts +5 -0
- package/lib-commonjs/components/Text/index.js +18 -0
- package/lib-commonjs/components/Text/index.js.map +1 -0
- package/lib-commonjs/components/Text/renderText.d.ts +5 -0
- package/lib-commonjs/components/Text/renderText.js +27 -0
- package/lib-commonjs/components/Text/renderText.js.map +1 -0
- package/lib-commonjs/components/Text/useText.d.ts +12 -0
- package/lib-commonjs/components/Text/useText.js +60 -0
- package/lib-commonjs/components/Text/useText.js.map +1 -0
- package/lib-commonjs/components/Text/useTextStyles.d.ts +5 -0
- package/lib-commonjs/components/Text/useTextStyles.js +120 -0
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -0
- package/lib-commonjs/components/Title1/Title1.d.ts +6 -0
- package/lib-commonjs/components/Title1/Title1.js +30 -0
- package/lib-commonjs/components/Title1/Title1.js.map +1 -0
- package/lib-commonjs/components/Title1/index.d.ts +1 -0
- package/lib-commonjs/components/Title1/index.js +10 -0
- package/lib-commonjs/components/Title1/index.js.map +1 -0
- package/lib-commonjs/components/Title2/Title2.d.ts +6 -0
- package/lib-commonjs/components/Title2/Title2.js +30 -0
- package/lib-commonjs/components/Title2/Title2.js.map +1 -0
- package/lib-commonjs/components/Title2/index.d.ts +1 -0
- package/lib-commonjs/components/Title2/index.js +10 -0
- package/lib-commonjs/components/Title2/index.js.map +1 -0
- package/lib-commonjs/components/Title3/Title3.d.ts +6 -0
- package/lib-commonjs/components/Title3/Title3.js +30 -0
- package/lib-commonjs/components/Title3/Title3.js.map +1 -0
- package/lib-commonjs/components/Title3/index.d.ts +1 -0
- package/lib-commonjs/components/Title3/index.js +10 -0
- package/lib-commonjs/components/Title3/index.js.map +1 -0
- package/lib-commonjs/components/wrapper.d.ts +7 -0
- package/lib-commonjs/components/wrapper.js +29 -0
- package/lib-commonjs/components/wrapper.js.map +1 -0
- package/lib-commonjs/index.d.ts +10 -0
- package/lib-commonjs/index.js +28 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/typographyStyles/index.d.ts +2 -0
- package/lib-commonjs/typographyStyles/index.js +11 -0
- package/lib-commonjs/typographyStyles/index.js.map +1 -0
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +14 -0
- package/lib-commonjs/typographyStyles/typographyStyles.js +109 -0
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -0
- package/package.json +64 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,OAAO,gBAAwC,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAlE","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Caption';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Caption/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __styles } from '@fluentui/react-make-styles';
|
2
|
+
import { typographyStyles } from '../../typographyStyles/index';
|
3
|
+
import { createWrapper } from '../wrapper';
|
4
|
+
/**
|
5
|
+
* Styles for the root slot
|
6
|
+
*/
|
7
|
+
|
8
|
+
var useStyles = /*#__PURE__*/__styles({
|
9
|
+
"root": {
|
10
|
+
"Bahqtrf": "fk6fouc",
|
11
|
+
"Be2twd7": "fpyltcb",
|
12
|
+
"Bg96gwp": "f1ivgwrt",
|
13
|
+
"Bhrd7zp": "fl43uef"
|
14
|
+
}
|
15
|
+
}, {
|
16
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
|
17
|
+
});
|
18
|
+
/**
|
19
|
+
* Text wrapper component for the Display typography variant
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
export var Display = /*#__PURE__*/createWrapper({
|
24
|
+
useStyles: useStyles,
|
25
|
+
displayName: 'Display'
|
26
|
+
});
|
27
|
+
//# sourceMappingURL=Display.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Display/Display.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,OAAO,gBAAwC,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAlE","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Display';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Display/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __styles } from '@fluentui/react-make-styles';
|
2
|
+
import { typographyStyles } from '../../typographyStyles/index';
|
3
|
+
import { createWrapper } from '../wrapper';
|
4
|
+
/**
|
5
|
+
* Styles for the root slot
|
6
|
+
*/
|
7
|
+
|
8
|
+
var useStyles = /*#__PURE__*/__styles({
|
9
|
+
"root": {
|
10
|
+
"Bahqtrf": "fk6fouc",
|
11
|
+
"Be2twd7": "f1pp30po",
|
12
|
+
"Bg96gwp": "f106mvju",
|
13
|
+
"Bhrd7zp": "fl43uef"
|
14
|
+
}
|
15
|
+
}, {
|
16
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
|
17
|
+
});
|
18
|
+
/**
|
19
|
+
* Text wrapper component for the Headline typography variant
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
export var Headline = /*#__PURE__*/createWrapper({
|
24
|
+
useStyles: useStyles,
|
25
|
+
displayName: 'Headline'
|
26
|
+
});
|
27
|
+
//# sourceMappingURL=Headline.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,QAAQ,gBAAwC,aAAa,CAAC;AACzE,EAAA,SAAS,EAAA,SADgE;AAEzE,EAAA,WAAW,EAAE;AAF4D,CAAD,CAAnE","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Headline';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Headline/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __styles } from '@fluentui/react-make-styles';
|
2
|
+
import { typographyStyles } from '../../typographyStyles/index';
|
3
|
+
import { createWrapper } from '../wrapper';
|
4
|
+
/**
|
5
|
+
* Styles for the root slot
|
6
|
+
*/
|
7
|
+
|
8
|
+
var useStyles = /*#__PURE__*/__styles({
|
9
|
+
"root": {
|
10
|
+
"Bahqtrf": "fk6fouc",
|
11
|
+
"Be2twd7": "f15afnhw",
|
12
|
+
"Bg96gwp": "fr3w3wp",
|
13
|
+
"Bhrd7zp": "fl43uef"
|
14
|
+
}
|
15
|
+
}, {
|
16
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
|
17
|
+
});
|
18
|
+
/**
|
19
|
+
* Text wrapper component for the Large Title typography variant
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
export var LargeTitle = /*#__PURE__*/createWrapper({
|
24
|
+
useStyles: useStyles,
|
25
|
+
displayName: 'LargeTitle'
|
26
|
+
});
|
27
|
+
//# sourceMappingURL=LargeTitle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,UAAU,gBAAwC,aAAa,CAAC;AAC3E,EAAA,SAAS,EAAA,SADkE;AAE3E,EAAA,WAAW,EAAE;AAF8D,CAAD,CAArE","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './LargeTitle';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/LargeTitle/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __styles } from '@fluentui/react-make-styles';
|
2
|
+
import { typographyStyles } from '../../typographyStyles/index';
|
3
|
+
import { createWrapper } from '../wrapper';
|
4
|
+
/**
|
5
|
+
* Styles for the root slot
|
6
|
+
*/
|
7
|
+
|
8
|
+
var useStyles = /*#__PURE__*/__styles({
|
9
|
+
"root": {
|
10
|
+
"Bahqtrf": "fk6fouc",
|
11
|
+
"Be2twd7": "fod5ikn",
|
12
|
+
"Bg96gwp": "faaz57k",
|
13
|
+
"Bhrd7zp": "fl43uef"
|
14
|
+
}
|
15
|
+
}, {
|
16
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
|
17
|
+
});
|
18
|
+
/**
|
19
|
+
* Text wrapper component for the Subheadline typography variant
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
export var Subheadline = /*#__PURE__*/createWrapper({
|
24
|
+
useStyles: useStyles,
|
25
|
+
displayName: 'Subheadline'
|
26
|
+
});
|
27
|
+
//# sourceMappingURL=Subheadline.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Subheadline/Subheadline.tsx"],"names":[],"mappings":"AACA,yBAA2B,6BAA3B;AACA,SAAS,gBAAT,QAAiC,8BAAjC;AACA,SAAS,aAAT,QAAgD,YAAhD;AAEA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,WAAW,gBAAwC,aAAa,CAAC;AAC5E,EAAA,SAAS,EAAA,SADmE;AAE5E,EAAA,WAAW,EAAE;AAF+D,CAAD,CAAtE","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Subheadline';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Subheadline/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { TextProps } from './Text.types';
|
2
|
+
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
3
|
+
/**
|
4
|
+
* Typography and styling abstraction component used to ensure consistency of text.
|
5
|
+
*/
|
6
|
+
export declare const Text: ForwardRefComponent<TextProps>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { useText } from './useText';
|
3
|
+
import { renderText } from './renderText';
|
4
|
+
import { useTextStyles } from './useTextStyles';
|
5
|
+
/**
|
6
|
+
* Typography and styling abstraction component used to ensure consistency of text.
|
7
|
+
*/
|
8
|
+
|
9
|
+
export var Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
10
|
+
var state = useText(props, ref);
|
11
|
+
useTextStyles(state);
|
12
|
+
return renderText(state); // Work around some small mismatches in inferred types which don't matter in practice
|
13
|
+
});
|
14
|
+
Text.displayName = 'Text';
|
15
|
+
//# sourceMappingURL=Text.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAIA;;AAEG;;AACH,OAAO,IAAM,IAAI,gBAAmC,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC9E,MAAM,KAAK,GAAG,OAAO,CAAC,KAAD,EAAQ,GAAR,CAArB;AAEA,EAAA,aAAa,CAAC,KAAD,CAAb;AAEA,SAAO,UAAU,CAAC,KAAD,CAAjB,CAL8E,CAM9E;AACD,CAPmD,CAA7C;AASP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
2
|
+
/**
|
3
|
+
* Text slots
|
4
|
+
*/
|
5
|
+
export declare type TextSlots = {
|
6
|
+
root: IntrinsicShorthandProps<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
|
7
|
+
};
|
8
|
+
export declare type TextCommons = {
|
9
|
+
/**
|
10
|
+
* Wraps the text content on white spaces.
|
11
|
+
*
|
12
|
+
* @defaultValue true
|
13
|
+
*/
|
14
|
+
wrap: boolean;
|
15
|
+
/**
|
16
|
+
* Truncate overflowing text for block displays.
|
17
|
+
*
|
18
|
+
* @defaultValue false
|
19
|
+
*/
|
20
|
+
truncate: boolean;
|
21
|
+
/**
|
22
|
+
* Applies a block display for the content.
|
23
|
+
*
|
24
|
+
* @defaultValue false
|
25
|
+
*/
|
26
|
+
block: boolean;
|
27
|
+
/**
|
28
|
+
* Applies the italic font style to the content.
|
29
|
+
*
|
30
|
+
* @defaultValue false
|
31
|
+
*/
|
32
|
+
italic: boolean;
|
33
|
+
/**
|
34
|
+
* Applies the underline text decoration to the content.
|
35
|
+
*
|
36
|
+
* @defaultValue false
|
37
|
+
*/
|
38
|
+
underline: boolean;
|
39
|
+
/**
|
40
|
+
* Applies the strikethrough text decoration to the content.
|
41
|
+
*
|
42
|
+
* @defaultValue false
|
43
|
+
*/
|
44
|
+
strikethrough: boolean;
|
45
|
+
/**
|
46
|
+
* Applies font size and line height based on the theme tokens.
|
47
|
+
*
|
48
|
+
* @defaultValue 300
|
49
|
+
*/
|
50
|
+
size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
51
|
+
/**
|
52
|
+
* Applies the font family to the content.
|
53
|
+
*
|
54
|
+
* @defaultValue base
|
55
|
+
*/
|
56
|
+
font: 'base' | 'monospace' | 'numeric';
|
57
|
+
/**
|
58
|
+
* Applies font weight to the content.
|
59
|
+
*
|
60
|
+
* @defaultValue regular
|
61
|
+
*/
|
62
|
+
weight: 'regular' | 'medium' | 'semibold';
|
63
|
+
/**
|
64
|
+
* Aligns text based on the parent container.
|
65
|
+
*
|
66
|
+
* @defaultValue start
|
67
|
+
*/
|
68
|
+
align: 'start' | 'center' | 'end' | 'justify';
|
69
|
+
};
|
70
|
+
/**
|
71
|
+
* Text Props
|
72
|
+
*/
|
73
|
+
export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
|
74
|
+
/**
|
75
|
+
* State used in rendering Text
|
76
|
+
*/
|
77
|
+
export declare type TextState = ComponentState<TextSlots> & TextCommons;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { __assign } from "tslib";
|
2
|
+
import * as React from 'react';
|
3
|
+
import { getSlots } from '@fluentui/react-utilities';
|
4
|
+
/**
|
5
|
+
* Render the final JSX of Text
|
6
|
+
*/
|
7
|
+
|
8
|
+
export var renderText = function (state) {
|
9
|
+
var _a = getSlots(state),
|
10
|
+
slots = _a.slots,
|
11
|
+
slotProps = _a.slotProps;
|
12
|
+
|
13
|
+
return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root));
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=renderText.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,IAAM,UAAU,GAAG,UAAC,KAAD,EAAiB;AACnC,MAAA,EAAA,GAAuB,QAAQ,CAAY,KAAZ,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import type { TextProps, TextState } from './Text.types';
|
3
|
+
/**
|
4
|
+
* Create the state required to render Text.
|
5
|
+
*
|
6
|
+
* The returned state can be modified with hooks such as useTextStyles,
|
7
|
+
* before being passed to renderText.
|
8
|
+
*
|
9
|
+
* @param props - props from this instance of Text
|
10
|
+
* @param ref - reference to root HTMLElement of Text
|
11
|
+
*/
|
12
|
+
export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { __assign } from "tslib";
|
2
|
+
import { getNativeElementProps } from '@fluentui/react-utilities';
|
3
|
+
/**
|
4
|
+
* Create the state required to render Text.
|
5
|
+
*
|
6
|
+
* The returned state can be modified with hooks such as useTextStyles,
|
7
|
+
* before being passed to renderText.
|
8
|
+
*
|
9
|
+
* @param props - props from this instance of Text
|
10
|
+
* @param ref - reference to root HTMLElement of Text
|
11
|
+
*/
|
12
|
+
|
13
|
+
export var useText = function (props, ref) {
|
14
|
+
var _a;
|
15
|
+
|
16
|
+
var wrap = props.wrap,
|
17
|
+
truncate = props.truncate,
|
18
|
+
block = props.block,
|
19
|
+
italic = props.italic,
|
20
|
+
underline = props.underline,
|
21
|
+
strikethrough = props.strikethrough,
|
22
|
+
size = props.size,
|
23
|
+
font = props.font,
|
24
|
+
weight = props.weight,
|
25
|
+
align = props.align;
|
26
|
+
var as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
27
|
+
var state = {
|
28
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
29
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
30
|
+
block: block !== null && block !== void 0 ? block : false,
|
31
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
32
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
33
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
34
|
+
size: size !== null && size !== void 0 ? size : 300,
|
35
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
36
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
37
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
38
|
+
components: {
|
39
|
+
root: 'span'
|
40
|
+
},
|
41
|
+
root: getNativeElementProps(as, __assign(__assign({
|
42
|
+
ref: ref
|
43
|
+
}, props), {
|
44
|
+
as: as
|
45
|
+
}))
|
46
|
+
};
|
47
|
+
return state;
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=useText.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":";AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,IAAM,OAAO,GAAG,UAAC,KAAD,EAAmB,GAAnB,EAA8C;;;AAC3D,MAAA,IAAI,GAAmF,KAAK,CAAxF,IAAJ;AAAA,MAAM,QAAQ,GAAyE,KAAK,CAA9E,QAAd;AAAA,MAAgB,KAAK,GAAkE,KAAK,CAAvE,KAArB;AAAA,MAAuB,MAAM,GAA0D,KAAK,CAA/D,MAA7B;AAAA,MAA+B,SAAS,GAA+C,KAAK,CAApD,SAAxC;AAAA,MAA0C,aAAa,GAAgC,KAAK,CAArC,aAAvD;AAAA,MAAyD,IAAI,GAA0B,KAAK,CAA/B,IAA7D;AAAA,MAA+D,IAAI,GAAoB,KAAK,CAAzB,IAAnE;AAAA,MAAqE,MAAM,GAAY,KAAK,CAAjB,MAA3E;AAAA,MAA6E,KAAK,GAAK,KAAK,CAAV,KAAlF;AACR,MAAM,EAAE,GAAA,CAAA,EAAA,GAAG,KAAK,CAAC,EAAT,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,EAAX,GAAe,MAAvB;AAEA,MAAM,KAAK,GAAc;AACvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IADS;AAEvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAFC;AAGvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAHO;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KALD;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GAPS;AAQvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,MARS;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OAVO;AAYvB,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAZW;AAcvB,IAAA,IAAI,EAAE,qBAAqB,CAAC,EAAD,EAAG,QAAA,CAAA,QAAA,CAAA;AAC5B,MAAA,GAAG,EAAA;AADyB,KAAA,EAEzB,KAFyB,CAAA,EAEpB;AACR,MAAA,EAAE,EAAA;AADM,KAFoB,CAAH;AAdJ,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM","sourceRoot":""}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
|
+
/**
|
3
|
+
* Styles for the root slot
|
4
|
+
*/
|
5
|
+
|
6
|
+
var useStyles = /*#__PURE__*/__styles({
|
7
|
+
"root": {
|
8
|
+
"Bahqtrf": "fk6fouc",
|
9
|
+
"Be2twd7": "fkhj508",
|
10
|
+
"Bg96gwp": "f1i3iumi",
|
11
|
+
"Bhrd7zp": "figsok6",
|
12
|
+
"fsow6f": "fpgzoln",
|
13
|
+
"mc9l5x": "f1w7gpdv",
|
14
|
+
"Huce71": "f6juhto",
|
15
|
+
"Bpg54ce": "f1gl81tg",
|
16
|
+
"ygn44y": "f2jf649"
|
17
|
+
},
|
18
|
+
"nowrap": {
|
19
|
+
"Huce71": "fz5stix",
|
20
|
+
"Bpg54ce": "f1a3p1vp"
|
21
|
+
},
|
22
|
+
"truncate": {
|
23
|
+
"ygn44y": "f1cmbuwj"
|
24
|
+
},
|
25
|
+
"block": {
|
26
|
+
"mc9l5x": "ftgm304"
|
27
|
+
},
|
28
|
+
"italic": {
|
29
|
+
"B80ckks": "f1j4dglz"
|
30
|
+
},
|
31
|
+
"underline": {
|
32
|
+
"dwov6y": "fctto54"
|
33
|
+
},
|
34
|
+
"strikethrough": {
|
35
|
+
"dwov6y": "f1y2xhd0"
|
36
|
+
},
|
37
|
+
"strikethroughUnderline": {
|
38
|
+
"dwov6y": "f13legbo"
|
39
|
+
},
|
40
|
+
"base100": {
|
41
|
+
"Be2twd7": "f13mqy1h",
|
42
|
+
"Bg96gwp": "fcpl73t"
|
43
|
+
},
|
44
|
+
"base200": {
|
45
|
+
"Be2twd7": "fy9rknc",
|
46
|
+
"Bg96gwp": "fwrc4pm"
|
47
|
+
},
|
48
|
+
"base400": {
|
49
|
+
"Be2twd7": "fod5ikn",
|
50
|
+
"Bg96gwp": "faaz57k"
|
51
|
+
},
|
52
|
+
"base500": {
|
53
|
+
"Be2twd7": "f1pp30po",
|
54
|
+
"Bg96gwp": "f106mvju"
|
55
|
+
},
|
56
|
+
"base600": {
|
57
|
+
"Be2twd7": "f1x0m3f5",
|
58
|
+
"Bg96gwp": "fb86gi6"
|
59
|
+
},
|
60
|
+
"hero700": {
|
61
|
+
"Be2twd7": "fojgt09",
|
62
|
+
"Bg96gwp": "fcen8rp"
|
63
|
+
},
|
64
|
+
"hero800": {
|
65
|
+
"Be2twd7": "fccw675",
|
66
|
+
"Bg96gwp": "f1ebx5kk"
|
67
|
+
},
|
68
|
+
"hero900": {
|
69
|
+
"Be2twd7": "f15afnhw",
|
70
|
+
"Bg96gwp": "fr3w3wp"
|
71
|
+
},
|
72
|
+
"hero1000": {
|
73
|
+
"Be2twd7": "fpyltcb",
|
74
|
+
"Bg96gwp": "f1ivgwrt"
|
75
|
+
},
|
76
|
+
"monospace": {
|
77
|
+
"Bahqtrf": "f1fedwem"
|
78
|
+
},
|
79
|
+
"numeric": {
|
80
|
+
"Bahqtrf": "f1uq0ln5"
|
81
|
+
},
|
82
|
+
"weightMedium": {
|
83
|
+
"Bhrd7zp": "fdj6btp"
|
84
|
+
},
|
85
|
+
"weightSemibold": {
|
86
|
+
"Bhrd7zp": "fl43uef"
|
87
|
+
},
|
88
|
+
"alignCenter": {
|
89
|
+
"fsow6f": "f17mccla"
|
90
|
+
},
|
91
|
+
"alignEnd": {
|
92
|
+
"fsow6f": "f12ymhq5"
|
93
|
+
},
|
94
|
+
"alignJustify": {
|
95
|
+
"fsow6f": "f1j59e10"
|
96
|
+
}
|
97
|
+
}, {
|
98
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1gl81tg{overflow:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1a3p1vp{overflow:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".fctto54{-webkit-text-decoration:underline;text-decoration:underline;}", ".f1y2xhd0{-webkit-text-decoration:line-through;text-decoration:line-through;}", ".f13legbo{-webkit-text-decoration:line-through underline;text-decoration:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
|
99
|
+
});
|
100
|
+
/**
|
101
|
+
* Apply styling to the Text slots based on the state
|
102
|
+
*/
|
103
|
+
|
104
|
+
|
105
|
+
export var useTextStyles = function (state) {
|
106
|
+
var styles = useStyles();
|
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);
|
108
|
+
return state;
|
109
|
+
};
|
110
|
+
//# sourceMappingURL=useTextStyles.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA;;AAEG;;AACH,IAAM,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,IAAM,aAAa,GAAG,UAAC,KAAD,EAAiB;AAC5C,MAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,MAAM,CAAC,IAD0B,EAEjC,KAAK,CAAC,IAAN,KAAe,KAAf,IAAwB,MAAM,CAAC,MAFE,EAGjC,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAHQ,EAIjC,KAAK,CAAC,KAAN,IAAe,MAAM,CAAC,KAJW,EAKjC,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MALU,EAMjC,KAAK,CAAC,SAAN,IAAmB,MAAM,CAAC,SANO,EAOjC,KAAK,CAAC,aAAN,IAAuB,MAAM,CAAC,aAPG,EAQjC,KAAK,CAAC,SAAN,IAAmB,KAAK,CAAC,aAAzB,IAA0C,MAAM,CAAC,sBARhB,EASjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OATI,EAUjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAVI,EAWjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAXI,EAYjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAZI,EAajC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAbI,EAcjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAdI,EAejC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAfI,EAgBjC,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAhBI,EAiBjC,KAAK,CAAC,IAAN,KAAe,IAAf,IAAuB,MAAM,CAAC,QAjBG,EAkBjC,KAAK,CAAC,IAAN,KAAe,WAAf,IAA8B,MAAM,CAAC,SAlBJ,EAmBjC,KAAK,CAAC,IAAN,KAAe,SAAf,IAA4B,MAAM,CAAC,OAnBF,EAoBjC,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YApBH,EAqBjC,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cArBL,EAsBjC,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAtBF,EAuBjC,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAvBC,EAwBjC,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAxBH,EAyBjC,KAAK,CAAC,IAAN,CAAW,SAzBsB,CAAnC;AA4BA,SAAO,KAAP;AACD,CAhCM","sourceRoot":""}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __styles } from '@fluentui/react-make-styles';
|
2
|
+
import { typographyStyles } from '../../typographyStyles/index';
|
3
|
+
import { createWrapper } from '../wrapper';
|
4
|
+
/**
|
5
|
+
* Styles for the root slot
|
6
|
+
*/
|
7
|
+
|
8
|
+
var useStyles = /*#__PURE__*/__styles({
|
9
|
+
"root": {
|
10
|
+
"Bahqtrf": "fk6fouc",
|
11
|
+
"Be2twd7": "fccw675",
|
12
|
+
"Bg96gwp": "f1ebx5kk",
|
13
|
+
"Bhrd7zp": "fl43uef"
|
14
|
+
}
|
15
|
+
}, {
|
16
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}"]
|
17
|
+
});
|
18
|
+
/**
|
19
|
+
* Text wrapper component for the Title 1 typography variant
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
export var Title1 = /*#__PURE__*/createWrapper({
|
24
|
+
useStyles: useStyles,
|
25
|
+
displayName: 'Title1'
|
26
|
+
});
|
27
|
+
//# sourceMappingURL=Title1.js.map
|
@@ -0,0 +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,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACH,OAAO,IAAM,MAAM,gBAAwC,aAAa,CAAC;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAD,CAAjE","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Title1';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Title1/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|