@fluentui/react-text 9.0.0-rc.6 → 9.0.0-rc.9

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 (130) hide show
  1. package/CHANGELOG.json +125 -4
  2. package/CHANGELOG.md +92 -55
  3. package/dist/{react-text.d.ts → index.d.ts} +26 -28
  4. package/{lib → dist}/tsdoc-metadata.json +0 -0
  5. package/lib/components/Body/Body.js +4 -4
  6. package/lib/components/Body/Body.js.map +1 -1
  7. package/lib/components/Caption/Caption.js +4 -4
  8. package/lib/components/Caption/Caption.js.map +1 -1
  9. package/lib/components/Display/Display.js +4 -4
  10. package/lib/components/Display/Display.js.map +1 -1
  11. package/lib/components/Headline/Headline.js +4 -4
  12. package/lib/components/Headline/Headline.js.map +1 -1
  13. package/lib/components/LargeTitle/LargeTitle.js +4 -4
  14. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  15. package/lib/components/Subheadline/Subheadline.js +4 -4
  16. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  17. package/lib/components/Text/Text.types.js.map +1 -1
  18. package/lib/components/Text/useText.js +6 -6
  19. package/lib/components/Text/useText.js.map +1 -1
  20. package/lib/components/Title1/Title1.js +4 -4
  21. package/lib/components/Title1/Title1.js.map +1 -1
  22. package/lib/components/Title2/Title2.js +4 -4
  23. package/lib/components/Title2/Title2.js.map +1 -1
  24. package/lib/components/Title3/Title3.js +4 -4
  25. package/lib/components/Title3/Title3.js.map +1 -1
  26. package/lib-commonjs/components/Body/Body.js +12 -3
  27. package/lib-commonjs/components/Body/Body.js.map +1 -1
  28. package/lib-commonjs/components/Caption/Caption.js +12 -3
  29. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  30. package/lib-commonjs/components/Display/Display.js +12 -3
  31. package/lib-commonjs/components/Display/Display.js.map +1 -1
  32. package/lib-commonjs/components/Headline/Headline.js +12 -3
  33. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  34. package/lib-commonjs/components/LargeTitle/LargeTitle.js +12 -3
  35. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  36. package/lib-commonjs/components/Subheadline/Subheadline.js +12 -3
  37. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  38. package/lib-commonjs/components/Text/useText.js +6 -6
  39. package/lib-commonjs/components/Text/useText.js.map +1 -1
  40. package/lib-commonjs/components/Title1/Title1.js +12 -3
  41. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  42. package/lib-commonjs/components/Title2/Title2.js +12 -3
  43. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  44. package/lib-commonjs/components/Title3/Title3.js +12 -3
  45. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  46. package/package.json +8 -8
  47. package/lib/Body.d.ts +0 -1
  48. package/lib/Caption.d.ts +0 -1
  49. package/lib/Display.d.ts +0 -1
  50. package/lib/Headline.d.ts +0 -1
  51. package/lib/LargeTitle.d.ts +0 -1
  52. package/lib/Subheadline.d.ts +0 -1
  53. package/lib/Text.d.ts +0 -1
  54. package/lib/Title1.d.ts +0 -1
  55. package/lib/Title2.d.ts +0 -1
  56. package/lib/Title3.d.ts +0 -1
  57. package/lib/components/Body/Body.d.ts +0 -13
  58. package/lib/components/Body/index.d.ts +0 -1
  59. package/lib/components/Caption/Caption.d.ts +0 -13
  60. package/lib/components/Caption/index.d.ts +0 -1
  61. package/lib/components/Display/Display.d.ts +0 -13
  62. package/lib/components/Display/index.d.ts +0 -1
  63. package/lib/components/Headline/Headline.d.ts +0 -13
  64. package/lib/components/Headline/index.d.ts +0 -1
  65. package/lib/components/LargeTitle/LargeTitle.d.ts +0 -13
  66. package/lib/components/LargeTitle/index.d.ts +0 -1
  67. package/lib/components/Subheadline/Subheadline.d.ts +0 -13
  68. package/lib/components/Subheadline/index.d.ts +0 -1
  69. package/lib/components/Text/Text.d.ts +0 -6
  70. package/lib/components/Text/Text.types.d.ts +0 -78
  71. package/lib/components/Text/index.d.ts +0 -5
  72. package/lib/components/Text/renderText.d.ts +0 -5
  73. package/lib/components/Text/useText.d.ts +0 -12
  74. package/lib/components/Text/useTextStyles.d.ts +0 -11
  75. package/lib/components/Title1/Title1.d.ts +0 -13
  76. package/lib/components/Title1/index.d.ts +0 -1
  77. package/lib/components/Title2/Title2.d.ts +0 -13
  78. package/lib/components/Title2/index.d.ts +0 -1
  79. package/lib/components/Title3/Title3.d.ts +0 -13
  80. package/lib/components/Title3/index.d.ts +0 -1
  81. package/lib/components/wrapper.d.ts +0 -8
  82. package/lib/index.d.ts +0 -11
  83. package/lib/typographyStyles/index.d.ts +0 -2
  84. package/lib/typographyStyles/index.js +0 -3
  85. package/lib/typographyStyles/index.js.map +0 -1
  86. package/lib/typographyStyles/typographyStyles.d.ts +0 -13
  87. package/lib/typographyStyles/typographyStyles.js +0 -60
  88. package/lib/typographyStyles/typographyStyles.js.map +0 -1
  89. package/lib-commonjs/Body.d.ts +0 -1
  90. package/lib-commonjs/Caption.d.ts +0 -1
  91. package/lib-commonjs/Display.d.ts +0 -1
  92. package/lib-commonjs/Headline.d.ts +0 -1
  93. package/lib-commonjs/LargeTitle.d.ts +0 -1
  94. package/lib-commonjs/Subheadline.d.ts +0 -1
  95. package/lib-commonjs/Text.d.ts +0 -1
  96. package/lib-commonjs/Title1.d.ts +0 -1
  97. package/lib-commonjs/Title2.d.ts +0 -1
  98. package/lib-commonjs/Title3.d.ts +0 -1
  99. package/lib-commonjs/components/Body/Body.d.ts +0 -13
  100. package/lib-commonjs/components/Body/index.d.ts +0 -1
  101. package/lib-commonjs/components/Caption/Caption.d.ts +0 -13
  102. package/lib-commonjs/components/Caption/index.d.ts +0 -1
  103. package/lib-commonjs/components/Display/Display.d.ts +0 -13
  104. package/lib-commonjs/components/Display/index.d.ts +0 -1
  105. package/lib-commonjs/components/Headline/Headline.d.ts +0 -13
  106. package/lib-commonjs/components/Headline/index.d.ts +0 -1
  107. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +0 -13
  108. package/lib-commonjs/components/LargeTitle/index.d.ts +0 -1
  109. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +0 -13
  110. package/lib-commonjs/components/Subheadline/index.d.ts +0 -1
  111. package/lib-commonjs/components/Text/Text.d.ts +0 -6
  112. package/lib-commonjs/components/Text/Text.types.d.ts +0 -78
  113. package/lib-commonjs/components/Text/index.d.ts +0 -5
  114. package/lib-commonjs/components/Text/renderText.d.ts +0 -5
  115. package/lib-commonjs/components/Text/useText.d.ts +0 -12
  116. package/lib-commonjs/components/Text/useTextStyles.d.ts +0 -11
  117. package/lib-commonjs/components/Title1/Title1.d.ts +0 -13
  118. package/lib-commonjs/components/Title1/index.d.ts +0 -1
  119. package/lib-commonjs/components/Title2/Title2.d.ts +0 -13
  120. package/lib-commonjs/components/Title2/index.d.ts +0 -1
  121. package/lib-commonjs/components/Title3/Title3.d.ts +0 -13
  122. package/lib-commonjs/components/Title3/index.d.ts +0 -1
  123. package/lib-commonjs/components/wrapper.d.ts +0 -8
  124. package/lib-commonjs/index.d.ts +0 -11
  125. package/lib-commonjs/typographyStyles/index.d.ts +0 -2
  126. package/lib-commonjs/typographyStyles/index.js +0 -11
  127. package/lib-commonjs/typographyStyles/index.js.map +0 -1
  128. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +0 -13
  129. package/lib-commonjs/typographyStyles/typographyStyles.js +0 -68
  130. package/lib-commonjs/typographyStyles/typographyStyles.js.map +0 -1
