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

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 (70) hide show
  1. package/CHANGELOG.json +108 -1
  2. package/CHANGELOG.md +36 -2
  3. package/dist/react-text.d.ts +51 -0
  4. package/lib/components/Body/Body.d.ts +6 -0
  5. package/lib/components/Body/Body.js +8 -1
  6. package/lib/components/Body/Body.js.map +1 -1
  7. package/lib/components/Caption/Caption.d.ts +6 -0
  8. package/lib/components/Caption/Caption.js +8 -1
  9. package/lib/components/Caption/Caption.js.map +1 -1
  10. package/lib/components/Display/Display.d.ts +6 -0
  11. package/lib/components/Display/Display.js +8 -1
  12. package/lib/components/Display/Display.js.map +1 -1
  13. package/lib/components/Headline/Headline.d.ts +6 -0
  14. package/lib/components/Headline/Headline.js +8 -1
  15. package/lib/components/Headline/Headline.js.map +1 -1
  16. package/lib/components/LargeTitle/LargeTitle.d.ts +6 -0
  17. package/lib/components/LargeTitle/LargeTitle.js +8 -1
  18. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  19. package/lib/components/Subheadline/Subheadline.d.ts +6 -0
  20. package/lib/components/Subheadline/Subheadline.js +8 -1
  21. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  22. package/lib/components/Text/useTextStyles.d.ts +6 -1
  23. package/lib/components/Text/useTextStyles.js +8 -1
  24. package/lib/components/Text/useTextStyles.js.map +1 -1
  25. package/lib/components/Title1/Title1.d.ts +6 -0
  26. package/lib/components/Title1/Title1.js +8 -1
  27. package/lib/components/Title1/Title1.js.map +1 -1
  28. package/lib/components/Title2/Title2.d.ts +6 -0
  29. package/lib/components/Title2/Title2.js +8 -1
  30. package/lib/components/Title2/Title2.js.map +1 -1
  31. package/lib/components/Title3/Title3.d.ts +6 -0
  32. package/lib/components/Title3/Title3.js +8 -1
  33. package/lib/components/Title3/Title3.js.map +1 -1
  34. package/lib/index.d.ts +11 -10
  35. package/lib/index.js +11 -10
  36. package/lib/index.js.map +1 -1
  37. package/lib-commonjs/components/Body/Body.d.ts +6 -0
  38. package/lib-commonjs/components/Body/Body.js +9 -2
  39. package/lib-commonjs/components/Body/Body.js.map +1 -1
  40. package/lib-commonjs/components/Caption/Caption.d.ts +6 -0
  41. package/lib-commonjs/components/Caption/Caption.js +9 -2
  42. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  43. package/lib-commonjs/components/Display/Display.d.ts +6 -0
  44. package/lib-commonjs/components/Display/Display.js +9 -2
  45. package/lib-commonjs/components/Display/Display.js.map +1 -1
  46. package/lib-commonjs/components/Headline/Headline.d.ts +6 -0
  47. package/lib-commonjs/components/Headline/Headline.js +9 -2
  48. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  49. package/lib-commonjs/components/LargeTitle/LargeTitle.d.ts +6 -0
  50. package/lib-commonjs/components/LargeTitle/LargeTitle.js +9 -2
  51. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  52. package/lib-commonjs/components/Subheadline/Subheadline.d.ts +6 -0
  53. package/lib-commonjs/components/Subheadline/Subheadline.js +9 -2
  54. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  55. package/lib-commonjs/components/Text/useTextStyles.d.ts +6 -1
  56. package/lib-commonjs/components/Text/useTextStyles.js +9 -2
  57. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  58. package/lib-commonjs/components/Title1/Title1.d.ts +6 -0
  59. package/lib-commonjs/components/Title1/Title1.js +9 -2
  60. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  61. package/lib-commonjs/components/Title2/Title2.d.ts +6 -0
  62. package/lib-commonjs/components/Title2/Title2.js +9 -2
  63. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  64. package/lib-commonjs/components/Title3/Title3.d.ts +6 -0
  65. package/lib-commonjs/components/Title3/Title3.js +9 -2
  66. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  67. package/lib-commonjs/index.d.ts +11 -10
  68. package/lib-commonjs/index.js +219 -11
  69. package/lib-commonjs/index.js.map +1 -1
  70. package/package.json +13 -15
