@fluentui/react-button 9.0.0-nightly.d730088d7f.0 → 9.0.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. package/CHANGELOG.json +864 -27
  2. package/CHANGELOG.md +375 -181
  3. package/dist/{react-button.d.ts → index.d.ts} +97 -53
  4. package/{lib → dist}/tsdoc-metadata.json +0 -0
  5. package/lib/Button.js.map +1 -1
  6. package/lib/CompoundButton.js.map +1 -1
  7. package/lib/MenuButton.js.map +1 -1
  8. package/lib/SplitButton.js.map +1 -1
  9. package/lib/ToggleButton.js.map +1 -1
  10. package/lib/components/Button/Button.js +7 -7
  11. package/lib/components/Button/Button.js.map +1 -1
  12. package/lib/components/Button/Button.types.js.map +1 -1
  13. package/lib/components/Button/index.js +3 -2
  14. package/lib/components/Button/index.js.map +1 -1
  15. package/lib/components/Button/renderButton.js +13 -9
  16. package/lib/components/Button/renderButton.js.map +1 -1
  17. package/lib/components/Button/useButton.js +23 -25
  18. package/lib/components/Button/useButton.js.map +1 -1
  19. package/lib/components/Button/useButtonStyles.js +248 -162
  20. package/lib/components/Button/useButtonStyles.js.map +1 -1
  21. package/lib/components/CompoundButton/CompoundButton.js +7 -7
  22. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  23. package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
  24. package/lib/components/CompoundButton/index.js +3 -1
  25. package/lib/components/CompoundButton/index.js.map +1 -1
  26. package/lib/components/CompoundButton/renderCompoundButton.js +15 -9
  27. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  28. package/lib/components/CompoundButton/useCompoundButton.js +13 -8
  29. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  30. package/lib/components/CompoundButton/useCompoundButtonStyles.js +101 -75
  31. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  32. package/lib/components/MenuButton/MenuButton.js +7 -7
  33. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  34. package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
  35. package/lib/components/MenuButton/index.js +3 -1
  36. package/lib/components/MenuButton/index.js.map +1 -1
  37. package/lib/components/MenuButton/renderMenuButton.js +13 -9
  38. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  39. package/lib/components/MenuButton/useMenuButton.js +11 -11
  40. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  41. package/lib/components/MenuButton/useMenuButtonStyles.js +44 -17
  42. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  43. package/lib/components/SplitButton/SplitButton.js +7 -7
  44. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  45. package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
  46. package/lib/components/SplitButton/index.js +3 -1
  47. package/lib/components/SplitButton/index.js.map +1 -1
  48. package/lib/components/SplitButton/renderSplitButton.js +9 -7
  49. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  50. package/lib/components/SplitButton/useSplitButton.js +58 -49
  51. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  52. package/lib/components/SplitButton/useSplitButtonStyles.js +53 -36
  53. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  54. package/lib/components/ToggleButton/ToggleButton.js +7 -7
  55. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  56. package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
  57. package/lib/components/ToggleButton/index.js +3 -1
  58. package/lib/components/ToggleButton/index.js.map +1 -1
  59. package/lib/components/ToggleButton/renderToggleButton.js +1 -1
  60. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
  61. package/lib/components/ToggleButton/useToggleButton.js +5 -41
  62. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  63. package/lib/components/ToggleButton/useToggleButtonStyles.js +114 -85
  64. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  65. package/lib/index.js +11 -5
  66. package/lib/index.js.map +1 -1
  67. package/lib/utils/index.js +2 -0
  68. package/lib/utils/index.js.map +1 -0
  69. package/lib/utils/useToggleState.js +37 -0
  70. package/lib/utils/useToggleState.js.map +1 -0
  71. package/lib-commonjs/Button.js +1 -1
  72. package/lib-commonjs/Button.js.map +1 -1
  73. package/lib-commonjs/CompoundButton.js +1 -1
  74. package/lib-commonjs/CompoundButton.js.map +1 -1
  75. package/lib-commonjs/MenuButton.js +1 -1
  76. package/lib-commonjs/MenuButton.js.map +1 -1
  77. package/lib-commonjs/SplitButton.js +1 -1
  78. package/lib-commonjs/SplitButton.js.map +1 -1
  79. package/lib-commonjs/ToggleButton.js +1 -1
  80. package/lib-commonjs/ToggleButton.js.map +1 -1
  81. package/lib-commonjs/components/Button/Button.js +8 -8
  82. package/lib-commonjs/components/Button/Button.js.map +1 -1
  83. package/lib-commonjs/components/Button/Button.types.js.map +1 -1
  84. package/lib-commonjs/components/Button/index.js +18 -6
  85. package/lib-commonjs/components/Button/index.js.map +1 -1
  86. package/lib-commonjs/components/Button/renderButton.js +17 -14
  87. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  88. package/lib-commonjs/components/Button/useButton.js +27 -29
  89. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  90. package/lib-commonjs/components/Button/useButtonStyles.js +251 -163
  91. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  92. package/lib-commonjs/components/CompoundButton/CompoundButton.js +8 -8
  93. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  94. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
  95. package/lib-commonjs/components/CompoundButton/index.js +18 -4
  96. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  97. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +19 -14
  98. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  99. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +16 -12
  100. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  101. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +104 -77
  102. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  103. package/lib-commonjs/components/MenuButton/MenuButton.js +8 -8
  104. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  105. package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
  106. package/lib-commonjs/components/MenuButton/index.js +18 -4
  107. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  108. package/lib-commonjs/components/MenuButton/renderMenuButton.js +17 -14
  109. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  110. package/lib-commonjs/components/MenuButton/useMenuButton.js +15 -16
  111. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  112. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +48 -19
  113. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  114. package/lib-commonjs/components/SplitButton/SplitButton.js +8 -8
  115. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  116. package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
  117. package/lib-commonjs/components/SplitButton/index.js +18 -4
  118. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  119. package/lib-commonjs/components/SplitButton/renderSplitButton.js +13 -12
  120. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  121. package/lib-commonjs/components/SplitButton/useSplitButton.js +62 -54
  122. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  123. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +57 -39
  124. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  125. package/lib-commonjs/components/ToggleButton/ToggleButton.js +8 -8
  126. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  127. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
  128. package/lib-commonjs/components/ToggleButton/index.js +18 -4
  129. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  130. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
  131. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
  132. package/lib-commonjs/components/ToggleButton/useToggleButton.js +7 -45
  133. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  134. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +119 -86
  135. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  136. package/lib-commonjs/index.js +204 -6
  137. package/lib-commonjs/index.js.map +1 -1
  138. package/lib-commonjs/utils/index.js +10 -0
  139. package/lib-commonjs/utils/index.js.map +1 -0
  140. package/lib-commonjs/utils/useToggleState.js +48 -0
  141. package/lib-commonjs/utils/useToggleState.js.map +1 -0
  142. package/package.json +22 -27
  143. package/dist/demo/index.html +0 -71
  144. package/dist/demo/react-dom.development.js +0 -21413
  145. package/dist/demo/react.development.js +0 -3155
  146. package/lib/Button.d.ts +0 -1
  147. package/lib/CompoundButton.d.ts +0 -1
  148. package/lib/MenuButton.d.ts +0 -1
  149. package/lib/SplitButton.d.ts +0 -1
  150. package/lib/ToggleButton.d.ts +0 -1
  151. package/lib/common/isConformant.d.ts +0 -4
  152. package/lib/common/isConformant.js +0 -13
  153. package/lib/common/isConformant.js.map +0 -1
  154. package/lib/components/Button/Button.d.ts +0 -6
  155. package/lib/components/Button/Button.types.d.ts +0 -62
  156. package/lib/components/Button/index.d.ts +0 -5
  157. package/lib/components/Button/renderButton.d.ts +0 -5
  158. package/lib/components/Button/useButton.d.ts +0 -8
  159. package/lib/components/Button/useButtonStyles.d.ts +0 -10
  160. package/lib/components/CompoundButton/CompoundButton.d.ts +0 -6
  161. package/lib/components/CompoundButton/CompoundButton.types.d.ts +0 -14
  162. package/lib/components/CompoundButton/index.d.ts +0 -5
  163. package/lib/components/CompoundButton/renderCompoundButton.d.ts +0 -5
  164. package/lib/components/CompoundButton/useCompoundButton.d.ts +0 -8
  165. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +0 -2
  166. package/lib/components/MenuButton/MenuButton.d.ts +0 -6
  167. package/lib/components/MenuButton/MenuButton.types.d.ts +0 -11
  168. package/lib/components/MenuButton/index.d.ts +0 -5
  169. package/lib/components/MenuButton/renderMenuButton.d.ts +0 -5
  170. package/lib/components/MenuButton/useMenuButton.d.ts +0 -6
  171. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +0 -2
  172. package/lib/components/SplitButton/SplitButton.d.ts +0 -7
  173. package/lib/components/SplitButton/SplitButton.types.d.ts +0 -19
  174. package/lib/components/SplitButton/index.d.ts +0 -5
  175. package/lib/components/SplitButton/renderSplitButton.d.ts +0 -5
  176. package/lib/components/SplitButton/useSplitButton.d.ts +0 -8
  177. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +0 -2
  178. package/lib/components/ToggleButton/ToggleButton.d.ts +0 -6
  179. package/lib/components/ToggleButton/ToggleButton.types.d.ts +0 -19
  180. package/lib/components/ToggleButton/index.d.ts +0 -5
  181. package/lib/components/ToggleButton/renderToggleButton.d.ts +0 -1
  182. package/lib/components/ToggleButton/useToggleButton.d.ts +0 -9
  183. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +0 -2
  184. package/lib/index.d.ts +0 -5
  185. package/lib-commonjs/Button.d.ts +0 -1
  186. package/lib-commonjs/CompoundButton.d.ts +0 -1
  187. package/lib-commonjs/MenuButton.d.ts +0 -1
  188. package/lib-commonjs/SplitButton.d.ts +0 -1
  189. package/lib-commonjs/ToggleButton.d.ts +0 -1
  190. package/lib-commonjs/common/isConformant.d.ts +0 -4
  191. package/lib-commonjs/common/isConformant.js +0 -24
  192. package/lib-commonjs/common/isConformant.js.map +0 -1
  193. package/lib-commonjs/components/Button/Button.d.ts +0 -6
  194. package/lib-commonjs/components/Button/Button.types.d.ts +0 -62
  195. package/lib-commonjs/components/Button/index.d.ts +0 -5
  196. package/lib-commonjs/components/Button/renderButton.d.ts +0 -5
  197. package/lib-commonjs/components/Button/useButton.d.ts +0 -8
  198. package/lib-commonjs/components/Button/useButtonStyles.d.ts +0 -10
  199. package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +0 -6
  200. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +0 -14
  201. package/lib-commonjs/components/CompoundButton/index.d.ts +0 -5
  202. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +0 -5
  203. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +0 -8
  204. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +0 -2
  205. package/lib-commonjs/components/MenuButton/MenuButton.d.ts +0 -6
  206. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +0 -11
  207. package/lib-commonjs/components/MenuButton/index.d.ts +0 -5
  208. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +0 -5
  209. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +0 -6
  210. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +0 -2
  211. package/lib-commonjs/components/SplitButton/SplitButton.d.ts +0 -7
  212. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +0 -19
  213. package/lib-commonjs/components/SplitButton/index.d.ts +0 -5
  214. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +0 -5
  215. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +0 -8
  216. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +0 -2
  217. package/lib-commonjs/components/ToggleButton/ToggleButton.d.ts +0 -6
  218. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +0 -19
  219. package/lib-commonjs/components/ToggleButton/index.d.ts +0 -5
  220. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +0 -1
  221. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +0 -9
  222. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +0 -2
  223. package/lib-commonjs/index.d.ts +0 -5
