@fluentui/react-badge 0.0.0-nightlycc44f3625c20211220.1 → 0.0.0-nightlye0b8e1fa6920220128.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/CHANGELOG.json +81 -19
  2. package/CHANGELOG.md +17 -11
  3. package/dist/react-badge.d.ts +13 -19
  4. package/lib/components/Badge/Badge.d.ts +1 -1
  5. package/lib/components/Badge/Badge.js +7 -7
  6. package/lib/components/Badge/Badge.js.map +1 -1
  7. package/lib/components/Badge/Badge.types.d.ts +3 -4
  8. package/lib/components/Badge/renderBadge.d.ts +1 -1
  9. package/lib/components/Badge/renderBadge.js +2 -2
  10. package/lib/components/Badge/renderBadge.js.map +1 -1
  11. package/lib/components/Badge/useBadge.d.ts +1 -1
  12. package/lib/components/Badge/useBadge.js +1 -1
  13. package/lib/components/Badge/useBadge.js.map +1 -1
  14. package/lib/components/Badge/useBadgeStyles.d.ts +1 -1
  15. package/lib/components/Badge/useBadgeStyles.js +23 -4
  16. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  17. package/lib/components/CounterBadge/CounterBadge.d.ts +1 -1
  18. package/lib/components/CounterBadge/CounterBadge.js +7 -7
  19. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  20. package/lib/components/CounterBadge/CounterBadge.types.d.ts +0 -6
  21. package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -1
  22. package/lib/components/CounterBadge/useCounterBadge.js +3 -3
  23. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  24. package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
  25. package/lib/components/CounterBadge/useCounterBadgeStyles.js +4 -4
  26. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  27. package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -1
  28. package/lib/components/PresenceBadge/PresenceBadge.js +7 -7
  29. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  30. package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
  31. package/lib/components/PresenceBadge/usePresenceBadge.js +3 -3
  32. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  33. package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
  34. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +3 -2
  35. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  36. package/lib-commonjs/components/Badge/Badge.d.ts +1 -1
  37. package/lib-commonjs/components/Badge/Badge.js +4 -4
  38. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  39. package/lib-commonjs/components/Badge/Badge.types.d.ts +3 -4
  40. package/lib-commonjs/components/Badge/renderBadge.d.ts +1 -1
  41. package/lib-commonjs/components/Badge/renderBadge.js +4 -4
  42. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  43. package/lib-commonjs/components/Badge/useBadge.d.ts +1 -1
  44. package/lib-commonjs/components/Badge/useBadge.js +3 -3
  45. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  46. package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -1
  47. package/lib-commonjs/components/Badge/useBadgeStyles.js +28 -8
  48. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  49. package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -1
  50. package/lib-commonjs/components/CounterBadge/CounterBadge.js +4 -4
  51. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  52. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +0 -6
  53. package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -1
  54. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +4 -4
  55. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  56. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
  57. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +7 -7
  58. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  59. package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -1
  60. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +4 -4
  61. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  62. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
  63. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +4 -4
  64. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  65. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
  66. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +8 -6
  67. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  68. package/package.json +7 -9
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAGa,OAAA,CAAA,qBAAA,GAAwB,kBAAxB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAYA;;AAEG;;;AACI,MAAM,qBAAqB,GAAI,KAAD,IAAgD;AACnF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,qBADqB,EAErB,KAAK,CAAC,GAAN,IAAa,MAAM,CAAC,GAFC,EAGrB,CAAC,KAAK,CAAC,QAAP,IAAmB,KAAK,CAAC,KAAN,KAAgB,CAAnC,IAAwC,CAAC,KAAK,CAAC,GAA/C,IAAsD,MAAM,CAAC,IAHxC,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;AAMA,SAAO,gBAAA,CAAA,cAAA,CAAe,KAAf,CAAP;AACD,CATM;;AAAM,OAAA,CAAA,qBAAA,GAAqB,qBAArB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAGa,OAAA,CAAA,qBAAA,GAAwB,kBAAxB;;AAEb,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAYA;;AAEG;;;AACI,MAAM,8BAA8B,GAAI,KAAD,IAAgD;AAC5F,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,qBADqB,EAErB,KAAK,CAAC,GAAN,IAAa,MAAM,CAAC,GAFC,EAGrB,CAAC,KAAK,CAAC,QAAP,IAAmB,KAAK,CAAC,KAAN,KAAgB,CAAnC,IAAwC,CAAC,KAAK,CAAC,GAA/C,IAAsD,MAAM,CAAC,IAHxC,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;AAMA,SAAO,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,CAAP;AACD,CATM;;AAAM,OAAA,CAAA,8BAAA,GAA8B,8BAA9B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { PresenceBadgeProps } from './PresenceBadge.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled Badge, using the `useBadge` hook.
4
+ * Define a styled Badge, using the `useBadge_unstable` hook.
5
5
  */
