@fluentui/react-text 9.3.11 → 9.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +34 -1
- package/CHANGELOG.md +14 -2
- package/lib/Body1.js +0 -1
- package/lib/Body1.js.map +1 -1
- package/lib/Body1Strong.js +0 -1
- package/lib/Body1Strong.js.map +1 -1
- package/lib/Body1Stronger.js +0 -1
- package/lib/Body1Stronger.js.map +1 -1
- package/lib/Body2.js +0 -1
- package/lib/Body2.js.map +1 -1
- package/lib/Caption1.js +0 -1
- package/lib/Caption1.js.map +1 -1
- package/lib/Caption1Strong.js +0 -1
- package/lib/Caption1Strong.js.map +1 -1
- package/lib/Caption1Stronger.js +0 -1
- package/lib/Caption1Stronger.js.map +1 -1
- package/lib/Caption2.js +0 -1
- package/lib/Caption2.js.map +1 -1
- package/lib/Caption2Strong.js +0 -1
- package/lib/Caption2Strong.js.map +1 -1
- package/lib/Display.js +0 -1
- package/lib/Display.js.map +1 -1
- package/lib/LargeTitle.js +0 -1
- package/lib/LargeTitle.js.map +1 -1
- package/lib/Subtitle1.js +0 -1
- package/lib/Subtitle1.js.map +1 -1
- package/lib/Subtitle2.js +0 -1
- package/lib/Subtitle2.js.map +1 -1
- package/lib/Subtitle2Stronger.js +0 -1
- package/lib/Subtitle2Stronger.js.map +1 -1
- package/lib/Text.js +0 -1
- package/lib/Text.js.map +1 -1
- package/lib/Title1.js +0 -1
- package/lib/Title1.js.map +1 -1
- package/lib/Title2.js +0 -1
- package/lib/Title2.js.map +1 -1
- package/lib/Title3.js +0 -1
- package/lib/Title3.js.map +1 -1
- package/lib/components/Text/Text.js +6 -9
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.js +1 -2
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/index.js +0 -1
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.js +4 -9
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +25 -38
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.styles.js.map +1 -1
- package/lib/components/presets/Body1/Body1.js +4 -6
- package/lib/components/presets/Body1/Body1.js.map +1 -1
- package/lib/components/presets/Body1/index.js +0 -1
- package/lib/components/presets/Body1/index.js.map +1 -1
- package/lib/components/presets/Body1/useBody1Styles.styles.js.map +1 -1
- package/lib/components/presets/Body1Strong/Body1Strong.js +4 -6
- package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib/components/presets/Body1Strong/index.js +0 -1
- package/lib/components/presets/Body1Strong/index.js.map +1 -1
- package/lib/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +1 -1
- package/lib/components/presets/Body1Stronger/Body1Stronger.js +4 -6
- package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib/components/presets/Body1Stronger/index.js +0 -1
- package/lib/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +1 -1
- package/lib/components/presets/Body2/Body2.js +4 -6
- package/lib/components/presets/Body2/Body2.js.map +1 -1
- package/lib/components/presets/Body2/index.js +0 -1
- package/lib/components/presets/Body2/index.js.map +1 -1
- package/lib/components/presets/Body2/useBody2Styles.styles.js.map +1 -1
- package/lib/components/presets/Caption1/Caption1.js +4 -6
- package/lib/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib/components/presets/Caption1/index.js +0 -1
- package/lib/components/presets/Caption1/index.js.map +1 -1
- package/lib/components/presets/Caption1/useCaption1Styles.styles.js.map +1 -1
- package/lib/components/presets/Caption1Strong/Caption1Strong.js +4 -6
- package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib/components/presets/Caption1Strong/index.js +0 -1
- package/lib/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js +4 -6
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/index.js +0 -1
- package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +1 -1
- package/lib/components/presets/Caption2/Caption2.js +4 -6
- package/lib/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib/components/presets/Caption2/index.js +0 -1
- package/lib/components/presets/Caption2/index.js.map +1 -1
- package/lib/components/presets/Caption2/useCaption2Styles.styles.js.map +1 -1
- package/lib/components/presets/Caption2Strong/Caption2Strong.js +4 -6
- package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib/components/presets/Caption2Strong/index.js +0 -1
- package/lib/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +1 -1
- package/lib/components/presets/Display/Display.js +4 -6
- package/lib/components/presets/Display/Display.js.map +1 -1
- package/lib/components/presets/Display/index.js +0 -1
- package/lib/components/presets/Display/index.js.map +1 -1
- package/lib/components/presets/Display/useDisplayStyles.styles.js.map +1 -1
- package/lib/components/presets/LargeTitle/LargeTitle.js +4 -6
- package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/presets/LargeTitle/index.js +0 -1
- package/lib/components/presets/LargeTitle/index.js.map +1 -1
- package/lib/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +1 -1
- package/lib/components/presets/Subtitle1/Subtitle1.js +4 -6
- package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/presets/Subtitle1/index.js +0 -1
- package/lib/components/presets/Subtitle1/index.js.map +1 -1
- package/lib/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +1 -1
- package/lib/components/presets/Subtitle2/Subtitle2.js +4 -6
- package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/presets/Subtitle2/index.js +0 -1
- package/lib/components/presets/Subtitle2/index.js.map +1 -1
- package/lib/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +4 -6
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js +0 -1
- package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +1 -1
- package/lib/components/presets/Title1/Title1.js +4 -6
- package/lib/components/presets/Title1/Title1.js.map +1 -1
- package/lib/components/presets/Title1/index.js +0 -1
- package/lib/components/presets/Title1/index.js.map +1 -1
- package/lib/components/presets/Title1/useTitle1Styles.styles.js.map +1 -1
- package/lib/components/presets/Title2/Title2.js +4 -6
- package/lib/components/presets/Title2/Title2.js.map +1 -1
- package/lib/components/presets/Title2/index.js +0 -1
- package/lib/components/presets/Title2/index.js.map +1 -1
- package/lib/components/presets/Title2/useTitle2Styles.styles.js.map +1 -1
- package/lib/components/presets/Title3/Title3.js +4 -6
- package/lib/components/presets/Title3/Title3.js.map +1 -1
- package/lib/components/presets/Title3/index.js +0 -1
- package/lib/components/presets/Title3/index.js.map +1 -1
- package/lib/components/presets/Title3/useTitle3Styles.styles.js.map +1 -1
- package/lib/components/presets/createPreset.js +10 -15
- package/lib/components/presets/createPreset.js.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Body1.js +0 -3
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Body1Strong.js +0 -3
- package/lib-commonjs/Body1Strong.js.map +1 -1
- package/lib-commonjs/Body1Stronger.js +0 -3
- package/lib-commonjs/Body1Stronger.js.map +1 -1
- package/lib-commonjs/Body2.js +0 -3
- package/lib-commonjs/Body2.js.map +1 -1
- package/lib-commonjs/Caption1.js +0 -3
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption1Strong.js +0 -3
- package/lib-commonjs/Caption1Strong.js.map +1 -1
- package/lib-commonjs/Caption1Stronger.js +0 -3
- package/lib-commonjs/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/Caption2.js +0 -3
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Caption2Strong.js +0 -3
- package/lib-commonjs/Caption2Strong.js.map +1 -1
- package/lib-commonjs/Display.js +0 -3
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +0 -3
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js +0 -3
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js +0 -3
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Subtitle2Stronger.js +0 -3
- package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/Text.js +0 -3
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +0 -3
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +0 -3
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +0 -3
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +1 -3
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js +0 -3
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +0 -3
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +1 -3
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +1 -3
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.styles.js +0 -2
- package/lib-commonjs/components/Text/useTextStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/Body1.js +2 -4
- package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/index.js +0 -3
- package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Body1/useBody1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +2 -4
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/index.js +0 -3
- package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.js +0 -2
- package/lib-commonjs/components/presets/Body1Strong/useBody1StrongStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +2 -4
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/index.js +0 -3
- package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js +0 -2
- package/lib-commonjs/components/presets/Body1Stronger/useBody1StrongerStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/Body2.js +2 -4
- package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/index.js +0 -3
- package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Body2/useBody2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/Caption1.js +2 -4
- package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/index.js +0 -3
- package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Caption1/useCaption1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +2 -4
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/index.js +0 -3
- package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js +0 -2
- package/lib-commonjs/components/presets/Caption1Strong/useCaption1StrongStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +2 -4
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/index.js +0 -3
- package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.js +0 -2
- package/lib-commonjs/components/presets/Caption1Stronger/useCaption1Stronger.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/Caption2.js +2 -4
- package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/index.js +0 -3
- package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Caption2/useCaption2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +2 -4
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/index.js +0 -3
- package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js +0 -2
- package/lib-commonjs/components/presets/Caption2Strong/useCaption2StrongStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Display/Display.js +2 -4
- package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
- package/lib-commonjs/components/presets/Display/index.js +0 -3
- package/lib-commonjs/components/presets/Display/index.js.map +1 -1
- package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.js +0 -2
- package/lib-commonjs/components/presets/Display/useDisplayStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +2 -4
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/index.js +0 -3
- package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.js +0 -2
- package/lib-commonjs/components/presets/LargeTitle/useLargeTitleStyles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +2 -4
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/index.js +0 -3
- package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Subtitle1/useSubtitle1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +2 -4
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/index.js +0 -3
- package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Subtitle2/useSubtitle2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +2 -4
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +0 -3
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js +0 -2
- package/lib-commonjs/components/presets/Subtitle2Stronger/useSubtitle2Stronger.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/Title1.js +2 -4
- package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/index.js +0 -3
- package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Title1/useTitle1Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/Title2.js +2 -4
- package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/index.js +0 -3
- package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Title2/useTitle2Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/Title3.js +2 -4
- package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/index.js +0 -3
- package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.js +0 -2
- package/lib-commonjs/components/presets/Title3/useTitle3Styles.styles.js.map +1 -1
- package/lib-commonjs/components/presets/createPreset.js +1 -3
- package/lib-commonjs/components/presets/createPreset.js.map +1 -1
- package/lib-commonjs/index.js +0 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,40 @@
|
|
2
2
|
"name": "@fluentui/react-text",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Wed, 31 May 2023 06:43:04 GMT",
|
6
|
+
"tag": "@fluentui/react-text_v9.3.12",
|
7
|
+
"version": "9.3.12",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "seanmonahan@microsoft.com",
|
12
|
+
"package": "@fluentui/react-text",
|
13
|
+
"commit": "d640b972d7ac86bfb76ae6c6329f12cdd33b3b7c",
|
14
|
+
"comment": "chore: Update Griffel to v1.5.7."
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-text",
|
19
|
+
"comment": "Bump @fluentui/react-utilities to v9.9.2",
|
20
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-text",
|
25
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6",
|
26
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-text",
|
31
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
|
32
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
33
|
+
}
|
34
|
+
]
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"date": "Thu, 25 May 2023 10:00:48 GMT",
|
6
39
|
"tag": "@fluentui/react-text_v9.3.11",
|
7
40
|
"version": "9.3.11",
|
8
41
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
# Change Log - @fluentui/react-text
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 31 May 2023 06:43:04 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.3.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.12)
|
8
|
+
|
9
|
+
Wed, 31 May 2023 06:43:04 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.11..@fluentui/react-text_v9.3.12)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- chore: Update Griffel to v1.5.7. ([PR #27925](https://github.com/microsoft/fluentui/pull/27925) by seanmonahan@microsoft.com)
|
15
|
+
- Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
16
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
17
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
18
|
+
|
7
19
|
## [9.3.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.11)
|
8
20
|
|
9
|
-
Thu, 25 May 2023
|
21
|
+
Thu, 25 May 2023 10:00:48 GMT
|
10
22
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.10..@fluentui/react-text_v9.3.11)
|
11
23
|
|
12
24
|
### Patches
|
package/lib/Body1.js
CHANGED
package/lib/Body1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Body1.ts"],"sourcesContent":["export * from './components/presets/Body1/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
|
package/lib/Body1Strong.js
CHANGED
package/lib/Body1Strong.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Body1Strong.ts"],"sourcesContent":["export * from './components/presets/Body1Strong/index';\n"],"names":[],"mappings":"AAAA,cAAc,yCAAyC"}
|
package/lib/Body1Stronger.js
CHANGED
package/lib/Body1Stronger.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Body1Stronger.ts"],"sourcesContent":["export * from './components/presets/Body1Stronger/index';\n"],"names":[],"mappings":"AAAA,cAAc,2CAA2C"}
|
package/lib/Body2.js
CHANGED
package/lib/Body2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Body2.ts"],"sourcesContent":["export * from './components/presets/Body2/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
|
package/lib/Caption1.js
CHANGED
package/lib/Caption1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Caption1.ts"],"sourcesContent":["export * from './components/presets/Caption1/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
|
package/lib/Caption1Strong.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Caption1Strong.ts"],"sourcesContent":["export * from './components/presets/Caption1Strong/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
|
package/lib/Caption1Stronger.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Caption1Stronger.ts"],"sourcesContent":["export * from './components/presets/Caption1Stronger/index';\n"],"names":[],"mappings":"AAAA,cAAc,8CAA8C"}
|
package/lib/Caption2.js
CHANGED
package/lib/Caption2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Caption2.ts"],"sourcesContent":["export * from './components/presets/Caption2/index';\n"],"names":[],"mappings":"AAAA,cAAc,sCAAsC"}
|
package/lib/Caption2Strong.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Caption2Strong.ts"],"sourcesContent":["export * from './components/presets/Caption2Strong/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
|
package/lib/Display.js
CHANGED
package/lib/Display.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Display.ts"],"sourcesContent":["export * from './components/presets/Display/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
|
package/lib/LargeTitle.js
CHANGED
package/lib/LargeTitle.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["LargeTitle.ts"],"sourcesContent":["export * from './components/presets/LargeTitle/index';\n"],"names":[],"mappings":"AAAA,cAAc,wCAAwC"}
|
package/lib/Subtitle1.js
CHANGED
package/lib/Subtitle1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Subtitle1.ts"],"sourcesContent":["export * from './components/presets/Subtitle1/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
|
package/lib/Subtitle2.js
CHANGED
package/lib/Subtitle2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Subtitle2.ts"],"sourcesContent":["export * from './components/presets/Subtitle2/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
|
package/lib/Subtitle2Stronger.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Subtitle2Stronger.ts"],"sourcesContent":["export * from './components/presets/Subtitle2Stronger/index';\n"],"names":[],"mappings":"AAAA,cAAc,+CAA+C"}
|
package/lib/Text.js
CHANGED
package/lib/Text.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Text.ts"],"sourcesContent":["export * from './components/Text/index';\n"],"names":[],"mappings":"AAAA,cAAc,0BAA0B"}
|
package/lib/Title1.js
CHANGED
package/lib/Title1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Title1.ts"],"sourcesContent":["export * from './components/presets/Title1/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
|
package/lib/Title2.js
CHANGED
package/lib/Title2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Title2.ts"],"sourcesContent":["export * from './components/presets/Title2/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
|
package/lib/Title3.js
CHANGED
package/lib/Title3.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Title3.ts"],"sourcesContent":["export * from './components/presets/Title3/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
|
@@ -5,14 +5,11 @@ import { useTextStyles_unstable } from './useTextStyles.styles';
|
|
5
5
|
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
6
6
|
/**
|
7
7
|
* Typography and styling abstraction component used to ensure consistency of text.
|
8
|
-
*/
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
// Work around some small mismatches in inferred types which don't matter in practice
|
8
|
+
*/ export const Text = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
9
|
+
const state = useText_unstable(props, ref);
|
10
|
+
useTextStyles_unstable(state);
|
11
|
+
useCustomStyleHook_unstable('useTextStyles_unstable')(state);
|
12
|
+
return renderText_unstable(state);
|
13
|
+
// Work around some small mismatches in inferred types which don't matter in practice
|
15
14
|
});
|
16
|
-
|
17
15
|
Text.displayName = 'Text';
|
18
|
-
//# sourceMappingURL=Text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Text.tsx"],"sourcesContent":["import * 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,YAAYA,WAAW,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,sBAAsB,QAAQ,yBAAyB;AAGhE,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,qBAAuCL,MAAMM,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACnF,MAAMC,QAAQR,iBAAiBM,OAAOC;IAEtCL,uBAAuBM;IAEvBL,4BAA4B,0BAA0BK;IAEtD,OAAOP,oBAAoBO;AAC3B,qFAAqF;AACvF,GAAqC;AAErCJ,KAAKK,WAAW,GAAG"}
|
@@ -1,2 +1 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=Text.types.js.map
|
1
|
+
export { };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Text.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\n/**\n * Text slots\n */\nexport type TextSlots = {\n root: Slot<'span', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'pre'>;\n};\n\n/**\n * Text Props\n */\nexport type TextProps = ComponentProps<TextSlots> & {\n /**\n * Aligns text based on the parent container.\n *\n * @default start\n */\n align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Applies a block display for the content.\n *\n * @default false\n */\n block?: boolean;\n\n /**\n * Applies the font family to the content.\n *\n * @default base\n */\n font?: 'base' | 'monospace' | 'numeric';\n\n /**\n * Applies the italic font style to the content.\n *\n * @default false\n */\n italic?: boolean;\n\n /**\n * Applies font size and line height based on the theme typography tokens.\n *\n * @default 300\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;\n\n /**\n * Applies the strikethrough text decoration to the content.\n *\n * @default false\n */\n strikethrough?: boolean;\n\n /**\n * Truncate overflowing text for block displays.\n *\n * @default false\n */\n\n truncate?: boolean;\n\n /**\n * Applies the underline text decoration to the content.\n *\n * @default false\n */\n underline?: boolean;\n\n /**\n * Applies font weight to the content.\n *\n * @default regular\n */\n weight?: 'regular' | 'medium' | 'semibold' | 'bold';\n\n /**\n * Wraps the text content on white spaces.\n *\n * @default true\n */\n wrap?: boolean;\n};\n\n/**\n * TextPreset Props\n */\nexport type TextPresetProps = Omit<TextProps, 'font' | 'size' | 'weight'>;\n\n/**\n * State used in rendering Text\n */\nexport type TextState = ComponentState<TextSlots> &\n Required<\n Pick<\n TextProps,\n 'align' | 'block' | 'font' | 'italic' | 'size' | 'strikethrough' | 'truncate' | 'underline' | 'weight' | 'wrap'\n >\n >;\n"],"names":[],"mappings":"AAAA,WAmGI"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles.styles';\n"],"names":[],"mappings":"AAAA,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,yBAAyB"}
|
@@ -1,13 +1,8 @@
|
|
1
|
-
/** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
|
1
|
+
/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
|
2
2
|
import { getSlotsNext } from '@fluentui/react-utilities';
|
3
3
|
/**
|
4
4
|
* Render the final JSX of Text
|
5
|
-
*/
|
6
|
-
|
7
|
-
|
8
|
-
slots,
|
9
|
-
slotProps
|
10
|
-
} = getSlotsNext(state);
|
11
|
-
return /*#__PURE__*/createElement(slots.root, slotProps.root);
|
5
|
+
*/ export const renderText_unstable = (state)=>{
|
6
|
+
const { slots , slotProps } = getSlotsNext(state);
|
7
|
+
return /*#__PURE__*/ createElement(slots.root, slotProps.root);
|
12
8
|
};
|
13
|
-
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["renderText.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { TextSlots, TextState } from './Text.types';\n\n/**\n * Render the final JSX of Text\n */\nexport const renderText_unstable = (state: TextState) => {\n const { slots, slotProps } = getSlotsNext<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"names":["createElement","getSlotsNext","renderText_unstable","state","slots","slotProps","root"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,YAAY,QAAQ,4BAA4B;AAGzD;;CAEC,GACD,OAAO,MAAMC,sBAAsB,CAACC,QAAqB;IACvD,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGJ,aAAwBE;IAErD,qBAAO,AAbT,cAaUC,MAAME,IAAI,EAAKD,UAAUC,IAAI;AACvC,EAAE"}
|
@@ -8,42 +8,29 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
|
|
8
8
|
*
|
9
9
|
* @param props - props from this instance of Text
|
10
10
|
* @param ref - reference to root HTMLElement of Text
|
11
|
-
*/
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
37
|
-
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
38
|
-
components: {
|
39
|
-
root: 'span'
|
40
|
-
},
|
41
|
-
root: getNativeElementProps(as, {
|
42
|
-
ref,
|
43
|
-
...props,
|
44
|
-
as
|
45
|
-
})
|
46
|
-
};
|
47
|
-
return state;
|
11
|
+
*/ export const useText_unstable = (props, ref)=>{
|
12
|
+
const { wrap , truncate , block , italic , underline , strikethrough , size , font , weight , align } = props;
|
13
|
+
var _props_as;
|
14
|
+
const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';
|
15
|
+
const state = {
|
16
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
17
|
+
block: block !== null && block !== void 0 ? block : false,
|
18
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
19
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
20
|
+
size: size !== null && size !== void 0 ? size : 300,
|
21
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
22
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
23
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
24
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
25
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
26
|
+
components: {
|
27
|
+
root: 'span'
|
28
|
+
},
|
29
|
+
root: getNativeElementProps(as, {
|
30
|
+
ref,
|
31
|
+
...props,
|
32
|
+
as
|
33
|
+
})
|
34
|
+
};
|
35
|
+
return state;
|
48
36
|
};
|
49
|
-
//# sourceMappingURL=useText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["useText.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { TextProps, TextState } from './Text.types';\n\n/**\n * Create the state required to render Text.\n *\n * The returned state can be modified with hooks such as useTextStyles_unstable,\n * before being passed to renderText_unstable.\n *\n * @param props - props from this instance of Text\n * @param ref - reference to root HTMLElement of Text\n */\nexport const useText_unstable = (props: TextProps, ref: React.Ref<HTMLElement>): TextState => {\n const { wrap, truncate, block, italic, underline, strikethrough, size, font, weight, align } = props;\n const as = props.as ?? 'span';\n\n const state: TextState = {\n align: align ?? 'start',\n block: block ?? false,\n font: font ?? 'base',\n italic: italic ?? false,\n size: size ?? 300,\n strikethrough: strikethrough ?? false,\n truncate: truncate ?? false,\n underline: underline ?? false,\n weight: weight ?? 'regular',\n wrap: wrap ?? true,\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"names":["React","getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,qBAAqB,QAAQ,4BAA4B;AAGlE;;;;;;;;CAQC,GACD,OAAO,MAAMC,mBAAmB,CAACC,OAAkBC,MAA2C;IAC5F,MAAM,EAAEC,KAAI,EAAEC,SAAQ,EAAEC,MAAK,EAAEC,OAAM,EAAEC,UAAS,EAAEC,cAAa,EAAEC,KAAI,EAAEC,KAAI,EAAEC,OAAM,EAAEC,MAAK,EAAE,GAAGX;QACpFA;IAAX,MAAMY,KAAKZ,CAAAA,YAAAA,MAAMY,EAAE,cAARZ,uBAAAA,YAAY,MAAM;IAE7B,MAAMa,QAAmB;QACvBF,OAAOA,kBAAAA,mBAAAA,QAAS,OAAO;QACvBP,OAAOA,kBAAAA,mBAAAA,QAAS,KAAK;QACrBK,MAAMA,iBAAAA,kBAAAA,OAAQ,MAAM;QACpBJ,QAAQA,mBAAAA,oBAAAA,SAAU,KAAK;QACvBG,MAAMA,iBAAAA,kBAAAA,OAAQ,GAAG;QACjBD,eAAeA,0BAAAA,2BAAAA,gBAAiB,KAAK;QACrCJ,UAAUA,qBAAAA,sBAAAA,WAAY,KAAK;QAC3BG,WAAWA,sBAAAA,uBAAAA,YAAa,KAAK;QAC7BI,QAAQA,mBAAAA,oBAAAA,SAAU,SAAS;QAC3BR,MAAMA,iBAAAA,kBAAAA,OAAQ,IAAI;QAElBY,YAAY;YAAEC,MAAM;QAAO;QAE3BA,MAAMjB,sBAAsBc,IAAI;YAC9BX;YACA,GAAGD,KAAK;YACRY;QACF;IACF;IAEA,OAAOC;AACT,EAAE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["__styles","mergeClasses","shorthands","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","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","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"sources":["
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","shorthands","tokens","textClassNames","root","useStyles","Bahqtrf","Be2twd7","Bg96gwp","Bhrd7zp","fsow6f","mc9l5x","Huce71","B68tc82","Bmxbyg5","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","useTextStyles_unstable","state","styles","className","wrap","size","font","weight","align"],"sources":["useTextStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } 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 ...shorthands.overflow('visible'),\n textOverflow: 'clip'\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.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 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":"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"}
|
@@ -2,10 +2,8 @@ import { createPreset } from '../createPreset';
|
|
2
2
|
import { body1ClassNames, useBody1Styles } from './useBody1Styles.styles';
|
3
3
|
/**
|
4
4
|
* Text preset component for the Body1 typography variant
|
5
|
-
*/
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
displayName: 'Body1'
|
5
|
+
*/ export const Body1 = createPreset({
|
6
|
+
useStyles: useBody1Styles,
|
7
|
+
className: body1ClassNames.root,
|
8
|
+
displayName: 'Body1'
|
10
9
|
});
|
11
|
-
//# sourceMappingURL=Body1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Body1.tsx"],"sourcesContent":["import type { FunctionComponent } 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: 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":"AACA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,SAASC,eAAe,EAAEC,cAAc,QAAQ,0BAA0B;AAE1E;;CAEC,GACD,OAAO,MAAMC,QAA4CH,aAAa;IACpEI,WAAWF;IACXG,WAAWJ,gBAAgBK,IAAI;IAC/BC,aAAa;AACf,GAAG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Body1';\nexport { body1ClassNames } from './useBody1Styles.styles';\n"],"names":["body1ClassNames"],"mappings":"AAAA,cAAc,UAAU;AACxB,SAASA,eAAe,QAAQ,0BAA0B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["__styles","typographyStyles","body1ClassNames","root","useBody1Styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"sources":["
|
1
|
+
{"version":3,"names":["__styles","typographyStyles","body1ClassNames","root","useBody1Styles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"sources":["useBody1Styles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const body1ClassNames = {\n root: 'fui-Body1'\n};\n/**\n * Styles for the root slot\n */ export const useBody1Styles = makeStyles({\n root: typographyStyles.body1\n});\n"],"mappings":"AAAA,SAAAA,QAAA,QAA2B,gBAAgB;AAC3C,SAASC,gBAAgB,QAAQ,uBAAuB;AACxD,OAAO,MAAMC,eAAe,GAAG;EAC3BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,cAAc,gBAAGJ,QAAA;EAAAG,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,CAEjC,CAAC"}
|
@@ -2,10 +2,8 @@ import { createPreset } from '../createPreset';
|
|
2
2
|
import { body1StrongClassNames, useBody1StrongStyles } from './useBody1StrongStyles.styles';
|
3
3
|
/**
|
4
4
|
* Text preset component for the Body1Strong typography variant
|
5
|
-
*/
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
displayName: 'Body1Strong'
|
5
|
+
*/ export const Body1Strong = createPreset({
|
6
|
+
useStyles: useBody1StrongStyles,
|
7
|
+
className: body1StrongClassNames.root,
|
8
|
+
displayName: 'Body1Strong'
|
10
9
|
});
|
11
|
-
//# sourceMappingURL=Body1Strong.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["Body1Strong.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { createPreset } from '../createPreset';\nimport type { TextPresetProps } from '../../Text/Text.types';\nimport { body1StrongClassNames, useBody1StrongStyles } from './useBody1StrongStyles.styles';\n\n/**\n * Text preset component for the Body1Strong typography variant\n */\nexport const Body1Strong: FunctionComponent<TextPresetProps> = createPreset({\n useStyles: useBody1StrongStyles,\n className: body1StrongClassNames.root,\n displayName: 'Body1Strong',\n});\n"],"names":["createPreset","body1StrongClassNames","useBody1StrongStyles","Body1Strong","useStyles","className","root","displayName"],"mappings":"AACA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,SAASC,qBAAqB,EAAEC,oBAAoB,QAAQ,gCAAgC;AAE5F;;CAEC,GACD,OAAO,MAAMC,cAAkDH,aAAa;IAC1EI,WAAWF;IACXG,WAAWJ,sBAAsBK,IAAI;IACrCC,aAAa;AACf,GAAG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Body1Strong';\nexport { body1StrongClassNames } from './useBody1StrongStyles.styles';\n"],"names":["body1StrongClassNames"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,SAASA,qBAAqB,QAAQ,gCAAgC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["__styles","typographyStyles","body1StrongClassNames","root","useBody1StrongStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"sources":["
|
1
|
+
{"version":3,"names":["__styles","typographyStyles","body1StrongClassNames","root","useBody1StrongStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d"],"sources":["useBody1StrongStyles.styles.js"],"sourcesContent":["import { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nexport const body1StrongClassNames = {\n root: 'fui-Body1Strong'\n};\n/**\n * Styles for the root slot\n */ export const useBody1StrongStyles = makeStyles({\n root: typographyStyles.body1Strong\n});\n"],"mappings":"AAAA,SAAAA,QAAA,QAA2B,gBAAgB;AAC3C,SAASC,gBAAgB,QAAQ,uBAAuB;AACxD,OAAO,MAAMC,qBAAqB,GAAG;EACjCC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,oBAAoB,gBAAGJ,QAAA;EAAAG,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,CAEvC,CAAC"}
|