@fluentui/react-text 9.6.18 → 9.74.3-experimental.esm.20260709-49ee7a20cf.0
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 +15 -2
- package/dist/index.d.cts +240 -0
- package/lib/Body1.js +1 -1
- package/lib/Body1.js.map +1 -1
- package/lib/Body1Strong.js +1 -1
- package/lib/Body1Strong.js.map +1 -1
- package/lib/Body1Stronger.js +1 -1
- package/lib/Body1Stronger.js.map +1 -1
- package/lib/Body2.js +1 -1
- package/lib/Body2.js.map +1 -1
- package/lib/Caption1.js +1 -1
- package/lib/Caption1.js.map +1 -1
- package/lib/Caption1Strong.js +1 -1
- package/lib/Caption1Strong.js.map +1 -1
- package/lib/Caption1Stronger.js +1 -1
- package/lib/Caption1Stronger.js.map +1 -1
- package/lib/Caption2.js +1 -1
- package/lib/Caption2.js.map +1 -1
- package/lib/Caption2Strong.js +1 -1
- package/lib/Caption2Strong.js.map +1 -1
- package/lib/Display.js +1 -1
- package/lib/Display.js.map +1 -1
- package/lib/LargeTitle.js +1 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subtitle1.js +1 -1
- package/lib/Subtitle1.js.map +1 -1
- package/lib/Subtitle2.js +1 -1
- package/lib/Subtitle2.js.map +1 -1
- package/lib/Subtitle2Stronger.js +1 -1
- package/lib/Subtitle2Stronger.js.map +1 -1
- package/lib/Text.js +1 -1
- package/lib/Text.js.map +1 -1
- package/lib/Title1.js +1 -1
- package/lib/Title1.js.map +1 -1
- package/lib/Title2.js +1 -1
- package/lib/Title2.js.map +1 -1
- package/lib/Title3.js +1 -1
- package/lib/Title3.js.map +1 -1
- package/lib/components/Text/Text.js +5 -5
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/index.js +4 -4
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.js +1 -1
- package/lib/components/Text/useText.js +1 -1
- package/lib/components/Text/useTextStyles.styles.js +2 -2
- package/lib/components/Text/useTextStyles.styles.js.map +1 -1
- package/lib/components/Text/useTextStyles.styles.raw.js +2 -2
- package/lib/components/presets/Body1/Body1.js +2 -2
- package/lib/components/presets/Body1/Body1.js.map +1 -1
- package/lib/components/presets/Body1/index.js +2 -2
- package/lib/components/presets/Body1/index.js.map +1 -1
- package/lib/components/presets/Body1/useBody1Styles.styles.js +2 -2
- package/lib/components/presets/Body1/useBody1Styles.styles.js.map +1 -1
- package/lib/components/presets/Body1/useBody1Styles.styles.raw.js +2 -2
- package/lib/components/presets/Body1Strong/Body1Strong.js +2 -2
- package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib/components/presets/Body1Strong/index.js +2 -2
- package/lib/components/presets/Body1Strong/index.js.map +1 -1
- package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.js +2 -2
- package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +1 -1
- package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.raw.js +2 -2
- package/lib/components/presets/Body1Stronger/Body1Stronger.js +2 -2
- package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib/components/presets/Body1Stronger/index.js +2 -2
- package/lib/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js +2 -2
- package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +1 -1
- package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.raw.js +2 -2
- package/lib/components/presets/Body2/Body2.js +2 -2
- package/lib/components/presets/Body2/Body2.js.map +1 -1
- package/lib/components/presets/Body2/index.js +2 -2
- package/lib/components/presets/Body2/index.js.map +1 -1
- package/lib/components/presets/Body2/useBody2Styles.styles.js +2 -2
- package/lib/components/presets/Body2/useBody2Styles.styles.js.map +1 -1
- package/lib/components/presets/Body2/useBody2Styles.styles.raw.js +2 -2
- package/lib/components/presets/Caption1/Caption1.js +2 -2
- package/lib/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib/components/presets/Caption1/index.js +2 -2
- package/lib/components/presets/Caption1/index.js.map +1 -1
- package/lib/components/presets/Caption1/useCaption1Styles.styles.js +2 -2
- package/lib/components/presets/Caption1/useCaption1Styles.styles.js.map +1 -1
- package/lib/components/presets/Caption1/useCaption1Styles.styles.raw.js +2 -2
- package/lib/components/presets/Caption1Strong/Caption1Strong.js +2 -2
- package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib/components/presets/Caption1Strong/index.js +2 -2
- package/lib/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js +2 -2
- package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +1 -1
- package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.raw.js +2 -2
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js +2 -2
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/index.js +2 -2
- package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.js +2 -2
- package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.raw.js +2 -2
- package/lib/components/presets/Caption2/Caption2.js +2 -2
- package/lib/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib/components/presets/Caption2/index.js +2 -2
- package/lib/components/presets/Caption2/index.js.map +1 -1
- package/lib/components/presets/Caption2/useCaption2Styles.styles.js +2 -2
- package/lib/components/presets/Caption2/useCaption2Styles.styles.js.map +1 -1
- package/lib/components/presets/Caption2/useCaption2Styles.styles.raw.js +2 -2
- package/lib/components/presets/Caption2Strong/Caption2Strong.js +2 -2
- package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib/components/presets/Caption2Strong/index.js +2 -2
- package/lib/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js +2 -2
- package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +1 -1
- package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.raw.js +2 -2
- package/lib/components/presets/Display/Display.js +2 -2
- package/lib/components/presets/Display/Display.js.map +1 -1
- package/lib/components/presets/Display/index.js +2 -2
- package/lib/components/presets/Display/index.js.map +1 -1
- package/lib/components/presets/Display/useDisplayStyles.styles.js +2 -2
- package/lib/components/presets/Display/useDisplayStyles.styles.js.map +1 -1
- package/lib/components/presets/Display/useDisplayStyles.styles.raw.js +2 -2
- package/lib/components/presets/LargeTitle/LargeTitle.js +2 -2
- package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/presets/LargeTitle/index.js +2 -2
- package/lib/components/presets/LargeTitle/index.js.map +1 -1
- package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.js +2 -2
- package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +1 -1
- package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.raw.js +2 -2
- package/lib/components/presets/Subtitle1/Subtitle1.js +2 -2
- package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/presets/Subtitle1/index.js +2 -2
- package/lib/components/presets/Subtitle1/index.js.map +1 -1
- package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.js +2 -2
- package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +1 -1
- package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.raw.js +2 -2
- package/lib/components/presets/Subtitle2/Subtitle2.js +2 -2
- package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/presets/Subtitle2/index.js +2 -2
- package/lib/components/presets/Subtitle2/index.js.map +1 -1
- package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.js +2 -2
- package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +1 -1
- package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.raw.js +2 -2
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +2 -2
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js +2 -2
- package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js +2 -2
- package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.raw.js +2 -2
- package/lib/components/presets/Title1/Title1.js +2 -2
- package/lib/components/presets/Title1/Title1.js.map +1 -1
- package/lib/components/presets/Title1/index.js +2 -2
- package/lib/components/presets/Title1/index.js.map +1 -1
- package/lib/components/presets/Title1/useTitle1Styles.styles.js +2 -2
- package/lib/components/presets/Title1/useTitle1Styles.styles.js.map +1 -1
- package/lib/components/presets/Title1/useTitle1Styles.styles.raw.js +2 -2
- package/lib/components/presets/Title2/Title2.js +2 -2
- package/lib/components/presets/Title2/Title2.js.map +1 -1
- package/lib/components/presets/Title2/index.js +2 -2
- package/lib/components/presets/Title2/index.js.map +1 -1
- package/lib/components/presets/Title2/useTitle2Styles.styles.js +2 -2
- package/lib/components/presets/Title2/useTitle2Styles.styles.js.map +1 -1
- package/lib/components/presets/Title2/useTitle2Styles.styles.raw.js +2 -2
- package/lib/components/presets/Title3/Title3.js +2 -2
- package/lib/components/presets/Title3/Title3.js.map +1 -1
- package/lib/components/presets/Title3/index.js +2 -2
- package/lib/components/presets/Title3/index.js.map +1 -1
- package/lib/components/presets/Title3/useTitle3Styles.styles.js +2 -2
- package/lib/components/presets/Title3/useTitle3Styles.styles.js.map +1 -1
- package/lib/components/presets/Title3/useTitle3Styles.styles.raw.js +2 -2
- package/lib/components/presets/createPreset.js +3 -3
- package/lib/components/presets/createPreset.js.map +1 -1
- package/lib/index.js +18 -18
- package/lib/index.js.map +1 -1
- package/lib-commonjs/{Body1.js → Body1.cjs} +1 -1
- package/lib-commonjs/{Body1.js.map → Body1.cjs.map} +1 -1
- package/lib-commonjs/{Body1Strong.js → Body1Strong.cjs} +1 -1
- package/lib-commonjs/{Body1Strong.js.map → Body1Strong.cjs.map} +1 -1
- package/lib-commonjs/{Body1Stronger.js → Body1Stronger.cjs} +1 -1
- package/lib-commonjs/{Body1Stronger.js.map → Body1Stronger.cjs.map} +1 -1
- package/lib-commonjs/{Body2.js → Body2.cjs} +1 -1
- package/lib-commonjs/{Body2.js.map → Body2.cjs.map} +1 -1
- package/lib-commonjs/{Caption1.js → Caption1.cjs} +1 -1
- package/lib-commonjs/{Caption1.js.map → Caption1.cjs.map} +1 -1
- package/lib-commonjs/{Caption1Strong.js → Caption1Strong.cjs} +1 -1
- package/lib-commonjs/{Caption1Strong.js.map → Caption1Strong.cjs.map} +1 -1
- package/lib-commonjs/{Caption1Stronger.js → Caption1Stronger.cjs} +1 -1
- package/lib-commonjs/{Caption1Stronger.js.map → Caption1Stronger.cjs.map} +1 -1
- package/lib-commonjs/{Caption2.js → Caption2.cjs} +1 -1
- package/lib-commonjs/{Caption2.js.map → Caption2.cjs.map} +1 -1
- package/lib-commonjs/{Caption2Strong.js → Caption2Strong.cjs} +1 -1
- package/lib-commonjs/{Caption2Strong.js.map → Caption2Strong.cjs.map} +1 -1
- package/lib-commonjs/{Display.js → Display.cjs} +1 -1
- package/lib-commonjs/{Display.js.map → Display.cjs.map} +1 -1
- package/lib-commonjs/{LargeTitle.js → LargeTitle.cjs} +1 -1
- package/lib-commonjs/{LargeTitle.js.map → LargeTitle.cjs.map} +1 -1
- package/lib-commonjs/{Subtitle1.js → Subtitle1.cjs} +1 -1
- package/lib-commonjs/{Subtitle1.js.map → Subtitle1.cjs.map} +1 -1
- package/lib-commonjs/{Subtitle2.js → Subtitle2.cjs} +1 -1
- package/lib-commonjs/{Subtitle2.js.map → Subtitle2.cjs.map} +1 -1
- package/lib-commonjs/{Subtitle2Stronger.js → Subtitle2Stronger.cjs} +1 -1
- package/lib-commonjs/{Subtitle2Stronger.js.map → Subtitle2Stronger.cjs.map} +1 -1
- package/lib-commonjs/{Text.js → Text.cjs} +1 -1
- package/lib-commonjs/{Text.js.map → Text.cjs.map} +1 -1
- package/lib-commonjs/{Title1.js → Title1.cjs} +1 -1
- package/lib-commonjs/{Title1.js.map → Title1.cjs.map} +1 -1
- package/lib-commonjs/{Title2.js → Title2.cjs} +1 -1
- package/lib-commonjs/{Title2.js.map → Title2.cjs.map} +1 -1
- package/lib-commonjs/{Title3.js → Title3.cjs} +1 -1
- package/lib-commonjs/{Title3.js.map → Title3.cjs.map} +1 -1
- package/lib-commonjs/components/Text/{Text.js → Text.cjs} +3 -3
- package/lib-commonjs/components/Text/{Text.js.map → Text.cjs.map} +1 -1
- package/lib-commonjs/components/Text/{index.js → index.cjs} +4 -4
- package/lib-commonjs/components/Text/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/Text/useTextStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Body1/{Body1.js → Body1.cjs} +2 -2
- package/lib-commonjs/components/presets/Body1/{Body1.js.map → Body1.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body1/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Body1/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Body1Strong/{Body1Strong.js → Body1Strong.cjs} +2 -2
- package/lib-commonjs/components/presets/Body1Strong/{Body1Strong.js.map → Body1Strong.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body1Strong/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Body1Strong/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Body1Stronger/{Body1Stronger.js → Body1Stronger.cjs} +2 -2
- package/lib-commonjs/components/presets/Body1Stronger/{Body1Stronger.js.map → Body1Stronger.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Body1Stronger/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Body2/{Body2.js → Body2.cjs} +2 -2
- package/lib-commonjs/components/presets/Body2/{Body2.js.map → Body2.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body2/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Body2/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Caption1/{Caption1.js → Caption1.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption1/{Caption1.js.map → Caption1.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption1/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption1/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Caption1Strong/{Caption1Strong.js → Caption1Strong.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption1Strong/{Caption1Strong.js.map → Caption1Strong.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption1Strong/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Caption1Stronger/{Caption1Stronger.js → Caption1Stronger.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption1Stronger/{Caption1Stronger.js.map → Caption1Stronger.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption1Stronger/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Caption2/{Caption2.js → Caption2.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption2/{Caption2.js.map → Caption2.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption2/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption2/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Caption2Strong/{Caption2Strong.js → Caption2Strong.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption2Strong/{Caption2Strong.js.map → Caption2Strong.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Caption2Strong/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Display/{Display.js → Display.cjs} +2 -2
- package/lib-commonjs/components/presets/Display/{Display.js.map → Display.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Display/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Display/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/LargeTitle/{LargeTitle.js → LargeTitle.cjs} +2 -2
- package/lib-commonjs/components/presets/LargeTitle/{LargeTitle.js.map → LargeTitle.cjs.map} +1 -1
- package/lib-commonjs/components/presets/LargeTitle/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/LargeTitle/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Subtitle1/{Subtitle1.js → Subtitle1.cjs} +2 -2
- package/lib-commonjs/components/presets/Subtitle1/{Subtitle1.js.map → Subtitle1.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Subtitle1/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Subtitle1/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Subtitle2/{Subtitle2.js → Subtitle2.cjs} +2 -2
- package/lib-commonjs/components/presets/Subtitle2/{Subtitle2.js.map → Subtitle2.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Subtitle2/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Subtitle2/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Subtitle2Stronger/{Subtitle2Stronger.js → Subtitle2Stronger.cjs} +2 -2
- package/lib-commonjs/components/presets/Subtitle2Stronger/{Subtitle2Stronger.js.map → Subtitle2Stronger.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Subtitle2Stronger/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Title1/{Title1.js → Title1.cjs} +2 -2
- package/lib-commonjs/components/presets/Title1/{Title1.js.map → Title1.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Title1/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Title1/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Title2/{Title2.js → Title2.cjs} +2 -2
- package/lib-commonjs/components/presets/Title2/{Title2.js.map → Title2.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Title2/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Title2/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/Title3/{Title3.js → Title3.cjs} +2 -2
- package/lib-commonjs/components/presets/Title3/{Title3.js.map → Title3.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Title3/{index.js → index.cjs} +2 -2
- package/lib-commonjs/components/presets/Title3/{index.js.map → index.cjs.map} +1 -1
- package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.cjs.map +1 -0
- package/lib-commonjs/components/presets/{createPreset.js → createPreset.cjs} +4 -4
- package/lib-commonjs/components/presets/{createPreset.js.map → createPreset.cjs.map} +1 -1
- package/lib-commonjs/{index.js → index.cjs} +18 -18
- package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
- package/package.json +17 -16
- package/lib-commonjs/components/Text/useTextStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.js.map +0 -1
- package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.js.map +0 -1
- /package/lib-commonjs/components/Text/{Text.types.js → Text.types.cjs} +0 -0
- /package/lib-commonjs/components/Text/{Text.types.js.map → Text.types.cjs.map} +0 -0
- /package/lib-commonjs/components/Text/{renderText.js → renderText.cjs} +0 -0
- /package/lib-commonjs/components/Text/{renderText.js.map → renderText.cjs.map} +0 -0
- /package/lib-commonjs/components/Text/{useText.js → useText.cjs} +0 -0
- /package/lib-commonjs/components/Text/{useText.js.map → useText.cjs.map} +0 -0
- /package/lib-commonjs/components/Text/{useTextStyles.styles.js → useTextStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/Text/{useTextStyles.styles.raw.js → useTextStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/Text/{useTextStyles.styles.raw.js.map → useTextStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Body1/{useBody1Styles.styles.js → useBody1Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body1/{useBody1Styles.styles.raw.js → useBody1Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body1/{useBody1Styles.styles.raw.js.map → useBody1Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Body1Strong/{useBody1StrongStyles.styles.js → useBody1StrongStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body1Strong/{useBody1StrongStyles.styles.raw.js → useBody1StrongStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body1Strong/{useBody1StrongStyles.styles.raw.js.map → useBody1StrongStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Body1Stronger/{useBody1StrongerStyles.styles.js → useBody1StrongerStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body1Stronger/{useBody1StrongerStyles.styles.raw.js → useBody1StrongerStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body1Stronger/{useBody1StrongerStyles.styles.raw.js.map → useBody1StrongerStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Body2/{useBody2Styles.styles.js → useBody2Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body2/{useBody2Styles.styles.raw.js → useBody2Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Body2/{useBody2Styles.styles.raw.js.map → useBody2Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Caption1/{useCaption1Styles.styles.js → useCaption1Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption1/{useCaption1Styles.styles.raw.js → useCaption1Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption1/{useCaption1Styles.styles.raw.js.map → useCaption1Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Caption1Strong/{useCaption1StrongStyles.styles.js → useCaption1StrongStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption1Strong/{useCaption1StrongStyles.styles.raw.js → useCaption1StrongStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption1Strong/{useCaption1StrongStyles.styles.raw.js.map → useCaption1StrongStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Caption1Stronger/{useCaption1Stronger.styles.js → useCaption1Stronger.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption1Stronger/{useCaption1Stronger.styles.raw.js → useCaption1Stronger.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption1Stronger/{useCaption1Stronger.styles.raw.js.map → useCaption1Stronger.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Caption2/{useCaption2Styles.styles.js → useCaption2Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption2/{useCaption2Styles.styles.raw.js → useCaption2Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption2/{useCaption2Styles.styles.raw.js.map → useCaption2Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Caption2Strong/{useCaption2StrongStyles.styles.js → useCaption2StrongStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption2Strong/{useCaption2StrongStyles.styles.raw.js → useCaption2StrongStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Caption2Strong/{useCaption2StrongStyles.styles.raw.js.map → useCaption2StrongStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Display/{useDisplayStyles.styles.js → useDisplayStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Display/{useDisplayStyles.styles.raw.js → useDisplayStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Display/{useDisplayStyles.styles.raw.js.map → useDisplayStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/LargeTitle/{useLargeTitleStyles.styles.js → useLargeTitleStyles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/LargeTitle/{useLargeTitleStyles.styles.raw.js → useLargeTitleStyles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/LargeTitle/{useLargeTitleStyles.styles.raw.js.map → useLargeTitleStyles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Subtitle1/{useSubtitle1Styles.styles.js → useSubtitle1Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Subtitle1/{useSubtitle1Styles.styles.raw.js → useSubtitle1Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Subtitle1/{useSubtitle1Styles.styles.raw.js.map → useSubtitle1Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Subtitle2/{useSubtitle2Styles.styles.js → useSubtitle2Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Subtitle2/{useSubtitle2Styles.styles.raw.js → useSubtitle2Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Subtitle2/{useSubtitle2Styles.styles.raw.js.map → useSubtitle2Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Subtitle2Stronger/{useSubtitle2Stronger.styles.js → useSubtitle2Stronger.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Subtitle2Stronger/{useSubtitle2Stronger.styles.raw.js → useSubtitle2Stronger.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Subtitle2Stronger/{useSubtitle2Stronger.styles.raw.js.map → useSubtitle2Stronger.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Title1/{useTitle1Styles.styles.js → useTitle1Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Title1/{useTitle1Styles.styles.raw.js → useTitle1Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Title1/{useTitle1Styles.styles.raw.js.map → useTitle1Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Title2/{useTitle2Styles.styles.js → useTitle2Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Title2/{useTitle2Styles.styles.raw.js → useTitle2Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Title2/{useTitle2Styles.styles.raw.js.map → useTitle2Styles.styles.raw.cjs.map} +0 -0
- /package/lib-commonjs/components/presets/Title3/{useTitle3Styles.styles.js → useTitle3Styles.styles.cjs} +0 -0
- /package/lib-commonjs/components/presets/Title3/{useTitle3Styles.styles.raw.js → useTitle3Styles.styles.raw.cjs} +0 -0
- /package/lib-commonjs/components/presets/Title3/{useTitle3Styles.styles.raw.js.map → useTitle3Styles.styles.raw.cjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-text
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 09 Jul 2026 17:34:21 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.74.3-experimental.esm.20260709-49ee7a20cf.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.74.3-experimental.esm.20260709-49ee7a20cf.0)
|
|
8
|
+
|
|
9
|
+
Thu, 09 Jul 2026 17:34:21 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.6.18..@fluentui/react-text_v9.74.3-experimental.esm.20260709-49ee7a20cf.0)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Release 9.74.3-experimental.esm.20260709-49ee7a20cf ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-shared-contexts to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
|
|
16
|
+
- Bump @fluentui/react-theme to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
|
|
17
|
+
- Bump @fluentui/react-utilities to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
|
|
18
|
+
- Bump @fluentui/react-jsx-runtime to v9.74.3-experimental.esm.20260709-49ee7a20cf.0 ([commit](https://github.com/microsoft/fluentui/commit/175a26e0c520dd90a54578d1185a3b0b6c446e15) by beachball)
|
|
19
|
+
|
|
7
20
|
## [9.6.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.6.18)
|
|
8
21
|
|
|
9
|
-
Wed, 24 Jun 2026 11:
|
|
22
|
+
Wed, 24 Jun 2026 11:10:01 GMT
|
|
10
23
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.6.17..@fluentui/react-text_v9.6.18)
|
|
11
24
|
|
|
12
25
|
### Patches
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
2
|
+
import type { ComponentState } from '@fluentui/react-utilities';
|
|
3
|
+
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
4
|
+
import type { JSXElement } from '@fluentui/react-utilities';
|
|
5
|
+
import type * as React_2 from 'react';
|
|
6
|
+
import type { Slot } from '@fluentui/react-utilities';
|
|
7
|
+
import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Text preset component for the Body1 typography variant
|
|
11
|
+
*/
|
|
12
|
+
export declare const Body1: React_2.FunctionComponent<TextPresetProps>;
|
|
13
|
+
|
|
14
|
+
export declare const body1ClassNames: SlotClassNames<TextSlots>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Text preset component for the Body1Strong typography variant
|
|
18
|
+
*/
|
|
19
|
+
export declare const Body1Strong: React_2.FunctionComponent<TextPresetProps>;
|
|
20
|
+
|
|
21
|
+
export declare const body1StrongClassNames: SlotClassNames<TextSlots>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Text preset component for the Body1Stronger typography variant
|
|
25
|
+
*/
|
|
26
|
+
export declare const Body1Stronger: React_2.FunctionComponent<TextPresetProps>;
|
|
27
|
+
|
|
28
|
+
export declare const body1StrongerClassNames: SlotClassNames<TextSlots>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Text preset component for the Body2 typography variant
|
|
32
|
+
*/
|
|
33
|
+
export declare const Body2: React_2.FunctionComponent<TextPresetProps>;
|
|
34
|
+
|
|
35
|
+
export declare const body2ClassNames: SlotClassNames<TextSlots>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Text preset component for the Caption1 typography variant
|
|
39
|
+
*/
|
|
40
|
+
export declare const Caption1: React_2.FunctionComponent<TextPresetProps>;
|
|
41
|
+
|
|
42
|
+
export declare const caption1ClassNames: SlotClassNames<TextSlots>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Text preset component for the Caption1Strong typography variant
|
|
46
|
+
*/
|
|
47
|
+
export declare const Caption1Strong: React_2.FunctionComponent<TextPresetProps>;
|
|
48
|
+
|
|
49
|
+
export declare const caption1StrongClassNames: SlotClassNames<TextSlots>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Text preset component for the Caption1Stronger typography variant
|
|
53
|
+
*/
|
|
54
|
+
export declare const Caption1Stronger: React_2.FunctionComponent<TextPresetProps>;
|
|
55
|
+
|
|
56
|
+
export declare const caption1StrongerClassNames: SlotClassNames<TextSlots>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Text preset component for the Caption2 typography variant
|
|
60
|
+
*/
|
|
61
|
+
export declare const Caption2: React_2.FunctionComponent<TextPresetProps>;
|
|
62
|
+
|
|
63
|
+
export declare const caption2ClassNames: SlotClassNames<TextSlots>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Text preset component for the Caption2Strong typography variant
|
|
67
|
+
*/
|
|
68
|
+
export declare const Caption2Strong: React_2.FunctionComponent<TextPresetProps>;
|
|
69
|
+
|
|
70
|
+
export declare const caption2StrongClassNames: SlotClassNames<TextSlots>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Text preset component for the Display typography variant
|
|
74
|
+
*/
|
|
75
|
+
export declare const Display: React_2.FunctionComponent<TextPresetProps>;
|
|
76
|
+
|
|
77
|
+
export declare const displayClassNames: SlotClassNames<TextSlots>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Text preset component for the Large Title typography variant
|
|
81
|
+
*/
|
|
82
|
+
export declare const LargeTitle: React_2.FunctionComponent<TextPresetProps>;
|
|
83
|
+
|
|
84
|
+
export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Render the final JSX of Text
|
|
88
|
+
*/
|
|
89
|
+
export declare const renderText_unstable: (state: TextState) => JSXElement;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Text preset component for the Subtitle1 typography variant
|
|
93
|
+
*/
|
|
94
|
+
export declare const Subtitle1: React_2.FunctionComponent<TextPresetProps>;
|
|
95
|
+
|
|
96
|
+
export declare const subtitle1ClassNames: SlotClassNames<TextSlots>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Text preset component for the Subtitle2 typography variant
|
|
100
|
+
*/
|
|
101
|
+
export declare const Subtitle2: React_2.FunctionComponent<TextPresetProps>;
|
|
102
|
+
|
|
103
|
+
export declare const subtitle2ClassNames: SlotClassNames<TextSlots>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Text preset component for the Subtitle2Stronger typography variant
|
|
107
|
+
*/
|
|
108
|
+
export declare const Subtitle2Stronger: React_2.FunctionComponent<TextPresetProps>;
|
|
109
|
+
|
|
110
|
+
export declare const subtitle2StrongerClassNames: SlotClassNames<TextSlots>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Typography and styling abstraction component used to ensure consistency of text.
|
|
114
|
+
*/
|
|
115
|
+
declare const Text_2: ForwardRefComponent<TextProps>;
|
|
116
|
+
export { Text_2 as Text }
|
|
117
|
+
|
|
118
|
+
export declare const textClassNames: SlotClassNames<TextSlots>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* TextPreset Props
|
|
122
|
+
*/
|
|
123
|
+
export declare type TextPresetProps = Omit<TextProps, 'font' | 'size' | 'weight'>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Text Props
|
|
127
|
+
*/
|
|
128
|
+
export declare type TextProps = ComponentProps<TextSlots> & {
|
|
129
|
+
/**
|
|
130
|
+
* Aligns text based on the parent container.
|
|
131
|
+
*
|
|
132
|
+
* @default start
|
|
133
|
+
*/
|
|
134
|
+
align?: 'start' | 'center' | 'end' | 'justify';
|
|
135
|
+
/**
|
|
136
|
+
* Applies a block display for the content.
|
|
137
|
+
*
|
|
138
|
+
* @default false
|
|
139
|
+
*/
|
|
140
|
+
block?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Applies the font family to the content.
|
|
143
|
+
*
|
|
144
|
+
* @default base
|
|
145
|
+
*/
|
|
146
|
+
font?: 'base' | 'monospace' | 'numeric';
|
|
147
|
+
/**
|
|
148
|
+
* Applies the italic font style to the content.
|
|
149
|
+
*
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
italic?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Applies font size and line height based on the theme typography tokens.
|
|
155
|
+
*
|
|
156
|
+
* @default 300
|
|
157
|
+
*/
|
|
158
|
+
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
|
|
159
|
+
/**
|
|
160
|
+
* Applies the strikethrough text decoration to the content.
|
|
161
|
+
*
|
|
162
|
+
* @default false
|
|
163
|
+
*/
|
|
164
|
+
strikethrough?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Truncate overflowing text for block displays.
|
|
167
|
+
*
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
truncate?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Applies the underline text decoration to the content.
|
|
173
|
+
*
|
|
174
|
+
* @default false
|
|
175
|
+
*/
|
|
176
|
+
underline?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Applies font weight to the content.
|
|
179
|
+
*
|
|
180
|
+
* @default regular
|
|
181
|
+
*/
|
|
182
|
+
weight?: 'regular' | 'medium' | 'semibold' | 'bold';
|
|
183
|
+
/**
|
|
184
|
+
* Wraps the text content on white spaces.
|
|
185
|
+
*
|
|
186
|
+
* @default true
|
|
187
|
+
*/
|
|
188
|
+
wrap?: boolean;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Text slots
|
|
193
|
+
*/
|
|
194
|
+
export declare type TextSlots = {
|
|
195
|
+
root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre' | 'strong' | 'b' | 'em' | 'i'>;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* State used in rendering Text
|
|
200
|
+
*/
|
|
201
|
+
export declare type TextState = ComponentState<TextSlots> & Required<Pick<TextProps, 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'>>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Text preset component for the Title 1 typography variant
|
|
205
|
+
*/
|
|
206
|
+
export declare const Title1: React_2.FunctionComponent<TextPresetProps>;
|
|
207
|
+
|
|
208
|
+
export declare const title1ClassNames: SlotClassNames<TextSlots>;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Text preset component for the Title 2 typography variant
|
|
212
|
+
*/
|
|
213
|
+
export declare const Title2: React_2.FunctionComponent<TextPresetProps>;
|
|
214
|
+
|
|
215
|
+
export declare const title2ClassNames: SlotClassNames<TextSlots>;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Text preset component for the Title 3 typography variant
|
|
219
|
+
*/
|
|
220
|
+
export declare const Title3: React_2.FunctionComponent<TextPresetProps>;
|
|
221
|
+
|
|
222
|
+
export declare const title3ClassNames: SlotClassNames<TextSlots>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Create the state required to render Text.
|
|
226
|
+
*
|
|
227
|
+
* The returned state can be modified with hooks such as useTextStyles_unstable,
|
|
228
|
+
* before being passed to renderText_unstable.
|
|
229
|
+
*
|
|
230
|
+
* @param props - props from this instance of Text
|
|
231
|
+
* @param ref - reference to root HTMLElement of Text
|
|
232
|
+
*/
|
|
233
|
+
export declare const useText_unstable: (props: TextProps, ref: React_2.Ref<HTMLElement>) => TextState;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Apply styling to the Text slots based on the state
|
|
237
|
+
*/
|
|
238
|
+
export declare const useTextStyles_unstable: (state: TextState) => TextState;
|
|
239
|
+
|
|
240
|
+
export { }
|
package/lib/Body1.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Body1, body1ClassNames } from
|
|
1
|
+
export { Body1, body1ClassNames } from "./components/presets/Body1/index.js";
|
package/lib/Body1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Body1.ts"],"sourcesContent":["export { Body1, body1ClassNames } from './components/presets/Body1/index';\n"],"names":["Body1","body1ClassNames"],"mappings":"AAAA,SAASA,KAAK,EAAEC,eAAe,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Body1.ts"],"sourcesContent":["export { Body1, body1ClassNames } from './components/presets/Body1/index';\n"],"names":["Body1","body1ClassNames"],"mappings":"AAAA,SAASA,KAAK,EAAEC,eAAe,QAAQ,sCAAmC"}
|
package/lib/Body1Strong.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Body1Strong, body1StrongClassNames } from
|
|
1
|
+
export { Body1Strong, body1StrongClassNames } from "./components/presets/Body1Strong/index.js";
|
package/lib/Body1Strong.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Body1Strong.ts"],"sourcesContent":["export { Body1Strong, body1StrongClassNames } from './components/presets/Body1Strong/index';\n"],"names":["Body1Strong","body1StrongClassNames"],"mappings":"AAAA,SAASA,WAAW,EAAEC,qBAAqB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Body1Strong.ts"],"sourcesContent":["export { Body1Strong, body1StrongClassNames } from './components/presets/Body1Strong/index';\n"],"names":["Body1Strong","body1StrongClassNames"],"mappings":"AAAA,SAASA,WAAW,EAAEC,qBAAqB,QAAQ,4CAAyC"}
|
package/lib/Body1Stronger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Body1Stronger, body1StrongerClassNames } from
|
|
1
|
+
export { Body1Stronger, body1StrongerClassNames } from "./components/presets/Body1Stronger/index.js";
|
package/lib/Body1Stronger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Body1Stronger.ts"],"sourcesContent":["export { Body1Stronger, body1StrongerClassNames } from './components/presets/Body1Stronger/index';\n"],"names":["Body1Stronger","body1StrongerClassNames"],"mappings":"AAAA,SAASA,aAAa,EAAEC,uBAAuB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Body1Stronger.ts"],"sourcesContent":["export { Body1Stronger, body1StrongerClassNames } from './components/presets/Body1Stronger/index';\n"],"names":["Body1Stronger","body1StrongerClassNames"],"mappings":"AAAA,SAASA,aAAa,EAAEC,uBAAuB,QAAQ,8CAA2C"}
|
package/lib/Body2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Body2, body2ClassNames } from
|
|
1
|
+
export { Body2, body2ClassNames } from "./components/presets/Body2/index.js";
|
package/lib/Body2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Body2.ts"],"sourcesContent":["export { Body2, body2ClassNames } from './components/presets/Body2/index';\n"],"names":["Body2","body2ClassNames"],"mappings":"AAAA,SAASA,KAAK,EAAEC,eAAe,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Body2.ts"],"sourcesContent":["export { Body2, body2ClassNames } from './components/presets/Body2/index';\n"],"names":["Body2","body2ClassNames"],"mappings":"AAAA,SAASA,KAAK,EAAEC,eAAe,QAAQ,sCAAmC"}
|
package/lib/Caption1.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Caption1, caption1ClassNames } from
|
|
1
|
+
export { Caption1, caption1ClassNames } from "./components/presets/Caption1/index.js";
|
package/lib/Caption1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Caption1.ts"],"sourcesContent":["export { Caption1, caption1ClassNames } from './components/presets/Caption1/index';\n"],"names":["Caption1","caption1ClassNames"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Caption1.ts"],"sourcesContent":["export { Caption1, caption1ClassNames } from './components/presets/Caption1/index';\n"],"names":["Caption1","caption1ClassNames"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,yCAAsC"}
|
package/lib/Caption1Strong.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Caption1Strong, caption1StrongClassNames } from
|
|
1
|
+
export { Caption1Strong, caption1StrongClassNames } from "./components/presets/Caption1Strong/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Caption1Strong.ts"],"sourcesContent":["export { Caption1Strong, caption1StrongClassNames } from './components/presets/Caption1Strong/index';\n"],"names":["Caption1Strong","caption1StrongClassNames"],"mappings":"AAAA,SAASA,cAAc,EAAEC,wBAAwB,QAAQ
|
|
1
|
+
{"version":3,"sources":["../src/Caption1Strong.ts"],"sourcesContent":["export { Caption1Strong, caption1StrongClassNames } from './components/presets/Caption1Strong/index';\n"],"names":["Caption1Strong","caption1StrongClassNames"],"mappings":"AAAA,SAASA,cAAc,EAAEC,wBAAwB,QAAQ,+CAA4C"}
|
package/lib/Caption1Stronger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Caption1Stronger, caption1StrongerClassNames } from
|
|
1
|
+
export { Caption1Stronger, caption1StrongerClassNames } from "./components/presets/Caption1Stronger/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Caption1Stronger.ts"],"sourcesContent":["export { Caption1Stronger, caption1StrongerClassNames } from './components/presets/Caption1Stronger/index';\n"],"names":["Caption1Stronger","caption1StrongerClassNames"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,0BAA0B,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Caption1Stronger.ts"],"sourcesContent":["export { Caption1Stronger, caption1StrongerClassNames } from './components/presets/Caption1Stronger/index';\n"],"names":["Caption1Stronger","caption1StrongerClassNames"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,0BAA0B,QAAQ,iDAA8C"}
|
package/lib/Caption2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Caption2, caption2ClassNames } from
|
|
1
|
+
export { Caption2, caption2ClassNames } from "./components/presets/Caption2/index.js";
|
package/lib/Caption2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Caption2.ts"],"sourcesContent":["export { Caption2, caption2ClassNames } from './components/presets/Caption2/index';\n"],"names":["Caption2","caption2ClassNames"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Caption2.ts"],"sourcesContent":["export { Caption2, caption2ClassNames } from './components/presets/Caption2/index';\n"],"names":["Caption2","caption2ClassNames"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,yCAAsC"}
|
package/lib/Caption2Strong.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Caption2Strong, caption2StrongClassNames } from
|
|
1
|
+
export { Caption2Strong, caption2StrongClassNames } from "./components/presets/Caption2Strong/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Caption2Strong.ts"],"sourcesContent":["export { Caption2Strong, caption2StrongClassNames } from './components/presets/Caption2Strong/index';\n"],"names":["Caption2Strong","caption2StrongClassNames"],"mappings":"AAAA,SAASA,cAAc,EAAEC,wBAAwB,QAAQ
|
|
1
|
+
{"version":3,"sources":["../src/Caption2Strong.ts"],"sourcesContent":["export { Caption2Strong, caption2StrongClassNames } from './components/presets/Caption2Strong/index';\n"],"names":["Caption2Strong","caption2StrongClassNames"],"mappings":"AAAA,SAASA,cAAc,EAAEC,wBAAwB,QAAQ,+CAA4C"}
|
package/lib/Display.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Display, displayClassNames } from
|
|
1
|
+
export { Display, displayClassNames } from "./components/presets/Display/index.js";
|
package/lib/Display.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Display.ts"],"sourcesContent":["export { Display, displayClassNames } from './components/presets/Display/index';\n"],"names":["Display","displayClassNames"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Display.ts"],"sourcesContent":["export { Display, displayClassNames } from './components/presets/Display/index';\n"],"names":["Display","displayClassNames"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,wCAAqC"}
|
package/lib/LargeTitle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LargeTitle, largeTitleClassNames } from
|
|
1
|
+
export { LargeTitle, largeTitleClassNames } from "./components/presets/LargeTitle/index.js";
|
package/lib/LargeTitle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/LargeTitle.ts"],"sourcesContent":["export { LargeTitle, largeTitleClassNames } from './components/presets/LargeTitle/index';\n"],"names":["LargeTitle","largeTitleClassNames"],"mappings":"AAAA,SAASA,UAAU,EAAEC,oBAAoB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/LargeTitle.ts"],"sourcesContent":["export { LargeTitle, largeTitleClassNames } from './components/presets/LargeTitle/index';\n"],"names":["LargeTitle","largeTitleClassNames"],"mappings":"AAAA,SAASA,UAAU,EAAEC,oBAAoB,QAAQ,2CAAwC"}
|
package/lib/Subtitle1.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Subtitle1, subtitle1ClassNames } from
|
|
1
|
+
export { Subtitle1, subtitle1ClassNames } from "./components/presets/Subtitle1/index.js";
|
package/lib/Subtitle1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Subtitle1.ts"],"sourcesContent":["export { Subtitle1, subtitle1ClassNames } from './components/presets/Subtitle1/index';\n"],"names":["Subtitle1","subtitle1ClassNames"],"mappings":"AAAA,SAASA,SAAS,EAAEC,mBAAmB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Subtitle1.ts"],"sourcesContent":["export { Subtitle1, subtitle1ClassNames } from './components/presets/Subtitle1/index';\n"],"names":["Subtitle1","subtitle1ClassNames"],"mappings":"AAAA,SAASA,SAAS,EAAEC,mBAAmB,QAAQ,0CAAuC"}
|
package/lib/Subtitle2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Subtitle2, subtitle2ClassNames } from
|
|
1
|
+
export { Subtitle2, subtitle2ClassNames } from "./components/presets/Subtitle2/index.js";
|
package/lib/Subtitle2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Subtitle2.ts"],"sourcesContent":["export { Subtitle2, subtitle2ClassNames } from './components/presets/Subtitle2/index';\n"],"names":["Subtitle2","subtitle2ClassNames"],"mappings":"AAAA,SAASA,SAAS,EAAEC,mBAAmB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Subtitle2.ts"],"sourcesContent":["export { Subtitle2, subtitle2ClassNames } from './components/presets/Subtitle2/index';\n"],"names":["Subtitle2","subtitle2ClassNames"],"mappings":"AAAA,SAASA,SAAS,EAAEC,mBAAmB,QAAQ,0CAAuC"}
|
package/lib/Subtitle2Stronger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Subtitle2Stronger, subtitle2StrongerClassNames } from
|
|
1
|
+
export { Subtitle2Stronger, subtitle2StrongerClassNames } from "./components/presets/Subtitle2Stronger/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Subtitle2Stronger.ts"],"sourcesContent":["export { Subtitle2Stronger, subtitle2StrongerClassNames } from './components/presets/Subtitle2Stronger/index';\n"],"names":["Subtitle2Stronger","subtitle2StrongerClassNames"],"mappings":"AAAA,SAASA,iBAAiB,EAAEC,2BAA2B,QAAQ
|
|
1
|
+
{"version":3,"sources":["../src/Subtitle2Stronger.ts"],"sourcesContent":["export { Subtitle2Stronger, subtitle2StrongerClassNames } from './components/presets/Subtitle2Stronger/index';\n"],"names":["Subtitle2Stronger","subtitle2StrongerClassNames"],"mappings":"AAAA,SAASA,iBAAiB,EAAEC,2BAA2B,QAAQ,kDAA+C"}
|
package/lib/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Text, renderText_unstable, textClassNames, useTextStyles_unstable, useText_unstable } from
|
|
1
|
+
export { Text, renderText_unstable, textClassNames, useTextStyles_unstable, useText_unstable } from "./components/Text/index.js";
|
package/lib/Text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Text.ts"],"sourcesContent":["export type { TextPresetProps, TextProps, TextSlots, TextState } from './components/Text/index';\nexport {\n Text,\n renderText_unstable,\n textClassNames,\n useTextStyles_unstable,\n useText_unstable,\n} from './components/Text/index';\n"],"names":["Text","renderText_unstable","textClassNames","useTextStyles_unstable","useText_unstable"],"mappings":"AACA,SACEA,IAAI,EACJC,mBAAmB,EACnBC,cAAc,EACdC,sBAAsB,EACtBC,gBAAgB,QACX,
|
|
1
|
+
{"version":3,"sources":["../src/Text.ts"],"sourcesContent":["export type { TextPresetProps, TextProps, TextSlots, TextState } from './components/Text/index';\nexport {\n Text,\n renderText_unstable,\n textClassNames,\n useTextStyles_unstable,\n useText_unstable,\n} from './components/Text/index';\n"],"names":["Text","renderText_unstable","textClassNames","useTextStyles_unstable","useText_unstable"],"mappings":"AACA,SACEA,IAAI,EACJC,mBAAmB,EACnBC,cAAc,EACdC,sBAAsB,EACtBC,gBAAgB,QACX,6BAA0B"}
|
package/lib/Title1.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Title1, title1ClassNames } from
|
|
1
|
+
export { Title1, title1ClassNames } from "./components/presets/Title1/index.js";
|
package/lib/Title1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Title1.ts"],"sourcesContent":["export { Title1, title1ClassNames } from './components/presets/Title1/index';\n"],"names":["Title1","title1ClassNames"],"mappings":"AAAA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Title1.ts"],"sourcesContent":["export { Title1, title1ClassNames } from './components/presets/Title1/index';\n"],"names":["Title1","title1ClassNames"],"mappings":"AAAA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,uCAAoC"}
|
package/lib/Title2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Title2, title2ClassNames } from
|
|
1
|
+
export { Title2, title2ClassNames } from "./components/presets/Title2/index.js";
|
package/lib/Title2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Title2.ts"],"sourcesContent":["export { Title2, title2ClassNames } from './components/presets/Title2/index';\n"],"names":["Title2","title2ClassNames"],"mappings":"AAAA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Title2.ts"],"sourcesContent":["export { Title2, title2ClassNames } from './components/presets/Title2/index';\n"],"names":["Title2","title2ClassNames"],"mappings":"AAAA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,uCAAoC"}
|
package/lib/Title3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Title3, title3ClassNames } from
|
|
1
|
+
export { Title3, title3ClassNames } from "./components/presets/Title3/index.js";
|
package/lib/Title3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Title3.ts"],"sourcesContent":["export { Title3, title3ClassNames } from './components/presets/Title3/index';\n"],"names":["Title3","title3ClassNames"],"mappings":"AAAA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/Title3.ts"],"sourcesContent":["export { Title3, title3ClassNames } from './components/presets/Title3/index';\n"],"names":["Title3","title3ClassNames"],"mappings":"AAAA,SAASA,MAAM,EAAEC,gBAAgB,QAAQ,uCAAoC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { useText_unstable } from
|
|
4
|
-
import { renderText_unstable } from
|
|
5
|
-
import { useTextStyles_unstable } from
|
|
6
|
-
import { useCustomStyleHook_unstable } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useText_unstable } from "./useText.js";
|
|
4
|
+
import { renderText_unstable } from "./renderText.js";
|
|
5
|
+
import { useTextStyles_unstable } from "./useTextStyles.styles.js";
|
|
6
|
+
import { useCustomStyleHook_unstable } from "@fluentui/react-shared-contexts";
|
|
7
7
|
/**
|
|
8
8
|
* Typography and styling abstraction component used to ensure consistency of text.
|
|
9
9
|
*/ export const Text = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Text/Text.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles.styles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTextStyles_unstable')(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"names":["React","useText_unstable","renderText_unstable","useTextStyles_unstable","useCustomStyleHook_unstable","Text","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/Text/Text.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles.styles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Typography and styling abstraction component used to ensure consistency of text.\n */\nexport const Text: ForwardRefComponent<TextProps> = React.forwardRef((props, ref) => {\n const state = useText_unstable(props, ref);\n\n useTextStyles_unstable(state);\n\n useCustomStyleHook_unstable('useTextStyles_unstable')(state);\n\n return renderText_unstable(state);\n // Work around some small mismatches in inferred types which don't matter in practice\n}) as ForwardRefComponent<TextProps>;\n\nText.displayName = 'Text';\n"],"names":["React","useText_unstable","renderText_unstable","useTextStyles_unstable","useCustomStyleHook_unstable","Text","forwardRef","props","ref","state","displayName"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ,eAAY;AAC7C,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,sBAAsB,QAAQ,4BAAyB;AAGhE,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,qBAAuCL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC3E,MAAMC,QAAQR,iBAAiBM,OAAOC;IAEtCL,uBAAuBM;IAEvBL,4BAA4B,0BAA0BK;IAEtD,OAAOP,oBAAoBO;AAC3B,qFAAqF;AACvF,GAAqC;AAErCJ,KAAKK,WAAW,GAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Text } from
|
|
2
|
-
export { renderText_unstable } from
|
|
3
|
-
export { useText_unstable } from
|
|
4
|
-
export { textClassNames, useTextStyles_unstable } from
|
|
1
|
+
export { Text } from "./Text.js";
|
|
2
|
+
export { renderText_unstable } from "./renderText.js";
|
|
3
|
+
export { useText_unstable } from "./useText.js";
|
|
4
|
+
export { textClassNames, useTextStyles_unstable } from "./useTextStyles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Text/index.ts"],"sourcesContent":["export { Text } from './Text';\nexport type { TextPresetProps, TextProps, TextSlots, TextState } from './Text.types';\nexport { renderText_unstable } from './renderText';\nexport { useText_unstable } from './useText';\nexport { textClassNames, useTextStyles_unstable } from './useTextStyles.styles';\n"],"names":["Text","renderText_unstable","useText_unstable","textClassNames","useTextStyles_unstable"],"mappings":"AAAA,SAASA,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/Text/index.ts"],"sourcesContent":["export { Text } from './Text';\nexport type { TextPresetProps, TextProps, TextSlots, TextState } from './Text.types';\nexport { renderText_unstable } from './renderText';\nexport { useText_unstable } from './useText';\nexport { textClassNames, useTextStyles_unstable } from './useTextStyles.styles';\n"],"names":["Text","renderText_unstable","useText_unstable","textClassNames","useTextStyles_unstable"],"mappings":"AAAA,SAASA,IAAI,QAAQ,YAAS;AAE9B,SAASC,mBAAmB,QAAQ,kBAAe;AACnD,SAASC,gBAAgB,QAAQ,eAAY;AAC7C,SAASC,cAAc,EAAEC,sBAAsB,QAAQ,4BAAyB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
|
-
import { assertSlots } from
|
|
2
|
+
import { assertSlots } from "@fluentui/react-utilities";
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of Text
|
|
5
5
|
*/ export const renderText_unstable = (state)=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { __styles, mergeClasses } from
|
|
4
|
-
import { tokens } from
|
|
3
|
+
import { __styles, mergeClasses } from "@griffel/react";
|
|
4
|
+
import { tokens } from "@fluentui/react-theme";
|
|
5
5
|
export const textClassNames = {
|
|
6
6
|
root: 'fui-Text'
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__styles","mergeClasses","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","Bpg54ce","ygn44y","nowrap","truncate","block","italic","B80ckks","underline","w71qe1","strikethrough","strikethroughUnderline","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","monospace","numeric","weightMedium","weightSemibold","weightBold","alignCenter","alignEnd","alignJustify","d","p","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"sources":["useTextStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","Bpg54ce","ygn44y","nowrap","truncate","block","italic","B80ckks","underline","w71qe1","strikethrough","strikethroughUnderline","base100","base200","base400","base500","base600","hero700","hero800","hero900","hero1000","monospace","numeric","weightMedium","weightSemibold","weightBold","alignCenter","alignEnd","alignJustify","d","p","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"sources":["useTextStyles.styles.js"],"sourcesContent":["'use client';\nimport { makeStyles, mergeClasses } from \"@griffel/react\";\nimport { tokens } from \"@fluentui/react-theme\";\nexport const textClassNames = {\n root: 'fui-Text'\n};\n/**\n * Styles for the root slot\n */ const useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n overflow: 'visible',\n textOverflow: 'clip'\n },\n nowrap: {\n whiteSpace: 'nowrap',\n overflow: 'hidden'\n },\n truncate: {\n textOverflow: 'ellipsis'\n },\n block: {\n display: 'block'\n },\n italic: {\n fontStyle: 'italic'\n },\n underline: {\n textDecorationLine: 'underline'\n },\n strikethrough: {\n textDecorationLine: 'line-through'\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline'\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold\n },\n weightBold: {\n fontWeight: tokens.fontWeightBold\n },\n alignCenter: {\n textAlign: 'center'\n },\n alignEnd: {\n textAlign: 'end'\n },\n alignJustify: {\n textAlign: 'justify'\n }\n});\n/**\n * Apply styling to the Text slots based on the state\n */ export const useTextStyles_unstable = (state)=>{\n const styles = useStyles();\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = mergeClasses(textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.weight === 'bold' && styles.weightBold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);\n return state;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,SAAAA,QAAA,EAAqBC,YAAY,QAAQ,gBAAgB;AACzD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,cAAc,GAAG;EAC1BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGL,QAAA;EAAAI,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,MAAA;IAAAL,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAG,QAAA;IAAAF,MAAA;EAAA;EAAAG,KAAA;IAAAR,MAAA;EAAA;EAAAS,MAAA;IAAAC,OAAA;EAAA;EAAAC,SAAA;IAAAC,MAAA;EAAA;EAAAC,aAAA;IAAAD,MAAA;EAAA;EAAAE,sBAAA;IAAAF,MAAA;EAAA;EAAAG,OAAA;IAAAnB,OAAA;IAAAC,OAAA;EAAA;EAAAmB,OAAA;IAAApB,OAAA;IAAAC,OAAA;EAAA;EAAAoB,OAAA;IAAArB,OAAA;IAAAC,OAAA;EAAA;EAAAqB,OAAA;IAAAtB,OAAA;IAAAC,OAAA;EAAA;EAAAsB,OAAA;IAAAvB,OAAA;IAAAC,OAAA;EAAA;EAAAuB,OAAA;IAAAxB,OAAA;IAAAC,OAAA;EAAA;EAAAwB,OAAA;IAAAzB,OAAA;IAAAC,OAAA;EAAA;EAAAyB,OAAA;IAAA1B,OAAA;IAAAC,OAAA;EAAA;EAAA0B,QAAA;IAAA3B,OAAA;IAAAC,OAAA;EAAA;EAAA2B,SAAA;IAAA7B,OAAA;EAAA;EAAA8B,OAAA;IAAA9B,OAAA;EAAA;EAAA+B,YAAA;IAAA5B,OAAA;EAAA;EAAA6B,cAAA;IAAA7B,OAAA;EAAA;EAAA8B,UAAA;IAAA9B,OAAA;EAAA;EAAA+B,WAAA;IAAA9B,MAAA;EAAA;EAAA+B,QAAA;IAAA/B,MAAA;EAAA;EAAAgC,YAAA;IAAAhC,MAAA;EAAA;AAAA;EAAAiC,CAAA;IAAAC,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,CA8FrB,CAAC;AACF;AACA;AACA;AAAI,OAAO,MAAMC,sBAAsB,GAAIC,KAAK,IAAG;EAC/C,MAAMC,MAAM,GAAG1C,SAAS,CAAC,CAAC;EAC1B;EACAyC,KAAK,CAAC1C,IAAI,CAAC4C,SAAS,GAAG/C,YAAY,CAACE,cAAc,CAACC,IAAI,EAAE2C,MAAM,CAAC3C,IAAI,EAAE0C,KAAK,CAACG,IAAI,KAAK,KAAK,IAAIF,MAAM,CAAC9B,MAAM,EAAE6B,KAAK,CAAC5B,QAAQ,IAAI6B,MAAM,CAAC7B,QAAQ,EAAE4B,KAAK,CAAC3B,KAAK,IAAI4B,MAAM,CAAC5B,KAAK,EAAE2B,KAAK,CAAC1B,MAAM,IAAI2B,MAAM,CAAC3B,MAAM,EAAE0B,KAAK,CAACxB,SAAS,IAAIyB,MAAM,CAACzB,SAAS,EAAEwB,KAAK,CAACtB,aAAa,IAAIuB,MAAM,CAACvB,aAAa,EAAEsB,KAAK,CAACxB,SAAS,IAAIwB,KAAK,CAACtB,aAAa,IAAIuB,MAAM,CAACtB,sBAAsB,EAAEqB,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACrB,OAAO,EAAEoB,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACpB,OAAO,EAAEmB,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACnB,OAAO,EAAEkB,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAAClB,OAAO,EAAEiB,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACjB,OAAO,EAAEgB,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAAChB,OAAO,EAAEe,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACf,OAAO,EAAEc,KAAK,CAACI,IAAI,KAAK,GAAG,IAAIH,MAAM,CAACd,OAAO,EAAEa,KAAK,CAACI,IAAI,KAAK,IAAI,IAAIH,MAAM,CAACb,QAAQ,EAAEY,KAAK,CAACK,IAAI,KAAK,WAAW,IAAIJ,MAAM,CAACZ,SAAS,EAAEW,KAAK,CAACK,IAAI,KAAK,SAAS,IAAIJ,MAAM,CAACX,OAAO,EAAEU,KAAK,CAACM,MAAM,KAAK,QAAQ,IAAIL,MAAM,CAACV,YAAY,EAAES,KAAK,CAACM,MAAM,KAAK,UAAU,IAAIL,MAAM,CAACT,cAAc,EAAEQ,KAAK,CAACM,MAAM,KAAK,MAAM,IAAIL,MAAM,CAACR,UAAU,EAAEO,KAAK,CAACO,KAAK,KAAK,QAAQ,IAAIN,MAAM,CAACP,WAAW,EAAEM,KAAK,CAACO,KAAK,KAAK,KAAK,IAAIN,MAAM,CAACN,QAAQ,EAAEK,KAAK,CAACO,KAAK,KAAK,SAAS,IAAIN,MAAM,CAACL,YAAY,EAAEI,KAAK,CAAC1C,IAAI,CAAC4C,SAAS,CAAC;EACllC,OAAOF,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { makeStyles, mergeClasses } from
|
|
3
|
-
import { tokens } from
|
|
2
|
+
import { makeStyles, mergeClasses } from "@griffel/react";
|
|
3
|
+
import { tokens } from "@fluentui/react-theme";
|
|
4
4
|
export const textClassNames = {
|
|
5
5
|
root: 'fui-Text'
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { createPreset } from
|
|
3
|
-
import { body1ClassNames, useBody1Styles } from
|
|
2
|
+
import { createPreset } from "../createPreset.js";
|
|
3
|
+
import { body1ClassNames, useBody1Styles } from "./useBody1Styles.styles.js";
|
|
4
4
|
/**
|
|
5
5
|
* Text preset component for the Body1 typography variant
|
|
6
6
|
*/ export const Body1 = createPreset({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/presets/Body1/Body1.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1ClassNames, useBody1Styles } from './useBody1Styles.styles';\n\n/**\n * Text preset component for the Body1 typography variant\n */\nexport const Body1: React.FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1Styles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"names":["createPreset","body1ClassNames","useBody1Styles","Body1","useStyles","className","root","displayName"],"mappings":"AAAA;AAGA,SAASA,YAAY,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/presets/Body1/Body1.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1ClassNames, useBody1Styles } from './useBody1Styles.styles';\n\n/**\n * Text preset component for the Body1 typography variant\n */\nexport const Body1: React.FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1Styles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"names":["createPreset","body1ClassNames","useBody1Styles","Body1","useStyles","className","root","displayName"],"mappings":"AAAA;AAGA,SAASA,YAAY,QAAQ,qBAAkB;AAE/C,SAASC,eAAe,EAAEC,cAAc,QAAQ,6BAA0B;AAE1E;;CAEC,GACD,OAAO,MAAMC,QAAkDH,aAAa;IAC1EI,WAAWF;IACXG,WAAWJ,gBAAgBK,IAAI;IAC/BC,aAAa;AACf,GAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Body1 } from
|
|
2
|
-
export { body1ClassNames } from
|
|
1
|
+
export { Body1 } from "./Body1.js";
|
|
2
|
+
export { body1ClassNames } from "./useBody1Styles.styles.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/presets/Body1/index.ts"],"sourcesContent":["export { Body1 } from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"names":["Body1","body1ClassNames"],"mappings":"AAAA,SAASA,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/components/presets/Body1/index.ts"],"sourcesContent":["export { Body1 } from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"names":["Body1","body1ClassNames"],"mappings":"AAAA,SAASA,KAAK,QAAQ,aAAU;AAChC,SAASC,eAAe,QAAQ,6BAA0B"}
|