@fluentui/react-text 0.0.0-nightly9edaf68d4420211116.1 → 0.0.0-nightly9fe22334a320220214.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.json +136 -14
  2. package/CHANGELOG.md +41 -10
  3. package/MIGRATION.md +153 -103
  4. package/dist/react-text.d.ts +8 -8
  5. package/lib/components/Body/Body.js +1 -1
  6. package/lib/components/Body/Body.js.map +1 -1
  7. package/lib/components/Caption/Caption.js +1 -1
  8. package/lib/components/Caption/Caption.js.map +1 -1
  9. package/lib/components/Display/Display.js +1 -1
  10. package/lib/components/Display/Display.js.map +1 -1
  11. package/lib/components/Headline/Headline.js +1 -1
  12. package/lib/components/Headline/Headline.js.map +1 -1
  13. package/lib/components/LargeTitle/LargeTitle.js +1 -1
  14. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  15. package/lib/components/Subheadline/Subheadline.js +1 -1
  16. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  17. package/lib/components/Text/Text.js +6 -6
  18. package/lib/components/Text/Text.js.map +1 -1
  19. package/lib/components/Text/Text.types.d.ts +4 -3
  20. package/lib/components/Text/renderText.d.ts +1 -1
  21. package/lib/components/Text/renderText.js +3 -2
  22. package/lib/components/Text/renderText.js.map +1 -1
  23. package/lib/components/Text/useText.d.ts +3 -3
  24. package/lib/components/Text/useText.js +3 -3
  25. package/lib/components/Text/useText.js.map +1 -1
  26. package/lib/components/Text/useTextStyles.d.ts +1 -1
  27. package/lib/components/Text/useTextStyles.js +11 -8
  28. package/lib/components/Text/useTextStyles.js.map +1 -1
  29. package/lib/components/Title1/Title1.js +1 -1
  30. package/lib/components/Title1/Title1.js.map +1 -1
  31. package/lib/components/Title2/Title2.js +1 -1
  32. package/lib/components/Title2/Title2.js.map +1 -1
  33. package/lib/components/Title3/Title3.js +1 -1
  34. package/lib/components/Title3/Title3.js.map +1 -1
  35. package/lib/components/wrapper.js +5 -5
  36. package/lib/components/wrapper.js.map +1 -1
  37. package/lib/typographyStyles/typographyStyles.d.ts +10 -11
  38. package/lib/typographyStyles/typographyStyles.js +56 -54
  39. package/lib/typographyStyles/typographyStyles.js.map +1 -1
  40. package/lib-commonjs/components/Body/Body.js +2 -4
  41. package/lib-commonjs/components/Body/Body.js.map +1 -1
  42. package/lib-commonjs/components/Caption/Caption.js +2 -4
  43. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  44. package/lib-commonjs/components/Display/Display.js +2 -4
  45. package/lib-commonjs/components/Display/Display.js.map +1 -1
  46. package/lib-commonjs/components/Headline/Headline.js +2 -4
  47. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  48. package/lib-commonjs/components/LargeTitle/LargeTitle.js +2 -4
  49. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  50. package/lib-commonjs/components/Subheadline/Subheadline.js +2 -4
  51. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  52. package/lib-commonjs/components/Text/Text.js +3 -3
  53. package/lib-commonjs/components/Text/Text.js.map +1 -1
  54. package/lib-commonjs/components/Text/Text.types.d.ts +4 -3
  55. package/lib-commonjs/components/Text/renderText.d.ts +1 -1
  56. package/lib-commonjs/components/Text/renderText.js +5 -4
  57. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  58. package/lib-commonjs/components/Text/useText.d.ts +3 -3
  59. package/lib-commonjs/components/Text/useText.js +5 -5
  60. package/lib-commonjs/components/Text/useText.js.map +1 -1
  61. package/lib-commonjs/components/Text/useTextStyles.d.ts +1 -1
  62. package/lib-commonjs/components/Text/useTextStyles.js +16 -12
  63. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  64. package/lib-commonjs/components/Title1/Title1.js +2 -4
  65. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  66. package/lib-commonjs/components/Title2/Title2.js +2 -4
  67. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  68. package/lib-commonjs/components/Title3/Title3.js +2 -4
  69. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  70. package/lib-commonjs/components/wrapper.js +5 -5
  71. package/lib-commonjs/components/wrapper.js.map +1 -1
  72. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +10 -11
  73. package/lib-commonjs/typographyStyles/typographyStyles.js +56 -79
  74. package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
  75. package/package.json +8 -9
  76. package/lib/common/isConformant.d.ts +0 -4
  77. package/lib/common/isConformant.js +0 -16
  78. package/lib/common/isConformant.js.map +0 -1
  79. package/lib-commonjs/common/isConformant.d.ts +0 -4
  80. package/lib-commonjs/common/isConformant.js +0 -27
  81. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -18,9 +18,9 @@ const useTextStyles_1 = /*#__PURE__*/require("./useTextStyles");
