@fluentui/react-button 1.0.0-beta.8 → 9.0.0-alpha.100

Sign up to get free protection for your applications and to get access to all the features.
Files changed (418) hide show
  1. package/CHANGELOG.json +3258 -1
  2. package/CHANGELOG.md +1247 -2
  3. package/README.md +19 -108
  4. package/dist/demo/index.html +71 -0
  5. package/dist/demo/react-dom.development.js +21413 -0
  6. package/dist/demo/react.development.js +3155 -0
  7. package/dist/react-button.d.ts +130 -355
  8. package/lib/Button.js.map +1 -1
  9. package/lib/CompoundButton.js.map +1 -1
  10. package/lib/MenuButton.js.map +1 -1
  11. package/lib/SplitButton.js.map +1 -1
  12. package/lib/ToggleButton.js.map +1 -1
  13. package/lib/common/isConformant.d.ts +4 -2
  14. package/lib/common/isConformant.js +9 -5
  15. package/lib/common/isConformant.js.map +1 -1
  16. package/lib/components/Button/Button.d.ts +4 -5
  17. package/lib/components/Button/Button.js +8 -9
  18. package/lib/components/Button/Button.js.map +1 -1
  19. package/lib/components/Button/Button.types.d.ts +46 -114
  20. package/lib/components/Button/Button.types.js +1 -0
  21. package/lib/components/Button/Button.types.js.map +1 -1
  22. package/lib/components/Button/index.d.ts +3 -3
  23. package/lib/components/Button/index.js +4 -3
  24. package/lib/components/Button/index.js.map +1 -1
  25. package/lib/components/Button/renderButton.d.ts +2 -2
  26. package/lib/components/Button/renderButton.js +10 -10
  27. package/lib/components/Button/renderButton.js.map +1 -1
  28. package/lib/components/Button/useButton.d.ts +5 -10
  29. package/lib/components/Button/useButton.js +49 -24
  30. package/lib/components/Button/useButton.js.map +1 -1
  31. package/lib/components/Button/useButtonStyles.d.ts +10 -0
  32. package/lib/components/Button/useButtonStyles.js +354 -0
  33. package/lib/components/Button/useButtonStyles.js.map +1 -0
  34. package/lib/components/CompoundButton/CompoundButton.d.ts +4 -5
  35. package/lib/components/CompoundButton/CompoundButton.js +8 -11
  36. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  37. package/lib/components/CompoundButton/CompoundButton.types.d.ts +8 -27
  38. package/lib/components/CompoundButton/CompoundButton.types.js +1 -0
  39. package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
  40. package/lib/components/CompoundButton/index.d.ts +2 -1
  41. package/lib/components/CompoundButton/index.js +3 -1
  42. package/lib/components/CompoundButton/index.js.map +1 -1
  43. package/lib/components/CompoundButton/renderCompoundButton.d.ts +2 -2
  44. package/lib/components/CompoundButton/renderCompoundButton.js +10 -12
  45. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  46. package/lib/components/CompoundButton/useCompoundButton.d.ts +5 -10
  47. package/lib/components/CompoundButton/useCompoundButton.js +25 -28
  48. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  49. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +2 -0
  50. package/lib/components/CompoundButton/useCompoundButtonStyles.js +164 -0
  51. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
  52. package/lib/components/MenuButton/MenuButton.d.ts +4 -5
  53. package/lib/components/MenuButton/MenuButton.js +8 -21
  54. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  55. package/lib/components/MenuButton/MenuButton.types.d.ts +7 -50
  56. package/lib/components/MenuButton/MenuButton.types.js +1 -0
  57. package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
  58. package/lib/components/MenuButton/index.d.ts +2 -3
  59. package/lib/components/MenuButton/index.js +3 -3
  60. package/lib/components/MenuButton/index.js.map +1 -1
  61. package/lib/components/MenuButton/renderMenuButton.d.ts +2 -4
  62. package/lib/components/MenuButton/renderMenuButton.js +10 -14
  63. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  64. package/lib/components/MenuButton/useMenuButton.d.ts +3 -7
  65. package/lib/components/MenuButton/useMenuButton.js +28 -22
  66. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  67. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +2 -0
  68. package/lib/components/MenuButton/useMenuButtonStyles.js +34 -0
  69. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -0
  70. package/lib/components/SplitButton/SplitButton.d.ts +5 -5
  71. package/lib/components/SplitButton/SplitButton.js +9 -22
  72. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  73. package/lib/components/SplitButton/SplitButton.types.d.ts +12 -28
  74. package/lib/components/SplitButton/SplitButton.types.js +1 -0
  75. package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
  76. package/lib/components/SplitButton/index.d.ts +3 -2
  77. package/lib/components/SplitButton/index.js +3 -1
  78. package/lib/components/SplitButton/index.js.map +1 -1
  79. package/lib/components/SplitButton/renderSplitButton.d.ts +2 -4
  80. package/lib/components/SplitButton/renderSplitButton.js +8 -10
  81. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  82. package/lib/components/SplitButton/useSplitButton.d.ts +5 -7
  83. package/lib/components/SplitButton/useSplitButton.js +69 -47
  84. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  85. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +2 -0
  86. package/lib/components/SplitButton/useSplitButtonStyles.js +77 -0
  87. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -0
  88. package/lib/components/ToggleButton/ToggleButton.d.ts +4 -5
  89. package/lib/components/ToggleButton/ToggleButton.js +8 -11
  90. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  91. package/lib/components/ToggleButton/ToggleButton.types.d.ts +11 -17
  92. package/lib/components/ToggleButton/ToggleButton.types.js +1 -0
  93. package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
  94. package/lib/components/ToggleButton/index.d.ts +3 -3
  95. package/lib/components/ToggleButton/index.js +4 -3
  96. package/lib/components/ToggleButton/index.js.map +1 -1
  97. package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -0
  98. package/lib/components/ToggleButton/renderToggleButton.js +2 -0
  99. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -0
  100. package/lib/components/ToggleButton/useToggleButton.d.ts +8 -5
  101. package/lib/components/ToggleButton/useToggleButton.js +47 -5
  102. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  103. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +2 -0
  104. package/lib/components/ToggleButton/useToggleButtonStyles.js +190 -0
  105. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
  106. package/lib/index.d.ts +0 -1
  107. package/lib/index.js +0 -1
  108. package/lib/index.js.map +1 -1
  109. package/lib/tsdoc-metadata.json +1 -1
  110. package/lib-commonjs/Button.js +7 -2
  111. package/lib-commonjs/Button.js.map +1 -1
  112. package/lib-commonjs/CompoundButton.js +7 -2
  113. package/lib-commonjs/CompoundButton.js.map +1 -1
  114. package/lib-commonjs/MenuButton.js +7 -2
  115. package/lib-commonjs/MenuButton.js.map +1 -1
  116. package/lib-commonjs/SplitButton.js +7 -2
  117. package/lib-commonjs/SplitButton.js.map +1 -1
  118. package/lib-commonjs/ToggleButton.js +7 -2
  119. package/lib-commonjs/ToggleButton.js.map +1 -1
  120. package/lib-commonjs/common/isConformant.d.ts +4 -2
  121. package/lib-commonjs/common/isConformant.js +19 -7
  122. package/lib-commonjs/common/isConformant.js.map +1 -1
  123. package/lib-commonjs/components/Button/Button.d.ts +4 -5
  124. package/lib-commonjs/components/Button/Button.js +20 -12
  125. package/lib-commonjs/components/Button/Button.js.map +1 -1
  126. package/lib-commonjs/components/Button/Button.types.d.ts +46 -114
  127. package/lib-commonjs/components/Button/Button.types.js +4 -1
  128. package/lib-commonjs/components/Button/Button.types.js.map +1 -1
  129. package/lib-commonjs/components/Button/index.d.ts +3 -3
  130. package/lib-commonjs/components/Button/index.js +23 -5
  131. package/lib-commonjs/components/Button/index.js.map +1 -1
  132. package/lib-commonjs/components/Button/renderButton.d.ts +2 -2
  133. package/lib-commonjs/components/Button/renderButton.js +24 -14
  134. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  135. package/lib-commonjs/components/Button/useButton.d.ts +5 -10
  136. package/lib-commonjs/components/Button/useButton.js +59 -25
  137. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  138. package/lib-commonjs/components/Button/useButtonStyles.d.ts +10 -0
  139. package/lib-commonjs/components/Button/useButtonStyles.js +365 -0
  140. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -0
  141. package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +4 -5
  142. package/lib-commonjs/components/CompoundButton/CompoundButton.js +20 -14
  143. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  144. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +8 -27
  145. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js +4 -1
  146. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
  147. package/lib-commonjs/components/CompoundButton/index.d.ts +2 -1
  148. package/lib-commonjs/components/CompoundButton/index.js +22 -3
  149. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  150. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +2 -2
  151. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +24 -16
  152. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  153. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +5 -10
  154. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +35 -28
  155. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  156. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +2 -0
  157. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +175 -0
  158. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
  159. package/lib-commonjs/components/MenuButton/MenuButton.d.ts +4 -5
  160. package/lib-commonjs/components/MenuButton/MenuButton.js +20 -24
  161. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  162. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +7 -50
  163. package/lib-commonjs/components/MenuButton/MenuButton.types.js +4 -1
  164. package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
  165. package/lib-commonjs/components/MenuButton/index.d.ts +2 -3
  166. package/lib-commonjs/components/MenuButton/index.js +22 -5
  167. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  168. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +2 -4
  169. package/lib-commonjs/components/MenuButton/renderMenuButton.js +24 -18
  170. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  171. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +3 -7
  172. package/lib-commonjs/components/MenuButton/useMenuButton.js +41 -23
  173. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  174. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +2 -0
  175. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +44 -0
  176. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -0
  177. package/lib-commonjs/components/SplitButton/SplitButton.d.ts +5 -5
  178. package/lib-commonjs/components/SplitButton/SplitButton.js +21 -25
  179. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  180. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +12 -28
  181. package/lib-commonjs/components/SplitButton/SplitButton.types.js +4 -1
  182. package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
  183. package/lib-commonjs/components/SplitButton/index.d.ts +3 -2
  184. package/lib-commonjs/components/SplitButton/index.js +22 -3
  185. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  186. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +2 -4
  187. package/lib-commonjs/components/SplitButton/renderSplitButton.js +22 -14
  188. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  189. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +5 -7
  190. package/lib-commonjs/components/SplitButton/useSplitButton.js +81 -48
  191. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  192. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +2 -0
  193. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +88 -0
  194. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -0
  195. package/lib-commonjs/components/ToggleButton/ToggleButton.d.ts +4 -5
  196. package/lib-commonjs/components/ToggleButton/ToggleButton.js +20 -14
  197. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  198. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +11 -17
  199. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js +4 -1
  200. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
  201. package/lib-commonjs/components/ToggleButton/index.d.ts +3 -3
  202. package/lib-commonjs/components/ToggleButton/index.js +23 -5
  203. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  204. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -0
  205. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +16 -0
  206. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -0
  207. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +8 -5
  208. package/lib-commonjs/components/ToggleButton/useToggleButton.js +60 -7
  209. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  210. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +2 -0
  211. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +200 -0
  212. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
  213. package/lib-commonjs/index.d.ts +0 -1
  214. package/lib-commonjs/index.js +11 -3
  215. package/lib-commonjs/index.js.map +1 -1
  216. package/package.json +37 -35
  217. package/config/api-extractor.json +0 -3
  218. package/config/pre-copy.json +0 -9
  219. package/config/tests.js +0 -11
  220. package/etc/react-button.api.md +0 -335
  221. package/just.config.ts +0 -3
  222. package/lib/components/Button/useButtonClasses.d.ts +0 -29
  223. package/lib/components/Button/useButtonClasses.js +0 -417
  224. package/lib/components/Button/useButtonClasses.js.map +0 -1
  225. package/lib/components/Button/useButtonState.d.ts +0 -6
  226. package/lib/components/Button/useButtonState.js +0 -28
  227. package/lib/components/Button/useButtonState.js.map +0 -1
  228. package/lib/components/CompoundButton/useCompoundButtonClasses.d.ts +0 -4
  229. package/lib/components/CompoundButton/useCompoundButtonClasses.js +0 -180
  230. package/lib/components/CompoundButton/useCompoundButtonClasses.js.map +0 -1
  231. package/lib/components/MenuButton/useExpanded.d.ts +0 -18
  232. package/lib/components/MenuButton/useExpanded.js +0 -61
  233. package/lib/components/MenuButton/useExpanded.js.map +0 -1
  234. package/lib/components/MenuButton/useMenuButtonClasses.d.ts +0 -3
  235. package/lib/components/MenuButton/useMenuButtonClasses.js +0 -78
  236. package/lib/components/MenuButton/useMenuButtonClasses.js.map +0 -1
  237. package/lib/components/MenuButton/useMenuButtonState.d.ts +0 -2
  238. package/lib/components/MenuButton/useMenuButtonState.js +0 -9
  239. package/lib/components/MenuButton/useMenuButtonState.js.map +0 -1
  240. package/lib/components/SplitButton/useSplitButtonClasses.d.ts +0 -3
  241. package/lib/components/SplitButton/useSplitButtonClasses.js +0 -123
  242. package/lib/components/SplitButton/useSplitButtonClasses.js.map +0 -1
  243. package/lib/components/ToggleButton/useChecked.d.ts +0 -14
  244. package/lib/components/ToggleButton/useChecked.js +0 -25
  245. package/lib/components/ToggleButton/useChecked.js.map +0 -1
  246. package/lib/components/ToggleButton/useToggleButtonClasses.d.ts +0 -3
  247. package/lib/components/ToggleButton/useToggleButtonClasses.js +0 -130
  248. package/lib/components/ToggleButton/useToggleButtonClasses.js.map +0 -1
  249. package/lib/utils/tempTypes.d.ts +0 -33
  250. package/lib/utils/tempTypes.js +0 -4
  251. package/lib/utils/tempTypes.js.map +0 -1
  252. package/lib/version.d.ts +0 -1
  253. package/lib/version.js +0 -5
  254. package/lib/version.js.map +0 -1
  255. package/lib-amd/Button.d.ts +0 -1
  256. package/lib-amd/Button.js +0 -6
  257. package/lib-amd/Button.js.map +0 -1
  258. package/lib-amd/CompoundButton.d.ts +0 -1
  259. package/lib-amd/CompoundButton.js +0 -6
  260. package/lib-amd/CompoundButton.js.map +0 -1
  261. package/lib-amd/MenuButton.d.ts +0 -1
  262. package/lib-amd/MenuButton.js +0 -6
  263. package/lib-amd/MenuButton.js.map +0 -1
  264. package/lib-amd/SplitButton.d.ts +0 -1
  265. package/lib-amd/SplitButton.js +0 -6
  266. package/lib-amd/SplitButton.js.map +0 -1
  267. package/lib-amd/ToggleButton.d.ts +0 -1
  268. package/lib-amd/ToggleButton.js +0 -6
  269. package/lib-amd/ToggleButton.js.map +0 -1
  270. package/lib-amd/common/isConformant.d.ts +0 -2
  271. package/lib-amd/common/isConformant.js +0 -13
  272. package/lib-amd/common/isConformant.js.map +0 -1
  273. package/lib-amd/components/Button/Button.d.ts +0 -7
  274. package/lib-amd/components/Button/Button.js +0 -16
  275. package/lib-amd/components/Button/Button.js.map +0 -1
  276. package/lib-amd/components/Button/Button.types.d.ts +0 -130
  277. package/lib-amd/components/Button/Button.types.js +0 -5
  278. package/lib-amd/components/Button/Button.types.js.map +0 -1
  279. package/lib-amd/components/Button/index.d.ts +0 -5
  280. package/lib-amd/components/Button/index.js +0 -9
  281. package/lib-amd/components/Button/index.js.map +0 -1
  282. package/lib-amd/components/Button/renderButton.d.ts +0 -5
  283. package/lib-amd/components/Button/renderButton.js +0 -17
  284. package/lib-amd/components/Button/renderButton.js.map +0 -1
  285. package/lib-amd/components/Button/useButton.d.ts +0 -13
  286. package/lib-amd/components/Button/useButton.js +0 -28
  287. package/lib-amd/components/Button/useButton.js.map +0 -1
  288. package/lib-amd/components/Button/useButtonClasses.d.ts +0 -29
  289. package/lib-amd/components/Button/useButtonClasses.js +0 -417
  290. package/lib-amd/components/Button/useButtonClasses.js.map +0 -1
  291. package/lib-amd/components/Button/useButtonState.d.ts +0 -6
  292. package/lib-amd/components/Button/useButtonState.js +0 -32
  293. package/lib-amd/components/Button/useButtonState.js.map +0 -1
  294. package/lib-amd/components/CompoundButton/CompoundButton.d.ts +0 -7
  295. package/lib-amd/components/CompoundButton/CompoundButton.js +0 -17
  296. package/lib-amd/components/CompoundButton/CompoundButton.js.map +0 -1
  297. package/lib-amd/components/CompoundButton/CompoundButton.types.d.ts +0 -33
  298. package/lib-amd/components/CompoundButton/CompoundButton.types.js +0 -5
  299. package/lib-amd/components/CompoundButton/CompoundButton.types.js.map +0 -1
  300. package/lib-amd/components/CompoundButton/index.d.ts +0 -4
  301. package/lib-amd/components/CompoundButton/index.js +0 -8
  302. package/lib-amd/components/CompoundButton/index.js.map +0 -1
  303. package/lib-amd/components/CompoundButton/renderCompoundButton.d.ts +0 -5
  304. package/lib-amd/components/CompoundButton/renderCompoundButton.js +0 -19
  305. package/lib-amd/components/CompoundButton/renderCompoundButton.js.map +0 -1
  306. package/lib-amd/components/CompoundButton/useCompoundButton.d.ts +0 -13
  307. package/lib-amd/components/CompoundButton/useCompoundButton.js +0 -32
  308. package/lib-amd/components/CompoundButton/useCompoundButton.js.map +0 -1
  309. package/lib-amd/components/CompoundButton/useCompoundButtonClasses.d.ts +0 -4
  310. package/lib-amd/components/CompoundButton/useCompoundButtonClasses.js +0 -182
  311. package/lib-amd/components/CompoundButton/useCompoundButtonClasses.js.map +0 -1
  312. package/lib-amd/components/MenuButton/MenuButton.d.ts +0 -7
  313. package/lib-amd/components/MenuButton/MenuButton.js +0 -26
  314. package/lib-amd/components/MenuButton/MenuButton.js.map +0 -1
  315. package/lib-amd/components/MenuButton/MenuButton.types.d.ts +0 -54
  316. package/lib-amd/components/MenuButton/MenuButton.types.js +0 -5
  317. package/lib-amd/components/MenuButton/MenuButton.types.js.map +0 -1
  318. package/lib-amd/components/MenuButton/index.d.ts +0 -6
  319. package/lib-amd/components/MenuButton/index.js +0 -10
  320. package/lib-amd/components/MenuButton/index.js.map +0 -1
  321. package/lib-amd/components/MenuButton/renderMenuButton.d.ts +0 -7
  322. package/lib-amd/components/MenuButton/renderMenuButton.js +0 -21
  323. package/lib-amd/components/MenuButton/renderMenuButton.js.map +0 -1
  324. package/lib-amd/components/MenuButton/useExpanded.d.ts +0 -18
  325. package/lib-amd/components/MenuButton/useExpanded.js +0 -62
  326. package/lib-amd/components/MenuButton/useExpanded.js.map +0 -1
  327. package/lib-amd/components/MenuButton/useMenuButton.d.ts +0 -10
  328. package/lib-amd/components/MenuButton/useMenuButton.js +0 -27
  329. package/lib-amd/components/MenuButton/useMenuButton.js.map +0 -1
  330. package/lib-amd/components/MenuButton/useMenuButtonClasses.d.ts +0 -3
  331. package/lib-amd/components/MenuButton/useMenuButtonClasses.js +0 -81
  332. package/lib-amd/components/MenuButton/useMenuButtonClasses.js.map +0 -1
  333. package/lib-amd/components/MenuButton/useMenuButtonState.d.ts +0 -2
  334. package/lib-amd/components/MenuButton/useMenuButtonState.js +0 -11
  335. package/lib-amd/components/MenuButton/useMenuButtonState.js.map +0 -1
  336. package/lib-amd/components/SplitButton/SplitButton.d.ts +0 -7
  337. package/lib-amd/components/SplitButton/SplitButton.js +0 -26
  338. package/lib-amd/components/SplitButton/SplitButton.js.map +0 -1
  339. package/lib-amd/components/SplitButton/SplitButton.types.d.ts +0 -35
  340. package/lib-amd/components/SplitButton/SplitButton.types.js +0 -5
  341. package/lib-amd/components/SplitButton/SplitButton.types.js.map +0 -1
  342. package/lib-amd/components/SplitButton/index.d.ts +0 -4
  343. package/lib-amd/components/SplitButton/index.js +0 -8
  344. package/lib-amd/components/SplitButton/index.js.map +0 -1
  345. package/lib-amd/components/SplitButton/renderSplitButton.d.ts +0 -7
  346. package/lib-amd/components/SplitButton/renderSplitButton.js +0 -17
  347. package/lib-amd/components/SplitButton/renderSplitButton.js.map +0 -1
  348. package/lib-amd/components/SplitButton/useSplitButton.d.ts +0 -10
  349. package/lib-amd/components/SplitButton/useSplitButton.js +0 -50
  350. package/lib-amd/components/SplitButton/useSplitButton.js.map +0 -1
  351. package/lib-amd/components/SplitButton/useSplitButtonClasses.d.ts +0 -3
  352. package/lib-amd/components/SplitButton/useSplitButtonClasses.js +0 -123
  353. package/lib-amd/components/SplitButton/useSplitButtonClasses.js.map +0 -1
  354. package/lib-amd/components/ToggleButton/ToggleButton.d.ts +0 -7
  355. package/lib-amd/components/ToggleButton/ToggleButton.js +0 -17
  356. package/lib-amd/components/ToggleButton/ToggleButton.js.map +0 -1
  357. package/lib-amd/components/ToggleButton/ToggleButton.types.d.ts +0 -25
  358. package/lib-amd/components/ToggleButton/ToggleButton.types.js +0 -5
  359. package/lib-amd/components/ToggleButton/ToggleButton.types.js.map +0 -1
  360. package/lib-amd/components/ToggleButton/index.d.ts +0 -5
  361. package/lib-amd/components/ToggleButton/index.js +0 -9
  362. package/lib-amd/components/ToggleButton/index.js.map +0 -1
  363. package/lib-amd/components/ToggleButton/useChecked.d.ts +0 -14
  364. package/lib-amd/components/ToggleButton/useChecked.js +0 -27
  365. package/lib-amd/components/ToggleButton/useChecked.js.map +0 -1
  366. package/lib-amd/components/ToggleButton/useToggleButton.d.ts +0 -6
  367. package/lib-amd/components/ToggleButton/useToggleButton.js +0 -10
  368. package/lib-amd/components/ToggleButton/useToggleButton.js.map +0 -1
  369. package/lib-amd/components/ToggleButton/useToggleButtonClasses.d.ts +0 -3
  370. package/lib-amd/components/ToggleButton/useToggleButtonClasses.js +0 -132
  371. package/lib-amd/components/ToggleButton/useToggleButtonClasses.js.map +0 -1
  372. package/lib-amd/index.d.ts +0 -6
  373. package/lib-amd/index.js +0 -10
  374. package/lib-amd/index.js.map +0 -1
  375. package/lib-amd/utils/tempTypes.d.ts +0 -33
  376. package/lib-amd/utils/tempTypes.js +0 -8
  377. package/lib-amd/utils/tempTypes.js.map +0 -1
  378. package/lib-amd/version.d.ts +0 -1
  379. package/lib-amd/version.js +0 -6
  380. package/lib-amd/version.js.map +0 -1
  381. package/lib-commonjs/components/Button/useButtonClasses.d.ts +0 -29
  382. package/lib-commonjs/components/Button/useButtonClasses.js +0 -419
  383. package/lib-commonjs/components/Button/useButtonClasses.js.map +0 -1
  384. package/lib-commonjs/components/Button/useButtonState.d.ts +0 -6
  385. package/lib-commonjs/components/Button/useButtonState.js +0 -30
  386. package/lib-commonjs/components/Button/useButtonState.js.map +0 -1
  387. package/lib-commonjs/components/CompoundButton/useCompoundButtonClasses.d.ts +0 -4
  388. package/lib-commonjs/components/CompoundButton/useCompoundButtonClasses.js +0 -182
  389. package/lib-commonjs/components/CompoundButton/useCompoundButtonClasses.js.map +0 -1
  390. package/lib-commonjs/components/MenuButton/useExpanded.d.ts +0 -18
  391. package/lib-commonjs/components/MenuButton/useExpanded.js +0 -63
  392. package/lib-commonjs/components/MenuButton/useExpanded.js.map +0 -1
  393. package/lib-commonjs/components/MenuButton/useMenuButtonClasses.d.ts +0 -3
  394. package/lib-commonjs/components/MenuButton/useMenuButtonClasses.js +0 -80
  395. package/lib-commonjs/components/MenuButton/useMenuButtonClasses.js.map +0 -1
  396. package/lib-commonjs/components/MenuButton/useMenuButtonState.d.ts +0 -2
  397. package/lib-commonjs/components/MenuButton/useMenuButtonState.js +0 -11
  398. package/lib-commonjs/components/MenuButton/useMenuButtonState.js.map +0 -1
  399. package/lib-commonjs/components/SplitButton/useSplitButtonClasses.d.ts +0 -3
  400. package/lib-commonjs/components/SplitButton/useSplitButtonClasses.js +0 -125
  401. package/lib-commonjs/components/SplitButton/useSplitButtonClasses.js.map +0 -1
  402. package/lib-commonjs/components/ToggleButton/useChecked.d.ts +0 -14
  403. package/lib-commonjs/components/ToggleButton/useChecked.js +0 -27
  404. package/lib-commonjs/components/ToggleButton/useChecked.js.map +0 -1
  405. package/lib-commonjs/components/ToggleButton/useToggleButtonClasses.d.ts +0 -3
  406. package/lib-commonjs/components/ToggleButton/useToggleButtonClasses.js +0 -132
  407. package/lib-commonjs/components/ToggleButton/useToggleButtonClasses.js.map +0 -1
  408. package/lib-commonjs/utils/tempTypes.d.ts +0 -33
  409. package/lib-commonjs/utils/tempTypes.js +0 -6
  410. package/lib-commonjs/utils/tempTypes.js.map +0 -1
  411. package/lib-commonjs/version.d.ts +0 -1
  412. package/lib-commonjs/version.js +0 -7
  413. package/lib-commonjs/version.js.map +0 -1
  414. package/src/components/Button/Button.types.ts +0 -166
  415. package/src/components/CompoundButton/CompoundButton.types.ts +0 -37
  416. package/src/components/MenuButton/MenuButton.types.ts +0 -63
  417. package/src/components/SplitButton/SplitButton.types.ts +0 -41
  418. package/src/components/ToggleButton/ToggleButton.types.ts +0 -29
