@fluentui/react-button 9.0.0-alpha.10 → 9.0.0-alpha.100

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. package/CHANGELOG.json +2418 -1
  2. package/CHANGELOG.md +920 -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 +204 -82
  8. package/lib/Button.js.map +1 -1
  9. package/lib/CompoundButton.d.ts +1 -0
  10. package/lib/CompoundButton.js +2 -0
  11. package/lib/CompoundButton.js.map +1 -0
  12. package/lib/MenuButton.d.ts +1 -0
  13. package/lib/MenuButton.js +2 -0
  14. package/lib/MenuButton.js.map +1 -0
  15. package/lib/SplitButton.d.ts +1 -0
  16. package/lib/SplitButton.js +2 -0
  17. package/lib/SplitButton.js.map +1 -0
  18. package/lib/ToggleButton.d.ts +1 -0
  19. package/lib/ToggleButton.js +2 -0
  20. package/lib/ToggleButton.js.map +1 -0
  21. package/lib/common/isConformant.d.ts +4 -2
  22. package/lib/common/isConformant.js +9 -6
  23. package/lib/common/isConformant.js.map +1 -1
  24. package/lib/components/Button/Button.d.ts +4 -11
  25. package/lib/components/Button/Button.js +7 -16
  26. package/lib/components/Button/Button.js.map +1 -1
  27. package/lib/components/Button/Button.types.d.ts +57 -60
  28. package/lib/components/Button/Button.types.js +1 -0
  29. package/lib/components/Button/Button.types.js.map +1 -1
  30. package/lib/components/Button/index.d.ts +1 -2
  31. package/lib/components/Button/index.js +1 -1
  32. package/lib/components/Button/index.js.map +1 -1
  33. package/lib/components/Button/renderButton.d.ts +2 -2
  34. package/lib/components/Button/renderButton.js +9 -8
  35. package/lib/components/Button/renderButton.js.map +1 -1
  36. package/lib/components/Button/useButton.d.ts +5 -7
  37. package/lib/components/Button/useButton.js +49 -23
  38. package/lib/components/Button/useButton.js.map +1 -1
  39. package/lib/components/Button/useButtonStyles.d.ts +10 -4
  40. package/lib/components/Button/useButtonStyles.js +350 -378
  41. package/lib/components/Button/useButtonStyles.js.map +1 -1
  42. package/lib/components/CompoundButton/CompoundButton.d.ts +6 -0
  43. package/lib/components/CompoundButton/CompoundButton.js +15 -0
  44. package/lib/components/CompoundButton/CompoundButton.js.map +1 -0
  45. package/lib/components/CompoundButton/CompoundButton.types.d.ts +14 -0
  46. package/lib/components/CompoundButton/CompoundButton.types.js +2 -0
  47. package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -0
  48. package/lib/components/CompoundButton/index.d.ts +5 -0
  49. package/lib/components/CompoundButton/index.js +6 -0
  50. package/lib/components/CompoundButton/index.js.map +1 -0
  51. package/lib/components/CompoundButton/renderCompoundButton.d.ts +5 -0
  52. package/lib/components/CompoundButton/renderCompoundButton.js +17 -0
  53. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -0
  54. package/lib/components/CompoundButton/useCompoundButton.d.ts +8 -0
  55. package/lib/components/CompoundButton/useCompoundButton.js +29 -0
  56. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -0
  57. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +2 -0
  58. package/lib/components/CompoundButton/useCompoundButtonStyles.js +164 -0
  59. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
  60. package/lib/components/MenuButton/MenuButton.d.ts +6 -0
  61. package/lib/components/MenuButton/MenuButton.js +15 -0
  62. package/lib/components/MenuButton/MenuButton.js.map +1 -0
  63. package/lib/components/MenuButton/MenuButton.types.d.ts +11 -0
  64. package/lib/components/MenuButton/MenuButton.types.js +2 -0
  65. package/lib/components/MenuButton/MenuButton.types.js.map +1 -0
  66. package/lib/components/MenuButton/index.d.ts +5 -0
  67. package/lib/components/MenuButton/index.js +6 -0
  68. package/lib/components/MenuButton/index.js.map +1 -0
  69. package/lib/components/MenuButton/renderMenuButton.d.ts +5 -0
  70. package/lib/components/MenuButton/renderMenuButton.js +17 -0
  71. package/lib/components/MenuButton/renderMenuButton.js.map +1 -0
  72. package/lib/components/MenuButton/useMenuButton.d.ts +6 -0
  73. package/lib/components/MenuButton/useMenuButton.js +32 -0
  74. package/lib/components/MenuButton/useMenuButton.js.map +1 -0
  75. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +2 -0
  76. package/lib/components/MenuButton/useMenuButtonStyles.js +34 -0
  77. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -0
  78. package/lib/components/SplitButton/SplitButton.d.ts +7 -0
  79. package/lib/components/SplitButton/SplitButton.js +16 -0
  80. package/lib/components/SplitButton/SplitButton.js.map +1 -0
  81. package/lib/components/SplitButton/SplitButton.types.d.ts +19 -0
  82. package/lib/components/SplitButton/SplitButton.types.js +2 -0
  83. package/lib/components/SplitButton/SplitButton.types.js.map +1 -0
  84. package/lib/components/SplitButton/index.d.ts +5 -0
  85. package/lib/components/SplitButton/index.js +6 -0
  86. package/lib/components/SplitButton/index.js.map +1 -0
  87. package/lib/components/SplitButton/renderSplitButton.d.ts +5 -0
  88. package/lib/components/SplitButton/renderSplitButton.js +15 -0
  89. package/lib/components/SplitButton/renderSplitButton.js.map +1 -0
  90. package/lib/components/SplitButton/useSplitButton.d.ts +8 -0
  91. package/lib/components/SplitButton/useSplitButton.js +73 -0
  92. package/lib/components/SplitButton/useSplitButton.js.map +1 -0
  93. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +2 -0
  94. package/lib/components/SplitButton/useSplitButtonStyles.js +77 -0
  95. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -0
  96. package/lib/components/ToggleButton/ToggleButton.d.ts +6 -0
  97. package/lib/components/ToggleButton/ToggleButton.js +15 -0
  98. package/lib/components/ToggleButton/ToggleButton.js.map +1 -0
  99. package/lib/components/ToggleButton/ToggleButton.types.d.ts +19 -0
  100. package/lib/components/ToggleButton/ToggleButton.types.js +2 -0
  101. package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -0
  102. package/lib/components/ToggleButton/index.d.ts +5 -0
  103. package/lib/components/ToggleButton/index.js +6 -0
  104. package/lib/components/ToggleButton/index.js.map +1 -0
  105. package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -0
  106. package/lib/components/ToggleButton/renderToggleButton.js +2 -0
  107. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -0
  108. package/lib/components/ToggleButton/useToggleButton.d.ts +9 -0
  109. package/lib/components/ToggleButton/useToggleButton.js +50 -0
  110. package/lib/components/ToggleButton/useToggleButton.js.map +1 -0
  111. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +2 -0
  112. package/lib/components/ToggleButton/useToggleButtonStyles.js +190 -0
  113. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
  114. package/lib/index.d.ts +4 -0
  115. package/lib/index.js +4 -0
  116. package/lib/index.js.map +1 -1
  117. package/lib/tsdoc-metadata.json +1 -1
  118. package/lib-commonjs/Button.js +7 -2
  119. package/lib-commonjs/Button.js.map +1 -1
  120. package/lib-commonjs/CompoundButton.d.ts +1 -0
  121. package/lib-commonjs/CompoundButton.js +10 -0
  122. package/lib-commonjs/CompoundButton.js.map +1 -0
  123. package/lib-commonjs/MenuButton.d.ts +1 -0
  124. package/lib-commonjs/MenuButton.js +10 -0
  125. package/lib-commonjs/MenuButton.js.map +1 -0
  126. package/lib-commonjs/SplitButton.d.ts +1 -0
  127. package/lib-commonjs/SplitButton.js +10 -0
  128. package/lib-commonjs/SplitButton.js.map +1 -0
  129. package/lib-commonjs/ToggleButton.d.ts +1 -0
  130. package/lib-commonjs/ToggleButton.js +10 -0
  131. package/lib-commonjs/ToggleButton.js.map +1 -0
  132. package/lib-commonjs/common/isConformant.d.ts +4 -2
  133. package/lib-commonjs/common/isConformant.js +19 -8
  134. package/lib-commonjs/common/isConformant.js.map +1 -1
  135. package/lib-commonjs/components/Button/Button.d.ts +4 -11
  136. package/lib-commonjs/components/Button/Button.js +20 -20
  137. package/lib-commonjs/components/Button/Button.js.map +1 -1
  138. package/lib-commonjs/components/Button/Button.types.d.ts +57 -60
  139. package/lib-commonjs/components/Button/Button.types.js +4 -1
  140. package/lib-commonjs/components/Button/Button.types.js.map +1 -1
  141. package/lib-commonjs/components/Button/index.d.ts +1 -2
  142. package/lib-commonjs/components/Button/index.js +21 -5
  143. package/lib-commonjs/components/Button/index.js.map +1 -1
  144. package/lib-commonjs/components/Button/renderButton.d.ts +2 -2
  145. package/lib-commonjs/components/Button/renderButton.js +24 -13
  146. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  147. package/lib-commonjs/components/Button/useButton.d.ts +5 -7
  148. package/lib-commonjs/components/Button/useButton.js +59 -24
  149. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  150. package/lib-commonjs/components/Button/useButtonStyles.d.ts +10 -4
  151. package/lib-commonjs/components/Button/useButtonStyles.js +360 -379
  152. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  153. package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +6 -0
  154. package/lib-commonjs/components/CompoundButton/CompoundButton.js +26 -0
  155. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -0
  156. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +14 -0
  157. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js +6 -0
  158. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -0
  159. package/lib-commonjs/components/CompoundButton/index.d.ts +5 -0
  160. package/lib-commonjs/components/CompoundButton/index.js +26 -0
  161. package/lib-commonjs/components/CompoundButton/index.js.map +1 -0
  162. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +5 -0
  163. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +29 -0
  164. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -0
  165. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +8 -0
  166. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +41 -0
  167. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -0
  168. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +2 -0
  169. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +175 -0
  170. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -0
  171. package/lib-commonjs/components/MenuButton/MenuButton.d.ts +6 -0
  172. package/lib-commonjs/components/MenuButton/MenuButton.js +26 -0
  173. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -0
  174. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +11 -0
  175. package/lib-commonjs/components/MenuButton/MenuButton.types.js +6 -0
  176. package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -0
  177. package/lib-commonjs/components/MenuButton/index.d.ts +5 -0
  178. package/lib-commonjs/components/MenuButton/index.js +26 -0
  179. package/lib-commonjs/components/MenuButton/index.js.map +1 -0
  180. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +5 -0
  181. package/lib-commonjs/components/MenuButton/renderMenuButton.js +29 -0
  182. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -0
  183. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +6 -0
  184. package/lib-commonjs/components/MenuButton/useMenuButton.js +46 -0
  185. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -0
  186. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +2 -0
  187. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +44 -0
  188. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -0
  189. package/lib-commonjs/components/SplitButton/SplitButton.d.ts +7 -0
  190. package/lib-commonjs/components/SplitButton/SplitButton.js +27 -0
  191. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -0
  192. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +19 -0
  193. package/lib-commonjs/components/SplitButton/SplitButton.types.js +6 -0
  194. package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -0
  195. package/lib-commonjs/components/SplitButton/index.d.ts +5 -0
  196. package/lib-commonjs/components/SplitButton/index.js +26 -0
  197. package/lib-commonjs/components/SplitButton/index.js.map +1 -0
  198. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +5 -0
  199. package/lib-commonjs/components/SplitButton/renderSplitButton.js +27 -0
  200. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -0
  201. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +8 -0
  202. package/lib-commonjs/components/SplitButton/useSplitButton.js +86 -0
  203. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -0
  204. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +2 -0
  205. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +88 -0
  206. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -0
  207. package/lib-commonjs/components/ToggleButton/ToggleButton.d.ts +6 -0
  208. package/lib-commonjs/components/ToggleButton/ToggleButton.js +26 -0
  209. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -0
  210. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +19 -0
  211. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js +6 -0
  212. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -0
  213. package/lib-commonjs/components/ToggleButton/index.d.ts +5 -0
  214. package/lib-commonjs/components/ToggleButton/index.js +26 -0
  215. package/lib-commonjs/components/ToggleButton/index.js.map +1 -0
  216. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -0
  217. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +16 -0
  218. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -0
  219. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +9 -0
  220. package/lib-commonjs/components/ToggleButton/useToggleButton.js +63 -0
  221. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -0
  222. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +2 -0
  223. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +200 -0
  224. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -0
  225. package/lib-commonjs/index.d.ts +4 -0
  226. package/lib-commonjs/index.js +15 -2
  227. package/lib-commonjs/index.js.map +1 -1
  228. package/package.json +21 -14
  229. package/config/api-extractor.json +0 -3
  230. package/config/pre-copy.json +0 -9
  231. package/config/tests.js +0 -6
  232. package/etc/react-button.api.md +0 -104
  233. package/just.config.ts +0 -3
  234. package/lib/components/Button/useButtonState.d.ts +0 -6
  235. package/lib/components/Button/useButtonState.js +0 -45
  236. package/lib/components/Button/useButtonState.js.map +0 -1
  237. package/lib-amd/Button.d.ts +0 -1
  238. package/lib-amd/Button.js +0 -6
  239. package/lib-amd/Button.js.map +0 -1
  240. package/lib-amd/common/isConformant.d.ts +0 -2
  241. package/lib-amd/common/isConformant.js +0 -14
  242. package/lib-amd/common/isConformant.js.map +0 -1
  243. package/lib-amd/components/Button/Button.d.ts +0 -13
  244. package/lib-amd/components/Button/Button.js +0 -24
  245. package/lib-amd/components/Button/Button.js.map +0 -1
  246. package/lib-amd/components/Button/Button.types.d.ts +0 -65
  247. package/lib-amd/components/Button/Button.types.js +0 -5
  248. package/lib-amd/components/Button/Button.types.js.map +0 -1
  249. package/lib-amd/components/Button/index.d.ts +0 -6
  250. package/lib-amd/components/Button/index.js +0 -10
  251. package/lib-amd/components/Button/index.js.map +0 -1
  252. package/lib-amd/components/Button/renderButton.d.ts +0 -5
  253. package/lib-amd/components/Button/renderButton.js +0 -16
  254. package/lib-amd/components/Button/renderButton.js.map +0 -1
  255. package/lib-amd/components/Button/useButton.d.ts +0 -10
  256. package/lib-amd/components/Button/useButton.js +0 -28
  257. package/lib-amd/components/Button/useButton.js.map +0 -1
  258. package/lib-amd/components/Button/useButtonState.d.ts +0 -6
  259. package/lib-amd/components/Button/useButtonState.js +0 -48
  260. package/lib-amd/components/Button/useButtonState.js.map +0 -1
  261. package/lib-amd/components/Button/useButtonStyles.d.ts +0 -4
  262. package/lib-amd/components/Button/useButtonStyles.js +0 -385
  263. package/lib-amd/components/Button/useButtonStyles.js.map +0 -1
  264. package/lib-amd/index.d.ts +0 -1
  265. package/lib-amd/index.js +0 -6
  266. package/lib-amd/index.js.map +0 -1
  267. package/lib-commonjs/components/Button/useButtonState.d.ts +0 -6
  268. package/lib-commonjs/components/Button/useButtonState.js +0 -47
  269. package/lib-commonjs/components/Button/useButtonState.js.map +0 -1
  270. package/src/components/Button/Button.types.ts +0 -120
