@fluentui/react-text 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230322-0439.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.
Files changed (143) hide show
  1. package/.swcrc +2 -11
  2. package/CHANGELOG.json +56 -11
  3. package/CHANGELOG.md +22 -8
  4. package/lib/Body1.js +1 -1
  5. package/lib/Body1Strong.js +1 -1
  6. package/lib/Body1Stronger.js +1 -1
  7. package/lib/Body2.js +1 -1
  8. package/lib/Caption1.js +1 -1
  9. package/lib/Caption1Strong.js +1 -1
  10. package/lib/Caption1Stronger.js +1 -1
  11. package/lib/Caption2.js +1 -1
  12. package/lib/Caption2Strong.js +1 -1
  13. package/lib/Display.js +1 -1
  14. package/lib/LargeTitle.js +1 -1
  15. package/lib/Subtitle1.js +1 -1
  16. package/lib/Subtitle2.js +1 -1
  17. package/lib/Subtitle2Stronger.js +1 -1
  18. package/lib/Text.js +1 -1
  19. package/lib/Title1.js +1 -1
  20. package/lib/Title2.js +1 -1
  21. package/lib/Title3.js +1 -1
  22. package/lib/components/Text/Text.js +6 -6
  23. package/lib/components/Text/index.js +5 -5
  24. package/lib/components/Text/renderText.js +2 -2
  25. package/lib/components/Text/useText.js +15 -14
  26. package/lib/components/Text/useText.js.map +1 -1
  27. package/lib/components/Text/useTextStyles.js +4 -4
  28. package/lib/components/presets/Body1/Body1.js +5 -5
  29. package/lib/components/presets/Body1/index.js +1 -1
  30. package/lib/components/presets/Body1Strong/Body1Strong.js +5 -5
  31. package/lib/components/presets/Body1Strong/index.js +1 -1
  32. package/lib/components/presets/Body1Stronger/Body1Stronger.js +5 -5
  33. package/lib/components/presets/Body1Stronger/index.js +1 -1
  34. package/lib/components/presets/Body2/Body2.js +5 -5
  35. package/lib/components/presets/Body2/index.js +1 -1
  36. package/lib/components/presets/Caption1/Caption1.js +5 -5
  37. package/lib/components/presets/Caption1/index.js +1 -1
  38. package/lib/components/presets/Caption1Strong/Caption1Strong.js +5 -5
  39. package/lib/components/presets/Caption1Strong/index.js +1 -1
  40. package/lib/components/presets/Caption1Stronger/Caption1Stronger.js +5 -5
  41. package/lib/components/presets/Caption1Stronger/index.js +1 -1
  42. package/lib/components/presets/Caption2/Caption2.js +5 -5
  43. package/lib/components/presets/Caption2/index.js +1 -1
  44. package/lib/components/presets/Caption2Strong/Caption2Strong.js +5 -5
  45. package/lib/components/presets/Caption2Strong/index.js +1 -1
  46. package/lib/components/presets/Display/Display.js +5 -5
  47. package/lib/components/presets/Display/index.js +1 -1
  48. package/lib/components/presets/LargeTitle/LargeTitle.js +5 -5
  49. package/lib/components/presets/LargeTitle/index.js +1 -1
  50. package/lib/components/presets/Subtitle1/Subtitle1.js +5 -5
  51. package/lib/components/presets/Subtitle1/index.js +1 -1
  52. package/lib/components/presets/Subtitle2/Subtitle2.js +5 -5
  53. package/lib/components/presets/Subtitle2/index.js +1 -1
  54. package/lib/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +5 -5
  55. package/lib/components/presets/Subtitle2Stronger/index.js +1 -1
  56. package/lib/components/presets/Title1/Title1.js +5 -5
  57. package/lib/components/presets/Title1/index.js +1 -1
  58. package/lib/components/presets/Title2/Title2.js +5 -5
  59. package/lib/components/presets/Title2/index.js +1 -1
  60. package/lib/components/presets/Title3/Title3.js +5 -5
  61. package/lib/components/presets/Title3/index.js +1 -1
  62. package/lib/components/presets/createPreset.js +3 -3
  63. package/lib/index.js +18 -18
  64. package/lib-commonjs/Body1.js.map +1 -1
  65. package/lib-commonjs/Body1Strong.js.map +1 -1
  66. package/lib-commonjs/Body1Stronger.js.map +1 -1
  67. package/lib-commonjs/Body2.js.map +1 -1
  68. package/lib-commonjs/Caption1.js.map +1 -1
  69. package/lib-commonjs/Caption1Strong.js.map +1 -1
  70. package/lib-commonjs/Caption1Stronger.js.map +1 -1
  71. package/lib-commonjs/Caption2.js.map +1 -1
  72. package/lib-commonjs/Caption2Strong.js.map +1 -1
  73. package/lib-commonjs/Display.js.map +1 -1
  74. package/lib-commonjs/LargeTitle.js.map +1 -1
  75. package/lib-commonjs/Subtitle1.js.map +1 -1
  76. package/lib-commonjs/Subtitle2.js.map +1 -1
  77. package/lib-commonjs/Subtitle2Stronger.js.map +1 -1
  78. package/lib-commonjs/Text.js.map +1 -1
  79. package/lib-commonjs/Title1.js.map +1 -1
  80. package/lib-commonjs/Title2.js.map +1 -1
  81. package/lib-commonjs/Title3.js.map +1 -1
  82. package/lib-commonjs/components/Text/Text.js +1 -1
  83. package/lib-commonjs/components/Text/Text.js.map +1 -1
  84. package/lib-commonjs/components/Text/index.js.map +1 -1
  85. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  86. package/lib-commonjs/components/Text/useText.js +13 -12
  87. package/lib-commonjs/components/Text/useText.js.map +1 -1
  88. package/lib-commonjs/components/Text/useTextStyles.js +2 -2
  89. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  90. package/lib-commonjs/components/presets/Body1/Body1.js +2 -2
  91. package/lib-commonjs/components/presets/Body1/Body1.js.map +1 -1
  92. package/lib-commonjs/components/presets/Body1/index.js.map +1 -1
  93. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js +2 -2
  94. package/lib-commonjs/components/presets/Body1Strong/Body1Strong.js.map +1 -1
  95. package/lib-commonjs/components/presets/Body1Strong/index.js.map +1 -1
  96. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js +2 -2
  97. package/lib-commonjs/components/presets/Body1Stronger/Body1Stronger.js.map +1 -1
  98. package/lib-commonjs/components/presets/Body1Stronger/index.js.map +1 -1
  99. package/lib-commonjs/components/presets/Body2/Body2.js +2 -2
  100. package/lib-commonjs/components/presets/Body2/Body2.js.map +1 -1
  101. package/lib-commonjs/components/presets/Body2/index.js.map +1 -1
  102. package/lib-commonjs/components/presets/Caption1/Caption1.js +2 -2
  103. package/lib-commonjs/components/presets/Caption1/Caption1.js.map +1 -1
  104. package/lib-commonjs/components/presets/Caption1/index.js.map +1 -1
  105. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js +2 -2
  106. package/lib-commonjs/components/presets/Caption1Strong/Caption1Strong.js.map +1 -1
  107. package/lib-commonjs/components/presets/Caption1Strong/index.js.map +1 -1
  108. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js +2 -2
  109. package/lib-commonjs/components/presets/Caption1Stronger/Caption1Stronger.js.map +1 -1
  110. package/lib-commonjs/components/presets/Caption1Stronger/index.js.map +1 -1
  111. package/lib-commonjs/components/presets/Caption2/Caption2.js +2 -2
  112. package/lib-commonjs/components/presets/Caption2/Caption2.js.map +1 -1
  113. package/lib-commonjs/components/presets/Caption2/index.js.map +1 -1
  114. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js +2 -2
  115. package/lib-commonjs/components/presets/Caption2Strong/Caption2Strong.js.map +1 -1
  116. package/lib-commonjs/components/presets/Caption2Strong/index.js.map +1 -1
  117. package/lib-commonjs/components/presets/Display/Display.js +2 -2
  118. package/lib-commonjs/components/presets/Display/Display.js.map +1 -1
  119. package/lib-commonjs/components/presets/Display/index.js.map +1 -1
  120. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js +2 -2
  121. package/lib-commonjs/components/presets/LargeTitle/LargeTitle.js.map +1 -1
  122. package/lib-commonjs/components/presets/LargeTitle/index.js.map +1 -1
  123. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js +2 -2
  124. package/lib-commonjs/components/presets/Subtitle1/Subtitle1.js.map +1 -1
  125. package/lib-commonjs/components/presets/Subtitle1/index.js.map +1 -1
  126. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js +2 -2
  127. package/lib-commonjs/components/presets/Subtitle2/Subtitle2.js.map +1 -1
  128. package/lib-commonjs/components/presets/Subtitle2/index.js.map +1 -1
  129. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js +2 -2
  130. package/lib-commonjs/components/presets/Subtitle2Stronger/Subtitle2Stronger.js.map +1 -1
  131. package/lib-commonjs/components/presets/Subtitle2Stronger/index.js.map +1 -1
  132. package/lib-commonjs/components/presets/Title1/Title1.js +2 -2
  133. package/lib-commonjs/components/presets/Title1/Title1.js.map +1 -1
  134. package/lib-commonjs/components/presets/Title1/index.js.map +1 -1
  135. package/lib-commonjs/components/presets/Title2/Title2.js +2 -2
  136. package/lib-commonjs/components/presets/Title2/Title2.js.map +1 -1
  137. package/lib-commonjs/components/presets/Title2/index.js.map +1 -1
  138. package/lib-commonjs/components/presets/Title3/Title3.js +2 -2
  139. package/lib-commonjs/components/presets/Title3/Title3.js.map +1 -1
  140. package/lib-commonjs/components/presets/Title3/index.js.map +1 -1
  141. package/lib-commonjs/components/presets/createPreset.js.map +1 -1
  142. package/lib-commonjs/index.js.map +1 -1
  143. package/package.json +6 -5
