@fluentui/react-text 9.4.20 → 9.4.22
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.md +25 -2
- package/lib/Body1.js.map +1 -1
- package/lib/Body1Strong.js.map +1 -1
- package/lib/Body1Stronger.js.map +1 -1
- package/lib/Body2.js.map +1 -1
- package/lib/Caption1.js.map +1 -1
- package/lib/Caption1Strong.js.map +1 -1
- package/lib/Caption1Stronger.js.map +1 -1
- package/lib/Caption2.js.map +1 -1
- package/lib/Caption2Strong.js.map +1 -1
- package/lib/Display.js.map +1 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subtitle1.js.map +1 -1
- package/lib/Subtitle2.js.map +1 -1
- package/lib/Subtitle2Stronger.js.map +1 -1
- package/lib/Text.js.map +1 -1
- package/lib/Title1.js.map +1 -1
- package/lib/Title2.js.map +1 -1
- package/lib/Title3.js.map +1 -1
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.js +3 -1
- 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.map +1 -1
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.styles.js +2 -0
- package/lib/components/Text/useTextStyles.styles.js.map +1 -1
- package/lib/components/presets/Body1/Body1.js.map +1 -1
- package/lib/components/presets/Body1/index.js.map +1 -1
- package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib/components/presets/Body1Strong/index.js.map +1 -1
- package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib/components/presets/Body2/Body2.js.map +1 -1
- package/lib/components/presets/Body2/index.js.map +1 -1
- package/lib/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib/components/presets/Caption1/index.js.map +1 -1
- package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib/components/presets/Caption2/index.js.map +1 -1
- package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib/components/presets/Display/Display.js.map +1 -1
- package/lib/components/presets/Display/index.js.map +1 -1
- package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/presets/LargeTitle/index.js.map +1 -1
- package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/presets/Subtitle1/index.js.map +1 -1
- package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/presets/Subtitle2/index.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib/components/presets/Title1/Title1.js.map +1 -1
- package/lib/components/presets/Title1/index.js.map +1 -1
- package/lib/components/presets/Title2/Title2.js.map +1 -1
- package/lib/components/presets/Title2/index.js.map +1 -1
- package/lib/components/presets/Title3/Title3.js.map +1 -1
- package/lib/components/presets/Title3/index.js.map +1 -1
- package/lib/components/presets/createPreset.js +1 -0
- package/lib/components/presets/createPreset.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Body1Strong.js.map +1 -1
- package/lib-commonjs/Body1Stronger.js.map +1 -1
- package/lib-commonjs/Body2.js.map +1 -1
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption1Strong.js.map +1 -1
- package/lib-commonjs/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Caption2Strong.js.map +1 -1
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Subtitle2Stronger.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/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js +3 -1
- 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.map +1 -1
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.styles.js +1 -0
- package/lib-commonjs/components/Text/useTextStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
- package/lib-commonjs/components/presets/Display/index.js.map +1 -1
- package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/createPreset.js +1 -0
- package/lib-commonjs/components/presets/createPreset.js.map +1 -1
- package/lib-commonjs/index.js +58 -58
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +4 -4
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useSubtitle2Styles.styles.js"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["useSubtitle2Styles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const subtitle2ClassNames = {\n root: 'fui-Subtitle2'\n};\n/**\n * Styles for the root slot\n */ export const useSubtitle2Styles = makeStyles({\n root: typographyStyles.subtitle2\n});\n"],"names":["subtitle2ClassNames","useSubtitle2Styles","root","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEaA,mBAAmB;eAAnBA;;IAKIC,kBAAkB;eAAlBA;;;uBAPU;AAEpB,MAAMD,sBAAsB;IAC/BE,MAAM;AACV;AAGW,MAAMD,qBAAkB,WAAA,GAAGE,IAAAA,eAAA,EAAA;IAAAD,MAAA;QAAAE,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;IAAA;AAAA,GAAA;IAAAC,GAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["Subtitle2Stronger.
|
1
|
+
{"version":3,"sources":["Subtitle2Stronger.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { subtitle2StrongerClassNames, useSubtitle2StrongerStyles } from './useSubtitle2Stronger.styles';\n\n/**\n * Text preset component for the Subtitle2Stronger typography variant\n */\nexport const Subtitle2Stronger: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useSubtitle2StrongerStyles,\n className: subtitle2StrongerClassNames.root,\n displayName: 'Subtitle2Stronger',\n});\n"],"names":["Subtitle2Stronger","createPreset","useStyles","useSubtitle2StrongerStyles","className","subtitle2StrongerClassNames","root","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;8BAPgB;4CAE2C;AAKjE,MAAMA,oBAAwDC,IAAAA,0BAAAA,EAAa;IAChFC,WAAWC,sDAAAA;IACXC,WAAWC,uDAAAA,CAA4BC,IAAI;IAC3CC,aAAa;AACf"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Subtitle2Stronger';\nexport { subtitle2StrongerClassNames } from './useSubtitle2Stronger.styles';\n"],"names":["subtitle2StrongerClassNames"],"rangeMappings":";;;;;;;;;;;;","mappings":";;;;+BACSA;;;eAAAA,uDAA2B;;;;uBADtB;4CAC8B"}
|
package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useSubtitle2Stronger.styles.js"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["useSubtitle2Stronger.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const subtitle2StrongerClassNames = {\n root: 'fui-Subtitle2Stronger'\n};\n/**\n * Styles for the root slot\n */ export const useSubtitle2StrongerStyles = makeStyles({\n root: typographyStyles.subtitle2Stronger\n});\n"],"names":["subtitle2StrongerClassNames","useSubtitle2StrongerStyles","root","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEaA,2BAA2B;eAA3BA;;IAKIC,0BAA0B;eAA1BA;;;uBAPU;AAEpB,MAAMD,8BAA8B;IACvCE,MAAM;AACV;AAGW,MAAMD,6BAA0B,WAAA,GAAGE,IAAAA,eAAA,EAAA;IAAAD,MAAA;QAAAE,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;IAAA;AAAA,GAAA;IAAAC,GAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["Title1.
|
1
|
+
{"version":3,"sources":["Title1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { title1ClassNames, useTitle1Styles } from './useTitle1Styles.styles';\n\n/**\n * Text preset component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useTitle1Styles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"],"names":["Title1","createPreset","useStyles","useTitle1Styles","className","title1ClassNames","root","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;8BAPgB;uCAEqB;AAK3C,MAAMA,SAA6CC,IAAAA,0BAAAA,EAAa;IACrEC,WAAWC,sCAAAA;IACXC,WAAWC,uCAAAA,CAAiBC,IAAI;IAChCC,aAAa;AACf"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Title1';\nexport { title1ClassNames } from './useTitle1Styles.styles';\n"],"names":["title1ClassNames"],"rangeMappings":";;;;;;;;;;;;","mappings":";;;;+BACSA;;;eAAAA,uCAAgB;;;;uBADX;uCACmB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useTitle1Styles.styles.js"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["useTitle1Styles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const title1ClassNames = {\n root: 'fui-Title1'\n};\n/**\n * Styles for the root slot\n */ export const useTitle1Styles = makeStyles({\n root: typographyStyles.title1\n});\n"],"names":["title1ClassNames","useTitle1Styles","root","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEaA,gBAAgB;eAAhBA;;IAKIC,eAAe;eAAfA;;;uBAPU;AAEpB,MAAMD,mBAAmB;IAC5BE,MAAM;AACV;AAGW,MAAMD,kBAAe,WAAA,GAAGE,IAAAA,eAAA,EAAA;IAAAD,MAAA;QAAAE,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;IAAA;AAAA,GAAA;IAAAC,GAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["Title2.
|
1
|
+
{"version":3,"sources":["Title2.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { title2ClassNames, useTitle2Styles } from './useTitle2Styles.styles';\n\n/**\n * Text preset component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useTitle2Styles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"names":["Title2","createPreset","useStyles","useTitle2Styles","className","title2ClassNames","root","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;8BAPgB;uCAEqB;AAK3C,MAAMA,SAA6CC,IAAAA,0BAAAA,EAAa;IACrEC,WAAWC,sCAAAA;IACXC,WAAWC,uCAAAA,CAAiBC,IAAI;IAChCC,aAAa;AACf"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Title2';\nexport { title2ClassNames } from './useTitle2Styles.styles';\n"],"names":["title2ClassNames"],"rangeMappings":";;;;;;;;;;;;","mappings":";;;;+BACSA;;;eAAAA,uCAAgB;;;;uBADX;uCACmB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useTitle2Styles.styles.js"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["useTitle2Styles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const title2ClassNames = {\n root: 'fui-Title2'\n};\n/**\n * Styles for the root slot\n */ export const useTitle2Styles = makeStyles({\n root: typographyStyles.title2\n});\n"],"names":["title2ClassNames","useTitle2Styles","root","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEaA,gBAAgB;eAAhBA;;IAKIC,eAAe;eAAfA;;;uBAPU;AAEpB,MAAMD,mBAAmB;IAC5BE,MAAM;AACV;AAGW,MAAMD,kBAAe,WAAA,GAAGE,IAAAA,eAAA,EAAA;IAAAD,MAAA;QAAAE,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;IAAA;AAAA,GAAA;IAAAC,GAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["Title3.
|
1
|
+
{"version":3,"sources":["Title3.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { title3ClassNames, useTitle3Styles } from './useTitle3Styles.styles';\n\n/**\n * Text preset component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useTitle3Styles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"names":["Title3","createPreset","useStyles","useTitle3Styles","className","title3ClassNames","root","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;8BAPgB;uCAEqB;AAK3C,MAAMA,SAA6CC,IAAAA,0BAAAA,EAAa;IACrEC,WAAWC,sCAAAA;IACXC,WAAWC,uCAAAA,CAAiBC,IAAI;IAChCC,aAAa;AACf"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Title3';\nexport { title3ClassNames } from './useTitle3Styles.styles';\n"],"names":["title3ClassNames"],"rangeMappings":";;;;;;;;;;;;","mappings":";;;;+BACSA;;;eAAAA,uCAAgB;;;;uBADX;uCACmB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["useTitle3Styles.styles.js"],"sourcesContent":["import {
|
1
|
+
{"version":3,"sources":["useTitle3Styles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const title3ClassNames = {\n root: 'fui-Title3'\n};\n/**\n * Styles for the root slot\n */ export const useTitle3Styles = makeStyles({\n root: typographyStyles.title3\n});\n"],"names":["title3ClassNames","useTitle3Styles","root","__styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEaA,gBAAgB;eAAhBA;;IAKIC,eAAe;eAAfA;;;uBAPU;AAEpB,MAAMD,mBAAmB;IAC5BE,MAAM;AACV;AAGW,MAAMD,kBAAe,WAAA,GAAGE,IAAAA,eAAA,EAAA;IAAAD,MAAA;QAAAE,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;IAAA;AAAA,GAAA;IAAAC,GAAA;QAAA;QAAA;QAAA;QAAA;KAAA;AAAA"}
|
@@ -15,6 +15,7 @@ const _Text = require("../Text");
|
|
15
15
|
function createPreset(options) {
|
16
16
|
const { useStyles, className, displayName } = options;
|
17
17
|
const Wrapper = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
18
|
+
'use no memo';
|
18
19
|
const styles = useStyles();
|
19
20
|
const state = (0, _Text.useText_unstable)(props, ref);
|
20
21
|
(0, _Text.useTextStyles_unstable)(state);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["createPreset.
|
1
|
+
{"version":3,"sources":["createPreset.ts"],"sourcesContent":["import * as React from 'react';\nimport { mergeClasses } from '@griffel/react';\nimport { renderText_unstable, useText_unstable, useTextStyles_unstable } from '../Text';\nimport type { TextProps, TextPresetProps } from '../Text';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport function createPreset(options: {\n className: string;\n displayName: string;\n useStyles: () => Record<'root', string>;\n}): React.FunctionComponent<TextPresetProps> {\n const { useStyles, className, displayName } = options;\n const Wrapper: ForwardRefComponent<TextPresetProps> = React.forwardRef((props, ref) => {\n 'use no memo';\n\n const styles = useStyles();\n const state = useText_unstable(props as TextProps, ref);\n\n useTextStyles_unstable(state);\n\n state.root.className = mergeClasses(className, state.root.className, styles.root, props.className);\n\n return renderText_unstable(state);\n });\n Wrapper.displayName = displayName;\n\n return Wrapper;\n}\n"],"names":["createPreset","options","useStyles","className","displayName","Wrapper","React","forwardRef","props","ref","styles","state","useText_unstable","useTextStyles_unstable","root","mergeClasses","renderText_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAMgBA;;;eAAAA;;;;iEANO;wBACM;sBACiD;AAIvE,SAASA,aAAaC,OAI5B;IACC,MAAM,EAAEC,SAAS,EAAEC,SAAS,EAAEC,WAAW,EAAE,GAAGH;IAC9C,MAAMI,wBAAgDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;QAC7E;QAEA,MAAMC,SAASR;QACf,MAAMS,QAAQC,IAAAA,sBAAAA,EAAiBJ,OAAoBC;QAEnDI,IAAAA,4BAAAA,EAAuBF;QAEvBA,MAAMG,IAAI,CAACX,SAAS,GAAGY,IAAAA,oBAAAA,EAAaZ,WAAWQ,MAAMG,IAAI,CAACX,SAAS,EAAEO,OAAOI,IAAI,EAAEN,MAAML,SAAS;QAEjG,OAAOa,IAAAA,yBAAAA,EAAoBL;IAC7B;IACAN,QAAQD,WAAW,GAAGA;IAEtB,OAAOC;AACT"}
|
package/lib-commonjs/index.js
CHANGED
@@ -9,122 +9,122 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
|
13
|
-
return
|
12
|
+
Body1: function() {
|
13
|
+
return _Body1.Body1;
|
14
14
|
},
|
15
|
-
|
16
|
-
return
|
15
|
+
Body1Strong: function() {
|
16
|
+
return _Body1Strong.Body1Strong;
|
17
17
|
},
|
18
|
-
|
19
|
-
return
|
18
|
+
Body1Stronger: function() {
|
19
|
+
return _Body1Stronger.Body1Stronger;
|
20
20
|
},
|
21
|
-
|
22
|
-
return
|
21
|
+
Body2: function() {
|
22
|
+
return _Body2.Body2;
|
23
23
|
},
|
24
|
-
|
25
|
-
return
|
24
|
+
Caption1: function() {
|
25
|
+
return _Caption1.Caption1;
|
26
26
|
},
|
27
|
-
|
28
|
-
return
|
27
|
+
Caption1Strong: function() {
|
28
|
+
return _Caption1Strong.Caption1Strong;
|
29
|
+
},
|
30
|
+
Caption1Stronger: function() {
|
31
|
+
return _Caption1Stronger.Caption1Stronger;
|
32
|
+
},
|
33
|
+
Caption2: function() {
|
34
|
+
return _Caption2.Caption2;
|
35
|
+
},
|
36
|
+
Caption2Strong: function() {
|
37
|
+
return _Caption2Strong.Caption2Strong;
|
38
|
+
},
|
39
|
+
Display: function() {
|
40
|
+
return _Display.Display;
|
41
|
+
},
|
42
|
+
LargeTitle: function() {
|
43
|
+
return _LargeTitle.LargeTitle;
|
44
|
+
},
|
45
|
+
Subtitle1: function() {
|
46
|
+
return _Subtitle1.Subtitle1;
|
47
|
+
},
|
48
|
+
Subtitle2: function() {
|
49
|
+
return _Subtitle2.Subtitle2;
|
50
|
+
},
|
51
|
+
Subtitle2Stronger: function() {
|
52
|
+
return _Subtitle2Stronger.Subtitle2Stronger;
|
53
|
+
},
|
54
|
+
Text: function() {
|
55
|
+
return _Text.Text;
|
56
|
+
},
|
57
|
+
Title1: function() {
|
58
|
+
return _Title1.Title1;
|
59
|
+
},
|
60
|
+
Title2: function() {
|
61
|
+
return _Title2.Title2;
|
62
|
+
},
|
63
|
+
Title3: function() {
|
64
|
+
return _Title3.Title3;
|
29
65
|
},
|
30
66
|
body1ClassNames: function() {
|
31
67
|
return _Body1.body1ClassNames;
|
32
68
|
},
|
33
|
-
Body1Strong: function() {
|
34
|
-
return _Body1Strong.Body1Strong;
|
35
|
-
},
|
36
69
|
body1StrongClassNames: function() {
|
37
70
|
return _Body1Strong.body1StrongClassNames;
|
38
71
|
},
|
39
|
-
Body1Stronger: function() {
|
40
|
-
return _Body1Stronger.Body1Stronger;
|
41
|
-
},
|
42
72
|
body1StrongerClassNames: function() {
|
43
73
|
return _Body1Stronger.body1StrongerClassNames;
|
44
74
|
},
|
45
|
-
Body2: function() {
|
46
|
-
return _Body2.Body2;
|
47
|
-
},
|
48
75
|
body2ClassNames: function() {
|
49
76
|
return _Body2.body2ClassNames;
|
50
77
|
},
|
51
|
-
Caption1: function() {
|
52
|
-
return _Caption1.Caption1;
|
53
|
-
},
|
54
78
|
caption1ClassNames: function() {
|
55
79
|
return _Caption1.caption1ClassNames;
|
56
80
|
},
|
57
|
-
Caption1Strong: function() {
|
58
|
-
return _Caption1Strong.Caption1Strong;
|
59
|
-
},
|
60
81
|
caption1StrongClassNames: function() {
|
61
82
|
return _Caption1Strong.caption1StrongClassNames;
|
62
83
|
},
|
63
|
-
Caption1Stronger: function() {
|
64
|
-
return _Caption1Stronger.Caption1Stronger;
|
65
|
-
},
|
66
84
|
caption1StrongerClassNames: function() {
|
67
85
|
return _Caption1Stronger.caption1StrongerClassNames;
|
68
86
|
},
|
69
|
-
Caption2: function() {
|
70
|
-
return _Caption2.Caption2;
|
71
|
-
},
|
72
87
|
caption2ClassNames: function() {
|
73
88
|
return _Caption2.caption2ClassNames;
|
74
89
|
},
|
75
|
-
Caption2Strong: function() {
|
76
|
-
return _Caption2Strong.Caption2Strong;
|
77
|
-
},
|
78
90
|
caption2StrongClassNames: function() {
|
79
91
|
return _Caption2Strong.caption2StrongClassNames;
|
80
92
|
},
|
81
|
-
Display: function() {
|
82
|
-
return _Display.Display;
|
83
|
-
},
|
84
93
|
displayClassNames: function() {
|
85
94
|
return _Display.displayClassNames;
|
86
95
|
},
|
87
|
-
LargeTitle: function() {
|
88
|
-
return _LargeTitle.LargeTitle;
|
89
|
-
},
|
90
96
|
largeTitleClassNames: function() {
|
91
97
|
return _LargeTitle.largeTitleClassNames;
|
92
98
|
},
|
93
|
-
|
94
|
-
return
|
99
|
+
renderText_unstable: function() {
|
100
|
+
return _Text.renderText_unstable;
|
95
101
|
},
|
96
102
|
subtitle1ClassNames: function() {
|
97
103
|
return _Subtitle1.subtitle1ClassNames;
|
98
104
|
},
|
99
|
-
Subtitle2: function() {
|
100
|
-
return _Subtitle2.Subtitle2;
|
101
|
-
},
|
102
105
|
subtitle2ClassNames: function() {
|
103
106
|
return _Subtitle2.subtitle2ClassNames;
|
104
107
|
},
|
105
|
-
Subtitle2Stronger: function() {
|
106
|
-
return _Subtitle2Stronger.Subtitle2Stronger;
|
107
|
-
},
|
108
108
|
subtitle2StrongerClassNames: function() {
|
109
109
|
return _Subtitle2Stronger.subtitle2StrongerClassNames;
|
110
110
|
},
|
111
|
-
|
112
|
-
return
|
111
|
+
textClassNames: function() {
|
112
|
+
return _Text.textClassNames;
|
113
113
|
},
|
114
114
|
title1ClassNames: function() {
|
115
115
|
return _Title1.title1ClassNames;
|
116
116
|
},
|
117
|
-
Title2: function() {
|
118
|
-
return _Title2.Title2;
|
119
|
-
},
|
120
117
|
title2ClassNames: function() {
|
121
118
|
return _Title2.title2ClassNames;
|
122
119
|
},
|
123
|
-
Title3: function() {
|
124
|
-
return _Title3.Title3;
|
125
|
-
},
|
126
120
|
title3ClassNames: function() {
|
127
121
|
return _Title3.title3ClassNames;
|
122
|
+
},
|
123
|
+
useTextStyles_unstable: function() {
|
124
|
+
return _Text.useTextStyles_unstable;
|
125
|
+
},
|
126
|
+
useText_unstable: function() {
|
127
|
+
return _Text.useText_unstable;
|
128
128
|
}
|
129
129
|
});
|
130
130
|
const _Text = require("./Text");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { Text, renderText_unstable, textClassNames, useTextStyles_unstable, useText_unstable } from './Text';\nexport type { TextProps, TextSlots, TextState, TextPresetProps } from './Text';\nexport { Body1, body1ClassNames } from './Body1';\nexport { Body1Strong, body1StrongClassNames } from './Body1Strong';\nexport { Body1Stronger, body1StrongerClassNames } from './Body1Stronger';\nexport { Body2, body2ClassNames } from './Body2';\nexport { Caption1, caption1ClassNames } from './Caption1';\nexport { Caption1Strong, caption1StrongClassNames } from './Caption1Strong';\nexport { Caption1Stronger, caption1StrongerClassNames } from './Caption1Stronger';\nexport { Caption2, caption2ClassNames } from './Caption2';\nexport { Caption2Strong, caption2StrongClassNames } from './Caption2Strong';\nexport { Display, displayClassNames } from './Display';\nexport { LargeTitle, largeTitleClassNames } from './LargeTitle';\nexport { Subtitle1, subtitle1ClassNames } from './Subtitle1';\nexport { Subtitle2, subtitle2ClassNames } from './Subtitle2';\nexport { Subtitle2Stronger, subtitle2StrongerClassNames } from './Subtitle2Stronger';\nexport { Title1, title1ClassNames } from './Title1';\nexport { Title2, title2ClassNames } from './Title2';\nexport { Title3, title3ClassNames } from './Title3';\n"],"names":["Body1","Body1Strong","Body1Stronger","Body2","Caption1","Caption1Strong","Caption1Stronger","Caption2","Caption2Strong","Display","LargeTitle","Subtitle1","Subtitle2","Subtitle2Stronger","Text","Title1","Title2","Title3","body1ClassNames","body1StrongClassNames","body1StrongerClassNames","body2ClassNames","caption1ClassNames","caption1StrongClassNames","caption1StrongerClassNames","caption2ClassNames","caption2StrongClassNames","displayClassNames","largeTitleClassNames","renderText_unstable","subtitle1ClassNames","subtitle2ClassNames","subtitle2StrongerClassNames","textClassNames","title1ClassNames","title2ClassNames","title3ClassNames","useTextStyles_unstable","useText_unstable"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAESA,KAAK;eAALA,YAAK;;IACLC,WAAW;eAAXA,wBAAW;;IACXC,aAAa;eAAbA,4BAAa;;IACbC,KAAK;eAALA,YAAK;;IACLC,QAAQ;eAARA,kBAAQ;;IACRC,cAAc;eAAdA,8BAAc;;IACdC,gBAAgB;eAAhBA,kCAAgB;;IAChBC,QAAQ;eAARA,kBAAQ;;IACRC,cAAc;eAAdA,8BAAc;;IACdC,OAAO;eAAPA,gBAAO;;IACPC,UAAU;eAAVA,sBAAU;;IACVC,SAAS;eAATA,oBAAS;;IACTC,SAAS;eAATA,oBAAS;;IACTC,iBAAiB;eAAjBA,oCAAiB;;IAfjBC,IAAI;eAAJA,UAAI;;IAgBJC,MAAM;eAANA,cAAM;;IACNC,MAAM;eAANA,cAAM;;IACNC,MAAM;eAANA,cAAM;;IAhBCC,eAAe;eAAfA,sBAAe;;IACTC,qBAAqB;eAArBA,kCAAqB;;IACnBC,uBAAuB;eAAvBA,sCAAuB;;IAC/BC,eAAe;eAAfA,sBAAe;;IACZC,kBAAkB;eAAlBA,4BAAkB;;IACZC,wBAAwB;eAAxBA,wCAAwB;;IACtBC,0BAA0B;eAA1BA,4CAA0B;;IAClCC,kBAAkB;eAAlBA,4BAAkB;;IACZC,wBAAwB;eAAxBA,wCAAwB;;IAC/BC,iBAAiB;eAAjBA,0BAAiB;;IACdC,oBAAoB;eAApBA,gCAAoB;;IAZ1BC,mBAAmB;eAAnBA,yBAAmB;;IAadC,mBAAmB;eAAnBA,8BAAmB;;IACnBC,mBAAmB;eAAnBA,8BAAmB;;IACXC,2BAA2B;eAA3BA,8CAA2B;;IAfnBC,cAAc;eAAdA,oBAAc;;IAgBjCC,gBAAgB;eAAhBA,wBAAgB;;IAChBC,gBAAgB;eAAhBA,wBAAgB;;IAChBC,gBAAgB;eAAhBA,wBAAgB;;IAlBmBC,sBAAsB;eAAtBA,4BAAsB;;IAAEC,gBAAgB;eAAhBA,sBAAgB;;;sBAAQ;uBAE7D;6BACY;+BACI;uBAChB;0BACM;gCACY;kCACI;0BAChB;gCACY;yBACd;4BACM;2BACF;2BACA;mCACgB;wBACtB;wBACA;wBACA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-text",
|
3
|
-
"version": "9.4.
|
3
|
+
"version": "9.4.22",
|
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",
|
@@ -33,10 +33,10 @@
|
|
33
33
|
"@fluentui/scripts-tasks": "*"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@fluentui/react-shared-contexts": "^9.19.
|
36
|
+
"@fluentui/react-shared-contexts": "^9.19.1",
|
37
37
|
"@fluentui/react-theme": "^9.1.19",
|
38
|
-
"@fluentui/react-utilities": "^9.18.
|
39
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
38
|
+
"@fluentui/react-utilities": "^9.18.12",
|
39
|
+
"@fluentui/react-jsx-runtime": "^9.0.41",
|
40
40
|
"@griffel/react": "^1.5.22",
|
41
41
|
"@swc/helpers": "^0.5.1"
|
42
42
|
},
|