18
18
 
19
19
 
20
20
  exports.Text = /*#__PURE__*/React.forwardRef((props, ref) => {
21
- const state = useText_1.useText(props, ref);
22
- useTextStyles_1.useTextStyles(state);
23
- return renderText_1.renderText(state); // Work around some small mismatches in inferred types which don't matter in practice
21
+ const state = useText_1.useText_unstable(props, ref);
22
+ useTextStyles_1.useTextStyles_unstable(state);
23
+ return renderText_1.renderText_unstable(state); // Work around some small mismatches in inferred types which don't matter in practice
24
24
  });
25
25
  exports.Text.displayName = 'Text';
26
26
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,SAAA,CAAA,OAAA,CAAQ,KAAR,EAAe,GAAf,CAAd;AAEA,EAAA,eAAA,CAAA,aAAA,CAAc,KAAd;AAEA,SAAO,YAAA,CAAA,UAAA,CAAW,KAAX,CAAP,CALkF,CAMlF;AACD,CAPmD,CAAvC;AASb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,IAAA,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAClF,QAAM,KAAK,GAAG,SAAA,CAAA,gBAAA,CAAiB,KAAjB,EAAwB,GAAxB,CAAd;AAEA,EAAA,eAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,SAAO,YAAA,CAAA,mBAAA,CAAoB,KAApB,CAAP,CALkF,CAMlF;AACD,CAPmD,CAAvC;AASb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -1,11 +1,11 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  /**
3
3
  * Text slots
4
4
  */
5
5
  export declare type TextSlots = {
6
- root: IntrinsicShorthandProps<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
6
+ root: Slot<'span', 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'pre'>;
7
7
  };
