@fluentui/react-text 9.0.0-rc.6 → 9.0.0-rc.9
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 +125 -4
- package/CHANGELOG.md +92 -55
- package/dist/{react-text.d.ts → index.d.ts} +26 -28
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/components/Body/Body.js +4 -4
- package/lib/components/Body/Body.js.map +1 -1
- package/lib/components/Caption/Caption.js +4 -4
- package/lib/components/Caption/Caption.js.map +1 -1
- package/lib/components/Display/Display.js +4 -4
- package/lib/components/Display/Display.js.map +1 -1
- package/lib/components/Headline/Headline.js +4 -4
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LargeTitle/LargeTitle.js +4 -4
- package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/Subheadline/Subheadline.js +4 -4
- package/lib/components/Subheadline/Subheadline.js.map +1 -1
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/useText.js +6 -6
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Title1/Title1.js +4 -4
- package/lib/components/Title1/Title1.js.map +1 -1
- package/lib/components/Title2/Title2.js +4 -4
- package/lib/components/Title2/Title2.js.map +1 -1
- package/lib/components/Title3/Title3.js +4 -4
- package/lib/components/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/Body/Body.js +12 -3
- package/lib-commonjs/components/Body/Body.js.map +1 -1
- package/lib-commonjs/components/Caption/Caption.js +12 -3
- package/lib-commonjs/components/Caption/Caption.js.map +1 -1
- package/lib-commonjs/components/Display/Display.js +12 -3
- package/lib-commonjs/components/Display/Display.js.map +1 -1
- package/lib-commonjs/components/Headline/Headline.js +12 -3
- package/lib-commonjs/components/Headline/Headline.js.map +1 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.js +12 -3
- package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/Subheadline/Subheadline.js +12 -3
- package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +6 -6
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Title1/Title1.js +12 -3
- package/lib-commonjs/components/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/Title2/Title2.js +12 -3
- package/lib-commonjs/components/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/Title3/Title3.js +12 -3
- package/lib-commonjs/components/Title3/Title3.js.map +1 -1
- package/package.json +8 -8
- package/lib/Body.d.ts +0 -1
- package/lib/Caption.d.ts +0 -1
- package/lib/Display.d.ts +0 -1
- package/lib/Headline.d.ts +0 -1
- package/lib/LargeTitle.d.ts +0 -1
- package/lib/Subheadline.d.ts +0 -1
- package/lib/Text.d.ts +0 -1
- package/lib/Title1.d.ts +0 -1
- package/lib/Title2.d.ts +0 -1
- package/lib/Title3.d.ts +0 -1
- package/lib/components/Body/Body.d.ts +0 -13
- package/lib/components/Body/index.d.ts +0 -1
- package/lib/components/Caption/Caption.d.ts +0 -13
- package/lib/components/Caption/index.d.ts +0 -1
- package/lib/components/Display/Display.d.ts +0 -13
- package/lib/components/Display/index.d.ts +0 -1
- package/lib/components/Headline/Headline.d.ts +0 -13
- package/lib/components/Headline/index.d.ts +0 -1
- package/lib/components/LargeTitle/LargeTitle.d.ts +0 -13
- package/lib/components/LargeTitle/index.d.ts +0 -1
- package/lib/components/Subheadline/Subheadline.d.ts +0 -13
- package/lib/components/Subheadline/index.d.ts +0 -1
- package/lib/components/Text/Text.d.ts +0 -6
- package/lib/components/Text/Text.types.d.ts +0 -78
- package/lib/components/Text/index.d.ts +0 -5
- package/lib/components/Text/renderText.d.ts +0 -5
- package/lib/components/Text/useText.d.ts +0 -12
- package/lib/components/Text/useTextStyles.d.ts +0 -11
- package/lib/components/Title1/Title1.d.ts +0 -13
- package/lib/components/Title1/index.d.ts +0 -1
- package/lib/components/Title2/Title2.d.ts +0 -13
- package/lib/components/Title2/index.d.ts +0 -1
- package/lib/components/Title3/Title3.d.ts +0 -13
- package/lib/components/Title3/index.d.ts +0 -1
- package/lib/components/wrapper.d.ts +0 -8
- package/lib/index.d.ts +0 -11
- package/lib/typographyStyles/index.d.ts +0 -2
- package/lib/typographyStyles/index.js +0 -3
- package/lib/typographyStyles/index.js.map +0 -1
- package/lib/typographyStyles/typographyStyles.d.ts +0 -13
- package/lib/typographyStyles/typographyStyles.js +0 -60
- package/lib/typographyStyles/typographyStyles.js.map +0 -1
- package/lib-commonjs/Body.d.ts +0 -1
- package/lib-commonjs/Caption.d.ts +0 -1
- package/lib-commonjs/Display.d.ts +0 -1
- package/lib-commonjs/Headline.d.ts +0 -1
- package/lib-commonjs/LargeTitle.d.ts +0 -1
- package/lib-commonjs/Subheadline.d.ts +0 -1
- package/lib-commonjs/Text.d.ts +0 -1
- package/lib-commonjs/Title1.d.ts +0 -1
- package/lib-commonjs/Title2.d.ts +0 -1
- package/lib-commonjs/Title3.d.ts +0 -1
- package/lib-commonjs/components/Body/Body.d.ts +0 -13
- package/lib-commonjs/components/Body/index.d.ts +0 -1
- package/lib-commonjs/components/Caption/Caption.d.ts +0 -13
- package/lib-commonjs/components/Caption/index.d.ts +0 -1
- package/lib-commonjs/components/Display/Display.d.ts +0 -13
- package/lib-commonjs/components/Display/index.d.ts +0 -1
- package/lib-commonjs/components/Headline/Headline.d.ts +0 -13
- package/lib-commonjs/components/Headline/index.d.ts +0 -1
- package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -13
- package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
- package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -13
- package/lib-commonjs/components/Subheadline/index.d.ts +0 -1
- package/lib-commonjs/components/Text/Text.d.ts +0 -6
- package/lib-commonjs/components/Text/Text.types.d.ts +0 -78
- package/lib-commonjs/components/Text/index.d.ts +0 -5
- package/lib-commonjs/components/Text/renderText.d.ts +0 -5
- package/lib-commonjs/components/Text/useText.d.ts +0 -12
- package/lib-commonjs/components/Text/useTextStyles.d.ts +0 -11
- package/lib-commonjs/components/Title1/Title1.d.ts +0 -13
- package/lib-commonjs/components/Title1/index.d.ts +0 -1
- package/lib-commonjs/components/Title2/Title2.d.ts +0 -13
- package/lib-commonjs/components/Title2/index.d.ts +0 -1
- package/lib-commonjs/components/Title3/Title3.d.ts +0 -13
- package/lib-commonjs/components/Title3/index.d.ts +0 -1
- package/lib-commonjs/components/wrapper.d.ts +0 -8
- package/lib-commonjs/index.d.ts +0 -11
- package/lib-commonjs/typographyStyles/index.d.ts +0 -2
- package/lib-commonjs/typographyStyles/index.js +0 -11
- package/lib-commonjs/typographyStyles/index.js.map +0 -1
- package/lib-commonjs/typographyStyles/typographyStyles.d.ts +0 -13
- package/lib-commonjs/typographyStyles/typographyStyles.js +0 -68
- package/lib-commonjs/typographyStyles/typographyStyles.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AACA,OAAA,CAAA,iBAAA,GAA+C;AAC1D,EAAA,IAAI,EAAE;AADoD,CAA/C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAAA,CAAkB,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `displayClassNames.root` instead.\n */\nexport const displayClassName = 'fui-Display';\nexport const displayClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Display',\n};\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: displayClassNames.root,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
|
@@ -7,9 +7,9 @@ exports.Headline = exports.headlineClassNames = exports.headlineClassName = void
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `headlineClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.headlineClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "f1pp30po",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "f106mvju"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f106mvju{line-height:var(--lineHeightBase500);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Headline typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,iBAAA,GAAoB,cAApB;AACA,OAAA,CAAA,kBAAA,GAAgD;AAC3D,EAAA,IAAI,EAAE;AADqD,CAAhD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,OAAA,CAAA,kBAAA,CAAmB,IAF2C;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `headlineClassNames.root` instead.\n */\nexport const headlineClassName = 'fui-Headline';\nexport const headlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Headline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subtitle1,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassNames.root,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
|
@@ -7,9 +7,9 @@ exports.LargeTitle = exports.largeTitleClassNames = exports.largeTitleClassName
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `largeTitleClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.largeTitleClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "f15afnhw",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "fr3w3wp"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Large Title typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;AACA,OAAA,CAAA,oBAAA,GAAkD;AAC7D,EAAA,IAAI,EAAE;AADuD,CAAlD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,OAAA,CAAA,oBAAA,CAAqB,IAF2C;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAd,CAAlD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `largeTitleClassNames.root` instead.\n */\nexport const largeTitleClassName = 'fui-LargeTitle';\nexport const largeTitleClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-LargeTitle',\n};\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: largeTitleClassNames.root,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
|
@@ -7,9 +7,9 @@ exports.Subheadline = exports.subheadlineClassNames = exports.subheadlineClassNa
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `subheadlineClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.subheadlineClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "fod5ikn",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "faaz57k"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".faaz57k{line-height:var(--lineHeightBase400);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Subheadline typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;AACA,OAAA,CAAA,qBAAA,GAAmD;AAC9D,EAAA,IAAI,EAAE;AADwD,CAAnD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,OAAA,CAAA,qBAAA,CAAsB,IAF2C;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAd,CAAnD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `subheadlineClassNames.root` instead.\n */\nexport const subheadlineClassName = 'fui-Subheadline';\nexport const subheadlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Subheadline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subtitle2,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassNames.root,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
|
@@ -34,16 +34,16 @@ const useText_unstable = (props, ref) => {
|
|
34
34
|
} = props;
|
35
35
|
const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
36
36
|
const state = {
|
37
|
-
|
38
|
-
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
37
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
39
38
|
block: block !== null && block !== void 0 ? block : false,
|
39
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
40
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
41
|
size: size !== null && size !== void 0 ? size : 300,
|
44
|
-
|
42
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
43
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
44
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
45
45
|
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
46
|
-
|
46
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
47
47
|
components: {
|
48
48
|
root: 'span'
|
49
49
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAC3F,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,GAAG,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,
|
1
|
+
{"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAC3F,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,GAAG,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OADO;AAEvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAFO;AAGvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,MAHS;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GALS;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAPC;AAQvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KARD;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IAVS;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,gBAAA,GAAgB,gBAAhB","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"sourceRoot":"../src/"}
|
@@ -7,9 +7,9 @@ exports.Title1 = exports.title1ClassNames = exports.title1ClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `title1ClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.title1ClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "fccw675",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "f1ebx5kk"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Title 1 typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title1ClassNames.root` instead.\n */\nexport const title1ClassName = 'fui-Title1';\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"],"sourceRoot":"../src/"}
|
@@ -7,9 +7,9 @@ exports.Title2 = exports.title2ClassNames = exports.title2ClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `title2ClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.title2ClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "fojgt09",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "fcen8rp"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Title 2 typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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/"}
|
@@ -7,9 +7,9 @@ exports.Title3 = exports.title3ClassNames = exports.title3ClassName = void 0;
|
|
7
7
|
|
8
8
|
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
9
|
|
10
|
-
const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
|
11
|
-
|
12
10
|
const wrapper_1 = /*#__PURE__*/require("../wrapper");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
13
|
/**
|
14
14
|
* @deprecated Use `title3ClassNames.root` instead.
|
15
15
|
*/
|
@@ -23,7 +23,16 @@ exports.title3ClassNames = {
|
|
23
23
|
* Styles for the root slot
|
24
24
|
*/
|
25
25
|
|
26
|
-
const useStyles = /*#__PURE__*/react_1.__styles({
|
26
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
27
|
+
"root": {
|
28
|
+
"Bahqtrf": "fk6fouc",
|
29
|
+
"Be2twd7": "f1x0m3f5",
|
30
|
+
"Bhrd7zp": "fl43uef",
|
31
|
+
"Bg96gwp": "fb86gi6"
|
32
|
+
}
|
33
|
+
}, {
|
34
|
+
"d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
|
35
|
+
});
|
27
36
|
/**
|
28
37
|
* Text wrapper component for the Title 3 typography variant
|
29
38
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,
|
1
|
+
{"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;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 { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\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,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "9.0.0-rc.
|
3
|
+
"version": "9.0.0-rc.9",
|
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",
|
7
|
-
"typings": "
|
7
|
+
"typings": "dist/index.d.ts",
|
8
8
|
"sideEffects": false,
|
9
9
|
"repository": {
|
10
10
|
"type": "git",
|
@@ -21,20 +21,20 @@
|
|
21
21
|
"start": "yarn storybook",
|
22
22
|
"test": "jest --passWithNoTests",
|
23
23
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
24
|
-
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node
|
25
|
-
"storybook": "node
|
24
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/react-text/src && yarn docs",
|
25
|
+
"storybook": "node ../../../scripts/storybook/runner",
|
26
26
|
"type-check": "tsc -b tsconfig.json"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
30
|
"@fluentui/react-conformance": "*",
|
31
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
31
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.6",
|
32
32
|
"@fluentui/scripts": "^1.0.0"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@griffel/react": "1.0.
|
36
|
-
"@fluentui/react-theme": "9.0.0-rc.
|
37
|
-
"@fluentui/react-utilities": "9.0.0-rc.
|
35
|
+
"@griffel/react": "1.0.5",
|
36
|
+
"@fluentui/react-theme": "9.0.0-rc.8",
|
37
|
+
"@fluentui/react-utilities": "9.0.0-rc.9",
|
38
38
|
"tslib": "^2.1.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
package/lib/Body.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Body/index';
|
package/lib/Caption.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Caption/index';
|
package/lib/Display.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Display/index';
|
package/lib/Headline.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Headline/index';
|
package/lib/LargeTitle.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/LargeTitle/index';
|
package/lib/Subheadline.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Subheadline/index';
|
package/lib/Text.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Text/index';
|
package/lib/Title1.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title1/index';
|
package/lib/Title2.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title2/index';
|
package/lib/Title3.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Title3/index';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
-
import { TextSlots } from '../Text/Text.types';
|
5
|
-
/**
|
6
|
-
* @deprecated Use `bodyClassNames.root` instead.
|
7
|
-
*/
|
8
|
-
export declare const bodyClassName = "fui-Body";
|
9
|
-
export declare const bodyClassNames: SlotClassNames<TextSlots>;
|
10
|
-
/**
|
11
|
-
* Text wrapper component for the Body typography variant
|
12
|
-
*/
|
13
|
-
export declare const Body: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Body';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
-
import { TextSlots } from '../Text/Text.types';
|
5
|
-
/**
|
6
|
-
* @deprecated Use `captionClassNames.root` instead.
|
7
|
-
*/
|
8
|
-
export declare const captionClassName = "fui-Caption";
|
9
|
-
export declare const captionClassNames: SlotClassNames<TextSlots>;
|
10
|
-
/**
|
11
|
-
* Text wrapper component for the Caption typography variant
|
12
|
-
*/
|
13
|
-
export declare const Caption: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Caption';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
-
import { TextSlots } from '../Text/Text.types';
|
5
|
-
/**
|
6
|
-
* @deprecated Use `displayClassNames.root` instead.
|
7
|
-
*/
|
8
|
-
export declare const displayClassName = "fui-Display";
|
9
|
-
export declare const displayClassNames: SlotClassNames<TextSlots>;
|
10
|
-
/**
|
11
|
-
* Text wrapper component for the Display typography variant
|
12
|
-
*/
|
13
|
-
export declare const Display: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Display';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
-
import { TextSlots } from '../Text/Text.types';
|
5
|
-
/**
|
6
|
-
* @deprecated Use `headlineClassNames.root` instead.
|
7
|
-
*/
|
8
|
-
export declare const headlineClassName = "fui-Headline";
|
9
|
-
export declare const headlineClassNames: SlotClassNames<TextSlots>;
|
10
|
-
/**
|
11
|
-
* Text wrapper component for the Headline typography variant
|
12
|
-
*/
|
13
|
-
export declare const Headline: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Headline';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
-
import { TextSlots } from '../Text/Text.types';
|
5
|
-
/**
|
6
|
-
* @deprecated Use `largeTitleClassNames.root` instead.
|
7
|
-
*/
|
8
|
-
export declare const largeTitleClassName = "fui-LargeTitle";
|
9
|
-
export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
|
10
|
-
/**
|
11
|
-
* Text wrapper component for the Large Title typography variant
|
12
|
-
*/
|
13
|
-
export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './LargeTitle';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { FunctionComponent } from 'react';
|
2
|
-
import { TextWrapperProps } from '../wrapper';
|
3
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
4
|
-
import { TextSlots } from '../Text/Text.types';
|
5
|
-
/**
|
6
|
-
* @deprecated Use `subheadlineClassNames.root` instead.
|
7
|
-
*/
|
8
|
-
export declare const subheadlineClassName = "fui-Subheadline";
|
9
|
-
export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
|
10
|
-
/**
|
11
|
-
* Text wrapper component for the Subheadline typography variant
|
12
|
-
*/
|
13
|
-
export declare const Subheadline: FunctionComponent<TextWrapperProps>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Subheadline';
|
@@ -1,6 +0,0 @@
|
|
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>;
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
|
-
/**
|
3
|
-
* Text slots
|
4
|
-
*/
|
5
|
-
export declare type TextSlots = {
|
6
|
-
root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
|
7
|
-
};
|
8
|
-
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;
|
78
|
-
export {};
|
@@ -1,12 +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_unstable,
|
7
|
-
* before being passed to renderText_unstable.
|
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_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { TextSlots, TextState } from './Text.types';
|
2
|
-
import { SlotClassNames } from '@fluentui/react-utilities';
|
3
|
-
/**
|
4
|
-
* @deprecated Use `textClassNames.root` instead.
|
5
|
-
*/
|
6
|
-
export declare const textClassName = "fui-Text";
|
7
|
-
export declare const textClassNames: SlotClassNames<TextSlots>;
|
8
|
-
/**
|
9
|
-
* Apply styling to the Text slots based on the state
|
10
|
-
*/
|
11
|
-
export declare const useTextStyles_unstable: (state: TextState) => TextState;
|