@@ -0,0 +1,19 @@
1
+ import type { ComponentProps, ComponentState, IntrinsicShorthandProps, ObjectShorthandProps } from '@fluentui/react-utilities';
2
+ import type { ButtonProps, ButtonState } from '../Button/Button.types';
3
+ import type { MenuButtonProps, MenuButtonState } from '../MenuButton/MenuButton.types';
4
+ export declare type SplitButtonSlots = {
5
+ /**
6
+ * Root of the component that wraps the primary action button and menu button.
7
+ */
8
+ root: IntrinsicShorthandProps<'div'>;
9
+ /**
10
+ * Button that opens menu with secondary actions in SplitButton.
11
+ */
12
+ menuButton?: ObjectShorthandProps<MenuButtonProps>;
13
+ /**
14
+ * Button to perform primary action in SplitButton.
15
+ */
16
+ primaryActionButton?: ObjectShorthandProps<ButtonProps>;
17
+ };
18
+ export declare type SplitButtonProps = ComponentProps<SplitButtonSlots> & Omit<ButtonProps, 'root'> & Omit<MenuButtonProps, 'root'>;
19
+ export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SplitButton.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitButton.types.js","sourceRoot":"","sources":["../../../src/components/SplitButton/SplitButton.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './SplitButton';
2
+ export * from './SplitButton.types';
3
+ export * from './renderSplitButton';
4
+ export * from './useSplitButton';
5
+ export { useSplitButtonStyles } from './useSplitButtonStyles';
@@ -0,0 +1,6 @@
1
+ export * from './SplitButton';
2
+ export * from './SplitButton.types';
3
+ export * from './renderSplitButton';
4
+ export * from './useSplitButton';
5
+ export { useSplitButtonStyles } from './useSplitButtonStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SplitButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { SplitButtonState } from './SplitButton.types';
2
+ /**
3
+ * Renders a SplitButton component by passing the state defined props to the appropriate slots.
4
+ */
5
+ export declare const renderSplitButton: (state: SplitButtonState) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { __assign } from "tslib";
2
+ import * as React from 'react';
3
+ import { getSlots } from '@fluentui/react-utilities';
4
+ /**
5
+ * Renders a SplitButton component by passing the state defined props to the appropriate slots.
6
+ */
7
+
8
+ export var renderSplitButton = function (state) {
9
+ var _a = getSlots(state, ['root', 'menuButton', 'primaryActionButton']),
10
+ slots = _a.slots,
11
+ slotProps = _a.slotProps;
12
+
13
+ return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root), /*#__PURE__*/React.createElement(slots.primaryActionButton, __assign({}, slotProps.primaryActionButton)), /*#__PURE__*/React.createElement(slots.menuButton, __assign({}, slotProps.menuButton)));
14
+ };
15
+ //# sourceMappingURL=renderSplitButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/SplitButton/renderSplitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,IAAM,iBAAiB,GAAG,UAAC,KAAD,EAAwB;AACjD,MAAA,EAAA,GAAuB,QAAQ,CAAmB,KAAnB,EAA0B,CAAC,MAAD,EAAS,YAAT,EAAuB,qBAAvB,CAA1B,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,mBAAP,EAA0B,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,mBAAf,CAA1B,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,UAAP,EAAiB,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,UAAf,CAAjB,CAFF,CADF;AAMD,CATM","sourceRoot":""}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import type { SplitButtonProps, SplitButtonState } from './SplitButton.types';
3
+ /**
4
+ * Given user props, defines default props for the SplitButton and returns processed state.
5
+ * @param props - User provided props to the SplitButton component.
6
+ * @param ref - User provided ref to be passed to the SplitButton component.
7
+ */
8
+ export declare const useSplitButton: (props: SplitButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
@@ -0,0 +1,73 @@
1
+ import { __assign } from "tslib";
2
+ import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';
3
+ import { Button } from '../Button/Button';
4
+ import { MenuButton } from '../MenuButton/MenuButton';
5
+ /**
6
+ * Given user props, defines default props for the SplitButton and returns processed state.
7
+ * @param props - User provided props to the SplitButton component.
8
+ * @param ref - User provided ref to be passed to the SplitButton component.
9
+ */
10
+
11
+ export var useSplitButton = function (props, ref) {
12
+ var appearance = props.appearance,
13
+ _a = props.block,
14
+ block = _a === void 0 ? false : _a,
15
+ children = props.children,
16
+ _b = props.disabled,
17
+ disabled = _b === void 0 ? false : _b,
18
+ _c = props.disabledFocusable,
19
+ disabledFocusable = _c === void 0 ? false : _c,
20
+ icon = props.icon,
21
+ _d = props.iconPosition,
22
+ iconPosition = _d === void 0 ? 'before' : _d,
23
+ menuButton = props.menuButton,
24
+ primaryActionButton = props.primaryActionButton,
25
+ _e = props.shape,
26
+ shape = _e === void 0 ? 'rounded' : _e,
27
+ _f = props.size,
28
+ size = _f === void 0 ? 'medium' : _f;
29
+ var menuButtonShorthand = resolveShorthand(menuButton, {
30
+ defaultProps: {
31
+ appearance: appearance,
32
+ disabled: disabled,
33
+ disabledFocusable: disabledFocusable,
34
+ shape: shape,
35
+ size: size
36
+ }
37
+ });
38
+ var primaryActionButtonShorthand = resolveShorthand(primaryActionButton, {
39
+ defaultProps: {
40
+ appearance: appearance,
41
+ block: block,
42
+ children: children,
43
+ disabled: disabled,
44
+ disabledFocusable: disabledFocusable,
45
+ icon: icon,
46
+ iconPosition: iconPosition,
47
+ shape: shape,
48
+ size: size
49
+ }
50
+ });
51
+ return {
52
+ // Props passed at the top-level
53
+ appearance: appearance,
54
+ block: block,
55
+ disabled: disabled,
56
+ disabledFocusable: disabledFocusable,
57
+ iconPosition: iconPosition,
58
+ shape: shape,
59
+ size: size,
60
+ // Slots definition
61
+ components: {
62
+ root: 'div',
63
+ menuButton: MenuButton,
64
+ primaryActionButton: Button
65
+ },
66
+ root: getNativeElementProps('div', __assign({
67
+ ref: ref
68
+ }, props)),
69
+ menuButton: menuButtonShorthand,
70
+ primaryActionButton: primaryActionButtonShorthand
71
+ };
72
+ };
73
+ //# sourceMappingURL=useSplitButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/SplitButton/useSplitButton.ts"],"names":[],"mappings":";AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AACA,SAAS,MAAT,QAAuB,kBAAvB;AACA,SAAS,UAAT,QAA2B,0BAA3B;AAGA;;;;AAIG;;AACH,OAAO,IAAM,cAAc,GAAG,UAC5B,KAD4B,EAE5B,GAF4B,EAEyB;AAGnD,MAAA,UAAU,GAWR,KAAK,CAXG,UAAV;AAAA,MACA,EAAA,GAUE,KAAK,CAVM,KADb;AAAA,MACA,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EADb;AAAA,MAEA,QAAQ,GASN,KAAK,CATC,QAFR;AAAA,MAGA,EAAA,GAQE,KAAK,CARS,QAHhB;AAAA,MAGA,QAAQ,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAHhB;AAAA,MAIA,EAAA,GAOE,KAAK,CAPkB,iBAJzB;AAAA,MAIA,iBAAiB,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAJzB;AAAA,MAKA,IAAI,GAMF,KAAK,CANH,IALJ;AAAA,MAMA,EAAA,GAKE,KAAK,CALgB,YANvB;AAAA,MAMA,YAAY,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EANvB;AAAA,MAOA,UAAU,GAIR,KAAK,CAJG,UAPV;AAAA,MAQA,mBAAmB,GAGjB,KAAK,CAHY,mBARnB;AAAA,MASA,EAAA,GAEE,KAAK,CAFU,KATjB;AAAA,MASA,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,SAAH,GAAY,EATjB;AAAA,MAUA,EAAA,GACE,KAAK,CADQ,IAVf;AAAA,MAUA,IAAI,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EAVf;AAYF,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,UAAD,EAAa;AACvD,IAAA,YAAY,EAAE;AACZ,MAAA,UAAU,EAAA,UADE;AAEZ,MAAA,QAAQ,EAAA,QAFI;AAGZ,MAAA,iBAAiB,EAAA,iBAHL;AAIZ,MAAA,KAAK,EAAA,KAJO;AAKZ,MAAA,IAAI,EAAA;AALQ;AADyC,GAAb,CAA5C;AASA,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,mBAAD,EAAsB;AACzE,IAAA,YAAY,EAAE;AACZ,MAAA,UAAU,EAAA,UADE;AAEZ,MAAA,KAAK,EAAA,KAFO;AAGZ,MAAA,QAAQ,EAAA,QAHI;AAIZ,MAAA,QAAQ,EAAA,QAJI;AAKZ,MAAA,iBAAiB,EAAA,iBALL;AAMZ,MAAA,IAAI,EAAA,IANQ;AAOZ,MAAA,YAAY,EAAA,YAPA;AAQZ,MAAA,KAAK,EAAA,KARO;AASZ,MAAA,IAAI,EAAA;AATQ;AAD2D,GAAtB,CAArD;AAcA,SAAO;AACL;AACA,IAAA,UAAU,EAAA,UAFL;AAGL,IAAA,KAAK,EAAA,KAHA;AAIL,IAAA,QAAQ,EAAA,QAJH;AAKL,IAAA,iBAAiB,EAAA,iBALZ;AAML,IAAA,YAAY,EAAA,YANP;AAOL,IAAA,KAAK,EAAA,KAPA;AAQL,IAAA,IAAI,EAAA,IARC;AAUL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,KADI;AAEV,MAAA,UAAU,EAAE,UAFF;AAGV,MAAA,mBAAmB,EAAE;AAHX,KAXP;AAiBL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAM,QAAA,CAAA;AAAI,MAAA,GAAG,EAAA;AAAP,KAAA,EAAY,KAAZ,CAAN,CAjBtB;AAkBL,IAAA,UAAU,EAAE,mBAlBP;AAmBL,IAAA,mBAAmB,EAAE;AAnBhB,GAAP;AAqBD,CA7DM","sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ import type { SplitButtonState } from './SplitButton.types';
2
+ export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitButtonState;
@@ -0,0 +1,77 @@
1
+ import { __styles, mergeClasses } from '@fluentui/react-make-styles';
2
+ import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
3
+ var SplitButtonClassNames = {
4
+ primaryActionButton: 'SplitButton-primaryActionButton',
5
+ menuButton: 'SplitButton-menuButton'
6
+ };
7
+
8
+ var useFocusStyles = /*#__PURE__*/__styles({
9
+ "primaryActionButton": {},
10
+ "menuButton": {}
11
+ }, {});
12
+
13
+ var useRootStyles = /*#__PURE__*/__styles({
14
+ "base": {
15
+ "mc9l5x": "ftuwxu6",
16
+ "Brf1p80": "fsxf2b5",
17
+ "qhf8xq": "f10pi13n",
18
+ "ha4doy": "fmrv4ls",
19
+ "ipgm0c": ["f178uykt", "f90yzzo"],
20
+ "B6cuk21": ["f1bxd3c5", "f1ekv84t"],
21
+ "bajz6s": ["fnux5s6", "f5nfhee"],
22
+ "Bzqncq": ["f19wc9x7", "f5bevrs"],
23
+ "Flt4rd": ["f1wefiyg", "f1leuqsa"]
24
+ },
25
+ "block": {
26
+ "a9b677": "fly5x3f"
27
+ },
28
+ "outline": {},
29
+ "primary": {
30
+ "Bxrr62k": ["f8z1slf", "f1qj10op"],
31
+ "wqijrc": ["fmrqvvu", "fu0z9tm"],
32
+ "Bsk9mq6": ["f1naws84", "f1ry7auu"]
33
+ },
34
+ "subtle": {
35
+ "Bxrr62k": ["f1xobncs", "f1xirlzn"],
36
+ "wqijrc": ["f1hmsn3f", "fi0rm9z"],
37
+ "Bsk9mq6": ["fam4u78", "f1hqq1j6"]
38
+ },
39
+ "transparent": {
40
+ "Bxrr62k": ["f1xobncs", "f1xirlzn"],
41
+ "wqijrc": ["f1hmsn3f", "fi0rm9z"],
42
+ "Bsk9mq6": ["fam4u78", "f1hqq1j6"]
43
+ },
44
+ "circular": {},
45
+ "rounded": {},
46
+ "square": {},
47
+ "disabled": {
48
+ "Bxrr62k": ["f11wzqjl", "f1a5dzic"],
49
+ "wqijrc": ["fhk4lgh", "f1r7ztp2"],
50
+ "Bsk9mq6": ["f1ot7jx6", "f1qvd61g"]
51
+ }
52
+ }, {
53
+ "d": [".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".fsxf2b5{-webkit-box-pack:stretch;-ms-flex-pack:stretch;-webkit-justify-content:stretch;justify-content:stretch;}", ".f10pi13n{position:relative;}", ".fmrv4ls{vertical-align:middle;}", ".f178uykt .SplitButton-primaryActionButton{border-top-right-radius:0;}", ".f90yzzo .SplitButton-primaryActionButton{border-top-left-radius:0;}", ".f1bxd3c5 .SplitButton-primaryActionButton{border-bottom-right-radius:0;}", ".f1ekv84t .SplitButton-primaryActionButton{border-bottom-left-radius:0;}", ".fnux5s6 .SplitButton-menuButton{border-left-width:0;}", ".f5nfhee .SplitButton-menuButton{border-right-width:0;}", ".f19wc9x7 .SplitButton-menuButton{border-top-left-radius:0;}", ".f5bevrs .SplitButton-menuButton{border-top-right-radius:0;}", ".f1wefiyg .SplitButton-menuButton{border-bottom-left-radius:0;}", ".f1leuqsa .SplitButton-menuButton{border-bottom-right-radius:0;}", ".fly5x3f{width:100%;}", ".f8z1slf .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralForegroundInverted);}", ".f1qj10op .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralForegroundInverted);}", ".f1xobncs .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1xirlzn .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralStroke1Hover);}", ".f11wzqjl .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f1a5dzic .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralStrokeDisabled);}"],
54
+ "h": [".fmrqvvu:hover .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralForegroundInverted);}", ".fu0z9tm:hover .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralForegroundInverted);}", ".f1hmsn3f:hover .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralStroke1Hover);}", ".fi0rm9z:hover .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralStroke1Hover);}", ".fhk4lgh:hover .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f1r7ztp2:hover .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralStrokeDisabled);}"],
55
+ "a": [".f1naws84:active .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralForegroundInverted);}", ".f1ry7auu:active .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralForegroundInverted);}", ".fam4u78:active .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1hqq1j6:active .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1ot7jx6:active .SplitButton-primaryActionButton{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f1qvd61g:active .SplitButton-primaryActionButton{border-left-color:var(--colorNeutralStrokeDisabled);}"]
56
+ });
57
+
58
+ export var useSplitButtonStyles = function (state) {
59
+ var rootStyles = useRootStyles();
60
+ var focusStyles = useFocusStyles();
61
+ var appearance = state.appearance,
62
+ block = state.block,
63
+ disabled = state.disabled,
64
+ disabledFocusable = state.disabledFocusable;
65
+ state.root.className = mergeClasses(rootStyles.base, block && rootStyles.block, appearance && rootStyles[appearance], (disabled || disabledFocusable) && rootStyles.disabled, state.root.className);
66
+
67
+ if (state.menuButton) {
68
+ state.menuButton.className = mergeClasses(SplitButtonClassNames.menuButton, focusStyles.menuButton, state.menuButton.className);
69
+ }
70
+
71
+ if (state.primaryActionButton) {
72
+ state.primaryActionButton.className = mergeClasses(SplitButtonClassNames.primaryActionButton, focusStyles.primaryActionButton, state.primaryActionButton.className);
73
+ }
74
+
75
+ return state;
76
+ };
77
+ //# sourceMappingURL=useSplitButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/SplitButton/useSplitButtonStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AACA,SAAS,+BAAT,QAAgD,yBAAhD;AAGA,IAAM,qBAAqB,GAAG;AAC5B,EAAA,mBAAmB,EAAE,iCADO;AAE5B,EAAA,UAAU,EAAE;AAFgB,CAA9B;;AAKA,IAAM,cAAc,gBAAG;AAAA;AAAA;AAAA,MAAvB;;AAaA,IAAM,aAAa,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAtB;;AAgHA,OAAO,IAAM,oBAAoB,GAAG,UAAC,KAAD,EAAwB;AAC1D,MAAM,UAAU,GAAG,aAAa,EAAhC;AACA,MAAM,WAAW,GAAG,cAAc,EAAlC;AAEQ,MAAA,UAAU,GAAyC,KAAK,CAA9C,UAAV;AAAA,MAAY,KAAK,GAAkC,KAAK,CAAvC,KAAjB;AAAA,MAAmB,QAAQ,GAAwB,KAAK,CAA7B,QAA3B;AAAA,MAA6B,iBAAiB,GAAK,KAAK,CAAV,iBAA9C;AAER,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,UAAU,CAAC,IADsB,EAEjC,KAAK,IAAI,UAAU,CAAC,KAFa,EAGjC,UAAU,IAAI,UAAU,CAAC,UAAD,CAHS,EAIjC,CAAC,QAAQ,IAAI,iBAAb,KAAmC,UAAU,CAAC,QAJb,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;;AAQA,MAAI,KAAK,CAAC,UAAV,EAAsB;AACpB,IAAA,KAAK,CAAC,UAAN,CAAiB,SAAjB,GAA6B,YAAY,CACvC,qBAAqB,CAAC,UADiB,EAEvC,WAAW,CAAC,UAF2B,EAGvC,KAAK,CAAC,UAAN,CAAiB,SAHsB,CAAzC;AAKD;;AAED,MAAI,KAAK,CAAC,mBAAV,EAA+B;AAC7B,IAAA,KAAK,CAAC,mBAAN,CAA0B,SAA1B,GAAsC,YAAY,CAChD,qBAAqB,CAAC,mBAD0B,EAEhD,WAAW,CAAC,mBAFoC,EAGhD,KAAK,CAAC,mBAAN,CAA0B,SAHsB,CAAlD;AAKD;;AAED,SAAO,KAAP;AACD,CA/BM","sourceRoot":""}
@@ -0,0 +1,6 @@
1
+ import type { ToggleButtonProps } from './ToggleButton.types';
2
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
+ /**
4
+ * ToggleButtons are buttons that toggle between two defined states when triggered.
5
+ */
6
+ export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { renderToggleButton } from './renderToggleButton';
3
+ import { useToggleButton } from './useToggleButton';
4
+ import { useToggleButtonStyles } from './useToggleButtonStyles';
5
+ /**
6
+ * ToggleButtons are buttons that toggle between two defined states when triggered.
7
+ */
8
+
9
+ export var ToggleButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
+ var state = useToggleButton(props, ref);
11
+ useToggleButtonStyles(state);
12
+ return renderToggleButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
13
+ });
14
+ ToggleButton.displayName = 'ToggleButton';
15
+ //# sourceMappingURL=ToggleButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ToggleButton/ToggleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,kBAAT,QAAmC,sBAAnC;AACA,SAAS,eAAT,QAAgC,mBAAhC;AACA,SAAS,qBAAT,QAAsC,yBAAtC;AAIA;;AAEG;;AACH,OAAO,IAAM,YAAY,gBAA2C,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC9F,MAAM,KAAK,GAAG,eAAe,CAAC,KAAD,EAAQ,GAAR,CAA7B;AAEA,EAAA,qBAAqB,CAAC,KAAD,CAArB;AAEA,SAAO,kBAAkB,CAAC,KAAD,CAAzB,CAL8F,CAM9F;AACD,CAPmE,CAA7D;AASP,YAAY,CAAC,WAAb,GAA2B,cAA3B","sourceRoot":""}
@@ -0,0 +1,19 @@
1
+ import type { ButtonProps, ButtonState } from '../Button/Button.types';
2
+ export declare type ToggleButtonCommons = {
3
+ /**
4
+ * Defines the controlled checked state of the `ToggleButton`.
5
+ * If passed, `ToggleButton` ignores the `defaultChecked` property.
6
+ * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
7
+ * correct value based on handling `onClick` events and re-rendering.
8
+ * @default false
9
+ */
10
+ checked: boolean;
11
+ };
12
+ export declare type ToggleButtonProps = ButtonProps & Partial<ToggleButtonCommons> & {
13
+ /**
14
+ * Defines whether the `ToggleButton` is initially in a checked state or not when rendered.
15
+ * @default false
16
+ */
17
+ defaultChecked?: boolean;
18
+ };
19
+ export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ToggleButton.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleButton.types.js","sourceRoot":"","sources":["../../../src/components/ToggleButton/ToggleButton.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './ToggleButton';
2
+ export * from './ToggleButton.types';
3
+ export * from './renderToggleButton';
4
+ export * from './useToggleButton';
5
+ export { useToggleButtonStyles } from './useToggleButtonStyles';
@@ -0,0 +1,6 @@
1
+ export * from './ToggleButton';
2
+ export * from './ToggleButton.types';
3
+ export * from './renderToggleButton';
4
+ export * from './useToggleButton';
5
+ export { useToggleButtonStyles } from './useToggleButtonStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ToggleButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1 @@
1
+ export { renderButton as renderToggleButton } from '../Button/renderButton';
@@ -0,0 +1,2 @@
1
+ export { renderButton as renderToggleButton } from '../Button/renderButton';
2
+ //# sourceMappingURL=renderToggleButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderToggleButton.js","sourceRoot":"","sources":["../../../src/components/ToggleButton/renderToggleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import type { ToggleButtonProps, ToggleButtonState } from './ToggleButton.types';
3
+ /**
4
+ * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
5
+ * processed state.
6
+ * @param props - User provided props to the ToggleButton component.
7
+ * @param ref - User provided ref to be passed to the ToggleButton component.
8
+ */
9
+ export declare const useToggleButton: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
@@ -0,0 +1,50 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import { useControllableState } from '@fluentui/react-utilities';
3
+ import * as React from 'react';
4
+ import { useButton } from '../Button/useButton';
5
+ /**
6
+ * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
7
+ * processed state.
8
+ * @param props - User provided props to the ToggleButton component.
9
+ * @param ref - User provided ref to be passed to the ToggleButton component.
10
+ */
11
+
12
+ export var useToggleButton = function (_a, ref) {
13
+ var _b;
14
+
15
+ var checked = _a.checked,
16
+ defaultChecked = _a.defaultChecked,
17
+ props = __rest(_a, ["checked", "defaultChecked"]);
18
+
19
+ var buttonState = useButton(props, ref);
20
+ var _c = buttonState.root,
21
+ role = _c.role,
22
+ onClick = _c.onClick;
23
+
24
+ var _d = useControllableState({
25
+ state: checked,
26
+ defaultState: defaultChecked,
27
+ initialState: false
28
+ }),
29
+ checkedValue = _d[0],
30
+ setCheckedValue = _d[1];
31
+
32
+ var isCheckboxTypeRole = role === 'menuitemcheckbox' || role === 'checkbox';
33
+ return __assign(__assign({}, buttonState), {
34
+ // State calculated from a set of props
35
+ checked: checkedValue,
36
+ // Slots definition
37
+ root: __assign(__assign({}, buttonState.root), (_b = {}, _b[isCheckboxTypeRole ? 'aria-checked' : 'aria-pressed'] = !!checkedValue, _b.onClick = React.useCallback(function (ev) {
38
+ if (onClick) {
39
+ onClick(ev);
40
+
41
+ if (ev.defaultPrevented) {
42
+ return;
43
+ }
44
+ }
45
+
46
+ setCheckedValue(!checkedValue);
47
+ }, [checkedValue, setCheckedValue, onClick]), _b))
48
+ });
49
+ };
50
+ //# sourceMappingURL=useToggleButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ToggleButton/useToggleButton.ts"],"names":[],"mappings":";AAAA,SAAS,oBAAT,QAAqC,2BAArC;AACA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,SAAT,QAA0B,qBAA1B;AAGA;;;;;AAKG;;AACH,OAAO,IAAM,eAAe,GAAG,UAC7B,EAD6B,EAE7B,GAF6B,EAEwB;;;AADnD,MAAA,OAAO,GAAA,EAAA,CAAA,OAAP;AAAA,MAAS,cAAc,GAAA,EAAA,CAAA,cAAvB;AAAA,MAA4B,KAAK,GAAA,MAAA,CAAA,EAAA,EAAnC,CAAA,SAAA,EAAA,gBAAA,CAAmC,CAAjC;;AAGF,MAAM,WAAW,GAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAA7B;AACM,MAAA,EAAA,GAAoB,WAAW,CAAC,IAAhC;AAAA,MAAE,IAAI,GAAA,EAAA,CAAA,IAAN;AAAA,MAAQ,OAAO,GAAA,EAAA,CAAA,OAAf;;AAEA,MAAA,EAAA,GAAkC,oBAAoB,CAAC;AAC3D,IAAA,KAAK,EAAE,OADoD;AAE3D,IAAA,YAAY,EAAE,cAF6C;AAG3D,IAAA,YAAY,EAAE;AAH6C,GAAD,CAAtD;AAAA,MAAC,YAAY,GAAA,EAAA,CAAA,CAAA,CAAb;AAAA,MAAe,eAAe,GAAA,EAAA,CAAA,CAAA,CAA9B;;AAMN,MAAM,kBAAkB,GAAG,IAAI,KAAK,kBAAT,IAA+B,IAAI,KAAK,UAAnE;AAEA,SAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EAEK,WAFL,CAAA,EAEgB;AAEd;AACA,IAAA,OAAO,EAAE,YAHK;AAKd;AACA,IAAA,IAAI,EAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EACC,WAAW,CAAC,IADb,CAAA,GACiB,EAAA,GAAA,EAAA,EAAA,EAAA,CAClB,kBAAkB,GAAG,cAAH,GAAoB,cADpB,CAAA,GACqC,CAAC,CAAC,YADvC,EAEnB,EAAA,CAAA,OAAA,GAAS,KAAK,CAAC,WAAN,CACP,UAAA,EAAA,EAAE;AACA,UAAI,OAAJ,EAAa;AACX,QAAA,OAAO,CAAC,EAAD,CAAP;;AAEA,YAAI,EAAE,CAAC,gBAAP,EAAyB;AACvB;AACD;AACF;;AAED,MAAA,eAAe,CAAC,CAAC,YAAF,CAAf;AACD,KAXM,EAYP,CAAC,YAAD,EAAe,eAAf,EAAgC,OAAhC,CAZO,CAFU,EAelB,EAhBC;AANU,GAFhB,CAAA;AA2BD,CA1CM","sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ import type { ToggleButtonState } from './ToggleButton.types';
2
+ export declare const useToggleButtonStyles: (state: ToggleButtonState) => ToggleButtonState;
@@ -0,0 +1,190 @@
1
+ import { mergeClasses, __styles } from '@fluentui/react-make-styles';
2
+ import { useButtonStyles } from '../Button/useButtonStyles';
3
+
4
+ var useCheckedStyles = /*#__PURE__*/__styles({
5
+ "base": {
6
+ "ayd6f0": "fg85c1j",
7
+ "g2u3we": "fj3muxo",
8
+ "h3c5rm": ["f1akhkt", "f1lxtadh"],
9
+ "B9xav0g": "f1aperda",
10
+ "zhjwy3": ["f1lxtadh", "f1akhkt"],
11
+ "sj55zd": "f19n0e5",
12
+ "B4j52fo": "f192inf7",
13
+ "Bekrc4i": ["f5tn483", "f1ojsxk5"],
14
+ "Bn0qgzm": "f1vxd6vx",
15
+ "ibv6hh": ["f1ojsxk5", "f5tn483"],
16
+ "v4pbla": "f56u8ty",
17
+ "Bgoe8wy": "fvcxoqz",
18
+ "Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
19
+ "oetu4i": "f1xlaoq0",
20
+ "gg5e9n": ["f1m52nbi", "f1ub3y4t"],
21
+ "Bi91k9c": "fax3udt",
22
+ "vv34bc": "fzgy25m",
23
+ "B6oc9vd": "fvs00aa",
24
+ "ak43y8": ["f1assf6x", "f4ruux4"],
25
+ "wmxk5l": "fumykes",
26
+ "B50zh58": ["f4ruux4", "f1assf6x"],
27
+ "lj723h": "f1r2dosr"
28
+ },
29
+ "outline": {
30
+ "ayd6f0": "f6r4cvw",
31
+ "v4pbla": "f62j56f",
32
+ "vv34bc": "flt377r"
33
+ },
34
+ "primary": {
35
+ "ayd6f0": "fvinvdn",
36
+ "g2u3we": "f1p3nwhy",
37
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
38
+ "B9xav0g": "f1q5o8ev",
39
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
40
+ "sj55zd": "f1phragk",
41
+ "v4pbla": "f1fitrdm",
42
+ "Bgoe8wy": "f1s2uweq",
43
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
44
+ "oetu4i": "f1ukrpxl",
45
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
46
+ "Bi91k9c": "f1rq72xc",
47
+ "vv34bc": "f4ihffn",
48
+ "B6oc9vd": "ff472gp",
49
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
50
+ "wmxk5l": "fggejwh",
51
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
52
+ "lj723h": "f18otbis"
53
+ },
54
+ "subtle": {
55
+ "ayd6f0": "f1n839y3",
56
+ "g2u3we": "f1p3nwhy",
57
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
58
+ "B9xav0g": "f1q5o8ev",
59
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
60
+ "sj55zd": "f1qj7y59",
61
+ "v4pbla": "f4wzgrt",
62
+ "Bgoe8wy": "f1s2uweq",
63
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
64
+ "oetu4i": "f1ukrpxl",
65
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
66
+ "Bi91k9c": "f139oj5f",
67
+ "vv34bc": "f1be4e1d",
68
+ "B6oc9vd": "ff472gp",
69
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
70
+ "wmxk5l": "fggejwh",
71
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
72
+ "lj723h": "f19au66r"
73
+ },
74
+ "transparent": {
75
+ "ayd6f0": "f6r4cvw",
76
+ "g2u3we": "f1p3nwhy",
77
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
78
+ "B9xav0g": "f1q5o8ev",
79
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
80
+ "sj55zd": "f1qj7y59",
81
+ "v4pbla": "f62j56f",
82
+ "Bgoe8wy": "f1s2uweq",
83
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
84
+ "oetu4i": "f1ukrpxl",
85
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
86
+ "Bi91k9c": "f139oj5f",
87
+ "vv34bc": "flt377r",
88
+ "B6oc9vd": "ff472gp",
89
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
90
+ "wmxk5l": "fggejwh",
91
+ "B50zh58": ["ft2aflc", "f4yyc7m"],
92
+ "lj723h": "f19au66r"
93
+ }
94
+ }, {
95
+ "d": [".fg85c1j{background:var(--colorNeutralBackground1Selected);}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".f6r4cvw{background:var(--colorTransparentBackgroundSelected);}", ".fvinvdn{background:var(--colorBrandBackgroundSelected);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".f1n839y3{background:var(--colorSubtleBackgroundSelected);}", ".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],
96
+ "h": [".f56u8ty:hover{background:var(--colorNeutralBackground1Hover);}", ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}", ".fax3udt:hover{color:var(--colorNeutralForeground1);}", ".f62j56f:hover{background:var(--colorTransparentBackgroundHover);}", ".f1fitrdm:hover{background:var(--colorBrandBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}", ".f4wzgrt:hover{background:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}"],
97
+ "a": [".fzgy25m:active{background:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".flt377r:active{background:var(--colorTransparentBackgroundPressed);}", ".f4ihffn:active{background:var(--colorBrandBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1be4e1d:active{background:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
98
+ });
99
+
100
+ var useDisabledStyles = /*#__PURE__*/__styles({
101
+ "base": {
102
+ "ayd6f0": "fqst6tg",
103
+ "g2u3we": "f1jj8ep1",
104
+ "h3c5rm": ["f15xbau", "fy0fskl"],
105
+ "B9xav0g": "f4ikngz",
106
+ "zhjwy3": ["fy0fskl", "f15xbau"],
107
+ "sj55zd": "f1s2aq7o",
108
+ "v4pbla": "f1nil5o8",
109
+ "Bgoe8wy": "f12mpcsy",
110
+ "Bwzppfd": ["f1gwvigk", "f18rmfxp"],
111
+ "oetu4i": "f1jnshp0",
112
+ "gg5e9n": ["f18rmfxp", "f1gwvigk"],
113
+ "Bi91k9c": "fvgxktp",
114
+ "vv34bc": "fkqx3al",
115
+ "B6oc9vd": "fdi4vxw",
116
+ "ak43y8": ["f4ryxzl", "fkdgpbx"],
117
+ "wmxk5l": "fcmhn06",
118
+ "B50zh58": ["fkdgpbx", "f4ryxzl"],
119
+ "lj723h": "f19wldhg"
120
+ },
121
+ "outline": {},
122
+ "primary": {
123
+ "g2u3we": "f1p3nwhy",
124
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
125
+ "B9xav0g": "f1q5o8ev",
126
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
127
+ "Bgoe8wy": "f1s2uweq",
128
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
129
+ "oetu4i": "f1ukrpxl",
130
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
131
+ "B6oc9vd": "ff472gp",
132
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
133
+ "wmxk5l": "fggejwh",
134
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
135
+ },
136
+ "subtle": {
137
+ "ayd6f0": "f1k2sg7s",
138
+ "g2u3we": "f1p3nwhy",
139
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
140
+ "B9xav0g": "f1q5o8ev",
141
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
142
+ "v4pbla": "f1vc35iv",
143
+ "Bgoe8wy": "f1s2uweq",
144
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
145
+ "oetu4i": "f1ukrpxl",
146
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
147
+ "vv34bc": "f17oliv9",
148
+ "B6oc9vd": "ff472gp",
149
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
150
+ "wmxk5l": "fggejwh",
151
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
152
+ },
153
+ "transparent": {
154
+ "ayd6f0": "f1k2sg7s",
155
+ "g2u3we": "f1p3nwhy",
156
+ "h3c5rm": ["f11589ue", "f1pdflbu"],
157
+ "B9xav0g": "f1q5o8ev",
158
+ "zhjwy3": ["f1pdflbu", "f11589ue"],
159
+ "v4pbla": "f1vc35iv",
160
+ "Bgoe8wy": "f1s2uweq",
161
+ "Bwzppfd": ["fr80ssc", "fecsdlb"],
162
+ "oetu4i": "f1ukrpxl",
163
+ "gg5e9n": ["fecsdlb", "fr80ssc"],
164
+ "vv34bc": "f17oliv9",
165
+ "B6oc9vd": "ff472gp",
166
+ "ak43y8": ["f4yyc7m", "ft2aflc"],
167
+ "wmxk5l": "fggejwh",
168
+ "B50zh58": ["ft2aflc", "f4yyc7m"]
169
+ }
170
+ }, {
171
+ "d": [".fqst6tg{background:var(--colorNeutralBackgroundDisabled);}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1k2sg7s{background:none;}"],
172
+ "h": [".f1nil5o8:hover{background:var(--colorNeutralBackgroundDisabled);}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1vc35iv:hover{background:none;}"],
173
+ "a": [".fkqx3al:active{background:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f17oliv9:active{background:none;}"]
174
+ });
175
+
176
+ export var useToggleButtonStyles = function (state) {
177
+ var checkedStyles = useCheckedStyles();
178
+ var disabledStyles = useDisabledStyles();
179
+ var appearance = state.appearance,
180
+ checked = state.checked,
181
+ disabled = state.disabled,
182
+ disabledFocusable = state.disabledFocusable;
183
+ state.root.className = mergeClasses( // Checked styles
184
+ checked && checkedStyles.base, appearance && checked && checkedStyles[appearance], // Disabled styles
185
+ (disabled || disabledFocusable) && disabledStyles.base, appearance && (disabled || disabledFocusable) && disabledStyles[appearance], // User provided class name
186
+ state.root.className);
187
+ useButtonStyles(state);
188
+ return state;
189
+ };
190
+ //# sourceMappingURL=useToggleButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ToggleButton/useToggleButtonStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;AACA,SAAS,eAAT,QAAgC,2BAAhC;;AAGA,IAAM,gBAAgB,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAzB;;AAuFA,IAAM,iBAAiB,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAA1B;;AAiEA,OAAO,IAAM,qBAAqB,GAAG,UAAC,KAAD,EAAyB;AAC5D,MAAM,aAAa,GAAG,gBAAgB,EAAtC;AACA,MAAM,cAAc,GAAG,iBAAiB,EAAxC;AAEQ,MAAA,UAAU,GAA2C,KAAK,CAAhD,UAAV;AAAA,MAAY,OAAO,GAAkC,KAAK,CAAvC,OAAnB;AAAA,MAAqB,QAAQ,GAAwB,KAAK,CAA7B,QAA7B;AAAA,MAA+B,iBAAiB,GAAK,KAAK,CAAV,iBAAhD;AAER,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,EACjC;AACA,EAAA,OAAO,IAAI,aAAa,CAAC,IAFQ,EAGjC,UAAU,IAAI,OAAd,IAAyB,aAAa,CAAC,UAAD,CAHL,EAKjC;AACA,GAAC,QAAQ,IAAI,iBAAb,KAAmC,cAAc,CAAC,IANjB,EAOjC,UAAU,KAAK,QAAQ,IAAI,iBAAjB,CAAV,IAAiD,cAAc,CAAC,UAAD,CAP9B,EASjC;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAVsB,CAAnC;AAaA,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,KAAP;AACD,CAtBM","sourceRoot":""}
package/lib/index.d.ts CHANGED
@@ -1 +1,5 @@
1
1
  export * from './Button';
2
+ export * from './CompoundButton';
3
+ export * from './MenuButton';
4
+ export * from './SplitButton';
5
+ export * from './ToggleButton';
package/lib/index.js CHANGED
@@ -1,2 +1,6 @@
1
1
  export * from './Button';
2
+ export * from './CompoundButton';
3
+ export * from './MenuButton';
4
+ export * from './SplitButton';
5
+ export * from './ToggleButton';
2
6
  //# sourceMappingURL=index.js.map