@@ -3,128 +3,154 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useToggleButtonStyles = void 0;
6
+ exports.useToggleButtonStyles_unstable = exports.useDisabledStyles = exports.useCheckedStyles = exports.toggleButtonClassName = exports.toggleButtonClassNames = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
9
9
 
10
- var useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
11
 
12
- var useCheckedStyles = /*#__PURE__*/react_make_styles_1.__styles({
12
+ const react_1 = /*#__PURE__*/require("@griffel/react");
13
+
14
+ const useButtonStyles_1 = /*#__PURE__*/require("../Button/useButtonStyles");
15
+
16
+ exports.toggleButtonClassNames = {
17
+ root: 'fui-ToggleButton',
18
+ icon: 'fui-ToggleButton__icon'
19
+ };
20
+ /**
21
+ * @deprecated Use `toggleButtonClassName.root` instead.
22
+ */
23
+
24
+ exports.toggleButtonClassName = exports.toggleButtonClassNames.root;
25
+ exports.useCheckedStyles = /*#__PURE__*/react_1.__styles({
13
26
  "base": {
14
- "ayd6f0": "fg85c1j",
27
+ "De3pzq": "f1nfm20t",
15
28
  "g2u3we": "fj3muxo",
16
29
  "h3c5rm": ["f1akhkt", "f1lxtadh"],
17
30
  "B9xav0g": "f1aperda",
18
31
  "zhjwy3": ["f1lxtadh", "f1akhkt"],
19
- "sj55zd": "f19n0e5",
32
+ "sj55zd": "f14nttnl",
20
33
  "B4j52fo": "f192inf7",
21
34
  "Bekrc4i": ["f5tn483", "f1ojsxk5"],
22
35
  "Bn0qgzm": "f1vxd6vx",
23
36
  "ibv6hh": ["f1ojsxk5", "f5tn483"],
24
- "v4pbla": "f56u8ty",
37
+ "D0sxk3": "fxoiby5",
38
+ "t6yez3": "f15q0o9g",
39
+ "Jwef8y": "f1knas48",
25
40
  "Bgoe8wy": "fvcxoqz",
26
41
  "Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
27
42
  "oetu4i": "f1xlaoq0",
28
43
  "gg5e9n": ["f1m52nbi", "f1ub3y4t"],
29
- "Bi91k9c": "fax3udt",
30
- "vv34bc": "fzgy25m",
31
- "B6oc9vd": "fvs00aa",
32
- "ak43y8": ["f1assf6x", "f4ruux4"],
33
- "wmxk5l": "fumykes",
34
- "B50zh58": ["f4ruux4", "f1assf6x"],
35
- "lj723h": "f1r2dosr"
44
+ "Bi91k9c": "feu1g3u",
45
+ "iro3zm": "f141de4g",
46
+ "b661bw": "f11v6sdu",
47
+ "Bk6r4ia": ["f9yn8i4", "f1ajwf28"],
48
+ "B9zn80p": "f1uwu36w",
49
+ "Bpld233": ["f1ajwf28", "f9yn8i4"],
50
+ "B2d53fq": "f9olfzr"
51
+ },
52
+ "highContrast": {
53
+ "Bjwas2f": "f132fbg1",
54
+ "Bn1d65q": ["f1ene5x0", "fzbc999"],
55
+ "Bxeuatn": "f6jgcol",
56
+ "n51gp8": ["fzbc999", "f1ene5x0"],
57
+ "Bbusuzp": "f1isslxv",
58
+ "G867l3": "fr7nen4",
59
+ "gdbnj": ["f10aq6ld", "fq8rgo9"],
60
+ "mxns5l": "f1md2qq2",
61
+ "o3nasb": ["fq8rgo9", "f10aq6ld"]
36
62
  },
37
63
  "outline": {
38
- "ayd6f0": "f6r4cvw",
39
- "v4pbla": "f62j56f",
40
- "vv34bc": "flt377r"
64
+ "De3pzq": "f1q9pm1r",
65
+ "Jwef8y": "fjxutwb",
66
+ "iro3zm": "fwiml72"
41
67
  },
42
68
  "primary": {
43
- "ayd6f0": "fvinvdn",
69
+ "De3pzq": "f8w4g0q",
44
70
  "g2u3we": "f1p3nwhy",
45
71
  "h3c5rm": ["f11589ue", "f1pdflbu"],
46
72
  "B9xav0g": "f1q5o8ev",
47
73
  "zhjwy3": ["f1pdflbu", "f11589ue"],
48
74
  "sj55zd": "f1phragk",
49
- "v4pbla": "f1fitrdm",
75
+ "Jwef8y": "f15wkkf3",
50
76
  "Bgoe8wy": "f1s2uweq",
51
77
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
52
78
  "oetu4i": "f1ukrpxl",
53
79
  "gg5e9n": ["fecsdlb", "fr80ssc"],
54
80
  "Bi91k9c": "f1rq72xc",
55
- "vv34bc": "f4ihffn",
56
- "B6oc9vd": "ff472gp",
57
- "ak43y8": ["f4yyc7m", "ft2aflc"],
58
- "wmxk5l": "fggejwh",
59
- "B50zh58": ["ft2aflc", "f4yyc7m"],
60
- "lj723h": "f18otbis"
81
+ "iro3zm": "fnp9lpt",
82
+ "b661bw": "f1h0usnq",
83
+ "Bk6r4ia": ["fs4ktlq", "fx2bmrt"],
84
+ "B9zn80p": "f16h9ulv",
85
+ "Bpld233": ["fx2bmrt", "fs4ktlq"],
86
+ "B2d53fq": "f1d6v5y2"
61
87
  },
88
+ "secondary": {},
62
89
  "subtle": {
63
- "ayd6f0": "f1n839y3",
90
+ "De3pzq": "fq5gl1p",
64
91
  "g2u3we": "f1p3nwhy",
65
92
  "h3c5rm": ["f11589ue", "f1pdflbu"],
66
93
  "B9xav0g": "f1q5o8ev",
67
94
  "zhjwy3": ["f1pdflbu", "f11589ue"],
68
95
  "sj55zd": "f1qj7y59",
69
- "v4pbla": "f4wzgrt",
96
+ "Jwef8y": "f1t94bn6",
70
97
  "Bgoe8wy": "f1s2uweq",
71
98
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
72
99
  "oetu4i": "f1ukrpxl",
73
100
  "gg5e9n": ["fecsdlb", "fr80ssc"],
74
101
  "Bi91k9c": "f139oj5f",
75
- "vv34bc": "f1be4e1d",
76
- "B6oc9vd": "ff472gp",
77
- "ak43y8": ["f4yyc7m", "ft2aflc"],
78
- "wmxk5l": "fggejwh",
79
- "B50zh58": ["ft2aflc", "f4yyc7m"],
80
- "lj723h": "f19au66r"
102
+ "iro3zm": "fsv2rcd",
103
+ "b661bw": "f1h0usnq",
104
+ "Bk6r4ia": ["fs4ktlq", "fx2bmrt"],
105
+ "B9zn80p": "f16h9ulv",
106
+ "Bpld233": ["fx2bmrt", "fs4ktlq"],
107
+ "B2d53fq": "f1fg1p5m"
81
108
  },
82
109
  "transparent": {
83
- "ayd6f0": "f6r4cvw",
110
+ "De3pzq": "f1q9pm1r",
84
111
  "g2u3we": "f1p3nwhy",
85
112
  "h3c5rm": ["f11589ue", "f1pdflbu"],
86
113
  "B9xav0g": "f1q5o8ev",
87
114
  "zhjwy3": ["f1pdflbu", "f11589ue"],
88
115
  "sj55zd": "f1qj7y59",
89
- "v4pbla": "f62j56f",
116
+ "Jwef8y": "fjxutwb",
90
117
  "Bgoe8wy": "f1s2uweq",
91
118
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
92
119
  "oetu4i": "f1ukrpxl",
93
120
  "gg5e9n": ["fecsdlb", "fr80ssc"],
94
121
  "Bi91k9c": "f139oj5f",
95
- "vv34bc": "flt377r",
96
- "B6oc9vd": "ff472gp",
97
- "ak43y8": ["f4yyc7m", "ft2aflc"],
98
- "wmxk5l": "fggejwh",
99
- "B50zh58": ["ft2aflc", "f4yyc7m"],
100
- "lj723h": "f19au66r"
122
+ "iro3zm": "fwiml72",
123
+ "b661bw": "f1h0usnq",
124
+ "Bk6r4ia": ["fs4ktlq", "fx2bmrt"],
125
+ "B9zn80p": "f16h9ulv",
126
+ "Bpld233": ["fx2bmrt", "fs4ktlq"],
127
+ "B2d53fq": "f1fg1p5m"
101
128
  }
102
129
  }, {
103
- "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);}"],
104
- "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);}"],
105
- "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);}"]
130
+ "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);}", ".f14nttnl{color:var(--colorNeutralForeground1Selected);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fxoiby5 .fui-Icon-filled{display:inline;}", ".f15q0o9g .fui-Icon-regular{display:none;}", ".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);}"],
131
+ "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);}", ".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}", ".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}", ".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}", ".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);}", ".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}", ".f1h0usnq:hover:active{border-top-color:transparent;}", ".fs4ktlq:hover:active{border-right-color:transparent;}", ".fx2bmrt:hover:active{border-left-color:transparent;}", ".f16h9ulv:hover:active{border-bottom-color:transparent;}", ".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}", ".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}", ".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],
132
+ "t": ["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}", "@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}", "@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}", "@media (forced-colors: active){.fzbc999{border-left-color:Highlight;}.f1ene5x0{border-right-color:Highlight;}}", "@media (forced-colors: active){.f1isslxv{color:Highlight;}}", "@media (forced-colors: active){.fr7nen4:focus{border-top-color:Highlight;}}", "@media (forced-colors: active){.f10aq6ld:focus{border-right-color:Highlight;}.fq8rgo9:focus{border-left-color:Highlight;}}", "@media (forced-colors: active){.f1md2qq2:focus{border-bottom-color:Highlight;}}", "@media (forced-colors: active){.fq8rgo9:focus{border-left-color:Highlight;}.f10aq6ld:focus{border-right-color:Highlight;}}"]
106
133
  });