8
- export declare type TextCommons = {
8
+ declare type TextCommons = {
9
9
  /**
10
10
  * Wraps the text content on white spaces.
11
11
  *
@@ -75,3 +75,4 @@ export declare type TextProps = ComponentProps<TextSlots> & Partial<TextCommons>
75
75
  * State used in rendering Text
76
76
  */
77
77
  export declare type TextState = ComponentState<TextSlots> & TextCommons;
78
+ export {};
@@ -2,4 +2,4 @@ import type { TextState } from './Text.types';
2
2
  /**
3
3
  * Render the final JSX of Text
4
4
  */
5
- export declare const renderText: (state: TextState) => JSX.Element;
5
+ export declare const renderText_unstable: (state: TextState) => JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderText = void 0;
6
+ exports.renderText_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -13,13 +13,14 @@ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
13
  */
14
14
 
15
15
 
16
- const renderText = state => {
16
+ const renderText_unstable = state => {
17
17
  const {
18
18
  slots,
19
19
  slotProps
20
20
  } = react_utilities_1.getSlots(state);
21
- return React.createElement(slots.root, Object.assign({}, slotProps.root));
21
+ return React.createElement(slots.root, { ...slotProps.root
22
+ });
22
23
  };
23
24
 
24
- exports.renderText = renderText;
25
+ exports.renderText_unstable = renderText_unstable;
25
26
  //# sourceMappingURL=renderText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,UAAU,GAAI,KAAD,IAAqB;AAC7C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Text/renderText.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,mBAAmB,GAAI,KAAD,IAAqB;AACtD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAoB,KAApB,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
@@ -3,10 +3,10 @@ import type { TextProps, TextState } from './Text.types';
3
3
  /**
4
4
  * Create the state required to render Text.
5
5
  *
6
- * The returned state can be modified with hooks such as useTextStyles,
7
- * before being passed to renderText.
6
+ * The returned state can be modified with hooks such as useTextStyles_unstable,
7
+ * before being passed to renderText_unstable.
8
8
  *
9
9
  * @param props - props from this instance of Text
10
10
  * @param ref - reference to root HTMLElement of Text
11
11
  */
12
- export declare const useText: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
12
+ export declare const useText_unstable: (props: TextProps, ref: React.Ref<HTMLElement>) => TextState;
@@ -3,21 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useText = void 0;
6
+ exports.useText_unstable = void 0;
7
7
 
8
8
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
9
  /**
10
10
  * Create the state required to render Text.
11
11
  *
12
- * The returned state can be modified with hooks such as useTextStyles,
13
- * before being passed to renderText.
12
+ * The returned state can be modified with hooks such as useTextStyles_unstable,
13
+ * before being passed to renderText_unstable.
14
14
  *
15
15
  * @param props - props from this instance of Text
16
16
  * @param ref - reference to root HTMLElement of Text
17
17
  */
18
18
 
19
19
 
20
- const useText = (props, ref) => {
20
+ const useText_unstable = (props, ref) => {
21
21
  var _a;
22
22
 
23
23
  const {
@@ -56,5 +56,5 @@ const useText = (props, ref) => {
56
56
  return state;
57
57
  };
58
58
 
59
- exports.useText = useText;
59
+ exports.useText_unstable = useText_unstable;
60
60
  //# sourceMappingURL=useText.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/useText.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;;;;;AAQG;;;AACI,MAAM,OAAO,GAAG,CAAC,KAAD,EAAmB,GAAnB,KAA6D;;;AAClF,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,GAAA,CAAA,EAAA,GAAG,KAAK,CAAC,EAAT,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,EAAX,GAAe,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,MAA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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","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const textClassName = "fui-Text";
3
3
  /**
4
4
  * Apply styling to the Text slots based on the state
5
5
  */
6
- export declare const useTextStyles: (state: TextState) => TextState;
6
+ export declare const useTextStyles_unstable: (state: TextState) => TextState;
@@ -3,16 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTextStyles = exports.textClassName = void 0;
6
+ exports.useTextStyles_unstable = exports.textClassName = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
9
11
 
10
12
  exports.textClassName = 'fui-Text';
11
13
  /**
12
14
  * Styles for the root slot
13
15
  */
14
16
 
15
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
17
+ const useStyles = /*#__PURE__*/react_1.__styles({
16
18
  "root": {
17
19
  "Bahqtrf": "fk6fouc",
18
20
  "Be2twd7": "fkhj508",
@@ -21,12 +23,14 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
21
23
  "fsow6f": "fpgzoln",
22
24
  "mc9l5x": "f1w7gpdv",
23
25
  "Huce71": "f6juhto",
24
- "Bpg54ce": "f1gl81tg",
26
+ "B68tc82": "f1mtd64y",
27
+ "Bmxbyg5": "f1y7q3j9",
25
28
  "ygn44y": "f2jf649"
26
29
  },
27
30
  "nowrap": {
28
31
  "Huce71": "fz5stix",
29
- "Bpg54ce": "f1a3p1vp"
32
+ "B68tc82": "f1p9o1ba",
33
+ "Bmxbyg5": "f1sil6mw"
30
34
  },
31
35
  "truncate": {
32
36
  "ygn44y": "f1cmbuwj"
@@ -38,13 +42,13 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
38
42
  "B80ckks": "f1j4dglz"
39
43
  },
40
44
  "underline": {
41
- "dwov6y": "fctto54"
45
+ "w71qe1": "f13mvf36"
42
46
  },
43
47
  "strikethrough": {
44
- "dwov6y": "f1y2xhd0"
48
+ "w71qe1": "fv5q2k7"
45
49
  },
46
50
  "strikethroughUnderline": {
47
- "dwov6y": "f13legbo"
51
+ "w71qe1": "f1drk4o6"
48
52
  },
49
53
  "base100": {
50
54
  "Be2twd7": "f13mqy1h",
@@ -104,18 +108,18 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
104
108
  "fsow6f": "f1j59e10"
105
109
  }
106
110
  }, {
107
- "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1gl81tg{overflow:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1a3p1vp{overflow:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".fctto54{-webkit-text-decoration:underline;text-decoration:underline;}", ".f1y2xhd0{-webkit-text-decoration:line-through;text-decoration:line-through;}", ".f13legbo{-webkit-text-decoration:line-through underline;text-decoration:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
111
+ "d": [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fpgzoln{text-align:start;}", ".f1w7gpdv{display:inline;}", ".f6juhto{white-space:normal;}", ".f1mtd64y{overflow-x:visible;}", ".f1y7q3j9{overflow-y:visible;}", ".f2jf649{text-overflow:clip;}", ".fz5stix{white-space:nowrap;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".ftgm304{display:block;}", ".f1j4dglz{font-style:italic;}", ".f13mvf36{text-decoration-line:underline;}", ".fv5q2k7{text-decoration-line:line-through;}", ".f1drk4o6{text-decoration-line:line-through underline;}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".fb86gi6{line-height:var(--lineHeightBase600);}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".fccw675{font-size:var(--fontSizeHero800);}", ".f1ebx5kk{line-height:var(--lineHeightHero800);}", ".f15afnhw{font-size:var(--fontSizeHero900);}", ".fr3w3wp{line-height:var(--lineHeightHero900);}", ".fpyltcb{font-size:var(--fontSizeHero1000);}", ".f1ivgwrt{line-height:var(--lineHeightHero1000);}", ".f1fedwem{font-family:var(--fontFamilyMonospace);}", ".f1uq0ln5{font-family:var(--fontFamilyNumeric);}", ".fdj6btp{font-weight:var(--fontWeightMedium);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f17mccla{text-align:center;}", ".f12ymhq5{text-align:end;}", ".f1j59e10{text-align:justify;}"]
108
112
  });
109
113
  /**
110
114
  * Apply styling to the Text slots based on the state
111
115
  */
112
116
 
113
117
 
114
- const useTextStyles = state => {
118
+ const useTextStyles_unstable = state => {
115
119
  const styles = useStyles();
116
- state.root.className = react_make_styles_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);
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);
117
121
  return state;
118
122
  };
119
123
 
120
- exports.useTextStyles = useTextStyles;
124
+ exports.useTextStyles_unstable = useTextStyles_unstable;
121
125
  //# sourceMappingURL=useTextStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Text/useTextStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,aAAA,GAAgB,UAAhB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,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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C,OAZR,EAarB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAbR,EAcrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAdR,EAerB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAfR,EAgBrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAhBR,EAiBrB,KAAK,CAAC,IAAN,KAAe,GAAf,IAAsB,MAAM,CAAC,OAjBR,EAkBrB,KAAK,CAAC,IAAN,KAAe,IAAf,IAAuB,MAAM,CAAC,QAlBT,EAmBrB,KAAK,CAAC,IAAN,KAAe,WAAf,IAA8B,MAAM,CAAC,SAnBhB,EAoBrB,KAAK,CAAC,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","sourceRoot":""}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Title1 = exports.title1ClassName = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
@@ -16,9 +16,7 @@ exports.title1ClassName = 'fui-Title1';
16
16
  * Styles for the root slot
17
17
  */
18
18
 
19
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
20
- "root": {}
21
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
22
20
  /**
23
21
  * Text wrapper component for the Title 1 typography variant
24
22
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title1/Title1.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,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,mBAAA,SAAA;AAAA;AAAA,MAAlB;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","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/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","sourceRoot":""}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Title2 = exports.title2ClassName = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
@@ -16,9 +16,7 @@ exports.title2ClassName = 'fui-Title2';
16
16
  * Styles for the root slot
17
17
  */
18
18
 
19
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
20
- "root": {}
21
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
22
20
  /**
23
21
  * Text wrapper component for the Title 2 typography variant
24
22
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title2/Title2.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,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,mBAAA,SAAA;AAAA;AAAA,MAAlB;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","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/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","sourceRoot":""}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Title3 = exports.title3ClassName = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const index_1 = /*#__PURE__*/require("../../typographyStyles/index");
11
11
 
@@ -16,9 +16,7 @@ exports.title3ClassName = 'fui-Title3';
16
16
  * Styles for the root slot
17
17
  */
18
18
 
19
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
20
- "root": {}
21
- }, {});
19
+ const useStyles = /*#__PURE__*/react_1.__styles({}, {});
22
20
  /**
23
21
  * Text wrapper component for the Title 3 typography variant
24
22
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title3/Title3.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,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,mBAAA,SAAA;AAAA;AAAA,MAAlB;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","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/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","sourceRoot":""}
@@ -7,7 +7,7 @@ exports.createWrapper = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
10
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
10
+ const react_1 = /*#__PURE__*/require("@griffel/react");
11
11
 
12
12
  const Text_1 = /*#__PURE__*/require("../Text");
13
13
 
@@ -19,10 +19,10 @@ function createWrapper(options) {
19
19
  } = options;
20
20
  const Wrapper = React.forwardRef((props, ref) => {
21
21
  const styles = useStyles();
22
- const state = Text_1.useText(props, ref);
23
- Text_1.useTextStyles(state);
24
- state.root.className = react_make_styles_1.mergeClasses(className, state.root.className, styles.root, props.className);
25
- return Text_1.renderText(state);
22
+ const state = Text_1.useText_unstable(props, ref);
23
+ Text_1.useTextStyles_unstable(state);
24
+ state.root.className = react_1.mergeClasses(className, state.root.className, styles.root, props.className);
25
+ return Text_1.renderText_unstable(state);
26
26
  });
27
27
  Wrapper.displayName = displayName;
28
28
  return Wrapper;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/wrapper.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,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,GAAR,KAAe;AACrF,UAAM,MAAM,GAAG,SAAS,EAAxB;AACA,UAAM,KAAK,GAAG,MAAA,CAAA,gBAAA,CAAiB,KAAjB,EAAqC,GAArC,CAAd;AAEA,IAAA,MAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,SAAb,EAAwB,KAAK,CAAC,IAAN,CAAW,SAAnC,EAA8C,MAAM,CAAC,IAArD,EAA2D,KAAK,CAAC,SAAjE,CAAvB;AAEA,WAAO,MAAA,CAAA,mBAAA,CAAoB,KAApB,CAAP;AACD,GATsD,CAAvD;AAUA,EAAA,OAAO,CAAC,WAAR,GAAsB,WAAtB;AAEA,SAAO,OAAP;AACD;;AAnBD,OAAA,CAAA,aAAA,GAAA,aAAA","sourceRoot":""}
@@ -1,14 +1,13 @@
1
- import type { MakeStylesStyleFunctionRule } from '@fluentui/make-styles';
2
- import type { Theme } from '@fluentui/react-theme';
1
+ import type { GriffelStyle } from '@griffel/react';
3
2
  /**
4
3
  * Make-styles rules for the typography variants
5
4
  */
6
- export declare const caption: MakeStylesStyleFunctionRule<Theme>;
7
- export declare const body: MakeStylesStyleFunctionRule<Theme>;
8
- export declare const subheadline: MakeStylesStyleFunctionRule<Theme>;
9
- export declare const headline: MakeStylesStyleFunctionRule<Theme>;
10
- export declare const title3: MakeStylesStyleFunctionRule<Theme>;
11
- export declare const title2: MakeStylesStyleFunctionRule<Theme>;
12
- export declare const title1: MakeStylesStyleFunctionRule<Theme>;
13
- export declare const largeTitle: MakeStylesStyleFunctionRule<Theme>;
14
- export declare const display: MakeStylesStyleFunctionRule<Theme>;
5
+ export declare const caption: GriffelStyle;
6
+ export declare const body: GriffelStyle;
7
+ export declare const subheadline: GriffelStyle;
8
+ export declare const headline: GriffelStyle;
9
+ export declare const title3: GriffelStyle;
10
+ export declare const title2: GriffelStyle;
11
+ export declare const title1: GriffelStyle;
12
+ export declare const largeTitle: GriffelStyle;
13
+ export declare const display: GriffelStyle;
@@ -4,88 +4,65 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.display = exports.largeTitle = exports.title1 = exports.title2 = exports.title3 = exports.headline = exports.subheadline = exports.body = exports.caption = void 0;
7
+
8
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
7
9
  /**
8
10
  * Make-styles rules for the typography variants
9
11
  */
10
12
 
11
- const caption = theme => ({
12
- fontFamily: theme.fontFamilyBase,
13
- fontSize: theme.fontSizeBase200,
14
- lineHeight: theme.lineHeightBase200,
15
- fontWeight: theme.fontWeightRegular
16
- });
17
-
18
- exports.caption = caption;
19
-
20
- const body = theme => ({
21
- fontFamily: theme.fontFamilyBase,
22
- fontSize: theme.fontSizeBase300,
23
- lineHeight: theme.lineHeightBase300,
24
- fontWeight: theme.fontWeightRegular
25
- });
26
-
27
- exports.body = body;
28
-
29
- const subheadline = theme => ({
30
- fontFamily: theme.fontFamilyBase,
31
- fontSize: theme.fontSizeBase400,
32
- lineHeight: theme.lineHeightBase400,
33
- fontWeight: theme.fontWeightSemibold
34
- });
35
-
36
- exports.subheadline = subheadline;
37
-
38
- const headline = theme => ({
39
- fontFamily: theme.fontFamilyBase,
40
- fontSize: theme.fontSizeBase500,
41
- lineHeight: theme.lineHeightBase500,
42
- fontWeight: theme.fontWeightSemibold
43
- });
44
-
45
- exports.headline = headline;
46
-
47
- const title3 = theme => ({
48
- fontFamily: theme.fontFamilyBase,
49
- fontSize: theme.fontSizeBase600,
50
- lineHeight: theme.lineHeightBase600,
51
- fontWeight: theme.fontWeightSemibold
52
- });
53
-
54
- exports.title3 = title3;
55
-
56
- const title2 = theme => ({
57
- fontFamily: theme.fontFamilyBase,
58
- fontSize: theme.fontSizeHero700,
59
- lineHeight: theme.lineHeightHero700,
60
- fontWeight: theme.fontWeightSemibold
61
- });
62
-
63
- exports.title2 = title2;
64
-
65
- const title1 = theme => ({
66
- fontFamily: theme.fontFamilyBase,
67
- fontSize: theme.fontSizeHero800,
68
- lineHeight: theme.lineHeightHero800,
69
- fontWeight: theme.fontWeightSemibold
70
- });
71
-
72
- exports.title1 = title1;
73
-
74
- const largeTitle = theme => ({
75
- fontFamily: theme.fontFamilyBase,
76
- fontSize: theme.fontSizeHero900,
77
- lineHeight: theme.lineHeightHero900,
78
- fontWeight: theme.fontWeightSemibold
79
- });
80
-
81
- exports.largeTitle = largeTitle;
82
-
83
- const display = theme => ({
84
- fontFamily: theme.fontFamilyBase,
85
- fontSize: theme.fontSizeHero1000,
86
- lineHeight: theme.lineHeightHero1000,
87
- fontWeight: theme.fontWeightSemibold
88
- });
89
13
 
90
- exports.display = display;
14
+ exports.caption = {
15
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
16
+ fontSize: react_theme_1.tokens.fontSizeBase200,
17
+ lineHeight: react_theme_1.tokens.lineHeightBase200,
18
+ fontWeight: react_theme_1.tokens.fontWeightRegular
19
+ };
20
+ exports.body = {
21
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
22
+ fontSize: react_theme_1.tokens.fontSizeBase300,
23
+ lineHeight: react_theme_1.tokens.lineHeightBase300,
24
+ fontWeight: react_theme_1.tokens.fontWeightRegular
25
+ };
26
+ exports.subheadline = {
27
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
28
+ fontSize: react_theme_1.tokens.fontSizeBase400,
29
+ lineHeight: react_theme_1.tokens.lineHeightBase400,
30
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
31
+ };
32
+ exports.headline = {
33
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
34
+ fontSize: react_theme_1.tokens.fontSizeBase500,
35
+ lineHeight: react_theme_1.tokens.lineHeightBase500,
36
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
37
+ };
38
+ exports.title3 = {
39
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
40
+ fontSize: react_theme_1.tokens.fontSizeBase600,
41
+ lineHeight: react_theme_1.tokens.lineHeightBase600,
42
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
43
+ };
44
+ exports.title2 = {
45
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
46
+ fontSize: react_theme_1.tokens.fontSizeHero700,
47
+ lineHeight: react_theme_1.tokens.lineHeightHero700,
48
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
49
+ };
50
+ exports.title1 = {
51
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
52
+ fontSize: react_theme_1.tokens.fontSizeHero800,
53
+ lineHeight: react_theme_1.tokens.lineHeightHero800,
54
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
55
+ };
56
+ exports.largeTitle = {
57
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
58
+ fontSize: react_theme_1.tokens.fontSizeHero900,
59
+ lineHeight: react_theme_1.tokens.lineHeightHero900,
60
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
61
+ };
62
+ exports.display = {
63
+ fontFamily: react_theme_1.tokens.fontFamilyBase,
64
+ fontSize: react_theme_1.tokens.fontSizeHero1000,
65
+ lineHeight: react_theme_1.tokens.lineHeightHero1000,
66
+ fontWeight: react_theme_1.tokens.fontWeightSemibold
67
+ };
91
68
  //# sourceMappingURL=typographyStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/typographyStyles/typographyStyles.ts"],"names":[],"mappings":";;;;;;AAGA;;AAEG;;AACI,MAAM,OAAO,GAAuC,KAAK,KAAK;AACnE,EAAA,UAAU,EAAE,KAAK,CAAC,cADiD;AAEnE,EAAA,QAAQ,EAAE,KAAK,CAAC,eAFmD;AAGnE,EAAA,UAAU,EAAE,KAAK,CAAC,iBAHiD;AAInE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJiD,CAAL,CAAzD;;AAAM,OAAA,CAAA,OAAA,GAAO,OAAP;;AAMN,MAAM,IAAI,GAAuC,KAAK,KAAK;AAChE,EAAA,UAAU,EAAE,KAAK,CAAC,cAD8C;AAEhE,EAAA,QAAQ,EAAE,KAA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EAAE,aAAA,CAAA,MAAA,CAAO;AAJe,CAAvB;AAMA,OAAA,CAAA,MAAA,GAAuB;AAClC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADe;AAElC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eAFiB;AAGlC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,iBAHe;AAIlC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJe,CAAvB;AAMA,OAAA,CAAA,UAAA,GAA2B;AACtC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADmB;AAEtC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,eAFqB;AAGtC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,iBAHmB;AAItC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJmB,CAA3B;AAMA,OAAA,CAAA,OAAA,GAAwB;AACnC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,cADgB;AAEnC,EAAA,QAAQ,EAAE,aAAA,CAAA,MAAA,CAAO,gBAFkB;AAGnC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO,kBAHgB;AAInC,EAAA,UAAU,EAAE,aAAA,CAAA,MAAA,CAAO;AAJgB,CAAxB","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-text",
3
- "version": "0.0.0-nightly9edaf68d4420211116.1",
3
+ "version": "0.0.0-nightly9fe22334a320220214.1",
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",
@@ -19,17 +19,16 @@
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
- "test": "jest",
22
+ "test": "jest --passWithNoTests",
23
23
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-text/src && yarn docs",
25
- "storybook": "start-storybook"
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",
26
+ "type-check": "tsc -b tsconfig.json"
26
27
  },
27
28
  "devDependencies": {
28
- "@fluentui/babel-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
29
29
  "@fluentui/eslint-plugin": "*",
30
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
31
30
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly9fe22334a320220214.1",
33
32
  "@fluentui/scripts": "^1.0.0",
34
33
  "@types/enzyme": "3.10.3",
35
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -43,8 +42,8 @@
43
42
  "react-test-renderer": "^16.3.0"
44
43
  },
45
44
  "dependencies": {
46
- "@fluentui/react-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
47
- "@fluentui/react-utilities": "0.0.0-nightly9edaf68d4420211116.1",
45
+ "@griffel/react": "1.0.0",
46
+ "@fluentui/react-utilities": "0.0.0-nightly9fe22334a320220214.1",
48
47
  "tslib": "^2.1.0"
49
48
  },
50
49
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,16 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
- export function isConformant(testInfo) {
4
- const defaultOptions = {
5
- asPropHandlesRef: true,
6
- componentPath: module.parent.filename.replace('.test', ''),
7
- extraTests: makeStylesTests,
8
- testOptions: {
9
- 'make-styles-overrides-win': {
10
- callCount: 2
11
- }
12
- }
13
- };
14
- baseIsConformant(defaultOptions, testInfo);
15
- }
16
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,eAH+C;AAI3D,IAAA,WAAW,EAAE;AACX,mCAA6B;AAC3B,QAAA,SAAS,EAAE;AADgB;AADlB;AAJ8C,GAA7D;AAaA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}