@fluentui/react-text 0.0.0-nightly-20220311-0445.1 → 0.0.0-nightly-20220316-0419.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 +16 -10
- package/CHANGELOG.md +9 -8
- package/dist/react-text.d.ts +51 -0
- package/lib/components/Body/Body.d.ts +6 -0
- package/lib/components/Body/Body.js +8 -1
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.d.ts +6 -0
- package/lib/components/Caption/Caption.js +8 -1
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.d.ts +6 -0
- package/lib/components/Display/Display.js +8 -1
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +6 -0
- package/lib/components/Headline/Headline.js +8 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +6 -0
- package/lib/components/LargeTitle/LargeTitle.js +8 -1
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.d.ts +6 -0
- package/lib/components/Subheadline/Subheadline.js +8 -1
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/useTextStyles.d.ts +6 -1
- package/lib/components/Text/useTextStyles.js +8 -1
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/Title1/Title1.d.ts +6 -0
- package/lib/components/Title1/Title1.js +8 -1
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.d.ts +6 -0
- package/lib/components/Title2/Title2.js +8 -1
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.d.ts +6 -0
- package/lib/components/Title3/Title3.js +8 -1
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Body/Body.d.ts +6 -0
- package/lib-commonjs/components/Body/Body.js +9 -2
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +6 -0
- package/lib-commonjs/components/Caption/Caption.js +9 -2
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.d.ts +6 -0
- package/lib-commonjs/components/Display/Display.js +9 -2
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +6 -0
- package/lib-commonjs/components/Headline/Headline.js +9 -2
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +6 -0
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -2
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +6 -0
- package/lib-commonjs/components/Subheadline/Subheadline.js +9 -2
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.d.ts +6 -1
- package/lib-commonjs/components/Text/useTextStyles.js +9 -2
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.d.ts +6 -0
- package/lib-commonjs/components/Title1/Title1.js +9 -2
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +6 -0
- package/lib-commonjs/components/Title2/Title2.js +9 -2
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +6 -0
- package/lib-commonjs/components/Title3/Title3.js +9 -2
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/package.json +4 -4
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title2/Title2.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;;
|
1
|
+
{"version":3,"sources":["components/Title2/Title2.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;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title2ClassNames.root` instead.\n */\nexport const title2ClassName = 'fui-Title2';\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
|
@@ -1,6 +1,12 @@
|
|
1
1
|
import type { FunctionComponent } from 'react';
|
2
2
|
import { TextWrapperProps } from '../wrapper';
|
3
|
+
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
+
import { TextSlots } from '../Text/Text.types';
|
5
|
+
/**
|
6
|
+
* @deprecated Use `title3ClassNames.root` instead.
|
7
|
+
*/
|
3
8
|
export declare const title3ClassName = "fui-Title3";
|
9
|
+
export declare const title3ClassNames: SlotClassNames<TextSlots>;
|
4
10
|
/**
|
5
11
|
* Text wrapper component for the Title 3 typography variant
|
6
12
|
*/
|
@@ -3,15 +3,22 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Title3 = exports.title3ClassName = void 0;
|
6
|
+
exports.Title3 = exports.title3ClassNames = exports.title3ClassName = 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
|
+
* @deprecated Use `title3ClassNames.root` instead.
|
15
|
+
*/
|
16
|
+
|
13
17
|
|
14
18
|
exports.title3ClassName = 'fui-Title3';
|
19
|
+
exports.title3ClassNames = {
|
20
|
+
root: 'fui-Title3'
|
21
|
+
};
|
15
22
|
/**
|
16
23
|
* Styles for the root slot
|
17
24
|
*/
|
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
|
|
24
31
|
|
25
32
|
exports.Title3 = /*#__PURE__*/wrapper_1.createWrapper({
|
26
33
|
useStyles,
|
27
|
-
className: exports.
|
34
|
+
className: exports.title3ClassNames.root,
|
28
35
|
displayName: 'Title3'
|
29
36
|
});
|
30
37
|
//# sourceMappingURL=Title3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title3/Title3.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;;
|
1
|
+
{"version":3,"sources":["components/Title3/Title3.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;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title3ClassNames.root` instead.\n */\nexport const title3ClassName = 'fui-Title3';\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20220316-0419.1",
|
4
4
|
"description": "Text is a typography and styling abstraction component that can be used to ensure the consistency of all text across your application.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -28,13 +28,13 @@
|
|
28
28
|
"devDependencies": {
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
30
|
"@fluentui/react-conformance": "*",
|
31
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
31
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20220316-0419.1",
|
32
32
|
"@fluentui/scripts": "^1.0.0"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@griffel/react": "1.0.0",
|
36
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
37
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
36
|
+
"@fluentui/react-theme": "0.0.0-nightly-20220316-0419.1",
|
37
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20220316-0419.1",
|
38
38
|
"tslib": "^2.1.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|