@@ -3,13 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTextStyles_unstable = exports.textClassName = void 0;
6
+ exports.useTextStyles_unstable = exports.textClassNames = exports.textClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+ /**
12
+ * @deprecated Use `textClassNames.root` instead.
13
+ */
14
+
11
15
 
12
16
  exports.textClassName = 'fui-Text';
17
+ exports.textClassNames = {
18
+ root: 'fui-Text'
19
+ };
13
20
  /**
14
21
  * Styles for the root slot
15
22
  */
@@ -117,7 +124,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({
117
124
 
118
125
  const useTextStyles_unstable = state => {
119
126
  const styles = useStyles();
120
- state.root.className = react_1.mergeClasses(exports.textClassName, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
127
+ state.root.className = react_1.mergeClasses(exports.textClassNames.root, styles.root, state.wrap === false && styles.nowrap, state.truncate && styles.truncate, state.block && styles.block, state.italic && styles.italic, state.underline && styles.underline, state.strikethrough && styles.strikethrough, state.underline && state.strikethrough && styles.strikethroughUnderline, state.size === 100 && styles.base100, state.size === 200 && styles.base200, state.size === 400 && styles.base400, state.size === 500 && styles.base500, state.size === 600 && styles.base600, state.size === 700 && styles.hero700, state.size === 800 && styles.hero800, state.size === 900 && styles.hero900, state.size === 1000 && styles.hero1000, state.font === 'monospace' && styles.monospace, state.font === 'numeric' && styles.numeric, state.weight === 'medium' && styles.weightMedium, state.weight === 'semibold' && styles.weightSemibold, state.align === 'center' && styles.alignCenter, state.align === 'end' && styles.alignEnd, state.align === 'justify' && styles.alignJustify, state.root.className);
121
128
  return state;
122
129
  };
123
130
 
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAGa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6FA;;AAEG;;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AC,IAAN,KAAe,SAAf,IAA4B,MAAM,CAAC,OApBd,EAqBrB,KAAK,CAAC,MAAN,KAAiB,QAAjB,IAA6B,MAAM,CAAC,YArBf,EAsBrB,KAAK,CAAC,MAAN,KAAiB,UAAjB,IAA+B,MAAM,CAAC,cAtBjB,EAuBrB,KAAK,CAAC,KAAN,KAAgB,QAAhB,IAA4B,MAAM,CAAC,WAvBd,EAwBrB,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBX,EAyBrB,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBf,EA0BrB,KAAK,CAAC,IAAN,CAAW,SA1BU,CAAvB;AA6BA,SAAO,KAAP;AACD,CAjCM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextState } from './Text.types';\n\nexport const textClassName = 'fui-Text';\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassName,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,GAAgB,UAAhB;AACA,OAAA,CAAA,cAAA,GAA4C;AACvD,EAAA,IAAI,EAAE;AADiD,CAA5C;AAIb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6FA;;AAEG;;;AACI,MAAM,sBAAsB,GAAI,KAAD,IAAgC;AACpE,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,cAAA,CAAe,IADM,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,IAAN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AAhB,IAA4B,MAAM,CAAC,WAvBd,EAwBrB,KAAK,CAAC,KAAN,KAAgB,KAAhB,IAAyB,MAAM,CAAC,QAxBX,EAyBrB,KAAK,CAAC,KAAN,KAAgB,SAAhB,IAA6B,MAAM,CAAC,YAzBf,EA0BrB,KAAK,CAAC,IAAN,CAAW,SA1BU,CAAvB;AA6BA,SAAO,KAAP;AACD,CAjCM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { TextSlots, TextState } from './Text.types';\nimport { SlotClassNames } from '@fluentui/react-utilities';\n\n/**\n * @deprecated Use `textClassNames.root` instead.\n */\nexport const textClassName = 'fui-Text';\nexport const textClassNames: SlotClassNames<TextSlots> = {\n root: 'fui-Text',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n textAlign: 'start',\n display: 'inline',\n whiteSpace: 'normal',\n ...shorthands.overflow('visible'),\n textOverflow: 'clip',\n },\n nowrap: {\n whiteSpace: 'nowrap',\n ...shorthands.overflow('hidden'),\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n block: {\n display: 'block',\n },\n italic: {\n fontStyle: 'italic',\n },\n underline: {\n textDecorationLine: 'underline',\n },\n strikethrough: {\n textDecorationLine: 'line-through',\n },\n strikethroughUnderline: {\n textDecorationLine: 'line-through underline',\n },\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n hero800: {\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n },\n hero900: {\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n },\n hero1000: {\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n },\n monospace: {\n fontFamily: tokens.fontFamilyMonospace,\n },\n numeric: {\n fontFamily: tokens.fontFamilyNumeric,\n },\n weightMedium: {\n fontWeight: tokens.fontWeightMedium,\n },\n weightSemibold: {\n fontWeight: tokens.fontWeightSemibold,\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n\n/**\n * Apply styling to the Text slots based on the state\n */\nexport const useTextStyles_unstable = (state: TextState): TextState => {\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n textClassNames.root,\n styles.root,\n state.wrap === false && styles.nowrap,\n state.truncate && styles.truncate,\n state.block && styles.block,\n state.italic && styles.italic,\n state.underline && styles.underline,\n state.strikethrough && styles.strikethrough,\n state.underline && state.strikethrough && styles.strikethroughUnderline,\n state.size === 100 && styles.base100,\n state.size === 200 && styles.base200,\n state.size === 400 && styles.base400,\n state.size === 500 && styles.base500,\n state.size === 600 && styles.base600,\n state.size === 700 && styles.hero700,\n state.size === 800 && styles.hero800,\n state.size === 900 && styles.hero900,\n state.size === 1000 && styles.hero1000,\n state.font === 'monospace' && styles.monospace,\n state.font === 'numeric' && styles.numeric,\n state.weight === 'medium' && styles.weightMedium,\n state.weight === 'semibold' && styles.weightSemibold,\n state.align === 'center' && styles.alignCenter,\n state.align === 'end' && styles.alignEnd,\n state.align === 'justify' && styles.alignJustify,\n state.root.className,\n );\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `title1ClassNames.root` instead.
7
+ */
3
8
  export declare const title1ClassName = "fui-Title1";
9
+ export declare const title1ClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Title 1 typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Title1 = exports.title1ClassName = void 0;
6
+ exports.Title1 = exports.title1ClassNames = exports.title1ClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `title1ClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.title1ClassName = 'fui-Title1';
19
+ exports.title1ClassNames = {
20
+ root: 'fui-Title1'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Title1 = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.title1ClassName,
34
+ className: exports.title1ClassNames.root,
28
35
  displayName: 'Title1'
29
36
  });
30
37
  //# sourceMappingURL=Title1.js.map
@@ -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;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;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,eAF4D;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';\n\nexport const title1ClassName = 'fui-Title1';\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: title1ClassName,\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,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,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `title2ClassNames.root` instead.
7
+ */
3
8
  export declare const title2ClassName = "fui-Title2";
9
+ export declare const title2ClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Title 2 typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Title2 = exports.title2ClassName = void 0;
6
+ exports.Title2 = exports.title2ClassNames = exports.title2ClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `title2ClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.title2ClassName = 'fui-Title2';
19
+ exports.title2ClassNames = {
20
+ root: 'fui-Title2'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Title2 = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.title2ClassName,
34
+ className: exports.title2ClassNames.root,
28
35
  displayName: 'Title2'
29
36
  });
30
37
  //# sourceMappingURL=Title2.js.map
@@ -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;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;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,eAF4D;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';\n\nexport const title2ClassName = 'fui-Title2';\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: title2ClassName,\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,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,6 +1,12 @@
1
1
  import type { FunctionComponent } from 'react';
2
2
  import { TextWrapperProps } from '../wrapper';
3
+ import { SlotClassNames } from '@fluentui/react-utilities';
4
+ import { TextSlots } from '../Text/Text.types';
5
+ /**
6
+ * @deprecated Use `title3ClassNames.root` instead.
7
+ */
3
8
  export declare const title3ClassName = "fui-Title3";
9
+ export declare const title3ClassNames: SlotClassNames<TextSlots>;
4
10
  /**
5
11
  * Text wrapper component for the Title 3 typography variant
6
12
  */
@@ -3,15 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Title3 = exports.title3ClassName = void 0;
6
+ exports.Title3 = exports.title3ClassNames = exports.title3ClassName = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
12
12
  const wrapper_1 = /*#__PURE__*/require("../wrapper");
13
+ /**
14
+ * @deprecated Use `title3ClassNames.root` instead.
15
+ */
16
+
13
17
 
14
18
  exports.title3ClassName = 'fui-Title3';
19
+ exports.title3ClassNames = {
20
+ root: 'fui-Title3'
21
+ };
15
22
  /**
16
23
  * Styles for the root slot
17
24
  */
@@ -24,7 +31,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
24
31
 
25
32
  exports.Title3 = /*#__PURE__*/wrapper_1.createWrapper({
26
33
  useStyles,
27
- className: exports.title3ClassName,
34
+ className: exports.title3ClassNames.root,
28
35
  displayName: 'Title3'
29
36
  });
30
37
  //# sourceMappingURL=Title3.js.map
@@ -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;;AAEa,OAAA,CAAA,eAAA,GAAkB,YAAlB;AAEb;;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,eAF4D;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';\n\nexport const title3ClassName = 'fui-Title3';\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: title3ClassName,\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,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,10 +1,11 @@
1
- export * from './Text';
2
- export * from './Display';
3
- export * from './LargeTitle';
4
- export * from './Title1';
5
- export * from './Title2';
6
- export * from './Title3';
7
- export * from './Headline';
8
- export * from './Subheadline';
9
- export * from './Body';
10
- export * from './Caption';
1
+ export { Text, renderText_unstable, textClassName, textClassNames, useTextStyles_unstable, useText_unstable, } from './Text';
2
+ export type { TextProps, TextSlots, TextState } from './Text';
3
+ export { Display, displayClassName, displayClassNames } from './Display';
4
+ export { LargeTitle, largeTitleClassName, largeTitleClassNames } from './LargeTitle';
5
+ export { Title1, title1ClassName, title1ClassNames } from './Title1';
6
+ export { Title2, title2ClassName, title2ClassNames } from './Title2';
7
+ export { Title3, title3ClassName, title3ClassNames } from './Title3';
8
+ export { Headline, headlineClassName, headlineClassNames } from './Headline';
9
+ export { Subheadline, subheadlineClassName, subheadlineClassNames } from './Subheadline';
10
+ export { Body, bodyClassName, bodyClassNames } from './Body';
11
+ export { Caption, captionClassName, captionClassNames } from './Caption';
@@ -3,26 +3,234 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.captionClassNames = exports.captionClassName = exports.Caption = exports.bodyClassNames = exports.bodyClassName = exports.Body = exports.subheadlineClassNames = exports.subheadlineClassName = exports.Subheadline = exports.headlineClassNames = exports.headlineClassName = exports.Headline = exports.title3ClassNames = exports.title3ClassName = exports.Title3 = exports.title2ClassNames = exports.title2ClassName = exports.Title2 = exports.title1ClassNames = exports.title1ClassName = exports.Title1 = exports.largeTitleClassNames = exports.largeTitleClassName = exports.LargeTitle = exports.displayClassNames = exports.displayClassName = exports.Display = exports.useText_unstable = exports.useTextStyles_unstable = exports.textClassNames = exports.textClassName = exports.renderText_unstable = exports.Text = void 0;
7
+ /* eslint-disable deprecation/deprecation -- https://github.com/microsoft/fluentui/pull/21960#issuecomment-1068991851 */
6
8
 
7
- const tslib_1 = /*#__PURE__*/require("tslib");
9
+ var Text_1 = /*#__PURE__*/require("./Text");
8
10
 
9
- tslib_1.__exportStar(require("./Text"), exports);
11
+ Object.defineProperty(exports, "Text", {
12
+ enumerable: true,
13
+ get: function () {
14
+ return Text_1.Text;
15
+ }
16
+ });
17
+ Object.defineProperty(exports, "renderText_unstable", {
18
+ enumerable: true,
19
+ get: function () {
20
+ return Text_1.renderText_unstable;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "textClassName", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return Text_1.textClassName;
27
+ }
28
+ });
29
+ Object.defineProperty(exports, "textClassNames", {
30
+ enumerable: true,
31
+ get: function () {
32
+ return Text_1.textClassNames;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, "useTextStyles_unstable", {
36
+ enumerable: true,
37
+ get: function () {
38
+ return Text_1.useTextStyles_unstable;
39
+ }
40
+ });
41
+ Object.defineProperty(exports, "useText_unstable", {
42
+ enumerable: true,
43
+ get: function () {
44
+ return Text_1.useText_unstable;
45
+ }
46
+ });
47
+
48
+ var Display_1 = /*#__PURE__*/require("./Display");
49
+
50
+ Object.defineProperty(exports, "Display", {
51
+ enumerable: true,
52
+ get: function () {
53
+ return Display_1.Display;
54
+ }
55
+ });
56
+ Object.defineProperty(exports, "displayClassName", {
57
+ enumerable: true,
58
+ get: function () {
59
+ return Display_1.displayClassName;
60
+ }
61
+ });
62
+ Object.defineProperty(exports, "displayClassNames", {
63
+ enumerable: true,
64
+ get: function () {
65
+ return Display_1.displayClassNames;
66
+ }
67
+ });
68
+
69
+ var LargeTitle_1 = /*#__PURE__*/require("./LargeTitle");
70
+
71
+ Object.defineProperty(exports, "LargeTitle", {
72
+ enumerable: true,
73
+ get: function () {
74
+ return LargeTitle_1.LargeTitle;
75
+ }
76
+ });
77
+ Object.defineProperty(exports, "largeTitleClassName", {
78
+ enumerable: true,
79
+ get: function () {
80
+ return LargeTitle_1.largeTitleClassName;
81
+ }
82
+ });
83
+ Object.defineProperty(exports, "largeTitleClassNames", {
84
+ enumerable: true,
85
+ get: function () {
86
+ return LargeTitle_1.largeTitleClassNames;
87
+ }
88
+ });
89
+
90
+ var Title1_1 = /*#__PURE__*/require("./Title1");
91
+
92
+ Object.defineProperty(exports, "Title1", {
93
+ enumerable: true,
94
+ get: function () {
95
+ return Title1_1.Title1;
96
+ }
97
+ });
98
+ Object.defineProperty(exports, "title1ClassName", {
99
+ enumerable: true,
100
+ get: function () {
101
+ return Title1_1.title1ClassName;
102
+ }
103
+ });
104
+ Object.defineProperty(exports, "title1ClassNames", {
105
+ enumerable: true,
106
+ get: function () {
107
+ return Title1_1.title1ClassNames;
108
+ }
109
+ });
10
110
 
11
- tslib_1.__exportStar(require("./Display"), exports);
111
+ var Title2_1 = /*#__PURE__*/require("./Title2");
12
112
 
13
- tslib_1.__exportStar(require("./LargeTitle"), exports);
113
+ Object.defineProperty(exports, "Title2", {
114
+ enumerable: true,
115
+ get: function () {
116
+ return Title2_1.Title2;
117
+ }
118
+ });
119
+ Object.defineProperty(exports, "title2ClassName", {
120
+ enumerable: true,
121
+ get: function () {
122
+ return Title2_1.title2ClassName;
123
+ }
124
+ });
125
+ Object.defineProperty(exports, "title2ClassNames", {
126
+ enumerable: true,
127
+ get: function () {
128
+ return Title2_1.title2ClassNames;
129
+ }
130
+ });
14
131
 
15
- tslib_1.__exportStar(require("./Title1"), exports);
132
+ var Title3_1 = /*#__PURE__*/require("./Title3");
16
133
 
17
- tslib_1.__exportStar(require("./Title2"), exports);
134
+ Object.defineProperty(exports, "Title3", {
135
+ enumerable: true,
136
+ get: function () {
137
+ return Title3_1.Title3;
138
+ }
139
+ });
140
+ Object.defineProperty(exports, "title3ClassName", {
141
+ enumerable: true,
142
+ get: function () {
143
+ return Title3_1.title3ClassName;
144
+ }
145
+ });
146
+ Object.defineProperty(exports, "title3ClassNames", {
147
+ enumerable: true,
148
+ get: function () {
149
+ return Title3_1.title3ClassNames;
150
+ }
151
+ });
18
152
 
19
- tslib_1.__exportStar(require("./Title3"), exports);
153
+ var Headline_1 = /*#__PURE__*/require("./Headline");
20
154
 
21
- tslib_1.__exportStar(require("./Headline"), exports);
155
+ Object.defineProperty(exports, "Headline", {
156
+ enumerable: true,
157
+ get: function () {
158
+ return Headline_1.Headline;
159
+ }
160
+ });
161
+ Object.defineProperty(exports, "headlineClassName", {
162
+ enumerable: true,
163
+ get: function () {
164
+ return Headline_1.headlineClassName;
165
+ }
166
+ });
167
+ Object.defineProperty(exports, "headlineClassNames", {
168
+ enumerable: true,
169
+ get: function () {
170
+ return Headline_1.headlineClassNames;
171
+ }
172
+ });
22
173
 
23
- tslib_1.__exportStar(require("./Subheadline"), exports);
174
+ var Subheadline_1 = /*#__PURE__*/require("./Subheadline");
24
175
 
25
- tslib_1.__exportStar(require("./Body"), exports);
176
+ Object.defineProperty(exports, "Subheadline", {
177
+ enumerable: true,
178
+ get: function () {
179
+ return Subheadline_1.Subheadline;
180
+ }
181
+ });
182
+ Object.defineProperty(exports, "subheadlineClassName", {
183
+ enumerable: true,
184
+ get: function () {
185
+ return Subheadline_1.subheadlineClassName;
186
+ }
187
+ });
188
+ Object.defineProperty(exports, "subheadlineClassNames", {
189
+ enumerable: true,
190
+ get: function () {
191
+ return Subheadline_1.subheadlineClassNames;
192
+ }
193
+ });
194
+
195
+ var Body_1 = /*#__PURE__*/require("./Body");
196
+
197
+ Object.defineProperty(exports, "Body", {
198
+ enumerable: true,
199
+ get: function () {
200
+ return Body_1.Body;
201
+ }
202
+ });
203
+ Object.defineProperty(exports, "bodyClassName", {
204
+ enumerable: true,
205
+ get: function () {
206
+ return Body_1.bodyClassName;
207
+ }
208
+ });
209
+ Object.defineProperty(exports, "bodyClassNames", {
210
+ enumerable: true,
211
+ get: function () {
212
+ return Body_1.bodyClassNames;
213
+ }
214
+ });
215
+
216
+ var Caption_1 = /*#__PURE__*/require("./Caption");
26
217
 
27
- tslib_1.__exportStar(require("./Caption"), exports);
218
+ Object.defineProperty(exports, "Caption", {
219
+ enumerable: true,
220
+ get: function () {
221
+ return Caption_1.Caption;
222
+ }
223
+ });
224
+ Object.defineProperty(exports, "captionClassName", {
225
+ enumerable: true,
226
+ get: function () {
227
+ return Caption_1.captionClassName;
228
+ }
229
+ });
230
+ Object.defineProperty(exports, "captionClassNames", {
231
+ enumerable: true,
232
+ get: function () {
233
+ return Caption_1.captionClassNames;
234
+ }
235
+ });
28
236
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Text';\nexport * from './Display';\nexport * from './LargeTitle';\nexport * from './Title1';\nexport * from './Title2';\nexport * from './Title3';\nexport * from './Headline';\nexport * from './Subheadline';\nexport * from './Body';\nexport * from './Caption';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AACA,IA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AA,CAAA,cAAA,CAAA,OAAA,EAAA,MAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,IAAA;AAAI;AAAJ,CAAA;AAAM,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,aAAA;AAAa;AAAb,CAAA;AAAe,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,gBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,MAAA,CAAA,cAAA;AAAc;AAAd,CAAA;;AAC9B,IAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,SAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,SAAA,CAAA,OAAA;AAAO;AAAP,CAAA;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,kBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,SAAA,CAAA,gBAAA;AAAgB;AAAhB,CAAA;AAAkB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,SAAA,CAAA,iBAAA;AAAiB;AAAjB,CAAA","sourcesContent":["/* eslint-disable deprecation/deprecation -- https://github.com/microsoft/fluentui/pull/21960#issuecomment-1068991851 */\nexport {\n Text,\n renderText_unstable,\n textClassName,\n textClassNames,\n useTextStyles_unstable,\n useText_unstable,\n} from './Text';\nexport type { TextProps, TextSlots, TextState } from './Text';\nexport { Display, displayClassName, displayClassNames } from './Display';\nexport { LargeTitle, largeTitleClassName, largeTitleClassNames } from './LargeTitle';\nexport { Title1, title1ClassName, title1ClassNames } from './Title1';\nexport { Title2, title2ClassName, title2ClassNames } from './Title2';\nexport { Title3, title3ClassName, title3ClassNames } from './Title3';\nexport { Headline, headlineClassName, headlineClassNames } from './Headline';\nexport { Subheadline, subheadlineClassName, subheadlineClassNames } from './Subheadline';\nexport { Body, bodyClassName, bodyClassNames } from './Body';\nexport { Caption, captionClassName, captionClassNames } from './Caption';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-text",
3
- "version": "9.0.0-rc.3",
3
+ "version": "9.0.0-rc.6",
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",
@@ -28,22 +28,13 @@
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
30
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "9.0.0-beta.3",
32
- "@fluentui/scripts": "^1.0.0",
33
- "@types/enzyme": "3.10.3",
34
- "@types/enzyme-adapter-react-16": "1.0.3",
35
- "@types/react": "16.9.42",
36
- "@types/react-dom": "16.9.10",
37
- "@types/react-test-renderer": "^16.0.0",
38
- "enzyme": "~3.10.0",
39
- "enzyme-adapter-react-16": "^1.15.0",
40
- "react": "16.8.6",
41
- "react-dom": "16.8.6",
42
- "react-test-renderer": "^16.3.0"
31
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.4",
32
+ "@fluentui/scripts": "^1.0.0"
43
33
  },
44
34
  "dependencies": {
45
- "@griffel/react": "1.0.0",
46
- "@fluentui/react-utilities": "9.0.0-rc.3",
35
+ "@griffel/react": "1.0.3",
36
+ "@fluentui/react-theme": "9.0.0-rc.5",
37
+ "@fluentui/react-utilities": "9.0.0-rc.6",
47
38
  "tslib": "^2.1.0"
48
39
  },
49
40
  "peerDependencies": {
@@ -58,5 +49,12 @@
58
49
  "minor",
59
50
  "patch"
60
51
  ]
52
+ },
53
+ "exports": {
54
+ ".": {
55
+ "types": "./lib/index.d.ts",
56
+ "import": "./lib/index.js",
57
+ "require": "./lib-commonjs/index.js"
58
+ }
61
59
  }
62
60
  }