107
-
108
- var useDisabledStyles = /*#__PURE__*/react_make_styles_1.__styles({
134
+ exports.useDisabledStyles = /*#__PURE__*/react_1.__styles({
109
135
  "base": {
110
- "ayd6f0": "fqst6tg",
136
+ "De3pzq": "f1bg9a2p",
111
137
  "g2u3we": "f1jj8ep1",
112
138
  "h3c5rm": ["f15xbau", "fy0fskl"],
113
139
  "B9xav0g": "f4ikngz",
114
140
  "zhjwy3": ["fy0fskl", "f15xbau"],
115
141
  "sj55zd": "f1s2aq7o",
116
- "v4pbla": "f1nil5o8",
142
+ "Jwef8y": "f1falr9n",
117
143
  "Bgoe8wy": "f12mpcsy",
118
144
  "Bwzppfd": ["f1gwvigk", "f18rmfxp"],
119
145
  "oetu4i": "f1jnshp0",
120
146
  "gg5e9n": ["f18rmfxp", "f1gwvigk"],
121
147
  "Bi91k9c": "fvgxktp",
122
- "vv34bc": "fkqx3al",
123
- "B6oc9vd": "fdi4vxw",
124
- "ak43y8": ["f4ryxzl", "fkdgpbx"],
125
- "wmxk5l": "fcmhn06",
126
- "B50zh58": ["fkdgpbx", "f4ryxzl"],
127
- "lj723h": "f19wldhg"
148
+ "iro3zm": "f1t6o4dc",
149
+ "b661bw": "f10ztigi",
150
+ "Bk6r4ia": ["f1ft5sdu", "f1gzf82w"],
151
+ "B9zn80p": "f12zbtn2",
152
+ "Bpld233": ["f1gzf82w", "f1ft5sdu"],
153
+ "B2d53fq": "fcvwxyo"
128
154
  },
129
155
  "outline": {},
130
156
  "primary": {
@@ -136,65 +162,72 @@ var useDisabledStyles = /*#__PURE__*/react_make_styles_1.__styles({
136
162
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
137
163
  "oetu4i": "f1ukrpxl",
138
164
  "gg5e9n": ["fecsdlb", "fr80ssc"],
139
- "B6oc9vd": "ff472gp",
140
- "ak43y8": ["f4yyc7m", "ft2aflc"],
141
- "wmxk5l": "fggejwh",
142
- "B50zh58": ["ft2aflc", "f4yyc7m"]
165
+ "b661bw": "f1h0usnq",
166
+ "Bk6r4ia": ["fs4ktlq", "fx2bmrt"],
167
+ "B9zn80p": "f16h9ulv",
168
+ "Bpld233": ["fx2bmrt", "fs4ktlq"]
143
169
  },
170
+ "secondary": {},
144
171
  "subtle": {
145
- "ayd6f0": "f1k2sg7s",
172
+ "De3pzq": "f3rmtva",
146
173
  "g2u3we": "f1p3nwhy",
147
174
  "h3c5rm": ["f11589ue", "f1pdflbu"],
148
175
  "B9xav0g": "f1q5o8ev",
149
176
  "zhjwy3": ["f1pdflbu", "f11589ue"],
150
- "v4pbla": "f1vc35iv",
177
+ "Jwef8y": "f1cio4g9",
151
178
  "Bgoe8wy": "f1s2uweq",
152
179
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
153
180
  "oetu4i": "f1ukrpxl",
154
181
  "gg5e9n": ["fecsdlb", "fr80ssc"],
155
- "vv34bc": "f17oliv9",
156
- "B6oc9vd": "ff472gp",
157
- "ak43y8": ["f4yyc7m", "ft2aflc"],
158
- "wmxk5l": "fggejwh",
159
- "B50zh58": ["ft2aflc", "f4yyc7m"]
182
+ "iro3zm": "fvaszet",
183
+ "b661bw": "f1h0usnq",
184
+ "Bk6r4ia": ["fs4ktlq", "fx2bmrt"],
185
+ "B9zn80p": "f16h9ulv",
186
+ "Bpld233": ["fx2bmrt", "fs4ktlq"]
160
187
  },
161
188
  "transparent": {
162
- "ayd6f0": "f1k2sg7s",
189
+ "De3pzq": "f3rmtva",
163
190
  "g2u3we": "f1p3nwhy",
164
191
  "h3c5rm": ["f11589ue", "f1pdflbu"],
165
192
  "B9xav0g": "f1q5o8ev",
166
193
  "zhjwy3": ["f1pdflbu", "f11589ue"],
167
- "v4pbla": "f1vc35iv",
194
+ "Jwef8y": "f1cio4g9",
168
195
  "Bgoe8wy": "f1s2uweq",
169
196
  "Bwzppfd": ["fr80ssc", "fecsdlb"],
170
197
  "oetu4i": "f1ukrpxl",
171
198
  "gg5e9n": ["fecsdlb", "fr80ssc"],
172
- "vv34bc": "f17oliv9",
173
- "B6oc9vd": "ff472gp",
174
- "ak43y8": ["f4yyc7m", "ft2aflc"],
175
- "wmxk5l": "fggejwh",
176
- "B50zh58": ["ft2aflc", "f4yyc7m"]
199
+ "iro3zm": "fvaszet",
200
+ "b661bw": "f1h0usnq",
201
+ "Bk6r4ia": ["fs4ktlq", "fx2bmrt"],
202
+ "B9zn80p": "f16h9ulv",
203
+ "Bpld233": ["fx2bmrt", "fs4ktlq"]
177
204
  }
178
205
  }, {
179
- "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;}"],
180
- "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;}"],
181
- "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;}"]
206
+ "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;}"],
207
+ "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);}", ".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fcvwxyo:hover:active{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;}", ".f1h0usnq:hover:active{border-top-color:transparent;}", ".fs4ktlq:hover:active{border-right-color:transparent;}", ".fx2bmrt:hover:active{border-left-color:transparent;}", ".f16h9ulv:hover:active{border-bottom-color:transparent;}", ".f1cio4g9:hover{background-color:transparent;}", ".fvaszet:hover:active{background-color:transparent;}"]
182
208
  });