@@ -1 +1 @@
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;AAIA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AACA,OAAA,CAAA,iBAAA,GAA+C;AAC1D,EAAA,IAAI,EAAE;AADoD,CAA/C;AAIb;;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,iBAAA,CAAkB,IAF2C;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';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `displayClassNames.root` instead.\n */\nexport const displayClassName = 'fui-Display';\nexport const displayClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Display',\n};\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: displayClassNames.root,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Display/Display.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AACA,OAAA,CAAA,iBAAA,GAA+C;AAC1D,EAAA,IAAI,EAAE;AADoD,CAA/C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA+C,SAAA,CAAA,aAAA,CAAc;AACxE,EAAA,SADwE;AAExE,EAAA,SAAS,EAAE,OAAA,CAAA,iBAAA,CAAkB,IAF2C;AAGxE,EAAA,WAAW,EAAE;AAH2D,CAAd,CAA/C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `displayClassNames.root` instead.\n */\nexport const displayClassName = 'fui-Display';\nexport const displayClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Display',\n};\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: displayClassNames.root,\n displayName: 'Display',\n});\n"],"sourceRoot":"../src/"}
@@ -7,9 +7,9 @@ exports.Headline = exports.headlineClassNames = exports.headlineClassName = void
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
-
12
10
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
13
  /**
14
14
  * @deprecated Use `headlineClassNames.root` instead.
15
15
  */
