@fluentui/react-text 9.0.0-nightly.b5b7401007.0 → 9.0.0-rc.3
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 +250 -18
- package/CHANGELOG.md +70 -11
- package/MIGRATION.md +153 -103
- package/dist/react-text.d.ts +28 -8
- package/lib/Body.js.map +1 -1
- package/lib/Caption.js.map +1 -1
- package/lib/Display.js.map +1 -1
- package/lib/Headline.js.map +1 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subheadline.js.map +1 -1
- package/lib/Text.js.map +1 -1
- package/lib/Title1.js.map +1 -1
- package/lib/Title2.js.map +1 -1
- package/lib/Title3.js.map +1 -1
- package/lib/components/Body/Body.d.ts +1 -0
- package/lib/components/Body/Body.js +6 -4
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Body/index.js.map +1 -1
- package/lib/components/Caption/Caption.d.ts +1 -0
- package/lib/components/Caption/Caption.js +6 -4
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Caption/index.js.map +1 -1
- package/lib/components/Display/Display.d.ts +1 -0
- package/lib/components/Display/Display.js +6 -4
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Display/index.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +1 -0
- package/lib/components/Headline/Headline.js +6 -4
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/index.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +1 -0
- package/lib/components/LargeTitle/LargeTitle.js +6 -4
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/LargeTitle/index.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.d.ts +1 -0
- package/lib/components/Subheadline/Subheadline.js +6 -4
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Subheadline/index.js.map +1 -1
- package/lib/components/Text/Text.js +7 -7
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.d.ts +4 -3
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.d.ts +1 -1
- package/lib/components/Text/renderText.js +7 -7
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.d.ts +3 -3
- package/lib/components/Text/useText.js +22 -21
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +2 -1
- package/lib/components/Text/useTextStyles.js +15 -11
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +1 -0
- package/lib/components/Title1/Title1.js +6 -4
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title1/index.js.map +1 -1
- package/lib/components/Title2/Title2.d.ts +1 -0
- package/lib/components/Title2/Title2.js +6 -4
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title2/index.js.map +1 -1
- package/lib/components/Title3/Title3.d.ts +1 -0
- package/lib/components/Title3/Title3.js +6 -4
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/Title3/index.js.map +1 -1
- package/lib/components/wrapper.d.ts +1 -0
- package/lib/components/wrapper.js +13 -10
- package/lib/components/wrapper.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/typographyStyles/index.js.map +1 -1
- package/lib/typographyStyles/typographyStyles.d.ts +10 -11
- package/lib/typographyStyles/typographyStyles.js +55 -71
- package/lib/typographyStyles/typographyStyles.js.map +1 -1
- package/lib-commonjs/Body.js +1 -1
- package/lib-commonjs/Body.js.map +1 -1
- package/lib-commonjs/Caption.js +1 -1
- package/lib-commonjs/Caption.js.map +1 -1
- package/lib-commonjs/Display.js +1 -1
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/Headline.js +1 -1
- package/lib-commonjs/Headline.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +1 -1
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subheadline.js +1 -1
- package/lib-commonjs/Subheadline.js.map +1 -1
- package/lib-commonjs/Text.js +1 -1
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +1 -1
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +1 -1
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +1 -1
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +1 -0
- package/lib-commonjs/components/Body/Body.js +9 -9
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Body/index.js +1 -1
- package/lib-commonjs/components/Body/index.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +1 -0
- package/lib-commonjs/components/Caption/Caption.js +9 -9
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Caption/index.js +1 -1
- package/lib-commonjs/components/Caption/index.js.map +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +1 -0
- package/lib-commonjs/components/Display/Display.js +9 -9
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js +1 -1
- package/lib-commonjs/components/Display/index.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +1 -0
- package/lib-commonjs/components/Headline/Headline.js +9 -9
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/Headline/index.js +1 -1
- package/lib-commonjs/components/Headline/index.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +1 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -9
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js +1 -1
- package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +1 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +9 -9
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Subheadline/index.js +1 -1
- package/lib-commonjs/components/Subheadline/index.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +8 -8
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.d.ts +4 -3
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +1 -1
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.d.ts +1 -1
- package/lib-commonjs/components/Text/renderText.js +11 -12
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.d.ts +3 -3
- package/lib-commonjs/components/Text/useText.js +25 -25
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +2 -1
- package/lib-commonjs/components/Text/useTextStyles.js +19 -14
- 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 -9
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js +1 -1
- package/lib-commonjs/components/Title1/index.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +1 -0
- package/lib-commonjs/components/Title2/Title2.js +9 -9
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js +1 -1
- package/lib-commonjs/components/Title2/index.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +1 -0
- package/lib-commonjs/components/Title3/Title3.js +9 -9
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js +1 -1
- package/lib-commonjs/components/Title3/index.js.map +1 -1
- package/lib-commonjs/components/wrapper.d.ts +1 -0
- package/lib-commonjs/components/wrapper.js +14 -11
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/index.js +1 -1
- package/lib-commonjs/typographyStyles/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +10 -11
- package/lib-commonjs/typographyStyles/typographyStyles.js +48 -89
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
- package/package.json +8 -10
- 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
@@ -3,28 +3,28 @@
|
|
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_1 = /*#__PURE__*/require("@griffel/react");
|
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
|
-
"root": {}
|
20
|
-
}, {});
|
19
|
+
const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Body typography variant
|
23
22
|
*/
|
24
23
|
|
25
24
|
|
26
25
|
exports.Body = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
26
|
+
useStyles,
|
27
|
+
className: exports.bodyClassName,
|
28
28
|
displayName: 'Body'
|
29
29
|
});
|
30
30
|
//# sourceMappingURL=Body.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,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,OAAA,SAAA,QAAlB;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const bodyClassName = 'fui-Body';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: bodyClassName,\n displayName: 'Body',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Body/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Body';\n"],"sourceRoot":"../src/"}
|
@@ -3,28 +3,28 @@
|
|
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_1 = /*#__PURE__*/require("@griffel/react");
|
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
|
-
"root": {}
|
20
|
-
}, {});
|
19
|
+
const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Caption typography variant
|
23
22
|
*/
|
24
23
|
|
25
24
|
|
26
25
|
exports.Caption = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
26
|
+
useStyles,
|
27
|
+
className: exports.captionClassName,
|
28
28
|
displayName: 'Caption'
|
29
29
|
});
|
30
30
|
//# sourceMappingURL=Caption.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,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,OAAA,SAAA,QAAlB;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const captionClassName = 'fui-Caption';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: captionClassName,\n displayName: 'Caption',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Caption/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Caption';\n"],"sourceRoot":"../src/"}
|
@@ -3,28 +3,28 @@
|
|
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_1 = /*#__PURE__*/require("@griffel/react");
|
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
|
-
"root": {}
|
20
|
-
}, {});
|
19
|
+
const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Display typography variant
|
23
22
|
*/
|
24
23
|
|
25
24
|
|
26
25
|
exports.Display = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
26
|
+
useStyles,
|
27
|
+
className: exports.displayClassName,
|
28
28
|
displayName: 'Display'
|
29
29
|
});
|
30
30
|
//# sourceMappingURL=Display.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,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,OAAA,SAAA,QAAlB;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const displayClassName = 'fui-Display';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: displayClassName,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Display/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Display';\n"],"sourceRoot":"../src/"}
|
@@ -3,28 +3,28 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Headline = void 0;
|
6
|
+
exports.Headline = exports.headlineClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.headlineClassName = 'fui-Headline';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
-
"root": {}
|
20
|
-
}, {});
|
19
|
+
const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Headline typography variant
|
23
22
|
*/
|
24
23
|
|
25
24
|
|
26
25
|
exports.Headline = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
26
|
+
useStyles,
|
27
|
+
className: exports.headlineClassName,
|
28
28
|
displayName: 'Headline'
|
29
29
|
});
|
30
30
|
//# sourceMappingURL=Headline.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,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,OAAA,SAAA,QAAlB;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const headlineClassName = 'fui-Headline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassName,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Headline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Headline';\n"],"sourceRoot":"../src/"}
|
@@ -3,28 +3,28 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.LargeTitle = void 0;
|
6
|
+
exports.LargeTitle = exports.largeTitleClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.largeTitleClassName = 'fui-LargeTitle';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
-
"root": {}
|
20
|
-
}, {});
|
19
|
+
const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Large Title typography variant
|
23
22
|
*/
|
24
23
|
|
25
24
|
|
26
25
|
exports.LargeTitle = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
26
|
+
useStyles,
|
27
|
+
className: exports.largeTitleClassName,
|
28
28
|
displayName: 'LargeTitle'
|
29
29
|
});
|
30
30
|
//# sourceMappingURL=LargeTitle.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,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,OAAA,SAAA,QAAlB;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const largeTitleClassName = 'fui-LargeTitle';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.largeTitle,\n});\n\n/**\n * Text wrapper component for the Large Title typography variant\n */\nexport const LargeTitle: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: largeTitleClassName,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/LargeTitle/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './LargeTitle';\n"],"sourceRoot":"../src/"}
|
@@ -3,28 +3,28 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Subheadline = void 0;
|
6
|
+
exports.Subheadline = exports.subheadlineClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
|
10
|
+
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
11
|
|
12
|
-
|
12
|
+
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
13
|
+
|
14
|
+
exports.subheadlineClassName = 'fui-Subheadline';
|
13
15
|
/**
|
14
16
|
* Styles for the root slot
|
15
17
|
*/
|
16
18
|
|
17
|
-
|
18
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
19
|
-
"root": {}
|
20
|
-
}, {});
|
19
|
+
const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
21
20
|
/**
|
22
21
|
* Text wrapper component for the Subheadline typography variant
|
23
22
|
*/
|
24
23
|
|
25
24
|
|
26
25
|
exports.Subheadline = /*#__PURE__*/wrapper_1.createWrapper({
|
27
|
-
useStyles
|
26
|
+
useStyles,
|
27
|
+
className: exports.subheadlineClassName,
|
28
28
|
displayName: 'Subheadline'
|
29
29
|
});
|
30
30
|
//# sourceMappingURL=Subheadline.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,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,OAAA,SAAA,QAAlB;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","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const subheadlineClassName = 'fui-Subheadline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassName,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Subheadline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Subheadline';\n"],"sourceRoot":"../src/"}
|
@@ -5,22 +5,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.Text = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
|
-
|
10
|
+
const useText_1 = /*#__PURE__*/require("./useText");
|
11
11
|
|
12
|
-
|
12
|
+
const renderText_1 = /*#__PURE__*/require("./renderText");
|
13
13
|
|
14
|
-
|
14
|
+
const useTextStyles_1 = /*#__PURE__*/require("./useTextStyles");
|
15
15
|
/**
|
16
16
|
* Typography and styling abstraction component used to ensure consistency of text.
|
17
17
|
*/
|
18
18
|
|
19
19
|
|
20
|
-
exports.Text = /*#__PURE__*/React.forwardRef(
|
21
|
-
|
22
|
-
useTextStyles_1.
|
23
|
-
return renderText_1.
|
20
|
+
exports.Text = /*#__PURE__*/React.forwardRef((props, ref) => {
|
21
|
+
const state = useText_1.useText_unstable(props, ref);
|
22
|
+
useTextStyles_1.useTextStyles_unstable(state);
|
23
|
+
return renderText_1.renderText_unstable(state); // Work around some small mismatches in inferred types which don't matter in practice
|
24
24
|
});
|
25
25
|
exports.Text.displayName = 'Text';
|
26
26
|
//# sourceMappingURL=Text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["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,gBAAA,CAAiB,KAAjB,EAAwB,GAAxB,CAAd;AAEA,EAAA,eAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,SAAO,YAAA,CAAA,mBAAA,CAAoB,KAApB,CAAP,CALkF,CAMlF;AACD,CAPmD,CAAvC;AASb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"sourceRoot":"../src/"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
2
|
/**
|
3
3
|
* Text slots
|
4
4
|
*/
|
5
5
|
export declare type TextSlots = {
|
6
|
-
root:
|
6
|
+
root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
|
7
7
|
};
|
8
|
-
|
8
|
+
declare type TextCommons = {
|
9
9
|
/**
|
10
10
|
* Wraps the text content on white spaces.
|
11
11
|
*
|
@@ -75,3 +75,4 @@ export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>
|
|
75
75
|
* State used in rendering Text
|
76
76
|
*/
|
77
77
|
export declare type TextState = ComponentState<TextSlots> & TextCommons;
|
78
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["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","sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"],"sourceRoot":"../src/"}
|
@@ -3,25 +3,24 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.renderText_unstable = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
10
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
13
11
|
/**
|
14
12
|
* Render the final JSX of Text
|
15
13
|
*/
|
16
14
|
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
return React.createElement(slots.root,
|
16
|
+
const renderText_unstable = state => {
|
17
|
+
const {
|
18
|
+
slots,
|
19
|
+
slotProps
|
20
|
+
} = react_utilities_1.getSlots(state);
|
21
|
+
return React.createElement(slots.root, { ...slotProps.root
|
22
|
+
});
|
24
23
|
};
|
25
24
|
|
26
|
-
exports.
|
25
|
+
exports.renderText_unstable = renderText_unstable;
|
27
26
|
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["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,mBAAmB,GAAI,KAAD,IAAqB;AACtD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlots<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"sourceRoot":"../src/"}
|
@@ -3,10 +3,10 @@ import type { TextProps, TextState } from './Text.types';
|
|
3
3
|
/**
|
4
4
|
* Create the state required to render Text.
|
5
5
|
*
|
6
|
-
* The returned state can be modified with hooks such as
|
7
|
-
* before being passed to
|
6
|
+
* The returned state can be modified with hooks such as useTextStyles_unstable,
|
7
|
+
* before being passed to renderText_unstable.
|
8
8
|
*
|
9
9
|
* @param props - props from this instance of Text
|
10
10
|
* @param ref - reference to root HTMLElement of Text
|
11
11
|
*/
|
12
|
-
export declare const
|
12
|
+
export declare const useText_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
|