@@ -0,0 +1,354 @@
1
+ import { __styles, mergeClasses } from '@fluentui/react-make-styles';
2
+ import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster'; // TODO: These are named in design specs but not hoisted to global/alias yet.
3
+ // We're tracking these here to determine how we can hoist them.
4
+
5
+ export var buttonSpacing = {
6
+ smallest: '2px',
7
+ smaller: '4px',
8
+ small: '6px',
9
+ medium: '8px',
10
+ large: '12px',
11
+ larger: '16px'
12
+ };
13
+
14
+ var useRootStyles = /*#__PURE__*/__styles({
15
+ "base": {
16
+ "Bt984gj": "f122n59",
17
+ "mc9l5x": "ftuwxu6",
18
+ "Brf1p80": "f4d9j23",
19
+ "ha4doy": "fmrv4ls",
20
+ "B6of3ja": "f1hu3pq6",
21
+ "t21cq0": ["f11qmguv", "f1tyq0we"],
22
+ "jrapky": "f19f4twv",
23
+ "Frg6f3": ["f1tyq0we", "f11qmguv"],
24
+ "B2u0y6b": "f1n52uh2",
25
+ "Bpg54ce": "f1a3p1vp",
26
+ "ygn44y": "f1cmbuwj",
27
+ "Huce71": "fz5stix",
28
+ "ayd6f0": "fcm7iae",
29
+ "sj55zd": "f19n0e5",
30
+ "g2u3we": "fj3muxo",
31
+ "h3c5rm": ["f1akhkt", "f1lxtadh"],
32
+ "B9xav0g": "f1aperda",
33
+ "zhjwy3": ["f1lxtadh", "f1akhkt"],
34
+ "icvyot": "fzkkow9",
35
+ "vrafjx": ["fcdblym", "fjik90z"],
36
+ "oivjwe": "fg706s2",
37
+ "wvpqe5": ["fjik90z", "fcdblym"],
38
+ "B4j52fo": "f192inf7",
39
+ "Bekrc4i": ["f5tn483", "f1ojsxk5"],
40
+ "Bn0qgzm": "f1vxd6vx",
41
+ "ibv6hh": ["f1ojsxk5", "f5tn483"],
42
+ "Bahqtrf": "fk6fouc",
43
+ "oeaueh": "f1s6fcnf",
44
+ "v4pbla": "f56u8ty",
45
+ "Bgoe8wy": "fvcxoqz",
46
+ "Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
47
+ "oetu4i": "f1xlaoq0",
48
+ "gg5e9n": ["f1m52nbi", "f1ub3y4t"],
49
+ "Bi91k9c": "fax3udt",
50
+ "eoavqd": "f8491dx",
51
+ "vv34bc": "fzgy25m",
52
+ "B6oc9vd": "fvs00aa",
53
+ "ak43y8": ["f1assf6x", "f4ruux4"],
54
+ "wmxk5l": "fumykes",
55
+ "B50zh58": ["f4ruux4", "f1assf6x"],
56
+ "lj723h": "f1r2dosr",
57
+ "zwc60e": "fb0xa7e"
58
+ },
59
+ "block": {
60
+ "B2u0y6b": "f6dzj5z",
61
+ "a9b677": "fly5x3f"
62
+ },
63
+ "outline": {
64
+ "ayd6f0": "f1gjiv6l",
65
+ "v4pbla": "f62j56f",
66
+ "vv34bc": "flt377r"
67
+ },
68
+ "primary": {
69
+ "ayd6f0": "f1tdnksq",
70
+ "g2u3we": "f1p3nwhy",
71
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
72
+ "B9xav0g": "f1q5o8ev",
73
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
74
+ "sj55zd": "f1phragk",
75
+ "v4pbla": "f1fitrdm",
76
+ "Bgoe8wy": "f1s2uweq",
77
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
78
+ "oetu4i": "f1ukrpxl",
79
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
80
+ "Bi91k9c": "f1rq72xc",
81
+ "vv34bc": "f4ihffn",
82
+ "B6oc9vd": "ff472gp",
83
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
84
+ "wmxk5l": "fggejwh",
85
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
86
+ "lj723h": "f18otbis"
87
+ },
88
+ "subtle": {
89
+ "ayd6f0": "f11q0hf9",
90
+ "g2u3we": "f1p3nwhy",
91
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
92
+ "B9xav0g": "f1q5o8ev",
93
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
94
+ "sj55zd": "fkfq4zb",
95
+ "v4pbla": "f4wzgrt",
96
+ "Bgoe8wy": "f1s2uweq",
97
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
98
+ "oetu4i": "f1ukrpxl",
99
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
100
+ "Bi91k9c": "f139oj5f",
101
+ "vv34bc": "f1be4e1d",
102
+ "B6oc9vd": "ff472gp",
103
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
104
+ "wmxk5l": "fggejwh",
105
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
106
+ "lj723h": "f19au66r"
107
+ },
108
+ "transparent": {
109
+ "ayd6f0": "f1gjiv6l",
110
+ "g2u3we": "f1p3nwhy",
111
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
112
+ "B9xav0g": "f1q5o8ev",
113
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
114
+ "sj55zd": "fkfq4zb",
115
+ "v4pbla": "f62j56f",
116
+ "Bgoe8wy": "f1s2uweq",
117
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
118
+ "oetu4i": "f1ukrpxl",
119
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
120
+ "Bi91k9c": "f139oj5f",
121
+ "vv34bc": "flt377r",
122
+ "B6oc9vd": "ff472gp",
123
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
124
+ "wmxk5l": "fggejwh",
125
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
126
+ "lj723h": "f19au66r"
127
+ },
128
+ "circular": {
129
+ "Dimara": "f44lkw9"
130
+ },
131
+ "rounded": {},
132
+ "square": {
133
+ "Dimara": "f1fabniw"
134
+ },
135
+ "small": {
136
+ "rmohyg": "f4xv25i",
137
+ "z8tnut": "f1g0x7ka",
138
+ "z189sj": ["f19lj068", "f177v4lu"],
139
+ "Byoj8tv": "f1qch9an",
140
+ "uwmqm3": ["f177v4lu", "f19lj068"],
141
+ "Bqenvij": "frvgh55",
142
+ "Bf4jedk": "fh7ncta",
143
+ "Dimara": "fq9zq91",
144
+ "Be2twd7": "fy9rknc",
145
+ "Bhrd7zp": "figsok6",
146
+ "Bg96gwp": "fwrc4pm"
147
+ },
148
+ "medium": {
149
+ "rmohyg": "f19jf40t",
150
+ "z8tnut": "f1g0x7ka",
151
+ "z189sj": ["f11qrl6u", "fjlbh76"],
152
+ "Byoj8tv": "f1qch9an",
153
+ "uwmqm3": ["fjlbh76", "f11qrl6u"],
154
+ "Bqenvij": "f1d2rq10",
155
+ "Bf4jedk": "f14es27b",
156
+ "Dimara": "ft85np5",
157
+ "Be2twd7": "fkhj508",
158
+ "Bhrd7zp": "fl43uef",
159
+ "Bg96gwp": "f1i3iumi"
160
+ },
161
+ "large": {
162
+ "rmohyg": "f19jf40t",
163
+ "z8tnut": "f1g0x7ka",
164
+ "z189sj": ["f1gbmcue", "f1rh9g5y"],
165
+ "Byoj8tv": "f1qch9an",
166
+ "uwmqm3": ["f1rh9g5y", "f1gbmcue"],
167
+ "Bqenvij": "fbhnoac",
168
+ "Bf4jedk": "f14es27b",
169
+ "Dimara": "ft85np5",
170
+ "Be2twd7": "fod5ikn",
171
+ "Bhrd7zp": "fl43uef",
172
+ "Bg96gwp": "faaz57k"
173
+ }
174
+ }, {
175
+ "d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fmrv4ls{vertical-align:middle;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1n52uh2{max-width:280px;}", ".f1a3p1vp{overflow:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".fz5stix{white-space:nowrap;}", ".fcm7iae{background:var(--colorNeutralBackground1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1s6fcnf{outline-style:none;}", ".f6dzj5z{max-width:100%;}", ".fly5x3f{width:100%;}", ".f1gjiv6l{background:var(--colorTransparentBackground);}", ".f1tdnksq{background:var(--colorBrandBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".f11q0hf9{background:var(--colorSubtleBackground);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f44lkw9{border-radius:var(--borderRadiusCircular);}", ".f1fabniw{border-radius:var(--borderRadiusNone);}", ".f4xv25i{gap:4px;}", ".f1g0x7ka{padding-top:0;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f1qch9an{padding-bottom:0;}", ".frvgh55{height:24px;}", ".fh7ncta{min-width:64px;}", ".fq9zq91{border-radius:var(--borderRadiusSmall);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f19jf40t{gap:6px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f1d2rq10{height:32px;}", ".f14es27b{min-width:96px;}", ".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fbhnoac{height:40px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}"],
176
+ "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);}", ".f8491dx:hover{cursor:pointer;}", ".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);}"],
177
+ "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);}", ".fb0xa7e:active{outline-style:none;}", ".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);}"]
178
+ });
179
+
180
+ var useRootDisabledStyles = /*#__PURE__*/__styles({
181
+ "base": {
182
+ "ayd6f0": "fqst6tg",
183
+ "g2u3we": "f1jj8ep1",
184
+ "h3c5rm": ["f15xbau", "fy0fskl"],
185
+ "B9xav0g": "f4ikngz",
186
+ "zhjwy3": ["fy0fskl", "f15xbau"],
187
+ "sj55zd": "f1s2aq7o",
188
+ "Bceei9c": "fdrzuqr",
189
+ "v4pbla": "f1nil5o8",
190
+ "Bgoe8wy": "f12mpcsy",
191
+ "Bwzppfd": ["f1gwvigk", "f18rmfxp"],
192
+ "oetu4i": "f1jnshp0",
193
+ "gg5e9n": ["f18rmfxp", "f1gwvigk"],
194
+ "Bi91k9c": "fvgxktp",
195
+ "eoavqd": "fphbwmw",
196
+ "vv34bc": "fkqx3al",
197
+ "B6oc9vd": "fdi4vxw",
198
+ "ak43y8": ["f4ryxzl", "fkdgpbx"],
199
+ "wmxk5l": "fcmhn06",
200
+ "B50zh58": ["fkdgpbx", "f4ryxzl"],
201
+ "lj723h": "f19wldhg",
202
+ "Bwh3duv": "fq67hom"
203
+ },
204
+ "outline": {
205
+ "ayd6f0": "f1gjiv6l",
206
+ "v4pbla": "f62j56f",
207
+ "vv34bc": "flt377r"
208
+ },
209
+ "primary": {
210
+ "g2u3we": "f1p3nwhy",
211
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
212
+ "B9xav0g": "f1q5o8ev",
213
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
214
+ "Bgoe8wy": "f1s2uweq",
215
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
216
+ "oetu4i": "f1ukrpxl",
217
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
218
+ "B6oc9vd": "ff472gp",
219
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
220
+ "wmxk5l": "fggejwh",
221
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
222
+ },
223
+ "subtle": {
224
+ "ayd6f0": "f1k2sg7s",
225
+ "g2u3we": "f1p3nwhy",
226
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
227
+ "B9xav0g": "f1q5o8ev",
228
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
229
+ "v4pbla": "f1vc35iv",
230
+ "Bgoe8wy": "f1s2uweq",
231
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
232
+ "oetu4i": "f1ukrpxl",
233
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
234
+ "vv34bc": "f17oliv9",
235
+ "B6oc9vd": "ff472gp",
236
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
237
+ "wmxk5l": "fggejwh",
238
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
239
+ },
240
+ "transparent": {
241
+ "ayd6f0": "f1k2sg7s",
242
+ "g2u3we": "f1p3nwhy",
243
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
244
+ "B9xav0g": "f1q5o8ev",
245
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
246
+ "v4pbla": "f1vc35iv",
247
+ "Bgoe8wy": "f1s2uweq",
248
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
249
+ "oetu4i": "f1ukrpxl",
250
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
251
+ "vv34bc": "f17oliv9",
252
+ "B6oc9vd": "ff472gp",
253
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
254
+ "wmxk5l": "fggejwh",
255
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
256
+ }
257
+ }, {
258
+ "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);}", ".fdrzuqr{cursor:not-allowed;}", ".f1gjiv6l{background:var(--colorTransparentBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1k2sg7s{background:none;}"],
259
+ "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);}", ".fphbwmw:hover{cursor:not-allowed;}", ".f62j56f:hover{background:var(--colorTransparentBackgroundHover);}", ".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;}"],
260
+ "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);}", ".fq67hom:active{cursor:not-allowed;}", ".flt377r:active{background:var(--colorTransparentBackgroundPressed);}", ".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;}"]
261
+ });
262
+
263
+ var useRootFocusStyles = /*#__PURE__*/__styles({
264
+ "base": {},
265
+ "circular": {},
266
+ "rounded": {},
267
+ "primary": {},
268
+ "square": {},
269
+ "small": {},
270
+ "medium": {},
271
+ "large": {}
272
+ }, {});
273
+
274
+ var useRootIconOnlyStyles = /*#__PURE__*/__styles({
275
+ "small": {
276
+ "z8tnut": "f10ra9hq",
277
+ "z189sj": ["f8wuabp", "fycuoez"],
278
+ "Byoj8tv": "f1y2xyjm",
279
+ "uwmqm3": ["fycuoez", "f8wuabp"],
280
+ "Bf4jedk": "f107v6xj",
281
+ "B2u0y6b": "f17iyk3w"
282
+ },
283
+ "medium": {
284
+ "z8tnut": "f10ra9hq",
285
+ "z189sj": ["f8wuabp", "fycuoez"],
286
+ "Byoj8tv": "f1y2xyjm",
287
+ "uwmqm3": ["fycuoez", "f8wuabp"],
288
+ "Bf4jedk": "fwbmr0d",
289
+ "B2u0y6b": "f44c6la"
290
+ },
291
+ "large": {
292
+ "z8tnut": "f1xp5gbu",
293
+ "z189sj": ["f1sgzk6v", "f1bg5zqg"],
294
+ "Byoj8tv": "f1d7kygh",
295
+ "uwmqm3": ["f1bg5zqg", "f1sgzk6v"],
296
+ "Bf4jedk": "f12clzc2",
297
+ "B2u0y6b": "fjy1crr"
298
+ }
299
+ }, {
300
+ "d": [".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f107v6xj{min-width:28px;}", ".f17iyk3w{max-width:28px;}", ".fwbmr0d{min-width:32px;}", ".f44c6la{max-width:32px;}", ".f1xp5gbu{padding-top:6px;}", ".f1sgzk6v{padding-right:6px;}", ".f1bg5zqg{padding-left:6px;}", ".f1d7kygh{padding-bottom:6px;}", ".f12clzc2{min-width:40px;}", ".fjy1crr{max-width:40px;}"]
301
+ });
302
+
303
+ var useIconStyles = /*#__PURE__*/__styles({
304
+ "base": {
305
+ "Bt984gj": "f122n59",
306
+ "mc9l5x": "ftuwxu6",
307
+ "Brf1p80": "f4d9j23"
308
+ },
309
+ "small": {
310
+ "Be2twd7": "fe5j1ua",
311
+ "Bqenvij": "fjamq6b",
312
+ "a9b677": "f64fuq3"
313
+ },
314
+ "medium": {
315
+ "Be2twd7": "fe5j1ua",
316
+ "Bqenvij": "fjamq6b",
317
+ "a9b677": "f64fuq3"
318
+ },
319
+ "large": {
320
+ "Be2twd7": "f1rt2boy",
321
+ "Bqenvij": "frvgh55",
322
+ "a9b677": "fq4mcun"
323
+ }
324
+ }, {
325
+ "d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fe5j1ua{font-size:20px;}", ".fjamq6b{height:20px;}", ".f64fuq3{width:20px;}", ".f1rt2boy{font-size:24px;}", ".frvgh55{height:24px;}", ".fq4mcun{width:24px;}"]
326
+ });
327
+
328
+ export var useButtonStyles = function (state) {
329
+ var rootStyles = useRootStyles();
330
+ var rootDisabledStyles = useRootDisabledStyles();
331
+ var rootFocusStyles = useRootFocusStyles();
332
+ var rootIconOnlyStyles = useRootIconOnlyStyles();
333
+ var iconStyles = useIconStyles();
334
+ var appearance = state.appearance,
335
+ block = state.block,
336
+ disabled = state.disabled,
337
+ disabledFocusable = state.disabledFocusable,
338
+ iconOnly = state.iconOnly,
339
+ shape = state.shape,
340
+ size = state.size;
341
+ state.root.className = mergeClasses( // Root styles
342
+ rootStyles.base, block && rootStyles.block, appearance && rootStyles[appearance], rootStyles[size], rootStyles[shape], // Disabled styles
343
+ (disabled || disabledFocusable) && rootDisabledStyles.base, appearance && (disabled || disabledFocusable) && rootDisabledStyles[appearance], // Focus styles
344
+ rootFocusStyles.base, appearance === 'primary' && rootFocusStyles.primary, rootFocusStyles[size], rootFocusStyles[shape], // Icon-only styles
345
+ iconOnly && rootIconOnlyStyles[size], // User provided class name
346
+ state.root.className);
347
+
348
+ if (state.icon) {
349
+ state.icon.className = mergeClasses(iconStyles.base, iconStyles[size], state.icon.className);
350
+ }
351
+
352
+ return state;
353
+ };
354
+ //# sourceMappingURL=useButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"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","sourceRoot":""}
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
- import { CompoundButtonProps } from './CompoundButton.types';
1
+ import type { CompoundButtonProps } from './CompoundButton.types';
2
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled CompoundButton, using the `useCompoundButton` hook.
5
- * {@docCategory Button}
4
+ * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
6
5
  */