@@ -23,7 +23,16 @@ exports.headlineClassNames = {
23
23
  * Styles for the root slot
24
24
  */
25
25
 
26
- const useStyles = /*#__PURE__*/react_1.__styles({}, {});
26
+ const useStyles = /*#__PURE__*/react_1.__styles({
27
+ "root": {
28
+ "Bahqtrf": "fk6fouc",
29
+ "Be2twd7": "f1pp30po",
30
+ "Bhrd7zp": "fl43uef",
31
+ "Bg96gwp": "f106mvju"
32
+ }
33
+ }, {
34
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f106mvju{line-height:var(--lineHeightBase500);}"]
35
+ });
27
36
  /**
28
37
  * Text wrapper component for the Headline typography variant
29
38
  */
@@ -1 +1 @@
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;AAIA;;AAEG;;;AACU,OAAA,CAAA,iBAAA,GAAoB,cAApB;AACA,OAAA,CAAA,kBAAA,GAAgD;AAC3D,EAAA,IAAI,EAAE;AADqD,CAAhD;AAIb;;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,kBAAA,CAAmB,IAF2C;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';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `headlineClassNames.root` instead.\n */\nexport const headlineClassName = 'fui-Headline';\nexport const headlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Headline',\n};\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: headlineClassNames.root,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Headline/Headline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,iBAAA,GAAoB,cAApB;AACA,OAAA,CAAA,kBAAA,GAAgD;AAC3D,EAAA,IAAI,EAAE;AADqD,CAAhD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAAgD,SAAA,CAAA,aAAA,CAAc;AACzE,EAAA,SADyE;AAEzE,EAAA,SAAS,EAAE,OAAA,CAAA,kBAAA,CAAmB,IAF2C;AAGzE,EAAA,WAAW,EAAE;AAH4D,CAAd,CAAhD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `headlineClassNames.root` instead.\n */\nexport const headlineClassName = 'fui-Headline';\nexport const headlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Headline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subtitle1,\n});\n\n/**\n * Text wrapper component for the Headline typography variant\n */\nexport const Headline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: headlineClassNames.root,\n displayName: 'Headline',\n});\n"],"sourceRoot":"../src/"}
@@ -7,9 +7,9 @@ exports.LargeTitle = exports.largeTitleClassNames = exports.largeTitleClassName
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
-
12
10
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
13
  /**
14
14
  * @deprecated Use `largeTitleClassNames.root` instead.
15
15
  */
@@ -23,7 +23,16 @@ exports.largeTitleClassNames = {
23
23
  * Styles for the root slot
24
24
  */
25
25
 
26
- const useStyles = /*#__PURE__*/react_1.__styles({}, {});
26
+ const useStyles = /*#__PURE__*/react_1.__styles({
27
+ "root": {
28
+ "Bahqtrf": "fk6fouc",
29
+ "Be2twd7": "f15afnhw",
30
+ "Bhrd7zp": "fl43uef",
31
+ "Bg96gwp": "fr3w3wp"
32
+ }
33
+ }, {
34
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}"]
35
+ });
27
36
  /**
28
37
  * Text wrapper component for the Large Title typography variant
29
38
  */