183
209
 
184
- var useToggleButtonStyles = function (state) {
185
- var checkedStyles = useCheckedStyles();
186
- var disabledStyles = useDisabledStyles();
187
- var appearance = state.appearance,
188
- checked = state.checked,
189
- disabled = state.disabled,
190
- disabledFocusable = state.disabledFocusable;
191
- state.root.className = react_make_styles_1.mergeClasses( // Checked styles
192
- checked && checkedStyles.base, appearance && checked && checkedStyles[appearance], // Disabled styles
210
+ const useToggleButtonStyles_unstable = state => {
211
+ const checkedStyles = exports.useCheckedStyles();
212
+ const disabledStyles = exports.useDisabledStyles();
213
+ const {
214
+ appearance,
215
+ checked,
216
+ disabled,
217
+ disabledFocusable
218
+ } = state;
219
+ state.root.className = react_1.mergeClasses(exports.toggleButtonClassNames.root, // Checked styles
220
+ checked && checkedStyles.base, checked && checkedStyles.highContrast, appearance && checked && checkedStyles[appearance], // Disabled styles
193
221
  (disabled || disabledFocusable) && disabledStyles.base, appearance && (disabled || disabledFocusable) && disabledStyles[appearance], // User provided class name
194
222
  state.root.className);
195
- useButtonStyles_1.useButtonStyles(state);
223
+
224
+ if (state.icon) {
225
+ state.icon.className = react_1.mergeClasses(exports.toggleButtonClassNames.icon, state.icon.className);
226
+ }
227
+
228
+ useButtonStyles_1.useButtonStyles_unstable(state);
196
229
  return state;
197
230
  };
198
231
 
199
- exports.useToggleButtonStyles = useToggleButtonStyles;
232
+ exports.useToggleButtonStyles_unstable = useToggleButtonStyles_unstable;
200
233
  //# sourceMappingURL=useToggleButtonStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ToggleButton/useToggleButtonStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAGA,IAAM,gBAAgB,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAzB;;AAuFA,IAAM,iBAAiB,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAa,OAAA,CAAA,sBAAA,CAAuB,IAApC,EAA0C,KAAK,CAAC,IAAN,CAAW,SAArD,CAAvB;AACD;;AAED,EAAA,iBAAA,CAAA,wBAAA,CAAyB,KAAzB;AAEA,SAAO,KAAP;AACD,CA7BM;;AAAM,OAAA,CAAA,8BAAA,GAA8B,8BAA9B","sourcesContent":["import { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';\nimport { tokens } from '@fluentui/react-theme';\nimport { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { useButtonStyles_unstable } from '../Button/useButtonStyles';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { ButtonSlots } from '../Button/Button.types';\nimport type { ToggleButtonState } from './ToggleButton.types';\n\nexport const toggleButtonClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fui-ToggleButton',\n icon: 'fui-ToggleButton__icon',\n};\n\n/**\n * @deprecated Use `toggleButtonClassName.root` instead.\n */\nexport const toggleButtonClassName = toggleButtonClassNames.root;\n\nexport const useCheckedStyles = makeStyles({\n // Base styles\n base: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n color: tokens.colorNeutralForeground1Selected,\n\n ...shorthands.borderWidth(tokens.strokeWidthThin),\n\n [`& .${iconFilledClassName}`]: {\n display: 'inline',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none',\n },\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n ...shorthands.borderColor(tokens.colorNeutralStroke1Hover),\n color: tokens.colorNeutralForeground1Hover,\n },\n\n ':hover:active': {\n backgroundColor: tokens.colorNeutralBackground1Pressed,\n ...shorthands.borderColor(tokens.colorNeutralStroke1Pressed),\n color: tokens.colorNeutralForeground1Pressed,\n },\n },\n\n // High contrast styles\n highContrast: {\n '@media (forced-colors: active)': {\n ...shorthands.borderColor('Highlight'),\n color: 'Highlight',\n\n ':focus': {\n ...shorthands.borderColor('Highlight'),\n },\n },\n },\n\n // Appearance variations\n outline: {\n backgroundColor: tokens.colorTransparentBackgroundSelected,\n\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n },\n\n ':hover: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 ':hover:active': {\n backgroundColor: tokens.colorBrandBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForegroundOnBrand,\n },\n },\n secondary: {\n /* The secondary styles are exactly the same as the base styles. */\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 ':hover: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 ':hover:active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n ...shorthands.borderColor('transparent'),\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n});\n\nexport const 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 ':hover: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 ':hover:active': {\n ...shorthands.borderColor('transparent'),\n },\n },\n secondary: {\n /* The secondary styles are exactly the same as the base styles. */\n },\n subtle: {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n\n ':hover': {\n backgroundColor: 'transparent',\n ...shorthands.borderColor('transparent'),\n },\n\n ':hover: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 ':hover: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 toggleButtonClassNames.root,\n\n // Checked styles\n checked && checkedStyles.base,\n checked && checkedStyles.highContrast,\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 if (state.icon) {\n state.icon.className = mergeClasses(toggleButtonClassNames.icon, state.icon.className);\n }\n\n useButtonStyles_unstable(state);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -3,16 +3,214 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.useToggleState = exports.useToggleButton_unstable = exports.useToggleButtonStyles_unstable = exports.toggleButtonClassNames = exports.toggleButtonClassName = exports.renderToggleButton_unstable = exports.ToggleButton = exports.useSplitButton_unstable = exports.useSplitButtonStyles_unstable = exports.splitButtonClassNames = exports.splitButtonClassName = exports.renderSplitButton_unstable = exports.SplitButton = exports.useMenuButton_unstable = exports.useMenuButtonStyles_unstable = exports.renderMenuButton_unstable = exports.menuButtonClassNames = exports.menuButtonClassName = exports.MenuButton = exports.useCompoundButton_unstable = exports.useCompoundButtonStyles_unstable = exports.renderCompoundButton_unstable = exports.compoundButtonClassNames = exports.compoundButtonClassName = exports.CompoundButton = exports.useButton_unstable = exports.useButtonStyles_unstable = exports.renderButton_unstable = exports.buttonClassNames = exports.buttonClassName = exports.Button = void 0;
6
7
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ var Button_1 = /*#__PURE__*/require("./Button");
8
9
 
9
- tslib_1.__exportStar(require("./Button"), exports);
10
+ Object.defineProperty(exports, "Button", {
11
+ enumerable: true,
12
+ get: function () {
13
+ return Button_1.Button;
14
+ }
15
+ }); // eslint-disable-next-line deprecation/deprecation
10
16
 
11
- tslib_1.__exportStar(require("./CompoundButton"), exports);
17
+ Object.defineProperty(exports, "buttonClassName", {
18
+ enumerable: true,
19
+ get: function () {
20
+ return Button_1.buttonClassName;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "buttonClassNames", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return Button_1.buttonClassNames;
27
+ }
28
+ });
29
+ Object.defineProperty(exports, "renderButton_unstable", {
30
+ enumerable: true,
31
+ get: function () {
32
+ return Button_1.renderButton_unstable;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, "useButtonStyles_unstable", {
36
+ enumerable: true,
37
+ get: function () {
38
+ return Button_1.useButtonStyles_unstable;
39
+ }
40
+ });
41
+ Object.defineProperty(exports, "useButton_unstable", {
42
+ enumerable: true,
43
+ get: function () {
44
+ return Button_1.useButton_unstable;
45
+ }
46
+ });
12
47
 
13
- tslib_1.__exportStar(require("./MenuButton"), exports);
48
+ var CompoundButton_1 = /*#__PURE__*/require("./CompoundButton");
14
49
 
15
- tslib_1.__exportStar(require("./SplitButton"), exports);
50
+ Object.defineProperty(exports, "CompoundButton", {
51
+ enumerable: true,
52
+ get: function () {
53
+ return CompoundButton_1.CompoundButton;
54
+ }
55
+ }); // eslint-disable-next-line deprecation/deprecation
56
+
57
+ Object.defineProperty(exports, "compoundButtonClassName", {
58
+ enumerable: true,
59
+ get: function () {
60
+ return CompoundButton_1.compoundButtonClassName;
61
+ }
62
+ });
63
+ Object.defineProperty(exports, "compoundButtonClassNames", {
64
+ enumerable: true,
65
+ get: function () {
66
+ return CompoundButton_1.compoundButtonClassNames;
67
+ }
68
+ });
69
+ Object.defineProperty(exports, "renderCompoundButton_unstable", {
70
+ enumerable: true,
71
+ get: function () {
72
+ return CompoundButton_1.renderCompoundButton_unstable;
73
+ }
74
+ });
75
+ Object.defineProperty(exports, "useCompoundButtonStyles_unstable", {
76
+ enumerable: true,
77
+ get: function () {
78
+ return CompoundButton_1.useCompoundButtonStyles_unstable;
79
+ }
80
+ });
81
+ Object.defineProperty(exports, "useCompoundButton_unstable", {
82
+ enumerable: true,
83
+ get: function () {
84
+ return CompoundButton_1.useCompoundButton_unstable;
85
+ }
86
+ });
87
+
88
+ var MenuButton_1 = /*#__PURE__*/require("./MenuButton");
89
+
90
+ Object.defineProperty(exports, "MenuButton", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return MenuButton_1.MenuButton;
94
+ }
95
+ }); // eslint-disable-next-line deprecation/deprecation
96
+
97
+ Object.defineProperty(exports, "menuButtonClassName", {
98
+ enumerable: true,
99
+ get: function () {
100
+ return MenuButton_1.menuButtonClassName;
101
+ }
102
+ });
103
+ Object.defineProperty(exports, "menuButtonClassNames", {
104
+ enumerable: true,
105
+ get: function () {
106
+ return MenuButton_1.menuButtonClassNames;
107
+ }
108
+ });
109
+ Object.defineProperty(exports, "renderMenuButton_unstable", {
110
+ enumerable: true,
111
+ get: function () {
112
+ return MenuButton_1.renderMenuButton_unstable;
113
+ }
114
+ });
115
+ Object.defineProperty(exports, "useMenuButtonStyles_unstable", {
116
+ enumerable: true,
117
+ get: function () {
118
+ return MenuButton_1.useMenuButtonStyles_unstable;
119
+ }
120
+ });
121
+ Object.defineProperty(exports, "useMenuButton_unstable", {
122
+ enumerable: true,
123
+ get: function () {
124
+ return MenuButton_1.useMenuButton_unstable;
125
+ }
126
+ });
16
127
 
17
- tslib_1.__exportStar(require("./ToggleButton"), exports);
128
+ var SplitButton_1 = /*#__PURE__*/require("./SplitButton");
129
+
130
+ Object.defineProperty(exports, "SplitButton", {
131
+ enumerable: true,
132
+ get: function () {
133
+ return SplitButton_1.SplitButton;
134
+ }
135
+ });
136
+ Object.defineProperty(exports, "renderSplitButton_unstable", {
137
+ enumerable: true,
138
+ get: function () {
139
+ return SplitButton_1.renderSplitButton_unstable;
140
+ }
141
+ }); // eslint-disable-next-line deprecation/deprecation
142
+
143
+ Object.defineProperty(exports, "splitButtonClassName", {
144
+ enumerable: true,
145
+ get: function () {
146
+ return SplitButton_1.splitButtonClassName;
147
+ }
148
+ });
149
+ Object.defineProperty(exports, "splitButtonClassNames", {
150
+ enumerable: true,
151
+ get: function () {
152
+ return SplitButton_1.splitButtonClassNames;
153
+ }
154
+ });
155
+ Object.defineProperty(exports, "useSplitButtonStyles_unstable", {
156
+ enumerable: true,
157
+ get: function () {
158
+ return SplitButton_1.useSplitButtonStyles_unstable;
159
+ }
160
+ });
161
+ Object.defineProperty(exports, "useSplitButton_unstable", {
162
+ enumerable: true,
163
+ get: function () {
164
+ return SplitButton_1.useSplitButton_unstable;
165
+ }
166
+ });
167
+
168
+ var ToggleButton_1 = /*#__PURE__*/require("./ToggleButton");
169
+
170
+ Object.defineProperty(exports, "ToggleButton", {
171
+ enumerable: true,
172
+ get: function () {
173
+ return ToggleButton_1.ToggleButton;
174
+ }
175
+ });
176
+ Object.defineProperty(exports, "renderToggleButton_unstable", {
177
+ enumerable: true,
178
+ get: function () {
179
+ return ToggleButton_1.renderToggleButton_unstable;
180
+ }
181
+ }); // eslint-disable-next-line deprecation/deprecation
182
+
183
+ Object.defineProperty(exports, "toggleButtonClassName", {
184
+ enumerable: true,
185
+ get: function () {
186
+ return ToggleButton_1.toggleButtonClassName;
187
+ }
188
+ });
189
+ Object.defineProperty(exports, "toggleButtonClassNames", {
190
+ enumerable: true,
191
+ get: function () {
192
+ return ToggleButton_1.toggleButtonClassNames;
193
+ }
194
+ });
195
+ Object.defineProperty(exports, "useToggleButtonStyles_unstable", {
196
+ enumerable: true,
197
+ get: function () {
198
+ return ToggleButton_1.useToggleButtonStyles_unstable;
199
+ }
200
+ });
201
+ Object.defineProperty(exports, "useToggleButton_unstable", {
202
+ enumerable: true,
203
+ get: function () {
204
+ return ToggleButton_1.useToggleButton_unstable;
205
+ }
206
+ });
207
+
208
+ var index_1 = /*#__PURE__*/require("./utils/index");
209
+
210
+ Object.defineProperty(exports, "useToggleState", {
211
+ enumerable: true,
212
+ get: function () {
213
+ return index_1.useToggleState;
214
+ }
215
+ });
18
216
  //# sourceMappingURL=index.js.map
@@ -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":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AA,WAAA,cAAA,CAAA,sBAAA;AAAsB;AAAtB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,gCAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,cAAA,CAAA,8BAAA;AAA8B;AAA9B,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,0BAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,cAAA,CAAA,wBAAA;AAAwB;AAAxB,CAAA;;AAIF,IAAA,OAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,gBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,OAAA,CAAA,cAAA;AAAc;AAAd,CAAA","sourcesContent":["export {\n Button,\n // eslint-disable-next-line deprecation/deprecation\n buttonClassName,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button';\nexport {\n CompoundButton,\n // eslint-disable-next-line deprecation/deprecation\n compoundButtonClassName,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';\nexport {\n MenuButton,\n // eslint-disable-next-line deprecation/deprecation\n menuButtonClassName,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n} from './MenuButton';\nexport type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n // eslint-disable-next-line deprecation/deprecation\n splitButtonClassName,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n} from './SplitButton';\nexport type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n // eslint-disable-next-line deprecation/deprecation\n toggleButtonClassName,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n} from './ToggleButton';\nexport type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';\n\nexport { useToggleState } from './utils/index';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./useToggleState"), exports);
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["utils/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './useToggleState';\n"],"sourceRoot":"../src/"}