@fluentui/react-text 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.4

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 (169) hide show
  1. package/CHANGELOG.json +275 -16
  2. package/CHANGELOG.md +80 -10
  3. package/MIGRATION.md +153 -103
  4. package/dist/react-text.d.ts +28 -8
  5. package/lib/Body.js.map +1 -1
  6. package/lib/Caption.js.map +1 -1
  7. package/lib/Display.js.map +1 -1
  8. package/lib/Headline.js.map +1 -1
  9. package/lib/LargeTitle.js.map +1 -1
  10. package/lib/Subheadline.js.map +1 -1
  11. package/lib/Text.js.map +1 -1
  12. package/lib/Title1.js.map +1 -1
  13. package/lib/Title2.js.map +1 -1
  14. package/lib/Title3.js.map +1 -1
  15. package/lib/components/Body/Body.d.ts +1 -0
  16. package/lib/components/Body/Body.js +6 -4
  17. package/lib/components/Body/Body.js.map +1 -1
  18. package/lib/components/Body/index.js.map +1 -1
  19. package/lib/components/Caption/Caption.d.ts +1 -0
  20. package/lib/components/Caption/Caption.js +6 -4
  21. package/lib/components/Caption/Caption.js.map +1 -1
  22. package/lib/components/Caption/index.js.map +1 -1
  23. package/lib/components/Display/Display.d.ts +1 -0
  24. package/lib/components/Display/Display.js +6 -4
  25. package/lib/components/Display/Display.js.map +1 -1
  26. package/lib/components/Display/index.js.map +1 -1
  27. package/lib/components/Headline/Headline.d.ts +1 -0
  28. package/lib/components/Headline/Headline.js +6 -4
  29. package/lib/components/Headline/Headline.js.map +1 -1
  30. package/lib/components/Headline/index.js.map +1 -1
  31. package/lib/components/LargeTitle/LargeTitle.d.ts +1 -0
  32. package/lib/components/LargeTitle/LargeTitle.js +6 -4
  33. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  34. package/lib/components/LargeTitle/index.js.map +1 -1
  35. package/lib/components/Subheadline/Subheadline.d.ts +1 -0
  36. package/lib/components/Subheadline/Subheadline.js +6 -4
  37. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  38. package/lib/components/Subheadline/index.js.map +1 -1
  39. package/lib/components/Text/Text.js +7 -7
  40. package/lib/components/Text/Text.js.map +1 -1
  41. package/lib/components/Text/Text.types.d.ts +4 -3
  42. package/lib/components/Text/Text.types.js.map +1 -1
  43. package/lib/components/Text/index.js.map +1 -1
  44. package/lib/components/Text/renderText.d.ts +1 -1
  45. package/lib/components/Text/renderText.js +7 -7
  46. package/lib/components/Text/renderText.js.map +1 -1
  47. package/lib/components/Text/useText.d.ts +3 -3
  48. package/lib/components/Text/useText.js +22 -21
  49. package/lib/components/Text/useText.js.map +1 -1
  50. package/lib/components/Text/useTextStyles.d.ts +2 -1
  51. package/lib/components/Text/useTextStyles.js +15 -11
  52. package/lib/components/Text/useTextStyles.js.map +1 -1
  53. package/lib/components/Title1/Title1.d.ts +1 -0
  54. package/lib/components/Title1/Title1.js +6 -4
  55. package/lib/components/Title1/Title1.js.map +1 -1
  56. package/lib/components/Title1/index.js.map +1 -1
  57. package/lib/components/Title2/Title2.d.ts +1 -0
  58. package/lib/components/Title2/Title2.js +6 -4
  59. package/lib/components/Title2/Title2.js.map +1 -1
  60. package/lib/components/Title2/index.js.map +1 -1
  61. package/lib/components/Title3/Title3.d.ts +1 -0
  62. package/lib/components/Title3/Title3.js +6 -4
  63. package/lib/components/Title3/Title3.js.map +1 -1
  64. package/lib/components/Title3/index.js.map +1 -1
  65. package/lib/components/wrapper.d.ts +1 -0
  66. package/lib/components/wrapper.js +13 -10
  67. package/lib/components/wrapper.js.map +1 -1
  68. package/lib/index.js.map +1 -1
  69. package/lib/typographyStyles/index.js.map +1 -1
  70. package/lib/typographyStyles/typographyStyles.d.ts +10 -11
  71. package/lib/typographyStyles/typographyStyles.js +55 -71
  72. package/lib/typographyStyles/typographyStyles.js.map +1 -1
  73. package/lib-commonjs/Body.js +1 -1
  74. package/lib-commonjs/Body.js.map +1 -1
  75. package/lib-commonjs/Caption.js +1 -1
  76. package/lib-commonjs/Caption.js.map +1 -1
  77. package/lib-commonjs/Display.js +1 -1
  78. package/lib-commonjs/Display.js.map +1 -1
  79. package/lib-commonjs/Headline.js +1 -1
  80. package/lib-commonjs/Headline.js.map +1 -1
  81. package/lib-commonjs/LargeTitle.js +1 -1
  82. package/lib-commonjs/LargeTitle.js.map +1 -1
  83. package/lib-commonjs/Subheadline.js +1 -1
  84. package/lib-commonjs/Subheadline.js.map +1 -1
  85. package/lib-commonjs/Text.js +1 -1
  86. package/lib-commonjs/Text.js.map +1 -1
  87. package/lib-commonjs/Title1.js +1 -1
  88. package/lib-commonjs/Title1.js.map +1 -1
  89. package/lib-commonjs/Title2.js +1 -1
  90. package/lib-commonjs/Title2.js.map +1 -1
  91. package/lib-commonjs/Title3.js +1 -1
  92. package/lib-commonjs/Title3.js.map +1 -1
  93. package/lib-commonjs/components/Body/Body.d.ts +1 -0
  94. package/lib-commonjs/components/Body/Body.js +9 -9
  95. package/lib-commonjs/components/Body/Body.js.map +1 -1
  96. package/lib-commonjs/components/Body/index.js +1 -1
  97. package/lib-commonjs/components/Body/index.js.map +1 -1
  98. package/lib-commonjs/components/Caption/Caption.d.ts +1 -0
  99. package/lib-commonjs/components/Caption/Caption.js +9 -9
  100. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  101. package/lib-commonjs/components/Caption/index.js +1 -1
  102. package/lib-commonjs/components/Caption/index.js.map +1 -1
  103. package/lib-commonjs/components/Display/Display.d.ts +1 -0
  104. package/lib-commonjs/components/Display/Display.js +9 -9
  105. package/lib-commonjs/components/Display/Display.js.map +1 -1
  106. package/lib-commonjs/components/Display/index.js +1 -1
  107. package/lib-commonjs/components/Display/index.js.map +1 -1
  108. package/lib-commonjs/components/Headline/Headline.d.ts +1 -0
  109. package/lib-commonjs/components/Headline/Headline.js +9 -9
  110. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  111. package/lib-commonjs/components/Headline/index.js +1 -1
  112. package/lib-commonjs/components/Headline/index.js.map +1 -1
  113. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +1 -0
  114. package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -9
  115. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  116. package/lib-commonjs/components/LargeTitle/index.js +1 -1
  117. package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
  118. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +1 -0
  119. package/lib-commonjs/components/Subheadline/Subheadline.js +9 -9
  120. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  121. package/lib-commonjs/components/Subheadline/index.js +1 -1
  122. package/lib-commonjs/components/Subheadline/index.js.map +1 -1
  123. package/lib-commonjs/components/Text/Text.js +8 -8
  124. package/lib-commonjs/components/Text/Text.js.map +1 -1
  125. package/lib-commonjs/components/Text/Text.types.d.ts +4 -3
  126. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  127. package/lib-commonjs/components/Text/index.js +1 -1
  128. package/lib-commonjs/components/Text/index.js.map +1 -1
  129. package/lib-commonjs/components/Text/renderText.d.ts +1 -1
  130. package/lib-commonjs/components/Text/renderText.js +11 -12
  131. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  132. package/lib-commonjs/components/Text/useText.d.ts +3 -3
  133. package/lib-commonjs/components/Text/useText.js +25 -25
  134. package/lib-commonjs/components/Text/useText.js.map +1 -1
  135. package/lib-commonjs/components/Text/useTextStyles.d.ts +2 -1
  136. package/lib-commonjs/components/Text/useTextStyles.js +19 -14
  137. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  138. package/lib-commonjs/components/Title1/Title1.d.ts +1 -0
  139. package/lib-commonjs/components/Title1/Title1.js +9 -9
  140. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  141. package/lib-commonjs/components/Title1/index.js +1 -1
  142. package/lib-commonjs/components/Title1/index.js.map +1 -1
  143. package/lib-commonjs/components/Title2/Title2.d.ts +1 -0
  144. package/lib-commonjs/components/Title2/Title2.js +9 -9
  145. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  146. package/lib-commonjs/components/Title2/index.js +1 -1
  147. package/lib-commonjs/components/Title2/index.js.map +1 -1
  148. package/lib-commonjs/components/Title3/Title3.d.ts +1 -0
  149. package/lib-commonjs/components/Title3/Title3.js +9 -9
  150. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  151. package/lib-commonjs/components/Title3/index.js +1 -1
  152. package/lib-commonjs/components/Title3/index.js.map +1 -1
  153. package/lib-commonjs/components/wrapper.d.ts +1 -0
  154. package/lib-commonjs/components/wrapper.js +14 -11
  155. package/lib-commonjs/components/wrapper.js.map +1 -1
  156. package/lib-commonjs/index.js +1 -1
  157. package/lib-commonjs/index.js.map +1 -1
  158. package/lib-commonjs/typographyStyles/index.js +1 -1
  159. package/lib-commonjs/typographyStyles/index.js.map +1 -1
  160. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +10 -11
  161. package/lib-commonjs/typographyStyles/typographyStyles.js +48 -89
  162. package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
  163. package/package.json +9 -10
  164. package/lib/common/isConformant.d.ts +0 -4
  165. package/lib/common/isConformant.js +0 -16
  166. package/lib/common/isConformant.js.map +0 -1
  167. package/lib-commonjs/common/isConformant.d.ts +0 -4
  168. package/lib-commonjs/common/isConformant.js +0 -27
  169. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Body = void 0;
