@fluentui/react-text 0.0.0-nightly9edaf68d4420211116.1 → 0.0.0-nightlya0aef7969220220228.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 (127) hide show
  1. package/CHANGELOG.json +175 -14
  2. package/CHANGELOG.md +54 -10
  3. package/MIGRATION.md +153 -103
  4. package/dist/react-text.d.ts +8 -8
  5. package/lib/Body.js.map +1 -1
  6. package/lib/Caption.js.map +1 -1
  7. package/lib/Display.js.map +1 -1
  8. package/lib/Headline.js.map +1 -1
  9. package/lib/LargeTitle.js.map +1 -1
  10. package/lib/Subheadline.js.map +1 -1
  11. package/lib/Text.js.map +1 -1
  12. package/lib/Title1.js.map +1 -1
  13. package/lib/Title2.js.map +1 -1
  14. package/lib/Title3.js.map +1 -1
  15. package/lib/components/Body/Body.js +1 -1
  16. package/lib/components/Body/Body.js.map +1 -1
  17. package/lib/components/Body/index.js.map +1 -1
  18. package/lib/components/Caption/Caption.js +1 -1
  19. package/lib/components/Caption/Caption.js.map +1 -1
  20. package/lib/components/Caption/index.js.map +1 -1
  21. package/lib/components/Display/Display.js +1 -1
  22. package/lib/components/Display/Display.js.map +1 -1
  23. package/lib/components/Display/index.js.map +1 -1
  24. package/lib/components/Headline/Headline.js +1 -1
  25. package/lib/components/Headline/Headline.js.map +1 -1
  26. package/lib/components/Headline/index.js.map +1 -1
  27. package/lib/components/LargeTitle/LargeTitle.js +1 -1
  28. package/lib/components/LargeTitle/LargeTitle.js.map +1 -1
  29. package/lib/components/LargeTitle/index.js.map +1 -1
  30. package/lib/components/Subheadline/Subheadline.js +1 -1
  31. package/lib/components/Subheadline/Subheadline.js.map +1 -1
  32. package/lib/components/Subheadline/index.js.map +1 -1
  33. package/lib/components/Text/Text.js +6 -6
  34. package/lib/components/Text/Text.js.map +1 -1
  35. package/lib/components/Text/Text.types.d.ts +4 -3
  36. package/lib/components/Text/Text.types.js.map +1 -1
  37. package/lib/components/Text/index.js.map +1 -1
  38. package/lib/components/Text/renderText.d.ts +1 -1
  39. package/lib/components/Text/renderText.js +3 -2
  40. package/lib/components/Text/renderText.js.map +1 -1
  41. package/lib/components/Text/useText.d.ts +3 -3
  42. package/lib/components/Text/useText.js +3 -3
  43. package/lib/components/Text/useText.js.map +1 -1
  44. package/lib/components/Text/useTextStyles.d.ts +1 -1
  45. package/lib/components/Text/useTextStyles.js +11 -8
  46. package/lib/components/Text/useTextStyles.js.map +1 -1
  47. package/lib/components/Title1/Title1.js +1 -1
  48. package/lib/components/Title1/Title1.js.map +1 -1
  49. package/lib/components/Title1/index.js.map +1 -1
  50. package/lib/components/Title2/Title2.js +1 -1
  51. package/lib/components/Title2/Title2.js.map +1 -1
  52. package/lib/components/Title2/index.js.map +1 -1
  53. package/lib/components/Title3/Title3.js +1 -1
  54. package/lib/components/Title3/Title3.js.map +1 -1
  55. package/lib/components/Title3/index.js.map +1 -1
  56. package/lib/components/wrapper.js +5 -5
  57. package/lib/components/wrapper.js.map +1 -1
  58. package/lib/index.js.map +1 -1
  59. package/lib/typographyStyles/index.js.map +1 -1
  60. package/lib/typographyStyles/typographyStyles.d.ts +10 -11
  61. package/lib/typographyStyles/typographyStyles.js +56 -54
  62. package/lib/typographyStyles/typographyStyles.js.map +1 -1
  63. package/lib-commonjs/Body.js.map +1 -1
  64. package/lib-commonjs/Caption.js.map +1 -1
  65. package/lib-commonjs/Display.js.map +1 -1
  66. package/lib-commonjs/Headline.js.map +1 -1
  67. package/lib-commonjs/LargeTitle.js.map +1 -1
  68. package/lib-commonjs/Subheadline.js.map +1 -1
  69. package/lib-commonjs/Text.js.map +1 -1
  70. package/lib-commonjs/Title1.js.map +1 -1
  71. package/lib-commonjs/Title2.js.map +1 -1
  72. package/lib-commonjs/Title3.js.map +1 -1
  73. package/lib-commonjs/components/Body/Body.js +2 -4
  74. package/lib-commonjs/components/Body/Body.js.map +1 -1
  75. package/lib-commonjs/components/Body/index.js.map +1 -1
  76. package/lib-commonjs/components/Caption/Caption.js +2 -4
  77. package/lib-commonjs/components/Caption/Caption.js.map +1 -1
  78. package/lib-commonjs/components/Caption/index.js.map +1 -1
  79. package/lib-commonjs/components/Display/Display.js +2 -4
  80. package/lib-commonjs/components/Display/Display.js.map +1 -1
  81. package/lib-commonjs/components/Display/index.js.map +1 -1
  82. package/lib-commonjs/components/Headline/Headline.js +2 -4
  83. package/lib-commonjs/components/Headline/Headline.js.map +1 -1
  84. package/lib-commonjs/components/Headline/index.js.map +1 -1
  85. package/lib-commonjs/components/LargeTitle/LargeTitle.js +2 -4
  86. package/lib-commonjs/components/LargeTitle/LargeTitle.js.map +1 -1
  87. package/lib-commonjs/components/LargeTitle/index.js.map +1 -1
  88. package/lib-commonjs/components/Subheadline/Subheadline.js +2 -4
  89. package/lib-commonjs/components/Subheadline/Subheadline.js.map +1 -1
  90. package/lib-commonjs/components/Subheadline/index.js.map +1 -1
  91. package/lib-commonjs/components/Text/Text.js +3 -3
  92. package/lib-commonjs/components/Text/Text.js.map +1 -1
  93. package/lib-commonjs/components/Text/Text.types.d.ts +4 -3
  94. package/lib-commonjs/components/Text/Text.types.js.map +1 -1
  95. package/lib-commonjs/components/Text/index.js.map +1 -1
  96. package/lib-commonjs/components/Text/renderText.d.ts +1 -1
  97. package/lib-commonjs/components/Text/renderText.js +5 -4
  98. package/lib-commonjs/components/Text/renderText.js.map +1 -1
  99. package/lib-commonjs/components/Text/useText.d.ts +3 -3
  100. package/lib-commonjs/components/Text/useText.js +5 -5
  101. package/lib-commonjs/components/Text/useText.js.map +1 -1
  102. package/lib-commonjs/components/Text/useTextStyles.d.ts +1 -1
  103. package/lib-commonjs/components/Text/useTextStyles.js +16 -12
  104. package/lib-commonjs/components/Text/useTextStyles.js.map +1 -1
  105. package/lib-commonjs/components/Title1/Title1.js +2 -4
  106. package/lib-commonjs/components/Title1/Title1.js.map +1 -1
  107. package/lib-commonjs/components/Title1/index.js.map +1 -1
  108. package/lib-commonjs/components/Title2/Title2.js +2 -4
  109. package/lib-commonjs/components/Title2/Title2.js.map +1 -1
  110. package/lib-commonjs/components/Title2/index.js.map +1 -1
  111. package/lib-commonjs/components/Title3/Title3.js +2 -4
  112. package/lib-commonjs/components/Title3/Title3.js.map +1 -1
  113. package/lib-commonjs/components/Title3/index.js.map +1 -1
  114. package/lib-commonjs/components/wrapper.js +5 -5
  115. package/lib-commonjs/components/wrapper.js.map +1 -1
  116. package/lib-commonjs/index.js.map +1 -1
  117. package/lib-commonjs/typographyStyles/index.js.map +1 -1
  118. package/lib-commonjs/typographyStyles/typographyStyles.d.ts +10 -11
  119. package/lib-commonjs/typographyStyles/typographyStyles.js +56 -79
  120. package/lib-commonjs/typographyStyles/typographyStyles.js.map +1 -1
  121. package/package.json +9 -9
  122. package/lib/common/isConformant.d.ts +0 -4
  123. package/lib/common/isConformant.js +0 -16
  124. package/lib/common/isConformant.js.map +0 -1
  125. package/lib-commonjs/common/isConformant.d.ts +0 -4
  126. package/lib-commonjs/common/isConformant.js +0 -27
  127. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -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":["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 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title2/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Title2/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Title2';\n"],"sourceRoot":"../src/"}