package/.swcrc CHANGED
@@ -1,15 +1,5 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/swcrc",
3
- "env": {
4
- "targets": {
5
- "chrome": "84",
6
- "edge": "84",
7
- "firefox": "75",
8
- "opera": "73",
9
- "safari": "14.1"
10
- },
11
- "bugfixes": true
12
- },
13
3
  "exclude": [
14
4
  "/testing",
15
5
  "/**/*.cy.ts",
@@ -32,7 +22,8 @@
32
22
  "runtime": "classic",
33
23
  "useSpread": true
34
24
  }
35
- }
25
+ },
26
+ "target": "es2019"
36
27
  },
37
28
  "minify": false,
38
29
  "sourceMaps": true
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/react-text",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 17 Mar 2023 15:00:06 GMT",
6
- "tag": "@fluentui/react-text_v0.0.0-nightly-20230317-1454.1",
7
- "version": "0.0.0-nightly-20230317-1454.1",
5
+ "date": "Wed, 22 Mar 2023 04:46:53 GMT",
6
+ "tag": "@fluentui/react-text_v0.0.0-nightly-20230322-0439.1",
7
+ "version": "0.0.0-nightly-20230322-0439.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,26 +16,71 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-text",
19
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230317-1454.1",
20
- "commit": "636275472966fa37b1efc14ac2e70ad32bd39b86"
19
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230322-0439.1",
20
+ "commit": "49dde84493fc2c3e96abac5ce918169c9668ba66"
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-20230317-1454.1",
26
- "commit": "636275472966fa37b1efc14ac2e70ad32bd39b86"
25
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230322-0439.1",
26
+ "commit": "49dde84493fc2c3e96abac5ce918169c9668ba66"
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-20230317-1454.1",
32
- "commit": "636275472966fa37b1efc14ac2e70ad32bd39b86"
31
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230322-0439.1",
32
+ "commit": "49dde84493fc2c3e96abac5ce918169c9668ba66"
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-20230317-1454.1",
38
- "commit": "636275472966fa37b1efc14ac2e70ad32bd39b86"
37
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230322-0439.1",
38
+ "commit": "49dde84493fc2c3e96abac5ce918169c9668ba66"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Tue, 21 Mar 2023 21:23:09 GMT",
45
+ "tag": "@fluentui/react-text_v9.3.2",
46
+ "version": "9.3.2",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "tristan.watanabe@gmail.com",
51
+ "package": "@fluentui/react-text",
52
+ "commit": "2fac1a139149bd13b76b1306207bc988dca9c72c",
53
+ "comment": "chore: migrate to swc transpilation approach."
54
+ },
55
+ {
56
+ "author": "tristan.watanabe@gmail.com",
57
+ "package": "@fluentui/react-text",
58
+ "commit": "ead1c6d4c2ac3f3596b62b8cbc07b0a03041f11f",
59
+ "comment": "fix: add node field to package.json exports map."
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-text",
64
+ "comment": "Bump @fluentui/react-shared-contexts to v9.3.2",
65
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-text",
70
+ "comment": "Bump @fluentui/react-theme to v9.1.7",
71
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-text",
76
+ "comment": "Bump @fluentui/react-utilities to v9.7.2",
77
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-text",
82
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.20",
83
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
39
84
  }
