@fluentui/react-button 0.0.0-nightlyfe9829e48120211112.1 → 0.0.0-nightlyff78d1e27a20220217.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. package/CHANGELOG.json +337 -26
  2. package/CHANGELOG.md +80 -14
  3. package/dist/react-button.d.ts +31 -33
  4. package/lib/Button.js.map +1 -1
  5. package/lib/CompoundButton.js.map +1 -1
  6. package/lib/MenuButton.js.map +1 -1
  7. package/lib/SplitButton.js.map +1 -1
  8. package/lib/ToggleButton.js.map +1 -1
  9. package/lib/components/Button/Button.js +6 -6
  10. package/lib/components/Button/Button.js.map +1 -1
  11. package/lib/components/Button/Button.types.d.ts +5 -5
  12. package/lib/components/Button/Button.types.js.map +1 -1
  13. package/lib/components/Button/index.d.ts +2 -2
  14. package/lib/components/Button/index.js +1 -2
  15. package/lib/components/Button/index.js.map +1 -1
  16. package/lib/components/Button/renderButton.d.ts +1 -1
  17. package/lib/components/Button/renderButton.js +6 -3
  18. package/lib/components/Button/renderButton.js.map +1 -1
  19. package/lib/components/Button/useButton.d.ts +1 -1
  20. package/lib/components/Button/useButton.js +3 -2
  21. package/lib/components/Button/useButton.js.map +1 -1
  22. package/lib/components/Button/useButtonStyles.d.ts +1 -9
  23. package/lib/components/Button/useButtonStyles.js +97 -72
  24. package/lib/components/Button/useButtonStyles.js.map +1 -1
  25. package/lib/components/CompoundButton/CompoundButton.js +6 -6
  26. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  27. package/lib/components/CompoundButton/CompoundButton.types.d.ts +4 -4
  28. package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
  29. package/lib/components/CompoundButton/index.d.ts +1 -1
  30. package/lib/components/CompoundButton/index.js +1 -1
  31. package/lib/components/CompoundButton/index.js.map +1 -1
  32. package/lib/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  33. package/lib/components/CompoundButton/renderCompoundButton.js +8 -3
  34. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  35. package/lib/components/CompoundButton/useCompoundButton.d.ts +1 -1
  36. package/lib/components/CompoundButton/useCompoundButton.js +3 -3
  37. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  38. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  39. package/lib/components/CompoundButton/useCompoundButtonStyles.js +14 -13
  40. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  41. package/lib/components/MenuButton/MenuButton.js +6 -6
  42. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  43. package/lib/components/MenuButton/MenuButton.types.d.ts +3 -4
  44. package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
  45. package/lib/components/MenuButton/index.d.ts +1 -1
  46. package/lib/components/MenuButton/index.js +1 -1
  47. package/lib/components/MenuButton/index.js.map +1 -1
  48. package/lib/components/MenuButton/renderMenuButton.d.ts +1 -1
  49. package/lib/components/MenuButton/renderMenuButton.js +6 -3
  50. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  51. package/lib/components/MenuButton/useMenuButton.d.ts +1 -1
  52. package/lib/components/MenuButton/useMenuButton.js +5 -5
  53. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  54. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  55. package/lib/components/MenuButton/useMenuButtonStyles.js +4 -4
  56. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  57. package/lib/components/SplitButton/SplitButton.js +6 -6
  58. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  59. package/lib/components/SplitButton/SplitButton.types.d.ts +6 -4
  60. package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
  61. package/lib/components/SplitButton/index.d.ts +1 -1
  62. package/lib/components/SplitButton/index.js +1 -1
  63. package/lib/components/SplitButton/index.js.map +1 -1
  64. package/lib/components/SplitButton/renderSplitButton.d.ts +1 -1
  65. package/lib/components/SplitButton/renderSplitButton.js +6 -3
  66. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  67. package/lib/components/SplitButton/useSplitButton.d.ts +1 -1
  68. package/lib/components/SplitButton/useSplitButton.js +17 -5
  69. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  70. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  71. package/lib/components/SplitButton/useSplitButtonStyles.js +3 -2
  72. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  73. package/lib/components/ToggleButton/ToggleButton.js +6 -6
  74. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  75. package/lib/components/ToggleButton/ToggleButton.types.d.ts +2 -1
  76. package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
  77. package/lib/components/ToggleButton/index.d.ts +1 -1
  78. package/lib/components/ToggleButton/index.js +1 -1
  79. package/lib/components/ToggleButton/index.js.map +1 -1
  80. package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -1
  81. package/lib/components/ToggleButton/renderToggleButton.js +1 -1
  82. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
  83. package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
  84. package/lib/components/ToggleButton/useToggleButton.js +13 -9
  85. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  86. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  87. package/lib/components/ToggleButton/useToggleButtonStyles.js +35 -34
  88. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  89. package/lib/index.js.map +1 -1
  90. package/lib-commonjs/Button.js.map +1 -1
  91. package/lib-commonjs/CompoundButton.js.map +1 -1
  92. package/lib-commonjs/MenuButton.js.map +1 -1
  93. package/lib-commonjs/SplitButton.js.map +1 -1
  94. package/lib-commonjs/ToggleButton.js.map +1 -1
  95. package/lib-commonjs/components/Button/Button.js +3 -3
  96. package/lib-commonjs/components/Button/Button.js.map +1 -1
  97. package/lib-commonjs/components/Button/Button.types.d.ts +5 -5
  98. package/lib-commonjs/components/Button/Button.types.js.map +1 -1
  99. package/lib-commonjs/components/Button/index.d.ts +2 -2
  100. package/lib-commonjs/components/Button/index.js +3 -5
  101. package/lib-commonjs/components/Button/index.js.map +1 -1
  102. package/lib-commonjs/components/Button/renderButton.d.ts +1 -1
  103. package/lib-commonjs/components/Button/renderButton.js +8 -5
  104. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  105. package/lib-commonjs/components/Button/useButton.d.ts +1 -1
  106. package/lib-commonjs/components/Button/useButton.js +5 -4
  107. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  108. package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -9
  109. package/lib-commonjs/components/Button/useButtonStyles.js +106 -80
  110. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  111. package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -3
  112. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  113. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +4 -4
  114. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
  115. package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
  116. package/lib-commonjs/components/CompoundButton/index.js +3 -3
  117. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  118. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  119. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +10 -5
  120. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  121. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +1 -1
  122. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -4
  123. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  124. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  125. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +25 -23
  126. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  127. package/lib-commonjs/components/MenuButton/MenuButton.js +3 -3
  128. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  129. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +3 -4
  130. package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
  131. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  132. package/lib-commonjs/components/MenuButton/index.js +3 -3
  133. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  134. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +1 -1
  135. package/lib-commonjs/components/MenuButton/renderMenuButton.js +8 -5
  136. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  137. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +1 -1
  138. package/lib-commonjs/components/MenuButton/useMenuButton.js +5 -5
  139. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  140. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  141. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +8 -8
  142. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  143. package/lib-commonjs/components/SplitButton/SplitButton.js +3 -3
  144. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  145. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +6 -4
  146. package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
  147. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  148. package/lib-commonjs/components/SplitButton/index.js +3 -3
  149. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  150. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +1 -1
  151. package/lib-commonjs/components/SplitButton/renderSplitButton.js +8 -5
  152. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  153. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +1 -1
  154. package/lib-commonjs/components/SplitButton/useSplitButton.js +18 -6
  155. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  156. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  157. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +11 -9
  158. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  159. package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -3
  160. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  161. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +2 -1
  162. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
  163. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  164. package/lib-commonjs/components/ToggleButton/index.js +3 -3
  165. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  166. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -1
  167. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
  168. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
  169. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
  170. package/lib-commonjs/components/ToggleButton/useToggleButton.js +14 -10
  171. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  172. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  173. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +40 -38
  174. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  175. package/lib-commonjs/index.js.map +1 -1
  176. package/package.json +12 -15
  177. package/lib/common/isConformant.d.ts +0 -4
  178. package/lib/common/isConformant.js +0 -13
  179. package/lib/common/isConformant.js.map +0 -1
  180. package/lib-commonjs/common/isConformant.d.ts +0 -4
  181. package/lib-commonjs/common/isConformant.js +0 -24
  182. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -3,17 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useToggleButtonStyles = exports.toggleButtonClassName = void 0;