@@ -1 +1 @@
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;AAIA;;AAEG;;;AACU,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;AACA,OAAA,CAAA,oBAAA,GAAkD;AAC7D,EAAA,IAAI,EAAE;AADuD,CAAlD;AAIb;;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,oBAAA,CAAqB,IAF2C;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';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `largeTitleClassNames.root` instead.\n */\nexport const largeTitleClassName = 'fui-LargeTitle';\nexport const largeTitleClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-LargeTitle',\n};\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: largeTitleClassNames.root,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/LargeTitle/LargeTitle.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,mBAAA,GAAsB,gBAAtB;AACA,OAAA,CAAA,oBAAA,GAAkD;AAC7D,EAAA,IAAI,EAAE;AADuD,CAAlD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,UAAA,gBAAkD,SAAA,CAAA,aAAA,CAAc;AAC3E,EAAA,SAD2E;AAE3E,EAAA,SAAS,EAAE,OAAA,CAAA,oBAAA,CAAqB,IAF2C;AAG3E,EAAA,WAAW,EAAE;AAH8D,CAAd,CAAlD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `largeTitleClassNames.root` instead.\n */\nexport const largeTitleClassName = 'fui-LargeTitle';\nexport const largeTitleClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-LargeTitle',\n};\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: largeTitleClassNames.root,\n displayName: 'LargeTitle',\n});\n"],"sourceRoot":"../src/"}
@@ -7,9 +7,9 @@ exports.Subheadline = exports.subheadlineClassNames = exports.subheadlineClassNa
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
-
12
10
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
13
  /**
14
14
  * @deprecated Use `subheadlineClassNames.root` instead.
15
15
  */
@@ -23,7 +23,16 @@ exports.subheadlineClassNames = {
23
23
  * Styles for the root slot
24
24
  */
25
25
 
26
- const useStyles = /*#__PURE__*/react_1.__styles({}, {});
26
+ const useStyles = /*#__PURE__*/react_1.__styles({
27
+ "root": {
28
+ "Bahqtrf": "fk6fouc",
29
+ "Be2twd7": "fod5ikn",
30
+ "Bhrd7zp": "fl43uef",
31
+ "Bg96gwp": "faaz57k"
32
+ }
33
+ }, {
34
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".faaz57k{line-height:var(--lineHeightBase400);}"]
35
+ });
27
36
  /**
28
37
  * Text wrapper component for the Subheadline typography variant
29
38
  */
@@ -1 +1 @@
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;AAIA;;AAEG;;;AACU,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;AACA,OAAA,CAAA,qBAAA,GAAmD;AAC9D,EAAA,IAAI,EAAE;AADwD,CAAnD;AAIb;;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,qBAAA,CAAsB,IAF2C;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';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `subheadlineClassNames.root` instead.\n */\nexport const subheadlineClassName = 'fui-Subheadline';\nexport const subheadlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Subheadline',\n};\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: subheadlineClassNames.root,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Subheadline/Subheadline.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;AACA,OAAA,CAAA,qBAAA,GAAmD;AAC9D,EAAA,IAAI,EAAE;AADwD,CAAnD;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAmD,SAAA,CAAA,aAAA,CAAc;AAC5E,EAAA,SAD4E;AAE5E,EAAA,SAAS,EAAE,OAAA,CAAA,qBAAA,CAAsB,IAF2C;AAG5E,EAAA,WAAW,EAAE;AAH+D,CAAd,CAAnD","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `subheadlineClassNames.root` instead.\n */\nexport const subheadlineClassName = 'fui-Subheadline';\nexport const subheadlineClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Subheadline',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.subtitle2,\n});\n\n/**\n * Text wrapper component for the Subheadline typography variant\n */\nexport const Subheadline: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: subheadlineClassNames.root,\n displayName: 'Subheadline',\n});\n"],"sourceRoot":"../src/"}
@@ -34,16 +34,16 @@ const useText_unstable = (props, ref) => {
34
34
  } = props;
35
35
  const as = (_a = props.as) !== null && _a !== void 0 ? _a : 'span';
