@fluentui/react-text 9.0.0-alpha.18 → 9.0.0-alpha.21
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 +142 -5
- package/CHANGELOG.md +47 -6
- package/dist/react-text.d.ts +42 -51
- 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/common/isConformant.js.map +1 -1
- package/lib/components/Body/Body.d.ts +3 -1
- 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 +3 -1
- 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 +3 -1
- 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 +3 -1
- 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 +3 -1
- 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 +3 -1
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Subheadline/index.js.map +1 -1
- package/lib/components/Text/Text.d.ts +1 -1
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.d.ts +20 -29
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.js +3 -3
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.d.ts +1 -2
- package/lib/components/Text/useText.js +36 -8
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +1 -1
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +3 -1
- 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 +3 -1
- 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 +3 -1
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib/components/Title3/index.js.map +1 -1
- package/lib/components/wrapper.d.ts +2 -3
- package/lib/components/wrapper.js +1 -1
- 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.js.map +1 -1
- package/lib-commonjs/Body.js.map +1 -1
- package/lib-commonjs/Caption.js.map +1 -1
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/Headline.js.map +1 -1
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subheadline.js.map +1 -1
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +3 -1
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Body/index.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +3 -1
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Caption/index.js.map +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +3 -1
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Display/index.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +3 -1
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/Headline/index.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +3 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +3 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Subheadline/index.js.map +1 -1
- package/lib-commonjs/components/Text/Text.d.ts +1 -1
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.d.ts +20 -29
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +2 -2
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.d.ts +1 -2
- package/lib-commonjs/components/Text/useText.js +37 -8
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.d.ts +3 -1
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title1/index.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +3 -1
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title2/index.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +3 -1
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Title3/index.js.map +1 -1
- package/lib-commonjs/components/wrapper.d.ts +2 -3
- package/lib-commonjs/components/wrapper.js +1 -1
- package/lib-commonjs/components/wrapper.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/index.js.map +1 -1
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
- package/package.json +7 -7
- package/lib-amd/Body.d.ts +0 -1
- package/lib-amd/Body.js +0 -6
- package/lib-amd/Body.js.map +0 -1
- package/lib-amd/Caption.d.ts +0 -1
- package/lib-amd/Caption.js +0 -6
- package/lib-amd/Caption.js.map +0 -1
- package/lib-amd/Display.d.ts +0 -1
- package/lib-amd/Display.js +0 -6
- package/lib-amd/Display.js.map +0 -1
- package/lib-amd/Headline.d.ts +0 -1
- package/lib-amd/Headline.js +0 -6
- package/lib-amd/Headline.js.map +0 -1
- package/lib-amd/LargeTitle.d.ts +0 -1
- package/lib-amd/LargeTitle.js +0 -6
- package/lib-amd/LargeTitle.js.map +0 -1
- package/lib-amd/Subheadline.d.ts +0 -1
- package/lib-amd/Subheadline.js +0 -6
- package/lib-amd/Subheadline.js.map +0 -1
- package/lib-amd/Text.d.ts +0 -1
- package/lib-amd/Text.js +0 -6
- package/lib-amd/Text.js.map +0 -1
- package/lib-amd/Title1.d.ts +0 -1
- package/lib-amd/Title1.js +0 -6
- package/lib-amd/Title1.js.map +0 -1
- package/lib-amd/Title2.d.ts +0 -1
- package/lib-amd/Title2.js +0 -6
- package/lib-amd/Title2.js.map +0 -1
- package/lib-amd/Title3.d.ts +0 -1
- package/lib-amd/Title3.js +0 -6
- package/lib-amd/Title3.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -4
- package/lib-amd/common/isConformant.js +0 -20
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Body/Body.d.ts +0 -4
- package/lib-amd/components/Body/Body.js +0 -16
- package/lib-amd/components/Body/Body.js.map +0 -1
- package/lib-amd/components/Body/index.d.ts +0 -1
- package/lib-amd/components/Body/index.js +0 -6
- package/lib-amd/components/Body/index.js.map +0 -1
- package/lib-amd/components/Caption/Caption.d.ts +0 -4
- package/lib-amd/components/Caption/Caption.js +0 -16
- package/lib-amd/components/Caption/Caption.js.map +0 -1
- package/lib-amd/components/Caption/index.d.ts +0 -1
- package/lib-amd/components/Caption/index.js +0 -6
- package/lib-amd/components/Caption/index.js.map +0 -1
- package/lib-amd/components/Display/Display.d.ts +0 -4
- package/lib-amd/components/Display/Display.js +0 -16
- package/lib-amd/components/Display/Display.js.map +0 -1
- package/lib-amd/components/Display/index.d.ts +0 -1
- package/lib-amd/components/Display/index.js +0 -6
- package/lib-amd/components/Display/index.js.map +0 -1
- package/lib-amd/components/Headline/Headline.d.ts +0 -4
- package/lib-amd/components/Headline/Headline.js +0 -16
- package/lib-amd/components/Headline/Headline.js.map +0 -1
- package/lib-amd/components/Headline/index.d.ts +0 -1
- package/lib-amd/components/Headline/index.js +0 -6
- package/lib-amd/components/Headline/index.js.map +0 -1
- package/lib-amd/components/LargeTitle/LargeTitle.d.ts +0 -4
- package/lib-amd/components/LargeTitle/LargeTitle.js +0 -16
- package/lib-amd/components/LargeTitle/LargeTitle.js.map +0 -1
- package/lib-amd/components/LargeTitle/index.d.ts +0 -1
- package/lib-amd/components/LargeTitle/index.js +0 -6
- package/lib-amd/components/LargeTitle/index.js.map +0 -1
- package/lib-amd/components/Subheadline/Subheadline.d.ts +0 -4
- package/lib-amd/components/Subheadline/Subheadline.js +0 -16
- package/lib-amd/components/Subheadline/Subheadline.js.map +0 -1
- package/lib-amd/components/Subheadline/index.d.ts +0 -1
- package/lib-amd/components/Subheadline/index.js +0 -6
- package/lib-amd/components/Subheadline/index.js.map +0 -1
- package/lib-amd/components/Text/Text.d.ts +0 -6
- package/lib-amd/components/Text/Text.js +0 -15
- package/lib-amd/components/Text/Text.js.map +0 -1
- package/lib-amd/components/Text/Text.types.d.ts +0 -86
- package/lib-amd/components/Text/Text.types.js +0 -5
- package/lib-amd/components/Text/Text.types.js.map +0 -1
- package/lib-amd/components/Text/index.d.ts +0 -5
- package/lib-amd/components/Text/index.js +0 -10
- package/lib-amd/components/Text/index.js.map +0 -1
- package/lib-amd/components/Text/renderText.d.ts +0 -5
- package/lib-amd/components/Text/renderText.js +0 -14
- package/lib-amd/components/Text/renderText.js.map +0 -1
- package/lib-amd/components/Text/useText.d.ts +0 -13
- package/lib-amd/components/Text/useText.js +0 -25
- package/lib-amd/components/Text/useText.js.map +0 -1
- package/lib-amd/components/Text/useTextStyles.d.ts +0 -5
- package/lib-amd/components/Text/useTextStyles.js +0 -110
- package/lib-amd/components/Text/useTextStyles.js.map +0 -1
- package/lib-amd/components/Title1/Title1.d.ts +0 -4
- package/lib-amd/components/Title1/Title1.js +0 -16
- package/lib-amd/components/Title1/Title1.js.map +0 -1
- package/lib-amd/components/Title1/index.d.ts +0 -1
- package/lib-amd/components/Title1/index.js +0 -6
- package/lib-amd/components/Title1/index.js.map +0 -1
- package/lib-amd/components/Title2/Title2.d.ts +0 -4
- package/lib-amd/components/Title2/Title2.js +0 -16
- package/lib-amd/components/Title2/Title2.js.map +0 -1
- package/lib-amd/components/Title2/index.d.ts +0 -1
- package/lib-amd/components/Title2/index.js +0 -6
- package/lib-amd/components/Title2/index.js.map +0 -1
- package/lib-amd/components/Title3/Title3.d.ts +0 -4
- package/lib-amd/components/Title3/Title3.js +0 -16
- package/lib-amd/components/Title3/Title3.js.map +0 -1
- package/lib-amd/components/Title3/index.d.ts +0 -1
- package/lib-amd/components/Title3/index.js +0 -6
- package/lib-amd/components/Title3/index.js.map +0 -1
- package/lib-amd/components/wrapper.d.ts +0 -8
- package/lib-amd/components/wrapper.js +0 -19
- package/lib-amd/components/wrapper.js.map +0 -1
- package/lib-amd/index.d.ts +0 -10
- package/lib-amd/index.js +0 -15
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/typographyStyles/index.d.ts +0 -2
- package/lib-amd/typographyStyles/index.js +0 -7
- package/lib-amd/typographyStyles/index.js.map +0 -1
- package/lib-amd/typographyStyles/typographyStyles.d.ts +0 -14
- package/lib-amd/typographyStyles/typographyStyles.js +0 -72
- package/lib-amd/typographyStyles/typographyStyles.js.map +0 -1
package/lib-amd/Title1.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title1/index';
|
package/lib-amd/Title1.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./components/Title1/index"], function (require, exports, tslib_1, index_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=Title1.js.map
|
package/lib-amd/Title1.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Title1.js","sourceRoot":"../src/","sources":["Title1.ts"],"names":[],"mappings":";;;IAAA,uCAA0C","sourcesContent":["export * from './components/Title1/index';\n"]}
|
package/lib-amd/Title2.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title2/index';
|
package/lib-amd/Title2.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./components/Title2/index"], function (require, exports, tslib_1, index_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=Title2.js.map
|
package/lib-amd/Title2.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Title2.js","sourceRoot":"../src/","sources":["Title2.ts"],"names":[],"mappings":";;;IAAA,uCAA0C","sourcesContent":["export * from './components/Title2/index';\n"]}
|
package/lib-amd/Title3.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title3/index';
|
package/lib-amd/Title3.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./components/Title3/index"], function (require, exports, tslib_1, index_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(index_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=Title3.js.map
|
package/lib-amd/Title3.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Title3.js","sourceRoot":"../src/","sources":["Title3.ts"],"names":[],"mappings":";;;IAAA,uCAA0C","sourcesContent":["export * from './components/Title3/index';\n"]}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-conformance", "@fluentui/react-conformance-make-styles"], function (require, exports, react_conformance_1, react_conformance_make_styles_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.isConformant = void 0;
|
5
|
-
function isConformant(testInfo) {
|
6
|
-
var defaultOptions = {
|
7
|
-
asPropHandlesRef: true,
|
8
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
9
|
-
extraTests: react_conformance_make_styles_1.default,
|
10
|
-
testOptions: {
|
11
|
-
'make-styles-overrides-win': {
|
12
|
-
callCount: 2,
|
13
|
-
},
|
14
|
-
},
|
15
|
-
};
|
16
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
17
|
-
}
|
18
|
-
exports.isConformant = isConformant;
|
19
|
-
});
|
20
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"isConformant.js","sourceRoot":"../src/","sources":["common/isConformant.ts"],"names":[],"mappings":";;;;IAIA,SAAgB,YAAY,CAC1B,QAAyF;QAEzF,IAAM,cAAc,GAAyC;YAC3D,gBAAgB,EAAE,IAAI;YACtB,aAAa,EAAE,MAAO,CAAC,MAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;YAC5D,UAAU,EAAE,uCAAqC;YACjD,WAAW,EAAE;gBACX,2BAA2B,EAAE;oBAC3B,SAAS,EAAE,CAAC;iBACb;aAGK;SACT,CAAC;QAEF,gCAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAjBD,oCAiBC","sourcesContent":["import { isConformant as baseIsConformant } from '@fluentui/react-conformance';\nimport type { IsConformantOptions, TestObject } from '@fluentui/react-conformance';\nimport makeStylesTests from '@fluentui/react-conformance-make-styles';\n\nexport function isConformant<TProps = {}>(\n testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & { componentPath?: string },\n) {\n const defaultOptions: Partial<IsConformantOptions<TProps>> = {\n asPropHandlesRef: true,\n componentPath: module!.parent!.filename.replace('.test', ''),\n extraTests: makeStylesTests as TestObject<TProps>,\n testOptions: {\n 'make-styles-overrides-win': {\n callCount: 2,\n },\n // TODO: https://github.com/microsoft/fluentui/issues/19618\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } as any,\n };\n\n baseIsConformant(defaultOptions, testInfo);\n}\n"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles", "../../typographyStyles/index", "../wrapper"], function (require, exports, react_make_styles_1, index_1, wrapper_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Body = void 0;
|
5
|
-
/**
|
6
|
-
* Styles for the root slot
|
7
|
-
*/
|
8
|
-
var useStyles = react_make_styles_1.makeStyles({
|
9
|
-
root: index_1.typographyStyles.body,
|
10
|
-
});
|
11
|
-
/**
|
12
|
-
* Text wrapper component for the Body typography variant
|
13
|
-
*/
|
14
|
-
exports.Body = wrapper_1.createWrapper({ useStyles: useStyles, displayName: 'Body' });
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=Body.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Body.js","sourceRoot":"../src/","sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACH,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,wBAAgB,CAAC,IAAI;KAC5B,CAAC,CAAC;IAEH;;OAEG;IACU,QAAA,IAAI,GAAG,uBAAa,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Body' });\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Body';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Body/index.ts"],"names":[],"mappings":";;;IAAA,sCAAuB","sourcesContent":["export * from './Body';\n"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles", "../../typographyStyles/index", "../wrapper"], function (require, exports, react_make_styles_1, index_1, wrapper_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Caption = void 0;
|
5
|
-
/**
|
6
|
-
* Styles for the root slot
|
7
|
-
*/
|
8
|
-
var useStyles = react_make_styles_1.makeStyles({
|
9
|
-
root: index_1.typographyStyles.caption,
|
10
|
-
});
|
11
|
-
/**
|
12
|
-
* Text wrapper component for the Caption typography variant
|
13
|
-
*/
|
14
|
-
exports.Caption = wrapper_1.createWrapper({ useStyles: useStyles, displayName: 'Caption' });
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=Caption.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Caption.js","sourceRoot":"../src/","sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACH,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,wBAAgB,CAAC,OAAO;KAC/B,CAAC,CAAC;IAEH;;OAEG;IACU,QAAA,OAAO,GAAG,uBAAa,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Caption' });\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Caption';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Caption/index.ts"],"names":[],"mappings":";;;IAAA,yCAA0B","sourcesContent":["export * from './Caption';\n"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles", "../../typographyStyles/index", "../wrapper"], function (require, exports, react_make_styles_1, index_1, wrapper_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Display = void 0;
|
5
|
-
/**
|
6
|
-
* Styles for the root slot
|
7
|
-
*/
|
8
|
-
var useStyles = react_make_styles_1.makeStyles({
|
9
|
-
root: index_1.typographyStyles.display,
|
10
|
-
});
|
11
|
-
/**
|
12
|
-
* Text wrapper component for the Display typography variant
|
13
|
-
*/
|
14
|
-
exports.Display = wrapper_1.createWrapper({ useStyles: useStyles, displayName: 'Display' });
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=Display.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Display.js","sourceRoot":"../src/","sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACH,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,wBAAgB,CAAC,OAAO;KAC/B,CAAC,CAAC;IAEH;;OAEG;IACU,QAAA,OAAO,GAAG,uBAAa,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Display' });\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Display';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Display/index.ts"],"names":[],"mappings":";;;IAAA,yCAA0B","sourcesContent":["export * from './Display';\n"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles", "../../typographyStyles/index", "../wrapper"], function (require, exports, react_make_styles_1, index_1, wrapper_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Headline = void 0;
|
5
|
-
/**
|
6
|
-
* Styles for the root slot
|
7
|
-
*/
|
8
|
-
var useStyles = react_make_styles_1.makeStyles({
|
9
|
-
root: index_1.typographyStyles.headline,
|
10
|
-
});
|
11
|
-
/**
|
12
|
-
* Text wrapper component for the Headline typography variant
|
13
|
-
*/
|
14
|
-
exports.Headline = wrapper_1.createWrapper({ useStyles: useStyles, displayName: 'Headline' });
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=Headline.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Headline.js","sourceRoot":"../src/","sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACH,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,wBAAgB,CAAC,QAAQ;KAChC,CAAC,CAAC;IAEH;;OAEG;IACU,QAAA,QAAQ,GAAG,uBAAa,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Headline' });\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Headline';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./Headline"], function (require, exports, tslib_1, Headline_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(Headline_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Headline/index.ts"],"names":[],"mappings":";;;IAAA,0CAA2B","sourcesContent":["export * from './Headline';\n"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles", "../../typographyStyles/index", "../wrapper"], function (require, exports, react_make_styles_1, index_1, wrapper_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.LargeTitle = void 0;
|
5
|
-
/**
|
6
|
-
* Styles for the root slot
|
7
|
-
*/
|
8
|
-
var useStyles = react_make_styles_1.makeStyles({
|
9
|
-
root: index_1.typographyStyles.largeTitle,
|
10
|
-
});
|
11
|
-
/**
|
12
|
-
* Text wrapper component for the Large Title typography variant
|
13
|
-
*/
|
14
|
-
exports.LargeTitle = wrapper_1.createWrapper({ useStyles: useStyles, displayName: 'LargeTitle' });
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=LargeTitle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"LargeTitle.js","sourceRoot":"../src/","sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACH,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,wBAAgB,CAAC,UAAU;KAClC,CAAC,CAAC;IAEH;;OAEG;IACU,QAAA,UAAU,GAAG,uBAAa,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC,CAAC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'LargeTitle' });\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './LargeTitle';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./LargeTitle"], function (require, exports, tslib_1, LargeTitle_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(LargeTitle_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/LargeTitle/index.ts"],"names":[],"mappings":";;;IAAA,4CAA6B","sourcesContent":["export * from './LargeTitle';\n"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles", "../../typographyStyles/index", "../wrapper"], function (require, exports, react_make_styles_1, index_1, wrapper_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Subheadline = void 0;
|
5
|
-
/**
|
6
|
-
* Styles for the root slot
|
7
|
-
*/
|
8
|
-
var useStyles = react_make_styles_1.makeStyles({
|
9
|
-
root: index_1.typographyStyles.subheadline,
|
10
|
-
});
|
11
|
-
/**
|
12
|
-
* Text wrapper component for the Subheadline typography variant
|
13
|
-
*/
|
14
|
-
exports.Subheadline = wrapper_1.createWrapper({ useStyles: useStyles, displayName: 'Subheadline' });
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=Subheadline.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Subheadline.js","sourceRoot":"../src/","sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACH,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,wBAAgB,CAAC,WAAW;KACnC,CAAC,CAAC;IAEH;;OAEG;IACU,QAAA,WAAW,GAAG,uBAAa,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAC","sourcesContent":["import { makeStyles } from '@fluentui/react-make-styles';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper } from '../wrapper';\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 = createWrapper({ useStyles, displayName: 'Subheadline' });\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Subheadline';
|
@@ -1,6 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./Subheadline"], function (require, exports, tslib_1, Subheadline_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(Subheadline_1, exports);
|
5
|
-
});
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Subheadline/index.ts"],"names":[],"mappings":";;;IAAA,6CAA8B","sourcesContent":["export * from './Subheadline';\n"]}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { TextProps } from './Text.types';
|
3
|
-
/**
|
4
|
-
* Typography and styling abstraction component used to ensure consistency of text.
|
5
|
-
*/
|
6
|
-
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
define(["require", "exports", "react", "./useText", "./renderText", "./useTextStyles"], function (require, exports, React, useText_1, renderText_1, useTextStyles_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.Text = void 0;
|
5
|
-
/**
|
6
|
-
* Typography and styling abstraction component used to ensure consistency of text.
|
7
|
-
*/
|
8
|
-
exports.Text = React.forwardRef(function (props, ref) {
|
9
|
-
var state = useText_1.useText(props, ref);
|
10
|
-
useTextStyles_1.useTextStyles(state);
|
11
|
-
return renderText_1.renderText(state);
|
12
|
-
});
|
13
|
-
exports.Text.displayName = 'Text';
|
14
|
-
});
|
15
|
-
//# sourceMappingURL=Text.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"../src/","sources":["components/Text/Text.tsx"],"names":[],"mappings":";;;;IAMA;;OAEG;IACU,QAAA,IAAI,GAAG,KAAK,CAAC,UAAU,CAAyB,UAAC,KAAK,EAAE,GAAG;QACtE,IAAM,KAAK,GAAG,iBAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAElC,6BAAa,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,uBAAU,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,YAAI,CAAC,WAAW,GAAG,MAAM,CAAC","sourcesContent":["import * as React from 'react';\nimport { useText } from './useText';\nimport { renderText } from './renderText';\nimport { useTextStyles } from './useTextStyles';\nimport type { TextProps } from './Text.types';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text = React.forwardRef<HTMLElement, TextProps>((props, ref) => {\n const state = useText(props, ref);\n\n useTextStyles(state);\n return renderText(state);\n});\n\nText.displayName = 'Text';\n"]}
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { ComponentPropsCompat, ComponentStateCompat } from '@fluentui/react-utilities';
|
3
|
-
/**
|
4
|
-
* Text Props
|
5
|
-
*/
|
6
|
-
export interface TextProps extends ComponentPropsCompat, React.HTMLAttributes<HTMLElement> {
|
7
|
-
/**
|
8
|
-
* Wraps the text content on white spaces.
|
9
|
-
*
|
10
|
-
* @defaultValue true
|
11
|
-
*/
|
12
|
-
wrap?: boolean;
|
13
|
-
/**
|
14
|
-
* Truncate overflowing text for block displays.
|
15
|
-
*
|
16
|
-
* @defaultValue false
|
17
|
-
*/
|
18
|
-
truncate?: boolean;
|
19
|
-
/**
|
20
|
-
* Applies a block display for the content.
|
21
|
-
*
|
22
|
-
* @defaultValue false
|
23
|
-
*/
|
24
|
-
block?: boolean;
|
25
|
-
/**
|
26
|
-
* Applies the italic font style to the content.
|
27
|
-
*
|
28
|
-
* @defaultValue false
|
29
|
-
*/
|
30
|
-
italic?: boolean;
|
31
|
-
/**
|
32
|
-
* Applies the underline text decoration to the content.
|
33
|
-
*
|
34
|
-
* @defaultValue false
|
35
|
-
*/
|
36
|
-
underline?: boolean;
|
37
|
-
/**
|
38
|
-
* Applies the strikethrough text decoration to the content.
|
39
|
-
*
|
40
|
-
* @defaultValue false
|
41
|
-
*/
|
42
|
-
strikethrough?: boolean;
|
43
|
-
/**
|
44
|
-
* Applies font size and line height based on the theme tokens.
|
45
|
-
*
|
46
|
-
* @defaultValue 300
|
47
|
-
*/
|
48
|
-
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
49
|
-
/**
|
50
|
-
* Applies the font family to the content.
|
51
|
-
*
|
52
|
-
* @defaultValue base
|
53
|
-
*/
|
54
|
-
font?: 'base' | 'monospace' | 'numeric';
|
55
|
-
/**
|
56
|
-
* Applies font weight to the content.
|
57
|
-
*
|
58
|
-
* @defaultValue regular
|
59
|
-
*/
|
60
|
-
weight?: 'regular' | 'medium' | 'semibold';
|
61
|
-
/**
|
62
|
-
* Aligns text based on the parent container.
|
63
|
-
*
|
64
|
-
* @defaultValue start
|
65
|
-
*/
|
66
|
-
align?: 'start' | 'center' | 'end' | 'justify';
|
67
|
-
/**
|
68
|
-
* Component to be rendered as.
|
69
|
-
*
|
70
|
-
* @defaultValue span
|
71
|
-
*/
|
72
|
-
as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre';
|
73
|
-
}
|
74
|
-
/**
|
75
|
-
* Names of TextProps that have a default value in useText
|
76
|
-
*/
|
77
|
-
export declare type TextDefaultedProps = never;
|
78
|
-
/**
|
79
|
-
* State used in rendering Text
|
80
|
-
*/
|
81
|
-
export interface TextState extends ComponentStateCompat<TextProps, TextDefaultedProps> {
|
82
|
-
/**
|
83
|
-
* Ref to the root element
|
84
|
-
*/
|
85
|
-
ref: React.Ref<HTMLElement>;
|
86
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Text.types.js","sourceRoot":"../src/","sources":["components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { ComponentPropsCompat, ComponentStateCompat } from '@fluentui/react-utilities';\n\n/**\n * Text Props\n */\nexport interface TextProps extends ComponentPropsCompat, React.HTMLAttributes<HTMLElement> {\n /**\n * Wraps the text content on white spaces.\n *\n * @defaultValue true\n */\n wrap?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @defaultValue false\n */\n truncate?: boolean;\n\n /**\n * Applies a block display for the content.\n *\n * @defaultValue false\n */\n block?: boolean;\n\n /**\n * Applies the italic font style to the content.\n *\n * @defaultValue false\n */\n italic?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @defaultValue false\n */\n underline?: boolean;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @defaultValue false\n */\n strikethrough?: boolean;\n\n /**\n * Applies font size and line height based on the theme tokens.\n *\n * @defaultValue 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the font family to the content.\n *\n * @defaultValue base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies font weight to the content.\n *\n * @defaultValue regular\n */\n weight?: 'regular' | 'medium' | 'semibold';\n\n /**\n * Aligns text based on the parent container.\n *\n * @defaultValue start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Component to be rendered as.\n *\n * @defaultValue span\n */\n as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre';\n}\n\n/**\n * Names of TextProps that have a default value in useText\n */\nexport type TextDefaultedProps = never;\n\n/**\n * State used in rendering Text\n */\nexport interface TextState extends ComponentStateCompat<TextProps, TextDefaultedProps> {\n /**\n * Ref to the root element\n */\n ref: React.Ref<HTMLElement>;\n}\n"]}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "./Text", "./Text.types", "./renderText", "./useText", "./useTextStyles"], function (require, exports, tslib_1, Text_1, Text_types_1, renderText_1, useText_1, useTextStyles_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
tslib_1.__exportStar(Text_1, exports);
|
5
|
-
tslib_1.__exportStar(Text_types_1, exports);
|
6
|
-
tslib_1.__exportStar(renderText_1, exports);
|
7
|
-
tslib_1.__exportStar(useText_1, exports);
|
8
|
-
tslib_1.__exportStar(useTextStyles_1, exports);
|
9
|
-
});
|
10
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Text/index.ts"],"names":[],"mappings":";;;IAAA,sCAAuB;IACvB,4CAA6B;IAC7B,4CAA6B;IAC7B,yCAA0B;IAC1B,+CAAgC","sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"]}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
define(["require", "exports", "tslib", "react", "@fluentui/react-utilities"], function (require, exports, tslib_1, React, react_utilities_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.renderText = void 0;
|
5
|
-
/**
|
6
|
-
* Render the final JSX of Text
|
7
|
-
*/
|
8
|
-
var renderText = function (state) {
|
9
|
-
var _a = react_utilities_1.getSlotsCompat(state), slots = _a.slots, slotProps = _a.slotProps;
|
10
|
-
return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), state.children);
|
11
|
-
};
|
12
|
-
exports.renderText = renderText;
|
13
|
-
});
|
14
|
-
//# sourceMappingURL=renderText.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderText.js","sourceRoot":"../src/","sources":["components/Text/renderText.tsx"],"names":[],"mappings":";;;;IAIA;;OAEG;IACI,IAAM,UAAU,GAAG,UAAC,KAAgB;QACnC,IAAA,KAAuB,gCAAc,CAAC,KAAK,CAAC,EAA1C,KAAK,WAAA,EAAE,SAAS,eAA0B,CAAC;QAEnD,OAAO,oBAAC,KAAK,CAAC,IAAI,uBAAK,SAAS,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAc,CAAC;IACvE,CAAC,CAAC;IAJW,QAAA,UAAU,cAIrB","sourcesContent":["import * as React from 'react';\nimport { getSlotsCompat } from '@fluentui/react-utilities';\nimport type { TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText = (state: TextState) => {\n const { slots, slotProps } = getSlotsCompat(state);\n\n return <slots.root {...slotProps.root}>{state.children}</slots.root>;\n};\n"]}
|
@@ -1,13 +0,0 @@
|
|
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
|
-
* @param defaultProps - (optional) default prop values provided by the implementing type
|
12
|
-
*/
|
13
|
-
export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>, defaultProps?: TextProps | undefined) => TextState;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
define(["require", "exports", "@fluentui/react-utilities"], function (require, exports, react_utilities_1) {
|
2
|
-
"use strict";
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.useText = void 0;
|
5
|
-
var mergeProps = react_utilities_1.makeMergeProps();
|
6
|
-
/**
|
7
|
-
* Create the state required to render Text.
|
8
|
-
*
|
9
|
-
* The returned state can be modified with hooks such as useTextStyles,
|
10
|
-
* before being passed to renderText.
|
11
|
-
*
|
12
|
-
* @param props - props from this instance of Text
|
13
|
-
* @param ref - reference to root HTMLElement of Text
|
14
|
-
* @param defaultProps - (optional) default prop values provided by the implementing type
|
15
|
-
*/
|
16
|
-
var useText = function (props, ref, defaultProps) {
|
17
|
-
var state = mergeProps({
|
18
|
-
ref: ref,
|
19
|
-
as: 'span',
|
20
|
-
}, defaultProps, props);
|
21
|
-
return state;
|
22
|
-
};
|
23
|
-
exports.useText = useText;
|
24
|
-
});
|
25
|
-
//# sourceMappingURL=useText.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useText.js","sourceRoot":"../src/","sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;IAIA,IAAM,UAAU,GAAG,gCAAc,EAAa,CAAC;IAE/C;;;;;;;;;OASG;IACI,IAAM,OAAO,GAAG,UAAC,KAAgB,EAAE,GAA2B,EAAE,YAAwB;QAC7F,IAAM,KAAK,GAAG,UAAU,CACtB;YACE,GAAG,KAAA;YACH,EAAE,EAAE,MAAM;SACX,EACD,YAAY,EACZ,KAAK,CACN,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAXW,QAAA,OAAO,WAWlB","sourcesContent":["import * as React from 'react';\nimport { makeMergeProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\nconst mergeProps = makeMergeProps<TextState>();\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles,\n * before being passed to renderText.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n * @param defaultProps - (optional) default prop values provided by the implementing type\n */\nexport const useText = (props: TextProps, ref: React.Ref<HTMLElement>, defaultProps?: TextProps): TextState => {\n const state = mergeProps(\n {\n ref,\n as: 'span',\n },\n defaultProps,\n props,\n );\n\n return state;\n};\n"]}
|