@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
@@ -1,417 +0,0 @@
1
- define(["require", "exports", "tslib", "@fluentui/react-theme-provider", "@fluentui/style-utilities"], function (require, exports, tslib_1, react_theme_provider_1, style_utilities_1) {
2
- "use strict";
3
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- var GlobalClassNames = {
6
- root: 'ms-Button',
7
- icon: 'ms-Button-icon',
8
- };
9
- exports.ButtonSizeVariants = {
10
- size_smallest: {
11
- height: 'var(--button-size-smallest)',
12
- minHeight: 'var(--button-size-smallest)',
13
- },
14
- size_smaller: {
15
- height: 'var(--button-size-smaller)',
16
- minHeight: 'var(--button-size-smaller)',
17
- },
18
- size_small: {
19
- height: 'var(--button-size-small)',
20
- minHeight: 'var(--button-size-small)',
21
- },
22
- size_large: {
23
- height: 'var(--button-size-large)',
24
- minHeight: 'var(--button-size-large)',
25
- },
26
- size_larger: {
27
- height: 'var(--button-size-larger)',
28
- minHeight: 'var(--button-size-larger)',
29
- },
30
- size_largest: {
31
- height: 'var(--button-size-largest)',
32
- minHeight: 'var(--button-size-largest)',
33
- },
34
- };
35
- exports.useButtonClasses = react_theme_provider_1.makeVariantClasses({
36
- name: 'Button',
37
- prefix: '--button',
38
- styles: {
39
- root: [
40
- GlobalClassNames.root,
41
- (_a = {
42
- cursor: 'pointer',
43
- alignItems: 'center',
44
- borderStyle: 'solid',
45
- display: 'inline-flex',
46
- justifyContent: 'center',
47
- outline: 'none',
48
- position: 'relative',
49
- userSelect: 'none',
50
- boxSizing: 'border-box',
51
- verticalAlign: 'middle',
52
- textDecoration: 'none',
53
- background: 'var(--button-background)',
54
- color: 'var(--button-contentColor)',
55
- borderColor: 'var(--button-borderColor)',
56
- borderTopLeftRadius: 'var(--button-borderTopLeftRadius, var(--button-borderRadius))',
57
- borderTopRightRadius: 'var(--button-borderTopRightRadius, var(--button-borderRadius))',
58
- borderBottomLeftRadius: 'var(--button-borderBottomLeftRadius, var(--button-borderRadius))',
59
- borderBottomRightRadius: 'var(--button-borderBottomRightRadius, var(--button-borderRadius))',
60
- borderLeftWidth: 'var(--button-borderLeftWidth, var(--button-borderWidth))',
61
- borderRightWidth: 'var(--button-borderRightWidth, var(--button-borderWidth))',
62
- borderTopWidth: 'var(--button-borderTopWidth, var(--button-borderWidth))',
63
- borderBottomWidth: 'var(--button-borderBottomWidth, var(--button-borderWidth))',
64
- boxShadow: 'var(--button-boxShadow)',
65
- width: 'var(--button-width)',
66
- maxWidth: 'var(--button-maxWidth)',
67
- minWidth: 'var(--button-minWidth)',
68
- height: 'var(--button-height)',
69
- minHeight: 'var(--button-minHeight)',
70
- paddingLeft: 'var(--button-paddingLeft)',
71
- paddingRight: 'var(--button-paddingRight)',
72
- paddingTop: 'var(--button-paddingTop)',
73
- paddingBottom: 'var(--button-paddingBottom)',
74
- transition: 'var(--button-transition)',
75
- whiteSpace: 'var(--button-whiteSpace)',
76
- fontFamily: 'var(--button-fontFamily)',
77
- fontSize: 'var(--button-fontSize)',
78
- fontWeight: 'var(--button-fontWeight)',
79
- WebkitFontSmoothing: 'antialiased',
80
- MozOsxFontSmoothing: 'grayscale',
81
- ':global(.ms-Fabric--isFocusVisible) &:focus::after': (_b = {
82
- content: '""',
83
- position: 'absolute',
84
- left: -1,
85
- right: -1,
86
- top: -1,
87
- bottom: -1,
88
- borderWidth: 'var(--button-focusWidth, 2px)',
89
- borderStyle: 'solid',
90
- borderColor: 'var(--button-focusColor, black)',
91
- borderTopLeftRadius: 'var(--button-borderTopLeftRadius, var(--button-borderRadius))',
92
- borderTopRightRadius: 'var(--button-borderTopRightRadius, var(--button-borderRadius))',
93
- borderBottomLeftRadius: 'var(--button-borderBottomLeftRadius, var(--button-borderRadius))',
94
- borderBottomRightRadius: 'var(--button-borderBottomRightRadius, var(--button-borderRadius))',
95
- boxShadow: '0 0 0 var(--button-focusInnerWidth, 1px) var(--button-focusInnerColor, white) inset',
96
- zIndex: 1
97
- },
98
- _b[style_utilities_1.EdgeChromiumHighContrastSelector] = {
99
- borderColor: 'var(--button-highContrast-focusColor)',
100
- boxShadow: '0 0 0 var(--button-focusInnerWidth, 1px) var(--button-highContrast-focusInnerColor) inset',
101
- },
102
- _b)
103
- },
104
- _a['& > *:not(:first-child)'] = {
105
- marginLeft: 'var(--button-contentGap)',
106
- },
107
- _a[style_utilities_1.EdgeChromiumHighContrastSelector] = (_c = {
108
- forcedColorAdjust: 'var(--button-forcedColorAdjust)',
109
- background: 'var(--button-highContrast-background)',
110
- borderColor: 'var(--button-highContrast-borderColor)',
111
- color: 'var(--button-highContrast-contentColor)'
112
- },
113
- _c["." + GlobalClassNames.icon] = {
114
- color: 'var(--button-highContrast-iconColor)',
115
- },
116
- _c),
117
- _a['&:hover'] = (_d = {
118
- background: 'var(--button-hovered-background, var(--button-background))',
119
- color: 'var(--button-hovered-contentColor, var(--button-contentColor))',
120
- borderColor: 'var(--button-hovered-borderColor, var(--button-borderColor))',
121
- boxShadow: 'var(--button-hovered-boxShadow, var(--button-boxShadow))'
122
- },
123
- _d["." + GlobalClassNames.icon] = {
124
- color: 'var(--button-hovered-iconColor, var(--button-iconColor))',
125
- },
126
- _d[style_utilities_1.EdgeChromiumHighContrastSelector] = (_e = {
127
- background: 'var(--button-highContrast-hovered-background, var(--button-highContrast-background))',
128
- borderColor: 'var(--button-highContrast-hovered-borderColor, var(--button-highContrast-borderColor))',
129
- color: 'var(--button-highContrast-hovered-contentColor, var(--button-highContrast-contentColor))'
130
- },
131
- _e["." + GlobalClassNames.icon] = {
132
- color: 'var(--button-highContrast-hovered-iconColor, --button-highContrast-iconColor)',
133
- },
134
- _e),
135
- _d),
136
- _a['&:active'] = (_f = {
137
- background: 'var(--button-pressed-background, var(--button-hovered-background))',
138
- color: 'var(--button-pressed-contentColor, var(--button-hovered-contentColor, var(--button-contentColor)))',
139
- borderColor: 'var(--button-pressed-borderColor, var(--button-hovered-borderColor, var(--button-borderColor)))',
140
- boxShadow: 'var(--button-pressed-boxShadow, var(--button-hovered-boxShadow, var(--button-boxShadow)))',
141
- transform: 'var(--button-pressed-transform)',
142
- transition: 'var(--button-pressed-transition)'
143
- },
144
- _f["." + GlobalClassNames.icon] = {
145
- color: 'var(--button-pressed-iconColor, var(--button-iconColor))',
146
- },
147
- _f[style_utilities_1.EdgeChromiumHighContrastSelector] = (_g = {
148
- background: 'var(--button-highContrast-pressed-background, ' +
149
- 'var(--button-highContrast-hovered-background, ' +
150
- 'var(--button-highContrast-background)))',
151
- borderColor: 'var(--button-highContrast-pressed-borderColor, ' +
152
- 'var(--button-highContrast-hovered-borderColor, ' +
153
- 'var(--button-highContrast-borderColor)))',
154
- color: 'var(--button-highContrast-pressed-contentColor, ' +
155
- 'var(--button-highContrast-hovered-contentColor, ' +
156
- 'var(--button-highContarst-contentColor)))'
157
- },
158
- _g["." + GlobalClassNames.icon] = {
159
- color: 'var(--button-highContrast-pressed-iconColor, ' +
160
- 'var(--button-highContrast-hovered-iconColor, ' +
161
- 'var(--button-highContrast-iconColor)))',
162
- },
163
- _g),
164
- _f),
165
- _a['&[aria-disabled=true]'] = (_h = {
166
- pointerEvents: 'none',
167
- opacity: 'var(--button-disabled-opacity)',
168
- backgroundColor: 'var(--button-disabled-background)',
169
- color: 'var(--button-disabled-contentColor)',
170
- borderColor: 'var(--button-disabled-borderColor)',
171
- boxShadow: 'var(--button-disabled-boxShadow)'
172
- },
173
- _h["." + GlobalClassNames.icon] = {
174
- color: 'var(--button-disabled-iconColor)',
175
- },
176
- _h[style_utilities_1.EdgeChromiumHighContrastSelector] = (_j = {
177
- background: 'var(--button-highContrast-disabled-background, var(--button-highContrast-background))',
178
- borderColor: 'var(--button-highContrast-disabled-borderColor, var(--button-highContrast-borderColor))',
179
- color: 'var(--button-highContrast-disabled-contentColor, var(--button-highContrast-contentColor))'
180
- },
181
- _j["." + GlobalClassNames.icon] = {
182
- color: 'var(--button-highContrast-disabled-iconColor, --button-highContrast-iconColor)',
183
- },
184
- _j),
185
- _h),
186
- _a),
187
- ],
188
- icon: [
189
- GlobalClassNames.icon,
190
- {
191
- color: 'var(--button-iconColor)',
192
- display: 'flex',
193
- flexShrink: 0,
194
- alignItems: 'center',
195
- justifyContent: 'center',
196
- width: 'var(--button-iconSize)',
197
- height: 'var(--button-iconSize)',
198
- fontSize: 'var(--button-iconSize, inherit)',
199
- fontWeight: 'normal',
200
- lineHeight: '1',
201
- },
202
- ],
203
- content: {
204
- lineHeight: '1',
205
- },
206
- },
207
- variants: function (theme) {
208
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
209
- var fonts = theme.fonts, effects = theme.effects, palette = theme.palette, semanticColors = theme.semanticColors;
210
- return tslib_1.__assign({ root: {
211
- size: {
212
- smallest: '24px',
213
- smaller: '24px',
214
- small: '24px',
215
- regular: '32px',
216
- large: '40px',
217
- larger: '48px',
218
- largest: '64px',
219
- },
220
- // Sizing tokens
221
- iconSize: (_b = (_a = fonts) === null || _a === void 0 ? void 0 : _a.mediumPlus) === null || _b === void 0 ? void 0 : _b.fontSize,
222
- borderWidth: '1px',
223
- boxShadow: 'none',
224
- borderRadius: (_c = effects) === null || _c === void 0 ? void 0 : _c.roundedCorner2,
225
- paddingLeft: '20px',
226
- paddingRight: '20px',
227
- paddingTop: '0',
228
- paddingBottom: '0',
229
- margin: '0',
230
- width: 'auto',
231
- minWidth: '96px',
232
- maxWidth: '280px',
233
- minHeight: 'var(--button-size-regular)',
234
- contentGap: '8px',
235
- // Font tokens
236
- fontWeight: '600',
237
- fontSize: (_e = (_d = fonts) === null || _d === void 0 ? void 0 : _d.medium) === null || _e === void 0 ? void 0 : _e.fontSize,
238
- fontFamily: (_g = (_f = fonts) === null || _f === void 0 ? void 0 : _f.medium) === null || _g === void 0 ? void 0 : _g.fontFamily,
239
- // Color tokens
240
- focusColor: (_h = palette) === null || _h === void 0 ? void 0 : _h.black,
241
- focusInnerColor: (_j = palette) === null || _j === void 0 ? void 0 : _j.white,
242
- background: (_k = semanticColors) === null || _k === void 0 ? void 0 : _k.buttonBackground,
243
- borderColor: (_l = semanticColors) === null || _l === void 0 ? void 0 : _l.buttonBorder,
244
- contentColor: (_m = semanticColors) === null || _m === void 0 ? void 0 : _m.buttonText,
245
- iconColor: 'inherit',
246
- hovered: {
247
- background: (_o = semanticColors) === null || _o === void 0 ? void 0 : _o.buttonBackgroundHovered,
248
- contentColor: (_p = semanticColors) === null || _p === void 0 ? void 0 : _p.buttonTextHovered,
249
- },
250
- pressed: {
251
- background: (_q = semanticColors) === null || _q === void 0 ? void 0 : _q.buttonBackgroundPressed,
252
- contentColor: (_r = semanticColors) === null || _r === void 0 ? void 0 : _r.buttonTextPressed,
253
- },
254
- disabled: {
255
- background: (_s = semanticColors) === null || _s === void 0 ? void 0 : _s.buttonBackgroundDisabled,
256
- borderColor: (_t = semanticColors) === null || _t === void 0 ? void 0 : _t.buttonBorderDisabled,
257
- contentColor: (_u = semanticColors) === null || _u === void 0 ? void 0 : _u.buttonTextDisabled,
258
- },
259
- highContrast: {
260
- borderColor: 'WindowText',
261
- contentColor: 'WindowText',
262
- iconColor: 'WindowText',
263
- hovered: {
264
- borderColor: 'Highlight',
265
- contentColor: 'Highlight',
266
- iconColor: 'Highlight',
267
- },
268
- pressed: {
269
- borderColor: 'Highlight',
270
- contentColor: 'WindowText',
271
- iconColor: 'WindowText',
272
- },
273
- disabled: {
274
- background: 'Window',
275
- borderColor: 'GrayText',
276
- contentColor: 'GrayText',
277
- iconColor: 'GrayText',
278
- },
279
- },
280
- }, circular: {
281
- borderRadius: '50000px',
282
- }, block: {
283
- width: '100%',
284
- maxWidth: 'none',
285
- }, iconOnly: {
286
- minWidth: 'var(--button-height)',
287
- width: 'var(--button-height, var(--button-minHeight))',
288
- paddingTop: '0',
289
- paddingBottom: '0',
290
- paddingLeft: '0',
291
- paddingRight: '0',
292
- }, primary: {
293
- background: 'var(--color-brand-background)',
294
- borderColor: 'var(--color-brand-borderColor)',
295
- contentColor: 'var(--color-brand-contentColor)',
296
- iconColor: 'inherit',
297
- forcedColorAdjust: 'none',
298
- hovered: {
299
- background: 'var(--color-brand-hovered-background)',
300
- borderColor: 'var(--color-brand-hovered-borderColor)',
301
- contentColor: 'var(--color-brand-hovered-contentColor)',
302
- },
303
- pressed: {
304
- background: 'var(--color-brand-pressed-background)',
305
- borderColor: 'var(--color-brand-pressed-borderColor)',
306
- contentColor: 'var(--color-brand-pressed-contentColor)',
307
- },
308
- highContrast: {
309
- background: 'WindowText',
310
- borderColor: 'WindowText',
311
- contentColor: 'Window',
312
- focusColor: 'WindowText',
313
- focusInnerColor: 'Window',
314
- iconColor: 'Window',
315
- hovered: {
316
- background: 'Highlight',
317
- borderColor: 'Highlight',
318
- contentColor: 'Window',
319
- iconColor: 'Window',
320
- },
321
- pressed: {
322
- background: 'WindowText',
323
- borderColor: 'WindowText',
324
- contentColor: 'Window',
325
- iconColor: 'Window',
326
- },
327
- disabled: {
328
- background: 'Window',
329
- borderColor: 'GrayText',
330
- contentColor: 'GrayText',
331
- iconColor: 'GrayText',
332
- },
333
- },
334
- },
335
- // TODO: no references to palette.
336
- ghost: {
337
- background: 'transparent',
338
- borderColor: 'transparent',
339
- contentColor: (_v = palette) === null || _v === void 0 ? void 0 : _v.neutralPrimary,
340
- fontWeight: 'normal',
341
- iconColor: (_w = palette) === null || _w === void 0 ? void 0 : _w.themeDarkAlt,
342
- forcedColorAdjust: 'none',
343
- disabled: {
344
- background: (_x = semanticColors) === null || _x === void 0 ? void 0 : _x.disabledBackground,
345
- contentColor: (_y = palette) === null || _y === void 0 ? void 0 : _y.neutralTertiary,
346
- iconColor: 'inherit',
347
- },
348
- expanded: {
349
- contentColor: (_z = palette) === null || _z === void 0 ? void 0 : _z.themePrimary,
350
- },
351
- focused: {
352
- contentColor: (_0 = palette) === null || _0 === void 0 ? void 0 : _0.neutralPrimary,
353
- iconColor: (_1 = palette) === null || _1 === void 0 ? void 0 : _1.themeDarkAlt,
354
- },
355
- hovered: {
356
- background: (_2 = palette) === null || _2 === void 0 ? void 0 : _2.neutralLighter,
357
- contentColor: (_3 = palette) === null || _3 === void 0 ? void 0 : _3.themePrimary,
358
- iconColor: (_4 = palette) === null || _4 === void 0 ? void 0 : _4.themePrimary,
359
- },
360
- pressed: {
361
- background: (_5 = palette) === null || _5 === void 0 ? void 0 : _5.neutralLight,
362
- contentColor: (_6 = palette) === null || _6 === void 0 ? void 0 : _6.black,
363
- iconColor: (_7 = palette) === null || _7 === void 0 ? void 0 : _7.themeDarker,
364
- },
365
- highContrast: {
366
- background: 'Window',
367
- borderColor: 'transparent',
368
- contentColor: 'WindowText',
369
- iconColor: 'WindowText',
370
- hovered: {
371
- background: 'Window',
372
- borderColor: 'transparent',
373
- contentColor: 'Highlight',
374
- iconColor: 'Highlight',
375
- },
376
- pressed: {
377
- background: 'Window',
378
- borderColor: 'transparent',
379
- contentColor: 'Highlight',
380
- iconColor: 'Highlight',
381
- },
382
- disabled: {
383
- background: 'Window',
384
- borderColor: 'transparent',
385
- contentColor: 'GrayText',
386
- iconColor: 'GrayText',
387
- },
388
- },
389
- },
390
- // TODO: no references to palette.
391
- transparent: {
392
- background: 'transparent',
393
- borderColor: 'transparent',
394
- contentColor: (_8 = palette) === null || _8 === void 0 ? void 0 : _8.neutralPrimary,
395
- fontWeight: 'normal',
396
- iconColor: (_9 = palette) === null || _9 === void 0 ? void 0 : _9.themeDarkAlt,
397
- disabled: {
398
- background: 'transparent',
399
- borderColor: 'transparent',
400
- contentColor: palette.neutralTertiary,
401
- iconColor: 'inherit',
402
- },
403
- hovered: {
404
- background: 'transparent',
405
- contentColor: (_10 = palette) === null || _10 === void 0 ? void 0 : _10.themePrimary,
406
- iconColor: (_11 = palette) === null || _11 === void 0 ? void 0 : _11.themePrimary,
407
- },
408
- pressed: {
409
- background: 'transparent',
410
- contentColor: (_12 = palette) === null || _12 === void 0 ? void 0 : _12.black,
411
- iconColor: (_13 = palette) === null || _13 === void 0 ? void 0 : _13.themeDarker,
412
- },
413
- } }, exports.ButtonSizeVariants);
414
- },
415
- });
416
- });
417
- //# sourceMappingURL=useButtonClasses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useButtonClasses.js","sourceRoot":"../src/","sources":["components/Button/useButtonClasses.ts"],"names":[],"mappings":";;;;IAKA,IAAM,gBAAgB,GAAG;QACvB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,gBAAgB;KACvB,CAAC;IAEW,QAAA,kBAAkB,GAAG;QAChC,aAAa,EAAE;YACb,MAAM,EAAE,6BAA6B;YACrC,SAAS,EAAE,6BAA6B;SACzC;QAED,YAAY,EAAE;YACZ,MAAM,EAAE,4BAA4B;YACpC,SAAS,EAAE,4BAA4B;SACxC;QAED,UAAU,EAAE;YACV,MAAM,EAAE,0BAA0B;YAClC,SAAS,EAAE,0BAA0B;SACtC;QAED,UAAU,EAAE;YACV,MAAM,EAAE,0BAA0B;YAClC,SAAS,EAAE,0BAA0B;SACtC;QAED,WAAW,EAAE;YACX,MAAM,EAAE,2BAA2B;YACnC,SAAS,EAAE,2BAA2B;SACvC;QAED,YAAY,EAAE;YACZ,MAAM,EAAE,4BAA4B;YACpC,SAAS,EAAE,4BAA4B;SACxC;KACF,CAAC;IAEW,QAAA,gBAAgB,GAAG,yCAAkB,CAA8B;QAC9E,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,UAAU;QAElB,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,gBAAgB,CAAC,IAAI;;wBAEnB,MAAM,EAAE,SAAS;wBACjB,UAAU,EAAE,QAAQ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C,SAAS,SAAE,OAAO,4CAAE,YAAY;qBACjC;oBAED,OAAO,EAAE;wBACP,UAAU,EAAE,aAAa;wBACzB,YAAY,SAAE,OAAO,4CAAE,KAAK;wBAC5B,SAAS,SAAE,OAAO,4CAAE,WAAW;qBAChC;iBACF,IAEE,0BAAkB,EACrB;QACJ,CAAC;KACF,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport { makeVariantClasses, Theme } from '@fluentui/react-theme-provider';\nimport { EdgeChromiumHighContrastSelector } from '@fluentui/style-utilities';\nimport { ButtonState, ButtonVariants } from './Button.types';\n\nconst GlobalClassNames = {\n root: 'ms-Button',\n icon: 'ms-Button-icon',\n};\n\nexport const ButtonSizeVariants = {\n size_smallest: {\n height: 'var(--button-size-smallest)',\n minHeight: 'var(--button-size-smallest)',\n },\n\n size_smaller: {\n height: 'var(--button-size-smaller)',\n minHeight: 'var(--button-size-smaller)',\n },\n\n size_small: {\n height: 'var(--button-size-small)',\n minHeight: 'var(--button-size-small)',\n },\n\n size_large: {\n height: 'var(--button-size-large)',\n minHeight: 'var(--button-size-large)',\n },\n\n size_larger: {\n height: 'var(--button-size-larger)',\n minHeight: 'var(--button-size-larger)',\n },\n\n size_largest: {\n height: 'var(--button-size-largest)',\n minHeight: 'var(--button-size-largest)',\n },\n};\n\nexport const useButtonClasses = makeVariantClasses<ButtonState, ButtonVariants>({\n name: 'Button',\n prefix: '--button',\n\n styles: {\n root: [\n GlobalClassNames.root,\n {\n cursor: 'pointer',\n alignItems: 'center',\n borderStyle: 'solid',\n display: 'inline-flex',\n justifyContent: 'center',\n outline: 'none',\n position: 'relative',\n userSelect: 'none',\n boxSizing: 'border-box',\n verticalAlign: 'middle',\n textDecoration: 'none',\n background: 'var(--button-background)',\n color: 'var(--button-contentColor)',\n\n borderColor: 'var(--button-borderColor)',\n borderTopLeftRadius: 'var(--button-borderTopLeftRadius, var(--button-borderRadius))',\n borderTopRightRadius: 'var(--button-borderTopRightRadius, var(--button-borderRadius))',\n borderBottomLeftRadius: 'var(--button-borderBottomLeftRadius, var(--button-borderRadius))',\n borderBottomRightRadius: 'var(--button-borderBottomRightRadius, var(--button-borderRadius))',\n borderLeftWidth: 'var(--button-borderLeftWidth, var(--button-borderWidth))',\n borderRightWidth: 'var(--button-borderRightWidth, var(--button-borderWidth))',\n borderTopWidth: 'var(--button-borderTopWidth, var(--button-borderWidth))',\n borderBottomWidth: 'var(--button-borderBottomWidth, var(--button-borderWidth))',\n boxShadow: 'var(--button-boxShadow)',\n\n width: 'var(--button-width)',\n maxWidth: 'var(--button-maxWidth)',\n minWidth: 'var(--button-minWidth)',\n height: 'var(--button-height)',\n minHeight: 'var(--button-minHeight)',\n\n paddingLeft: 'var(--button-paddingLeft)',\n paddingRight: 'var(--button-paddingRight)',\n paddingTop: 'var(--button-paddingTop)',\n paddingBottom: 'var(--button-paddingBottom)',\n\n transition: 'var(--button-transition)',\n whiteSpace: 'var(--button-whiteSpace)',\n\n fontFamily: 'var(--button-fontFamily)',\n fontSize: 'var(--button-fontSize)',\n fontWeight: 'var(--button-fontWeight)',\n WebkitFontSmoothing: 'antialiased',\n MozOsxFontSmoothing: 'grayscale',\n\n ':global(.ms-Fabric--isFocusVisible) &:focus::after': {\n content: '\"\"',\n position: 'absolute',\n left: -1,\n right: -1,\n top: -1,\n bottom: -1,\n borderWidth: 'var(--button-focusWidth, 2px)',\n borderStyle: 'solid',\n borderColor: 'var(--button-focusColor, black)',\n borderTopLeftRadius: 'var(--button-borderTopLeftRadius, var(--button-borderRadius))',\n borderTopRightRadius: 'var(--button-borderTopRightRadius, var(--button-borderRadius))',\n borderBottomLeftRadius: 'var(--button-borderBottomLeftRadius, var(--button-borderRadius))',\n borderBottomRightRadius: 'var(--button-borderBottomRightRadius, var(--button-borderRadius))',\n boxShadow: '0 0 0 var(--button-focusInnerWidth, 1px) var(--button-focusInnerColor, white) inset',\n zIndex: 1,\n\n [EdgeChromiumHighContrastSelector]: {\n borderColor: 'var(--button-highContrast-focusColor)',\n boxShadow: '0 0 0 var(--button-focusInnerWidth, 1px) var(--button-highContrast-focusInnerColor) inset',\n },\n },\n\n ['& > *:not(:first-child)']: {\n marginLeft: 'var(--button-contentGap)',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n forcedColorAdjust: 'var(--button-forcedColorAdjust)',\n\n background: 'var(--button-highContrast-background)',\n borderColor: 'var(--button-highContrast-borderColor)',\n color: 'var(--button-highContrast-contentColor)',\n\n [`.${GlobalClassNames.icon}`]: {\n color: 'var(--button-highContrast-iconColor)',\n },\n },\n\n '&:hover': {\n background: 'var(--button-hovered-background, var(--button-background))',\n color: 'var(--button-hovered-contentColor, var(--button-contentColor))',\n borderColor: 'var(--button-hovered-borderColor, var(--button-borderColor))',\n boxShadow: 'var(--button-hovered-boxShadow, var(--button-boxShadow))',\n\n [`.${GlobalClassNames.icon}`]: {\n color: 'var(--button-hovered-iconColor, var(--button-iconColor))',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n background: 'var(--button-highContrast-hovered-background, var(--button-highContrast-background))',\n borderColor: 'var(--button-highContrast-hovered-borderColor, var(--button-highContrast-borderColor))',\n color: 'var(--button-highContrast-hovered-contentColor, var(--button-highContrast-contentColor))',\n [`.${GlobalClassNames.icon}`]: {\n color: 'var(--button-highContrast-hovered-iconColor, --button-highContrast-iconColor)',\n },\n },\n },\n\n '&:active': {\n background: 'var(--button-pressed-background, var(--button-hovered-background))',\n color: 'var(--button-pressed-contentColor, var(--button-hovered-contentColor, var(--button-contentColor)))',\n borderColor:\n 'var(--button-pressed-borderColor, var(--button-hovered-borderColor, var(--button-borderColor)))',\n boxShadow: 'var(--button-pressed-boxShadow, var(--button-hovered-boxShadow, var(--button-boxShadow)))',\n\n transform: 'var(--button-pressed-transform)',\n transition: 'var(--button-pressed-transition)',\n\n [`.${GlobalClassNames.icon}`]: {\n color: 'var(--button-pressed-iconColor, var(--button-iconColor))',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n background:\n 'var(--button-highContrast-pressed-background, ' +\n 'var(--button-highContrast-hovered-background, ' +\n 'var(--button-highContrast-background)))',\n borderColor:\n 'var(--button-highContrast-pressed-borderColor, ' +\n 'var(--button-highContrast-hovered-borderColor, ' +\n 'var(--button-highContrast-borderColor)))',\n color:\n 'var(--button-highContrast-pressed-contentColor, ' +\n 'var(--button-highContrast-hovered-contentColor, ' +\n 'var(--button-highContarst-contentColor)))',\n [`.${GlobalClassNames.icon}`]: {\n color:\n 'var(--button-highContrast-pressed-iconColor, ' +\n 'var(--button-highContrast-hovered-iconColor, ' +\n 'var(--button-highContrast-iconColor)))',\n },\n },\n },\n\n '&[aria-disabled=true]': {\n pointerEvents: 'none',\n opacity: 'var(--button-disabled-opacity)',\n backgroundColor: 'var(--button-disabled-background)',\n color: 'var(--button-disabled-contentColor)',\n borderColor: 'var(--button-disabled-borderColor)',\n boxShadow: 'var(--button-disabled-boxShadow)',\n\n [`.${GlobalClassNames.icon}`]: {\n color: 'var(--button-disabled-iconColor)',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n background: 'var(--button-highContrast-disabled-background, var(--button-highContrast-background))',\n borderColor: 'var(--button-highContrast-disabled-borderColor, var(--button-highContrast-borderColor))',\n color: 'var(--button-highContrast-disabled-contentColor, var(--button-highContrast-contentColor))',\n [`.${GlobalClassNames.icon}`]: {\n color: 'var(--button-highContrast-disabled-iconColor, --button-highContrast-iconColor)',\n },\n },\n },\n },\n ],\n\n icon: [\n GlobalClassNames.icon,\n {\n color: 'var(--button-iconColor)',\n display: 'flex',\n flexShrink: 0,\n alignItems: 'center',\n justifyContent: 'center',\n width: 'var(--button-iconSize)',\n height: 'var(--button-iconSize)',\n fontSize: 'var(--button-iconSize, inherit)',\n fontWeight: 'normal',\n lineHeight: '1',\n },\n ],\n\n content: {\n lineHeight: '1',\n },\n },\n\n variants: (theme: Theme): ButtonVariants => {\n const { fonts, effects, palette, semanticColors } = theme;\n\n return {\n root: {\n size: {\n smallest: '24px',\n smaller: '24px',\n small: '24px',\n regular: '32px',\n large: '40px',\n larger: '48px',\n largest: '64px',\n },\n\n // Sizing tokens\n iconSize: fonts?.mediumPlus?.fontSize as string,\n borderWidth: '1px',\n boxShadow: 'none',\n borderRadius: effects?.roundedCorner2,\n paddingLeft: '20px',\n paddingRight: '20px',\n paddingTop: '0',\n paddingBottom: '0',\n margin: '0',\n width: 'auto',\n minWidth: '96px',\n maxWidth: '280px',\n minHeight: 'var(--button-size-regular)',\n contentGap: '8px',\n\n // Font tokens\n fontWeight: '600',\n fontSize: fonts?.medium?.fontSize as string,\n fontFamily: fonts?.medium?.fontFamily,\n\n // Color tokens\n focusColor: palette?.black,\n focusInnerColor: palette?.white,\n background: semanticColors?.buttonBackground,\n borderColor: semanticColors?.buttonBorder,\n contentColor: semanticColors?.buttonText,\n iconColor: 'inherit',\n\n hovered: {\n background: semanticColors?.buttonBackgroundHovered,\n contentColor: semanticColors?.buttonTextHovered,\n },\n\n pressed: {\n background: semanticColors?.buttonBackgroundPressed,\n contentColor: semanticColors?.buttonTextPressed,\n },\n\n disabled: {\n background: semanticColors?.buttonBackgroundDisabled,\n borderColor: semanticColors?.buttonBorderDisabled,\n contentColor: semanticColors?.buttonTextDisabled,\n },\n\n highContrast: {\n borderColor: 'WindowText',\n contentColor: 'WindowText',\n iconColor: 'WindowText',\n\n hovered: {\n borderColor: 'Highlight',\n contentColor: 'Highlight',\n iconColor: 'Highlight',\n },\n\n pressed: {\n borderColor: 'Highlight',\n contentColor: 'WindowText',\n iconColor: 'WindowText',\n },\n\n disabled: {\n background: 'Window',\n borderColor: 'GrayText',\n contentColor: 'GrayText',\n iconColor: 'GrayText',\n },\n },\n },\n\n circular: {\n borderRadius: '50000px',\n },\n\n block: {\n width: '100%',\n maxWidth: 'none',\n },\n\n iconOnly: {\n minWidth: 'var(--button-height)',\n width: 'var(--button-height, var(--button-minHeight))',\n paddingTop: '0',\n paddingBottom: '0',\n paddingLeft: '0',\n paddingRight: '0',\n },\n\n primary: {\n background: 'var(--color-brand-background)',\n borderColor: 'var(--color-brand-borderColor)',\n contentColor: 'var(--color-brand-contentColor)',\n iconColor: 'inherit',\n forcedColorAdjust: 'none',\n\n hovered: {\n background: 'var(--color-brand-hovered-background)',\n borderColor: 'var(--color-brand-hovered-borderColor)',\n contentColor: 'var(--color-brand-hovered-contentColor)',\n },\n\n pressed: {\n background: 'var(--color-brand-pressed-background)',\n borderColor: 'var(--color-brand-pressed-borderColor)',\n contentColor: 'var(--color-brand-pressed-contentColor)',\n },\n\n highContrast: {\n background: 'WindowText',\n borderColor: 'WindowText',\n contentColor: 'Window',\n focusColor: 'WindowText',\n focusInnerColor: 'Window',\n iconColor: 'Window',\n\n hovered: {\n background: 'Highlight',\n borderColor: 'Highlight',\n contentColor: 'Window',\n iconColor: 'Window',\n },\n\n pressed: {\n background: 'WindowText',\n borderColor: 'WindowText',\n contentColor: 'Window',\n iconColor: 'Window',\n },\n\n disabled: {\n background: 'Window',\n borderColor: 'GrayText',\n contentColor: 'GrayText',\n iconColor: 'GrayText',\n },\n },\n },\n\n // TODO: no references to palette.\n ghost: {\n background: 'transparent',\n borderColor: 'transparent',\n contentColor: palette?.neutralPrimary,\n fontWeight: 'normal',\n iconColor: palette?.themeDarkAlt,\n forcedColorAdjust: 'none',\n\n disabled: {\n background: semanticColors?.disabledBackground,\n contentColor: palette?.neutralTertiary,\n iconColor: 'inherit',\n },\n\n expanded: {\n contentColor: palette?.themePrimary,\n },\n\n focused: {\n contentColor: palette?.neutralPrimary,\n iconColor: palette?.themeDarkAlt,\n },\n\n hovered: {\n background: palette?.neutralLighter,\n contentColor: palette?.themePrimary,\n iconColor: palette?.themePrimary,\n },\n\n pressed: {\n background: palette?.neutralLight,\n contentColor: palette?.black,\n iconColor: palette?.themeDarker,\n },\n\n highContrast: {\n background: 'Window',\n borderColor: 'transparent',\n contentColor: 'WindowText',\n iconColor: 'WindowText',\n\n hovered: {\n background: 'Window',\n borderColor: 'transparent',\n contentColor: 'Highlight',\n iconColor: 'Highlight',\n },\n\n pressed: {\n background: 'Window',\n borderColor: 'transparent',\n contentColor: 'Highlight',\n iconColor: 'Highlight',\n },\n\n disabled: {\n background: 'Window',\n borderColor: 'transparent',\n contentColor: 'GrayText',\n iconColor: 'GrayText',\n },\n },\n },\n\n // TODO: no references to palette.\n transparent: {\n background: 'transparent',\n borderColor: 'transparent',\n contentColor: palette?.neutralPrimary,\n fontWeight: 'normal',\n iconColor: palette?.themeDarkAlt,\n\n disabled: {\n background: 'transparent',\n borderColor: 'transparent',\n contentColor: palette.neutralTertiary,\n iconColor: 'inherit',\n },\n\n hovered: {\n background: 'transparent',\n contentColor: palette?.themePrimary,\n iconColor: palette?.themePrimary,\n },\n\n pressed: {\n background: 'transparent',\n contentColor: palette?.black,\n iconColor: palette?.themeDarker,\n },\n },\n\n ...ButtonSizeVariants,\n };\n },\n});\n"]}
@@ -1,6 +0,0 @@
1
- import { ButtonState } from './Button.types';
2
- /**
3
- * The useButton hook processes the Button draft state.
4
- * @param draftState - Button draft state to mutate.
5
- */
6
- export declare const useButtonState: (draftState: ButtonState) => void;
@@ -1,32 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- /**
5
- * The useButton hook processes the Button draft state.
6
- * @param draftState - Button draft state to mutate.
7
- */
8
- exports.useButtonState = function (draftState) {
9
- // Update the button's tab-index, keyboard handling, and aria attributes.
10
- if (draftState.as !== 'button') {
11
- draftState.role = 'button';
12
- if (draftState.as !== 'a') {
13
- var onKeyDown_1 = draftState.onKeyDown, onClick_1 = draftState.onClick;
14
- draftState['data-isFocusable'] = true;
15
- draftState.tabIndex = 0;
16
- draftState.onKeyDown = function (ev) {
17
- if (onKeyDown_1) {
18
- onKeyDown_1(ev);
19
- }
20
- if (!ev.defaultPrevented && onClick_1 && (ev.which === 20 || ev.which === 13)) {
21
- // Translate the keydown enter/space to a click.
22
- ev.preventDefault();
23
- ev.stopPropagation();
24
- ev.target.click();
25
- }
26
- };
27
- }
28
- }
29
- draftState.disabled = draftState['aria-disabled'] = draftState.disabled || draftState.loading;
30
- };
31
- });
32
- //# sourceMappingURL=useButtonState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useButtonState.js","sourceRoot":"../src/","sources":["components/Button/useButtonState.ts"],"names":[],"mappings":";;;IAGA;;;OAGG;IACU,QAAA,cAAc,GAAG,UAAC,UAAuB;QACpD,yEAAyE;QACzE,IAAI,UAAU,CAAC,EAAE,KAAK,QAAQ,EAAE;YAC9B,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC;YAE3B,IAAI,UAAU,CAAC,EAAE,KAAK,GAAG,EAAE;gBACjB,IAAA,kCAAS,EAAE,8BAAO,CAAgB;gBAE1C,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;gBACtC,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;gBAExB,UAAU,CAAC,SAAS,GAAG,UAAC,EAAoC;oBAC1D,IAAI,WAAS,EAAE;wBACb,WAAS,CAAC,EAAE,CAAC,CAAC;qBACf;oBAED,IAAI,CAAC,EAAE,CAAC,gBAAgB,IAAI,SAAO,IAAI,CAAC,EAAE,CAAC,KAAK,KAAK,EAAE,IAAI,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,EAAE;wBAC3E,gDAAgD;wBAChD,EAAE,CAAC,cAAc,EAAE,CAAC;wBACpB,EAAE,CAAC,eAAe,EAAE,CAAC;wBAEpB,EAAE,CAAC,MAAsB,CAAC,KAAK,EAAE,CAAC;qBACpC;gBACH,CAAC,CAAC;aACH;SACF;QAED,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,QAAQ,IAAI,UAAU,CAAC,OAAO,CAAC;IAChG,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { ButtonState } from './Button.types';\n\n/**\n * The useButton hook processes the Button draft state.\n * @param draftState - Button draft state to mutate.\n */\nexport const useButtonState = (draftState: ButtonState) => {\n // Update the button's tab-index, keyboard handling, and aria attributes.\n if (draftState.as !== 'button') {\n draftState.role = 'button';\n\n if (draftState.as !== 'a') {\n const { onKeyDown, onClick } = draftState;\n\n draftState['data-isFocusable'] = true;\n draftState.tabIndex = 0;\n\n draftState.onKeyDown = (ev: React.KeyboardEvent<HTMLElement>) => {\n if (onKeyDown) {\n onKeyDown(ev);\n }\n\n if (!ev.defaultPrevented && onClick && (ev.which === 20 || ev.which === 13)) {\n // Translate the keydown enter/space to a click.\n ev.preventDefault();\n ev.stopPropagation();\n\n (ev.target as HTMLElement).click();\n }\n };\n }\n }\n\n draftState.disabled = draftState['aria-disabled'] = draftState.disabled || draftState.loading;\n};\n"]}
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { CompoundButtonProps } from './CompoundButton.types';
3
- /**
4
- * Define a styled CompoundButton, using the `useCompoundButton` hook.
5
- * {@docCategory Button}
6
- */
7
- export declare const CompoundButton: React.ForwardRefExoticComponent<Pick<CompoundButtonProps, string | number> & React.RefAttributes<HTMLElement>>;
@@ -1,17 +0,0 @@
1
- define(["require", "exports", "react", "@fluentui/react-theme-provider", "@fluentui/utilities", "./useCompoundButton", "./useCompoundButtonClasses"], function (require, exports, React, react_theme_provider_1, utilities_1, useCompoundButton_1, useCompoundButtonClasses_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- /**
5
- * Define a styled CompoundButton, using the `useCompoundButton` hook.
6
- * {@docCategory Button}
7
- */
8
- exports.CompoundButton = React.forwardRef(function (props, ref) {
9
- var _a = useCompoundButton_1.useCompoundButton(props, ref), render = _a.render, state = _a.state;
10
- useCompoundButtonClasses_1.useCompoundButtonClasses(state);
11
- utilities_1.useFocusRects(state.ref);
12
- react_theme_provider_1.useInlineTokens(state, '--button');
13
- return render(state);
14
- });
15
- exports.CompoundButton.displayName = 'CompoundButton';
16
- });
17
- //# sourceMappingURL=CompoundButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompoundButton.js","sourceRoot":"../src/","sources":["components/CompoundButton/CompoundButton.tsx"],"names":[],"mappings":";;;IAOA;;;OAGG;IACU,QAAA,cAAc,GAAG,KAAK,CAAC,UAAU,CAAmC,UAAC,KAAK,EAAE,GAAG;QACpF,IAAA,sDAAiD,EAA/C,kBAAM,EAAE,gBAAuC,CAAC;QAExD,mDAAwB,CAAC,KAAK,CAAC,CAAC;QAChC,yBAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACzB,sCAAe,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAEnC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,sBAAc,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,33 +0,0 @@
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 {
7
- /**
8
- * Second line of text that describes the action this button takes.
9
- */
10
- secondaryContent?: ShorthandProps;
11
- /**
12
- * Container that wraps the children and secondaryContent slots.
13
- */
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;
29
- };
30
- /**
31
- * {@docCategory Button}
32
- */
33
- export declare type CompoundButtonVariants = ButtonVariants<CompoundButtonTokens>;
@@ -1,5 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- });
5
- //# sourceMappingURL=CompoundButton.types.js.map
@@ -1 +0,0 @@
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,4 +0,0 @@
1
- export * from './CompoundButton';
2
- export * from './CompoundButton.types';
3
- export * from './useCompoundButton';
4
- export * from './useCompoundButtonClasses';
@@ -1,8 +0,0 @@
1
- define(["require", "exports", "tslib", "./CompoundButton", "./useCompoundButton", "./useCompoundButtonClasses"], function (require, exports, tslib_1, CompoundButton_1, useCompoundButton_1, useCompoundButtonClasses_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- tslib_1.__exportStar(CompoundButton_1, exports);
5
- tslib_1.__exportStar(useCompoundButton_1, exports);
6
- tslib_1.__exportStar(useCompoundButtonClasses_1, exports);
7
- });
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/CompoundButton/index.ts"],"names":[],"mappings":";;;IAAA,gDAAiC;IAEjC,mDAAoC;IACpC,0DAA2C","sourcesContent":["export * from './CompoundButton';\nexport * from './CompoundButton.types';\nexport * from './useCompoundButton';\nexport * from './useCompoundButtonClasses';\n"]}
@@ -1,5 +0,0 @@
1
- import { CompoundButtonState } from './CompoundButton.types';
2
- /**
3
- * Define the render function. Given the state of a button, renders it.
4
- */
5
- export declare const renderCompoundButton: (state: CompoundButtonState) => JSX.Element;