6
+ exports.Body = exports.bodyClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.bodyClassName = 'fui-Body';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
- "root": {}
20
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
21
20
  /**
22
21
  * Text wrapper component for the Body typography variant
23
22
  */
24
23
 
25
24
 
26
25
  exports.Body = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
26
+ useStyles,
27
+ className: exports.bodyClassName,
28
28
  displayName: 'Body'
29
29
  });
30
30
  //# sourceMappingURL=Body.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAA5C","sourceRoot":""}
1
+ {"version":3,"sources":["components/Body/Body.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAA4C,SAAA,CAAA,aAAA,CAAc;AACrE,EAAA,SADqE;AAErE,EAAA,SAAS,EAAE,OAAA,CAAA,aAF0D;AAGrE,EAAA,WAAW,EAAE;AAHwD,CAAd,CAA5C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const bodyClassName = 'fui-Body';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.body,\n});\n\n/**\n * Text wrapper component for the Body typography variant\n */\nexport const Body: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: bodyClassName,\n displayName: 'Body',\n});\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Body"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Body/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Body/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Body';\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,6 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ export declare const captionClassName = "fui-Caption";
3
4
  /**
4
5
  * Text wrapper component for the Caption typography variant
5
6
  */
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Caption = void 0;
6
+ exports.Caption = exports.captionClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.captionClassName = 'fui-Caption';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
- "root": {}
20
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
21
20
  /**
22
21
  * Text wrapper component for the Caption typography variant
23
22
  */
24
23
 
25
24
 
26
25
  exports.Caption = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
26
+ useStyles,
27
+ className: exports.captionClassName,
28
28
  displayName: 'Caption'
29
29
  });