6
6
  export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
@@ -13,14 +13,14 @@ const usePresenceBadgeStyles_1 = /*#__PURE__*/require("./usePresenceBadgeStyles"
13
13
 
14
14
  const Badge_1 = /*#__PURE__*/require("../../Badge");
15
15
  /**
16
- * Define a styled Badge, using the `useBadge` hook.
16
+ * Define a styled Badge, using the `useBadge_unstable` hook.
17
17
  */
18
18
 
19
19
 
20
20
  exports.PresenceBadge = /*#__PURE__*/React.forwardRef((props, ref) => {
21
- const state = usePresenceBadge_1.usePresenceBadge(props, ref);
22
- usePresenceBadgeStyles_1.usePresenceBadgeStyles(state);
23
- return Badge_1.renderBadge(state);
21
+ const state = usePresenceBadge_1.usePresenceBadge_unstable(props, ref);
22
+ usePresenceBadgeStyles_1.usePresenceBadgeStyles_unstable(state);
23
+ return Badge_1.renderBadge_unstable(state);
24
24
  });
25
25
  exports.PresenceBadge.displayName = 'PresenceBadge';
26
26
  //# sourceMappingURL=PresenceBadge.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PresenceBadge/PresenceBadge.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,aAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,gBAAyD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpG,QAAM,KAAK,GAAG,kBAAA,CAAA,gBAAA,CAAiB,KAAjB,EAAwB,GAAxB,CAAd;AACA,EAAA,wBAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,SAAO,OAAA,CAAA,WAAA,CAAY,KAAZ,CAAP;AACD,CALqE,CAAzD;AAOb,OAAA,CAAA,aAAA,CAAc,WAAd,GAA4B,eAA5B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PresenceBadge/PresenceBadge.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,aAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,gBAAyD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpG,QAAM,KAAK,GAAG,kBAAA,CAAA,yBAAA,CAA0B,KAA1B,EAAiC,GAAjC,CAAd;AACA,EAAA,wBAAA,CAAA,+BAAA,CAAgC,KAAhC;AAEA,SAAO,OAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CALqE,CAAzD;AAOb,OAAA,CAAA,aAAA,CAAc,WAAd,GAA4B,eAA5B","sourceRoot":""}
@@ -3,4 +3,4 @@ import type { PresenceBadgeProps, PresenceBadgeState } from './PresenceBadge.typ
3
3
  /**
4
4
  * Returns the props and state required to render the component
5
5
  */
6
- export declare const usePresenceBadge: (props: PresenceBadgeProps, ref: React.Ref<HTMLElement>) => PresenceBadgeState;
6
+ export declare const usePresenceBadge_unstable: (props: PresenceBadgeProps, ref: React.Ref<HTMLElement>) => PresenceBadgeState;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePresenceBadge = void 0;
6
+ exports.usePresenceBadge_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -39,10 +39,10 @@ const iconMap = (status, outOfOffice, size) => {
39
39
  */
40
40
 
41
41
 
42
- const usePresenceBadge = (props, ref) => {
42
+ const usePresenceBadge_unstable = (props, ref) => {
43
43
  var _a, _b;
44
44
 
45
- const state = { ...index_1.useBadge({
45
+ const state = { ...index_1.useBadge_unstable({
46
46
  size: 'medium',
47
47
  ...props,
48
48
  icon: react_utilities_1.resolveShorthand(undefined, {
@@ -61,5 +61,5 @@ const usePresenceBadge = (props, ref) => {
61
61
  return state;
62
62
  };
63
63
 
64
- exports.usePresenceBadge = usePresenceBadge;
64
+ exports.usePresenceBadge_unstable = usePresenceBadge_unstable;
65
65
  //# sourceMappingURL=usePresenceBadge.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PresenceBadge/usePresenceBadge.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AAWA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAGA,MAAM,OAAO,GAAG,CACd,MADc,EAEd,WAFc,EAGd,IAHc,KAIoB;AAClC,UAAQ,MAAR;AACE,SAAK,WAAL;AACE,aAAO,WAAW,GAAG,eAAA,CAAA,wBAAA,CAAyB,IAAzB,CAAH,GAAoC,eAAA,CAAA,uBAAA,CAAwB,IAAxB,CAAtD;;AACF,SAAK,MAAL;AACE,aAAO,WAAW,GAAG,eAAA,CAAA,sBAAA,CAAuB,IAAvB,CAAH,GAAkC,eAAA,CAAA,kBAAA,CAAmB,IAAnB,CAApD;;AACF,SAAK,MAAL;AACE,aAAO,WAAW,GAAG,eAAA,CAAA,sBAAA,CAAuB,IAAvB,CAAH,GAAkC,eAAA,CAAA,kBAAA,CAAmB,IAAnB,CAApD;;AACF,SAAK,cAAL;AACE,aAAO,WAAW,GAAG,eAAA,CAAA,kBAAA,CAAmB,IAAnB,CAAH,GAA8B,eAAA,CAAA,iBAAA,CAAkB,IAAlB,CAAhD;;AACF,SAAK,SAAL;AACE,aAAO,eAAA,CAAA,sBAAA,CAAuB,IAAvB,CAAP;;AACF,SAAK,aAAL;AACE,aAAO,eAAA,CA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C,IAAA,WAAW,EAAE,CAAA,EAAA,GAAA,KAAK,CAAC,WAAN,MAAiB,IAAjB,IAAiB,EAAA,KAAA,KAAA,CAAjB,GAAiB,EAAjB,GAAqB;AAZF,GAAlC;AAeA,QAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAP,EAAe,KAAK,CAAC,WAArB,EAAkC,KAAK,CAAC,IAAxC,CAA3B;;AACA,MAAI,WAAJ,EAAiB;AACf,IAAA,KAAK,CAAC,IAAN,CAAY,QAAZ,GAAuB,KAAA,CAAA,aAAA,CAAC,WAAD,EAAY,IAAZ,CAAvB;AACD;;AAED,SAAO,KAAP;AACD,CAzBM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const presenceBadgeClassName = "fui-PresenceBadge";
3
3
  /**
4
4
  * Applies style classnames to slots
5
5
  */
6
- export declare const usePresenceBadgeStyles: (state: PresenceBadgeState) => PresenceBadgeState;
6
+ export declare const usePresenceBadgeStyles_unstable: (state: PresenceBadgeState) => PresenceBadgeState;
@@ -3,13 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePresenceBadgeStyles = exports.presenceBadgeClassName = void 0;
6
+ exports.usePresenceBadgeStyles_unstable = exports.presenceBadgeClassName = 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.presenceBadgeClassName = 'fui-PresenceBadge';
11
13
 
12
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
14
+ const useStyles = /*#__PURE__*/react_1.__styles({
13
15
  "root": {
14
16
  "z8tnut": "f1g0x7ka",
15
17
  "z189sj": ["fhxju0i", "f1cnd47f"],
@@ -79,11 +81,11 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
79
81
  */
80
82
 
81
83
 
82
- const usePresenceBadgeStyles = state => {
84
+ const usePresenceBadgeStyles_unstable = state => {
83
85
  const styles = useStyles();
84
- state.root.className = react_make_styles_1.mergeClasses(exports.presenceBadgeClassName, styles.root, (state.status === 'busy' || state.status === 'doNotDisturb') && styles.statusBusy, state.status === 'away' && styles.statusAway, state.status === 'available' && styles.statusAvailable, state.status === 'offline' && styles.statusOffline, state.status === 'outOfOffice' && styles.statusOutOfOffice, state.outOfOffice && styles.outOfOffice, state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable, state.outOfOffice && (state.status === 'busy' || state.status === 'doNotDisturb') && styles.outOfOfficeBusy, state.outOfOffice && state.status === 'away' && styles.outOfOfficeAway, state.outOfOffice && state.status === 'offline' && styles.statusOffline, state.outOfOffice && state.status === 'outOfOffice' && styles.statusOutOfOffice, state.size === 'tiny' && styles.tiny, state.size === 'large' && styles.large, state.size === 'extra-large' && styles.extraLarge, state.root.className);
86
+ state.root.className = react_1.mergeClasses(exports.presenceBadgeClassName, styles.root, (state.status === 'busy' || state.status === 'doNotDisturb') && styles.statusBusy, state.status === 'away' && styles.statusAway, state.status === 'available' && styles.statusAvailable, state.status === 'offline' && styles.statusOffline, state.status === 'outOfOffice' && styles.statusOutOfOffice, state.outOfOffice && styles.outOfOffice, state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable, state.outOfOffice && (state.status === 'busy' || state.status === 'doNotDisturb') && styles.outOfOfficeBusy, state.outOfOffice && state.status === 'away' && styles.outOfOfficeAway, state.outOfOffice && state.status === 'offline' && styles.statusOffline, state.outOfOffice && state.status === 'outOfOffice' && styles.statusOutOfOffice, state.size === 'tiny' && styles.tiny, state.size === 'large' && styles.large, state.size === 'extra-large' && styles.extraLarge, state.root.className);
85
87
  return state;
86
88
  };
87
89
 
88
- exports.usePresenceBadgeStyles = usePresenceBadgeStyles;
90
+ exports.usePresenceBadgeStyles_unstable = usePresenceBadgeStyles_unstable;
89
91
  //# source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rB,KAAK,CAAC,WAAN,IAAqB,KAAK,CAAC,MAAN,KAAiB,SAAtC,IAAmD,MAAM,CAAC,aAZrC,EAarB,KAAK,CAAC,WAAN,IAAqB,KAAK,CAAC,MAAN,KAAiB,aAAtC,IAAuD,MAAM,CAAC,iBAbzC,EAcrB,KAAK,CAAC,IAAN,KAAe,MAAf,IAAyB,MAAM,CAAC,IAdX,EAerB,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,KAfZ,EAgBrB,KAAK,CAAC,IAAN,KAAe,aAAf,IAAgC,MAAM,CAAC,UAhBlB,EAiBrB,KAAK,CAAC,IAAN,CAAW,SAjBU,CAAvB;AAoBA,SAAO,KAAP;AACD,CAvBM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-badge",
3
- "version": "0.0.0-nightlycc44f3625c20211220.1",
3
+ "version": "0.0.0-nightlye0b8e1fa6920220128.1",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,18 +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
24
  "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-badge/src && yarn docs",
25
- "storybook": "start-storybook",
25
+ "storybook": "node ../../scripts/storybook/runner",
26
26
  "type-check": "tsc -b tsconfig.json"
27
27
  },
28
28
  "devDependencies": {
29
- "@fluentui/babel-make-styles": "0.0.0-nightlycc44f3625c20211220.1",
30
29
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlycc44f3625c20211220.1",
32
30
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlycc44f3625c20211220.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlye0b8e1fa6920220128.1",
34
32
  "@fluentui/scripts": "^1.0.0",
35
33
  "@types/enzyme": "3.10.3",
36
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -45,9 +43,9 @@
45
43
  },
46
44
  "dependencies": {
47
45
  "@fluentui/react-icons": "^2.0.154-beta.5",
48
- "@fluentui/react-make-styles": "0.0.0-nightlycc44f3625c20211220.1",
49
- "@fluentui/react-theme": "0.0.0-nightlycc44f3625c20211220.1",
50
- "@fluentui/react-utilities": "0.0.0-nightlycc44f3625c20211220.1",
46
+ "@griffel/react": "1.0.0",
47
+ "@fluentui/react-theme": "0.0.0-nightlye0b8e1fa6920220128.1",
48
+ "@fluentui/react-utilities": "0.0.0-nightlye0b8e1fa6920220128.1",
51
49
  "tslib": "^2.1.0"
52
50
  },
53
51
  "peerDependencies": {