40
85
  ]
41
86
  }
package/CHANGELOG.md CHANGED
@@ -1,21 +1,35 @@
1
1
  # Change Log - @fluentui/react-text
2
2
 
3
- This log was last generated on Fri, 17 Mar 2023 15:00:06 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 22 Mar 2023 04:46:53 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230317-1454.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v0.0.0-nightly-20230317-1454.1)
7
+ ## [0.0.0-nightly-20230322-0439.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v0.0.0-nightly-20230322-0439.1)
8
8
 
9
- Fri, 17 Mar 2023 15:00:06 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.1..@fluentui/react-text_v0.0.0-nightly-20230317-1454.1)
9
+ Wed, 22 Mar 2023 04:46:53 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.2..@fluentui/react-text_v0.0.0-nightly-20230322-0439.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-20230317-1454.1 ([commit](https://github.com/microsoft/fluentui/commit/636275472966fa37b1efc14ac2e70ad32bd39b86) by beachball)
16
- - Bump @fluentui/react-theme to v0.0.0-nightly-20230317-1454.1 ([commit](https://github.com/microsoft/fluentui/commit/636275472966fa37b1efc14ac2e70ad32bd39b86) by beachball)
17
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20230317-1454.1 ([commit](https://github.com/microsoft/fluentui/commit/636275472966fa37b1efc14ac2e70ad32bd39b86) by beachball)
18
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230317-1454.1 ([commit](https://github.com/microsoft/fluentui/commit/636275472966fa37b1efc14ac2e70ad32bd39b86) by beachball)
15
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230322-0439.1 ([commit](https://github.com/microsoft/fluentui/commit/49dde84493fc2c3e96abac5ce918169c9668ba66) by beachball)
16
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20230322-0439.1 ([commit](https://github.com/microsoft/fluentui/commit/49dde84493fc2c3e96abac5ce918169c9668ba66) by beachball)
17
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20230322-0439.1 ([commit](https://github.com/microsoft/fluentui/commit/49dde84493fc2c3e96abac5ce918169c9668ba66) by beachball)
18
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230322-0439.1 ([commit](https://github.com/microsoft/fluentui/commit/49dde84493fc2c3e96abac5ce918169c9668ba66) by beachball)
19
+
20
+ ## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.2)
21
+
22
+ Tue, 21 Mar 2023 21:23:09 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-text_v9.3.1..@fluentui/react-text_v9.3.2)
24
+
25
+ ### Patches
26
+
27
+ - chore: migrate to swc transpilation approach. ([PR #27250](https://github.com/microsoft/fluentui/pull/27250) by tristan.watanabe@gmail.com)
28
+ - fix: add node field to package.json exports map. ([PR #27154](https://github.com/microsoft/fluentui/pull/27154) by tristan.watanabe@gmail.com)
29
+ - Bump @fluentui/react-shared-contexts to v9.3.2 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
30
+ - Bump @fluentui/react-theme to v9.1.7 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
31
+ - Bump @fluentui/react-utilities to v9.7.2 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
32
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.20 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
19
33
 
20
34
  ## [9.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-text_v9.3.1)
21
35
 
package/lib/Body1.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Body1/index";
1
+ export * from './components/presets/Body1/index';
2
2
  //# sourceMappingURL=Body1.js.map
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Body1Strong/index";
1
+ export * from './components/presets/Body1Strong/index';
2
2
  //# sourceMappingURL=Body1Strong.js.map
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Body1Stronger/index";
1
+ export * from './components/presets/Body1Stronger/index';
2
2
  //# sourceMappingURL=Body1Stronger.js.map
package/lib/Body2.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Body2/index";
1
+ export * from './components/presets/Body2/index';
2
2
  //# sourceMappingURL=Body2.js.map
package/lib/Caption1.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Caption1/index";
1
+ export * from './components/presets/Caption1/index';
2
2
  //# sourceMappingURL=Caption1.js.map
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Caption1Strong/index";
1
+ export * from './components/presets/Caption1Strong/index';
2
2
  //# sourceMappingURL=Caption1Strong.js.map
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Caption1Stronger/index";
1
+ export * from './components/presets/Caption1Stronger/index';
2
2
  //# sourceMappingURL=Caption1Stronger.js.map
package/lib/Caption2.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Caption2/index";
1
+ export * from './components/presets/Caption2/index';
2
2
  //# sourceMappingURL=Caption2.js.map
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Caption2Strong/index";
1
+ export * from './components/presets/Caption2Strong/index';
2
2
  //# sourceMappingURL=Caption2Strong.js.map
package/lib/Display.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Display/index";
1
+ export * from './components/presets/Display/index';
2
2
  //# sourceMappingURL=Display.js.map
package/lib/LargeTitle.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/LargeTitle/index";
1
+ export * from './components/presets/LargeTitle/index';
2
2
  //# sourceMappingURL=LargeTitle.js.map
package/lib/Subtitle1.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Subtitle1/index";
1
+ export * from './components/presets/Subtitle1/index';
2
2
  //# sourceMappingURL=Subtitle1.js.map
package/lib/Subtitle2.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Subtitle2/index";
1
+ export * from './components/presets/Subtitle2/index';
2
2
  //# sourceMappingURL=Subtitle2.js.map
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Subtitle2Stronger/index";
1
+ export * from './components/presets/Subtitle2Stronger/index';
2
2
  //# sourceMappingURL=Subtitle2Stronger.js.map
package/lib/Text.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/Text/index";
1
+ export * from './components/Text/index';
2
2
  //# sourceMappingURL=Text.js.map
package/lib/Title1.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Title1/index";
1
+ export * from './components/presets/Title1/index';
2
2
  //# sourceMappingURL=Title1.js.map
package/lib/Title2.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Title2/index";
1
+ export * from './components/presets/Title2/index';
2
2
  //# sourceMappingURL=Title2.js.map
package/lib/Title3.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./components/presets/Title3/index";
1
+ export * from './components/presets/Title3/index';
2
2
  //# sourceMappingURL=Title3.js.map
@@ -1,8 +1,8 @@
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";
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 = "Text";
20
+ Text.displayName = 'Text';
21
21
  //# sourceMappingURL=Text.js.map
@@ -1,6 +1,6 @@
1
- export * from "./Text";
2
- export * from "./Text.types";
3
- export * from "./renderText";
4
- export * from "./useText";
5
- export * from "./useTextStyles";
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,5 +1,5 @@
1
- import * as React from "react";
2
- import { getSlots } from "@fluentui/react-utilities";
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
  */
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import { getNativeElementProps } from "@fluentui/react-utilities";
1
+ import * as React from 'react';
2
+ import { getNativeElementProps } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Create the state required to render Text.
5
5
  *
@@ -22,20 +22,21 @@ export const useText_unstable = (props, ref) => {
22
22
  weight,
23
23
  align
24
24
  } = props;
25
- const as = props.as ?? "span";
25
+ var _props_as;
26
+ const as = (_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'span';
26
27
  const state = {
27
- align: align ?? "start",
28
- block: block ?? false,
29
- font: font ?? "base",
30
- italic: italic ?? false,
31
- size: size ?? 300,
32
- strikethrough: strikethrough ?? false,
33
- truncate: truncate ?? false,
34
- underline: underline ?? false,
35
- weight: weight ?? "regular",
36
- wrap: wrap ?? true,
28
+ align: align !== null && align !== void 0 ? align : 'start',
29
+ block: block !== null && block !== void 0 ? block : false,
30
+ font: font !== null && font !== void 0 ? font : 'base',
31
+ italic: italic !== null && italic !== void 0 ? italic : false,
32
+ size: size !== null && size !== void 0 ? size : 300,
33
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
34
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
35
+ underline: underline !== null && underline !== void 0 ? underline : false,
36
+ weight: weight !== null && weight !== void 0 ? weight : 'regular',
37
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
37
38
  components: {
38
- root: "span"
39
+ root: 'span'
39
40
  },
40
41
  root: getNativeElementProps(as, {
41
42
  ref,
@@ -1 +1 @@
1
- {"version":3,"names":["React","getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","as","state","components","root"],"sources":["../../../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":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAGtC;;;;;;;;;AASA,OAAO,MAAMC,gBAAA,GAAmBA,CAACC,KAAA,EAAkBC,GAAA,KAA2C;EAC5F,MAAM;IAAEC,IAAA;IAAMC,QAAA;IAAUC,KAAA;IAAOC,MAAA;IAAQC,SAAA;IAAWC,aAAA;IAAeC,IAAA;IAAMC,IAAA;IAAMC,MAAA;IAAQC;EAAK,CAAE,GAAGX,KAAA;EAC/F,MAAMY,EAAA,GAAKZ,KAAA,CAAMY,EAAE,IAAI;EAEvB,MAAMC,KAAA,GAAmB;IACvBF,KAAA,EAAOA,KAAA,IAAS;IAChBP,KAAA,EAAOA,KAAA,IAAS,KAAK;IACrBK,IAAA,EAAMA,IAAA,IAAQ;IACdJ,MAAA,EAAQA,MAAA,IAAU,KAAK;IACvBG,IAAA,EAAMA,IAAA,IAAQ;IACdD,aAAA,EAAeA,aAAA,IAAiB,KAAK;IACrCJ,QAAA,EAAUA,QAAA,IAAY,KAAK;IAC3BG,SAAA,EAAWA,SAAA,IAAa,KAAK;IAC7BI,MAAA,EAAQA,MAAA,IAAU;IAClBR,IAAA,EAAMA,IAAA,IAAQ,IAAI;IAElBY,UAAA,EAAY;MAAEC,IAAA,EAAM;IAAO;IAE3BA,IAAA,EAAMjB,qBAAA,CAAsBc,EAAA,EAAI;MAC9BX,GAAA;MACA,GAAGD,KAAK;MACRY;IACF;EACF;EAEA,OAAOC,KAAA;AACT"}
1
+ {"version":3,"names":["React","getNativeElementProps","useText_unstable","props","ref","wrap","truncate","block","italic","underline","strikethrough","size","font","weight","align","_props_as","as","state","components","root"],"sources":["../../../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":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAGtC;;;;;;;;;AASA,OAAO,MAAMC,gBAAA,GAAmBA,CAACC,KAAA,EAAkBC,GAAA,KAA2C;EAC5F,MAAM;IAAEC,IAAA;IAAMC,QAAA;IAAUC,KAAA;IAAOC,MAAA;IAAQC,SAAA;IAAWC,aAAA;IAAeC,IAAA;IAAMC,IAAA;IAAMC,MAAA;IAAQC;EAAK,CAAE,GAAGX,KAAA;MACpFY,SAAA;EAAX,MAAMC,EAAA,GAAK,CAAAD,SAAA,GAAAZ,KAAA,CAAMa,EAAE,cAARD,SAAA,cAAAA,SAAA,GAAY,MAAM;EAE7B,MAAME,KAAA,GAAmB;IACvBH,KAAA,EAAOA,KAAA,aAAAA,KAAA,cAAAA,KAAA,GAAS,OAAO;IACvBP,KAAA,EAAOA,KAAA,aAAAA,KAAA,cAAAA,KAAA,GAAS,KAAK;IACrBK,IAAA,EAAMA,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAQ,MAAM;IACpBJ,MAAA,EAAQA,MAAA,aAAAA,MAAA,cAAAA,MAAA,GAAU,KAAK;IACvBG,IAAA,EAAMA,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAQ,GAAG;IACjBD,aAAA,EAAeA,aAAA,aAAAA,aAAA,cAAAA,aAAA,GAAiB,KAAK;IACrCJ,QAAA,EAAUA,QAAA,aAAAA,QAAA,cAAAA,QAAA,GAAY,KAAK;IAC3BG,SAAA,EAAWA,SAAA,aAAAA,SAAA,cAAAA,SAAA,GAAa,KAAK;IAC7BI,MAAA,EAAQA,MAAA,aAAAA,MAAA,cAAAA,MAAA,GAAU,SAAS;IAC3BR,IAAA,EAAMA,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAQ,IAAI;IAElBa,UAAA,EAAY;MAAEC,IAAA,EAAM;IAAO;IAE3BA,IAAA,EAAMlB,qBAAA,CAAsBe,EAAA,EAAI;MAC9BZ,GAAA;MACA,GAAGD,KAAK;MACRa;IACF;EACF;EAEA,OAAOC,KAAA;AACT"}
@@ -1,7 +1,7 @@
1
- import { __styles, mergeClasses, shorthands } from "@griffel/react";
2
- import { tokens } from "@fluentui/react-theme";
1
+ import { __styles, mergeClasses, shorthands } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
3
  export const textClassNames = {
4
- root: "fui-Text"
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 === "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);
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,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
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: "fui-Body1"
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: "Body1"
26
+ displayName: 'Body1'
27
27
  });
28
28
  //# sourceMappingURL=Body1.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Body1";
1
+ export * from './Body1';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const body1StrongClassNames = {
5
- root: "fui-Body1Strong"
5
+ root: 'fui-Body1Strong'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Body1Strong = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: body1StrongClassNames.root,
26
- displayName: "Body1Strong"
26
+ displayName: 'Body1Strong'
27
27
  });
28
28
  //# sourceMappingURL=Body1Strong.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Body1Strong";
1
+ export * from './Body1Strong';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const body1StrongerClassNames = {
5
- root: "fui-Body1Stronger"
5
+ root: 'fui-Body1Stronger'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Body1Stronger = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: body1StrongerClassNames.root,
26
- displayName: "Body1Stronger"
26
+ displayName: 'Body1Stronger'
27
27
  });
28
28
  //# sourceMappingURL=Body1Stronger.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Body1Stronger";
1
+ export * from './Body1Stronger';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const body2ClassNames = {
5
- root: "fui-Body2"
5
+ root: 'fui-Body2'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Body2 = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: body2ClassNames.root,
26
- displayName: "Body2"
26
+ displayName: 'Body2'
27
27
  });
28
28
  //# sourceMappingURL=Body2.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Body2";
1
+ export * from './Body2';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const caption1ClassNames = {
5
- root: "fui-Caption1"
5
+ root: 'fui-Caption1'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Caption1 = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: caption1ClassNames.root,
26
- displayName: "Caption1"
26
+ displayName: 'Caption1'
27
27
  });
28
28
  //# sourceMappingURL=Caption1.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Caption1";
1
+ export * from './Caption1';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const caption1StrongClassNames = {
5
- root: "fui-Caption1Strong"
5
+ root: 'fui-Caption1Strong'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Caption1Strong = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: caption1StrongClassNames.root,
26
- displayName: "Caption1Strong"
26
+ displayName: 'Caption1Strong'
27
27
  });
28
28
  //# sourceMappingURL=Caption1Strong.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Caption1Strong";
1
+ export * from './Caption1Strong';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const caption1StrongerClassNames = {
5
- root: "fui-Caption1Stronger"
5
+ root: 'fui-Caption1Stronger'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Caption1Stronger = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: caption1StrongerClassNames.root,
26
- displayName: "Caption1Stronger"
26
+ displayName: 'Caption1Stronger'
27
27
  });
28
28
  //# sourceMappingURL=Caption1Stronger.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Caption1Stronger";
1
+ export * from './Caption1Stronger';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { __styles } from "@griffel/react";
2
- import { createPreset } from "../createPreset";
3
- import { typographyStyles } from "@fluentui/react-theme";
1
+ import { __styles } from '@griffel/react';
2
+ import { createPreset } from '../createPreset';
3
+ import { typographyStyles } from '@fluentui/react-theme';
4
4
  export const caption2ClassNames = {
5
- root: "fui-Caption2"
5
+ root: 'fui-Caption2'
6
6
  };
7
7
  /**
8
8
  * Styles for the root slot
@@ -23,6 +23,6 @@ const useStyles = /*#__PURE__*/__styles({
23
23
  export const Caption2 = /*#__PURE__*/createPreset({
24
24
  useStyles,
25
25
  className: caption2ClassNames.root,
26
- displayName: "Caption2"
26
+ displayName: 'Caption2'
27
27
  });
28
28
  //# sourceMappingURL=Caption2.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Caption2";
1
+ export * from './Caption2';
2
2
  //# sourceMappingURL=index.js.map