30
30
  //# sourceMappingURL=Caption.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAA/C","sourceRoot":""}
1
+ {"version":3,"sources":["components/Caption/Caption.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const captionClassName = 'fui-Caption';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.caption,\n});\n\n/**\n * Text wrapper component for the Caption typography variant\n */\nexport const Caption: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: captionClassName,\n displayName: 'Caption',\n});\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Caption"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Caption/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Caption/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Caption';\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,6 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ export declare const displayClassName = "fui-Display";
3
4
  /**
4
5
  * Text wrapper component for the Display typography variant
5
6
  */
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Display = void 0;
6
+ exports.Display = exports.displayClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.displayClassName = 'fui-Display';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
- "root": {}
20
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
21
20
  /**
22
21
  * Text wrapper component for the Display typography variant
23
22
  */
24
23
 
25
24
 
26
25
  exports.Display = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
26
+ useStyles,
27
+ className: exports.displayClassName,
28
28
  displayName: 'Display'
29
29
  });
30
30
  //# sourceMappingURL=Display.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AAAE,EAAA,SAAS,EAAA,SAAX;AAAa,EAAA,WAAW,EAAE;AAA1B,CAAd,CAA/C","sourceRoot":""}
1
+ {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAF6D;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const displayClassName = 'fui-Display';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.display,\n});\n\n/**\n * Text wrapper component for the Display typography variant\n */\nexport const Display: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: displayClassName,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Display"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Display/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Display/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Display';\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,6 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ export declare const headlineClassName = "fui-Headline";
3
4
  /**
4
5
  * Text wrapper component for the Headline typography variant
5
6
  */
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Headline = void 0;
6
+ exports.Headline = exports.headlineClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.headlineClassName = 'fui-Headline';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
- "root": {}
20
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
21
20
  /**
22
21
  * Text wrapper component for the Headline typography variant
23
22
  */