7
- export declare const CompoundButton: React.ForwardRefExoticComponent<Pick<CompoundButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
6
+ export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
@@ -1,18 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useInlineTokens } from '@fluentui/react-theme-provider';
3
- import { useFocusRects } from '@fluentui/utilities';
2
+ import { renderCompoundButton } from './renderCompoundButton';
4
3
  import { useCompoundButton } from './useCompoundButton';
5
- import { useCompoundButtonClasses } from './useCompoundButtonClasses';
4
+ import { useCompoundButtonStyles } from './useCompoundButtonStyles';
6
5
  /**
7
- * Define a styled CompoundButton, using the `useCompoundButton` hook.
8
- * {@docCategory Button}
6
+ * CompoundButtons are buttons that can have secondary content that adds extra information to the user.
9
7
  */
10
- export var CompoundButton = React.forwardRef(function (props, ref) {
11
- var _a = useCompoundButton(props, ref), render = _a.render, state = _a.state;
12
- useCompoundButtonClasses(state);
13
- useFocusRects(state.ref);
14
- useInlineTokens(state, '--button');
15
- return render(state);
8
+
9
+ export var CompoundButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
+ var state = useCompoundButton(props, ref);
11
+ useCompoundButtonStyles(state);
12
+ return renderCompoundButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
16
13
  });