6
+ exports.useToggleButtonStyles_unstable = exports.toggleButtonClassName = 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
  const useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
11
13
 
12
14
  exports.toggleButtonClassName = 'fui-ToggleButton';
13
15
 
14
- const useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
16
+ const useCheckedStyles = /*#__PURE__*/react_1.__styles({
15
17
  "base": {
16
- "ayd6f0": "fg85c1j",
18
+ "De3pzq": "f1nfm20t",
17
19
  "g2u3we": "fj3muxo",
18
20
  "h3c5rm": ["f1akhkt", "f1lxtadh"],
19
21
  "B9xav0g": "f1aperda",
@@ -23,13 +25,13 @@ const useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
23
25
  "Bekrc4i": ["f5tn483", "f1ojsxk5"],
24
26
  "Bn0qgzm": "f1vxd6vx",
25
27
  "ibv6hh": ["f1ojsxk5", "f5tn483"],
26
- "v4pbla": "f56u8ty",
28
+ "Jwef8y": "f1knas48",
27
29
  "Bgoe8wy": "fvcxoqz",
28
30
  "Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
29
31
  "oetu4i": "f1xlaoq0",
30
32
  "gg5e9n": ["f1m52nbi", "f1ub3y4t"],
31
33
  "Bi91k9c": "fax3udt",
32
- "vv34bc": "fzgy25m",
34
+ "ecr2s2": "fb40n2d",
33
35
  "B6oc9vd": "fvs00aa",
34
36
  "ak43y8": ["f1assf6x", "f4ruux4"],
35
37
  "wmxk5l": "fumykes",
@@ -37,24 +39,24 @@ const useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
37
39
  "lj723h": "f1r2dosr"
38
40
  },
39
41
  "outline": {
40
- "ayd6f0": "f6r4cvw",
41
- "v4pbla": "f62j56f",
42
- "vv34bc": "flt377r"
42
+ "De3pzq": "f1q9pm1r",
43
+ "Jwef8y": "fjxutwb",
44
+ "ecr2s2": "fophhak"
43
45
  },
44
46
  "primary": {
45
- "ayd6f0": "fvinvdn",
47
+ "De3pzq": "f8w4g0q",
46
48
  "g2u3we": "f1p3nwhy",
47
49
  "h3c5rm": ["f11589ue", "f1pdflbu"],
48
50
  "B9xav0g": "f1q5o8ev",
49
51
  "zhjwy3": ["f1pdflbu", "f11589ue"],
50
52
  "sj55zd": "f1phragk",
51
- "v4pbla": "f1fitrdm",
53
+ "Jwef8y": "f15wkkf3",
52
54
  "Bgoe8wy": "f1s2uweq",
53
55
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
54
56
  "oetu4i": "f1ukrpxl",
55
57
  "gg5e9n": ["fecsdlb", "fr80ssc"],
56
58
  "Bi91k9c": "f1rq72xc",
57
- "vv34bc": "f4ihffn",
59
+ "ecr2s2": "fsp1bjw",
58
60
  "B6oc9vd": "ff472gp",
59
61
  "ak43y8": ["f4yyc7m", "ft2aflc"],
60
62
  "wmxk5l": "fggejwh",
@@ -62,19 +64,19 @@ const useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
62
64
  "lj723h": "f18otbis"
63
65
  },
64
66
  "subtle": {
65
- "ayd6f0": "f1n839y3",
67
+ "De3pzq": "fq5gl1p",
66
68
  "g2u3we": "f1p3nwhy",
67
69
  "h3c5rm": ["f11589ue", "f1pdflbu"],
68
70
  "B9xav0g": "f1q5o8ev",
69
71
  "zhjwy3": ["f1pdflbu", "f11589ue"],
70
72
  "sj55zd": "f1qj7y59",
71
- "v4pbla": "f4wzgrt",
73
+ "Jwef8y": "f1t94bn6",
72
74
  "Bgoe8wy": "f1s2uweq",
73
75
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
74
76
  "oetu4i": "f1ukrpxl",
75
77
  "gg5e9n": ["fecsdlb", "fr80ssc"],
76
78
  "Bi91k9c": "f139oj5f",
77
- "vv34bc": "f1be4e1d",
79
+ "ecr2s2": "f1wfn5kd",
78
80
  "B6oc9vd": "ff472gp",
79
81
  "ak43y8": ["f4yyc7m", "ft2aflc"],
80
82
  "wmxk5l": "fggejwh",
@@ -82,19 +84,19 @@ const useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
82
84
  "lj723h": "f19au66r"
83
85
  },
84
86
  "transparent": {
85
- "ayd6f0": "f6r4cvw",
87
+ "De3pzq": "f1q9pm1r",
86
88
  "g2u3we": "f1p3nwhy",
87
89
  "h3c5rm": ["f11589ue", "f1pdflbu"],
88
90
  "B9xav0g": "f1q5o8ev",
89
91
  "zhjwy3": ["f1pdflbu", "f11589ue"],
90
92
  "sj55zd": "f1qj7y59",
91
- "v4pbla": "f62j56f",
93
+ "Jwef8y": "fjxutwb",
92
94
  "Bgoe8wy": "f1s2uweq",
93
95
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
94
96
  "oetu4i": "f1ukrpxl",
95
97
  "gg5e9n": ["fecsdlb", "fr80ssc"],
96
98
  "Bi91k9c": "f139oj5f",
97
- "vv34bc": "flt377r",
99
+ "ecr2s2": "fophhak",
98
100
  "B6oc9vd": "ff472gp",
99
101
  "ak43y8": ["f4yyc7m", "ft2aflc"],
100
102
  "wmxk5l": "fggejwh",
@@ -102,26 +104,26 @@ const useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
102
104
  "lj723h": "f19au66r"
103
105
  }
104
106
  }, {
105
- "d": [".fg85c1j{background:var(--colorNeutralBackground1Selected);}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".f6r4cvw{background:var(--colorTransparentBackgroundSelected);}", ".fvinvdn{background:var(--colorBrandBackgroundSelected);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".f1n839y3{background:var(--colorSubtleBackgroundSelected);}", ".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],
106
- "h": [".f56u8ty:hover{background:var(--colorNeutralBackground1Hover);}", ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}", ".fax3udt:hover{color:var(--colorNeutralForeground1);}", ".f62j56f:hover{background:var(--colorTransparentBackgroundHover);}", ".f1fitrdm:hover{background:var(--colorBrandBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}", ".f4wzgrt:hover{background:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}"],
107
- "a": [".fzgy25m:active{background:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".flt377r:active{background:var(--colorTransparentBackgroundPressed);}", ".f4ihffn:active{background:var(--colorBrandBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1be4e1d:active{background:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
107
+ "d": [".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}", ".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}", ".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],
108
+ "h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}", ".fax3udt:hover{color:var(--colorNeutralForeground1);}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}", ".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}"],
109
+ "a": [".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".fsp1bjw:active{background-color:var(--colorBrandBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
108
110
  });
109
111
 
110
- const useDisabledStyles = /*#__PURE__*/react_make_styles_1.__styles({
112
+ const useDisabledStyles = /*#__PURE__*/react_1.__styles({
111
113
  "base": {
112
- "ayd6f0": "fqst6tg",
114
+ "De3pzq": "f1bg9a2p",
113
115
  "g2u3we": "f1jj8ep1",
114
116
  "h3c5rm": ["f15xbau", "fy0fskl"],
115
117
  "B9xav0g": "f4ikngz",
116
118
  "zhjwy3": ["fy0fskl", "f15xbau"],
117
119
  "sj55zd": "f1s2aq7o",
118
- "v4pbla": "f1nil5o8",
120
+ "Jwef8y": "f1falr9n",
119
121
  "Bgoe8wy": "f12mpcsy",
120
122
  "Bwzppfd": ["f1gwvigk", "f18rmfxp"],
121
123
  "oetu4i": "f1jnshp0",
122
124
  "gg5e9n": ["f18rmfxp", "f1gwvigk"],
123
125
  "Bi91k9c": "fvgxktp",
124
- "vv34bc": "fkqx3al",
126
+ "ecr2s2": "f1ryyzvn",
125
127
  "B6oc9vd": "fdi4vxw",
126
128
  "ak43y8": ["f4ryxzl", "fkdgpbx"],
127
129
  "wmxk5l": "fcmhn06",
@@ -144,46 +146,46 @@ const useDisabledStyles = /*#__PURE__*/react_make_styles_1.__styles({
144
146
  "B50zh58": ["ft2aflc", "f4yyc7m"]
145
147
  },
146
148
  "subtle": {
147
- "ayd6f0": "f1k2sg7s",
149
+ "De3pzq": "f3rmtva",
148
150
  "g2u3we": "f1p3nwhy",
149
151
  "h3c5rm": ["f11589ue", "f1pdflbu"],
150
152
  "B9xav0g": "f1q5o8ev",
151
153
  "zhjwy3": ["f1pdflbu", "f11589ue"],
152
- "v4pbla": "f1vc35iv",
154
+ "Jwef8y": "f1cio4g9",
153
155
  "Bgoe8wy": "f1s2uweq",
154
156
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
155
157
  "oetu4i": "f1ukrpxl",
156
158
  "gg5e9n": ["fecsdlb", "fr80ssc"],
157
- "vv34bc": "f17oliv9",
159
+ "ecr2s2": "f1rot6hk",
158
160
  "B6oc9vd": "ff472gp",
159
161
  "ak43y8": ["f4yyc7m", "ft2aflc"],
160
162
  "wmxk5l": "fggejwh",
161
163
  "B50zh58": ["ft2aflc", "f4yyc7m"]
162
164
  },
163
165
  "transparent": {
164
- "ayd6f0": "f1k2sg7s",
166
+ "De3pzq": "f3rmtva",
165
167
  "g2u3we": "f1p3nwhy",
166
168
  "h3c5rm": ["f11589ue", "f1pdflbu"],
167
169
  "B9xav0g": "f1q5o8ev",
168
170
  "zhjwy3": ["f1pdflbu", "f11589ue"],
169
- "v4pbla": "f1vc35iv",
171
+ "Jwef8y": "f1cio4g9",
170
172
  "Bgoe8wy": "f1s2uweq",
171
173
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
172
174
  "oetu4i": "f1ukrpxl",
173
175
  "gg5e9n": ["fecsdlb", "fr80ssc"],
174
- "vv34bc": "f17oliv9",
176
+ "ecr2s2": "f1rot6hk",
175
177
  "B6oc9vd": "ff472gp",
176
178
  "ak43y8": ["f4yyc7m", "ft2aflc"],
177
179
  "wmxk5l": "fggejwh",
178
180
  "B50zh58": ["ft2aflc", "f4yyc7m"]
179
181
  }
180
182
  }, {
181
- "d": [".fqst6tg{background:var(--colorNeutralBackgroundDisabled);}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1k2sg7s{background:none;}"],
182
- "h": [".f1nil5o8:hover{background:var(--colorNeutralBackgroundDisabled);}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1vc35iv:hover{background:none;}"],
183
- "a": [".fkqx3al:active{background:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f17oliv9:active{background:none;}"]
183
+ "d": [".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f3rmtva{background-color:transparent;}"],
184
+ "h": [".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1cio4g9:hover{background-color:transparent;}"],
185
+ "a": [".f1ryyzvn:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f1rot6hk:active{background-color:transparent;}"]
184
186
  });
185
187
 
186
- const useToggleButtonStyles = state => {
188
+ const useToggleButtonStyles_unstable = state => {
187
189
  const checkedStyles = useCheckedStyles();
188
190
  const disabledStyles = useDisabledStyles();
189
191
  const {
@@ -192,13 +194,13 @@ const useToggleButtonStyles = state => {
192
194
  disabled,
193
195
  disabledFocusable
194
196
  } = state;
195
- state.root.className = react_make_styles_1.mergeClasses(exports.toggleButtonClassName, // Checked styles
197
+ state.root.className = react_1.mergeClasses(exports.toggleButtonClassName, // Checked styles
196
198
  checked && checkedStyles.base, appearance && checked && checkedStyles[appearance], // Disabled styles
197
199
  (disabled || disabledFocusable) && disabledStyles.base, appearance && (disabled || disabledFocusable) && disabledStyles[appearance], // User provided class name
198
200
  state.root.className);
199
- useButtonStyles_1.useButtonStyles(state);
201
+ useButtonStyles_1.useButtonStyles_unstable(state);
200
202
  return state;
201
203
  };
202
204
 
203
- exports.useToggleButtonStyles = useToggleButtonStyles;
205
+ exports.useToggleButtonStyles_unstable = useToggleButtonStyles_unstable;
204
206
  //# sourceMappingURL=useToggleButtonStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ToggleButton/useToggleButtonStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGa,OAAA,CAAA,qBAAA,GAAwB,kBAAx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KAAmC,cAAc,CAAC,IAR7B,EASrB,UAAU,KAAK,QAAQ,IAAI,iBAAjB,CAAV,IAAiD,cAAc,CAAC,UAAD,CAT1C,EAWrB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAZU,CAAvB;AAeA,EAAA,iBAAA,CAAA,wBAAA,CAAyB,KAAzB;AAEA,SAAO,KAAP;AACD,CAxBM;;AAAM,OAAA,CAAA,8BAAA,GAA8B,8BAA9B","sourcesContent":["import { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { useButtonStyles_unstable } from '../Button/useButtonStyles';\nimport type { ToggleButtonState } from './ToggleButton.types';\n\nexport const toggleButtonClassName = 'fui-ToggleButton';\n\nconst useCheckedStyles = makeStyles({\n // Base styles\n base: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n color: tokens.colorNeutralForeground1,\n\n ...shorthands.borderWidth(tokens.strokeWidthThin),\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n ...shorthands.borderColor(tokens.colorNeutralStroke1Hover),\n color: tokens.colorNeutralForeground1,\n },\n\n ':active': {\n backgroundColor: tokens.colorNeutralBackground1Pressed,\n ...shorthands.borderColor(tokens.colorNeutralStroke1Pressed),\n color: tokens.colorNeutralForeground1,\n },\n },\n\n // Appearance variations\n outline: {\n backgroundColor: tokens.colorTransparentBackgroundSelected,\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n },\n },\n primary: {\n backgroundColor: tokens.colorBrandBackgroundSelected,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n\n ':hover': {\n backgroundColor: tokens.colorBrandBackgroundHover,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n },\n\n ':active': {\n backgroundColor: tokens.colorBrandBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n },\n },\n subtle: {\n backgroundColor: tokens.colorSubtleBackgroundSelected,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandSelected,\n\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n transparent: {\n backgroundColor: tokens.colorTransparentBackgroundSelected,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandSelected,\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandHover,\n },\n\n ':active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n});\n\nconst useDisabledStyles = makeStyles({\n // Base styles\n base: {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n },\n\n ':active': {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n },\n },\n\n // Appearance variations\n outline: {\n /* No styles */\n },\n primary: {\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n ...shorthands.borderColor('transparent'),\n },\n\n ':active': {\n ...shorthands.borderColor('transparent'),\n },\n },\n subtle: {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n\n ':active': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n },\n transparent: {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n\n ':active': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n },\n});\n\nexport const useToggleButtonStyles_unstable = (state: ToggleButtonState): ToggleButtonState => {\n const checkedStyles = useCheckedStyles();\n const disabledStyles = useDisabledStyles();\n\n const { appearance, checked, disabled, disabledFocusable } = state;\n\n state.root.className = mergeClasses(\n toggleButtonClassName,\n\n // Checked styles\n checked && checkedStyles.base,\n appearance && checked && checkedStyles[appearance],\n\n // Disabled styles\n (disabled || disabledFocusable) && disabledStyles.base,\n appearance && (disabled || disabledFocusable) && disabledStyles[appearance],\n\n // User provided class name\n state.root.className,\n );\n\n useButtonStyles_unstable(state);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Button';\nexport * from './CompoundButton';\nexport * from './MenuButton';\nexport * from './SplitButton';\nexport * from './ToggleButton';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-button",
3
- "version": "0.0.0-nightlyfe9829e48120211112.1",
3
+ "version": "0.0.0-nightlyff78d1e27a20220217.1",
4
4
  "description": "Fluent UI React Button component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,19 +19,17 @@
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-button/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-button/src && yarn docs",
25
+ "storybook": "node ../../scripts/storybook/runner",
26
+ "type-check": "tsc -b tsconfig.json"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@fluentui/a11y-testing": "^0.1.0",
29
- "@fluentui/babel-make-styles": "0.0.0-nightlyfe9829e48120211112.1",
30
30
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlyfe9829e48120211112.1",
32
31
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlyfe9829e48120211112.1",
34
- "@fluentui/react-menu": "0.0.0-nightlyfe9829e48120211112.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlyff78d1e27a20220217.1",
35
33
  "@fluentui/scripts": "^1.0.0",
36
34
  "@types/enzyme": "3.10.3",
37
35
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -45,12 +43,12 @@
45
43
  "react-test-renderer": "^16.3.0"
46
44
  },
47
45
  "dependencies": {
48
- "@fluentui/keyboard-keys": "0.0.0-nightlyfe9829e48120211112.1",
49
- "@fluentui/react-aria": "0.0.0-nightlyfe9829e48120211112.1",
50
- "@fluentui/react-icons": "^1.1.140",
51
- "@fluentui/react-make-styles": "0.0.0-nightlyfe9829e48120211112.1",
52
- "@fluentui/react-tabster": "0.0.0-nightlyfe9829e48120211112.1",
53
- "@fluentui/react-utilities": "0.0.0-nightlyfe9829e48120211112.1",
46
+ "@fluentui/keyboard-keys": "0.0.0-nightlyff78d1e27a20220217.1",
47
+ "@fluentui/react-aria": "0.0.0-nightlyff78d1e27a20220217.1",
48
+ "@fluentui/react-icons": "^2.0.159-beta.10",
49
+ "@fluentui/react-tabster": "0.0.0-nightlyff78d1e27a20220217.1",
50
+ "@fluentui/react-utilities": "0.0.0-nightlyff78d1e27a20220217.1",
51
+ "@griffel/react": "1.0.0",
54
52
  "tslib": "^2.1.0"
55
53
  },
56
54
  "peerDependencies": {
@@ -60,7 +58,6 @@
60
58
  "react-dom": ">=16.8.0 <18.0.0"
61
59
  },
62
60
  "beachball": {
63
- "tag": "beta",
64
61
  "disallowedChangeTypes": [
65
62
  "major",
66
63
  "minor",
@@ -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,13 +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
- disabledTests: ['has-docblock', 'kebab-aria-attributes'],
8
- extraTests: makeStylesTests,
9
- skipAsPropTests: true
10
- };
11
- baseIsConformant(defaultOptions, testInfo);
12
- }
13
- //# 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,aAAa,EAAE,CAAC,cAAD,EAAiB,uBAAjB,CAH4C;AAI3D,IAAA,UAAU,EAAE,eAJ+C;AAK3D,IAAA,eAAe,EAAE;AAL0C,GAA7D;AAQA,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,24 +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
- disabledTests: ['has-docblock', 'kebab-aria-attributes'],
17
- extraTests: react_conformance_make_styles_1.default,
18
- skipAsPropTests: true
19
- };
20
- react_conformance_1.isConformant(defaultOptions, testInfo);
21
- }
22
-
23
- exports.isConformant = isConformant;
24
- //# 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,aAAa,EAAE,CAAC,cAAD,EAAiB,uBAAjB,CAH4C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA,OAJ+C;AAK3D,IAAA,eAAe,EAAE;AAL0C,GAA7D;AAQA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAZD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}