24
23
 
25
24
 
26
25
  exports.Headline = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
26
+ useStyles,
27
+ className: exports.headlineClassName,
28
28
  displayName: 'Headline'
29
29
  });
30
30
  //# sourceMappingURL=Headline.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SAAS,EAAA,SADgE;AAEzE,EAAA,WAAW,EAAE;AAF4D,CAAd,CAAhD","sourceRoot":""}
1
+ {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,iBAAA,GAAoB,cAApB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAF8D;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const headlineClassName = 'fui-Headline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.headline,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassName,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Headline"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Headline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Headline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Headline';\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,6 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ export declare const largeTitleClassName = "fui-LargeTitle";
3
4
  /**
4
5
  * Text wrapper component for the Large Title typography variant
5
6
  */
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.LargeTitle = void 0;
6
+ exports.LargeTitle = exports.largeTitleClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.largeTitleClassName = 'fui-LargeTitle';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
- "root": {}
20
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
21
20
  /**
22
21
  * Text wrapper component for the Large Title typography variant
23
22
  */
24
23
 
25
24
 
26
25
  exports.LargeTitle = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
26
+ useStyles,
27
+ className: exports.largeTitleClassName,
28
28
  displayName: 'LargeTitle'
29
29
  });
30
30
  //# sourceMappingURL=LargeTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAAS,EAAA,SADkE;AAE3E,EAAA,WAAW,EAAE;AAF8D,CAAd,CAAlD","sourceRoot":""}
1
+ {"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,OAAA,CAAA,mBAFgE;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAd,CAAlD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const largeTitleClassName = 'fui-LargeTitle';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.largeTitle,\n});\n\n/**\n * Text wrapper component for the Large Title typography variant\n */\nexport const LargeTitle: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: largeTitleClassName,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./LargeTitle"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/LargeTitle/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/LargeTitle/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './LargeTitle';\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,6 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ export declare const subheadlineClassName = "fui-Subheadline";
3
4
  /**
4
5
  * Text wrapper component for the Subheadline typography variant
5
6
  */
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Subheadline = void 0;
6
+ exports.Subheadline = exports.subheadlineClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var index_1 = /*#__PURE__*/require("../../typographyStyles/index");
10
+ const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
- var wrapper_1 = /*#__PURE__*/require("../wrapper");
12
+ const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+
14
+ exports.subheadlineClassName = 'fui-Subheadline';
13
15
  /**
14
16
  * Styles for the root slot
15
17
  */
16
18
 
17
-
18
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
19
- "root": {}
20
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
21
20
  /**
22
21
  * Text wrapper component for the Subheadline typography variant
23
22
  */
24
23
 
25
24
 
26
25
  exports.Subheadline = /*#__PURE__*/wrapper_1.createWrapper({
27
- useStyles: useStyles,
26
+ useStyles,
27
+ className: exports.subheadlineClassName,
28
28
  displayName: 'Subheadline'
29
29
  });
30
30
  //# sourceMappingURL=Subheadline.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;AAEA;;AAEG;;;AACH,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA,MAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAAS,EAAA,SADmE;AAE5E,EAAA,WAAW,EAAE;AAF+D,CAAd,CAAnD","sourceRoot":""}
1
+ {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,8BAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAEa,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,OAAA,CAAA,oBAFiE;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAd,CAAnD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\n\nexport const subheadlineClassName = 'fui-Subheadline';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subheadline,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassName,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Subheadline"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Subheadline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Subheadline/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Subheadline';\n"],"sourceRoot":"../src/"}
@@ -5,22 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Text = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var useText_1 = /*#__PURE__*/require("./useText");
10
+ const useText_1 = /*#__PURE__*/require("./useText");
11
11
 
