@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,6 +0,0 @@
1
- import * as React from 'react';
2
- import { ToggleButtonProps } from './ToggleButton.types';
3
- export declare const useToggleButton: (props: ToggleButtonProps, ref: React.Ref<HTMLElement>, defaultProps?: ToggleButtonProps | undefined) => {
4
- state: Record<string, any>;
5
- render: (state: import("../Button").ButtonState) => JSX.Element;
6
- };
@@ -1,10 +0,0 @@
1
- define(["require", "exports", "../Button/useButton", "./useChecked"], function (require, exports, useButton_1, useChecked_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.useToggleButton = function (props, ref, defaultProps) {
5
- var buttonDefinition = useButton_1.useButton(props, ref, defaultProps);
6
- useChecked_1.useChecked(buttonDefinition.state);
7
- return buttonDefinition;
8
- };
9
- });
10
- //# sourceMappingURL=useToggleButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useToggleButton.js","sourceRoot":"../src/","sources":["components/ToggleButton/useToggleButton.tsx"],"names":[],"mappings":";;;IAKa,QAAA,eAAe,GAAG,UAC7B,KAAwB,EACxB,GAA2B,EAC3B,YAAgC;QAEhC,IAAM,gBAAgB,GAAG,qBAAS,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC;QAE7D,uBAAU,CAAC,gBAAgB,CAAC,KAA0B,CAAC,CAAC;QAExD,OAAO,gBAAgB,CAAC;IAC1B,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { useButton } from '../Button/useButton';\nimport { ToggleButtonProps } from './ToggleButton.types';\nimport { useChecked } from './useChecked';\n\nexport const useToggleButton = (\n props: ToggleButtonProps,\n ref: React.Ref<HTMLElement>,\n defaultProps?: ToggleButtonProps,\n) => {\n const buttonDefinition = useButton(props, ref, defaultProps);\n\n useChecked(buttonDefinition.state as ToggleButtonProps);\n\n return buttonDefinition;\n};\n"]}
@@ -1,3 +0,0 @@
1
- import { Theme } from '@fluentui/react-theme-provider';
2
- import { ToggleButtonState } from './ToggleButton.types';
3
- export declare const useToggleButtonClasses: (state: ToggleButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;
@@ -1,132 +0,0 @@
1
- define(["require", "exports", "@fluentui/style-utilities", "@fluentui/react-theme-provider"], function (require, exports, style_utilities_1, react_theme_provider_1) {
2
- "use strict";
3
- var _a, _b, _c;
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.useToggleButtonClasses = react_theme_provider_1.makeVariantClasses({
6
- name: 'ToggleButton',
7
- prefix: '--button',
8
- styles: {
9
- // When checked is applied, apply the right tokens to the right css properties.
10
- _checked: (_a = {
11
- background: 'var(--button-checked-background)',
12
- color: 'var(--button-checked-contentColor)',
13
- '.ms-Button-icon': {
14
- color: 'var(--button-checked-iconColor)',
15
- }
16
- },
17
- _a[style_utilities_1.EdgeChromiumHighContrastSelector] = {
18
- background: 'var(--button-highContrast-checked-background)',
19
- color: 'var(--button-highContrast-checked-contentColor)',
20
- '.ms-Button-icon': {
21
- color: 'var(--button-highContrast-checked-iconColor)',
22
- },
23
- },
24
- _a[':hover'] = (_b = {
25
- background: 'var(--button-checkedHovered-background)',
26
- color: 'var(--button-checkedHovered-contentColor)',
27
- '.ms-Button-icon': {
28
- color: 'var(--button-checkedHovered-iconColor)',
29
- }
30
- },
31
- _b[style_utilities_1.EdgeChromiumHighContrastSelector] = {
32
- background: 'var(--button-highContrast-checkedHovered-background, var(--button-highContrast-checked-background))',
33
- color: 'var(--button-highContrast-checkedHovered-contentColor, var(--button-highContrast-checked-contentColor))',
34
- '.ms-Button-icon': {
35
- color: 'var(--button-highContrast-checkedHovered-iconColor, var(--button-highContrast-checked-iconColor))',
36
- },
37
- },
38
- _b),
39
- _a[':active'] = (_c = {
40
- background: 'var(--button-checkedPressed-background, var(--button-checkedHovered-background))',
41
- color: 'var(--button-checkedPressed-contentColor, var(--button-checkedHovered-contentColor))',
42
- '.ms-Button-icon': {
43
- color: 'var(--button-checkedPressed-iconColor, var(--button-checkedHovered-iconColor))',
44
- }
45
- },
46
- _c[style_utilities_1.EdgeChromiumHighContrastSelector] = {
47
- background: 'var(--button-highContrast-checkedPressed-background, ' +
48
- 'var(--button-highContrast-checkedHovered-background, ' +
49
- 'var(--button-highContrast-checked-background)))',
50
- color: 'var(--button-highContrast-checked--pressed-contentColor, ' +
51
- 'var(--button-highContrast-checked--hovered-contentColor, ' +
52
- 'var(--button-highContrast-checked-contentColor)))',
53
- '.ms-Button-icon': {
54
- color: 'var(--button-highContrast-checkedPressed-iconColor, ' +
55
- 'var(--button-highContrast-checkedHovered-iconColor, ' +
56
- '--button-highContrast-checked-iconColor)))',
57
- },
58
- },
59
- _c),
60
- _a),
61
- },
62
- variants: function (theme) {
63
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
64
- var palette = theme.palette, semanticColors = theme.semanticColors;
65
- return {
66
- root: {
67
- checked: {
68
- background: (_a = semanticColors) === null || _a === void 0 ? void 0 : _a.buttonBackgroundPressed,
69
- contentColor: (_b = semanticColors) === null || _b === void 0 ? void 0 : _b.buttonTextChecked,
70
- },
71
- checkedHovered: {
72
- background: (_c = semanticColors) === null || _c === void 0 ? void 0 : _c.buttonBackgroundPressed,
73
- contentColor: (_d = semanticColors) === null || _d === void 0 ? void 0 : _d.buttonTextCheckedHovered,
74
- },
75
- highContrast: {
76
- checked: {
77
- background: 'Window',
78
- contentColor: 'Highlight',
79
- iconColor: 'Highlight',
80
- },
81
- },
82
- },
83
- primary: {
84
- checked: {
85
- background: 'var(--color-brand-checked-background)',
86
- contentColor: 'var(--color-brand-checked-contentColor)',
87
- },
88
- checkedHovered: {
89
- background: 'var(--color-brand-checkedHovered-background)',
90
- contentColor: 'var(--color-brand-checkedHovered-contentColor)',
91
- },
92
- checkedPressed: {
93
- background: 'var(--color-brand-checkedPressed-background)',
94
- contentColor: 'var(--color-brand-checkedPressed-contentColor)',
95
- },
96
- highContrast: {
97
- checked: {
98
- background: 'Highlight',
99
- contentColor: 'Window',
100
- iconColor: 'Window',
101
- },
102
- },
103
- },
104
- ghost: {
105
- checked: {
106
- background: (_e = palette) === null || _e === void 0 ? void 0 : _e.neutralLight,
107
- contentColor: (_f = palette) === null || _f === void 0 ? void 0 : _f.neutralDark,
108
- iconColor: (_g = palette) === null || _g === void 0 ? void 0 : _g.themeDark,
109
- },
110
- checkedHovered: {
111
- background: (_h = palette) === null || _h === void 0 ? void 0 : _h.neutralQuaternaryAlt,
112
- contentColor: (_j = palette) === null || _j === void 0 ? void 0 : _j.neutralDark,
113
- iconColor: (_k = palette) === null || _k === void 0 ? void 0 : _k.themeDark,
114
- },
115
- },
116
- transparent: {
117
- checked: {
118
- background: 'transparent',
119
- contentColor: (_l = palette) === null || _l === void 0 ? void 0 : _l.themePrimary,
120
- iconColor: (_m = palette) === null || _m === void 0 ? void 0 : _m.themePrimary,
121
- },
122
- checkedHovered: {
123
- background: 'transparent',
124
- contentColor: (_o = palette) === null || _o === void 0 ? void 0 : _o.black,
125
- iconColor: (_p = palette) === null || _p === void 0 ? void 0 : _p.themeDarker,
126
- },
127
- },
128
- };
129
- },
130
- });
131
- });
132
- //# sourceMappingURL=useToggleButtonClasses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useToggleButtonClasses.js","sourceRoot":"../src/","sources":["components/ToggleButton/useToggleButtonClasses.tsx"],"names":[],"mappings":"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","sourcesContent":["import { EdgeChromiumHighContrastSelector } from '@fluentui/style-utilities';\nimport { makeVariantClasses, Theme } from '@fluentui/react-theme-provider';\nimport { ToggleButtonState, ToggleButtonVariants } from './ToggleButton.types';\n\nexport const useToggleButtonClasses = makeVariantClasses<ToggleButtonState, ToggleButtonVariants>({\n name: 'ToggleButton',\n prefix: '--button',\n\n styles: {\n // When checked is applied, apply the right tokens to the right css properties.\n _checked: {\n background: 'var(--button-checked-background)',\n color: 'var(--button-checked-contentColor)',\n '.ms-Button-icon': {\n color: 'var(--button-checked-iconColor)',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n background: 'var(--button-highContrast-checked-background)',\n color: 'var(--button-highContrast-checked-contentColor)',\n '.ms-Button-icon': {\n color: 'var(--button-highContrast-checked-iconColor)',\n },\n },\n\n ':hover': {\n background: 'var(--button-checkedHovered-background)',\n color: 'var(--button-checkedHovered-contentColor)',\n '.ms-Button-icon': {\n color: 'var(--button-checkedHovered-iconColor)',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n background:\n 'var(--button-highContrast-checkedHovered-background, var(--button-highContrast-checked-background))',\n color:\n 'var(--button-highContrast-checkedHovered-contentColor, var(--button-highContrast-checked-contentColor))',\n '.ms-Button-icon': {\n color: 'var(--button-highContrast-checkedHovered-iconColor, var(--button-highContrast-checked-iconColor))',\n },\n },\n },\n\n ':active': {\n background: 'var(--button-checkedPressed-background, var(--button-checkedHovered-background))',\n color: 'var(--button-checkedPressed-contentColor, var(--button-checkedHovered-contentColor))',\n '.ms-Button-icon': {\n color: 'var(--button-checkedPressed-iconColor, var(--button-checkedHovered-iconColor))',\n },\n\n [EdgeChromiumHighContrastSelector]: {\n background:\n 'var(--button-highContrast-checkedPressed-background, ' +\n 'var(--button-highContrast-checkedHovered-background, ' +\n 'var(--button-highContrast-checked-background)))',\n color:\n 'var(--button-highContrast-checked--pressed-contentColor, ' +\n 'var(--button-highContrast-checked--hovered-contentColor, ' +\n 'var(--button-highContrast-checked-contentColor)))',\n '.ms-Button-icon': {\n color:\n 'var(--button-highContrast-checkedPressed-iconColor, ' +\n 'var(--button-highContrast-checkedHovered-iconColor, ' +\n '--button-highContrast-checked-iconColor)))',\n },\n },\n },\n },\n },\n\n variants: (theme: Theme): ToggleButtonVariants => {\n const { palette, semanticColors } = theme;\n\n return {\n root: {\n checked: {\n background: semanticColors?.buttonBackgroundPressed,\n contentColor: semanticColors?.buttonTextChecked,\n },\n\n checkedHovered: {\n background: semanticColors?.buttonBackgroundPressed,\n contentColor: semanticColors?.buttonTextCheckedHovered,\n },\n\n highContrast: {\n checked: {\n background: 'Window',\n contentColor: 'Highlight',\n iconColor: 'Highlight',\n },\n },\n },\n\n primary: {\n checked: {\n background: 'var(--color-brand-checked-background)',\n contentColor: 'var(--color-brand-checked-contentColor)',\n },\n\n checkedHovered: {\n background: 'var(--color-brand-checkedHovered-background)',\n contentColor: 'var(--color-brand-checkedHovered-contentColor)',\n },\n\n checkedPressed: {\n background: 'var(--color-brand-checkedPressed-background)',\n contentColor: 'var(--color-brand-checkedPressed-contentColor)',\n },\n\n highContrast: {\n checked: {\n background: 'Highlight',\n contentColor: 'Window',\n iconColor: 'Window',\n },\n },\n },\n\n ghost: {\n checked: {\n background: palette?.neutralLight,\n contentColor: palette?.neutralDark,\n iconColor: palette?.themeDark,\n },\n\n checkedHovered: {\n background: palette?.neutralQuaternaryAlt,\n contentColor: palette?.neutralDark,\n iconColor: palette?.themeDark,\n },\n },\n\n transparent: {\n checked: {\n background: 'transparent',\n contentColor: palette?.themePrimary,\n iconColor: palette?.themePrimary,\n },\n\n checkedHovered: {\n background: 'transparent',\n contentColor: palette?.black,\n iconColor: palette?.themeDarker,\n },\n },\n };\n },\n});\n"]}
@@ -1,6 +0,0 @@
1
- import './version';
2
- export * from './Button';
3
- export * from './CompoundButton';
4
- export * from './MenuButton';
5
- export * from './SplitButton';
6
- export * from './ToggleButton';
package/lib-amd/index.js DELETED
@@ -1,10 +0,0 @@
1
- define(["require", "exports", "tslib", "./Button", "./CompoundButton", "./MenuButton", "./SplitButton", "./ToggleButton", "./version"], function (require, exports, tslib_1, Button_1, CompoundButton_1, MenuButton_1, SplitButton_1, ToggleButton_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- tslib_1.__exportStar(Button_1, exports);
5
- tslib_1.__exportStar(CompoundButton_1, exports);
6
- tslib_1.__exportStar(MenuButton_1, exports);
7
- tslib_1.__exportStar(SplitButton_1, exports);
8
- tslib_1.__exportStar(ToggleButton_1, exports);
9
- });
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;IAEA,wCAAyB;IACzB,gDAAiC;IACjC,4CAA6B;IAC7B,6CAA8B;IAC9B,8CAA+B","sourcesContent":["import './version';\n\nexport * from './Button';\nexport * from './CompoundButton';\nexport * from './MenuButton';\nexport * from './SplitButton';\nexport * from './ToggleButton';\n"]}
@@ -1,33 +0,0 @@
1
- /**
2
- * NOTE! THIS FILE IS TEMPORARY AND SHOULD BE DELETED ONCE IT HAS MOVED TO `@fluentui/react-compose`.
3
- */
4
- import * as React from 'react';
5
- export declare type ComponentClasses<TClasses, TState> = Partial<TClasses> | ((state: TState) => Partial<TClasses>);
6
- export interface ComponentProps {
7
- as?: React.ElementType;
8
- className?: string;
9
- }
10
- export declare type ShorthandValue<TProps> = string | boolean | number | null | undefined | TProps | JSX.Element;
11
- export declare type ComposeRender<TProps, TOptions> = (props: TProps, ref?: React.RefObject<HTMLElement>, options?: TOptions) => JSX.Element;
12
- export declare type ClassDictionary = any;
13
- export declare type GenericDictionary = Record<string, any>;
14
- export interface ComposeOptions<TProps, TSlots, TSlotProps, TStatics> {
15
- render: ComposeRender<TProps, ComposeOptions<TProps, TSlots, TSlotProps, TStatics>>;
16
- defaultProps: TProps;
17
- classes: ClassDictionary;
18
- stylesheet: string;
19
- slots: {
20
- [key in keyof TSlots]?: TSlots[key] | null;
21
- };
22
- slotProps: TSlotProps;
23
- statics: TStatics;
24
- }
25
- export declare type ComposedComponent<TProps = {}, TOptions = ComposeOptions<any, any, any, any>> = React.ForwardRefExoticComponent<TProps> & {
26
- options: TOptions;
27
- parent: ComposedComponent;
28
- } & ComposeStandardStatics;
29
- export interface ComposeStandardStatics {
30
- displayName?: string;
31
- mappedProp?: string;
32
- stylesheets?: string[];
33
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * NOTE! THIS FILE IS TEMPORARY AND SHOULD BE DELETED ONCE IT HAS MOVED TO `@fluentui/react-compose`.
3
- */
4
- define(["require", "exports"], function (require, exports) {
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- });
8
- //# sourceMappingURL=tempTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tempTypes.js","sourceRoot":"../src/","sources":["utils/tempTypes.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * NOTE! THIS FILE IS TEMPORARY AND SHOULD BE DELETED ONCE IT HAS MOVED TO `@fluentui/react-compose`.\n */\n\nimport * as React from 'react';\n\nexport type ComponentClasses<TClasses, TState> = Partial<TClasses> | ((state: TState) => Partial<TClasses>);\n\nexport interface ComponentProps {\n // Removing these props:\n // design - use style or className instead\n\n as?: React.ElementType;\n\n className?: string;\n}\n\nexport type ShorthandValue<TProps> = string | boolean | number | null | undefined | TProps | JSX.Element;\n\nexport type ComposeRender<TProps, TOptions> = (\n props: TProps,\n ref?: React.RefObject<HTMLElement>,\n options?: TOptions,\n) => JSX.Element;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ClassDictionary = any;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type GenericDictionary = Record<string, any>;\n\nexport interface ComposeOptions<TProps, TSlots, TSlotProps, TStatics> {\n render: ComposeRender<TProps, ComposeOptions<TProps, TSlots, TSlotProps, TStatics>>;\n defaultProps: TProps;\n classes: ClassDictionary;\n stylesheet: string;\n slots: { [key in keyof TSlots]?: TSlots[key] | null };\n slotProps: TSlotProps;\n statics: TStatics;\n}\n\nexport type ComposedComponent<\n TProps = {},\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TOptions = ComposeOptions<any, any, any, any>\n> = React.ForwardRefExoticComponent<TProps> & {\n options: TOptions;\n parent: ComposedComponent;\n} & ComposeStandardStatics;\n\nexport interface ComposeStandardStatics {\n displayName?: string;\n mappedProp?: string;\n stylesheets?: string[];\n}\n"]}
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- define(["require", "exports", "@fluentui/set-version"], function (require, exports, set_version_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- set_version_1.setVersion('@fluentui/react-button', '1.0.0-beta.8');
5
- });
6
- //# sourceMappingURL=version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.js","sourceRoot":"../src/","sources":["version.ts"],"names":[],"mappings":";;;IAGA,wBAAU,CAAC,wBAAwB,EAAE,cAAc,CAAC,CAAC","sourcesContent":["// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nimport { setVersion } from '@fluentui/set-version';\nsetVersion('@fluentui/react-button', '1.0.0-beta.8');"]}
@@ -1,29 +0,0 @@
1
- import { Theme } from '@fluentui/react-theme-provider';
2
- import { ButtonState } from './Button.types';
3
- export declare const ButtonSizeVariants: {
4
- size_smallest: {
5
- height: string;
6
- minHeight: string;
7
- };
8
- size_smaller: {
9
- height: string;
10
- minHeight: string;
11
- };
12
- size_small: {
13
- height: string;
14
- minHeight: string;
15
- };
16
- size_large: {
17
- height: string;
18
- minHeight: string;
19
- };
20
- size_larger: {
21
- height: string;
22
- minHeight: string;
23
- };
24
- size_largest: {
25
- height: string;
26
- minHeight: string;
27
- };
28
- };
29
- export declare const useButtonClasses: (state: ButtonState, theme?: Theme | undefined, renderer?: import("@fluentui/react-theme-provider").StyleRenderer | undefined) => void;