17
14
  CompoundButton.displayName = 'CompoundButton';
18
15
  //# sourceMappingURL=CompoundButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompoundButton.js","sourceRoot":"../src/","sources":["components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;GAGG;AACH,MAAM,CAAC,IAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAAmC,UAAC,KAAK,EAAE,GAAG;IACpF,IAAA,kCAAiD,EAA/C,kBAAM,EAAE,gBAAuC,CAAC;IAExD,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAChC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,eAAe,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAEnC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import * as React from 'react';\nimport { useInlineTokens } from '@fluentui/react-theme-provider';\nimport { useFocusRects } from '@fluentui/utilities';\nimport { CompoundButtonProps } from './CompoundButton.types';\nimport { useCompoundButton } from './useCompoundButton';\nimport { useCompoundButtonClasses } from './useCompoundButtonClasses';\n\n/**\n * Define a styled CompoundButton, using the `useCompoundButton` hook.\n * {@docCategory Button}\n */\nexport const CompoundButton = React.forwardRef<HTMLElement, CompoundButtonProps>((props, ref) => {\n const { render, state } = useCompoundButton(props, ref);\n\n useCompoundButtonClasses(state);\n useFocusRects(state.ref);\n useInlineTokens(state, '--button');\n\n return render(state);\n});\n\nCompoundButton.displayName = 'CompoundButton';\n"]}