@@ -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":["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 +1 @@
1
- {"version":3,"sources":["../../../src/components/Title3/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/Title3/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Title3';\n"],"sourceRoot":"../src/"}
@@ -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,OAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,MAAA,gBAAA,OAAA,CAAA,SAAA,CAAA;;AAMA,SAAgB,aAAhB,CAA8B,OAA9B,EAIC;AACC,QAAM;AAAE,IAAA,SAAF;AAAa,IAAA,SAAb;AAAwB,IAAA;AAAxB,MAAwC,OAA9C;AACA,QAAM,OAAO,GAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACrF,UAAM,MAAM,GAAG,SAAS,EAAxB;AACA,UAAM,KAAK,GAAG,MAAA,CAAA,OAAA,CAAQ,KAAR,EAA4B,GAA5B,CAAd;AAEA,IAAA,MAAA,CAAA,aAAA,CAAc,KAAd;AAEA,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAA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{ mergeClasses } from '@griffel/react';\nimport { renderText_unstable, useText_unstable, useTextStyles_unstable } from '../Text';\nimport type { TextProps } from '../Text';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport type TextWrapperProps = Omit<TextProps, 'font' | 'size'>;\n\nexport function createWrapper(options: {\n className: string;\n displayName: string;\n useStyles: () => Record<'root', string>;\n}): React.FunctionComponent<TextWrapperProps> {\n const { useStyles, className, displayName } = options;\n const Wrapper: ForwardRefComponent<TextWrapperProps> = React.forwardRef((props, ref) => {\n const styles = useStyles();\n const state = useText_unstable(props as TextProps, ref);\n\n useTextStyles_unstable(state);\n\n state.root.className = mergeClasses(className, state.root.className, styles.root, props.className);\n\n return renderText_unstable(state);\n });\n Wrapper.displayName = displayName;\n\n return Wrapper;\n}\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/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","sourceRoot":""}
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 +1 @@
1
- {"version":3,"sources":["../../src/typographyStyles/index.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,gBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACS,OAAA,CAAA,gBAAA,GAAA,gBAAA","sourceRoot":""}
1
+ {"version":3,"sources":["typographyStyles/index.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,gBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACS,OAAA,CAAA,gBAAA,GAAA,gBAAA","sourcesContent":["import * as typographyStyles from './typographyStyles';\nexport { typographyStyles };\n"],"sourceRoot":"../src/"}
@@ -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,KAAK,CAAC,eAFgD;AAGhE,EAAA,UAAU,EAAE,KAAK,CAAC,iBAH8C;AAIhE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJ8C,CAAL,CAAtD;;AAAM,OAAA,CAAA,IAAA,GAAI,IAAJ;;AAMN,MAAM,WAAW,GAAuC,KAAK,KAAK;AACvE,EAAA,UAAU,EAAE,KAAK,CAAC,cADqD;AAEvE,EAAA,QAAQ,EAAE,KAAK,CAAC,eAFuD;AAGvE,EAAA,UAAU,EAAE,KAAK,CAAC,iBAHqD;AAIvE,EAAA,UAAU,EAAE,KAAK,CAAC;AAJqD,CAAL,CAA7D;;AAAM,OAAA,CAAA,WAAA,GAAW,WAAX;;AAMN,MAAM,QAAQ,GAAuC,KAAK,KAAK;AACpE,EAAA,UAAU,EAAE,KAAK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HmB;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","sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport type { GriffelStyle } from '@griffel/react';\n\n/**\n * Make-styles rules for the typography variants\n */\nexport const caption: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n fontWeight: tokens.fontWeightRegular,\n};\nexport const body: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n fontWeight: tokens.fontWeightRegular,\n};\nexport const subheadline: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const headline: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const title3: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const title2: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const title1: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero800,\n lineHeight: tokens.lineHeightHero800,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const largeTitle: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero900,\n lineHeight: tokens.lineHeightHero900,\n fontWeight: tokens.fontWeightSemibold,\n};\nexport const display: GriffelStyle = {\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeHero1000,\n lineHeight: tokens.lineHeightHero1000,\n fontWeight: tokens.fontWeightSemibold,\n};\n"],"sourceRoot":"../src/"}
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-nightlya0aef7969220220228.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-nightlya0aef7969220220228.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,9 @@
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-theme": "0.0.0-nightlya0aef7969220220228.1",
47
+ "@fluentui/react-utilities": "0.0.0-nightlya0aef7969220220228.1",
48
48
  "tslib": "^2.1.0"
49
49
  },
50
50
  "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":""}
@@ -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,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isConformant = void 0;
7
-
8
- const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
-
10
- const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
-
12
- function isConformant(testInfo) {
13
- const defaultOptions = {
14
- asPropHandlesRef: true,
15
- componentPath: module.parent.filename.replace('.test', ''),
16
- extraTests: react_conformance_make_styles_1.default,
17
- testOptions: {
18
- 'make-styles-overrides-win': {
19
- callCount: 2
20
- }
21
- }
22
- };
23
- react_conformance_1.isConformant(defaultOptions, testInfo);
24
- }
25
-
26
- exports.isConformant = isConformant;
27
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;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,+BAAA,CAAA,OAH+C;AAI3D,IAAA,WAAW,EAAE;AACX,mCAA6B;AAC3B,QAAA,SAAS,EAAE;AADgB;AADlB;AAJ8C,GAA7D;AAaA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAjBD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}