12
- var renderText_1 = /*#__PURE__*/require("./renderText");
12
+ const renderText_1 = /*#__PURE__*/require("./renderText");
13
13
 
14
- var useTextStyles_1 = /*#__PURE__*/require("./useTextStyles");
14
+ const useTextStyles_1 = /*#__PURE__*/require("./useTextStyles");
15
15
  /**
16
16
  * Typography and styling abstraction component used to ensure consistency of text.
17
17
  */
18
18
 
19
19
 
20
- exports.Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useText_1.useText(props, ref);
22
- useTextStyles_1.useTextStyles(state);
23
- return renderText_1.renderText(state); // Work around some small mismatches in inferred types which don't matter in practice
20
+ exports.Text = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useText_1.useText_unstable(props, ref);
22
+ useTextStyles_1.useTextStyles_unstable(state);
23
+ return renderText_1.renderText_unstable(state); // Work around some small mismatches in inferred types which don't matter in practice
24
24
  });
25
25
  exports.Text.displayName = 'Text';
26
26
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,IAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAAuC,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC9E,MAAM,KAAK,GAAG,SAAA,CAAA,OAAA,CAAQ,KAAR,EAAe,GAAf,CAAd;AAEA,EAAA,eAAA,CAAA,aAAA,CAAc,KAAd;AAEA,SAAO,YAAA,CAAA,UAAA,CAAW,KAAX,CAAP,CAL8E,CAM9E;AACD,CAPmD,CAAvC;AASb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,SAAA,CAAA,gBAAA,CAAiB,KAAjB,EAAwB,GAAxB,CAAd;AAEA,EAAA,eAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,SAAO,YAAA,CAAA,mBAAA,CAAoB,KAApB,CAAP,CALkF,CAMlF;AACD,CAPmD,CAAvC;AASb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","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';\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 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"],"sourceRoot":"../src/"}
@@ -1,11 +1,11 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  /**
3
3
  * Text slots
4
4
  */
5
5
  export declare type TextSlots = {
6
- root: IntrinsicShorthandProps<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
6
+ root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
7
7
  };
8
- export declare type TextCommons = {
8
+ declare type TextCommons = {
9
9
  /**
10
10
  * Wraps the text content on white spaces.
11
11
  *
@@ -75,3 +75,4 @@ export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>
75
75
  * State used in rendering Text
76
76
  */
77
77
  export declare type TextState = ComponentState<TextSlots> & TextCommons;
78
+ export {};
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Text"), exports);
10
10
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Text/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Text';\nexport * from './Text.types';\nexport * from './renderText';\nexport * from './useText';\nexport * from './useTextStyles';\n"],"sourceRoot":"../src/"}
@@ -2,4 +2,4 @@ import type { TextState } from './Text.types';
2
2
  /**
3
3
  * Render the final JSX of Text
4
4
  */
5
- export declare const renderText: (state: TextState) => JSX.Element;
5
+ export declare const renderText_unstable: (state: TextState) => JSX.Element;
@@ -3,25 +3,24 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderText = void 0;
6
+ exports.renderText_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
11
  /**
14
12
  * Render the final JSX of Text
15
13
  */
16
14
 
17
15
 
18
- var renderText = function (state) {
19
- var _a = react_utilities_1.getSlots(state),
20
- slots = _a.slots,
21
- slotProps = _a.slotProps;
22
-
23
- return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root));
16
+ const renderText_unstable = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state);
21
+ return React.createElement(slots.root, { ...slotProps.root
22
+ });
24
23
  };
25
24
 
26
- exports.renderText = renderText;
25
+ exports.renderText_unstable = renderText_unstable;
27
26
  //# sourceMappingURL=renderText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,UAAU,GAAG,UAAC,KAAD,EAAiB;AACnC,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}
1
+ {"version":3,"sources":["components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,mBAAmB,GAAI,KAAD,IAAqB;AACtD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","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"],"sourceRoot":"../src/"}
@@ -3,10 +3,10 @@ import type { TextProps, TextState } from './Text.types';
3
3
  /**
4
4
  * Create the state required to render Text.
5
5
  *
6
- * The returned state can be modified with hooks such as useTextStyles,
7
- * before being passed to renderText.
6
+ * The returned state can be modified with hooks such as useTextStyles_unstable,
7
+ * before being passed to renderText_unstable.
8
8
  *
9
9
  * @param props - props from this instance of Text
10
10
  * @param ref - reference to root HTMLElement of Text
11
11
  */
12
- export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
12
+ export declare const useText_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;