1
+ {"version":3,"sources":["../../../src/components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,IAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAClG,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AAEA,SAAO,oBAAoB,CAAC,KAAD,CAA3B,CALkG,CAMlG;AACD,CAPuE,CAAjE;AASP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -1,33 +1,14 @@
1
- import { ShorthandProps } from '@fluentui/react-compose/lib/next/index';
2
- import { ButtonProps, ButtonTokens, ButtonVariants } from '../Button/Button.types';
3
- /**
4
- * {@docCategory Button}
5
- */
6
- export interface CompoundButtonProps extends ButtonProps {
1
+ import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
2
+ import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
3
+ export declare type CompoundButtonSlots = ButtonSlots & {
7
4
  /**
8
5
  * Second line of text that describes the action this button takes.
9
6
  */
10
- secondaryContent?: ShorthandProps;
7
+ secondaryContent?: IntrinsicShorthandProps<'span'>;
11
8
  /**
12
- * Container that wraps the children and secondaryContent slots.
9
+ * Container that wraps the children and the secondaryContent slot.
13
10
  */
14
- contentContainer?: ShorthandProps;
15
- }
16
- /**
17
- * {@docCategory Button}
18
- */
19
- export interface CompoundButtonState extends CompoundButtonProps {
20
- }
21
- /**
22
- * {@docCategory Button}
23
- */
24
- export declare type CompoundButtonTokens = ButtonTokens & {
25
- secondaryContentColor?: string;
26
- secondaryContentFontSize?: string;
27
- secondaryContentFontWeight?: string;
28
- secondaryContentGap?: string;
11
+ contentContainer: IntrinsicShorthandProps<'span'>;
29
12
  };
30
- /**
31
- * {@docCategory Button}
32
- */
33
- export declare type CompoundButtonVariants = ButtonVariants<CompoundButtonTokens>;
13
+ export declare type CompoundButtonProps = ComponentProps<CompoundButtonSlots> & Partial<ButtonCommons>;
14
+ export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=CompoundButton.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompoundButton.types.js","sourceRoot":"../src/","sources":["components/CompoundButton/CompoundButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ShorthandProps } from '@fluentui/react-compose/lib/next/index';\nimport { ButtonProps, ButtonTokens, ButtonVariants } from '../Button/Button.types';\n\n/**\n * {@docCategory Button}\n */\nexport interface CompoundButtonProps extends ButtonProps {\n /**\n * Second line of text that describes the action this button takes.\n */\n secondaryContent?: ShorthandProps;\n\n /**\n * Container that wraps the children and secondaryContent slots.\n */\n contentContainer?: ShorthandProps;\n}\n\n/**\n * {@docCategory Button}\n */\nexport interface CompoundButtonState extends CompoundButtonProps {}\n\n/**\n * {@docCategory Button}\n */\nexport type CompoundButtonTokens = ButtonTokens & {\n secondaryContentColor?: string;\n secondaryContentFontSize?: string;\n secondaryContentFontWeight?: string;\n secondaryContentGap?: string;\n};\n\n/**\n * {@docCategory Button}\n */\nexport type CompoundButtonVariants = ButtonVariants<CompoundButtonTokens>;\n"]}
1
+ {"version":3,"file":"CompoundButton.types.js","sourceRoot":"","sources":["../../../src/components/CompoundButton/CompoundButton.types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  export * from './CompoundButton';
2
2
  export * from './CompoundButton.types';
3
+ export * from './renderCompoundButton';
3
4
  export * from './useCompoundButton';
4
- export * from './useCompoundButtonClasses';
5
+ export { useCompoundButtonStyles } from './useCompoundButtonStyles';
@@ -1,4 +1,6 @@
1
1
  export * from './CompoundButton';
2
+ export * from './CompoundButton.types';
3
+ export * from './renderCompoundButton';
2
4
  export * from './useCompoundButton';
3
- export * from './useCompoundButtonClasses';
5
+ export { useCompoundButtonStyles } from './useCompoundButtonStyles';
4
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/CompoundButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './CompoundButton';\nexport * from './CompoundButton.types';\nexport * from './useCompoundButton';\nexport * from './useCompoundButtonClasses';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CompoundButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { CompoundButtonState } from './CompoundButton.types';
1
+ import type { CompoundButtonState } from './CompoundButton.types';
2
2
  /**
3
- * Define the render function. Given the state of a button, renders it.
3
+ * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
4
4
  */
5
5
  export declare const renderCompoundButton: (state: CompoundButtonState) => JSX.Element;
@@ -1,19 +1,17 @@
1
1
  import { __assign } from "tslib";
2
2
  import * as React from 'react';
3
- import { getSlots } from '@fluentui/react-compose/lib/next/index';
4
- import { compoundButtonShorthandProps } from './useCompoundButton';
3
+ import { getSlots } from '@fluentui/react-utilities';
5
4
  /**
6
- * Define the render function. Given the state of a button, renders it.
5
+ * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
7
6
  */
7
+
8
8
  export var renderCompoundButton = function (state) {
9
- var _a = getSlots(state, compoundButtonShorthandProps), slots = _a.slots, slotProps = _a.slotProps;
10
- var loading = state.loading, iconPosition = state.iconPosition, iconOnly = state.iconOnly;
11
- return (React.createElement(slots.root, __assign({}, slotProps.root),
12
- loading && React.createElement(slots.loader, __assign({}, slotProps.loader)),
13
- iconPosition !== 'after' && React.createElement(slots.icon, __assign({}, slotProps.icon)),
14
- !iconOnly && (React.createElement(slots.contentContainer, __assign({}, slotProps.contentContainer),
15
- React.createElement(slots.content, __assign({}, slotProps.content)),
16
- React.createElement(slots.secondaryContent, __assign({}, slotProps.secondaryContent)))),
17
- iconPosition === 'after' && React.createElement(slots.icon, __assign({}, slotProps.icon))));
9
+ var _a = getSlots(state, ['root', 'contentContainer', 'icon', 'secondaryContent']),
10
+ slots = _a.slots,
11
+ slotProps = _a.slotProps;
12
+
13
+ var iconOnly = state.iconOnly,
14
+ iconPosition = state.iconPosition;
15
+ return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root), iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, __assign({}, slotProps.icon)), !iconOnly && /*#__PURE__*/React.createElement(slots.contentContainer, __assign({}, slotProps.contentContainer), slotProps.root.children, /*#__PURE__*/React.createElement(slots.secondaryContent, __assign({}, slotProps.secondaryContent))), iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, __assign({}, slotProps.icon)));
18
16
  };
