@fluentui/react-text 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230321-0440.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +11 -11
- package/CHANGELOG.md +8 -8
- 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 +6 -6
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/Text/Text.types.js.map +1 -1
- package/lib/components/Text/index.js +5 -5
- package/lib/components/Text/index.js.map +1 -1
- package/lib/components/Text/renderText.js +5 -3
- package/lib/components/Text/renderText.js.map +1 -1
- package/lib/components/Text/useText.js +14 -14
- package/lib/components/Text/useText.js.map +1 -1
- package/lib/components/Text/useTextStyles.js +4 -4
- package/lib/components/Text/useTextStyles.js.map +1 -1
- package/lib/components/presets/Body1/Body1.js +5 -5
- package/lib/components/presets/Body1/Body1.js.map +1 -1
- package/lib/components/presets/Body1/index.js +1 -1
- package/lib/components/presets/Body1/index.js.map +1 -1
- package/lib/components/presets/Body1Strong/Body1Strong.js +5 -5
- package/lib/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib/components/presets/Body1Strong/index.js +1 -1
- package/lib/components/presets/Body1Strong/index.js.map +1 -1
- package/lib/components/presets/Body1Stronger/Body1Stronger.js +5 -5
- package/lib/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib/components/presets/Body1Stronger/index.js +1 -1
- package/lib/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib/components/presets/Body2/Body2.js +5 -5
- package/lib/components/presets/Body2/Body2.js.map +1 -1
- package/lib/components/presets/Body2/index.js +1 -1
- package/lib/components/presets/Body2/index.js.map +1 -1
- package/lib/components/presets/Caption1/Caption1.js +5 -5
- package/lib/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib/components/presets/Caption1/index.js +1 -1
- package/lib/components/presets/Caption1/index.js.map +1 -1
- package/lib/components/presets/Caption1Strong/Caption1Strong.js +5 -5
- package/lib/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib/components/presets/Caption1Strong/index.js +1 -1
- package/lib/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js +5 -5
- package/lib/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib/components/presets/Caption1Stronger/index.js +1 -1
- package/lib/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib/components/presets/Caption2/Caption2.js +5 -5
- package/lib/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib/components/presets/Caption2/index.js +1 -1
- package/lib/components/presets/Caption2/index.js.map +1 -1
- package/lib/components/presets/Caption2Strong/Caption2Strong.js +5 -5
- package/lib/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib/components/presets/Caption2Strong/index.js +1 -1
- package/lib/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib/components/presets/Display/Display.js +5 -5
- package/lib/components/presets/Display/Display.js.map +1 -1
- package/lib/components/presets/Display/index.js +1 -1
- package/lib/components/presets/Display/index.js.map +1 -1
- package/lib/components/presets/LargeTitle/LargeTitle.js +5 -5
- package/lib/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib/components/presets/LargeTitle/index.js +1 -1
- package/lib/components/presets/LargeTitle/index.js.map +1 -1
- package/lib/components/presets/Subtitle1/Subtitle1.js +5 -5
- package/lib/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib/components/presets/Subtitle1/index.js +1 -1
- package/lib/components/presets/Subtitle1/index.js.map +1 -1
- package/lib/components/presets/Subtitle2/Subtitle2.js +5 -5
- package/lib/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib/components/presets/Subtitle2/index.js +1 -1
- package/lib/components/presets/Subtitle2/index.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +5 -5
- package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js +1 -1
- package/lib/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib/components/presets/Title1/Title1.js +5 -5
- package/lib/components/presets/Title1/Title1.js.map +1 -1
- package/lib/components/presets/Title1/index.js +1 -1
- package/lib/components/presets/Title1/index.js.map +1 -1
- package/lib/components/presets/Title2/Title2.js +5 -5
- package/lib/components/presets/Title2/Title2.js.map +1 -1
- package/lib/components/presets/Title2/index.js +1 -1
- package/lib/components/presets/Title2/index.js.map +1 -1
- package/lib/components/presets/Title3/Title3.js +5 -5
- package/lib/components/presets/Title3/Title3.js.map +1 -1
- package/lib/components/presets/Title3/index.js +1 -1
- package/lib/components/presets/Title3/index.js.map +1 -1
- 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 +4 -5
- package/lib-commonjs/Body1.js.map +1 -1
- package/lib-commonjs/Body1Strong.js +4 -5
- package/lib-commonjs/Body1Strong.js.map +1 -1
- package/lib-commonjs/Body1Stronger.js +4 -5
- package/lib-commonjs/Body1Stronger.js.map +1 -1
- package/lib-commonjs/Body2.js +4 -5
- package/lib-commonjs/Body2.js.map +1 -1
- package/lib-commonjs/Caption1.js +4 -5
- package/lib-commonjs/Caption1.js.map +1 -1
- package/lib-commonjs/Caption1Strong.js +4 -5
- package/lib-commonjs/Caption1Strong.js.map +1 -1
- package/lib-commonjs/Caption1Stronger.js +4 -5
- package/lib-commonjs/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/Caption2.js +4 -5
- package/lib-commonjs/Caption2.js.map +1 -1
- package/lib-commonjs/Caption2Strong.js +4 -5
- package/lib-commonjs/Caption2Strong.js.map +1 -1
- package/lib-commonjs/Display.js +4 -5
- package/lib-commonjs/Display.js.map +1 -1
- package/lib-commonjs/LargeTitle.js +4 -5
- package/lib-commonjs/LargeTitle.js.map +1 -1
- package/lib-commonjs/Subtitle1.js +4 -5
- package/lib-commonjs/Subtitle1.js.map +1 -1
- package/lib-commonjs/Subtitle2.js +4 -5
- package/lib-commonjs/Subtitle2.js.map +1 -1
- package/lib-commonjs/Subtitle2Stronger.js +4 -5
- package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/Text.js +4 -5
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Title1.js +4 -5
- package/lib-commonjs/Title1.js.map +1 -1
- package/lib-commonjs/Title2.js +4 -5
- package/lib-commonjs/Title2.js.map +1 -1
- package/lib-commonjs/Title3.js +4 -5
- package/lib-commonjs/Title3.js.map +1 -1
- package/lib-commonjs/components/Text/Text.js +21 -19
- package/lib-commonjs/components/Text/Text.js.map +1 -1
- package/lib-commonjs/components/Text/Text.types.js +2 -3
- package/lib-commonjs/components/Text/Text.types.js.map +1 -1
- package/lib-commonjs/components/Text/index.js +8 -9
- package/lib-commonjs/components/Text/index.js.map +1 -1
- package/lib-commonjs/components/Text/renderText.js +18 -13
- package/lib-commonjs/components/Text/renderText.js.map +1 -1
- package/lib-commonjs/components/Text/useText.js +51 -34
- package/lib-commonjs/components/Text/useText.js.map +1 -1
- package/lib-commonjs/components/Text/useTextStyles.js +114 -163
- package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/Body1.js +25 -34
- package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
- package/lib-commonjs/components/presets/Body1/index.js +4 -5
- package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +25 -34
- package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Strong/index.js +4 -5
- package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +25 -34
- package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Body1Stronger/index.js +4 -5
- package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/Body2.js +25 -34
- package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
- package/lib-commonjs/components/presets/Body2/index.js +4 -5
- package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/Caption1.js +25 -34
- package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1/index.js +4 -5
- package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +25 -34
- package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Strong/index.js +4 -5
- package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +25 -34
- package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Caption1Stronger/index.js +4 -5
- package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/Caption2.js +25 -34
- package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2/index.js +4 -5
- package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +25 -34
- package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
- package/lib-commonjs/components/presets/Caption2Strong/index.js +4 -5
- package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
- package/lib-commonjs/components/presets/Display/Display.js +25 -34
- package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
- package/lib-commonjs/components/presets/Display/index.js +4 -5
- package/lib-commonjs/components/presets/Display/index.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +25 -34
- package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
- package/lib-commonjs/components/presets/LargeTitle/index.js +4 -5
- package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +25 -34
- package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle1/index.js +4 -5
- package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +25 -34
- package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2/index.js +4 -5
- package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +25 -34
- package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js +4 -5
- package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/Title1.js +25 -34
- package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
- package/lib-commonjs/components/presets/Title1/index.js +4 -5
- package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/Title2.js +25 -34
- package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
- package/lib-commonjs/components/presets/Title2/index.js +4 -5
- package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/Title3.js +25 -34
- package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
- package/lib-commonjs/components/presets/Title3/index.js +4 -5
- package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
- package/lib-commonjs/components/presets/createPreset.js +22 -21
- package/lib-commonjs/components/presets/createPreset.js.map +1 -1
- package/lib-commonjs/index.js +256 -69
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +8 -7
- package/.swcrc +0 -39
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
"name": "@fluentui/react-text",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-text_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Tue, 21 Mar 2023 04:49:45 GMT",
|
6
|
+
"tag": "@fluentui/react-text_v0.0.0-nightly-20230321-0440.1",
|
7
|
+
"version": "0.0.0-nightly-20230321-0440.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
@@ -16,26 +16,26 @@
|
|
16
16
|
{
|
17
17
|
"author": "beachball",
|
18
18
|
"package": "@fluentui/react-text",
|
19
|
-
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-
|
20
|
-
"commit": "
|
19
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230321-0440.1",
|
20
|
+
"commit": "e913db5700c77cb74564f4422c775d52ef302e91"
|
21
21
|
},
|
22
22
|
{
|
23
23
|
"author": "beachball",
|
24
24
|
"package": "@fluentui/react-text",
|
25
|
-
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-
|
26
|
-
"commit": "
|
25
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230321-0440.1",
|
26
|
+
"commit": "e913db5700c77cb74564f4422c775d52ef302e91"
|
27
27
|
},
|
28
28
|
{
|
29
29
|
"author": "beachball",
|
30
30
|
"package": "@fluentui/react-text",
|
31
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-
|
32
|
-
"commit": "
|
31
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230321-0440.1",
|
32
|
+
"commit": "e913db5700c77cb74564f4422c775d52ef302e91"
|
33
33
|
},
|
34
34
|
{
|
35
35
|
"author": "beachball",
|
36
36
|
"package": "@fluentui/react-text",
|
37
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
38
|
-
"commit": "
|
37
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230321-0440.1",
|
38
|
+
"commit": "e913db5700c77cb74564f4422c775d52ef302e91"
|
39
39
|
}
|
40
40
|
]
|
41
41
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
# Change Log - @fluentui/react-text
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 21 Mar 2023 04:49:45 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20230321-0440.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v0.0.0-nightly-20230321-0440.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.1..@fluentui/react-text_v0.0.0-nightly-
|
9
|
+
Tue, 21 Mar 2023 04:49:45 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.1..@fluentui/react-text_v0.0.0-nightly-20230321-0440.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
15
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-
|
16
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
17
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-
|
18
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-
|
15
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230321-0440.1 ([commit](https://github.com/microsoft/fluentui/commit/e913db5700c77cb74564f4422c775d52ef302e91) by beachball)
|
16
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20230321-0440.1 ([commit](https://github.com/microsoft/fluentui/commit/e913db5700c77cb74564f4422c775d52ef302e91) by beachball)
|
17
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20230321-0440.1 ([commit](https://github.com/microsoft/fluentui/commit/e913db5700c77cb74564f4422c775d52ef302e91) by beachball)
|
18
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230321-0440.1 ([commit](https://github.com/microsoft/fluentui/commit/e913db5700c77cb74564f4422c775d52ef302e91) by beachball)
|
19
19
|
|
20
20
|
## [9.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.1)
|
21
21
|
|
package/lib/Body1.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Body1/index';
|
2
2
|
//# sourceMappingURL=Body1.js.map
|
package/lib/Body1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Body1.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Body1.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './components/presets/Body1/index';\n"]}
|
package/lib/Body1Strong.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Body1Strong/index';
|
2
2
|
//# sourceMappingURL=Body1Strong.js.map
|
package/lib/Body1Strong.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Body1Strong.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Body1Strong.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC","sourcesContent":["export * from './components/presets/Body1Strong/index';\n"]}
|
package/lib/Body1Stronger.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Body1Stronger/index';
|
2
2
|
//# sourceMappingURL=Body1Stronger.js.map
|
package/lib/Body1Stronger.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Body1Stronger.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Body1Stronger.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC","sourcesContent":["export * from './components/presets/Body1Stronger/index';\n"]}
|
package/lib/Body2.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Body2/index';
|
2
2
|
//# sourceMappingURL=Body2.js.map
|
package/lib/Body2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Body2.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Body2.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './components/presets/Body2/index';\n"]}
|
package/lib/Caption1.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Caption1/index';
|
2
2
|
//# sourceMappingURL=Caption1.js.map
|
package/lib/Caption1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Caption1.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Caption1.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC","sourcesContent":["export * from './components/presets/Caption1/index';\n"]}
|
package/lib/Caption1Strong.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Caption1Strong/index';
|
2
2
|
//# sourceMappingURL=Caption1Strong.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Caption1Strong.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Caption1Strong.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC","sourcesContent":["export * from './components/presets/Caption1Strong/index';\n"]}
|
package/lib/Caption1Stronger.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Caption1Stronger/index';
|
2
2
|
//# sourceMappingURL=Caption1Stronger.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Caption1Stronger.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Caption1Stronger.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC","sourcesContent":["export * from './components/presets/Caption1Stronger/index';\n"]}
|
package/lib/Caption2.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Caption2/index';
|
2
2
|
//# sourceMappingURL=Caption2.js.map
|
package/lib/Caption2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Caption2.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Caption2.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC","sourcesContent":["export * from './components/presets/Caption2/index';\n"]}
|
package/lib/Caption2Strong.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Caption2Strong/index';
|
2
2
|
//# sourceMappingURL=Caption2Strong.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Caption2Strong.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Caption2Strong.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC","sourcesContent":["export * from './components/presets/Caption2Strong/index';\n"]}
|
package/lib/Display.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Display/index';
|
2
2
|
//# sourceMappingURL=Display.js.map
|
package/lib/Display.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Display.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Display.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/presets/Display/index';\n"]}
|
package/lib/LargeTitle.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/LargeTitle/index';
|
2
2
|
//# sourceMappingURL=LargeTitle.js.map
|
package/lib/LargeTitle.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"LargeTitle.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/LargeTitle.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC","sourcesContent":["export * from './components/presets/LargeTitle/index';\n"]}
|
package/lib/Subtitle1.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Subtitle1/index';
|
2
2
|
//# sourceMappingURL=Subtitle1.js.map
|
package/lib/Subtitle1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Subtitle1.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Subtitle1.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC","sourcesContent":["export * from './components/presets/Subtitle1/index';\n"]}
|
package/lib/Subtitle2.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Subtitle2/index';
|
2
2
|
//# sourceMappingURL=Subtitle2.js.map
|
package/lib/Subtitle2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Subtitle2.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Subtitle2.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC","sourcesContent":["export * from './components/presets/Subtitle2/index';\n"]}
|
package/lib/Subtitle2Stronger.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Subtitle2Stronger/index';
|
2
2
|
//# sourceMappingURL=Subtitle2Stronger.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Subtitle2Stronger.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Subtitle2Stronger.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC","sourcesContent":["export * from './components/presets/Subtitle2Stronger/index';\n"]}
|
package/lib/Text.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/Text/index';
|
2
2
|
//# sourceMappingURL=Text.js.map
|
package/lib/Text.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Text.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './components/Text/index';\n"]}
|
package/lib/Title1.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Title1/index';
|
2
2
|
//# sourceMappingURL=Title1.js.map
|
package/lib/Title1.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Title1.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Title1.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/presets/Title1/index';\n"]}
|
package/lib/Title2.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Title2/index';
|
2
2
|
//# sourceMappingURL=Title2.js.map
|
package/lib/Title2.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Title2.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Title2.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/presets/Title2/index';\n"]}
|
package/lib/Title3.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './components/presets/Title3/index';
|
2
2
|
//# sourceMappingURL=Title3.js.map
|
package/lib/Title3.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Title3.js","sourceRoot":"","sources":["../../../../../../../packages/react-components/react-text/src/Title3.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/presets/Title3/index';\n"]}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import * as React from
|
2
|
-
import { useText_unstable } from
|
3
|
-
import { renderText_unstable } from
|
4
|
-
import { useTextStyles_unstable } from
|
5
|
-
import { useCustomStyleHooks_unstable } from
|
1
|
+
import * as React from 'react';
|
2
|
+
import { useText_unstable } from './useText';
|
3
|
+
import { renderText_unstable } from './renderText';
|
4
|
+
import { useTextStyles_unstable } from './useTextStyles';
|
5
|
+
import { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';
|
6
6
|
/**
|
7
7
|
* Typography and styling abstraction component used to ensure consistency of text.
|
8
8
|
*/
|
@@ -17,5 +17,5 @@ export const Text = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
17
17
|
// Work around some small mismatches in inferred types which don't matter in practice
|
18
18
|
});
|
19
19
|
|
20
|
-
Text.displayName =
|
20
|
+
Text.displayName = 'Text';
|
21
21
|
//# sourceMappingURL=Text.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useText_unstable","renderText_unstable","useTextStyles_unstable","useCustomStyleHooks_unstable","Text","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["
|
1
|
+
{"version":3,"names":["React","useText_unstable","renderText_unstable","useTextStyles_unstable","useCustomStyleHooks_unstable","Text","forwardRef","props","ref","state","useCustomStyles","displayName"],"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/Text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useText_unstable } from './useText';\nimport { renderText_unstable } from './renderText';\nimport { useTextStyles_unstable } from './useTextStyles';\nimport type { TextProps } from './Text.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_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 const { useTextStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(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"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAASC,sBAAsB,QAAQ,iBAAiB;AAGxD,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E;;;AAGA,OAAO,MAAMC,IAAI,gBAAmCL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAClF,MAAMC,KAAK,GAAGR,gBAAgB,CAACM,KAAK,EAAEC,GAAG,CAAC;EAE1CL,sBAAsB,CAACM,KAAK,CAAC;EAE7B,MAAM;IAAEN,sBAAsB,EAAEO;EAAe,CAAE,GAAGN,4BAA4B,EAAE;EAClFM,eAAe,CAACD,KAAK,CAAC;EAEtB,OAAOP,mBAAmB,CAACO,KAAK,CAAC;EACjC;AACF,CAAC,CAAmC;;AAEpCJ,IAAI,CAACM,WAAW,GAAG,MAAM"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/Text.types.ts"],"names":[],"mappings":"","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"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from
|
2
|
-
export * from
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
1
|
+
export * from './Text';
|
2
|
+
export * from './Text.types';
|
3
|
+
export * from './renderText';
|
4
|
+
export * from './useText';
|
5
|
+
export * from './useTextStyles';
|
6
6
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as React from
|
2
|
-
import { getSlots } from
|
1
|
+
import * as React from 'react';
|
2
|
+
import { getSlots } from '@fluentui/react-utilities';
|
3
3
|
/**
|
4
4
|
* Render the final JSX of Text
|
5
5
|
*/
|
@@ -8,6 +8,8 @@ export const renderText_unstable = state => {
|
|
8
8
|
slots,
|
9
9
|
slotProps
|
10
10
|
} = getSlots(state);
|
11
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
11
|
+
return /*#__PURE__*/React.createElement(slots.root, {
|
12
|
+
...slotProps.root
|
13
|
+
});
|
12
14
|
};
|
13
15
|
//# sourceMappingURL=renderText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","getSlots","renderText_unstable","state","slots","slotProps","createElement","root"],"sources":["
|
1
|
+
{"version":3,"names":["React","getSlots","renderText_unstable","state","slots","slotProps","createElement","root"],"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/renderText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } 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 } = getSlots<TextSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,mBAAmB,GAAIC,KAAgB,IAAI;EACtD,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAYE,KAAK,CAAC;EAEvD,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,EAAI;AAC3C,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { getNativeElementProps } from "@fluentui/react-utilities";
|
1
|
+
import { getNativeElementProps } from '@fluentui/react-utilities';
|
3
2
|
/**
|
4
3
|
* Create the state required to render Text.
|
5
4
|
*
|
@@ -10,6 +9,7 @@ import { getNativeElementProps } from "@fluentui/react-utilities";
|
|
10
9
|
* @param ref - reference to root HTMLElement of Text
|
11
10
|
*/
|
12
11
|
export const useText_unstable = (props, ref) => {
|
12
|
+
var _a;
|
13
13
|
const {
|
14
14
|
wrap,
|
15
15
|
truncate,
|
@@ -22,20 +22,20 @@ export const useText_unstable = (props, ref) => {
|
|
22
22
|
weight,
|
23
23
|
align
|
24
24
|
} = props;
|
25
|
-
const as = props.as
|
25
|
+
const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
|
26
26
|
const state = {
|
27
|
-
align: align
|
28
|
-
block: block
|
29
|
-
font: font
|
30
|
-
italic: italic
|
31
|
-
size: size
|
32
|
-
strikethrough: strikethrough
|
33
|
-
truncate: truncate
|
34
|
-
underline: underline
|
35
|
-
weight: weight
|
36
|
-
wrap: wrap
|
27
|
+
align: align !== null && align !== void 0 ? align : 'start',
|
28
|
+
block: block !== null && block !== void 0 ? block : false,
|
29
|
+
font: font !== null && font !== void 0 ? font : 'base',
|
30
|
+
italic: italic !== null && italic !== void 0 ? italic : false,
|
31
|
+
size: size !== null && size !== void 0 ? size : 300,
|
32
|
+
strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
|
33
|
+
truncate: truncate !== null && truncate !== void 0 ? truncate : false,
|
34
|
+
underline: underline !== null && underline !== void 0 ? underline : false,
|
35
|
+
weight: weight !== null && weight !== void 0 ? weight : 'regular',
|
36
|
+
wrap: wrap !== null && wrap !== void 0 ? wrap : true,
|
37
37
|
components: {
|
38
|
-
root:
|
38
|
+
root: 'span'
|
39
39
|
},
|
40
40
|
root: getNativeElementProps(as, {
|
41
41
|
ref,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","_a","state","components","root"],"sources":["../../../../../../../../../packages/react-components/react-text/src/components/Text/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"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAGjE;;;;;;;;;AASA,OAAO,MAAMC,gBAAgB,GAAGA,CAACC,KAAgB,EAAEC,GAA2B,KAAe;;EAC3F,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAEC,SAAS;IAAEC,aAAa;IAAEC,IAAI;IAAEC,IAAI;IAAEC,MAAM;IAAEC;EAAK,CAAE,GAAGX,KAAK;EACpG,MAAMY,EAAE,GAAG,CAAAC,EAAA,GAAAb,KAAK,CAACY,EAAE,cAAAC,EAAA,cAAAA,EAAA,GAAI,MAAM;EAE7B,MAAMC,KAAK,GAAc;IACvBH,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,OAAO;IACvBP,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,KAAK;IACrBK,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,MAAM;IACpBJ,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,KAAK;IACvBG,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,GAAG;IACjBD,aAAa,EAAEA,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAI,KAAK;IACrCJ,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI,KAAK;IAC3BG,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,KAAK;IAC7BI,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,SAAS;IAC3BR,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,IAAI;IAElBa,UAAU,EAAE;MAAEC,IAAI,EAAE;IAAM,CAAE;IAE5BA,IAAI,EAAElB,qBAAqB,CAACc,EAAE,EAAE;MAC9BX,GAAG;MACH,GAAGD,KAAK;MACRY;KACD;GACF;EAED,OAAOE,KAAK;AACd,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { __styles, mergeClasses, shorthands } from
|
2
|
-
import { tokens } from
|
1
|
+
import { __styles, mergeClasses, shorthands } from '@griffel/react';
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
3
3
|
export const textClassNames = {
|
4
|
-
root:
|
4
|
+
root: 'fui-Text'
|
5
5
|
};
|
6
6
|
/**
|
7
7
|
* Styles for the root slot
|
@@ -110,7 +110,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
110
110
|
*/
|
111
111
|
export const useTextStyles_unstable = state => {
|
112
112
|
const styles = useStyles();
|
113
|
-
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 ===
|
113
|
+
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);
|
114
114
|
return state;
|
115
115
|
};
|
116
116
|
//# sourceMappingURL=useTextStyles.js.map
|
@@ -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":["../../../../../../../../../packages/react-components/react-text/src/components/Text/useTextStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst 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/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.weight === 'bold' && styles.weightBold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\n};\n"],"mappings":"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"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { __styles } from
|
2
|
-
import { createPreset } from
|
3
|
-
import { typographyStyles } from
|
1
|
+
import { __styles } from '@griffel/react';
|
2
|
+
import { createPreset } from '../createPreset';
|
3
|
+
import { typographyStyles } from '@fluentui/react-theme';
|
4
4
|
export const body1ClassNames = {
|
5
|
-
root:
|
5
|
+
root: 'fui-Body1'
|
6
6
|
};
|
7
7
|
/**
|
8
8
|
* Styles for the root slot
|
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
|
|
23
23
|
export const Body1 = /*#__PURE__*/createPreset({
|
24
24
|
useStyles,
|
25
25
|
className: body1ClassNames.root,
|
26
|
-
displayName:
|
26
|
+
displayName: 'Body1'
|
27
27
|
});
|
28
28
|
//# sourceMappingURL=Body1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["__styles","createPreset","typographyStyles","body1ClassNames","root","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d","Body1","className","displayName"],"sources":["
|
1
|
+
{"version":3,"names":["__styles","createPreset","typographyStyles","body1ClassNames","root","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","d","Body1","className","displayName"],"sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Body1/Body1.tsx"],"sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createPreset } from '../createPreset';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport type { TextSlots, TextPresetProps } from '../../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\nexport const body1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Body1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body1,\n});\n\n/**\n * Text preset component for the Body1 typography variant\n */\nexport const Body1: FunctionComponent<TextPresetProps> = createPreset({\n useStyles,\n className: body1ClassNames.root,\n displayName: 'Body1',\n});\n"],"mappings":"AACA,SAAAA,QAAA,QAA2B,gBAAgB;AAC3C,SAASC,YAAY,QAAQ,iBAAiB;AAG9C,SAASC,gBAAgB,QAAQ,uBAAuB;AAExD,OAAO,MAAMC,eAAe,GAA8B;EACxDC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGL,QAAA;EAAAI,IAAA;IAAAE,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;AAAA,EAEhB;AAEF;;;AAGA,OAAO,MAAMC,KAAK,gBAAuCV,YAAY,CAAC;EACpEI,SAAS;EACTO,SAAS,EAAET,eAAe,CAACC,IAAI;EAC/BS,WAAW,EAAE;CACd,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './Body1';
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../../packages/react-components/react-text/src/components/presets/Body1/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './Body1';\n"]}
|