@fluentui/react-text 0.0.0-nightly0025eeb82020211108.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 +1283 -0
- package/CHANGELOG.md +472 -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 +183 -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 +7 -0
- package/lib/components/Body/Body.js +29 -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 +7 -0
- package/lib/components/Caption/Caption.js +29 -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 +7 -0
- package/lib/components/Display/Display.js +29 -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 +7 -0
- package/lib/components/Headline/Headline.js +29 -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 +7 -0
- package/lib/components/LargeTitle/LargeTitle.js +29 -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 +7 -0
- package/lib/components/Subheadline/Subheadline.js +29 -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 +14 -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 +50 -0
- package/lib/components/Text/useText.js.map +1 -0
- package/lib/components/Text/useTextStyles.d.ts +6 -0
- package/lib/components/Text/useTextStyles.js +111 -0
- package/lib/components/Text/useTextStyles.js.map +1 -0
- package/lib/components/Title1/Title1.d.ts +7 -0
- package/lib/components/Title1/Title1.js +29 -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 +7 -0
- package/lib/components/Title2/Title2.js +29 -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 +7 -0
- package/lib/components/Title3/Title3.js +29 -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 +8 -0
- package/lib/components/wrapper.js +20 -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 +58 -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 +7 -0
- package/lib-commonjs/components/Body/Body.js +32 -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 +7 -0
- package/lib-commonjs/components/Caption/Caption.js +32 -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 +7 -0
- package/lib-commonjs/components/Display/Display.js +32 -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 +7 -0
- package/lib-commonjs/components/Headline/Headline.js +32 -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 +7 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +32 -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 +7 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +32 -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 +25 -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 +6 -0
- package/lib-commonjs/components/Text/useTextStyles.js +121 -0
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -0
- package/lib-commonjs/components/Title1/Title1.d.ts +7 -0
- package/lib-commonjs/components/Title1/Title1.js +32 -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 +7 -0
- package/lib-commonjs/components/Title2/Title2.js +32 -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 +7 -0
- package/lib-commonjs/components/Title3/Title3.js +32 -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 +8 -0
- package/lib-commonjs/components/wrapper.js +32 -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 +91 -0
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -0
- package/package.json +64 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Caption = exports.captionClassName = void 0;
|
7
|
+
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
|
+
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
+
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.captionClassName = 'fui-Caption';
|
15
|
+
/**
|
16
|
+
* Styles for the root slot
|
17
|
+
*/
|
18
|
+
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
20
|
+
"root": {}
|
21
|
+
}, {});
|
22
|
+
/**
|
23
|
+
* Text wrapper component for the Caption typography variant
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
exports.Caption = /*#__PURE__*/wrapper_1.createWrapper({
|
28
|
+
useStyles,
|
29
|
+
className: exports.captionClassName,
|
30
|
+
displayName: 'Caption'
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=Caption.js.map
|
@@ -0,0 +1 @@
|
|
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":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Caption';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Caption/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const displayClassName = "fui-Display";
|
4
|
+
/**
|
5
|
+
* Text wrapper component for the Display typography variant
|
6
|
+
*/
|
7
|
+
export declare const Display: FunctionComponent<TextWrapperProps>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Display = exports.displayClassName = void 0;
|
7
|
+
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
|
+
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
+
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.displayClassName = 'fui-Display';
|
15
|
+
/**
|
16
|
+
* Styles for the root slot
|
17
|
+
*/
|
18
|
+
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
20
|
+
"root": {}
|
21
|
+
}, {});
|
22
|
+
/**
|
23
|
+
* Text wrapper component for the Display typography variant
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
exports.Display = /*#__PURE__*/wrapper_1.createWrapper({
|
28
|
+
useStyles,
|
29
|
+
className: exports.displayClassName,
|
30
|
+
displayName: 'Display'
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=Display.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Display/Display.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":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Display';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Display/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const headlineClassName = "fui-Headline";
|
4
|
+
/**
|
5
|
+
* Text wrapper component for the Headline typography variant
|
6
|
+
*/
|
7
|
+
export declare const Headline: FunctionComponent<TextWrapperProps>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Headline = exports.headlineClassName = void 0;
|
7
|
+
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
|
+
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
+
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.headlineClassName = 'fui-Headline';
|
15
|
+
/**
|
16
|
+
* Styles for the root slot
|
17
|
+
*/
|
18
|
+
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
20
|
+
"root": {}
|
21
|
+
}, {});
|
22
|
+
/**
|
23
|
+
* Text wrapper component for the Headline typography variant
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
exports.Headline = /*#__PURE__*/wrapper_1.createWrapper({
|
28
|
+
useStyles,
|
29
|
+
className: exports.headlineClassName,
|
30
|
+
displayName: 'Headline'
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=Headline.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Headline/Headline.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,iBAAA,GAAoB,cAApB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAF8D;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Headline';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Headline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const largeTitleClassName = "fui-LargeTitle";
|
4
|
+
/**
|
5
|
+
* Text wrapper component for the Large Title typography variant
|
6
|
+
*/
|
7
|
+
export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.LargeTitle = exports.largeTitleClassName = void 0;
|
7
|
+
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
|
+
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
+
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.largeTitleClassName = 'fui-LargeTitle';
|
15
|
+
/**
|
16
|
+
* Styles for the root slot
|
17
|
+
*/
|
18
|
+
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
20
|
+
"root": {}
|
21
|
+
}, {});
|
22
|
+
/**
|
23
|
+
* Text wrapper component for the Large Title typography variant
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
exports.LargeTitle = /*#__PURE__*/wrapper_1.createWrapper({
|
28
|
+
useStyles,
|
29
|
+
className: exports.largeTitleClassName,
|
30
|
+
displayName: 'LargeTitle'
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=LargeTitle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/LargeTitle/LargeTitle.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,mBAAA,GAAsB,gBAAtB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,OAAA,CAAA,mBAFgE;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAd,CAAlD","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './LargeTitle';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/LargeTitle/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
2
|
+
import { TextWrapperProps } from '../wrapper';
|
3
|
+
export declare const subheadlineClassName = "fui-Subheadline";
|
4
|
+
/**
|
5
|
+
* Text wrapper component for the Subheadline typography variant
|
6
|
+
*/
|
7
|
+
export declare const Subheadline: FunctionComponent<TextWrapperProps>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Subheadline = exports.subheadlineClassName = void 0;
|
7
|
+
|
8
|
+
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
|
+
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
+
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.subheadlineClassName = 'fui-Subheadline';
|
15
|
+
/**
|
16
|
+
* Styles for the root slot
|
17
|
+
*/
|
18
|
+
|
19
|
+
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
20
|
+
"root": {}
|
21
|
+
}, {});
|
22
|
+
/**
|
23
|
+
* Text wrapper component for the Subheadline typography variant
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
exports.Subheadline = /*#__PURE__*/wrapper_1.createWrapper({
|
28
|
+
useStyles,
|
29
|
+
className: exports.subheadlineClassName,
|
30
|
+
displayName: 'Subheadline'
|
31
|
+
});
|
32
|
+
//# sourceMappingURL=Subheadline.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Subheadline/Subheadline.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,oBAAA,GAAuB,iBAAvB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,OAAA,CAAA,oBAFiE;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAd,CAAnD","sourceRoot":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Subheadline';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Subheadline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -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,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Text = void 0;
|
7
|
+
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
|
+
|
10
|
+
const useText_1 = /*#__PURE__*/require("./useText");
|
11
|
+
|
12
|
+
const renderText_1 = /*#__PURE__*/require("./renderText");
|
13
|
+
|
14
|
+
const useTextStyles_1 = /*#__PURE__*/require("./useTextStyles");
|
15
|
+
/**
|
16
|
+
* Typography and styling abstraction component used to ensure consistency of text.
|
17
|
+
*/
|
18
|
+
|
19
|
+
|
20
|
+
exports.Text = /*#__PURE__*/React.forwardRef((props, ref) => {
|
21
|
+
const state = useText_1.useText(props, ref);
|
22
|
+
useTextStyles_1.useTextStyles(state);
|
23
|
+
return renderText_1.renderText(state); // Work around some small mismatches in inferred types which don't matter in practice
|
24
|
+
});
|
25
|
+
exports.Text.displayName = 'Text';
|
26
|
+
//# sourceMappingURL=Text.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,SAAA,CAAA,OAAA,CAAQ,KAAR,EAAe,GAAf,CAAd;AAEA,EAAA,eAAA,CAAA,aAAA,CAAc,KAAd;AAEA,SAAO,YAAA,CAAA,UAAA,CAAW,KAAX,CAAP,CALkF,CAMlF;AACD,CAPmD,CAAvC;AASb,OAAA,CAAA,IAAA,CAAK,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,"sources":[],"names":[],"mappings":"","sourceRoot":""}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
|
7
|
+
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
|
+
|
9
|
+
tslib_1.__exportStar(require("./Text"), exports);
|
10
|
+
|
11
|
+
tslib_1.__exportStar(require("./Text.types"), exports);
|
12
|
+
|
13
|
+
tslib_1.__exportStar(require("./renderText"), exports);
|
14
|
+
|
15
|
+
tslib_1.__exportStar(require("./useText"), exports);
|
16
|
+
|
17
|
+
tslib_1.__exportStar(require("./useTextStyles"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.renderText = void 0;
|
7
|
+
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
|
+
|
10
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
11
|
+
/**
|
12
|
+
* Render the final JSX of Text
|
13
|
+
*/
|
14
|
+
|
15
|
+
|
16
|
+
const renderText = state => {
|
17
|
+
const {
|
18
|
+
slots,
|
19
|
+
slotProps
|
20
|
+
} = react_utilities_1.getSlots(state);
|
21
|
+
return React.createElement(slots.root, Object.assign({}, slotProps.root));
|
22
|
+
};
|
23
|
+
|
24
|
+
exports.renderText = renderText;
|
25
|
+
//# sourceMappingURL=renderText.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,UAAU,GAAI,KAAD,IAAqB;AAC7C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","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,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.useText = void 0;
|
7
|
+
|
8
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
9
|
+
/**
|
10
|
+
* Create the state required to render Text.
|
11
|
+
*
|
12
|
+
* The returned state can be modified with hooks such as useTextStyles,
|
13
|
+
* before being passed to renderText.
|
14
|
+
*
|
15
|
+
* @param props - props from this instance of Text
|
16
|
+
* @param ref - reference to root HTMLElement of Text
|
17
|
+
*/
|
18
|
+
|
19
|
+
|
20
|
+
const useText = (props, ref) => {
|
21
|
+
var _a;
|
22
|
+
|
23
|
+
const {
|
24
|
+
wrap,
|
25
|
+
truncate,
|
26
|
+
block,
|
27
|
+
italic,
|
28
|
+
underline,
|
29
|
+
strikethrough,
|
30
|
+
size,
|
31
|
+
font,
|
32
|
+
weight,
|
33
|
+
align
|
34
|
+
} = props;
|
35
|
+
const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
36
|
+
const state = {
|
37
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
38
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
39
|
+
block: block !== null && block !== void 0 ? block : false,
|
40
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
41
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
42
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
43
|
+
size: size !== null && size !== void 0 ? size : 300,
|
44
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
45
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
46
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
47
|
+
components: {
|
48
|
+
root: 'span'
|
49
|
+
},
|
50
|
+
root: react_utilities_1.getNativeElementProps(as, {
|
51
|
+
ref,
|
52
|
+
...props,
|
53
|
+
as
|
54
|
+
})
|
55
|
+
};
|
56
|
+
return state;
|
57
|
+
};
|
58
|
+
|
59
|
+
exports.useText = useText;
|
60
|
+
//# sourceMappingURL=useText.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,OAAO,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAClF,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,GAAA,CAAA,EAAA,GAAG,KAAK,CAAC,EAAT,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,EAAX,GAAe,MAAvB;AAEA,QAAM,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,iBAAA,CAAA,qBAAA,CAAsB,EAAtB,EAA0B;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAA1B;AAdiB,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM;;AAAM,OAAA,CAAA,OAAA,GAAO,OAAP","sourceRoot":""}
|