19
17
  //# sourceMappingURL=renderCompoundButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderCompoundButton.js","sourceRoot":"../src/","sources":["components/CompoundButton/renderCompoundButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAElE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,KAA0B;IACvD,IAAA,kDAAoE,EAAlE,gBAAK,EAAE,wBAA2D,CAAC;IACnE,IAAA,uBAAO,EAAE,iCAAY,EAAE,yBAAQ,CAAW;IAElD,OAAO,CACL,oBAAC,KAAK,CAAC,IAAI,eAAK,SAAS,CAAC,IAAI;QAC3B,OAAO,IAAI,oBAAC,KAAK,CAAC,MAAM,eAAK,SAAS,CAAC,MAAM,EAAI;QACjD,YAAY,KAAK,OAAO,IAAI,oBAAC,KAAK,CAAC,IAAI,eAAK,SAAS,CAAC,IAAI,EAAI;QAC9D,CAAC,QAAQ,IAAI,CACZ,oBAAC,KAAK,CAAC,gBAAgB,eAAK,SAAS,CAAC,gBAAgB;YACpD,oBAAC,KAAK,CAAC,OAAO,eAAK,SAAS,CAAC,OAAO,EAAI;YACxC,oBAAC,KAAK,CAAC,gBAAgB,eAAK,SAAS,CAAC,gBAAgB,EAAI,CACnC,CAC1B;QACA,YAAY,KAAK,OAAO,IAAI,oBAAC,KAAK,CAAC,IAAI,eAAK,SAAS,CAAC,IAAI,EAAI,CACpD,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-compose/lib/next/index';\nimport { CompoundButtonState } from './CompoundButton.types';\nimport { compoundButtonShorthandProps } from './useCompoundButton';\n\n/**\n * Define the render function. Given the state of a button, renders it.\n */\nexport const renderCompoundButton = (state: CompoundButtonState) => {\n const { slots, slotProps } = getSlots(state, compoundButtonShorthandProps);\n const { loading, iconPosition, iconOnly } = state;\n\n return (\n <slots.root {...slotProps.root}>\n {loading && <slots.loader {...slotProps.loader} />}\n {iconPosition !== 'after' && <slots.icon {...slotProps.icon} />}\n {!iconOnly && (\n <slots.contentContainer {...slotProps.contentContainer}>\n <slots.content {...slotProps.content} />\n <slots.secondaryContent {...slotProps.secondaryContent} />\n </slots.contentContainer>\n )}\n {iconPosition === 'after' && <slots.icon {...slotProps.icon} />}\n </slots.root>\n );\n};\n"]}