36
36
  const state = {
37
- wrap: wrap !== null && wrap !== void 0 ? wrap : true,
38
- truncate: truncate !== null && truncate !== void 0 ? truncate : false,
37
+ align: align !== null && align !== void 0 ? align : 'start',
39
38
  block: block !== null && block !== void 0 ? block : false,
39
+ font: font !== null && font !== void 0 ? font : 'base',
40
40
  italic: italic !== null && italic !== void 0 ? italic : false,
41
- underline: underline !== null && underline !== void 0 ? underline : false,
42
- strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
43
41
  size: size !== null && size !== void 0 ? size : 300,
44
- font: font !== null && font !== void 0 ? font : 'base',
42
+ strikethrough: strikethrough !== null && strikethrough !== void 0 ? strikethrough : false,
43
+ truncate: truncate !== null && truncate !== void 0 ? truncate : false,
44
+ underline: underline !== null && underline !== void 0 ? underline : false,
45
45
  weight: weight !== null && weight !== void 0 ? weight : 'regular',
46
- align: align !== null && align !== void 0 ? align : 'start',
46
+ wrap: wrap !== null && wrap !== void 0 ? wrap : true,
47
47
  components: {
48
48
  root: 'span'
49
49
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAC3F,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,KAAlB;AAAyB,IAAA,MAAzB;AAAiC,IAAA,SAAjC;AAA4C,IAAA,aAA5C;AAA2D,IAAA,IAA3D;AAAiE,IAAA,IAAjE;AAAuE,IAAA,MAAvE;AAA+E,IAAA;AAA/E,MAAyF,KAA/F;AACA,QAAM,EAAE,GAAG,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IADS;AAEvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAFC;AAGvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAHO;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KALD;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GAPS;AAQvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,MARS;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OAVO;AAYvB,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAZW;AAcvB,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,EAAtB,EAA0B;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAA1B;AAdiB,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM;;AAAM,OAAA,CAAA,gBAAA,GAAgB,gBAAhB","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 wrap: wrap ?? true,\n truncate: truncate ?? false,\n block: block ?? false,\n italic: italic ?? false,\n underline: underline ?? false,\n strikethrough: strikethrough ?? false,\n size: size ?? 300,\n font: font ?? 'base',\n weight: weight ?? 'regular',\n align: align ?? 'start',\n\n components: { root: 'span' },\n\n root: getNativeElementProps(as, {\n ref,\n ...props,\n as,\n }),\n };\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,gBAAgB,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAC3F,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,KAAlB;AAAyB,IAAA,MAAzB;AAAiC,IAAA,SAAjC;AAA4C,IAAA,aAA5C;AAA2D,IAAA,IAA3D;AAAiE,IAAA,IAAjE;AAAuE,IAAA,MAAvE;AAA+E,IAAA;AAA/E,MAAyF,KAA/F;AACA,QAAM,EAAE,GAAG,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,MAAvB;AAEA,QAAM,KAAK,GAAc;AACvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,OADO;AAEvB,IAAA,KAAK,EAAE,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAA,KAAA,GAAS,KAFO;AAGvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,MAHS;AAIvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,KAJK;AAKvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,GALS;AAMvB,IAAA,aAAa,EAAE,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB,KANT;AAOvB,IAAA,QAAQ,EAAE,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAPC;AAQvB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,KARD;AASvB,IAAA,MAAM,EAAE,MAAM,KAAA,IAAN,IAAA,MAAM,KAAA,KAAA,CAAN,GAAA,MAAA,GAAU,SATK;AAUvB,IAAA,IAAI,EAAE,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,IAVS;AAYvB,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE;AAAR,KAZW;AAcvB,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,EAAtB,EAA0B;AAC9B,MAAA,GAD8B;AAE9B,SAAG,KAF2B;AAG9B,MAAA;AAH8B,KAA1B;AAdiB,GAAzB;AAqBA,SAAO,KAAP;AACD,CA1BM;;AAAM,OAAA,CAAA,gBAAA,GAAgB,gBAAhB","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"],"sourceRoot":"../src/"}
@@ -7,9 +7,9 @@ exports.Title1 = exports.title1ClassNames = exports.title1ClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
-
12
10
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
13
  /**
14
14
  * @deprecated Use `title1ClassNames.root` instead.
15
15
  */
@@ -23,7 +23,16 @@ exports.title1ClassNames = {
23
23
  * Styles for the root slot
24
24
  */
25
25
 
26
- const useStyles = /*#__PURE__*/react_1.__styles({}, {});
26
+ const useStyles = /*#__PURE__*/react_1.__styles({
27
+ "root": {
28
+ "Bahqtrf": "fk6fouc",
29
+ "Be2twd7": "fccw675",
30
+ "Bhrd7zp": "fl43uef",
31
+ "Bg96gwp": "f1ebx5kk"
32
+ }
33
+ }, {
34
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}"]
35
+ });
27
36
  /**
28
37
  * Text wrapper component for the Title 1 typography variant
29
38
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title1/Title1.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;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title1ClassNames.root` instead.\n */\nexport const title1ClassName = 'fui-Title1';\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Title1/Title1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title1ClassNames.root` instead.\n */\nexport const title1ClassName = 'fui-Title1';\nexport const title1ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title1',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title1,\n});\n\n/**\n * Text wrapper component for the Title 1 typography variant\n */\nexport const Title1: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title1ClassNames.root,\n displayName: 'Title1',\n});\n"],"sourceRoot":"../src/"}
@@ -7,9 +7,9 @@ exports.Title2 = exports.title2ClassNames = exports.title2ClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
-
12
10
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
13
  /**
14
14
  * @deprecated Use `title2ClassNames.root` instead.
15
15
  */
@@ -23,7 +23,16 @@ exports.title2ClassNames = {
23
23
  * Styles for the root slot
24
24
  */
25
25
 
26
- const useStyles = /*#__PURE__*/react_1.__styles({}, {});
26
+ const useStyles = /*#__PURE__*/react_1.__styles({
27
+ "root": {
28
+ "Bahqtrf": "fk6fouc",
29
+ "Be2twd7": "fojgt09",
30
+ "Bhrd7zp": "fl43uef",
31
+ "Bg96gwp": "fcen8rp"
32
+ }
33
+ }, {
34
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}"]
35
+ });
27
36
  /**
28
37
  * Text wrapper component for the Title 2 typography variant
29
38
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title2/Title2.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;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title2ClassNames.root` instead.\n */\nexport const title2ClassName = 'fui-Title2';\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title2ClassNames.root` instead.\n */\nexport const title2ClassName = 'fui-Title2';\nexport const title2ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title2',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title2,\n});\n\n/**\n * Text wrapper component for the Title 2 typography variant\n */\nexport const Title2: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title2ClassNames.root,\n displayName: 'Title2',\n});\n"],"sourceRoot":"../src/"}
@@ -7,9 +7,9 @@ exports.Title3 = exports.title3ClassNames = exports.title3ClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
-
12
10
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
13
  /**
14
14
  * @deprecated Use `title3ClassNames.root` instead.
15
15
  */
@@ -23,7 +23,16 @@ exports.title3ClassNames = {
23
23
  * Styles for the root slot
24
24
  */
25
25
 
26
- const useStyles = /*#__PURE__*/react_1.__styles({}, {});
26
+ const useStyles = /*#__PURE__*/react_1.__styles({
27
+ "root": {
28
+ "Bahqtrf": "fk6fouc",
29
+ "Be2twd7": "f1x0m3f5",
30
+ "Bhrd7zp": "fl43uef",
31
+ "Bg96gwp": "fb86gi6"
32
+ }
33
+ }, {
34
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fb86gi6{line-height:var(--lineHeightBase600);}"]
35
+ });
27
36
  /**
28
37
  * Text wrapper component for the Title 3 typography variant
29
38
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Title3/Title3.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;AAIA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA,QAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { typographyStyles } from '../../typographyStyles/index';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\n\n/**\n * @deprecated Use `title3ClassNames.root` instead.\n */\nexport const title3ClassName = 'fui-Title3';\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AAGA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,eAAA,GAAkB,YAAlB;AACA,OAAA,CAAA,gBAAA,GAA8C;AACzD,EAAA,IAAI,EAAE;AADmD,CAA9C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAIA;;AAEG;;;AACU,OAAA,CAAA,MAAA,gBAA8C,SAAA,CAAA,aAAA,CAAc;AACvE,EAAA,SADuE;AAEvE,EAAA,SAAS,EAAE,OAAA,CAAA,gBAAA,CAAiB,IAF2C;AAGvE,EAAA,WAAW,EAAE;AAH0D,CAAd,CAA9C","sourcesContent":["import type { FunctionComponent } from 'react';\nimport { makeStyles } from '@griffel/react';\nimport { createWrapper, TextWrapperProps } from '../wrapper';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { TextSlots } from '../Text/Text.types';\nimport { typographyStyles } from '@fluentui/react-theme';\n\n/**\n * @deprecated Use `title3ClassNames.root` instead.\n */\nexport const title3ClassName = 'fui-Title3';\nexport const title3ClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Title3',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: typographyStyles.title3,\n});\n\n/**\n * Text wrapper component for the Title 3 typography variant\n */\nexport const Title3: FunctionComponent<TextWrapperProps> = createWrapper({\n useStyles,\n className: title3ClassNames.root,\n displayName: 'Title3',\n});\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-text",
3
- "version": "9.0.0-rc.6",
3
+ "version": "9.0.0-rc.9",
4
4
  "description": "Text is a typography and styling abstraction component that can be used to ensure the consistency of all text across your application.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "lib/index.d.ts",
7
+ "typings": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -21,20 +21,20 @@
21
21
  "start": "yarn storybook",
22
22
  "test": "jest --passWithNoTests",
23
23
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-text/src && yarn docs",
25
- "storybook": "node ../../scripts/storybook/runner",
24
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/react-text/src && yarn docs",
25
+ "storybook": "node ../../../scripts/storybook/runner",
26
26
  "type-check": "tsc -b tsconfig.json"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
30
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "9.0.0-beta.4",
31
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.6",
32
32
  "@fluentui/scripts": "^1.0.0"
33
33
  },
34
34
  "dependencies": {
35
- "@griffel/react": "1.0.3",
36
- "@fluentui/react-theme": "9.0.0-rc.5",
37
- "@fluentui/react-utilities": "9.0.0-rc.6",
35
+ "@griffel/react": "1.0.5",
36
+ "@fluentui/react-theme": "9.0.0-rc.8",
37
+ "@fluentui/react-utilities": "9.0.0-rc.9",
38
38
  "tslib": "^2.1.0"
39
39
  },
40
40
  "peerDependencies": {
package/lib/Body.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Body/index';
package/lib/Caption.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Caption/index';
package/lib/Display.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Display/index';
package/lib/Headline.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Headline/index';
@@ -1 +0,0 @@
1
- export * from './components/LargeTitle/index';
@@ -1 +0,0 @@
1
- export * from './components/Subheadline/index';
package/lib/Text.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Text/index';
package/lib/Title1.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Title1/index';
package/lib/Title2.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Title2/index';
package/lib/Title3.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Title3/index';
@@ -1,13 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- import { SlotClassNames } from '@fluentui/react-utilities';
4
- import { TextSlots } from '../Text/Text.types';
5
- /**
6
- * @deprecated Use `bodyClassNames.root` instead.
7
- */
8
- export declare const bodyClassName = "fui-Body";
9
- export declare const bodyClassNames: SlotClassNames<TextSlots>;
10
- /**
11
- * Text wrapper component for the Body typography variant
12
- */
13
- export declare const Body: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Body';
@@ -1,13 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- import { SlotClassNames } from '@fluentui/react-utilities';
4
- import { TextSlots } from '../Text/Text.types';
5
- /**
6
- * @deprecated Use `captionClassNames.root` instead.
7
- */
8
- export declare const captionClassName = "fui-Caption";
9
- export declare const captionClassNames: SlotClassNames<TextSlots>;
10
- /**
11
- * Text wrapper component for the Caption typography variant
12
- */
13
- export declare const Caption: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Caption';
@@ -1,13 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- import { SlotClassNames } from '@fluentui/react-utilities';
4
- import { TextSlots } from '../Text/Text.types';
5
- /**
6
- * @deprecated Use `displayClassNames.root` instead.
7
- */
8
- export declare const displayClassName = "fui-Display";
9
- export declare const displayClassNames: SlotClassNames<TextSlots>;
10
- /**
11
- * Text wrapper component for the Display typography variant
12
- */
13
- export declare const Display: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Display';
@@ -1,13 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- import { SlotClassNames } from '@fluentui/react-utilities';
4
- import { TextSlots } from '../Text/Text.types';
5
- /**
6
- * @deprecated Use `headlineClassNames.root` instead.
7
- */
8
- export declare const headlineClassName = "fui-Headline";
9
- export declare const headlineClassNames: SlotClassNames<TextSlots>;
10
- /**
11
- * Text wrapper component for the Headline typography variant
12
- */
13
- export declare const Headline: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Headline';
@@ -1,13 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- import { SlotClassNames } from '@fluentui/react-utilities';
4
- import { TextSlots } from '../Text/Text.types';
5
- /**
6
- * @deprecated Use `largeTitleClassNames.root` instead.
7
- */
8
- export declare const largeTitleClassName = "fui-LargeTitle";
9
- export declare const largeTitleClassNames: SlotClassNames<TextSlots>;
10
- /**
11
- * Text wrapper component for the Large Title typography variant
12
- */
13
- export declare const LargeTitle: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './LargeTitle';
@@ -1,13 +0,0 @@
1
- import type { FunctionComponent } from 'react';
2
- import { TextWrapperProps } from '../wrapper';
3
- import { SlotClassNames } from '@fluentui/react-utilities';
4
- import { TextSlots } from '../Text/Text.types';
5
- /**
6
- * @deprecated Use `subheadlineClassNames.root` instead.
7
- */
8
- export declare const subheadlineClassName = "fui-Subheadline";
9
- export declare const subheadlineClassNames: SlotClassNames<TextSlots>;
10
- /**
11
- * Text wrapper component for the Subheadline typography variant
12
- */
13
- export declare const Subheadline: FunctionComponent<TextWrapperProps>;
@@ -1 +0,0 @@
1
- export * from './Subheadline';
@@ -1,6 +0,0 @@
1
- import type { TextProps } from './Text.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Typography and styling abstraction component used to ensure consistency of text.
5
- */
6
- export declare const Text: ForwardRefComponent<TextProps>;
@@ -1,78 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- /**
3
- * Text slots
4
- */
5
- export declare type TextSlots = {
6
- root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
7
- };
8
- declare type TextCommons = {
9
- /**
10
- * Wraps the text content on white spaces.
11
- *
12
- * @defaultValue true
13
- */
14
- wrap: boolean;
15
- /**
16
- * Truncate overflowing text for block displays.
17
- *
18
- * @defaultValue false
19
- */
20
- truncate: boolean;
21
- /**
22
- * Applies a block display for the content.
23
- *
24
- * @defaultValue false
25
- */
26
- block: boolean;
27
- /**
28
- * Applies the italic font style to the content.
29
- *
30
- * @defaultValue false
31
- */
32
- italic: boolean;
33
- /**
34
- * Applies the underline text decoration to the content.
35
- *
36
- * @defaultValue false
37
- */
38
- underline: boolean;
39
- /**
40
- * Applies the strikethrough text decoration to the content.
41
- *
42
- * @defaultValue false
43
- */
44
- strikethrough: boolean;
45
- /**
46
- * Applies font size and line height based on the theme tokens.
47
- *
48
- * @defaultValue 300
49
- */
50
- size: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
51
- /**
52
- * Applies the font family to the content.
53
- *
54
- * @defaultValue base
55
- */
56
- font: 'base' | 'monospace' | 'numeric';
57
- /**
58
- * Applies font weight to the content.
59
- *
60
- * @defaultValue regular
61
- */
62
- weight: 'regular' | 'medium' | 'semibold';
63
- /**
64
- * Aligns text based on the parent container.
65
- *
66
- * @defaultValue start
67
- */
68
- align: 'start' | 'center' | 'end' | 'justify';
69
- };
70
- /**
71
- * Text Props
72
- */
73
- export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>;
74
- /**
75
- * State used in rendering Text
76
- */
77
- export declare type TextState = ComponentState<TextSlots> & TextCommons;
78
- export {};
@@ -1,5 +0,0 @@
1
- export * from './Text';
2
- export * from './Text.types';
3
- export * from './renderText';
4
- export * from './useText';
5
- export * from './useTextStyles';
@@ -1,5 +0,0 @@
1
- import type { TextState } from './Text.types';
2
- /**
3
- * Render the final JSX of Text
4
- */
5
- export declare const renderText_unstable: (state: TextState) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { TextProps, TextState } from './Text.types';
3
- /**
4
- * Create the state required to render Text.
5
- *
6
- * The returned state can be modified with hooks such as useTextStyles_unstable,
7
- * before being passed to renderText_unstable.
8
- *
9
- * @param props - props from this instance of Text
10
- * @param ref - reference to root HTMLElement of Text
11
- */
12
- export declare const useText_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
@@ -1,11 +0,0 @@
1
- import type { TextSlots, TextState } from './Text.types';
2
- import { SlotClassNames } from '@fluentui/react-utilities';
3
- /**
4
- * @deprecated Use `textClassNames.root` instead.
5
- */
6
- export declare const textClassName = "fui-Text";
7
- export declare const textClassNames: SlotClassNames<TextSlots>;
8
- /**
9
- * Apply styling to the Text slots based on the state
10
- */
11
- export declare const useTextStyles_unstable: (state: TextState) => TextState;