1
+ {"version":3,"sources":["../../../src/components/CompoundButton/renderCompoundButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,IAAM,oBAAoB,GAAG,UAAC,KAAD,EAA2B;AACvD,MAAA,EAAA,GAAuB,QAAQ,CAAsB,KAAtB,EAA6B,CAChE,MADgE,EAEhE,kBAFgE,EAGhE,MAHgE,EAIhE,kBAJgE,CAA7B,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAME,MAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAR;AAAA,MAAU,YAAY,GAAK,KAAK,CAAV,YAAtB;AAER,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAD/B,EAEG,CAAC,QAAD,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,gBAAf,CAAvB,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,gBAAf,CAAvB,CAFF,CAHJ,EAQG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAR/B,CADF;AAYD,CArBM","sourceRoot":""}
@@ -1,13 +1,8 @@
1
1
  import * as React from 'react';
2
- import { CompoundButtonProps } from './CompoundButton.types';
2
+ import type { CompoundButtonProps, CompoundButtonState } from './CompoundButton.types';
3
3
  /**
4
- * Consts listing which props are shorthand props.
4
+ * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
5
+ * @param props - User provided props to the CompoundButton component.
6
+ * @param ref - User provided ref to be passed to the CompoundButton component.
5
7
  */
6
- export declare const compoundButtonShorthandProps: string[];
7
- /**
8
- * Given user props, returns state and render function for a Button.
9
- */
10
- export declare const useCompoundButton: (props: CompoundButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: CompoundButtonProps | undefined) => {
11
- state: Record<string, any>;
12
- render: (state: import("./CompoundButton.types").CompoundButtonState) => JSX.Element;
13
- };
8
+ export declare const useCompoundButton: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;